1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="41c74313-47e4-4111-aba1-be76f27b30ce",e._sentryDebugIdIdentifier="sentry-dbid-41c74313-47e4-4111-aba1-be76f27b30ce")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1403],{50791:(e,t,i)=>{i.d(t,{I:()=>n,g:()=>a});var r=i(9337);let n=()=>(0,r.Em)({uri:"/users/me/branded-medication-alternatives",options:{method:"GET"}}),a=e=>{let{preferredClinicalOffering:t,surveyType:i}=e;return(0,r.Em)({options:{method:"POST",data:{preferredClinicalOffering:t,surveyType:i}},uri:"/users/me/branded-medication-alternatives"})}},55017:(e,t,i)=>{i.r(t),i.d(t,{DiscussLowerCostMedicationPage:()=>A});var r=i(37876),n=i(98625),a=i(82777),l=i(86156),o=i(1729),s=i(16321),c=i(59542),d=i(14232),p=i(89099),h=i(87166),u=i(94726),g=i(1111),f=i(30499),v=i(89254),m=i(42280),b=i(58013),x=i(94158),y=i(99667);let w=[u.mR.SemaglutideOnly_v1,u.mR.TirzepatideOnly_v1,u.mR.NoGlp1OralMedications_v1];function A(e){let{clinicalOffering:t,otherTreatments:i,paymentModel:u,selectedSku:A,skuDetails:k}=e,j=(0,p.useRouter)(),S=(0,g.w)(e=>e.setOutcome),{mutateAsync:C,isPending:T}=(0,f.Q)(),_=(0,d.useMemo)(()=>i?w.filter(e=>i.includes(e)):[],[i]),[R,I]=(0,d.useState)(""),D=(0,d.useCallback)(async()=>{await C({preferredClinicalOffering:R}),(0,x.s9)(x.Bp.MedicationAlternativeSelected,{selectedAlternative:R,currentMedication:t,placement:"Intake"}),S(g.B.SelectedAlternative,R),j.push(h.A.surveys.brandedMedicationAlternatives.success)},[C,R,S,j,t]),L=(0,d.useCallback)(()=>{S(g.B.Declined),j.push(h.A.surveys.brandedMedicationAlternatives.success)},[S,j]);return(0,r.jsxs)(n.A,{sx:e=>({gap:"".concat(e.customTokens.spacing.lg,"px")}),children:[(0,r.jsxs)(n.A,{sx:e=>({gap:"".concat(e.customTokens.spacing.sm,"px")}),children:[(0,r.jsx)(a.A,{variant:"headline5",children:"Selected medication"}),(0,r.jsx)(s.$,{icon:"trending_up",iconFillColor:y.Tj["icon-warning-weak"],text:"Prices increase with dose"}),t&&(0,r.jsx)(v.J,{clinicalOffering:t})]}),(0,r.jsxs)(n.A,{sx:e=>({gap:"".concat(e.customTokens.spacing.sm,"px")}),children:[(0,r.jsx)(a.A,{variant:"headline5",children:"Lower-cost alternatives"}),(0,r.jsxs)(l.A,{sx:{display:"flex",flexWrap:"wrap",gap:"4px"},children:[(0,r.jsx)(s.$,{icon:"paid",iconFillColor:y.Tj["icon-success-default"],text:"Same price for all doses"}),(0,r.jsx)(s.$,{icon:"delivery_truck_speed",iconFillColor:y.Tj["icon-success-default"],text:"3-7 days"})]}),_.length>0&&(0,r.jsx)(c.$,{value:R,onChange:I,children:(0,r.jsx)(n.A,{sx:{gap:"16px"},children:_.map(e=>(0,r.jsx)(m.E,{clinicalOffering:e,paymentModel:u,selectedSku:A,skuDetails:k},e))})})]}),t&&(0,r.jsx)(b.$,{clinicalOffering:t}),(0,r.jsxs)(n.A,{sx:e=>({position:"sticky",bottom:0,gap:"".concat(e.customTokens.spacing.sm,"px"),paddingY:"".concat(e.customTokens.spacing.md,"px"),backgroundColor:e.palette.background.default}),children:[(0,r.jsx)(o.FoundButton,{onClick:D,disabled:!R||T,children:"Yes, discuss selected alternative"}),(0,r.jsx)(o.FoundButton,{flavor:o.FoundButtonFlavor.Tertiary,onClick:L,children:"No, I'm not interested"})]})]})}},82097:(e,t,i)=>{i.d(t,{A:()=>g});var r=i(14232),n=i(69241),a=i(13323),l=i(66438),o=i(95651),s=i(63915),c=i(90599),d=i(37876);let p=(0,l.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.absolute&&t.absolute,t[i.variant],i.light&&t.light,"vertical"===i.orientation&&t.vertical,i.flexItem&&t.flexItem,i.children&&t.withChildren,i.children&&"vertical"===i.orientation&&t.withChildrenVertical,"right"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignRight,"left"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignLeft]}})((0,o.A)(e=>{let{theme:t}=e;return{margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.alpha((t.vars||t).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:e=>{let{ownerState:t}=e;return!!t.children},style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:e=>{let{ownerState:t}=e;return t.children&&"vertical"!==t.orientation},style:{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),borderTopStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"vertical"===t.orientation&&t.children},style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider),borderLeftStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"right"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:e=>{let{ownerState:t}=e;return"left"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}})),h=(0,l.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.wrapper,"vertical"===i.orientation&&t.wrapperVertical]}})((0,o.A)(e=>{let{theme:t}=e;return{display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)"),whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")}}]}})),u=r.forwardRef(function(e,t){let i=(0,s.b)({props:e,name:"MuiDivider"}
1),{absolute:r=!1,children:l,className:o,orientation:u="horizontal",component:g=l||"vertical"===u?"div":"hr",flexItem:f=!1,light:v=!1,role:m="hr"!==g?"separator":void 0,textAlign:b="center",variant:x="fullWidth",...y}=i,w={...i,absolute:r,component:g,flexItem:f,light:v,orientation:u,role:m,textAlign:b,variant:x},A=(e=>{let{absolute:t,children:i,classes:r,flexItem:n,light:l,orientation:o,textAlign:s,variant:d}=e;return(0,a.A)({root:["root",t&&"absolute",d,l&&"light","vertical"===o&&"vertical",n&&"flexItem",i&&"withChildren",i&&"vertical"===o&&"withChildrenVertical","right"===s&&"vertical"!==o&&"textAlignRight","left"===s&&"vertical"!==o&&"textAlignLeft"],wrapper:["wrapper","vertical"===o&&"wrapperVertical"]},c.K,r)})(w);return(0,d.jsx)(p,{as:g,className:(0,n.A)(A.root,o),role:m,ref:t,ownerState:w,"aria-orientation":"separator"===m&&("hr"!==g||"vertical"===u)?u:void 0,...y,children:l?(0,d.jsx)(h,{className:A.wrapper,ownerState:w,children:l}):null})});u&&(u.muiSkipListHighlight=!0);let g=u}}]); 2//# sourceMappingURL=1403.4da14f955ca6c87b.js.map
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.