@viswa-test/test-citation 0.0.227 → 0.0.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -0
- package/dist/assests/icons/CitationsIcon.js +2 -0
- package/dist/assests/icons/CitationsIcon.js.map +1 -0
- package/dist/assests/icons/CitationsSparkleIcon.js +2 -0
- package/dist/assests/icons/CitationsSparkleIcon.js.map +1 -0
- package/dist/cjs/assests/icons/CitationsIcon.js +2 -0
- package/dist/cjs/assests/icons/CitationsIcon.js.map +1 -0
- package/dist/cjs/assests/icons/CitationsSparkleIcon.js +2 -0
- package/dist/cjs/assests/icons/CitationsSparkleIcon.js.map +1 -0
- package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js +1 -1
- package/dist/cjs/features/CitationRenderer/MarkdownRenderer.module.css.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/cjs/features/InstantLearningCitation/CongnitiveDecisioningComponent.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/CongnitiveDecisioningComponent.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/HistorySkeleton.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/HistorySkeleton.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/InstantLearningCitation.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/InstantLearningCitation.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/OverrideTimeline.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/OverrideTimeline.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/RuleConditionBlock.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/RuleConditionBlock.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/RuleContentComponent.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/RuleContentComponent.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/css/Override.module.css.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/css/Override.module.css.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/css/RuleAccordian.module.css.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/css/RuleAccordian.module.css.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/css/common.module.css.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/css/common.module.css.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/types/Types.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/types/Types.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationComponent.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js +2 -0
- package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js.map +1 -0
- package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js +2 -0
- package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/features/CitationRenderer/MarkdownRenderer.js +1 -1
- package/dist/features/CitationRenderer/MarkdownRenderer.module.css.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/features/InstantLearningCitation/CongnitiveDecisioningComponent.js +2 -0
- package/dist/features/InstantLearningCitation/CongnitiveDecisioningComponent.js.map +1 -0
- package/dist/features/InstantLearningCitation/HistorySkeleton.js +2 -0
- package/dist/features/InstantLearningCitation/HistorySkeleton.js.map +1 -0
- package/dist/features/InstantLearningCitation/InstantLearningCitation.js +2 -0
- package/dist/features/InstantLearningCitation/InstantLearningCitation.js.map +1 -0
- package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js +2 -0
- package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js.map +1 -0
- package/dist/features/InstantLearningCitation/OverrideTimeline.js +2 -0
- package/dist/features/InstantLearningCitation/OverrideTimeline.js.map +1 -0
- package/dist/features/InstantLearningCitation/RuleConditionBlock.js +2 -0
- package/dist/features/InstantLearningCitation/RuleConditionBlock.js.map +1 -0
- package/dist/features/InstantLearningCitation/RuleContentComponent.js +2 -0
- package/dist/features/InstantLearningCitation/RuleContentComponent.js.map +1 -0
- package/dist/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js +2 -0
- package/dist/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js.map +1 -0
- package/dist/features/InstantLearningCitation/css/Override.module.css.js +2 -0
- package/dist/features/InstantLearningCitation/css/Override.module.css.js.map +1 -0
- package/dist/features/InstantLearningCitation/css/RuleAccordian.module.css.js +2 -0
- package/dist/features/InstantLearningCitation/css/RuleAccordian.module.css.js.map +1 -0
- package/dist/features/InstantLearningCitation/css/common.module.css.js +2 -0
- package/dist/features/InstantLearningCitation/css/common.module.css.js.map +1 -0
- package/dist/features/InstantLearningCitation/types/Types.js +2 -0
- package/dist/features/InstantLearningCitation/types/Types.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationComponent.module.css.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/features/RulebookCitations/RuleBookCitationApi.js +2 -0
- package/dist/features/RulebookCitations/RuleBookCitationApi.js.map +1 -0
- package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +2 -0
- package/dist/features/RulebookCitations/RuleBookCitationWrapper.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
- package/dist/types/src/assests/icons/CitationsIcon.d.ts +2 -0
- package/dist/types/src/assests/icons/CitationsIcon.d.ts.map +1 -0
- package/dist/types/src/assests/icons/CitationsSparkleIcon.d.ts +10 -0
- package/dist/types/src/assests/icons/CitationsSparkleIcon.d.ts.map +1 -0
- package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +1 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
- package/dist/types/src/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts +5 -0
- package/dist/types/src/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/HistorySkeleton.d.ts +10 -0
- package/dist/types/src/features/InstantLearningCitation/HistorySkeleton.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitation.d.ts +2 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitation.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts +10 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts +4 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/OverrideTimeline.d.ts +13 -0
- package/dist/types/src/features/InstantLearningCitation/OverrideTimeline.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/RuleConditionBlock.d.ts +13 -0
- package/dist/types/src/features/InstantLearningCitation/RuleConditionBlock.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/RuleContentComponent.d.ts +5 -0
- package/dist/types/src/features/InstantLearningCitation/RuleContentComponent.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/SlashLoader.d.ts +12 -0
- package/dist/types/src/features/InstantLearningCitation/SlashLoader.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +350 -0
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +1 -6
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +4 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +2 -10
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +1 -2
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +31 -0
- package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -0
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +11 -0
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -0
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts +3 -0
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +13 -2
- package/dist/types/src/DeviationSummaryTest.d.ts +0 -2
- package/dist/types/src/DeviationSummaryTest.d.ts.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),s=require("react"),r=require("lucide-react"),t=require("./css/RuleAccordian.module.css.js"),n=require("date-fns/format"),a=require("date-fns/isValid"),o=require("date-fns/parseISO"),l=require("./RuleConditionBlock.js"),d=require("./HistorySkeleton.js"),c=require("./OverrideTimeline.js"),u=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.filter(Boolean).join(" ")};exports.default=function(p){var h,v,_,g,f=p.rule,x=p.onFetchOverrideHistory,m=p.inheritedOverrideLabel,j=void 0===m?"Inherited override":m,y=p.defaultVariantLabel,N=void 0===y?"Default variant":y,b=p.viewOverrideLabel,w=void 0===b?"View Override":b,C=p.hideOverrideLabel,A=void 0===C?"Hide Override":C;p.editButtonLabel;var O=p.whenToApplyLabel,T=void 0===O?"When to Apply":O,L=p.whenNotToApplyLabel,H=void 0===L?"When Not to Apply":L,k=p.noConditionsText,q=void 0===k?"No conditions":k,D=p.historyErrorMessage,S=void 0===D?"Failed to load override history.":D,B=p.missingRuleIdMessage,I=void 0===B?"Rule ID is missing.":B;p.onEdit;var M=p.showActionsBar,E=void 0===M||M,F=p.tierChip,V=p.customVariantChip,W=p.showDescriptionBox,R=void 0===W||W,z=p.customDescription,P=p.showConditions,Z=void 0===P||P,U=p.defaultApplyOpen,$=void 0===U||U,G=p.defaultNotApplyOpen,J=void 0===G||G,K=p.className,Q=p.headerContent,X=p.footerContent;p.tierName;var Y,ee=s.useState($),ie=ee[0],se=ee[1],re=s.useState(J),te=re[0],ne=re[1],ae=s.useState(!1),oe=ae[0],le=ae[1],de=s.useState(null),ce=de[0],ue=de[1],pe=s.useState(!1),he=pe[0],ve=pe[1],_e=s.useState(null),ge=_e[0],fe=_e[1],xe=f.inheritance&&f.inheritance.length>0&&(null!==(v=null===(h=f.inheritance)||void 0===h?void 0:h.length)&&void 0!==v?v:0)>1;return i.jsxs("div",e.__assign({className:K},{children:[Q,i.jsxs("div",e.__assign({className:t.default.contentHeader},{children:[i.jsx("div",e.__assign({className:t.default.variantChipWrapper},{children:F||(V||i.jsx("span",e.__assign({className:t.default.variantChip},{children:xe?j:N})))})),E&&i.jsxs("div",e.__assign({className:t.default.contentActions},{children:[i.jsxs("button",e.__assign({className:t.default.overrideButton,onClick:function(i){return e.__awaiter(void 0,void 0,void 0,function(){var s,r;return e.__generator(this,function(e){switch(e.label){case 0:if(i.stopPropagation(),oe)return le(!1),[2];if(!x)return le(!0),[2];le(!0),ve(!0),fe(null),ue(null),e.label=1;case 1:return e.trys.push([1,5,6,7]),f.ruleId?[4,x(f.ruleId)]:[3,3];case 2:return(s=e.sent())&&ue(s),[3,4];case 3:console.error("Cannot fetch override history: rule.id is missing."),fe(I),e.label=4;case 4:return[3,7];case 5:return r=e.sent(),console.error("Failed to fetch override history",r),fe(S),[3,7];case 6:return ve(!1),[7];case 7:return[2]}})})}},{children:[he&&i.jsx(r.Loader2,{size:12,className:t.default.spinner}),oe?A:w]})),i.jsx("span",e.__assign({className:t.default.actionDivider},{children:"|"}))]}))]})),R&&i.jsx("div",e.__assign({className:t.default.descriptionBox},{children:i.jsxs("div",e.__assign({className:u(t.default.descriptionContainer,oe&&t.default.descriptionContainerWithHistory)},{children:[i.jsx("div",e.__assign({className:t.default.descriptionHeader},{children:i.jsx("p",e.__assign({className:t.default.descriptionText},{children:z||f.ruleDesc}))})),oe&&(he?i.jsx(d.HistorySkeleton,{}):ge?i.jsxs("div",e.__assign({className:t.default.errorMessage},{children:[i.jsx(r.AlertTriangle,{size:14}),i.jsx("span",{children:ge})]})):(null==ce?void 0:ce.ruleDescription)&&i.jsx(c.default,{changeLog:ce.ruleDescription.changeLog}))]}))})),Z&&i.jsxs("div",e.__assign({className:t.default.treeContainer},{children:[i.jsx(l.default,{type:"apply",conditions:f.whenToApply||"",isOpen:ie,onToggle:function(){return se(!ie)},showOverrideHistory:oe,isLoadingHistory:he,historyError:ge,overrideHistoryData:null===(_=null==ce?void 0:ce.wta)||void 0===_?void 0:_.changeLog,labelText:T,noConditionsText:q}),i.jsx(l.default,{type:"notApply",conditions:f.whenNotToApply||"",isOpen:te,onToggle:function(){return ne(!te)},showOverrideHistory:oe,isLoadingHistory:he,historyError:ge,overrideHistoryData:null===(g=null==ce?void 0:ce.wnta)||void 0===g?void 0:g.changeLog,labelText:H,noConditionsText:q})]})),i.jsxs("div",e.__assign({className:"flex items-center justify-between flex-wrap gap-1.5"},{children:[!0===f.is_user_accepted_risk&&i.jsxs("div",e.__assign({className:"flex items-center mt-2 ml-2"},{children:[i.jsx(r.TriangleAlert,{size:14,color:"#EF4444"}),i.jsx("span",e.__assign({className:"text-[#EF4444] text-xs font-medium leading-[120%] ml-1"},{children:"This learning has some gaps"}))]})),i.jsxs("div",e.__assign({className:"flex items-center gap-1"},{children:[f.has_accepted_risk&&i.jsxs("span",e.__assign({className:"text-xs font-medium leading-[120%]"},{children:["Accepted by ",(Y=f.has_accepted_risk,Y?Y.includes("@")?Y.split("@")[0].split(".").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" "):Y:"")]})),f.has_accepted_risk&&f.user_accepted_risk_at&&i.jsx("span",e.__assign({className:"text-xs font-medium leading-[120%]"},{children:"•"})),f.user_accepted_risk_at&&i.jsx("span",e.__assign({className:"text-xs font-medium leading-[120%]"},{children:function(e){if(!e)return"";try{var i=e.endsWith("Z")||/[+-]\d{2}:\d{2}$/.test(e)?e:"".concat(e,"Z"),s=o.parseISO(i);return a.isValid(s)?n.format(s,"MMM d, yyyy 'at' h:mm a"):e}catch(i){return e}}(f.user_accepted_risk_at)}))]}))]})),X]}))};
|
|
2
|
+
//# sourceMappingURL=RuleContentComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleContentComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const i=document.createElement("style");i.type="text/css";const e=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;e&&i.setAttribute("nonce",e),i.appendChild(document.createTextNode(".CongnitiveDecisioning-module_container__7s7lH{display:flex;gap:1rem}.CongnitiveDecisioning-module_ruleCard__Gdyzr{background-color:#fff;border:1px solid #e5e7eb;border-radius:.75rem;box-shadow:0 1px 2px 0 #0000000d;flex:1;overflow-y:auto;padding:1.25rem}.CongnitiveDecisioning-module_ruleAccordionWrapper__Juchc{background:#0000!important;border:none!important;box-shadow:none!important;padding:0!important}.CongnitiveDecisioning-module_ruleHeaderWrapper__eRqch{align-items:start;display:flex;gap:.5rem;width:100%}.CongnitiveDecisioning-module_ruleHeader__5YyHs{display:flex;gap:.5rem}.CongnitiveDecisioning-module_variantBadge__GJ0dv{background-color:#fff;border:1px solid #f0f2f5;border-radius:.25rem;color:#19213d;font-size:.75rem;font-weight:500;padding:.25rem .5rem}.CongnitiveDecisioning-module_ruleDescription__doaEl{background-color:#fefce8;border-left:3px solid #eab308;border-radius:0 .25rem .25rem 0;color:#1f2937;font-size:.875rem;line-height:1.5;margin-bottom:1rem;padding:.75rem}.CongnitiveDecisioning-module_highlightedText__ADF0u{background-color:#fef08a;border-radius:.125rem;padding:.125rem .25rem}.CongnitiveDecisioning-module_conditionBlock__XyB-A{margin-bottom:.75rem}.CongnitiveDecisioning-module_conditionHeader__RwURa{align-items:center;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 0}.CongnitiveDecisioning-module_conditionIcon__WcUqu{align-items:center;display:flex;height:1rem;justify-content:center;width:1rem}.CongnitiveDecisioning-module_conditionIconApply__fiQLw{color:#22c55e}.CongnitiveDecisioning-module_conditionIconNotApply__vivUo{color:#ef4444}.CongnitiveDecisioning-module_conditionTitle__Nd3pS{font-size:.75rem;font-weight:500}.CongnitiveDecisioning-module_conditionTitleApply__Jmr5m{color:#22c55e}.CongnitiveDecisioning-module_conditionTitleNotApply__KWvRi{color:#ef4444}.CongnitiveDecisioning-module_chevronIcon__EKFF2{color:#000;height:1rem;transition:transform .2s;width:1rem}.CongnitiveDecisioning-module_chevronOpen__V-ZhQ{transform:rotate(180deg)}.CongnitiveDecisioning-module_conditionList__vY3-n{margin-top:.25rem;padding-left:1.5rem}.CongnitiveDecisioning-module_conditionItem__K8Q6U{color:#4b5563;font-size:.75rem;list-style:decimal;margin-bottom:.25rem}.CongnitiveDecisioning-module_noConditions__2eI6M{color:#9ca3af;font-size:.75rem;font-style:italic;padding-left:1.5rem}.CongnitiveDecisioning-module_adSummaryCard__7LmzQ{background-color:#fff;border:1px solid #e5e7eb;border-radius:.75rem;box-shadow:0 1px 2px 0 #0000000d;display:flex;flex-direction:column;width:18rem}.CongnitiveDecisioning-module_adSummaryHeader__a8t2A{background-color:#f3f4f6;border:2px solid #fef08a;border-top-left-radius:.75rem;border-top-right-radius:.75rem;padding:1rem}.CongnitiveDecisioning-module_adSummaryTitle__bC7Pp{color:#6b7280;font-size:.75rem;font-weight:500;margin-bottom:.5rem}.CongnitiveDecisioning-module_adSummaryName__5apGN{color:#4b5563;font-size:.875rem;font-weight:600}.CongnitiveDecisioning-module_adSummaryGrid__zuBlW{display:grid;flex:1;gap:.75rem;grid-template-columns:1fr 1fr;overflow-y:auto;padding:1rem}.CongnitiveDecisioning-module_adSummaryItem__f5VwZ{padding:.25rem 0}.CongnitiveDecisioning-module_adSummaryItemBorder__BdLKy{border-right:1px solid #e5e7eb;padding-right:1rem}.CongnitiveDecisioning-module_adSummaryLabel__LyuR8{color:#6b7280;font-size:.625rem;font-weight:500;letter-spacing:.05em;text-transform:uppercase}.CongnitiveDecisioning-module_adSummaryValue__UszlA{color:#4b5563;font-size:.75rem;font-weight:600;margin-top:.25rem}.CongnitiveDecisioning-module_whyRuleContainer__yNwu-{margin-top:1rem}.CongnitiveDecisioning-module_whyRuleAccordion__L2qwf{background-color:#fff;border:1px solid #e3e6ea;border-radius:8px;overflow:hidden}.CongnitiveDecisioning-module_whyRuleHeader__aTL--{align-items:center;background-color:#faf5ff;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem}.CongnitiveDecisioning-module_whyRuleHeaderLeft__vm4oe{align-items:center;display:flex;gap:.5rem}.CongnitiveDecisioning-module_whyRuleIcon__sx-LJ{color:#8b5cf6;height:1rem;width:1rem}.CongnitiveDecisioning-module_whyRuleTitle__1RoX6{color:#1e293b;font-size:12px;font-style:normal;font-weight:500;line-height:20px}.CongnitiveDecisioning-module_whyRuleHeaderRight__RX9iV{align-items:center;display:flex;gap:.5rem}.CongnitiveDecisioning-module_strengthBadge__CEKiS{align-items:center;background-color:#fff;border:1px solid #c4b5fd;border-radius:16px;color:#1e293b;display:flex;font-size:10px;font-weight:600;gap:.25rem;padding:.25rem .5rem}.CongnitiveDecisioning-module_strengthIcon__x-Ujb{color:#eab308}.CongnitiveDecisioning-module_whyRuleContent__X3w5a{background-color:#fff;border-top:1px solid #e5e7eb;padding:1rem}.CongnitiveDecisioning-module_whyRuleSection__Io-ru{margin-bottom:1rem}.CongnitiveDecisioning-module_whyRuleSection__Io-ru:last-child{margin-bottom:0}.CongnitiveDecisioning-module_sectionTitle__D1S-B{color:#19213d;font-size:12px;font-weight:500;line-height:130%;margin-bottom:.5rem}.CongnitiveDecisioning-module_sectionSubtitle__izbgZ{color:#1e293b;font-size:12px;font-weight:400;line-height:150%;margin-bottom:.5rem}.CongnitiveDecisioning-module_reasoningList__Y1Srh{margin:0;padding-left:1.25rem}.CongnitiveDecisioning-module_reasoningItem__QDrj3{color:#666f8d;font-size:12px;font-weight:400;line-height:150%;list-style:decimal;margin-bottom:.25rem}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(i)}(),exports.default={container:"CongnitiveDecisioning-module_container__7s7lH",ruleCard:"CongnitiveDecisioning-module_ruleCard__Gdyzr",ruleAccordionWrapper:"CongnitiveDecisioning-module_ruleAccordionWrapper__Juchc",ruleHeaderWrapper:"CongnitiveDecisioning-module_ruleHeaderWrapper__eRqch",ruleHeader:"CongnitiveDecisioning-module_ruleHeader__5YyHs",variantBadge:"CongnitiveDecisioning-module_variantBadge__GJ0dv",ruleDescription:"CongnitiveDecisioning-module_ruleDescription__doaEl",highlightedText:"CongnitiveDecisioning-module_highlightedText__ADF0u",conditionBlock:"CongnitiveDecisioning-module_conditionBlock__XyB-A",conditionHeader:"CongnitiveDecisioning-module_conditionHeader__RwURa",conditionIcon:"CongnitiveDecisioning-module_conditionIcon__WcUqu",conditionIconApply:"CongnitiveDecisioning-module_conditionIconApply__fiQLw",conditionIconNotApply:"CongnitiveDecisioning-module_conditionIconNotApply__vivUo",conditionTitle:"CongnitiveDecisioning-module_conditionTitle__Nd3pS",conditionTitleApply:"CongnitiveDecisioning-module_conditionTitleApply__Jmr5m",conditionTitleNotApply:"CongnitiveDecisioning-module_conditionTitleNotApply__KWvRi",chevronIcon:"CongnitiveDecisioning-module_chevronIcon__EKFF2",chevronOpen:"CongnitiveDecisioning-module_chevronOpen__V-ZhQ",conditionList:"CongnitiveDecisioning-module_conditionList__vY3-n",conditionItem:"CongnitiveDecisioning-module_conditionItem__K8Q6U",noConditions:"CongnitiveDecisioning-module_noConditions__2eI6M",adSummaryCard:"CongnitiveDecisioning-module_adSummaryCard__7LmzQ",adSummaryHeader:"CongnitiveDecisioning-module_adSummaryHeader__a8t2A",adSummaryTitle:"CongnitiveDecisioning-module_adSummaryTitle__bC7Pp",adSummaryName:"CongnitiveDecisioning-module_adSummaryName__5apGN",adSummaryGrid:"CongnitiveDecisioning-module_adSummaryGrid__zuBlW",adSummaryItem:"CongnitiveDecisioning-module_adSummaryItem__f5VwZ",adSummaryItemBorder:"CongnitiveDecisioning-module_adSummaryItemBorder__BdLKy",adSummaryLabel:"CongnitiveDecisioning-module_adSummaryLabel__LyuR8",adSummaryValue:"CongnitiveDecisioning-module_adSummaryValue__UszlA",whyRuleContainer:"CongnitiveDecisioning-module_whyRuleContainer__yNwu-",whyRuleAccordion:"CongnitiveDecisioning-module_whyRuleAccordion__L2qwf",whyRuleHeader:"CongnitiveDecisioning-module_whyRuleHeader__aTL--",whyRuleHeaderLeft:"CongnitiveDecisioning-module_whyRuleHeaderLeft__vm4oe",whyRuleIcon:"CongnitiveDecisioning-module_whyRuleIcon__sx-LJ",whyRuleTitle:"CongnitiveDecisioning-module_whyRuleTitle__1RoX6",whyRuleHeaderRight:"CongnitiveDecisioning-module_whyRuleHeaderRight__RX9iV",strengthBadge:"CongnitiveDecisioning-module_strengthBadge__CEKiS",strengthIcon:"CongnitiveDecisioning-module_strengthIcon__x-Ujb",whyRuleContent:"CongnitiveDecisioning-module_whyRuleContent__X3w5a",whyRuleSection:"CongnitiveDecisioning-module_whyRuleSection__Io-ru",sectionTitle:"CongnitiveDecisioning-module_sectionTitle__D1S-B",sectionSubtitle:"CongnitiveDecisioning-module_sectionSubtitle__izbgZ",reasoningList:"CongnitiveDecisioning-module_reasoningList__Y1Srh",reasoningItem:"CongnitiveDecisioning-module_reasoningItem__QDrj3"};
|
|
2
|
+
//# sourceMappingURL=CongnitiveDecisioning.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CongnitiveDecisioning.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".Override-module_container__ivqpY{background-color:#fff7ed4d;border:1px solid #f3eee7;border-radius:.375rem;margin-top:.5rem;padding:.75rem 1rem;width:100%}.Override-module_header__0kFsl{align-items:center;color:#666f8d;display:flex;gap:.5rem;margin-bottom:.5rem;user-select:none}.Override-module_headerIcon__gdP8V{color:#475569}.Override-module_headerText__22o0q{color:#475569;font-size:13px;font-weight:500}.Override-module_timeline__KDiz7{position:relative}.Override-module_timelineItem__wr5i8{display:flex;min-height:32px}.Override-module_leftColumn__MYLIs{flex-shrink:0;overflow:hidden;padding-right:1rem;padding-top:2px;position:relative;text-align:right;text-overflow:ellipsis;width:100px}.Override-module_scopeLabel__gBX5s{color:#19213d;font-size:.875rem;font-weight:500;white-space:nowrap}.Override-module_leafLabel__Bo76W{color:#4f5e73;display:block;font-size:10px;font-style:italic;padding-right:0;padding-top:1rem}.Override-module_middleColumn__h3nS4{align-items:center;display:flex;flex-direction:column;flex-shrink:0;position:relative;width:1rem}.Override-module_verticalLine__pMfNg{background-color:#cbd5e1;bottom:-8px;left:50%;margin-left:-.5px;position:absolute;top:8px;width:1px}.Override-module_leafConnector__Sf6xD{border-bottom:1.5px solid #cbd5e1;border-left:1.5px solid #cbd5e1;height:33px;left:50%;margin-left:-.5px;position:absolute;top:-8px;width:24px}.Override-module_dot__-Hd8v{border-radius:9999px;border-style:solid;border-width:2px;box-shadow:0 0 0 4px #fff;height:.875rem;position:relative;top:6px;width:.875rem;z-index:10}.Override-module_dotGlobal__-bs2k{background-color:#2563eb;border-color:#e3eafb}.Override-module_dotOther__PeUEG{background-color:#fd8e1e;border-color:#ffedd6}.Override-module_rightColumn__xb-dw{flex:1}.Override-module_leafCard__lKUH0{position:relative}.Override-module_leafDot__IeYii{background-color:#fd8e1e;border:1px solid #ffedd6;border-radius:9999px;height:.625rem;left:11.5px;position:absolute;top:17px;width:.625rem}.Override-module_leafContent__OcFQ8{background-color:#fff;border:1px solid #e2e8f0;border-radius:.375rem;box-shadow:0 1px 2px 0 #0000000d;color:#1e293b;font-size:.875rem;font-weight:500;margin-left:28px;margin-top:3px;padding:.5rem .75rem}.Override-module_normalContent__EIrai{color:#515667;font-size:.75rem;padding-left:.875rem;padding-top:5px}.Override-module_strikethrough__fqXil{color:#ef4444;margin-right:.25rem;opacity:.6;text-decoration:line-through;text-decoration-color:#ef4444}"));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(e)}(),exports.default={container:"Override-module_container__ivqpY",header:"Override-module_header__0kFsl",headerIcon:"Override-module_headerIcon__gdP8V",headerText:"Override-module_headerText__22o0q",timeline:"Override-module_timeline__KDiz7",timelineItem:"Override-module_timelineItem__wr5i8",leftColumn:"Override-module_leftColumn__MYLIs",scopeLabel:"Override-module_scopeLabel__gBX5s",leafLabel:"Override-module_leafLabel__Bo76W",middleColumn:"Override-module_middleColumn__h3nS4",verticalLine:"Override-module_verticalLine__pMfNg",leafConnector:"Override-module_leafConnector__Sf6xD",dot:"Override-module_dot__-Hd8v",dotGlobal:"Override-module_dotGlobal__-bs2k",dotOther:"Override-module_dotOther__PeUEG",rightColumn:"Override-module_rightColumn__xb-dw",leafCard:"Override-module_leafCard__lKUH0",leafDot:"Override-module_leafDot__IeYii",leafContent:"Override-module_leafContent__OcFQ8",normalContent:"Override-module_normalContent__EIrai",strikethrough:"Override-module_strikethrough__fqXil"};
|
|
2
|
+
//# sourceMappingURL=Override.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Override.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".RuleAccordian-module_accordion__m2k-o{background-color:#fff;border:1px solid #e3e6ea;border-radius:.5rem;box-shadow:0 1px 2px 0 #0000000d;margin-bottom:1rem;overflow:hidden;transition:all .2s ease}.RuleAccordian-module_accordionOpen__UZWWg{border-color:#2563eb;border-width:1.5px}.RuleAccordian-module_accordionHeader__1SeeJ{align-items:flex-start;background-color:#fff;cursor:pointer;display:flex;justify-content:space-between;padding:1rem;transition:background-color .2s ease;user-select:none}.RuleAccordian-module_accordionHeader__1SeeJ:hover{background-color:#fafcff}.RuleAccordian-module_headerContent__fMnGE{display:flex;flex-direction:column;gap:.5rem;width:100%}.RuleAccordian-module_headerTopRow__-rqB0{align-items:flex-start;display:flex;gap:.75rem;justify-content:space-between}.RuleAccordian-module_titleSection__S-1-K{display:flex;flex-direction:column;gap:.375rem;width:100%}.RuleAccordian-module_titleRow__6pc0z{align-items:center;display:flex;gap:.5rem}.RuleAccordian-module_overriddenTag__0dfC3{background:#f8fafc;border:1px solid #f1f5f9;border-radius:200px;color:#19213d;font-family:Inter;font-size:11px;font-weight:500;line-height:16px;padding:2px 8px}.RuleAccordian-module_ruleTitle__UeUN3{color:#19213d;font-size:.875rem;font-weight:500}.RuleAccordian-module_dataSourceTag__AdvQb{background-color:#f7f8fa;border:1px solid #f3f2f2;border-radius:1.5rem;color:#666f8d;font-size:.75rem;font-weight:500;padding:.125rem .5rem}.RuleAccordian-module_learningDisabledPill__cKBoX{background-color:#fff7ed;border:1px solid #ffedd5;border-radius:12px;color:#c2410c;font-size:12px;font-weight:500;padding:2px 8px}.RuleAccordian-module_headerActions__qjHv6{align-items:center;display:flex;gap:1rem;min-width:fit-content}.RuleAccordian-module_chevronIcon__SQ1cY{color:#000}.RuleAccordian-module_divider__wBsLP{background-color:#f0f2f5;height:1px;width:100%}.RuleAccordian-module_footerRow__lRULB{display:flex;justify-content:space-between;margin-top:.25rem;width:100%}.RuleAccordian-module_headerButtonGroup__VUpCo{align-items:center;display:flex;gap:1rem;margin-left:auto}.RuleAccordian-module_toggleLearningButton__pcszc{background:none;border:none;color:#64748b;cursor:pointer;font-size:12px;font-weight:500;padding:0;transition:opacity .2s ease}.RuleAccordian-module_toggleLearningButton__pcszc:disabled{cursor:wait;opacity:.6}.RuleAccordian-module_deleteButton__coRWG{background:none;border:none;color:#ef4444;cursor:pointer;font-size:.75rem;font-weight:500;transition:color .2s ease}.RuleAccordian-module_deleteButton__coRWG:hover{color:#dc2626}.RuleAccordian-module_inheritanceBreadcrumb__JOTKv{align-items:center;color:#666f8d;display:flex;font-size:.75rem;gap:.5rem}.RuleAccordian-module_inheritanceIcon__Sy375{color:#0f172a}.RuleAccordian-module_inheritanceLabel__c5MMi{color:#0f172a;font-size:12px;font-weight:400;line-height:150%}.RuleAccordian-module_inheritanceItems__tbJtP{align-items:center;display:flex;gap:.25rem}.RuleAccordian-module_inheritanceItem__SeyGi{border:1px solid;border-radius:9999px;font-size:11px;font-weight:500;margin-top:2px;padding:4px 6px}.RuleAccordian-module_inheritanceItemDefault__ci-Kz{background-color:#fff;border-color:#f1f5f9;color:#19213d}.RuleAccordian-module_inheritanceItemCurrent__Ac-q-{background-color:#eff6ff;border-color:#dbeafe;color:#2563eb}.RuleAccordian-module_inheritanceArrow__Rd469{color:#b1b4c0}.RuleAccordian-module_accordionContent__ixxS1{background-color:#fff;display:flex;flex-direction:column;gap:1rem;padding:1rem}.RuleAccordian-module_contentInner__4-q-g{background-color:#fafcff;border:1px solid #e3e6ea;border-radius:.5rem;display:flex;flex-direction:column;gap:1rem;padding:1rem}.RuleAccordian-module_contentHeader__O-Mjz{align-items:center;display:flex;justify-content:space-between;margin-bottom:1rem}.RuleAccordian-module_variantChipWrapper__1wQTl{width:100%}.RuleAccordian-module_variantChip__NCuZR{background-color:#fff;border:1px solid #f0f2f5;border-radius:.25rem;color:#19213d;font-size:.75rem;font-weight:500;padding:.25rem .5rem}.RuleAccordian-module_contentActions__2nqQe{align-items:center;display:flex;gap:.75rem}.RuleAccordian-module_overrideButton__gX47T{text-wrap:nowrap;align-items:center;background:none;border:none;color:#64748b;cursor:pointer;display:flex;font-size:.75rem;font-weight:500;gap:.25rem;transition:color .2s ease}.RuleAccordian-module_overrideButton__gX47T:hover{color:#19213d}.RuleAccordian-module_actionDivider__t3RKT{color:#d1d5db}.RuleAccordian-module_editButton__tScsQ{background:none;border:none;color:#2563eb;cursor:pointer;font-size:.75rem;font-weight:500;transition:color .2s ease}.RuleAccordian-module_editButton__tScsQ:hover{color:#1d4ed8}.RuleAccordian-module_descriptionBox__QGwqd{position:relative;z-index:10}.RuleAccordian-module_descriptionContainer__6pDiU{align-items:flex-start;background-color:#fff;border:1px solid #e3e6ea;border-radius:.5rem;box-shadow:0 1px 2px 0 #0000000d;color:#0f172a;display:flex;flex-direction:column;font-size:.9375rem;gap:.5rem;padding:.75rem}.RuleAccordian-module_descriptionContainerWithHistory__QE-gF{border-color:#e3e6ea;box-shadow:0 0 0 1px #3b82f61a}.RuleAccordian-module_descriptionHeader__5-drd{display:flex;justify-content:space-between;width:100%}.RuleAccordian-module_descriptionText__Ln0yl{font-weight:500;line-height:1.4}.RuleAccordian-module_treeContainer__sCaIX{padding-left:1.5rem;padding-top:.5rem;position:relative}.RuleAccordian-module_conditionBlock__733OM{position:relative}.RuleAccordian-module_conditionBlockApply__XDiA1 .RuleAccordian-module_verticalLine__SjlUw{background-color:#cfd4dc;bottom:0;left:8px;position:absolute;top:-12px;width:1px}.RuleAccordian-module_conditionBlockApply__XDiA1 .RuleAccordian-module_horizontalLine__OAEqN{background-color:#cfd4dc;border-radius:2px;height:1.5px;left:8px;position:absolute;top:11px;width:1.25rem}.RuleAccordian-module_conditionBlockNotApply__AwELf .RuleAccordian-module_curvedLine__WuRIr{border-bottom:1.5px solid #cfd4dc;border-bottom-left-radius:.75rem;border-left:1.5px solid #cfd4dc;height:36px;left:8px;position:absolute;top:-23px;width:1.25rem}.RuleAccordian-module_conditionContent__vs-bT{border-radius:.5rem;margin-left:1.75rem;padding-left:0}.RuleAccordian-module_conditionHeader__g8Llh{align-items:center;color:#6b7280;cursor:pointer;display:flex;font-size:.875rem;font-weight:500;gap:.5rem;user-select:none}.RuleAccordian-module_conditionHeader__g8Llh:hover .RuleAccordian-module_conditionLabel__m4RVA{color:#000}.RuleAccordian-module_conditionIconWrapper__L12tK{align-items:center;display:flex;gap:.5rem}.RuleAccordian-module_conditionIconApply__DE6T1{background-color:#4ad562}.RuleAccordian-module_conditionIconApply__DE6T1,.RuleAccordian-module_conditionIconNotApply__J6jQe{border-radius:9999px;box-shadow:0 0 0 4px #fff;color:#fff;padding:.125rem;position:relative;z-index:10}.RuleAccordian-module_conditionIconNotApply__J6jQe{background-color:#ff6058}.RuleAccordian-module_conditionLabel__m4RVA{color:#19213d;font-size:.875rem;font-weight:400;transition:color .2s ease}.RuleAccordian-module_conditionToggleButton__NHuRw{background:none;border:none;color:#666f8d;cursor:pointer;margin-left:.25rem;transition:color .2s ease}.RuleAccordian-module_conditionToggleButton__NHuRw:hover{color:#666f8d}.RuleAccordian-module_chevronClosed__5LP7F{transform:rotate(180deg)}.RuleAccordian-module_conditionItems__y-7Qh{display:flex;flex-direction:column;gap:.5rem;padding-left:1.25rem}.RuleAccordian-module_conditionItemContainer__LX3O8{border-radius:.375rem;color:#19213d;display:flex;flex-direction:column;font-size:.875rem;padding:.75rem .75rem 0 0;transition:background-color .2s ease}.RuleAccordian-module_conditionItemHeader__uNgtV{align-items:flex-start;display:flex;justify-content:space-between}.RuleAccordian-module_conditionItemContent__kW5xW{align-items:flex-start;display:flex;gap:.5rem}.RuleAccordian-module_conditionList__vNpY6{list-style-position:outside;list-style-type:decimal;margin:0;padding-left:1.25rem}.RuleAccordian-module_conditionListItem__OsgGp{color:#000;font-size:.875rem;font-weight:500;margin-bottom:.35rem}.RuleAccordian-module_conditionItemText__SRcCS{color:#000;font-size:.875rem;font-weight:500}.RuleAccordian-module_conditionItemText__SRcCS>div{margin-bottom:.35rem}.RuleAccordian-module_noConditions__vS-Df{color:#98a2b3;font-size:.75rem;margin-top:.375rem}.RuleAccordian-module_collapsedPadding__P5hen{padding-bottom:0}.RuleAccordian-module_errorMessage__LYqhC{align-items:center;color:#ef4444;display:flex;font-size:.75rem;gap:.5rem;margin-top:.5rem}.RuleAccordian-module_spinner__r1Z7c{animation:RuleAccordian-module_spin__FxFNj 1s linear infinite}@keyframes RuleAccordian-module_spin__FxFNj{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={accordion:"RuleAccordian-module_accordion__m2k-o",accordionOpen:"RuleAccordian-module_accordionOpen__UZWWg",accordionHeader:"RuleAccordian-module_accordionHeader__1SeeJ",headerContent:"RuleAccordian-module_headerContent__fMnGE",headerTopRow:"RuleAccordian-module_headerTopRow__-rqB0",titleSection:"RuleAccordian-module_titleSection__S-1-K",titleRow:"RuleAccordian-module_titleRow__6pc0z",overriddenTag:"RuleAccordian-module_overriddenTag__0dfC3",ruleTitle:"RuleAccordian-module_ruleTitle__UeUN3",dataSourceTag:"RuleAccordian-module_dataSourceTag__AdvQb",learningDisabledPill:"RuleAccordian-module_learningDisabledPill__cKBoX",headerActions:"RuleAccordian-module_headerActions__qjHv6",chevronIcon:"RuleAccordian-module_chevronIcon__SQ1cY",divider:"RuleAccordian-module_divider__wBsLP",footerRow:"RuleAccordian-module_footerRow__lRULB",headerButtonGroup:"RuleAccordian-module_headerButtonGroup__VUpCo",toggleLearningButton:"RuleAccordian-module_toggleLearningButton__pcszc",deleteButton:"RuleAccordian-module_deleteButton__coRWG",inheritanceBreadcrumb:"RuleAccordian-module_inheritanceBreadcrumb__JOTKv",inheritanceIcon:"RuleAccordian-module_inheritanceIcon__Sy375",inheritanceLabel:"RuleAccordian-module_inheritanceLabel__c5MMi",inheritanceItems:"RuleAccordian-module_inheritanceItems__tbJtP",inheritanceItem:"RuleAccordian-module_inheritanceItem__SeyGi",inheritanceItemDefault:"RuleAccordian-module_inheritanceItemDefault__ci-Kz",inheritanceItemCurrent:"RuleAccordian-module_inheritanceItemCurrent__Ac-q-",inheritanceArrow:"RuleAccordian-module_inheritanceArrow__Rd469",accordionContent:"RuleAccordian-module_accordionContent__ixxS1",contentInner:"RuleAccordian-module_contentInner__4-q-g",contentHeader:"RuleAccordian-module_contentHeader__O-Mjz",variantChipWrapper:"RuleAccordian-module_variantChipWrapper__1wQTl",variantChip:"RuleAccordian-module_variantChip__NCuZR",contentActions:"RuleAccordian-module_contentActions__2nqQe",overrideButton:"RuleAccordian-module_overrideButton__gX47T",actionDivider:"RuleAccordian-module_actionDivider__t3RKT",editButton:"RuleAccordian-module_editButton__tScsQ",descriptionBox:"RuleAccordian-module_descriptionBox__QGwqd",descriptionContainer:"RuleAccordian-module_descriptionContainer__6pDiU",descriptionContainerWithHistory:"RuleAccordian-module_descriptionContainerWithHistory__QE-gF",descriptionHeader:"RuleAccordian-module_descriptionHeader__5-drd",descriptionText:"RuleAccordian-module_descriptionText__Ln0yl",treeContainer:"RuleAccordian-module_treeContainer__sCaIX",conditionBlock:"RuleAccordian-module_conditionBlock__733OM",conditionBlockApply:"RuleAccordian-module_conditionBlockApply__XDiA1",verticalLine:"RuleAccordian-module_verticalLine__SjlUw",horizontalLine:"RuleAccordian-module_horizontalLine__OAEqN",conditionBlockNotApply:"RuleAccordian-module_conditionBlockNotApply__AwELf",curvedLine:"RuleAccordian-module_curvedLine__WuRIr",conditionContent:"RuleAccordian-module_conditionContent__vs-bT",conditionHeader:"RuleAccordian-module_conditionHeader__g8Llh",conditionLabel:"RuleAccordian-module_conditionLabel__m4RVA",conditionIconWrapper:"RuleAccordian-module_conditionIconWrapper__L12tK",conditionIconApply:"RuleAccordian-module_conditionIconApply__DE6T1",conditionIconNotApply:"RuleAccordian-module_conditionIconNotApply__J6jQe",conditionToggleButton:"RuleAccordian-module_conditionToggleButton__NHuRw",chevronOpen:"RuleAccordian-module_chevronOpen__OEoTU",chevronClosed:"RuleAccordian-module_chevronClosed__5LP7F",conditionItems:"RuleAccordian-module_conditionItems__y-7Qh",conditionItemContainer:"RuleAccordian-module_conditionItemContainer__LX3O8",conditionItemHeader:"RuleAccordian-module_conditionItemHeader__uNgtV",conditionItemContent:"RuleAccordian-module_conditionItemContent__kW5xW",conditionList:"RuleAccordian-module_conditionList__vNpY6",conditionListItem:"RuleAccordian-module_conditionListItem__OsgGp",conditionItemText:"RuleAccordian-module_conditionItemText__SRcCS",noConditions:"RuleAccordian-module_noConditions__vS-Df",collapsedPadding:"RuleAccordian-module_collapsedPadding__P5hen",errorMessage:"RuleAccordian-module_errorMessage__LYqhC",spinner:"RuleAccordian-module_spinner__r1Z7c",spin:"RuleAccordian-module_spin__FxFNj"};
|
|
2
|
+
//# sourceMappingURL=RuleAccordian.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleAccordian.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode("@keyframes common-module_pulse__vQwFH{0%,to{opacity:1}50%{opacity:.5}}.common-module_pulse__vQwFH{animation:common-module_pulse__vQwFH 2s cubic-bezier(.4,0,.6,1) infinite}.common-module_historyContainer__kQlq6{margin-bottom:.5rem;margin-top:1.25rem;padding-left:.5rem}.common-module_historyHeader__peN3a{align-items:center;display:flex;gap:.5rem;margin-bottom:1rem}.common-module_historyHeaderIcon__FfZqf{background-color:#e5e7eb;border-radius:9999px;height:1rem;width:1rem}.common-module_historyHeaderText__1j0Q6{background-color:#e5e7eb;border-radius:.25rem;height:.75rem;width:7rem}.common-module_historyTimeline__FJkgE{position:relative}.common-module_historyRow__ii9qJ{display:flex;min-height:32px}.common-module_historyLeftColumn__vd6ho{display:flex;flex-shrink:0;justify-content:flex-end;padding-right:1rem;padding-top:3px;text-align:right;width:60px}.common-module_historyMiddleColumn__HcByV{align-items:center;display:flex;flex-direction:column;flex-shrink:0;position:relative;width:1rem}.common-module_historyVerticalLine__9yFIB{background-color:#e5e7eb;bottom:-8px;left:50%;margin-left:-.5px;position:absolute;top:8px;width:1px}.common-module_historyDot__QbjM7{background-color:#e5e7eb;border-radius:9999px;box-shadow:0 0 0 4px #fff;height:.625rem;position:relative;top:6px;width:.625rem;z-index:10}.common-module_historyRightColumn__1ejXx{flex:1;padding-bottom:1.5rem;padding-left:.25rem}.common-module_historyContentPlaceholder__2NH3G{background-color:#f3f4f6;border-radius:.25rem;height:.75rem;margin-top:3px;width:6rem}.common-module_historyLabelPlaceholder__PsMDC{background-color:#e5e7eb;border-radius:.25rem;height:.75rem;width:2.5rem}.common-module_historyLeafLeftColumn__4De2X{display:flex;flex-shrink:0;justify-content:flex-end;padding-right:1rem;padding-top:.25rem;text-align:right;width:60px}.common-module_historyLeafLabel__2Rwyn{background-color:#e5e7eb;border-radius:.25rem;height:.5rem;margin-top:1rem;width:2rem}.common-module_historyLeafConnector__zNO-V{border-bottom:1px solid #e5e7eb;border-bottom-left-radius:.75rem;border-left:1px solid #e5e7eb;height:33px;left:50%;margin-left:-.5px;position:absolute;top:-8px;width:24px}.common-module_historyLeafRightColumn__LurSI{flex:1;padding-bottom:1.5rem;padding-left:0;position:relative}.common-module_historyLeafDot__CfDHv{background-color:#e5e7eb;border-radius:9999px;height:.5rem;left:11.5px;position:absolute;top:21px;width:.5rem}.common-module_historyLeafCard__xIc5E{background-color:#fff;border:1px solid #f3f4f6;border-radius:.375rem;margin-left:28px;margin-top:3px;padding:.75rem 1rem}.common-module_historyLeafCardContent__70E8-{background-color:#f3f4f6;border-radius:.25rem;height:1rem;max-width:200px;width:100%}.common-module_ruleContentContainer__-FFPi{background-color:#fff;display:flex;flex:1;flex-direction:column;padding:0 2rem 2rem}.common-module_ruleContentHeader__901fy{border-bottom:1px solid #f3f4f6;margin-bottom:1.5rem;padding:1.5rem 0}.common-module_ruleContentHeaderInner__J8P43{align-items:center;display:flex;justify-content:space-between}.common-module_ruleContentTitleGroup__qMgOD{display:flex;flex-direction:column;gap:.5rem}.common-module_ruleContentTitle__oXfsV{background-color:#f3f4f6;border-radius:.375rem;height:1.5rem;width:10rem}.common-module_ruleContentSubtitle__s2v68{background-color:#f3f4f6;border-radius:.25rem;height:1rem;width:16rem}.common-module_ruleContentButtons__04hvo{display:flex;gap:.75rem}.common-module_ruleContentButton__-PotB{background-color:#f3f4f6;border-radius:.375rem;height:2.5rem;width:8rem}.common-module_ruleContentCards__1uuNv{display:flex;flex-direction:column;gap:1rem}.common-module_ruleContentCard__GlAyX{border:1px solid #f3f4f6;border-radius:.5rem;padding:1rem}.common-module_ruleContentCardHeader__2frir{align-items:center;display:flex;justify-content:space-between;margin-bottom:.75rem}.common-module_ruleContentCardTitle__CSTyd{background-color:#f3f4f6;border-radius:.25rem;height:1.25rem;width:8rem}.common-module_ruleContentCardChevron__Wsfz6{background-color:#f3f4f6;border-radius:.25rem;height:1.25rem;width:1.25rem}.common-module_ruleContentCardAccordion__ziE9K{border:1px solid #f3f4f6;border-radius:.375rem;display:flex;flex-direction:column;gap:.5rem;padding:1rem}.common-module_ruleContentCardAccordionLine__WuUVO{background-color:#f3f4f6;border-radius:.25rem;height:1rem}.common-module_ruleContentCardAccordionLineWide__b-IUg{width:75%}.common-module_ruleContentCardAccordionLineMedium__pt1T3{width:50%}"));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(e)}(),exports.default={pulse:"common-module_pulse__vQwFH",historyContainer:"common-module_historyContainer__kQlq6",historyHeader:"common-module_historyHeader__peN3a",historyHeaderIcon:"common-module_historyHeaderIcon__FfZqf",historyHeaderText:"common-module_historyHeaderText__1j0Q6",historyTimeline:"common-module_historyTimeline__FJkgE",historyRow:"common-module_historyRow__ii9qJ",historyLeftColumn:"common-module_historyLeftColumn__vd6ho",historyMiddleColumn:"common-module_historyMiddleColumn__HcByV",historyVerticalLine:"common-module_historyVerticalLine__9yFIB",historyDot:"common-module_historyDot__QbjM7",historyRightColumn:"common-module_historyRightColumn__1ejXx",historyContentPlaceholder:"common-module_historyContentPlaceholder__2NH3G",historyLabelPlaceholder:"common-module_historyLabelPlaceholder__PsMDC",historyLeafLeftColumn:"common-module_historyLeafLeftColumn__4De2X",historyLeafLabel:"common-module_historyLeafLabel__2Rwyn",historyLeafConnector:"common-module_historyLeafConnector__zNO-V",historyLeafRightColumn:"common-module_historyLeafRightColumn__LurSI",historyLeafDot:"common-module_historyLeafDot__CfDHv",historyLeafCard:"common-module_historyLeafCard__xIc5E",historyLeafCardContent:"common-module_historyLeafCardContent__70E8-",ruleContentContainer:"common-module_ruleContentContainer__-FFPi",ruleContentHeader:"common-module_ruleContentHeader__901fy",ruleContentHeaderInner:"common-module_ruleContentHeaderInner__J8P43",ruleContentTitleGroup:"common-module_ruleContentTitleGroup__qMgOD",ruleContentTitle:"common-module_ruleContentTitle__oXfsV",ruleContentSubtitle:"common-module_ruleContentSubtitle__s2v68",ruleContentButtons:"common-module_ruleContentButtons__04hvo",ruleContentButton:"common-module_ruleContentButton__-PotB",ruleContentCards:"common-module_ruleContentCards__1uuNv",ruleContentCard:"common-module_ruleContentCard__GlAyX",ruleContentCardHeader:"common-module_ruleContentCardHeader__2frir",ruleContentCardTitle:"common-module_ruleContentCardTitle__CSTyd",ruleContentCardChevron:"common-module_ruleContentCardChevron__Wsfz6",ruleContentCardAccordion:"common-module_ruleContentCardAccordion__ziE9K",ruleContentCardAccordionLine:"common-module_ruleContentCardAccordionLine__WuUVO",ruleContentCardAccordionLineWide:"common-module_ruleContentCardAccordionLineWide__b-IUg",ruleContentCardAccordionLineMedium:"common-module_ruleContentCardAccordionLineMedium__pt1T3"};
|
|
2
|
+
//# sourceMappingURL=common.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";function e(e){return e.trim().replace(/_/g," ").replace(/([a-zA-Z])(\d)/g,"$1 $2").replace(/\b\w/g,function(e){return e.toUpperCase()})}Object.defineProperty(exports,"__esModule",{value:!0});var t=function(e){var t=0,n=[],r=[];try{var i=e.match(/Decision Strength:\s*(\d+)%/i);i&&(t=parseInt(i[1],10));var a=function(e){for(var t,n=[],r=/\d+\.\s*([^\n]+(?:\n(?!\d+\.)[^\n]+)*)/g;null!==(t=r.exec(e));){var i=t[1].trim().replace(/\\n/g," ");i&&n.push({text:i})}return n},s=e.match(/<summary>Reasoning<\/summary>([\s\S]*?)(?=<summary>The Gap<\/summary>|$)/i);if(s){var o=a(s[1]);n.push.apply(n,o)}var p=e.match(/<summary>The Gap<\/summary>([\s\S]*?)$/i);if(p){o=a(p[1]);r.push.apply(r,o)}if(0===n.length&&0===r.length){o=a(e);n.push.apply(n,o)}}catch(e){console.warn("Failed to parse cognitive decisioning string:",e)}return{decisionStrength:t,reasoning:n,theGap:r}};exports.convertILRuleToCognitiveDecisioningData=function(n){var r=n.wta?[{text:n.wta}]:[],i=n.wnta?[{text:n.wnta}]:[],a=t(n.cognitive_decisioning||"");return{ruleDetails:{variant_type:e(n.variant_type||""),variant:n.variant_id||"",variantText:n.variant_text||"",tier:e(n.tier||""),description:n.variant_text||"",decision_strength:n.decision_strength,whenToApply:r,whenNotToApply:i},whyRuleApplied:a}},exports.parseCognitiveDecisioningString=t;
|
|
2
|
+
//# sourceMappingURL=Types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".AttachedContext-module_wrapper__KHDIP{display:flex;flex-direction:column}.AttachedContext-module_dropdownContainer__TPFtZ{display:inline-block;position:relative;text-align:left}.AttachedContext-module_triggerButton__ZXDWZ{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 1px 2px 0 #0000000d;color:#374151;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 1rem;transition:background-color .2s,border-color .2s}.AttachedContext-module_triggerButton__ZXDWZ:hover{background-color:#f9fafb}.AttachedContext-module_triggerIcon__cdeba{color:#4b5563}.AttachedContext-module_triggerLabel__7HM4O{font-weight:500}.AttachedContext-module_dropdownPanel__r-NRo{animation:AttachedContext-module_slideIn__ah8dZ .2s ease-out;background-color:#fff;border:1px solid #f3f4f6;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;left:0;margin-top:.5rem;overflow:hidden;position:absolute;width:420px;z-index:50}.AttachedContext-module_dropdownList__E-mKF{max-height:300px;overflow-y:auto;padding-bottom:.5rem;padding-top:.5rem}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar{width:6px}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-track{background:#0000}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:10px}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-thumb:hover{background:#d1d5db}.AttachedContext-module_fadeGradient__ncpfP{background:linear-gradient(0deg,#f9fafb80,#0000);height:1rem;pointer-events:none}.AttachedContext-module_emptyState__WCYKW{color:#9ca3af;font-size:.875rem;padding:2rem;text-align:center}.AttachedContext-module_contextItem__I0Q9u{align-items:flex-start;border-bottom:1px solid #0000;border-radius:8px;display:flex;gap:1rem;margin-left:.5rem;margin-right:.5rem;padding:1rem;transition:background-color .15s}.AttachedContext-module_contextItem__I0Q9u:not(.AttachedContext-module_lastItem__fWT-n){border-bottom-color:#f3f4f6}.AttachedContext-module_contextItem__I0Q9u:hover{background-color:#f9fafb}.AttachedContext-module_itemIconWrapper__FjAJj{background-color:#f5f3ff;border-radius:8px;color:#8b5cf6;flex-shrink:0;margin-top:.25rem;padding:.5rem}.AttachedContext-module_itemContent__jwJwp{flex:1;min-width:0}.AttachedContext-module_itemTitle__e2hAN{color:#111827;font-size:.9375rem;font-weight:600;margin:0;overflow:hidden;text-overflow:ellipsis;transition:color .15s;white-space:nowrap}.AttachedContext-module_contextItem__I0Q9u:hover .AttachedContext-module_itemTitle__e2hAN{color:#7c3aed}.AttachedContext-module_itemMeta__Hw9Ct{color:#6b7280;font-size:.875rem;margin-bottom:0;margin-top:.125rem}.AttachedContext-module_actionButton__oQioa{align-self:center;background:none;border:none;border-radius:4px;color:#9ca3af;cursor:pointer;flex-shrink:0;line-height:0;padding:.5rem;transition:color .15s,background-color .15s}.AttachedContext-module_actionButton__oQioa:hover{background-color:#fff;color:#7c3aed}.AttachedContext-module_actionButtonReady__TbrP-{color:#6b7280}.AttachedContext-module_sourcesContainer__AP6PI{align-items:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".AttachedContext-module_wrapper__KHDIP{display:flex;flex-direction:column}.AttachedContext-module_dropdownContainer__TPFtZ{display:inline-block;position:relative;text-align:left}.AttachedContext-module_triggerButton__ZXDWZ{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 1px 2px 0 #0000000d;color:#374151;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 1rem;transition:background-color .2s,border-color .2s}.AttachedContext-module_triggerButton__ZXDWZ:hover{background-color:#f9fafb}.AttachedContext-module_triggerIcon__cdeba{color:#4b5563}.AttachedContext-module_triggerLabel__7HM4O{font-weight:500}.AttachedContext-module_dropdownPanel__r-NRo{animation:AttachedContext-module_slideIn__ah8dZ .2s ease-out;background-color:#fff;border:1px solid #f3f4f6;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;left:0;margin-top:.5rem;overflow:hidden;position:absolute;width:420px;z-index:50}.AttachedContext-module_dropdownList__E-mKF{max-height:300px;overflow-y:auto;padding-bottom:.5rem;padding-top:.5rem}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar{width:6px}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-track{background:#0000}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:10px}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-thumb:hover{background:#d1d5db}.AttachedContext-module_fadeGradient__ncpfP{background:linear-gradient(0deg,#f9fafb80,#0000);height:1rem;pointer-events:none}.AttachedContext-module_emptyState__WCYKW{color:#9ca3af;font-size:.875rem;padding:2rem;text-align:center}.AttachedContext-module_contextItem__I0Q9u{align-items:flex-start;border-bottom:1px solid #0000;border-radius:8px;display:flex;gap:1rem;margin-left:.5rem;margin-right:.5rem;padding:1rem;transition:background-color .15s}.AttachedContext-module_contextItem__I0Q9u:not(.AttachedContext-module_lastItem__fWT-n){border-bottom-color:#f3f4f6}.AttachedContext-module_contextItem__I0Q9u:hover{background-color:#f9fafb}.AttachedContext-module_itemIconWrapper__FjAJj{background-color:#f5f3ff;border-radius:8px;color:#8b5cf6;flex-shrink:0;margin-top:.25rem;padding:.5rem}.AttachedContext-module_itemContent__jwJwp{flex:1;min-width:0}.AttachedContext-module_itemTitle__e2hAN{color:#111827;font-size:.9375rem;font-weight:600;margin:0;overflow:hidden;text-overflow:ellipsis;transition:color .15s;white-space:nowrap}.AttachedContext-module_contextItem__I0Q9u:hover .AttachedContext-module_itemTitle__e2hAN{color:#7c3aed}.AttachedContext-module_itemMeta__Hw9Ct{color:#6b7280;font-size:.875rem;margin-bottom:0;margin-top:.125rem}.AttachedContext-module_actionButton__oQioa{align-self:center;background:none;border:none;border-radius:4px;color:#9ca3af;cursor:pointer;flex-shrink:0;line-height:0;padding:.5rem;transition:color .15s,background-color .15s}.AttachedContext-module_actionButton__oQioa:hover{background-color:#fff;color:#7c3aed}.AttachedContext-module_actionButtonReady__TbrP-{color:#6b7280}.AttachedContext-module_sourcesContainer__AP6PI{align-items:flex-start;display:flex;gap:8px;min-width:0;width:100%}.AttachedContext-module_sourcesFilesContainer__-Mnhn{align-items:center;display:flex;flex-wrap:wrap;gap:8px;min-width:0}.AttachedContext-module_sourcesLabel__VN-9Q{color:#374151;flex-shrink:0;font-size:14px;font-weight:600;line-height:20px}.AttachedContext-module_sourceChip__QsVPO{align-items:center;background:#eef2ff;border-radius:10px;color:#6366f1;cursor:pointer;display:inline-flex;flex-shrink:1;font-size:13px;font-weight:500;gap:6px;line-height:18px;min-width:0;padding:6px 12px;transition:background-color .15s ease,transform .15s ease}.AttachedContext-module_sourceChip__QsVPO:hover{background:#e0e7ff}.AttachedContext-module_sourceChipLabel__f29Qv{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.AttachedContext-module_moreChip__ieXRs{align-items:center;background:#eef2ff;border-radius:10px;color:#6366f1;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;justify-content:center;line-height:18px;padding:6px 12px;transition:background-color .15s ease}.AttachedContext-module_moreChip__ieXRs:hover{background:#e0e7ff}@keyframes AttachedContext-module_slideIn__ah8dZ{0%{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={wrapper:"AttachedContext-module_wrapper__KHDIP",dropdownContainer:"AttachedContext-module_dropdownContainer__TPFtZ",triggerButton:"AttachedContext-module_triggerButton__ZXDWZ",triggerIcon:"AttachedContext-module_triggerIcon__cdeba",triggerLabel:"AttachedContext-module_triggerLabel__7HM4O",dropdownPanel:"AttachedContext-module_dropdownPanel__r-NRo",slideIn:"AttachedContext-module_slideIn__ah8dZ",dropdownList:"AttachedContext-module_dropdownList__E-mKF",fadeGradient:"AttachedContext-module_fadeGradient__ncpfP",emptyState:"AttachedContext-module_emptyState__WCYKW",contextItem:"AttachedContext-module_contextItem__I0Q9u",lastItem:"AttachedContext-module_lastItem__fWT-n",itemIconWrapper:"AttachedContext-module_itemIconWrapper__FjAJj",itemContent:"AttachedContext-module_itemContent__jwJwp",itemTitle:"AttachedContext-module_itemTitle__e2hAN",itemMeta:"AttachedContext-module_itemMeta__Hw9Ct",actionButton:"AttachedContext-module_actionButton__oQioa",actionButtonReady:"AttachedContext-module_actionButtonReady__TbrP-",sourcesContainer:"AttachedContext-module_sourcesContainer__AP6PI",sourcesFilesContainer:"AttachedContext-module_sourcesFilesContainer__-Mnhn",sourcesLabel:"AttachedContext-module_sourcesLabel__VN-9Q",sourceChip:"AttachedContext-module_sourceChip__QsVPO",sourceChipLabel:"AttachedContext-module_sourceChipLabel__f29Qv",moreChip:"AttachedContext-module_moreChip__ieXRs"};
|
|
2
2
|
//# sourceMappingURL=AttachedContext.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.CitationComponent-module_cite-acc__2XusN{background:#fff;border:1px solid #eaecf0;border-radius:12px;box-sizing:border-box;container-type:inline-size;max-height:500px;overflow:auto;width:400px}.CitationComponent-module_cite-acc__header__Ek-ou{align-items:center;border-bottom:1px solid #eaecf0;border-top:1px solid #eaecf0;display:flex;flex-wrap:nowrap;gap:12px;justify-content:space-between;min-width:0;padding:12px}.CitationComponent-module_cite-acc__headerLeft__K6ItR{align-items:center;display:flex;flex:1 1 auto;gap:4px;min-width:0;overflow:hidden}.CitationComponent-module_cite-acc__titleIcon__ssoL-{align-items:center;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__title__3ibjn{color:#101828;font-size:14px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__headerRight__OhMqH{align-items:center;display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:10px;min-width:0}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{background:#fef3f2;border-radius:999px;color:#b42318;font-size:12px;font-weight:500;padding:4px 10px;white-space:nowrap}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{align-items:center;border:1px solid var(--Primitive-Gray-300,#d0d5dd);border-radius:var(--chip-border-radius,16px);display:flex;gap:4px;padding:4px 8px}.CitationComponent-module_cite-acc__scoreIcon__-MUli{display:none}.CitationComponent-module_cite-acc__scoreText__42VsL{color:var(--Primitive-Purple-600,#6938ef);font-family:Inter;font-size:12px;font-style:normal;font-weight:500;line-height:150%}.CitationComponent-module_cite-acc__gapBadge__VkuKQ,.CitationComponent-module_cite-acc__scoreBadge__uVDRv{flex:0 1 auto;min-width:0}.CitationComponent-module_cite-acc__toggleBtn__RcZmg{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;padding:4px}.CitationComponent-module_cite-acc__toggleBtn__RcZmg i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__body__YQDAm{display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px}.CitationComponent-module_cite-acc__explain-body__1v7hb{display:flex;flex-direction:column;gap:"14px";min-width:0;padding:15px}.CitationComponent-module_cite-acc__explain-body_border__QQnDb{border-top:1px solid #eaecf0}.CitationComponent-module_cite-acc__innerHeader__BFwFr{align-items:center;background:#0000;display:flex;gap:12px;justify-content:space-between;min-width:0}.CitationComponent-module_cite-acc__backHeader__aFHVT{align-items:center;border-bottom:.5px solid #e8e7e3;display:flex;gap:8px;padding:14px 16px}.CitationComponent-module_cite-acc__backBtn__d91ol{background:none;border:none;color:#888;cursor:pointer;font-size:20px;line-height:1;padding:0}.CitationComponent-module_cite-acc__backTitle__Jwdr9{color:#1a1a1a;font-size:14px;font-weight:500}.CitationComponent-module_cite-acc__cognitiveSection__eVNry{align-items:center;border-bottom:none;border-top:1px solid #eee;cursor:pointer;display:flex;justify-content:space-between;padding-left:12px;padding-right:12px;padding-top:12px}.CitationComponent-module_cite-acc__cognitiveTitle__LXmhU{color:#101828;font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et{align-items:flex-start;display:flex;flex:1 1 auto;gap:10px;min-width:0}.CitationComponent-module_cite-acc__innerIcon__UvlXX{align-items:center;background:#f4f3ff;border-radius:999px;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__innerTitle__Lv8vo{color:#101828;font-size:14px;font-weight:500;line-height:22px}.CitationComponent-module_cite-acc__innerSub__XG7ad{color:#101828;font-size:12px;line-height:18px;margin-top:2px}.CitationComponent-module_cite-acc__innerToggle__3YHI5{align-items:center;background:#fff;border:1px solid #eaecf0;border-radius:999px;cursor:pointer;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__innerToggle__3YHI5 i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__innerBody__Bzkt4{border-top:none;min-width:0;overflow-wrap:anywhere;word-break:break-word}.CitationComponent-module_cite-text__mark__Xh6wV{background-color:#fef3c7;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a__9HVV6{display:inline}.CitationComponent-module_cite-text__a-btn__9XyA1{color:#7a5af8;cursor:pointer;display:inline;font-weight:500}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI,.CitationComponent-module_cite-text__a-btn_circle__SI-j3{display:inline-block;margin-left:4px;vertical-align:middle}.CitationComponent-module_cite-text__a-btn_open__2NfoX{border:1px solid #7a5af8;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a-btn_circle__SI-j3{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#7a5af8;height:16px;margin-left:auto;margin-right:auto;width:16px}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI{height:16px;width:16px}.CitationComponent-module_cite-text__a-container__G-ier{margin-bottom:8px;margin-top:8px;max-height:250px;overflow:scroll}.CitationComponent-module_cite-text__a-container-docs__n8qlA{margin-bottom:8px;margin-top:8px;max-height:620px;overflow:scroll}.CitationComponent-module_cite-text__a-container-loader__f0Exm{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#000;height:32px;margin-left:auto;margin-right:auto;width:32px}.CitationComponent-module_md-ol__TO-dB{list-style:decimal;list-style-position:outside;padding-left:20px}.CitationComponent-module_md-ul__LfZPA{list-style:disc;list-style-position:outside;margin:10px 0 12px;padding-left:20px}.CitationComponent-module_md-li__ZEscN{margin:6px 0}.CitationComponent-module_cite-acc__btn-container__RUjvL{align-items:center;display:flex;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;gap:5px;line-height:normal;padding:0 30px 15px;.CitationComponent-module_btn-accept__F5s10{border:1px solid #8098f9;border-radius:6px;color:#444ce7;padding:7px 10.5px}.CitationComponent-module_btn-reject__ziZa-{border:1px solid #fecaca;border-radius:6px;color:#ef4444;padding:7px 10.5px}}@keyframes CitationComponent-module_spin__W-F7a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@container (max-width: 420px){.CitationComponent-module_cite-acc__scoreIcon__-MUli{align-items:center;display:inline-flex}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{gap:6px;padding:6px 8px}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{padding:4px 8px}}'));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={"cite-acc":"CitationComponent-module_cite-acc__2XusN","cite-acc__header":"CitationComponent-module_cite-acc__header__Ek-ou","cite-acc__headerLeft":"CitationComponent-module_cite-acc__headerLeft__K6ItR","cite-acc__titleIcon":"CitationComponent-module_cite-acc__titleIcon__ssoL-","cite-acc__title":"CitationComponent-module_cite-acc__title__3ibjn","cite-acc__headerRight":"CitationComponent-module_cite-acc__headerRight__OhMqH","cite-acc__gapBadge":"CitationComponent-module_cite-acc__gapBadge__VkuKQ","cite-acc__scoreBadge":"CitationComponent-module_cite-acc__scoreBadge__uVDRv","cite-acc__scoreIcon":"CitationComponent-module_cite-acc__scoreIcon__-MUli","cite-acc__scoreText":"CitationComponent-module_cite-acc__scoreText__42VsL","cite-acc__toggleBtn":"CitationComponent-module_cite-acc__toggleBtn__RcZmg","cite-acc__body":"CitationComponent-module_cite-acc__body__YQDAm","cite-acc__explain-body":"CitationComponent-module_cite-acc__explain-body__1v7hb","cite-acc__explain-body_border":"CitationComponent-module_cite-acc__explain-body_border__QQnDb","cite-acc__innerHeader":"CitationComponent-module_cite-acc__innerHeader__BFwFr","cite-acc__backHeader":"CitationComponent-module_cite-acc__backHeader__aFHVT","cite-acc__backBtn":"CitationComponent-module_cite-acc__backBtn__d91ol","cite-acc__backTitle":"CitationComponent-module_cite-acc__backTitle__Jwdr9","cite-acc__cognitiveSection":"CitationComponent-module_cite-acc__cognitiveSection__eVNry","cite-acc__cognitiveTitle":"CitationComponent-module_cite-acc__cognitiveTitle__LXmhU","cite-acc__innerHeaderLeft":"CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et","cite-acc__innerIcon":"CitationComponent-module_cite-acc__innerIcon__UvlXX","cite-acc__innerTitle":"CitationComponent-module_cite-acc__innerTitle__Lv8vo","cite-acc__innerSub":"CitationComponent-module_cite-acc__innerSub__XG7ad","cite-acc__innerToggle":"CitationComponent-module_cite-acc__innerToggle__3YHI5","cite-acc__innerBody":"CitationComponent-module_cite-acc__innerBody__Bzkt4","cite-text__mark":"CitationComponent-module_cite-text__mark__Xh6wV","cite-text__a":"CitationComponent-module_cite-text__a__9HVV6","cite-text__a-btn":"CitationComponent-module_cite-text__a-btn__9XyA1","cite-text__a-btn_circle":"CitationComponent-module_cite-text__a-btn_circle__SI-j3","cite-text__a-btn_chevron":"CitationComponent-module_cite-text__a-btn_chevron__DXtkI","cite-text__a-btn_open":"CitationComponent-module_cite-text__a-btn_open__2NfoX",spin:"CitationComponent-module_spin__W-F7a","cite-text__a-container":"CitationComponent-module_cite-text__a-container__G-ier","cite-text__a-container-docs":"CitationComponent-module_cite-text__a-container-docs__n8qlA","cite-text__a-container-loader":"CitationComponent-module_cite-text__a-container-loader__f0Exm","md-ol":"CitationComponent-module_md-ol__TO-dB","md-ul":"CitationComponent-module_md-ul__LfZPA","md-li":"CitationComponent-module_md-li__ZEscN","cite-acc__btn-container":"CitationComponent-module_cite-acc__btn-container__RUjvL","btn-accept":"CitationComponent-module_btn-accept__F5s10","btn-reject":"CitationComponent-module_btn-reject__ziZa-"};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.CitationComponent-module_cite-acc__2XusN{background:#fff;border:1px solid #eaecf0;border-radius:12px;box-sizing:border-box;container-type:inline-size;width:400px}.CitationComponent-module_cite-body__MwotJ{max-height:500px;overflow:auto;width:100%}.CitationComponent-module_cite-acc__header__Ek-ou{align-items:center;border-bottom:1px solid #eaecf0;border-top:1px solid #eaecf0;display:flex;flex-wrap:nowrap;gap:12px;justify-content:space-between;min-width:0;padding:12px}.CitationComponent-module_cite-acc__headerLeft__K6ItR{align-items:center;display:flex;flex:1 1 auto;gap:4px;min-width:0;overflow:hidden}.CitationComponent-module_cite-acc__titleIcon__ssoL-{align-items:center;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__title__3ibjn{color:#101828;font-size:14px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__headerRight__OhMqH{align-items:center;display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:10px;min-width:0}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{background:#fef3f2;border-radius:999px;color:#b42318;font-size:12px;font-weight:500;padding:4px 10px;white-space:nowrap}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{align-items:center;border:1px solid var(--Primitive-Gray-300,#d0d5dd);border-radius:var(--chip-border-radius,16px);display:flex;gap:4px;padding:4px 8px}.CitationComponent-module_cite-acc__scoreIcon__-MUli{display:none}.CitationComponent-module_cite-acc__scoreText__42VsL{color:var(--Primitive-Purple-600,#6938ef);font-family:Inter;font-size:12px;font-style:normal;font-weight:500;line-height:150%}.CitationComponent-module_cite-acc__gapBadge__VkuKQ,.CitationComponent-module_cite-acc__scoreBadge__uVDRv{flex:0 1 auto;min-width:0}.CitationComponent-module_cite-acc__toggleBtn__RcZmg{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;padding:4px}.CitationComponent-module_cite-acc__toggleBtn__RcZmg i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__body__YQDAm{display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px}.CitationComponent-module_cite-acc__explain-body__1v7hb{display:flex;flex-direction:column;gap:"14px";min-width:0;padding:15px}.CitationComponent-module_cite-acc__explain-body_border__QQnDb{border-top:1px solid #eaecf0}.CitationComponent-module_cite-acc__innerHeader__BFwFr{align-items:center;background:#0000;display:flex;gap:12px;justify-content:space-between;min-width:0}.CitationComponent-module_cite-acc__backHeader__aFHVT{align-items:center;border-bottom:.5px solid #e8e7e3;display:flex;gap:8px;padding:14px 16px}.CitationComponent-module_cite-acc__backBtn__d91ol{background:none;border:none;color:#888;cursor:pointer;font-size:20px;line-height:1;padding:0}.CitationComponent-module_cite-acc__backTitle__Jwdr9{color:#1a1a1a;font-size:14px;font-weight:500}.CitationComponent-module_cite-acc__cognitiveSection__eVNry{align-items:center;border-bottom:none;border-top:1px solid #eee;cursor:pointer;display:flex;justify-content:space-between;padding-left:12px;padding-right:12px;padding-top:12px}.CitationComponent-module_cite-acc__cognitiveTitle__LXmhU{color:#101828;font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et{align-items:flex-start;display:flex;flex:1 1 auto;gap:10px;min-width:0}.CitationComponent-module_cite-acc__innerIcon__UvlXX{align-items:center;background:#f4f3ff;border-radius:999px;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__innerTitle__Lv8vo{color:#101828;font-size:14px;font-weight:500;line-height:22px}.CitationComponent-module_cite-acc__innerSub__XG7ad{color:#101828;font-size:12px;line-height:18px;margin-top:2px}.CitationComponent-module_cite-acc__innerToggle__3YHI5{align-items:center;background:#fff;border:1px solid #eaecf0;border-radius:999px;cursor:pointer;display:inline-flex;flex:0 0 28px;height:28px;justify-content:center;width:28px}.CitationComponent-module_cite-acc__innerToggle__3YHI5 i{color:#667085;font-size:18px}.CitationComponent-module_cite-acc__innerBody__Bzkt4{border-top:none;min-width:0;overflow-wrap:anywhere;word-break:break-word}.CitationComponent-module_cite-text__mark__Xh6wV{background-color:#fef3c7;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a__9HVV6{display:inline}.CitationComponent-module_cite-text__a-btn__9XyA1{color:#7a5af8;cursor:pointer;display:inline;font-weight:500}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI,.CitationComponent-module_cite-text__a-btn_circle__SI-j3{display:inline-block;margin-left:4px;vertical-align:middle}.CitationComponent-module_cite-text__a-btn_open__2NfoX{border:1px solid #7a5af8;border-radius:4px;padding-left:4px;padding-right:4px}.CitationComponent-module_cite-text__a-btn_circle__SI-j3{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#7a5af8;height:16px;margin-left:auto;margin-right:auto;width:16px}.CitationComponent-module_cite-text__a-btn_chevron__DXtkI{height:16px;width:16px}.CitationComponent-module_cite-text__a-container__G-ier{margin-bottom:8px;margin-top:8px;max-height:250px;overflow:scroll}.CitationComponent-module_cite-text__a-container-docs__n8qlA{margin-bottom:8px;margin-top:8px;max-height:620px;overflow:scroll}.CitationComponent-module_cite-text__a-container-loader__f0Exm{animation:CitationComponent-module_spin__W-F7a 1.5s linear infinite;color:#000;height:32px;margin-left:auto;margin-right:auto;width:32px}.CitationComponent-module_md-ol__TO-dB{list-style:decimal;list-style-position:outside;padding-left:20px}.CitationComponent-module_md-ul__LfZPA{list-style:disc;list-style-position:outside;margin:10px 0 12px;padding-left:20px}.CitationComponent-module_md-li__ZEscN{margin:6px 0}.CitationComponent-module_cite-acc__btn-container__RUjvL{align-items:center;display:flex;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;gap:5px;line-height:normal;padding:0 30px 15px;.CitationComponent-module_btn-accept__F5s10{border:1px solid #8098f9;border-radius:6px;color:#444ce7;padding:7px 10.5px}.CitationComponent-module_btn-reject__ziZa-{border:1px solid #fecaca;border-radius:6px;color:#ef4444;padding:7px 10.5px}}@keyframes CitationComponent-module_spin__W-F7a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@container (max-width: 420px){.CitationComponent-module_cite-acc__scoreIcon__-MUli{align-items:center;display:inline-flex}.CitationComponent-module_cite-acc__scoreBadge__uVDRv{gap:6px;padding:6px 8px}.CitationComponent-module_cite-acc__gapBadge__VkuKQ{padding:4px 8px}}'));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={"cite-acc":"CitationComponent-module_cite-acc__2XusN","cite-body":"CitationComponent-module_cite-body__MwotJ","cite-acc__header":"CitationComponent-module_cite-acc__header__Ek-ou","cite-acc__headerLeft":"CitationComponent-module_cite-acc__headerLeft__K6ItR","cite-acc__titleIcon":"CitationComponent-module_cite-acc__titleIcon__ssoL-","cite-acc__title":"CitationComponent-module_cite-acc__title__3ibjn","cite-acc__headerRight":"CitationComponent-module_cite-acc__headerRight__OhMqH","cite-acc__gapBadge":"CitationComponent-module_cite-acc__gapBadge__VkuKQ","cite-acc__scoreBadge":"CitationComponent-module_cite-acc__scoreBadge__uVDRv","cite-acc__scoreIcon":"CitationComponent-module_cite-acc__scoreIcon__-MUli","cite-acc__scoreText":"CitationComponent-module_cite-acc__scoreText__42VsL","cite-acc__toggleBtn":"CitationComponent-module_cite-acc__toggleBtn__RcZmg","cite-acc__body":"CitationComponent-module_cite-acc__body__YQDAm","cite-acc__explain-body":"CitationComponent-module_cite-acc__explain-body__1v7hb","cite-acc__explain-body_border":"CitationComponent-module_cite-acc__explain-body_border__QQnDb","cite-acc__innerHeader":"CitationComponent-module_cite-acc__innerHeader__BFwFr","cite-acc__backHeader":"CitationComponent-module_cite-acc__backHeader__aFHVT","cite-acc__backBtn":"CitationComponent-module_cite-acc__backBtn__d91ol","cite-acc__backTitle":"CitationComponent-module_cite-acc__backTitle__Jwdr9","cite-acc__cognitiveSection":"CitationComponent-module_cite-acc__cognitiveSection__eVNry","cite-acc__cognitiveTitle":"CitationComponent-module_cite-acc__cognitiveTitle__LXmhU","cite-acc__innerHeaderLeft":"CitationComponent-module_cite-acc__innerHeaderLeft__uY1Et","cite-acc__innerIcon":"CitationComponent-module_cite-acc__innerIcon__UvlXX","cite-acc__innerTitle":"CitationComponent-module_cite-acc__innerTitle__Lv8vo","cite-acc__innerSub":"CitationComponent-module_cite-acc__innerSub__XG7ad","cite-acc__innerToggle":"CitationComponent-module_cite-acc__innerToggle__3YHI5","cite-acc__innerBody":"CitationComponent-module_cite-acc__innerBody__Bzkt4","cite-text__mark":"CitationComponent-module_cite-text__mark__Xh6wV","cite-text__a":"CitationComponent-module_cite-text__a__9HVV6","cite-text__a-btn":"CitationComponent-module_cite-text__a-btn__9XyA1","cite-text__a-btn_circle":"CitationComponent-module_cite-text__a-btn_circle__SI-j3","cite-text__a-btn_chevron":"CitationComponent-module_cite-text__a-btn_chevron__DXtkI","cite-text__a-btn_open":"CitationComponent-module_cite-text__a-btn_open__2NfoX",spin:"CitationComponent-module_spin__W-F7a","cite-text__a-container":"CitationComponent-module_cite-text__a-container__G-ier","cite-text__a-container-docs":"CitationComponent-module_cite-text__a-container-docs__n8qlA","cite-text__a-container-loader":"CitationComponent-module_cite-text__a-container-loader__f0Exm","md-ol":"CitationComponent-module_md-ol__TO-dB","md-ul":"CitationComponent-module_md-ul__LfZPA","md-li":"CitationComponent-module_md-li__ZEscN","cite-acc__btn-container":"CitationComponent-module_cite-acc__btn-container__RUjvL","btn-accept":"CitationComponent-module_btn-accept__F5s10","btn-reject":"CitationComponent-module_btn-reject__ziZa-"};
|
|
2
2
|
//# sourceMappingURL=CitationComponent.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react/jsx-runtime"),i=require("react"),s=require("../Popups/PopupDefaults.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react/jsx-runtime"),i=require("react"),s=require("../Popups/PopupDefaults.js"),c=require("react-markdown"),n=require("rehype-raw"),t=require("./CitationComponent.module.css.js"),l=require("lucide-react"),d=require("../icons/cognitiveBrain.svg.js"),r=require("../icons/aiMagic.svg.js"),o=require("./CitationAnchor.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=_(i),f=_(c),x=_(n),m=function(i){var s=i.text,c=i.item;return a.jsx(f.default,e.__assign({rehypePlugins:[x.default],components:{ol:function(i){var s=i.children;return a.jsx("ol",e.__assign({className:t.default["md-ol"]},{children:s}))},ul:function(i){var s=i.children;return a.jsx("ul",e.__assign({className:t.default["md-ul"]},{children:s}))},li:function(i){var s=i.children;return a.jsx("li",e.__assign({className:t.default["md-li"]},{children:s}))},a:function(e){e.node;var i=e.href,s=e.children;return a.jsx(o.default,{href:i,children:s,metaData:{citations:c.citations,docData:c.docData}})}}},{children:s.replace(/<br\s*\/?>/gi,"\n")}))};exports.default=function(c){var n=c.item,o=c.title,_=void 0===o?"Cognitive Decisioning AI":o,f=c.relevanceScore,x=void 0===f?0:f,g=c.showRelevanceScore,v=void 0===g||g,h=c.reason,j=void 0===h?"No reasoning provided.":h,p=c.impact,N=void 0===p?"No Impact provided.":p,b=c.explaination,y=void 0===b?"No explaination provided.":b,C=c.gap,k=void 0===C?"None":C,B=c.onClose,H=void 0===B?function(){}:B,q=c.onAccept,D=c.onReject,A=c.showResolveBtns,T=void 0!==A&&A,I=c.sections,L=c.leftIcon,M=c.scoreIcon,w=c.className,P=c.customStyles,R=void 0===P?{}:P,S=c.actions,E=c.disableAllActions,F=void 0!==E&&E,G=c.actionBtnDisabledStyle,U=void 0===G?{}:G,O=c.onBackClick,z=c.isImpactNeeded,J=void 0===z||z,K=c.cognitiveTitle,Q=void 0===K?"Cognitive Integrity":K,V=c.labels,W=void 0===V?{}:V,X=i.useMemo(function(){var e=Number(x);return Number.isNaN(e)?0:Math.max(0,Math.min(100,Math.round(e)))},[x]),Y=i.useMemo(function(){var e=W&&W.noGapsText||"1. No gaps identified.";return function(e){if(!e)return!0;var a=e.trim().toLowerCase();return"none"===a||"no gap"===a||"no gaps"===a||"n/a"===a}(k)?e:k},[k]),Z=W&&W.impact||"Impact",$=W&&W.explanation||"Explaination",ee=W&&W.decisionFactors||"Decision Making Factors",ae=W&&W.gaps||"Gaps in Decision",ie=W&&W.accept||"Accept",se=W&&W.reject||"Reject",ce=W&&W.backAriaLabel||"Go back",ne=S||[{id:"reject",label:se,onClick:D,className:t.default["btn-reject"]},{id:"accept",label:ie,onClick:q,className:t.default["btn-accept"]}];return a.jsxs("div",e.__assign({className:"".concat(t.default["cite-acc"]," ").concat(w||""),style:e.__assign(e.__assign({},s.default.CitationAccordionDefaults.container),null==R?void 0:R.container)},{children:[O&&a.jsxs("div",e.__assign({className:t.default["cite-acc__backHeader"]},{children:[a.jsx("button",e.__assign({type:"button",className:t.default["cite-acc__backBtn"],onClick:function(e){e.stopPropagation(),O&&O()},"aria-label":ce},{children:"‹"})),a.jsx("span",e.__assign({className:t.default["cite-acc__backTitle"]},{children:Q}))]})),a.jsx("div",e.__assign({className:t.default["cite-body"]},{children:I&&I.length>0?I.map(function(i){return!1===i.show?null:a.jsxs("div",e.__assign({className:"".concat(t.default["cite-acc__explain-body"]," ").concat(i.bodyClassName||"")},{children:[a.jsxs("div",e.__assign({className:t.default["cite-acc__innerHeader"],style:e.__assign(e.__assign({},s.default.CitationAccordionDefaults.innerHeader),null==R?void 0:R.innerHeader)},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:i.title}))})})),a.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),H&&H()}},{children:a.jsx(l.ChevronUp,{})}))]})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600"),style:e.__assign(e.__assign({},s.default.CitationAccordionDefaults.innerBody),null==R?void 0:R.innerBody)},{children:"string"==typeof i.content?a.jsx(m,{text:i.content,item:i.item||n||{}}):i.content}))]}),i.id||i.title)}):a.jsxs(a.Fragment,{children:[J&&a.jsxs("div",e.__assign({className:t.default["cite-acc__explain-body"]},{children:[a.jsxs("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:Z}))})})),a.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),H&&H()}},{children:a.jsx(l.ChevronUp,{})}))]})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:N||"",item:n||{}})}))]})),a.jsxs("div",e.__assign({className:t.default["cite-acc__explain-body"]},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:$}))})}))})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:y||"",item:{}})}))]})),T&&a.jsx("div",e.__assign({className:t.default["cite-acc__btn-container"]},{children:ne.map(function(i){var s=F||i.disabled;return a.jsx("button",e.__assign({className:i.className,onClick:s?void 0:i.onClick,disabled:s,style:e.__assign(e.__assign({},i.style),s?e.__assign(e.__assign({opacity:.5,cursor:"not-allowed"},U),i.disabledStyle):{})},{children:i.label}),i.id)})})),a.jsxs("div",e.__assign({className:t.default["cite-acc__header"]},{children:[a.jsxs("div",e.__assign({className:t.default["cite-acc__headerLeft"]},{children:[a.jsx("span",e.__assign({className:t.default["cite-acc__titleIcon"]},{children:L?"function"==typeof L?u.default.createElement(L):L:a.jsx(d.ReactComponent,{})})),a.jsx("div",e.__assign({className:t.default["cite-acc__title"]},{children:_}))]})),a.jsx("div",e.__assign({className:t.default["cite-acc__headerRight"]},{children:v&&a.jsxs("span",e.__assign({className:t.default["cite-acc__scoreBadge"]},{children:[M?"function"==typeof M?u.default.createElement(M):M:a.jsx(r.ReactComponent,{}),a.jsxs("span",e.__assign({className:t.default["cite-acc__scoreText"]},{children:[X,"%"]}))]}))}))]})),a.jsxs("div",e.__assign({className:t.default["cite-acc__explain-body"]},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:ee}))})}))})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:j||"",item:n||{}})}))]})),a.jsxs("div",e.__assign({className:"".concat(t.default["cite-acc__explain-body"]," ").concat(t.default["cite-acc__explain-body_border"])},{children:[a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeader"]},{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerHeaderLeft"]},{children:a.jsx("div",{children:a.jsx("div",e.__assign({className:t.default["cite-acc__innerTitle"]},{children:ae}))})}))})),a.jsx("div",e.__assign({className:"".concat(t.default["cite-acc__innerBody"]," text-sm text-gray-600")},{children:a.jsx(m,{text:Y||"",item:n||{}})}))]}))]})}))]}))};
|
|
2
2
|
//# sourceMappingURL=CognitiveComponent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("lucide-react"),s=require("react"),o=require("./ToneToggle.js");require("../CognitiveComponents/CitationComponent.module.css.js");var t=require("../icons/cognitiveBrain.svg.js"),l=require("../icons/aiMagic.svg.js"),a=[{color:"#1D9E75",angle:-90,arcD:"M1 13 A10 10 0 0 1 1 13"},{color:"#BA7517",angle:0,arcD:"M1 13 A10 10 0 0 1 11 3"},{color:"#E24B4A",angle:90,arcD:"M1 13 A10 10 0 0 1 21 13"}],r=function(n){var s=n.toneIndex,o=n.configs,t=void 0===o?a:o,l=t[Math.min(s,t.length-1)]||t[1]||t[0],r=l.color,d=l.angle,c=l.arcD,g=(d-90)*Math.PI/180,p=11+9*Math.cos(g),u=13+9*Math.sin(g);return i.jsxs("svg",e.__assign({width:"22",height:"14",viewBox:"0 0 22 14",fill:"none"},{children:[i.jsx("path",{d:"M1 13 A10 10 0 0 1 21 13",stroke:"#e5e5e5",strokeWidth:"2.5",strokeLinecap:"round"}),i.jsx("path",{d:c,stroke:r,strokeWidth:"2.5",strokeLinecap:"round"}),i.jsx("line",{x1:"11",y1:"13",x2:p,y2:u,stroke:r,strokeWidth:"2",strokeLinecap:"round"})]}))},d=function(n){var s=n.type,o=n.customStyles,t=void 0===o?{}:o,l=e.__assign(e.__assign({},{High:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #FECACA",background:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:"500"},Medium:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #F2E5A1",background:"#FFFBEB",color:"#B45309",fontSize:"11px",fontWeight:"500"},Low:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #8098F9",background:"#DBEAFE",color:"#444CE7",fontSize:"11px",fontWeight:"500"}}),t),a=l[s]||l.Medium;return i.jsx("div",e.__assign({style:a},{children:s}))},c=["Lenient","Balanced","Aggressive"],g={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},p={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"400px",overflow:"auto"},u={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},_={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},v={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111"},x={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px"},m={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},y={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},h={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},f={display:"flex",gap:8,marginBottom:18},j={flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,fontSize:12,fontWeight:500,padding:"7px 4px",borderRadius:8,border:"0.5px solid #ccc",background:"#fff",cursor:"pointer"},b={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},S={borderTop:"0.5px solid #eee",paddingTop:14},C={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},k={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},I={display:"flex",alignItems:"center",gap:"4px",minWidth:0,flex:"1 1 auto",overflow:"hidden"},B={width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"0 0 28px"},w={fontSize:"13px",color:"#101828",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},A={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},D={display:"flex",padding:"4px 8px",alignItems:"center",gap:"4px",borderRadius:"var(--chip-border-radius, 16px)",border:"1px solid var(--Primitive-Gray-300, #d0d5dd)",flex:"0 1 auto",minWidth:0},T={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"},z={menuStyles:{padding:"4px",border:"1px solid #EBEBEB",position:"absolute",width:"100px",textAlign:"center",borderRadius:"9px",background:"#fff",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",zIndex:1e3,top:"100%",right:0}};function R(n){var s=n.onAssignClick;return i.jsx("div",e.__assign({style:z.menuStyles},{children:i.jsxs("p",e.__assign({style:{margin:0,padding:"4px",cursor:"pointer",gap:"8px",display:"flex",alignItems:"center",justifyContent:"center"},onClick:s},{children:[i.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-users-icon lucide-users"},{children:[i.jsx("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),i.jsx("path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}),i.jsx("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),i.jsx("circle",{cx:"9",cy:"7",r:"4"})]})),i.jsx("p",e.__assign({style:{margin:"0px",display:"flex",alignItems:"center"}},{children:"Assign"}))]}))}))}function E(n){var o=n.onAssignClick,t=s.useState(!1),l=t[0],a=t[1];return i.jsxs("div",e.__assign({style:{position:"relative",display:"flex"}},{children:[i.jsx("button",e.__assign({onClick:function(){return a(!l)},style:{border:"none",background:"transparent",display:"flex",alignItems:"center",cursor:"pointer",fontSize:"18px"}},{children:i.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:"lucide lucide-ellipsis-vertical-icon lucide-ellipsis-vertical"},{children:[i.jsx("circle",{cx:"12",cy:"12",r:"1"}),i.jsx("circle",{cx:"12",cy:"5",r:"1"}),i.jsx("circle",{cx:"12",cy:"19",r:"1"})]}))})),l&&i.jsx(R,{onAssignClick:function(){a(!l),o()}})]}))}function M(n){var s=n.users,o=s.length;return i.jsxs("div",e.__assign({style:{display:"flex",padding:"8px",paddingTop:"5px",paddingBottom:"5px",border:"1px solid #E2E8F0",background:"transparent",fontSize:"11px",gap:9,borderRadius:"5px"}},{children:[i.jsxs("p",e.__assign({style:{margin:"0px",display:"flex",alignItems:"center"}},{children:[(null==s?void 0:s[0].length)>9?(null==s?void 0:s[0].slice(0,9))+"...":null==s?void 0:s[0]," "]})),i.jsxs("p",e.__assign({style:{margin:"0px",display:"flex",alignItems:"center",borderRadius:"50px",backgroundColor:"#E2E8F0"}},{children:["+",o-1]}))]}))}exports.KebabMenu=E,exports.default=function(z){var R,W,F,L,N,H,q,P,O,G,K,U,X,J,Q,V,Y=z.onClose,Z=z.aiReason,$=z.onAccept,ee=z.onReject,ie=z.onIterate,ne=z.initialTone,se=z.onRegenerate,oe=z.labels,te=void 0===oe?{}:oe,le=z.toneLevelsConfig,ae=void 0===le?c:le,re=z.toneColorsConfig,de=void 0===re?g:re,ce=z.dialConfigs,ge=void 0===ce?a:ce,pe=z.actions,ue=z.disableAllActions,_e=void 0!==ue&&ue,ve=z.customStyles,xe=void 0===ve?{}:ve,me=z.severityChipStyles,ye=void 0===me?{}:me,he=z.customIcons,fe=void 0===he?{}:he,je=z.onOpenCognitive,be=z.showTone,Se=void 0===be||be,Ce=z.cognitiveSectionStyle,ke=void 0===Ce?{}:Ce,Ie=z.cognitiveScoreBadgeStyle,Be=void 0===Ie?{}:Ie,we=z.cognitiveScoreTextStyle,Ae=void 0===we?{}:we,De=z.cognitiveStyles,Te=void 0===De?{}:De,ze=z.cognitiveClassNames,Re=void 0===ze?{}:ze,Ee=z.cognitiveTitle,Me=void 0===Ee?"Cognitive Integrity":Ee,We=z.cognitiveLeftIcon,Fe=z.showCognitiveRightArrow,Le=void 0===Fe||Fe,Ne=z.isStreaming,He=z.onAssignClick,qe=z.assignedUsers,Pe=ae.findIndex(function(e){return e===ne});-1===Pe&&(Pe=1);var Oe=s.useState(!0),Ge=Oe[0],Ke=Oe[1],Ue=s.useState(!1),Xe=Ue[0],Je=Ue[1],Qe=s.useState(Pe),Ve=Qe[0],Ye=Qe[1],Ze=s.useState(Pe)[0],$e=ae[Ve],ei=de[$e]||"#BA7517",ii=Ve!==Ze,ni=[{id:"iterate",icon:fe.iterateIcon||i.jsx(n.PenLine,{size:16,color:"#64748B"}),label:te.btnIterate||"Iterate",color:"#64748B",onClick:ie},{id:"accept",icon:fe.acceptIcon||i.jsx(n.CheckCircle,{size:16,color:"#10B981"}),label:te.btnAccept||"Approve",color:"#10B981",onClick:$},{id:"reject",icon:fe.rejectIcon||i.jsx(n.XCircle,{size:16,color:"#DC2626"}),label:te.btnReject||"Reject",color:"#DC2626",onClick:ee}],si=pe||ni;return i.jsxs("div",e.__assign({onClick:function(e){return e.stopPropagation()},style:e.__assign(e.__assign({},p),null===(R=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===R?void 0:R.root)},{children:[i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},u),null===(W=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===W?void 0:W.header)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[i.jsx("span",{children:fe.summaryIcon||i.jsx(n.Info,{size:16,color:"#E24B4A"})}),i.jsx("span",e.__assign({style:e.__assign(e.__assign({},_),null===(F=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===F?void 0:F.title)},{children:te.summaryHeader||"Summary"}))]})),i.jsxs("div",e.__assign({style:{display:"flex",gap:15}},{children:[qe&&i.jsx(M,{users:qe}),He&&i.jsx(E,{onAssignClick:He}),i.jsx("button",e.__assign({onClick:Y,style:e.__assign(e.__assign({},b),null===(L=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===L?void 0:L.closeBtn)},{children:"✕"}))]}))]})),i.jsx("p",e.__assign({style:e.__assign(e.__assign({},v),null===(N=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===N?void 0:N.bodyText)},{children:null===(H=null==Z?void 0:Z.deviation_details)||void 0===H?void 0:H.deviation_title})),i.jsx("p",e.__assign({style:e.__assign(e.__assign({},x),null===(q=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===q?void 0:q.summary)},{children:null===(P=null==Z?void 0:Z.deviation_details)||void 0===P?void 0:P.deviation_summary})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},m),null===(O=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===O?void 0:O.impactContainer)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[i.jsxs("button",e.__assign({onClick:function(){return Ke(!Ge)},style:e.__assign(e.__assign({},y),null===(G=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===G?void 0:G.impactToggle)},{children:[i.jsx("span",e.__assign({style:e.__assign(e.__assign({},h),null===(K=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===K?void 0:K.impactToggleLabel)},{children:te.impactHeader||"Impact"})),i.jsx("span",e.__assign({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Ge?"rotate(180deg)":"rotate(0deg)"}},{children:i.jsx(n.ChevronDown,{size:16,color:"#E24B4A"})}))]})),i.jsx(d,{type:(null==Z?void 0:Z.severity)||"Medium",customStyles:ye})]})),Ge&&i.jsx("p",e.__assign({style:{fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0"}},{children:null!==(X=null===(U=null==Z?void 0:Z.deviation_details)||void 0===U?void 0:U.deviation_impact)&&void 0!==X?X:te.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."}))]})),i.jsx("div",e.__assign({style:e.__assign(e.__assign({},f),null===(J=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===J?void 0:J.actionContainer)},{children:si.map(function(n){var s,o,t=_e||n.disabled,l=t?e.__assign(e.__assign({cursor:"not-allowed",opacity:.5},null===(s=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===s?void 0:s.actionBtnDisabled),n.disabledStyle):{};return i.jsxs("button",e.__assign({style:e.__assign(e.__assign(e.__assign(e.__assign(e.__assign({},j),null===(o=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===o?void 0:o.actionBtn),{color:n.color}),n.style),l),onClick:t?void 0:n.onClick,disabled:t},{children:[n.icon,n.label]}),n.id)})})),Se&&i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},S),null===(Q=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===Q?void 0:Q.toneContainer)},{children:[i.jsxs("button",e.__assign({onClick:function(){return Je(!Xe)},style:e.__assign(e.__assign({},C),null===(V=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===V?void 0:V.toneToggleBtn)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[i.jsx(r,{toneIndex:Ve,configs:ge}),i.jsx("span",e.__assign({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:te.toneHeader||"Redline Tone"}))]})),i.jsx("span",e.__assign({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Xe?"rotate(180deg)":"rotate(0deg)"}},{children:i.jsx(n.ChevronDown,{size:16,color:"#111"})}))]})),Xe&&i.jsxs(i.Fragment,{children:[i.jsx("p",e.__assign({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:te.toneDescription||"Controls how assertively AI is redlining"})),i.jsx(o.ToneToggle,{isDirty:ii,onToneChange:function(e){Ye(e)},toneColor:ei,toneIndex:Ve,onClickRegenerate:function(){return null==se?void 0:se($e)},toneLabels:ae,isStreaming:Ne,aiReason:Z})]})]})),je&&i.jsxs("div",e.__assign({className:null==Re?void 0:Re.section,onClick:function(e){e.stopPropagation(),je&&je(e)},style:e.__assign(e.__assign(e.__assign({},k),null==Te?void 0:Te.section),ke)},{children:[i.jsxs("div",e.__assign({className:null==Re?void 0:Re.headerLeft,style:e.__assign(e.__assign({},I),null==Te?void 0:Te.headerLeft)},{children:[i.jsx("span",e.__assign({className:null==Re?void 0:Re.titleIcon,style:e.__assign(e.__assign({},B),null==Te?void 0:Te.titleIcon)},{children:null!=We?We:i.jsx(t.ReactComponent,{})})),i.jsx("div",e.__assign({className:null==Re?void 0:Re.cognitiveTitle,style:e.__assign(e.__assign({},w),null==Te?void 0:Te.cognitiveTitle)},{children:Me}))]})),i.jsxs("div",e.__assign({className:null==Re?void 0:Re.headerRight,style:e.__assign(e.__assign({},A),null==Te?void 0:Te.headerRight)},{children:[void 0!==(null==Z?void 0:Z.relevance_score)&&null!==(null==Z?void 0:Z.relevance_score)?i.jsxs("span",e.__assign({className:null==Re?void 0:Re.scoreBadge,style:e.__assign(e.__assign(e.__assign({},D),null==Te?void 0:Te.scoreBadge),Be)},{children:[i.jsx(l.ReactComponent,{}),i.jsxs("span",e.__assign({className:null==Re?void 0:Re.scoreText,style:e.__assign(e.__assign(e.__assign({},T),null==Te?void 0:Te.scoreText),Ae)},{children:[Math.round(Number(Z.relevance_score)),"%"]}))]})):null,Le&&i.jsx("span",e.__assign({style:{display:"flex",alignItems:"center"}},{children:i.jsx(n.ChevronRight,{size:16,color:"#64748B"})}))]}))]}))]}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("lucide-react"),o=require("react"),s=require("./ToneToggle.js");require("../CognitiveComponents/CitationComponent.module.css.js");var t=require("../icons/cognitiveBrain.svg.js"),l=require("../icons/aiMagic.svg.js"),a=require("@mui/material"),r=[{color:"#1D9E75",angle:-90,arcD:"M1 13 A10 10 0 0 1 1 13"},{color:"#BA7517",angle:0,arcD:"M1 13 A10 10 0 0 1 11 3"},{color:"#E24B4A",angle:90,arcD:"M1 13 A10 10 0 0 1 21 13"}],d=function(n){var o=n.toneIndex,s=n.configs,t=void 0===s?r:s,l=t[Math.min(o,t.length-1)]||t[1]||t[0],a=l.color,d=l.angle,c=l.arcD,g=(d-90)*Math.PI/180,v=11+9*Math.cos(g),_=13+9*Math.sin(g);return i.jsxs("svg",e.__assign({width:"22",height:"14",viewBox:"0 0 22 14",fill:"none"},{children:[i.jsx("path",{d:"M1 13 A10 10 0 0 1 21 13",stroke:"#e5e5e5",strokeWidth:"2.5",strokeLinecap:"round"}),i.jsx("path",{d:c,stroke:a,strokeWidth:"2.5",strokeLinecap:"round"}),i.jsx("line",{x1:"11",y1:"13",x2:v,y2:_,stroke:a,strokeWidth:"2",strokeLinecap:"round"})]}))},c=function(n){var o=n.type,s=n.customStyles,t=void 0===s?{}:s,l=e.__assign(e.__assign({},{High:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #FECACA",background:"#FEF2F2",color:"#B91C1C",fontSize:"11px",fontWeight:"500"},Medium:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #F2E5A1",background:"#FFFBEB",color:"#B45309",fontSize:"11px",fontWeight:"500"},Low:{padding:"3.5px 7px",borderRadius:"100px",border:"1px solid #8098F9",background:"#DBEAFE",color:"#444CE7",fontSize:"11px",fontWeight:"500"}}),t),a=l[o]||l.Medium;return i.jsx("div",e.__assign({style:a},{children:o}))},g=["Lenient","Balanced","Aggressive"],v={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},_={width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px"},u={display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},p={fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},x={fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},m={fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px",maxHeight:"100px",overflow:"auto"},y={marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},h={display:"flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",padding:0,width:"100%"},f={fontSize:11,fontWeight:500,textTransform:"uppercase",letterSpacing:"0.08em",color:"#E24B4A"},S={display:"flex",gap:8,marginBottom:18},j={flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:5,fontSize:12,fontWeight:500,padding:"7px 4px",borderRadius:8,border:"0.5px solid #ccc",background:"#fff",cursor:"pointer"},b={background:"none",border:"none",cursor:"pointer",fontSize:16,color:"#888",lineHeight:1,padding:0},C={borderTop:"0.5px solid #eee",padding:"14px 0px"},B={display:"flex",alignItems:"center",width:"100%",background:"none",border:"none",cursor:"pointer",padding:0,marginBottom:4},I={cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"12px",borderTop:"1px solid #eee",borderBottom:"none",paddingLeft:"12px",paddingRight:"12px"},k={display:"flex",alignItems:"center",gap:"4px",minWidth:0,flex:"1 1 auto",overflow:"hidden"},w={width:"28px",height:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",flex:"0 0 28px"},D={fontSize:"13px",color:"#101828",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},A={display:"flex",alignItems:"center",gap:"10px",flex:"0 0 auto",minWidth:0,flexWrap:"nowrap"},T={display:"flex",padding:"4px 8px",alignItems:"center",gap:"4px",borderRadius:"var(--chip-border-radius, 16px)",border:"1px solid var(--Primitive-Gray-300, #d0d5dd)",flex:"0 1 auto",minWidth:0},z={color:"var(--Primitive-Purple-600, #6938ef)",fontFamily:"Inter",fontSize:"12px",fontStyle:"normal",fontWeight:500,lineHeight:"150%"};exports.default=function(R){var W,E,L,M,F,H,q,N,P,O,G,X,J,K,Q,U,V,Y=R.onClose,Z=R.aiReason,$=R.onAccept,ee=R.onReject,ie=R.onIterate,ne=R.initialTone,oe=R.onRegenerate,se=R.labels,te=void 0===se?{}:se,le=R.toneLevelsConfig,ae=void 0===le?g:le,re=R.toneColorsConfig,de=void 0===re?v:re,ce=R.dialConfigs,ge=void 0===ce?r:ce,ve=R.actions,_e=R.disableAllActions,ue=void 0!==_e&&_e,pe=R.customStyles,xe=void 0===pe?{}:pe,me=R.severityChipStyles,ye=void 0===me?{}:me,he=R.customIcons,fe=void 0===he?{}:he,Se=R.onOpenCognitive,je=R.showTone,be=void 0===je||je,Ce=R.cognitiveSectionStyle,Be=void 0===Ce?{}:Ce,Ie=R.cognitiveScoreBadgeStyle,ke=void 0===Ie?{}:Ie,we=R.cognitiveScoreTextStyle,De=void 0===we?{}:we,Ae=R.cognitiveStyles,Te=void 0===Ae?{}:Ae,ze=R.cognitiveClassNames,Re=void 0===ze?{}:ze,We=R.cognitiveTitle,Ee=void 0===We?"Cognitive Integrity":We,Le=R.cognitiveLeftIcon,Me=R.showCognitiveRightArrow,Fe=void 0===Me||Me,He=R.isStreaming,qe=ae.findIndex(function(e){return e===ne});-1===qe&&(qe=1);var Ne=o.useState(!0),Pe=Ne[0],Oe=Ne[1],Ge=o.useState(!1),Xe=Ge[0],Je=Ge[1],Ke=o.useState(qe),Qe=Ke[0],Ue=Ke[1],Ve=o.useState(qe)[0],Ye=ae[Qe],Ze=de[Ye]||"#BA7517",$e=Qe!==Ve,ei=[{id:"iterate",icon:fe.iterateIcon||i.jsx(n.PenLine,{size:16,color:"#64748B"}),label:te.btnIterate||"Iterate",color:"#64748B",onClick:ie},{id:"accept",icon:fe.acceptIcon||i.jsx(n.CheckCircle,{size:16,color:"#10B981"}),label:te.btnAccept||"Approve",color:"#10B981",onClick:$},{id:"reject",icon:fe.rejectIcon||i.jsx(n.XCircle,{size:16,color:"#DC2626"}),label:te.btnReject||"Reject",color:"#DC2626",onClick:ee}],ii=ve||ei;return i.jsxs("div",e.__assign({onClick:function(e){return e.stopPropagation()},style:e.__assign(e.__assign({},_),null===(W=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===W?void 0:W.root)},{children:[i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},u),null===(E=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===E?void 0:E.header)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[i.jsx("span",{children:fe.summaryIcon||i.jsx(n.Info,{size:16,color:"#E24B4A"})}),i.jsx("span",e.__assign({style:e.__assign(e.__assign({},p),null===(L=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===L?void 0:L.title)},{children:te.summaryHeader||"Summary"}))]})),i.jsx("button",e.__assign({onClick:Y,style:e.__assign(e.__assign({},b),null===(M=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===M?void 0:M.closeBtn)},{children:"✕"}))]})),i.jsx(a.Tooltip,e.__assign({title:null===(F=null==Z?void 0:Z.deviation_details)||void 0===F?void 0:F.deviation_title},{children:i.jsx("p",e.__assign({style:e.__assign(e.__assign({},x),null===(H=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===H?void 0:H.bodyText)},{children:null===(q=null==Z?void 0:Z.deviation_details)||void 0===q?void 0:q.deviation_title}))})),i.jsx("p",e.__assign({style:e.__assign(e.__assign({},m),null===(N=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===N?void 0:N.summary)},{children:null===(P=null==Z?void 0:Z.deviation_details)||void 0===P?void 0:P.deviation_summary})),i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},y),null===(O=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===O?void 0:O.impactContainer)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},{children:[i.jsxs("button",e.__assign({onClick:function(){return Oe(!Pe)},style:e.__assign(e.__assign({},h),null===(G=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===G?void 0:G.impactToggle)},{children:[i.jsx("span",e.__assign({style:e.__assign(e.__assign({},f),null===(X=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===X?void 0:X.impactToggleLabel)},{children:te.impactHeader||"Impact"})),i.jsx("span",e.__assign({style:{fontSize:12,color:"#E24B4A",transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Pe?"rotate(180deg)":"rotate(0deg)"}},{children:i.jsx(n.ChevronDown,{size:16,color:"#E24B4A"})}))]})),i.jsx(c,{type:(null==Z?void 0:Z.severity)||"Medium",customStyles:ye})]})),Pe&&i.jsx("p",e.__assign({style:{fontSize:13,color:"#666",lineHeight:1.6,margin:"8px 0 0",maxHeight:"100px",overflow:"auto"}},{children:null!==(K=null===(J=null==Z?void 0:Z.deviation_details)||void 0===J?void 0:J.deviation_impact)&&void 0!==K?K:te.fallbackImpact||"This change reduces compliance obligations and lowers contractual risk thresholds."}))]})),i.jsx("div",e.__assign({style:e.__assign(e.__assign({},S),null===(Q=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===Q?void 0:Q.actionContainer)},{children:ii.map(function(n){var o,s,t=ue||n.disabled,l=t?e.__assign(e.__assign({cursor:"not-allowed",opacity:.5},null===(o=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===o?void 0:o.actionBtnDisabled),n.disabledStyle):{};return i.jsxs("button",e.__assign({style:e.__assign(e.__assign(e.__assign(e.__assign(e.__assign({},j),null===(s=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===s?void 0:s.actionBtn),{color:n.color}),n.style),l),onClick:t?void 0:n.onClick,disabled:t},{children:[n.icon,n.label]}),n.id)})})),be&&i.jsxs("div",e.__assign({style:e.__assign(e.__assign({},C),null===(U=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===U?void 0:U.toneContainer)},{children:[i.jsxs("button",e.__assign({onClick:function(){return Je(!Xe)},style:e.__assign(e.__assign({},B),null===(V=null==xe?void 0:xe.DeviationSummaryStyles)||void 0===V?void 0:V.toneToggleBtn)},{children:[i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:8}},{children:[i.jsx(d,{toneIndex:Qe,configs:ge}),i.jsx("span",e.__assign({style:{fontSize:13,fontWeight:500,color:"#111"}},{children:te.toneHeader||"Redline Tone"}))]})),i.jsx("span",e.__assign({style:{transition:"transform 0.2s",display:"flex",alignItems:"center",transform:Xe?"rotate(180deg)":"rotate(0deg)"}},{children:i.jsx(n.ChevronDown,{size:16,color:"#111"})}))]})),Xe&&i.jsxs(i.Fragment,{children:[i.jsx("p",e.__assign({style:{fontSize:12,color:"#888",margin:"0 0 12px"}},{children:te.toneDescription||"Controls how assertively AI is redlining"})),i.jsx(s.ToneToggle,{isDirty:$e,onToneChange:function(e){Ue(e)},toneColor:Ze,toneIndex:Qe,onClickRegenerate:function(){return null==oe?void 0:oe(Ye)},toneLabels:ae,isStreaming:He,aiReason:Z})]})]})),Se&&i.jsxs("div",e.__assign({className:null==Re?void 0:Re.section,onClick:function(e){e.stopPropagation(),Se&&Se(e)},style:e.__assign(e.__assign(e.__assign({},I),null==Te?void 0:Te.section),Be)},{children:[i.jsxs("div",e.__assign({className:null==Re?void 0:Re.headerLeft,style:e.__assign(e.__assign({},k),null==Te?void 0:Te.headerLeft)},{children:[i.jsx("span",e.__assign({className:null==Re?void 0:Re.titleIcon,style:e.__assign(e.__assign({},w),null==Te?void 0:Te.titleIcon)},{children:null!=Le?Le:i.jsx(t.ReactComponent,{})})),i.jsx("div",e.__assign({className:null==Re?void 0:Re.cognitiveTitle,style:e.__assign(e.__assign({},D),null==Te?void 0:Te.cognitiveTitle)},{children:Ee}))]})),i.jsxs("div",e.__assign({className:null==Re?void 0:Re.headerRight,style:e.__assign(e.__assign({},A),null==Te?void 0:Te.headerRight)},{children:[void 0!==(null==Z?void 0:Z.relevance_score)&&null!==(null==Z?void 0:Z.relevance_score)?i.jsxs("span",e.__assign({className:null==Re?void 0:Re.scoreBadge,style:e.__assign(e.__assign(e.__assign({},T),null==Te?void 0:Te.scoreBadge),ke)},{children:[i.jsx(l.ReactComponent,{}),i.jsxs("span",e.__assign({className:null==Re?void 0:Re.scoreText,style:e.__assign(e.__assign(e.__assign({},z),null==Te?void 0:Te.scoreText),De)},{children:[Math.round(Number(Z.relevance_score)),"%"]}))]})):null,Fe&&i.jsx("span",e.__assign({style:{display:"flex",alignItems:"center"}},{children:i.jsx(n.ChevronRight,{size:16,color:"#64748B"})}))]}))]}))]}))};
|
|
2
2
|
//# sourceMappingURL=DeviationSummary.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("./PopupDefaults.js"),o=require("../icons/History.svg.js"),s=require("../icons/message-chat-square.svg.js"),a=require("./ToneToggle.js"),r=[{id:"chat",icon:n.jsx(s.ReactComponent,{}),label:"Chat",description:"Type on what basis you want to iterate"},{id:"risk",icon:n.jsx(s.ReactComponent,{}),label:"Shift the risk",description:"Adjust how aggressive or lenient the language is"},{id:"history",icon:n.jsx(o.ReactComponent,{}),label:"Historical Recommendations",description:"Pull from past recommended clauses"}],l=[{id:"1",filename:"Mutual_DA2.pdf",excerpt:'"...shall protect Confidential Information using at least the same degree of care as it uses to protect its own confidential information, but no less than reasonable c..."',tab:"Balanced"},{id:"2",filename:"Tech NDA.pdf",excerpt:'"...protect confidential information using reasonable care and appropriate safeguards..."',tab:"Balanced"},{id:"3",filename:"Corp NDA.pdf",excerpt:'"...shall use best efforts to protect any disclosed confidential materials from unauthorised access or disclosure..."',tab:"Aggressive"},{id:"4",filename:"Vendor Agreement.pdf",excerpt:'"...may use disclosed information solely for the stated purpose with no special handling required..."',tab:"Lenient"}],d=["Lenient","Balanced","Aggressive"],c={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},g=["Grounded","Innovative"];function f(i){var t=i.chatTitle,o=i.chatBody,s=i.mergedStyles,a=void 0===s?x:s;return n.jsx("div",e.__assign({style:a.body},{children:n.jsxs("div",e.__assign({style:a.chatBanner},{children:[n.jsx("p",e.__assign({style:a.chatBannerTitle},{children:t})),n.jsx("p",e.__assign({style:a.chatBannerBody},{children:o}))]}))}))}function p(t){var o=t.initialTone,s=t.onRiskRegenerate,r=t.riskMode,l=t.toneLevelsConfig,f=void 0===l?d:l,p=t.toneColorsConfig,u=void 0===p?c:p,h=t.riskModesConfig,y=void 0===h?g:h,m=t.mergedStyles,b=void 0===m?x:m,_=t.isStreaming,v=t.aiReason,C=f.findIndex(function(e){return e===o});-1===C&&(C=1);var j=i.useState(r||y[0]||"Grounded"),k=j[0],S=j[1],B=i.useState(C),R=B[0],T=B[1],A=i.useState(C)[0],w=f[R],z=u[w]||"#BA7517",L=R!==A||r!==k;return n.jsxs("div",e.__assign({style:b.body},{children:[n.jsx("div",e.__assign({style:{display:"flex",gap:8,marginBottom:16}},{children:y.map(function(i){return n.jsxs("button",e.__assign({onClick:function(){return S(i)},style:{flex:1,display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderRadius:10,border:"1px solid ".concat(k===i?"#7c5cbf":"#e0ddd8"),background:"#fff",cursor:"pointer",fontSize:13,fontWeight:500,color:"#1a1a1a"}},{children:[n.jsx("span",e.__assign({style:{width:16,height:16,borderRadius:"50%",border:"2px solid ".concat(k===i?"#7c5cbf":"#ccc"),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:k===i&&n.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:"#7c5cbf"}})})),i.charAt(0).toUpperCase()+i.slice(1)]}),i)})})),n.jsx(a.ToneToggle,{onToneChange:function(e){return T(e)},toneColor:z,isDirty:L,toneIndex:R,onClickRegenerate:function(){return null==s?void 0:s({tone:w,mode:k})},isStreaming:_,aiReason:v})]}))}function u(t){var o=t.onApply,s=t.historicalClausesData,a=void 0===s?l:s,r=t.toneLevelsConfig,c=void 0===r?d:r,g=t.mergedStyles,f=void 0===g?x:g,p=c.length>1?c[1]:c[0]||"Balanced",u=i.useState(p),h=u[0],y=u[1],m=a.filter(function(e){return e.tab===h});return n.jsxs("div",e.__assign({style:f.body},{children:[n.jsx("div",e.__assign({style:f.segmentedControl},{children:c.map(function(i){return n.jsx("button",e.__assign({onClick:function(){return y(i)},style:e.__assign(e.__assign({},f.segmentedBtn),h===i?f.segmentedBtnActive:{})},{children:i.charAt(0).toUpperCase()+i.slice(1)}),i)})})),n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:10,marginTop:12}},{children:[m.map(function(i){return n.jsxs("button",e.__assign({onClick:function(){return null==o?void 0:o({type:"history",value:i.excerpt})},style:f.clauseCard},{children:[n.jsx("p",e.__assign({style:f.clauseFilename},{children:i.filename})),n.jsx("p",e.__assign({style:f.clauseExcerpt},{children:i.excerpt}))]}),i.id)}),0===m.length&&n.jsx("p",e.__assign({style:{fontSize:12,color:"#aaa",textAlign:"center",padding:"12px 0"}},{children:"No clauses for this tone"}))]}))]}))}function h(e){var i=e.type,t=e.onRiskRegenerate,o=e.initialTone,s=e.riskMode,a=e.onApply,r=e.chatTitle,l=e.chatBody,d=e.historicalClausesData,c=e.toneLevelsConfig,g=e.toneColorsConfig,h=e.riskModesConfig,y=e.mergedStyles,m=void 0===y?x:y,b=e.isStreaming,_=e.aiReason;return"chat"===i?n.jsx(f,{chatTitle:r,chatBody:l,mergedStyles:m}):"risk"===i?n.jsx(p,{onRiskRegenerate:t,initialTone:o,riskMode:s,toneLevelsConfig:c,toneColorsConfig:g,riskModesConfig:h,mergedStyles:m,isStreaming:b,aiReason:_}):"history"===i?n.jsx(u,{onApply:a,historicalClausesData:d,toneLevelsConfig:c,mergedStyles:m}):null}var x={card:{background:"#fff",border:"0.5px solid #e8e7e3",borderRadius:14,width:300,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("./PopupDefaults.js"),o=require("../icons/History.svg.js"),s=require("../icons/message-chat-square.svg.js"),a=require("./ToneToggle.js"),r=[{id:"chat",icon:n.jsx(s.ReactComponent,{}),label:"Chat",description:"Type on what basis you want to iterate"},{id:"risk",icon:n.jsx(s.ReactComponent,{}),label:"Shift the risk",description:"Adjust how aggressive or lenient the language is"},{id:"history",icon:n.jsx(o.ReactComponent,{}),label:"Historical Recommendations",description:"Pull from past recommended clauses"}],l=[{id:"1",filename:"Mutual_DA2.pdf",excerpt:'"...shall protect Confidential Information using at least the same degree of care as it uses to protect its own confidential information, but no less than reasonable c..."',tab:"Balanced"},{id:"2",filename:"Tech NDA.pdf",excerpt:'"...protect confidential information using reasonable care and appropriate safeguards..."',tab:"Balanced"},{id:"3",filename:"Corp NDA.pdf",excerpt:'"...shall use best efforts to protect any disclosed confidential materials from unauthorised access or disclosure..."',tab:"Aggressive"},{id:"4",filename:"Vendor Agreement.pdf",excerpt:'"...may use disclosed information solely for the stated purpose with no special handling required..."',tab:"Lenient"}],d=["Lenient","Balanced","Aggressive"],c={Lenient:"#1D9E75",Balanced:"#BA7517",Aggressive:"#E24B4A"},g=["Grounded","Innovative"];function f(i){var t=i.chatTitle,o=i.chatBody,s=i.mergedStyles,a=void 0===s?x:s;return n.jsx("div",e.__assign({style:a.body},{children:n.jsxs("div",e.__assign({style:a.chatBanner},{children:[n.jsx("p",e.__assign({style:a.chatBannerTitle},{children:t})),n.jsx("p",e.__assign({style:a.chatBannerBody},{children:o}))]}))}))}function p(t){var o=t.initialTone,s=t.onRiskRegenerate,r=t.riskMode,l=t.toneLevelsConfig,f=void 0===l?d:l,p=t.toneColorsConfig,u=void 0===p?c:p,h=t.riskModesConfig,y=void 0===h?g:h,m=t.mergedStyles,b=void 0===m?x:m,_=t.isStreaming,v=t.aiReason,C=f.findIndex(function(e){return e===o});-1===C&&(C=1);var j=i.useState(r||y[0]||"Grounded"),k=j[0],S=j[1],B=i.useState(C),R=B[0],T=B[1],A=i.useState(C)[0],w=f[R],z=u[w]||"#BA7517",L=R!==A||r!==k;return n.jsxs("div",e.__assign({style:b.body},{children:[n.jsx("div",e.__assign({style:{display:"flex",gap:8,marginBottom:16}},{children:y.map(function(i){return n.jsxs("button",e.__assign({onClick:function(){return S(i)},style:{flex:1,display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderRadius:10,border:"1px solid ".concat(k===i?"#7c5cbf":"#e0ddd8"),background:"#fff",cursor:"pointer",fontSize:13,fontWeight:500,color:"#1a1a1a"}},{children:[n.jsx("span",e.__assign({style:{width:16,height:16,borderRadius:"50%",border:"2px solid ".concat(k===i?"#7c5cbf":"#ccc"),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:k===i&&n.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:"#7c5cbf"}})})),i.charAt(0).toUpperCase()+i.slice(1)]}),i)})})),n.jsx(a.ToneToggle,{onToneChange:function(e){return T(e)},toneColor:z,isDirty:L,toneIndex:R,onClickRegenerate:function(){return null==s?void 0:s({tone:w,mode:k})},isStreaming:_,aiReason:v})]}))}function u(t){var o=t.onApply,s=t.historicalClausesData,a=void 0===s?l:s,r=t.toneLevelsConfig,c=void 0===r?d:r,g=t.mergedStyles,f=void 0===g?x:g,p=c.length>1?c[1]:c[0]||"Balanced",u=i.useState(p),h=u[0],y=u[1],m=a.filter(function(e){return e.tab===h});return n.jsxs("div",e.__assign({style:f.body},{children:[n.jsx("div",e.__assign({style:f.segmentedControl},{children:c.map(function(i){return n.jsx("button",e.__assign({onClick:function(){return y(i)},style:e.__assign(e.__assign({},f.segmentedBtn),h===i?f.segmentedBtnActive:{})},{children:i.charAt(0).toUpperCase()+i.slice(1)}),i)})})),n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:10,marginTop:12}},{children:[m.map(function(i){return n.jsxs("button",e.__assign({onClick:function(){return null==o?void 0:o({type:"history",value:i.excerpt})},style:f.clauseCard},{children:[n.jsx("p",e.__assign({style:f.clauseFilename},{children:i.filename})),n.jsx("p",e.__assign({style:f.clauseExcerpt},{children:i.excerpt}))]}),i.id)}),0===m.length&&n.jsx("p",e.__assign({style:{fontSize:12,color:"#aaa",textAlign:"center",padding:"12px 0"}},{children:"No clauses for this tone"}))]}))]}))}function h(e){var i=e.type,t=e.onRiskRegenerate,o=e.initialTone,s=e.riskMode,a=e.onApply,r=e.chatTitle,l=e.chatBody,d=e.historicalClausesData,c=e.toneLevelsConfig,g=e.toneColorsConfig,h=e.riskModesConfig,y=e.mergedStyles,m=void 0===y?x:y,b=e.isStreaming,_=e.aiReason;return"chat"===i?n.jsx(f,{chatTitle:r,chatBody:l,mergedStyles:m}):"risk"===i?n.jsx(p,{onRiskRegenerate:t,initialTone:o,riskMode:s,toneLevelsConfig:c,toneColorsConfig:g,riskModesConfig:h,mergedStyles:m,isStreaming:b,aiReason:_}):"history"===i?n.jsx(u,{onApply:a,historicalClausesData:d,toneLevelsConfig:c,mergedStyles:m}):null}var x={card:{background:"#fff",border:"0.5px solid #e8e7e3",borderRadius:14,width:300,fontFamily:"system-ui, sans-serif"},header:{display:"flex",alignItems:"center",gap:8,padding:"14px 16px",borderBottom:"0.5px solid #e8e7e3"},backBtn:{background:"none",border:"none",cursor:"pointer",fontSize:20,color:"#888",padding:0,lineHeight:1},headerTitle:{fontSize:14,fontWeight:500,color:"#1a1a1a"},row:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",cursor:"pointer",border:"none",textAlign:"left",gap:10,boxSizing:"border-box",backgroundColor:"transparent"},rowLeft:{display:"flex",alignItems:"flex-start",gap:10,flex:1},icon:{fontSize:16,color:"#666",marginTop:1,flexShrink:0},label:{margin:0,fontSize:14,fontWeight:500,color:"#1a1a1a"},desc:{margin:"2px 0 0",fontSize:12,color:"#888",lineHeight:1.4},chevron:{fontSize:18,color:"#aaa",flexShrink:0,display:"inline-block",transition:"transform 0.2s"},body:{padding:"0 16px 14px 16px"},chatBanner:{background:"#eef4fd",border:"1px solid #c5d8f7",borderRadius:10,padding:"12px 14px",marginBottom:10},chatBannerTitle:{margin:"0 0 6px",fontSize:14,fontWeight:600,color:"#3a5a8a"},chatBannerBody:{margin:0,fontSize:13,color:"#4a6080",lineHeight:1.5},applyBtn:{display:"flex",padding:"7px 10.5px",justifyContent:"center",alignItems:"center",gap:"7px",marginTop:8,fontSize:13,borderRadius:6,border:"1px solid #2563EB",background:"#2563EB",color:"#fff"},rangeLabel:{fontSize:12,color:"#888"},segmentedControl:{border:"1px solid #F2F4F7",display:"flex",background:"#F9FAFB",borderRadius:4,padding:6,gap:8},segmentedBtn:{flex:1,padding:"7px 0",fontSize:13,fontWeight:500,color:"#888",background:"transparent",border:"none",borderRadius:8,cursor:"pointer",transition:"background 0.15s, color 0.15s"},segmentedBtnActive:{background:"#dce8fa",color:"#2a4a7a",fontWeight:700},clauseCard:{background:"#fff",border:"1px solid #dde5f0",borderRadius:12,padding:"12px 14px",textAlign:"left",cursor:"pointer",width:"100%"},clauseFilename:{margin:"0 0 6px",fontSize:13,fontWeight:600,color:"#2a4a7a"},clauseExcerpt:{margin:0,fontSize:13,color:"#4a5a70",fontStyle:"italic",lineHeight:1.5}};exports.default=function(o){var s=o.onBack,a=o.onChatClick,f=o.onRiskRegenerate,p=o.initialTone,u=o.riskMode,y=o.onApply,m=o.onTabToggle,b=o.menuItemsConfig,_=void 0===b?r:b,v=o.historicalClausesConfig,C=void 0===v?l:v,j=o.chatTitle,k=void 0===j?"Chat mode active":j,S=o.chatBody,B=void 0===S?"You are now chatting about this redline, continue the conversation in the left panel to refine or update it":S,R=o.headerTitle,T=void 0===R?"How would you like to iterate?":R,A=o.customStyles,w=void 0===A?{}:A,z=o.toneLevelsConfig,L=void 0===z?d:z,M=o.toneColorsConfig,D=void 0===M?c:M,I=o.riskModesConfig,q=void 0===I?g:I,F=o.isStreaming,H=o.aiReason,W=i.useState(null),E=W[0],G=W[1],N=e.__assign(e.__assign(e.__assign({},t.default.IterateMenuDefaults.styles),x),w);return n.jsxs("div",e.__assign({style:N.card},{children:[n.jsxs("div",e.__assign({style:N.header},{children:[n.jsx("button",e.__assign({onClick:s,style:N.backBtn,"aria-label":"Go back"},{children:"‹"})),n.jsx("span",e.__assign({style:N.headerTitle},{children:T}))]})),n.jsx("div",e.__assign({style:{width:"100%",maxHeight:"300px",overflow:"auto"}},{children:_.map(function(i,t){var o=E===i.id;return n.jsxs("div",e.__assign({style:{borderBottom:t<_.length-1?"0.5px solid #e8e7e3":"none"}},{children:[n.jsxs("button",e.__assign({onClick:function(){return e=i.id,G(function(n){return n===e?null:("chat"===e&&(null==a||a()),m&&m(e),e)});var e},style:N.row},{children:[n.jsx("div",e.__assign({style:N.rowLeft},{children:n.jsxs("div",{children:[n.jsx("p",e.__assign({style:N.label},{children:i.label})),n.jsx("p",e.__assign({style:N.desc},{children:i.description}))]})})),n.jsx("span",e.__assign({style:e.__assign(e.__assign({},N.chevron),{transform:o?"rotate(90deg)":"rotate(0deg)"})},{children:"›"}))]})),n.jsx("div",e.__assign({style:{maxHeight:o?400:0,overflow:"hidden",transition:"max-height 0.25s ease"}},{children:n.jsx(h,{type:i.id,onRiskRegenerate:f,initialTone:p,riskMode:u,onApply:y,chatTitle:k,chatBody:B,historicalClausesData:C,toneLevelsConfig:L,toneColorsConfig:D,riskModesConfig:q,mergedStyles:N,aiReason:H,isStreaming:F})}))]}),i.id)})}))]}))};
|
|
2
2
|
//# sourceMappingURL=IterateComponent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={root:{width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"400px",overflow:"auto"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},title:{fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},bodyText:{fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111"},summary:{fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px"},impactContainer:{marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},actionContainer:{display:"flex",gap:8,marginBottom:18},toneContainer:{borderTop:"0.5px solid #eee",paddingTop:14}},o={styles:{card:{background:"#fff",border:"0.5px solid #e8e7e3",borderRadius:14,width:300,maxHeight:"350px",overflow:"auto",fontFamily:"system-ui, sans-serif"},header:{display:"flex",alignItems:"center",gap:8,padding:"14px 16px",borderBottom:"0.5px solid #e8e7e3"},backBtn:{background:"none",border:"none",cursor:"pointer",fontSize:20,color:"#888",padding:0,lineHeight:1},headerTitle:{fontSize:14,fontWeight:500,color:"#1a1a1a"},row:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",cursor:"pointer",border:"none",textAlign:"left",gap:10,boxSizing:"border-box",backgroundColor:"transparent"},rowLeft:{display:"flex",alignItems:"flex-start",gap:10,flex:1},label:{margin:0,fontSize:14,fontWeight:500,color:"#1a1a1a"},desc:{margin:"2px 0 0",fontSize:12,color:"#888",lineHeight:1.4},chevron:{fontSize:18,color:"#aaa",flexShrink:0,display:"inline-block",transition:"transform 0.2s"},body:{padding:"0 16px 14px 16px"},chatBanner:{background:"#eef4fd",border:"1px solid #c5d8f7",borderRadius:10,padding:"12px 14px",marginBottom:10},chatBannerTitle:{margin:"0 0 6px",fontSize:14,fontWeight:600,color:"#3a5a8a"},chatBannerBody:{margin:0,fontSize:13,color:"#4a6080",lineHeight:1.5},segmentedControl:{border:"1px solid #F2F4F7",display:"flex",background:"#F9FAFB",borderRadius:4,padding:6,gap:8},segmentedBtn:{flex:1,padding:"7px 0",fontSize:13,fontWeight:500,color:"#888",background:"transparent",border:"none",borderRadius:8,cursor:"pointer",transition:"background 0.15s, color 0.15s"},segmentedBtnActive:{background:"#dce8fa",color:"#2a4a7a",fontWeight:700},clauseCard:{background:"#fff",border:"1px solid #dde5f0",borderRadius:12,padding:"12px 14px",textAlign:"left",cursor:"pointer",width:"100%"},clauseFilename:{margin:"0 0 6px",fontSize:13,fontWeight:600,color:"#2a4a7a"},clauseExcerpt:{margin:0,fontSize:13,color:"#4a5a70",fontStyle:"italic",lineHeight:1.5}}},
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={root:{width:"350px",background:"#fff",border:"1px solid #ddd",borderRadius:"8px",padding:"16px",maxHeight:"400px",overflow:"auto"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},title:{fontSize:11,fontWeight:500,letterSpacing:"0.08em",color:"#E24B4A",textTransform:"uppercase"},bodyText:{fontSize:15,fontWeight:500,margin:"0 0 8px",color:"#111"},summary:{fontSize:13,color:"#666",lineHeight:1.6,margin:"0 0 14px"},impactContainer:{marginBottom:14,borderTop:"0.5px solid #eee",paddingTop:12},actionContainer:{display:"flex",gap:8,marginBottom:18},toneContainer:{borderTop:"0.5px solid #eee",paddingTop:14}},o={styles:{card:{background:"#fff",border:"0.5px solid #e8e7e3",borderRadius:14,width:300,maxHeight:"350px",overflow:"auto",fontFamily:"system-ui, sans-serif"},header:{display:"flex",alignItems:"center",gap:8,padding:"14px 16px",borderBottom:"0.5px solid #e8e7e3"},backBtn:{background:"none",border:"none",cursor:"pointer",fontSize:20,color:"#888",padding:0,lineHeight:1},headerTitle:{fontSize:14,fontWeight:500,color:"#1a1a1a"},row:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",cursor:"pointer",border:"none",textAlign:"left",gap:10,boxSizing:"border-box",backgroundColor:"transparent"},rowLeft:{display:"flex",alignItems:"flex-start",gap:10,flex:1},label:{margin:0,fontSize:14,fontWeight:500,color:"#1a1a1a"},desc:{margin:"2px 0 0",fontSize:12,color:"#888",lineHeight:1.4},chevron:{fontSize:18,color:"#aaa",flexShrink:0,display:"inline-block",transition:"transform 0.2s"},body:{padding:"0 16px 14px 16px"},chatBanner:{background:"#eef4fd",border:"1px solid #c5d8f7",borderRadius:10,padding:"12px 14px",marginBottom:10},chatBannerTitle:{margin:"0 0 6px",fontSize:14,fontWeight:600,color:"#3a5a8a"},chatBannerBody:{margin:0,fontSize:13,color:"#4a6080",lineHeight:1.5},segmentedControl:{border:"1px solid #F2F4F7",display:"flex",background:"#F9FAFB",borderRadius:4,padding:6,gap:8},segmentedBtn:{flex:1,padding:"7px 0",fontSize:13,fontWeight:500,color:"#888",background:"transparent",border:"none",borderRadius:8,cursor:"pointer",transition:"background 0.15s, color 0.15s"},segmentedBtnActive:{background:"#dce8fa",color:"#2a4a7a",fontWeight:700},clauseCard:{background:"#fff",border:"1px solid #dde5f0",borderRadius:12,padding:"12px 14px",textAlign:"left",cursor:"pointer",width:"100%"},clauseFilename:{margin:"0 0 6px",fontSize:13,fontWeight:600,color:"#2a4a7a"},clauseExcerpt:{margin:0,fontSize:13,color:"#4a5a70",fontStyle:"italic",lineHeight:1.5}}},t={root:{animation:"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both",width:350,background:"#fff",borderRadius:18,boxShadow:"0 8px 48px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.07)",fontFamily:"'DM Sans', 'Segoe UI', sans-serif"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",borderBottom:"1.5px solid #e2e8f0",borderRadius:"18px 18px 0px 0px"},closeBtn:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"},body:{padding:"14px 16px",display:"flex",flexDirection:"column",gap:13},meta:{},divider:{height:1,background:"#f1f5f9"},impactText:{margin:"10px 0 0",fontSize:13,lineHeight:1.65,color:"#334155",overflow:"auto",maxHeight:"100px"},secondSection:{marginTop:12,background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:12,padding:"14px 16px",fontSize:13,lineHeight:1.7,color:"#64748b",fontStyle:"italic",overflow:"auto",maxHeight:"100px"},actionsContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:2},fallbackSectionStyle:{marginTop:12,padding:"16px",fontSize:13,color:"#94a3b8",textAlign:"center",fontStyle:"italic",background:"#f8fafc",borderRadius:12,border:"1.5px dashed #cbd5e1"}},n={container:{background:"#fff"},header:{display:"flex",alignItems:"center",justifyContent:"space-between"},innerHeader:{padding:"8px 12px"},innerBody:{padding:"8px 12px",color:"#4b5563"}},a={DeviationSummaryDefaults:e,IterateMenuDefaults:o,RedlineCardDefaults:t,CitationAccordionDefaults:n};exports.CitationAccordionDefaults=n,exports.DeviationSummaryDefaults=e,exports.IterateMenuDefaults=o,exports.RedlineCardDefaults=t,exports.default=a;
|
|
2
2
|
//# sourceMappingURL=PopupDefaults.js.map
|
package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),s=require("lucide-react"),n=require("react"),i=require("./PopupDefaults.js");function o(e){var t=new Date(e);return isNaN(t.getTime())?e:new Date(e).toLocaleString("en-US",{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0}).replace(" AM","AM").replace(" PM","PM")}var r=function(){return t.jsxs("svg",e.__assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t.jsx("circle",{cx:"11",cy:"11",r:"10",stroke:"#22c55e",strokeWidth:"2",fill:"#f0fdf4"}),t.jsx("path",{d:"M6.5 11.5l3 3 6-6",stroke:"#22c55e",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))},a=function(){return t.jsxs("svg",e.__assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t.jsx("circle",{cx:"11",cy:"11",r:"10",stroke:"#ef4444",strokeWidth:"2",fill:"#fff1f2"}),t.jsx("path",{d:"M7.5 7.5l7 7M14.5 7.5l-7 7",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}))},d=function(){return t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},{children:t.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#94a3b8",strokeWidth:"1.8",strokeLinecap:"round"})}))},l=function(){return t.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t.jsx("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("path",{d:"M11 8.5l1.5 1.5 2.5-2.5",stroke:"#22c55e",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}))},c=function(){return t.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t.jsx("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("path",{d:"M11.5 8l3 3m0-3l-3 3",stroke:"#ef4444",strokeWidth:"1.4",strokeLinecap:"round"})]}))},u=function(s){var n=s.open;return t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",style:{transform:n?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.25s ease"}},{children:t.jsx("path",{d:"M4.5 11.25L9 6.75l4.5 4.5",stroke:"#64748b",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))},g=function(s){var n=s.color,i=void 0===n?"#3b82f6":n;return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M1.5 8A6.5 6.5 0 1 0 4 3.2",stroke:i,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M1.5 3.5v4h4",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M8 5v3.5l2 1.5",stroke:i,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))},h=function(){return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M13.5 8a5.5 5.5 0 1 0-1.6 3.9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M13.5 13v-4.5H9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},x=function(){return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M2 8h12M10 4l4 4-4 4",stroke:"#64748b",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M4 5l-2 3 2 3",stroke:"#64748b",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))};function f(s){var n=s.title,i=s.open,o=s.onToggle,r=s.children;return t.jsxs("div",e.__assign({style:{maxHeight:"170px",overflow:"auto"}},{children:[t.jsxs("div",e.__assign({onClick:o,style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",userSelect:"none",padding:"2px 0"}},{children:[t.jsx("span",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:n})),t.jsx(u,{open:i})]})),t.jsx("div",e.__assign({style:{maxHeight:i?300:0,opacity:i?1:0,overflow:"hidden",transition:"max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s"}},{children:r}))]}))}function _(s){var n=s.icon,i=s.label,o=s.onClick,r=s.customStyle,a=void 0===r?{}:r,d=s.disabled,l=void 0!==d&&d,c=s.disabledStyle,u=void 0===c?{}:c,g=e.__assign(e.__assign({display:"flex",alignItems:"center",gap:7,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:l?"not-allowed":"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap",opacity:l?.5:1},a),l?u:{});return t.jsxs("button",e.__assign({onClick:l?void 0:o,disabled:l,style:g,onMouseEnter:function(e){l||(e.currentTarget.style.background="#f1f5f9",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.07)")},onMouseLeave:function(e){l||(e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow="")}},{children:[n,i]}))}exports.ApprovedIcon=r,exports.ChevronIcon=u,exports.CloseIcon=d,exports.HistoryIcon=g,exports.IterateIcon=x,exports.RedlineCard=function(u){var p,j=u.status,k=u.onClose,b=u.impactText,v=u.secondText,y=u.actionTakenByName,m=u.actionTakenAtTime,B=void 0===m?"NA":m,C=u.onHistory,L=u.onIterate,w=u.onReinstate,R=u.onRevert,I=u.disableAllActions,S=void 0!==I&&I,M=u.impactTitle,W=void 0===M?"Impact":M,T=u.customConfigs,D=void 0===T?{}:T,A=u.customStyles,z=void 0===A?{}:A,U=n.useState(!0),H=U[0],q=U[1],F=n.useState(!0),E=F[0],N=F[1],P=n.useState(!1),O=P[0],Y=P[1],G={headerBg:"#f0fdf4",headerBorder:"#dcfce7",titleColor:"#166534",label:"Redline Approved",metaLabel:"Approved By",UserIcon:t.jsx(l,{}),StatusIcon:t.jsx(r,{}),secondTitle:"Original text",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!0,actions:[{icon:t.jsx(g,{}),label:"History",onClick:C},{icon:t.jsx(s.Undo2,{size:17}),label:"Revert",onClick:R},{icon:t.jsx(x,{}),label:"Iterate",onClick:L}]},J={headerBg:"#fff1f2",headerBorder:"#fecdd3",titleColor:"#991b1b",label:"Redline Rejected",metaLabel:"Rejected By",UserIcon:t.jsx(c,{}),StatusIcon:t.jsx(a,{}),secondTitle:"Rejected Recommendation",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!1,actions:[{icon:t.jsx(g,{color:"#3b82f6"}),label:"History",onClick:C},{icon:t.jsx(h,{}),label:"Reinstate",onClick:w},{icon:t.jsx(x,{}),label:"Iterate",onClick:L}]},K={headerBg:"#E2E8F0",headerBorder:"none",titleColor:"#1E293B",label:"Redline Reverted",metaLabel:"Reverted By",UserIcon:t.jsx(l,{}),StatusIcon:t.jsx(s.Undo2,{size:17}),secondTitle:"Reverted redline",secondBg:"#F9FAFB",secondBorder:"#D0D5DD",impactBox:!1,actions:[{icon:t.jsx(g,{}),label:"History",onClick:C},{icon:t.jsx(x,{}),label:"Iterate",onClick:L}]};p="accepted"===j?G:"rejected"===j?J:K;var Q=e.__assign(e.__assign({},p),D[j]||{});return t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},i.default.RedlineCardDefaults.root),{animation:O?"slideOut 0.26s cubic-bezier(0.4,0,1,1) forwards":i.default.RedlineCardDefaults.root.animation||"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both"}),z.root)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},i.default.RedlineCardDefaults.header),{background:Q.headerBg,borderBottom:"1.5px solid ".concat(Q.headerBorder)}),z.header)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[Q.StatusIcon,t.jsx("span",e.__assign({style:{fontSize:15,fontWeight:700,color:Q.titleColor,letterSpacing:"-0.01em"}},{children:Q.label}))]})),t.jsx("button",e.__assign({onClick:function(){Y(!0),k()},style:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"}},{children:t.jsx(d,{})}))]})),t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.body),z.body)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.meta),z.meta)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[Q.UserIcon,t.jsx("span",e.__assign({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:Q.metaLabel}))]})),t.jsxs("div",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:[y,", ",o(B)]}))]})),t.jsx("div",{style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.divider),z.divider)}),t.jsx(f,e.__assign({title:W,open:H,onToggle:function(){return q(function(e){return!e})}},{children:t.jsx("p",e.__assign({style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.impactText),z.impactText)},{children:b||""}))})),t.jsx("div",{style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.divider),z.divider)}),t.jsx(f,e.__assign({title:Q.secondTitle,open:E,onToggle:function(){return N(function(e){return!e})}},{children:t.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},i.default.RedlineCardDefaults.secondSection),{background:Q.secondBg,border:"1.5px solid ".concat(Q.secondBorder)}),z.secondSection)},{children:v||""}))})),t.jsx("div",e.__assign({style:e.__assign(e.__assign({},i.default.RedlineCardDefaults.actionsContainer),z.actionsContainer)},{children:Q.actions.map(function(s){return t.jsx(_,{icon:s.icon,label:s.label,onClick:s.onClick,customStyle:e.__assign(e.__assign({},s.style),z.actionBtn),disabled:S||s.disabled,disabledStyle:z.actionBtnDisabled},s.label)})}))]}))]}))},exports.ReinstateIcon=h,exports.RejectedIcon=a,exports.UserApprovedIcon=l,exports.UserRejectedIcon=c,exports.formatDate=o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),s=require("lucide-react"),i=require("react"),n=require("./PopupDefaults.js"),o=require("@mui/material");function r(e){var t=new Date(e);return isNaN(t.getTime())?e:new Date(e).toLocaleString("en-US",{month:"2-digit",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0}).replace(" AM","AM").replace(" PM","PM")}var a=function(){return t.jsxs("svg",e.__assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t.jsx("circle",{cx:"11",cy:"11",r:"10",stroke:"#22c55e",strokeWidth:"2",fill:"#f0fdf4"}),t.jsx("path",{d:"M6.5 11.5l3 3 6-6",stroke:"#22c55e",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))},l=function(){return t.jsxs("svg",e.__assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},{children:[t.jsx("circle",{cx:"11",cy:"11",r:"10",stroke:"#ef4444",strokeWidth:"2",fill:"#fff1f2"}),t.jsx("path",{d:"M7.5 7.5l7 7M14.5 7.5l-7 7",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}))},d=function(){return t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},{children:t.jsx("path",{d:"M4 4l10 10M14 4L4 14",stroke:"#94a3b8",strokeWidth:"1.8",strokeLinecap:"round"})}))},c=function(){return t.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t.jsx("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("path",{d:"M11 8.5l1.5 1.5 2.5-2.5",stroke:"#22c55e",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}))},g=function(){return t.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("circle",{cx:"6.5",cy:"5.5",r:"2.5",stroke:"#94a3b8",strokeWidth:"1.4"}),t.jsx("path",{d:"M1.5 13.5c0-3.038 2.462-5.5 5-5.5s5 2.462 5 5.5",stroke:"#94a3b8",strokeWidth:"1.4",strokeLinecap:"round"}),t.jsx("path",{d:"M11.5 8l3 3m0-3l-3 3",stroke:"#ef4444",strokeWidth:"1.4",strokeLinecap:"round"})]}))},u=function(s){var i=s.open;return t.jsx("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",style:{transform:i?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.25s ease"}},{children:t.jsx("path",{d:"M4.5 11.25L9 6.75l4.5 4.5",stroke:"#64748b",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))},x=function(s){var i=s.color,n=void 0===i?"#3b82f6":i;return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M1.5 8A6.5 6.5 0 1 0 4 3.2",stroke:n,strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M1.5 3.5v4h4",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M8 5v3.5l2 1.5",stroke:n,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))},f=function(){return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M13.5 8a5.5 5.5 0 1 0-1.6 3.9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round"}),t.jsx("path",{d:"M13.5 13v-4.5H9",stroke:"#3b82f6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},h=function(){return t.jsxs("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 16 16",fill:"none"},{children:[t.jsx("path",{d:"M2 8h12M10 4l4 4-4 4",stroke:"#64748b",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M4 5l-2 3 2 3",stroke:"#64748b",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}))};function _(s){var i=s.title,n=s.open,o=s.onToggle,r=s.children;return t.jsxs("div",{children:[t.jsxs("div",e.__assign({onClick:o,style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",userSelect:"none",padding:"2px 0"}},{children:[t.jsx("span",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:i})),t.jsx(u,{open:n})]})),t.jsx("div",e.__assign({style:{maxHeight:n?100:0,opacity:n?1:0,transition:"max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s"}},{children:n&&t.jsx(t.Fragment,{children:r})}))]})}function p(s){var i=s.icon,n=s.label,o=s.onClick,r=s.customStyle,a=void 0===r?{}:r,l=s.disabled,d=void 0!==l&&l,c=s.disabledStyle,g=void 0===c?{}:c,u=e.__assign(e.__assign({display:"flex",alignItems:"center",gap:10,padding:"8px 16px",background:"#f8fafc",border:"1.5px solid #e2e8f0",borderRadius:10,cursor:d?"not-allowed":"pointer",fontSize:"12px",fontWeight:600,color:"#475569",fontFamily:"inherit",transition:"background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s",whiteSpace:"nowrap",opacity:d?.5:1},a),d?g:{});return t.jsxs("button",e.__assign({onClick:d?void 0:o,disabled:d,style:u,onMouseEnter:function(e){d||(e.currentTarget.style.background="#f1f5f9",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.07)")},onMouseLeave:function(e){d||(e.currentTarget.style.background="#f8fafc",e.currentTarget.style.transform="",e.currentTarget.style.boxShadow="")}},{children:[i,n]}))}exports.ApprovedIcon=a,exports.ChevronIcon=u,exports.CloseIcon=d,exports.HistoryIcon=x,exports.IterateIcon=h,exports.RedlineCard=function(u){var j,k=u.status,b=u.onClose,v=u.impactText,y=u.secondText,m=u.actionTakenByName,B=u.actionTakenAtTime,C=void 0===B?"NA":B,L=u.onHistory,S=u.onIterate,w=u.onReinstate,R=u.onRevert,I=u.disableAllActions,T=void 0!==I&&I,W=u.impactTitle,M=void 0===W?"Impact":W,D=u.customConfigs,A=void 0===D?{}:D,z=u.customStyles,U=void 0===z?{}:z,H=u.secondaryTitle,N=i.useState(!0),q=N[0],F=N[1],O=i.useState(!0),E=O[0],P=O[1],Y=i.useState(!1),G=Y[0],J=Y[1],K={headerBg:"#f0fdf4",headerBorder:"#dcfce7",titleColor:"#166534",label:"Redline Approved",metaLabel:"Approved By",UserIcon:t.jsx(c,{}),StatusIcon:t.jsx(a,{}),secondTitle:"Original text",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!0,actions:[{icon:t.jsx(x,{}),label:"History",onClick:L},{icon:t.jsx(s.Undo2,{size:17}),label:"Revert",onClick:R},{icon:t.jsx(h,{}),label:"Iterate",onClick:S}],fallbackText:"No original text available"},Q={headerBg:"#fff1f2",headerBorder:"#fecdd3",titleColor:"#991b1b",label:"Redline Rejected",metaLabel:"Rejected By",UserIcon:t.jsx(g,{}),StatusIcon:t.jsx(l,{}),secondTitle:"Rejected Recommendation",secondBg:"#f8fafc",secondBorder:"#e2e8f0",impactBox:!1,actions:[{icon:t.jsx(x,{color:"#3b82f6"}),label:"History",onClick:L},{icon:t.jsx(f,{}),label:"Reinstate",onClick:w},{icon:t.jsx(h,{}),label:"Iterate",onClick:S}],fallbackText:"No rejected recommendation available"},V={headerBg:"#E2E8F0",headerBorder:"none",titleColor:"#1E293B",label:"Redline Reverted",metaLabel:"Reverted By",UserIcon:t.jsx(c,{}),StatusIcon:t.jsx(s.Undo2,{size:17}),secondTitle:"Reverted redline",secondBg:"#F9FAFB",secondBorder:"#D0D5DD",impactBox:!1,actions:[{icon:t.jsx(x,{}),label:"History",onClick:L},{icon:t.jsx(h,{}),label:"Iterate",onClick:S}],fallbackText:"No reverted redline available"};j="accepted"===k?K:"rejected"===k?Q:V;var X=e.__assign(e.__assign({},j),A[k]||{});return t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.root),{animation:G?"slideOut 0.26s cubic-bezier(0.4,0,1,1) forwards":n.default.RedlineCardDefaults.root.animation||"slideIn 0.32s cubic-bezier(0.22,1,0.36,1) both"}),U.root)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.header),{background:X.headerBg,borderBottom:"1.5px solid ".concat(X.headerBorder)}),U.header)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[t.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:X.StatusIcon})),t.jsxs("div",{children:[t.jsx("span",e.__assign({style:{fontSize:15,fontWeight:700,color:X.titleColor,letterSpacing:"-0.01em"}},{children:X.label})),t.jsx(o.Tooltip,e.__assign({title:H},{children:t.jsx("span",e.__assign({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",fontSize:12,color:"gray"}},{children:H}))}))]})]})),t.jsx("button",e.__assign({onClick:function(){J(!0),b()},style:{background:"none",border:"none",cursor:"pointer",padding:4,borderRadius:6,display:"flex",alignItems:"center"}},{children:t.jsx(d,{})}))]})),t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.body),U.body)},{children:[t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.meta),U.meta)},{children:[t.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6,marginBottom:5}},{children:[X.UserIcon,t.jsx("span",e.__assign({style:{fontSize:12.5,color:"#94a3b8",fontWeight:500}},{children:X.metaLabel}))]})),t.jsxs("div",e.__assign({style:{fontSize:14,fontWeight:700,color:"#1e293b",letterSpacing:"-0.01em"}},{children:[t.jsx(o.Tooltip,e.__assign({title:m},{children:t.jsx("span",e.__assign({style:{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden"}},{children:m}))})),t.jsx("span",{children:r(C)})]}))]})),t.jsx("div",{style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.divider),U.divider)}),t.jsx(_,e.__assign({title:M,open:q,onToggle:function(){return F(function(e){return!e})}},{children:t.jsx("p",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.impactText),U.impactText)},{children:v||""}))})),t.jsx("div",{style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.divider),U.divider)}),t.jsx(_,e.__assign({title:X.secondTitle,open:E,onToggle:function(){return P(function(e){return!e})}},{children:y?t.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.RedlineCardDefaults.secondSection),{background:X.secondBg,border:"1.5px solid ".concat(X.secondBorder)}),U.secondSection)},{children:y})):t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.fallbackSectionStyle),U.fallbackSectionStyle)},{children:[X.fallbackText," "]}))})),t.jsx("div",e.__assign({style:e.__assign(e.__assign({},n.default.RedlineCardDefaults.actionsContainer),U.actionsContainer)},{children:X.actions.map(function(s){return t.jsx(p,{icon:s.icon,label:s.label,onClick:s.onClick,customStyle:e.__assign(e.__assign({},s.style),U.actionBtn),disabled:T||s.disabled,disabledStyle:U.actionBtnDisabled},s.label)})}))]}))]}))},exports.ReinstateIcon=f,exports.RejectedIcon=l,exports.UserApprovedIcon=c,exports.UserRejectedIcon=g,exports.formatDate=r;
|
|
2
2
|
//# sourceMappingURL=RedlineStatusCard.js.map
|