mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net> Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2 lines
7.6 KiB
JavaScript
2 lines
7.6 KiB
JavaScript
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1803],{50521:function(e,t,o){var a=o(64836);t.Z=void 0;var r=a(o(45649)),n=o(80184),c=(0,r.default)((0,n.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"}),"Login");t.Z=c},1582:function(e,t,o){o.d(t,{Z:function(){return R}});var a=o(4942),r=o(63366),n=o(87462),c=o(72791),i=o(28182),s=o(82466),l=o(94419),d=o(21217),u=(0,o(44046).ZP)(),h=o(86083),p=o(78519),v=o(85080),m=o(51184),f=o(45682),g=o(80184),Z=["component","direction","spacing","divider","children","className","useFlexGap"],k=(0,v.Z)(),b=u("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function w(e){return(0,h.Z)({props:e,name:"MuiStack",defaultTheme:k})}function S(e,t){var o=c.Children.toArray(e).filter(Boolean);return o.reduce((function(e,a,r){return e.push(a),r<o.length-1&&e.push(c.cloneElement(t,{key:"separator-".concat(r)})),e}),[])}var y=function(e){var t=e.ownerState,o=e.theme,r=(0,n.Z)({display:"flex",flexDirection:"column"},(0,m.k9)({theme:o},(0,m.P$)({values:t.direction,breakpoints:o.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var c=(0,f.hB)(o),i=Object.keys(o.breakpoints.values).reduce((function(e,o){return("object"===typeof t.spacing&&null!=t.spacing[o]||"object"===typeof t.direction&&null!=t.direction[o])&&(e[o]=!0),e}),{}),l=(0,m.P$)({values:t.direction,base:i}),d=(0,m.P$)({values:t.spacing,base:i});"object"===typeof l&&Object.keys(l).forEach((function(e,t,o){if(!l[e]){var a=t>0?l[o[t-1]]:"column";l[e]=a}}));r=(0,s.Z)(r,(0,m.k9)({theme:o},d,(function(e,o){return t.useFlexGap?{gap:(0,f.NA)(c,e)}:{"& > :not(style) + :not(style)":(0,a.Z)({margin:0},"margin".concat((r=o?l[o]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r])),(0,f.NA)(c,e))};var r})))}return r=(0,m.dt)(o.breakpoints,r)};var x=o(66934),C=o(31402),z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createStyledComponent,o=void 0===t?b:t,a=e.useThemeProps,s=void 0===a?w:a,u=e.componentName,h=void 0===u?"MuiStack":u,v=o(y),m=c.forwardRef((function(e,t){var o=s(e),a=(0,p.Z)(o),c=a.component,u=void 0===c?"div":c,m=a.direction,f=void 0===m?"column":m,k=a.spacing,b=void 0===k?0:k,w=a.divider,y=a.children,x=a.className,C=a.useFlexGap,z=void 0!==C&&C,R=(0,r.Z)(a,Z),M={direction:f,spacing:b,useFlexGap:z},j=(0,l.Z)({root:["root"]},(function(e){return(0,d.Z)(h,e)}),{});return(0,g.jsx)(v,(0,n.Z)({as:u,ownerState:M,ref:t,className:(0,i.Z)(j.root,x)},R,{children:w?S(y,w):y}))}));return m}({createStyledComponent:(0,x.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}}),useThemeProps:function(e){return(0,C.Z)({props:e,name:"MuiStack"})}}),R=z},9955:function(e,t,o){o.d(t,{Z:function(){return x}});var a=o(4942),r=o(63366),n=o(87462),c=o(72791),i=o(28182),s=o(94419),l=o(12065),d=o(14036),u=o(97278),h=o(31402),p=o(66934),v=o(75878),m=o(21217);function f(e){return(0,m.Z)("MuiSwitch",e)}var g=(0,v.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Z=o(80184),k=["className","color","edge","size","sx"],b=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var o=e.ownerState;return[t.root,o.edge&&t["edge".concat((0,d.Z)(o.edge))],t["size".concat((0,d.Z)(o.size))]]}})((function(e){var t,o=e.ownerState;return(0,n.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===o.edge&&{marginLeft:-8},"end"===o.edge&&{marginRight:-8},"small"===o.size&&(t={width:40,height:24,padding:7},(0,a.Z)(t,"& .".concat(g.thumb),{width:16,height:16}),(0,a.Z)(t,"& .".concat(g.switchBase),(0,a.Z)({padding:4},"&.".concat(g.checked),{transform:"translateX(16px)"})),t))})),w=(0,p.ZP)(u.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var o=e.ownerState;return[t.switchBase,(0,a.Z)({},"& .".concat(g.input),t.input),"default"!==o.color&&t["color".concat((0,d.Z)(o.color))]]}})((function(e){var t,o=e.theme;return t={position:"absolute",top:0,left:0,zIndex:1,color:o.vars?o.vars.palette.Switch.defaultColor:"".concat("light"===o.palette.mode?o.palette.common.white:o.palette.grey[300]),transition:o.transitions.create(["left","transform"],{duration:o.transitions.duration.shortest})},(0,a.Z)(t,"&.".concat(g.checked),{transform:"translateX(20px)"}),(0,a.Z)(t,"&.".concat(g.disabled),{color:o.vars?o.vars.palette.Switch.defaultDisabledColor:"".concat("light"===o.palette.mode?o.palette.grey[100]:o.palette.grey[600])}),(0,a.Z)(t,"&.".concat(g.checked," + .").concat(g.track),{opacity:.5}),(0,a.Z)(t,"&.".concat(g.disabled," + .").concat(g.track),{opacity:o.vars?o.vars.opacity.switchTrackDisabled:"".concat("light"===o.palette.mode?.12:.2)}),(0,a.Z)(t,"& .".concat(g.input),{left:"-100%",width:"300%"}),t}),(function(e){var t,o=e.theme,r=e.ownerState;return(0,n.Z)({"&:hover":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.action.activeChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&(t={},(0,a.Z)(t,"&.".concat(g.checked),(0,a.Z)({color:(o.vars||o).palette[r.color].main,"&:hover":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette[r.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(o.palette[r.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(g.disabled),{color:o.vars?o.vars.palette.Switch["".concat(r.color,"DisabledColor")]:"".concat("light"===o.palette.mode?(0,l.$n)(o.palette[r.color].main,.62):(0,l._j)(o.palette[r.color].main,.55))})),(0,a.Z)(t,"&.".concat(g.checked," + .").concat(g.track),{backgroundColor:(o.vars||o).palette[r.color].main}),t))})),S=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),y=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:function(e,t){return t.thumb}})((function(e){var t=e.theme;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),x=c.forwardRef((function(e,t){var o=(0,h.Z)({props:e,name:"MuiSwitch"}),a=o.className,c=o.color,l=void 0===c?"primary":c,u=o.edge,p=void 0!==u&&u,v=o.size,m=void 0===v?"medium":v,g=o.sx,x=(0,r.Z)(o,k),C=(0,n.Z)({},o,{color:l,edge:p,size:m}),z=function(e){var t=e.classes,o=e.edge,a=e.size,r=e.color,c=e.checked,i=e.disabled,l={root:["root",o&&"edge".concat((0,d.Z)(o)),"size".concat((0,d.Z)(a))],switchBase:["switchBase","color".concat((0,d.Z)(r)),c&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,s.Z)(l,f,t);return(0,n.Z)({},t,u)}(C),R=(0,Z.jsx)(y,{className:z.thumb,ownerState:C});return(0,Z.jsxs)(b,{className:(0,i.Z)(z.root,a),sx:g,ownerState:C,children:[(0,Z.jsx)(w,(0,n.Z)({type:"checkbox",icon:R,checkedIcon:R,ref:t,ownerState:C},x,{classes:(0,n.Z)({},z,{root:z.switchBase})})),(0,Z.jsx)(S,{className:z.track,ownerState:C})]})}))}}]);
|
|
//# sourceMappingURL=1803.d968a030.chunk.js.map
|