PageSourceSearch

https://www.keeps.com/_next/static/chunks/pages/auto-refill/preferences-f72917a411988e2c.js

js keeps.com collected 2026-10-03 22:04:36 UTC 29,166 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8561],{7334:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var o=n(37876),i=n(54587),r=n.n(i),l=n(52846);let a=(0,o.jsx)(r(),{alt:"Powerhouse tablet",fill:!0,placeholder:"blur",sizes:"100vw",src:l.A,style:{objectFit:"contain"}})},12e3:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(37876);n(14232);var i=n(83629),r=n(84903),l=n(70881),a=n(74899),s=n(6253);let d=(0,n(12071).Ay)(s.az).withConfig({componentId:"sc-77466550-0"})(["position:absolute;top:18px;right:18px;cursor:pointer;z-index:2;"]),c=e=>{let{children:t,isOpen:n,onClose:c,styleConfig:u,center:A,showCloseIcon:_,showCloseButton:E,...p}=e,h=(0,r.n)();return(0,o.jsx)(i.A,{center:A,focusTrapped:!1,onClose:c,open:n,showCloseIcon:_||!1,styles:{content:null==u?void 0:u.content,modal:{padding:0,WebkitTransform:"translateZ(0)",width:h?"100%":"unset",zIndex:l.Ay.layers.indexOf("modal"),...null==u?void 0:u.modal},overlay:{padding:h?0:l.Ay.space[6],...null==u?void 0:u.overlay}},children:(0,o.jsxs)(s.az,{bg:"cream",position:"relative",...p,children:[E&&(0,o.jsx)(d,{onClick:c,children:(0,o.jsx)(a.A,{name:"cart-close"})}),t]})})}},14017:(e,t,n)=>{"use strict";n.d(t,{GF:()=>i,K$:()=>a,Z0:()=>r,ZI:()=>l});var o=n(48235);let i=91,r=(0,o.UT)(0),l=(0,o.UT)(null),a=(0,o.UT)(i)}
1,14402:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var o=n(28888);function i(){let e=(0,o._)(["\n  mutation UpdateProductConsent($productId: Int!, $isOptIn: Boolean!) {\n    keepsUpdateProductConsent(productId: $productId, isOptIn: $isOptIn) {\n      isAnyOptOut\n      pendingProducts {\n        id\n      }\n    }\n  }\n"]);return i=function(){return e},e}let r=(0,n(27630).J1)(i())},27484:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auto-refill/preferences",function(){return n(64882)}])},29553:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var o=n(37876),i=n(14232),r=n(12071),l=n(84903),a=n(74899),s=n(6253);let d=(0,r.Ay)(s.az).withConfig({componentId:"sc-89d49c97-0"})(["position:relative;display:flex;align-items:center;transition:all 0.3s ease;height:50px;"]),c=(0,r.Ay)(s.az).withConfig({componentId:"sc-89d49c97-1"})(["position:absolute;img{transition:all 0.3s ease;transform:scale(",");opacity:",";width:auto;height:100%;}"],e=>e.active?1:.5,e=>Number(e.active)),u=e=>{let{forceCrown:t,...n}=e,r=(0,l.n)(),[s,u]=(0,i.useState)("logo");(0,i.useEffect)(()=>{let e=e=>{var t,n;let o=e.target;(null==(t=o.documentElement)?void 0:t.scrollTop)>0&&"keeps-crown"!==s&&u("keeps-crown"),(null==(n=o.documentElement)?void 0:n.scrollTop)<=0&&u("logo")};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[s]);let A=t?"keeps-crown":s;return(0,o.jsxs)(d,{height:r?40:50,justifyContent:"center",width:"logo"===A?"119px":"60px",...n,children:[(0,o.jsx)(c,{active:"keeps-crown"===A,children:(0,o.jsx)(a.A,{height:18,width:"100%",name:"keeps-crown"})}),(0,o.jsx)(c,{active:"logo"===A,children:(0,o.jsx)(a.A,{height:r?34:44,width:"100%",name:"logo"})})]})}},37436:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(14232),i=function(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0};function r(e){void 0===e&&(e={});var t,n,r,l,a,s,d=e.onResize,c=(0,o.useRef)(void 0);c.current=d;var u=e.round||Math.round,A=(0,o.useRef)(),_=(0,o.useState)({width:void 0,height:void 0}),E=_[0],p=_[1],h=(0,o.useRef)(!1);(0,o.useEffect)(function(){return function(){h.current=!0}},[]);var P=(0,o.useRef)({width:void 0,height:void 0}),T=(t=(0,o.useCallback)(function(t){return A.current&&A.current.box===e.box&&A.current.round===u||(A.current={box:e.box,round:u,instance:new ResizeObserver(function(t){var n=t[0],o="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",r=i(n,o,"inlineSize"),l=i(n,o,"blockSize"),a=r?u(r):void 0,s=l?u(l):void 0;if(P.current.width!==a||P.current.height!==s){var d={width:a,height:s};P.current.width=a,P.current.height=s,c.current?c.current(d):h.current||p(d)}})}),A.current.instance.observe(t,{box:e.box}),function(){A.current&&A.current.instance.unobserve(t)}},[e.box,u]),n=e.ref,r=(0,o.useRef)(null),l=(0,o.useRef)(null),a=(0,o.useRef)(),s=(0,o.useCallback)(function(){var e=null;r.current?e=r.current:n&&(e=n instanceof HTMLElement?n:n.current),(!l.current||l.current.element!==e||l.current.reporter!==s)&&(a.current&&(a.current(),a.current=null),l.current={reporter:s,element:e},e&&(a.current=t(e)))},[n,t]),(0,o.useEffect)(function(){s()},[s]),(0,o.useCallback)(function(e){r.current=e,s()},[s]));return(0,o.useMemo)(function(){return{ref:T,width:E.width,height:E.height}},[T,E?E.width:null,E?E.height:null])}},40838:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var o=n(37876);n(14232);var i=n(12071),r=n(84903),l=n(84541),a=n(74899),s=n(14789),d=n(9781),c=n(6253),u=n(7833),A=n(12e3);let _=(0,i.Ay)(c.az).withConfig({componentId:"sc-e8ce51c-0"})(["max-width:764px;background:#f5f3ed;padding:51px 30px;text-align:center;"]),E=e=>{let{toggleModal:t,isModalOpen:n,onConfirm:i,onCancel:E}=e,p=(0,r.n)();return(0,o.jsx)(A.A,{showCloseIcon:!0,onClose:t,isOpen:n,center:!0,children:(0,o.jsx)(_,{width:p?null:"100vw",children:(0,o.jsxs)(c.az,{maxWidth:486,mx:"auto",children:[(0,o.jsx)(a.A,{name:"stop"}),(0,o.jsx)(d.fz,{fontSize:2,bold:!0,mt:5,children:"Are you sure?"}),(0,o.jsx)(d.fz,{mt:4,children:"Automatic refills are the easiest way to stay on track with your treatment, giving you the best chance at seeing results."}),(0,o.jsx)(d.fz,{bold:!0,mt:5,color:"cta",children:"If you opt out of automatic refills for your prescription, we cannot proactively send you treatment after your first order."}),(0,o.jsx)(d.fz,{mt:5,children:"Can we send you refills automatically?"}),p?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.so,{mt:5,justifyContent:"center",children:(0,o.jsx)(s.A,{onClick:i,width:228,height:60,mx:"8px",children:"PLEASE SHIP REFILLS"})}),(0,o.jsx)(u.so,{mt:5,justifyContent:"center",children:(0,o.jsx)(s.A,{onClick:E,width:228,height:60,variant:"invertedPrimary",mx:"8px","data-testid":l.A.AR_OPT_OUT_BUTTON_MOBILE,children:"No, I don’t want to see results"})})]}):(0,o.jsxs)(u.so,{mt:5,justifyContent:"center",children:[(0,o.jsx)(s.A,{onClick:E,width:228,height:60,variant:"invertedPrimary",mx:"8px","data-testid":l.A.AR_OPT_OUT_BUTTON,children:"No, I don’t want to see results"}),(0,o.jsx)(s.A,{onClick:i,width:228,height:60,mx:"8px",children:"PLEASE SHIP REFILLS"})]})]})})})}},58300:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var o=n(37876),i=n(14232),r=n(34610),l=n(14017),a=n(12071),s=n(51783),d=n(670),c=n(3464),u=n(89099),A=n(37436),_=n(57484),E=n(70881),p=n(91844),h=n(97323),P=n(95787),T=n(29553),C=n(83494),f=n(6253),O=n(7833);let I=(0,a.Ay)(f.az).withConfig({componentId:"sc-6435f060-0"})(["position:fixed;top:0;width:100%;min-width:","px;z-index:6;",""],E.im[0],e=>{let{showBorderBottom:t}=e;return t&&"border-bottom: 2px solid ".concat(E.Tj.greyLight,";")}),S=[_.Ay.INTAKE_CONSULTATION,_.Ay.SH_INTAKE_CONSULTATION,_.Ay.DERMATOLOGY_CONSULTATION,_.Ay.PHQ9_CONSULTATION,_.Ay.CHECKIN_CONSULTATION,_.Ay.PHOTO_INTRO,_.Ay.WELCOME_TO_KEEPS,_.Ay.THANK_YOU,_.Ay.AUTO_REFILL_PREFERENCES,"/consultation/photo-upload/[imageStep]"],N=e=>{let{preventLogoRedirect:t,redirectOverride:n="https://www.keeps.com/",redirectOnClick:r,showBackBtn:a,hideSteps:s,showOfferBanner:E=!0,showBorderBottom:f=!1,isOnlyOtpRxProducts:N}
1=e,{ref:m,height:R=l.GF}=(0,A.A)(),L=(0,u.useRouter)(),{data:x}=(0,d.I)(c.xM);L.pathname===_.Ay.QUIZ&&(null==x?void 0:x.isLoggedIn)&&(n=_.Ay.DASHBOARD);let g=!S.includes(L.pathname);return(0,i.useEffect)(()=>{(0,l.K$)(R)},[R]),(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(I,{bg:"white",ref:m,showBorderBottom:f,children:[g&&E&&!N&&(0,o.jsx)(C.A,{}),(0,o.jsxs)(O.so,{alignItems:"center",py:[0,0,3],position:"relative",px:4,zIndex:2,bg:"white",children:[(0,o.jsx)(O.so,{flex:"1 0 0",children:a&&(0,o.jsx)(h.A,{onClick:()=>{L.back()},icon:"back-arrow-black"})}),(0,o.jsx)(p.$e,{href:n,onClick:r,renderLink:!t,children:(0,o.jsx)(T.A,{})}),(0,o.jsx)(O.so,{justifyContent:"flex-end",flex:"1 0 0"})]}),!s&&(0,o.jsx)(P.A,{isOnlyOtpRxProducts:N})]})})},m=(0,a.Ay)(O.pC).withConfig({componentId:"sc-516e35ef-0"})(["margin-top:",";position:relative;flex:1;align-self:stretch;min-height:calc(var(--app-height) - ",");"],e=>{let{offset:t}=e;return t+"px"},e=>{let{offset:t}=e;return t+"px"}),R=e=>{let{bg:t=s.T.white,children:n,preventLogoRedirect:i,redirectOverride:a,redirectOnClick:d,showOfferBanner:c,hideSteps:u,showBackBtn:A,showBorderBottom:_,isOnlyOtpRxProducts:E}=e,p=(0,r.q)(l.K$),h="calc(100vh - ".concat(p,")");return(0,o.jsxs)(O.pC,{minHeight:["initial","initial",h],children:[(0,o.jsx)(N,{hideSteps:u,preventLogoRedirect:i,redirectOverride:a,redirectOnClick:d,showOfferBanner:c,showBackBtn:A,showBorderBottom:_,isOnlyOtpRxProducts:E}),(0,o.jsx)(m,{bg:t,offset:p,children:null!=n?n:null})]})}},62306:(e,t,n)=>{"use strict";n.d(t,{HE:()=>p,M2:()=>h,ho:()=>E,py:()=>_,qP:()=>A});var o=n(79672),i=n(16252),r=n(78751),l=n(25784),a=n(52846),s=n(83081),d=n(49006),c=n(2062),u=n(45031);let A={teal:"linear-gradient(156.66deg, #0e737a 6.53%, #003e5b 97.57%)",blue:"linear-gradient(156.66deg, #184d71 6.53%, #144464 97.57%)",purple:"linear-gradient(156.66deg, #272c6f 6.53%, #2b4478 97.57%)",navy:"linear-gradient(141deg, #283F80 3.73%, #1D284E 100.97%)"},_={[o.SA.FINASTERIDE]:"products/finasteride",[o.SA.TOPICAL_FINASTERIDE_AND_MINOXIDIL]:"products/topicalFinMin",[o.SA.TOPICAL_FINASTERIDE_AND_MINOXIDIL_FOAM]:"products/topicalFinMin",[o.SA.KETOCONAZOLE]:"products/keto",[o.SA.MINOXIDIL]:"products/minoxidilSolution",[o.SA.MINOXIDIL_FOAM]:"products/minoxidilFoam",[o.SA.MINOXIDIL_ORAL]:"products/finasteride",[o.SA.MINOXIDIL_SPRAY]:"products/sprayPlus",[o.SA.POMADE]:"products/thickeningPomade",[o.SA.THICKENING_CONDITIONER]:"products/thickeningConditioner",[o.SA.THICKENING_SHAMPOO]:"products/thickeningShampoo",[o.SA.COMPOUNDED_SILDENAFIL]:"products/almondPill",[o.SA.COMPOUNDED_TADALAFIL]:"products/almondPill",[o.SA.SILDENAFIL]:"products/almondPill",[o.SA.SILDENAFIL_GUMMY]:"products/almondPill",[o.SA.SILDENAFIL_TADALAFIL]:"products/almondPill",[o.SA.SILDENAFIL_TADALAFIL_GUMMY]:"products/almondPill",[o.SA.TADALAFIL]:"products/almondPill",[o.SA.TADALAFIL_GUMMY]:"products/almondPill",[o.SA.DAILY_TADALAFIL_GUMMY]:"products/almondPill",[o.SA.POWERHOUSE]:"products/almondPill",[o.SA.POWERHOUSE_MAX]:"products/almondPill",[o.SA.SERTRALINE]:"products/roundPill",[o.SA.FLUOXETINE]:"products/roundPill",[o.SA.ESCITALOPRAM]:"products/roundPill",[o.SA.DAILY_DEFENSE_SUPPLEMENT]:"products/daily-hair-defense-supplement",[o.SA.CLIMAX_DELAY_SPRAY]:"products/climax-delay-spray",[o.SA.MINOXIDIL_DUTASTERIDE_CHEW]:"products/almondPill",[o.SA.MINOXIDIL_DUTASTERIDE_PLUS_CHEW]:"products/almondPill",[o.SA.MINOXIDIL_DUTASTERIDE_PLUS_SOL]:"products/drop",[o.SA.FINASTERIDE_MINOXIDIL_DROPS]:"products/drop",[o.SA.MINOXIDIL_FINASTERIDE_CHEW]:"products/almondPill"},E={[i.o.Finasteride]:"products-green/roundPill",[i.o.TopicalFinasterideAndMinoxidil]:"products-green/foamBubbles",[i.o.TopicalFinasterideAndMinoxidilFoam]:"products-green/foamBubbles",[i.o.Ketoconazole]:"products-green/bubbles",[i.o.Minoxidil]:"products-green/dropper",[i.o.MinoxidilFoam]:"products-green/foamBubbles",[i.o.MinoxidilOral]:"products-green/roundPill",[i.o.MinoxidilSpray]:"products-green/sprayPlus",[i.o.Pomade]:"products-green/jar",[i.o.ThickeningConditioner]:"products-green/shampooBottle",[i.o.ThickeningShampoo]:"products-green/shampooBottle",[i.o.Sildenafil]:"products-green/almondPill",[i.o.CompoundedSildenafil]:"products-green/almondPill",[i.o.SildenafilGummy]:"products-green/almondPill",[i.o.SildenafilTadalafil]:"products-green/almondPill",[i.o.SildenafilTadalafilGummy]:"products-green/almondPill",[i.o.Tadalafil]:"products-green/almondPill",[i.o.CompoundedTadalafil]:"products-green/almondPill",[i.o.TadalafilGummy]:"products-green/almondPill",[i.o.DailyTadalafilGummy]:"products-green/almondPill",[i.o.Powerhouse]:"products-green/almondPill",[i.o.PowerhouseMax]:"products-green/almondPill",[i.o.Sertraline]:"products-green/rou
1ndPill",[i.o.Fluoxetine]:"products-green/roundPill",[i.o.Escitalopram]:"products-green/roundPill",[i.o.DailyDefenseSupplement]:"products-green/daily-defense-supplement",[i.o.ClimaxDelaySpray]:"products-green/climax-delay-spray",[i.o.MinoxidilDutasterideChew]:"products-green/almondPill",[i.o.MinoxidilDutasteridePlusChew]:"products-green/almondPill",[i.o.MinoxidilDutasteridePlusSol]:"products-green/drops",[i.o.FinasterideMinoxidilDrops]:"products-green/drops",[i.o.MinoxidilFinasterideChew]:"products-green/almondPill"},p={[i.o.Powerhouse]:a.A,[i.o.PowerhouseMax]:a.A,[i.o.SildenafilGummy]:s.A,[i.o.TadalafilGummy]:c.A,[i.o.DailyTadalafilGummy]:c.A,[i.o.SildenafilTadalafil]:l.A,[i.o.SildenafilTadalafilGummy]:r.A,[i.o.CompoundedSildenafil]:d.A,[i.o.CompoundedTadalafil]:u.A},h={[i.o.CompoundedSildenafil]:A.teal,[i.o.SildenafilGummy]:A.teal,[i.o.CompoundedTadalafil]:A.blue,[i.o.TadalafilGummy]:A.blue,[i.o.DailyTadalafilGummy]:A.blue,[i.o.SildenafilTadalafil]:A.purple,[i.o.SildenafilTadalafilGummy]:A.purple,[i.o.Powerhouse]:A.navy,[i.o.PowerhouseMax]:A.navy}},64706:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o={src:"/_next/static/media/nav-pill-progress.710bd8bd.svg",height:6,width:24,blurWidth:0,blurHeight:0}},64882:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>k,default:()=>B});var o=n(37876),i=n(14232),r=function(e){null!=e&&"function"!=typeof e&&function(e,t){if(!e)throw Error("Invariant failed")}(!1);var t=(0,i.useRef)();(0,i.useEffect)(function(){t.current=function(t){var n=null==e?void 0:e(t);return"string"==typeof n?t.returnValue=n:t.defaultPrevented?t.returnValue="":void 0}},[e]),(0,i.useEffect)(function(){var e=function(e){return t.current(e)};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}},[])},l=n(64177),a=n(14017),s=n(60299),d=n(14402),c=n(66956),u=n(89099),A=n(4750),_=n(76625),E=n(57484),p=n(70881),h=n(12071),P=n(81447),T=n(14789),C=n(7833);let f=(0,h.Ay)("button").withConfig({componentId:"sc-2a2d3e83-0"})(["appearance:none;background:transparent;border:0;display:inline-block;margin:"," 0;font-family:",";font-weight:300;text-decoration:underline;line-height:24px;cursor:pointer;&:hover{text-decoration:none;}"],p.xe[4],p.Ay.fonts.paragraph),O=e=>{let{loading:t,handleSavePreferences:n,handleTurnOffAutoRefill:i,onPolicyLinkClick:r}=e;return(0,o.jsxs)(C.I1,{mt:48,alignItems:"center",children:[(0,o.jsx)(T.A,{width:["100%",176],height:44,minWidth:170,loading:t,onClick:n,children:"yes please"}),(0,o.jsx)(f,{onClick:i,children:"No, I don’t want to see results"}),(0,o.jsx)(P.A,{copy:"By clicking ‘YES PLEASE’ above, you acknowledge you have read and agree to the terms and conditions in our",onClick:r})]})};var I=n(79672),S=n(62306),N=n(71714),m=n(74899),R=n(9781),L=n(6253),x=n(7334);let g=(0,h.Ay)(L.az).withConfig({componentId:"sc-f9397416-0"})(["align-items:center;border:1px solid #cccccc;max-width:408px;display:flex;margin:0 auto;img{max-width:100%;max-height:100%;}"]),y=e=>{let{product:t}=e,{drugType:n,serviceLine:i}=t,r=(0,N.Qn)({drugType:n,serviceLine:i}),l=S.M2[n],a=n===I.SA.POWERHOUSE||n===I.SA.POWERHOUSE_MAX?x.l:null==r?void 0:r.image;return(0,o.jsxs)(g,{py:3,px:4,children:[(0,o.jsx)(L.az,{display:"flex",position:"relative",alignItems:"center",justifyContent:"center",width:50,height:50,mr:3,flexShrink:0,style:l?{background:l,borderRadius:"4px",overflow:"hidden"}:void 0,children:a}),(0,o.jsxs)(L.az,{mr:"auto",children:[(0,o.jsx)(R.fz,{bold:!0,fontSize:1,children:(0,_.Oh)(t)||(null==r?void 0:r.title)||""}),(0,o.jsx)(R.fz,{fontSize:12,children:t.buyNow?"Ships once":"Ships every ".concat((0,_._H)(t.supplyInDays)," months")})]}),t.needsPrescription&&(0,o.jsx)(m.A,{name:"rx-label"})]})},D=e=>{let{products:t}=e,n=t.sort((e,t)=>Number(e.buyNow)-Number(t.buyNow));return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(L.az,{textAlign:["left","center"],mt:48,children:[(0,o.jsx)(R.fz,{bold:!0,fontSize:20,children:"Over-the-Counter Products"}),!t.every(e=>!0===e.buyNow)&&(0,o.jsx)(R.fz,{mt:4,children:"You’ll receive these automatically at the below cadence, so you’ll always have them on hand."})]}),n.map(e=>(0,o.jsx)(L.az,{mt:5,children:(0,o.jsx)(y,{product:e})},e.id))]})};var v=n(84903);let U=()=>{let e=(0,v.n)();return(0,o.jsxs)(L.az,{textAlign:["left","center"],children:[(0,o.jsx)(R.fz,{bold:!0,fontSize:20,children:"Confirm Your Shipping Preferences"}),e?(0,o.jsx)(R.fz,{mt:4,children:"With your Keeps treatment plan, you’ll receive automatic refills of your prescription to stay on track for the best results. In your state, we need your approval to send refills on an ongoing basis."}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(R.fz,{mt:4,children:"With your Keeps treatment plan, you’ll receive automatic refills of your prescription to stay on track for the best results."}),(0,o.jsx)(R.fz,{children:" In your state, we need your approval to send refills on an ongoing basis."})]}),(0,o.jsx)(R.fz,{bold:!0,mt:5,children:"Can we send you refills automatically?"})]})},M=e=>{let{product:t}=e;return(0,o.jsx)(L.az,{mt:5,children:(0,o.jsx)(y,{product:t})})};var b=n(40838),w=n(5322),j=n(58300);let F=E.Ay.DASHBOARD;var k=!0;let B=e=>{var t;let{pendingProductIds:n,pendingProduct:E,otcProducts:h,rxProducts:P,nextProductId:T,journeyKind:C,hideSteps:f,hideOtcAutomaticDisclaimer:I=!1}=e,S=h.length>0,[N,m]=(0,i.useState)(!1),[R,{loading:L}]=(0,l.n)(d.X),x=(0,u.useRouter)(),g=(0,s.s)(),[y,v]=(0,i.useState)(!1),[k,B]=(0,i.useState)(!1),H={rxProductIds:P.map(e=>e.id),otcProductIds:h.map(e=>e.id),pageAfter:x.query.nextUrl||"",pageBefore:x.query.prevUrl,productId:null==E?void 0:E.id,journeyKind:C,serviceLine:null==E?void 0:E.serviceLine,specialty:null==E?void 0:E.specialtyProductCollection},G=async e=>{try{var t;await R({variables:{productId:E.id,isOptIn:e}}),T?x.push({pathname:x.pathname,query:{products:n?n.filter(e=>e!==E.id):null,nextUrl:x.query.nextUrl}}
1):x.push((null==x||null==(t=x.query)?void 0:t.nextUrl)||F)}catch(e){(0,c.S)(e)}finally{m(!1)}},z=e=>{G(!0),g.track(A.nG.OPT_IN_CLICKED,{...H,location:e}),B(!0)};(0,i.useEffect)(()=>{var e,t,n,o;if(f)return;let i=(null==x||null==(t=x.query)||null==(e=t.prevUrl)?void 0:e.includes("annual-check-in"))?["What's Next","Shipping Preferences","Record Your Progress"]:["Hair Loss History","Lifestyle","Medical History","Photos"];(0,a.ZI)({desktop:i,mobile:i}),(0,a.Z0)((null==x||null==(o=x.query)||null==(n=o.prevUrl)?void 0:n.includes("annual-check-in"))?1:2),y||(g.track(A.nG.PAGE_VIEWED,{...H}),v(!0))},[g,H,y,f,null==x||null==(t=x.query)?void 0:t.prevUrl]),r(()=>{k||g.track(A.nG.DROPOFF,{...H})});let K=(0,_.E6)(E.serviceLine);return(0,o.jsxs)(j.A,{hideSteps:f||K,bg:p.Tj.offWhite,children:[(0,o.jsx)(w.xA,{pt:[6,6,7,7],children:(0,o.jsxs)(w.fv,{span:[4,4,8,8],offset:[0,0,2,2],children:[(0,o.jsx)(U,{}),E?(0,o.jsx)(M,{product:E}):null,(0,o.jsx)(O,{loading:L,handleSavePreferences:()=>z(A.KP.PREFERENCES_PAGE),handleTurnOffAutoRefill:()=>{g.track(A.nG.MODAL_VIEWED,{...H}),g.track(A.nG.OPT_OUT_CLICKED,{...H,location:A.KP.PREFERENCES_PAGE}),B(!0),m(!0)},onPolicyLinkClick:()=>{g.track(A.nG.POLICY_LINK_CLICKED,{...H,location:A.KP.PREFERENCES_PAGE})}}),S&&!I&&(0,o.jsx)(D,{products:h})]})}),(0,o.jsx)(b.A,{isModalOpen:N,toggleModal:()=>m(!1),onConfirm:()=>z(A.KP.MODAL),onCancel:()=>{var e;return e=A.KP.MODAL,void(G(!1),g.track(A.nG.OPT_OUT_CLICKED,{...H,location:e}),B(!0))}})]})}},81447:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(37876);n(14232);var i=n(48230),r=n.n(i),l=n(9781);let a=e=>{let{onClick:t,copy:n,maxWidth:i=350,textAlign:a="center"}=e;return(0,o.jsxs)(l.fz,{mx:"auto",maxWidth:i,textAlign:a,fontSize:"12px",color:"greyDarkest",children:[n," ",(0,o.jsx)(r(),{target:"_blank",onClick:t&&t,href:"/legal/automatic-refill-policy",children:"Automatic Refill Policy"}),"."]})}},83494:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var o=n(37876),i=n(14232),r=n(670),l=n(60299),a=n(5727),s=n(67899),d=n.n(s),c=n(89099),u=n(76757),A=n(4750),_=n(57484),E=n(70881),p=n(91844),h=n(9781),P=n(6253),T=n(5322);let C=[_.bw.GET_STARTED_ECOMMERCE,_.bw.GET_STARTED_CREATE_ACCOUNT,_.bw.GET_STARTED_CHECKOUT,_.BV.QUIZ,_.BV.KEEPS2_QUIZ],f=["".concat(_.bw.OUR_PRODUCTS,"/sildenafil-citrate"),"".concat(_.bw.OUR_PRODUCTS,"/tadalafil")],O=i.forwardRef((e,t)=>{var n;let i=(0,c.useRouter)(),s=(0,l.s)(),{data:O}=(0,r.I)(a.Q),I=null==O||null==(n=O.currentOffer)?void 0:n.topBannerText,S=O&&O.uniqueLeadId,N=!C.includes(i.pathname)&&!f.includes(i.asPath);return(0,o.jsx)(o.Fragment,{children:I?(0,o.jsx)(P.az,{bg:"almond",ref:t,zIndex:E.ZF.indexOf("navigation"),minHeight:"36px",children:(0,o.jsx)(T.xA,{children:(0,o.jsx)(T.fv,{span:[12],children:(0,o.jsxs)(h.fz,{"data-cy":"offer-banner",fontSize:8,opacity:1,textAlign:"center",py:2,uppercase:!0,children:[I," ",N&&(0,o.jsx)(p._h,{href:u.stringifyUrl({query:d()(i.query,["utm_campaign","utm_source","utm_medium"]),url:_.BV.KEEPS2_QUIZ}),plainLink:!0,style:{fontWeight:"bold",textDecoration:"underline",whiteSpace:"nowrap"},onClick:()=>{S&&s.track(A.oA.OFFER_BANNER_CLICKS,{user_id:S})},children:"GET STARTED"})]})})})}):null})})},84541:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,x:()=>i});var o=function(e){return e.CHANGE_PLAN_ADDITIONAL_PRODUCTS="changePlanAdditionalProducts",e.CHANGE_PLAN_BTN="changePlan",e.CHANGE_PLAN_BUTTON_ADD_TO_PLAN="Change Plan Button Add To Plan",e.CHANGE_PLAN_BUTTON_CANCEL_ADD_TO_PLAN="Change Plan Button Cancel Add To Plan",e.CHANGE_PLAN_BUTTON_MANAGE="Change Plan Button Manage",e.CHANGE_PLAN_PRODUCT_CARD="Change Plan Product Card",e.CHANGE_PLAN_TABS="Change Plan Tabs",e.CHANGE_PLAN_PRODUCT_CARD_MICRO="Change Plan Product Card Micro",e.CHANGE_PLAN_PRODUCT_SELECTOR="changePlanProductSelector",e.CHANGE_PLAN_SUBSCRIBED_PRODUCTS="changePlanSubscribedProducts",e.CONSULTATION_SUCCESS="consultationSuccess",e.CONV_FUNNEL_BACK_BUTTON="convFunnelBackButton",e.CONV_FUNNEL_SUBMIT_BUTTON="convFunnelSubmitButton",e.DOCTOR_MESSAGE_LIST="doctorMessageList",e.DOCTOR_MESSAGE_TEXT_AREA="doctorMessageTextArea",e.FILE_PICKER="filePicker",e.IMAGE_UPLOAD="upload",e.LOG_OUT="logOut",e.YOUR_PLANS_PLAN_CARD="yourPlansPlanCard",e.YOUR_PLANS_CANCEL_PLAN="yourPlansCancelPlan",e.CANCEL_PLAN_CLAIM_OFFER="cancelPlanClaimOffer",e.CA
1NCEL_PLAN_KEEP_MEMBERSHIP="cancelPlanKeepMembership",e.CANCEL_PLAN_CANCEL_PLAN="cancelPlanCancelPlan",e.CANCEL_PLAN_OFFER_ROW="cancelPlanOfferRow",e.CANCEL_PLAN_REASON_OPTION="cancelPlanReasonOption",e.CANCEL_PLAN_CONTINUE_CANCELLING="cancelPlanContinueCancelling",e.CANCEL_PLAN_CLAIMED_OFFER="cancelPlanClaimedOffer",e.CANCEL_PLAN_NEXT_SHIPMENTS="cancelPlanNextShipments",e.CANCEL_PLAN_BACK_TO_HOME="cancelPlanBackToHome",e.CANCEL_PLAN_REACTIVATE="cancelPlanReactivate",e.NOTIFICATION_ITEM_HEADER="notificationItemHeader",e.RENEWAL_QUIZ_PROGRESS_SUBMIT="renewalQuizProgressSubmit",e.RENEWAL_QUIZ_START="renewalQuizStart",e.REVIEW_PLAN="reviewPlan",e.SALE_PRICE="salePrice",e.SIDE_NAVIGATION_LOADED="sideNavigationLoaded",e.SIDE_NAVIGATION_LOADING="sideNavigationLoading",e.SHIPPING_SUMMARY="shippingSummary",e.SMS_CONSENT="smsConsent",e.TOTAL_PRICE="totalPrice",e.UPSELL_MODAL="upsellModal",e.QUIZ_BODY="quizBody",e.KHR_CTA="khrCta",e.KHR_VIDEO="khrVideo",e.FOOTER="footer",e.PHONE="phone",e.QUIZ_FORM="quizForm",e.QUIZ_CONTINUE="quizContinue",e.QUIZ_IMAGE_UPLOAD_INTRO_STEP="quizImageUploadStep",e.QUIZ_IMAGE_UPLOAD_SKIP_INTRO_STEP="quizImageUploadSkipFirstStep",e.FILE_UPLOAD_INPUT="fileUploaderInput",e.BROWSER_SELECT_CHECKOUT_PAGE="browserSelectOnCheckoutPage",e.MOBILE_SELECT_CHECKOUT_PAGE="mobileSelectOnCheckoutPage",e.MOBILE_SELECT_OPTION_CHECKOUT_PAGE="mobileSelectOptionOnCheckoutPage",e.QUIZ_QUESTION="quizQuestion",e.AFFIRM_BUTTON="affirmButton",e.SHIPPING_ADDRESS_MODAL_EDIT_BUTTON="shippingAddressModalEditButton",e.SHIPPING_ADDRESS_MODAL_USE_BUTTON="shippingAddressModalUseButton",e.SHIPPING_ADDRESS_MODAL_USE_RECOMMENDED_BUTTON="shippingAddressModalUseRecommendedButton",e.SHIPPING_ADDRESS_FORM_ERROR="shippingAddressFormError",e.LEAVE_REGISTRATION_MODAL_STAY_BUTTON="leaveRegistrationModalStayButton",e.LEAVE_REGISTRATION_MODAL_LEAVE_BUTTON="leaveRegistrationModalLeaveButton",e.PRODUCT_PUBLIC_DISPLAYED_NAME="productPublicDisplayedName",e.UPSELL_ADD_BUTTON="upsellAddButton",e.CHECKOUT_SUMMARY="checkoutSummary",e.CHECKOUT_PRODUCT_INFO_CARD="checkoutProductInfoCard",e.CHECKOUT_PRODUCT_INFO_CARD_REMOVE_BUTTON="checkoutProductInfoCardRemoveButton",e.PAYMENT_FORM_ERROR="paymentFormError",e.AR_OPT_OUT_BUTTON="AROptOutButton",e.AR_OPT_OUT_BUTTON_MOBILE="AROptOutButtonMobile",e.CART_CLOSE_CTA="cartCloseCta",e.PRODUCT_INFO_CARD="productInfoCard",e.PRODUCT_INFO_CARD_CADENCE="productInfoCardCadence",e.CART_BANNER="cartBanner",e.OUR_PRODUCTS_PDP_CTA="ourProductsPdpCta",e.OUR_PRODUCTS_PDP_PRODUCT_HEADER="ourProductsPdpProductHeader",e.RECOMM_QUIZ_CHOOSE_PLAN="recommendationsQuizResultsChoosePlan",e.RECOMM_QUIZ_CONTINUE_TO_CHECKOUT="recommendationsQuizResultsContinueToCheckout",e.UPSELL_MODULE="upsellModule",e.LEARN_SECTION_TAB="learnSectionTab",e.LEARN_SECTION_LABEL="learnSectionLabel",e.LEARN_POST_CARD="learnPostCard",e.LEARN_POST_LINK="learnPostLink",e.LEARN_POST_READ_MORE="learnPostReadMore",e.LEARN_POST_HERO_VIDEO="learnPostHeroVideo",e.LEARN_GET_STARTED_CTA="learnGetStartedCta",e.LEARN_BACK_TO_POSTS="learnBackToPosts",e.LEARN_SECTION_NAV="learnSectionNav",e.PRESS_ITEM="pressItem",e.PRESS_READ_MORE="pressReadMore",e.NOTIFICATION_NEW_PRODUCT_LEARN_MORE="notificationNewProductLearnMore",e.NOTIFICATION_NEW_PRODUCT_CTA="notificationNewProductCta",e.NEW_PRODUCT_GET_STARTED="notificationNewProductGetStarted",e}(o||{}),i=function(e){return e.CONSULTATION_IN_REVIEW="consultation-in-review",e.TREATMENT_PLAN_ACCEPTANCE="treatment-plan-acceptance",e.ENABLE_AR="enable-auto-refill-notification",e.SET_AR="set-auto-refill-notification",e.RENEWAL="renewal-notification",e.COMPLETE_ED="complete-ed-quiz",e.DASHBOARD_NOTIFICATIONS="dashboard-notifications",e.FINISH_CHECK_IN_ED="finish-check-in-ed-notification",e.FINISH_CHECK_IN_FMP="finish-check-in-fmp-notification",e.FINISH_UP_CONSULTATION="finish-up-consultation",e.NOT_A_MATCH="not-a-match-notification",e.OFFER_BANNER="offer-banner-notification",e.PURCHASE_TREATMENT_LTDD="purchase-treatment-ltdd-notification",e.RETAKE_CONSULTATION="retake-consultation-notification",e.TAKE_PHOTOS="take-photos",e.TRANSFER_PRESCRIPTION="transfer-prescription",e.TREATMENT_PLAN_REVIEW="treatment-plan-review-notification",e.UPDATE_PAYMENT="update-payment-notification",e.UPDATE_JOURNEY_IN_PROGRESS="update-treatment-journey-in-progress",e.ED_RENEWAL="ed-renewal-notification",e.PE_RENEWAL="pe-renewal-notification",e.ED_REFILL_OFFER="ed-refill-offer-notification",e.ED_REFILL_OFFER_CTA="ed-refill-offer-cta",e}({});let r=o},95787:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var o=n(37876),i=n(14232),r=n(34610),l=n(14017),a=n(89099),s=n(12071),d=n(84903),c=n(57484),u=n(98436),A=n(64706),_=n(70881),E=n(74899),p=n(9781),h=n(7833);let P=(0,s.Ay)(h.so).withConfig({componentId:"sc-526aa4a2-0"})(['transition:all 0.3s ease;position:relative;&:before{content:"";width:0;height:3px;position:absolute;bottom:-3px;left:0;transition:all 0.3s ease;',"}"],e=>{let{passed:t,color:n}=e;return t&&"background: ".concat(n,"; width: 100%;")}),T=e=>e===(0,l.Z0)()?u.A:A.A,C=i.memo(e=>{let{onClick:t,asIcons:n,getStepIcon:i=T,isOnlyOtpRxProducts:s}=e,u=(0,r.q)(l.ZI),A=(0,r.q)(l.Z0),C=(0,a.useRouter)(),f=(0,d.n)();if([c.Ay.QUIZ,c.Ay.QUIZ_RESULTS].includes(C.route)||!u)return(0,o.jsx)(o.Fragment,{});let{desktop:O,mobile:I}=u;if(O.length!==I.length)throw Error("Step Navigation must have same amount of items for desktop and mobile view");let S=f?I:O;s&&(S=(S=S.map(e=>"Your Plan"===e?"Your Treatment":e)).filter(e=>!e.includes("Consultation")));let N=100/S.length,m=e=>()=>{(null==t?void 0:t(e))&&(0,l.Z0)(e)};return n?(0,o.jsxs)(h.I1,{pt:2,children:[(0,o.jsx)(p.fz,{uppercase:!0,bold:!0,fontSize:0,children:S[A]}),(0,o.jsx)(h.so,{py:3,gap:"7.75px",zIndex:2,children:S.map((e,n)=>e?(0,o.jsx)("button",{onClick:t?m(n):void 0,"aria-label":e,children:(0,o.jsx)(E.j,{onClick:t?m(n):void 0,src:i(n)})},e):null)})]}):(0,o.jsx)(h.so,{bg:"white",textAlign:"center",position:"relative",zIndex:2,children:S.map((e,n)=>e?(0,o.jsx)(P,{alignItems:"center",borderBottom:"3px solid",borderBottomColor:"grey",color:n<=A?_.Ay.colors.black:_.Ay.colors.grey,height:44,justifyContent:"center",passed:n<=A,px:2,width:"".concat(N,"%"),onClick:t?m(n):void 0,children:(0,o.jsx)(p.fz,{bold:!0,fontSize:["9px","9px",0,0],letterSpacing:4,uppercase:!0,children:e})},e):null)})})}
1,97323:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(37876);n(14232);var i=n(74899),r=n(14789),l=n(7833);let a=e=>{let{icon:t="arrow-left-thin",...n}=e;return(0,o.jsx)(r.A,{sizing:"nopadding",variant:"transparent",...n,children:(0,o.jsxs)(l.so,{alignItems:"center",justifyContent:"center",lineHeight:0,children:[(0,o.jsx)(i.A,{name:t}),"\xa0back"]})})}},98436:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o={src:"/_next/static/media/nav-pill-progress-red.ca3efb3b.svg",height:6,width:24,blurWidth:0,blurHeight:0}}},e=>{e.O(0,[8230,4858,9270,2439,6625,636,6593,8792],()=>e(e.s=27484)),_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.