(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35283],{34155:(s,e,l)=>{"use strict";l.d(e,{A:()=>m});var o=l(87687),t=l(52751),n=l(31928),r=l(30251),a=l(21347);let p=(0,n.I)("div")({name:"Wrapper",class:"wo9l3q2",propsAsIs:!1}),i=(0,n.I)("input")({name:"RealInput",class:"r1o5tixe",propsAsIs:!1}),c=(0,n.I)("div")({name:"VisibleContents",class:"v136y9ve",propsAsIs:!1}),u=(0,n.I)(r.CS.div)({name:"VisibleBox",class:"v8lcvtu",propsAsIs:!0}),d=(0,n.I)(r.CS.div)({name:"Filled",class:"f1dif9mh",propsAsIs:!0}),x=(0,n.I)("label")({name:"Label",class:"l1v492xg",propsAsIs:!1}),m=s=>{let{id:e,size:l=18,checked:n,label:m,onChange:v,...h}=s,[f,w]=t.useState(!1),I=t.useId(),j=e||"checkbox-".concat(I),A={tension:400,friction:22,clamp:!n},k=l/(l+4),b=(0,r.zh)({transform:"scale(".concat(n?f?1/k:1:0,")"),config:A}),g=(0,r.zh)({transform:"scale(".concat(f?k:1,")"),config:A}),[y]=(0,a.A)("/sounds/pop-down.mp3",{volume:.25}),[q]=(0,a.A)("/sounds/pop-up-on.mp3",{volume:.25}),[C]=(0,a.A)("/sounds/pop-up-off.mp3",{volume:.25});return(0,o.jsxs)(p,{children:[(0,o.jsx)(i,{type:"checkbox",id:j,onMouseDown:()=>{w(!0),y()},onMouseUp:()=>{w(!1),n?C():q()},onChange:v}),(0,o.jsxs)(c,{children:[(0,o.jsx)(u,{style:{width:l,height:l,...g},children:(0,o.jsx)(d,{style:b})}),m&&(0,o.jsx)(x,{htmlFor:j,children:m})]})]})};l(12439)},35283:(s,e,l)=>{"use strict";l.r(e),l.d(e,{default:()=>f});var o=l(87687),t=l(52751),n=l(31928),r=l(13816),a=l(38007),p=l(34155),i=l(22559),c=l(21347),u=l(22159),d=l(47609);let x=(0,n.I)("div")({name:"Wrapper",class:"wuc5w68",propsAsIs:!1}),m=t.memo(function(){let[s]=(0,c.A)("/sounds/glug-b.mp3",{interrupt:!0,volume:.25}),[e]=(0,c.A)("/sounds/pop.mp3",{volume:.5}),l=function(){let[,s]=t.useState(1);return t.useCallback(()=>{s(Math.random())},[])}(),[n,r]=t.useState(0);return(0,o.jsxs)(x,{children:[(0,o.jsx)(d.A,{size:48,totalNumLikesFromUser:n}),(0,o.jsx)(u.A,{size:48,totalNumLikesFromUser:n,onLike:()=>{if(n{if(n>0){let e=n-1;r(e),s({playbackRate:(e-1)/(i.Td-1)+.9})}}})]})});l(90527);let v=(0,n.I)("div")({name:"Wrapper",class:"w1y2d26q",propsAsIs:!1}),h=(0,n.I)("div")({name:"ToggleWrapper",class:"t1qrw86x",propsAsIs:!1}),f=()=>{let[s,e]=t.useState(!0);return(0,o.jsxs)(v,{children:[(0,o.jsx)(h,{children:(0,o.jsx)(r.default,{size:32})}),(0,o.jsx)(h,{children:(0,o.jsx)(a.default,{size:32})}),(0,o.jsx)(h,{children:(0,o.jsx)(m,{})}),(0,o.jsx)(h,{children:(0,o.jsx)(p.A,{size:25,checked:s,onChange:()=>e(!s)})})]})};l(43865)},12439:s=>{s.exports={wo9l3q2:"wo9l3q2",r1o5tixe:"r1o5tixe",v136y9ve:"v136y9ve",v8lcvtu:"v8lcvtu",f1dif9mh:"f1dif9mh",l1v492xg:"l1v492xg"}},90527:s=>{s.exports={wuc5w68:"wuc5w68"}},43865:s=>{s.exports={w1y2d26q:"w1y2d26q",t1qrw86x:"t1qrw86x"}}}]); //# sourceMappingURL=35283.8c3e8ba42dfc579d.js.map