@e-llm-studio/instant-learning 0.1.1-alpha.4 → 0.1.1-alpha.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
  2. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.js +1 -1
  3. package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
  4. package/dist/cjs/features/LearningManagement/LearningTemplateLayout.js +1 -1
  5. package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.js +1 -1
  6. package/dist/cjs/features/LearningManagement/apis/apiConfig.js +1 -1
  7. package/dist/cjs/features/LearningManagement/apis/scopeApis.js +1 -1
  8. package/dist/cjs/features/LearningManagement/components/CreateRuleSetLegacyModal.js +2 -0
  9. package/dist/cjs/features/LearningManagement/components/CreateRuleSetLegacyModal.js.map +1 -0
  10. package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
  11. package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
  12. package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeSidebar.js +1 -1
  13. package/dist/cjs/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
  14. package/dist/cjs/features/LearningManagement/components/ToolTip.js +1 -1
  15. package/dist/cjs/features/LearningManagement/store/useConfigStore.js +1 -1
  16. package/dist/cjs/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
  17. package/dist/cjs/features/LearningManagement/styles/ScopeTree.module.css.js +1 -1
  18. package/dist/cjs/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +2 -0
  19. package/dist/cjs/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +2 -0
  20. package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
  21. package/dist/features/IL-OTJ/_components/MessageRendering/RuleValidationCard.js +1 -1
  22. package/dist/features/LearningManagement/LearningManagement.js +1 -1
  23. package/dist/features/LearningManagement/LearningTemplateLayout.js +1 -1
  24. package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
  25. package/dist/features/LearningManagement/apis/apiConfig.js +1 -1
  26. package/dist/features/LearningManagement/apis/scopeApis.js +1 -1
  27. package/dist/features/LearningManagement/components/CreateRuleSetLegacyModal.js +2 -0
  28. package/dist/features/LearningManagement/components/CreateRuleSetLegacyModal.js.map +1 -0
  29. package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
  30. package/dist/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
  31. package/dist/features/LearningManagement/components/ScopeTree/TreeSidebar.js +1 -1
  32. package/dist/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
  33. package/dist/features/LearningManagement/components/ToolTip.js +1 -1
  34. package/dist/features/LearningManagement/store/useConfigStore.js +1 -1
  35. package/dist/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
  36. package/dist/features/LearningManagement/styles/ScopeTree.module.css.js +1 -1
  37. package/dist/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +2 -0
  38. package/dist/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +2 -0
  39. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts +9 -3
  40. package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts.map +1 -1
  41. package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +3 -2
  42. package/dist/types/src/features/LearningManagement/LearningManagement.d.ts.map +1 -1
  43. package/dist/types/src/features/LearningManagement/LearningManagementTest.d.ts.map +1 -1
  44. package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts +1 -0
  45. package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts.map +1 -1
  46. package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts +1 -0
  47. package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts.map +1 -1
  48. package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts +8 -0
  49. package/dist/types/src/features/LearningManagement/apis/apiConfig.d.ts.map +1 -1
  50. package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts +32 -6
  51. package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts.map +1 -1
  52. package/dist/types/src/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts +10 -0
  53. package/dist/types/src/features/LearningManagement/components/CreateRuleSetLegacyModal.d.ts.map +1 -0
  54. package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts +3 -0
  55. package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
  56. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts.map +1 -1
  57. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeSidebar.d.ts.map +1 -1
  58. package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.d.ts +2 -0
  59. package/dist/types/src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.d.ts.map +1 -1
  60. package/dist/types/src/features/LearningManagement/store/useConfigStore.d.ts.map +1 -1
  61. package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts +4 -0
  62. package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts.map +1 -1
  63. package/dist/types/src/features/LearningManagement/types.d.ts +5 -3
  64. package/dist/types/src/features/LearningManagement/types.d.ts.map +1 -1
  65. package/dist/types/src/plugins/{valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts → ValueTypes/Category/CategoryTeachMeRenderer.d.ts} +4 -4
  66. package/dist/types/src/plugins/ValueTypes/Category/CategoryTeachMeRenderer.d.ts.map +1 -0
  67. package/dist/types/src/plugins/{valueTypes → ValueTypes}/Default/DefaultTeachMeRenderer.d.ts.map +1 -1
  68. package/dist/types/src/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.d.ts +28 -0
  69. package/dist/types/src/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.d.ts.map +1 -0
  70. package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts +4 -0
  71. package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +1 -0
  72. package/package.json +8 -6
  73. package/dist/cjs/plugins/valueTypes/Default/DefaultTeachMeRenderer.js +0 -2
  74. package/dist/cjs/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +0 -2
  75. package/dist/plugins/valueTypes/Default/DefaultTeachMeRenderer.js +0 -2
  76. package/dist/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +0 -2
  77. package/dist/types/src/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +0 -1
  78. /package/dist/cjs/plugins/{valueTypes → ValueTypes}/Default/DefaultTeachMeRenderer.js.map +0 -0
  79. /package/dist/cjs/plugins/{valueTypes → ValueTypes}/RadioTrafficLearning/RadioTrafficLearningRenderer.js.map +0 -0
  80. /package/dist/plugins/{valueTypes → ValueTypes}/Default/DefaultTeachMeRenderer.js.map +0 -0
  81. /package/dist/plugins/{valueTypes → ValueTypes}/RadioTrafficLearning/RadioTrafficLearningRenderer.js.map +0 -0
  82. /package/dist/types/src/plugins/{valueTypes → ValueTypes}/Default/DefaultTeachMeRenderer.d.ts +0 -0
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as n}from"tslib";import{jsxs as i,jsx as o}from"react/jsx-runtime";import{Plus as d,Pencil as l,Trash2 as t}from"lucide-react";import r from"../../styles/ScopeTree.module.css.js";import{TreeNodeHeader as c}from"./TreeNodeHeader.js";import{TreeSectionItem as a}from"./TreeSectionItem.js";import{TreeAddAction as s}from"./TreeAddAction.js";var u=function(h){var m,p,v=h.node,C=h.depth,f=void 0===C?0:C,g=h.nodePath,b=void 0===g?[]:g,T=h.expandedNodeIds,y=h.activeSelection,x=h.onToggleExpand,A=h.onSectionSelect,N=h.onNodeOptionsClick,S=h.onAddChild,k=h.onRenameChild,P=h.onDeleteChild,j=h.searchQuery,E=h.sectionsConfig,I=void 0===E?[]:E,L=h.nodeTypesConfig,D=void 0===L?[]:L,O=e(e([],b,!0),[v.id],!1),Q=T.has(v.id),R=!!y&&y.nodePath[y.nodePath.length-1]===v.id,w=!!y&&(y.nodePath.includes(v.id)&&!R),K=function(e,n){if(!n)return!0;var i=n.toLowerCase();return!!e.name.toLowerCase().includes(i)||!!e.children&&e.children.some(function(e){return K(e,n)})};if(!K(v,j||""))return null;var V=f>=D.length-1?D[D.length-1]:D[f],W=!!(null==V?void 0:V.addChildType);return i("div",n({className:r.nodeWrapper,style:{"--tree-depth":f}},{children:[o(c,{name:v.name,isExpanded:Q,isSelected:R,isAncestor:w,childrenCount:null===(m=v.children)||void 0===m?void 0:m.length,onToggleExpand:function(e){e.stopPropagation(),x(v.id)},onClick:function(){return x(v.id)},searchQuery:j,menuOptions:e(e([],W?[{label:V.addChildLabel||"Add Child",icon:d,onClick:function(){return null==S?void 0:S(v.id,V.addChildType,v.name)}}]:[],!0),[{label:"Rename",icon:l,onClick:function(){return null==k?void 0:k(v.id,v.name)}},{label:"Delete ".concat((null==V?void 0:V.label)||"Node"),icon:t,onClick:function(){var e;return null==P?void 0:P(v.id,v.name,(null===(e=v.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:v.children&&v.children.length>0,tooltip:"This scope cannot be deleted because other scopes inherit learnings from it.",className:"text-red-500 hover:text-red-600 hover:bg-red-50"}],!1)}),Q&&i("div",n({className:r.childrenWrapper},{children:[I.filter(function(e){return!e.isVisible||e.isVisible(v,f)}).map(function(e){var n;return o(a,{icon:e.icon,label:e.label,badgeCount:e.badgeKey?null===(n=v.metrics)||void 0===n?void 0:n[e.badgeKey]:void 0,isActive:R&&(null==y?void 0:y.sectionId)===e.id,onClick:function(){return A(O,e.id)}},"".concat(v.id,"-").concat(e.id))}),null===(p=v.children)||void 0===p?void 0:p.map(function(e){return o(u,{node:e,depth:f+1,nodePath:O,expandedNodeIds:T,activeSelection:y,onToggleExpand:x,onSectionSelect:A,onNodeOptionsClick:N,onAddChild:S,onRenameChild:k,onDeleteChild:P,searchQuery:j,sectionsConfig:I,nodeTypesConfig:D},e.id)}),W&&o(s,{label:V.addChildLabel||"Add Child",onAdd:function(){return null==S?void 0:S(v.id,V.addChildType,v.name)}})]}))]}))};export{u as TreeNode};
1
+ import{__spreadArray as e,__assign as n}from"tslib";import{jsxs as i,jsx as o}from"react/jsx-runtime";import{Plus as d,Pencil as l,Trash2 as t}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(h){var m,p,v=h.node,C=h.depth,f=void 0===C?0:C,g=h.nodePath,b=void 0===g?[]:g,T=h.expandedNodeIds,y=h.activeSelection,x=h.onToggleExpand,A=h.onSectionSelect,N=h.onNodeOptionsClick,S=h.onAddChild,k=h.onRenameChild,P=h.onDeleteChild,j=h.searchQuery,E=h.sectionsConfig,I=void 0===E?[]:E,L=h.nodeTypesConfig,D=void 0===L?[]:L,O=e(e([],b,!0),[v.id],!1),Q=T.has(v.id),R=!!y&&y.nodePath[y.nodePath.length-1]===v.id,w=!!y&&(y.nodePath.includes(v.id)&&!R),K=function(e,n){if(!n)return!0;var i=n.toLowerCase();return!!e.name.toLowerCase().includes(i)||!!e.children&&e.children.some(function(e){return K(e,n)})};if(!K(v,j||""))return null;var V=f>=D.length-1?D[D.length-1]:D[f],W=!!(null==V?void 0:V.addChildType);return i("div",n({className:r.nodeWrapper,style:{"--tree-depth":f}},{children:[o(a,{name:v.name,isExpanded:Q,isSelected:R,isAncestor:w,childrenCount:null===(m=v.children)||void 0===m?void 0:m.length,onToggleExpand:function(e){e.stopPropagation(),x(v.id)},onClick:function(){A(O,"learnings")},searchQuery:j,menuOptions:e(e([],W?[{label:V.addChildLabel||"Add Child",icon:d,onClick:function(){return null==S?void 0:S(v.id,V.addChildType,v.name)}}]:[],!0),[{label:"Rename",icon:l,onClick:function(){return null==k?void 0:k(v.id,v.name)}},{label:"Delete ".concat((null==V?void 0:V.label)||"Node"),icon:t,onClick:function(){var e;return null==P?void 0:P(v.id,v.name,(null===(e=v.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:v.children&&v.children.length>0,tooltip:"This scope cannot be deleted because other scopes inherit learnings from it.",className:"text-red-500 hover:text-red-600 hover:bg-red-50"}],!1)}),Q&&i("div",n({className:r.childrenWrapper},{children:[I.filter(function(e){return!e.isVisible||e.isVisible(v,f)}).map(function(e){var n;return o(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:R&&(null==y?void 0:y.sectionId)===e.id,onClick:function(){return A(O,e.id)}},"".concat(v.id,"-").concat(e.id))}),null===(p=v.children)||void 0===p?void 0:p.map(function(e){return o(u,{node:e,depth:f+1,nodePath:O,expandedNodeIds:T,activeSelection:y,onToggleExpand:x,onSectionSelect:A,onNodeOptionsClick:N,onAddChild:S,onRenameChild:k,onDeleteChild:P,searchQuery:j,sectionsConfig:I,nodeTypesConfig:D},e.id)}),W&&o(s,{label:V.addChildLabel||"Add Child",onAdd:function(){return null==S?void 0:S(v.id,V.addChildType,v.name)}})]}))]}))};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 d}from"../../utils/treeUtils.js";import{TreeNode as c}from"./TreeNode.js";var a=function(a){var u=a.data,l=a.defaultExpandedIds,f=void 0===l?[]:l,s=a.onSectionSelect,h=a.onNodeOptionsClick,m=a.onAddChild,C=a.onRenameChild,v=a.onDeleteChild,p=a.searchQuery,S=void 0===p?"":p,w=a.onSearchCountChange,g=a.sectionsConfig,I=a.nodeTypesConfig,x=a.selectedRuleSetId,y=a.activeSectionId,E=t(new Set(u?e([u.id],f,!0):f)),N=E[0],T=E[1],j=t(null),L=j[0],R=j[1];i(function(){u&&T(function(e){if(!e.has(u.id)){var n=new Set(e);return n.add(u.id),n}return e})},[null==u?void 0:u.id]),i(function(){if(u&&x&&y){var e=d(u,x);e&&(R({nodePath:e,sectionId:y}),T(function(n){var o=new Set(n);return e.forEach(function(e){return o.add(e)}),o}))}},[u,x,y]),i(function(){if(S&&u){var e=new Set,n=function(o){var t=S.toLowerCase(),i=o.name.toLowerCase().includes(t),r=!1;o.children&&o.children.forEach(function(e){n(e)&&(r=!0)});var d=i||r;return d&&r&&e.add(o.id),d};n(u),T(e)}},[S,u]);var k=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+=k(e,n)}),o};i(function(){w&&u&&w(k(u,S))},[S,u,w]);return u?o("div",n({className:r.treeContainer},{children:o(c,{node:u,expandedNodeIds:N,activeSelection:L,onToggleExpand:function(e){T(function(n){var o=new Set(n);return o.has(e)?o.delete(e):o.add(e),o})},onSectionSelect:function(e,n){R({nodePath:e,sectionId:n}),s&&s(e[e.length-1],n)},onNodeOptionsClick:function(e){h&&h(e)},onAddChild:function(e,n,o){m&&m(e,n,o)},onRenameChild:function(e,n){C&&C(e,n)},onDeleteChild:function(e,n,o){v&&v(e,n,o)},searchQuery:S,sectionsConfig:g,nodeTypesConfig:I})})):null};export{a as TreeSidebar};
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 d}from"../../utils/treeUtils.js";import{TreeNode as c}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,m=a.onAddChild,C=a.onRenameChild,v=a.onDeleteChild,S=a.searchQuery,p=void 0===S?"":S,g=a.onSearchCountChange,w=a.sectionsConfig,I=a.nodeTypesConfig,x=a.selectedRuleSetId,y=a.activeSectionId,E=t(new Set(l?e([l.id],f,!0):f)),N=E[0],T=E[1],j=t(null),L=j[0],R=j[1];i(function(){l&&T(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&&x&&y){var e=d(l,x);e&&(R({nodePath:e,sectionId:y}),T(function(n){var o=new Set(n);return e.forEach(function(e){return o.add(e)}),o}))}},[l,x,y]),i(function(){if(p&&l){var e=new Set,n=function(o){var t=p.toLowerCase(),i=o.name.toLowerCase().includes(t),r=!1;o.children&&o.children.forEach(function(e){n(e)&&(r=!0)});var d=i||r;return d&&r&&e.add(o.id),d};n(l),T(e)}},[p,l]);var k=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+=k(e,n)}),o};i(function(){g&&l&&g(k(l,p))},[p,l,g]);return l?o("div",n({className:r.treeContainer},{children:o(c,{node:l,expandedNodeIds:N,activeSelection:L,onToggleExpand:function(e){T(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),R({nodePath:e,sectionId:n}),s&&s(e[e.length-1],n)},onNodeOptionsClick:function(e){h&&h(e)},onAddChild:function(e,n,o){m&&m(e,n,o)},onRenameChild:function(e,n){C&&C(e,n)},onDeleteChild:function(e,n,o){v&&v(e,n,o)},searchQuery:p,sectionsConfig:w,nodeTypesConfig:I})})):null};export{a as TreeSidebar};
2
2
  //# sourceMappingURL=TreeSidebar.js.map
@@ -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 u,useEffect as c}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 v,BrushCleaning as b,Search as S,ArrowRight as x}from"lucide-react";import{Toast as y}from"primereact/toast";import{v4 as C}from"uuid";import{retrieveGenreScopes as w,searchScopes as T,inheritScope as O,deleteRuleSet as _,updateStation as F,createRuleSet as z}from"../../apis/scopeApis.js";import k from"./StationAutocomplete.js";import D from"../CardSkeleton.js";import N from"./OnboardingLoader.js";import E from"./TemplateCard.js";import A from"../../styles/StationOnboardModal.module.css.js";import I from"./InputField.js";import M from"../../store/useAuthStore.js";import{useConfigStore as P}from"../../store/useConfigStore.js";var j=[{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"}],B=[{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"},{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"}],W=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],L=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],R=function(R){var q,G=R.isOpen,U=R.onClose,Y=R.onBoardStation,H=a(null),Z=H[0],K=H[1],X=a([]),J=X[0],Q=X[1],V=a(0),$=V[0],ee=V[1],oe=a(!0),ne=oe[0],re=oe[1],te=a(!1),ie=te[0],le=te[1],ae=a([]),se=ae[0],ue=ae[1],ce=a(""),de=ce[0],pe=ce[1],me=a(""),fe=me[0],he=me[1],ge=a(!1),ve=ge[0],be=ge[1],Se=a(!1),xe=Se[0],ye=Se[1],Ce=a(null),we=Ce[0],Te=Ce[1],Oe=a(!1),_e=Oe[0],Fe=Oe[1],ze=a(0),ke=ze[0],De=ze[1],Ne=a(""),Ee=Ne[0],Ae=Ne[1],Ie=M().user,Me=s(null),Pe=s(null),je=s(null),Be=s(null),We=P().configuration,Le=a({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),Re=Le[0],qe=Le[1],Ge=function(e,o){return e.find(function(e){return e.value===o})||null},Ue=u(function(){return J.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[J]),Ye=u(function(){var e,o,n;if(!Re.genre)return null;var r=J.find(function(e){return e.scope_name===Re.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},[Re.genre,J]);c(function(){return function(){je.current&&clearTimeout(je.current)}},[]);var He=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(ie)return[2];le(!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,Q(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?re(!1):re(!0),ee(e+20)):re(!1),[3,5];case 3:return i=n.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",i),re(!1),[3,5];case 4:return le(!1),[7];case 5:return[2]}})})};c(function(){G&&(Q([]),ee(0),re(!0),He(0))},[G]);c(function(){qe(Z?function(o){var n;return e(e({},o),{region:null!==(n=Z.market)&&void 0!==n?n:""})}:{region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""})},[Z]),c(function(){var e=setTimeout(function(){he(de)},500);return function(){return clearTimeout(e)}},[de]),c(function(){o(void 0,void 0,void 0,function(){var e,o,r;return n(this,function(n){switch(n.label){case 0:if(!fe.trim())return ue([]),[2];be(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,T({search_string:fe})];case 2:return"success"===(null==(e=n.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(o=e.data.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}}),ue(o)):ue([]),[3,5];case 3:return r=n.sent(),console.error("[StationOnboard] Error searching scopes:",r),ue([]),[3,5];case 4:return be(!1),[7];case 5:return[2]}})})},[fe]),c(function(){!fe.trim()&&Ye&&Te(Ye.id)},[fe,Ye]);var Ze=function(){setTimeout(function(){Be.current&&Be.current.scrollTo({top:Be.current.scrollHeight,behavior:"smooth"})},100)},Ke=function(){Ae(""),K(null),qe({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),ue([]),pe(""),Te(null),U()},Xe=function(o,n){var r;if("primeTime"!==o){var t=null!==(r=null==n?void 0:n.value)&&void 0!==r?r:"";qe(function(n){var r;return e(e({},n),((r={})[o]=String(t),r))}),"genre"===o&&(ye(!0),je.current&&clearTimeout(je.current),je.current=setTimeout(function(){var e=J.find(function(e){return e.scope_name===t});Te(e?e.id:null),ye(!1)},800))}else{var i=(null==n?void 0:n.value)?String(n.value):"";qe(function(o){return e(e({},o),{primeTime:i?[i]:[]})})}},Je=Boolean(Z&&Re.region&&Re.timezone&&Re.primeTime.length>0&&Re.genre);return t(d,e({open:G,onClose:Ke,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:Me}),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:Ke,disabled:_e,sx:{color:"#19213D"}},{children:i(v,{size:24})}))]})),t(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[i(N,{isLoading:_e,currentStep:ke,onComplete:function(){Fe(!1);var e=Pe.current;Ke(),Y(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:Be,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:A.formGroup},{children:[t("label",e({className:A.label},{children:[i("span",e({className:A.asterisk},{children:"*"})),"Station Name/Call Letters"]})),i(k,{value:Ee,onChange:Ae,onStationSelect:function(e){return K(e)}})]})),i(I,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:Re.region||void 0,isSearchable:!1}),i(I,{required:!0,label:"TimeZone",placeholder:"Select TimeZone",options:j,value:Ge(j,Re.timezone),onOptionChange:function(e){return Xe("timezone",e)},isSearchable:!1}),i(I,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:B,value:Ge(B,(null===(q=Re.primeTime)||void 0===q?void 0:q[0])||""),onOptionChange:function(e){return Xe("primeTime",e)},isSearchable:!1}),i(p,e({onClick:Ze,sx:{width:"100%"}},{children:i(I,{required:!0,label:"Genre",placeholder:"Select Genre",options:Ue,value:Ge(Ue,Re.genre),onOptionChange:function(e){return Xe("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!ie&&ne&&He($)},isLoadingOptions:ie,hasMoreOptions:ne})})),i(p,e({onClick:Ze,sx:{width:"100%"}},{children:i(I,{label:"Station Type",placeholder:"None",options:W,value:Ge(W,Re.type),onOptionChange:function(o){Xe("type",o),"Low Sellout"!==(null==o?void 0:o.value)&&qe(function(o){return e(e({},o),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===Re.type&&i(p,e({onClick:Ze,sx:{width:"100%"}},{children:i(I,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:L,value:Ge(L,Re.lowSelloutConfig),onOptionChange:function(e){return Xe("lowSelloutConfig",e)},isSearchable:!1})}))]}))]})),i(p,e({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column",height:"100%",overflowY:"auto"}},{children:Re.genre?t(l,{children:[i(m,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Matching scope for your station"})),i(p,e({sx:{display:"flex",flexDirection:"column",gap:2,mb:4}},{children:xe?i(D,{}):Ye?i(E,e({},Ye,{isSelected:we===Ye.id,onSelect:Te}),Ye.id):null})),i(m,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Other available stations"})),t("div",e({className:A.searchWrapper},{children:[i("input",{type:"text",value:de,onChange:function(e){return pe(e.target.value)},placeholder:"Search for station...",className:A.searchInput}),i(S,{className:A.searchIcon,size:16})]})),t(p,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[ve&&i(D,{}),!ve&&0===se.length&&fe.trim()&&t(m,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',fe,'".']})),!ve&&se.map(function(o){return i(E,e({},o,{isSelected:we===o.id,onSelect:Te}),o.id)})]}))]}):t(l,{children:[i(m,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Fill in the station details to load AI recommended scopes"})),i(m,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:3}},{children:"AI will recommend the most relevant scope for this station."})),i(p,e({sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.5,py:10}},{children:i(b,{})}))]})}))]}))]})),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:Ke,disabled:_e,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,u,c,d,p,m,f,h,g,v,b,S,x;return n(this,function(n){switch(n.label){case 0:if(!Z||!we)return console.error("[StationOnboard] Missing required data for onboarding"),[2];o=Ye?r([Ye],se,!0):se,t=o.find(function(e){return e.id===we}),i=null!==(h=null==t?void 0:t.isCopy)&&void 0!==h&&h,Fe(!0),De(0),l=null,n.label=1;case 1:return n.trys.push([1,3,,4]),a={topic:"customRuleSet",customScopeGroupName:(null==We?void 0:We.CUSTOM_SCOPE_GROUP_NAME)||"",scopeDescription:"demo",parentScopeId:null,customScopeName:Z.station_name||"New Station",customScopeId:C(),createByName:(null==Ie?void 0:Ie.firstname)||"System",createdBy:(null==Ie?void 0:Ie.email)||"system@audacy.com"},console.log("[StationOnboard] Step 1: Creating rule set with payload:",a),[4,z(a)];case 2:if(s=n.sent(),!(l=null===(g=null==s?void 0:s.data)||void 0===g?void 0:g.scopeId))throw new Error("Failed to create scope - no scopeId returned");return console.log("[StationOnboard] Step 1 Complete: Created scope with ID:",l),De(1),[3,4];case 3:return u=n.sent(),console.error("[StationOnboard] Error creating rule set:",u),null===(v=Me.current)||void 0===v||v.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),Fe(!1),De(0),[2];case 4:return n.trys.push([4,6,,11]),c={market:Z.market,region:Z.region,timezone:Re.timezone,primetime_windows:Re.primeTime,genre:Re.genre,station_type:""===Re.type?null:Re.type,low_sellout_configurations:"Low Sellout"===Re.type?Re.lowSelloutConfig:null,ruleset_id:l,station_guid:Z.station_guid,station_name:Z.station_name||"New Station"},console.log("[StationOnboard] Step 2: Updating station with payload:",c),[4,F(c)];case 5:return n.sent(),console.log("[StationOnboard] Step 2 Complete: Station updated"),De(2),[3,11];case 6:d=n.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",d),409===d.status?(null===(b=Me.current)||void 0===b||b.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),K(null),Te(null),Ae(""),qe(function(o){return e(e({},o),{region:""})})):null===(S=Me.current)||void 0===S||S.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,_(l)];case 8:return n.sent(),console.log("[StationOnboard] Rollback complete: Deleted rule set",l),[3,10];case 9:return p=n.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",p),[3,10];case 10:return Fe(!1),De(0),[2];case 11:return n.trys.push([11,13,,14]),m={source_scope_id:we,target_scope_id:l,is_copy_parent_variant_id:i},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",m),[4,O(m)];case 12:return n.sent(),console.log("[StationOnboard] Step 3 Complete: Scope inherited"),De(3),[3,14];case 13:return f=n.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",f),null===(x=Me.current)||void 0===x||x.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),Fe(!1),De(0),[2];case 14:return Pe.current=l,console.log("[StationOnboard] Onboarding completed successfully!"),[2]}})})},disabled:!Je||_e,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:Je?"#2563EB":"#BFDBFE",color:"#fff",cursor:Je&&!_e?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:t(l,_e?{children:[i(g,{size:16,color:"inherit"}),i("span",{children:"Onboarding..."})]}:{children:[i("span",{children:"Onboard Station"}),i(x,{size:16})]})}))]}))]}))};export{R as default};
1
+ import{__assign as e,__awaiter as o,__generator as n,__spreadArray as t}from"tslib";import{jsxs as r,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 v,Brush as b,Search as S,ArrowRight as x}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 _,deleteRuleSet as O,updateStation as F,createRuleSet as k}from"../../apis/scopeApis.js";import z from"./StationAutocomplete.js";import N from"../CardSkeleton.js";import D from"./OnboardingLoader.js";import E from"./TemplateCard.js";import I from"../../styles/StationOnboardModal.module.css.js";import A from"./InputField.js";import M from"../../store/useAuthStore.js";import{useConfigStore as j}from"../../store/useConfigStore.js";import{useLearningTemplateStore as P}from"../../store/useLearningTemplateStore.js";import{IL_CONFIG_CONSTANTS as B}from"../../config.js";var R=[{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"}],L=[{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"},{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"}],W=[{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"}],q=function(q){var G,Y=q.isOpen,H=q.onClose,Z=q.onBoardStation,K=q.app_integration_id,X=q.token,J=a(null),Q=J[0],V=J[1],$=a([]),ee=$[0],oe=$[1],ne=a(0),te=ne[0],re=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],ve=a(""),be=ve[0],Se=ve[1],xe=a(!1),ye=xe[0],Ce=xe[1],we=a(!1),Te=we[0],_e=we[1],Oe=a(null),Fe=Oe[0],ke=Oe[1],ze=a(!1),Ne=ze[0],De=ze[1],Ee=a(0),Ie=Ee[0],Ae=Ee[1],Me=a(""),je=Me[0],Pe=Me[1],Be=M().user,Re=s(null),Le=s(null),We=s(null),Ue=s(null);j().configuration;var qe=a({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),Ge=qe[0],Ye=qe[1],He=function(e,o){return e.find(function(e){return e.value===o})||null},Ze=c(function(){return ee.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[ee]),Ke=c(function(){var e,o,n;if(!Ge.genre)return null;var t=ee.find(function(e){return e.scope_name===Ge.genre});return t?{id:t.id,title:t.scope_name||"Unnamed Template",description:(null===(e=t.description)||void 0===e?void 0:e.trim())||"No description available.",inheritedText:(null===(o=t.inheritance)||void 0===o?void 0:o[0])||void 0,rulesCount:t.rules_count||0,tiersCount:t.tier_count||0,isCopy:null!==(n=t.is_copy)&&void 0!==n&&n}:null},[Ge.genre,ee]);u(function(){return function(){We.current&&clearTimeout(We.current)}},[]);var Xe=function(e){return o(void 0,void 0,void 0,function(){var o,r,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)?(r=o.data,oe(function(o){if(0===e)return r;var n=new Set(o.map(function(e){return e.id})),i=r.filter(function(e){return!n.has(e.id)});return t(t([],o,!0),i,!0)}),r.length<20?ae(!1):ae(!0),re(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(){Y&&(oe([]),re(0),ae(!0),Xe(0))},[Y]);u(function(){Ye(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(){Se(he)},500);return function(){return clearTimeout(e)}},[he]),u(function(){o(void 0,void 0,void 0,function(){var e,o,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.map(function(e){var o,n,t;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!==(t=e.is_copy)&&void 0!==t&&t}}),me(o)):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]),u(function(){!be.trim()&&Ke&&ke(Ke.id)},[be,Ke]);var Je=function(){setTimeout(function(){Ue.current&&Ue.current.scrollTo({top:Ue.current.scrollHeight,behavior:"smooth"})},100)},Qe=function(){Pe(""),V(null),Ye({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),me([]),ge(""),ke(null),H()},Ve=function(o,n){var t;if("primeTime"!==o){var r=null!==(t=null==n?void 0:n.value)&&void 0!==t?t:"";Ye(function(n){var t;return e(e({},n),((t={})[o]=String(r),t))}),"genre"===o&&(_e(!0),We.current&&clearTimeout(We.current),We.current=setTimeout(function(){var e=ee.find(function(e){return e.scope_name===r});ke(e?e.id:null),_e(!1)},800))}else{var i=(null==n?void 0:n.value)?String(n.value):"";Ye(function(o){return e(e({},o),{primeTime:i?[i]:[]})})}},$e=Boolean(Q&&Ge.region&&Ge.timezone&&Ge.primeTime.length>0&&Ge.genre);return r(d,e({open:Y,onClose:Qe,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:Re}),r(p,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[r(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:Qe,disabled:Ne,sx:{color:"#19213D"}},{children:i(v,{size:24})}))]})),r(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[i(D,{isLoading:Ne,currentStep:Ie,onComplete:function(){De(!1);var e=Le.current;Qe(),Z(e||void 0),Le.current=null}}),r(p,e({sx:{display:"flex",flex:1,paddingY:"14px",paddingX:"20px",gap:3,overflowY:"hidden"}},{children:[r(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."})),r(p,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[r(p,e({className:I.formGroup},{children:[r("label",e({className:I.label},{children:[i("span",e({className:I.asterisk},{children:"*"})),"Station Name/Call Letters"]})),i(z,{value:je,onChange:Pe,onStationSelect:function(e){return V(e)}})]})),i(A,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:Ge.region||void 0,isSearchable:!1}),i(A,{required:!0,label:"TimeZone",placeholder:"Select TimeZone",options:R,value:He(R,Ge.timezone),onOptionChange:function(e){return Ve("timezone",e)},isSearchable:!1}),i(A,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:L,value:He(L,(null===(G=Ge.primeTime)||void 0===G?void 0:G[0])||""),onOptionChange:function(e){return Ve("primeTime",e)},isSearchable:!1}),i(p,e({onClick:Je,sx:{width:"100%"}},{children:i(A,{required:!0,label:"Genre",placeholder:"Select Genre",options:Ze,value:He(Ze,Ge.genre),onOptionChange:function(e){return Ve("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!ce&&le&&Xe(te)},isLoadingOptions:ce,hasMoreOptions:le})})),i(p,e({onClick:Je,sx:{width:"100%"}},{children:i(A,{label:"Station Type",placeholder:"None",options:W,value:He(W,Ge.type),onOptionChange:function(o){Ve("type",o),"Low Sellout"!==(null==o?void 0:o.value)&&Ye(function(o){return e(e({},o),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===Ge.type&&i(p,e({onClick:Je,sx:{width:"100%"}},{children:i(A,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:U,value:He(U,Ge.lowSelloutConfig),onOptionChange:function(e){return Ve("lowSelloutConfig",e)},isSearchable:!1})}))]}))]})),i(p,e({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column",height:"100%",overflowY:"auto"}},{children:Ge.genre?r(l,{children:[i(m,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Matching scope for your station"})),i(p,e({sx:{display:"flex",flexDirection:"column",gap:2,mb:4}},{children:Te?i(N,{}):Ke?i(E,e({},Ke,{isSelected:Fe===Ke.id,onSelect:ke}),Ke.id):null})),i(m,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Other available stations"})),r("div",e({className:I.searchWrapper},{children:[i("input",{type:"text",value:he,onChange:function(e){return ge(e.target.value)},placeholder:"Search for station...",className:I.searchInput}),i(S,{className:I.searchIcon,size:16})]})),r(p,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[ye&&i(N,{}),!ye&&0===pe.length&&be.trim()&&r(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(E,e({},o,{isSelected:Fe===o.id,onSelect:ke}),o.id)})]}))]}):r(l,{children:[i(m,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Fill in the station details to load AI recommended scopes"})),i(m,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:3}},{children:"AI will recommend the most relevant scope for this station."})),i(p,e({sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.5,py:10}},{children:i(b,{})}))]})}))]}))]})),r(p,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[i("button",e({onClick:Qe,disabled:Ne,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,r,i,l,a,s,c,u,d,p,m,f,h,g,v,b,S,x,y;return n(this,function(n){switch(n.label){case 0:if(!Q||!Fe)return console.error("[StationOnboard] Missing required data for onboarding"),[2];o=Ke?t([Ke],pe,!0):pe,r=o.find(function(e){return e.id===Fe}),i=null!==(g=null==r?void 0:r.isCopy)&&void 0!==g&&g,De(!0),Ae(0),l=null,n.label=1;case 1:return n.trys.push([1,3,,4]),u=P.getState().backwardCompatibility,a=u?{topic:"customRuleSet",customScopeGroupName:B.CUSTOM_SCOPE_GROUP_NAME,scopeDescription:Q.station_name||"New Station",parentScopeId:null,customScopeName:Q.station_name||"New Station",customScopeId:C(),createByName:(null==Be?void 0:Be.firstname)||"System",createdBy:(null==Be?void 0:Be.email)||"system@audacy.com"}:{topic:"customRuleSet",scope_reference_id:null,scopeDescription:"demo",parentScopeId:null,scopeName:Q.station_name||"New Station",scopeReferenceMetadata:{},applicationMappingId:K},u&&console.log("[StationOnboard] Using legacy payload structure for createRuleSet API"),console.log("[StationOnboard] Step 1: Creating rule set with payload:",a),[4,k(a,X)];case 2:if(s=n.sent(),!(l=null===(v=null==s?void 0:s.data)||void 0===v?void 0:v.scopeId))throw new Error("Failed to create scope - no scopeId returned");return console.log("[StationOnboard] Step 1 Complete: Created scope with ID:",l),Ae(1),[3,4];case 3:return c=n.sent(),console.error("[StationOnboard] Error creating rule set:",c),null===(b=Re.current)||void 0===b||b.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),De(!1),Ae(0),[2];case 4:return n.trys.push([4,6,,11]),u=P.getState().backwardCompatibility,d=e(e({market:Q.market,region:Q.region},u?{}:{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:l,station_guid:Q.station_guid,station_name:Q.station_name||"New Station"}),console.log("[StationOnboard] Step 2: Updating station with payload:",d),[4,F(d)];case 5:return n.sent(),console.log("[StationOnboard] Step 2 Complete: Station updated"),Ae(2),[3,11];case 6:p=n.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",p),409===p.status?(null===(S=Re.current)||void 0===S||S.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),V(null),ke(null),Pe(""),Ye(function(o){return e(e({},o),{region:""})})):null===(x=Re.current)||void 0===x||x.show({severity:"error",life:2500,summary:"Error updating station",detail:"Please try again."}),n.label=7;case 7:return n.trys.push([7,9,,10]),[4,O(l,X)];case 8:return n.sent(),console.log("[StationOnboard] Rollback complete: Deleted rule set",l),[3,10];case 9:return m=n.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",m),[3,10];case 10:return De(!1),Ae(0),[2];case 11:return n.trys.push([11,13,,14]),f={source_scope_id:Fe,target_scope_id:l,is_copy_parent_variant_id:i},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",f),[4,_(f)];case 12:return n.sent(),console.log("[StationOnboard] Step 3 Complete: Scope inherited"),Ae(3),[3,14];case 13:return h=n.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",h),null===(y=Re.current)||void 0===y||y.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),De(!1),Ae(0),[2];case 14:return Le.current=l,console.log("[StationOnboard] Onboarding completed successfully!"),[2]}})})},disabled:!$e||Ne,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:$e?"#2563EB":"#BFDBFE",color:"#fff",cursor:$e&&!Ne?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:r(l,Ne?{children:[i(g,{size:16,color:"inherit"}),i("span",{children:"Onboarding..."})]}:{children:[i("span",{children:"Onboard Station"}),i(x,{size:16})]})}))]}))]}))};export{q as default};
2
2
  //# sourceMappingURL=StationOnboardModal.js.map
@@ -1,2 +1,2 @@
1
- import{__rest as t,__assign as o}from"tslib";import{jsx as r}from"react/jsx-runtime";import*as e from"react";import*as s from"@radix-ui/react-tooltip";import a from"../styles/ToolTip.module.css.js";var i=s.Root,m=s.Trigger,f=e.forwardRef(function(e,i){var m=e.className,f=e.sideOffset,c=void 0===f?4:f,l=t(e,["className","sideOffset"]);return r(s.Portal,{children:r(s.Content,o({ref:i,sideOffset:c,className:"".concat(a.tooltipContent," ").concat(m||"")},l))})});f.displayName=s.Content.displayName;export{i as Tooltip,f as TooltipContent,m as TooltipTrigger};
1
+ import{__rest as t,__assign as o}from"tslib";import{jsx as r}from"react/jsx-runtime";import*as e from"react";import*as s from"@radix-ui/react-tooltip";import a from"../styles/ToolTip.module.css.js";var i=s.Provider,m=s.Root,f=s.Trigger,c=e.forwardRef(function(e,i){var m=e.className,f=e.sideOffset,c=void 0===f?4:f,l=t(e,["className","sideOffset"]);return r(s.Portal,{children:r(s.Content,o({ref:i,sideOffset:c,className:"".concat(a.tooltipContent," ").concat(m||"")},l))})});c.displayName=s.Content.displayName;export{m as Tooltip,c as TooltipContent,i as TooltipProvider,f as TooltipTrigger};
2
2
  //# sourceMappingURL=ToolTip.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as n}from"tslib";import{create as e}from"zustand";var i=e(function(e){return{configuration:null,ilLabels:{setupLabel:"Learning Setup",ruleTitle:"Learning Title",ruleDescriptionTitle:"Learning Description"},setConfig:function(n){return e(function(){return{configuration:n}})},setIlLabels:function(i){return e(function(e){return{ilLabels:n(n({},e.ilLabels),i)}})},resetConfig:function(){return e({configuration:null,ilLabels:{setupLabel:"Learning Setup",ruleTitle:"Learning Title",ruleDescriptionTitle:"Learning Description"}})}}});export{i as useConfigStore};
1
+ import{__assign as e}from"tslib";import{create as n}from"zustand";var t={"Separation rule":"I would want to add a separation rule","Max priority rule":"I would want to set a max priority rule","Break code matching":"I would want to add a break code matching rule","Inventory code matching":"I would want to add a inventory window matching rule","Enter a rule description":"I want to add a rule description","Tester Genie":"Loading prompt..."},r="<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 rule you'd like to create.</span>\n ".concat(["Separation rule","Max priority rule","Break code matching","Inventory code matching","Enter a rule description","Tester Genie"].map(function(e){return'<button class="clickable-button" data-value="'.concat(t[e],'">').concat(e,"</button>")}).join(""),"</p>"),i=n(function(n){return{configuration:{INITIAL_CHAT_MESSAGE:r},ilLabels:{setupLabel:"Learning Setup",ruleTitle:"Learning Title",ruleDescriptionTitle:"Learning Description"},setConfig:function(e){return n(function(){return{configuration:e}})},setIlLabels:function(t){return n(function(n){return{ilLabels:e(e({},n.ilLabels),t)}})},resetConfig:function(){return n({configuration:null,ilLabels:{setupLabel:"Learning Setup",ruleTitle:"Learning Title",ruleDescriptionTitle:"Learning Description"}})}}});export{i as useConfigStore};
2
2
  //# sourceMappingURL=useConfigStore.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__spreadArray as t}from"tslib";import{create as n}from"zustand";import{getQueryParam as r,setQueryParams as u,QUERY_PARAM_KEYS as o}from"../hooks/useLearningTemplateQueryParams.js";var i={globalRuleSet:[],genreRuleSet:[],customRuleSet:[]},a=n(function(n){return{sidebarTab:"rule-sets",selectedRuleSetId:null,ruleSets:i,isStationModalOpen:!1,isILModalTriggered:"true"===r(o.OPEN_IL),isStationOnboardModalTriggered:"true"===r(o.ONBOARD_STATION),scopeTreeData:null,stations:[],selectedStationId:null,currentRules:[],createdVariantInfo:null,setRuleSets:function(e){return n({ruleSets:e})},setScopeTreeData:function(e){return n({scopeTreeData:e})},setStationModalOpen:function(e){return n({isStationModalOpen:e})},setIsILModalTriggered:function(e){var t;u(((t={})[o.OPEN_IL]=e?"true":null,t)),n({isILModalTriggered:e})},setIsStationOnboardModalTriggered:function(e){var t;u(((t={})[o.ONBOARD_STATION]=e?"true":null,t)),n({isStationOnboardModalTriggered:e})},setInitialRules:function(e){return n({currentRules:e})},setCreatedVariantInfo:function(e){return n({createdVariantInfo:e})},resetCreatedVariantInfo:function(){return n({createdVariantInfo:null})},setSelectedRuleSetId:function(e){var t;u(((t={})[o.RULESET_ID]=e,t)),n({selectedRuleSetId:e})},toggleRuleTier:function(t){return n(function(n){return{currentRules:n.currentRules.map(function(n){return n.id===t?e(e({},n),{isOpen:!n.isOpen}):n})}})},deleteRule:function(t,r){return n(function(n){return{currentRules:n.currentRules.map(function(n){return n.id===t?e(e({},n),{rules:n.rules.filter(function(e){return e.id!==r}),ruleCount:n.ruleCount-1}):n})}})},setStations:function(e){return n({stations:e})},addStation:function(e){return n(function(n){return{stations:t(t([],n.stations,!0),[e],!1)}})},deleteStation:function(e){return n(function(t){return{stations:t.stations.filter(function(t){return t.stationId!==e}),selectedStationId:t.selectedStationId===e?null:t.selectedStationId}})},error:null,setError:function(e){return n({error:e})},tiers:[],setTiers:function(e){return n({tiers:e})}}});export{i as INITIAL_RULE_SETS,a as useLearningTemplateStore};
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,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})},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})}}});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 o={treeContainer:"ScopeTree-module_treeContainer__IfdEO",nodeWrapper:"ScopeTree-module_nodeWrapper__zt96G",childrenWrapper:"ScopeTree-module_childrenWrapper__uggxw",nodeHeader:"ScopeTree-module_nodeHeader__qxJAp",nodeHeaderSelected:"ScopeTree-module_nodeHeaderSelected__UTNOH",nodeHeaderAncestor:"ScopeTree-module_nodeHeaderAncestor__Cjnkv",chevron:"ScopeTree-module_chevron__bmchk",chevronExpanded:"ScopeTree-module_chevronExpanded__aZNQo",chevronHidden:"ScopeTree-module_chevronHidden__dfrws",folderIcon:"ScopeTree-module_folderIcon__93n7V",nodeName:"ScopeTree-module_nodeName__-o5cw",optionsButton:"ScopeTree-module_optionsButton__KD0N8",pill:"ScopeTree-module_pill__LfoFO",pillActive:"ScopeTree-module_pillActive__hV98M",pillIcon:"ScopeTree-module_pillIcon__qOzv0",pillLabel:"ScopeTree-module_pillLabel__-pnNE",badge:"ScopeTree-module_badge__0M-VE",badgeActive:"ScopeTree-module_badgeActive__lFpKZ",addAction:"ScopeTree-module_addAction__alNAW",addIcon:"ScopeTree-module_addIcon__Rx81g",menuContainer:"ScopeTree-module_menuContainer__IyejG",menuDropdown:"ScopeTree-module_menuDropdown__12xxX",menuDropdownTop:"ScopeTree-module_menuDropdownTop__hkZpa",menuDropdownBottom:"ScopeTree-module_menuDropdownBottom__w53jm",menuOption:"ScopeTree-module_menuOption__wcvl7",menuOptionDisabled:"ScopeTree-module_menuOptionDisabled__1FaQQ",menuOptionIcon:"ScopeTree-module_menuOptionIcon__s2FWC",tooltipWrapper:"ScopeTree-module_tooltipWrapper__Jhz1M",tooltipContent:"ScopeTree-module_tooltipContent__J02zm",tooltipFadeIn:"ScopeTree-module_tooltipFadeIn__of1bQ",tooltipArrow:"ScopeTree-module_tooltipArrow__m9eHn",highlightText:"ScopeTree-module_highlightText__mHYra"};e(".ScopeTree-module_treeContainer__IfdEO{display:flex;flex:1;flex-direction:column;gap:.5rem;height:100%;overflow:auto;padding:0 1.25rem 80px}.ScopeTree-module_treeContainer__IfdEO::-webkit-scrollbar{height:4px;width:4px}.ScopeTree-module_treeContainer__IfdEO::-webkit-scrollbar-thumb{background-color:#e5e7eb;border-radius:9999px}.ScopeTree-module_nodeWrapper__zt96G{display:flex;flex-direction:column;min-width:max-content;position:relative}.ScopeTree-module_childrenWrapper__uggxw{border-left:1px solid #e3e6ea;display:flex;flex-direction:column;gap:.5rem;margin-left:calc(var(--tree-depth, 0)*0px + .875rem);margin-top:.5rem;min-width:max-content;padding-left:1rem}.ScopeTree-module_nodeHeader__qxJAp{align-items:center;border:1px solid #0000;border-radius:.375rem;color:#19213d;cursor:pointer;display:flex;gap:.5rem;min-width:max-content;padding:.5rem;transition:all .2s}.ScopeTree-module_nodeHeader__qxJAp:hover{background-color:#f7f8fa}.ScopeTree-module_nodeHeaderSelected__UTNOH{border-color:#2563eb;color:#2563eb}.ScopeTree-module_nodeHeaderAncestor__Cjnkv{color:#2563eb}.ScopeTree-module_chevron__bmchk{align-items:center;color:#9ca3af;display:flex;flex-shrink:0;justify-content:center;transition:transform .2s}.ScopeTree-module_chevronExpanded__aZNQo{transform:rotate(180deg)}.ScopeTree-module_chevronHidden__dfrws{visibility:hidden;width:16px}.ScopeTree-module_folderIcon__93n7V{align-items:center;color:inherit;display:flex;flex-shrink:0;justify-content:center}.ScopeTree-module_nodeName__-o5cw{flex:1;font-size:.875rem;font-weight:500;white-space:nowrap}.ScopeTree-module_optionsButton__KD0N8{align-items:center;background:#0000;border:none;border-radius:.25rem;color:#64748b;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:all .2s}.ScopeTree-module_optionsButton__KD0N8:hover{background-color:#e2e8f0;color:#19213d}.ScopeTree-module_pill__LfoFO{align-items:center;border:1px solid #0000;border-radius:.5rem;color:#64748b;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 1rem;transition:all .2s}.ScopeTree-module_pill__LfoFO:hover{background-color:#f7f8fa;color:#19213d}.ScopeTree-module_pillActive__hV98M{background-color:#f0f5ff;border-color:#2563eb;color:#2563eb}.ScopeTree-module_pillActive__hV98M:hover{background-color:#e0ebff;color:#2563eb}.ScopeTree-module_pillIcon__qOzv0{align-items:center;display:flex;justify-content:center}.ScopeTree-module_pillLabel__-pnNE{flex:1;font-size:.875rem;font-weight:500}.ScopeTree-module_badge__0M-VE{align-items:center;background-color:#f1f5f9;border-radius:9999px;color:#475569;display:inline-flex;font-size:.625rem;font-weight:600;height:1.25rem;justify-content:center;min-width:1.25rem;padding:0 .375rem}.ScopeTree-module_badgeActive__lFpKZ{background-color:#2563eb;color:#fff}.ScopeTree-module_addAction__alNAW{align-items:center;background:#0000;border:none;border-radius:.375rem;color:#2563eb;cursor:pointer;display:flex;font-size:.875rem;font-weight:500;gap:.5rem;margin-top:.25rem;padding:.5rem;transition:all .2s;width:fit-content}.ScopeTree-module_addAction__alNAW:hover{background-color:#f0f5ff}.ScopeTree-module_addIcon__Rx81g{align-items:center;display:flex;justify-content:center}.ScopeTree-module_menuContainer__IyejG{display:inline-block;position:relative;text-align:left}.ScopeTree-module_menuDropdown__12xxX{background-color:#fff;border:1px solid #0000000d;border-radius:.375rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;display:flex;flex-direction:column;outline:none;padding:.25rem 0;position:absolute;width:12rem;z-index:9999}.ScopeTree-module_menuDropdownTop__hkZpa{bottom:100%;margin-bottom:.25rem;right:0}.ScopeTree-module_menuDropdownBottom__w53jm{margin-top:.25rem;right:0;top:100%}.ScopeTree-module_menuOption__wcvl7{align-items:center;background:#0000;border:none;color:#374151;cursor:pointer;display:flex;font-size:.875rem;padding:.5rem 1rem;text-align:left;width:100%}.ScopeTree-module_menuOption__wcvl7:not(:disabled):hover{background-color:#f3f4f6;color:#111827}.ScopeTree-module_menuOptionDisabled__1FaQQ{color:#9ca3af;cursor:not-allowed;opacity:.6}.ScopeTree-module_menuOptionIcon__s2FWC{flex-shrink:0;margin-right:.75rem}.ScopeTree-module_tooltipWrapper__Jhz1M{position:relative;width:100%}.ScopeTree-module_tooltipContent__J02zm{animation:ScopeTree-module_tooltipFadeIn__of1bQ .15s ease-out;background-color:#2a3547;border-radius:.375rem;box-shadow:0 10px 15px -3px #0000001a;color:#fff;font-family:sans-serif;font-size:.875rem;max-width:280px;padding:.5rem .75rem;position:relative;z-index:9999}.ScopeTree-module_tooltipArrow__m9eHn{fill:#2a3547;position:absolute}@keyframes ScopeTree-module_tooltipFadeIn__of1bQ{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.ScopeTree-module_highlightText__mHYra{background-color:#fde047;border-radius:.125rem;color:#111827}");export{o as default};
1
+ import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var o={treeContainer:"ScopeTree-module_treeContainer__IfdEO",nodeWrapper:"ScopeTree-module_nodeWrapper__zt96G",childrenWrapper:"ScopeTree-module_childrenWrapper__uggxw",nodeHeader:"ScopeTree-module_nodeHeader__qxJAp",nodeHeaderSelected:"ScopeTree-module_nodeHeaderSelected__UTNOH",nodeHeaderAncestor:"ScopeTree-module_nodeHeaderAncestor__Cjnkv",chevron:"ScopeTree-module_chevron__bmchk",chevronExpanded:"ScopeTree-module_chevronExpanded__aZNQo",chevronHidden:"ScopeTree-module_chevronHidden__dfrws",folderIcon:"ScopeTree-module_folderIcon__93n7V",nodeName:"ScopeTree-module_nodeName__-o5cw",optionsButton:"ScopeTree-module_optionsButton__KD0N8",pill:"ScopeTree-module_pill__LfoFO",pillActive:"ScopeTree-module_pillActive__hV98M",pillIcon:"ScopeTree-module_pillIcon__qOzv0",pillLabel:"ScopeTree-module_pillLabel__-pnNE",badge:"ScopeTree-module_badge__0M-VE",badgeActive:"ScopeTree-module_badgeActive__lFpKZ",addAction:"ScopeTree-module_addAction__alNAW",addIcon:"ScopeTree-module_addIcon__Rx81g",menuContainer:"ScopeTree-module_menuContainer__IyejG",menuDropdown:"ScopeTree-module_menuDropdown__12xxX",menuDropdownTop:"ScopeTree-module_menuDropdownTop__hkZpa",menuDropdownBottom:"ScopeTree-module_menuDropdownBottom__w53jm",menuOption:"ScopeTree-module_menuOption__wcvl7",menuOptionDisabled:"ScopeTree-module_menuOptionDisabled__1FaQQ",menuOptionIcon:"ScopeTree-module_menuOptionIcon__s2FWC",tooltipWrapper:"ScopeTree-module_tooltipWrapper__Jhz1M",tooltipContent:"ScopeTree-module_tooltipContent__J02zm",tooltipFadeIn:"ScopeTree-module_tooltipFadeIn__of1bQ",tooltipArrow:"ScopeTree-module_tooltipArrow__m9eHn",highlightText:"ScopeTree-module_highlightText__mHYra"};e(".ScopeTree-module_treeContainer__IfdEO{display:flex;flex:1;flex-direction:column;gap:.5rem;height:100%;overflow:auto;padding:0 1.25rem 80px}.ScopeTree-module_treeContainer__IfdEO::-webkit-scrollbar{height:4px;width:4px}.ScopeTree-module_treeContainer__IfdEO::-webkit-scrollbar-thumb{background-color:#e5e7eb;border-radius:9999px}.ScopeTree-module_nodeWrapper__zt96G{display:flex;flex-direction:column;min-width:max-content;position:relative}.ScopeTree-module_childrenWrapper__uggxw{border-left:1px solid #e3e6ea;display:flex;flex-direction:column;gap:.5rem;margin-left:calc(var(--tree-depth, 0)*0px + .875rem);margin-top:.5rem;min-width:max-content;padding-left:1rem}.ScopeTree-module_nodeHeader__qxJAp{align-items:center;border:1px solid #0000;border-radius:.375rem;color:#19213d;cursor:pointer;display:flex;gap:.5rem;min-width:max-content;padding:.5rem;transition:all .2s}.ScopeTree-module_nodeHeader__qxJAp:hover{background-color:#f7f8fa}.ScopeTree-module_nodeHeaderSelected__UTNOH{border-color:#2563eb;color:#2563eb}.ScopeTree-module_nodeHeaderAncestor__Cjnkv{color:#2563eb}.ScopeTree-module_chevron__bmchk{align-items:center;border-radius:50px;color:#9ca3af;display:flex;flex-shrink:0;justify-content:center;padding:5px;transition:transform .2s;transition:background-color .3s ease-in-out}.ScopeTree-module_chevron__bmchk:hover{background:#e8ebf0}.ScopeTree-module_chevronExpanded__aZNQo{transform:rotate(180deg)}.ScopeTree-module_chevronHidden__dfrws{visibility:hidden;width:16px}.ScopeTree-module_folderIcon__93n7V{align-items:center;color:inherit;display:flex;flex-shrink:0;justify-content:center}.ScopeTree-module_nodeName__-o5cw{flex:1;font-size:.875rem;font-weight:500;white-space:nowrap}.ScopeTree-module_optionsButton__KD0N8{align-items:center;background:#0000;border:none;border-radius:.25rem;color:#64748b;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:all .2s}.ScopeTree-module_optionsButton__KD0N8:hover{background-color:#e2e8f0;color:#19213d}.ScopeTree-module_pill__LfoFO{align-items:center;border:1px solid #0000;border-radius:.5rem;color:#64748b;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 1rem;transition:all .2s}.ScopeTree-module_pill__LfoFO:hover{background-color:#f7f8fa;color:#19213d}.ScopeTree-module_pillActive__hV98M{background-color:#f0f5ff;border-color:#2563eb;color:#2563eb}.ScopeTree-module_pillActive__hV98M:hover{background-color:#e0ebff;color:#2563eb}.ScopeTree-module_pillIcon__qOzv0{align-items:center;display:flex;justify-content:center}.ScopeTree-module_pillLabel__-pnNE{flex:1;font-size:.875rem;font-weight:500}.ScopeTree-module_badge__0M-VE{align-items:center;background-color:#f1f5f9;border-radius:9999px;color:#475569;display:inline-flex;font-size:.625rem;font-weight:600;height:1.25rem;justify-content:center;min-width:1.25rem;padding:0 .375rem}.ScopeTree-module_badgeActive__lFpKZ{background-color:#2563eb;color:#fff}.ScopeTree-module_addAction__alNAW{align-items:center;background:#0000;border:none;border-radius:.375rem;color:#2563eb;cursor:pointer;display:flex;font-size:.875rem;font-weight:500;gap:.5rem;margin-top:.25rem;padding:.5rem;transition:all .2s;width:fit-content}.ScopeTree-module_addAction__alNAW:hover{background-color:#f0f5ff}.ScopeTree-module_addIcon__Rx81g{align-items:center;display:flex;justify-content:center}.ScopeTree-module_menuContainer__IyejG{display:inline-block;position:relative;text-align:left}.ScopeTree-module_menuDropdown__12xxX{background-color:#fff;border:1px solid #0000000d;border-radius:.375rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;display:flex;flex-direction:column;outline:none;padding:.25rem 0;position:absolute;width:12rem;z-index:9999}.ScopeTree-module_menuDropdownTop__hkZpa{bottom:100%;margin-bottom:.25rem;right:0}.ScopeTree-module_menuDropdownBottom__w53jm{margin-top:.25rem;right:0;top:100%}.ScopeTree-module_menuOption__wcvl7{align-items:center;background:#0000;border:none;color:#374151;cursor:pointer;display:flex;font-size:.875rem;padding:.5rem 1rem;text-align:left;width:100%}.ScopeTree-module_menuOption__wcvl7:not(:disabled):hover{background-color:#f3f4f6;color:#111827}.ScopeTree-module_menuOptionDisabled__1FaQQ{color:#9ca3af;cursor:not-allowed;opacity:.6}.ScopeTree-module_menuOptionIcon__s2FWC{flex-shrink:0;margin-right:.75rem}.ScopeTree-module_tooltipWrapper__Jhz1M{position:relative;width:100%}.ScopeTree-module_tooltipContent__J02zm{animation:ScopeTree-module_tooltipFadeIn__of1bQ .15s ease-out;background-color:#2a3547;border-radius:.375rem;box-shadow:0 10px 15px -3px #0000001a;color:#fff;font-family:sans-serif;font-size:.875rem;max-width:280px;padding:.5rem .75rem;position:relative;z-index:9999}.ScopeTree-module_tooltipArrow__m9eHn{fill:#2a3547;position:absolute}@keyframes ScopeTree-module_tooltipFadeIn__of1bQ{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.ScopeTree-module_highlightText__mHYra{background-color:#fde047;border-radius:.125rem;color:#111827}");export{o as default};
2
2
  //# sourceMappingURL=ScopeTree.module.css.js.map
@@ -0,0 +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"@viswa-test/test-citation";import"../../../features/LearningManagement/store/useLearningTemplateStore.js";import"primereact/toast";import"../../../features/LearningManagement/apis/scopeApis.js";import"../../../features/LearningManagement/components/ToolTip.js";import"../../../features/LearningManagement/store/useAuthStore.js";import"date-fns";import"framer-motion";import"@mui/icons-material/Close";import p from"../../../features/IL-OTJ/_components/AccordianSection.js";import u from"../../../features/IL-OTJ/ILOTJ.js";import"../../../features/LearningManagement/store/useConfigStore.js";import"../../../features/LearningManagement/config.js";import"@radix-ui/react-tooltip";import"../../../features/LearningManagement/components/StationOnboarding/InputField.js";import"../../../features/LearningManagement/store/useEnvStore.js";import"react-router-dom";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},m=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],d=["Tier 1"],f=function(){var f=a(!0),_=f[0],g=f[1],b=a(""),v=b[0],h=b[1],T=a(""),y=T[0],L=T[1],k=a({station:"",tiers:["Tier 1"]}),C=k[0],w=k[1],A=a([]),j=A[0],I=A[1],S=a([]),x=S[0],O=S[1],M=a(c),N=M[0],J=M[1],D=i(function(t,o){w(function(n){var r;return e(e({},n),((r={})[t]=o,r))})},[]),E=i(function(t,o){J(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})},[]),W=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"},N.order_rules),e({key:"advertiser_rules",label:"Advertiser"},N.advertiser_rules)],H=[{key:"inventory_rules",label:"Inventory code",enabled:N.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:N.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:N.is_default_enabled}];return o(u,{open:_,closeFunction:function(){return g(!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:y,scopeData:C,whenToApplyConditions:j,whenNotToApplyConditions:x,configData:N,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 L(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 W(I)},onRemoveWhenToApply:function(e){return B(I,e)},onEditWhenToApply:function(e,t){return R(I,e,t)},onAddWhenNotToApply:function(){return W(O)},onRemoveWhenNotToApply:function(e){return B(O,e)},onEditWhenNotToApply:function(e,t){return R(O,e,t)},onScopeChange:D,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:m,tierOptions:d,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
+ //# sourceMappingURL=DefaultTeachMeRenderer.js.map
@@ -0,0 +1,2 @@
1
+ import{jsx as e}from"react/jsx-runtime";import t from"../../../features/LearningManagement/components/InstantLearningModal.js";var a=function(a){var i=a.pluginPayload||{},n=i.editingRule,r=i.editingTier,o=i.editingVariants,d=i.focusedVariantIndex,c=i.setFocusedVariantIndex,u=i.triggerAddVariant,l=i.triggerFixGaps,s=i.copiedRule,p=i.copiedSourceTier,g=i.copiedTargetTier,m=i.initialDraftMessage,I=i.app_integration_id,w=i.modeId,x={"Separation rule":"I would want to add a separation rule","Max priority rule":"I would want to set a max priority rule","Break code matching":"I would want to add a break code matching rule","Inventory code matching":"I would want to add a inventory window matching rule","Enter a rule description":"I want to add a rule description","Tester Genie":"Loading prompt..."},f="<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 rule you’d like to create.</span>\n ".concat(["Separation rule","Max priority rule","Break code matching","Inventory code matching","Enter a rule description","Tester Genie"].map(function(e){return'<button class="clickable-button" data-value="'.concat(x[e],'">').concat(e,"</button>")}).join(""),"</p>");return e(t,{isOpen:a.isOpen,onClose:a.onClose,initialScope:a.initialScope,ruleSet:a.ruleSet,editingRule:n,editingTier:r,editingVariants:o,focusedVariantIndex:d,setFocusedVariantIndex:c,triggerAddVariant:u,triggerFixGaps:l,copiedRule:s,copiedSourceTier:p,copiedTargetTier:g,initialDraftMessage:m,initialChatMessage:f,applicationIntegrationId:I,modeId:w})};export{a as default};
2
+ //# sourceMappingURL=RadioTrafficLearningRenderer.js.map
@@ -1,6 +1,12 @@
1
- interface TeachMeWrapperProps {
2
- app_integration_id: any;
1
+ export interface TeachMeWrapperProps {
2
+ app_integration_id?: string;
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ initialScope: string;
6
+ ruleSet?: any;
7
+ pluginPayload?: Record<string, any>;
8
+ token: string;
3
9
  }
4
- declare const TeachMeWrapper: ({ app_integration_id }: TeachMeWrapperProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const TeachMeWrapper: (props: TeachMeWrapperProps) => import("react/jsx-runtime").JSX.Element;
5
11
  export default TeachMeWrapper;
6
12
  //# sourceMappingURL=TeachMeWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TeachMeWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.tsx"],"names":[],"mappings":"AA8IA,UAAU,mBAAmB;IAC3B,kBAAkB,EAAE,GAAG,CAAC;CACzB;AAED,QAAA,MAAM,cAAc,2BAA4B,mBAAmB,4CAwClE,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"TeachMeWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.tsx"],"names":[],"mappings":"AA2DA,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;IAEd,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AASD,QAAA,MAAM,cAAc,UAAW,mBAAmB,4CAiFjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -20,12 +20,13 @@ interface LearningManagementProps {
20
20
  ruleTitle: string;
21
21
  ruleDescriptionTitle: string;
22
22
  };
23
- app_integration_id: string;
23
+ app_integration_id?: string;
24
+ backwardCompatibility?: boolean;
24
25
  }
25
26
  /**
26
27
  * Main entry point for the Learning Template Management feature.
27
28
  * Responsible for initializing data (mock data for now) and rendering the main layout.
28
29
  */
29
- declare function LearningManagement({ userDetails, tiers, llmStudioUrl, audacyBackendUrl, ilLabels, config, app_integration_id }: LearningManagementProps): import("react/jsx-runtime").JSX.Element;
30
+ declare function LearningManagement({ userDetails, tiers, llmStudioUrl, audacyBackendUrl, ilLabels, config, app_integration_id, backwardCompatibility }: LearningManagementProps): import("react/jsx-runtime").JSX.Element;
30
31
  export default LearningManagement;
31
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;AAMrC,OAAO,EAA6E,IAAI,EAAE,MAAM,SAAS,CAAC;AAsE1G,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,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAA;IACD,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,iBAAS,kBAAkB,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,kBAAkB,EAAE,EAAE,uBAAuB,2CAwXhJ;AAED,eAAe,kBAAkB,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;AAMrC,OAAO,EAA6E,IAAI,EAAE,MAAM,SAAS,CAAC;AAyE1G,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,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,GAAG,CAAC;IACZ,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,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,kBAAkB,EAAE,qBAA2B,EAAE,EAAE,uBAAuB,2CA2b7K;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,4CA8F9B;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"LearningManagementTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningManagementTest.tsx"],"names":[],"mappings":"AAEA,iBAAS,sBAAsB,4CAiG9B;AAED,eAAe,sBAAsB,CAAA"}
@@ -14,6 +14,7 @@ interface LearningTemplateLayoutProps {
14
14
  sectionsConfig?: TreeSectionConfig[];
15
15
  nodeTypesConfig?: NodeTypeConfig[];
16
16
  app_integration_id?: string;
17
+ token: string;
17
18
  }
18
19
  /**
19
20
  * Layout component for Learning Template Management.
@@ -1 +1 @@
1
- {"version":3,"file":"LearningTemplateLayout.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningTemplateLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,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,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;CAC7B;AAED;;;;;GAKG;AACH,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA+DjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"LearningTemplateLayout.d.ts","sourceRoot":"","sources":["../../../../../src/features/LearningManagement/LearningTemplateLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,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,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,CAkEjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -30,6 +30,7 @@ interface RuleContentProps {
30
30
  deleteConfirmText?: string;
31
31
  onRefreshRuleSets?: (showLoader?: boolean, scopeId?: string) => void;
32
32
  app_integration_id: string;
33
+ token: string;
33
34
  }
34
35
  /**
35
36
  * Main content component for the Rule Template Management.
@@ -1 +1 @@
1
- {"version":3,"file":"RuleContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/RuleContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAiB3D;;;GAGG;AACH,UAAU,gBAAgB;IACxB,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,8CAA8C;IAC9C,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,qDAAqD;IACrD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wDAAwD;IACxD,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,0CAA0C;IAC1C,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,+CAA+C;IAC/C,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2CAA2C;IAC3C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,iBAAiB,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpE,kBAAkB,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsnB3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"RuleContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/RuleContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAiB3D;;;GAGG;AACH,UAAU,gBAAgB;IACxB,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,8CAA8C;IAC9C,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,qDAAqD;IACrD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wDAAwD;IACxD,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,0CAA0C;IAC1C,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,+CAA+C;IAC/C,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2CAA2C;IAC3C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,iBAAiB,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkwB3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -24,4 +24,12 @@ export declare const API_ENDPOINTS: {
24
24
  searchScopes: string;
25
25
  sessionValidation: string;
26
26
  };
27
+ export declare const LEGACY_API_ENDPOINTS: {
28
+ fetchScopes: string;
29
+ createRuleSet: string;
30
+ deleteRuleSet: string;
31
+ getRulesInRuleSetById: string;
32
+ publishFeedback: string;
33
+ inheritScope: string;
34
+ };
27
35
  //# sourceMappingURL=apiConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apiConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/apis/apiConfig.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;CAyBzB,CAAC"}
1
+ {"version":3,"file":"apiConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/apis/apiConfig.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;CA4BzB,CAAC;AACF,eAAO,MAAM,oBAAoB;;;;;;;CAOhC,CAAA"}
@@ -101,25 +101,28 @@ export interface SearchScopesPayload {
101
101
  limit?: string | number;
102
102
  }
103
103
  export declare const audacyApi: any;
104
+ declare const llmApi: any;
105
+ export declare const llmApiWithToken: (token: string) => any;
106
+ export default llmApi;
104
107
  /**
105
108
  * Publishes variant feedback and rule configurations to the LLM Studio endpoint.
106
109
  * This respects the VITE_LLM_STUDIO_URL configuration.
107
110
  */
108
- export declare const publishFeedback: (payload: PublishFeedbackPayload, assistantName: string) => Promise<any>;
111
+ export declare const publishFeedback: (payload: any, assistantName: string) => Promise<any>;
109
112
  export declare const submitChatFeedback: (payload: ChatFeedbackPayload) => Promise<any>;
110
113
  export declare const saveInstantLearningQuestion: (payload: SaveInstantLearningQuestionPayload) => Promise<any>;
111
- export declare const fetchScopes: (search: string) => Promise<any>;
114
+ export declare const fetchScopes: (appIntegrationId: string | undefined, token: string) => Promise<any>;
112
115
  interface RenameScopePayload {
113
116
  scope_id: string;
114
117
  scope_name: string;
115
118
  }
116
119
  export declare const renameScope: (payload: RenameScopePayload) => Promise<any>;
117
- export declare const getRulesInRuleSetById: (ruleSetId: string) => Promise<any>;
120
+ export declare const getRulesInRuleSetById: (ruleSetId: string, token: string) => Promise<any>;
118
121
  export declare const getRuleOverrideHistory: (variantId: string) => Promise<any>;
119
- export declare const createRuleSet: (payload: any) => Promise<any>;
122
+ export declare const createRuleSet: (payload: any, token: string) => Promise<any>;
120
123
  export declare const fetchStationsByKeyword: (keyword: string, includeOnboarded?: boolean) => Promise<any>;
121
124
  export declare const saveRuleSet: (payload: any) => Promise<any>;
122
- export declare const deleteRuleSet: (ruleSetId: string) => Promise<any>;
125
+ export declare const deleteRuleSet: (ruleSetId: string, token: string) => Promise<any>;
123
126
  export declare const deleteRule: (ruleId: string) => Promise<any>;
124
127
  export declare const deleteQuestion: (questionId: string) => Promise<any>;
125
128
  export declare const deleteTier: (scopeId: string, tierId: string) => Promise<any>;
@@ -174,11 +177,35 @@ export interface UpdateVariantPayload {
174
177
  * @returns Promise with success response
175
178
  */
176
179
  export declare const updateVariant: (payload: UpdateVariantPayload, updatedBy: string) => Promise<any>;
180
+ /**
181
+ * Backward Compatible w/o app mapping ID
182
+ */
183
+ export interface InheritScopePayloadBackwardCompatible {
184
+ source_scope_id: string;
185
+ target_scope_id: string;
186
+ is_copy_parent_variant_id?: boolean;
187
+ }
188
+ /**
189
+ * Payload for federated ILOTJ
190
+ */
177
191
  export interface InheritScopePayload {
178
192
  source_scope_id: string;
179
193
  target_scope_id: string;
180
194
  is_copy_parent_variant_id?: boolean;
195
+ application_mapping_id: string;
181
196
  }
197
+ /**
198
+ * Old Inherit scope used for Audacy backward compatibility
199
+ * @param payload
200
+ * @returns
201
+ * @deprecated
202
+ */
203
+ export declare const inheritScopeBackwardCompatible: (payload: InheritScopePayloadBackwardCompatible) => Promise<any>;
204
+ /**
205
+ * New Inherit Scope with App Mapping ID support
206
+ * @param payload
207
+ * @returns
208
+ */
182
209
  export declare const inheritScope: (payload: InheritScopePayload) => Promise<any>;
183
210
  export interface UpdateStationPayload {
184
211
  station_name: string;
@@ -210,5 +237,4 @@ export interface ValidateSessionPayload {
210
237
  scope_id: string;
211
238
  }
212
239
  export declare const validateSession: (payload: ValidateSessionPayload) => Promise<boolean>;
213
- export {};
214
240
  //# sourceMappingURL=scopeApis.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scopeApis.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/apis/scopeApis.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IAChC,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,aAAa,EAAE,OAAO,CAAC;QACvB,MAAM,CAAC,EAAE;YACP,WAAW,EAAE,MAAM,CAAC;YACpB,gBAAgB,CAAC,EAAE;gBACjB,iBAAiB,EAAE,GAAG,CAAC;aACxB,CAAC;YACF,WAAW,CAAC,EAAE;gBACZ,iBAAiB,EAAE,GAAG,CAAC;aACxB,CAAC;SACH,CAAC;QACF,UAAU,CAAC,EAAE;YACX,IAAI,EAAE,MAAM,CAAC;YACb,GAAG,EAAE,MAAM,CAAC;YACZ,GAAG,EAAE,MAAM,CAAC;SACb,CAAC;QACF,OAAO,EAAE;YAEP,OAAO,EAAE,MAAM,CAAC;YAChB,sBAAsB,EAAE,MAAM,CAAC;YAC/B,yBAAyB,EAAE,MAAM,CAAC;YAClC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAA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AAM,aAAa,YAAmB,oBAAoB,iBAQhE,CAAC;AAEF,eAAO,MAAM,aAAa,YAAmB,MAAM,iBAelD,CAAC;AAEF,eAAO,MAAM,aAAa,eACZ,MAAM,EAAE,aACT,OAAO,aACP,MAAM,iBAYlB,CAAC;AAEF,eAAO,MAAM,qBAAqB,YACvB,MAAM,UACP,MAAM,eACD,MAAM,cACP,MAAM,GAAG,IAAI,cACb,MAAM,GAAG,IAAI,iBAkB1B,CAAC;AAEF,eAAO,MAAM,sBAAsB,eAAsB,MAAM,WAAW,MAAM,iBAW/E,CAAC;AAEF,eAAO,MAAM,mBAAmB,aACrB,0BAA0B,iBASpC,CAAC;AAEF,eAAO,MAAM,YAAY,YAAmB,mBAAmB,iBAQ9D,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,YAAmB,MAAM,KAAG,QAAQ,GAAG,CA2BvE,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,YAAmB,sBAAsB,KAAG,QAAQ,OAAO,CAQtF,CAAC"}
1
+ {"version":3,"file":"scopeApis.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/apis/scopeApis.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IAChC,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,aAAa,EAAE,OAAO,CAAC;QACvB,MAAM,CAAC,EAAE;YACP,WAAW,EAAE,MAAM,CAAC;YACpB,gBAAgB,CAAC,EAAE;gBACjB,iBAAiB,EAAE,GAAG,CAAC;aACxB,CAAC;YACF,WAAW,CAAC,EAAE;gBACZ,iBAAiB,EAAE,GAAG,CAAC;aACxB,CAAC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AAoB,YAAmB,MAAM,KAAG,QAAQ,GAAG,CA2BvE,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,YAAmB,sBAAsB,KAAG,QAAQ,OAAO,CAQtF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface CreateRuleSetLegacyModalProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ onSubmit: (payload: any) => Promise<void>;
6
+ hasGlobalRuleSet?: boolean;
7
+ }
8
+ declare const CreateRuleSetLegacyModal: React.FC<CreateRuleSetLegacyModalProps>;
9
+ export default CreateRuleSetLegacyModal;
10
+ //# sourceMappingURL=CreateRuleSetLegacyModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateRuleSetLegacyModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/components/CreateRuleSetLegacyModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,UAAU,6BAA6B;IACrC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAQD,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAqMrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -21,6 +21,9 @@ interface InstantLearningModalProps {
21
21
  copiedSourceTier?: string | null;
22
22
  copiedTargetTier?: string | null;
23
23
  initialDraftMessage?: string;
24
+ initialChatMessage?: string;
25
+ applicationIntegrationId: string;
26
+ modeId: string;
24
27
  }
25
28
  /**
26
29
  * Strips AI reasoning and JSON blocks from incoming descriptive text.
@@ -1 +1 @@
1
- {"version":3,"file":"InstantLearningModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/components/InstantLearningModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAkCjF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAwBpE,UAAU,yBAAyB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACpC,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qEAAqE;IACrE,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IACvC,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,sBAAsB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAC7E,6FAA6F;IAC7F,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAoBD;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAAS,MAAM,GAAG,GAAG,WAMhD,CAAC;AAoIF,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA2jM7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"InstantLearningModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/components/InstantLearningModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAkCjF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AA0BpE,UAAU,yBAAyB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACpC,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qEAAqE;IACrE,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IACvC,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,sBAAsB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAC7E,6FAA6F;IAC7F,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wBAAwB,EAAE,MAAM,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB;AAoBD;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAAS,MAAM,GAAG,GAAG,WAMhD,CAAC;AAwIF,QAAA,MAAM,oBAAo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CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2KlD,CAAC"}
@@ -4,6 +4,8 @@ interface StationOnboardModalProps {
4
4
  onClose: () => void;
5
5
  /** Callback after onboarding completes. Receives the new scopeId. */
6
6
  onBoardStation: (scopeId?: string) => void;
7
+ app_integration_id: string;
8
+ token: string;
7
9
  }
8
10
  /**
9
11
  * Modal component for onboarding stations with full sequential logic and clean CSS module design.
@@ -1 +1 @@
1
- {"version":3,"file":"StationOnboardModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AA4DpE,UAAU,wBAAwB;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qEAAqE;IACrE,cAAc,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAED;;;GAGG;AACH,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA4vB3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"StationOnboardModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/StationOnboarding/StationOnboardModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAgEpE,UAAU,wBAAwB;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qEAAqE;IACrE,cAAc,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAmxB3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useConfigStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useConfigStore.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAA;IACD,SAAS,EAAE,CACT,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,KACxB,IAAI,CAAC;IACV,WAAW,EAAE,CACX,QAAQ,EAAE,OAAO,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAC,KACC,IAAI,CAAC;IAEV,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAGD,eAAO,MAAM,cAAc,0EA0BxB,CAAC"}
1
+ {"version":3,"file":"useConfigStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useConfigStore.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAA;IACD,SAAS,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IACjD,WAAW,EAAE,CACX,QAAQ,EAAE,OAAO,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAC,KACC,IAAI,CAAC;IACV,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAoBD,eAAO,MAAM,cAAc,0EA4BxB,CAAC"}
@@ -22,6 +22,8 @@ interface RuleTemplateState {
22
22
  currentRules: RuleTier[];
23
23
  /** Newly created variant IDs grouped by tier for auto-scroll */
24
24
  createdVariantInfo: CreatedVariantInfo[] | null;
25
+ templateMap: Record<string, string>;
26
+ setTemplateData: (appIntegrationId: string, templateName: string) => void;
25
27
  setRuleSets: (rules: AllRuleSetsResponse) => void;
26
28
  setScopeTreeData: (data: ScopesTreeResponse | null) => void;
27
29
  setStationModalOpen: (open: boolean) => void;
@@ -42,6 +44,8 @@ interface RuleTemplateState {
42
44
  setError: (error: string | null) => void;
43
45
  tiers: Tier[];
44
46
  setTiers: (tierIds: Tier[]) => void;
47
+ backwardCompatibility: boolean;
48
+ setBackwardCompatibility: (value: boolean) => void;
45
49
  }
46
50
  export declare const INITIAL_RULE_SETS: AllRuleSetsResponse;
47
51
  export declare const useLearningTemplateStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RuleTemplateState>>;
@@ -1 +1 @@
1
- {"version":3,"file":"useLearningTemplateStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useLearningTemplateStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIhG,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,KAAK,GAAG,UAAU,CAAA;KAAE,EAAE,CAAC;CACxD;AACD,UAAU,iBAAiB;IAEzB,UAAU,EAAE,WAAW,GAAG,UAAU,CAAC;IACrC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,mBAAmB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AAI,CAAC;IAC3C,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;CACrC;AAED,eAAO,MAAM,iBAAiB,EAAE,mBAI/B,CAAC;AAEF,eAAO,MAAM,wBAAwB,gFAuElC,CAAC"}
1
+ {"version":3,"file":"useLearningTemplateStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useLearningTemplateStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIhG,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,KAAK,GAAG,UAAU,CAAA;KAAE,EAAE,CAAC;CACxD;AACD,UAAU,iBAAiB;IAEzB,UAAU,EAAE,WAAW,GAAG,UAAU,CAAC;IACrC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,8BAA8B,EAAE,OAAO,CAAC;IACxC,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAGzC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,YAAY,EAAE,QAAQ,EAAE,CAAC;IAEzB,gEAA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,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACpC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,wBAAwB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpD;AAED,eAAO,MAAM,iBAAiB,EAAE,mBAI/B,CAAC;AAEF,eAAO,MAAM,wBAAwB,gFAmFlC,CAAC"}
@@ -130,9 +130,11 @@ export type RuleDefinition = {
130
130
  export type RuleSetDetailsResponse = {
131
131
  ruleSetName: string;
132
132
  ruleSetDesc: string | null;
133
- tier1: RuleDefinition[];
134
- tier2: RuleDefinition[];
135
- tier3: RuleDefinition[];
133
+ created_at: string;
134
+ updated_at: string | null;
135
+ created_by: string;
136
+ updated_by: string | null;
137
+ [key: string]: RuleDefinition[] | string | null;
136
138
  };
137
139
  export type ChangeLogItem = {
138
140
  type: 'null' | 'edited' | 'add' | 'edit' | 'remove';