1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[408],{87829:function(e,t,n){"use strict";var r=n(85893),i=n(67294),c=n(58535),a=n(5434),s=n(30047),u=n(76024),o=n(93967),l=n.n(o),d=n(67421);let linkRenderer=e=>(0,r.jsx)("a",{href:e.href,target:"_blank",className:"text-blue-600 underline",rel:"noreferrer",children:e.children});t.Z=e=>{let{onGoBack:t,waivers:n,setCheckedWaiverCount:o,headerStyle:m,waiverStyle:f,hasWrapper:h=!0}=e,{t:v}=(0,d.$G)(["checkout"]),[k,p]=(0,i.useState)({}),handleCheck=e=>{p(t=>{let n={...t,[e]:!t[e]},r=Object.values(n).filter(Boolean).length;return o(r),n})},x=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"font-normal text-sm text-gray-500",children:v("checkout:beforeWeDiveIntoTheFestivities")}),(0,r.jsx)("div",{children:null==n?void 0:n.map((e,t)=>(0,r.jsxs)("div",{className:"mt-4 px-4 py-4 border-1 border-gray-200 rounded-lg ".concat(k["waiver-".concat(t)]?"bg-primary-200":""),children:[(0,r.jsx)("p",{className:"mt-4 text-black text-sm font-medium",children:e.title}),(0,r.jsx)("p",{className:"mt-4 font-normal text-gray-900",children:(0,r.jsx)(s.D,{components:{a:linkRenderer},children:(0,u.C)(e.content)})}),(0,r.jsxs)("div",{className:"mt-4 px-4 py-4 flex items-center ".concat(k["waiver-".concat(t)]?"border-1 border-primary-200":"bg-primary-200 border-1 border-gray-200 rounded-lg"," "),children:[(0,r.jsx)("input",{type:"checkbox",id:"waiver-".concat(t),name:"waiver",value:"waiver",className:"form-checkbox h-5 w-5 text-gray-600",onChange:()=>handleCheck("waiver-".concat(t)),checked:k["waiver-".concat(t)]||!1}),(0,r.jsx)("label",{htmlFor:"waiver-".concat(t),className:"ml-4 text-gray-700 text-xs ",children:v("checkout:iAcceptTheWaiver")})]})]},"".concat(e.content)))})]});return h?(0,r.jsxs)(c.Z,{children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("div",{className:l()("absolute -top-8 -left-8 flex items-center",m),children:[(0,r.jsx)(a.KYK,{size:"26px",className:"text-gray-500",onClick:t}),(0,r.jsx)("h1",{className:"title ml-5 mt-1",children:v("checkout:completeEventWaivers")})]}),(0,r.jsx)("div",{className:"border-b-1 border-gray-200 mt-3 pt-3 -ml-11 -mr-11"})]}),(0,r.jsx)("div",{className:l()("-ml-4 -mr-11 overflow-y-auto pr-6 pt-4 max-h-[82vh] md:max-h-[510px] pb-[200px]",f),children:x})]}):x}},71389:function(e,t,n){"use strict";var r=n(85893),i=n(48905),c=n(87829),a=n(14556),s=n.n(a);t.Z=e=>{var t;let{onGoBack:n,onClaimTicket:a,setCheckedWaiverCount:u,onShowPrePurchaseQuestions:o,hasPrePurchaseQuestions:l,eventWaiver:d,isEventWaiverAccepted:m,isLoadingClaimShareToken:f,isLoadingEventWaiver:h,checkedWaiverCount:v}=e;return(0,r.jsxs)("div",{className:"px-8 py-0 bg-white border-1 border-solid border-gray-200 rounded-xl",children:[(0,r.jsx)(c.Z,{onGoBack:n,waivers:null==d?void 0:d.waivers,setCheckedWaiverCount:u,headerStyle:s().headerStyle}),(0,r.jsx)("div",{className:"border-b-1 border-gray-200 mt-3 pt-3 -ml-11 -mr-11"}),(0,r.jsx)("div",{className:"my-4",children:l?(0,r.jsx)(i.ZP,{disabled:!m,onClick:o,loading:f||h,type:i.L$.Primary,children:"Continue to Guest Questions"}):(0,r.jsx)(i.ZP,{disabled:!m,onClick:a,loading:f||h,type:i.L$.Primary,children:"Claim Ticket ".concat(v,"/").concat(null==d?void 0:null===(t=d.waivers)||void 0===t?void 0:t.length," ")})})]})}},43360:function(e,t,n){"use strict";var r=n(85893),i=n(67294),c=n(64487),a=n(9355),s=n(9404),u=n(68552),o=n(5434),l=n(52396),d=n(90379);t.Z=function(e){let{eventId:t,prePurchaseFormId:n,onGoBack:m,onClaimTicket:f,isLoadingClaimShareToken:h}=e,[v,k]=(0,i.useState)(!1),p=(0,i.useRef)(null),{mutateAsync:x,isLoading:y}=(0,u.Y8)(),{mutateAsync:b,isLoading:g}=(0,u.QE)(),T=y||g||h,j=(0,i.useCallback)(async e=>{let{data:n,isEditing:r}=e;try{let e=await (r?b:x)({eventId:t,response:{response:n}});e.responderId&&f()}catch(e){var i;null==p||null===(i=p.current)||void 0===i||i.reset(),(0,l.vU)(e.message||"Error creating pre purchase response"),c.Tb(e,{tags:{component:"CheckoutPrePurchaseQuestionsStep",action:"onComplete"}})}},[t]);return(0,r.jsxs)("div",{className:"relative py-0 bg-white border-1 border-solid border-gray-200 rounded-xl",children:[(0,r.jsxs)("div",{className:"flex items-center pt-3 pb-3 px-4",children:[(0,r.jsx)("button",{type:"button","aria-label":"back",onClick:m,children:(0,r.jsx)(o.KYK,{size:26,className:"text-gray-500"})}),(0,r.jsx)("h1",{className:"title ml-5",children:"Guest Questions"})]}),(0,r.jsx)("div",{className:"border-b-1 border-gray-200 w-full"}),(0,r.jsxs)("div",{className:"px-4 pt-4",children:[(0,r.jsx)(a.Z,{ref:p,eventId:t,prePurchaseFormId:n,handleComplete:j,handleSetCanSubmit:e=>{k(e)}}),T&&(0,r.jsx)("div",{className:"absolute top-0 left-0 right-0 bottom-0 z-99 bg-white/80",children:(0,r.jsx)(d.Z,{isLoading:!0})}),v&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"border-b-1 border-gray-200 mt-3 pt-3 -ml-11 -mr-11"}),(0,r.jsx)("div",{className:"my-4",children:(0,r.jsx)(s.Z,{variant:"primaryDark",onClick:()=>{var e;null==p||null===(e=p.current)||void 0===e||e.submit()},size:"large",disabled:T,loading:T,className:"w-full",children:"Claim Ticket"})})]})]})]})}},75854:function(e,t,n){"use strict";n.d(t,{Bo:function(){return useGetTicketToTransfer},CS:function(){return useGetMyTickets},Eq:function(){return useRefundEventTicketCommand},J9:function(){return usetransferTicketCommand},KZ:function(){return useGetMyMultiTicketsForEvent},Yz:function(){return useRequestTicketRefundCommand},a3:function(){return useRollbackTicketCommand},h6:function(){return useClaimReservedTicketCommand},hv:function(){return useGetReservedTicket},i9:function(){return useGetMyTicketForEvent},x8:function(){return useRefundEventBundleCommand}});var r=n(88767),i=n(8457);function useGetMyTickets(e){return(0,r.useInfiniteQuery)(["tickets/me"],t=>{let{pageParam:n}=t;return(0,i.Ji)({limit:null==e?void 0:e.limit,pageParam:n})})}function useGetMyTicketForEvent(e){return(0,r.useQuery)(["tickets/me",e],()=>(0,i.il)(e))}function useGetMyMultiTicketsForEvent(e){return(0,r.useQuery)(["/events/".concat(e,"/all"),e],()=>(0,i.Sf)(e))}function useGetTicketToTransfer(e){return(0,r.useQuery)(["ticket",e],
1()=>(0,i.ef)(e))}function useRollbackTicketCommand(){return(0,r.useMutation)(i.eM)}function useGetReservedTicket(e){return(0,r.useQuery)(["tickets/reserved/",e],()=>(0,i._y)({shareToken:e}),{enabled:!!e,retry:!1})}function useClaimReservedTicketCommand(){return(0,r.useMutation)(i.On)}function usetransferTicketCommand(){return(0,r.useMutation)(i.r0)}function useRequestTicketRefundCommand(){return(0,r.useMutation)(i.vb)}function useRefundEventTicketCommand(){return(0,r.useMutation)(i._F)}function useRefundEventBundleCommand(){return(0,r.useMutation)(i.B4)}},8457:function(e,t,n){"use strict";n.d(t,{B4:function(){return refundEventBundle},Ji:function(){return getMyTickets},On:function(){return claimReservedTicket},Sf:function(){return getMyMultiTicketsForEvent},_F:function(){return refundEventTicket},_y:function(){return getReservedTicket},cY:function(){return i},eM:function(){return rollbackTicket},ef:function(){return getTicketToTransfer},il:function(){return getMyTicketForEvent},qs:function(){return c},r0:function(){return transferTicket},vb:function(){return requestTicketRefund}});var r=n(890);let i=18,c=5;async function getMyTickets(e){let{data:t}=await (0,r.Z)({method:"get",url:"/api/tickets/me",params:{limit:(null==e?void 0:e.limit)||i,pageNumber:null==e?void 0:e.pageParam}});return t}async function getMyTicketForEvent(e){let{data:t}=await (0,r.Z)({method:"get",url:"/api/tickets/me/events/".concat(e)});return t}async function getMyMultiTicketsForEvent(e){let{data:t}=await (0,r.Z)({method:"get",url:"/api/tickets/me/events/".concat(e,"/all")});return t}async function getTicketToTransfer(e){let{data:t}=await (0,r.Z)({method:"get",url:"/api/tickets/".concat(e,"/transfer")});return t}async function rollbackTicket(e){let{ticketId:t}=e,{data:n}=await (0,r.Z)({method:"post",url:"api/tickets/rollback",data:{ticketId:t}});return n}async function getReservedTicket(e){let{shareToken:t}=e,{data:n}=await (0,r.Z)({method:"get",url:"/service/tickets/reserved",params:{shareToken:t}});return n}async function claimReservedTicket(e){let{shareToken:t,isWaiverAccepted:n}=e,{data:i}=await (0,r.Z)({method:"post",url:"/api/tickets/claim",data:{shareToken:t,isWaiverAccepted:n}});return i}async function transferTicket(e){let{ticketId:t,isWaiverAccepted:n}=e,{data:i}=await (0,r.Z)({method:"post",url:"/api/tickets/transfer",data:{ticketId:t,isWaiverAccepted:n}});return i}async function refundEventTicket(e){let{eventId:t,ticketId:n}=e,{data:i}=await (0,r.Z)({method:"post",url:"/api/hosts/events/".concat(t,"/tickets/").concat(n,"/refund")});return i}async function refundEventBundle(e){let{eventId:t,bundleInstanceId:n}=e,{data:i}=await (0,r.Z)({method:"post",url:"/api/events/".concat(t,"/tickets/bundles/").concat(n,"/refund")});return i}async function requestTicketRefund(e){let{ticketId:t}=e,{data:n}=await (0,r.Z)({method:"post",url:"/api/tickets/".concat(t,"/refundRequest")});return n}},76024:function(e,t,n){"use strict";n.d(t,{C:function(){return textWithMarkdown}});let addProtocol=e=>{let t=/^https?:\/\//i.test(e);return t?e:"http://".concat(e)},textWithMarkdown=e=>{let t;let n=/(?:https?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/gi,r=[],i=0;for(;null!==(t=n.exec(e));){let n=t[0],c=t.index,a=e[c-1],s=e[c+n.length];if("("!==a||")"!==s){let t=e.slice(i,c);r.push(t),r.push("[".concat(n,"](").concat(addProtocol(n),")")),i=c+n.length}}return i<e.length&&r.push(e.slice(i)),r.join("")}},14556:function(e){e.exports={headerStyle:"ClaimTicketWaiverSection_headerStyle__o7bc0"}}}]); 2//# sourceMappingURL=408-cefd91e9027f5109.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.