PageSourceSearch

https://www.yorck.de/_next/static/chunks/pages/checkout/payment-92b90cbb8fe9b394.js

js yorck.de collected 2026-09-24 09:35:29 UTC 12,298 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8475],{50589:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/payment",function(){return i(42943)}])},42943:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSG:function(){return K},default:function(){return x}});var t=i(85893),r=i(67294),o=i(2614),a=i(77591),l=i(71344),s=i(48352),u=i(58435),c=i(53407),d=i(11163),v=i(58409),m=i(86886),f=i(15861),p={container:{pl:{xs:0,md:"14.28%"},pr:{xs:0,md:"14.28%"},pt:{xs:6,md:10},pb:{xs:8,md:10},borderRight:{xs:0,md:"1px solid black"}},title:{pb:6},subTitle:{pb:2}},h=i(44012);function x(e){var n=e.metaData,i=e.paymentTerms,r=(0,d.useRouter)().locale;return(0,u.V)(),(0,t.jsx)(s.Z,{footerVariant:"THIN",metaData:n||{},canonicalPath:(0,v.UY)("payment",r),hrefLang:(0,v.u8)("payment"),headerVariant:l.Z.OPEN,children:(0,t.jsxs)(m.ZP,{container:!0,spacing:3,children:[(0,t.jsx)(m.ZP,{item:!0,xs:12,md:7,order:{xs:3,md:1},children:(0,t.jsxs)(o.Z,{sx:p.container,children:[(0,t.jsx)(f.Z,{variant:"h3",sx:p.title,children:(0,t.jsx)(h.Z,{id:"booking.titlePayment"})}),(0,t.jsx)(f.Z,{variant:"h5",sx:p.subTitle,children:(0,t.jsx)(h.Z,{id:"booking.paymentTicketMail"})}),(0,t.jsx)(H,{}),(0,t.jsx)(c.$X,{document:i.fields.text,options:{typographyVariants:{paragraph:"captionXs"}}})]})}),(0,t.jsx)(m.ZP,{item:!0,xs:12,md:4,order:{xs:1,md:3},children:(0,t.jsx)(c.HF,{voucher:!0,compact:!0,collapsible:!1,paymentPage:!0})})]})})}i(54465),i(86664);var b=i(33452);var g=i(47568),y=i(26042),Z=i(69396),_=i(99534),j=i(10092),k=i(86896),S=i(87536),C=i(53134),P=i(17783),N=i(82555),I=i(82607),E=i(6409),w=i(25367),T=i(20169),V=i(85146),A=i(17985),R=(i(43001),{formControl:{width:"100%"},inputField:{width:"100%"},button:{mt:6,mb:4,width:"100%"},error:{mt:10,mb:10}}),D=i(59637),M=function(e){var n=(0,D.Z)((e||"").split(" ")),i=n[0],t=n.slice(1);return{firstName:i,lastName:(null===t||void 0===t?void 0:t.join(" "))||"-"}},z=function(){var e=(0,g.Z)((function(e){var n,i,t;return(0,j.__generator)(this,(function(r){switch(r.label){case 0:return n=e.userSessionId,i=e.name,t=e.email,[4,(0,a.ZC)((0,y.Z)({userSessionId:n,email:t},M(i)))];case 1:return[2,r.sent()]}}))}));return function(n){return e.apply(this,arguments)}}(),G=i(69348),L=i(51870),B=i(92757),F=i(8159),X={container:{pl:3,mt:4}},q=i(84456),O=i(25617),U=i(28605);function W(e){var n=e.onChange,i=e.isActive,a=(0,O.v9)(V.S).loyaltyMember.data,l=(0,O.I0)(),s=(0,O.v9)(U.o);return(0,r.useEffect)((function(){s.tokens.refreshToken&&!a&&l((0,w.qUC)())}),[s]),!a||a.sendNewsletter?null:(0,t.jsx)(o.Z,{sx:X.container,children:(0,t.jsx)(q.Z,{label:(0,t.jsx)(h.Z,{id:"newsletter.checkbox"}),active:i,onChanged:n})})}function H(){var e,n,i=(0,d.useRouter)(),o=i.locale,l=(0,_.Z)(i,["locale"]),s=(0,r.useState)(!1),u=s[0],v=s[1],f=(0,r.useState)(0),p=f[0],h=f[1],x=(0,r.useState)(void 0),D=x[0],X=x[1],q=(0,r.useRef)(null),O=$({dropinComponent:D}),U=(0,b._m)({}),H=(0,k.Z)().formatMessage,Y=(0,b.I0)(),K=(0,T.jl)(T.Wz.Payment),Q=(0,r.useState)(!1),J=Q[0],ee=Q[1],ne=(0,b.v9)(P.co).currentOrder,ie=(0,b.v9)(N.y),te=(0,L.Z)(),re=null===ne||void 0===ne?void 0:ne.userSessionId,oe=(0,b.v9)(V.S).loyaltyMember.data,ae=(0,b.v9)(I.b),le=ae.appliedGiftCard,se=ae.validatedGiftCard,ue=(0,S.cI)({mode:"all"}),ce=ue.control,de=ue.handleSubmit,ve=ue.formState.errors,me=ue.trigger,fe=ue.setValue,pe="",he="";oe?(pe=null===oe||void 0===oe?void 0:oe.email,he=null===oe||void 0===oe?void 0:oe.fullName):te&&(pe=te.email,he="".concat(null===te||void 0===te?void 0:te.givenName," ").concat(null===te||void 0===te?void 0:te.familyName)),(0,r.useEffect)((function(){he&&pe&&(fe("name",he),fe("email",pe))}),[he,pe]);var xe,be=null!==(n=null===ne||void 0===ne?void 0:ne.getFinalPrice(null===le||void 0===le?void 0:le.GiftCards))&&void 0!==n?n:0,ge=0!==be,ye=function(e){e&&Y((0,w.vV$)(e)),Y((0,w.rYS)(0)),(0,B.zz)({event:"purchase",ecommerce:_e}),l.push((0,c.UY)("bookingConfirmation",o))},Ze=function(){var e,n,i,t;return!(!(null===(e=ce._formValues)||void 0===e?void 0:e.email)||!(null===(n=ce._formValues)||void 0===n?void 0:n.name)||(null===(i=ce._formState.errors)||void 0===i?void 0:i.email)||(null===(t=ce._formState.errors)||void 0===t?void 0:t.name))},_e={transaction_id:re,affiliation:(0,F.gO)(),currency:"EUR",shipping:0,value:(be-((null===ne||void 0===ne?void 0:ne.tax)||0))/100,tax:ne?(null===ne||void 0===ne?void 0:ne.tax)/100:0,discount:0,coupon:"",items:null===ne||void 0===ne||null===(e=ne.tickets)||void 0===e?void 0:e.map((function(e){var n,i,t;return{item_id:null===ie||void 0===ie?void 0:ie.film.vistaId,item_name:null===ie||void 0===ie?void 0:ie.originalTitle,item_category:"Tickets",item_category2:null===ie||void 0===ie?void 0:ie.cinemaName,item_category3:null===ie||void 0===ie?void 0:ie.formats,item_brand:null===ie||void 0===ie||null===(n=ie.film)||void 0===n?void 0:n.distributor,location_id:null===ne||void 0===ne?void 0:ne.cinemaId,item_variant:null===e||void 0===e||null===(i=e.ticketDetails)||void 0===i?void 0:i.description,quantity:1,price:(null===e||void 0===e||null===(t=e.ticketDetails)||void 0===t?void 0:t.originalPriceInCents)?(null===e||void 0===e?void 0:e.ticketDetails.originalPriceInCents)/100:0,currency:"EUR"}}))},je=null!==(xe=null===ne||void 0===ne?void 0:ne.getGiftCardAmount(null===le||void 0===le?void 0:le.GiftCards))&&void 0!==xe?xe:0;je&&(_e.discount=je/100,_e.coupon=(null===se||void 0===se?void 0:se.CardNumber)||"");var ke=(0,r.useRef)(!1);(0,r.useEffect)((function(){Ze()&&!ke.current&&((0,B.zz)({event:"add_payment_info",ecommerce:_e}),ke.current=!0)}),[Ze()]);var Se=function(){var e=(0,g.Z)((function(e){var n;return(0,j.__generator)(this,(function(i){switch(i.label){case 0:return J&&Y((0,w.Plo)({email:null===e||void 0===e?void 0:e.email,locale:o,city:String("BERLIN").toLowerCase()})),[4,z((0,y.Z)({userSessionId:re},e))];case 1:return n=i.sent(),Y((0,w.e98)(n)),[4,(0,a.Nc)({userSessionId:re,screen:null===ie||void 0===ie?void 0:ie.screen,locale:o,name:null===e||void 0===e?void 0:e.name,email:null===e||void 0===e?void 0:e.email,ics:U})];case 2:return i.sent().booking&&ye(e.email),[2]}}))}));return function(n){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){if(O&&ge){var e=!1,n=function(){var n=(0,g.Z)((function(){var n,i,t,r;return(0,j.__generator)(this,(function(l){switch(l.label){case 0:return n=O.id,i=O.sessionData,[4,(0,A.Z)({environment:"live",clientKey:"live_SLXBPLB6ABEV7HNJXP4DIWUQKIW4ODBN",locale:o,analytics:{enabled:!0},session:{id:n,sessionData:i},beforeSubmit:function(){var e=(0,g.Z)((function(e,n,i){var t,r,o,l,s,u;return(0,j.__generator)(this,(function(n){switch(n.label){case 0:if(!Ze())return[2,i.reject()];n.label=1;case 1:return n.trys.push([1,4,,5]),t=ce._formValues,r=t.name,o=t.email,[4,z({userSessionId:re,name:r,email:o})];case 2:return l=n.sent(),Y((0,w.vV$)(o)),Y((0,w.e98)(l)),K("info","Starting external payment",{userSessionId:re}),[4,(0,a.QM)(re,"paypal")];case 3:return 0!==(s=n.sent()).Result?(K("error","externalPayment error",s),[2,i.reject()]):[2,i.resolve((0,Z.Z)((0,y.Z)({},e),{shopperEmail:o,shopperName:M(r)}))];case 4:return u=n.sent(),K("error","Error Paypal onClick button",u),(0,w.gFV)(u),[2,i.reject()];case 5:return[2]}}
1))}));return function(n,i,t){return e.apply(this,arguments)}}(),onPaymentCompleted:function(e,n){switch(e.resultCode){case"Authorised":case"IdentifyShopper":case"Pending":case"ChallengeShopper":ye();break;default:v(!0)}},onError:function(e,n){v(!0)},onChange:function(){me()},paymentMethodsConfiguration:{card:(0,Z.Z)((0,y.Z)({hasHolderName:!0,holderNameRequired:!0,billingAddressRequired:!1},(null===te||void 0===te?void 0:te.memberId)?{showStoredPaymentMethods:!0,enableStoreDetails:!0}:{}),{onError:function(){}}),storedCard:{hideCVC:!0},paypal:{blockPayPalPayLaterButton:!0}}})];case 1:return t=l.sent(),(q.current&&!e||be!==p)&&(r=null===t||void 0===t?void 0:t.create("dropin").mount(q.current),X(r),h(O.amount.value)),[2]}}))}));return function(){return n.apply(this,arguments)}}();return n(),function(){e=!0}}}),[O]),(0,t.jsxs)("div",{id:"dropin-container",className:"payment-container",children:[(0,t.jsx)(E.Z,{component:"fieldset",sx:R.formControl,children:(0,t.jsx)("form",{onSubmit:de(Se),children:(0,t.jsxs)(m.ZP,{container:!0,spacing:3,children:[(0,t.jsx)(m.ZP,{item:!0,xs:12,children:(!te||te&&he)&&(0,t.jsx)(C.Z,{sx:R.inputField,error:ve.name,validation:{required:!0,validator:"NAME_LAST_NAME"},control:ce,id:"name",defaultValue:he,label:H({id:"booking.fieldPaymentTicketName"})})}),(0,t.jsx)(m.ZP,{item:!0,xs:12,children:(!te||te&&pe)&&(0,t.jsx)(C.Z,{sx:R.inputField,error:ve.email,validation:{required:!0,validator:"EMAIL"},defaultValue:pe,control:ce,id:"email",label:H({id:"booking.fieldPaymentTicketMail"})})}),(0,t.jsx)(W,{isActive:J,onChange:ee}),(0,t.jsx)(c.DF,{className:"checkout-button-pay-cc",type:"submit",title:H({id:"booking.buttonPayNow"}),variant:c.ru.ACTIVE,sx:R.button})]})})}),ge&&(!O||be!==p)&&(0,t.jsx)(c.fZ,{loading:!0}),ge&&(0,t.jsx)("div",{ref:q,className:"payment"}),u&&(0,t.jsx)(G.B,{message:H({id:"booking.PaymentErrorGeneric"}),sx:R.error})]})}var Y=i(87066),$=function(e){var n,i=e.dropinComponent,t=(0,r.useState)(null),o=t[0],a=t[1],l=(0,d.useRouter)().locale,s=(0,T.jl)(T.Wz.Payment),u=(0,b.v9)(P.co).currentOrder,c=(0,b.v9)(U.o),v=(0,b.v9)(N.y),m=(0,b.v9)(I.b).appliedGiftCard,f=null===u||void 0===u?void 0:u.userSessionId,p=null!==(n=null===u||void 0===u?void 0:u.getFinalPrice(null===m||void 0===m?void 0:m.GiftCards))&&void 0!==n?n:0,h=(0,L.Z)(),x=(0,b._m)({});return(0,r.useEffect)((function(){if(0!==p&&(!c.tokens.idToken||(null===h||void 0===h?void 0:h.memberId))&&0!==p&&x){null===i||void 0===i||i.unmount();var e=function(){var e=(0,g.Z)((function(){var e,n,i,t;return(0,j.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,Y.Z.post("https://uq8lgoj7z2.execute-api.eu-central-1.amazonaws.com/production/api/payment/get-payment-session",{userSessionId:f,screen:null===v||void 0===v?void 0:v.screen,locale:l,memberId:null===h||void 0===h?void 0:h.memberId,ics:x})];case 1:return e=r.sent(),n=e.data.booking,i=(0,_.Z)(e.data,["booking"]),n?[2]:(s("debug","getAdyenSession",i),a(i),[2,i]);case 2:return t=r.sent(),s("error","Error retrieving client secret",t),[3,3];case 3:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();e()}}),[p,null===h||void 0===h?void 0:h.memberId,x]),o},K=!0},69348:function(e,n,i){"use strict";i.d(n,{B:function(){return u}});var t=i(26042),r=i(85893),o=(i(67294),i(2614)),a=i(15861),l=i(72758),s={container:{color:i(7740).Z.red.main,display:"flex",alignItems:"center"},message:{pl:1},icon:{minWidth:"16px"}};function u(e){var n=e.message,i=e.children,u=e.sx;return(0,r.jsxs)(o.Z,{sx:(0,t.Z)({},s.container,u||{}),children:[(0,r.jsx)(o.Z,{sx:s.icon,children:(0,r.jsx)(l.Z,{variant:"error"})}),(0,r.jsxs)(o.Z,{sx:s.message,children:[n&&(0,r.jsx)(a.Z,{variant:"captionXs",children:n}),i]})]})}},84456:function(e,n,i){"use strict";i.d(n,{Z:function(){return m}});var t=i(26042),r=i(69396),o=i(99534),a=i(85893),l=i(67294),s=i(2614),u=i(15861),c=i(66454),d=i(18172);function v(e){var n=e.sx,i=e.active,o=void 0!==i&&i,u=e.onChanged,v=(0,l.useState)(o),m=v[0],f=v[1];return(0,a.jsx)(s.Z,{onClick:function(){f(!m),u&&u(!m)},sx:(0,r.Z)((0,t.Z)({},n),{cursor:"pointer"}),children:(0,a.jsx)(c.Z,{name:"checkbox",size:d.p.X16,variant:m?"active":"unactive",extension:"svg"})})}function m(e){var n=e.sx,i=e.label,l=void 0===i?"Empty Label":i,c=(0,o.Z)(e,["sx","label"]);return(0,a.jsxs)(s.Z,{sx:(0,r.Z)((0,t.Z)({},n),{display:"flex"}),children:[(0,a.jsx)(v,(0,t.Z)({sx:{mr:2,flexShrink:0}},c)),(0,a.jsx)(u.Z,{variant:"caption",children:l})]})}},51870:function(e,n,i){"use strict";i.d(n,{Z:function(){return u}});var t=i(47568),r=i(10092),o=i(67294),a=i(50065),l=i(28605),s=i(25617);function u(){var e=(0,s.v9)(l.o),n=(0,o.useState)(),i=n[0],u=n[1];return(0,o.useEffect)((function(){if(e.tokens.idToken){var n=function(){var n=(0,t.Z)((function(){var n;return(0,r.__generator)(this,(function(i){switch(i.label){case 0:return[4,(0,a.Av)(e.tokens)];case 1:return n=i.sent(),u(n),[2]}}))}));return function(){return n.apply(this,arguments)}}();n()}}),[e.tokens.idToken]),i}}},function(e){e.O(0,[6909,8703,9774,2888,179],(function(){return n=50589,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.