
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9b1453eb-3fe4-533d-8c08-08d2286414c5")}catch(e){}}();
import{a as Tr,b as Ir}from"https://public-assets.fullscript.com/build/_shared/chunk-W3COH5BW.js";import{a as l,c as Pr}from"https://public-assets.fullscript.com/build/_shared/chunk-JATB4ZTF.js";import{c as Sr,d as _r}from"https://public-assets.fullscript.com/build/_shared/chunk-XGDFC4L6.js";import{Cg as xr,Df as br,Fb as b,Rb as I,Se as J,Ta as f,Vc as yr,We as H,_c as hr,he as M,ie as d,je as q,le as Q,og as L,tf as B,tg as $,vf as C,xg as K,ye as ir}from"https://public-assets.fullscript.com/build/_shared/chunk-I6R4BY37.js";import{K as _,T as vr,b as e,d as T,k as sr,x as fr}from"https://public-assets.fullscript.com/build/_shared/chunk-MFLNL7SO.js";import{S as h}from"https://public-assets.fullscript.com/build/_shared/chunk-SB5ZQSYP.js";import{A as F,B as t,C as p,a as Pe,x as gr}from"https://public-assets.fullscript.com/build/_shared/chunk-3MUBYVPU.js";import{e as V}from"https://public-assets.fullscript.com/build/_shared/chunk-4MEJQA46.js";T();var Y=V(q()),wr={text:r=>e("color:",r.text.body,";","label:Price-styles"),dark:r=>e("color:",r.text.body,";","label:Price-styles"),darkBold:r=>e("color:",r.text.body,";font-weight:",Y.typography.weightSemiBold,";","label:Price-styles"),green:r=>e("color:",r.success.textBase,";font-weight:",Y.typography.weightSemiBold,";","label:Price-styles"),grey:r=>e("color:",r.text.emphasis,";","label:Price-styles"),purple:r=>e("color:",r.highlight.textBase,";","label:Price-styles")},Ar=e("filter:blur(3px);user-select:none;","label:Price-styles"),jr=e("font-weight:",Y.typography.weightBase,";","label:Price-styles"),Cr=e("white-space:nowrap;","label:Price-styles"),or=e("font-weight:",Y.typography.weightSemiBold,";","label:Price-styles");var w=r=>{var{price:i,displayColor:a,isNegative:o,currencySymbol:n,blur:g,isSecondaryWeight:c,isPerUnit:m,isBold:u}=r,S=f(r,["price","displayColor","isNegative","currencySymbol","blur","isSecondaryWeight","isPerUnit","isBold"]),{t:y}=I(),v=o?"-":"",x=[a&&wr[a],g&&Ar,c&&jr,u&&or],P=()=>t("span",b(h({css:x},S),{children:"".concat(v).concat(n||"","$").concat(Number(i).toFixed(2))}));return m?p(B,{alignment:"center",spacing:"xsmall",isWrapped:!1,isFullWidth:!0,children:[P(),t(C,{css:[Cr,u&&or],type:"body",children:y("sharedCommon:PerUnit")})]}):P()};T();var Dr=V(q()),Z=r=>e("color:",r.success.textBase,";display:inline;font-weight:",Dr.typography.weightSemiBold,";.fa-bolt path{color:",r.success.textBase," !important;}","label:PricingInformation-styles"),Wr=r=>e("color:",r.text.body,";margin-right:0.5rem;","label:PricingInformation-styles"),Er=e("margin-right:0.25rem;","label:PricingInformation-styles");var Or=r=>{var{msrp:i,sellPrice:a,currencySymbol:o,isPromoActive:n,isAutoship:g,blur:c,overridePriceColor:m}=r,u=()=>n?t(M,{icon:hr,css:Er}):null,S=()=>!a||i===a?t("span",{css:Z,children:t(w,{price:i,"data-e2e":ir.msrp,currencySymbol:o,displayColor:m||g?"purple":"grey",blur:c})}):i?p(F,{children:[t("s",{css:Wr,children:t(w,{price:i,"data-e2e":ir.msrp,currencySymbol:o,blur:c})}),p("span",{css:Z,children:[u(),t(w,{price:a,"data-e2e":"sell-price",currencySymbol:o,displayColor:g?"purple":"green",blur:c})]})]}):p("span",{css:Z,children:[u(),t(w,{price:a,"data-e2e":"sell-price",currencySymbol:o,displayColor:g?"purple":"green",blur:c})]});return S()};T();var Br=V(q());var Lr=e("align-items:baseline;display:flex;","label:ProductUnitPricing-styles"),ar=e("flex-wrap:wrap;","label:ProductUnitPricing-styles"),Rr=e("@media (max-width:",_.phoneLargeMax,"){flex-direction:column;}","label:ProductUnitPricing-styles"),Te=e("@media (max-width:",_.phoneSmallMax,"){flex-direction:column;}","label:ProductUnitPricing-styles"),lr=r=>e(vr.ellipsesOverflowHelper," ",Lr," ",r&&Te,"label:ProductUnitPricing-styles"),Nr=e("flex-direction:column;","label:ProductUnitPricing-styles"),X=e("margin-left:0.25rem;","label:ProductUnitPricing-styles"),nr=r=>e("font-size:1.25rem;color:",r.success.textBase,";font-weight:",Br.typography.weightSemiBold,";","label:ProductUnitPricing-styles"),zr=e(X,";@media (max-width:",_.phoneLargeMax,"){margin-left:0;}","label:ProductUnitPricing-styles"),kr=e(Lr," ",ar,"label:ProductUnitPricing-styles");var Ur=r=>{var{sellPrice:i,msrp:a,promotionPrice:o,unitPostfix:n,isWholesale:g,currencySymbol:c,isStackedOnMobile:m,isPromoActive:u,isStacked:S,isAutoship:y,blur:v,overridePriceColor:x}=r,{t:P}=I("products"),{phoneLarge:s}=K(),D=s.lessThan,W=()=>D?t("s",{children:t(w,{price:i,blur:v})}):p(F,{children:["\xA0",t("s",{children:t(w,{price:i,blur:v})})]}),j=()=>D&&o?p(F,{children:[p("div",{css:kr,children:[t(w,{price:o,css:nr,blur:v}),t(C,{css:X,children:n})]}),p(C,{css:zr,children:[W()," | ",P("MSRP"),":\xA0",t(w,{price:a})]})]}):p(F,{children:[t(w,{price:o??i,css:nr,blur:v}),p(C,{css:X,children:[n,!!o&&W()," | ",P("MSRP"),":\xA0",t(w,{price:a,blur:v})]})]});return g?t("div",{css:[lr(m),o&&Rr],children:j()}):p("div",{css:[lr(m),S&&Nr,n&&ar],children:[t(Or,{isPromoActive:u,sellPrice:i,msrp:a,currencySymbol:c,isAutoship:y,blur:v,overridePriceColor:x}),!!n&&p(C,{css:X,children:["(",n,")"]})]})};T();var Fr=r=>e("white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:",r.text.body,";","label:ProductSize-styles");var Ae=r=>typeof r=="string",Mr=r=>{var{descriptor:i}=r;return Ae(i)&&i.length===0?t("br",{}):t(C,{isMarginless:!0,"data-e2e":"dosage-name",css:Fr,children:i})};T();var R={base:r=>e(fr.transition(),";border-radius:",_.borderRadius,";background-color:",r.surface.level1,";position:relative;display:flex;transform-style:flat;width:100%;","label:CardWrapper-styles"),isResponsive:e("@media only screen and (max-width:",_.phoneMax,"){display:block;}","label:CardWrapper-styles"),hasHoverStyle:r=>e("&:hover{box-shadow:0 0 4px 0 ",sr(r.text.body,.25),";}","label:CardWrapper-styles"),hasBorderStyle:r=>e("box-shadow:0 1px 2px 0 ",sr(r.text.body,.25),";border:1px solid ",r.separator.base,";","label:CardWrapper-styles"),ds4:e("background-color:transparent;box-shadow:none;","label:CardWrapper-styles"),ds4Border:r=>e("border:1px solid ",r.system.borderBase,";","label:CardWrapper-styles"),ds4Hover:r=>e("&:hover{border-color:",r.system.borderHover,";box-shadow:none;}","label:CardWrapper-styles")};var bt=r=>{var{children:i,hasBorderStyle:a=!0,hasHoverStyle:o=!0,isResponsive:n=!0,styleOverrides:g}=r,c=f(r,["children","hasBorderStyle","hasHoverStyle","isResponsive","styleOverrides"]),m=Q(),u=[R.base,a&&R.hasBorderStyle,o&&R.hasHoverStyle,n&&R.isResponsive,m&&R.ds4,m&&a&&R.ds4Border,m&&o&&R.ds4Hover,g];return t("div",b(h({css:u},c),{children:i}))};T();var pr={base:e("display:flex;align-items:flex-end;> *:not(:last-child){margin-right:0.75rem;}","label:ProductAddToCartWrapper-styles"),large:e("margin-top:1rem;","label:ProductAddToCartWrapper-styles"),medium:e("margin-top:0.75rem;","label:ProductAddToCartWrapper-styles"),small:e("margin-top:0.5rem;","label:ProductAddToCartWrapper-styles")};var wt=r=>{var{children:i,topMarginSize:a}=r,o=f(r,["children","topMarginSize"]),n=()=>[pr.base,pr[a]];return t("div",b(h({css:n()},o),{children:i}))};var Hr=r=>{var{isColor:i="system",size:a="medium"}=r,o=f(r,["isColor","size"]),{t:n}=I();return t(L,b(h({isColor:i,size:a},o),{children:n("sharedCommon:restrictedAccess")}))};var Kr=r=>{switch(r){case l.IN_STOCK:return"info";case l.BACKORDERED:return"warning";case l.DISCONTINUED:case l.NA:case l.UNAVAILABLE:return"danger";default:return"warning"}};T();var De="0.5rem",Gr=r=>e("margin-right:",De,";&&& path{color:",r.warning.textBase,";}","label:ProductAvailabilityTag-styles"),Vr=e("align-items:center;white-space:nowrap;","label:ProductAvailabilityTag-styles"),Yr=e("display:inline-flex;","label:ProductAvailabilityTag-styles"),Xr=e("display:flex;flex-direction:column;font-size:0.7em;padding:0.1em 0;svg{margin-right:unset;}","label:ProductAvailabilityTag-styles"),qr=e("display:block;text-align:center;","label:ProductAvailabilityTag-styles");var Qr=r=>{var{availabilityStatus:i,expectedReturnDate:a,isSmallSize:o,tooltipPosition:n,tooltipTextDirection:g,withIcons:c=!0,defaultTag:m,showDiscontinuedTooltip:u}=r,S=()=>i===l.BACKORDERED||i===l.DISCONTINUED||i===l.NA||i===l.UNAVAILABLE||i===l.TO_BE_DISCONTINUED||i===l.FULLY_RESTRICTED,{t:y}=I(),{isPatient:v}=J(),{phoneLarge:x}=K(),P=[Vr,o?Xr:Yr];if(!S())return null;var s=()=>t("span",{css:P,children:y("variantStatus:OutOfStockAvailabilityTag")}),D=()=>p("span",{css:P,children:[c&&t(M,{css:Gr,icon:br}),l.BACKORDERED]}),W=()=>i===l.BACKORDERED?D():i===l.UNAVAILABLE||i===l.NA?s():i===l.DISCONTINUED?t("span",{css:P,children:l.DISCONTINUED}):i,j=()=>{var A=i===l.TO_BE_DISCONTINUED||i===l.FULLY_RESTRICTED||m?"system":Kr(i),O=m?d.MEDIUM:d.SMALL;return t(L,{isColor:A,size:O,children:W()})},k=(A,O)=>{var{isValid:rr,returnDate:er,daysToReturn:tr}=Pr(a);return O&&rr?p("span",{children:[O," ",t("b",{children:er}),t("br",{}),t("span",{css:qr,children:y("variantStatus:DaysToReturn",{count:tr})})]}):A},E=(A,O)=>t($,{tooltipContent:k(A,O),placement:n,textDirection:g,children:j()}),U=()=>E(y("variantStatus:OutOfStockWithNoReturnDate"),y("variantStatus:OutOfStockWithReturnDate")),G=()=>E(y("variantStatus:NEW_BackorderedWithNoReturnDate"),y("variantStatus:BackorderedWithReturnDate")),N=()=>E(y(u?"sharedCommon:ProductOutOfStockOrDiscontinued":"variantStatus:AskYourPrac")),z=()=>x.greaterThan&&i===l.BACKORDERED?G():x.greaterThan&&i===l.UNAVAILABLE||x.greaterThan&&i===l.NA?U():(v||u)&&i===l.DISCONTINUED?N():j();return z()};var se=V(Pe());T();var Jr=V(q());var $r=r=>e("position:relative;background-color:",r.light.backgroundBase,";border-radius:",Jr.borders.radiusBase,";padding:0.5rem;","label:ProductImage-styles"),cr={base:e("background-size:contain;background-position:center;background-repeat:no-repeat;height:8.125rem;width:8.125rem;","label:ProductImage-styles"),[d.THUMBNAIL]:e("height:2.8125rem;width:2.8125rem;","label:ProductImage-styles"),[d.XSMALL]:e("height:4.5rem;width:4.5rem;","label:ProductImage-styles"),[d.SMALL]:e("height:5.9rem;width:5.9rem;","label:ProductImage-styles"),[d.MEDIUM]:e("height:6.5rem;width:6.5rem;","label:ProductImage-styles"),[d.LARGE]:e("height:8.1rem;width:8.1rem;","label:ProductImage-styles"),[d.XLARGE]:e("height:13rem;width:13rem;","label:ProductImage-styles"),withTag:e("opacity:0.5;","label:ProductImage-styles")},Zr=e("height:100%;width:100%;position:absolute;top:0;left:0;opacity:0;","label:ProductImage-styles"),re=e("overflow:hidden;","label:ProductImage-styles"),ee=e("height:8.125rem;width:8.125rem;@media (min-width:",_.tablet,"){height:13rem;width:13rem;}@media (min-width:",_.desktop,"){height:18rem;width:18rem;}@media (min-width:",_.widescreen,"){height:20rem;width:20rem;}","label:ProductImage-styles"),te=e("height:8.5rem;width:8.5rem;","label:ProductImage-styles"),ie=e("padding:2rem;","label:ProductImage-styles");var Oe="/assets/noimage/product.png",Be="/assets/noimage/product-ee.png",oe=r=>{var{name:i,image:a,isSize:o=d.MEDIUM,isPdp:n,isOptimizedProductCard:g,isOptimizedEmersonImageSpacing:c}=r,m=f(r,["name","image","isSize","isPdp","isOptimizedProductCard","isOptimizedEmersonImageSpacing"]),{isEmerson:u}=J(),S=u?Be:Oe,[y,v]=(0,se.useState)(!1),x=y?S:a,P=s=>{s.stopPropagation(),v(!0)};return p("div",b(h({css:[$r,n&&re,g&&te,c&&ie]},m),{children:[t("div",{css:[cr.base,o&&cr[o],n&&ee],style:{backgroundImage:'url("'.concat(encodeURI(x),'")')}}),t("img",{role:"img",css:Zr,src:x,alt:"".concat(i," product image"),onError:P})]}))};T();var ae=e("position:relative;display:flex;align-items:center;justify-content:center;width:auto;margin:auto;","label:ProductImageWithTag-styles"),mr={base:e("width:100%;display:flex;justify-content:center;","label:ProductImageWithTag-styles"),translucent:e("opacity:0.3;","label:ProductImageWithTag-styles")},le=e("position:absolute;left:0;right:0;","label:ProductImageWithTag-styles"),ne=e("position:absolute;top:-0.5rem;right:-0.5rem;","label:ProductImageWithTag-styles"),pe=r=>e("width:25px;height:25px;display:flex;justify-content:center;align-items:center;border:1px solid ",r.danger.borderBase,";border-radius:50%;path{fill:",r.danger.textBase,";}","label:ProductImageWithTag-styles"),ce=e("position:absolute;bottom:0.5rem;width:10rem;","label:ProductImageWithTag-styles"),me=e("position:absolute;top:0;left:0;","label:ProductImageWithTag-styles");var bi=r=>{var{availabilityStatus:i,expectedReturnDate:a,name:o,quantity:n,image:g,isSize:c=d.LARGE,isHeatSensitive:m,heatSensitiveText:u,tooltipPosition:S,tooltipTextDirection:y,secondaryTag:v,productImageStyle:x,productImageWrapperStyle:P,tagStyle:s,isPdp:D,isOptimizedProductCard:W,isOptimizedEmersonImageSpacing:j,hideTagIcons:k,defaultTag:E,showDiscontinuedTooltip:U,isRestricted:G}=r,N=f(r,["availabilityStatus","expectedReturnDate","name","quantity","image","isSize","isHeatSensitive","heatSensitiveText","tooltipPosition","tooltipTextDirection","secondaryTag","productImageStyle","productImageWrapperStyle","tagStyle","isPdp","isOptimizedProductCard","isOptimizedEmersonImageSpacing","hideTagIcons","defaultTag","showDiscontinuedTooltip","isRestricted"]),z=()=>i===l.NA||i===l.BACKORDERED||i===l.UNAVAILABLE||i===l.DISCONTINUED||i===l.TO_BE_DISCONTINUED||i===l.FULLY_RESTRICTED,A=[ae,P],[O]=H("zenith_disable_priority_shipping"),rr=[mr.base,z()&&(s??mr.translucent)],er=()=>n?t(xr,{count:n}):null,tr=()=>m?t("div",{css:ne,children:t($,{tooltipContent:u,isTooltipHidden:O,placement:"bottom",children:t("div",{css:pe,children:t(M,{icon:yr})})})}):null,xe=c===d.SMALL||c===d.XSMALL||c===d.THUMBNAIL;return p("div",{css:A,children:[t("div",{css:rr,children:t(oe,h({css:x,name:o,image:g,isSize:c,isPdp:D,isOptimizedProductCard:W,isOptimizedEmersonImageSpacing:j},N))}),t("div",{css:le,children:t(B,{justify:"center",children:t(Qr,{availabilityStatus:i,expectedReturnDate:a,isSmallSize:xe,tooltipTextDirection:y,tooltipPosition:S,withIcons:!k,defaultTag:E,showDiscontinuedTooltip:U})})}),G&&i!==l.FULLY_RESTRICTED&&t(Hr,{css:me,isColor:"system"}),v&&t("div",{css:ce,children:v}),er(),tr()]})};T();T();var dr=r=>e("width:1.25rem;margin-right:0.25rem;path{fill:",r.success.textBase," !important;}","label:OnlyOnFullscriptTag-styles"),de=e("margin-top:0.25rem;","label:OnlyOnFullscriptTag-styles");var ue=r=>{var{justify:i}=r,{t:a}=I(),o=Q(),n=gr(),g=o&&n.theme==="dark",c=i||"center",[m]=H("cura_daily_packs_phase_2"),u=()=>g?t(Sr,{css:dr}):t(_r,{css:dr});return t(B,{justify:c,children:p(L,{size:d.SMALL,isColor:"success",css:de,children:[m&&u(),a("products:OnlyOnFullscript")]})})};var ge=r=>{var{justify:i="center"}=r,a=f(r,["justify"]),{t:o}=I();return t(B,{justify:i,children:t(L,b(h({size:d.SMALL,isColor:"system"},a),{children:o("products:FilledOnSite")}))})};T();var ye=e("width:100%;display:flex;flex-direction:column;","label:ProductInformation-styles"),he=e("display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:center;width:100%;@media (max-width:",_.phoneSmallMax,"){flex-direction:column;align-items:flex-start;}","label:ProductInformation-styles"),fe=e("margin-right:0.5rem;","label:ProductInformation-styles"),ve=e("align-self:flex-start;","label:ProductInformation-styles");var ur=r=>{var{children:i}=r,a=f(r,["children"]);return t("div",b(h({css:ye},a),{children:i}))};var os=r=>{var{changeOnHover:i,children:a,isFilledOnSite:o,isDailyPack:n,isDynamicDailyPack:g,isNoClip:c,isPromoActive:m,productNameWordWrap:u,showUnitPricing:S=!0,isAutoship:y,showVariant:v=!0,overrideName:x,tags:P,variant:s,brandLink:D,type:W}=r,j=f(r,["changeOnHover","children","isFilledOnSite","isDailyPack","isDynamicDailyPack","isNoClip","isPromoActive","productNameWordWrap","showUnitPricing","isAutoship","showVariant","overrideName","tags","variant","brandLink","type"]),[k]=H("cura_daily_packs_phase_2"),{phoneLarge:E}=K(),U=()=>{var N;if(x)return x;if(k&&g){var z,A;return(s==null||(z=s.dailyPack)===null||z===void 0?void 0:z.nameWithSupply)||(s==null||(A=s.dailyPack)===null||A===void 0?void 0:A.name)}return n?s?.name:s==null||(N=s.product)===null||N===void 0?void 0:N.name},G=()=>{if(k&&n&&E.lessThan)return null;if(n)return t(ue,{justify:"start"})};return s?p(ur,b(h({},j),{children:[t("div",{css:he,children:t(Ir,{type:W,isNoClip:c,changeOnHover:i,wordWrap:u,name:U(),"data-e2e":"product-name",css:fe})}),t(Tr,{name:s?.brandName,isNoClip:c,to:D,css:ve}),P,v&&t(Mr,{descriptor:s.descriptor}),o&&t(ge,{justify:"start"}),G(),S&&t(Ur,{isPromoActive:m,sellPrice:y?s?.autoshipPrice:s?.sellPrice,msrp:s.msrp,isAutoship:y}),a]})):t(ur,b(h({},j),{children:a}))};export{Mr as a,bt as b,wt as c,Hr as d,Qr as e,bi as f,ue as g,w as h,Ur as i,os as j};
//# sourceMappingURL=https://public-assets.fullscript.com/build/_shared/chunk-3MFHGYRW.js.map

//# debugId=9b1453eb-3fe4-533d-8c08-08d2286414c5
