1(self.webpackChunkeleven_miles_erebus=self.webpackChunkeleven_miles_erebus||[]).push([[1945],{2694:function(e,t,n){"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5556:function(e,t,n){e.exports=n(2694)()},6925:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7062:function(e,t,n){"use strict";n.r(t);var r=n(6540),i=n(3046),o=n(6597),a=n(9904),s=n(7661),c=n(4390),l=n(8788),u=n(4187);const p=({children:e})=>{const t=(0,r.useState)({...l.X});return r.createElement(c.F.Provider,{value:t},e)},d=({seminarAddictions:e,seminarType:t,seminarLocations:n,couponCode:p,priceOverride:d,overrideText:m,overrideOriginalText:g,form:f})=>{const[y,v]=(0,r.useContext)(c.F),[h,T]=(0,r.useState)(!0),[_,O]=(0,r.useState)(!0),[b,C]=(0,r.useState)(!0),[S,E]=(0,r.useState)(null),[x,w]=(0,r.useState)([]),[P,k]=(0,r.useState)(1),[A,R]=(0,r.useState)(0),[L,z]=(0,r.useState)({}),F=(0,r.useRef)(null);(0,r.useEffect)(()=>{(async()=>{const e=await(0,u.Ui)(),t=(0,u.Xj)(!0,!1,e.country);l.X.supportedTimeZones.includes(t)?e.timezone=t:e.timezone="UTC",e.timezone in l.X.standardTimeZones&&(e.timezone=l.X.standardTimeZones[e.timezone]);let n={...y,geo:e};v(n),O(!1)})()},[]),(0,r.useEffect)(()=>{_||(async()=>{const e=new o.A({type:"bookingjourney",perPage:1,page:1,sort:"",distance:0}),t=await e.getResults();if(t.results.length>0){E(t.results[0]);let e={...y,data:t.results[0]};v(e)}})()},[_,y?.geo]),(0,r.useEffect)(()=>{null!==S&&(async()=>{T(!0),b||null===F||F.current.scrollIntoView({behavior:"smooth"});const r=e,i="both"===t?null:"online"===t,a=n,s="geo"in y?y.geo.currency:"GBP",c="geo"in y?y.geo.timezone:"GMT",l=S?.seminar_location_id,u=new o.A({type:"seminar",addiction:r,online:i,group:!0,perPage:10,page:P,sort:"soonest",currency:s,timeZone:c,centreLocations:a,headOfficeId:l}),p=await u.getResults();p.results.length>0&&(w(p.results),R(p.total),z(p.pagination),q(p.results)),T(!1),C(!1)})()},[S,P]);const I=e=>{if(e.addictions.length<1)return"Seminar";const t=e.addictions[0]?.quit_title&&e.addictions[0]?.quit_title?.length>0?e.addictions[0]?.quit_title:e.addictions[0]?.title;return t.length<1?"Seminar":`${t} Seminar`},q=e=>{const t=document.querySelector('[data-behaviour="seminar-listings-card-paments"]');if(!t)return;let n=!1;n=!(!d||0!=parseFloat(m.replace(/[^\d\.]/g,""))&&"free"!=m.toLowerCase())||e.reduce((e,t)=>e||0==parseFloat(t.price.replace(/[^\d\.]/g,""))||void 0,!1),t.style.display=n?"none":"block"};return r.createElement("div",{className:"seminar-listing__results",ref:F},h&&r.createElement(i.A,null),!h&&x.length>0&&r.createElement(r.Fragment,null,x.map((e,t)=>r.createElement(a.A,{key:`product-item-${t}`,item:e,type:e.online?"live-group":"group",preferType:e.online?"online":"location",titleOverride:I(e),couponCode:p,priceOverride:d,overrideText:m,overrideOriginalText:g,form:f})),r.createElement(s.A,{perPage:10,totalCount:A,onPrevChange:()=>{L.current>1&&L.current<=L.total&&k(L.current-1)},onNextChange:()=>{L.current<L.total&&k(L.current+1)},paginationVars:L,showCount:!0})))};t.default=({seminarAddictions:e,seminarType:t,seminarLocations:n,couponCode:i,priceOverride:o,overrideText:a,overrideOriginalText:s,form:c})=>r.createElement(p,null,r.createElement(d,{seminarAddictions:e,seminarType:t,seminarLocations:n,couponCode:i,priceOverride:o,overrideText:a,overrideOriginalText:s,form:c}))}}]); 2//# sourceMappingURL=1945.ddfcbe841e818d00d030.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.