1(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[2179],{34726(e,t,l){"use strict";l(76998);var n=l(14285),s=l(23446);const o=(0,n.sw)(function(e){const{heading:t,checked:l,showLeftLine:n=!1,className:o="",children:i,brand:{secondaryColor:a}={}}=e,r={borderColor:n?a:"white"},d={color:a};return i&&(0,s.jsxs)("div",{className:`c-payment-form-block ${o}`,children:[t&&(0,s.jsx)("h2",{className:"c-payment-form-block__heading",style:d,children:t}),(0,s.jsx)("div",{className:"c-payment-form-block__body"+(l?" checked":""),style:r,children:i})]})});l.d(t,["A",0,o])},89440(e,t,l){"use strict";l.d(t,{Ay:()=>A,Vw:()=>I});var n=l(76998),s=l(84946),o=l(82086),i=l(86273),a=l(24241),r=l(50776),d=l(23236),c=l(43525),u=l(14285),m=l(17317),p=l(69759),h=l(99867),y=l(34726),v=l(23446);const x=(0,u.sw)(function(e){const{heading:t,body:l,brand:{secondaryColor:n}={},closeModal:s}=e;return(0,v.jsxs)("div",{className:"c-product-popup",children:[(0,v.jsx)("div",{className:"c-product-popup__header",style:{backgroundColor:n},children:(0,v.jsxs)("div",{className:"c-product-popup__close",onClick:s,children:["\xd7",(0,v.jsx)("span",{children:"Close"})]})}),(0,v.jsxs)("div",{className:"c-product-popup__body",children:[t&&(0,v.jsx)("h3",{className:"c-product-popup__heading",children:t}),l&&(0,v.jsx)("div",{children:l})]})]})});var g=l(80369),b=l(34156),j=l.n(b),f=l(19050);function w(e){const{valid:t,list:{min:l,max:s,options:o=[]}={},t:i}=e,a=l&&s,r=!l&&!s,d=l&&!s,c=!l&&s,u=l===s,m=(0,n.useRef)(null),p=j()("c-option-list-multiple-heading",{"c-option-list-multiple-heading--error":!t});var h;t||f.Ay.animateScroll.scrollTo(null===m||void 0===m||null===(h=m.current)||void 0===h?void 0:h.offsetTop);return(0,v.jsxs)("h5",{ref:m,className:p,children:[a&&(u?i(1===s?"event.purchase.option-list-multiple.equal-single":"event.purchase.option-list-multiple.equal-plural",{0:s}):i("event.purchase.choose.product.option.multiple.max.and.min",{0:l,1:s})),r&&i("event.purchase.choose.product.option.multiple",{0:o.length}),d&&i("event.purchase.choose.product.option.multiple.min",{0:l}),c&&i("event.purchase.choose.product.option.multiple.max",{0:s})]})}const S="SINGLE_CHOICE";class C extends n.Component{render(){const{listIndex:e,selected:t={},productType:{productTypeId:l}={},productItem:{id:s,productOptionsList:o={}}={productOptionsList:{}},onOptionChange:i,brand:{secondaryColor:a}={},t:r}=this.props,d=o[e]||{};let c=null;if(d.type===S){const e=Object.keys(t.options).map(e=>({id:e,selected:t.options[e].selected})).filter(e=>e.selected);c=e.length?e[0].id:void 0}return d.type&&(0,v.jsxs)("div",{className:"c-option-list",children:[(0,v.jsx)("div",{className:"c-option-list__separator"}),d.type===S&&(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)("h5",{className:"c-option-list__heading"+(t.valid?"":" has-error"),children:r("event.purchase.please.select.option")}),(0,v.jsx)("div",{className:"c-option-list__content",children:(0,v.jsx)("select",{className:"c-select",onChange:i,value:`${l}:${s}:${c}:${e}`,children:d.options.map(t=>(0,v.jsx)("option",{value:`${l}:${s}:${t.id}:${e}`,children:t.name},t.id))})})]}),"MULTIPLE_CHOICE"===d.type&&(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)(w,{valid:t.valid,list:d,t:r}),(0,v.jsx)("div",{className:"c-option-list__content",children:d.options.map(n=>(0,v.jsx)(m.iI,{type:d.type,size:"small",value:`${l}:${s}:${n.id}:${e}`,label:n.name,color:a,checked:t.options[n.id].selected,disabled:t.options[n.id].disabled,onChange:i},n.id))})]})]})}}const N=(0,g.C)()((0,u.sw)(C));var _=l(79107);function I(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.qy)===i.gT?e.split(" ").reverse().join(" "):e}const A=(0,u.sw)(function(e){const{t:t}=(0,s.B)(),{dateFormat:l=i.qy}=(0,a.N)(r.zU),{location:n}=(0,a.N)(_.iq),{productType:{productTypeId:u,selectionType:g}={},productItem:{id:b,name:j,vat:f,price:w,priceInclVat:S,tieredSaving:C,description:A,productOptionsList:T=[]}={productOptionsList:[]},tier:{endDate:E}={},selected:L={primarySelected:!1,optionsList:{}},disabled:k=!1,vatRate:O=0,taxLabelStyle:F="VAT",isPriceInclVat:G=!1,onProductChange:D,onOptionChange:B,brand:{secondaryColor:P}={}}=e,M=(0,c.A)(h.A,x);return g&&(0,v.jsx)("div",{className:"c-product-item"+(L.disabled||k?" disabled":""),children:(0,v.jsx)(y.A,{checked:L.selected,showLeftLine:!0,children:(0,v.jsxs)("div",{className:"row",children:[(0,v.jsx)("div",{className:"col-xs-12",children:(0,v.jsx)(m.iI,{type:g,value:`${u}:${b}`,checked:L.selected,disabled:L.disabled||k,onChange:D,noCheckbox:L.primarySelected,children:(0,v.jsxs)("div",{className:"row",children:[(0,v.jsx)("div",{className:"col-xs-12 col-sm-7",children:(0,v.jsxs)("div",{className:`c-product-item__content${A?" has-description":""}${O>0?" has-vat-rate":""}${"none"===b?" none-item":""}`,children:[(0,v.jsx)("div",{className:"c-product-item__label",children:j}),A&&A.length>130?(0,v.jsx)(M,{content:{heading:j,body:(0,d.xk)(A,n)},className:"c-product-item__more-info",style:{color:P},children:t("event.purchase.more-information")}):A&&(0,v.jsx)("div",{className:"c-product-item__description",children:(0,d.xk)(A,n)})]})}),(0,v.jsxs)("div",{className:"col-xs-12 col-sm-5",children:[(0,v.jsx)("div",{className:"c-product-item__price",children:G?S:w}),f&&O>0&&(0,v.jsx)("div",{className:"c-product-item__vat-amount",children:(0,v.jsx)(p.A,{isPriceInclVat:G,vat:f,vatRate:O,taxLabelStyle:F,shortMessage:!0,className:"c-vat-message--mobile-left-aligned"})}),T.length>0&&!L.selected&&(0,v.jsxs)("div",{className:"c-product-item__option-flag",children:[t("event.purchase.choose.product.option.available"),(0,v.jsx)("i",{className:"icon fa fa-chevron-down"})]})]})]})})}),T.length>0&&L.selected&&(0,v.jsx)("div",{className:"col-xs-12",children:(0,v.jsx)("div",{className:"c-product-item__option-list"+(L.primarySelected?" c-product-item__option-list--full":""),children:T.map((t,l)=>(0,v.jsx)(N,{listIndex:l,selected:L.optionsList[l],productType:e.productType,productItem:e.productItem,onOptionChange:B},l))})}),C&&E&&(0,v.jsx)("div",{className:"col-xs-12",children:(0,v.jsx)("div",{className:"c-product-item__tiered-saving"+(L.primarySelected?" c-product-item__tiered-saving--full":""),children:(0,v.jsx)(o.x,{i18nKey:"event.purchase.save-by-date",values:{0:C,1:I(E,l)}})})})]})})})})},69759(e,t,l){"use strict";l.d(t,{A:()=>a});l(76998);var n=l(84946),s=l(23236),o=l(23446);function i(e){const{shortMessage:t=!1,isPriceInclVat:l=!1,taxLabelStyle:n="VAT"}=e;return`site.purchase${l?".incl":""}${t&&l?".short":""}${["VAT","Tax"].includes(n)?`.localised.${n.toLowerCase()}`:".vat.amount"}`}function a(e){const{shortMessage:t=!1,isPriceInclVat:l=!1,taxLabelStyle:a="VAT",vatRate:r="",vat:d,className:c="",isCarbonOffsetApply:u}=e,{t:m}=(0,n.B)(),p=(0,s.Kg)(r)?(0,s.K)(r):r;return(0,o.jsxs)("div",{className:`c-vat-message ${c}`,children:[p>0&&m(i({shortMessage:t,isPriceInclVat:l,taxLabelStyle:a}),{0:p,1:a})," ",d&&(0,o.jsx)("span",{className:"c-vat-message__amount",children:d}),u&&(0,o.jsx)("div",{className:"c-vat-message__carbon",children:m("site.purchase.select-package.carbon.excludes")})]})}},43525(e,t,l){"use strict";l.d(t,{A:()=>p});var n=l(76998),s=l(23236),o=l(14285),i=l(99867),a=l(34156),r=l.n(a),d=l(80369),c=l(13761),u=l(23446);const m=(0,c.Ng)(function(e){return{siteHeader:e.siteHeader}})((0,d.C)()((0,o.sw)(function(e){const{brand:{accentColor:t}={},btnSize:l="large",isMenu:n=!1,siteHeader:{data:{booking:s=!1,bookingForm:{bookingFormType:
1o,customBookingUrl:a,buttonText:d}={},registrationName:c="BOOK_NOW"}={}}={},t:m}=e,p=r()("c-booking-button",{"c-booking-button--menu-type":n}),h="CUSTOM"===o,y=m(`event.book-now.${c}`);return s?(0,u.jsxs)(i.A,{type:"button",size:l,to:h?a:"/",event:h?null:{type:"BUY_LINK"},style:{backgroundColor:t},className:p,children:[(0,u.jsx)("span",{className:"c-booking-button__text",children:h?(0,u.jsx)(u.Fragment,{children:d||y}):(0,u.jsx)(u.Fragment,{children:y})}),(0,u.jsx)("span",{className:"c-booking-button__text-short",children:c?(0,u.jsx)(u.Fragment,{children:y}):h?(0,u.jsx)(u.Fragment,{children:d||m("event.book-now.mobile")}):(0,u.jsx)(u.Fragment,{children:m("event.book-now.mobile")})})]}):null})));function p(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};class d extends n.Component{constructor(e){super(e),this.handleOpen=e=>{e.preventDefault(),(0,s.SS)(),this.setState({isModalOpen:!0})},this.handleClose=e=>{const{superModal:t=!1}=this.props;e&&e.preventDefault(),t||((0,s.fk)(),this.setState({isModalOpen:!1}))},this.state={isModalOpen:!!e.isShowing}}componentDidMount(){this.state.isModalOpen?(0,s.SS)():(0,s.fk)(window.scrollY)}render(){const{index:n,content:s,modalPosition:o="center",withTopPanel:d,withBookingButton:c,brand:p,bookingLink:h,...y}=this.props,v="top"===o?{alignItems:"flex-start"}:"center"===o?{alignItems:"center"}:null;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(e,{onClick:this.handleOpen,...l,...y}),this.state.isModalOpen&&(0,u.jsx)("div",{className:`c-modal ${a}`,children:(0,u.jsxs)("div",{className:"c-modal__wrapper",style:v,children:[(0,u.jsx)("div",{className:"c-modal__overlay",onClick:this.handleClose,role:"presentation"}),(0,u.jsxs)("div",{className:"c-modal__container",children:[d&&(0,u.jsxs)("div",{className:"c-modal__top-panel",style:{backgroundColor:p.secondaryColor},children:[(0,u.jsx)("span",{children:c&&h?(0,u.jsx)(i.A,{type:"button",to:h,size:"popup",children:"Book now"}):c?(0,u.jsx)(m,{size:"popup"}):null}),(0,u.jsx)("span",{className:"c-modal__close",onClick:this.handleClose,children:"\xd7"})]}),(0,u.jsx)(t,{index:n,...s,...r,closeModal:this.handleClose})]})]})})]})}}return(0,o.sw)(d)}},6535(e,t,l){"use strict";l.d(t,{FB:()=>m,mc:()=>u,X3:()=>v,S:()=>h,OL:()=>y});var n=l(74549),s=l(11309),o=l(35515);function i(e){return n.A.t(`global.currencies.${e}.label`)}let a=function(e){return e.IN_PERSON="IN_PERSON",e.LIVE_ONLINE="LIVE_ONLINE",e.ON_DEMAND="ON_DEMAND",e.FLEXI="FLEXI",e.ONLINE_PROGRAMME="ONLINE_PROGRAMME",e}({}),r=function(e){return e.ARABIC="ARABIC",e.ENGLISH="ENGLISH",e.FRENCH="FRENCH",e.GERMAN="GERMAN",e.PORTUGUESE="PORTUGUESE",e.SPANISH="SPANISH",e.VIETNAMESE="VIETNAMESE",e}({}),d=function(e){return e.GBP="GBP",e.USD="USD",e.EUR="EUR",e.AED="AED",e.CHF="CHF",e.AUD="AUD",e.SAR="SAR",e}({}),c=function(e){return e.OFF="OFF",e.FIVE="FIVE",e.THREE="THREE",e.TEN="TEN",e}({});const u={[c.THREE]:3,[c.FIVE]:5,[c.TEN]:10};let m=function(e){return e.LANGUAGE="language",e.DELIVERY_TYPE="deliveryType",e.CURRENCY="currency",e}({});const p="ALL",h=[{value:p,label:n.A.t("site.modules.course-option-display.menu.item.all.locations.label")},...Object.values(a).map(e=>({value:e,label:(0,s.G)(e)}))],y=[{value:p,label:n.A.t("site.modules.course-option-display.menu.item.all.languages.label")},...Object.values(r).map(e=>({value:e,label:(0,o.O)(e)}))],v=[{value:p,label:n.A.t("site.modules.course-option-display.menu.item.all.currencies.label")},...Object.values(d).map(e=>({value:e,label:i(e)}))]},52713(e,t,l){"use strict";l.d(t,{f:()=>r,O:()=>o});var n=l(15897),s=l(2359);const o=(0,n.Mz)([s.O,(e,t)=>t],function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{filters:{deliveryTypes:l=[],languages:n=[],currencies:s=[],trainerIds:o=[]}={},numberOfCoursesToShow:i}=t,a=[e=>0===l.length?e:e.filter(e=>l.includes(e.deliveryType)),e=>0===n.length?e:e.filter(e=>n.includes(e.language)),e=>0===s.length?e:e.filter(e=>s.includes(e.currency)),e=>0===o.length?e:e.filter(e=>{const t=e.trainers||[];return o.every(e=>{const l=t.find(t=>
1t.id===e);return Boolean(l)})})].reduce((e,t)=>t(e),e.options||[]);if(i){const e=parseInt(i,10);return a.slice(0,e)}return a});var i=l(19204),a=l(6535);const r=(0,n.Mz)([o,(e,t)=>t],function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{showSettings:{showDeliveryTypeFilter:l,showLanguage:n,showLanguageFilter:s,showCurrencyFilter:o}}=t,r=l?(0,i.XF)({filters:a.S,rows:e,rowFilterKey:a.FB.DELIVERY_TYPE}):[],d=s&&n?(0,i.XF)({filters:a.OL,rows:e,rowFilterKey:a.FB.LANGUAGE}):[],c=o?(0,i.XF)({filters:a.X3,rows:e,rowFilterKey:a.FB.CURRENCY}):[];return{[a.FB.DELIVERY_TYPE]:{shown:l&&r.length>2,options:r},[a.FB.LANGUAGE]:{shown:s&&d.length>2,options:d},[a.FB.CURRENCY]:{shown:o&&c.length>2,options:c}}})},19204(e,t,l){"use strict";l.d(t,{XF:()=>o,bj:()=>i,nO:()=>c,EB:()=>r,cl:()=>a});var n=l(89881),s=l.n(n);l(6535);function o(e){let{filters:t,rows:l,rowFilterKey:n}=e;const o=s()(l.map(e=>e[n]));return t.filter(e=>"ALL"===e.value||o.includes(e.value))}function i(e,t){return Object.keys(t).reduce((e,l)=>"ALL"===t[l]?e:e.filter(e=>e[l]===t[l]),e)}function a(e,t){return t?e.slice(0,t):e}function r(e){const{showTime:t,showTimezone:l,time:n,timeZone:s,timeZoneAsText:o}=e;return[t&&n,l&&(o||s)].filter(Boolean).join(" ")}var d=l(74549);function c(e,t,l){return e?l||(t?d.A.t("site.modules.course-option-display.table.column.amount-of-days.label",{0:t}):""):""}},70266(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>Me});var n=l(76998),s=l(11947),o=l(24241),i=l(2359),a=l(91634),r=l(6535);const d=(0,n.createContext)({section:{},rows:[],filters:{[r.FB.DELIVERY_TYPE]:{shown:!1,options:[]},[r.FB.LANGUAGE]:{shown:!1,options:[]},[r.FB.CURRENCY]:{shown:!1,options:[]}},selectedFilters:{[r.FB.DELIVERY_TYPE]:"ALL",[r.FB.LANGUAGE]:"ALL",[r.FB.CURRENCY]:"ALL"},showMore:!1,handleShowMoreClick:()=>{},handleFilterChange:()=>{}});var c=l(52713),u=l(19204),m=l(23446);function p(e){const{section:t,children:l}=e,s=(0,o.N)(e=>(0,c.O)(e,t)),i=(0,o.N)(e=>(0,c.f)(e,t)),{loadMoreButtonShownAfter:a,loadMoreButtonShown:p}=t,h=r.mc[a],y=p&&!!h&&h<s.length,[v,x]=(0,n.useState)(y),[g,b]=(0,n.useState)((0,u.cl)(s,h)),[j,f]=(0,n.useState)({[r.FB.DELIVERY_TYPE]:"ALL",[r.FB.LANGUAGE]:"ALL",[r.FB.CURRENCY]:"ALL"});return(0,m.jsx)(d.Provider,{value:{section:t,filters:i,selectedFilters:j,rows:g,showMore:v,handleShowMoreClick:()=>{x(!1);const e=(0,u.bj)(s,j);b(e)},handleFilterChange:(e,t)=>
1{const l={...j,[t]:e};f(l);const n=v?(0,u.cl)(s,h):s,o=(0,u.bj)(n,l);b(o)}},children:l})}var h=l(23236),y=l(61332),v=l(79107);const x=s.Ay.p.withConfig({displayName:"Paragraph__StyledParagraph",componentId:"sc-1fx4o5s-0"})(["margin:0;padding:0;"," ",""],e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.paragraph)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.paragraph)}),g=e=>{let{text:t,children:l,className:n}=e;const s=(0,o.N)(v.iq);return(0,m.jsx)(x,{className:n,children:l||(0,h.xk)(t,null===s||void 0===s?void 0:s.location)})},b=e=>{let{label:t,disabled:l,url:o}=e;const i=(0,n.useContext)(s.Dx),r=i.module.dStyles.elements.booking,d=i.module.vStyles.elements.booking,{elements:{callToAction:{settings:{mode:c,look:u,size:p}}}}=d,h=l?"disabled":u,y=l?"none":c;return(0,m.jsx)(a.dI,{label:t,size:p,look:h,mode:y,disabled:l,to:o,displayStyles:r,visualStyles:d,ctaConfig:{openInNewTabEnabled:!1,shown:!0,type:"CUSTOM"}})},j=(0,s.Ay)(g).withConfig({displayName:"BoldParagraph__StyledBoldParagraph",componentId:"sc-g2akwu-0"})([""," ",""],e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.boldParagraph)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.boldParagraph)}),f=e=>{let{text:t}=e;return(0,m.jsx)(j,{text:t})},w=(0,s.Ay)(x).withConfig({displayName:"PriceParagraph__StyledPriceParagraph",componentId:"sc-c8nkwa-0"})(["white-space:nowrap;"," ",""],e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.priceParagraph)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.priceParagraph)}),S=e=>{let{text:t}=e;return(0,m.jsx)(w,{children:t})},C=(0,s.Ay)(g).withConfig({displayName:"DiscountParagraph__StyledDiscountParagraph",componentId:"sc-1rfw54v-0"})([""," ",""],e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.discountParagraph)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.discountParagraph)}),N=e=>{let{text:t}=e;return(0,m.jsx)(C,{text:t})},_=(0,s.Ay)(g).withConfig({displayName:"TierParagraph__StyledTierParagraph",componentId:"sc-p03fam-0"})([""," ",""],e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.tierParagraph)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.tierParagraph)}),I=e=>{let{text:t}=e;return(0,m.jsx)(_,{text:t})};var A=l(34156),T=l.n(A);const E=s.Ay.i.withConfig({displayName:"Icon__StyledIcon",componentId:"sc-hp1wuv-0"})(["color:inherit;"," ",""],e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.icon)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.icon)}),L=e=>{let{matIcon:t,outlined:l}=e;return(0,m.jsx)(E,{className:T()({"material-icons":!l,"material-icons-outlined":l}),children:t})},k=s.Ay.div.withConfig({displayName:"StyledDeliveryType__Wrapper",componentId:"sc-1ts1x3e-0"})(["display:flex;align-items:center;gap:4px;"]),O=e=>{let{text:t}=e;return(0,m.jsxs)(k,{children:[(0,m.jsx)(L,{matIcon:"location_on",outlined:!0}),(0,m.jsx)(g,{text:t})]})},F=(0,s.Ay)(g).withConfig({displayName:"SalesMessage__StyledSalesMessage",componentId:"sc-1ofpp23-0"})([""," ",""],e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.salesMessage)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.salesMessage)}),G=e=>{let{text:t}=e;return(0,m.jsx)(F,{text:t})};var D=l(99867);const B=(0,s.Ay)(D.A).withConfig({displayName:"Link__StyledLink",componentId:"sc-xj6k3d-0"})([""," ",""],e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.link)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.link)}),P=e=>{let{to:t,target:l,download:n,label:s,children:o}=e;return(0,m.jsx)(B,{to:t,target:l,download:n,label:s,children:o})},M=s.Ay.div.withConfig({displayName:"StyledDownloadBrochureLink__LinkWrapper",componentId:"sc-11ffy0z-0"})(["display:flex;align-items:center;gap:4px;white-space:nowrap;flex-wrap:nowrap;"]),R=e=>{let{to:t,newTab:l,text:n,download:s}=e;return(0,m.jsxs)(M,{children:[(0,m.jsx)(L,{matIcon:"download_for_offline",outlined:!0}),(0,m.jsx)(P,{to:t,target:l?"_blank":void 0,label:n,download:s})]})},U=s.Ay.div.withConfig({displayName:"StyledMenu",componentId:"sc-178t4a8-0"})(["display:",";"," ",""],e=>{let{open:t}=e;return t?"block":"none"},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.menu)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.menu)}),Y=s.Ay.div.withConfig({displayName:"StyledMenuItem__StyledMenuItemWrapper",componentId:"sc-1vbbq9e-0"})(["cursor:pointer;padding:8px 16px;white-space:nowrap;"," "," ",""],e=>{var t,l;let{theme:n}=e;return(0,y.yG)(n,null===(t=n.module.dStyles.elements.menu)||void 0===t||null===(l=t.elements)||void 0===l?void 0:l.menuItem)},e=>{var t,l;let{theme:n}=e;return(0,y.yG)(n,null===(t=n.module.vStyles.elements.menu)||void 0===t||null===(l=t.elements)||void 0===l?void 0:l.menuItem)},e=>{var t,l,n;let{theme:s,selected:o}=e;return o&&(0,y.yG)(s,null===(t=s.module.vStyles.elements.menu)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.menuItem)||void 0===n?void 0:n.selected)}),V=s.Ay.p.withConfig({displayName:"StyledMenuItem__StyledMenuItemText",componentId:"sc-1vbbq9e-1"})([""," ",""],e=>{var t,l,n,s;let{theme:o}=e;return(0,y.yG)(o,null===(t=o.module.dStyles.elements.menu)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.menuItem)||void 0===n||null===(s=n.elements)||void 0===s?void 0:s.text)},e=>{var t,l,n,s;let{theme:o}=e;return(0,y.yG)(o,null===(t=o.module.vStyles.elements.menu)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.menuItem)||void 0===n||null===(s=n.elements)||void 0===s?void 0:s.text)}),$=e=>{let{selected:t,label:l,onClick:n}=e;return(0,m.jsx)(Y,{onClick:n,selected:t,children:(0,m.jsx)(V,{children:l})})},z=s.Ay.div.withConfig({displayName:"ModuleWrapper",componentId:"sc-op2amu-0"})([""," "," ",""],e=>{let{theme:t}=e;return(0,y.yG)(t,t.siteBuilderModules.courseOptionDisplayModule)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles)}),K=s.Ay.div.withConfig({displayName:"StyledTableLayout",componentId:"sc-1r6fyfa-0"})(["overflow-x:auto;"," "," table{border-spacing:0;border-collapse:collapse;border-style:hidden;width:100%;max-width:100%;"," ","}thead{"," "," tr{"," ","}}th{vertical-align:top;"," "," &:first-child{"," ","}&:last-child{"," ","}p{margin:0;padding:0;"," ","}}tbody{"," "," tr{"," ","}td{vertical-align:top;"," "," &:first-child{"," ","}&:last-child{"," ","}}}"],e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.tableWrapper)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.tableWrapper)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.table)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.table)},e=>{var t,l,n;let{theme:s}=e;return(0,y.yG)(s,null===(t=s.module.dStyles.elements)||void 0===t||null===(l=t.table)||void 0===l||null===(n=l.elements)||void 0===n?void 0:n.thead)},e=>{var t,l,n;let{theme:s}=e;return(0,y.yG)(s,null===(t=s.module.vStyles.elements)||void 0===t||null===(l=t.table)||void 0===l||null===(n=l.elements)||void 0===n?void 0:n.thead)},e=>{var t,l,n,s;let{theme:o}=e;return(0,y.yG)(o,null===(t=o.module.dStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.thead)||void 0===n||null===(s=n.elements)||void 0===s?void 0:s.tr)},e=>{var t,l,n,s;let{theme:o}=e;return(0,y.yG)(o,null===(t=o.module.vStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.thead)||void 0===n||null===(s=n.elements)||void 0===s?void 0:s.tr)},e=>{var t,l,n,s;let{theme:o}=e;return(0,y.yG)(o,null===(t=o.module.dStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.thead)||void 0===n||null===(s=n.elements)||void 0===s?void 0:s.th)},e=>{var t,l,n,s;let{theme:o}=e;return(0,y.yG)(o,null===(t=o.module.vStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.thead)||void 0===n||null===(s=n.elements)||void 0===s?void 0:s.th)},e=>{var t,l,n,s,o;let{theme:i}=e;return(0,y.yG)(i,null===(t=i.module.dStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.thead)||void 0===n||null===(s=n.elements)||void 0===s||null===(o=s.th)||void 0===o?void 0:o.firstChild)},e=>{var t,l,n,s,o;let{theme:i}=e;return(0,y.yG)(i,null===(t=i.module.vStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.thead)||void 0===n||null===(s=n.elements)||void 0===s||null===(o=s.th)||void 0===o?void 0:o.firstChild)},e=>{var t,l,n,s,o;let{theme:i}=e;return(0,y.yG)(i,null===(t=i.module.dStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.thead)||void 0===n||null===(s=n.elements)||void 0===s||null===(o=s.th)||void 0===o?void 0:o.lastChild)},e=>{var t,l,n,s,o;let{theme:i}=e;return(0,y.yG)(i,null===(t=i.module.vStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.thead)||void 0===n||null===(s=n.elements)||void 0===s||null===(o=s.th)||void 0===o?void 0:o.lastChild)},e=>{var t,l,n,s;let{theme:o}=e;return(0,y.yG)(o,null===(t=o.module.dStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.thead)||void 0===n||null===(s=n.elements)||void 0===s?void 0:s.text)},e=>{var t,l,n,s;let{theme:o}=e;return(0,y.yG)(o,null===(t=o.module.vStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.thead)||void 0===n||null===(s=n.elements)||void 0===s?void 0:s.text)},e=>{var t,l;let{theme:n}=e;return(0,y.yG)(n,null===(t=n.module.dStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l?void 0:l.tbody)},e=>{var t,l;let{theme:n}=e;return(0,y.yG)(n,null===(t=n.module.vStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l?void 0:l.tbody)},e=>{var t,l;let{theme:n}=e;return(0,y.yG)(n,null===(t=n.module.dStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l?void 0:l.tr)},e=>{var t,l;let{theme:n}=e;return(0,y.yG)(n,null===(t=n.module.vStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l?void 0:l.tr)},e=>{var t,l;let{theme:n}=e;return(0,y.yG)(n,null===(t=n.module.dStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l?void 0:l.td)},e=>{var t,l;let{theme:n}=e;return(0,y.yG)(n,null===(t=n.module.vStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l?void 0:l.td)},e=>{var t,l,n;let{theme:s}=e;return(0,y.yG)(s,null===(t=s.module.dStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.td)||void 0===n?void 0:n.firstChild)},e=>{var t,l,n;let{theme:s}=e;return(0,y.yG)(s,null===(t=s.module.vStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.td)||void 0===n?void 0:n.firstChild)},e=>{var t,l,n;let{theme:s}=e;return(0,y.yG)(s,null===(t=s.module.dStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.td)||void 0===n?void 0:n.lastChild)},e=>{var t,l,n;let{theme:s}=e;return(0,y.yG)(s,null===(t=s.module.vStyles.elements.table)||void 0===t||null===(l=t.elements)||void 0===l||null===(n=l.td)||void 0===n?void 0:n.lastChild)}),H=s.Ay.div.withConfig({displayName:"StyledTableLayout__StyledTableHeader",componentId:"sc-1r6fyfa-1"})(["display:flex;align-items:center;white-space:nowrap;gap:4px;"]),q=(0,s.Ay)(H).withConfig({displayName:"StyledTableLayout__StyledTableInteractiveHeader",componentId:"sc-1r6fyfa-2"})(["user-select:none;cursor:pointer;"]),W=s.Ay.div.withConfig({displayName:"StyledTableLayout__StyledTableMenuPosition",componentId:"sc-1r6fyfa-3"})(["top:46px;position:absolute;z-index:99999;"]),Z=s.Ay.div.withConfig({displayName:"FlexEnd",componentId:"sc-ya476p-0"})(["display:flex;align-items:center;justify-content:flex-end;
1gap:8px;"]),X=s.Ay.div.withConfig({displayName:"FlexStart",componentId:"sc-g7w0tl-0"})(["display:flex;align-items:center;justify-content:flex-end;gap:8px;"]),J=s.Ay.div.withConfig({displayName:"FlexWrapped",componentId:"sc-11gi9y9-0"})(["display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;"]),Q=s.Ay.div.withConfig({displayName:"OverflowVisible",componentId:"sc-nnc9fc-0"})(["position:relative;overflow:visible;"]),ee=s.Ay.div.withConfig({displayName:"StyledCardLayout__StyledOptionDisplayWrapper",componentId:"sc-1l373lb-0"})([""]),te=s.Ay.div.withConfig({displayName:"StyledCardLayout__StyledCardMenuPosition",componentId:"sc-1l373lb-1"})(["top:24px;position:absolute;z-index:99999;"]),le=s.Ay.div.withConfig({displayName:"StyledCardLayout__StyledOptionDisplayFilter",componentId:"sc-1l373lb-2"})(["display:flex;align-items:center;gap:8px;text-align:left;margin-bottom:16px;flex-wrap:wrap;"]),ne=s.Ay.div.withConfig({displayName:"StyledCardLayout__StyledCardFilterBy",componentId:"sc-1l373lb-3"})(["display:flex;align-items:center;gap:4px;"]),se=s.Ay.div.withConfig({displayName:"StyledCardLayout__StyledCardFilterItem",componentId:"sc-1l373lb-4"})(["cursor:pointer;user-select:none;display:flex;align-items:center;justify-content:flex-end;gap:4px;"]),oe=s.Ay.div.withConfig({displayName:"StyledCardLayout__StyledOptionDisplayFilterItem",componentId:"sc-1l373lb-5"})(["position:relative;"]),ie=s.Ay.ul.withConfig({displayName:"StyledCardLayout__StyledOptionDisplayCardsList",componentId:"sc-1l373lb-6"})([""]),ae=s.Ay.li.withConfig({displayName:"StyledCardLayout__StyledOptionDisplayCard",componentId:"sc-1l373lb-7"})(["margin-bottom:16px;&:last-child{margin-bottom:0;}"," ",""],e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.dStyles.elements.card)},e=>{let{theme:t}=e;return(0,y.yG)(t,t.module.vStyles.elements.card)}),re=s.Ay.div.withConfig({displayName:"StyledCardLayout__StyledOptionDisplayCardSection",componentId:"sc-1l373lb-8"})(["margin-bottom:8px;&:last-child{margin-bottom:0;}"]);var de=l(84946);const ce=e=>{let{label:t,icon:l}=e;return(0,m.jsxs)(H,{children:[l,(0,m.jsx)("p",{children:t})]})};var ue=l(0);const me=()=>{const e=(0,n.useRef)(null),[t,l]=(0,n.useState)(!1),s=()=>{l(!1)};return(0,ue.W)(e,s),{ref:e,open:t,handleToggle:()=>{l(!t)},handleClose:s,handleOpen:()=>{l(!0)}}},pe=e=>{let{ctaUrl:t,ctaText:l,newTab:n,as:s}=e;const{t:a}=(0,de.B)(),{pageConfig:{sitePath:r},coursePricing:{courseBrochure:d={}}}=(0,o.N)(e=>({pageConfig:(0,v.iq)(e),coursePricing:(0,i.O)(e)})),{file:{filename:c=""}={},ctaUrl:u,ctaText:p,openInNewTab:h}=d;if(!c&&!t&&!u)return null;const y=!t&&!u,x=t||u||`${r}/downloads/course/brochure/${c}`,g=l||p||a("site.modules.course-option-display.link.download-brochure.label");return(0,m.jsx)(s,{to:x,text:g,newTab:n||h,download:y})};var he=l(35515);function ye(e){const{value:t,prefix:l,as:n}=e,{t:s}=(0,de.B)(),o=(0,he.O)(t),i=l?s("site.modules.course-option-display.language.prefix",{0:o}):o;return(0,m.jsx)(n,{text:i})}const ve=e=>{const{showLocation:t,showVenue:l,location:n,as:s}=e,{city:o,cityAsText:i,country:a,venueName:r}=n,d=[...t?[i||o,a].filter(Boolean):[],l&&r].filter(Boolean).join(", ");return d?(0,m.jsx)(s,{text:d}):null};var xe=l(25443),ge=l.n(xe),be=l(86273),je=l(50776);function fe(e){let{value:t,as:l}=e;const{i18n:n}=(0,de.B)(),{dateFormat:s=be.qy}=(0,o.N)(je.zU),i=(0,h.J6)(n.language),a=ge()(t,["YYYY-MM-DD"]).locale(i).format(s===be.gT?"MMM DD, YYYY":"DD MMM YYYY");return(0,m.jsx)(l,{text:a})}var we=l(89440);function Se(e){const{endDate:t,maxSaving:l,as:n}=e,{t:s}=(0,de.B)(),{dateFormat:i=be.qy}=(0,o.N)(je.zU);return(0,m.jsx)(n,{text:s("site.modules.course-option-display.pricing.tier.save-by-date.label",{0:(0,we.Vw)(t,i),1:l})})}var Ce=l(82086);function Ne(e){const{uri:t,displayName:l,prefix:n,as:s}=e,{sitePath:i}=(0,o.N)(v.iq),a=`${i}/trainers/${t}`;return n?(0,m.jsx)(g,{children:(0,m.jsx)(Ce.x,{i18nKey:"site.modules.course-option-display.trainer.prefix",values:{0:l},children:(0,m.jsx)(s,{to:a,label:l})})}):(0,m.jsx)(s,{to:a,label:l})}var _e=l(79628);function Ie(e){const{bookingLinkOverride:t,bookingButtonTextOverride:l,bookingClosedText:n,bookingOpen:s,optionIndex:i,as:a,testId:r}=e,{t:d}=(0,de.B)(),{newPaymentJourneyEnabled:c}=(0,o.N)(_e.l),u=s?t||(c?`/purchase/select-package?siteOptionIndex=${i}`:`/purchase/course-option/${i}`):"",p=l||d("site.modules.course-option-display.cta.book-now.label"),h=n||d("site.modules.course-option-display.cta.sold-out.label");return(0,m.jsx)(a,{"data-testid":r,label:s?p:h,disabled:!s,url:u})}Ie.defaultProps={testId:"course-option-display-module-book-button"};const Ae=n.forwardRef((e,t)=>
1{let{open:l,filterKey:s,onClose:o,items:i}=e;const{selectedFilters:a,handleFilterChange:r}=(0,n.useContext)(d),c=a[s];return(0,m.jsx)(U,{open:l,ref:t,children:i.map((e,t)=>{let{value:l,label:n}=e;return(0,m.jsx)($,{selected:l===c,label:n,onClick:()=>{r(l,s),o()}},t)})})}),Te=e=>{let{filterKey:t,options:l,icon:n,label:s,alignRight:o}=e;const{ref:i,open:a,handleToggle:r,handleClose:d}=me(),c=o?Z:"div";return(0,m.jsxs)(c,{ref:i,children:[(0,m.jsxs)(q,{onClick:r,children:[n,(0,m.jsx)("p",{children:s}),(0,m.jsx)(L,{matIcon:a?"expand_less":"expand_more"})]}),(0,m.jsx)(W,{children:(0,m.jsx)(Ae,{open:a,filterKey:t,items:l,onClose:d})})]})};var Ee=l(11309);function Le(e){var t,l;let{row:s}=e;const{section:{showSettings:{showDate:o,showTime:i,showDuration:a,showLocation:r,showTimezone:c,showLanguage:p,showDownloadBrochureLink:h,showVenue:y,showSalesMessage:v,showTrainers:x}}}=(0,n.useContext)(d),j=(0,u.nO)(a,s.amountOfDays,s.numberOfDaysOverride),w=(0,u.EB)({showTime:i,showTimezone:c,time:s.time,timeZone:s.timeZone,timeZoneAsText:s.timeZoneAsText});return(0,m.jsxs)("tr",{children:[o&&(0,m.jsx)("td",{children:(s.startDate||s.dateAsText)&&(0,m.jsxs)(m.Fragment,{children:[s.startDate?(0,m.jsx)(fe,{value:s.startDate,as:f}):(0,m.jsx)(f,{text:s.dateAsText}),j&&(0,m.jsx)(g,{text:j}),w&&(0,m.jsx)(g,{text:w})]})}),(0,m.jsxs)("td",{children:[(0,m.jsx)(O,{text:(0,Ee.G)(s.deliveryType)}),s.location&&(r||y)&&(0,m.jsx)(ve,{showLocation:r,showVenue:y,location:s.location,as:g})]}),x&&(0,m.jsx)("td",{children:s.trainers.map((e,t)=>(0,m.jsx)(Ne,{uri:e.uri,displayName:e.displayName,as:P},t))}),(p||h)&&(0,m.jsxs)("td",{children:[p&&s.language&&(0,m.jsx)(ye,{value:s.language,as:g}),h&&(0,m.jsx)(pe,{ctaUrl:s.brochureCtaUrl,ctaText:s.brochureCtaText,newTab:s.openBrochureInNewTab,as:R})]}),(0,m.jsxs)("td",{style:{textAlign:"right"},children:[(0,m.jsx)(Z,{children:s.primaryProductDiscountedPrice?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(N,{text:s.primaryProductFullPrice}),(0,m.jsx)(S,{text:s.primaryProductDiscountedPrice})]}):(0,m.jsx)(S,{text:s.primaryProductFullPrice})}),(null===(t=s.tier)||void 0===t?void 0:t.endDate)&&(null===(l=s.tier)||void 0===l?void 0:l.maxSaving)&&(0,m.jsx)(Se,{endDate:s.tier.endDate,maxSaving:s.tier.maxSaving,as:I})]}),(0,m.jsxs)("td",{children:[(0,m.jsx)(Ie,{bookingOpen:s.bookingOpen,bookingClosedText:s.bookingClosedText,bookingLinkOverride:s.bookingLinkOverride,bookingButtonTextOverride:s.bookingButtonTextOverride,optionIndex:s.index,as:b}),v&&s.salesMessage&&(0,m.jsx)(G,{text:s.salesMessage})]})]})}function ke(){const{t:e}=(0,de.B)(),{rows:t,filters:l,section:{showSettings:{showDate:s,showLanguage:o,showDownloadBrochureLink:i,showTrainers:a}}}=(0,n.useContext)(d),c=o||i,u=l[r.FB.DELIVERY_TYPE],p=l[r.FB.LANGUAGE],h=l[r.FB.CURRENCY];return(0,m.jsx)(Q,{children:(0,m.jsx)(K,{children:(0,m.jsxs)("table",{children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[s&&(0,m.jsx)("th",{children:(0,m.jsx)(ce,{label:e("site.modules.course-option-display.table.header.date.label"),icon:(0,m.jsx)(L,{matIcon:"schedule",outlined:!0})})}),(0,m.jsx)("th",{children:u.shown?(0,m.jsx)(Te,{filterKey:r.FB.DELIVERY_TYPE,options:u.options,label:e("site.modules.course-option-display.table.header.delivery-type.label"),icon:(0,m.jsx)(L,{matIcon:"maps_home_work",outlined:!0})}):(0,m.jsx)(ce,{label:e("site.modules.course-option-display.table.header.delivery-type.label"),icon:(0,m.jsx)(L,{matIcon:"maps_home_work",outlined:!0})})}),a&&(0,m.jsx)("th",{children:(0,m.jsx)(ce,{label:e("site.modules.course-option-display.table.header.trainer.label"),icon:(0,m.jsx)(L,{matIcon:"person",outlined:!0})})}),c&&(0,m.jsx)("th",{children:p.shown?(0,m.jsx)(Te,{filterKey:r.FB.LANGUAGE,options:p.options,label:e("site.modules.course-option-display.table.header.language.label"),icon:(0,m.jsx)(L,{matIcon:"maps_home_work",outlined:!0})}):(0,m.jsx)(ce,{label:e("site.modules.course-option-display.table.header.language.label"),icon:(0,m.jsx)(L,{matIcon:"language",outlined:!0})})}),(0,m.jsx)("th",{children:h.shown&&(0,m.jsx)(Te,{filterKey:r.FB.CURRENCY,options:h.options,label:e("site.modules.course-option-display.table.header.currency.label"),icon:(0,m.jsx)(L,{matIcon:"attach_money"}),alignRight:!0})}),(0,m.jsx)("th",{})]})}),(0,m.jsx)("tbody",{children:t.map((e,t)=>(0,m.jsx)(Le,{row:e},t))})]})})})}function Oe(e){const{filter:t,renderOptionCard:l,options:n}=e;return(0,m.jsxs)(ee,{children:[t&&(0,m.jsx)(le,{children:t}),(0,m.jsx)(ie,{children:n.map((e,t)=>(0,m.jsx)(ae,{children:l(e)},t))})]})}function Fe(e){const{filterKey:t,options:l,label:n}=e,{ref:s,open:o,handleToggle:i,handleClose:a}=me();return(0,m.jsxs)(oe,{ref:s,children:[(0,m.jsxs)(se,{onClick:i,children:[(0,m.jsx)(g,{text:n}),(0,m.jsx)(L,{matIcon:o?"expand_less":"expand_more"})]}),(0,m.jsx)(te,{children:(0,m.jsx)(Ae,{open:o,filterKey:t,items:l,onClose:a})})]})}function Ge(){const{t:e}=(0,de.B)(),{filters:t}=(0,n.useContext)(d),l=t[r.FB.DELIVERY_TYPE],s=t[r.FB.LANGUAGE],o=t[r.FB.CURRENCY];return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(ne,{children:[(0,m.jsx)(L,{matIcon:"tune",outlined:!0}),(0,m.jsx)(f,{text:e("site.modules.course-option-display.card.filter.section.title")})]}),l.shown&&(0,m.jsx)(Fe,{label:e("site.modules.course-option-display.card.filter.delivery-type.label"),filterKey:r.FB.DELIVERY_TYPE,options:l.options}),s.shown&&(0,m.jsx)(Fe,{label:e("site.modules.course-option-display.card.filter.language.label"),filterKey:r.FB.LANGUAGE,options:s.options}),o.shown&&(0,m.jsx)(Fe,{label:e("site.modules.course-option-display.card.filter.currency.label"),filterKey:r.FB.CURRENCY,options:o.options})]})}const De=e=>{var t,l,s;let{option:o}=e;const{section:{showSettings:{showDate:i,showTime:a,showDuration:r,showLocation:c,showTimezone:p,showLanguage:h,showDownloadBrochureLink:y,showVenue:v,showSalesMessage:x,showTrainers:j}}}=(0,n.useContext)(d),w=(0,u.nO)(r,o.amountOfDays,o.numberOfDaysOverride),C=(0,u.EB)({showTime:a,showTimezone:p,time:o.time,timeZone:o.timeZone,timeZoneAsText:o.timeZoneAsText}),_=i&&(o.startDate||o.dateAsText||o.numberOfDaysOverride);return(0,m.jsxs)(m.Fragment,{children:[_&&(0,m.jsxs)(re,{children:[o.startDate?(0,m.jsx)(fe,{value:o.startDate,as:f}):(0,m.jsx)(f,{text:o.dateAsText}
1),(w||C)&&(0,m.jsx)(g,{text:[w,C].filter(Boolean).join(", ")})]}),(0,m.jsxs)(re,{children:[(0,m.jsx)(O,{text:(0,Ee.G)(o.deliveryType)}),o.location&&(c||v)&&(0,m.jsx)(ve,{showLocation:c,showVenue:v,location:o.location,as:g})]}),(h||y)&&(0,m.jsxs)(re,{children:[h&&o.language&&(0,m.jsx)(ye,{value:o.language,prefix:!0,as:g}),y&&(0,m.jsx)(pe,{ctaUrl:o.brochureCtaUrl,ctaText:o.brochureCtaText,newTab:o.openBrochureInNewTab,as:R})]}),j&&(null===(t=o.trainers)||void 0===t?void 0:t.length)>0&&(0,m.jsx)(re,{children:o.trainers.map((e,t)=>(0,m.jsx)(Ne,{uri:e.uri,displayName:e.displayName,as:P,prefix:!0},t))}),(0,m.jsxs)(J,{children:[(0,m.jsxs)("div",{children:[(0,m.jsx)(X,{children:o.primaryProductDiscountedPrice?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(S,{text:o.primaryProductDiscountedPrice}),(0,m.jsx)(N,{text:o.primaryProductFullPrice})]}):(0,m.jsx)(S,{text:o.primaryProductFullPrice})}),(null===(l=o.tier)||void 0===l?void 0:l.endDate)&&(null===(s=o.tier)||void 0===s?void 0:s.maxSaving)&&(0,m.jsx)(Se,{endDate:o.tier.endDate,maxSaving:o.tier.maxSaving,as:I})]}),(0,m.jsxs)("div",{className:"text-right",children:[(0,m.jsx)(Ie,{bookingOpen:o.bookingOpen,bookingClosedText:o.bookingClosedText,bookingLinkOverride:o.bookingLinkOverride,bookingButtonTextOverride:o.bookingButtonTextOverride,optionIndex:o.index,as:b}),x&&o.salesMessage&&(0,m.jsx)(G,{text:o.salesMessage})]})]})]})};function Be(){const{rows:e,filters:t}=(0,n.useContext)(d),l=t[r.FB.DELIVERY_TYPE],s=t[r.FB.LANGUAGE],o=t[r.FB.CURRENCY],i=l.shown||s.shown||o.shown;return(0,m.jsx)(Oe,{options:e,filter:i&&(0,m.jsx)(Ge,{}),renderOptionCard:e=>(0,m.jsx)(De,{option:e})})}const Pe=()=>{const{t:e}=(0,de.B)(),{section:{title:t,titleSize:l,type:o},showMore:i,handleShowMoreClick:r}=(0,n.useContext)(d),c=(0,n.useContext)(s.Dx),u=c.module.dStyles,p=c.module.vStyles;return(0,m.jsxs)("div",{className:"container",children:[(0,m.jsx)(a.A1,{content:t,as:l,visualStyles:p,displayStyles:u}),(0,m.jsx)("div",{className:"visible-md visible-lg",children:(0,m.jsx)(ke,{})}),(0,m.jsx)("div",{className:"visible-xs visible-sm",children:(0,m.jsx)(Be,{})}),i&&(0,m.jsx)(a.dI,{displayStyles:u,visualStyles:p,size:"medium",label:e("site.modules.course-option-display.cta.show-more.label"),onClick:r,ga4:{module_type:o}})]})};function Me(e){const{section:t}=e,l=(0,o.N)(i.O),r=(0,n.useContext)(s.Dx);if(!t.shown||!l.loaded)return null;const{courseOptionDisplayModule:d}=r.siteBuilderModules,c=d.displayStyles.DEFAULT,u=d.visualStyles.DEFAULT;return(0,m.jsx)(a.XN,{section:t,moduleTheme:{dStyles:c,vStyles:u},children:(0,m.jsx)(z,{"data-testid":"course-option-display-module-wrapper",className:"c-course-option-display-module",children:(0,m.jsx)(p,{section:t,children:(0,m.jsx)(Pe,{})})})})}},2359(e,t,l){"use strict";const n=(0,l(15897).Mz)([e=>e.coursePricing],e=>e);l.d(t,["O",0,n])},89881(e,t,l){var n=l(5919);e.exports=function(e){return e&&e.length?n(e):[]}}}]); 2//# sourceMappingURL=CourseOptionDisplayModule.275116b5.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.