PageSourceSearch

https://tickets.filmfest-braunschweig.de/web/_next/static/chunks/8362-4edeaea622d49dbb.js

js filmfest-braunschweig.de collected 2026-10-02 10:51:18 UTC 63,111 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8362],{8347:(e,t,i)=>{"use strict";i.d(t,{ky:()=>s});var n=i(92458),r=i(43848),o=i(92200);i(54986),i(57829);let s=async e=>{let{locale:t,sellerId:i,appProps:s}=e;try{let e=await o.A.fetchSellerInfo(i,t),[a,l]=await Promise.all([(async()=>e.orgId?r.A.fetchOrganizationInfo(e.orgId):null)(),(0,n.Wq)(s.domainCtx,e._id,e.orgId)]);return s.domainCtx=l,{seller:e,organization:a}}catch(e){}return{seller:null,organization:null}}},11661:e=>{function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=11661,e.exports=t},18185:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var n=i(56667),r=i(79696);function o(){return(0,r.T)(s,arguments,o.lazy)}function s(e,t,i){var r=o.lazy(t,i);return(0,n.Q)(e,r)}(o||(o={})).lazy=function(e,t){return function(i){return e.every(function(e){return!t(i,e)})?{done:!1,hasNext:!0,next:i}:{done:!1,hasNext:!1}}}},19419:()=>{},20104:(e,t,i)=>{"use strict";i.r(t),i.d(t,{__N_SSP:()=>tU,default:()=>tV,getDetailsPageProps:()=>tH});var n,r=i(50979),o=i(60832),s=i(73815),a=i(96595),l=i(40460),c=i(73889),d=i(23925),u=i(36727),p=i(26426),m=i(69130),h=i(18805),f=i(47011),g=i(5552),y=i(20609),v=i(65341),x=i(25849),A=i(84217),b=i(84614),j=i(66398),k=i.n(j),w=i(2484),I=i.n(w),T=i(49181),q=i(25963),S=i(613),N=i(62837),C=i(5054),F=i(83332),D=i(12320),O=i(70149),_=i(58411),P=i(46870),E=i(54010),R=i(55639),L=i(28645),M=i(64105),z=i(41368),$=i(60283),U=i(8119),H=i(33147),V=i(85165);let B=e=>{let{t,i18n:i}=(0,b.Bd)(["event","common"]),n=e.event,o=(0,L.YP)(n),s=n.eventType===M.Bx.root,a=e=>(0,r.jsx)("div",{className:"text-center semi large vi-w-full vi-mt-6",children:e});return(0,r.jsxs)("div",{className:"vi-relative vi-grid vi-grid-cols-1 w-full vi-bg-prim vi-shadow-md vi-rounded-md vi-overflow-hidden",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"vi-aspect-w-event-header-width vi-aspect-h-event-header-height ",children:n.image?(0,r.jsx)("img",{...(0,$.i)(n.image,{width:380}),alt:n.name,className:"vi-object-cover"}):(0,r.jsx)("div",{})}),(0,r.jsx)("div",{className:"vi-bg-prim vi-rounded-md vi-shadow-md vi-text-xs vi-font-medium vi-absolute vi-top-3 vi-left-3 vi-px-1 vi-py-0.5 vi-text-third",children:s||n.styleOptions.hideStartingPrice||o&&n.saleStatus==z.a.soldOut||!o?null:(0,m.N8)(i.language,n.startingPrice,n.currency)})]}),(0,r.jsxs)("div",{className:"vi-p-4 vi-flex vi-flex-col vi-justify-end",children:[!s&&(0,r.jsx)("div",{className:"vi-text-xs vi-text-fourth",children:(0,r.jsx)(P.yJ,{event:n})}),(0,r.jsx)("div",{className:"vi-text-lg vi-font-semibold",children:n.name}),!s&&n.styleOptions.showAvailabilityIndicator&&o&&n.availabilityIndicator&&!(0,L.R6)(n)&&(0,r.jsx)("div",{className:"vi-bg-prim vi-rounded-md vi-shadow-md vi-absolute vi-top-3 vi-right-3 vi-px-1 -vi-py-1 max-h-4",children:(0,r.jsx)(V.i,{indicator:n.availabilityIndicator,soldOut:n.saleStatus==z.a.soldOut,salesPlanned:n.saleStatus==z.a.planned})}),(0,r.jsx)("div",{className:"vi-text vi-text-third",children:o?n.locationName:n.location.locationName}),o&&n.saleStatus===z.a.soldOut?a(t("event:saleArea.statusSoldOut")):o&&n.saleStatus===z.a.past?a(t("event:saleArea.statusPast")):o&&n.saleStatus===z.a.planned?a(t("event:saleArea.statusPlanned")):(0,r.jsx)(I(),{href:"/event/".concat(n.url||n._id),className:"btn text-center accent-bg small vi-w-full vi-mt-6",children:t("common:select")})]})]})},W=e=>{let{t}=(0,b.Bd)(["common"]),[i,n]=(0,q.useState)([]),[o,s]=(0,q.useState)(!1);(0,q.useEffect)(()=>{a()},[]);let a=async()=>{var t,i,r,o;if(null==(i=e.crossSells)||null==(t=i.eventIds)?void 0:t.length){U.Ay.start();try{let t=await (0,E.h)(e.seller._id,null!=(o=null==(r=e.crossSells)?void 0:r.eventIds)?o:[],e.locale,R.rL.getStartOfDayIsoWithTimezone(e.seller.localeSettings));n(t),t.length&&s(!0)}catch(e){console.error(e)}finally{U.Ay.stop()}}},l=()=>{s(!1)};return o?(0,r.jsxs)(H.K,{onClose:()=>l(),children:[(0,r.jsx)(H.K.Content,{children:(0,r.jsxs)("div",{className:"vi-space-y-8",children:[(0,r.jsx)(H.K.Header,{title:t("common:youMightAlsoBeInterestedIn"),description:t("common:eventsYouMightAlsoLike")}
1),(0,r.jsx)("div",{className:"vi-grid md:vi-grid-cols-3 vi-gap-4",children:i.map(e=>(0,r.jsx)(B,{event:e},e._id))})]})}),(0,r.jsx)(H.K.Footer,{children:(0,r.jsx)("div",{className:"vi-flex vi-flex-row vi-space-x-4 ml-auto",children:(0,r.jsx)("button",{className:"btn bordered",onClick:()=>l(),children:t("common:continue")})})})]}):null};var K=i(7073),X=i(25486),G=i(27888),Y=i(5208),Q=i(25075),J=i(16155),Z=i(53285),ee=i(26898),et=i(6201),ei=i(13418),en=i(74206),er=i(76185),eo=i(99411),es=i(10400),ea=i(8320),el=i(85739),ec=i(8563),ed=i(55973),eu=i(3444),ep=i(4530),em=i(89723),eh=i(80460),ef=i(53113),eg=i(23447),ey=i(54507);let ev=em.f.object().keys({_id:em.f.string().optional().description("The ID of the seating object."),_type:em.f.number().required().valid(...Object.values(ey.kt).filter(e=>"number"==typeof e)).description("Indicates the type of seating object. Seat = ".concat(ey.kt.Seat,", General Admission = ").concat(ey.kt.GA,".")),categoryId:em.f.string().optional().description("The ID of the category containing the seating object."),statusId:em.f.string().required().description("The ID of a container holding information about the seating status of the seating object."),name:ef.s.optionalString.description("If _type == ".concat(ey.kt.GA,". The name of the general admission.")),seatType:em.f.string().optional().allow(...Object.values(ey.N_),null).optional().description("If _type == ".concat(ey.kt.Seat,". The type of the seat. null = normal.")),sectionName:ef.s.optionalString.description("If _type == ".concat(ey.kt.Seat,". The name of the section where the seat is located.")),groupName:ef.s.optionalString.description("If _type == ".concat(ey.kt.Seat,". The name of the row group where the seat is located.")),rowName:ef.s.optionalString.description("If _type == ".concat(ey.kt.Seat,". The name of the row where the seat is located.")),seatName:ef.s.optionalString.description("If _type == ".concat(ey.kt.Seat,". The seat name.")),gate:ef.s.optionalString.description("The entry gate associated with the seating object.")}).unknown(!0).description("The associated seating object.");var ex=i(33774),eA=i(92391);let eb=em.A.alternatives().try(em.A.object({type:em.A.string().valid(ex.vO.self_service_return).required(),settings:em.A.object({returnRelatedItems:em.A.boolean().default(!0),phases:em.A.array().items(em.A.object({condition:eA.L.required(),refundPercentage:em.A.number().min(0).max(1).required()})).required()}).required()}).options({stripUnknown:!0}),em.A.object({type:em.A.string().valid(ex.vO.repersonalization).required(),settings:em.A.object({inherit:em.A.boolean().default(!1),repersonalizationDeadline:eA.L.required(),repersonalizationsLimit:em.A.number().allow(null).optional(),repersonalizationFee:em.A.number().allow(null).optional(),limitOnlyNameChanges:em.A.boolean().optional()}).required()}).options({stripUnknown:!0})),ej=em.A.object().keys({productId:em.A.string().required(),productVariantId:em.A.string().required(),name:em.A.string().required()}),ek=em.f.object().keys({slotId:em.f.string().required().description("The ID of the time slot."),slotStartTime:em.f.string().required().description("The start time of the time slot.")}).description("The associated time slot object.");var ew=i(75260),eI=i(21144),eT=i(65851),eq=i(66665),eS=i(34823),eN=function(e){return e.origin="origin",e.voucher="voucher",e.customerBalance="customer_balance",e}({});let eC=new eq.Schema({transactionId:String,eventId:String,sellerId:String,pspRef:String,gateway:{type:String,default:eI.Z.managed},gatewayId:{type:String},paymentId:{type:String,required:!1},target:{type:String,enum:Object.values(eN),default:"origin"},source:{type:String,enum:Object.values(eS.S)},amount:Number,currency:{type:String,enum:Object.values(eT.Sj)}},{timestamps:!0});eC.index({sellerId:1,eventId:1,createdAt:-1}),eC.index({updatedAt:1}),eC.index({sellerId:1,pspRef:1}),eC.index({sellerId:1,transactionId:1}),eC.index({sellerId:1,paymentId:1}),(0,ew.p)("Refund",eC);var eF=i(51027),eD=i(87580),eO=i(47610),e_=function(e){return e.onlinesale="onlinesale",e.pos="pos",e}({}),eP=function(e){return e.invoice="invoice",e.cancellation="cancellation",e}({}),eE=function(e){return e.product="product",e.ticket="ticket",e.fulfillment="fulfillment",e.outerCharge="outerCharge",e.discount="discount",e.voucher="voucher",e.bundle="bundle",e.additionalFee="additionalFee",e.insurance="insurance",e}({});let eR=new eq.Schema({type:{type:String,enum:Object.values(eE)},title:String,amount:Number,total:Number,regularTotal:Number,includedTax:Number,taxRate:Number,taxRates:[Number],taxItems:[Object],localization:eF.pt}),eL=new eq.Schema({company:String,name:String,firstname:String,lastname:String,address:eD.e},{_id:!1}),eM=new eq.Schema({taxRate:Number,includedTax:Number,reducedTax:Number}),ez=new eq.Schema({taxId:String,name:String,address:eD.S},{_id:!1}),e$=new eq.Schema({documentUrl:{type:String,required:!1},additionalDocumentUrl:{type:String,required:!1}},{_id:!1,minimize:!1}),eU=new eq.Schema({type:{type:String,required:!1,enum:Object.values(eP),default:"invoice"},sellerId:String,recipient:eL,transactionId:String,customerId:String,cancellationId:String,refundTarget:{type:String},counter:Number,no:String,items:[eR],components:{type:[{name:String,total:Number}],_id:!1},total:Number,discountSum:Number,detailsPerRate:[eM],taxItems:[Object],includedTax:Number,taxRate:Number,includedOuterChargeTax:Number,outerChargeTaxRate:Number,origin:{type:String,enum:["onlinesale","pos"],required:!1},currency:{type:String,enum:Object.values(eT.Sj),default:eT.Sj.eur},extraFields:Object,secret:{type:String,required:!1},referenceInvoiceId:{type:String,required:!1},footerText:{type:[String],required:!1},splits:{type:[v.M5],required:!1},seller:{type:ez,required:!1},signature:{type:Object,required:!1},posInfo:{type:new eq.Schema({posId:{type:String,required:!0},no:{type:String,required:!0},referenceInvoiceNo:{type:String,required:!1},sessionId:{type:String,required:!0},billingNo:{type:String,required:!0},taxId:{type:String,required:!1},paymentMethod:{type:String,required:!1},canceledAt:{type:Date,required:!1},cancellationNo:{type:String,required:!1}},{_id:!1}),required:!1},identification:{type:[eO.F],required:!1},cancellationReason:{type:String,enum:Object.values(v.Ys),required:!1},external:{type:e$,required:!1}},{timestamps:!0,minimize:!1});eU.index({sellerId:1,referenceInvoiceId:1}),eU.index({sellerId:1,counter:-1}),eU.index({sellerId:1,"posInfo.posId":1,counter:-1}),eU.index({sellerId:1,counter:-1},{name:"sellerId_1_counter_-1_pos",partialFilterExpression:{"posInfo.posId":{$exists:!0}}}),eU.index({sellerId:1,createdAt:-1}),eU.index({transactionId:1}),eU.index({updatedAt:1,_id:1}),eU.index({sellerId:1,"posInfo.posId":1},{sparse:!0}),(0,ew.p)("Invoice",eU);let eH=ef.s.address;eH.append({name:em.f.string().trim().optional().description("The name of the person receiving delivery.")});let eV=em.A.object().keys({taxRate:em.A.number().min(0).required().description("The applied tax rate, as a fraction (0.19 = 19%)."),includedTax:em.A.number().required().description("The total of taxes associated with the tax rate."),reducedTax:em.A.number().required().description("The tax reduction through applied discounts.")}).description("The details on the applied tax rate."),eB=em.A.object().keys({name:em.A.string().optional().allow(null),taxTypeId:em.A.string().optional().allow(null),rate:em.A.number().required(),perUnit:em.A.number().required(),total:em.A.number().required(),netTotal:em.A.number().optional().allow(null),netPerUnit:em.A.number().optional().allow(null),taxPayableAccountId:em.A.string().optional().allow(null),taxPayableAccountCode:em.A.string().optional().allow(null)}),eW=em.A.object().keys({type:em.A.string().optional().valid(...Object.values(eE)).description("The type of the invoice item."),title:em.A.string().optional().description("The title of the invoice item."),amount:em.A.number().required().description("The quantity of the invoice item. Negative on cancellation invoices."),total:em.A.number().required().description("The total of the invoice item. Negative on cancellation invoices and for discounts and vouchers."),regularTotal:em.A.number().required().description("The non-discounted total of the invoice item."),includedTax:em.A.number().required().description("The total of taxes included in the invoice item."),taxRate:em.A.number().min(0).required().description("The tax rate applied on the invoice item, as a fraction (0.19 = 19%)."),taxRates:em.A.array().items(em.A.number()).optional().description("All tax rates applied on the invoice item."),taxItems:em.A.array().items(eB).optional().description("The tax items of the invoice item."),localization:em.A.object().optional().description('Localized item values per language code, e.g. {"de": {"title": "..."}}.')}).description("An invoice item."),eK=em.A.object().keys({company:em.A.string().optional().allow("").description("The company name of the recipient."),name:em.A.string().trim().required().description("The name of the recipient."),firstname:em.A.string().trim().optional().description("The first name of the recipient."),lastname:em.A.string().trim().optional().description("The last name of the recipient."),address:eH.optional().description("The address of the recipient.")}).description("Information on the recipient of the invoice."),eX=em.A.object().optional().description("The extra fields of the invoice.");em.A.object().keys({_id:em.A.string().required().description("The ID of the invoice."),type:em.A.string().optional().valid(...Object.values(eP)).default(eP.invoice).description("The type of the invoice. A cancellation invoice negates its reference invoice with mirrored negative amounts."),sellerId:em.A.string().required().description("The ID of the seller associated with the invoice."),recipient:eK.optional().description("Information on the recipient. Missing on legacy invoices, where it derives from the transaction."),transactionId:em.A.string().optional().description("The ID of the transaction the invoice originated from."),customerId:em.A.string().optional().description("The ID of the customer associated with the invoice."),cancellationId:em.A.string().optional().description("The ID of the associated cancellation."),cancellationReason:em.A.string().optional().valid(...Object.values(v.Ys)).description("The reason of the cancellation."),refundTarget:em.A.string().optional().valid(...Object.values(eN)).description("Where the cancelled amount was refunded to."),counter:em.A.number().required().description("The counter used to create no."),no:em.A.string().required().description("A unique number for the invoice consisting of the creation date and an increasing counter."),items:em.A.array().items(eW).required().description("An array of invoice items."),components:em.A.array().items(em.A.object({name:em.A.string(),total:em.A.number()})).optional().description("An array of exposed price components."),total:em.A.number().optional().description("The invoice total after discounts and taxes."),discountSum:em.A.number().optional().description("The total of all discounts applied."),detailsPerRate:em.A.array().items(eV).optional().description("The tax details grouped by tax rates."),taxItems:em.A.array().items(eB).optional().description("An array of tax items."),includedTax:em.A.number().optional().description("The total of all taxes included."),taxRate:em.A.number().optional().min(0).description("The default tax rate applied on items, as a fraction (0.19 = 19%)."),includedOuterChargeTax:em.A.number().optional().description("The total of all taxes on included outer charges."),outerChargeTaxRate:em.A.number().optional().min(0).description("The tax rate applied on outer charges, as a fraction (0.19 = 19%)."),origin:em.A.string().optional().valid(...Object.values(e_)).description("Whether the invoice has been created through an online or offline transaction."),currency:em.A.string().required().valid(...Object.values(eT.Sj)).default(eT.Sj.eur).description("An ISO 4217 3-character code of the currency."),extraFields:eX,identification:eh.MA.optional().description("The legal identification documents of the recipient captured at checkout, e.g. the French SIREN of a business buyer."),splits:em.A.array().items(em.A.object().keys({type:em.A.string().valid("deposit","voucher","payment","balance").required(),reference:em.A.string().optional(),amount:em.A.number().required(),voucherId:em.A.string().optional(),method:em.A.string().optional(),gateway:em.A.string().optional(),gatewayId:em.A.string().optional()})).optional().description("How the invoice total was covered, e.g. by deposits, vouchers, customer balance or payments."),seller:em.A.object().keys({taxId:em.A.string().optional(),name:em.A.string().optional(),address:eH.optional()}
1).optional().description("The seller information persisted with the invoice."),posInfo:em.A.object().keys({posId:em.A.string().required(),no:em.A.string().required(),referenceInvoiceNo:em.A.string().optional(),sessionId:em.A.string().required(),billingNo:em.A.string().required(),taxId:em.A.string().optional(),paymentMethod:em.A.string().optional(),canceledAt:em.A.date().iso().optional(),cancellationNo:em.A.string().optional()}).optional().description("POS information of the invoice."),external:em.A.object().keys({documentUrl:em.A.string().optional().description("The externally hosted invoice document. An empty external object means the synchronization failed."),additionalDocumentUrl:em.A.string().optional().description("An additional externally hosted document for the invoice.")}).optional().description("Externally hosted documents replacing the generated invoice PDF."),secret:em.A.string().optional().description("The secret of the invoice."),referenceInvoiceId:em.A.string().optional().description("The ID of the invoice this invoice references, e.g. the negated invoice for a cancellation invoice."),footerText:em.A.array().items(em.A.string()).optional().description("The custom footer columns of the invoice."),createdAt:em.A.date().iso().optional().description("An ISO Timestamp indicating when the invoice was created."),updatedAt:em.A.date().iso().optional().description("An ISO Timestamp indicating when the invoice was last updated.")}).meta({model:"InvoiceResource"});let eG="The type of the cart item.",eY=em.f.object().keys({serviceTypeId:em.f.string().optional().description("The ID of the service type."),exceptionId:em.f.string().optional().description("The ID of the exception."),proceedsAccountId:em.f.string().optional().description("The ID of the proceeds account."),proceedsAccountCode:em.f.string().optional().description("The code of the proceeds account."),taxItems:em.f.array().items(eB).optional().description("The array of tax items.")}).description("The tax info details."),eQ={_id:em.f.string().optional().description("Unique identifier for the cart item. If omitted, the system will automatically generate one."),name:em.f.string().optional().allow(null).description("The name of the cart item."),amount:em.f.number().integer().min(1).required().description("The amount of the cart item."),netPrice:em.f.number().optional().description("The single piece net price of the cart item."),price:em.f.number().required().description("The single piece price of the cart item."),taxRate:em.f.number().optional().allow(null).description("The tax rate to be applied to this cart item. If not present the tax rate of the transaction is taken."),triggeredBy:em.f.alternatives(em.f.string().optional().description("An ID of another cart item which triggered the buy action of the cart item."),em.f.array().items(em.f.string()).description("An array of IDs of other cart items which triggered the buy action of the cart item.")).optional().allow(null).description("An ID or an array of IDs of other cart items which triggered the buy action of the cart item."),bundleInfo:em.f.object({bundleId:em.f.string(),componentId:em.f.string(),optionId:em.f.string()}).optional().unknown(!0).allow(null),packageInfo:em.f.object({packageId:em.f.string().optional(),packageConfigId:em.f.string().optional(),name:em.f.string().optional()}).allow(null).internal()},eJ=em.f.object().keys({type:em.f.string().required().valid(A.iC.product).description(eG),...eQ,productVariantId:em.f.string().required().description("The ID of the product variant."),isFulfillable:em.f.boolean().optional().default(!1).description("Whether the product can be delivered"),taxInfo:eY.optional()}).unknown(!0),eZ=em.f.object().keys({type:em.f.string().required().valid(...f.hB).description(eG),...eQ,data:em.f.object()}).unknown(!0),e0=em.f.object().keys({type:em.f.string().required().valid(A.iC.fulfillmentType).description(eG),...eQ,data:em.f.object().keys({fulfillmentTypeId:em.f.string().required().description("The ID of the fulfillment type."),cartItemIds:em.f.array().items(em.f.string()).description("The array of the related cart items IDs."),discountable:em.f.boolean().optional().description("Whether the fulfillment type is discountable.")})}),e1=em.f.object().keys({type:em.f.string().optional().valid(A.iC.ticket).default(A.iC.ticket).description(eG),...eQ,ticketTypeId:em.f.string().required().description("The ID of the ticket type of the cart item."),categoryRef:em.f.string().optional().description("The category reference of the ticket type."),seatingInfo:ev.optional().allow(null),slotInfo:ek.optional().allow(null),asHardTicket:em.f.boolean().optional().allow(null).description("Whether this ticket is a hard t
1icket."),listingId:em.f.string().optional().allow(null).description("Listing in secondary market."),listingItemId:em.f.string().optional().allow(null).description("The ID of the listing item in the secondary market."),triggeredAutomations:em.f.boolean().optional().allow(null).description("Whether the cart item triggered automations."),meta:em.f.object().optional().allow(null).description("Meta data which is propagated to the ticket."),addOns:em.f.array().items(ej).optional().description("A list of Add-Ons of the ticket."),capabilities:em.f.array().items(eb).allow(null).optional().description("The capabilities of the ticket."),taxInfo:eY.optional()}).unknown(!0);em.f.alternatives(em.f.object().keys({...(0,eg.zb)(e1,["_id","type","amount","ticketTypeId","seatingInfo","slotInfo","asHardTicket","listingId","triggeredBy","triggeredAutomations","meta","bundleInfo","packageInfo"])}).unknown(!0),em.f.object().keys({...(0,eg.zb)(eJ,["_id","type","amount","productVariantId","isFulfillable","triggeredBy","bundleInfo","packageInfo"]),price:eQ.price.optional()}).unknown(!0),eZ.unknown(!0)),function(e){e.detailsForm=(e,t,i)=>{var n,r;return em.f.object().keys({...e.enforceCompany?{company:em.f.string().required()}:{company:ef.s.optionalString},prename:em.f.string().trim().required(),lastname:em.f.string().trim().required(),email:ef.s.email.trim().required(),emailRepeat:ef.s.email.trim().valid(em.f.ref("email")).required().messages({"any.only":"joi:errors.emailsDoNotMatch"}),...i.capturePhoneNumber?{phone:ef.s.phone.disallow(null)}:{phone:ef.s.phone.optional().allow(null)},...i.createAccount&&{password:ef.s.password.required(),passwordRepeat:em.f.string().required().valid(em.f.ref("password")).messages({"any.only":"joi:errors.passwordsDoNotMatch"})},country:em.f.string().required(),state:em.f.when("country",{is:em.f.string().valid(...er.H),then:em.f.string().required(),otherwise:ef.s.optionalString}),line2:em.f.string().optional(),...!(null==e?void 0:e.skipAddressInfo)&&{street:em.f.string().required(),postal:em.f.string().required(),city:em.f.string().required()},...!(null==e?void 0:e.skipAddressInfo)&&i.enforceDifferentDeliveryAddress&&{deliveryAddress:{name:em.f.string().trim().required(),country:em.f.string().required(),state:em.f.when("country",{is:em.f.string().valid(...er.H),then:em.f.string().required(),otherwise:ef.s.optionalString}),street:em.f.string().required(),line2:em.f.string().optional(),postal:em.f.string().required(),city:em.f.string().required()}},...(null==i||null==(n=i.identificationConfig)?void 0:n.length)?{identification:eh.MA.min(1).required().custom((e,t)=>ee.s.identificationResourceValidator(e,t,i.identificationConfig))}:{identification:eh.MA},extraFields:em.f.object().keys({...null==e||null==(r=e.extraFields)?void 0:r.filter(i=>(0,Z.U)(i,e.extraFields,t)).reduce((e,t)=>{let i=t.slug||t._id;if(e[i]=(()=>{if(t.type===ep.$.checkbox)return em.f.bool();if(t.type===ep.$.number)return em.f.number();if(t.type===ep.$.text)return em.f.string();if(t.type===ep.$.email)return ef.s.email;if(t.type===ep.$.tel)return ef.s.phone;if(t.type===ep.$.country)return ef.s.country;if(t.type===ep.$.address){let e=t.required?em.f.string().required():ef.s.optionalString;return em.f.object({fullAddress:ef.s.optionalString,street:e,country:e,postal:e,city:e,state:em.f.when("country",{is:em.f.string().required().valid(...er.H),then:em.f.string().required(),otherwise:ef.s.optionalString})})}return em.f.any()})(),t.required?(e[i]=e[i].required(),t.type===ep.$.checkbox&&(e[i]=e[i].valid(!0))):e[i]=e[i].optional().allow("",null),t.type===ep.$.text&&(null!=t.minLength||null!=t.maxLength)){let n=e[i];null!=t.minLength&&(n=n.min(t.minLength)),null!=t.maxLength&&(n=n.max(t.maxLength)),e[i]=n}return e},{})}),...i.enforceFulfillmentTypes&&{fulfillmentTypes:em.f.array().items(e0).min(1).required()}}).unknown(!0)},e.posDetailsForm=(e,t,i)=>{var n,r;return em.f.object().keys({company:ef.s.optionalString,...i.posPersonalizationRequired?{prename:em.f.string().trim().required()}:{prename:ef.s.optionalString},...i.posPersonalizationRequired?{lastname:em.f.string().trim().required()}:{lastname:ef.s.optionalString},...i.posPersonalizationRequired?{email:ef.s.email.trim().required()}:{email:ef.s.email.trim().optional().allow(null,"")},...i.capturePhoneNumber?{phone:ef.s.phone.disallow(null)}:{phone:ef.s.phone.optional().allow(null)},...(null==i||null==(n=i.identificationConfig)?void 0:n.length)?{identification:eh.MA.min(1).required().custom((e,t)=>
1ee.s.identificationResourceValidator(e,t,i.identificationConfig))}:{identification:eh.MA},...i.enforceAddress?{street:em.f.string().required(),postal:em.f.string().required(),city:em.f.string().required(),state:em.f.when("country",{is:em.f.string().valid(...er.H),then:em.f.string().required(),otherwise:ef.s.optionalString}),line2:ef.s.optionalString}:{street:ef.s.optionalString,postal:ef.s.optionalString,city:ef.s.optionalString,state:ef.s.optionalString,line2:ef.s.optionalString},country:i.enforceAddress||i.enforceCountry?em.f.string().required():ef.s.optionalString,extraFields:em.f.object().keys({...null==e||null==(r=e.extraFields)?void 0:r.filter(i=>(0,Z.U)(i,e.extraFields,t)).reduce((e,t)=>{let i=t.slug||t._id;if(e[i]=t.type===ep.$.checkbox?em.f.bool():t.type===ep.$.number?em.f.number():t.type===ep.$.text?em.f.string():t.type===ep.$.email?ef.s.email:t.type===ep.$.tel?ef.s.phone:t.type===ep.$.country?ef.s.country:em.f.any(),t.required?(e[i]=e[i].required(),t.type===ep.$.checkbox&&(e[i]=e[i].valid(!0))):e[i]=e[i].optional().allow("",null),t.type===ep.$.text&&(null!=t.minLength||null!=t.maxLength)){let n=e[i];null!=t.minLength&&(n=n.min(t.minLength)),null!=t.maxLength&&(n=n.max(t.maxLength)),e[i]=n}return e},{})})}).unknown(!0)},e.completeInternalCheckout=e=>{var t;return em.f.object().keys({customerId:em.f.string().required().description("The ID of the customer"),fulfillmentTypes:em.f.array().items(e0).optional(),status:em.f.string().required().valid(g.$k.new,g.$k.complete).required().description("The status of the checkout"),paymentMethodId:em.f.string().optional().description('The ID of the payment method. Only used when status == "'.concat(g.$k.complete,'." Can only submit one payment method (this or CPM). If no payment method is submitted, a local payment is assumed')),customerPaymentMethodId:em.f.string().optional().description('The ID of the customer payment method. Only used when status == "'.concat(g.$k.complete,'"')),balance:em.f.number().optional().min(0).description("Amount of the customer's balance to apply towards the checkout. Only used when status == \"".concat(g.$k.complete,'". If it covers the full checkout price no other payment method is required.')),sendMail:em.f.boolean().optional().description("Whether to send checkout confirmation mail"),sendTicketMail:em.f.boolean().optional().default(!0).description('Whether to send ticket email on checkout completion. Only used when status == "'.concat(g.$k.complete,'" and checkout.type === "').concat(g.x6.Transaction,'"')),reference:em.f.string().optional().description("The reference of the local payment"),paymentStrategyId:em.f.string().optional().description("The ID of the payment strategy"),paymentOptionId:em.f.string().optional().description("The ID of the payment option"),extraFields:em.f.object().optional().description("The extra fields of the checkout"),...(null==e||null==(t=e.identificationConfig)?void 0:t.length)?{identification:eh.MA.min(1).required().custom((t,i)=>ee.s.identificationResourceValidator(t,i,e.identificationConfig))}:{identification:eh.MA},createReservedBySystemTransactions:em.f.boolean().default(!0).description("Whether to create reserved by system transactions. Applies only to new checkouts.").internal()})}}(n||(n={}));var e2=i(45001),e4=i.n(e2),e3=i(92390),e5=i(5909),e6=i(31724),e8=i(14359),e9=i(39123),e7=i(57404),te=i(596),tt=i(67405),ti=i(91993),tn=i(42310),tr=i(73794),to=i(23404),ts=i(70210),ta=i(20998),tl=i(12661),tc=i(24330),td=i(86177),tu=i(55634),tp=i(38734),tm=i(83043),th=i(76924),tf=i(4139),tg=i(32292),ty=i(13795),tv=i(59301),tx=i(4425),tA=i(95479),tb=i(43298),tj=i(71188);let tk=e4()(()=>Promise.all([i.e(9897),i.e(5563),i.e(4036)]).then(i.bind(i,4036)),{loadableGenerated:{webpack:()=>[4036]},ssr:!1}),tw=e=>{var t,i,o,s,a,l,c,u,p,m,h,f;let x=e.seller.url||e.seller._id,j=(0,T.useRouter)(),{t:k,i18n:w}=(0,b.Bd)(["common","checkout","auth"]),{data:I,isLoading:S}=(0,G.L)(null!=(f=null==(i=e.checkout)||null==(t=i.items)?void 0:t.map(e=>e.eventId).filter(Boolean))?f:[],w.language),{checkout:N}=e,F=(0,q.useRef)({company:N.company,prename:N.firstname,lastname:N.lastname,email:N.email,emailRepeat:N.email,phone:N.phone,street:null==(o=N.address)?void 0:o.street,postal:null==(s=N.address)?void 0:s.postal,city:null==(a=N.address)?void 0:a.city,country:null==(l=N.address)?void 0:l.country,state:null==(c=N.address)?void 0:c.state,deliveryAddress:N.deliveryAddress,extraFields:N.extraFields||{},fulfillmentTypes:e.fulfillmentTypes||d.z.getFulfillmentTypesForCheckout(N),consents:[],identification:N.identification}).current,D=()=>{let{requirementsConfig:t}=ee.s.getValidatedRequirements(e.seller,N.realPrice,F.identification,{country:F.country},F.company);return F.identification=ee.s.sanitizeIdentification(t,F.identification),t},{data:O,refetch:_}=(0,e3.useQuery)(["checkout",N._id,"detailsForm",(0,g.hr)(N).filter(e=>e.type===A.iC.ticket).map(e=>e._id).join()],async()=>await tt.A.getDetailsForm(N._id,N.secret,w.language),{enabled:!!N}),P=(0,q.useMemo)(()=>(null==O?void 0:O.ticketExtraFields)?Object.entries(O.ticketExtraFields).map(e=>{let[t,{tickets:i,fields:n}]=e,r=N.items.find(e=>e._id===t);return r&&r.tickets?r.tickets.map(e=>i.filter(t=>t.cartItemId===e._id)).flat().map(e=>{let t=(0,tj.v)(e,n);return{ticket:e,validator:t,ticketExtraFields:n.filter(t=>{var i;return!t.onlyForCertainTicketTypes||(null==(i=t.allowedTicketTypes)?void 0:i.includes(e.ticketTypeId))})}}):null}).filter(e6.h).flat():[],[O]),E=(0,Y.C)(),[R,L]=(0,q.useState)(!1),[M,z]=(0,q.useState)(!1),[$,H]=(0,q.useState)({step:"details",otpModalOpen:!1}),V="otp"===$.step,[B,W]=(0,q.useState)(""),em=(0,q.useRef)(!!N.deliveryAddress),eh=(0,q.useRef)(null),ef=()=>{L(!1),U.Ay.stop()},eg=async()=>{let e=await eo.G.getCountryCode(),t=null!=e?e:te.A.getDefaultCountry(navigator.language);F.country=t,W(t||""),E()},[ey,ev]=(0,q.useState)([]),ex=d.z.checkoutHasFulfillableItems(e.checkout)&&!!e.seller.fulfillmentTypes.length,eA=()=>{ev(e.seller.fulfillmentTypes.filter(e=>{var t,i;if(!I||S)return!1;let n=N.items.filter(e=>d.z.checkoutItemHasFulfillableItems(e)),r=I.filter(e=>n.map(e=>e.eventId).includes(e._id)).map(e=>new Date(e.start).getTime()),o=r.length>0?new Date(Math.min(...r)):void 0,s=null!=(i=null==(t=F.deliveryAddress)?void 0:t.country)?i:F.country;return d.z.isFulfillmentAvailable(e,o,s)}))},eb=()=>{var e;let t=document.querySelector(".error-message");(null==t||null==(e=t.parentElement)?void 0:e.parentElement)&&setTimeout(()=>{var e,i;return null==(i=t.parentElement)||null==(e=i.parentElement)?void 0:e.scrollIntoView({behavior:"smooth",block:"center"})},100)},ej={street:F.street,postal:F.postal,city:F.city,country:F.country,state:F.state},{requirementsConfig:ek}
1=ee.s.getValidatedRequirements(e.seller,N.realPrice,F.identification,ej,F.company),ew=!!ek&&ee.s.requiresAddress(ek),eI=(null==I?void 0:I.length)?I.every(e=>{var t;return null==(t=e.dataRequestSettings)?void 0:t.skipAddressInfo}):!!(null==O?void 0:O.skipAddressInfo),eT=eI&&!ew,eq=!eT,eS=!!(null==ek?void 0:ek.length),eN=async()=>{try{await ti.A.registerCustomer({sellerId:e.seller._id,email:F.email,password:F.password,prename:F.prename,lastname:F.lastname,company:F.company}),H({step:"otp",otpModalOpen:!0})}catch(e){(null==e?void 0:e.message)==="Customer already exists"?(tn.U.show(),C.X.info({title:k("common:errors.failed"),message:k("checkout:checkout.prompts.mailAlreadyInUse.message")})):C.X.info({title:k("common:errors.failed"),message:(null==e?void 0:e.message)||k("checkout:checkout.prompts.somethingWentWrong.message")})}ef()},eC=async t=>{if(!$.otpModalOpen)return H(e=>({...e,otpModalOpen:!0,otpError:null})),ef(),!1;if(!t||6!==t.length)return H(e=>({...e,otpError:k("auth:emailOtpLogin")})),ef(),!1;try{let i=await ti.A.loginAndSetToken(F.email,F.password,t,e.seller._id);if(!("token"in i))throw Error("Token is missing");return H({step:"details",otpModalOpen:!1}),!0}catch(e){H(e=>({...e,otpError:k("auth:otpInvalid")})),ef()}return!1},eF=async t=>{try{let i=await ti.A.loginAndSetToken(F.email,F.password,void 0,e.seller._id,t);if(!("next"in i)||"otp"!==i.next)throw Error("Unexpected response");H(e=>({...e,otpError:null}))}catch(e){throw H(e=>({...e,otpError:k("common:errors.failed")})),e}},eD=async e=>{let t=M&&!e7.A.get().customer&&!!F.email&&!!F.password;return t&&"details"===$.step?(await eN(),!1):(!t||"otp"!==$.step||!!await eC(e))&&!0},eO=async t=>{var i,r;if(!O)return void X.b.error(k("common:errors.failed"));for(let t of(eh.current=new el.A(F,n.detailsForm({...O,skipAddressInfo:!!eT},F.extraFields,{createAccount:M,capturePhoneNumber:null==(i=e.seller.dataRequestSettings)?void 0:i.capturePhoneNumber,enforceDifferentDeliveryAddress:em.current&&(null==(r=e.seller.dataRequestSettings)?void 0:r.allowDifferentDeliveryAddress),enforceFulfillmentTypes:ex,identificationConfig:eS?ek:void 0})),eh.current.check(),P))null==t||t.validator.check();if(eh.current.hasErrors()){E(),setTimeout(()=>eb(),60);return}for(let e of P)if(!(null==e?void 0:e.ticket.personalized)||(null==e?void 0:e.validator.hasErrors())){E(),setTimeout(()=>eb(),60);return}if(L(!0),U.Ay.start(),await eD(t))try{let t=e8.c(F,["passwordRepeat","password"]),i=await tt.A.checkoutPostDetails(N._id,{...t,secret:N.secret});L(!1),await e.customerDetailsProvided(i,!0),U.Ay.stop()}catch(e){L(!1),U.Ay.stop(),(0,J.bJ)(e)&&"E-Mail already in use."==e.message?(tn.U.show(),C.X.info({title:k("common:errors.failed"),message:k("checkout:checkout.prompts.mailAlreadyInUse.message")})):(0,J.bJ)(e)&&"Network Error"==e.message?(await C.X.info({title:k("checkout:checkout.prompts.networkError.title"),message:k("checkout:checkout.prompts.networkError.message")}),j.push("/seller/"+x)):C.X.info({title:k("common:errors.failed"),message:k("checkout:checkout.prompts.somethingWentWrong.message")})}},e_=async()=>{var t,i;if(!O)return void X.b.error(k("common:errors.failed"));if(eh.current=new el.A(F,n.detailsForm({...O,skipAddressInfo:!!eT},F.extraFields,{createAccount:!1,capturePhoneNumber:null==(t=e.seller.dataRequestSettings)?void 0:t.capturePhoneNumber,enforceDifferentDeliveryAddress:em.current&&(null==(i=e.seller.dataRequestSettings)?void 0:i.allowDifferentDeliveryAddress),enforceFulfillmentTypes:ex,identificationConfig:eS?ek:void 0})),eh.current.check(),eh.current.hasErrors())throw Error("Form validation failed");let r=e8.c(F,["passwordRepeat","password"]),o=await tt.A.checkoutPostDetails(N._id,{...r,secret:N.secret});await e.customerDetailsProvided(o,!1)},eP=(0,e9.DK)(()=>{e.onLogin(),E()});(0,tf.R)(e7.A.get().onLogin,eP),(0,q.useEffect)(()=>{!S&&O&&eA()},[S,O,B]);let{customer:eE}=e7.A.get();(0,q.useEffect)(()=>{eE&&(t=>{var i,n,r,o,s,a,l;if(t){if((e=>!e||""==e)(F.company)&&(F.company=t.company),(e=>!e||""==e)(F.city)&&(F.city=null==(r=t.location)?void 0:r.city),F.email=t.primaryEmail,F.emailRepeat=t.primaryEmail,(e=>!e||""==e)(F.phone)&&(F.phone=t.phone),(e=>!e||""==e)(F.prename)&&(F.prename=t.prename),(e=>!e||""==e)(F.lastname)&&(F.lastname=t.lastname),(e=>!e||""==e)(F.postal)&&(F.postal=null==(o=t.location)?void 0:o.postal),(e=>!e||""==e)(F.street)&&(F.street=null==(s=t.location)?void 0:s.street),(e=>!e||""==e)(F.country)&&(F.country=null==(a=t.location)?void 0:a.country,eA()),(e=>!e||""==e)(F.state)&&(F.state=null==(l=t.location)?void 0:l.state),!(null==(i=F.identification)?void 0:i.length)&&(null==(n=t.identification)?void 0:n.length)){let i=ee.s.getAllowedTypes(ee.s.getCountryRequirements(e.seller));t.identification.filter(e=>
1i.includes(e.type)).forEach(e=>{var t;null==(t=F.identification)||t.push(e)})}z(!1),E()}})(eE)},[eE]),(0,q.useEffect)(()=>{O&&eg()},[O]),(0,q.useEffect)(()=>{F.fulfillmentTypes=ex?e.fulfillmentTypes:[]},[e.fulfillmentTypes]);let{data:eR,isLoading:eL}=(0,e3.useQuery)(["consent-data",e.seller._id,null==eE?void 0:eE._id,w.language],async()=>{let{customer:t}=e7.A.get();if(!(null==t?void 0:t.consentManagementToken))return{consents:await Q.A.listConsents(e.seller._id,w.language)};let i=await Q.A.getCustomerConsents({token:t.consentManagementToken,sellerId:e.seller._id,customerId:t._id.toString()});return{consents:i.availableConsents,customerConsents:i.consents}},{enabled:(0,y.i3)(e.seller,y.KV.Consents)}),{data:eM,isLoading:ez}=(0,e3.useQuery)(["consent-checkout",e.seller._id,w.language],()=>Q.A.listConsents(e.seller._id,w.language,{visibleInCheckout:!0}),{enabled:(0,y.i3)(e.seller,y.KV.Consents)}),e$=(0,q.useMemo)(()=>eM&&Array.isArray(eM)?eM:[],[eM]),eU=(0,q.useMemo)(()=>(null==eR?void 0:eR.customerConsents)?new Set(eR.customerConsents.filter(e=>"granted"===e.status).map(e=>e.consentId)):new Set,[null==eR?void 0:eR.customerConsents]);if((0,q.useEffect)(()=>{(null==eR?void 0:eR.customerConsents)&&F.consents&&(eR.customerConsents.forEach(e=>{var t,i;(null==(t=F.consents)?void 0:t.some(t=>t.consentId===e.consentId))||null==(i=F.consents)||i.push({consentId:e.consentId,status:e.status})}),E())},[null==eR?void 0:eR.customerConsents]),!O)return(0,r.jsx)(ty.N,{});let eH=e=>{e.country&&!(0,er.Z)(e.country)&&(e.state=void 0)},eV=()=>{eH(F);let e=D(),t=!!e&&ee.s.requiresAddress(e);eq&&eI&&!t&&(F.street=void 0,F.postal=void 0,F.city=void 0),E(),eA()},eB=()=>{F.deliveryAddress&&(eH(F.deliveryAddress),E(),eA())},eW=(t,i)=>t?(0,y.i3)(e.seller,y.KV.AddressAutocomplete)?(0,r.jsx)(tk,{onAddressSelect:((e,t)=>(i,n)=>{let{street:r,city:o,postal:s,country:a,state:l}=(0,en.l)(i);e.street=r,e.state=l,e.city=o,e.postal=s,e.country=a,t()})(t,i),children:e=>{let{onChange:i,onFocus:n,onBlur:o}=e;return(0,r.jsx)(ea.A,{link:new ec.a(t,"street"),title:k("common:address"),type:"text",required:!0,autoComplete:t.street&&t.street.length<3?"address-line1":"none",onChange:i,onFocus:n,onBlur:o})}}):(0,r.jsx)(ea.A,{link:new ec.a(t,"street"),title:k("common:street"),type:"text",required:!0,autoComplete:"address-line1"}):null;return(0,r.jsxs)(tr.G,{enforce:eu.N.resolve(e.seller,null,null)===ed.g.PreventDetailsStep||eu.N.resolveFromItems((0,g.hr)(e.checkout))===ed.g.PreventDetailsStep,children:[$.otpModalOpen&&(0,r.jsx)(tx.a,{error:$.otpError,disabled:R,onComplete:e=>eO(e),onResend:eF,onClose:()=>{H(e=>({...e,otpModalOpen:!1,otpError:null}))}}),(0,r.jsxs)(es.Ay,{validator:eh.current,children:[(0,r.jsxs)("div",{children:[!V&&(0,r.jsx)(to.U,{children:(0,r.jsxs)(e5.tU,{selectedIndex:+!M,onSelect:e=>{z(0===e)},children:[(0,r.jsxs)(e5.wb,{style:{marginTop:0},children:[(0,r.jsx)(tg.A,{children:k("checkout:stepTwo.tabs.registerOrLogIn")}),(0,r.jsx)(tg.A,{children:k("checkout:stepTwo.tabs.orderAsGuest")})]}),(0,r.jsx)(e5.Kp,{children:(0,r.jsx)("button",{className:"btn bordered w100 mb-24",onClick:()=>e7.A.get().requestLogin(e.seller,e.domainCtx),children:k("common:login")})}),(0,r.jsx)(e5.Kp,{})]})}),N.type===g.x6.Transaction&&N.realPrice>v.as&&!ex&&!M&&(!O.enforceCompany||!!F.company)&&!(null==(u=O.extraFields)?void 0:u.some(e=>!e.deleted))&&N.items.every(e=>!e.deposit)&&!O.ticketExtraFields&&!(null==ek?void 0:ek.length)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tA.l,{checkout:N,onPaymentSucceeded:e.onPaymentSucceeded,onPaymentFailed:e.onPaymentFailed,onCustomerDetailsProvided:()=>e_(),theme:"white",customerDetails:F,skipAddressInfo:!!eT}),(0,r.jsx)("div",{className:"vi-mb-4"})]}),(0,r.jsx)("h1",{className:"h2 mt-0",children:k("checkout:stepTwo.personalDataSection.yourDetails")}),(0,r.jsx)("h2",{className:"h5 mb-6 mt-12",children:k("checkout:stepTwo.personalDataSection.name")}),O.captureCompany&&(0,r.jsx)(ea.A,{link:new ec.a(F,"company"),title:O.enforceCompany?k("common:company"):k("checkout:stepTwo.personalDataSection.companyOptional"),type:"text",autoFocus:!0,autoComplete:"organization",required:O.enforceCompany,onChange:()=>{D(),E()}}
1),(0,r.jsxs)("div",{className:"vi-grid md:vi-grid-cols-2 md:vi-gap-3",children:[(0,r.jsx)(ea.A,{link:new ec.a(F,"prename"),title:k("common:firstName"),type:"text",required:!0,autoComplete:"given-name"}),(0,r.jsx)(ea.A,{link:new ec.a(F,"lastname"),title:k("common:lastName"),type:"text",required:!0,autoComplete:"family-name"})]}),(0,r.jsx)("h2",{className:"h5 mb-6",children:k("checkout:stepTwo.personalDataSection.yourEmail")}),(0,r.jsxs)("div",{className:"vi-grid md:vi-grid-cols-2 md:vi-gap-3",children:[(0,r.jsx)(ea.A,{link:new ec.a(F,"email"),title:k("checkout:stepTwo.personalDataSection.emailAddress"),type:"email",readOnly:!!e7.A.get().customer||V,required:!0,autoComplete:"email"}),(0,r.jsx)(ea.A,{link:new ec.a(F,"emailRepeat"),title:k("checkout:stepTwo.personalDataSection.emailAddressRepeat"),type:"email",readOnly:!!e7.A.get().customer||V,required:!0,autoComplete:"email",preventCopyPaste:!0})]}),(null==(p=e.seller.dataRequestSettings)?void 0:p.capturePhoneNumber)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"h5 mb-6",children:k("checkout:stepTwo.personalDataSection.yourPhone")}),(0,r.jsx)(tu.A,{link:new ec.a(F,"phone"),country:B,labels:{country:k("common:selectCountry"),phone:k("common:telephone")}})]}),!V&&(0,r.jsx)(to.U,{children:M?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"h5 mb-6",children:k("checkout:stepTwo.personalDataSection.yourPassword")}),(0,r.jsxs)("div",{className:"vi-grid md:vi-grid-cols-2 md:vi-gap-3",children:[(0,r.jsx)(ea.A,{link:new ec.a(F,"password"),title:k("common:password"),type:"password",required:!0,autoComplete:"current-password"}),(0,r.jsx)(ea.A,{link:new ec.a(F,"passwordRepeat"),title:k("common:passwordRepeat"),type:"password",required:!0,autoComplete:"current-password"})]})]}):null}),(0,r.jsx)("h2",{className:"h5 mb-6",children:k("checkout:stepTwo.personalDataSection.yourAddress")}),eq?(0,r.jsxs)(r.Fragment,{children:[eW(F,eV),(0,r.jsx)(ts.A,{link:new ec.a(F,"country"),placeHolder:k("common:selectCountry"),onChange:eV,ariaLabel:k("common:country"),required:!0}),(0,r.jsxs)("div",{className:"vi-grid md:vi-grid-cols-3 md:vi-gap-3",children:[(0,r.jsx)(ea.A,{link:new ec.a(F,"postal"),title:k("common:zip"),type:"text",required:!0,autoComplete:"postal-code",className:"vi-col-span-1"}),(0,r.jsx)(ea.A,{link:new ec.a(F,"city"),title:k("common:city"),type:"text",required:!0,autoComplete:"address-level2",className:"vi-col-span-1 md:vi-col-span-2"})]})]}):(0,r.jsx)(ts.A,{link:new ec.a(F,"country"),placeHolder:k("common:selectCountry"),onChange:eV,ariaLabel:k("common:country"),required:!0}),F.country&&(0,er.Z)(F.country)&&(0,r.jsx)(th.Q,{link:new ec.a(F,"state"),ariaLabel:k("common:state"),required:!0,country:F.country}),eS&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"h5 mb-6",children:k("common:identification.title")}),(0,r.jsx)(K._,{holder:F,config:ek})]}),(null==(m=e.seller.dataRequestSettings)?void 0:m.allowDifferentDeliveryAddress)&&!eT&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tl.A,{link:new ec.a(em,"current"),title:k("checkout:stepTwo.personalDataSection.differentDeliveryAddress"),change:()=>{em.current?F.deliveryAddress={}:(F.deliveryAddress=void 0,eA()),E()},className:"mt-12 mb-12"}),em.current&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"h5 mb-6",children:k("checkout:stepTwo.personalDataSection.yourDeliveryAddress")}),(0,r.jsx)(ea.A,{link:new ec.a(F,"deliveryAddress.name"),title:k("checkout:stepTwo.personalDataSection.name"),type:"text",required:!0,autoComplete:"name"}),eW(F.deliveryAddress,eB),(0,r.jsx)(ts.A,{link:new ec.a(F,"deliveryAddress.country"),placeHolder:k("common:selectCountry"),onChange:eB,ariaLabel:k("common:country"),required:!0}),(0,r.jsxs)("div",{className:"vi-grid md:vi-grid-cols-3 md:vi-gap-3",children:[(0,r.jsx)(ea.A,{link:new ec.a(F,"deliveryAddress.postal"),title:k("common:zip"),type:"text",required:!0,autoComplete:"postal-code",className:"vi-col-span-1"}),(0,r.jsx)(ea.A,{link:new ec.a(F,"deliveryAddress.city"),title:k("common:city"),type:"text",required:!0,autoComplete:"address-level2",className:"vi-col-span-1 md:vi-col-span-2"})]}),(null==(h=F.deliveryAddress)?void 0:h.country)&&(0,er.Z)(F.deliveryAddress.country)&&(0,r.jsx)(th.Q,{link:new ec.a(F,"deliveryAddress.state"),ariaLabel:k("common:state"),required:!0,country:F.deliveryAddress.country})]})]}),(()=>{var t;let i=null==(t=O.extraFields)?void 0:t.filter((e,t,i)=>(0,Z.U)(e,i,F.extraFields));return i&&0!=i.length?(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)("h2",{className:"mb-0 h5",children:k("checkout:stepTwo.extraFields.title")}),(0,r.jsx)("div",{className:"text muted-3",children:k("checkout:stepTwo.extraFields.sellerNeedsMoreInformation")}),i.map(t=>{var i,n;let o=t.slug||t._id;return(0,r.jsxs)("div",{children:[void 0==t.type||t.type==ep.$.text||t.type==ep.$.email?(0,r.jsx)(ea.A,{type:t.type||"text",link:new ec.a(F,"extraFields.".concat(o)),title:t.name,description:t.description,required:t.required,minLength:t.minLength,maxLength:t.maxLength,onChange:()=>{et.r.handleConditionsOnInputFieldChange(O.extraFields,F.extraFields),E()}}):null,t.type===ep.$.tel&&(0,r.jsx)(tu.A,{link:new ec.a(F,"extraFields.".concat(o)),title:t.name,description:t.description,country:F.country,labels:{country:k("common:selectCountry"),phone:k("common:telephone")},onChange:()=>{et.r.handleConditionsOnInputFieldChange(O.extraFields,F.extraFields),E()}}),t.type===ep.$.country&&(0,r.jsx)(ts.A,{title:t.name,link:new ec.a(F,"extraFields.".concat(o)),description:t.description||"",required:t.required,placeHolder:k("common:country"),ariaLabel:t.name,onChange:()=>{et.r.handleConditionsOnInputFieldChange(O.extraFields,F.extraFields),E()}}),t.type==ep.$.number?(0,r.jsx)(ea.A,{type:"number",link:new ec.a(F,"extraFields.".concat(o)),title:t.name,description:t.description,required:t.required,onChange:()=>{et.r.handleConditionsOnInputFieldChange(O.extraFields,F.extraFields),E()}}):null,t.type==ep.$.checkbox?(0,r.jsx)(tl.A,{link:new ec.a(F,"extraFields.".concat(o)),title:t.name,description:t.description,required:t.required,
1change:()=>{et.r.handleConditionsOnInputFieldChange(O.extraFields,F.extraFields),E()}}):null,t.type==ep.$.select?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(tp.A,{link:new ec.a(F,"extraFields.".concat(o)),title:t.name+(t.required?" "+k("checkout:stepTwo.extraFields.required"):""),ariaLabel:t.name,description:t.description,options:t.options?t.options.filter(e=>""!=e).map(e=>({value:e,label:e})):[],required:t.required,onChange:()=>{et.r.handleConditionsOnInputFieldChange(O.extraFields,F.extraFields),E()}})}):null,t.type==ep.$.date?(0,r.jsx)(tc.A,{link:new ec.a(F,"extraFields.".concat(o)),title:t.name,description:t.description,dateOnly:!0,initialViewMode:"years",preventManualInput:!0,ariaLabel:t.name,ariaLabelId:t.slug,transformer:ei.i.DATE,required:t.required,onChange:()=>{et.r.handleConditionsOnInputFieldChange(O.extraFields,F.extraFields),E()}}):null,t.type===ep.$.documentUpload?(0,r.jsx)(td.A,{link:new ec.a(F,"extraFields.".concat(o)),title:t.name,description:t.description,placeHolder:k("checkout:stepTwo.extraFields.chooseFile"),required:t.required,onChange:()=>{et.r.handleConditionsOnInputFieldChange(O.extraFields,F.extraFields),E()},accept:null==(n=t.settings)||null==(i=n.allowedMimeTypes)?void 0:i.join(",")}):null,t.type===ep.$.address?(0,r.jsx)(ta.A,{link:new ec.a(F,"extraFields.".concat(o)),title:t.name,description:t.description,required:t.required,seller:e.seller,onChange:()=>{et.r.handleConditionsOnInputFieldChange(O.extraFields,F.extraFields),E()}}):null,t.type==ep.$.signature?(0,r.jsx)(tm.A,{link:new ec.a(F,"extraFields.".concat(o)),title:t.name,description:t.description,field:t}):null]},o)})]}):null})(),O.ticketExtraFields?(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("h2",{className:"mb-0 h5 vi-pt-2",children:k("checkout:stepTwo.personalization.personalizationRequired")}),(0,r.jsx)("div",{className:"text muted-3",children:k("checkout:stepTwo.personalization.organizerRequiresPersonalizationPreCheckout")}),(0,r.jsx)(tj.x,{state:P,seller:e.seller,refetchTicket:_})]}):null,(()=>{if(eL||ez||0===e$.length)return null;let e=e$.filter(e=>!eU.has(e._id));return 0===e.length?null:(0,r.jsx)("div",{children:e.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(tl.A,{title:e.name,description:e.description,link:new ec.a({get granted(){return(e=>{var t;let i=null==(t=F.consents)?void 0:t.find(t=>t.consentId===e);return(null==i?void 0:i.status)==="granted"})(e._id)},set granted(value){((e,t)=>{F.consents||(F.consents=[]);let i=F.consents.filter(t=>t.consentId!==e);F.consents=[...i,{consentId:e,status:t?"granted":"denied"}],E()})(e._id,value)}},"granted")})},e._id))})})(),(()=>{var t;return!ex||S?null:(0,r.jsx)(tb.b,{seller:e.seller,applicableFulfillmentTypes:ey,fulfillmentTypes:e.fulfillmentTypes,checkout:e.checkout,errors:null==(t=eh.current)?void 0:t.errors,onFulfillmentTypeSelected:t=>e.onFulfillmentTypeSelected(t)})})()]}),(0,r.jsx)(tv.R,{seller:e.seller,buttonText:e.buttonText}),(0,r.jsx)("button",{disabled:R,className:"btn default block mt-24",onClick:()=>eO(),children:e.buttonText})]})]})};var tI=i(59620),tT=i(15111),tq=i(62097),tS=i(81438),tN=i(48245),tC=i(30245),tF=i(84072),tD=i(47491),tO=i(33792),t_=i(92458),tP=i(50574),tE=i(18129),tR=i(9270),tL=i(26850),tM=i(8347);function tz(e){let{steps:t,activeStep:i}=e;return(0,r.jsx)("div",{className:"vi-flex vi-items-center vi-mx-auto vi-gap-3 vi-text-seller-accent-foreground vi-text-sm",children:t.map((e,n)=>(0,r.jsxs)(q.Fragment,{children:[(0,r.jsx)("div",{className:(0,p.A)({"vi-font-bold":e.id===i,"vi-opacity-90":e.id!==i}),children:e.title}),n<t.length-1&&(0,r.jsx)("div",{className:"vi-text-xs",style:{marginTop:"2px"},children:"\xb7"})]},e.id))})}function t$(e){var t;let{i18n:i}=(0,b.Bd)(["checkout"]),{seller:n,checkout:o}=e,{event:s}=(0,tL.V)(o.items[0].eventId,i.language);return s?(0,r.jsx)(W,{locale:i.language,seller:n,crossSells:null==(t=s.upsellSettings)?void 0:t.crossSells}):null}var tU=!0;let tH=(e,t,i)=>(0,tM.ky)({locale:e.detectedLocale,sellerId:i,appProps:t}),tV=e=>{let{seller:t,organization:i}=e,{t:n,i18n:p}=(0,b.Bd)(["transaction","checkout","common"]);if(!t)return(0,r.jsx)(tS.M,{code:404,message:n("seller:sellerCouldNotBeFound")});let j=(0,T.useRouter)(),[w,P]=(0,q.useState)(null),[E,R]=(0,q.useState)(void 0),L=(0,q.useRef)(!1),[M,z]=(0,q.useState)(null),[$,U]=(0,q.useState)(!1),[H,V]=(0,q.useState)(!1),B=w?(0,g.hr)(w).filter(e=>e.planId):[],W=B.filter(e=>e.type===A.iC.ticket).length>0,K=(0,y.i3)(t,y.KV.TicketInsurances)&&(null==w?void 0:w.type)===g.x6.Transaction&&!W,X=(0,t_.br)();async function G(){let e=await tt.A.getCheckout(j.query.checkoutId.toString(),j.query.secret.toString());return P(e),e}async function Y(){V(!0);try{var e;let i=await c.A.getOffers({checkoutId:j.query.checkoutId.toString(),secret:j.query.secret.toString(),sellerId:t._id.toString()});z(i);let n=(null!=(e=null==i?void 0:i.events)?e:[]).some(e=>{var t;return(null==(t=e.offers)?void 0:t.length)>0});U(n)}catch(e){console.error("Error fetching insurance offers",e)}finally{V(!1)}}let Q=(0,q.useMemo)(()=>{var e;return JSON.stringify(null==w||null==(e=w.items)?void 0:e.map(e=>{var t;return{_id:e._id,eventId:e.eventId,tickets:e.tickets,products:e.products,additionalItems:null==(t=e.additionalItems)?void 0:t.filter(e=>!(0,f.FD)(e))}}).sort())},[w]);(0,q.useEffect)(()=>{var e,t,i;let n=null==w||null==(i=w.items)||null==(t=i.flatMap(e=>e.tickets))||null==(e=t.filter(Boolean))?void 0:e.length;K&&"review"===E&&n?Y():(z(null),U(!1),V(!1))},[Q,E]);let[J,Z]=(0,q.useState)(!1);(0,q.useEffect)(()=>{let e;if(!J)return;let t=function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;i>=10||(e=setTimeout(()=>{G(),t(i+1)},1e3*2**(i-1)))};return t(1),()=>clearTimeout(e)},[J]),(0,q.useEffect)(()=>{j.query.checkoutId&&j.query.secret&&G()},[j.query.checkoutId,j.query.secret]);let[ee,et]=(0,q.useState)(void 0);(0,q.useEffect)(()=>{let e=tR.A.withPreferences({country:t.locationCountry});null==e||e.init({enabled:!0,sellerId:t._id}
1,t.shopSettings.tracking,(0,h.$)(t)),et(e)},[t]),(0,q.useEffect)(()=>{var e;if(w){if(es(),w.status===g.$k.complete){async function i(){if(!L.current){var e,i;L.current=!0,l.h.triggerCheckoutCompletedEvent(w),await (null==ee?void 0:ee.checkoutCompleted(w.realPrice,w.currency,{customerId:w.customerId,email:w.email,firstName:w.firstname,lastName:w.lastname,phone:w.phone,country:null==(e=w.address)?void 0:e.country,locale:w.preferredLanguage,tags:null==(i=e7.A.get().customer)?void 0:i.tags},w))}j.push((0,t_.fm)(w,t,X),void 0)}tP.X.shared.drop(),i();return}if((null==(e=tP.X.shared.checkout)?void 0:e._id)===w._id&&(tP.X.shared.checkout=w),w.status===g.$k.aborted){C.X.info({title:n("checkout:checkout.prompts.orderAborted.title"),message:n("checkout:checkout.prompts.orderAborted.message")}),j.push((0,t_.oU)({_id:w.sellerId},X));return}}},[w]);let ei=async(e,i)=>{var n,r;i&&P(e),await (null==ee?void 0:ee.detailsSubmitted(e._id,{customerId:e.customerId,email:e.email,firstName:e.firstname,lastName:e.lastname,phone:e.phone,country:null==(n=e.address)?void 0:n.country,locale:e.preferredLanguage,tags:null==(r=e7.A.get().customer)?void 0:r.tags},e)),i&&j.push((0,t_.CO)(e,t)+"&step=".concat(i),void 0,{shallow:!0,scroll:!0})},[en,er]=(0,q.useState)([]),eo=e=>{let i=[];if(!e)return void er(i);w.items.forEach(n=>{let r=(0,u.LH)(d.z.getFulfillableItemsForCheckoutItem(n).map(e=>e._id));if(!r.length)return;let o=d.z.getFulfillmentTypeItemPriceForCheckoutItem(n,e,t.currency,w),s=x.Ay.cartItemFromFulfillmentType(e,o,r);i.push(s)}),er(i)},es=()=>
1{if(!t.fulfillmentTypes.length)return;let e=d.z.getFulfillmentTypesForCheckout(w);if(!e.length)return void er([]);let i=e[0].data.fulfillmentTypeId;eo(t.fulfillmentTypes.find(e=>e._id===i))};if((0,q.useEffect)(()=>{_.v.applyCheckoutStyling({theme:"white",accentColor:t.accentColor,sellerInfo:t})},[]),(0,q.useEffect)(()=>{R(j.query.step||"details")},[j.query.step]),!w||w.status===g.$k.complete)return(0,r.jsx)("div",{children:n("common:loading")});let ea=async e=>{var t,i;let n=(0,u.jw)(((null==(i=w.redeemedVouchers)||null==(t=i.vouchers)?void 0:t.map(e=>e.code))||[]).concat(e.code));P(await tt.A.updateCheckout(w._id,{secret:w.secret,vouchers:n}))},el=async()=>{let e=await tN.i.enter();e&&e.voucher&&ea(e.voucher)},ec=0===w.realPrice||w.realPrice>=v.as,ed=w.items.length>0,eu=(0,y.i3)(t,y.KV.Products)&&w.type!==g.x6.PurchaseIntent&&!w.items.some(e=>e.transactionId);return(0,r.jsxs)("div",{className:"white",children:[(0,r.jsx)(tE.u,{}),(0,r.jsxs)(tO.O3,{seller:t,organization:i,children:[(0,r.jsx)(tF.x,{seller:t}),(0,r.jsxs)(tq.v,{ignoreActionsHeader:!0,children:[(0,r.jsxs)(k(),{children:[(0,r.jsx)("meta",{name:"robots",content:"noindex"}),(0,r.jsx)("title",{children:n("checkout:details.detailsAndPay")})]}),(0,r.jsx)("div",{className:"checkout-hero",children:(0,r.jsx)("div",{className:"banner"})}),(0,r.jsx)(tD.Y,{hideCheckoutPill:!0,hideAccountPill:!0,seller:t,transparent:!0,children:(0,r.jsx)("div",{className:"vi-hidden md:vi-block",children:(0,r.jsx)(tz,{steps:[{id:"details",title:n("transaction:headings.details")},...K?[{id:"review",title:n("transaction:headings.review")}]:[],{id:"payment",title:n("transaction:headings.payment")}],activeStep:E})})}),(0,r.jsxs)("div",{className:"container vi-mt-2 md:!vi-mt-9",children:[(0,r.jsx)("div",{className:"vi-flex md:vi-hidden vi-mb-2",children:(0,r.jsx)(tz,{steps:[{id:"details",title:n("transaction:headings.details")},...K?[{id:"review",title:n("transaction:headings.review")}]:[],{id:"payment",title:n("transaction:headings.payment")}],activeStep:E})}),"details"==E&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{className:"col-md-4",children:(0,r.jsxs)("div",{className:"section pd-24 shadow",children:[(0,r.jsx)("h2",{className:"mt-0",children:n("common:cart")}),(0,r.jsxs)("div",{className:"cart",children:[!!w.expiresAt&&(0,r.jsx)(tT.A,{type:"neutral",children:(0,r.jsxs)("div",{style:{lineHeight:"1em"},children:[n("checkout:details.cartExpiresIn")," ",(0,r.jsx)(N.A,{until:new Date(w.expiresAt),children:e=>(0,r.jsx)(O.P,{minutes:e})})]})}),(0,r.jsx)(D.m,{checkout:w,canEdit:"details"===E,fulfillmentTypes:en,onCheckoutChanged:e=>P(e)})]})]})}),(0,r.jsx)("div",{className:"col-md-8",children:(0,r.jsx)("div",{className:"section pd-24 shadow",children:(0,r.jsx)(tw,{onLogin:async()=>{if((0,y.i3)(t,y.KV.Entitlements)){var e,i;let t=(0,u.jw)(null==(i=w.redeemedVouchers)||null==(e=i.vouchers)?void 0:e.map(e=>e.code));P(await tt.A.updateCheckout(w._id,{secret:w.secret,vouchers:t}))}},checkout:w,seller:t,customerDetailsProvided:async(e,t)=>{ei(e,K?"review":t?"payment":void 0)},accountsModule:!!t.modules[y.KV.Accounts],onPaymentSucceeded:()=>Z(!0),onPaymentFailed:()=>G(),onFulfillmentTypeSelected:e=>eo(e),fulfillmentTypes:"details"===E?en:void 0,buttonText:K?n("common:continue"):n("checkout:checkout.buttons.continueToPayment")})})})]}),1===w.items.length&&(0,r.jsx)(t$,{seller:t,checkout:w})]}),"review"==E&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{className:"col-md-4",children:(0,r.jsxs)("div",{className:"section pd-24 shadow",children:[(0,r.jsx)("h2",{className:"mt-0",children:n("common:orderOverview")}),(0,r.jsxs)("div",{className:"cart",children:[!!w.expiresAt&&(0,r.jsx)(tT.A,{type:"neutral",children:(0,r.jsxs)("div",{style:{lineHeight:"1em"},children:[n("checkout:details.cartExpiresIn")," ",(0,r.jsx)(N.A,{until:new Date(w.expiresAt),children:e=>(0,r.jsx)(O.P,{minutes:e})})]})}),(0,r.jsx)(D.m,{checkout:w,canEdit:!1,onCheckoutChanged:e=>P(e)})]})]})}),(0,r.jsx)("div",{className:"col-md-8",children:(0,r.jsxs)("div",{className:"section pd-24 shadow",children:[(0,r.jsx)("h1",{className:"h2 mt-0",children:n("common:reviewYourOrder")}),(0,r.jsx)("div",{className:"vi-mt-6",children:(0,r.jsx)(o.N,{checkout:w})}),M&&(0,r.jsx)("div",{className:"vi-mt-6 vi-mb-6 vi-border-t vi-pt-4",children:(0,r.jsx)(s.A,{checkout:w,insuranceOffers:M,seller:t,onChange:e=>{P(e)},onInsuranceDecisionComplete:()=>{U(!1)}})}),(0,r.jsxs)("div",{className:"mt-4 vi-flex vi-flex-col vi-items-stretch md:vi-flex-row md:vi-items-center vi-gap-2",children:[(0,r.jsx)(F.$,{size:"lg",className:"vi-relative",variant:"outline",asChild:!0,children:(0,r.jsx)(I(),{href:(0,t_.CO)(w,t)+"&step=detail
1s",shallow:!0,scroll:!1,children:(0,r.jsx)("span",{children:n("common:back")})})}),$||H?(0,r.jsxs)(F.$,{size:"lg",className:"vi-w-full",disabled:!0,children:[(0,r.jsx)("span",{className:"vi-opacity-75 vi-me-1",children:n("common:continueTo")}),(0,r.jsx)("span",{children:n("transaction:headings.payment")})]}):(0,r.jsx)(F.$,{size:"lg",className:"vi-w-full",asChild:!0,children:(0,r.jsxs)(I(),{href:(0,t_.CO)(w,t)+"&step=payment",shallow:!0,scroll:!0,children:[(0,r.jsx)("span",{className:"vi-opacity-75 vi-me-1",children:n("common:continueTo")}),(0,r.jsx)("span",{children:n("transaction:headings.payment")})]})})]})]})})]})}),"payment"==E&&(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{className:"col-md-8",children:(0,r.jsx)("div",{className:"section pd-24 shadow",children:ec&&ed?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h1",{className:"h2 vi-text-xl vi-tracking-tight vi-font-semibold vi-mb-2 vi-mt-0",children:n("checkout:paymentsForm.howDoYouWantToPay")}),(0,r.jsx)(a.p,{checkout:w,onSucceed:()=>{Z(!0)},theme:"white",subscriptionPlanIds:S.A((0,u.LH)(B.map(e=>e.planId)))})]}):(0,r.jsxs)("div",{className:"vi-flex vi-flex-col vi-space-y-4",children:[(0,r.jsx)("h1",{className:"h2 m-0",children:n("checkout:details.paymentNotPossible")}),!ec&&(0,r.jsx)("p",{children:n("checkout:details.paymentDoesNotMeetMinPriceRequirements",{value:(0,m.N8)(p.language,v.as,w.currency)})}),!ed&&(0,r.jsx)("p",{children:n("checkout:details.youHaveNoItemsInCart")}),(0,r.jsx)("div",{children:(0,r.jsx)(I(),{href:(0,t_.oU)({_id:w.sellerId},X),className:"btn small default",children:n("checkout:details.visitShop")})})]})})}),(0,r.jsx)("div",{className:"col-md-4",children:(0,r.jsxs)("div",{className:"section pd-24 shadow",children:[(0,r.jsx)("h2",{className:"mt-0",children:n("common:orderOverview")}),(0,r.jsxs)("div",{className:"cart",children:[!!w.expiresAt&&(0,r.jsx)(tT.A,{type:"neutral",children:(0,r.jsxs)("div",{style:{lineHeight:"1em"},children:[n("checkout:details.cartExpiresIn")," ",(0,r.jsx)(N.A,{until:new Date(w.expiresAt),children:e=>(0,r.jsx)(O.P,{minutes:e})})]})}),eu&&(0,r.jsx)(tN.d,{sellerId:w.sellerId,acceptCoupons:!1,acceptVouchers:!0}),(0,r.jsx)(D.m,{checkout:w,canEdit:!1,onCheckoutChanged:e=>P(e)}),eu&&(0,r.jsx)("button",{className:"btn bordered mt-12 w-100",onClick:()=>el(),children:n("checkout:cartRenderer.redeemVoucher")})]})]})})]})]}),(0,r.jsx)(tC.A,{}),(0,r.jsx)(tI.d,{seller:t})]})]})]})}},43848:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var n=i(55024),r=i(13005);class o extends r.Ay{static async fetchOrganizationInfo(e){let t=n.J.BASE_URL()+"/api/organizations/"+e+"/info";return await this.fetchApi(r.U0.get,t)}}},54010:(e,t,i)=>{"use strict";i.d(t,{h:()=>o});var n=i(36165),r=i(18185);let o=async(e,t,i,o)=>{let s=await n.A.fetchPublicEventListings({sellerId:e,eventIds:t,locale:i,endMin:o}),a=r.M(t,s,(e,t)=>e===t._id);return a.length?[...s,...await Promise.all(a.map(e=>n.A.fetchPublicEvent(e,i)))]:s}}}]);

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.