PageSourceSearch

https://socialloop.ai/_next/static/chunks/8972.5da0468d22aa2c5a.js

js socialloop.ai collected 2026-10-05 12:47:31 UTC 6,956 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8972],{68972:(e,t,a)=>{a.r(t),a.d(t,{default:()=>k});var s=a(95155),i=a(12115),n=a(39390),l=a(14585),r=a(82146),o=a(37401),d=a(3131),c=a(12711),u=a(8683);let m=(0,i.lazy)(()=>Promise.all([a.e(2143),a.e(8310)]).then(a.bind(a,98310))),f=(0,i.lazy)(()=>a.e(99).then(a.bind(a,50099))),h=(0,i.lazy)(()=>Promise.all([a.e(2769),a.e(2795)]).then(a.bind(a,52795))),x=(0,i.lazy)(()=>Promise.all([a.e(4484),a.e(5734)]).then(a.bind(a,33353))),p=(0,i.lazy)(()=>Promise.all([a.e(2619),a.e(2790)]).then(a.bind(a,92790))),v=(0,i.lazy)(()=>a.e(6700).then(a.bind(a,46700))),b=(0,i.lazy)(()=>Promise.all([a.e(3524),a.e(8599)]).then(a.bind(a,95816))),y=(0,i.lazy)(()=>a.e(1661).then(a.bind(a,81661))),g=[{key:"earnings",label:"Earnings",built:!0},{key:"invitations",label:"Invitations",built:!0},{key:"sharing",label:"Sharing Tools",built:!0,requiredPlan:"pro",featureGate:"affiliates"},{key:"affiliates",label:"Affiliates",built:!0,requiredPlan:"pro",featureGate:"affiliates",visibility:"host-only"},{key:"promo-codes",label:"Promo Codes",built:!0,visibility:"host-or-ticketing"},{key:"campaigns",label:"Notification Campaigns",built:!0,requiredPlan:"pro",featureGate:"affiliates"},{key:"email",label:"Email Campaigns",built:!0,requiredPlan:"business",featureGate:"email-campaigns",visibility:"host-only"},{key:"sms",label:"SMS Blasts",built:!0,featureGate:"sms-campaigns",visibility:"host-only"}];function j(){return(0,s.jsx)("div",{className:"flex items-center justify-center h-64",children:(0,s.jsx)("div",{className:"studio-spinner",style:{width:32,height:32}})})}function k(){let{eventId:e,eventData:t,loading:a,isHost:k,permissions:S,permissionContext:w}=(0,r._)(),{user:C,userProfile:P}=(0,o.Y)(),E=(null==P?void 0:P.plan)||"free",A=!k&&!!(null==S?void 0:S.canInviteFromOwnList),G=w.isAffiliate,q=A||G,[z,D]=(0,i.useState)(G?"earnings":"invitations"),[I,R]=(0,i.useState)([]);if((0,i.useEffect)(()=>G&&C&&e?(0,n.onSnapshot)((0,n.doc)(l.db,"users",C.uid,"affiliateEvents",e),e=>{if(!e.exists())return void R([]);let t=e.data();Array.isArray(t.promoCodes)&&t.promoCodes.length>0?R(t.promoCodes.map(e=>({ticketClassName:e.ticketClassName||"",promoCode:e.promoCode||"",discountType:e.discountType,discountValue:e.discountValue}))):t.promoCode?R([{ticketClassName:"",promoCode:t.promoCode}]):R([])},()=>R([])):void R([]),[G,C,e]),!e)return(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center h-80 text-center",children:[(0,s.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-white/[0.04] flex items-center justify-center mb-4",children:(0,s.jsx)(u.li,{className:"w-8 h-8 text-t2"})}),(0,s.jsx)("h2",{className:"studio-subtitle",children:"No Event Selected"}),(0,s.jsx)("p",{className:"studio-body mt-1 max-w-sm",children:"Select an event from My Events to manage distribution."})]});if(a||!t)return(0,s.jsx)("div",{className:"flex items-center justify-center h-64",children:(0,s.jsx)("div",{className:"studio-spinner",style:{width:32,height:32}})});let M={eventId:e,eventName:t.eventName,eventDate:t.eventDate,eventEndDate:t.eventEndDate,eventImageURL:t.imageURL||void 0,eventVenue:t.locationAddress||void 0,hasImmersivePage:!!t.immersivePageURL};return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-2xl font-bold bg-gradient-to-b from-white to-white/50 bg-clip-text text-transparent",children:"Promote"}),(0,s.jsx)("p",{className:"studio-body mt-1",children:G?(0,s.jsxs)(s.Fragment,{children:["Share your code and promote ",(0,s.jsx)("span",{className:"text-t2 font-medium",children:t.eventName})]}):(0,s.jsxs)(s.Fragment,{children:["Promote ",(0,s.jsx)("span",{className:"text-t2 font-medium",children:t.eventName})]})})]}),(0,s.jsx)("div",{className:"flex gap-1 w-fit max-w-full overflow-x-auto py-1 px-1 -mx-1",children:(q?g.filter(e=>G&&"earnings"===e.key||"invitations"===e.key||"sharing"===e.key):g.filter(e=>{var t;return"earnings"!==e.key&&("host-only"===e.visibility?k:"host-or-ticketing"!==e.visibility||k||null!=(t=null==S?void 0:S.canManageTicketing)&&t)})).map(e=>{let t=!!e.featureGate&&!(0,d.c$)(E,e.featureGate)&&!q;return(0,s.jsxs)("button",{onClick:()=>D(e.key),className:"flex items-center gap-1.5 px-4 py-2 rounded-full text-sm font-medium transition-all whitespace-nowrap ".concat(z===e.key?"bg-selected text-selected shadow-selected":e.built&&!t?"text-t3 hover:text-t1 hover:bg-card-hover":"text-t4 hover:text-t3"),children:[e.label,(t||!e.built)&&(0,s.jsx)("svg",{className:"w-3 h-3 text-t4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})})]},e.key)})}),(()=>{let a=g.find(e=>e.key===z);if((null==a?void 0:a.featureGate)&&!(0,d.c$)(E,a.featureGate)&&!q){let e=N[a.label];return(0,s.jsx)(c.S5,{tabName:a.label,description:null==e?void 0:e.desc,features:null==e?void 0:e.features,requiredPlan:a.requiredPlan}
1)}switch(z){case"earnings":return(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)(j,{}),children:(0,s.jsx)(y,{})});case"invitations":return(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)(j,{}),children:(0,s.jsx)(m,{...M})});case"campaigns":return(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)(j,{}),children:(0,s.jsx)(f,{})});case"sharing":return(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)(j,{}),children:(0,s.jsx)(h,{...M,promoterUid:q?null==C?void 0:C.uid:void 0,affiliatePromoCodes:G?I:void 0})});case"email":return(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)(j,{}),children:(0,s.jsx)(p,{})});case"sms":return(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)(j,{}),children:(0,s.jsx)(x,{eventId:e,eventName:t.eventName},e)});case"affiliates":return(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)(j,{}),children:(0,s.jsx)(v,{})});case"promo-codes":return(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)(j,{}),children:(0,s.jsx)(b,{})})}})()]})}let N={"Sharing Tools":{desc:"Generate QR codes, smart links, and social media assets to promote your event everywhere.",features:["Dynamic QR codes","Smart share links","Social media captions"]},"Notification Campaigns":{desc:"Send targeted push notification campaigns to drive RSVPs and keep attendees informed.",features:["Segmented targeting","Scheduled sends","A/B testing"]},"Email Campaigns":{desc:"Design and send beautiful email campaigns with AI-generated copy and templates.",features:["AI copywriting","Drag & drop builder","Open rate tracking"]},"SMS Campaigns":{desc:"Reach your audience instantly with SMS blasts and automated sequences.",features:["One-tap SMS blasts","Automated drip sequences","Delivery tracking"]},Affiliates:{desc:"Recruit promoters to share your event with unique tracking codes and commission tracking.",features:["Per-affiliate promo codes","Invite attribution","Performance tracking"]}}}}]);

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.