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