PageSourceSearch

https://ilove.cards/_nuxt/kXqHnaYG.js

js ilove.cards collected 2026-10-08 01:52:22 UTC 8,280 bytes, 1 lines download raw bytes

1import{l as de,g as ve,i as _e,av as O,w as N,bA as fe,cy as ge,j as ye,c as d,v as t,a as y,b as i,p as l,Q as T,n as v,M as _,ap as P,d as a,e as w,aw as j,o as r,_ as xe,O as he,b8 as Ee,N as U,b3 as we,R as ke,aa as L}from"./CmiQwY5M.js";import be from"./BAoVWW3-.js";import Ce from"./CtLBL6qu.js";import Se from"./BebDzOn_.js";import{_ as $e,g as Me}from"./DYScf9hR.js";import Re from"./BasMELeB.js";import Te from"./sMHzm1c8.js";import Ue from"./WxsKdbqM.js";import De from"./BCDDHftg.js";import Ae from"./CLGjHdSO.js";import Be from"./CwxSOuAM.js";import Ie from"./BszAjawD.js";import Oe from"./Uf0vqjFL.js";import{e as z,_ as Ne}from"./cwCuswcs.js";import{b as Pe}from"./DvKM3Ik_.js";import{g as je}from"./DBB780T_.js";import{i as Le}from"./D9eZdmYY.js";import{b as D}from"./BT1BOATg.js";import{u as ze,a as Ve}from"./BZo89lLc.js";import{u as qe}from"./DlPk8MK3.js";import{u as Fe}from"./DTmKxbTm.js";import"./Deaa6_Xb.js";import"./C3LeiCN2.js";import"./D42uOjg3.js";import"./suhXls4l.js";import"./CD0nsFJO.js";import"./Cik2uSS4.js";import"./DBE-2O_j.js";import"./Cu7Gx7LF.js";import"./Dypq3U1n.js";import"./wbcFQQSE.js";import"./Mm55fddu.js";import"./C0dueWFs.js";import"./B_uXo9GZ.js";import"./Bgezbl0c.js";import"./kRIii9yh.js";import"./ooAHAe75.js";import"./Dxw_AsoK.js";import"./BTydNE_0.js";import"./CM7yg_MZ.js";import"./EwgvN8AC.js";import"./D-pctMGk.js";import"./C7c63rO6.js";import"./jFYhBC76.js";import"./DUCuyWGq.js";import"./B6VNYFMm.js";import"./B5YK5AMk.js";import"./WpAPDTil.js";import"./BxW-u3CY.js";import"./B4RW6rVj.js";import"./QNeV0zag.js";import"./CEg5mmja.js";import"./MbG3ax0x.js";import"./CV4Hssdo.js";import"./iik6CYzq.js";import"./A2H3rUCN.js";import"./QHIWdsuj.js";import"./Df2CGqrV.js";import"./DO1R9hrh.js";import"./BFBXxKv8.js";import"./3sIK00UO.js";import"./BP41XICb.js";import"./CdxAiONm.js";import"./DPY-_nel.js";import"./C1tzvZ6H.js";import"./CGNrGdBt.js";import"./DditFmwu.js";const He={key:0,class:"container mx-auto px-4 py-12"},Je={class:"flex items-center justify-center"},Qe={key:1,class:"container mx-auto px-4 py-12"},Ge={class:"flex flex-col items-center justify-center py-12 text-center"},Ke={class:"text-gray-600 dark:text-gray-400 mb-4"},We={class:"flex gap-3 items-center"},Xe={key:0,class:"flex flex-wrap justify-center gap-2"},Ye={class:"flex justify-center"},vn=de({__name:"[slug]",async setup(Ze){let s,k;const b=ve(),x=_e(),{checkMyRegistrationStatus:V}=ze(),{getStoredEmailForEvent:q}=Ve(),C=a(()=>b.params.slug),{data:$,pending:F}=([s,k]=O(async()=>j(()=>`event-${C.value}`,async()=>{const{fetchEventBySlug:n}=qe(),o=await n(C.value);return o.success?{event:o.data,error:null}:{event:null,error:o.error.message}},{watch:[C]})),s=await s,k(),s),e=a(()=>$.value?.event),A=a(()=>$.value?.error||null),H=a(()=>F.value||!$.value),f=a(()=>Le(e.value?.registration_mode)),S=w(!1),h=w(null);N([e,x],async()=>{if(!e.value?.id||f.value){S.value=!1,h.value=null;return}let n;if(x.value?.email)n=x.value.email;else{const p=await q(e.value.id);p&&(n=p)}const o=await V(e.value.id,n);o.success&&o.data.registered?(S.value=!0,n&&(h.value=n)):(S.value=!1,h.value=null)},{immediate:!0});const u=a(()=>{const n=b.query.e;if(n)return n;if(S.value&&h.value&&typeof window<"u")return z(h.value);if(x.value?.email&&typeof window<"u")return z(x.value.email)}),J=a(()=>e.value?`${e.value.title} | I♥️Cards Event`:"Event - I Love Cards"),Q=a(()=>{if(!e.value)return"Join us for this upcoming event";const n=e.value,o=Me(n.event_type).shortLabel,p=Pe(n.start_at,n.end_at,n.timezone);return`${n.short_description} Join ${n.host_name} on ${p} for this ${o}.`}),G=a(()=>e.value?D(e.value.source,e.value.slug):"https://ilove.cards/events");fe({title:J,description:Q,author:a(()=>e.value?.host_name),ogType:"website",ogUrl:G,ogTitle:a(()=>e.value?.title),ogDescription:a(()=>e.value?.short_description),ogImage:a(()=>je(e.value?.illustration??null)),ogImageAlt:a(()=>e.value?.title),twitterCard:"summary_large_image",twitterTitle:a(()=>e.value?.title),twitterDescription:a(()=>e.value?.short_description),twitterImage:a(()=>e.value?.illustration)}),ge({script:a(()=>e.value?[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Event",name:e.value.title,de
1scription:e.value.description,startDate:e.value.start_at,endDate:e.value.end_at,eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OnlineEventAttendanceMode",location:{"@type":"VirtualLocation",url:D(e.value.source,e.value.slug)},image:e.value.illustration||void 0,organizer:{"@type":"Person",name:e.value.host_name,email:e.value.host_email},offers:{"@type":"Offer",url:D(e.value.source,e.value.slug),price:"0",priceCurrency:"USD",availability:"https://schema.org/InStock",validFrom:new Date().toISOString()}})}]:[])});const{getPublicMember:K}=Fe(),M=a(()=>e.value?.user_id),{data:W}=([s,k]=O(async()=>j(`event-detail-creator-${C.value}`,async()=>M.value?(await K(M.value)).data.value:null,{watch:[M]})),s=await s,k(),s),X=a(()=>`Event Hosted By ${W.value?.display_name||e.value?.host_name||"Our Team"}`),c=w(!1),E=w(!1),m=w(!1);function B(n){if(!n)return!1;const o=n.toLowerCase().trim();return o==="true"||o==="1"||o==="yes"}N(()=>b.query.calendar,n=>{f.value||B(n)&&(u.value?(c.value=!0,m.value=!1):(E.value=!0,m.value=!0))},{immediate:!0});function Y(){L(()=>{m.value&&u.value&&(c.value=!0,m.value=!1)})}function Z(){L(()=>{m.value&&u.value&&(c.value=!0,m.value=!1)})}return ye(()=>{typeof window>"u"||f.value||B(b.query.calendar)&&(u.value?c.value=!0:(E.value=!0,m.value=!0))}),(n,o)=>{const p=xe,R=Ee,ee=be,te=Ce,ne=Se,oe=we,ae=$e,re=Re,ie=Te,le=Ue,se=De,I=Ae,ue=Be,ce=Ie,me=Oe,pe=Ne;return r(),d("div",null,[t(H)?(r(),d("div",He,[y("div",Je,[i(p,{name:"i-lucide-loader-2",class:"w-8 h-8 animate-spin text-primary"})])])):t(A)?(r(),d("div",Qe,[i(ee,null,{default:l(()=>[y("div",Ge,[i(p,{name:"i-lucide-alert-circle",class:"w-12 h-12 text-red-500 mb-4"}),o[3]||(o[3]=y("h3",{class:"text-lg font-semibold mb-2"}," Event not found ",-1)),y("p",Ke,he(t(A)),1),i(R,{to:"/events",color:"primary",variant:"soft",icon:"i-lucide-arrow-left"},{default:l(()=>[...o[2]||(o[2]=[U(" Back to Events ",-1)])]),_:1})])]),_:1})])):t(e)?(r(),d(T,{key:2},[i(ae,{event:t(e),icon:"i-lucide-calendar"},{links:l(()=>[y("div",We,[t(f)&&t(e).external_url?(r(),v(R,{key:0,to:t(e).external_url,color:"primary",icon:"i-lucide-external-link",target:"_blank"},{default:l(()=>[...o[4]||(o[4]=[U(" Open Event Page ",-1)])]),_:1},8,["to"])):(r(),d(T,{key:1},[i(te,{event:t(e),"encoded-email":t(u)},null,8,["event","encoded-email"]),i(oe,null,{default:l(()=>[t(u)?(r(),v(ne,{key:0,"event-slug":t(e).slug,"encoded-email":t(u)},null,8,["event-slug","encoded-email"])):_("",!0)]),_:1})],64))])]),_:1},8,["event"]),t(e).description?(r(),v(le,{key:0,variant:"subtle",ui:{description:"max-w-3xl mx-auto text-center [&_ul]:list-inside [&_ul]:ps-0"}},{description:l(()=>[i(re,{content:t(e).description||""},null,8,["content"])]),default:l(()=>[t(e).tags&&t(e).tags.length?(r(),d("div",Xe,[(r(!0),d(T,null,ke(t(e).tags,g=>(r(),v(ie,{key:g,label:g,color:"neutral",variant:"outline",size:"xl"},null,8,["label"]))),128))])):_("",!0)]),_:1})):_("",!0),t(e).user_id?(r(),v(I,{key:1,title:t(X),icon:"i-lucide-user-circle",ui:{title:"text-balance text-xl sm:text-2xl lg:text-3xl ",leadingIcon:"size-8"},style:{"--icon-color":"var(--color-primary)"}},{default:l(()=>[i(se,{"creator-id":t(e).user_id},null,8,["creator-id"])]),_:1},8,["title"])):_("",!0),i(I,null,{default:l(()=>[y("div",Ye,[i(R,{to:"/events",color:"neutral",variant:"ghost",icon:"i-lucide-arrow-left"},{default:l(()=>[...o[5]||(o[5]=[U(" Back to All Events ",-1)])]),_:1})])]),_:1}),i(ce,null,{default:l(()=>[i(ue,{title:"Start Creating Beautiful Card Decks Today",description:"Start your free 7-day trial to access all features and become part of our card deck creator community.",class:"mb-12"})]),_:1}),t(e)&&!t(f)?(r(),v(me,{key:2,open:t(c),"onUpdate:open":o[0]||(o[0]=g=>P(c)?c.value=g:null),event:t(e),"encoded-email":t(u)},null,8,["open","event","encoded-email"])):_("",!0),t(e)&&!t(f)?(r(),v(pe,{key:3,open:t(E),"onUpdate:open":o[1]||(o[1]=g=>P(E)?E.value=g:null),event:t(e),onSuccess:Y,onRegistered:Z},null,8,["open","event"])):_("",!0)],64)):_("",!0)])}}});export{vn as default};

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.