(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[9],{"5+3q":function(e,t,a){"use strict";a("q1tI");var r=a("Aiso"),n=a.n(r),i=a("R/WZ"),o=a("rePB"),s=a("y5RC"),c=a("nKUr"),l=Object(i.a)((function(e){return{wrapper:Object(o.a)({height:18,width:18,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"1px solid ".concat(e.customColors.primary)},e.breakpoints.down("sm"),{}),checkedWrapper:Object(o.a)({height:18,width:18,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:e.customColors.primary,border:"1px solid ".concat(e.customColors.darkNeutral)},e.breakpoints.down("sm"),{}),image:{width:12,height:12,maxHeight:12,maxWidth:12,display:"none",objectFit:"contain"},imageChecked:{display:"block !important",width:18,height:18,maxHeight:18,maxWidth:18}}}));t.a=function(e){e.checkBoxStyle;var t=e.checked,a=e.onClick,r=e.onKeyPress,i=e.checkedImg,o=l();return Object(c.jsx)("div",{id:"terms-and-conditions-checkbox",tabIndex:0,onClick:a,className:i&&t?o.checkedWrapper:o.wrapper,onKeyPress:r,children:i?Object(c.jsx)(n.a,{unsized:!0,layout:"responsive",className:"".concat(o.image," ").concat(t?o.imageChecked:""),src:s.a.checkedTick,alt:"checkbox"},"checked"):Object(c.jsx)(n.a,{unsized:!0,layout:"responsive",className:"".concat(o.image," ").concat(t?o.imageChecked:""),src:"/tick.jpg",alt:"checkbox"},"unchecked")})}},Nu9Z:function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var r=a("q1tI"),n=a("1UQI"),i=a("Z7t/"),o=a("GMaT"),s=a("v+PC"),c=a("5+3q"),l=a("nKUr");function d(e){var t=e.classes,a=e.emailError,d=e.registerDone,m=e.emailId,u=e.passwordError,p=e.password,h=e.firstNameError,g=e.firstName,b=e.lastNameError,j=e.lastName,x=e.termsAndConditionsChecked,f=e.SetGlobalInputValue,O=e.connectionError1,w=e.connectionError2,v=e.loading,y=(e.clearInputs,e.networkError),k=e.RegisterUser,N=e.companyId,C=e.firstNameBlur,S=e.lastNameBlur,D=e.storefrontId,I=e.productThumbnailData,T=e.viewLoginScreen,W=e.isPage,_=e.GUID,E=function(e){var t=e.target,r=(t=void 0===t?{}:t).value,n=void 0===r?"":r,i=t.name,o=void 0===i?"":i;"emailId"===o&&a&&f?f({key:"emailError",value:!1}):"password"===o&&u&&f?f({key:"passwordError",value:!1}):"firstName"===o&&h&&f?f({key:"firstNameError",value:!1}):"lastName"===o&&b&&f&&f({key:"lastNameError",value:!1}),f&&f({key:o,value:n})};return Object(l.jsxs)(r.Fragment,{children:[Object(l.jsx)(i.a,{containerClass:t.emailContainer,placeholder:"Email Address",name:"emailId",maxLength:150,onChange:E,isCorrect:!a&&(!!d||void 0),value:m,error:a,showIconInput:!0,autoFocus:!0}),Object(l.jsx)(i.a,{containerClass:t.emailContainer,placeholder:"Password",name:"password",maxLength:50,onChange:E,isCorrect:!u&&(!!d||void 0),value:p,error:u,showIconInput:!0}),Object(l.jsx)(i.a,{containerClass:t.emailContainer,placeholder:"First Name",name:"firstName",maxLength:75,onBlur:function(){C({FirstName:g})},onChange:E,isCorrect:!h&&(!!d||void 0),value:g,error:h,showIconInput:!0}),Object(l.jsx)(i.a,{containerClass:"".concat(t.emailContainer," ").concat(t.regLastName),placeholder:"Last Name",name:"lastName",maxLength:75,onBlur:function(){S({LastName:j})},onChange:E,isCorrect:!b&&(!!d||void 0),value:j,error:b,showIconInput:!0}),Object(l.jsxs)(n.a,{noFlex:!0,className:t.termsAndConditionWrapper,children:[Object(l.jsx)(c.a,{checked:x,onClick:function(){f({key:"termsAndConditionsChecked",value:!x})},onKeyPress:function(e){"Enter"!==e.key&&"13"!==e.keyCode||f({key:"termsAndConditionsChecked",value:!x})}}),Object(l.jsxs)(o.j,{className:t.termsAndCondition,children:["I have read and agree to"," ",Object(l.jsx)("a",{target:"_blank",href:"/legal-documents/terms-of-use",children:Object(l.jsx)("span",{className:t.legalLink,children:"Terms of Use"})}),","," ",Object(l.jsx)("a",{target:"_blank",href:"/legal-documents/informed-consent",children:Object(l.jsx)("span",{className:t.legalLink,children:"Informed Consent"})}),","," ","and the"," ",Object(l.jsx)("a",{target:"_blank",href:"/legal-documents/privacy-policy",children:Object(l.jsx)("span",{className:t.legalLink,children:"Privacy Policy"})}),"."]})]}),y?Object(l.jsxs)(o.f,{className:t.registerNetworkError,children:[" ","(",O,"\n","\n",w]}):null,Object(l.jsx)(s.a,{buttonStyle:t.buttonMargin,label:"REGISTER",done:d,onClick:function(){k({GUID:_,Email:m,Password:p,CompanyId:N,FirstName:g,LastName:j,productThumbnailData:I,storefrontId:D},W)},loading:v,disabled:!!(!p.trim().length||!m.trim().length||g.trim().length<2||j.trim().length<2||!x||a)||!!u}),Object(l.jsx)(o.f,{className:t.dontHaveAccount,children:Object(l.jsx)("span",{onClick:function(e){return T({key:"registerOpen",value:!1})},children:"Already have an account?"})})]})}},Orh4:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a("/Tr7"),n=a("jIYg");function i(e,t){return Object(n.a)(2,arguments),Object(r.a)(e).getTime()-Object(r.a)(t).getTime()}},WzOY:function(e,t,a){"use strict";a.d(t,"a",(function(){return m}));var r=a("q1tI"),n=a("1UQI"),i=a("Z7t/"),o=a("GMaT"),s=a("v+PC"),c=a("nOHt"),l=a("xPX6"),d=a("nKUr");function m(e){var t=e.classes,a=e.emailError,m=e.loginDone,u=e.emailId,p=e.passwordError,h=e.password,g=e.SetGlobalInputValue,b=e.loading,j=e.networkError,x=e.Login,f=e.page,O=e.productThumbnailData,w=e.dontHaveAccount,v=(e.resetPasswordView,e.GUID),y=Object(c.useRouter)(),k=function(){x({GUID:v,username:u,password:h,companyid:l.Y,productThumbnailData:O,storefrontId:l.lb},f)},N=function(e){var t=e.key;13!==e.keyCode&&"Enter"!=t||h.trim().length&&u.trim().length&&!a&&!p&&k()};Object(r.useEffect)((function(){return window.addEventListener("keydown",N),function(){window.removeEventListener("keydown",N)}}));var C=function(e){var t=e.target,r=(t=void 0===t?{}:t).value,n=void 0===r?"":r,i=t.name,o=void 0===i?"":i;"emailId"===o&&(a||p)&&g?(g({key:"emailError",value:!1}),p&&g({key:"passwordError",value:!1})):"password"===o&&p&&g&&g({key:"passwordError",value:!1}),g&&g({key:o,value:n})};return Object(d.jsxs)(r.Fragment,{children:[Object(d.jsxs)(n.a,{noFlex:!0,col:!0,className:t.loginSection,children:[Object(d.jsx)(i.a,{containerClass:t.emailContainer,placeholder:"Email Address",name:"emailId",onChange:C,isCorrect:!a&&(!!m||void 0),value:u,error:a,showIconInput:!0,autoFocus:!0}),Object(d.jsx)(i.a,{type:"password",name:"password",onChange:C,placeholder:"Password",value:h,isCorrect:!!m||void 0,error:!!p&&l.hb,showIconInput:!0}),Object(d.jsx)(o.f,{className:t.forgetYourPassword,children:Object(d.jsx)("span",{onClick:function(){y.push("/"),g({key:"resetEmailOpen",value:!0})},children:"Forgot your password?"})}),j?Object(d.jsxs)(o.f,{className:t.networkError,children:[l.ab,"\n","\n",l.bb]}):null]}),Object(d.jsx)(s.a,{buttonStyle:t.buttonMargin,label:"LOG IN",done:m,onClick:k,loading:b,disabled:!(h.trim().length&&u.trim().length&&!a)||!!p}),Object(d.jsx)(o.f,{className:t.dontHaveAccount,children:Object(d.jsx)("span",{onClick:function(){return w({key:"registerOpen",value:!0})},children:"Don\u2019t have an account?"})})]})}},bzLw:function(e,t,a){"use strict";a.d(t,"r",(function(){return r})),a.d(t,"p",(function(){return n})),a.d(t,"s",(function(){return i})),a.d(t,"g",(function(){return o})),a.d(t,"db",(function(){return s})),a.d(t,"ab",(function(){return c})),a.d(t,"K",(function(){return l})),a.d(t,"d",(function(){return d})),a.d(t,"J",(function(){return m})),a.d(t,"tb",(function(){return u})),a.d(t,"i",(function(){return p})),a.d(t,"l",(function(){return h})),a.d(t,"j",(function(){return g})),a.d(t,"k",(function(){return b})),a.d(t,"q",(function(){return j})),a.d(t,"m",(function(){return x})),a.d(t,"h",(function(){return f})),a.d(t,"bb",(function(){return O})),a.d(t,"kb",(function(){return w})),a.d(t,"I",(function(){return v})),a.d(t,"H",(function(){return y})),a.d(t,"v",(function(){return k})),a.d(t,"ib",(function(){return N})),a.d(t,"ub",(function(){return C})),a.d(t,"C",(function(){return S})),a.d(t,"c",(function(){return D})),a.d(t,"fb",(function(){return I})),a.d(t,"R",(function(){return T})),a.d(t,"A",(function(){return W})),a.d(t,"jb",(function(){return _})),a.d(t,"gb",(function(){return E})),a.d(t,"hb",(function(){return L})),a.d(t,"E",(function(){return A})),a.d(t,"F",(function(){return H})),a.d(t,"cb",(function(){return B})),a.d(t,"D",(function(){return F})),a.d(t,"S",(function(){return P})),a.d(t,"u",(function(){return R})),a.d(t,"b",(function(){return V})),a.d(t,"sb",(function(){return z})),a.d(t,"O",(function(){return U})),a.d(t,"N",(function(){return G})),a.d(t,"Q",(function(){return M})),a.d(t,"M",(function(){return Y})),a.d(t,"Z",(function(){return q})),a.d(t,"X",(function(){return Q})),a.d(t,"Y",(function(){return K})),a.d(t,"W",(function(){return Z})),a.d(t,"U",(function(){return J})),a.d(t,"qb",(function(){return X})),a.d(t,"pb",(function(){return $})),a.d(t,"ob",(function(){return ee})),a.d(t,"nb",(function(){return te})),a.d(t,"mb",(function(){return ae})),a.d(t,"V",(function(){return re})),a.d(t,"T",(function(){return ne})),a.d(t,"eb",(function(){return ie})),a.d(t,"f",(function(){return oe})),a.d(t,"e",(function(){return se})),a.d(t,"P",(function(){return ce})),a.d(t,"L",(function(){return le})),a.d(t,"t",(function(){return de})),a.d(t,"a",(function(){return me})),a.d(t,"B",(function(){return ue})),a.d(t,"lb",(function(){return pe})),a.d(t,"w",(function(){return he})),a.d(t,"vb",(function(){return ge})),a.d(t,"rb",(function(){return be})),a.d(t,"y",(function(){return je})),a.d(t,"n",(function(){return xe})),a.d(t,"o",(function(){return fe})),a.d(t,"x",(function(){return Oe})),a.d(t,"z",(function(){return we})),a.d(t,"G",(function(){return ve}));var r="Credit/Debit Card",n="Add New Credit/Debit Card",i="Update Credit/Debit Card",o="Billing Address",s="Shipping Address",c="Save card information for future purchases",l="SAVED CARDS",d="+ ADD A NEW CARD",m=3,u="Same as Shipping Address",p="Card added successfully!",h="Card updated successfully!",g="This card is already on file. Click cancel to update existing card information.",b="This card is already on file. Enter new card details or select a saved card.",j="Credit Card Inputs/Billing Address",x="Cart Details",f="This slide-out drawer will automatically close in about 10 seconds, or you can close it manually below.",O="Scroll to the bottom to schedule",w="Your visit time is being held for:",v="Please check your settings before starting your visit.",y="What to do in the meantime...",k={title:"Thank you for your visit!",description:"Check your email for more information and instructions on what to do next. See the status of your order in your account.",heading:"Weren\u2019t finished yet?",desciption2:"If you had technical difficulties, or disconnected accidentally, you can ",buttonLabel:"MY ACCOUNT",clickableText:"click here to re-connect."},N="-- State --",C="Visit Link copied to clipboard!",S="MY ACCOUNT",D="ACTIVATE",I="Shipping Settings",T="Payment Settings",W="Incentive Banner",_="Sub Header Banner",E="Have a question?",L="We\u2019re here to help with whatever questions you have \u2014 from the telehealth process to how to get your prescription, we\u2019ve got you covered.",A="Customer Receipt",H="Pharmacy Information",B="Shipping Address",F="Next Ship Date",P="Refill Frequency",R="Deactivate Auto Refill",V="Activate Auto Refill",z="Update Shipping Settings",U="Payment Settings",G="Please select an option below:",M="Update Current Card",Y="Add New or Switch to Another Saved Card",q="Remove Payment Method",Q="Remove Auto Refill Payment Method",K="Are you sure you want to remove this card from your saved payment methods?",Z="You will need to use another payment method for the",J="REMOVE CARD",X="Update Payment Method",$="Choose a Saved Card",ee="Or Add a New Card",te="SAVE CHANGES",ae="UPDATE",re="Card removed successfully!",ne="Update successful!",ie="Shipping settings updated!",oe="Auto Refill deactivated!",se="Activation successful!",ce="Payment settings updated!",le="One or more of your cards has expired or will expire soon.",de="Are you sure you want to deactivate this Auto Refill? You can reactivate the Auto Refill at any time.",me="A new Auto Refill will be created with the shipping and payment information from the original purchase. You can edit your settings within the Auto Refill page after completing activation.",ue="You Missed Your Visit",pe="Your Visit Details",he="You will be able to enter the virtual waiting room 10 minutes prior to your scheduled visit time.",ge="Your scheduled visit time has passed. You need to schedule a new visit.",be="Update Shipping Address",je="GO BACK TO EDIT ADDRESS",xe="Changing shipping state alert!",fe="Changing your shipping state, may require you to select a new healthcare provider and schedule a new consultation. Please confirm below to proceed.",Oe={redirectTitle:"Redirect",redirectButtonLabel:"REDIRECT ME",redirectSecondaryButtonLabel:"CANCEL",redirectDescription:'Return to UpScript.com to complete all other purchases. Select <strong>"REDIRECT ME"</strong> to continue.'},we="GO TO MY ORDERS",ve="Enter Waiting Room"},dAAJ:function(e,t,a){"use strict";a.d(t,"a",(function(){return m}));a("q1tI");var r=a("SpDg"),n=a("17x9"),i=a.n(n),o=a("R/WZ"),s=a("rePB"),c=a("1UQI"),l=a("nKUr"),d=Object(o.a)((function(e){var t;return{container:(t={background:e.customColors.lightNeutral,overflowY:"auto",width:313,maxHeight:573,marginLeft:"43px",marginTop:"24px",marginBottom:25,paddingBottom:"35px"},Object(s.a)(t,e.breakpoints.down("sm"),{width:311,maxHeight:524,marginLeft:"20px",marginTop:"30px",marginBottom:35,paddingBottom:"18px"}),Object(s.a)(t,"&::-webkit-scrollbar",{width:"3px"}),Object(s.a)(t,"&::-webkit-scrollbar-track",{backgroundColor:e.customColors.secondaryDark}),Object(s.a)(t,"&::-webkit-scrollbar-thumb",{backgroundColor:e.customColors.secondaryDarkest}),t),backgroundSkeleton:Object(s.a)({width:251,marginTop:"20px",marginLeft:31,marginRight:30},e.breakpoints.down("sm"),{width:253,marginTop:"32px",marginLeft:26,marginRight:30}),heading:{maxWidth:"50%",height:"25px"},content:{maxWidth:"100%",height:"150px"},boardCertificationSkeleton:Object(s.a)({marginTop:"20px",marginLeft:"27px"},e.breakpoints.down("sm"),{marginLeft:"20px"}),listSkeleton:{maxWidth:"75%"},listItemSkeleton:{marginTop:"6px",alignItems:"center",maxWidth:"inherit"},primaryPracticeSkeleton:Object(s.a)({marginTop:"20px",marginLeft:"27px"},e.breakpoints.down("sm"),{marginLeft:"20px"}),bulletPoint:{width:"9px",height:"9px",borderRadius:"50%"},bulletPointContent:{marginLeft:"10px",width:"25%"},licensingSkeleton:Object(s.a)({marginTop:"20px",marginLeft:"27px"},e.breakpoints.down("sm"),{marginLeft:"20px"})}}));function m(){var e=d();return Object(l.jsxs)(c.a,{col:!0,noFlex:!0,className:e.container,children:[Object(l.jsxs)(c.a,{col:!0,noFlex:!0,className:e.backgroundSkeleton,children:[Object(l.jsx)(r.a,{animation:"wave",className:e.heading}),Object(l.jsx)(r.a,{animation:"wave",className:e.content})]}),Object(l.jsxs)(c.a,{col:!0,noFlex:!0,className:e.boardCertificationSkeleton,children:[Object(l.jsx)(r.a,{animation:"wave",className:e.heading}),Object(l.jsx)(c.a,{col:!0,noFlex:!0,className:e.listSkeleton,children:Object(l.jsxs)(c.a,{className:e.listItemSkeleton,children:[Object(l.jsx)(r.a,{variant:"circle",animation:"wave",className:e.bulletPoint}),Object(l.jsx)(r.a,{animation:"wave",className:e.bulletPointContent})]})})]}),Object(l.jsxs)(c.a,{col:!0,noFlex:!0,className:e.primaryPracticeSkeleton,children:[Object(l.jsx)(r.a,{animation:"wave",className:e.heading}),Object(l.jsx)(c.a,{col:!0,noFlex:!0,className:e.listSkeleton,children:Object(l.jsxs)(c.a,{className:e.listItemSkeleton,children:[Object(l.jsx)(r.a,{variant:"circle",animation:"wave",className:e.bulletPoint}),Object(l.jsx)(r.a,{animation:"wave",className:e.bulletPointContent})]})})]}),Object(l.jsxs)(c.a,{col:!0,className:e.licensingSkeleton,children:[Object(l.jsx)(r.a,{animation:"wave",className:e.heading}),Object(l.jsx)(c.a,{col:!0,noFlex:!0,className:e.listSkeleton,children:Object(l.jsxs)(c.a,{className:e.listItemSkeleton,children:[Object(l.jsx)(r.a,{variant:"circle",animation:"wave",className:e.bulletPoint}),Object(l.jsx)(r.a,{animation:"wave",className:e.bulletPointContent})]})})]})]})}m.propTypes={theme:i.a.instanceOf(Object).isRequired}},"jG/O":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var r=a("w3qX"),n=a("Orh4"),i=a("jIYg"),o=a("yayv");function s(e,t,a){Object(i.a)(2,arguments);var s=Object(n.a)(e,t)/r.b;return Object(o.a)(null===a||void 0===a?void 0:a.roundingMethod)(s)}},w3qX:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return n})),a.d(t,"c",(function(){return i}));Math.pow(10,8);var r=6e4,n=36e5,i=1e3},yAhZ:function(e,t,a){"use strict";var r=a("q1tI"),n=a("/MKj"),i=a("1UQI"),o=a("GMaT"),s=a("R/WZ"),c=a("rePB"),l=a("nKUr"),d=Object(s.a)((function(e){return{notification:Object(c.a)({height:35,backgroundColor:e.customColors.primaryDark,color:e.customColors.secondary,"@media print":{display:"none"}},e.breakpoints.down("sm"),{zIndex:2})}})),m=function(e){var t=d(),a=e.globalData,r=(void 0===a?{}:a).acf,n=(r=void 0===r?{}:r).displaytopnotificationmessage,s=r.topnotificationmessage;r.credential_messages;return n?Object(l.jsx)(i.a,{grid:!0,center:!0,className:t.notification,children:Object(l.jsx)(o.f,{id:"top-notification-text",children:s})}):null},u=a("Aiso"),p=a.n(u),h=Object(s.a)((function(e){var t;return{notification:Object(c.a)({height:50,borderBottom:"1px solid rgba(".concat(e.customColors.secondaryLight,")"),"@media print":{display:"none"}},e.breakpoints.down("sm"),{display:"none"}),credential_messages_text:Object(c.a)({maxWidth:300,fontSize:"15px",paddingLeft:8},e.breakpoints.down("sm"),{paddingLeft:5,fontSize:"14px"}),credentialMsgInfo:{alignItems:"flex-start",marginLeft:40},credential_messages_icon:{width:17},message_features:(t={maxWidth:950,alignItems:"flex-start"},Object(c.a)(t,e.breakpoints.down("sm"),{overflowX:"auto",scrollbarWidth:"none",paddingTop:10,paddingBottom:5,"&::-webkit-scrollbar":{width:0,background:"transparent",scrollbarColor:"transparent"}}),Object(c.a)(t,e.breakpoints.down("xs"),{justifyContent:"flex-start"}),t)}})),g=function(e){var t=h(),a=e.globalData,r=(void 0===a?{}:a).acf,n=(r=void 0===r?{}:r).display_Credential_Messages,s=r.credential_messages,c=void 0===s?[]:s,d=r.credential_message_bar_settings,m=void 0===d?{}:d,u={backgroundColor:"".concat(m.background_color),color:"".concat(m.text_color)};return n?Object(l.jsx)(i.a,{center:!0,noFlex:!0,style:u,className:t.notification,children:Object(l.jsx)(i.a,{center:!0,subContainer:!0,className:t.message_features,children:c.map((function(e,a){return Object(l.jsxs)(i.a,{noFlex:!0,className:t.credentialMsgInfo,alt:"message information",children:[Object(l.jsx)(p.a,{layout:"fill",unsized:!0,id:"credential-image-".concat(a),className:t.credential_messages_icon,src:e.credential_messages_icon||"/",alt:"messages icon"}),Object(l.jsx)(o.f,{id:"credential-message-".concat(a),className:t.credential_messages_text,children:e.credential_messages_text})]},"".concat(a,"msgInfo"))}))})}):null},b=a("KQm4"),j=a("YFqc"),x=a.n(j),f=a("aBAf"),O=a("k8Y/"),w=a.n(O),v=a("8Kt/"),y=a.n(v),k=a("nOHt"),N=a("SpDg"),C=a("bevr"),S=a("BwnX"),D=a("Nu9Z"),I=a("WzOY"),T=a("xPX6"),W=a("Huys"),_=a("Z7t/"),E=a("v+PC"),L=a("y5RC"),A=a("z5lR"),H=a("jG/O"),B=a("sWYD"),F=a("dAAJ"),P=a("bzLw"),R=a("7/s4"),V=a.n(R),z=Object(s.a)((function(e){var t,a,r,n,i;return i={drawerWrapper:Object(c.a)({display:"none",width:45,height:"100%",backgroundColor:e.customColors.lightNeutral},e.breakpoints.down("sm"),{display:"flex"}),topHeaderWrapper:Object(c.a)({background:e.customColors.secondary,"@media print":{display:"none"}},e.breakpoints.down("sm"),{boxShadow:e.customBoxShadows.headerShadow,zIndex:2,"@media print":{display:"none"}}),drawerIcon:{height:12,maxHeight:12},drawerCloseIcon:{height:16,maxHeight:16},leftCartIcon:{height:73,maxHeight:73,width:68,maxWidth:68,minWidth:68,minHeight:73},missedVisitIcon:{height:60,maxHeight:60,width:60,maxWidth:60,minWidth:60,minHeight:60},leftIconWrapper:Object(c.a)({marginTop:55,justifyContent:"center"},e.breakpoints.down("sm"),{marginTop:50}),flagIconWrapper:Object(c.a)({marginTop:0,justifyContent:"center"},e.breakpoints.down("sm"),{marginTop:0}),headerWrapper:Object(c.a)({width:"100%",maxHeight:55,alignItems:"center",height:55,gridTemplateColumns:"auto auto 1fr auto"},e.breakpoints.down("sm"),{gridTemplateColumns:"auto 1fr auto",height:45,maxHeight:45,boxShadow:e.customBoxShadows.headerShadow,zIndex:2}),logo:(t={height:48,maxHeight:48,marginLeft:25.91,cursor:"pointer"},Object(c.a)(t,e.breakpoints.down("sm"),{height:40,maxHeight:40,marginLeft:10,maxWidth:163}),Object(c.a)(t,e.breakpoints.down("xs"),{marginLeft:0}),t),logoWrapper:Object(c.a)({},e.breakpoints.down("sm"),{flex:1}),links:Object(c.a)({justifyContent:"center"},e.breakpoints.down("sm"),{display:"none"}),profileLogo:Object(c.a)({height:20,maxHeight:20,cursor:"pointer"},e.breakpoints.down("xs"),{height:18,maxHeight:18}),cartLogo:Object(c.a)({height:20,maxHeight:20,marginLeft:33,marginRight:20,cursor:"pointer"},e.breakpoints.down("xs"),{marginLeft:6}),drawerPaper:Object(c.a)({width:402},e.breakpoints.down("xs"),{width:351}),sideDrawerCrossIcon:{display:"inline-block",height:40,width:40,maxHeight:40,cursor:"pointer",float:"right"},profileSideDrawerCrossIcon:{display:"inline-block",height:40,width:40,maxHeight:40,cursor:"pointer"},profileTopSection:{background:e.customColors.secondary,alignItems:"center",justifyContent:"space-between",padding:"0px 18px 0px 28px",height:60,zIndex:1,position:"relative",boxShadow:e.customColors.boxShadowSm},leftCartDrawerWrapper:{background:e.customColors.secondary,alignItems:"center",justifyContent:"flex-end",padding:"0px 18px 0px 28px",height:60,position:"relative"},profileIconWrapper:{alignItems:"center"},nameInitials:{cursor:"pointer",fontWeight:500,color:e.customColors.primaryDark},signInText:Object(c.a)({cursor:"pointer",fontWeight:500,color:e.customColors.primaryDark,fontSize:14,lineHeight:"16px",marginLeft:8},e.breakpoints.down("xs"),{marginLeft:6}),leftCartTitle:Object(c.a)({fontSize:30,fontWeight:500,wordBreak:"break-word",textAlign:"center",lineHeight:"32.25px",margin:"35px 33px 13px 33px",color:e.customColors.tertiary},e.breakpoints.down("sm"),{margin:"35px 8px 13px 8px"}),missedVisitTitle:Object(c.a)({fontSize:30,fontWeight:500,wordBreak:"break-word",textAlign:"center",lineHeight:"32.25px",margin:"32px 33px 40px 33px",color:e.customColors.tertiary},e.breakpoints.down("sm"),{fontSize:28,lineHeight:"30.1px",margin:"36px 27px"}),missedVisitHeader:Object(c.a)({fontSize:20,fontFamily:"GT America",fontWeight:500,wordBreak:"break-word",lineHeight:"21.5px",margin:"57px 32px 24px 41px",color:e.customColors.tertiary},e.breakpoints.down("sm"),{margin:"40px 27px 20px 27px",fontSize:18}),checkoutButton:{textTransform:"uppercase"},missedVisitSubHeader:Object(c.a)({maxWidth:217,fontSize:16,fontFamily:"GT America",fontWeight:500,wordBreak:"break-word",textAlign:"start",lineHeight:"22.16px",margin:"19px auto 16px 0px",color:e.customColors.tertiary},e.breakpoints.down("sm"),{margin:"24px 8px 16px 0px"}),missedVisitItemsWrapper:{borderTop:"1px solid ".concat(e.customColors.darkNeutral),margin:"0 30px",overflow:"auto"},missedVisitItemWrapper:{paddingTop:0,paddingBottom:25},welcomeTitle:{fontWeight:500,wordBreak:"break-all",lineHeight:"21.5px",margin:"55px 36px"},profileTitleText:{wordBreak:"break-word",fontWeight:500,lineHeight:"20px",fontFamily:"GT America Standard",color:e.customColors.tertiaryLight},accWrapper:{overflow:"auto"},accRowWrapper:{margin:"0px 33px 18px 33px",justifyContent:"space-between",alignItems:"center",cursor:"pointer"},accRowIconWrapper:{alignItems:"center"},accRowIcon:{maxHeight:40,maxWidth:40,width:40,height:40,objectFit:"contain"},accRowSideArrow:{maxHeight:10,maxWidth:5,minHeight:10,minWidth:5},accRowText:{fontWeight:500,marginLeft:12},rightDrawerWrapper:Object(c.a)({padding:"33px 33px 0px 33px"},e.breakpoints.down("sm"),{padding:"25px 25px 0px 25px"}),loginSection:{},resetPasswordSection:{},registerSection:(a={},Object(c.a)(a,e.breakpoints.down("sm"),{}),Object(c.a)(a,"@media (max-height:".concat(e.heightBP.sm,")"),{top:-20}),a),loginTitle:{marginBottom:11,marginTop:25,fontWeight:500,lineHeight:"22px"},termsAndCondition:{fontWeight:400,lineHeight:"16.62px",maxWidth:230,color:e.customColors.tertiaryLight,marginLeft:13},termsAndConditionWrapper:Object(c.a)({},e.breakpoints.down("sm"),{}),legalLink:{textDecoration:"underline",fontFamily:"GT America Standard",cursor:"pointer",fontWeight:500},registerTitle:(r={lineHeight:"22px",marginBottom:11,marginTop:25,fontWeight:500},Object(c.a)(r,e.breakpoints.down("sm"),{marginBottom:10}),Object(c.a)(r,"@media (max-height:".concat(e.heightBP.sm,")"),{marginTop:0}),r),loginDesription:Object(c.a)({lineHeight:"20px",marginBottom:40,fontWeight:400,maxWidth:320},e.breakpoints.down("sm"),{marginBottom:40,maxWidth:"100%"}),sentResetPasswordDesription:Object(c.a)({lineHeight:"20px",fontWeight:400,maxWidth:320},e.breakpoints.down("sm"),{maxWidth:"100%"}),subDesription:Object(c.a)({lineHeight:"20px",fontWeight:400,marginBottom:11,maxWidth:320},e.breakpoints.down("sm"),{maxWidth:"100%"}),resetDescription:Object(c.a)({lineHeight:"20px",marginBottom:84,fontWeight:400,maxWidth:320},e.breakpoints.down("sm"),{marginBottom:40,maxWidth:"100%"}),registerDesription:(n={lineHeight:"20px",marginBottom:65,fontWeight:400,maxWidth:316},Object(c.a)(n,e.breakpoints.down("sm"),{marginBottom:24,maxWidth:"93%"}),Object(c.a)(n,"@media (max-height:".concat(e.heightBP.sm,")"),{marginBottom:14}),n),emailContainer:Object(c.a)({marginBottom:18},"@media (max-height:".concat(e.heightBP.sm,")"),{marginBottom:8}),regLastName:Object(c.a)({},"@media (max-height:".concat(e.heightBP.sm,")"),{marginBottom:"12px !important"}),resetEmailContainer:{marginBottom:18},networkError:Object(c.a)({whiteSpace:"pre-line",fontWeight:300,fontStyle:"normal",paddingTop:22,width:"100%",color:e.customColors.errorBorder},e.breakpoints.down("sm"),{height:203,paddingTop:14}),networkError1:Object(c.a)({},e.breakpoints.down("sm"),{height:83}),registerNetworkError:Object(c.a)({whiteSpace:"pre-line",fontWeight:300,fontStyle:"normal",paddingTop:22,minHeight:82,width:"100%",color:e.customColors.errorBorder},e.breakpoints.down("sm"),{minHeight:55,paddingTop:14}),resetPasswordError:Object(c.a)({whiteSpace:"pre-line",fontWeight:300,fontStyle:"normal",width:"100%",lineHeight:"20px",color:e.customColors.errorBorder},e.breakpoints.down("sm"),{height:"auto"}),forgetYourPassword:{fontWeight:400,lineHeight:"19px",fontStyle:"normal",textDecoration:"underline",color:e.customColors.tertiaryLight,marginTop:15,cursor:"pointer"},dontHaveAccount:Object(c.a)({fontWeight:400,cursor:"pointer",lineHeight:"19px",fontStyle:"normal",textDecoration:"underline",color:e.customColors.tertiaryLight,marginTop:18,paddingBottom:18,textAlign:"center"},"@media (max-height:".concat(e.heightBP.sm,")"),{marginTop:8}),resendEmail:{fontWeight:400,cursor:"pointer",lineHeight:"19px",fontStyle:"normal",textDecoration:"underline",color:e.customColors.tertiaryLight,marginTop:18,paddingBottom:67,textAlign:"center"},SwitchDrawerWrapper:Object(c.a)({justifyContent:"space-between",paddingBottom:48},e.breakpoints.down("sm"),{paddingBottom:120}),cartTitleSkeleton:{marginBottom:3,height:17,width:"100%"},cartCounterSketeton:{height:20,width:66},cartTitle:{marginTop:9,fontWeight:500,fontFamily:"GT America Standard",lineHeight:"22.16px",color:e.customColors.tertiary},cartDescription:{fontWeight:400,lineHeight:"19.39px",color:e.customColors.tertiaryLight,marginBottom:10},productThumbnail:{height:80,width:80,maxHeight:80,maxWidth:80,objectFit:"contain"},textWrapper:{marginLeft:23},cartListWrapper:{padding:"10px 30px 30px 30px",overflow:"auto"},cartBtnWrapper:Object(c.a)({padding:"35px 30px"},e.breakpoints.down("sm"),{padding:"20px 30px"}),missedVisitBtnWrapper:Object(c.a)({padding:"0px 32px"},e.breakpoints.down("sm"),{padding:"0px 27px"}),itemWrapper:{paddingTop:30,paddingBottom:25,borderBottom:"1px solid ".concat(e.customColors.darkNeutral)},cartPriceWrapper:{justifyContent:"space-between"},cartQty:{color:e.customColors.tertiary,fontSize:12,lineHeight:"16.62px"},cartQtyLeft:{color:e.customColors.tertiary,fontSize:12,lineHeight:"16.62px",marginRight:5},buttonMargin:{marginTop:40},visitDetailsWrapper:{margin:"0px 33px 18px 33px",borderTop:"1px solid ".concat(e.customColors.darkNeutral),borderBottom:"1px solid ".concat(e.customColors.darkNeutral),height:94,maxHeight:94},visitDetails:{alignItem:"start",justifyContent:"center",margin:"25px 0 27px 0"},iconWrapper:{alignItems:"center",justifyContent:"center",height:44,maxHeight:44,width:44,maxWidth:44},event:{height:44,width:41,maxHeight:44},detailsWrapper:{marginLeft:20},detailsHeader:{fontFamily:"GT America",fontSize:"14px",lineHeight:"19.34px",fontWeight:500},dateTimeWrapper:{marginTop:3,height:19,maxHeight:19},scheduleWrapper:Object(c.a)({alignItems:"center",height:27,maxHeight:27},e.breakpoints.down("sm"),{height:17,maxHeight:17}),date:{marginLeft:0,width:"80px",minWidth:"80px"},dateToday:{marginLeft:0,width:"53px",minWidth:"53px"},time:Object(c.a)({marginLeft:14},e.breakpoints.down("sm"),{marginLeft:26}),welcomeTitleWithVisit:{fontWeight:500,wordBreak:"break-all",lineHeight:"21.5px",margin:"55px 36px 26px 36px"},visitDetailsTextWrapper:Object(c.a)({maxWidth:"100%",margin:"52px 41px 60px 42px",justifyContent:"center"},e.breakpoints.down("sm"),{margin:"46px 41px 50px 42px"}),visitDetailsText:Object(c.a)({maxWidth:312,fontFamily:"GT America",fontStyle:"normal",fontWeight:400,fontSize:14,paddingBottom:0,wordBreak:"break-word",overflowWrap:"break-word"},e.breakpoints.down("sm"),{maxWidth:268,fontSize:12})},Object(c.a)(i,"visitDetailsWrapper",{maxWidth:337,maxHeight:167,margin:"0px 32px 0px 33px",padding:"28px 25px 0px 25px",background:e.customColors.lightNeutral}),Object(c.a)(i,"visitNowDetailsWrapper",{maxWidth:338,maxHeight:167,marginTop:20,padding:"28px 25px 0px 25px",background:e.customColors.lightNeutral}),Object(c.a)(i,"dateTimeDetailsWrapper",{marginLeft:5,width:"100%",paddingBottom:27,borderBottom:"1px solid ".concat(e.customColors.darkNeutral)}),Object(c.a)(i,"gap",Object(c.a)({marginLeft:30},e.breakpoints.down("sm"),{marginLeft:45})),Object(c.a)(i,"icon",Object(c.a)({height:27,width:27,maxHeight:27,maxWidth:27,display:"flex",justifyContent:"center",alignItems:"center"},e.breakpoints.down("sm"),{height:17,width:17,maxHeight:17,maxWidth:17})),Object(c.a)(i,"dateTime",Object(c.a)({marginLeft:14,fontWeight:500,fontSize:14,fontFamily:"GT America Standard",color:e.customColors.primaryDark},e.breakpoints.down("sm"),{marginLeft:10})),Object(c.a)(i,"doctorDetailsWrapper",{marginLeft:20,width:"100%",marginTop:27,marginBottom:32}),Object(c.a)(i,"cardImage",{height:34,width:34,maxHeight:34,maxWidth:34,borderRadius:"50%"}),Object(c.a)(i,"cardTitle",{fontWeight:500,fontSize:14,lineHeight:"19.39px"}),Object(c.a)(i,"detailWrapper",{marginLeft:16}),Object(c.a)(i,"welcomeVisitDetailsWrapper",Object(c.a)({margin:"0px auto 18px 30px",borderBottom:"1px solid ".concat(e.customColors.darkNeutral),height:"auto",maxWidth:338},e.breakpoints.down("sm"),{maxWidth:297,margin:"0px 30px 18px 30px"})),Object(c.a)(i,"welcomeVisitDetails",{alignItem:"start",justifyContent:"center"}),Object(c.a)(i,"welcomeDescriptionWrapper",{margin:"23px 0 24px 0",width:"100%"}),Object(c.a)(i,"welcomeDescription",{fontSize:14,fontWeight:400,width:"100%",lineHeight:"19.39px"}),Object(c.a)(i,"cTAWrapper",{margin:"0 0 24px 0"}),Object(c.a)(i,"highlights",{fontSize:14,fontWeight:500,fontFamily:"GT America Standard",width:"100%",lineHeight:"19.39px"}),i})),U={GetHeaderData:C.k,SetGlobalInputValue:C.v,Login:C.n,RegisterUser:C.p,firstNameBlur:C.z,lastNameBlur:C.A,SendResetEmail:C.s,SetCartItem:C.t,SetCartState:C.u,GetCartData:C.h,ClearInputs:C.f,CheckoutRedirect:C.d,SetShowProductInfoSection:C.x,GetTaxSettings:C.l,showScheduledVisitForReturningUser:C.C,showMissedVisitForReturningUser:C.B,showVisitAboutToStartForReturningUser:C.D,GetGUIDSuccess:C.j,GetGUIDFailed:C.i},G=Object(n.b)((function(e){return{headerState:e.header,cartState:e.cart,loading:e.main.loading,GUID:e.cart.GUID}}),U)((function(e){var t=Object(k.useRouter)();Object(r.useEffect)((function(){if(e.cartState.cartItems[0])var t=e.cartState.cartItems[0].productId;else t="";var a=window.location.href;if(e.cartState.visitData.length>1)r="1";else var r="0";var n={gtmId:"GTM-NCDZP5S4",dataLayer:{pcmPixelProductId:t,pcmPixelReturnUrl:a,pcmPixelSchedVisit:r,pcmPixelUserAgent:window.navigator.userAgent}};V.a.initialize(n)}),[]);var a=e.GetHeaderData,n=e.SetGlobalInputValue,s=e.ToggleMobileHeader,c=e.headerState,d=void 0===c?{}:c,m=e.headerTitles,u=void 0===m?[]:m,h=e.headerModalOpen,g=e.ToggleTreatmentDropDown,j=e.treatmentDropdownOpen,O=e.globalData,v=void 0===O?{}:O,C=e.loginData,R=void 0===C?{}:C,U=e.treatmentsData,G=void 0===U?[]:U,M=e.Login,Y=e.RegisterUser,q=e.firstNameBlur,Q=e.lastNameBlur,K=e.loading,Z=e.SendResetEmail,J=e.cartState,X=e.SetCartItem,$=e.SetCartState,ee=e.GetCartData,te=e.productThumbnailData,ae=e.ClearInputs,re=e.redirectUrl,ne=e.CheckoutRedirect,ie=e.SetShowProductInfoSection,oe=e.GetTaxSettings,se=e.showScheduledVisitForReturningUser,ce=e.showMissedVisitForReturningUser,le=e.showVisitAboutToStartForReturningUser,de=e.GUID,me=e.GetGUIDSuccess,ue=e.GetGUIDFailed,pe=J.cartItems,he=void 0===pe?[]:pe,ge=J.isCartModalOpen,be=J.loadCartData,je=void 0!==be&&be,xe=J.cartDataLoaded,fe=J.visitData,Oe=void 0===fe?{}:fe,we=J.missedVisitData,ve=void 0===we?{}:we,ye=J.missedVisitDataLoaded,ke=void 0!==ye&&ye,Ne=J.visitAboutToStartData,Ce=void 0===Ne?{}:Ne,Se=J.visitAboutToStartDataLoaded,De=void 0!==Se&&Se,Ie=J.visitAboutToStartAPILoaded,Te=void 0!==Ie&&Ie,We=(Oe.visitDateTime,Oe&&Oe.length&&Oe.filter((function(e){return new Date<new Date(e.startTime)}))),_e=We&&We.sort((function(e,t){return new Date(e.startTime)-new Date(t.startTime)})),Ee=We&&_e[0],Le=ve&&ve.length&&ve.filter((function(e){return new Date(e.endTime)<new Date})),Ae=Ce&&Ce.length&&Ce.filter((function(e){return Object(H.a)(new Date(e.startTime),new Date)<10&&0<Object(H.a)(new Date(e.startTime),new Date)})),He=Ce&&Ce.length&&Ce.filter((function(e){return new Date(e.startTime)<=new Date&&Object(H.a)(new Date,new Date(e.startTime))<10})),Be=Le&&Le.sort((function(e,t){return new Date(e.endTime)-new Date(t.endTime)})),Fe=Le&&Be[Be.length-1],Pe=He&&He.length?He:Ae&&Ae.length?Ae:null,Re=Pe&&Pe.sort((function(e,t){return new Date(e.startTime)-new Date(t.startTime)})),Ve=Pe&&Re[0],ze=R.acf,Ue=(ze=void 0===ze?{}:ze).title,Ge=void 0===Ue?"":Ue,Me=ze.description,Ye=void 0===Me?"":Me,qe=ze.register_description,Qe=void 0===qe?"":qe,Ke=ze.register_title,Ze=void 0===Ke?"":Ke,Je=ze.reset_password_title,Xe=void 0===Je?"":Je,$e=ze.reset_password_description,et=void 0===$e?"":$e,tt=ze.sent_reset_password_title,at=void 0===tt?"":tt,rt=ze.sent_reset_password_description,nt=void 0===rt?"":rt,it=ze.sent_reset_password_sub_description,ot=void 0===it?"":it,st=d.headerData,ct=void 0===st?{}:st,lt=d.emailId,dt=void 0===lt?"":lt,mt=d.password,ut=void 0===mt?"":mt,pt=d.networkError,ht=void 0===pt?"":pt,gt=d.emailError,bt=void 0===gt?"":gt,jt=d.passwordError,xt=void 0===jt?"":jt,ft=d.loginDrawerOpen,Ot=d.registerOpen,wt=d.loginDone,vt=d.lastName,yt=d.lastNameError,kt=void 0===yt?"":yt,Nt=d.firstName,Ct=d.firstNameError,St=void 0===Ct?"":Ct,Dt=d.termsAndConditionsChecked,It=d.registerDone,Tt=d.resetEmailSent,Wt=d.resetEmailOpen,_t=d.profileViewOpen,Et=(d.showProductInfoSection,v.acf),Lt=(Et=void 0===Et?{}:Et).upscript_Logo,At=void 0===Lt?"":Lt,Ht=Et.medical_consult,Bt=void 0===Ht?{}:Ht,Ft=Et.account_tiles,Pt=void 0===Ft?[]:Ft,Rt=Et.display_pre_questionnaire,Vt=void 0!==Rt&&Rt,zt=Et.display_pre_payment,Ut=void 0!==zt&&zt,Gt=Et.display_pre_doctor_confirmation,Mt=void 0!==Gt&&Gt,Yt=Et.display_pre_shipping,qt=void 0!==Yt&&Yt,Qt=Et.left_cart_title,Kt=void 0===Qt?"":Qt,Zt=Et.left_cart_button_label,Jt=void 0===Zt?"":Zt,Xt=(Et.google_analytic_code,Et.returning_patient_visit_status),$t=void 0===Xt?{}:Xt,ea=Et.hide_qty_and_format,ta=ct.profile,aa=void 0===ta?{link:""}:ta,ra=ct.cart,na=void 0===ra?{link:""}:ra,ia=z(),oa="",sa=$t.missed_visit_header,ca=void 0===sa?"":sa,la=$t.missed_visit_sub_header,da=void 0===la?"":la,ma=$t.missed_visit_button_label,ua=void 0===ma?"":ma,pa=$t.visit_about_to_start_header,ha=void 0===pa?"":pa,ga=$t.visit_about_to_start_sub_header,ba=void 0===ga?"":ga,ja=$t.visit_about_to_start_button_label,xa=void 0===ja?"":ja,fa=$t.visit_in_progress_header,Oa=void 0===fa?"":fa,wa=$t.visit_in_progress_sub_header,va=void 0===wa?"":wa,ya=$t.visit_in_progress_button_label,ka=void 0===ya?"":ya,Na=Ee&&Object.keys(Ee).length&&Object(B.a)(new Date(Ee.startTime),"P")||"",Ca=Ee&&Object.keys(Ee).length&&Object(B.a)(new Date(Ee.startTime),"hh:mmaaa")||"",Sa=function(e){return Object(B.a)(new Date(e),"P")===Object(B.a)(new Date,"LL/dd/yyyy")},Da=Ve&&Sa(Ve.startTime)?"Today":Ve&&Object(B.a)(new Date(Ve.startTime),"P")||"",Ia=Ve&&Object(B.a)(new Date(Ve.startTime),"hh:mm aa")||"",Ta=Ve&&Sa(Ve.startTime)&&He.map((function(e){return e.orderId})).includes(Ve.orderId);Object(r.useEffect)((function(e){a&&a();var t=function(e){if(e||(e=window.event),e.newValue)if("getSessionStorage"==e.key)localStorage.setItem("sessionStorage",JSON.stringify(sessionStorage)),localStorage.removeItem("sessionStorage");else if("sessionStorage"==e.key&&!sessionStorage.length){var t=JSON.parse(e.newValue);for(var a in t)sessionStorage.setItem(a,t[a]);he.length||(he=sessionStorage.getItem("cartItems")?JSON.parse(sessionStorage.getItem("cartItems")):[],X&&X({key:"cartItems",value:Object(b.a)(he)}))}},r=sessionStorage.getItem("cartItems")?JSON.parse(sessionStorage.getItem("cartItems")):[];r.length&&X&&X({key:"cartItems",value:Object(b.a)(r)}),window.addEventListener?window.addEventListener("storage",t,!1):window.attachEvent("onstorage",t),sessionStorage.length||(localStorage.setItem("getSessionStorage","spyEvent"),localStorage.removeItem("getSessionStorage","spyEvent")),je&&($&&$({key:"isCartModalOpen",value:!0}),$&&$({key:"loadCartData",value:!1})),Wt&&Ra()}),[]);var Wa=function(){try{var e=localStorage.getItem("GUID");if(null===e||void 0===e)return;return e}catch(t){return void console.log(t)}};Object(r.useEffect)((function(){function e(){Wa()?me&&me(Wa()):ue&&ue()}return Wa()?me&&me(Wa()):ue&&ue(),window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}}),[]),Object(r.useEffect)((function(e){localStorage.getItem("token")&&Array.isArray(te)&&te.length?(n&&n({value:!0,key:"loginDone"}),ee&&ee(T.lb,te),$&&$({value:!0,key:"cartDataLoaded"})):oe&&oe()}),[te]),Object(r.useEffect)((function(){wt&&(se&&se(),ce&&ce(),le&&le())}),[wt]);var _a=function(e){var t=e.target,a=(t=void 0===t?{}:t).value,r=void 0===a?"":a,i=t.name,o=void 0===i?"":i;"emailId"===o&&bt&&n&&n({key:"emailError",value:!1}),n&&n({key:o,value:r})},Ea=function(){$&&$({key:"isCartModalOpen",value:!ge})};(u=u&&u.map((function(e){return e.acf}))).length&&(u=w()(u,["order"],["asc"]));var La=function(){Z({email:dt,companyid:parseInt(T.Y)})},Aa=function(e){var t=e.key,a=e.value;n&&n({key:t,value:a}),Va()},Ha=function(){return Pt.map((function(e,t){return Object(l.jsx)(x.a,{prefetch:!1,href:e.link.url,children:Object(l.jsxs)(i.a,{noFlex:!0,className:ia.accRowWrapper,children:[Object(l.jsxs)(i.a,{className:ia.accRowIconWrapper,noFlex:!0,children:[Object(l.jsx)(p.a,{id:Ge,title:e.icon.alt,className:ia.accRowIcon,src:e.icon.iconurl||"/",alt:e.icon.alt,unsized:!0}),Object(l.jsx)(o.d,{className:ia.accRowText,children:e.title})]}),Object(l.jsx)(p.a,{id:"sideArrow",className:ia.accRowSideArrow,src:L.b.sideArrow||"/",alt:"sideArrow",unsized:!0})]})},t)}))},Ba=function(e){if(e.preventDefault(),Vt&&!wt&&t.push("/checkout/pre-questionnaire?redirect=true","/checkout/pre-questionnaire"),Vt||wt||t.push("/register?redirect=true","register"),wt){var a=he[0].productId;ne&&ne(void 0===a?0:a,{display_pre_questionnaire:Vt,display_pre_payment:Ut,display_pre_doctor_confirmation:Mt,display_pre_shipping:qt})}n({key:"loginDrawerOpen",value:!1})},Fa=function(){for(var e,t,a=[],r=0;r<he.length;r+=1)a.push((e=he[r],t=r,Object(l.jsxs)(i.a,{className:ia.itemWrapper,noFlex:!0,children:[xe?Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:e.thumbnail||"/",className:ia.productThumbnail,alt:"product"},"thumbnail"):Object(l.jsx)(N.a,{variant:"rect",className:ia.productThumbnail}),Object(l.jsxs)(i.a,{col:!0,className:ia.textWrapper,children:[Object(l.jsxs)(i.a,{col:!0,noFlex:!0,children:[Object(l.jsx)(o.e,{className:ia.cartTitle,children:xe?e.product_title:Object(l.jsx)(N.a,{variant:"rect",className:ia.cartTitleSkeleton})}),ea?null:Object(l.jsx)(o.f,{className:ia.cartDescription,children:xe?"".concat(e.count||""," ").concat(e.type||""):Object(l.jsx)(N.a,{variant:"rect",className:ia.cartTitleSkeleton})})]}),ea?null:Object(l.jsx)(i.a,{noFlex:!0,className:ia.cartPriceWrapper,children:xe?Object(l.jsxs)(i.a,{noFlex:!0,className:ia.cartPriceWrapper,children:[Object(l.jsx)(o.f,{className:ia.cartQtyLeft,children:"Qty: "}),Object(l.jsx)(o.f,{className:ia.cartQty,children:e.qty||e.defaultQuantity||1})]}):Object(l.jsx)(N.a,{variant:"rect",className:ia.cartCounterSketeton})})]})]},"cartItem_".concat(t))));return{listItem:a}}().listItem,Pa=function(e){var t;return(null===(t=(te&&te.filter((function(t){return t.productid==e})))[0])||void 0===t?void 0:t.thumbnail)||""},Ra=function(e){n({key:"redirectUrl",value:re}),g&&g(!1),wt?(e.preventDefault(),t.push("/my-account")):n({key:"loginDrawerOpen",value:!0})},Va=function(){ae&&ae()},za=localStorage.getItem("firstName")||"",Ua=localStorage.getItem("lastName")||"";return oa=(za[0]?za[0].toUpperCase():"")+(Ua[0]?Ua[0].toUpperCase():""),Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)(y.a,{}),Object(l.jsxs)(i.a,{noFlex:!0,className:ia.topHeaderWrapper,children:[Object(l.jsx)(f.a,{anchor:"right",swipeAreaWidth:0,open:ft,onOpen:function(e){},classes:{paper:ia.drawerPaper},onClose:function(e){n({key:"loginDrawerOpen",value:!1})},children:_t||wt?xe&&De&&Pe&&Pe.length?Object(l.jsxs)(r.Fragment,{children:[Object(l.jsx)(i.a,{noFlex:!0,className:ia.leftCartDrawerWrapper,children:Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:L.b.crossIconWithBg||"/",onClick:function(e){return n({key:"loginDrawerOpen",value:!1})},className:ia.profileSideDrawerCrossIcon,alt:"close-drawer"})}),Object(l.jsxs)(i.a,{className:ia.accWrapper,col:!0,children:[Object(l.jsx)(i.a,{noFlex:!0,className:ia.flagIconWrapper,children:Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:L.b.flagIconGreen||"/",className:ia.missedVisitIcon,alt:"visit-about-to-start"})}),Object(l.jsx)(o.c,{className:ia.missedVisitTitle,children:Ta?Oa:ha}),Object(l.jsx)(i.a,{noFlex:!0,col:!0,className:ia.missedVisitBtnWrapper,children:Object(l.jsx)(E.a,{buttonStyle:ia.checkoutButton,onClick:function(){return n({key:"loginDrawerOpen",value:!1}),void t.push("/checkout/patient-visit?id=".concat(Ve.orderId))},label:Ta?ka:xa})}),Object(l.jsxs)(o.f,{className:ia.missedVisitHeader,children:[Ta?va:ba,"",":"]}),Object(l.jsxs)(i.a,{noFlex:!0,col:!0,className:ia.missedVisitItemsWrapper,children:[Object(l.jsx)(r.Fragment,{children:Object(l.jsxs)(i.a,{col:!0,center:!0,className:ia.visitNowDetailsWrapper,children:[Object(l.jsxs)(i.a,{noFlex:!0,className:ia.dateTimeDetailsWrapper,children:[Object(l.jsxs)(i.a,{className:ia.scheduleWrapper,children:[Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:L.b.greenCalendar||"/",className:ia.icon,alt:"visit-about-to-start"}),Object(l.jsx)(o.f,{className:ia.dateTime,children:Da})]}),Object(l.jsxs)(i.a,{className:[ia.scheduleWrapper,ia.gap],children:[Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:L.b.greenClock||"/",className:ia.icon,alt:"visit-about-to-start"}),Object(l.jsx)(o.f,{className:ia.dateTime,children:Ia})]})]}),Object(l.jsxs)(i.a,{className:ia.doctorDetailsWrapper,children:[Object(l.jsx)(p.a,{className:ia.cardImage,src:Ve.doctorDetails&&Ve.doctorDetails.profileImage?"data:image/".concat(Ve.doctorDetails.imgExtension,";base64,").concat(Ve.doctorDetails?Ve.doctorDetails.profileImage:""):L.b.avatar||"/",unoptimized:!0,unsized:!0,loading:"eager",alt:"doctor"}),Object(l.jsxs)(i.a,{className:ia.detailWrapper,col:!0,children:[Object(l.jsx)(o.f,{className:ia.cardTitle,children:null!=Ve.doctorDetails?Ve.doctorDetails.name:""}),Object(l.jsx)(o.f,{className:ia.cardDesc,dangerouslySetInnerHTML:{__html:null!=Ve.doctorDetails?Ve.doctorDetails.specialty:""}})]})]})]})}),Object(l.jsx)(i.a,{noFlex:!0,className:[ia.dateTimeWrapper,ia.gap]}),Object(l.jsx)(o.f,{className:ia.missedVisitSubHeader,children:"You've Selected"}),Pe&&Ve&&Ve.productDetails&&Pe&&Ve&&Ve.productDetails&&Ve.productDetails.map((function(e,t){return Object(l.jsxs)(i.a,{className:ia.missedVisitItemWrapper,noFlex:!0,children:[Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:Pa(e.productId)||"",className:ia.productThumbnail,alt:"product"},"thumbnail"),Object(l.jsxs)(i.a,{col:!0,className:ia.textWrapper,children:[Object(l.jsxs)(i.a,{col:!0,noFlex:!0,children:[Object(l.jsx)(o.e,{className:ia.cartTitle,children:e.displayName}),ea?null:Object(l.jsx)(o.f,{className:ia.cartDescription,children:"".concat(e.count||""," ").concat(e.type||"")})]}),ea?null:Object(l.jsx)(i.a,{noFlex:!0,className:ia.cartPriceWrapper,children:Object(l.jsxs)(i.a,{noFlex:!0,className:ia.cartPriceWrapper,children:[Object(l.jsx)(o.f,{className:ia.cartQtyLeft,children:"Qty: "}),Object(l.jsx)(o.f,{className:ia.cartQty,children:e.productQty||1})]})})]})]},"visitToStartItem_".concat(t))}))]})]})]}):xe&&ke&&Te?Le&&Le.length?Object(l.jsxs)(r.Fragment,{children:[Object(l.jsx)(i.a,{noFlex:!0,className:ia.leftCartDrawerWrapper,children:Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:L.b.crossIconWithBg||"/",onClick:function(e){return n({key:"loginDrawerOpen",value:!1})},className:ia.profileSideDrawerCrossIcon,alt:"close-drawer"})}),Object(l.jsxs)(i.a,{className:ia.accWrapper,col:!0,children:[Object(l.jsx)(i.a,{noFlex:!0,className:ia.flagIconWrapper,children:Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:L.b.flagIconGreen||"/",className:ia.missedVisitIcon,alt:"missed-visit"})}),Object(l.jsx)(o.c,{className:ia.missedVisitTitle,children:ca}),Object(l.jsx)(i.a,{noFlex:!0,col:!0,className:ia.missedVisitBtnWrapper,children:Object(l.jsx)(E.a,{buttonStyle:ia.checkoutButton,onClick:function(){return n({key:"loginDrawerOpen",value:!1}),void t.push("/checkout/patient-visit?id=".concat(Fe.orderId))},label:ua})}),Object(l.jsx)(o.f,{className:ia.missedVisitHeader,children:da}),Object(l.jsxs)(i.a,{noFlex:!0,col:!0,className:ia.missedVisitItemsWrapper,children:[Object(l.jsx)(o.f,{className:ia.missedVisitSubHeader,children:"Complete your order for"}),Le&&Fe&&Fe.missedVisitProductDetails&&Le&&Fe&&Fe.missedVisitProductDetails&&Fe.missedVisitProductDetails.map((function(e,t){return Object(l.jsxs)(i.a,{className:ia.missedVisitItemWrapper,noFlex:!0,children:[Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:Pa(e.productId)||"",className:ia.productThumbnail,alt:"product"},"thumbnail"),Object(l.jsxs)(i.a,{col:!0,className:ia.textWrapper,children:[Object(l.jsxs)(i.a,{col:!0,noFlex:!0,children:[Object(l.jsx)(o.e,{className:ia.cartTitle,children:e.displayName}),ea?null:Object(l.jsx)(o.f,{className:ia.cartDescription,children:"".concat(e.count||""," ").concat(e.type||"")})]}),ea?null:Object(l.jsx)(i.a,{noFlex:!0,className:ia.cartPriceWrapper,children:Object(l.jsxs)(i.a,{noFlex:!0,className:ia.cartPriceWrapper,children:[Object(l.jsx)(o.f,{className:ia.cartQtyLeft,children:"Qty: "}),Object(l.jsx)(o.f,{className:ia.cartQty,children:e.productQty||1})]})})]})]},"missedVisitItem_".concat(t))}))]})]})]}):he.length?Object(l.jsxs)(r.Fragment,{children:[Object(l.jsx)(i.a,{noFlex:!0,className:ia.leftCartDrawerWrapper,children:Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:L.b.crossIconWithBg||"/",onClick:function(e){return n({key:"loginDrawerOpen",value:!1})},className:ia.profileSideDrawerCrossIcon,alt:"login drawer"})}),Object(l.jsxs)(i.a,{className:ia.accWrapper,col:!0,children:[Object(l.jsx)(i.a,{noFlex:!0,className:ia.leftIconWrapper,children:Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:L.b.leftCart||"/",className:ia.leftCartIcon,alt:"login drawer"})}),Object(l.jsx)(o.c,{className:ia.leftCartTitle,children:Kt||"You left something in your cart"}),Object(l.jsx)(i.a,{noFlex:!0,col:!0,className:ia.cartListWrapper,children:he.length&&Fa}),Object(l.jsx)(i.a,{noFlex:!0,col:!0,className:ia.cartBtnWrapper,children:Object(l.jsx)(E.a,{buttonStyle:ia.checkoutButton,onClick:Ba,label:Jt||"CHECKOUT SECURELY"})})]})]}):function(){var e;return e=localStorage.getItem("firstName")||"",Object(l.jsxs)(r.Fragment,{children:[Object(l.jsxs)(i.a,{noFlex:!0,className:ia.profileTopSection,children:[Object(l.jsx)(o.d,{className:ia.profileTitleText,children:"Account"}),Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:L.b.crossIconWithBg||"/",onClick:function(e){return n({key:"loginDrawerOpen",value:!1})},className:ia.profileSideDrawerCrossIcon,alt:"login drawer"})]}),Object(l.jsxs)(i.a,{className:ia.accWrapper,col:!0,children:[Object(l.jsxs)(o.c,{className:Ee&&Object.keys(Ee).length?ia.welcomeTitleWithVisit:ia.welcomeTitle,children:["Welcome back,\xa0",e]}),xe&&Ee&&Object.keys(Ee).length?Object(l.jsx)(r.Fragment,{children:Na&&Ca?Object(l.jsxs)(i.a,{col:!0,className:ia.welcomeVisitDetailsWrapper,children:[Object(l.jsxs)(i.a,{className:ia.welcomeVisitDetails,children:[Object(l.jsx)(i.a,{className:ia.iconWrapper,children:Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,src:L.b.event||"/",className:ia.event,alt:"event-icon"})}),Object(l.jsxs)(i.a,{col:!0,className:ia.detailsWrapper,children:[Object(l.jsx)(o.c,{className:ia.detailsHeader,children:"You have a scheduled visit"}),Object(l.jsxs)(i.a,{className:ia.dateTimeWrapper,children:[Sa(Na)?Object(l.jsx)(o.f,{className:ia.dateToday,children:"Today at"}):Object(l.jsx)(o.f,{className:ia.date,children:Na}),Object(l.jsx)(o.f,{className:ia.time,children:Ca})]})]})]}),Object(l.jsx)(i.a,{className:ia.welcomeDescriptionWrapper,children:Object(l.jsxs)(o.f,{className:ia.welcomeDescription,children:["Please go to"," ",Object(l.jsx)("span",{className:ia.highlights,children:"Orders"})," and click"," ",Object(l.jsx)("span",{className:ia.highlights,children:"Start Visit"}),", to join the virtual waiting room 10 minutes prior to your visit time."]})}),Object(l.jsx)(i.a,{col:!0,className:ia.cTAWrapper,children:Object(l.jsx)(E.a,{buttonStyle:ia.checkoutButton,onClick:function(){return t.push("/orders")},label:P.z})})]}):null}):Object(l.jsx)(N.a,{variant:"rect",className:ia.visitDetailsWrapper}),Object(l.jsx)(Ha,{})]})]})}():Object(l.jsx)(F.a,{theme:ia.bioSkeleton}):Object(l.jsxs)(i.a,{col:!0,className:ia.rightDrawerWrapper,children:[Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,onClick:function(e){return n({key:"loginDrawerOpen",value:!1})},className:ia.sideDrawerCrossIcon,src:L.b.crossIconWithBg||"/",alt:"close icon"}),Ot?Object(l.jsx)(r.Fragment,{children:Object(l.jsxs)(i.a,{noFlex:!0,col:!0,className:ia.registerSection,children:[Object(l.jsx)(o.c,{className:ia.registerTitle,children:Ze}),Object(l.jsx)(o.f,{className:ia.registerDesription,children:Qe}),Object(l.jsx)(D.a,{classes:ia,emailError:bt,registerDone:It,emailId:dt,passwordError:xt,password:ut,firstNameError:St,firstName:Nt,lastNameError:kt,lastName:vt,termsAndConditionsChecked:Dt,SetGlobalInputValue:n,viewLoginScreen:Aa,connectionError1:T.ab,connectionError2:T.bb,loading:K,clearInputs:Va,networkError:ht,RegisterUser:Y,companyId:T.Y,firstNameBlur:q,lastNameBlur:Q,storefrontId:T.lb,productThumbnailData:te,GUID:de})]})}):Wt?Object(l.jsxs)(r.Fragment,{children:[Object(l.jsxs)(i.a,{noFlex:!0,col:!0,className:ia.resetPasswordSection,children:[Object(l.jsx)(o.c,{className:ia.loginTitle,children:Xe}),Object(l.jsx)(o.f,{className:ia.resetDescription,children:et}),Object(l.jsx)(_.a,{containerClass:ia.resetEmailContainer,placeholder:"Email Address",name:"emailId",onChange:_a,isCorrect:!bt&&(!!Tt||void 0),value:dt,error:"",showIconInput:!0}),ht||bt?Object(l.jsx)(o.f,{className:ia.resetPasswordError,children:ht?Object(l.jsxs)(r.Fragment,{children:[" ",T.ab,"\n","\n",T.bb]}):bt?Object(l.jsxs)(r.Fragment,{children:[" ",bt.firstLine,"\n","\n",bt.secondLine]}):null}):null]}),Object(l.jsx)(E.a,{buttonStyle:ia.buttonMargin,label:"SEND RESET EMAIL",onClick:La,loading:K,disabled:!(dt.trim().length&&!bt)}),Object(l.jsxs)(i.a,{noFlex:!0,className:ia.SwitchDrawerWrapper,children:[Object(l.jsx)(o.f,{onClick:function(e){n({key:"registerOpen",value:!1}),n({key:"resetEmailOpen",value:!1}),Va()},className:ia.dontHaveAccount,children:"Back to login"}),Object(l.jsx)(o.f,{onClick:function(e){n({key:"registerOpen",value:!0}),n({key:"resetEmailOpen",value:!1}),Va()},className:ia.dontHaveAccount,children:"Don\u2019t have an account?"})]})]}):Tt?Object(l.jsxs)(r.Fragment,{children:[Object(l.jsxs)(i.a,{noFlex:!0,col:!0,className:ia.loginSection,children:[Object(l.jsx)(o.c,{className:ia.loginTitle,children:at}),Object(l.jsx)(o.f,{className:ia.subDesription,children:nt}),Object(l.jsx)(o.f,{className:ia.sentResetPasswordDesription,children:ot})]}),Object(l.jsx)(E.a,{buttonStyle:ia.buttonMargin,label:"BACK TO LOGIN",onClick:function(e){n({key:"resetEmailSent",value:!1}),Va()},loading:K}),Object(l.jsx)(o.f,{onClick:La,className:ia.resendEmail,children:"Resend Email"})]}):Object(l.jsx)(r.Fragment,{children:Object(l.jsxs)(i.a,{noFlex:!0,col:!0,className:ia.loginSection,children:[Object(l.jsx)(o.c,{className:ia.loginTitle,children:Ge}),Object(l.jsx)(o.f,{className:ia.loginDesription,children:Ye}),Object(l.jsx)(I.a,{classes:ia,emailError:bt,loginDone:wt,emailId:dt,passwordError:xt,password:ut,Login:M,page:!1,SetGlobalInputValue:n,dontHaveAccount:Aa,resetPasswordView:Aa,loading:K,clearInputs:Va,networkError:ht,productThumbnailData:te,GUID:de})]})})]})}),Object(l.jsx)(W.a,{medical_consult:Bt,isCartModalOpen:ge,treatmentsData:G,hideCheckout:!1,headerTitles:u,globalData:v}),Object(l.jsxs)(i.a,{id:"top-header",className:ia.headerWrapper,children:[Object(l.jsx)(A.a,{mobileView:Object(l.jsx)(i.a,{noFlex:!0,center:!0,id:"toggle-modal-mobile-treatments-drawer",onClick:function(){s&&s(!h),h||g&&g(!0)},className:ia.drawerWrapper,children:h?Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,className:ia.drawerCloseIcon,src:L.b.crossIcon||"/",alt:"drawer close icon"},"drawerCloseIcon"):Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,className:ia.drawerIcon,src:L.b.drawerIcon||"/",alt:"drawer icon"},"drawerIcon")}),webView:null}),At?Object(l.jsx)(x.a,{prefetch:!1,href:"/",id:"homepage-logo",children:Object(l.jsx)(i.a,{noFlex:!0,className:ia.logoWrapper,children:Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,id:"upscript-logo",src:At||"/",className:ia.logo,alt:"logo"})})}):null,Object(l.jsx)(i.a,{className:ia.links,children:u&&u.map((function(e,t){return Object(l.jsx)(S.a,{ToggleMobileHeader:s,ToggleTreatmentDropDown:g,treatmentDropdownOpen:j,data:e,SetShowProductInfoSection:ie},t)}))}),Object(l.jsxs)(i.a,{noFlex:!0,children:[aa?Object(l.jsxs)(i.a,{className:ia.profileIconWrapper,noFlex:!0,children:[wt?Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,id:"profile-icon",onClick:Ra,src:L.b.greenProfile||"/",className:ia.profileLogo,alt:"profile-icon"},"greenProfile"):Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,id:"profile-icon",onClick:Ra,src:L.b.profile||"/",className:ia.profileLogo,alt:"profile-icon"},"profile"),Object(l.jsx)("p",{onClick:Ra,className:ia.signInText,children:"Sign In"})]}),oa?Object(l.jsx)(o.f,{onClick:Ra,className:ia.nameInitials,children:oa}):""]}):null,na?he.length?Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,onClick:Ea,id:"cart-icon",src:L.b.cartWithItem||"/",className:ia.cartLogo,alt:"cart-item"},"cart-with-item"):Object(l.jsx)(p.a,{layout:"responsive",unsized:!0,onClick:Ea,id:"cart-icon",src:L.b.cartIcon||"/",className:ia.cartLogo,alt:"cart-no-item"},"cart-with-no-item"):null]})]})]})]})})),M=a("kKU3"),Y=Object(s.a)((function(e){return{wrapperStyle:Object(c.a)({display:"none",width:"100%",height:"100%",position:"absolute",zIndex:1,paddingTop:115,paddingLeft:24,paddingRight:24,overflow:"auto",background:e.customColors.secondary,"@media print":{display:"none"}},e.breakpoints.down("sm"),{display:"flex","@media print":{display:"none"}})}})),q={SetShowProductInfoSection:C.x},Q=Object(n.b)((function(e){return{}}),q)((function(e){var t=e.headerTitles,a=void 0===t?[]:t,r=e.headerModalOpen,n=e.treatmentDropdownOpen,o=e.treatmentsData,s=e.ToggleTreatmentDropDown,c=e.ToggleMobileHeader,d=e.SetShowProductInfoSection;(a=a&&a.map((function(e){return e.acf}))).length&&(a=w()(a,["order"],["asc"]));var m=Y();return Object(l.jsx)(M.a,{in:r,children:Object(l.jsx)(i.a,{col:!0,className:m.wrapperStyle,children:a&&a.map((function(e,t){return Object(l.jsx)(S.a,{ToggleMobileHeader:c,treatmentsData:o,treatmentDropdownOpen:n,ToggleTreatmentDropDown:s,data:e,SetShowProductInfoSection:d},t)}))})})})),K=a("a6RD"),Z=a.n(K)()((function(){return a.e(88).then(a.bind(null,"ivLb"))}),{loadableGenerated:{webpack:function(){return["ivLb"]},modules:["../treatmentsDropDown"]}});t.a=Object(n.b)((function(e){return{headerState:e.header}}),{})((function(e){var t=e.globalData,a=e.headerTitles,n=e.treatmentsData,i=e.loginData,o=e.productThumbnailData,s=e.redirectUrl,c=Object(r.useState)(!1),d=c[0],u=c[1],p=Object(r.useState)(!1),h=p[0],b=p[1];return Object(l.jsxs)(r.Fragment,{children:[Object(l.jsx)(m,{globalData:t}),Object(l.jsx)(G,{headerModalOpen:d,globalData:t,loginData:i,productThumbnailData:o,ToggleMobileHeader:u,ToggleTreatmentDropDown:b,treatmentDropdownOpen:h,treatmentsData:n,headerTitles:a,redirectUrl:s}),n&&n.length>1&&Object(l.jsx)(Z,{treatmentsData:n,treatmentDropdownOpen:h,ToggleTreatmentDropDown:b}),Object(l.jsx)(g,{globalData:t}),Object(l.jsx)(Q,{headerModalOpen:d,treatmentsData:n,treatmentDropdownOpen:h,ToggleTreatmentDropDown:b,ToggleMobileHeader:u,headerTitles:a})]})}))},yayv:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function n(e){return e?r[e]:r.trunc}}}]);