PageSourceSearch

https://snowchat.ai/_next/static/immutable/chunks/0u26atpn2n-s-.js

js snowchat.ai collected 2026-10-05 12:45:35 UTC 24,216 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0804f-84d0-7820-a3c5-992ae118a54b")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,436168,e=>{"use strict";var t=e.i(943306),o=e.i(297068);e.s([],955401),e.i(955401);var a=e.i(92504),n=e.i(35834),r=e.i(752344),i=e.i(366983),l=e.i(887901),s=e.i(665825),u=e.i(68024);let d=e.i(208089).DialogTrigger;var c=e.i(193170),p=e.i(294976),g=e.i(596107);let f={modal:!0,disablePointerDismissal:!0,role:"alertdialog"};class m extends p.DialogHandle{constructor(e){super(e??new g.DialogStore(f)),e&&this.store.update(f)}}e.s(["Backdrop",()=>n.DialogBackdrop,"Close",()=>r.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,m,"Popup",()=>l.DialogPopup,"Portal",()=>s.DialogPortal,"Root",0,function(e){return(0,a.useRenderDialogRoot)(e,"alert-dialog")},"Title",()=>u.DialogTitle,"Trigger",0,d,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new m}],406912);var D=e.i(406912),D=D,x=e.i(809382),C=e.i(656204),v=e.i(260756),S=e.i(839221);function h({...e}){return(0,t.jsx)(D.Portal,{"data-slot":"alert-dialog-portal",...e})}function R({className:e,...o}){return(0,t.jsx)(D.Backdrop,{"data-slot":"alert-dialog-overlay",className:(0,S.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 data-closed:animate-out data-closed:fade-out-0 data-closed:fill-mode-forwards data-open:animate-in data-open:fade-in-0 supports-backdrop-filter:backdrop-blur-xs",e),...o})}e.s(["AlertDialog",0,function({actionsRef:e,onOpenChange:a,open:n,...r}){let i=o.useRef(null),l=(0,C.useOverlayIntentRoot)({open:n,requestClose:null});return o.useLayoutEffect(()=>{if(e)return e.current=i.current,()=>{e.current=null}}),(0,t.jsx)(C.OverlayIntentProvider,{value:l.intentContextValue,children:(0,t.jsx)(D.Root,{"data-slot":"alert-dialog",open:n,actionsRef:i,onOpenChange:(e,t)=>
1{a?.(e,t),l.reportActualOpenChange(e,t.isCanceled)},...r})})},"AlertDialogAction",0,function({className:e,variant:o,size:a,closeOnClick:n=!0,...r}){return n?(0,t.jsx)(D.Close,{"data-slot":"alert-dialog-action",className:(0,S.cn)(e),render:(0,t.jsx)(x.Button,{variant:o,size:a}),...r}):(0,t.jsx)(x.Button,{"data-slot":"alert-dialog-action",className:e,variant:o,size:a,...r})},"AlertDialogCancel",0,function({className:e,variant:o="outline",size:a="default",...n}){return(0,t.jsx)(D.Close,{"data-slot":"alert-dialog-cancel",className:(0,S.cn)(e),render:(0,t.jsx)(x.Button,{variant:o,size:a}),...n})},"AlertDialogContent",0,function({className:e,children:a,overlayClassName:n,overlayForceRender:r=!1,portalKeepMounted:i=!1,size:l="default",ref:s,...u}){let d=(0,C.useOverlayIntentPopupRef)(),[c,p]=o.useState(null),g=o.useMemo(()=>(0,v.composeRefs)(p,i?void 0:d),[d,i]),f=o.useMemo(()=>(0,v.composeRefs)(g,s),[g,s]),m=null!==(0,v.useOverlayPortalContainer)(),x=m?"z-70":void 0;return(0,t.jsxs)(h,{keepMounted:i,children:[(0,t.jsx)(R,{className:(0,S.cn)(x,n),forceRender:r||m}),(0,t.jsx)(D.Popup,{ref:f,"data-slot":"alert-dialog-content","data-surface":"","data-size":l,className:(0,S.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-2xl bg-background p-6 text-sm shadow-(--glass-shadow-lg) ring-1 ring-foreground/10 outline-hidden duration-100 data-closed:animate-out data-closed:fade-out-0 data-closed:fill-mode-forwards data-closed:zoom-out-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[size=sm]:max-w-xs sm:data-[size=default]:max-w-md",x,e),...u,children:(0,t.jsxs)(v.OverlayPortalContainerProvider,{container:c,children:[!i&&(0,t.jsx)(C.OverlayIntentPopupProbe,{}),a]})})]})},"AlertDialogDescription",0,function({className:e,...o}){return(0,t.jsx)(D.Description,{"data-slot":"alert-dialog-description",className:(0,S.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 hover:[&_a]:text-foreground",e),...o})},"AlertDialogFooter",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,S.cn)("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...o})},"AlertDialogHeader",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,S.cn)("flex flex-col gap-2 has-data-[slot=alert-dialog-media]:grid has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:place-items-center has-data-[slot=alert-dialog-media]:gap-x-6 has-data-[slot=alert-dialog-media]:text-center sm:has-data-[slot=alert-dialog-media]:group-data-[size=default]/alert-dialog-content:grid-rows-[auto_1fr] sm:has-data-[slot=alert-dialog-media]:group-data-[size=default]/alert-dialog-content:place-items-start sm:has-data-[slot=alert-dialog-media]:group-data-[size=default]/alert-dialog-content:text-left",e),...o})},"AlertDialogTitle",0,function({className:e,...o}){return(0,t.jsx)(D.Title,{"data-slot":"alert-dialog-title",className:(0,S.cn)("leading-none font-medium sm:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:group-data-[size=default]/alert-dialog-content:col-start-2",e),...o})},"AlertDialogTrigger",0,function({...e}){return(0,t.jsx)(D.Trigger,{"data-slot":"alert-dialog-trigger",...e})}],436168)},694308,e=>{"use strict";var t=e.i(943306),o=e.i(297068),a=e.i(762458),n=e.i(938180),r=e.i(809382),i=e.i(656204),l=e.i(260756),s=e.i(839221);function u({...e}){return(0,t.jsx)(a.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function d({className:e,...o}){return(0,t.jsx)(a.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:(0,s.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 data-closed:animate-out data-closed:fade-out-0 data-closed:fill-mode-forwards data-open:animate-in data-open:fade-in-0 supports-backdrop-filter:backdrop-blur-xs",e),...o})}e.s(["Dialog",0,function({actionsRef:e,disablePointerDismissal:n,modal:r=!0,onOpenChange:l,open:s,...u}){let d=o.useRef(null),c=o.useCallback(()=>{d.current?.close()},[]),p=(0,i.useOverlayIntentRoot)({open:s,requestClose:!0===n?null:c});return o.useLayoutEffect(()=>{if(e)return e.current=d.current,()=>{e.current=null}}),(0,t.jsx)(i.OverlayIntentProvider,{value:p.intentContextValue,children:(0,t.jsx)(a.Dialog.Root,{"data-slot":"dialog",open:s,modal:r,disablePointerDismissal:n,actionsRef:d,onOpenChange:(e,t)=>
1{e||!1===r||"escape-key"!==t.reason||t.event.isTrusted?l?.(e,t):t.cancel(),p.reportActualOpenChange(e,t.isCanceled)},...u})})},"DialogClose",0,function({...e}){return(0,t.jsx)(a.Dialog.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,children:r,overlayClassName:c,overlayForceRender:p=!1,showCloseButton:g=!0,portalKeepMounted:f=!1,ref:m,...D}){let x=(0,i.useOverlayIntentPopupRef)(),[C,v]=o.useState(null),S=o.useMemo(()=>(0,l.composeRefs)(v,f?void 0:x),[x,f]),h=o.useMemo(()=>(0,l.composeRefs)(S,m),[S,m]);return(0,t.jsxs)(u,{keepMounted:f,children:[(0,t.jsx)(d,{className:c,forceRender:p}),(0,t.jsx)(a.Dialog.Popup,{ref:h,"data-slot":"dialog-content","data-surface":"",className:(0,s.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-2xl bg-background p-6 text-sm shadow-(--glass-shadow-lg) ring-1 ring-foreground/10 outline-hidden duration-100 data-closed:animate-out data-closed:fade-out-0 data-closed:fill-mode-forwards data-closed:zoom-out-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 sm:max-w-md",e),...D,children:(0,t.jsxs)(l.OverlayPortalContainerProvider,{container:C,children:[!f&&(0,t.jsx)(i.OverlayIntentPopupProbe,{}),r,g&&(0,t.jsxs)(a.Dialog.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-md opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,t.jsx)(n.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})})]})},"DialogDescription",0,function({className:e,...o}){return(0,t.jsx)(a.Dialog.Description,{"data-slot":"dialog-description",className:(0,s.cn)("text-sm text-muted-foreground [&_a]:underline [&_a]:underline-offset-3 hover:[&_a]:text-foreground",e),...o})},"DialogFooter",0,function({className:e,showCloseButton:o=!1,children:n,...i}){return(0,t.jsxs)("div",{"data-slot":"dialog-footer",className:(0,s.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...i,children:[n,o&&(0,t.jsx)(a.Dialog.Close,{render:(0,t.jsx)(r.Button,{variant:"outline"}),children:"Close"})]})},"DialogHeader",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,s.cn)("flex flex-col gap-2",e),...o})},"DialogTitle",0,function({className:e,...o}){return(0,t.jsx)(a.Dialog.Title,{"data-slot":"dialog-title",className:(0,s.cn)("leading-none font-medium",e),...o})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},35834,752344,366983,980001,887901,665825,e=>{"use strict";var t,o,a=e.i(297068),n=e.i(564690),r=e.i(190657),i=e.i(145353),l=e.i(487811);let s={...i.popupStateMapping,...l.transitionStatusMapping},u=a.forwardRef(function(e,t){let{render:o,className:a,style:i,forceRender:l=!1,...u}=e,{store:d}=(0,n.useDialogRootContext)(),c=d.useState("open"),p=d.useState("nested"),g=d.useState("mounted"),f=d.useState("transitionStatus");return(0,r.useRenderElement)("div",e,{state:{open:c,transitionStatus:f},ref:[d.context.backdropRef,t],stateAttributesMapping:s,props:[{role:"presentation",hidden:!g,style:{userSelect:"none",WebkitUserSelect:"none"}},u],enabled:l||!p})});e.s(["DialogBackdrop",0,u],35834);var d=e.i(173714),c=e.i(593713),p=e.i(507679);let g=a.forwardRef(function(e,t){let{render:o,className:a,style:i,disabled:l=!1,nativeButton:s=!0,...u}=e,{store:g}=(0,n.useDialogRootContext)(),f=g.useState("open"),{getButtonProps:m,buttonRef:D}=(0,d.useButton)({disabled:l,native:s});return(0,r.useRenderElement)("button",e,{state:{disabled:l},ref:[t,D],props:[{onClick:function(e){f&&g.setOpen(!1,(0,c.createChangeEventDetails)(p.REASONS.closePress,e.nativeEvent))}},u,m]})});e.s(["DialogClose",0,g],752344);var f=e.i(549822);let m=a.forwardRef(function(e,t){let{render:o,className:a,style:i,id:l,...s}=e,{store:u}=(0,n.useDialogRootContext)(),d=(0,f.useBaseUiId)(l);return u.useSyncedValueWithCleanup("descriptionElementId",d),(0,r.useRenderElement)("p",e,{ref:t,props:[{id:d},s]})});e.s(["DialogDescription",0,m],366983);var D=e.i(103435);let x=((t={}).nestedDialogs="--nested-dialogs",t),C=((o={})[o.open=i.CommonPopupDataAttributes.open]="open",o[o.closed=i.CommonPopupDataAttributes.closed]="closed",o[o.startingStyle=i.CommonPopupDataAttributes.startingStyle]="startingStyle",o[o.endingStyle=i.CommonPopupDataAttributes.endingStyle]="endingStyle",o.nested="data-nested",o.nestedDialogOpen="data-nested-dialog-open",o);var v=e.i(200622);let S=a.createContext(void 0);function h(){let e=a.useContext(S);if(void 0===e)throw Error((0,v.default)(26));return e}e.s(["DialogPortalContext",0,S,"useDialogPortalContext",0,h],980001);var R=e.i(752080),P=e.i(306733),O=e.i(904876),b=e.i(943306);let y={...i.popupStateMapping,...l.transitionStatusMapping,nestedDialogOpen:e=>e?{[C.nestedDialogOpen]:""}:null},E=a.forwardRef(function(e,t){let{render:o,className:a,style:i,finalFocus:l,initialFocus:s,...u}=e,{store:d}=(0,n.useDialogRootContext)(),c=d.useState("descriptionElementId"),p=d.useState("disablePointerDismissal"),g=d.useState("floatingRootContext"),f=d.useState("popupProps"),m=d.useState("modal"),C=d.useState("mounted"),v=d.useState("nested"),S=d.use
1State("nestedOpenDialogCount"),E=d.useState("open"),w=d.useState("openMethod"),I=d.useState("titleElementId"),j=d.useState("transitionStatus"),T=d.useState("role"),k=g.useState("floatingId"),A=u.id??k;h(),(0,R.useOpenChangeComplete)({open:E,ref:d.context.popupRef,onComplete(){E&&d.context.onOpenChangeComplete?.(!0)}});let M=void 0===s?(0,O.createDefaultInitialFocus)(d.context.popupRef):s,N=d.useStateSetter("popupElement"),B=(0,r.useRenderElement)("div",e,{state:{open:E,nested:v,transitionStatus:j,nestedDialogOpen:S>0},props:[f,{id:A,"aria-labelledby":I??void 0,"aria-describedby":c??void 0,role:T,...O.FOCUSABLE_POPUP_PROPS,hidden:!C,onKeyDown(e){P.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},style:{[x.nestedDialogs]:S}},u],ref:[t,d.context.popupRef,N],stateAttributesMapping:y});return(0,b.jsx)(D.FloatingFocusManager,{context:g,openInteractionType:w,disabled:!C,closeOnFocusOut:!p,initialFocus:M,returnFocus:l,modal:!1!==m,restoreFocus:"popup",children:B})});e.s(["DialogPopup",0,E],887901);var w=e.i(816045),I=e.i(964592),j=e.i(34756);let T=a.forwardRef(function(e,t){let{keepMounted:o=!1,...a}=e,{store:r}=(0,n.useDialogRootContext)(),i=r.useState("mounted"),l=r.useState("modal"),s=r.useState("open");return i||o?(0,b.jsx)(S.Provider,{value:o,children:(0,b.jsxs)(I.FloatingPortal,{ref:t,...a,children:[i&&!0===l&&(0,b.jsx)(j.InternalBackdrop,{ref:r.context.internalBackdropRef,inert:(0,w.inertValue)(!s)}),e.children]})}):null});e.s(["DialogPortal",0,T],665825)},762458,e=>{"use strict";e.s([],216875),e.i(216875);var t=e.i(35834),o=e.i(752344),a=e.i(366983),n=e.i(887901),r=e.i(665825),i=e.i(297068),l=e.i(564690),s=e.i(92504),u=e.i(193170),d=e.i(68024),c=e.i(208089),p=e.i(294976);e.s(["Backdrop",()=>t.DialogBackdrop,"Close",()=>o.DialogClose,"Description",()=>a.DialogDescription,"Handle",()=>p.DialogHandle,"Popup",()=>n.DialogPopup,"Portal",()=>r.DialogPortal,"Root",0,function(e){let t=i.useContext(l.IsDrawerContext)?"drawer":"dialog";return(0,s.useRenderDialogRoot)(e,t)},"Title",()=>d.DialogTitle,"Trigger",()=>c.DialogTrigger,"Viewport",()=>u.DialogViewport,"createHandle",()=>p.createDialogHandle],428221);var g=e.i(428221);e.s(["Dialog",0,g],762458)},564690,e=>{"use strict";var t=e.i(200622),o=e.i(297068);let a=o.createContext(!1),n=o.createContext(void 0);e.s(["DialogRootContext",0,n,"IsDrawerContext",0,a,"useDialogRootContext",0,function(e){let a=o.useContext(n);if(!1===e&&void 0===a)throw Error((0,t.default)(27));return a}])},362578,e=>{"use strict";var t=e.i(297068),o=e.i(15320),a=e.i(832817),n=e.i(704056),r=e.i(804652),i=e.i(593713),l=e.i(507679),s=e.i(904876);e.s(["DialogInteractions",0,function({store:e,parentContext:i,isDrawer:l}){let u=e.useState("open"),d=e.useState("disablePointerDismissal"),c=e.useState("modal"),p=e.useState("popupElement"),g=e.useState("floatingRootContext"),[f,m]=t.useState(0),[D,x]=t.useState(0),C=0===f,v=(0,n.useDismiss)(g,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===c?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button||"touches"in t&&1!==t.touches.length)return!1;let o=(0,r.getTarget)(t);return!!C&&!d&&(!c||!e.context.internalBackdropRef.current&&!e.context.backdropRef.current||e.context.internalBackdropRef.current===o||e.context.backdropRef.current===o||(0,r.contains)(o,p)&&!o?.hasAttribute("data-base-ui-portal"))},escapeKey:C});(0,o.useScrollLock)(u&&!0===c,p),e.useContextCallback("onNestedDialogOpen",(e,t)=>{m(e),x(t)}),e.useContextCallback("onNestedDialogClose",()=>{m(0),x(0)}),t.useEffect(()=>(i?.onNestedDialogOpen&&u&&i.onNestedDialogOpen(f+1,D+ +!!l),i?.onNestedDialogClose&&!u&&i.onNestedDialogClose(),()=>{i?.onNestedDialogClose&&u&&i.onNestedDialogClose()}),[l,u,f,D,i]);let S=v.reference??a.EMPTY_OBJECT,h=v.trigger??a.EMPTY_OBJECT,R=v.floating??a.EMPTY_OBJECT;return(0,s.usePopupInteractionProps)(e,{activeTriggerProps:S,inactiveTriggerProps:h,popupProps:R,nestedOpenDialogCount:f,nestedOpenDrawerCount:D}),null},"useDialogRoot",0,function(e){let{store:o,actionsRef:a}
1=e,n=o.useState("open");(0,s.usePopupRootSync)(o,n),(0,s.useImplicitActiveTrigger)(o);let{forceUnmount:r}=(0,s.useOpenStateTransitions)(n,o),u=t.useCallback(()=>{o.setOpen(!1,(0,i.createChangeEventDetails)(l.REASONS.imperativeAction))},[o]);t.useImperativeHandle(a,()=>({unmount:r,close:u}),[r,u])}])},92504,596107,e=>{"use strict";var t=e.i(297068),o=e.i(341847),a=e.i(362578),n=e.i(564690),r=e.i(675007),i=e.i(649111),l=e.i(293616),s=e.i(373881),u=e.i(904876);let d={...l.popupStoreSelectors,modal:(0,r.createSelector)(e=>e.modal),nested:(0,r.createSelector)(e=>e.nested),nestedOpenDialogCount:(0,r.createSelector)(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:(0,r.createSelector)(e=>e.nestedOpenDrawerCount),disablePointerDismissal:(0,r.createSelector)(e=>e.disablePointerDismissal),openMethod:(0,r.createSelector)(e=>e.openMethod),descriptionElementId:(0,r.createSelector)(e=>e.descriptionElementId),titleElementId:(0,r.createSelector)(e=>e.titleElementId),viewportElement:(0,r.createSelector)(e=>e.viewportElement),role:(0,r.createSelector)(e=>e.role)};class c extends i.ReactStore{constructor(e,o,a=!1){const n=new s.PopupTriggerMap,r=function(e={}){return{...(0,l.createInitialPopupStoreState)(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e);r.floatingRootContext=(0,l.createPopupFloatingRootContext)(n,o,a),super(r,{popupRef:t.createRef(),backdropRef:t.createRef(),internalBackdropRef:t.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:n,onOpenChange:void 0,onOpenChangeComplete:void 0},d)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o={open:e};(0,u.setPopupOpenState)(o,e,t.trigger),this.update(o)};static useStore(e,t){return(0,u.usePopupStore)(e,(e,o)=>new c(t,e,o),!0).store}}e.s(["DialogStore",0,c],596107);var p=e.i(943306);e.s(["useRenderDialogRoot",0,function(e,r="dialog"){let{children:i,open:l,defaultOpen:s=!1,onOpenChange:u,onOpenChangeComplete:d,disablePointerDismissal:g=!1,modal:f=!0,actionsRef:m,handle:D,triggerId:x,defaultTriggerId:C=null}=e,v="alert-dialog"===r,S=(0,n.useDialogRootContext)(!0),h={modal:!!v||f,disablePointerDismissal:v||g,nested:!!S,role:v?"alertdialog":"dialog"},R=c.useStore(D?.store,{open:s,openProp:l,activeTriggerId:C,triggerIdProp:x,...h});(0,o.useOnFirstRender)(()=>{let e=void 0===l&&!1===R.state.open&&!0===s?{open:!0,activeTriggerId:C}:null;v?R.update(e?{...h,...e}:h):e&&R.update(e)}),R.useControlledProp("openProp",l),R.useControlledProp("triggerIdProp",x),R.useSyncedValues(h),R.useContextCallback("onOpenChange",u),R.useContextCallback("onOpenChangeComplete",d);let P=R.useState("open"),O=R.useState("mounted"),b=R.useState("payload");(0,a.useDialogRoot)({store:R,actionsRef:m});let y=t.useMemo(()=>({store:R}),[R]);return(0,p.jsx)(n.IsDrawerContext.Provider,{value:!1,children:(0,p.jsxs)(n.DialogRootContext.Provider,{value:y,children:[(P||O)&&(0,p.jsx)(a.DialogInteractions,{store:R,parentContext:S?.store.context,isDrawer:"drawer"===r}),"function"==typeof i?i({payload:b}):i]})})}],92504)},294976,656204,e=>{"use strict";var t=e.i(596107),o=e.i(593713),a=e.i(507679);class n{constructor(e){this.store=e??new t.DialogStore}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,(0,o.createChangeEventDetails)(a.REASONS.imperativeAction,void 0,t))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,(0,o.createChangeEventDetails)(a.REASONS.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,(0,o.createChangeEventDetails)(a.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}}e.s(["DialogHandle",0,n,"createDialogHandle",0,function(){return new n}],294976);var r=e.i(297068);function i(){return window.__snowViewportBridge__??null}let l=r.createContext(null),s=l.Provider;e.s(["OverlayIntentPopupProbe",0,function(){let e=r.useContext(l);return r.useLayoutEffect(()=>{if(e)return e.notifyPopupMounted(),()=>{e.notifyPopupUnmounted()}},[e]),null},"OverlayIntentProvider",0,s,"useOverlayIntentPopupRef",0,function(){let e=r.useContext(l);return r.useCallback(t=>{t&&e?.preparePopupMount(t)},[e])},"useOverlayIntentRoot",0,function(e){let{open:t,requestClose:o}
1=e,a=r.useRef(null),n=r.useRef(o),l=void 0!==t,s=r.useRef(l),u=r.useRef(t);return r.useLayoutEffect(()=>{n.current=o,s.current=l}),r.useLayoutEffect(()=>{let e=u.current;u.current=t,l&&(!0===e&&!1===t?a.current?.setClosing(!0):!0===t&&a.current?.setClosing(!1))},[l,t]),{intentContextValue:r.useMemo(()=>({preparePopupMount:e=>{if(!i())return;let t=document.activeElement;t instanceof HTMLElement&&!e.contains(t)&&e.focus({preventScroll:!0})},notifyPopupMounted:()=>{let e=i();e&&(null===a.current&&(a.current=e.registerOverlay(()=>{n.current?.()})),a.current.notifyOpen())},notifyPopupUnmounted:()=>{a.current?.release(),a.current=null}}),[]),reportActualOpenChange:r.useCallback((e,t)=>{s.current||t||a.current?.setClosing(!e)},[])}}],656204)},68024,208089,e=>{"use strict";var t=e.i(297068),o=e.i(564690),a=e.i(190657),n=e.i(549822);let r=t.forwardRef(function(e,t){let{render:r,className:i,style:l,id:s,...u}=e,{store:d}=(0,o.useDialogRootContext)(),c=(0,n.useBaseUiId)(s);return d.useSyncedValueWithCleanup("titleElementId",c),(0,a.useRenderElement)("h2",e,{ref:t,props:[{id:c},u]})});e.s(["DialogTitle",0,r],68024);var i=e.i(200622),l=e.i(173714),s=e.i(145353),u=e.i(13536),d=e.i(904876),c=e.i(895621),p=e.i(166531);let g=t.forwardRef(function(e,r){let{render:g,className:f,style:m,disabled:D=!1,nativeButton:x=!0,id:C,payload:v,handle:S,...h}=e,R=(0,o.useDialogRootContext)(!0),P=S?.store??R?.store;if(!P)throw Error((0,i.default)(79));let O=(0,n.useBaseUiId)(C),b=P.useState("floatingRootContext"),y=P.useState("isOpenedByTrigger",O),E=P.useState("triggerPopupId",O),w=t.useRef(null),{registerTrigger:I,isMountedByThisTrigger:j}=(0,d.useTriggerDataForwarding)(O,w,P,{payload:v}),{getButtonProps:T,buttonRef:k}=(0,l.useButton)({disabled:D,native:x}),A=(0,c.useClick)(b,{enabled:null!=b}),M=(0,p.useOpenMethodTriggerProps)(()=>P.select("open"),e=>{P.set("openMethod",e)}),N=P.useState("triggerProps",j);return(0,a.useRenderElement)("button",e,{state:{disabled:D,open:y},ref:[k,r,I,w],props:[A.reference,N,M,{[u.CLICK_TRIGGER_IDENTIFIER]:"",id:O,"aria-haspopup":"dialog","aria-expanded":y,"aria-controls":E},h,T],stateAttributesMapping:s.triggerOpenStateMapping})});e.s(["DialogTrigger",0,g],208089)},193170,e=>{"use strict";var t,o=e.i(297068),a=e.i(190657),n=e.i(145353),r=e.i(487811),i=e.i(564690),l=e.i(980001);let s=((t={})[t.open=n.CommonPopupDataAttributes.open]="open",t[t.closed=n.CommonPopupDataAttributes.closed]="closed",t[t.startingStyle=n.CommonPopupDataAttributes.startingStyle]="startingStyle",t[t.endingStyle=n.CommonPopupDataAttributes.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t),u={...n.popupStateMapping,...r.transitionStatusMapping,nested:e=>e?{[s.nested]:""}:null,nestedDialogOpen:e=>e?{[s.nestedDialogOpen]:""}:null},d=o.forwardRef(function(e,t){let{render:o,className:n,style:r,children:s,...d}=e,c=(0,l.useDialogPortalContext)(),{store:p}=(0,i.useDialogRootContext)(),g=p.useState("open"),f=p.useState("nested"),m=p.useState("transitionStatus"),D=p.useState("nestedOpenDialogCount"),x=p.useState("mounted"),C=p.useStateSetter("viewportElement");return(0,a.useRenderElement)("div",e,{enabled:c||x,state:{open:g,nested:f,transitionStatus:m,nestedDialogOpen:D>0},ref:[t,C],stateAttributesMapping:u,props:[{role:"presentation",hidden:!x,style:{pointerEvents:g?void 0:"none"},children:s},d]})});e.s(["DialogViewport",0,d],193170)},938180,e=>{"use strict";var t=e.i(892466);e.s(["XIcon",()=>t.default])}]);
2
3//# chunkId=01a0804f-84d0-7820-a3c5-992ae118a54b

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.