PageSourceSearch

https://ntresourcesweek.com.au/static/js/SelectCourseOptionView.d3d8b424.chunk.js

js ntresourcesweek.com.au collected 2026-10-10 02:04:46 UTC 10,185 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[101,1887,4140,5983],{61952(e,t,s){s(76998);var o=s(13761),n=s(80369),r=s(23236),i=s(14285),c=s(16562),a=s(23446);const l=(0,n.C)()((0,o.Ng)(function(e){return{siteProducts:e.siteProducts,courseOptions:e.courseOptions,pageConfig:e.pageConfig}})((0,i.sw)(function(e){const{siteProducts:{bookingClosedMessage:t}={},courseOptions:{bookingClosedMessage:s}={},pageConfig:{location:o}={},brand:{secondaryColor:n}={},t:i}=e,l={backgroundColor:n},d=t||s;return(0,a.jsx)("div",{className:"c-booking-closed-section",style:l,children:(0,a.jsx)("div",{className:"container",children:(0,a.jsx)("div",{className:"row",children:(0,a.jsxs)("div",{className:"col-xs-12",children:[(0,a.jsx)("h1",{className:"c-booking-closed-section__heading",children:i("event.purchase.booking-closed")}),d&&(0,a.jsx)("div",{className:"c-booking-closed-section__message",children:(0,r.xk)(d,o)}),(0,a.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:()=>r});s(76998);var o=s(66395),n=s(23446);function r(e){let{header:t,body:s,footer:r}=e;return(0,n.jsx)(o.A,{section:{type:"payment_journey_message"},backgroundColor:"white",children:(0,n.jsx)("div",{className:"c-payment-journey-message",children:(0,n.jsxs)("div",{className:"container",children:[t&&(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("div",{className:"col-xs-12",children:t})}),s&&(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("div",{className:"col-xs-12",children:s})}),r&&(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("div",{className:"col-xs-12",children:r})})]})})})}},62325(e,t,s){s.r(t),s.d(t,{OrderExpiredView:()=>x,default:()=>h});s(76998);var o=s(13761),n=s(80369),r=s(36753),i=s(14285),c=s(2018),a=s(90349),l=s(92675),d=s(48501),u=s(23446);const p=(0,n.C)()((0,i.sw)(function(e){let{t:t,brand:{secondaryColor:s}}=e;return(0,u.jsx)(c.A,{header:(0,u.jsx)(a.A,{text:t("event.purchase.payment-expired"),style:{color:s}}),body:(0,u.jsx)(l.A,{text:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:t("event.purchase.payment-expired.1")}),(0,u.jsx)("p",{children:t("event.purchase.payment-expired.2")})]}),jsx:!0}),footer:(0,u.jsx)(d.A,{primary:{type:"BUY_LINK"},mode:"black"})})}));function x(e){let{t:t,siteHeader:s}=e;const{meta:{title:o}={},data:{title:n}={}}=s||{},i=o||n,c=i?`${t("event.purchase.payment-expired")} | ${i}`:t("event.purchase.payment-expired");return(0,u.jsx)(r.A,{helmet:{title:c},footerUpperHidden:!0,style:{backgroundColor:"#fff"},children:(0,u.jsx)(p,{})})}const h=(0,n.C)()((0,o.Ng)(function(e){return{siteHeader:e.siteHeader}})(x))},96509(e,t,s){s.r(t),s.d(t,{OrderNotFoundView:()=>h,default:()=>m});s(76998);var o=s(13761),n=s(80369),r=s(36753),i=s(82086),c=s(2018),a=s(90349),l=s(92675),d=s(48501),u=s(23446);const p=(0,n.C)()(function(e){let{t:t}=e;const s="[email protected]";return(0,u.jsx)(c.A,{header:(0,u.jsx)(a.A,{text:t("event.purchase.order-not-found")}),body:(0,u.jsx)(l.A,{text:(0,u.jsx)(i.x,{i18nKey:"event.purchase.order-not-found.instructions",values:{email:s},children:(0,u.jsx)("a",{href:`mailto:${s}`,children:s})}),jsx:!0}),footer:(0,u.jsx)(d.A,{primary:{type:"BUY_LINK"},mode:"black"})})});var x=s(61952);function h(e){const{t:t,siteHeader:{data:{booking:s,title:o}={},meta:{title:n}={}}={}}=e,i=n||o,c=i?`${t("event.purchase.order-not-found")} | ${i}`:t("event.purchase.order-not-found");return(0,u.jsx)(r.A,{helmet:{title:c},style:{backgroundColor:"#fff"},footerUpperHidden:!0,children:s?(0,u.jsx)(p,{}):(0,u.jsx)(x.A,{})})}const m=(0,n.C)()((0,o.Ng)(function(e){return{siteHeader:e.siteHeader}})(h))},30700(e,t,s){s.d(t,{l:()=>d});s(76998);var o=s(13761),n=s(80369),r=s(36753),i=s(61952),c=s(23446);const a=(0,n.C)()((0,o.Ng)(function(e){return{siteHeader:e.siteHeader}})(function(e){let{t:t,siteHeader:s}=e;const{meta:{title:o}={},data:{title:n}={}}=s||{},a=o||n,l=a?`${t("event.purchase.booking-closed")} | ${a}`:t("event.purchase.booking-closed");return(0,c.jsx)(r.A,{helmet:{title:l},footerUpperHidden:!0,children:(0,c.jsx)(i.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)(a,{}):(0,c.jsx)(e,{...t})}},42007(e,t,s){s.r(t),s.d(t,{SelectCourseOptionView:()=>O,default:()=>Y});var o=s(76998),n=s(13761),r=s(49113),i=s(75581),c=s(80369),a=s(23256),l=s(41677),d=s(6620),u=s(23236),p=s(36753),x=s(82086),h=s(25443),m=s.n(h),f=s(34156),g=s.n(f),v=s(14285),j=s(86273),b=s(11309),y=s(17317),N=s(99867),C=s(92927),_=s(23446);class k extends o.Component{constructor(e){var t;super(e),t=this,this.getLocation=e=>{const t=e.venueName||"",s=e.city||e.cityAsText||"",o=e.country||"";return`${t}${t&&s?", "+s:s}${(t||s)&&o?", "+o:o}`},this.getPeriod=(e,t)=>{const{i18n:s}=this.props,o="YYYY-MM-DD",n=e?m()(e,[o]):null,r=t?m()(t,[o]):null;let i="DD MMM YYYY";const c=(0,u.J6)(s.language);let a=n&&m().isMoment(n)?n.locale(c).format(i):"";const l=r&&m().isMoment(r)?r.locale(c).format("DD MMM YYYY"):"";if(a&&l){const e=n.format("M")===r.format("M");i="DD"+(n.format("Y")===r.format("Y")?e?"":" MMM":" MMM YYYY"),a=`${n.format(i)} - `}return`${a}${l}`},this.getOptionDate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{startDate:s,endDate:o,dateAsText:n,deliveryType:r=j.tw.ON_DEMAND}=e;return s?t.getPeriod(s,o):n||(0,b.G)(r)},this.state={loading:!1,optionIndex:1}}render(){const{courseOptions:e={},description:t,brand:{secondaryColor:s}={},t:n,ticketCount:r,deliveryType:i,isMultiCurrency:c,pageConfig:{location:a}={}}=this.props;let{optionIndex:l=!1}=this.state;const d=e.filter(e=>e.enabled);let p=null;1===d.length&&e.length>d.length&&(p=d[0],p.selected=!0,l=p.index);const h=r&&"DISTANCE"===i?"/purchase/view-basket":`/purchase/course-option/${l}`;return(0,_.jsxs)("section",{className:"c-select-course-option-form",children:[(0,u.le)(`\n          .c-form-box-input__box::before {\n            border-color: ${s};\n          }\n          .c-form-box-input--radio input:checked + .c-form-box-input__box::before {\n            background-color: ${s};\n          }\n          .c-form-box-input--checkbox input:checked + .c-form-box-input__box::before {\n            background-color: ${s};\n          }\n        `),(0,_.jsx)("div",{className:"container",children:(0,_.jsxs)("div",{className:"row",children:[(0,_.jsx)("div",{className:"col-xs-12 col-sm-6",children:(0,_.jsx)("div",{className:"c-select-course-option-form__page-content",children:(0,u.xk)(t,a)})}),(0,_.jsxs)("div",{className:"col-xs-12 col-sm-6",children:[(0,_.jsx)("div",{className:"c-select-course-option-form__heading uppercase",style:{color:s},children:"DISTANCE"===i&&c?"Select date and desired currency":n("site.purchase.select-option-title")}),p&&(0,_.jsx)(o.Fragment,{children:(0,_.jsxs)("div",{className:"expanded-box-content",children:[(0,_.jsx)(x.x,{i18nKey:"site.purchase.change-date-message",values:{0:this.getOptionDate(p)}}),(0,_.jsx)("div",{className:"clear-basket-btn",children:(0,_.jsx)(C.A,{look:"accent",size:"small",onClick:this.props.onClearBasket,className:"c-select-course-option-form__clear-basket",children:n("site.purchase.clear-order")})})]})}),e.length>0&&(0,_.jsxs)(_.Fragment,{children:[e.map(e=>(0,_.jsx)("div",{className:g()({"c-select-course-option-form__option":!0,"selected-option":l===e.index}),children:(0,_.jsxs)(y.iI,{type:"radio",value:e.index,checked:l===e.index,disabled:!e.enabled,onChange:()=>{this.setState({optionIndex:e.index})},color:s,children:[(0,_.jsxs)("div",{className:"row",children:[(0,_.jsxs)("div",{className:"col-xs-12 col-sm-7",children:[(0,_.jsx)("div",{className:"c-select-course-option-form__option-label",children:this.getOptionDate(e)}),(0,_.jsx)("div",{className:"c-select-course-option-form__option-location",children:this.getLocation(e.courseLocation)})]}),(0,_.jsx)("div",{className:"col-xs-12 col-sm-5",children:(0,_.jsx)("div",{className:"c-select-course-option-form__option-
1price",children:e.firstPrimaryProductPrice})})]}),e.tier.maxSaving&&e.tier.endDate&&(0,_.jsx)("div",{className:"c-select-course-option-form__option-saving",children:(0,_.jsx)(x.x,{i18nKey:"event.purchase.save-by-date",values:{0:e.tier.maxSaving,1:e.tier.endDate}})})]})},e.index)),(0,_.jsx)("div",{className:"row",children:(0,_.jsx)("div",{className:"col-xs-12",children:null!==l?(0,_.jsx)(N.A,{to:h,type:"button",look:"accent",size:"large",event:!0,className:"c-button c-button--large c-select-course-option-form__submit",children:n("event.continue")}):(0,_.jsx)("div",{className:"uppercase c-select-course-option-form__disabled-btn",children:n("event.continue")})})})]})]})]})})]})}}const A=(0,c.C)()((0,n.Ng)(function(e){return{pageConfig:e.pageConfig,ticketCount:(0,d.c0)(e)}})((0,v.sw)((0,r.y)(k))));var M=s(62325),D=s(30700);class O extends o.Component{constructor(){super(...arguments),this.onClearBasket=()=>{const{pageConfig:{cookieSitePath:e}={}}=this.props,t=(0,a.A)();this.props.clearBasket(),this.props.cookies.set("basket_id",t,{path:e,expires:new Date(Date.now()+864e5),secure:(0,u.H)()}),this.fetchCourseOptions(t)}}fetchCourseOptions(e){this.props.fetchCourseOptions(e)}render(){const{courseOptions:{statusCode:e,data:{options:t=[],description:s,multiCurrency:o}={}}={},siteHeader:{meta:{title:n}={}}={},options:{data:{deliveryType:r}={}}={},t:i}=this.props;return 410===e?(0,_.jsx)(M.default,{}):(0,_.jsx)(p.A,{footerUpperHidden:!0,helmet:{title:`${i("site.purchase.select-option-title")} | ${n}`},children:(0,_.jsx)(A,{courseOptions:t,description:s,onClearBasket:this.onClearBasket,deliveryType:r,isMultiCurrency:o})})}}const Y=(0,c.C)()((0,n.Ng)(function(e){return{courseOptions:e.courseOptions,siteHeader:e.siteHeader,pageConfig:e.pageConfig,options:e.options,booking:e.courseOptions}},function(e){return{fetchCourseOptions:t=>e((0,l.Wj)(t)),clearBasket:()=>e((0,d.uJ)())}})((0,r.y)((0,D.l)((0,i.A)(O)))))},61998(e,t,s){var o=s(24994);t.A=void 0;var n=o(s(27198)),r=s(23446);t.A=(0,n.default)((0,r.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")}}]);
2//# sourceMappingURL=SelectCourseOptionView.d3d8b424.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.