1import{a1 as xt,a2 as Ct,bS as At,D as U,b4 as ee,bT as It,bU as Dt,bV as Mt,aa as je,bW as zt,bX as Et,ac as pe,c as z,bY as ie,b7 as re,bZ as Ft,ay as Y,b_ as Tt,ag as Ot,bE as ae,f as i,U as _,bb as Pt,b$ as Lt,c0 as Rt,c1 as Ut,c2 as Nt,c3 as He,c4 as $t,c5 as We,c6 as Bt,i as F,A as Ke,b8 as _t,J as le,c7 as jt,r as Ht,s as Ge,c8 as Wt,aF as et,c9 as Kt,ca as Gt,aL as Yt,aJ as ye,cb as qt,k as tt,n as at,a_ as Jt,l as I,d as lt,cc as Ce,u as Zt,W as Qt,bA as nt,bJ as se,M as Xt,Y as Ie,E as ue,F as ot,az as ea,b as j,w as u,g as De,h as Ve,e as t,cd as Me,bN as ze,aA as Ae,m as Q,I as Ye,bQ as Ee,ce as qe,z as ge,j as te,y as de,o as E,bz as ta,aM as aa,cf as la,aD as na,cg as Je,p as oa,ch as ia,v as ra,aB as sa,bD as ua,bF as Z,G as da,bw as ca,bP as va,ci as Ze,K as ma,cj as fa,ck as pa,bx as ga,cl as Qe,bH as ba,aK as ya,bI as Va,cm as Xe,_ as ha}from"./main-DltaC54J.js";import{d as Sa}from"./districts-BODfRNJX.js";import{P as ka}from"./PageTitle-CgJpuRNj.js";import{E as wa,P as xa}from"./Preview-CboLcTLo.js";import{u as Ca,a as Aa,g as Ia}from"./common-CYIndZKm.js";import{_ as be}from"./Segment.vue_vue_type_script_setup_true_lang-DHxBmSva.js";import{_ as Da,a as Ma}from"./EventDateTime.vue_vue_type_script_setup_true_lang-CG3MmSlI.js";import{_ as za}from"./EventCardLocale.vue_vue_type_script_setup_true_lang-DO540fIE.js";import{u as Ea,m as Fa,h as Ta}from"./filter-4PtNcuVo.js";import{V as Oa}from"./VAutocomplete-CKQNyz47.js";import{T as Pa}from"./index-BtAJUtmO.js";import"./modulepreload-polyfill-B5Qt9EMX.js";import"./EventCard-DIHqMvHS.js";import"./SubSegment.vue_vue_type_script_setup_true_lang-Dx_MsBMB.js";import"./EventVerificationTooltip.vue_vue_type_script_setup_true_lang-D9a4rLzV.js";import"./TextShowMore.vue_vue_type_script_setup_true_lang-wK9jzCD6.js";import"./index-FKcpkU2c.js";import"./index-DBRXqsHm.js";import"./VSkeletonLoader-ByCRoyNR.js";const La=Ct({alwaysFilter:Boolean,autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Fa({filterKeys:["title"]}),...Rt({hideNoData:!0,returnObject:!0}),...Lt(Ut({modelValue:null,role:"combobox"}),["validationValue","dirty"])},"VCombobox"),Ra=xt()({name:"VCombobox",props:La(),emits:{"update:focused":l=>!0,"update:modelValue":l=>!0,"update:search":l=>!0,"update:menu":l=>!0},setup(l,N){var Oe,Pe;let{emit:a,slots:r}=N;const{t:O}=At(),h=U(),C=ee(!1),D=ee(!0),T=ee(!1),L=U(),$=U(),g=ee(-1);let c=!1;const{items:f,transformIn:S,transformOut:H}=It(l),{textColorClasses:P,textColorStyles:ce}=Dt(()=>{var e;return(e=h.value)==null?void 0:e.color}),{InputIcon:he}=Mt(l),v=je(l,"modelValue",[],e=>S(zt(e)),e=>{var d;const s=H(e);return l.multiple?s:(d=s[0])!=null?d:null}),W=Et(l),ve=pe(()=>l.closableChips&&!W.isReadonly.value&&!W.isDisabled.value),w=z(()=>!!(l.chips||r.chip)),o=z(()=>w.value||!!r.selection),y=ee(!l.multiple&&!o.value&&(Pe=(Oe=v.value[0])==null?void 0:Oe.title)!=null?Pe:""),x=ee(null),n=z({get:()=>y.value,set:async e=>{var s;if(y.value=e!=null?e:"",e===null||e===""&&!l.multiple&&!o.value?v.value=[]:!l.multiple&&!o.value&&(v.value=[ie(l,e)],re(()=>{var d;return(d=$.value)==null?void 0:d.scrollToIndex(0)})),e&&l.multiple&&((s=l.delimiters)!=null&&s.length)){const d=Fe(e);d.length>1&&(Te(d),y.value="")}e||(g.value=-1),D.value=!e}}),K=z(()=>typeof l.counterValue=="function"?l.counterValue(v.value):typeof l.counterValue=="number"?l.counterValue:l.multiple?v.value.length:n.value.length),{filteredItems:G,getMatches:Se}=Ea(l,f,()=>{var e;return(e=x.value)!=null?e:l.alwaysFilter||!D.value?n.value:""}),B=z(()=>l.hideSelected&&x.value===null?G.value.filter(e=>!v.value.some(s=>s.value===e.value)):G.value),me=z(()=>l.hideNoData&&!B.value.length||W.isReadonly.value||W.isDisabled.value),ke=je(l,"menu"),k=z({get:()=>ke.value,set:e=>{var s;ke.value&&!e&&((s=L.value)!=null&&s.ΨopenChildren.size)||e&&me.value||(ke.value=e)}}),{menuId:it,ariaExpanded:rt,ariaControls:st}=Ft(l,k);Y(y,e=>{c?re(()=>c=!1):C.value&&!k.value&&(k.value=!0),a("update:search",e)}),Y(v,e=>{var s,d;!l.multiple&&!o.value&&(y.value=(d=(s=e[0])==null?void 0:s.title)!=null?d:"")});const ut=z(()=>v.value.map(e=>e.value)),ne=z(()=>B.value.find(e=>e.type==="item"&&!e.props.disabled)),we=z(()=>{var s;return(l.autoSelectFirst===!0||l.autoSelectFirst==="exact"&&n.value===((s=ne.value)==null?void 0:s.title))&&B.value.length>0&&!D.value&&!T.value}),xe=U(),dt=Tt(xe,h);function ct(e){c=!0,re(()=>c=!1),l.openOnClear&&(k.value=!0)}function vt(){me.value||(k.value=!0)}function mt(e){me.value||(C.value&&(e.preventDefault(),e.stopPropagation()),k.value=!k.value)}function ft(e){var s;(We(e)||e.key==="Backspace")&&((s=h.value)==null||s.focus())}function pt(e){var p,M,b,A;if($t(e)||W.isReadonly.value)return;const s=(p=h.value)==null?void 0:p.selectionStart,d=v.value.length;
1if(["Enter","ArrowDown","ArrowUp"].includes(e.key)&&e.preventDefault(),["Enter","ArrowDown"].includes(e.key)&&(k.value=!0),["Escape"].includes(e.key)&&(k.value=!1),we.value&&["Enter","Tab"].includes(e.key)&&ne.value&&!v.value.some(V=>{let{value:q}=V;return q===ne.value.value})&&R(ne.value),e.key==="ArrowDown"&&we.value&&((M=xe.value)==null||M.focus("next")),e.key==="Enter"&&n.value&&(R(ie(l,n.value),!0,!0),o.value&&(y.value="")),["Backspace","Delete"].includes(e.key)){if(!l.multiple&&o.value&&v.value.length>0&&!n.value)return R(v.value[0],!1);if(~g.value){e.preventDefault();const V=g.value;R(v.value[g.value],!1),g.value=V>=d-1?d-2:V}else e.key==="Backspace"&&!n.value&&(g.value=d-1);return}if(l.multiple)if(e.key==="ArrowLeft"){if(g.value<0&&s&&s>0)return;const V=g.value>-1?g.value-1:d-1;v.value[V]?g.value=V:(g.value=-1,(b=h.value)==null||b.setSelectionRange(n.value.length,n.value.length))}else if(e.key==="ArrowRight"){if(g.value<0)return;const V=g.value+1;v.value[V]?g.value=V:(g.value=-1,(A=h.value)==null||A.setSelectionRange(0,0))}else~g.value&&We(e)&&(g.value=-1)}function gt(e){var p,M;const s=(M=(p=e==null?void 0:e.clipboardData)==null?void 0:p.getData("Text"))!=null?M:"",d=Fe(s);d.length>1&&l.multiple&&(e.preventDefault(),Te(d))}function bt(){var e;l.eager&&((e=$.value)==null||e.calculateVisibleItems())}function yt(){var e;C.value&&((e=h.value)==null||e.focus()),D.value=!0,x.value=null}function R(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!(!e||e.props.disabled))if(l.multiple){const p=v.value.findIndex(b=>(l.valueComparator||He)(b.value,e.value)),M=s==null?!~p:s;if(~p){const b=M?[...v.value,e]:[...v.value];b.splice(p,1),v.value=b}else M&&(v.value=[...v.value,e]);l.clearOnSelect&&(n.value="")}else{const p=s!==!1;v.value=p?[e]:[],(!D.value||l.alwaysFilter)&&y.value&&(x.value=y.value),y.value=p&&!o.value?e.title:"",re(()=>{k.value=d,D.value=!0})}}function Fe(e){var p;const d=["\n",...(p=l.delimiters)!=null?p:[]].map(Nt).join("|");return e.split(new RegExp("(?:".concat(d,")+")))}async function Te(e){for(let s of e)s=s.trim(),s&&(R(ie(l,s)),await re())}function Vt(e){C.value=!0,setTimeout(()=>{T.value=!0})}function ht(e){T.value=!1}return Y(C,(e,s)=>{if(!(e||e===s)&&(g.value=-1,k.value=!1,n.value)){if(l.multiple){R(ie(l,n.value));return}if(!o.value)return;v.value.some(d=>{let{title:p}=d;return p===n.value})?y.value="":R(ie(l,n.value))}}),Y(k,e=>{if(!l.hideSelected&&e&&v.value.length&&D.value){const s=B.value.findIndex(d=>v.value.some(p=>(l.valueComparator||He)(p.value,d.value)));Bt&&window.requestAnimationFrame(()=>{var d;s>=0&&((d=$.value)==null||d.scrollToIndex(s))})}e&&(x.value=null)}),Y(f,(e,s)=>{k.value||C.value&&!s.length&&e.length&&(k.value=!0)}),Ot(()=>{const e=!!(!l.hideNoData||B.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),s=v.value.length>0,d=ae.filterProps(l);return i(ae,_({ref:h},d,{modelValue:n.value,"onUpdate:modelValue":p=>n.value=p,focused:C.value,"onUpdate:focused":p=>C.value=p,validationValue:v.externalValue,counterValue:K.value,dirty:s,class:["v-combobox",{"v-combobox--active-menu":k.value,"v-combobox--chips":!!l.chips,"v-combobox--selection-slot":!!o.value,"v-combobox--selecting-index":g.value>-1,["v-combobox--".concat(l.multiple?"multiple":"single")]:!0},l.class],style:l.style,readonly:W.isReadonly.value,placeholder:s?void 0:l.placeholder,"onClick:clear":ct,"onMousedown:control":vt,onKeydown:pt,onPaste:gt,"aria-expanded":rt.value,"aria-controls":st.value}),{...r,default:p=>{let{id:M}=p;return F(le,null,[i(jt,_({id:it.value,ref:L,modelValue:k.value,"onUpdate:modelValue":b=>k.value=b,activator:"parent",contentClass:"v-combobox__content",disabled:me.value,eager:l.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:bt,onAfterLeave:yt},l.menuProps),{default:()=>{var b;return[e&&i(Ht,_({ref:xe,filterable:!0,selected:ut.value,selectStrategy:l.multiple?"independent":"single-independent",onMousedown:A=>A.preventDefault(),selectable:!!B.value.length,onKeydown:ft,onFocusin:Vt,onFocusout:ht,tabindex:"-1","aria-live":"polite","aria-labelledby":"".concat(M.value,"-label"),"aria-multiselectable":l.multiple,color:(b=l.itemColor)!=null?b:l.color},dt,l.listProps),{default:()=>{var A,V,q,oe;return[(A=r["prepend-item"])==null?void 0:A.call(r),!B.value.length&&!l.hideNoData&&((q=(V=r["no-data"])==null?void 0:V.call(r))!=null?q:i(Ge,{key:"no-data",title:O(l.noDataText)},null)),i(Wt,{ref:$,renderless:!0,items:B.value,itemKey:"value"},{default:J=>{var Re,Ue,Ne,$e,Be,_e;let{item:m,index:X,itemRef:St}=J;const Le=_(m.props,{ref:St,key:m.value,active:we.value&&m===ne.value?!0:void 0,onClick:()=>R(m,null),"aria-posinset":X+1,"aria-setsize":B.value.length});return m.type==="divider"?(Ue=(Re=r.divider)==null?void 0:Re.call(r,{props:m.raw,index:X}))!=null?Ue:i(et,_(m.props,{key:"divider-".concat(X)}),null):m.type==="subheader"?($e=(Ne=r.subheader)==null?void 0:Ne.call(r,{props:m.raw,index:X}))!=null?$e:i(Kt,_(m.props,{key:"subheader-".concat(X)}),null):(_e=(Be=r.item)==null?void 0:Be.call(r,{item:m,index:X,props:Le}))!=null?_e:i(Ge,_(Le,{role:"option"}),{prepend:fe=>{let{isSelected:kt}=fe;return F(le,null,[l.multiple&&!l.hideSelected?i(Gt,{key:m.value,modelValue:kt,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:wt=>wt.preventDefault()},null):void 0,m.props.prependAvatar&&i(Yt,{image:m.props.prependAvatar},null),m.props.prependIcon&&i(Ke,{icon:m.props.prependIcon},null)])},title:()=>{var fe;return D.value?m.title:Ta("v-combobox",m.title,(fe=Se(m))==null?void 0:fe.title)}})}}
1),(oe=r["append-item"])==null?void 0:oe.call(r)]}})]}}),v.value.map((b,A)=>{function V(m){m.stopPropagation(),m.preventDefault(),R(b,!1)}const q=_(ye.filterProps(b.props),{"onClick:close":V,onKeydown(m){m.key!=="Enter"&&m.key!==" "||(m.preventDefault(),m.stopPropagation(),V(m))},onMousedown(m){m.preventDefault(),m.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),oe=w.value?!!r.chip:!!r.selection,J=oe?qt(w.value?r.chip({item:b,index:A,props:q}):r.selection({item:b,index:A})):void 0;if(!(oe&&!J))return F("div",{key:b.value,class:at(["v-combobox__selection",A===g.value&&["v-combobox__selection--selected",P.value]]),style:tt(A===g.value?ce.value:{})},[w.value?r.chip?i(Jt,{key:"chip-defaults",defaults:{VChip:{closable:ve.value,size:"small",text:b.title}}},{default:()=>[J]}):i(ye,_({key:"chip",closable:ve.value,size:"small",text:b.title,disabled:b.props.disabled},q),null):J!=null?J:F("span",{class:"v-combobox__selection-text"},[b.title,l.multiple&&A<v.value.length-1&&F("span",{class:"v-combobox__selection-comma"},[I(",")])])])})])},"append-inner":function(){var A,V;for(var p=arguments.length,M=new Array(p),b=0;b<p;b++)M[b]=arguments[b];return F(le,null,[(A=r["append-inner"])==null?void 0:A.call(r,...M),(!l.hideNoData||l.items.length)&&l.menuIcon?i(Ke,{class:"v-combobox__menu-icon",color:(V=h.value)==null?void 0:V.fieldIconColor,icon:l.menuIcon,onMousedown:mt,onClick:_t,"aria-hidden":!0,tabindex:"-1"},null):void 0,l.appendInnerIcon&&i(he,{key:"append-icon",name:"appendInner",color:M[0].iconColor.value},null)])}})}),Pt({isFocused:C,isPristine:D,menu:k,search:n,selectionIndex:g,filteredItems:G,select:R},h)}}),Ua={key:0,class:"text-body-2 text-justify text-medium-emphasis mb-3"},Na=lt({__name:"SelectOrganizationOfEvent",props:{action:{},modelValue:{},featured:{type:Boolean},alreadyFeatured:{type:Boolean},coOrganizations:{}},setup(l){const N=l,a=Ce(N,"modelValue"),r=Ce(N,"featured"),O=Ce(N,"coOrganizations"),h=U(!1);Y(O,()=>{var c;!h.value&&((c=O.value)!=null&&c.length)&&(h.value=!0)});const{mobile:C}=Zt(),D=Qt(),T=U([]),L=nt({modelValue:{required:se}},N,{$autoDirty:!0});Y([a,T],()=>{if(!a.value||"TimeZone"in a.value)return;const c=T.value.find(f=>{var S;return f.ID===((S=a.value)==null?void 0:S.ID)});c&&(a.value=c)});function $(){D.showOrganizationDialog={action:"create"}}const g=c=>{T.value.push(c)};return Xt(async()=>{Ie.on("Account:New",g);try{const c=await ue.get("/account/organizer");T.value=c.data.map(f=>({...f,Owner:void 0,Organizers:void 0}))}catch(c){ot(c)}}),ea(()=>{Ie.off("Account:New",g)}),(c,f)=>(E(),j(be,{title:"Organization",marginTop:0},{default:u(()=>[i(De,{noGutters:"",class:"flex-wrap mb-6"},{default:u(()=>[i(Ve,{class:at({"pe-3":!t(C)})},{default:u(()=>[i(Me,{modelValue:t(a),"onUpdate:modelValue":f[0]||(f[0]=S=>Ae(a)?a.value=S:null),label:"Organization",items:T.value,itemTitle:"Name",itemValue:"ID",returnObject:"",disabled:c.action==="Update",errorMessages:t(ze)(t(L).modelValue),style:{"min-width":"280px"}},{"append-inner":u(()=>[i(ye,{size:"small",color:"warning"},{default:u(()=>f[4]||(f[4]=[I("Not Updatable")])),_:1})]),_:1},8,["modelValue","items","disabled","errorMessages"])]),_:1},8,["class"]),i(Ve,{class:"flex-grow-0"},{default:u(()=>[i(Q,{size:"large",color:"info",prependIcon:t(Ye).Organization.Create,style:tt({marginTop:t(C)?void 0:"6px"}),onClick:$},{default:u(()=>f[5]||(f[5]=[I(" Add Organization ")])),_:1},8,["prependIcon","style"])]),_:1})]),_:1}),i(Ee,{active:"",label:"Co-Organizations",variant:"outlined",class:"pa-3 mt-3 mb-6"},{default:u(()=>[F("div",null,[i(qe,{group:"",leaveAbsolute:""},{default:u(()=>{var S;return[h.value?(E(),ge("div",Ua,[f[8]||(f[8]=F("p",null," The organizers from the co-organization cannot modify this event (e.g., edit event description or adding tickets). This option is just for showing the names of the co-organizations on the event page. ",-1)),F("p",null,[f[6]||(f[6]=I(" If you want the organizers from the co-organization to modify the event, you can add them as organizers in ")),F("em",null,de(((S=t(a))==null?void 0:S.Name)||"your organization"),1),f[7]||(f[7]=I(". You can also create a new organization for this collaboration only (e.g., âTeam X ft. Team Yâ) and add the organizers from both organizations. "))])])):te("",!0),h.value?(E(),j(Me,{key:2,modelValue:t(O),"onUpdate:modelValue":f[2]||(f[2]=H=>Ae(O)?O.value=H:null),multiple:"",label:"Select Co-Organizations",items:T.value.filter(({ID:H})=>{var P;return H!==((P=t(a))==null?void 0:P.ID)}),itemTitle:"Name",itemValue:"ID",returnObject:"",errorMessages:t(ze)(t(L).modelValue),class:"flex-grow-1 mt-6"},null,8,["modelValue","items","errorMessages"])):(E(),j(Q,{key:1,color:"info",prepe
1ndIcon:t(Ye).Organization.Create,class:"my-3",onClick:f[1]||(f[1]=H=>h.value=!0)},{default:u(()=>f[9]||(f[9]=[I(" Add Co-Organization ")])),_:1},8,["prependIcon"]))]}),_:1})])]),_:1}),i(qe,null,{default:u(()=>[i(Da,{modelValue:t(r),"onUpdate:modelValue":f[3]||(f[3]=S=>Ae(r)?r.value=S:null),organization:c.modelValue,alreadyFeatured:c.alreadyFeatured},null,8,["modelValue","organization","alreadyFeatured"])]),_:1})]),_:1}))}}),$a=["innerHTML"],Ba=lt({__name:"MutateEvent",setup(l){const N={Name:"",Account:void 0,CoOrganizations:[],Type:"",Series:"",URL:void 0,Privacy:"",StartAt:"",EndAt:"",Online:!1,Location:{District:"",Address:""},Venue:"",MapLink:"",Featured:!1},{state:a,serverError:r,resetDirty:O}=ta(aa(N),!0),h=["public","in-site","private"],C=U(!0),D=U(!1),T=Ca(pe(()=>a.URL)),L=U(),$=U(!1),g=z(()=>{var w,o,y,x;return{...L.value,...a,Name:a.Name||"Name of The Event",Venue:a.Venue,StartAt:(w=a.StartAt)!=null&&w.startsWith("T")||(o=a.StartAt)!=null&&o.endsWith("T")?void 0:a.StartAt,EndAt:(y=a.EndAt)!=null&&y.startsWith("T")||(x=a.EndAt)!=null&&x.endsWith("T")?void 0:a.EndAt}}),c=nt({Name:{required:se},Type:{required:se},URL:Aa,Privacy:{required:se},Venue:{required:se},MapLink:{url:ia}},a,{$autoDirty:!0}),f=la(pe(a,"Privacy"),pe(c.value.privacy,"$errors")),S=na(),H=ya(),P=z(()=>S.params.action==="create"?"Create":"Update"),ce=z(()=>{if(!a.Series)return"If this event belongs to a series of events, add the name of the series here";const w=a.Series.split(/\s+/).map(Je).join("+");return"".concat(location.origin,"/feed?Series=").concat(w)});function he(){ga(ce.value),Ie.emit("Notification","Copied Link to Event Series")}Y(()=>S.params.eventId,async w=>{var o,y,x;if(S.params.action==="edit")try{const n=await ue.get("/event/".concat(w));L.value=n.data,Object.assign(a,n.data),a.Featured=(o=n.data.Featured)!=null?o:!1,a.StartAt=Xe(n.data.StartAt),a.EndAt=Xe(n.data.EndAt),a.Location=(y=n.data.Location)!=null?y:{District:"",Address:""},a.MapLink=(x=a.MapLink)!=null?x:"",D.value=!!n.data.URL,O()}catch(n){ot(n)}finally{C.value=!1}else if(S.params.action==="create"){Object.assign(a,N),O();try{await ue.head("/event/created-by")}catch(n){$.value=!0}finally{C.value=!1}}},{immediate:!0});async function v(){var o,y;if(await c.value.$validate())try{const n={...(o=L.value)!=null?o:{Summary:"",Features:[],Performers:[]},...ba(a),StartAt:Qe(a.StartAt),EndAt:Qe(a.EndAt),AccountID:(y=a.Account)==null?void 0:y.ID};let K;if(P.value==="Create")K=await ue.post("/event",n);else{const Se=window.localStorage.getItem("allowInvalidStartAt");K=await ue.put("/event/".concat(S.params.eventId,"?allowInvalidStartAt=").concat(Se),n)}O();const G=K.data.ID;await H.push("/event/".concat(S.params.action,"/").concat(G,"/metadata"))}catch(x){r.value=Va(x)}}const W=["Attraction","Camp, Trip, or Retreat","Class, Training, or Workshop","Concert","Conference or Convention","Dinner or Gala","Festival or Fair","Fundraiser","Game or Competition","Meeting or Networking Event","Other","Party or Social Gathering","Play or Group Performance","Rally","Seminar or Talk","Singing, Stand-up, Magic, or Performance","Tour","Trade Show, Consumer Show or Expo"],ve=Sa.flatMap(w=>w.districts).map(w=>w.d);return(w,o)=>{const y=ra("RouterLink");return E(),j(oa,{fluid:""},{default:u(()=>[i(ka,{title:"".concat(P.value," Event"),breadcrumb:t(Ia)(P.value)},null,8,["title","breadcrumb"]),i(wa,{class:"mb-6"}),$.value?(E(),j(De,{key:0,justify:"center",class:"mb-6"},{default:u(()=>[i(sa,{maxWidth:"800px",type:"info",color:"success"},{default:u(()=>[o[16]||(o[16]=I(" As it is your first event creation, we recommend you to read the ")),i(y,{to:"/faq#create-event"},{default:u(()=>o[15]||(o[15]=[I("FAQ section")])),_:1}),o[17]||(o[17]=I(" to get a better understanding of how to create, edit and manage your events. "))]),_:1})]),_:1})):te("",!0),i(xa,{maxViewWidth:"1600px"},{left:u(()=>[i(ua,{disabled:C.value},{default:u(()=>{var x;return[i(Na,{modelValue:t(a).Account,"onUpdate:modelValue":o[0]||(o[0]=n=>t(a).Account=n),featured:t(a).Featured,"onUpdate:featured":o[1]||(o[1]=n=>t(a).Featured=n),coOrganizations:t(a).CoOrganizations,"onUpdate:coOrganizations":o[2]||(o[2]=n=>t(a).CoOrganizations=n),action:P.value,alreadyFeatured:!!((x=L.value)!=null&&x.Featured)},null,8,["modelValue","featured","coOrganizations","action","alreadyFeatured"]),i(be,{title:"Basic Information"},{default:u(()=>[i(ae,{modelValue:t(a).Name,"onUpdate:modelValue":o[3]||(o[3]=n=>t(a).Name=n),label:"Name",class:"mt-3",errorMessages:t(Z)(t(c),t(r),"Name")},null,8,["modelValue","errorMessages"]),i(Me,{modelValue:t(a).Type,"onUpdate:modelValue":o[4]||(o[4]=n=>
1t(a).Type=n),label:"Category",items:W,errorMessages:t(Z)(t(c),t(r),"Type"),class:"mt-3"},null,8,["modelValue","errorMessages"]),i(Ra,{modelValue:t(a).Series,"onUpdate:modelValue":o[5]||(o[5]=n=>t(a).Series=n),label:"Event Series",errorMessages:t(ze)([],t(r).Series),persistentHint:"",hint:ce.value,class:"mt-3"},{message:u(({message:n})=>{var K,G;return[t(a).Series&&!((K=t(r).Series)!=null&&K.length)?(E(),ge(le,{key:0},[I(" Series Link: "+de(n),1)],64)):(E(),ge(le,{key:1},[I(de(n),1)],64)),t(a).Series&&!((G=t(r).Series)!=null&&G.length)?da((E(),j(Q,{key:2,icon:t(ca),size:"xs",class:"ms-1",onClick:he},null,8,["icon"])),[[Pa,{text:"Copy Link to Event Series",location:"top",contentClass:"bg-primary"}]]):te("",!0)]}),_:1},8,["modelValue","errorMessages","hint"]),D.value?te("",!0):(E(),j(ae,{key:0,modelValue:t(a).URL,"onUpdate:modelValue":o[6]||(o[6]=n=>t(a).URL=n),label:"Short URL",prefix:"festive.rocks/e/",hint:t(T),persistentHint:"",errorMessages:t(Z)(t(c),t(r),"URL"),class:"url mt-3 mb-6"},{"append-inner":u(()=>[i(ye,{size:"small",color:"warning"},{default:u(()=>o[18]||(o[18]=[I("Not Updatable")])),_:1})]),_:1},8,["modelValue","hint","errorMessages"])),i(va,{hint:t(f),persistentHint:"",errorMessages:t(Z)(t(c),t(r),"Privacy")},{message:u(({message:n})=>[F("div",{innerHTML:n.replace(" not "," <strong class='text-error'>not</strong> ")},null,8,$a)]),default:u(()=>[i(Ee,{label:"Event Privacy",variant:"outlined",active:"",error:!!t(Z)(t(c),t(r),"Privacy").length,class:"pa-3"},{default:u(()=>[F("div",null,[i(Ze,{modelValue:t(a).Privacy,"onUpdate:modelValue":o[7]||(o[7]=n=>t(a).Privacy=n),hideDetails:"auto",variant:"tonal",color:"info",mandatory:""},{default:u(()=>[(E(),ge(le,null,ma(h,n=>i(Q,{key:n,value:n},{default:u(()=>[I(de(t(Je)(n)),1)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])])]),_:1},8,["error"])]),_:1},8,["hint","errorMessages"])]),_:1}),i(be,{title:"Date & Time"},{default:u(()=>[i(Ma,{StartAt:t(a).StartAt,"onUpdate:StartAt":o[8]||(o[8]=n=>t(a).StartAt=n),EndAt:t(a).EndAt,"onUpdate:EndAt":o[9]||(o[9]=n=>t(a).EndAt=n),serverError:t(r)},null,8,["StartAt","EndAt","serverError"])]),_:1}),i(be,{title:"Location"},{default:u(()=>[i(Ee,{label:"Participation Type",variant:"outlined",active:"",class:"pa-3 mb-6"},{default:u(()=>[i(Ze,{modelValue:t(a).Online,"onUpdate:modelValue":o[10]||(o[10]=n=>t(a).Online=n),hideDetails:"",variant:"tonal",color:"info",mandatory:""},{default:u(()=>[i(Q,{value:!1},{default:u(()=>o[19]||(o[19]=[I("In Person")])),_:1}),i(Q,{value:!0},{default:u(()=>o[20]||(o[20]=[I("Online")])),_:1})]),_:1},8,["modelValue"])]),_:1}),i(ae,{modelValue:t(a).Venue,"onUpdate:modelValue":o[11]||(o[11]=n=>t(a).Venue=n),label:t(a).Online?"Medium":"Venue",class:"mt-3",hint:t(a).Online?"Zoom, Google Meet, etc.":void 0,persistentHint:t(a).Online,errorMessages:t(Z)(t(c),t(r),"Venue")},null,8,["modelValue","label","hint","persistentHint","errorMessages"]),t(a).Online?te("",!0):(E(),j(fa,{key:0,modelValue:t(a).Location.Address,"onUpdate:modelValue":o[12]||(o[12]=n=>t(a).Location.Address=n),label:"Address",rows:"2",class:"mt-3"},null,8,["modelValue"])),t(a).Online?te("",!0):(E(),j(Oa,{key:1,modelValue:t(a).Location.District,"onUpdate:modelValue":o[13]||(o[13]=n=>t(a).Location.District=n),items:t(ve),label:"District",class:"mt-3"},null,8,["modelValue","items"])),i(ae,{modelValue:t(a).MapLink,"onUpdate:modelValue":o[14]||(o[14]=n=>t(a).MapLink=n),label:t(a).Online?"Joining Link":"Map Link",class:"mt-3",hint:t(a).Online?"The link to join your online event. If different joining links for different tickets, add them in the ticket creation page.":"The Google Maps link to your venue",errorMessages:t(Z)(t(c),t(r),"MapLink")},null,8,["modelValue","label","hint","errorMessages"])]),_:1}),i(De,{justify:"end"},{default:u(()=>[i(Ve,{cols:"12"},{default:u(()=>[i(pa,{active:Object.values(t(r)).filter(Boolean).length>0||t(c).$error,messages:"Please fix all the errors before continuing",color:"error",class:"mt-3 opacity-100 fs-large"},null,8,["active"])]),_:1}),i(Ve,{cols:"auto"},{default:u(()=>[i(Q,{size:"large",color:"info",prependIcon:"mdi-content-save-".concat(P.value==="Create"?"plus":"edit"),onClick:v},{default:u(()=>[I(" Save and Continue "+de(P.value),1)]),_:1}
1,8,["prependIcon"])]),_:1})]),_:1})]}),_:1},8,["disabled"])]),right:u(()=>[o[21]||(o[21]=F("div",{class:"text-overline text-right"},"Preview",-1)),i(et,{class:"mb-3"}),i(za,{event:g.value,isPreview:""},null,8,["event"])]),_:1})]),_:1})}}}),rl=ha(Ba,[["__scopeId","data-v-a4cdaf15"]]);export{rl 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.