"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1829],{49662:function(e,t,a){a.d(t,{J:function(){return r},n:function(){return n}}),a(71364);var s=a(30359),r=(0,s.$)("bec991019a647d7a8d84a6a5bb5c4c748241b908"),n=(0,s.$)("d0d8d028c01d2c9cc0bc013ae1a1bf4a9756f17d")},24195:function(e,t,a){a.d(t,{default:function(){return h}});var s=a(27573),r=a(87382),n=a(88072),i=a(35079),l=a(35864),o=a(2920),c=a(69389),d=a(7653);function u(e){let{notification:t}=e,{removeNotification:a}=(0,r.z)(),[u,h]=(0,d.useState)(!0),f=(0,c.useTranslations)("components.notifications");return(0,d.useEffect)(()=>{!1!==t.autoFadeOut&&(setTimeout(()=>{h(!1)},t.fadeOutTime||3e3),setTimeout(()=>{a(t.id)},(t.fadeOutTime||3e3)+1e3))}),(0,s.jsx)(n.u,{show:u,as:d.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)("div",{className:"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5",children:(0,s.jsx)("div",{className:"p-4",children:(0,s.jsxs)("div",{className:"flex items-start",children:[(0,s.jsxs)("div",{className:"flex-shrink-0",children:["success"===t.type&&(0,s.jsx)(l.Z,{className:"h-6 w-6 text-green-400","aria-hidden":"true"}),"error"===t.type&&(0,s.jsx)(o.Z,{className:"h-6 w-6 text-red-400","aria-hidden":"true"})]}),(0,s.jsxs)("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-gray-900",children:t?.title}),(0,s.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:t?.text})]}),(0,s.jsx)("div",{className:"ml-4 flex flex-shrink-0",children:(0,s.jsxs)("button",{type:"button",className:"inline-flex rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:()=>{h(!1)},children:[(0,s.jsx)("span",{className:"sr-only",children:f("aria.close")}),(0,s.jsx)(i.Z,{className:"h-5 w-5","aria-hidden":"true"})]})})]})})})})}var h=()=>{let{notifications:e}=(0,r.z)();return(0,s.jsx)("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 z-30 flex items-end px-4 py-6 sm:items-start sm:p-6",children:(0,s.jsx)("div",{className:"flex w-full flex-col items-center space-y-4 sm:items-end",children:e.map(e=>(0,s.jsx)(u,{notification:e},e?.id))})})}},39976:function(e,t,a){a.d(t,{p:function(){return l}});var s=a(27573),r=a(63006),n=a(69389),i=a(65880);function l(e){let{color:t="black"}=e,a=(0,n.useTranslations)("platforms"),l=(0,n.useLocale)();return(0,s.jsx)(r.rU,{href:"https://apps.apple.com/fr/app/photobooth-ai/id6477913606",target:"_blank","aria-label":a("ios"),children:(0,s.jsx)(i.default,{src:`/images/platforms/${l}-appstore.png`,alt:"Download on the App Store",width:155,height:155})})}},40759:function(e,t,a){a.d(t,{L:function(){return l}});var s=a(27573),r=a(63006),n=a(69389),i=a(65880);function l(){let e=(0,n.useLocale)(),t=(0,n.useTranslations)("platforms");return(0,s.jsx)(r.rU,{href:"https://play.google.com/store/apps/details?id=com.premieroctet.photoboothai",target:"_blank","aria-label":t("playstore"),children:(0,s.jsx)(i.default,{src:`/images/platforms/${e}_badge_web_generic.png`,alt:"Download on the App Store",width:155,height:155})})}},23793:function(e,t,a){a.d(t,{k:function(){return l}});var s=a(27573),r=a(63006),n=a(69389),i=a(65880);function l(e){let{isLoggedIn:t}=e,a=(0,n.useTranslations)("platforms"),l=(0,n.useLocale)();return(0,s.jsx)(r.rU,{href:t?"/account/photobooth":"/register","aria-label":a("webApp"),children:(0,s.jsx)(i.default,{src:`/images/platforms/${l}-webapp-badge.png`,alt:a("webApp"),width:155,height:155})})}},87154:function(e,t,a){var s=a(27573);t.Z=e=>{let{style:t=""}=e;return(0,s.jsxs)("svg",{"aria-hidden":"true",role:"status",className:` h-4 w-4 animate-spin text-gray-200 dark:text-gray-600 ${t}`,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"teal"})]})}},9241:function(e,t,a){a.d(t,{n:function(){return l}});var s=a(27573),r=a(69389),n=a(7653);function i(e){let{id:t,children:a}=e;return(0,s.jsx)("label",{htmlFor:t,className:"mb-2 block text-sm font-semibold text-gray-900",children:a})}function l(e){let{label:t,type:a="text",className:l,name:o,placeholder:c,...d}=e,u=(0,n.useId)(),h=(0,r.useTranslations)("components.fields");return(0,s.jsxs)("div",{className:l,children:[t&&(0,s.jsx)(i,{id:u,children:t||h(`${o}.label`)}),(0,s.jsx)("input",{id:u,type:a,name:o,placeholder:c||h(`${o}.placeholder`),...d,className:"block w-full appearance-none rounded-lg border border-gray-200 bg-white py-[calc(theme(spacing.2)-1px)] px-[calc(theme(spacing.3)-1px)] text-gray-900 placeholder:text-gray-400 focus:border-black focus:outline-none focus:ring-black sm:text-sm"})]})}},99334:function(e,t,a){a.d(t,{W:function(){return n}});var s=a(27573),r=a(57908);function n(e){let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,r.Z)("mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",t),...a})}},41877:function(e,t,a){a.d(t,{Footer:function(){return y}});var s=a(27573),r=a(63006),n=a(69389),i=a(65880),l=a(99334),o=a(39976),c=a(40759),d=a(23793),u=a(49662),h=a(57908),f=a(3458),x=a(9241),m=a(47066),p=a(23005);let g={status:"idle"};function j(e){let{isSuccess:t}=e,a=(0,n.useTranslations)(),{pending:r}=(0,f.useFormStatus)();return(0,s.jsxs)(p.z,{type:"submit",className:(0,h.Z)("flex items-center gap-2 transition-all",r?"opacity-60":""),disabled:r||t,children:[t?(0,s.jsx)("span",{children:a("newsletter.success")}):(0,s.jsx)("span",{children:a("newsletter.title")}),r&&(0,s.jsx)(m.Z,{})]})}var v=()=>{let e=(0,n.useTranslations)(),[t,a]=(0,f.useFormState)(u.J,g);return(0,s.jsxs)("form",{action:a,className:"flex w-full flex-col justify-center gap-2 md:w-auto md:flex-row",children:[(0,s.jsx)(x.n,{required:!0,name:"email",type:"email","aria-label":e("newsletter.email"),placeholder:e("newsletter.email"),autoComplete:"email",className:"w-full min-w-0 shrink sm:w-60"}),(0,s.jsx)(j,{isSuccess:"success"===t.status})]})},b=a(94806);function y(){let e=(0,n.useTranslations)("footer"),t=(0,n.useTranslations)("common");return(0,b.w)()?null:(0,s.jsx)("footer",{className:"border-t border-black/10",children:(0,s.jsxs)(l.W,{children:[(0,s.jsxs)("div",{className:"flex flex-col items-center justify-between gap-y-12 py-6 sm:items-start lg:flex-row",children:[(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"flex text-gray-900",children:[(0,s.jsx)(i.default,{src:"/images/icon.png",alt:t("alt.icon"),width:120,height:120}),(0,s.jsxs)("div",{className:"pt-4",children:[(0,s.jsx)("p",{className:"text-base font-semibold",children:e("app.title")}),(0,s.jsx)("p",{className:"max-w-xs text-sm",children:e("app.description")})]})]})}),(0,s.jsxs)("div",{className:"relative flex flex-wrap items-center justify-center gap-x-2 gap-y-4 p-2 sm:mt-8 lg:justify-start",children:[(0,s.jsx)(d.k,{}),(0,s.jsx)(o.p,{}),(0,s.jsx)(c.L,{})]})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center border-t border-black/10 pb-12 pt-8 md:flex-row-reverse md:justify-between md:pt-6",children:[(0,s.jsx)(v,{}),(0,s.jsxs)("div",{className:"mt-6 flex gap-3 text-sm text-gray-500 md:mt-2",children:[(0,s.jsxs)("div",{children:[e("credit.text")," ",(0,s.jsx)("a",{className:"underline",href:"https://premieroctet.com",children:e("credit.company")})]}),(0,s.jsx)("div",{children:"-"}),(0,s.jsx)(r.rU,{href:"/privacy",children:e("links.privacy")}),(0,s.jsx)(r.rU,{href:"/help?part=0",children:e("links.help")}),(0,s.jsx)(r.rU,{href:"/contact",children:e("links.contact")}),(0,s.jsx)(r.rU,{href:"/changelog",children:e("links.changelog")})]})]})]})})}},29893:function(e,t,a){a.d(t,{Header:function(){return en}});var s,r,n=a(27573),i=a(99334);let l=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 565 565",fill:"none",...e,children:(0,n.jsx)("path",{fill:"#000",d:"M282.434 154.183c-2.976 0-5.72.678-8.646.876 5.389 9.552 8.712 20.425 8.712 32.174 0 36.504-29.607 66.1-66.125 66.1-21.177 0-39.807-10.129-51.925-25.63-8.877 17.765-14.332 37.528-14.332 58.747 0 73.057 59.248 132.266 132.316 132.266 73.068 0 132.316-59.209 132.316-132.266 0-73.057-59.248-132.267-132.316-132.267ZM282.5 22C136.43 22 18 140.369 18 286.4c0 146.031 118.43 264.4 264.5 264.4S547 432.431 547 286.4C547 140.369 428.57 22 282.5 22Zm0 462.7c-109.387 0-198.375-88.954-198.375-198.3 0-109.346 88.988-198.3 198.375-198.3s198.375 88.954 198.375 198.3c0 109.346-88.988 198.3-198.375 198.3Z"})});var o=a(63006),c=a(62124),d=a(20958),u=a(69389),h=a(7653);function f(){let[e,t]=(0,h.useState)(null),a=(0,h.useRef)(null),s=(0,u.useTranslations)();return[[s("header.nav.events"),"/events"],[s("header.nav.pricing"),"/#pricing"],["Blog","/blog"],[s("header.nav.changelog"),"/changelog"],[s("header.nav.help"),"/help?part=0"]].map((s,r)=>{let[i,l]=s;return(0,n.jsxs)(o.rU,{href:l,className:"relative -mx-3 -my-2 rounded-lg px-3 py-2 text-sm text-gray-700 transition-colors delay-150 hover:text-gray-900 hover:delay-0",onMouseEnter:()=>{a.current&&window.clearTimeout(a.current),t(r)},onMouseLeave:()=>{a.current=window.setTimeout(()=>{t(null)},200)},children:[(0,n.jsx)(c.M,{children:e===r&&(0,n.jsx)(d.E.span,{className:"absolute inset-0 rounded-lg bg-teal-50",layoutId:"hoverBackground",initial:{opacity:0},animate:{opacity:1,transition:{duration:.15}},exit:{opacity:0,transition:{duration:.15}}})}),(0,n.jsx)("span",{className:"relative z-10",children:i})]},i)})}var x=a(16665),m=a(67754),p=a(79914),g=a(2366),j=a(89274),v=a(52958),b=a(33495);let y=p.fC;p.ZA;let w=p.B4,N=h.forwardRef((e,t)=>{let{className:a,children:s,...r}=e;return(0,n.jsxs)(p.xz,{ref:t,className:(0,b.cn)("z-60 flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...r,children:[s,(0,n.jsx)(p.JO,{asChild:!0,children:(0,n.jsx)(g.Z,{className:"h-4 w-4 opacity-50"})})]})});N.displayName=p.xz.displayName;let k=h.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(p.u_,{ref:t,className:(0,b.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,n.jsx)(j.Z,{className:"h-4 w-4"})})});k.displayName=p.u_.displayName;let C=h.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(p.$G,{ref:t,className:(0,b.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,n.jsx)(g.Z,{className:"h-4 w-4"})})});C.displayName=p.$G.displayName;let z=h.forwardRef((e,t)=>{let{className:a,children:s,position:r="popper",...i}=e;return(0,n.jsx)(p.h_,{children:(0,n.jsxs)(p.VY,{ref:t,className:(0,b.cn)("relative z-30 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:r,...i,children:[(0,n.jsx)(k,{}),(0,n.jsx)(p.l_,{className:(0,b.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,n.jsx)(C,{})]})})});z.displayName=p.VY.displayName,h.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(p.__,{ref:t,className:(0,b.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...s})}).displayName=p.__.displayName;let T=h.forwardRef((e,t)=>{let{className:a,children:s,...r}=e;return(0,n.jsxs)(p.ck,{ref:t,className:(0,b.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(p.wU,{children:(0,n.jsx)(v.Z,{className:"h-4 w-4"})})}),(0,n.jsx)(p.eT,{children:s})]})});T.displayName=p.ck.displayName,h.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(p.Z0,{ref:t,className:(0,b.cn)("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=p.Z0.displayName;let Z=[{label:"English",locale:"en"},{label:"Fran\xe7ais",locale:"fr"},{label:"Espa\xf1ol",locale:"es"}];var F=()=>{let e=(0,u.useTranslations)("locale"),t=(0,u.useLocale)(),a=(0,o.tv)(),[,s]=(0,h.useTransition)(),r=(0,o.jD)(),i=(0,m.useParams)();return(0,n.jsxs)(y,{defaultValue:t,onValueChange:function(e){s(()=>{a.replace({pathname:r,params:i},{locale:e})})},"aria-label":e("switchLanguage"),children:[(0,n.jsx)(N,{children:(0,n.jsx)(w,{placeholder:"Language"})}),(0,n.jsx)(z,{children:Z.map(t=>{let{locale:a,label:s}=t;return(0,n.jsx)(T,{value:a,"aria-label":`${s} (${e(a)})`,children:s},a)})})]})},S=a(20914),U=function(e){let{variant:t="classic",...a}=e;return(0,n.jsx)(S.J2.Button,{as:o.rU,className:"classic"===t?"block text-base leading-7 tracking-tight text-gray-700":"inline-flex h-10 items-center justify-center whitespace-nowrap rounded-md border border-input bg-background px-4 py-2 text-sm font-medium ring-offset-background transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",...a})},_=a(18547),P=a(67200),$=a(87154),L=a(23005),D=()=>{let e=(0,u.useTranslations)(),{mutate:t,isPending:a}=(0,_.a)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{href:"/account",variant:"outline",children:e("header.auth.account")}),(0,n.jsxs)(L.z,{onClick:()=>{a||t()},variant:"outline",children:[a?(0,n.jsx)($.Z,{style:"mr-2"}):(0,n.jsx)(P.Z,{className:"h-5 w-5 shrink-0"}),e("header.auth.logout")]})]})},R=()=>{let e=(0,u.useTranslations)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{href:"/register",variant:"outline",children:e("header.auth.signup")}),(0,n.jsx)(U,{href:"/login",variant:"outline",children:e("header.auth.login")})]})},A=a(3477),O=()=>{let e=(0,u.useTranslations)(),{user:t}=(0,x.k)(),a=!!t;return(0,n.jsx)(S.J2,{className:"lg:hidden",children:t=>{let{open:s}=t;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.O7,{className:"relative z-10 -m-2 inline-flex items-center rounded-lg stroke-gray-900 p-2 hover:bg-gray-200/50 hover:stroke-gray-600 active:stroke-gray-900 ui-not-focus-visible:outline-none","aria-label":"Toggle site navigation",children:e=>{let{open:t}=e;return t?(0,n.jsx)(j.Z,{className:"h-6 w-6"}):(0,n.jsx)(A.Z,{className:"h-6 w-6"})}}),(0,n.jsx)(c.M,{initial:!1,children:s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.jl,{static:!0,as:d.E.div,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-0 bg-gray-300/60 backdrop-blur"}),(0,n.jsxs)(S.Hi,{static:!0,as:d.E.div,initial:{opacity:0,y:-32},animate:{opacity:1,y:0},exit:{opacity:0,y:-32,transition:{duration:.2}},className:"z-60 absolute inset-x-0 top-0 origin-top rounded-b-2xl bg-gray-50 px-6 pb-6 pt-32 shadow-2xl shadow-gray-900/20",children:[(0,n.jsxs)("div",{className:"z-60 space-y-4",children:[(0,n.jsx)(U,{href:"/events",children:e("header.nav.events")}),(0,n.jsx)(U,{href:"/#pricing",children:e("header.nav.pricing")}),(0,n.jsx)(U,{href:"/#blog",children:e("header.nav.blog")}),(0,n.jsx)(U,{href:"/help?part=0",children:e("header.nav.help")}),(0,n.jsx)(U,{href:"/changelog",children:e("header.nav.changelog")}),(0,n.jsx)(F,{})]}),(0,n.jsx)("div",{className:" mt-4 flex flex-col space-y-4",children:a?(0,n.jsx)(D,{}):(0,n.jsx)(R,{})})]})]})})]})}})},E=a(43516),M=e=>{let{name:t,size:a="10"}=e;return(0,n.jsx)("div",{className:`flex items-center justify-center rounded-full bg-gradient-to-br from-teal-300 to-teal-500 shadow-md  w-${a} h-${a} hover:opacity-90`,children:(0,n.jsx)("p",{className:`text-${a} font-bold capitalize text-white`,children:(0,n.jsx)(E.Z,{width:18})})})},W=a(14750);let B=W.zt,V=W.fC,H=W.xz,J=h.forwardRef((e,t)=>{let{className:a,sideOffset:s=4,...r}=e;return(0,n.jsx)(W.VY,{ref:t,sideOffset:s,className:(0,b.cn)("z-20 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})});J.displayName=W.VY.displayName;var Y=a(22745),q=a(35311),I=a(60606),G=a(64388);(s=r||(r={}))[s.DOWN=0]="DOWN",s[s.UP=1]="UP",s[s.FAST=2]="FAST";var K=a(382);let X=async()=>{try{return(await K.L.get("/model/status")).data}catch{return{status:r.DOWN}}},Q=e=>({...(0,G.a)({queryKey:["model-status"],queryFn:()=>X(),refetchInterval:6e4,initialData:e?{status:e}:void 0}),getDescriptionFromStatus:e=>{switch(e){case r.DOWN:return"Photobooth is down and photos are not available";case r.UP:return"Photobooth is up but photos will take few minutes to be available";case r.FAST:return"Photobooth is up and photos will be available in few seconds"}}});var ee=e=>{let{initialStatus:t}=e,a=(0,u.useTranslations)("status"),{data:s}=Q(t),[i,l]=(0,h.useState)(!1);return s?(0,n.jsx)(B,{delayDuration:0,children:(0,n.jsxs)(V,{open:i,onOpenChange:()=>l(!1),children:[(0,n.jsx)(H,{onClick:()=>l(!0),className:"px-1",children:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.status;switch(e){case r.DOWN:return(0,n.jsx)(Y.Z,{className:"h-6 w-6 text-red-500"});case r.UP:return(0,n.jsx)(q.Z,{className:"h-6 w-6 text-blue-500"});case r.FAST:return(0,n.jsx)(I.Z,{className:"h-6 w-6 text-green-500"})}}()}),(0,n.jsx)(J,{children:a(s?.status.toString())})]})}):null},et=e=>{let{modelStatus:t}=e,{user:a}=(0,x.k)(),s=a?.company_name||a?.email||"";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ee,{initialStatus:t}),(0,n.jsx)("a",{href:"/account/credits",children:(0,n.jsx)("div",{className:"flex h-10 w-10 cursor-pointer flex-row items-center justify-center rounded-full border border-gray-200 shadow-md",children:(0,n.jsx)("p",{className:"text-sm",children:a?.credits})})}),(0,n.jsx)("a",{href:"/account",children:(0,n.jsx)(M,{name:s,size:"10"})})]})},ea=a(87659),es=()=>{let e=(0,u.useTranslations)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(L.z,{variant:"ghost",size:"sm",asChild:!0,className:"hidden lg:flex",children:(0,n.jsx)(ea.default,{href:"/login",children:e("header.auth.login")})}),(0,n.jsx)(L.z,{size:"sm",asChild:!0,className:"hidden lg:flex",children:(0,n.jsx)(ea.default,{href:"/register",children:e("header.auth.signup")})})]})},er=a(94806);function en(e){let{modelStatus:t}=e,a=(0,u.useTranslations)(),{user:s}=(0,x.k)();return(0,er.w)()?null:(0,n.jsx)("header",{children:(0,n.jsx)("nav",{children:(0,n.jsxs)(i.W,{className:"relative z-30 flex justify-between py-6",children:[(0,n.jsxs)("div",{className:"relative z-10 flex items-center gap-16",children:[(0,n.jsxs)(o.rU,{href:"/","aria-label":"Home",className:"group flex items-center gap-2",children:[(0,n.jsx)(l,{className:"h-9 w-auto transition-transform group-hover:rotate-90"}),(0,n.jsx)("div",{className:"text-lg font-semibold transition-colors",children:a("header.brand")})]}),(0,n.jsx)("div",{className:"hidden lg:flex lg:gap-10",children:(0,n.jsx)(f,{})})]}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("div",{className:"hidden lg:flex",children:(0,n.jsx)(F,{})}),s?(0,n.jsx)(et,{modelStatus:t}):(0,n.jsx)(es,{}),(0,n.jsx)(O,{})]})]})})})}},63124:function(e,t,a){a.r(t),a.d(t,{default:function(){return i}});var s=a(27573),r=a(26821);let n=new(a(84825)).S;var i=e=>{let{children:t}=e;return(0,s.jsx)(r.aH,{client:n,children:t})}},47066:function(e,t,a){var s=a(27573);t.Z=()=>(0,s.jsxs)("svg",{className:"h-5 w-5 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})},23005:function(e,t,a){a.d(t,{z:function(){return c}});var s=a(27573),r=a(92721),n=a(70047),i=a(7653),l=a(33495);let o=(0,n.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-white hover:opacity-60",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline","outline-destructive":"border border-destructive text-destructive hover:bg-destructive/90 hover:text-destructive-foreground"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=i.forwardRef((e,t)=>{let{className:a,variant:n,size:i,asChild:c=!1,...d}=e,u=c?r.g7:"button";return(0,s.jsx)(u,{className:(0,l.cn)(o({variant:n,size:i,className:a})),ref:t,...d})});c.displayName="Button"},87382:function(e,t,a){a.d(t,{NotificationProvider:function(){return l},z:function(){return o}});var s=a(27573),r=a(92196),n=a(7653);let i=(0,n.createContext)({notifications:[],addNotification:()=>{},removeNotification:()=>{}}),l=e=>{let{children:t}=e,[a,l]=(0,n.useState)([]);return(0,s.jsx)(i.Provider,{value:{notifications:a,addNotification:e=>{let t={...e,id:(0,r.x0)()};l(e=>[...e,t])},removeNotification:e=>{l(t=>t.filter(t=>t.id!==e))}},children:t})},o=()=>(0,n.useContext)(i)},16665:function(e,t,a){a.d(t,{SessionProvider:function(){return l},k:function(){return i}});var s=a(27573),r=a(7653);let n=(0,r.createContext)({session:null,user:null,isPaidUser:!1}),i=()=>(0,r.useContext)(n),l=e=>{let{children:t,value:a}=e;return(0,s.jsx)(n.Provider,{value:a,children:t})}},18547:function(e,t,a){a.d(t,{a:function(){return l}});var s=a(87382),r=a(73822),n=a(382),i=a(67754);let l=()=>{let e=(0,i.useRouter)(),{addNotification:t}=(0,s.z)();return(0,r.D)({mutationFn:async()=>{await n.L.post("/logout")},onSuccess:()=>{e.push("/login"),e.refresh()},onError:e=>{console.log(e),t({title:"Error",text:"An error occurred while logging you out.",type:"error"})}})}},94806:function(e,t,a){a.d(t,{K:function(){return r},w:function(){return n}});var s=a(67754);let r=()=>{let e=(0,s.usePathname)();return e.includes("/events/")&&!e.includes("/account")},n=()=>{let e=(0,s.usePathname)();return e?.includes("/events/")&&e?.includes("/photobooth")}},63006:function(e,t,a){a.d(t,{jD:function(){return l},rU:function(){return n},tv:function(){return o}});var s=a(27619);let r=(0,a(93227).R)({locales:["en","fr","es"],defaultLocale:"en"}),{Link:n,redirect:i,usePathname:l,useRouter:o,getPathname:c}=(0,s.os)(r)},33495:function(e,t,a){a.d(t,{cn:function(){return n}});var s=a(57908),r=a(66290);function n(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,r.m6)((0,s.W)(t))}},382:function(e,t,a){a.d(t,{L:function(){return s}});let s=a(6e3).Z.create({baseURL:"/api",headers:{"X-Platform":"web"}})}}]);