1"use strict";(self.webpackChunkef_website_stadion=self.webpackChunkef_website_stadion||[]).push([[5391],{29095:function(e,t,a){a.r(t);var n=a(14041),r=a(70373),l=a.n(r),c=a(99420),o=a.n(c),i=a(51127),s=a(25790),m=a(93899),d=a(12335),p=a(1890),u=a(58896),h=a(76881),y=a(48602),g=a(82592),f=a(93220),E=a(90985),k=a(9709),v=a(79068),w=a(96551);const _=(e,t)=>"PaymentSucceeded"===e?n.createElement("span",{style:{display:"flex",alignItems:"center",color:"#3ec28f"}},n.createElement("svg",{style:{height:"1.3em",paddingRight:".3em"},fill:"none",stroke:"currentColor",strokeWidth:"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})),t("Shop.Account.TicketMarketplace.payoutDetailStates.PaymentSucceeded")):"PaymentFailed"===e?n.createElement("span",{style:{display:"flex",alignItems:"center",color:"var(--color-accent)"}},n.createElement("svg",{style:{height:"1.3em",paddingRight:".3em"},xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},n.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z",clipRule:"evenodd"})),t("Shop.Account.TicketMarketplace.payoutDetailStates.PaymentFailed")):null,S=e=>{let{payout:t}=e;const{t:a}=(0,w.B)(),r=e=>n.createElement(k.A,{startValue:e,value:e});return n.createElement(n.Fragment,null,n.createElement("div",{className:"ef-prices-summary"}),n.createElement("div",{className:"ef-prices-summary"},n.createElement("div",{className:"ef-prices-summary__item ef-prices-summary__item--standard"},n.createElement("div",{className:"ef-prices-summary__label"},a("Shop.Account.TicketMarketplace.price")),n.createElement("div",{className:"ef-prices-summary__price"},r(t.basePrice||0))),n.createElement("div",{className:"ef-prices-summary__item ef-prices-summary__item--standard"},n.createElement("div",{className:"ef-prices-summary__label"},a("Shop.Account.TicketMarketplace.handlingFee"),n.createElement("a",{id:"tooltip-anchor-service-fee",style:{marginLeft:"0.3em",lineHeight:"1em",verticalAlign:"top"}},n.createElement("svg",{style:{width:"1.6em",height:"1.6em",lineHeight:"1em",cursor:"pointer"},fill:"#000",stroke:"#fff",strokeWidth:"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})))),n.createElement("div",{className:"ef-prices-summary__price"},r(t.serviceFeeAmount||0))),n.createElement("div",{className:"ef-prices-summary__item ef-prices-summary__item--standard"},n.createElement("div",{className:"ef-prices-summary__label"},a("Shop.Account.TicketMarketplace.reimbursementFee"),n.createElement("a",{id:"tooltip-anchor-payment-fee",style:{marginLeft:"0.3em",lineHeight:"1em",verticalAlign:"top"}},n.createElement("svg",{style:{width:"1.6em",height:"1.6em",lineHeight:"1em",cursor:"pointer"},fill:"#000",stroke:"#fff",strokeWidth:"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})))),n.createElement("div",{className:"ef-prices-summary__price"},r(t.paymentFeeAmount||0))),n.createElement("div",{className:"ef-prices-summary__item ef-prices-summary__item--sum"},n.createElement("div",{className:"ef-prices-summary__label"},a("Shop.Account.TicketMarketplace.payoutPrice")),n.createElement("div",{className:"ef-prices-summary__price"},r(t.payoutAmount||0)))),n.createElement("div",{className:"ef-hints"},n.createElement(E.m_,{anchorId:"tooltip-anchor-service-fee",html:a("Shop.Account.TicketMarketplace.tooltip1")}),n.createElement(E.m_,{anchorId:"tooltip-anchor-payment-fee",html:a("Shop.Account.TicketMarketplace.tooltip2")})))},b=e=>{let{paymentMethods:t,payout:a}=e;const{t:r}=(0,w.B)();return a.paymentTokenId?n.createElement(n.Fragment,null,(t.credit
1Card||[]).filter(e=>e.id===a.paymentTokenId).map((e,t)=>n.createElement("div",{key:t},n.createElement("div",null,e.brand||"Sonstige","-",r("Shop.Checkout.Payment.cardHolder")," ",e.holder),n.createElement("div",null,r("Shop.Account.creditCardEndsWith")," ",(e.maskedAccountNumber||"").replace(/\*/g,"â¢")),n.createElement("div",null,r("Shop.Account.creditCardExpiration")," ",(0,v.a)(e.expiryMonth,e.expiryYear)))),(t.payPal||[]).filter(e=>e.id===a.paymentTokenId).map((e,t)=>n.createElement("div",{key:t},r("Shop.Checkout.Payment.payPalAccount")," ",e.email)),(t.sepa||[]).filter(e=>e.id===a.paymentTokenId).map((e,t)=>n.createElement("div",{key:t},n.createElement("div",null,r("Shop.Checkout.Payment.sepaAccountHolder")," ",e.holder),n.createElement("div",null,r("Shop.Checkout.Payment.sepaAccountLastDigits")," ",(e.iban||"").replace(/\*/g,"â¢"))))):n.createElement("p",null,(e=>{switch((e||"").toLowerCase()){case i.sk.CREDIT_CARD.toLowerCase():return"Kreditkarte";case i.sk.PAYPAL.toLowerCase():return"PayPal";case i.sk.SEPA.toLowerCase():return"SEPA-Ãberweisung";default:return"Unbekannt"}})(a.paymentFee.paymentMethod))},A=e=>{let{message:t,x:a,y:r,visible:l}=e;return l&&n.createElement("div",{style:{position:"absolute",top:r,left:a,backgroundColor:"#333",color:"#fff",padding:"5px 10px",borderRadius:"5px",fontSize:"12px",zIndex:1e3,pointerEvents:"none"}},t)},C=e=>{let{isOpenState:t,payout:a,website_lang:r}=e;const{t:c}=(0,w.B)(),{paymentMethods:o,refreshPaymentMethods:i,retryPayoutPayment$:m}=(0,s.A)(),[d,p]=t,{0:u,1:h}=(0,n.useState)(""),{0:y,1:g}=(0,n.useState)({top:0,left:0}),f=()=>{p(null)},E=(e,t)=>{const a=e.currentTarget;((e,t,a,n)=>{navigator.clipboard.writeText(e).then(()=>{const e=n.getBoundingClientRect();a({top:e.top+window.scrollY,left:e.left+window.scrollX+e.width}),t(c("Shop.Account.TicketMarketplace.voucherCodeCopied")),setTimeout(()=>t(""),2500)}).catch(e=>{console.error("Error copying text: ",e)})})(t,h,g,a)};return(0,n.useEffect)(()=>{o&&o.length<=1&&i()},[o]),n.createElement(l(),{isOpen:!!d,onRequestClose:f,ariaHideApp:!1,overlayClassName:" ",style:{overlay:{backgroundColor:"rgba(0,0,0,0.75)",zIndex:"109"},content:{backgroundColor:"transparent",zIndex:"110",border:"none"}}},n.createElement("div",{className:"ef-modal ef-modal--l --is-open"},n.createElement("div",{style:{overflowY:"auto"},className:"ef-modal__inner"},n.createElement("div",{className:"ef-modal__close",style:{cursor:"pointer"},onClick:f},n.createElement("svg",{className:"ef-icon",width:"16",height:"16"},n.createElement("use",{href:"#ef-icon--x-16",xlinkHref:"#ef-icon--x-16"}))),n.createElement("div",{className:"ef-container ef-content__block--offer-marketplace-ticket"},n.createElement("h3",{className:"ef-heading ef-heading--4"},c("Shop.Account.TicketMarketplace.details")),n.createElement("div",{style:{marginBottom:"0"},className:"ef-content__block ef-content__block--checkout-delivery-button"},n.createElement("div",{className:"ef-container ef-container--l"},n.createElement("h5",{style:{marginBottom:"0"}},a.productName[r]||a.productName.de),a.productDescription&&n.createElement("small",{style:{marginTop:".3em"}},a.productDescription[r]||a.productDescription.de),"PaymentFailed"===a.status&&n.createElement("div",{style:{marginTop:".5em",display:"flex",flexDirection:"row",width:"100%",borderRadius:"8px",backgroundColor:"#f8efe9",color:"var(--color-accent)",padding:"14px"}},n.createElement("div",null,n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",style:{height:"1.5em",width:"1.5em",marginRight:".5em"}},n.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"}))),n.createElement("div",{style:{flexGrow:"1"}},n.createElement("p",null,c("Shop.Account.TicketMarketplace.hintFailedPayout")),n.createElement("a",{style:{display:"block",marginLeft:"auto",color:"var(--color-accent)"},className:"ef-text--link",href:"/account/tickets/marketplace-archive-payout?payout_id="+a.id},c("Shop.Account.TicketMarketplace.updatePayment")))),n.createElement("h4",{style:{marginTop:"0.3em"}},c("Shop.Account.TicketMarketplace.chosenPayout"),":"),n.createElement("div",{style:{backgroundColor:"#e6e2d7",padding:".5em 1.5em",margin:"0 -1.5em"}},n.createElement("div",{style:{padding:"1em 0"}},n.createElement("strong",{style:{marginBottom:".7em"}},c("Shop.Account.TicketMarketplace.billingAddress")),n.createElement("address",{className:"ef-contract-detail"},a.address.firstName," ",a.address.lastName,n.createElement("p",null,a.address.street,n.createElement("br",null),a.address.additionalAddress&&n.createElement(n.Fragment,null,a.address.additionalAddress,n.createElement("br",null)),a.address.postalCode," ",a.address.city)),a.voucherCode&&n.createElement(n.Fragment,null,n.createElement("strong",{style:{marginBottom:".7em"}},c("Shop.Account.TicketMarketplace.payoutType")),n.createElement("p",null,c("Shop.Account.TicketMarketplace.voucherPayment"),":"," ",n.createElement("span",{onClick:e=>E(e,a.voucherCode),style:{fontFamily:"Courier New, Courier, monospace",cursor:"pointer"}},a.voucherCode))),n.createElement(A,{message:u,position:y,visible:!!u})),"Cancelled"!==a.status&&n.createElement("div",{style:{padding:"1em 0",borderTop:"1px solid #b8b4ac"}},n.createElement("strong",{style:{marginBottom:".7em"}},c("Shop.Account.TicketMarketplace.payoutType")),a.useVoucher?n.createElement(n.Fragment,null,n.createElement("p",null,c("Shop.Account.TicketMarketplace.voucherPayment"),a.voucherCode&&n.createElement(n.Fragment,null,":"," ",n.createElement("span",{onClick:e=>E(e,a.voucherCode),style:{fontFamily:"Courier New, Courier, monospace",cursor:"pointer"}},a.voucherCode)))):n.createElement(b,{paymentMethods:o,payout:a}),a.voucherCode&&n.createElement(A,{message:u,position:y,visible:!!u}),"PaymentFailed"===a.status&&n.createElement("small",{style:{color:"var(--color-accent)"}},c("Shop.Account.TicketMarketplace.payoutDetailStates.PaymentFailed")))),n.createElement(S,{payout:a})))))))},N=e=>{let{payouts:t,website_lang:a}=e;const{t:r}=(0,w.B)(),{0:l,1:c}
1=(0,n.useState)(!1);return n.createElement("section",{className:"ef-content__block ef-content__block--order-review"},n.createElement("div",{className:"ef-container ef-container--l"},n.createElement("div",{style:{marginTop:"1em"},className:"ef-orders-review-container"},t.map((e,t)=>n.createElement("div",{key:"payout-idx-"+t,style:{maxWidth:"100%",position:"relative"},className:"ef-orders-review-items --tickets-overview ef-product ef-products--order-review ef-ticket-card__content"},n.createElement("a",{className:"ef-product__link",href:"#",onClick:()=>{c(e)}}),l===e&&n.createElement(C,{payout:e,isOpenState:[l,c],website_lang:a}),n.createElement("div",{style:{width:"100%"}},n.createElement("div",{className:"ef-product__heading"},n.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.5em"}},n.createElement("span",{style:{display:"inline-block",background:"var(--color-accent)",color:"rgb(255, 255, 255)",padding:"3px 0.5rem",borderRadius:"0.25rem",fontWeight:"bold"}},((e,t)=>e.isAsyncPaymentPending?t("Shop.Account.TicketMarketplace.payoutGeneralStates.Pending"):{Created:t("Shop.Account.TicketMarketplace.payoutGeneralStates.Created"),Cancelled:t("Shop.Account.TicketMarketplace.payoutGeneralStates.Cancelled"),Sold:t("Shop.Account.TicketMarketplace.payoutGeneralStates.Sold"),PaymentSucceeded:t("Shop.Account.TicketMarketplace.payoutGeneralStates.PaymentSucceeded"),PaymentFailed:t("Shop.Account.TicketMarketplace.payoutGeneralStates.PaymentFailed")}[null==e?void 0:e.status]||t("Shop.Account.TicketMarketplace.payoutGeneralStates.Unknown"))(e,r)),n.createElement("small",null,o()(e.processed||e.created).format("DD.MM.YYYY"))),n.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},n.createElement("h4",{style:{marginBottom:"0"}},e.productName&&e.productName[a]),n.createElement("svg",{className:"ef-icon",width:"16",height:"16"},n.createElement("use",{href:"#ef-icon--arrow-right-16",xlinkHref:"#ef-icon--arrow-right-16"})))),e.productDescription&&n.createElement("p",{style:{marginTop:".3em"}},e.productDescription[a]||e.productDescription.de),_(e.status,r)&&n.createElement("h6",{style:{marginTop:".8em"}},_(e.status,r))))))))};t.default=e=>{let{pageContext:t}=e;const{t:a}=(0,w.B)(),{website:r,website_lang:l,website_theme:c}=t,{0:o,1:i}=(0,n.useState)(1),{0:E,1:k}=(0,n.useState)(null),{0:v,1:_}=(0,n.useState)(void 0),{0:S,1:b}=(0,n.useState)(null),{user:A,signinRedirect$:C}=(0,m.N)(),{getMarketplacePayouts$:T}=(0,s.A)(),M=function(e){void 0===e&&(e=1),i(e),T().subscribe(t=>{if(t.data&&t.data.items)if(t.data.hasNextPage){let e=t.data.total-t.data.page*t.data.pageSize;e<t.data.pageSize?k(e+" weitere Auszahlungen ladenâ¦"):k(t.data.pageSize+" weitere Auszahlungen ladenâ¦")}else k(null);_(e>1?v.concat(t.data.items):t.data.items)})};null===A&&C(),(0,n.useEffect)(()=>{A&&M(),void 0!==window&&window.location&&window.location.pathname&&b(window.location.pathname)},[A]);const x=a("Shop.Account.TicketMarketplace.archivePageTitle");return n.createElement(u.A,{website:r,website_lang:l,website_theme:c,subnavigation:(0,y.A)(r),submenuPartiallyActive:!0,additionalPageClassName:"ef-page--account"},n.createElement(h.A,{website_theme:c,website:r,title:x}),n.createElement("main",{className:"ef-content ef-content--shop ef-content--shopping-home"},n.createElement(f.A,{currentSlug:S}),v?n.createElement(N,{payouts:v,website_lang:l}):n.createElement(p.A,null),n.createElement(d.A,{data:{shop_mode:"global"}})),n.createElement(g.A,null))}}}]);
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.