PageSourceSearch

https://assets.airlst.app/85cfa0fa-c6a6-4d6b-b5f7-71170c7ba690/build/assets/Advanced-C3Ak9XSv.js

js airlst.app collected 2026-09-24 13:19:20 UTC 39,373 bytes, 2 lines download raw bytes

1import{b as T,x as h,y as J,z as i,A as r,B as e,D as l,E as c,C as b,G as I,e as K,ae as W,w as B,a8 as X,V as j,W as A,F as n,U as u,S as x,T as L,at as f,R as p,ai as D}from"./index-B7FuHUwY.js";import{am as Y,o as R,p as O,bb as Z,t as ee,b0 as te,ao as $,bc as ne,bd as oe,aK as S,H as F,s as se}from"./vite.helpers-BT1FLFZY.js";import{_ as N}from"./Switch-CvhbKQ1N.js";import{_ as P}from"./EventDatePicker-a4T10qJ2.js";import{_ as le}from"./EventAccessControl-B0cP69Et.js";import{v as H}from"./usePrecognition-90Es3cm6.js";import{_ as M}from"./NumberInput-BxZhaOoM.js";import{_ as ae}from"./RadioGroup-C-r33_lO.js";import"./_plugin-vue_export-helper-1Fh_g1AI.js";import"./index-DjJrO5Fv.js";try{let m=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new m.Error().stack;d&&(m._sentryDebugIds=m._sentryDebugIds||{},m._sentryDebugIds[d]="da3e7639-c7c9-4fc6-b54b-7e34c3b098c5",m._sentryDebugIdIdentifier="sentry-dbid-da3e7639-c7c9-4fc6-b54b-7e34c3b098c5")}catch{}const ie={id:"email-tracking",class:"card p-4 md:p-[30px] mb-[25px] scroll-mt-20"},re=["textContent"],de=["textContent"],ue={class:"border-t border-[#e2e2e2] pt-5 mb-5"},_e={class:"flex items-start justify-between gap-4"},ce={class:"flex-1"},me=["textContent"],pe=["textContent"],xe={class:"relative"},ge={class:"mt-3 flex items-center gap-2 text-[12px]"},be={key:0,class:"flex items-center gap-2 text-[#717784]"},ve={key:1,class:"flex items-center gap-2 text-[#04CAC3]"},fe={class:"border-t border-[#e2e2e2] pt-5 mb-5"},he={class:"flex items-start justify-between gap-4"},ke={class:"flex-1"},we=["textContent"],Ce=["textContent"],ye={class:"relative"},$e={class:"mt-3 flex items-center gap-2 text-[12px]"},Ve={key:0,class:"flex items-center gap-2 text-[#717784]"},qe={key:1,class:"flex items-center gap-2 text-[#04CAC3]"},Ue={class:"border-t border-[#e2e2e2] pt-4 flex gap-2 rounded bg-[#f6f0fd] p-3 text-[12px] text-[#3d4146]"},je=["textContent"],Ae={class:"text-[13px] text-[#3d4146] space-y-4"},Te=["textContent"],Ee=["textContent"],Ge=["href","textContent"],Qe=["textContent"],ze=["textContent"],Be=["textContent"],De=["textContent"],Me={class:"flex justify-end gap-3 pt-4"},Re=["disabled","textContent"],Ie=["disabled","textContent"],Le={class:"text-[13px] text-[#3d4146] space-y-4"},Oe=["textContent"],Se=["textContent"],Fe=["href","textContent"],Ne=["textContent"],Pe=["textContent"],He=["textContent"],Je=["textContent"],Ke=["textContent"],We=["textContent"],Xe={class:"flex justify-end gap-3 pt-4"},Ye=["disabled","textContent"],Ze=["disabled","textContent"],et={__name:"EmailTrackingSettings",props:{event:{type:Object,required:!0},activations:{type:Object,required:!0}},setup(m){const d=m,{t:Q}=Y(),C=T(d.event.email_open_tracking_enabled),V=T(d.event.email_click_tracking_enabled),g=T(null),k=T(!1),t=R("emails.tracking.toggle",{event:d.event}),y=(o,s)=>{if(!s)return"";const _=new Date(s.changed_at).toLocaleString(),v=s.actor_name||s.actor_email||"—";return Q(`email_tracking.banner.${o}`,{date:_,username:v})},z=h(()=>{var o;return y("open",(o=d.activations)==null?void 0:o.open)}),q=h(()=>{var o;return y("click",(o=d.activations)==null?void 0:o.click)}),U=o=>{if(o.preventDefault(),o.value){g.value="open";return}a("open",!1)},E=o=>{if(o.preventDefault(),o.value){g.value="click";return}a("click",!1)},G=o=>{a(o,!0)},w=()=>{g.value=null},a=async(o,s)=>{k.value=!0;try{await Z(t,{setting:o,enabled:s}),o==="open"?C.value=s:V.value=s,g.value=null,K.reload({only:["event","emailTrackingActivations"],preserveScroll:!0,preserveState:!0})}finally{k.value=!1}};return(o,s)=>{const _=J("FontAwesomeIcon");return i(),r("div",ie,[e("h3",{class:"text-[15px] font-extrabold tracking-[0.2px] text-[#3d4146] subpixel-antialiased mb-2",textContent:l(o.$t("email_tracking.section_title"))},null,8,re),e("p",{class:"text-sm text-[#3d4146] mb-5",textContent:l(o.$t("email_tracking.section_description"))},null,8,de),e("div",ue,[e("div",_e,[e("div",ce,[e("label",{class:"block text-[13px] font-semibold text-[#3d4146] mb-1",textContent:l(o.$t("email_tracking.open.label"))},null,8,me),e("p",{class:"text-[12px] text-[#717784]",textContent:l(o.$t("email_tracking.open.description"))}
1,null,8,pe)]),e("div",xe,[c(N,{"model-value":C.value,name:"email_open_tracking",onToggle:U},null,8,["model-value"])])]),e("div",ge,[C.value?(i(),r("span",ve,[s[3]||(s[3]=e("span",{class:"inline-block h-1.5 w-1.5 rounded-full bg-[#04CAC3]"},null,-1)),b(" "+l(z.value),1)])):(i(),r("span",be,[s[2]||(s[2]=e("span",{class:"inline-block h-1.5 w-1.5 rounded-full bg-[#a9aeb8]"},null,-1)),b(" "+l(o.$t("email_tracking.open.disabled_note")),1)]))])]),e("div",fe,[e("div",he,[e("div",ke,[e("label",{class:"block text-[13px] font-semibold text-[#3d4146] mb-1",textContent:l(o.$t("email_tracking.click.label"))},null,8,we),e("p",{class:"text-[12px] text-[#717784]",textContent:l(o.$t("email_tracking.click.description"))},null,8,Ce)]),e("div",ye,[c(N,{"model-value":V.value,name:"email_click_tracking",onToggle:E},null,8,["model-value"])])]),e("div",$e,[V.value?(i(),r("span",qe,[s[5]||(s[5]=e("span",{class:"inline-block h-1.5 w-1.5 rounded-full bg-[#04CAC3]"},null,-1)),b(" "+l(q.value),1)])):(i(),r("span",Ve,[s[4]||(s[4]=e("span",{class:"inline-block h-1.5 w-1.5 rounded-full bg-[#a9aeb8]"},null,-1)),b(" "+l(o.$t("email_tracking.click.disabled_note")),1)]))])]),e("div",Ue,[c(_,{icon:["fal","info-circle"],class:"mt-0.5 text-[#8354d3]"}),e("span",{textContent:l(o.$t("email_tracking.global_note"))},null,8,je)]),c(O,{show:g.value==="open",title:o.$t("email_tracking.modal.open.title"),width:640,onClose:w},{default:I(()=>[e("div",Ae,[e("p",{textContent:l(o.$t("email_tracking.modal.open.intro"))},null,8,Te),e("div",null,[e("p",{class:"font-semibold mb-1",textContent:l(o.$t("email_tracking.modal.legal_notice_label"))},null,8,Ee),e("p",null,[b(l(o.$t("email_tracking.modal.legal_notice.open"))+" ",1),e("a",{href:o.$t("email_tracking.modal.gdpr_link"),target:"_blank",rel:"noopener",class:"text-primary underline",textContent:l(o.$t("email_tracking.modal.more_link"))},null,8,Ge)])]),e("div",null,[e("p",{class:"font-semibold mb-1",textContent:l(o.$t("email_tracking.modal.responsibility_label"))},null,8,Qe),e("p",{textContent:l(o.$t("email_tracking.modal.responsibility"))},null,8,ze)]),e("div",null,[e("p",{class:"font-semibold mb-1",textContent:l(o.$t("email_tracking.modal.documentation_label"))},null,8,Be),e("p",{textContent:l(o.$t("email_tracking.modal.documentation"))},null,8,De)]),e("div",Me,[e("button",{type:"button",class:"h-[35px] px-[15px] text-[13px] text-[#3d4146] rounded-[5px] border border-[#e0e0e0]",disabled:k.value,onClick:w,textContent:l(o.$t("email_tracking.modal.cancel"))},null,8,Re),e("button",{type:"button",class:"h-[35px] px-[15px] text-[13px] text-white rounded-[5px] bg-primary disabled:opacity-50",disabled:k.value,onClick:s[0]||(s[0]=v=>G("open")),textContent:l(o.$t("email_tracking.modal.confirm_open"))},null,8,Ie)])])]),_:1},8,["show","title"]),c(O,{show:g.value==="click",title:o.$t("email_tracking.modal.click.title"),width:640,onClose:w},{default:I(()=>[e("div",Le,[e("p",{textContent:l(o.$t("email_tracking.modal.click.intro"))},null,8,Oe),e("div",null,[e("p",{class:"font-semibold mb-1",textContent:l(o.$t("email_tracking.modal.legal_notice_label"))},null,8,Se),e("p",null,[b(l(o.$t("email_tracking.modal.legal_notice.click"))+" ",1),e("a",{href:o.$t("email_tracking.modal.gdpr_link"),target:"_blank",rel:"noopener",class:"text-primary underline",textContent:l(o.$t("email_tracking.modal.more_link"))},null,8,Fe)])]),e("div",null,[e("p",{class:"font-semibold mb-1",textContent:l(o.$t("email_tracking.modal.how_it_works_label"))},null,8,Ne),e("p",{textContent:l(o.$t("email_tracking.modal.how_it_works.click"))},null,8,Pe)]),e("div",null,[e("p",{class:"font-semibold mb-1",textContent:l(o.$t("email_tracking.modal.responsibility_label"))},null,8,He),e("p",{textContent:l(o.$t("email_tracking.modal.responsibility"))},null,8,Je)]),e("div",null,[e("p",{class:"font-semibold mb-1",textContent:l(o.$t("email_tracking.modal.documentation_label"))},null,8,Ke),e("p",{textContent:l(o.$t("email_tracking.modal.documentation"))},null,8,We)]),e("div",Xe,[e("button",{type:"button",class:"h-[35px] px-[15px] text-[13px] text-[#3d4146] rounded-[5px] border border-[#e0e0e0]",disabled:k.value,onClick:w,textContent:l(o.$t("email_tracking.modal.cancel"))},null,8,Ye),e("button",{type:"button",class:"h-[35px] px-[15px] text-[13px] text-white rounded-[5px] bg-primary disabled:opacity-50",disabled:k.value,onClick:s[1]||(s[1]=v=>G("click")),textContent:l(o.$t("email_tracking.modal.confirm_click"))},null,8,Ze)])])]),_:1},8,["show","title"])])}}},tt={class:"relative"},nt={class:"px-2 md:px-5 pt-8 md:pt-12 pb-20 2xl:px-[8%]"},ot={class:"mx-auto max-w-[626px]"},st={class:"flex justify-center md:justify-start gap-3"},lt=["textContent"],at=["textContent"],it={class:"card p-4 md:p-[30px] mb-[25px]"},rt=["textContent"],dt={for:"registration_type",class:"mb-2 block text-sm font-medium text-[#3d4146]"},ut=["textContent"],_t=["value"],ct={class:"flex items-center gap-2"},mt={class:"relative"},pt={class:"flex items-center gap-2"},xt=["textContent"],gt=["textContent"],bt={key:1},vt=["textContent"],ft=["textContent"],ht={class:"card p-4 md:p-[30px] mb-[25px]"},kt=["textContent"],wt={class:"mb-2"},Ct={class:"flex items-start gap-1 mb-2 text-sm font-medium text-[#3d4146] whitespace-nowrap"},yt={class:"relative mb-1.5 block"},$t={class:"flex items-center gap-2"},Vt={class:"relative"},qt=["textContent"],Ut={class:"relative mb-1.5 block"},jt={class:"flex items-center gap-2"},At={class:"relative"},Tt=["textContent"],Et=["textContent"],Gt={key:0,class:"grid md:grid-cols-2 gap-3 md:gap-6"},Qt=["textContent"],zt=["textContent"],Bt=["textContent"],Dt=["textContent"],Mt={class:"card p-4 md:p-[30px] mb-[25px]"},Rt=["textContent"],It=["textContent"],Lt=["value","disabled"],Ot={class:"flex items-center gap-2"},St={class:"relative"},Ft=["textContent"],Nt=["textContent"],Pt=["textContent"],Ht={key:2,class:"mt-4 p-3 bg-blue-50 border border-blue-200 rounded text-sm text-blue-800"},Jt={class:"flex gap-2"},Kt=["textContent"],Wt={class:"card p-4 md:p-[30px] mb-[25px]"},Xt=["textContent"],Yt={class:"mb-2"},Zt={class:"flex items-start gap-1 mb-2 text-sm font-medium text-[#3d4146] whitespace-nowrap"},en={class:"relative mb-1.5 block"},tn={class:"flex items-center gap-2"},nn={class:"relative"},on=["textContent"],sn={class:"relative mb-1.5 block"},ln={class:"flex items-center gap-2"},an={class:"relative"},rn=["textContent"],dn=["textContent"],un={key:0,class:"mb-4"}
1,_n=["textContent"],cn=["textContent"],mn={key:1,class:"relative mb-4 flex items-center gap-2"},pn=["textContent"],xn={key:2,class:"my-4"},gn=["textContent"],bn=["value","onClick"],vn={class:"flex items-center gap-2"},fn={class:"relative"},hn=["textContent"],kn=["textContent"],wn={key:0,class:"card p-4 md:p-[30px] mb-[25px]"},Cn=["textContent"],yn={class:"mb-2"},$n={class:"flex items-start gap-1 mb-2 text-sm font-medium text-[#3d4146] whitespace-nowrap"},Vn=["disabled"],qn={class:"flex items-center gap-2"},Un={class:"relative"},jn=["textContent"],An={class:"relative mb-1.5 block"},Tn={class:"flex items-center gap-2"},En={class:"relative"},Gn=["textContent"],Qn=["textContent"],zn={key:0,class:"mb-4"},Bn=["textContent"],Dn=["textContent"],Mn={key:1,class:"relative mb-4 flex items-center gap-2"},Rn=["textContent"],In={key:1,class:"card p-4 md:p-[30px] mb-[25px]"},Ln=["textContent"],On={class:"mb-2"},Sn={class:"flex items-start gap-1 mb-2 text-sm font-medium text-[#3d4146] whitespace-nowrap"},Fn={key:0,class:"mb-4"},Nn=["textContent"],Pn=["textContent"],Hn={key:1,class:"relative mb-4 flex items-center gap-2"},Jn=["textContent"],Kn={class:"card p-4 md:p-[30px] mb-[25px]"},Wn=["textContent"],Xn={class:"flex items-start gap-1 mb-2 text-sm font-medium text-[#3d4146] whitespace-nowrap"},Yn={class:"mb-4"},Zn=["textContent"],eo=["textContent"],to=["textContent"],no={class:"w-full max-w-[377px] rounded border border-[#e0e0e0] text-[13px] text-[#3d4146] outline-none"},oo={class:"max-h-[150px] cursor-pointer overflow-y-auto p-[7.5px_15px]"},so=["disabled","checked","onClick"],lo=["textContent"],ao=["textContent"],io={key:0},ro=["textContent"],uo={key:2,class:"card p-4 md:p-[30px] mb-[25px]"},_o=["textContent"],co=["textContent"],mo=["for","textContent"],po=["textContent"],xo=["textContent"],go={class:"card p-4 md:p-[30px] mb-[25px]"},bo={key:3,class:"card p-4 md:p-[30px]"},vo={class:"flex items-center justify-end gap-5"},fo=["textContent"],ho=["disabled","textContent"],To={__name:"Advanced",props:{event:{type:Object,required:!0},locales:{type:Array,required:!0},users:{type:Array,required:!0},roles:{type:Array,required:!0},accessControlUsers:{type:Object,required:!0},emailTrackingActivations:{type:Object,required:!0},guestGroupQuotasEnabled:{type:Boolean,default:!1},guestGroupQuotaEmailTemplates:{type:Array,default:()=>[]}},setup(m){var w;const d=m,Q=[{key:"guest_group_quota_request_sent_email_template",label:"event.settings.guestGroupQuotas.request_sent_label"},{key:"guest_group_quota_request_confirmed_email_template",label:"event.settings.guestGroupQuotas.request_confirmed_label"},{key:"guest_group_quota_request_denied_email_template",label:"event.settings.guestGroupQuotas.request_denied_label"}],C=R("events.settings.advanced.update",{event:d.event}),V=(a,o)=>{t.users=a,t.private=o},g=T(""),k=h(()=>g.value!==""?d.locales.filter(a=>a.label.toLowerCase().includes(g.value.toLowerCase())):d.locales),t=W({registration_type:d.event.settings.registration_type,registration_password:d.event.settings.registration_password,default_booking_status:d.event.settings.default_booking_status,checkout_mode:d.event.settings.checkout_mode??"registration",allow_companions:d.event.settings.allow_companions,max_companions_per_booking:d.event.settings.max_companions_per_booking,allow_guest_managers:d.event.settings.allow_guest_managers??!1,max_guests_per_guest_manager:d.event.settings.max_guests_per_guest_manager,allow_recommendations:d.event.settings.allow_recommendations,max_recommendations_per_guest:d.event.settings.max_recommendations_per_guest,recommendation_guest_status:d.event.settings.recommendation_guest_status,email_recipient_setting:d.event.settings.email_recipient_setting,limited_registration_period:d.event.settings.limited_registration_period,registration_starts_at:d.event.settings.registration_starts_at,registration_ends_at:d.event.settings.registration_ends_at,default_locale:d.event.default_locale.code,additional_locales:(w=d.event.additional_locales)==null?void 0:w.map(({code:a})=>a),private:d.event.private,users:d.accessControlUsers,allow_unlimited_companions:d.event.settings.max_companions_per_booking===null,allow_unlimited_recommendations:d.event.settings.max_recommendations_per_guest===null,allow_unlimited_guests_per_guest_manager:d.event.settings.max_guests_per_guest_manager===null,guest_group_quota_request_sent_email_template:d.event.settings.guest_group_quota_request_sent_email_template??null,guest_group_quota_request_confirmed_email_template:d.event.settings.guest_group_quota_request_confirmed_email_template??null,guest_group_quota_request_denied_email_template:d.event.settings.guest_group_quota_request_denied_email_template??null}),y=h(()=>t.allow_companions&&!t.allow_unlimited_companions&&!t.max_companions_per_booking&&t.max_companions_per_booking!==0),z=h(()=>t.allow_guest_managers&&!t.allow_unlimited_guests_per_guest_manager&&!t.max_guests_per_guest_manager&&t.max_guests_per_guest_manager!==0);B(()=>t.checkout_mode,a=>{a==="ticket_purchase"&&(t.allow_guest_managers=!0)}),B(()=>t.registration_type,a=>{a!=="open"&&t.checkout_mode==="ticket_purchase"&&(t.checkout_mode="registration")});const q=h(()=>t.registration_type==="open"),U=h(()=>t.checkout_mode==="ticket_purchase"),E=h(()=>t.allow_recommendations&&!t.allow_unlimited_recommendations&&!t.max_recommendations_per_guest&&t.max_recommendations_per_guest!==0),G=h(()=>d.event.default_locale.code!==t.default_locale||t.additional_locales.length>d.event.additional_locales.length?!0:t.additional_locales.length===d.event.additional_locales.length?t.additional_locales.join()!==d.event.additional_locales.map(({code:a})=>a).join():!1);return B(()=>t.limited_registration_period,a=>{a||(t.registration_starts_at=null,t.registration_ends_at=null)}),(a,o)=>(i(),r("div",tt,[c(ee,{title:a.$t("common.event_settings")},null,8,["title"]),e("div",nt,[e("form",{novalidate:"",onSubmit:o[33]||(o[33]=X(s=>n(t).put(n(R)("events.settings.advanced.update",{event:m.event})),["prevent"]))},[e("div",ot,[e("div",st,[e("h1",{class:"mb-3 text-lg md:text-[24px] font-extrabold text-[#3d4146]",textContent:l(a.$t("common.event_settings"))},null,8,lt),e("span",{class:"hidden md:inline-block h-5 rounded-[5px] bg-white p-[2px_5px] text-[11px] font-bold text-black",textContent:l(m.event.name)},null,8,at)]),e("div",it,[e("h3",{class:"text-[15px] font-extrabold tracking-[0.2px] text-[#3d4146] subpixel-antialiased mb-2",textContent:l(a.$t("event.registration_type"))},null,8,rt),e("div",null,[e("label",dt,[e("span",{textContent:l(a.$t("event.choose_registration_form"))},null,8,ut)]),(i(!0),r(j,null,A(n(te)(),({label:s,value:_})=>(i(),r("label",{key:_,class:"relative mb-1.5 block"},[x(e("input",{"onUpdate:modelValue":o[0]||(o[0]=v=>n(t).registration_type=v),type:"radio",name:"registration_type",value:_,class:"absolute top-0 left-0 h-full w-full opacity-0"},null,8,_t),[[f,n(t).registration_type]]),e("div",ct,[e("div",mt,[e("div",{class:p([n(t).registration_type===_?"border-4 border-primary":"border border-[#00000040]","block h-3.5 w-3.5 items-center justify-center rounded-full bg-white"])},null,2)]),e("div",pt,[e("span",{class:"text-sm font-normal text-[#3d4146] whitespace-nowrap",textContent:l(s)}
1,null,8,xt),c($,{description:a.$t(`event.registration_type.${_}.tooltip`),"icon-color":"#8354d3",width:"w-[250px]"},null,8,["description"])])])]))),128)),n(t).errors.registration_type?(i(),r("small",{key:0,class:"text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.registration_type)},null,8,gt)):u("",!0),n(t).registration_type==="password"?(i(),r("div",bt,[e("label",{for:"registration_password",class:"mb-1 block text-[13px] font-medium",textContent:l(`${a.$t("event.registration_password")} *`)},null,8,vt),x(e("input",{id:"registration_password","onUpdate:modelValue":o[1]||(o[1]=s=>n(t).registration_password=s),type:"text",class:"w-full max-w-[270px] rounded border border-[#e0e0e0] p-[7.5px_15px] text-[13px] text-[#3d4146]",onBlur:o[2]||(o[2]=()=>n(H)("registration_password",n(t),n(C),"put"))},null,544),[[L,n(t).registration_password]]),n(t).errors.registration_password?(i(),r("small",{key:0,class:"text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.registration_password)},null,8,ft)):u("",!0)])):u("",!0)])]),e("div",ht,[e("h3",{class:"text-[15px] font-extrabold tracking-[0.2px] text-[#3d4146] subpixel-antialiased mb-2",textContent:l(a.$t("event.registration_deadline"))},null,8,kt),e("div",wt,[e("label",Ct,[b(l(a.$t("event.settings.restrict_registration_period"))+" ",1),c($,{description:a.$t("event.settings.registration_period.tooltip"),"icon-color":"#8354d3"},null,8,["description"])]),e("label",yt,[x(e("input",{"onUpdate:modelValue":o[3]||(o[3]=s=>n(t).limited_registration_period=s),type:"radio",name:"registration_perion",value:!1,class:"absolute top-0 left-0 h-full w-full opacity-0"},null,512),[[f,n(t).limited_registration_period]]),e("div",$t,[e("div",Vt,[e("div",{class:p([n(t).limited_registration_period===!1?"border-4 border-primary":"border border-[#00000040]","block h-3.5 w-3.5 items-center justify-center rounded-full bg-white"])},null,2)]),e("span",{class:"text-sm font-normal text-[#3d4146] whitespace-nowrap",textContent:l(a.$t("common.no"))},null,8,qt)])]),e("label",Ut,[x(e("input",{"onUpdate:modelValue":o[4]||(o[4]=s=>n(t).limited_registration_period=s),type:"radio",name:"registration_perion",value:!0,class:"absolute top-0 left-0 h-full w-full opacity-0"},null,512),[[f,n(t).limited_registration_period]]),e("div",jt,[e("div",At,[e("div",{class:p([n(t).limited_registration_period===!0?"border-4 border-primary":"border border-[#00000040]","block h-3.5 w-3.5 items-center justify-center rounded-full bg-white"])},null,2)]),e("span",{class:"text-sm font-normal text-[#3d4146] whitespace-nowrap",textContent:l(a.$t("common.yes"))},null,8,Tt)])]),n(t).errors.limited_registration_period?(i(),r("small",{key:0,class:"text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.limited_registration_period)},null,8,Et)):u("",!0)]),n(t).limited_registration_period?(i(),r("div",Gt,[e("div",null,[e("label",{for:"registration_starts_at",class:"mb-[7px] block text-[13px] font-semibold text-[#3d4146]",textContent:l(`${a.$t("settings.registration_start_date")} *`)},null,8,Qt),c(P,{id:"registration_starts_at",modelValue:n(t).registration_starts_at,"onUpdate:modelValue":o[5]||(o[5]=s=>n(t).registration_starts_at=s),"time-zone":d.event.timezone,"show-clear-btn":!1,class:"w-full rounded text-[13px] text-[#3d4146] h-[38px]"},null,8,["modelValue","time-zone"]),n(t).errors.registration_starts_at?(i(),r("small",{key:0,class:"text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.registration_starts_at)},null,8,zt)):u("",!0)]),e("div",null,[e("label",{for:"registration_ends_at",class:"mb-[7px] block text-[13px] font-semibold text-[#3d4146]",textContent:l(`${a.$t("settings.registration_end_date")} *`)},null,8,Bt),c(P,{id:"registration_ends_at",modelValue:n(t).registration_ends_at,"onUpdate:modelValue":o[6]||(o[6]=s=>n(t).registration_ends_at=s),"time-zone":d.event.timezone,"show-clear-btn":!1,class:"w-full rounded text-[13px] text-[#3d4146] h-[38px]"},null,8,["modelValue","time-zone"]),n(t).errors.registration_ends_at?(i(),r("small",{key:0,class:"text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.registration_ends_at)},null,8,Dt)):u("",!0)])])):u("",!0)]),e("div",Mt,[e("h3",{class:"text-[15px] font-extrabold tracking-[0.2px] text-[#3d4146] subpixel-antialiased mb-2",textContent:l(a.$t("settings.checkout_mode"))},null,8,Rt),e("p",{class:"text-sm text-[#3d4146] mb-4",textContent:l(a.$t("settings.checkout_mode_help"))},null,8,It),e("div",null,[(i(!0),r(j,null,A(n(ne)(),({label:s,value:_})=>(i(),r("label",{key:_,class:p(["relative mb-1.5 block",{"opacity-50 cursor-not-allowed":_==="ticket_purchase"&&!q.value}])},[x(e("input",{"onUpdate:modelValue":o[7]||(o[7]=v=>n(t).checkout_mode=v),type:"radio",name:"checkout_mode",value:_,disabled:_==="ticket_purchase"&&!q.value,class:"absolute top-0 left-0 h-full w-full opacity-0"},null,8,Lt),[[f,n(t).checkout_mode]]),e("div",Ot,[e("div",St,[e("div",{class:p([n(t).checkout_mode===_?"border-4 border-primary":"border border-[#00000040]","block h-3.5 w-3.5 items-center justify-center rounded-full bg-white"])},null,2)]),e("span",{class:"text-sm font-normal text-[#3d4146] whitespace-nowrap",textContent:l(s)},null,8,Ft)])],2))),128)),n(t).errors.checkout_mode?(i(),r("small",{key:0,class:"text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.checkout_mode)},null,8,Nt)):u("",!0),q.value?u("",!0):(i(),r("div",{key:1,class:"mt-2 text-xs text-gray-500",textContent:l(a.$t("settings.checkout_mode_requires_open_registration"))},null,8,Pt)),U.value?(i(),r("div",Ht,[e("div",Jt,[o[34]||(o[34]=e("svg",{class:"w-5 h-5 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})],-1)),e("span",{textContent:l(a.$t("settings.ticket_purchase_enables_guest_managers"))},null,8,Kt)])])):u("",!0)])]),e("div",Wt,[e("h3",{class:"text-[15px] font-extrabold tracking-[0.2px] text-[#3d4146] subpixel-antialiased mb-2",textContent:l(a.$t("common.companions"))},null,8,Xt),e("div",Yt,[e("label",Zt,[b(l(a.$t("settings.allow_companions"))+" ",1),c($,{description:a.$t("event.settings.companions.tooltip"),"icon-color":"#8354d3"},null,8,["description"])]),e("label",en,[x(e("input",{"onUpdate:modelValue":o[8]||(o[8]=s=>n(t).allow_companions=s),type:"radio",name:"registration_perion",value:!1,class:"absolute top-0 left-0 h-full w-full opacity-0",onClick:o[9]||(o[9]=s=>n(t).allow_unlimited_companions=!1)},null,512),[[f,n(t).allow_companions]]),e("div",tn,[e("div",nn,[e("div",{class:p([n(t).allow_companions===!1?"border-4 border-primary":"border border-[#00000040]","flex h-[14px] w-[14px] items-center justify-center rounded-full bg-white"])},null,2)]),e("span",{class:"text-sm font-normal text-[#3d4146] whitespace-nowrap",textContent:l(a.$t("common.no"))},null,8,on)])]),e("label",sn,[x(e("input",{"onUpdate:modelValue":o[10]||(o[10]=s=>n(t).allow_companions=s),type:"radio",name:"registration_perion",value:!0,class:"absolute top-0 left-0 h-full w-full opacity-0",onClick:o[11]||(o[11]=()=>{n(t).max_companions_per_booking=null,n(t).allow_unlimited_companions=!1})},null,512),[[f,n(t).allow_companions]]),e("div",ln,[e("div",an,[e("div",{class:p([n(t).allow_companions===!0?"border-4 border-primary":"border border-[#00000040]","flex h-[14px] w-[14px] items-center justify-center rounded-full bg-white"])},null,2)]),e("span",{class:"text-sm font-normal text-[#3d4146] whitespace-nowrap",textContent:l(a.$t("common.yes"))},null,8,rn)])]),n(t).errors.allow_companions?(i(),r("small",{key:0,class:"text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.allow_companions)},null,8,dn)):u("",!0)]),n(t).allow_companions?(i(),r("div",un,[e("label",{for:"allow_companions",class:"mb-1 block text-[13px] font-semibold text-[#3d4146]",textContent:l(`${a.$t("settings.max_companions_per_booking")} *`)},null,8,_n),c(M,{id:"max_companions_per_booking",modelValue:n(t).max_companions_per_booking,"onUpdate:modelValue":o[12]||(o[12]=s=>n(t).max_companions_per_booking=s),placeholder:n(t).allow_unlimited_companions?a.$t("common.unlimited"):null,class:
1p(["w-full max-w-[377px] rounded border p-[7.5px_15px] text-[13px] text-[#3d4146] outline-none",y.value?"border-red-300":"border-[#e0e0e0]"]),readonly:n(t).allow_unlimited_companions},null,8,["modelValue","placeholder","class","readonly"]),n(t).errors.max_companions_per_booking?(i(),r("small",{key:0,class:"block text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.max_companions_per_booking)},null,8,cn)):u("",!0)])):u("",!0),n(t).allow_companions?(i(),r("label",mn,[x(e("input",{"onUpdate:modelValue":o[13]||(o[13]=s=>n(t).allow_unlimited_companions=s),type:"checkbox",class:"block h-4.5 w-4.5 appearance-none rounded border border-solid border-[rgba(0,0,0,.25)] bg-white transition-all duration-150 ease-in-out checked:border-primary checked:bg-primary checked:bg-checkbox focus:shadow-violet",onClick:o[14]||(o[14]=s=>{s.target.checked===!0&&(n(t).max_companions_per_booking=null)})},null,512),[[D,n(t).allow_unlimited_companions]]),e("span",{class:"text-[13px] font-semibold text-[#3d4146]",textContent:l(a.$t("event.settings.allow_unlimited_companions"))},null,8,pn)])):u("",!0),n(t).allow_companions?(i(),r("div",xn,[e("label",{class:"flex text-sm font-medium text-[#3d4146] mb-2",textContent:l(a.$t("event.settings.preferred_email_receiver"))},null,8,gn),(i(!0),r(j,null,A(n(oe)(),({label:s,value:_})=>(i(),r("label",{key:_,class:"relative mb-1.5 block"},[x(e("input",{"onUpdate:modelValue":o[15]||(o[15]=v=>n(t).email_recipient_setting=v),type:"radio",name:"email_receiver",value:_,class:"absolute top-0 left-0 h-full w-full opacity-0",onClick:v=>n(t).email_recipient_setting=_},null,8,bn),[[f,n(t).email_recipient_setting]]),e("div",vn,[e("div",fn,[e("div",{class:p([n(t).email_recipient_setting===_?"border-4 border-primary":"border border-[#00000040]","flex h-[14px] w-[14px] items-center justify-center rounded-full bg-white"])},null,2)]),e("span",{class:"text-sm font-normal text-[#3d4146] whitespace-nowrap",textContent:l(s)},null,8,hn)])]))),128)),n(t).errors.email_recipient_setting?(i(),r("small",{key:0,class:"text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.email_recipient_setting)},null,8,kn)):u("",!0)])):u("",!0)]),n(S)("guest-manager")?(i(),r("div",wn,[e("h3",{class:"text-[15px] font-extrabold tracking-[0.2px] text-[#3d4146] subpixel-antialiased mb-2",textContent:l(a.$t("event.settings.guest_manager"))},null,8,Cn),e("div",yn,[e("label",$n,[b(l(a.$t("event.settings.guest_manager.allow_guest_managers"))+" ",1),c($,{description:a.$t("event.settings.guest_manager.allow_guest_managers.tooltip"),"icon-color":"#8354d3"},null,8,["description"])]),e("label",{class:p(["relative mb-1.5 block",{"opacity-50 cursor-not-allowed":U.value}])},[x(e("input",{"onUpdate:modelValue":o[16]||(o[16]=s=>n(t).allow_guest_managers=s),type:"radio",name:"allow_guest_managers",value:!1,disabled:U.value,class:"absolute top-0 left-0 h-full w-full opacity-0",onClick:o[17]||(o[17]=s=>n(t).allow_unlimited_guests_per_guest_manager=!1)},null,8,Vn),[[f,n(t).allow_guest_managers]]),e("div",qn,[e("div",Un,[e("div",{class:p([n(t).allow_guest_managers===!1?"border-4 border-primary":"border border-[#00000040]","flex h-[14px] w-[14px] items-center justify-center rounded-full bg-white"])},null,2)]),e("span",{class:"text-sm font-normal text-[#3d4146] whitespace-nowrap",textContent:l(a.$t("common.no"))},null,8,jn)])],2),e("label",An,[x(e("input",{"onUpdate:modelValue":o[18]||(o[18]=s=>n(t).allow_guest_managers=s),type:"radio",name:"allow_guest_managers",value:!0,class:"absolute top-0 left-0 h-full w-full opacity-0",onClick:o[19]||(o[19]=()=>{n(t).max_guests_per_guest_manager=null,n(t).allow_unlimited_guests_per_guest_manager=!1})},null,512),[[f,n(t).allow_guest_managers]]),e("div",Tn,[e("div",En,[e("div",{class:p([n(t).allow_guest_managers===!0?"border-4 border-primary":"border border-[#00000040]","flex h-[14px] w-[14px] items-center justify-center rounded-full bg-white"])},null,2)]),e("span",{class:"text-sm font-normal text-[#3d4146] whitespace-nowrap",textContent:l(a.$t("common.yes"))},null,8,Gn)])]),n(t).errors.allow_guest_managers?(i(),r("small",{key:0,class:"text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.allow_guest_managers)},null,8,Qn)):u("",!0)]),n(t).allow_guest_managers?(i(),r("div",zn,[e("label",{for:"max_guests_per_guest_manager",class:"mb-1 block text-[13px] font-semibold text-[#3d4146]",textContent:l(`${a.$t("event.settings.guest_manager.max_guests_per_guest_manager")} *`)},null,8,Bn),c(M,{id:"max_guests_per_guest_manager",modelValue:n(t).max_guests_per_guest_manager,"onUpdate:modelValue":o[20]||(o[20]=s=>n(t).max_guests_per_guest_manager=s),placeholder:n(t).allow_unlimited_guests_per_guest_manager?a.$t("common.unlimited"):null,class:
1p(["w-full max-w-[377px] rounded border p-[7.5px_15px] text-[13px] text-[#3d4146] outline-none",z.value?"border-red-300":"border-[#e0e0e0]"]),readonly:n(t).allow_unlimited_guests_per_guest_manager},null,8,["modelValue","placeholder","class","readonly"]),n(t).errors.max_guests_per_guest_manager?(i(),r("small",{key:0,class:"block text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.max_guests_per_guest_manager)},null,8,Dn)):u("",!0)])):u("",!0),n(t).allow_guest_managers?(i(),r("label",Mn,[x(e("input",{"onUpdate:modelValue":o[21]||(o[21]=s=>n(t).allow_unlimited_guests_per_guest_manager=s),type:"checkbox",class:"block h-4.5 w-4.5 appearance-none rounded border border-solid border-[rgba(0,0,0,.25)] bg-white transition-all duration-150 ease-in-out checked:border-primary checked:bg-primary checked:bg-checkbox focus:shadow-violet",onClick:o[22]||(o[22]=s=>{s.target.checked===!0&&(n(t).max_guests_per_guest_manager=null)})},null,512),[[D,n(t).allow_unlimited_guests_per_guest_manager]]),e("span",{class:"text-[13px] font-semibold text-[#3d4146]",textContent:l(a.$t("event.settings.allow_unlimited_guests_per_guest_manager"))},null,8,Rn)])):u("",!0)])):u("",!0),n(S)("guest-recommendations")?(i(),r("div",In,[e("h3",{class:"text-[15px] font-extrabold tracking-[0.2px] text-[#3d4146] subpixel-antialiased mb-2",textContent:l(a.$t("common.recommendations"))},null,8,Ln),e("div",On,[e("label",Sn,[b(l(a.$t("settings.allow_recommendations"))+" ",1),c($,{description:a.$t("event.settings.recommendations.tooltip"),"icon-color":"#8354d3"},null,8,["description"])]),c(ae,{modelValue:n(t).allow_recommendations,"onUpdate:modelValue":[o[23]||(o[23]=s=>n(t).allow_recommendations=s),o[24]||(o[24]=s=>{n(t).allow_recommendations&&(n(t).max_recommendations_per_guest=null,n(t).allow_unlimited_recommendations=!1)})],options:[{label:a.$t("common.no"),value:!1,disabled:!1},{label:a.$t("common.yes"),value:!0,disabled:!1}],"error-text":n(t).errors.allow_recommendations},null,8,["modelValue","options","error-text"])]),n(t).allow_recommendations?(i(),r("div",Fn,[e("label",{for:"allow_recommendations",class:"mb-1 block text-[13px] font-semibold text-[#3d4146]",textContent:l(`${a.$t("settings.max_recommendations_per_guest")} *`)},null,8,Nn),c(M,{id:"max_recommendations_per_guests",modelValue:n(t).max_recommendations_per_guest,"onUpdate:modelValue":o[25]||(o[25]=s=>n(t).max_recommendations_per_guest=s),placeholder:n(t).allow_unlimited_recommendations?a.$t("common.unlimited"):null,class:p(["w-full max-w-[377px] rounded border p-[7.5px_15px] text-[13px] text-[#3d4146] outline-none",E.value?"border-red-300":"border-[#e0e0e0]"]),readonly:n(t).allow_unlimited_recommendations},null,8,["modelValue","placeholder","class","readonly"]),n(t).errors.max_recommendations_per_guest?(i(),r("small",{key:0,class:"block text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.max_recommendations_per_guest)},null,8,Pn)):u("",!0)])):u("",!0),n(t).allow_recommendations?(i(),r("label",Hn,[x(e("input",{"onUpdate:modelValue":o[26]||(o[26]=s=>n(t).allow_unlimited_recommendations=s),type:"checkbox",class:"block h-4.5 w-4.5 appearance-none rounded border border-solid border-[rgba(0,0,0,.25)] bg-white transition-all duration-150 ease-in-out checked:border-primary checked:bg-primary checked:bg-checkbox focus:shadow-violet",onClick:o[27]||(o[27]=s=>{s.target.checked===!0&&(n(t).max_recommendations_per_guest=null)})},null,512),[[D,n(t).allow_unlimited_recommendations]]),e("span",{class:"text-[13px] font-semibold text-[#3d4146]",textContent:l(a.$t("event.settings.allow_unlimited_recommendations"))},null,8,Jn)])):u("",!0)])):u("",!0),c(et,{event:m.event,activations:m.emailTrackingActivations},null,8,["event","activations"]),e("div",Kn,[e("h3",{class:"text-[15px] font-extrabold tracking-[0.2px] text-[#3d4146] subpixel-antialiased mb-2",textContent:l(a.$t("common.languages"))},null,8,Wn),e("label",Xn,[b(l(a.$t("event.settings.landingpage_language"))+" ",1),c($,{description:a.$t("event.settings.landingpage_language.tooltip"),"icon-color":"#8354d3"},null,8,["description"])]),e("div",null,[e("div",Yn,[e("label",{for:"default_locale",class:"mb-1 block text-[13px] font-semibold text-[#3d4146]",textContent:l(`${a.$t("event.default_language")} *`)},null,8,Zn),c(F,{modelValue:n(t).default_locale,"onUpdate:modelValue":o[28]||(o[28]=s=>n(t).default_locale=s),items:m.locales,class:"w-full max-w-[377px]","btn-class":"border-[#e0e0e0]","key-label":"label","key-value":"code",translatable:!1,onChange:o[29]||(o[29]=()=>n(H)("default_locale",n(t),n(C),"put"))},null,8,["modelValue","items"]),n(t).errors.default_locale?(i(),r("small",{key:0,class:"text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.default_locale)},null,8,eo)):u("",!0)]),e("div",null,[e("label",{for:"additional_locales",class:"mb-1 block text-[13px] font-semibold text-[#3d4146]",textContent:l(a.$t("event.additional_languages"))},null,8,to),e("div",no,[x(e("input",{"onUpdate:modelValue":o[30]||(o[30]=s=>g.value=s),type:"text",placeholder:"Search",class:"w-full border-b p-[7.5px_15px] outline-none"},null,512),[[L,g.value]]),e("div",oo,[(i(!0),r(j,null,A(k.value,s=>(i(),r("label",{key:s.code,class:p(["relative mb-1 flex items-center gap-2",s.code===n(t).default_locale?"opacity-50":""])},[e("input",{type:"checkbox",class:"block h-4.5 w-4.5 appearance-none rounded border border-solid border-[rgba(0,0,0,.25)] bg-white transition-all duration-150 ease-in-out checked:border-primary checked:bg-primary checked:bg-checkbox focus:shadow-violet",disabled:s.co
1de===n(t).default_locale,checked:n(t).additional_locales.includes(s.code)||s.code===n(t).default_locale,onClick:()=>{n(t).additional_locales.includes(s.code)?n(t).additional_locales.splice(n(t).additional_locales.indexOf(s.code),1):n(t).additional_locales.push(s.code)}},null,8,so),e("span",{textContent:l(s.label)},null,8,lo)],2))),128))])]),n(t).errors.additional_locales?(i(),r("small",{key:0,class:"text-[10px] text-red-500 subpixel-antialiased",textContent:l(n(t).errors.additional_locales)},null,8,ao)):u("",!0)])]),G.value?(i(),r("div",io,[e("div",{class:"flex p-4 text-red-400",textContent:l(a.$t("event.on_change_missing_translation"))},null,8,ro)])):u("",!0)]),m.guestGroupQuotasEnabled?(i(),r("div",uo,[e("h3",{class:"text-[15px] font-extrabold tracking-[0.2px] text-[#3d4146] subpixel-antialiased mb-2",textContent:l(a.$t("event.settings.guestGroupQuotas.email_templates_heading"))},null,8,_o),e("p",{class:"mb-5 text-sm font-normal text-[#3d4146] text-opacity-70",textContent:l(a.$t("event.settings.guestGroupQuotas.email_templates_description"))},null,8,co),(i(),r(j,null,A(Q,s=>e("div",{key:s.key,class:"mb-5"},[e("label",{for:s.key,class:"mb-2 block text-sm font-medium text-[#3d4146]",textContent:l(a.$t(s.label))},null,8,mo),c(F,{"model-value":n(t)[s.key],items:m.guestGroupQuotaEmailTemplates,"key-label":"name","key-value":"id",optional:"","show-placeholder":"","placeholder-text":a.$t("event.settings.guestGroupQuotas.no_notification_option"),name:s.key,"onUpdate:modelValue":_=>n(t)[s.key]=_},null,8,["model-value","items","placeholder-text","name","onUpdate:modelValue"]),e("span",{class:"mt-1 block text-xs font-normal text-[#3d4146] text-opacity-50",textContent:l(a.$t("event.settings.guestGroupQuotas.no_notification_hint"))},null,8,po),n(t).errors[s.key]?(i(),r("span",{key:0,class:"mt-1 block text-xs text-red-500",textContent:l(n(t).errors[s.key])},null,8,xo)):u("",!0)])),64))])):u("",!0),e("div",go,[c(le,{roles:m.roles,users:m.users,"is-private":n(t).private,"initial-value":m.accessControlUsers,"header-class":"text-[15px] font-extrabold tracking-[0.2px] text-[#3d4146] subpixel-antialiased mb-2",onUpdated:o[31]||(o[31]=(s,_)=>V(s,_))},null,8,["roles","users","is-private","initial-value"])]),n(se)("event:setting:advanced:update")?(i(),r("div",bo,[e("div",vo,[e("button",{type:"button",class:"outline-none inline-block h-[35px] w-max min-w-[70px] items-center gap-2 rounded-[5px] px-2.5 text-[13px] text-[#e01249]",onClick:o[32]||(o[32]=s=>n(t).reset()),textContent:l(a.$t("common.discard_changes"))},null,8,fo),e("button",{type:"submit",disabled:n(t).processing||y.value||E.value,class:p([n(t).processing||y.value?"cursor-not-allowed opacity-50":"","flex h-[35px] w-max min-w-[70px] items-center gap-2 rounded-[5px] bg-primary px-[25px] text-[13px] text-white outline-none"]),"data-test":"submit-button",textContent:l(a.$t("common.save"))},null,10,ho)])])):u("",!0)])],32)])]))}};export{To as default};
2//# sourceMappingURL=Advanced-C3Ak9XSv.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.