1import{r as j}from"./rolldown-runtime.Bm4qlN-y.js";import{Bt as k,Ht as i,Nt as m,Ut as T,Z as D,an as C,at as U,ct as h,et as A,ft as M,ht as B,kt as f,lt as p,nt as P,ot as t,pn as w,pt as a,un as L}from"./tiptap.DLKU8C5B.js";import{a as N,c as F}from"./vendor.nOZoUbXC.js";import{S as I,T as R}from"./enum.D0ZEvZZE.js";import{t as $}from"./_plugin-vue_export-helper.C8zxEQOt.js";import{T as Y,i as W,j as q,r as z,s as H}from"./dates.BqYKTlIS.js";import{t as Z}from"./LoadingSpinner.A-Td-vq4.js";import{t as G}from"./CheckBox.BOrZjp0A.js";import{t as J}from"./SelectBoxSimple.3ztuDfrt.js";import{t as K}from"./time.C_UbL-3L.js";import{t as O}from"./DatePicker.C2eapDmt.js";import{t as Q}from"./useAdminEventEditor.CGTsSRjy.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"61fde56f08b5451b2e5d17e0bd2c31263d84c2c6"};var e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="87c02609-308f-4d1e-b67c-27cd7f0636d3",s._sentryDebugIdIdentifier="sentry-dbid-87c02609-308f-4d1e-b67c-27cd7f0636d3")}catch{}})();var V=j(q(),1),X=B({components:{CheckBox:G,DatePicker:O,LoadingSpinner:Z,SelectBoxSimple:J},props:{eid:{default:"",type:String}},setup(s){const e=C(s,"eid"),{push:u}=N(),r=Q(),{errors:y,form:n,saving:x,vld:o,loading:v}=F(r);k(e,async()=>await r.setMode(I.EditEvent,null,e.value),{immediate:!0});const b=K();async function g(){const d=await r.submit();d&&await u({name:"admin-event-features",params:{eid:d}})}const l=U(()=>{if(!n.value.promo?.expiresTime||!n.value.promo?.expiresAtDate)return"";const d=n.value.promo.expiresTime||"23:59",c=(0,V.default)(n.value.promo.expiresAtDate).toDate(),S=Y(c),E=z([S,d].join("T"));return`${(0,V.default)(E).format("MMM D YYYY")} ${W(E)}`});return{es:r,EventLimits:R,errors:y,form:n,loading:v,saving:x,vld:o,formatTime:H,optionsTime:b,submit:g,localExpireTime:l}}}),_={key:0},ee={key:1,class:"p-4 min-h-xl sm:p-6 lg:px-8 xl:px-12 sm:min-h-lg"},te={class:"flex flex-col mt-2 space-y-6"},se={class:"flex items-center justify-start"},le={class:"flex items-center justify-start"},ae={class:"flex items-center justify-start"},oe={class:"flex items-center justify-start"},ie={class:"flex items-center justify-start"},ne={class:"flex items-center justify-start"},re={class:"flex items-center justify-start"},me={class:"flex items-center justify-start"},de={class:"flex items-center justify-start"},fe={class:"flex items-center justify-start"},pe={class:"flex items-center justify-start"},ue={class:"flex items-center justify-start"},xe={class:"mt-2"},ve=["maxlength"],be={class:"flex flex-col"},ge={class:"relative flex flex-row items-center mt-2 space-x-2"},ye={class:"pl-10 text-sm text-slate-600 text-bold"},Ee={class:"justify-between p-4 sm:p-6 lg:px-8 xl:px-12 bg-slate-50 sm:flex sm:flex-row-reverse rounded-b-md"};function we(s,e,u,r,y,n){const x=m("LoadingSpinner"),o=m("CheckBox"),v=m("DatePicker"),b=m("SelectBoxSimple"),g=m("RouterLink");return f(),p("div",null,[s.loading?(f(),p("div",_,[a(x,{class:"w-10 h-10 mx-auto my-10 text-white animate-spin"})])):(f(),p("div",ee,[t("form",{class:"contents",onSubmit:e[15]||(e[15]=A((...l)=>s.submit&&s.submit(...l),["prevent"]))},[t("div",te,[t("div",se,[a(o,{modelValue:s.form.flags.isFeatured,"onUpdate:modelValue":e[0]||(e[0]=l=>s.form.flags.isFeatured=l)},{default:i(()=>[...e[17]||(e[17]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Featured event "),t("span",{class:"ml-4 text-xs text-slate-400"}," Featured in DC ")],-1)])]),_:1},8,["modelValue"])]),t("div",le,[a(o,{modelValue:s.form.flags.isEnabled,"onUpdate:modelValue":e[1]||(e[1]=l=>s.form.flags.isEnabled=l)},{default:i(()=>[...e[18]||(e[18]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Event Page is Live in DC "),t("span",{class:"ml-4 text-xs text-slate-400"}," Event is listed in the DC events section ")],-1)])]),_:1},8,["modelValue"])]),t("div",ae,[a(o,{modelValue:s.form.flags.ticketsEnabled,"onUpdate:modelValue":e[2]||(e[2]=l=>s.form.flags.ticketsEnabled=l)},{default:i(()=>[...e[19]||(e[19]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Ticket Sales Enabled "),t("span",{class:"ml-4 text-xs text-slate-400"}," People can buy tickets! ")],-1)])]),_:1},8,["modelValue"])]),t("div",oe,[a(o,{modelValue:s.form.flags.upsellEnabled,"onUpdate:modelValue":e[3]||(e[3]=l=>s.form.flags.upsellEnabled=l)},{default:i(()=>[...e[20]||(e[20]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Addon upsell enabled "),t("span",{class:"ml-4 text-xs text-slate-400"}," Shows party passes and other add-ons on the ticket page ")],-1)])]),_:1},8,["modelValue"])]),t("div",ie,[a(o,{modelValue:s.form.flags.waitlistEnabled,"onUpdate:modelValue":e[4]||(e[4]=l=>s.form.flags.waitlistEnabled=l)},{default:i(()=>[...e[21]||(e[21]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Waitlist Enabled "),t("span",{class:"ml-4 text-xs text-slate-400"}," Waitlist active only if tickets are sold out ")],-1)])]),_:1},8,["modelValue"])]),t("div",ne,[a(o,{modelValue:s.form.flags.photosEnabled,"onUpdate:modelValue":e[5]||(e[5]=l=>s.form.flags.photosEnabled=l)},{default:i(()=>[...e[22]||(e[22]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Photos Enabled "),t("span",{class:"ml-4 text-xs text-slate-400"}," Members can upload and browse event photos ")],-1)])]),_:1},8,["modelValue"])]),t("div",re,[a(o,{modelValue:s.form.flags.chatEnabled,"onUpdate:modelValue":e[6]||(e[6]=l=>s.form.flags.chatEnabled=l)},{default:i(()=>[...e[23]||(e[23]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Chat Enabled "),t("span",{class:"ml-4 text-xs text-slate-400"}," Event chat tab visible to members ")],-1)])]),_:1},8,["modelValue"])]),t("div",me,[a(o,{modelValue:s.form.flags.meetupsEnabled,"onUpdate:modelValue":e[7]||
1(e[7]=l=>s.form.flags.meetupsEnabled=l)},{default:i(()=>[...e[24]||(e[24]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Meetups Enabled "),t("span",{class:"ml-4 text-xs text-slate-400"}," Members can propose and browse meetups ")],-1)])]),_:1},8,["modelValue"])]),t("div",de,[a(o,{modelValue:s.form.flags.sessionsEnabled,"onUpdate:modelValue":e[8]||(e[8]=l=>s.form.flags.sessionsEnabled=l)},{default:i(()=>[...e[25]||(e[25]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Sessions Enabled "),t("span",{class:"ml-4 text-xs text-slate-400"}," Sessions catalog visible to members (browse talks, workshops, discussions) ")],-1)])]),_:1},8,["modelValue"])]),t("div",fe,[a(o,{modelValue:s.form.flags.scheduleEnabled,"onUpdate:modelValue":e[9]||(e[9]=l=>s.form.flags.scheduleEnabled=l)},{default:i(()=>[...e[26]||(e[26]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Schedule Enabled "),t("span",{class:"ml-4 text-xs text-slate-400"}," Full event schedule with timetable, RSVP, and My Agenda ")],-1)])]),_:1},8,["modelValue"])]),t("div",pe,[a(o,{modelValue:s.form.flags.sponsorsEnabled,"onUpdate:modelValue":e[10]||(e[10]=l=>s.form.flags.sponsorsEnabled=l)},{default:i(()=>[...e[27]||(e[27]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Sponsors Enabled "),t("span",{class:"ml-4 text-xs text-slate-400"}," Sponsors tab visible to members ")],-1)])]),_:1},8,["modelValue"])]),t("div",ue,[a(o,{modelValue:s.form.promo.enabled,"onUpdate:modelValue":e[11]||(e[11]=l=>s.form.promo.enabled=l)},{default:i(()=>[...e[28]||(e[28]=[t("span",{class:"inline-flex items-center justify-start text-sm text-left"},[t("span",{class:"whitespace-pre"}," Promo Countdown Enabled "),t("span",{class:"ml-4 text-xs text-slate-400"}," If enabled shows a countdown with text ")],-1)])]),_:1},8,["modelValue"])]),s.form.promo.enabled?(f(),p(P,{key:0},[t("div",null,[e[29]||(e[29]=t("label",{for:"promoName",class:"block text-sm font-medium leading-6 text-left text-slate-900"}," Promo Name ",-1)),t("div",xe,[T(t("input",{"onUpdate:modelValue":e[12]||(e[12]=l=>s.form.promo.name=l),type:"text",maxlength:s.EventLimits.NameMaxLen,name:"promoName",class:L(["block w-full px-4 py-4 border-0 rounded-xl text-slate-900 ring-2 ring-inset placeholder:text-slate-400 focus:ring-2 focus:ring-inset focus:ring-dc-mint-400 sm:text-sm sm:leading-6",s.vld.promo?.name?.$invalid?"ring-dc-orange-600":"ring-slate-300"]),placeholder:"123456"},null,10,ve),[[D,s.form.promo.name]])])]),t("div",be,[e[30]||(e[30]=t("label",{for:"expiresAt",class:"mb-2 text-sm font-semibold text-left text-slate-900"}," Promo Expire Date in UTC ",-1)),a(v,{modelValue:s.form.promo.expiresAtDate,"onUpdate:modelValue":e[13]||(e[13]=l=>s.form.promo.expiresAtDate=l),invalid:s.vld.expiresAtDate?.$invalid},null,8,["modelValue","invalid"])]),t("div",null,[e[31]||(e[31]=t("label",{for:"expireTime",class:"block text-sm font-medium leading-6 text-left text-slate-900"}," Promo Expire Time ",-1)),t("div",ge,[a(b,{modelValue:s.form.promo.expiresTime,"onUpdate:modelValue":e[14]||(e[14]=l=>s.form.promo.expiresTime=l),options:s.optionsTime,"format-label":s.formatTime,placeholder:"23:59","allow-empty":"",large:"",class:"grow"},null,8,["modelValue","options","format-label"]),t("span",ye," In your local time: "+w(s.localExpireTime),1)])])],64)):h("",!0)])],32)])),t("div",Ee,[t("button",{type:"button",class:"inline-flex justify-center w-full px-4 py-2 text-sm font-semibold text-white bg-dc-orange-600 rounded-xl hover:bg-dc-orange-500 sm:ml-3 sm:w-auto",onClick:e[16]||(e[16]=(...l)=>s.submit&&s.submit(...l))},w(s.es.saving?"Saving ...":"Save"),1),a(g,{to:{name:"admin-events"},class:"inline-flex justify-center w-full px-4 py-2 mt-3 text-sm font-semibold bg-white rounded-xl text-slate-900 ring-1 ring-inset ring-slate-300 hover:bg-slate-50 sm:mt-0 sm:w-auto"},{default:i(()=>[...e[32]||(e[32]=[M(" Cancel ",-1)])]),_:1})])])}var Be=$(X,[["render",we]]);export{Be as default}; 2 3//# sourceMappingURL=AdminEventFeaturesView.iq_eJl5b.js.map
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.