1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4159,7104,8785],{35689:function(e,t,n){"use strict";var r=n(67294),o=n(51649),i=n(8193),s=n(7775),a=n(32374),c=n(79697),l=n(68652),u=n(68683),d=n(8454),g=n(76116),f=n(85893),m=function(e,t){var n=(0,s.Z)(e.content.children,{variant:"sections-container"}),r=!1;return 0===(0,a.Z)(n.children,{id:t})&&(r=!0),r},p=function(e,t){var n=(0,s.Z)(e.content.children,{variant:"sections-container"}),r=!1;return(0,a.Z)(n.children,{id:t})===n.length&&(r=!0),r},h=function e(t,n,r){if(t[n]===r)return!0;if(t.children&&t.children.length>0){var o=!1;return t.children.map((function(t){e(t,n,r)&&(o=!0)})),o}return!1};t.Z=function(e){var t=e.selectedPage,n=e.selectedSectionToEdit,b=e.currentSectionID,w=e.updateSelectedPage,x=e.onChangeSectionHOC,_=e.getSelectedEditingSection,O=e.updateMainContainerState,S=e.selectedLanguage,y=(0,r.useState)(!1),v=y[0],j=y[1],E=(0,r.useState)({}),Z=E[0],A=E[1];(0,r.useEffect)((function(){(0,c.Z)(e.profile)||((0,u.Z)("").indexOf("proof-point-suite")>-1||"Super Admin"===e.profile.role)&&j(!0)}),[e.profile]),(0,r.useEffect)((function(){var e=(0,s.Z)(t.content.children,{variant:"sections-container"});e&&A((0,s.Z)(e.children,{id:b})||(0,s.Z)(t.content.children,{id:b}))}),[b,t]);var N=function(e){var t=e.children,n=e.message,o=(0,r.useState)(!1),i=o[0],s=o[1];return(0,f.jsxs)("div",{style:{display:"block",position:"relative"},onMouseEnter:function(){return s(!0)},onMouseLeave:function(){return s(!1)},children:[(0,f.jsxs)("div",{children:[" ",t," "]}),(0,f.jsx)("div",{style:{display:i&&n?"block":"none",background:"#000",position:"absolute",top:"50%",right:"110%",transform:"translateY(-50%)",color:"#fff",whiteSpace:"nowrap",padding:"2px 10px",borderRadius:"5px"},children:n||""})]})};return(0,f.jsxs)("div",{style:{position:"sticky",top:"125px",width:"60px",background:"rgba(0,0,0,0.4)",padding:"10px",zIndex:"9999",display:"flex",flexDirection:"column"},children:[h(e.selectedSectionToEdit,"type","courseplan-calendar")&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(N,{message:g.Z.EDIT_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){O("showCourseplanModal",!0)},children:(0,f.jsx)(o.VUP,{})})}),(0,f.jsx)(N,{message:g.Z.ADD_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){x("showSectionsPicker",!0)},children:(0,f.jsx)(o.D0w,{})})})]}),e.from&&"header-section"===e.from&&(0,f.jsx)(N,{message:g.Z.EDIT_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){_(e.selectedPage.id,e.selectedPage.content.children[0].id,!0)},children:(0,f.jsx)(o.VUP,{})})}),e.from&&"header-menu"===e.from&&(0,f.jsx)(N,{message:g.Z.EDIT_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){_(e.selectedPage.id,e.selectedSectionToEdit.id,!0),x("focusedSection","")},children:(0,f.jsx)(o.VUP,{})})}),e.from&&"empty"===e.from&&(0,f.jsx)(N,{message:g.Z.ADD_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){x("showSectionsPicker",!0)},children:(0,f.jsx)(o.D0w,{})})}),e.from&&("header-blank-section-container"===e.from||"custom-desktop-header"===e.from)&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(N,{message:g.Z.DELETE_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",background:"red",color:"#fff",width:"100%"},onClick:function(){O("showConfirmDelete",!0)},children:(0,f.jsx)(o.Xy$,{})})}),(0,f.jsx)(N,{message:g.Z.EDIT_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){_(e.selectedPage.id,e.selectedSectionToEdit.id)},children:(0,f.jsx)(o.VUP,{})})}),e.selectedPage.client_id>0&&(0,f.jsx)(N,{message:g.Z.CONFIGURE_FAIRS[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){return x("showFairsConfig",!0)},children:(0,f.jsx)(o.rzH,{})})}),(0,f.jsx)(N,{message:g.Z.CODE_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){x("showJsonEditor",!0)},children:(0,f.jsx)(o.BES,{})})}),v&&(0,f.jsx)(N,{message:g.Z.RESET_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){O("showConfirmResetID",!0)},children:(0,f.jsx)(o.Fer,{})})})]}),(!e.from||void 0===e.from)&&!h(e.selectedSectionToEdit,"type","courseplan-calendar")&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(N,{message:g.Z.MOVE_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",width:"100%"},disabled:m(t,b),onClick:function(){var e=(0,l.Z)(t),n=(0,s.Z)(e.content.children,{variant:"sections-container"}),r=(0,a.Z)(n.children,{id:b});return n.children=(0,d.Z)(n.children,r,r-1),w(t.site_id,t.id,e)},children:(0,f.jsx)(o.yTe,{})})}),(0,f.jsx)(N,{message:g.Z.MOVE_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",width:"100%"},disabled:p(t,b),onClick:function(){var e=(0,l.Z)(t),n=(0,s.Z)(e.content.children,{variant:"sections-container"}),r=(0,a.Z)(n.children,{id:b});return n.children=(0,d.Z)(n.children,r,r+1),w(t.site_id,t.id,e)},children:(0,f.jsx)(o.RYA,{})})}),(0,f.jsx)(N,{message:g.Z.DELETE_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",background:"red",color:"#fff",width:"100%"},onClick:function(){O("showConfirmDelete",!0)},children:(0,f.jsx)(o.Xy$,{})})}),(0,f.jsx)(N,{message:g.Z.ADD_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){x("showSectionsPicker",!0)},children:(0,f.jsx)(o.D0w,{})})}
1),(0,f.jsx)(N,{message:g.Z.DUPLICATE_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){O("showConfirmDuplicate",!0)},children:(0,f.jsx)(o.Odh,{})})}),(0,f.jsx)(N,{message:g.Z.EDIT_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){_(e.selectedPage.id,e.selectedSectionToEdit.id)},children:(0,f.jsx)(o.VUP,{})})}),(0,f.jsx)(N,{message:Z.isHidden?g.Z.SHOW_SECTION[S]:g.Z.HIDE_SECTION[S],children:(0,f.jsx)("button",{className:"btn d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%",backgroundColor:Z.isHidden?"#429bc4":"#dc3545"},onClick:function(){var e=(0,l.Z)(t),n=(0,s.Z)(e.content.children,{variant:"sections-container"}),r=(0,s.Z)(n.children,{id:b});return r.isHidden=!r.isHidden,w(t.site_id,t.id,e)},children:Z.isHidden?(0,f.jsx)(i.Zju,{}):(0,f.jsx)(i.I0d,{})})}),e.selectedPage.client_id>0&&(0,f.jsx)(N,{message:g.Z.CONFIGURE_FAIRS[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){return x("showFairsConfig",!0)},children:(0,f.jsx)(o.rzH,{})})}),!n.schema&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(N,{message:g.Z.CODE_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){x("showJsonEditor",!0)},children:(0,f.jsx)(o.BES,{})})}),v&&(0,f.jsx)(N,{message:g.Z.RESET_SECTION[S],children:(0,f.jsx)("button",{className:"btn btn-primary d-flex align-items-center justify-content-center p-2",style:{marginBottom:"5px",color:"#fff",width:"100%"},onClick:function(){O("showConfirmResetID",!0)},children:(0,f.jsx)(o.Fer,{})})})]})]})]})}},80120:function(e,t,n){"use strict";n(67294);var r=n(85893);t.Z=function(){return(0,r.jsx)("div",{style:{alignItems:"center",display:"flex",height:"100vh",justifyContent:"center",width:"100vw",textAlign:"center",lineHeight:"1.6rem",position:"fixed",backgroundColor:"rgba(0,0,0,0.3)",top:0,left:0,zIndex:9999},children:(0,r.jsx)("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",padding:"0"},children:(0,r.jsx)("div",{className:"text-center",children:(0,r.jsx)("div",{class:"spinner-border text-primary",role:"status",children:(0,r.jsx)("span",{class:"sr-only",children:"Loading..."})})})})})}},33796:function(e,t,n){"use strict";var r=n(59499),o=n(67294),i=n(45046),s=n(32701),a=n(10684),c=n(17834),l=n(30653),u=n(9813),d=n(10371),g=n(36561),f=n(80120),m=n(76116),p=n(53670),h=n(68683),b=n(85893);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=(0,d.ZP)((function(e){var t,n,r,d=(0,o.useState)("LOGIN"),w=d[0],_=d[1],O=(0,o.useState)(""),S=O[0],y=O[1];(0,o.useEffect)((function(){e.showLoginModal||(_("LOGIN"),e.memberAreaSettings.is_use_egym_login&&y(""))}),[e.showLoginModal]),(0,o.useEffect)((function(){window.sessionStorage.setItem("loginUrl",window.location.href)}),[]),(0,o.useEffect)((function(){e.isGetProfileFailed&&window.location.href.indexOf("".concat(window.location.origin,"/member"))>-1&&e.onChangeMemberAuthHOC("showLoginModal",!0)}),[e.isGetProfileFailed]);var v=function(t){"Enter"===t.key&&e.authMember(e.info,e.selectedLanguage)};return(0,b.jsxs)(i.Z,{size:e.memberAreaSettings.is_use_egym_login?"lg":"md",isOpen:e.showLoginModal,children:[(0,b.jsx)(s.Z,{toggle:function(){-1===window.location.href.indexOf("register")&&window.location.href.indexOf("".concat(window.location.origin,"/member"))>-1?window.location.href=window.location.origin:e.onChangeMemberAuthHOC("showLoginModal",!1)},children:window.location.href.indexOf("".concat(window.location.origin,"/member"))>-1&&!e.site.has_aciso_campaign&&m.Z.LOGIN_TEXT[e.selectedLanguage]}),(0,b.jsxs)(a.Z,{className:"p-0",children:[(0,b.jsx)("style",{children:".btn:focus { box-shadow: none !important; }"}),(0,b.jsxs)("div",{className:"login",children:[(0,b.jsx)("div",{children:(0,b.jsxs)("div",{className:"login-panel-modal",style:e.site.has_aciso_campaign?{paddingTop:"20px"}:{},children:[""!==e.success&&(0,b.jsx)(c.Z,{color:"success",children:e.success}),""!==e.error&&(0,b.jsx)(c.Z,{color:"danger",children:e.error}),"LOGIN"===w?!e.site.has_aciso_campaign&&(0,b.jsx)("h1",{className:"member-login-panel-title",children:(e.memberAreaSettings.is_use_egym_login&&""!==S||!e.memberAreaSettings.is_use_egym_login)&&m.Z.WELCOME_TO_MEMBER_AREA[e.selectedLanguage]}):(0,b.jsx)("h1",{className:"member-login-panel-title",children:m.Z.FORGOT_PASSWORD[e.selectedLanguage]}),"LOGIN"===w&&e.site.has_aciso_campaign&&!e.memberAreaSettings.is_use_egym_login&&(0,b.jsxs)("div",{className:"w-100 d-flex align-items-center flex-column",children:[(0,b.jsx)("img",{className:"mb-4",src:null===(t=e.siteSettings.header_image)||void 0===t?void 0:t.url,style:{width:"300px"}}),e.site.is_show_am_registration_btn?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"mb-3",children:m.Z.REGISTER_YOUR_ACCOUNT_NOW_MESSAGE[e.selectedLanguage]}),(0,b.jsx)("button",{id:"register-button",style:{transition:"all 0.3s linear",border:"none",color:e.memberAreaSettings.login_button_text_color,background:e.memberAreaSettings.login_button_color,":hover":{color:e.memberAreaSettings.login_button_text_hover_color,background:e.memberAreaSettings.login_button_hover_color},borderRadius:"5px",padding:"2px 20px"},onClick:function(){window.location.href="/member/register"},children:m.Z.REGISTER[e.selectedLanguage]},"register-button")]}):(0,b.jsx)("span",{className:"mb-3",children:m.Z.YOUR_COACH_HAS_ALREADY_REGISTERED_YOU[e.selectedLanguage]}),(0,b.jsx)("hr",{style:{width:"100%",backgroundColor:"#000"}}),m.Z.LOGIN[e.selectedLanguage]]}),"RESET"===w&&(0,b.jsx)("p",{children:m.Z.FORGOT_PASSWORD_HINT[e.
1selectedLanguage]}),e.memberAreaSettings.is_use_egym_login?(0,b.jsxs)(b.Fragment,{children:[""===S&&(0,b.jsxs)("div",{className:"text-center",children:[e.siteSettings.header_image&&!g.Z.isEmpty(e.siteSettings.header_image.url)&&(0,b.jsx)("img",{src:e.siteSettings.header_image.url,style:{width:"30%"}}),(0,l.ZP)(m.Z.EGYM_LOGIN_TEXT_UPPER[e.selectedLanguage]||""),(0,b.jsx)("button",{id:"member-login-button",className:"btn d-block mx-auto my-4",style:{transition:"all 0.3s linear",border:"none",color:e.memberAreaSettings.login_button_text_color,background:e.memberAreaSettings.login_button_color,":hover":{color:e.memberAreaSettings.login_button_text_hover_color,background:e.memberAreaSettings.login_button_hover_color}},onClick:function(){return window.location.href="".concat((0,h.Z)("").indexOf("staging")>-1?"https://firebase-login-service.ext-1.test.co.egym.coffee/login":"https://id.egym.com/login","?clientId=").concat(e.site.center.egym_oauth_client_id,"&callbackUrl=").concat((0,p.ud)(window.location.host),"/member/login/egym")},children:g.Z.isEmpty(null===(n=e.memberAreaSettings.login_button_text)||void 0===n?void 0:n[e.selectedLanguage])?m.Z.MEMBERS_LOGIN[e.selectedLanguage]:null===(r=e.memberAreaSettings.login_button_text)||void 0===r?void 0:r[e.selectedLanguage]},"member-login-button"),(0,l.ZP)(m.Z.EGYM_LOGIN_TEXT_LOWER[e.selectedLanguage]||""),(0,b.jsx)("hr",{}),(0,b.jsx)("p",{children:m.Z.LOGIN_VIA[e.selectedLanguage]}),(0,b.jsx)("button",{id:"trainer-login-button",className:"btn",href:"javascript:void(0)",style:{background:"none",transition:"all 0.3s linear",border:"none",color:e.memberAreaSettings.login_button_color,":hover":{color:e.memberAreaSettings.login_button_hover_color,textDecoration:"underline"}},onClick:function(){return y("expertLogin")},children:m.Z.LOGIN_FOR_TRAINER[e.selectedLanguage]},"trainer-login-button")]}),"expertLogin"===S&&(0,b.jsxs)(b.Fragment,{children:["LOGIN"===w&&(0,b.jsx)("h1",{className:"member-login-panel-title",children:m.Z.LOGIN_FOR_TRAINER[e.selectedLanguage]}),(0,b.jsx)(u.Z,{label:m.Z.EMAIL[e.selectedLanguage],value:e.info.email,onChange:function(t){var n=g.Z.cloneDeep(e.info);n.email=t.target.value,e.onChangeMemberAuthHOC("info",n)},type:"email",className:"kws-input mb-15",onKeyPress:function(e){return v(e)}}),"LOGIN"===w&&(0,b.jsx)(u.Z,{label:m.Z.PASSWORD[e.selectedLanguage],value:e.info.password,onChange:function(t){var n=g.Z.cloneDeep(e.info);n.password=t.target.value,e.onChangeMemberAuthHOC("info",n)},type:"password",className:"kws-input mb-30",onKeyPress:function(e){return v(e)}}),(0,b.jsx)("button",{id:"login-button",className:"btn mr-2",style:x({transition:"all 0.3s linear",border:"none",color:e.memberAreaSettings.login_button_text_color,background:e.memberAreaSettings.login_button_color,":hover":{color:e.memberAreaSettings.login_button_text_hover_color,background:e.memberAreaSettings.login_button_hover_color}},e.site.has_aciso_campaign?{borderRadius:"5px",padding:"2px 50px"}:{}),onClick:function(){return"LOGIN"===w?e.authMember(e.info,e.selectedLanguage):e.forgotPassword({email:e.info.email,domain:window.location.host})},children:"LOGIN"===w?m.Z.LOGIN[e.selectedLanguage]:m.Z.SEND_EMAIL[e.selectedLanguage]},"login-button"),(0,b.jsx)("button",{id:"forgot-password-button",className:"btn",style:{background:"none",transition:"all 0.3s linear",border:"none",color:e.memberAreaSettings.login_button_color,":hover":{color:e.memberAreaSettings.login_button_hover_color}},onClick:function(){return _("LOGIN"===w?"RESET":"LOGIN")},children:m.Z["LOGIN"===w?"FORGOT_PASSWORD":"BACK_TO_LOGIN"][e.selectedLanguage]},"forgot-password-button"),(0,b.jsx)("button",{id:"back-button",className:"btn",style:{background:"none",transition:"all 0.3s linear",border:"none",color:e.memberAreaSettings.login_button_color,":hover":{color:e.memberAreaSettings.login_button_hover_color,textDecoration:"underline"}},onClick:function(){y(""),_("LOGIN")},children:m.Z.BACK[e.selectedLanguage]},"back-button")]})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u.Z,{label:m.Z.EMAIL[e.selectedLanguage],value:e.info.email,onChange:function(t){var n=g.Z.cloneDeep(e.info);n.email=t.target.value,e.onChangeMemberAuthHOC("info",n)},type:"email",className:"kws-input mb-15",onKeyPress:function(e){return v(e)}}),"LOGIN"===w&&(0,b.jsx)(u.Z,{label:m.Z.PASSWORD[e.selectedLanguage],value:e.info.password,onChange:function(t){var n=g.Z.cloneDeep(e.info);n.password=t.target.value,e.onChangeMemberAuthHOC("info",n)},type:"password",className:"kws-input mb-30",onKeyPress:function(e){return v(e)}}),(0,b.jsx)("button",{id:"login-button",className:"btn mr-2",style:x({transition:"all 0.3s linear",border:"none",color:e.memberAreaSettings.login_button_text_color,background:e.memberAreaSettings.login_button_color,":hover":{color:e.memberAreaSettings.login_button_text_hover_color,background:e.memberAreaSettings.login_button_hover_color}},e.site.has_aciso_campaign?{borderRadius:"5px",padding:"2px 50px"}:{}),onClick:function(){return"LOGIN"===w?e.authMember(e.info,e.selectedLanguage):e.forgotPassword({email:e.info.email,domain:window.location.host})},children:"LOGIN"===w?m.Z.LOGIN[e.selectedLanguage]:m.Z.SEND_EMAIL[e.selectedLanguage]},"login-button"),(0,b.jsx)("button",{id:"forgot-password-button",className:"btn",style:{transition:"all 0.3s linear",border:"none",color:e.memberAreaSettings.login_button_color,":hover":{color:e.memberAreaSettings.login_button_hover_color,textDecoration:"underline"}},onClick:function(){return _("LOGIN"===w?"RESET":"LOGIN")},children:m.Z["LOGIN"===w?"FORGOT_PASSWORD":"BACK_TO_LOGIN"][e.selectedLanguage]},"forgot-password-button")]})]})}),e.onLoadMemberAuth&&(0,b.jsx)(f.Z,{})]})]})]})}))},25058:function(e,t,n){"use strict";var r=n(82262),o=n(92777),i=n(10748),s=n(45959),a=n(63553),c=n(37247),l=n(59499),u=n(67294),d=n(9669),g=n.n(d),f=n(68683),m=n(88658),p=n(4196),h=n(76116),b=n(85893);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?w(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.Z)(e);if(t){var o=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.Z)(this,n)}}t.Z=function(e){var t=function(t){(0,s.Z)(a,t);var n=_(a);function a(){var t;(0,o.Z)(this,a);for(var r=arguments.length,s=new Array(r),c=0;c<r;c++)s[c]=arguments[c];return t=n.call.apply(n,[this].concat(s)),(0,l.Z)((0,i.Z)(t),"state",{loading:!1,error:"",success:"",info:{email:"",password:""},showLoginModal:!1,memberToken:""}),(0,l.Z)((0,i.Z)(t),"load",(function(e){return t.setState({loading:e})})),(0,l.Z)((0,i.Z)(t),"onChangeMemberAuthHOC",(function(e,n){return t.setState((0,l.Z)({},e,n))})),(0,l.Z)((0,i.Z)(t),"authMember",(function(e,n){t.load(!0),g().post("".concat((0,f.Z)(window.location.origin),"/member/login"),x(x({},e),{},{center_id:t.props.site.center.id}),{headers:{"Accept-Language":n||""}}).then((function(e){t.load(!1),window.localStorage.setItem("ARK_MEMBER_TOKEN",e.data.token),-1===window.location.href.indexOf("register")&&window.location.href.indexOf("".concat(window.location.origin,"/member"))>-1?window.location.reload():window.location.href="".concat(window.location.origin,"/member/homepage")})).catch((function(e){if(t.load(!1),e.response.data.Errors){var n="";"string"===typeof e.response.data.Errors?n=e.response.data.Errors:Object.values(e.response.data.Errors).map((function(e){n+="".concat(e,". ")})),t.setState({error:n})}else t.setState({error:e.response.data.Error})}))})),(0,l.Z)((0,i.Z)(t),"forgotPassword",(function(e){return(0,m.tq)("member/reset_password",x(x({},e),{},{center_id:t.props.site.center.id}),t.forgotPasswordSuccess,t.forgotPasswordError,t.load,t.props.selectedLanguage)})),(0,l.Z)((0,i.Z)(t),"forgotPasswordSuccess",(function(e){t.setState({success:e.msg,error:""}),window.localStorage.setItem("ARK_MEMBER_RESET_PASSWORD_TOKEN",e)})),(0,l.Z)((0,i.Z)(t),"forgotPasswordError",(function(e){return t.setState({error:e,success:""})})),(0,l.Z)((0,i.Z)(t),"updateMemberVerificationStatus",(function(e){return(0,p.qb)("/aciso_invitation_code_verification/".concat(e),{},t.updateMemberVerificationStatusSuccess,t.updateMemberVerificationStatusError,t.load,window.localStorage.getItem("ARK_SITE_LANGUAGE")||"de")})),(0,l.Z)((0,i.Z)(t),"updateMemberVerificationStatusSuccess",(function(){return t.setState({showLoginModal:!0,success:h.Z.YOU_HAVE_SUCCESSFULLY_REGISTERED.de},(function(){return history.pushState({},null,"/member/homepage")}))})),(0,l.Z)((0,i.Z)(t),"updateMemberVerificationStatusError",(function(e){return t.setState({error:e,showLoginModal:!0},(function(){return history.pushState({},null,"/member/homepage")}))})),(0,l.Z)((0,i.Z)(t),"render",(function(){return(0,b.jsx)(e,x(x({},t.props),{},{onChangeMemberAuthHOC:t.onChangeMemberAuthHOC,authMember:t.authMember,forgotPassword:t.forgotPassword,updateMemberVerificationStatus:t.updateMemberVerificationStatus,info:t.state.info,error:t.state.error,success:t.state.success,onLoadMemberAuth:t.state.loading,showLoginModal:t.state.showLoginModal,memberToken:t.state.memberToken}))})),t}return(0,r.Z)(a)}(u.Component);return t}},25683:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return N},default:function(){return I}});var r=n(4808),o=n(59499),i=n(67294),s=n(36561),a=n(21658),c=n(18819),l=n(82262),u=n(92777),d=n(10748),g=n(45959),f=n(63553),m=n(37247),p=n(4196),h=n(85893);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?b(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,m.Z)(e);if(t){var o=(0,m.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,f.Z)(this,n)}}var _=function(e){var t=function(t){(0,g.Z)(r,t);var n=x(r);function r(){var t;(0,u.Z)(this,r);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return t=n.call.apply(n,[this].concat(a)),(0,o.Z)((0,d.Z)(t),"state",{sections:[]}),(0,o.Z)((0,d.Z)(t),"load",(function(e){return t.setState({loading:e})})),(0,o.Z)((0,d.Z)(t),"getSelectedSection",(function(e,n){return(0,p.dX)("/pages/".concat(e,"/sections/").concat(n),t.getSelectedSectionSuccess,t.getSelectedSectionError,t.load)})),(0,o.Z)((0,d.Z)(t),"getSelectedSectionSuccess",(function(e){var n=s.Z.cloneDeep(t.state.sections);n.push(e.content),t.setState({sections:n})})),(0,o.Z)((0,d.Z)(t),"getSelectedSectionError",(function(){})),(0,o.Z)((0,d.Z)(t),"render",(function(){return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(e,w(w({},t.props),{},{onLoadSectionsHOC:t.state.loading,sections:t.state.sections,getSelectedSection:t.getSelectedSection}))})})),t}return(0,l.Z)(r)}(i.Component);return t},O=n(19081),S=n.n(O),y=n(51252),v=n(76116),j=function(e){var t=e.selectedLanguage,n=e.memberAreaSettings,r=s.Z.findIndex(n.header_settings,{page:"Courses in Studio"});return(0,h.jsx)(S(),{component:"div",transitionName:"TabsAnimation",transitionAppear:!0,transitionAppearTimeout:0,transitionEnter:!1,transitionLeave:!1,children:(0,h.jsx)("div",{className:"banner-container",style:{background:r>-1?"url(".concat(n.header_settings[r].banner_image_url,") no-repeat top center"):"url(https://s3-eu-central-1.amazonaws.com/ark.staging.assets/shared_media_drive/076a0c97d09cf1a0ec3e19c7f2529f2b/original/gym.png) no-repeat top center"},children:(0,h.jsxs)(y.Z,{md:7,children:[(0,h.jsx)("h1",{className:"heading",children:v.Z.COURSES_IN_STUDIO[t]}),(0,h.jsx)("p",{children:r>-1?n.header_settings[r].banner_description[t]:""})]})})})};function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=_((function(e){var t=(0,i.useState)(0),n=t[0],r=t[1],o=(0,i.useState)({}),l=o[0],u=o[1];(0,i.useEffect)((function(){if(!s.Z.isEmpty(e.selectedPage)&&e.selectedPage.content){var t=s.Z.find(e.selectedPage.content.children,{variant:"sections-container"});t&&(t.children.map((function(t){return e.getSelectedSection(e.selectedPage.id,t.id)})),t.children.length>0?r(t.children.length):d(e.selectedPage.content.children))}}),[e.selectedPage]),(0,i.useEffect)((function(){n>0&&n===e.sections.length&&d(e.sections)}),[n,e.sections]);var d=function e(t){t.map((function(t){return"courseplan-calendar"===t.type?u(t):t.children&&t.children.length>0?e(t.children):void 0}))};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(j,Z({},e)),(0,h.jsxs)("div",{className:"py-3",children:[!s.Z.isEmpty(l)&&!s.Z.isEmpty(e.site)&&(0,h.jsx)(c.default,Z(Z({item:l},l),e),l.id),s.Z.isEmpty(l)&&(0,h.jsx)(a.Z,{})]})]})})),N=!0,I=function(e){return(0,h.jsx)(r.Z,{pageTitle:"COURSE_PROGRAM",children:(0,h.jsx)(A,{selectedPage:e.selectedPage})})}},4196:function(e,t,n){"use strict";n.d(t,{HG:function(){return m},SI:function(){return d},SO:function(){return g},dX:function(){return u},qb:function(){return f}});var r=n(50029),o=n(87794),i=n.n(o),s=n(9669),a=n.n(s),c=n(68683),l=n(51944),u=function(e,t,n,o,s){return o(!0),a().get("".concat((0,c.Z)(window.location.origin),"/api/v1").concat(e),{headers:{"Access-Control-Allow-Origin":"*",Authorization:(0,l.nt)(),"Accept-Language":s||""}}).then(function(){var e=(0,r.Z)(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n.data);case 2:o(!1);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){var t;null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&t.status?n(e.response.data.message||e.response.data.Error||e.response.data.Errors||e.response.data):e&&e.message?n(e.message):n("You are disconnnected from the internet, please reconnect to use ARK site. If problem persists, please contact the system admin."),o(!1)}))},d=function(e,t,n,r,o){return r(!0),a().get("".concat((0,c.Z)(window.location.origin),"/api/v1").concat(e),{headers:{"Access-Control-Allow-Origin":"*",Authorization:(0,l.nt)(),"Accept-Language":
1o||""}}).then((function(e){t(e.data),r(!1)})).catch((function(e){var t;null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&t.status?n(e.response.data.message||e.response.data.Error||e.response.data.Errors||e.response.data):e&&e.message?n(e.message):n("You are disconnnected from the internet, please reconnect to use ARK site. If problem persists, please contact the system admin."),r(!1)}))},g=function(e,t,n,o,s,u){return s(!0),a().post("".concat((0,c.Z)(window.location.origin),"/api/v1").concat(e),t,{headers:{common:{Authorization:(0,l.nt)()},"Access-Control-Allow-Origin":"*","Accept-Language":u||""}}).then(function(){var e=(0,r.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t.data);case 2:return s(!1),e.abrupt("return",!0);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){var t;if(null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&t.status){var n=e.response.status;422!==n&&401!==n||"Token is expired"===e.response.data.message&&(localStorage.removeItem("ARK_SITE_TOKEN"),alert("Session expired. Please login again!"),window.location.href="".concat(window.origin,"/admin/login")),o(e.response.data.Error||e.response.data.Errors||e.response.data)}else o(e?e.message:"You are disconnnected from the internet, please reconnect to use ARK site. If problem persists, please contact the system admin.");return s(!1),!1}))},f=function(e,t,n,r,o,i){return o(!0),a().put("".concat((0,c.Z)(window.location.origin),"/api/v1").concat(e),t,{headers:{common:{Authorization:(0,l.nt)()},"Access-Control-Allow-Origin":"*","Accept-Language":i||""}}).then((function(e){n(e.data),o(!1)})).catch((function(e){var t;if(null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&t.status){var n=e.response.status;422!==n&&401!==n||"Token is expired"===e.response.data.message&&(localStorage.removeItem("ARK_SITE_TOKEN"),alert("Session expired. Please login again!"),window.location.href="".concat(window.origin,"/admin/login")),r(e.response.data.Error||e.response.data.Errors||e.response.data)}else r(e?e.message:"You are disconnnected from the internet, please reconnect to use ARK site. If problem persists, please contact the system admin.");o(!1)}))},m=function(e,t,n,r,o){return r(!0),a().delete("".concat((0,c.Z)(window.location.origin),"/api/v1").concat(e),{headers:{common:{Authorization:(0,l.nt)()},"Access-Control-Allow-Origin":"*","Accept-Language":o||""}}).then((function(e){t(e.data),r(!1)})).catch((function(e){var t;if(null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&t.status){var o=e.response.status;422!==o&&401!==o||"Token is expired"===e.response.data.message&&(localStorage.removeItem("ARK_SITE_TOKEN"),alert("Session expired. Please login again!"),window.location.href="".concat(window.origin,"/admin/login")),n(e.response.data.Error)}else n(e?e.message:"You are disconnnected from the internet, please reconnect to use ARK site. If problem persists, please contact the system admin.");r(!1)}))}},88658:function(e,t,n){"use strict";n.d(t,{HG:function(){return x},SO:function(){return h},dX:function(){return p},p_:function(){return b},qb:function(){return w},tq:function(){return _},xn:function(){return O}});var r=n(59499),o=n(50029),i=n(87794),s=n.n(i),a=n(9669),c=n.n(a),l=n(32374),u=n(68683),d=n(93162),g=n.n(d);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e,t,n,r,i){return r(!0),c().get("".concat((0,u.Z)(window.location.origin),"/api/v1").concat(e),{headers:{"Access-Control-Allow-Origin":"*",Authorization:"Bearer ".concat(window.localStorage.getItem("ARK_SITE_TOKEN")),"Accept-Language":i||""}}).then(function(){var e=(0,o.Z)(s().mark((function e(n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n.data);case 2:r(!1);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){var t;null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&t.status?(e.response.data.message&&n(e.response.data.message),e.response.data.Error&&n(e.response.data.Error)):e&&e.message?n(e.message):n("You are disconnnected from the internet, please reconnect to use ARK site. If problem persists, please contact the system admin."),r(!1)}))},h=function(e,t,n,r,i,a){return i(!0),c().post("".concat((0,u.Z)(window.location.origin),"/api/v1").concat(e),t,{headers:{common:{Authorization:"Bearer ".concat(window.localStorage.getItem("ARK_SITE_TOKEN"))},"Access-Control-Allow-Origin":"*","Accept-Language":a||""}}).then(function(){var e=(0,o.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t.data);case 2:i(!1);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){var t;if(null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&t.status){var n=e.response.status;422!==n&&401!==n||"Token is expired"===e.response.data.message&&(alert("Session expired. Please login again!"),window.localStorage.removeItem("ARK_SITE_TOKEN"),window.location.href="".concat(window.origin,"/admin/login")),r(e.response.data.Error?e.response.data.Error:e.response.data.message?e.response.data.message:e.response.data.Errors)}else r(e?e.message:"You are disconnnected from the internet, please reconnect to use ARK site. If problem persists, please contact the system admin.");i(!1)}))},b=function(){var e=(0,o.Z)(s().mark((function e(t,n,r,i,a,c){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),e.abrupt("return",Promise.all(n.map(function(){var e=(0,o.Z)(s().mark((function e(n){var r,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat((0,u.Z)(window.location.origin),"/api/v1").concat(t),{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(window.localStorage.getItem("ARK_SITE_TOKEN")),"Access-Control-Allow-Origin":"*","Accept-Language":c||""}});case 2:return r=e.sent,e.next=5,r.json();case 5:return o=e.sent,e.abrupt("return",m(m(m({},n),o.created_at?{}:o),{},{ajaxStatus:o.created_at?"success":"failed"}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then(function(){var e=(0,o.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((0,l.Z)(t,{ajaxStatus:"failed"})>
1-1)){e.next=5;break}i(t),e.next=7;break;case 5:return e.next=7,r(t);case 7:a(!1);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)})));return function(t,n,r,o,i,s){return e.apply(this,arguments)}}(),w=function(e,t,n,r,i,a){return i(!0),c().put("".concat((0,u.Z)(window.location.origin),"/api/v1").concat(e),t,{headers:{common:{Authorization:"Bearer ".concat(window.localStorage.getItem("ARK_SITE_TOKEN"))},"Access-Control-Allow-Origin":"*","Accept-Language":a||""}}).then(function(){var e=(0,o.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t.data);case 2:i(!1);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){var t;if(null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&t.status){var n=e.response.status;422!==n&&401!==n||"Token is expired"===e.response.data.message&&(alert("Session expired. Please login again!"),window.localStorage.removeItem("ARK_SITE_TOKEN"),window.location.href="".concat(window.origin,"/admin/login")),r(e.response.data.Error||e.response.data.Errors)}else r(e?e.message:"You are disconnnected from the internet, please reconnect to use ARK site. If problem persists, please contact the system admin.");i(!1)}))},x=function(e,t,n,r,i){return r(!0),c().delete("".concat((0,u.Z)(window.location.origin),"/api/v1").concat(e),{headers:{common:{Authorization:"Bearer ".concat(window.localStorage.getItem("ARK_SITE_TOKEN"))},"Access-Control-Allow-Origin":"*","Accept-Language":i||""}}).then(function(){var e=(0,o.Z)(s().mark((function e(n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n.data);case 2:r(!1);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){var t;if(null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&t.status){var o=e.response.status;422!==o&&401!==o||"Token is expired"===e.response.data.message&&(alert("Session expired. Please login again!"),window.localStorage.removeItem("ARK_SITE_TOKEN"),window.location.href="".concat(window.origin,"/admin/login")),n(e.response.data.Error||e.response.data.Errors)}else n(e?e.message:"You are disconnnected from the internet, please reconnect to use ARK site. If problem persists, please contact the system admin.");r(!1)}))},_=function(e,t,n,r,o,i){return o(!0),c().put("".concat((0,u.Z)(window.location.origin),"/").concat(e),t,{headers:{"Accept-Language":i}}).then((function(e){n(e.data),o(!1)})).catch((function(e){var t;if(null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&t.status){var n=e.response.status;422!==n&&401!==n||r(e.response.data.Error||e.response.data.Errors)}else r(e?e.message:"You are disconnnected from the internet, please reconnect to use ARK site. If problem persists, please contact the system admin.");o(!1)}))},O=function(e,t,n,r,o){return r(!0),c().get("".concat((0,u.Z)(window.location.origin),"/api/v1").concat(e),{responseType:"blob",headers:{"Access-Control-Allow-Origin":"*",Authorization:"Bearer ".concat(window.localStorage.getItem("ARK_SITE_TOKEN")),"Accept-Language":o||""}}).then((function(e){return e.data})).then((function(e){g().saveAs(e,t),r(!1)})).catch((function(e){n(e.message),r(!1)}))}},8454:function(e,t,n){"use strict";var r=n(17674);t.Z=function(e,t,n){var o=Array.from(e),i=o.splice(t,1),s=(0,r.Z)(i,1)[0];return o.splice(n,0,s),o}},35969:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/member/course-program",function(){return n(25683)}])},50247:function(){}},function(e){e.O(0,[5445,4617,9866,1228,2770,6188,8764,7820,9638,9669,9357,432,9359,3183,653,1276,8114,6034,1935,6681,4026,5106,9081,1019,3219,4472,9435,6116,817,8819,9774,2888,179],(function(){return t=35969,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.