PageSourceSearch

https://ofw.ourfamilywizard.com/app/assets/Switch-DnSa5az2.js

js ourfamilywizard.com collected 2026-10-01 11:44:13 UTC 4,605 bytes, 1 lines download raw bytes

1import{as as T,at as R,r as j,au as M,aC as x,s as u,af as I,j as d,aO as D,ax as i,ay as N,az as p,aA as O}from"./WarningIcon-hckcyQCq.js";import{S as U}from"./FormControlLabel-Gyo7sKej.js";function A(t){return R("MuiSwitch",t)}const o=T("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),E=t=>{const{classes:a,edge:s,size:l,color:h,checked:w,disabled:g}=t,b={root:["root",s&&`edge${i(s)}`,`size${i(l)}`],switchBase:["switchBase",`color${i(h)}`,w&&"checked",g&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},S=N(b,A,a);return{...a,...S}},F=u("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:s}=t;return[a.root,s.edge&&a[`edge${i(s.edge)}`],a[`size${i(s.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${o.thumb}`]:{width:16,height:16},[`& .${o.switchBase}`]:{padding:4,[`&.${o.checked}`]:{transform:"translateX(16px)"}}}}]}),X=u(U,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:s}=t;return[a.switchBase,{[`& .${o.input}`]:a.input},s.color!=="default"&&a[`color${i(s.color)}`]]}})(p(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${o.checked}`]:{transform:"translateX(20px)"},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${o.checked} + .${o.track}`]:{opacity:.5},[`&.${o.disabled} + .${o.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${o.input}`]:{left:"-100%",width:"300%"}})),p(({theme:t})=>({"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(O(["light"])).map(([a])=>({props:{color:a},style:{[`&.${o.checked}`]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[a].main,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${o.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a}DisabledColor`]:`${t.palette.mode==="light"?t.lighten(t.palette[a].main,.62):t.darken(t.palette[a].main,.55)}`}},[`&.${o.checked} + .${o.track}`]:{backgroundColor:(t.vars||t).palette[a].main}}}))]}))),L=u("span",{name:"MuiSwitch",slot:"Track"})(p(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,boxSizing:"border-box",border:"1px solid transparent",zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),V=u("span",{name:"MuiSwitch",slot:"Thumb"})(p(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",boxSizing:"border-box",border:"1px solid transparent",width:20,height:20,borderRadius:"50%"}))),H=j.forwardRef(function(a,s){const l=M({props:a,name:"MuiSwitch"}),{className:h,color:w="primary",edge:g=!1,size:b="medium",sx:S,slots:c={},slotProps:e={},...f}=l,r={...l,color:w,edge:g,size:b},n=E(r),k=e.input,v={slots:c,slotProps:e},[y,m]=x("root",{className:I(n.root,h),elementType:F,externalForwardedProps:v,ownerState:r,additionalProps:{sx:S}}),[C,z]=x("thumb",{className:n.thumb,elementType:V,externalForwardedProps:v,ownerState:r}),$=d.jsx(C,{...z}),[B,P]=x("track",{className:n.track,elementType:L,externalForwardedProps:v,ownerState:r});return d.jsxs(y,{...m,children:[d.jsx(X,{type:"checkbox",icon:$,checkedIcon:$,ref:s,ownerState:r,...f,classes:{...n,root:n.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...e.switchBase&&{root:typeof e.switchBase=="function"?e.switchBase(r):e.switchBase},input:D(typeof k=="function"?k(r):k,{role:"switch"})}}),d.jsx(B,{...P})]})});export{H as S};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.