1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[896],{4474:(e,t,r)=>{r.d(t,{$n:()=>l,El:()=>o.E,vx:()=>c});var a=r(95155),n=r(12115),i=r(98500),s=r.n(i),o=r(64378);let l=n.forwardRef(({className:e,variant:t="primary",size:r="md",type:n,...i},s)=>(0,a.jsx)("button",{ref:s,type:n??"button",className:(0,o.E)({variant:t,size:r,className:e}),...i}));function c({href:e,children:t,variant:r="primary",size:n="md",className:i,...l}){return(0,a.jsx)(s(),{href:e,className:(0,o.E)({variant:r,size:n,className:i}),...l,children:t})}l.displayName="Button"},5133:(e,t,r)=>{r.d(t,{KW:()=>i,J1:()=>u,y_:()=>d,Z2:()=>c,iU:()=>l});var a=r(58508);let n=new Set(["US","MX","ES"]),i="/store/storefront",s=["/creator/editor"],o=e=>e===i||e.startsWith(`${i}/product/`);function l(e,t="/creator/editor"){let r,a="string"==typeof e?e.trim():"";if(!(!(!a||!a.startsWith("/")||a.startsWith("//")||a.includes("://")||a.includes("\n")||a.includes("\r"))&&1))return t;try{r=new URL(a,"https://mimo.local")}catch{return t}let n=(e=>{let t=[];for(let r of e.split("/")){if(!r)continue;let e=r;try{e=decodeURIComponent(r)}catch{}if("."!==e){if(".."===e){t.pop();continue}t.push(r)}}return`/${t.join("/")}`})(r.pathname),i=`${n}${r.search}${r.hash}`;return s.includes(n)||o(n)?i:t}function c({navVariant:e,isAuthenticated:t}){return"admin"===e?"/admin/overview":t||"creator"===e?"/creator/editor":"/"}function d(e){let t;return e&&(t=(0,a.ft)(e),n.has(t))?i:null}function u(e){return e?o(e)?"store":"/creator/editor"===e||e.startsWith("/creator/editor/")||"/creator/item"===e||e.startsWith("/creator/item/")?"wishlist":"/creator/settings"===e||e.startsWith("/creator/settings/")||"/creator/history"===e||e.startsWith("/creator/history/")||"/support"===e||e.startsWith("/support/")?"settings":null:null}},23916:(e,t,r)=>{r.d(t,{a:()=>l});var a=r(95155),n=r(12115),i=r(53793),s=r(84719),o=r(38541);function l({open:e,title:t,description:r,hideHeader:l=!1,children:c,actions:d,onClose:u,variant:m="center",showCloseButton:h=!1,scrollLockStrategy:x,overlayClassName:p,panelClassName:f,closeButtonClassName:b,dismissible:g=!1}){let{language:v}=(0,i.t)(),y="es"===v?"Cerrar":"Close",w=x??("drawer"===m?"hard":"auto"),j=l&&h&&!!u;return((0,n.useEffect)(()=>{if(!e)return;let t=(0,o.i)(w);return()=>{t()}},[w,e]),(0,n.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&u?.()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e,u]),e)?(0,a.jsx)("div",{className:(0,s.cn)("fixed inset-0 z-[60] flex bg-[rgba(28,27,27,0.26)] backdrop-blur-[4px]","drawer"===m?"items-end justify-center px-0 lg:items-stretch lg:justify-end":"items-center justify-center px-4",p),onClick:e=>{g&&e.target===e.currentTarget&&u?.()},children:(0,a.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":t,className:(0,s.cn)("relative overflow-y-auto border border-[rgba(115,118,136,0.12)] bg-[rgba(255,255,255,0.78)] text-[#1c1b1b] shadow-[0_42px_110px_-50px_rgba(0,21,81,0.34)] backdrop-blur-[40px]","drawer"===m?"w-full max-w-none rounded-t-[2rem] border-t p-5 sm:p-6 lg:h-full lg:max-w-xl lg:rou
1nded-none lg:border-l lg:border-t-0":"max-h-[90vh] w-full max-w-[42rem] rounded-[2rem] p-5 sm:p-6",f),children:[j?(0,a.jsx)("button",{type:"button","aria-label":y,onClick:u,className:(0,s.cn)("type-button absolute right-4 top-4 z-10 inline-flex h-10 w-10 items-center justify-center rounded-full border border-[rgba(115,118,136,0.14)] bg-[rgba(255,255,255,0.84)] text-[#434656] shadow-[0_18px_40px_-30px_rgba(0,21,81,0.32)] transition hover:border-[rgba(0,65,200,0.18)] hover:text-[#0041c8] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0041c8]/16 lg:right-5 lg:top-5",b),children:(0,a.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 20 20",fill:"none",className:"h-3.5 w-3.5",children:(0,a.jsx)("path",{d:"M5 5L15 15M15 5L5 15",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})})}):null,l?null:(0,a.jsxs)("div",{className:(0,s.cn)("space-y-2.5",l&&"space-y-0"),children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsx)("h2",{className:"font-heading text-[1.42rem] font-semibold leading-[1.02] tracking-[-0.03em] text-[#1c1b1b] sm:text-[1.68rem]",children:t}),h&&u&&(0,a.jsx)("button",{type:"button","aria-label":y,onClick:u,className:(0,s.cn)("type-button inline-flex h-10 w-10 items-center justify-center rounded-full border border-[rgba(115,118,136,0.14)] bg-[rgba(255,255,255,0.84)] text-[#434656] shadow-[0_18px_40px_-30px_rgba(0,21,81,0.32)] transition hover:border-[rgba(0,65,200,0.18)] hover:text-[#0041c8] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0041c8]/16",b),children:(0,a.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 20 20",fill:"none",className:"h-3.5 w-3.5",children:(0,a.jsx)("path",{d:"M5 5L15 15M15 5L5 15",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})})})]}),!l&&r?(0,a.jsx)("p",{className:"text-[0.98rem] leading-6 text-[#434656]",children:r}):null]}),c&&(0,a.jsx)("div",{className:(0,s.cn)(l?"mt-0":"mt-5"),children:c}),d&&(0,a.jsx)("div",{className:(0,s.cn)("mt-6 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-end"),children:d})]})}):null}},38541:(e,t,r)=>{r.d(t,{i:()=>u});let a=0,n=0,i=0,s=null,o=null,l=null,c=e=>{o&&(document.body.style.overflow=o.overflow??"",document.body.style.position=o.position??"",document.body.style.top=o.top??"",document.body.style.left=o.left??"",document.body.style.right=o.right??"",document.body.style.width=o.width??"",document.body.style.paddingRight=o.paddingRight??""),l&&(document.documentElement.style.overflow=l.overflow??"",document.documentElement.style.overscrollBehavior=l.overscrollBehavior??""),e&&window.scrollTo(0,i)},d=e=>{if("hard"===e)i=window.scrollY,document.documentElement.style.overflow="hidden",document.documentElement.style.overscrollBehavior="none",document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${i}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%";else{document.documentElement.style.overflow="hidden",document.documentElement.style.overscrollBehavior="none",document.body.style.overflow="hidden";let e=window.innerWidth-document.documentElement.clientWidth;if(e>0){let t=Number.parseFloat(window.getComputedStyle(document.body).paddingRight),r=Number.isFinite(t)?t:0;document.body.style.paddingRight=`${r+e}px`}}s=e},u=(e="auto")=>{let t="auto"===e?(()=>{if("u"<typeof navigator)return!1;let e=navigator.userAgent??"",t=navigator.platform??"",r=navigator.maxTouchPoints??0;return!!/iPhone|iPad|iPod/i.test(e)||"MacIntel"===t&&r>1})()?"hard":"soft":e,r=0===a;r&&(o={overflow:document.body.style.overflow,position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,right:document.body.style.right,width:document.body.style.width,paddingRight:document.body.style.paddingRight},l={overflow:document.documentElement.style.overflow,overscrollBehavior:document.documentElement.style.overscrollBehavior}),a+=1,"hard"===t&&(n+=1);let i=n>0?"hard":"soft";r?d(i):s!==i&&(c("hard"===s),d(i));let u=!1;return()=>{if(u)return;if(u=!0,"hard"===t&&(n=Math.max(0,n-1)),0===(a=Math.max(0,a-1))){c("hard"===s),o=null,l=null,s=null;return}let e=n>0?"hard":"soft";s!==e&&(c("hard"===s),d(e))}}},51714:(e,t,r)=>{r.d(t,{g:()=>b});var a=r(95155),n=r(94514),i=r(13545),s=r(57684),o=r(56204),l=r(10184),c=r(5872),d=r(21362),u=r(67635),m=r(12115),h=r(47650),x=r
1(23916),p=r(67974),f=r(84719);function b({inviteLink:e,usedInvites:t,targetInvites:r=3,language:b,className:g,compactOnMobile:v=!1,openOnMount:y=!1,onModalOpenChange:w}){let[j,N]=(0,m.useState)("idle"),k=(0,m.useRef)(null),C=(0,m.useRef)(w),A=(0,m.useRef)(!1),L=(0,m.useMemo)(()=>{var e,t;return e=b,t=j,"es"===e?"copied"===t?"Copiado":"error"===t?"No se copi\xf3":"Invita y gana el 5%":"copied"===t?"Copied":"error"===t?"Copy failed":"Invite & earn 5%"},[j,b]),[E,M]=(0,m.useState)(!1),P=(0,m.useMemo)(()=>{let e,a,n;return e=Math.max(0,Math.trunc(Number.isFinite(t)?t:0)),n=e>(a=Math.max(1,Math.trunc(Number.isFinite(r)?r:3)))?`${a}+`:String(e),`${n}/${a}`},[r,t]),S=(0,m.useMemo)(()=>"es"===b?`Invita y gana el 5%. Abre tus opciones de invitaci\xf3n. Los creadores saltan la lista de espera y t\xfa ganas el 5% de sus regalos. Invitaciones usadas: ${P}.`:`Invite & earn 5%. Open your invite options. Creators skip the waitlist and you earn 5% of their gifts. Invites used: ${P}.`,[P,b]),_=(0,m.useMemo)(()=>"es"===b?{title:"Invita a creadores",steps:["Env\xeda una invitaci\xf3n","Saltan la lista de espera","Ganas el 5% de sus regalos"],inviteProgress:`Invitaciones usadas: ${P}`,copyButton:"copied"===j?"Copiado":"error"===j?"No se copi\xf3":"Copiar enlace"}:{title:"Invite creators",steps:["Send an invite","They skip the waitlist","You earn 5% of their gifts"],inviteProgress:`Invites used: ${P}`,copyButton:"copied"===j?"Copied":"error"===j?"Copy failed":"Copy invite link"},[j,P,b]),[T,I]=(0,m.useState)(!1);if((0,m.useEffect)(()=>{C.current=w},[w]),(0,m.useEffect)(()=>(I(!0),()=>{k.current&&clearTimeout(k.current),C.current?.(!1)}),[]),(0,m.useEffect)(()=>{!e&&E&&(M(!1),C.current?.(!1))},[e,E]),(0,m.useEffect)(()=>{y&&!A.current&&e&&(A.current=!0,M(!0),C.current?.(!0))},[e,y]),!e)return null;let R=async()=>{N(await (0,p.l)(e)?"copied":"error"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{N("idle")},2e3)},F="copied"===j?n.A:"error"===j?i.A:s.A,$=(0,a.jsx)(x.a,{open:E,title:_.title,onClose:()=>{M(!1),C.current?.(!1)},showCloseButton:!0,dismissible:!0,overlayClassName:"z-[160] !items-start overflow-y-auto py-4 sm:!items-center sm:py-0",panelClassName:"max-w-[48rem] !bg-white p-5 sm:p-7",children:(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsx)("div",{className:"grid gap-2 rounded-[1.25rem] bg-[#f4f1eb] p-3 sm:grid-cols-[1fr_auto_1fr_auto_1fr] sm:items-stretch",children:_.steps.map((e,t)=>{let r=0===t?o.A:1===t?l.A:c.A;return(0,a.jsxs)("div",{className:"contents",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl bg-white/60 px-3 py-3 text-left sm:flex-col sm:justify-center sm:bg-transparent sm:px-2 sm:text-center",children:[(0,a.jsx)(r,{"aria-hidden":!0,className:"h-6 w-6 shrink-0 text-[#0041c8]"}),(0,a.jsx)("span",{className:"text-[0.95rem] font-semibold leading-5 text-[#302f2f]",children:e})]}),t<_.steps.length-1?(0,a.jsx)("div",{"aria-hidden":!0,className:"hidden items-center justify-center text-[#737688] sm:flex",children:(0,a.jsx)(d.A,{className:"h-5 w-5"})}):null]},e)})}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("p",{className:"text-[1rem] font-semibold text-[#302f2f]",children:_.inviteProgress}),(0,a.jsx)("div",{children:(0,a.jsxs)("button",{type:"button",onClick:()=>{R()},className:(0,f.cn)("inline-flex h-12 w-full items-center justify-center gap-2 rounded-2xl border border-[#0041c8] bg-[#0041c8] px-5 text-[1rem] font-semibold text-white shadow-[0_16px_34px_-24px_rgba(0,65,200,0.7)] transition hover:border-[#0036a6] hover:bg-[#0036a6] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#95aafd]","copied"===j&&"border-[#188056] bg-[#188056] hover:border-[#126b48] hover:bg-[#126b48] focus-visible:ring-[#8ee6c0]","error"===j&&"border-[#b3261e] bg-[#b3261e] hover:border-[#8f1d18] hover:bg-[#8f1d18] focus-visible:ring-[#f4aaa5]"),children:["copied"===j?(0,a.jsx)(n.A,{"aria-hidden":!0,className:"h-4 w-4"}):"error"===j?(0,a.jsx)(i.A,{"aria-hidden":!0,className:"h-4 w-4"}):(0,a.jsx)(u.A,{"aria-hidden":!0,className:"h-4 w-4"}),(0,a.jsx)("span",{children:_.copyButton})]})})]})]})});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button","aria-label":S,"aria-haspopup":"dialog","aria-expanded":E,title:S,onClick:()=>{M(!0),C.current?.(!0)},className:(0,f.cn)("inline-flex h-10 min-w-0 max-w-full shrink-0 items-center justify-center gap-2 overflow-hidden rounded-full border border-[#0041c8] bg-[#0041c8] px-3 text-sm font-semibold text-white shadow-[0_12px_28px_-20px_rgba(0,65,200,0.72)] transition hover:border-[#0036a6] hover:bg-[#0036a6] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#95aafd]",v&&"w-10 px-0 sm:w-auto
1sm:max-w-[12rem] sm:px-3 xl:max-w-none","copied"===j&&"border-[#188056] bg-[#188056] hover:border-[#126b48] hover:bg-[#126b48] focus-visible:ring-[#8ee6c0]","error"===j&&"border-[#b3261e] bg-[#b3261e] hover:border-[#8f1d18] hover:bg-[#8f1d18] focus-visible:ring-[#f4aaa5]",g),children:[(0,a.jsx)(F,{"aria-hidden":!0,className:"h-4 w-4 shrink-0"}),(0,a.jsx)("span",{className:(0,f.cn)("min-w-0 truncate",v&&"hidden sm:inline"),children:L})]}),T?(0,h.createPortal)($,document.body):null]})}},64378:(e,t,r)=>{r.d(t,{E:()=>s});var a=r(84719);let n={primary:"border-[#0041c8] bg-[#0041c8] text-white hover:bg-[#0037aa] focus-visible:ring-[#dce1ff]",secondary:"border-text text-text hover:border-accent hover:text-accent",outline:"border-text-muted text-text hover:border-text hover:text-text",ghost:"border-transparent text-text hover:text-accent"},i={sm:"h-10 px-3",md:"h-10 px-4",lg:"h-11 px-5"};function s({variant:e="primary",size:t="md",className:r}){return(0,a.cn)("button-tactile type-button inline-flex items-center justify-center rounded-xl border transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/20 disabled:cursor-not-allowed disabled:opacity-60",n[e],i[t],r)}},67649:(e,t,r)=>{r.r(t),r.d(t,{CreatorNavigation:()=>b});var a=r(95155),n=r(12115),i=r(47650),s=r(98500),o=r.n(s),l=r(73321),c=r(7915),d=r(79711),u=r(51714),m=r(80518),h=r(5133),x=r(38541),p=r(53793),f=r(84719);function b({storeHref:e,viewAsFanHref:t,tone:r="default",isHeroSolid:s=!1,styleVariant:b="default",mobileMenuClassName:g,onMobileMenuOpenChange:v}){let y=(0,l.usePathname)(),w=(0,h.J1)(y),[j,N]=(0,n.useState)(!1),[k,C]=(0,n.useState)(!1),[A,L]=(0,n.useState)(!1),[E,M]=(0,n.useState)(null),P=(0,n.useRef)(!1),{language:S}=(0,p.t)(),_=(0,d.hD)(),T=(0,m.On)(S),I=(0,n.useMemo)(()=>{let r=[{id:"wishlist",label:T.wishlist,href:"/creator/editor"}];return e&&r.push({id:"store",label:T.store,href:e}),t?r.push({id:"viewAsFan",label:T.viewAsFan,href:t,target:"_blank",rel:"noreferrer",prefetch:!1,icon:"view"}):r.push({id:"viewAsFan",label:T.viewAsFan,href:"#",disabled:!0,icon:"view"}),r},[T.store,T.viewAsFan,T.wishlist,e,t]),R=(0,n.useMemo)(()=>[...I,{id:"settings",label:T.settings,href:"/creator/settings"}],[T.settings,I]);(0,n.useEffect)(()=>{if(!j)return;let e=(0,x.i)("hard");return()=>{e()}},[j]),(0,n.useEffect)(()=>{if(!j)return;let e=e=>{"Escape"===e.key&&(A||N(!1))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[A,j]),(0,n.useEffect)(()=>{v?.(j)},[j,v]),(0,n.useEffect)(()=>{C(!0)},[]),(0,n.useEffect)(()=>{_.isAuthenticated||(M(null),P.current=!1)},[_.isAuthenticated]),(0,n.useEffect)(()=>{if(!j||!_.isAuthenticated||P.current)return;let e=new AbortController;return P.current=!0,(async()=>{try{let t=await fetch("/api/creator/invite-link",{credentials:"include",cache:"no-store",signal:e.signal});if(!t.ok)return void M(null);let r=await t.json().catch(()=>null);if("string"!=typeof r?.inviteLink||!r.inviteLink)return void M(null);M({inviteLink:r.inviteLink,usedInvites:"number"==typeof r.usedInvites&&Number.isFinite(r.usedInvites)?Math.max(0,Math.trunc(r.usedInvites)):0,targetInvites:"number"==typeof r.targetInvites&&Number.isFinite(r.targetInvites)?Math.max(1,Math.trunc(r.targetInvites)):3})}catch{e.signal.aborted||(M(null),P.current=!1)}})(),()=>{e.abort(),P.current=!1}},[_.isAuthenticated,j]);let F="landing"===b,$=(0,f.cn)(F?"type-nav inline-flex h-10 items-center justify-center whitespace-nowrap rounded-full border border-[#c3c5d9]/55 bg-white/85 px-4 text-[#737688] shadow-[0_6px_18px_-16px_rgba(0,21,81,0.35)] backdrop-blur-xl transition-colors hover:border-[#95aafd] hover:text-[#0055FF]":"type-nav inline-flex h-10 items-center justify-center whitespace-nowrap px-1.5 transition-colors",!F&&("hero"===r?s?"text-[#737688] hover:text-[#0041c8]":"text-white hover:text-white/85":"text-[#737688] hover:text-[#0041c8]")),W="hero"===r?(0,f.cn)("inline-flex h-10 w-10 items-center justify-center rounded-full border transition md:hidden",s?"border-[#c3c5d9]/60 bg-[#ffffff]/72 text-[#1c1b1b] shadow-[0_12px_30px_-22px_rgba(0,21,81,0.42)] backdrop-blur-xl hover:border-[#95aafd]/85 hover:text-[#0041c8]":"border-white/45 bg-white/10 text-white hover:bg-white/20"):"inline-flex h-10 w-10 items-center justify-center rounded-full border border-text-muted/25 bg-background text-text transition hover:border-text-muted/45 md:hidden",z=(0,f.cn)(F?"border-[#95aafd] bg-[#dce1ff] text-[#0041c8]":"",!F&&("hero"===r?s?"text-[#0041c8]":"text-white":"text-[#0041c8]")),B=e=>"store"===e?"store"===w:"wishlist"===e?"wishlist"===w:("settings"===e||"account"===e)&&"settings"===w,D=e=>(0,f.cn)("flex items-center justify-between rounded-full px-4 py-3 text-sm font-medium transition",e?"hero"===r&&s?"bg-[#0041c8] text-white":"bg-text text-background":"hero"===r&&s?"bg-[#f6f3f2] text-[#1c1b1b] hover:bg-[#ece8e6]":"bg-background text-text hover:bg-text/5"),U=e=>"view"!==e.icon?(0,a.jsx)("span",{children:e.label}):(0,a.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5",children:[(0,a.jsx)(c.A,{"aria-hidden":"true",className:"h-[15p
1x] w-[15px] flex-none",strokeWidth:2}),(0,a.jsx)("span",{className:"truncate",children:e.label})]}),G=e=>"account"===e.icon?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"sr-only",children:e.label}),(0,a.jsx)("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",className:"h-[18px] w-[18px]",children:(0,a.jsx)("path",{d:"M10 10.1a3.35 3.35 0 1 0 0-6.7 3.35 3.35 0 0 0 0 6.7Zm-5.15 6.1a5.15 5.15 0 0 1 10.3 0",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})]}):U(e);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button","aria-label":T.openNavigationMenu,"aria-expanded":j,"aria-controls":"creator-mobile-menu",onClick:()=>N(!0),className:W,children:[(0,a.jsx)("span",{className:"sr-only",children:T.openNavigationMenu}),(0,a.jsxs)("span",{"aria-hidden":"true",className:"flex h-4 w-4 flex-col justify-between",children:[(0,a.jsx)("span",{className:"block h-[1.5px] w-4 bg-current"}),(0,a.jsx)("span",{className:"block h-[1.5px] w-4 bg-current"}),(0,a.jsx)("span",{className:"block h-[1.5px] w-4 bg-current"})]})]}),(0,a.jsxs)("nav",{className:"hidden items-center gap-4 md:flex lg:gap-5","aria-label":T.creatorNavigation,children:[I.map(e=>e.disabled?(0,a.jsx)("span",{"aria-disabled":"true",className:(0,f.cn)($,"cursor-not-allowed opacity-50"),children:G(e)},e.href):(0,a.jsx)(o(),{href:e.href,prefetch:e.prefetch,target:e.target,rel:e.rel,className:(0,f.cn)($,B(e.id)?z:""),"aria-current":B(e.id)?"page":void 0,children:G(e)},e.href)),(0,a.jsx)(o(),{href:"/creator/settings",prefetch:!1,className:(0,f.cn)($,B("account")?z:""),"aria-current":B("account")?"page":void 0,children:G({id:"account",label:T.account,href:"/creator/settings",icon:"account"})})]}),j&&k?(0,i.createPortal)((0,a.jsx)("div",{id:"creator-mobile-menu",role:"dialog","aria-modal":"true","aria-label":T.navigationMenu,className:(0,f.cn)("fixed inset-0 z-[120] overflow-y-auto px-4 pb-8 pt-20 md:hidden","hero"===r&&s?"bg-[rgba(252,249,248,0.72)] backdrop-blur-[18px]":g??"bg-background/95 backdrop-blur-sm"),children:(0,a.jsx)("div",{className:"mx-auto w-full max-w-md",children:(0,a.jsxs)("div",{className:"hero"===r&&s?"rounded-[2rem] border border-[#c3c5d9]/45 bg-[rgba(255,255,255,0.9)] p-4 text-[#1c1b1b] shadow-[0_20px_60px_-38px_rgba(0,21,81,0.36)] backdrop-blur-[24px]":"rounded-[2rem] border border-text-muted/20 bg-background p-4 text-text shadow-xl",children:[(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)("button",{type:"button","aria-label":T.closeNavigationMenu,onClick:()=>N(!1),className:(0,f.cn)("inline-flex h-10 w-10 items-center justify-center rounded-full border transition","hero"===r&&s?"border-[#c3c5d9]/60 bg-[#ffffff]/72 text-[#1c1b1b] backdrop-blur-xl hover:border-[#95aafd]/85 hover:text-[#0041c8]":"border-text-muted/25 text-text hover:border-text-muted/45"),children:(0,a.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",className:"h-4 w-4",fill:"none",children:[(0,a.jsx)("path",{d:"M4 4L12 12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}),(0,a.jsx)("path",{d:"M12 4L4 12",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})]})})}),E?(0,a.jsx)(u.g,{inviteLink:E.inviteLink,usedInvites:E.usedInvites,targetInvites:E.targetInvites,language:S,className:"mt-4 flex w-full",onModalOpenChange:L}):null,(0,a.jsx)("nav",{className:"mt-4 grid gap-2","aria-label":T.mobileCreatorNavigation,children:R.map(e=>e.disabled?(0,a.jsxs)("span",{"aria-disabled":"true",className:(0,f.cn)(D(!1),"cursor-not-allowed opacity-50"),children:[U(e),(0,a.jsx)("span",{"aria-hidden":"true",children:"â"})]},e.label):(0,a.jsxs)(o(),{href:e.href,prefetch:"settings"!==e.id&&e.prefetch,target:e.target,rel:e.rel,onClick:()=>N(!1),className:D(B(e.id)),children:[U(e),(0,a.jsx)("span",{"aria-hidden":"true",children:"â"})]},e.label))})]})})}),document.body):null]})}},67974:(e,t,r)=>{r.d(t,{l:()=>a});let a=async e=>{if("u">typeof navigator&&navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}if("u"<typeof document)return!1;try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}},70416:(e,t,r)=>{r.d(t,{VG:()=>n,Vn:()=>s,Z3:()=>a,aH:()=>i});
1let a="max-w-6xl 2xl:max-w-7xl 3xl:max-w-[92rem] 4xl:max-w-[96rem]",n="max-w-6xl 2xl:max-w-[92rem] 3xl:max-w-[108rem] 4xl:max-w-[128rem]",i="border-0 py-3",s="mx-auto flex min-h-16 w-[94%] items-center justify-between rounded-full border border-white/70 bg-white/85 px-4 py-3 font-body shadow-[0_12px_40px_rgba(0,21,81,0.08)] backdrop-blur-2xl sm:min-h-[4.25rem] sm:w-[95%] sm:px-6 sm:py-3.5"},70896:(e,t,r)=>{r.d(t,{PageShell:()=>E});var a=r(95155),n=r(98500),i=r.n(n),s=r(73321),o=r(84719),l=r(59561),c=r(67649),d=r(12115),u=r(38541);let m=[{label:"Overview",href:"/admin/overview"},{label:"Auth",href:"/admin/auth"},{label:"Waitlist",href:"/admin/waitlist"},{label:"Orders",href:"/admin/orders"},{label:"Gifts",href:"/admin/gifts"},{label:"Badges",href:"/admin/badges"},{label:"Tables",href:"/admin/tables"},{label:"Payouts",href:"/admin/payouts"}];function h(){let e=(0,s.usePathname)(),[t,r]=(0,d.useState)(!1);(0,d.useEffect)(()=>{if(!t)return;let e=(0,u.i)("hard");return()=>{e()}},[t]),(0,d.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"===e.key&&r(!1)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t]);let n=t=>e===t||e.startsWith(`${t}/`);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button","aria-label":"Open navigation menu","aria-expanded":t,"aria-controls":"admin-mobile-menu",onClick:()=>r(!0),className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-text-muted/25 bg-background text-text transition hover:border-text-muted/45 md:hidden",children:[(0,a.jsx)("span",{className:"sr-only",children:"Open navigation menu"}),(0,a.jsxs)("span",{"aria-hidden":"true",className:"flex h-4 w-4 flex-col justify-between",children:[(0,a.jsx)("span",{className:"block h-[1.5px] w-4 bg-current"}),(0,a.jsx)("span",{className:"block h-[1.5px] w-4 bg-current"}),(0,a.jsx)("span",{className:"block h-[1.5px] w-4 bg-current"})]})]}),(0,a.jsx)("nav",{className:"hidden items-center gap-4 md:flex lg:gap-5","aria-label":"Admin navigation",children:m.map(e=>{let t=n(e.href);return(0,a.jsx)(i(),{href:e.href,className:(0,o.cn)("type-nav inline-flex h-10 items-center justify-center whitespace-nowrap px-1.5 text-[#737688] transition-colors hover:text-[#0041c8]",t?"text-[#0041c8]":""),"aria-current":t?"page":void 0,children:(0,a.jsx)("span",{children:e.label})},e.href)})}),t&&(0,a.jsx)("div",{id:"admin-mobile-menu",role:"dialog","aria-modal":"true","aria-label":"Navigation menu",className:"fixed inset-0 z-[80] overflow-y-auto bg-background/95 px-4 pb-8 pt-20 backdrop-blur-sm md:hidden",children:(0,a.jsx)("div",{className:"mx-auto w-full max-w-md",children:(0,a.jsxs)("div",{className:"rounded-[2rem] border border-text-muted/20 bg-background p-4 text-text shadow-xl",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"type-overline text-[#434656]",children:"Admin navigation"}),(0,a.jsx)("h2",{className:"mt-2 text-[1.5rem] font-semibold tracking-[-0.03em] text-current",children:"Menu"})]}),(0,a.jsx)("button",{type:"button","aria-label":"Close navigation menu",onClick:()=>r(!1),className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-text-muted/25 text-text transition hover:border-text-muted/45",children:(0,a.jsx)("span",{"aria-hidden":"true",className:"text-title leading-none",children:"\xd7"})})]}),(0,a.jsx)("nav",{className:"mt-4 grid gap-2","aria-label":"Mobile admin navigation",children:m.map(e=>{let t=n(e.href);return(0,a.jsxs)(i(),{href:e.href,onClick:()=>r(!1),className:(0,o.cn)("flex items-center justify-between rounded-full px-4 py-3 text-sm font-medium transition",t?"bg-text text-background":"bg-background text-text hover:bg-text/5"),children:[(0,a.jsx)("span",{children:e.label}),(0,a.jsx)("span",{"aria-hidden":"true",children:"â"})]},e.href)})})]})})})]})}var x=r(23916),p=r(4474),f=r(90466),b=r(53793),g=r(94639),v=r(19654);function y({delayMs:e=1500,legalContextOverride:t=null}){let{language:r}=(0,b.t)(),[n,o]=(0,d.useState)(!1),[l,c]=(0,d.useState)(!1),[u,m]=(0,d.useState)((0,g.Il)()),h=(0,s.usePathname)()??"/",y=(0,s.use
1SearchParams)(),w="es"===r?{label:"Cookies",summaryPrefix:"Controles de anal\xedtica:",manage:"Gestionar preferencias",summarySuffix:"",privacy:"Pol\xedtica de privacidad",reject:"Rechazar",accept:"Aceptar",modalTitle:"Preferencias de cookies",modalDescription:"Elige qu\xe9 cookies opcionales quieres permitir.",essential:"Esenciales",essentialDescription:"Necesarias para seguridad y funcionamiento b\xe1sico.",analytics:"Anal\xedtica",analyticsDescription:"Nos ayuda a entender el uso y mejorar el producto.",preferences:"Preferencias",preferencesDescription:"Recuerdan tus preferencias de la interfaz.",marketing:"Marketing",marketingDescription:"Promociones personalizadas y medici\xf3n de campa\xf1as.",saveHint:"Los cambios se aplican cuando guardas tus preferencias.",rejectAll:"Rechazar todo",savePreferences:"Guardar preferencias"}:{label:"Cookies",summaryPrefix:"Analytics controls:",manage:"Manage preferences",summarySuffix:"",privacy:"Privacy policy",reject:"Reject",accept:"Accept",modalTitle:"Cookie Preferences",modalDescription:"Choose which optional cookies you want to allow.",essential:"Essential",essentialDescription:"Required for security and core functionality.",analytics:"Analytics",analyticsDescription:"Helps us understand usage and improve the product.",preferences:"Preferences",preferencesDescription:"Remember UI preferences across visits.",marketing:"Marketing",marketingDescription:"Personalized promotions and campaign measurement.",saveHint:"Changes apply only after you save your preferences.",rejectAll:"Reject all",savePreferences:"Save preferences"},j=(0,d.useMemo)(()=>{let e=t??(()=>{if(h.startsWith("/auth")){let e=new URLSearchParams(y.toString());return e.set("return_to","auth"),(0,v.dK)(e)}return"auth"===y.get("return_to")?(0,v.dK)(y):null})();return e?(0,v.cG)("/privacy",e):"/privacy"},[t,h,y]);(0,d.useEffect)(()=>{let t,r=!0,a=()=>{r&&o(!(0,g.xZ)())},n=window.setTimeout(()=>{if("requestIdleCallback"in window){t=window.requestIdleCallback(a,{timeout:1200});return}a()},Math.max(0,e));return()=>{r=!1,window.clearTimeout(n),"number"==typeof t&&"cancelIdleCallback"in window&&window.cancelIdleCallback(t)}},[e]);let N=e=>{(0,g.Us)(e),fetch("/api/account/cookie-consent",{method:"PUT",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({preferences:e})}).catch(()=>{}),c(!1),o(!1)};return n?(0,a.jsxs)(a.Fragment,{children:[l?null:(0,a.jsx)("div",{className:"pointer-events-none fixed inset-x-0 bottom-[max(0.75rem,env(safe-area-inset-bottom))] z-[50] px-3 sm:px-6",children:(0,a.jsx)("section",{className:"pointer-events-auto mx-auto w-full max-w-4xl rounded-[1.35rem] border border-text-muted/20 bg-[rgba(252,249,248,0.95)] px-4 py-3 shadow-[0_24px_60px_-44px_rgba(0,21,81,0.48)] backdrop-blur-xl sm:px-5 sm:py-4",children:(0,a.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between md:gap-5",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("p",{className:"type-overline text-text-muted",children:w.label}),(0,a.jsxs)("p",{className:"text-sm leading-5 text-text-muted sm:text-[15px]",children:[w.summaryPrefix," ",(0,a.jsx)("button",{type:"button",onClick:()=>{m((0,g.Fl)()??(0,g.Il)()),c(!0)},className:"type-control underline underline-offset-4 transition-colors hover:text-accent",children:w.manage}),".",w.summarySuffix?` ${w.summarySuffix} `:" ",(0,a.jsx)(i(),{href:j,className:"type-control underline underline-offset-4 transition-colors hover:text-accent",children:w.privacy}),"."]})]}),(0,a.jsxs)("div",{className:"grid w-full grid-cols-2 gap-2 sm:max-w-[17rem]",children:[(0,a.jsx)(p.$n,{variant:"outline",size:"sm",className:"w-full",onClick:()=>{N({essential:!0,analytics:!1,preferences:!1,marketing:!1})},children:w.reject}),(0,a.jsx)(p.$n,{variant:"primary",size:"sm",className:"w-full",onClick:()=>{N((0,g.Il)())},children:w.accept})]})]})})}),(0,a.jsxs)(x.a,{open:l,title:w.modalTitle,description:w.modalDescription,onClose:()=>{c(!1)},showCloseButton:!0,dismissible:!0,children:[(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4 roun
1ded-2xl border border-text-muted/20 bg-white/80 px-4 py-3",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,a.jsx)("p",{className:"type-control text-text",children:w.essential}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:w.essentialDescription})]}),(0,a.jsx)(f.d,{checked:!0,disabled:!0,onCheckedChange:()=>{},className:"mt-1 shrink-0"})]}),(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4 rounded-2xl border border-text-muted/20 bg-white/80 px-4 py-3",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,a.jsx)("p",{className:"type-control text-text",children:w.analytics}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:w.analyticsDescription})]}),(0,a.jsx)(f.d,{checked:u.analytics,className:"mt-1 shrink-0",onCheckedChange:e=>m(t=>({...t,analytics:e}))})]}),(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4 rounded-2xl border border-text-muted/20 bg-white/80 px-4 py-3",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,a.jsx)("p",{className:"type-control text-text",children:w.preferences}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:w.preferencesDescription})]}),(0,a.jsx)(f.d,{checked:u.preferences,className:"mt-1 shrink-0",onCheckedChange:e=>m(t=>({...t,preferences:e}))})]}),(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4 rounded-2xl border border-text-muted/20 bg-white/80 px-4 py-3",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,a.jsx)("p",{className:"type-control text-text",children:w.marketing}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:w.marketingDescription})]}),(0,a.jsx)(f.d,{checked:u.marketing,className:"mt-1 shrink-0",onCheckedChange:e=>m(t=>({...t,marketing:e}))})]}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:w.saveHint})]}),(0,a.jsxs)("div",{className:"mt-6 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-end sm:gap-3",children:[(0,a.jsx)(p.$n,{variant:"outline",size:"sm",className:"w-full sm:w-auto",onClick:()=>{N({essential:!0,analytics:!1,preferences:!1,marketing:!1})},children:w.rejectAll}),(0,a.jsx)(p.$n,{variant:"primary",size:"sm",className:"w-full sm:w-auto",onClick:()=>N(u),children:w.savePreferences})]})]})]}):null}var w=r(48859),j=r(5133),N=r(79711);let k="inline-flex shrink-0 items-center",C="h-5 w-auto sm:h-6",A="whitespace-nowrap hover:text-text";var L=r(70416);function E({title:e,subtitle:t,actions:r,actionsAlignment:n="end",children:d,className:u,mainClassName:m,containerClassName:x,headingVariant:p="default",navItems:f,navVariant:g="public",creatorHandle:E,creatorCountry:M,showFooterLinks:P=!1,showLanguageToggle:S=!0,showCookieBanner:_,showHeader:T=!0,headerClassName:I,creatorNavTone:R="default",creatorNavIsHeroSolid:F=!1,creatorNavStyleVariant:$="default",creatorNavMobileMenuClassName:W,showBackButton:z=!1,logoInteractive:B=!0,legalContextOverride:D=null,useDynamicViewportHeight:U="creator"===g}){let G=(0,s.useRouter)(),{language:O}=(0,b.t)(),{isAuthenticated:q,handle:H,country:X}=(0,N.hD)(),V=(0,s.usePathname)()??"/",Q="es"===O?{help:"Ayuda",privacy:"Privacidad",terms:"T\xe9rminos",aml:"Pol\xedtica AML",faq:"FAQ",back:"Volver",goBack:"Volver"}:{help:"Help",privacy:"Privacy",terms:"Terms",aml:"AML Policy",faq:"FAQ",back:"Back",goBack:"Go back"},Z=D??(0,v.dK)(new URLSearchParams),K=null!==D||(0,v.zf)(V,null),Y=e=>K?(0,v.cG)(e,Z):e,J="public"===g?f??[]:[],ee=(0,j.Z2)({navVariant:g,isAuthenticated:q}),et="creator"===g,er=x??L.Z3,ea=E??H,en=(0,j.y_)(M??X),ei=ea?`/${ea}`:null,es=(0,o.cn)("mx-auto flex w-full items-center justify-between",er,"creator"===g||"admin"===g?"px-3 py-4 sm:px-6 sm:py-6":"px-6 py-6"),eo=(0,o.cn)(L.Vn,er),el=(0,o.cn)("type-nav text-text-muted","flex items-center gap-6"),ec=(0,o.cn)(et?L.aH:"border-b border-text-muted/20",I),ed=!!(z||e||t||r),eu="start"===n&&!z&&!e&&!t,em=(0,a.jsxs)(a.Fragment,{children:[B?(0,a.jsx)(i(),{href:ee,className:"inline-flex items-center",children:(0,a.jsx)(l.F,{variant:"lockup-horizontal",className:"h-6 sm:h-7",priority:!0})}):(0,a.jsx)("div",{className:"inline-flex items-center",children:(0,a.jsx)(l.F,{variant:"lockup-horizontal",className:"h-6 sm:h-7",priority:!0})}),"creator"===g?(0,a.jsx)(c.CreatorNavigation,{storeHref:en,viewAsFanHref:ei,tone:R,isHeroSolid:F,styleVariant:$,mobileMenuClassName:W}):"admin"===g?(0,a.jsx)(h,{}):(0,a.jsx)("nav",{className:el,children:J.map(e=>(0,a.jsx)(i(),{href:e.href,className:(0,o.cn)("hover:text-text",e.className),children:e.label},e.label))})]});return(0,a.jsxs)("div",{className:(0,o.cn)("flex min-h-screen flex-col overflow-x-hidden bg-background",U&&"min-h-[100dvh]",u),children:[T&&(0,a.jsx)("header",{className:ec,children:(0,a.jsx)("div",{className:et?eo:es,children:em})}),ed&&(0,a.jsx)("section",{children:(0,a.jsx)("div",{className:(0,o.cn)("mx-auto",er,"settings"===p?"px-6 pb-3 pt-5 md:pb-4 md:pt-6":"px-6 pb-4 pt-6 md:pt-8"),children:(0,a.jsxs)("div",{className:(0,o.cn)("flex flex-col gap-4",eu?"md:flex-row md:items-end md:justify-start":"md:flex-row md:items-end md:justify-between"),children:[(0,a.jsxs)("div",{className:"space-y-3",children:[z&&(0,a.jsxs)("button",{type:"button",onClick:()=>
1{if("auth"!==Z.returnTo){let e=`${window.location.pathname}${window.location.search}${window.location.hash}`;if((0,v.Nr)({currentPathname:e,historyLength:window.history.length,referrer:document.referrer||null,origin:window.location.origin}))return void G.back()}G.push((0,v.Fd)(Z))},"aria-label":Q.goBack,className:"type-overline inline-flex items-center gap-2 text-text-muted transition hover:text-text focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-muted/20",children:[(0,a.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 16 16",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M10.5 3.5 6 8l4.5 4.5"})}),(0,a.jsx)("span",{children:Q.back})]}),e&&(0,a.jsx)("h1",{className:(0,o.cn)("default"===p&&"type-page-title","settings"===p&&"type-heading tracking-tight"),children:e}),t&&(0,a.jsx)("p",{className:"type-body-alt max-w-2xl text-text-muted",children:t})]}),r&&(0,a.jsx)("div",{className:(0,o.cn)("flex gap-3","start"===n?"md:justify-start":"md:justify-end"),children:r})]})})}),(0,a.jsx)("main",{className:(0,o.cn)("mx-auto w-full flex-1 px-6",er,ed?"settings"===p?"pb-10 pt-2 md:pt-3":"pb-10 pt-4":"settings"===p?"py-8":"py-10",m),children:d}),(P||S)&&(0,a.jsx)("footer",{className:"border-t border-text-muted/20 py-6",children:(0,a.jsxs)("div",{className:(0,o.cn)("mx-auto flex flex-col items-start gap-4 px-6 sm:flex-row sm:items-center sm:justify-between",er),children:[B?(0,a.jsx)(i(),{href:ee,className:k,children:(0,a.jsx)(l.F,{variant:"lockup-horizontal",className:C})}):(0,a.jsx)("div",{className:k,children:(0,a.jsx)(l.F,{variant:"lockup-horizontal",className:C})}),(0,a.jsxs)("div",{className:"flex w-full flex-wrap items-center gap-3 sm:w-auto sm:flex-nowrap sm:gap-6",children:[P?(0,a.jsxs)("nav",{className:"flex flex-wrap items-center gap-x-4 gap-y-2 text-[0.66rem] font-medium tracking-[0.04em] text-text-muted sm:flex-nowrap sm:gap-8 sm:text-body sm:tracking-[0.06em]",children:[(0,a.jsx)(i(),{href:Y("/help"),className:A,children:Q.help}),(0,a.jsx)(i(),{href:Y("/privacy"),className:A,children:Q.privacy}),(0,a.jsx)(i(),{href:Y("/terms"),className:A,children:Q.terms}),(0,a.jsx)(i(),{href:Y("/aml-policy"),className:A,children:Q.aml}),(0,a.jsx)(i(),{href:Y("/faq"),className:`hidden ${A} sm:inline`,children:Q.faq})]}):null,S?(0,a.jsx)(w.LanguageToggleButton,{language:O,className:"inline-flex h-10 min-w-[3.5rem] items-center justify-center rounded-full border border-text-muted/20 px-4 text-xs font-semibold uppercase tracking-[0.12em] text-text-muted transition hover:border-text hover:text-text"}):null]})]})}),_??!0?(0,a.jsx)(y,{legalContextOverride:D}):null]})}},79711:(e,t,r)=>{r.d(t,{Rv:()=>i,hD:()=>s,hN:()=>n});var a=r(12115);let n={isAuthenticated:!1,userId:null,email:null,handle:null,country:null,preferredLanguage:null},i=(0,a.createContext)(null);function s(){return(0,a.useContext)(i)??n}},80518:(e,t,r)=>{r.d(t,{IW:()=>a,LY:()=>c,On:()=>i,Rc:()=>m,SS:()=>s,Tj:()=>u,Zp:()=>o,ah:()=>n,m0:()=>l,uz:()=>d,vO:()=>h});let a=e=>"es"===e?"es-MX":"en-US",n=(e,t)=>"es"===t?`${e} ${1===e?"art\xedculo":"art\xedculos"}`:`${e} ${1===e?"item":"items"}`,i=e=>"es"===e?{wishlist:"Lista",store:"Tienda",viewAsFan:"Ver como fan",settings:"Ajustes",account:"Cuenta",language:"Idioma",creatorNavigation:"Navegaci\xf3n de creador",mobileCreatorNavigation:"Navegaci\xf3n m\xf3vil de creador",navigationMenu:"Men\xfa de navegaci\xf3n",openNavigationMenu:"Abrir men\xfa de navegaci\xf3n",closeNavigationMenu:"Cerrar men\xfa de navegaci\xf3n"}:{wishlist:"Wishlist",store:"Store",viewAsFan:"View as fan",settings:"Settings",account:"Account",language:"Language",creatorNavigation:"Creator navigation",mobileCreatorNavigation:"Mobile creator navigation",navigationMenu:"Navigation menu",openNavigationMenu:"Open navigation menu",closeNavigationMenu:"Close navigation menu"},s=e=>"es"===e?{changeCover:"Cambiar portada",addCover:"Agregar portada",coverPhotoSizeLabel:"Tama\xf1o recomendado para portada",coverPhotoSizeDescription:"Ideal: 1600 x 400 px. Mant\xe9n lo importante al centro.",changePhoto:"Cambiar foto",displayName:"Nombre visible",yourName:"Tu nombre",bio:"Bio",itemsSuffixSingular:"art\xedculo",itemsSuffixPlural:"art\xedculos",removePhoto:"Quitar foto",removeCover:"Quitar portada"}:{changeCover:"Change cover",addCover:"Add cover",coverPhotoSizeLabel:"Recommended cover size",coverPhotoSizeDescription:"Go for 1600 x 400 px. Keep important details centered.",changePhoto:"Change",displayName:"Display name",yourName:"Your name",bio:"Bio",itemsSuffixSingular:"item",itemsSuffixPlural:"items",removePhoto:"Remove photo",removeCover:"Remove c
1over"},o=(e,t)=>"handle"===e.trim().toLowerCase()?"es"===t?"tu-handle":"your-handle":e,l=e=>"es"===e?{fallbackName:"Lista",inProgress:"Tu wishlist sigue en proceso.",navigation:"Navegaci\xf3n de la wishlist",wishlistTab:"Wishlist",giftersTab:"Gifters",help:"Ayuda",faq:"FAQ",becomeCreator:"Hazte creador",loadingMore:"Cargando m\xe1s regalos",loadMoreError:"No pudimos cargar m\xe1s regalos.",recentGifts:"Reciente",leaderboard:"Top",anonymousGifter:"An\xf3nimo",supporterFallback:"An\xf3nimo",giftCountLabel:e=>`${e} ${1===e?"regalo":"regalos"}`}:{fallbackName:"Wishlist",inProgress:"Wishlist in progress.",navigation:"Wishlist navigation",wishlistTab:"Wishlist",giftersTab:"Gifters",help:"Help",faq:"FAQ",becomeCreator:"Become a Creator",loadingMore:"Loading more gifts",loadMoreError:"Unable to load more gifts.",recentGifts:"Recent",leaderboard:"Top",anonymousGifter:"Anonymous",supporterFallback:"Anonymous",giftCountLabel:e=>`${e} ${1===e?"gift":"gifts"}`},c=e=>"es"===e?{catalogUnavailable:"Esta variante ya no est\xe1 disponible",buy:"Comprar",contribute:"Aportar",of:"de"}:{catalogUnavailable:"This variant is no longer available",buy:"Buy",contribute:"Contribute",of:"of"},d=e=>"es"===e?{title:"Compartir wishlist",shareToWhatsApp:"Compartir por WhatsApp",shareToTelegram:"Compartir por Telegram",shareToX:"Compartir en X"}:{title:"Share wishlist",shareToWhatsApp:"Share to WhatsApp",shareToTelegram:"Share to Telegram",shareToX:"Share to X"},u=e=>"es"===e?{customLink:"Link personalizado",invalidCustomLink:"Agrega una etiqueta y una URL v\xe1lida.",delete:"Eliminar",cancel:"Cancelar",save:"Guardar",clearToRemove:"Borra ambos campos para quitar este link.",addLabelAndUrl:"Agrega etiqueta y URL",editCustomLink:"Editar link personalizado",addOtherLink:"Agregar otro link",chooseAnotherLinkType:"Elige otro tipo de link para sumarlo a tu perfil.",label:"Etiqueta",url:"URL",labelPlaceholder:"Merch, newsletter, tienda...",urlPlaceholder:"https://tu-link.com"}:{customLink:"Custom link",invalidCustomLink:"Add a label and valid URL.",delete:"Delete",cancel:"Cancel",save:"Save",clearToRemove:"Clear both fields to remove this link.",addLabelAndUrl:"Add label and URL",editCustomLink:"Edit custom link",addOtherLink:"Add other link",chooseAnotherLinkType:"Choose another link type to add to your profile.",label:"Label",url:"URL",labelPlaceholder:"Merch, newsletter, store...",urlPlaceholder:"https://your-link.com"},m=e=>"es"===e?{loadError:"No pudimos cargar la configuraci\xf3n de X.",prompt:"\xbfQuieres sacarle m\xe1s jugo a los regalos de tus fans? Activa integraciones para aumentarlos hasta un 80%.",connectIntegrations:"Conectar",openIntegrations:"Abrir integraciones",setupStripLabel:"Franja de configuraci\xf3n de X"}:{loadError:"Unable to load X setup.",prompt:"Want to maximize gifts from fans? Set up integrations to boost gifts up to 80%.",connectIntegrations:"Connect",openIntegrations:"Open integrations",setupStripLabel:"Creator X setup strip"},h=e=>"es"===e?{store:{title:"Elegir desde tienda",description:"Explora la tienda con miles de productos"},cash:{title:"Objetivo de ahorro",description:"Crea un objetivo virtual de ahorro"},manual:{title:"Agregar manualmente",description:"Pega un link o captura los datos t\xfa"}}:{store:{title:"Shop from store",description:"Browse storefront of 10k+ items"},cash:{title:"Cash gift",description:"Set a virtual cash goal"},manual:{title:"Import item manually",description:"Paste a link or enter details yourself"}}},90466:(e,t,r)=>{r.d(t,{d:()=>i});var a=r(95155),n=r(84719);function i({checked:e,onCheckedChange:t,disabled:r,id:i,ariaLabel:s,tone:o="accent",className:l}){return(0,a.jsx)("button",{id:i,type:"button",role:"switch","aria-checked":e,"aria-label":s,disabled:r,onClick:()=>t(!e),className:(0,n.cn)("relative inline-flex h-6 w-11 items-center rounded-full border transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0041c8]/25 focus-visible:ring-offset-2 focus-visible:ring-offset-white",e?"brand"===o?"border-[#0041c8] bg-[#0041c8]":"border-accent bg-accent":"border-[#d8d1cf] bg-[#f3eeeb]",r&&"curs
1or-not-allowed opacity-50",l),children:(0,a.jsx)("span",{className:(0,n.cn)("inline-block h-5 w-5 transform rounded-full border border-[#d8d1cf] bg-white shadow-[0_1px_3px_rgba(28,27,27,0.12)] transition-transform",e?"translate-x-5":"translate-x-0")})})}}}]);
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.