PageSourceSearch

https://www.edfringe.com/tickets/_next/static/chunks/pages/checkout/processing-order-bfc36491503d999b.js

js edfringe.com collected 2026-09-24 08:27:42 UTC 14,718 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5425],{14909:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/processing-order",function(){return r(52791)}])},38186:function(e,t,r){"use strict";r.d(t,{V:function(){return _}});var n=r(52322),a=r(61825),i=r(54204),o=r.n(i),c=r(72092),s=r(2784),l=r(26984),u=function(){let e=(0,c.CG)(e=>e.cart.cart),t=(0,s.useMemo)(()=>(0,l.g_)(e),[e]);return{loading:!1,...t}},d=r(61223);let _=e=>{var t,r,i,s,l,_;let{isCheckout:p,isDonation:f}=e,v=(0,c.CG)(e=>e.cart);if(void 0===v.cart)return;let{formatPrice:x}=(0,d.p)(),{bookingFee:m,basketDiscount:h,total:g}=u(),b=Number(null!==(l=null===(t=v.cart)||void 0===t?void 0:null===(r=t.summary)||void 0===r?void 0:r.discountValue)&&void 0!==l?l:0)||0,k=Number(null!==(_=null===(i=v.cart)||void 0===i?void 0:null===(s=i.summary)||void 0===s?void 0:s.donationTotal)&&void 0!==_?_:0)||0;return(0,n.jsxs)("div",{className:o().items,children:[f?(0,n.jsx)("div",{className:o().divider}):(0,n.jsxs)(n.Fragment,{children:[p&&(0,n.jsxs)(n.Fragment,{children:[b>0&&(0,n.jsxs)("div",{className:o().item,children:[(0,n.jsx)(a._,{children:"Gift voucher redeemed:"}),(0,n.jsx)(a._,{children:x(b.toString())})]}),k>0&&(0,n.jsxs)("div",{className:o().item,children:[(0,n.jsx)(a._,{children:"Donation:"}),(0,n.jsx)(a._,{children:x(k.toString())})]})]}),m>0&&(0,n.jsxs)("div",{className:o().item,children:[(0,n.jsx)(a._,{children:"Booking fee:"}),(0,n.jsx)(a._,{children:x(m.toString())})]}),h>0&&(0,n.jsxs)("div",{className:o().item,children:[(0,n.jsx)(a._,{children:"Discount:"}),(0,n.jsx)(a._,{children:x(h.toString())})]}),(0,n.jsx)("div",{className:o().divider})]}),(0,n.jsxs)("div",{className:o().item,children:[(0,n.jsxs)(a._,{size:"large",bold:!0,children:["Total ",f?"cost":""]}),(0,n.jsx)(a._,{size:"large",bold:!0,children:x(g.toString())})]})]})}},64340:function(e,t,r){"use strict";r.d(t,{$:function(){return s}});var n=r(52322),a=r(83224),i=r(12916),o=r(61223),c=r(47048);function s(){let{formatPrice:e}=(0,o.p)(),{loading:t,perTicketTransactionFee:r,maxTransactionFeeCap:s}=(0,c.Z)(),l=t?null:(0,i.n)(r,s,e);return(0,n.jsxs)(n.Fragment,{children:[l&&(0,n.jsx)(a.n,{size:"small",color:"grey",children:l}),(0,n.jsx)(a.n,{size:"small",color:"grey",children:"Fringe tickets are not refundable or exchangeable, so be sure to check the details of your booking including any age restrictions or event warnings."})]})}},7184:function(e,t,r){"use strict";r.d(t,{b:function(){return o}});var n=r(52322),a=r(60249),i=r(67118);function o(e){return(0,n.jsx)(a.W,{children:(0,n.jsx)(i.t,{steps:["Order details","Payment","Complete"],currentStep:e.currentStep,showLabels:!0})})}},22617:function(e,t,r){"use strict";r.d(t,{v:function(){return l}});var n=r(52322),a=r(28303),i=r(39097),o=r.n(i),c=r(53397),s=r.n(c);let l=e=>{let{text:t,type:r,large:a,href:i,target:c,ctaLabel:l,icon:_}=e;return(0,n.jsxs)("div",{className:"".concat(d(r)," ").concat(a?s().large:""),children:[(0,n.jsx)("div",{className:s().infoBoxIcon,children:_||u(r,a)}),(0,n.jsxs)("div",{className:s().infoBoxContent,children:[(0,n.jsx)("div",{className:s().infoBoxText,children:t}),i&&(0,n.jsx)("div",{className:s().infoBoxLink,children:(0,n.jsx)(o(),{href:i,target:c||"_self",children:l||"Learn more"})})]})]})},u=(e,t)=>{switch(e){case"info":case"alert":return(0,n.jsx)(a.J,{icon:"Lightbulb",size:t?24:16});case"error":return(0,n.jsx)(a.J,{icon:"Warning",size:t?24:16});case"success":return(0,n.jsx)(a.J,{icon:"Check",size:t?24:16});default:return null}},d=e=>{switch(e){case"info":default:return s().infoBox;case"alert":return s().infoBoxAlert;case"error":return s().infoBoxError;case"success":return s().infoBoxSuccess}}},61825:function(e,t,r){"use strict";r.d(t,{_:function(){return o}});var n=r(52322),a=r(25275),i=r.n(a);let o=e=>{let{children:t,size:r,bold:a,upper:o,grey:c,noWrap:s}=e;if(!t)return null;let l="";if(r)switch(r){case"tiny":l=i().labelTiny;break;case"small":l=i().labelSmall;break;case"large":l=i().labelLarge}return(0,n.jsx)("span",{className:"".concat(i().label," ").concat(l," ").concat(a&&i().labelBold," ").concat(o&&i().labelUpper," ").concat(c&&i().labelGrey," ").concat(s&&i().noWrap),children:t})}},67118:function(e,t,r){"use strict";r.d(t,{t:function(){return c}});var n=r(52322),a=r(2784),i=r(23569),o=r.n(i);let c=e=>{let{steps:t,numSteps:r,currentStep:i,showLabels:c}=e;if(void 0===t&&void 0===r)return;let s=(0,a.useRef)(null),l=(0,a.useRef)(!0);return(0,a.useEffect)(()=>
1{if(l.current)l.current=!1;else if(s.current){var e;let t=null===(e=s.current)||void 0===e?void 0:e.getBoundingClientRect();void 0!==t&&window.scrollTo({left:0,top:t.top+window.scrollY-100,behavior:"smooth"})}},[i]),(0,n.jsx)("div",{ref:s,className:"".concat(o().wrapper," ").concat(c?o().showLabels:""),children:(0,n.jsx)("div",{className:o().container,children:(()=>{let e=[];if(void 0!==t)e=t.map((e,t)=>(0,n.jsxs)("div",{className:"".concat(o().step," ").concat(i>t+1?o().stepComplete:i===t+1?o().stepActive:o().stepDefault),children:[(0,n.jsx)("div",{className:o().stepPip}),c&&(0,n.jsx)("span",{className:o().stepLabel,children:e})]},"progress-step_".concat(t)));else if(void 0!==r)for(let t=1;t<r+1;t++)e.push((0,n.jsx)("div",{className:"".concat(o().step," ").concat(i>t?o().stepComplete:i===t?o().stepActive:o().stepDefault),children:(0,n.jsx)("div",{className:o().stepPip})}));return e})()})})}},63732:function(e,t,r){"use strict";r.d(t,{v:function(){return s}});var n=r(52322),a=r(46148),i=r(15219),o=r(713),c=r.n(o);let s=e=>(0,n.jsx)("div",{className:c().container,children:(0,n.jsxs)(i.b,{gap:"medium",align:"center",children:[(0,n.jsx)(a.Z,{src:"/assets/static/images/screen-loader.gif",height:122,width:214,alt:"Loading"}),e.text&&(0,n.jsx)("div",{className:c().loadingText,children:e.text})]})})},60249:function(e,t,r){"use strict";r.d(t,{W:function(){return o}});var n=r(52322),a=r(83423),i=r.n(a);let o=e=>{let{children:t,moreSpacing:r,size:a}=e;return(0,n.jsx)("div",{className:"".concat(i().wrapper," ").concat(r?i().wrapperLarge:""),children:(0,n.jsx)("div",{className:c(a),children:t})})},c=e=>{switch(e){case"small":return i().containerSmall;case"narrow":return i().containerNarrow;case"medium":return i().containerMedium;case"max":return i().containerMaxWidth;default:return i().container}}},15219:function(e,t,r){"use strict";r.d(t,{b:function(){return o}});var n=r(52322),a=r(6769),i=r.n(a);let o=e=>{let{children:t,gap:r,align:a,className:o}=e,c="";if(r)switch(r){case"line":c=i().verticalStackLine;break;case"tiny":c=i().verticalStackTiny;break;case"small":c=i().verticalStackSmall;break;case"medium":c=i().verticalStackMedium;break;case"large":c=i().verticalStackLarge}let s="";switch(a){case"left":s=i().verticalStackLeft;break;case"center":s=i().verticalStackCenter;break;case"right":s=i().verticalStackRight}return(0,n.jsx)("div",{className:"".concat(i().verticalStack," ").concat(c," ").concat(s," ").concat(o||""),children:t})}},59224:function(e,t,r){"use strict";r.d(t,{F:function(){return o}});var n=r(52322),a=r(60249),i=r(9133);let o=e=>{let{showPageTitle:t,pageTitle:r,children:o}=e;return(0,n.jsxs)(n.Fragment,{children:[t&&r&&(0,n.jsx)(i.V,{title:r}),(0,n.jsx)(a.W,{children:o})]})}},62222:function(e,t,r){"use strict";r.d(t,{h:function(){return c}});var n=r(52322),a=r(97729),i=r.n(a);r(90542);var o=r(82876);let c=e=>{let t=(0,o.usePathname)();return(0,n.jsxs)(i(),{children:[(0,n.jsxs)("title",{children:[e.title," | ","Edinburgh Festival Fringe"]}),(0,n.jsx)("link",{rel:"canonical",href:e.canonical?e.canonical:"https://www.edfringe.com/tickets"+t},"canonical")]})}},52791:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return k}});var n=r(52322),a=r(35623),i=r(2784),o=r(64340),c=r(38186),s=r(7184),l=r(22617),u=r(62222),d=r(63732),_=r(59224),p=r(54204),f=r.n(p),v=r(72323),x=r.n(v),m=r(34306),h=r.n(m),g=r(72092),b=r(5632);function k(){let[e,t]=(0,a.xQf)(),[r,p]=(0,i.useState)(!1),[v,m]=(0,i.useState)(""),[k,j]=(0,i.useState)(!0),S=(0,g.CG)(e=>e.cart),[w,y]=(0,i.useState)("Processing your order..."),[N,C]=(0,i.useState)(),L=(0,b.useRouter)(),[B]=(0,a.ujw)(),T=e=>{j(!1),e&&m("There was an error processing your order."),p(!0)};return(0,i.useEffect)(()=>{var t;let r=new URLSearchParams(window.location.search),n=r.get("orderId");e({sessionId:null===(t=S.cart)||void 0===t?void 0:t.sessionId}).then(e=>{if("error"in e){var t;return T(null===(t=e.error)||void 0===t?void 0:t.message),null}let{data:r}=e,{processOrder:a}=r||{};return(a&&a.error&&T(a.error),a.success&&n)?(y("completing your order..."),B({orderId:n})):(T(""),null)}).then(e=>{if(null===e)return;if("error"in e){var t;T(null===(t=e.error)||void 0===t?void 0:t.message);return}let{data:r}=e,{orderSummary:a}=r||{},{result:i}=a||{};a&&a.error&&T(a.error),a.success&&i&&L.push("/checkout/confirmation?orderId=".concat(n))})},[]),(0,n.jsxs)(_.F,{showPageTitle:!0,pageTitle:"Checkout",children:[(0,n.jsx)(u.h,{title:"Processing Order"}),(0,n.jsx)(s.b,{currentStep:2}
1),(0,n.jsxs)("div",{className:h().twoColumnContainer,children:[(0,n.jsxs)("div",{className:h().twoColumnMain,children:[r&&!k&&(0,n.jsx)("div",{style:{maxWidth:"432px",margin:"0 auto"},children:(0,n.jsx)(l.v,{type:"error",text:v})}),k&&(0,n.jsx)(d.v,{})]}),k&&(0,n.jsx)("div",{className:h().twoColumnSidebar,children:(0,n.jsxs)("div",{className:f().container,children:[(0,n.jsxs)("div",{className:f().card,children:[(0,n.jsx)("div",{className:"".concat(x().h3," ").concat(x().noMargin),style:{textAlign:"center"},children:"Pay for your order"}),(0,n.jsx)(c.V,{isCheckout:!0})]}),(0,n.jsx)("div",{className:f().text,children:(0,n.jsx)(o.$,{})})]})})]})]})}},12916:function(e,t,r){"use strict";r.d(t,{S:function(){return n},n:function(){return a}});let n=function(e,t,r,n){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(null==n?void 0:n.trim())return n.trim();if(!Number.isFinite(e)||e<=0)return null;let i=r(e.toString());if(t>0){let e=r(t.toString()),n=a>0?a:void 0;return null!=n?"The prices below include a ".concat(i," booking fee per ticket. You will never be charged more than ").concat(e," in fees per booking. If you have more than ").concat(n," tickets in your basket the fee reduction will be automatically applied at checkout."):"The prices below include a ".concat(i," booking fee per ticket. You will never be charged more than ").concat(e," in fees per booking.")}return"A booking fee of ".concat(i," will be added per ticket.")},a=(e,t,r)=>{if(!Number.isFinite(e)||e<=0||!Number.isFinite(t)||t<=0)return null;let n=r(e.toString()),a=r(t.toString());return"A booking fee of ".concat(n," per ticket up to a maximum of ").concat(a," per transaction is applied to all bookings, including in-person counter sales. This contributes towards the charitable activities of the Fringe Society and help support the artists, venues and creatives that make the Fringe happen every year.")}},47048:function(e,t,r){"use strict";var n=r(35623),a=r(26984);t.Z=function(){var e,t,r;let{data:i,isLoading:o,isFetching:c,isError:s}=(0,n.v5s)(),l=null==i?void 0:i.transactionFeeInfo,u=(null==l?void 0:l.success)?null===(e=l.result)||void 0===e?void 0:e.filter(e=>!!e):[],d=u.filter(e=>e.applyToTickets),_=null!==(t=d[0])&&void 0!==t?t:null;return{loading:void 0===i&&(o||c),error:(null==l?void 0:l.success)===!1?null!==(r=l.error)&&void 0!==r?r:"Unable to load booking fee information":s?"Unable to load booking fee information":null,transactionFeeInfo:u,ticketBookingFees:d,ticketBookingFee:_,perTicketTransactionFee:_?(0,a.je)(_):0,maxFeeableTicketQuantity:_?(0,a.z1)(_):0,maxTransactionFeeCap:_?(0,a.BM)(_):0}}},83423:function(e){e.exports={wrapper:"container_wrapper__KxlsL",wrapperLarge:"container_wrapperLarge__NQYN7",container:"container_container__qbpKA",containerMaxWidth:"container_
1containerMaxWidth__x0SBr",containerMedium:"container_containerMedium__tr7jr",containerNarrow:"container_containerNarrow__W3NWi",containerSmall:"container_containerSmall__HYsuk"}},34306:function(e){e.exports={pageLayoutCompact:"page-layout_pageLayoutCompact__Qncxh",pageLayoutSidebar:"page-layout_pageLayoutSidebar__7IVB5",pageLayoutContent:"page-layout_pageLayoutContent__z5v3I",pageLayoutContainer:"page-layout_pageLayoutContainer__BMB0a","has-footer":"page-layout_has-footer___XihS",pageLayoutSidebarRounded:"page-layout_pageLayoutSidebarRounded__U3Uxz",twoColumnContainer:"page-layout_twoColumnContainer__3EQ5S",twoColumnMain:"page-layout_twoColumnMain__OQo2N",twoColumnMainMobileReverse:"page-layout_twoColumnMainMobileReverse__xWhdE",twoColumnSidebar:"page-layout_twoColumnSidebar__x9zSW"}},6769:function(e){e.exports={verticalStack:"vertical-stack_verticalStack__0zMY_",verticalStackLine:"vertical-stack_verticalStackLine__7nVJ6",verticalStackTiny:"vertical-stack_verticalStackTiny__6NL4O",verticalStackSmall:"vertical-stack_verticalStackSmall__VYW5n",verticalStackMedium:"vertical-stack_verticalStackMedium__awWI3",verticalStackLarge:"vertical-stack_verticalStackLarge__SypxL",verticalStackLeft:"vertical-stack_verticalStackLeft__8wQll",verticalStackCenter:"vertical-stack_verticalStackCenter__d55_W",verticalStackRight:"vertical-stack_verticalStackRight__PbPSq"}},54204:function(e){e.exports={container:"cart-summary_container__o2v0_",card:"cart-summary_card__jx_kG",text:"cart-summary_text__v_KS1",item:"cart-summary_item__oZ_ZD",divider:"cart-summary_divider__b_jZx"}},53397:function(e){e.exports={infoBox:"info-box_infoBox__D5o_m",infoBoxSuccess:"info-box_infoBoxSuccess__Vb3LK",infoBoxError:"info-box_infoBoxError__Cct_9",infoBoxAlert:"info-box_infoBoxAlert__XGGU_",infoBoxIcon:"info-box_infoBoxIcon__Kl8aZ",infoBoxContent:"info-box_infoBoxContent__9zPGQ",infoBoxText:"info-box_infoBoxText__4LI_J",infoBoxLink:"info-box_infoBoxLink__3JLlj",large:"info-box_large__Tt0NM"}},25275:function(e){e.exports={label:"label_label__oVqgs",labelTiny:"label_labelTiny__lPmmE",labelSmall:"label_labelSmall__YNIe3",labelLarge:"label_labelLarge__qZFoG",labelBold:"label_labelBold___cJup",labelUpper:"label_labelUpper__ZIggU",labelGrey:"label_labelGrey__Cxtqn",noWrap:"label_noWrap__f6dUy"}},23569:function(e){e.exports={wrapper:"progess-steps_wrapper__OSztP",showLabels:"progess-steps_showLabels__giFPJ",container:"progess-steps_container__basdu",stepLabel:"progess-steps_stepLabel__ljdcL",step:"progess-steps_step__wYAHL",stepPip:"progess-steps_stepPip__KCB76",stepDefault:"progess-steps_stepDefault__2vk7y",stepActive:"progess-steps_stepActive__SWK6n",stepComplete:"progess-steps_stepComplete__TYrCQ"}},713:function(e){e.exports={container:"screen-loader_container__easCx",loadingText:"screen-loader_loadingText__Hpm6G",ellipsis:"screen-loader_ellipsis__QC7SD"}}},function(e){e.O(0,[7570,5129,9774,2888,179],function(){return e(e.s=14909)}),_N_E=e.O()}]);

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.