@e-llm-studio/instant-learning 1.3.0-alpha.260 → 1.3.0-alpha.262

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.
Files changed (101) hide show
  1. package/dist/cjs/features/LearningManagement/RuleContent/RenameScopeModal.js +1 -1
  2. package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
  3. package/dist/cjs/features/LearningManagement/store/useEnvStore.js +1 -1
  4. package/dist/cjs/features/LearningManagement/styles/InstantLearningModal.module.css.js +1 -1
  5. package/dist/features/LearningManagement/RuleContent/RenameScopeModal.js +1 -1
  6. package/dist/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
  7. package/dist/features/LearningManagement/store/useEnvStore.js +1 -1
  8. package/dist/features/LearningManagement/styles/InstantLearningModal.module.css.js +1 -1
  9. package/dist/types/src/ILMarketplaceWrapper.d.ts +1 -1
  10. package/dist/types/src/ILMarketplaceWrapper.d.ts.map +1 -1
  11. package/dist/types/src/features/LearningManagement/RuleContent/RenameScopeModal.d.ts.map +1 -1
  12. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts.map +1 -1
  13. package/dist/types/src/features/LearningManagement/types.d.ts +3 -2
  14. package/dist/types/src/features/LearningManagement/types.d.ts.map +1 -1
  15. package/package.json +1 -1
  16. package/dist/cjs/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js +0 -2
  17. package/dist/cjs/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js.map +0 -1
  18. package/dist/cjs/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js +0 -2
  19. package/dist/cjs/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js.map +0 -1
  20. package/dist/cjs/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js +0 -2
  21. package/dist/cjs/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map +0 -1
  22. package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.js +0 -2
  23. package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.js.map +0 -1
  24. package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.styles.js +0 -2
  25. package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.styles.js.map +0 -1
  26. package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.js +0 -2
  27. package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.js.map +0 -1
  28. package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.styles.js +0 -2
  29. package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.styles.js.map +0 -1
  30. package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.js +0 -2
  31. package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.js.map +0 -1
  32. package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js +0 -2
  33. package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js.map +0 -1
  34. package/dist/cjs/features/LSCGuidelinesCart/LearningManagementWrapper.js +0 -2
  35. package/dist/cjs/features/LSCGuidelinesCart/LearningManagementWrapper.js.map +0 -1
  36. package/dist/cjs/features/LSCGuidelinesCart/api.js +0 -2
  37. package/dist/cjs/features/LSCGuidelinesCart/api.js.map +0 -1
  38. package/dist/cjs/features/LSCGuidelinesCart/endpoints.js +0 -2
  39. package/dist/cjs/features/LSCGuidelinesCart/endpoints.js.map +0 -1
  40. package/dist/cjs/features/LSCGuidelinesCart/transformSelectedGuidelineData.js +0 -2
  41. package/dist/cjs/features/LSCGuidelinesCart/transformSelectedGuidelineData.js.map +0 -1
  42. package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js +0 -2
  43. package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js.map +0 -1
  44. package/dist/cjs/features/LearningManagement/styles/CreateLearningSetModal.module.css.js +0 -2
  45. package/dist/cjs/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +0 -1
  46. package/dist/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js +0 -2
  47. package/dist/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js.map +0 -1
  48. package/dist/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js +0 -2
  49. package/dist/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js.map +0 -1
  50. package/dist/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js +0 -2
  51. package/dist/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map +0 -1
  52. package/dist/features/LSCGuidelinesCart/Cart/Cart.js +0 -2
  53. package/dist/features/LSCGuidelinesCart/Cart/Cart.js.map +0 -1
  54. package/dist/features/LSCGuidelinesCart/Cart/Cart.styles.js +0 -2
  55. package/dist/features/LSCGuidelinesCart/Cart/Cart.styles.js.map +0 -1
  56. package/dist/features/LSCGuidelinesCart/GuidelineCard.js +0 -2
  57. package/dist/features/LSCGuidelinesCart/GuidelineCard.js.map +0 -1
  58. package/dist/features/LSCGuidelinesCart/GuidelineCard.styles.js +0 -2
  59. package/dist/features/LSCGuidelinesCart/GuidelineCard.styles.js.map +0 -1
  60. package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.js +0 -2
  61. package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.js.map +0 -1
  62. package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js +0 -2
  63. package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js.map +0 -1
  64. package/dist/features/LSCGuidelinesCart/LearningManagementWrapper.js +0 -2
  65. package/dist/features/LSCGuidelinesCart/LearningManagementWrapper.js.map +0 -1
  66. package/dist/features/LSCGuidelinesCart/api.js +0 -2
  67. package/dist/features/LSCGuidelinesCart/api.js.map +0 -1
  68. package/dist/features/LSCGuidelinesCart/endpoints.js +0 -2
  69. package/dist/features/LSCGuidelinesCart/endpoints.js.map +0 -1
  70. package/dist/features/LSCGuidelinesCart/transformSelectedGuidelineData.js +0 -2
  71. package/dist/features/LSCGuidelinesCart/transformSelectedGuidelineData.js.map +0 -1
  72. package/dist/features/LearningManagement/components/CreateLearningSetModal.js +0 -2
  73. package/dist/features/LearningManagement/components/CreateLearningSetModal.js.map +0 -1
  74. package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js +0 -2
  75. package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +0 -1
  76. package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.d.ts +0 -10
  77. package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.d.ts.map +0 -1
  78. package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.styles.d.ts +0 -6
  79. package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.styles.d.ts.map +0 -1
  80. package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.d.ts +0 -11
  81. package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.d.ts.map +0 -1
  82. package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.styles.d.ts +0 -6
  83. package/dist/types/src/features/LSCGuidelinesCart/GuidelineCard.styles.d.ts.map +0 -1
  84. package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.d.ts +0 -16
  85. package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.d.ts.map +0 -1
  86. package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.d.ts +0 -6
  87. package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.d.ts.map +0 -1
  88. package/dist/types/src/features/LSCGuidelinesCart/LearningManagementWrapper.d.ts +0 -19
  89. package/dist/types/src/features/LSCGuidelinesCart/LearningManagementWrapper.d.ts.map +0 -1
  90. package/dist/types/src/features/LSCGuidelinesCart/api.d.ts +0 -4
  91. package/dist/types/src/features/LSCGuidelinesCart/api.d.ts.map +0 -1
  92. package/dist/types/src/features/LSCGuidelinesCart/endpoints.d.ts +0 -5
  93. package/dist/types/src/features/LSCGuidelinesCart/endpoints.d.ts.map +0 -1
  94. package/dist/types/src/features/LSCGuidelinesCart/interfacesApi.d.ts +0 -25
  95. package/dist/types/src/features/LSCGuidelinesCart/interfacesApi.d.ts.map +0 -1
  96. package/dist/types/src/features/LSCGuidelinesCart/transformSelectedGuidelineData.d.ts +0 -18
  97. package/dist/types/src/features/LSCGuidelinesCart/transformSelectedGuidelineData.d.ts.map +0 -1
  98. package/dist/types/src/routes/ErrorBoundary.d.ts +0 -22
  99. package/dist/types/src/routes/ErrorBoundary.d.ts.map +0 -1
  100. package/dist/types/src/routes/Routes.d.ts +0 -3
  101. package/dist/types/src/routes/Routes.d.ts.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("lucide-react");exports.default=function(r){var o=r.isOpen,s=r.onClose,a=r.onSave,l=r.initialName,d=void 0===l?"":l,c=t.useState(d),u=c[0],p=c[1],x=t.useState(""),f=x[0],g=x[1],b=t.useState(!1),y=b[0],_=b[1],h=t.useRef(null);if(t.useEffect(function(){o&&(p(d),g(""),setTimeout(function(){var e,n;null===(e=h.current)||void 0===e||e.focus(),null===(n=h.current)||void 0===n||n.select()},50))},[o,d]),!o)return null;var v=function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,t;return e.__generator(this,function(e){switch(e.label){case 0:if(!u.trim())return g("Scope Name is required"),[2];g(""),_(!0),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,a(u.trim())];case 2:return e.sent(),s(),[3,5];case 3:return n=e.sent(),409===(null==(t=n)?void 0:t.status)?g("Scope name already exists."):g("Failed to rename scope. Please try again."),[3,5];case 4:return _(!1),[7];case 5:return[2]}})})};return n.jsx("div",e.__assign({style:{position:"fixed",inset:0,zIndex:1300,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0,0,0,0.3)"},onClick:function(e){e.target===e.currentTarget&&s()}},{children:n.jsxs("div",e.__assign({style:{width:"480px",backgroundColor:"#fff",borderRadius:"12px",boxShadow:"0 20px 60px rgba(0,0,0,0.15)",padding:"24px",fontFamily:"sans-serif"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"}},{children:[n.jsx("span",e.__assign({style:{fontSize:"16px",fontWeight:600,color:"#19213D"}},{children:"Rename Scope"})),n.jsx("button",e.__assign({onClick:s,disabled:y,style:{background:"none",border:"none",cursor:"pointer",color:"#9CA3AF",padding:"4px",lineHeight:0}},{children:n.jsx(i.X,{size:20})}))]})),n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"6px",marginBottom:"24px"}},{children:[n.jsxs("label",e.__assign({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:[n.jsx("span",e.__assign({style:{color:"#E53E3E",marginRight:"3px"}},{children:"*"})),"Scope Name"]})),n.jsx("input",{ref:h,type:"text",value:u,onChange:function(e){p(e.target.value),f&&g("")},onKeyDown:function(e){"Enter"===e.key&&v(),"Escape"===e.key&&s()},placeholder:"Enter scope name",style:{padding:"8px 12px",fontSize:"14px",color:"#19213D",borderRadius:"6px",border:"1px solid ".concat(f?"#EF4444":"#E2E8F0"),outline:"none",width:"100%",boxSizing:"border-box"}}),f&&n.jsx("p",e.__assign({style:{margin:0,fontSize:"12px",color:"#EF4444"}},{children:f}))]})),n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"flex-end",gap:"10px"}},{children:[n.jsx("button",e.__assign({onClick:s,disabled:y,style:{padding:"8px 16px",borderRadius:"6px",border:"1px solid #E2E8F0",backgroundColor:"#fff",color:"#64748B",fontSize:"14px",fontWeight:500,cursor:y?"not-allowed":"pointer",opacity:y?.6:1}},{children:"Cancel"})),n.jsx("button",e.__assign({onClick:v,disabled:y,style:{padding:"8px 20px",borderRadius:"6px",border:"none",backgroundColor:"#2563EB",color:"#fff",fontSize:"14px",fontWeight:500,cursor:y?"not-allowed":"pointer",opacity:y?.7:1}},{children:y?"Saving...":"Save"}))]}))]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("lucide-react"),r=50,s=/[A-Za-z0-9]/;exports.default=function(o){var a=o.isOpen,l=o.onClose,c=o.onSave,d=o.initialName,u=void 0===d?"":d,p=t.useState(u),x=p[0],f=p[1],g=t.useState(""),y=g[0],b=g[1],h=t.useState(!1),_=h[0],m=h[1],v=t.useRef(null),j=x.length>=r;if(t.useEffect(function(){a&&(f(u),b(""),setTimeout(function(){var e,n;null===(e=v.current)||void 0===e||e.focus(),null===(n=v.current)||void 0===n||n.select()},50))},[a,u]),!a)return null;var S=function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,t,i;return e.__generator(this,function(e){switch(e.label){case 0:if(!(n=x.trim()))return b("Scope Name is required"),[2];if(n.length>r)return b("Scope Name must be ".concat(r," characters or fewer")),[2];if(!s.test(n))return b("Scope Name must include at least one letter or number"),[2];b(""),m(!0),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,c(n)];case 2:return e.sent(),l(),[3,5];case 3:return t=e.sent(),409===(null==(i=t)?void 0:i.status)?b("Scope name already exists."):b("Failed to rename scope. Please try again."),[3,5];case 4:return m(!1),[7];case 5:return[2]}})})};return n.jsx("div",e.__assign({style:{position:"fixed",inset:0,zIndex:1300,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0,0,0,0.3)"},onClick:function(e){e.target===e.currentTarget&&l()}},{children:n.jsxs("div",e.__assign({style:{width:"480px",backgroundColor:"#fff",borderRadius:"12px",boxShadow:"0 20px 60px rgba(0,0,0,0.15)",padding:"24px",fontFamily:"sans-serif"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"}},{children:[n.jsx("span",e.__assign({style:{fontSize:"16px",fontWeight:600,color:"#19213D"}},{children:"Rename Scope"})),n.jsx("button",e.__assign({onClick:l,disabled:_,style:{background:"none",border:"none",cursor:"pointer",color:"#9CA3AF",padding:"4px",lineHeight:0}},{children:n.jsx(i.X,{size:20})}))]})),n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"6px",marginBottom:"24px"}},{children:[n.jsxs("label",e.__assign({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:[n.jsx("span",e.__assign({style:{color:"#E53E3E",marginRight:"3px"}},{children:"*"})),"Scope Name"]})),n.jsx("input",{ref:v,type:"text",value:x,maxLength:r,onChange:function(e){var n=e.target.value.slice(0,r);f(n),y&&b("")},onKeyDown:function(e){"Enter"===e.key&&S(),"Escape"===e.key&&l()},placeholder:"Enter scope name",style:{padding:"8px 12px",fontSize:"14px",color:"#19213D",borderRadius:"6px",border:"1px solid ".concat(y?"#EF4444":"#E2E8F0"),outline:"none",width:"100%",boxSizing:"border-box"}}),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"}},{children:[y?n.jsx("p",e.__assign({style:{margin:0,fontSize:"12px",color:"#EF4444"}},{children:y})):n.jsx("span",{}),n.jsxs("span",e.__assign({style:{flexShrink:0,fontSize:"12px",color:y||j?"#EF4444":"#64748B"}},{children:[x.length,"/",r]}))]}))]})),n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"flex-end",gap:"10px"}},{children:[n.jsx("button",e.__assign({onClick:l,disabled:_,style:{padding:"8px 16px",borderRadius:"6px",border:"1px solid #E2E8F0",backgroundColor:"#fff",color:"#64748B",fontSize:"14px",fontWeight:500,cursor:_?"not-allowed":"pointer",opacity:_?.6:1}},{children:"Cancel"})),n.jsx("button",e.__assign({onClick:S,disabled:_,style:{padding:"8px 20px",borderRadius:"6px",border:"none",backgroundColor:"#2563EB",color:"#fff",fontSize:"14px",fontWeight:500,cursor:_?"not-allowed":"pointer",opacity:_?.7:1}},{children:_?"Saving...":"Save"}))]}))]}))}))};
2
2
  //# sourceMappingURL=RenameScopeModal.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"),o=require("lucide-react"),t=require("../../styles/ScopeTree.module.css.js"),l=require("./TreeNodeHeader.js"),r=require("./TreeAddAction.js"),a=require("../../store/useLMSConfigStore.js"),d=require("../../constants.js"),s=require("../../store/useLearningTemplateStore.js"),c=require("./TreeSectionItem.js"),u=function(p){var v,h,m,f,_,g,b,T,C,D=p.node,y=p.depth,A=void 0===y?0:y,x=p.nodePath,L=void 0===x?[]:x,E=p.expandedNodeIds,S=p.activeSelection,R=p.onToggleExpand,j=p.onSectionSelect,N=p.onNodeOptionsClick,I=p.onAddChild,P=p.onRenameChild,M=p.onDeleteChild,w=p.canDeleteScope,k=p.canEditScope,q=p.canCreateScope,H=p.searchQuery,V=p.sectionsConfig,W=void 0===V?[]:V,O=p.nodeTypesConfig,Y=void 0===O?[]:O,Q=p.forceVisible,U=void 0!==Q&&Q,X=p.compactView,K=void 0!==X&&X,z=p.menuActionsConfig,F=e.__spreadArray(e.__spreadArray([],L,!0),[D.id],!1),J=E.has(D.id),B=s.useLearningTemplateStore.getState().backwardCompatibility,G=s.useLearningTemplateStore(function(e){return e.isILMarketplace}),Z=B||K,$=a.dt("".concat(d.MIDDLE_DRAWER_DT_PATH,".scope")),ee=!!S&&S.nodePath[S.nodePath.length-1]===D.id,ne=!!S&&(S.nodePath.includes(D.id)&&!ee),ie=a.dt("".concat(d.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.applyToLevels"),""),oe=function(){if(B)return[2];if(!ie)return null;try{var e=JSON.parse(ie);return Array.isArray(e)?e.map(Number):null}catch(e){return null}}(),te=A+1,le=null===oe||oe.includes(te),re=(B||"true"===a.dt("".concat(d.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.enabled"),"false"))&&le,ae=B?7:parseInt(a.dt("".concat(d.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.count"),"7"),10)||7,de=D.children||[],se=re&&!H&&de.length>ae,ce=i.useRef(null);i.useEffect(function(){ee&&ce.current&&ce.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[ee]);var ue="station"===(null===(v=null==D?void 0:D.type)||void 0===v?void 0:v.toLowerCase()),pe=0===A,ve=!!(null===(h=Y[Math.min(A,Y.length-1)])||void 0===h?void 0:h.addChildType),he=function(e){var n=null==z?void 0:z.find(function(n){return n.id===e});return!(null==n?void 0:n.isVisible)||n.isVisible(D,A)},me=W.filter(function(e){return(!B||!ue||"access"!==e.id)&&(!e.isVisible||e.isVisible(D,A))}),fe=function(e,n){if(!n)return!0;var i=n.toLowerCase();return!!e.name.toLowerCase().includes(i)||!!e.children&&e.children.some(function(e){return fe(e,n)})};if(!U&&!fe(D,H||""))return null;var _e=A>=Y.length-1?Y[Y.length-1]:Y[A],ge=Z?me.filter(function(e){return"learnings"!==e.id&&"stations"!==e.id}).map(function(e){var n;return{label:e.resolveLabel?e.resolveLabel(D,A):null!==(n=e.label)&&void 0!==n?n:"",icon:e.icon,onClick:function(){return j(F,e.id)}}}):[],be=null==_e?void 0:_e.label,Te=a.resolveTreeItem("add",A,{scope:D.name,scopeType:be}),Ce=a.resolveTreeItem("rename",A,{scope:D.name,scopeType:be}),De=a.resolveTreeItem("delete",A,{scope:D.name,scopeType:be}),ye=Te.configured?Te.visible&&ve&&!ue&&(!B||pe)&&he("add"):ve&&!ue&&(!B||pe)&&he("add"),Ae=null!==(f=null!==(m=Te.label)&&void 0!==m?m:_e.addChildLabel)&&void 0!==f?f:"Add Child",xe=null!==(_=Ce.label)&&void 0!==_?_:a.dt("".concat(d.MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH,".rename.label"),"Rename"),Le=null!==(g=De.label)&&void 0!==g?g:ue?"Delete Station":B?"Delete Scope":a.dt("".concat(d.MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH,".delete.label"),"Delete ".concat((null==_e?void 0:_e.label)||"Node"),{scope:$}),Ee=Ce.configured?Ce.visible&&he("rename"):he("rename");null!==(b=Ce.label)&&void 0!==b||a.dt("".concat(d.MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH,".rename.label"),"Rename");var Se=De.configured?De.visible&&!(B&&ue)&&he("delete"):!(B&&ue)&&he("delete"),Re=!w||w(D.id),je=!k||k(D.id),Ne=!q||q(D.id),Ie=D.children&&D.children.length>0,Pe=!Re||Ie,Me=Re?Ie?"This scope cannot be deleted because other scopes inherit learnings from it.":void 0:"You do not have permission to delete this scope.",we=Ne?void 0:"You do not have permission to add a scope here.",ke=!H||D.name.toLowerCase().includes(H.toLowerCase()),qe=function(e){return n.jsx(u,{node:e,depth:A+1,nodePath:F,expandedNodeIds:E,activeSelection:S,onToggleExpand:R,onSectionSelect:j,onNodeOptionsClick:N,onAddChild:I,onRenameChild:P,onDeleteChild:M,canDeleteScope:w,canEditScope:k,canCreateScope:q,searchQuery:H,forceVisible:ke,sectionsConfig:W,nodeTypesConfig:Y,compactView:Z,menuActionsConfig:z},e.id)},He=!1===D.hasAccess?[]:e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray([],ye?[{label:Ae,icon:o.Plus,onClick:function(){return null==I?void 0:I(D.id,_e.addChildType,D.name)},disabled:!Ne,tooltip:we}]:[],!0),Ee?[{label:xe,icon:o.Pencil,onClick:function(){return null==P?void 0:P(D.id,D.name)},disabled:!je||ue,tooltip:je?void 0:"You do not have permission to rename this scope."}]:[],!0),Se?[{label:Le,icon:o.Trash2,onClick:function(){var e;return null==M?void 0:M(D.id,D.name,(null===(e=D.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:Pe,tooltip:Me,className:"text-red-500 hover:text-red-600 hover:bg-red-50"}]:[],!0),ge,!0);return n.jsxs("div",e.__assign({ref:ce,className:t.default.nodeWrapper,style:{"--tree-depth":A}},{children:[n.jsx(l.TreeNodeHeader,{nodeType:D.type,name:D.name,isExpanded:J,isSelected:ee,isAncestor:ne,isExpandable:!!Ie,childrenCount:null===(T=D.children)||void 0===T?void 0:T.length,learningsCount:Z?null===(C=D.metrics)||void 0===C?void 0:C.learningsCount:void 0,isCompactView:Z,hideCounts:G,onToggleExpand:function(e){e.stopPropagation(),R(D.id)},onClick:function(){j(F,"learnings")},searchQuery:H,menuOptions:He}),J&&n.jsxs("div",e.__assign({className:t.default.childrenWrapper},{children:[!Z&&me.map(function(e){var i;return n.jsx(c.TreeSectionItem,{icon:e.icon,label:e.resolveLabel?e.resolveLabel(D,A):e.label||"",badgeCount:(null==e?void 0:e.badgeKey)&&!G?null===(i=null==D?void 0:D.metrics)||void 0===i?void 0:i[null==e?void 0:e.badgeKey]:void 0,isActive:ee&&(null==S?void 0:S.sectionId)===e.id,onClick:function(){return j(F,e.id)}},"".concat(D.id,"-").concat(e.id))}),se?n.jsxs(n.Fragment,{children:[n.jsx("div",e.__assign({className:t.default.scopeScrollContainer,style:{maxHeight:"calc(var(--scope-row-height, 40px) * ".concat(ae,")"),overflowY:"scroll"}},{children:de.map(qe)})),n.jsx("button",e.__assign({type:"button",className:t.default.addAction,onClick:function(e){e.stopPropagation(),j(F,"stations")}},{children:n.jsx("span",e.__assign({style:{paddingLeft:"15px"}},{children:n.jsxs("span",e.__assign({style:{paddingLeft:"15px",display:"flex",alignItems:"center"}},{children:[a.interpolate(a.dt("".concat(d.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.viewMoreText"),B?"View all {count} stations":"Show all {count} scopes"),{count:de.length}),n.jsx(o.MoveRight,{size:14,style:{marginLeft:"6px",flexShrink:0}})]}))}))}))]}):de.map(qe),ye&&!Z&&n.jsx(r.TreeAddAction,{label:_e.addChildLabel||"Add Child",onAdd:function(){return null==I?void 0:I(D.id,_e.addChildType,D.name)},disabled:!Ne,tooltip:we})]}))]}))};exports.TreeNode=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),o=require("lucide-react"),l=require("../../styles/ScopeTree.module.css.js"),t=require("./TreeNodeHeader.js"),r=require("./TreeAddAction.js"),d=require("../../store/useLMSConfigStore.js"),a=require("../../constants.js"),s=require("../../store/useLearningTemplateStore.js"),c=require("./TreeSectionItem.js"),u=function(p){var v,h,m,f,_,g,b,T,C,D=p.node,y=p.depth,A=void 0===y?0:y,x=p.nodePath,L=void 0===x?[]:x,E=p.expandedNodeIds,S=p.activeSelection,R=p.onToggleExpand,j=p.onSectionSelect,N=p.onNodeOptionsClick,I=p.onAddChild,P=p.onRenameChild,M=p.onDeleteChild,w=p.canDeleteScope,k=p.canEditScope,q=p.canCreateScope,H=p.searchQuery,V=p.sectionsConfig,W=void 0===V?[]:V,O=p.nodeTypesConfig,Y=void 0===O?[]:O,Q=p.forceVisible,U=void 0!==Q&&Q,X=p.compactView,K=void 0!==X&&X,z=p.menuActionsConfig,F=e.__spreadArray(e.__spreadArray([],L,!0),[D.id],!1),J=E.has(D.id),B=s.useLearningTemplateStore.getState().backwardCompatibility,G=s.useLearningTemplateStore(function(e){return e.isILMarketplace}),Z=B||K,$=d.dt("".concat(a.MIDDLE_DRAWER_DT_PATH,".scope")),ee=!!S&&S.nodePath[S.nodePath.length-1]===D.id,ne=!!S&&(S.nodePath.includes(D.id)&&!ee),ie=d.dt("".concat(a.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.applyToLevels"),""),oe=function(){if(B)return[2];if(!ie)return null;try{var e=JSON.parse(ie);return Array.isArray(e)?e.map(Number):null}catch(e){return null}}(),le=A+1,te=null===oe||oe.includes(le),re=(B||"true"===d.dt("".concat(a.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.enabled"),"false"))&&te,de=B?7:parseInt(d.dt("".concat(a.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.count"),"7"),10)||7,ae=D.children||[],se=re&&!H&&ae.length>de,ce=i.useRef(null);i.useEffect(function(){ee&&ce.current&&ce.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[ee]);var ue=null!==(v=null==D?void 0:D.type)&&void 0!==v?v:null==D?void 0:D.scope_type,pe="station"===(null==ue?void 0:ue.toLowerCase()),ve=0===A,he=!!(null===(h=Y[Math.min(A,Y.length-1)])||void 0===h?void 0:h.addChildType),me=function(e){var n=null==z?void 0:z.find(function(n){return n.id===e});return!(null==n?void 0:n.isVisible)||n.isVisible(D,A)},fe=W.filter(function(e){return(!B||!pe||"access"!==e.id)&&(!e.isVisible||e.isVisible(D,A))}),_e=function(e,n){if(!n)return!0;var i=n.toLowerCase();return!!e.name.toLowerCase().includes(i)||!!e.children&&e.children.some(function(e){return _e(e,n)})};if(!U&&!_e(D,H||""))return null;var ge=A>=Y.length-1?Y[Y.length-1]:Y[A],be=Z?fe.filter(function(e){return"learnings"!==e.id&&"stations"!==e.id}).map(function(e){var n;return{label:e.resolveLabel?e.resolveLabel(D,A):null!==(n=e.label)&&void 0!==n?n:"",icon:e.icon,onClick:function(){return j(F,e.id)}}}):[],Te=null==ge?void 0:ge.label,Ce=d.resolveTreeItem("add",A,{scope:D.name,scopeType:Te}),De=d.resolveTreeItem("rename",A,{scope:D.name,scopeType:Te}),ye=d.resolveTreeItem("delete",A,{scope:D.name,scopeType:Te}),Ae=Ce.configured?Ce.visible&&he&&!pe&&(!B||ve)&&me("add"):he&&!pe&&(!B||ve)&&me("add"),xe=null!==(f=null!==(m=Ce.label)&&void 0!==m?m:ge.addChildLabel)&&void 0!==f?f:"Add Child",Le=null!==(_=De.label)&&void 0!==_?_:d.dt("".concat(a.MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH,".rename.label"),"Rename"),Ee=null!==(g=ye.label)&&void 0!==g?g:pe?"Delete Station":B?"Delete Scope":d.dt("".concat(a.MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH,".delete.label"),"Delete ".concat((null==ge?void 0:ge.label)||"Node"),{scope:$}),Se=De.configured?De.visible&&me("rename"):me("rename");null!==(b=De.label)&&void 0!==b||d.dt("".concat(a.MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH,".rename.label"),"Rename");var Re=ye.configured?ye.visible&&!pe&&me("delete"):!pe&&me("delete"),je=!w||w(D.id),Ne=!k||k(D.id),Ie=!q||q(D.id),Pe=D.children&&D.children.length>0,Me=!je||Pe,we=je?Pe?"This scope cannot be deleted because other scopes inherit learnings from it.":void 0:"You do not have permission to delete this scope.",ke=Ie?void 0:"You do not have permission to add a scope here.",qe=!H||D.name.toLowerCase().includes(H.toLowerCase()),He=function(e){return n.jsx(u,{node:e,depth:A+1,nodePath:F,expandedNodeIds:E,activeSelection:S,onToggleExpand:R,onSectionSelect:j,onNodeOptionsClick:N,onAddChild:I,onRenameChild:P,onDeleteChild:M,canDeleteScope:w,canEditScope:k,canCreateScope:q,searchQuery:H,forceVisible:qe,sectionsConfig:W,nodeTypesConfig:Y,compactView:Z,menuActionsConfig:z},e.id)},Ve=!1===D.hasAccess?[]:e.__spreadArray(e.__spreadArray(e.__spreadArray(e.__spreadArray([],Ae?[{label:xe,icon:o.Plus,onClick:function(){return null==I?void 0:I(D.id,ge.addChildType,D.name)},disabled:!Ie,tooltip:ke}]:[],!0),Se?[{label:Le,icon:o.Pencil,onClick:function(){return null==P?void 0:P(D.id,D.name)},disabled:!Ne||pe,tooltip:Ne?void 0:"You do not have permission to rename this scope."}]:[],!0),Re?[{label:Ee,icon:o.Trash2,onClick:function(){var e;return null==M?void 0:M(D.id,D.name,(null===(e=D.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:Me,tooltip:we,className:"text-red-500 hover:text-red-600 hover:bg-red-50"}]:[],!0),be,!0);return n.jsxs("div",e.__assign({ref:ce,className:l.default.nodeWrapper,style:{"--tree-depth":A}},{children:[n.jsx(t.TreeNodeHeader,{nodeType:ue,name:D.name,isExpanded:J,isSelected:ee,isAncestor:ne,isExpandable:!!Pe,childrenCount:null===(T=D.children)||void 0===T?void 0:T.length,learningsCount:Z?null===(C=D.metrics)||void 0===C?void 0:C.learningsCount:void 0,isCompactView:Z,hideCounts:G,onToggleExpand:function(e){e.stopPropagation(),R(D.id)},onClick:function(){j(F,"learnings")},searchQuery:H,menuOptions:Ve}),J&&n.jsxs("div",e.__assign({className:l.default.childrenWrapper},{children:[!Z&&fe.map(function(e){var i;return n.jsx(c.TreeSectionItem,{icon:e.icon,label:e.resolveLabel?e.resolveLabel(D,A):e.label||"",badgeCount:(null==e?void 0:e.badgeKey)&&!G?null===(i=null==D?void 0:D.metrics)||void 0===i?void 0:i[null==e?void 0:e.badgeKey]:void 0,isActive:ee&&(null==S?void 0:S.sectionId)===e.id,onClick:function(){return j(F,e.id)}},"".concat(D.id,"-").concat(e.id))}),se?n.jsxs(n.Fragment,{children:[n.jsx("div",e.__assign({className:l.default.scopeScrollContainer,style:{maxHeight:"calc(var(--scope-row-height, 40px) * ".concat(de,")"),overflowY:"scroll"}},{children:ae.map(He)})),n.jsx("button",e.__assign({type:"button",className:l.default.addAction,onClick:function(e){e.stopPropagation(),j(F,"stations")}},{children:n.jsx("span",e.__assign({style:{paddingLeft:"15px"}},{children:n.jsxs("span",e.__assign({style:{paddingLeft:"15px",display:"flex",alignItems:"center"}},{children:[d.interpolate(d.dt("".concat(a.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.viewMoreText"),B?"View all {count} stations":"Show all {count} scopes"),{count:ae.length}),n.jsx(o.MoveRight,{size:14,style:{marginLeft:"6px",flexShrink:0}})]}))}))}))]}):ae.map(He),Ae&&!Z&&n.jsx(r.TreeAddAction,{label:ge.addChildLabel||"Add Child",onAdd:function(){return null==I?void 0:I(D.id,ge.addChildType,D.name)},disabled:!Ie,tooltip:ke})]}))]}))};exports.TreeNode=u;
2
2
  //# sourceMappingURL=TreeNode.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("zustand").create(function(e){return{llmStudioUrl:"https://devllmstudio.creativeworkspace.ai",audacyBackendUrl:null,appsecRbacUrl:null,appsecBaseUrl:null,rbacConfig:null,auditLogConfig:null,baseModeName:null,setLlmStudioUrl:function(a){return e({llmStudioUrl:a})},setAudacyBackendUrl:function(a){return e({audacyBackendUrl:a})},setRbacConfig:function(a){return e({rbacConfig:a,appsecRbacUrl:a.appsecRbacUrl,appsecBaseUrl:a.appsecBaseUrl})},setAuditLogConfig:function(a){return e({auditLogConfig:a})},setBaseModeName:function(a){return e({baseModeName:a})}}});exports.default=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("zustand").create(function(e){return{llmStudioUrl:"https://llmstudio.creativeworkspace.ai",audacyBackendUrl:null,appsecRbacUrl:null,appsecBaseUrl:null,rbacConfig:null,auditLogConfig:null,baseModeName:null,setLlmStudioUrl:function(a){return e({llmStudioUrl:a})},setAudacyBackendUrl:function(a){return e({audacyBackendUrl:a})},setRbacConfig:function(a){return e({rbacConfig:a,appsecRbacUrl:a.appsecRbacUrl,appsecBaseUrl:a.appsecBaseUrl})},setAuditLogConfig:function(a){return e({auditLogConfig:a})},setBaseModeName:function(a){return e({baseModeName:a})}}});exports.default=e;
2
2
  //# sourceMappingURL=useEnvStore.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("../../../node_modules/style-inject/dist/style-inject.es.js").default(".InstantLearningModal-module_container__3mazv{margin-top:0}.InstantLearningModal-module_mainHeader__gQ2T8{align-items:center;cursor:pointer;display:flex;gap:5px;padding:.5rem 0;user-select:none}.InstantLearningModal-module_mainHeaderIcon__hY-Kc{color:var(--il-color-16a34a,#16a34a);flex-shrink:0}.InstantLearningModal-module_mainHeaderTitle__ReT0m{color:var(--il-color-1a847c,#1a847c);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-semibold,600);line-height:1.4}.InstantLearningModal-module_mainHeaderChevron__jgvqM{color:var(--il-color-19213d,#19213d);margin-left:.25rem;transition:transform .2s ease}.InstantLearningModal-module_mainHeaderChevronClosed__aR14h{transform:rotate(180deg)}.InstantLearningModal-module_contentBox__vY6rx{background-color:var(--il-color-cdefed05,#cdefed05);border:1px solid var(--il-color-cdefed,#cdefed);border-radius:8px;margin-bottom:.5rem;margin-top:.5rem;padding:1rem}.InstantLearningModal-module_contentBox__vY6rx .InstantLearningModal-module_contentBox__vY6rx{margin-top:.25rem;padding:.75rem}.InstantLearningModal-module_subtitle__9Hrs5{color:var(--il-color-62687d,#62687d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-regular,400);line-height:1.5;margin-bottom:1rem}.InstantLearningModal-module_rulesList__LepzQ{display:flex;flex-direction:column;gap:.5rem}.InstantLearningModal-module_ruleAccordion__-zbDA{background-color:var(--il-color-fff,#fff);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;overflow:hidden}.InstantLearningModal-module_ruleHeaderWrapper__fZY7B{display:flex;flex-direction:column}.InstantLearningModal-module_variantBrief__AaiYD{color:var(--il-color-999,#999);padding:0 1rem .75rem}.InstantLearningModal-module_summaryWrapper__-8oVa{display:flex;gap:.25rem}.InstantLearningModal-module_summaryCard__3K8iH{background:#f5f5f5;border:1px solid var(--il-color-eee,#eee);padding:5px;text-align:center;width:20%}.InstantLearningModal-module_summaryCard__blue__SaTnF{background:#f0f8ff;border:1px solid var(--il-color-eee,#eee)}.InstantLearningModal-module_summaryCard__green__5JeOB{background-color:var(--il-color-f0fdf4,#f0fdf4);border:1px solid var(--il-color-dcfce7,#dcfce7);color:var(--il-color-008615,#008615)}.InstantLearningModal-module_summaryCard__red__UMglS{background-color:rgb(254 242 242/var(--tw-bg-opacity,1));border-color:rgb(254 226 226/var(--tw-border-opacity,1));color:rgb(220 38 38/var(--tw-text-opacity,1))}.InstantLearningModal-module_summaryCard__orange__JRhnX{background-color:var(--il-color-fff7ed,#fff7ed);border:1px solid var(--il-color-ffedd5,#ffedd5);color:var(--il-color-ea580c,#ea580c)}.InstantLearningModal-module_ruleHeader__5oB70{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem;user-select:none}.InstantLearningModal-module_ruleHeaderLeft__8hASc{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_ruleNumber__E9626{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_ruleTitle__61UbG{font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_badgeApplied__IwBVd{background-color:var(--il-color-f0fdf4,#f0fdf4);border:1px solid var(--il-color-dcfce7,#dcfce7);border-radius:200px;color:var(--il-color-008615,#008615)}.InstantLearningModal-module_badgeApplied__IwBVd,.InstantLearningModal-module_badgeNotApplied__3pq7W{align-items:center;display:inline-flex;font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);gap:.25rem;padding:.25rem .5rem}.InstantLearningModal-module_badgeNotApplied__3pq7W{background-color:var(--il-color-fff7ed,#fff7ed);border:1px solid var(--il-color-ffedd5,#ffedd5);border-radius:200px;color:var(--il-color-ea580c,#ea580c)}.InstantLearningModal-module_contextScore__4vD1-{background-color:var(--il-color-e0f2fe,#e0f2fe)}.InstantLearningModal-module_contextScore__4vD1-,.InstantLearningModal-module_defaultChip__v6xxf{border:1px solid var(--il-color-bae6fd,#bae6fd);border-radius:200px;color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);padding:.25rem .5rem}.InstantLearningModal-module_defaultChip__v6xxf{background-color:var(--il-color-efefef,#efefef)}.InstantLearningModal-module_ruleChevron__ZQIDN{color:var(--il-color-666f8d,#666f8d);flex-shrink:0;transition:transform .2s ease}.InstantLearningModal-module_ruleChevronOpen__28kWP{transform:rotate(180deg)}.InstantLearningModal-module_ruleContent__Upd1r{padding:0 1rem 1rem}.InstantLearningModal-module_showNotAppliedToggle__MNDFy{align-items:center;cursor:pointer;display:flex;gap:.25rem;margin-top:.5rem;padding:.75rem 0;user-select:none}.InstantLearningModal-module_showNotAppliedText__lft3M{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_showNotAppliedChevron__DG3lO{color:var(--il-color-19213d,#19213d);transition:transform .2s ease}.InstantLearningModal-module_showNotAppliedChevronClosed__aDb9F,.InstantLearningModal-module_showNotAppliedChevronOpen__gQ2F9{transform:rotate(180deg)}.InstantLearningModal-module_variantBadgesContainer__IZcQW{display:flex;gap:.5rem}.InstantLearningModal-module_variantBadge__Ho1wT{background-color:var(--il-color-ffffff,#fff);border:1px solid var(--il-color-f0f2f5,#f0f2f5);border-radius:.25rem;color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,.75rem);font-weight:var(--il-font-weight-medium,500);padding:.25rem .5rem}.InstantLearningModal-module_descriptionBox__04P-Q{background-color:var(--il-color-f8fafc,#f8fafc);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;margin-bottom:1rem;padding:1rem}.InstantLearningModal-module_descriptionText__9K9cL{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500);line-height:1.5;margin:0}.InstantLearningModal-module_conditionsContainer__HDKR6{border-left:2px solid var(--il-color-e3e6ea,#e3e6ea);margin-left:.5rem;padding-left:1rem}.InstantLearningModal-module_conditionBlock__AWWPb{margin-bottom:1rem}.InstantLearningModal-module_conditionBlock__AWWPb:last-child{margin-bottom:0}.InstantLearningModal-module_conditionHeader__MI4Ze{align-items:center;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 0;user-select:none}.InstantLearningModal-module_conditionIconApply__Kuijt{color:var(--il-color-16a34a,#16a34a);flex-shrink:0}.InstantLearningModal-module_conditionIconNotApply__tho7S{color:var(--il-color-ef4444,#ef4444);flex-shrink:0}.InstantLearningModal-module_conditionLabel__wfTXj{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_conditionChevron__dv1wL{color:var(--il-color-666f8d,#666f8d);transition:transform .2s ease}.InstantLearningModal-module_conditionChevronOpen__LicpR{transform:rotate(180deg)}.InstantLearningModal-module_conditionContent__7IQsJ{padding-left:1.5rem;padding-top:.25rem}.InstantLearningModal-module_conditionItem__eQByk{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);line-height:1.5;margin-bottom:.25rem}.InstantLearningModal-module_noConditions__zZdtM{color:var(--il-color-666f8d,#666f8d);font-size:var(--il-font-size-sm,14px);font-style:italic}.InstantLearningModal-module_whyRuleContainer__ouVRX{margin-top:1rem}.InstantLearningModal-module_whyRuleAccordion__i8CbF{background-color:var(--il-color-fff,#fff);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;overflow:hidden}.InstantLearningModal-module_whyRuleHeader__FXWid{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem;user-select:none}.InstantLearningModal-module_whyRuleHeaderLeft__U62MS{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_whyRuleIcon__zriMN{color:var(--il-color-6d28d9,#6d28d9);flex-shrink:0}.InstantLearningModal-module_whyRuleTitle__lWUhA{color:var(--il-color-1e293b,#1e293b);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);line-height:20px}.InstantLearningModal-module_whyRuleHeaderRight__2BGz8{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_strengthBadge__RnNNv{align-items:center;background-color:var(--il-color-ffffff,#fff);border:1px solid var(--il-color-c4b5fd,#c4b5fd);border-radius:16px;color:var(--il-color-1e293b,#1e293b);display:inline-flex;font-size:var(--il-font-size-xxs,10px);font-weight:var(--il-font-weight-semibold,600);gap:.25rem;padding:.25rem .5rem}.InstantLearningModal-module_whyRuleChevron__acYiF{color:var(--il-color-19213d,#19213d);transition:transform .2s ease}.InstantLearningModal-module_whyRuleChevronOpen__On4uy{transform:rotate(180deg)}.InstantLearningModal-module_whyRuleContent__-kzcW{padding:0 1rem 1rem}.InstantLearningModal-module_whyRuleSection__wvczx{margin-bottom:1rem}.InstantLearningModal-module_whyRuleSection__wvczx:last-child{margin-bottom:0}.InstantLearningModal-module_sectionTitle__o2cBL{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);line-height:130%;margin-bottom:.5rem}.InstantLearningModal-module_sectionSubtitle__l59OK{color:var(--il-color-1e293b,#1e293b);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-regular,400);line-height:150%;margin-bottom:.5rem}.InstantLearningModal-module_reasoningList__-2T5-{padding-left:1.25rem}.InstantLearningModal-module_reasoningItem__4ZICg{color:var(--il-color-666f8d,#666f8d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-regular,400);line-height:150%;list-style:decimal;margin-bottom:.25rem}.InstantLearningModal-module_cognitiveCardWrapper__Zk6CT{margin:0 1rem 1rem}.InstantLearningModal-module_summarySectionHeader__ZZ1yY{align-items:center;cursor:pointer;display:flex;justify-content:space-between;transition:opacity .2s;user-select:none}.InstantLearningModal-module_summarySectionHeader__ZZ1yY:hover{opacity:.8}.InstantLearningModal-module_ruleHeaderRight__OrA8S{align-items:center;display:flex;flex-shrink:0;gap:1rem}.InstantLearningModal-module_adIdLabel__ttNZj{background:var(--il-color-f8fafc,#f8fafc);border:1px solid var(--il-color-f1f5f9,#f1f5f9);border-radius:4px;color:var(--il-color-94a3b8,#94a3b8);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:var(--il-font-size-xxs,10px);padding:2px 6px}.InstantLearningModal-module_revenueBadge__a4Xp6{background-color:var(--il-color-ecfdf5,#ecfdf5);border:1px solid var(--il-color-d1fae5,#d1fae5);border-radius:200px;color:var(--il-color-059669,#059669);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-semibold,600);padding:.25rem .6rem}.InstantLearningModal-module_ruleHeaderLeft__8hASc .InstantLearningModal-module_variantBadge__Ho1wT{align-items:center;background-color:var(--il-color-f3f4f6,#f3f4f6);border-color:var(--il-color-e5e7eb,#e5e7eb);color:var(--il-color-4b5563,#4b5563);display:flex;height:24px;line-height:1}.InstantLearningModal-module_ruleHeaderLeft__8hASc .InstantLearningModal-module_revenueBadge__a4Xp6{align-items:center;display:flex;height:24px;line-height:1}.InstantLearningModal-module_ruleTitle__61UbG{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-semibold,600);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"),exports.default={container:"InstantLearningModal-module_container__3mazv",mainHeader:"InstantLearningModal-module_mainHeader__gQ2T8",mainHeaderIcon:"InstantLearningModal-module_mainHeaderIcon__hY-Kc",mainHeaderTitle:"InstantLearningModal-module_mainHeaderTitle__ReT0m",mainHeaderChevron:"InstantLearningModal-module_mainHeaderChevron__jgvqM",mainHeaderChevronClosed:"InstantLearningModal-module_mainHeaderChevronClosed__aR14h",contentBox:"InstantLearningModal-module_contentBox__vY6rx",subtitle:"InstantLearningModal-module_subtitle__9Hrs5",rulesList:"InstantLearningModal-module_rulesList__LepzQ",ruleAccordion:"InstantLearningModal-module_ruleAccordion__-zbDA",ruleHeaderWrapper:"InstantLearningModal-module_ruleHeaderWrapper__fZY7B",variantBrief:"InstantLearningModal-module_variantBrief__AaiYD",summaryWrapper:"InstantLearningModal-module_summaryWrapper__-8oVa",summaryCard:"InstantLearningModal-module_summaryCard__3K8iH",summaryCard__blue:"InstantLearningModal-module_summaryCard__blue__SaTnF",summaryCard__green:"InstantLearningModal-module_summaryCard__green__5JeOB",summaryCard__red:"InstantLearningModal-module_summaryCard__red__UMglS",summaryCard__orange:"InstantLearningModal-module_summaryCard__orange__JRhnX",ruleHeader:"InstantLearningModal-module_ruleHeader__5oB70",ruleHeaderLeft:"InstantLearningModal-module_ruleHeaderLeft__8hASc",ruleNumber:"InstantLearningModal-module_ruleNumber__E9626",ruleTitle:"InstantLearningModal-module_ruleTitle__61UbG",badgeApplied:"InstantLearningModal-module_badgeApplied__IwBVd",badgeNotApplied:"InstantLearningModal-module_badgeNotApplied__3pq7W",contextScore:"InstantLearningModal-module_contextScore__4vD1-",defaultChip:"InstantLearningModal-module_defaultChip__v6xxf",ruleChevron:"InstantLearningModal-module_ruleChevron__ZQIDN",ruleChevronOpen:"InstantLearningModal-module_ruleChevronOpen__28kWP",ruleContent:"InstantLearningModal-module_ruleContent__Upd1r",showNotAppliedToggle:"InstantLearningModal-module_showNotAppliedToggle__MNDFy",showNotAppliedText:"InstantLearningModal-module_showNotAppliedText__lft3M",showNotAppliedChevron:"InstantLearningModal-module_showNotAppliedChevron__DG3lO",showNotAppliedChevronClosed:"InstantLearningModal-module_showNotAppliedChevronClosed__aDb9F",showNotAppliedChevronOpen:"InstantLearningModal-module_showNotAppliedChevronOpen__gQ2F9",variantBadgesContainer:"InstantLearningModal-module_variantBadgesContainer__IZcQW",variantBadge:"InstantLearningModal-module_variantBadge__Ho1wT",descriptionBox:"InstantLearningModal-module_descriptionBox__04P-Q",descriptionText:"InstantLearningModal-module_descriptionText__9K9cL",conditionsContainer:"InstantLearningModal-module_conditionsContainer__HDKR6",conditionBlock:"InstantLearningModal-module_conditionBlock__AWWPb",conditionHeader:"InstantLearningModal-module_conditionHeader__MI4Ze",conditionIconApply:"InstantLearningModal-module_conditionIconApply__Kuijt",conditionIconNotApply:"InstantLearningModal-module_conditionIconNotApply__tho7S",conditionLabel:"InstantLearningModal-module_conditionLabel__wfTXj",conditionChevron:"InstantLearningModal-module_conditionChevron__dv1wL",conditionChevronOpen:"InstantLearningModal-module_conditionChevronOpen__LicpR",conditionContent:"InstantLearningModal-module_conditionContent__7IQsJ",conditionItem:"InstantLearningModal-module_conditionItem__eQByk",noConditions:"InstantLearningModal-module_noConditions__zZdtM",whyRuleContainer:"InstantLearningModal-module_whyRuleContainer__ouVRX",whyRuleAccordion:"InstantLearningModal-module_whyRuleAccordion__i8CbF",whyRuleHeader:"InstantLearningModal-module_whyRuleHeader__FXWid",whyRuleHeaderLeft:"InstantLearningModal-module_whyRuleHeaderLeft__U62MS",whyRuleIcon:"InstantLearningModal-module_whyRuleIcon__zriMN",whyRuleTitle:"InstantLearningModal-module_whyRuleTitle__lWUhA",whyRuleHeaderRight:"InstantLearningModal-module_whyRuleHeaderRight__2BGz8",strengthBadge:"InstantLearningModal-module_strengthBadge__RnNNv",whyRuleChevron:"InstantLearningModal-module_whyRuleChevron__acYiF",whyRuleChevronOpen:"InstantLearningModal-module_whyRuleChevronOpen__On4uy",whyRuleContent:"InstantLearningModal-module_whyRuleContent__-kzcW",whyRuleSection:"InstantLearningModal-module_whyRuleSection__wvczx",sectionTitle:"InstantLearningModal-module_sectionTitle__o2cBL",sectionSubtitle:"InstantLearningModal-module_sectionSubtitle__l59OK",reasoningList:"InstantLearningModal-module_reasoningList__-2T5-",reasoningItem:"InstantLearningModal-module_reasoningItem__4ZICg",cognitiveCardWrapper:"InstantLearningModal-module_cognitiveCardWrapper__Zk6CT",summarySectionHeader:"InstantLearningModal-module_summarySectionHeader__ZZ1yY",ruleHeaderRight:"InstantLearningModal-module_ruleHeaderRight__OrA8S",adIdLabel:"InstantLearningModal-module_adIdLabel__ttNZj",revenueBadge:"InstantLearningModal-module_revenueBadge__a4Xp6"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("../../../node_modules/style-inject/dist/style-inject.es.js").default(".InstantLearningModal-module_container__3mazv{margin-top:0}.InstantLearningModal-module_mainHeader__gQ2T8{align-items:center;cursor:pointer;display:flex;gap:5px;padding:.5rem 0;user-select:none}.InstantLearningModal-module_mainHeaderIcon__hY-Kc{color:var(--il-color-16a34a,#16a34a);flex-shrink:0}.InstantLearningModal-module_mainHeaderTitle__ReT0m{color:var(--il-color-1a847c,#1a847c);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-semibold,600);line-height:1.4}.InstantLearningModal-module_mainHeaderChevron__jgvqM{color:var(--il-color-19213d,#19213d);margin-left:.25rem;transition:transform .2s ease}.InstantLearningModal-module_mainHeaderChevronClosed__aR14h{transform:rotate(180deg)}.InstantLearningModal-module_contentBox__vY6rx{background-color:var(--il-color-cdefed05,#cdefed05);border:1px solid var(--il-color-cdefed,#cdefed);border-radius:8px;margin-bottom:.5rem;margin-top:.5rem;padding:1rem}.InstantLearningModal-module_contentBox__vY6rx .InstantLearningModal-module_contentBox__vY6rx{margin-top:.25rem;padding:.75rem}.InstantLearningModal-module_subtitle__9Hrs5{color:var(--il-color-62687d,#62687d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-regular,400);line-height:1.5;margin-bottom:1rem}.InstantLearningModal-module_rulesList__LepzQ{display:flex;flex-direction:column;gap:.5rem}.InstantLearningModal-module_ruleAccordion__-zbDA{background-color:var(--il-color-fff,#fff);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;overflow:hidden}.InstantLearningModal-module_ruleHeaderWrapper__fZY7B{display:flex;flex-direction:column}.InstantLearningModal-module_variantBrief__AaiYD{color:var(--il-color-999,#999);padding:0 1rem .75rem}.InstantLearningModal-module_summaryWrapper__-8oVa{display:flex;gap:.25rem}.InstantLearningModal-module_summaryCard__3K8iH{background:#f5f5f5;border:1px solid var(--il-color-eee,#eee);padding:5px;text-align:center;width:20%}.InstantLearningModal-module_summaryCard__blue__SaTnF{background:#f0f8ff;border:1px solid var(--il-color-eee,#eee)}.InstantLearningModal-module_summaryCard__green__5JeOB{background-color:var(--il-color-f0fdf4,#f0fdf4);border:1px solid var(--il-color-dcfce7,#dcfce7);color:var(--il-color-008615,#008615)}.InstantLearningModal-module_summaryCard__red__UMglS{background-color:rgb(254 242 242/var(--tw-bg-opacity,1));border-color:rgb(254 226 226/var(--tw-border-opacity,1));color:rgb(220 38 38/var(--tw-text-opacity,1))}.InstantLearningModal-module_summaryCard__orange__JRhnX{background-color:var(--il-color-fff7ed,#fff7ed);border:1px solid var(--il-color-ffedd5,#ffedd5);color:var(--il-color-ea580c,#ea580c)}.InstantLearningModal-module_ruleHeader__5oB70{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem;user-select:none}.InstantLearningModal-module_ruleHeaderLeft__8hASc{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_ruleNumber__E9626{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_ruleTitle__61UbG{font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_badgeApplied__IwBVd{background-color:var(--il-color-f0fdf4,#f0fdf4);border:1px solid var(--il-color-dcfce7,#dcfce7);border-radius:200px;color:var(--il-color-008615,#008615)}.InstantLearningModal-module_badgeApplied__IwBVd,.InstantLearningModal-module_badgeNotApplied__3pq7W{align-items:center;display:inline-flex;font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);gap:.25rem;padding:.25rem .5rem}.InstantLearningModal-module_badgeNotApplied__3pq7W{background-color:var(--il-color-fff7ed,#fff7ed);border:1px solid var(--il-color-ffedd5,#ffedd5);border-radius:200px;color:var(--il-color-ea580c,#ea580c)}.InstantLearningModal-module_contextScore__4vD1-{background-color:var(--il-color-e0f2fe,#e0f2fe)}.InstantLearningModal-module_contextScore__4vD1-,.InstantLearningModal-module_defaultChip__v6xxf{border:1px solid var(--il-color-bae6fd,#bae6fd);border-radius:200px;color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);padding:.25rem .5rem}.InstantLearningModal-module_defaultChip__v6xxf{background-color:var(--il-color-efefef,#efefef)}.InstantLearningModal-module_ruleChevron__ZQIDN{color:var(--il-color-666f8d,#666f8d);flex-shrink:0;transition:transform .2s ease}.InstantLearningModal-module_ruleChevronOpen__28kWP{transform:rotate(180deg)}.InstantLearningModal-module_ruleContent__Upd1r{padding:0 1rem 1rem}.InstantLearningModal-module_showNotAppliedToggle__MNDFy{align-items:center;cursor:pointer;display:flex;gap:.25rem;margin-top:.5rem;padding:.75rem 0;user-select:none}.InstantLearningModal-module_showNotAppliedText__lft3M{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_showNotAppliedChevron__DG3lO{color:var(--il-color-19213d,#19213d);transition:transform .2s ease}.InstantLearningModal-module_showNotAppliedChevronClosed__aDb9F,.InstantLearningModal-module_showNotAppliedChevronOpen__gQ2F9{transform:rotate(180deg)}.InstantLearningModal-module_variantBadgesContainer__IZcQW{display:flex;gap:.5rem}.InstantLearningModal-module_variantBadge__Ho1wT{background-color:var(--il-color-ffffff,#fff);border:1px solid var(--il-color-f0f2f5,#f0f2f5);border-radius:.25rem;color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,.75rem);font-weight:var(--il-font-weight-medium,500);padding:.25rem .5rem}.InstantLearningModal-module_descriptionBox__04P-Q{background-color:var(--il-color-f8fafc,#f8fafc);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;margin-bottom:1rem;padding:1rem}.InstantLearningModal-module_descriptionText__9K9cL{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500);line-height:1.5;margin:0}.InstantLearningModal-module_conditionsContainer__HDKR6{border-left:2px solid var(--il-color-e3e6ea,#e3e6ea);margin-left:.5rem;padding-left:1rem}.InstantLearningModal-module_conditionBlock__AWWPb{margin-bottom:1rem}.InstantLearningModal-module_conditionBlock__AWWPb:last-child{margin-bottom:0}.InstantLearningModal-module_conditionHeader__MI4Ze{align-items:center;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 0;user-select:none}.InstantLearningModal-module_conditionIconApply__Kuijt{color:var(--il-color-16a34a,#16a34a);flex-shrink:0}.InstantLearningModal-module_conditionIconNotApply__tho7S{color:var(--il-color-ef4444,#ef4444);flex-shrink:0}.InstantLearningModal-module_conditionLabel__wfTXj{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_conditionChevron__dv1wL{color:var(--il-color-666f8d,#666f8d);transition:transform .2s ease}.InstantLearningModal-module_conditionChevronOpen__LicpR{transform:rotate(180deg)}.InstantLearningModal-module_conditionContent__7IQsJ{padding-left:1.5rem;padding-top:.25rem}.InstantLearningModal-module_conditionItem__eQByk{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);line-height:1.5;margin-bottom:.25rem}.InstantLearningModal-module_noConditions__zZdtM{color:var(--il-color-666f8d,#666f8d);font-size:var(--il-font-size-sm,14px);font-style:italic}.InstantLearningModal-module_whyRuleContainer__ouVRX{margin-top:1rem}.InstantLearningModal-module_whyRuleAccordion__i8CbF{background-color:var(--il-color-fff,#fff);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;overflow:hidden}.InstantLearningModal-module_whyRuleHeader__FXWid{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem;user-select:none}.InstantLearningModal-module_whyRuleHeaderLeft__U62MS{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_whyRuleIcon__zriMN{color:var(--il-color-6d28d9,#6d28d9);flex-shrink:0}.InstantLearningModal-module_whyRuleTitle__lWUhA{color:var(--il-color-1e293b,#1e293b);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);line-height:20px}.InstantLearningModal-module_whyRuleHeaderRight__2BGz8{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_strengthBadge__RnNNv{align-items:center;background-color:var(--il-color-ffffff,#fff);border:1px solid var(--il-color-c4b5fd,#c4b5fd);border-radius:16px;color:var(--il-color-1e293b,#1e293b);display:inline-flex;font-size:var(--il-font-size-xxs,10px);font-weight:var(--il-font-weight-semibold,600);gap:.25rem;padding:.25rem .5rem}.InstantLearningModal-module_whyRuleChevron__acYiF{color:var(--il-color-19213d,#19213d);transition:transform .2s ease}.InstantLearningModal-module_whyRuleChevronOpen__On4uy{transform:rotate(180deg)}.InstantLearningModal-module_whyRuleContent__-kzcW{padding:0 1rem 1rem}.InstantLearningModal-module_whyRuleSection__wvczx{margin-bottom:1rem}.InstantLearningModal-module_whyRuleSection__wvczx:last-child{margin-bottom:0}.InstantLearningModal-module_sectionTitle__o2cBL{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);line-height:130%;margin-bottom:.5rem}.InstantLearningModal-module_sectionSubtitle__l59OK{color:var(--il-color-1e293b,#1e293b);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-regular,400);line-height:150%;margin-bottom:.5rem}.InstantLearningModal-module_reasoningList__-2T5-{padding-left:1.25rem}.InstantLearningModal-module_reasoningItem__4ZICg{color:var(--il-color-666f8d,#666f8d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-regular,400);line-height:150%;list-style:decimal;margin-bottom:.25rem}.InstantLearningModal-module_cognitiveCardWrapper__Zk6CT{margin:0 1rem 1rem}.InstantLearningModal-module_summarySectionHeader__ZZ1yY{align-items:center;cursor:pointer;display:flex;justify-content:space-between;transition:opacity .2s;user-select:none}.InstantLearningModal-module_summarySectionHeader__ZZ1yY:hover{opacity:.8}.InstantLearningModal-module_ruleHeaderRight__OrA8S{align-items:center;display:flex;flex-shrink:0;gap:1rem}.InstantLearningModal-module_adIdLabel__ttNZj{background:var(--il-color-f8fafc,#f8fafc);border:1px solid var(--il-color-f1f5f9,#f1f5f9);border-radius:4px;color:var(--il-color-94a3b8,#94a3b8);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:var(--il-font-size-xxs,10px);padding:2px 6px}.InstantLearningModal-module_revenueBadge__a4Xp6{background-color:var(--il-color-ecfdf5,#ecfdf5);border:1px solid var(--il-color-d1fae5,#d1fae5);border-radius:200px;color:var(--il-color-059669,#059669);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-semibold,600);padding:.25rem .6rem}.InstantLearningModal-module_ruleHeaderLeft__8hASc .InstantLearningModal-module_variantBadge__Ho1wT{align-items:center;background-color:var(--il-color-f3f4f6,#f3f4f6);border-color:var(--il-color-e5e7eb,#e5e7eb);color:var(--il-color-4b5563,#4b5563);display:flex;height:24px;line-height:1}.InstantLearningModal-module_ruleHeaderLeft__8hASc .InstantLearningModal-module_revenueBadge__a4Xp6{align-items:center;display:flex;height:24px;line-height:1}.InstantLearningModal-module_ruleTitle__61UbG{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-semibold,600);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.InstantLearningModal-module_toastError__muKNs,.InstantLearningModal-module_toastSuccess__9MxXU,.InstantLearningModal-module_toastWarning__HlBtG{border-radius:8px;box-shadow:0 18px 40px #0f172a29;overflow:hidden}.InstantLearningModal-module_toastError__muKNs .p-toast-message,.InstantLearningModal-module_toastSuccess__9MxXU .p-toast-message,.InstantLearningModal-module_toastWarning__HlBtG .p-toast-message{background:var(--il-color-fff,#fff);border:0;border-radius:8px;margin:0}.InstantLearningModal-module_toastError__muKNs .p-toast-message-content,.InstantLearningModal-module_toastSuccess__9MxXU .p-toast-message-content,.InstantLearningModal-module_toastWarning__HlBtG .p-toast-message-content{align-items:flex-start;background:var(--il-color-fff,#fff);border-radius:8px;gap:.75rem;padding:.875rem 3.25rem .875rem 1rem;position:relative}.InstantLearningModal-module_toastError__muKNs .p-toast-message-icon,.InstantLearningModal-module_toastSuccess__9MxXU .p-toast-message-icon,.InstantLearningModal-module_toastWarning__HlBtG .p-toast-message-icon{display:none}.InstantLearningModal-module_toastError__muKNs .p-toast-icon-close,.InstantLearningModal-module_toastSuccess__9MxXU .p-toast-icon-close,.InstantLearningModal-module_toastWarning__HlBtG .p-toast-icon-close{color:var(--il-color-64748b,#64748b);height:1.75rem;margin:0;position:absolute;right:1rem;top:1rem;width:1.75rem}.InstantLearningModal-module_toastContent__WYr--{display:flex;flex-direction:column;gap:.25rem;max-width:420px;min-width:260px}.InstantLearningModal-module_toastHeaderLeft__9PrRC{align-items:center;display:inline-flex;gap:.5rem}.InstantLearningModal-module_toastTitle__iYQ5J{font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-semibold,600);line-height:1.3}.InstantLearningModal-module_toastMessage__psN2K{color:var(--il-color-475569,#475569);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-regular,400);line-height:1.4;margin:0}.InstantLearningModal-module_iconSuccess__hTrUP,.InstantLearningModal-module_toastMessageSuccess__ypZ5i,.InstantLearningModal-module_toastTitleSuccess__-A7Ge{color:var(--il-color-059669,#059669)}.InstantLearningModal-module_iconError__jtazK,.InstantLearningModal-module_toastMessageError__PPlBm,.InstantLearningModal-module_toastTitleError__u-6lM{color:var(--il-color-dc2626,#dc2626)}.InstantLearningModal-module_iconWarning__qahFp,.InstantLearningModal-module_toastMessageWarning__sxnWa,.InstantLearningModal-module_toastTitleWarning__j49rl{color:var(--il-color-d97706,#d97706)}"),exports.default={container:"InstantLearningModal-module_container__3mazv",mainHeader:"InstantLearningModal-module_mainHeader__gQ2T8",mainHeaderIcon:"InstantLearningModal-module_mainHeaderIcon__hY-Kc",mainHeaderTitle:"InstantLearningModal-module_mainHeaderTitle__ReT0m",mainHeaderChevron:"InstantLearningModal-module_mainHeaderChevron__jgvqM",mainHeaderChevronClosed:"InstantLearningModal-module_mainHeaderChevronClosed__aR14h",contentBox:"InstantLearningModal-module_contentBox__vY6rx",subtitle:"InstantLearningModal-module_subtitle__9Hrs5",rulesList:"InstantLearningModal-module_rulesList__LepzQ",ruleAccordion:"InstantLearningModal-module_ruleAccordion__-zbDA",ruleHeaderWrapper:"InstantLearningModal-module_ruleHeaderWrapper__fZY7B",variantBrief:"InstantLearningModal-module_variantBrief__AaiYD",summaryWrapper:"InstantLearningModal-module_summaryWrapper__-8oVa",summaryCard:"InstantLearningModal-module_summaryCard__3K8iH",summaryCard__blue:"InstantLearningModal-module_summaryCard__blue__SaTnF",summaryCard__green:"InstantLearningModal-module_summaryCard__green__5JeOB",summaryCard__red:"InstantLearningModal-module_summaryCard__red__UMglS",summaryCard__orange:"InstantLearningModal-module_summaryCard__orange__JRhnX",ruleHeader:"InstantLearningModal-module_ruleHeader__5oB70",ruleHeaderLeft:"InstantLearningModal-module_ruleHeaderLeft__8hASc",ruleNumber:"InstantLearningModal-module_ruleNumber__E9626",ruleTitle:"InstantLearningModal-module_ruleTitle__61UbG",badgeApplied:"InstantLearningModal-module_badgeApplied__IwBVd",badgeNotApplied:"InstantLearningModal-module_badgeNotApplied__3pq7W",contextScore:"InstantLearningModal-module_contextScore__4vD1-",defaultChip:"InstantLearningModal-module_defaultChip__v6xxf",ruleChevron:"InstantLearningModal-module_ruleChevron__ZQIDN",ruleChevronOpen:"InstantLearningModal-module_ruleChevronOpen__28kWP",ruleContent:"InstantLearningModal-module_ruleContent__Upd1r",showNotAppliedToggle:"InstantLearningModal-module_showNotAppliedToggle__MNDFy",showNotAppliedText:"InstantLearningModal-module_showNotAppliedText__lft3M",showNotAppliedChevron:"InstantLearningModal-module_showNotAppliedChevron__DG3lO",showNotAppliedChevronClosed:"InstantLearningModal-module_showNotAppliedChevronClosed__aDb9F",showNotAppliedChevronOpen:"InstantLearningModal-module_showNotAppliedChevronOpen__gQ2F9",variantBadgesContainer:"InstantLearningModal-module_variantBadgesContainer__IZcQW",variantBadge:"InstantLearningModal-module_variantBadge__Ho1wT",descriptionBox:"InstantLearningModal-module_descriptionBox__04P-Q",descriptionText:"InstantLearningModal-module_descriptionText__9K9cL",conditionsContainer:"InstantLearningModal-module_conditionsContainer__HDKR6",conditionBlock:"InstantLearningModal-module_conditionBlock__AWWPb",conditionHeader:"InstantLearningModal-module_conditionHeader__MI4Ze",conditionIconApply:"InstantLearningModal-module_conditionIconApply__Kuijt",conditionIconNotApply:"InstantLearningModal-module_conditionIconNotApply__tho7S",conditionLabel:"InstantLearningModal-module_conditionLabel__wfTXj",conditionChevron:"InstantLearningModal-module_conditionChevron__dv1wL",conditionChevronOpen:"InstantLearningModal-module_conditionChevronOpen__LicpR",conditionContent:"InstantLearningModal-module_conditionContent__7IQsJ",conditionItem:"InstantLearningModal-module_conditionItem__eQByk",noConditions:"InstantLearningModal-module_noConditions__zZdtM",whyRuleContainer:"InstantLearningModal-module_whyRuleContainer__ouVRX",whyRuleAccordion:"InstantLearningModal-module_whyRuleAccordion__i8CbF",whyRuleHeader:"InstantLearningModal-module_whyRuleHeader__FXWid",whyRuleHeaderLeft:"InstantLearningModal-module_whyRuleHeaderLeft__U62MS",whyRuleIcon:"InstantLearningModal-module_whyRuleIcon__zriMN",whyRuleTitle:"InstantLearningModal-module_whyRuleTitle__lWUhA",whyRuleHeaderRight:"InstantLearningModal-module_whyRuleHeaderRight__2BGz8",strengthBadge:"InstantLearningModal-module_strengthBadge__RnNNv",whyRuleChevron:"InstantLearningModal-module_whyRuleChevron__acYiF",whyRuleChevronOpen:"InstantLearningModal-module_whyRuleChevronOpen__On4uy",whyRuleContent:"InstantLearningModal-module_whyRuleContent__-kzcW",whyRuleSection:"InstantLearningModal-module_whyRuleSection__wvczx",sectionTitle:"InstantLearningModal-module_sectionTitle__o2cBL",sectionSubtitle:"InstantLearningModal-module_sectionSubtitle__l59OK",reasoningList:"InstantLearningModal-module_reasoningList__-2T5-",reasoningItem:"InstantLearningModal-module_reasoningItem__4ZICg",cognitiveCardWrapper:"InstantLearningModal-module_cognitiveCardWrapper__Zk6CT",summarySectionHeader:"InstantLearningModal-module_summarySectionHeader__ZZ1yY",ruleHeaderRight:"InstantLearningModal-module_ruleHeaderRight__OrA8S",adIdLabel:"InstantLearningModal-module_adIdLabel__ttNZj",revenueBadge:"InstantLearningModal-module_revenueBadge__a4Xp6",toastSuccess:"InstantLearningModal-module_toastSuccess__9MxXU",toastError:"InstantLearningModal-module_toastError__muKNs",toastWarning:"InstantLearningModal-module_toastWarning__HlBtG",toastContent:"InstantLearningModal-module_toastContent__WYr--",toastHeaderLeft:"InstantLearningModal-module_toastHeaderLeft__9PrRC",toastTitle:"InstantLearningModal-module_toastTitle__iYQ5J",toastMessage:"InstantLearningModal-module_toastMessage__psN2K",iconSuccess:"InstantLearningModal-module_iconSuccess__hTrUP",toastTitleSuccess:"InstantLearningModal-module_toastTitleSuccess__-A7Ge",toastMessageSuccess:"InstantLearningModal-module_toastMessageSuccess__ypZ5i",iconError:"InstantLearningModal-module_iconError__jtazK",toastTitleError:"InstantLearningModal-module_toastTitleError__u-6lM",toastMessageError:"InstantLearningModal-module_toastMessageError__PPlBm",iconWarning:"InstantLearningModal-module_iconWarning__qahFp",toastTitleWarning:"InstantLearningModal-module_toastTitleWarning__j49rl",toastMessageWarning:"InstantLearningModal-module_toastMessageWarning__sxnWa"};
2
2
  //# sourceMappingURL=InstantLearningModal.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as n,__generator as o}from"tslib";import{jsx as t,jsxs as r}from"react/jsx-runtime";import{useState as i,useRef as l,useEffect as a}from"react";import{X as d}from"lucide-react";var c=function(c){var s=c.isOpen,p=c.onClose,u=c.onSave,f=c.initialName,x=void 0===f?"":f,g=i(x),b=g[0],y=g[1],m=i(""),h=m[0],v=m[1],C=i(!1),S=C[0],E=C[1],k=l(null);if(a(function(){s&&(y(x),v(""),setTimeout(function(){var e,n;null===(e=k.current)||void 0===e||e.focus(),null===(n=k.current)||void 0===n||n.select()},50))},[s,x]),!s)return null;var z=function(){return n(void 0,void 0,void 0,function(){var e,n;return o(this,function(o){switch(o.label){case 0:if(!b.trim())return v("Scope Name is required"),[2];v(""),E(!0),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,u(b.trim())];case 2:return o.sent(),p(),[3,5];case 3:return e=o.sent(),409===(null==(n=e)?void 0:n.status)?v("Scope name already exists."):v("Failed to rename scope. Please try again."),[3,5];case 4:return E(!1),[7];case 5:return[2]}})})};return t("div",e({style:{position:"fixed",inset:0,zIndex:1300,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0,0,0,0.3)"},onClick:function(e){e.target===e.currentTarget&&p()}},{children:r("div",e({style:{width:"480px",backgroundColor:"#fff",borderRadius:"12px",boxShadow:"0 20px 60px rgba(0,0,0,0.15)",padding:"24px",fontFamily:"sans-serif"}},{children:[r("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"}},{children:[t("span",e({style:{fontSize:"16px",fontWeight:600,color:"#19213D"}},{children:"Rename Scope"})),t("button",e({onClick:p,disabled:S,style:{background:"none",border:"none",cursor:"pointer",color:"#9CA3AF",padding:"4px",lineHeight:0}},{children:t(d,{size:20})}))]})),r("div",e({style:{display:"flex",flexDirection:"column",gap:"6px",marginBottom:"24px"}},{children:[r("label",e({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:[t("span",e({style:{color:"#E53E3E",marginRight:"3px"}},{children:"*"})),"Scope Name"]})),t("input",{ref:k,type:"text",value:b,onChange:function(e){y(e.target.value),h&&v("")},onKeyDown:function(e){"Enter"===e.key&&z(),"Escape"===e.key&&p()},placeholder:"Enter scope name",style:{padding:"8px 12px",fontSize:"14px",color:"#19213D",borderRadius:"6px",border:"1px solid ".concat(h?"#EF4444":"#E2E8F0"),outline:"none",width:"100%",boxSizing:"border-box"}}),h&&t("p",e({style:{margin:0,fontSize:"12px",color:"#EF4444"}},{children:h}))]})),r("div",e({style:{display:"flex",justifyContent:"flex-end",gap:"10px"}},{children:[t("button",e({onClick:p,disabled:S,style:{padding:"8px 16px",borderRadius:"6px",border:"1px solid #E2E8F0",backgroundColor:"#fff",color:"#64748B",fontSize:"14px",fontWeight:500,cursor:S?"not-allowed":"pointer",opacity:S?.6:1}},{children:"Cancel"})),t("button",e({onClick:z,disabled:S,style:{padding:"8px 20px",borderRadius:"6px",border:"none",backgroundColor:"#2563EB",color:"#fff",fontSize:"14px",fontWeight:500,cursor:S?"not-allowed":"pointer",opacity:S?.7:1}},{children:S?"Saving...":"Save"}))]}))]}))}))};export{c as default};
1
+ import{__assign as e,__awaiter as n,__generator as t}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useState as i,useRef as l,useEffect as a}from"react";import{X as c}from"lucide-react";var s=50,d=/[A-Za-z0-9]/,p=function(p){var u=p.isOpen,f=p.onClose,x=p.onSave,g=p.initialName,m=void 0===g?"":g,h=i(m),y=h[0],b=h[1],v=i(""),S=v[0],C=v[1],E=i(!1),k=E[0],z=E[1],w=l(null),F=y.length>=s;if(a(function(){u&&(b(m),C(""),setTimeout(function(){var e,n;null===(e=w.current)||void 0===e||e.focus(),null===(n=w.current)||void 0===n||n.select()},50))},[u,m]),!u)return null;var R=function(){return n(void 0,void 0,void 0,function(){var e,n,o;return t(this,function(t){switch(t.label){case 0:if(!(e=y.trim()))return C("Scope Name is required"),[2];if(e.length>s)return C("Scope Name must be ".concat(s," characters or fewer")),[2];if(!d.test(e))return C("Scope Name must include at least one letter or number"),[2];C(""),z(!0),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,x(e)];case 2:return t.sent(),f(),[3,5];case 3:return n=t.sent(),409===(null==(o=n)?void 0:o.status)?C("Scope name already exists."):C("Failed to rename scope. Please try again."),[3,5];case 4:return z(!1),[7];case 5:return[2]}})})};return o("div",e({style:{position:"fixed",inset:0,zIndex:1300,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0,0,0,0.3)"},onClick:function(e){e.target===e.currentTarget&&f()}},{children:r("div",e({style:{width:"480px",backgroundColor:"#fff",borderRadius:"12px",boxShadow:"0 20px 60px rgba(0,0,0,0.15)",padding:"24px",fontFamily:"sans-serif"}},{children:[r("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"}},{children:[o("span",e({style:{fontSize:"16px",fontWeight:600,color:"#19213D"}},{children:"Rename Scope"})),o("button",e({onClick:f,disabled:k,style:{background:"none",border:"none",cursor:"pointer",color:"#9CA3AF",padding:"4px",lineHeight:0}},{children:o(c,{size:20})}))]})),r("div",e({style:{display:"flex",flexDirection:"column",gap:"6px",marginBottom:"24px"}},{children:[r("label",e({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:[o("span",e({style:{color:"#E53E3E",marginRight:"3px"}},{children:"*"})),"Scope Name"]})),o("input",{ref:w,type:"text",value:y,maxLength:s,onChange:function(e){var n=e.target.value.slice(0,s);b(n),S&&C("")},onKeyDown:function(e){"Enter"===e.key&&R(),"Escape"===e.key&&f()},placeholder:"Enter scope name",style:{padding:"8px 12px",fontSize:"14px",color:"#19213D",borderRadius:"6px",border:"1px solid ".concat(S?"#EF4444":"#E2E8F0"),outline:"none",width:"100%",boxSizing:"border-box"}}),r("div",e({style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"}},{children:[S?o("p",e({style:{margin:0,fontSize:"12px",color:"#EF4444"}},{children:S})):o("span",{}),r("span",e({style:{flexShrink:0,fontSize:"12px",color:S||F?"#EF4444":"#64748B"}},{children:[y.length,"/",s]}))]}))]})),r("div",e({style:{display:"flex",justifyContent:"flex-end",gap:"10px"}},{children:[o("button",e({onClick:f,disabled:k,style:{padding:"8px 16px",borderRadius:"6px",border:"1px solid #E2E8F0",backgroundColor:"#fff",color:"#64748B",fontSize:"14px",fontWeight:500,cursor:k?"not-allowed":"pointer",opacity:k?.6:1}},{children:"Cancel"})),o("button",e({onClick:R,disabled:k,style:{padding:"8px 20px",borderRadius:"6px",border:"none",backgroundColor:"#2563EB",color:"#fff",fontSize:"14px",fontWeight:500,cursor:k?"not-allowed":"pointer",opacity:k?.7:1}},{children:k?"Saving...":"Save"}))]}))]}))}))};export{p as default};
2
2
  //# sourceMappingURL=RenameScopeModal.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as n}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useRef as t,useEffect as d}from"react";import{Plus as a,Pencil as r,Trash2 as c,MoveRight as s}from"lucide-react";import u from"../../styles/ScopeTree.module.css.js";import{TreeNodeHeader as p}from"./TreeNodeHeader.js";import{TreeAddAction as m}from"./TreeAddAction.js";import{dt as v,resolveTreeItem as h,interpolate as f}from"../../store/useLMSConfigStore.js";import{MIDDLE_DRAWER_DT_PATH as b,MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH as C}from"../../constants.js";import{useLearningTemplateStore as g}from"../../store/useLearningTemplateStore.js";import{TreeSectionItem as y}from"./TreeSectionItem.js";var S=function(L){var T,x,w,A,k,N,D,V,j,I=L.node,E=L.depth,P=void 0===E?0:E,M=L.nodePath,O=void 0===M?[]:M,R=L.expandedNodeIds,Y=L.activeSelection,Q=L.onToggleExpand,H=L.onSectionSelect,K=L.onNodeOptionsClick,W=L.onAddChild,z=L.onRenameChild,J=L.onDeleteChild,q=L.canDeleteScope,B=L.canEditScope,F=L.canCreateScope,G=L.searchQuery,U=L.sectionsConfig,X=void 0===U?[]:U,Z=L.nodeTypesConfig,$=void 0===Z?[]:Z,_=L.forceVisible,ee=void 0!==_&&_,ne=L.compactView,oe=void 0!==ne&&ne,ie=L.menuActionsConfig,le=e(e([],O,!0),[I.id],!1),te=R.has(I.id),de=g.getState().backwardCompatibility,ae=g(function(e){return e.isILMarketplace}),re=de||oe,ce=v("".concat(b,".scope")),se=!!Y&&Y.nodePath[Y.nodePath.length-1]===I.id,ue=!!Y&&(Y.nodePath.includes(I.id)&&!se),pe=v("".concat(b,".scopeDisplayLimit.applyToLevels"),""),me=function(){if(de)return[2];if(!pe)return null;try{var e=JSON.parse(pe);return Array.isArray(e)?e.map(Number):null}catch(e){return null}}(),ve=P+1,he=null===me||me.includes(ve),fe=(de||"true"===v("".concat(b,".scopeDisplayLimit.enabled"),"false"))&&he,be=de?7:parseInt(v("".concat(b,".scopeDisplayLimit.count"),"7"),10)||7,Ce=I.children||[],ge=fe&&!G&&Ce.length>be,ye=t(null);d(function(){se&&ye.current&&ye.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[se]);var Se="station"===(null===(T=null==I?void 0:I.type)||void 0===T?void 0:T.toLowerCase()),Le=0===P,Te=!!(null===(x=$[Math.min(P,$.length-1)])||void 0===x?void 0:x.addChildType),xe=function(e){var n=null==ie?void 0:ie.find(function(n){return n.id===e});return!(null==n?void 0:n.isVisible)||n.isVisible(I,P)},we=X.filter(function(e){return(!de||!Se||"access"!==e.id)&&(!e.isVisible||e.isVisible(I,P))}),Ae=function(e,n){if(!n)return!0;var o=n.toLowerCase();return!!e.name.toLowerCase().includes(o)||!!e.children&&e.children.some(function(e){return Ae(e,n)})};if(!ee&&!Ae(I,G||""))return null;var ke=P>=$.length-1?$[$.length-1]:$[P],Ne=re?we.filter(function(e){return"learnings"!==e.id&&"stations"!==e.id}).map(function(e){var n;return{label:e.resolveLabel?e.resolveLabel(I,P):null!==(n=e.label)&&void 0!==n?n:"",icon:e.icon,onClick:function(){return H(le,e.id)}}}):[],De=null==ke?void 0:ke.label,Ve=h("add",P,{scope:I.name,scopeType:De}),je=h("rename",P,{scope:I.name,scopeType:De}),Ie=h("delete",P,{scope:I.name,scopeType:De}),Ee=Ve.configured?Ve.visible&&Te&&!Se&&(!de||Le)&&xe("add"):Te&&!Se&&(!de||Le)&&xe("add"),Pe=null!==(A=null!==(w=Ve.label)&&void 0!==w?w:ke.addChildLabel)&&void 0!==A?A:"Add Child",Me=null!==(k=je.label)&&void 0!==k?k:v("".concat(C,".rename.label"),"Rename"),Oe=null!==(N=Ie.label)&&void 0!==N?N:Se?"Delete Station":de?"Delete Scope":v("".concat(C,".delete.label"),"Delete ".concat((null==ke?void 0:ke.label)||"Node"),{scope:ce}),Re=je.configured?je.visible&&xe("rename"):xe("rename");null!==(D=je.label)&&void 0!==D||v("".concat(C,".rename.label"),"Rename");var Ye=Ie.configured?Ie.visible&&!(de&&Se)&&xe("delete"):!(de&&Se)&&xe("delete"),Qe=!q||q(I.id),He=!B||B(I.id),Ke=!F||F(I.id),We=I.children&&I.children.length>0,ze=!Qe||We,Je=Qe?We?"This scope cannot be deleted because other scopes inherit learnings from it.":void 0:"You do not have permission to delete this scope.",qe=Ke?void 0:"You do not have permission to add a scope here.",Be=!G||I.name.toLowerCase().includes(G.toLowerCase()),Fe=function(e){return i(S,{node:e,depth:P+1,nodePath:le,expandedNodeIds:R,activeSelection:Y,onToggleExpand:Q,onSectionSelect:H,onNodeOptionsClick:K,onAddChild:W,onRenameChild:z,onDeleteChild:J,canDeleteScope:q,canEditScope:B,canCreateScope:F,searchQuery:G,forceVisible:Be,sectionsConfig:X,nodeTypesConfig:$,compactView:re,menuActionsConfig:ie},e.id)},Ge=!1===I.hasAccess?[]:e(e(e(e([],Ee?[{label:Pe,icon:a,onClick:function(){return null==W?void 0:W(I.id,ke.addChildType,I.name)},disabled:!Ke,tooltip:qe}]:[],!0),Re?[{label:Me,icon:r,onClick:function(){return null==z?void 0:z(I.id,I.name)},disabled:!He||Se,tooltip:He?void 0:"You do not have permission to rename this scope."}]:[],!0),Ye?[{label:Oe,icon:c,onClick:function(){var e;return null==J?void 0:J(I.id,I.name,(null===(e=I.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:ze,tooltip:Je,className:"text-red-500 hover:text-red-600 hover:bg-red-50"}]:[],!0),Ne,!0);return o("div",n({ref:ye,className:u.nodeWrapper,style:{"--tree-depth":P}},{children:[i(p,{nodeType:I.type,name:I.name,isExpanded:te,isSelected:se,isAncestor:ue,isExpandable:!!We,childrenCount:null===(V=I.children)||void 0===V?void 0:V.length,learningsCount:re?null===(j=I.metrics)||void 0===j?void 0:j.learningsCount:void 0,isCompactView:re,hideCounts:ae,onToggleExpand:function(e){e.stopPropagation(),Q(I.id)},onClick:function(){H(le,"learnings")},searchQuery:G,menuOptions:Ge}),te&&o("div",n({className:u.childrenWrapper},{children:[!re&&we.map(function(e){var n;return i(y,{icon:e.icon,label:e.resolveLabel?e.resolveLabel(I,P):e.label||"",badgeCount:(null==e?void 0:e.badgeKey)&&!ae?null===(n=null==I?void 0:I.metrics)||void 0===n?void 0:n[null==e?void 0:e.badgeKey]:void 0,isActive:se&&(null==Y?void 0:Y.sectionId)===e.id,onClick:function(){return H(le,e.id)}},"".concat(I.id,"-").concat(e.id))}),ge?o(l,{children:[i("div",n({className:u.scopeScrollContainer,style:{maxHeight:"calc(var(--scope-row-height, 40px) * ".concat(be,")"),overflowY:"scroll"}},{children:Ce.map(Fe)})),i("button",n({type:"button",className:u.addAction,onClick:function(e){e.stopPropagation(),H(le,"stations")}},{children:i("span",n({style:{paddingLeft:"15px"}},{children:o("span",n({style:{paddingLeft:"15px",display:"flex",alignItems:"center"}},{children:[f(v("".concat(b,".scopeDisplayLimit.viewMoreText"),de?"View all {count} stations":"Show all {count} scopes"),{count:Ce.length}),i(s,{size:14,style:{marginLeft:"6px",flexShrink:0}})]}))}))}))]}):Ce.map(Fe),Ee&&!re&&i(m,{label:ke.addChildLabel||"Add Child",onAdd:function(){return null==W?void 0:W(I.id,ke.addChildType,I.name)},disabled:!Ke,tooltip:qe})]}))]}))};export{S as TreeNode};
1
+ import{__spreadArray as e,__assign as n}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useRef as t,useEffect as d}from"react";import{Plus as a,Pencil as r,Trash2 as c,MoveRight as s}from"lucide-react";import u from"../../styles/ScopeTree.module.css.js";import{TreeNodeHeader as p}from"./TreeNodeHeader.js";import{TreeAddAction as m}from"./TreeAddAction.js";import{dt as v,resolveTreeItem as h,interpolate as f}from"../../store/useLMSConfigStore.js";import{MIDDLE_DRAWER_DT_PATH as b,MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH as C}from"../../constants.js";import{useLearningTemplateStore as g}from"../../store/useLearningTemplateStore.js";import{TreeSectionItem as y}from"./TreeSectionItem.js";var S=function(L){var T,x,w,A,k,N,D,V,j,I=L.node,E=L.depth,P=void 0===E?0:E,M=L.nodePath,O=void 0===M?[]:M,R=L.expandedNodeIds,Y=L.activeSelection,Q=L.onToggleExpand,H=L.onSectionSelect,K=L.onNodeOptionsClick,W=L.onAddChild,z=L.onRenameChild,J=L.onDeleteChild,_=L.canDeleteScope,q=L.canEditScope,B=L.canCreateScope,F=L.searchQuery,G=L.sectionsConfig,U=void 0===G?[]:G,X=L.nodeTypesConfig,Z=void 0===X?[]:X,$=L.forceVisible,ee=void 0!==$&&$,ne=L.compactView,oe=void 0!==ne&&ne,ie=L.menuActionsConfig,le=e(e([],O,!0),[I.id],!1),te=R.has(I.id),de=g.getState().backwardCompatibility,ae=g(function(e){return e.isILMarketplace}),re=de||oe,ce=v("".concat(b,".scope")),se=!!Y&&Y.nodePath[Y.nodePath.length-1]===I.id,ue=!!Y&&(Y.nodePath.includes(I.id)&&!se),pe=v("".concat(b,".scopeDisplayLimit.applyToLevels"),""),me=function(){if(de)return[2];if(!pe)return null;try{var e=JSON.parse(pe);return Array.isArray(e)?e.map(Number):null}catch(e){return null}}(),ve=P+1,he=null===me||me.includes(ve),fe=(de||"true"===v("".concat(b,".scopeDisplayLimit.enabled"),"false"))&&he,be=de?7:parseInt(v("".concat(b,".scopeDisplayLimit.count"),"7"),10)||7,Ce=I.children||[],ge=fe&&!F&&Ce.length>be,ye=t(null);d(function(){se&&ye.current&&ye.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[se]);var Se=null!==(T=null==I?void 0:I.type)&&void 0!==T?T:null==I?void 0:I.scope_type,Le="station"===(null==Se?void 0:Se.toLowerCase()),Te=0===P,xe=!!(null===(x=Z[Math.min(P,Z.length-1)])||void 0===x?void 0:x.addChildType),we=function(e){var n=null==ie?void 0:ie.find(function(n){return n.id===e});return!(null==n?void 0:n.isVisible)||n.isVisible(I,P)},Ae=U.filter(function(e){return(!de||!Le||"access"!==e.id)&&(!e.isVisible||e.isVisible(I,P))}),ke=function(e,n){if(!n)return!0;var o=n.toLowerCase();return!!e.name.toLowerCase().includes(o)||!!e.children&&e.children.some(function(e){return ke(e,n)})};if(!ee&&!ke(I,F||""))return null;var Ne=P>=Z.length-1?Z[Z.length-1]:Z[P],De=re?Ae.filter(function(e){return"learnings"!==e.id&&"stations"!==e.id}).map(function(e){var n;return{label:e.resolveLabel?e.resolveLabel(I,P):null!==(n=e.label)&&void 0!==n?n:"",icon:e.icon,onClick:function(){return H(le,e.id)}}}):[],Ve=null==Ne?void 0:Ne.label,je=h("add",P,{scope:I.name,scopeType:Ve}),Ie=h("rename",P,{scope:I.name,scopeType:Ve}),Ee=h("delete",P,{scope:I.name,scopeType:Ve}),Pe=je.configured?je.visible&&xe&&!Le&&(!de||Te)&&we("add"):xe&&!Le&&(!de||Te)&&we("add"),Me=null!==(A=null!==(w=je.label)&&void 0!==w?w:Ne.addChildLabel)&&void 0!==A?A:"Add Child",Oe=null!==(k=Ie.label)&&void 0!==k?k:v("".concat(C,".rename.label"),"Rename"),Re=null!==(N=Ee.label)&&void 0!==N?N:Le?"Delete Station":de?"Delete Scope":v("".concat(C,".delete.label"),"Delete ".concat((null==Ne?void 0:Ne.label)||"Node"),{scope:ce}),Ye=Ie.configured?Ie.visible&&we("rename"):we("rename");null!==(D=Ie.label)&&void 0!==D||v("".concat(C,".rename.label"),"Rename");var Qe=Ee.configured?Ee.visible&&!Le&&we("delete"):!Le&&we("delete"),He=!_||_(I.id),Ke=!q||q(I.id),We=!B||B(I.id),ze=I.children&&I.children.length>0,Je=!He||ze,_e=He?ze?"This scope cannot be deleted because other scopes inherit learnings from it.":void 0:"You do not have permission to delete this scope.",qe=We?void 0:"You do not have permission to add a scope here.",Be=!F||I.name.toLowerCase().includes(F.toLowerCase()),Fe=function(e){return i(S,{node:e,depth:P+1,nodePath:le,expandedNodeIds:R,activeSelection:Y,onToggleExpand:Q,onSectionSelect:H,onNodeOptionsClick:K,onAddChild:W,onRenameChild:z,onDeleteChild:J,canDeleteScope:_,canEditScope:q,canCreateScope:B,searchQuery:F,forceVisible:Be,sectionsConfig:U,nodeTypesConfig:Z,compactView:re,menuActionsConfig:ie},e.id)},Ge=!1===I.hasAccess?[]:e(e(e(e([],Pe?[{label:Me,icon:a,onClick:function(){return null==W?void 0:W(I.id,Ne.addChildType,I.name)},disabled:!We,tooltip:qe}]:[],!0),Ye?[{label:Oe,icon:r,onClick:function(){return null==z?void 0:z(I.id,I.name)},disabled:!Ke||Le,tooltip:Ke?void 0:"You do not have permission to rename this scope."}]:[],!0),Qe?[{label:Re,icon:c,onClick:function(){var e;return null==J?void 0:J(I.id,I.name,(null===(e=I.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:Je,tooltip:_e,className:"text-red-500 hover:text-red-600 hover:bg-red-50"}]:[],!0),De,!0);return o("div",n({ref:ye,className:u.nodeWrapper,style:{"--tree-depth":P}},{children:[i(p,{nodeType:Se,name:I.name,isExpanded:te,isSelected:se,isAncestor:ue,isExpandable:!!ze,childrenCount:null===(V=I.children)||void 0===V?void 0:V.length,learningsCount:re?null===(j=I.metrics)||void 0===j?void 0:j.learningsCount:void 0,isCompactView:re,hideCounts:ae,onToggleExpand:function(e){e.stopPropagation(),Q(I.id)},onClick:function(){H(le,"learnings")},searchQuery:F,menuOptions:Ge}),te&&o("div",n({className:u.childrenWrapper},{children:[!re&&Ae.map(function(e){var n;return i(y,{icon:e.icon,label:e.resolveLabel?e.resolveLabel(I,P):e.label||"",badgeCount:(null==e?void 0:e.badgeKey)&&!ae?null===(n=null==I?void 0:I.metrics)||void 0===n?void 0:n[null==e?void 0:e.badgeKey]:void 0,isActive:se&&(null==Y?void 0:Y.sectionId)===e.id,onClick:function(){return H(le,e.id)}},"".concat(I.id,"-").concat(e.id))}),ge?o(l,{children:[i("div",n({className:u.scopeScrollContainer,style:{maxHeight:"calc(var(--scope-row-height, 40px) * ".concat(be,")"),overflowY:"scroll"}},{children:Ce.map(Fe)})),i("button",n({type:"button",className:u.addAction,onClick:function(e){e.stopPropagation(),H(le,"stations")}},{children:i("span",n({style:{paddingLeft:"15px"}},{children:o("span",n({style:{paddingLeft:"15px",display:"flex",alignItems:"center"}},{children:[f(v("".concat(b,".scopeDisplayLimit.viewMoreText"),de?"View all {count} stations":"Show all {count} scopes"),{count:Ce.length}),i(s,{size:14,style:{marginLeft:"6px",flexShrink:0}})]}))}))}))]}):Ce.map(Fe),Pe&&!re&&i(m,{label:Ne.addChildLabel||"Add Child",onAdd:function(){return null==W?void 0:W(I.id,Ne.addChildType,I.name)},disabled:!We,tooltip:qe})]}))]}))};export{S as TreeNode};
2
2
  //# sourceMappingURL=TreeNode.js.map
@@ -1,2 +1,2 @@
1
- import{create as a}from"zustand";var e=a(function(a){return{llmStudioUrl:"https://devllmstudio.creativeworkspace.ai",audacyBackendUrl:null,appsecRbacUrl:null,appsecBaseUrl:null,rbacConfig:null,auditLogConfig:null,baseModeName:null,setLlmStudioUrl:function(e){return a({llmStudioUrl:e})},setAudacyBackendUrl:function(e){return a({audacyBackendUrl:e})},setRbacConfig:function(e){return a({rbacConfig:e,appsecRbacUrl:e.appsecRbacUrl,appsecBaseUrl:e.appsecBaseUrl})},setAuditLogConfig:function(e){return a({auditLogConfig:e})},setBaseModeName:function(e){return a({baseModeName:e})}}});export{e as default};
1
+ import{create as a}from"zustand";var e=a(function(a){return{llmStudioUrl:"https://llmstudio.creativeworkspace.ai",audacyBackendUrl:null,appsecRbacUrl:null,appsecBaseUrl:null,rbacConfig:null,auditLogConfig:null,baseModeName:null,setLlmStudioUrl:function(e){return a({llmStudioUrl:e})},setAudacyBackendUrl:function(e){return a({audacyBackendUrl:e})},setRbacConfig:function(e){return a({rbacConfig:e,appsecRbacUrl:e.appsecRbacUrl,appsecBaseUrl:e.appsecBaseUrl})},setAuditLogConfig:function(e){return a({auditLogConfig:e})},setBaseModeName:function(e){return a({baseModeName:e})}}});export{e as default};
2
2
  //# sourceMappingURL=useEnvStore.js.map
@@ -1,2 +1,2 @@
1
- import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var n={container:"InstantLearningModal-module_container__3mazv",mainHeader:"InstantLearningModal-module_mainHeader__gQ2T8",mainHeaderIcon:"InstantLearningModal-module_mainHeaderIcon__hY-Kc",mainHeaderTitle:"InstantLearningModal-module_mainHeaderTitle__ReT0m",mainHeaderChevron:"InstantLearningModal-module_mainHeaderChevron__jgvqM",mainHeaderChevronClosed:"InstantLearningModal-module_mainHeaderChevronClosed__aR14h",contentBox:"InstantLearningModal-module_contentBox__vY6rx",subtitle:"InstantLearningModal-module_subtitle__9Hrs5",rulesList:"InstantLearningModal-module_rulesList__LepzQ",ruleAccordion:"InstantLearningModal-module_ruleAccordion__-zbDA",ruleHeaderWrapper:"InstantLearningModal-module_ruleHeaderWrapper__fZY7B",variantBrief:"InstantLearningModal-module_variantBrief__AaiYD",summaryWrapper:"InstantLearningModal-module_summaryWrapper__-8oVa",summaryCard:"InstantLearningModal-module_summaryCard__3K8iH",summaryCard__blue:"InstantLearningModal-module_summaryCard__blue__SaTnF",summaryCard__green:"InstantLearningModal-module_summaryCard__green__5JeOB",summaryCard__red:"InstantLearningModal-module_summaryCard__red__UMglS",summaryCard__orange:"InstantLearningModal-module_summaryCard__orange__JRhnX",ruleHeader:"InstantLearningModal-module_ruleHeader__5oB70",ruleHeaderLeft:"InstantLearningModal-module_ruleHeaderLeft__8hASc",ruleNumber:"InstantLearningModal-module_ruleNumber__E9626",ruleTitle:"InstantLearningModal-module_ruleTitle__61UbG",badgeApplied:"InstantLearningModal-module_badgeApplied__IwBVd",badgeNotApplied:"InstantLearningModal-module_badgeNotApplied__3pq7W",contextScore:"InstantLearningModal-module_contextScore__4vD1-",defaultChip:"InstantLearningModal-module_defaultChip__v6xxf",ruleChevron:"InstantLearningModal-module_ruleChevron__ZQIDN",ruleChevronOpen:"InstantLearningModal-module_ruleChevronOpen__28kWP",ruleContent:"InstantLearningModal-module_ruleContent__Upd1r",showNotAppliedToggle:"InstantLearningModal-module_showNotAppliedToggle__MNDFy",showNotAppliedText:"InstantLearningModal-module_showNotAppliedText__lft3M",showNotAppliedChevron:"InstantLearningModal-module_showNotAppliedChevron__DG3lO",showNotAppliedChevronClosed:"InstantLearningModal-module_showNotAppliedChevronClosed__aDb9F",showNotAppliedChevronOpen:"InstantLearningModal-module_showNotAppliedChevronOpen__gQ2F9",variantBadgesContainer:"InstantLearningModal-module_variantBadgesContainer__IZcQW",variantBadge:"InstantLearningModal-module_variantBadge__Ho1wT",descriptionBox:"InstantLearningModal-module_descriptionBox__04P-Q",descriptionText:"InstantLearningModal-module_descriptionText__9K9cL",conditionsContainer:"InstantLearningModal-module_conditionsContainer__HDKR6",conditionBlock:"InstantLearningModal-module_conditionBlock__AWWPb",conditionHeader:"InstantLearningModal-module_conditionHeader__MI4Ze",conditionIconApply:"InstantLearningModal-module_conditionIconApply__Kuijt",conditionIconNotApply:"InstantLearningModal-module_conditionIconNotApply__tho7S",conditionLabel:"InstantLearningModal-module_conditionLabel__wfTXj",conditionChevron:"InstantLearningModal-module_conditionChevron__dv1wL",conditionChevronOpen:"InstantLearningModal-module_conditionChevronOpen__LicpR",conditionContent:"InstantLearningModal-module_conditionContent__7IQsJ",conditionItem:"InstantLearningModal-module_conditionItem__eQByk",noConditions:"InstantLearningModal-module_noConditions__zZdtM",whyRuleContainer:"InstantLearningModal-module_whyRuleContainer__ouVRX",whyRuleAccordion:"InstantLearningModal-module_whyRuleAccordion__i8CbF",whyRuleHeader:"InstantLearningModal-module_whyRuleHeader__FXWid",whyRuleHeaderLeft:"InstantLearningModal-module_whyRuleHeaderLeft__U62MS",whyRuleIcon:"InstantLearningModal-module_whyRuleIcon__zriMN",whyRuleTitle:"InstantLearningModal-module_whyRuleTitle__lWUhA",whyRuleHeaderRight:"InstantLearningModal-module_whyRuleHeaderRight__2BGz8",strengthBadge:"InstantLearningModal-module_strengthBadge__RnNNv",whyRuleChevron:"InstantLearningModal-module_whyRuleChevron__acYiF",whyRuleChevronOpen:"InstantLearningModal-module_whyRuleChevronOpen__On4uy",whyRuleContent:"InstantLearningModal-module_whyRuleContent__-kzcW",whyRuleSection:"InstantLearningModal-module_whyRuleSection__wvczx",sectionTitle:"InstantLearningModal-module_sectionTitle__o2cBL",sectionSubtitle:"InstantLearningModal-module_sectionSubtitle__l59OK",reasoningList:"InstantLearningModal-module_reasoningList__-2T5-",reasoningItem:"InstantLearningModal-module_reasoningItem__4ZICg",cognitiveCardWrapper:"InstantLearningModal-module_cognitiveCardWrapper__Zk6CT",summarySectionHeader:"InstantLearningModal-module_summarySectionHeader__ZZ1yY",ruleHeaderRight:"InstantLearningModal-module_ruleHeaderRight__OrA8S",adIdLabel:"InstantLearningModal-module_adIdLabel__ttNZj",revenueBadge:"InstantLearningModal-module_revenueBadge__a4Xp6"};e(".InstantLearningModal-module_container__3mazv{margin-top:0}.InstantLearningModal-module_mainHeader__gQ2T8{align-items:center;cursor:pointer;display:flex;gap:5px;padding:.5rem 0;user-select:none}.InstantLearningModal-module_mainHeaderIcon__hY-Kc{color:var(--il-color-16a34a,#16a34a);flex-shrink:0}.InstantLearningModal-module_mainHeaderTitle__ReT0m{color:var(--il-color-1a847c,#1a847c);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-semibold,600);line-height:1.4}.InstantLearningModal-module_mainHeaderChevron__jgvqM{color:var(--il-color-19213d,#19213d);margin-left:.25rem;transition:transform .2s ease}.InstantLearningModal-module_mainHeaderChevronClosed__aR14h{transform:rotate(180deg)}.InstantLearningModal-module_contentBox__vY6rx{background-color:var(--il-color-cdefed05,#cdefed05);border:1px solid var(--il-color-cdefed,#cdefed);border-radius:8px;margin-bottom:.5rem;margin-top:.5rem;padding:1rem}.InstantLearningModal-module_contentBox__vY6rx .InstantLearningModal-module_contentBox__vY6rx{margin-top:.25rem;padding:.75rem}.InstantLearningModal-module_subtitle__9Hrs5{color:var(--il-color-62687d,#62687d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-regular,400);line-height:1.5;margin-bottom:1rem}.InstantLearningModal-module_rulesList__LepzQ{display:flex;flex-direction:column;gap:.5rem}.InstantLearningModal-module_ruleAccordion__-zbDA{background-color:var(--il-color-fff,#fff);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;overflow:hidden}.InstantLearningModal-module_ruleHeaderWrapper__fZY7B{display:flex;flex-direction:column}.InstantLearningModal-module_variantBrief__AaiYD{color:var(--il-color-999,#999);padding:0 1rem .75rem}.InstantLearningModal-module_summaryWrapper__-8oVa{display:flex;gap:.25rem}.InstantLearningModal-module_summaryCard__3K8iH{background:#f5f5f5;border:1px solid var(--il-color-eee,#eee);padding:5px;text-align:center;width:20%}.InstantLearningModal-module_summaryCard__blue__SaTnF{background:#f0f8ff;border:1px solid var(--il-color-eee,#eee)}.InstantLearningModal-module_summaryCard__green__5JeOB{background-color:var(--il-color-f0fdf4,#f0fdf4);border:1px solid var(--il-color-dcfce7,#dcfce7);color:var(--il-color-008615,#008615)}.InstantLearningModal-module_summaryCard__red__UMglS{background-color:rgb(254 242 242/var(--tw-bg-opacity,1));border-color:rgb(254 226 226/var(--tw-border-opacity,1));color:rgb(220 38 38/var(--tw-text-opacity,1))}.InstantLearningModal-module_summaryCard__orange__JRhnX{background-color:var(--il-color-fff7ed,#fff7ed);border:1px solid var(--il-color-ffedd5,#ffedd5);color:var(--il-color-ea580c,#ea580c)}.InstantLearningModal-module_ruleHeader__5oB70{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem;user-select:none}.InstantLearningModal-module_ruleHeaderLeft__8hASc{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_ruleNumber__E9626{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_ruleTitle__61UbG{font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_badgeApplied__IwBVd{background-color:var(--il-color-f0fdf4,#f0fdf4);border:1px solid var(--il-color-dcfce7,#dcfce7);border-radius:200px;color:var(--il-color-008615,#008615)}.InstantLearningModal-module_badgeApplied__IwBVd,.InstantLearningModal-module_badgeNotApplied__3pq7W{align-items:center;display:inline-flex;font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);gap:.25rem;padding:.25rem .5rem}.InstantLearningModal-module_badgeNotApplied__3pq7W{background-color:var(--il-color-fff7ed,#fff7ed);border:1px solid var(--il-color-ffedd5,#ffedd5);border-radius:200px;color:var(--il-color-ea580c,#ea580c)}.InstantLearningModal-module_contextScore__4vD1-{background-color:var(--il-color-e0f2fe,#e0f2fe)}.InstantLearningModal-module_contextScore__4vD1-,.InstantLearningModal-module_defaultChip__v6xxf{border:1px solid var(--il-color-bae6fd,#bae6fd);border-radius:200px;color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);padding:.25rem .5rem}.InstantLearningModal-module_defaultChip__v6xxf{background-color:var(--il-color-efefef,#efefef)}.InstantLearningModal-module_ruleChevron__ZQIDN{color:var(--il-color-666f8d,#666f8d);flex-shrink:0;transition:transform .2s ease}.InstantLearningModal-module_ruleChevronOpen__28kWP{transform:rotate(180deg)}.InstantLearningModal-module_ruleContent__Upd1r{padding:0 1rem 1rem}.InstantLearningModal-module_showNotAppliedToggle__MNDFy{align-items:center;cursor:pointer;display:flex;gap:.25rem;margin-top:.5rem;padding:.75rem 0;user-select:none}.InstantLearningModal-module_showNotAppliedText__lft3M{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_showNotAppliedChevron__DG3lO{color:var(--il-color-19213d,#19213d);transition:transform .2s ease}.InstantLearningModal-module_showNotAppliedChevronClosed__aDb9F,.InstantLearningModal-module_showNotAppliedChevronOpen__gQ2F9{transform:rotate(180deg)}.InstantLearningModal-module_variantBadgesContainer__IZcQW{display:flex;gap:.5rem}.InstantLearningModal-module_variantBadge__Ho1wT{background-color:var(--il-color-ffffff,#fff);border:1px solid var(--il-color-f0f2f5,#f0f2f5);border-radius:.25rem;color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,.75rem);font-weight:var(--il-font-weight-medium,500);padding:.25rem .5rem}.InstantLearningModal-module_descriptionBox__04P-Q{background-color:var(--il-color-f8fafc,#f8fafc);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;margin-bottom:1rem;padding:1rem}.InstantLearningModal-module_descriptionText__9K9cL{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500);line-height:1.5;margin:0}.InstantLearningModal-module_conditionsContainer__HDKR6{border-left:2px solid var(--il-color-e3e6ea,#e3e6ea);margin-left:.5rem;padding-left:1rem}.InstantLearningModal-module_conditionBlock__AWWPb{margin-bottom:1rem}.InstantLearningModal-module_conditionBlock__AWWPb:last-child{margin-bottom:0}.InstantLearningModal-module_conditionHeader__MI4Ze{align-items:center;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 0;user-select:none}.InstantLearningModal-module_conditionIconApply__Kuijt{color:var(--il-color-16a34a,#16a34a);flex-shrink:0}.InstantLearningModal-module_conditionIconNotApply__tho7S{color:var(--il-color-ef4444,#ef4444);flex-shrink:0}.InstantLearningModal-module_conditionLabel__wfTXj{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_conditionChevron__dv1wL{color:var(--il-color-666f8d,#666f8d);transition:transform .2s ease}.InstantLearningModal-module_conditionChevronOpen__LicpR{transform:rotate(180deg)}.InstantLearningModal-module_conditionContent__7IQsJ{padding-left:1.5rem;padding-top:.25rem}.InstantLearningModal-module_conditionItem__eQByk{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);line-height:1.5;margin-bottom:.25rem}.InstantLearningModal-module_noConditions__zZdtM{color:var(--il-color-666f8d,#666f8d);font-size:var(--il-font-size-sm,14px);font-style:italic}.InstantLearningModal-module_whyRuleContainer__ouVRX{margin-top:1rem}.InstantLearningModal-module_whyRuleAccordion__i8CbF{background-color:var(--il-color-fff,#fff);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;overflow:hidden}.InstantLearningModal-module_whyRuleHeader__FXWid{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem;user-select:none}.InstantLearningModal-module_whyRuleHeaderLeft__U62MS{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_whyRuleIcon__zriMN{color:var(--il-color-6d28d9,#6d28d9);flex-shrink:0}.InstantLearningModal-module_whyRuleTitle__lWUhA{color:var(--il-color-1e293b,#1e293b);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);line-height:20px}.InstantLearningModal-module_whyRuleHeaderRight__2BGz8{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_strengthBadge__RnNNv{align-items:center;background-color:var(--il-color-ffffff,#fff);border:1px solid var(--il-color-c4b5fd,#c4b5fd);border-radius:16px;color:var(--il-color-1e293b,#1e293b);display:inline-flex;font-size:var(--il-font-size-xxs,10px);font-weight:var(--il-font-weight-semibold,600);gap:.25rem;padding:.25rem .5rem}.InstantLearningModal-module_whyRuleChevron__acYiF{color:var(--il-color-19213d,#19213d);transition:transform .2s ease}.InstantLearningModal-module_whyRuleChevronOpen__On4uy{transform:rotate(180deg)}.InstantLearningModal-module_whyRuleContent__-kzcW{padding:0 1rem 1rem}.InstantLearningModal-module_whyRuleSection__wvczx{margin-bottom:1rem}.InstantLearningModal-module_whyRuleSection__wvczx:last-child{margin-bottom:0}.InstantLearningModal-module_sectionTitle__o2cBL{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);line-height:130%;margin-bottom:.5rem}.InstantLearningModal-module_sectionSubtitle__l59OK{color:var(--il-color-1e293b,#1e293b);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-regular,400);line-height:150%;margin-bottom:.5rem}.InstantLearningModal-module_reasoningList__-2T5-{padding-left:1.25rem}.InstantLearningModal-module_reasoningItem__4ZICg{color:var(--il-color-666f8d,#666f8d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-regular,400);line-height:150%;list-style:decimal;margin-bottom:.25rem}.InstantLearningModal-module_cognitiveCardWrapper__Zk6CT{margin:0 1rem 1rem}.InstantLearningModal-module_summarySectionHeader__ZZ1yY{align-items:center;cursor:pointer;display:flex;justify-content:space-between;transition:opacity .2s;user-select:none}.InstantLearningModal-module_summarySectionHeader__ZZ1yY:hover{opacity:.8}.InstantLearningModal-module_ruleHeaderRight__OrA8S{align-items:center;display:flex;flex-shrink:0;gap:1rem}.InstantLearningModal-module_adIdLabel__ttNZj{background:var(--il-color-f8fafc,#f8fafc);border:1px solid var(--il-color-f1f5f9,#f1f5f9);border-radius:4px;color:var(--il-color-94a3b8,#94a3b8);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:var(--il-font-size-xxs,10px);padding:2px 6px}.InstantLearningModal-module_revenueBadge__a4Xp6{background-color:var(--il-color-ecfdf5,#ecfdf5);border:1px solid var(--il-color-d1fae5,#d1fae5);border-radius:200px;color:var(--il-color-059669,#059669);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-semibold,600);padding:.25rem .6rem}.InstantLearningModal-module_ruleHeaderLeft__8hASc .InstantLearningModal-module_variantBadge__Ho1wT{align-items:center;background-color:var(--il-color-f3f4f6,#f3f4f6);border-color:var(--il-color-e5e7eb,#e5e7eb);color:var(--il-color-4b5563,#4b5563);display:flex;height:24px;line-height:1}.InstantLearningModal-module_ruleHeaderLeft__8hASc .InstantLearningModal-module_revenueBadge__a4Xp6{align-items:center;display:flex;height:24px;line-height:1}.InstantLearningModal-module_ruleTitle__61UbG{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-semibold,600);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}");export{n as default};
1
+ import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var n={container:"InstantLearningModal-module_container__3mazv",mainHeader:"InstantLearningModal-module_mainHeader__gQ2T8",mainHeaderIcon:"InstantLearningModal-module_mainHeaderIcon__hY-Kc",mainHeaderTitle:"InstantLearningModal-module_mainHeaderTitle__ReT0m",mainHeaderChevron:"InstantLearningModal-module_mainHeaderChevron__jgvqM",mainHeaderChevronClosed:"InstantLearningModal-module_mainHeaderChevronClosed__aR14h",contentBox:"InstantLearningModal-module_contentBox__vY6rx",subtitle:"InstantLearningModal-module_subtitle__9Hrs5",rulesList:"InstantLearningModal-module_rulesList__LepzQ",ruleAccordion:"InstantLearningModal-module_ruleAccordion__-zbDA",ruleHeaderWrapper:"InstantLearningModal-module_ruleHeaderWrapper__fZY7B",variantBrief:"InstantLearningModal-module_variantBrief__AaiYD",summaryWrapper:"InstantLearningModal-module_summaryWrapper__-8oVa",summaryCard:"InstantLearningModal-module_summaryCard__3K8iH",summaryCard__blue:"InstantLearningModal-module_summaryCard__blue__SaTnF",summaryCard__green:"InstantLearningModal-module_summaryCard__green__5JeOB",summaryCard__red:"InstantLearningModal-module_summaryCard__red__UMglS",summaryCard__orange:"InstantLearningModal-module_summaryCard__orange__JRhnX",ruleHeader:"InstantLearningModal-module_ruleHeader__5oB70",ruleHeaderLeft:"InstantLearningModal-module_ruleHeaderLeft__8hASc",ruleNumber:"InstantLearningModal-module_ruleNumber__E9626",ruleTitle:"InstantLearningModal-module_ruleTitle__61UbG",badgeApplied:"InstantLearningModal-module_badgeApplied__IwBVd",badgeNotApplied:"InstantLearningModal-module_badgeNotApplied__3pq7W",contextScore:"InstantLearningModal-module_contextScore__4vD1-",defaultChip:"InstantLearningModal-module_defaultChip__v6xxf",ruleChevron:"InstantLearningModal-module_ruleChevron__ZQIDN",ruleChevronOpen:"InstantLearningModal-module_ruleChevronOpen__28kWP",ruleContent:"InstantLearningModal-module_ruleContent__Upd1r",showNotAppliedToggle:"InstantLearningModal-module_showNotAppliedToggle__MNDFy",showNotAppliedText:"InstantLearningModal-module_showNotAppliedText__lft3M",showNotAppliedChevron:"InstantLearningModal-module_showNotAppliedChevron__DG3lO",showNotAppliedChevronClosed:"InstantLearningModal-module_showNotAppliedChevronClosed__aDb9F",showNotAppliedChevronOpen:"InstantLearningModal-module_showNotAppliedChevronOpen__gQ2F9",variantBadgesContainer:"InstantLearningModal-module_variantBadgesContainer__IZcQW",variantBadge:"InstantLearningModal-module_variantBadge__Ho1wT",descriptionBox:"InstantLearningModal-module_descriptionBox__04P-Q",descriptionText:"InstantLearningModal-module_descriptionText__9K9cL",conditionsContainer:"InstantLearningModal-module_conditionsContainer__HDKR6",conditionBlock:"InstantLearningModal-module_conditionBlock__AWWPb",conditionHeader:"InstantLearningModal-module_conditionHeader__MI4Ze",conditionIconApply:"InstantLearningModal-module_conditionIconApply__Kuijt",conditionIconNotApply:"InstantLearningModal-module_conditionIconNotApply__tho7S",conditionLabel:"InstantLearningModal-module_conditionLabel__wfTXj",conditionChevron:"InstantLearningModal-module_conditionChevron__dv1wL",conditionChevronOpen:"InstantLearningModal-module_conditionChevronOpen__LicpR",conditionContent:"InstantLearningModal-module_conditionContent__7IQsJ",conditionItem:"InstantLearningModal-module_conditionItem__eQByk",noConditions:"InstantLearningModal-module_noConditions__zZdtM",whyRuleContainer:"InstantLearningModal-module_whyRuleContainer__ouVRX",whyRuleAccordion:"InstantLearningModal-module_whyRuleAccordion__i8CbF",whyRuleHeader:"InstantLearningModal-module_whyRuleHeader__FXWid",whyRuleHeaderLeft:"InstantLearningModal-module_whyRuleHeaderLeft__U62MS",whyRuleIcon:"InstantLearningModal-module_whyRuleIcon__zriMN",whyRuleTitle:"InstantLearningModal-module_whyRuleTitle__lWUhA",whyRuleHeaderRight:"InstantLearningModal-module_whyRuleHeaderRight__2BGz8",strengthBadge:"InstantLearningModal-module_strengthBadge__RnNNv",whyRuleChevron:"InstantLearningModal-module_whyRuleChevron__acYiF",whyRuleChevronOpen:"InstantLearningModal-module_whyRuleChevronOpen__On4uy",whyRuleContent:"InstantLearningModal-module_whyRuleContent__-kzcW",whyRuleSection:"InstantLearningModal-module_whyRuleSection__wvczx",sectionTitle:"InstantLearningModal-module_sectionTitle__o2cBL",sectionSubtitle:"InstantLearningModal-module_sectionSubtitle__l59OK",reasoningList:"InstantLearningModal-module_reasoningList__-2T5-",reasoningItem:"InstantLearningModal-module_reasoningItem__4ZICg",cognitiveCardWrapper:"InstantLearningModal-module_cognitiveCardWrapper__Zk6CT",summarySectionHeader:"InstantLearningModal-module_summarySectionHeader__ZZ1yY",ruleHeaderRight:"InstantLearningModal-module_ruleHeaderRight__OrA8S",adIdLabel:"InstantLearningModal-module_adIdLabel__ttNZj",revenueBadge:"InstantLearningModal-module_revenueBadge__a4Xp6",toastSuccess:"InstantLearningModal-module_toastSuccess__9MxXU",toastError:"InstantLearningModal-module_toastError__muKNs",toastWarning:"InstantLearningModal-module_toastWarning__HlBtG",toastContent:"InstantLearningModal-module_toastContent__WYr--",toastHeaderLeft:"InstantLearningModal-module_toastHeaderLeft__9PrRC",toastTitle:"InstantLearningModal-module_toastTitle__iYQ5J",toastMessage:"InstantLearningModal-module_toastMessage__psN2K",iconSuccess:"InstantLearningModal-module_iconSuccess__hTrUP",toastTitleSuccess:"InstantLearningModal-module_toastTitleSuccess__-A7Ge",toastMessageSuccess:"InstantLearningModal-module_toastMessageSuccess__ypZ5i",iconError:"InstantLearningModal-module_iconError__jtazK",toastTitleError:"InstantLearningModal-module_toastTitleError__u-6lM",toastMessageError:"InstantLearningModal-module_toastMessageError__PPlBm",iconWarning:"InstantLearningModal-module_iconWarning__qahFp",toastTitleWarning:"InstantLearningModal-module_toastTitleWarning__j49rl",toastMessageWarning:"InstantLearningModal-module_toastMessageWarning__sxnWa"};e(".InstantLearningModal-module_container__3mazv{margin-top:0}.InstantLearningModal-module_mainHeader__gQ2T8{align-items:center;cursor:pointer;display:flex;gap:5px;padding:.5rem 0;user-select:none}.InstantLearningModal-module_mainHeaderIcon__hY-Kc{color:var(--il-color-16a34a,#16a34a);flex-shrink:0}.InstantLearningModal-module_mainHeaderTitle__ReT0m{color:var(--il-color-1a847c,#1a847c);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-semibold,600);line-height:1.4}.InstantLearningModal-module_mainHeaderChevron__jgvqM{color:var(--il-color-19213d,#19213d);margin-left:.25rem;transition:transform .2s ease}.InstantLearningModal-module_mainHeaderChevronClosed__aR14h{transform:rotate(180deg)}.InstantLearningModal-module_contentBox__vY6rx{background-color:var(--il-color-cdefed05,#cdefed05);border:1px solid var(--il-color-cdefed,#cdefed);border-radius:8px;margin-bottom:.5rem;margin-top:.5rem;padding:1rem}.InstantLearningModal-module_contentBox__vY6rx .InstantLearningModal-module_contentBox__vY6rx{margin-top:.25rem;padding:.75rem}.InstantLearningModal-module_subtitle__9Hrs5{color:var(--il-color-62687d,#62687d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-regular,400);line-height:1.5;margin-bottom:1rem}.InstantLearningModal-module_rulesList__LepzQ{display:flex;flex-direction:column;gap:.5rem}.InstantLearningModal-module_ruleAccordion__-zbDA{background-color:var(--il-color-fff,#fff);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;overflow:hidden}.InstantLearningModal-module_ruleHeaderWrapper__fZY7B{display:flex;flex-direction:column}.InstantLearningModal-module_variantBrief__AaiYD{color:var(--il-color-999,#999);padding:0 1rem .75rem}.InstantLearningModal-module_summaryWrapper__-8oVa{display:flex;gap:.25rem}.InstantLearningModal-module_summaryCard__3K8iH{background:#f5f5f5;border:1px solid var(--il-color-eee,#eee);padding:5px;text-align:center;width:20%}.InstantLearningModal-module_summaryCard__blue__SaTnF{background:#f0f8ff;border:1px solid var(--il-color-eee,#eee)}.InstantLearningModal-module_summaryCard__green__5JeOB{background-color:var(--il-color-f0fdf4,#f0fdf4);border:1px solid var(--il-color-dcfce7,#dcfce7);color:var(--il-color-008615,#008615)}.InstantLearningModal-module_summaryCard__red__UMglS{background-color:rgb(254 242 242/var(--tw-bg-opacity,1));border-color:rgb(254 226 226/var(--tw-border-opacity,1));color:rgb(220 38 38/var(--tw-text-opacity,1))}.InstantLearningModal-module_summaryCard__orange__JRhnX{background-color:var(--il-color-fff7ed,#fff7ed);border:1px solid var(--il-color-ffedd5,#ffedd5);color:var(--il-color-ea580c,#ea580c)}.InstantLearningModal-module_ruleHeader__5oB70{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem;user-select:none}.InstantLearningModal-module_ruleHeaderLeft__8hASc{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_ruleNumber__E9626{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_ruleTitle__61UbG{font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_badgeApplied__IwBVd{background-color:var(--il-color-f0fdf4,#f0fdf4);border:1px solid var(--il-color-dcfce7,#dcfce7);border-radius:200px;color:var(--il-color-008615,#008615)}.InstantLearningModal-module_badgeApplied__IwBVd,.InstantLearningModal-module_badgeNotApplied__3pq7W{align-items:center;display:inline-flex;font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);gap:.25rem;padding:.25rem .5rem}.InstantLearningModal-module_badgeNotApplied__3pq7W{background-color:var(--il-color-fff7ed,#fff7ed);border:1px solid var(--il-color-ffedd5,#ffedd5);border-radius:200px;color:var(--il-color-ea580c,#ea580c)}.InstantLearningModal-module_contextScore__4vD1-{background-color:var(--il-color-e0f2fe,#e0f2fe)}.InstantLearningModal-module_contextScore__4vD1-,.InstantLearningModal-module_defaultChip__v6xxf{border:1px solid var(--il-color-bae6fd,#bae6fd);border-radius:200px;color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);padding:.25rem .5rem}.InstantLearningModal-module_defaultChip__v6xxf{background-color:var(--il-color-efefef,#efefef)}.InstantLearningModal-module_ruleChevron__ZQIDN{color:var(--il-color-666f8d,#666f8d);flex-shrink:0;transition:transform .2s ease}.InstantLearningModal-module_ruleChevronOpen__28kWP{transform:rotate(180deg)}.InstantLearningModal-module_ruleContent__Upd1r{padding:0 1rem 1rem}.InstantLearningModal-module_showNotAppliedToggle__MNDFy{align-items:center;cursor:pointer;display:flex;gap:.25rem;margin-top:.5rem;padding:.75rem 0;user-select:none}.InstantLearningModal-module_showNotAppliedText__lft3M{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_showNotAppliedChevron__DG3lO{color:var(--il-color-19213d,#19213d);transition:transform .2s ease}.InstantLearningModal-module_showNotAppliedChevronClosed__aDb9F,.InstantLearningModal-module_showNotAppliedChevronOpen__gQ2F9{transform:rotate(180deg)}.InstantLearningModal-module_variantBadgesContainer__IZcQW{display:flex;gap:.5rem}.InstantLearningModal-module_variantBadge__Ho1wT{background-color:var(--il-color-ffffff,#fff);border:1px solid var(--il-color-f0f2f5,#f0f2f5);border-radius:.25rem;color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,.75rem);font-weight:var(--il-font-weight-medium,500);padding:.25rem .5rem}.InstantLearningModal-module_descriptionBox__04P-Q{background-color:var(--il-color-f8fafc,#f8fafc);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;margin-bottom:1rem;padding:1rem}.InstantLearningModal-module_descriptionText__9K9cL{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500);line-height:1.5;margin:0}.InstantLearningModal-module_conditionsContainer__HDKR6{border-left:2px solid var(--il-color-e3e6ea,#e3e6ea);margin-left:.5rem;padding-left:1rem}.InstantLearningModal-module_conditionBlock__AWWPb{margin-bottom:1rem}.InstantLearningModal-module_conditionBlock__AWWPb:last-child{margin-bottom:0}.InstantLearningModal-module_conditionHeader__MI4Ze{align-items:center;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 0;user-select:none}.InstantLearningModal-module_conditionIconApply__Kuijt{color:var(--il-color-16a34a,#16a34a);flex-shrink:0}.InstantLearningModal-module_conditionIconNotApply__tho7S{color:var(--il-color-ef4444,#ef4444);flex-shrink:0}.InstantLearningModal-module_conditionLabel__wfTXj{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-medium,500)}.InstantLearningModal-module_conditionChevron__dv1wL{color:var(--il-color-666f8d,#666f8d);transition:transform .2s ease}.InstantLearningModal-module_conditionChevronOpen__LicpR{transform:rotate(180deg)}.InstantLearningModal-module_conditionContent__7IQsJ{padding-left:1.5rem;padding-top:.25rem}.InstantLearningModal-module_conditionItem__eQByk{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);line-height:1.5;margin-bottom:.25rem}.InstantLearningModal-module_noConditions__zZdtM{color:var(--il-color-666f8d,#666f8d);font-size:var(--il-font-size-sm,14px);font-style:italic}.InstantLearningModal-module_whyRuleContainer__ouVRX{margin-top:1rem}.InstantLearningModal-module_whyRuleAccordion__i8CbF{background-color:var(--il-color-fff,#fff);border:1px solid var(--il-color-e3e6ea,#e3e6ea);border-radius:8px;overflow:hidden}.InstantLearningModal-module_whyRuleHeader__FXWid{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem;user-select:none}.InstantLearningModal-module_whyRuleHeaderLeft__U62MS{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_whyRuleIcon__zriMN{color:var(--il-color-6d28d9,#6d28d9);flex-shrink:0}.InstantLearningModal-module_whyRuleTitle__lWUhA{color:var(--il-color-1e293b,#1e293b);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);line-height:20px}.InstantLearningModal-module_whyRuleHeaderRight__2BGz8{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_strengthBadge__RnNNv{align-items:center;background-color:var(--il-color-ffffff,#fff);border:1px solid var(--il-color-c4b5fd,#c4b5fd);border-radius:16px;color:var(--il-color-1e293b,#1e293b);display:inline-flex;font-size:var(--il-font-size-xxs,10px);font-weight:var(--il-font-weight-semibold,600);gap:.25rem;padding:.25rem .5rem}.InstantLearningModal-module_whyRuleChevron__acYiF{color:var(--il-color-19213d,#19213d);transition:transform .2s ease}.InstantLearningModal-module_whyRuleChevronOpen__On4uy{transform:rotate(180deg)}.InstantLearningModal-module_whyRuleContent__-kzcW{padding:0 1rem 1rem}.InstantLearningModal-module_whyRuleSection__wvczx{margin-bottom:1rem}.InstantLearningModal-module_whyRuleSection__wvczx:last-child{margin-bottom:0}.InstantLearningModal-module_sectionTitle__o2cBL{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-medium,500);line-height:130%;margin-bottom:.5rem}.InstantLearningModal-module_sectionSubtitle__l59OK{color:var(--il-color-1e293b,#1e293b);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-regular,400);line-height:150%;margin-bottom:.5rem}.InstantLearningModal-module_reasoningList__-2T5-{padding-left:1.25rem}.InstantLearningModal-module_reasoningItem__4ZICg{color:var(--il-color-666f8d,#666f8d);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-regular,400);line-height:150%;list-style:decimal;margin-bottom:.25rem}.InstantLearningModal-module_cognitiveCardWrapper__Zk6CT{margin:0 1rem 1rem}.InstantLearningModal-module_summarySectionHeader__ZZ1yY{align-items:center;cursor:pointer;display:flex;justify-content:space-between;transition:opacity .2s;user-select:none}.InstantLearningModal-module_summarySectionHeader__ZZ1yY:hover{opacity:.8}.InstantLearningModal-module_ruleHeaderRight__OrA8S{align-items:center;display:flex;flex-shrink:0;gap:1rem}.InstantLearningModal-module_adIdLabel__ttNZj{background:var(--il-color-f8fafc,#f8fafc);border:1px solid var(--il-color-f1f5f9,#f1f5f9);border-radius:4px;color:var(--il-color-94a3b8,#94a3b8);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:var(--il-font-size-xxs,10px);padding:2px 6px}.InstantLearningModal-module_revenueBadge__a4Xp6{background-color:var(--il-color-ecfdf5,#ecfdf5);border:1px solid var(--il-color-d1fae5,#d1fae5);border-radius:200px;color:var(--il-color-059669,#059669);font-size:var(--il-font-size-xs,12px);font-weight:var(--il-font-weight-semibold,600);padding:.25rem .6rem}.InstantLearningModal-module_ruleHeaderLeft__8hASc .InstantLearningModal-module_variantBadge__Ho1wT{align-items:center;background-color:var(--il-color-f3f4f6,#f3f4f6);border-color:var(--il-color-e5e7eb,#e5e7eb);color:var(--il-color-4b5563,#4b5563);display:flex;height:24px;line-height:1}.InstantLearningModal-module_ruleHeaderLeft__8hASc .InstantLearningModal-module_revenueBadge__a4Xp6{align-items:center;display:flex;height:24px;line-height:1}.InstantLearningModal-module_ruleTitle__61UbG{color:var(--il-color-19213d,#19213d);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-semibold,600);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.InstantLearningModal-module_toastError__muKNs,.InstantLearningModal-module_toastSuccess__9MxXU,.InstantLearningModal-module_toastWarning__HlBtG{border-radius:8px;box-shadow:0 18px 40px #0f172a29;overflow:hidden}.InstantLearningModal-module_toastError__muKNs .p-toast-message,.InstantLearningModal-module_toastSuccess__9MxXU .p-toast-message,.InstantLearningModal-module_toastWarning__HlBtG .p-toast-message{background:var(--il-color-fff,#fff);border:0;border-radius:8px;margin:0}.InstantLearningModal-module_toastError__muKNs .p-toast-message-content,.InstantLearningModal-module_toastSuccess__9MxXU .p-toast-message-content,.InstantLearningModal-module_toastWarning__HlBtG .p-toast-message-content{align-items:flex-start;background:var(--il-color-fff,#fff);border-radius:8px;gap:.75rem;padding:.875rem 3.25rem .875rem 1rem;position:relative}.InstantLearningModal-module_toastError__muKNs .p-toast-message-icon,.InstantLearningModal-module_toastSuccess__9MxXU .p-toast-message-icon,.InstantLearningModal-module_toastWarning__HlBtG .p-toast-message-icon{display:none}.InstantLearningModal-module_toastError__muKNs .p-toast-icon-close,.InstantLearningModal-module_toastSuccess__9MxXU .p-toast-icon-close,.InstantLearningModal-module_toastWarning__HlBtG .p-toast-icon-close{color:var(--il-color-64748b,#64748b);height:1.75rem;margin:0;position:absolute;right:1rem;top:1rem;width:1.75rem}.InstantLearningModal-module_toastContent__WYr--{display:flex;flex-direction:column;gap:.25rem;max-width:420px;min-width:260px}.InstantLearningModal-module_toastHeaderLeft__9PrRC{align-items:center;display:inline-flex;gap:.5rem}.InstantLearningModal-module_toastTitle__iYQ5J{font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-semibold,600);line-height:1.3}.InstantLearningModal-module_toastMessage__psN2K{color:var(--il-color-475569,#475569);font-size:var(--il-font-size-sm,14px);font-weight:var(--il-font-weight-regular,400);line-height:1.4;margin:0}.InstantLearningModal-module_iconSuccess__hTrUP,.InstantLearningModal-module_toastMessageSuccess__ypZ5i,.InstantLearningModal-module_toastTitleSuccess__-A7Ge{color:var(--il-color-059669,#059669)}.InstantLearningModal-module_iconError__jtazK,.InstantLearningModal-module_toastMessageError__PPlBm,.InstantLearningModal-module_toastTitleError__u-6lM{color:var(--il-color-dc2626,#dc2626)}.InstantLearningModal-module_iconWarning__qahFp,.InstantLearningModal-module_toastMessageWarning__sxnWa,.InstantLearningModal-module_toastTitleWarning__j49rl{color:var(--il-color-d97706,#d97706)}");export{n as default};
2
2
  //# sourceMappingURL=InstantLearningModal.module.css.js.map
@@ -8,8 +8,8 @@ import type { InstantLearningApiItem, PublishStepConfig } from "./features/IL-ma
8
8
  import type { MiddleDrawerOverrides } from "./features/LearningManagement/types";
9
9
  import { AxiosRequestConfig } from "axios";
10
10
  import { type ILMarketplaceTheme } from "./features/IL-marketplace/marketplaceTheme";
11
- export type { ILMarketplaceTheme } from "./features/IL-marketplace/marketplaceTheme";
12
11
  import { MF_EVENTS, type ILMarketplaceConfig, type IMicroFrontendApi } from "./features/IL-marketplace/utils/microfrontend";
12
+ export type { ILMarketplaceTheme } from "./features/IL-marketplace/marketplaceTheme";
13
13
  export type { ILMarketplaceConfig, IMicroFrontendApi, SendILMarketplaceDataPayload } from "./features/IL-marketplace/utils/microfrontend";
14
14
  export { MF_EVENTS };
15
15
  export declare const IL_MARKETPLACE_TAB_ID = "IL Marketplace";
@@ -1 +1 @@
1
- {"version":3,"file":"ILMarketplaceWrapper.d.ts","sourceRoot":"","sources":["../../../src/ILMarketplaceWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAC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mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE9B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;IACxC,uGAAuG;IACvG,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC;AA0nCF,QAAA,MAAM,oBAAoB,UAAW,yBAAyB,gCAI7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RenameScopeModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/RenameScopeModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,UAAU,qBAAqB;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAqJrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"RenameScopeModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/RenameScopeModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,UAAU,qBAAqB;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO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Ac,EAAE,MAAM,KAAK,IAAI,CAAC;IACrF,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACrC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACxC;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoY5C,CAAC"}
1
+ {"version":3,"file":"TreeNode.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/ScopeTree/TreeNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAgB,MAAM,aAAa,CAAC;AAS/G,UAAU,aAAa;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,eAAe,EAAE;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAClE,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9F,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACrF,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACrC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACxC;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAqY5C,CAAC"}
@@ -195,7 +195,7 @@ export type ChatResponseRequest = {
195
195
  };
196
196
  };
197
197
  };
198
- export type TreeNodeType = 'GLOBAL' | 'SCOPE' | 'SUBSCOPE' | 'Custom';
198
+ export type TreeNodeType = 'GLOBAL' | 'SCOPE' | 'SUBSCOPE' | 'STATION' | 'Custom' | 'Station';
199
199
  export interface NodeMetrics {
200
200
  learningsCount: number;
201
201
  stationsCount?: number;
@@ -203,7 +203,8 @@ export interface NodeMetrics {
203
203
  export interface ScopeTreeNode {
204
204
  id: string;
205
205
  name: string;
206
- type: TreeNodeType;
206
+ type?: TreeNodeType;
207
+ scope_type?: TreeNodeType;
207
208
  metrics: NodeMetrics;
208
209
  hasAccess?: boolean;
209
210
  children: ScopeTreeNode[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,YAAY,CAAC;IACjB,mIAAmI;IACnI,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;CAC7D;AAGD,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,aAAa,EAAE,WAAW,EAAE,CAAC;CAC9B,CAAC;AAEF,gDAAgD;AAChD,MAAM,MAAM,QAAQ,GAAG,mBAAmB,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,4DAA4D;IAC5D,SAAS,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kDAAkD;IAClD,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e-llm-studio/instant-learning",
3
- "version": "1.3.0-alpha.260",
3
+ "version": "1.3.0-alpha.262",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),t=require("react"),n=require("../../organisms/TextSection/TextSection.js"),o=require("../../organisms/ScopeSection/ScopeSection.js"),s=require("../../organisms/ConditionSection/ConditionSection.js"),d=require("../../organisms/ConfigSection/ConfigSection.js"),a=require("../../InputDataReasoningCard.js"),l=require("../../_svg/ButtonCognitiveIcon.js");exports.BaseTemplate=function(r){var c,p,g,h,v,u,I,E,m,f,b,S,y,x,C,A,_,j,T,N,w,W,D,L,O,M,q,P,R,V,H,B,K,z=r.state,k=r.handlers,F=r.uiState,G=r.customNodes,J=void 0===G?{}:G,Q=t.useState({}),U=Q[0],X=Q[1],Y=t.useState(new Set),Z=Y[0],$=Y[1],ii=function(e){X(function(t){var n;return i.__assign(i.__assign({},t),((n={})[e]=!t[e],n))})},ei=function(i){var e,t=null===(e=z.fieldCitations)||void 0===e?void 0:e[i];return Array.isArray(t)&&t.length>0?t:z.citations||[]},ti={marginTop:"-17px",position:"relative",zIndex:1},ni=function(i){return!!F.isAiStreaming||(!!F.isReadOnly||!(!F.activeEditId||F.activeEditId.startsWith(i)))};return e.jsxs("div",i.__assign({className:"base-template-container",style:{display:"flex",flexDirection:"column",gap:"16px",width:"100%"}},{children:[J.top&&e.jsx("div",i.__assign({className:"custom-slot-top"},{children:J.top})),e.jsxs("div",i.__assign({className:"template-section"},{children:[e.jsx(n.TextSection,{id:"base-title",title:F.titleLabel||"Title",fieldName:F.titleLabel||"Title",rows:1,placeholder:"Enter a descriptive title",required:!0,value:z.title||"",onChange:k.onTitleChange,readOnly:ni("base-title"),isOpen:U.title,onToggle:function(){return ii("title")},isHighlighted:(null===(c=F.highlights)||void 0===c?void 0:c.get("title"))||!1,showCognitiveIcon:!!(null===(p=z.citation)||void 0===p?void 0:p.title),tooltipDescription:"Why this ".concat(F.titleLabel||"Title","?"),errorMessage:null===(g=F.validationErrors)||void 0===g?void 0:g.title,enableInlineEdit:!0,setSendMessageInChat:F.setSendMessageInChat,activeEditId:null!==(h=F.activeEditId)&&void 0!==h?h:null,setActiveEditId:F.setActiveEditId,pendingEditId:null!==(v=F.pendingEditId)&&void 0!==v?v:null,setPendingEditId:F.setPendingEditId}),(null===(u=z.citation)||void 0===u?void 0:u.title)&&e.jsx("div",i.__assign({style:ti},{children:e.jsx(a.InputDataReasoningCard,{isVisible:U.title,citation:z.citation.title,citations:ei("title"),fieldName:F.titleLabel||"Title",fieldValue:z.title||""})}))]})),J.afterTitle&&e.jsx("div",i.__assign({className:"custom-slot"},{children:J.afterTitle})),F.showScope&&e.jsxs("div",i.__assign({className:"template-section"},{children:[e.jsx(o.ScopeSection,{id:"base-scope",title:F.scopeLabel||"",required:!1,scopeData:z.scopeData||{},onScopeChange:k.onScopeChange,openSections:Z,setOpenSections:$,stationOptions:F.stationOptions||[],tierOptions:F.tierOptions||[],tierLabel:F.tierLabel||"Where should this apply?",stationLabel:F.stationLabel||"Which scope should this belong to?",highlights:(null===(I=F.highlights)||void 0===I?void 0:I.get("scope"))||{},isOpen:U.scope,onToggle:function(){return ii("scope")},showCognitiveIcon:!!(null===(E=z.citation)||void 0===E?void 0:E.scope),cognitiveIcon:e.jsx(l.ButtonCognitiveIcon,{}),tooltipDescription:"Why this Scope?",errorMessage:(null===(m=F.validationErrors)||void 0===m?void 0:m.station)||(null===(f=F.validationErrors)||void 0===f?void 0:f.tiers),stationErrorMessage:null===(b=F.validationErrors)||void 0===b?void 0:b.station,tierErrorMessage:null===(S=F.validationErrors)||void 0===S?void 0:S.tiers,readOnly:ni("base-scope")}),(null===(y=z.citation)||void 0===y?void 0:y.scope)&&e.jsx("div",i.__assign({style:ti},{children:e.jsx(a.InputDataReasoningCard,{isVisible:U.scope,citation:z.citation.scope,citations:ei("scope"),fieldName:"Scope",fieldValue:(null===(C=null===(x=z.scopeData)||void 0===x?void 0:x.tiers)||void 0===C?void 0:C.join(", "))||""})}))]})),J.afterScope&&e.jsx("div",i.__assign({className:"custom-slot"},{children:J.afterScope})),e.jsxs("div",i.__assign({className:"template-section"},{children:[e.jsx(n.TextSection,{id:"base-description",title:F.descriptionLabel||"Description",fieldName:F.descriptionLabel||"Description",rows:3,placeholder:"Explain the behaviour or learning",required:!0,value:z.description||"",onChange:k.onDescriptionChange,readOnly:ni("base-description"),isOpen:U.description,onToggle:function(){return ii("description")},isHighlighted:(null===(A=F.highlights)||void 0===A?void 0:A.get("description"))||!1,showCognitiveIcon:!!(null===(_=z.citation)||void 0===_?void 0:_.description),tooltipDescription:"Why this ".concat(F.descriptionLabel||"Description","?"),errorMessage:null===(j=F.validationErrors)||void 0===j?void 0:j.description,enableInlineEdit:!0,setSendMessageInChat:F.setSendMessageInChat,activeEditId:null!==(T=F.activeEditId)&&void 0!==T?T:null,setActiveEditId:F.setActiveEditId,pendingEditId:null!==(N=F.pendingEditId)&&void 0!==N?N:null,setPendingEditId:F.setPendingEditId}),(null===(w=z.citation)||void 0===w?void 0:w.description)&&e.jsx("div",i.__assign({style:ti},{children:e.jsx(a.InputDataReasoningCard,{isVisible:U.description,citation:z.citation.description,citations:ei("description"),fieldName:F.descriptionLabel||"Description",fieldValue:z.description||""})}))]})),J.afterDescription&&e.jsx("div",i.__assign({className:"custom-slot"},{children:J.afterDescription})),e.jsx("div",i.__assign({className:"template-section"},{children:e.jsx(s.ConditionSection,{id:"condition-wta-base",idPrefix:"condition-wta",title:F.whenToApplyLabel||"When to apply",required:!0,dividerRequired:!0,readOnly:ni("condition-wta"),conditions:z.whenToApplyConditions||[],onAdd:k.onAddWhenToApply,onRemove:function(i,e,t){return k.onRemoveWhenToApply(t)},onEdit:function(i,e,t,n){return k.onEditWhenToApply(t,n)},isHighlighted:(null===(W=F.highlights)||void 0===W?void 0:W.get("wta"))||!1,highlightedIds:F.highlightedIds,tooltipDescription:"Why this Condition?",citations:ei("whenToApply"),bordered:!0,addLabel:"Add ".concat(F.whenToApplyLabel||"When to apply"),isAiStreaming:F.isAiStreaming,errorMessage:(null===(D=F.validationErrors)||void 0===D?void 0:D.whenToApply)||F.conflictReason,index:0,tierKey:"base",activeEditId:null!==(L=F.activeEditId)&&void 0!==L?L:null,setActiveEditId:F.setActiveEditId,pendingEditId:null!==(O=F.pendingEditId)&&void 0!==O?O:null,setPendingEditId:F.setPendingEditId,setSendMessageInChat:F.setSendMessageInChat})})),J.afterWhenToApply&&e.jsx("div",i.__assign({className:"custom-slot"},{children:J.afterWhenToApply})),e.jsx("div",i.__assign({className:"template-section"},{children:e.jsx(s.ConditionSection,{id:"condition-wnta-base",idPrefix:"condition-wnta",title:F.whenNotToApplyLabel||"When NOT to apply",required:!1,dividerRequired:!0,readOnly:ni("condition-wnta"),conditions:z.whenNotToApplyConditions||[],onAdd:k.onAddWhenNotToApply,onRemove:function(i,e,t){return k.onRemoveWhenToApply(t)},onEdit:function(i,e,t,n){return k.onEditWhenNotToApply(t,n)},isHighlighted:(null===(M=F.highlights)||void 0===M?void 0:M.get("wnta"))||!1,highlightedIds:F.highlightedIds,tooltipDescription:"Why this Condition?",citations:ei("whenNotToApply"),bordered:!0,addLabel:"Add ".concat(F.whenNotToApplyLabel||"When NOT to apply"),isAiStreaming:F.isAiStreaming,errorMessage:null===(q=F.validationErrors)||void 0===q?void 0:q.whenNotToApply,index:0,tierKey:"base",activeEditId:null!==(P=F.activeEditId)&&void 0!==P?P:null,setActiveEditId:F.setActiveEditId,pendingEditId:null!==(R=F.pendingEditId)&&void 0!==R?R:null,setPendingEditId:F.setPendingEditId,setSendMessageInChat:F.setSendMessageInChat})})),J.afterWhenNotToApply&&e.jsx("div",i.__assign({className:"custom-slot"},{children:J.afterWhenNotToApply})),F.showConfiguration&&e.jsxs("div",i.__assign({className:"template-section"},{children:[e.jsx(d.ConfigSection,{id:"base-config",title:F.configLabel||"Configuration",required:!1,highlights:(null===(V=F.highlights)||void 0===V?void 0:V.get("config"))||{},bordered:!0,readOnly:ni("base-config"),onConfigChange:function(i,e){var t;return null===(t=k.onConfigChange)||void 0===t?void 0:t.call(k,i,e)},separationItems:F.separationItems||[],toggles:F.toggles||[],index:0,openSections:Z,setOpenSections:$,activeEditId:null!==(H=F.activeEditId)&&void 0!==H?H:null,setActiveEditId:F.setActiveEditId,pendingEditId:null!==(B=F.pendingEditId)&&void 0!==B?B:null,setPendingEditId:F.setPendingEditId,isAiStreaming:F.isAiStreaming,setSendMessageInChat:F.setSendMessageInChat}),(null===(K=z.citation)||void 0===K?void 0:K.config)&&e.jsx("div",i.__assign({style:ti},{children:e.jsx(a.InputDataReasoningCard,{isVisible:U.config,citation:z.citation.config,citations:ei("config"),fieldName:F.configLabel||"Configuration",fieldValue:"Proposed Configuration"})}))]})),J.bottom&&e.jsx("div",i.__assign({className:"custom-slot-bottom"},{children:J.bottom}))]}))};
2
- //# sourceMappingURL=BaseTemplate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseTemplate.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),i=require("lucide-react");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=s(t),o=0,a=function(){return"cond-".concat(Date.now(),"-").concat(++o)},l="#CBD5E1",d="#9B8AFB",c="#7C3AED",g="#FDA29B",u="#344054",p="#1E293B",x="#334155",f="#64748B",h="#94A3B8",_="#98A2B3",y="#F04438",m="#8F2C23",b="#5925DC",j="#475569",v="#FFFFFF",w="#F8FAFC",C="#F1F5F9",F="#F9F5FF",k="#17B26A",S="#F04438",z="#64748B",D="6px",E="8px",A="Inter, sans-serif",B={width:38,height:38,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #D0D5DD",borderRadius:D,cursor:"pointer",background:v,flexShrink:0,transition:"background 0.15s"},R={width:"100%",boxSizing:"border-box",padding:"8px 11.5px",border:"1px solid #D0D5DD",borderRadius:D,fontSize:14,fontWeight:400,lineHeight:"100%",fontFamily:A,outline:"none",color:u,background:v},T={display:"flex",alignItems:"center",gap:4,marginBottom:8,color:u,fontSize:14,fontWeight:500,lineHeight:"130%",fontFamily:A},I={background:v,border:"1px solid ".concat(l),borderRadius:E,padding:16},W=n.jsx("span",e.__assign({style:{color:m,fontSize:12,lineHeight:1,display:"inline-flex",transform:"translateY(0.5px)"}},{children:"*"})),H={exact_match:{label:"Exact Match",bg:"#F0FDF4",border:"#BBF7D0",text:"#166534",dot:"#22C55E"},conflict:{label:"Conflict",bg:"#FEF2F2",border:"#FECACA",text:"#991B1B",dot:"#EF4444"},partial_overlap:{label:"Partial Match",bg:"#FFF7ED",border:"#FED7AA",text:"#92400E",dot:"#F97316"},new_field:{label:"New",bg:"#F5F3FF",border:"#DDD6FE",text:"#5925DC",dot:"#7C3AED"}},L=function(e){return e?Array.isArray(e)?e.filter(Boolean).join("\n"):e:""},M=function(e,n){if(!n&&!e)return"exact_match";if(!n)return"new_field";if(!e)return"new_field";var t=function(e){return e.trim().toLowerCase()};if(t(e)===t(n))return"exact_match";var i=new Set(t(e).split(/\s+/)),s=new Set(t(n).split(/\s+/));return Array.from(i).filter(function(e){return s.has(e)}).length/Math.max(i.size,s.size)>=.45?"partial_overlap":"conflict"},N=function(t){var i=t.relation,s=H[i];return n.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",gap:4,padding:"3px 9px",borderRadius:20,background:s.bg,border:"1px solid ".concat(s.border),fontSize:10,fontWeight:600,color:s.text,fontFamily:A,whiteSpace:"nowrap",flexShrink:0}},{children:[n.jsx("span",{style:{width:5,height:5,borderRadius:"50%",background:s.dot,flexShrink:0}}),s.label]}))},O=r.default.forwardRef(function(t,i){var s=t.label,r=t.value;return n.jsxs("div",e.__assign({ref:i,style:{display:"flex",flexDirection:"column"}},{children:[n.jsx("p",e.__assign({style:{margin:"0 0 5px 0",fontSize:12,color:f,fontFamily:A}},{children:s})),n.jsx("div",e.__assign({style:{flex:1,padding:"9px 12px",borderRadius:E,background:"#FFF3F2",border:"1px solid ".concat("#FECACA"),fontSize:13,lineHeight:"150%",color:r?p:h,fontFamily:A,fontStyle:r?"normal":"italic",wordBreak:"break-word",whiteSpace:"pre-wrap",minHeight:37}},{children:r||"—"}))]}))});O.displayName="FieldCell";var q=function(s){var r=s.formData,o=s.existingData,a=s.onClose,d=s.visible,c=r.whenToApply.map(function(e){return e.text}).filter(Boolean).join("\n"),g=r.whenNotToApply.map(function(e){return e.text}).filter(Boolean).join("\n"),u=L(o.whenToApply),f=L(o.whenNotToApply),h=t.useMemo(function(){return[{label:"Title",proposed:r.name,existing:o.name||"",relation:M(r.name,o.name||"")},{label:"Description",proposed:r.description,existing:o.description||"",relation:M(r.description,o.description||"")},{label:"When to apply",proposed:c,existing:u,relation:M(c,u)},{label:"When NOT to Apply",proposed:g,existing:f,relation:g?M(g,f):f?"new_field":"exact_match"}]},[r.name,r.description,c,g,o.name,o.description,u,f]),_=h.reduce(function(e,n){return e[n.relation]=(e[n.relation]||0)+1,e},{}),y=t.useRef(null),m=t.useRef([]),j=t.useRef([]),w=t.useState([]),C=w[0],F=w[1];m.current=[],j.current=[];var k=t.useCallback(function(){if(y.current){var e=y.current.getBoundingClientRect(),n=[];h.forEach(function(t,i){var s=m.current[i],r=j.current[i];if(s&&r){s.style.height="auto",r.style.height="auto";var o=s.getBoundingClientRect(),a=r.getBoundingClientRect(),l=Math.max(o.height,a.height);s.style.height="".concat(l,"px"),r.style.height="".concat(l,"px");var d=s.getBoundingClientRect(),c=r.getBoundingClientRect(),g=d.top+d.height/2-e.top;n.push({x1:d.right-e.left,y1:g,x2:c.left-e.left,y2:g,relation:t.relation})}}),F(n)}},[h]);return t.useEffect(function(){var e=setTimeout(k,150);window.addEventListener("resize",k);var n=null;return y.current&&(n=new ResizeObserver(function(){window.requestAnimationFrame(function(){return k()})})).observe(y.current),function(){clearTimeout(e),window.removeEventListener("resize",k),n&&n.disconnect()}},[k,d]),n.jsxs(n.Fragment,{children:[n.jsx("div",{onClick:a,style:{position:"absolute",inset:0,background:"rgba(15,23,42,0.18)",zIndex:10,opacity:d?1:0,transition:"opacity 0.25s ease",pointerEvents:d?"auto":"none"}}),n.jsxs("div",e.__assign({style:{position:"absolute",inset:0,background:v,zIndex:11,display:"flex",flexDirection:"column",transform:d?"translateX(0)":"translateX(100%)",transition:"transform 0.28s cubic-bezier(0.4,0,0.2,1)",borderRadius:E,overflow:"hidden"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",borderBottom:"1px solid ".concat(l),flexShrink:0,background:v}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[n.jsx("button",e.__assign({type:"button",onClick:a,style:e.__assign(e.__assign({},B),{width:32,height:32,border:"1px solid ".concat(l),borderRadius:D})},{children:n.jsx(i.ArrowLeft,{size:15,color:x})})),n.jsx("span",e.__assign({style:{fontSize:15,fontWeight:600,color:p,fontFamily:A,letterSpacing:"-0.01em"}},{children:"Category Comparison"}))]})),n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"}},{children:Object.entries(_).map(function(t){var i=t[0],s=t[1];return n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:4,padding:"3px 10px",borderRadius:20,background:H[i].bg,border:"1px solid ".concat(H[i].border),fontSize:11,fontWeight:600,color:H[i].text,fontFamily:A}},{children:[n.jsx("span",{style:{width:5,height:5,borderRadius:"50%",background:H[i].dot}}),s," ",H[i].label]}),i)})}))]})),n.jsx("div",e.__assign({style:{flex:1,overflowY:"auto",padding:16}},{children:n.jsxs("div",e.__assign({ref:y,style:{display:"grid",gridTemplateColumns:"1fr 140px 1fr",alignItems:"start",gap:"0",position:"relative"}},{children:[n.jsx("svg",e.__assign({style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:10}},{children:C.map(function(t,i){var s=(t.x1+t.x2)/2,r=t.y1,o=H[t.relation];return n.jsxs("g",{children:[n.jsx("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:o.border,strokeWidth:"1.5"}),n.jsx("foreignObject",e.__assign({x:s-70,y:r-14,width:"140",height:"28"},{children:n.jsx("div",e.__assign({style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},{children:n.jsx(N,{relation:t.relation})}))}))]},i)})})),n.jsxs("div",e.__assign({style:{border:"1.5px dashed #CBD5E1",borderRadius:10,padding:14,display:"flex",flexDirection:"column",gap:14}},{children:[n.jsx("p",e.__assign({style:{margin:"0 0 2px 0",fontSize:13,fontWeight:600,color:p,fontFamily:A}},{children:"Category You're Creating"})),h.map(function(e,t){return n.jsx(O,{ref:function(e){m.current[t]=e},label:e.label,value:e.proposed},t)})]})),n.jsx("div",{}),n.jsxs("div",e.__assign({style:{border:"1.5px dashed #CBD5E1",borderRadius:10,padding:14,display:"flex",flexDirection:"column",gap:14}},{children:[n.jsxs("p",e.__assign({style:{margin:"0 0 2px 0",fontSize:13,fontWeight:600,color:b,fontFamily:A,display:"flex",alignItems:"center",gap:5}},{children:[n.jsx(i.Sparkles,{size:13,color:b}),"Existing Category"]})),h.map(function(e,t){return n.jsx(O,{ref:function(e){j.current[t]=e},label:e.label,value:e.existing},t)})]}))]}))}))]}))]})},K=function(t){var s=t.condition,r=t.index,o=t.isEditing,a=t.editText,c=t.onEditStart,p=t.onEditChange,x=t.onEditSave,f=t.onEditCancel,_=t.onRemove,y=t.readOnly,m=t.onBlurContainer,b={width:40,height:38,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderRight:"1px solid #D0D5DD",color:j,fontSize:14,fontFamily:A};return o?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12},onBlur:m},{children:[n.jsxs("div",e.__assign({style:{display:"flex",flex:1,alignItems:"center",background:v,border:"1px solid ".concat(d),borderRadius:E,overflow:"hidden"}},{children:[n.jsx("div",e.__assign({style:b},{children:r+1})),n.jsx("input",{type:"text",value:a,onChange:function(e){return p(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Enter"===e.key&&a.trim()?x():"Escape"===e.key&&f()},style:{flex:1,padding:"8px 11.5px",fontSize:14,fontFamily:A,color:u,border:"none",outline:"none",background:"transparent"}})]})),n.jsx("button",e.__assign({type:"button",disabled:!a.trim(),onClick:x,style:e.__assign(e.__assign({},B),{borderRadius:E,opacity:a.trim()?1:.5,cursor:a.trim()?"pointer":"not-allowed",background:a.trim()?v:w})},{children:n.jsx(i.Check,{size:18,color:k})})),n.jsx("button",e.__assign({type:"button",onClick:f,style:e.__assign(e.__assign({},B),{borderRadius:E})},{children:n.jsx(i.X,{size:18,color:S})}))]})):n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",flex:1,alignItems:"center",background:v,border:"1px solid #D0D5DD",borderRadius:E,overflow:"hidden",height:38}},{children:[n.jsx("div",e.__assign({style:e.__assign(e.__assign({},b),{height:"100%"})},{children:r+1})),n.jsx("div",e.__assign({style:{flex:1,padding:"0 11.5px",fontSize:14,fontFamily:A,display:"flex",alignItems:"center",height:"100%"}},{children:s.text?n.jsx("span",e.__assign({style:{color:u}},{children:s.text})):n.jsx("span",e.__assign({style:{color:h}},{children:"Enter condition"}))}))]})),!y&&n.jsxs(n.Fragment,{children:[n.jsx("button",e.__assign({type:"button",onClick:c,style:e.__assign(e.__assign({},B),{border:"1px solid ".concat(l),borderRadius:E})},{children:n.jsx(i.Pencil,{size:16,color:z})})),n.jsx("button",e.__assign({type:"button",onClick:_,style:e.__assign(e.__assign({},B),{border:"1px solid ".concat(g),borderRadius:E})},{children:n.jsx(i.Trash2,{size:16,color:S})}))]})]}))},P=function(t){var s=t.title,r=t.required,o=t.isExpanded,a=t.setIsExpanded,d=t.conditions,c=t.prefix,g=t.editingCondKey,p=t.editingCondText,x=t.setEditingCondKey,_=t.setEditingCondText,m=t.onAdd,j=t.onUpdate,v=t.onRemove,w=t.addLabel,C=t.readOnly,F=t.errorMessage,k=t.style,S=d.length>0;return n.jsxs("div",e.__assign({style:e.__assign({border:"1px solid ".concat(l),borderRadius:E,padding:16},k)},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8,cursor:S?"pointer":"default",userSelect:"none"},onClick:function(){S&&a(function(e){return!e})}},{children:[n.jsxs("label",e.__assign({style:e.__assign(e.__assign({},T),{marginBottom:0,cursor:S?"pointer":"default"})},{children:[r&&W,n.jsx("span",{children:s})]})),n.jsx("button",e.__assign({type:"button",style:{background:"none",border:"none",cursor:"pointer",padding:0,display:"flex",alignItems:"center",transform:o?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s"}},{children:n.jsx(i.ChevronUp,{size:20,color:S?u:h})}))]})),o&&n.jsxs(n.Fragment,{children:[0===d.length&&n.jsx("p",e.__assign({style:{color:f,fontSize:14,fontStyle:"italic",fontWeight:300,fontFamily:A,margin:"0 0 12px 0"}},{children:"No conditions applied"})),n.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:12,marginBottom:12}},{children:d.map(function(e,t){var i="".concat(c,"_").concat(e.id);return n.jsx(K,{condition:e,index:t,isEditing:g===i,editText:p,onEditStart:function(){x(i),_(e.text)},onEditChange:_,onEditSave:function(){p.trim()&&(j(e.id,p),x(null))},onEditCancel:function(){e.text?x(null):v(e.id)},onRemove:function(){return v(e.id)},readOnly:C,onBlurContainer:function(n){return function(e,n,t){if(!e.currentTarget.contains(e.relatedTarget)){var i="".concat(c,"_").concat(n);p.trim()||t?p.trim()&&j(n,p):v(n),g===i&&x(null)}}(n,e.id,e.text)}},e.id)})})),!C&&n.jsxs("button",e.__assign({type:"button",onClick:m,style:{display:"flex",alignItems:"center",gap:7,color:b,fontSize:14,fontWeight:500,fontFamily:A,background:"none",border:"none",cursor:"pointer",padding:0}},{children:[n.jsx(i.Plus,{size:16}),w]})),F&&n.jsx("p",e.__assign({style:{marginTop:8,color:y,fontSize:12,fontFamily:A,margin:"8px 0 0 0"}},{children:F}))]})]}))},U=function(s){var r=s.state,o=s.handlers,d=s.uiState,m=r.formData,w=r.nameLabel,H=void 0===w?"Category Name":w,L=r.namePlaceholder,M=void 0===L?"Enter category name":L,N=o.setFormData,O=d.readOnly,K=void 0!==O&&O,U=d.isAiStreaming,X=void 0!==U&&U;d.setActiveEditId,d.setSendMessageInChat;var Y=d.validationErrors,V=void 0===Y?{}:Y,Z=d.addExampleBtnRef,G=d.comparisonData,J=void 0===G?null:G,Q=d.onComparisonClose,$=t.useState(null),ee=$[0],ne=$[1],te=t.useState(""),ie=te[0],se=te[1],re=t.useState(null),oe=re[0],ae=re[1],le=t.useState(""),de=le[0],ce=le[1],ge=t.useState(!0),ue=ge[0],pe=ge[1],xe=t.useState(!0),fe=xe[0],he=xe[1],_e=t.useState(null),ye=_e[0],me=_e[1],be=t.useState(""),je=be[0],ve=be[1],we=t.useState(""),Ce=we[0],Fe=we[1],ke=t.useState([]),Se=ke[0],ze=ke[1],De=t.useState(!1),Ee=De[0],Ae=De[1],Be=t.useRef(null),Re=t.useState(!1),Te=Re[0],Ie=Re[1],We=t.useRef(X);t.useEffect(function(){J?requestAnimationFrame(function(){return Ae(!0)}):Ae(!1)},[J]),t.useEffect(function(){We.current&&!X&&Te&&Ie(!1),We.current=X},[X,Te]);var He=K,Le=t.useCallback(function(n,t){return N(function(i){var s;return e.__assign(e.__assign({},i),((s={})[n]=t,s))})},[N]),Me=function(n){var t=a();N(function(i){var s;return e.__assign(e.__assign({},i),((s={})[n]=e.__spreadArray(e.__spreadArray([],i[n],!0),[{id:t,text:""}],!1),s))}),ae("".concat("whenToApply"===n?"wta":"wnta","_").concat(t)),ce(""),"whenToApply"!==n||ue||pe(!0),"whenNotToApply"!==n||fe||he(!0)},Ne=function(n,t,i){return N(function(s){var r;return e.__assign(e.__assign({},s),((r={})[n]=s[n].map(function(n){return n.id===t?e.__assign(e.__assign({},n),{text:i}):n}),r))})},Oe=function(n,t){return N(function(i){var s;return e.__assign(e.__assign({},i),((s={})[n]=i[n].filter(function(e){return e.id!==t}),s))})},qe=function(n){return ze(function(t){return t.includes(n)?t.filter(function(e){return e!==n}):e.__spreadArray(e.__spreadArray([],t,!0),[n],!1)})},Ke=t.useCallback(function(){var n=a();N(function(t){return e.__assign(e.__assign({},t),{occurrences:e.__spreadArray(e.__spreadArray([],t.occurrences||[],!0),[{id:n,title:"",description:""}],!1)})}),me(n),ve(""),Fe(""),ze(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[n],!1)})},[N]),Pe=t.useCallback(function(){Ae(!1),setTimeout(function(){null==Q||Q()},280)},[Q]),Ue=function(t){return n.jsxs("button",e.__assign({ref:t?void 0:Z,type:"button",disabled:t,onClick:Ke,style:{display:"flex",alignItems:"center",gap:7,padding:"7px 10.5px",background:"none",border:"none",cursor:t?"not-allowed":"pointer",opacity:t?.5:1,transition:"opacity 0.15s"}},{children:[n.jsx(i.Plus,{size:14,color:b}),n.jsx("span",e.__assign({style:{color:b,fontSize:14,fontWeight:500,fontFamily:A}},{children:"Add example"}))]}))};return n.jsxs("div",e.__assign({style:{flex:1,overflowY:"auto",position:"relative"}},{children:[J&&n.jsx(q,{formData:m,existingData:J,onClose:Pe,visible:Ee}),Te&&X&&n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",color:"#141414",fontSize:13,fontWeight:500,fontStyle:"italic",marginBottom:12,paddingLeft:4,fontFamily:A}},{children:[n.jsx(i.Loader2Icon,{size:16,style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Updating category details..."]})),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},I),{marginBottom:12})},{children:[n.jsxs("div",e.__assign({style:{marginBottom:12}},{children:[n.jsxs("label",e.__assign({style:T},{children:[W,n.jsx("span",{children:H})]})),He&&"name"!==ee?n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12}},{children:n.jsx("div",e.__assign({style:{flex:1,padding:"10px 14px",border:"1px solid #D0D5DD",borderRadius:D,fontSize:14,background:v,minHeight:42,display:"flex",alignItems:"center"}},{children:m.name?n.jsx("span",e.__assign({style:{color:u}},{children:m.name})):n.jsx("span",e.__assign({style:{color:_}},{children:M}))}))})):He&&"name"===ee?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12}},{children:[n.jsx("input",{type:"text",value:ie,onChange:function(e){return se(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Enter"===e.key?(Le("name",ie),ne(null)):"Escape"===e.key&&ne(null)},placeholder:M,style:e.__assign(e.__assign({},R),{flex:1,width:"auto",border:"1px solid ".concat(c)})}),n.jsx("button",e.__assign({type:"button",onClick:function(){Le("name",ie),ne(null)},style:B},{children:n.jsx(i.Check,{size:18,color:k})})),n.jsx("button",e.__assign({type:"button",onClick:function(){return ne(null)},style:B},{children:n.jsx(i.X,{size:18,color:S})}))]})):n.jsx("input",{type:"text",value:m.name,onChange:function(e){return Le("name",e.target.value)},placeholder:M,disabled:X,style:e.__assign(e.__assign({},R),{opacity:X?.6:1,cursor:X?"not-allowed":"text"})}),(null==V?void 0:V.name)&&n.jsx("p",e.__assign({style:{marginTop:4,color:y,fontSize:12,fontFamily:A,margin:"4px 0 0 0"}},{children:V.name}))]})),n.jsxs("div",e.__assign({style:{marginBottom:12}},{children:[n.jsxs("label",e.__assign({style:T},{children:[W,n.jsx("span",{children:"Category Description"})]})),He&&"description"!==ee?n.jsx("div",e.__assign({style:{display:"flex",alignItems:"flex-start",gap:12}},{children:n.jsx("div",e.__assign({style:{flex:1,padding:"12px 14px",border:"1px solid #D0D5DD",borderRadius:D,fontSize:14,background:v,minHeight:80}},{children:m.description?n.jsx("span",e.__assign({style:{color:u,whiteSpace:"pre-wrap"}},{children:m.description})):n.jsx("span",e.__assign({style:{color:_}},{children:"Describe when this category should be applied"}))}))})):He&&"description"===ee?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"flex-start",gap:12}},{children:[n.jsx("textarea",{value:ie,onChange:function(e){return se(e.target.value)},autoFocus:!0,onKeyDown:function(e){"Escape"===e.key&&ne(null)},placeholder:"Enter Description",rows:4,style:e.__assign(e.__assign({},R),{flex:1,width:"auto",border:"1px solid ".concat(c),resize:"none",lineHeight:"140%"})}),n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:8}},{children:[n.jsx("button",e.__assign({type:"button",onClick:function(){Le("description",ie),ne(null)},style:B},{children:n.jsx(i.Check,{size:18,color:k})})),n.jsx("button",e.__assign({type:"button",onClick:function(){return ne(null)},style:B},{children:n.jsx(i.X,{size:18,color:S})}))]}))]})):n.jsx("textarea",{value:m.description,onChange:function(e){return Le("description",e.target.value)},placeholder:"Describe when this category should be applied.",disabled:X,style:e.__assign(e.__assign({},R),{height:60,paddingTop:7,paddingBottom:10.5,border:"1px solid ".concat(l),lineHeight:"140%",resize:"none",boxShadow:"0 1px 2px 0 rgba(18,18,23,0.05)",opacity:X?.6:1,cursor:X?"not-allowed":"text"})}),(null==V?void 0:V.description)&&n.jsx("p",e.__assign({style:{marginTop:4,color:y,fontSize:12,fontFamily:A,margin:"4px 0 0 0"}},{children:V.description}))]})),n.jsx(P,{title:"When to Apply",required:!0,isExpanded:ue,setIsExpanded:pe,conditions:m.whenToApply,prefix:"wta",editingCondKey:oe,editingCondText:de,setEditingCondKey:ae,setEditingCondText:ce,onAdd:function(){return Me("whenToApply")},onUpdate:function(e,n){return Ne("whenToApply",e,n)},onRemove:function(e){return Oe("whenToApply",e)},addLabel:"Add When to Apply",readOnly:X||K,errorMessage:null==V?void 0:V.whenToApply,style:{marginBottom:12}}),n.jsx(P,{title:"When NOT to Apply",required:!1,isExpanded:fe,setIsExpanded:he,conditions:m.whenNotToApply,prefix:"wnta",editingCondKey:oe,editingCondText:de,setEditingCondKey:ae,setEditingCondText:ce,onAdd:function(){return Me("whenNotToApply")},onUpdate:function(e,n){return Ne("whenNotToApply",e,n)},onRemove:function(e){return Oe("whenNotToApply",e)},addLabel:"Add When NOT to Apply",readOnly:X||K,errorMessage:null==V?void 0:V.whenNotToApply})]})),n.jsxs("div",e.__assign({style:e.__assign(e.__assign({},I),{marginTop:12})},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12}},{children:[n.jsxs("div",{children:[n.jsxs("h4",e.__assign({style:{color:p,fontSize:14,fontWeight:500,lineHeight:"120%",letterSpacing:"0.02em",fontFamily:A,margin:"0 0 4px 0"}},{children:["Example (",(m.occurrences||[]).length,")"]})),n.jsx("p",e.__assign({style:{color:f,fontSize:12,fontWeight:300,lineHeight:"120%",letterSpacing:"0.02em",fontFamily:A,margin:0}},{children:"Add real examples to help the system understand this category"}))]}),(m.occurrences||[]).length>0&&!K&&Ue(null!==ye||X)]})),0===(m.occurrences||[]).length?n.jsxs("div",e.__assign({style:{border:"1px solid ".concat(l),borderRadius:E,background:v,padding:"24px 12px 12px",minHeight:181,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center"}},{children:[n.jsx("div",e.__assign({style:{marginBottom:16}},{children:n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 56 56",fill:"none"},{children:[n.jsx("rect",{x:"4",y:"4",width:"48",height:"48",rx:"24",fill:"#F1F5F9"}),n.jsx("rect",{x:"4",y:"4",width:"48",height:"48",rx:"24",stroke:"#F8FAFC",strokeWidth:"8"}),n.jsx("rect",{width:"24",height:"24",transform:"translate(16 16)",fill:"#F1F5F9"}),n.jsx("path",{d:"M25 19.5V18M21.0607 21.0607L20 20M21.0607 29L20 30.0607M29 21.0607L30.0607 20M19.5 25H18M31.8645 32.1896L29.3727 36.817C29.0881 37.3457 28.9457 37.61 28.7745 37.6769C28.6259 37.7349 28.4585 37.7185 28.324 37.6328C28.1689 37.534 28.0806 37.2471 27.9038 36.6733L24.4452 25.4453C24.3008 24.9765 24.2286 24.7421 24.2867 24.5838C24.3373 24.446 24.446 24.3373 24.5838 24.2867C24.7421 24.2286 24.9765 24.3008 25.4452 24.4452L36.6732 27.9038C37.247 28.0806 37.5339 28.169 37.6327 28.324C37.7185 28.4586 37.7348 28.6259 37.6768 28.7745C37.61 28.9458 37.3456 29.0881 36.817 29.3728L32.1896 31.8645C32.111 31.9068 32.0717 31.9279 32.0374 31.9551C32.0068 31.9792 31.9792 32.0068 31.9551 32.0374C31.9279 32.0717 31.9068 32.111 31.8645 32.1896Z",stroke:"#475569",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}))})),n.jsx("p",e.__assign({style:{color:x,fontSize:12,fontWeight:500,lineHeight:"120%",fontFamily:A,margin:"0 0 8px 0"}},{children:"No example added yet"})),n.jsx("p",e.__assign({style:{color:f,fontSize:14,fontWeight:300,lineHeight:"140%",fontFamily:A,margin:"0 0 8px 0",maxWidth:530}},{children:"Add an example to show how this category is used, or generate one using chat."})),!K&&Ue(null!==ye||X)]})):n.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:12}},{children:(m.occurrences||[]).map(function(t,s){var r=Se.includes(t.id);return ye===t.id?n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:12,border:"1px solid ".concat(l),borderRadius:E,background:v,padding:16,boxShadow:"0 1px 3px rgba(0,0,0,0.07)"}},{children:[n.jsxs("div",{children:[n.jsx("label",e.__assign({style:e.__assign(e.__assign({},T),{marginBottom:8})},{children:n.jsx("span",e.__assign({style:{color:x}},{children:"Title/Subject"}))})),n.jsx("input",{type:"text",value:je,onChange:function(e){return ve(e.target.value)},placeholder:"e.g., Follow-up on client feedback from last meeting",style:e.__assign(e.__assign({},R),{border:"1px solid ".concat(l),lineHeight:"140%"})})]}),n.jsxs("div",{children:[n.jsxs("label",e.__assign({style:{display:"flex",alignItems:"center",gap:4,marginBottom:8}},{children:[n.jsx("span",e.__assign({style:{color:x,fontSize:14,fontWeight:500,fontFamily:A}},{children:"Message body"})),W]})),n.jsx("textarea",{ref:function(e){e&&ye===t.id&&!Be.current&&(Be.current=e),e&&(e.style.height="auto",e.style.height="".concat(e.scrollHeight,"px"))},value:Ce,onChange:function(e){Fe(e.target.value),e.target.style.height="auto",e.target.style.height="".concat(e.target.scrollHeight,"px")},placeholder:"e.g., Hi, here's the latest update on the project. Let us know if you have any questions.",rows:1,style:e.__assign(e.__assign({},R),{border:"1px solid ".concat(l),overflow:"hidden",minHeight:60,lineHeight:"140%",resize:"none"})})]}),n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"flex-end",gap:12,marginTop:4}},{children:[n.jsx("button",e.__assign({type:"button",onClick:function(){t.title||t.description||N(function(n){return e.__assign(e.__assign({},n),{occurrences:(n.occurrences||[]).filter(function(e){return e.id!==t.id})})}),me(null),Be.current=null},style:{padding:"6px 12px",color:j,fontSize:14,fontWeight:500,lineHeight:"140%",fontFamily:A,background:"none",border:"none",cursor:"pointer",borderRadius:D}},{children:"Cancel"})),n.jsx("button",e.__assign({type:"button",disabled:!Ce.trim(),onClick:function(){var n;Ce.trim()&&(n=t.id,N(function(t){return e.__assign(e.__assign({},t),{occurrences:t.occurrences.map(function(t){return t.id===n?e.__assign(e.__assign({},t),{title:je,description:Ce}):t})})}),me(null),Be.current=null,ze(function(e){return e.filter(function(e){return e!==t.id})}))},style:{padding:"6px 12px",borderRadius:D,fontSize:14,fontWeight:500,lineHeight:"140%",fontFamily:A,cursor:Ce.trim()?"pointer":"not-allowed",background:Ce.trim()?F:v,border:"1px solid ".concat(Ce.trim()?F:"#E2E8F0"),color:Ce.trim()?b:h,transition:"background 0.15s"}},{children:"Save"}))]}))]}),t.id):n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",border:"1px solid #E2E8F0",borderRadius:E,background:v,overflow:"hidden",boxShadow:"0 1px 3px rgba(0,0,0,0.07)"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:12,padding:12}},{children:[n.jsx("div",e.__assign({style:{width:20,height:20,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",background:C,borderRadius:D,color:j,fontSize:10,fontWeight:500,fontFamily:A}},{children:s+1})),n.jsx("div",e.__assign({style:{flex:1,fontSize:15,fontWeight:500,lineHeight:"140%",fontFamily:A,color:x,wordBreak:"break-word"}},{children:t.title||n.jsx("span",e.__assign({style:{color:h,fontWeight:400,fontSize:14}},{children:"Untitled example"}))})),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:8,flexShrink:0}},{children:[!K&&n.jsxs(n.Fragment,{children:[n.jsx("button",e.__assign({type:"button",disabled:null!==ye||X,onClick:function(){me(t.id),ve(t.title),Fe(t.description),r||qe(t.id)},style:e.__assign(e.__assign({},B),{width:36,height:36,border:"1px solid #E2E8F0",borderRadius:D,opacity:null!==ye||X?.5:1,cursor:null!==ye||X?"not-allowed":"pointer"})},{children:n.jsx(i.Pencil,{size:16,color:z})})),n.jsx("button",e.__assign({type:"button",disabled:null!==ye||X,onClick:function(){return N(function(n){return e.__assign(e.__assign({},n),{occurrences:(n.occurrences||[]).filter(function(e){return e.id!==t.id})})})},style:e.__assign(e.__assign({},B),{width:36,height:36,border:"1px solid ".concat(g),borderRadius:D,opacity:null!==ye||X?.5:1,cursor:null!==ye||X?"not-allowed":"pointer"})},{children:n.jsx(i.Trash2,{size:16,color:S})}))]}),n.jsx("button",e.__assign({type:"button",onClick:function(){return qe(t.id)},style:e.__assign(e.__assign({},B),{width:36,height:36,border:"none",background:"transparent"})},{children:r?n.jsx(i.ChevronUp,{size:20,color:z}):n.jsx(i.ChevronDown,{size:20,color:z})}))]}))]})),r&&n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",padding:"4px 12px 16px"}},{children:[n.jsxs("div",e.__assign({style:{marginBottom:12}},{children:[n.jsx("p",e.__assign({style:{color:f,fontSize:13,lineHeight:"140%",fontFamily:A,margin:"0 0 4px 0"}},{children:"Title/Subject:"})),n.jsx("p",e.__assign({style:{color:p,fontSize:14,fontWeight:300,lineHeight:"150%",fontFamily:A,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0}},{children:t.title||n.jsx("span",e.__assign({style:{color:h,fontStyle:"italic"}},{children:"—"}))}))]})),n.jsxs("div",{children:[n.jsx("p",e.__assign({style:{color:f,fontSize:13,lineHeight:"140%",fontFamily:A,margin:"0 0 4px 0"}},{children:"Message body:"})),n.jsx("p",e.__assign({style:{color:p,fontSize:14,fontWeight:300,lineHeight:"150%",fontFamily:A,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0}},{children:t.description}))]})]}))]}),t.id)})}))]}))]}))};exports.CreateCategory=U,exports.default=U;
2
- //# sourceMappingURL=CreateCategory.js.map