1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6507],{72768:function(e,t,n){"use strict";n(67294);var r=n(12925),i=n(32007),s=n(52950),a=n(16902),c=n(43268),o=n.n(c),u=n(85893);t.Z=function(e){var t=e.courseIconSrc,n=e.shortName,c=e.handleSubmit,l=e.onSubmit;return(0,u.jsxs)(r.Z,{className:o().AdminSaveSettings,justify:a.Zt.SPACE_BETWEEN,children:[(0,u.jsxs)(r.Z,{autoWidth:!0,children:[(0,u.jsx)(i.Z,{alt:"Course Icon",className:o().AdminSaveSettings__Icon,src:t,noWebp:!0,noLazyload:!0}),(0,u.jsx)("p",{className:o().AdminSaveSettings__Name,children:n})]}),(0,u.jsx)(s.Z,{type:a.Bq.PRIMARY_GRADIENT,buttonType:a.B9.SUBMIT,onClick:function(){return c(l)()},children:"Save Changes"})]})}},27065:function(e,t,n){"use strict";var r=n(59499),i=n(4730),s=n(67294),a=n(12925),c=n(16902),o=n(93967),u=n.n(o),l=n(30055),_=n(21061),d=n(27507),m=n.n(d),p=n(45685),b=n(85893),f=["children","isActive","icon","onClick"];function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g=function(e){var t,n,s=e.children,a=e.isActive,o=e.icon,l=e.onClick,d=(0,i.Z)(e,f);return(0,b.jsxs)("div",{onClick:l,className:u()((t={},(0,r.Z)(t,m().Tab,!0),(0,r.Z)(t,m()["Tab--active"],a),t)),children:[o&&(0,b.jsx)(_.ZP,{alt:"Tab icon",icon:o}),(0,b.jsx)(p.Z,v(v({},d),{},{className:u()((n={},(0,r.Z)(n,m().Tab__Title,!0),(0,r.Z)(n,m()["Tab__Title--active"],a),n)),fontWeight:c.rC.BOLD,children:s}))]})},T=function(e){var t=e.menuItems,n=e.activeItem,r=e.setActive,i=e.style,o=(e.exploreAll,e.className),u=e.customItem,d=(0,s.useState)(!0),p=d[0],f=d[1],h=(0,s.useRef)(null);return(0,s.useEffect)(function(){function e(){f((0,l.U2)(h,"current.scrollWidth")>=(0,l.U2)(h,"current.clientWidth"))}return window.addEventListener("resize",e),e(),function(){return window.removeEventListener("resize",e)}},[]),(0,b.jsxs)(a.Z,{className:o||m().Wrapper,direction:c.zJ.COLUMN,wrap:c.nQ.NO_WRAP,style:i,children:[(0,b.jsxs)("div",{className:m().TabsWrapper,children:[(0,b.jsxs)("div",{className:m().TabsWrapper__ScrollBar,style:{justifyContent:u?"space-between":"flex-start"},ref:h,children:[(0,b.jsx)(a.Z,{className:m().TabsItems,wrap:c.nQ.NO_WRAP,justify:c.Zt.FLEX_START,children:t.map(function(e){return(0,b.jsx)(g,{onClick:function(){r(e)},icon:e.icon,isActive:(0,l.U2)(e,"path")?e.path===(0,l.U2)(n,"path"):e.id===(0,l.U2)(n,"id"),children:e.title},e.path)})}),u&&u]}),p&&(0,b.jsx)(_.ZP,{style:{marginRight:"8px"},alt:"Scroll Right",title:"Scroll Right",icon:"chevron-left",onClick:function(){h.current&&(console.log("what"),console.log(h.current.scrollWidth),console.log(h.current.clientWidth),console.log(h.current.scrollLeft),h.current.scrollLeft+=200)}})]}),n.component]})};T.defaultProps={style:null,exploreAll:!1,setActive:null,activeItem:null,className:null,customItem:null},t.Z=T},44598:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}}),n(67294);var r=n(11163),i=n(30055),s=n(27125),a=n(6812),c=n(25876),o=n.n(c),u=n(65170),l=n(81247),_=n(24277),d=n(4730),m=n(50029),p=n(59499),b=n(64687),f=n.n(b),h=n(87536),v=n(27065),g=n(72768),T=n(87276),j=n.n(T),S=n(85893),A=["id","name","description","countEndDateTime","isPublished","price","courseIconSrc"];function x(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}var y=function(e){var t,n,s=e.course,a=e.authUser,c=(0,r.useRouter)(),o=(0,i.U2)(c,"query"),u=(0,h.cI)({defaultValues:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?x(Object(n),!0).forEach(function(t){(0,p.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},s)}),l=u.handleSubmit;u.register,u.control,u.setValue,u.watch,u.formState.errors;var _=(t=(0,m.Z)(f().mark(function e(t){var n;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.id,t.name,t.description,t.countEndDateTime,t.isPublished,n=t.price,t.courseIconSrc,(0,d.Z)(t,A),(0,i.U2)(n,"id");case 2:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),b=((n={course:s,authUser:a}).course,n.authUser,[{id:"heroSection",title:"Hero Section",component:(0,S.jsx)(S.Fragment,{})},{id:"testimonials",title:"Testimonials",component:(0,S.jsx)(S.Fragment,{})},{id:"keyAttributes",title:"Key Attributes",component:(0,S.jsx)(S.Fragment,{})},{id:"whatsinit",title:"Whatâs in it?",component:(0,S.jsx)(S.Fragment,{})},{id:"productStructure",title:"Product Structure",component:(0,S.jsx)(S.Fragment,{})},{id:"targetAudience",title:"Target Audience",component:(0,S.jsx)(S.Fragment,{})},{id:"plans",title:"Plans",component:(0,S.jsx)(S.Fragment,{})},{id:"partners",title:"Partners",component:(0,S.jsx)(S.Fragment,{})},{id:"customSection",title:"Custom Section",component:(0,S.jsx)(S.Fragment,{})},{id:"FAQs",title:"FAQs",component:(0,S.jsx)(S.Fragment,{})}]),T=b.find(function(e){return(0,i.U2)(e,"id")==(0,i.U2)(o,"tab")})||(0,i.U2)(b,"0");return(0,S.jsxs)("div",{className:j().AdminCourseLanding__Wrap,children:[(0,S.jsx)(g.Z,{courseIconSrc:(0,i.U2)(s,"courseIconSrc"),shortName:(0,i.U2)(s,"shortName"),onSubmit:_,handleSubmit:l}),(0,S.jsx)(v.Z,{className:j().AdminCourseLanding__Tabs,menuItems:b,activeItem:T,setActive:function(e){var t=(0,i.U2)(e,"id"),n=(0,i.U2)(c,"query");n.tab=t,c.push({pathname:c.pathname,query:n})}})]})},O=function(){var e=(0,r.useRouter)(),t=(0,i.U2)(e,"query.courseUrl"),n=(0,a.aM)(o(),{variables:{courseUrl:t},skip:!t}),c=n.data,d=n.loading;if(n.error,d||!t||!c)return(0,S.jsx)(s.Z,{});var m=(0,i.U2)(c,"course");return(0,S.jsx)(l.Z,{children:function(e){var t=e.authUser;return(0,S.jsx)(u.Z,{pathKeys:{courseUrl:m.courseUrl},menuItems:_.Z,authUser:t,activeItem:"landing",onlyAdmin:!0,children:m&&(0,S.jsx)(y,{course:m,authUser:t})})}})}},63769:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/courses/[courseUrl]/landing",function(){return n(44598)}])},87276:function(e){e.exports={AdminCourseLanding__Wrap:"AdminCourseLanding_AdminCourseLanding__Wrap__r8XO1",AdminCourseLanding__Tabs:"AdminCourseLanding_AdminCourseLanding__Tabs__Uh_1W"}},43268:function(e){e.exports={AdminSaveSettings:"AdminSaveSettings_AdminSaveSettings__N1Pnx",AdminSaveSettings__Name:"AdminSaveSettings_AdminSaveSettings__Name__Nl1Bv",AdminSaveSettings__Icon:"AdminSaveSettings_AdminSaveSettings__Icon__zxNXq"}},27507:function(e){e.exports={Wrapper:"Tabs_Wrapper__S_HUF",TabsWrapper:"Tabs_TabsWrapper__URtcu",TabsWrapper__ArrowIcon:"Tabs_TabsWrapper__ArrowIcon__V3N_q",TabsWrapper__ScrollBar:"Tabs_TabsWrapper__ScrollBar__axvF7",TabsItems:"Tabs_TabsItems__NIblx",TabsLine:"Tabs_TabsLine__6LBw9",Tab:"Tabs_Tab__nbkwg","Tab--active":"Tabs_Tab--active__YIwWP",Tab__Title:"Tabs_Tab__Title__mDAPa","Tab__Title--active":"Tabs_Tab__Title--active__5kdFB",MobileHidden:"Tabs_MobileHidden__uLOGe"}}},function(e){e.O(0,[1978,7442,3295,7536,2925,3150,7687,6896,3942,7201,2888,9774,179],function(){return e(e.s=63769)}),_N_E=e.O()}]);
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.