@e-llm-studio/instant-learning 1.3.0-alpha.169 → 1.3.0-alpha.170

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 (145) hide show
  1. package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.js +1 -1
  2. package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.js +1 -1
  3. package/dist/cjs/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +1 -1
  4. package/dist/cjs/features/IL-marketplace/constants.js +1 -1
  5. package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.js +1 -1
  6. package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.js +1 -1
  7. package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.js +1 -1
  8. package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js +1 -1
  9. package/dist/cjs/features/LSCGuidelinesCart/LearningManagementWrapper.js +1 -1
  10. package/dist/cjs/features/LSCGuidelinesCart/api.js +1 -1
  11. package/dist/cjs/features/LSCGuidelinesCart/endpoints.js +1 -1
  12. package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js +2 -0
  13. package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js.map +1 -0
  14. package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +2 -0
  15. package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +1 -0
  16. package/dist/cjs/features/LearningManagement/utils/resizeObserverErrorGuard.js +2 -0
  17. package/dist/cjs/features/LearningManagement/utils/resizeObserverErrorGuard.js.map +1 -0
  18. package/dist/cjs/index.js +1 -1
  19. package/dist/cjs/node_modules/@e-llm-studio/audit-log/dist/styles.css.js +2 -0
  20. package/dist/cjs/node_modules/@e-llm-studio/audit-log/dist/styles.css.js.map +1 -0
  21. package/dist/cjs/schema-driven/SchemaRenderer.js +2 -0
  22. package/dist/cjs/schema-driven/SchemaRenderer.js.map +1 -0
  23. package/dist/cjs/schema-driven/adapters/ConditionSectionAdapter.js +2 -0
  24. package/dist/cjs/schema-driven/adapters/ConditionSectionAdapter.js.map +1 -0
  25. package/dist/cjs/schema-driven/adapters/ConfigSectionAdapter.js +2 -0
  26. package/dist/cjs/schema-driven/adapters/ConfigSectionAdapter.js.map +1 -0
  27. package/dist/cjs/schema-driven/adapters/GlobalSetupAccordionAdapter.js +2 -0
  28. package/dist/cjs/schema-driven/adapters/GlobalSetupAccordionAdapter.js.map +1 -0
  29. package/dist/cjs/schema-driven/adapters/PromptTextEditorAdapter.js +2 -0
  30. package/dist/cjs/schema-driven/adapters/PromptTextEditorAdapter.js.map +1 -0
  31. package/dist/cjs/schema-driven/adapters/ScopeSectionAdapter.js +2 -0
  32. package/dist/cjs/schema-driven/adapters/ScopeSectionAdapter.js.map +1 -0
  33. package/dist/cjs/schema-driven/adapters/TextInputAdapter.js +2 -0
  34. package/dist/cjs/schema-driven/adapters/TextInputAdapter.js.map +1 -0
  35. package/dist/cjs/schema-driven/adapters/VariantListWrapperAdapter.js +2 -0
  36. package/dist/cjs/schema-driven/adapters/VariantListWrapperAdapter.js.map +1 -0
  37. package/dist/cjs/schema-driven/demoSchema.js +2 -0
  38. package/dist/cjs/schema-driven/demoSchema.js.map +1 -0
  39. package/dist/cjs/schema-driven/types.js +2 -0
  40. package/dist/cjs/schema-driven/types.js.map +1 -0
  41. package/dist/features/IL-marketplace/components/GuidelineLibraryCard.js +1 -1
  42. package/dist/features/IL-marketplace/components/GuidelineStatusChip.js +1 -1
  43. package/dist/features/IL-marketplace/components/GuidelineStatusChip.module.css.js +1 -1
  44. package/dist/features/IL-marketplace/constants.js +1 -1
  45. package/dist/features/LSCGuidelinesCart/Cart/Cart.js +1 -1
  46. package/dist/features/LSCGuidelinesCart/GuidelineCard.js +1 -1
  47. package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.js +1 -1
  48. package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js +1 -1
  49. package/dist/features/LSCGuidelinesCart/LearningManagementWrapper.js +1 -1
  50. package/dist/features/LSCGuidelinesCart/api.js +1 -1
  51. package/dist/features/LSCGuidelinesCart/endpoints.js +1 -1
  52. package/dist/features/LearningManagement/assets/Search-result(add new).svg.js +2 -0
  53. package/dist/features/LearningManagement/assets/Search-result(add new).svg.js.map +1 -0
  54. package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +2 -0
  55. package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +1 -0
  56. package/dist/features/LearningManagement/utils/resizeObserverErrorGuard.js +2 -0
  57. package/dist/features/LearningManagement/utils/resizeObserverErrorGuard.js.map +1 -0
  58. package/dist/index.js +1 -1
  59. package/dist/node_modules/@e-llm-studio/audit-log/dist/styles.css.js +2 -0
  60. package/dist/node_modules/@e-llm-studio/audit-log/dist/styles.css.js.map +1 -0
  61. package/dist/schema-driven/SchemaRenderer.js +2 -0
  62. package/dist/schema-driven/SchemaRenderer.js.map +1 -0
  63. package/dist/schema-driven/adapters/ConditionSectionAdapter.js +2 -0
  64. package/dist/schema-driven/adapters/ConditionSectionAdapter.js.map +1 -0
  65. package/dist/schema-driven/adapters/ConfigSectionAdapter.js +2 -0
  66. package/dist/schema-driven/adapters/ConfigSectionAdapter.js.map +1 -0
  67. package/dist/schema-driven/adapters/GlobalSetupAccordionAdapter.js +2 -0
  68. package/dist/schema-driven/adapters/GlobalSetupAccordionAdapter.js.map +1 -0
  69. package/dist/schema-driven/adapters/PromptTextEditorAdapter.js +2 -0
  70. package/dist/schema-driven/adapters/PromptTextEditorAdapter.js.map +1 -0
  71. package/dist/schema-driven/adapters/ScopeSectionAdapter.js +2 -0
  72. package/dist/schema-driven/adapters/ScopeSectionAdapter.js.map +1 -0
  73. package/dist/schema-driven/adapters/TextInputAdapter.js +2 -0
  74. package/dist/schema-driven/adapters/TextInputAdapter.js.map +1 -0
  75. package/dist/schema-driven/adapters/VariantListWrapperAdapter.js +2 -0
  76. package/dist/schema-driven/adapters/VariantListWrapperAdapter.js.map +1 -0
  77. package/dist/schema-driven/demoSchema.js +2 -0
  78. package/dist/schema-driven/demoSchema.js.map +1 -0
  79. package/dist/schema-driven/types.js +2 -0
  80. package/dist/schema-driven/types.js.map +1 -0
  81. package/dist/types/src/ILMarketplaceMockTest.d.ts.map +1 -1
  82. package/dist/types/src/ILMarketplaceTest.d.ts +3 -0
  83. package/dist/types/src/ILMarketplaceTest.d.ts.map +1 -0
  84. package/dist/types/src/ILMarketplaceWrapper.d.ts +3 -3
  85. package/dist/types/src/features/IL-marketplace/components/GuidelineLibrary.d.ts +1 -1
  86. package/dist/types/src/features/IL-marketplace/components/GuidelineLibrary.d.ts.map +1 -1
  87. package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts +1 -1
  88. package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts.map +1 -1
  89. package/dist/types/src/features/IL-marketplace/components/GuidelineStatusChip.d.ts.map +1 -1
  90. package/dist/types/src/features/IL-marketplace/constants.d.ts +0 -4
  91. package/dist/types/src/features/IL-marketplace/constants.d.ts.map +1 -1
  92. package/dist/types/src/features/IL-marketplace/types.d.ts +6 -4
  93. package/dist/types/src/features/IL-marketplace/types.d.ts.map +1 -1
  94. package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.d.ts +1 -1
  95. package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.d.ts.map +1 -1
  96. package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.d.ts +1 -6
  97. package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.d.ts.map +1 -1
  98. package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.d.ts.map +1 -1
  99. package/dist/types/src/features/LSCGuidelinesCart/LearningManagementWrapper.d.ts +1 -6
  100. package/dist/types/src/features/LSCGuidelinesCart/LearningManagementWrapper.d.ts.map +1 -1
  101. package/dist/types/src/features/LSCGuidelinesCart/api.d.ts +0 -1
  102. package/dist/types/src/features/LSCGuidelinesCart/api.d.ts.map +1 -1
  103. package/dist/types/src/features/LSCGuidelinesCart/endpoints.d.ts +0 -1
  104. package/dist/types/src/features/LSCGuidelinesCart/endpoints.d.ts.map +1 -1
  105. package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts +12 -0
  106. package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts.map +1 -0
  107. package/dist/types/src/features/LearningManagement/utils/resizeObserverErrorGuard.d.ts +2 -0
  108. package/dist/types/src/features/LearningManagement/utils/resizeObserverErrorGuard.d.ts.map +1 -0
  109. package/dist/types/src/index.d.ts +0 -1
  110. package/dist/types/src/index.d.ts.map +1 -1
  111. package/dist/types/src/schema-driven/SchemaRenderer.d.ts +21 -0
  112. package/dist/types/src/schema-driven/SchemaRenderer.d.ts.map +1 -0
  113. package/dist/types/src/schema-driven/adapters/ConditionSectionAdapter.d.ts +11 -0
  114. package/dist/types/src/schema-driven/adapters/ConditionSectionAdapter.d.ts.map +1 -0
  115. package/dist/types/src/schema-driven/adapters/ConfigSectionAdapter.d.ts +13 -0
  116. package/dist/types/src/schema-driven/adapters/ConfigSectionAdapter.d.ts.map +1 -0
  117. package/dist/types/src/schema-driven/adapters/GlobalSetupAccordionAdapter.d.ts +5 -0
  118. package/dist/types/src/schema-driven/adapters/GlobalSetupAccordionAdapter.d.ts.map +1 -0
  119. package/dist/types/src/schema-driven/adapters/PromptTextEditorAdapter.d.ts +13 -0
  120. package/dist/types/src/schema-driven/adapters/PromptTextEditorAdapter.d.ts.map +1 -0
  121. package/dist/types/src/schema-driven/adapters/ScopeSectionAdapter.d.ts +5 -0
  122. package/dist/types/src/schema-driven/adapters/ScopeSectionAdapter.d.ts.map +1 -0
  123. package/dist/types/src/schema-driven/adapters/TextInputAdapter.d.ts +18 -0
  124. package/dist/types/src/schema-driven/adapters/TextInputAdapter.d.ts.map +1 -0
  125. package/dist/types/src/schema-driven/adapters/VariantListWrapperAdapter.d.ts +17 -0
  126. package/dist/types/src/schema-driven/adapters/VariantListWrapperAdapter.d.ts.map +1 -0
  127. package/package.json +1 -1
  128. package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryContent.js +0 -2
  129. package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryContent.js.map +0 -1
  130. package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryTab.js +0 -2
  131. package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryTab.js.map +0 -1
  132. package/dist/cjs/features/LSCGuidelinesCart/transformSelectedGuidelineData.js +0 -2
  133. package/dist/cjs/features/LSCGuidelinesCart/transformSelectedGuidelineData.js.map +0 -1
  134. package/dist/features/IL-marketplace/components/GuidelineLibraryContent.js +0 -2
  135. package/dist/features/IL-marketplace/components/GuidelineLibraryContent.js.map +0 -1
  136. package/dist/features/IL-marketplace/components/GuidelineLibraryTab.js +0 -2
  137. package/dist/features/IL-marketplace/components/GuidelineLibraryTab.js.map +0 -1
  138. package/dist/features/LSCGuidelinesCart/transformSelectedGuidelineData.js +0 -2
  139. package/dist/features/LSCGuidelinesCart/transformSelectedGuidelineData.js.map +0 -1
  140. package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryContent.d.ts +0 -73
  141. package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryContent.d.ts.map +0 -1
  142. package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryTab.d.ts +0 -26
  143. package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryTab.d.ts.map +0 -1
  144. package/dist/types/src/features/LSCGuidelinesCart/transformSelectedGuidelineData.d.ts +0 -18
  145. package/dist/types/src/features/LSCGuidelinesCart/transformSelectedGuidelineData.d.ts.map +0 -1
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),r=require("react"),t=require("../../features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js"),a=require("../../features/IL-OTJ/_components/AccordianSection.js"),n=require("../types.js"),l=require("../SchemaRenderer.js");exports.default=function(s){var d,o,u,c,v=s.schema,p=r.useContext(n.FormContext),f=p.state,x=p.handlers,_=p.uiState,m=r.useState(null),h=m[0],g=m[1];if(!f)return null;var j=(null===(u=null===(o=null===(d=f.scopeData)||void 0===d?void 0:d.tiers)||void 0===o?void 0:o[0])||void 0===u?void 0:u.toLowerCase().replace(/ /g,"_"))||"tier_1",y=(null===(c=f.variantsByTier)||void 0===c?void 0:c[j])||[];return i.jsx(t.VariantListWrapper,e.__assign({onAddVariant:function(){var e;return null===(e=x.addNewVariant)||void 0===e?void 0:e.call(x,j)},isDisabled:null==_?void 0:_.isAiStreaming,showAddVariantBtn:"Edit"!==(null==_?void 0:_.usedFor)},{children:y.map(function(r,t){var s="".concat(j,"-variant-").concat(t),d=r.variantType||"default",o="default"===d||"default_variant"===d;return i.jsx("div",e.__assign({style:{width:"100%"}},{children:i.jsx(a.default,e.__assign({title:{type:o?"default":"variant",label:d,number:t+1,isNewVariant:!0===r.is_variant,isDefault:r.isDefault,isModified:r.isModified},defaultOpen:!0,expanded:h===s||(null==_?void 0:_.activeVariantAccordionIndex)===t,onToggle:function(){var e,i=h===s;g(i?null:s),null===(e=null==_?void 0:_.setActiveVariantAccordionIndex)||void 0===e||e.call(_,i?null:t)},variant:"rule-behavior",footerData:{ruleTitle:d,description:r.ruleDescription||""},readOnly:r.isReadOnly||(null==_?void 0:_.isAiStreaming)},{children:i.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:i.jsx(n.FormContext.Provider,e.__assign({value:{state:f,handlers:x,uiState:_,tierKey:j,variantIndex:t}},{children:i.jsx(l.SchemaPropertyList,{properties:v.properties})}))}))}))}),s)})}))};
2
+ //# sourceMappingURL=VariantListWrapperAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VariantListWrapperAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.DEMO_LEARNING_METADATA_COMPONENTS={type:"object",title:"RHS FORM",properties:{section_1:{type:"object",title:"Configure your IL",ui_position:1,bpa_ui_component:"Accordion",default_open:!0,properties:{ruleTitle:{type:"string",title:"Learning Title",placeholder:"Enter a short, descriptive title for the learning",ui_position:1,bpa_ui_component:"TextInput",data_key:"global.ruleTitle",core_field:!0,ai_generated:!0,read_only:!1,hidden:!1,tooltip:"Why this Title?"},scopeData:{type:"object",title:"Scope",ui_position:2,bpa_ui_component:"ScopeSection",data_key:"global.scopeData",core_field:!0,ai_generated:!0,read_only:!1,hidden:!1}}},section_2:{type:"object",title:"Variants",ui_position:2,bpa_ui_component:"Accordion",default_open:!0,properties:{variantList:{type:"array",title:"Variants",ui_position:1,bpa_ui_component:"VariantListWrapper",is_repeatable_variant:!0,properties:{ruleDescription:{type:"string",title:"Learning Explanation",placeholder:"Explain the learning behaviour",ui_position:1,bpa_ui_component:"TextInput",data_key:"ruleDescription",core_field:!0,ai_generated:!0,read_only:!1,hidden:!1},instructionPrompt:{type:"string",title:"Instruction Prompt",ui_position:2,bpa_ui_component:"PromptTextEditor",data_key:"instructionPrompt",core_field:!1,ai_generated:!0,read_only:!1,hidden:!1},whenToApply:{type:"array",title:"When to apply",ui_position:3,bpa_ui_component:"ConditionSection",data_key:"wta",core_field:!0,ai_generated:!0,read_only:!1,hidden:!1},whenNotToApply:{type:"array",title:"When NOT to apply",ui_position:4,bpa_ui_component:"ConditionSection",data_key:"wnta",core_field:!1,ai_generated:!0,read_only:!1,hidden:!1},configurations:{type:"object",title:"Advanced Settings",ui_position:5,bpa_ui_component:"ConfigSection",data_key:"configData",core_field:!1,ai_generated:!0,read_only:!1,hidden:!1,properties:{is_default:{type:"boolean",title:"Default Variant",ui_position:1,data_key:"is_default_enabled",hidden:!1},order_separation_advertisers:{type:"array",title:"Order Separation Advertisers",ui_position:2,data_key:"order_rules",hidden:!0}}}}}}}}};
2
+ //# sourceMappingURL=demoSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"demoSchema.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react")).default.createContext(null);exports.FormContext=t;
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{__assign as e,__spreadArray as t,__awaiter as l,__generator as i}from"tslib";import{jsx as n,jsxs as r,Fragment as a}from"react/jsx-runtime";import{useRef as o,useState as s,useEffect as c}from"react";import{Check as d,Plus as u,Share as v,Share2 as m,ChevronDown as h,EllipsisVertical as p,Heart as b,Eye as y}from"lucide-react";import f from"./GuidelineLibraryCard.module.css.js";import{STATUS_ACTION_MODE_NAME as C,CONFIGURABLE_GUIDELINE_STATUSES as N}from"../constants.js";import{getGuidelineId as w,getGuidelineTitle as g,getGuidelineDisplayDescription as L,getGuidelineDate as B,isInstantLearningGuideline as k,cx as D}from"../utils.js";import{GuidelineIconButton as S}from"./GuidelineIconButton.js";import{createGuidelineCardMenuItems as T,GuidelineCardMenu as W}from"./GuidelineCardMenu.js";import{GuidelineConfirmDialog as A}from"./GuidelineConfirmDialog.js";import{GuidelineStatusChip as I}from"./GuidelineStatusChip.js";function P(P){var _,j,G,x,O,F,M,H,V,E,R=this,U=P.guideline,q=P.isSelected,z=P.addToCartLabel,J=P.addedToCartLabel,K=P.selectLabel,Q=void 0===K?"Select":K,X=P.selectedLabel,Y=void 0===X?"Selected":X,Z=P.onToggle,$=P.onPreview,ee=P.onExplore;P.onEdit;var te=P.onDuplicate,le=P.onDelete;P.hideEditOption,P.hideDuplicateOption;var ie=P.hideDeleteOption,ne=void 0!==ie&&ie;P.editOptionLabel,P.duplicateOptionLabel;var re=P.deleteOptionLabel,ae=void 0===re?"Delete":re,oe=P.duplicateConfirmTitle,se=void 0===oe?"Duplicate Guideline":oe,ce=P.duplicateConfirmDescription,de=P.duplicateConfirmLabel,ue=void 0===de?"Duplicate":de,ve=P.deleteConfirmTitle,me=void 0===ve?"Delete Guideline":ve,he=P.deleteConfirmDescription,pe=P.deleteConfirmLabel,be=void 0===pe?"Delete":pe,ye=P.classNames,fe=P.styles,Ce=P.customIcons,Ne=P.subTitleLayout,we=P.instantLearning,ge=P.formatAddedOnLabel;P.fetchWishlistStatus;var Le=P.onWishlistToggle,Be=P.onVersionSelect,ke=P.isILMarketplace,De=void 0!==ke&&ke,Se=P.handleViewButtonCallback,Te=P.handlePreviewButtonCallback,We=P.statusActions,Ae=w(U),Ie=g(U),Pe=L(U),_e=ge(B(U)),je=null===(_=U.created_by)||void 0===_?void 0:_.trim(),Ge=[je?"Created by ".concat(je):"",_e].filter(Boolean).join(" • "),xe=new Date(B(U)||Date.now()),Oe="template"===Ne,Fe=xe.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),Me=xe.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}),He="".concat(Fe," at ").concat(Me),Ve=[je?"Created by ".concat(je):"",He].filter(Boolean).join(" • "),Ee=null!==(G=null!==(j=U.content_type_title)&&void 0!==j?j:U.category)&&void 0!==G?G:"Requirement AI Template",Re=k(U),Ue=!0===U.is_legacy,qe=U.status,ze=q?null!==(x=null==Ce?void 0:Ce.selectedIcon)&&void 0!==x?x:n(d,{className:"h-4 w-4 flex-shrink-0",strokeWidth:2.6}):null!==(O=null==Ce?void 0:Ce.unselectedIcon)&&void 0!==O?O:n(u,{className:"h-4 w-4 flex-shrink-0",strokeWidth:2.6}),Je=null!==(F=null==Ce?void 0:Ce.shareIcon)&&void 0!==F?F:n(v,{className:"h-5 w-5",strokeWidth:2.2}),Ke=Re?Q:z,Qe=Re?Y:J,Xe=(null==We?void 0:We.modeName)===C,Ye=N.includes((null!=qe?qe:"").trim().toLowerCase()),Ze=Xe?Ye?null!==(M=null==We?void 0:We.configureLabel)&&void 0!==M?M:"Configure":null!==(H=null==We?void 0:We.testLabel)&&void 0!==H?H:"Test Template":q?Qe:Ke,$e=Re?U.topic_name:void 0,et=null===(V=U.application_mapping_ids)||void 0===V?void 0:V[0],tt=null!==(E=U.version_list)&&void 0!==E?E:[],lt=U.version,it=De&&tt.length>0,nt=o(null),rt=s(!1),at=rt[0],ot=rt[1],st=s(!1),ct=st[0],dt=st[1],ut=s(!1),vt=ut[0],mt=ut[1],ht=s(!1),pt=ht[0],bt=ht[1],yt=s(!1),ft=yt[0],Ct=yt[1],Nt=s(!1);Nt[0];var wt=Nt[1],gt=s(!!U.is_wishlisted),Lt=gt[0],Bt=gt[1],kt=s(!1),Dt=kt[0],St=kt[1],Tt=null!=ce?ce:'Are you sure you want to duplicate "'.concat(Ie,'"? A copy will be created with "(1)" appended to the title.'),Wt=null!=he?he:'Are you sure you want to delete "'.concat(Ie,'"? This action cannot be undone.');c(function(){Bt(!!U.is_wishlisted)},[U.is_wishlisted]);var At=function(){De&&Te?Te(U):Re&&ee?ee(U):$(U)},It=function(e){var t,l;Xe?Ye?null===(t=null==We?void 0:We.onConfigure)||void 0===t||t.call(We,U):null===(l=null==We?void 0:We.onTest)||void 0===l||l.call(We,U):De&&Se?Se(U):Z(e)},Pt=T({onDelete:function(){return bt(!0)},deleteLabel:ae,hideDelete:ne||!le}),_t=Pt.some(function(e){return!e.hidden});return r(a,{children:[r("article",e({onClick:function(e){e.target.closest('button, a, input, select, textarea, [role="button"]')||At()},className:D(f.libraryCard,null==ye?void 0:ye.libraryCard),style:null==fe?void 0:fe.libraryCard},{children:[r("div",e({className:D(f.libraryCardHeader,null==ye?void 0:ye.libraryCardHeader),style:null==fe?void 0:fe.libraryCardHeader},{children:[r("div",e({className:f.libraryCardHeaderContent},{children:[r("div",e({className:f.libraryCardTitleWrapper},{children:[Ue&&n("span",e({className:f.legacyBadge},{children:"Legacy"})),n("h3",e({className:D(f.libraryCardTitle,null==ye?void 0:ye.libraryCardTitle),style:null==fe?void 0:fe.libraryCardTitle,title:Ie},{children:Ie})),Re&&n(I,{status:qe})]})),"template"===Ne?n("p",e({className:D(f.libraryCardDate,null==ye?void 0:ye.libraryCardDate),style:null==fe?void 0:fe.libraryCardDate,title:Ve},{children:Ve})):Ge?n("p",e({className:D(f.libraryCardDate,null==ye?void 0:ye.libraryCardDate),style:null==fe?void 0:fe.libraryCardDate,title:Ge},{children:Ge})):null]})),r("div",e({className:D(f.libraryCardActions,null==ye?void 0:ye.libraryCardActions),style:null==fe?void 0:fe.libraryCardActions},{children:[Re&&!Oe&&!De&&n(S,e({slot:"shareGuideline",label:"Share ".concat(Ie),title:"Share",onClick:function(){return wt(!0)},classNames:ye,styles:fe},{children:n(m,{className:f.shareIcon,strokeWidth:2.2})})),it&&r("div",e({className:f.versionSelectWrapper},{children:[n("select",e({value:lt,disabled:ct,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t;e.stopPropagation(),t=Number(e.target.value),l(R,void 0,void 0,function(){var e;return i(this,function(l){switch(l.label){case 0:if(!Be||t===lt)return[2];dt(!0),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,Be(U,t)];case 2:return l.sent(),[3,5];case 3:return e=l.sent(),console.error("Version switch failed:",e),[3,5];case 4:return dt(!1),[7];case 5:return[2]}})})},className:f.versionSelect,"aria-label":"Select version for ".concat(Ie),title:"Select version"},{children:t([],tt,!0).sort(function(e,t){return t-e}).map(function(t){return r("option",e({value:t},{children:["v",t]}),t)})})),n(h,{className:f.versionSelectChevron,strokeWidth:2.2})]})),r("div",e({className:"relative"},{children:[n(S,e({slot:"libraryCardMoreButton",label:"More options for ".concat(Ie),title:"More options",onClick:function(){return _t?ot(function(e){return!e}):void 0},classNames:ye,styles:fe,ref:nt},{children:n(p,{className:f.moreIcon,strokeWidth:2.2})})),_t&&n(W,{open:at,onClose:function(){return ot(!1)},anchorRef:nt,items:Pt,classNames:ye,styles:fe})]}))]}))]})),n("p",e({className:D(f.libraryCardDescription,null==ye?void 0:ye.libraryCardDescription),style:null==fe?void 0:fe.libraryCardDescription,title:Pe},{children:Pe})),Oe&&r("p",e({className:f.contentTypeLabel},{children:["Content Type :"," ",n("span",e({className:f.contentTypeLabelValue},{children:Ee}))]})),$e&&r("p",e({className:f.topicLabel},{children:[n("span",e({className:"flex-shrink-0"},{children:"Topic:"})),n("span",e({className:f.topicLabelBadge},{children:$e}))]})),r("div",e({className:D(f.libraryCardFooter,null==ye?void 0:ye.libraryCardFooter),style:null==fe?void 0:fe.libraryCardFooter},Re?{children:[r("div",e({className:f.libraryCardFooterActions},{children:[!Ue&&n("button",e({type:"button",onClick:function(e){return l(R,void 0,void 0,function(){var t,l;return i(this,function(i){switch(i.label){case 0:if(e.stopPropagation(),!Le||!(null==we?void 0:we.token)||!et)return[2];t=!Lt,St(!0),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,Le(et,t,we.token)];case 2:return i.sent(),Bt(t),[3,5];case 3:return l=i.sent(),console.error("Wishlist operation failed:",l),[3,5];case 4:return St(!1),[7];case 5:return[2]}})})},disabled:Dt,className:D(f.wishlistButton,Lt?f.wishlistButtonWishlisted:f.wishlistButtonNotWishlisted,Dt&&f.wishlistButtonDisabled),"aria-label":Lt?"Remove ".concat(Ie," from wishlist"):"Add ".concat(Ie," to wishlist")},{children:n(b,{className:f.wishlistIcon,fill:Lt?"currentColor":"none",strokeWidth:2.2})})),n("button",e({type:"button",onClick:At,className:f.previewButton,"aria-label":"Preview ".concat(Ie),title:"Preview"},{children:n(y,{className:f.previewIcon,strokeWidth:2.2})})),Oe&&!De&&n("button",e({type:"button",onClick:function(e){e.stopPropagation(),wt(!0)},className:f.previewButton,"aria-label":"Share ".concat(Ie),title:"Share"},{children:Je}))]})),r("button",e({type:"button",onClick:function(){return It(Ae)},"aria-pressed":q,className:D(f.selectButton,q?f.selectButtonSelected:f.selectButtonNotSelected,null==ye?void 0:ye.libraryCardSelectButton),style:null==fe?void 0:fe.libraryCardSelectButton},{children:[ze,n("span",e({className:f.selectButtonLabel},{children:Ze}))]}))]}:{children:[n("div",e({className:f.libraryCardFooterActions},{children:n("button",e({type:"button",onClick:At,className:f.previewButton,"aria-label":"Preview ".concat(Ie),title:"Preview"},{children:n(y,{className:f.previewIcon,strokeWidth:2.2})}))})),r("button",e({type:"button",onClick:function(){return It(Ae)},"aria-pressed":q,className:D(f.selectButton,f.selectButtonFullWidth,q?f.selectButtonSelected:f.selectButtonNotSelected,null==ye?void 0:ye.libraryCardSelectButton),style:null==fe?void 0:fe.libraryCardSelectButton},{children:[ze,n("span",e({className:f.selectButtonLabel},{children:Ze}))]}))]}))]})),n(A,{open:vt,onClose:function(){return mt(!1)},onConfirm:function(){return l(R,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:if(!te)return[2];Ct(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,Promise.resolve(te(U))];case 2:return e.sent(),[3,4];case 3:return Ct(!1),mt(!1),[7];case 4:return[2]}})})},title:se,description:Tt,confirmLabel:ue,loading:ft,classNames:ye,styles:fe}),n(A,{open:pt,onClose:function(){return bt(!1)},onConfirm:function(){return l(R,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:if(!le)return[2];Ct(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,Promise.resolve(le(U))];case 2:return e.sent(),[3,4];case 3:return Ct(!1),bt(!1),[7];case 4:return[2]}})})},title:me,description:Wt,confirmLabel:be,variant:"danger",loading:ft,classNames:ye,styles:fe})]})}export{P as GuidelineLibraryCard};
1
+ import{__assign as e,__spreadArray as t,__awaiter as l,__generator as i}from"tslib";import{jsx as n,jsxs as r,Fragment as a}from"react/jsx-runtime";import{useRef as o,useState as s,useEffect as c}from"react";import{Check as d,Plus as u,Share as v,Share2 as h,ChevronDown as m,EllipsisVertical as p,Heart as b,Eye as y}from"lucide-react";import f from"./GuidelineLibraryCard.module.css.js";import{getGuidelineId as C,getGuidelineTitle as N,getGuidelineDisplayDescription as w,getGuidelineDate as g,isInstantLearningGuideline as B,cx as L}from"../utils.js";import{GuidelineIconButton as S}from"./GuidelineIconButton.js";import{createGuidelineCardMenuItems as k,GuidelineCardMenu as D}from"./GuidelineCardMenu.js";import{GuidelineConfirmDialog as T}from"./GuidelineConfirmDialog.js";import{GuidelineStatusChip as W}from"./GuidelineStatusChip.js";function A(A){var I,P,_,j,G,x,O,F,M,H,V,E=this,R=A.guideline,U=A.isSelected,q=A.addToCartLabel,z=A.addedToCartLabel,J=A.selectLabel,K=void 0===J?"Select":J,Q=A.selectedLabel,X=void 0===Q?"Selected":Q,Y=A.onToggle,Z=A.onPreview,$=A.onExplore;A.onEdit;var ee=A.onDuplicate,te=A.onDelete;A.hideEditOption,A.hideDuplicateOption;var le=A.hideDeleteOption,ie=void 0!==le&≤A.editOptionLabel,A.duplicateOptionLabel;var ne=A.deleteOptionLabel,re=void 0===ne?"Delete":ne,ae=A.duplicateConfirmTitle,oe=void 0===ae?"Duplicate Guideline":ae,se=A.duplicateConfirmDescription,ce=A.duplicateConfirmLabel,de=void 0===ce?"Duplicate":ce,ue=A.deleteConfirmTitle,ve=void 0===ue?"Delete Guideline":ue,he=A.deleteConfirmDescription,me=A.deleteConfirmLabel,pe=void 0===me?"Delete":me,be=A.classNames,ye=A.styles,fe=A.customIcons,Ce=A.subTitleLayout,Ne=A.instantLearning,we=A.formatAddedOnLabel;A.fetchWishlistStatus;var ge=A.onWishlistToggle,Be=A.onVersionSelect,Le=A.isILMarketplace,Se=void 0!==Le&&Le,ke=A.handleViewButtonCallback,De=A.handlePreviewButtonCallback,Te=A.statusActions,We=C(R),Ae=N(R),Ie=w(R),Pe=we(g(R)),_e=null===(I=R.created_by)||void 0===I?void 0:I.trim(),je=[_e?"Created by ".concat(_e):"",Pe].filter(Boolean).join(" • "),Ge=new Date(g(R)||Date.now()),xe="template"===Ce,Oe=Ge.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),Fe=Ge.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}),Me="".concat(Oe," at ").concat(Fe),He=[_e?"Created by ".concat(_e):"",Me].filter(Boolean).join(" • "),Ve=null!==(_=null!==(P=R.content_type_title)&&void 0!==P?P:R.category)&&void 0!==_?_:"Requirement AI Template",Ee=B(R),Re=!0===R.is_legacy,Ue=R.status,qe=U?null!==(j=null==fe?void 0:fe.selectedIcon)&&void 0!==j?j:n(d,{className:"h-4 w-4 flex-shrink-0",strokeWidth:2.6}):null!==(G=null==fe?void 0:fe.unselectedIcon)&&void 0!==G?G:n(u,{className:"h-4 w-4 flex-shrink-0",strokeWidth:2.6}),ze=null!==(x=null==fe?void 0:fe.shareIcon)&&void 0!==x?x:n(v,{className:"h-5 w-5",strokeWidth:2.2}),Je=Ee?K:q,Ke=Ee?X:z,Qe=Boolean(null==Te?void 0:Te.modeName),Xe=(null!==(O=null==Te?void 0:Te.configurableStatuses)&&void 0!==O?O:[]).includes((null!=Ue?Ue:"").trim().toLowerCase()),Ye=Qe?Xe?null!==(F=null==Te?void 0:Te.configureLabel)&&void 0!==F?F:"Configure":null!==(M=null==Te?void 0:Te.testLabel)&&void 0!==M?M:"Test Template":U?Ke:Je,Ze=Ee?R.topic_name:void 0,$e=null===(H=R.application_mapping_ids)||void 0===H?void 0:H[0],et=null!==(V=R.version_list)&&void 0!==V?V:[],tt=R.version,lt=Se&&et.length>0,it=o(null),nt=s(!1),rt=nt[0],at=nt[1],ot=s(!1),st=ot[0],ct=ot[1],dt=s(!1),ut=dt[0],vt=dt[1],ht=s(!1),mt=ht[0],pt=ht[1],bt=s(!1),yt=bt[0],ft=bt[1],Ct=s(!1);Ct[0];var Nt=Ct[1],wt=s(!!R.is_wishlisted),gt=wt[0],Bt=wt[1],Lt=s(!1),St=Lt[0],kt=Lt[1],Dt=null!=se?se:'Are you sure you want to duplicate "'.concat(Ae,'"? A copy will be created with "(1)" appended to the title.'),Tt=null!=he?he:'Are you sure you want to delete "'.concat(Ae,'"? This action cannot be undone.');c(function(){Bt(!!R.is_wishlisted)},[R.is_wishlisted]);var Wt=function(){Se&&De?De(R):Ee&&$?$(R):Z(R)},At=function(e){var t,l;Qe?Xe?null===(t=null==Te?void 0:Te.onConfigure)||void 0===t||t.call(Te,R):null===(l=null==Te?void 0:Te.onTest)||void 0===l||l.call(Te,R):Se&&ke?ke(R):Y(e)},It=k({onDelete:function(){return pt(!0)},deleteLabel:re,hideDelete:ie||!te}),Pt=It.some(function(e){return!e.hidden});return r(a,{children:[r("article",e({onClick:function(e){e.target.closest('button, a, input, select, textarea, [role="button"]')||Wt()},className:L(f.libraryCard,null==be?void 0:be.libraryCard),style:null==ye?void 0:ye.libraryCard},{children:[r("div",e({className:L(f.libraryCardHeader,null==be?void 0:be.libraryCardHeader),style:null==ye?void 0:ye.libraryCardHeader},{children:[r("div",e({className:f.libraryCardHeaderContent},{children:[r("div",e({className:f.libraryCardTitleWrapper},{children:[Re&&n("span",e({className:f.legacyBadge},{children:"Legacy"})),n("h3",e({className:L(f.libraryCardTitle,null==be?void 0:be.libraryCardTitle),style:null==ye?void 0:ye.libraryCardTitle,title:Ae},{children:Ae})),Ee&&n(W,{status:Ue})]})),"template"===Ce?n("p",e({className:L(f.libraryCardDate,null==be?void 0:be.libraryCardDate),style:null==ye?void 0:ye.libraryCardDate,title:He},{children:He})):je?n("p",e({className:L(f.libraryCardDate,null==be?void 0:be.libraryCardDate),style:null==ye?void 0:ye.libraryCardDate,title:je},{children:je})):null]})),r("div",e({className:L(f.libraryCardActions,null==be?void 0:be.libraryCardActions),style:null==ye?void 0:ye.libraryCardActions},{children:[Ee&&!xe&&!Se&&n(S,e({slot:"shareGuideline",label:"Share ".concat(Ae),title:"Share",onClick:function(){return Nt(!0)},classNames:be,styles:ye},{children:n(h,{className:f.shareIcon,strokeWidth:2.2})})),lt&&r("div",e({className:f.versionSelectWrapper},{children:[n("select",e({value:tt,disabled:st,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t;e.stopPropagation(),t=Number(e.target.value),l(E,void 0,void 0,function(){var e;return i(this,function(l){switch(l.label){case 0:if(!Be||t===tt)return[2];ct(!0),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,Be(R,t)];case 2:return l.sent(),[3,5];case 3:return e=l.sent(),console.error("Version switch failed:",e),[3,5];case 4:return ct(!1),[7];case 5:return[2]}})})},className:f.versionSelect,"aria-label":"Select version for ".concat(Ae),title:"Select version"},{children:t([],et,!0).sort(function(e,t){return t-e}).map(function(t){return r("option",e({value:t},{children:["v",t]}),t)})})),n(m,{className:f.versionSelectChevron,strokeWidth:2.2})]})),r("div",e({className:"relative"},{children:[n(S,e({slot:"libraryCardMoreButton",label:"More options for ".concat(Ae),title:"More options",onClick:function(){return Pt?at(function(e){return!e}):void 0},classNames:be,styles:ye,ref:it},{children:n(p,{className:f.moreIcon,strokeWidth:2.2})})),Pt&&n(D,{open:rt,onClose:function(){return at(!1)},anchorRef:it,items:It,classNames:be,styles:ye})]}))]}))]})),n("p",e({className:L(f.libraryCardDescription,null==be?void 0:be.libraryCardDescription),style:null==ye?void 0:ye.libraryCardDescription,title:Ie},{children:Ie})),xe&&r("p",e({className:f.contentTypeLabel},{children:["Content Type :"," ",n("span",e({className:f.contentTypeLabelValue},{children:Ve}))]})),Ze&&r("p",e({className:f.topicLabel},{children:[n("span",e({className:"flex-shrink-0"},{children:"Topic:"})),n("span",e({className:f.topicLabelBadge},{children:Ze}))]})),r("div",e({className:L(f.libraryCardFooter,null==be?void 0:be.libraryCardFooter),style:null==ye?void 0:ye.libraryCardFooter},Ee?{children:[r("div",e({className:f.libraryCardFooterActions},{children:[!Re&&n("button",e({type:"button",onClick:function(e){return l(E,void 0,void 0,function(){var t,l;return i(this,function(i){switch(i.label){case 0:if(e.stopPropagation(),!ge||!(null==Ne?void 0:Ne.token)||!$e)return[2];t=!gt,kt(!0),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,ge($e,t,Ne.token)];case 2:return i.sent(),Bt(t),[3,5];case 3:return l=i.sent(),console.error("Wishlist operation failed:",l),[3,5];case 4:return kt(!1),[7];case 5:return[2]}})})},disabled:St,className:L(f.wishlistButton,gt?f.wishlistButtonWishlisted:f.wishlistButtonNotWishlisted,St&&f.wishlistButtonDisabled),"aria-label":gt?"Remove ".concat(Ae," from wishlist"):"Add ".concat(Ae," to wishlist")},{children:n(b,{className:f.wishlistIcon,fill:gt?"currentColor":"none",strokeWidth:2.2})})),n("button",e({type:"button",onClick:Wt,className:f.previewButton,"aria-label":"Preview ".concat(Ae),title:"Preview"},{children:n(y,{className:f.previewIcon,strokeWidth:2.2})})),xe&&!Se&&n("button",e({type:"button",onClick:function(e){e.stopPropagation(),Nt(!0)},className:f.previewButton,"aria-label":"Share ".concat(Ae),title:"Share"},{children:ze}))]})),r("button",e({type:"button",onClick:function(){return At(We)},"aria-pressed":U,className:L(f.selectButton,U?f.selectButtonSelected:f.selectButtonNotSelected,null==be?void 0:be.libraryCardSelectButton),style:null==ye?void 0:ye.libraryCardSelectButton},{children:[qe,n("span",e({className:f.selectButtonLabel},{children:Ye}))]}))]}:{children:[n("div",e({className:f.libraryCardFooterActions},{children:n("button",e({type:"button",onClick:Wt,className:f.previewButton,"aria-label":"Preview ".concat(Ae),title:"Preview"},{children:n(y,{className:f.previewIcon,strokeWidth:2.2})}))})),r("button",e({type:"button",onClick:function(){return At(We)},"aria-pressed":U,className:L(f.selectButton,f.selectButtonFullWidth,U?f.selectButtonSelected:f.selectButtonNotSelected,null==be?void 0:be.libraryCardSelectButton),style:null==ye?void 0:ye.libraryCardSelectButton},{children:[qe,n("span",e({className:f.selectButtonLabel},{children:Ye}))]}))]}))]})),n(T,{open:ut,onClose:function(){return vt(!1)},onConfirm:function(){return l(E,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:if(!ee)return[2];ft(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,Promise.resolve(ee(R))];case 2:return e.sent(),[3,4];case 3:return ft(!1),vt(!1),[7];case 4:return[2]}})})},title:oe,description:Dt,confirmLabel:de,loading:yt,classNames:be,styles:ye}),n(T,{open:mt,onClose:function(){return pt(!1)},onConfirm:function(){return l(E,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:if(!te)return[2];ft(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,Promise.resolve(te(R))];case 2:return e.sent(),[3,4];case 3:return ft(!1),pt(!1),[7];case 4:return[2]}})})},title:ve,description:Tt,confirmLabel:pe,variant:"danger",loading:yt,classNames:be,styles:ye})]})}export{A as GuidelineLibraryCard};
2
2
  //# sourceMappingURL=GuidelineLibraryCard.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as r}from"react/jsx-runtime";import{cx as i}from"../utils.js";import t from"./GuidelineStatusChip.module.css.js";var s={published:"published",draft:"draft",under_review:"underReview","under-review":"underReview","under review":"underReview"},u={published:"Published",draft:"Draft",underReview:"Under Review"};function d(d){var n=d.status,a=d.className,o=n?s[n.trim().toLowerCase()]:void 0;return o?r("span",e({className:i(t.chip,t[o],a)},{children:u[o]})):null}export{d as GuidelineStatusChip};
1
+ import{__assign as e}from"tslib";import{jsx as r}from"react/jsx-runtime";import{cx as i}from"../utils.js";import t from"./GuidelineStatusChip.module.css.js";var d={published:"published",draft:"draft",under_review:"underReview","under-review":"underReview","under review":"underReview",completed:"completed"},s={published:"Published",draft:"Draft",underReview:"Under Review",completed:"Completed"};function u(u){var o=u.status,l=u.className,m=o?d[o.trim().toLowerCase()]:void 0;return m?r("span",e({className:i(t.chip,t[m],l)},{children:s[m]})):null}export{u as GuidelineStatusChip};
2
2
  //# sourceMappingURL=GuidelineStatusChip.js.map
@@ -1,2 +1,2 @@
1
- import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var i={chip:"GuidelineStatusChip-module_chip__fNMka",published:"GuidelineStatusChip-module_published__t3hjL",draft:"GuidelineStatusChip-module_draft__ek3T5",underReview:"GuidelineStatusChip-module_underReview__HhDvk"};e(".GuidelineStatusChip-module_chip__fNMka{align-items:center;border-radius:100px;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:500;height:1.5rem;line-height:1;padding:0 .625rem;white-space:nowrap}.GuidelineStatusChip-module_published__t3hjL{background:var(--green-50,#f0fdf4);border:1px solid var(--green-200,#bbf7d0);color:var(--green-700,#15803d)}.GuidelineStatusChip-module_draft__ek3T5{background:var(--blue-50,#eff6ff);border:1px solid var(--blue-200,#bfdbfe);color:var(--blue-700,#1d4ed8)}.GuidelineStatusChip-module_underReview__HhDvk{background:var(--yellow-50,#fefce8);border:1px solid var(--yellow-200,#fef08a);color:var(--yellow-700,#a16207)}");export{i as default};
1
+ import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var i={chip:"GuidelineStatusChip-module_chip__fNMka",published:"GuidelineStatusChip-module_published__t3hjL",draft:"GuidelineStatusChip-module_draft__ek3T5",underReview:"GuidelineStatusChip-module_underReview__HhDvk",completed:"GuidelineStatusChip-module_completed__mfeiP"};e(".GuidelineStatusChip-module_chip__fNMka{align-items:center;border-radius:100px;display:inline-flex;flex-shrink:0;font-size:12px;font-weight:500;height:1.5rem;line-height:1;padding:0 .625rem;white-space:nowrap}.GuidelineStatusChip-module_published__t3hjL{background:var(--green-50,#f0fdf4);border:1px solid var(--green-200,#bbf7d0);color:var(--green-700,#15803d)}.GuidelineStatusChip-module_draft__ek3T5{background:var(--blue-50,#eff6ff);border:1px solid var(--blue-200,#bfdbfe);color:var(--blue-700,#1d4ed8)}.GuidelineStatusChip-module_underReview__HhDvk{background:var(--yellow-50,#fefce8);border:1px solid var(--yellow-200,#fef08a);color:var(--yellow-700,#a16207)}.GuidelineStatusChip-module_completed__mfeiP{background:var(--blue-50,#eff6ff);border:1px solid var(--blue-200,#bfdbfe);color:var(--blue-700,#1d4ed8)}");export{i as default};
2
2
  //# sourceMappingURL=GuidelineStatusChip.module.css.js.map
@@ -1,2 +1,2 @@
1
- var e="RequirementV3",t=["draft"],a={landingBreadcrumbLabel:"Agent Guidelines",landingTitle:"Set Your Agent's Guidelines",landingDescription:"Add a set of guidelines that shape how your agent behaves, responds, and interprets.",landingDebugLabel:"Know more about debug mode",landingAddGuidelineLabel:"Add New Set of Guidelines",savedTabLabel:"Saved",recentTabLabel:"Recently used",libraryEmptyTitle:"No saved guidelines",libraryEmptyDescription:"Create a new guideline to start building your session rules.",libraryAddToCart:"Add to Cart",libraryAddedToCart:"Added to Cart",librarySelect:"Select",librarySelected:"Selected",libraryExplore:"Explore",libraryShowMore:"Show more guidelines",libraryShowLess:"Show fewer guidelines",cartTitle:"Guideline Cart",cartDescription:"Guidelines added to your current session",emptyCartTitle:"No guidelines added",emptyCartDescription:"Your selected guidelines will appear here.",proceedButton:"Proceed with Selected",addGuidelineLabel:"Add guideline",selectedBadge:function(e){return"".concat(e," Selected")},landingDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query.",createGuidelinesTooltipContent:"Topics are used to optimize guideline ingestion and retrieval. Select the closest matching topic for the best results.",popoverDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query."},i={data:{_id:"",artifactId:"",artifactTitle:"",artifactTitleIDs:[],artifactData:{final_response_gs_url:"",citationsSnapshot:{image_citations:[],appmod_citations:[],audio_citations:[],file_citations:[],web_citations:[],pdf_citations:[],gpt_citations:[]},projectIdSnapshot:"",userStorySnapshot:[],breadCrumbsSnapShot:[],activePageSnapShot:"",aiReasoningsSnapshot:[],dataSources_files:{},knowledgeBaseSnapshot:[],projectAnalyserSummarySnapshot:[],chatHistorySnapshot:[],persistedDataFilesSnapshot:{},risk_gap_items_json:{},selectedCodebasesSnapshot:[],selectedUserStoryTypeSnapshot:""},dataSources_files:{},modeName:"",modeId:null,artifactSubTitle:"",isLoading:!1,widgetName:"user story",userEmail:"",optionalData:{},created_at:"",updated_at:""},counter:{ai_reasoning_id_counter:0,pdf_citation_id_counter:0,section_number:0}},o={applicationName:"Instant Learning Mode",applicationId:"6a329da7232364c90e1b6a00",moduleId:"6a329da7232364c90e1b6a42",applicationModuleId:"6a329da7232364c90e1b6a3e",applicationResourceId:"6a32a08c232364c90e1b6a56",appsecRbacUrl:"https://dev-cw-appsec.techo.camp/granularApi",appsecBaseUrl:"https://dev-cw-appsec.techo.camp"},n={IMAGES:"images",MEETING_RECORDINGS:"meeting-recordings",DOCUMENTS:"documents",STORMEE_CONVERSATIONS:"stormee-conversations",REQUIREMENT_DOCUMENTS:"requirement-documents",CODEBASE_KNOWLEDGE:"codebase-knowledge",GUIDELINES:"guidelines"},s={GUIDELINE:"guideline",CONTEXT:"context"},r={IN_PROGRESS:"In-Progress",INGESTION_COMPLETE:"Completed",INGESTION_FAILED:"Failed"},d="GUIDELINE_SESSION_ID";export{s as ADD_CONTEXT_FILE_TYPES,t as CONFIGURABLE_GUIDELINE_STATUSES,i as DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE,a as DEFAULT_GUIDELINE_LABELS,o as FALLBACK_RBAC_CONFIG,r as FILE_INGESTION_STATUS,d as GUIDELINE_SESSION_ID,n as SOURCE_IDS,e as STATUS_ACTION_MODE_NAME};
1
+ var e={landingBreadcrumbLabel:"Agent Guidelines",landingTitle:"Set Your Agent's Guidelines",landingDescription:"Add a set of guidelines that shape how your agent behaves, responds, and interprets.",landingDebugLabel:"Know more about debug mode",landingAddGuidelineLabel:"Add New Set of Guidelines",savedTabLabel:"Saved",recentTabLabel:"Recently used",libraryEmptyTitle:"No saved guidelines",libraryEmptyDescription:"Create a new guideline to start building your session rules.",libraryAddToCart:"Add to Cart",libraryAddedToCart:"Added to Cart",librarySelect:"Select",librarySelected:"Selected",libraryExplore:"Explore",libraryShowMore:"Show more guidelines",libraryShowLess:"Show fewer guidelines",cartTitle:"Guideline Cart",cartDescription:"Guidelines added to your current session",emptyCartTitle:"No guidelines added",emptyCartDescription:"Your selected guidelines will appear here.",proceedButton:"Proceed with Selected",addGuidelineLabel:"Add guideline",selectedBadge:function(e){return"".concat(e," Selected")},landingDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query.",createGuidelinesTooltipContent:"Topics are used to optimize guideline ingestion and retrieval. Select the closest matching topic for the best results.",popoverDebugTooltipContent:"Debug Mode is a transparency and control mechanism designed to intercept prompt submissions before they are dispatched to the LLM to help users test and debug with different guidelines rapidly. It serves as an approval gate, allowing users to verify, configure, and approve the guideline payload for a specific query."},t={data:{_id:"",artifactId:"",artifactTitle:"",artifactTitleIDs:[],artifactData:{final_response_gs_url:"",citationsSnapshot:{image_citations:[],appmod_citations:[],audio_citations:[],file_citations:[],web_citations:[],pdf_citations:[],gpt_citations:[]},projectIdSnapshot:"",userStorySnapshot:[],breadCrumbsSnapShot:[],activePageSnapShot:"",aiReasoningsSnapshot:[],dataSources_files:{},knowledgeBaseSnapshot:[],projectAnalyserSummarySnapshot:[],chatHistorySnapshot:[],persistedDataFilesSnapshot:{},risk_gap_items_json:{},selectedCodebasesSnapshot:[],selectedUserStoryTypeSnapshot:""},dataSources_files:{},modeName:"",modeId:null,artifactSubTitle:"",isLoading:!1,widgetName:"user story",userEmail:"",optionalData:{},created_at:"",updated_at:""},counter:{ai_reasoning_id_counter:0,pdf_citation_id_counter:0,section_number:0}},a={applicationName:"Instant Learning Mode",applicationId:"6a329da7232364c90e1b6a00",moduleId:"6a329da7232364c90e1b6a42",applicationModuleId:"6a329da7232364c90e1b6a3e",applicationResourceId:"6a32a08c232364c90e1b6a56",appsecRbacUrl:"https://dev-cw-appsec.techo.camp/granularApi",appsecBaseUrl:"https://dev-cw-appsec.techo.camp"},i={IMAGES:"images",MEETING_RECORDINGS:"meeting-recordings",DOCUMENTS:"documents",STORMEE_CONVERSATIONS:"stormee-conversations",REQUIREMENT_DOCUMENTS:"requirement-documents",CODEBASE_KNOWLEDGE:"codebase-knowledge",GUIDELINES:"guidelines"},o={GUIDELINE:"guideline",CONTEXT:"context"},n={IN_PROGRESS:"In-Progress",INGESTION_COMPLETE:"Completed",INGESTION_FAILED:"Failed"},s="GUIDELINE_SESSION_ID";export{o as ADD_CONTEXT_FILE_TYPES,t as DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE,e as DEFAULT_GUIDELINE_LABELS,a as FALLBACK_RBAC_CONFIG,n as FILE_INGESTION_STATUS,s as GUIDELINE_SESSION_ID,i as SOURCE_IDS};
2
2
  //# sourceMappingURL=constants.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as t,__assign as e}from"tslib";import{jsxs as n,jsx as i}from"react/jsx-runtime";import{useState as r,useEffect as c}from"react";import{Check as a,Eye as l,X as o}from"lucide-react";import d from"./Cart.styles.js";function s(t){try{var e=new Date(t),n=e.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),i=e.toLocaleDateString("en-GB").replace(/\//g,"/");return"Added on - ".concat(n," | ").concat(i)}catch(e){return t}}function h(h){var u=h.items,m=h.onRemove,p=h.onProceed,f=r(new Set),g=f[0],y=f[1];c(function(){1!==u.length?y(function(e){var n=new Set(u.map(function(t){return t.instant_learning_id})),i=new Set(t([],e,!0).filter(function(t){return n.has(t)}));return i.size===e.size?e:i}):y(new Set([u[0].instant_learning_id]))},[u]);var v=u.filter(function(t){return g.has(t.instant_learning_id)});return n("section",e({style:d.cartSection},{children:[n("div",e({style:d.cartHeaderRow},{children:[i("p",e({style:d.cartTitle},{children:"Guideline Cart"})),n("span",e({style:d.cartBadge},{children:[u.length," Added"]}))]})),i("p",e({style:d.cartDescription},{children:u.length>1?"Click items to select them for this session":"Selected for this session"})),i("div",e({style:d.cartBody},{children:i("div",e({style:d.cartList},{children:0===u.length?i("div",e({style:d.emptyState},{children:"No guidelines added yet"})):u.map(function(t){var r=g.has(t.instant_learning_id);return n("div",e({style:r?d.cartItemSelected:d.cartItem,onClick:function(){return e=t.instant_learning_id,void y(function(t){var n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n});var e}},{children:[n("div",e({style:d.cartItemTop},{children:[n("div",e({style:d.cartItemTopLeft},{children:[i("span",e({style:r?d.cartCheckbox:d.cartCheckboxEmpty},{children:r&&i(a,{size:12,strokeWidth:3})})),i("p",e({style:d.cartItemName},{children:t.instant_learning_title}))]})),n("div",e({style:d.cartItemIcons},{children:[i(l,{size:16,strokeWidth:2}),i("button",e({type:"button",style:d.removeBtn,onClick:function(e){return function(t,e){t.stopPropagation(),y(function(t){if(!t.has(e))return t;var n=new Set(t);return n.delete(e),n}),m(e)}(e,t.instant_learning_id)}},{children:i(o,{size:16,strokeWidth:2})}))]}))]})),i("p",e({style:d.cartItemDescription},{children:t.instant_learning_description})),i("p",e({style:d.cartItemDate},{children:s(t.created_at)}))]}),t.instant_learning_id)})}))})),i("button",e({type:"button",style:v.length>0?d.proceedButton:d.proceedButtonDisabled,disabled:0===v.length,onClick:function(){return v.length>0&&p(v)}},{children:n("span",{children:["Proceed with Selected",v.length>1?" (".concat(v.length,")"):""]})}))]}))}export{h as Cart,h as default};
1
+ import{__assign as t}from"tslib";import{jsxs as e,jsx as n}from"react/jsx-runtime";import{useState as i}from"react";import{Check as r,Eye as c,X as l}from"lucide-react";import o from"./Cart.styles.js";function a(t){try{var e=new Date(t),n=e.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),i=e.toLocaleDateString("en-GB").replace(/\//g,"/");return"Added on - ".concat(n," | ").concat(i)}catch(e){return t}}function d(d){var s,u=d.items,h=d.onRemove,m=d.onProceed,p=i(null),y=p[0],f=p[1];var g=null!==(s=u.find(function(t){return t.instant_learning_id===y}))&&void 0!==s?s:null;return e("section",t({style:o.cartSection},{children:[e("div",t({style:o.cartHeaderRow},{children:[n("p",t({style:o.cartTitle},{children:"Guideline Cart"})),e("span",t({style:o.cartBadge},{children:[u.length," Added"]}))]})),n("p",t({style:o.cartDescription},{children:"Click an item to select it for this session"})),n("div",t({style:o.cartBody},{children:n("div",t({style:o.cartList},{children:0===u.length?n("div",t({style:o.emptyState},{children:"No guidelines added yet"})):u.map(function(i){var d=i.instant_learning_id===y;return e("div",t({style:d?o.cartItemSelected:o.cartItem,onClick:function(){return t=i.instant_learning_id,void f(function(e){return e===t?null:t});var t}},{children:[e("div",t({style:o.cartItemTop},{children:[e("div",t({style:o.cartItemTopLeft},{children:[n("span",t({style:d?o.cartCheckbox:o.cartCheckboxEmpty},{children:d&&n(r,{size:12,strokeWidth:3})})),n("p",t({style:o.cartItemName},{children:i.instant_learning_title}))]})),e("div",t({style:o.cartItemIcons},{children:[n(c,{size:16,strokeWidth:2}),n("button",t({type:"button",style:o.removeBtn,onClick:function(t){return function(t,e){t.stopPropagation(),y===e&&f(null),h(e)}(t,i.instant_learning_id)}},{children:n(l,{size:16,strokeWidth:2})}))]}))]})),n("p",t({style:o.cartItemDescription},{children:i.instant_learning_description})),n("p",t({style:o.cartItemDate},{children:a(i.created_at)}))]}),i.instant_learning_id)})}))})),n("button",t({type:"button",style:g?o.proceedButton:o.proceedButtonDisabled,disabled:!g,onClick:function(){return g&&m(g)}},{children:n("span",{children:"Proceed with Selected"})}))]}))}export{d as Cart,d as default};
2
2
  //# sourceMappingURL=Cart.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{BookOpen as i,Eye as n,MoreVertical as o,UserCheck as d,Compass as c,Check as l,Plus as s}from"lucide-react";import a from"./GuidelineCard.styles.js";function u(t){try{var e=new Date(t),r=e.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),i=e.toLocaleDateString("en-GB").replace(/\//g,"/");return"Added on - ".concat(r," | ").concat(i)}catch(e){return t}}function h(h){var p=h.guideline,y=h.inCart,f=h.onToggleCart,m=h.onExplore;return e("div",t({style:a.card},{children:[e("div",t({style:a.cardTop},{children:[e("div",t({style:a.cardTopLeft},{children:[r(i,{size:18,strokeWidth:2,color:"#6D5BFF"}),r("p",t({style:a.cardTitle},{children:p.instant_learning_title}))]})),e("div",t({style:a.cardTopIcons},{children:[r(n,{size:16,strokeWidth:2}),r(o,{size:16,strokeWidth:2}),r(d,{size:16,strokeWidth:2})]}))]})),r("p",t({style:a.cardDescription},{children:p.instant_learning_description})),r("p",t({style:a.cardDate},{children:u(p.created_at)})),e("div",t({style:a.cardActionsRow},{children:[e("button",t({type:"button",style:a.exploreButton,onClick:function(){return null==m?void 0:m(p)}},{children:[r(c,{size:15,strokeWidth:2.4}),r("span",{children:"Explore"})]})),e("button",y?t({type:"button",style:a.cardAddedButton,onClick:function(){return f(p)}},{children:[r(l,{size:16,strokeWidth:2.4}),r("span",{children:"Selected"})]}):t({type:"button",style:a.cardAddButton,onClick:function(){return f(p)}},{children:[r(s,{size:16,strokeWidth:2.4}),r("span",{children:"Select"})]}))]}))]}))}export{h as GuidelineCard,h as default};
1
+ import{__assign as t}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{BookOpen as i,Eye as n,MoreVertical as d,UserCheck as o,Compass as c,Check as l,Plus as s}from"lucide-react";import a from"./GuidelineCard.styles.js";function u(t){try{var e=new Date(t),r=e.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),i=e.toLocaleDateString("en-GB").replace(/\//g,"/");return"Added on - ".concat(r," | ").concat(i)}catch(e){return t}}function h(h){var p=h.guideline,y=h.inCart,f=h.onToggleCart,m=h.onExplore;return e("div",t({style:a.card},{children:[e("div",t({style:a.cardTop},{children:[e("div",t({style:a.cardTopLeft},{children:[r(i,{size:18,strokeWidth:2,color:"#6D5BFF"}),r("p",t({style:a.cardTitle},{children:p.instant_learning_title}))]})),e("div",t({style:a.cardTopIcons},{children:[r(n,{size:16,strokeWidth:2}),r(d,{size:16,strokeWidth:2}),r(o,{size:16,strokeWidth:2})]}))]})),r("p",t({style:a.cardDescription},{children:p.instant_learning_description})),r("p",t({style:a.cardDate},{children:u(p.created_at)})),e("div",t({style:a.cardActionsRow},{children:[e("button",t({type:"button",style:a.exploreButton,onClick:function(){return null==m?void 0:m(p)}},{children:[r(c,{size:15,strokeWidth:2.4}),r("span",{children:"Explore"})]})),e("button",y?t({type:"button",style:a.cardAddedButton,onClick:function(){return f(p)}},{children:[r(l,{size:16,strokeWidth:2.4}),r("span",{children:"Added to Cart"})]}):t({type:"button",style:a.cardAddButton,onClick:function(){return f(p)}},{children:[r(s,{size:16,strokeWidth:2.4}),r("span",{children:"Add to Cart"})]}))]}))]}))}export{h as GuidelineCard,h as default};
2
2
  //# sourceMappingURL=GuidelineCard.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as n,__generator as t}from"tslib";import{jsx as i,jsxs as r,Fragment as o}from"react/jsx-runtime";import{useState as l,useEffect as d}from"react";import{CircleHelp as a,Plus as s,UserCheck as u,Clock3 as c,ShoppingBag as p,Search as h,Check as f,ChevronDown as m,ChevronUp as g}from"lucide-react";import{fetchGuidelineInstances as b}from"./api.js";import{GuidelineCard as y}from"./GuidelineCard.js";import{Cart as _}from"./Cart/Cart.js";import{LearningManagementWrapper as v}from"./LearningManagementWrapper.js";import k from"./GuidelinesLandingPage.styles.js";import{OutlinedInput as C,InputAdornment as z}from"@mui/material";import{transformSelectedToILData as S}from"./transformSelectedGuidelineData.js";function w(e,n){var t,i,r,o;return n?null!==(o=null===(r=e.mode_mappings.find(function(e){return e.mode_id===n}))||void 0===r?void 0:r.application_integration_id)&&void 0!==o?o:"":null!==(i=null===(t=e.mode_mappings[0])||void 0===t?void 0:t.application_integration_id)&&void 0!==i?i:""}function A(A){var W=A.baseUrl,x=A.baseWebsocketUrl,B=A.token,F=A.userDetails,I=A.modeId,U=A.assistantName,j=A.appsecRbacUrl,G=A.appsecBaseUrl,L=A.onProceedSelected,T=l([]),D=T[0],E=T[1],M=l(6),R=M[0],N=M[1],O=l([]),P=O[0],H=O[1],K=l(!1),q=K[0],J=K[1],Q=l(null),V=Q[0],X=Q[1],Y=l(null),Z=Y[0],$=Y[1],ee=l(""),ne=ee[0],te=ee[1],ie=l(""),re=ie[0],oe=ie[1];d(function(){var e=setTimeout(function(){oe(ne.trim())},750);return function(){return clearTimeout(e)}},[ne]),d(function(){N(6)},[re]),d(function(){J(!0),X(null),b(W,B).then(function(e){E(e.data)}).catch(function(e){return X(e.message)}).finally(function(){return J(!1)})},[W,B]);var le=new Set(P.map(function(e){return e.instant_learning_id}));function de(e){H(function(n){return n.some(function(n){return n.instant_learning_id===e.instant_learning_id})?n.filter(function(n){return n.instant_learning_id!==e.instant_learning_id}):[e]})}var ae=re.length>=2?D.filter(function(e){var n,t,i=re.toLowerCase();return(null===(n=e.instant_learning_title)||void 0===n?void 0:n.toLowerCase().includes(i))||(null===(t=e.instant_learning_description)||void 0===t?void 0:t.toLowerCase().includes(i))}):D,se=ae.slice(0,R),ue=ae.length-R,ce=R>6;return i("div",e({style:k.page},{children:r("main",e({style:k.main},{children:[r("section",e({style:k.headerSection},{children:[r("div",e({style:k.intro},{children:[i("h1",e({style:k.title},{children:"Add Guidelines"})),i("p",e({style:k.description},{children:"Add guidelines that shape how your agent behaves, responds, and interprets."})),r("button",e({type:"button",style:k.debugLink},{children:[i("span",{children:"Know more about debug mode"}),i(a,{size:18,strokeWidth:2})]}))]})),r("button",e({type:"button",style:k.addButton},{children:[i(s,{size:20,strokeWidth:2.4}),i("span",{children:"Add Guideline"})]}))]})),r("section",e({style:k.bodySection},{children:[r("section",e({style:k.librarySection},{children:[r("div",e({style:k.libraryTabs},{children:[r("button",e({type:"button",style:e(e({},k.tab),k.tabActive)},{children:[i(u,{size:18,strokeWidth:2}),i("span",{children:"Saved"})]})),r("button",e({type:"button",style:k.tab},{children:[i(c,{size:18,strokeWidth:2}),i("span",{children:"Recently used"})]})),r("button",e({type:"button",style:k.tab},{children:[i(p,{size:18,strokeWidth:2}),i("span",{children:"Marketplace"})]}))]})),!Z&&i("div",e({style:{position:"sticky",top:0,zIndex:10,backgroundColor:"#FFFFFF",paddingTop:12,backdropFilter:"blur(8px)"}},{children:i(C,{placeholder:"Search Guideline",value:ne,onChange:function(e){return te(e.target.value)},size:"small",startAdornment:i(z,e({position:"start"},{children:i(h,{size:16,color:"#9CA3AF"})})),sx:{width:"280px",borderRadius:"8px",fontSize:"14px","& .MuiOutlinedInput-notchedOutline":{borderColor:"#E5E7EB"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#D1D5DB"},bgcolor:"#fff"}})})),Z?i(v,{userDetails:F,baseUrl:W,baseWebsocketUrl:x,assistantName:U,appsecRbacUrl:j,appsecBaseUrl:G,appIntegrationId:w(Z,I),modeId:I,guidelineTitle:Z.instant_learning_title,onBack:function(){return $(null)},headerActions:le.has(Z.instant_learning_id)?r("button",e({type:"button",style:k.cardAddedButton,onClick:function(){return de(Z)}},{children:[i(f,{size:16,strokeWidth:2.4}),i("span",{children:"Added to Cart"})]})):r("button",e({type:"button",style:k.cardAddButton,onClick:function(){return de(Z)}},{children:[i(s,{size:16,strokeWidth:2.4}),i("span",{children:"Add to Cart"})]}))}):r(o,{children:[q&&i("p",e({style:k.loadingState},{children:"Loading guidelines..."})),V&&r("p",e({style:k.errorState},{children:["Error: ",V]})),!q&&!V&&i(o,{children:0===ae.length?i("p",e({style:k.loadingState},{children:re.length>=2?"No guidelines match your search.":"No guidelines found."})):r(o,{children:[i("div",e({style:k.libraryGrid},{children:se.map(function(e){return i(y,{guideline:e,inCart:le.has(e.instant_learning_id),onToggleCart:de,onExplore:$},e.instant_learning_id)})})),r("div",e({style:{display:"flex",alignItems:"center",gap:16}},{children:[ue>0&&r("button",e({type:"button",style:k.showMore,onClick:function(){return N(function(e){return e+6})}},{children:[r("span",{children:["Show more guidelines (",ue,")"]}),i(m,{size:16,strokeWidth:2.4})]})),ce&&r("button",e({type:"button",style:k.showMore,onClick:function(){return N(6)}},{children:[i("span",{children:"Hide"}),i(g,{size:16,strokeWidth:2.4})]}))]}))]})})]})]})),i(_,{items:P,onRemove:function(e){H(function(n){return n.filter(function(n){return n.instant_learning_id!==e})})},onProceed:function(e){return n(this,void 0,void 0,function(){var n,i;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,S(e,I,F.accessToken)];case 1:return n=t.sent(),console.log("Proceeding with il_data:",n),L(n),[3,3];case 2:return i=t.sent(),console.error("Error building il_data for selected guidelines:",i),[3,3];case 3:return[2]}})})}})]}))]}))}))}export{A as GuidelineLandingPage,A as default};
1
+ import{__assign as n,__spreadArray as e}from"tslib";import{jsx as t,jsxs as i,Fragment as r}from"react/jsx-runtime";import{useState as o,useEffect as l}from"react";import{CircleHelp as d,Plus as a,UserCheck as s,Clock3 as u,ShoppingBag as c,ChevronDown as p,ChevronUp as h}from"lucide-react";import{fetchGuidelineInstances as m}from"./api.js";import{GuidelineCard as f}from"./GuidelineCard.js";import{Cart as y}from"./Cart/Cart.js";import{LearningManagementWrapper as g}from"./LearningManagementWrapper.js";import b from"./GuidelinesLandingPage.styles.js";function _(n,e){var t,i,r,o;return e?null!==(o=null===(r=n.mode_mappings.find(function(n){return n.mode_id===e}))||void 0===r?void 0:r.application_integration_id)&&void 0!==o?o:"":null!==(i=null===(t=n.mode_mappings[0])||void 0===t?void 0:t.application_integration_id)&&void 0!==i?i:""}function v(v){var k=v.baseUrl,S=v.token,W=v.userDetails,z=v.modeId,C=o([]),j=C[0],w=C[1],G=o(6),I=G[0],x=G[1],A=o([]),L=A[0],M=A[1],T=o(!0),B=T[0],D=T[1],E=o(null),P=E[0],R=E[1],H=o(null),K=H[0],U=H[1];l(function(){D(!0),R(null),m(k,S).then(function(n){w(n.data)}).catch(function(n){return R(n.message)}).finally(function(){return D(!1)})},[k,S]);var q=new Set(L.map(function(n){return n.instant_learning_id}));function F(n){M(function(t){return t.some(function(e){return e.instant_learning_id===n.instant_learning_id})?t.filter(function(e){return e.instant_learning_id!==n.instant_learning_id}):e(e([],t,!0),[n],!1)})}var J=j.slice(0,I),N=j.length-I,O=I>6;return t("div",n({style:b.page},{children:i("main",n({style:b.main},{children:[i("section",n({style:b.headerSection},{children:[i("div",n({style:b.intro},{children:[t("h1",n({style:b.title},{children:"Add Guidelines"})),t("p",n({style:b.description},{children:"Add guidelines that shape how your agent behaves, responds, and interprets."})),i("button",n({type:"button",style:b.debugLink},{children:[t("span",{children:"Know more about debug mode"}),t(d,{size:18,strokeWidth:2})]}))]})),i("button",n({type:"button",style:b.addButton},{children:[t(a,{size:20,strokeWidth:2.4}),t("span",{children:"Add Guideline"})]}))]})),i("section",n({style:b.bodySection},{children:[i("section",n({style:b.librarySection},{children:[i("div",n({style:b.libraryTabs},{children:[i("button",n({type:"button",style:n(n({},b.tab),b.tabActive)},{children:[t(s,{size:18,strokeWidth:2}),t("span",{children:"Saved"})]})),i("button",n({type:"button",style:b.tab},{children:[t(u,{size:18,strokeWidth:2}),t("span",{children:"Recently used"})]})),i("button",n({type:"button",style:b.tab},{children:[t(c,{size:18,strokeWidth:2}),t("span",{children:"Marketplace"})]}))]})),K?t(g,{userDetails:W,appIntegrationId:_(K,z),modeId:z,guidelineTitle:K.instant_learning_title,onBack:function(){return U(null)}}):i(r,{children:[B&&t("p",n({style:b.loadingState},{children:"Loading guidelines..."})),P&&i("p",n({style:b.errorState},{children:["Error: ",P]})),!B&&!P&&i(r,{children:[t("div",n({style:b.libraryGrid},{children:J.map(function(n){return t(f,{guideline:n,inCart:q.has(n.instant_learning_id),onToggleCart:F,onExplore:U},n.instant_learning_id)})})),i("div",n({style:{display:"flex",alignItems:"center",gap:16}},{children:[N>0&&i("button",n({type:"button",style:b.showMore,onClick:function(){return x(function(n){return n+6})}},{children:[i("span",{children:["Show more guidelines (",N,")"]}),t(p,{size:16,strokeWidth:2.4})]})),O&&i("button",n({type:"button",style:b.showMore,onClick:function(){return x(6)}},{children:[t("span",{children:"Hide"}),t(h,{size:16,strokeWidth:2.4})]}))]}))]})]})]})),t(y,{items:L,onRemove:function(n){M(function(e){return e.filter(function(e){return e.instant_learning_id!==n})})},onProceed:function(){}})]}))]}))}))}export{v as GuidelineLandingPage,v as default};
2
2
  //# sourceMappingURL=GuidelinesLandingPage.js.map
@@ -1,2 +1,2 @@
1
- var e={page:{height:"100%",width:"100%",background:"#ffffff",fontFamily:"Inter, sans-serif"},main:{height:"100%",overflow:"auto",padding:40},headerSection:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:24,justifyContent:"space-between",alignItems:"flex-start"},intro:{minWidth:280,flex:"1 1 0%"},title:{fontSize:30,fontWeight:700,lineHeight:"38px",color:"#6D35F2",margin:0},description:{marginTop:8,fontSize:19,lineHeight:"28px",color:"#1F2937"},debugLink:{marginTop:12,display:"inline-flex",alignItems:"center",gap:8,fontSize:14,fontWeight:500,color:"#53657D",background:"none",border:"none",padding:0,cursor:"pointer"},addButton:{display:"inline-flex",height:44,minWidth:210,flexShrink:0,alignItems:"center",justifyContent:"center",gap:12,borderRadius:6,background:"#4438F5",padding:"0 20px",fontSize:15,fontWeight:600,color:"#ffffff",border:"none",boxShadow:"0 1px 2px rgba(16,24,40,0.08)",cursor:"pointer",marginLeft:"auto"},bodySection:{marginTop:48,display:"grid",width:"100%",gridTemplateColumns:"minmax(0,1fr) minmax(300px,360px)",alignItems:"start",gap:24},librarySection:{minWidth:0},libraryTabs:{display:"flex",borderBottom:"1px solid #EAECF0"},tab:{position:"relative",display:"inline-flex",height:40,alignItems:"center",gap:8,padding:"0 16px",fontSize:14,fontWeight:500,background:"none",border:"none",cursor:"pointer",color:"#B5BDC8"},tabActive:{color:"#1F2937",boxShadow:"inset 0 -3px 0 0 #6D5BFF"},libraryGrid:{marginTop:24,display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:20},cardAddButton:{display:"inline-flex",height:36,flex:1,alignItems:"center",justifyContent:"center",gap:8,borderRadius:6,border:"1px solid #4438F5",background:"#ffffff",fontSize:13,fontWeight:600,color:"#4438F5",cursor:"pointer"},cardAddedButton:{display:"inline-flex",height:36,flex:1,alignItems:"center",justifyContent:"center",gap:8,borderRadius:6,border:"1px solid #EAE7FF",background:"#EDE9FE",fontSize:13,fontWeight:600,color:"#4438F5",cursor:"pointer"},showMore:{marginTop:28,display:"inline-flex",alignItems:"center",gap:8,fontSize:14,fontWeight:600,color:"#5B2CF4",background:"none",border:"none",cursor:"pointer"},loadingState:{marginTop:24,fontSize:14,color:"#667085"},errorState:{marginTop:24,fontSize:14,color:"#F04438"}};export{e as default};
1
+ var e={page:{height:"100%",width:"100%",background:"#ffffff",fontFamily:"Inter, sans-serif"},main:{height:"100%",overflow:"auto",padding:40},headerSection:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:24,justifyContent:"space-between",alignItems:"flex-start"},intro:{minWidth:280,flex:"1 1 0%"},title:{fontSize:30,fontWeight:700,lineHeight:"38px",color:"#6D35F2",margin:0},description:{marginTop:8,fontSize:19,lineHeight:"28px",color:"#1F2937"},debugLink:{marginTop:12,display:"inline-flex",alignItems:"center",gap:8,fontSize:14,fontWeight:500,color:"#53657D",background:"none",border:"none",padding:0,cursor:"pointer"},addButton:{display:"inline-flex",height:44,minWidth:210,flexShrink:0,alignItems:"center",justifyContent:"center",gap:12,borderRadius:6,background:"#4438F5",padding:"0 20px",fontSize:15,fontWeight:600,color:"#ffffff",border:"none",boxShadow:"0 1px 2px rgba(16,24,40,0.08)",cursor:"pointer",marginLeft:"auto"},bodySection:{marginTop:48,display:"grid",width:"100%",gridTemplateColumns:"minmax(0,1fr) minmax(300px,360px)",alignItems:"start",gap:24},librarySection:{minWidth:0},libraryTabs:{display:"flex",borderBottom:"1px solid #EAECF0"},tab:{position:"relative",display:"inline-flex",height:40,alignItems:"center",gap:8,padding:"0 16px",fontSize:14,fontWeight:500,background:"none",border:"none",cursor:"pointer",color:"#B5BDC8"},tabActive:{color:"#1F2937",boxShadow:"inset 0 -3px 0 0 #6D5BFF"},libraryGrid:{marginTop:24,display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:20},showMore:{marginTop:28,display:"inline-flex",alignItems:"center",gap:8,fontSize:14,fontWeight:600,color:"#5B2CF4",background:"none",border:"none",cursor:"pointer"},loadingState:{marginTop:24,fontSize:14,color:"#667085"},errorState:{marginTop:24,fontSize:14,color:"#F04438"}};export{e as default};
2
2
  //# sourceMappingURL=GuidelinesLandingPage.styles.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as a,jsxs as i}from"react/jsx-runtime";import{useState as t,useEffect as n}from"react";import{ArrowLeft as o}from"lucide-react";import{QueryClient as l,QueryClientProvider as r}from"@tanstack/react-query";import c from"../LearningManagement/LearningManagement.js";import{fetchRBACConfig as d}from"./api.js";var p={config:{CUSTOM_SCOPE_GROUP_NAME:"Preview",INSTANT_LEARNING_TYPE:"iL",MODEL:"claude-3.5-sonnet",CONFIG_MASTER_NAME:"preview-config",SCOPE_NAME:"Custom",ASSISTANT_NAME:"preview",ORGANIZATION_NAME:"techolution",BASE_URL:"https://devllmstudio.creativeworkspace.ai",BASE_WEBSOCKET_URL:"wss://devllmstudio.creativeworkspace.ai/graphql",CHAT_TITLE:"Preview",CHAT_TITLE_EDIT:"Preview Edit",FORM_TITLE:"Learning Details",INITIAL_CHAT_MESSAGE:"Hi",CATEGORY:"Global-Template",SOCKET_TIMEOUT:24e4},llmStudioUrl:"https://devllmstudio.creativeworkspace.ai",audacyBackendUrl:"https://dev-audacy-traffic-manager.techo.camp",ilLabels:{setupLabel:"Learning Setup",ruleTitle:"Learning Title",ruleDescriptionTitle:"Learning Description"}},s={applicationName:"IL Mode - ILOTJ",applicationId:"6a22c19581f05dc3afc8ad57",moduleId:"6a22c19581f05dc3afc8ad8e",applicationModuleId:"6a22c19581f05dc3afc8ad88",applicationResourceId:"6a22c19681f05dc3afc8ad94",appsecRbacUrl:"https://dev-cw-appsec.techo.camp/granularApi",appsecBaseUrl:"https://dev-cw-appsec.techo.camp"},f={configId:"6a1825e9fb722c37637b9490"},u=new l,g={wrapper:{display:"flex",flexDirection:"column",height:"100%",minHeight:0},header:{display:"flex",alignItems:"center",gap:12,padding:"10px 0",borderBottom:"1px solid #EAECF0",flexShrink:0},backButton:{display:"inline-flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",fontSize:14,fontWeight:500,color:"#344054",padding:"4px 8px",borderRadius:6},headerTitle:{fontSize:14,fontWeight:600,color:"#1F2937",margin:0,flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},headerActions:{display:"flex",alignItems:"center",gap:8,marginLeft:"auto"},lmsContainer:{flex:1,minHeight:0,overflow:"hidden"},loadingState:{padding:24,fontSize:14,color:"#667085"}};function m(l){var m=l.userDetails,h=l.baseUrl,T=l.baseWebsocketUrl,I=l.assistantName,v=l.appsecRbacUrl,_=l.appsecBaseUrl,E=l.appIntegrationId,A=l.modeId,S=l.guidelineTitle,L=l.onBack,b=l.headerActions,C=t(null),w=C[0],U=C[1];return n(function(){if(E){var a=e(e({},p),{config:e(e({},p.config),{ASSISTANT_NAME:I,BASE_URL:h,BASE_WEBSOCKET_URL:T}),llmStudioUrl:h}),i=e(e({},s),{appsecRbacUrl:v,appsecBaseUrl:_}),t=!1;return U(null),d(h,m.accessToken,E).then(function(n){var o,l,r,c;if(!t){var d=n?{applicationName:n.application_name,applicationId:n.application_id,moduleId:null===(o=n.module_data)||void 0===o?void 0:o.Scopes,applicationModuleId:null===(l=n.module_data)||void 0===l?void 0:l.General,applicationResourceId:null===(r=n.resource_data)||void 0===r?void 0:r["Learning Management"],appsecRbacUrl:v,appsecBaseUrl:_}:i;U(e(e({},a),{auditLogConfig:{configId:null!==(c=null==n?void 0:n.change_log_config_id)&&void 0!==c?c:f.configId},rbacConfig:d}))}}).catch(function(){t||(console.warn("RBAC config fetch failed, using fallback."),U(e(e({},a),{auditLogConfig:f,rbacConfig:i})))}),function(){t=!0}}},[E,h,T,I,v,_]),a(r,e({client:u},{children:i("div",e({style:g.wrapper},{children:[i("div",e({style:g.header},{children:[i("button",e({type:"button",style:g.backButton,onClick:L},{children:[a(o,{size:16,strokeWidth:2}),"Back"]})),S&&a("p",e({style:g.headerTitle},{children:S})),b&&a("div",e({style:g.headerActions},{children:b}))]})),a("div",e({style:g.lmsContainer},{children:w?a(c,e({},w,{userDetails:m,app_integration_id:E,modeId:A}),"lms-explore"):a("p",e({style:g.loadingState},{children:"Loading..."}))}))]}))}))}export{m as LearningManagementWrapper,m as default};
1
+ import{__assign as e}from"tslib";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{ArrowLeft as t}from"lucide-react";import{QueryClient as r,QueryClientProvider as n}from"@tanstack/react-query";import o from"../LearningManagement/LearningManagement.js";var l={config:{CUSTOM_SCOPE_GROUP_NAME:"Preview",INSTANT_LEARNING_TYPE:"iL",MODEL:"claude-3.5-sonnet",CONFIG_MASTER_NAME:"preview-config",SCOPE_NAME:"Custom",ASSISTANT_NAME:"preview",ORGANIZATION_NAME:"techolution",BASE_URL:"https://devllmstudio.creativeworkspace.ai",BASE_WEBSOCKET_URL:"wss://devllmstudio.creativeworkspace.ai/graphql",CHAT_TITLE:"Preview",CHAT_TITLE_EDIT:"Preview Edit",FORM_TITLE:"Learning Details",INITIAL_CHAT_MESSAGE:"Hi",CATEGORY:"Global-Template",SOCKET_TIMEOUT:24e4},llmStudioUrl:"https://devllmstudio.creativeworkspace.ai",audacyBackendUrl:"https://dev-audacy-traffic-manager.techo.camp",auditLogConfig:{configId:"6a1825e9fb722c37637b9490"},ilLabels:{setupLabel:"Learning Setup",ruleTitle:"Learning Title",ruleDescriptionTitle:"Learning Description"},rbacConfig:{applicationName:"IL Mode - ILOTJ",applicationId:"6a22c19581f05dc3afc8ad57",moduleId:"6a22c19581f05dc3afc8ad8e",applicationModuleId:"6a22c19581f05dc3afc8ad88",applicationResourceId:"6a22c19681f05dc3afc8ad94",appsecRbacUrl:"https://dev-cw-appsec.techo.camp/granularApi",appsecBaseUrl:"https://dev-cw-appsec.techo.camp"}},c=new r,d={wrapper:{display:"flex",flexDirection:"column",height:"100%",minHeight:0},header:{display:"flex",alignItems:"center",gap:12,padding:"10px 0",borderBottom:"1px solid #EAECF0",flexShrink:0},backButton:{display:"inline-flex",alignItems:"center",gap:6,background:"none",border:"none",cursor:"pointer",fontSize:14,fontWeight:500,color:"#344054",padding:"4px 8px",borderRadius:6},headerTitle:{fontSize:14,fontWeight:600,color:"#1F2937",margin:0,flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},headerActions:{display:"flex",alignItems:"center",gap:8,marginLeft:"auto"},lmsContainer:{flex:1,minHeight:0,overflow:"hidden"}};function p(r){var p=r.userDetails,s=r.appIntegrationId,f=r.modeId,m=r.guidelineTitle,g=r.onBack,u=r.headerActions;return i(n,e({client:c},{children:a("div",e({style:d.wrapper},{children:[a("div",e({style:d.header},{children:[a("button",e({type:"button",style:d.backButton,onClick:g},{children:[i(t,{size:16,strokeWidth:2}),"Back"]})),m&&i("p",e({style:d.headerTitle},{children:m})),u&&i("div",e({style:d.headerActions},{children:u}))]})),i("div",e({style:d.lmsContainer},{children:i(o,e({},l,{userDetails:p,app_integration_id:s,modeId:f}),"lms-explore")}))]}))}))}export{p as LearningManagementWrapper,p as default};
2
2
  //# sourceMappingURL=LearningManagementWrapper.js.map
@@ -1,2 +1,2 @@
1
- import{__awaiter as t,__generator as n}from"tslib";import{endpoints as e}from"./endpoints.js";function r(r,o){return t(this,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,fetch(e.listInstances(r),{headers:{accept:"application/json, text/plain, */*",authorization:"Bearer ".concat(o)}})];case 1:if(!(t=n.sent()).ok)throw new Error("Failed to fetch guidelines: ".concat(t.status));return[2,t.json()]}})})}function o(r,o,i){return t(this,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,fetch(e.getRbacConfig(r,i),{headers:{accept:"application/json, text/plain, */*",authorization:"Bearer ".concat(o)}})];case 1:if(!(t=n.sent()).ok)throw new Error("Failed to fetch RBAC config: ".concat(t.status));return[4,t.json()];case 2:return[2,n.sent().data]}})})}export{r as fetchGuidelineInstances,o as fetchRBACConfig};
1
+ import{__awaiter as t,__generator as n}from"tslib";import{endpoints as e}from"./endpoints.js";function i(i,o){return t(this,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return[4,fetch(e.listInstances(i),{headers:{accept:"application/json, text/plain, */*",authorization:"Bearer ".concat(o)}})];case 1:if(!(t=n.sent()).ok)throw new Error("Failed to fetch guidelines: ".concat(t.status));return[2,t.json()]}})})}export{i as fetchGuidelineInstances};
2
2
  //# sourceMappingURL=api.js.map
@@ -1,2 +1,2 @@
1
- var n={listInstances:function(n){return"".concat(n,"/instant_learning/ilotj/listInstances?createdAt=desc")},getRbacConfig:function(n,t){return"".concat(n,"/instant_learning/ilotj/application/getRBACAuditConfig/").concat(t)}};export{n as endpoints};
1
+ var t={listInstances:function(t){return"".concat(t,"/instant_learning/ilotj/listInstances?createdAt=desc")}};export{t as endpoints};
2
2
  //# sourceMappingURL=endpoints.js.map
@@ -0,0 +1,2 @@
1
+ import"react";var t="data:image/svg+xml,%3Csvg%20width%3D%22160%22%20height%3D%22153%22%20viewBox%3D%220%200%20160%20153%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M79.2744%20143.735C116.627%20143.735%20146.909%20113.508%20146.909%2076.223C146.909%2038.9359%20116.627%208.71106%2079.2744%208.71106C41.9192%208.71106%2011.6367%2038.9359%2011.6367%2076.223C11.6367%20113.508%2041.9192%20143.735%2079.2744%20143.735Z%22%20fill%3D%22%23F8FAFC%22%2F%3E%3Cpath%20d%3D%22M116.902%2030.8984H43.3269C38.7417%2030.8984%2035.0234%2034.7993%2035.0234%2039.6097H125.205C125.205%2034.7993%20121.489%2030.8984%20116.902%2030.8984Z%22%20fill%3D%22%23D0D9E4%22%2F%3E%3Cpath%20d%3D%22M35.0234%2039.6094H125.205V109.239C125.205%20112.335%20123.994%20115.304%20121.834%20117.494C119.674%20119.684%20116.745%20120.914%20113.692%20120.914H46.5394C43.4834%20120.914%2040.555%20119.684%2038.3973%20117.494C36.2372%20115.304%2035.0234%20112.335%2035.0234%20109.239V39.6094Z%22%20fill%3D%22%23F1F5F9%22%2F%3E%3Cpath%20d%3D%22M125.155%2039.6592V109.239C125.155%20112.322%20123.949%20115.279%20121.798%20117.459C119.647%20119.639%20116.731%20120.864%20113.691%20120.864H46.5391C43.4967%20120.864%2040.5809%20119.639%2038.4326%20117.459C36.2818%20115.279%2035.0732%20112.322%2035.0732%20109.239V39.6592H125.155Z%22%20stroke%3D%22%2364748B%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%220.1%22%2F%3E%3Cpath%20d%3D%22M70.571%2048.3203H48.9307C48.4799%2048.3203%2048.1133%2049.295%2048.1133%2050.4981C48.1133%2051.7012%2048.4799%2052.6759%2048.9307%2052.6759H70.571C71.0218%2052.6759%2071.386%2051.7012%2071.386%2050.4981C71.386%2049.295%2071.0218%2048.3203%2070.571%2048.3203Z%22%20fill%3D%22url%28%23paint0_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2067.1953H48.9307C48.4799%2067.1953%2048.1133%2068.17%2048.1133%2069.3731C48.1133%2070.5762%2048.4799%2071.5509%2048.9307%2071.5509H70.571C71.0218%2071.5509%2071.386%2070.5762%2071.386%2069.3731C71.386%2068.17%2071.0218%2067.1953%2070.571%2067.1953Z%22%20fill%3D%22url%28%23paint1_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2086.0703H48.9307C48.4799%2086.0703%2048.1133%2087.0468%2048.1133%2088.2493C48.1133%2089.4517%2048.4799%2090.4259%2048.9307%2090.4259H70.571C71.0218%2090.4259%2071.386%2089.4517%2071.386%2088.2493C71.386%2087.0468%2071.0218%2086.0703%2070.571%2086.0703Z%22%20fill%3D%22url%28%23paint2_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%20104.945H48.9307C48.4799%20104.945%2048.1133%20105.922%2048.1133%20107.124C48.1133%20108.327%2048.4799%20109.301%2048.9307%20109.301H70.571C71.0218%20109.301%2071.386%20108.327%2071.386%20107.124C71.386%20105.922%2071.0218%20104.945%2070.571%20104.945Z%22%20fill%3D%22url%28%23paint3_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2048.3203H78.6367C77.8481%2048.3203%2077.207%2049.295%2077.207%2050.4981C77.207%2051.7012%2077.8481%2052.6759%2078.6367%2052.6759H116.507C117.296%2052.6759%20117.934%2051.7012%20117.934%2050.4981C117.934%2049.295%20117.296%2048.3203%20116.507%2048.3203Z%22%20fill%3D%22url%28%23paint4_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2086.0703H78.6367C77.8481%2086.0703%2077.207%2087.045%2077.207%2088.2481C77.207%2089.4512%2077.8481%2090.4259%2078.6367%2090.4259H116.507C117.296%2090.4259%20117.934%2089.4512%20117.934%2088.2481C117.934%2087.045%20117.296%2086.0703%20116.507%2086.0703Z%22%20fill%3D%22url%28%23paint5_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2067.1953H78.6367C77.8481%2067.1953%2077.207%2068.17%2077.207%2069.3731C77.207%2070.5762%2077.8481%2071.5509%2078.6367%2071.5509H116.507C117.296%2071.5509%20117.934%2070.5762%20117.934%2069.3731C117.934%2068.17%20117.296%2067.1953%20116.507%2067.1953Z%22%20fill%3D%22url%28%23paint6_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%20104.945H78.6367C77.8481%20104.945%2077.207%20105.92%2077.207%20107.123C77.207%20108.326%2077.8481%20109.301%2078.6367%20109.301H116.507C117.296%20109.301%20117.934%20108.326%20117.934%20107.123C117.934%20105.92%20117.296%20104.945%20116.507%20104.945Z%22%20fill%3D%22url%28%23paint7_linear_1020_82405%29%22%2F%3E%3CforeignObject%20x%3D%2270.7116%22%20y%3D%2260.6843%22%20width%3D%2279.8961%22%20height%3D%2279.81%22%3E%3Cdiv%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%20style%3D%22backdrop-filter%3Ablur%288.34px%29%3Bclip-path%3Aurl%28%23bgblur_0_1020_82405_clip_path%29%3Bheight%3A100%25%3Bwidth%3A100%25%22%3E%3C%2Fdiv%3E%3C%2FforeignObject%3E%3Cpath%20data-figma-bg-blur-radius%3D%2216.6751%22%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M110.659%2085.3419C111.63%2085.3458%20112.413%2086.1299%20112.411%2087.0961L112.395%2098.2651L123.584%2098.2817C124.555%2098.2856%20125.338%2099.0696%20125.339%20100.038C125.335%20101.007%20124.55%20101.789%20123.579%20101.79L112.39%20101.773L112.373%20112.942C112.372%20113.908%20111.586%20114.69%20110.615%20114.691C109.645%20114.687%20108.862%20113.903%20108.861%20112.935L108.877%20101.766L97.6878%20101.749C96.7198%20101.748%2095.9366%20100.964%2095.9355%2099.9948C95.9395%2099.0261%2096.725%2098.2443%2097.693%2098.2458L108.883%2098.2623L108.899%2087.0934C108.903%2086.1247%20109.689%2085.3429%20110.659%2085.3419Z%22%20fill%3D%22%23CBD5E1%22%2F%3E%3Cdefs%3E%3CclipPath%20id%3D%22bgblur_0_1020_82405_clip_path%22%20transform%3D%22translate%28-70.7116%20-60.6843%29%22%3E%3Cpath%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%2F%3E%3C%2FclipPath%3E%3ClinearGradient%20id%3D%22paint0_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2252.497%22%20x2%3D%2272.7628%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2271.372%22%20x2%3D%2272.7628%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint2_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2290.247%22%20x2%3D%2272.7628%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint3_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%22109.122%22%20x2%3D%2272.7628%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint4_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2252.497%22%20x2%3D%22120.344%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint5_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2290.247%22%20x2%3D%22120.344%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint6_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2271.372%22%20x2%3D%22120.344%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint7_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%22109.122%22%20x2%3D%22120.344%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E";export{t as default};
2
+ //# sourceMappingURL=Search-result(add new).svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Search-result(add new).svg.js","sources":["../../../../src/features/LearningManagement/assets/Search-result(add new).svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%22160%22%20height%3D%22153%22%20viewBox%3D%220%200%20160%20153%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M79.2744%20143.735C116.627%20143.735%20146.909%20113.508%20146.909%2076.223C146.909%2038.9359%20116.627%208.71106%2079.2744%208.71106C41.9192%208.71106%2011.6367%2038.9359%2011.6367%2076.223C11.6367%20113.508%2041.9192%20143.735%2079.2744%20143.735Z%22%20fill%3D%22%23F8FAFC%22%2F%3E%3Cpath%20d%3D%22M116.902%2030.8984H43.3269C38.7417%2030.8984%2035.0234%2034.7993%2035.0234%2039.6097H125.205C125.205%2034.7993%20121.489%2030.8984%20116.902%2030.8984Z%22%20fill%3D%22%23D0D9E4%22%2F%3E%3Cpath%20d%3D%22M35.0234%2039.6094H125.205V109.239C125.205%20112.335%20123.994%20115.304%20121.834%20117.494C119.674%20119.684%20116.745%20120.914%20113.692%20120.914H46.5394C43.4834%20120.914%2040.555%20119.684%2038.3973%20117.494C36.2372%20115.304%2035.0234%20112.335%2035.0234%20109.239V39.6094Z%22%20fill%3D%22%23F1F5F9%22%2F%3E%3Cpath%20d%3D%22M125.155%2039.6592V109.239C125.155%20112.322%20123.949%20115.279%20121.798%20117.459C119.647%20119.639%20116.731%20120.864%20113.691%20120.864H46.5391C43.4967%20120.864%2040.5809%20119.639%2038.4326%20117.459C36.2818%20115.279%2035.0732%20112.322%2035.0732%20109.239V39.6592H125.155Z%22%20stroke%3D%22%2364748B%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%220.1%22%2F%3E%3Cpath%20d%3D%22M70.571%2048.3203H48.9307C48.4799%2048.3203%2048.1133%2049.295%2048.1133%2050.4981C48.1133%2051.7012%2048.4799%2052.6759%2048.9307%2052.6759H70.571C71.0218%2052.6759%2071.386%2051.7012%2071.386%2050.4981C71.386%2049.295%2071.0218%2048.3203%2070.571%2048.3203Z%22%20fill%3D%22url%28%23paint0_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2067.1953H48.9307C48.4799%2067.1953%2048.1133%2068.17%2048.1133%2069.3731C48.1133%2070.5762%2048.4799%2071.5509%2048.9307%2071.5509H70.571C71.0218%2071.5509%2071.386%2070.5762%2071.386%2069.3731C71.386%2068.17%2071.0218%2067.1953%2070.571%2067.1953Z%22%20fill%3D%22url%28%23paint1_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2086.0703H48.9307C48.4799%2086.0703%2048.1133%2087.0468%2048.1133%2088.2493C48.1133%2089.4517%2048.4799%2090.4259%2048.9307%2090.4259H70.571C71.0218%2090.4259%2071.386%2089.4517%2071.386%2088.2493C71.386%2087.0468%2071.0218%2086.0703%2070.571%2086.0703Z%22%20fill%3D%22url%28%23paint2_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%20104.945H48.9307C48.4799%20104.945%2048.1133%20105.922%2048.1133%20107.124C48.1133%20108.327%2048.4799%20109.301%2048.9307%20109.301H70.571C71.0218%20109.301%2071.386%20108.327%2071.386%20107.124C71.386%20105.922%2071.0218%20104.945%2070.571%20104.945Z%22%20fill%3D%22url%28%23paint3_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2048.3203H78.6367C77.8481%2048.3203%2077.207%2049.295%2077.207%2050.4981C77.207%2051.7012%2077.8481%2052.6759%2078.6367%2052.6759H116.507C117.296%2052.6759%20117.934%2051.7012%20117.934%2050.4981C117.934%2049.295%20117.296%2048.3203%20116.507%2048.3203Z%22%20fill%3D%22url%28%23paint4_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2086.0703H78.6367C77.8481%2086.0703%2077.207%2087.045%2077.207%2088.2481C77.207%2089.4512%2077.8481%2090.4259%2078.6367%2090.4259H116.507C117.296%2090.4259%20117.934%2089.4512%20117.934%2088.2481C117.934%2087.045%20117.296%2086.0703%20116.507%2086.0703Z%22%20fill%3D%22url%28%23paint5_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2067.1953H78.6367C77.8481%2067.1953%2077.207%2068.17%2077.207%2069.3731C77.207%2070.5762%2077.8481%2071.5509%2078.6367%2071.5509H116.507C117.296%2071.5509%20117.934%2070.5762%20117.934%2069.3731C117.934%2068.17%20117.296%2067.1953%20116.507%2067.1953Z%22%20fill%3D%22url%28%23paint6_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%20104.945H78.6367C77.8481%20104.945%2077.207%20105.92%2077.207%20107.123C77.207%20108.326%2077.8481%20109.301%2078.6367%20109.301H116.507C117.296%20109.301%20117.934%20108.326%20117.934%20107.123C117.934%20105.92%20117.296%20104.945%20116.507%20104.945Z%22%20fill%3D%22url%28%23paint7_linear_1020_82405%29%22%2F%3E%3CforeignObject%20x%3D%2270.7116%22%20y%3D%2260.6843%22%20width%3D%2279.8961%22%20height%3D%2279.81%22%3E%3Cdiv%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%20style%3D%22backdrop-filter%3Ablur%288.34px%29%3Bclip-path%3Aurl%28%23bgblur_0_1020_82405_clip_path%29%3Bheight%3A100%25%3Bwidth%3A100%25%22%3E%3C%2Fdiv%3E%3C%2FforeignObject%3E%3Cpath%20data-figma-bg-blur-radius%3D%2216.6751%22%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M110.659%2085.3419C111.63%2085.3458%20112.413%2086.1299%20112.411%2087.0961L112.395%2098.2651L123.584%2098.2817C124.555%2098.2856%20125.338%2099.0696%20125.339%20100.038C125.335%20101.007%20124.55%20101.789%20123.579%20101.79L112.39%20101.773L112.373%20112.942C112.372%20113.908%20111.586%20114.69%20110.615%20114.691C109.645%20114.687%20108.862%20113.903%20108.861%20112.935L108.877%20101.766L97.6878%20101.749C96.7198%20101.748%2095.9366%20100.964%2095.9355%2099.9948C95.9395%2099.0261%2096.725%2098.2443%2097.693%2098.2458L108.883%2098.2623L108.899%2087.0934C108.903%2086.1247%20109.689%2085.3429%20110.659%2085.3419Z%22%20fill%3D%22%23CBD5E1%22%2F%3E%3Cdefs%3E%3CclipPath%20id%3D%22bgblur_0_1020_82405_clip_path%22%20transform%3D%22translate%28-70.7116%20-60.6843%29%22%3E%3Cpath%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%2F%3E%3C%2FclipPath%3E%3ClinearGradient%20id%3D%22paint0_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2252.497%22%20x2%3D%2272.7628%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2271.372%22%20x2%3D%2272.7628%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint2_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2290.247%22%20x2%3D%2272.7628%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint3_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%22109.122%22%20x2%3D%2272.7628%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint4_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2252.497%22%20x2%3D%22120.344%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint5_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2290.247%22%20x2%3D%22120.344%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint6_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2271.372%22%20x2%3D%22120.344%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint7_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%22109.122%22%20x2%3D%22120.344%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E\""],"names":["EmptyResultIconSVG"],"mappings":"cA0KA,IAAAA,EAAe"}
@@ -0,0 +1,2 @@
1
+ import{__assign as e,__awaiter as r,__generator as n,__spreadArray as t}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useMemo as u,useEffect as c}from"react";import{Dialog as d,Box as p,Typography as f,IconButton as m,DialogContent as h,CircularProgress as g}from"@mui/material";import{X as v,Search as b,ArrowRight as x}from"lucide-react";import{Toast as S}from"primereact/toast";import{v4 as y}from"uuid";import w from"../../assets/Search-result(add new).svg.js";import C from"../../store/useAuthStore.js";import{IL_CONFIG_CONSTANTS as _}from"../../config.js";import{retrieveGenreScopes as O,fetchStationsByKeyword as F,searchScopes as T,inheritScope as A,deleteRuleSet as N,updateStation as M,createRuleSet as E}from"../../apis/scopeApis.js";import k from"./InputField.js";import D from"./StationAutocomplete.js";import z from"../CardSkeleton.js";import P from"./OnboardingLoader.js";import B from"./TemplateCard.js";var j=[{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"},{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"}],I=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],L=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],R=function(R){var W,U=R.isOpen,q=R.onClose,G=R.onBoardStation,Y=R.app_integration_id,H=R.token,K=R.stationNameParam,X=a(null),J=X[0],Q=X[1],V=a([]),Z=V[0],$=V[1],ee=a(0),re=ee[0],ne=ee[1],te=a(!0),oe=te[0],ie=te[1],le=a(!1),ae=le[0],se=le[1],ue=a([]),ce=ue[0],de=ue[1],pe=a(""),fe=pe[0],me=pe[1],he=a(""),ge=he[0],ve=he[1],be=a(!1),xe=be[0],Se=be[1],ye=a(!1),we=ye[0],Ce=ye[1],_e=a(null),Oe=_e[0],Fe=_e[1],Te=a(!1),Ae=Te[0],Ne=Te[1],Me=a(0),Ee=Me[0],ke=Me[1],De=a(""),ze=De[0],Pe=De[1],Be=C().user,je=s(null),Ie=s(null),Le=s(null),Re=s(null),We=a({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),Ue=We[0],qe=We[1],Ge=function(e,r){return e.find(function(e){return e.value===r})||null},Ye=u(function(){return Z.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[Z]),He=u(function(){var e,r,n;if(!Ue.genre)return null;var t=Z.find(function(e){return e.scope_name===Ue.genre});return t?{id:t.id,title:t.scope_name||"Unnamed Template",description:(null===(e=t.description)||void 0===e?void 0:e.trim())||"No description available.",inheritedText:(null===(r=t.inheritance)||void 0===r?void 0:r[0])||void 0,rulesCount:t.rules_count||0,tiersCount:t.tier_count||0,isCopy:null!==(n=t.is_copy)&&void 0!==n&&n}:null},[Ue.genre,Z]);c(function(){return function(){Le.current&&clearTimeout(Le.current)}},[]);var Ke=function(e){return r(void 0,void 0,void 0,function(){var r,o,i;return n(this,function(n){switch(n.label){case 0:if(ae)return[2];se(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,O({limit:"20",offset:String(e)})];case 2:return"success"===(null==(r=n.sent())?void 0:r.status)&&Array.isArray(null==r?void 0:r.data)?(o=r.data,$(function(r){if(0===e)return o;var n=new Set(r.map(function(e){return e.id})),i=o.filter(function(e){return!n.has(e.id)});return t(t([],r,!0),i,!0)}),o.length<20?ie(!1):ie(!0),ne(e+20)):ie(!1),[3,5];case 3:return i=n.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",i),ie(!1),[3,5];case 4:return se(!1),[7];case 5:return[2]}})})};c(function(){if(U&&($([]),ne(0),ie(!0),Ke(0),K)){Pe(K);r(void 0,void 0,void 0,function(){var e,r,t;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,F(K,!0)];case 1:return!0===(null==(e=n.sent())?void 0:e.success)&&Array.isArray(null==e?void 0:e.data)&&(r=e.data.find(function(e){var r;return(null===(r=e.station_name)||void 0===r?void 0:r.toLowerCase())===K.toLowerCase()&&!e.ruleset_id}),r&&Q(r)),[3,3];case 2:return t=n.sent(),console.error("[StationOnboard] Error auto-selecting station:",t),[3,3];case 3:return[2]}})})}},[U,K]);c(function(){qe(J?function(r){var n;return e(e({},r),{region:null!==(n=J.market)&&void 0!==n?n:""})}:{region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""})},[J]),c(function(){var e=setTimeout(function(){ve(fe)},500);return function(){return clearTimeout(e)}},[fe]),c(function(){r(void 0,void 0,void 0,function(){var e,r,t;return n(this,function(n){switch(n.label){case 0:if(!ge.trim())return de([]),[2];Se(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,T({search_string:ge})];case 2:return"success"===(null==(e=n.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(r=e.data.map(function(e){var r,n,t;return{id:e.id,title:e.scope_name||"Unnamed Template",description:(null===(r=e.description)||void 0===r?void 0:r.trim())||"No description available.",inheritedText:(null===(n=e.inheritance)||void 0===n?void 0:n[0])||void 0,rulesCount:e.rules_count||0,tiersCount:e.tier_count||0,isCopy:null!==(t=e.is_copy)&&void 0!==t&&t}}),de(r)):de([]),[3,5];case 3:return t=n.sent(),console.error("[StationOnboard] Error searching scopes:",t),de([]),[3,5];case 4:return Se(!1),[7];case 5:return[2]}})})},[ge]),c(function(){!ge.trim()&&He&&Fe(He.id)},[ge,He]);var Xe=function(){setTimeout(function(){Re.current&&Re.current.scrollTo({top:Re.current.scrollHeight,behavior:"smooth"})},100)},Je=function(){Pe(""),Q(null),qe({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),de([]),me(""),Fe(null),q()},Qe=function(r,n){var t;if("primeTime"!==r){var o=null!==(t=null==n?void 0:n.value)&&void 0!==t?t:"";qe(function(n){var t;return e(e({},n),((t={})[r]=String(o),t))}),"genre"===r&&(Ce(!0),Le.current&&clearTimeout(Le.current),Le.current=setTimeout(function(){var e=Z.find(function(e){return e.scope_name===o});Fe(e?e.id:null),Ce(!1)},800))}else{var i=(null==n?void 0:n.value)?String(n.value):"";qe(function(r){return e(e({},r),{primeTime:i?[i]:[]})})}},Ve=Boolean(J&&Ue.region&&Ue.primeTime.length>0&&Ue.genre);return o(d,e({open:U,onClose:Je,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"}}},{children:[i(S,{ref:je}),o(p,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[o(p,e({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[i(f,e({sx:{fontSize:"18px",fontWeight:600,color:"#19213D"}},{children:"Onboard a Station"})),i(f,e({sx:{fontSize:"16px",fontWeight:400,color:"#666F8D"}},{children:"Onboard a station to start configuring learnings."}))]})),i(m,e({onClick:Je,disabled:Ae,sx:{color:"#19213D"}},{children:i(v,{size:24})}))]})),o(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[i(P,{isLoading:Ae,currentStep:Ee,onComplete:function(){Ne(!1);var e=Ie.current;Je(),G(e||void 0),Ie.current=null}}),o(p,e({sx:{display:"flex",flex:1,paddingY:"14px",paddingX:"20px",gap:3,overflowY:"hidden"}},{children:[o(p,e({ref:Re,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5",height:"100%",overflowY:"auto"}},{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Basic Details"})),i(f,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Set up basic station details to unlock AI recommended scopes."})),o(p,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[o(p,e({className:"space-y-1.5"},{children:[o("label",e({className:"text-sm font-medium text-[#19213D]"},{children:[i("span",e({className:"mr-0.5 text-xs font-semibold text-[#8F2C23]"},{children:"*"})),"Station Name/Call Letters"]})),i(D,{value:ze,onChange:Pe,onStationSelect:function(e){return Q(e)}})]})),i(k,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:Ue.region||void 0,isSearchable:!1}),i(k,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:j,value:Ge(j,(null===(W=Ue.primeTime)||void 0===W?void 0:W[0])||""),onOptionChange:function(e){return Qe("primeTime",e)},isSearchable:!1}),i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{required:!0,label:"Genre",placeholder:"Select Genre",options:Ye,value:Ge(Ye,Ue.genre),onOptionChange:function(e){return Qe("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!ae&&oe&&Ke(re)},isLoadingOptions:ae,hasMoreOptions:oe})})),i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{label:"Station Type",placeholder:"None",options:I,value:Ge(I,Ue.type),onOptionChange:function(r){Qe("type",r),"Low Sellout"!==(null==r?void 0:r.value)&&qe(function(r){return e(e({},r),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===Ue.type&&i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:L,value:Ge(L,Ue.lowSelloutConfig),onOptionChange:function(e){return Qe("lowSelloutConfig",e)},isSearchable:!1})}))]}))]})),i(p,e({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column",height:"100%",overflowY:"auto"}},{children:Ue.genre?o(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Matching scope for your station"})),i(p,e({sx:{display:"flex",flexDirection:"column",gap:2,mb:4}},{children:we?i(z,{}):He?i(B,e({},He,{isSelected:Oe===He.id,onSelect:Fe}),He.id):null})),i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Other available stations"})),o("div",e({className:"relative mb-4 w-full"},{children:[i("input",{type:"text",value:fe,onChange:function(e){return me(e.target.value)},placeholder:"Search for station...",className:"w-full rounded-lg border border-[#E2E8F0] px-10 py-[7px] text-[12px] outline-none transition-all placeholder:text-[#BAC0CC] focus:border-blue-500 focus:ring-1 focus:ring-blue-500"}),i(b,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",size:16})]})),o(p,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[xe&&i(z,{}),!xe&&0===ce.length&&ge.trim()&&o(f,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',ge,'".']})),!xe&&ce.map(function(r){return i(B,e({},r,{isSelected:Oe===r.id,onSelect:Fe}),r.id)})]}))]}):o(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Fill in the station details to load AI recommended scopes"})),i(f,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:3}},{children:"AI will recommend the most relevant scope for this station."})),i(p,e({sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.5,py:10}},{children:i("img",{src:w,alt:"Empty Result"})}))]})}))]}))]})),o(p,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[i("button",e({onClick:Je,disabled:Ae,style:{padding:"7px 10px",borderRadius:"6px",color:"#64748B",border:"1px solid #E2E8F0",backgroundColor:"#fff",cursor:"pointer",fontSize:"14px",fontWeight:500}},{children:"Cancel"})),i("button",e({onClick:function(){return r(void 0,void 0,void 0,function(){var r,o,i,l,a,s,u,c,d,p,f,m,h,g,v,b,x,S;return n(this,function(n){switch(n.label){case 0:if(!J||!Oe)return console.error("[StationOnboard] Missing required data for onboarding"),[2];r=He?t([He],ce,!0):ce,o=r.find(function(e){return e.id===Oe}),i=null!==(h=null==o?void 0:o.isCopy)&&void 0!==h&&h,Ne(!0),ke(0),l=null,n.label=1;case 1:return n.trys.push([1,3,,4]),a={topic:"customRuleSet",customScopeGroupName:(null==_?void 0:_.CUSTOM_SCOPE_GROUP_NAME)||"Audacy-Traffic-Manager",scopeDescription:J.station_name||"New Station",parentScopeId:null,customScopeName:J.station_name||"New Station",customScopeId:y(),createByName:(null==Be?void 0:Be.firstname)||"System",createdBy:(null==Be?void 0:Be.email)||"system@audacy.com",applicationMappingId:Y},console.log("[StationOnboard] Step 1: Creating rule set with payload:",a),[4,E(a,H)];case 2:if(s=n.sent(),!(l=null===(g=null==s?void 0:s.data)||void 0===g?void 0:g.scopeId))throw new Error("Failed to create scope - no scopeId returned");return ke(1),[3,4];case 3:return u=n.sent(),console.error("[StationOnboard] Error creating rule set:",u),null===(v=je.current)||void 0===v||v.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),Ne(!1),ke(0),[2];case 4:return n.trys.push([4,6,,11]),c={market:J.market,region:J.region,primetime_windows:Ue.primeTime,genre:Ue.genre,station_type:""===Ue.type?null:Ue.type,low_sellout_configurations:"Low Sellout"===Ue.type?Ue.lowSelloutConfig:null,ruleset_id:l,station_guid:J.station_guid,station_name:J.station_name||"New Station"},console.log("[StationOnboard] Step 2: Updating station with payload:",c),[4,M(c)];case 5:return n.sent(),ke(2),[3,11];case 6:d=n.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",d),409===d.status?(null===(b=je.current)||void 0===b||b.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),Q(null),Fe(null),Pe(""),qe(function(r){return e(e({},r),{region:""})})):null===(x=je.current)||void 0===x||x.show({severity:"error",life:2500,summary:"Error updating station",detail:"Please try again."}),n.label=7;case 7:return n.trys.push([7,9,,10]),[4,N(l,H)];case 8:return n.sent(),[3,10];case 9:return p=n.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",p),[3,10];case 10:return Ne(!1),ke(0),[2];case 11:return n.trys.push([11,13,,14]),f={source_scope_id:Oe,target_scope_id:l,is_copy_parent_variant_id:i},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",f),[4,A(f)];case 12:return n.sent(),ke(3),[3,14];case 13:return m=n.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",m),null===(S=je.current)||void 0===S||S.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),Ne(!1),ke(0),[2];case 14:return Ie.current=l,[2]}})})},disabled:!Ve||Ae,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:Ve?"#2563EB":"#BFDBFE",color:"#fff",cursor:Ve&&!Ae?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:o(l,Ae?{children:[i(g,{size:16,color:"inherit"}),i("span",{children:"Onboarding..."})]}:{children:[i("span",{children:"Onboard Station"}),i(x,{size:16})]})}))]}))]}))};export{R as default};
2
+ //# sourceMappingURL=BackwardStationOnboardModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BackwardStationOnboardModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e=new Set(["ResizeObserver loop completed with undelivered notifications.","ResizeObserver loop limit exceeded"]),n=!1,o=function(n){return"string"==typeof n&&e.has(n)},t=function(){n||"undefined"==typeof window||(n=!0,window.addEventListener("error",function(e){o(e.message)&&e.stopImmediatePropagation()},!0),window.addEventListener("unhandledrejection",function(e){var n;o((null===(n=e.reason)||void 0===n?void 0:n.message)||e.reason)&&(e.preventDefault(),e.stopImmediatePropagation())},!0))};export{t as installResizeObserverErrorGuard};
2
+ //# sourceMappingURL=resizeObserverErrorGuard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resizeObserverErrorGuard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{default as InstantLearning}from"./features/InstantLearning/InstantLearning.js";export{default as WtaWnta}from"./features/WtaWnta/WtaWnta.js";export{default as BookLearning}from"./features/DocumentLearning/DocumentLearning.js";export{default as ILOTJ}from"./features/IL-OTJ/ILOTJ.js";export{Button}from"./features/IL-OTJ/_components/atoms/Button/Button.js";export{Dropdown}from"./features/IL-OTJ/_components/atoms/Dropdown/Dropdown.js";export{Toggle}from"./features/IL-OTJ/_components/atoms/Toggle/Toggle.js";export{Textarea}from"./features/IL-OTJ/_components/atoms/Textarea/Textarea.js";export{ConditionList}from"./features/IL-OTJ/_components/molecules/Condition/ConditionList.js";export{SectionWrapper}from"./features/IL-OTJ/_components/molecules/Sections/SectionWrapper.js";export{SeparationRow}from"./features/IL-OTJ/_components/molecules/SeperationRow/SeparationRow.js";export{ConfigSection}from"./features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.js";export{TextSection}from"./features/IL-OTJ/_components/organisms/TextSection/TextSection.js";export{ScopeSection}from"./features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js";export{ConditionSection}from"./features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js";export{TrafficManagerTemplate}from"./features/IL-OTJ/_components/templates/TrafficManager/TrafficManagerTemplate.js";export{Testing}from"./features/IL-OTJ/_components/templates/Testing/Testing.js";export{TemplateList,TemplateMap}from"./features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";export{extractAndParseResponse,extractAndParseWithProperty,extractTextFromChildren,extractVariantIds,parseValidationData,useHeaderObserver}from"./features/IL-OTJ/helpers/utils.js";export{CitationProvider,useCitations}from"./features/IL-OTJ/store/CitationsContext.js";export{dummyDat,getVariantInfo}from"./features/IL-OTJ/ILOTJTest.js";export{default as LearningManagement}from"./features/LearningManagement/LearningManagement.js";export{default as ILMarketplaceWrapper,IL_MARKETPLACE_TAB_ID,MY_KNOWLEDGE_BASES_TAB_ID,SAVED_TAB_ID}from"./ILMarketplaceWrapper.js";export{default as TeachMePlugin,TemplateRegistry}from"./features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js";import"./features/LearningManagement/LearningManagementTest.js";export{default as ScopeSelector}from"./features/LearningManagement/ScopeSelector.js";export{setApiDebug}from"./api/transport.js";export{default as ContinueWithTemplateModal}from"./ContinueWithTemplateModal.js";export{GuidelineCart}from"./features/IL-marketplace/components/GuidelineCart.js";export{GuidelineCartHeader}from"./features/IL-marketplace/components/GuidelineCartHeader.js";export{GuidelineCartItem}from"./features/IL-marketplace/components/GuidelineCartItem.js";export{GuidelineEmptyState}from"./features/IL-marketplace/components/GuidelineEmptyState.js";export{GuidelineHeader}from"./features/IL-marketplace/components/GuidelineHeader.js";export{GuidelineIconButton}from"./features/IL-marketplace/components/GuidelineIconButton.js";export{GuidelineLandingPage}from"./features/IL-marketplace/components/GuidelineLandingPage.js";export{GuidelineFilterPanel}from"./features/IL-marketplace/components/GuidelineFilterPanel.js";export{GuidelineLibrary}from"./features/IL-marketplace/components/GuidelineLibrary.js";export{GuidelineLibraryCard}from"./features/IL-marketplace/components/GuidelineLibraryCard.js";export{LearningManagementWrapper}from"./features/IL-marketplace/components/LearningManagementWrapper.js";export{GuidelineProceedButton}from"./features/IL-marketplace/components/GuidelineProceedButton.js";export{GuidelineSelectButton}from"./features/IL-marketplace/components/GuidelineSelectButton.js";export{GuidelineCardMenu,createGuidelineCardMenuItems}from"./features/IL-marketplace/components/GuidelineCardMenu.js";export{GuidelineConfirmDialog}from"./features/IL-marketplace/components/GuidelineConfirmDialog.js";export{useGuidelineSelection}from"./features/IL-marketplace/hooks/useGuidelineSelection.js";export{CONFIGURABLE_GUIDELINE_STATUSES,DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE,DEFAULT_GUIDELINE_LABELS,STATUS_ACTION_MODE_NAME}from"./features/IL-marketplace/constants.js";export{createGuidelineId,cx,defaultFormatAddedOnLabel,getAppIntegrationId,getGuidelineDate,getGuidelineDescription,getGuidelineDisplayDescription,getGuidelineId,getGuidelineTitle,isInstantLearningGuideline,mergeGuidelineLabels}from"./features/IL-marketplace/utils.js";export{getGuidelineWorkspaceActions,getGuidelineWorkspaceSnapshot}from"./features/IL-marketplace/workspace/workspace.runtime.js";export{useGuidelineWorkspace,useGuidelineWorkspaceActions,useOptionalGuidelineWorkspace,useOptionalGuidelineWorkspaceActions}from"./features/IL-marketplace/workspace/useGuidelineWorkspace.js";export{clearGuidelineCartClearPending,clearInstantLearningGuidelineCartPresent,getGuidelineSessionId,markGuidelineCartClearPending,rotateGuidelineSessionId}from"./features/IL-marketplace/services/guideline.session.js";export{removeInstantLearningGuidelinesFromCart}from"./features/IL-marketplace/services/instant-learning.api.js";export{closeGuidelineOverlayWithSync}from"./features/IL-marketplace/utils/guidelineOverlay.js";export{dataCartFileToGuidelineFileItem,getDataCartFilesFromResponse,isGuidelineDataCartFile,mergeGuidelineFiles}from"./features/IL-marketplace/utils/guidelineFiles.js";export{syncGuidelineCartWithMemstore}from"./features/IL-marketplace/services/guideline.cart.api.js";export{guidelineQueryClient}from"./features/IL-marketplace/queryClient.js";
1
+ export{default as InstantLearning}from"./features/InstantLearning/InstantLearning.js";export{default as WtaWnta}from"./features/WtaWnta/WtaWnta.js";export{default as BookLearning}from"./features/DocumentLearning/DocumentLearning.js";export{default as ILOTJ}from"./features/IL-OTJ/ILOTJ.js";export{Button}from"./features/IL-OTJ/_components/atoms/Button/Button.js";export{Dropdown}from"./features/IL-OTJ/_components/atoms/Dropdown/Dropdown.js";export{Toggle}from"./features/IL-OTJ/_components/atoms/Toggle/Toggle.js";export{Textarea}from"./features/IL-OTJ/_components/atoms/Textarea/Textarea.js";export{ConditionList}from"./features/IL-OTJ/_components/molecules/Condition/ConditionList.js";export{SectionWrapper}from"./features/IL-OTJ/_components/molecules/Sections/SectionWrapper.js";export{SeparationRow}from"./features/IL-OTJ/_components/molecules/SeperationRow/SeparationRow.js";export{ConfigSection}from"./features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.js";export{TextSection}from"./features/IL-OTJ/_components/organisms/TextSection/TextSection.js";export{ScopeSection}from"./features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js";export{ConditionSection}from"./features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js";export{TrafficManagerTemplate}from"./features/IL-OTJ/_components/templates/TrafficManager/TrafficManagerTemplate.js";export{Testing}from"./features/IL-OTJ/_components/templates/Testing/Testing.js";export{TemplateList,TemplateMap}from"./features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";export{extractAndParseResponse,extractAndParseWithProperty,extractTextFromChildren,extractVariantIds,parseValidationData,useHeaderObserver}from"./features/IL-OTJ/helpers/utils.js";export{CitationProvider,useCitations}from"./features/IL-OTJ/store/CitationsContext.js";export{dummyDat,getVariantInfo}from"./features/IL-OTJ/ILOTJTest.js";export{default as LearningManagement}from"./features/LearningManagement/LearningManagement.js";export{default as ILMarketplaceWrapper,IL_MARKETPLACE_TAB_ID,MY_KNOWLEDGE_BASES_TAB_ID,SAVED_TAB_ID}from"./ILMarketplaceWrapper.js";export{default as TeachMePlugin,TemplateRegistry}from"./features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js";import"./features/LearningManagement/LearningManagementTest.js";export{default as ScopeSelector}from"./features/LearningManagement/ScopeSelector.js";export{setApiDebug}from"./api/transport.js";export{default as ContinueWithTemplateModal}from"./ContinueWithTemplateModal.js";export{GuidelineCart}from"./features/IL-marketplace/components/GuidelineCart.js";export{GuidelineCartHeader}from"./features/IL-marketplace/components/GuidelineCartHeader.js";export{GuidelineCartItem}from"./features/IL-marketplace/components/GuidelineCartItem.js";export{GuidelineEmptyState}from"./features/IL-marketplace/components/GuidelineEmptyState.js";export{GuidelineHeader}from"./features/IL-marketplace/components/GuidelineHeader.js";export{GuidelineIconButton}from"./features/IL-marketplace/components/GuidelineIconButton.js";export{GuidelineLandingPage}from"./features/IL-marketplace/components/GuidelineLandingPage.js";export{GuidelineFilterPanel}from"./features/IL-marketplace/components/GuidelineFilterPanel.js";export{GuidelineLibrary}from"./features/IL-marketplace/components/GuidelineLibrary.js";export{GuidelineLibraryCard}from"./features/IL-marketplace/components/GuidelineLibraryCard.js";export{LearningManagementWrapper}from"./features/IL-marketplace/components/LearningManagementWrapper.js";export{GuidelineProceedButton}from"./features/IL-marketplace/components/GuidelineProceedButton.js";export{GuidelineSelectButton}from"./features/IL-marketplace/components/GuidelineSelectButton.js";export{GuidelineCardMenu,createGuidelineCardMenuItems}from"./features/IL-marketplace/components/GuidelineCardMenu.js";export{GuidelineConfirmDialog}from"./features/IL-marketplace/components/GuidelineConfirmDialog.js";export{useGuidelineSelection}from"./features/IL-marketplace/hooks/useGuidelineSelection.js";export{DEFAULT_GUIDELINE_ARTIFACT_TEMPLATE,DEFAULT_GUIDELINE_LABELS}from"./features/IL-marketplace/constants.js";export{createGuidelineId,cx,defaultFormatAddedOnLabel,getAppIntegrationId,getGuidelineDate,getGuidelineDescription,getGuidelineDisplayDescription,getGuidelineId,getGuidelineTitle,isInstantLearningGuideline,mergeGuidelineLabels}from"./features/IL-marketplace/utils.js";export{getGuidelineWorkspaceActions,getGuidelineWorkspaceSnapshot}from"./features/IL-marketplace/workspace/workspace.runtime.js";export{useGuidelineWorkspace,useGuidelineWorkspaceActions,useOptionalGuidelineWorkspace,useOptionalGuidelineWorkspaceActions}from"./features/IL-marketplace/workspace/useGuidelineWorkspace.js";export{clearGuidelineCartClearPending,clearInstantLearningGuidelineCartPresent,getGuidelineSessionId,markGuidelineCartClearPending,rotateGuidelineSessionId}from"./features/IL-marketplace/services/guideline.session.js";export{removeInstantLearningGuidelinesFromCart}from"./features/IL-marketplace/services/instant-learning.api.js";export{closeGuidelineOverlayWithSync}from"./features/IL-marketplace/utils/guidelineOverlay.js";export{dataCartFileToGuidelineFileItem,getDataCartFilesFromResponse,isGuidelineDataCartFile,mergeGuidelineFiles}from"./features/IL-marketplace/utils/guidelineFiles.js";export{syncGuidelineCartWithMemstore}from"./features/IL-marketplace/services/guideline.cart.api.js";export{guidelineQueryClient}from"./features/IL-marketplace/queryClient.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ import e from"../../../style-inject/dist/style-inject.es.js";var o='.App{height:100vh;overflow-y:auto;width:100vw}.audit-tableWrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.audit-table .p-datatable-tbody>tr:nth-child(odd){background:#f8fafc}.audit-table .p-datatable-tbody>tr:hover{background:#eff5ff!important}.audit-table .p-datatable-thead>tr>th{background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#6b7280;font-family:Inter;font-size:12px;font-weight:600;height:54px;padding:8px 16px}.audit-table .p-datatable-thead>tr>th .p-column-header-content{align-items:center;justify-content:center}.audit-table .p-datatable-tbody>tr>td{border-bottom:1px solid #eef2f7;color:#101828;font-family:Inter;font-size:14px;font-weight:400;height:92px;padding:16px}.audit-modifiedBy{align-items:center;display:flex;justify-content:center}.audit-actionCell{display:flex;flex-direction:column;gap:6px}.audit-chip{border-radius:6px;font-family:Inter;font-size:9px;font-weight:500;gap:5px;padding:4px 7px;width:fit-content}.audit-chip,.audit-chip__icon{align-items:center;display:inline-flex}.audit-chip__icon{justify-content:center}.audit-chip--purple{background:#ede9fe;color:#6d28d9}.audit-chip--orange{background:#ffedd5;color:#c2410c}.audit-actionText{color:#111827;font-size:12px;line-height:1.35}.audit-seeMore{background:#0000;border:0;color:#6d28d9;cursor:pointer;font-size:12px;font-weight:400;margin-left:4px;padding:0}.audit-dateCell{color:#101828;font-family:Inter;text-align:center}.audit-emptyState{align-items:center;color:#64748b;display:flex;flex-direction:column;height:300px;justify-content:center;text-align:center}.audit-emptyTitle{font-size:16px;font-weight:600;margin-top:8px}.audit-emptyDesc{font-size:13px;margin-top:4px}.audit-skeletonRow{display:flex;gap:16px;padding:12px 0}.audit-operation-body{align-items:center;display:flex;justify-content:center}.audit-logIdBody{margin:0 auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-table .p-datatable-tbody>tr.audit-row--clickable{cursor:pointer}.audit-table .p-datatable-tbody>tr.p-datatable-row-expansion>td{background:#fff;padding:0}.audit-rowDetail{background:#fff;border-top:1px solid #eef2f7;padding:16px 20px}.log-toolbar{align-items:center;display:flex;gap:16px;width:100%}.log-filterFooter{border-top:1px solid #eee;padding:16px 20px}.log-toolbar__search{flex:1;position:relative}.log-toolbar__search input{border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;font-family:Inter;font-size:14px;font-weight:500;height:40px;padding:0 14px 0 42px;width:100%}.log-toolbar__search input:focus{border-color:#cbd5e1;outline:none}.log-toolbar__search-icon{color:#6b7280;left:14px;position:absolute;top:50%;transform:translateY(-50%)}.log-toolbar__actions{display:flex;gap:12px}.log-toolbar__btn{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;cursor:pointer;display:flex;font-size:14px;gap:8px;height:40px;padding:0 18px;transition:.2s ease}.log-toolbar__btn:hover{background:#f8fafc;border-color:#dbe3ef}.log-toolbar__sort{position:relative}.log-toolbar__dropdown{background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 12px 24px #0000001f;min-width:260px;overflow:hidden;padding:6px;position:absolute;right:0;top:52px;z-index:99}.log-toolbar__dropdown button{background:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;margin:2px;padding:5px 15px;text-align:left;width:100%}.log-toolbar__dropdown button:hover{background:#f3f4f6}.log-toolbar__dropdown--active{background:#f5f3ff!important;color:#7c3aed}.log-toolbar_list:hover{background:#f5f5f5}.log-toolbar__btn--active{border:1px solid #6d28d9;color:#6d28d9}.log-toolbar__btn--active svg{color:#6d28d9}.drs{position:relative}.drs__trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#475569;cursor:pointer;display:inline-flex;font-size:14px;gap:10px;height:40px;padding:0 18px;transition:.2s ease}.drs__trigger:hover{background:#f8fafc;border-color:#dbe3ef}.drs__label{color:#6b7280;font-family:Inter;font-size:14px}.drs__popover{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 16px 40px #00000024;position:absolute;right:0;top:60px;width:340px;z-index:9999}.drs__header{align-items:center;display:flex;justify-content:space-between;padding:16px 16px 10px}.drs__month{color:#1e293b;display:flex;font-family:Inter,sans-serif;font-size:17px;font-weight:700;gap:5px}.drs__month-click,.drs__year-click{border-radius:4px;cursor:pointer;padding:1px 4px;transition:background-color .15s ease}.drs__month-click:hover,.drs__year-click:hover{background:#f1f5f9;color:#635ae3}.drs__nav{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#64748b;cursor:pointer;display:inline-flex;height:34px;justify-content:center;width:34px}.drs__nav:hover{background:#f8fafc;color:#1e293b}.drs__inputs{gap:8px;padding:0 16px 12px}.drs__input-box,.drs__inputs{align-items:center;display:flex}.drs__input-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#1e293b;flex:1;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:36px;padding:0 10px;transition:border-color .15s ease}.drs__input-box.is-active{background:#fff;border-color:#635ae3}.drs__input-placeholder{color:#94a3b8;font-weight:400}.drs__input-sep{color:#94a3b8;font-size:16px}.drs__week{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 4px}.drs__weekday{color:#94a3b8;font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:4px 0;text-align:center}.drs__grid{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 12px;row-gap:2px}.drs__day{align-items:center;background:#0000;border:none;color:#0f172a;cursor:pointer;display:flex;font-family:Inter,sans-serif;font-size:14px;font-weight:400;height:36px;justify-content:center;padding:0;position:relative;width:100%}.drs__day.is-disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.drs__day-inner{align-items:center;border-radius:50%;display:flex;height:34px;justify-content:center;position:relative;transition:background-color .12s ease;width:34px;z-index:1}.drs__day:hover:not(.is-start):not(.is-end) .drs__day-inner{background:#f1f5f9}.drs__day.is-out{color:#cbd5e1}.drs__day.is-range-start:before,.drs__day.is-range:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;z-index:0}.drs__day.is-range-start:before{left:50%}.drs__day.is-range-end:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;right:50%;z-index:0}.drs__day.is-row-first:before{border-radius:50% 0 0 50%}.drs__day.is-row-last:before{border-radius:0 50% 50% 0}.drs__day.is-end .drs__day-inner,.drs__day.is-start .drs__day-inner{background:#635ae3;color:#fff;font-weight:600}.drs__day.is-end:hover .drs__day-inner,.drs__day.is-start:hover .drs__day-inner{background:#4f46d8}.drs__month-grid{display:grid;gap:8px;grid-template-columns:repeat(3,1fr);padding:8px 16px 16px}.drs__month-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:500;height:44px}.drs__month-cell:hover{background:#f1f5f9}.drs__month-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__year-grid{display:grid;gap:8px;grid-template-columns:repeat(4,1fr);padding:8px 16px 16px}.drs__year-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:44px;transition:background-color .15s ease}.drs__year-cell:hover{background:#f1f5f9}.drs__year-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__footer{border-top:1px solid #eef2f7;display:flex;gap:10px;justify-content:flex-end;padding:12px 16px}.drs__btn{border:1px solid #0000;border-radius:10px;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:600;height:40px;padding:0 20px}.drs__btn--ghost{background:#fff;border-color:#e5e7eb;color:#475569}.drs__btn--ghost:hover{background:#f8fafc}.drs__btn--primary{background:#635ae3;color:#fff}.drs__btn--primary:hover{background:#4f46d8}.drs__btn--primary:disabled{cursor:not-allowed;opacity:.45}.audit-filterBlock .date-range-wrapper,.audit-filterControl{width:100%}.log-filterSidebar{width:400px}.log-filterTitle{color:#334155;font-family:Inter;font-size:18px;font-weight:600}.log-filterBody{display:flex;flex-direction:column;gap:16px}.log-filterBlock .log-filterLabel{color:#334155;font-family:Inter;font-size:14px;font-weight:600}.log-filterHint{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;line-height:130%;margin-top:4px}.log-filterFooter{background:#fff;bottom:0;display:flex;gap:10px;justify-content:flex-end;left:0;padding:12px 16px;position:absolute;right:0}.log-btnReset{background:#fff;border:1px solid #e2e8f0;color:#64748b}.log-btnApply,.log-btnReset{border-radius:6px;font-family:Inter;font-size:14px;font-weight:500;padding:8px 11px}.log-btnApply{background:#2563eb;color:#fff}.log-filter-date .drs__trigger{margin-top:12px;width:100%}.log-filterEmpty{background:#f8fafc;border:1px dashed #e2e8f0;border-radius:6px;color:#94a3b8;font-family:Inter;font-size:13px;font-weight:500;padding:10px 12px;text-align:center}.cms-root{position:relative;width:100%}.cms-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.cms-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.cms-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.cms-hasValue{color:#334155}.cms-chevron{color:#64748b}.cms-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 24px #1018281f;left:0;padding:10px;position:absolute;right:0;top:calc(100% + 8px);z-index:9999}.cms-searchRow{align-items:center;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;display:flex;gap:10px;height:40px;padding:0 12px}.cms-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.cms-divider{background:#e2e8f0;height:1px;margin:10px 0}.cms-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.cms-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;min-height:30px;padding:0 8px}.cms-item:hover{background:#f8fafc}.cms-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.cms-checked{background:#2563eb;border-color:#2563eb}.cms-itemText{color:#334155;font-family:Inter;font-size:14px}.AuditLogPanel-module_overlay__mnfs5{background-color:#0003;bottom:0;left:0;position:fixed;right:0;top:0;z-index:9998}.AuditLogPanel-module_panel__btKWo{background-color:#fff;box-shadow:-4px 0 20px #0000001a;display:flex;flex-direction:column;height:100vh;max-width:100vw;position:fixed;right:0;top:0;transition:transform .3s ease;width:480px;z-index:9999}.AuditLogPanel-module_panelOpen__Tj0EH{transform:translateX(0)}.AuditLogPanel-module_panelClosed__2nUTn{transform:translateX(100%)}.AuditLogPanel-module_header__4Ld8n{align-items:flex-start;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:20px 24px}.AuditLogPanel-module_title__YkOer{color:#0f172a;font-size:18px;font-weight:600;margin:0}.AuditLogPanel-module_subtitle__NHQxF{color:#64748b;font-size:13px;margin:4px 0 0}.AuditLogPanel-module_closeBtn__9Raqs{align-items:center;background:none;border:none;color:#64748b;cursor:pointer;display:flex;justify-content:center;padding:4px}.AuditLogPanel-module_scrollArea__QVsJl{flex:1;overflow-y:auto;padding:24px}.AuditLogPanel-module_emptyState__ZqwuX{color:#64748b;margin-top:40px;text-align:center}.AuditLogPanel-module_compCard__KiH-p{background-color:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:16px}.AuditLogPanel-module_compHeader__R5tvd{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:12px 16px;user-select:none}.AuditLogPanel-module_compTitle__Y4FIG{color:#0f172a;font-size:14px;font-weight:600}.AuditLogPanel-module_compIcon__gYnr7{align-items:center;color:#475569;display:flex}.AuditLogPanel-module_compBody__hEdrH{border-top:1px solid #f1f5f9;display:flex;flex-direction:column;gap:12px;padding:16px}.AuditLogPanel-module_compSectionLabel__2Lm4E{color:#475569;font-size:12px;font-weight:600;margin-bottom:6px}.AuditLogPanel-module_compLatestText__jpMml{background-color:#f0fdf4;border:1px solid #dcfce7;border-radius:6px;color:#166534;font-size:13px;padding:12px}.AuditLogPanel-module_compOriginalText__FcXep{background-color:#f8fafc;border:1px solid #f1f5f9;border-radius:6px;color:#64748b;font-size:13px;padding:12px}.AuditLogPanel-module_itemWrapper__uucps{border-bottom:1px solid #e2e8f0}.AuditLogPanel-module_itemHeader__JueVB{align-items:center;background-color:initial;display:flex;justify-content:space-between;padding:16px 0}.AuditLogPanel-module_itemHeaderClickable__wzqVP{cursor:pointer}.AuditLogPanel-module_itemHeaderDefault__SH2oI{cursor:default}.AuditLogPanel-module_itemLeft__2LBs1{align-items:flex-start;display:flex;gap:12px}.AuditLogPanel-module_itemIconWrapper__LE0QA{align-items:center;border-radius:50%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.AuditLogPanel-module_itemTitle__sDycO{color:#0f172a;font-size:14px;font-weight:600}.AuditLogPanel-module_itemSubtitle__Y7fME{color:#64748b;font-size:12px;margin-top:2px}.AuditLogPanel-module_itemRight__AalDS{align-items:center;display:flex;gap:12px}.AuditLogPanel-module_itemTimestamp__ooTn5{color:#64748b;font-size:12px}.AuditLogPanel-module_itemChevron__-wnQo{align-items:center;border-radius:50%;display:flex;padding:4px;transition:background-color .2s ease}.AuditLogPanel-module_itemExpanded__ZUp8c{display:flex;flex-direction:column;gap:16px;padding-bottom:20px;padding-left:44px}.AuditLogPanel-module_tagsChip__m3AM5{align-items:center;background-color:#f1f5f9;border-radius:12px;color:#475569;display:inline-flex;flex-wrap:wrap;font-size:12px;font-weight:500;gap:6px;padding:4px 12px}.AuditLogPanel-module_tagSeparator__Kxa4w{color:#94a3b8;font-size:14px}.AuditLogPanel-module_impactContainer__v16Y0{border:1px solid #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:16px;padding:16px}.AuditLogPanel-module_impactHeader__ggNw-{align-items:center;display:flex;gap:8px;margin-bottom:8px}.AuditLogPanel-module_impactLabel__FOmPT{color:#0f172a;font-size:13px;font-weight:600}.AuditLogPanel-module_impactDescription__5wja1{color:#475569;font-size:13px;line-height:1.5;margin-top:8px}.AuditLogPanel-module_divider__td5ot{background-color:#e2e8f0;height:1px}.AuditLogPanel-module_contentBlock__7sjMa{display:flex;flex-direction:column;gap:6px}.AuditLogPanel-module_contentBlockLabel__v8g5e{color:#0f172a;font-size:13px;font-weight:600}.AuditLogPanel-module_contentBlockText__dfcpm{background-color:#f8fafc;border:1px solid #f1f5f9;border-radius:6px;color:#475569;font-size:13px;padding:12px}.AuditLogPanel-module_markdown__7r3Qt{margin:0;white-space:pre-wrap;word-break:break-word}.AuditLogPanel-module_markdown__7r3Qt p{display:inline;margin:0}.AuditLogPanel-module_truncateContainer__ajjKt{align-items:flex-start;display:flex;flex-direction:column;position:relative;width:100%}.AuditLogPanel-module_truncateText__1F-7K{-webkit-box-orient:vertical;color:inherit;display:-webkit-box;line-height:1.5;overflow:hidden;width:100%}.AuditLogPanel-module_truncateExpandedScrollable__txaww{display:block!important;overflow-y:auto;padding-right:6px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar{width:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-thumb:hover{background:#94a3b8}.AuditLogPanel-module_toggleBtn__rfU8F{background:none;border:none;color:#2563eb;cursor:pointer;font-size:13px;font-style:italic;font-weight:500;margin-top:6px;padding:0}.AuditLogPanel-module_filterSection__b-3av{border-bottom:1px solid #e2e8f0;display:flex;flex-direction:column;gap:12px;margin-bottom:16px;padding:16px 0}.AuditLogPanel-module_filterGrid__IGB8-{align-items:flex-end;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.AuditLogPanel-module_filterItem__rg6ci{display:flex;flex-direction:column;gap:4px}.AuditLogPanel-module_filterLabel__5V4QY{color:#475569}.AuditLogPanel-module_filterInput__CvuQ5,.AuditLogPanel-module_filterSelect__1mD44{background-color:#fff}.AuditLogPanel-module_dateRangeGroup__TGqpn{align-items:center;display:flex;gap:6px}.AuditLogPanel-module_filterHeader__YpEH-{align-items:center;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:8px;user-select:none}.AuditLogPanel-module_filterHeaderLeft__2IvKC{align-items:center;color:#475569;display:flex;font-size:13px;font-weight:600;gap:8px}.AuditLogPanel-module_activeBadge__irk0W{background-color:#2563eb;border-radius:12px;color:#fff;font-size:11px;font-weight:700;padding:2px 8px}.AuditLogPanel-module_clearBtn__sRfO0{background:none;border:none;color:#dc2626;cursor:pointer;font-size:11px;margin-left:8px;padding:0 4px;text-decoration:underline}.AuditLogPanel-module_filterPopupWrapper__jBPyK{display:flex;justify-content:flex-end;margin-bottom:16px;position:relative}.AuditLogPanel-module_filterTriggerBtn__yL7ko{align-items:center;background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 1px 2px #0000000d;color:#0f172a;cursor:pointer;display:flex;font-size:13px;font-weight:600;gap:8px;padding:8px 16px;transition:all .2s}.AuditLogPanel-module_filterTriggerBtn__yL7ko:hover{background:#f8fafc;border-color:#94a3b8}.AuditLogPanel-module_filterPopupContent__inbJs{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 10px 25px -5px #0000001a;margin-top:8px;max-height:70vh;overflow-y:auto;padding:16px;position:absolute;right:0;top:100%;width:340px;z-index:100}.AuditLogPanel-module_filterHint__n0Udq{color:#64748b;line-height:1.3;margin-bottom:4px}.AuditLogPanel-module_multiSelectGroup__ZQU0e{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;display:flex;flex-direction:column;gap:8px;max-height:120px;overflow-y:auto;padding:10px}.AuditLogPanel-module_checkboxItem__-Rwa1{align-items:center;color:#334155;cursor:pointer;display:flex;font-size:13px;gap:8px}.AuditLogPanel-module_rangeGroup__x-K5-{align-items:center;display:flex;gap:8px}.AuditLogPanel-module_rangeInput__hydGj{border:1px solid #cbd5e1;border-radius:6px;font-size:13px;padding:8px 10px;width:100%}.AuditLogPanel-module_filterFooter__21RHT{align-items:center;border-top:1px dashed #e2e8f0;display:flex;gap:12px;justify-content:flex-end;margin-top:16px;padding-top:12px}.AuditLogPanel-module_applyBtn__SsGu2{background-color:#2563eb;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:13px;font-weight:600;padding:8px 16px;transition:background-color .2s}.AuditLogPanel-module_applyBtn__SsGu2:hover{background-color:#1d4ed8}.AuditLogPanel-module_skeletonPulse__Jqdac{animation:AuditLogPanel-module_pulse__SFUMS 1.5s cubic-bezier(.4,0,.6,1) infinite}@keyframes AuditLogPanel-module_pulse__SFUMS{0%,to{opacity:1}50%{opacity:.5}}.AuditLogPanel-module_loadingText__M41Xb{color:#64748b;font-size:13px;font-style:italic;padding:16px;text-align:center}.AuditLogPanel-module_skeletonBase__1JdeF{background-color:#e2e8f0;border-radius:4px}.AuditLogPanel-module_skeletonCircle__LHVyi{border-radius:50%;flex-shrink:0;height:32px;width:32px}.AuditLogPanel-module_skeletonLinePrimary__54f-f{height:14px;margin-bottom:6px;width:140px}.AuditLogPanel-module_skeletonLineSecondary__stC65{height:12px;width:90px}.AuditLogPanel-module_skeletonLineTimestamp__E-9In{height:12px;width:60px}.AuditLogPanel-module_iconTriggerBtn__Cu-XV{align-items:center;background:#0000;border:none;border-radius:6px;color:#64748b;cursor:pointer;display:flex;height:32px;justify-content:center;position:relative;transition:all .2s;width:32px}.AuditLogPanel-module_iconTriggerBtn__Cu-XV:hover{background:#f1f5f9;color:#0f172a}.AuditLogPanel-module_iconTriggerBadge__rokhX{align-items:center;background:#2563eb;border:2px solid #fff;border-radius:12px;color:#fff;display:flex;font-size:10px;font-weight:700;height:16px;justify-content:center;min-width:16px;padding:0 4px;position:absolute;right:-4px;top:-4px}.AuditLogPanel-module_modalBackdrop__IJAuf{align-items:center;backdrop-filter:blur(3px);background-color:#0f172a80;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:9999}.AuditLogPanel-module_modalContainer__zRPuE{background:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;max-height:90vh;max-width:600px;overflow:hidden;width:100%}.AuditLogPanel-module_modalHeader__CR8rf{align-items:center;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:16px 20px}.AuditLogPanel-module_modalTitle__EwALY{align-items:center;color:#0f172a;display:flex;font-size:15px;font-weight:600;gap:8px;margin:0}.AuditLogPanel-module_modalClose__3XGih{background:#0000;border:none;border-radius:4px;color:#64748b;cursor:pointer;display:flex;padding:4px;transition:background .2s}.AuditLogPanel-module_modalClose__3XGih:hover{background:#f1f5f9;color:#0f172a}.AuditLogPanel-module_modalBody__Fn2Xb{flex:1;overflow-y:auto;padding:20px}.AuditLogPanel-module_modalFooter__1vn3I{background:#f8fafc;border-top:1px solid #e2e8f0;display:flex;gap:12px;justify-content:flex-end;padding:16px 20px}.AuditLogPanel-module_accordionContainer__92rQR{background:#fff;border:1px solid #e2e8f0;border-radius:8px;display:flex;flex-direction:column;margin:0 16px 16px;max-height:60vh;overflow:hidden}.AuditLogPanel-module_accordionHeader__fBYZr{align-items:center;background:#fff;border-bottom:1px solid #0000;cursor:pointer;display:flex;justify-content:space-between;padding:12px 16px;user-select:none;z-index:45}.AuditLogPanel-module_accordionHeaderExpanded__R82zY{border-bottom-color:#e2e8f0}.AuditLogPanel-module_accordionTitle__SfXdv{align-items:center;color:#0f172a;display:flex;font-size:13px;font-weight:600;gap:8px}.AuditLogPanel-module_accordionContentWrapper__WJ6ZE{display:flex;flex:1;flex-direction:column;overflow:hidden}.AuditLogPanel-module_accordionBody__MBU1x{flex:1;overflow-y:auto;padding:16px}.AuditLogPanel-module_accordionFooter__jBIof{background:#f8fafc;border-top:1px solid #e2e8f0;display:flex;gap:12px;justify-content:flex-end;padding:12px 16px}.AuditLogPanel-module_filterFormGrid__QoLKp{display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.AuditLogPanel-module_filterField__-UAtF{display:flex;flex-direction:column;gap:8px}.AuditLogPanel-module_filterLabel__5V4QY{color:#334155;font-size:12px;font-weight:600;letter-spacing:.5px}.AuditLogPanel-module_filterHint__n0Udq{color:#94a3b8;font-size:11px}.AuditLogPanel-module_inputWrapper__WrBnR{position:relative}.AuditLogPanel-module_inputIcon__cOOa8{color:#94a3b8;left:10px;position:absolute;top:50%;transform:translateY(-50%)}.AuditLogPanel-module_filterInput__CvuQ5,.AuditLogPanel-module_filterSelect__1mD44{background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 1px 2px #00000005;box-sizing:border-box;color:#0f172a;font-size:13px;outline:none;padding:8px 12px;transition:border-color .2s;width:100%}.AuditLogPanel-module_filterInput__CvuQ5:focus,.AuditLogPanel-module_filterSelect__1mD44:focus{border-color:#2563eb}.AuditLogPanel-module_filterInputWithIcon__o5dTT{padding-left:32px}.AuditLogPanel-module_btnSecondary__s9Ts7{background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 1px 2px #0000000d;color:#475569;cursor:pointer;font-size:13px;font-weight:600;padding:8px 20px;transition:background .2s}.AuditLogPanel-module_btnSecondary__s9Ts7:hover{background:#f1f5f9}.AuditLogPanel-module_btnPrimary__l1zRY{background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:8px;box-shadow:0 4px 12px #2563eb40;color:#fff;cursor:pointer;font-size:13px;font-weight:600;padding:8px 24px;transition:opacity .2s}.AuditLogPanel-module_btnPrimary__l1zRY:hover{opacity:.9}.AuditLogPanel-module_severityBadge__-sPO7{border-radius:12px;font-size:11px;font-weight:500;padding:2px 8px}.AuditLogPanel-module_severityHigh__e--68{background-color:#fee2e2;color:#991b1b}.AuditLogPanel-module_severityMedium__EQj8s{background-color:#fef3c7;color:#b45309}.AuditLogPanel-module_severityLow__k3-gs{background-color:#dcfce7;color:#166534}.AuditLogPanel-module_severityOther__m-OrS{background-color:#f1f5f9;color:#475569}.lgfd__overlay{background:#0000;border:none;cursor:default;inset:0;padding:0;position:fixed;z-index:999}.lgfd__panel{background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 24px #0000001f;display:flex;flex-direction:column;max-height:520px;overflow:hidden;position:fixed;width:400px;z-index:1000}.lgfd__header{align-items:center;border-bottom:1px solid #f3f4f6;display:flex;flex-shrink:0;justify-content:space-between;padding:14px 16px 12px}.lgfd__title{color:#111827;font-size:14px;font-weight:600}.lgfd__closeBtn{background:none;border:none;border-radius:4px;color:#9ca3af;cursor:pointer;font-size:13px;line-height:1;padding:2px 6px;transition:background .1s,color .1s}.lgfd__closeBtn:hover{background:#f3f4f6;color:#374151}.lgfd__body{flex:1;overflow-y:auto}.lgfd__block{border-bottom:1px solid #f3f4f6;padding:14px 16px}.lgfd__block:last-child{border-bottom:none}.lgfd__label{color:#374151;font-size:13px;font-weight:600;margin-bottom:4px}.lgfd__hint{line-height:1.4}.lgfd__empty,.lgfd__hint{color:#9ca3af;font-size:12px}.lgfd__empty{padding:6px 0}.lgfd__footer{border-top:1px solid #e5e7eb;display:flex;flex-shrink:0;gap:8px;padding:12px 16px}.lgfd__resetBtn{background:#fff;border:1px solid #d1d5db;border-radius:6px;color:#374151;cursor:pointer;flex:1;font-size:13px;font-weight:500;padding:8px 12px;transition:background .1s}.lgfd__resetBtn:hover{background:#f9fafb}.lgfd__applyBtn{background:#7c3aed;border:none;border-radius:6px;color:#fff;cursor:pointer;flex:1;font-size:13px;font-weight:500;padding:8px 12px;transition:background .1s}.lgfd__applyBtn:hover{background:#6d28d9}.lgfd__actorSearch{align-items:center;display:flex;margin-bottom:6px;position:relative}.lgfd__actorInput{border:1px solid #d1d5db;border-radius:6px;box-sizing:border-box;color:#374151;font-size:13px;outline:none;padding:7px 32px 7px 10px;width:100%}.lgfd__actorInput:focus{border-color:#6b7280}.lgfd__actorSpinner{animation:lgfd-spin .6s linear infinite;border:2px solid #e5e7eb;border-radius:50%;border-top-color:#6b7280;height:14px;position:absolute;right:10px;width:14px}@keyframes lgfd-spin{to{transform:rotate(1turn)}}.lgfd__actorList{display:flex;flex-direction:column;gap:1px;max-height:128px;overflow-y:auto}.lgfd__actorItem{align-items:center;border-radius:5px;cursor:pointer;display:flex;gap:8px;padding:6px;user-select:none}.lgfd__actorItem:hover{background:#f9fafb}.lgfd__actorItem--checked{background:#f5f3ff}.lgfd__actorCheckbox{align-items:center;background:#fff;border:1.5px solid #d1d5db;border-radius:3px;color:#fff;display:flex;flex-shrink:0;font-size:10px;height:15px;justify-content:center;width:15px}.lgfd__actorCheckbox--checked{background:#7c3aed;border-color:#7c3aed}.lgfd__actorLabel{color:#374151;font-size:13px}';e(o);export{o as default};
2
+ //# sourceMappingURL=styles.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as r}from"tslib";import{jsx as t,Fragment as e}from"react/jsx-runtime";import n,{useMemo as o,Suspense as i}from"react";import{resolveRegistryComponentOrFallback as p,isContainerComponent as a}from"../ComponentRegistry.js";import{FormContext as u}from"./types.js";var c=function(){return t("div",r({style:{padding:12,fontSize:13,color:"#9ca3af"}},{children:"Loading…"}))},d={PromptTextEditor:n.lazy(function(){return import("./adapters/PromptTextEditorAdapter.js")}),GlobalSetupAccordion:n.lazy(function(){return import("./adapters/GlobalSetupAccordionAdapter.js")})},l=function(e){var n=e.id,o=e.node;if(o.hidden)return null;var u=o.bpa_ui_component&&d[o.bpa_ui_component]||p(o.bpa_ui_component),l=a(o.bpa_ui_component);return t(i,r({fallback:t(c,{})},{children:t(u,r({id:n,schema:o},{children:l&&!o.is_repeatable_variant&&o.properties&&t(s,{properties:o.properties})}))}))},s=function(r){var n=r.properties,i=o(function(){return function(r){return Object.entries(r).sort(function(r,t){var e,n,o=r[1],i=t[1];return(null!==(e=o.ui_position)&&void 0!==e?e:0)-(null!==(n=i.ui_position)&&void 0!==n?n:0)})}(n)},[n]);return t(e,{children:i.map(function(r){var e=r[0],n=r[1];return t(l,{id:e,node:n},e)})})},m=function(e){var n=e.schema,o=e.state,i=e.handlers,p=e.uiState;return(null==n?void 0:n.properties)?t(u.Provider,r({value:{state:o,handlers:i,uiState:p}},{children:t(s,{properties:n.properties})})):null};export{m as SchemaForm,s as SchemaPropertyList};
2
+ //# sourceMappingURL=SchemaRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaRenderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{jsx as i}from"react/jsx-runtime";import{useContext as t}from"react";import{ConditionSection as n}from"../../features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js";import{FormContext as o}from"../types.js";var e=function(e){var d,a,r,l,c,s,v,p,u,h,y,A=e.id,g=e.schema,m=t(o),T=m.state,f=m.handlers,I=m.uiState,E=m.tierKey,w=m.variantIndex;if(!T||!I)return null;var S="wta"===g.data_key,W=S?(null===(r=null===(a=null===(d=T.variantsByTier)||void 0===d?void 0:d[E])||void 0===a?void 0:a[w])||void 0===r?void 0:r.whenToApplyConditions)||[]:(null===(s=null===(c=null===(l=T.variantsByTier)||void 0===l?void 0:l[E])||void 0===c?void 0:c[w])||void 0===s?void 0:s.whenNotToApplyConditions)||[],C=(null===(v=I.validationErrors)||void 0===v?void 0:v["".concat(S?"whenToApply":"whenNotToApply","-").concat(E,"-").concat(w)])||(S?I.conflictReason:void 0),N=(null===(h=null===(u=null===(p=T.variantsByTier)||void 0===p?void 0:p[E])||void 0===u?void 0:u[w])||void 0===h?void 0:h.isReadOnly)||I.isAiStreaming,_=(null===(y=I.highlights)||void 0===y?void 0:y.get("".concat(E,"_").concat(w)))||{},x=S?_.wta:_.wnta;return i(n,{id:"".concat(A,"-").concat(E,"-").concat(w),idPrefix:"condition-".concat(g.data_key),title:g.title,required:!!g.core_field,readOnly:N,conditions:W,index:w,tierKey:E,onAdd:function(){return S?f.addWhenToApply(E,w):f.addWhenNotToApply(E,w)},onRemove:function(i,t,n){return S?f.removeWhenToApply(i,t,n):f.removeWhenNotToApply(i,t,n)},onEdit:function(i,t,n,o){return S?f.editWhenToApply(i,t,n,o):f.editWhenNotToApply(i,t,n,o)},bordered:!0,dividerRequired:!0,addLabel:S?I.addWhenToApplyBtnLabel:I.addWhenNotToApplyBtnLabel,tooltipDescription:g.tooltip,errorMessage:C,isHighlighted:x||!1,highlightedIds:I.highlightedIds,citations:function(i){var t,n,o=null===(t=T.fieldCitations)||void 0===t?void 0:t[i];return Array.isArray(o)&&o.length>0?o:null!==(n=T.citations)&&void 0!==n?n:[]}("".concat(S?"whenToApply":"whenNotToApply","_").concat(E,"_").concat(w)),isAiStreaming:I.isAiStreaming,activeEditId:I.activeEditId,setActiveEditId:I.setActiveEditId,pendingEditId:I.pendingEditId,setPendingEditId:I.setPendingEditId,setSendMessageInChat:I.setSendMessageInChat})};export{e as default};
2
+ //# sourceMappingURL=ConditionSectionAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionSectionAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{jsx as i}from"react/jsx-runtime";import{useContext as e}from"react";import{ConfigSection as t}from"../../features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.js";import{FormContext as n}from"../types.js";var d=function(d){var o,r,a,s,l,g,v,c,u;d.id;var m=d.schema,f=e(n),I=f.state,h=f.handlers,p=f.uiState,S=f.tierKey,C=f.variantIndex;if(!I||!p)return null;var E=(null===(r=null===(o=p.separationItemsByTier)||void 0===o?void 0:o[S])||void 0===r?void 0:r.get(C))||[],y=(null===(s=null===(a=p.togglesByTier)||void 0===a?void 0:a[S])||void 0===s?void 0:s.get(C))||[],A=(null===(v=null===(g=null===(l=I.variantsByTier)||void 0===l?void 0:l[S])||void 0===g?void 0:g[C])||void 0===v?void 0:v.isReadOnly)||p.isAiStreaming,x=(null===(c=p.highlights)||void 0===c?void 0:c.get("".concat(S,"_").concat(C)))||{};return i(t,{id:"config-".concat(S,"-").concat(C),title:null!==(u=m.title)&&void 0!==u?u:"Advanced Settings",required:!!m.core_field,readOnly:A,onConfigChange:function(i,e){return h.onConfigChange(S,C,i,e)},separationItems:E,toggles:y,index:C,highlights:x,bordered:!0,isAiStreaming:p.isAiStreaming,activeEditId:p.activeEditId,setActiveEditId:p.setActiveEditId,pendingEditId:p.pendingEditId,setPendingEditId:p.setPendingEditId,setSendMessageInChat:p.setSendMessageInChat})};export{d as default};
2
+ //# sourceMappingURL=ConfigSectionAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigSectionAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"tslib";import{jsx as i,jsxs as t}from"react/jsx-runtime";import{useContext as l,useState as n,useRef as o,useEffect as r}from"react";import d from"../../features/IL-OTJ/_components/AccordianSection.js";import{FormContext as a}from"../types.js";import{SchemaPropertyList as s}from"../SchemaRenderer.js";import{Loader2Icon as u,Pencil as c,Check as p,AlertTriangle as f}from"lucide-react";var v=function(v){var g,m,y=v.schema,h=l(a),x=h.state,S=h.uiState,I=n(null),b=I[0],E=I[1],C=n(null),D=C[0],T=C[1],A=n(!1),k=A[0],j=A[1],z=o(null==S?void 0:S.isAiStreaming),O="rule-setup"===(null==S?void 0:S.activeEditId);r(function(){z.current&&!(null==S?void 0:S.isAiStreaming)&&k&&j(!1),z.current=null==S?void 0:S.isAiStreaming},[null==S?void 0:S.isAiStreaming,k]);var N=function(){var e;E(null),T(null),null===(e=null==S?void 0:S.setActiveEditId)||void 0===e||e.call(S,null)},P=function(){var e,i,t=null!=b?b:x.ruleTitle,l=null!=D?D:x.scopeData,n=t!==x.ruleTitle,o=JSON.stringify(l)!==JSON.stringify(x.scopeData);if(!n&&!o)return E(null),T(null),void(null===(e=null==S?void 0:S.setActiveEditId)||void 0===e||e.call(S,null));if(null==S?void 0:S.setSendMessageInChat){var r="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),d=[];if(n&&d.push((null==t?void 0:t.trim())?"Title with ".concat(t):"No Title"),o){var a=null==l?void 0:l.tiers;d.push(a&&a.length>0?"tiers: ".concat(a.join(", ")):"No Tier Selected")}S.setSendMessageInChat("__SKELETON__:".concat(r,":Update Rule Setup ").concat(d.join(" and ")))}j(!0),E(null),T(null),null===(i=null==S?void 0:S.setActiveEditId)||void 0===i||i.call(S,null)},R=null!==b?null==b?void 0:b.trim():(x.ruleTitle||"").trim(),_=null!=D?D:x.scopeData,w=R!==(x.ruleTitle||"").trim(),J=JSON.stringify(_)!==JSON.stringify(x.scopeData),F=!w&&!J||""===R;return i("div",e({"data-edit-id":"rule-setup"},{children:i(d,e({title:{type:"other",label:y.title||(null==S?void 0:S.setupLabel)||"Rule Setup"},actionButtons:function(t,l){if(O)return null;var n=!!(null==S?void 0:S.activeEditId)&&"rule-setup"!==S.activeEditId;return i("div",e({style:{position:"relative",display:"flex",flexDirection:"column"}},{children:i("button",e({title:n?"Save active edits first":"Edit",onClick:function(i){i.stopPropagation(),n?(null==S?void 0:S.setPendingEditId)&&S.setPendingEditId(S.activeEditId||null):(!function(){var i,t;(null==S?void 0:S.activeEditId)&&"rule-setup"!==S.activeEditId||(null===(i=null==S?void 0:S.setActiveEditId)||void 0===i||i.call(S,"rule-setup"),E(null!==(t=x.ruleTitle)&&void 0!==t?t:""),T(x.scopeData?e({},x.scopeData):{}))}(),(null==S?void 0:S.setPendingEditId)&&S.setPendingEditId(null),t||l())},disabled:k,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"6px 8px",border:"1px solid #e5e7eb",borderRadius:"8px",cursor:k?"not-allowed":"pointer",backgroundColor:"#ffffff",color:"#6b7280",opacity:k?.5:1}},{children:i(c,{size:14})}))}))},footerData:{ruleTitle:x.ruleTitle,stations:[x.scopeData.station],tiers:null===(g=x.scopeData)||void 0===g?void 0:g.tiers},defaultOpen:null!==(m=y.default_open)&&void 0!==m?m:"Create"===(null==S?void 0:S.usedFor),readOnly:"Create"!==(null==S?void 0:S.usedFor),isAiStreaming:null==S?void 0:S.isAiStreaming,editFlow:"Edit"===(null==S?void 0:S.usedFor)},{children:t("div",e({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[k&&(null==S?void 0:S.isAiStreaming)&&t("div",e({style:{display:"flex",alignItems:"center",color:"#141414ff",fontSize:"13px",fontWeight:500,fontStyle:"italic",marginBottom:"8px",paddingLeft:"4px"}},{children:[i(u,{size:16,style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Checking the correctness of your Rule Setup..."]})),i(a.Provider,e({value:e(e({},l(a)),{isEditingSetup:O,draftTitle:b,setDraftTitle:E,draftScope:D,setDraftScope:T})},{children:i(s,{properties:y.properties})})),O?t("div",e({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[t("div",e({style:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"16px"}},{children:[i("button",e({onClick:N,style:{background:"none",border:"none",color:"#6b7280",fontSize:"14px",fontWeight:"500",cursor:"pointer",padding:"0"}},{children:"Discard Changes"})),t("button",e({onClick:P,disabled:F,style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 16px",borderRadius:"12px",border:"none",backgroundColor:"#2563eb",color:"#ffffff",fontSize:"14px",fontWeight:"500",cursor:F?"not-allowed":"pointer",opacity:F?.5:1}},{children:[i(p,{size:18,strokeWidth:2.5,color:"#ffffff"})," Save Changes"]}))]})),"rule-setup"===(null==S?void 0:S.pendingEditId)&&t("div",e({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"10px"}},{children:[i(f,{size:14,style:{color:"#C2410C"}}),i("div",e({style:{color:"#C2410C",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]}))]})):null]}))}))}))};export{v as default};
2
+ //# sourceMappingURL=GlobalSetupAccordionAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalSetupAccordionAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as i}from"tslib";import{jsxs as t,jsx as e,Fragment as n}from"react/jsx-runtime";import{useContext as l,useState as o,Suspense as r}from"react";import{Check as d,X as a,Pencil as s,AlertTriangle as c}from"lucide-react";import{FormContext as p}from"../types.js";var u=function(u){var v,h,m,x,f=u.schema,g=l(p),y=g.state,b=g.uiState,E=g.tierKey,I=g.variantIndex,C="instruction-prompt-".concat(E,"-").concat(I),S=(null==b?void 0:b.activeEditId)===C,w=!!(null==b?void 0:b.activeEditId)&&b.activeEditId!==C,k=o(null),z=k[0],A=k[1];if(!y||!b||!b.LazyPromptEditor)return null;var P=(null===(h=null===(v=y.variantsByTier)||void 0===v?void 0:v[E])||void 0===h?void 0:h[I])||{},_=null!==(m=P.instructionPrompt)&&void 0!==m?m:b.instructionPrompt,B=P.isReadOnly||b.isAiStreaming,L=((null===(x=b.highlights)||void 0===x?void 0:x.get("".concat(E,"_").concat(I)))||{}).instruction_prompt||!1,T=!z||z.trim()===((null==_?void 0:_.trim())||""),W={display:"flex",alignItems:"center",justifyContent:"center",padding:"8px",border:"1px solid #e5e7eb",borderRadius:"8px",cursor:"pointer",width:"36px",height:"36px",backgroundColor:"#ffffff"};return t("div",i({style:{display:"flex",flexDirection:"column",gap:"4px",width:"100%",marginBottom:"12px",margin:"0 0.2rem",overflow:"hidden",boxSizing:"border-box"},"data-edit-id":C},{children:[e("div",i({style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between",marginBottom:"4px"}},{children:e("span",i({style:{fontSize:"14px",fontWeight:500,color:"#19213D",fontFamily:'"Plus Jakarta Sans", sans-serif'}},{children:f.title}))})),t("div",i({style:{display:"flex",alignItems:"flex-start",gap:"8px",width:"100%",minWidth:0}},{children:[e("div",i({style:{flex:1,minWidth:0,border:L?"1px solid #2563EB":"1px solid transparent",borderRadius:"8px",boxShadow:L?"0 0 12px 3px rgba(37, 99, 235, 0.3)":"none",transition:"border-color 0.3s, box-shadow 0.3s"}},{children:e(r,i({fallback:e("div",i({style:{padding:"12px",fontSize:"13px",color:"#6b7280"}},{children:"Loading editor..."}))},{children:e("div",i({style:{pointerEvents:S?"auto":"none",opacity:S?1:.75}},{children:e(b.LazyPromptEditor,{value:S&&null!==z?z:_,onChange:function(i){var t;return S?A(i):null===(t=b.setInstructionPrompt)||void 0===t?void 0:t.call(b,i)},title:f.title,minHeight:"220px",maxHeight:"220px"})}))}))})),!B&&e("div",i({style:{display:"flex",flexDirection:"row",gap:"8px",marginTop:"0px"}},{children:S?t(n,{children:[t("button",i({title:"Apply",onClick:function(){var i,t;if(null!==z){if(z!==(null!=_?_:"")&&(null===(i=b.setInstructionPrompt)||void 0===i||i.call(b,z),null==b?void 0:b.setSendMessageInChat)){var e="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8));b.setSendMessageInChat("__SKELETON__:".concat(e,":The Instruction Prompt has been updated through the Learning Form"))}A(null),null===(t=null==b?void 0:b.setActiveEditId)||void 0===t||t.call(b,null)}},disabled:T,style:i(i({},W),{backgroundColor:"#2563EB",color:"white",width:"auto",padding:"8px 12px",cursor:T?"not-allowed":"pointer",opacity:T?.5:1})},{children:[e(d,{size:20,strokeWidth:2.5})," Apply"]})),e("button",i({title:"Cancel",onClick:function(){var i;A(null),null===(i=null==b?void 0:b.setActiveEditId)||void 0===i||i.call(b,null)},style:i(i({},W),{borderColor:"#E3E8E9",color:"#dc2626"})},{children:e(a,{size:20,strokeWidth:2.5})}))]}):e("button",i({title:w?"Save active edits first":"Edit",onClick:function(){var i;(null==b?void 0:b.activeEditId)&&b.activeEditId!==C||(null===(i=null==b?void 0:b.setActiveEditId)||void 0===i||i.call(b,C),A(null!=_?_:""))},disabled:(null==b?void 0:b.isAiStreaming)||w,style:i(i({},W),{color:"#6b7280",cursor:(null==b?void 0:b.isAiStreaming)||w?"not-allowed":"pointer",opacity:(null==b?void 0:b.isAiStreaming)||w?.5:1})},{children:e(s,{size:20})}))}))]})),(null==b?void 0:b.pendingEditId)===C&&S&&t("div",i({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"6px"}},{children:[e(c,{size:14,style:{color:"#C2410C"}}),e("div",i({style:{color:"#C2410C",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]}))]}))};export{u as default};
2
+ //# sourceMappingURL=PromptTextEditorAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PromptTextEditorAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as i}from"tslib";import{jsxs as o,Fragment as t,jsx as e}from"react/jsx-runtime";import{useContext as n,useState as r}from"react";import{ScopeSection as s}from"../../features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js";import{FormContext as a}from"../types.js";import{InputDataReasoningCard as l}from"../../features/IL-OTJ/_components/InputDataReasoningCard.js";import{ButtonCognitiveIcon as d}from"../../features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.js";var c=function(c){var p,u,v,f,g,m,h,S,O=c.id,I=c.schema,D=n(a),E=D.state,j=D.handlers,C=D.uiState,_=D.isEditingSetup,y=D.draftScope,T=D.setDraftScope,x=r(function(){return new Set([O])}),b=x[0],A=x[1],J=r(!1),L=J[0],M=J[1];if(!E||!C)return null;var w=_&&null!==y?y:E.scopeData,V=(null===(p=C.highlights)||void 0===p?void 0:p.get("global_0"))||{},q=null===(u=E.citation)||void 0===u?void 0:u.scopeData;return o(t,{children:[e(s,{id:O,title:I.title,required:!!I.core_field,readOnly:C.isAiStreaming||!_,openSections:b,setOpenSections:A,scopeData:w,onScopeChange:function(o,t){var e;return _?T(i(i({},w),((e={})[o]=t,e))):j.onScopeChange(o,t)},stationOptions:C.stationOptions,tierOptions:C.tierOptions,isOpen:b.has(O)||L,onToggle:function(){return M(!L)},showCognitiveIcon:!!q,cognitiveIcon:e(d,{}),highlights:V,tooltipDescription:null!==(v=I.tooltip)&&void 0!==v?v:"",errorMessage:(null===(f=C.validationErrors)||void 0===f?void 0:f.station)||(null===(g=C.validationErrors)||void 0===g?void 0:g.tiers),stationErrorMessage:null===(m=C.validationErrors)||void 0===m?void 0:m.station,tierErrorMessage:null===(h=C.validationErrors)||void 0===h?void 0:h.tiers}),q&&e("div",i({style:{marginTop:"-17px",position:"relative",zIndex:1}},{children:e(l,{isVisible:L,citation:q,citations:function(i){var o,t,e=null===(o=E.fieldCitations)||void 0===o?void 0:o[i];return Array.isArray(e)&&e.length>0?e:null!==(t=E.citations)&&void 0!==t?t:[]}("scopeData"),fieldName:I.title||"Scope",fieldValue:null===(S=null==w?void 0:w.tiers)||void 0===S?void 0:S.join(", ")})}))]})};export{c as default};
2
+ //# sourceMappingURL=ScopeSectionAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScopeSectionAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}