"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("../_svg/PencilEdit.js"),t=require("../_svg/RadioButton.js");exports.RuleVariantCard=function(s){var r=s.variantName,a=void 0===r?"Default Variant":r,o=s.decisionStrength,l=void 0===o?90:o,d=s.children,p=s.isEditable,g=s.isSelected,c=void 0!==g&&g,x=s.onToggle,f=s.onEdit,h=s.styleOverrides,u=void 0===h?{}:h,_={container:e.__assign({border:c?"1px solid #2563EB":"1px solid #E5E7EB",borderRadius:"8px",padding:"16px",backgroundColor:"#FFFFFF",marginBottom:"12px",fontFamily:'"Inter", "Plus Jakarta Sans", sans-serif',boxShadow:"0 1px 2px rgba(0,0,0,0.05)",position:"relative"},u.container),headerRow:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",marginBottom:"12px",width:"100%",flexWrap:"wrap",gap:"8px"},leftGroup:{display:"flex",alignItems:"center",gap:"6px",flexWrap:"wrap",flex:"1 1 auto",marginRight:"8px"},badge:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"20px",padding:"0 6px",borderRadius:"4px",fontSize:"11px",fontWeight:500,lineHeight:"100%",whiteSpace:"nowrap",backgroundColor:"#F7F8FA",border:"1px solid #F0F2F5",color:"#374151"},divider:{color:"#CBD5E1",fontSize:"14px",fontWeight:300,display:"inline-block"},strengthText:{fontSize:"12px",color:"#37383B",fontWeight:400,display:"flex",alignItems:"center",gap:"3px",whiteSpace:"nowrap"},strengthValue:{fontWeight:700},editBtn:{display:"flex",alignItems:"center",gap:"4px",background:"none",border:"none",cursor:"pointer",color:"#475569",fontSize:"12px",fontWeight:500,padding:"2px 0",whiteSpace:"nowrap",alignSelf:"flex-start"},selectionWrapper:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",padding:"2px"},content:{fontSize:"13px",color:"#37383B",lineHeight:"1.5",fontWeight:400,marginTop:"4px",display:"block",wordBreak:"break-word"}},y=a.toLowerCase().includes("default")?_.badge:e.__assign(e.__assign({},_.badge),{backgroundColor:"#FDF2F899",color:"#DB2777",borderColor:"#FDF2F8"});return i.jsxs("div",e.__assign({style:_.container},{children:[i.jsxs("div",e.__assign({style:_.headerRow},{children:[i.jsxs("div",e.__assign({style:_.leftGroup},{children:[p&&i.jsx("div",e.__assign({style:_.selectionWrapper,onClick:function(){return x&&x(!c)}},{children:i.jsx(t.default,{isSelected:c})})),i.jsx("div",e.__assign({style:y},{children:a})),i.jsx("span",e.__assign({style:_.divider},{children:"|"})),i.jsxs("span",e.__assign({style:_.strengthText},{children:["Decision Strength ",i.jsxs("span",e.__assign({style:_.strengthValue},{children:[l,"%"]}))]}))]})),p&&i.jsxs("button",e.__assign({style:_.editBtn,onClick:f},{children:[i.jsx(n.EditIcon,{}),"Edit"]}))]})),i.jsx("div",e.__assign({style:_.content},{children:i.jsx("span",e.__assign({style:{display:"inline"}},{children:d}))}))]}))};
//# sourceMappingURL=RuleVariantCard.js.map
