1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bed6f2d2-2e8b-44c2-a09e-c04fb2cc1522",e._sentryDebugIdIdentifier="sentry-dbid-bed6f2d2-2e8b-44c2-a09e-c04fb2cc1522")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2863],{3759:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=[{type:"birthday",label:"Birthday",prefix:"a",phrase:"a happy birthday",emoji:"\uD83C\uDF82",isFree:!1,to:"/video-maker/birthday-video",homePage:!0,webApp:!0,public:!0},{type:"other",label:"Custom",prefix:"a",phrase:"a",emoji:"â¨",isFree:!1,to:"http://share.vidday.com/start-a-vidday?occasion=custom",homePage:!1,webApp:!0,public:!0},{type:"anniversary",label:"Anniversary",prefix:"an",phrase:"a happy anniversary",emoji:"\uD83C\uDF39",isFree:!1,to:"/video-maker/anniversary-video",homePage:!0,webApp:!0,public:!0},{type:"thankyou",label:"Thank You",prefix:"a",phrase:"a very big thank you",emoji:"\uD83D\uDE4F",isFree:!1,to:"/video-maker/thank-you-video",homePage:!0,webApp:!0,public:!0},{type:"school",label:"School",prefix:"a",phrase:"congratulations",emoji:"\uD83D\uDCDA",isFree:!1,to:"/video-maker/school-video",homePage:!0,webApp:!1,public:!0},{type:"teacher-appreciation",label:"Teacher Appreciation",prefix:"a",phrase:"some well-deserved recognition",emoji:"\uD83E\uDDD1â\uD83C\uDFEB",isFree:!1,to:"/video-maker/school-video",homePage:!1,webApp:!0,public:!0},{type:"graduation",label:"Graduation",prefix:"a",phrase:"congratulations on graduating",emoji:"\uD83C\uDF93",isFree:!1,to:"/video-maker/graduation-video",homePage:!0,webApp:!0,public:!0},{type:"yearbook",label:"Yearbook",prefix:"a",phrase:"a great year",emoji:"\uD83D\uDCD7",isFree:!1,to:"/video-maker/school-video",homePage:!1,webApp:!0,public:!0},{type:"business",label:"Business",prefix:"a",phrase:"congratulations on graduating",emoji:"\uD83D\uDCBC",isFree:!1,to:"/video-maker/business-video",homePage:!1,webApp:!1,public:!0},{type:"recognition",label:"Recognition",prefix:"a",phrase:"some well-deserved recognition",emoji:"\uD83C\uDFC6",isFree:!1,to:"/video-maker/recognition-video",homePage:!0,webApp:!0,public:!0},{type:"military",label:"Military",prefix:"a",phrase:"some well-deserved recognition",emoji:"\uD83C\uDF96ï¸",isFree:!1,to:"/video-maker/recognition-video",homePage:!1,webApp:!0,public:!0},{type:"retirement",label:"Retirement",prefix:"a",phrase:"a happy retirement",emoji:"\uD83C\uDFDDï¸",isFree:!1,to:"/video-maker/retirement-video",homePage:!0,webApp:!0,public:!0},{type:"farewell",label:"Farewell",prefix:"a",phrase:"farewell",emoji:"\uD83D\uDC4B",isFree:!1,to:"/video-maker/farewell-video",homePage:!0,webApp:!0,public:!0},{type:"wedding",label:"Wedding",prefix:"a",phrase:"a beautiful wedding day",emoji:"\uD83D\uDC8D",isFree:!1,to:"/video-maker/wedding-video",homePage:!0,webApp:!0,public:!0},{type:"mothers",label:"Mother's Day",prefix:"a",phrase:"a happy Mother's Day",emoji:"\uD83D\uDC69",isFree:!1,to:"/video-maker/mothers-day-video",homePage:!0,webApp:!0,public:!0},{type:"fathers",label:"Father's Day",prefix:"a",phrase:"a happy Fatherv's Day",emoji:"\uD83D\uDC68",isFree:!1,to:"https://www.vidday.com/fathers-day-video",homePage:!0,webApp:!0,public:!0},{type:"congratulations",label:"Congrats",prefix:"a",phrase:"congratulations",emoji:"\uD83C\uDF89",isFree:!1,to:"http://share.vidday.com/start-a-vidday?occasion=congratulations",homePage:!1,webApp:!0,public:!0},{type:"valentines",label:"Valentine's Day",prefix:"a",phrase:"a happy Valentine's Day",emoji:"\uD83D\uDC98",isFree:!1,to:"/video-maker/valentines-day-video",homePage:!0,webApp:!0,public:!0},{type:"getwell",label:"Get Well",prefix:"a",phrase:"to get well soon",emoji:"\uD83E\uDD15",isFree:!0,to:"/video-maker/get-well-video",homePage:!0,webApp:!0,public:!0},{type:"memorial",label:"Memorial",prefix:"a",phrase:"your condolences",emoji:"\uD83D\uDD6Fï¸",isFree:!1,to:"/video-maker/memorial-video",homePage:!0,webApp:!0,public:!0},{type:"babyshower",label:"Baby Shower",prefix:"a",phrase:"a happy baby shower",emoji:"\uD83C\uDF7C",isFree:!1,to:"/video-maker/baby-shower-video",homePage:!0,webApp:!0,public:!0},{type:"barmitzvah",label:"Bar Mitzvah",prefix:"a",phrase:"a happy bar mitzvah",emoji:"â¡ï¸",isFree:!1,to:"/video-maker/bar-mitzvah-video",homePage:!0,webApp:!0,public:!0},{type:"batmitzvah",label:"Bat Mitzvah",prefix:"a",phrase:"a happy bat mitzvah",emoji:"â¡ï¸",isFree:!1,to:"/video-maker/bar-mitzvah-video",homePage:!0,webApp:!0,public:!0},{type:"holiday",label:"Holiday",prefix:"a",phrase:"a wonderful holiday",emoji:"âï¸",isFree:!1,to:"/video-maker/holiday-video",homePage:!1,webApp:!0,public:!0}]},6217:(e,t,i)=>{"use strict";i.d(t,{V:()=>a});let a={minWidth:"48px",minHeight:"48px",bg:"blue.50",borderRadius:"full",alignItems:"center",justifyContent:"center",_hover:{bg:"blue.100",cursor:"pointer"}}},9383:e=>{e.exports={header:"style_header__3vo03",main:"style_main__OYvZ9",menu:"style_menu__NsliI"}},18277:(e,t,i)=>{"use strict";i.d(t,{v:()=>r});var a=i(440);let r=()=>{let e=()=>
1{let{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}},[t,i]=(0,a.useState)(e());return(0,a.useEffect)(()=>{function t(){i(e())}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),t}},23934:(e,t,i)=>{"use strict";i.d(t,{k:()=>r});var a=i(30741);function r(){let e=((0,a.usePathname)()??"/").split("/").filter(Boolean).filter(e=>!(/\d/.test(e)||/^[a-z]-[a-z]{4,}$/.test(e))).join("-")||"landing";return t=>`internalclick-${e}-${t}`}},25031:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(440),r=i(76231);let o=()=>{let{user:e}=(0,r.A)();return(0,a.useMemo)(()=>!!e&&(!!e.hasLegacyB2bSubscription||!!e.subscriptionId),[e])}},26890:(e,t,i)=>{"use strict";i.d(t,{q:()=>f});var a=i(62420),r=i(67668),o=i(83333),l=i(440),n=i(43796),s=i(45523),d=i(80781),c=i(92522),p=i(74528),h=i(18277);let u={open:e=>({width:e.width,height:e.height,right:0,top:"-1rem",borderRadius:0,transition:{duration:.5,type:"tween",ease:[.76,0,.24,1]}}),closed:{width:40,height:40,top:"4px",right:"4px",borderRadius:"1rem",transition:{duration:.25,delay:.5,type:"tween",ease:[.76,0,.24,1]}}},m={initial:{opacity:1},enter:{opacity:1,x:0,transition:{duration:.65,opacity:{duration:.35},delay:.5,ease:[.215,.61,.355,1]}},exit:{opacity:0,x:"100%",transition:{duration:.5,ease:[.76,0,.24,1]}}};var g=i(9383),y=i.n(g);let x=e=>{let{isActive:t,onClose:i}=e,{height:o,width:n}=(0,h.v)(),[s,g]=(0,l.useState)(0);return(0,l.useEffect)(()=>{let e=0,t=document.getElementById("admin-tools"),i=document.getElementById("dev-tools");if(t){let i=t.getBoundingClientRect().height;isNaN(i)||(e+=i)}if(i){let t=i.getBoundingClientRect().height;isNaN(t)||(e+=t)}g(e)},[]),(0,a.jsx)(d.P.div,{variants:u,animate:t?"open":"closed",initial:"closed",className:y().menu,custom:{width:n,height:o-s},children:(0,a.jsx)(c.N,{children:t&&(0,a.jsx)(d.P.div,{initial:"initial",animate:"enter",exit:"exit",variants:m,className:y().main,children:(0,a.jsx)(r.Flex,{w:"full",paddingTop:"3.5rem",paddingLeft:"2rem",flexDirection:"column",pb:"2rem",children:(0,a.jsx)(p.A,{setToggle:i})})},"main")})})},f=()=>{let[e,t]=(0,l.useState)(!1),[i,d]=(0,n.w)(),c=(0,o.LJ)(),p=()=>{t(!1),d(),window?.LiveChatWidget&&c?.visibility==="hidden"&&window?.LiveChatWidget.call("minimize")};return(0,l.useEffect)(()=>{let e=e=>{"Escape"===e.key&&p()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(r.Flex,{position:"relative",display:["flex",null,"none"],children:[(0,a.jsx)(x,{isActive:e,onClose:p}),(0,a.jsx)(s.I,{isActive:e,onClick:()=>{e?d():i(),t(!e),window?.LiveChatWidget&&(c?.visibility==="minimized"?window?.LiveChatWidget.call("hide"):window?.LiveChatWidget.call("minimize"))}})]})})}},33562:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(440);let r=()=>{let e=navigator.userAgent,t=new URLSearchParams(window.location.search);return e.includes("ViddayIOSApp")?"ios_app":e.includes("share.twa")||"android_app"===t.get("platform")?"android_app":"web"},o=()=>{let[e,t]=(0,a.useState)(()=>r());return(0,a.useEffect)(()=>{t(r()),(()=>{let e=new URL(window.location.href);e.searchParams.has("platform")&&(e.searchParams.delete("platform"),window.history.replaceState({},"",e.toString()))})()},[]),e}},43796:(e,t,i)=>{"use strict";i.d(t,{w:()=>r});var a=i(440);let r=()=>{let e=(0,a.useRef)(!1);return[()=>{if("undefined"==typeof document)return;let t=document.documentElement,{body:i}=document;if(!i||!i.style||e.current)return;let a=window.innerWidth-t.clientWidth,r=parseInt(window.getComputedStyle(i).getPropertyValue("padding-right"))||0;t.style.position="relative",i.style.position="relative",t.style.overflow="hidden",i.style.overflow="hidden",i.style.paddingRight=`${r+a}px`,i.style.height="100%",e.current=!0},()=>{if("undefined"==typeof document)return;let t=document.documentElement,{body:i}=document;i&&i.style&&e.current&&(t.style.position="",t.style.overflow="",i.style.position="",i.style.overflow="",i.style.paddingRight="",e.current=!1)}]}},45523:(e,t,i)=>{"use strict";i.d(t,{I:()=>d});var a=i(62420),r=i(67668),o=i(31012),l=i(72685),n=i(23934),s=i(6217);let d=e=>{let{onClick:t,isActive:i}=e,d=(0,n.k)(),c=i?"Close menu":"Open menu";return(0,a.jsx)(r.Flex,{asChild:!0,css:s.V,zIndex:1051,color:"brand.solid",children:(0,a.jsx)("button",{type:"button",id:d("menu"),"aria-label":c,"data-click-text":c,onClick:t,children:(0,a.jsx)(o.Icon,{as:i?l.m6K:l.vIB,boxSize:"1.5rem",color:"brand.solid"})})})}},47684:e=>{e.exports={header:"style_header__SQMlt",main:"style_main__Bux8Y",menu:"style_menu__uthZj"}},49936:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(3759);let r=()=>{let e=[];a.A.forEach((t,i)=>{t.public&&t.webApp&&e.push(t)});let t=e.findIndex(e=>"wedding"===e.type);return -1!==t&&e.splice(t+1,0,{type:"wedding-guestbook",label:"Wedding Guestbook",emoji:"\uD83D\uDCD6"}),e}},52764:(e,t,i)=>{"use strict";i.d(t,{D:()=>a,q:()=>r});let a="undefined"!=typeof BroadcastChannel?new BroadcastChannel("login-channel"):null,r="undefined"!=typeof BroadcastChannel?new BroadcastChannel("logout-channel"):null},58475:(e,t,i)=>{"use strict";i.d(t,{$q:()=>y,BQ:()=>_,Di:()=>h,EN:()=>g,Es:()=>T,HD:()=>H,Hn:()=>N,Hs:()=>er,Hu:()=>s,JQ:()=>F,JY:()=>R,K4:()=>et,K9:()=>x,KN:()=>k,Lo:()=>m,NZ:()=>I,Ns:()=>G,OD:()=>ee,Q8:()=>A,Qe:()=>M,Qt:()=>O,TE:()=>K,UU:()=>S,UX:()=>D,WF:()=>z,Wd:()=>f,XP:()=>v,Xm:()=>c,Zc:()=>d,ce:()=>ei,cm:()=>Z,es:()=>U,gJ:()=>W,gY:()=>n,h6:()=>Q,iI:()=>L,iT:()=>P,ic:()=>j,it:()=>B,j:()=>V,kT:()=>$,nD:()=>ea,oV:()=>p,p9:()=>C,pn:()=>q,py:()=>Y,vh:()=>w,wD:()=>J,wz:()=>X,xj:()=>u});var a=i(87017),r=i(10743),o=i(78083),l=i(68331);let n=(0,a.eU)(null),s=(0,a.eU)(null),d=(0,a.eU)([]),c=(0,a.eU)([]),p=(0,a.eU)([]),h=(0,a.eU)(e=>e(n)?.prompts||[]),u=(0,a.eU)([]),m=(0,a.eU)([]);(0,a.eU)([]);let g=(0,a.eU)([]),y=(0,a.eU)(null),x=(0,a.eU)({prevId:null,nextId:null}),f=(0,a.eU)([]),b=(0,a.eU)([]),v=(0,a.eU)(e=>e(b),(e,t,i)=>{let a=e(b);t(b,("function"==typeof i?i(a):i).map(e=>
1({...e,scenes:[...e.scenes].sort((e,t)=>(e.position??0)-(t.position??0))})))}),w=(0,r.tG)("temporary-event",null,{...(0,r.KU)(()=>localStorage)}),j=(0,a.eU)(null),k=(0,a.eU)(null),A=(0,a.eU)(null),U=(0,a.eU)(null),C=(0,a.eU)(null),S=(0,a.eU)(null),P=(0,a.eU)(null),F=(0,a.eU)(e=>e(k)?.role==="admin"),_=(0,a.eU)(e=>{let t=e(k)?.role;return"admin"===t||"editor"===t}),z=(0,a.eU)(!1),I=(0,a.eU)(e=>{let t=e(k)?.role,i=e(z);return"admin"===t||!0===i}),N=(0,a.eU)(null),E=(0,a.eU)(e=>null!=e(N)),L=(0,a.eU)([]),T=(0,a.eU)(null),D=(0,a.eU)([]),B=(0,a.eU)(e=>(0,l.Ay)(e(D)||[],!0).names||"");(0,a.eU)(e=>!e(E)&&0===e(L).length);let W=(0,a.eU)(e=>e(n)?.occasion==="memorial"),V=(0,a.eU)(e=>e(n)?.guestbook||e(w)?.guestbook||!1),R=(0,a.eU)(e=>(0,o.A)(e(n)?.occasion,e(n)?.occasionOther,e(V))||null),H=(0,a.eU)(e=>{let t=e(k),i=e(n);return t?.id===i?.creatorId});(0,a.eU)([]);let M=(0,a.eU)([]),K=(0,a.eU)("all"),G=(0,a.eU)(!1),$=(0,a.eU)(!1),O=(0,r.tG)("vidday:assistant:dismissed-alerts",[],{...(0,r.KU)(()=>localStorage)}),Q=(0,r.tG)("contributor-promo-code",null,{...(0,r.KU)(()=>localStorage)}),Y=(0,r.tG)("contributor-uploads",[],{...(0,r.KU)(()=>localStorage)}),q=(0,r.tG)("failed-uploads",[],{...(0,r.KU)(()=>localStorage)}),J=(0,r.tG)("upload-state",[],{...(0,r.KU)(()=>localStorage)});(0,a.eU)(e=>e(Y).filter(t=>t.eventId===e(n)?.id));let Z=(0,r.tG)("thankyou-upload",null,{...(0,r.KU)(()=>localStorage)}),X=(0,a.eU)(null),ee=(0,a.eU)(null),et=(0,a.eU)(null),ei=(0,a.eU)(null),ea=(0,a.eU)("public"),er=(0,a.eU)(null)},68331:(e,t,i)=>{"use strict";function a(e,t,i){var a="someone special ",r="is";return"string"==typeof e?a=e:e&&1===e.length&&""!==e[0].firstName?(a=e[0].firstName.trim()+(!0===t&&e[0].lastName?" "+e[0].lastName.trim():""),r="is"):e&&2===e.length?(a=e.map((i,a)=>(i.firstName?i.firstName.trim():i.firstName)+(!0===t&&i.lastName?" "+i.lastName.trim():"")+(e.length-1!==a?" and ":"")).filter(e=>e).join(""),r="are"):e&&e.length>=3&&(a=e.map((i,a)=>(0!==a?e.length-1!==a?", ":" and ":"")+(i.firstName?i.firstName.trim():i.firstName)+(!0===t&&i.lastName?" "+i.lastName.trim():"")).filter(e=>e).join(""),r="are"),{names:i?function(e){let t=e.split("and").map(e=>e.trim());return t[t.length-1].endsWith("s")?`${e.trim()}'`:`${e.trim()}'s`}(a):a,suffix:r}}i.d(t,{Ay:()=>l,K5:()=>o,Zm:()=>r});let r=(e,t)=>a(e,!0,t).names,o=(e,t)=>a(e,!1,t).names,l=a},73642:(e,t,i)=>{"use strict";i.d(t,{G:()=>w});var a=i(62420),r=i(67668),o=i(83333),l=i(440),n=i(43796),s=i(45523),d=i(80781),c=i(92522),p=i(74528),h=i(18277);let u={open:e=>({width:360,height:"auto",right:0,top:"4rem",transition:{duration:.5,type:"tween",ease:[.76,0,.24,1]}}),closed:{width:40,height:40,top:"4px",right:"4px",borderRadius:"1rem",transition:{duration:.25,delay:.5,type:"tween",ease:[.76,0,.24,1]}}},m={initial:{opacity:1},enter:{opacity:1,x:0,left:0,right:0,top:0,bottom:0},exit:{opacity:0,transition:{duration:.5,ease:[.76,0,.24,1]}}};var g=i(47684),y=i.n(g);let x=e=>{let{isActive:t,onClose:i}=e,{height:o,width:n}=(0,h.v)(),s=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=e=>{s.current&&!s.current.contains(e.target)&&i()};return t&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,i]),(0,a.jsx)(d.P.div,{variants:u,animate:t?"open":"closed",initial:"closed",className:y().menu,custom:{width:n,height:o},children:(0,a.jsx)(c.N,{children:t&&(0,a.jsx)(d.P.div,{initial:"initial",animate:"enter",exit:"exit",variants:m,className:y().main,ref:s,children:(0,a.jsx)(r.Flex,{w:"full",minW:"360px",flexDirection:"column",padding:"2rem",paddingTop:"0.5rem",children:(0,a.jsx)(p.A,{setToggle:i})})},"main")})})};var f=i(19497);let b={enter:{opacity:0}
1,center:{zIndex:1051,y:0,opacity:1},exit:{zIndex:0,opacity:0,transition:{delay:.5}}},v=e=>{let{isActive:t}=e;return(0,a.jsx)(f.Box,{css:{position:"fixed",top:0,right:0,left:0,bottom:0,zIndex:1051,pointerEvents:t?"auto":"none",width:"100%",height:"100vh"},children:(0,a.jsx)(c.N,{initial:!1,children:t&&(0,a.jsx)(d.P.div,{variants:b,initial:"enter",animate:"center",exit:"exit",transition:{y:{type:"spring",stiffness:300,damping:30}},style:{position:"absolute",width:"100%",pointerEvents:"none",zIndex:1051},children:(0,a.jsx)(f.Box,{id:"overlay",css:{width:"full",height:"100vh",position:"fixed",zIndex:1051,top:0,right:0,left:0,bg:"rgb(10, 34, 57, 0.8)"}})},"overlay")})})},w=()=>{let[e,t]=(0,l.useState)(!1),[i,d]=(0,n.w)(),c=(0,o.LJ)(),p=()=>{window?.LiveChatWidget&&(c?.visibility==="minimized"?window?.LiveChatWidget.call("hide"):window?.LiveChatWidget.call("minimize"))},h=()=>{t(!1),d(),setTimeout(()=>void(window?.LiveChatWidget&&c?.visibility==="hidden"&&window?.LiveChatWidget.call("minimize")),1e3)};return(0,l.useEffect)(()=>{let e=e=>{"Escape"===e.key&&h()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{isActive:e}),(0,a.jsxs)(r.Flex,{position:"relative",display:["none",null,"flex"],children:[(0,a.jsx)(x,{isActive:e,onClose:h}),(0,a.jsx)(s.I,{isActive:e,onClick:a=>{a.stopPropagation(),e?d():i(),e?setTimeout(()=>p(),1e3):p(),t(!e)}})]})]})}},74528:(e,t,i)=>{"use strict";i.d(t,{A:()=>N});var a=i(62420),r=i(67668),o=i(44476),l=i(26447),n=i(18838),s=i(76812),d=i(31012),c=i(19497),p=i(77361),h=i(37057),u=i(76610),m=i(74186),g=i(53780),y=i(72685);let x=[{id:"pricing",title:"Pricing",href:"https://www.vidday.com/pricing",icon:y.KMm,iconColor:"green.500"},{id:"help-center",title:"Help Center",href:"https://help.vidday.com",icon:y.fTe,iconColor:"red.300"},{id:"faq",title:"FAQ",href:"https://www.vidday.com/about/faq",icon:y.zcf,iconColor:"teal.400"}];var f=i(81525),b=i(18552),v=i(60656),w=i.n(v),j=i(30741),k=i(58475),A=i(52764),U=i(82188),C=i(25031),S=i(33562),P=i(76231),F=i(23934),_=i(92277),z=i(95808);let I={display:"flex",alignItems:"center",gap:"0.5rem",py:"0.1rem",fontSize:"lg",fontWeight:"500",width:"full",textAlign:["center","left"],_hover:{cursor:"pointer",color:"#0F66D0"}};({...I,fontSize:"22px",color:"headline",fontFamily:"poppins",fontWeight:400});let N=e=>{let{setToggle:t,...i}=e,v=(0,f.useAtomValue)(k.JQ),N=(0,C.A)();(0,j.useRouter)();let{isAuthenticated:E,email:L}=(0,P.A)(),T=(0,f.useSetAtom)(k.KN),D=()=>t(!1),B="ios_app"===(0,S.A)(),W=(0,F.k)(),V=async()=>{try{await _.A.logout(),z.toaster.create({title:"Success",description:"You have been logged out!",type:"success",duration:9e3,closable:!0}),T(null),A.q?.postMessage({type:"logout-success"}),window.location.reload()}catch(e){e instanceof g.pe&&"ECONNABORTED"===e.code?console.log("ignored axios connection aborted error"):(console.error("logout error: ",e),z.toaster.create({title:"Error",description:"An error occured while signing out.",type:"error",duration:9e3,closable:!0}))}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Flex,{direction:"column",my:"1.5rem",children:(0,a.jsx)(U.TrackedButton,{w:"full",variant:"solid",size:"xl",onClick:()=>D(),trackingLabel:"Start a New VidDay",asChild:!0,children:(0,a.jsx)(w(),{href:"/start-a-vidday",children:"Start a New VidDay"})})}),(0,a.jsx)(o.Separator,{my:"1rem"}),E?(0,a.jsxs)(l.VStack,{children:[v&&(0,a.jsx)(n.Heading,{size:"xl",asChild:!0,w:"full",_hover:{color:"link"},children:(0,a.jsx)("a",{id:W("menu-admin"),"data-click-text":"Admin",href:"https://admin2.share.vidday.com/",target:"_blank",onClick:()=>D(),rel:"noopener",children:"Admin"})}),(0,a.jsx)(n.Heading,{size:"xl",asChild:!0,w:"full",_hover:{color:"link"},children:(0,a.jsx)(w(),{id:W("menu-my-viddays"),"data-click-text":"My VidDays",href:"/dashboard",onClick:()=>D(),children:"My VidDays"})}),(0,a.jsx)(n.Heading,{size:"xl",asChild:!0,w:"full",_hover:{color:"link"},children:(0,a.jsx)(w(),{id:W("menu-account"),"data-click-text":"Account",href:"/settings/profile",onClick:()=>D(),children:"Account"})}),(0,a.jsx)(n.Heading,{size:"xl",asChild:!0,w:"full",_hover:{color:"link"},children:(0,a.jsx)(w(),{id:W("menu-cart"),"data-click-text":"My VidDays",href:"/cart",onClick:()=>D(),children:"Cart"})})]}):(0,a.jsxs)(l.VStack,{children:[(0,a.jsx)(n.Heading,{size:"xl",asChild:!0,w:"full",_hover:{color:"link"},children:(0,a.jsx)(w(),{id:W("menu-log-in"),"data-click-text":"Log In",href:"/auth/login",onClick:()=>D(),children:"Log In"})}),(0,a.jsx)(n.Heading,{size:"xl",asChild:!0,w:"full",_hover:{color:"link"},children:(0,a.jsx)(w(),{id:W("menu-create-account"),"data-click-text":"Create Account",href:"/auth/register",onClick:()=>D(),children:"Create Account"})})]}),(0,a.jsx)(o.Separator,{my:"1rem"}),(0,a.jsx)(l.VStack,{children:x.filter(e=>"pricing"!==e.id||!B).map(e=>(0,a.jsxs)(s.chakra.a,{id:W(`menu-${e.id}`),"data-click-text":e.title,as:e.href.includes("http")?"a":w(),target:e.href.includes("http")?"_blank":"_self",href:e.href,css:I,onClick:()=>D(),children:[(0,a.jsx)(d.Icon,{as:e.icon,boxSize:"1.5rem",color:e.iconColor}
1),e.title]},e.id))}),E&&(0,a.jsx)(o.Separator,{my:"1rem"}),E&&(0,a.jsx)(r.Flex,{direction:"column",textAlign:["center","left"],children:(0,a.jsxs)(s.chakra.button,{type:"button",id:W("menu-log-out"),"data-click-text":"Log Out",onClick:()=>V(),css:I,children:[(0,a.jsx)(d.Icon,{as:y.gXi,boxSize:"1.5rem",color:"blue.400"}),"Log Out"]})}),E&&!N&&!B&&(0,a.jsxs)(r.Flex,{css:{position:["relative","absolute"],bg:"headline",borderRadius:"1rem",flexDirection:"column",width:["full","320px"],left:["auto","-328px"],top:["auto","0"],boxShadow:"md",mt:["1.5rem",0]},children:[(0,a.jsx)(c.Box,{css:{w:"18px",height:"24px",position:"absolute",right:"-18px",top:"178px",display:["none","block"]},children:(0,a.jsx)(b.default,{alt:"Arrow Tip",fill:!0,src:"/images/graphics/account-sidebar-membership-arrow-tip.png",style:{objectFit:"cover",objectPosition:"center"}})}),(0,a.jsx)(b.default,{src:"/images/graphics/account-sidebar-membership-graphic.png",width:320,height:161.82,alt:"Membership Graphic"}),(0,a.jsxs)(l.VStack,{w:"full",alignItems:"stretch",px:"1.5rem",pb:"1.5rem",gap:"1rem",children:[(0,a.jsxs)(l.VStack,{w:"full",alignItems:"stretch",children:[(0,a.jsx)(n.Heading,{as:"h3",size:"2xl",color:"white",children:"Go VIP with VidDay"}),(0,a.jsx)(p.Text,{textStyle:"lg",color:"white",children:"More savings, more perks, more reasons to celebrate."})]}),(0,a.jsx)(U.TrackedButton,{variant:"solidWhite",size:"md",maxH:"40px",boxShadow:"sm",asChild:!0,onClick:()=>D(),children:(0,a.jsx)(w(),{href:"/settings/billing",children:"See Member Perks"})})]})]}),(0,a.jsxs)(l.VStack,{alignItems:"flex-start",gap:"0.25rem",mt:"1.5rem",children:[(0,a.jsxs)(h.HStack,{separator:(0,a.jsx)(u.StackSeparator,{color:"gray.300",maxH:"18px"}),children:[(0,a.jsx)(m.Link,{id:W("menu-privacy-policy"),"data-click-text":"Privacy Policy",href:"https://www.vidday.com/privacy-policy",target:"_blank",title:"Privacy Policy",textStyle:"sm",color:"headline",children:"Privacy Policy"}),(0,a.jsx)(m.Link,{id:W("menu-terms-of-use"),"data-click-text":"Terms of Use",href:"https://www.vidday.com/terms-of-use",target:"_blank",title:"Terms of Use",textStyle:"sm",color:"headline",children:"Terms of Use"})]}),E&&(0,a.jsxs)(p.Text,{textStyle:"sm",color:"gray.500",textAlign:["center","left"],children:["Logged in as ",(0,a.jsx)("strong",{children:L})]})]})]})}},76231:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(81525),r=i(58475);let o=()=>{let e,t=(0,a.useAtomValue)(r.KN);return{isAuthenticated:"authenticated"==(e=void 0===t?"loading":null===t?"unauthenticated":"authenticated"),email:t?.email||null,user:t,status:e}}},78083:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});let a=(0,i(49936).A)(),r=(e,t,i)=>{let r=null;if(e)if(("other"===e||"congratulations"===e)&&t)r={...a.find((t,i)=>t.type===e),label:t};else{let t=a.find((t,i)=>t.type===e);r={...t,label:`${t?.label}${i?" Guestbook":""}`}}return r}},82188:(e,t,i)=>{"use strict";i.d(t,{TrackedButton:()=>n});var a=i(62420),r=i(9465),o=i(440),l=i(23934);let n=(0,o.forwardRef)(function(e,t){let{children:i,trackingLabel:n,id:s,...d}=e,c=(0,l.k)(),p=function e(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(i>32)){if("string"==typeof t)return t;if(Array.isArray(t)){for(let a of t){let t=e(a,i+1);if(t)return t}return}if((0,o.isValidElement)(t))return e(t.props.children,i+1)}}(o.Children.toArray(i)),h=("string"==typeof n?n:void 0)??p,u=p??("string"==typeof n?n:void 0),m=s??(h?c(h.toLowerCase().trim().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-{2,}/g,"-").replace(/^-|-$/g,"")):void 0),g=d.asChild&&(0,o.isValidElement)(i)?(0,o.cloneElement)(i,{id:i.props.id??m,"data-click-text":u}):i;return(0,a.jsx)(r.Button,{ref:t,id:m,"data-click-text":u,...d,children:g})})},95808:(e,t,i)=>{"use strict";i.d(t,{l:()=>c,toaster:()=>d});var a=i(62420),r=i(39828),o=i(83513),l=i(36948),n=i(26140),s=i(35218);let d=(0,r.createToaster)({placement:"bottom-end",pauseOnPageIdle:!0}),c=()=>(0,a.jsx)(o.Portal,{children:(0,a.jsx)(l.Toaster,{toaster:d,insetInline:{mdDown:"4"},children:e=>(0,a.jsxs)(l.ToastRoot,{width:{md:"sm"},children:["loading"===e.type?(0,a.jsx)(n.Spinner,{size:"sm",color:"blue.solid"}):(0,a.jsx)(l.ToastIndicator,{}),(0,a.jsxs)(s.Stack,{gap:"1",flex:"1",maxWidth:"100%",children:[e.title&&(0,a.jsx)(l.ToastTitle,{children:e.title}),e.description&&(0,a.jsx)(l.ToastDescription,{children:e.description})]}),e.action&&(0,a.jsx)(l.ToastActionTrigger,{children:e.action.label}),e.closable&&(0,a.jsx)(l.ToastCloseTrigger,{})]})})})}}]);
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.