PageSourceSearch

https://nutrafol.com/gatsby-assets/component---src-templates-pages-nutrafolacademy-js-ab37f5dd1bd1dac43cc2.js

js nutrafol.com collected 2026-09-24 10:03:43 UTC 38,752 bytes, 1 lines download raw bytes

1(self.webpackChunknutrafol=self.webpackChunknutrafol||[]).push([[6052],{8662:function(e,t,a){var o=a(96540);function n(e){return o.createElement("svg",e,o.createElement("path",{d:"M2.44727 7.85358C2.25211 7.65836 2.25216 7.3418 2.44727 7.14655L6.30078 3.29303L7.00781 4.00006L4.00781 7.00006L11.7012 7.00006L11.7012 8.00006L4.00781 8.00006L7.00781 11.0001L6.30078 11.7071L2.44727 7.85358Z",fill:"white"}))}n.defaultProps={width:"14",height:"15",viewBox:"0 0 14 15",fill:"none"},e.exports=n,n.default=n},11632:function(e,t,a){"use strict";a.r(t),a.d(t,{formatWidths:function(){return r},getOffset:function(){return n},randomizer:function(){return o}});var o=function(e){return Math.random()>e?0:1},n=function(e){const t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}},r=function(e){return e.replace(/\s/g,"").split(",").map(e=>{if("null"===e)return null;if(e.indexOf("/")>-1){const t=e.split("/");return parseInt(t[0],10)/parseInt(t[1],10)}return 1})}},24524:function(e,t,a){var o=a(96540);function n(e){return o.createElement("svg",e,o.createElement("path",{d:"M16.7128 9.43108L5.91301 2.09783C5.82205 2.03606 5.71791 2.00233 5.61132 2.00012C5.50473 1.9979 5.39954 2.02727 5.30655 2.08521C5.21357 2.14315 5.13616 2.22757 5.08228 2.32978C5.0284 2.43198 5 2.5483 5 2.66675V17.3333C5 17.4517 5.0284 17.568 5.08228 17.6702C5.13616 17.7724 5.21357 17.8568 5.30655 17.9148C5.39954 17.9727 5.50473 18.0021 5.61132 17.9999C5.71791 17.9977 5.82205 17.9639 5.91301 17.9022L16.7128 10.5689C16.8006 10.5094 16.873 10.4258 16.9233 10.3261C16.9736 10.2265 17 10.1142 17 10C17 9.88578 16.9736 9.77348 16.9233 9.67386C16.873 9.57424 16.8006 9.49064 16.7128 9.43108Z",fill:"#22202F"}))}n.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=n,n.default=n},40399:function(e,t,a){"use strict";a.d(t,{A:function(){return o.A}});var o=a(44214)},41557:function(e,t,a){var o=a(96540);function n(e){return o.createElement("svg",e,[o.createElement("g",{clipPath:"url(#clip0_2366_757)",key:0},o.createElement("path",{d:"M12.5255 3.97446C12.5255 3.97446 7.45097 9.04897 3.47452 13.0254M12.5255 13.0254C12.5255 13.0254 7.89279 8.39274 3.47452 3.97446",stroke:"white",strokeLinecap:"square",strokeLinejoin:"round"})),o.createElement("defs",{key:1},o.createElement("clipPath",{id:"clip0_2366_757"},o.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"})))])}n.defaultProps={width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},e.exports=n,n.default=n},44214:function(e,t,a){"use strict";a(96540);var o=a(68154),n=a(64810),r=a(82704),s=a(17437);t.A=function(e){let t=e.description,a=void 0===t?"":t,i=e.lang,l=void 0===i?"en":i,d=e.meta,c=void 0===d?[]:d,m=e.title,u=e.pressAnnouncement,p=e.sharingImage,f=e.sharingUrl,h=e.titleSuffix,g=void 0===h?null:h,v=e.themeSuffixOverride,b=void 0===v?null:v;const x=(0,n.useStaticQuery)("63159454").site,w=a||x.siteMetadata.description,N=u?[{property:"og:image",content:p},{property:"og:url",content:f},{property:"twitter:image",content:p}]:[];return(0,s.Y)(o.default,{defer:!1,htmlAttributes:{lang:l},title:m,titleTemplate:"%s | "+(g||x.siteMetadata.title)+(b||("men"===(0,r.n)()?" Men":"")),meta:[{name:"description",content:w},{property:"og:title",content:m},{property:"og:description",content:w},{property:"og:type",content:"website"},{name:"twitter:card",content:u?a:"summary"},{name:"twitter:creator",content:x.siteMetadata.author},{name:"twitter:title",content:m},{name:"twitter:description",content:w},...N].concat(c),"data-element":"Helmet","data-component":"SEO","data-source-file":"seo.js"})}},54231:function(e,t,a){var o=a(96540);function n(e){return o.createElement("svg",e,[o.createElement("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",stroke:"white",strokeWidth:"0.8",strokeMiterlimit:"10",key:0}),o.createElement("path",{d:"M8 4.5V8H11.5",stroke:"white",strokeWidth:"0.8",strokeLinecap:"square",strokeLinejoin:"round",key:1})])}n.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=n,n.default=n},79798:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return ae}});var o=a(96540),n=a(40399),r=a(20880),s=a(37245),i=a(17437);var l=e=>{let t=e.data;const a=t.title,o=t.description,n=t.dekstopImage,l=t.tabletImage,d=t.mobileImage;return(0,i.Y)("div",{className:"relative mt-[50px] sm:mt-auto min-h-[562px] aspect-[375/562] sm:aspect-[768/432] md:aspect-[1600/900] w-full md:max-h-[900px]","data-component":"Banner","data-source-file":"banner.js"},(0,i.Y)("picture",{"data-element":"picture","data-component":"Banner","data-source-file":"banner.js"},(0,i.Y)("source",{srcSet:n,media:"(min-width: 1024px)","data-component":"Banner","data-source-file":"banner.js"}),(0,i.Y)("source",{srcSet:l,media:"(min-width: 768px)"}),(0,i.Y)("source",{srcSet:d,media:"(max-width: 767px)"}),(0,i.Y)("img",{src:n,alt:a,className:"block w-full h-full object-cover object-right"})),(0,i.Y)("div",{className:"absolute bottom-0 sm:bottom-[unset] left-0 sm:top-1/2 sm:-translate-y-1/2 w-full sm:mt-8"},(0,i.Y)(s.A,{"data-element":"Section","data-source-file":"banner.js"},(0,i.Y)(r.TextElementNova,{text:a,className:"Title-30-Super-Normal text-nova-base-white mb-2 sm:max-w-[415px] md:max-w-[560px]","data-element":"TextElementNova","data-source-file":"banner.js"}),(0,i.Y)(r.TextElementNova,{text:o,className:"text-nova-base-white sm:max-w-[415px] md:max-w-[560px]",classes:{default:"Body-20-Dia-Normal",768:"Body-30-Dia-Normal",1024:"Body-30-Dia-Normal"},"data-element":"TextElementNova","data-source-file":"banner.js"}))))},d=(a(35231),a(11808));const c={QUIZ:"quiz",VIDEO:"video",EMAIL:"email",DONE:"done"},m="learning.completedSteps",u="learning.currentStep",p="learning.quizSelections",f="learning.videoProgress",h={[c.QUIZ]:()=>"Which Nutraceutical are you taking?",[c.VIDEO]:e=>"Course "+(e+1),[c.DONE]:()=>"Hair Certified"},g=(e,t)=>{const a=h[e];return"function"==typeof a?a(t):String(null!=a?a:"Course "+(t+1))},v=(0,o.createContext)(null);function b(e){let t=e.courses,a=e.children;const n=(0,o.useState)([]),r=n[0],s=n[1],l=(0,o.useState)({}),h=l[0],b=l[1],x=(0,o.useState)({}),w=x[0],N=x[1],y=(0,o.useState)(0),C=y[0],Y=y[1],E=(0,o.useState)(!1),j=E[0],S=E[1],k=(0,o.useState)(c.QUIZ),T=k[0],L=k[1],M=(0,o.useState)(!1),A=M[0],V=M[1];(0,o.useEffect)(()=>
1{if("undefined"!=typeof window){try{const e=window.localStorage.getItem(m);e&&s(JSON.parse(e));const t=window.localStorage.getItem(u);t&&Y(JSON.parse(t));const a=window.localStorage.getItem(p);a&&b(JSON.parse(a));const o=window.localStorage.getItem(f);o&&N(JSON.parse(o))}catch(e){console.error("Error parsing localStorage values:",e)}V(!0)}},[]),(0,o.useEffect)(()=>{A&&localStorage.setItem(m,JSON.stringify(r))},[A,r]),(0,o.useEffect)(()=>{A&&localStorage.setItem(p,JSON.stringify(h))},[A,h]),(0,o.useEffect)(()=>{A&&localStorage.setItem(f,JSON.stringify(w))},[A,w]),(0,o.useEffect)(()=>{A&&localStorage.setItem(u,JSON.stringify(C))},[A,C]);const D=e=>r.includes(e),B=e=>e>0&&!D(e-1),I=r.length===t.length,H=e=>{B(e)||((0,d.segmentEvent)("Modal Viewed",{name:g(c.VIDEO,C)}),Y(e),L((e=>{var a;return Boolean(null===(a=t[e])||void 0===a?void 0:a.quiz)&&!h[e]})(e)?c.QUIZ:c.VIDEO),S(!0))},O=e=>{s(t=>t.includes(e)?t:[...t,e])},P=(e,t)=>{b(a=>Object.assign({},a,{[e]:t})),N(t=>Object.assign({},t,{[e]:0}))},q=(e,t)=>{N(a=>a[e]===t?a:Object.assign({},a,{[e]:t}))},W={courses:t,MODAL_VIEWS:c,currentStep:C,completedSteps:r,quizSelections:h,videoProgress:w,isModalOpen:j,modalView:T,hydrated:A,isCompleted:D,isLocked:B,isLastStep:e=>e===t.length-1,allDone:I,openStep:H,closeModal:()=>{(0,d.segmentEvent)("Modal Closed",{name:g(T,C)}),S(!1)},setModalView:L,setQuizSelection:P,setVideoTime:q,handleQuizComplete:e=>{(0,d.segmentEvent)("Modal Tab Viewed",{text:null==e?void 0:e.productName}),P(C,e),L(c.VIDEO)},switchProduct:function(e){void 0===e&&(e=C),(0,d.segmentEvent)("Marketing CTA Clicked",{destination:"/nutrafolacademy/",module_location:"mid_fold",text:"Switch Nutraceutical",type:"link"}),b(t=>Object.assign({},t,{[e]:null})),N(t=>Object.assign({},t,{[e]:0})),L(c.QUIZ)},handleVideoEnded:()=>{const e=C;O(e),q(e,0);const a=new Set([...r,e]).size;e===t.length-1&&a===t.length?((0,d.segmentEvent)("Modal Viewed",{name:g(c.EMAIL)}),L(c.EMAIL),S(!0)):S(!1)},handleEmailSubmit:()=>{(0,d.segmentEvent)("Modal Viewed",{name:g(c.DONE)}),L(c.DONE)},markStepComplete:O,setCurrentStep:Y,skipToStep:(e,t)=>{var a;(0,d.segmentEvent)("Marketing CTA Clicked",{text:null==e||null===(a=e.target)||void 0===a?void 0:a.innerText,destination:"/nutrafolacademy/",module_location:"mid_fold",type:"link"}),s(e=>{const a=new Set(e);for(let o=0;o<t;o++)a.add(o);return Array.from(a).sort((e,t)=>e-t)}),H(t)}};return(0,i.Y)(v.Provider,{value:W,"data-element":"unknown","data-component":"LearningProvider","data-source-file":"NutrafolAcademy.js"},a)}const x=()=>(0,o.useContext)(v);var w=e=>{let t=e.isSidebar,a=void 0===t||t;const n=x(),s=n.courses,l=n.completedSteps,d=s.length,c=l.length;return(0,i.Y)("div",{className:"p-4 rounded-sm bg-nova-transparency-white-10 border border-nova-transparency-white-10","data-component":"LearningProgress","data-source-file":"learningprogress.js"},a?(0,i.Y)("div",{className:"pb-4 mb-4 border-b border-nova-transparency-white-20"},d!==c?(0,i.Y)(r.TextElementNova,{text:"Learning Progress:",className:"Caption-10-Dia-Uppercase text-nova-base-white"}):(0,i.Y)(o.Fragment,null,(0,i.Y)(r.TextElementNova,{text:"Your certification is complete.",className:"Body-30-Dia-Strong text-nova-base-white mb-2"}),(0,i.Y)(r.TextElementNova,{text:"You’re ready to share your Nutrafol story.",className:"text-nova-base-white",classes:{default:"Body-10-Dia-Normal",1024:"Body-20-Dia-Normal"}}))):null,(0,i.Y)("div",{className:"flex","data-component":"LearningProgress","data-source-file":"learningprogress.js"},(0,i.Y)("div",{className:"flex gap-2 mr-2 md:mr-4","data-component":"LearningProgress","data-source-file":"learningprogress.js"},Array.from({length:d}).map((e,t)=>(0,i.Y)("div",{key:"course-progess-"+t,className:"w-[10px] md:w-4 h-[10px] md:h-4 rounded-full "+(t<c?"bg-nova-brand-accent-80":"border border-nova-transparency-white-40")}))),(0,i.Y)(r.TextElementNova,{text:c+" of "+d+" courses completed.",className:"text-nova-base-white !leading-[100%] !italic Caption-10-Dia-Normal md:hidden","data-element":"TextElementNova","data-source-file":"learningprogress.js"}),(0,i.Y)(r.TextElementNova,{text:c+" of "+d+" courses completed.",className:"text-nova-base-white !leading-[100%] !italic Body-20-Dia-Normal hidden md:block","data-element":"TextElementNova","data-source-file":"learningprogress.js"})))},N=a(20813),y=a(74838),C=a(54231),Y=a.n(C),E=a(86245),j=a.n(E),S=a(86773),k=a.n(S),T=a(89806),L=a.n(T),M=a(83522),A=a.n(M),V=a(24524),D=a.n(V);var B=e=>{let t=e.index,a=e.course;const n=x(),s=n.openStep,l=n.isLocked,d=n.isCompleted,c=n.skipToStep,m=l(t),u=d(t),p=Array.from({length:t},(e,t)=>t+1).join(" and ");let f="Start Course";m?f="Locked":u&&(f="Watch Again");let h=null;u?h=(0,i.Y)("div",{className:"flex gap-2 justify-center items-center p-2 bg-nova-brand-accent-80 rounded-t"},(0,i.Y)("span",{className:"w-5 h-5 md:w-6 md:h-6"},(0,i.Y)(L(),{width:"100%",height:"100%"})),(0,i.Y)(r.TextElementNova,{text:" Course "+(t+1)+" Completed",classes:{default:"Body-10-Dia-Strong",1024:"Body-20-Dia-Strong"}})):m&&(h=(0,i.Y)("div",{className:"flex gap-2 justify-center items-center p-2 bg-nova-base-white rounded-t"},(0,i.Y)("span",{className:"w-5 h-5 md:w-6 md:h-6"},(0,i.Y)(A(),{width:"100%",height:"100%"})),(0,i.Y)(r.TextElementNova,{text:"Complete Courses "+p+" to Unlock",classes:{default:"Body-10-Dia-Strong",1024:"Body-20-Dia-Strong"}})));const g=(0,i.Y)(o.Fragment,null,(0,i.Y)(N.l,{width:"100%",disabled:m,className:m?"!bg-nova-transparency-white-20 pointer-events-none":"group hover:bg-nova-brand-primary-100"},(0,i.Y)("span",{className:"flex items-center gap-4"},(0,i.Y)("span",{className:"w-6 h-6 flex justify-center items-center rounded-sm bg-nova-transparency-black-20 "+(m?"":"group-hover:bg-nova-brand-primary-80")},m?(0,i.Y)(j(),null):(0,i.Y)(k(),null)),f)),m?(0,i.Y)("button",{className:"flex mx-auto mt-3 px-1",onClick:e=>c(e,t)},(0,i.Y)(r.TextElementNova,{element:"span",text:"I completed course "+p,className:"CTA-10-Dia-Normal text-nova-base-white border-b border-b-nova-base-white"})):null);return(0,i.Y)("div",{"data-component":"CourseCard","data-source-file":"coursecard.js"},h,(0,i.Y)("div",{className:"\n          p-4 sm:p-6 lg:p-10 rounded-sm bg-nova-transparency-white-10 border border-nova-transparency-white-10 \n          "+(h?"rounded-t-none":"")+" \n          "+(m?"cursor-default":"cursor-pointer")+"\n        ",onClick:()=>!m&&s(t),"data-component":"CourseCard","data-source-file":"coursecard.js"}
1,(0,i.Y)("div",{className:"flex gap-4 lg:gap-10","data-component":"CourseCard","data-source-file":"coursecard.js"},(0,i.Y)("div",{className:"w-[85px] sm:w-[112px] md:w-[140px] rounded-sm overflow-hidden","data-component":"CourseCard","data-source-file":"coursecard.js"},(0,i.Y)("div",{className:"relative "+(m?"pointer-events-none":""),"data-component":"CourseCard","data-source-file":"coursecard.js"},(0,i.Y)("img",{src:a.image,alt:a.title,className:m?"blur-[2px]":"","data-component":"CourseCard","data-source-file":"coursecard.js"}),(0,i.Y)("span",{className:"absolute top-0 left-0 w-full h-full flex justify-center items-center"},(0,i.Y)("span",{className:"w-8 h-8 md:w-12 md:h-12 rounded-sm bg-nova-brand-accent-80 flex justify-center items-center"},(0,i.Y)("span",{className:"w-4 h-4 md:w-6 md:h-6"},m?(0,i.Y)(A(),{width:"100%",height:"100%"}):(0,i.Y)(D(),{width:"100%",height:"100%"})))))),(0,i.Y)("div",{className:"flex-1 flex flex-col"},(0,i.Y)("div",{className:"flex mb-2 items-center gap-2"},(0,i.Y)(y.A,{data:{line:"Course "+(t+1),classes:"bg-nova-base-solid-40 !px-[6px] !py-1"},"data-element":"Tag","data-source-file":"coursecard.js"}),(0,i.Y)("div",{className:"flex"},(0,i.Y)("div",{className:"mr-[2px]"},(0,i.Y)(Y(),{"data-element":"ClockIcon","data-source-file":"coursecard.js"})),(0,i.Y)("div",null,(0,i.Y)(r.TextElementNova,{text:a.duration,className:"Caption-10-Dia-Normal text-nova-base-white !italic !leading-[17px]","data-element":"TextElementNova","data-source-file":"coursecard.js"})))),(0,i.Y)(r.TextElementNova,{text:a.title,className:"Title-10-Super-Normal text-nova-base-white mb-2","data-element":"TextElementNova","data-source-file":"coursecard.js"}),(0,i.Y)(r.TextElementNova,{text:a.description,className:"text-nova-base-white sm:mb-2",classes:{default:"Body-10-Dia-Normal",1024:"Body-20-Dia-Normal",1500:"Body-30-Dia-Normal"},"data-element":"TextElementNova","data-source-file":"coursecard.js"}),(0,i.Y)("div",{className:"mt-auto hidden sm:block"},g))),(0,i.Y)("div",{className:"sm:hidden mt-4"},g)))},I=a(73310),H=a(95704),O=a(28720);var P=()=>{const e=x(),t=e.courses,a=e.currentStep,o=e.handleQuizComplete,n=t[a];return(0,i.Y)("div",{className:"w-full","data-component":"ProductQuiz","data-source-file":"productquiz.js"},(0,i.Y)("div",{"data-component":"ProductQuiz","data-source-file":"productquiz.js"},(0,i.Y)(r.TextElementNova,{text:n.quiz.question,className:"Title-20-Super-Normal text-nova-base-white text-center mb-4 sm:mb-10","data-element":"TextElementNova","data-component":"ProductQuiz","data-source-file":"productquiz.js"})),(0,i.Y)("div",{className:"grid grid-cols-4 gap-2 md:gap-4 justify-center auto-rows-fr"},n.quiz.options.map((e,t)=>(0,i.Y)("button",{key:"quiz-option-"+t,className:"\n              flex flex-col md:flex-row col-span-2 items-center md:text-left p-2\n              bg-nova-transparency-white-20 border border-nova-transparency-white-20\n              active:bg-nova-transparency-white-40 active:border-nova-brand-primary-80\n            ",onClick:()=>o(e)},(0,i.Y)("img",{src:e.image,alt:e.productName,className:"w-[85px] md:w-[130px] aspect-[13/10]"}),(0,i.Y)("span",null,(0,i.Y)(r.TextElementNova,{text:e.productName,className:"text-nova-base-white",classes:{default:"Body-10-Dia-Normal",1024:"Body-30-Dia-Normal"}}))))))},q=a(8662),W=a.n(q);var _=()=>{const e=(0,o.useRef)(null),t=(0,o.useRef)(0),a=x(),n=a.courses,s=a.currentStep,l=a.quizSelections,c=a.videoProgress,m=a.setVideoTime,u=a.handleVideoEnded,p=a.switchProduct,f=n[s],h=l[s]||null,g=h&&h.video?h.video:f.video;(0,o.useEffect)(()=>{const t=e.current;if(!t)return;const a=Number(c[s]||0),o=()=>{a>0&&a<(t.duration||1/0)&&(t.currentTime=a)};return t.addEventListener("loadedmetadata",o),()=>t.removeEventListener("loadedmetadata",o)},[s,c,null==g?void 0:g.src]);return(0,i.Y)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-12 max-w-[400px] sm:max-w-none mx-auto w-full h-full","data-component":"CourseVideo","data-source-file":"coursevideo.js"},(0,i.Y)("div",{className:"w-full md:w-[59%]","data-component":"CourseVideo","data-source-file":"coursevideo.js"},(0,i.Y)("div",{className:"p-4 bg-nova-transparency-white-10 border border-nova-transparency-white-10 rounded-sm","data-component":"CourseVideo","data-source-file":"coursevideo.js"},(0,i.Y)(y.A,{data:{line:"Course "+(s+1),classes:"bg-nova-base-solid-40 mb-2"},"data-element":"Tag","data-component":"CourseVideo","data-source-file":"coursevideo.js"}),(0,i.Y)(r.TextElementNova,{text:f.title,className:"Title-10-Super-Normal text-nova-base-white","data-element":"TextElementNova","data-source-file":"coursevideo.js"}),(0,i.Y)(r.TextElementNova,{text:"Learn from "+f.author+", "+f.authorTitle,className:"Body-10-Dia-Normal text-nova-base-white pt-2","data-element":"TextElementNova","data-source-file":"coursevideo.js"}),null!=h&&h.productName?(0,i.Y)("div",{className:"pt-2 mt-2 border-t border-nova-transparency-white-20"},(0,i.Y)("div",{className:"flex justify-between items-center py-1 gap-2 flex-wrap"},(0,i.Y)(r.TextElementNova,{text:h.productName,className:"Body-10-Dia-Normal text-nova-base-white"}),(0,i.Y)("button",{className:"flex items-center gap-1 border-b border-nova-base-white",onClick:t=>{var a;t.stopPropagation(),t.preventDefault(),null===(a=e.current)||void 0===a||a.pause(),p()}},(0,i.Y)(W(),null),(0,i.Y)(r.TextElementNova,{text:"Learn About a Different Formula",className:"CTA-10-Dia-Normal text-nova-base-white !leading-[140%]"})))):null)),(0,i.Y)("div",{className:"w-full h-full md:w-[41%] overflow-hidden"},(0,i.Y)("video",{className:"w-full h-full object-contain sm:object-cover bg-[black]",key:null==g?void 0:g.src,ref:e,poster:null==g?void 0:g.poster,loop:!1,controls:!0,autoPlay:!0,playsInl
1ine:!0,onTimeUpdate:e=>{const a=e.currentTarget,o=Date.now();o-t.current>1e3&&(m(s,a.currentTime),t.current=o)},onEnded:u,onPlay:()=>{(0,d.segmentEvent)("Video Played",{module_state:"Play",video_name:"Course "+(s+1)})},onPause:()=>{e.current.ended||(0,d.segmentEvent)("Video Played",{module_state:"Paused",video_name:"Course "+(s+1)})}},null!=g&&g.src?(0,i.Y)("source",{src:g.src,type:"video/mp4"}):null,"Your browser does not support the video tag.")))};var z=()=>(0,i.Y)("div",{className:"flex flex-col md:flex-row h-full items-center justify-center sm:justify-between md:justify-center gap-6 md:gap-0","data-component":"LearningComplete","data-source-file":"learningcomplete.js"},(0,i.Y)("div",{className:"md:flex-1 flex flex-col items-center sm:mt-20 md:mt-0","data-component":"LearningComplete","data-source-file":"learningcomplete.js"},(0,i.Y)("div",{className:"mb-6 md:mb-10 w-[200px] md:w-[250px]","data-component":"LearningComplete","data-source-file":"learningcomplete.js"},(0,i.Y)("img",{src:"https://images.ctfassets.net/0rbfqd9c4jdo/3gYqOdUpTnXCHb66ypx5Hf/ab69e7ab2bc5dc0c806baab958c757e6/learning-complete-badge-new.png",alt:"Nutrafol Academy Hair Certified","data-component":"LearningComplete","data-source-file":"learningcomplete.js"})),(0,i.Y)("div",null,(0,i.Y)(w,{isSidebar:!1,"data-element":"LearningProgress","data-source-file":"learningcomplete.js"}))),(0,i.Y)("div",{className:"sm:mb-20 md:mb-0 md:flex-1"},(0,i.Y)("div",{className:"max-w-[336px] md:max-w-none"},(0,i.Y)(r.TextElementNova,{text:"You’re officially #NutrafolAccredited!",className:"Title-20-Super-Normal text-nova-base-white text-center mb-4 md:mb-10","data-element":"TextElementNova","data-source-file":"learningcomplete.js"}),(0,i.Y)(r.TextElementNova,{text:"Your commitment helps build a more informed, empowered community.",className:"Subtitle-10-Dia-Normal text-nova-base-white text-center","data-element":"TextElementNova","data-source-file":"learningcomplete.js"})))),Z=a(5302),Q=a(57312);var U=()=>{const e=x().handleEmailSubmit,t=(0,o.useState)(!1),a=t[0],n=t[1],s=(0,o.useState)(""),l=s[0],c=s[1];return(0,i.Y)("div",{className:"flex flex-col md:flex-row h-full items-center justify-center sm:justify-between gap-6 lg:gap-10","data-component":"EnterEmail","data-source-file":"enteremail.js"},(0,i.Y)("div",{className:"flex flex-col items-center sm:mt-10 md:mt-0 md:w-[368px]","data-component":"EnterEmail","data-source-file":"enteremail.js"},(0,i.Y)("div",{className:"mb-6 md:mb-10 w-[200px] md:w-[250px]","data-component":"EnterEmail","data-source-file":"enteremail.js"},(0,i.Y)("img",{src:"https://images.ctfassets.net/0rbfqd9c4jdo/3gYqOdUpTnXCHb66ypx5Hf/ab69e7ab2bc5dc0c806baab958c757e6/learning-complete-badge-new.png",alt:"Nutrafol Academy Hair Certified","data-component":"EnterEmail","data-source-file":"enteremail.js"})),(0,i.Y)("div",null,(0,i.Y)(w,{isSidebar:!1,"data-element":"LearningProgress","data-source-file":"enteremail.js"}))),(0,i.Y)("div",{className:"md:flex-1 max-w-[336px] md:max-w-none"},(0,i.Y)(r.TextElementNova,{text:"Enter your email to submit your accreditation confirmation.",className:"Title-20-Super-Normal text-nova-base-white text-center mb-10","data-element":"TextElementNova","data-source-file":"enteremail.js"}),(0,i.Y)("div",{className:"form-group md:max-w-[400px] md:mx-auto"},(0,i.Y)(Q.Y,{name:"email",id:"email",type:"text",visualName:"Email Address",value:l,onChange:e=>{c(e.target.value)},errors:a?"Please enter a valid email address.":null,touched:!!a,widths:"1",color:"dark",className:"!mb-2","data-element":"InputTextNova","data-source-file":"enteremail.js"}),(0,i.Y)(N.l,{label:"Submit",level:"Primary",width:"100%",icon:"Right",onClick:()=>""===l?n(!0):(0,Z.xd)(l)?((0,d.segmentEvent)("Nutrafol Academy Completed",{academy_program_name:"Nutrafol Academy Accreditation",accreditation_status:"completed",completion_timestamp:(new Date).toISOString(),email:l,first_name:"",last_name:""}),void e()):n(!0),"data-element":"ButtonNova","data-source-file":"enteremail.js"}))))},J=a(41557),R=a.n(J);const F=(0,I.default)("div",{target:"eel9n5r0"})(">div>div{background:",H.default.wild.color.nova.transparency.white[10],";backdrop-filter:blur(5px);}.modal-nova-header{padding:0;@media (max-width: 767px){display:none;}}.modal-nova-body{height:100%;padding:40px 24px;@media (min-width: 768px){padding:40px;}}",e=>e.$emailView&&"\n    > div > div {\n      pointer-events: none;\n    }\n    .close-trigger {\n      display: none;\n    }\n  ",";");var G=()=>{const e=x(),t=e.isModalOpen,a=e.closeModal,n=e.modalView;return(0,o.useEffect)(()=>
1{if(n!==c.DONE)return;const e=setTimeout(()=>a(),1e4);return()=>clearTimeout(e)},[n,a]),t?(0,i.Y)(F,{$emailView:n===c.EMAIL,"data-element":"Wrapper","data-component":"CourseModal","data-source-file":"coursemodal.js"},(0,i.Y)(O.A,{hideModal:a,fullHeightMobile:!0,className:"!bg-nova-base-black sm:!max-w-[416px] md:!max-w-[1072px]","data-element":"ModalNova","data-component":"CourseModal","data-source-file":"coursemodal.js"},(0,i.Y)("div",{className:"flex flex-col justify-center h-full w-full sm:h-[780px] md:h-[560px] lg:h-[640px] gap-2","data-component":"CourseModal","data-source-file":"coursemodal.js"},(0,i.Y)("div",{className:"flex-1 flex items-center justify-center h-full","data-component":"CourseModal","data-source-file":"coursemodal.js"},n===c.QUIZ?(0,i.Y)(P,null):null,n===c.VIDEO?(0,i.Y)(_,null):null,n===c.EMAIL?(0,i.Y)(U,null):null,n===c.DONE?(0,i.Y)(z,null):null),n!==c.EMAIL&&(0,i.Y)("div",{className:"text-center "+(n!==c.DONE?"sm:hidden":"")},(0,i.Y)("button",{className:"mx-auto p-1",onClick:a},(0,i.Y)("span",{className:"flex items-center gap-1 border-b border-b-nova-base-white"},(0,i.Y)(R(),null),(0,i.Y)(r.TextElementNova,{element:"span",text:"Close",className:"CTA-20-Dia-Normal text-nova-base-white !leading-[100%]"}))))))):null};const X=e=>{let t=e.data;const a=t.title,o=t.description,n=x(),l=n.hydrated,d=n.courses;return l?(0,i.Y)("div",{className:"bg-nova-base-black","data-component":"LearningSection","data-source-file":"index.js"},(0,i.Y)(s.A,{"data-element":"Section","data-component":"LearningSection","data-source-file":"index.js"},(0,i.Y)("div",{className:"flex flex-col md:flex-row mb-10 sm:mb-12 lg:mb-20","data-component":"LearningSection","data-source-file":"index.js"},(0,i.Y)("div",{className:"w-full md:w-1/2 mb-4 md:mb-0 md:pr-6","data-component":"LearningSection","data-source-file":"index.js"},(0,i.Y)(r.TextElementNova,{text:a,className:"Title-20-Super-Normal text-nova-base-white","data-element":"TextElementNova","data-component":"LearningSection","data-source-file":"index.js"})),(0,i.Y)("div",{className:"w-full md:w-1/2"},(0,i.Y)(r.TextElementNova,{text:o,className:"Body-30-Dia-Normal text-nova-base-white","data-element":"TextElementNova","data-source-file":"index.js"}))),(0,i.Y)("div",{className:"flex flex-col sm:flex-row gap-10 sm:gap-4 lg:gap-16"},(0,i.Y)("div",{className:"w-full sm:w-[250px] md:w-[400px]"},(0,i.Y)("div",{className:" sm:sticky sm:top-[74px] md:top-[100px]"},(0,i.Y)(w,{"data-element":"LearningProgress","data-source-file":"index.js"}))),(0,i.Y)("div",{className:"flex-1"},d.map((e,t)=>(0,i.Y)("div",{key:"course-card-"+t,className:t+1!==d.length?"mb-10":""},(0,i.Y)(B,{index:t,course:e}))))),(0,i.Y)(G,{"data-element":"CourseModal","data-source-file":"index.js"}))):null};function K(e){let t=e.data;return(0,i.Y)(b,{courses:t.courses,"data-element":"LearningProvider","data-component":"Learning","data-source-file":"index.js"},(0,i.Y)(X,{data:t,"data-element":"LearningSection","data-component":"Learning","data-source-file":"index.js"}))}var $=a(71842),ee=a(18722);const te={seo:{title:"Nutrafol Academy",description:"Nutrafol Academy is our partner certification platform, designed to help you solidify your brand expertise and reinforce trust with your audience."},hero:{title:"Learn with us. Lead with us.",description:"Nutrafol Academy is an opportunity for you, the powerful voices of our partner network, to grow your expertise and reinforce trust with your audience.",dekstopImage:"https://images.ctfassets.net/0rbfqd9c4jdo/43WAOC5Zb01tk0n9T2CxPL/52bf26f7098984aafb3f2f359bf4ce82/nutrafol-academy-hero-desktop.jpg?fl=progressive",tabletImage:"https://images.ctfassets.net/0rbfqd9c4jdo/H2rfSuh3Jb1fSplsV5Bm9/30f4401b765309f36550d7b5f6dd2509/nutrafol-academy-hero-tablet.jpg?fl=progressive",mobileImage:"https://images.ctfassets.net/0rbfqd9c4jdo/5r4WVD8ctdEBpLSAwygM8a/f696389fea1ec3b59bcb4525a8670c88/nutrafol-academy-hero-mobile.jpg?fl=progressive"},learning:{title:"Complete the courses to <span class='font-grilliBook whitespace-nowrap'>become certified.</span>",description:"With so much noise and misinformation online, it's crucial to know exactly what you're putting into your body. These courses will equip you with a deep understanding of our products and the knowledge you need to confidently share Nutrafol with your community.",courses:[{title:"Why is my hair thinning?",description:"Build a strong foundation in the science of hair health—and uncover the root causes behind thinning hair.",author:"Dr. Heather Woolery-Lloyd",authorTitle:"Chief Medical Advisor at Nutrafol",image:"https://images.ctfassets.net/0rbfqd9c4jdo/207Di9gnSjEWOV5er8BxjJ/0b6700842ccc82adab2948ca0ae97f10/course-one.jpg?fl=progressive",duration:"2 min",video:{src:"https://nutrafol.com/media/video_storage/na-course-one.mp4",poster:"https://images.ctfassets.net/0rbfqd9c4jdo/207Di9gnSjEWOV5er8BxjJ/0b6700842ccc82adab2948ca0ae97f10/course-one.jpg?fl=progressive"}},{title:"Introduction to Hair Growth Nutraceuticals",description:"Learn how the Nutraceutical you’re taking is specially designed to support your hair’s unique needs.",author:"Dr. Heather Woolery-Lloyd",authorTitle:"Chief Medical Advisor at Nutrafol",image:"https://images.ctfassets.net/0rbfqd9c4jdo/4q9NLT3cKyRDah86Ttmn7w/93989d7923561ecd14bdb2de4e3bf30d
1/course-two-women.jpg?fl=progressive",duration:"1 min",quiz:{question:"Which Nutraceutical are you taking?",options:[{image:ee.HE.ADV1.label1,productName:"Nutrafol Women",video:{src:"https://nutrafol.com/media/video_storage/NutrafolAcademy_EducationVideos_HowNutrafolWorks_VeganTransition_9x16_FINAL.mp4",poster:"https://images.ctfassets.net/0rbfqd9c4jdo/4q9NLT3cKyRDah86Ttmn7w/93989d7923561ecd14bdb2de4e3bf30d/course-two-women.jpg?fl=progressive"}},{image:ee.HE.BAL1.label1,productName:"Nutrafol Women's Balance",video:{src:"https://nutrafol.com/media/video_storage/na-course-two-balance.mp4",poster:"https://images.ctfassets.net/0rbfqd9c4jdo/6msUEdjhNT3tOYYUBOi1s5/fb0df87f2ea0989db166870f0ba86d5d/course-two-balance.jpg?fl=progressive"}},{image:ee.HE.POS1.label1,productName:"Nutrafol Postpartum",video:{src:"https://nutrafol.com/media/video_storage/na-course-two-postpartum.mp4",poster:"https://images.ctfassets.net/0rbfqd9c4jdo/6fbSvclX69t83nWkFeBsr/b94389c79668bb8a12ea273b4ef0498f/course-two-postpartum.jpg"}},{image:ee.HE.MENPRO1.label1,productName:"Nutrafol Men",video:{src:"https://nutrafol.com/media/video_storage/na-course-two-men.mp4",poster:"https://images.ctfassets.net/0rbfqd9c4jdo/BuadmupngYLmMMnM5HVlV/85f1a4642fb58b77d213a872c0804b93/course-two-men.jpg?fl=progressive"}},{image:ee.HE.MSR1.label1,productName:"Nutrafol Men 50+",video:{src:"https://nutrafol.com/media/video_storage/na-course-two-men50.mp4",poster:"https://images.ctfassets.net/0rbfqd9c4jdo/5Q34SJjX6G2WIKI1nKzq0j/8ca205afdb9e44ade6b4264f57752556/course-two-men-50plus.jpg?fl=progressive"}}]}}]},faqAccordion:{heading:"We’re serious about facts. <br class='hidden sm:block md:hidden' /><span class='whitespace-nowrap font-grilliBook'>Ask away.</span>",accordions:[{title:"What is Nutrafol Academy?",content:"\n         Nutrafol Academy is our partner certification platform—built to empower brand ambassadors like you with the knowledge to represent our brand with credibility and consistency. Through 2 easy-to-follow training videos, you’ll gain the expertise to confidently share both Nutrafol’s benefits and your personal hair growth journey with your community.   \n        "},{title:"Is certification through Nutrafol Academy required for all partners?",content:"\n          Yes, all of our partners are required to complete the courses within Nutrafol Academy. \n        "},{title:"Why is product education important?",content:"\n          Product education sets the foundation for trust, credibility, and effective communication. When you have a deep understanding of how our Hair Growth Nutraceuticals work and what sets them apart, you can speak about them with real confidence and authenticity. It also ensures you’re staying compliant and aligned with our brand messaging—so everything you share is clear, accurate, and impactful. \n        "},{title:"When can I expect to see results with Nutrafol?",content:'\n          In our clinical study, women showed results in 3-6 months.<br /><br />\n          <span class="font-dinamoBold">1-3 Months</span><br />\n          Strengthen hair from within. Look for shinier hair with less shedding and breakage.\n          <br /><br />\n          <span class="font-dinamoBold">3-6 Months</span><br />\n          You may notice improvement in fullness and volume.\n          <br /><br />  \n          <span class="font-dinamoBold">6+ Months</span><br />\n          Experience visible changes like faster-growing hair that’s thicker and stronger.\n        '},{title:"What are the main differences in formulas between Nutrafol Men, Women, Postpartum, and Women’s Balance?",content:"\n          Our Hair Growth Nutraceuticals are clinically tested and physician-formulated to the bio-specific needs of men and women through all life stages and lifestyles. The key root causes of thinning hair affect men and women differently and can change over time—so we created multiple formulas to give your hair exactly what it needs, when it needs it most.\n          <br/><br/>\n          Women’s formula focuses on addressing the key root causes of hair thinning for women 18-44 years old when stress, lifestyle habits and nutrition play a heightened role in hair health.\n          <br/><br/>\n          Women’s Balance is formulated for women 45+ to support the key root causes of hair thinning for women such as stress with optimized support for hormonal changes, such as menopause that affect hair health.\n          <br/><br/>\n          Postpartum is OBGYN-formulated to address the key root causes of hair thinning and shedding for women within the first year of giving birth and through the time they are breastfeeding such as the physical and emotional stress, hormonal changes and nutritional support.\n          <br/><br/>\n          Men’s formula multi-targets the key root causes of thinning for men 18+ such as stress and poor nutrition with optimized support of hair-growth inhibiting DHT hormone, without compromising sexual performance.\n            <br /><br />\n          Men 50+ is for men ages 50 and older experiencing compromised hair health. This formula addresses the unique biological needs of mature men by targeting key root causes of hair thinning that impact them the most, like cellular aging and collagen degradation.`,\n   \n        "}]}};var ae=()=>(0,i.Y)("div",{"data-component":"NutrafolAcademyPage","data-source-file":"nutrafolacademy.js"}
1,(0,i.Y)(n.A,{title:te.seo.title,description:te.seo.description,"data-element":"SEO","data-component":"NutrafolAcademyPage","data-source-file":"nutrafolacademy.js"}),(0,i.Y)(l,{data:te.hero,"data-element":"Banner","data-source-file":"nutrafolacademy.js"}),(0,i.Y)(K,{data:te.learning,"data-element":"Learning","data-source-file":"nutrafolacademy.js"}),(0,i.Y)($.A,{data:te.faqAccordion,"data-element":"FaqAccordion","data-source-file":"nutrafolacademy.js"}))},83522:function(e,t,a){var o=a(96540);function n(e){return o.createElement("svg",e,o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3.5C9.46957 3.5 8.96086 3.71071 8.58579 4.08579C8.21071 4.46086 8 4.96957 8 5.5V7.5H12V5.5C12 4.96957 11.7893 4.46086 11.4142 4.08579C11.0391 3.71071 10.5304 3.5 10 3.5ZM7 5.5V7.5H4.54545C3.95367 7.5 3.5 7.99031 3.5 8.5625V16.4375C3.5 17.0097 3.95367 17.5 4.54545 17.5H15.4545C16.0463 17.5 16.5 17.0097 16.5 16.4375V8.5625C16.5 7.99031 16.0463 7.5 15.4545 7.5H13V5.5C13 4.70435 12.6839 3.94129 12.1213 3.37868C11.5587 2.81607 10.7956 2.5 10 2.5C9.20435 2.5 8.44129 2.81607 7.87868 3.37868C7.31607 3.94129 7 4.70435 7 5.5ZM4.54545 8.5H7.5H12.5H15.4545C15.4621 8.5 15.4712 8.5024 15.4813 8.51283C15.4917 8.52352 15.5 8.54013 15.5 8.5625V16.4375C15.5 16.4599 15.4917 16.4765 15.4813 16.4872C15.4712 16.4976 15.4621 16.5 15.4545 16.5H4.54545C4.53791 16.5 4.52882 16.4976 4.51871 16.4872C4.50834 16.4765 4.5 16.4599 4.5 16.4375V8.5625C4.5 8.54013 4.50834 8.52352 4.51871 8.51283C4.52882 8.5024 4.53791 8.5 4.54545 8.5ZM10 13.25C10.4142 13.25 10.75 12.9142 10.75 12.5C10.75 12.0858 10.4142 11.75 10 11.75H9.9995H9.999C9.58479 11.75 9.249 12.0858 9.249 12.5C9.249 12.9142 9.58479 13.25 9.999 13.25H9.9995H10Z",fill:"#22202F"}))}n.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=n,n.default=n},86245:function(e,t,a){var o=a(96540);function n(e){return o.createElement("svg",e,[o.createElement("path",{d:"M0 3.2C0 2.0799 0 1.51984 0.217987 1.09202C0.409734 0.715695 0.715695 0.409734 1.09202 0.217987C1.51984 0 2.0799 0 3.2 0H20.8C21.9201 0 22.4802 0 22.908 0.217987C23.2843 0.409734 23.5903 0.715695 23.782 1.09202C24 1.51984 24 2.0799 24 3.2V20.8C24 21.9201 24 22.4802 23.782 22.908C23.5903 23.2843 23.2843 23.5903 22.908 23.782C22.4802 24 21.9201 24 20.8 24H3.2C2.0799 24 1.51984 24 1.09202 23.782C0.715695 23.5903 0.409734 23.2843 0.217987 22.908C0 22.4802 0 21.9201 0 20.8V3.2Z",fill:"#041C1B",fillOpacity:"0.2",key:0}),o.createElement("path",{d:"M12 5.90039C12.663 5.90039 13.2987 6.16397 13.7676 6.63281C14.2363 7.10163 14.5 7.73744 14.5 8.40039V9.90039H16.3643C16.8955 9.90073 17.2998 10.3407 17.2998 10.8506V17.1504C17.2996 17.6601 16.8953 18.1002 16.3643 18.1006H7.63672C7.13856 18.1006 6.75169 17.7135 6.70508 17.2451L6.7002 17.1504V10.8506C6.7002 10.3405 7.10519 9.90039 7.63672 9.90039H9.5V8.40039C9.5 7.73744 9.7637 7.10163 10.2324 6.63281C10.7013 6.16397 11.337 5.90039 12 5.90039ZM7.7002 17.1006H16.2998V10.9004H7.7002V17.1006ZM12 13.75C12.4142 13.75 12.75 14.0858 12.75 14.5C12.75 14.9142 12.4142 15.25 12 15.25H11.999C11.585 15.2497 11.249 14.9141 11.249 14.5C11.249 14.0859 11.585 13.7503 11.999 13.75H12ZM12 6.90039C11.6022 6.90039 11.2208 7.05854 10.9395 7.33984C10.6583 7.62113 10.5 8.00266 10.5 8.40039V9.90039H13.5V8.40039C13.5 8.00266 13.3417 7.62113 13.0605 7.33984C12.7792 7.05854 12.3978 6.90039 12 6.90039Z",fill:"white",key:1})])}n.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.exports=n,n.default=n},86773:function(e,t,a){var o=a(96540);function n(e){return o.createElement("svg",e,[o.createElement("path",{d:"M0.5 3.2C0.5 2.0799 0.5 1.51984 0.717987 1.09202C0.909734 0.715695 1.21569 0.409734 1.59202 0.217987C2.01984 0 2.5799 0 3.7 0H21.3C22.4201 0 22.9802 0 23.408 0.217987C23.7843 0.409734 24.0903 0.715695 24.282 1.09202C24.5 1.51984 24.5 2.0799 24.5 3.2V20.8C24.5 21.9201 24.5 22.4802 24.282 22.908C24.0903 23.2843 23.7843 23.5903 23.408 23.782C22.9802 24 22.4201 24 21.3 24H3.7C2.5799 24 2.01984 24 1.59202 23.782C1.21569 23.5903 0.909734 23.2843 0.717987 22.908C0.5 22.4802 0.5 21.9201 0.5 20.8V3.2Z",fill:"#041C1B",fillOpacity:"0.2",key:0}),o.createElement("path",{d:"M17.8703 11.5448L9.23041 5.67824C9.15764 5.62882 9.07433 5.60184 8.98906 5.60007C8.90379 5.59829 8.81963 5.62179 8.74524 5.66814C8.67086 5.7145 8.60893 5.78203 8.56582 5.8638C8.52272 5.94556 8.5 6.03861 8.5 6.13337V17.8666C8.5 17.9613 8.52272 18.0544 8.56582 18.1362C8.60893 18.2179 8.67086 18.2855 8.74524 18.3318C8.81963 18.3782 8.90379 18.4017 8.98906 18.3999C9.07433 18.3981 9.15764 18.3711 9.23041 18.3217L17.8703 12.4551C17.9404 12.4075 17.9984 12.3406 18.0386 12.2609C18.0789 12.1812 18.1 12.0913 18.1 12C18.1 11.9086 18.0789 11.8188 18.038
16 11.7391C17.9984 11.6594 17.9404 11.5925 17.8703 11.5448Z",fill:"white",key:1})])}n.defaultProps={width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},e.exports=n,n.default=n}}]);

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.