{"version":3,"file":"AddToOrder.C1G5ZFF2.mjs","names":["getProps","React.forwardRef","CheckCircle","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","useState","loadStripe","_Fragment","__esmMin","window","x","pe","init_ssg_sandbox_shims","init_npm_react_18_3_1","_e","de","oe","p","c","J","init_jsx_runtime","ie","motion","LayoutGroup","MotionConfigContext","init_framer_motion_DhsWWWsN","RichText","addFonts","withFX","addPropertyControls","useSVGTemplate","withCSS","useComponentViewport","useLocaleInfo","cx","init_framer_DcGZRLrs","ControlType","useVariantState","getFonts","init_PricesConfigUpsell","init_UpsellStore","resolvePaymentPrice","useUpsellStore","init_stripe_esm","d","mask","Base","MotionSVG","SVG","svg","getProps$1","Icon","init_yiTrVeQCl","props","rest","animated","width1","alpha","color","restProps","href","className","PF8qIBMI7","rm13cFo5g","akr7Ge2dd","style","addPropertyOverrides","variants","nextOverrides","variant","overrides","CheckCircleFonts","MotionDivWithFX","enabledGestures","cycleOrder","serializationHash","variantClassNames","transition1","transition2","animation","transformTemplate1","Transition","humanReadableVariantMap","Variants","getProps","createLayoutDependency","FrameraZGVMDJwj","init_aZGVMDJwj","config","transition","value","contextValue","submitButtonText","fallbackRef","refBinding","ref","defaultLayoutId","layoutDependency","scopingClassNames","isDisplayed","baseVariant","isDisplayed1","layoutId","gestureHandlers","classNames","gestureVariant","W_Y3049Vh","reportUpsellPurchase","stepforge","intent","parts","at","page","key","details","AddToOrder","store","setStore","error","setError","handleUpsell","program","getProgramType","returnUrlPath","isPlan2","defaultKey","effectivePriceId","priceId","params","customerId","medication","providerKey","getProviderKey","PROVIDERS","returnUrl","BASE_URL","coupon","keepLocked","prepareRes","upsellPrepareEndpoint","prepareJson","msg","stripe","publishableKey","confirmError","paymentIntent","done","err","message","l","buttonText","init_AddToOrder","prov","path","match"],"sources":["https:/framerusercontent.com/modules/eY2ls7sB6tzJXWNgV4Dq/kM9Fxq8Qi6Ytf7ubITFe/yiTrVeQCl.js","https:/framerusercontent.com/modules/OnfXtcODGV2VjSomoFTS/MfYER7SOhPDnMCaHzWi5/aZGVMDJwj.js","https:/framerusercontent.com/modules/KrfBc9c6T0QdIgaCozYz/3TOE4O39i2Mm0PgcsSfa/AddToOrder.js"],"sourcesContent":["// Generated by Framer (ceb690b)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 10 20 C 15.523 20 20 15.523 20 10 C 20 4.477 15.523 0 10 0 C 4.477 0 0 4.477 0 10 C 0 15.523 4.477 20 10 20\" fill-opacity=\"var(--42b6oa, 0.16)\" fill=\"var(--4i27ky, rgb(0, 0, 0))\" height=\"20px\" id=\"ehX5v27Sr\" transform=\"translate(2 2)\" width=\"20px\"/><path d=\"M 6 11 L 9 14 L 14 7 M 20 10 C 20 15.523 15.523 20 10 20 C 4.477 20 0 15.523 0 10 C 0 4.477 4.477 0 10 0 C 15.523 0 20 4.477 20 10\" fill=\"transparent\" height=\"20px\" id=\"nzvPiSZRi\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--b8xnka, 2)\" stroke=\"var(--4i27ky, rgb(0, 0, 0))\" transform=\"translate(2 2)\" width=\"20px\"/></svg>';const getProps=({alpha,color,height,id,width,width1,...props})=>{return{...props,akr7Ge2dd:width1??props.akr7Ge2dd??2,PF8qIBMI7:alpha??props.PF8qIBMI7??.16,rm13cFo5g:color??props.rm13cFo5g??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,rm13cFo5g,akr7Ge2dd,PF8qIBMI7,...restProps}=getProps(props);const href=useSVGTemplate(\"539707276\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-7kbvw\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--42b6oa\":PF8qIBMI7,\"--4i27ky\":rm13cFo5g,\"--b8xnka\":akr7Ge2dd,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-7kbvw { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"rm13cFo5g\":\"color\",\"akr7Ge2dd\":\"width1\",\"PF8qIBMI7\":\"alpha\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Check Circle\",\"color\":{\"type\":\"variable\",\"value\":\"4i27ky\"},\"set\":{\"localId\":\"vectorSet/jIUXDd189\",\"id\":\"jIUXDd189\",\"moduleId\":\"mbMVkRB5lkkRzWT95l5L\"}}\n */const Icon=withCSS(Component,css,\"framer-7kbvw\");Icon.displayName=\"Check Circle\";export default Icon;addPropertyControls(Icon,{rm13cFo5g:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},akr7Ge2dd:{defaultValue:2,displayStepper:true,hidden:false,max:4,min:1,title:\"Width\",type:ControlType.Number},PF8qIBMI7:{defaultValue:.16,displayStepper:true,hidden:false,max:1,min:0,step:.01,title:\"Alpha\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"24\",\"framerIntrinsicWidth\":\"24\",\"framerVariables\":\"{\\\"rm13cFo5g\\\":\\\"color\\\",\\\"akr7Ge2dd\\\":\\\"width1\\\",\\\"PF8qIBMI7\\\":\\\"alpha\\\"}\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerVector\":\"{\\\"name\\\":\\\"Check Circle\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"4i27ky\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/jIUXDd189\\\",\\\"id\\\":\\\"jIUXDd189\\\",\\\"moduleId\\\":\\\"mbMVkRB5lkkRzWT95l5L\\\"}}\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (0f5ea8b)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFonts,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import CheckCircle from\"https://framerusercontent.com/modules/eY2ls7sB6tzJXWNgV4Dq/kM9Fxq8Qi6Ytf7ubITFe/yiTrVeQCl.js\";const CheckCircleFonts=getFonts(CheckCircle);const MotionDivWithFX=withFX(motion.div);const enabledGestures={wkg8lUGxU:{hover:true,pressed:true}};const cycleOrder=[\"wkg8lUGxU\",\"q9yMb7M0E\",\"Yh3yuEdzm\",\"FINZOD1UJ\",\"J0tpYnOxk\"];const serializationHash=\"framer-Jtefm\";const variantClassNames={FINZOD1UJ:\"framer-v-9dq3rl\",J0tpYnOxk:\"framer-v-1g702x4\",q9yMb7M0E:\"framer-v-1m2ddot\",wkg8lUGxU:\"framer-v-1wc3aql\",Yh3yuEdzm:\"framer-v-1reio6r\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const W_Y3049Vh=undefined;const transition1={delay:0,duration:.2,ease:[.44,0,.56,1],type:\"tween\"};const transition2={delay:0,duration:1,ease:[0,0,1,1],type:\"tween\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:0};const transformTemplate1=(_,t)=>`translateX(-50%) ${t}`;const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={Default:\"wkg8lUGxU\",Disabled:\"Yh3yuEdzm\",Error:\"J0tpYnOxk\",Loading:\"q9yMb7M0E\",Success:\"FINZOD1UJ\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,submitButtonText,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"wkg8lUGxU\",W_Y3049Vh:submitButtonText??props.W_Y3049Vh??\"Submit\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,W_Y3049Vh,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"wkg8lUGxU\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"q9yMb7M0E\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"q9yMb7M0E\")return true;return false;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.button,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1wc3aql\",className,classNames),\"data-framer-name\":\"Default\",\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"wkg8lUGxU\",ref:refBinding,style:{backgroundColor:\"rgb(0, 117, 41)\",borderBottomLeftRadius:12,borderBottomRightRadius:12,borderTopLeftRadius:12,borderTopRightRadius:12,opacity:1,...style},variants:{\"wkg8lUGxU-hover\":{backgroundColor:\"var(--token-74a0848a-06fa-44b2-9437-8e170448cd57, rgb(46, 147, 111))\",opacity:1},\"wkg8lUGxU-pressed\":{backgroundColor:\"rgb(1, 117, 41)\",opacity:1},FINZOD1UJ:{opacity:1},J0tpYnOxk:{backgroundColor:\"rgba(255, 34, 68, 0.15)\",opacity:1},Yh3yuEdzm:{opacity:.5}},...addPropertyOverrides({\"wkg8lUGxU-hover\":{\"data-framer-name\":undefined},\"wkg8lUGxU-pressed\":{\"data-framer-name\":undefined},FINZOD1UJ:{\"data-framer-name\":\"Success\"},J0tpYnOxk:{\"data-framer-name\":\"Error\"},q9yMb7M0E:{\"data-framer-name\":\"Loading\"},Yh3yuEdzm:{\"data-framer-name\":\"Disabled\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(CheckCircle,{animated:true,className:\"framer-svjr1u\",layoutDependency:layoutDependency,layoutId:\"OcHdUKsgL\",style:{\"--42b6oa\":.16,\"--4i27ky\":\"rgb(255, 242, 242)\",\"--b8xnka\":2}}),isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Submit\"})}),className:\"framer-1sxwk2i\",fonts:[\"Inter-SemiBold\"],layoutDependency:layoutDependency,layoutId:\"dZTtz3PyK\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:W_Y3049Vh,variants:{J0tpYnOxk:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({FINZOD1UJ:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Thank you\"})}),text:undefined},J0tpYnOxk:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 34, 68))\"},children:\"Something went wrong\"})}),text:undefined}},baseVariant,gestureVariant)}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-hpylj3\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"Q8pVXKpod\",style:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition2,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-10j5ed6\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"zdhgL7_v_\",style:{background:\"conic-gradient(from 180deg at 50% 50%, rgb(68, 204, 255) 0deg, rgb(68, 204, 255) 360deg)\",backgroundColor:\"rgb(68, 204, 255)\",mask:\"none\",WebkitMask:\"none\"},variants:{q9yMb7M0E:{background:\"conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",backgroundColor:\"rgba(0, 0, 0, 0)\",mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-j33ruz\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"fhnGkIyfO\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-Jtefm.framer-1mw8mwo, .framer-Jtefm .framer-1mw8mwo { display: block; }\",\".framer-Jtefm.framer-1wc3aql { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 4px; height: min-content; justify-content: center; overflow: visible; padding: 16px 8px 16px 8px; position: relative; width: 240px; }\",\".framer-Jtefm .framer-svjr1u { flex: none; height: var(--framer-aspect-ratio-supported, 18px); position: relative; width: 17px; }\",\".framer-Jtefm .framer-1sxwk2i { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-Jtefm .framer-hpylj3 { aspect-ratio: 1 / 1; flex: none; gap: 10px; height: var(--framer-aspect-ratio-supported, 20px); overflow: hidden; position: relative; width: 20px; }\",\".framer-Jtefm .framer-10j5ed6 { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-Jtefm .framer-j33ruz { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 2px); left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\".framer-Jtefm.framer-v-1m2ddot.framer-1wc3aql, .framer-Jtefm.framer-v-1reio6r.framer-1wc3aql, .framer-Jtefm.framer-v-9dq3rl.framer-1wc3aql, .framer-Jtefm.framer-v-1g702x4.framer-1wc3aql { cursor: unset; }\",\".framer-Jtefm.framer-v-1m2ddot .framer-10j5ed6 { overflow: hidden; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 51\n * @framerIntrinsicWidth 240\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"q9yMb7M0E\":{\"layout\":[\"fixed\",\"auto\"]},\"Yh3yuEdzm\":{\"layout\":[\"fixed\",\"auto\"]},\"FINZOD1UJ\":{\"layout\":[\"fixed\",\"auto\"]},\"J0tpYnOxk\":{\"layout\":[\"fixed\",\"auto\"]},\"G3E_FTGe_\":{\"layout\":[\"fixed\",\"auto\"]},\"Wkdz2Dt0g\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"W_Y3049Vh\":\"submitButtonText\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FrameraZGVMDJwj=withCSS(Component,css,\"framer-Jtefm\");export default FrameraZGVMDJwj;FrameraZGVMDJwj.displayName=\"Button\";FrameraZGVMDJwj.defaultProps={height:51,width:240};addPropertyControls(FrameraZGVMDJwj,{variant:{options:[\"wkg8lUGxU\",\"q9yMb7M0E\",\"Yh3yuEdzm\",\"FINZOD1UJ\",\"J0tpYnOxk\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\"],title:\"Variant\",type:ControlType.Enum},W_Y3049Vh:{defaultValue:\"Submit\",displayTextArea:false,title:\"submit-button-text\",type:ControlType.String},onW_Y3049VhChange:{changes:\"W_Y3049Vh\",type:ControlType.ChangeHandler}});addFonts(FrameraZGVMDJwj,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/hyOgCu0Xnghbimh0pE8QTvtt2AU.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/cRJyLNuTJR5jbyKzGi33wU9cqIQ.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/yDtI2UI8XcEg1W2je9XPN3Noo.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/A0Wcc7NgXMjUuFdquHDrIZpzZw0.woff2\",weight:\"600\"}]},...CheckCircleFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FrameraZGVMDJwj\",\"slots\":[],\"annotations\":{\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"q9yMb7M0E\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"Yh3yuEdzm\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"FINZOD1UJ\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"J0tpYnOxk\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"G3E_FTGe_\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"Wkdz2Dt0g\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerVariables\":\"{\\\"W_Y3049Vh\\\":\\\"submitButtonText\\\"}\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"51\",\"framerDisplayContentsDiv\":\"false\",\"framerAutoSizeImages\":\"true\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicWidth\":\"240\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./aZGVMDJwj.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState}from\"react\";import{loadStripe}from\"@stripe/stripe-js\";// @ts-ignore — Framer provides this at runtime\nimport{addPropertyControls,ControlType}from\"framer\";import{useUpsellStore}from\"https://framerusercontent.com/modules/GeYNNgklLHe9bIkxAx3f/mzlOcai89MsbJwDkLdRZ/UpsellStore.js\";import{resolvePaymentPrice}from\"https://framerusercontent.com/modules/lwHrFQR1iSxKumZcmcTE/S9vbKf8VjIpngyqV4SSw/PricesConfigUpsell.js\";function reportUpsellPurchase(intent,details={}){try{const stepforge=window.stepforge;if(typeof stepforge!==\"function\")return;// Only a settled charge is revenue. \"processing\" is a real payment in\n// flight and would have to be reconciled server-side to know how it ended.\nif(!intent||intent.status!==\"succeeded\")return;const parts=window.location.pathname.split(\"/\").filter(Boolean);const at=parts.indexOf(\"upsells\");const tail=at===-1?parts.slice(-1):parts.slice(at+1);// The whole tail, not the last segment: nested upsell folders repeat\n// their leaf names, so a last-segment slug would report two different\n// offers under one step id.\nconst page=(tail.join(\"_\")||\"unknown\").toLowerCase().replace(/[^a-z0-9]+/g,\"_\").slice(0,40);const key=\"medvi_upsell_sent_\"+(intent.id||`${details.priceId??\"\"}_${intent.amount??\"\"}`);try{if(window.localStorage.getItem(key))return;window.localStorage.setItem(key,\"1\");}catch{}stepforge(\"track\",\"funnel_step\",{step_id:`upsell_${page}_purchase`,step_index:102,funnel_name:\"upsell\"});stepforge(\"track\",\"purchase\",{kind:\"upsell\",page,price_id:details.priceId??null,medication:details.medication??null,amount:typeof intent.amount===\"number\"?intent.amount/100:null,currency:(intent.currency||\"usd\").toUpperCase(),source:\"stripe\",payment_intent:intent.id??null});}catch{// Tracking must never surface on a page that is taking money.\n}}// ─── Provider config ─────────────────────────────────────────────────────────\nconst PROVIDERS={ol:{publishableKey:\"pk_live_51QSLPP2euyA8TPKhnsLjsRFvCmKSfA812MmXw79H9EKIaebWZUkBmFdSo3hqoBsV0Pm8q6VIeur7wS67d5z64Su800kYexHjk5\",upsellPrepareEndpoint:\"/v1/stripe/upsell-prepare\"},olw:{publishableKey:\"pk_live_51TP8ImG41lFrlzq94bbNlY7rGCmgvoDnuePY5R0juB4Y6qjGTDOobTnSCvscW6LLAjx11Dt5iNOb32hUjauKnDk200nkDGnteu\",upsellPrepareEndpoint:\"/v1/stripe-whitecoat/upsell-prepare\"}};const BASE_URL=\"https://glphook.medvi.org\";// ─── Helpers ─────────────────────────────────────────────────────────────────\nconst getProviderKey=params=>{const prov=params.get(\"prov\")?.toLowerCase();const path=window.location.pathname;if(prov===\"olw\"||path.includes(\"/results/olw\"))return\"olw\";if(prov===\"ol\"||path.includes(\"/results/ol\"))return\"ol\";// Final fallback\nreturn\"ol\";};const getProgramType=value=>{const match=value?.match(/upsell-(serm|nad)/);return match?match[1]:null;};// ─── Component ───────────────────────────────────────────────────────────────\nexport default function AddToOrder(props){const{priceId,medication,buttonText,returnUrlPath}=props;const[store,setStore]=useUpsellStore();const[error,setError]=useState(null);const handleUpsell=async()=>{if(store.isProcessing)return;// already locked\nconst program=getProgramType(returnUrlPath)// \"serm\" | \"nad\" | null\n;const isPlan2=returnUrlPath?.includes(\"plan2\")??false;const defaultKey=program?`${program}m2m${isPlan2?\"discount\":\"\"}`:null;const effectivePriceId=priceId||(defaultKey?resolvePaymentPrice(defaultKey)?.priceId:undefined);if(!effectivePriceId){setError(\"No price selected.\");return;}// if (!priceId) {\n//     setError(\"No price selected.\")\n//     return\n// }\nconst params=new URLSearchParams(window.location.search);const customerId=params.get(\"customer_id\");if(!customerId){setError(\"Something went wrong. Please try again.\");return;}params.set(\"price\",effectivePriceId);if(medication){params.set(\"medication\",medication);}const providerKey=getProviderKey(params);const{publishableKey,upsellPrepareEndpoint}=PROVIDERS[providerKey];const returnUrl=`${BASE_URL}/${returnUrlPath}?${params.toString()}`;// const program = getProgramType(returnUrlPath)\nconst coupon=params.get(\"whowantsacoupon\");setStore({isProcessing:true});setError(null);// Stays true only when the payment is navigating away or still settling.\n// Every other exit releases the lock in `finally`, so a failed payment\n// can never leave the buy and \"No Thanks\" buttons permanently disabled.\nlet keepLocked=false;try{const prepareRes=await fetch(BASE_URL+upsellPrepareEndpoint,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({customer_id:customerId,price:effectivePriceId,program,...coupon&&{whowantsacoupon:coupon}})});const prepareJson=await prepareRes.json().catch(()=>({}));if(!prepareRes.ok){const msg=prepareJson?.message||prepareJson?.errors?.price?.[0]||prepareJson?.errors?.customer_id?.[0]||`Could not start payment (${prepareRes.status})`;setError(msg);return;}if(!prepareJson?.success||!prepareJson?.data?.clientSecret){setError(prepareJson?.message||\"Invalid response from server (no client secret).\");return;}const stripe=await loadStripe(publishableKey);if(!stripe){setError(\"Could not load Stripe.\");return;}const{error:confirmError,paymentIntent}=await stripe.confirmPayment({clientSecret:prepareJson.data.clientSecret,confirmParams:{return_url:returnUrl},redirect:\"if_required\"});if(confirmError){setError(confirmError.message??\"Payment failed.\");return;}// No redirect (e.g. no 3DS challenge): finish on glphook yourself.\n// \"succeeded\" is the happy path. Anything else here is still a real\n// payment in flight (e.g. \"processing\" on a delayed method), so send\n// the customer on rather than leaving the page frozen, and report the\n// true status so the backend does not fulfil an unsettled charge.\nif(paymentIntent){// Report the sale here, where the real charged amount exists.\n// Nothing downstream can see it: the redirect leaves for\n// glphook, and a settled charge never reaches the page again.\nreportUpsellPurchase(paymentIntent,{priceId,medication});const done=new URL(returnUrl);done.searchParams.set(\"payment_intent\",paymentIntent.id);done.searchParams.set(\"redirect_status\",paymentIntent.status===\"succeeded\"?\"succeeded\":\"pending\");if(medication){done.searchParams.set(\"medication\",medication);}keepLocked=true;window.location.href=done.toString();return;}// No error and no payment intent came back: nothing to act on.\nsetError(\"Something went wrong. Please try again.\");}catch(err){const message=err instanceof Error?err.message:\"Unexpected error\";setError(message);}finally{if(!keepLocked)setStore({isProcessing:false});}};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>void handleUpsell(),disabled:store.isProcessing,style:{fontFamily:\"'Red Hat Text', 'Red Hat Text Placeholder', sans-serif\",fontSize:\"16px\",backgroundColor:store.isProcessing?\"rgba(0, 117, 41, 0.5)\":\"rgb(0, 117, 41)\",color:\"white\",fontWeight:600,width:\"100%\",height:\"100%\",display:\"flex\",flex:1,flexDirection:\"row\",alignItems:\"center\",justifyContent:\"center\",gap:\"8px\",borderRadius:\"9999px\",paddingLeft:\"24px\",paddingRight:\"24px\",paddingTop:\"12px\",paddingBottom:\"12px\",cursor:store.isProcessing?\"not-allowed\":\"pointer\",border:\"none\",opacity:store.isProcessing?.5:1},children:store.isProcessing?\"Processing...\":buttonText}),error&&/*#__PURE__*/_jsx(\"p\",{style:{marginTop:\"8px\",textAlign:\"center\",fontSize:\"14px\",color:\"rgb(239, 68, 68)\"},children:error})]});}addPropertyControls(AddToOrder,{priceId:{type:ControlType.String,title:\"Price ID\"},medication:{type:ControlType.String,title:\"Medication\"},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"Add to Order\"},returnUrlPath:{type:ControlType.String,title:\"Return Url Path\",defaultValue:\"upsell-xxxx\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AddToOrder\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AddToOrder.map"],"mappings":"A,wjBACgM,EAAK,0BAAgC,EAAkB,gBAAW,SAAS,EAAM,EAAI,CAAC,MAAoB,gBAAK,MAAM,CAAC,GAAGyD,EAAU,MAAI,SAASA,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAU/B,EAAO,OAAOwB,CAAI,EAAQ,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAGQ,GAAMD,EAAM,OAAOE,EAAsB,gBAAKR,EAAU,CAAC,GAAGO,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,gBAAK,MAAM,CAAC,GAAGA,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,2tBAAiuB1D,GAAU,CAAC,QAAM,QAAM,SAAO,KAAG,QAAM,SAAO,GAAGyD,MAAgB,CAAC,GAAGA,EAAM,UAAUG,GAAQH,EAAM,WAAW,EAAE,UAAUI,GAAOJ,EAAM,WAAW,IAAI,UAAUK,GAAOL,EAAM,WAAW,cAAc,GASnjD,EAAKtB,EAT+kDlC,kBAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,YAAU,GAAG8D,GAAW/D,EAASyD,CAAK,EAAQO,EAAK9B,GAAe,YAAYmB,CAAG,EAAE,MAAoB,gBAAKD,EAAI,CAAC,GAAGW,EAAU,UAAUzB,EAAG,eAAe2B,CAAS,EAAW,WAAa,MAAI,KAAK,eAAe,MAAM,CAAC,WAAWC,EAAU,WAAWC,EAAU,WAAWC,EAAU,GAAGC,CAAK,EAAE,QAAQ,YAAY,SAAsB,gBAAK,MAAM,CAAM,MAAI,CAAC,CAAC,CAAC,CAAE,CAStgE,EAAE,CAT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