PageSourceSearch

https://billetterie.theatrepalaisroyal.com/_next/static/chunks/1968-7915db37904fdc07.js

js theatrepalaisroyal.com collected 2026-10-02 11:01:46 UTC 32,580 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c993fb05-3b5d-4ee0-83cd-d8d94ab458d7",e._sentryDebugIdIdentifier="sentry-dbid-c993fb05-3b5d-4ee0-83cd-d8d94ab458d7")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1968],{35657:function(e,t,n){n.d(t,{Gq:function(){return u},UV:function(){return c},Yb:function(){return d},Zb:function(){return o},tA:function(){return s}});var i=n(67862),a=n(82731),r=n(39737),l=n(85746);function _templateObject(){let e=(0,i._)(["\n  > div {\n    margin-bottom: 0;\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,i._)(["\n  display: inline-block;\n  padding: 1px 4px;\n  color: white;\n  text-transform: uppercase;\n  background-color: black;\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,i._)(["\n  @media screen and (max-width: ",") {\n    position: absolute;\n    right: 20px;\n    width: auto !important;\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,i._)(["\n  padding: 60px;\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,i._)(["\n  max-width: 600px;\n  margin: 0 auto;\n\n  > button[type='submit'] {\n    display: block;\n    margin-left: auto;\n    margin-right: auto;\n  }\n"]);return _templateObject4=function(){return e},e}let o=(0,a.ZP)(r.aJ).withConfig({componentId:"sc-844c7ce1-0"})(_templateObject()),c=a.ZP.div.withConfig({componentId:"sc-844c7ce1-1"})(_templateObject1()),s=a.ZP.div.withConfig({componentId:"sc-844c7ce1-2"})(_templateObject2(),l.Tt),d=(0,a.ZP)(r.aJ).withConfig({componentId:"sc-844c7ce1-3"})(_templateObject3()),u=a.ZP.form.withConfig({componentId:"sc-844c7ce1-4"})(_templateObject4())},68635:function(e,t,n){n.d(t,{p:function(){return s}});var i=n(67862),a=n(52322),r=n(82731),l=n(73234),o=n(39737),c=n(85746);function _templateObject(){let e=(0,i._)(["\n  position: relative;\n  display: flex;\n  flex-shrink: 0;\n  overflow: hidden;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,i._)(["\n  @media screen and (max-width: ",") {\n    width: ",";\n    height: ",";\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,i._)(["\n  width: ","px;\n  height: ","px;\n  background: ",";\n\n  @media screen and (max-width: ",") {\n    position: relative;\n    width: ","px;\n    height: ","px;\n  }\n"]);return _templateObject2=function(){return e},e}let s=500,d=r.ZP.div.withConfig({componentId:"sc-f63b79c5-0"})(_templateObject()),u=r.ZP.img.withConfig({componentId:"sc-f63b79c5-1"})(_templateObject1(),c.eE,e=>"".concat(e.$responsiveSize,"px")||0,e=>"".concat(e.$responsiveSize,"px")||0),p=r.ZP.div.withConfig({componentId:"sc-f63b79c5-2"})(_templateObject2(),e=>e.$size,e=>e.$size,e=>e.$color,c.eE,e=>e.$responsiveSize||.75*s,e=>e.$responsiveSize||.75*s);t.Z=function(e){let{className:t,ticketing:n,children:i,responsiveSize:r,size:c=s}=e,m=n.getMainImageMedia();return(0,a.jsxs)(d,{className:t,children:[i,m?(0,a.jsx)(u,{$responsiveSize:r,src:(0,l.Q)(m.get("path"),c,c),className:"image",width:c,height:c,alt:""}):(0,a.jsx)(p,{$size:c,$color:(0,o.vC)(Number(n.getShortId())),className:"image",$responsiveSize:r})]})}},32700:function(e,t,n){n.d(t,{Z:function(){return order_EventDateHeader}});var i=n(67862),a=n(52322),r=n(11122),l=n(82731),o=n(92472),c=n(85746),s=n(58849),d=n(70526),u=n(68635),p=n(2784),m=n(27623),v=n(39097),f=n.n(v),g=n(5632),b=n(39737),h=n(26058),y=n(67909),_=n(37978);function _templateObject(){let e=(0,i._)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,i._)(["\n  width: fit-content;\n  margin: 5px 0 !important;\n"]);return _templateObject1=function(){return e},e}function TicketMultiOrderDownloadModal(e){let{orderList:t,onDownloadOrderTickets:n,onCancel:i}=e,{t:l}=(0,r.$G)();return(0,a.jsx)(o.IX,{onCancel:i,actions:(0,a.jsx)("button",{type:"submit",className:"mpd-btn mpd-btn--primary",onClick:i,children:l("common.close")}),title:l("tickets.multi_order_modal.title"),children:(0,a.jsxs)(j,{children:[(0,a.jsx)("p",{children:l("tickets.multi_order_modal.description")}),t.map(e=>(0,a.jsx)(k,{type:"button",className:"mpd-btn mpd-btn--secondary ellipsis",onClick:()=>n(e),children:l("tickets.multi_order_modal.download_btn",{orderId:e.getShortId()})},e.get("@id")))]})})}let j=l.ZP.div.withConfig({componentId:"sc-cc0d784b-0"}
1)(_templateObject()),k=l.ZP.button.withConfig({componentId:"sc-cc0d784b-1"})(_templateObject1());var w=n(29220),x=n(28316),D=n(81723),E=n(35657);function TicketAvailableSeatInfos_templateObject(){let e=(0,i._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  & > span:last-child {\n    margin-left: 8px;\n  }\n\n  @media screen and (max-width: ",") {\n    flex-direction: column;\n\n    & > span:last-child {\n      margin-left: 0;\n    }\n  }\n"]);return TicketAvailableSeatInfos_templateObject=function(){return e},e}let S=l.ZP.div.withConfig({componentId:"sc-d0f3665f-0"})(TicketAvailableSeatInfos_templateObject(),c.eE);var ticket_TicketAvailableSeatInfos=function(e){var t,n;let{ticket:i}=e,{t:l}=(0,r.$G)(),{availableSeat:o}=i;if((0,s.Glu)(o),!o)return null;(0,s.Glu)(o.seatGroup,"availableSeat.seatGroup"),(0,s.Glu)(o.seat,"availableSeat.seat");let c=null===(t=o.seatGroup)||void 0===t?void 0:t.label;return(0,a.jsxs)(S,{className:"mt2",children:[(0,a.jsx)("span",{children:l("tickets.line.seat",{seatNumber:null===(n=o.seat)||void 0===n?void 0:n.label})}),c&&(0,a.jsx)("span",{className:"mpd-color-gray small",children:c})]})};function TicketViewModal_templateObject(){let e=(0,i._)(["\n  display: flex;\n  margin-bottom: 20px;\n  overflow: hidden;\n\n  &:last-child {\n    margin-bottom: 0;\n  }\n\n  @media screen and (max-width: ",") {\n    flex-direction: column;\n  }\n"]);return TicketViewModal_templateObject=function(){return e},e}function TicketViewModal_templateObject1(){let e=(0,i._)(["\n  flex: 1;\n"]);return TicketViewModal_templateObject1=function(){return e},e}function _templateObject2(){let e=(0,i._)(["\n  display: flex;\n  align-self: stretch;\n  justify-content: space-between;\n"]);return _templateObject2=function(){return e},e}let P=(0,l.ZP)(b.aJ).withConfig({componentId:"sc-a2a061fe-0"})(TicketViewModal_templateObject(),c.Tt),I=l.ZP.div.withConfig({componentId:"sc-a2a061fe-1"})(TicketViewModal_templateObject1()),C=l.ZP.div.withConfig({componentId:"sc-a2a061fe-2"})(_templateObject2());var ticket_TicketViewModal=function(e){let{eventDate:t,ticketList:n,onClose:i}=e,{t:l}=(0,r.$G)(),d=(0,b.Fs)(c.Tt),{ticketing:p}=t;return(0,s.ilD)(p,"ticketing"),(0,x.createPortal)((0,a.jsx)(o.IX,{onCancel:i,title:l("account.tickets.tickets_details"),contentHeight:"600px",children:n.map((e,n)=>((0,s.DH1)(e.barcode,"ticket.barcode"),(0,a.jsxs)(P,{children:[(0,a.jsx)(u.Z,{ticketing:p,size:350}),(0,a.jsxs)(I,{className:"p3",children:[(0,a.jsxs)("div",{className:"txtcenter",children:[(0,a.jsx)("p",{className:"h2-like",children:p.title}),(0,a.jsx)("div",{className:"mpd-color-gray",children:(0,a.jsx)(o.Rk,{startDate:t.startDate,endDate:t.endD
1ate,format:o.$3.LONG_WITH_YEAR_AND_SHORT_MONTH})})]}),(0,a.jsx)(E.UV,{className:"mt4",children:e.getFullname()||l("tickets.line.index_nb",{index:n+1})}),(0,a.jsxs)(C,{className:"larger mpd-color-black mt1 mb4",children:[(0,a.jsx)("span",{children:e.ticketPriceName}),(0,a.jsx)("span",{className:"h3-like mt0",children:(0,o.T4)(e.facialValue,e.currency)})]}),(0,a.jsxs)("div",{className:"txtcenter",children:[(0,a.jsx)(w.tv,{value:e.barcode,size:d?180:void 0}),(0,a.jsx)(ticket_TicketAvailableSeatInfos,{ticket:e})]})]})]},e.get("@id"))))}),(0,D.W)())},O=n(76860),A=n(97830),T=n(79352),N=n(9e3),H=n(19034),R=n.n(H);function TicketSwapModalForm_templateObject(){let e=(0,i._)(["\n  label {\n    margin-bottom: 0;\n  }\n"]);return TicketSwapModalForm_templateObject=function(){return e},e}function TicketSwapModalForm_templateObject1(){let e=(0,i._)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n"]);return TicketSwapModalForm_templateObject1=function(){return e},e}function TicketSwapModalForm(e){let{orderItemList:t,onSwapValidate:n,onSwapCountChange:i}=e,l=(0,y.Z)(),c=(0,h.z)(),{t:d}=(0,r.$G)(),{values:u}=(0,O.cl)(),m=(0,O.cI)(),v=(0,A.ZP)(A.RU.CUSTOMER_EVENT_SELL_ON_HOLD_OR_SCHEDULED),[f,g]=(0,p.useState)(void 0),_=(0,p.useCallback)(async(e,t)=>{if(!e)return;let i=Object.entries(u).filter(e=>{var n,i;let[a,r]=e;return r.selected&&(null===(n=r.eventDate)||void 0===n?void 0:n.value)&&(a===t||(null===(i=r.ticketPrice)||void 0===i?void 0:i.value))}).map(n=>{var i,a,r,l,o;let[c,s]=n;return{orderItem:c,eventDate:null!==(r=null===(i=s.eventDate)||void 0===i?void 0:i.value)&&void 0!==r?r:"",ticketPrice:c===t?null!==(l=e.value)&&void 0!==l?l:"":null!==(o=null===(a=s.ticketPrice)||void 0===a?void 0:a.value)&&void 0!==o?o:""}});if(l)try{let e=await l.getRepository("swapValidateRepresentation").swapValidate(i,c,["isValid","hasSupplement","shouldCreateCashCoupon","validationError","swapFacialValue"]);g(e.validationError),null==n||n(e)}catch(t){let e=await (0,o.Gi)(t);g(e)}},[u,l,c,n]);return(0,a.jsxs)("div",{children:[f&&(0,a.jsx)(o.j3,{type:o.Xo.WARNING,children:f}),t.map(e=>{var t,n,r,p,f,g,h,y,j,k,w,x,D,S,P,I,C,O,A,H,F,Z,U,z,G;let V=null===(t=e.ticketList)||void 0===t?void 0:t.first();(0,s.DH1)(V,"orderItem.ticketList.first");let Y="".concat(e.get("@id")),$=(null===(r=u[Y])||void 0===r?void 0:null===(n=r.eventDate)||void 0===n?void 0:n.value)===e.getIn(["eventDate","@id"]),B=(A=v?T.f.join(","):N.YN,H=e.get("@id"),async(e,t)=>{if(!l)return{options:[],hasMore:!1};let n=await l.getRepository("ticketing").findBy({q:null!=t?t:void 0,sellingDevice:c,onSaleAfter:new Date().toISOString(),orderByEventDateStartDate:"ASC",orderByPosition:!0,eventDateAvailabilityStatus:A,hasTicketPriceEnabled:!0,page:e,swappableFrom:H},["@id","title","timezone"]),i=n.getMembers();return{options:i.map(e=>{var t;return{label:null!==(t=e.title)&&void 0!==t?t:"",value:e.get("@id"),data:e}}).toArray(),hasMore:!!n.getNextPage()}}),q=(F=null!==(C=null==u?void 0:null===(f=u[Y])||void 0===f?void 0:null===(p=f.ticketing)||void 0===p?void 0:p.value)&&void 0!==C?C:"",Z=v?T.f.join(","):N.YN,U=e.get("@id"),async(e,t)=>{if(!l)return{options:[],hasMore:!1};let n=await l.getRepository("eventDate").findBy({q:null!=t?t:void 0,sellingDevice:c,ticketing:F,onSaleAfter:new Date().toISOString(),availabilityStatus:Z,pagination:!1,swappableFrom:U},["@id","startDate","onSale","availabilityStatus"]),i=n.getMembers().filter(e=>(!!e.onSale||!!v)&&(!!e.onSale||!v||e.availabilityStatus===s.P1l.SALE_SCHEDULED||e.availabilityStatus===s.P1l.DRAFT));return{options:i.map(e=>{let t=e.get("startDate");return{label:t?"".concat((0,o.p6)(t)," - ").concat((0,o.mr)(t)):"",value:e.get("@id")}}).toArray(),hasMore:!!n.getNextPage()}}),W=$?e.getIn(["ticketList",0,"ticketPrice"]):null;(0,s.lTS)(W,"orderItem.ticketList.first.ticketPrice");let X=null==u?void 0:null===(y=u[Y])||void 0===y?void 0:null===(h=y.ticketing)||void 0===h?void 0:null===(g=h.data)||void 0===g?void 0:g.timezone,J=(z=null!==(O=null==u?void 0:null===(k=u[Y])||void 0===k?void 0:null===(j=k.eventDate)||void 0===j?void 0:j.value)&&void 0!==O?O:"",G=e.get("@id"),async(e,t)=>{if(!l)return{options:[],hasMore:!1};let n=R()().tz(X).second(0).format(),i=await l.getRepository("ticketPrice").findBy({sellingDevice:c,q:null!=t?t:void 0,eventDate:z,visible:!0,pagination:!1,swappableFrom:G,"saleEndDate[after]":n,"saleStartDate[before]":v?void 0:n,willGenerateTicket:!0},["@id","name","facialValue","currency","bookableStock"]),a=i.getMembers(),r=a.filter(e=>{let t=e.get("bookableStock");return null===t||t>0}),s=W?r.filter(e=>e.get("@id")!==W):r;return{options:s.map(e=>({label:"".concat(e.name," - ").concat((0,o.T4)(e.facialValue,e.currency)),value:e.get("@id")})).toArray(),hasMore:!!i.getNextPage()}});return(0,s.Glu)(V.participant,"ticket.participant"),(0,a.jsxs)(b.aJ,{className:"p4 mb4",children:[(0,a.jsx)(M,{name:"".concat(Y,".selected"),onChange:()=>{var e;let t=null===(e=u[Y])||void 0===e?void 0:e.selected,n=Object.values(u).filter(e=>e.selected).length;null==i||i(t?n-1:n+1),m.batch(()=>{m.change("".concat(Y,".ticketing"),void 0),m.change("".concat(Y,".eventDate"),void 0),m.change("".concat(Y,".ticketPrice"),void 0)})},label:(0,a.jsxs)(L,{children:[(0,a.jsxs)("div",{className:"flex-column",children:[(0,a.jsx)(E.UV,{children:(0,o.lR)(V.participant)}),(0,a.jsx)("span",{className:"bold",children:V.ticketPriceName})]}),(0,a.jsx)("div",{className:"h2-like mt0",children:(0,o.T4)(V.facialValue,V.currency)})]}),disabled:!e.isActionAvailable(s.psl.SWAP)}),(0,a.jsx)(o.gP,{when:"".concat(Y,".selected"),is:!0,children:(0,a.jsx)(o.pP,{required:!0,classnames:"mt4",label:d("tickets.swap.choose_event"),loadOptions:B,name:"".concat(Y,".ticketing"),searchable:!0,onChange:()=>{m.batch(()=>{m.change("".concat(Y,".eventDate"),void 0),m.change("".concat(Y,".ticketPrice"),void 0)})}})}),(null===(w=u[Y])||void 0===w?void 0:w.ticketing)&&(0,a.jsx)(o.pP,{required:!0,classnames:"mt2",label:d("tickets.swap.choose_event_date"),loadOptions:q,name:"".concat(Y,".eventDate"),searchable:!0,onChange:()=>{m.change("".concat(Y,".ticketPrice"),void 0)}},null===(D=u[Y])||void 0===D?void 0:null===(x=D.ticketing)||void 0===x?void 0:x.value),(null===(S=u[Y])||void 0===S?void 0:S.eventDate)&&(0,a.jsx)(o.pP,{required:!0,classnames:"mt2",label:d("tickets.swap.choose_ticket_price"),loadOptions:J,name:"".concat(Y,".ticketPrice"),searchable:!0,onChange:e=>_(e,Y)},null===(I=u[Y])||void 0===I?void 0:null===(P=I.eventDate)||void 0===P?void 0:P.value)]},e.get("@id"))})]})}let M=(0,l.ZP)(o.vE).withConfig({componentId:"sc-c8e6b1e0-0"}
1)(TicketSwapModalForm_templateObject()),L=l.ZP.div.withConfig({componentId:"sc-c8e6b1e0-1"})(TicketSwapModalForm_templateObject1());var F=n(9171);function EventDateHeaderActions_templateObject(){let e=(0,i._)(["\n  display: flex;\n  align-items: flex-end;\n  justify-content: flex-end;\n  gap: ",";\n  width: 100%;\n\n  & > div {\n    display: flex;\n    gap: ",";\n  }\n\n  button {\n    margin: 0 !important;\n    color: ",";\n    &:hover {\n      color: ",";\n    }\n  }\n\n  @media screen and (max-width: ",") {\n    padding: ",";\n\n    & > div {\n      flex-direction: column;\n      align-items: flex-start;\n      justify-content: flex-start;\n      width: 100%;\n    }\n  }\n"]);return EventDateHeaderActions_templateObject=function(){return e},e}function EventDateHeaderActions_templateObject1(){let e=(0,i._)(["\n  color: ",";\n  background-color: transparent !important;\n"]);return EventDateHeaderActions_templateObject1=function(){return e},e}function EventDateHeaderActions_templateObject2(){let e=(0,i._)(["\n  @media screen and (max-width: ",") {\n    width: 30px !important;\n    height: 30px !important;\n  }\n"]);return EventDateHeaderActions_templateObject2=function(){return e},e}function _templateObject3(){let e=(0,i._)(["\n  color: ",";\n  background-color: transparent !important;\n\n  .mpd-icon {\n    color: ",";\n  }\n"]);return _templateObject3=function(){return e},e}let Z=l.ZP.div.withConfig({componentId:"sc-bfe574b8-0"})(EventDateHeaderActions_templateObject(),c.yJ,c.yJ,c.SZ,c.SZ,c.Tt,c.yJ),U=(0,l.ZP)(f()).withConfig({componentId:"sc-bfe574b8-1"})(EventDateHeaderActions_templateObject1(),c.SZ),z=(0,l.ZP)(b.GA).withConfig({componentId:"sc-bfe574b8-2"})(EventDateHeaderActions_templateObject2(),c.Tt),G=l.ZP.button.withConfig({componentId:"sc-bfe574b8-3"})(_templateObject3(),c.SZ,c.SZ);var order_EventDateHeaderActions=function(e){var t,n,i,l;let{eventDate:c,ticketList:u=(0,m.List)(),editQuantityAction:v}=e,f=(0,g.useRouter)(),{t:j}=(0,r.$G)(),k=(0,y.Z)(),[w,x]=(0,p.useState)(!1),[D,E]=(0,p.useState)(!1),S=(0,h.z)(),{ticketing:P}=c,[I,C]=(0,p.useState)(null),[O,A]=(0,p.useState)(0),T=(0,p.useMemo)(()=>u.map(e=>((0,s.ilD)(e.order,"item.order"),e.order)).toSet().toList(),[u]),N=(0,p.useMemo)(()=>u.map(e=>((0,s.ilD)(e.orderItem,"ticket.orderItem"),e.orderItem)).toSet().toList(),[u]),H=(0,p.useMemo)(()=>N.some(e=>e.isActionAvailable(s.psl.SWAP)),[N]),R=(0,p.useMemo)(()=>u.groupBy(e=>((0,s.ilD)(e.order,"ticket.order"),e.order.getShortId())).map(e=>(0,d.A)(e)),[u]),M=(0,d.A)(u),L=1===T.size?T.first():null,V=(0,p.useCallback)(e=>((0,s.DH1)(e.downloadId,"order.downloadId"),(0,_.BC)(_.tz,{orderId:e.getShortId(),downloadId:e.downloadId})),[]),Y=(0,p.useCallback)(e=>{let t=e.getShortId();if(!R.get(t)){f.push(V(e));return}if(!k)return;let n=k.getRepository("order"),i=c.getShortId();(0,s.ilD)(P,"ticketing"),n.getPdfTicketsWithEventDate(t,i).then(e=>{var n;return(0,o.M_)(e,j("tickets.download_name",{startDate:null===(n=c.startDate)||void 0===n?void 0:n.format("YYYY-MM-DD"),ticketingSlug:P.slug,orderId:t}))}).catch(()=>{throw Error("Something went wrong while downloading tickets")})},[c,V,R,f,j,P,k]),onSubmitTicketSwap=async e=>{let t=Object.entries(e).filter(e=>{let[,t]=e;return t.selected}).map(e=>{var t,n,i,a;let[r,l]=e;return{orderItem:r,eventDate:null!==(i=null===(t=l.eventDate)||void 0===t?void 0:t.value)&&void 0!==i?i:"",ticketPrice:null!==(a=null===(n=l.ticketPrice)||void 0===n?void 0:n.value)&&void 0!==a?a:""}});if(!k)return;let n=await k.getRepository("cart").swap(t,S,["@id"]);q(!1),f.push((0,_.BC)(_.DQ,{cardId:null==n?void 0:n.getShortId(),eventDateId:c.getShortId()}))};(0,s.ilD)(P,"ticketing");let $=null;I&&($=(null!==(t=I.swapFacialValue)&&void 0!==t?t:0)>0?j("tickets.swap.supplement"):I.shouldCreateCashCoupon?j("tickets.swap.coupon"):j("tickets.swap.no_refund"));let[B,q]=(0,o.U8)({title:j("tickets.swap.title"),subtitle:O>0?(0,a.jsxs)("div",{className:"txt-center",children:[(0,a.jsx)("span",{className:"mr1",children:j("tickets.swap.count_exchanged",{count:O})}),I&&$&&(0,a.jsxs)("span",{children:[$,(0,a.jsxs)("span",{className:"bold h2-like ml2",children:[(null!==(n=I.swapFacialValue)&&void 0!==n?n:0)>0&&"+",(0,o.T4)(null!==(i=I.swapFacialValue)&&void 0!==i?i:0,null!==(l=null==P?void 0:P.currency)&&void 0!==l?l:"")]})]})]}):(0,a.jsx)("p",{children:j("tickets.swap.select_hint")}),initialValues:{},onSubmit:onSubmitTicketSwap,isFormSubmitDisabled:!(null==I?void 0:I.isValid),onCancel:()=>{C(null),A(0)},children:(0,a.jsx)(TicketSwapModalForm,{orderItemList:N,onSwapValidate:C,onSwapCountChange:A})});return L&&!M?(0,a.jsx)(Z,{children:(0,a.jsx)(U,{href:V(L),className:"mpd-btn ellipsis",children:j("tickets.header.action.customize")})}):(0,a.jsxs)(a.Fragment,{children:[w&&(0,a.jsx)(ticket_TicketViewModal,{eventDate:c,ticketList:u,onClose:()=>x(!1)}),D&&(0,a.jsx)(TicketMultiOrderDownloadModal,{onDownloadOrderTickets:Y,orderList:T,onCancel:()=>E(!1)}),(0,a.jsxs)(Z,{children:[!!v&&(0,a.jsxs)(a.Fragment,{children:[v.isEditing&&(0,a.jsxs)(G,{type:"button",className:"mpd-btn mpd-btn--tertiary bold p1",onClick:v.onCancel,disabled:v.isSaving,children:[(0,a.jsx)(b.GA,{className:"mr0",icon:"trash"}),j("account.order.option.cancel")]}),(0,a.jsxs)(G,{type:"button",className:"mpd-btn mpd-btn--tertiary bold p1",onClick:v.isEditing?v.onSave:v.onEdit,disabled:v.isEditing&&v.isSaving||v.
1isDisabled,children:[(0,a.jsx)(b.GA,{className:"mr0",icon:v.isEditing?"save":"pen-square"}),v.isEditing?j("account.order.option.save_quantity"):j("account.order.option.edit_quantity")]})]}),(0,a.jsxs)("div",{children:[u.size>0&&M&&(0,a.jsxs)(G,{type:"button",className:"mpd-btn mpd-btn--tertiary bold p1",onClick:()=>x(!0),children:[(0,a.jsx)(b.GA,{className:"mb0",icon:"eye"}),j("tickets.header.action.see")]}),u.size>0&&H&&(0,a.jsxs)(G,{type:"button",className:"mpd-btn mpd-btn--tertiary bold p1",onClick:()=>q(!0),children:[(0,a.jsx)(b.GA,{className:"mb0",icon:"switch-horizontal"}),j("tickets.header.action.swap")]})]}),u.size>0&&(0,a.jsxs)(G,{type:"button",className:"mpd-btn mpd-btn--tertiary bold p1",onClick:()=>L?Y(L):E(!0),children:[(0,a.jsx)(z,{icon:"download",className:"mb0"}),(0,a.jsx)(F.__,{children:j("tickets.header.action.download")})]})]}),B]})};function EventDateHeader_templateObject(){let e=(0,i._)(["\n  display: flex;\n  flex-wrap: wrap;\n  align-items: stretch;\n  color: white;\n  background-color: black;\n"]);return EventDateHeader_templateObject=function(){return e},e}function EventDateHeader_templateObject1(){let e=(0,i._)(["\n  display: block;\n\n  @media screen and (max-width: ",") {\n    display: none;\n  }\n"]);return EventDateHeader_templateObject1=function(){return e},e}function EventDateHeader_templateObject2(){let e=(0,i._)(["\n  display: none;\n\n  @media screen and (max-width: ",") {\n    display: block;\n    width: 100%;\n  }\n"]);return EventDateHeader_templateObject2=function(){return e},e}function EventDateHeader_templateObject3(){let e=(0,i._)(["\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  min-width: 200px;\n  padding: 11px 10px;\n\n  h2 {\n    color: white !important;\n    line-height: 25px;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    margin: 0 !important;\n    // need to use -webkit- : https://caniuse.com/?search=-webkit-box\n    display: -webkit-box;\n    -webkit-line-clamp: 2;\n    -webkit-box-orient: vertical;\n\n    @media screen and (max-width: ",") {\n      font-size: 16px !important;\n      -webkit-line-clamp: 1;\n    }\n  }\n\n  @media screen and (max-width: ",") {\n    border-left: none;\n    padding: 5px 8px;\n  }\n"]);return EventDateHeader_templateObject3=function(){return e},e}let V=l.ZP.div.withConfig({componentId:"sc-3f8a9143-0"})(EventDateHeader_templateObject()),Y=l.ZP.div.withConfig({componentId:"sc-3f8a9143-1"})(EventDateHeader_templateObject1(),c.Tt),$=l.ZP.div.withConfig({componentId:"sc-3f8a9143-2"})(EventDateHeader_templateObject2(),c.Tt),B=l.ZP.div.withConfig({componentId:"sc-3f8a9143-3"})(EventDateHeader_templateObject3(),c.Tt,c.Tt);var order_EventDateHeader=function(e){let{eventDate:t,ticketList:n,hasActions:i=!0,editQuantityAction:l,replaceButton:c}=e,{t:p}=(0,r.$G)(),{ticketing:m}=t;(0,s.ilD)(m,"ticketing");let v=t.getIn(["logicalSeatConfig","seatConfig","label"]),f=n?(0,d.l)(n):void 0,g=null==f?void 0:f.filter(e=>((0,s.ilD)(e.order,"ticket.order"),e.barcode&&e.order.paymentStatus!==s.gRw.INCOMPLETE_PAYMENT));return(0,a.jsxs)(V,{className:"mb3",children:[(0,a.jsx)(u.Z,{ticketing:m,size:120,responsiveSize:80}),(0,a.jsxs)(B,{children:[(0,a.jsx)("div",{children:(0,a.jsx)(o.Rk,{startDate:t.startDate,endDate:t.endD
1ate,format:o.$3.LONG_WITH_YEAR_AND_SHORT_MONTH})}),(0,a.jsx)("h2",{children:t.getIn(["ticketing","title"])}),(0,a.jsxs)("div",{className:"mpd-color-light-gray ellipsis",children:[v&&(0,a.jsx)("span",{className:"small",children:v}),v&&n&&(0,a.jsx)("span",{className:"small ml2 mr2",children:"|"}),f&&(0,a.jsx)("span",{className:"small",children:p("tickets.header.ticket_count",{count:f.size})})]}),(0,a.jsxs)(Y,{children:[i&&(null==g?void 0:g.size)||l?(0,a.jsx)(order_EventDateHeaderActions,{eventDate:t,ticketList:g,editQuantityAction:l}):null,c]})]}),(0,a.jsxs)($,{children:[i&&(null==g?void 0:g.size)||l?(0,a.jsx)(order_EventDateHeaderActions,{eventDate:t,ticketList:g,editQuantityAction:l}):null,c]})]},t["@id"])}},67449:function(e,t,n){n.d(t,{h:function(){return i},m:function(){return a}});let i=["@id","mediaList","title","sellingDeviceSchedule","slug","place","city",{ticketingCategory:["@id","name","position"]},{venue:["@id","name","seatingName","address","zipCode","city","countryCode","timezone"]},"isOnSale","availabilityStatus","type"],a=["@id","name","description","behaviour","currency","imageList",{offerRuleList:["image","title","description","color"]},{eventDate:["@id",{ticketing:["@id","title","position"]}]}]},51345:function(e,t,n){var i=n(52322),a=n(45847),r=n.n(a),l=n(62594);t.Z=function(){let e=(0,l.Z)();return(0,i.jsx)(r(),{src:"".concat(e,"/cdn/scripts/widget-min.js")})}},5087:function(e,t,n){n.d(t,{v:function(){return usePaymentAttemptPolling}});var i,a,r=n(2784),l=n(5632),o=n(11122),c=n(92472),s=n(58849),d=n(67909),u=n(42453);function paymentAttemptStatusReducer(e,t){switch(t.type){case"FETCH_LOADING":return{...e,isLoading:!0,errorMessage:null};case"FETCH_FAILED":return{...e,isLoading:!1,errorMessage:t.errorMessage};case"FETCH_SUCCEED":return{...e,isLoading:!1,errorMessage:null,paymentAttemptStatus:t.paymentAttemptStatus};default:throw Error("Unhandled action type: ".concat(t.type))}}function usePaymentAttemptPolling(e){let{downloadId:t,payId:n,onPaymentDone:i,onError:p,cleanUrlOnFailure:m=!0}=e,v=(0,l.useRouter)(),{t:f}=(0,o.$G)(),g=(0,d.Z)(),[b,h]=function(){let[e,t]=(0,r.useReducer)(paymentAttemptStatusReducer,{paymentAttemptStatus:null,isLoading:!0,errorMessage:null});return[e,t]}(),y=(0,r.useRef)(null),_=(0,r.useCallback)(()=>{var e,t;let n=v.query.paymentAttemptId;return"string"==typeof n?((0,u.j)()&&(null===(t=localStorage)||void 0===t||t.setItem("paymentAttemptId",n)),n):(0,u.j)()?null===(e=localStorage)||void 0===e?void 0:e.getItem("paymentAttemptId"):null},[v.query.paymentAttemptId]),j=(0,r.useMemo)(()=>_(),[_]);return(0,r.useEffect)(()=>{let e;if(!g)return;let r=y.current,getPaymentAttemptStatus=async()=>{if(!j||!t&&!n)return;e=new AbortController;let{signal:l}=e;h({type:a.FETCH_LOADING});try{var o;let e=await g.getRepository("paymentAttempt").find(j,["@id","status",{order:["@id","downloadId","payId","shippingType",{cart:["@id"]}]}],{downloadId:t,payId:n},void 0,{signal:l});if((0,s.oLH)(e.status,"paymentAttempt.status"),h({type:a.FETCH_SUCCEED,paymentAttemptStatus:e.status}),e.status===s.NFF.PENDING){y.current=setTimeout(getPaymentAttemptStatus,2e3),r=y.current;return}null===(o=localStorage)||void 0===o||o.removeItem("paymentAttemptId"),e.status===s.NFF.FAILED&&(p(f("order.payment.failed_message")),m&&v.replace(v.asPath.split("?")[0],void 0,{shallow:!0})),i(e)}catch(t){let e=await (0,c.Gi)(t);if(h({type:a.FETCH_FAILED,errorMessage:e}),t instanceof Error&&"AbortError"===t.name)return;p(e)}};return getPaymentAttemptStatus(),()=>{e&&e.abort(),r&&clearTimeout(r)}},[h,t,i,n,j,v,f,g,p,m]),b}n(79387),(i=a||(a={})).FETCH_LOADING="FETCH_LOADING",i.FETCH_SUCCEED="FETCH_SUCCEED",i.FETCH_FAILED="FETCH_FAILED"},31096:function(e,t,n){n.d(t,{f:function(){return usePaymentAttemptReducer},x:function(){return a}});var i,a,r=n(2784);function paymentAttemptReducer(e,t){switch(t.type){case"FETCH_LOADING":return{...e,isLoading:!0,errorMessage:null};case"FETCH_FAILED":return{...e,isLoading:!1,errorMessage:t.errorMessage};case"FETCH_SUCCEED":return{...e,isLoading:!1,errorMessage:null,paymentAttempt:t.paymentAttempt};default:throw Error("Unhandled action type: ".concat(t.type))}}function usePaymentAttemptReducer(){let[e,t]=(0,r.useReducer)(paymentAttemptReducer,{paymentAttempt:null,isLoading:!1,errorMessage:null});return[e,t]}(i=a||(a={})).FETCH_LOADING="FETCH_LOADING",i.FETCH_SUCCEED="FETCH_SUCCEED",i.FETCH_FAILED="FETCH_FAILED"},97830:function(e,t,n){n.d(t,{RU:function(){return i},ZP:function(){return useHasPolicy},d_:function(){return l}});var i,a=n(26221),r=n(32262);function useHasPolicy(e){var t,n,i;let{user:l}=(0,r.aF)(),o=(0,a.wU)();if(!l)return!1;let c=(null===(i=l.contractUserList)||void 0===i?void 0:null===(n=i.find(e=>e.get("contract_id")===o.mainContract))||void 0===n?void 0:null===(t=n.get("role"))||void 0===t?void 0:t.get("policies").map(e=>e.get("code")))||[];return c.includes(e)}(i||(i={})).CUSTOMER_EVENT_SELL_ON_HOLD_OR_SCHEDULED="customer-event-on-hold-or-scheduled";let l={headers:{"X-Customer-Personalized-Access":"true"}}},62594:function(e,t,n){n.d(t,{Z:function(){return usePaylineCdnUrl}});var i=n(58849),a=n(26221);function usePaylineCdnUrl(){let e=(0,a.wU)();return e.schoolMode?"https://homologation-payment.cdn.payline.com":((0,i.oLH)("https://payment.cdn.payline.com","NEXT_PUBLIC_PAYLINE_CDN_URL"),"https://payment.cdn.payline.com")}},26058:function(e,t,n){n.d(t,{z:function(){return useSellingDeviceId}});var i=n(26221);function useSellingDeviceId(){let e=(0,i.wU)();
1return e.sellingDevice["@id"]}},79352:function(e,t,n){n.d(t,{Z:function(){return useTicketingList},f:function(){return u}});var i=n(2784),a=n(92472),r=n(39737),l=n(58849),o=n(26221),c=n(9e3),s=n(97830),d=n(67909);let u=[c.YN,l.P1l.DRAFT,l.P1l.SALE_SCHEDULED];function useTicketingList(){let e=(0,d.Z)(),t=(0,o.wU)(),n=(0,r.$m)(),p=(0,s.ZP)(s.RU.CUSTOMER_EVENT_SELL_ON_HOLD_OR_SCHEDULED),m=(0,i.useCallback)(async i=>{if(!e)return null;let o={...i,eventDateAvailabilityStatus:p?u.join(","):c.YN,type:[l.Bdd,l.qHB].join(",")};try{let n=await (0,c.Ex)(e,t,o,p?s.d_:void 0),i=n.getMembers();return i}catch(t){let e=await (0,a.Gi)(t);return n({title:e,type:r.do.ERROR}),null}},[p,t,e,n]);return{fetchTicketingList:m}}},81723:function(e,t,n){n.d(t,{W:function(){return getModalRoot}});function getModalRoot(){let e=document.getElementById("modal-root");if(!e)throw Error('modal-root element not found. Did you create a div with an id "modal-root" in your DOM ?');return e}},79387:function(e,t,n){n.d(t,{H3:function(){return createPayzoneForm},Py:function(){return getPaymentAttemptProviderData},ZX:function(){return getPaymentAttemptPaylineToken},dT:function(){return getPaymentAttemptPaylineResult}});var i=n(58849);function getPaymentAttemptPaylineToken(e){let t=null==e?void 0:e.getIn(["providerMetadata","paymentProvider",i.UgR.PAYLINE,"doWebPaymentResponse","token"]);return"string"==typeof t?t:null}function getPaymentAttemptProviderData(e){if(!e)return null;let t=getPaymentAttemptPaylineToken(e);if(t)return{provider:i.UgR.PAYLINE,token:t};let n=function(e){let t=null==e?void 0:e.getIn(["providerMetadata","paymentProvider",i.UgR.STRIPE,"stripe_account"]),n=null==e?void 0:e.getIn(["providerMetadata","paymentProvider",i.UgR.STRIPE,"paymentIntent","client_secret"]),a=null==e?void 0:e.getIn(["providerMetadata","paymentProvider",i.UgR.STRIPE,"paymentIntent","returnUrl"]);return"string"==typeof t&&"string"==typeof n&&"string"==typeof a?{accountId:t,clientSecret:n,returnUrl:a}:null}(e);if(n)return{provider:i.UgR.STRIPE,...n};let a=function(e){let t=null==e?void 0:e.getIn(["providerMetadata","paymentProvider",i.UgR.PAYZONE,"paywall","signature"]),n=null==e?void 0:e.getIn(["providerMetadata","paymentProvider",i.UgR.PAYZONE,"paywall","payload"]);return"string"==typeof t&&n?{payload:n,signature:t}:null}(e);if(a)return{provider:i.UgR.PAYZONE,...a};let r=function(e){let t=null==e?void 0:e.getIn(["providerMetadata","paymentProvider",i.UgR.PAYREXX,"gateway","redirectUrl"]);return"string"==typeof t?t:null}(e);return r?{provider:i.UgR.PAYREXX,customerRedirectUrl:r}:null}function getPaymentAttemptPaylineResult(e){let t=null==e?void 0:e.getIn(["providerMetadata","paymentProvider",i.UgR.PAYLINE,"doWebPaymentResponse","result"]);return t}function createPayzoneForm(e,t){if((null==e?void 0:e.provider)!==i.UgR.PAYZONE)return;t.querySelectorAll('input[name="payload"], input[name="signature"]').forEach(e=>e.remove());let n=document.createElement("input"),a=document.createElement("input");n.type="hidden",n.name="payload",n.value=JSON.stringify(e.payload,Object.keys(e.payload.toJS()).sort()).replaceAll("/","\\/"),t.appendChild(n),a.type="hidden",a.name="signature",a.value=e.signature,t.appendChild(a),t.submit()}},70526:function(e,t,n){n.d(t,{A:function(){return getAllCustomized},l:function(){return filterPaidTicket}});var i=n(58849);function filterPaidTicket(e){return e.filter(e=>((0,i.lTS)(e.status,"ticket.status"),e.status===i.iV1.PAYED))}function getAllCustomized(e){if(!(null==e?void 0:e.size))return!1;let t=e.filter(e=>{let t=e.getFormParticipantFields(),n=t.some(e=>{var t;return!!(null===(t=e.options)||void 0===t?void 0:t.isRequired)});return n}),n=null==t?void 0:t.every(e=>!!e.isCustomized);return n}},9e3:function(e,t,n){n.d(t,{Ex:function(){return getTicketings},YN:function(){return l},lY:function(){return getTicketingSchedule}});var i=n(92472),a=n(58849),r=n(67449);let l=a.P1l.OPENED;function getTicketingSchedule(e,t,n){(0,a.DH1)(t.sellingDevice,"minisite.sellingDevice");let r=(0,i.BT)(t.sellingDevice);return e.getIn(["sellingDeviceSchedule",r,n])||e.getIn(["sellingDeviceSchedule",r,"fr"])||""}function getTicketings(e,t,n,i){let a=new Date;return a.setSeconds(0,0),e.getRepository("ticketing").findBy({sellingDevice:t.getIn(["sellingDevice","@id"]),itemsPerPage:9999,onSaleAfter:a.toISOString(),orderByEventDateStartDate:"ASC",orderByPosition:!0,eventDateAvailabilityStatus:l,hasTicketPriceEnabled:!0,...n},r.h,void 0,i)}}}]);

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.