1/*! For license information please see 7dd65382e6d4c03324edd5e7e65ac31fcc78eb82-3d9d0048261fbc593cca.js.LICENSE.txt */ 2"use strict";(self.webpackChunknutrafol=self.webpackChunknutrafol||[]).push([[948],{4658:function(e,t,n){n.d(t,{A:function(){return f}});n(96540);var a=n(59639),o=n(20880),i=n(37245),l=n(73310),r=n(20813);const d="1420px",c=(0,l.default)(a.Box,{target:"eod1bna4"})(""),u=(0,l.default)(a.Flex,{target:"eod1bna3"})("flex-direction:column;align-items:center;@media (min-width: ",d,"){flex-direction:row;align-items:stretch;}.content-flex-child{width:100%;overflow:hidden;@media (min-width: 1024px){width:75%;}@media (min-width: ",d,"){width:50%;}}"),s=(0,l.default)(a.Flex,{target:"eod1bna2"})("flex-direction:column;order:0;border-radius:4px 4px 0 0;@media (min-width: 768px) and (max-width: 1419px){border-bottom:0;}@media (min-width: ",d,"){order:1;border-left:0;border-radius:0 4px 4px 0;}.text-flex-copy{padding:16px 0 16px 0;@media (min-width: 768px){padding:16px 0 40px 0;}@media (min-width: 1024px){padding:24px 0 40px 0;}}"),p=(0,l.default)(a.Flex,{target:"eod1bna1"})("order:1;border-radius:0 0 4px 4px;@media (min-width: ",d,"){order:0;border-radius:4px 0 0 4px;}"),m=(0,l.default)(r.l,{target:"eod1bna0"})("align-self:flex-start;margin-top:auto;@media (min-width: ",d,"){align-items:flex-end;}");var x=n(17437);const v={dark:{bg:"bg-nova-base-black",color:"text-nova-base-white",border:"border-nova-transparency-white-40"},light:{bg:"",color:"text-nova-base-black",border:"border-nova-transparency-black-20"}};var f=e=>{let t=e.data,n=e.mode,a=void 0===n?"dark":n;const l=t.images,r=t.heading,d=t.copy,f=t.button,g=v[a],b=g.bg,h=g.color,y=g.border;return(0,x.Y)(c,{"data-element":"Wrapper","data-component":"IngredientsCta","data-source-file":"ingredients-cta.js"},(0,x.Y)(i.A,{className:b,"data-element":"Section","data-component":"IngredientsCta","data-source-file":"ingredients-cta.js"},(0,x.Y)(u,{"data-element":"ContentFlex","data-component":"IngredientsCta","data-source-file":"ingredients-cta.js"},(0,x.Y)(s,{px:[32,null,null,80],py:[32,null,48,80],className:"content-flex-child border "+y,"data-element":"TextFlex","data-component":"IngredientsCta","data-source-file":"ingredients-cta.js"},(0,x.Y)(o.TextElementNova,{element:"h2",text:r,className:"Title-10-Super-Normal text-flex-heading "+h,"data-element":"TextElementNova","data-component":"IngredientsCta","data-source-file":"ingredients-cta.js"}),(0,x.Y)(o.TextElementNova,{element:"h2",text:d,className:"CTA-20-Dia-Normal text-flex-copy "+h,"data-element":"TextElementNova","data-source-file":"ingredients-cta.js"}),(0,x.Y)(m,{label:f.text,copyClassName:h,trackObject:{name:"Marketing CTA Clicked",destination:f.linkTo,text:f.text,type:"button",module_name:"ingredients"},icon:"Left",level:"Tertiary",className:"text-flex-button",ctaLink:f.linkTo,"data-element":"CtaButton","data-source-file":"ingredients-cta.js"})),(0,x.Y)(p,{className:"content-flex-child","data-element":"ImgFlex","data-source-file":"ingredients-cta.js"},(0,x.Y)("picture",{className:"w-full","data-element":"picture","data-source-file":"ingredients-cta.js"},(0,x.Y)("source",{srcSet:l.imageDesktop,media:"(min-width: 1024px)"}),(0,x.Y)("source",{srcSet:l.imageTablet,media:"(min-width: 768px)"}),(0,x.Y)("img",{src:l.imageMobile,alt:"",role:"presentation",className:"w-full"}))))))}},5018:function(e,t,n){var a=n(96540);const o={balance:"bal",postpartum:"pos",men:"men"};t.A=function(e){void 0===e&&(e=3);const t=(0,a.useState)("women"),n=t[0],i=t[1],l=(0,a.useState)(e),r=l[0],d=l[1];return(0,a.useEffect)(()=>{var e,t,n,a,l;let r=window.location,c=r.search,u=r.hash;c=null===(e=c)||void 0===e?void 0:e.toLowerCase(),u=null===(t=u)||void 0===t?void 0:t.toLowerCase();const s=u?u.substring(1):"";let p=Number(s[0]),m=null===(n=new URLSearchParams(c))||void 0===n||null===(a=n.get("sku"))||void 0===a||null===(l=a.replace("gsml",""))||void 0===l?void 0:l.replace("menpro","men"),x=Object.keys(o).find(e=>s.includes("-"+e));m&&(p=Number(m[3]),x=Object.keys(o).find(e=>m.startsWith(o[e]))),i(x||"women"),[1,3,6].includes(p)&&d(p)},[]),{type:n,months:r}}},7034:function(e,t,n){var a=n(96540),o=n(11808),i=n(62987),l=n(20880),r=n(20813),d=n(43185),c=n(5302),u=n(59639),s=n(17437);t.A=e=>{var t;let n=e.product,p=e.label,m=void 0===p?"Add to Cart":p,x=e.source,v=e.purchase_source,f=e.className,g=void 0===f?"":f,b=e.subscriptionId,h=void 0===b?null:b,y=e.freeGiftSku,_=void 0===y?null:y,N=e.oneTimeProduct,k=void 0===N?null:N,w=e.promo_code,Y=void 0===w?null:w,C=e.disclaimer,S=void 0===C?null:C,T=e.useDpaParam,B=void 0!==T&&T;const j=(0,a.useState)(!1),A=j[0],E=j[1],I=(0,a.useState)(null),P=I[0],F=I[1];if(!n)return null;const O=(null==n?void 0:n.code)||Y||(null==n||null===(t=n.ui_data)||void 0===t?void 0:t.code),D=function(e){var t,a,l,r,u;if(void 0===e&&(e=!1),F(null),A)return;E(!0);const s=(0,d.v8)("queryID");let p=n;e&&(p=k);const f=(null===(t=p)||void 0===t?void 0:t.sku)||(null===(a=p)||void 0===a||null===(l=a.ui_data)||void 0===l?void 0:l.sku);f||(F("Product addition failed. Please add another option or try again later."),console.error("handleAtcClick error - product not found ",p),E(!1));const g=null!=f&&f.includes("-")?"":"-S01",b=O?"&code="+O:"",y=h?"&reactivation="+h:"",N=(0,c.mQ)(B?p:null).dpaSfx;i.F.onProductAdded({options:[Object.assign({sku:f+g,variant:null===(r=p)||void 0===r||null===(u=r.ui_data)||void 0===u?void 0:u.title},p,O&&!e?{coupon:O}:{})],purchase_source:x,queryID:s,text:m,type:"button",business_line:"Hair",index:"Products"}),_&&O&&!e&&(0,o.segmentEvent)("Gift Added",{billing_interval:"1 month",core_category:null,coupon:O,name:"Wet Brush & Microfiber Towel",price:0,product_category:"Scalp Support",product_gender:"All",purchase_type:"One-time",quantity:1,shipping_interval:"1 month",sku:_+"-N01",source:x});const w="\n https://nutrafol.com/dpa/add/tocart?skus="+(f+g+b+y+N)+"&purchase_source="+v;window.location.href=w};return(0,s.Y)("div",{"data-component":"AtcButton","data-source-file":"atcbutton.js"},P?(0,s.Y)("div",{className:"py-4"},(0,s.Y)(l.TextElementNova,{text:P,className:"Body-20-Dia-Strong text-nova-functional-error"})):null,(0,s.Y)(r.l,{primary:!0,icon:"Right",label:m,id:"atc-button",onClick:e=>{D(!1)},className:"!w-full "+g+" "+(A?"disabled":""),"data-element":"ButtonNova","data-component":"AtcButton","data-source-file":"atcbutton.js"}),null!=k&&k.price?(0,s.Y)(u.Box,{pt:[24]},(0,s.Y)(r.l,{level:"Textlink",label:"Buy Once for $"+(null==k?void 0:k.price)+((null==k?void 0:k.price)<=100?" + $6.95 shipping":""),className:"mx-auto block buy-once max-h-[22px] "+(A?"disabled":""),onClick:e=>{D(!0)}})):null,null!=k&&k.price&&S?(0,s.Y)(u.Box,{pt:[8,8,16],pb:[24,24,16,24]},(0,s.Y)(l.TextElementNova,{text:S,className:"Body-10-Dia-Normal text-nova-transparency-black-60 text-center"})):null)}},7876:function(e,t,n){n(96540);var a=n(59639),o=n(20880),i=n(11808),l=n(62987),r=n(98018),d=n(74838),c=n(17437);t.A=e=>{let t=e.productOptions,n=void 0===t?null:t,u=e.optionButtonClasse
2s,s=void 0===u?"":u,p=e.products,m=e.selectedProduct,x=e.setSelectedProduct,v=e.productSelectedSegment,f=void 0!==v&&v;const g=n||p[m.productIndex].options,b=1===g.length,h=e=>{var t;return e.savings||(null==e||null===(t=e.ui_data)||void 0===t?void 0:t.savings)},y=e=>e.price%1>0?e.price.toFixed(2):e.price,_=e=>e.old_price_ui?e.old_price_ui%1>0?e.old_price_ui.toFixed(2):e.old_price_ui:e.old_price?e.old_price%1>0?e.old_price.toFixed(2):e.old_price:void 0;return(0,c.Y)(r.y2,{className:"multiple-options","data-element":"OptionsWrapper","data-component":"SubscriptionOptions","data-source-file":"subscriptionoptions-bfcm.js"},g.map((e,t)=>{var u,v,N;return(0,c.Y)(r.m_,{key:t,as:b?"div":"button",className:(b||m.optionIndex===t?"active":"")+" "+s,onClick:()=>(e=>{if(x(Object.assign({},m,{optionIndex:e})),f){const t=(null==n?void 0:n[e])||p[m.productIndex].options[e],a={option:t,billing_interval:null==t?void 0:t.billing_interval,core_category:null==t?void 0:t.product_core_category,name:null==t?void 0:t.name,price:null==t?void 0:t.price,product_gender:(null==t?void 0:t.product_gender)||(null==t?void 0:t.product_gender_new),purchase_type:null==t?void 0:t.purchase_type,shipping_interval:null==t?void 0:t.shipping_interval,sku:(null==t?void 0:t.sku)+(null!=t&&t.sku.includes("-")?"":"one-time"===(null==t?void 0:t.type)?"-N01":"-S01"),variant:null==t?void 0:t.title,type:"button"};null!=t&&t.code&&(a.coupon=null==t?void 0:t.code),l.F.onProductSelected(a)}else(0,i.segmentEvent)("Subscription Option Selected",{type:"subscription",subscription:g[e].name})})(t)},b?null:(0,c.Y)(a.Box,{mr:["8px",16],pt:["2px","5px"]},(0,c.Y)(r.a,{className:m.optionIndex===t?"active":""})),(0,c.Y)(a.Box,{flex:"1"},(0,c.Y)(a.Flex,{alignItems:"center",justifyContent:"space-between",mb:"8px",className:"gap-[2px] sm:gap-[8px]"},(0,c.Y)(a.Flex,{alignItems:"center",flexWrap:"wrap",className:"flex-title flex-title-"+t},(0,c.Y)(o.TextElementNova,{className:"Body-20-Dia-Strong",text:(null==e||null===(u=e.ui_data)||void 0===u?void 0:u.title)||e.title}),h(e)?(0,c.Y)(d.A,{data:{line:h(e),classes:"bg-nova-brand-accent-80 tag"}}):null),(0,c.Y)(a.Box,null,(0,c.Y)(o.TextElementNova,{className:"Body-20-Dia-Strong",text:"$"+y(e)}))),(0,c.Y)(a.Flex,{justifyContent:"space-between",mb:"8px",className:"gap-[8px]"},(0,c.Y)(a.Box,null,(0,c.Y)(o.TextElementNova,{className:"Caption-10-Dia-Normal text_description",text:e.text_description||(null==e||null===(v=e.ui_data)||void 0===v?void 0:v.text_description)})),(0,c.Y)(a.Box,null,(0,c.Y)(o.TextElementNova,{className:"Caption-10-Dia-Normal line-through text-nova-transparency-black-70",text:"$"+_(e)}))),(0,c.Y)(a.Box,null,(0,c.Y)(o.TextElementNova,{className:"Caption-10-Dia-Normal text-nova-transparency-black-70",text:e.text_shipping||(null==e||null===(N=e.ui_data)||void 0===N?void 0:N.text_shipping)}))))}))}},20821:function(e,t,n){n.d(t,{L:function(){return u}});var a=n(96540),o=n(71500);let i="undefined"!=typeof document?a.useLayoutEffect:a.useEffect,l=e=>e&&!Array.isArray(e)&&"object"==typeof e,r=[],d={},c=o.Ay;const u=(e,t=r)=>{let n=d;l(e)?(n=e,e=null,t="dependencies"in n?n.dependencies:r):l(t)&&(n=t,t="dependencies"in n?n.dependencies:r),e&&"function"!=typeof e&&console.warn("First parameter must be a function or config object");const{scope:o,revertOnUpdate:u}=n,s=(0,a.useRef)(!1),p=(0,a.useRef)(c.context(()=>{},o)),m=(0,a.useRef)(e=>p.current.add(null,e)),x=t&&t.length&&!u;return x&&i(()=>(s.current=!0,()=>p.current.revert()),r),i(()=>{if(e&&p.current.add(e,o),!x||!s.current)return()=>p.current.revert()},t),{context:p.current,contextSafe:m.current}};u.register=e=>{c=e},u.headless=!0},25063:function(e,t,n){n.d(t,{A:function(){return p}});n(96540);var a=n(59639),o=n(20880),i=(n(11808),n(62987)),l=n(73310),r=n(95704);const d=(0,l.default)(a.Box,{target:"e4fod081"})("display:grid;grid-template-columns:repeat(auto-fit, minmax(80px, 1fr));gap:8px;width:100%;",e=>e.minMaxEven?"grid-template-columns: repeat(auto-fit, minmax(calc(50% - 8px), 1fr));":"grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));","@media (min-width: 768px){",e=>e.minMaxEven?"grid-template-columns: repeat(auto-fit, minmax(calc(25% - 8px), 1fr));":"grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));",";}@media (min-width: 1024px){",e=>e.minMaxEven?"grid-template-columns: repeat(auto-fit, minmax(calc(50% - 8px), 1fr));":"grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));",";}"),c=(0,l.default)("button",{target:"e4fod080"})("display:flex;align-items:center;justify-content:center;padding:16px;border-radius:4px;border:1px solid ",r.default.wild.color.nova.transparency.black[20],";cursor:pointer;@media (max-width: 1023px){max-height:42px;}");var u=n(17437);const s=e=>{let t,n,a=e.onClick,i=e.product,l=e.active,r=void 0!==l&&l,d=e.preventSubmit,s=void 0!==d&&d,p=e.buttonTheme;return"light"===p&&(t="bg-nova-brand-accent-80",n="text-nova-base-black"),"dark"===p&&
2(t="bg-nova-brand-primary-80",n="text-nova-base-white"),(0,u.Y)(c,{className:r?t:"",onClick:e=>{s&&e.preventDefault(),a()},"data-element":"ProductButtonWrapper","data-component":"ProductButton","data-source-file":"productbuttons.js"},(0,u.Y)(o.TextElementNova,{element:"span",className:"CTA-20-Dia-Normal "+(r?n:"text-nova-transparency-black-60"),text:i.name,"data-element":"TextElementNova","data-component":"ProductButton","data-source-file":"productbuttons.js"}))};var p=e=>{let t=e.products,n=e.selectedProduct,l=e.setSelectedProduct,r=e.heading,c=void 0===r?"CHOOSE A HAIR GROWTH NUTRACEUTICAL:":r,p=e.productAddedevent,m=void 0===p?null:p,x=e.preventSubmit,v=void 0!==x&&x,f=e.buttonTheme,g=void 0===f?"light":f;return(0,u.Y)(a.Box,{"data-element":"Box","data-component":"ProductButtons","data-source-file":"productbuttons.js"},c?(0,u.Y)(o.TextElementNova,{className:"Caption-10-Dia-Uppercase mb-2",text:c}):null,(0,u.Y)(d,{minMaxEven:t.length%2==0,"data-element":"ProductButtonContainer","data-component":"ProductButtons","data-source-file":"productbuttons.js"},t.map((e,a)=>(0,u.Y)(s,{key:a,onClick:()=>(e=>{if(null!==e){const o=t[e];if("headspace"===m)i.F.onProductSelected({product:o,core_category:null==o?void 0:o.name,product_gender:"men"!==o.options[0].sku.slice(0,3).toLowerCase()?"Women":"Men",type:"tab"});else{var a;const o=null===(a=t[e])||void 0===a?void 0:a.options[n.optionIndex];i.F.onProductSelected({option:o,billing_interval:null==o?void 0:o.billing_interval,core_category:null==o?void 0:o.product_core_category,name:null==o?void 0:o.name,price:null==o?void 0:o.price,product_gender:null==o?void 0:o.product_gender,purchase_type:null==o?void 0:o.purchase_type,shipping_interval:null==o?void 0:o.shipping_interval,variant:null==o?void 0:o.title,sku:(null==o?void 0:o.sku)+"-S01",type:"tab"})}l(Object.assign({},n,{productIndex:e}))}})(a),product:e,list:!0,active:n.productIndex===a,preventSubmit:v,buttonTheme:g}))))}}}]);
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.