1import{n as d,W as g,d4 as v}from"./DBiBkISY.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:"835e187a3c1d607b337ae213ae6c693fe0fb243d"};var t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="b36e95aa-65b2-4c0b-9575-1d4ecde12b67",s._sentryDebugIdIdentifier="sentry-dbid-b36e95aa-65b2-4c0b-9575-1d4ecde12b67")}catch{}})();const f={components:{WgBtn:g},props:{registrations:{type:Array,required:!0},registrationLabel:{type:String,default:"registration"}},data(){return{step:this.registrations.length>1?1:2,selectedRegistration:this.registrations.length>1?null:this.registrations[0]}},methods:{closeDialog(){this.$store.dispatch("dialog/closeDialog")},goBack(){this.selectedRegistration=null,this.step=1},selectRegistration(s){this.selectedRegistration=s,this.step=2},async unregister(){var s,t;if(!this.selectedRegistration){this.$store.dispatch("snackbar/showSnackbar",{message:"Please select a registration before confirmation",color:"error",timeout:5e3});return}try{const e=await v(this.selectedRegistration.id);this.$store.dispatch("dialog/closeDialog",{registrations:e.data.data})}catch(e){this.$store.dispatch("snackbar/showSnackbar",{message:((t=(s=e.response)==null?void 0:s.data)==null?void 0:t.message)||"Something went wrong while unregistering you from this event, please try again",color:"error",timeout:5e3})}}}};var u=function(){var n;var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t.step===1?e("div",{staticStyle:{width:"32px",height:"32px",display:"flex","border-radius":"4px","align-items":"center","justify-content":"center","background-color":"#f42b3d14",border:"1px solid var(--v-error-base)"}},[e("v-icon",{attrs:{size:"16",color:"var(--v-error-base)"}},[t._v("$tagIconFilled")])],1):e("wg-btn",{staticClass:"small-button",on:{click:t.goBack}},[e("v-icon",{attrs:{size:"16"}},[t._v("$chevronLeft")])],1),t.step===1?e("div",{staticStyle:{"font-size":"18px","font-weight":"700","margin-top":"2px"}},[t._v(" Select "+t._s(t._f("capitalize")(t.registrationLabel||"Registration"))+" ")]):t._e(),e("wg-btn",{staticClass:"small-button",on:{click:t.closeDialog}},[e("v-icon",{attrs:{size:"16"}},[t._v("$closeIcon")])],1)],1),e("v-stepper",{staticStyle:{"margin-left":"-16px","margin-right":"-16px"},model:{value:t.step,callback:function(i){t.step=i},expression:"step"}},[e("v-stepper-items",[e("v-stepper-content",{staticClass:"pa-0",attrs:{step:"1"}},[e("v-divider",{staticClass:"mt-4"}),t._l(t.registrations,function(i){var o,l;return e("div",{key:i.id,on:{click:function(a){return t.selectRegistration(i)}}},[(o=i.tickets)!=null&&o.length?e("div",{staticClass:"registration-select"},[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:a,attrs:c}){return[e("div",t._g(t._b({staticClass:"truncate-cell"},"div",c,!1),a),t._l(i.tickets,function(r,p){return e("span",{key:r.id},[e("span",[t._v(t._s(r.name))]),e("span",[t._v(" x "+t._s(r.quantity))]),p<i.tickets.length-1?e("span",[t._v(" , ")]):t._e()])}),0)]}}],null,!0)},[e("div",t._l(i.tickets,function(a){return e("div",{key:a.id},[e("span",[t._v(t._s(a.name))]),e("span",[t._v(" x "+t._s(a.quantity))])])}),0)])],1):t._e(),(l=i.tickets)!=null&&l.length?e("v-divider"):t._e()],1)})],2)],1),e("v-stepper-content",{staticClass:"pa-4 pb-0",attrs:{step:"2"}},[e("div",{staticStyle:{"font-size":"18px","font-weight":"700"}},[t._v(" Cancel "+t._s(t._f("capitalize")(t.registrationLabel||"Registration"))+" ")]),e("div",{staticStyle:{"font-size":"14px",color:"var(--v-grey6-base)","margin-top":"8px"}},[t._v(" Click on the confirm button below to cancel your "+t._s(((n=t.registrationLabel)==null?void 0:n.toLowerCase())||"registration")+" and let the host know you can't make it. ")]),e("div",{staticStyle:{display:"flex",gap:"16px","margin-top":"24px"}},[e("wg-btn",{staticStyle:{flex:"1","min-height":"0px !important",height:"32px !important",color:"white","font-size":"14px","border-radius":"4px !important"},attrs:{color:"var(--v-error-base)"},on:{click:t.unregister}},[t._v(" Confirm ")]),e("wg-btn",{staticStyle:{flex:"1","min-height":"0px !important",height:"32px !important","font-size":"14px",border:"1px solid var(--v-grey3-base)","border-radius":"4px !important"},attrs:{color:"var(--v-grey1-base)"},on:{click:t.closeDialog}},[t._v(" Dismiss ")])],1)])],1)],1)},b=[],h=d(f,u,b,!1,null,"681bf465");const m=h.exports;export{m 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.