PageSourceSearch

https://happykids.id/_next/static/chunks/2017.8930957910c5ad9b.js

js happykids.id collected 2026-10-02 01:56:53 UTC 8,619 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2017],{72017:function(e,t,n){n.r(t),n.d(t,{default:function(){return s}});var o=n(57437),r=n(2265),a=n(56425),i=n(53770),l=n(79147);function s(){let{hideDialog:e,isOpen:t,theme:n,content:s}=(0,a.I)();return((0,r.useEffect)(()=>(t?document.body.style.pointerEvents="none":document.body.style.pointerEvents="auto",()=>{document.body.style.pointerEvents="auto"}),[t]),t)?(0,o.jsx)(l.Vq,{onOpenChange:function(){e()},open:t,defaultOpen:t,children:(0,o.jsx)(l.cZ,{showCloseIcon:!1,onPointerDownOutside:e=>e.preventDefault(),className:(0,i.cn)("bg-background py-0","light"===n&&"bg-white bg-opacity-100"),children:s()})}):null}},79147:function(e,t,n){n.d(t,{$N:function(){return x},GG:function(){return c},Vq:function(){return s},cZ:function(){return p},fK:function(){return g},hg:function(){return d}});var o=n(57437),r=n(33145),a=n(49027),i=n(2265),l=n(53770);let s=a.fC,d=a.xz,u=a.h_,c=a.x8,f=i.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,o.jsx)(a.aV,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r})});f.displayName=a.aV.displayName;let p=i.forwardRef((e,t)=>{let{className:n,children:i,showCloseIcon:s=!0,showTitle:d=!0,showDescription:c=!0,...p}=e;return(0,o.jsxs)(u,{children:[(0,o.jsx)(f,{}),(0,o.jsxs)(a.VY,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 box-border grid w-max translate-x-[-50%] translate-y-[-50%] gap-4 bg-[#061014] bg-opacity-90 p-6 pb-0 shadow-lg backdrop-blur-xl backdrop-brightness-150 backdrop-filter duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...p,children:[i,(0,o.jsx)(a.Dx,{className:d?"":"hidden"}),(0,o.jsx)(a.dk,{className:c?"":"hidden"}),s?(0,o.jsxs)(a.x8,{"data-testid":"hk-dialog-close",className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",onClick:p.onClose,children:[(0,o.jsx)(r.default,{src:"/icon/x-white.svg",alt:"x",width:32,height:32}),(0,o.jsx)("span",{className:"sr-only",children:"Close"})]}):null]})]})});p.displayName=a.VY.displayName;let g=e=>{let{className:t,...n}=e;return(0,o.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...n})};g.displayName="DialogHeader";let x=i.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,o.jsx)(a.Dx,{ref:t,className:(0,l.cn)("mb-10 text-lg font-semibold leading-none tracking-tight",n),...r})});x.displayName=a.Dx.displayName,i.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,o.jsx)(a.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",n),...r})}).displayName=a.dk.displayName},56425:function(e,t,n){n.d(t,{I:function(){return o}});let o=(0,n(59625).Ue)()(e=>({isOpen:!1,theme:"dark",content:()=>null,showDialog:()=>e({isOpen:!0}),hideDialog:()=>e({isOpen:!1}),setContent:t=>e({content:()=>t}),setTheme:t=>e({theme:t})}))},49027:function(e,t,n){n.d(t,{Dx:function(){return Y},VY:function(){return W},aV:function(){return V},dk:function(){return q},fC:function(){return k},h_:function(){return M},x8:function(){return G},xz:function(){return N}});var o=n(2265),r=n(6741),a=n(98575),i=n(73966),l=n(99255),s=n(35037),d=n(22308),u=n(99103),c=n(83832),f=n(71599),p=n(66840),g=n(86097),x=n(61188),h=n(60703),m=n(5478),D=n(37053),b=n(57437),v=Object.defineProperty,j=(e,t)=>v(e,"name",{value:t,configurable:!0}),y="Dialog",[C,w]=(0,i.b)(y),[R,O]=C(y),k=j(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:d=!0}=e,u=o.useRef(null),c=o.useRef(null),[f,p]=(0,s.T)({prop:r,defaultProp:null!=a&&a,onChange:i,caller:y}),[g,x]=o.useState(0),[h,m]=o.useState(0);return(0,b.jsx)(R,{scope:t,triggerRef:u,contentRef:c,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),titlePresent:g>0,descriptionPresent:h>0,setTitleCount:x,setDescriptionCount:m,open:f,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:d,children:n})},"Dialog"),N=o.forwardRef(j(function(e,t){let{__scopeDialog:n,...o}=e,i=O("DialogTrigger",n),l=(0,a.e)(t,i.triggerRef);return(0,b.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":K(i.open),...o,ref:l,onClick:(0,r.Mj)(e.onClick,i.onOpenToggle)})},"DialogTrigger")),_="DialogPortal",[P,I]=C(_,{forceMount:void 0}),M=j(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:a}=e,i=O(_,t);return(0,b.jsx)(P,{scope:t,forceMount:n,children:o.Children.map(r,e=>(0,b.jsx)(f.z,{present:n||i.open,children:(0,b.jsx)(c.h,{asChild:!0,container:a,children:e})}))})},"DialogPortal"),E="DialogOverlay",V=o.forwardRef(j(function(e,t){let n=I(E,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,a=O(E,e.__scopeDialog);return a.modal?(0,b.jsx)(f.z,{present:o||a.open,children:(0,b.jsx)(z,{...r,ref:t})}):null},"DialogOverlay")),F=(0,D.Z8)("DialogOverlay.RemoveScroll"),z=o.forwardRef(j(function(e,t){let{__scopeDialog:n,...o}=e,r=O(E,n),i=(0,d.WL)(),l=(0,a.e)(t,i);return(0,b.jsx)(h.Z,{as:F,allowPinchZoom:!0,shards:[r.contentRef],children:(0,b.jsx)(p.WV.div,{"data-state":K(r.open),...o,ref:l,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),T="DialogContent",W=o.forwardRef(j(function(e,t){let n=I(T,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,a=O(T,e.__scopeDialog);return(0,b.jsx)(f.z,{present:o||a.open,children:a.modal?(0,b.jsx)(A,{...r,ref:t}):(0,b.jsx)(Z,{...r,ref:t})})},"DialogContent")),A=o.forwardRef(j(function(e,t){let n=O(T,e.__scopeDialog),i=o.useRef(null),l=(0,a.e)(t,n.contentRef,i);return o.useEffect(()=>{let e=i.current;if(e)return(0,m.Ry)(e)},[]),(0,b.jsx)(S,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,r.Mj)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,r.Mj)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,r.Mj)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),Z=o.forwardRef(j(function(e,t){let n=O(T,e.__scopeDialog),r=o.useRef(!1),a=o.useRef(!1);return(0,b.jsx)(S,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})},"DialogContentNonModal")),S=o.forwardRef(j(function(e,t){let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:a,...i}=e,l=O(T,n);return(0,g.EW)(),(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(u.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:a,children:(0,b.jsx)(d.XB,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":K(l.open),...i,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),Y=o.forwardRef(j(function(e,t){let{__scopeDialog:n,...o}=e,r=O("DialogTitle",n),{setTitleCount:a}=r;return(0,x.b)(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,b.jsx)(p.WV.h2,{id:r.titleId,...o,ref:t})},"DialogTitle")),q=o.forwardRef(j(function(e,t){let{__scopeDialog:n,...o}=e,r=O("DialogDescription",n),{setDescriptionCount:a}=r;return(0,x.b)(()=>(a(e=>e+1),()=>a(e=>
1e-1)),[a]),(0,b.jsx)(p.WV.p,{id:r.descriptionId,...o,ref:t})},"DialogDescription")),G=o.forwardRef(j(function(e,t){let{__scopeDialog:n,...o}=e,a=O("DialogClose",n);return(0,b.jsx)(p.WV.button,{type:"button",...o,ref:t,onClick:(0,r.Mj)(e.onClick,()=>a.onOpenChange(!1))})},"DialogClose"));function K(e){return e?"open":"closed"}j(K,"getState")}}]);

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.