1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2247],{49121:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(54568),i=n(26274),o=n(7620),c=n(92805),s=n(41112),a=n(83500),l=n(54713);function u(e){switch(e){case"x-large":return 34;case"large":return 30;case"medium":return 24;case"small":return 20;case"mini":return 16}}let d=(0,l.i7)(["0%{opacity:0;}100%{opacity:1;}"]),h=l.Ay.button.withConfig({componentId:"sc-e1683e85-0"})(["box-sizing:border-box;cursor:pointer;display:block;position:relative;user-select:none;&:active{opacity:0.8;}&:focus-visible{outline:2px solid ",";}"," ",""],i.aw,({$backgroundColor:e,$outlineColor:t,$size:n})=>(0,l.AH)(["background:",";border-radius:","px;box-shadow:inset 0 0 0 ","px ",";height:","px;width:","px;"],e,(0,c.xb)(n),function(e){switch(e){case"x-large":case"large":return 3;default:return 2}}(n),t,u(n),u(n)),({$disabled:e})=>e&&(0,l.AH)(["opacity:0.5;pointer-events:none;"])),p=l.Ay.span.withConfig({componentId:"sc-e1683e85-1"})(["align-items:center;animation:"," 0.1s ease-in-out;border-radius:inherit;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;",""],d,({$color:e,$gradient:t})=>(0,l.AH)(["background:",";"],t?(0,c.$_)(t):e)),b=({backgroundColor:e=i.ni,checked:t,className:n,color:l=i.nU,disabled:u=!1,defaultChecked:d=!1,gradient:b,iconColor:f,name:x,outlineColor:g=i.Zf,size:k="small",style:m,tabIndex:y=0,title:C,onChange:w})=>{let v=(0,o.useRef)(void 0!==t?t:d),[j,A]=(0,o.useState)(v.current||!1),$=b?(0,c.Bj)(b,.5):l,N=f||(0,s.Y)($),_=function(e){switch(e){case"x-large":return 24;case"large":return 22;case"medium":return 18;case"small":return 15;case"mini":return 12}}(k);return(0,o.useEffect)(()=>{void 0!==t&&A(t)},[t]),(0,o.useEffect)(()=>{j!==v.current&&(v.current=void 0,w?.(j))},[j]),(0,r.jsxs)(h,{$backgroundColor:e,$disabled:u,$outlineColor:g,$size:k,className:n,style:m,title:C,tabIndex:y,type:"button",onClick:function(){A(e=>!e)},children:[j&&(0,r.jsx)(p,{$color:l,$gradient:b,children:(0,r.jsx)(a.A,{color:N,icon:"checkmark",height:_,width:_})}),(0,r.jsx)("input",{checked:j,name:x,readOnly:!0,type:"hidden"})]})}},62247:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var r=n(54568),i=n(7620),o=n(49121),c=n(59250),s=n(75314),a=n(15012),l=n(23892),u=n(56215),d=n(68292);let h=({className:e,field:t,gifId:n,inverted:h=!1,size:p=c.Gj})=>{let{colors:b,gifs:f,permissions:x}=(0,i.useContext)(a.k),{changeField:g}=(0,i.useContext)(s.c),k=(0,l.N7)(t),m=(0,u.yR)(f,k,n)||!1;return(0,r.jsx)(o.A,{backgroundColor:b.controlDark,className:e,color:b.label,disabled:!(0,d.MC)(t,x),checked:h?!m:m,outlineColor:b.labelIcon,size:p,onChange:function(e){g(t,h?!e:e)}})}}}]); 2//# sourceMappingURL=2247.69b84fc08edf4c63.js.map
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.