PageSourceSearch

https://printforhelp.org/_next/static/chunks/0fljrukmq853p.js

js printforhelp.org collected 2026-10-04 17:35:16 UTC 64,155 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42520,e=>{"use strict";var t=e.i(18050),a=e.i(88480),n=e.i(57537),r=e.i(55141),s=e.i(12828),o=e.i(51107),i=e.i(41047),l=e.i(18566),u=e.i(71645),c=e.i(95187);let d=(0,c.createServerReference)("40e34874a413fde02114486c0e21db6765f2a6bb6e",c.callServer,void 0,c.findSourceMapURL,"chooseUsernameAction");var m=e.i(14040);e.s(["ChooseUsernameModal",0,function({suggestion:e}){let{dict:c}=(0,m.useI18n)(),f=c.chooseUsername,h=(0,l.useRouter)(),[p,b]=(0,u.useState)(e),[v,g]=(0,u.useState)(null),[x,y]=(0,u.useTransition)();return(0,t.jsx)(o.Modal.Backdrop,{isOpen:!0,children:(0,t.jsx)(o.Modal.Container,{children:(0,t.jsxs)(o.Modal.Dialog,{className:"sm:max-w-[380px]",children:[(0,t.jsx)(o.Modal.Header,{children:(0,t.jsx)(o.Modal.Heading,{children:f.title})}),(0,t.jsxs)(o.Modal.Body,{className:"flex flex-col gap-4",children:[(0,t.jsx)("p",{className:"text-sm text-muted",children:f.description}),(0,t.jsxs)(i.TextField,{value:p,onChange:e=>{b(e),v&&g(null)},isInvalid:!!v,isDisabled:x,children:[(0,t.jsx)(s.Label,{children:f.label}),(0,t.jsx)(r.Input,{autoComplete:"username",placeholder:f.placeholder})]}),(0,t.jsx)("p",{className:"text-xs text-muted",children:f.hint}),v&&(0,t.jsxs)(a.Alert,{status:"danger",children:[(0,t.jsx)(a.Alert.Indicator,{}),(0,t.jsx)(a.Alert.Content,{children:(0,t.jsx)(a.Alert.Description,{children:v})})]})]}),(0,t.jsx)(o.Modal.Footer,{children:(0,t.jsx)(n.Button,{isPending:x,onPress:function(){y(async()=>{let e=await d(p);e.error?g(e.error):h.refresh()})},className:"w-full",children:x?f.submitting:f.submit})})]})})})}],42520)},68493,e=>{"use strict";var t=e.i(71645),a=e.i(95187);let n=(0,a.createServerReference)("40eeb4fbbfc69073e35580c0bccf4f40f9640d4815",a.callServer,void 0,a.findSourceMapURL,"persistLocaleAction");e.s(["LocaleSync",0,function({effectiveLocale:e,accountLocale:a}){let r=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{r.current||e===a||(r.current=!0,n(e))},[e,a]),null}],68493)},62773,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("4003e397a36331eb7469e9e292027098c6c5bfbd2a",t.callServer,void 0,t.findSourceMapURL,"setLocaleAction");e.s(["setLocaleAction",0,a])},41426,e=>{"use strict";var t=e.i(18050),a=e.i(16995),n=e.i(18566),r=e.i(71645),s=e.i(73665),o=e.i(62773),i=e.i(87848),l=e.i(14040);e.s(["LocaleToast",0,function(){let{locale:e,dict:u}=(0,l.useI18n)(),c=(0,n.useRouter)(),d=(0,r.useRef)(!1),m=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(d.current)return;d.current=!0;let n=i.LOCALES.find(t=>t!==e);async function r(e){m.current=!0,a.toast.clear(),await (0,o.setLocaleAction)(e),c.refresh()}(0,a.toast)(u.localePrompt.title,{description:u.localePrompt.description,indicator:(0,t.jsx)(s.MdTranslate,{}),timeout:0,actionProps:{children:i.LOCALE_NAMES[n],onPress:()=>void r(n)},onClose:()=>{m.current||(0,o.setLocaleAction)(e)}})},[u,e,c]),null}])},51460,e=>{"use strict";var t=e.i(18050),a=e.i(57537),n=e.i(51107),r=e.i(18566),s=e.i(71645),o=e.i(95187);let i=(0,o.createServerReference)("40f70be8ae4f4c91e7c2089fd0608b48dd9daf611a",o.callServer,void 0,o.findSourceMapURL,"setMakerFlagAction");var l=e.i(14040);let u="pforh_maker_prompt_dismissed";e.s(["MakerPrompt",0,function(){let{dict:e}=(0,l.useI18n)(),o=e.makerPrompt,c=(0,r.useRouter)(),[d,m]=(0,s.useState)(!1),[f,h]=(0,s.useTransition)();function p(e){h(async()=>{await i(e),m(!1),c.refresh()})}function b(){sessionStorage.setItem(u,"1"),m(!1)}return(0,s.useEffect)(()=>{"1"!==sessionStorage.getItem(u)&&m(!0)},[]),(0,t.jsx)(n.Modal.Backdrop,{isOpen:d,onOpenChange:e=>{e||b()},children:(0,t.jsx)(n.Modal.Container,{children:(0,t.jsxs)(n.Modal.Dialog,{className:"sm:max-w-[520px]",children:[(0,t.jsx)(n.Modal.Header,{children:(0,t.jsx)(n.Modal.Heading,{children:o.title})}),(0,t.jsx)(n.Modal.Body,{children:(0,t.jsx)("p",{children:o.question})}),(0,t.jsxs)(n.Modal.Footer,{className:"flex-col-reverse sm:flex-row sm:justify-end",children:[(0,t.jsx)(a.Button,{variant:"tertiary",isDisabled:f,onPress:b,children:o.later}),(0,t.jsx)(a.Button,{variant:"secondary",isDisabled:f,onPress:()=>p(!1),children:o.no}),(0,t.jsx)(a.Button,{isPending:f,onPress:()=>p(!0),children:o.yes})]})]})})})}],51460)},10551,e=>{"use strict";var t=e.i(42010);let a=(0,t.tv)({slots:{menu:"dropdown__menu",popover:"dropdown__popover",root:"dropdown",trigger:"dropdown__trigger"}});var n=e.i(71645),r=e.i(83579),s=e.i(66069),o=e.i(9059),i=e.i(59381);let l=(0,t.tv)({base:"menu-section"});var u=e.i(18050);let c=({children:e,className:t,...a})=>{let r=n.default.useMemo(()=>l({class:"string"==typeof t?t:void 0}),[t]);return(0,u.jsx)(s.MenuSection,{className:r,...a,children:e})},d=(0,t.tv)({defaultVariants:{variant:"default"},slots:{indicator:"menu-item__indicator",item:"menu-item",submenuIndicator:"menu-item__indicator menu-item__indicator--submenu"},variants:{variant:{danger:{item:"menu-item--danger"},default:{item:"menu-item--default"}}}});var m=e.i(55590),f=e.i(92557);let h=(0,n.createContext)({}),p=({children:e,className:t,variant:a,...r})=>{let o=n.default.useMemo(()=>d({variant:a}),[a]);return(0,u.jsx)(s.MenuItem,{className:(0,i.composeTwRenderProps)(t,o.item()),"data-slot":"menu-item",...r,children:t=>(0,u.jsx)(h,{value:{slots:o,state:t},children:"function"==typeof e?e(t):e})})},b=({children:e,className:t,type:a="checkmark",...r})=>{let{slots:s,state:o}=(0,n.useContext)(h),l=o?.isSelected,c="function"==typeof e?e(o??{}):e||("dot"===a?(0,u.jsx)("svg",{"aria-hidden":"true","data-slot":"menu-item-indicator--dot",fill:"
1currentColor",fillRule:"evenodd",role:"presentation",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{clipRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14",fillRule:"evenodd"})}):(0,u.jsx)("svg",{"aria-hidden":"true","data-slot":"menu-item-indicator--checkmark",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:l?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 17 18",children:(0,u.jsx)("polyline",{points:"1 9 7 14 15 4"})}));return(0,u.jsx)(m.dom.span,{"aria-hidden":"true",className:(0,i.composeSlotClassName)(s?.indicator,t),"data-slot":"menu-item-indicator","data-type":a,"data-visible":l||void 0,...r,children:c})},v=({children:e,className:t,...a})=>{let{slots:r,state:s}=(0,n.useContext)(h);if(!s?.hasSubmenu)return null;let o=(0,u.jsx)(f.IconChevronRight,{});return(0,u.jsx)(m.dom.span,{"aria-hidden":"true",className:(0,i.composeSlotClassName)(r?.submenuIndicator,t),"data-slot":"submenu-indicator",...a,children:e??o})};var g=e.i(73580);let x=(0,n.createContext)({}),y=({children:e,...t})=>{let r=n.default.useMemo(()=>a(),[]);return(0,u.jsx)(x,{value:{slots:r},children:(0,u.jsx)(s.MenuTrigger,{...t,children:e})})},j=Object.assign(y,{Root:y,Trigger:({children:e,className:t,...a})=>{let{slots:s}=(0,n.useContext)(x);return(0,u.jsx)(r.Button,{className:(0,i.composeTwRenderProps)(t,s?.trigger()),"data-slot":"dropdown-trigger",...a,children:t=>(0,u.jsx)(u.Fragment,{children:"function"==typeof e?e(t):e})})},Popover:({children:e,className:t,placement:a,...r})=>{let{slots:s}=(0,n.useContext)(x);return(0,u.jsx)(g.SurfaceContext,{value:{variant:"default"},children:(0,u.jsx)(o.Popover,{...r,className:(0,i.composeTwRenderProps)(t,s?.popover()),"data-slot":"dropdown-popover",placement:a,children:e})})},Menu:function({className:e,...t}){let{slots:a}=(0,n.useContext)(x);return(0,u.jsx)(s.Menu,{className:(0,i.composeTwRenderProps)(e,a?.menu()),"data-selection-mode":t.selectionMode,"data-slot":"dropdown-menu",...t})},Section:e=>(0,u.jsx)(c,{...e}),Item:e=>(0,u.jsx)(p,{...e}),ItemIndicator:e=>(0,u.jsx)(b,{...e}),SubmenuIndicator:e=>(0,u.jsx)(v,{...e}),SubmenuTrigger:({children:e,...t})=>(0,u.jsx)(s.SubmenuTrigger,{"data-slot":"dropdown-submenu-trigger",...t,children:e})});e.s(["Dropdown",0,j],10551)},45492,e=>{"use strict";var t=e.i(18050),a=e.i(57537),n=e.i(10551);let r=(0,e.i(42010).tv)({base:"header"});var s=e.i(61582);let o=({children:e,className:a,...n})=>(0,t.jsx)(s.Header,{className:r({className:a}),"data-slot":"header",...n,children:e});var i=e.i(12828),l=e.i(18566),u=e.i(71645),c=e.i(73665),d=e.i(62773),m=e.i(87848),f=e.i(14040);e.s(["LocaleToggle",0,function(){let{locale:e,dict:r}=(0,f.useI18n)(),s=(0,l.useRouter)(),[h,p]=(0,u.useTransition)();return(0,t.jsxs)(n.Dropdown,{children:[(0,t.jsx)(a.Button,{isIconOnly:!0,size:"sm",variant:"tertiary","aria-label":r.header.localeAriaLabel,isDisabled:h,className:"min-h-11 min-w-11 sm:min-h-9 sm:min-w-9",children:(0,t.jsx)(c.MdTranslate,{})}),(0,t.jsx)(n.Dropdown.Popover,{className:"min-w-[200px]",children:(0,t.jsx)(n.Dropdown.Menu,{selectionMode:"single",disallowEmptySelection:!0,selectedKeys:new Set([e]),onSelectionChange:function(t){if("all"===t)return;let a=[...t][0];a&&a!==e&&p(async()=>{await (0,d.setLocaleAction)(a),s.refresh()})},children:(0,t.jsxs)(n.Dropdown.Section,{children:[(0,t.jsx)(o,{children:r.header.localeMenuHeading}),m.LOCALES.map(e=>(0,t.jsxs)(n.Dropdown.Item,{id:e,textValue:m.LOCALE_NAMES[e],children:[(0,t.jsx)(n.Dropdown.ItemIndicator,{}),(0,t.jsx)(i.Label,{children:m.LOCALE_NAMES[e]})]},e))]})})})]})}],45492)},2461,e=>{"use strict";var t=e.i(18050);let a=(0,e.i(42010).tv)({defaultVariants:{variant:"primary"},slots:{base:"tabs",separator:"tabs__separator",tab:"tabs__tab",tabIndicator:"tabs__indicator",tabList:"tabs__list",tabListContainer:"tabs__list-container",tabPanel:"tabs__panel"},variants:{variant:{primary:{},secondary:{base:"tabs--secondary"}}}});var n=e.i(71645),r=e.i(10390),s=e.i(23316),o=e.i(50840),i=e.i(90319),l=e.i(75975);e.i(47167);let u=new WeakMap;function c(e,t,a){if(!e)return"";"string"==typeof t&&(t=t.replace(/\s+/g,""));let n=u.get(e);return`${n}-${a}
1-${t}`}class d{constructor(e,t,a,n=new Set){this.collection=e,this.flipDirection="rtl"===t&&"horizontal"===a,this.disabledKeys=n,this.tabDirection="horizontal"===a}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do null==(t=this.collection.getKeyAfter(t))&&(t=this.collection.getFirstKey());while(null!=t&&this.isDisabled(t))return t}getPreviousKey(e){let t=e;do null==(t=this.collection.getKeyBefore(t))&&(t=this.collection.getLastKey());while(null!=t&&this.isDisabled(t))return t}}var m=e.i(77926),f=e.i(3530),h=e.i(43418),p=e.i(95751),b=e.i(71356),v=e.i(62918),g=e.i(63499),x=e.i(26202),y=e.i(69431),j=e.i(2129),C=e.i(59775),w=e.i(41975),S=e.i(77894),k=e.i(62645),E=e.i(89934);function L(e,t){let a=null;if(e){for(a=e.getFirstKey();null!=a&&(t.has(a)||e.getItem(a)?.props?.isDisabled)&&a!==e.getLastKey();)a=e.getKeyAfter(a);null!=a&&(t.has(a)||e.getItem(a)?.props?.isDisabled)&&a===e.getLastKey()&&(a=e.getFirstKey())}return a}var T=e.i(4254),N=e.i(83222),P=e.i(33336);e.i(69299);var $=e.i(1083);let R=(0,n.createContext)(null),I=(0,n.createContext)(null),M=(0,n.forwardRef)(function(e,t){[e,t]=(0,s.useContextProps)(e,t,R);let{children:a,orientation:r="horizontal"}=e;return a=(0,n.useMemo)(()=>"function"==typeof a?a({orientation:r,defaultChildren:null}):a,[a,r]),n.default.createElement(j.CollectionBuilder,{content:a},a=>n.default.createElement(A,{props:e,collection:a,tabsRef:t}))});function A({props:e,tabsRef:t,collection:a}){let{orientation:r="horizontal"}=e,o=function(e){let t=function(e){let[t,a]=(0,E.useControlledState)(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,n.useMemo)(()=>null!=t?[t]:[],[t]),{collection:s,disabledKeys:o,selectionManager:i}=(0,k.useListState)({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:n=>{if("all"===n)return;let r=n.values().next().value??null;r===t&&e.onSelectionChange&&e.onSelectionChange(r),a(r)}}),l=null!=t?s.getItem(t):null;return{collection:s,disabledKeys:o,selectionManager:i,selectedKey:t,setSelectedKey:a,selectedItem:l}}({...e,onSelectionChange:e.onSelectionChange?t=>{null!=t&&e.onSelectionChange?.(t)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??L(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:a,collection:r,selectedKey:s}=t,o=(0,n.useRef)(s);return(0,n.useEffect)(()=>{let n=s;null==e.selectedKey&&(a.isEmpty||null==n||!r.getItem(n))&&null!=(n=L(r,t.disabledKeys))&&a.setSelectedKeys([n]),(null==n||null!=a.focusedKey)&&(a.isFocused||n===o.current)||a.setFocusedKey(n),o.current=n}),{...t,isDisabled:e.isDisabled||!1}}({...e,collection:a,children:void 0}),{focusProps:i,isFocused:u,isFocusVisible:c}=(0,N.useFocusRing)({within:!0}),d=(0,n.useMemo)(()=>({orientation:r,isFocusWithin:u,isFocusVisible:c}),[r,u,c]),m=(0,s.useRenderProps)({...e,defaultClassName:"react-aria-Tabs",values:d}),f=(0,b.filterDOMProps)(e,{global:!0});return n.default.createElement(s.dom.div,{...(0,l.mergeProps)(f,m,i),ref:t,slot:e.slot||void 0,"data-focused":u||void 0,"data-orientation":r,"data-focus-visible":c||void 0,"data-disabled":o.isDisabled||void 0},n.default.createElement(s.Provider,{values:[[R,e],[I,o]]},m.children))}let D=(0,n.forwardRef)(function(e,t){return(0,n.useContext)(I)?n.default.createElement(_,{props:e,forwardedRef:t}):n.default.createElement(j.Collection,e)});function _({props:e,forwardedRef:t}){let a=(0,n.useContext)(I),{CollectionRoot:r}=(0,n.useContext)(o.CollectionRendererContext),{orientation:c="horizontal",keyboardActivation:v="automatic"}
1=(0,s.useSlottedContext)(R),g=(0,$.useObjectRef)(t),{tabListProps:x}=function(e,t,a){let{orientation:r="horizontal",keyboardActivation:s="automatic"}=e,{collection:o,selectionManager:i,disabledKeys:c}=t,{direction:b}=(0,h.useLocale)(),v=(0,n.useMemo)(()=>new d(o,b,r,c),[o,c,r,b]),{collectionProps:g}=(0,p.useSelectableCollection)({ref:a,selectionManager:i,keyboardDelegate:v,selectOnFocus:"automatic"===s,disallowEmptySelection:!0,scrollRef:a,linkBehavior:"selection"}),x=(0,m.useId)();u.set(t,x);let y=(0,f.useLabels)({...e,id:x});return{tabListProps:{...(0,l.mergeProps)(g,y),role:"tablist","aria-orientation":r,tabIndex:void 0}}}({...e,orientation:c,keyboardActivation:v},a,g),y=(0,s.useRenderProps)({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:c,state:a}}),j=(0,b.filterDOMProps)(e,{global:!0});return delete j.id,n.default.createElement(s.dom.div,{...(0,l.mergeProps)(j,y,x),ref:g,"data-orientation":c||void 0},n.default.createElement(i.SharedElementTransition,null,n.default.createElement(r,{collection:a.collection,persistedKeys:(0,o.usePersistedKeys)(a.selectionManager.focusedKey)})))}class F extends C.CollectionNode{static{this.type="item"}}let B=(0,j.createLeafComponent)(F,(e,t,a)=>{let o=(0,n.useContext)(I),i=(0,$.useObjectRef)(t),{tabProps:u,isSelected:d,isDisabled:m,isPressed:f}=function(e,t,a){let{key:n,isDisabled:r,shouldSelectOnPressUp:s}=e,{selectionManager:o,selectedKey:i}=t,u=n===i,d=r||t.isDisabled||t.selectionManager.isDisabled(n),m=t.collection.getItem(n),{itemProps:f,isPressed:h}=(0,x.useSelectableItem)({selectionManager:o,key:n,ref:a,isDisabled:d,shouldSelectOnPressUp:s??m?.props.href!=null,linkBehavior:"selection"}),p=c(t,n,"tab"),y=c(t,n,"tabpanel"),{tabIndex:j}=f,C=(0,b.filterDOMProps)(m?.props,{labelable:!0});delete C.id;let w=(0,g.useLinkProps)(m?.props),{focusableProps:S}=(0,v.useFocusable)({...m?.props,isDisabled:d},a);return{tabProps:(0,l.mergeProps)(C,S,w,f,{id:p,"aria-selected":u,"aria-disabled":d||void 0,"aria-controls":u?y:void 0,tabIndex:d?void 0:j,role:"tab"}),isSelected:u,isDisabled:d,isPressed:h}}({key:a.key,...e},o,i),{focusProps:h,isFocused:p,isFocusVisible:y}=(0,N.useFocusRing)(),{hoverProps:j,isHovered:C}=(0,P.useHover)({isDisabled:m,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),w=(0,s.useRenderProps)({...e,id:void 0,children:a.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:d,isDisabled:m,isFocused:p,isFocusVisible:y,isPressed:f,isHovered:C}}),S=a.props.href?s.dom.a:s.dom.div,k=(0,b.filterDOMProps)(e,{global:!0});return delete k.id,delete k.onClick,n.default.createElement(S,{...(0,l.mergeProps)(k,w,u,h,j),ref:i,"data-selected":d||void 0,"data-disabled":m||void 0,"data-focused":p||void 0,"data-focus-visible":y||void 0,"data-pressed":f||void 0,"data-hovered":C||void 0},n.default.createElement(r.SelectionIndicatorContext.Provider,{value:{isSelected:d}},w.children))}),O=(0,w.createHideableComponent)(function(e,t){let a=(0,n.useContext)(I),r=(0,$.useObjectRef)(t),s=a.selectedKey===e.id,[o,i]=(0,n.useState)(null!=a.selectedKey?s:null);null==o&&null!=a.selectedKey?i(s):!s&&o&&i(!1);let l=(0,T.useExitAnimation)(r,s);return s||e.shouldForceMount||l?n.default.createElement(K,{...e,tabPanelRef:r,isInitiallySelected:o||!1,isExiting:l}):null});function K(e){let t,a,r,i=(0,n.useContext)(I),{id:u,tabPanelRef:d,isInitiallySelected:m,isExiting:h,...p}=e,{tabPanelProps:v}=(t=(0,y.useHasTabbableChild)(d)?void 0:0,a=c(i,e.id??i?.selectedKey,"tabpanel"),r=(0,f.useLabels)({...e,id:a,"aria-labelledby":c(i,i?.selectedKey,"tab")}),{tabPanelProps:(0,l.mergeProps)(r,{tabIndex:t,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}),{focusProps:g,isFocused:x,isFocusVisible:j}=(0,N.useFocusRing)(),C=i.selectedKey===e.id,w=(0,T.useEnterAnimation)(d)&&!m,k=(0,s.useRenderProps)({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:x,isFocusVisible:j,isInert:(0,S.inertValue)(!C),isEntering:w,isExiting:h,state:i}}),E=(0,b.filterDOMProps)(p,{global:!0});delete E.id;let L=C?(0,l.mergeProps)(E,v,g,k):(0,l.mergeProps)(E,k);return n.default.createElement(s.dom.div,{...L,ref:d,"data-focused":x||void 0,"data-focus-visible":j||void 0,inert:(0,S.inertValue)(!C||e.inert),"data-inert":C?void 0:"true","data-entering":w||void 0,"data-exiting":h||void 0},n.default.createElement(s.Provider,{values:[[R,null],[I,null]]},n.default.createElement(o.CollectionRendererContext.Provider,{value:o.DefaultCollectionRenderer},k.children)))}var H=e.i(59381),U=e.i(55590);let z=(0,n.createContext)({}),V=({children:e,className:r,orientation:s="horizontal",variant:o,...i})=>{let l=n.default.useMemo(()=>a({variant:o}),[o]);return(0,t.jsx)(z,{value:{orientation:s,slots:l},children:(0,t.jsx)(M,{...i,className:(0,H.composeTwRenderProps)(r,l.base()),"data-slot":"tabs",orientation:s,children:e})})},W=Object.assign(V,{Root:V,ListContainer:({children:e,className:a,...r})=>{let{slots:s}=(0,n.useContext)(z);return(0,t.jsx)(U.dom.div,{className:(0,H.composeSlotClassName)(s?.tabListContainer,a),"data-slot":"tabs-list-container",...r,children:e})},List:({children:e,className:a,...r})=>{let{slots:s}=(0,n.useContext)(z);return(0,t.jsx)(D,{...r,className:(0,H.composeTwRenderProps)(a,s?.tabList(
1)),"data-slot":"tabs-list",children:e})},Tab:({children:e,className:a,...r})=>{let{slots:s}=(0,n.useContext)(z);return(0,t.jsx)(B,{...r,className:(0,H.composeTwRenderProps)(a,s?.tab()),"data-slot":"tabs-tab",children:e})},Indicator:({className:e,...a})=>{let{slots:s}=(0,n.useContext)(z);return(0,t.jsx)(r.SelectionIndicator,{className:(0,H.composeSlotClassName)(s?.tabIndicator,e),"data-slot":"tabs-indicator",...a})},Separator:({className:e,...a})=>{let{slots:r}=(0,n.useContext)(z);return(0,t.jsx)(U.dom.span,{"aria-hidden":"true",className:(0,H.composeSlotClassName)(r?.separator,e),"data-slot":"tabs-separator",...a})},Panel:({children:e,className:a,...r})=>{let{slots:s}=(0,n.useContext)(z);return(0,t.jsx)(O,{...r,className:(0,H.composeTwRenderProps)(a,s?.tabPanel()),"data-slot":"tabs-panel",children:e})}});var q=e.i(22016),G=e.i(18566),Z=e.i(14040);e.s(["NavTabs",0,function({isAdmin:e,isMaintainer:a,isLoggedIn:n}){let r=(0,G.usePathname)(),{dict:s}=(0,Z.useI18n)(),o={id:"home",href:"/",label:s.nav.home},i={id:"centers",href:"/centers",label:s.nav.centers},l={id:"requests",href:"/requests",label:s.nav.requests},u={id:"parts",href:"/parts",label:s.nav.parts},c={id:"myContributions",href:"/my-contributions",label:s.nav.myContributions},d={id:"users",href:"/admin/users",label:s.nav.users},m={id:"notices",href:"/admin/notices",label:s.nav.notices},f={id:"about",href:"/about",label:s.nav.about},h=[o,i,l,u];n&&h.push(c),a&&h.push(m),e&&h.push(d),h.push(f);let p=r.startsWith("/centers")?"centers":r.startsWith("/requests")?"requests":r.startsWith("/parts")?"parts":r.startsWith("/my-contributions")?"myContributions":r.startsWith("/admin/notices")?"notices":r.startsWith("/admin")?"users":r.startsWith("/about")?"about":"home";return(0,t.jsx)(W,{variant:"secondary",selectedKey:p,className:"h-11 justify-start sm:h-full sm:justify-end",children:(0,t.jsx)(W.ListContainer,{children:(0,t.jsx)(W.List,{"aria-label":s.nav.ariaLabel,className:"min-h-11 border-b-0 sm:min-h-0",children:h.map(e=>(0,t.jsxs)(W.Tab,{id:e.id,href:e.href,className:"min-h-11 w-auto whitespace-nowrap sm:min-h-0",render:e=>(0,t.jsx)(q.default,{...e}),children:[e.label,(0,t.jsx)(W.Indicator,{})]},e.id))})})})}],2461)},99122,e=>{"use strict";let t=(0,e.i(42010).tv)({base:"separator",defaultVariants:{orientation:"horizontal",variant:"default"},variants:{orientation:{horizontal:"separator--horizontal",vertical:"separator--vertical"},variant:{default:"separator--default",secondary:"separator--secondary",tertiary:"separator--tertiary"}}});var a=e.i(88386),n=e.i(23316),r=e.i(18050);let s=({className:e,orientation:s,variant:o,...i})=>{let l=(0,n.useSlottedContext)(a.SeparatorContext),u=s??l?.orientation??"horizontal";return(0,r.jsx)(a.Separator,{"data-orientation":u,"data-slot":"separator",orientation:u,className:t({orientation:u,variant:o,className:e}),...i})},o=Object.assign(s,{Root:s});e.s(["Separator",0,o],99122)},77717,e=>{"use strict";var t=e.i(18050),a=e.i(42010);let n=(0,a.tv)({defaultVariants:{color:"default",placement:"top-right",size:"md",variant:"primary"},slots:{anchor:"badge-anchor",base:"badge",label:"badge__label"},variants:{color:{accent:{base:"badge--accent"},danger:{base:"badge--danger"},default:{base:"badge--default"},success:{base:"badge--success"},warning:{base:"badge--warning"}},placement:{"bottom-left":{base:"badge--bottom-left"},"bottom-right":{base:"badge--bottom-right"},"top-left":{base:"badge--top-left"},"top-right":{base:"badge--top-right"}},size:{lg:{base:"badge--lg"},md:{base:"badge--md"},sm:{base:"badge--sm"}},variant:{primary:{base:"badge--primary"},secondary:{base:"badge--secondary"},soft:{base:"badge--soft"}}}});var r=e.i(71645),s=e.i(60816),o=e.i(59381),i=e.i(55590);let l=(0,r.createContext)({}),u=({children:e,className:a,color:s,placement:u,size:d,variant:m,...f})=>{let h=r.default.useMemo(()=>n({color:s,placement:u,size:d,variant:m}),[s,u,d,m]),p=r.default.useMemo(()=>"string"==typeof e||"number"==typeof e?(0,t.jsx)(c,{children:e}):e,[e]);return(0,t.jsx)(l,{value:{slots:h},children:(0,t.jsx)(i.dom.span,{...f,className:(0,o.composeSlotClassName)(h.base,a),"data-slot":"badge",children:p})})},c=({children:e,className:a,...n})=>{let{slots:s}=(0,r.useContext)(l);return(0,t.jsx)(i.dom.span,{className:(0,o.composeSlotClassName)(s?.label,a),"data-slot":"badge-label",...n,children:e})},d=Object.assign(u,{Anchor:({children:e,className:a,...n})=>(0,t.jsx)(i.dom.span,{...n,className:(0,s.cx)("badge-anchor",a)??void 0,"data-slot":"badge-anchor",children:e}),Label:c,Root:u}),m=(0,a.tv)({slots:{base:"popover",dialog:"popover__dialog",heading:"popover__heading",trigger:"popover__trigger"}});var f=e.i(7487),h=e.i(58282),p=e.i(9059),b=e.i(24971),v=e.i(96662),g=e.i(73580);let x=(0,r.createContext)({}),y=({children:e,...a})=>{let n=r.default.useMemo(()=>m(),[]);return(0,t.jsx)(x,{value:{slots:n},children:(0,t.jsx)(f.DialogTrigger,{"data-slot":"popover-root",...a,children:e})})},j=Object.assign(y,{Root:y,Trigger:({children:e,className:a,...n})=>{let{slots:s}=(0,r.useContext)(x);return(0,t.jsx)(v.Pressable,{children:(0,t.jsx)(i.dom.div,{className:(0,o.composeSlotClassName)(s?.trigger,a),"data-slot":"popover-trigger",role:"button",...n,children:e})})},Dialog:({children:e,className:a,...n})=>{let{slots:s}=(0,r.useContext)(x);return(0,t.jsx)(f.Dialog,{"data-slot":"popover-dialog",...n,className:(0,o.composeSlotClassName)(s?.dialog,a),children:e})},Arrow:({children:e,className:a,...n})=>{let s=(0,t.jsx)("svg",{"data-slot":"popover-overlay-arrow",fill:"none",height:"12",viewBox:"0 0 12 12",width:"12",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M0 0C5.48483 8 6.5 8 12 0Z"})}),o=r.default.isValidElement(e)?r.default.cloneElement(e,{"data-slot":"popover-overlay-arrow"}):s;return(0,t.jsx)(b.OverlayArrow,{"data-slot":"popover-overlay-arrow-group",...n,className:a,children:o})},Content:({children:e,className:a,...n})=>{let{slots:s}=(0,r.useContext)(x);return(0,t.jsx)(x,{value:{slots:s},children:(0,t.jsx)(g.SurfaceContext,{value:{variant:"default"},children:(0,t.jsx)(p.Popover,{...n,className:(0,o.composeTwRenderProps)(a,s?.base()),children:e})})})},Heading:({children:e,className:a,...n})=>{let{slots:s}=(0,r.useContext)(x);return(0,t.jsx)(h.Heading,{slot:"title",...n,className:(0,o.composeSlotClassName)(s?.heading,a),children:e})}});
1var C=e.i(99122),w=e.i(65575),S=e.i(18566),k=e.i(92199),E=e.i(95187);let L=(0,E.createServerReference)("40ac0b7a4c1c670c9f2775b73deee70af89106db93",E.callServer,void 0,E.findSourceMapURL,"fetchNotificationsAction"),T=(0,E.createServerReference)("0029fe3f58ade18c59d53c4c5808ba1349bcabbfe2",E.callServer,void 0,E.findSourceMapURL,"fetchUnreadCountAction"),N=(0,E.createServerReference)("40df49e5832693d4a34889f61d6c0349280be6203a",E.callServer,void 0,E.findSourceMapURL,"markReadAction");var P=e.i(39425),$=e.i(14040);let R=[{amount:60,unit:"second"},{amount:60,unit:"minute"},{amount:24,unit:"hour"},{amount:7,unit:"day"},{amount:4.34524,unit:"week"},{amount:12,unit:"month"},{amount:1/0,unit:"year"}];e.s(["NotificationsMenu",0,function({initialUnread:e}){let{dict:a,locale:n}=(0,$.useI18n)(),s=a.notifications,o=(0,S.useRouter)(),[i,l]=(0,r.useState)(e),[u,c]=(0,r.useState)(null),[m,f]=(0,r.useState)(!1),[h,p]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=!1,t=setInterval(async()=>{let t=await T();e||l(t)},3e4);return()=>{e=!0,clearInterval(t)}},[]);let b=(0,r.useCallback)(async()=>{f(!0),c(await L({limit:15})),f(!1)},[]);async function v(e){p(!1),e.read_at||(l(await N({ids:[e.id]})),c(t=>t?.map(t=>t.id===e.id?{...t,read_at:new Date().toISOString()}:t)??null));let t=e.anchor??(e.comment_id?`comment-${e.comment_id}`:null),a=t?`${e.link}#${t}`:e.link;window.location.hash&&window.history.replaceState(null,"",window.location.pathname+window.location.search),window.location.pathname===e.link?(window.history.replaceState(null,"",a),window.dispatchEvent(new Event("hashchange"))):o.push(a)}async function g(){l(await N({all:!0})),c(e=>e?.map(e=>({...e,read_at:e.read_at??new Date().toISOString()}))??null)}let x=i>99?"99+":String(i),y=(0,t.jsx)(k.FiBell,{"aria-hidden":!0});return(0,t.jsxs)(j,{isOpen:h,onOpenChange:function(e){p(e),e&&b()},children:[(0,t.jsx)(j.Trigger,{"aria-label":s.ariaLabel,className:`${(0,w.buttonVariants)({isIconOnly:!0,size:"sm",variant:"tertiary"})} flex min-h-11 min-w-11 cursor-pointer items-center justify-center sm:min-h-9 sm:min-w-9`,children:i>0?(0,t.jsxs)(d.Anchor,{children:[y,(0,t.jsx)(d,{color:"danger",size:"sm",children:x})]}):y}),(0,t.jsx)(j.Content,{className:"w-[360px] max-w-[92vw]",children:(0,t.jsxs)(j.Dialog,{className:"p-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-3",children:[(0,t.jsx)("span",{className:"text-sm font-semibold",children:s.title}),i>0&&(0,t.jsx)("button",{type:"button",className:"text-xs text-muted hover:text-foreground",onClick:()=>void g(),children:s.markAllRead})]}),(0,t.jsx)(C.Separator,{}),(0,t.jsx)("div",{className:"max-h-[70vh] overflow-y-auto",children:m&&null===u?(0,t.jsx)("p",{className:"px-4 py-6 text-center text-sm text-muted",children:s.loading}):u&&u.length>0?(0,t.jsx)("ul",{className:"flex flex-col",children:u.map(e=>{var a,r;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>void v(e),className:`flex w-full gap-3 border-l-2 px-4 py-3 text-left hover:bg-default-100 ${e.read_at?"border-transparent":"border-[color:var(--accent-strong)] bg-default-50"}`,children:[(0,t.jsx)(P.UserAvatar,{username:e.actor.username,fullName:e.actor.full_name,avatarUrl:e.actor.avatar_url,crop:{x:e.actor.avatar_crop_x,y:e.actor.avatar_crop_y,w:e.actor.avatar_crop_w,h:e.actor.avatar_crop_h},className:"mt-0.5 size-7 shrink-0 text-xs"}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)("p",{className:"text-sm",children:[(0,t.jsx)("span",{className:"font-medium",children:e.actor.username})," ",(0,t.jsx)("span",{className:"text-muted",children:(a=e,r=s.summary,"mention"===a.reason?r.mentioned:"commented"===a.event?r.commented:"status_changed"===a.event?r.statusChanged:"item_added"===a.event?r.itemAdded:"tracking_update"===a.event?r.trackingUpdate:"request_submitted"===a.event?r.requestSubmitted:"request_reviewed"===a.event?r.requestReviewed:"reaction"===a.event?r.reaction[a.entity_type]??r.reaction.default:r.updated)})]}),(0,t.jsx)("p",{className:"truncate text-sm font-medium text-foreground",children:e.title}),(0,t.jsx)("p",{className:"text-xs text-muted",children:function(e,t){let a=new Date(e);if(Number.isNaN(a.getTime()))return e;let n=new Intl.RelativeTimeFormat("es"===t?"es":"en",{numeric:"auto"}),r=(a.getTime()-Date.now())/1e3;for(let e of R){if(Math.abs(r)<e.amount)return n.format(Math.round(r),e.unit);r/=e.amount}return e}(e.created_at,n)})]}),!e.read_at&&(0,t.jsx)("span",{className:"mt-2 size-2 shrink-0 rounded-full bg-[color:var(--accent-strong)]"})]})},e.id)})}):(0,t.jsx)("p",{className:"px-4 py-6 text-center text-sm text-muted",children:s.empty})}),(0,t.jsx)(C.Separator,{}),(0,t.jsxs)("button",{type:"button",onClick:()=>{p(!1),o.push("/settings/notifications")},className:"flex w-full items-center gap-2 px-4 py-3 text-left text-sm text-muted hover:bg-default-100 hover:text-foreground",children:[(0,t.jsx)(k.FiSettings,{className:"size-4 shrink-0","aria-hidden":!0}),s.configure]})]})})]})}],77717)},63178,e=>{"use strict";var t=e.i(71645),a=(e,t,a,n,r,s,o,i)=>
1{let l=document.documentElement,u=["light","dark"];function c(t){var a;(Array.isArray(e)?e:[e]).forEach(e=>{let a="class"===e,n=a&&s?r.map(e=>s[e]||e):r;a?(l.classList.remove(...n),l.classList.add(s&&s[t]?s[t]:t)):l.setAttribute(e,t)}),a=t,i&&u.includes(a)&&(l.style.colorScheme=a)}if(n)c(n);else try{let e=localStorage.getItem(t)||a,n=o&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},n=["light","dark"],r="(prefers-color-scheme: dark)",s="u"<typeof window,o=t.createContext(void 0),i={setTheme:e=>{},themes:[]},l=["light","dark"],u=({forcedTheme:e,disableTransitionOnChange:a=!1,enableSystem:s=!0,enableColorScheme:i=!0,storageKey:u="theme",themes:h=l,defaultTheme:p=s?"system":"light",attribute:b="data-theme",value:v,children:g,nonce:x,scriptProps:y})=>{let[j,C]=t.useState(()=>d(u,p)),[w,S]=t.useState(()=>"system"===j?f():j),k=v?Object.values(v):h,E=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&s&&(t=f());let r=v?v[t]:t,o=a?m(x):null,l=document.documentElement,u=e=>{"class"===e?(l.classList.remove(...k),r&&l.classList.add(r)):e.startsWith("data-")&&(r?l.setAttribute(e,r):l.removeAttribute(e))};if(Array.isArray(b)?b.forEach(u):u(b),i){let e=n.includes(p)?p:null,a=n.includes(t)?t:e;l.style.colorScheme=a}null==o||o()},[x]),L=t.useCallback(e=>{let t="function"==typeof e?e(j):e;C(t);try{localStorage.setItem(u,t)}catch(e){}},[j]),T=t.useCallback(t=>
1{S(f(t)),"system"===j&&s&&!e&&E("system")},[j,e]);t.useEffect(()=>{let e=window.matchMedia(r);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),t.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?C(e.newValue):L(p))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[L]),t.useEffect(()=>{E(null!=e?e:j)},[e,j]);let N=t.useMemo(()=>({theme:j,setTheme:L,forcedTheme:e,resolvedTheme:"system"===j?w:j,themes:s?[...h,"system"]:h,systemTheme:s?w:void 0}),[j,L,e,w,s,h]);return t.createElement(o.Provider,{value:N},t.createElement(c,{forcedTheme:e,storageKey:u,attribute:b,enableSystem:s,enableColorScheme:i,defaultTheme:p,value:v,themes:h,nonce:x,scriptProps:y}),g)},c=t.memo(({forcedTheme:e,storageKey:n,attribute:r,enableSystem:s,enableColorScheme:o,defaultTheme:i,value:l,themes:u,nonce:c,scriptProps:d})=>{let m=JSON.stringify([r,n,i,e,u,l,s,o]).slice(1,-1);return t.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${a.toString()})(${m})`}})}),d=(e,t)=>{let a;if(!s){try{a=localStorage.getItem(e)||void 0}catch(e){}return a||t}},m=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},f=e=>(e||(e=window.matchMedia(r)),e.matches?"dark":"light");e.s(["ThemeProvider",0,e=>t.useContext(o)?t.createElement(t.Fragment,null,e.children):t.createElement(u,{...e}),"useTheme",0,()=>{var e;return null!=(e=t.useContext(o))?e:i}])},49845,e=>{"use strict";var t=e.i(18050),a=e.i(71778),n=e.i(54863);let r=Object.assign(n.ToggleButtonGroupRoot,{Root:n.ToggleButtonGroupRoot,Separator:n.ToggleButtonGroupSeparator});var s=e.i(63178),o=e.i(71645),i=e.i(92199),l=e.i(14040);e.s(["ThemeToggle",0,function(){let{theme:e,setTheme:n}=(0,s.useTheme)(),{dict:u}=(0,l.useI18n)(),[c,d]=(0,o.useState)(!1);return(0,o.useEffect)(()=>d(!0),[]),(0,t.jsxs)(r,{isDetached:!0,selectionMode:"single",disallowEmptySelection:!0,size:"sm","aria-label":u.header.themeAriaLabel,selectedKeys:new Set([c?e??"system":"system"]),onSelectionChange:function(e){let t=[...e][0];t&&n(t)},isDisabled:!c,className:"gap-1 rounded-full p-1 bg-[color-mix(in_srgb,var(--foreground)_8%,transparent)]",children:[(0,t.jsx)(a.ToggleButton,{isIconOnly:!0,id:"light","aria-label":u.header.themeLight,className:"rounded-full",children:(0,t.jsx)(i.FiSun,{})}),(0,t.jsx)(a.ToggleButton,{isIconOnly:!0,id:"dark","aria-label":u.header.themeDark,className:"rounded-full",children:(0,t.jsx)(i.FiMoon,{})}),(0,t.jsx)(a.ToggleButton,{isIconOnly:!0,id:"system","aria-label":u.header.themeSystem,className:"rounded-full",children:(0,t.jsx)(i.FiMonitor,{})})]})}],49845)},92435,e=>{"use strict";var t=e.i(18050),a=e.i(57537),n=e.i(10551),r=e.i(12828),s=e.i(99122),o=e.i(18566),i=e.i(71645),l=e.i(92199),u=e.i(95187);let c=(0,u.createServerReference)("00cb0319166376aae5786dc963a538b86c03208b94",u.callServer,void 0,u.findSourceMapURL,"logoutAction");var d=e.i(39425),m=e.i(14040),f=e.i(16458);e.s(["UserMenu",0,function({username:e,fullName:u,avatarUrl:h,crop:p}){let{dict:b}=(0,m.useI18n)(),v=b.header,g=(0,o.useRouter)(),[,x]=(0,i.useTransition)();return(0,t.jsxs)(n.Dropdown,{children:[(0,t.jsx)(a.Button,{isIconOnly:!0,size:"sm",variant:"ghost","aria-label":v.userMenuAriaLabel,className:"min-h-11 min-w-11 rounded-full p-0 sm:min-h-9 sm:min-w-9",children:(0,t.jsx)(d.UserAvatar,{username:e,fullName:u,avatarUrl:h,crop:p,size:"sm"})}),(0,t.jsxs)(n.Dropdown.Popover,{className:"min-w-[240px]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 px-3 py-2.5",children:[(0,t.jsx)(d.UserAvatar,{username:e,fullName:u,avatarUrl:h,size:"sm"}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)("span",{className:"truncate text-sm font-semibold",children:e}),u?(0,t.jsx)("span",{className:"truncate text-xs text-muted",children:u}):null]})]}),(0,t.jsx)(s.Separator,{}),(0,t.jsxs)(n.Dropdown.Menu,{onAction:function(t){"profile"===t?g.push((0,f.profilePath)(e)):"myCenters"===t?g.push("/my-centers"):"myShipments"===t?g.push("/my-shipments"):"settings"===t?g.push("/settings/profile"):"logout"===t&&x(async()=>{await c()})},children:[(0,t.jsxs)(n.Dropdown.Item,{id:"profile",textValue:v.profile,children:[(0,t.jsx)(l.FiUser,{"aria-hidden":!0}),(0,t.jsx)(r.Label,{children:v.profile})]}),(0,t.jsx)(s.Separator,{}),(0,t.jsxs)(n.Dropdown.Item,{id:"myCenters",textValue:v.myCenters,children:[(0,t.jsx)(l.FiHome,{"aria-hidden":!0}),(0,t.jsx)(r.Label,{children:v.myCenters})]}),(0,t.jsxs)(n.Dropdown.Item,{id:"myShipments",textValue:v.myShipments,children:[(0,t.jsx)(l.FiPackage,{"aria-hidden":!0}),(0,t.jsx)(r.Label,{children:v.myShipments})]}),(0,t.jsx)(s.Separator,{}),(0,t.jsxs)(n.Dropdown.Item,{id:"settings",textValue:v.settings,children:[(0,t.jsx)(l.FiSettings,{"aria-hidden":!0}),(0,t.jsx)(r.Label,{children:v.settings})]}),(0,t.jsx)(s.Separator,{}),(0,t.jsxs)(n.Dropdown.Item,{id:"logout",textValue:v.logout,children:[(0,t.jsx)(l.FiLogOut,{"aria-hidden":!0}),(0,t.jsx)(r.Label,{children:v.logout})]})]})]})]})}],92435)},96923,e=>{"use strict";var t=e.i(18050),a=e.i(42010);let n=(0,a.tv)({defaultVariants:{placement:"bottom",variant:"default"},slots:{action:"toast__action",close:"toast__close-button",content:"toast__content",description:"toast__description",indicator:"toast__indicator",region:"toast-region",title:"toast__title",toast:"toast"},variants:{placement:{bottom:{region:"toast-region--bottom",toast:"toast--bottom"},"bottom end":{region:"toast-region--bottom-end",toast:"toast--bottom-end"},"bottom start":{region:"toast-region--bottom-start",toast:"toast--bottom-start"},top:{region:"toast-region--top",toast:"toast--top"},"top end":{region:"toast-region--top-end",toast:"toast--top-end"},"top start":{region:"toast-region--top-start",toast:"toast--top-start"}},variant:{accent:{toast:"toast--accent"},danger:{toast:"toast--danger"},default:{toast:"toast--default"},success:{toast:"toast--success"},warning:{toast:"toast--warning"}}}});var r=e.i(71645),s=e.i(46562),o=e.i(83579),i=e.i(23316),l=e.i(64139),u=e.i(32940),c=e.i(90531),d={};d={"ar-AE":{close:"إغلاق",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{625}\u{634}\u{639}\u{627}\u{631}`,other:()=>`${t.number(e.count)} \u{625}\u{634}\u{639}\u{627}\u{631}\u{627}\u{62A}`})}.`},"bg-BG":{close:"Затвори",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{438}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{435}`,other:()=>`${t.number(e.count)} \u{438}\u{437}\u{432}\u{435}\u{441}\u{442}\u{438}\u{44F}`})}.`},"cs-CZ":{close:"Zavřít",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xe1men\xed`,other:()=>`${t.number(e.count)} ozn\xe1men\xed`})}.`},"da-DK":{close:"Luk",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} besked`,other:()=>`${t.number(e.count)} beskeder`})}.`},"de-DE":{close:"Schließen",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}
1 Benachrichtigung`,other:()=>`${t.number(e.count)} Benachrichtigungen`})}.`},"el-GR":{close:"Κλείσιμο",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{3B5}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3AF}\u{3B7}\u{3C3}\u{3B7}`,other:()=>`${t.number(e.count)} \u{3B5}\u{3B9}\u{3B4}\u{3BF}\u{3C0}\u{3BF}\u{3B9}\u{3AE}\u{3C3}\u{3B5}\u{3B9}\u{3C2}`})}.`},"en-US":{close:"Close",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`},"es-ES":{close:"Cerrar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificaci\xf3n`,other:()=>`${t.number(e.count)} notificaciones`})}.`},"et-EE":{close:"Sule",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} teatis`,other:()=>`${t.number(e.count)} teatist`})}.`},"fi-FI":{close:"Sulje",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ilmoitus`,other:()=>`${t.number(e.count)} ilmoitusta`})}.`},"fr-FR":{close:"Fermer",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`},"he-IL":{close:"סגור",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D4}`,other:()=>`${t.number(e.count)} \u{5D4}\u{5EA}\u{5E8}\u{5D0}\u{5D5}\u{5EA}`})}.`},"hr-HR":{close:"Zatvori",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obavijest`,other:()=>`${t.number(e.count)} obavijesti`})}.`},"hu-HU":{close:"Bezárás",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \xe9rtes\xedt\xe9s`,other:()=>`${t.number(e.count)} \xe9rtes\xedt\xe9s`})}.`},"it-IT":{close:"Chiudi",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica`,other:()=>`${t.number(e.count)} notifiche`})}.`},"ja-JP":{close:"閉じる",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{500B}\u{306E}\u{901A}\u{77E5}`})}\u{3002}`},"ko-KR":{close:"닫기",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}\u{AC1C} \u{C54C}\u{B9BC}`,other:()=>`${t.number(e.count)}\u{AC1C} \u{C54C}\u{B9BC}`})}.`},"lt-LT":{close:"Uždaryti",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} prane\u{161}imas`,other:()=>`${t.number(e.count)} prane\u{161}imai`})}.`},"lv-LV":{close:"Aizvērt",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} pazi\u{146}ojums`,other:()=>`${t.number(e.count)} pazi\u{146}ojumi`})}.`},"nb-NO":{close:"Lukk",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} varsling`,other:()=>`${t.number(e.count)} varsler`})}.`},"nl-NL":{close:"Sluiten",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} melding`,other:()=>`${t.number(e.count)} meldingen`})}.`},"pl-PL":{close:"Zamknij",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} powiadomienie`,few:()=>`${t.number(e.count)} powiadomienia`,many:()=>`${t.number(e.count)} powiadomie\u{144}`,other:()=>`${t.number(e.count)} powiadomienia`})}.`},"pt-BR":{close:"Fechar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xe7\xe3o`,other:()=>`${t.number(e.count)} notifica\xe7\xf5es`})}.`},"pt-PT":{close:"Fechar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica\xe7\xe3o`,other:()=>`${t.number(e.count)} notifica\xe7\xf5es`})}.`},"ro-RO":{close:"Închideţi",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificare`,other:()=>`${t.number(e.count)} notific\u{103}ri`})}.`},"ru-RU":{close:"Закрыть",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{443}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{435}`,other:()=>`${t.number(e.count)} \u{443}\u{432}\u{435}\u{434}\u{43E}\u{43C}\u{43B}\u{435}\u{43D}\u{438}\u{44F}`})}.`},"sk-SK":{close:"Zatvoriť",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ozn\xe1menie`,few:()=>`${t.number(e.count)} ozn\xe1menia`,other:()=>`${t.number(e.count)} ozn\xe1men\xed`})}.`},"sl-SI":{close:"Zapri",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obvestilo`,two:()=>`${t.number(e.count)} obvestili`,few:()=>`${t.number(e.count)} obvestila`,other:()=>`${t.number(e.count)} obvestil`})}.`},"sr-SP":{close:"Zatvori",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obave\u{161}tenje`,other:()=>`${t.number(e.count)} obave\u{161}tenja`})}.`},"sv-SE":{close:"Stäng",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} meddelande`,other:()=>`${t.number(e.count)} meddelanden`})}.`},"tr-TR":{close:"Kapat",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} bildirim`,other:()=>`${t.number(e.count)} bildirim`})}.`},"uk-UA":{close:"Закрити",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{441}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`,other:()=>`${t.number(e.count)} \u{441}\u{43F}\u{43E}\u{432}\u{456}\u{449}\u{435}\u{43D}\u{43D}\u{44F}`})}.`},"zh-CN":{close:"关闭",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{4E2A}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{4E2A}\u{901A}\u{77E5}`})}\u{3002}`}
1,"zh-TW":{close:"關閉",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} \u{500B}\u{901A}\u{77E5}`,other:()=>`${t.number(e.count)} \u{500B}\u{901A}\u{77E5}`})}\u{3002}`}};var m=e.i(75975),f=e.i(12936),h=e.i(33336);e.i(47167);var p=e.i(69299),b=e.i(2239);let v=Symbol.for("react-aria-landmark-manager");function g(e){return document.addEventListener("react-aria-landmark-manager-change",e),()=>document.removeEventListener("react-aria-landmark-manager-change",e)}function x(){if("u"<typeof document)return null;let e=document[v];return e&&e.version>=1?e:(document[v]=new y,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[v])}class y{constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=1,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:!0}),document.addEventListener("focusin",this.focusinHandler,{capture:!0}),document.addEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:!0}),document.removeEventListener("focusin",this.focusinHandler,{capture:!0}),document.removeEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,t){this.landmarks.find(t=>t.ref.current===e)?.focus?.(t)}getLandmarksByRole(e){return new Set(this.landmarks.filter(t=>t.role===e))}getLandmarkByRole(e){return this.landmarks.find(t=>t.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(t=>t.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(e=>"main"===e.role).length,0===this.landmarks.length){this.landmarks=[e],this.checkLabels(e.role);return}let t=0,a=this.landmarks.length-1;for(;t<=a;){let n=Math.floor((t+a)/2),r=e.ref.current.compareDocumentPosition(this.landmarks[n].ref.current);r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?t=n+1:a=n-1}this.landmarks.splice(t,0,e),this.checkLabels(e.role)}updateLandmark(e){let t=this.landmarks.findIndex(t=>t.ref===e.ref);t>=0&&(this.landmarks[t]={...this.landmarks[t],...e},this.checkLabels(this.landmarks[t].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(t=>t.ref!==e),this.teardownIfNeeded()}checkLabels(e){let t=this.getLandmarksByRole(e);t.size>1&&[...t].filter(e=>!e.label).length}closestLandmark(e){let t=new Map(this.landmarks.map(e=>[e.ref.current,e])),a=e;for(;a&&!t.has(a)&&a!==document.body&&a.parentElement;)a=a.parentElement;return t.get(a)}getNextLandmark(e,{backward:t}){let a=this.closestLandmark(e),n=t?this.landmarks.length-1:0;a&&(n=this.landmarks.indexOf(a)+(t?-1:1));let r=()=>{if(n<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:!0,cancelable:!0})))return!0;n=this.landmarks.length-1}else if(n>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:!0,cancelable:!0})))return!0;n=0}return!!(n<0)||!!(n>=this.landmarks.length)};if(r())return;let s=n;for(;this.landmarks[n].ref.current?.closest("[aria-hidden=true]");){if(n+=t?-1:1,r())return;if(n===s)break}return this.landmarks[n]}f6Handler(e){"F6"===e.key&&(e.altKey?this.focusMain():this.navigate((0,u.getEventTarget)(e),e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole("main");return!!e&&!!e.ref.current&&!!e.ref.current.isConnected&&(this.focusLandmark(e.ref.current,"forward"),!0)}navigate(e,t){let a=this.getNextLandmark(e,{backward:t});if(!a)return!1;if(a.lastFocused){let e=a.lastFocused;if((0,u.nodeContains)(document.body,e))return e.focus(),!0}return!!a.ref.current&&!!a.ref.current.isConnected&&(this.focusLandmark(a.ref.current,t?"backward":"forward"),!0)}focusinHandler(e){let t=this.closestLandmark((0,u.getEventTarget)(e));t&&t.ref.current!==(0,u.getEventTarget)(e)&&this.updateLandmark({ref:t.ref,lastFocused:(0,u.getEventTarget)(e)});let a=e.relatedTarget;if(a){let e=this.closestLandmark(a);e&&e.ref.current===a&&e.blur()}}focusoutHandler(e){let t=(0,u.getEventTarget)(e),a=e.relatedTarget;if(!a||a===document){let e=this.closestLandmark(t);e&&e.ref.current===t&&e.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(t,a){let n=a?.from||document.activeElement;return e.navigate(n,"backward"===t)},focusNext(t){let a=t?.from||document.activeElement;return e.navigate(a,!1)},focusPrevious(t){let a=t?.from||document.activeElement;return e.navigate(a,!0)},focusMain:()=>e.focusMain(),dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null)}}}registerLandmark(e){return this.landmarks.find(t=>t.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}}var j=e.i(24470),C=e.i(71356),w=e.i(77926),S=e.i(74080),k=e.i(44193),E=e.i(83222),L=e.i(43221),T=e.i(43418),N=e.i(1083),P=e.i(12284);let $=(0,r.createContext)(null),R=(0,r.forwardRef)(function(e,t){let a,n=(0,L.useIsSSR)(),s=(0,k.useToastQueue)(e.queue),o=(0,N.useObjectRef)(t),{regionProps:v}=function(e,t,a){var n;let s=(0,j.useLocalizedStringFormatter)((n=d)&&n.__esModule?n.default:n,"@react-aria/toast"),{landmarkProps:o}=function(e,t){let{role:a,"aria-label":n,"aria-labelledby":s,focus:o}=e,i=(0,b.useSyncExternalStore)(g,x,x),l=n||s,[u,c]=(0,r.useState)(!1),d=(0,r.useCallback)(()=>{c(!0)},[c]),m=(0,r.useCallback)(()=>{c(!1)},[c]);return(0,p.useLayoutEffect)(()=>
1{if(i)return i.registerLandmark({ref:t,label:l,role:a,focus:o||d,blur:m})},[i,l,t,a,o,d,m]),(0,r.useEffect)(()=>{u&&t.current?.focus()},[u,t]),{landmarkProps:{role:a,tabIndex:u?-1:void 0,"aria-label":n,"aria-labelledby":s}}}({role:"region","aria-label":e["aria-label"]||s.format("notifications",{count:t.visibleToasts.length})},a),i=(0,r.useRef)(!1),v=(0,r.useRef)(!1),y=(0,r.useCallback)(()=>{i.current||v.current?t.pauseAll():t.resumeAll()},[t]),{hoverProps:C}=(0,h.useHover)({onHoverStart:()=>{i.current=!0,y()},onHoverEnd:()=>{i.current=!1,y()}}),w=(0,r.useRef)([]),S=(0,r.useRef)(t.visibleToasts),k=(0,r.useRef)(null);(0,p.useLayoutEffect)(()=>{if(-1===k.current||0===t.visibleToasts.length||!a.current){w.current=[],S.current=t.visibleToasts;return}if(w.current=[...a.current.querySelectorAll('[role="alertdialog"]')],S.current.length===t.visibleToasts.length&&t.visibleToasts.every((e,t)=>e.key===S.current[t].key)){S.current=t.visibleToasts;return}let e=S.current.map((e,a)=>({...e,i:a,isRemoved:!t.visibleToasts.some(t=>e.key===t.key)})),n=e.findIndex(e=>e.i===k.current&&e.isRemoved);if(n>-1)if("pointer"===(0,c.getInteractionModality)()&&E.current?.isConnected)(0,l.focusWithoutScrolling)(E.current);else{let t,a,r=0;for(;r<=n;)e[r].isRemoved||(a=Math.max(0,r-1)),r++;for(;r<e.length;){if(!e[r].isRemoved){t=r-1;break}r++}void 0===a&&void 0===t&&(a=0),a>=0&&a<w.current.length?(0,l.focusWithoutScrolling)(w.current[a]):t>=0&&t<w.current.length&&(0,l.focusWithoutScrolling)(w.current[t])}S.current=t.visibleToasts},[t.visibleToasts,a]);let E=(0,r.useRef)(null),{focusWithinProps:L}=(0,f.useFocusWithin)({onFocusWithin:e=>{v.current=!0,E.current=e.relatedTarget,y()},onBlurWithin:()=>{v.current=!1,E.current=null,y()}});return(0,r.useEffect)(()=>{0===t.visibleToasts.length&&E.current?.isConnected&&("pointer"===(0,c.getInteractionModality)()?(0,l.focusWithoutScrolling)(E.current):E.current.focus(),E.current=null)},[a,t.visibleToasts.length]),(0,r.useEffect)(()=>()=>{E.current?.isConnected&&("pointer"===(0,c.getInteractionModality)()?(0,l.focusWithoutScrolling)(E.current):E.current.focus(),E.current=null)},[a]),{regionProps:(0,m.mergeProps)(o,C,L,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:e=>{let t=(0,u.getEventTarget)(e).closest('[role="alertdialog"]');k.current=w.current.findIndex(e=>e===t)},onBlur:()=>{k.current=-1}})}}(e,s,o),{focusProps:y,isFocused:w,isFocusVisible:R}=(0,E.useFocusRing)(),{hoverProps:M,isHovered:A}=(0,h.useHover)({}),D=(0,i.useRenderProps)({...e,children:void 0,defaultClassName:"react-aria-ToastRegion",values:{visibleToasts:s.visibleToasts,isHovered:A,isFocused:w,isFocusVisible:R}}),{direction:_}=(0,T.useLocale)(),{getContainer:F}=(0,P.useUNSAFE_PortalContext)();!n&&(a=document.body,F&&(a=F()));let B=(0,C.filterDOMProps)(e,{global:!0}),O=r.default.createElement($.Provider,{value:s},r.default.createElement(i.dom.div,{...(0,m.mergeProps)(B,D,v,y,M),dir:_,ref:o,"data-hovered":A||void 0,"data-focused":w||void 0,"data-focus-visible":R||void 0},"function"==typeof e.children?r.default.createElement(I,{...e,render:void 0,className:void 0,style:{display:"contents"}},e.children):e.children));return s.visibleToasts.length>0&&a?(0,S.createPortal)(O,a):null}),I=(0,r.forwardRef)(function(e,t){let a=(0,r.useContext)($),{hoverProps:n,isHovered:s}=(0,h.useHover)({}),o=(0,i.useRenderProps)({...e,children:void 0,defaultClassName:"react-aria-ToastList",values:{visibleToasts:a.visibleToasts,isFocused:!1,isFocusVisible:!1,isHovered:s}});return r.default.createElement(i.dom.ol,{...n,...o,ref:t},a.visibleToasts.map(t=>r.default.createElement("li",{key:t.key,style:{display:"contents"}},e.children({toast:t}))))}),M=(0,r.forwardRef)(function(e,t){let a=(0,r.useContext)($),n=(0,N.useObjectRef)(t),{toastProps:l,contentProps:u,titleProps:c,descriptionProps:f,closeButtonProps:h}=function(e,t){var a;let{key:n,timer:s,timeout:o}=e.toast;(0,r.useEffect)(()=>{if(null!=s&&null!=o)return s.reset(o),()=>{s.pause()}},[s,o]);let i=(0,w.useId)(),l=(0,w.useSlotId)(),u=(0,j.useLocalizedStringFormatter)((a=d)&&a.__esModule?a.default:a,"@react-aria/toast"),[c,m]=(0,r.useState)(!1);return(0,p.useLayoutEffect)(()=>{m(!0)},[]),{toastProps:{...(0,C.filterDOMProps)(e,{labelable:!0}),role:"alertdialog","aria-modal":"false","aria-labelledby":e["aria-labelledby"]||i,"aria-describedby":e["aria-describedby"]||l,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":c?void 0:"true"},titleProps:{id:i},descriptionProps:{id:l},closeButtonProps:{"aria-label":u.format("close"),onPress:()=>t.close(n)}}}(e,a),{focusProps:b,isFocused:v,isFocusVisible:g}=(0,E.useFocusRing)(),x=(0,i.useRenderProps)({...e,defaultClassName:"react-aria-Toast",values:{toast:e.toast,isFocused:v,isFocusVisible:g}}),y=(0,C.filterDOMProps)(e,{global:!0});return r.default.createElement(i.dom.div,{...(0,m.mergeProps)(y,x,l,b),ref:n,"data-focused":v||void 0,"data-focus-visible":g||void 0},r.default.createElement(i.Provider,{values:[[A,u],[s.TextContext,{slots:{[i.DEFAULT_SLOT]:{},title:c,description:f}}],[o.ButtonContext,{slots:{[i.DEFAULT_SLOT]:{},close:h}}]]},x.children))}),A=(0,r.createContext)({}),D=(0,r.forwardRef)(function(e,t){return[e,t]=(0,i.useContextProps)(e,t,A),r.default.createElement(i.dom.div,{render:e.render,className:"react-aria-ToastContent",...e,ref:t},e.children)});var _=e.i(34483),F=e.i(59381),B=e.i(55590),O=e.i(57537),K=e.i(86109),H=e.i(92557);let U=(0,a.tv)({base:"spinner",defaultVariants:{color:"accent",size:"md"},variants:{color:{accent:"spinner--accent",current:"spinner--current",danger:"spinner--danger",success:"spinner--success",warning:"spinner--warning"},size:{lg:"spinner--lg",md:"spinner--md",sm:"spinner--sm",xl:"spinner--xl"}}}),z=({...e})=>{let a=(0,r.useId)();return(0,t.jsxs)("svg",{"data-slot":"spinner-icon",viewBox:"0 0 24 24",...e,children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:`\xabdata-slot-icon-def-1\xbb-${a}`,x1:"50%",x2:"50%",y1:"5.271%",y2:"91.793%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"currentColor"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:.55})]}),(0,t.jsxs)("linearGradient",{id:`\xabdata-slot-icon-def-2\xbb-${a}`,x1:"50%",x2:"50%",y1:"15.24%",y2:"87.15%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:0}),(0,t.jsx)("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:.55})]})]}),(0,t.jsxs)("g",{fill:"none",children:[(0,t.jsx)("path",{d:"m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.01
17.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),(0,t.jsx)("path",{d:"M8.749.021a1.5 1.5 0 0 1 .497 2.958A7.5 7.5 0 0 0 3 10.375a7.5 7.5 0 0 0 7.5 7.5v3c-5.799 0-10.5-4.7-10.5-10.5C0 5.23 3.726.865 8.749.021",fill:`url(#\xabdata-slot-icon-def-1\xbb-${a})`,transform:"translate(1.5 1.625)"}),(0,t.jsx)("path",{d:"M15.392 2.673a1.5 1.5 0 0 1 2.119-.115A10.48 10.48 0 0 1 21 10.375c0 5.8-4.701 10.5-10.5 10.5v-3a7.5 7.5 0 0 0 5.007-13.084a1.5 1.5 0 0 1-.115-2.118",fill:`url(#\xabdata-slot-icon-def-2\xbb-${a})`,transform:"translate(1.5 1.625)"})]})]})},V=({className:e,color:a,size:n,...r})=>(0,t.jsx)(B.dom.span,{"data-slot":"spinner",...r,className:U({className:e,color:a,size:n}),children:(0,t.jsx)(z,{"aria-hidden":!0,"aria-label":"Loading",role:"presentation"})}),W=Object.assign(V,{Root:V});var q=e.i(26671),G=e.i(16995);let Z="u">typeof window?r.useLayoutEffect:r.useEffect,Q="u"<typeof window,J=(0,r.createContext)({}),X=({children:e,className:a,placement:n,scaleFactor:s=q.DEFAULT_SCALE_FACTOR,toast:o,variant:i,...l})=>{let{gap:u=q.DEFAULT_GAP,heightsByKey:c,maxVisibleToasts:d=q.DEFAULT_MAX_VISIBLE_TOAST,onToastHeightChange:m,onToastHeightRemove:f,placement:h,scaleFactor:p,slots:b}=(0,r.useContext)(J),v=s??p,g=(0,r.useContext)($).visibleToasts,x=g.indexOf(o),y=x<=0,j=(n??h)?.startsWith("bottom"),C=x>=d,w=o?.key,S=(0,r.useRef)(null),{height:k}=(e=>{let[t,a]=(0,r.useState)(void 0),n=(0,r.useCallback)(()=>{if(e.current){let t=e.current.scrollHeight;a(e=>e!==t?t:e)}},[e]);return(0,r.useEffect)(()=>{let t=e.current;if(!t)return;let a=new ResizeObserver(n),r=new MutationObserver(e=>{e.some(e=>"attributes"===e.type&&"aria-hidden"===e.attributeName)&&n()});return a.observe(t),r.observe(t,{attributeFilter:["aria-hidden"],attributes:!0}),()=>{a.disconnect(),r.disconnect()}},[e,n]),{height:t}})(S);(0,r.useEffect)(()=>{w&&"number"==typeof k&&m?.(w,k)},[w,k,m]),(0,r.useEffect)(()=>{if(w)return()=>{f?.(w)}},[w,f]),(0,r.useLayoutEffect)(()=>{let e=S.current;e&&(e.tabIndex=y?0:-1)},[y]);let E=(0,r.useMemo)(()=>{let e=g[0]?.key,t=(e?c?.[e]:void 0)??k??0,a=x*u*(j?-1:1),n=1-x*v;return{scale:`${n}`,translate:`0 ${a}px 0`,viewTransitionName:`toast-${String(o.key).replace(/[^a-zA-Z0-9]/g,"-")}`,zIndex:g.length-x,...t?{"--front-height":`${t}px`}:null,opacity:+!C,pointerEvents:C?"none":"auto",...l.style}},[v,u,c,x,j,y,C,l.style,o?.key,k,g]);return(0,t.jsx)(M,{ref:S,"aria-hidden":C,className:(0,F.composeTwRenderProps)(a,b?.toast({variant:i})),"data-frontmost":(0,_.dataAttr)(y),"data-hidden":(0,_.dataAttr)(C),"data-index":x,"data-slot":"toast",style:E,toast:o,...l,children:e})};X.displayName="HeroUI.Toast";let Y=({children:e,className:a,...n})=>{let{slots:s}=(0,r.useContext)(J);return(0,t.jsx)(D,{className:(0,F.composeSlotClassName)(s?.content,a),"data-slot":"toast-content",...n,children:e})},ee=({children:e,className:a,variant:n,...s})=>{let{slots:o}=(0,r.useContext)(J),i=(0,r.useCallback)(()=>{switch(n){case"accent":default:return(0,t.jsx)(H.InfoIcon,{"data-slot":"toast-default-icon"});case"success":return(0,t.jsx)(H.SuccessIcon,{"data-slot":"toast-default-icon"});case"warning":return(0,t.jsx)(H.WarningIcon,{"data-slot":"toast-default-icon"});case"danger":return(0,t.jsx)(H.DangerIcon,{"data-slot":"toast-default-icon"})}},[n]);return(0,t.jsx)(B.dom.div,{className:(0,F.composeSlotClassName)(o?.indicator,a),"data-slot":"toast-indicator",...s,children:e??i()})};ee.displayName="HeroUI.ToastIndicator";let et=({children:e,className:a,...n})=>{let{slots:o}=(0,r.useContext)(J);return(0,t.jsx)(s.Text,{className:(0,F.composeSlotClassName)(o?.title,a),"data-slot":"toast-title",slot:"title",...n,children:e})};et.displayName="HeroUI.ToastTitle";let ea=({children:e,className:a,...n})=>{let{slots:o}=(0,r.useContext)(J);return(0,t.jsx)(s.Text,{className:(0,F.composeSlotClassName)(o?.description,a),"data-slot":"toast-description",slot:"description",...n,children:e})};ea.displayName="HeroUI.ToastDescription";let en=({className:e,...a})=>{let{slots:n}=(0,r.useContext)(J);return(0,t.jsx)(K.CloseButton,{className:(0,F.composeTwRenderProps)(e,n?.close()),"data-slot":"toast-close",slot:"close",...a})};en.displayName="HeroUI.ToastCloseButton";let er=({children:e,className:a,...n})=>{let{slots:s}=(0,r.useContext)(J);return(0,t.jsx)(O.Button,{className:(0,F.composeTwRenderProps)(a,s?.action?.()),"data-slot":"toast-action-button",...n,children:e})};er.displayName="HeroUI.ToastActionButton";let es=({children:e,className:a,gap:s=q.DEFAULT_GAP,maxVisibleToasts:o,placement:i="bottom",queue:l,scaleFactor:u=q.DEFAULT_SCALE_FACTOR,width:c=q.DEFAULT_TOAST_WIDTH,...d})=>{let m=(0,r.useMemo)(()=>n({placement:i}),[i]),f=function(e,{defaultValue:t=!1,initializeWithValue:a=!0}={}){let n=e=>Q?t:window.matchMedia(e).matches,[s,o]=(0,r.useState)(()=>a?n(e):t);function i(){o(n(e))}return Z(()=>{let t=window.matchMedia(e);return i(),t.addListener?t.addListener(i):t.addEventListener("change",i
1),()=>{t.removeListener?t.removeListener(i):t.removeEventListener("change",i)}},[e]),s}("(max-width: 768px)"),[h,p]=r.default.useState({}),b=(0,r.useMemo)(()=>l?l.getQueue():G.toast.getQueue(),[l]),v=(0,r.useMemo)(()=>{let e=l&&"maxVisibleToasts"in l?l.maxVisibleToasts:void 0;return o??e??q.DEFAULT_MAX_VISIBLE_TOAST},[o,l]),g=(0,r.useCallback)((e,t)=>{p(a=>a[e]===t?a:{...a,[e]:t})},[]),x=(0,r.useCallback)(e=>{p(t=>{if(!(e in t))return t;let a={...t};return delete a[e],a})},[]),y=(0,r.useCallback)(e=>{let{actionProps:a,description:n,indicator:r,isLoading:s,title:o,variant:l}=e.toast.content??{};return(0,t.jsxs)(X,{placement:i,scaleFactor:u,toast:e.toast,variant:l,children:[null===r?null:s?(0,t.jsx)(ee,{variant:l,children:(0,t.jsx)(W,{color:"current",size:"sm"})}):(0,t.jsx)(ee,{variant:l,children:r}),(0,t.jsxs)(Y,{children:[!!o&&(0,t.jsx)(et,{children:o}),!!n&&(0,t.jsx)(ea,{children:n}),f&&a?.children?(0,t.jsx)(er,{...a,children:a.children}):null]}),!f&&a?.children?(0,t.jsx)(er,{...a,children:a.children}):null,(0,t.jsx)(en,{})]})},[f,i,u]);return(0,t.jsx)(R,{className:(0,F.composeTwRenderProps)(a,m?.region()),"data-slot":"toast-region",queue:b,style:{"--gap":`${s}px`,"--placement":i,"--scale-factor":u,"--toast-width":"number"==typeof c?`${c}px`:c},...d,children:a=>{let n=a.toast.content,r={...a,isLoading:n?.isLoading??!1};return(0,t.jsx)(J,{value:{gap:s,heightsByKey:h,maxVisibleToasts:v,onToastHeightChange:g,onToastHeightRemove:x,placement:i,scaleFactor:u,slots:m,width:c},children:void 0===e?y(a):"function"==typeof e?e(r):e})}})};es.displayName="HeroUI.ToastProvider";let eo=Object.assign(X,{Provider:es,Content:Y,Indicator:ee,Title:et,Description:ea,ActionButton:er,CloseButton:en,Queue:G.ToastQueue,toast:G.toast});var ei=e.i(63178);e.s(["Providers",0,function({children:e}){return(0,t.jsxs)(ei.ThemeProvider,{defaultTheme:"system",attribute:"data-theme",children:[e,(0,t.jsx)(eo.Provider,{placement:"bottom"})]})}],96923)}]);

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.