{"version":3,"file":"AnswerSectionHeader.B3dqDMHA.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_CKT6jEEQ","addPropertyControls","ControlType","init_menoQuestionCatalog","requestStatusColors","isPatientQuestionnaireAnswer","requestStatusLabel","init_menoMaps","tokens","fontFamily","sectionLabel","StatusPill","props","tone","status","label","style","init_StatusPill","AnswerBlock","question","answerType","answer","SCALE_SEGMENTS","filled","index","clampScale","parsed","init_AnswerBlock","AnswerSectionHeader","section","init_AnswerSectionHeader"],"sources":["https:/framerusercontent.com/modules/sKJEjpScA87qkG1LtOs8/QbOXXGoZIMiVolNyx8Fw/StatusPill.js","https:/framerusercontent.com/modules/hwRLPJufOeMQGNzVyKd6/exkmFIjJ8JUxEBDKY09i/AnswerBlock.js","https:/framerusercontent.com/modules/AssuKo2xaV7EdarPcmcY/4XdvkpZbmRv7baq1B1V1/AnswerSectionHeader.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{requestStatusLabel,requestStatusColors,fontFamily}from\"https://framerusercontent.com/modules/tVCqDSXfHsd06f23WSmv/tFSEtuEyMXpbOjIK8QT9/menoMaps.js\";/**\n * StatusPill\n *\n * Small RTL Hebrew status pill for Requests.Status (\"New\" | \"In review\" |\n * \"Awaiting info\" | \"Approved\" | \"Declined\"). Label and bg/fg tone come from\n * the shared `menoMaps` module — the single source of truth for every Meno\n * Doctor Console indicator.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function StatusPill(props){const{status=\"New\",style}=props;const tone=requestStatusColors[status];const label=requestStatusLabel[status];return /*#__PURE__*/_jsx(\"div\",{className:\"meno-workspace\",dir:\"rtl\",style:{...style,position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",width:\"max-content\",paddingBlock:\"4px\",paddingInline:\"8px\",borderRadius:\"6px\",backgroundColor:tone.bg,color:tone.fg,fontFamily,fontSize:\"12px\",fontWeight:500,lineHeight:\"1.2em\",whiteSpace:\"nowrap\",textAlign:\"right\"},children:label});}addPropertyControls(StatusPill,{status:{type:ControlType.Enum,title:\"Status\",options:Object.keys(requestStatusLabel),optionTitles:Object.values(requestStatusLabel),defaultValue:\"New\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"StatusPillProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"StatusPill\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{isPatientQuestionnaireAnswer}from\"https://framerusercontent.com/modules/2erWdu31KqS0DbTnegTj/NdYj4AFj20zU2gjUAsLT/menoQuestionCatalog.js\";import{addPropertyControls,ControlType}from\"framer\";import{tokens,fontFamily}from\"https://framerusercontent.com/modules/tVCqDSXfHsd06f23WSmv/tFSEtuEyMXpbOjIK8QT9/menoMaps.js\";const SCALE_SEGMENTS=5;/**\n * AnswerBlock\n *\n * RTL Hebrew questionnaire answer row: `question` (Small, Muted Warm) on\n * top, `answer` (Body, Modern Espresso) below. Rendering adapts to\n * `answerType`: `scale` adds a \"{answer} / 5\" readout plus a 5-segment\n * Tobacco/Soft Warm mini bar. All other answer types display their original\n * text in the same neutral style. A bottom hairline keeps the list rhythm.\n * Labels and colors come from the shared `menoMaps` module.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 420\n */export default function AnswerBlock(props){const{question=\"תאר את התסמינים העיקריים\",answer=\"כאבי ראש קלים בבוקר, משתפרים במהלך היום\",answerType=\"text\",style}=props;if(!isPatientQuestionnaireAnswer(undefined,question))return null;return /*#__PURE__*/_jsxs(\"div\",{className:\"meno-workspace\",dir:\"rtl\",style:{...style,position:\"relative\",boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",width:\"100%\",minWidth:0,overflowWrap:\"anywhere\",gap:\"6px\",padding:\"16px 14px\",borderRadius:\"6px\",backgroundColor:\"transparent\",borderInlineStart:\"3px solid transparent\",borderBottom:`1px solid ${tokens.softWarm}`,fontFamily},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"row\",alignItems:\"center\",gap:\"6px\"},children:/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"13px\",fontWeight:400,lineHeight:\"1.7em\",color:tokens.mutedWarm,textAlign:\"right\"},children:question})}),answerType===\"scale\"?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:\"6px\"},children:[/*#__PURE__*/_jsx(\"span\",{dir:\"ltr\",style:{display:\"block\",unicodeBidi:\"isolate\",fontSize:\"15px\",fontWeight:400,lineHeight:\"1.7em\",color:tokens.modernEspresso,textAlign:\"right\"},children:answer+\" / \"+SCALE_SEGMENTS}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"row\",gap:\"4px\"},children:Array.from({length:SCALE_SEGMENTS}).map((_,index)=>{const filled=index<clampScale(answer);return /*#__PURE__*/_jsx(\"span\",{style:{width:\"22px\",height:\"6px\",borderRadius:\"3px\",backgroundColor:filled?tokens.tobacco:tokens.softWarm}},index);})})]}):/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"15px\",fontWeight:400,lineHeight:\"1.7em\",color:tokens.modernEspresso,textAlign:\"right\"},children:answer})]});}function clampScale(answer){const parsed=Number.parseInt(answer,10);if(Number.isNaN(parsed))return 0;return Math.max(0,Math.min(SCALE_SEGMENTS,parsed));}addPropertyControls(AnswerBlock,{question:{type:ControlType.String,title:\"Question\",defaultValue:\"תאר את התסמינים העיקריים\",displayTextArea:true},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"כאבי ראש קלים בבוקר, משתפרים במהלך היום\",displayTextArea:true},answerType:{type:ControlType.Enum,title:\"Answer Type\",options:[\"text\",\"scale\",\"choice\",\"number\",\"boolean\"],optionTitles:[\"טקסט\",\"סולם\",\"בחירה\",\"מספר\",\"כן/לא\"],defaultValue:\"text\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"AnswerType\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"AnswerBlock\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"420\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"AnswerBlockProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{sectionLabel,tokens,fontFamily}from\"https://framerusercontent.com/modules/tVCqDSXfHsd06f23WSmv/tFSEtuEyMXpbOjIK8QT9/menoMaps.js\";/**\n * AnswerSectionHeader\n *\n * RTL Hebrew eyebrow header used to group AnswerBlock rows by\n * Answers.Section (\"General\" | \"Symptoms\" | \"History\" | \"Lifestyle\" |\n * \"Goals\" | \"Safety\"). Renders the section label (Eyebrow, Tobacco Text),\n * right-aligned, followed by a hairline Soft Warm rule that fills the\n * remaining width to the inline-end (left). Label comes from the shared\n * `menoMaps` module.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 420\n */export default function AnswerSectionHeader(props){const{section=\"General\",label=\"\",style}=props;return /*#__PURE__*/_jsxs(\"div\",{className:\"meno-workspace\",dir:\"rtl\",style:{...style,position:\"relative\",boxSizing:\"border-box\",display:\"flex\",flexDirection:\"row\",alignItems:\"center\",gap:\"10px\",width:\"100%\",fontFamily},children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:\"0 1 auto\",whiteSpace:\"normal\",fontSize:\"17px\",fontWeight:600,lineHeight:\"1.2em\",color:tokens.tobaccoText,textAlign:\"right\"},children:label||sectionLabel[section]||section}),/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{flex:\"1 1 auto\",height:\"1px\",minWidth:\"12px\",backgroundColor:tokens.softWarm}})]});}addPropertyControls(AnswerSectionHeader,{section:{type:ControlType.Enum,title:\"Section\",options:Object.keys(sectionLabel),optionTitles:Object.values(sectionLabel),defaultValue:\"General\"},label:{type:ControlType.String,title:\"Hebrew Label\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnswerSectionHeader\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"420\"}},\"AnswerSectionHeaderProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,6QAUG,SAAwBe,EAAW,EAAM,CAAC,GAAK,CAAC,SAAO,MAAM,SAAOC,EAAYC,EAAKT,EAAoBU,GAAcC,EAAMT,EAAmBQ,GAAQ,MAAoB,gBAAK,MAAM,CAAC,UAAU,iBAAiB,IAAI,MAAM,MAAM,CAAC,GAAGE,EAAM,SAAS,WAAW,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,MAAM,cAAc,aAAa,MAAM,cAAc,MAAM,aAAa,MAAM,gBAAgBH,EAAK,GAAG,MAAMA,EAAK,GAAG,aAAW,SAAS,OAAO,WAAW,IAAI,WAAW,QAAQ,WAAW,SAAS,UAAU,OAAO,EAAE,SAASE,CAAK,CAAC,CAAE,C,0CAACd,EAAoBU,EAAW,CAAC,OAAO,CAAC,KAAKT,EAAY,KAAK,MAAM,SAAS,QAAQ,OAAO,KAAKI,CAAkB,EAAE,aAAa,OAAO,OAAOA,CAAkB,EAAE,a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