1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,931942,744148,978201,e=>{"use strict";let t=(0,e.i(456420).default)("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);e.s(["ShoppingCartIcon",0,t],931942);var s=e.i(843476),r=e.i(271645);let a=(0,r.createContext)(null);e.s(["CartDialogProvider",0,function({children:e}){let[t,n]=(0,r.useState)(!1),i=(0,r.useCallback)(()=>{n(!0)},[]),l=(0,r.useCallback)(()=>{n(!1)},[]);return(0,s.jsx)(a.Provider,{value:{isOpen:t,setOpen:n,open:i,close:l},children:e})},"useCartDialog",0,function(){let e=(0,r.useContext)(a);if(!e)throw Error("useCartDialog must be used within CartDialogProvider");return e}],744148);var n=e.i(933818),i=e.i(95187);let l=(0,i.createServerReference)("4092b4bb8e37979d29e1d4916397e9992fdf4fd639",i.callServer,void 0,i.findSourceMapURL,"fetchCartPreviewAction");var o=e.i(484321);let c={all:["cart"],preview:e=>[...c.all,"preview",(function(e){let t=new Map;for(let s of e)t.set(s.variantId,(t.get(s.variantId)??0)+s.quantity);return Array.from(t.entries()).map(([e,t])=>({variantId:e,quantity:t}))})(e).toSorted((e,t)=>e.variantId.localeCompare(t.variantId)).map(e=>`${e.variantId}:${e.quantity}`).join("|")]};e.s(["cartPreviewQueryOptions",0,function(e,t){return(0,n.queryOptions)({queryKey:c.preview(e),queryFn:async()=>(0,o.unwrapActionResult)(await l({lines:e})),enabled:e.length>0,initialData:t,staleTime:3e4})},"cartQueryKeys",0,c],978201)},773257,e=>{"use strict";var t=e.i(954616),s=e.i(912598),r=e.i(948148),a=e.i(846696),n=e.i(744148),i=e.i(978201),l=e.i(442341),o=e.i(715862);function c(){let e=(0,s.useQueryClient)(),a=(0,l.useCartLines)(),n=(0,r.useTranslations)("store.cart"),c=(0,o.useCartStore)(e=>e.addLine),d=(0,o.useCartStore)(e=>e.setQuantity),u=(0,o.useCartStore)(e=>e.removeLine),m=(0,o.useCartStore)(e=>e.clearCart),x=async()=>{await e.invalidateQueries({queryKey:i.cartQueryKeys.all})},h=(0,t.useMutation)({mutationFn:async({variantId:t,quantity:s=1,currency:r})=>{if(a.length>0&&r){let t=e.getQueryData((0,i.cartPreviewQueryOptions)(a).queryKey);if(t?.currency&&t.currency.toUpperCase()!==r.toUpperCase())throw Error(n("mixedCurrencyAdd"))}if(!c(t,s))throw Error(n("cartFull"));return{variantId:t,quantity:s}},onSuccess:async()=>{await x()}});return{addToCart:h.mutateAsync,isAddingToCart:h.isPending,setLineQuantity:(e,t)=>{d(e,t),x()},removeCartLine:e=>{u(e),x()},clearCartLines:()=>{m(),x()}}}e.s(["useAddToCart",0,function(e){let{addToCart:t,isAddingToCart:s}=c(),{open:i}=(0,n.useCartDialog)(),l=(0,r.useTranslations)("store.cart"),o=e?.openOnSuccess??!0;return{addToCart:async e=>{try{await t(e),a.toast.success(l("added")),o&&i()}catch(e){a.toast.error(e instanceof Error?e.message:l("addFailed"))}},isAddingToCart:s}},"useCartActions",0,c])},591079,e=>{"use strict";var t=e.i(201171);e.s(["formatStorePriceLabel",0,function(e,s){var r;let a;if(!e)return null;let n=(r=e)?(r.minAmount,r.maxAmount,a=r.minAmount,(0,t.formatMinorPriceAmount)(a,r.currency)):null;return n?e.minAmount===e.maxAmount?n:`${s} ${n}`:null},"formatVariantPrice",0,function(e){return(0,t.formatMinorPriceAmount)(e.priceAmount,e.currency)},"getProductCover",0,function(e){return e.media.toSorted((e,t)=>e.sortOrder-t.sortOrder||e.id.localeCompare(t.id)).find(e=>"image"===e.kind)??null}])},504796,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeftIcon",0,t],504796)},961652,e=>{"use strict";let t={home:"/",store:"/store",games:"/games",keys:"/keys",subscriptions:"/subscriptions",giftCards:"/gift-cards",deals:"/deals",search:"/search",cart:"/cart",checkoutSuccess:"/checkout/success",checkoutCancel:"/checkout/cancel",wishlist:"/wishlist",account:"/account",library:"/account/library",orders:"/account/orders",privacy:"/privacy",terms:"/terms",help:"/help",arcRaiders:"/arc-raiders"};e.s(["STORE_ROUTES",0,t,"isStoreCartRoute",0,function(e){return e===t.cart},"isStoreProductRoute",0,function(e){return e.startsWith("/products/")},"storeCategoryPath",0,function(e,t){return t?`/${t}/${e}`:`/${e}`},"storeProductPath",0,function(e){return`/products/${e}`}])},328833,e=>{"use strict";var t=e.i(843476),s=e.i(647163);e.s(["StoreProductCover",0,function({src:e,alt:r,className:a,priority:n=!1}){return(0,t.jsx)("img",{src:e,alt:r,loading:n?"eager":"lazy",decoding:"async",className:(0,s.cn)("size-full object-cover",a)})}])},209057,e=>{"use strict";var t=e.i(933818),s=e.i(95187);let r=(0,s.createServerReference)("406d71584eec6a7c59f0bb2fff702a0d7841cec41c",s.callServer,void 0,s.findSourceMapURL,"createCheckoutSessionAction"),a=(0,s.createServerReference)("40d05e5a2aa6609c7b22ab5928bbf67118e935e84e",s.callServer,void 0,s.findSourceMapURL,"fetchCheckoutOrderSummaryAction");var n=e.i(484321);async function i(e){return(0,n.unwrapActionResult)(await r({lines:e}))}let l={all:["checkout"],orderSummary:e=>[...l.all,"order-summary",e]};e.s(["checkoutOrderSummaryQueryOptions",0,function(e){return(0,t.queryOptions)({queryKey:l.orderSummary(e),queryFn:async()=>(0,n.unwrapActionResult)(await a(e)),enabled:e.length>0,refetchInterval:e=>e.state.data?.status==="pending"&&2500,staleTime:0})},"requestCheckoutSession",0,i],209057)},494284,e=>{"use strict";var t=e.i(843476),s=e.i(504796),r=e.i(948148),a=e.i(167881),n=e.i(671428),i=e.i(931942),l=e.i(456904),o=e.i(675785),c=e.i(961652);function d(){let e=(0,r.useTranslations)("store.cart.empty");return(0,t.jsxs)(o.Empty,{className:"border border-dashed border-border/70 bg-muted/20 py-16",children:[(0,t.jsxs)(o.EmptyHeader,{children:[(0,t.jsx)(o.EmptyMedia,{variant:"icon",children:(0,t.jsx)(i.ShoppingCartIcon,{"aria-hidden":!0})}),(0,t.jsx)(o.EmptyTitle,{children:e("title")}),(0,t.jsx)(o.EmptyDescription,{children:e("description")})]}),(0,t.jsx)(o.EmptyContent,{children:(0,t.jsx)(a.Button,{nativeButton:!1,render:(0,t.jsx)(l.Link,{href:c.STORE_ROUTES.home}),children:e("browseStore")})})]})}var u=e.i(755566),u=u,m=e.i(781947);function x({preview:e}){let s=(0,r.useTranslations)("store.cart.issues");if(!e.hasIssues)return null;if(e.hasMixedCurrency)return(0,t.jsxs)(m.Alert,{variant:"destructive",children:[(0,t.jsx)(u.default,{}),(0,t.jsx)(m.AlertTitle,{children:s("mixedCurrencyTitle")}),(0,t.jsx)(m.AlertDescription,{children:s("mixedCurrencyDescription")})]});let a=e.lines.some(e=>"unavailable"===e.issue||"out_of_stock"===e.issue),n=e.lines.some(e=>"insufficient_stock"===e.issue);return a?(0,t.jsxs)(m.Alert,{variant:"destructive",children:[(0,t.jsx)(u.default,{}),(0,t.jsx)(m.AlertTitle,{children:s("availabilityTitle")}),(0,t.jsx)(m.AlertDescription,{children:s("availabilityDescription")})]}):n?(0,t.jsxs)(m.Alert,{children:[(0,t.jsx)(u.default,{}),(0,t.jsx)(m.AlertTitle,{children:s("stockTitle")}),(0,t.jsx)(m.AlertDescription,{children:s("stockDescription")})]}):null}let h=(0,e.i(456420).default)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);var f=e.i(204289),p=e.i(726253),g=e.i(328833),j=e.i(201171);function v({line:e,onQuantityChange:s,onRemove:n}){let i=(0,r.useTranslations)("store.cart"),o="unavailable"===e.issue?i("issues.unavailable"):"out_of_stock"===e.issue?i("issues.outOfStock"):"insufficient_stock"===e.issue?i("issues.insufficientStock",{max:e.maxQuantity??0}):null,d=e.isAvailable&&e.inStock&&"unavailable"!==e.issue,u=e.maxQuantity??99;return(0,t.jsxs)("li",{className:"flex gap-4 py-4 sm:gap-5",children:[(0,t.jsx)("div",{className:"size-20 shrink-0 overflow-hidden rounded-xl bg-muted sm:size-24",children:e.coverUrl&&e.isAvailable?(0,t.jsx)(g.StoreProductCover,{src:e.coverUrl,alt:e.productTitle,className:"size-full"}):(0,t.jsx)("div",{className:"grid size-full place-items-center px-2 text-center text-xs text-muted-foreground",children:i("noImage")})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-6",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[e.isAvailable?(0,t.jsx)(l.Link,{href:(0,c.storeProductPath)(e.productSlug),className:"line-clamp-2 text-sm font-semibold text-foreground hover:underline sm:text-base",children:e.productTitle}):(0,t.jsx)("p",{className:"line-clamp-2 text-sm font-semibold text-foreground sm:text-base",children:e.productTitle||i("unknownProduct")}),e.variantTitle?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.variantTitle}):null,e.isAvailable?(0,t.jsx)("p",{className:"text-sm text-muted-foreground tabular-nums",children:(0,j.formatMinorPriceAmount)(e.unitAmou
1nt,e.currency)}):null,o?(0,t.jsx)("p",{className:"text-sm font-medium text-destructive",children:o}):null,"insufficient_stock"===e.issue&&null!==e.maxQuantity?(0,t.jsx)(a.Button,{type:"button",variant:"link",size:"sm",className:"h-auto p-0 text-destructive",onClick:()=>s(e.variantId,e.maxQuantity??e.quantity),children:i("updateToMax")}):null]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 sm:flex-col sm:items-end sm:justify-start sm:gap-3",children:[e.isAvailable?(0,t.jsx)("p",{className:"order-2 text-base font-semibold text-foreground tabular-nums sm:order-1",children:(0,j.formatMinorPriceAmount)(e.lineTotalAmount,e.currency)}):(0,t.jsx)("span",{className:"order-2 text-sm text-muted-foreground sm:order-1",children:"â"}),(0,t.jsxs)("div",{className:"order-1 flex items-center gap-1 sm:order-2",children:[d?(0,t.jsxs)("div",{className:"flex items-center rounded-full border border-border/70 bg-background",children:[(0,t.jsx)(a.Button,{type:"button",variant:"ghost",size:"icon-sm",className:"rounded-full","aria-label":i("decreaseQuantity"),disabled:e.quantity<=1,onClick:()=>s(e.variantId,e.quantity-1),children:(0,t.jsx)(h,{})}),(0,t.jsx)("span",{className:"min-w-8 text-center text-sm font-medium tabular-nums","aria-label":i("quantity"),children:e.quantity}),(0,t.jsx)(a.Button,{type:"button",variant:"ghost",size:"icon-sm",className:"rounded-full","aria-label":i("increaseQuantity"),disabled:e.quantity>=u,onClick:()=>s(e.variantId,e.quantity+1),children:(0,t.jsx)(f.PlusIcon,{})})]}):(0,t.jsxs)("span",{className:"text-sm text-muted-foreground",children:[i("quantity"),": ",e.quantity]}),(0,t.jsx)(a.Button,{type:"button",variant:"ghost",size:"icon-sm",className:"rounded-full text-muted-foreground hover:text-destructive","aria-label":i("remove"),onClick:()=>n(e.variantId),children:(0,t.jsx)(p.Trash2Icon,{})})]})]})]})]})}var b=e.i(269035),y=e.i(758379),y=y,N=e.i(846696),w=e.i(954616),k=e.i(209057),C=e.i(442341),S=e.i(348528);function T({preview:e}){let s,n,i=(0,r.useTranslations)("store.checkout"),{isAuthenticated:o,isPending:d}=(0,C.useAuth)(),{startCheckout:u,isStartingCheckout:m,isRedirecting:x}=(s=(0,C.useCartLines)(),{startCheckout:(n=(0,w.useMutation)({mutationFn:async()=>{let{url:e}=await (0,k.requestCheckoutSession)(s);return e},onSuccess:e=>{window.location.assign(e)}})).mutate,isStartingCheckout:n.isPending,isRedirecting:n.isSuccess}),h=e.lines.length>0&&!e.hasIssues&&!e.hasMixedCurrency,f=m||x;if(!d&&!o){let e=`${S.AUTH_ROUTES.signIn}?callbackUrl=${encodeURIComponent(c.STORE_ROUTES.cart)}`;return(0,t.jsx)(a.Button,{size:"lg",className:"h-11 w-full rounded-full",nativeButton:!1,render:(0,t.jsx)(l.Link,{href:e}),children:i("signInToCheckout")})}return(0,t.jsx)(a.Button,{size:"lg",className:"h-11 w-full rounded-full",disabled:!h||f||d,onClick:()=>{u(void 0,{onError:e=>{N.toast.error(e instanceof Error?e.message:i("failed"))}})},children:f?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.default,{className:"size-4 animate-spin","aria-hidden":!0}),i("processing")]}):i("checkout")})}var M=e.i(647163);function I({preview:e,embedded:s=!1}){let a=(0,r.useTranslations)("store.cart"),n=e.currency&&!e.hasMixedCurrency?(0,j.formatMinorPriceAmount)(e.subtotalAmount,e.currency):null;return(0,t.jsxs)("aside",{className:(0,M.cn)("flex flex-col gap-4",!s&&"border-t border-border/60 pt-6 lg:sticky lg:top-24 lg:border-t-0 lg:pt-0"),"aria-label":a("summaryTitle"),children:[(0,t.jsxs)("dl",{className:"flex flex-col gap-3 text-sm",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsxs)("dt",{className:"text-muted-foreground",children:[a("subtotal")," · ",a("itemCount",{count:e.itemCount})]}),(0,t.jsx)("dd",{className:"tabular-nums",children:n??"â"})]}),(0,t.jsx)(b.Separator,{}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("dt",{className:"font-medium",children:a("total")}),(0,t.jsx)("dd",{className:"text-lg font-semibold tracking-tight tabular-nums",children:n??"â"})]})]}),(0,t.jsx)(T,{preview:e}),(0,t.jsx)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:a("checkoutNote")})]})}var A=e.i(773257),D=e.i(266027),R=e.i(978201);e.s(["CartContent",0,function({layout:e="dialog"}){let i=(0,r.useTranslations)("store.cart"),o=(0,C.useCartLines)(),{data:u,isLoading:m,isFetching:h}=function({enabled:e=!0}={}){let t=(0,C.useCartLines)();return(0,D.useQuery)({...(0,R.cartPreviewQueryOptions)(t),enabled:e&&t.length>0,placeholderData:e=>t.length>0?e:void 0})}(),{setLineQuantity:f,removeCartLine:p}=(0,A.useCartActions)(),g="page"===e;if(!o.length)return(0,t.jsxs)("div",{className:(0,M.cn)(g?"mx-auto flex w-full max-w-3xl flex-1 flex-col px-4 py-10 sm:px-6 lg:px-8":"flex min-h-0 flex-1 flex-col px-6 py-8"),children:[g?(0,t.jsx)("header",{className:"mb-8",children:(0,t.jsx)("h1",{className:"font-heading text-2xl font-semibold tracking-tight sm:text-3xl",children:i("title")})}):null,(0,t.jsx)("div",{className:"flex flex-1 items-center justify-center",children:(0,t.jsx)(d,{})})]});let j=u??{lines:[],currency:null,subtotalAmount:0,itemCount:o.reduce((e,t)=>
1e+t.quantity,0),hasIssues:!1,hasMixedCurrency:!1},b=(0,t.jsxs)("div",{className:"flex min-h-0 flex-col",children:[(0,t.jsx)(x,{preview:j}),m&&!u?(0,t.jsx)("div",{className:"divide-y divide-border/60",children:Array.from({length:Math.min(o.length,4)}).map((e,s)=>(0,t.jsxs)("div",{className:"flex gap-4 py-4",children:[(0,t.jsx)(n.Skeleton,{className:"size-20 shrink-0 rounded-xl sm:size-24"}),(0,t.jsxs)("div",{className:"flex-1 space-y-2 py-1",children:[(0,t.jsx)(n.Skeleton,{className:"h-4 w-2/3"}),(0,t.jsx)(n.Skeleton,{className:"h-3 w-1/3"}),(0,t.jsx)(n.Skeleton,{className:"h-3 w-1/4"})]})]},s))}):(0,t.jsx)("ul",{className:"divide-y divide-border/60","aria-busy":h,children:j.lines.map(e=>(0,t.jsx)(v,{line:e,onQuantityChange:f,onRemove:p},e.variantId))})]}),y=!m||u?(0,t.jsx)(I,{preview:j,embedded:!g}):(0,t.jsx)(n.Skeleton,{className:"h-48 w-full rounded-xl"});return g?(0,t.jsxs)("div",{className:"mx-auto w-full max-w-6xl px-4 py-10 sm:px-6 lg:px-8",children:[(0,t.jsxs)("header",{className:"mb-8 flex flex-wrap items-end justify-between gap-4",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("h1",{className:"font-heading text-2xl font-semibold tracking-tight sm:text-3xl",children:i("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:i("itemCount",{count:j.itemCount})})]}),(0,t.jsxs)(a.Button,{variant:"ghost",size:"sm",className:"text-muted-foreground",nativeButton:!1,render:(0,t.jsx)(l.Link,{href:c.STORE_ROUTES.home}),children:[(0,t.jsx)(s.ArrowLeftIcon,{"data-icon":"inline-start",className:"rtl:rotate-180"}),i("continueShopping")]})]}),(0,t.jsxs)("div",{className:"grid gap-6 lg:grid-cols-[minmax(0,1fr)_360px] lg:items-start",children:[b,y]})]}):(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-6 pb-4",children:b}),(0,t.jsx)("div",{className:"shrink-0 border-t border-border/60 px-6 py-4",children:y})]})}],494284)},553683,e=>{"use strict";var t=e.i(843476),s=e.i(271645);let r=(0,s.createContext)(null);e.s(["SettingsDialogProvider",0,function({children:e}){let[a,n]=(0,s.useState)(!1),[i,l]=(0,s.useState)("general"),[o,c]=(0,s.useState)(null),d=(0,s.useCallback)(e=>{n(e),e||c(null)},[]),u=(0,s.useCallback)((e,t)=>{e&&l(e),c(t??null),n(!0)},[]);return(0,t.jsx)(r.Provider,{value:{isOpen:a,section:i,selectedOrderId:o,setOpen:d,setSection:l,setSelectedOrderId:c,open:u},children:e})},"useSettingsDialog",0,function(){let e=(0,s.useContext)(r);if(!e)throw Error("useSettingsDialog must be used within SettingsDialogProvider");return e}],553683)},33037,665110,157108,e=>{"use strict";var t=e.i(456420);let s=(0,t.default)("library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]);e.s(["LibraryIcon",0,s],33037);let r=(0,t.default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);e.s(["HeartIcon",0,r],665110);let a=(0,t.default)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);e.s(["UserRoundIcon",0,a],157108)},706418,e=>{"use strict";var t=e.i(843476),s=e.i(948148),r=e.i(630374),a=e.i(553683),n=e.i(471435),i=e.i(975426),l=e.i(63447),o=e.i(967944),c=e.i(456904),d=e.i(167881),u=e.i(23750),m=e.i(994179),x=e.i(348528),h=e.i(269035),f=e.i(647163);function p({title:e,description:s,children:r,className:a,showSeparator:n=!0}){return(0,t.jsxs)("section",{className:(0,f.cn)("flex flex-col gap-5",a),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h3",{className:"text-sm font-medium",children:e}),s?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:s}):null]}),(0,t.jsx)("div",{className:"flex flex-col gap-6",children:r}),n?(0,t.jsx)(h.Separator,{className:"last:hidden"}):null]})}var g=e.i(986530);function j({label:e,description:s,children:r}){return(0,t.jsxs)(g.Field,{orientation:"responsive",className:"items-start @md/field-group:items-center",children:[(0,t.jsxs)(g.FieldContent,{children:[(0,t.jsx)(g.FieldTitle,{children:e}),s?(0,t.jsx)(g.FieldDescription,{children:s}):null]}),(0,t.jsx)("div",{className:"flex w-full shrink-0 flex-wrap items-center gap-2 @md/field-group:w-auto",children:r})]})}function v({user:e,onClose:r}){let a=(0,s.useTranslations)("settings.account");return(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:a("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:a("description")})]}),(0,t.jsxs)(p,{title:a("credentials.title"),children:[(0,t.jsx)(j,{label:a("credentials.email"),description:a("credentials.emailHint"),children:(0,t.jsx)(u.Input,{value:e.email,readOnly:!0,className:"max-w-sm bg-muted/40","aria-readonly":!0})}),(0,t.jsx)(j,{label:a("credentials.verification"),description:a(e.emailVerified?"credentials.verifiedHint":"credentials.unverifiedHint"),children:e.emailVerified?(0,t.jsxs)(m.Badge,{variant:"outline",className:"gap-1 border-emerald-500/30 bg-emerald-500/15 px-2.5 py-1 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(i.BadgeCheckIcon,{className:"size-3.5"}),a("credentials.verified")]}):(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(m.Badge,{variant:"outline",className:"border-amber-500/30 bg-amber-500/15 px-2.5 py-1 text-amber-700 dark:text-amber-300",children:a("credentials.unverified")}),(0,t.jsxs)(d.Button,{variant:"outline",size:"sm",nativeButton:!1,render:(0,t.jsx)(c.Link,{href:x.AUTH_ROUTES.verifyEmail}),onClick:r,children:[a("credentials.verifyCta"),(0,t.jsx)(l.ExternalLinkIcon,{})]})]})})]}),(0,t.jsx)(p,{title:a("session.title"),showSeparator:!1,children:(0,t.jsx)(j,{label:a("session.signOutLabel"),description:a("session.signOutHint"),children:(0,t.jsxs)(d.Button,{variant:"outline",nativeButton:!1,render:(0,t.jsx)(c.Link,{href:x.AUTH_ROUTES.signOut}),onClick:r,children:[(0,t.jsx)(o.LogOutIcon,{}),a("session.signOut")]})})})]})}var b=e.i(271645),y=e.i(861745),N=e.i(618566),w=e.i(363178),k=e.i(93167),C=e.i(505955),S=e.i(326198);e.i(176782),e.i(911825);let T=(0,e.i(225913).cva)("flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[>[data-variant=outline]]:*:data-[slot=input-group]:border-border has-[>[data-variant=outline]]:*:data-[slot=select-trigger]:border-border has-[>[data-variant=outline]]:[&>
1[data-slot=input-group]:has(:focus-visible)]:border-ring has-[>[data-variant=outline]]:[&>[data-slot=select-trigger]:focus-visible]:border-ring has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-4xl [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[>[data-variant=outline]]:[&>input]:border-border has-[>[data-variant=outline]]:[&>input:focus-visible]:border-ring",{variants:{orientation:{horizontal:"*:data-slot:rounded-e-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-e-4xl! [&>[data-slot]~[data-slot]]:rounded-s-none [&>[data-slot]~[data-slot]]:border-s-0",vertical:"flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-4xl! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0"}},defaultVariants:{orientation:"horizontal"}});function M({className:e,orientation:s,...r}){return(0,t.jsx)("div",{role:"group","data-slot":"button-group","data-orientation":s,className:(0,f.cn)(T({orientation:s}),e),...r})}var I=e.i(63270),A=e.i(160889);let D=[{value:"system",icon:k.MonitorIcon},{value:"light",icon:S.SunIcon},{value:"dark",icon:C.MoonIcon}];function R(){let e=(0,s.useTranslations)("settings.general.appearance"),{theme:r,setTheme:a}=(0,w.useTheme)(),[n,i]=(0,b.useState)(!1);(0,b.useEffect)(()=>{i(!0)},[]);let l=n?r:"system";return(0,t.jsx)(j,{label:e("label"),description:e("description"),children:(0,t.jsx)(M,{className:"w-full sm:w-auto",children:D.map(({value:s,icon:r})=>(0,t.jsxs)(d.Button,{type:"button",variant:l===s?"secondary":"outline",className:"flex-1 sm:flex-none",onClick:()=>a(s),"aria-pressed":l===s,children:[(0,t.jsx)(r,{}),e(s)]},s))})})}function z(){let e=(0,s.useTranslations)("settings.general.language"),r=(0,y.useLocale)(),a=(0,c.usePathname)(),n=(0,N.useSearchParams)(),i=(0,b.useMemo)(()=>{let e=n.toString();return e?`${a}?${e}`:a},[a,n]);return(0,t.jsx)(j,{label:e("label"),description:e("description"),children:(0,t.jsx)(M,{className:"w-full sm:w-auto",children:A.routing.locales.map(s=>(0,t.jsx)(d.Button,{variant:r===s?"secondary":"outline",className:"flex-1 sm:min-w-20 sm:flex-none",nativeButton:!1,"aria-current":r===s?"true":void 0,render:(0,t.jsx)(c.Link,{href:i,locale:s}),children:e(s)},s))})})}function L({user:e}){let r=(0,s.useTranslations)("settings.general");return(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:r("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:r("description")})]}),(0,t.jsxs)(p,{title:r("profile.title"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)(I.Avatar,{className:"size-16",children:[(0,t.jsx)(I.AvatarImage,{src:e.image??void 0,alt:e.name}),(0,t.jsx)(I.AvatarFallback,{className:"text-base",children:e.name.split(" ").map(e=>e[0]).join("").slice(0,2).toUpperCase()})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate font-medium",children:e.name}),(0,t.jsx)("p",{className:"truncate text-sm text-muted-foreground",children:e.email})]})]}),(0,t.jsx)(j,{label:r("profile.fullName"),description:r("profile.fullNameHint"),children:(0,t.jsx)(u.Input,{value:e.name,readOnly:!0,className:"max-w-sm bg-muted/40","aria-readonly":!0})}),(0,t.jsx)(j,{label:r("profile.displayName"),description:r("profile.displayNameHint"),children:(0,t.jsx)(u.Input,{value:e.name,readOnly:!0,className:"max-w-sm bg-muted/40","aria-readonly":!0})})]}),(0,t.jsxs)(p,{title:r("preferences.title"),showSeparator:!1,children:[(0,t.jsx)(R,{}),(0,t.jsx)(z,{})]})]})}var O=e.i(266027),E=e.i(33037),P=e.i(671428),U=e.i(675785);function B({icon:e,title:s,description:r,action:a}){return(0,t.jsxs)(U.Empty,{className:"border border-dashed border-border/70 bg-muted/20 py-14",children:[(0,t.jsxs)(U.EmptyHeader,{children:[(0,t.jsx)(U.EmptyMedia,{variant:"icon",children:(0,t.jsx)(e,{"aria-hidden":!0})}),(0,t.jsx)(U.EmptyTitle,{children:s}),(0,t.jsx)(U.EmptyDescription,{children:r})]}),a?(0,t.jsx)(U.EmptyContent,{children:a}):null]})}var _=e.i(503636),q=e.i(564168),H=e.i(923388),F=e.i(115741),$=e.i(846696),Q=e.i(111369),K=e.i(36321),Z=e.i(95187);let V=(0,Z.createServerReference)("406b6214e88bd956e392f89b536a984246db435084",Z.callServer,void 0,Z.findSourceMapURL,"createLibraryFileDownloadUrlAction"),G=(0,Z.createServerReference)("4056208fb89e53c0716c6b57bb7bdea50bdf60aba3",Z.callServer,void 0,Z.findSourceMapURL,"revealLibraryCredentialAction");var X=e.i(573141),Y=e.i(933818);
1let W=(0,Z.createServerReference)("40f050609625f550442117a285858312aa4a41c744",Z.callServer,void 0,Z.findSourceMapURL,"fetchMyLibraryItem"),J=(0,Z.createServerReference)("40f182e1403c7aae5ba1cf420b6dd34933415aa9ca",Z.callServer,void 0,Z.findSourceMapURL,"fetchMyLibraryItems");var ee=e.i(484321);let et={all:["library"],list:e=>[...et.all,"list",e],detail:e=>[...et.all,"detail",e]};function es({item:e}){var r;let a=(0,s.useTranslations)("settings.library"),n=(0,s.useFormatter)(),[i,l]=b.useState(!1),[o,c]=b.useState(null),u=e.fileCount>0||null!==e.credential,{data:m,isLoading:x}=(0,O.useQuery)({...(r=e.id,(0,Y.queryOptions)({queryKey:et.detail(r),queryFn:async()=>(0,ee.unwrapActionResult)(await W(r)),initialData:void 0})),enabled:i&&e.fileCount>0}),{mutateAsync:h,isPending:p}=(0,X.useActionMutation)({action:G,options:void 0}),{mutateAsync:g,isPending:j}=(0,X.useActionMutation)({action:V,options:void 0}),v=b.useCallback(async()=>{try{let t=await h({libraryItemId:e.id});c(t.payload)}catch(e){$.toast.error(e instanceof Error?e.message:a("revealError"))}},[e.id,h,a]),y=b.useCallback(async()=>{if(o)try{await navigator.clipboard.writeText(o),$.toast.success(a("copied"))}catch{$.toast.error(a("copyError"))}},[o,a]),N=b.useCallback(async t=>{try{let s=await g({libraryItemId:e.id,variantFileId:t});window.open(s.downloadUrl,"_blank","noopener,noreferrer")}catch(e){$.toast.error(e instanceof Error?e.message:a("downloadError"))}},[g,e.id,a]),w=n.dateTime(new Date(e.grantedAt),{dateStyle:"medium"}),k=(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-t border-border/70 px-4 py-3",children:[e.credential?(0,t.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-border/60 bg-muted/20 p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium",children:[(0,t.jsx)(F.KeyRoundIcon,{className:"size-4 text-muted-foreground"}),a("credential")]}),(0,t.jsx)("p",{className:"font-mono text-sm text-muted-foreground",children:e.credential.preview}),o?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("pre",{className:"overflow-x-auto rounded-md bg-background p-3 font-mono text-sm whitespace-pre-wrap break-all",children:o}),(0,t.jsxs)(d.Button,{type:"button",variant:"outline",size:"sm",className:"w-fit",onClick:y,children:[(0,t.jsx)(q.CopyIcon,{className:"size-4"}),a("copy")]})]}):(0,t.jsx)(d.Button,{type:"button",size:"sm",className:"w-fit",disabled:p,onClick:v,children:p?a("revealing"):a("reveal")})]}):null,e.fileCount>0?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:a("files")}),x?(0,t.jsx)("div",{className:"flex flex-col gap-2",children:Array.from({length:e.fileCount}).map((e,s)=>(0,t.jsx)(P.Skeleton,{className:"h-10 w-full rounded-md"},s))}):(0,t.jsx)("ul",{className:"flex flex-col gap-2",children:(m?.files??[]).map(e=>(0,t.jsxs)("li",{className:"flex items-center justify-between gap-3 rounded-md border border-border/60 bg-muted/10 px-3 py-2",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:e.fileName}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:(0,K.formatFileSize)(e.sizeBytes)})]}),(0,t.jsxs)(d.Button,{type:"button",variant:"outline",size:"sm",disabled:j,onClick:()=>N(e.id),children:[(0,t.jsx)(H.DownloadIcon,{className:"size-4"}),a("download")]})]},e.id))})]}):null]}),C=(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center justify-between gap-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate font-medium",children:e.productTitle}),(0,t.jsx)("p",{className:"truncate text-sm text-muted-foreground",children:e.variantTitle})]}),(0,t.jsx)("time",{dateTime:new Date(e.grantedAt).toISOString(),className:"shrink-0 text-xs text-muted-foreground tabular-nums",children:w})]});return u?(0,t.jsx)("li",{className:"rounded-xl border border-border/70 bg-muted/20",children:(0,t.jsxs)(Q.Collapsible,{open:i,onOpenChange:l,children:[(0,t.jsxs)(Q.CollapsibleTrigger,{className:(0,f.cn)("flex w-full items-center gap-4 px-4 py-3 text-start","hover:bg-muted/30 transition-colors"),children:[C,(0,t.jsx)(_.ChevronDownIcon,{className:(0,f.cn)("size-4 shrink-0 text-muted-foreground transition-transform",i&&"rotate-180")}
1)]}),(0,t.jsx)(Q.CollapsibleContent,{children:k})]})}):(0,t.jsx)("li",{className:"rounded-xl border border-border/70 bg-muted/20 px-4 py-3",children:C})}var er=e.i(961652);let ea={limit:20,offset:0,status:"all",sortBy:"grantedAt",sortDirection:"desc"};function en(){let e=(0,s.useTranslations)("settings.library"),{data:r,isLoading:a}=(0,O.useQuery)((0,Y.queryOptions)({queryKey:et.list(ea),queryFn:async()=>(0,ee.unwrapActionResult)(await J(ea)),initialData:void 0,placeholderData:e=>e})),n=r?.items??[];return(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")})]}),a?(0,t.jsx)("div",{className:"flex flex-col gap-3",children:Array.from({length:3}).map((e,s)=>(0,t.jsx)(P.Skeleton,{className:"h-16 w-full rounded-xl"},s))}):0===n.length?(0,t.jsx)(B,{icon:E.LibraryIcon,title:e("empty.title"),description:e("empty.description"),action:(0,t.jsx)(d.Button,{nativeButton:!1,render:(0,t.jsx)(c.Link,{href:er.STORE_ROUTES.games}),children:e("empty.browseGames")})}):(0,t.jsx)("ul",{className:"flex flex-col gap-2",children:n.map(e=>(0,t.jsx)(es,{item:e},e.id))})]})}var ei=e.i(401851),el=e.i(457466),eo=e.i(504796);let ec=(0,Z.createServerReference)("401614bd0cfb7ddc2efe2c437b1614d17cda4ea2b6",Z.callServer,void 0,Z.findSourceMapURL,"fetchMyOrderDetail"),ed=(0,Z.createServerReference)("4035e53b9193e9840ce39c62d485dd706559f715dc",Z.callServer,void 0,Z.findSourceMapURL,"fetchMyOrders"),eu={all:["orders","mine"],list:e=>[...eu.all,"list",e],detail:e=>[...eu.all,"detail",e]};var em=e.i(201171);function ex({status:e}){let r=(0,s.useTranslations)("settings.orders.status");return(0,t.jsx)(m.Badge,{variant:"outline",className:(0,f.cn)("px-2","paid"===e?"border-emerald-500/30 bg-emerald-500/15 text-emerald-700 dark:text-emerald-300":"pending"===e?"border-amber-500/30 bg-amber-500/15 text-amber-700 dark:text-amber-300":"failed"===e?"border-rose-500/30 bg-rose-500/15 text-rose-700 dark:text-rose-300":"border-border bg-muted text-muted-foreground"),children:r(e)})}function eh({status:e}){let r=(0,s.useTranslations)("settings.orders.fulfillmentStatus");return(0,t.jsx)(m.Badge,{variant:"outline",className:(0,f.cn)("px-2","fulfilled"===e?"border-emerald-500/30 bg-emerald-500/15 text-emerald-700 dark:text-emerald-300":"processing"===e?"border-sky-500/30 bg-sky-500/15 text-sky-700 dark:text-sky-300":"awaiting_review"===e?"border-amber-500/30 bg-amber-500/15 text-amber-700 dark:text-amber-300":"failed"===e?"border-rose-500/30 bg-rose-500/15 text-rose-700 dark:text-rose-300":"border-border bg-muted text-muted-foreground"),children:r(e)})}function ef({orderId:e,onBack:r}){let a=(0,s.useTranslations)("settings.orders"),{data:n,isLoading:i}=(0,O.useQuery)((0,Y.queryOptions)({queryKey:eu.detail(e),queryFn:async()=>(0,ee.unwrapActionResult)(await ec(e)),initialData:void 0,enabled:!!e}));return i?(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsx)(P.Skeleton,{className:"h-8 w-32"}),(0,t.jsx)(P.Skeleton,{className:"h-24 w-full rounded-xl"}),(0,t.jsx)(P.Skeleton,{className:"h-40 w-full rounded-xl"})]}):n?(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)(d.Button,{type:"button",variant:"ghost",size:"sm",className:"w-fit px-0 hover:bg-transparent",onClick:r,children:[(0,t.jsx)(eo.ArrowLeftIcon,{"data-icon":"inline-start"}),a("backToOrders")]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:a("orderTitle",{ref:n.id.slice(0,8).toUpperCase()})}),(0,t.jsx)(ex,{status:n.status}),(0,t.jsx)(eh,{status:n.fulfillmentStatus})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:function(e,t){if(!e)return t;let s=e instanceof Date?e:new Date(e);return(0,ei.format)(s,"MMM d, yyyy 'at' h:mm a")}(n.paidAt??n.createdAt,a("dateUnknown"))})]})]}),(0,t.jsx)("section",{className:"rounded-xl border border-border/70 bg-muted/20 p-4",children:(0,t.jsxs)("dl",{className:"grid gap-3 text-sm",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:a("detail.subtotal")}),(0,t.jsx)("dd",{className:"font-medium tabular-nums",children:(0,em.formatMinorPriceAmount)(n.subtotalAmount,n.currency)})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:a("detail.total")}),(0,t.jsx)("dd",{className:"text-base font-semibold tabular-nums",children:(0,em.formatMinorPriceAmount)(n.totalAmount,n.currency)})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:a("detail.reference")}),(0,t.jsx)("dd",{className:"font-mono text-xs",children:n.id})]})]})}),(0,t.jsxs)("section",{className:"flex flex-col gap-3",children:[(0,t.jsx)("h3",{className:"text-sm font-medium",children:a("detail.itemsTitle")}),(0,t.jsx)("ul",{className:"flex flex-col gap-2",children:n.items.map(e=>(0,t.jsx)("li",{className:"rounded-xl border border-border/70 bg-muted/20 px-4 py-3",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[(0,t.jsxs)("div",{className:"min-w-0 text-start",children:[(0,t.jsx)("p",{className:"font-medium",children:e.productTitle}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[e.variantTitle,e.sku?` \xb7 ${e.sku}`:""]}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:a("detail.quantity",{count:e.quantity})})]}),(0,t.jsx)("p",{className:"shrink-0 font-medium tabular-nums",children:(0,em.formatMinorPriceAmount)(e.totalAmount,n.currency)})]})},e.id))})]})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)(d.Button,{type:"button",variant:"ghost",size:"sm",onClick:r,children:[(0,t.jsx)(eo.ArrowLeftIcon,{"data-icon":"inl
1ine-start"}),a("backToOrders")]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:a("notFound")})]})}let ep={limit:20,offset:0,sortBy:"createdAt",sortDirection:"desc"};function eg(){let e=(0,s.useTranslations)("settings.orders"),{selectedOrderId:r,setSelectedOrderId:n}=(0,a.useSettingsDialog)(),{data:i,isLoading:l}=(0,O.useQuery)((0,Y.queryOptions)({queryKey:eu.list(ep),queryFn:async()=>(0,ee.unwrapActionResult)(await ed(ep)),initialData:void 0,placeholderData:e=>e}));if(r)return(0,t.jsx)(ef,{orderId:r,onBack:()=>n(null)});let o=i?.items??[];return(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")})]}),l?(0,t.jsx)("div",{className:"flex flex-col gap-3",children:Array.from({length:3}).map((e,s)=>(0,t.jsx)(P.Skeleton,{className:"h-20 w-full rounded-xl"},s))}):0===o.length?(0,t.jsx)(B,{icon:el.PackageIcon,title:e("empty.title"),description:e("empty.description"),action:(0,t.jsx)(d.Button,{nativeButton:!1,render:(0,t.jsx)(c.Link,{href:er.STORE_ROUTES.store}),children:e("empty.browseStore")})}):(0,t.jsx)("ul",{className:"flex flex-col gap-2",children:o.map(s=>{var r;let a;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>n(s.id),className:(0,f.cn)("flex w-full flex-col gap-3 rounded-xl border border-border/70 bg-muted/20 px-4 py-3 text-start transition-colors","hover:bg-muted/40"),children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"font-medium",children:e("list.orderRef",{ref:s.id.slice(0,8).toUpperCase()})}),(0,t.jsxs)("p",{className:"mt-1 text-sm text-muted-foreground",children:[(a=(r=s.paidAt??s.createdAt)instanceof Date?r:new Date(r),(0,ei.format)(a,"MMM d, yyyy"))," · ",e("list.itemsCount",{count:s.itemCount})]})]}),(0,t.jsx)("p",{className:"shrink-0 font-medium tabular-nums",children:(0,em.formatMinorPriceAmount)(s.totalAmount,s.currency)})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(m.Badge,{variant:"outline",className:"px-2",children:e(`status.${s.status}`)}),(0,t.jsx)(m.Badge,{variant:"outline",className:"px-2",children:e(`fulfillmentStatus.${s.fulfillmentStatus}`)})]})]})},s.id)})})]})}let ej=(0,e.i(456420).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var ev=e.i(711429);function eb({onClose:e}){let r=(0,s.useTranslations)("settings.privacy");return(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:r("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:r("description")})]}),(0,t.jsxs)(p,{title:r("legal.title"),showSeparator:!1,children:[(0,t.jsx)(j,{label:r("legal.privacyPolicy"),description:r("legal.privacyPolicyHint"),children:(0,t.jsxs)(d.Button,{variant:"outline",nativeButton:!1,render:(0,t.jsx)(c.Link,{href:"/privacy"}),onClick:e,children:[(0,t.jsx)(ev.ShieldIcon,{}),r("legal.viewPrivacy"),(0,t.jsx)(l.ExternalLinkIcon,{})]})}),(0,t.jsx)(j,{label:r("legal.terms"),description:r("legal.termsHint"),children:(0,t.jsxs)(d.Button,{variant:"outline",nativeButton:!1,render:(0,t.jsx)(c.Link,{href:"/terms"}),onClick:e,children:[(0,t.jsx)(ej,{}),r("legal.viewTerms"),(0,t.jsx)(l.ExternalLinkIcon,{})]})})]})]})}var ey=e.i(665110);function eN(){let e=(0,s.useTranslations)("settings.wishlist");return(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsx)(B,{icon:ey.HeartIcon,title:e("empty.title"),description:e("empty.description"),action:(0,t.jsx)(d.Button,{nativeButton:!1,render:(0,t.jsx)(c.Link,{href:er.STORE_ROUTES.deals}),children:e("empty.browseDeals")})})]})}function ew({section:e,user:r,onClose:a}){let i=(0,s.useTranslations)("settings");return(0,t.jsx)("div",{role:"tabpanel","aria-label":i(`nav.${e}`),className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden",children:(0,t.jsx)(n.ScrollArea,{className:"min-h-0 flex-1 overflow-hidden",children:(0,t.jsxs)("div",{className:"px-5 py-5 md:px-8 md:py-6",children:["library"===e?(0,t.jsx)(en,{}):null,"orders"===e?(0,t.jsx)(eg,{}):null,"wishlist"===e?(0,t.jsx)(eN,{}):null,"general"===e?(0,t.jsx)(L,{user:r}):null,"account"===e?(0,t.jsx)(v,{user:r,onClose:a}):null,"privacy"===e?(0,t.jsx)(eb,{onClose:a}):null]})})})}var ek=e.i(869323),eC=e.i(157108);function eS({id:e,label:s,icon:r,active:a,onSelect:n,compact:i=!1}){return(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":a,"aria-current":a?"page":void 0,onClick:()=>n(e),className:(0,f.cn)("flex items-center gap-2.5 rounded-xl px-3 py-2.5 text-start text-sm font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/30",i?"w-auto shrink-0":"w-full",a?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(r,{className:"size-4 shrink-0","aria-hidden":!0}),s]})}let eT=[{id:"library",labelKey:"library",icon:E.LibraryIcon},{id:"orders",labelKey:"orders",icon:el.PackageIcon},{id:"wishlist",labelKey:"wishlist",icon:ey.HeartIcon},{id:"general",labelKey:"general",icon:ek.Settings2Icon},{id:"account",labelKey:"account",icon:eC.UserRoundIcon},{id:"privacy",labelKey:"privacy",icon:ev.ShieldIcon}];function eM({section:e,onSectionChange:r,className:a,variant:i="sidebar"}){let l=(0,s.useTranslations)("settings.nav"),o=eT.map(s=>(0,t.jsx)(eS,{id:s.id,label:l(s.labelKey),icon:s.icon,active:e===s.id,onSelect:r,compact:"tabs"===i},s.id));return"tabs"===i?(0,t.jsx)("nav",{"aria-label":l("title"),role:"tablist",className:(0,f.cn)("flex gap-1 overflow-x-auto border-b border-border/70 p-2 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",a),children:o}):(0,t.jsxs)("aside",{className:(0,f.cn)("flex h-full min-h-0 w-full shrink-0 flex-col border-border/70 md:w-60 md:border-e",a),children:[(0,t.jsx)("div",{className:"hidden px-5 pt-5 pb-3 md:block",children:(0,t.jsx)("h2",{className:"text-base font-semibold",children:l("title")})}),(0,t.jsx)(n.ScrollArea,{className:"min-h-0 flex-1 px-3 pb-4 md:px-3",children:(0,t.jsx)("nav",{"aria-label":l("title"),role:"tablist",className:"flex flex-col gap-1",children:o})})]})}function eI({user:e}){let n=(0,s.useTranslations)("settings"),{isOpen:i,setOpen:l,section:o,setSection:c}=(0,a.useSettingsDialog)();return(0,t.jsx)(r.Dialog,{open:i,onOpenChange:l,children:(0,t.jsxs)(r.DialogContent,{showCloseButton:!0,className:"flex h-[min(40rem,92dvh)] w-full max-w-[calc(100%-1.5rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-4xl",children:[(0,t.jsx)(r.DialogTitle,{className:"sr-only",children:n("title")}),(0,t.jsx)(r.DialogDescription,{className:"sr-only",children:n("description")}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden md:flex-row",children:[(0,t.jsxs)("div",{className:"md:hidden",children:[(0,t.jsx)("div",{className:"border-b border-border/70 px-5 py-4",children:(0,t.jsx)("h2",{className:"text-base font-semibold",children:n("title")})}),(0,t.jsx)(eM,{section:o,onSectionChange:c,variant:"tabs"})]}),(0,t.jsx)(eM,{section:o,onSectionChange:c,className:"hidden md:flex"}),(0,t.jsx)(ew,{section:o,user:e,onClose:()=>l(!1)})]})]})})}var eA=e.i(442341);e.s(["SettingsSectionLink",0,function({section:e,children:s,className:r}){let n=(0,eA.useStoreNavUser)(),{open:i}=(0,a.useSettingsDialog)();return n?(0,t.jsx)("button",{type:"button",onClick:()=>i(e),className:(0,f.cn)("cursor-pointer border-0 bg-transparent p-0 text-inherit",r),children:s}):(0,t.jsx)(c.Link,{href:`${x.AUTH_ROUTES.signIn}?callbackUrl=${encodeURIComponent("/")}`,className:r,children:s})},"StoreSettingsHost",0,function({children:e}){let s=(0,eA.useStoreNavUser)();return(0,t.jsxs)(a.SettingsDialogProvider,{children:[e,s?(0,t.jsx)(eI,{user:s}):null]})}],706418)},429994,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(948148),a=e.i(630374),n=e.i(494284),i=e.i(744148),l=e.i(442341);function o(){let e=(0,r.useTranslations)("store.cart"),{isOpen:s,setOpen:o}=(0,i.useCartDialog)(),c=(0,l.useCartLines)(),d=(0,l.useCartItemCount)();return(0,t.jsx)(a.Dialog,{open:s,onOpenChange:o,children:(0,t.jsxs)(a.DialogContent,{showCloseButton:!0,className:"flex h-[80dvh] w-full max-w-md flex-col gap-0 overflow-hidden rounded-3xl p-0",children:[(0,t.jsxs)("div",{className:"shrink-0 px-6 pb-4 pt-5 pe-14",children:[(0,t.jsx)(a.DialogTitle,{className:"text-lg font-semibold tracking-tight",children:e("title")}),(0,t.jsx)(a.DialogDescription,{className:"mt-0.5 text-sm text-muted-foreground",children:c.length>0?e("itemCount",{count:d}):e("empty.description")})]}),s?(0,t.jsx)(n.CartContent,{layout:"dialog"}):null]})})}var c=e.i(618566),d=e.i(846696),u=e.i(773257),m=e.i(456904),x=e.i(961652);function h(){let e=(0,r.useTranslations)("store.cart"),t=(0,m.usePathname)(),a=(0,c.useSearchParams)(),n=(0,m.useRouter)(),{open:l}=(0,i.useCartDialog)(),{addToCart:o}=(0,u.useCartActions)(),h=(0,s.useRef)(null);return(0,s.useEffect)(()=>
1{if(!(0,x.isStoreCartRoute)(t))return;let s=a.get("variant");if(!s)return;let r=`${s}:${a.get("product")??""}`;h.current!==r&&(h.current=r,(async()=>{try{await o({variantId:s,quantity:1}),d.toast.success(e("added")),l(),n.replace(x.STORE_ROUTES.home)}catch(t){d.toast.error(t instanceof Error?t.message:e("addFailed"))}})())},[o,l,t,n,a,e]),null}var f=e.i(706418);e.s(["StoreCartDialogHost",0,function({children:e}){return(0,t.jsx)(i.CartDialogProvider,{children:(0,t.jsxs)(f.StoreSettingsHost,{children:[e,(0,t.jsx)(s.Suspense,{fallback:null,children:(0,t.jsx)(h,{})}),(0,t.jsx)(o,{})]})})}],429994)},911545,e=>{"use strict";let t=(0,e.i(456420).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheckIcon",0,t],911545)},368289,e=>{"use strict";let t=(0,e.i(456420).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["ClockIcon",0,t],368289)},179843,e=>{"use strict";var t=e.i(843476),s=e.i(647163);e.s(["Marquee",0,function({className:e,reverse:r=!1,pauseOnHover:a=!1,children:n,vertical:i=!1,repeat:l=4,...o}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{children:` 2 @keyframes marquee { 3 from { 4 transform: translateX(0); 5 } 6 to { 7 transform: translateX(calc(-100% - var(--gap))); 8 } 9 } 10 11 @keyframes marquee-vertical { 12 from { 13 transform: translateY(0); 14 } 15 to { 16 transform: translateY(calc(-100% - var(--gap))); 17 } 18 } 19 20 @keyframes scroll { 21 to { 22 transform: translate(calc(-50% - 0.5rem)); 23 } 24 } 25 26 .animate-marquee { 27 animation: marquee var(--duration) linear infinite; 28 } 29 30 .animate-marquee-vertical { 31 animation: marquee-vertical var(--duration) linear infinite; 32 } 33 34 .animate-reverse { 35 animation-direction: reverse !important; 36 } 37 38 .pause-on-hover:hover .animate-marquee, 39 .pause-on-hover:hover .animate-marquee-vertical { 40 animation-play-state: paused !important; 41 } 42 43 .animate-scroll { 44 animation: scroll var(--animation-duration, 40s) var(--animation-direction, forwards) linear infinite; 45 } 46 `}),(0,t.jsx)("div",{...o,className:(0,s.cn)("group flex gap-(--gap) overflow-hidden p-2 [--duration:40s] [--gap:1rem]",{"flex-row":!i,"flex-col":i,"pause-on-hover":a},e),children:Array(l).fill(0).map((e,a)=>(0,t.jsx)("div",{className:(0,s.cn)("flex shrink-0 justify-around gap-(--gap)",{"animate-marquee flex-row":!i,"animate-marquee-vertical flex-col":i,"animate-reverse":r}),children:n},a))})]})}])},508436,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(363178),a=e.i(861745),n=e.i(948148),i=e.i(618566),l=e.i(503636),o=e.i(456420);let c=(0,o.default)("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]),d=(0,o.default)("gamepad-2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]);var u=e.i(665110);let m=(0,o.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),x=(0,o.default)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);var h=e.i(33037),f=e.i(967944);let p=(0,o.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var g=e.i(93167),j=e.i(505955),v=e.i(457466),b=e.i(351289),y=e.i(911545),N=e.i(931942),w=e.i(326198),k=e.i(157108),C=e.i(456904),S=e.i(846932),T=e.i(791972),M=e.i(167881),I=e.i(269035),A=e.i(732176),D=e.i(368289);let R=(0,o.default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}
46]]);var z=e.i(560964),L=e.i(266027);e.i(247167);var O=e.i(231178),E=e.i(947414),P=e.i(674008),U=e.i(821476),B=e.i(772846),_=s,q=e.i(737806);function H(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class F extends _.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,B.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,s=(0,B.isHTMLElement)(e)&&e.offsetWidth||0,r=(0,B.isHTMLElement)(e)&&e.offsetHeight||0,a=getComputedStyle(t),n=this.props.sizeRef.current;n.height=parseFloat(a.height),n.width=parseFloat(a.width),n.top=t.offsetTop,n.left=t.offsetLeft,n.right=s-n.width-n.left,n.bottom=r-n.height-n.top,n.direction=a.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function $({children:e,isPresent:r,anchorX:a,anchorY:n,root:i,pop:l}){let o=(0,_.useId)(),c=(0,_.useRef)(null),d=(0,_.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=(0,_.useContext)(q.MotionConfigContext),m=function(...e){return s.useCallback(function(...e){return t=>{let s=!1,r=e.map(e=>{let r=H(e,t);return s||"function"!=typeof r||(s=!0),r});if(s)return()=>{for(let t=0;t<r.length;t++){let s=r[t];"function"==typeof s?s():H(e[t],null)}}}}(...e),e)}(c,e.props?.ref??e?.ref);return(0,_.useInsertionEffect)(()=>{let{width:e,height:t,top:s,left:m,right:x,bottom:h,direction:f}=d.current;if(r||!1===l||!c.current||!e||!t)return;let p="rtl"===f,g="left"===a?p?`right: ${x}`:`left: ${m}`:p?`left: ${m}`:`right: ${x}`,j="bottom"===n?`bottom: ${h}`:`top: ${s}`;c.current.dataset.motionPopId=o;let v=document.createElement("style");u&&(v.nonce=u);let b=i??document.head;return b.appendChild(v),v.sheet&&v.sheet.insertRule(` 47 [data-motion-pop-id="${o}"] { 48 position: absolute !important; 49 width: ${e}px !important; 50 height: ${t}px !important; 51 ${g}px !important; 52 ${j}px !important; 53 } 54 `),()=>{c.current?.removeAttribute("data-motion-pop-id"),b.contains(v)&&b.removeChild(v)}},[r]),(0,t.jsx)(F,{isPresent:r,childRef:c,sizeRef:d,pop:l,children:!1===l?e:_.cloneElement(e,{ref:m})})}let Q=({children:e,initial:r,isPresent:a,onExitComplete:n,custom:i,presenceAffectsLayout:l,mode:o,anchorX:c,anchorY:d,root:u})=>{let m=(0,E.useConstant)(K),x=(0,s.useId)(),h=!0,f=(0,s.useMemo)(()=>(h=!1,{id:x,initial:r,isPresent:a,custom:i,onExitComplete:e=>
54{for(let t of(m.set(e,!0),m.values()))if(!t)return;n&&n()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[a,m,n]);return l&&h&&(f={...f}),(0,s.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[a]),s.useEffect(()=>{a||m.size||!n||n()},[a]),e=(0,t.jsx)($,{pop:"popLayout"===o,isPresent:a,anchorX:c,anchorY:d,root:u,children:e}),(0,t.jsx)(U.PresenceContext.Provider,{value:f,children:e})};function K(){return new Map}var Z=e.i(464978);let V=e=>e.key||"";function G(e){let t=[];return s.Children.forEach(e,e=>{(0,s.isValidElement)(e)&&t.push(e)}),t}let X=({children:e,custom:r,initial:a=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:l="sync",propagate:o=!1,anchorX:c="left",anchorY:d="top",root:u})=>{let[m,x]=(0,Z.usePresence)(o),h=(0,s.useMemo)(()=>G(e),[e]),f=o&&!m?[]:h.map(V),p=(0,s.useRef)(!0),g=(0,s.useRef)(h),j=(0,E.useConstant)(()=>new Map),v=(0,s.useRef)(new Set),[b,y]=(0,s.useState)(h),[N,w]=(0,s.useState)(h);(0,P.useIsomorphicLayoutEffect)(()=>{p.current=!1,g.current=h;for(let e=0;e<N.length;e++){let t=V(N[e]);f.includes(t)?(j.delete(t),v.current.delete(t)):!0!==j.get(t)&&j.set(t,!1)}},[N,f.length,f.join("-")]);let k=[];if(h!==b){let e=[...h];for(let t=0;t<N.length;t++){let s=N[t],r=V(s);f.includes(r)||(e.splice(t,0,s),k.push(s))}return"wait"===l&&k.length&&(e=k),w(G(e)),y(h),null}let{forceRender:C}=(0,s.useContext)(O.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:N.map(e=>{let s=V(e),b=(!o||!!m)&&(h===N||f.includes(s));return(0,t.jsx)(Q,{isPresent:b,initial:(!p.current||!!a)&&void 0,custom:r,presenceAffectsLayout:i,mode:l,root:u,onExitComplete:b?void 0:()=>{if(v.current.has(s)||!j.has(s))return;v.current.add(s),j.set(s,!0);let e=!0;j.forEach(t=>{t||(e=!1)}),e&&(C?.(),w(g.current),o&&x?.(),n&&n())},anchorX:c,anchorY:d,children:e},s)})})};var Y=e.i(630374),W=e.i(23750),J=e.i(647163);function ee({className:e,...s}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,J.cn)("pointer-events-none inline-flex h-5.5 w-fit min-w-5.5 items-center justify-center gap-1 rounded-lg bg-muted px-1.5 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=input-group]:bg-input in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3",e),...s})}function et({className:e,...s}){return(0,t.jsx)("kbd",{"data-slot":"kbd-group",className:(0,J.cn)("inline-flex items-center gap-1",e),...s})}var es=e.i(671428),er=e.i(328833);let ea="store:search:recent:v1";function en(e){try{window.localStorage.setItem(ea,JSON.stringify(e.slice(0,6)))}catch{}}let ei=(0,s.createContext)(null);function el({children:e}
54){let[r,a]=(0,s.useState)(!1),n=(0,s.useCallback)(()=>{a(!0)},[]),i=(0,s.useCallback)(()=>{a(!1)},[]);return(0,s.useEffect)(()=>{function e(e){(e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()&&(e.preventDefault(),a(e=>!e))}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,t.jsx)(ei.Provider,{value:{isOpen:r,setOpen:a,open:n,close:i},children:e})}function eo(){let e=(0,s.useContext)(ei);if(!e)throw Error("useStoreSearch must be used within StoreSearchProvider");return e}var ec=e.i(933818),ed=e.i(95187);let eu=(0,ed.createServerReference)("40bd201f4363633d2789ef2fca2d94dec39c7f8bdc",ed.callServer,void 0,ed.findSourceMapURL,"fetchSearchPreview");var em=e.i(484321);let ex={all:["store","search"],preview:e=>[...ex.all,"preview",e]};var eh=e.i(591079),ef=e.i(961652);function ep(){return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl px-3 py-2.5",children:[(0,t.jsx)(es.Skeleton,{className:"size-12 shrink-0 rounded-xl"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,t.jsx)(es.Skeleton,{className:"h-4 w-3/5"}),(0,t.jsx)(es.Skeleton,{className:"h-3 w-2/5"})]}),(0,t.jsx)(es.Skeleton,{className:"h-4 w-14"})]})}function eg({children:e}){return(0,t.jsx)("p",{className:"px-3 pb-1 pt-3 text-[11px] font-semibold uppercase tracking-[0.14em] text-muted-foreground",children:e})}function ej({navItems:e}){var r;let a,i,l=(0,n.useTranslations)("store.search"),o=(0,n.useTranslations)("store.card"),c=(0,C.useRouter)(),{isOpen:u,setOpen:m,close:x}=eo(),h=(0,s.useRef)(null),[f,p]=(0,s.useState)(""),[g,j]=(0,s.useState)(""),{recentSearches:v,addRecentSearch:y,removeRecentSearch:N,clearRecentSearches:w}=function(){let[e,t]=(0,s.useState)([]);(0,s.useEffect)(()=>{t(function(){try{let e=window.localStorage.getItem(ea);if(!e)return[];let t=JSON.parse(e);if(!Array.isArray(t))return[];return t.filter(e=>"string"==typeof e).map(e=>e.trim()).filter(Boolean).slice(0,6)}catch{return[]}}())},[]);let r=(0,s.useCallback)(e=>{let s=e.trim();s&&t(e=>{let t=[s,...e.filter(e=>e.toLowerCase()!==s.toLowerCase())].slice(0,6);return en(t),t})},[]);return{recentSearches:e,addRecentSearch:r,removeRecentSearch:(0,s.useCallback)(e=>{t(t=>{let s=t.filter(t=>t!==e);return en(s),s})},[]),clearRecentSearches:(0,s.useCallback)(()=>{t([]),en([])},[])}}();(0,s.useEffect)(()=>{let e=window.setTimeout(()=>{j(f.trim())},280);return()=>window.clearTimeout(e)},[f]),(0,s.useEffect)(()=>{if(!u){p(""),j("");return}let e=window.requestAnimationFrame(()=>{h.current?.focus(),h.current?.select()});return()=>window.cancelAnimationFrame(e)},[u]);let{data:k,isFetching:T,isLoading:I}=(0,L.useQuery)((r={enabled:u},a=g.trim(),i=(r?.enabled??!0)&&a.length>=2,(0,ec.queryOptions)({queryKey:ex.preview(a),queryFn:async()=>(0,em.unwrapActionResult)(await eu(a)),enabled:i,initialData:r?.initialData,placeholderData:e=>e,staleTime:3e4}))),O=f.trim(),E=O.length>0,P=O.length>=2,U=k?.productTotal??0,B=k?.categoryTotal??0,_=U+B,q=P&&(I||T)&&!k;function H(e){let t=(e??O).trim();t&&(y(t),c.push(`${ef.STORE_ROUTES.search}?q=${encodeURIComponent(t)}`),x())}return(0,t.jsx)(Y.Dialog,{open:u,onOpenChange:function(e){m(e),e||(p(""),j(""))},children:(0,t.jsxs)(Y.DialogContent,{showCloseButton:!0,className:"flex h-auto w-[min(720px,94vw)] max-h-[min(82dvh,760px)] flex-col gap-0 overflow-hidden p-0 sm:max-w-[min(720px,94vw)]",children:[(0,t.jsxs)("div",{className:"shrink-0 px-3 py-2 pe-12",children:[(0,t.jsx)(Y.DialogTitle,{className:"sr-only",children:l("title")}),(0,t.jsx)(Y.DialogDescription,{className:"sr-only",children:l("placeholder")}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(b.SearchIcon,{"aria-hidden":!0,className:"pointer-events-none absolute start-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(W.Input,{ref:h,value:f,onChange:e=>p(e.target.value),onKeyDown:e=>{"Enter"===e.key&&P&&(e.preventDefault(),H())},placeholder:l("placeholder"),"aria-label":l("placeholder"),className:"h-11 border-0 bg-transparent ps-9 pe-9 text-base shadow-none focus-visible:ring-0",autoComplete:"off",spellCheck:!1}),E?(0,t.jsx)(M.Button,{type:"button",variant:"ghost",size:"icon-sm",className:"absolute end-0.5 top-1/2 -translate-y-1/2 roun
54ded-lg text-muted-foreground","aria-label":l("clear"),onClick:()=>p(""),children:(0,t.jsx)(z.XIcon,{className:"size-4"})}):null]})]}),(0,t.jsx)(S.motion.div,{layout:!0,className:"overflow-hidden",transition:{duration:.2,ease:[.2,0,0,1]},children:(0,t.jsx)("div",{className:"max-h-[min(58dvh,520px)] overflow-y-auto overscroll-contain px-2 py-2",children:(0,t.jsx)(X,{mode:"wait",initial:!1,children:E?(0,t.jsxs)(S.motion.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.18,ease:[.2,0,0,1]},className:"flex flex-col gap-1",layout:!0,children:[P?null:(0,t.jsx)("div",{className:"px-6 py-8 text-center",children:(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:l("minChars")})}),q?(0,t.jsx)("div",{className:"px-1 py-1",children:Array.from({length:4}).map((e,s)=>(0,t.jsx)(ep,{},s))}):null,!P||I||T||0!==_?null:(0,t.jsx)("div",{className:"px-6 py-8 text-center",children:(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:l("empty.description",{query:O})})}),k&&k.categories.length>0?(0,t.jsxs)("div",{children:[(0,t.jsx)(eg,{children:l("categories",{count:B})}),k.categories.map(e=>(0,t.jsxs)(C.Link,{href:(0,ef.storeCategoryPath)(e.slug,e.parent?.slug),onClick:()=>{y(O),x()},className:"flex items-center gap-3 rounded-2xl px-3 py-2.5 transition-colors hover:bg-muted/70",children:[(0,t.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-xl bg-muted text-muted-foreground",children:(0,t.jsx)(R,{className:"size-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:e.name}),e.productCount>0?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:l("categoryCount",{count:e.productCount})}):null]}),(0,t.jsx)(A.ArrowRightIcon,{className:"size-4 text-muted-foreground rtl:rotate-180"})]},e.id))]}):null,k&&k.products.length>0?(0,t.jsxs)("div",{children:[(0,t.jsx)(eg,{children:l("products",{count:U})}),k.products.map(e=>{let s=(0,eh.getProductCover)(e),r=(0,eh.formatStorePriceLabel)(e.price,o("from")),a=e.categories.find(e=>e.isPrimary);return(0,t.jsxs)(C.Link,{href:(0,ef.storeProductPath)(e.slug),onClick:()=>{y(O),x()},className:"flex items-center gap-3 rounded-2xl px-3 py-2.5 transition-colors hover:bg-muted/70",children:[(0,t.jsx)("div",{className:"size-12 shrink-0 overflow-hidden rounded-xl bg-muted",children:s?(0,t.jsx)(er.StoreProductCover,{src:s.url,alt:s.alt??e.title,className:"size-full"}):(0,t.jsx)("div",{className:"grid size-full place-items-center text-muted-foreground",children:(0,t.jsx)(d,{className:"size-4 opacity-60"})})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:e.title}),a?(0,t.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:a.name}):null]}),r?(0,t.jsx)("span",{className:"shrink-0 text-sm font-medium tabular-nums text-foreground",children:r}):null]},e.id)})]}):null]},"results"):(0,t.jsxs)(S.motion.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.18,ease:[.2,0,0,1]},className:"flex flex-col gap-1",layout:!0,children:[v.length>0?(0,t.jsxs)("div",{className:"px-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-3 pb-2 pt-3",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-muted-foreground",children:l("recent")}),(0,t.jsx)(M.Button,{type:"button",variant:"ghost",size:"sm",className:"h-7 rounded-full px-2 text-xs text-muted-foreground",onClick:w,children:l("clearRecent")})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2 px-2 pb-2",children:v.map(e=>(0,t.jsxs)("div",{className:"group/recent relative",children:[(0,t.jsxs)(M.Button,{type:"button",variant:"outline",size:"sm",className:"h-8 rounded-full pe-8 ps-3 text-sm font-normal",onClick:()=>{p(e),j(e)},children:[(0,t.jsx)(D.ClockIcon,{className:"size-3.5 text-muted-foreground"}),e]}),(0,t.jsx)("button",{type:"button",className:"absolute end-1.5 top-1/2 grid size-5 -translate-y-1/2 place-items-center rounded-full text-muted-foreground opacity-0 transition-opacity hover:bg-muted hover:text-foreground group-hover/recent:opacity-100","aria-label":l("removeRecent",{query:e}),onClick:()=>N(e),children:(0,t.jsx)(z.XIcon,{className:"size-3"})})]},e))})]}):null,(0,t.jsx)(eg,{children:l("browse")}),(0,t.jsx)("div",{className:"grid gap-1 px-1 sm:grid-cols-2",children:e.filter(e=>"home"!==e.key).map(e=>(0,t.jsxs)("button",{type:"button",className:"flex items-center gap-3 rounded-2xl px-3 py-2.5 text-start text-sm font-medium text-foreground transition-colors hover:bg-muted/70",onClick:()=>{c.push(e.href),x()},children:[(0,t.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded-xl bg-muted text-muted-foreground",children:e.icon}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:e.label}),(0,t.jsx)(A.ArrowRightIcon,{className:"ms-auto size-4 text-muted-foreground rtl:rotate-180"})]},e.key))})]},"idle")})})}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between gap-3 px-5 py-3",children:[(0,t.jsxs)("p",{className:"hidden text-xs text-muted-foreground sm:block",children:[(0,t.jsx)(et,{children:(0,t.jsx)(ee,{children:"âµ"})})," ",l("submitHint")]}),P&&_>0?(0,t.jsxs)(M.Button,{type:"button",size:"sm",className:"ms-auto rounded-full",onClick:()=>H(),children:[l("viewAll",{count:U}),(0,t.jsx)(A.ArrowRightIcon,{className:"size-4 rtl:rotate-180"})]}):(0,t.jsx)("span",{className:"ms-auto text-xs text-muted-foreground sm:hidden",children:l("submitHint")})]})]})})}function ev({children:e,navItems:s=[]}){return(0,t.jsxs)(el,{children:[e,(0,t.jsx)(ej,{navItems:s})]})}let eb="drop-shadow-[0_1px_10px_rgba(0,0,0,0.8)]";function ey({label:e,heroTheme:s=!1}){let r=(0,n.useTranslations)("store.search"),{open:a}=eo();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.Button,{variant:"outline",size:"icon",type:"button",className:(0,J.cn)("relative md:hidden",s&&
54(0,J.cn)("border-transparent bg-transparent text-white shadow-none hover:bg-white/10 hover:text-white",eb)),"aria-label":e,onClick:a,children:(0,t.jsx)(b.SearchIcon,{})}),(0,t.jsxs)("button",{type:"button","aria-label":e,onClick:a,className:(0,J.cn)("hidden h-9 min-w-[12rem] max-w-[15rem] items-center gap-2 rounded-full border px-3 text-start text-sm transition-colors md:inline-flex lg:min-w-[14rem]",s?(0,J.cn)("border-white/15 bg-white/8 text-white/70 hover:bg-white/12 hover:text-white/90",eb):"border-border/70 bg-muted/30 text-muted-foreground hover:border-border hover:bg-muted/50"),children:[(0,t.jsx)(b.SearchIcon,{className:(0,J.cn)("size-4 shrink-0",s?"text-white/70":"text-muted-foreground")}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:r("placeholder")})]})]})}var eN=e.i(63270),ew=e.i(463415),ek=e.i(743687),eC=e.i(872855),eS=e.i(225883),eT=e.i(447972),eM=e.i(179843);function eI({label:e,heroTheme:s}){return(0,t.jsxs)("span",{className:(0,J.cn)("flex shrink-0 items-center gap-2 whitespace-nowrap px-1 text-[11px] font-medium tracking-wide sm:text-xs",s?(0,J.cn)("text-white/80","[text-shadow:0_1px_10px_rgba(0,0,0,0.7)]"):"text-muted-foreground"),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,J.cn)("size-1 shrink-0 rounded-full",s?"bg-white/45":"bg-foreground
54/35")}),e]})}function eA({heroTheme:e=!1,items:s}){let r=(0,a.useLocale)(),n=s.filter(e=>e.trim());return n.length?(0,t.jsx)("div",{className:(0,J.cn)("relative overflow-hidden","[mask-image:linear-gradient(to_right,transparent,black_8%,black_92%,transparent)]","[-webkit-mask-image:linear-gradient(to_right,transparent,black_8%,black_92%,transparent)]",e?"border-transparent bg-transparent":"border-b border-border/60 bg-muted/30"),children:(0,t.jsx)(eM.Marquee,{reverse:"ar"===r,pauseOnHover:!0,className:"py-1.5 [--duration:26s] [--gap:1.75rem]",children:n.map(s=>(0,t.jsx)(eI,{label:s,heroTheme:e},s))})}):null}var eD=e.i(553683),eR=e.i(744148),ez=e.i(912598),eL=e.i(978201),eO=e.i(442341),eE=e.i(348528),eP=e.i(931741),eU=e.i(160889);let eB=[{key:"home",href:ef.STORE_ROUTES.home,icon:(0,t.jsx)(m,{className:"size-4"})},{key:"arcRaiders",href:ef.STORE_ROUTES.arcRaiders,icon:(0,t.jsx)(c,{className:"size-4"})}],e_={games:(0,t.jsx)(d,{className:"size-4"}),software:(0,t.jsx)(g.MonitorIcon,{className:"size-4"}),accounts:(0,t.jsx)(x,{className:"size-4"}),"assets-templates":(0,t.jsx)(v.PackageIcon,{className:"size-4"})},eq={type:"spring",stiffness:420,damping:38,bounce:0},eH="relative flex w-full min-w-0 flex-col items-center justify-center gap-1.5 rounded-xl border border-border/70 bg-background px-2 py-3 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground";function eF({locale:e,className:s}){return"en"===e?(0,t.jsx)("span",{className:(0,J.cn)("text-sm font-semibold leading-none tracking-wide",s),children:"En"}):(0,t.jsx)("span",{className:(0,J.cn)("text-base font-semibold leading-none",s),children:"ع"})}function e$(e){return e.split(" ").map(e=>e[0]).join("").slice(0,2).toUpperCase()}function eQ(e,t){return t!==ef.STORE_ROUTES.home&&(t===ef.STORE_ROUTES.home?e===ef.STORE_ROUTES.home:e===t||e.startsWith(`${t}/`))}let eK="drop-shadow-[0_1px_10px_rgba(0,0,0,0.8)]";function eZ(){return(0,J.cn)("text-white hover:bg-white/10 hover:text-white",eK)}function eV(e,t=!1){return(0,J.cn)("relative inline-flex items-center gap-1 rounded-xl px-3 py-2 text-sm font-medium outline-none transition-colors focus-visible:ring-3",t?(0,J.cn)("text-white hover:bg-white/10 hover:text-white focus-visible:ring-white/30","[text-shadow:0_1px_12px_rgba(0,0,0,0.72),0_0_1px_rgba(0,0,0,0.9)]"):"text-muted-foreground hover:bg-foreground
54/5 hover:text-foreground focus-visible:ring-ring/30",e&&(t?"bg-white/10 text-white":"bg-foreground/5 text-foreground"))}function eG({children:e}){return(0,t.jsx)("div",{className:"flex items-center gap-2 sm:gap-3",children:e})}function eX({heroTheme:e,user:s,navItems:r,mobileOpen:a,onMobileOpenChange:i,brandName:l}){let o=(0,n.useTranslations)("store.header"),c=(0,eO.useCartItemCount)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e2,{user:s,navItems:r,open:a,onOpenChange:i,heroTheme:e}),(0,t.jsx)(eY,{heroTheme:e,brandName:l}),(0,t.jsx)("nav",{"aria-label":o("primaryNav"),className:"hidden flex-1 items-center justify-center gap-1 lg:flex",children:r.map(s=>s.children?(0,t.jsx)(eJ,{item:s,heroTheme:e},s.key):(0,t.jsx)(eW,{item:s,heroTheme:e},s.key))}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(ey,{label:o("search"),heroTheme:e}),(0,t.jsx)(e1,{count:c,label:o("cart"),heroTheme:e}),(0,t.jsx)(eS.LocaleSwitcher,{heroTheme:e,className:"hidden md:inline-flex"}),(0,t.jsx)(eT.ModeToggle,{className:(0,J.cn)("hidden md:inline-flex",e&&(0,J.cn)("border-transparent bg-transparent text-white shadow-none hover:bg-white/10 hover:text-white",eK))}),s?(0,t.jsx)(e4,{user:s,heroTheme:e}):(0,t.jsx)(M.Button,{variant:"ghost",size:"icon",className:(0,J.cn)(e&&eZ()),"aria-label":o("signIn"),nativeButton:!1,render:(0,t.jsx)(C.Link,{href:eE.AUTH_ROUTES.signIn}),children:(0,t.jsx)(k.UserRoundIcon,{})})]})]})}function eY({heroTheme:e=!1,brandName:s}){return(0,t.jsx)(C.Link,{href:ef.STORE_ROUTES.home,"aria-label":s,className:(0,J.cn)("flex shrink-0 items-center rounded-xl px-1 outline-none focus-visible:ring-3",e?"focus-visible:ring-white/30":"focus-visible:ring-ring/30"),children:(0,t.jsx)(T.SiteLogo,{alt:s,className:(0,J.cn)(e&&eK),imageClassName:"h-11 w-auto"})})}function eW({item:e,heroTheme:s=!1}){let r=eQ((0,C.usePathname)(),e.href);return(0,t.jsxs)(C.Link,{href:e.href,"aria-current":r?"page":void 0,className:eV(r,s),children:[e.label,(0,t.jsx)(e0,{active:r,heroTheme:s})]})}function eJ({item:e,heroTheme:s=!1}){let r=(0,n.useTranslations)("store.nav.menu"),a=(0,eC.useDirection)(),i=eQ((0,C.usePathname)(),e.href);return(0,t.jsxs)(ew.DropdownMenu,{children:[(0,t.jsxs)(ew.DropdownMenuTrigger,{render:(0,t.jsx)("button",{type:"button",className:(0,J.cn)(eV(i,s),"group")}),children:[e.label,(0,t.jsx)(l.ChevronDownIcon,{className:"size-3.5 opacity-60 transition-transform duration-200 group-aria-expanded:rotate-180 group-data-popup-open:rotate-180"}),(0,t.jsx)(e0,{active:i,heroTheme:s})]}),(0,t.jsxs)(ew.DropdownMenuContent,{dir:a,align:"center",sideOffset:12,className:"min-w-56",children:[(0,t.jsxs)(ew.DropdownMenuItem,{className:"font-medium",render:(0,t.jsx)(C.Link,{href:e.href}),children:[e.icon,r("viewAll")]}),(0,t.jsx)(ew.DropdownMenuSeparator,{}),(0,t.jsx)(ew.DropdownMenuGroup,{children:e.children?.map(e=>(0,t.jsx)(ew.DropdownMenuItem,{render:(0,t.jsx)(C.Link,{href:e.href}),children:e.label},e.key))})]})]})}function e0({active:e,heroTheme:s=!1}){return e?(0,t.jsx)(S.motion.span,{layoutId:"store-nav-active",className:(0,J.cn)("absolute inset-x-2.5 -bottom-0.5 h-0.5 rounded-full",s?"bg-white":"bg-primary"),transition:eq}):null}function e1({count:e,label:r,heroTheme:a=!1}){let n,i,{open:l}=(0,eR.useCartDialog)(),o=(n=(0,ez.useQueryClient)(),i=(0,eO.useCartLines)(),(0,s.useCallback)(()=>{0!==i.length&&n.prefetchQuery((0,eL.cartPreviewQueryOptions)(i))},[i,n]));return(0,t.jsxs)(M.Button,{variant:"outline",size:"icon",type:"button",className:(0,J.cn)("relative",a&&(0,J.cn)("border-transparent bg-transparent text-white shadow-none hover:bg-white/10 hover:text-white",eK)),"aria-label":e>0?`${r} (${e})`:r,onMouseEnter:o,onFocus:o,onClick:()=>l(),children:[(0,t.jsx)(N.ShoppingCartIcon,{}),e>0?(0,t.jsx)("span",{className:"absolute -top-1 -end-1 grid min-w-4 place-items-center rounded-full bg-primary px-1 text-[10px] font-semibold leading-4 text-primary-foreground",children:e>99?"99+":e}):null]})}function e2({user:e,navItems:s,open:r,onOpenChange:a,heroTheme:i=!1}){let l=(0,n.useTranslations)("store.header"),o=(0,n.useTranslations)("store.search"),c=(0,C.usePathname)(),{open:d}=(0,eD.useSettingsDialog)(),{open:m}=eo(),x=()=>a(!1);return(0,t.jsxs)(ek.Drawer,{open:r,onOpenChange:a,direction:"bottom",children:[(0,t.jsx)(ek.DrawerTrigger,{asChild:!0,children:(0,t.jsx)(M.Button,{variant:"ghost",size:"icon",className:(0,J.cn)("rounded-xl lg:hidden",i&&eZ()),"aria-label":l("openMenu"),children:(0,t.jsx)(p,{})})}),(0,t.jsxs)(ek.DrawerContent,{className:"mt-0 flex max-h-[85vh] flex-col p-0 before:inset-x-0 before:top-0 before:bottom-0 before:rounded-none",children:[(0,t.jsx)(ek.DrawerTitle,{className:"sr-only",children:l("primaryNav")}),(0,t.jsx)(ek.DrawerDescription,{className:"sr-only",children:l("openMenu")}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto px-4 pb-2 pt-3",children:[(0,t.jsxs)("button",{type:"button",className:"mb-2 flex h-11 items-center gap-3 rounded-2xl border border-border/70 bg-muted/30 px-4 text-sm text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground",onClick:()=>{m(),x()},children:[(0,t.jsx)(b.SearchIcon,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:o("placeholder")})]}),s.map(e=>{let s=eQ(c,e.href);return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)(e5,{href:e.href,active:s,onSelect:x,children:[e.icon,e.label]}),e.children?(0,t.jsx)("div",{className:"ms-6 flex flex-col border-s border-border/60 ps-3",children:e.children.map(e=>(0,t.jsx)(e5,{href:e.href,onSelect:x,className:"rounded-lg px-3 py-2 text-sm",children:e.label},e.key))}):null]},e.key)}),e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.Separator,{className:"my-3"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(e3,{icon:(0,t.jsx)(h.LibraryIcon,{className:"size-4"}),label:l("myLibrary"),onSelect:()=>{d("library"),x()}}),(0,t.jsx)(e3,{icon:(0,t.jsx)(v.PackageIcon,{className:"size-4"}),label:l("orders"),onSelect:()=>{d("orders"),x()}}),(0,t.jsx)(e3,{icon:(0,t.jsx)(u.HeartIcon,{className:"size-4"}),label:l("wishlist"),onSelect:()=>{d("wishlist"),x()}}),(0,t.jsx)(e3,{icon:(0,t.jsx)(k.UserRoundIcon,{className:"size-4"}),label:l("settings"),onSelect:()=>{d("general"),x()}}),e.isAdmin?(0,t.jsxs)(e5,{href:eP.ADMIN_ROUTES.dashboard,onSelect:x,children:[(0,t.jsx)(y.ShieldCheckIcon,{className:"size-4"}),l("admin")]}):null,(0,t.jsxs)(e5,{href:eE.AUTH_ROUTES.signOut,onSelect:x,children:[(0,t.jsx)(f.LogOutIcon,{className:"size-4"}),l("signOut")]})]})]}):null]}),(0,t.jsx)(ek.DrawerFooter,{className:"shrink-0 border-t border-border/70 p-4 pt-3",children:(0,t.jsxs)("div",{className:"grid w-full grid-cols-3 gap-2",children:[(0,t.jsx)(e6,{user:e,onClose:x}),(0,t.jsx)(e9,{onClose:x}),(0,t.jsx)(te,{})]})})]})]})}function e4({user:e,heroTheme:s=!1}){let r=(0,n.useTranslations)("store.header"),a=(0,eC.useDirection)(),{open:i}=(0,eD.useSettingsDialog)();return(0,t.jsxs)(ew.DropdownMenu,{children:[(0,t.jsx)(ew.DropdownMenuTrigger,{render:(0,t.jsx)(M.Button,{variant:"ghost",size:"icon",className:(0,J.cn)(s&&eZ()),"aria-label":r("account")}
54),children:(0,t.jsxs)(eN.Avatar,{className:(0,J.cn)("size-7",s&&"ring-2 ring-white/20"),children:[(0,t.jsx)(eN.AvatarImage,{src:e.image??void 0,alt:e.name}),(0,t.jsx)(eN.AvatarFallback,{className:"text-[10px]",children:e$(e.name)})]})}),(0,t.jsxs)(ew.DropdownMenuContent,{className:"min-w-56",dir:a,align:"end",sideOffset:10,children:[(0,t.jsx)(ew.DropdownMenuGroup,{children:(0,t.jsx)(ew.DropdownMenuLabel,{className:"p-0 font-normal",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-1 py-1.5 text-start",children:[(0,t.jsxs)(eN.Avatar,{className:"size-8",children:[(0,t.jsx)(eN.AvatarImage,{src:e.image??void 0,alt:e.name}),(0,t.jsx)(eN.AvatarFallback,{className:"text-xs",children:e$(e.name)})]}),(0,t.jsxs)("div",{className:"grid flex-1 leading-tight",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.name}),(0,t.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:e.email})]})]})})}),(0,t.jsx)(ew.DropdownMenuSeparator,{}),(0,t.jsxs)(ew.DropdownMenuGroup,{children:[(0,t.jsxs)(ew.DropdownMenuItem,{onClick:()=>i("library"),children:[(0,t.jsx)(h.LibraryIcon,{}),r("myLibrary")]}),(0,t.jsxs)(ew.DropdownMenuItem,{onClick:()=>i("orders"),children:[(0,t.jsx)(v.PackageIcon,{}),r("orders")]}),(0,t.jsxs)(ew.DropdownMenuItem,{onClick:()=>i("wishlist"),children:[(0,t.jsx)(u.HeartIcon,{}),r("wishlist")]}),(0,t.jsxs)(ew.DropdownMenuItem,{onClick:()=>i("general"),children:[(0,t.jsx)(k.UserRoundIcon,{}),r("settings")]})]}),e.isAdmin?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ew.DropdownMenuSeparator,{}),(0,t.jsxs)(ew.DropdownMenuItem,{render:(0,t.jsx)(C.Link,{href:eP.ADMIN_ROUTES.dashboard}),children:[(0,t.jsx)(y.ShieldCheckIcon,{}),r("admin")]})]}):null,(0,t.jsx)(ew.DropdownMenuSeparator,{}),(0,t.jsxs)(ew.DropdownMenuItem,{render:(0,t.jsx)(C.Link,{href:eE.AUTH_ROUTES.signOut}),children:[(0,t.jsx)(f.LogOutIcon,{}),r("signOut")]})]})]})}function e3({icon:e,label:s,onSelect:r}){return(0,t.jsxs)("button",{type:"button",onClick:r,className:"flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground",children:[e,s]})}function e5({href:e,children:s,active:r=!1,onSelect:a,className:n}){return(0,t.jsx)(ek.DrawerClose,{asChild:!0,children:(0,t.jsx)(C.Link,{href:e,"aria-current":r?"page":void 0,onClick:a,className:(0,J.cn)("flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm font-medium transition-colors",r?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground",n),children:s})})}function e6({user:e,onClose:s}){let r=(0,n.useTranslations)("store.header"),{open:a}=(0,eD.useSettingsDialog)();return e?(0,t.jsxs)("button",{type:"button",onClick:()=>{a("general"),s()},className:eH,children:[(0,t.jsxs)(eN.Avatar,{className:"size-7",children:[(0,t.jsx)(eN.AvatarImage,{src:e.image??void 0,alt:e.name}),(0,t.jsx)(eN.AvatarFallback,{className:"text-[10px]",children:e$(e.name)})]}),(0,t.jsx)("span",{className:"truncate",children:r("account")})]}):(0,t.jsx)(ek.DrawerClose,{asChild:!0,children:(0,t.jsxs)(C.Link,{href:eE.AUTH_ROUTES.signIn,onClick:s,className:eH,children:[(0,t.jsx)(k.UserRoundIcon,{className:"size-5"}),(0,t.jsx)("span",{className:"truncate",children:r("signIn")})]})})}function e8(){let e=(0,a.useLocale)(),s=(0,n.useTranslations)("store.header"),r=eU.routing.locales.find(t=>t!==e)??e;return(0,t.jsxs)("button",{type:"button",className:eH,"aria-hidden":!0,disabled:!0,children:[(0,t.jsx)(eF,{locale:r}),(0,t.jsx)("span",{className:"truncate",children:s("language")})]})}function e7({onClose:e}){let r=(0,a.useLocale)(),l=(0,C.usePathname)(),o=(0,i.useSearchParams)(),c=(0,n.useTranslations)("store.header"),d=(0,n.useTranslations)("common"),u=(0,s.useMemo)(()=>{let e=o.toString();return e?`${l}?${e}`:l},[l,o]),m=eU.routing.locales.find(e=>e!==r)??r;return(0,t.jsx)(ek.DrawerClose,{asChild:!0,children:(0,t.jsxs)(C.Link,{href:u,locale:m,onClick:e,"aria-label":d("changeLanguage"),className:eH,children:[(0,t.jsx)(eF,{locale:m}),(0,t.jsx)("span",{className:"truncate",children:c("language")})]})})}function e9({onClose:e}){return(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(e8,{}),children:(0,t.jsx)(e7,{onClose:e})})}function te(){let e=(0,n.useTranslations)("store.header"),s=(0,n.useTranslations)("settings.general.appearance"),a=(0,eC.useDirection)(),{setTheme:i}=(0,r.useTheme)();return(0,t.jsxs)(ew.DropdownMenu,{children:[(0,t.jsxs)(ew.DropdownMenuTrigger,{render:(0,t.jsx)("button",{type:"button",className:eH,"aria-label":e("theme")}),children:[(0,t.jsxs)("span",{className:"relative flex size-5 items-center justify-center",children:[(0,t.jsx)(w.SunIcon,{className:"size-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,t.jsx)(j.MoonIcon,{className:"absolute size-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"})]}),(0,t.jsx)("span",{className:"truncate",children:e("theme")})]}),(0,t.jsxs)(ew.DropdownMenuContent,{dir:a,align:"center",side:"top",children:[(0,t.jsxs)(ew.DropdownMenuItem,{onClick:()=>i("light"),children:[(0,t.jsx)(w.SunIcon,{}),s("light")]}),(0,t.jsxs)(ew.DropdownMenuItem,{onClick:()=>i("dark"),children:[(0,t.jsx)(j.MoonIcon,{}),s("dark")]}),(0,t.jsxs)(ew.DropdownMenuItem,{onClick:()=>i("system"),children:[(0,t.jsx)(g.MonitorIcon,{}),s("system")]})]})]})}e.s(["StoreNav",0,function({categoryNavItems:e,brandName:r,promoItems:a}){let i,l=(0,eO.useStoreNavUser)(),o=(0,C.usePathname)(),c=(i=(0,n.useTranslations)("store.nav"),(0,s.useMemo)(()=>[...eB.map(e=>({key:e.key,href:e.href,icon:e.icon,label:i(e.key)})),...e.map(e=>({key:e.slug,href:(0,ef.storeCategoryPath)(e.slug),icon:e_[e.slug]??(0,t.jsx)(v.PackageIcon,{className:"size-4"}),label:e.name,children:e.children.length>0?e.children.map(t=>({key:t.slug,href:(0,ef.storeCategoryPath)(t.slug,e.slug),label:t.name})):void 0}
54))],[e,i])),[d,u]=(0,s.useState)(!1),m=o===ef.STORE_ROUTES.home||(0,ef.isStoreProductRoute)(o);return(0,t.jsx)(ev,{navItems:c,children:(0,t.jsxs)("header",{className:(0,J.cn)("relative z-20",m?"bg-transparent":"border-b border-border/70 bg-background"),children:[(0,t.jsx)(eA,{heroTheme:m,items:a}),(0,t.jsx)("div",{className:"mx-auto w-full max-w-7xl px-4 py-3 sm:px-6 lg:px-8",children:(0,t.jsx)(eG,{children:(0,t.jsx)(eX,{heroTheme:m,user:l,navItems:c,mobileOpen:d,onMobileOpenChange:u,brandName:r})})})]})})}],508436)},655202,e=>{"use strict";let t=(0,e.i(456420).default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);e.s(["MessageCircleIcon",0,t],655202)},370948,e=>{"use strict";var t=e.i(843476),s=e.i(456904),r=e.i(363178),a=e.i(655202),n=e.i(360877);let i=e=>(0,t.jsx)("svg",{...e,id:"Layer_2",viewBox:"0 0 352.28 398.67",children:(0,t.jsxs)("g",{id:"Layer_1-2",children:[(0,t.jsx)("path",{d:"M137.17 156.98v-15.56c-5.34-.73-10.76-1.18-16.29-1.18C54.23 140.24 0 194.47 0 261.13c0 40.9 20.43 77.09 51.61 98.97-20.12-21.6-32.46-50.53-32.46-82.31 0-65.7 52.69-119.28 118.03-120.81Z"}),(0,t.jsx)("path",{d:"M140.02 333c29.74 0 54-23.66 55.1-53.13l.11-263.2h48.08c-1-5.41-1.55-10.97-1.55-16.67h-65.67l-.11 263.2c-1.1 29.47-25.36 53.13-55.1 53.13-9.24 0-17.95-2.31-25.61-6.34C105.3 323.9 121.6 333 140.02 333ZM333.13 106V91.37c-18.34 0-35.43-5.45-49.76-14.8 12.76 14.65 30.09 25.22 49.76 29.43Z"}),(0,t.jsx)("path",{d:"M283.38 76.57c-13.98-16.05-22.47-37-22.47-59.91h-17.59c4.63 25.02 19.48 46.49 40.06 59.91ZM120.88 205.92c-30.44 0-55.21 24.77-55.21 55.21 0 21.2 12.03 39.62 29.6 48.86-6.55-9.08-10.45-20.18-10.45-32.2 0-30.44 24.77-55.21 55.21-55.21 5.68 0 11.13.94 16.29 2.55v-67.05c-5.34-.73-10.76-1.18-16.29-1.18-.96 0-1.9.05-2.85.07v51.49c-5.16-1.61-10.61-2.55-16.29-2.55Z"}),(0,t.jsx)("path",{d:"M333.13 106v51.04c-34.05 0-65.61-10.89-91.37-29.38v133.47c0 66.66-54.23 120.88-120.88 120.88-25.76 0-49.64-8.12-69.28-21.91 22.08 23.71 53.54 38.57 88.42 38.57 66.66 0 120.88-54.23 120.88-120.88V144.33c25.76 18.49 57.32 29.38 91.37 29.38v-65.68c-6.57 0-12.97-.71-19.14-2.03Z"}),(0,t.jsx)("path",{d:"M241.76 261.13V127.66c25.76 18.49 57.32 29.38 91.37 29.38V106c-19.67-4.21-37-14.77-49.76-29.43-20.58-13.42-35.43-34.88-40.06-59.91h-48.08l-.11 263.2c-1.1 29.47-25.36 53.13-55.1 53.13-18.42 0-34.72-9.1-44.7
545-23.01-17.57-9.25-29.6-27.67-29.6-48.86 0-30.44 24.77-55.21 55.21-55.21 5.68 0 11.13.94 16.29 2.55v-51.49C71.83 158.5 19.14 212.08 19.14 277.78c0 31.78 12.34 60.71 32.46 82.31C71.23 373.87 95.12 382 120.88 382c66.65 0 120.88-54.23 120.88-120.88Z",style:{fill:"#fff"}})]})}),l=e=>(0,t.jsx)("svg",{...e,id:"Layer_2",viewBox:"0 0 352.28 398.67",children:(0,t.jsxs)("g",{id:"Layer_1-2",children:[(0,t.jsx)("path",{d:"M137.17 156.98v-15.56c-5.34-.73-10.76-1.18-16.29-1.18C54.23 140.24 0 194.47 0 261.13c0 40.9 20.43 77.09 51.61 98.97-20.12-21.6-32.46-50.53-32.46-82.31 0-65.7 52.69-119.28 118.03-120.81Z"}),(0,t.jsx)("path",{d:"M140.02 333c29.74 0 54-23.66 55.1-53.13l.11-263.2h48.08c-1-5.41-1.55-10.97-1.55-16.67h-65.67l-.11 263.2c-1.1 29.47-25.36 53.13-55.1 53.13-9.24 0-17.95-2.31-25.61-6.34C105.3 323.9 121.6 333 140.02 333ZM333.13 106V91.37c-18.34 0-35.43-5.45-49.76-14.8 12.76 14.65 30.09 25.22 49.76 29.43Z"}),(0,t.jsx)("path",{d:"M283.38 76.57c-13.98-16.05-22.47-37-22.47-59.91h-17.59c4.63 25.02 19.48 46.49 40.06 59.91ZM120.88 205.92c-30.44 0-55.21 24.77-55.21 55.21 0 21.2 12.03 39.62 29.6 48.86-6.55-9.08-10.45-20.18-10.45-32.2 0-30.44 24.77-55.21 55.21-55.21 5.68 0 11.13.94 16.29 2.55v-67.05c-5.34-.73-10.76-1.18-16.29-1.18-.96 0-1.9.05-2.85.07v51.49c-5.16-1.61-10.61-2.55-16.29-2.55Z"}),(0,t.jsx)("path",{d:"M333.13 106v51.04c-34.05 0-65.61-10.89-91.37-29.38v133.47c0 66.66-54.23 120.88-120.88 120.88-25.76 0-49.64-8.12-69.28-21.91 22.08 23.71 53.54 38.57 88.42 38.57 66.66 0 120.88-54.23 120.88-120.88V144.33c25.76 18.49 57.32 29.38 91.37 29.38v-65.68c-6.57 0-12.97-.71-19.14-2.03Z"}),(0,t.jsx)("path",{d:"M241.76 261.13V127.66c25.76 18.49 57.32 29.38 91.37 29.38V106c-19.67-4.21-37-14.77-49.76-29.43-20.58-13.42-35.43-34.88-40.06-59.91h-48.08l-.11 263.2c-1.1 29.47-25.36 53.13-55.1 53.13-18.42 0-34.72-9.1-44.7
545-23.01-17.57-9.25-29.6-27.67-29.6-48.86 0-30.44 24.77-55.21 55.21-55.21 5.68 0 11.13.94 16.29 2.55v-51.49C71.83 158.5 19.14 212.08 19.14 277.78c0 31.78 12.34 60.71 32.46 82.31C71.23 373.87 95.12 382 120.88 382c66.65 0 120.88-54.23 120.88-120.88Z"})]})}),o=e=>(0,t.jsx)("svg",{...e,fill:"none",viewBox:"0 0 1200 1227",children:(0,t.jsx)("path",{fill:"#000",d:"M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"})}),c=e=>(0,t.jsx)("svg",{...e,fill:"none",viewBox:"0 0 1200 1227",children:(0,t.jsx)("path",{fill:"#fff",d:"M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"})}),d={discord:"Discord",x:"X",instagram:"Instagram",tiktok:"TikTok",youtube:"YouTube",facebook:"Facebook",telegram:"Telegram"},u={discord:n.Discord,x:o,tiktok:l,youtube:e=>(0,t.jsxs)("svg",{...e,preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 180",children:[(0,t.jsx)("path",{fill:"red",d:"M250.346 28.075A32.18 32.18 0 0 0 227.69 5.418C207.824 0 127.87 0 127.87 0S47.912.164 28.046 5.582A32.18 32.18 0 0 0 5.39 28.24c-6.009 35.298-8.34 89.084.165 122.97a32.18 32.18 0 0 0 22.656 22.657c19.866 5.418 99.822 5.418 99.822 5.418s79.955 0 99.82-5.418a32.18 32.18 0 0 0 22.657-22.657c6.338-35.348 8.291-89.1-.164-123.134Z"}),(0,t.jsx)("path",{fill:"#FFF",d:"m102.421 128.06 66.328-38.418-66.328-38.418z"})]}),facebook:e=>(0,t.jsxs)("svg",{...e,viewBox:"0 0 666.667 666.667",children:[(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"a",clipPathUnits:"userSpaceOnUse",children:(0,t.jsx)("path",{d:"M0 700h700V0H0Z"})})}),(0,t.jsxs)("g",{clipPath:"url(#a)",transform:"matrix(1.33333 0 0 -1.33333 -133.333 800)",children:[(0,t.jsx)("path",{d:"M0 0c0 138.071-111.929 250-250 250S-500 138.071-500 0c0-117.245 80.715-215.622 189.606-242.638v166.242h-51.552V0h51.552v32.919c0 85.092 38.508 124.532 122.048 124.532 15.838 0 43.167-3.105 54.347-6.211V81.986c-5.901.621-16.149.932-28.882.932-40.993 0-56.832-15.528-56.832-55.9V0h81.659l-14.028-76.396h-67.631v-171.773C-95.927-233.218 0-127.818 0 0",style:{fill:"#0866ff",fillOpacity:"1",fillRule:"nonzero",stroke:"none"},transform:"translate(600 350)"}),(0,t.jsx)("path",{d:"m0 0 14.029 76.396H-67.63v27.019c0 40.372 15.838 55.899 56.831 55.899 12.733 0 22.981-.31 28.882-.931v69.253c-11.18 3.106-38.509 6.212-54.347 6.212-83.539 0-122.048-39.441-122.048-124.533V76.396h-51.552V0h51.552v-166.242a250.559 250.559 0 0 1 60.394-7.362c10.254 0 20.358.632 30.288 1.831V0Z",style:{fill:"#fff",fillOpacity:"1",fillRule:"nonzero",stroke:"none"},transform:"translate(447.918 273.604)"})]})]}),telegram:e=>(0,t.jsxs)("svg",{...e,viewBox:"0 0 256 256",preserveAspectRatio:"xMidYMid",children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"a",x1:"50%",x2:"50%",y1:"0%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#2AABEE"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#229ED9"})]})}),(0,t.jsx)("path",{fill:"url(#a)",d:"M128 0C94.06 0 61.48 13.494 37.5 37.49A128.038 128.038 0 0 0 0 128c0 33.934 13.5 66.514 37.5 90.51C61.48 242.506 94.06 256 128 256s66.52-13.494 90.5-37.49c24-23.996 37.5-56.576 37.5-90.51 0-33.934-13.5-66.514-37.5-90.51C194.52 13.494 161.94 0 128 0Z"}),(0,t.jsx)("path",{fill:"#FFF",d:"M57.94 126.648c37.32-16.256 62.2-26.974 74.64-32.152 35.56-14.786 42.94-17.354 47.76-17.441 1.06-.017 3.42.245 4.96 1.49 1.28 1.05 1.64 2.47 1.82 3.467.16.996.38 3.266.2 5.038-1.92 20.24-10.26 69.356-14.5 92.026-1.78 9.592-5.32 12.808-8.74 13.122-7.44.684-13.08-4.912-20.28-9.63-11.26-7.386-17.62-11.982-28.56-19.188-12.64-8.328-4.44-12.906 2.76-20.386 1.88-1.958 34.64-31.748 35.26-34.45.08-.338.16-1.598-.6-2.262-.74-.666-1.84-.438-2.64-.258-1.14.256-19.12 12.152-54 35.686-5.1 3.508-9.72 5.218-13.88 5.128-4.56-.098-13.36-2.584-19.9-4.708-8-2.606-14.38-3.984-13.82-8.41.28-2.304 3.46-4.662 9.52-7.072Z"})]}),instagram:e=>(0,t.jsxs)("svg",{...e,xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 264.583 264.583",children:[(0,t.jsxs)("defs",{children:[(0,t.jsx)("radialGradient",{xlinkHref:"#a",id:"f",cx:"158.429",cy:"578.088",r:"52.352",fx:"158.429",fy:"578.088",gradientTransform:"matrix(0 -4.03418 4.28018 0 -2332.227 942.236)",gradientUnits:"userSpaceOnUse"}),(0,t.jsx)("radialGradient",{xlinkHref:"#b",id:"g",cx:"172.615",cy:"600.692",r:"65",fx:"172.615",fy:"600.692",gradientTransform:"matrix(.67441 -1.16203
541.51283 .87801 -814.366 -47.835)",gradientUnits:"userSpaceOnUse"}),(0,t.jsx)("radialGradient",{xlinkHref:"#c",id:"h",cx:"144.012",cy:"51.337",r:"67.081",fx:"144.012",fy:"51.337",gradientTransform:"matrix(-2.3989 .67549 -.23008 -.81732 464.996 -26.404)",gradientUnits:"userSpaceOnUse"}),(0,t.jsx)("radialGradient",{xlinkHref:"#d",id:"e",cx:"199.788",cy:"628.438",r:"52.352",fx:"199.788",fy:"628.438",gradientTransform:"matrix(-3.10797 .87652 -.6315 -2.23914 1345.65 1374.198)",gradientUnits:"userSpaceOnUse"}),(0,t.jsxs)("linearGradient",{id:"d",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#ff005f"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#fc01d8"})]}),(0,t.jsxs)("linearGradient",{id:"c",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#780cff"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#820bff",stopOpacity:"0"})]}),(0,t.jsxs)("linearGradient",{id:"b",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#fc0"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#fc0",stopOpacity:"0"})]}),(0,t.jsxs)("linearGradient",{id:"a",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#fc0"}),(0,t.jsx)("stop",{offset:".124",stopColor:"#fc0"}),(0,t.jsx)("stop",{offset:".567",stopColor:"#fe4a05"}),(0,t.jsx)("stop",{offset:".694",stopColor:"#ff0f3f"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#fe0657",stopOpacity:"0"})]})]}),(0,t.jsx)("path",{fill:"url(#e)",d:"M204.15 18.143c-55.23 0-71.383.057-74.523.317-11.334.943-18.387 2.728-26.07 6.554-5.922 2.942-10.592 6.351-15.201 11.13-8.394 8.716-13.481 19.439-15.323 32.184-.895 6.188-1.156 7.45-1.209 39.056-.02 10.536 0 24.4 0 42.999 0 55.2.062 71.341.326 74.476.916 11.032 2.645 17.973 6.308 25.565 7 14.533 20.37 25.443 36.12 29.514 5.453 1.404 11.476 2.178 19.208 2.544 3.277.142 36.669.244 70.081.244 33.413 0 66.826-.04 70.02-.203 8.954-.422 14.153-1.12 19.901-2.606 15.852-4.09 28.977-14.838 36.12-29.575 3.591-7.409 5.412-14.614 6.236-25.07.18-2.28.255-38.626.255-74.924 0-36.304-.082-72.583-.26-74.863-.835-10.625-2.656-17.77-6.364-25.32-3.042-6.182-6.42-10.799-11.324-15.519-8.752-8.361-19.455-13.45-32.21-15.29-6.18-.894-7.41-1.158-39.033-1.213z",transform:"translate(-71.816 -18.143)"}),(0,t.jsx)("path",{fill:"url(#f)",d:"M204.15 18.143c-55.23 0-71.383.057-74.523.317-11.334.943-18.387 2.728-26.07 6.554-5.922 2.942-10.592 6.351-15.201 11.13-8.394 8.716-13.481 19.439-15.323 32.184-.895 6.188-1.156 7.45-1.209 39.056-.02 10.536 0 24.4 0 42.999 0 55.2.062 71.341.326 74.476.916 11.032 2.645 17.973 6.308 25.565 7 14.533 20.37 25.443 36.12 29.514 5.453 1.404 11.476 2.178 19.208 2.544 3.277.142 36.669.244 70.081.244 33.413 0 66.826-.04 70.02-.203 8.954-.422 14.153-1.12 19.901-2.606 15.852-4.09 28.977-14.838 36.12-29.575 3.591-7.409 5.412-14.614 6.236-25.07.18-2.28.255-38.626.255-74.924 0-36.304-.082-72.583-.26-74.863-.835-10.625-2.656-17.77-6.364-25.32-3.042-6.182-6.42-10.799-11.324-15.519-8.752-8.361-19.455-13.45-32.21-15.29-6.18-.894-7.41-1.158-39.033-1.213z",transform:"translate(-71.816 -18.143)"}),(0,t.jsx)("path",{fill:"url(#g)",d:"M204.15 18.143c-55.23 0-71.383.057-74.523.317-11.334.943-18.387 2.728-26.07 6.554-5.922 2.942-10.592 6.351-15.201 11.13-8.394 8.716-13.481 19.439-15.323 32.184-.895 6.188-1.156 7.45-1.209 39.056-.02 10.536 0 24.4 0 42.999 0 55.2.062 71.341.326 74.476.916 11.032 2.645 17.973 6.308 25.565 7 14.533 20.37 25.443 36.12 29.514 5.453 1.404 11.476 2.178 19.208 2.544 3.277.142 36.669.244 70.081.244 33.413 0 66.826-.04 70.02-.203 8.954-.422 14.153-1.12 19.901-2.606 15.852-4.09 28.977-14.838 36.12-29.575 3.591-7.409 5.412-14.614 6.236-25.07.18-2.28.255-38.626.255-74.924 0-36.304-.082-72.583-.26-74.863-.835-10.625-2.656-17.77-6.364-25.32-3.042-6.182-6.42-10.799-11.324-15.519-8.752-8.361-19.455-13.45-32.21-15.29-6.18-.894-7.41-1.158-39.033-1.213z",transform:"translate(-71.816 -18.143)"}),(0,t.jsx)("path",{fill:"url(#h)",d:"M204.15 18.143c-55.23 0-71.383.057-74.523.317-11.334.943-18.387 2.728-26.07 6.554-5.922 2.942-10.592 6.351-15.201 11.13-8.394 8.716-13.481 19.439-15.323 32.184-.895 6.188-1.156 7.45-1.209 39.056-.02 10.536 0 24.4 0 42.999 0 55.2.062 71.341.326 74.476.916 11.032 2.645 17.973 6.308 25.56
545 7 14.533 20.37 25.443 36.12 29.514 5.453 1.404 11.476 2.178 19.208 2.544 3.277.142 36.669.244 70.081.244 33.413 0 66.826-.04 70.02-.203 8.954-.422 14.153-1.12 19.901-2.606 15.852-4.09 28.977-14.838 36.12-29.575 3.591-7.409 5.412-14.614 6.236-25.07.18-2.28.255-38.626.255-74.924 0-36.304-.082-72.583-.26-74.863-.835-10.625-2.656-17.77-6.364-25.32-3.042-6.182-6.42-10.799-11.324-15.519-8.752-8.361-19.455-13.45-32.21-15.29-6.18-.894-7.41-1.158-39.033-1.213z",transform:"translate(-71.816 -18.143)"}),(0,t.jsx)("path",{fill:"#fff",d:"M132.345 33.973c-26.716 0-30.07.117-40.563.594-10.472.48-17.62 2.136-23.876 4.567-6.47 2.51-11.958 5.87-17.426 11.335-5.472 5.464-8.834 10.948-11.354 17.412-2.44 6.252-4.1 13.397-4.57 23.858-.47 10.486-.593 13.838-.593 40.535 0 26.697.119 30.037.594 40.522.482 10.465 2.14 17.609 4.57 23.859 2.515 6.465 5.876 11.95 11.346 17.414 5.466 5.468 10.955 8.834 17.42 11.345 6.26 2.431 13.41 4.088 23.881 4.567 10.493.477 13.844.594 40.559.594 26.719 0 30.061-.117 40.555-.594 10.472-.48 17.63-2.136 23.888-4.567 6.468-2.51 11.948-5.877 17.414-11.345 5.472-5.464 8.834-10.949 11.354-17.412 2.419-6.252 4.079-13.398 4.57-23.858.472-10.486.595-13.828.595-40.525s-.123-30.047-.594-40.533c-.492-10.465-2.152-17.608-4.57-23.858-2.521-6.466-5.883-11.95-11.355-17.414-5.472-5.468-10.944-8.827-17.42-11.335-6.271-2.431-13.424-4.088-23.897-4.567-10.493-.477-13.834-.594-40.558-.594zm-8.825 17.715c2.62-.004 5.542 0 8.825 0 26.266 0 29.38.094 39.752.565 9.591.438 14.797 2.04 18.264 3.385 4.591 1.782 7.864 3.912 11.305 7.352 3.443 3.44 5.575 6.717 7.362 11.305 1.346 3.46 2.951 8.663 3.388 18.247.47 10.363.573 13.475.573 39.71 0 26.233-.102 29.346-.573 39.709-.44 9.584-2.042 14.786-3.388 18.247-1.783 4.587-3.919 7.854-7.362 11.292-3.443 3.441-6.712 5.57-11.305 7.352-3.463 1.352-8.673 2.95-18.264 3.388-10.37.47-13.486.573-39.752.573-26.268 0-29.38-.102-39.751-.573-9.592-.443-14.797-2.044-18.267-3.39-4.59-1.781-7.87-3.911-11.313-7.352-3.443-3.44-5.574-6.709-7.362-11.298-1.346-3.461-2.95-8.663-3.387-18.247-.472-10.363-.566-13.476-.566-39.726s.094-29.347.566-39.71c.438-9.584 2.04-14.786 3.387-18.25 1.783-4.588 3.919-7.865 7.362-11.305 3.443-3.441 6.722-5.57 11.313-7.357 3.468-1.351 8.675-2.949 18.267-3.389 9.075-.41 12.592-.532 30.926-.553zm61.337 16.322c-6.518 0-11.805 5.277-11.805 11.792 0 6.512 5.287 11.796 11.805 11.796 6.517 0 11.804-5.284 11.804-11.796 0-6.513-5.287-11.796-11.805-11.796zm-52.512 13.782c-27.9 0-50.519 22.603-50.519 50.482 0 27.879 22.62 50.471 50.52 50.471s50.51-22.592 50.51-50.471c0-27.879-22.613-50.482-50.513-50.482zm0 17.715c18.11 0 32.792 14.67 32.792 32.767 0 18.096-14.683 32.767-32.792 32.767-18.11 0-32.791-14.671-32.791-32.767 0-18.098 14.68-32.767 32.791-32.767z"})]})};function m({platform:e,className:s}){let{resolvedTheme:n}=(0,r.useTheme)(),d="dark"===n;if("x"===e)return(0,t.jsx)(d?c:o,{className:s,"aria-hidden":"true"});if("tiktok"===e)return(0,t.jsx)(d?i:l,{className:s,"aria-hidden":"true"});let x=u[e];return x?(0,t.jsx)(x,{className:s,"aria-hidden":"true"}):(0,t.jsx)(a.MessageCircleIcon,{className:s,"aria-hidden":"true"})}e.s(["StoreSocialLinks",0,function({links:e}){return e.length?(0,t.jsx)("nav",{"aria-label":"Social links",className:"flex flex-wrap items-center gap-3",children:e.map(e=>{var r,a;return(0,t.jsxs)(s.Link,{href:e.url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground",children:[(0,t.jsx)(m,{platform:e.platform,className:"size-4"}),(r=e.platform,a=e.label,a?.trim()||d[r])]},e.id)})}):null}],370948)}]);
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.