"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[407],{3999:(e,t,r)=>{r.d(t,{cn:()=>o});var n=r(2596),i=r(9688);function o(){for(var e=arguments.length,t=Array(e),r=0;r{r.d(t,{$:()=>o});var n=r(5155),i=r(8250);function o(e){let{children:t,onClick:r,variant:o="primary",size:l="md",disabled:a=!1,icon:s,fullWidth:d=!1,style:c={},...p}=e,g={primary:{bg:i.T.gradients.hero,hover:i.T.gradients.hero,text:"white",border:"transparent"},secondary:{bg:"white",hover:i.T.gray[50],text:i.T.gray[700],border:i.T.gray[300]},success:{bg:i.T.gradients.hero,hover:i.T.gradients.hero,text:"white",border:"transparent"},danger:{bg:i.T.danger[500],hover:i.T.danger[600],text:"white",border:i.T.danger[500]},ghost:{bg:"transparent",hover:i.T.gray[100],text:i.T.gray[600],border:"transparent"}},u={sm:{padding:"8px 16px",fontSize:14,height:36},md:{padding:"12px 20px",fontSize:16,height:44},lg:{padding:"16px 24px",fontSize:18,height:52}},x=g[o]||g.primary,y=u[l]||u.md;return(0,n.jsxs)("button",{onClick:r,disabled:a,style:{background:x.bg,color:x.text,border:"1px solid ".concat(x.border),borderRadius:12,padding:y.padding,fontSize:y.fontSize,fontWeight:600,height:y.height,cursor:a?"not-allowed":"pointer",transition:"all 0.2s ease",display:"flex",alignItems:"center",justifyContent:"center",gap:8*!!s,opacity:a?.5:1,width:d?"100%":"auto",fontFamily:"inherit",...c},onMouseEnter:e=>{a||("primary"===o||"success"===o?(e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 8px 25px rgba(157, 78, 221, 0.3)"):(e.currentTarget.style.background=x.hover,e.currentTarget.style.transform="translateY(-1px)"))},onMouseLeave:e=>{a||("primary"===o||"success"===o?(e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="none"):(e.currentTarget.style.background=x.bg,e.currentTarget.style.transform="translateY(0)"))},...p,children:[s&&(0,n.jsx)(s,{size:18}),t]})}i.T.gradients.hero,i.T.gradients.hero,i.T.gray[50],i.T.gray[700],i.T.gray[300],i.T.gradients.hero,i.T.gradients.hero,i.T.danger[500],i.T.danger[600],i.T.danger[500],i.T.gray[100],i.T.gray[600]},8482:(e,t,r)=>{r.d(t,{Wu:()=>a,ZB:()=>s,Zp:()=>o,aR:()=>l});var n=r(5155),i=r(8250);function o(e){let{children:t,className:r="",style:o={},hover:l=!1,variant:a="default"}=e,s={default:{bg:"white",border:i.T.gray[200],shadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},elevated:{bg:"white",border:i.T.gray[200],shadow:"0 4px 6px rgba(0, 0, 0, 0.05)"},gradient:{bg:i.T.gradients.hero,border:"transparent",shadow:"0 8px 25px rgba(157, 78, 221, 0.15)"}}[a];return(0,n.jsx)("div",{style:{background:s.bg,border:"1px solid ".concat(s.border),borderRadius:16,padding:24,boxShadow:s.shadow,transition:"all 0.2s ease",...o},onMouseEnter:e=>{l&&(e.currentTarget.style.transform="translateY(-2px)",e.currentTarget.style.boxShadow="0 8px 25px rgba(0, 0, 0, 0.1)")},onMouseLeave:e=>{l&&(e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow=s.shadow)},className:r,children:t})}function l(e){let{children:t,className:r="",...i}=e;return(0,n.jsx)("div",{className:"mb-4 ".concat(r),...i,children:t})}function a(e){let{children:t,className:r="",...i}=e;return(0,n.jsx)("div",{className:r,...i,children:t})}function s(e){let{children:t,className:r="",...i}=e;return(0,n.jsx)("h2",{className:"text-xl font-semibold leading-tight ".concat(r),...i,children:t})}},9407:(e,t,r)=>{r.d(t,{A:()=>eA});var n=r(5155),i=r(2115),o=r(4416),l=r(8883),a=r(446),s=r(7213),d=r(4653),c=r(2657),p=r(9772),g=r(2713),u=r(381),x=r(3786),y=r(1007),h=r(4835),m=r(4783),f=r(4616),v=r(9074),b=r(4516),j=r(6516),w=r(4940),T=r(7168),k=r(8482),C=r(677),S=r(8250);function z(e){let{galleries:t=[],onCreateGallery:r,onEditGallery:o,onDeleteGallery:l,userSlug:a=""}=e,[d,p]=(0,i.useState)(!1),{addToast:g}=(0,C.dj)();(0,i.useEffect)(()=>{let e=()=>{p(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let u=async e=>{let t="https://eventlyapp.xyz/event/".concat(a,"/").concat(e.slug);try{await navigator.clipboard.writeText(t),g({type:"success",title:"Link Copied!",message:"Gallery link copied to clipboard",duration:2e3})}catch(e){g({type:"error",title:"Copy Failed",message:"Could not copy link to clipboard",duration:3e3})}},x=e=>new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:d?20:24},children:[(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:d?"flex-start":"center",flexDirection:d?"column":"row",gap:16},children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("h1",{style:{margin:0,fontSize:d?"clamp(2rem, 5vw, 2.5rem)":"clamp(2.5rem, 4vw, 3rem)",fontWeight:700,color:S.T.primary.darkNavy,lineHeight:"1.2"},children:["Event"," ",(0,n.jsx)("span",{style:{background:S.T.gradients.hero,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Galleries"})]}),(0,n.jsx)("p",{style:{margin:"8px 0 0 0",fontSize:d?14:16,color:S.T.text.secondary,lineHeight:"1.4"},children:"Create and manage photo galleries for your special events"})]}),(0,n.jsx)(T.$,{onClick:r,icon:f.A,size:d?"md":"lg",variant:"primary",style:{background:S.T.gradients.hero,whiteSpace:"nowrap",minWidth:"fit-content",width:d?"100%":"auto",fontSize:d?14:16,padding:d?"12px 20px":"16px 24px"},children:"Create Gallery"})]}),(0,n.jsx)("div",{children:0===t.length?(0,n.jsxs)(k.Zp,{style:{textAlign:"center",padding:d?32:48},children:[(0,n.jsx)(s.A,{size:d?40:48,color:S.T.gray[400],style:{margin:"0 auto 16px"}}),(0,n.jsx)("h3",{style:{margin:"0 0 8px 0",color:S.T.primary.darkNavy,fontSize:d?18:20,fontWeight:600},children:"No galleries yet"}),(0,n.jsx)("p",{style:{margin:0,color:S.T.text.secondary,fontSize:d?14:16,lineHeight:"1.5"},children:"Create your first event gallery to start sharing beautiful moments"})]}):(0,n.jsx)("div",{style:{display:"grid",gridTemplateColumns:d?"1fr":"repeat(auto-fill, minmax(320px, 1fr))",gap:d?16:20},children:t.map(e=>{var t;return(0,n.jsxs)(k.Zp,{hover:!0,style:{overflow:"hidden",background:S.T.gradients.card,border:"1px solid ".concat(S.T.gray[200])},children:[(0,n.jsxs)("div",{style:{width:"100%",height:200,backgroundColor:S.T.gray[100],backgroundImage:e.coverImage?"url(".concat(e.coverImage,")"):"none",backgroundSize:"cover",backgroundPosition:"center",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},children:[!e.coverImage&&(0,n.jsx)(s.A,{size:48,color:S.T.gray[400]}),(0,n.jsx)("div",{style:{position:"absolute",bottom:8,right:8,backgroundColor:"rgba(0, 0, 0, 0.7)",color:"white",padding:"4px 8px",borderRadius:4,fontSize:10,fontWeight:500},children:"EventlyApp"})]}),(0,n.jsxs)("div",{style:{padding:20},children:[(0,n.jsx)("h3",{style:{margin:"0 0 8px 0",fontSize:18,fontWeight:600,color:S.T.primary.darkNavy,lineHeight:"1.3"},children:e.title}),(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6,marginBottom:16},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,n.jsx)(v.A,{size:14,color:S.T.text.secondary}),(0,n.jsx)("span",{style:{fontSize:14,color:S.T.text.secondary},children:x(e.date)})]}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,n.jsx)(b.A,{size:14,color:S.T.text.secondary}),(0,n.jsx)("span",{style:{fontSize:14,color:S.T.text.secondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.location})]}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,n.jsx)(s.A,{size:14,color:S.T.text.secondary}),(0,n.jsxs)("span",{style:{fontSize:14,color:S.T.text.secondary},children:[(null===(t=e.photos)||void 0===t?void 0:t.length)||0," photos"]})]}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,n.jsx)(c.A,{size:14,color:S.T.text.secondary}),(0,n.jsxs)("span",{style:{fontSize:14,color:S.T.text.secondary},children:[e.views||0," views"]})]})]}),(0,n.jsxs)("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[(0,n.jsx)(T.$,{onClick:()=>u(e),icon:j.A,size:"sm",variant:"secondary",style:{flex:1,minWidth:"fit-content"},children:"Share"}),(0,n.jsx)(T.$,{onClick:()=>null==o?void 0:o(e),icon:w.A,size:"sm",variant:"primary",style:{background:S.T.gradients.hero,flex:1,minWidth:"fit-content"},children:"Edit"})]})]})]},e.id)})})})]})}var P=r(9621);function A(e){let{collections:t=[],userPlan:r={planId:"free",planName:"Free Plan"},onCreateCollection:o,onEditCollection:l,onDeleteCollection:a}=e,[c,p]=(0,i.useState)(!1),{addToast:g}=(0,C.dj)();(0,i.useEffect)(()=>{let e=()=>{p(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let u=(e,t)=>{let{columns:r=3,height:n=200,gap:i=16,borderRadius:o=12,showWatermark:l=!0}=t||{};return"grid"===e.displayType?'\n\n\n \n \n EventlyApp - Your Event Gallery Hub\n \n \n\n
\n
\n
\n Loading photos...\n
\n \n \n \n
\n \x3c!-- Photos will be loaded here --\x3e\n
\n\n ').concat(l?'':"","\n
\n\n