{"version":3,"file":"menoFormidableCode.CxHXpZvm.mjs","names":["React.useState","React.useRef","_Fragment","React.Fragment","React.useRef","React.useState","React.useId","React.useMemo","_Fragment","frameOf","clean","__esmMin","ie","le","init_ssg_sandbox_shims","x","navigator","init_npm_react_dom_18_3_1","l","_e","Ha","pe","p","c","init_jsx_runtime","ce","init_npm_react_18_3_1","de","window","itemTitle","productLabel","peekDoctorSessionIdentity","volumePeriods","variantRecipe","init_menoSexualRx","SEXUAL_MONTHLY_PRICE_MINOR","init_menoMaps","pickFacet","tokens","formFill","chosenVariant","init_menoManagerAccess","facetEnabled","familyWithPlan","init_menoPigmentationRx","familyStatus","fontFamily","activeLabel","familyOffered","familyForClinic","sigLine","init_menoRx","readManagerAccess","callDoctorRpc","capsuleAmountAllowed","init_menoFormidableQuickList","quantityLabel","init_menoSupabase","packageContents","withPigmentationPeriod","capsuleRowRefusal","prescriptionKind","clearFormidableSession","hideRefusedCapsuleRows","revealMedicationForm","prescriptionTypeControls","init_menoFormidableTreatments","showCompoundedTypeOnly","saveLastQuickArea","initialQuickArea","fillComplete","fillMedicationForm","QUICK_AREAS","focusNativeCatalog","packageLabel","init_menoFormidableSession","prescriptionMedicineCount","readLastQuickArea","rememberedQuickFamilies","chooseCatalogPreparation","addMedicationToPrescription","init_menoFormidable","sdkCatalogControls","useDraftChoiceRecorder","init_menoDraftChoice","withClinicCapsuleDose","itemFromHairTreatment","isHairItem","changeHairGelTretinoin","clinicHairQuantity","changeHairStrength","clinicHairValidityDays","HAIR_TREATMENTS","changeClinicHairDose","init_menoHairRx","hairTreatmentFor","addonNormalize","items","days","addonPeriods","raw","fallback","item","catalog","single","quoted","index","useAddonQuote","state","setState","callback","onPriced","key","inputKey","latest","retry","setRetry","enabled","abort","timer","i","config","inviteId","prescriptionId","quote","code","error","ready","line","n","RxAddonPlan","loading","money","part","addonRequested","addonEnabled","init_RxAddonPlan","quickPrice","hair","pricing","family","plan","discount","newPatientMonthlyDiscount","extra","period","months","PRICED_SEXUAL","monthly","capsules","dose","d","doseKey","missing","choices","PLAN_FAMILIES","PLAN_DOSES","set","total","recipes","openRecipes","recipe","cardPriceOptions","defs","variant","def","fits","named","candidate","listed","optionPrice","regular","fit","option","facet","hairItem","treatment","field","strengths","combinationItems","gelDose","capsuleDose","minoxidil","gel","value","planUsage","usage","intervals","priceMoney","priceMonths","init_menoFormidablePrices","minor","offeredCompanions","list","weekly","f","COMPANION_FREQUENCY_LABELS","text","base","companionAloneAmount","offer","companionChoice","choice","setCompanionChoice","next","listener","listeners","onCompanionChoice","companionsForSeal","companionUnfinished","compoundedChoiceMissing","product","body","m","noteTreatmentPrice","treatmentPrice","renewalCarried","carriedRenewals","markRenewalCarried","COMPANION_NOT_IN_LIST_TEXT","COMPANION_UNFINISHED_TEXT","COMPANION_NOT_DEFERRED_TEXT","init_menoFormidableCompanion","renewalSource","record","renewal","event","activesOf","map","active","name","doseOf","doses","RENEWAL_DOSES","familyId","byKey","byWords","listChoice","actives","brand","form","percent","amountOf","mg","topical","tretinoin","only","finasteride","clomipramine","sexual","SEXUAL_FAMILIES","offeredEntries","pack","entries","own","contents","entry","renewalSteps","source","whole","companionKeyOf","combinationSteps","treatments","step","perMonth","offered","fixedDose","monthsLabel","gelItem","capsuleItem","combination","gelPart","capsulePart","supplyDays","view","make","reason","menoRenewalChoice","loaded","same","instructions","preset","presets","unit","allowed","renewalWords","isolate","renewalCompanions","times","words","renewalLine","pressAddAnother","started","resolve","signal","doc","app","button","init_menoRxRenewal","match","strength","names","isQuickListOnlyDoctor","doctor","QUICK_LIST_ONLY_DOCTORS","hiddenQuickFamilies","HIDDEN_QUICK_FAMILIES","volumeQuickFamilies","VOLUME_QUICK_FAMILIES","quickOptions","QUICK_OPTIONS","isQuickCompanion","init_menoDoctorPrescribing","notePressPriceOption","pressPriceOptionFor","noted","id","notePressFee","notedPressFee","fee","label","priceOptionNotDeferredText","priceOptionOtherText","feeNotDeferredText","init_menoFormidablePriceOption","listedMedicines","root","h","issueButtonState","formRoot","OPEN","found","formidableIssueButtons","pressFormidableOwn","limitMs","element","PatientPrice","price","NOT_PRICED","PRICE_NOTE","np","pay","draftChoice","entryKey","first","amount","FormidableQuickTreatments","waiting","wantedType","allTypes","environment","ownType","formNow","copy","quickListOnly","COPY","slot","setSlot","chosenArea","setChosenArea","lastArea","views","setViews","viewsRef","pending","setPending","pendingText","setPendingText","canCancel","setCanCancel","message","setMessage","adding","lookAgain","moveFocus","areaKey","areas","hidden","byVolume","quick","otherStrengths","setOtherStrengths","quickBusy","setQuickBusy","issuePhase","setIssuePhase","asked","setAsked","issueRunning","addedLines","offers","shampooOffer","shampooEntry","shampooName","shampooChoice","chosen","markShampoo","SHAMPOO_TIMES","shampooNote","setShampooNote","regularType","setRegularType","setCompanionTick","tick","hairNames","noteChoice","choosing","refusedRow","tabs","tab","steps","renewing","renewalNote","setRenewalNote","renewTick","setRenewTick","nextOption","openStep","all","renewStep","after","outcome","renewNext","addShampooNext","fillMonths","renewalOption","choose","priced","last","companion","SHAMPOO_ALONE_MONTHS","EMPTY_VIEW","SHAMPOO_CARD","shampooFill","area","patientArea","inArea","t","shampooCard","shampooOpen","current","quickTiles","v","fill","choiceLines","shampooTileAt","comboPeriod","comboDoses","comboStrength","comboItems","comboQuote","NO_QUOTE_RESULT","changeView","change","familyOf","openFamily","pressQuick","tile","shampoo","failed","pressCard","added","selectArea","tabKeys","host","lastInput","attempted","attempts","frame","stopped","typeDoc","typeCard","ownPress","type","tree","schedule","content","remove","inspect","observe","stop","refused","dropped","wanted","onCompounded","controls","NO_REGULAR","attached","onAttached","press","carried","kind","MIXED_TYPES","controller","result","lineKey","pressFormidableIssue","afterAdd","onNote","ISSUE_BY_HAND","onEnd","LISTED_OTHERWISE","todo","finish","addOnly","run","another","SHAMPOO_BY_HAND","COMBO_BY_HAND","listedHair","addedMonths","addShampooNow","pressShampoo","SHAMPOO_NOT_BESIDE","focusRow","scope","row","targets","target","still","chips","options","NOT_IN_CATALOG","capsulePeriodRefused","periodChips","periods","offOption","optionWhy","CAPSULE_RULE","before","volumeChips","other","volumes","volume","fillText","sexualPart","counted","pill","mainActive","available","sexualStrength","sexualPack","a","b","forStrength","counts","initialPrice","planned","SEXUAL_INTERVALS","fixedUsage","amountValid","timesValid","interval","baseFill","setUsage","feeMonthly","offersFee","feeCharged","less","shownPrice","pickFee","charge","fixed","selectStrength","keepsQuantity","splitStrengths","canSplit","splitting","packs","openPack","splitLines","lines","packMissing","allMissing","splitSteps","lineEntry","lineFill","splitReady","setPacks","patch","pickPack","ACTIVE_HEBREW","issueBlock","partInfo","formulas","formulaKeys","onFormula","forcedRows","showRows","shown","priceOptions","chosenOption","optionPriced","optionBlocked","candidates","inPack","picked","doseRow","periodRow","groupTarget","productChoice","info","addon","tickedShampoo","doseWords","composition","detail","absent","TICK","shampooLine","companionOffer","companionRow","on","frequency","count","inList","differs","already","others","busy","unavailable","blocked","listWords","hint","NOT_GIVABLE","them","note","ISSUE","ISSUING","ISSUE_ICON","ADD_ONLY","singleIssue","need","withShampoo","comboIssue","infos","pickOption","spans","keepDose","keepPeriod","optionLine","formulaRow","word","keys","forced","open","quickList","withShampooTile","tiles","nodes","shampooTile","PLUS","families","COMPANION_ENGLISH","shampooView","beside","SHAMPOO_ALONE_OR_BESIDE","inline","panel","css","AREA_LABELS","init_FormidableQuickTreatments","every","\"Sildenafil\"","\"Tadalafil\"","frameOf$1","frameState","modal","pin","pageAlert","callout","clean$1","buttonsNamed","TEXT","pressIssue","done","title","alert","checkBeforePress","problems","headings","issue","signInRefused","readList","readRows","heading","withoutHistoryEntryOnce","safariEngine","append","native","node","handler","checkSigningDialog","input","box","frameBox","inputBox","under","visibleOutsideDialog","guardRepeatedEnter","onKey","now","enterSigningOnly","SIGN_ONLY_ATTR","watched","resize","measure","unguard","stops","leaveSigningOnly","ON","SIGN_ONLY_THEME_CSS","SIGN_ONLY_HOST_CSS","init_menoFormidableSigning","listen","listening","readPending","PENDING","writePending","send","args","RPC_TIMEOUT","flushPending","keyOf","signingCode","cache","AGE","valid","data","reportSigningCode","scrub","attempt","answer","refusalKind","said","passing","after407","CODE_WORDS","OUTAGE_WORDS","frameOf","until","limit","ms","pause","test","typeInto","setter","signingBox","clean","SIGNATURE_TITLE","sign","SIGN","nextCreate","aborted","look","watch","signWithCode","tried","sent","ours","hold","ANSWER_LIMIT","refusal","mayHaveSigned","closeSigningBox","cancel","closeSigningBoxWhenIdle","leaveBoxToDoctor","block","watchDoctorsPress","pressed","heard","fillSignupCode","told","since","tell","CODE_FILLED_ATTR","autoSignInForm","known","ask","signup","guarded","mark","doctors","AUTO_SIGN_ATTR","unsubscribe","AUTO_SIGNING_ATTR","signedAfterAll","wait","read","SIGNUP_CODE_CSS","AUTO_SIGN_CSS","init_menoFormidableCode","reject"],"sources":["https:/framerusercontent.com/modules/rDZCqUBR0tDuaciOrHyl/slrgyfpqdxv3uhj1LCIj/RxAddonPlan.js","https:/framerusercontent.com/modules/fXLAPnOTFstplkxZEgfB/JALm4OQ6XRKbCEQzWExf/menoFormidablePrices.js","https:/framerusercontent.com/modules/Jqs4zFvLF6HkPpLvRseN/eC7gmfGboySycCKNqbAV/menoFormidableCompanion.js","https:/framerusercontent.com/modules/5CDeI27Efq0oVZMhpXPy/Fhq9beEBO8RW6MKABF6x/menoRxRenewal.js","https:/framerusercontent.com/modules/myTL20bvqY6QuB2bOUQJ/SaLXsAx7frh2iZLHov1l/menoDoctorPrescribing.js","https:/framerusercontent.com/modules/BvReRCkmPrNlOTIwrPMK/NYyfIcdAgpB8t7iNclrz/menoFormidablePriceOption.js","https:/framerusercontent.com/modules/uuJ0GECaimSjtqI7Pau2/ljsuiRy4thAZn95kHW7h/FormidableQuickTreatments.js","https:/framerusercontent.com/modules/IQYBxiO5cmqhUZnOIIFy/wedons2ROi93pJtEhNQi/menoFormidableSigning.js","https:/framerusercontent.com/modules/0ura8lIDhaClA4G6Larn/nklbAYvcFCtKAbZuAlRv/menoFormidableCode.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{callDoctorRpc}from\"https://framerusercontent.com/modules/KGFBZr5wsBdeI4S5ZDdN/rErYkPc7NppdRCIfNqaV/menoSupabase.js\";import{itemTitle}from\"https://framerusercontent.com/modules/wSXJXd8RS5Ctl3EcjP5K/YykwueghhH9RGeRRqB2o/menoRx.js\";import{isHairItem,hairTreatmentFor,clinicHairValidityDays,clinicHairQuantity,withClinicCapsuleDose}from\"https://framerusercontent.com/modules/rpZ9aAJug41PdXIjKI8p/qIk2kX4aoegohNe4n2fT/menoHairRx.js\";import{withPigmentationPeriod}from\"https://framerusercontent.com/modules/POZgn0Mem3wUUUP6YxTD/hNtMXTw44JJPHCPPpcs6/menoPigmentationRx.js\";import{tokens}from\"https://framerusercontent.com/modules/tVCqDSXfHsd06f23WSmv/tFSEtuEyMXpbOjIK8QT9/menoMaps.js\";export const addonRequested=items=>items.length>1&&items.some(i=>!!i.clinic_package_role);export const addonEnabled=item=>isHairItem(item)||!!item.pigmentation_formula_code;export const addonPeriods=item=>item.pigmentation_formula_code?[30,60]:clinicHairValidityDays([item]);export function addonNormalize(items,fallback,catalog){return items.map((raw,index)=>{const days=addonPeriods(raw).includes(raw.clinic_supply_days||fallback)?raw.clinic_supply_days||fallback:addonPeriods(raw)[0];const item=raw.pigmentation_formula_code?withPigmentationPeriod(raw,days):withClinicCapsuleDose(raw,days,catalog);if(items.length===1){const{clinic_package_role,clinic_supply_days,...single}=item;return{...single,quantity:item.pigmentation_formula_code?days/30*50:clinicHairQuantity(item,days,catalog)??item.quantity};}// Under the whole-pack rule a combined order's capsule count is the server's (clinic_addon_quote): keep it.\nconst quoted=!!catalog?.capsule_pack&&hairTreatmentFor(item)?.form===\"כמוסות\"&&Number(item.quantity)>0;return{...item,clinic_package_role:index===0?\"primary\":\"addon\",clinic_supply_days:days,quantity:item.pigmentation_formula_code?days/30*50:quoted?item.quantity:clinicHairQuantity(item,days,catalog)??item.quantity};});}const inputKey=items=>JSON.stringify(items.map(({quantity,...item})=>item));export function useAddonQuote(config,prescriptionId,inviteId,items,enabled,onPriced){const[state,setState]=React.useState({key:\"\",quote:null,error:\"\"});const callback=React.useRef(onPriced);callback.current=onPriced;const key=inputKey(items),latest=React.useRef(key);latest.current=key;const[retry,setRetry]=React.useState(0);React.useEffect(()=>{if(!enabled){setState({key:\"\",quote:null,error:\"\"});return;}const abort=new AbortController;const timer=setTimeout(()=>{setState({key,quote:null,error:\"\"});const days=Math.max(...items.map(i=>i.clinic_supply_days||0));callDoctorRpc(config,\"clinic_addon_quote\",{p_prescription_id:inviteId?null:prescriptionId,p_invite_id:inviteId||null,p_items:items,p_valid_days:days},{signal:abort.signal}).then(quote=>{if(abort.signal.aborted||latest.current!==key)return;if(quote.version!==\"clinic-addons-20261021\"||quote.lines?.length!==items.length||!Number.isSafeInteger(quote.base_amount_minor))throw Error(\"invalid_quote\");setState({key,quote,error:\"\"});callback.current(quote);}).catch(error=>{if(abort.signal.aborted)return;const code=String(error?.message||\"\");setState({key,quote:null,error:/duplicate/.test(code)?\"אותו תכשיר מופיע יותר מפעם אחת. יש להסיר את הכפילות.\":/quantity|dose|strength|period|validity|medicine|pigmentation/.test(code)?\"יש להשלים תכשיר, חוזק, מינון ותקופה לכל תרופה.\":\"לא ניתן לחשב את ההזמנה כעת. יש לבדוק את החיבור ולנסות שוב.\"});});},250);return()=>{clearTimeout(timer);abort.abort();};},[config,prescriptionId,inviteId,key,enabled,retry]);const quote=state.key===key?state.quote:null;const ready=!!quote&&quote.lines.every((line,i)=>line.quantity===Number(items[i]?.quantity));// A draft adopted from another tab can differ from this key's quote in quantities only: re-apply the quote.\nReact.useEffect(()=>{if(quote&&!ready)callback.current(quote);},[quote,ready]);return{quote,error:state.key===key?state.error:\"\",ready,retry:()=>setRetry(n=>n+1)};}const money=n=>new Intl.NumberFormat(\"he-IL\",{style:\"currency\",currency:\"ILS\",maximumFractionDigits:2}).format(n/100);export default function RxAddonPlan({quote,items,loading,error,retry}){return /*#__PURE__*/_jsxs(\"section\",{dir:\"rtl\",\"aria-label\":\"סיכום הזמנה משותפת\",style:{marginTop:20,padding:20,border:`1px solid ${tokens.softWarm}`,borderRadius:12,background:tokens.warmIvory,lineHeight:1.7,minWidth:0},children:[/*#__PURE__*/_jsx(\"style\",{children:`.rx-addon-retry{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;margin-inline-start:8px;border:1px solid ${tokens.tobacco};border-radius:10px;background:${tokens.bone};color:${tokens.tobaccoText};font:inherit;font-size:16px;font-weight:600;line-height:1.5;vertical-align:middle;cursor:pointer}.rx-addon-retry:hover{background:${tokens.warmWash}}.rx-addon-retry:focus-visible{outline:3px solid ${tokens.tobacco};outline-offset:3px}`}),/*#__PURE__*/_jsx(\"h3\",{style:{margin:\"0 0 12px\"},children:\"סיכום ההזמנה והמשלוחים\"}),error?/*#__PURE__*/_jsxs(\"p\",{role:\"alert\",children:[error,\" \",/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"rx-addon-retry\",onClick:retry,children:\"ניסיון נוסף\"})]}):loading?/*#__PURE__*/_jsx(\"p\",{role:\"status\",children:\"מחשבים מחיר וכמויות למשלוחים משותפים…\"}):null,quote?/*#__PURE__*/_jsxs(_Fragment,{children:[quote.lines.map((line,i)=>/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"12px 0\",borderBottom:`1px solid ${tokens.softWarm}`},children:[/*#__PURE__*/_jsx(\"strong\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:itemTitle(items[i])})}),/*#__PURE__*/_jsxs(\"div\",{children:[line.billing_months,\" חודשים \\xb7 סה״כ \",line.quantity,\" \",line.unit]}),/*#__PURE__*/_jsxs(\"div\",{children:[money(line.amount_minor),\" לתקופה\",line.monthly_amount_minor!=null?` \\xb7 ${money(line.monthly_amount_minor)} לחודש`:\"\"]})]},i)),/*#__PURE__*/_jsxs(\"p\",{style:{fontWeight:700,fontSize:20},children:[\"סה״כ לתשלום: \",/*#__PURE__*/_jsx(\"bdi\",{children:money(quote.base_amount_minor)})]}),/*#__PURE__*/_jsxs(\"p\",{children:[\"כולל מע״מ ומשלוחים, לפני זיכויים וקופונים. עד \",quote.billing_months,\" תשלומים. אין חיוב מחזורי.\"]}),/*#__PURE__*/_jsx(\"ol\",{style:{paddingInlineStart:22},children:quote.fulfillment.shipments.map(part=>/*#__PURE__*/_jsxs(\"li\",{style:{marginTop:14},children:[/*#__PURE__*/_jsxs(\"strong\",{children:[\"משלוח \",part.number,\" \\xb7 \",part.start_day===0?\"בתחילת הטיפול\":`לקראת יום ${part.start_day+1}`]}),part.items.map(line=>/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"bdi\",{children:itemTitle(items[line.item_index])}),\" — \",line.quantity,\" \",line.unit,\" ל-\",line.days,\" ימים\"]},line.item_index))]},part.number))}),/*#__PURE__*/_jsx(\"p\",{children:\"תרופות שתקופתן הסתיימה אינן נכללות במשלוחים הבאים. הכמויות כוללות אריזות שלמות בהתאם ללוח האספקה.\"})]}):null]});}\nexport const __FramerMetadata__ = {\"exports\":{\"addonRequested\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useAddonQuote\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"addonEnabled\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"RxAddonPlan\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"addonPeriods\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"addonNormalize\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AddonQuote\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{variantRecipe}from\"https://framerusercontent.com/modules/Sqnm1oBloyaEPKxztO62/eLdlDGbsJYjlaQGylad6/menoFormidableQuickList.js\";import{HAIR_TREATMENTS,changeClinicHairDose,changeHairStrength,itemFromHairTreatment}from\"https://framerusercontent.com/modules/rpZ9aAJug41PdXIjKI8p/qIk2kX4aoegohNe4n2fT/menoHairRx.js\";import{addonNormalize}from\"https://framerusercontent.com/modules/rDZCqUBR0tDuaciOrHyl/slrgyfpqdxv3uhj1LCIj/RxAddonPlan.js\";import{SEXUAL_MONTHLY_PRICE_MINOR}from\"https://framerusercontent.com/modules/6mCGwtBVj3IQ9QdaWQvu/y40eFDVsv2485Vs2I4Kd/menoSexualRx.js\";const PLAN_DOSES={ml1:\"ml_1\",ml2:\"ml_2\",press1:\"press_1\",press2:\"press_2\",every2:\"press_every_2\",every3:\"press_every_3\",once:\"capsule_1\",twice:\"capsule_2\"};// The dutasteride solution (DTC Clinic, the owner, 16.11.2026) is priced on the solution's plans, at the clinic's set price for the period (period_prices).\nconst PLAN_FAMILIES={\"hair-solution\":\"SOL\",\"hair-dutasteride-solution\":\"SOL\",\"hair-gel\":\"GEL\",\"hair-dutasteride-gel\":\"GELD\",\"hair-combined-capsules\":\"CAPMF\"};const PRICED_SEXUAL=[\"sexual-clomipramine-pyridoxine-magnesium\",\"sexual-clomipramine\"];/** Null when this prescription has no clinic price at all (meno.health's own patients). */export function quickPrice(family,choices,doseKey,period,pricing){const hair=pricing?.hair;if(hair?.applicable!==true)return null;if(family.area===\"sexual\"){const plan=hair.sexual_plan;if(plan){const discount=newPatientMonthlyDiscount(plan),extra=discount?{newPatientMonthly:discount}:{};return period?{kind:\"price\",monthly:plan.monthly_amount_minor,total:plan.monthly_amount_minor*period.months,months:period.months,...extra}:{kind:\"periods\",monthly:plan.monthly_amount_minor,totals:plan.months.map(months=>({months,total:plan.monthly_amount_minor*months})),...extra};}if(!PRICED_SEXUAL.includes(family.id))return{kind:\"none\"};return{kind:\"periods\",monthly:SEXUAL_MONTHLY_PRICE_MINOR,totals:[1,2,3].map(months=>({months,total:SEXUAL_MONTHLY_PRICE_MINOR*months}))};}if(family.area===\"pigmentation\"){const monthly=pricing?.pigmentation?.monthly_amount_minor;if(!monthly)return{kind:\"none\"};return period?{kind:\"price\",monthly,total:monthly*period.months,months:period.months}:{kind:\"choose\",missing:[\"תקופה\"]};}const capsules=family.id===\"hair-minoxidil-capsules\",dose=family.doses.length===1?family.doses[0]:family.doses.find(d=>d.key===doseKey);const missing=[...capsules&&!choices.minoxidil?[\"חוזק\"]:[],...dose?[]:[family.doseLabel===\"תדירות\"?\"תדירות\":\"מינון\"],...period?[]:[\"תקופה\"]];if(!dose||!period||missing.length)return{kind:\"choose\",missing};const code=capsules?Number(choices.minoxidil)===5?\"CAPM5\":\"CAPM\":PLAN_FAMILIES[family.id];const plan=hair.plans?.find(plan=>plan.family===code&&plan.dose_key===PLAN_DOSES[dose.key]);const monthly=plan?.prices?.[String(period.months)];if(!monthly||monthly<=0)return{kind:\"none\"};// A set price for the whole period (Dr Gross, the owner, 14.11.2026), as the server charges it: only when every product the card can still be\n// (the tretinoin chip may be open) is one of the recipes it names. The monthly line is then that total over the months.\nconst set=plan?hair.period_prices?.[plan.key]:undefined,total=set?.totals?.[String(period.months)],recipes=openRecipes(family,choices);if(set&&total&&total>0&&recipes.length&&recipes.every(recipe=>set.recipes.includes(recipe)))return{kind:\"price\",monthly:total/period.months,total,months:period.months};return{kind:\"price\",monthly,total:monthly*period.months,months:period.months};}/** The price choices a card offers (DTC's \"מטופל ותיק\", 16.11.2026), as the server checks them: a plan of the card's family and dose, a recipe of the card, and a\n * period that plan prices. Empty for every other card and clinic, and for a combination's parts. */export function cardPriceOptions(family,pricing){const hair=pricing?.hair,defs=hair?.applicable===true?hair.price_options:null,code=PLAN_FAMILIES[family.id];if(!hair||!defs||typeof defs!==\"object\"||family.area!==\"hair\"||family.parts||!code)return[];const recipes=[...new Set(family.variants.map(variant=>variantRecipe(family.id,variant)).filter(recipe=>!!recipe))];return Object.entries(defs).flatMap(([key,def])=>{if(!/^[a-z0-9-]{1,40}$/.test(key)||!def||typeof def!==\"object\"||typeof def.label_he!==\"string\"||!def.label_he.trim())return[];const fits=[];let named=[];for(const dose of family.doses){const plan=hair.plans?.find(candidate=>candidate.family===code&&candidate.dose_key===PLAN_DOSES[dose.key]);const set=plan?.key?def.plans?.[plan.key]:undefined;const listed=Array.isArray(set?.recipes)?set.recipes.filter(recipe=>recipes.includes(recipe)):[];if(!plan||!set||!listed.length)continue;named=[...new Set([...named,...listed])];for(const period of family.periods){const total=set.totals?.[String(period.months)];if(typeof total===\"number\"&&Number.isSafeInteger(total)&&total>0&&(plan.prices?.[String(period.months)]??0)>0)fits.push({dose:dose.key,period:period.key,total});}}return fits.length?[{key,label:def.label_he.trim(),short:typeof def.short_he===\"string\"?def.short_he.trim():\"\",note:typeof def.note_he===\"string\"?def.note_he.trim():\"\",recipes:named,fits}]:[];});}/** What the patient pays with a price choice: its total for the chosen dose, period and strengths, beside the regular total; null while it doesn't fit (yet). */export function optionPrice(family,option,choices,doseKey,period,pricing){const regular=quickPrice(family,choices,doseKey,period,pricing);if(!regular||regular.kind!==\"price\"||!period)return null;const dose=family.doses.length===1?family.doses[0].key:doseKey;const fit=option.fits.find(candidate=>candidate.dose===dose&&candidate.period===period.key),recipes=openRecipes(family,choices);if(!fit||!recipes.length||!recipes.every(recipe=>option.recipes.includes(recipe)))return null;return{kind:\"price\",monthly:fit.total/period.months,total:fit.total,months:period.months,option:{key:option.key,label:option.label,regular:regular.total}};}/** The server's names (variantRecipe) of the products a card's choice can still be: those that agree with every chip chosen so far. Empty when one has no name. */function openRecipes(family,choices){const recipes=[];for(const variant of family.variants){if(!family.facets.every(facet=>!choices[facet.key]||variant.choice[facet.key]===choices[facet.key]))continue;const recipe=variantRecipe(family.id,variant);if(!recipe)return[];if(!recipes.includes(recipe))recipes.push(recipe);}return recipes;}function hairItem(recipe,strengths,dose,days,catalog){const treatment=HAIR_TREATMENTS.find(t=>t.id===recipe);if(!treatment)return null;let item=itemFromHairTreatment(treatment);for(const field of treatment.strengths)if(!field.fixed)item=item&&changeHairStrength(item,field.name,strengths[field.name]??\"\");return item&&changeClinicHairDose(item,dose,days,catalog);}/** The combination's two medicines for the server's quote, once everything is chosen. Its price is not the sum of two plans. */export function combinationItems(gelDose,capsuleDose,minoxidil,period,catalog){if(!catalog?.addons_enabled||!gelDose||!capsuleDose||!minoxidil||!period)return null;const days=period.months*30;const gel=hairItem(\"minoxidil-dutasteride-gel\",{Minoxidil:\"5\"},PLAN_DOSES[gelDose],days,catalog),capsules=hairItem(\"minoxidil-capsules\",{Minoxidil:minoxidil},PLAN_DOSES[capsuleDose],days,catalog);return gel&&capsules?addonNormalize([gel,capsules],days,catalog).map(item=>({...item,clinic_supply_days:days})):null;}export const priceMoney=minor=>`₪${new Intl.NumberFormat(\"en-US\",{maximumFractionDigits:2}).format(minor/100)}`;export const priceMonths=months=>months===1?\"חודש אחד\":months===2?\"חודשיים\":`${months} חודשים`;/** A new patient's discount on the plan for each month, in agorot; 0 when there is none. */export function newPatientMonthlyDiscount(plan){const value=plan?.new_patient_monthly_discount_minor;return typeof value===\"number\"&&Number.isSafeInteger(value)&&value>0?value:0;}/** The dose a plan's quick list gives by itself, when it is a whole one among `intervals` (Formidable's own): the doctor then never sees a dose step. */export function planUsage(plan,intervals){const usage=plan?.usage;if(!usage||!Number.isInteger(usage.amount)||usage.amount<1||usage.amount>100||!Number.isInteger(usage.times)||usage.times<1||usage.times>10||typeof usage.every!==\"string\"||!intervals.includes(usage.every))return null;return{amount:usage.amount,times:usage.times,every:usage.every};}\nexport const __FramerMetadata__ = {\"exports\":{\"PeriodPrice\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SexualPlan\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"QuickPricing\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PriceOptionDefinition\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"priceMoney\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CardPriceOption\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"planUsage\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"QuickPrice\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"quickPrice\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"combinationItems\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"optionPrice\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"cardPriceOptions\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"priceMonths\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"newPatientMonthlyDiscount\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","/** One press, two prescriptions (the owner, 15.11.2026: \"We can do automation that if some doctor also choosing Nizoral Shampoo 2%, 100 ml it will split it\n * (behind the scenes) to 2 diffrent prespriction ... implement it for dr gross and the tests account\").\n * Formidable never puts a regular medicine on a pharmacy-made prescription. So the doctor chooses the shampoo here, beside his treatment, and presses\n * \"הפק מרשם\" once: Meno keeps Formidable's own request for the treatment, and formidable-records adds the shampoo's regular prescription to the same press\n * (built by the server, as Formidable's form builds it). The patient pays for both in one checkout; the worker sends both to Formidable after the payment.\n * Which clinic offers which product, at what price, is the server's (clinic_hair_catalog's `companions`, _clinic_rx_companions). This module only holds the\n * doctor's choice for the press on screen, for FormidableCompanion.tsx (the box) and FormidablePrescribing.tsx (the press). *//** `live`: Meno turned it on for the clinic's live prescriptions (_clinic_rx_companions); the test clinics' sandbox doesn't need it. *//** `kind` (16.11.2026): \"regular\" is the Nizoral shampoo of 15.11.2026, its own regular prescription that the server builds from the press (offered nowhere since the\n * owner removed it on 16.11.2026); \"compounded\" is a pharmacy-made product the doctor's own press puts into the same prescription as his treatment (the owner,\n * 16.11.2026: Dr Gross's ketoconazole 2% shampoo; `system`, `value` and `name` are Formidable's product), so nothing of it goes with the seal. `frequencies`: how\n * often a week, either way. *//** `alone` (17.11.2026, Dr Nadim's clinic): a pharmacy-made one the clinic also gives on its own, as a card of the quick list; elsewhere it goes only beside a\n * treatment. `name_latin` and `form_he`: the server's words for its line under \"ייכנס למרשם\". */export const COMPANION_FREQUENCY_LABELS={1:\"פעם בשבוע\",2:\"פעמיים בשבוע\",3:\"3 פעמים בשבוע\"};/** The companions this clinic offers, from the hair catalogue the panel already holds. Anything malformed is left out. */export function offeredCompanions(hair){const list=hair&&typeof hair===\"object\"?hair.companions:null;if(!Array.isArray(list))return[];const weekly=value=>Array.isArray(value)&&value.length>0&&value.every(f=>Number.isInteger(f)&&!!COMPANION_FREQUENCY_LABELS[f]);const text=value=>typeof value===\"string\"?value:\"\";return list.flatMap(c=>{if(!c||typeof c.key!==\"string\"||!/^[a-z0-9-]{1,60}$/.test(c.key)||typeof c.name_he!==\"string\"||!Number.isSafeInteger(c.amount_minor)||c.amount_minor<=0)return[];const base={key:c.key,name_he:c.name_he,pack_he:text(c.pack_he),amount_minor:c.amount_minor,live:c.live===true,system:text(c.system),value:text(c.value),name:text(c.name),alone:c.kind===\"compounded\"&&c.alone===true,name_latin:text(c.name_latin),form_he:text(c.form_he),alone_amount_minor:Number.isSafeInteger(c.alone_amount_minor)&&c.alone_amount_minor>0?c.alone_amount_minor:undefined}// <nadim-shampoo> whole agorot only\n;// A pharmacy-made one (16.11.2026) gives its weekly choices as `weekly`, which a page from before this change doesn't read: it never offered it as the regular kind.\nif(c.kind===\"compounded\")return weekly(c.weekly)&&base.system&&base.value&&base.name?[{...base,kind:\"compounded\",frequencies:c.weekly}]:[];return weekly(c.frequencies)?[{...base,kind:\"regular\",frequencies:c.frequencies}]:[];});}/** <nadim-shampoo> What the patient pays for the product on its own (18.11.2026; Shay, for Dr Nadim: ₪100 beside any hair treatment, ₪135 on its own): the\n * clinic's own price alone where its offer has one, else its one price, exactly as the server charges it (_clinic_hair_pricing's companion_alone:\n * coalesce(alone_amount_minor, amount_minor)). Beside a treatment it is always `amount_minor`. */export function companionAloneAmount(offer){return offer.alone_amount_minor??offer.amount_minor;}let choice=null;const listeners=new Set;export function companionChoice(){return choice;}export function setCompanionChoice(next){if(JSON.stringify(next)===JSON.stringify(choice))return;choice=next;for(const listener of[...listeners]){try{listener();}catch{}}}export function onCompanionChoice(listener){listeners.add(listener);return()=>{listeners.delete(listener);};}/** What goes with the end of the press (formidable-records `defer_seal`): each companion chosen with its frequency. */export function companionsForSeal(){return choice&&choice.frequency&&choice.kind!==\"compounded\"?[{key:choice.key,frequency:choice.frequency}]:[];}/** Ticked without a frequency: the press waits for it. A pharmacy-made one is in Formidable's list or not, whatever was ticked (compoundedChoiceMissing). */export function companionUnfinished(){return!!choice&&!choice.frequency&&choice.kind!==\"compounded\";}/** The pharmacy-made product marked to go with the treatment (16.11.2026) but not in the press's first body (the treatment went in another way): the press stops and\n * says so, so a marked shampoo is never left out in silence. */export function compoundedChoiceMissing(body){const product=choice?.kind===\"compounded\"?choice.product:undefined;if(!product)return false;const list=body?.medicationList;return!Array.isArray(list)||!list.some(m=>m?.medicationId?.system===product.system&&m?.medicationId?.value===product.value);}export const COMPANION_NOT_IN_LIST_TEXT=\"סימנתם שמפו, אבל הוא עוד לא במרשם. כדי להוסיף אותו: ״הוסף תרופה נוספת״ ב-Formidable, ואז השמפו. אפשר גם לבטל את הסימון שלו. אחר כך לחצו שוב על ״הפק מרשם״. לא נשלח דבר.\";export const COMPANION_UNFINISHED_TEXT=\"סימנתם שמפו, אבל עוד לא בחרתם כמה פעמים בשבוע. בחרו תדירות, או בטלו את הסימון, ולחצו שוב על ״הפק מרשם״. לא נשלח דבר.\";export const COMPANION_NOT_DEFERRED_TEXT=\"את השמפו אפשר לתת רק כשהמרשם נשמר עד שהמטופל משלם. בטלו את סימון השמפו ולחצו שוב על ״הפק מרשם״. לא נשלח דבר.\";let treatment=null;export function noteTreatmentPrice(next){if(JSON.stringify(next)===JSON.stringify(treatment))return;treatment=next;for(const listener of[...listeners]){try{listener();}catch{}}}export function treatmentPrice(){return treatment;}/** A renewal's shampoo, ticked once per draft (16.11.2026): the form remounts after a refused seal, and must not tick it again behind the doctor's back. */const carriedRenewals=new Set;export function renewalCarried(key){return!!key&&carriedRenewals.has(key);}export function markRenewalCarried(key){if(key)carriedRenewals.add(key);}\nexport const __FramerMetadata__ = {\"exports\":{\"renewalCarried\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"companionUnfinished\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"onCompanionChoice\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"treatmentPrice\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CompanionOffer\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"markRenewalCarried\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"companionChoice\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"COMPANION_NOT_DEFERRED_TEXT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"companionsForSeal\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CompanionChoice\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TreatmentPrice\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"COMPANION_NOT_IN_LIST_TEXT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"COMPANION_FREQUENCY_LABELS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"COMPANION_UNFINISHED_TEXT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"companionAloneAmount\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"noteTreatmentPrice\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"compoundedChoiceMissing\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"setCompanionChoice\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"offeredCompanions\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./menoFormidableCompanion.map","import{itemTitle,sigLine}from\"https://framerusercontent.com/modules/wSXJXd8RS5Ctl3EcjP5K/YykwueghhH9RGeRRqB2o/menoRx.js\";import{capsuleAmountAllowed,chosenVariant,formFill,packageContents}from\"https://framerusercontent.com/modules/Sqnm1oBloyaEPKxztO62/eLdlDGbsJYjlaQGylad6/menoFormidableQuickList.js\";import{fillComplete}from\"https://framerusercontent.com/modules/6MUbbqkHIwXrbrgos6Ci/hW1vFjDvw3ny6ERM5Hqx/menoFormidableTreatments.js\";import{quickPrice}from\"https://framerusercontent.com/modules/fXLAPnOTFstplkxZEgfB/JALm4OQ6XRKbCEQzWExf/menoFormidablePrices.js\";import{changeHairGelTretinoin,changeHairStrength,hairTreatmentFor}from\"https://framerusercontent.com/modules/rpZ9aAJug41PdXIjKI8p/qIk2kX4aoegohNe4n2fT/menoHairRx.js\";import{COMPANION_FREQUENCY_LABELS}from\"https://framerusercontent.com/modules/Jqs4zFvLF6HkPpLvRseN/eC7gmfGboySycCKNqbAV/menoFormidableCompanion.js\";const named=item=>!!(item?.name_latin?.trim()||item?.name_he?.trim()||item?.actives?.some(active=>active?.name_latin?.trim()));/** The medicines a draft brings with it. A blank card is not one. Null when there are none. */export function renewalSource(record){const items=(record?.document?.items||[]).filter(named);if(!items.length)return null;const days=Number(record?.document?.valid_days);const renewal=(record?.events||[]).some(event=>event?.event===\"patient_renewal_opened\"||event?.event===\"draft_opened\"&&!!event?.detail?.renewal_of);return{items,validDays:Number.isInteger(days)&&days>0?days:0,renewal,...typeof record?.id===\"string\"&&record.id?{key:record.id}:{}};}const key=value=>String(value??\"\").normalize(\"NFKC\").trim().toLowerCase();const amountOf=(strength,unit)=>{const match=String(strength??\"\").trim().match(/^(\\d+(?:\\.\\d+)?)\\s*(%|mg)$/i);return match&&match[2].toLowerCase()===unit?String(Number(match[1])):\"\";};function activesOf(item){const map=new Map;for(const active of item.actives||[]){const name=key(active?.name_latin);if(!name||map.has(name))return null;map.set(name,String(active?.strength??\"\"));}return map;}const only=(actives,...names)=>actives.size===names.length&&names.every(name=>actives.has(name));// The plan's dose keys back to the quick list's: the reverse of HAIR_DOSES in _shared/formidableNativeRx.ts and PLAN_DOSES in menoFormidablePrices.ts.\nexport const RENEWAL_DOSES={\"hair-solution\":{ml1:{key:\"ml_1\",dose:\"1 מ״ל\",frequency:\"פעם ביום\"},ml2:{key:\"ml_2\",dose:\"2 מ״ל\",frequency:\"פעם ביום\"}},\"hair-gel\":{press1:{key:\"press_1\",dose:\"לחיצה אחת\",frequency:\"פעם ביום\"},press2:{key:\"press_2\",dose:\"2 לחיצות\",frequency:\"פעם ביום\"}},\"hair-dutasteride-gel\":{every2:{key:\"press_every_2\",dose:\"לחיצה אחת\",frequency:\"פעם ביומיים\"},every3:{key:\"press_every_3\",dose:\"לחיצה אחת\",frequency:\"פעם בשלושה ימים\"}},\"hair-dutasteride-solution\":{ml1:{key:\"ml_1\",dose:\"1 מ״ל\",frequency:\"פעם ביום\"}},\"hair-minoxidil-capsules\":{once:{key:\"capsule_1\",dose:\"כמוסה אחת\",frequency:\"פעם ביום\"},twice:{key:\"capsule_2\",dose:\"כמוסה אחת\",frequency:\"פעמיים ביום\"}},\"hair-combined-capsules\":{once:{key:\"capsule_1\",dose:\"כמוסה אחת\",frequency:\"פעם ביום\"}}};/** The quick list's dose for a saved item: its plan key, or, on an older item with none, its dose and frequency words. */function doseOf(familyId,item){const doses=RENEWAL_DOSES[familyId]||{};const byKey=Object.entries(doses).find(([,plan])=>plan.key===key(item.clinic_dose_key));if(byKey)return byKey[0];if(item.clinic_dose_key)return\"\";const byWords=Object.entries(doses).filter(([,plan])=>key(plan.dose)===key(item.dose)&&key(plan.frequency)===key(item.frequency));return byWords.length===1?byWords[0][0]:\"\";}const SEXUAL_FAMILIES=[{id:\"sexual-clomipramine-pyridoxine-magnesium\",others:[\"pyridoxine hcl\",\"magnesium carbonate\"]},{id:\"sexual-clomipramine\",others:[]},{id:\"sexual-clomipramine-sildenafil\",others:[\"pyridoxine hcl\",\"magnesium carbonate\",\"sildenafil citrate\"]},{id:\"sexual-clomipramine-tadalafil\",others:[\"tadalafil\"]}];/** Which card of the quick list a saved item is, and its chips. Null: not one of the list's products. */export function listChoice(item){const actives=item.kind===\"compound\"?activesOf(item):null;if(item.pigmentation_formula_code)return{family:\"pigmentation-cream\",choice:{}};// A commercial medicine of the owner's 11.11.2026 list, as formidableNativeRx.ts saves it: its brand and strength.\nconst brand=item.kind===\"compound\"?null:/^(viagra|cialis) (\\d+(?:\\.\\d+)?) mg$/.exec(key(item.name_latin));if(brand&&key(item.form_he)===\"טבליות\")return{family:`sexual-${brand[1]}`,choice:{strength:String(Number(brand[2]))}};if(!actives)return null;const form=key(item.form_he);const percent=name=>amountOf(actives.get(name),\"%\"),mg=name=>amountOf(actives.get(name),\"mg\");const topical=family=>{const tretinoin=actives.has(\"tretinoin\");if(!(only(actives,\"minoxidil\",\"finasteride\")||only(actives,\"minoxidil\",\"finasteride\",\"tretinoin\")&&percent(\"tretinoin\")===\"0.01\"))return null;const minoxidil=percent(\"minoxidil\"),finasteride=percent(\"finasteride\");return minoxidil&&finasteride?{family,choice:{minoxidil,finasteride,tretinoin:tretinoin?\"with\":\"without\"}}:null;};if(form===\"תמיסה\"){// DTC Clinic's dutasteride solution (the owner, 16.11.2026): exactly minoxidil 5%, dutasteride 0.15% and tretinoin 0.01%.\nif(actives.has(\"dutasteride\"))return only(actives,\"minoxidil\",\"dutasteride\",\"tretinoin\")&&percent(\"minoxidil\")===\"5\"&&percent(\"dutasteride\")===\"0.15\"&&percent(\"tretinoin\")===\"0.01\"?{family:\"hair-dutasteride-solution\",choice:{}}:null;return topical(\"hair-solution\");}if(form.startsWith(\"גל\")){if(actives.has(\"dutasteride\"))return only(actives,\"minoxidil\",\"dutasteride\")&&percent(\"minoxidil\")===\"5\"&&percent(\"dutasteride\")===\"0.5\"?{family:\"hair-dutasteride-gel\",choice:{}}:null;return topical(\"hair-gel\");}if(form===\"כמוסות\"){if(only(actives,\"minoxidil\")&&mg(\"minoxidil\"))return{family:\"hair-minoxidil-capsules\",choice:{minoxidil:mg(\"minoxidil\")}};if(only(actives,\"minoxidil\",\"finasteride\")&&mg(\"minoxidil\")&&mg(\"finasteride\"))return{family:\"hair-combined-capsules\",choice:{minoxidil:mg(\"minoxidil\"),finasteride:mg(\"finasteride\")}};const clomipramine=mg(\"clomipramine hcl\");const sexual=clomipramine?SEXUAL_FAMILIES.find(family=>only(actives,\"clomipramine hcl\",...family.others)):undefined;if(sexual)return{family:sexual.id,choice:{strength:clomipramine}};if(only(actives,\"sildenafil\")&&mg(\"sildenafil\"))return{family:\"sexual-sildenafil\",choice:{strength:mg(\"sildenafil\")}};}return null;}/** The catalogue products a quick-list card offers for one recipe (Shay's account, 18.11.2026, on the solution card's MINOXIDIL 5% FINASTERIDE 1% TRETINOIN 0.01%\n * in 100 mL and in 50 mL: \"when you can choose 50 מ״ל twice or 100 מל once I want you to always default set the 100 מ״ל once and not even offer 50 מל twice\").\n * When Formidable has the recipe in the card's own bottle or box (QuickFamily.pack: the solutions' 100 mL, the gels' 50 mL, the capsules' 100), only those: the\n * clinic plans, Dr Gross's 100-400 mL and the pharmacy count in that bottle, and a smaller one only splits the same amount into more packages (or misses it:\n * 300 mL at 2 mL a day is 5 x 50 mL, 250 mL). Another size of the recipe is offered only when Formidable has none in the card's own. On 18.11.2026 five\n * solutions had both: 5%+0.25%+tretinoin MN00666/40129, 5%+0.25% 7568/40674, 5%+0.5%+tretinoin MN00667/40231, 5%+1%+tretinoin MN00668/16576,\n * 7%+2%+tretinoin MN00694/16577 (100 mL / 50 mL). What a card offers, not what the list accepts: a product added another way is still recognised. */export function offeredEntries(family,entries){const pack=family.pack;if(!pack)return[...entries];const own=entries.filter(entry=>{const contents=packageContents(entry);return!!contents&&contents.unit===pack.unit&&contents.total===pack.size;});return own.length?own:[...entries];}const monthsLabel=months=>months===1?\"חודש אחד\":months===2?\"חודשיים\":`${months} חודשים`;/** The steps of a renewal, in the draft's order, against the treatments this clinic is offered today (`treatments`, as the panel lists them). */export function renewalSteps(whole,treatments,pricing){// One press, two prescriptions (16.11.2026): a product last time had beside its treatment (the Nizoral shampoo) is no card of the quick list. The box above\n// \"הפק מרשם\" carries it (renewalCompanions, FormidableCompanion.tsx), so its steps are the treatment's only, as before the shampoo.\nconst source={...whole,items:whole.items.filter(item=>!companionKeyOf(item))};return combinationSteps(source,treatments,pricing)??source.items.map(item=>{const step={item,family:null,choice:{},doseKey:\"\",periodKey:\"\",entry:null,fill:null,ready:false,reason:\"\"};const listed=listChoice(item);const family=listed?treatments.find(candidate=>candidate.id===listed.family)??null:null;if(!listed||!family){step.reason=\"הטיפול הזה אינו ברשימת הטיפולים של המרפאה כרגע. אפשר לבחור טיפול אחר.\";return step;}step.family=family;const days=Number(item.clinic_supply_days)>0?Number(item.clinic_supply_days):source.validDays;const months=days>0&&days%30===0?days/30:0;let variant=null;if(family.area===\"pigmentation\"){variant=family.variants.find(candidate=>!!candidate.code&&candidate.code===item.pigmentation_formula_code)??null;if(!variant){step.reason=\"הפורמולה מהמרשם הקודם אינה ברשימה כרגע. אפשר לבחור פורמולה.\";return step;}}else if(family.area===\"sexual\"){// The doctor's schedule was typed in Formidable's form, and Meno kept it only as words. It is never read back from them.\n// The amount a month: one of the card's own (tablets a month, or a pack Formidable has), as last time; otherwise 30 capsules, as before.\nconst perMonth=months>0&&Number(item.quantity)>0?Number(item.quantity)/months:0;const counts=family.perMonth??family.variants.map(candidate=>candidate.product.capsules);const capsules=counts.includes(perMonth)?String(perMonth):family.perMonth?\"\":\"30\";// A strength the card doesn't have today stays empty, and the doctor is told so (11.11.2026: Viagra 50 mg is not on the Viagra card).\nconst offered=family.variants.some(candidate=>String(candidate.product.actives[0]?.strength)===listed.choice.strength);step.choice=offered?{...listed.choice,capsules}:{capsules};step.periodKey=months?`m${months}`:\"\";// A plan that gives the dose by itself (Dr Drai, the owner, 15.11.2026) leaves no dose to choose.\nconst fixedDose=!!pricing?.hair?.sexual_plan?.usage;step.reason=source.chosen?offered?fixedDose?\"הטיפול שנבחר בהחלטה כבר מסומן. נשאר ללחוץ על ״הוסף למרשם״.\":\"הטיפול שנבחר בהחלטה כבר מסומן. את המינון יש לבחור.\":\"החוזק שנבחר אינו ברשימה כרגע. יש לבחור חוזק.\":offered?fixedDose?\"החוזק והתקופה נבחרו כמו במרשם הקודם. נשאר לבדוק את הכמות וללחוץ על ״הוסף למרשם״.\":\"החוזק והתקופה נבחרו כמו במרשם הקודם. את המינון יש לבחור.\":fixedDose?\"החוזק מהמרשם הקודם אינו ברשימה כרגע. יש לבחור חוזק.\":\"החוזק מהמרשם הקודם אינו ברשימה כרגע. יש לבחור חוזק ומינון.\";return step;}else{step.choice=listed.choice;const option=item.clinic_price_option;if(typeof option===\"string\"&&/^[a-z0-9-]{1,40}$/.test(option))step.priceOption=option;if(family.facets.some(facet=>!facet.options.some(option=>option.value===listed.choice[facet.key]))){step.choice={};step.reason=\"החוזק מהמרשם הקודם אינו ברשימה כרגע. יש לבחור חוזק.\";return step;}variant=family.facets.length?chosenVariant(family,listed.choice):family.variants[0]??null;if(!variant){step.reason=\"השילוב מהמרשם הקודם אינו ברשימה כרגע. יש לבחור.\";return step;}}step.doseKey=family.doses.length===1?family.doses[0].key:family.area===\"pigmentation\"?\"\":doseOf(family.id,item);const period=family.periods.find(option=>option.months===months);step.periodKey=period?.key||\"\";if(family.doses.length>1&&!step.doseKey){step.reason=\"המינון מהמרשם הקודם אינו ברשימה כרגע. יש לבחור מינון.\";return step;}if(!period){step.reason=months?`תקופה של ${monthsLabel(months)} אינה ברשימה כרגע. יש לבחור תקופה.`:\"יש לבחור תקופה.\";return step;}// Minoxidil capsules only as 100 to 400 capsules (the owner, 4.11.2026): the panel dims what doesn't come to that, and so does a renewal.\nconst dose=family.doses.find(candidate=>candidate.key===step.doseKey);if(family.pack?.unit===\"capsule\"&&dose&&!capsuleAmountAllowed(dose,period.months)){step.reason=\"הכמות מהמרשם הקודם אינה 100, 200, 300 או 400 כמוסות. יש לבחור מינון ותקופה.\";return step;}// The products the card offers (offeredEntries, 18.11.2026): the 100 mL solution once, so a renewal of it adds by itself again.\nconst entries=offeredEntries(family,variant.entries);if(!entries.length){step.reason=\"התכשיר מהמרשם הקודם אינו קיים כרגע ב-Formidable.\";return step;}if(entries.length>1){step.reason=\"ב-Formidable יש יותר מתכשיר אחד כזה. יש לבחור אחד.\";return step;}step.entry=entries[0];step.fill=formFill(family,step.doseKey||undefined,period,step.entry);if(!fillComplete(step.fill)){step.reason=\"את הפרטים יש להשלים בטופס של Formidable.\";return step;}const price=quickPrice(family,step.choice,step.doseKey||undefined,period,pricing);if(price?.kind===\"none\"){step.reason=\"הבחירה מהמרשם הקודם אינה במחירון של המרפאה כרגע, ולכן לא נוספה.\";return step;}step.ready=true;return step;});}const supplyDays=(item,source)=>Number(item.clinic_supply_days)>0?Number(item.clinic_supply_days):source.validDays;/** The combination card (dutasteride gel + minoxidil capsules, as the 22.10 order at Nordica) is one choice with one period: the gel goes in first, then the capsules,\n * as the panel says. If either can't be added exactly as last time, neither is, and both wait on the card with last time's chips. */function combinationSteps(source,treatments,pricing){if(source.items.length!==2)return null;const gelItem=source.items.find(item=>listChoice(item)?.family===\"hair-dutasteride-gel\"),capsuleItem=source.items.find(item=>listChoice(item)?.family===\"hair-minoxidil-capsules\");const combination=treatments.find(family=>family.id===\"hair-combination\");const gelPart=combination?.parts?.find(part=>part.id===\"hair-dutasteride-gel\"),capsulePart=combination?.parts?.find(part=>part.id===\"hair-minoxidil-capsules\");if(!gelItem||!capsuleItem||!combination||!gelPart||!capsulePart)return null;const months=supplyDays(gelItem,source)%30===0?supplyDays(gelItem,source)/30:0;const period=combination.periods.find(option=>option.months===months);const minoxidil=listChoice(capsuleItem).choice.minoxidil;const view={family:combination.id,picked:{[capsulePart.id]:{minoxidil}},doses:{[gelPart.id]:doseOf(gelPart.id,gelItem),[capsulePart.id]:doseOf(capsulePart.id,capsuleItem)},period:period?.key||\"\"};const make=(item,part,choice)=>{const step={item,family:combination,choice,doseKey:view.doses[part.id],periodKey:view.period,entry:null,fill:null,ready:false,reason:\"\",view};const dose=part.doses.find(candidate=>candidate.key===step.doseKey);const variant=part.facets.length?chosenVariant(part,choice):part.variants[0]??null;const entries=variant?offeredEntries(part,variant.entries):[];if(!period)step.reason=months?`תקופה של ${monthsLabel(months)} אינה ברשימה כרגע. יש לבחור תקופה.`:\"יש לבחור תקופה.\";else if(supplyDays(item,source)!==period.months*30)step.reason=`בפעם הקודמת הכמוסות היו ל${monthsLabel(supplyDays(capsuleItem,source)/30)} והגל ל${monthsLabel(months)}. בשילוב יש תקופה אחת לשניהם, ולכן יש לבחור.`;else if(pricing?.hair?.applicable===true&&!pricing.hair.addons_enabled)step.reason=\"השילוב אינו במחירון של המרפאה כרגע, ולכן לא נוסף.\";else if(!dose||!variant)step.reason=\"המינון או החוזק מהמרשם הקודם אינם ברשימה כרגע. יש לבחור.\";else if(part.pack?.unit===\"capsule\"&&!capsuleAmountAllowed(dose,period.months))step.reason=\"הכמות מהמרשם הקודם אינה 100, 200, 300 או 400 כמוסות. יש לבחור מינון ותקופה.\";else if(entries.length!==1)step.reason=entries.length?\"ב-Formidable יש יותר מתכשיר אחד כזה. יש לבחור אחד.\":\"התכשיר מהמרשם הקודם אינו קיים כרגע ב-Formidable.\";else{step.entry=entries[0];step.fill=formFill(part,step.doseKey||undefined,period,step.entry);if(fillComplete(step.fill))step.ready=true;else step.reason=\"את הפרטים יש להשלים בטופס של Formidable.\";}return step;};const gel=make(gelItem,gelPart,{}),capsules=make(capsuleItem,capsulePart,{minoxidil});if(gel.ready&&capsules.ready)return[gel,capsules];const reason=gel.reason||capsules.reason;return[{...gel,ready:false,reason},{...capsules,ready:false,reason}];}/** The tab of the panel a step opens on. */export const stepArea=step=>step.family?.area??null;/** A meno.health patient's draft against the questionnaire's Formidable choices: the choice that is the same treatment as last time, with its strengths\n * where the list has them. The ED tablets with P5P of before 6.11 become the ED capsules: the same tadalafil and sildenafil, the only ED choice in Formidable. */export function menoRenewalChoice(loaded,presets){const actives=loaded?.kind===\"compound\"?activesOf(loaded):null;if(!actives)return null;const same=(preset,item)=>{const own=(loaded.instructions_he||\"\").trim(),keep=!!own&&key(loaded.form_he)===key(item.form_he)&&key(loaded.unit)===key(item.unit);const instructions=keep?own:preset.instructions.trim();return{preset,item:{...item,instructions_he:instructions},override:instructions===preset.instructions.trim()?\"\":instructions};};if(amountOf(actives.get(\"tadalafil\"),\"mg\")===\"8\"&&amountOf(actives.get(\"sildenafil\"),\"mg\")===\"25\"&&[...actives.keys()].every(name=>[\"tadalafil\",\"sildenafil\",\"p5p\"].includes(name))){const preset=presets.find(candidate=>candidate.item.actives?.some(active=>key(active.name_latin)===\"tadalafil\"));if(!preset)return null;const choice=same(preset,JSON.parse(JSON.stringify(preset.item)));return{...choice,changed:actives.has(\"p5p\")||key(loaded.form_he)!==key(preset.item.form_he)};}const treatment=hairTreatmentFor(loaded)?.id;const preset=treatment===\"minoxidil-finasteride-gel\"||treatment===\"minoxidil-finasteride-gel-without-tretinoin\"?presets.find(candidate=>candidate.selectableStrengths===\"minoxidil-finasteride-gel\"):treatment===\"minoxidil-finasteride-capsules\"?presets.find(candidate=>candidate.selectableStrengths===\"minoxidil-finasteride-capsules\"):undefined;if(!preset)return null;const unit=preset.selectableStrengths===\"minoxidil-finasteride-gel\"?\"%\":\"mg\";let item=JSON.parse(JSON.stringify(preset.item));for(const name of[\"Minoxidil\",\"Finasteride\"]){const value=amountOf(actives.get(name.toLowerCase()),unit),allowed=preset.strengthOptions?.[name];// A strength the list doesn't have stays for the doctor to choose: never the nearest one.\nif(value&&(!allowed||allowed.includes(value)))item=changeHairStrength(item,name,value)??item;}if(preset.selectableStrengths===\"minoxidil-finasteride-gel\")item=changeHairGelTretinoin(item,actives.has(\"tretinoin\"))??item;return{...same(preset,item),changed:Number(loaded.quantity)!==Number(preset.item.quantity)};}// A Latin name in a Hebrew line keeps to itself, so \"2 לחיצות\" after it stays with its Hebrew word.\nconst isolate=text=>text?\"⁨\"+text+\"⁩\":text;/** What the doctor reads about a medicine of the last prescription that wasn't added by itself. */export function renewalWords(source,step){const line=sigLine(step.item);return`${source.chosen?\"נבחר בהחלטה\":source.renewal?\"במרשם הקודם\":\"בטיוטה השמורה\"}: ${isolate(itemTitle(step.item))}${line?` \\xb7 ${line}`:\"\"}. ${step.reason}`;}/** One line of what the draft brings, for above Formidable. */const companionKeyOf=item=>{const key=item?.clinic_companion_key;return typeof key===\"string\"&&/^[a-z0-9-]{1,60}$/.test(key)?key:null;};/** One press, two prescriptions (16.11.2026): the products last time's prescription had beside its treatment, with how often (the words Meno sealed, as\n * formidableNativeRx.ts writes them), for the box above \"הפק מרשם\". A frequency in other words comes back null: the doctor chooses it. */export function renewalCompanions(source){const byWords=new Map(Object.entries(COMPANION_FREQUENCY_LABELS).map(([times,words])=>[words,Number(times)]));return(source?.items||[]).flatMap(item=>{const key=companionKeyOf(item);return key?[{key,frequency:byWords.get(String(item.frequency??\"\").trim())??null}]:[];});}export function renewalLine(item){const line=sigLine(item);return`${isolate(itemTitle(item))}${line?` \\xb7 ${line}`:\"\"}`;}/** Formidable's own \"הוסף תרופה נוספת\" under its list, pressed as the doctor would. False when it isn't there within a few seconds: the doctor then adds the next one. */export async function pressAddAnother(app,signal){for(const started=Date.now();Date.now()-started<4e3;await new Promise(resolve=>window.setTimeout(resolve,50))){if(signal.aborted)return false;let doc=null;try{doc=app.querySelector(\"iframe\")?.contentDocument||null;}catch{return false;}const button=Array.from(doc?.querySelectorAll(\"button\")||[]).find(candidate=>candidate.textContent?.trim()===\"הוסף תרופה נוספת\"&&!candidate.disabled);if(button){button.click();return true;}}return false;}\nexport const __FramerMetadata__ = {\"exports\":{\"renewalSteps\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"renewalCompanions\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"pressAddAnother\":{\"type\":\"function\",\"isAsync\":true,\"annotations\":{\"framerContractVersion\":\"1\"}},\"RENEWAL_DOSES\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"stepArea\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"menoRenewalChoice\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RenewalStep\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"renewalSource\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"renewalWords\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"renewalLine\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"offeredEntries\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"listChoice\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RenewalSource\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{peekDoctorSessionIdentity}from\"https://framerusercontent.com/modules/KGFBZr5wsBdeI4S5ZDdN/rErYkPc7NppdRCIfNqaV/menoSupabase.js\";import{readManagerAccess}from\"https://framerusercontent.com/modules/Z0rNwSlFkK9kZs14b2jK/0ORRedKq8Uo5NYraCfOJ/menoManagerAccess.js\";/**\n * Doctors who choose only from the Meno list of their clinic's areas: Formidable's own catalogue search is hidden for them.\n * Owner, 4.11.2026: ד\"ר מואמן מנצור (clinic DR MANTZOR, hair loss only). To add a doctor, add his user id here.\n *\n * A display rule. The areas themselves are the clinic's `allowed_treatments`.\n */const QUICK_LIST_ONLY_DOCTORS=[\"f0dffd4b-c0df-40e2-b66f-8b419fa95054\"];/** Answered from this browser's stored login, with no request, so a button knows before the click. */export function isQuickListOnlyDoctor(config){try{// In \"כניסה כמנהל המרפאה\" the acting doctor is the clinic's manager: the admin sees what the doctor sees.\nconst doctor=readManagerAccess(config.supabaseUrl)?.manager_id??peekDoctorSessionIdentity(config)?.userId;return!!doctor&&QUICK_LIST_ONLY_DOCTORS.includes(doctor);}catch{return false;}}/**\n * Quick-list cards a doctor doesn't use, left out of his Formidable panel (family ids of menoFormidableQuickList.ts).\n * Owner, 15.11.2026: ד\"ר גל גרוס (clinic Dr Gross) doesn't need the gels, \"he don't need them so don't offer this to him in formidable\":\n * מינוקסידיל ופינסטריד and מינוקסידיל 5% ודוטסטריד 0.5% (גל ליפוזומלי ללא אלכוהול), and גל דוטסטריד וכמוסות מינוקסידיל.\n *\n * A display rule, like the one above: prices, the server's checks and Formidable's own catalogue search are unchanged.\n */const HIDDEN_QUICK_FAMILIES={\"30218374-ae30-4eee-a55c-3f2794419a20\":[\"hair-gel\",\"hair-dutasteride-gel\",\"hair-combination\"]};/** The cards this doctor's quick list leaves out, answered from the stored login as isQuickListOnlyDoctor is. */export function hiddenQuickFamilies(config){if(!config)return[];try{const doctor=readManagerAccess(config.supabaseUrl)?.manager_id??peekDoctorSessionIdentity(config)?.userId;return doctor&&HIDDEN_QUICK_FAMILIES[doctor]||[];}catch{return[];}}/**\n * Quick-list cards a doctor chooses by amount instead of period (family ids of menoFormidableQuickList.ts).\n * Owner, 15.11.2026: ד\"ר גל גרוס's solution, \"100,200,300,400 מ״ל options and not the amount of month\". The period the amount lasts at the chosen\n * dose still goes to Formidable and prices the prescription (volumePeriods), so nothing past the panel changes.\n */const VOLUME_QUICK_FAMILIES={\"30218374-ae30-4eee-a55c-3f2794419a20\":[\"hair-solution\"]};/** The cards this doctor chooses by amount, answered from the stored login as isQuickListOnlyDoctor is. */export function volumeQuickFamilies(config){if(!config)return[];try{const doctor=readManagerAccess(config.supabaseUrl)?.manager_id??peekDoctorSessionIdentity(config)?.userId;return doctor&&VOLUME_QUICK_FAMILIES[doctor]||[];}catch{return[];}}export const isQuickCompanion=option=>\"companion\"in option;// The owner, 16.11.2026: \"In dr gross ... I want you to replace the quick option of the 7% 2% minoxi and finastride to KETOCONAZOLE 2% SHAMPOO TOPICAL SOLUTION\n// (100 ML). It can be given only with another treatment and it will cost extra 73 ils.\" So the shampoo's tile takes the 7/2 tile's place, and 7/2 stays a formula\n// of his full solution card (\"הרכב\"), which has no tiles.\nconst GROSS_SOLUTIONS={form:\"תמיסה ללא אלכוהול\",note:\"לחיצה על תמיסה מוסיפה אותה למרשם: 1 מ״ל ביום. השמפו נכנס רק יחד עם טיפול, לאותו מרשם.\",options:[{companion:\"ketoconazole-shampoo-2-100\"},...[[\"7\",\"2\"],[\"7\",\"1\"],[\"7\",\"0.5\"],[\"7\",\"0.25\"]].map(([minoxidil,finasteride])=>({family:\"hair-solution\",choice:{minoxidil,finasteride,tretinoin:\"with\"},dose:\"ml1\",amount:\"v100\",...minoxidil===\"7\"&&finasteride===\"2\"?{tile:false}:{}}))]};const QUICK_OPTIONS={\"30218374-ae30-4eee-a55c-3f2794419a20\":GROSS_SOLUTIONS};/** This doctor's quick options, answered from the stored login as isQuickListOnlyDoctor is. */export function quickOptions(config){if(!config)return null;try{const doctor=readManagerAccess(config.supabaseUrl)?.manager_id??peekDoctorSessionIdentity(config)?.userId;return doctor&&QUICK_OPTIONS[doctor]||null;}catch{return null;}}\nexport const __FramerMetadata__ = {\"exports\":{\"isQuickCompanion\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"quickOptions\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"QuickCompanion\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"QuickOption\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"QuickOptions\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isQuickListOnlyDoctor\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hiddenQuickFamilies\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"volumeQuickFamilies\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./menoDoctorPrescribing.map","/** DTC's \"מטופל ותיק\" (the owner, 16.11.2026: \"add in DTC some option in the formidable when giving prescription, to mark if its old patient, and if so giving the\n * תמיסה of 100 מל פיניסטריד מינוקסידיל at 440 for 3 months\"; approved from the design canvas the same day, starting on a new patient). The doctor chooses it on the\n * solution's card in Meno's quick list (FormidableQuickTreatments.tsx, the \"סוג מטופל\" row); the card's press notes it here with the product it added, and\n * FormidablePrescribing.tsx sends it with that press (formidable-records `price_option`). The server prices the same bodies with it, Meno's record carries it on\n * the item (clinic_price_option), and the patient's checkout charges its total (_clinic_hair_selection). Which clinic offers which price is the server's\n * (clinic_hair_catalog's price_options, _clinic_hair_price_options). *//** `id`: the product's catalogue code (system:value), as Formidable's request names it; `name` is the fallback when a request has no code. */let noted=null;export function notePressPriceOption(next){noted=next&&/^[a-z0-9-]{1,40}$/.test(next.key)&&typeof next.label===\"string\"&&next.label&&typeof next.id===\"string\"&&next.id&&typeof next.name===\"string\"?{...next}:null;}export function notedPressPriceOption(){return noted?{...noted}:null;}/** The choice for a press, from its first body: the key when the body is the one product the card added with it; \"other\" when one was noted for something else; null when none. */export function pressPriceOptionFor(body){if(!noted)return null;const list=body&&typeof body===\"object\"?body.medicationList:null;if(!Array.isArray(list)||list.length!==1)return\"other\";const m=list[0];const id=m?.medicationId&&typeof m.medicationId.system===\"string\"&&m.medicationId.value!=null?`${m.medicationId.system}:${String(m.medicationId.value)}`:\"\";const same=id?id===noted.id:typeof m?.name===\"string\"&&m.name.trim()===noted.name.trim();return same?noted.key:\"other\";}const label=()=>noted?.label||\"מטופל ותיק\";export const priceOptionNotDeferredText=()=>`את המחיר של ״${label()}״ אפשר לתת רק כשהמרשם נשמר עד שהמטופל משלם, וכאן הוא נחתם מיד. בחרו בכרטיס ״מטופל חדש״, הוסיפו את התמיסה שוב ולחצו על ״הפק מרשם״, או פנו ל-Meno. לא נשלח דבר.`;export const priceOptionOtherText=()=>`״${label()}״ נבחר בכרטיס לתכשיר אחר ממה שיש במרשם. הסירו את התרופה, הוסיפו אותה שוב מהכרטיס ולחצו שוב על ״הפק מרשם״. לא נשלח דבר.`;/** <rx-fee> Dr Drai's prescription fee (the owner, 29.11.2026: \"add a button תוספת תשלום על מרשם with כן and לא options and if pressing yes it will add 165 for each\n * month in the treatment. defaultly it should be no\"): the card's choice for its press, \"charge\" (כן) or \"waive\" (לא). The card's press notes it\n * (FormidableQuickTreatments.tsx), FormidablePrescribing.tsx sends it with that press (formidable-records `prescription_fee`), the server marks every item with it\n * (clinic_prescription_fee), and every price of the prescription reads it (_clinic_new_patient_discount). Nothing noted: nothing is sent (the server's default is לא). */let fee=null;export function notePressFee(next){fee=next===\"charge\"||next===\"waive\"?next:null;}export function notedPressFee(){return fee;}export const feeNotDeferredText=()=>\"את התוספת על המרשם אפשר לגבות רק כשהמרשם נשמר עד שהמטופל משלם, וכאן הוא נחתם מיד. בחרו ״לא״ בתוספת תשלום על מרשם ולחצו שוב על ״הפק מרשם״, או פנו ל-Meno. לא נשלח דבר.\";\nexport const __FramerMetadata__ = {\"exports\":{\"notedPressPriceOption\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"notePressFee\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PressPriceOption\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"priceOptionNotDeferredText\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"priceOptionOtherText\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"feeNotDeferredText\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"notePressPriceOption\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"notedPressFee\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"pressPriceOptionFor\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./menoFormidablePriceOption.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{createPortal}from\"react-dom\";import{fontFamily,tokens}from\"https://framerusercontent.com/modules/tVCqDSXfHsd06f23WSmv/tFSEtuEyMXpbOjIK8QT9/menoMaps.js\";import{rememberedQuickFamilies}from\"https://framerusercontent.com/modules/mFVdc3Wh1VU6RgrOKEiR/OoXXduDZsO1ualAdTZeX/menoFormidable.js\";import{addMedicationToPrescription,capsuleRowRefusal,fillComplete,hideRefusedCapsuleRows,QUICK_AREAS,chooseCatalogPreparation,fillMedicationForm,focusNativeCatalog,initialQuickArea,packageLabel,prescriptionKind,prescriptionMedicineCount,prescriptionTypeControls,readLastQuickArea,revealMedicationForm,saveLastQuickArea,sdkCatalogControls,showCompoundedTypeOnly}from\"https://framerusercontent.com/modules/6MUbbqkHIwXrbrgos6Ci/hW1vFjDvw3ny6ERM5Hqx/menoFormidableTreatments.js\";import{offeredEntries,pressAddAnother,renewalCompanions,renewalSteps,renewalWords}from\"https://framerusercontent.com/modules/5CDeI27Efq0oVZMhpXPy/Fhq9beEBO8RW6MKABF6x/menoRxRenewal.js\";import{cardPriceOptions,combinationItems,optionPrice,planUsage,priceMoney,priceMonths,quickPrice}from\"https://framerusercontent.com/modules/fXLAPnOTFstplkxZEgfB/JALm4OQ6XRKbCEQzWExf/menoFormidablePrices.js\";import{useDraftChoiceRecorder}from\"https://framerusercontent.com/modules/JHK4nfbjSeYC4iPXqjko/xEBiB0eTU2fUTbS0CwWy/menoDraftChoice.js\";import{useAddonQuote}from\"https://framerusercontent.com/modules/rDZCqUBR0tDuaciOrHyl/slrgyfpqdxv3uhj1LCIj/RxAddonPlan.js\";import{hiddenQuickFamilies,isQuickCompanion,quickOptions,volumeQuickFamilies}from\"https://framerusercontent.com/modules/myTL20bvqY6QuB2bOUQJ/SaLXsAx7frh2iZLHov1l/menoDoctorPrescribing.js\";import{COMPANION_FREQUENCY_LABELS,companionChoice,markRenewalCarried,noteTreatmentPrice,offeredCompanions,onCompanionChoice,renewalCarried,setCompanionChoice}from\"https://framerusercontent.com/modules/Jqs4zFvLF6HkPpLvRseN/eC7gmfGboySycCKNqbAV/menoFormidableCompanion.js\";import{companionAloneAmount}from\"https://framerusercontent.com/modules/Jqs4zFvLF6HkPpLvRseN/eC7gmfGboySycCKNqbAV/menoFormidableCompanion.js\";// <nadim-shampoo>\nimport{notePressFee,notedPressFee,notePressPriceOption}from\"https://framerusercontent.com/modules/BvReRCkmPrNlOTIwrPMK/NYyfIcdAgpB8t7iNclrz/menoFormidablePriceOption.js\";import{activeLabel,capsuleAmountAllowed,chosenVariant,facetEnabled,familyForClinic,familyOffered,familyStatus,familyWithPlan,formFill,pickFacet,productLabel,quantityLabel,volumePeriods}from\"https://framerusercontent.com/modules/Sqnm1oBloyaEPKxztO62/eLdlDGbsJYjlaQGylad6/menoFormidableQuickList.js\";const AREA_LABELS={hair:\"טיפול בשיער\",pigmentation:\"פיגמנטציה\",sexual:\"בריאות מינית\"};const NOT_IN_CATALOG=\"עדיין לא קיים ב-Formidable\";const CAPSULE_RULE=\"מינוקסידיל בכמוסות ניתן רק ב-100, 200, 300 או 400 כמוסות.\";const PRICE_NOTE=\"כולל מע״מ ומשלוחים, לפני זיכויים וקופונים.\";const NOT_PRICED=\"הבחירה הזו אינה במחירון של המרפאה, ולכן לא תישלח למטופל הזמנה.\";const NO_QUOTE_RESULT=()=>{};// The owner, 16.11.2026, on a card's product tile: \"i won't have to click this specificlly ... it will have a clear big button/option to do הפק מרשם. think hard on\n// how to do this in the most easy way for doctors to see and use\". So every card ends with what goes into the prescription and one big \"הפק מרשם\". Its press adds\n// the treatment as the tile's press did (Formidable's own search and fields, the form hidden), then presses Formidable's own \"הפק מרשם\" once, as the doctor would:\n// Meno types the code (menoFormidableCode.ts, 11.11), the press is kept until the patient pays (FormidablePrescribing.tsx, 12.11), and whatever Formidable asks\n// (an overlapping prescription, a confirmation) is on his screen, his. \"הוספה למרשם בלי להפיק\" is the old press: the treatment goes into Formidable's list and he\n// goes on there (another medicine, an edit). The button is never a silent grey one: a press before the card is complete says what is missing and goes to it.\nconst ISSUE=\"הפק מרשם\",ISSUING=\"מפיקים את המרשם…\",ADD_ONLY=\"הוספה למרשם בלי להפיק\";const ISSUE_BY_HAND=\"התרופה נוספה למרשם, אבל המרשם עוד לא הופק. כדי להפיק אותו, לחצו על ״הפק מרשם״.\";const COMBO_BY_HAND=\"התרופה הראשונה נוספה למרשם. כדי להוסיף את השנייה: ״הוסף תרופה נוספת״ ב-Formidable, ואז שוב ״הפק מרשם״ בכרטיס.\";const LISTED_OTHERWISE=\"התרופה הזו כבר במרשם, אבל לא כמו שבכרטיס עכשיו. כדי לשנות אותה, מחקו אותה מהרשימה של Formidable ולחצו שוב.\";const NOT_GIVABLE=\"את הבחירה הזו עוד אי אפשר להפיק: התכשיר לא קיים ב-Formidable.\";// Dr Gross's pharmacy-made ketoconazole 2% shampoo (the owner, 16.11.2026: \"replace the quick option of the 7% 2% ... to KETOCONAZOLE 2% SHAMPOO TOPICAL SOLUTION (100 ML).\n// It can be given only with another treatment and it will cost extra 73 ils\"). Its tile marks it; the treatment pressed next (a tile or a card's press) goes in first and\n// the shampoo right after it, in the same prescription, through Formidable's own \"הוסף תרופה נוספת\", as a combination's second medicine. Beside a treatment that is\n// already in the list, it goes in at once. Never alone: the server refuses a prescription of the shampoo alone (companion_needs_one_treatment).\nconst SHAMPOO_BY_HAND=\"הטיפול נוסף למרשם, אבל השמפו עוד לא. כדי להוסיף אותו: ״הוסף תרופה נוספת״ ב-Formidable, ואז השמפו.\";const SHAMPOO_NOT_BESIDE=\"השמפו נכנס רק לצד טיפול אחד לשיער.\";// Dr Nadim's clinic (17.11.2026: \"In Dr Nadim clinic he will be able to prescribe it also alone\"): where the server's offer says `alone`, the shampoo is also a card\n// of its own in the hair list, with nothing to choose: one bottle, one thin layer SHAMPOO_TIMES a week, for 3 months (his solutions' months), and its own \"הפק מרשם\".\n// Beside the one hair treatment already in Formidable's list, its press adds it to that prescription for that treatment's months. Elsewhere it never goes alone.\nconst SHAMPOO_CARD=\"hair-shampoo\",SHAMPOO_ALONE_MONTHS=3;const SHAMPOO_ALONE_OR_BESIDE=\"השמפו נכנס לבד, או לצד טיפול אחד לשיער. כדי לתת אותו כך, הסירו מהרשימה של Formidable את שאר התרופות.\";// The card's English line, as the list's own cards number theirs (menoFormidableQuickList.ts: 1 to 6).\nconst COMPANION_ENGLISH={\"ketoconazole-shampoo-2-100\":\"7. Ketoconazole 2% — Shampoo\"};// How often a week. The owner, 16.11.2026, on the row that asked it: \"we don't care how many times per week remove this completly\". So nothing asks it:\n// twice a week (the label use of ketoconazole 2% shampoo), or last time's on a renewal. Formidable's list shows it, and the doctor can still change it there.\nconst SHAMPOO_TIMES=2;/** The shampoo's line in Formidable's form: one thin layer, SHAMPOO_TIMES a week, for the treatment's months, one package. With the months unknown (a\n * treatment that went in another way) the form opens for the doctor to fill them, everything else filled. */const shampooFill=(times,months)=>({amount:1,unit:\"thin_layer\",times,every:\"1|wk\",...months?{duration:months,durationUnit:\"mo\"}:{},quantity:1});const fillMonths=fill=>fill?.durationUnit===\"mo\"&&fill.duration?fill.duration:undefined;/** A line as Meno adds it: what it writes into Formidable's form and the price choice it carries. The same card pressed again gives the same key. */const lineKey=(fill,option)=>JSON.stringify([fill.amount,fill.unit,fill.times,fill.every,fill.duration,fill.durationUnit,fill.quantity,fill.quantityUnit??null,fill.when??null,fill.instructions??\"\",option]);const groupTarget=label=>`[role=\"group\"][aria-label=${JSON.stringify(label)}]`;const listWords=words=>words.length>1?`${words.slice(0,-1).join(\", \")} ו${words[words.length-1]}`:words[0]||\"\";/** The dose in words, as its chips and their row say it: \"1 מ״ל\" in \"מינון, פעם ביום\" is \"1 מ״ל פעם ביום\". */const doseWords=(item,dose)=>{const every=(item.doseLabel||\"\").split(\",\")[1]?.trim();return every?`${dose.label} ${every}`:dose.label;};/** The medicines Formidable's list shows by name (its rows' h4), never Meno's own panels in its frame. */function listedMedicines(form){try{const root=form.querySelector(\"iframe\")?.contentDocument?.getElementById(\"ferx-root\");return root?Array.from(root.querySelectorAll(\"h4\")).filter(h=>!h.closest(\"[data-meno-formidable-quick],[data-meno-companion]\")).map(h=>(h.textContent||\"\").trim()).filter(Boolean):[];}catch{return[];}}const formRoot=form=>{try{return form.querySelector(\"iframe\")?.contentDocument?.getElementById(\"ferx-root\")||null;}catch{return null;}};/** Formidable's own \"הפק מרשם\", never Meno's button of the same name on a card in its frame. */const formidableIssueButtons=root=>Array.from(root.querySelectorAll(\"button\")).filter(button=>button.textContent?.trim()===ISSUE&&!button.closest(\"[data-meno-formidable-quick],[data-meno-companion]\"));const OPEN=\"#signature-pin,.modal-content,[role='dialog'],[data-modal-type]\";/** Formidable's own \"הפק מרשם\" now: `ready` (one, enabled, nothing open over it), `dialog` (a box or a question is open: the doctor pressed it already, or Meno's\n * code is on its way) or `wait` (not drawn yet: Formidable draws it once a medicine is in its list). */function issueButtonState(form){const root=formRoot(form);if(!root)return\"wait\";if(root.querySelector(OPEN))return\"dialog\";const found=formidableIssueButtons(root);return found.length===1&&!found[0].disabled?\"ready\":\"wait\";}/** Presses it once, and says whether it opened anything: its code box, a question, or a line of its own (as pressIssue in menoFormidableSigning.ts tells them\n * apart, without counting Meno's button). The other prescription types ask Formidable's server first, so they get a longer limit. */async function pressFormidableOwn(form,limitMs){const root=formRoot(form),found=root?formidableIssueButtons(root):[];if(!root||found.length!==1||found[0].disabled)return\"nothing\";found[0].click();for(const started=performance.now();performance.now()-started<limitMs;await new Promise(resolve=>window.setTimeout(resolve,8)))if(root.querySelector(OPEN)||Array.from(root.querySelectorAll(\"[role='alert']\")).some(element=>!element.closest(\".modal-content,[data-meno-formidable-quick]\")))return\"opened\";return\"nothing\";}const ISSUE_ICON=/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 20 20\",width:\"20\",height:\"20\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M5.5 2.75h6L15.5 6.75v10.5h-10z\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M11.25 2.75v4h4.25\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M7.75 11.75l1.75 1.75 3.25-3.5\"})]});const TICK=/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 16 16\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M3.5 8.5l3 3 6-7\"})});const PLUS=/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 16 16\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 3v10M3 8h10\"})});// A card's strength is its first active's: clomipramine on its cards, sildenafil or tadalafil on those of the owner's 11.11.2026 list.\nconst sexualStrength=variant=>variant.product.actives[0]?.strength;const sexualPack=variant=>variant.product.capsules??variant.product.tablets;const entryKey=entry=>`${entry.medicationId.system}:${entry.medicationId.value}`;const ACTIVE_HEBREW={\"Clomipramine HCl\":\"קלומיפרמין\",\"Pyridoxine HCl\":\"פירידוקסין\",\"Magnesium Carbonate\":\"מגנזיום קרבונט\",\"Sildenafil Citrate\":\"סילדנפיל\",\"Sildenafil\":\"סילדנפיל\",\"Tadalafil\":\"טדלפיל\"};// Formidable keeps a prescription's type once it holds a medicine (its SDK, 11.11.2026), and a commercial medicine goes only in \"מרשם רגיל\".\nconst MIXED_TYPES=\"אי אפשר לשלב במרשם אחד תרופה מסחרית (ויאגרה, סיאליס) והכנה רוקחית. יש להפיק קודם את המרשם הזה, ולהוסיף את השנייה במרשם חדש.\";const NO_REGULAR=\"בפרופיל של הרופא ב-Formidable אין מרשם רגיל, ולכן אי אפשר להוסיף כאן תרופה מסחרית. אפשר לבקש מ-Formidable להפעיל אותו.\";// The actual intervals offered by Formidable's medication form. No interval is preselected.\nconst SEXUAL_INTERVALS=[{value:\"1|d\",label:\"כל יום\",summary:\"ביום\"},{value:\"2|d\",label:\"כל יומיים\",summary:\"כל יומיים\"},{value:\"3|d\",label:\"כל 3 ימים\",summary:\"כל 3 ימים\"},{value:\"1|wk\",label:\"כל שבוע\",summary:\"בשבוע\"},{value:\"1|mo\",label:\"כל חודש\",summary:\"בחודש\"},{value:\"1|a\",label:\"כל שנה\",summary:\"בשנה\"}];/** What the patient pays for the choice on screen. */function PatientPrice({price}){if(price.kind===\"none\")return /*#__PURE__*/_jsx(\"p\",{className:\"mfq-price-none\",role:\"status\",children:NOT_PRICED});if(price.kind===\"choose\")return /*#__PURE__*/_jsxs(\"p\",{className:\"mfq-note mfq-price-hint\",children:[\"המחיר למטופל יופיע אחרי בחירת \",price.missing.length>1?`${price.missing.slice(0,-1).join(\", \")} ו${price.missing[price.missing.length-1]}`:price.missing[0],\".\"]});// A price the doctor chose (DTC's \"מטופל ותיק\", 16.11.2026): its total for the period, beside the regular total it replaces.\nif(price.kind===\"price\"&&price.option)return /*#__PURE__*/_jsxs(\"div\",{className:\"mfq-price\",role:\"status\",children:[/*#__PURE__*/_jsxs(\"span\",{className:\"mfq-tag\",children:[\"מחיר \",price.option.label]}),/*#__PURE__*/_jsxs(\"span\",{children:[\"סה״כ ל\",price.months===1?\"חודש אחד\":price.months===2?\"חודשיים\":`-${price.months} חודשים`,\": \",/*#__PURE__*/_jsx(\"strong\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(price.total)})}),\" \",/*#__PURE__*/_jsx(\"span\",{className:\"mfq-was\",children:/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(price.option.regular)})})]}),/*#__PURE__*/_jsxs(\"small\",{children:[PRICE_NOTE,price.months>1?` אפשר לשלם עד ${price.months} תשלומים.`:\"\"]})]});const np=price.newPatientMonthly||0;const pay=(total,months)=>np&&total>np*months?total-np*months:total;// Dr Drai (the owner, 29.11.2026): his plan always carries the new-patient discount, so show only what a new Meno patient pays; the new/returning status is decided at his checkout, never here.\nif(np)return /*#__PURE__*/_jsxs(\"div\",{className:\"mfq-price\",role:\"status\",children:[price.kind===\"price\"?/*#__PURE__*/_jsxs(\"span\",{children:[\"מחיר למטופל: \",/*#__PURE__*/_jsx(\"strong\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(pay(price.total,price.months))})})]}):/*#__PURE__*/_jsxs(\"span\",{children:[\"מחיר למטופל: \",price.totals.map((entry,index)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[index?\" \\xb7 \":\"\",priceMonths(entry.months),\" \",/*#__PURE__*/_jsx(\"strong\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(pay(entry.total,entry.months))})})]},entry.months))]}),/*#__PURE__*/_jsx(\"small\",{children:PRICE_NOTE})]});return /*#__PURE__*/_jsxs(\"div\",{className:\"mfq-price\",role:\"status\",children:[/*#__PURE__*/_jsxs(\"span\",{children:[\"מחיר למטופל לחודש: \",/*#__PURE__*/_jsx(\"strong\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(price.monthly)})})]}),price.kind===\"price\"?/*#__PURE__*/_jsxs(\"span\",{children:[\"סה״כ ל\",price.months===1?\"חודש אחד\":price.months===2?\"חודשיים\":`-${price.months} חודשים`,\": \",/*#__PURE__*/_jsx(\"strong\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(price.total)})})]}):/*#__PURE__*/_jsxs(\"span\",{children:[\"סה״כ לפי משך הטיפול: \",price.totals.map((entry,index)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[index?\" \\xb7 \":\"\",priceMonths(entry.months),\" \",/*#__PURE__*/_jsx(\"strong\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(entry.total)})})]},entry.months))]}),/*#__PURE__*/_jsx(\"small\",{children:PRICE_NOTE})]});}const COPY={withSearch:{loading:\"טוענים את רשימת הטיפולים. אפשר בינתיים להשתמש בחיפוש בקטלוג.\",failed:\"רשימת הטיפולים לא נטענה. אפשר להמשיך בחיפוש הרגיל ולפתוח מחדש את מערכת המרשמים כדי לנסות שוב.\",missing:\"לא נמצאה התאמה מדויקת בקטלוג הנוכחי. אפשר לבדוק את המסננים ולחפש בקטלוג למטה. לא נבחר תכשיר חלופי.\",cancelled:\"הבחירה המהירה בוטלה. אפשר להמשיך בקטלוג.\",error:\"לא ניתן להשלים את הבחירה המהירה. אפשר להמשיך בקטלוג למטה.\"},listOnly:{loading:\"טוענים את רשימת הטיפולים…\",failed:\"רשימת הטיפולים לא נטענה. אפשר לפתוח מחדש את מערכת המרשמים כדי לנסות שוב.\",missing:\"לא נמצאה התאמה מדויקת בקטלוג הנוכחי, ולכן לא נבחר תכשיר. אפשר לבחור שוב.\",cancelled:\"הבחירה המהירה בוטלה. אפשר לבחור שוב.\",error:\"לא ניתן להשלים את הבחירה המהירה. אפשר לבחור שוב.\"}};/** Why a dose or a period is off while a price choice is on (DTC's \"מטופל ותיק\", 16.11.2026). */const optionWhy=option=>`מחיר ${option.label}: ${option.note||option.short}.`;const EMPTY_VIEW={family:\"\",picked:{},doses:{},period:\"\"};/** A choice's strengths as the card's chips name them (\"מינוקסידיל 7%\"), tretinoin only when it is in. */const choiceLines=(family,choice,keys)=>family.facets.filter(facet=>(keys?keys.includes(facet.key):facet.key in choice)&&(facet.key!==\"tretinoin\"||choice.tretinoin===\"with\")).map(facet=>facet.key===\"tretinoin\"?facet.label:facet.label+\" \"+(facet.options.find(option=>option.value===choice[facet.key])?.label??choice[facet.key]));/** The treatment as an invitation's drafts list names it (Shay's request, 11.11.2026): the card's words, then its strengths and period once chosen.\n * `entry`: the catalogue row that went into Formidable's list, which settles its part's composition. */function draftChoice(family,view,added,entry){const product=(family.parts||[family]).map(part=>{const listed=entry&&part.variants.find(variant=>variant.entries.some(option=>entryKey(option)===entryKey(entry)));if(listed)return productLabel(listed.product);const choices=view?.picked[part.id]||{};if(part.area===\"sexual\"){const first=part.variants[0]?.product,name=first?.brand?`${first.brand[0]}${first.brand.slice(1).toLowerCase()}`:first?.actives[0]?.name.split(\" \")[0]||\"Clomipramine\";return choices.strength?`${name} ${choices.strength} mg`:\"\";}// A card with formulas and no strengths to choose (the cream) has no composition until one of them is added.\nconst variant=part.facets.length||part.variants.length===1?chosenVariant(part,choices):null;return variant?productLabel(variant.product):\"\";}).filter(Boolean).join(\" \\xb7 \");const months=/^m(\\d+)$/.exec(view?.period||\"\");const amount=/^v(\\d+)$/.exec(view?.period||\"\");const period=family.periods.find(option=>option.key===view?.period)?.label||(family.area===\"sexual\"&&months?priceMonths(Number(months[1])):\"\")||(amount?`${amount[1]} מ״ל`:\"\");return{area:family.area,family:family.id,title:family.title,form:family.form,product,period,added};}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function FormidableQuickTreatments({app:form,inline=false,onAttached,catalog,signal,loading=false,areas,environment,patientArea,quickListOnly=false,config,pricing,renewal,onNote}){const app=form// Every use below runs only once it exists: the effect and choose() check, and the catalogue button is disabled.\n;const waiting=React.useRef(null);// The prescription type Meno keeps the form on: compounded, unless a press asked for a commercial medicine's \"מרשם רגיל\".\nconst wantedType=React.useRef(\"compounded\");// The test clinics (Formidable's sandbox: Test Clinic and Test2) see Formidable's whole \"סוג מרשם\" card, every type its test account offers\n// (the owner, 13.11.2026: \"open all the options for this 2 tests account\"). The form still opens on \"מרשם להכנה רוקחית\", and a type the\n// doctor picks there himself stays picked. A live clinic is unchanged.\nconst allTypes=React.useRef(false);allTypes.current=environment===\"sandbox\";// The doctor pressed a type himself, on the card on screen now: a real click or key, never one of Meno's own.\nconst ownType=React.useRef(false);// A renewal's next press runs from a callback made before Formidable's form existed: it reads the form here, never from that render.\nconst formNow=React.useRef(form);formNow.current=form;const copy=quickListOnly?COPY.listOnly:COPY.withSearch;const[slot,setSlot]=React.useState(null);const[chosenArea,setChosenArea]=React.useState(null);const[lastArea]=React.useState(readLastQuickArea);const[views,setViews]=React.useState({});// The views as a press left them: a quick option sets its card's view and presses in the same click, before React renders it.\nconst viewsRef=React.useRef(views);viewsRef.current=views;const[pending,setPending]=React.useState(\"\");const[pendingText,setPendingText]=React.useState(\"\");const[canCancel,setCanCancel]=React.useState(false);const[message,setMessage]=React.useState(\"\");const choice=React.useRef(null);// A treatment is being added: the form opens hidden behind this panel, which stays until Formidable's list takes its place.\nconst adding=React.useRef(false);const lookAgain=React.useRef(()=>{});const moveFocus=React.useRef(\"\");const id=React.useId();const areaKey=(environment===\"sandbox\"?QUICK_AREAS:areas||[\"hair\"]).join(\",\");const listed=React.useMemo(()=>rememberedQuickFamilies(catalog,areaKey.split(\",\")),[catalog,areaKey]);// Minoxidil capsules only as 100 to 400 capsules (the owner, 4.11.2026): a card that can't come to that isn't shown at all.\n// A clinic with its own short list sees only that (the owner, 6.11.2026: DTC Clinic).\n// A doctor's own leave-outs go too (menoDoctorPrescribing.ts; the owner, 15.11.2026: Dr Gross, no gels).\nconst hidden=React.useMemo(()=>hiddenQuickFamilies(config),[config]);// Cards this doctor chooses by amount instead of period (menoDoctorPrescribing.ts; the owner, 15.11.2026: Dr Gross's solution, 100 to 400 mL).\nconst byVolume=React.useMemo(()=>volumeQuickFamilies(config),[config]);// This doctor's quick options (menoDoctorPrescribing.ts; the owner, 15.11.2026: Dr Gross's four solutions): one press adds the whole treatment.\nconst quick=React.useMemo(()=>quickOptions(config),[config]);// \"הרכב אחר\": the strength rows behind a card's formulas, opened by the doctor.\nconst[otherStrengths,setOtherStrengths]=React.useState(false);// The quick option being added: the list stays and its tile says so (the owner, 15.11.2026: \"the automatic add was very luggy\").\nconst[quickBusy,setQuickBusy]=React.useState(\"\");React.useEffect(()=>{if(!pending)setQuickBusy(\"\");},[pending]);// The card's \"הפק מרשם\" on its way (16.11.2026): \"adding\" while its treatments go in, then Formidable's own button is pressed. One press at a time; a new form\n// (a new signal) starts afresh.\nconst[issuePhase,setIssuePhase]=React.useState(\"\");// A press before the card was complete: its line under the button says so in a firmer voice, until the choices change.\nconst[asked,setAsked]=React.useState(\"\");const issueRunning=React.useRef(false);// Every line Meno put into Formidable's list in this form, by name: how it was added (lineKey). Forgotten when the doctor removes it.\nconst addedLines=React.useRef(new Map);React.useEffect(()=>{issueRunning.current=false;setIssuePhase(\"\");},[signal]);// The shampoo beside one hair treatment (FormidableCompanion.tsx, 15.11.2026) is chosen on the card too, before its one press: the same choice, the same rule.\nconst offers=React.useMemo(()=>offeredCompanions(pricing?.hair),[pricing?.hair]);// Dr Gross's pharmacy-made shampoo (16.11.2026): the clinic's offer, and Formidable's own product in the catalogue this panel holds (exactly its code and name).\nconst shampooOffer=offers.find(offer=>offer.kind===\"compounded\"&&(environment===\"sandbox\"||offer.live))??null;const shampooEntry=React.useMemo(()=>shampooOffer?catalog.items.find(entry=>entry.medicationId.system===shampooOffer.system&&entry.medicationId.value===shampooOffer.value&&entry.name===shampooOffer.name)??null:null,[catalog,shampooOffer?.system,shampooOffer?.value,shampooOffer?.name]);// For the list's watcher, which outlives this render.\nconst shampooName=React.useRef(\"\");shampooName.current=shampooEntry?.name.trim()||\"\";const shampooChoice=()=>{const chosen=companionChoice();return shampooOffer&&chosen?.kind===\"compounded\"&&chosen.key===shampooOffer.key?chosen:null;};const markShampoo=(frequency=SHAMPOO_TIMES)=>{if(shampooOffer)setCompanionChoice({key:shampooOffer.key,frequency,kind:\"compounded\",product:{system:shampooOffer.system,value:shampooOffer.value}});};// The one refusal of the shampoo's tile (anything but one hair treatment in the list already), under the tiles: the panel's own message line is at its end.\nconst[shampooNote,setShampooNote]=React.useState(\"\");const[regularType,setRegularType]=React.useState(false);const[,setCompanionTick]=React.useState(0);React.useEffect(()=>onCompanionChoice(()=>setCompanionTick(tick=>tick+1)),[]);// A card only a clinic's own short list may name (listedOnly; the owner, 16.11.2026: DTC's dutasteride solution) is left out everywhere else, and isn't counted\n// as hidden by the capsule rule in the note under the list.\nconst treatments=React.useMemo(()=>listed.flatMap(family=>familyForClinic(family,pricing?.hair?.recipes)??[]).filter(family=>familyOffered(family,pricing?.hair)&&!hidden.includes(family.id)).flatMap(family=>familyWithPlan(family,pricing?.hair?.sexual_plan)??[]),[listed,pricing?.hair,hidden]);// What the doctor begins to choose, kept on an invitation draft so its list can say it (Shay's request, 11.11.2026). Only the doctor's own\n// presses count, per tab: opening a tab, a card that opens by itself or a renewal's preset card is not a choice until a press in it.\n// Every hair treatment's products by name, to tell what Formidable's list holds (as FormidableCompanion.tsx does).\nconst hairNames=React.useMemo(()=>new Set(treatments.filter(family=>family.area===\"hair\").flatMap(family=>[family,...family.parts||[]]).flatMap(family=>family.variants.flatMap(variant=>variant.entries.map(entry=>entry.name.trim())))),[treatments]);const noteChoice=useDraftChoiceRecorder(config,pricing?.inviteId);const choosing=React.useRef(new Set);const refusedRow=React.useRef(()=>false);refusedRow.current=React.useMemo(()=>capsuleRowRefusal(catalog.items),[catalog]);const tabs=QUICK_AREAS.filter(tab=>treatments.some(t=>t.area===tab));// A renewal (the owner, 10.11.2026): last time's medicines, against what this clinic is offered today. Each opens on its card with last time's chips;\n// one the list has exactly, priced, is pressed once, as the doctor would press it. Anything else waits for the doctor, with the reason in words.\nconst steps=React.useMemo(()=>renewal&&catalog.status===\"ready\"?renewalSteps(renewal,treatments,pricing):null,[renewal,catalog.status,treatments,pricing]);const renewing=React.useRef(false);const[renewalNote,setRenewalNote]=React.useState(\"\");// Formidable can keep the same catalogue after \"הוסף תרופה נוספת\", so the panel's slot doesn't change: this tick runs the waiting press then.\nconst[renewTick,setRenewTick]=React.useState(0);// The price the doctor chose for the add about to happen (DTC's \"מטופל ותיק\", 16.11.2026): set by the card's own press or a renewal's, and taken by choose(),\n// so every other add (a quick tile, another card, the next medicine of a renewal) clears it.\nconst nextOption=React.useRef(null);function openStep(step){const family=step.family;if(!family)return;setChosenArea(family.area);setViews(all=>({...all,[family.area]:step.view??{family:family.id,picked:{[family.id]:step.choice},doses:step.doseKey?{[family.id]:step.doseKey}:{},period:step.periodKey,...step.priceOption?{options:{[family.id]:step.priceOption}}:{}}}));}function renewStep(list,index){const step=list[index];if(!step||!renewal)return;openStep(step);if(!step.ready||!step.entry||!step.fill){setRenewalNote(renewalWords(renewal,step));return;}setRenewalNote(\"\");const after=outcome=>{if(outcome!==\"added\"||signal.aborted)return;if(index+1<list.length)void renewNext(list,index+1);else void addShampooNext(fillMonths(step.fill));};if(index===0){nextOption.current=renewalOption(step);void choose(step.entry,step.fill,after);return;}// The next one on the same prescription: pressed once Formidable's catalogue is back after \"הוסף תרופה נוספת\".\nwaiting.current={entry:step.entry,fill:step.fill,after};setPending(step.entry.name);setPendingText(\"מוסיפים למרשם…\");setCanCancel(false);}// A renewal of a prescription with a price choice (DTC's \"מטופל ותיק\", 16.11.2026) keeps it, as it keeps last time's strengths and months, while the card still offers\n// it for that choice; otherwise it opens on a new patient's price.\nfunction renewalOption(step){if(!step.priceOption||!step.family||!step.entry)return null;const option=cardPriceOptions(step.family,pricing).find(candidate=>candidate.key===step.priceOption);const priced=option?optionPrice(step.family,option,step.choice,step.doseKey,step.family.periods.find(period=>period.key===step.periodKey),pricing):null;return priced?.kind===\"price\"&&priced.option?{key:priced.option.key,label:priced.option.label,id:entryKey(step.entry),name:step.entry.name}:null;}async function renewNext(list,index){const step=list[index];if(!renewal||!step)return;openStep(step);if(!step.ready){setRenewalNote(renewalWords(renewal,step));return;}renewStep(list,index);if(formNow.current&&await pressAddAnother(formNow.current,signal)){// Its catalogue is back: the waiting press goes in now (or with the new slot, whichever comes first; it runs once).\nfor(const started=Date.now();Date.now()-started<4e3&&!signal.aborted;await new Promise(resolve=>window.setTimeout(resolve,50)))if(formNow.current&&sdkCatalogControls(formNow.current)){setRenewTick(tick=>tick+1);return;}}// Formidable didn't show its button or its catalogue: the doctor adds it, and the card is ready.\nwaiting.current=null;setPending(\"\");setPendingText(\"\");setRenewalNote(`${renewalWords(renewal,{...step,reason:\"\"})} כדי להוסיף אותו: \"הוסף תרופה נוספת\" ב-Formidable, ואז לחיצה על התכשיר.`);}React.useEffect(()=>{if(!steps||renewing.current)return;// The shampoo last time had (16.11.2026), marked again once per draft with last time's frequency (twice a week if it had none), so it goes in after the\n// treatment (or with the card's press).\nconst last=shampooOffer&&!renewalCarried(renewal?.key)?renewalCompanions(renewal).find(companion=>companion.key===shampooOffer.key):undefined;// Last time's prescription was the shampoo alone (17.11.2026), where the clinic gives it alone: it goes in by itself, as a renewal's treatment does, with last\n// time's frequency and months, its card on screen. Once per draft, as the shampoo beside a treatment is ticked.\nif(!steps.length){if(!last||!shampooOffer?.alone||!shampooEntry)return;renewing.current=true;markRenewalCarried(renewal?.key);const days=renewal?.validDays||0,months=days%30===0&&days>=30&&days<=360?days/30:SHAMPOO_ALONE_MONTHS;setChosenArea(\"hair\");setViews(all=>({...all,hair:{...EMPTY_VIEW,family:SHAMPOO_CARD}}));void choose(shampooEntry,shampooFill(last.frequency!==null&&shampooOffer.frequencies.includes(last.frequency)?last.frequency:SHAMPOO_TIMES,months));return;}renewing.current=true;if(last&&shampooOffer){markRenewalCarried(renewal?.key);markShampoo(last.frequency!==null&&shampooOffer.frequencies.includes(last.frequency)?last.frequency:undefined);}renewStep(steps,0);},[steps]);const area=chosenArea&&tabs.includes(chosenArea)?chosenArea:initialQuickArea(tabs,patientArea,lastArea);const view=views[area]||EMPTY_VIEW;const inArea=treatments.filter(t=>t.area===area);// The shampoo's own card (17.11.2026): one more in the hair list where the clinic gives it alone, and open when the doctor chose it.\nconst shampooCard=area===\"hair\"&&!!shampooOffer?.alone;const shampooOpen=shampooCard&&view.family===SHAMPOO_CARD;// An area with a single treatment has no list to choose from, so its tab opens straight on it.\nconst current=shampooOpen?undefined:inArea.length===1&&!shampooCard?inArea[0]:inArea.find(t=>t.id===view.family);// The quick options of this tab, each resolved to the product its press adds now: the pack the card counts in (100 מ״ל), and a tile stays dimmed\n// while the catalogue lacks its product.\nconst quickTiles=quick?quick.options.flatMap(option=>{if(isQuickCompanion(option)||option.tile===false)return[];const family=inArea.find(t=>t.id===option.family);if(!family)return[];const entries=chosenVariant(family,option.choice)?.entries||[];const entry=entries.find(e=>e.packageSize?.value===String(family.pack?.size))||entries[0]||null;const period=byVolume.includes(family.id)?volumePeriods(family,option.dose).find(v=>v.key===option.amount&&v.months>0):family.periods.find(p=>p.key===option.amount);const fill=entry&&period?formFill(family,option.dose,period,entry):null;return[{option,family,entry,fill:fillComplete(fill)?fill:null,period,price:quickPrice(family,option.choice,option.dose,period,pricing),lines:choiceLines(family,option.choice)}];}):[];// The shampoo's tile (16.11.2026), in the hair tab of a doctor whose quick options name it, where the clinic offers it.\nconst shampooTileAt=quick&&shampooOffer&&area===\"hair\"?quick.options.filter(option=>isQuickCompanion(option)||option.tile!==false).findIndex(option=>isQuickCompanion(option)&&option.companion===shampooOffer.key):-1;// The combination's price is the server's quote, not two plans added up.\nconst comboPeriod=current?.parts?current.periods.find(p=>p.key===view.period):undefined;const comboDoses=current?.parts?.map(part=>part.doses.length===1?part.doses[0].key:view.doses[part.id])??[];const comboStrength=current?.parts?view.picked[\"hair-minoxidil-capsules\"]?.minoxidil:undefined;const comboItems=React.useMemo(()=>current?.parts&&pricing?.hair?.applicable===true?combinationItems(comboDoses[0],comboDoses[1],comboStrength,comboPeriod,pricing.hair):null,[current?.parts,comboDoses[0],comboDoses[1],comboStrength,comboPeriod?.key,pricing?.hair]);const comboQuote=useAddonQuote(config??{supabaseUrl:\"\",supabaseAnonKey:\"\"},pricing?.prescriptionId??\"\",pricing?.inviteId??\"\",comboItems??[],!!comboItems&&!!config,NO_QUOTE_RESULT);const changeView=change=>{choosing.current.add(area);setViews(all=>({...all,[area]:{...all[area]||EMPTY_VIEW,...change(all[area]||EMPTY_VIEW)}}));};React.useEffect(()=>{if(current&&choosing.current.has(current.area))noteChoice(draftChoice(current,view,false));},[current,view,noteChoice]);// The card an added row belongs to: the one on screen when it has the row, otherwise the first that does (a renewal's next press).\nconst familyOf=entry=>[...current?[current]:[],...treatments].find(family=>(family.parts||[family]).some(part=>part.variants.some(variant=>variant.entries.some(option=>entryKey(option)===entryKey(entry)))));const openFamily=family=>{if(family)choosing.current.add(area);// The pressed control leaves the screen, so focus moves to whatever replaces it.\nmoveFocus.current=family?\".mfq-family .mfq-link\":`[data-family=\"${view.family}\"]`;setViews(all=>({...all,[area]:{...EMPTY_VIEW,family}}));setMessage(\"\");};// A quick option (the owner, 15.11.2026, Dr Gross: \"when he presses a quick option it will immediately offer him to הנפק מרשם\"): its card opens with every\n// choice made, and the card's own press adds it, so Formidable's list and \"הפק מרשם\" come next. If the add fails, the card is there with its message.\nconst pressQuick=tile=>{if(!tile.entry||!tile.fill||pending||issueRunning.current)return;// The shampoo marked to go with it (16.11.2026): the treatment goes in, and the shampoo right after it.\nconst shampoo=shampooChoice();const next={family:tile.family.id,picked:{...view.picked,[tile.family.id]:{...tile.option.choice}},doses:{...view.doses,[tile.family.id]:tile.option.dose},period:tile.option.amount};choosing.current.add(area);setOtherStrengths(false);setMessage(\"\");setShampooNote(\"\");// The list stays while it goes in: the pressed tile says so. If it doesn't go in, its card opens with every choice made and the reason.\nconst listed={...next,family:\"\"};viewsRef.current={...viewsRef.current,[area]:listed};setViews(all=>({...all,[area]:listed}));setQuickBusy(tile.lines.join(\"|\"));noteTreatmentPrice(tile.price?.kind===\"price\"?{name:tile.entry.name,total:tile.price.total,form:quick?.form||tile.family.form}:null);const failed=()=>{noteTreatmentPrice(null);moveFocus.current=\".mfq-family .mfq-link\";setViews(all=>({...all,[area]:next}));};if(shampoo&&shampooEntry){pressCard([{entry:tile.entry,fill:tile.fill},{entry:shampooEntry,fill:shampooFill(shampoo.frequency||SHAMPOO_TIMES,fillMonths(tile.fill)),companion:true}],true,null,added=>{setQuickBusy(\"\");if(added===0)failed();});return;}void choose(tile.entry,tile.fill,outcome=>{setQuickBusy(\"\");if(outcome!==\"added\")failed();});};const selectArea=next=>{if(next!==area){setChosenArea(next);saveLastQuickArea(next);setMessage(\"\");}};// Right to left: the next tab is the one on the left.\nconst tabKeys=event=>{const index=tabs.indexOf(area),last=tabs.length-1;const next={ArrowLeft:index===last?0:index+1,ArrowRight:index===0?last:index-1,Home:0,End:last}[event.key];if(next===undefined)return;event.preventDefault();selectArea(tabs[next]);event.currentTarget.ownerDocument.getElementById(`${id}-tab-${tabs[next]}`)?.focus();};React.useEffect(()=>{if(moveFocus.current)slot?.querySelector(moveFocus.current)?.focus({preventScroll:true});moveFocus.current=\"\";});// A layout effect: the wait for the next frame is part of what the doctor would see.\nReact.useLayoutEffect(()=>{if(!form)return;let host=null,lastInput=null;let attempted=null,attempts=0,frame=null,timer=0,stopped=false;// The test clinics: the frame's document that hears the doctor's own presses on a type, and the card (its heading) they were made on.\nlet typeDoc=null,typeCard=null;const ownPress=event=>{if(!allTypes.current||!event.isTrusted)return;const type=prescriptionTypeControls(app);if(type&&type.buttons.some(button=>button.contains(event.target)))ownType.current=true;};// The rows go in the observer's own callback, before the browser paints them. A style or data attribute doesn't wake it again.\nconst tree=new MutationObserver(schedule),content=new MutationObserver(()=>{hideRefusedCapsuleRows(app,refusedRow.current);schedule();});const remove=()=>{choice.current?.abort();choice.current=null;host?.remove();host=null;lastInput=null;setSlot(null);setPending(\"\");setMessage(\"\");};function schedule(){if(!stopped&&!timer&&!document.hidden)timer=window.setTimeout(inspect,0);}function observe(){if(stopped)return;tree.observe(app,{childList:true,subtree:true});try{if(frame?.contentDocument?.body)content.observe(frame.contentDocument,{childList:true,subtree:true,characterData:true,attributes:true,attributeFilter:[\"aria-checked\",\"data-state\",\"disabled\",\"class\"]});}catch{}}function inspect(){timer=0;if(stopped||signal.aborted||!app.isConnected){stop();return;}// Disconnect before owned writes/clicks; React's later native updates\n// are observed after reconnection. No recurring polling or feedback loop.\ntree.disconnect();content.disconnect();try{const next=app.querySelector(\"iframe\");if(next!==frame){frame?.removeEventListener(\"load\",schedule);frame=next;frame?.addEventListener(\"load\",schedule);}if(document.hidden)return;const type=prescriptionTypeControls(app);setRegularType(!!type?.regular);if(type&&type.doc!==typeDoc){typeDoc?.removeEventListener(\"click\",ownPress,true);typeDoc=type.doc;typeDoc.addEventListener(\"click\",ownPress,true);}// A new card is a new prescription: it opens on compounded again.\nif(type&&type.heading!==typeCard){typeCard=type.heading;ownType.current=false;}// Compounded is the default and the only type shown: Meno always opens a new\n// prescription, so another selection is the SDK's own preselection (\"מרשם רגיל\"\n// when a doctor's profile enables it), never a choice the doctor could make.\n// Meno's own exception: a press on a commercial medicine (the owner, 11.11.2026: Viagra and Cialis at Dr Drai) asks for \"מרשם רגיל\".\nlet refused=false;if(wantedType.current===\"regular\"&&type&&!type.regular){wantedType.current=\"compounded\";if(waiting.current&&prescriptionKind(waiting.current.entry)===\"regular\"){const dropped=waiting.current;waiting.current=null;refused=true;window.setTimeout(()=>dropped.after?.(\"cancelled\"),0);}}const wanted=type?wantedType.current===\"regular\"?type.regular:type.compounded:null;const onCompounded=!!type&&!!wanted&&type.selected.length===1&&type.selected[0]===wanted;// In the test clinics a type the doctor picked himself stays: Meno switches only Formidable's own preselection, and for its own presses.\nif(onCompounded||!type||!wanted||allTypes.current&&ownType.current){attempted=null;attempts=0;}else if(!wanted.disabled&&(attempted!==wanted||attempts<3)){if(attempted!==wanted)attempts=0;attempted=wanted;attempts++;wanted.click();// A newly mounted SDK can reset its initial type in a passive\n// React effect. Give that commit one frame, with at most three\n// attempts; subsequent changes are event-driven.\ntimer=window.setTimeout(inspect,16);}// If the SDK will not take the type, show its full card unchanged.\n// The test clinics always see it whole.\nshowCompoundedTypeOnly(app,!allTypes.current&&(onCompounded||timer!==0),wantedType.current);hideRefusedCapsuleRows(app,refusedRow.current);// The treatments sit on the search of the type Meno asked for, never on another type's for a moment.\n// Formidable's regular list keeps its own search open after a medicine goes in, where the compounded catalogue closes: the treatments\n// step aside there too, so the medicine just added is what the doctor sees. They come back if it is removed.\n// A line Meno added and the doctor removed is forgotten, so the same product added again another way is never taken for Meno's.\nif(addedLines.current.size){const names=listedMedicines(app);for(const name of[...addedLines.current.keys()])if(!names.includes(name)){addedLines.current.delete(name);if(name===shampooName.current&&companionChoice()?.kind===\"compounded\")setCompanionChoice(null);}}const found=sdkCatalogControls(app),controls=found&&found.kind===wantedType.current&&!(found.kind===\"regular\"&&!adding.current&&prescriptionMedicineCount(app)>0)?found:null;if(refused){setPending(\"\");setPendingText(\"\");setMessage(NO_REGULAR);}if(host&&(!host.isConnected||!controls||controls.input!==lastInput)&&!(adding.current&&host.isConnected))remove();if(controls&&!host){host=controls.doc.createElement(\"section\");host.dataset.menoFormidableQuick=\"\";host.dir=\"rtl\";controls.catalog.before(host);lastInput=controls.input;setSlot(host);}}finally{observe();}}function stop(){if(stopped)return;stopped=true;window.clearTimeout(timer);tree.disconnect();content.disconnect();frame?.removeEventListener(\"load\",schedule);document.removeEventListener(\"visibilitychange\",schedule);typeDoc?.removeEventListener(\"click\",ownPress,true);typeDoc=null;signal.removeEventListener(\"abort\",stop);remove();}signal.addEventListener(\"abort\",stop,{once:true});document.addEventListener(\"visibilitychange\",schedule);lookAgain.current=schedule;inspect();return stop;},[app,signal]);// In the same paint as the frame, so the treatments never leave the screen on their way in.\nconst attached=React.useRef(onAttached);attached.current=onAttached;React.useLayoutEffect(()=>{if(slot)attached.current?.();},[slot]);React.useEffect(()=>{const press=waiting.current;if(!slot||!press)return;waiting.current=null;setPending(\"\");setPendingText(\"\");nextOption.current=press.option??null;void choose(press.entry,press.fill,press.after);},[slot,renewTick]);async function choose(entry,fill,after){// The price the doctor chose goes with this add only (DTC's \"מטופל ותיק\", 16.11.2026): kept with a press that waits for Formidable, noted when it goes in.\nconst carried=nextOption.current;nextOption.current=null;if(!form||!slot){// Formidable is still connecting: this press is done when it is ready.\nif(!waiting.current){waiting.current={entry,fill,after,option:carried};setPending(entry.name);setPendingText(fillComplete(fill)?\"מוסיפים למרשם…\":\"פותחים את התכשיר ב-Formidable…\");setCanCancel(false);setMessage(\"\");}return;}if(choice.current||adding.current||signal.aborted){if(!signal.aborted)after?.(\"cancelled\");return;}// A commercial medicine goes in \"מרשם רגיל\", a compounded one in \"מרשם להכנה רוקחית\" (the owner, 11.11.2026). The type follows the press, and the press\n// waits for that type's search. Formidable keeps a prescription's type once it holds a medicine, so the two are never mixed.\nconst kind=prescriptionKind(entry);if(kind!==wantedType.current){if(prescriptionMedicineCount(app)>0){setMessage(MIXED_TYPES);after?.(\"cancelled\");return;}wantedType.current=kind;ownType.current=false;waiting.current={entry,fill,after,option:carried};setPending(entry.name);setPendingText(kind===\"regular\"?\"עוברים למרשם רגיל ב-Formidable…\":\"עוברים למרשם להכנה רוקחית ב-Formidable…\");setCanCancel(false);setMessage(\"\");lookAgain.current();return;}const controller=new AbortController;choice.current=controller;setPending(entry.name);setCanCancel(true);setMessage(\"\");// The press sends it only for this product (FormidablePrescribing.tsx): every other add notes none.\nnotePressPriceOption(carried&&carried.id===entryKey(entry)?carried:null);if(fillComplete(fill)){adding.current=true;setPendingText(\"מוסיפים למרשם…\");let result=\"failed\";try{const outcome=await addMedicationToPrescription(app,entry,fill,AbortSignal.any([signal,controller.signal]),signal,()=>{if(choice.current===controller)choice.current=null;setCanCancel(false);});result=outcome;if(outcome===\"added\"){const family=familyOf(entry);if(family)noteChoice(draftChoice(family,viewsRef.current[family.area],true,entry));addedLines.current.set(entry.name.trim(),lineKey(fill,carried&&carried.id===entryKey(entry)?carried.key:null));}if(signal.aborted)return;if(outcome===\"missing\")setMessage(copy.missing);else if(outcome===\"cancelled\")setMessage(copy.cancelled);else if(outcome===\"failed\")setMessage(copy.error);}catch{if(!signal.aborted)setMessage(copy.error);}finally{adding.current=false;if(choice.current===controller)choice.current=null;setPending(\"\");setPendingText(\"\");lookAgain.current();}// The doctor's own press settles what a renewal's note asked for; a renewal's chain says its own next words.\nif(!signal.aborted){if(after)after(result);else if(result===\"added\")setRenewalNote(\"\");}return;}setPendingText(\"פותחים את התכשיר ב-Formidable…\");try{const outcome=await chooseCatalogPreparation(app,entry,AbortSignal.any([signal,controller.signal]));if(choice.current!==controller||signal.aborted)return;if(outcome===\"missing\")setMessage(copy.missing);else if(outcome===\"cancelled\")setMessage(copy.cancelled);else{// The form is opening and this panel steps aside for it, which must not cancel what comes next.\nchoice.current=null;setPending(\"\");await (fill?fillMedicationForm(app,entry,fill,signal):revealMedicationForm(app,entry,signal));}}catch{if(!signal.aborted)setMessage(copy.error);}finally{if(choice.current===controller){choice.current=null;setPending(\"\");}}}// Formidable's \"הפק מרשם\", pressed once after the card's treatments went in, as the doctor would press it. Everything after is as for his own press. Never twice: a\n// box or question already open means it was pressed; a press that opened nothing leaves him a line under the form, and the button is his.\nasync function pressFormidableIssue(kind,companion,afterAdd){try{for(const started=Date.now();Date.now()-started<5e3;await new Promise(resolve=>window.setTimeout(resolve,25))){if(signal.aborted)return;const current=formNow.current,state=current?issueButtonState(current):\"wait\";if(state===\"dialog\")return;// Right after an add the panel leaves Formidable's frame a moment later; until then the shampoo's box can't see the list as it is.\nif(!current||state!==\"ready\"||afterAdd&&formRoot(current)?.querySelector(\"[data-meno-formidable-quick]\"))continue;// The shampoo chosen on the card goes with this press, also if the box above \"הפק מרשם\" let it go while the list changed under it.\nif(companion&&JSON.stringify(companionChoice())!==JSON.stringify(companion))setCompanionChoice(companion);if(await pressFormidableOwn(current,kind===\"regular\"?2e4:5e3)===\"nothing\"&&!signal.aborted)onNote?.(ISSUE_BY_HAND);return;}if(!signal.aborted)onNote?.(ISSUE_BY_HAND);}finally{issueRunning.current=false;setIssuePhase(\"\");}}// The card's treatments into Formidable's list, one after the other (a combination's second through Formidable's own \"הוסף תרופה נוספת\", as a renewal adds it),\n// each as the tile's press added it; one already in the list isn't added again. Then Formidable's \"הפק מרשם\", unless the doctor asked only to add.\n/** `onEnd` (16.11.2026, the shampoo with a tile): how many of the steps went in, -1 when the press didn't start. */function pressCard(steps,addOnly,companion,onEnd){if(issueRunning.current||pending||choice.current||adding.current||!steps.length||signal.aborted){onEnd?.(-1);return;}const current=formNow.current,kind=prescriptionKind(steps[0].entry);// Formidable keeps a prescription's type once it holds a medicine: said before anything starts.\nif(current&&kind!==wantedType.current&&prescriptionMedicineCount(current)>0){setMessage(MIXED_TYPES);onEnd?.(-1);return;}const listed=current?listedMedicines(current):[];// A product already in the list goes as it is only when Meno added it exactly as the card says now; otherwise the doctor removes it first (review 2).\nif(steps.some(step=>listed.includes(step.entry.name.trim())&&addedLines.current.get(step.entry.name.trim())!==lineKey(step.fill,step.option?.key??null))){setMessage(LISTED_OTHERWISE);onEnd?.(-1);return;}notePressFee(steps.find(step=>step.fee)?.fee??null)// <rx-fee> this press's choice; FormidablePrescribing.tsx sends it\n;const todo=steps.filter(step=>!listed.includes(step.entry.name.trim()));issueRunning.current=true;setIssuePhase(\"adding\");setMessage(\"\");onNote?.(\"\");const stop=()=>{issueRunning.current=false;setIssuePhase(\"\");};const finish=()=>{if(!addOnly){void pressFormidableIssue(kind,companion,todo.length>0).finally(()=>onEnd?.(todo.length));return;}stop();onEnd?.(todo.length);// The shampoo's box let go of the card's tick while Meno's panel was still in Formidable's frame: given back once the panel has gone (review 5).\nif(companion)void(async()=>{for(const started=Date.now();Date.now()-started<2e3&&!signal.aborted;await new Promise(resolve=>window.setTimeout(resolve,50))){const root=formNow.current?formRoot(formNow.current):null;if(root&&!root.querySelector(\"[data-meno-formidable-quick]\")){if(JSON.stringify(companionChoice())!==JSON.stringify(companion))setCompanionChoice(companion);return;}}})();};if(!todo.length){finish();return;}const run=index=>{const step=todo[index];noteTreatmentPrice(steps.length===1?step.price??null:null);const after=outcome=>{if(outcome!==\"added\"||signal.aborted){if(outcome!==\"added\")noteTreatmentPrice(null);stop();onEnd?.(index);return;}if(index+1<todo.length)void another(index+1);else finish();};if(index===0){nextOption.current=step.option??null;void choose(step.entry,step.fill,after);return;}waiting.current={entry:step.entry,fill:step.fill,after,option:step.option??null};setPending(step.entry.name);setPendingText(\"מוסיפים למרשם…\");setCanCancel(false);};const another=async index=>{run(index);if(formNow.current&&await pressAddAnother(formNow.current,signal)){// Its catalogue is back: the waiting press goes in now (or with the new slot, whichever comes first; it runs once).\nfor(const started=Date.now();Date.now()-started<4e3&&!signal.aborted;await new Promise(resolve=>window.setTimeout(resolve,50)))if(formNow.current&&sdkCatalogControls(formNow.current)){setRenewTick(tick=>tick+1);return;}}waiting.current=null;setPending(\"\");setPendingText(\"\");stop();onEnd?.(index);if(!signal.aborted)onNote?.(todo[index].companion?SHAMPOO_BY_HAND:COMBO_BY_HAND);};run(0);}/** What Formidable's list holds now, by name, and its hair treatments among them. */const listedHair=()=>{const names=formNow.current?listedMedicines(formNow.current):[];return{names,hair:names.filter(name=>hairNames.has(name))};};/** The months a line went in with, when Meno added it (its lineKey); undefined for a line added another way. */const addedMonths=name=>{try{const key=JSON.parse(addedLines.current.get(name)||\"null\");return Array.isArray(key)&&key[5]===\"mo\"&&Number.isInteger(key[4])&&key[4]>0?key[4]:undefined;}catch{return undefined;}};/** The shampoo beside the one hair treatment already in the list (the panel is back after \"הוסף תרופה נוספת\"): it goes in now, as a tile's press adds. */const addShampooNow=()=>{const chosen=shampooChoice(),{names,hair}=listedHair();if(!shampooEntry||pending||issueRunning.current||names.length!==1||hair.length!==1)return;setMessage(\"\");void choose(shampooEntry,shampooFill(chosen?.frequency||SHAMPOO_TIMES,addedMonths(hair[0])));};/** The shampoo's tile: pressed, it is marked to go in with the treatment pressed next, or, beside the one hair treatment already in the list, it goes in now;\n     * pressed again, the mark goes. Never alone, and nothing to choose. */const pressShampoo=()=>{setMessage(\"\");setShampooNote(\"\");if(shampooChoice()){setCompanionChoice(null);return;}const{names,hair}=listedHair();if(names.length&&!(names.length===1&&hair.length===1)){setShampooNote(SHAMPOO_NOT_BESIDE);return;}markShampoo();if(names.length)addShampooNow();};/** After a renewal's treatment went in by itself: last time's shampoo as the next line of the same prescription (as a renewal's combination adds its second). */async function addShampooNext(months){const chosen=shampooChoice(),current=formNow.current;if(!chosen||!shampooEntry||!current||signal.aborted)return;const{names,hair}=listedHair();if(names.includes(shampooEntry.name.trim())||names.length!==1||hair.length!==1)return;waiting.current={entry:shampooEntry,fill:shampooFill(chosen.frequency||SHAMPOO_TIMES,months)};setPending(shampooEntry.name);setPendingText(\"מוסיפים למרשם…\");setCanCancel(false);if(await pressAddAnother(current,signal)){for(const started=Date.now();Date.now()-started<4e3&&!signal.aborted;await new Promise(resolve=>window.setTimeout(resolve,50)))if(formNow.current&&sdkCatalogControls(formNow.current)){setRenewTick(tick=>tick+1);return;}}waiting.current=null;setPending(\"\");setPendingText(\"\");if(!signal.aborted)onNote?.(SHAMPOO_BY_HAND);}// A row the doctor still has to choose: into view, its first control focused (never \"הפק מרשם\" itself: Enter would issue), and a moment's mark.\nfunction focusRow(targets){const scope=slot??document.querySelector(\"[data-mf-early]\");const row=targets.map(target=>scope?.querySelector(target)).find(Boolean);if(!row)return;const still=typeof window.matchMedia===\"function\"&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;row.scrollIntoView({block:\"center\",behavior:still?\"auto\":\"smooth\"});row.querySelector(\"button:not(:disabled),input:not(:disabled),select:not(:disabled)\")?.focus({preventScroll:true});row.setAttribute(\"data-need\",\"\");window.setTimeout(()=>row.removeAttribute(\"data-need\"),1800);}const chips=(label,options)=>/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-facet\",role:\"group\",\"aria-label\":label,children:[/*#__PURE__*/_jsx(\"span\",{children:label}),/*#__PURE__*/_jsx(\"div\",{className:\"mfq-chips\",children:options.map(option=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:option.disabled?\"mfq-chip mfq-off\":\"mfq-chip\",disabled:!!pending||option.disabled,\"aria-pressed\":option.pressed,title:option.disabled?option.why||NOT_IN_CATALOG:undefined,onClick:option.onPick,children:/*#__PURE__*/_jsx(\"bdi\",{children:option.label})},option.value))})]});// The dose and the period together must come to an allowed amount of capsules: whichever is chosen first dims what would pass it.\nconst capsulePeriodRefused=period=>(current?.parts||(current?[current]:[])).some(item=>{const dose=item.pack?.unit===\"capsule\"?item.doses.length===1?item.doses[0]:item.doses.find(d=>d.key===view.doses[item.id]):undefined;return!!dose&&!capsuleAmountAllowed(dose,period.months);});// A price the doctor chose (DTC's \"מטופל ותיק\", 16.11.2026) fits only its periods: the others are off, with why.\nconst periodChips=(periods,option)=>periods.length?chips(\"תקופה\",periods.map(period=>{const offOption=!!option&&!option.fits.some(fit=>fit.period===period.key);return{value:period.key,label:period.label,pressed:view.period===period.key,disabled:offOption||capsulePeriodRefused(period),why:option&&offOption?optionWhy(option):CAPSULE_RULE,onPick:()=>changeView(before=>({period:before.period===period.key?\"\":period.key}))};})):null;// The amount instead of the period (the owner, 15.11.2026: Dr Gross's solution). Whichever of dose and amount is chosen first dims what can't go with it.\nconst volumeChips=(item,volumes,volume,dose)=>{const fits=option=>item.doses.filter(other=>volumePeriods(item,other.key).some(v=>v.key===option.key&&v.months>0)).map(other=>other.label);return /*#__PURE__*/_jsxs(_Fragment,{children:[chips(\"כמות\",volumes.map(option=>({value:option.key,label:option.label,pressed:volume?.key===option.key,disabled:!!dose&&!option.months,why:`${option.label} מתאימים רק ל-${fits(option).join(\" או \")} ביום.`,onPick:()=>changeView(before=>({period:before.period===option.key||volume?.key===option.key?\"\":option.key}))}))),volume&&volume.months>0&&dose?/*#__PURE__*/_jsx(\"p\",{className:\"mfq-note\",children:`${volume.label} במינון של ${dose.label} ביום: תוקף המרשם ${priceMonths(volume.months)}.`}):null]});};const fillText=fill=>fill?.quantity?`כמות לניפוק: ${quantityLabel(fill.quantity)}`:\"\";// The existing, exactly matched recipes remain the source of truth. These controls group them;\n// they never introduce a strength, pack or price that wasn't on the list. Usage is chosen by the doctor here.\nconst sexualPart=item=>{const choices=view.picked[item.id]||{};// A card counted in tablets (Viagra, Cialis): its own amounts a month, and Formidable counts tablets. Otherwise capsules, one package a month.\nconst counted=!!item.perMonth,pill=counted?{one:\"טבליה\",many:\"טבליות\"}:{one:\"כמוסה\",many:\"כמוסות\"};const mainActive=item.variants[0]?.product.actives[0]?.name||\"\",pack=item.variants[0]?.product.tablets;const available=item.variants.filter(variant=>variant.entries.length>0&&sexualStrength(variant)!==undefined&&!!sexualPack(variant));const strengths=[...new Set(available.map(variant=>sexualStrength(variant)))].sort((a,b)=>a-b);const strength=strengths.find(value=>String(value)===choices.strength);const forStrength=available.filter(variant=>sexualStrength(variant)===strength);const counts=counted?forStrength.length?[...item.perMonth]:[]:[...new Set(forStrength.map(variant=>variant.product.capsules))].sort((a,b)=>a-b);const capsules=counts.find(value=>String(value)===choices.capsules);const initialPrice=quickPrice(item,{},undefined,undefined,pricing);const periods=item.periods.length?item.periods:(initialPrice?.kind===\"periods\"?initialPrice.totals.map(total=>total.months):[1,2,3]).map(months=>({key:`m${months}`,label:priceMonths(months),months}));const period=periods.find(option=>option.key===view.period);const variant=capsules?counted?forStrength[0]:forStrength.find(option=>option.product.capsules===capsules):undefined;const entries=variant?.entries||[];// If the catalogue has two distinct products for the same recipe, the doctor chooses explicitly.\nconst entry=entries.length===1?entries[0]:entries.find(option=>entryKey(option)===choices.entry);// The doctor chooses the schedule here, so the same complete, verified fill used for hair\n// can add the medicine with the native form hidden. Monthly pack size never implies frequency.\n// Dr Drai's plan (the owner, 15.11.2026): \"make the default 1,1,כל יום don't show it and make it invisable to the doctor\". The plan gives the dose\n// (one, once, every day), so its step and its summary row are not shown, and nothing chosen before in this tab changes it.\n// A card with its own dose under the plan (the owner, 17.11.2026) gives that dose and its words instead (menoTreatmentChoice.ts signPlan does the same).\nconst planned=planUsage(pricing?.hair?.sexual_plan,SEXUAL_INTERVALS.map(option=>option.value));const fixedUsage=planned?item.planDose??planned:null;const amount=fixedUsage?fixedUsage.amount:choices.amount===undefined?1:Number(choices.amount);const times=fixedUsage?fixedUsage.times:choices.times===undefined?1:Number(choices.times);const amountValid=Number.isInteger(amount)&&amount>=1&&amount<=100;const timesValid=Number.isSafeInteger(times)&&times>=1;const interval=SEXUAL_INTERVALS.find(option=>option.value===(fixedUsage?fixedUsage.every:choices.every));const baseFill=entry&&period?formFill(item,undefined,period,entry,counted?capsules:undefined):null;const fill=baseFill&&baseFill.quantity!==undefined&&amountValid&&timesValid&&interval?{...baseFill,amount,unit:counted?\"tablet\":\"capsule\",times,every:interval.value,instructions:fixedUsage?item.planDose?.instructions??\"\":choices.instructions||\"\"}:null;const schedule=amountValid&&timesValid&&interval?`${amount===1?`${pill.one} אחת`:`${amount} ${pill.many}`}, ${times===1?\"פעם\":times===2?\"פעמיים\":`${times} פעמים`} ${interval.summary}`:\"טרם נבחרה\";const setUsage=(field,value)=>changeView(before=>({picked:{...before.picked,[item.id]:{...before.picked[item.id],[field]:value}}}));const total=capsules&&period?capsules*period.months:undefined;const missing=[...strength===undefined?[\"מינון\"]:[],...period?[]:[\"תקופה\"],...capsules?[]:[`כמות ${pill.many}`],...!amountValid?[`מספר ${pill.many} בכל נטילה`]:[],...!timesValid?[\"מספר נטילות\"]:[],...!interval?[\"תדירות הנטילה\"]:[],...entries.length>1&&!entry?[\"תכשיר\"]:[]];let price=quickPrice(item,{},undefined,period,pricing);// For other clinics, use the already quoted total for the chosen month. No new pricing calculation.\nif(price?.kind===\"periods\"&&period){const quoted=price.totals.find(total=>total.months===period.months);price=quoted?{kind:\"price\",monthly:price.monthly,total:quoted.total,months:quoted.months}:{kind:\"none\"};}// <rx-fee> Dr Drai's prescription fee (the owner, 29.11.2026: \"not take the 165 ils per month in dr drai meno4docs also when pressing מתן מרשם, add a button\n// תוספת תשלום על מרשם with כן and לא options and if pressing yes it will add 165 for each month in the treatment. defaultly it should be no\"). Under his plan,\n// whose price carries the monthly ₪165 (newPatientMonthly), the card asks it: לא by default, the patient pays the plan less ₪165 a month, whoever he is; כן\n// adds the ₪165 for every month. The press carries the choice (IssueStep.fee → notePressFee → formidable-records prescription_fee), the server marks every\n// item with it and prices by it (_clinic_new_patient_discount), so his checkout charges what this box shows.\nconst feeMonthly=price&&(price.kind===\"price\"||price.kind===\"periods\")?price.newPatientMonthly||0:0;const offersFee=!!fixedUsage&&feeMonthly>0;const feeCharged=offersFee&&choices.fee===\"yes\";const fee=offersFee?feeCharged?\"charge\":\"waive\":undefined;const less=feeCharged?0:feeMonthly;const shownPrice=!offersFee||!price?price:price.kind===\"price\"?{kind:\"price\",monthly:price.monthly-less,total:price.total-less*price.months,months:price.months}:price.kind===\"periods\"?{kind:\"periods\",monthly:price.monthly-less,totals:price.totals.map(total=>({months:total.months,total:total.total-less*total.months}))}:price;const pickFee=charge=>{if(charge===feeCharged)return;changeView(before=>({picked:{...before.picked,[item.id]:{...before.picked[item.id],fee:charge?\"yes\":\"\"}}}));// A press already made from this card (added, not yet signed) carries the box's choice.\nif(notedPressFee()!==null)notePressFee(charge?\"charge\":\"waive\");};// </rx-fee>\nconst fixed=item.variants[0]?.product.actives.slice(1)||[];const selectStrength=value=>{if(value===strength)return;const keepsQuantity=counted?!!choices.capsules:available.some(option=>sexualStrength(option)===value&&String(option.product.capsules)===choices.capsules);changeView(before=>({picked:{...before.picked,[item.id]:{...choices,strength:String(value),capsules:keepsQuantity?choices.capsules:\"\",entry:\"\"}}}));setMessage(choices.capsules&&!keepsQuantity?\"המינון השתנה. יש לבחור כמות כמוסות שמתאימה לו.\":\"\");};// <drai-pack-split> The owner, 29.11.2026 (\"add an option to drai in the meno4docs to choose in the clomipramine treatment to split 30 with dosage x another 30\n// with dosage y etc... make it in an easy way to do\"): under his plan (one pack of 30 capsules a month), for 2 or 3 months, another strength for each pack of 30,\n// in this one prescription: a Formidable row per strength with its own months (two packs of one strength are one row of 60). The same one press and the same\n// price (the plan's months); the server signs and prices such rows as the questionnaire's split (formulaSplit, _clinic_sexual_pricing). As there (26.11, round 3):\n// one switch, then the packs in order; the open one shows the strengths and closes once chosen, and the next empty one opens. Pack 1 is the strength chosen above.\nconst splitStrengths=[...new Set(available.filter(option=>option.product.capsules===30&&option.entries.length===1).map(option=>sexualStrength(option)))].sort((a,b)=>a-b);const canSplit=!counted&&!!fixedUsage&&!!period&&period.months>=2&&period.months<=3&&capsules===30&&strength!==undefined&&splitStrengths.includes(strength)&&splitStrengths.length>=2;const splitting=canSplit&&choices.split===\"1\";const packs=splitting?Array.from({length:period.months},(_,index)=>{const raw=index===0?choices.strength:choices[`pack${index+1}`];return{n:index+1,strength:splitStrengths.find(value=>String(value)===raw)};}):[];const openPack=splitting?packs.find(pack=>choices.packOpen===String(pack.n))?.n??packs.find(pack=>pack.strength===undefined)?.n:undefined;const splitLines=[...packs.reduce((lines,pack)=>pack.strength===undefined?lines:lines.set(pack.strength,(lines.get(pack.strength)||0)+1),new Map)].map(([value,months])=>({value,months}));const packMissing=packs.filter(pack=>pack.strength===undefined).map(pack=>`מינון לאריזה ${pack.n}`);const allMissing=splitting?[...packMissing,...missing.filter(label=>label!==\"מינון\"&&label!==\"תכשיר\")]:missing;const splitSteps=splitting&&splitLines.length>=2&&!packMissing.length&&amountValid&&timesValid&&interval?splitLines.flatMap(line=>{const lineEntry=available.find(option=>sexualStrength(option)===line.value&&option.product.capsules===30)?.entries[0];const lineFill=lineEntry?formFill(item,undefined,{key:`m${line.months}`,label:priceMonths(line.months),months:line.months},lineEntry):null;return lineEntry&&lineFill&&lineFill.quantity!==undefined?[{entry:lineEntry,fill:{...lineFill,amount,unit:\"capsule\",times,every:interval.value,instructions:fixedUsage?item.planDose?.instructions??\"\":choices.instructions||\"\"},...fee?{fee}:{}}]:[];}):[];// Every line or none: a line whose product is missing never leaves the others to be signed alone.\nconst splitReady=splitLines.length>=2&&splitSteps.length===splitLines.length&&!allMissing.length?splitSteps:null;const setPacks=patch=>changeView(before=>({picked:{...before.picked,[item.id]:{...before.picked[item.id],...patch}}}));const pickPack=(n,value)=>{setPacks(n===1?{strength:String(value),entry:\"\",packOpen:\"\"}:{[`pack${n}`]:String(value),packOpen:\"\"});setMessage(\"\");};// </drai-pack-split>\nreturn /*#__PURE__*/_jsxs(\"div\",{className:\"mfq-sexual\",\"aria-label\":\"בחירת מינון, תקופה וכמות\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-sexual-settings\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-sexual-step\",\"data-step\":\"1\",children:[chips(counted?`מינון ${item.title}`:`מינון ${ACTIVE_HEBREW[mainActive]||mainActive}`,strengths.map(value=>({value:String(value),label:`${value} מ״ג`,pressed:strength===value,onPick:()=>selectStrength(value)}))),/*#__PURE__*/_jsxs(\"p\",{className:\"mfq-sexual-help\",children:[\"המינון בכל \",pill.one,fixed.length?`. בנוסף: ${fixed.map(active=>`${ACTIVE_HEBREW[active.name]||active.name} ${active.strength} מ״ג`).join(\" \\xb7 \")}`:\".\",counted?` ${item.title} היא תרופה מסחרית, ולכן היא נכנסת ב-Formidable למרשם רגיל.`:\"\"]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"mfq-sexual-step\",\"data-step\":\"2\",children:chips(\"תקופה\",periods.map(option=>({value:option.key,label:priceMonths(option.months),pressed:period?.key===option.key,onPick:()=>changeView(()=>({period:option.key}))})))}),/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-sexual-step\",\"data-step\":\"3\",children:[counts.length?chips(`${pill.many} בחודש`,counts.map(value=>({value:String(value),label:`${value} ${pill.many}`,pressed:capsules===value,onPick:()=>{if(value===capsules)return;changeView(before=>({picked:{...before.picked,[item.id]:{...choices,capsules:String(value),entry:\"\"}}}));setMessage(\"\");}}))):/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-facet\",children:[/*#__PURE__*/_jsxs(\"span\",{children:[pill.many,\" בחודש\"]}),/*#__PURE__*/_jsx(\"p\",{className:\"mfq-sexual-help\",children:\"בחר מינון כדי לראות את הכמויות הזמינות.\"})]}),strength!==undefined?/*#__PURE__*/_jsx(\"p\",{className:\"mfq-sexual-help\",children:counted&&pack?capsules?`באריזה ${pack} טבליות: ${capsules} בחודש הן ${capsules/pack} אריזות בחודש.`:`באריזה ${pack} טבליות.`:counts.length===1?`למינון הזה זמינה אריזה של ${counts[0]} כמוסות.`:\"אריזה אחת לכל חודש טיפול.\"}):null]}),canSplit?/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-sexual-step mfq-split\",\"data-step\":\"4\",\"data-meno-pack-split\":\"\",children:[chips(`${period.months} אריזות של 30 כמוסות`,[{value:\"same\",label:\"אותו מינון בכולן\",pressed:!splitting,onPick:()=>{if(splitting)setPacks({split:\"\",packOpen:\"\",pack2:\"\",pack3:\"\"});}},{value:\"split\",label:\"מינון שונה לכל אריזה\",pressed:splitting,onPick:()=>{if(!splitting)setPacks({split:\"1\",packOpen:\"\",pack2:\"\",pack3:\"\"});}}]),splitting?/*#__PURE__*/_jsx(\"ol\",{className:\"mfq-packs\",\"aria-label\":\"המינון בכל אריזה\",children:packs.map(pack=>/*#__PURE__*/_jsxs(\"li\",{className:\"mfq-pack\",\"data-pack\":pack.n,\"data-open\":openPack===pack.n?\"\":undefined,children:[/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-pack-head\",children:[/*#__PURE__*/_jsxs(\"span\",{className:\"mfq-pack-name\",children:[\"אריזה \",pack.n]}),/*#__PURE__*/_jsxs(\"span\",{className:\"mfq-pack-range\",children:[\"כמוסות \",(pack.n-1)*30+1,\"–\",pack.n*30]}),openPack===pack.n?null:/*#__PURE__*/_jsxs(_Fragment,{children:[pack.strength!==undefined?/*#__PURE__*/_jsxs(\"bdi\",{className:\"mfq-pack-value\",children:[pack.strength,\" מ״ג\"]}):/*#__PURE__*/_jsx(\"span\",{className:\"mfq-pack-empty\",children:\"בחר מינון\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"mfq-link\",disabled:!!pending,\"aria-label\":`${pack.strength!==undefined?\"שינוי\":\"בחירה\"}: מינון לאריזה ${pack.n}`,onClick:()=>setPacks({packOpen:String(pack.n)}),children:pack.strength!==undefined?\"שינוי\":\"בחירה\"})]})]}),openPack===pack.n?chips(`מינון לאריזה ${pack.n}`,splitStrengths.map(value=>({value:String(value),label:`${value} מ״ג`,pressed:pack.strength===value,onPick:()=>pickPack(pack.n,value)}))):null]},pack.n))}):null,splitting?null:/*#__PURE__*/_jsx(\"p\",{className:\"mfq-sexual-help\",children:\"אפשר לתת מינון אחר לכל 30 כמוסות, באותו מרשם ובאותו מחיר.\"})]}):null,offersFee?/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-sexual-step\",\"data-step\":canSplit?\"5\":\"4\",\"data-meno-rx-fee\":\"\",children:[chips(\"תוספת תשלום על מרשם\",[{value:\"no\",label:\"לא\",pressed:!feeCharged,onPick:()=>pickFee(false)},{value:\"yes\",label:\"כן\",pressed:feeCharged,onPick:()=>pickFee(true)}]),/*#__PURE__*/_jsxs(\"p\",{className:\"mfq-sexual-help\",children:[\"כן מוסיף \",/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(feeMonthly)}),\" לכל חודש טיפול.\"]})]}):null,fixedUsage?null:/*#__PURE__*/_jsx(\"div\",{className:\"mfq-sexual-step\",\"data-step\":\"4\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-facet\",role:\"group\",\"aria-label\":\"אופן הנטילה\",children:[/*#__PURE__*/_jsx(\"span\",{children:\"אופן הנטילה\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-sexual-usage\",children:[/*#__PURE__*/_jsxs(\"label\",{children:[pill.many,\" בכל נטילה\",/*#__PURE__*/_jsx(\"input\",{type:\"number\",min:\"1\",max:\"100\",step:\"1\",inputMode:\"numeric\",\"aria-label\":`${pill.many} בכל נטילה`,disabled:!!pending,value:choices.amount??\"1\",onChange:event=>setUsage(\"amount\",event.target.value)})]}),/*#__PURE__*/_jsxs(\"label\",{children:[\"מספר נטילות\",/*#__PURE__*/_jsx(\"input\",{type:\"number\",min:\"1\",step:\"1\",inputMode:\"numeric\",\"aria-label\":\"מספר נטילות\",disabled:!!pending,value:choices.times??\"1\",onChange:event=>setUsage(\"times\",event.target.value)})]}),/*#__PURE__*/_jsxs(\"label\",{children:[\"תדירות\",/*#__PURE__*/_jsxs(\"select\",{\"aria-label\":\"תדירות הנטילה\",disabled:!!pending,value:interval?.value||\"\",onChange:event=>setUsage(\"every\",event.target.value),children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",children:\"בחר תדירות\"}),SEXUAL_INTERVALS.map(option=>/*#__PURE__*/_jsx(\"option\",{value:option.value,children:option.label},option.value))]})]})]}),/*#__PURE__*/_jsx(\"p\",{className:\"mfq-sexual-help\",role:\"status\",children:interval&&amountValid&&timesValid?schedule:\"בחר את תדירות הנטילה למטופל.\"}),/*#__PURE__*/_jsxs(\"details\",{className:\"mfq-sexual-instructions\",children:[/*#__PURE__*/_jsx(\"summary\",{children:\"הוראות נוספות למטופל\"}),/*#__PURE__*/_jsx(\"textarea\",{\"aria-label\":\"הוראות נוספות למטופל\",placeholder:\"הוראות שימוש נוספות (אופציונלי)\",maxLength:2e3,rows:2,disabled:!!pending,value:choices.instructions||\"\",onChange:event=>setUsage(\"instructions\",event.target.value)})]})]})}),entries.length>1?/*#__PURE__*/_jsxs(\"label\",{className:\"mfq-sexual-catalog\",children:[\"תכשיר בקטלוג\",/*#__PURE__*/_jsxs(\"select\",{\"aria-label\":\"תכשיר בקטלוג\",disabled:!!pending,value:entry?entryKey(entry):\"\",onChange:event=>{const value=event.target.value;changeView(before=>({picked:{...before.picked,[item.id]:{...choices,entry:value}}}));},children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",children:\"בחר תכשיר\"}),entries.map(option=>/*#__PURE__*/_jsxs(\"option\",{value:entryKey(option),dir:\"ltr\",children:[option.name,\" \\xb7 \",option.medicationId.value]},entryKey(option)))]})]}):null]}),/*#__PURE__*/_jsxs(\"section\",{className:\"mfq-sexual-summary\",\"aria-label\":\"סיכום הבחירה\",children:[/*#__PURE__*/_jsx(\"h5\",{children:\"סיכום הבחירה\"}),/*#__PURE__*/_jsxs(\"dl\",{children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"dt\",{children:[\"מינון בכל \",pill.one]}),/*#__PURE__*/_jsx(\"dd\",{children:splitting?\"לפי אריזה\":strength===undefined?\"טרם נבחר\":/*#__PURE__*/_jsxs(\"bdi\",{children:[strength,\" מ״ג\"]})})]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"dt\",{children:\"תקופת טיפול\"}),/*#__PURE__*/_jsx(\"dd\",{children:period?priceMonths(period.months):\"טרם נבחרה\"})]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"dt\",{children:[pill.many,\" בחודש\"]}),/*#__PURE__*/_jsx(\"dd\",{children:capsules||\"טרם נבחרו\"})]}),offersFee?/*#__PURE__*/_jsxs(\"div\",{\"data-meno-rx-fee-summary\":\"\",children:[/*#__PURE__*/_jsx(\"dt\",{children:\"תשלום על מרשם\"}),/*#__PURE__*/_jsx(\"dd\",{children:feeCharged?/*#__PURE__*/_jsxs(_Fragment,{children:[\"כן, \",/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(feeMonthly)}),\" לחודש\"]}):\"לא\"})]}):null,fixedUsage?null:/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"dt\",{children:\"אופן הנטילה\"}),/*#__PURE__*/_jsx(\"dd\",{className:\"mfq-sexual-schedule\",children:schedule})]})]}),splitting?/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-split-lines\",\"data-meno-split-lines\":\"\",children:[/*#__PURE__*/_jsx(\"h6\",{children:\"ייכתב במרשם\"}),splitLines.length?/*#__PURE__*/_jsx(\"ul\",{children:splitLines.map(line=>/*#__PURE__*/_jsxs(\"li\",{children:[/*#__PURE__*/_jsxs(\"bdi\",{children:[line.value,\" מ״ג\"]}),\" \\xb7 \",line.months*30,\" כמוסות \\xb7 \",priceMonths(line.months)]},line.value))}):null]}):null,/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-sexual-total\",role:\"status\",\"aria-live\":\"polite\",children:[/*#__PURE__*/_jsx(\"span\",{children:\"סה״כ לכל התקופה\"}),/*#__PURE__*/_jsx(\"strong\",{children:total?`${total} ${pill.many}`:\"—\"})]}),shownPrice?.kind===\"periods\"?/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-sexual-price-preview\",children:[/*#__PURE__*/_jsxs(\"span\",{children:[\"מחיר למטופל לחודש: \",/*#__PURE__*/_jsx(\"strong\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(shownPrice.monthly)})})]}),/*#__PURE__*/_jsx(\"small\",{children:\"בחר תקופה להצגת המחיר הכולל.\"}),shownPrice.newPatientMonthly?/*#__PURE__*/_jsxs(\"small\",{className:\"mfq-new-patient-note\",children:[\"מטופל חדש ב-Meno: הנחה של \",/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(shownPrice.newPatientMonthly)}),\" לכל חודש.\"]}):null,/*#__PURE__*/_jsx(\"small\",{children:PRICE_NOTE})]}):shownPrice?/*#__PURE__*/_jsx(PatientPrice,{price:shownPrice}):null,issueBlock(splitting&&splitLines.length>=2?splitReady:entry&&fill&&!allMissing.length?[{entry,fill,price:shownPrice?.kind===\"price\"?{name:entry.name,total:shownPrice.total,form:item.form}:null,...fee?{fee}:{}}]:null,allMissing.map(label=>({label,target:label.startsWith(\"מינון לאריזה\")?`.mfq-pack[data-pack=\"${label.split(\" \").pop()}\"]`:label===\"מינון\"?'.mfq-sexual-step[data-step=\"1\"]':label===\"תקופה\"?'.mfq-sexual-step[data-step=\"2\"]':label.startsWith(\"כמות\")?'.mfq-sexual-step[data-step=\"3\"]':label===\"תכשיר\"?\".mfq-sexual-catalog\":'.mfq-sexual-step[data-step=\"4\"]'})),null,null),allMissing.length?null:/*#__PURE__*/_jsxs(\"p\",{className:\"mfq-sexual-next\",children:[\"תוקף המרשם: \",priceMonths(period.months),\".\"]}),entry&&variant&&!splitting?/*#__PURE__*/_jsxs(\"details\",{className:\"mfq-sexual-details\",children:[/*#__PURE__*/_jsx(\"summary\",{children:\"הרכב ופרטי התכשיר\"}),/*#__PURE__*/_jsx(\"p\",{dir:\"ltr\",children:productLabel(variant.product)}),/*#__PURE__*/_jsx(\"small\",{dir:\"ltr\",children:entry.name}),/*#__PURE__*/_jsxs(\"span\",{children:[packageLabel(entry),fill?.quantity?` \\xb7 ${counted&&pack?`${fill.quantity} טבליות (${fill.quantity/pack} אריזות)`:quantityLabel(fill.quantity)}`:\"\"]})]}):null]})]});};/** What a single card (or one part of a combination) settles now: the product its choice is, the form fill, the price, and what is still to choose. */const partInfo=(item,periods)=>{const choices=view.picked[item.id]||{},doseKey=view.doses[item.id],variant=chosenVariant(item,choices);// The doctor's formulas lead his card (the owner, 15.11.2026, Dr Gross): one press sets their strengths, without tretinoin unless he chose it;\n// \"הרכב אחר\" opens the rows, which stay open while a strength off his formulas is chosen.\nconst formulas=!periods&&quick?quick.options.filter(option=>!isQuickCompanion(option)&&option.family===item.id):[];const formulaKeys=formulas.length?Object.keys(formulas[0].choice).filter(key=>key!==\"tretinoin\"):[];const onFormula=formulas.some(option=>formulaKeys.every(key=>choices[key]===option.choice[key]));const forcedRows=formulas.length>0&&!onFormula&&formulaKeys.some(key=>!!choices[key]);const showRows=!formulas.length||otherStrengths||forcedRows;// Chosen by amount (Dr Gross's solution): the period sent is the one the amount lasts at the chosen dose. A renewal's period (m3…) shows as its amount.\nconst volumes=!periods&&byVolume.includes(item.id)?volumePeriods(item,doseKey):null;const volume=volumes?volumes.find(v=>v.key===view.period)||volumes.find(v=>v.months>0&&`m${v.months}`===view.period):undefined;const period=volumes?volume&&volume.months>0?volume:undefined:(periods||item.periods).find(p=>p.key===view.period);const shown=item.facets.length?variant?[variant]:[]:item.variants;const dose=item.doses.length===1?item.doses[0]:item.doses.find(d=>d.key===doseKey);// A price the doctor chooses on this card (DTC's \"מטופל ותיק\", the owner, 16.11.2026): a new patient's regular price by default. Chosen, it sets the dose and the\n// period it is for and turns the others off; the press carries it only while the dose, the period and the strengths fit it.\nconst priceOptions=!periods&&!volumes?cardPriceOptions(item,pricing):[];const chosenOption=priceOptions.find(option=>option.key===view.options?.[item.id])??null;const optionPriced=chosenOption?optionPrice(item,chosenOption,choices,doseKey,period,pricing):null;const optionBlocked=!!chosenOption&&!!dose&&!!period&&!optionPriced;// The catalogue's products for the choice (16.11.2026: what goes into the prescription, no longer a tile to press). One is the product; several (two rows for one\n// recipe, the cream's formulas) are the doctor's to choose, the one in the card's own pack chosen at the start when it is the only one, as Dr Gross's quick\n// options choose (15.11.2026).\n// Each recipe in the card's own bottle only, where Formidable has it (offeredEntries; Shay's account, 18.11.2026: \"always default set the 100 מ״ל once and\n// not even offer 50 מל twice\"). The 50 mL solutions never show beside the 100 mL ones, so the one product is \"ייכנס למרשם\", chosen.\nconst candidates=shown.flatMap(option=>offeredEntries(item,option.entries).map(entry=>({option,entry})));const inPack=item.pack?candidates.filter(candidate=>candidate.entry.packageSize?.value===String(item.pack.size)):[];const picked=candidates.length===1?candidates[0]:candidates.find(candidate=>entryKey(candidate.entry)===choices.entry)??(inPack.length===1&&!shown.some(option=>option.number)?inPack[0]:undefined);const fill=picked?formFill(item,doseKey,period,picked.entry):null;const price=periods?null:optionPriced??quickPrice(item,choices,doseKey,period,pricing);// What is still to choose, in the card's order, each with its row. A strength behind the doctor's formulas is chosen in \"הרכב\" while those rows are closed.\nconst doseRow=item.doseLabel||\"מינון\",periodRow=volumes?\"כמות\":\"תקופה\";const missing=[...item.facets.filter(facet=>!choices[facet.key]).map(facet=>!showRows&&formulaKeys.includes(facet.key)?{label:\"הרכב\",target:groupTarget(\"הרכב\")}:{label:facet.label,target:groupTarget(facet.label)}),...item.doses.length>1&&!dose?[{label:doseRow.split(\",\")[0],target:groupTarget(doseRow)}]:[],...(periods||item.periods).length&&!period?[{label:periodRow,target:groupTarget(periodRow)}]:[],...candidates.length>1&&!picked?[{label:shown.some(option=>option.number)?\"נוסחה\":\"תכשיר\",target:groupTarget(\"תכשיר\")}]:[]];return{choices,doseKey,variant,formulas,formulaKeys,forcedRows,showRows,volumes,volume,period,shown,dose,priceOptions,chosenOption,optionPriced,optionBlocked,candidates,picked,fill,price,missing};};/** What goes into the prescription: one product as it will be added, several as a choice. */const productChoice=(item,info,single=false)=>{const{shown,candidates,picked,doseKey,period,dose,volume}=info;// The shampoo ticked on this card (17.11.2026): the next line of the same prescription, as its press will add it.\nconst addon=single?tickedShampoo(item,info.fill):null;// Until the strengths are chosen the button's own line says what is missing, so nothing here repeats it.\nif(item.facets.length&&!info.variant)return null;const formulas=shown.some(option=>option.number);const usage=[dose?doseWords(item,dose):\"\",volume&&volume.months>0?`${volume.label} \\xb7 ${priceMonths(volume.months)}`:period?.label||\"\"].filter(Boolean).join(\" \\xb7 \");const composition=option=>option.number?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"b\",{className:\"mfq-number\",children:option.number}),/*#__PURE__*/_jsx(\"span\",{className:\"mfq-actives\",dir:\"ltr\",children:option.product.actives.map(active=>/*#__PURE__*/_jsx(\"span\",{children:activeLabel(active)},active.name))})]}):/*#__PURE__*/_jsx(\"bdi\",{dir:\"ltr\",children:productLabel(option.product)});const body=(option,entry,chosen)=>{const fill=formFill(item,doseKey,period,entry),detail=fillText(fill);return /*#__PURE__*/_jsxs(_Fragment,{children:[composition(option),/*#__PURE__*/_jsxs(\"span\",{children:[item.form,\" \\xb7 \",packageLabel(entry),detail?` \\xb7 ${detail}`:\"\"]}),chosen&&usage?/*#__PURE__*/_jsx(\"span\",{className:\"mfq-usage\",children:usage}):null,fill?.packNote&&fillComplete(fill)?/*#__PURE__*/_jsx(\"span\",{children:fill.packNote}):null,/*#__PURE__*/_jsxs(\"small\",{dir:\"ltr\",children:[entry.name,option.code?` \\xb7 ${option.code}`:\"\"]})]});};const absent=shown.filter(option=>!option.entries.length).map(option=>/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-entry mfq-missing\",children:[composition(option),/*#__PURE__*/_jsxs(\"span\",{children:[option.product.capsules?`${option.product.capsules} כמוסות באריזה \\xb7 `:\"\",NOT_IN_CATALOG]}),option.code?/*#__PURE__*/_jsx(\"small\",{dir:\"ltr\",children:option.code}):null]},option.code||productLabel(option.product)+option.product.capsules));if(candidates.length===1&&!formulas)return /*#__PURE__*/_jsxs(\"div\",{className:\"mfq-product\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"mfq-product-label\",children:\"ייכנס למרשם\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-entry mfq-chosen\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"mfq-tick\",\"aria-hidden\":\"true\",children:TICK}),body(candidates[0].option,candidates[0].entry,true)]}),addon,absent.length?/*#__PURE__*/_jsx(\"div\",{className:\"mfq-entries\",children:absent}):null]});if(!candidates.length)return absent.length?/*#__PURE__*/_jsx(\"div\",{className:`mfq-entries${formulas?\" mfq-formulas\":\"\"}`,children:absent}):null;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-facet mfq-product\",role:\"group\",\"aria-label\":\"תכשיר\",children:[/*#__PURE__*/_jsx(\"span\",{children:formulas?\"בחר נוסחה\":\"בחר תכשיר\"}),/*#__PURE__*/_jsxs(\"div\",{className:`mfq-entries${formulas?\" mfq-formulas\":\"\"}`,children:[candidates.map(({option,entry})=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"mfq-entry mfq-pick\",\"aria-pressed\":picked?.entry===entry,disabled:!!pending,onClick:()=>changeView(before=>({picked:{...before.picked,[item.id]:{...before.picked[item.id]||{},entry:entryKey(entry)}}})),children:body(option,entry,picked?.entry===entry)},entryKey(entry))),absent]})]}),addon?/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-product\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"mfq-product-label\",children:\"ייכנס גם למרשם\"}),addon]}):null]});};/** The shampoo's line under \"ייכנס למרשם\" (17.11.2026): one bottle, one thin layer `times` a week, for `months` (the treatment's; unknown until chosen). */const shampooLine=(offer,entry,times,months)=>/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-entry mfq-chosen\",\"data-meno-shampoo-line\":\"\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"mfq-tick\",\"aria-hidden\":\"true\",children:TICK}),/*#__PURE__*/_jsx(\"bdi\",{dir:\"ltr\",children:offer.name_latin||entry.name}),/*#__PURE__*/_jsxs(\"span\",{children:[offer.form_he||\"שמפו\",\" \\xb7 \",packageLabel(entry),\" \\xb7 כמות לניפוק: \",quantityLabel(1)]}),/*#__PURE__*/_jsxs(\"span\",{className:\"mfq-usage\",children:[\"שכבה דקה \",COMPANION_FREQUENCY_LABELS[times]||\"\",months?` \\xb7 ${priceMonths(months)}`:\"\"]}),/*#__PURE__*/_jsx(\"small\",{dir:\"ltr\",children:entry.name})]});/** The shampoo ticked on a hair card, where its box is on that card (companionOffer): its line, for the treatment's months. */const tickedShampoo=(item,fill)=>{const offer=companionOffer(item),chosen=offer?companionChoice():null;return offer?.kind===\"compounded\"&&shampooEntry&&chosen?.key===offer.key?shampooLine(offer,shampooEntry,chosen.frequency||SHAMPOO_TIMES,fillMonths(fill)):null;};/** The shampoo beside this card's treatment, where FormidableCompanion.tsx would offer it once the treatment is in the list: a clinic that offers it, one hair\n     * treatment alone on a compounded prescription, and (live) a doctor whose own form offers \"מרשם רגיל\". */const companionOffer=item=>{const current=formNow.current;if(item.area!==\"hair\"||item.parts||wantedType.current!==\"compounded\")return null;// The pharmacy-made shampoo (16.11.2026) goes into the same prescription: wherever it is offered and Formidable has the product.\nconst offer=shampooOffer&&shampooEntry?shampooOffer:offers.find(candidate=>candidate.kind===\"regular\");if(!offer)return null;if(offer.kind===\"regular\"&&environment!==\"sandbox\"&&!(offer.live&&regularType))return null;return current&&prescriptionMedicineCount(current)>0?null:offer;};/** The same box as FormidableCompanion.tsx's above Formidable's \"הפק מרשם\", with the same choice (menoFormidableCompanion.ts), so the one press takes it. */const companionRow=(offer,base,form)=>{const choice=companionChoice(),on=!!choice&&choice.key===offer.key;return /*#__PURE__*/_jsxs(\"section\",{className:\"mfc\",\"aria-label\":\"תוספת לטיפול\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"mfc-label\",children:\"תוספת לטיפול\"}),/*#__PURE__*/_jsxs(\"label\",{className:on?\"mfc-option mfc-on\":\"mfc-option\",children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",checked:on,disabled:!!pending,onChange:()=>on?setCompanionChoice(null):offer.kind===\"compounded\"?markShampoo():setCompanionChoice({key:offer.key,frequency:null})}),/*#__PURE__*/_jsx(\"span\",{className:\"mfc-box\",\"aria-hidden\":\"true\",children:TICK}),/*#__PURE__*/_jsxs(\"span\",{className:\"mfc-text\",children:[/*#__PURE__*/_jsxs(\"strong\",{children:[offer.name_he,offer.pack_he?` \\xb7 ${offer.pack_he}`:\"\"]}),/*#__PURE__*/_jsx(\"small\",{children:offer.kind===\"compounded\"?offer.alone?\"נכנס לאותו מרשם, לצד הטיפול.\":\"נכנס לאותו מרשם, לצד הטיפול. לא ניתן לבד.\":\"נשלח יחד עם הטיפול. לא ניתן לבד.\"})]}),/*#__PURE__*/_jsx(\"span\",{className:\"mfc-price\",children:/*#__PURE__*/_jsx(\"bdi\",{children:\"+\"+priceMoney(offer.amount_minor)})})]}),on&&offer.kind===\"regular\"?/*#__PURE__*/_jsxs(\"div\",{className:\"mfc-facet\",role:\"group\",\"aria-label\":\"כמה פעמים בשבוע\",children:[/*#__PURE__*/_jsx(\"span\",{children:\"כמה פעמים בשבוע\"}),/*#__PURE__*/_jsx(\"div\",{className:\"mfc-chips\",children:offer.frequencies.map(frequency=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"mfc-chip\",\"aria-pressed\":choice.frequency===frequency,disabled:!!pending,onClick:()=>setCompanionChoice({...choice,frequency:choice.frequency===frequency?null:frequency}),children:COMPANION_FREQUENCY_LABELS[frequency]},frequency))})]}):null,base!==null?/*#__PURE__*/_jsxs(\"p\",{className:\"mfc-pay\",role:\"status\",children:[\"המטופל ישלם \",/*#__PURE__*/_jsx(\"strong\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(base+(on?offer.amount_minor:0))})}),on?/*#__PURE__*/_jsxs(\"span\",{children:[\"\\xb7 \",form,\" \",/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(base)}),\" + שמפו \",/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(offer.amount_minor)})]}):null]}):on?/*#__PURE__*/_jsx(\"p\",{className:\"mfc-pay\",role:\"status\",children:/*#__PURE__*/_jsxs(\"span\",{children:[priceMoney(offer.amount_minor),\" נוספים למחיר הטיפול.\"]})}):null]});};/** The end of every card: \"הפק מרשם\", big, and the quiet way to only add. `steps` once the card is complete; `missing` until then; `stop` when the choice can't\n     * be given as it is (a price choice it doesn't fit), with its row; `addon`: the shampoo beside one hair treatment. */const issueBlock=(steps,missing,stop,addon)=>{const current=formNow.current,listed=current?listedMedicines(current):[],count=current?prescriptionMedicineCount(current):0;const inList=steps?steps.filter(step=>listed.includes(step.entry.name.trim())):[];const differs=inList.some(step=>addedLines.current.get(step.entry.name.trim())!==lineKey(step.fill,step.option?.key??null));const already=!!steps&&inList.length===steps.length&&!differs,others=Math.max(0,count-inList.length),busy=issuePhase!==\"\";// Nothing to give as it stands: a product Formidable doesn't have (review 3), or the same product already listed in another way (review 2). The button says so and looks it.\nconst unavailable=!steps&&!missing.length&&!stop,blocked=unavailable||differs;const words=listWords([...new Set(missing.map(item=>item.label))]),hint=`${id}-issue`;const press=addOnly=>{if(busy||pending||blocked)return;if(stop){focusRow([stop.target]);return;}if(missing.length||!steps){setAsked(words);focusRow(missing.map(item=>item.target));return;}pressCard(steps,addOnly,addon&&companionChoice()?.kind!==\"compounded\"?companionChoice():null);};const line=differs?LISTED_OTHERWISE:unavailable?NOT_GIVABLE:stop?stop.text:!missing.length?\"\":asked===words?`כדי להפיק את המרשם, בחר ${words}.`:`לפני ההפקה: בחר ${words}.`;const them=steps&&steps.length>1,other=others===1?\"תרופה אחרת\":`${others} תרופות אחרות`;const note=!steps||differs?\"\":already?`${them?\"התרופות האלה כבר במרשם\":\"התרופה הזו כבר במרשם\"}, כמו בכרטיס${others?`, ויש בו גם ${other}`:\"\"}. ״הפק מרשם״ יפיק ${others?\"מרשם אחד עם כולן\":\"את המרשם\"}.`:others?`במרשם כבר יש ${other}. ״הפק מרשם״ יוסיף את ${them?\"אלה\":\"זו\"} ויפיק מרשם אחד עם כולן.`:\"\";return /*#__PURE__*/_jsxs(\"div\",{className:\"mfq-act\",children:[addon,note?/*#__PURE__*/_jsx(\"p\",{className:\"mfq-act-note\",children:note}):null,/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:blocked?\"mfq-issue mfq-issue-off\":\"mfq-issue\",\"data-meno-issue\":\"\",disabled:busy||!!pending,\"aria-disabled\":blocked||undefined,\"aria-busy\":busy||undefined,\"aria-describedby\":line?hint:undefined,\"aria-label\":steps?.length===1&&steps[0].option?`${ISSUE}, מחיר ${steps[0].option.label}`:undefined,onClick:()=>press(false),children:busy?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{className:\"mfq-spin\",\"aria-hidden\":\"true\"}),ISSUING]}):/*#__PURE__*/_jsxs(_Fragment,{children:[ISSUE_ICON,ISSUE]})}),line?/*#__PURE__*/_jsx(\"p\",{className:asked===words||stop||blocked?\"mfq-act-hint mfq-asked\":\"mfq-act-hint\",id:hint,role:\"status\",children:line}):null,already||blocked?null:/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"mfq-link mfq-add-only\",\"data-meno-add-only\":\"\",disabled:busy||!!pending,onClick:()=>press(true),children:ADD_ONLY})]});};const singleIssue=(item,info)=>{const{picked,fill,price,missing,optionPriced,chosenOption,optionBlocked}=info;const steps=!missing.length&&picked&&fillComplete(fill)?[{entry:picked.entry,fill,option:optionPriced?.kind===\"price\"&&optionPriced.option?{key:optionPriced.option.key,label:optionPriced.option.label,id:entryKey(picked.entry),name:picked.entry.name}:null,price:price?.kind===\"price\"?{name:picked.entry.name,total:price.total,form:item.form}:null}]:null;// A card whose form the doctor fills in Formidable himself (no dose here): its product opens there, as before.\nif(!missing.length&&picked&&!fillComplete(fill))return /*#__PURE__*/_jsx(\"div\",{className:\"mfq-act\",children:/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"mfq-issue\",disabled:!!pending,onClick:()=>void choose(picked.entry,fill),children:\"המשך ב-Formidable\"})});const stop=optionBlocked&&chosenOption?{label:\"סוג מטופל\",target:groupTarget(\"סוג מטופל\"),text:`מחיר ${chosenOption.label} לא חל על הבחירה הזו. בחרו ״מטופל חדש״, או שנו את הבחירה.`}:null;const offer=companionOffer(item),companion=offer?companionChoice():null;const need=companion&&companion.key===offer.key&&offer.kind===\"regular\"&&!companion.frequency?[{label:\"כמה פעמים בשבוע\",target:groupTarget(\"כמה פעמים בשבוע\")}]:[];// The pharmacy-made shampoo ticked here (16.11.2026): one more line of the same prescription, added right after the treatment by the same press.\nconst withShampoo=steps&&offer?.kind===\"compounded\"&&shampooEntry&&companion?.key===offer.key?[...steps,{entry:shampooEntry,fill:shampooFill(companion.frequency||SHAMPOO_TIMES,fillMonths(steps[0].fill)),companion:true}]:steps;return issueBlock(need.length?null:withShampoo,[...missing,...need],stop,offer?companionRow(offer,price?.kind===\"price\"?price.total:null,item.form):null);};/** A combination: both medicines in the same prescription, with one press. */const comboIssue=family=>{const infos=(family.parts||[]).map(item=>partInfo(item,family.periods));const missing=infos.flatMap(info=>info.missing);const steps=!missing.length&&infos.length>1&&infos.every(info=>info.picked&&fillComplete(info.fill))?infos.map(info=>({entry:info.picked.entry,fill:info.fill})):null;return issueBlock(steps,missing.filter((item,index)=>missing.findIndex(other=>other.label===item.label)===index),null,null);};const part=(item,periods)=>{const info=partInfo(item,periods);const{choices,doseKey,formulas,formulaKeys,forcedRows,showRows,volumes,volume,period,dose,priceOptions,chosenOption,optionPriced,optionBlocked}=info;const pickOption=option=>changeView(before=>{const options={...before.options||{},[item.id]:option?.key??\"\"};if(!option)return{options};const doses=[...new Set(option.fits.map(fit=>fit.dose))],spans=[...new Set(option.fits.map(fit=>fit.period))];const keepDose=doses.includes(before.doses[item.id]||(item.doses.length===1?item.doses[0].key:\"\")),keepPeriod=spans.includes(before.period);return{options,doses:keepDose||doses.length!==1?before.doses:{...before.doses,[item.id]:doses[0]},period:keepPeriod||spans.length!==1?before.period:spans[0]};});const optionLine=option=>{const only=option.fits.length===1?option.fits[0]:null,months=only?item.periods.find(p=>p.key===only.period)?.months:undefined;return only&&months?`${priceMoney(only.total)} ל-${priceMonths(months)}${option.short?` \\xb7 ${option.short}`:\"\"}`:option.short||option.note;};return /*#__PURE__*/_jsxs(\"div\",{className:\"mfq-part\",children:[periods?/*#__PURE__*/_jsxs(\"h5\",{children:[item.form,\" \\xb7 \",item.title]}):null,priceOptions.length?/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-facet\",role:\"group\",\"aria-label\":\"סוג מטופל\",children:[/*#__PURE__*/_jsx(\"span\",{children:\"סוג מטופל\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-types\",children:[/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"mfq-type\",\"aria-pressed\":!chosenOption,disabled:!!pending,onClick:()=>pickOption(null),children:[\"מטופל חדש\",/*#__PURE__*/_jsx(\"small\",{children:\"המחיר הרגיל\"})]}),priceOptions.map(option=>/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"mfq-type\",\"aria-pressed\":chosenOption?.key===option.key,disabled:!!pending,onClick:()=>pickOption(option),children:[option.label,/*#__PURE__*/_jsx(\"small\",{children:optionLine(option)})]},option.key))]})]}):null,formulas.length?formulaRow(item,formulas,formulaKeys,choices,showRows,forcedRows):null,item.facets.filter(facet=>showRows||!formulaKeys.includes(facet.key)).map(facet=>chips(facet.label,facet.options.map(option=>({value:option.value,label:option.label,pressed:choices[facet.key]===option.value,disabled:!facetEnabled(item,facet.key,option.value,choices),onPick:()=>changeView(before=>({picked:{...before.picked,[item.id]:pickFacet(item,choices,facet.key,option.value)}}))})))),item.doses.length>1?chips(item.doseLabel||\"מינון\",item.doses.map(dose=>({value:dose.key,label:dose.label,pressed:doseKey===dose.key,disabled:!!chosenOption&&!chosenOption.fits.some(fit=>fit.dose===dose.key)||(volumes?!!volume&&!volumePeriods(item,dose.key).some(v=>v.key===volume.key&&v.months>0):item.pack?.unit===\"capsule\"&&!!period&&!capsuleAmountAllowed(dose,period.months)),why:chosenOption&&!chosenOption.fits.some(fit=>fit.dose===dose.key)?optionWhy(chosenOption):volumes&&volume?`${volume.label} לא מתאימים ל-${dose.label} ביום.`:CAPSULE_RULE,onPick:()=>changeView(before=>({doses:{...before.doses,[item.id]:before.doses[item.id]===dose.key?\"\":dose.key}}))}))):item.doses.length===1?/*#__PURE__*/_jsx(\"p\",{className:\"mfq-fixed\",children:item.doses[0].label}):null,periods?null:volumes?volumeChips(item,volumes,volume,dose):periodChips(item.periods,chosenOption),chosenOption?/*#__PURE__*/_jsxs(\"p\",{className:\"mfq-note mfq-option-note\",children:[\"מחיר \",chosenOption.label,\": \",chosenOption.note||chosenOption.short,\". לטיפול אחר בחרו ״מטופל חדש״.\"]}):null,optionBlocked?/*#__PURE__*/_jsxs(\"p\",{className:\"mfq-note\",role:\"status\",children:[\"מחיר \",chosenOption.label,\" לא חל על הבחירה הזו. בחרו ״מטופל חדש״, או שנו את הבחירה.\"]}):null,(()=>{const price=periods?null:optionPriced??quickPrice(item,choices,doseKey,period,pricing);return price?/*#__PURE__*/_jsx(PatientPrice,{price:volumes&&price.kind===\"choose\"?{...price,missing:price.missing.map(word=>word===\"תקופה\"?\"כמות\":word)}:price}):null;})(),productChoice(item,info,!periods),periods?null:singleIssue(item,info)]},item.id);};const formulaRow=(item,formulas,keys,choices,showRows,forced)=>/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-facet\",role:\"group\",\"aria-label\":\"הרכב\",children:[/*#__PURE__*/_jsx(\"span\",{children:\"הרכב\"}),/*#__PURE__*/_jsx(\"div\",{className:\"mfq-presets\",children:formulas.map(option=>{const on=keys.every(key=>choices[key]===option.choice[key]),lines=choiceLines(item,option.choice,keys);const tretinoin=item.facets.some(facet=>facet.key===\"tretinoin\")?{tretinoin:choices.tretinoin||option.choice.tretinoin||\"\"}:{};return /*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"mfq-preset\",\"aria-pressed\":on,disabled:!!pending,onClick:()=>changeView(before=>({picked:{...before.picked,[item.id]:on?{...choices,...Object.fromEntries(keys.map(key=>[key,\"\"]))}:{...choices,...Object.fromEntries(keys.map(key=>[key,option.choice[key]])),...tretinoin}}})),children:lines.map(line=>/*#__PURE__*/_jsx(\"span\",{children:line},line))},lines.join(\"|\"));})}),forced?null:/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"mfq-link mfq-more\",\"aria-expanded\":showRows,disabled:!!pending,onClick:()=>setOtherStrengths(open=>!open),children:showRows?\"הסתרת שאר החוזקים\":\"הרכב אחר\"})]});const quickList=tiles=>/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-group\",role:\"group\",\"aria-label\":\"גישה מהירה\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"mfq-group-label\",children:\"גישה מהירה\"}),quick?.note?/*#__PURE__*/_jsx(\"p\",{className:\"mfq-group-note\",children:quick.note}):null,/*#__PURE__*/_jsx(\"div\",{className:\"mfq-quick\",children:withShampooTile(tiles.map(tile=>{const busy=!!quickBusy&&quickBusy===tile.lines.join(\"|\");return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:busy?\"mfq-qa mfq-qa-busy\":\"mfq-qa\",disabled:!!pending||!tile.fill,title:tile.fill?undefined:NOT_IN_CATALOG,\"aria-busy\":busy||undefined,\"aria-label\":tile.fill?\"הוספה למרשם: \"+[quick?.form||tile.family.form,...tile.lines,tile.period?.label||\"\"].filter(Boolean).join(\", \"):undefined,onClick:()=>pressQuick(tile),children:[/*#__PURE__*/_jsx(\"span\",{className:\"mfq-qa-add\",\"aria-hidden\":\"true\",children:busy?/*#__PURE__*/_jsx(\"span\",{className:\"mfq-spin\"}):/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 16 16\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 3v10M3 8h10\"})})}),/*#__PURE__*/_jsx(\"span\",{className:\"mfq-form\",children:quick?.form||tile.family.form}),/*#__PURE__*/_jsx(\"strong\",{children:tile.lines.map(line=>/*#__PURE__*/_jsx(\"span\",{children:line},line))}),/*#__PURE__*/_jsx(\"small\",{children:busy?\"מוסיפים למרשם…\":tile.fill?/*#__PURE__*/_jsxs(_Fragment,{children:[tile.period?.label,tile.price?.kind===\"price\"?/*#__PURE__*/_jsxs(_Fragment,{children:[\" \\xb7 \",/*#__PURE__*/_jsx(\"b\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(tile.price.total)})}),shampooChoice()&&shampooOffer?/*#__PURE__*/_jsxs(_Fragment,{children:[\" + \",/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(shampooOffer.amount_minor)})]}):null]}):null]}):NOT_IN_CATALOG})]},tile.lines.join(\"|\"));}))}),shampooNote&&shampooTileAt>=0?/*#__PURE__*/_jsx(\"p\",{className:\"mfq-note\",role:\"status\",children:shampooNote}):null]});/** The shampoo's tile at its place among the tiles (16.11.2026). */const withShampooTile=nodes=>shampooTileAt<0||!shampooOffer?nodes:[...nodes.slice(0,shampooTileAt),shampooTile(shampooOffer),...nodes.slice(shampooTileAt)];/** Marks the shampoo to go in with the treatment, adds it beside the one already in the list, or says it is in the list already. Never alone. */const shampooTile=offer=>{const chosen=shampooChoice(),listed=!!shampooEntry&&listedHair().names.includes(shampooEntry.name.trim()),on=!!chosen||listed;const busy=!!pending&&!!shampooEntry&&pending===shampooEntry.name;return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:busy?\"mfq-qa mfq-qa-addon mfq-qa-busy\":on?\"mfq-qa mfq-qa-addon mfq-qa-on\":\"mfq-qa mfq-qa-addon\",\"aria-pressed\":on,\"aria-busy\":busy||undefined,disabled:!!pending||!shampooEntry||listed,title:shampooEntry?undefined:NOT_IN_CATALOG,\"aria-label\":`${offer.name_he}, ${offer.pack_he}, ${priceMoney(offer.amount_minor)} נוספים, רק יחד עם טיפול`,onClick:pressShampoo,children:[/*#__PURE__*/_jsx(\"span\",{className:\"mfq-qa-add\",\"aria-hidden\":\"true\",children:busy?/*#__PURE__*/_jsx(\"span\",{className:\"mfq-spin\"}):on?TICK:PLUS}),/*#__PURE__*/_jsx(\"span\",{className:\"mfq-form\",children:\"תוספת לטיפול\"}),/*#__PURE__*/_jsx(\"strong\",{children:/*#__PURE__*/_jsx(\"span\",{children:offer.name_he})}),/*#__PURE__*/_jsx(\"small\",{children:busy?\"מוסיפים למרשם…\":!shampooEntry?NOT_IN_CATALOG:listed?\"במרשם\":chosen?\"ייכנס יחד עם הטיפול\":/*#__PURE__*/_jsxs(_Fragment,{children:[offer.pack_he,\" \\xb7 \",/*#__PURE__*/_jsx(\"b\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:\"+\"+priceMoney(offer.amount_minor)})})]})})]},\"companion:\"+offer.key);};const families=items=>/*#__PURE__*/_jsxs(\"div\",{className:`mfq-families${(items.length+(shampooCard?1:0))%3?\" mfq-pairs\":\"\"}`,children:[items.map(item=>/*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"data-family\":item.id,disabled:!item.ready,onClick:()=>openFamily(item.id),children:[/*#__PURE__*/_jsx(\"span\",{className:\"mfq-form\",children:item.form}),/*#__PURE__*/_jsx(\"strong\",{children:item.title}),/*#__PURE__*/_jsx(\"small\",{className:\"mfq-english\",dir:\"ltr\",children:item.english}),/*#__PURE__*/_jsx(\"small\",{children:familyStatus(item)})]},item.id)),shampooCard&&shampooOffer?/*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"data-family\":SHAMPOO_CARD,disabled:!shampooEntry,onClick:()=>openFamily(SHAMPOO_CARD),children:[/*#__PURE__*/_jsx(\"span\",{className:\"mfq-form\",children:shampooOffer.form_he||\"שמפו\"}),/*#__PURE__*/_jsx(\"strong\",{children:shampooOffer.name_he}),/*#__PURE__*/_jsx(\"small\",{className:\"mfq-english\",dir:\"ltr\",children:COMPANION_ENGLISH[shampooOffer.key]||shampooOffer.name_latin}),/*#__PURE__*/_jsx(\"small\",{children:shampooEntry?\"תכשיר אחד זמין \\xb7 גם לבד\":NOT_IN_CATALOG})]},SHAMPOO_CARD):null]});/** The shampoo's own card (17.11.2026, a clinic that gives it alone): nothing to choose; one bottle, its price, its line, and its \"הפק מרשם\". Alone it is a\n     * prescription of its own for 3 months; beside the one hair treatment already in the list it joins that prescription, for its months; beside anything else,\n     * the press says why it can't, and adds nothing. */const shampooView=offer=>{const{names,hair}=listedHair(),own=shampooEntry?.name.trim()||\"\",others=names.filter(name=>name!==own);const beside=others.length===1&&hair.length===1&&hair[0]===others[0],fits=!others.length||beside;const months=beside?addedMonths(hair[0])??SHAMPOO_ALONE_MONTHS:SHAMPOO_ALONE_MONTHS;const steps=shampooEntry&&fits?[{entry:shampooEntry,fill:shampooFill(SHAMPOO_TIMES,months)}]:null;const stop=shampooEntry&&!fits?{label:\"\",target:\"[data-meno-shampoo-line]\",text:SHAMPOO_ALONE_OR_BESIDE}:null;// <nadim-shampoo> Beside the treatment its price beside one (amount_minor); otherwise the clinic's own price alone (18.11.2026, Dr Nadim: ₪100 beside, ₪135 alone).\nreturn /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-family\",children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"mfq-link\",disabled:!!pending,onClick:()=>openFamily(\"\"),children:\"חזרה לרשימה\"}),/*#__PURE__*/_jsxs(\"strong\",{children:[offer.name_he,\" \\xb7 \",offer.form_he||\"שמפו\"]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-part\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-price\",role:\"status\",children:[/*#__PURE__*/_jsxs(\"span\",{children:[\"מחיר למטופל: \",/*#__PURE__*/_jsx(\"strong\",{children:/*#__PURE__*/_jsx(\"bdi\",{children:priceMoney(beside?offer.amount_minor:companionAloneAmount(offer))})}),beside?\" נוספים למחיר הטיפול\":\"\"]}),/*#__PURE__*/_jsxs(\"span\",{children:[\"בקבוק אחד\",offer.pack_he?` \\xb7 ${offer.pack_he}`:\"\"]}),/*#__PURE__*/_jsx(\"small\",{children:PRICE_NOTE})]}),shampooEntry?/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-product\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"mfq-product-label\",children:\"ייכנס למרשם\"}),shampooLine(offer,shampooEntry,SHAMPOO_TIMES,months)]}):null,issueBlock(steps,[],stop,null)]})]});};if(!slot&&!inline)return null;const missing=current?(current.parts||[current]).some(item=>item.available<item.total):false;const panel=/*#__PURE__*/_jsxs(\"div\",{className:\"mfq\",\"aria-label\":\"בחירה מהירה מטיפולי Meno\",children:[/*#__PURE__*/_jsx(\"style\",{children:css}),renewalNote?/*#__PURE__*/_jsx(\"p\",{className:\"mfq-note mfq-renewal\",role:\"status\",children:renewalNote}):null,/*#__PURE__*/_jsxs(\"header\",{children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h4\",{children:\"הטיפולים של Meno\"}),/*#__PURE__*/_jsx(\"p\",{children:\"בוחרים תכשיר, מינון ותקופה, ולוחצים על ״הפק מרשם״.\"})]}),quickListOnly?null:/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"mfq-link\",disabled:!!pending||!form,onClick:()=>focusNativeCatalog(app),children:\"חיפוש בקטלוג\"})]}),catalog.status!==\"ready\"?/*#__PURE__*/_jsx(\"p\",{className:\"mfq-note\",role:\"status\",children:loading?copy.loading:copy.failed}):/*#__PURE__*/_jsxs(_Fragment,{children:[tabs.length>1?/*#__PURE__*/_jsx(\"div\",{className:\"mfq-tabs\",role:\"tablist\",\"aria-label\":\"תחום הטיפול\",children:tabs.map(tab=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",role:\"tab\",className:\"mfq-tab\",id:`${id}-tab-${tab}`,\"aria-selected\":tab===area,\"aria-controls\":`${id}-panel`,tabIndex:tab===area?0:-1,disabled:!!pending,onClick:()=>selectArea(tab),onKeyDown:tabKeys,children:AREA_LABELS[tab]},tab))}):null,/*#__PURE__*/_jsx(\"div\",{id:`${id}-panel`,role:tabs.length>1?\"tabpanel\":undefined,\"aria-labelledby\":tabs.length>1?`${id}-tab-${area}`:undefined,children:current?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{className:\"mfq-family\",children:inArea.length>1||shampooCard?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"mfq-link\",disabled:!!pending,onClick:()=>openFamily(\"\"),children:\"חזרה לרשימה\"}),/*#__PURE__*/_jsxs(\"strong\",{children:[current.title,\" \\xb7 \",current.form]})]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"strong\",{children:current.title}),/*#__PURE__*/_jsx(\"small\",{className:\"mfq-english\",dir:\"ltr\",children:current.english})]})}),current.parts?/*#__PURE__*/_jsxs(_Fragment,{children:[periodChips(current.periods),/*#__PURE__*/_jsx(\"p\",{className:\"mfq-note\",children:\"שתי התרופות ייכנסו לאותו מרשם.\"}),current.parts.map(item=>part(item,current.periods)),pricing?.hair?.applicable!==true?null:!pricing.hair.addons_enabled?/*#__PURE__*/_jsx(PatientPrice,{price:{kind:\"none\"}}):!comboItems?/*#__PURE__*/_jsx(PatientPrice,{price:{kind:\"choose\",missing:[...comboStrength?[]:[\"חוזק\"],...comboDoses[0]&&comboDoses[1]?[]:[\"מינון\"],...comboPeriod?[]:[\"תקופה\"]]}}):comboQuote.quote?/*#__PURE__*/_jsx(PatientPrice,{price:{kind:\"price\",monthly:comboQuote.quote.monthly_amount_minor??comboQuote.quote.base_amount_minor/comboQuote.quote.billing_months,total:comboQuote.quote.base_amount_minor,months:comboQuote.quote.billing_months}}):comboQuote.error?/*#__PURE__*/_jsx(\"p\",{className:\"mfq-price-none\",role:\"status\",children:/שלים|כפילות/.test(comboQuote.error)?NOT_PRICED:\"לא הצלחנו לחשב את המחיר כרגע.\"}):/*#__PURE__*/_jsx(\"p\",{className:\"mfq-note mfq-price-hint\",role:\"status\",children:\"מחשבים את המחיר למטופל…\"}),comboIssue(current)]}):current.area===\"sexual\"?sexualPart(current):part(current,null),missing&&current.area!==\"sexual\"?/*#__PURE__*/_jsx(\"p\",{className:\"mfq-note\",children:(current.parts||[current]).some(item=>item.facets.length)?\"אפשרויות מעומעמות עדיין לא קיימות בקטלוג של Formidable, ולכן אי אפשר לבחור בהן.\":\"תכשירים מעומעמים עדיין לא קיימים בקטלוג של Formidable, ולכן אי אפשר לבחור בהם.\"}):null,current.doses.length||current.parts||current.area===\"sexual\"?null:/*#__PURE__*/_jsx(\"p\",{className:\"mfq-note\",children:current.periods.length?\"התקופה שנבחרה ומספר האריזות ימולאו בטופס של Formidable. את המינון מזינים שם.\":\"את המינון ומשך הטיפול מזינים בטופס של Formidable.\"})]}):shampooOpen&&shampooOffer?shampooView(shampooOffer):/*#__PURE__*/_jsxs(_Fragment,{children:[quickTiles.length||shampooTileAt>=0?/*#__PURE__*/_jsxs(_Fragment,{children:[quickList(quickTiles),/*#__PURE__*/_jsx(\"p\",{className:\"mfq-group-label mfq-all\",children:\"כל הטיפולים\"})]}):null,families(inArea),area===\"hair\"&&!pricing?.hair?.recipes&&listed.filter(family=>!hidden.includes(family.id)&&!family.listedOnly).length!==treatments.length?/*#__PURE__*/_jsxs(\"p\",{className:\"mfq-note\",children:[CAPSULE_RULE,\" אפשרויות אחרות לא מוצגות כאן.\"]}):null]})})]}),pending?/*#__PURE__*/_jsxs(\"div\",{className:\"mfq-status\",role:\"status\",children:[/*#__PURE__*/_jsx(\"span\",{children:pendingText}),canCancel?/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"mfq-link\",onClick:()=>choice.current?.abort(),children:\"ביטול\"}):null]}):null,message?/*#__PURE__*/_jsx(\"p\",{className:\"mfq-note\",role:\"status\",children:message}):null]});return slot?/*#__PURE__*/createPortal(panel,slot):/*#__PURE__*/_jsxs(\"div\",{className:\"mf-early-treatments\",\"data-mf-early\":\"\",children:[/*#__PURE__*/_jsx(\"h3\",{children:\"תרופות\"}),panel]});}const css=`\n.mf-early-treatments{background:white;border:1px solid ${tokens.softWarm};border-radius:12px;padding:24px 24px 0}.mf-early-treatments>h3{margin:0 0 12px;font-size:18px;font-weight:600;font-family:${fontFamily};text-align:right;direction:rtl}@media(max-width:600px){.mf-early-treatments{padding:18px 12px 0}}\n.mfq{font-family:${fontFamily};text-align:right;color:${tokens.modernEspresso};padding:20px 0 24px;direction:rtl}\n.mfq *{box-sizing:border-box}.mfq header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.mfq h4{font-size:17px;font-weight:600;line-height:1.5;margin:0 0 4px}.mfq p{margin:0;font-size:14px;line-height:1.7;color:${tokens.mutedWarm}}\n.mfq button{font:inherit;cursor:pointer;line-height:1.5}.mfq button:focus-visible{outline:3px solid ${tokens.tobacco};outline-offset:3px}.mfq button:disabled{cursor:default}.mfq-link{flex:none;min-height:44px;padding:8px 4px;background:transparent;border:0;color:${tokens.tobaccoText};font-size:14px!important;text-decoration:underline;text-underline-offset:4px}.mfq-link:disabled{opacity:.5}\n.mfq-families,.mfq-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mfq-families>button,.mfq-entry{display:flex;align-items:flex-start;flex-direction:column;gap:6px;text-align:right;min-width:0;padding:16px;border:1px solid ${tokens.softWarm};border-radius:12px;color:inherit;background:${tokens.bone};transition:background .15s,border-color .15s}.mfq-families>button:hover:not(:disabled),.mfq-entry:hover:not(:disabled){border-color:${tokens.tobacco};background:${tokens.warmWash}}.mfq-families>button:disabled{background:${tokens.warmIvory};color:${tokens.mutedWarm}}.mfq-families strong{font-size:14px;font-weight:600}.mfq-families small,.mfq-entry span{font-size:12px;color:${tokens.mutedWarm}}.mfq-form{font-size:12px;color:${tokens.tobaccoText};font-weight:500}.mfq-families>button:disabled .mfq-form{color:${tokens.mutedWarm}}\n.mfq-family{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;margin-bottom:12px}.mfq-family strong{font-size:14px}.mfq-entry bdi{font-size:14px;font-weight:600;overflow-wrap:anywhere;text-align:left;align-self:stretch}.mfq-entry small{font-size:11px;line-height:1.5;color:${tokens.mutedWarm};overflow-wrap:anywhere;align-self:stretch;text-align:left}.mfq-entry:disabled{opacity:.6}.mfq .mfq-note{margin-top:12px;font-size:13px}.mfq-status{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;color:${tokens.tobaccoText};margin-top:12px}\n@media(min-width:850px){.mfq-families:not(.mfq-pairs),.mfq-formulas{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:520px){.mfq header{flex-direction:column;gap:4px}.mfq-families,.mfq-entries{grid-template-columns:1fr}.mfq-family{align-items:flex-start;flex-direction:column;gap:4px}.mfq{padding-top:12px}.mfq-families>button,.mfq-entry{padding:14px}}\n@media(prefers-reduced-motion:reduce){.mfq-families>button,.mfq-entry{transition:none}}\n.mfq-tabs{display:flex;gap:4px;margin-bottom:20px;padding:4px;border:1px solid ${tokens.softWarm};border-radius:14px;background:${tokens.warmIvory}}\n.mfq .mfq-tab{flex:1 1 0;min-width:0;min-height:48px;padding:8px;border:0;border-radius:10px;background:transparent;color:${tokens.modernEspresso};font-size:15px;font-weight:500;line-height:1.3;text-align:center;transition:background .12s,color .12s}\n.mfq .mfq-tab:hover:not(:disabled):not([aria-selected=true]){background:${tokens.bone};color:${tokens.tobaccoText}}.mfq .mfq-tab[aria-selected=true]{background:${tokens.tobacco};color:#fff;font-weight:600}.mfq .mfq-tab:disabled:not([aria-selected=true]){color:${tokens.mutedWarm}}\n@media(max-width:520px){.mfq .mfq-tab{padding:8px 4px;font-size:14px}.mfq .mfq-tab[aria-selected=true]{font-weight:500}}@media(prefers-reduced-motion:reduce){.mfq .mfq-tab{transition:none}}\n.mfq-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 24px;margin:0 0 16px;padding:12px 16px;border:1px solid ${tokens.softWarm};border-radius:12px;background:${tokens.warmWash};font-size:14px;line-height:1.6;color:${tokens.modernEspresso}}.mfq-price strong{font-size:17px;font-weight:600}.mfq-price small{flex:0 0 100%;font-size:12px;color:${tokens.mutedWarm}}.mfq-price .mfq-new-patient{flex:0 0 100%;padding-top:8px;border-top:1px dashed ${tokens.softWarm}}.mfq-price .mfq-new-patient small{display:block;flex:none;margin-top:2px}.mfq-sexual-price-preview .mfq-new-patient-note{color:${tokens.modernEspresso};font-size:12px}.mfq .mfq-price-hint{margin:0 0 16px}.mfq .mfq-price-none{margin:0 0 16px;padding:12px 16px;border:1px solid ${tokens.error};border-radius:12px;background:${tokens.errorTint};color:${tokens.modernEspresso}}.mfq-part~.mfq-price,.mfq .mfq-part~.mfq-price-hint,.mfq .mfq-part~.mfq-price-none{margin-top:16px}\n.mfq-english{font-size:12px;color:${tokens.mutedWarm};align-self:stretch;text-align:left;overflow-wrap:anywhere}\n.mfq .mfq-renewal{margin:0 0 16px;padding:12px 16px;border:1px solid ${tokens.softWarm};border-radius:12px;background:${tokens.warmWash};color:${tokens.modernEspresso};font-size:14px}\n.mfq-part+.mfq-part{margin-top:20px;padding-top:16px;border-top:1px solid ${tokens.softWarm}}.mfq-part h5{margin:0 0 12px;font-size:14px;font-weight:600;line-height:1.5}\n.mfq-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:560px}\n.mfq .mfq-type{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;min-height:60px;padding:10px 14px;border:1px solid ${tokens.softWarm};border-radius:10px;background:${tokens.bone};color:inherit;font-size:15px;line-height:1.45;text-align:right;transition:background .15s,border-color .15s}\n.mfq .mfq-type small{font-size:12px;font-weight:400;color:${tokens.mutedWarm}}.mfq .mfq-type:hover:not(:disabled){border-color:${tokens.tobacco};background:${tokens.warmWash}}\n.mfq .mfq-type[aria-pressed=true]{border:2px solid ${tokens.tobacco};padding:9px 13px;background:${tokens.warmWash};color:${tokens.tobaccoText};font-weight:600}.mfq .mfq-type[aria-pressed=true] small{color:${tokens.tobaccoText}}\n.mfq .mfq-tag{display:inline-flex;align-items:center;align-self:center;min-height:24px;padding:2px 10px;border-radius:999px;background:#DBEAFE;color:${tokens.tobaccoText};font-size:12px;font-weight:600}\n.mfq .mfq-was{color:${tokens.mutedWarm};text-decoration:line-through;font-weight:400}.mfq .mfq-note.mfq-option-note{margin:-4px 0 14px}\n@media(max-width:520px){.mfq-types{max-width:none}}@media(prefers-reduced-motion:reduce){.mfq .mfq-type{transition:none}}\n.mfq-facet{margin-bottom:14px}.mfq-facet>span{display:block;margin-bottom:6px;font-size:13px;color:${tokens.mutedWarm}}.mfq-chips{display:flex;flex-wrap:wrap;gap:8px}\n.mfq .mfq-chip{min-height:44px;min-width:44px;padding:8px 14px;border:1px solid ${tokens.softWarm};border-radius:10px;background:${tokens.bone};color:inherit;font-size:14px;transition:background .15s,border-color .15s}.mfq-chip:hover:not(:disabled){border-color:${tokens.tobacco};background:${tokens.warmWash}}.mfq .mfq-chip[aria-pressed=true]{border:2px solid ${tokens.tobacco};padding:7px 13px;background:${tokens.warmWash};color:${tokens.tobaccoText};font-weight:600}.mfq .mfq-chip.mfq-off:disabled{background:${tokens.warmIvory};color:${tokens.mutedWarm};opacity:.55;text-decoration:line-through}\n.mfq .mfq-fixed{margin:0 0 14px;font-size:14px;color:${tokens.modernEspresso}}\n.mfq .mfq-group-label{margin:0 0 2px;font-size:13px;font-weight:600;color:${tokens.modernEspresso}}.mfq .mfq-group-note{margin:0 0 10px;font-size:13px}.mfq .mfq-all{margin:22px 0 8px}\n.mfq-quick,.mfq-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mfq-presets{gap:8px}\n.mfq .mfq-qa{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;min-height:44px;padding:14px 16px;border:1px solid ${tokens.softWarm};border-radius:12px;background:${tokens.bone};color:inherit;text-align:right;transition:background .15s,border-color .15s}.mfq .mfq-qa:hover:not(:disabled){border-color:${tokens.tobacco};background:${tokens.warmWash}}.mfq .mfq-qa:disabled{opacity:.6}\n.mfq-qa strong{display:flex;flex-direction:column;font-size:15px;font-weight:600;line-height:1.45}.mfq-qa small{font-size:12px;color:${tokens.mutedWarm}}.mfq-qa small b{font-weight:600;color:${tokens.modernEspresso}}\n.mfq-qa-add{position:absolute;top:12px;left:12px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:${tokens.warmWash};color:${tokens.tobaccoText};transition:background .15s,color .15s}.mfq-qa-add svg{width:14px;height:14px}.mfq .mfq-qa:hover:not(:disabled) .mfq-qa-add{background:${tokens.tobacco};color:#fff}\n.mfq .mfq-preset{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:44px;padding:9px 14px;border:1px solid ${tokens.softWarm};border-radius:10px;background:${tokens.bone};color:inherit;font-size:14px;line-height:1.45;text-align:right;transition:background .15s,border-color .15s}.mfq .mfq-preset:hover:not(:disabled){border-color:${tokens.tobacco};background:${tokens.warmWash}}.mfq .mfq-preset[aria-pressed=true]{border:2px solid ${tokens.tobacco};padding:8px 13px;background:${tokens.warmWash};color:${tokens.tobaccoText};font-weight:600}\n.mfq .mfq-more{margin-top:2px}\n@media(min-width:850px){.mfq-quick,.mfq-presets{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.mfq .mfq-qa,.mfq .mfq-preset,.mfq-qa-add{transition:none}}\n.mfq .mfq-qa.mfq-qa-busy{border-color:${tokens.tobacco};background:${tokens.warmWash};opacity:1;cursor:progress}.mfq .mfq-qa.mfq-qa-busy small{color:${tokens.tobaccoText};font-weight:500}\n.mfq .mfq-qa.mfq-qa-addon{border-style:dashed}.mfq .mfq-qa.mfq-qa-on{border:2px solid ${tokens.tobacco};border-style:solid;padding:13px 15px;background:${tokens.warmWash};opacity:1}.mfq .mfq-qa.mfq-qa-on .mfq-qa-add{background:${tokens.tobacco};color:#fff}.mfq .mfq-qa.mfq-qa-on small{color:${tokens.tobaccoText};font-weight:500}\n.mfq-spin{width:14px;height:14px;border:2px solid #BFD3F5;border-top-color:${tokens.tobacco};border-radius:50%;animation:mfq-spin .7s linear infinite}@keyframes mfq-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.mfq-spin{animation-duration:2s}}\n.mfq-missing{background:${tokens.warmIvory}!important;color:${tokens.mutedWarm}}.mfq-missing bdi{font-weight:500!important}.mfq-entry{position:relative}.mfq-number{font-size:18px;font-weight:600;line-height:1.2}.mfq-actives{display:flex;flex-direction:column;gap:2px;align-self:stretch;text-align:left;font-size:13px;font-weight:600;overflow-wrap:anywhere}.mfq-missing .mfq-actives{font-weight:500}\n@media(prefers-reduced-motion:reduce){.mfq .mfq-chip{transition:none}}\n.mfq-sexual{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.62fr);gap:20px;align-items:start;margin-top:16px}\n.mfq-sexual-settings{min-width:0;border:1px solid ${tokens.softWarm};border-radius:16px;padding:22px;background:${tokens.bone}}\n.mfq-sexual-step{position:relative;padding-inline-start:36px}.mfq-sexual-step+.mfq-sexual-step{margin-top:22px;padding-top:22px;border-top:1px solid ${tokens.softWarm}}\n.mfq-sexual-step:before{content:attr(data-step);position:absolute;inset-inline-start:0;top:0;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:${tokens.warmIvory};color:${tokens.mutedWarm};font-size:12px;font-weight:600}.mfq-sexual-step+.mfq-sexual-step:before{top:22px}\n.mfq-sexual .mfq-facet{margin:0}.mfq-sexual .mfq-facet>span{color:${tokens.modernEspresso};font-size:14px;font-weight:600;margin-bottom:12px}.mfq-sexual .mfq-chip{min-width:64px}\n.mfq-sexual .mfq-chip[aria-pressed=true]{border-color:${tokens.modernEspresso};background:${tokens.modernEspresso};color:white}\n.mfq .mfq-sexual-help{font-size:12px;line-height:1.7;margin-top:9px;color:${tokens.mutedWarm}}\n.mfq-sexual-summary{min-width:0;padding:22px;border-radius:16px;background:${tokens.warmIvory};border:1px solid ${tokens.softWarm}}\n.mfq-sexual-summary h5{margin:0 0 18px;font-size:16px;font-weight:600}.mfq-sexual-summary dl{margin:0;display:grid;gap:12px}.mfq-sexual-summary dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;font-size:13px}.mfq-sexual-summary dt{color:${tokens.mutedWarm}}.mfq-sexual-summary dd{margin:0;font-weight:500;text-align:left}\n.mfq-sexual-total{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin:18px 0;padding:16px 0;border-block:1px solid ${tokens.softWarm};font-size:13px}.mfq-sexual-total strong{font-size:21px;font-weight:600;letter-spacing:-.3px}\n.mfq-sexual-summary .mfq-price{border:0;background:none;padding:0;gap:4px;margin-bottom:18px}.mfq-sexual-summary .mfq-price>span{flex-basis:100%;font-size:13px}.mfq-sexual-summary .mfq-price strong{font-size:18px}.mfq-sexual-summary .mfq-price small{margin-top:4px;font-size:11px}\n.mfq-sexual-price-preview{display:grid;gap:6px;margin-bottom:18px;font-size:13px}.mfq-sexual-price-preview strong{font-size:18px}.mfq-sexual-price-preview small{font-size:11px;color:${tokens.mutedWarm}}\n.mfq .mfq-sexual-continue{width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid ${tokens.modernEspresso};border-radius:10px;padding:12px 16px;background:${tokens.modernEspresso};color:white;font-size:14px;font-weight:600}.mfq-sexual-continue:hover:not(:disabled){background:#111827}.mfq .mfq-sexual-continue:disabled{background:${tokens.softWarm};border-color:${tokens.softWarm};color:${tokens.mutedWarm}}\n.mfq .mfq-sexual-next{font-size:12px;line-height:1.6;margin-top:10px}.mfq-sexual-details{margin-top:18px;border-top:1px solid ${tokens.softWarm};padding-top:14px;font-size:12px}.mfq-sexual-details summary{cursor:pointer;color:${tokens.tobaccoText};min-height:32px;line-height:1.7}.mfq-sexual-details p,.mfq-sexual-details small{display:block;text-align:left;overflow-wrap:anywhere;font-size:12px;line-height:1.6;margin:6px 0}.mfq-sexual-details span{display:block;color:${tokens.mutedWarm};margin-top:8px}\n.mfq-sexual-catalog{display:grid;gap:8px;font-size:13px;margin-top:20px}.mfq-sexual-catalog select{width:100%;min-width:0;max-width:100%;height:44px;font:inherit;border:1px solid ${tokens.inputBorder};border-radius:8px;padding:8px;background:white;color:inherit}\n.mfq-packs{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}.mfq-pack{border:1px solid ${tokens.softWarm};border-radius:12px;padding:10px 14px;background:${tokens.bone}}\n.mfq-pack[data-open]{border-color:${tokens.modernEspresso};box-shadow:inset 0 0 0 1px ${tokens.modernEspresso}}.mfq-pack-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-height:32px;font-size:13px}\n.mfq-pack-name{font-weight:600;color:${tokens.modernEspresso}}.mfq-pack-range{color:${tokens.mutedWarm};font-size:12px}.mfq-pack-value{margin-inline-start:auto;font-weight:600;color:${tokens.modernEspresso}}\n.mfq-pack-empty{margin-inline-start:auto;font-weight:600;color:#7A5A08}.mfq-pack .mfq-facet{margin-top:10px}.mfq-sexual .mfq-pack .mfq-facet>span{font-size:13px;margin-bottom:8px}\n.mfq-split-lines{margin-top:16px;padding-top:14px;border-top:1px solid ${tokens.softWarm};font-size:13px}.mfq-split-lines h6{margin:0 0 8px;font-size:13px;font-weight:600;color:${tokens.modernEspresso}}\n.mfq-split-lines ul{margin:0;padding-inline-start:18px;display:grid;gap:4px;line-height:1.6}\n.mfq-sexual-usage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(120px,1.4fr);gap:10px}.mfq-sexual-usage label{display:grid;gap:6px;font-size:12px;color:${tokens.mutedWarm}}\n.mfq-sexual-usage input,.mfq-sexual-usage select,.mfq-sexual-instructions textarea{width:100%;min-width:0;min-height:44px;border:1px solid ${tokens.inputBorder};border-radius:8px;background:${tokens.bone};padding:8px 10px;font:inherit;color:${tokens.modernEspresso};font-size:14px}.mfq-sexual-usage input{text-align:center}.mfq-sexual-usage input:disabled,.mfq-sexual-usage select:disabled,.mfq-sexual-instructions textarea:disabled{opacity:.6}\n.mfq-sexual-instructions{margin-top:10px;font-size:12px;color:${tokens.mutedWarm}}.mfq-sexual-instructions summary{cursor:pointer;min-height:32px;line-height:2}.mfq-sexual-instructions textarea{display:block;resize:vertical;margin-top:6px;line-height:1.6}.mfq-sexual-summary .mfq-sexual-schedule{max-width:65%;line-height:1.6}\n.mfq-sexual input:focus-visible,.mfq-sexual select:focus-visible,.mfq-sexual textarea:focus-visible,.mfq-sexual summary:focus-visible{outline:3px solid ${tokens.tobacco};outline-offset:3px}\n@media(max-width:760px){.mfq-sexual{grid-template-columns:minmax(0,1fr);gap:14px}.mfq-sexual-settings,.mfq-sexual-summary{padding:18px}.mfq-sexual-step{padding-inline-start:32px}.mfq-sexual .mfq-chip{min-width:60px;padding:8px 12px}.mfq-sexual .mfq-chip[aria-pressed=true]{padding:7px 11px}}\n@media(max-width:520px){.mfq-sexual-step:first-child .mfq-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.mfq-sexual-step:first-child .mfq-chip{min-width:0;padding:8px 4px;font-size:13px}.mfq-sexual-step:first-child .mfq-chip[aria-pressed=true]{padding:7px 3px}}\n@media(max-width:520px){.mfq-sexual-usage{grid-template-columns:repeat(2,minmax(0,1fr))}.mfq-sexual-usage label:last-child{grid-column:1/-1}}\n.mfq .mfq-product{margin-top:4px}.mfq .mfq-product-label{margin:0 0 8px;font-size:13px;font-weight:600;color:${tokens.modernEspresso}}\n.mfq .mfq-entry.mfq-chosen{align-items:stretch;gap:4px;padding:16px 48px 16px 16px;cursor:default;background:${tokens.bone}}.mfq .mfq-entry.mfq-chosen:hover{border-color:${tokens.softWarm};background:${tokens.bone}}\n.mfq .mfq-entry.mfq-chosen bdi,.mfq .mfq-entry.mfq-chosen small{text-align:right}.mfq .mfq-entry.mfq-chosen bdi{font-size:15px}\n.mfq .mfq-tick{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:${tokens.tobacco};color:white}.mfq .mfq-tick svg{width:13px;height:13px}\n.mfq .mfq-entry .mfq-usage{color:${tokens.modernEspresso};font-size:13px;font-weight:500}\n.mfq .mfq-entry.mfq-pick{cursor:pointer}.mfq .mfq-entry.mfq-pick[aria-pressed=true]{border:2px solid ${tokens.tobacco};background:${tokens.warmWash};padding:15px}.mfq .mfq-entry.mfq-pick:focus-visible{outline:3px solid ${tokens.tobacco};outline-offset:2px}\n.mfq .mfq-act{display:grid;justify-items:center;gap:8px;margin-top:18px}\n.mfq .mfq-issue{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;padding:12px 24px;border:0;border-radius:12px;background:${tokens.tobacco};color:white;font-family:inherit;font-size:17px;font-weight:600;line-height:1.3;cursor:pointer;box-shadow:0 1px 2px rgba(15,23,42,.14),0 6px 16px rgba(37,99,235,.22);transition:background .15s,box-shadow .15s}\n.mfq .mfq-issue:hover:not(:disabled){background:${tokens.tobaccoText};box-shadow:0 1px 2px rgba(15,23,42,.16),0 8px 20px rgba(37,99,235,.3)}.mfq .mfq-issue:active:not(:disabled){transform:translateY(1px)}\n.mfq .mfq-issue:focus-visible{outline:3px solid #93C5FD;outline-offset:3px}.mfq .mfq-issue:disabled{cursor:default;opacity:.92}.mfq .mfq-issue svg{flex:none}\n.mfq .mfq-issue.mfq-issue-off{background:${tokens.softWarm};color:${tokens.mutedWarm};box-shadow:none;cursor:not-allowed}.mfq .mfq-issue.mfq-issue-off:hover{background:${tokens.softWarm};box-shadow:none}\n.mfq .mfq-issue .mfq-spin{width:18px;height:18px;border-color:rgba(255,255,255,.45);border-top-color:white}\n.mfq .mfq-act-hint{margin:0;font-size:13px;line-height:1.6;text-align:center;color:${tokens.mutedWarm}}.mfq .mfq-act-hint.mfq-asked{color:${tokens.tobaccoText};font-weight:600}\n.mfq .mfq-act-note{justify-self:stretch;margin:0;padding:10px 14px;border-radius:10px;background:${tokens.warmIvory};font-size:13px;line-height:1.6;color:${tokens.modernEspresso}}\n.mfq .mfq-add-only{min-height:40px;font-size:13px}\n.mfq-sexual-summary .mfq-act{margin-top:4px}\n.mfq [data-need]{border-radius:12px;animation:mfq-need 1.8s ease-out}@keyframes mfq-need{0%,40%{box-shadow:0 0 0 3px rgba(37,99,235,.35);background:rgba(239,246,255,.7)}100%{box-shadow:0 0 0 0 rgba(37,99,235,0)}}\n@media(prefers-reduced-motion:reduce){.mfq [data-need]{animation:none;box-shadow:0 0 0 3px rgba(37,99,235,.35)}.mfq .mfq-issue{transition:none}}\n.mfq .mfc{margin:16px 0 0;justify-self:stretch;padding:16px;border:1px solid ${tokens.softWarm};border-radius:14px;background:${tokens.bone};text-align:right}\n.mfq .mfc-label{margin:0 0 8px;font-size:13px;font-weight:600;color:${tokens.modernEspresso}}\n.mfq .mfc-option{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 14px;border:1px solid ${tokens.softWarm};border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s}.mfq .mfc-option:hover{border-color:${tokens.tobacco}}\n.mfq .mfc-option input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.mfq .mfc-option:focus-within{outline:2px solid ${tokens.tobacco};outline-offset:2px}\n.mfq .mfc-box{flex:none;display:grid;place-items:center;width:22px;height:22px;border:1.5px solid ${tokens.inputBorder};border-radius:6px;background:#fff;color:#fff}.mfq .mfc-box svg{width:14px;height:14px;opacity:0}\n.mfq .mfc-on{border:2px solid ${tokens.tobacco};padding:9px 13px}.mfq .mfc-on .mfc-box{background:${tokens.tobacco};border-color:${tokens.tobacco}}.mfq .mfc-on .mfc-box svg{opacity:1}\n.mfq .mfc-text{display:flex;flex-direction:column;flex:1;min-width:0}.mfq .mfc-text strong{font-size:14px;font-weight:600;color:${tokens.modernEspresso}}.mfq .mfc-text small{font-size:12px;line-height:1.5;color:${tokens.mutedWarm}}\n.mfq .mfc-price{flex:none;font-size:14px;font-weight:600;color:${tokens.modernEspresso}}\n.mfq .mfc-facet{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:12px 2px 0}.mfq .mfc-facet>span{font-size:13px;font-weight:600;color:${tokens.modernEspresso}}.mfq .mfc-chips{display:flex;flex-wrap:wrap;gap:8px}\n.mfq .mfc-chip{min-height:36px;padding:6px 14px;border:1px solid ${tokens.softWarm};border-radius:999px;background:#fff;color:inherit;font:inherit;font-size:13px;cursor:pointer}.mfq .mfc-chip[aria-pressed=true]{border-color:${tokens.tobacco};background:${tokens.warmWash};font-weight:600}.mfq .mfc-chip:focus-visible{outline:2px solid ${tokens.tobacco};outline-offset:2px}\n.mfq .mfc-pay{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:12px 2px 0;font-size:14px;color:${tokens.modernEspresso}}.mfq .mfc-pay strong{font-size:18px;font-weight:600}.mfq .mfc-pay span{color:${tokens.mutedWarm}}\n@media(max-width:520px){.mfq .mfq-entry.mfq-chosen{padding:14px 44px 14px 14px}.mfq .mfq-tick{top:14px;right:14px}.mfq .mfc{padding:14px 12px}}\n@media(prefers-reduced-motion:reduce){.mfq .mfc-option{transition:none}}\n`;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormidableQuickTreatments\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// One press on a questionnaire, tried against Formidable's real SDK (outputs/questionnaire-formidable-2026-11-05/sdk-harness and ui-test).\n//\n// The medicine is added with Meno's addMedicationToPrescription, then this file:\n//  1. checks that the SDK's own list says what should be signed (checkBeforePress),\n//  2. hides everything in the frame except an open dialog (the theme rule + one attribute on the frame's <html>),\n//  3. presses the SDK's \"הפק מרשם\" and tells apart what it opened (pressIssue),\n//  4. checks that the doctor really sees only the signing dialog, with focus in the code box (checkSigningDialog).\n// If a check fails the signing stops with nothing signed. On a questionnaire the doctor never sees the form: these three treatments are the only options.\n//\n// Nothing here reads, writes or submits the signing code. The doctor types it into the SDK's own box, and Enter is the SDK's own.\nexport const SIGN_ONLY_ATTR=\"data-meno-sign-only\";const ON=`html[${SIGN_ONLY_ATTR}]`;/** Goes into the `theme` attribute from the first render, so the rule exists before anything can paint. Does nothing until the attribute is set.\n * The rule shows ANY open dialog, not only the signing one: a dialog the SDK adds later must never be hidden from the doctor. */export const SIGN_ONLY_THEME_CSS=` ${ON},${ON} body{background:transparent!important;overflow:hidden!important}`+`${ON} #ferx-root *{visibility:hidden!important}`+`${ON} #ferx-root .modal-content,${ON} #ferx-root .modal-content *{visibility:visible!important}`+`${ON} #ferx-root .modal-content{position:fixed!important;top:0!important;left:0!important;right:0!important;transform:none!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;border:0!important;border-radius:0!important;box-shadow:none!important}`+`${ON} #ferx-root .modal-content:has(#signature-pin:disabled)>button.absolute,${ON} #ferx-root .modal-content:has(#signature-pin:disabled)>button.absolute *{visibility:hidden!important;pointer-events:none!important}`;/** Goes into the portal's own stylesheet. A stylesheet's !important beats the inline height and min-height the SDK keeps writing on its iframe. */export const SIGN_ONLY_HOST_CSS=`fc-prescription-form[${SIGN_ONLY_ATTR}] iframe{min-height:0!important;height:var(--meno-sign-height,340px)!important}`;const TEXT={issue:\"הפק מרשם\",signature:\"חתימה אלקטרונית\",sign:\"חתום\",cancel:\"בטל\",confirm:\"אישור יצירת מרשם\",overlap:\"קיים מרשם פעיל לאותה תרופה\",success:\"המרשם נשמר בהצלחה\",unavailable:\"החתימה הדיגיטלית אינה זמינה כרגע. המרשם לא נוצר.\"};const clean=e=>(e?.textContent||\"\").trim().replace(/\\s+/g,\" \");function frameOf(app){const frame=app.querySelector(\"iframe\");let doc=null;try{doc=frame?.contentDocument||null;}catch{doc=null;}return{frame,doc,root:doc?.getElementById(\"ferx-root\")||null};}const buttonsNamed=(scope,name)=>Array.from(scope.querySelectorAll(\"button\")).filter(b=>clean(b)===name);/** What the frame shows right now. */export function frameState(app){const{root,doc}=frameOf(app);if(!root||!doc)return{connected:false};const modal=root.querySelector(\".modal-content\");const pin=root.querySelector(\"#signature-pin\");const pageAlert=Array.from(root.querySelectorAll(\"[role='alert']\")).find(element=>!element.closest(\".modal-content\"));const callout=Array.from(root.querySelectorAll(\"div.flex.gap-3.rounded-lg.border\")).map(clean);return{connected:true,modalTitle:modal?clean(modal.querySelector(\"h2\")):null,modalType:modal?.dataset.modalType??null,pin:!!pin,pinDisabled:pin?.disabled??null,pinFocused:!!pin&&doc.activeElement===pin,dialogError:modal?clean(modal.querySelector(\"[role='alert']\"))||null:null,pageError:pageAlert?clean(pageAlert):null,callout:callout.length?callout:null,issueButtons:buttonsNamed(root,TEXT.issue).length,signButtonBusy:modal?!!Array.from(modal.querySelectorAll(\"button\")).find(b=>b.disabled&&!clean(b)):null,fullPageSpinner:!!root.querySelector(\".fixed.inset-0.bg-background\\\\/80\"),success:clean(root).includes(TEXT.success)};}/** Presses the SDK's own button once and says what it opened. Only \"pin\" may go on to the signing-only view.\n * For a compounded prescription the answer comes without any network request, so a short limit is fine; the other prescription types ask the server first. */export async function pressIssue(app,limitMs=5e3){const{root}=frameOf(app);const started=performance.now(),done=value=>({...value,ms:performance.now()-started});if(!root)return done({kind:\"no-frame\"});const found=buttonsNamed(root,TEXT.issue);if(found.length!==1)return done({kind:\"no-button\",found:found.length});if(found[0].disabled)return done({kind:\"disabled\"});found[0].click();while(performance.now()-started<limitMs){const modal=root.querySelector(\".modal-content\");if(root.querySelector(\"#signature-pin\"))return done({kind:\"pin\"});if(modal){const title=clean(modal.querySelector(\"h2\"));if(title===TEXT.confirm)return done({kind:\"confirm\",title});if(title===TEXT.overlap)return done({kind:\"overlap\",title});return done({kind:\"other-dialog\",title});}const alert=Array.from(root.querySelectorAll(\"[role='alert']\")).find(element=>!element.closest(\".modal-content\"));if(alert)return done({kind:\"alert\",message:clean(alert)});await new Promise(resolve=>setTimeout(resolve,8));}return done({kind:\"nothing-happened\"});}/** Before pressing. The doctor won't see the SDK's list, so what will be signed is read back from it: one medicine, this name, this dose line, these dates. */export function checkBeforePress(app,wanted){const{root}=frameOf(app),problems=[];if(!root)return[\"no frame\"];const headings=Array.from(root.querySelectorAll(\"h3\")).filter(h=>/^תרופות\\s*\\(\\d+\\)$/.test(clean(h)));if(headings.length!==1)problems.push(`medicine heading found ${headings.length} times`);else if(Number(/\\((\\d+)\\)/.exec(clean(headings[0]))?.[1])!==(wanted.names?.length??1))problems.push(`list says ${clean(headings[0])}, expected ${wanted.names?`${wanted.names.length} medicines`:\"one medicine\"}`);const names=Array.from(root.querySelectorAll(\"h4\")).map(clean);if(!wanted.names&&(names.length!==1||names[0]!==wanted.name))problems.push(`list shows ${JSON.stringify(names)}`);if(wanted.names&&(names.length!==wanted.names.length||JSON.stringify([...names].sort())!==JSON.stringify([...wanted.names].sort())))problems.push(`list shows ${JSON.stringify(names)}`);const row=root.querySelector(\"h4\")?.closest(\"div.group\")||null,lines=Array.from(row?.querySelectorAll(\"p\")||[]).map(clean);if(wanted.text&&!lines.some(line=>line===clean({textContent:wanted.text})))problems.push(`dose line is ${JSON.stringify(lines[0])}`);if(wanted.until&&!lines.some(line=>line.includes(wanted.until)))problems.push(`validity line is ${JSON.stringify(lines[1])}`);const issue=buttonsNamed(root,TEXT.issue);if(issue.length!==1||issue[0].disabled)problems.push(`issue button: ${issue.length} found${issue[0]?.disabled?\", disabled\":\"\"}`);if(root.querySelector(\".modal-content\"))problems.push(\"a dialog is already open\");return problems;}/** Formidable's frame shows one of its sign-in refusals, such as a link already used. waitForFormidable doesn't take that for ready, and would wait out its 35 seconds.\n * Only its own wording counts (\"מרשמים הדיגיטליים\", all seven of them, from its he.json): the frame also shows a bare \"טוען...\" while loading, and on a slow line that lasts seconds. */export function signInRefused(app){const{root}=frameOf(app);if(!root||root.querySelector(\"button,input,select,textarea,h1,h2,h3,[role='alert']\"))return null;const text=clean(root);return/מרשמים הדיגיטליים/.test(text)?text:null;}/** The lines Formidable itself shows for the medicine: its dose line and its dates. This is what the signature will say, so this is what the doctor reads. */export function readList(app){const row=frameOf(app).root?.querySelector(\"h4\")?.closest(\"div.group\")||null;return Array.from(row?.querySelectorAll(\"p\")||[]).map(line=>(line.textContent||\"\").trim()).filter(Boolean);}/** Every medicine's row in Formidable's list: its name and its own lines (dose line, dates), for a split (the owner, 22.11.2026). */export function readRows(app){return Array.from(frameOf(app).root?.querySelectorAll(\"h4\")||[]).map(heading=>({name:clean(heading),lines:Array.from(heading.closest(\"div.group\")?.querySelectorAll(\"p\")||[]).map(line=>(line.textContent||\"\").trim()).filter(Boolean)}));}/** Safari's engine. Warming ahead (menoFormidable.ts hiddenForm) still goes through the old withoutHistoryEntry there, and would spend a one-use token for nothing, so a questionnaire doesn't warm in it. */export const safariEngine=()=>/AppleWebKit/.test(navigator.userAgent)&&!/Chrome|Chromium|Edg|OPR|Android/.test(navigator.userAgent);/** menoFormidable.ts's withoutHistoryEntry, with one change. There, in Safari, the SDK's document.close() fires a second load through the frame's onload, so the form starts twice and\n * a one-use sign-in token goes out twice (seen against the real SDK, 6.11.2026). Here the frame's onload runs once. Clinics' screens are left as they are; this is only for the questionnaire's signing. */export function withoutHistoryEntryOnce(app){if(!safariEngine())return;const append=app.appendChild,native=Object.getOwnPropertyDescriptor(HTMLIFrameElement.prototype,\"src\");if(!native?.get||!native.set)return;app.appendChild=function(node){const added=append.call(this,node);if(node instanceof HTMLIFrameElement)Object.defineProperty(node,\"src\",{configurable:true,get:()=>native.get.call(node),set:value=>{if(String(value)===\"about:blank\")queueMicrotask(()=>{if(node.isConnected){const handler=node.onload;node.onload=null;handler?.call(node,new Event(\"load\"));}});else native.set.call(node,value);}});return added;};}/** After pressing. Is the code box the signing dialog as we know it, focused, and the only thing on screen? */export function checkSigningDialog(app){const{frame,doc,root}=frameOf(app),problems=[];if(!frame||!doc||!root)return[\"no frame\"];const view=doc.defaultView;const modal=root.querySelector(\".modal-content\"),input=root.querySelector(\"#signature-pin\");if(!modal||!input)return[\"no signing dialog\"];if(!modal.contains(input))problems.push(\"code box is outside the dialog\");if(clean(modal.querySelector(\"h2\"))!==TEXT.signature)problems.push(`title is ${clean(modal.querySelector(\"h2\"))}`);if(input.tagName!==\"INPUT\"||input.maxLength!==6||input.inputMode!==\"numeric\"||input.disabled)problems.push(\"code box changed\");if(input.type!==\"password\"&&input.type!==\"text\")problems.push(`code box type ${input.type}`);if(buttonsNamed(modal,TEXT.sign).length!==1)problems.push(\"sign button\");if(buttonsNamed(modal,TEXT.cancel).length!==1)problems.push(\"cancel button\");if(doc.activeElement!==input)problems.push(\"focus is not in the code box\");const hidden=doc.documentElement.hasAttribute(SIGN_ONLY_ATTR);if(hidden){if(view.getComputedStyle(input).visibility!==\"visible\")problems.push(\"code box is not visible\");const box=modal.getBoundingClientRect(),frameBox=frame.getBoundingClientRect();if(frameBox.height+1<box.height)problems.push(`frame ${Math.round(frameBox.height)} shorter than dialog ${Math.round(box.height)}`);const inputBox=input.getBoundingClientRect(),under=doc.elementFromPoint(inputBox.x+inputBox.width/2,inputBox.y+inputBox.height/2);if(!under||!modal.contains(under))problems.push(\"something covers the code box\");const others=visibleOutsideDialog(app);if(others.length)problems.push(`${others.length} elements still visible, first ${others[0]}`);}return problems;}/** Everything in the frame that could still be seen, apart from the dialog. Empty when the hiding works. */export function visibleOutsideDialog(app){const{doc,root}=frameOf(app);if(!doc||!root)return[];const view=doc.defaultView;return Array.from(root.querySelectorAll(\"*\")).filter(element=>{if(element.closest(\".modal-content\"))return false;const box=element.getBoundingClientRect();return box.width>0&&box.height>0&&view.getComputedStyle(element).visibility===\"visible\";}).map(element=>`${element.tagName.toLowerCase()}.${String(element.className).slice(0,40)}`);}/** A second Enter that arrives before the browser has moved focus off the disabled box still fires the SDK's handler and sends a second signing request\n * (seen with presses under one frame apart), and that would be a second real prescription. This stops it: while the box is disabled, when the key is held down, or within a moment of the last Enter. */export function guardRepeatedEnter(app){const{doc}=frameOf(app);if(!doc)return()=>{};let last=-Infinity;const onKey=event=>{if(event.key!==\"Enter\")return;const box=doc.getElementById(\"signature-pin\");if(!box)return;const now=performance.now();if(box.disabled||event.repeat||now-last<300){event.preventDefault();event.stopImmediatePropagation();return;}last=now;};doc.addEventListener(\"keydown\",onKey,true);return()=>doc.removeEventListener(\"keydown\",onKey,true);}const stops=new WeakMap;/** Hides everything but an open dialog and keeps the frame exactly as tall as that dialog. Keeps working when the dialog grows, for a wrong-code message. */export function enterSigningOnly(app){const{doc,frame}=frameOf(app);if(!doc||!frame)return false;doc.documentElement.setAttribute(SIGN_ONLY_ATTR,\"\");app.setAttribute(SIGN_ONLY_ATTR,\"\");const view=doc.defaultView;let watched=null;const resize=new view.ResizeObserver(()=>measure());const measure=()=>{const modal=doc.querySelector(\"#ferx-root .modal-content\");if(modal!==watched){if(watched)resize.unobserve(watched);watched=modal;if(modal)resize.observe(modal);}if(modal)app.style.setProperty(\"--meno-sign-height\",`${Math.ceil(modal.getBoundingClientRect().height)}px`);};const tree=new view.MutationObserver(measure);tree.observe(doc.body,{childList:true,subtree:true});measure();const unguard=guardRepeatedEnter(app);stops.set(app,()=>{tree.disconnect();resize.disconnect();unguard();});return true;}export function leaveSigningOnly(app){stops.get(app)?.();stops.delete(app);frameOf(app).doc?.documentElement.removeAttribute(SIGN_ONLY_ATTR);app.removeAttribute(SIGN_ONLY_ATTR);app.style.removeProperty(\"--meno-sign-height\");}\nexport const __FramerMetadata__ = {\"exports\":{\"enterSigningOnly\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SIGN_ONLY_THEME_CSS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"checkBeforePress\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"readList\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SIGN_ONLY_HOST_CSS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withoutHistoryEntryOnce\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"checkSigningDialog\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"safariEngine\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"IssueOutcome\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Wanted\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"visibleOutsideDialog\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"leaveSigningOnly\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SIGN_ONLY_ATTR\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"readRows\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"guardRepeatedEnter\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"pressIssue\":{\"type\":\"function\",\"isAsync\":true,\"annotations\":{\"framerContractVersion\":\"1\"}},\"frameState\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"signInRefused\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./menoFormidableSigning.map","/** Formidable's signing code, typed by Meno instead of the doctor. The owner, 11.11.2026: \"so the doctors won't have to enter the 111111 code, and it\n * will be the default code, and we will transfer it automaticlly to formidable such that they won't need to enter it, also not even at the start.\"\n * Then: \"remove the spinner animation make it invisible to the doctor.\"\n *\n * The code comes from the server (formidable_signing_code) for the signed-in doctor's own Formidable account, only while that account isn't known to\n * sign with a code of its own. It is kept in this module's memory only: never in storage, a log, an attribute, or this page's code.\n * - Signing: when Formidable's own code box opens, the code goes into it and Formidable's own \"חתום\" is pressed, once per box. The doctor's act is the\n *   press that opened the box (\"הפק מרשם\", or \"אישור וחתימה\" on a questionnaire). What Formidable answered is read from the reply to its signing request\n *   (menoFormidableSession.ts), never from the request. A refusal is never retried by Meno: the box is the doctor's, a code Formidable may have refused\n *   can't be sent again from it, and the server is told, so the account isn't given the default again.\n * - A reply that doesn't prove nothing was signed (no answer, a server error) is never followed by \"nothing was signed, press again\": the questionnaire\n *   window first reads Formidable's history, and the clinic form stops signing by itself and says to check first. A second prescription is worse than a\n *   second press.\n * - Registration (and an account that still has no code): Formidable's own signup field gets the same code, and is hidden once it holds it. */import{callDoctorRpc,peekDoctorSessionIdentity}from\"https://framerusercontent.com/modules/KGFBZr5wsBdeI4S5ZDdN/rErYkPc7NppdRCIfNqaV/menoSupabase.js\";import{clearFormidableSession}from\"https://framerusercontent.com/modules/ybkl92TXWaaxSivj1N43/EnV79e4oszv0ehZ7JkiS/menoFormidableSession.js\";import{guardRepeatedEnter}from\"https://framerusercontent.com/modules/IQYBxiO5cmqhUZnOIIFy/wedons2ROi93pJtEhNQi/menoFormidableSigning.js\";/** On Formidable's own signup, once its code field holds the code: the field and the paragraph under it are hidden. Goes into the `theme` attribute. */export const CODE_FILLED_ATTR=\"data-meno-code-filled\";export const SIGNUP_CODE_CSS=` html[${CODE_FILLED_ATTR}] .space-y-2:has(input[name=\"hsmPin\"]),html[${CODE_FILLED_ATTR}] .space-y-2:has(input[name=\"hsmPin\"])+*{display:none!important}`;/** The signing with the default code is invisible to the doctor. While the form is armed, Formidable's code box, the blurred backdrop behind it and the\n * form's own \"טוען...\" cover with its spinner are never drawn: the doctor presses \"הפק מרשם\", the button rests a moment, and the signed prescription\n * shows. `display:none`, not `visibility`, so the form doesn't grow its frame for a box nobody sees. Goes into the `theme` attribute, so the rules exist\n * before anything renders; the attribute is set before the box can open, and taken off the moment the box is the doctor's. */export const AUTO_SIGN_ATTR=\"data-meno-auto-sign\";/** While a try is on its way, nothing in the form takes a press (the cover that would have stopped them is hidden). */export const AUTO_SIGNING_ATTR=\"data-meno-auto-signing\";export const AUTO_SIGN_CSS=` html[${AUTO_SIGN_ATTR}] #ferx-root .modal-content:has(#signature-pin),html[${AUTO_SIGN_ATTR}] #ferx-root .fixed.inset-0:has(+ .modal-content #signature-pin),`+`html[${AUTO_SIGN_ATTR}] #ferx-root .fixed.inset-0.bg-background\\\\/80{display:none!important} html[${AUTO_SIGNING_ATTR}] #ferx-root{pointer-events:none!important}`;const SIGNATURE_TITLE=\"חתימה אלקטרונית\",SIGN=\"חתום\";// Formidable's answer to the request Meno sent: at most a minute (it usually takes 1-3 seconds), then the box is the doctor's.\nconst ANSWER_LIMIT=6e4;// The server calls never hold the screen: a slow one is given up.\nconst RPC_TIMEOUT=8e3;const AGE=5*6e4;let cache=null,listening=false;function listen(){if(listening||typeof window===\"undefined\")return;listening=true;window.addEventListener(\"meno-doctor-session-change\",()=>{cache=null;});}const valid=value=>typeof value===\"string\"&&/^\\d{6}$/.test(value)?value:null;/** One cache per signed-in doctor (or delegated session), not per page. */const keyOf=config=>`${config.supabaseUrl}|${peekDoctorSessionIdentity(config)?.userId||\"delegated\"}`;// A report that couldn't reach the server waits here (never the code), and goes before the next question about the code.\nconst PENDING=\"meno-formidable-code-report:v1\";function readPending(key){try{const value=JSON.parse(window.localStorage.getItem(PENDING)||\"null\");return value&&value.key===key&&Date.now()-value.at<7*864e5?value:null;}catch{return null;}}function writePending(value){try{if(value)window.localStorage.setItem(PENDING,JSON.stringify(value));else window.localStorage.removeItem(PENDING);}catch{}}async function send(config,args){return callDoctorRpc(config,\"formidable_signing_code_report\",args,{timeoutMs:RPC_TIMEOUT,keepalive:true}).catch(()=>null);}async function flushPending(config){const key=keyOf(config),pending=readPending(key);if(!pending)return;if(await send(config,pending.args))writePending(null);}/** The code for the signed-in doctor's own Formidable account, or null with the server's reason (\"own\", \"off\"). `fresh` asks the server now (each code\n * box does, so a refusal in another tab, an admin's reset or the off switch count at once); otherwise a few minutes' answer is reused. A failure isn't kept. */export function signingCode(config,signal,options={}){listen();const key=keyOf(config);if(!options.fresh&&cache&&cache.key===key&&Date.now()-cache.at<AGE)return cache.value;const value=flushPending(config).then(()=>callDoctorRpc(config,\"formidable_signing_code\",{},{signal,timeoutMs:RPC_TIMEOUT})).then(data=>({code:valid(data?.code),reason:typeof data?.reason===\"string\"?data.reason:undefined}));const entry={key,at:Date.now(),value};cache=entry;value.catch(()=>{if(cache===entry)cache=null;});return value;}/** Tells the server what Formidable answered to the default code, and applies its answer: an account the server now marks as having its own code gets\n * no default on this page either. A report that fails is tried again, then kept until the next question. Never throws. */export async function reportSigningCode(config,outcome){if(outcome.kind!==\"signed\"&&outcome.kind!==\"refused\")return;const key=keyOf(config),own=()=>{cache={key,at:Date.now(),value:Promise.resolve({code:null,reason:\"own\"})};};if(outcome.kind===\"refused\"&&outcome.refusal===\"code\")own();const args=outcome.kind===\"signed\"?{p_outcome:\"accepted\"}:{p_outcome:\"refused\",p_kind:outcome.refusal,p_status:outcome.status,p_error:scrub(outcome.error)||null};for(let attempt=0;attempt<3;attempt++){if(attempt)await new Promise(resolve=>window.setTimeout(resolve,attempt*3e3));const answer=await send(config,args);if(answer){if(answer.state===\"own\")own();writePending(null);return;}}writePending({key,args,at:Date.now()});}/** Formidable's words, without any run of digits (a code it might echo). */const scrub=text=>text.replace(/\\d{4,}/g,\"#\").slice(0,200);// A code, a PIN or the signing credentials named: the code was refused. In English the word may be glued to others with \"_\" (INVALID_PIN).\n// No lookbehind: Safari before 16.4 can't parse one, and the whole module would fail to load.\nconst CODE_WORDS=/(?:^|[^a-z])pin(?:[^a-z]|$)|signature.?code|signing.?code|(?:wrong|invalid|incorrect|bad).?(?:code|password|passcode)|passcode|credential|קוד אישי|קוד חתימה|קוד תעודת|קוד לא תואם|hsm.{0,40}(?:auth|pin|password|credential|invalid|wrong|incorrect|locked|denied|failed|mismatch)/i;// Words of an outage: a server error that names the code because the code's own service is down is still an outage.\nconst OUTAGE_WORDS=/unavailable|time[ -]?out|timed out|unreachable|temporar|try again|busy|overload|maintenance|gateway|down/i;/** The reply doesn't prove that nothing was signed: no answer, a timeout, a server error. Formidable's own \"signing unavailable\" says it didn't sign. */export const mayHaveSigned=result=>result.status===0||result.status===408||result.status>=500&&result.error!==\"signing_unavailable\";/** Formidable's reply to a signing request with the default code. Its answer to a wrong code isn't documented, so only words about the code count as\n * \"code\" (the account is then never given the default again); a refusal that says nothing is \"unclear\", which the server only counts. */export function refusalKind(result,after407=false){const said=[result.error,result.code,result.details,...result.fields||[]].filter(Boolean).join(\" \");const passing=result.status===0||result.status>=500||result.status===429||result.status===408;// After a 407 the SDK renews its session and sends again; a refusal then is about that session, not the code.\nif(result.status===407||after407&&(result.status===401||result.status===403))return\"session\";if(CODE_WORDS.test(said)&&!(passing&&OUTAGE_WORDS.test(said)))return\"code\";if(passing)return\"transient\";if(result.validation||result.status===409)return\"prescription\";return\"unclear\";}const clean=element=>(element?.textContent||\"\").trim().replace(/\\s+/g,\" \");function frameOf(app){const frame=app.querySelector(\"iframe\");let doc=null;try{doc=frame?.contentDocument||null;}catch{doc=null;}return{doc,root:doc?.getElementById(\"ferx-root\")||doc?.body||null};}const pause=(ms,signal)=>new Promise((resolve,reject)=>{if(signal?.aborted){reject(new DOMException(\"Aborted\",\"AbortError\"));return;}const stop=()=>{window.clearTimeout(timer);reject(new DOMException(\"Aborted\",\"AbortError\"));};const timer=window.setTimeout(()=>{signal?.removeEventListener(\"abort\",stop);resolve();},ms);signal?.addEventListener(\"abort\",stop,{once:true});});async function until(test,ms,signal){for(const limit=Date.now()+ms;;await pause(25,signal)){if(test())return true;if(Date.now()>limit)return false;}}/** Types into a field of Formidable's React form exactly as a keyboard would end up: the value through the element's own setter, then its input event. */export function typeInto(input,value){const view=input.ownerDocument.defaultView||window;const setter=Object.getOwnPropertyDescriptor(view.HTMLInputElement.prototype,\"value\")?.set;if(setter)setter.call(input,value);else input.value=value;input.dispatchEvent(new view.Event(\"input\",{bubbles:true}));}/** Formidable's signing dialog as we know it: its title, its six-digit box and one \"חתום\" (while it sends, \"חתום\" is a spinner, so this is null then). */export function signingBox(app){const{root}=frameOf(app);const input=root?.querySelector(\"#signature-pin\"),modal=input?.closest(\".modal-content\");if(!input||!modal||input.tagName!==\"INPUT\"||input.maxLength!==6||clean(modal.querySelector(\"h2\"))!==SIGNATURE_TITLE)return null;const sign=Array.from(modal.querySelectorAll(\"button\")).filter(button=>clean(button)===SIGN);return sign.length===1?{input,modal,sign:sign[0]}:null;}const tried=new WeakSet;/** Formidable's answer to the request a try sent: the first one after `after` that isn't a 407 (the SDK renews its session and sends again once), or\n * the 407 itself if nothing follows within 10 s. `after407`: a 407 came first. Null: nothing within `ms`. */function nextCreate(watch,after,ms,signal){return new Promise(resolve=>{let done=false,renewal=0;const finish=value=>{if(done)return;done=true;window.clearTimeout(timer);window.clearTimeout(renewal);stop();signal.removeEventListener(\"abort\",aborted);resolve(value);};const look=()=>{const list=watch.creates().slice(after),index=list.findIndex(result=>result.status!==407);if(index>=0){finish({result:list[index],after407:index>0});return;}if(list.length&&!renewal)renewal=window.setTimeout(()=>{const now=watch.creates().slice(after);finish({result:now[now.length-1],after407:true});},1e4);};const stop=watch.onCreate(look),aborted=()=>finish(null);const timer=window.setTimeout(()=>finish(null),ms);signal.addEventListener(\"abort\",aborted,{once:true});look();});}/** The one automatic try for the open code box: the code, then Formidable's own \"חתום\", then Formidable's answer. Nothing is sent twice. */export async function signWithCode(app,code,watch,signal){const box=signingBox(app);if(!box)return{kind:\"not-sent\",why:\"no code box\"};const{input,modal}=box;if(tried.has(input))return{kind:\"not-sent\",why:\"tried\"};tried.add(input);if(input.value||input.disabled)return{kind:\"not-sent\",why:\"the doctor's box\"};const sent=watch.creates().length;// While this try is on its way, no Enter and no other press on \"חתום\" reaches the form. Formidable's box still fires its submit for an Enter that\n// arrives as it turns disabled, and that request would be a second real prescription (seen in Chromium, 11.11.2026).\nconst doc=input.ownerDocument;let ours=false;const hold=event=>{if(ours)return;const target=event.target,button=target?.closest?.(\"button\")||null;if(event.type===\"keydown\"?event.key===\"Enter\":!!button&&clean(button)===SIGN){event.preventDefault();event.stopImmediatePropagation();}};doc.addEventListener(\"keydown\",hold,true);doc.addEventListener(\"click\",hold,true);try{for(let attempt=0;;attempt++){typeInto(input,code);// React applies the change in its own task; \"חתום\" reads the box from the render after it.\nawait pause(40,signal);const sign=Array.from(modal.querySelectorAll(\"button\")).filter(button=>clean(button)===SIGN&&!button.disabled);if(!input.isConnected||input.value!==code||sign.length!==1)return{kind:\"not-sent\",why:\"box changed\"};ours=true;try{sign[0].click();}finally{ours=false;}// The form checks the box itself first and only then sends. Sent: the box turns disabled, or the request is seen.\nif(await until(()=>watch.creates().length>sent||input.disabled||!input.isConnected,1500,signal))break;// Nothing went out, so typing again can't send anything twice. Once.\nif(attempt)return{kind:\"not-sent\",why:\"the form did not send\"};}const answer=await nextCreate(watch,sent,ANSWER_LIMIT,signal);if(!answer)return{kind:\"unanswered\"};const{result,after407}=answer;if(result.ok){// A prescription with repeats sends one request per repeat: done when the box closes, or opens again after a later one failed.\nawait until(()=>!input.isConnected||!input.disabled,ANSWER_LIMIT,signal);return result.meno?{kind:\"kept\"}:{kind:\"signed\"};}if(result.meno){// Issue after payment (12.11.2026): Meno refused to keep it (a choice outside the clinic's prices, a network error). The form shows why; the workspace closes\n// the code box (closeSigningBoxWhenIdle), which would otherwise say the code is wrong.\nawait until(()=>!input.isConnected||!input.disabled,3e3,signal);return{kind:\"kept-refused\",error:result.error||\"\"};}// The form takes its answer in a moment; until then the box is still busy.\nawait until(()=>!input.isConnected||!input.disabled,3e3,signal);const refusal=refusalKind(result,after407);return{kind:\"refused\",refusal,status:result.status,error:result.error||result.code||\"\",uncertain:refusal===\"transient\"&&mayHaveSigned(result)};}finally{doc.removeEventListener(\"keydown\",hold,true);doc.removeEventListener(\"click\",hold,true);}}/** Issue after payment (12.11.2026): closes Formidable's code box as its own Escape does, when Meno, not Formidable, refused the press. */export function closeSigningBox(app){const input=frameOf(app).doc?.getElementById(\"signature-pin\");const modal=input?.closest(\".modal-content\")||input?.closest(\"[data-modal-type],[role=dialog]\");if(!input||!input.isConnected||!modal)return;// Formidable's own \"בטל\" (its form until early December 2026) or \"סגירה\" (its form since, 3.12.2026; its X says the same): it empties the box and\n// closes it. Escape, if a later SDK has neither.\nconst cancel=Array.from(modal.querySelectorAll(\"button\")).find(button=>(clean(button)===\"בטל\"||clean(button)===\"סגירה\")&&!button.disabled);if(cancel){cancel.click();return;}const view=input.ownerDocument.defaultView||window;input.dispatchEvent(new view.KeyboardEvent(\"keydown\",{key:\"Escape\",code:\"Escape\",keyCode:27,bubbles:true,cancelable:true}));}/** Issue after payment (12.11.2026): the same, once Formidable's form has taken the refusal (its box is busy until then). Typed by Meno or by the doctor. */export async function closeSigningBoxWhenIdle(app,signal){for(const started=Date.now();Date.now()-started<4e3&&!signal.aborted;){const input=frameOf(app).doc?.getElementById(\"signature-pin\");if(!input)return;if(!input.disabled){closeSigningBox(app);return;}try{await pause(50,signal);}catch{return;}}}/** After an automatic try that didn't sign: the box is the doctor's, with focus in it and its text selected, so typing replaces it.\n * `blocked`: a code Formidable refused or may have signed with, which then can't be sent from this box again (Enter or \"חתום\"). Null: \"חתום\" tries again. */export function leaveBoxToDoctor(app,blocked,signal){const box=signingBox(app),doc=frameOf(app).doc,input=box?.input||doc?.getElementById(\"signature-pin\");if(!input||!doc)return;if(blocked){const block=event=>{if(!input.isConnected||input.value!==blocked)return;const target=event.target,button=target?.closest?.(\"button\")||null;if(event.type===\"keydown\"?event.key===\"Enter\"&&target===input:!!button&&clean(button)===SIGN){event.preventDefault();event.stopImmediatePropagation();input.focus({preventScroll:true});input.select();}};doc.addEventListener(\"keydown\",block,{capture:true,signal});doc.addEventListener(\"click\",block,{capture:true,signal});}// The form enables the box again a moment after its answer.\nvoid until(()=>!input.disabled||!input.isConnected,3e3,signal).then(()=>{if(input.isConnected&&!input.disabled){input.focus({preventScroll:true});input.select();}},()=>{});}/** A box that holds the default after a try (a passing failure): if the doctor sends it as it is, Formidable's answer is reported as Meno's own would be,\n * so a wrong default is never sent a third time and a signature with it counts. A code the doctor typed is never reported. */export function watchDoctorsPress(app,code,config,watch,signal,heard=()=>{}){const input=frameOf(app).doc?.getElementById(\"signature-pin\");if(!input)return;const doc=input.ownerDocument;const pressed=event=>{const target=event.target,button=target?.closest?.(\"button\")||null;if(!(event.type===\"keydown\"?event.key===\"Enter\"&&target===input:!!button&&clean(button)===SIGN))return;if(!input.isConnected||input.value!==code||input.disabled)return;const after=watch.creates().length;void nextCreate(watch,after,ANSWER_LIMIT,signal).then(answer=>{if(!answer||signal.aborted)return;// 3.12.2026 (review): Meno's own answer (a press kept until payment, or refused) never reached Formidable, so it says nothing about the code:\n// the page hears it as signWithCode's own outcome, and the server isn't told.\nif(answer.result.meno){heard(answer.result.ok?{kind:\"kept\"}:{kind:\"kept-refused\",error:answer.result.error||\"\"});return;}const outcome=answer.result.ok?{kind:\"signed\"}:(()=>{const refusal=refusalKind(answer.result,answer.after407);return{kind:\"refused\",refusal,status:answer.result.status,error:answer.result.error||answer.result.code||\"\",uncertain:refusal===\"transient\"&&mayHaveSigned(answer.result)};})();void reportSigningCode(config,outcome);heard(outcome);});};doc.addEventListener(\"keydown\",pressed,{capture:true,signal});doc.addEventListener(\"click\",pressed,{capture:true,signal});}/** Formidable's own signup (registration, or an account that still has no code): its code field gets the code, then hides. Nothing is sent before the\n * form's own submit. `state` is told \"filled\" once it holds the code, and \"failed\" if the field never takes it (then it stays visible for typing). */export function fillSignupCode(app,code,signal,state){let told=\"\",since=0;const tell=value=>{if(told!==value){told=value;state?.(value);}};const tick=()=>{const{doc,root}=frameOf(app);const input=root?.querySelector('input[name=\"hsmPin\"]')||null;if(!doc||!input){since=0;return;}if(input.value===code){since=0;doc.documentElement.setAttribute(CODE_FILLED_ATTR,\"\");tell(\"filled\");return;}if(input.value&&!doc.documentElement.hasAttribute(CODE_FILLED_ATTR))return;if(!since)since=Date.now();if(Date.now()-since>2500){doc.documentElement.removeAttribute(CODE_FILLED_ATTR);tell(\"failed\");return;}typeInto(input,code);};const timer=window.setInterval(tick,150);signal.addEventListener(\"abort\",()=>window.clearInterval(timer),{once:true});tick();}/** The clinic screen's form: every code box Formidable opens gets the default once, unseen, and a signup screen gets it in its field.\n * The form is armed (AUTO_SIGN_ATTR) from the moment its document exists, before any box can open, so a box that opens is never drawn. A box shows for\n * the doctor at once whenever Meno won't sign in it: no code (the server's \"own\" or \"off\", or no answer within 4 s), a box Meno doesn't recognize, or a try\n * that didn't sign. After a reply that doesn't prove nothing was signed, Meno stops signing by itself in this form. `outcome` hears every automatic try\n * (and the doctor's own press of the default after one); `settled` hears a later signature, so a note about a failure can go. */export function autoSignInForm(app,options){const{config,watch,signal}=options;// The server's last answer: undefined until it comes, null if the call failed. Asked as the form opens, and again for each box.\nlet known;const ask=fresh=>signingCode(config,signal,{fresh}).then(answer=>{if(!signal.aborted)known=answer;return answer;},()=>{if(!signal.aborted&&known===undefined)known=null;return null;});void ask(false);let busy=false,signup=false,stopped=false,guarded=null,shown=null;const mark=(name,on)=>{const doc=frameOf(app).doc;if(doc)doc.documentElement.toggleAttribute(name,on);};const doctors=pin=>{tried.add(pin);shown=pin;mark(AUTO_SIGN_ATTR,false);};const heard=outcome=>{if(outcome.kind===\"refused\"&&outcome.refusal===\"code\")known={code:null,reason:\"own\"};if(outcome.kind===\"unanswered\"||outcome.kind===\"refused\"&&outcome.uncertain)stopped=true;if(outcome.kind===\"refused\"&&outcome.refusal===\"session\")clearFormidableSession();options.outcome?.(outcome);};// Any later signature in this form (Meno's or the doctor's) clears what was said about a failure.\nconst unsubscribe=watch.onCreate(result=>{if(result.ok)options.settled?.();});signal.addEventListener(\"abort\",unsubscribe,{once:true});const tick=async()=>{if(busy||signal.aborted)return;const doc=frameOf(app).doc;if(!doc||!doc.getElementById(\"ferx-root\"))return;// The questionnaire's guard against a repeated Enter, on this form's own document too: an Enter that arrives as the box turns disabled\n// still fires the form's submit, and that would be a second real prescription, typed code or not.\nif(doc!==guarded){guarded=doc;const remove=guardRepeatedEnter(app);signal.addEventListener(\"abort\",remove,{once:true});}if(!signup&&doc.querySelector('input[name=\"hsmPin\"]')){signup=true;void signingCode(config,signal).then(answer=>{if(answer.code&&!signal.aborted)fillSignupCode(app,answer.code,signal);},()=>{});}// Only the box itself leaving the page ends the doctor's turn with it (\"חתום\" turns into a spinner while it sends).\nif(shown&&!shown.isConnected)shown=null;const pin=doc.getElementById(\"signature-pin\");const wanted=!stopped&&(known===undefined||known===null||!!known.code);if(!pin){mark(AUTO_SIGN_ATTR,wanted&&!shown);return;}if(shown===pin){mark(AUTO_SIGN_ATTR,false);return;}// Still on its way after Meno's own try (repeats send one request each): left as it is until it settles.\nif(tried.has(pin)&&pin.disabled)return;const box=signingBox(app);if(!wanted||!box||box.input!==pin||tried.has(pin)||pin.value||pin.disabled){doctors(pin);return;}busy=true;try{// Asked again for this box, so a refusal in another tab, an admin's reset or the off switch count at once. A slow answer is waited for 4 s.\nconst answer=await Promise.race([ask(true),pause(4e3,signal).then(()=>undefined)]);const code=(answer||known||null)?.code||null;if(signal.aborted)return;if(!code||pin.value||!pin.isConnected){doctors(pin);return;}mark(AUTO_SIGNING_ATTR,true);let outcome;try{outcome=await signWithCode(app,code,watch,signal);}finally{mark(AUTO_SIGNING_ATTR,false);}// The box shows first; the server hears about it after, and never holds the screen.\nif(outcome.kind!==\"signed\"&&outcome.kind!==\"kept\"&&outcome.kind!==\"kept-refused\")doctors(pin);if(outcome.kind===\"refused\"){const blocked=outcome.refusal===\"code\"||outcome.refusal===\"unclear\"||outcome.uncertain;leaveBoxToDoctor(app,blocked?code:null,signal);if(!blocked)watchDoctorsPress(app,code,config,watch,signal,heard);}heard(outcome);void reportSigningCode(config,outcome);}catch{if(!signal.aborted)doctors(pin);}finally{busy=false;}};const timer=window.setInterval(()=>void tick(),50);signal.addEventListener(\"abort\",()=>window.clearInterval(timer),{once:true});}/** The questionnaire window's question after a reply that doesn't prove nothing was signed: is there a signature after all? Asked a few times, out of sight. */export async function signedAfterAll(read,signal){for(const wait of[0,3e3,4e3,5e3]){if(wait)await pause(wait,signal);if(await read().catch(()=>false))return true;}return false;}\nexport const __FramerMetadata__ = {\"exports\":{\"signingBox\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AUTO_SIGNING_ATTR\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SIGNUP_CODE_CSS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AUTO_SIGN_ATTR\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"closeSigningBox\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RefusalKind\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSignInForm\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"mayHaveSigned\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"reportSigningCode\":{\"type\":\"function\",\"isAsync\":true,\"annotations\":{\"framerContractVersion\":\"1\"}},\"CodeAnswer\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AUTO_SIGN_CSS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AutoSignOutcome\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CODE_FILLED_ATTR\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"signWithCode\":{\"type\":\"function\",\"isAsync\":true,\"annotations\":{\"framerContractVersion\":\"1\"}},\"closeSigningBoxWhenIdle\":{\"type\":\"function\",\"isAsync\":true,\"annotations\":{\"framerContractVersion\":\"1\"}},\"typeInto\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"watchDoctorsPress\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"refusalKind\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"signedAfterAll\":{\"type\":\"function\",\"isAsync\":true,\"annotations\":{\"framerContractVersion\":\"1\"}},\"signingCode\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"leaveBoxToDoctor\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CreateWatch\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fillSignupCode\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./menoFormidableCode.map"],"mappings":"A,u5BAA2iC,SAAgBgG,GAAe,EAAM,EAAS,EAAQ,CAAC,OAAOC,EAAM,KAAK,EAAI,IAAQ,CAAC,IAAMC,EAAKC,GAAaC,CAAG,CAAC,CAAC,SAASA,EAAI,oBAAoBC,CAAQ,EAAED,EAAI,oBAAoBC,EAASF,GAAaC,CAAG,CAAC,CAAC,GAASE,EAAKF,EAAI,0BAA0BzC,GAAuByC,EAAIF,CAAI,EAAEb,EAAsBe,EAAIF,EAAKK,CAAO,EAAE,GAAGN,EAAM,SAAS,EAAE,CAAC,GAAK,CAAC,sBAAoB,qBAAmB,GAAGO,GAAQF,EAAK,MAAM,CAAC,GAAGE,EAAO,SAASF,EAAK,0BAA0BJ,EAAK,GAAG,GAAGT,GAAmBa,EAAKJ,EAAKK,CAAO,GAAGD,EAAK,QAAQ,CAAE,CAC7jD,IAAMG,EAAO,CAAC,CAACF,GAAS,cAAcR,GAAiBO,CAAI,CAAC,EAAE,OAAO,U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