@e-llm-studio/instant-learning 0.1.1-alpha.66 → 0.1.1-alpha.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/features/IL-OTJ/ILOTJ.js +1 -1
- package/dist/cjs/features/IL-OTJ/ILOTJTest.js +1 -1
- package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RenameScopeModal.js +2 -0
- package/dist/cjs/features/LearningManagement/RuleContent/RenameScopeModal.js.map +1 -0
- package/dist/cjs/features/LearningManagement/RuleContent/RuleAccordion.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleAccordionHeader.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleAccordionShell.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/TierCard.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/VariantCard.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/VariantList.js +1 -1
- package/dist/cjs/features/LearningManagement/Sidebar.js +1 -1
- package/dist/cjs/features/LearningManagement/SidebarWrapper.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/apiConfig.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/cjs/features/LearningManagement/components/CreateRuleSetLegacyModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/EmptyLearningState.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeAddAction.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeSidebar.js +1 -1
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/StationAutocomplete.js +1 -1
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
- package/dist/cjs/features/LearningManagement/hooks/useLearningTemplateQueryParams.js +1 -1
- package/dist/cjs/features/LearningManagement/store/useEnvStore.js +1 -1
- package/dist/cjs/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/EmptyRuleState.module.css.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/Sidebar.module.css.js +1 -1
- package/dist/cjs/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/cjs/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.js +1 -1
- package/dist/features/IL-OTJ/ILOTJ.js +1 -1
- package/dist/features/IL-OTJ/ILOTJTest.js +1 -1
- package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.js +1 -1
- package/dist/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RenameScopeModal.js +2 -0
- package/dist/features/LearningManagement/RuleContent/RenameScopeModal.js.map +1 -0
- package/dist/features/LearningManagement/RuleContent/RuleAccordion.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleAccordionHeader.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleAccordionShell.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
- package/dist/features/LearningManagement/RuleContent/TierCard.js +1 -1
- package/dist/features/LearningManagement/RuleContent/VariantCard.js +1 -1
- package/dist/features/LearningManagement/RuleContent/VariantList.js +1 -1
- package/dist/features/LearningManagement/Sidebar.js +1 -1
- package/dist/features/LearningManagement/SidebarWrapper.js +1 -1
- package/dist/features/LearningManagement/apis/apiConfig.js +1 -1
- package/dist/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/features/LearningManagement/components/CreateRuleSetLegacyModal.js +1 -1
- package/dist/features/LearningManagement/components/EmptyLearningState.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/features/LearningManagement/components/ScopeTree/TreeAddAction.js +1 -1
- package/dist/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
- package/dist/features/LearningManagement/components/ScopeTree/TreeSidebar.js +1 -1
- package/dist/features/LearningManagement/components/StationOnboarding/StationAutocomplete.js +1 -1
- package/dist/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
- package/dist/features/LearningManagement/hooks/useLearningTemplateQueryParams.js +1 -1
- package/dist/features/LearningManagement/store/useEnvStore.js +1 -1
- package/dist/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
- package/dist/features/LearningManagement/styles/EmptyRuleState.module.css.js +1 -1
- package/dist/features/LearningManagement/styles/Sidebar.module.css.js +1 -1
- package/dist/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.js +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts +7 -0
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatComponent.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatComponent.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts +6 -41
- package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +3 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagementTest.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/ContentLogic.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RenameScopeModal.d.ts +10 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RenameScopeModal.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordion.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordion.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionHeader.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionHeader.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionShell.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionShell.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/TierCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts +4 -0
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/VariantList.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/VariantList.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/Sidebar.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/Sidebar.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/SidebarWrapper.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/SidebarWrapper.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts +6 -0
- package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts +70 -0
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/CreateLearningSetModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts +1 -0
- package/dist/types/src/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/EmptyLearningState.d.ts +10 -0
- package/dist/types/src/features/LearningManagement/components/EmptyLearningState.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeAddAction.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeAddAction.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeMenu.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationAutocomplete.d.ts +1 -0
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationAutocomplete.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts +6 -0
- package/dist/types/src/features/LearningManagement/hooks/useLearningTemplateQueryParams.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts +13 -0
- package/dist/types/src/features/LearningManagement/store/useEnvStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts +6 -2
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/types.d.ts +2 -1
- package/dist/types/src/features/LearningManagement/types.d.ts.map +1 -1
- package/package.json +3 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as o}from"tslib";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{Plus as i}from"lucide-react";import r from"../../styles/ScopeTree.module.css.js";var d=function(d){var a=d.label,c=d.onAdd,l=d.disabled,s=void 0!==l&&l,n=d.tooltip;return t("button",o({className:"".concat(r.addAction," ").concat(s?r.disabled:""),onClick:s?void 0:c,disabled:s,title:n,style:s?{opacity:.5,cursor:"not-allowed"}:{}},{children:[e("span",o({className:r.addIcon},{children:e(i,{size:16,strokeWidth:2.5})})),a]}))};export{d as TreeAddAction};
|
|
2
2
|
//# sourceMappingURL=TreeAddAction.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__spreadArray as e,__assign as n}from"tslib";import{jsxs as
|
|
1
|
+
import{__spreadArray as e,__assign as n}from"tslib";import{jsxs as o,jsx as i}from"react/jsx-runtime";import{Plus as d,Pencil as t,Trash2 as l}from"lucide-react";import r from"../../styles/ScopeTree.module.css.js";import{TreeNodeHeader as a}from"./TreeNodeHeader.js";import{TreeSectionItem as c}from"./TreeSectionItem.js";import{TreeAddAction as s}from"./TreeAddAction.js";var u=function(p){var h,m,v=p.node,C=p.depth,f=void 0===C?0:C,g=p.nodePath,b=void 0===g?[]:g,S=p.expandedNodeIds,T=p.activeSelection,y=p.onToggleExpand,x=p.onSectionSelect,A=p.onNodeOptionsClick,N=p.onAddChild,k=p.onRenameChild,E=p.onDeleteChild,P=p.canDeleteScope,j=p.canEditScope,D=p.canCreateScope,I=p.searchQuery,L=p.sectionsConfig,O=void 0===L?[]:L,Q=p.nodeTypesConfig,R=void 0===Q?[]:Q,Y=e(e([],b,!0),[v.id],!1),w=S.has(v.id),K=!!T&&T.nodePath[T.nodePath.length-1]===v.id,V=!!T&&(T.nodePath.includes(v.id)&&!K),W=function(e,n){if(!n)return!0;var o=n.toLowerCase();return!!e.name.toLowerCase().includes(o)||!!e.children&&e.children.some(function(e){return W(e,n)})};if(!W(v,I||""))return null;var H=f>=R.length-1?R[R.length-1]:R[f],q=!!(null==H?void 0:H.addChildType),z=!P||P(v.id),B=!j||j(v.id),F=!D||D(v.id),G=v.children&&v.children.length>0,J=!z||G,M=z?G?"This scope cannot be deleted because other scopes inherit learnings from it.":void 0:"You do not have permission to delete this scope.",U=F?void 0:"You do not have permission to add a scope here.";return o("div",n({className:r.nodeWrapper,style:{"--tree-depth":f}},{children:[i(a,{name:v.name,isExpanded:w,isSelected:K,isAncestor:V,childrenCount:null===(h=v.children)||void 0===h?void 0:h.length,onToggleExpand:function(e){e.stopPropagation(),y(v.id)},onClick:function(){x(Y,"learnings")},searchQuery:I,menuOptions:e(e([],q?[{label:H.addChildLabel||"Add Child",icon:d,onClick:function(){return null==N?void 0:N(v.id,H.addChildType,v.name)},disabled:!F,tooltip:U}]:[],!0),[{label:"Rename",icon:t,onClick:function(){return null==k?void 0:k(v.id,v.name)},disabled:!B,tooltip:B?void 0:"You do not have permission to rename this scope."},{label:"Delete ".concat((null==H?void 0:H.label)||"Node"),icon:l,onClick:function(){var e;return null==E?void 0:E(v.id,v.name,(null===(e=v.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:J,tooltip:M,className:"text-red-500 hover:text-red-600 hover:bg-red-50"}],!1)}),w&&o("div",n({className:r.childrenWrapper},{children:[O.filter(function(e){return!e.isVisible||e.isVisible(v,f)}).map(function(e){var n;return i(c,{icon:e.icon,label:e.label,badgeCount:e.badgeKey?null===(n=v.metrics)||void 0===n?void 0:n[e.badgeKey]:void 0,isActive:K&&(null==T?void 0:T.sectionId)===e.id,onClick:function(){return x(Y,e.id)}},"".concat(v.id,"-").concat(e.id))}),null===(m=v.children)||void 0===m?void 0:m.map(function(e){return i(u,{node:e,depth:f+1,nodePath:Y,expandedNodeIds:S,activeSelection:T,onToggleExpand:y,onSectionSelect:x,onNodeOptionsClick:A,onAddChild:N,onRenameChild:k,onDeleteChild:E,canDeleteScope:P,canEditScope:j,canCreateScope:D,searchQuery:I,sectionsConfig:O,nodeTypesConfig:R},e.id)}),q&&i(s,{label:H.addChildLabel||"Add Child",onAdd:function(){return null==N?void 0:N(v.id,H.addChildType,v.name)},disabled:!F,tooltip:U})]}))]}))};export{u as TreeNode};
|
|
2
2
|
//# sourceMappingURL=TreeNode.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__spreadArray as e,__assign as n}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import r from"../../styles/ScopeTree.module.css.js";import{findNodePathById as
|
|
1
|
+
import{__spreadArray as e,__assign as n}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import r from"../../styles/ScopeTree.module.css.js";import{findNodePathById as c}from"../../utils/treeUtils.js";import{TreeNode as d}from"./TreeNode.js";var a=function(a){var l=a.data,u=a.defaultExpandedIds,f=void 0===u?[]:u,s=a.onSectionSelect,h=a.onNodeOptionsClick,S=a.onAddChild,p=a.onRenameChild,C=a.onDeleteChild,m=a.canDeleteScope,v=a.canEditScope,g=a.canCreateScope,w=a.searchQuery,E=void 0===w?"":w,I=a.onSearchCountChange,x=a.sectionsConfig,y=a.nodeTypesConfig,N=a.selectedRuleSetId,T=a.activeSectionId,j=t(new Set(l?e([l.id],f,!0):f)),D=j[0],L=j[1],R=t(null),k=R[0],A=R[1];i(function(){l&&L(function(e){if(!e.has(l.id)){var n=new Set(e);return n.add(l.id),n}return e})},[null==l?void 0:l.id]),i(function(){if(l&&N&&T){var e=c(l,N);e&&(A({nodePath:e,sectionId:T}),L(function(n){var o=new Set(n);return e.forEach(function(e){return o.add(e)}),o}))}},[l,N,T]),i(function(){if(E&&l){var e=new Set,n=function(o){var t=E.toLowerCase(),i=o.name.toLowerCase().includes(t),r=!1;o.children&&o.children.forEach(function(e){n(e)&&(r=!0)});var c=i||r;return c&&r&&e.add(o.id),c};n(l),L(e)}},[E,l]);var O=function(e,n){if(!n)return 0;var o=0,t=n.toLowerCase();return e.name.toLowerCase().includes(t)&&o++,e.children&&e.children.forEach(function(e){o+=O(e,n)}),o};i(function(){I&&l&&I(O(l,E))},[E,l,I]);return l?o("div",n({className:r.treeContainer},{children:o(d,{node:l,expandedNodeIds:D,activeSelection:k,onToggleExpand:function(e){L(function(n){var o=new Set(n);return o.has(e)?o.delete(e):o.add(e),o})},onSectionSelect:function(e,n){console.log("handleSectionSelect",e,n),A({nodePath:e,sectionId:n}),s&&s(e[e.length-1],n)},onNodeOptionsClick:function(e){h&&h(e)},onAddChild:function(e,n,o){S&&S(e,n,o)},onRenameChild:function(e,n){p&&p(e,n)},onDeleteChild:function(e,n,o){C&&C(e,n,o)},canDeleteScope:m,canEditScope:v,searchQuery:E,sectionsConfig:x,nodeTypesConfig:y,canCreateScope:g})})):null};export{a as TreeSidebar};
|
|
2
2
|
//# sourceMappingURL=TreeSidebar.js.map
|
package/dist/features/LearningManagement/components/StationOnboarding/StationAutocomplete.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t,__assign as n}from"tslib";import{jsxs as r,jsx as a}from"react/jsx-runtime";import{useState as c,useRef as i,useEffect as o}from"react";import{Loader2 as s,Check as u}from"lucide-react";import{fetchStationsByKeyword as l}from"../../apis/scopeApis.js";import d from"../../styles/StationAutocomplete.module.css.js";
|
|
1
|
+
import{__awaiter as e,__generator as t,__assign as n}from"tslib";import{jsxs as r,jsx as a}from"react/jsx-runtime";import{useState as c,useRef as i,useEffect as o}from"react";import{Loader2 as s,Check as u}from"lucide-react";import{fetchStationsByKeyword as l}from"../../apis/scopeApis.js";import d from"../../styles/StationAutocomplete.module.css.js";var m=function(m){var p=m.value,f=m.onChange,h=m.onStationSelect,v=m.className,N=m.style,g=c([]),b=g[0],k=g[1],w=c(!1),y=w[0],C=w[1],S=c(!1),W=S[0],_=S[1],j=i(null),x=i(null),E=i(!1);return o(function(){var e=function(e){x.current&&!x.current.contains(e.target)&&W&&(_(!1),E.current||(f(""),h(null)))};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[W,f,h]),o(function(){return p.trim()?(j.current&&clearTimeout(j.current),C(!0),j.current=setTimeout(function(){return e(void 0,void 0,void 0,function(){var e,n;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),[4,l(p,!0)];case 1:return(e=t.sent())&&e.data?k(e.data):k([]),[3,4];case 2:return n=t.sent(),console.error("Error fetching stations:",n),k([]),[3,4];case 3:return C(!1),[7];case 4:return[2]}})})},500)):(k([]),C(!1)),function(){j.current&&clearTimeout(j.current)}},[p]),r("div",n({className:"".concat(d.wrapper," ").concat(v||""),style:N,ref:x},{children:[r("div",n({className:d.inputWrapper},{children:[a("input",{type:"text",value:p,onChange:function(e){f(e.target.value),_(!0),h(null),E.current=!1},onFocus:function(){(b.length>0||p.length>0)&&_(!0)},placeholder:"Search for a station...",className:d.input}),y&&a("div",n({className:d.spinnerWrapper},{children:a(s,{className:d.spinner})}))]})),W&&p&&a("div",n({className:d.dropdown},{children:b.length>0?b.map(function(e){var t=!!e.ruleset_id;return r("div",n({className:"".concat(d.item," ").concat(t?d.itemOnboarded:d.itemClickable),onClick:function(){t||(f(e.station_name),h(e),_(!1),E.current=!0)}},{children:[r("div",n({className:d.itemLeft},{children:[t&&a("div",n({className:d.checkWrapper},{children:a(u,{size:12,strokeWidth:3})})),r("div",{children:[a("div",n({className:"".concat(d.stationName," ").concat(t?d.stationNameOnboarded:d.stationNameUnonboarded)},{children:e.station_name})),a("div",n({className:d.market},{children:e.market}))]})]})),t&&a("span",n({className:d.badge},{children:"Onboarded"}))]}),e.station_guid)}):!y&&a("div",n({className:d.noResults},{children:"No stations found"}))}))]}))};export{m as default};
|
|
2
2
|
//# sourceMappingURL=StationAutocomplete.js.map
|
package/dist/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as o,__generator as n,__spreadArray as r}from"tslib";import{jsxs as t,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useMemo as c,useEffect as u}from"react";import{Dialog as d,Box as p,Typography as m,IconButton as f,DialogContent as h,CircularProgress as g}from"@mui/material";import{X as x,Brush as b,Search as v,ArrowRight as S}from"lucide-react";import{Toast as y}from"primereact/toast";import{v4 as C}from"uuid";import{retrieveGenreScopes as w,searchScopes as T,inheritScopeBackwardCompatible as F,deleteRuleSet as _,updateStation as O,createRuleSet as E}from"../../apis/scopeApis.js";import k from"./StationAutocomplete.js";import z from"../CardSkeleton.js";import B from"./OnboardingLoader.js";import D from"./TemplateCard.js";import N from"../../styles/StationOnboardModal.module.css.js";import I from"./InputField.js";import j from"../../store/useAuthStore.js";import{useConfigStore as M}from"../../store/useConfigStore.js";import{useLearningTemplateStore as R}from"../../store/useLearningTemplateStore.js";import{IL_CONFIG_CONSTANTS as A}from"../../config.js";var L=[{label:"PT - Pacific Time",value:"Pacific Time"},{label:"MT - Mountain Time",value:"Mountain Time"},{label:"CT - Central Time",value:"Central Time"},{label:"ET - Eastern Time",value:"Eastern Time"}],W=[{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"},{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"}],P=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],q=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],U=function(U){var Y,G=U.isOpen,H=U.onClose,Z=U.onBoardStation,K=U.app_integration_id,X=U.token,J=a(null),Q=J[0],V=J[1],$=a([]),ee=$[0],oe=$[1],ne=a(0),re=ne[0],te=ne[1],ie=a(!0),le=ie[0],ae=ie[1],se=a(!1),ce=se[0],ue=se[1],de=a([]),pe=de[0],me=de[1],fe=a(""),he=fe[0],ge=fe[1],xe=a(""),be=xe[0],ve=xe[1],Se=a(!1),ye=Se[0],Ce=Se[1],we=a(!1),Te=we[0],Fe=we[1],_e=a(null),Oe=_e[0],Ee=_e[1],ke=a(null);ke[0],ke[1];var ze=a(!1),Be=ze[0],De=ze[1],Ne=a(0),Ie=Ne[0],je=Ne[1],Me=a(""),Re=Me[0],Ae=Me[1],Le=j().user,We=s(null),Pe=s(null),qe=s(null),Ue=s(null);M().configuration;var Ye=a({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),Ge=Ye[0],He=Ye[1],Ze=function(e,o){return e.find(function(e){return e.value===o})||null},Ke=c(function(){return ee.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[ee]),Xe=c(function(){var e,o,n;if(!Ge.genre)return null;var r=ee.find(function(e){return e.scope_name===Ge.genre});return r?{id:r.id,title:r.scope_name||"Unnamed Template",description:(null===(e=r.description)||void 0===e?void 0:e.trim())||"No description available.",inheritedText:(null===(o=r.inheritance)||void 0===o?void 0:o[0])||void 0,rulesCount:r.rules_count||0,tiersCount:r.tier_count||0,isCopy:null!==(n=r.is_copy)&&void 0!==n&&n}:null},[Ge.genre,ee]);u(function(){return function(){qe.current&&clearTimeout(qe.current)}},[]);var Je=function(e){return o(void 0,void 0,void 0,function(){var o,t,i;return n(this,function(n){switch(n.label){case 0:if(ce)return[2];ue(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,w({limit:"20",offset:String(e)})];case 2:return"success"===(null==(o=n.sent())?void 0:o.status)&&Array.isArray(null==o?void 0:o.data)?(t=o.data,oe(function(o){if(0===e)return t;var n=new Set(o.map(function(e){return e.id})),i=t.filter(function(e){return!n.has(e.id)});return r(r([],o,!0),i,!0)}),t.length<20?ae(!1):ae(!0),te(e+20)):ae(!1),[3,5];case 3:return i=n.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",i),ae(!1),[3,5];case 4:return ue(!1),[7];case 5:return[2]}})})};u(function(){G&&(oe([]),te(0),ae(!0),Je(0))},[G]);u(function(){He(Q?function(o){var n;return e(e({},o),{region:null!==(n=Q.market)&&void 0!==n?n:""})}:{region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""})},[Q]),u(function(){var e=setTimeout(function(){ve(he)},500);return function(){return clearTimeout(e)}},[he]),u(function(){o(void 0,void 0,void 0,function(){var e,o,r,t;return n(this,function(n){switch(n.label){case 0:if(!be.trim())return me([]),[2];Ce(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,T({search_string:be})];case 2:return"success"===(null==(e=n.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(o=e.data.filter(function(e){var o,n=null!==(o=e.inheritance)&&void 0!==o?o:[],r=n.indexOf(e.scope_name);return!(r<=0)&&n[r-1]===Ge.genre}),r=o.map(function(e){var o,n,r;return{id:e.id,title:e.scope_name||"Unnamed Template",description:(null===(o=e.description)||void 0===o?void 0:o.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!==(r=e.is_copy)&&void 0!==r&&r}}),me(r)):me([]),[3,5];case 3:return t=n.sent(),console.error("[StationOnboard] Error searching scopes:",t),me([]),[3,5];case 4:return Ce(!1),[7];case 5:return[2]}})})},[be,Ge.genre]),u(function(){!be.trim()&&Xe&&Ee(Xe.id)},[be,Xe]);var Qe=function(){setTimeout(function(){Ue.current&&Ue.current.scrollTo({top:Ue.current.scrollHeight,behavior:"smooth"})},100)},Ve=function(){Ae(""),V(null),He({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),me([]),ge(""),Ee(null),H()},$e=function(o,n){var r;if("primeTime"!==o){var t=null!==(r=null==n?void 0:n.value)&&void 0!==r?r:"";He(function(n){var r;return e(e({},n),((r={})[o]=String(t),r))}),"genre"===o&&(Fe(!0),qe.current&&clearTimeout(qe.current),qe.current=setTimeout(function(){var e=ee.find(function(e){return e.scope_name===t});Ee(e?e.id:null),Fe(!1)},800))}else{var i=(null==n?void 0:n.value)?String(n.value):"";He(function(o){return e(e({},o),{primeTime:i?[i]:[]})})}},eo=Boolean(Q&&Ge.region&&Ge.timezone&&Ge.primeTime.length>0&&Ge.genre);return t(d,e({open:G,onClose:Ve,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"sans-serif"}}},{children:[i(y,{ref:We}),t(p,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[t(p,e({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[i(m,e({sx:{fontSize:"18px",fontWeight:600,color:"#19213D"}},{children:"Onboard a Station"})),i(m,e({sx:{fontSize:"16px",fontWeight:400,color:"#666F8D"}},{children:"Onboard a station to start configuring learnings."}))]})),i(f,e({onClick:Ve,disabled:Be,sx:{color:"#19213D"}},{children:i(x,{size:24})}))]})),t(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[i(B,{isLoading:Be,currentStep:Ie,onComplete:function(){De(!1);var e=Pe.current;Ve(),Z(e||void 0),Pe.current=null}}),t(p,e({sx:{display:"flex",flex:1,paddingY:"14px",paddingX:"20px",gap:3,overflowY:"hidden"}},{children:[t(p,e({ref:Ue,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5",height:"100%",overflowY:"auto"}},{children:[i(m,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Basic Details"})),i(m,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Set up basic station details to unlock AI recommended scopes."})),t(p,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[t(p,e({className:N.formGroup},{children:[t("label",e({className:N.label},{children:[i("span",e({className:N.asterisk},{children:"*"})),"Station Name/Call Letters"]})),i(k,{value:Re,onChange:Ae,onStationSelect:function(e){return V(e)}})]})),i(I,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:Ge.region||void 0,isSearchable:!1}),i(I,{required:!0,label:"TimeZone",placeholder:"Select TimeZone",options:L,value:Ze(L,Ge.timezone),onOptionChange:function(e){return $e("timezone",e)},isSearchable:!1}),i(I,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:W,value:Ze(W,(null===(Y=Ge.primeTime)||void 0===Y?void 0:Y[0])||""),onOptionChange:function(e){return $e("primeTime",e)},isSearchable:!1}),i(p,e({onClick:Qe,sx:{width:"100%"}},{children:i(I,{label:"Station Type",placeholder:"None",options:P,value:Ze(P,Ge.type),onOptionChange:function(o){$e("type",o),"Low Sellout"!==(null==o?void 0:o.value)&&He(function(o){return e(e({},o),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===Ge.type&&i(p,e({onClick:Qe,sx:{width:"100%"}},{children:i(I,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:q,value:Ze(q,Ge.lowSelloutConfig),onOptionChange:function(e){return $e("lowSelloutConfig",e)},isSearchable:!1})}))]}))]})),t(p,e({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column",height:"100%",overflowY:"auto"}},{children:[t(m,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:[i("span",e({style:{color:"#E53E3E",marginRight:"2px"}},{children:"*"})),"Select a scope for your station"]})),i(m,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:"16px"}},{children:"Your station will inherit the rules from the selected scope."})),i(p,e({sx:{mb:2}},{children:i(I,{required:!0,label:"",placeholder:"Select Genre",options:Ke,value:Ze(Ke,Ge.genre),onOptionChange:function(e){return $e("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!ce&&le&&Je(re)},isLoadingOptions:ce,hasMoreOptions:le})})),i(p,e({sx:{mb:3}},{children:Te?i(z,{}):Xe?t(p,e({sx:{border:"1.5px solid #2563EB",borderRadius:"10px",p:"14px 16px",bgcolor:"#EFF6FF",display:"flex",alignItems:"flex-start",gap:"12px"}},{children:[i(p,e({sx:{width:36,height:36,borderRadius:"8px",bgcolor:"#DBEAFE",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:t("svg",e({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[i("circle",{cx:"12",cy:"12",r:"2"}),i("path",{d:"M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"})]}))})),t(p,e({sx:{flex:1,minWidth:0}},{children:[i(m,e({sx:{fontSize:"0.875rem",fontWeight:600,color:"#1E3A5F",mb:"2px"}},{children:Xe.title})),i(m,e({sx:{fontSize:"0.75rem",color:"#2563EB",mb:"8px"}},{children:Xe.description})),t(p,e({sx:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"}},{children:[Xe.inheritedText&&t(p,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px",display:"inline-flex",alignItems:"center",gap:"4px"}},{children:[t("svg",e({width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[i("polyline",{points:"15 3 21 3 21 9"}),i("path",{d:"M21 3L9 15"}),i("path",{d:"M3 21l6-6"})]})),Xe.inheritedText]})),t(p,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px"}},{children:[Xe.rulesCount," rules"]})),t(p,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px"}},{children:[Xe.tiersCount," Tiers"]}))]}))]}))]})):Ge.genre?null:t(p,e({sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.4,py:6,gap:1}},{children:[i(b,{size:28}),i(m,e({sx:{fontSize:"0.75rem",color:"#94A3B8"}},{children:"Select a genre to load the matching scope"}))]}))})),Ge.genre&&t(l,{children:[t(m,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:["Select an Existing Station from the “",Ge.genre,"” Scope"," ",i(m,e({component:"span",sx:{fontSize:"1rem",fontWeight:400,color:"#64748B"}},{children:"(Optional)"}))]})),t(m,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:"12px"}},{children:["Please select an existing station under the “",Ge.genre,"” category to copy its learnings."]})),t("div",e({className:N.searchWrapper,style:{marginBottom:"12px"}},{children:[i("input",{type:"text",value:he,onChange:function(e){return ge(e.target.value)},placeholder:"Search for station...",className:N.searchInput}),i(v,{className:N.searchIcon,size:16})]})),t(p,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[ye&&i(z,{}),!ye&&0===pe.length&&be.trim()&&t(m,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',be,'".']})),!ye&&pe.map(function(o){return i(D,e({},o,{isSelected:Oe===o.id,onSelect:function(e){var o;Ee(Oe===e?null!==(o=null==Xe?void 0:Xe.id)&&void 0!==o?o:null:e)}}),o.id)})]}))]})]}))]}))]})),t(p,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[i("button",e({onClick:Ve,disabled:Be,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 o(void 0,void 0,void 0,function(){var o,t,i,l,a,s,c,u,d,p,m,f,h,g,x,b,v,S,y;return n(this,function(n){switch(n.label){case 0:if(!Q||!Oe)return console.error("[StationOnboard] Missing required data for onboarding"),[2];o=Xe?r([Xe],pe,!0):pe,t=o.find(function(e){return e.id===Oe}),null==t?void 0:t.isCopy,De(!0),je(0),i=null,n.label=1;case 1:return n.trys.push([1,3,,4]),c=R.getState().backwardCompatibility,l=c?{topic:"customRuleSet",customScopeGroupName:A.CUSTOM_SCOPE_GROUP_NAME,scopeDescription:Q.station_name||"New Station",parentScopeId:null,customScopeName:Q.station_name||"New Station",customScopeId:C(),createByName:(null==Le?void 0:Le.firstname)||"System",createdBy:(null==Le?void 0:Le.email)||"system@audacy.com",scopeType:"Station"}:{topic:"customRuleSet",scope_reference_id:null,scopeDescription:"demo",parentScopeId:null,scopeName:Q.station_name||"New Station",scopeReferenceMetadata:{},applicationMappingId:K},console.log("[StationOnboard] Step 1: Creating rule set with payload:",l),[4,E(l,X)];case 2:if(a=n.sent(),!(i=null===(g=null==a?void 0:a.data)||void 0===g?void 0:g.scopeId))throw new Error("Failed to create scope - no scopeId returned");return console.log("[StationOnboard] Step 1 Complete: Created scope with ID:",i),je(1),[3,4];case 3:return s=n.sent(),console.error("[StationOnboard] Error creating rule set:",s),null===(x=We.current)||void 0===x||x.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),De(!1),je(0),[2];case 4:return n.trys.push([4,6,,11]),c=R.getState().backwardCompatibility,u=e(e({market:Q.market,region:Q.region},c?{}:{timezone:Ge.timezone}),{primetime_windows:Ge.primeTime,genre:Ge.genre,station_type:""===Ge.type?null:Ge.type,low_sellout_configurations:"Low Sellout"===Ge.type?Ge.lowSelloutConfig:null,ruleset_id:i,station_guid:Q.station_guid,station_name:Q.station_name||"New Station"}),console.log("[StationOnboard] Step 2: Updating station with payload:",u),[4,O(u)];case 5:return n.sent(),console.log("[StationOnboard] Step 2 Complete: Station updated"),je(2),[3,11];case 6:d=n.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",d),409===d.status?(null===(b=We.current)||void 0===b||b.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),V(null),Ee(null),Ae(""),He(function(o){return e(e({},o),{region:""})})):null===(v=We.current)||void 0===v||v.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,_(i,X)];case 8:return n.sent(),console.log("[StationOnboard] Rollback complete: Deleted rule set",i),[3,10];case 9:return p=n.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",p),[3,10];case 10:return De(!1),je(0),[2];case 11:return n.trys.push([11,13,,14]),m=null!==Oe&&Oe!==(null==Xe?void 0:Xe.id),f={source_scope_id:m?Oe:null!==(S=null==Xe?void 0:Xe.id)&&void 0!==S?S:Oe,target_scope_id:i,is_copy_parent_variant_id:m},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",f),[4,F(f)];case 12:return n.sent(),console.log("[StationOnboard] Step 3 Complete: Scope inherited"),je(3),[3,14];case 13:return h=n.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",h),null===(y=We.current)||void 0===y||y.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),De(!1),je(0),[2];case 14:return Pe.current=i,console.log("[StationOnboard] Onboarding completed successfully!"),[2]}})})},disabled:!eo||Be,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:eo?"#2563EB":"#BFDBFE",color:"#fff",cursor:eo&&!Be?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:t(l,Be?{children:[i(g,{size:16,color:"inherit"}),i("span",{children:"Onboarding..."})]}:{children:[i("span",{children:"Onboard Station"}),i(S,{size:16})]})}))]}))]}))};export{U as default};
|
|
1
|
+
import{__assign as e,__awaiter as o,__generator as r,__spreadArray as n}from"tslib";import{jsxs as i,jsx as t,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useMemo as c,useEffect as u}from"react";import{Dialog as p,Box as d,Typography as m,IconButton as f,DialogContent as h,CircularProgress as g}from"@mui/material";import{X as x,Search as v,ArrowRight as b}from"lucide-react";import{Toast as S}from"primereact/toast";import{v4 as y}from"uuid";import{retrieveGenreScopes as C,searchScopes as w,inheritScopeBackwardCompatible as _,deleteRuleSet as F,updateStation as T,createRuleSet as k}from"../../apis/scopeApis.js";import E from"./StationAutocomplete.js";import z from"../CardSkeleton.js";import O from"./OnboardingLoader.js";import D from"./TemplateCard.js";import B from"../../styles/StationOnboardModal.module.css.js";import I from"./InputField.js";import A from"../../store/useAuthStore.js";import{useConfigStore as R}from"../../store/useConfigStore.js";import{useLearningTemplateStore as j}from"../../store/useLearningTemplateStore.js";import{IL_CONFIG_CONSTANTS as L}from"../../config.js";import{useAppSecRolesStore as N}from"../../store/useAppSecRolesStore.js";import W from"../../store/useEnvStore.js";import q from"../../RuleContent/AddScopeApprovalSearchComponent.js";var M=[{label:"PT - Pacific Time",value:"Pacific Time"},{label:"MT - Mountain Time",value:"Mountain Time"},{label:"CT - Central Time",value:"Central Time"},{label:"ET - Eastern Time",value:"Eastern Time"}],P=[{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"},{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"}],G=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],U=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],H=function(H){var K,Y=H.isOpen,Z=H.onClose,V=H.onBoardStation,X=H.app_integration_id,J=H.token,Q=a(null),$=Q[0],ee=Q[1],oe=a([]),re=oe[0],ne=oe[1],ie=a(0),te=ie[0],le=ie[1],ae=a(!0),se=ae[0],ce=ae[1],ue=a(!1),pe=ue[0],de=ue[1],me=a([]),fe=me[0],he=me[1],ge=a(""),xe=ge[0],ve=ge[1],be=a(""),Se=be[0],ye=be[1],Ce=a(!1),we=Ce[0],_e=Ce[1],Fe=a(!1),Te=Fe[0],ke=Fe[1],Ee=a(null),ze=Ee[0],Oe=Ee[1],De=a(null);De[0],De[1];var Be=a(!1),Ie=Be[0],Ae=Be[1],Re=a(0),je=Re[0],Le=Re[1],Ne=a(""),We=Ne[0],qe=Ne[1],Me=A().user,Pe=s(null),Ge=s(null),Ue=s(null),He=s(null);R().configuration;var Ke=s(null),Ye=N(function(e){return e.roles}),Ze=W(function(e){return e.rbacConfig}),Ve=a("approval_required"),Xe=Ve[0],Je=Ve[1],Qe=a([]),$e=Qe[0],eo=Qe[1],oo=a([]),ro=oo[0],no=oo[1],io=a(""),to=io[0],lo=io[1],ao=a({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),so=ao[0],co=ao[1],uo=function(e,o){return e.find(function(e){return e.value===o})||null},po=c(function(){return re.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[re]),mo=c(function(){var e,o,r;if(!so.genre)return null;var n=re.find(function(e){return e.scope_name===so.genre});return n?{id:n.id,title:n.scope_name||"Unnamed Template",description:(null===(e=n.description)||void 0===e?void 0:e.trim())||"No description available.",inheritedText:(null===(o=n.inheritance)||void 0===o?void 0:o[0])||void 0,rulesCount:n.rules_count||0,tiersCount:n.tier_count||0,isCopy:null!==(r=n.is_copy)&&void 0!==r&&r}:null},[so.genre,re]);u(function(){return function(){Ue.current&&clearTimeout(Ue.current)}},[]);var fo=function(e){return o(void 0,void 0,void 0,function(){var o,i,t;return r(this,function(r){switch(r.label){case 0:if(pe)return[2];de(!0),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,C({limit:"20",offset:String(e)})];case 2:return"success"===(null==(o=r.sent())?void 0:o.status)&&Array.isArray(null==o?void 0:o.data)?(i=o.data,ne(function(o){if(0===e)return i;var r=new Set(o.map(function(e){return e.id})),t=i.filter(function(e){return!r.has(e.id)});return n(n([],o,!0),t,!0)}),i.length<20?ce(!1):ce(!0),le(e+20)):ce(!1),[3,5];case 3:return t=r.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",t),ce(!1),[3,5];case 4:return de(!1),[7];case 5:return[2]}})})};u(function(){Y&&(ne([]),le(0),ce(!0),fo(0))},[Y]);u(function(){co($?function(o){var r;return e(e({},o),{region:null!==(r=$.market)&&void 0!==r?r:""})}:{region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""})},[$]),u(function(){var e=setTimeout(function(){ye(xe)},500);return function(){return clearTimeout(e)}},[xe]),u(function(){o(void 0,void 0,void 0,function(){var e,o,n,i;return r(this,function(r){switch(r.label){case 0:if(!Se.trim())return he([]),[2];_e(!0),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,w({search_string:Se})];case 2:return"success"===(null==(e=r.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(o=e.data.filter(function(e){var o,r=null!==(o=e.inheritance)&&void 0!==o?o:[],n=r.indexOf(e.scope_name);return!(n<=0)&&r[n-1]===so.genre}),n=o.map(function(e){var o,r,n;return{id:e.id,title:e.scope_name||"Unnamed Template",description:(null===(o=e.description)||void 0===o?void 0:o.trim())||"No description available.",inheritedText:(null===(r=e.inheritance)||void 0===r?void 0:r[0])||void 0,rulesCount:e.rules_count||0,tiersCount:e.tier_count||0,isCopy:null!==(n=e.is_copy)&&void 0!==n&&n}}),he(n)):he([]),[3,5];case 3:return i=r.sent(),console.error("[StationOnboard] Error searching scopes:",i),he([]),[3,5];case 4:return _e(!1),[7];case 5:return[2]}})})},[Se,so.genre]),u(function(){!Se.trim()&&mo&&Oe(mo.id)},[Se,mo]);var ho=function(){setTimeout(function(){He.current&&He.current.scrollTo({top:He.current.scrollHeight,behavior:"smooth"})},100)},go=function(){qe(""),ee(null),co({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),he([]),ve(""),Oe(null),Je("approval_required"),eo([]),no([]),lo(""),Z()},xo=function(o,r){var n;if("primeTime"!==o){var i=null!==(n=null==r?void 0:r.value)&&void 0!==n?n:"";co(function(r){var n;return e(e({},r),((n={})[o]=String(i),n))}),"genre"===o&&(ke(!0),Ue.current&&clearTimeout(Ue.current),Ue.current=setTimeout(function(){var e=re.find(function(e){return e.scope_name===i});Oe(e?e.id:null),ke(!1)},800))}else{var t=(null==r?void 0:r.value)?String(r.value):"";co(function(o){return e(e({},o),{primeTime:t?[t]:[]})})}},vo=Boolean($&&so.region&&so.timezone&&so.primeTime.length>0&&so.genre);return i(p,e({open:Y,onClose:go,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"sans-serif"}}},{children:[t(S,{ref:Pe}),i(d,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[i(d,e({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[t(m,e({sx:{fontSize:"18px",fontWeight:600,color:"#19213D"}},{children:"Onboard a Station"})),t(m,e({sx:{fontSize:"16px",fontWeight:400,color:"#666F8D"}},{children:"Onboard a station to start configuring learnings."}))]})),t(f,e({onClick:go,disabled:Ie,sx:{color:"#19213D"}},{children:t(x,{size:24})}))]})),i(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[t(O,{isLoading:Ie,currentStep:je,onComplete:function(){Ae(!1);var e=Ge.current;go(),V(e||void 0),Ge.current=null}}),t(d,e({sx:{display:"flex",flex:1,flexDirection:"column",paddingY:"14px",paddingX:"20px",gap:2,overflowY:"auto"}},{children:i(d,e({sx:{display:"flex",gap:3}},{children:[i(d,e({ref:He,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5"}},{children:[t(m,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Basic Details"})),t(m,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Set up basic station details to unlock AI recommended scopes."})),i(d,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[i(d,e({className:B.formGroup},{children:[i("label",e({className:B.label},{children:[t("span",e({className:B.asterisk},{children:"*"})),"Station Name/Call Letters"]})),t(E,{value:We,onChange:qe,onStationSelect:function(e){return ee(e)}})]})),t(I,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:so.region||void 0,isSearchable:!1}),t(I,{required:!0,label:"TimeZone",placeholder:"Select TimeZone",options:M,value:uo(M,so.timezone),onOptionChange:function(e){return xo("timezone",e)},isSearchable:!1}),t(I,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:P,value:uo(P,(null===(K=so.primeTime)||void 0===K?void 0:K[0])||""),onOptionChange:function(e){return xo("primeTime",e)},isSearchable:!1}),t(d,e({onClick:ho,sx:{width:"100%"}},{children:t(I,{label:"Station Type",placeholder:"None",options:G,value:uo(G,so.type),onOptionChange:function(o){xo("type",o),"Low Sellout"!==(null==o?void 0:o.value)&&co(function(o){return e(e({},o),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===so.type&&t(d,e({onClick:ho,sx:{width:"100%"}},{children:t(I,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:U,value:uo(U,so.lowSelloutConfig),onOptionChange:function(e){return xo("lowSelloutConfig",e)},isSearchable:!1})})),j.getState().backwardCompatibility&&i("div",e({ref:Ke,style:{display:"flex",flexDirection:"column",marginTop:"12px"}},{children:[t(m,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Approval Settings"})),t(m,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Configure who can approve learnings before they get published."})),i("div",e({style:{marginBottom:"12px",fontSize:"12px",color:"#8F2C23",gap:"16px"}},{children:[i("div",e({style:{marginBottom:"12px",fontSize:"12px",color:"#8F2C23",gap:"12px"}},{children:[i("div",e({role:"radio","aria-checked":"approval_required"===Xe,tabIndex:0,style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px",marginBottom:"8px"},onClick:function(){return Je("approval_required")},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||Je("approval_required")}},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[t("div",e({style:{display:"flex",height:"16px",width:"16px",flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid ".concat("approval_required"===Xe?"#2563EB":"#CBD5E1")}},{children:"approval_required"===Xe&&t("div",{style:{height:"8px",width:"8px",borderRadius:"50%",backgroundColor:"#2563EB"}})})),t("span",e({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:"Approval Required Before Publishing"}))]})),t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#666F8D"}},{children:"Learnings require approval before publishing."}))]})),i("div",e({style:{gap:"16px"}},{children:["approval_required"===Xe&&t(q,{selectedApprovers:$e,selectedGroupOfApprovers:ro,onApproversChange:function(e){eo(e),lo("")},onGroupsChange:function(e){no(e),lo("")}}),to&&t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#8F2C23"}},{children:to}))]}))]})),i("div",e({role:"radio","aria-checked":"publish_without"===Xe,tabIndex:0,style:{cursor:"pointer",display:"flex",flexDirection:"column",gap:"4px"},onClick:function(){Je("publish_without"),lo("")},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(Je("publish_without"),lo(""))}},{children:[i("div",e({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[t("div",e({style:{display:"flex",height:"16px",width:"16px",flexShrink:0,alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid ".concat("publish_without"===Xe?"#2563EB":"#CBD5E1")}},{children:"publish_without"===Xe&&t("div",{style:{height:"8px",width:"8px",borderRadius:"50%",backgroundColor:"#2563EB"}})})),t("span",e({style:{fontSize:"14px",fontWeight:500,color:"#19213D"}},{children:"Publish Without Approval"}))]})),t("p",e({style:{margin:0,marginLeft:"24px",fontSize:"12px",color:"#666F8D"}},{children:"Learnings can be published directly."}))]}))]}))]}))]}))]})),i(d,e({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column"}},{children:[i(m,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:[t("span",e({style:{color:"#E53E3E",marginRight:"2px"}},{children:"*"})),"Select a scope for your station"]})),t(m,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:"16px"}},{children:"Your station will inherit the rules from the selected scope."})),t(d,e({sx:{mb:2}},{children:t(I,{required:!0,label:"",placeholder:"Select Genre",options:po,value:uo(po,so.genre),onOptionChange:function(e){return xo("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!pe&&se&&fo(te)},isLoadingOptions:pe,hasMoreOptions:se})})),t(d,e({sx:{mb:3}},{children:Te?t(z,{}):mo?i(d,e({sx:{border:"1.5px solid #2563EB",borderRadius:"10px",p:"14px 16px",bgcolor:"#EFF6FF",display:"flex",alignItems:"flex-start",gap:"12px"}},{children:[t(d,e({sx:{width:36,height:36,borderRadius:"8px",bgcolor:"#DBEAFE",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:i("svg",e({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("circle",{cx:"12",cy:"12",r:"2"}),t("path",{d:"M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"})]}))})),i(d,e({sx:{flex:1,minWidth:0}},{children:[t(m,e({sx:{fontSize:"0.875rem",fontWeight:600,color:"#1E3A5F",mb:"2px"}},{children:mo.title})),t(m,e({sx:{fontSize:"0.75rem",color:"#2563EB",mb:"8px"}},{children:mo.description})),i(d,e({sx:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"}},{children:[mo.inheritedText&&i(d,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px",display:"inline-flex",alignItems:"center",gap:"4px"}},{children:[i("svg",e({width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("polyline",{points:"15 3 21 3 21 9"}),t("path",{d:"M21 3L9 15"}),t("path",{d:"M3 21l6-6"})]})),mo.inheritedText]})),i(d,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px"}},{children:[mo.rulesCount," rules"]})),i(d,e({component:"span",sx:{fontSize:"0.7rem",color:"#475569",bgcolor:"#F1F5F9",border:"1px solid #E2E8F0",borderRadius:"4px",px:"6px",py:"2px"}},{children:[mo.tiersCount," Tiers"]}))]}))]}))]})):so.genre?null:t(d,e({sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.4,py:6,gap:1}},{children:t(m,e({sx:{fontSize:"0.75rem",color:"#94A3B8"}},{children:"Select a genre to load the matching scope"}))}))})),so.genre&&i(l,{children:[i(m,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:["Select an Existing Station from the “",so.genre,"” Scope"," ",t(m,e({component:"span",sx:{fontSize:"1rem",fontWeight:400,color:"#64748B"}},{children:"(Optional)"}))]})),i(m,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:"12px"}},{children:["Please select an existing station under the “",so.genre,"” category to copy its learnings."]})),i("div",e({className:B.searchWrapper,style:{marginBottom:"12px"}},{children:[t("input",{type:"text",value:xe,onChange:function(e){return ve(e.target.value)},placeholder:"Search for station...",className:B.searchInput}),t(v,{className:B.searchIcon,size:16})]})),i(d,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[we&&t(z,{}),!we&&0===fe.length&&Se.trim()&&i(m,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',Se,'".']})),!we&&fe.map(function(o){return t(D,e({},o,{isSelected:ze===o.id,onSelect:function(e){var o;Oe(ze===e?null!==(o=null==mo?void 0:mo.id)&&void 0!==o?o:null:e)}}),o.id)})]}))]})]}))]}))}))]})),i(d,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[t("button",e({onClick:go,disabled:Ie,style:{padding:"7px 10px",borderRadius:"6px",color:"#64748B",border:"1px solid #E2E8F0",backgroundColor:"#fff",cursor:"pointer",fontSize:"14px",fontWeight:500}},{children:"Cancel"})),t("button",e({onClick:function(){return o(void 0,void 0,void 0,function(){var o,i,t,l,a,s,c,u,p,d,m,f,h,g,x,v,b,S,C,w,E,z,O;return r(this,function(r){switch(r.label){case 0:if(!$||!ze)return console.error("[StationOnboard] Missing required data for onboarding"),[2];if(j.getState().backwardCompatibility&&"approval_required"===Xe&&0===$e.length&&0===ro.length)return lo("Please select at least one approver or approver group."),setTimeout(function(){var e;null===(e=Ke.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50),[2];lo(""),o=mo?n([mo],fe,!0):fe,i=o.find(function(e){return e.id===ze}),null==i?void 0:i.isCopy,Ae(!0),Le(0),t=null,r.label=1;case 1:return r.trys.push([1,3,,4]),c=j.getState().backwardCompatibility,l=c?{topic:"customRuleSet",customScopeGroupName:L.CUSTOM_SCOPE_GROUP_NAME,scopeDescription:$.station_name||"New Station",parentScopeId:null,customScopeName:$.station_name||"New Station",customScopeId:y(),createByName:(null==Me?void 0:Me.firstname)||"System",createdBy:(null==Me?void 0:Me.email)||"system@audacy.com",scopeType:"Station",approvalRequired:"approval_required"===Xe,appsecData:{application:null==Ze?void 0:Ze.applicationId,module:null==Ze?void 0:Ze.moduleId,roles:n(n([],"approval_required"===Xe?[{users:$e.map(function(e){return e.email}),groups:ro.map(function(e){return e._id}),role:null!==(x=null===(g=Ye.find(function(e){return"Learning Manager"===e.name}))||void 0===g?void 0:g._id)&&void 0!==x?x:""}]:[],!0),[{users:[null==Me?void 0:Me.email],groups:[],role:null!==(b=null===(v=Ye.find(function(e){return"Instant Learning Admin"===e.name}))||void 0===v?void 0:v._id)&&void 0!==b?b:""}],!1)}}:{topic:"customRuleSet",scope_reference_id:null,scopeDescription:"demo",parentScopeId:null,scopeName:$.station_name||"New Station",scopeReferenceMetadata:{},applicationMappingId:X},console.log("[StationOnboard] Step 1: Creating rule set with payload:",l),[4,k(l,J)];case 2:if(a=r.sent(),!(t=null===(S=null==a?void 0:a.data)||void 0===S?void 0:S.scopeId))throw new Error("Failed to create scope - no scopeId returned");return console.log("[StationOnboard] Step 1 Complete: Created scope with ID:",t),Le(1),[3,4];case 3:return s=r.sent(),console.error("[StationOnboard] Error creating rule set:",s),null===(C=Pe.current)||void 0===C||C.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),Ae(!1),Le(0),[2];case 4:return r.trys.push([4,6,,11]),c=j.getState().backwardCompatibility,u=e(e({market:$.market,region:$.region},c?{}:{timezone:so.timezone}),{primetime_windows:so.primeTime,genre:so.genre,station_type:""===so.type?null:so.type,low_sellout_configurations:"Low Sellout"===so.type?so.lowSelloutConfig:null,ruleset_id:t,station_guid:$.station_guid,station_name:$.station_name||"New Station"}),console.log("[StationOnboard] Step 2: Updating station with payload:",u),[4,T(u)];case 5:return r.sent(),console.log("[StationOnboard] Step 2 Complete: Station updated"),Le(2),[3,11];case 6:p=r.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",p),409===p.status?(null===(w=Pe.current)||void 0===w||w.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),ee(null),Oe(null),qe(""),co(function(o){return e(e({},o),{region:""})})):null===(E=Pe.current)||void 0===E||E.show({severity:"error",life:2500,summary:"Error updating station",detail:"Please try again."}),r.label=7;case 7:return r.trys.push([7,9,,10]),[4,F(t,J)];case 8:return r.sent(),console.log("[StationOnboard] Rollback complete: Deleted rule set",t),[3,10];case 9:return d=r.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",d),[3,10];case 10:return Ae(!1),Le(0),[2];case 11:return r.trys.push([11,13,,14]),m=null!==ze&&ze!==(null==mo?void 0:mo.id),f={source_scope_id:m?ze:null!==(z=null==mo?void 0:mo.id)&&void 0!==z?z:ze,target_scope_id:t,is_copy_parent_variant_id:m},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",f),[4,_(f)];case 12:return r.sent(),console.log("[StationOnboard] Step 3 Complete: Scope inherited"),Le(3),[3,14];case 13:return h=r.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",h),null===(O=Pe.current)||void 0===O||O.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),Ae(!1),Le(0),[2];case 14:return Ge.current=t,console.log("[StationOnboard] Onboarding completed successfully!"),[2]}})})},disabled:!vo||Ie,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:vo?"#2563EB":"#BFDBFE",color:"#fff",cursor:vo&&!Ie?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:i(l,Ie?{children:[t(g,{size:16,color:"inherit"}),t("span",{children:"Onboarding..."})]}:{children:[t("span",{children:"Onboard Station"}),t(b,{size:16})]})}))]}))]}))};export{H as default};
|
|
2
2
|
//# sourceMappingURL=StationOnboardModal.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"react";var
|
|
1
|
+
import"react";var a={TAB:"tab",RULESET_ID:"rulesetid",SECTION:"section",OPEN_IL:"openil",ONBOARD_STATION:"onboardstation",VARIANT_ID:"variantid",APPROVAL_ACTION:"approval"},t=function(a){return new URLSearchParams(window.location.search).get(a)},n=function(a){var t=new URLSearchParams(window.location.search);Object.entries(a).forEach(function(a){var n=a[0],o=a[1];null==o||""===o?t.delete(n):t.set(n,o)});var n=t.toString(),o="".concat(window.location.pathname).concat(n?"?".concat(n):"");window.history.replaceState({},"",o)};export{a as QUERY_PARAM_KEYS,t as getQueryParam,n as setQueryParams};
|
|
2
2
|
//# sourceMappingURL=useLearningTemplateQueryParams.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{create as
|
|
1
|
+
import{create as a}from"zustand";var l=a(function(a){return{llmStudioUrl:"https://devllmstudio.creativeworkspace.ai",audacyBackendUrl:null,appsecRbacUrl:null,appsecBaseUrl:null,rbacConfig:null,setLlmStudioUrl:function(l){return a({llmStudioUrl:l})},setAudacyBackendUrl:function(l){return a({audacyBackendUrl:l})},setRbacConfig:function(l){return a({rbacConfig:l,appsecRbacUrl:l.appsecRbacUrl,appsecBaseUrl:l.appsecBaseUrl})}}});export{l as default};
|
|
2
2
|
//# sourceMappingURL=useEnvStore.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t,__spreadArray as e}from"tslib";import{create as n}from"zustand";import{getQueryParam as r,setQueryParams as u,QUERY_PARAM_KEYS as i}from"../hooks/useLearningTemplateQueryParams.js";var
|
|
1
|
+
import{__assign as t,__spreadArray as e}from"tslib";import{create as n}from"zustand";import{getQueryParam as r,setQueryParams as u,QUERY_PARAM_KEYS as i}from"../hooks/useLearningTemplateQueryParams.js";var a={globalRuleSet:[],genreRuleSet:[],customRuleSet:[]},o=n(function(n){return{sidebarTab:"rule-sets",selectedRuleSetId:null,ruleSets:a,isStationModalOpen:!1,isILModalTriggered:"true"===r(i.OPEN_IL),isStationOnboardModalTriggered:"true"===r(i.ONBOARD_STATION),scopeTreeData:null,urlVariantId:r(i.VARIANT_ID),urlApprovalAction:(o=r(i.APPROVAL_ACTION),"approve"===o||"reject"===o?o:null),stations:[],selectedStationId:null,currentRules:[],createdVariantInfo:null,templateMap:{},setTemplateData:function(e,r){return n(function(n){var u;return{templateMap:t(t({},n.templateMap),(u={},u[e]=r,u))}})},setRuleSets:function(t){return n({ruleSets:t})},setScopeTreeData:function(t){return n({scopeTreeData:t})},setStationModalOpen:function(t){return n({isStationModalOpen:t})},setIsILModalTriggered:function(t){var e;u(((e={})[i.OPEN_IL]=t?"true":null,e)),n({isILModalTriggered:t})},setIsStationOnboardModalTriggered:function(t){var e;u(((e={})[i.ONBOARD_STATION]=t?"true":null,e)),n({isStationOnboardModalTriggered:t})},setInitialRules:function(t){return n({currentRules:t})},setCreatedVariantInfo:function(t){return n({createdVariantInfo:t})},resetCreatedVariantInfo:function(){return n({createdVariantInfo:null})},clearUrlApprovalParams:function(){var t;u(((t={})[i.VARIANT_ID]=null,t[i.APPROVAL_ACTION]=null,t)),n({urlVariantId:null,urlApprovalAction:null})},setSelectedRuleSetId:function(t){var e;u(((e={})[i.RULESET_ID]=t,e)),n({selectedRuleSetId:t})},toggleRuleTier:function(e){return n(function(n){return{currentRules:n.currentRules.map(function(n){return n.id===e?t(t({},n),{isOpen:!n.isOpen}):n})}})},deleteRule:function(e,r){return n(function(n){return{currentRules:n.currentRules.map(function(n){return n.id===e?t(t({},n),{rules:n.rules.filter(function(t){return t.id!==r}),ruleCount:n.ruleCount-1}):n})}})},setStations:function(t){return n({stations:t})},addStation:function(t){return n(function(n){return{stations:e(e([],n.stations,!0),[t],!1)}})},deleteStation:function(t){return n(function(e){return{stations:e.stations.filter(function(e){return e.stationId!==t}),selectedStationId:e.selectedStationId===t?null:e.selectedStationId}})},error:null,setError:function(t){return n({error:t})},tiers:[],setTiers:function(t){return n({tiers:t})},backwardCompatibility:!1,setBackwardCompatibility:function(t){return n({backwardCompatibility:t})},app_integration_id:null,setAppIntegrationId:function(t){return n({app_integration_id:t})},token:"",setToken:function(t){return n({token:t})}};var o});export{a as INITIAL_RULE_SETS,o as useLearningTemplateStore};
|
|
2
2
|
//# sourceMappingURL=useLearningTemplateStore.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var t={container:"EmptyRuleState-module_container__DD8ZC",card:"EmptyRuleState-module_card__2-kb8",iconContainer:"EmptyRuleState-module_iconContainer__2Mep-",iconLines:"EmptyRuleState-module_iconLines__-G9Us",iconLine:"EmptyRuleState-module_iconLine__v1Xs7",iconLineLong:"EmptyRuleState-module_iconLineLong__7I0wU",iconLineShort:"EmptyRuleState-module_iconLineShort__R3ArP",iconBadge:"EmptyRuleState-module_iconBadge__YY28J",title:"EmptyRuleState-module_title__qk36r",description:"EmptyRuleState-module_description__XButJ",createButton:"EmptyRuleState-module_createButton__GM3ug"};e(".EmptyRuleState-module_container__DD8ZC{align-items:center;display:flex;flex:1;flex-direction:column;justify-content:center;padding:2.5rem}.EmptyRuleState-module_card__2-kb8{align-items:center;background-color:#fff;border:1px solid #f3f4f6;border-radius:1rem;box-shadow:0 4px 30px #00000008;display:flex;flex-direction:column;max-width:600px;padding:4rem 2.5rem;text-align:center;width:100%}.EmptyRuleState-module_iconContainer__2Mep-{align-items:center;background-color:#f9fafb;border-radius:9999px;display:flex;height:5rem;justify-content:center;margin-bottom:1.5rem;position:relative;width:5rem}.EmptyRuleState-module_iconLines__-G9Us{display:flex;flex-direction:column;gap:.375rem;opacity:.2;transform:scale(1.1)}.EmptyRuleState-module_iconLine__v1Xs7{background-color:#60a5fa;border-radius:9999px;height:.375rem}.EmptyRuleState-module_iconLineLong__7I0wU{width:2.5rem}.EmptyRuleState-module_iconLineShort__R3ArP{width:1.75rem}.EmptyRuleState-module_iconBadge__YY28J{background-color:#fff;border:1px solid #f9fafb;border-radius:9999px;bottom:-.25rem;box-shadow:0 1px 2px 0 #0000000d;padding:.375rem;position:absolute;right:-.25rem}.EmptyRuleState-module_iconBadge__YY28J svg{color:#d1d5db}.EmptyRuleState-module_title__qk36r{color:#111827;font-size:1.125rem;font-weight:700;margin-bottom:.5rem}.EmptyRuleState-module_description__XButJ{color:#6b7280;font-size:.875rem;margin-bottom:2rem}.EmptyRuleState-module_createButton__GM3ug{align-items:center;background-color:#2563eb;border:none;border-radius:.375rem;box-shadow:0 1px 2px 0 #0000000d;color:#fff;cursor:pointer;display:flex;font-size:.875rem;font-weight:500;gap:.5rem;padding:.625rem 1.5rem;transition:background-color .2s,box-shadow .2s}.EmptyRuleState-module_createButton__GM3ug:hover{background-color:#1d4ed8;box-shadow:0 4px 6px -1px #0000001a}");export{t as default};
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var t={container:"EmptyRuleState-module_container__DD8ZC",card:"EmptyRuleState-module_card__2-kb8",iconContainer:"EmptyRuleState-module_iconContainer__2Mep-",iconLines:"EmptyRuleState-module_iconLines__-G9Us",iconLine:"EmptyRuleState-module_iconLine__v1Xs7",iconLineLong:"EmptyRuleState-module_iconLineLong__7I0wU",iconLineShort:"EmptyRuleState-module_iconLineShort__R3ArP",iconBadge:"EmptyRuleState-module_iconBadge__YY28J",title:"EmptyRuleState-module_title__qk36r",description:"EmptyRuleState-module_description__XButJ",createButton:"EmptyRuleState-module_createButton__GM3ug"};e(".EmptyRuleState-module_container__DD8ZC{align-items:center;display:flex;flex:1;flex-direction:column;justify-content:center;padding:2.5rem}.EmptyRuleState-module_card__2-kb8{align-items:center;background-color:#fff;border:1px solid #f3f4f6;border-radius:1rem;box-shadow:0 4px 30px #00000008;display:flex;flex-direction:column;max-width:600px;padding:4rem 2.5rem;text-align:center;width:100%}.EmptyRuleState-module_iconContainer__2Mep-{align-items:center;background-color:#f9fafb;border-radius:9999px;display:flex;height:5rem;justify-content:center;margin-bottom:1.5rem;position:relative;width:5rem}.EmptyRuleState-module_iconLines__-G9Us{display:flex;flex-direction:column;gap:.375rem;opacity:.2;transform:scale(1.1)}.EmptyRuleState-module_iconLine__v1Xs7{background-color:#60a5fa;border-radius:9999px;height:.375rem}.EmptyRuleState-module_iconLineLong__7I0wU{width:2.5rem}.EmptyRuleState-module_iconLineShort__R3ArP{width:1.75rem}.EmptyRuleState-module_iconBadge__YY28J{background-color:#fff;border:1px solid #f9fafb;border-radius:9999px;bottom:-.25rem;box-shadow:0 1px 2px 0 #0000000d;padding:.375rem;position:absolute;right:-.25rem}.EmptyRuleState-module_iconBadge__YY28J svg{color:#d1d5db}.EmptyRuleState-module_title__qk36r{color:#111827;font-size:1.125rem;font-weight:700;margin-bottom:.5rem}.EmptyRuleState-module_description__XButJ{color:#6b7280;font-size:.875rem;margin-bottom:2rem}.EmptyRuleState-module_createButton__GM3ug{align-items:center;background-color:#2563eb;border:none;border-radius:.375rem;box-shadow:0 1px 2px 0 #0000000d;color:#fff;cursor:pointer;display:flex;font-size:.875rem;font-weight:500;gap:.5rem;padding:.625rem 1.5rem;transition:background-color .2s,box-shadow .2s}.EmptyRuleState-module_createButton__GM3ug:hover{background-color:#1d4ed8;box-shadow:0 4px 6px -1px #0000001a}.EmptyRuleState-module_createButton__GM3ug:disabled{background-color:#9ca3af;box-shadow:none;cursor:not-allowed}");export{t as default};
|
|
2
2
|
//# sourceMappingURL=EmptyRuleState.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var r={sidebar:"Sidebar-module_sidebar__BhVQw",tabsContainer:"Sidebar-module_tabsContainer__n542w",tabsWrapper:"Sidebar-module_tabsWrapper__z6rAx",tab:"Sidebar-module_tab__79tnm",tabActive:"Sidebar-module_tabActive__amUJ5",searchContainer:"Sidebar-module_searchContainer__KMtRV",searchWrapper:"Sidebar-module_searchWrapper__4ejma",searchInputWrapper:"Sidebar-module_searchInputWrapper__VI9Qk",searchIcon:"Sidebar-module_searchIcon__iyv9p",searchInput:"Sidebar-module_searchInput__oVmKU",searchRightContainer:"Sidebar-module_searchRightContainer__JZf8q",searchCountBadge:"Sidebar-module_searchCountBadge__JdOCA",searchClearButton:"Sidebar-module_searchClearButton__TCsGU",filterButton:"Sidebar-module_filterButton__OA1Bn",divider:"Sidebar-module_divider__EIZV1",content:"Sidebar-module_content__iG2Ya",section:"Sidebar-module_section__ChTDq",sectionTitle:"Sidebar-module_sectionTitle__EC2Bt",sectionList:"Sidebar-module_sectionList__TErRr",createButtonContainer:"Sidebar-module_createButtonContainer__EECqj",createButton:"Sidebar-module_createButton__wE7-a",emptyContent:"Sidebar-module_emptyContent__TV90P"};e(".Sidebar-module_sidebar__BhVQw{background-color:#fff;border-right:1px solid #e3e6ea;display:flex;flex-direction:column;height:calc(100vh - 140px);overflow:hidden;padding-top:1.25rem;position:relative;width:340px}.Sidebar-module_tabsContainer__n542w{margin-bottom:1.25rem;padding:0 1.25rem}.Sidebar-module_tabsWrapper__z6rAx{background-color:#f3f4f6cc;border-radius:.5rem;display:grid;gap:.25rem;grid-template-columns:1fr 1fr;padding:.25rem}.Sidebar-module_tab__79tnm{align-items:center;background:#0000;border:none;border-radius:.375rem;color:#64748b;cursor:pointer;display:flex;font-size:.875rem;font-weight:600;gap:.5rem;justify-content:center;padding:.5rem .75rem;transition:all .2s}.Sidebar-module_tab__79tnm:hover{color:#2563eb}.Sidebar-module_tabActive__amUJ5{background-color:#fff;box-shadow:0 1px 2px 0 #0000000d;color:#2563eb;font-weight:700}.Sidebar-module_searchContainer__KMtRV{margin-bottom:1rem;padding:0 1.25rem}.Sidebar-module_searchWrapper__4ejma{display:flex;gap:.5rem}.Sidebar-module_searchInputWrapper__VI9Qk{align-items:center;display:flex;flex:1;position:relative;width:100%}.Sidebar-module_searchIcon__iyv9p{color:#9ca3af;left:.75rem;position:absolute;top:50%;transform:translateY(-50%)}.Sidebar-module_searchInput__oVmKU{background-color:#fff;border:1px solid #f0f2f5;border-radius:.5rem;box-shadow:0 1px 2px 0 #0000000d;font-size:.875rem;outline:none;padding:.5rem 1rem .5rem 2.25rem;transition:all .2s;width:100%}.Sidebar-module_searchInput__oVmKU:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb33}.Sidebar-module_searchInput__oVmKU::placeholder{color:#9ca3af}.Sidebar-module_searchRightContainer__JZf8q{align-items:center;display:flex;gap:.5rem;position:absolute;right:1rem;top:50%;transform:translateY(-50%)}.Sidebar-module_searchCountBadge__JdOCA{background-color:#fde047;border-radius:.25rem;color:#374151;font-size:.75rem;font-weight:500;padding:.125rem .375rem}.Sidebar-module_searchClearButton__TCsGU{align-items:center;background:#0000;border:none;color:#9ca3af;cursor:pointer;display:flex;margin:0;outline:none;padding:0;transition:color .2s ease}.Sidebar-module_searchClearButton__TCsGU:hover{color:#4b5563}.Sidebar-module_filterButton__OA1Bn{background-color:#f7f8fa;border:1px solid #f0f2f5;border-radius:.5rem;cursor:pointer;padding:.5rem;transition:background-color .2s,border-color .2s}.Sidebar-module_filterButton__OA1Bn:hover{background-color:#f0f2f5}.Sidebar-module_filterButton__OA1Bn svg{color:#19213d}.Sidebar-module_divider__EIZV1{background-color:#f0f2f5;height:1.5px;margin:0 1.25rem 1rem;width:100%}.Sidebar-module_content__iG2Ya{flex:1;overflow-y:auto;padding:0 1.25rem}.Sidebar-module_content__iG2Ya::-webkit-scrollbar{width:4px}.Sidebar-module_content__iG2Ya::-webkit-scrollbar-thumb{background-color:#e5e7eb;border-radius:9999px}.Sidebar-module_section__ChTDq{margin-bottom:1.5rem}.Sidebar-module_sectionTitle__EC2Bt{color:#19213d;font-size:.875rem;font-weight:600;margin-bottom:.75rem}.Sidebar-module_sectionList__TErRr{display:flex;flex-direction:column;gap:.75rem}.Sidebar-module_createButtonContainer__EECqj{background-color:#fff;border-top:1px solid #e5e7eb;bottom:0;box-shadow:0 -4px 20px #0000000d;left:0;padding:1rem;position:absolute;width:100%;z-index:50}.Sidebar-module_createButton__wE7-a{align-items:center;background-color:#f7f8fa;border:1px solid #f0f2f5;border-radius:.5rem;color:#19213d;cursor:pointer;display:flex;font-size:.75rem;font-weight:500;gap:.5rem;justify-content:center;padding:.75rem;transition:all .2s;width:100%}.Sidebar-module_createButton__wE7-a:hover{background-color:#f3f4f6;box-shadow:0 1px 2px 0 #0000000d}.Sidebar-module_createButton__wE7-a:active{transform:scale(.99)}.Sidebar-module_emptyContent__TV90P{align-items:center;color:#9ca3af;display:flex;flex-direction:column;font-size:.875rem;height:10rem;justify-content:center}");export{r as default};
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var r={sidebar:"Sidebar-module_sidebar__BhVQw",tabsContainer:"Sidebar-module_tabsContainer__n542w",tabsWrapper:"Sidebar-module_tabsWrapper__z6rAx",tab:"Sidebar-module_tab__79tnm",tabActive:"Sidebar-module_tabActive__amUJ5",searchContainer:"Sidebar-module_searchContainer__KMtRV",searchWrapper:"Sidebar-module_searchWrapper__4ejma",searchInputWrapper:"Sidebar-module_searchInputWrapper__VI9Qk",searchIcon:"Sidebar-module_searchIcon__iyv9p",searchInput:"Sidebar-module_searchInput__oVmKU",searchRightContainer:"Sidebar-module_searchRightContainer__JZf8q",searchCountBadge:"Sidebar-module_searchCountBadge__JdOCA",searchClearButton:"Sidebar-module_searchClearButton__TCsGU",filterButton:"Sidebar-module_filterButton__OA1Bn",divider:"Sidebar-module_divider__EIZV1",content:"Sidebar-module_content__iG2Ya",section:"Sidebar-module_section__ChTDq",sectionTitle:"Sidebar-module_sectionTitle__EC2Bt",sectionList:"Sidebar-module_sectionList__TErRr",createButtonContainer:"Sidebar-module_createButtonContainer__EECqj",createButton:"Sidebar-module_createButton__wE7-a",emptyContent:"Sidebar-module_emptyContent__TV90P"};e(".Sidebar-module_sidebar__BhVQw{background-color:#fff;border-right:1px solid #e3e6ea;display:flex;flex-direction:column;height:calc(100vh - 140px);overflow:hidden;padding-top:1.25rem;position:relative;width:fit-content;width:340px}.Sidebar-module_tabsContainer__n542w{margin-bottom:1.25rem;padding:0 1.25rem}.Sidebar-module_tabsWrapper__z6rAx{background-color:#f3f4f6cc;border-radius:.5rem;display:grid;gap:.25rem;grid-template-columns:1fr 1fr;padding:.25rem}.Sidebar-module_tab__79tnm{align-items:center;background:#0000;border:none;border-radius:.375rem;color:#64748b;cursor:pointer;display:flex;font-size:.875rem;font-weight:600;gap:.5rem;justify-content:center;padding:.5rem .75rem;transition:all .2s}.Sidebar-module_tab__79tnm:hover{color:#2563eb}.Sidebar-module_tabActive__amUJ5{background-color:#fff;box-shadow:0 1px 2px 0 #0000000d;color:#2563eb;font-weight:700}.Sidebar-module_searchContainer__KMtRV{margin-bottom:1rem;padding:0 1.25rem}.Sidebar-module_searchWrapper__4ejma{display:flex;gap:.5rem}.Sidebar-module_searchInputWrapper__VI9Qk{align-items:center;display:flex;flex:1;position:relative;width:100%}.Sidebar-module_searchIcon__iyv9p{color:#9ca3af;left:.75rem;position:absolute;top:50%;transform:translateY(-50%)}.Sidebar-module_searchInput__oVmKU{background-color:#fff;border:1px solid #f0f2f5;border-radius:.5rem;box-shadow:0 1px 2px 0 #0000000d;font-size:.875rem;outline:none;padding:.5rem 1rem .5rem 2.25rem;transition:all .2s;width:100%}.Sidebar-module_searchInput__oVmKU:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb33}.Sidebar-module_searchInput__oVmKU::placeholder{color:#9ca3af}.Sidebar-module_searchRightContainer__JZf8q{align-items:center;display:flex;gap:.5rem;position:absolute;right:1rem;top:50%;transform:translateY(-50%)}.Sidebar-module_searchCountBadge__JdOCA{background-color:#fde047;border-radius:.25rem;color:#374151;font-size:.75rem;font-weight:500;padding:.125rem .375rem}.Sidebar-module_searchClearButton__TCsGU{align-items:center;background:#0000;border:none;color:#9ca3af;cursor:pointer;display:flex;margin:0;outline:none;padding:0;transition:color .2s ease}.Sidebar-module_searchClearButton__TCsGU:hover{color:#4b5563}.Sidebar-module_filterButton__OA1Bn{background-color:#f7f8fa;border:1px solid #f0f2f5;border-radius:.5rem;cursor:pointer;padding:.5rem;transition:background-color .2s,border-color .2s}.Sidebar-module_filterButton__OA1Bn:hover{background-color:#f0f2f5}.Sidebar-module_filterButton__OA1Bn svg{color:#19213d}.Sidebar-module_divider__EIZV1{background-color:#f0f2f5;height:1.5px;margin:0 1.25rem 1rem;width:100%}.Sidebar-module_content__iG2Ya{flex:1;overflow-y:auto;padding:0 1.25rem}.Sidebar-module_content__iG2Ya::-webkit-scrollbar{width:4px}.Sidebar-module_content__iG2Ya::-webkit-scrollbar-thumb{background-color:#e5e7eb;border-radius:9999px}.Sidebar-module_section__ChTDq{margin-bottom:1.5rem}.Sidebar-module_sectionTitle__EC2Bt{color:#19213d;font-size:.875rem;font-weight:600;margin-bottom:.75rem}.Sidebar-module_sectionList__TErRr{display:flex;flex-direction:column;gap:.75rem}.Sidebar-module_createButtonContainer__EECqj{background-color:#fff;border-top:1px solid #e5e7eb;bottom:0;box-shadow:0 -4px 20px #0000000d;left:0;padding:1rem;position:absolute;width:100%;z-index:50}.Sidebar-module_createButton__wE7-a{align-items:center;background-color:#f7f8fa;border:1px solid #f0f2f5;border-radius:.5rem;color:#19213d;cursor:pointer;display:flex;font-size:.75rem;font-weight:500;gap:.5rem;justify-content:center;padding:.75rem;transition:all .2s;width:100%}.Sidebar-module_createButton__wE7-a:hover{background-color:#f3f4f6;box-shadow:0 1px 2px 0 #0000000d}.Sidebar-module_createButton__wE7-a:active{transform:scale(.99)}.Sidebar-module_emptyContent__TV90P{align-items:center;color:#9ca3af;display:flex;flex-direction:column;font-size:.875rem;height:10rem;justify-content:center}");export{r as default};
|
|
2
2
|
//# sourceMappingURL=Sidebar.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as s}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as l}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"
|
|
1
|
+
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as s}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as l}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"@viswa-test/test-citation";import"../../../features/LearningManagement/LearningManagement.js";import p from"../../../features/IL-OTJ/_components/AccordianSection.js";import c from"../../../features/IL-OTJ/ILOTJ.js";var u={order_rules:{enabled:!1,global_min_separation_seconds:0},advertiser_rules:{enabled:!1,global_min_separation_seconds:0},inventory_rules:{respect_inventory_code:!1},break_code_rules:{respect_break_code:!1},is_default_enabled:!1},d=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],m=["Tier 1"],f=function(){var f=a(!0),_=f[0],b=f[1],g=a(""),v=g[0],h=g[1],y=a(""),T=y[0],k=y[1],C=a({station:"",tiers:["Tier 1"]}),L=C[0],w=C[1],A=a([]),I=A[0],x=A[1],O=a([]),S=O[0],j=O[1],N=a(u),J=N[0],D=N[1],W=i(function(t,o){w(function(n){var r;return e(e({},n),((r={})[t]=o,r))})},[]),E=i(function(t,o){D(function(n){var r=e({},n);switch(t){case"order_rules":case"advertiser_rules":r[t]="boolean"==typeof o?e(e({},n[t]),{enabled:o}):{enabled:o.enabled,global_min_separation_seconds:o.global_min_separation_seconds};break;case"inventory_rules":r.inventory_rules={respect_inventory_code:"boolean"==typeof o?o:o.respect_inventory_code};break;case"break_code_rules":r.break_code_rules={respect_break_code:"boolean"==typeof o?o:o.respect_break_code};break;case"is_default_enabled":r.is_default_enabled="boolean"==typeof o?o:!!o}return r})},[]),M=function(e){e(function(e){return t(t([],e,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},B=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},R=function(t,o,n){t(function(t){return t.map(function(t){return String(t.id)===String(o)?e(e({},t),{text:n}):t})})},U=[e({key:"order_rules",label:"Order"},J.order_rules),e({key:"advertiser_rules",label:"Advertiser"},J.advertiser_rules)],H=[{key:"inventory_rules",label:"Inventory code",enabled:J.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:J.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:J.is_default_enabled}];return o(c,{open:_,closeFunction:function(){return b(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:o(s,{}),customSections:o(n,{}),isUseNormalChat:!0,chatTitle:"Create New Learning",formTitle:"Learning Details",initialChatMessage:"Hey! How can I assist you?",template:l.BaseTemplate,templateProps:{state:{title:v,description:T,scopeData:L,whenToApplyConditions:I,whenNotToApplyConditions:S,configData:J,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,o;return h(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onDescriptionChange:function(e){var t,o;return k(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onAddWhenToApply:function(){return M(x)},onRemoveWhenToApply:function(e){return B(x,e)},onEditWhenToApply:function(e,t){return R(x,e,t)},onAddWhenNotToApply:function(){return M(j)},onRemoveWhenNotToApply:function(e){return B(j,e)},onEditWhenNotToApply:function(e,t){return R(j,e,t)},onScopeChange:W,onConfigChange:E},uiState:{showScope:!1,showConfiguration:!0,titleLabel:"Main Rule Name",scopeLabel:"Define Scope",tierLabel:"Select Tier",descriptionLabel:"Learning Explanation",whenToApplyLabel:"Trigger Events (When to Apply)",whenNotToApplyLabel:"Exclusion Events (When NOT to Apply)",configLabel:"Advanced Settings",stationOptions:d,tierOptions:m,separationItems:U,toggles:H},customNodes:{afterDescription:o(p,e({title:{type:"other",label:"Extra Context Panel"}},{children:o("p",e({style:{padding:"12px",fontSize:"14px",color:"#64748b"}},{children:"Because you decoupled the template, I can inject anything I want here without touching BaseTemplate logic!"}))})),afterTitle:r("div",e({style:{marginBottom:"12px",padding:"8px",backgroundColor:"#f0f4ff",borderRadius:"4px"}},{children:[o("strong",{children:"Tip:"})," Use a clear and descriptive title for your rule to make it easily identifiable later."]}))}}})};export{f as default};
|
|
2
2
|
//# sourceMappingURL=DefaultTeachMeRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as
|
|
1
|
+
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as l}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as s}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"@viswa-test/test-citation";import"../../../features/LearningManagement/LearningManagement.js";import u from"../../../features/IL-OTJ/_components/AccordianSection.js";import p from"../../../features/IL-OTJ/ILOTJ.js";var c={order_rules:{enabled:!1,global_min_separation_seconds:0},advertiser_rules:{enabled:!1,global_min_separation_seconds:0},inventory_rules:{respect_inventory_code:!1},break_code_rules:{respect_break_code:!1},is_default_enabled:!1},d=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],m=["Tier 1"],_=function(){var _=a(!0),f=_[0],b=_[1],h=a(""),y=h[0],v=h[1],T=a(""),g=T[0],k=T[1],w=a({station:"",tiers:["Tier 1"]}),C=w[0],L=w[1],A=a([]),I=A[0],G=A[1],O=a([]),S=O[0],x=O[1],j=a(c),J=j[0],N=j[1],W=i(function(t,o){L(function(n){var r;return e(e({},n),((r={})[t]=o,r))})},[]),D=i(function(t,o){N(function(n){var r=e({},n);switch(t){case"order_rules":case"advertiser_rules":r[t]="boolean"==typeof o?e(e({},n[t]),{enabled:o}):{enabled:o.enabled,global_min_separation_seconds:o.global_min_separation_seconds};break;case"inventory_rules":r.inventory_rules={respect_inventory_code:"boolean"==typeof o?o:o.respect_inventory_code};break;case"break_code_rules":r.break_code_rules={respect_break_code:"boolean"==typeof o?o:o.respect_break_code};break;case"is_default_enabled":r.is_default_enabled="boolean"==typeof o?o:!!o}return r})},[]),M=function(e){e(function(e){return t(t([],e,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},B=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},H=function(t,o,n){t(function(t){return t.map(function(t){return String(t.id)===String(o)?e(e({},t),{text:n}):t})})},R=[e({key:"order_rules",label:"Order"},J.order_rules),e({key:"advertiser_rules",label:"Advertiser"},J.advertiser_rules)],q=[{key:"inventory_rules",label:"Inventory code",enabled:J.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:J.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:J.is_default_enabled}],z={"Add Guideline":"I would want to add a separation rule","Search Guideline":"I would want to set a max priority rule","Type your query":"I would want to add a break code matching rule"},E="<p><span>Hi! 👋 I'm your Instant Learning Concierge.</span>\n <span>How would you like to get started? You can select an option below or describe the Guideline you’d like to create.</span>\n ".concat(["Add Guideline","Search Guideline","Type your query"].map(function(e){return'<button class="clickable-button" data-value="'.concat(z[e],'">').concat(e,"</button>")}).join(""),"</p>");return o(p,{open:f,closeFunction:function(){return b(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:o(l,{}),customSections:o(n,{}),isUseNormalChat:!0,chatTitle:"Create New Guideline",formTitle:"Guideline Details",initialChatMessage:E,template:s.BaseTemplate,templateProps:{state:{title:y,description:g,scopeData:C,whenToApplyConditions:I,whenNotToApplyConditions:S,configData:J,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,o;return v(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onDescriptionChange:function(e){var t,o;return k(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onAddWhenToApply:function(){return M(G)},onRemoveWhenToApply:function(e){return B(G,e)},onEditWhenToApply:function(e,t){return H(G,e,t)},onAddWhenNotToApply:function(){return M(x)},onRemoveWhenNotToApply:function(e){return B(x,e)},onEditWhenNotToApply:function(e,t){return H(x,e,t)},onScopeChange:W,onConfigChange:D},uiState:{showScope:!1,showConfiguration:!1,titleLabel:"Guideline Name",scopeLabel:"Define Scope",tierLabel:"Select Tier",descriptionLabel:"Guideline Description",whenToApplyLabel:"When to apply this Guideline (When to Apply)",whenNotToApplyLabel:"When not to apply this Guideline (When NOT to Apply)",configLabel:"Advanced Settings",stationOptions:d,tierOptions:m,separationItems:R,toggles:q},customNodes:{afterTitle:o(u,e({title:{type:"other",label:"Guideline"}},{children:o("p",e({style:{padding:"12px",fontSize:"14px",color:"#64748b"}},{children:"HealthCare"}))})),top:r("div",e({style:{marginBottom:"12px",padding:"8px",backgroundColor:"#f0f4ff",borderRadius:"4px"}},{children:[o("strong",{children:"Guideline Template:"})," This is an ILOTJ TeachMe customized for Guideline Value Type"]}))}}})};export{_ as default};
|
|
2
2
|
//# sourceMappingURL=GuidelinesTeachMeRenderer.js.map
|
|
@@ -15,7 +15,7 @@ interface ILOTJProps {
|
|
|
15
15
|
closeFunction: () => void;
|
|
16
16
|
ThinkingBulbIconComponent: React.ReactNode;
|
|
17
17
|
customSections: React.ReactNode;
|
|
18
|
-
customMetaData?: Record<string, any
|
|
18
|
+
customMetaData?: Record<string, any> | React.MutableRefObject<Record<string, any>>;
|
|
19
19
|
chatTitle?: string;
|
|
20
20
|
formTitle?: string;
|
|
21
21
|
onSave?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILOTJ.d.ts","sourceRoot":"","sources":["../../../../../src/features/IL-OTJ/ILOTJ.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AAGjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAOvD,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AACzE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAED,UAAU,UAAU;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,yBAAyB,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3C,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ILOTJ.d.ts","sourceRoot":"","sources":["../../../../../src/features/IL-OTJ/ILOTJ.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILOTJTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/IL-OTJ/ILOTJTest.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,EAA2E,oBAAoB,EAAuB,MAAM,iBAAiB,CAAC;AAWrJ,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAEzE,UAAU,UAAU;CACnB;AAKD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAKD,eAAO,MAAM,cAAc,YAAmB,qBAAqB,iBASlE,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"ILOTJTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/IL-OTJ/ILOTJTest.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,EAA2E,oBAAoB,EAAuB,MAAM,iBAAiB,CAAC;AAWrJ,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAEzE,UAAU,UAAU;CACnB;AAKD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAKD,eAAO,MAAM,cAAc,YAAmB,qBAAqB,iBASlE,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA41EnC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface TeachMeWrapperProps {
|
|
2
3
|
app_integration_id?: string;
|
|
3
4
|
isOpen: boolean;
|
|
@@ -6,6 +7,12 @@ export interface TeachMeWrapperProps {
|
|
|
6
7
|
ruleSet?: any;
|
|
7
8
|
pluginPayload?: Record<string, any>;
|
|
8
9
|
token: string;
|
|
10
|
+
/**
|
|
11
|
+
* Registry of template name → renderer component.
|
|
12
|
+
* Injected by `TeachMePlugin` so the wrapper stays decoupled
|
|
13
|
+
* from the actual renderer imports.
|
|
14
|
+
*/
|
|
15
|
+
templateRegistry?: Record<string, React.FC<TeachMeWrapperProps>>;
|
|
9
16
|
}
|
|
10
17
|
declare const TeachMeWrapper: (props: TeachMeWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
18
|
export default TeachMeWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeachMeWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TeachMeWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.tsx"],"names":[],"mappings":";AA2MA,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;CAClE;AAED,QAAA,MAAM,cAAc,UAAW,mBAAmB,4CAkFjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -13,7 +13,7 @@ interface ChatComponentProps {
|
|
|
13
13
|
setSendMessageInChat?: React.Dispatch<React.SetStateAction<string>>;
|
|
14
14
|
isFormValidating: boolean;
|
|
15
15
|
chatTitle: string;
|
|
16
|
-
customMetaData?: Record<string, any
|
|
16
|
+
customMetaData?: Record<string, any> | React.MutableRefObject<Record<string, any>>;
|
|
17
17
|
headerMessageHandlers: any;
|
|
18
18
|
aiResponse?: any;
|
|
19
19
|
setAIResponse?: React.Dispatch<React.SetStateAction<unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatComponent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/ChatComponents/ChatComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAqClG,UAAU,kBAAkB;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnE,yBAAyB,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACrE,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACpE,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatComponent.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/IL-OTJ/_components/ChatComponents/ChatComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAqClG,UAAU,kBAAkB;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnE,yBAAyB,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACrE,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACpE,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IACnF,qBAAqB,EAAE,GAAG,CAAC;IAC3B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9D,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC9D,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oDAAoD;IACpD,sBAAsB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qBAAqB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACvE,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;KACf,CAAA;IACD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,2BAA2B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5D,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,kBAAkB,aAAc,MAAM,cAAc,MAAM,iBAsBtE,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqyD/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts
CHANGED
|
@@ -1,56 +1,21 @@
|
|
|
1
|
-
interface ComparisonFieldAnalysis {
|
|
2
|
-
relation: string;
|
|
3
|
-
score: number;
|
|
4
|
-
highlights?: {
|
|
5
|
-
ruleA_spans?: string[];
|
|
6
|
-
ruleB_spans?: string[];
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
interface ComparisonAnalysis {
|
|
10
|
-
rule_difference_comparison: {
|
|
11
|
-
summary: {
|
|
12
|
-
overall_score: number;
|
|
13
|
-
overall_summary: string;
|
|
14
|
-
};
|
|
15
|
-
fields: {
|
|
16
|
-
title: ComparisonFieldAnalysis;
|
|
17
|
-
scope: ComparisonFieldAnalysis;
|
|
18
|
-
description: ComparisonFieldAnalysis;
|
|
19
|
-
when_to_apply: {
|
|
20
|
-
score: number;
|
|
21
|
-
mappings: any[];
|
|
22
|
-
};
|
|
23
|
-
when_not_to_apply: {
|
|
24
|
-
score: number;
|
|
25
|
-
mappings: any[];
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
1
|
interface RuleData {
|
|
31
2
|
id: string;
|
|
32
3
|
title: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
wta: string;
|
|
36
|
-
wnta: string;
|
|
37
|
-
similarity?: number;
|
|
38
|
-
summaryText?: string;
|
|
39
|
-
variantType?: string;
|
|
40
|
-
tierName?: string;
|
|
41
|
-
analysis?: ComparisonAnalysis;
|
|
4
|
+
similarityScoreText?: string;
|
|
5
|
+
scope?: string;
|
|
42
6
|
isLoading?: boolean;
|
|
7
|
+
intentTreeData?: any;
|
|
8
|
+
behaviorTreeData?: any;
|
|
43
9
|
}
|
|
44
10
|
export interface RuleComparisonProps {
|
|
45
|
-
proposedRule
|
|
11
|
+
proposedRule?: any;
|
|
46
12
|
variants?: RuleData[];
|
|
47
13
|
onSelectVariant: (variant: RuleData) => void;
|
|
48
14
|
onAddAsVariant?: () => void;
|
|
49
15
|
onSkip?: () => void;
|
|
50
16
|
onBack?: () => void;
|
|
51
17
|
targetVariantId?: string | null;
|
|
52
|
-
highlightedField?: string | null;
|
|
53
18
|
}
|
|
54
|
-
declare const RuleComparison: ({
|
|
19
|
+
declare const RuleComparison: ({ variants, onSelectVariant, onSkip, onBack, targetVariantId, }: RuleComparisonProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
20
|
export default RuleComparison;
|
|
56
21
|
//# sourceMappingURL=RuleComparison.d.ts.map
|
package/dist/types/src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleComparison.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RuleComparison.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/templates/RuleComparison/RuleComparison.tsx"],"names":[],"mappings":"AAKA,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AA6FD,QAAA,MAAM,cAAc,oEAMjB,mBAAmB,4CA+KrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { User } from './store/types';
|
|
2
|
+
import { RbacConfig } from './store/useEnvStore';
|
|
2
3
|
export interface ModalConfig {
|
|
3
4
|
isOpen: boolean;
|
|
4
5
|
type: 'GLOBAL' | 'SCOPE' | 'SUBSCOPE' | 'RENAME' | 'DELETE';
|
|
@@ -13,6 +14,7 @@ interface LearningManagementProps {
|
|
|
13
14
|
llmStudioUrl: string;
|
|
14
15
|
audacyBackendUrl: string;
|
|
15
16
|
config: any;
|
|
17
|
+
rbacConfig: RbacConfig;
|
|
16
18
|
ilLabels: {
|
|
17
19
|
setupLabel: string;
|
|
18
20
|
ruleTitle: string;
|
|
@@ -25,6 +27,6 @@ interface LearningManagementProps {
|
|
|
25
27
|
* Main entry point for the Learning Template Management feature.
|
|
26
28
|
* Responsible for initializing data (mock data for now) and rendering the main layout.
|
|
27
29
|
*/
|
|
28
|
-
declare function LearningManagement({ userDetails, llmStudioUrl, audacyBackendUrl, ilLabels, config, app_integration_id, backwardCompatibility }: LearningManagementProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function LearningManagement({ userDetails, llmStudioUrl, audacyBackendUrl, ilLabels, config, rbacConfig, app_integration_id, backwardCompatibility }: LearningManagementProps): import("react/jsx-runtime").JSX.Element;
|
|
29
31
|
export default LearningManagement;
|
|
30
32
|
//# sourceMappingURL=LearningManagement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LearningManagement.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningManagement.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"LearningManagement.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningManagement.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAWrC,OAAoB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAgF9D,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,uBAAuB;IAC/B,WAAW,EAAE,IAAI,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,GAAG,CAAC;IACZ,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAA;IACD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;;GAGG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACN,UAAU,EACV,kBAAkB,EAClB,qBAA2B,EAC5B,EAAE,uBAAuB,2CAwjBzB;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LearningManagementTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningManagementTest.tsx"],"names":[],"mappings":"AAEA,iBAAS,sBAAsB,
|
|
1
|
+
{"version":3,"file":"LearningManagementTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningManagementTest.tsx"],"names":[],"mappings":"AAEA,iBAAS,sBAAsB,4CAwG9B;AAED,eAAe,sBAAsB,CAAA"}
|
|
@@ -8,6 +8,9 @@ interface LearningTemplateLayoutProps {
|
|
|
8
8
|
onAddChild?: (parentId: string, childType: 'SCOPE' | 'SUBSCOPE', parentName?: string) => void;
|
|
9
9
|
onRenameChild?: (scopeId: string, initialName: string) => void;
|
|
10
10
|
onDeleteChild?: (scopeId: string, scopeName: string, learningsCount: number) => void;
|
|
11
|
+
canDeleteScope?: (scopeId: string) => boolean;
|
|
12
|
+
canEditScope?: (scopeId: string) => boolean;
|
|
13
|
+
canCreateScope?: (scopeId: string) => boolean;
|
|
11
14
|
onSectionSelect?: (scopeId: string, sectionId: string) => void;
|
|
12
15
|
onViewStation?: (station: StationData) => void;
|
|
13
16
|
activeSectionId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LearningTemplateLayout.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningTemplateLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LearningTemplateLayout.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningTemplateLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG7F,UAAU,2BAA2B;IACnC,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,iGAAiG;IACjG,iBAAiB,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpE,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9F,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACrF,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC7C,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACrC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA+EjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentLogic.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/ContentLogic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ContentLogic.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/ContentLogic.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAQpD,OAAO,EAA2B,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGhF;;GAEG;AACH,UAAU,iBAAiB;IACvB,+CAA+C;IAC/C,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,6CAA6C;IAC7C,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,2DAA2D;IAC3D,UAAU,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,qDAAqD;IACrD,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc,KAAK,IAAI,CAAC;IACpH,uDAAuD;IACvD,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wCAAwC;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kDAAkD;IAClD,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,4CAA4C;IAC5C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAEtI,iBAAiB,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAErE,4BAA4B,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,iBAAiB,KAAK,IAAI,CAAC;IAClF,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5H;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+P7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface RenameScopeModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onSave: (newName: string) => Promise<void>;
|
|
6
|
+
initialName?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const RenameScopeModal: React.FC<RenameScopeModalProps>;
|
|
9
|
+
export default RenameScopeModal;
|
|
10
|
+
//# sourceMappingURL=RenameScopeModal.d.ts.map
|