PageSourceSearch

https://aiinfinance.co.uk/static/js/SelectPackageView.b9ad2516.chunk.js

js aiinfinance.co.uk collected 2026-10-09 02:56:54 UTC 56,080 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[101,1887,2610,5983],{61952(e,t,s){s(76998);var a=s(13761),o=s(80369),i=s(23236),n=s(14285),c=s(16562),r=s(23446);const l=(0,o.C)()((0,a.Ng)(function(e){return{siteProducts:e.siteProducts,courseOptions:e.courseOptions,pageConfig:e.pageConfig}})((0,n.sw)(function(e){const{siteProducts:{bookingClosedMessage:t}={},courseOptions:{bookingClosedMessage:s}={},pageConfig:{location:a}={},brand:{secondaryColor:o}={},t:n}=e,l={backgroundColor:o},d=t||s;return(0,r.jsx)("div",{className:"c-booking-closed-section",style:l,children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"col-xs-12",children:[(0,r.jsx)("h1",{className:"c-booking-closed-section__heading",children:n("event.purchase.booking-closed")}),d&&(0,r.jsx)("div",{className:"c-booking-closed-section__message",children:(0,i.xk)(d,a)}),(0,r.jsx)(c.default,{section:{contentType:"booking_closed",type:"event_lead_generation_section"}})]})})})})})));s.d(t,["A",0,l])},2018(e,t,s){s.d(t,{A:()=>i});s(76998);var a=s(66395),o=s(23446);function i(e){let{header:t,body:s,footer:i}=e;return(0,o.jsx)(a.A,{section:{type:"payment_journey_message"},backgroundColor:"white",children:(0,o.jsx)("div",{className:"c-payment-journey-message",children:(0,o.jsxs)("div",{className:"container",children:[t&&(0,o.jsx)("div",{className:"row",children:(0,o.jsx)("div",{className:"col-xs-12",children:t})}),s&&(0,o.jsx)("div",{className:"row",children:(0,o.jsx)("div",{className:"col-xs-12",children:s})}),i&&(0,o.jsx)("div",{className:"row",children:(0,o.jsx)("div",{className:"col-xs-12",children:i})})]})})})}},94919(e,t,s){var a=s(76998),o=s(82086),i=s(80369),n=s(91005),c=s(23446);class r extends a.Component{getEnding(e){switch(e%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}}getProductsForMessage(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).join(", ")}getMessageByType(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{discount:s,minNumberOfTickets:a,status:i="withoutStatus",productNames:n,delegateTypesNames:r,claims:l,appliedCode:d,locale:p,contactEmail:h,contactTelephone:u}=t;let m,x;switch(i){case"MSG_FIXED":m=e("event.purchase.multiBuySuccess"),x=e("event.purchase.multiBuySuccessFixedAmount",{0:a,1:s,2:"en"===p?this.getEnding(a):a});break;case"MSG_PERCENTAGE":m=e("event.purchase.multiBuySuccess"),x=e("event.purchase.multiBuySuccessPercentage",{0:a,1:s,2:"en"===p?this.getEnding(a):a});break;case"APPLIED":m=e("event.purchase.packageDiscount",{0:s});break;case"VIP_SUCCESS_PERCENTAGE":m=e("event.purchase.vipSuccess",{0:d}),x=e("event.purchase.vipSuccessPercentage",{0:s});break;case"VIP_SUCCESS_PERCENTAGE_FOR_PRODUCTS":m=e("event.purchase.vipSuccess",{0:d}),x=e("event.purchase.vipSuccessPercentageForProducts",{0:s,2:this.getProductsForMessage(n)});break;case"VIP_SUCCESS_FIXED":m=e("event.purchase.vipSuccess",{0:d}),x=e("event.purchase.vipSuccessFixed",{0:s});break;case"VIP_SUCCESS_FIXED_FOR_PRODUCTS":m=e("event.purchase.vipSuccess",{0:d}),x=e("event.purchase.vipSuccessFixedForProducts",{0:s,2:this.getProductsForMessage(n)});break;case"VIP_NOT_ENOUGH_CLAIMS_PERCENTAGE":m=e("event.purchase.vipSuccess",{0:d}),x=1===l?e("event.purchase.vipNotEnoughClaimsPercentageSingle",{1:l,0:s}):e("event.purchase.vipNotEnoughClaimsPercentageMultiple",{0:s,1:l});break;case"VIP_NOT_ENOUGH_CLAIMS_PERCENTAGE_FOR_PRODUCTS":m=e("event.purchase.vipSuccess",{0:d}),x=e("event.purchase.vipNotEnoughClaimsPercentageForProducts",{0:s,1:this.getProductsForMessage(n),2:l});break;case"VIP_NOT_ENOUGH_CLAIMS_FIXED":m=e("event.purchase.vipSuccess",{0:d}),x=e(1===l?"event.purchase.vipNotEnoughClaimsFixedAmountSingle":"event.purchase.vipNotEnoughClaimsFixedAmountMultiple",{0:s,1:l});break;case"VIP_NOT_ENOUGH_CLAIMS_FIXED_FOR_PRODUCTS":m=e("event.purchase.vipSuccess",{0:d}),x=e("event.purchase.vipNotEnoughClaimsFixedAmountForProducts",{0:s,1:this.getProductsForMessage(n),2:l});break;case"NO_CODE_EXISTS":m=e("informa.content.validation.PromotionCodeExists.message"),x=(0,c.jsx)(o.x,{i18nKey:"informa.content.validation.PromotionCode.contact",values:{0:u,1:h},children:(0,c.jsx)("a",{href:`mailto:${h}`,children:h})});break;case"CODE_EXPIRED":m=e("informa.content.validation.PromotionCodeExpired.message"),x=(0,c.jsx)(o.x,{i18nKey:"informa.content.validation.PromotionCode.contact",values:{0:u,1:h},children:(0,c.jsx)("a",{href:`mailto:${h}`,children:h})});break;case"MAX_CLAIMS_REACHED":m=e("informa.content.validation.PromotionMaxClaimsReached.message"),x=(0,c.jsx)(o.x,{i18nKey:"informa.content.validation.PromotionCode.contact",values:{0:u,1:h},children:(0,c.jsx)("a",{href:`mailto:${h}`,children:h})});break;case"CODE_IS_AVAILABLE_ONLY_FOR_PRODUCTS":m=e("informa.content.validation.PromotionCode.onlyAvailableForProducts",{0:this.getProductsForMessage(n)}),x=(0,c.jsx)(o.x,{i18nKey:"informa.content.validation.PromotionCode.contact",values:{0:u,1:h},children:(0,c.jsx)("a",{href:`mailto:${h}`,children:h})});break;case"CODE_IS_AVAILABLE_ONLY_FOR_DELEGATE_TYPES":m=e("informa.content.validation.PromotionCode.onlyAvailableForDelegateTypes",{0:null===r||void 0===r?void 0:r.join(", ")}),x=(0,c.jsx)(o.x,{i18nKey:"informa.content.validation.PromotionCode.contact",values:{0:u,1:h},children:(0,c.jsx)("a",{href:`mailto:${h}`,children:h})});break;case"CODE_IS_AVAILABLE_ONLY_FOR_DELEGATE_TYPES_AND_FOR_PRODUCTS":m=e("informa.content.validation.PromotionCode.onlyAvailableForDelegateTypesAndProducts",{0:null===r||void 0===r?void 0:r.join(", "),1:null===n||void 0===n?void 0:n.join(", ")}),x=(0,c.jsx)(o.x,{i18nKey:"informa.content.validation.PromotionCode.contact",values:{0:u,1:h},children:(0,c.jsx)("a",{href:`mailto:${h}`,children:h})});break;case"VIP_SUCCESS_FIXED_FOR_DELEGATE":case"VIP_SUCCESS_PERCENTAGE_FOR_DELEGATE":m=e("site.pricing.discount.vip-code-discount.success.title",{0:d}),x=e("site.pricing.discount.vip-code-discount.VIP_SUCCESS_FIXED_FOR_DELEGATE-and-VIP_SUCCESS_PERCENTAGE_FOR_DELEGATE.success.message",{0:s,1:null===r||void 0===r?void 0:r.join(", ")});break;case"VIP_SUCCESS_PERCENTAGE_MULTI_BUY":case"VIP_SUCCESS_FIXED_MULTI_BUY":m=e("site.pricing.discount.vip-code-discount.success.title",{0:d}),x=e(1===l?"site.pricing.discount.vip-code-discount.VIP_SUCCESS_PERCENTAGE_MULTI_BUY-and-VIP_SUCCESS_FIXED_MULTI_BUY.single-claim.success.message":"site.pricing.discount.vip-code-discount.VIP_SUCCESS_PERCENTAGE_MULTI_BUY-and-VIP_SUCCESS_FIXED_MULTI_BUY.multiple-claim.success.message",{0:s,1:l});break;case"withoutStatus":s&&(m=e("event.purchase.select.vipSuccess.title",{0:s}),x=e("event.purchase.select.vipSuccess.description"))}return{title:m,text:x}}render(){const{data:e,appliedCode:t,i18n:s,t:a}=this.props,{success:o}=e||{},i=(0,n.b8)(e)?{title:a("site.pricing.discount.vip-code-discount.zero-value.accepted.message"),text:void 0}:this.getMessageByType(a,{...e,appliedCode:t,locale:s.language});return(0,c.jsx)("div",{className:"discount-message",children:(0,c.jsxs)("div",{className:"discount-message__container",children:[(0,c.jsx)("div",{className:"discount-message__icon "+(o?"":"discount-message__icon--error"),children:(0,c.jsx)("i",{className:"material-icons",children:o?"check_circle":"cancel"})}),(0,c.jsxs)("div",{className:"discount-message__text-container",children:[(0,c.jsx)("p",{className:"discount-message__title "+(o?"":"discount-message__title--error"),children:i.title}),i.text&&(0,c.jsx)("p",{className:"discount-message__text",children:i.text})]})]})})}}const l=(0,i.C)()(r);s.d(t,["A",0,l])},34726(e,t,s){s(76998);var a=s(14285),o=s(23446);const i=(0,a.sw)(function(e){const{heading:t,checked:s,showLeftLine:a=!1,className:i="",children:n,brand:{secondaryColor:c}={}}=e,r={borderColor:a?c:"white"},l={color:c};return n&&(0,o.jsxs)("div",{className:`c-payment-form-block ${i}`,children:[t&&(0,o.jsx)("h2",{className:"c-payment-form-block__heading",style:l,children:t}),(0,o.jsx)("div",{className:"c-payment-form-block__body"+(s?" checked":""),style:r,children:n})]})});s.d(t,["A",0,i])},89440(e,t,s){s.d(t,{Ay:()=>I,Vw:()=>T});var a=s(76998),o=s(84946),i=s(82086),n=s(86273),c=s(24241),r=s(50776),l=s(23236),d=s(43525),p=s(14285),h=s(17317),u=s(69759),m=s(99867),x=s(34726),g=s(23446);const v=(0,p.sw)(function(e){const{heading:t,body:s,brand:{secondaryColor:a}={},closeModal:o}=e;return(0,g.jsxs)("div",{className:"c-product-popup",children:[(0,g.jsx)("div",{className:"c-product-popup__header",style:{backgroundColor:a},children:(0,g.jsxs)("div",{className:"c-product-popup__close",onClick:o,children:["\xd7",(0,g.jsx)("span",{children:"Close"})]})}),(0,g.jsxs)("div",{className:"c-product-popup__body",children:[t&&(0,g.jsx)("h3",{className:"c-product-popup__heading",children:t}),s&&(0,g.jsx)("div",{children:s})]})]})});var f=s(80369),b=s(34156),y=s.n(b),_=s(19050);function j(e){const{valid:t,list:{min:s,max:o,options:i=[]}={},t:n}=e,c=s&&o,r=!s&&!o,l=s&&!o,d=!s&&o,p=s===o,h=(0,a.useRef)(null),u=y()("c-option-list-multiple-heading",{"c-option-list-multiple-heading--error":!t});var m;
1t||_.Ay.animateScroll.scrollTo(null===h||void 0===h||null===(m=h.current)||void 0===m?void 0:m.offsetTop);return(0,g.jsxs)("h5",{ref:h,className:u,children:[c&&(p?n(1===o?"event.purchase.option-list-multiple.equal-single":"event.purchase.option-list-multiple.equal-plural",{0:o}):n("event.purchase.choose.product.option.multiple.max.and.min",{0:s,1:o})),r&&n("event.purchase.choose.product.option.multiple",{0:i.length}),l&&n("event.purchase.choose.product.option.multiple.min",{0:s}),d&&n("event.purchase.choose.product.option.multiple.max",{0:o})]})}const C="SINGLE_CHOICE";class N extends a.Component{render(){const{listIndex:e,selected:t={},productType:{productTypeId:s}={},productItem:{id:o,productOptionsList:i={}}={productOptionsList:{}},onOptionChange:n,brand:{secondaryColor:c}={},t:r}=this.props,l=i[e]||{};let d=null;if(l.type===C){const e=Object.keys(t.options).map(e=>({id:e,selected:t.options[e].selected})).filter(e=>e.selected);d=e.length?e[0].id:void 0}return l.type&&(0,g.jsxs)("div",{className:"c-option-list",children:[(0,g.jsx)("div",{className:"c-option-list__separator"}),l.type===C&&(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)("h5",{className:"c-option-list__heading"+(t.valid?"":" has-error"),children:r("event.purchase.please.select.option")}),(0,g.jsx)("div",{className:"c-option-list__content",children:(0,g.jsx)("select",{className:"c-select",onChange:n,value:`${s}:${o}:${d}:${e}`,children:l.options.map(t=>(0,g.jsx)("option",{value:`${s}:${o}:${t.id}:${e}`,children:t.name},t.id))})})]}),"MULTIPLE_CHOICE"===l.type&&(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(j,{valid:t.valid,list:l,t:r}),(0,g.jsx)("div",{className:"c-option-list__content",children:l.options.map(a=>(0,g.jsx)(h.iI,{type:l.type,size:"small",value:`${s}:${o}:${a.id}:${e}`,label:a.name,color:c,checked:t.options[a.id].selected,disabled:t.options[a.id].disabled,onChange:n},a.id))})]})]})}}const k=(0,f.C)()((0,p.sw)(N));var S=s(79107);function T(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.qy)===n.gT?e.split(" ").reverse().join(" "):e}const I=(0,p.sw)(function(e){const{t:t}=(0,o.B)(),{dateFormat:s=n.qy}=(0,c.N)(r.zU),{location:a}=(0,c.N)(S.iq),{productType:{productTypeId:p,selectionType:f}={},productItem:{id:b,name:y,vat:_,price:j,priceInclVat:C,tieredSaving:N,description:I,productOptionsList:E=[]}={productOptionsList:[]},tier:{endDate:P}={},selected:w={primarySelected:!1,optionsList:{}},disabled:O=!1,vatRate:A=0,taxLabelStyle:F="VAT",isPriceInclVat:L=!1,onProductChange:D,onOptionChange:V,brand:{secondaryColor:M}={}}=e,R=(0,d.A)(m.A,v);return f&&(0,g.jsx)("div",{className:"c-product-item"+(w.disabled||O?" disabled":""),children:(0,g.jsx)(x.A,{checked:w.selected,showLeftLine:!0,children:(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-xs-12",children:(0,g.jsx)(h.iI,{type:f,value:`${p}:${b}`,checked:w.selected,disabled:w.disabled||O,onChange:D,noCheckbox:w.primarySelected,children:(0,g.jsxs)("div",{className:"row",children:[(0,g.jsx)("div",{className:"col-xs-12 col-sm-7",children:(0,g.jsxs)("div",{className:`c-product-item__content${I?" has-description":""}${A>0?" has-vat-rate":""}${"none"===b?" none-item":""}`,children:[(0,g.jsx)("div",{className:"c-product-item__label",children:y}),I&&I.length>130?(0,g.jsx)(R,{content:{heading:y,body:(0,l.xk)(I,a)},className:"c-product-item__more-info",style:{color:M},children:t("event.purchase.more-information")}):I&&(0,g.jsx)("div",{className:"c-product-item__description",children:(0,l.xk)(I,a)})]})}),(0,g.jsxs)("div",{className:"col-xs-12 col-sm-5",children:[(0,g.jsx)("div",{className:"c-product-item__price",children:L?C:j}),_&&A>0&&(0,g.jsx)("div",{className:"c-product-item__vat-amount",children:(0,g.jsx)(u.A,{isPriceInclVat:L,vat:_,vatRate:A,taxLabelStyle:F,shortMessage:!0,className:"c-vat-message--mobile-left-aligned"})}),E.length>0&&!w.selected&&(0,g.jsxs)("div",{className:"c-product-item__option-flag",children:[t("event.purchase.choose.product.option.available"),(0,g.jsx)("i",{className:"icon fa fa-chevron-down"})]})]})]})})}),E.length>0&&w.selected&&(0,g.jsx)("div",{className:"col-xs-12",children:(0,g.jsx)("div",{className:"c-product-item__option-list"+(w.primarySelected?" c-product-item__option-list--full":""),children:E.map((t,s)=>(0,g.jsx)(k,{listIndex:s,selected:w.optionsList[s],productType:e.productType,productItem:e.productItem,onOptionChange:V},s))})}),N&&P&&(0,g.jsx)("div",{className:"col-xs-12",children:(0,g.jsx)("div",{className:"c-product-item__tiered-saving"+(w.primarySelected?" c-product-item__tiered-saving--full":""),children:(0,g.jsx)(i.x,{i18nKey:"event.purchase.save-by-date",values:{0:N,1:T(P,s)}})})})]})})})})},69759(e,t,s){s.d(t,{A:()=>c});s(76998);var a=s(84946),o=s(23236),i=s(23446);function n(e){const{shortMessage:t=!1,isPriceInclVat:s=!1,taxLabelStyle:a="VAT"}=e;return`site.purchase${s?".incl":""}${t&&s?".short":""}${["VAT","Tax"].includes(a)?`.localised.${a.toLowerCase()}`:".vat.amount"}`}function c(e){const{shortMessage:t=!1,isPriceInclVat:s=!1,taxLabelStyle:c="VAT",vatRate:r="",vat:l,className:d="",isCarbonOffsetApply:p}=e,{t:h}=(0,a.B)(),u=(0,o.Kg)(r)?(0,o.K)(r):r;return(0,i.jsxs)("div",{className:`c-vat-message ${d}`,children:[u>0&&h(n({shortMessage:t,isPriceInclVat:s,taxLabelStyle:c}
1),{0:u,1:c})," ",l&&(0,i.jsx)("span",{className:"c-vat-message__amount",children:l}),p&&(0,i.jsx)("div",{className:"c-vat-message__carbon",children:h("site.purchase.select-package.carbon.excludes")})]})}},43525(e,t,s){s.d(t,{A:()=>u});var a=s(76998),o=s(23236),i=s(14285),n=s(99867),c=s(34156),r=s.n(c),l=s(80369),d=s(13761),p=s(23446);const h=(0,d.Ng)(function(e){return{siteHeader:e.siteHeader}})((0,l.C)()((0,i.sw)(function(e){const{brand:{accentColor:t}={},btnSize:s="large",isMenu:a=!1,siteHeader:{data:{booking:o=!1,bookingForm:{bookingFormType:i,customBookingUrl:c,buttonText:l}={},registrationName:d="BOOK_NOW"}={}}={},t:h}=e,u=r()("c-booking-button",{"c-booking-button--menu-type":a}),m="CUSTOM"===i,x=h(`event.book-now.${d}`);return o?(0,p.jsxs)(n.A,{type:"button",size:s,to:m?c:"/",event:m?null:{type:"BUY_LINK"},style:{backgroundColor:t},className:u,children:[(0,p.jsx)("span",{className:"c-booking-button__text",children:m?(0,p.jsx)(p.Fragment,{children:l||x}):(0,p.jsx)(p.Fragment,{children:x})}),(0,p.jsx)("span",{className:"c-booking-button__text-short",children:d?(0,p.jsx)(p.Fragment,{children:x}):m?(0,p.jsx)(p.Fragment,{children:l||h("event.book-now.mobile")}):(0,p.jsx)(p.Fragment,{children:h("event.book-now.mobile")})})]}):null})));function u(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};class l extends a.Component{constructor(e){super(e),this.handleOpen=e=>{e.preventDefault(),(0,o.SS)(),this.setState({isModalOpen:!0})},this.handleClose=e=>{const{superModal:t=!1}=this.props;e&&e.preventDefault(),t||((0,o.fk)(),this.setState({isModalOpen:!1}))},this.state={isModalOpen:!!e.isShowing}}componentDidMount(){this.state.isModalOpen?(0,o.SS)():(0,o.fk)(window.scrollY)}render(){const{index:a,content:o,modalPosition:i="center",withTopPanel:l,withBookingButton:d,brand:u,bookingLink:m,...x}=this.props,g="top"===i?{alignItems:"flex-start"}:"center"===i?{alignItems:"center"}:null;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(e,{onClick:this.handleOpen,...s,...x}),this.state.isModalOpen&&(0,p.jsx)("div",{className:`c-modal ${c}`,children:(0,p.jsxs)("div",{className:"c-modal__wrapper",style:g,children:[(0,p.jsx)("div",{className:"c-modal__overlay",onClick:this.handleClose,role:"presentation"}),(0,p.jsxs)("div",{className:"c-modal__container",children:[l&&(0,p.jsxs)("div",{className:"c-modal__top-panel",style:{backgroundColor:u.secondaryColor},children:[(0,p.jsx)("span",{children:d&&m?(0,p.jsx)(n.A,{type:"button",to:m,size:"popup",children:"Book now"}):d?(0,p.jsx)(h,{size:"popup"}):null}),(0,p.jsx)("span",{className:"c-modal__close",onClick:this.handleClose,children:"\xd7"})]}),(0,p.jsx)(t,{index:a,...o,...r,closeModal:this.handleClose})]})]})})]})}}return(0,i.sw)(l)}},62325(e,t,s){s.r(t),s.d(t,{OrderExpiredView:()=>u,default:()=>m});s(76998);var a=s(13761),o=s(80369),i=s(36753),n=s(14285),c=s(2018),r=s(90349),l=s(92675),d=s(48501),p=s(23446);const h=(0,o.C)()((0,n.sw)(function(e){let{t:t,brand:{secondaryColor:s}}=e;return(0,p.jsx)(c.A,{header:(0,p.jsx)(r.A,{text:t("event.purchase.payment-expired"),style:{color:s}}),body:(0,p.jsx)(l.A,{text:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("p",{children:t("event.purchase.payment-expired.1")}),(0,p.jsx)("p",{children:t("event.purchase.payment-expired.2")})]}),jsx:!0}),footer:(0,p.jsx)(d.A,{primary:{type:"BUY_LINK"},mode:"black"})})}));function u(e){let{t:t,siteHeader:s}=e;const{meta:{title:a}={},data:{title:o}={}}=s||{},n=a||o,c=n?`${t("event.purchase.payment-expired")} | ${n}`:t("event.purchase.payment-expired");return(0,p.jsx)(i.A,{helmet:{title:c},footerUpperHidden:!0,style:{backgroundColor:"#fff"},children:(0,p.jsx)(h,{})})}const m=(0,o.C)()((0,a.Ng)(function(e){return{siteHeader:e.siteHeader}})(u))},96509(e,t,s){s.r(t),s.d(t,{OrderNotFoundView:()=>m,default:()=>x});s(76998);var a=s(13761),o=s(80369),i=s(36753),n=s(82086),c=s(2018),r=s(90349),l=s(92675),d=s(48501),p=s(23446);const h=(0,o.C)()(function(e){let{t:t}=e;const s="[email protected]";return(0,p.jsx)(c.A,{header:(0,p.jsx)(r.A,{text:t("event.purchase.order-not-found")}),body:(0,p.jsx)(l.A,{text:(0,p.jsx)(n.x,{i18nKey:"event.purchase.order-not-found.instructions",values:{email:s},children:(0,p.jsx)("a",{href:`mailto:${s}`,children:s})}),jsx:!0}),footer:(0,p.jsx)(d.A,{primary:{type:"BUY_LINK"},mode:"black"})})});var u=s(61952);function m(e){const{t:t,siteHeader:{data:{booking:s,title:a}={},meta:{title:o}={}}={}}=e,n=o||a,c=n?`${t("event.purchase.order-not-found")} | ${n}`:t("event.purchase.order-not-found");return(0,p.jsx)(i.A,{helmet:{title:c},style:{backgroundColor:"#fff"},footerUpperHidden:!0,children:s?(0,p.jsx)(h,{}):(0,p.jsx)(u.A,{})})}const x=(0,o.C)()((0,a.Ng)(function(e){return{siteHeader:e.siteHeader}})(m))},30700(e,t,s){s.d(t,{l:()=>d});s(76998);var a=s(13761),o=s(80369),i=s(36753),n=s(61952),c=s(23446);const r=(0,o.C)()((0,a.Ng)(function(e){return{siteHeader:e.siteHeader}})(function(e){let{t:t,siteHeader:s}=e;const{meta:{title:a}={},data:{title:o}={}}=s||{},r=a||o,l=r?`${t("event.purchase.booking-closed")} | ${r}`:t("event.purchase.booking-closed");return(0,c.jsx)(i.A,{helmet:{title:l},footerUpperHidden:!0,children:(0,c.jsx)(n.A,{})})}));var l=s(96509);const d=e=>t=>{const{booking:{statusCode:s}={}}=t;return 400===s||404===s?(0,c.jsx)(l.default,{}):423===s?(0,c.jsx)(r,{}):(0,c.jsx)(e,{...t})}},49515(e,t,s){s.r(t),s.d(t,{SelectPackageView:()=>Ge,default:()=>Ye});var a=s(76998),o=s(75581),i=s(13761),n=s(49113),c=s(80369),r=s(19050),l=s(68985),d=s(36753),p=s(94919),h=s(82086),u=s(56693),m=s.n(u),x=s(86273),g=s(14285),v=s(23236),f=s(89440),b=s(23446);const y="SINGLE_CHOICE";class _ extends a.Component{isNoneProductItemDisabled(){const{productType:e,selected:t}=this.props,s=Object.keys(t[e.productTypeId].products).filter(e=>"none"!==e);return s.map(s=>t[e.productTypeId].products[s]).filter(e=>e.disabled).length===s.length}render(){const{productType:e={},selected:t={},tier:s,vatRate:a=0,taxLabelStyle:o="VAT",vatRules:i=!1,priceInclVat:n=!1,onProductChange:c,onOptionChange:r,brand:{secondaryColor:l}={},t:d}=this.props,p={id:"none",productOptionsList:[],name:e.noneLabel||d("event.purchase.single-select.none"),disabled:e.selectionType===y&&this.isNoneProductItemDisabled()};return e.products&&e.products.length>0&&(0,b.jsxs)("div",{className:"c-product-type",children:[(0,b.jsx)("h4",{className:"c-product-type__heading",style:{color:l},children:e.name}),(0,b.jsxs)("div",{className:"c-product-type__body",children:[(e.products||[]).map(l
1=>(0,b.jsx)(f.Ay,{productType:e,productItem:l,tier:s,vatRate:a,vatRules:i,taxLabelStyle:o,isPriceInclVat:n,selected:t[e.productTypeId].products[l.id],onProductChange:c,onOptionChange:r},l.id)),e.selectionType===y&&t[e.productTypeId].products.none&&(0,b.jsx)(f.Ay,{productType:e,productItem:p,tier:s,vatRate:a,taxLabelStyle:o,isPriceInclVat:n,selected:t[e.productTypeId].products[p.id],disabled:p.disabled,onProductChange:c,onOptionChange:r},p.id)]})]})}}const j=(0,c.C)()((0,g.sw)(_));var C=s(56833);const N=(0,g.sw)(function(e){const{children:t,brand:{secondaryColor:s,accentColor:a}={},tooltipText:o="",handleTooltipVisibility:i}=e,n={backgroundColor:s,borderColor:a};return t&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{"data-tip":o,"data-place":"bottom","data-effect":"float",className:"c-tier-save-box",style:n,onClick:i(),children:[(0,b.jsx)("i",{className:"material-icons c-tier-save-box__icon",children:"help_outline"}),(0,b.jsx)("span",{className:"c-tier-save-box__content",children:t})]}),o&&(0,b.jsx)(C.A,{type:"light",className:"c-tier-save-box__tooltip"})]})});var k=s(84946),S=s(92927),T=s(69759),I=s(34726),E=s(6620),P=s(87329),w=s(99867),O=s(17317);const A=e=>(0,b.jsx)("div",{className:"c-vat-rules__text-field",children:(0,b.jsx)(O.zB,{type:"text",name:e.name,pattern:{required:e.required},label:e.label,value:e.value,onChange:e.changeHandler})}),F=(e,t)=>(0,b.jsx)(a.Fragment,{children:(0,b.jsxs)("div",{className:"c-vat-rules__radioGroup-field error",children:[(0,b.jsx)("p",{children:e.label}),(0,b.jsx)("div",{className:"form-row row",children:e.options.map((s,a)=>(0,b.jsx)("div",{className:"col-xs-3",children:(0,b.jsx)(O.iI,{type:"radio",size:"small",name:e.name,value:s.value,checked:e.value===s.value,label:t(`site.purchase.vat-rules.vat.number.${s.label}`),onChange:e.changeHandler})},a))})]})});class L extends a.Component{constructor(e){super(e),this.vatRulesDataChanged=(e,t)=>{this.vatRulesUpdated({fieldName:t,fieldValue:e})},this.vatNumberOptionChanged=e=>{this.vatRulesUpdated({fieldName:e.target.name,fieldValue:"true"===e.target.value})},this.vatRulesUpdated=e=>{const t=this.props.onVatRulesChange;t&&"function"===typeof t&&t(e)},this.vatRulesForm=a.createRef()}render(){const{brand:{secondaryColor:e}={},t:t,vatInputs:s=[],vatFormErrors:a={}}=this.props;return s.length>0&&(0,b.jsxs)("form",{autoComplete:"off",noValidate:!0,children:[(0,b.jsx)("h4",{className:"c-product-type__heading",style:{color:e},children:t("site.purchase.vat-rules.title")}),(0,b.jsx)("div",{className:"c-payment-form-block c-payment-form-block__vat-rules",children:(0,b.jsx)("div",{className:"c-payment-form-block__body",children:(0,b.jsxs)("div",{className:"c-vat-rules "+(Object.keys(a).length>0?"has-error":""),ref:this.vatRulesForm,children:[s.map((e,s)=>{let a;switch(e.type){case"SELECT":{const i={label:t("site.purchase.person.country.label"),blankLabel:t("site.purchase.vat-rules.select.countryField.blankLabel"),changeHandler:this.vatRulesDataChanged,pattern:{required:e.required}},n={label:t("site.purchase.person.province.label"),blankLabel:t("site.purchase.vat-rules.select.regionField.blankLabel"),changeHandler:this.vatRulesDataChanged,pattern:{required:e.required}};a=(0,b.jsx)("div",{children:(o=Object.assign({},e,"country"===e.name?i:n),(0,b.jsxs)("div",{className:"c-vat-rules__select-field",children:[(0,b.jsx)(O.zB,{type:"select",name:o.name,label:o.label,pattern:o.pattern,value:o.value,options:o.options,onChange:o.changeHandler,blankValue:o.blankLabel}),(0,b.jsx)("i",{className:"material-icons c-form-field__select-icon",children:"keyboard_arrow_down"})]}))},s);break}case"TEXT":{const o={label:t("site.purchase.vat-rules.vat.number"),changeHandler:this.vatRulesDataChanged,pattern:{required:e.required}};a=(0,b.jsx)("div",{children:A({...e,...o})},s);break}case"CHECKBOX":{const o="taxIdExemption"===e.name?"site.purchase.vat-rules.vat.number.question":"site.purchase.vat-rules.vat.resident.question",i={label:t(o),changeHandler:this.vatNumberOptionChanged,pattern:{required:e.required}};a=(0,b.jsx)("div",{children:F({...e,...i},t)},s);break}}var o;return a}),(0,v.le)(`\n                    .c-vat-rules .c-form-field.select,\n                    .c-vat-rules .c-vat-rules__text-field input {\n                      border-color: ${e};\n                    }\n                `)]})})})]})}}const D=(0,c.C)()((0,i.Ng)()((0,g.sw)(L)));const V=(0,c.C)()((0,i.Ng)(function(e){return{ticketCount:(0,E.c0)(e),carbonPriceMapper:(0,P.Eu)(e)}})((0,g.sw)((0,n.y)(function(e){const{totalCalculation:{packageDiscount:t,tieredSaving:s,subtotalInclVat:a,subtotal:o,totalVat:i,totalInclVat:n,total:c}={},tier:{endDate:r}={},taxLabelStyle:l="VAT",priceInclVat:d=!1,vatRate:p=0,vatInputs:h,vatFormIsDisabled:u,deliveryType:m,quantity:x,carbonOffset:g="0",carbonPriceMapper:v,onQuantityChange:y,onAddToBasket:_,onVatRulesChange:j,brand:{secondaryColor:C}={},ticketCount:N,errors:E,dateFormat:P}=e,{t:O}=(0,k.B)(),A="0"!==g&&""!==g;return(0,b.jsxs)("div",{className:"c-total-price-box",children:[(0,b.jsx)("h4",{className:"c-total-price-box__heading",style:{color:C},children:O("event.purchase.heading.your.price")}),!u&&(0,b.jsx)(D,{vatInputs:h,vatFormErrors:E,onVatRulesChange:j}),(0,b.jsxs)(I.A,{className:"c-total-price-box__basket",children:[(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-xs-6",children:(0,b.jsx)("div",{className:"text-left",children:O("event.purchase.quantity")})}),(0,b.jsx)("div",{className:"col-xs-6",children:(0,b.jsx)("div",{className:"text-right",children:(0,b.jsx)("input",{type:"number",disabled:"DISTANCE"===m,className:"c-total-price-box__basket-quantity",onChange:y,value:x,min:1,max:999})})})]}),A&&(0,b.jsxs)("div",{className:"row","data-test-total-price":"carbon-offset-row",children:[(0,b.jsx)("div",{className:"col-xs-6",children:(0,b.jsx)("div",{className:"text-left",children:O("site.purchase.select-package.carbon.name")}
1)}),(0,b.jsx)("div",{className:"col-xs-6",children:(0,b.jsx)("div",{className:"text-right","data-test-total-price":"carbon-offset-value",children:v[g]})})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-xs-6",children:(0,b.jsxs)("div",{className:"text-left",children:[O("event.purchase.subtotal"),s&&r&&(0,b.jsx)("div",{className:"c-total-price-box__basket-saving-message",children:O("event.purchase.saving-if-booked-by",{0:(0,f.Vw)(r,P)})})]})}),(0,b.jsx)("div",{className:"col-xs-6",children:(0,b.jsxs)("div",{className:"text-right",children:[(0,b.jsx)("div",{className:"c-total-price-box__basket-subtotal",children:d?a:o}),s&&(0,b.jsx)("div",{className:"c-total-price-box__basket-saving-message",children:(0,b.jsx)("div",{className:"c-total-price-box__basket-tiered-saving",children:s})})]})})]}),t&&(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-xs-6",children:(0,b.jsx)("div",{className:"text-left",children:O("event.purchase.package-discount")})}),(0,b.jsx)("div",{className:"col-xs-6",children:(0,b.jsx)("div",{className:"text-right",children:(0,b.jsxs)("div",{className:"c-total-price-box__basket-package-discount",children:["- ",t]})})})]}),(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-xs-6",children:(0,b.jsxs)("div",{className:"text-left",children:[O("event.purchase.total"),d&&(0,b.jsx)(T.A,{isPriceInclVat:d,vatRate:p,taxLabelStyle:l,isCarbonOffsetApply:A,className:"c-vat-message--total-price-vat"})]})}),(0,b.jsx)("div",{className:"col-xs-6",children:(0,b.jsxs)("div",{className:"text-right",children:[(0,b.jsx)("div",{className:"c-total-price-box__basket-total",children:d?n:c}),d?(0,b.jsx)(T.A,{vat:i}):(0,b.jsx)(T.A,{isPriceInclVat:d,vat:i,vatRate:p,taxLabelStyle:l,isCarbonOffsetApply:A})]})})]}),(0,b.jsx)("div",{className:"row",children:(0,b.jsx)("div",{className:"col-xs-12",children:N&&"DISTANCE"===m?(0,b.jsx)(w.A,{to:"/purchase/view-basket",type:"button",look:"accent",size:"large",event:!0,className:"c-total-price-box__basket-submit",children:O("event.continue")}):(0,b.jsx)(S.A,{look:"accent",size:"large",onClick:_,className:"c-total-price-box__basket-submit",children:O("event.purchase.add-to-basket")})})})]})]})}))));class M extends a.Component{componentDidMount(){const{delegateTypes:e=[]}=this.props;localStorage.setItem("isShowingDelegateTypes",e.length>1)}render(){const{selectedId:e,delegateTypes:t=[],onDelegateChange:s,location:a,t:o}=this.props;return t.length>1&&(0,b.jsx)("div",{className:"c-select-delegate-block",children:(0,b.jsx)(I.A,{heading:o("event.purchase.delegate-type"),children:t.map(t=>(0,b.jsx)("div",{className:"c-select-delegate-block__item",children:(0,b.jsx)(O.iI,{type:"radio",size:"small",name:"delegateType",value:t.delegateTypeId,label:t.name,description:(0,v.xk)(t.description,a),checked:e===t.delegateTypeId,onChange:s})},t.name))})})}}const R=(0,c.C)()(M);function H(e){const{text:t,showTooltip:s,handleTooltipVisibility:a}=e;return s?(0,b.jsxs)("div",{className:"c-tooltip-mobile",children:[(0,b.jsx)("div",{className:"c-tooltip-mobile__text",children:t}),(0,b.jsx)("i",{onClick:a(),className:"material-icons","data-test-tooltip":"clear-icon",children:"clear"})]}):null}var U=s(11947);const B=(0,U.AH)(["color:",";background-color:",";"],e=>e.isActive?"#fff":"#000",e=>e.isActive?e.activeColorStyle:"rgba(255,255,255,0.8)"),$=U.Ay.div.withConfig({displayName:"FlightType__Wrapper",componentId:"sc-1agzpzh-0"})(["display:flex;justify-content:center;align-items:center;font-size:16px;font-weight:bold;line-height:21px;height:40px;cursor:pointer;border:1px solid rgba(0,0,0,0.2);border-radius:1.65px;box-shadow:0 2px 5px 0 rgba(0,0,0,0.17);",":hover{color:#fff;background-color:",";@media (max-width:768px){","}}"],B,e=>e.activeColorStyle,B),q=e=>{let{name:t,value:s,onCarbonOffsetChange:a,carbonOffset:o,activeColorStyle:i}=e;return(0,b.jsx)($,{onClick:()=>a(s),activeColorStyle:i,isActive:s===o,"data-testid":"flight-type",children:t})},W=U.Ay.div.withConfig({displayName:"FlightTypeSelector__Wrapper",componentId:"sc-2i5xtx-0"})(["padding:20px 27px 20px 22px;background-color:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,0.3);border-radius:3px;border-left:5px solid transparent;margin-bottom:10px;table{@media (max-width:768px){margin:0 auto;}}td{padding:0 13px 11px 0;@media (max-width:768px){padding:0 4px 11px 0;}}"]),z=U.Ay.td.withConfig({displayName:"FlightTypeSelector__TdFlightType",componentId:"sc-2i5xtx-1"})(["color:#333333;font-size:16px;line-height:21px;"]),K=(0,U.Ay)(z).withConfig({displayName:"FlightTypeSelector__TdFlightTypeDesktop",componentId:"sc-2i5xtx-2"})(["vertical-align:middle;@media (max-width:768px){display:none;}"]),G=U.Ay.th.withConfig({displayName:"FlightTypeSelector__ThEmpty",componentId:"sc-2i5xtx-3"})(["@media (max-width:768px){display:none;}"]),Y=U.Ay.td.withConfig({displayName:"FlightTypeSelector__TdEmpty",componentId:"sc-2i5xtx-4"})(["@media (max-width:768px){display:none;}"]),X=U.Ay.td.withConfig({displayName:"FlightTypeSelector__ThHourCondition",componentId:"sc-2i5xtx-5"})(["color:#91abb5;font-size:12px;font-weight:500;line-height:16px;text-align:center;min-width:115px;@media (max-width:768px){min-width:94px;}"]),Q=U.Ay.tr.withConfig({displayName:"FlightTypeSelector__TrMobile",componentId:"sc-2i5xtx-6"})(["@media (min-width:769px){display:none;}"]),J=(0,U.AH)(["background-color:",";color:",";"],e=>e.isActive?e.colorStyle:"rgba(255,255,255,0.8)",e=>e.isActive?"#fff":"#000"),Z=U.Ay.div.withConfig({displayName:"FlightTypeSelector__ResetFlightTypeBtn",componentId:"sc-2i5xtx-7"})(["display:flex;justify-content:center;align-items:center;font-family:'Barlow Condensed Extra Bold',sans-serif;font-weight:800;font-size:19px;line-height:23px;height:40px;border:1px solid rgba(0,0,0,0.2);border-radius:1.64px;box-shadow:0 2px 5px 0 rgba(0,0,0,0.17);cursor:pointer;",":hover{background-color:",";color:#fff;@media (max-width:768px){","}}"],J,e=>e.colorStyle,J),ee=e=>{const{onCarbonOffsetChange:t,carbonOffset:s,activeColorStyle:o}=e,{t:n}=(0,k.B)(),c=(0,i.d4)(e=>{var t,s;return(null===(t=e.siteProducts.data)||void 0===t||null===(s=t.carbonOffsetForm)||void 0===s?void 0:s.carbonOffsetInputs)||[]}),r=(0,i.d4)(P.b4);return(0,b.jsx)(W,{children:(0,b.jsxs)("table",{children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)(G,{}),r.map(e=>(0,b.jsx)(X,{children:n(`site.purchase.select-package.carbon.${e}`)},e))]})}),(0,b.jsxs)("tbody",{children:[c.map(e=>(0,b.jsxs)(a.Fragment,{children:[(0,b.jsx)(Q,{children:(0,b.jsx)(z,{colSpan:"3",children:n(`site.purchase.select-package.carbon.${e.i18nKey}`)})}),(0,b.jsxs)("tr",{children:[(0,b.jsx)(K,{children:n(`site.purchase.select-package.carbon.${e.i18nKey}`)}),e.options.map(e=>(0,b.jsx)("td",{"data-testid":"selector-option",children:(0,b.jsx)(q,{onCarbonOffsetChange:t,carbonOffset:s,name:e.name,value:e.value,activeColorStyle:o})},e.name))]})]},e.name)),(0,b.jsxs)("tr",{children:[(0,b.jsx)(Y,{}),(0,b.jsx)("td",{colSpan:"3",children:(0,b.jsx)(Z,{isActive:"0"===s,onClick:()=>t("0"),colorStyle:o,"data-testid":"reset-button",children:n("site.purchase.select-package.carbon.no-thanks")})})]})]})]})})};var te=s(43525);const se=U.Ay.div.withConfig({displayName:"ModalHeader__Wrapper",componentId:"sc-vhyoo4-0"}
1)(["height:70px;background-color:#00a751;display:flex;align-items:center;justify-content:space-between;padding:0 40px;@media (max-width:767px){padding:0 20px;}"]),ae=U.Ay.h5.withConfig({displayName:"ModalHeader__Title",componentId:"sc-vhyoo4-1"})(["font-size:24px;font-weight:300;line-height:32px;color:#fff;"]),oe=U.Ay.span.withConfig({displayName:"ModalHeader__CloseBtn",componentId:"sc-vhyoo4-2"})(["font-size:44px;font-weight:300;color:#fff;cursor:pointer;"]),ie=e=>{let{closeModal:t}=e;const{t:s}=(0,k.B)();return(0,b.jsxs)(se,{children:[(0,b.jsx)(ae,{children:s("site.purchase.select-package.carbon.modal-title")}),(0,b.jsx)(oe,{onClick:t,children:"\xd7"})]})};const ne=s.p+"static/media/tree-1.2881ca3c10637758dc6a90a3814fc6e4.svg";const ce=s.p+"static/media/tree-2.94f1179fd4ddb13c20cc13dc6b3720ac.svg";const re=s.p+"static/media/tree-3.42ab091ff4332487d3927831a07dcf98.svg";const le=s.p+"static/media/tree-4.c283b54bd3179492c3d9ef04a9412198.svg";const de=s.p+"static/media/tree-5.6d6014a852ef13c093c2572fd66e83b6.svg";var pe=s(91634);const he=e=>{let{list:t}=e;return t.map((e,t)=>{let{image:s,maxWidth:a,maxHeight:o}=e;return(0,b.jsx)(pe.lD,{src:s,imgix:!1,lazy:!1,style:{maxWidth:a,maxHeight:o}},t)})},ue=U.Ay.div.withConfig({displayName:"ModalFooter__Wrapper",componentId:"sc-2kfp5d-0"})(["padding:0 30px 0;display:flex;@media (max-width:767px){padding:0 10px 0;}"]),me=U.Ay.div.withConfig({displayName:"ModalFooter__Aligner",componentId:"sc-2kfp5d-1"})(["display:flex;align-items:flex-end;justify-content:space-between;width:100%;"]),xe=(0,U.Ay)(me).withConfig({displayName:"ModalFooter__TreeWrapper",componentId:"sc-2kfp5d-2"})(["@media (max-width:767px){display:none;}"]),ge=(0,U.Ay)(me).withConfig({displayName:"ModalFooter__TreeWrapperMobileOnly",componentId:"sc-2kfp5d-3"})(["@media (min-width:768px){display:none;}"]),ve=[{image:ne,maxWidth:70,maxHeight:130},{image:ce,maxWidth:60,maxHeight:110},{image:re,maxWidth:60,maxHeight:54},{image:le,maxWidth:60,maxHeight:115},{image:de,maxWidth:65,maxHeight:130}],fe=[{image:ne,maxWidth:40,maxHeight:70},{image:ce,maxWidth:20,maxHeight:40},{image:le,maxWidth:40,maxHeight:70},{image:re,maxWidth:30,maxHeight:24}],be=()=>(0,b.jsxs)(ue,{children:[(0,b.jsx)(xe,{children:(0,b.jsx)(he,{list:ve})}),(0,b.jsx)(ge,{children:(0,b.jsx)(he,{list:fe})})]}),ye=U.Ay.div.withConfig({displayName:"ModalContent__ContentWrapper",componentId:"sc-6qnqt5-0"})(["padding:35px 40px 0;@media (max-width:767px){padding:25px 20px 0;}"]),_e=U.Ay.div.withConfig({displayName:"ModalContent__TextWrapper",componentId:"sc-6qnqt5-1"})(["margin-bottom:30px;"]),je=U.Ay.div.withConfig({displayName:"ModalContent__Text",componentId:"sc-6qnqt5-2"})(["font-size:16px;line-height:30px;color:",";font-weight:",";"],e=>e.color,e=>e.fontWeight||300),Ce=(0,U.Ay)(je).withConfig({displayName:"ModalContent__Description",componentId:"sc-6qnqt5-3"})(["font-size:22px;margin-bottom:30px;"]),Ne=[{questionKey:"site.purchase.select-package.carbon.what-is-it",answerKey:"site.purchase.select-package.carbon.what-is-it.text"},{questionKey:"site.purchase.select-package.carbon.how-to-calculate",answerKey:"site.purchase.select-package.carbon.how-to-calculate.text"},{questionKey:"site.purchase.select-package.carbon.fee",answerKey:"site.purchase.select-package.carbon.fee.text"}],ke=e=>{const{colorStyle:t,closeModal:s}=e,{t:a}=(0,k.B)();return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(ie,{closeModal:s}),(0,b.jsxs)(ye,{children:[(0,b.jsx)(Ce,{fontWeight:"500",color:t,children:a("site.purchase.select-package.carbon.modal-description")}),Ne.map(e=>{let{questionKey:s,answerKey:o}=e;return(0,b.jsxs)(_e,{children:[(0,b.jsx)(je,{fontWeight:"500",color:t,children:a(s)}),(0,b.jsx)(je,{children:a(o)})]},s)})]}),(0,b.jsx)(be,{})]})},Se=U.Ay.div.withConfig({displayName:"ModalLink__Wrapper",componentId:"sc-1d68xhu-0"})(["display:flex;align-items:center;margin:30px 0;color:",";"],e=>e.color),Te=U.Ay.a.withConfig({displayName:"ModalLink__Link",componentId:"sc-1d68xhu-1"})(["font-size:16px;line-height:21px;text-decoration:underline;cursor:pointer;"]),Ie=U.Ay.i.withConfig({displayName:"ModalLink__Icon",componentId:"sc-1d68xhu-2"})(["font-size:20px;margin-left:5px;"]),Ee=e=>{const{t:t}=(0,k.B)();return(0,b.jsx)(Te,{...e,children:t("site.purchase.select-package.carbon.how-it-works")})},Pe=e=>{let{color:t}=e;const s=(0,te.A)(Ee,ke,{},"",{colorStyle:t});return(0,b.jsxs)(Se,{color:t,children:[(0,b.jsx)(s,{}),(0,b.jsx)(Ie,{className:"material-icons",children:"help_outline"})]})},we=U.Ay.h4.withConfig({displayName:"BoxHeading",componentId:"sc-13zm3du-0"})(["font-family:'Barlow Condensed Extra Bold',sans-serif;font-size:40px;font-weight:800;line-height:43px;text-transform:uppercase;margin:30px 0 10px;color:",";"],e=>e.color),Oe=U.Ay.h4.withConfig({displayName:"BoxParagraph",componentId:"sc-1o3z40x-0"})(["font-size:24px;line-height:32px;margin-bottom:20px;color:",";text-transform:",";"],e=>e.color,e=>e.textTransform),Ae=U.Ay.div.withConfig({displayName:"styles__PriceInfo",componentId:"sc-1lifngn-0"})(["font-size:14px;letter-spacing:0;line-height:19px;color:#9f9f9f;padding-bottom:25px;border-bottom:1px solid #9f9f9f;
1"]),Fe=U.Ay.div.withConfig({displayName:"CarbonOffsetBox__Wrapper",componentId:"sc-1ncdlms-0"})(["direction:ltr;border-top:",";"],e=>`1px solid ${e.borderColor}`);const Le=(0,g.sw)(function(e){const{onCarbonOffsetChange:t,carbonOffset:s,brand:{secondaryColor:a}}=e,{t:o}=(0,k.B)();return(0,b.jsxs)(Fe,{borderColor:a,children:[(0,b.jsx)(we,{color:a,children:o("site.purchase.select-package.carbon.title")}),(0,b.jsx)(Oe,{color:a,children:o("site.purchase.select-package.carbon.subTitle")}),(0,b.jsx)(Pe,{color:a}),(0,b.jsx)(Oe,{color:a,textTransform:"capitalize",children:o("site.purchase.select-package.carbon.select-flight-type")}),(0,b.jsx)(ee,{onCarbonOffsetChange:t,carbonOffset:s,activeColorStyle:a}),(0,b.jsx)(Ae,{children:o("site.purchase.select-package.carbon.price-info")})]})}),De="SINGLE_CHOICE",Ve="MULTIPLE_CHOICE";function Me(e,t){const s=function(e){const t=[];return Object.keys(e.formState).forEach(s=>{const a=e.formState[s];Object.keys(a.products).forEach(e=>{a.products[e].selected&&t.push(e)})}),t}(e);Object.keys(e.formState).forEach(a=>{const o=e.formState[a];Object.keys(o.products).forEach(e=>{const a=o.products[e],{bundledWith:i=[]}=a;e!==t&&i.length>0&&(a.disabled=!i.some(e=>s.includes(e)),a.disabled&&(a.selected=!1))})})}class Re extends a.Component{constructor(e){super(e),this.handleTooltipVisibility=()=>()=>{l.Fr&&this.setState(e=>({showTooltip:!e.showTooltip}))},this.handleTooltipClose=()=>{this.state.showTooltip&&this.setState({showTooltip:!1})},this.handleCarbonOffsetChange=e=>{this.setState(()=>({carbonOffset:e===this.state.carbonOffset?"":e}),()=>this.reloadSiteProducts())},this.state={quantity:1,carbonOffset:"",formState:{},initialized:!1,delegateTypeId:null,showTooltip:!1},this.handleSubmitForm=this.handleSubmitForm.bind(this),this.handleDelegateChange=this.handleDelegateChange.bind(this),this.handleQuantityChange=this.handleQuantityChange.bind(this),this.handleProductChange=this.handleProductChange.bind(this),this.handleOptionChange=this.handleOptionChange.bind(this),this.handleVatRulesChange=this.handleVatRulesChange.bind(this)}componentDidMount(){this.reloadSiteProducts(),l.Fr&&document.addEventListener("scroll",this.handleTooltipClose)}componentDidUpdate(e,t,s){window.scroll(this.lastPosition.x,this.lastPosition.y)}componentWillUnmount(){document.removeEventListener("scroll",this.handleTooltipClose)}static getDerivedStateFromProps(e,t){var s,a;if(t.initialized||!e.loaded)return t;const o=e.data.delegateTypes;o&&o.length&&(t.delegateTypeId=e.data.delegateTypes[0].delegateTypeId),(e.data.productTypesWithProducts||e.data.optionalProductTypesWithProducts)&&[...e.data.productTypesWithProducts,...e.data.optionalProductTypesWithProducts].forEac
1h(s=>{t.formState[s.productTypeId]={valid:!0,primary:s.primary,products:{},selectionType:s.selectionType};let a=!1;s.products.forEach(o=>{const i=o.preselected;let n=!1;s.primary&&1===e.data.productTypesWithProducts.length&&1===e.data.productTypesWithProducts[0].products.length&&(n=!0),i&&(a=!0);const c=(o.bundledWith||[]).map(e=>{let{mandatoryProductId:t}=e;return t});let r=c.length>0;c.length&&e.data.productTypesWithProducts.forEach(e=>{e.products.forEach(e=>{c.indexOf(e.id)>-1&&e.preselected&&(r=!1)})}),t.formState[s.productTypeId].products[o.id]={selected:!r&&(i||n),disabled:r,bundledWith:c,primarySelected:n,optionsList:{}};const l=t.formState[s.productTypeId].products[o.id];o.productOptionsList.forEach((e,t)=>{let{type:s,min:a,max:o,options:i=[]}=e;l.optionsList[t]={valid:!0,selectionType:s,options:{},min:s===De?1:a,max:o},i.forEach((e,a)=>{l.optionsList[t].options[e.id]={selected:e.preselected||s===De&&0===a,disabled:!1}})})}),s.selectionType===De&&(s.primary&&e.data.productTypesWithProducts.length>1||!s.primary)&&(t.formState[s.productTypeId].products.none={disabled:!1,selected:!a,bundledWith:[],optionsList:{}})});const i=null===(s=e.data)||void 0===s||null===(a=s.vatForm)||void 0===a?void 0:a.vatInputs;return i&&i.forEach(e=>{t[e.name]=e.value}),t.initialized=!0,t}reloadSiteProducts(){let{quantity:e,delegateTypeId:t,formState:s,country:a,region:o,taxIdExemption:i,vatNumber:n,resident:c,carbonOffset:r}=this.state;if(e=parseInt(e,10),isNaN(e)||e<0)return!1;const l=[];Object.keys(s).forEach(e=>{Object.keys(s[e].products).forEach(t=>{s[e].products[t].selected&&"none"!==t&&l.push(t)})}),this.props.onChange({quantity:e,delegateTypeId:t,productIds:l,country:a,region:o,taxIdExemption:i,vatNumber:n,resident:c,carbonOffset:r})}validateForm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};const{formState:t}=this.state,s=m()(t);Object.keys(s).forEach(e=>{const t=Object.keys(s[e].products).filter(e=>"none"!==e).map(t=>s[e].products[t]).filter(e=>e.selected);s[e].valid=t.length>0,t.forEach(e=>{Object.keys(e.optionsList).forEach(t=>{const s=e.optionsList[t],a=s.min||!1,o=s.max||!1,i=Object.keys(s.options).map(e=>s.options[e]).filter(e=>e.selected);a&&o?s.valid=i.length>=a&&i.length<=o:a?s.valid=i.length>=a:o&&(s.valid=i.length<=o)})})}),this.setState({formState:s},()=>e())}isValidForm(){const{quantity:e,formState:t}=this.state,s=parseInt(e,10);if(isNaN(s)||s<1)return!1;const a=Object.keys(t).map(e=>t[e]),o=a.filter(e=>e.primary&&e.valid),i=[];a.forEach(e=>{Object.keys(e.products).forEach(t=>{if(!e.products[t].selected)return!1;Object.keys(e.products[t].optionsList).forEach(s=>{const a=e.products[t].optionsList[s];a.valid||i.push(a)})})});const n=o.length>0&&0===i.length,c=this.props.scrollToError;return!n&&c&&"function"===typeof c&&c(),n}addToBasket(){const{carbonOffset:e,quantity:t,delegateTypeId:s,formState:a,country:o,region:i,taxIdExemption:n,vatNumber:c,resident:r}=this.state,l=[];Object.keys(a).forEach(e=>{Object.keys(a[e].products).forEach(t=>{const s=a[e].products[t];if(s.selected&&!s.disabled&&"none"!==t){const e={productId:t,optionIds:[]};Object.keys(s.optionsList).forEach(t=>{Object.keys(s.optionsList[t].options).forEach(a=>{s.optionsList[t].options[a].selected&&e.optionIds.push(a)})}),l.push(e)}})}),this.props.onSubmit({carbonOffset:e,quantity:t,delegateTypeId:s,packageSelection:l,country:o,region:i,taxIdExemption:n,vatNumber:c,resident:r})}handleSubmitForm(){this.validateForm(()=>{this.isValidForm()&&this.addToBasket()})}handleQuantityChange(e){const t=e.target.value;if(parseInt(t)>999)return!1;this.setState(()=>({quantity:t}),()=>this.reloadSiteProducts())}handleDelegateChange(e){const t=e.target.value;this.setState(()=>({delegateTypeId:t}),()=>this.reloadSiteProducts())}handleProductChange(e){const t=e.target.checked,[s,a]=e.target.value.split(":"),o=this.state.formState[s].selectionType;if(this.state.formState[s].products[a].primarySelected)return!1;o===De&&this.setState(e=>(Object.keys(e.formState[s].products).forEach(t=>{e.formState[s].products[t].selected=!1}),e.formState[s].products[a].selected=!0,Me(e,a),{formState:e.formState}),()=>this.reloadSiteProducts()),o===Ve&&this.setState(e=>(e.formState[s].products[a].selected=t,Me(e,a),{formState:e.formState}),()=>this.reloadSiteProducts())}handleOptionChange(e){const[t,s,a,o]=e.target.value.split(":"),i=this.state.formState[t].products[s].optionsList[o].selectionType,n=e.target.checked;i===De&&this.setState(e=>{const i=e.formState[t].products[s].optionsList[o];
1return Object.keys(i.options).forEach(e=>{i.options[e].selected=!1}),i.options[a].selected=!0,{formState:e.formState}}),i===Ve&&this.setState(e=>{const i=e.formState[t].products[s].optionsList[o];i.options[a].selected=n;const c=i.min||!1,r=i.max||!1,l=Object.keys(i.options).map(e=>i.options[e]);if(r){const e=l.filter(e=>!e.selected);l.length-r>=e.length?e.forEach(e=>{e.disabled=!0}):e.forEach(e=>{e.disabled=!1})}const d=l.filter(e=>e.selected);return c&&r?i.valid=d.length>=c&&d.length<=r:c?i.valid=d.length>=c:r&&(i.valid=d.length<=r),{formState:e.formState}})}handleVatRulesChange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{fieldName:t,fieldValue:s}=e;if(s!==this.state[t]){const e={};e[t]=s,this.setState(()=>e,()=>{"vatNumber"!==t&&this.reloadSiteProducts()})}}getSnapshotBeforeUpdate(e,t){return this.lastPosition={x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop},null}render(){const{t:e}=this.props;let{meta:{totalCalculation:t={}}={},deliveryType:s,data:{vatRules:a=!1,packageDescription:o="",packageDiscountsDescriptions:i=[],productTitle:n,productTitleSize:c="H1",delegateTypes:r=[],nonPrimaryTitle:l=e("event.purchase.extras"),taxLabelStyle:d="VAT",priceInclVat:p,vatRate:u,tier:m={},vatForm:{vatInputs:g=[],disabled:y}={},productTypesWithProducts:_=[],optionalProductTypesWithProducts:C=[],carbonOffsetForm:k}={},header:{dateFormat:S=x.qy}={},brand:{secondaryColor:T}={},pageConfig:{location:I}={},errors:E}=this.props;const P=c.toLowerCase(),w={color:T},{showTooltip:O}=this.state;u?"string"===typeof u&&(u=parseFloat(u)):u=0;const A=0===Object.keys(this.state.formState).map(e=>this.state.formState[e]).filter(e=>e.primary&&e.valid).length;return(0,b.jsxs)("section",{className:"c-select-package-form",children:[(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"row",children:[(0,b.jsx)("div",{className:"col-xs-12 col-sm-6",children:(0,b.jsxs)("div",{className:"c-select-package-form__page-content",children:[n&&(0,b.jsx)(P,{className:"c-select-package-form__page-title",style:w,children:n}),(0,v.xk)(o,I),i.length>0&&(0,b.jsxs)("div",{className:"c-select-package-form__page-content__package-discounts-description",children:[(0,b.jsx)("div",{className:"title",children:e("event.purchase.package-discounts-available")}),i.map((e,t)=>(0,b.jsx)("div",{className:"description",children:e},t))]}),(0,v.le)(`\n                    .c-select-package-form__page-content h2 {\n                      color: ${T};\n                    }\n                    .c-form-box-input__box::before {\n                      border-color: ${T};\n                    }\n                    .c-form-box-input--radio input:checked + .c-form-box-input__box::before {\n                      background-color: ${T};\n                    }\n                    .c-form-box-input--checkbox input:checked + .c-form-box-input__box::before {\n                      background-color: ${T};\n                    }\n                  `)]})}),(0,b.jsxs)("div",{className:"col-xs-12 col-sm-6",children:[r.length>0&&(0,b.jsx)(R,{selectedId:this.state.delegateTypeId,delegateTypes:r,onDelegateChange:this.handleDelegateChange,location:I}),m.maxSaving&&m.endDate&&(0,b.jsx)(N,{handleTooltipVisibility:this.handleTooltipVisibility,tooltipText:e("site.purchase.applicable-savings-tip"),children:(0,b.jsx)(h.x,{i18nKey:"event.purchase.save-upto-by-date",values:{0:m.maxSaving,1:(0,f.Vw)(m.endDate,S)}})}),_.length>0&&(0,b.jsx)("h4",{className:"c-select-package-form__heading",style:{color:T},children:1===_.length&&1===_[0].products.length?e("event.purchase.base-booking-price"):e("event.purchase.create-your-package")}),A&&(0,b.jsxs)("h4",{className:"c-select-package-form__description has-error",children:[1===_.length&&e("event.purchase.create-your-package.error.singular",{0:_[0].name}),_.length>1&&e("event.purchase.create-your-package.error.multiple",{0:_[0].name,1:_[1].name})]}),(_.length>1||1===_.length&&_[0].products.length>1)&&!A&&(0,b.jsx)("h4",{className:"c-select-package-form__description",children:e("event.purchase.create-your-package.instructions")}),_.map(e=>(0,b.jsx)(j,{productType:e,tier:m,vatRate:u,vatRules:a,taxLabelStyle:d,priceInclVat:p,selected:this.state.formState,onProductChange:this.handleProductChange,onOptionChange:this.handleOptionChange},e.productTypeId)),C.length>0&&(0,b.jsx)("h4",{className:"c-select-package-form__heading",style:{color:T},children:l}),C.map(e=>(0,b.jsx)(j,{productType:e,tier:m,vatRate:u,vatRules:a,taxLabelStyle:d,priceInclVat:p,selected:this.state.formState,onProductChange:this.handleProductChange,onOptionChange:this.handleOptionChange},e.productTypeId)),k&&(0,b.jsx)(Le,{carbonOffset:this.state.carbonOffset,onCarbonOffsetChange:this.handleCarbonOffsetChange}),(0,b.jsx)(V,{totalCalculation:t,quantity:this.state.quantity,carbonOffset:this.state.carbonOffset,deliveryType:s,tier:m,vatRate:u,vatFormIsDisabled:y,vatInputs:g,errors:E,taxLabelStyle:d,priceInclVat:p,dateFormat:S,onAddToBasket:this.handleSubmitForm,onQuantityChange:this.handleQuantityChange,onVatRulesChange:this.handleVatRulesChange})]})]})}),(0,b.jsx)(H,{handleTooltipVisibility:this.handleTooltipVisibility,showTooltip:O,text:e("site.purchase.applicable-savings-tip")})]})}}const He=(0,i.Ng)(e=>
1({header:e.siteHeader.data,pageConfig:e.pageConfig}))((0,c.C)()((0,g.sw)(Re)));var Ue=s(62325),Be=s(12891),$e=s(63619),qe=s(31088),We=s(30700),ze=s(6148);const Ke=l.Fr?55:65;class Ge extends a.Component{constructor(e){super(e),this.onChangeForm=this.onChangeForm.bind(this),this.onSubmitForm=this.onSubmitForm.bind(this),this.scrollToError=this.scrollToError.bind(this)}componentDidMount(){const{siteProducts:e}=this.props;if(e.booking){const t=e.data.productTypesWithProducts.flatMap(e=>e.products.map(e=>{let{name:t,id:s,price:a}=e;return{name:t,brand:t,id:s,price:a}}));qe.A.pushProductDetails(t);const{divisionId:s,divisionInfrontBusinessUnit:a,divisionName:o}=e.meta;qe.A.pushDivisionOption({divisionId:s,divisionInfrontBusinessUnit:a,divisionName:o})}}scrollToError(){const e=document.querySelectorAll(".has-error");if(e&&e.length){const t=e[0].getBoundingClientRect().top+window.scrollY-Ke;r.Ay.animateScroll.scrollTo(t)}}fetchSiteProducts(e){var t,s;const a=this.props.cookies.get("basket_id"),o=null===(t=this.props.match)||void 0===t||null===(s=t.params)||void 0===s?void 0:s.optionIndex;this.props.fetchSiteProducts(a,e,o)}getSitePath(){const{pageConfig:{sitePath:e,singleSiteMode:t}}=this.props;return t?"":`/${e}`}addProductsToBasket(e,t){const{match:{params:{optionIndex:s}={}}={}}=this.props,a=this.props.cookies.get("basket_id");s&&(t.siteOptionIndex=s),this.props.addProductsToBasket(a,e,t,e=>{const{i18n:t,pageConfig:{cookieSitePath:s,location:o={}}={},options:{data:{locales:{primary:i}={}}={}}={}}=this.props;if(200===e.statusCode){this.props.cookies.set("basket_order",a,{path:s,expires:new Date(Date.now()+864e5),secure:(0,v.H)()});const e=(0,$e.dS)(`${this.getSitePath()}/purchase/view-basket`,t.language,i);document.location.href=(0,ze.A)({url:e,hostname:o.hostname,pathname:o.pathname})}else e.errors&&this.setState(()=>({errors:e.errors}),()=>this.scrollToError())})}onChangeForm(e){const{quantity:t,delegateTypeId:s,productIds:a,country:o,region:i,taxIdExemption:n,vatNumber:c,resident:r,carbonOffset:l}=e,d=this.props.cookies.get("vip_code");this.fetchSiteProducts({quantity:t,carbonOffset:l,delegateTypeId:s,productIds:a,vipCode:d,country:o,region:i,taxIdExemption:n,vatNumber:c,resident:r})}onSubmitForm(e){const{carbonOffset:t,quantity:s,delegateTypeId:a,packageSelection:o,country:i,region:n,taxIdExemption:c,vatNumber:r,resident:l}=e,d={carbonOffset:t,quantity:s,delegateTypeId:a,packageSelection:o,taxIdExemption:c,vatNumber:r,resident:l};i&&i.length&&(d.country=i),n&&n.length&&(d.region=n);const p={promoCode:this.props.cookies.get("vip_code"),tracker_id:this.props.cookies.get("tracker_id"),skip_delegates:"true"===this.props.cookies.get("skip_delegates")};this.addProductsToBasket(p,d)}render(){var e;const{siteHeader:{data:{bookingMetaTitle:t,bookingMetaDescription:s,bookingHideFromSearchEngines:a},meta:{title:o}={}}={},options:{data:{deliveryType:i}={}}={},chosenProducts:{statusCode:n}={},siteProducts:{loaded:c=!1,statusCode:r,data:l={},meta:h={},meta:{promotionalDiscount:{discount:u}={}}={}}={},t:m}=this.props,x=null===(e=this.state)||void 0===e?void 0:e.errors;if(410===r||410===n)return(0,b.jsx)(Ue.default,{});if(r>=400)return(0,b.jsx)(Be.A,{});const g=`${t||m("event.book-now")} | ${o}`;return(0,b.jsxs)(d.A,{footerUpperHidden:!0,helmet:{title:g,description:s,meta:{robots:a?"noindex, nofollow":"index, follow"}},children:[u&&(0,b.jsx)("div",{className:"container",children:(0,b.jsx)(p.A,{data:{discount:u,success:!0}})}),(0,b.jsx)(He,{loaded:c,deliveryType:i,data:l,meta:h,errors:x,onChange:this.onChangeForm,onSubmit:this.onSubmitForm,scrollToError:this.scrollToError})]})}}const Ye=(0,c.C)()((0,i.Ng)(function(e){return{siteHeader:e.siteHeader,siteProducts:e.siteProducts,chosenProducts:e.chosenProducts,pageConfig:e.pageConfig,options:e.options,booking:e.siteProducts}},function(e){return{fetchSiteProducts:(t,s,a)=>e((0,P.IC)(t,s,a)),addProductsToBasket:(t,s,a,o)=>e((0,E.pO)(t,s,a,o))}})((0,n.y)((0,We.l)((0,o.A)(Ge)))))},61998(e,t,s){var a=s(24994);t.A=void 0;var o=a(s(27198)),i=s(23446);t.A=(0,o.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")}}]);
2//# sourceMappingURL=SelectPackageView.b9ad2516.chunk.js.map

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.