import{__assign as e}from"tslib";import{jsxs as i,jsx as n}from"react/jsx-runtime";import{useState as t}from"react";import o from"../_svg/InfoIcon.js";var r=function(r){r.validationType;var l=r.decisionStrength,d=r.ruleId,s=r.title,a=r.tier,p=r.descriptionText,c=r.reasoningNode,x=r.customStyles,g=r.onViewComparison,f=r.disabled,h=t(!1),u=h[0],y=h[1],m=e({display:"flex",flexDirection:"column",border:"1px solid #E3E6EA",borderRadius:"8px",padding:"14px 16px",gap:"8px",backgroundColor:"#fff"},null==x?void 0:x.container);e({display:"flex",alignItems:"center",gap:"4px",backgroundColor:"#E0F2FE80",color:"#0369A1",padding:"0.5px 9px",borderRadius:"9999px",fontSize:"12px",fontWeight:500},null==x?void 0:x.headerTag);var v=e({display:"flex",alignItems:"center",gap:"4px",backgroundColor:"#FEE2E2",color:"#B91C1C",padding:"0.5px 7px",borderRadius:"6px",fontSize:"12px",fontWeight:500},null==x?void 0:x.strengthBadgeStyle),b=e({display:"flex",flexDirection:"row",alignItems:"center",padding:"8px",gap:"8px",width:"100%",maxWidth:"140px",height:"44px",backgroundColor:f?"#F2F4F7":u?"#EFF4FF":"transparent",border:f?"1px solid #D0D5DD":u?"1px solid #B2CCFF":"1px solid transparent",borderRadius:"8px",cursor:f?"not-allowed":"pointer",opacity:f?.6:1,boxSizing:"border-box",transition:"all 0.2s ease"},null==x?void 0:x.button);return i("div",e({style:m},{children:[i("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[i("div",e({style:v},{children:[n(o,{})," ","Conflicting Learning Found"]})),l&&n("div",e({style:v},{children:n("span",{children:l})}))]})),i("div",e({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[i("div",e({style:{display:"flex",flexDirection:"column",gap:"6px"}},{children:[i("h3",e({style:e({fontSize:"14px",fontWeight:500,color:"#19213D",margin:0},null==x?void 0:x.title)},{children:[s," ",a?"— ".concat(a):""]})),i("div",e({style:e({fontSize:"14px",fontWeight:400,color:"#666F8D",lineHeight:"1.5"},null==x?void 0:x.description)},{children:[n("span",{children:p}),c]}))]})),i("button",e({style:b,onClick:function(){y(!0),g(d,l)},disabled:f},{children:[i("svg",e({width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[n("rect",{x:"0.5",y:"0.5",width:"27",height:"27",rx:"13.5",fill:u?"#D1E0FF":"transparent",stroke:u?"#D1E0FF":"#D0D5DD",style:{transition:"all 0.2s ease"}}),n("path",{d:"M9.33399 13.9974L18.6673 13.9974M18.6673 13.9974L14.0007 18.6641M18.6673 13.9974L14.0007 9.33073",stroke:u?"#004EEB":"#667085",strokeWidth:"1.52381",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"stroke 0.2s ease"}})]})),n("span",e({style:{fontSize:"14px",fontWeight:500,fontFamily:"'Inter', sans-serif",color:"#1D2939",lineHeight:"20px",display:"flex",alignItems:"center"}},{children:"Compare"}))]}))]}))]}))};export{r as default};
//# sourceMappingURL=RuleValidationCard.js.map
