@e-llm-studio/instant-learning 1.3.0-alpha.65 → 1.3.0-alpha.67

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 (29) hide show
  1. package/dist/cjs/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
  2. package/dist/cjs/features/LearningManagement/StationsContent/StationsContent.js +1 -1
  3. package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
  4. package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeNodeHeader.js +1 -1
  5. package/dist/cjs/features/LearningManagement/store/useLMSConfigStore.js +1 -1
  6. package/dist/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
  7. package/dist/features/LearningManagement/StationsContent/StationsContent.js +1 -1
  8. package/dist/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
  9. package/dist/features/LearningManagement/components/ScopeTree/TreeNodeHeader.js +1 -1
  10. package/dist/features/LearningManagement/store/useLMSConfigStore.js +1 -1
  11. package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts +2 -0
  12. package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts.map +1 -1
  13. package/dist/types/src/features/LearningManagement/StationsContent/StationsContent.d.ts.map +1 -1
  14. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts.map +1 -1
  15. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNodeHeader.d.ts +1 -0
  16. package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNodeHeader.d.ts.map +1 -1
  17. package/dist/types/src/features/LearningManagement/store/useLMSConfigStore.d.ts +39 -0
  18. package/dist/types/src/features/LearningManagement/store/useLMSConfigStore.d.ts.map +1 -1
  19. package/package.json +2 -2
  20. package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js +0 -2
  21. package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js.map +0 -1
  22. package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +0 -2
  23. package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +0 -1
  24. package/dist/features/LearningManagement/assets/Search-result(add new).svg.js +0 -2
  25. package/dist/features/LearningManagement/assets/Search-result(add new).svg.js.map +0 -1
  26. package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +0 -2
  27. package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +0 -1
  28. package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts +0 -12
  29. package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("lucide-react"),i=require("../styles/RuleHeader.module.css.js"),r=require("../store/usePermissionsStore.js"),t=require("../store/useLMSConfigStore.js");exports.default=function(n){var l=n.onAddRule,o=n.onOnboardStation,d=n.onExport,u=n.isExporting,c=void 0!==u&&u,x=n.ruleSetId,g=n.ruleSetName,j=n.ruleSetDescription,b=n.isGlobal,f=void 0!==b&&b,p=n.globalLabel,_=void 0===p?t.dt("learnings.globalLearning.globalLabel","Global Learnings ( Default )"):p;n.addExemptionLabel;var v=n.addNewRuleLabel,m=void 0===v?t.dt("learnings.header.addNewLearningButton","Add New Learning"):v,h=r.usePermissionsStore(function(e){return e.hasPermission});if(!g&&!f)return null;var N=f?_:g,L=h("ilotj.rule.create",x||void 0),S=h("ilotj.rule.variant.create",x||void 0),q=L||S;return s.jsxs("div",e.__assign({className:i.default.container},{children:[s.jsxs("div",e.__assign({className:i.default.info},{children:[s.jsx("h1",{children:N}),j&&s.jsx("p",e.__assign({className:i.default.description},{children:j}))]})),s.jsxs("div",e.__assign({className:i.default.actions,style:{display:"flex",gap:"8px"}},{children:[d&&s.jsxs("button",e.__assign({onClick:d,disabled:c,className:i.default.exportButton},{children:[s.jsx(a.Download,{size:14}),c?"Exporting...":t.dt("learnings.header.exportButton","Export")]})),q&&l&&s.jsxs("button",e.__assign({onClick:l,className:i.default.addRuleButton},{children:[s.jsx(a.Plus,{size:14}),m]})),o&&s.jsxs("button",e.__assign({onClick:o,className:i.default.addRuleButton},{children:[s.jsx(a.Plus,{size:14}),"Onboard a station"]}))]}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("lucide-react"),i=require("../styles/RuleHeader.module.css.js"),r=require("../store/usePermissionsStore.js"),t=require("../store/useLMSConfigStore.js");exports.default=function(n){var l=n.onAddRule,o=n.onOnboardStation,d=n.onExport,u=n.isExporting,c=void 0!==u&&u,x=n.ruleSetId,g=n.ruleSetName,b=n.ruleSetDescription,j=n.isGlobal,p=void 0!==j&&j,f=n.globalLabel,m=void 0===f?t.dt("learnings.globalLearning.globalLabel","Global Learnings ( Default )"):f;n.addExemptionLabel;var v=n.addNewRuleLabel,_=void 0===v?t.dt("learnings.header.addNewLearningButton","Add New Learning"):v,h=n.onboardStationLabel,L=void 0===h?t.dt("middleDrawer.scopeDisplayLimit.onboardBtn","Onboard a station"):h,N=r.usePermissionsStore(function(e){return e.hasPermission});if(!g&&!p)return null;var S=p?m:g,q=N("ilotj.rule.create",x||void 0),B=N("ilotj.rule.variant.create",x||void 0),P=q||B;return s.jsxs("div",e.__assign({className:i.default.container},{children:[s.jsxs("div",e.__assign({className:i.default.info},{children:[s.jsx("h1",{children:S}),b&&s.jsx("p",e.__assign({className:i.default.description},{children:b}))]})),s.jsxs("div",e.__assign({className:i.default.actions,style:{display:"flex",gap:"8px"}},{children:[d&&s.jsxs("button",e.__assign({onClick:d,disabled:c,className:i.default.exportButton},{children:[s.jsx(a.Download,{size:14}),c?"Exporting...":t.dt("learnings.header.exportButton","Export")]})),P&&l&&s.jsxs("button",e.__assign({onClick:l,className:i.default.addRuleButton},{children:[s.jsx(a.Plus,{size:14}),_]})),o&&s.jsxs("button",e.__assign({onClick:o,className:i.default.addRuleButton},{children:[s.jsx(a.Plus,{size:14}),L]}))]}))]}))};
2
2
  //# sourceMappingURL=RuleHeader.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("react"),a=require("lucide-react"),n=require("../components/ErrorStateDisplay.js"),i=require("../components/EmptyLearningState.js"),r=require("../store/useLearningTemplateStore.js"),l=require("../styles/StationsContent.module.css.js"),o=require("../RuleContent/RuleHeader.js");exports.default=function(c){c.scopeId;var d=c.scopeName,u=c.stations,f=void 0===u?[]:u,h=c.stationsCount,p=c.onViewStation,_=c.onDeleteStation,g=t.useState(""),m=g[0],j=g[1],x=t.useState(f),N=x[0],v=x[1],S=t.useState(!1),y=S[0],C=S[1],q=t.useState(null),w=q[0],D=q[1],L=r.useLearningTemplateStore(function(e){return e.setStationModalOpen}),b=function(){C(!0),D(null);try{var e=m.toLowerCase(),s=f.filter(function(s){return s.stationName.toLowerCase().includes(e)});v(s)}catch(e){console.error("Failed to filter stations:",e),D("Failed to filter stations. Please try again.")}finally{C(!1)}};return t.useEffect(function(){b()},[m,f]),s.jsxs("div",e.__assign({className:l.default.container},{children:[s.jsxs("div",{children:[s.jsx(o.default,{ruleSetName:"".concat(d," > Stations (").concat(f.length||h||0,")"),ruleSetDescription:"Manage the stations assigned to the ".concat(d," scope."),onOnboardStation:function(){return L(!0)}}),s.jsx("div",e.__assign({className:l.default.searchBarWrapper},{children:s.jsxs("div",e.__assign({className:l.default.searchRelative},{children:[s.jsx("div",e.__assign({className:l.default.searchIconWrapper},{children:s.jsx(a.Search,{className:l.default.searchIcon})})),s.jsx("input",{type:"text",className:l.default.searchInput,placeholder:"Search station...",value:m,onChange:function(e){return j(e.target.value)}})]}))}))]}),s.jsx("div",e.__assign({className:l.default.contentArea},{children:y?s.jsx("div",e.__assign({className:l.default.loadingWrapper},{children:s.jsx("p",{children:"Loading stations..."})})):w?s.jsx(n.default,{errorMessage:w,onRetry:b}):0===f.length?s.jsx("div",e.__assign({className:l.default.emptyWrapper},{children:s.jsx(i.default,{title:"No stations in this scope yet!",desc:"Add stations to ".concat(d," to define which ones this scope applies to."),button:"Onboard a Station",onCreate:function(){return L(!0)}})})):0===N.length?s.jsx("div",e.__assign({className:l.default.noResultsWrapper},{children:s.jsx("p",{children:"No stations match your search query."})})):s.jsx("div",e.__assign({className:l.default.stationList},{children:N.map(function(t){return s.jsxs("div",e.__assign({className:l.default.stationCard},{children:[s.jsxs("div",e.__assign({className:l.default.stationCardLeft},{children:[s.jsx("div",e.__assign({className:l.default.stationIconWrapper},{children:s.jsx(a.RadioTower,{size:20})})),s.jsxs("div",e.__assign({className:l.default.stationDetails},{children:[s.jsxs("div",e.__assign({className:l.default.stationHeaderRow},{children:[s.jsx("span",e.__assign({className:l.default.stationNameText},{children:t.stationName})),s.jsxs("span",e.__assign({className:l.default.learningsBadge},{children:[t.learningsCount," learnings"]}))]})),t.stationDesc&&s.jsx("span",e.__assign({className:l.default.stationDescText},{children:t.stationDesc}))]}))]})),s.jsxs("div",e.__assign({className:l.default.actionButtonsWrapper},{children:[s.jsx("button",e.__assign({onClick:function(){return null==_?void 0:_(t.stationId)},className:l.default.deleteBtn},{children:"Delete"})),s.jsx("button",e.__assign({onClick:function(){return null==p?void 0:p(t)},className:l.default.viewBtn},{children:"View"}))]}))]}),t.stationId)})}))}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("react"),a=require("lucide-react"),n=require("../components/ErrorStateDisplay.js"),i=require("../components/EmptyLearningState.js"),r=require("../store/useLearningTemplateStore.js"),l=require("../styles/StationsContent.module.css.js"),o=require("../RuleContent/RuleHeader.js"),c=require("../store/useLMSConfigStore.js");exports.default=function(d){d.scopeId;var u=d.scopeName,p=d.stations,f=void 0===p?[]:p,h=d.stationsCount,m=d.onViewStation;d.onDeleteStation;var _=t.useState(""),g=_[0],j=_[1],x=t.useState(f),v=x[0],N=x[1],S=t.useState(!1),y=S[0],D=S[1],w=t.useState(null),L=w[0],C=w[1],q=r.useLearningTemplateStore(function(e){return e.setStationModalOpen}),R=function(){D(!0),C(null);try{var e=g.toLowerCase(),s=f.filter(function(s){return s.stationName.toLowerCase().includes(e)});N(s)}catch(e){console.error("Failed to filter stations:",e),C("Failed to filter stations. Please try again.")}finally{D(!1)}};t.useEffect(function(){R()},[g,f]);var W=c.dt("middleDrawer.scopeDisplayLimit.title","Stations"),b=f.length||h||0;return s.jsxs("div",e.__assign({className:l.default.container},{children:[s.jsxs("div",{children:[s.jsx(o.default,{ruleSetName:"".concat(u," > ").concat(W," (").concat(b,")"),ruleSetDescription:c.interpolate(c.dt("middleDrawer.scopeDisplayLimit.description","Manage the stations assigned to the {scope} scope."),{scope:u}),onOnboardStation:function(){return q(!0)}}),s.jsx("div",e.__assign({className:l.default.searchBarWrapper},{children:s.jsxs("div",e.__assign({className:l.default.searchRelative},{children:[s.jsx("div",e.__assign({className:l.default.searchIconWrapper},{children:s.jsx(a.Search,{className:l.default.searchIcon})})),s.jsx("input",{type:"text",className:l.default.searchInput,placeholder:c.dt("middleDrawer.scopeDisplayLimit.searchPlaceholder","Search station..."),value:g,onChange:function(e){return j(e.target.value)}})]}))}))]}),s.jsx("div",e.__assign({className:l.default.contentArea},{children:y?s.jsx("div",e.__assign({className:l.default.loadingWrapper},{children:s.jsx("p",{children:"Loading stations..."})})):L?s.jsx(n.default,{errorMessage:L,onRetry:R}):0===f.length?s.jsx("div",e.__assign({className:l.default.emptyWrapper},{children:s.jsx(i.default,{title:"No stations in this scope yet!",desc:"Add stations to ".concat(u," to define which ones this scope applies to."),button:"Onboard a Station",onCreate:function(){return q(!0)}})})):0===v.length?s.jsx("div",e.__assign({className:l.default.noResultsWrapper},{children:s.jsx("p",{children:"No stations match your search query."})})):s.jsx("div",e.__assign({className:l.default.stationList},{children:v.map(function(t){return s.jsxs("div",e.__assign({className:l.default.stationCard},{children:[s.jsxs("div",e.__assign({className:l.default.stationCardLeft},{children:[s.jsx("div",e.__assign({className:l.default.stationIconWrapper},{children:s.jsx(a.RadioTower,{size:20})})),s.jsxs("div",e.__assign({className:l.default.stationDetails},{children:[s.jsxs("div",e.__assign({className:l.default.stationHeaderRow},{children:[s.jsx("span",e.__assign({className:l.default.stationNameText},{children:t.stationName})),s.jsxs("span",e.__assign({className:l.default.learningsBadge},{children:[t.learningsCount," learnings"]}))]})),t.stationDesc&&s.jsx("span",e.__assign({className:l.default.stationDescText},{children:t.stationDesc}))]}))]})),s.jsx("div",e.__assign({className:l.default.actionButtonsWrapper},{children:s.jsx("button",e.__assign({onClick:function(){return null==m?void 0:m(t)},className:l.default.viewBtn},{children:c.dt("middleDrawer.scopeDisplayLimit.viewText","View")}))}))]}),t.stationId)})}))}))]}))};
2
2
  //# sourceMappingURL=StationsContent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),o=require("lucide-react"),t=require("../../styles/ScopeTree.module.css.js"),d=require("./TreeNodeHeader.js"),r=require("./TreeAddAction.js"),a=require("../../store/useLMSConfigStore.js"),l=require("../../constants.js"),s=require("../../store/useLearningTemplateStore.js"),c=require("./TreeSectionItem.js"),u=function(p){var h,v,f,m,C=p.node,g=p.depth,_=void 0===g?0:g,b=p.nodePath,T=void 0===b?[]:b,D=p.expandedNodeIds,y=p.activeSelection,A=p.onToggleExpand,S=p.onSectionSelect,x=p.onNodeOptionsClick,E=p.onAddChild,j=p.onRenameChild,L=p.onDeleteChild,N=p.canDeleteScope,P=p.canEditScope,R=p.canCreateScope,I=p.searchQuery,k=p.sectionsConfig,q=void 0===k?[]:k,w=p.nodeTypesConfig,M=void 0===w?[]:w,V=p.forceVisible,H=void 0!==V&&V,W=p.compactView,O=void 0!==W&&W,Q=e.__spreadArray(e.__spreadArray([],T,!0),[C.id],!1),Y=D.has(C.id),F=s.useLearningTemplateStore.getState().backwardCompatibility,K=F||O,U=i.useState(!1),X=U[0],z=U[1],B=a.dt("".concat(l.MIDDLE_DRAWER_DT_PATH,".scope")),G=!!y&&y.nodePath[y.nodePath.length-1]===C.id,J=!!y&&(y.nodePath.includes(C.id)&&!G),Z=!!F||"true"===a.dt("".concat(l.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.enabled"),"false"),$=F?7:parseInt(a.dt("".concat(l.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.count"),"7"),10)||7,ee=C.children||[],ne=Z&&!I&&ee.length>$,ie=i.useRef(null);i.useEffect(function(){G&&ie.current&&ie.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[G]);var oe=i.useRef(X);i.useEffect(function(){oe.current=X},[X]),i.useEffect(function(){y&&ne&&!oe.current&&(ee.slice($).some(function(e){return y.nodePath.includes(e.id)})&&z(!0))},[y,ne,ee,$]);var te=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 te(e,n)})};if(!H&&!te(C,I||""))return null;var de=_>=M.length-1?M[M.length-1]:M[_],re=!!(null==de?void 0:de.addChildType),ae=K?q.filter(function(e){return"learnings"!==e.id&&"stations"!==e.id}).filter(function(e){return!e.isVisible||e.isVisible(C,_)}).map(function(e){return{label:e.label,icon:e.icon,onClick:function(){return S(Q,e.id)}}}):[],le=!N||N(C.id),se=!P||P(C.id),ce=!R||R(C.id),ue=C.children&&C.children.length>0,pe=!le||ue,he=le?ue?"This scope cannot be deleted because other scopes inherit learnings from it.":void 0:"You do not have permission to delete this scope.",ve=ce?void 0:"You do not have permission to add a scope here.",fe=!I||C.name.toLowerCase().includes(I.toLowerCase()),me=ne&&!X,Ce=ee.length-$,ge=me?ee.slice(0,$):ee;return n.jsxs("div",e.__assign({ref:ie,className:t.default.nodeWrapper,style:{"--tree-depth":_}},{children:[n.jsx(d.TreeNodeHeader,{nodeType:C.type,name:C.name,isExpanded:Y,isSelected:G,isAncestor:J,isExpandable:!!ue,childrenCount:null===(h=C.children)||void 0===h?void 0:h.length,learningsCount:K?null===(v=C.metrics)||void 0===v?void 0:v.learningsCount:void 0,onToggleExpand:function(e){e.stopPropagation(),A(C.id)},onClick:function(){S(Q,"learnings")},searchQuery:I,menuOptions:e.__spreadArray(e.__spreadArray(e.__spreadArray([],re?[{label:de.addChildLabel||"Add Child",icon:o.Plus,onClick:function(){return null==E?void 0:E(C.id,de.addChildType,C.name)},disabled:!ce,tooltip:ve}]:[],!0),[{label:"".concat(a.dt("".concat(l.MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH,".rename"),"Rename")),icon:o.Pencil,onClick:function(){return null==j?void 0:j(C.id,C.name)},disabled:!se||"station"===(null===(f=null==C?void 0:C.type)||void 0===f?void 0:f.toLocaleLowerCase()),tooltip:se?void 0:"You do not have permission to rename this scope."},{label:"station"===(null===(m=null==C?void 0:C.type)||void 0===m?void 0:m.toLowerCase())?"Delete Station":F?"Delete Scope":"".concat(a.dt("".concat(l.MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH,".delete"),"Delete ".concat((null==de?void 0:de.label)||"Node"),{scope:B})),icon:o.Trash2,onClick:function(){var e;return null==L?void 0:L(C.id,C.name,(null===(e=C.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:pe,tooltip:he,className:"text-red-500 hover:text-red-600 hover:bg-red-50"}],!1),ae,!0)}),Y&&n.jsxs("div",e.__assign({className:t.default.childrenWrapper},{children:[!K&&q.filter(function(e){return!e.isVisible||e.isVisible(C,_)}).map(function(e){var i;return n.jsx(c.TreeSectionItem,{icon:e.icon,label:e.label,badgeCount:e.badgeKey?null===(i=C.metrics)||void 0===i?void 0:i[e.badgeKey]:void 0,isActive:G&&(null==y?void 0:y.sectionId)===e.id,onClick:function(){return S(Q,e.id)}},"".concat(C.id,"-").concat(e.id))}),ge.map(function(e){return n.jsx(u,{node:e,depth:_+1,nodePath:Q,expandedNodeIds:D,activeSelection:y,onToggleExpand:A,onSectionSelect:S,onNodeOptionsClick:x,onAddChild:E,onRenameChild:j,onDeleteChild:L,canDeleteScope:N,canEditScope:P,canCreateScope:R,searchQuery:I,forceVisible:fe,sectionsConfig:q,nodeTypesConfig:M,compactView:K},e.id)}),ne&&n.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),z(function(e){var n=!e;return n&&S(Q,"stations"),n})},className:"".concat(t.default.addAction)},{children:X?n.jsx(n.Fragment,{children:n.jsx("span",{children:"Show less"})}):n.jsx(n.Fragment,{children:n.jsxs("span",e.__assign({style:{paddingLeft:"15px"}},{children:[Ce," more..."]}))})})),re&&!K&&n.jsx(r.TreeAddAction,{label:de.addChildLabel||"Add Child",onAdd:function(){return null==E?void 0:E(C.id,de.addChildType,C.name)},disabled:!ce,tooltip:ve})]}))]}))};exports.TreeNode=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),o=require("lucide-react"),t=require("../../styles/ScopeTree.module.css.js"),d=require("./TreeNodeHeader.js"),r=require("./TreeAddAction.js"),a=require("../../store/useLMSConfigStore.js"),l=require("../../constants.js"),s=require("../../store/useLearningTemplateStore.js"),c=require("./TreeSectionItem.js"),u=function(p){var h,v,f,m,C=p.node,_=p.depth,g=void 0===_?0:_,T=p.nodePath,b=void 0===T?[]:T,D=p.expandedNodeIds,A=p.activeSelection,y=p.onToggleExpand,E=p.onSectionSelect,x=p.onNodeOptionsClick,S=p.onAddChild,L=p.onRenameChild,j=p.onDeleteChild,P=p.canDeleteScope,R=p.canEditScope,N=p.canCreateScope,w=p.searchQuery,I=p.sectionsConfig,k=void 0===I?[]:I,q=p.nodeTypesConfig,M=void 0===q?[]:q,V=p.forceVisible,H=void 0!==V&&V,W=p.compactView,O=void 0!==W&&W,Q=e.__spreadArray(e.__spreadArray([],b,!0),[C.id],!1),Y=D.has(C.id),F=s.useLearningTemplateStore.getState().backwardCompatibility,K=F||O,U=i.useState(!1),X=U[0],z=U[1],B=a.dt("".concat(l.MIDDLE_DRAWER_DT_PATH,".scope")),G=!!A&&A.nodePath[A.nodePath.length-1]===C.id,J=!!A&&(A.nodePath.includes(C.id)&&!G),Z=!!F||"true"===a.dt("".concat(l.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.enabled"),"false"),$=F?7:parseInt(a.dt("".concat(l.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.count"),"7"),10)||7,ee=C.children||[],ne=Z&&!w&&ee.length>$,ie=i.useRef(null);i.useEffect(function(){G&&ie.current&&ie.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[G]);var oe=i.useRef(X);i.useEffect(function(){oe.current=X},[X]),i.useEffect(function(){A&&ne&&!oe.current&&(ee.slice($).some(function(e){return A.nodePath.includes(e.id)})&&z(!0))},[A,ne,ee,$]);var te=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 te(e,n)})};if(!H&&!te(C,w||""))return null;var de=g>=M.length-1?M[M.length-1]:M[g],re=!!(null==de?void 0:de.addChildType),ae=K?k.filter(function(e){return"learnings"!==e.id&&"stations"!==e.id}).filter(function(e){return!e.isVisible||e.isVisible(C,g)}).map(function(e){return{label:e.label,icon:e.icon,onClick:function(){return E(Q,e.id)}}}):[],le=!P||P(C.id),se=!R||R(C.id),ce=!N||N(C.id),ue=C.children&&C.children.length>0,pe=!le||ue,he=le?ue?"This scope cannot be deleted because other scopes inherit learnings from it.":void 0:"You do not have permission to delete this scope.",ve=ce?void 0:"You do not have permission to add a scope here.",fe=!w||C.name.toLowerCase().includes(w.toLowerCase()),me=ne&&!X,Ce=ee.length-$,_e=me?ee.slice(0,$):ee;return n.jsxs("div",e.__assign({ref:ie,className:t.default.nodeWrapper,style:{"--tree-depth":g}},{children:[n.jsx(d.TreeNodeHeader,{nodeType:C.type,name:C.name,isExpanded:Y,isSelected:G,isAncestor:J,isExpandable:!!ue,childrenCount:null===(h=C.children)||void 0===h?void 0:h.length,learningsCount:K?null===(v=C.metrics)||void 0===v?void 0:v.learningsCount:void 0,isCompactView:K,onToggleExpand:function(e){e.stopPropagation(),y(C.id)},onClick:function(){E(Q,"learnings")},searchQuery:w,menuOptions:e.__spreadArray(e.__spreadArray(e.__spreadArray([],re?[{label:de.addChildLabel||"Add Child",icon:o.Plus,onClick:function(){return null==S?void 0:S(C.id,de.addChildType,C.name)},disabled:!ce,tooltip:ve}]:[],!0),[{label:"".concat(a.dt("".concat(l.MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH,".rename"),"Rename")),icon:o.Pencil,onClick:function(){return null==L?void 0:L(C.id,C.name)},disabled:!se||"station"===(null===(f=null==C?void 0:C.type)||void 0===f?void 0:f.toLocaleLowerCase()),tooltip:se?void 0:"You do not have permission to rename this scope."},{label:"station"===(null===(m=null==C?void 0:C.type)||void 0===m?void 0:m.toLowerCase())?"Delete Station":F?"Delete Scope":"".concat(a.dt("".concat(l.MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH,".delete"),"Delete ".concat((null==de?void 0:de.label)||"Node"),{scope:B})),icon:o.Trash2,onClick:function(){var e;return null==j?void 0:j(C.id,C.name,(null===(e=C.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:pe,tooltip:he,className:"text-red-500 hover:text-red-600 hover:bg-red-50"}],!1),ae,!0)}),Y&&n.jsxs("div",e.__assign({className:t.default.childrenWrapper},{children:[!K&&k.filter(function(e){return!e.isVisible||e.isVisible(C,g)}).map(function(e){var i;return n.jsx(c.TreeSectionItem,{icon:e.icon,label:e.label,badgeCount:e.badgeKey?null===(i=C.metrics)||void 0===i?void 0:i[e.badgeKey]:void 0,isActive:G&&(null==A?void 0:A.sectionId)===e.id,onClick:function(){return E(Q,e.id)}},"".concat(C.id,"-").concat(e.id))}),_e.map(function(e){return n.jsx(u,{node:e,depth:g+1,nodePath:Q,expandedNodeIds:D,activeSelection:A,onToggleExpand:y,onSectionSelect:E,onNodeOptionsClick:x,onAddChild:S,onRenameChild:L,onDeleteChild:j,canDeleteScope:P,canEditScope:R,canCreateScope:N,searchQuery:w,forceVisible:fe,sectionsConfig:k,nodeTypesConfig:M,compactView:K},e.id)}),ne&&n.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),z(function(e){var n=!e;return n&&E(Q,"stations"),n})},className:"".concat(t.default.addAction)},{children:X?n.jsx(n.Fragment,{children:n.jsx("span",{children:"Show less"})}):n.jsx(n.Fragment,{children:n.jsx("span",e.__assign({style:{paddingLeft:"15px"}},{children:a.interpolate(a.dt("".concat(l.MIDDLE_DRAWER_DT_PATH,".scopeDisplayLimit.viewMoreText"),"{count} more..."),{count:Ce})}))})})),re&&!K&&n.jsx(r.TreeAddAction,{label:de.addChildLabel||"Add Child",onAdd:function(){return null==S?void 0:S(C.id,de.addChildType,C.name)},disabled:!ce,tooltip:ve})]}))]}))};exports.TreeNode=u;
2
2
  //# sourceMappingURL=TreeNode.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("lucide-react"),o=require("../../styles/ScopeTree.module.css.js"),s=require("./TreeMenu.js"),a=require("./HighlightedText.js");exports.TreeNodeHeader=function(r){var i=r.name,d=r.isExpanded,c=r.isSelected,l=r.isAncestor,u=r.isExpandable,h=void 0===u||u,x=r.onToggleExpand,g=r.onClick,f=r.menuOptions,p=r.searchQuery,j=r.childrenCount,v=r.learningsCount,_=r.nodeType,b=c?o.default.nodeHeaderSelected:l?o.default.nodeHeaderAncestor:"",m=c||l;return n.jsxs("div",e.__assign({className:"".concat(o.default.nodeHeader," ").concat(b),onClick:g,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),g())}},{children:[n.jsx("div",e.__assign({className:"".concat(o.default.chevron," ").concat(d?o.default.chevronExpanded:""," ").concat(h?"":o.default.chevronHidden),onClick:function(e){h&&x(e)},role:"button",tabIndex:h?0:-1},{children:n.jsx(t.ChevronDown,{size:16,strokeWidth:m?2.5:2,color:m?"#2563EB":"#64748B"})})),n.jsx("div",e.__assign({className:o.default.folderIcon},{children:"station"===(null==_?void 0:_.toLocaleLowerCase())?n.jsx(t.RadioTower,{size:18,strokeWidth:m?2.5:2,color:m?"currentColor":"#64748B"}):n.jsx(t.FolderOpen,{size:18,strokeWidth:m?2.5:2,color:m?"currentColor":"#64748B"})})),n.jsx("span",e.__assign({className:o.default.nodeName},{children:n.jsx(a.HighlightedText,{text:i,highlight:p})})),void 0!==j&&j>0?n.jsx("span",e.__assign({className:"".concat(o.default.badge," ").concat(c?o.default.badgeActive:"")},{children:j})):n.jsx("span",e.__assign({className:"".concat(o.default.badge," ").concat(c?o.default.badgeActive:"")},{children:null!=v?v:0})),f&&f.length>0&&n.jsx("div",e.__assign({onClick:function(e){return e.stopPropagation()}},{children:n.jsx(s.TreeMenu,{options:f,buttonClassName:o.default.optionsButton,iconSize:16})}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("lucide-react"),o=require("../../styles/ScopeTree.module.css.js"),s=require("./TreeMenu.js"),a=require("./HighlightedText.js");exports.TreeNodeHeader=function(i){var r=i.name,d=i.isExpanded,c=i.isSelected,l=i.isAncestor,u=i.isExpandable,h=void 0===u||u,x=i.onToggleExpand,g=i.onClick,f=i.menuOptions,p=i.searchQuery,v=i.childrenCount,j=i.learningsCount,_=i.nodeType,m=i.isCompactView,b=void 0!==m&&m,C=c?o.default.nodeHeaderSelected:l?o.default.nodeHeaderAncestor:"",k=c||l;return n.jsxs("div",e.__assign({className:"".concat(o.default.nodeHeader," ").concat(C),onClick:g,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),g())}},{children:[n.jsx("div",e.__assign({className:"".concat(o.default.chevron," ").concat(d?o.default.chevronExpanded:""," ").concat(h?"":o.default.chevronHidden),onClick:function(e){h&&x(e)},role:"button",tabIndex:h?0:-1},{children:n.jsx(t.ChevronDown,{size:16,strokeWidth:k?2.5:2,color:k?"#2563EB":"#64748B"})})),n.jsx("div",e.__assign({className:o.default.folderIcon},{children:"station"===(null==_?void 0:_.toLocaleLowerCase())?n.jsx(t.RadioTower,{size:18,strokeWidth:k?2.5:2,color:k?"currentColor":"#64748B"}):n.jsx(t.FolderOpen,{size:18,strokeWidth:k?2.5:2,color:k?"currentColor":"#64748B"})})),n.jsx("span",e.__assign({className:o.default.nodeName},{children:n.jsx(a.HighlightedText,{text:r,highlight:p})})),void 0!==v&&v>0?n.jsx("span",e.__assign({className:"".concat(o.default.badge," ").concat(c?o.default.badgeActive:"")},{children:v})):b?n.jsx("span",e.__assign({className:"".concat(o.default.badge," ").concat(c?o.default.badgeActive:"")},{children:null!=j?j:0})):null,f&&f.length>0&&n.jsx("div",e.__assign({onClick:function(e){return e.stopPropagation()}},{children:n.jsx(s.TreeMenu,{options:f,buttonClassName:o.default.optionsButton,iconSize:16})}))]}))};
2
2
  //# sourceMappingURL=TreeNodeHeader.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("zustand"),t=require("./useLearningTemplateStore.js"),n={pageTitle:"",middleDrawer:{scope:"",addScope:"",addSubScope:"",addScopeDialog:{title:"",globalTitle:"",subtitle:"",globalSubtitle:"",scopeName:"",learningApprovalSettings:{title:"",approvalRequired:{title:"",subtitle:""},publishWithoutApproval:{title:"",subtitle:""}},submitButton:"",cancel:""},treeMenu:{search:"",submenu:{learnings:"",access:"",changeHistory:""},contextMenu:{addScope:"",rename:"",delete:"",addSubScope:""}},scopeDisplayLimit:{enabled:"",count:"",compactView:"false"}},learnings:{header:{title:"",exportButton:"",addNewLearningButton:""},tier:{showTierHeader:!0,tierHeader:"",subtitle:"",tierHeaderNoOfLearnings:"",deleteDialog:{title:"",description:"",cancel:"",submit:""},learning:{inheritance:"",actions:{disable:"",enable:"",approve:"",reject:"",delete:""},approveDialog:{title:"",desc:"",footer:"",cancel:"",approveLearning:""},rejectDialog:{title:"",desc:"",feedbackTitle:"",feedbackPlaceholder:"",deleteCheckboxLabel:"",cancel:"",rejectLearning:""},deleteDialog:{title:"",desc:"",warningText:"",cancelText:"",deleteText:""}}}},emptyStateLearning:{title:"",desc:"",createNewLearning:"",createGlobalScope:"",noAccessTitle:"",noAccessDesc:"",requestAccessButton:"",requestSentButton:""},agents:{LearningTerm:""}},a={showScope:!1,showConfiguration:!1,welcomeMessage:"Hi! 👋 I'm your Instant Learning Concierge.",welcomeMessageSubtitle:"How would you like to get started? You can select an option below or describe the rule you'd like to create.",actions:[{label:"Separation rule",value:"I would want to add a separation rule"},{label:"Max priority rule",value:"I would want to set a max priority rule"},{label:"Break code matching",value:"I would want to add a break code matching rule"},{label:"Inventory code matching",value:"I would want to add a inventory window matching rule"},{label:"Enter a rule description",value:"I want to add a rule description"},{label:"Tester Genie",value:"Loading prompt..."}],chatTitle:"Teach Me OTJ - {scope} - Add Learning",chatTitleEdit:"Teach Me OTJ - {scope} - Edit Learning",formTitle:"Rule setup",setupLabel:"Configure your IL",ruleTitle:"Main Rule Name",scopeLabel:"Define Scope",tierLabel:"Select Tiers",ruleDescriptionTitle:"Learning Explanation",whenToApplyTitle:"Trigger Events (When to Apply)",addWhenToApplyBtnLabel:"Add WTA",whenNotToApplyTitle:"Exclusion Events (When NOT to Apply)",addWhenNotToApplyBtnLabel:"Add WNTA",configTitle:"Advanced Settings",saveBtnLabel:"Save Rule",saveBtnLoadingLabel:"Saving Rule...",chatTextareaPlaceholder:"Tell me more about this learning.."},l=e.create(function(e){return{lmsConfig:n,setLMSConfig:function(t){return e({lmsConfig:t})},clearLMSConfig:function(){return e({lmsConfig:n})}}});var i=e.create(function(e){return{teachMeConfig:null,setTeachMeConfig:function(t){return e({teachMeConfig:t})},clearTeachMeConfig:function(){return e({teachMeConfig:null})}}});exports.defaultLMSConfig=n,exports.defaultTeachMeConfig=a,exports.dt=function(e,n,a){if(t.useLearningTemplateStore.getState().backwardCompatibility)return null!=n?n:"";var i=l.getState().lmsConfig,o=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},i);return"string"!=typeof o||""===o?null!=n?n:e:o.replace(/\{(\w+)\}/g,function(e,t){var n;return String(null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"{".concat(t,"}"))})},exports.dtt=function(e,t,n){var a=i.getState().teachMeConfig,l=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},a);return"string"!=typeof l?null!=t?t:e:l.replace(/\{(\w+)\}/g,function(e,t){var a;return String(null!==(a=null==n?void 0:n[t])&&void 0!==a?a:"{".concat(t,"}"))})},exports.dttWelcomeMessageParts=function(){var e,t,n=null!==(e=i.getState().teachMeConfig)&&void 0!==e?e:a;return{greeting:n.welcomeMessage||a.welcomeMessage,subtitle:n.welcomeMessageSubtitle||a.welcomeMessageSubtitle,actions:(null===(t=n.actions)||void 0===t?void 0:t.length)?n.actions:a.actions}},exports.useLMSConfigStore=l,exports.useTeachMeConfigStore=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("zustand"),t=require("./useLearningTemplateStore.js"),n={pageTitle:"",middleDrawer:{scope:"",addScope:"",addSubScope:"",addScopeDialog:{title:"",globalTitle:"",subtitle:"",globalSubtitle:"",scopeName:"",learningApprovalSettings:{title:"",approvalRequired:{title:"",subtitle:""},publishWithoutApproval:{title:"",subtitle:""}},submitButton:"",cancel:""},treeMenu:{search:"",submenu:{learnings:"",access:"",changeHistory:""},contextMenu:{addScope:"",rename:"",delete:"",addSubScope:""}},scopeDisplayLimit:{enabled:"",count:"",compactView:"false",applyToLevels:"",viewMoreText:"",title:"",description:"",searchPlaceholder:"",onboardBtn:"",viewText:""}},learnings:{header:{title:"",exportButton:"",addNewLearningButton:""},tier:{showTierHeader:!0,tierHeader:"",subtitle:"",tierHeaderNoOfLearnings:"",deleteDialog:{title:"",description:"",cancel:"",submit:""},learning:{inheritance:"",actions:{disable:"",enable:"",approve:"",reject:"",delete:""},approveDialog:{title:"",desc:"",footer:"",cancel:"",approveLearning:""},rejectDialog:{title:"",desc:"",feedbackTitle:"",feedbackPlaceholder:"",deleteCheckboxLabel:"",cancel:"",rejectLearning:""},deleteDialog:{title:"",desc:"",warningText:"",cancelText:"",deleteText:""}}}},emptyStateLearning:{title:"",desc:"",createNewLearning:"",createGlobalScope:"",noAccessTitle:"",noAccessDesc:"",requestAccessButton:"",requestSentButton:""},agents:{LearningTerm:""}},a={showScope:!1,showConfiguration:!1,welcomeMessage:"Hi! 👋 I'm your Instant Learning Concierge.",welcomeMessageSubtitle:"How would you like to get started? You can select an option below or describe the rule you'd like to create.",actions:[{label:"Separation rule",value:"I would want to add a separation rule"},{label:"Max priority rule",value:"I would want to set a max priority rule"},{label:"Break code matching",value:"I would want to add a break code matching rule"},{label:"Inventory code matching",value:"I would want to add a inventory window matching rule"},{label:"Enter a rule description",value:"I want to add a rule description"},{label:"Tester Genie",value:"Loading prompt..."}],chatTitle:"Teach Me OTJ - {scope} - Add Learning",chatTitleEdit:"Teach Me OTJ - {scope} - Edit Learning",formTitle:"Rule setup",setupLabel:"Configure your IL",ruleTitle:"Main Rule Name",scopeLabel:"Define Scope",tierLabel:"Select Tiers",ruleDescriptionTitle:"Learning Explanation",whenToApplyTitle:"Trigger Events (When to Apply)",addWhenToApplyBtnLabel:"Add WTA",whenNotToApplyTitle:"Exclusion Events (When NOT to Apply)",addWhenNotToApplyBtnLabel:"Add WNTA",configTitle:"Advanced Settings",saveBtnLabel:"Save Rule",saveBtnLoadingLabel:"Saving Rule...",chatTextareaPlaceholder:"Tell me more about this learning.."},l=e.create(function(e){return{lmsConfig:n,setLMSConfig:function(t){return e({lmsConfig:t})},clearLMSConfig:function(){return e({lmsConfig:n})}}});var o=e.create(function(e){return{teachMeConfig:null,setTeachMeConfig:function(t){return e({teachMeConfig:t})},clearTeachMeConfig:function(){return e({teachMeConfig:null})}}});exports.defaultLMSConfig=n,exports.defaultTeachMeConfig=a,exports.dt=function(e,n,a){if(t.useLearningTemplateStore.getState().backwardCompatibility)return null!=n?n:"";var o=l.getState().lmsConfig,i=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},o);return"string"!=typeof i||""===i?null!=n?n:e:i.replace(/\{(\w+)\}/g,function(e,t){var n;return String(null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"{".concat(t,"}"))})},exports.dtt=function(e,t,n){var a=o.getState().teachMeConfig,l=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},a);return"string"!=typeof l?null!=t?t:e:l.replace(/\{(\w+)\}/g,function(e,t){var a;return String(null!==(a=null==n?void 0:n[t])&&void 0!==a?a:"{".concat(t,"}"))})},exports.dttWelcomeMessageParts=function(){var e,t,n=null!==(e=o.getState().teachMeConfig)&&void 0!==e?e:a;return{greeting:n.welcomeMessage||a.welcomeMessage,subtitle:n.welcomeMessageSubtitle||a.welcomeMessageSubtitle,actions:(null===(t=n.actions)||void 0===t?void 0:t.length)?n.actions:a.actions}},exports.interpolate=function(e,t){return e.replace(/\{(\w+)\}/g,function(e,n){var a;return String(null!==(a=null==t?void 0:t[n])&&void 0!==a?a:"{".concat(n,"}"))})},exports.useLMSConfigStore=l,exports.useTeachMeConfigStore=o;
2
2
  //# sourceMappingURL=useLMSConfigStore.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{Download as o,Plus as a}from"lucide-react";import t from"../styles/RuleHeader.module.css.js";import{usePermissionsStore as n}from"../store/usePermissionsStore.js";import{dt as l}from"../store/useLMSConfigStore.js";var s=function(s){var d=s.onAddRule,u=s.onOnboardStation,c=s.onExport,m=s.isExporting,p=void 0!==m&&m,b=s.ruleSetId,f=s.ruleSetName,g=s.ruleSetDescription,v=s.isGlobal,h=void 0!==v&&v,x=s.globalLabel,N=void 0===x?l("learnings.globalLearning.globalLabel","Global Learnings ( Default )"):x;s.addExemptionLabel;var L=s.addNewRuleLabel,S=void 0===L?l("learnings.header.addNewLearningButton","Add New Learning"):L,j=n(function(e){return e.hasPermission});if(!f&&!h)return null;var B=h?N:f,E=j("ilotj.rule.create",b||void 0),R=j("ilotj.rule.variant.create",b||void 0),C=E||R;return r("div",e({className:t.container},{children:[r("div",e({className:t.info},{children:[i("h1",{children:B}),g&&i("p",e({className:t.description},{children:g}))]})),r("div",e({className:t.actions,style:{display:"flex",gap:"8px"}},{children:[c&&r("button",e({onClick:c,disabled:p,className:t.exportButton},{children:[i(o,{size:14}),p?"Exporting...":l("learnings.header.exportButton","Export")]})),C&&d&&r("button",e({onClick:d,className:t.addRuleButton},{children:[i(a,{size:14}),S]})),u&&r("button",e({onClick:u,className:t.addRuleButton},{children:[i(a,{size:14}),"Onboard a station"]}))]}))]}))};export{s as default};
1
+ import{__assign as e}from"tslib";import{jsxs as o,jsx as r}from"react/jsx-runtime";import{Download as i,Plus as a}from"lucide-react";import t from"../styles/RuleHeader.module.css.js";import{usePermissionsStore as n}from"../store/usePermissionsStore.js";import{dt as l}from"../store/useLMSConfigStore.js";var s=function(s){var d=s.onAddRule,c=s.onOnboardStation,u=s.onExport,m=s.isExporting,p=void 0!==m&&m,b=s.ruleSetId,v=s.ruleSetName,f=s.ruleSetDescription,g=s.isGlobal,h=void 0!==g&&g,x=s.globalLabel,L=void 0===x?l("learnings.globalLearning.globalLabel","Global Learnings ( Default )"):x;s.addExemptionLabel;var N=s.addNewRuleLabel,S=void 0===N?l("learnings.header.addNewLearningButton","Add New Learning"):N,j=s.onboardStationLabel,B=void 0===j?l("middleDrawer.scopeDisplayLimit.onboardBtn","Onboard a station"):j,E=n(function(e){return e.hasPermission});if(!v&&!h)return null;var R=h?L:v,w=E("ilotj.rule.create",b||void 0),y=E("ilotj.rule.variant.create",b||void 0),C=w||y;return o("div",e({className:t.container},{children:[o("div",e({className:t.info},{children:[r("h1",{children:R}),f&&r("p",e({className:t.description},{children:f}))]})),o("div",e({className:t.actions,style:{display:"flex",gap:"8px"}},{children:[u&&o("button",e({onClick:u,disabled:p,className:t.exportButton},{children:[r(i,{size:14}),p?"Exporting...":l("learnings.header.exportButton","Export")]})),C&&d&&o("button",e({onClick:d,className:t.addRuleButton},{children:[r(a,{size:14}),S]})),c&&o("button",e({onClick:c,className:t.addRuleButton},{children:[r(a,{size:14}),B]}))]}))]}))};export{s as default};
2
2
  //# sourceMappingURL=RuleHeader.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useState as a,useEffect as s}from"react";import{Search as i,RadioTower as o}from"lucide-react";import r from"../components/ErrorStateDisplay.js";import c from"../components/EmptyLearningState.js";import{useLearningTemplateStore as l}from"../store/useLearningTemplateStore.js";import d from"../styles/StationsContent.module.css.js";import m from"../RuleContent/RuleHeader.js";var p=function(p){p.scopeId;var u=p.scopeName,h=p.stations,N=void 0===h?[]:h,f=p.stationsCount,v=p.onViewStation,g=p.onDeleteStation,S=a(""),y=S[0],C=S[1],D=a(N),w=D[0],I=D[1],L=a(!1),W=L[0],b=L[1],j=a(null),R=j[0],x=j[1],B=l(function(e){return e.setStationModalOpen}),M=function(){b(!0),x(null);try{var e=y.toLowerCase(),t=N.filter(function(t){return t.stationName.toLowerCase().includes(e)});I(t)}catch(e){console.error("Failed to filter stations:",e),x("Failed to filter stations. Please try again.")}finally{b(!1)}};return s(function(){M()},[y,N]),t("div",e({className:d.container},{children:[t("div",{children:[n(m,{ruleSetName:"".concat(u," > Stations (").concat(N.length||f||0,")"),ruleSetDescription:"Manage the stations assigned to the ".concat(u," scope."),onOnboardStation:function(){return B(!0)}}),n("div",e({className:d.searchBarWrapper},{children:t("div",e({className:d.searchRelative},{children:[n("div",e({className:d.searchIconWrapper},{children:n(i,{className:d.searchIcon})})),n("input",{type:"text",className:d.searchInput,placeholder:"Search station...",value:y,onChange:function(e){return C(e.target.value)}})]}))}))]}),n("div",e({className:d.contentArea},{children:W?n("div",e({className:d.loadingWrapper},{children:n("p",{children:"Loading stations..."})})):R?n(r,{errorMessage:R,onRetry:M}):0===N.length?n("div",e({className:d.emptyWrapper},{children:n(c,{title:"No stations in this scope yet!",desc:"Add stations to ".concat(u," to define which ones this scope applies to."),button:"Onboard a Station",onCreate:function(){return B(!0)}})})):0===w.length?n("div",e({className:d.noResultsWrapper},{children:n("p",{children:"No stations match your search query."})})):n("div",e({className:d.stationList},{children:w.map(function(a){return t("div",e({className:d.stationCard},{children:[t("div",e({className:d.stationCardLeft},{children:[n("div",e({className:d.stationIconWrapper},{children:n(o,{size:20})})),t("div",e({className:d.stationDetails},{children:[t("div",e({className:d.stationHeaderRow},{children:[n("span",e({className:d.stationNameText},{children:a.stationName})),t("span",e({className:d.learningsBadge},{children:[a.learningsCount," learnings"]}))]})),a.stationDesc&&n("span",e({className:d.stationDescText},{children:a.stationDesc}))]}))]})),t("div",e({className:d.actionButtonsWrapper},{children:[n("button",e({onClick:function(){return null==g?void 0:g(a.stationId)},className:d.deleteBtn},{children:"Delete"})),n("button",e({onClick:function(){return null==v?void 0:v(a)},className:d.viewBtn},{children:"View"}))]}))]}),a.stationId)})}))}))]}))};export{p as default};
1
+ import{__assign as e}from"tslib";import{jsxs as t,jsx as a}from"react/jsx-runtime";import{useState as n,useEffect as i}from"react";import{Search as s,RadioTower as r}from"lucide-react";import o from"../components/ErrorStateDisplay.js";import c from"../components/EmptyLearningState.js";import{useLearningTemplateStore as l}from"../store/useLearningTemplateStore.js";import d from"../styles/StationsContent.module.css.js";import m from"../RuleContent/RuleHeader.js";import{dt as p,interpolate as h}from"../store/useLMSConfigStore.js";var u=function(u){u.scopeId;var f=u.scopeName,v=u.stations,N=void 0===v?[]:v,g=u.stationsCount,y=u.onViewStation;u.onDeleteStation;var D=n(""),S=D[0],w=D[1],C=n(N),L=C[0],j=C[1],W=n(!1),x=W[0],I=W[1],R=n(null),b=R[0],B=R[1],M=l(function(e){return e.setStationModalOpen}),T=function(){I(!0),B(null);try{var e=S.toLowerCase(),t=N.filter(function(t){return t.stationName.toLowerCase().includes(e)});j(t)}catch(e){console.error("Failed to filter stations:",e),B("Failed to filter stations. Please try again.")}finally{I(!1)}};i(function(){T()},[S,N]);var O=p("middleDrawer.scopeDisplayLimit.title","Stations"),A=N.length||g||0;return t("div",e({className:d.container},{children:[t("div",{children:[a(m,{ruleSetName:"".concat(f," > ").concat(O," (").concat(A,")"),ruleSetDescription:h(p("middleDrawer.scopeDisplayLimit.description","Manage the stations assigned to the {scope} scope."),{scope:f}),onOnboardStation:function(){return M(!0)}}),a("div",e({className:d.searchBarWrapper},{children:t("div",e({className:d.searchRelative},{children:[a("div",e({className:d.searchIconWrapper},{children:a(s,{className:d.searchIcon})})),a("input",{type:"text",className:d.searchInput,placeholder:p("middleDrawer.scopeDisplayLimit.searchPlaceholder","Search station..."),value:S,onChange:function(e){return w(e.target.value)}})]}))}))]}),a("div",e({className:d.contentArea},{children:x?a("div",e({className:d.loadingWrapper},{children:a("p",{children:"Loading stations..."})})):b?a(o,{errorMessage:b,onRetry:T}):0===N.length?a("div",e({className:d.emptyWrapper},{children:a(c,{title:"No stations in this scope yet!",desc:"Add stations to ".concat(f," to define which ones this scope applies to."),button:"Onboard a Station",onCreate:function(){return M(!0)}})})):0===L.length?a("div",e({className:d.noResultsWrapper},{children:a("p",{children:"No stations match your search query."})})):a("div",e({className:d.stationList},{children:L.map(function(n){return t("div",e({className:d.stationCard},{children:[t("div",e({className:d.stationCardLeft},{children:[a("div",e({className:d.stationIconWrapper},{children:a(r,{size:20})})),t("div",e({className:d.stationDetails},{children:[t("div",e({className:d.stationHeaderRow},{children:[a("span",e({className:d.stationNameText},{children:n.stationName})),t("span",e({className:d.learningsBadge},{children:[n.learningsCount," learnings"]}))]})),n.stationDesc&&a("span",e({className:d.stationDescText},{children:n.stationDesc}))]}))]})),a("div",e({className:d.actionButtonsWrapper},{children:a("button",e({onClick:function(){return null==y?void 0:y(n)},className:d.viewBtn},{children:p("middleDrawer.scopeDisplayLimit.viewText","View")}))}))]}),n.stationId)})}))}))]}))};export{u as default};
2
2
  //# sourceMappingURL=StationsContent.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as n}from"tslib";import{jsxs as o,jsx as i,Fragment as t}from"react/jsx-runtime";import{useState as d,useRef as l,useEffect as r}from"react";import{Plus as c,Pencil as a,Trash2 as s}from"lucide-react";import u from"../../styles/ScopeTree.module.css.js";import{TreeNodeHeader as p}from"./TreeNodeHeader.js";import{TreeAddAction as m}from"./TreeAddAction.js";import{dt as h}from"../../store/useLMSConfigStore.js";import{MIDDLE_DRAWER_DT_PATH as v,MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH as f}from"../../constants.js";import{useLearningTemplateStore as C}from"../../store/useLearningTemplateStore.js";import{TreeSectionItem as b}from"./TreeSectionItem.js";var g=function(S){var y,T,L,x,k=S.node,w=S.depth,A=void 0===w?0:w,N=S.nodePath,D=void 0===N?[]:N,V=S.expandedNodeIds,j=S.activeSelection,P=S.onToggleExpand,E=S.onSectionSelect,I=S.onNodeOptionsClick,O=S.onAddChild,Q=S.onRenameChild,R=S.onDeleteChild,Y=S.canDeleteScope,K=S.canEditScope,W=S.canCreateScope,H=S.searchQuery,M=S.sectionsConfig,q=void 0===M?[]:M,z=S.nodeTypesConfig,B=void 0===z?[]:z,F=S.forceVisible,G=void 0!==F&&F,J=S.compactView,U=void 0!==J&&J,X=e(e([],D,!0),[k.id],!1),Z=V.has(k.id),$=C.getState().backwardCompatibility,_=$||U,ee=d(!1),ne=ee[0],oe=ee[1],ie=h("".concat(v,".scope")),te=!!j&&j.nodePath[j.nodePath.length-1]===k.id,de=!!j&&(j.nodePath.includes(k.id)&&!te),le=!!$||"true"===h("".concat(v,".scopeDisplayLimit.enabled"),"false"),re=$?7:parseInt(h("".concat(v,".scopeDisplayLimit.count"),"7"),10)||7,ce=k.children||[],ae=le&&!H&&ce.length>re,se=l(null);r(function(){te&&se.current&&se.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[te]);var ue=l(ne);r(function(){ue.current=ne},[ne]),r(function(){j&&ae&&!ue.current&&(ce.slice(re).some(function(e){return j.nodePath.includes(e.id)})&&oe(!0))},[j,ae,ce,re]);var pe=function(e,n){if(!n)return!0;var o=n.toLowerCase();return!!e.name.toLowerCase().includes(o)||!!e.children&&e.children.some(function(e){return pe(e,n)})};if(!G&&!pe(k,H||""))return null;var me=A>=B.length-1?B[B.length-1]:B[A],he=!!(null==me?void 0:me.addChildType),ve=_?q.filter(function(e){return"learnings"!==e.id&&"stations"!==e.id}).filter(function(e){return!e.isVisible||e.isVisible(k,A)}).map(function(e){return{label:e.label,icon:e.icon,onClick:function(){return E(X,e.id)}}}):[],fe=!Y||Y(k.id),Ce=!K||K(k.id),be=!W||W(k.id),ge=k.children&&k.children.length>0,Se=!fe||ge,ye=fe?ge?"This scope cannot be deleted because other scopes inherit learnings from it.":void 0:"You do not have permission to delete this scope.",Te=be?void 0:"You do not have permission to add a scope here.",Le=!H||k.name.toLowerCase().includes(H.toLowerCase()),xe=ae&&!ne,ke=ce.length-re,we=xe?ce.slice(0,re):ce;return o("div",n({ref:se,className:u.nodeWrapper,style:{"--tree-depth":A}},{children:[i(p,{nodeType:k.type,name:k.name,isExpanded:Z,isSelected:te,isAncestor:de,isExpandable:!!ge,childrenCount:null===(y=k.children)||void 0===y?void 0:y.length,learningsCount:_?null===(T=k.metrics)||void 0===T?void 0:T.learningsCount:void 0,onToggleExpand:function(e){e.stopPropagation(),P(k.id)},onClick:function(){E(X,"learnings")},searchQuery:H,menuOptions:e(e(e([],he?[{label:me.addChildLabel||"Add Child",icon:c,onClick:function(){return null==O?void 0:O(k.id,me.addChildType,k.name)},disabled:!be,tooltip:Te}]:[],!0),[{label:"".concat(h("".concat(f,".rename"),"Rename")),icon:a,onClick:function(){return null==Q?void 0:Q(k.id,k.name)},disabled:!Ce||"station"===(null===(L=null==k?void 0:k.type)||void 0===L?void 0:L.toLocaleLowerCase()),tooltip:Ce?void 0:"You do not have permission to rename this scope."},{label:"station"===(null===(x=null==k?void 0:k.type)||void 0===x?void 0:x.toLowerCase())?"Delete Station":$?"Delete Scope":"".concat(h("".concat(f,".delete"),"Delete ".concat((null==me?void 0:me.label)||"Node"),{scope:ie})),icon:s,onClick:function(){var e;return null==R?void 0:R(k.id,k.name,(null===(e=k.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:Se,tooltip:ye,className:"text-red-500 hover:text-red-600 hover:bg-red-50"}],!1),ve,!0)}),Z&&o("div",n({className:u.childrenWrapper},{children:[!_&&q.filter(function(e){return!e.isVisible||e.isVisible(k,A)}).map(function(e){var n;return i(b,{icon:e.icon,label:e.label,badgeCount:e.badgeKey?null===(n=k.metrics)||void 0===n?void 0:n[e.badgeKey]:void 0,isActive:te&&(null==j?void 0:j.sectionId)===e.id,onClick:function(){return E(X,e.id)}},"".concat(k.id,"-").concat(e.id))}),we.map(function(e){return i(g,{node:e,depth:A+1,nodePath:X,expandedNodeIds:V,activeSelection:j,onToggleExpand:P,onSectionSelect:E,onNodeOptionsClick:I,onAddChild:O,onRenameChild:Q,onDeleteChild:R,canDeleteScope:Y,canEditScope:K,canCreateScope:W,searchQuery:H,forceVisible:Le,sectionsConfig:q,nodeTypesConfig:B,compactView:_},e.id)}),ae&&i("button",n({type:"button",onClick:function(e){e.stopPropagation(),oe(function(e){var n=!e;return n&&E(X,"stations"),n})},className:"".concat(u.addAction)},{children:i(t,ne?{children:i("span",{children:"Show less"})}:{children:o("span",n({style:{paddingLeft:"15px"}},{children:[ke," more..."]}))})})),he&&!_&&i(m,{label:me.addChildLabel||"Add Child",onAdd:function(){return null==O?void 0:O(k.id,me.addChildType,k.name)},disabled:!be,tooltip:Te})]}))]}))};export{g as TreeNode};
1
+ import{__spreadArray as e,__assign as o}from"tslib";import{jsxs as n,jsx as i,Fragment as t}from"react/jsx-runtime";import{useState as d,useRef as l,useEffect as r}from"react";import{Plus as c,Pencil as a,Trash2 as s}from"lucide-react";import u from"../../styles/ScopeTree.module.css.js";import{TreeNodeHeader as p}from"./TreeNodeHeader.js";import{TreeAddAction as m}from"./TreeAddAction.js";import{dt as h,interpolate as v}from"../../store/useLMSConfigStore.js";import{MIDDLE_DRAWER_DT_PATH as f,MIDDLE_DRAWER_CONTEXT_MENU_DT_PATH as C}from"../../constants.js";import{useLearningTemplateStore as b}from"../../store/useLearningTemplateStore.js";import{TreeSectionItem as g}from"./TreeSectionItem.js";var y=function(S){var T,L,w,x,k=S.node,A=S.depth,D=void 0===A?0:A,N=S.nodePath,V=void 0===N?[]:N,j=S.expandedNodeIds,P=S.activeSelection,E=S.onToggleExpand,I=S.onSectionSelect,O=S.onNodeOptionsClick,Q=S.onAddChild,R=S.onRenameChild,Y=S.onDeleteChild,K=S.canDeleteScope,M=S.canEditScope,W=S.canCreateScope,H=S.searchQuery,q=S.sectionsConfig,z=void 0===q?[]:q,B=S.nodeTypesConfig,F=void 0===B?[]:B,G=S.forceVisible,J=void 0!==G&&G,U=S.compactView,X=void 0!==U&&U,Z=e(e([],V,!0),[k.id],!1),$=j.has(k.id),_=b.getState().backwardCompatibility,ee=_||X,oe=d(!1),ne=oe[0],ie=oe[1],te=h("".concat(f,".scope")),de=!!P&&P.nodePath[P.nodePath.length-1]===k.id,le=!!P&&(P.nodePath.includes(k.id)&&!de),re=!!_||"true"===h("".concat(f,".scopeDisplayLimit.enabled"),"false"),ce=_?7:parseInt(h("".concat(f,".scopeDisplayLimit.count"),"7"),10)||7,ae=k.children||[],se=re&&!H&&ae.length>ce,ue=l(null);r(function(){de&&ue.current&&ue.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[de]);var pe=l(ne);r(function(){pe.current=ne},[ne]),r(function(){P&&se&&!pe.current&&(ae.slice(ce).some(function(e){return P.nodePath.includes(e.id)})&&ie(!0))},[P,se,ae,ce]);var me=function(e,o){if(!o)return!0;var n=o.toLowerCase();return!!e.name.toLowerCase().includes(n)||!!e.children&&e.children.some(function(e){return me(e,o)})};if(!J&&!me(k,H||""))return null;var he=D>=F.length-1?F[F.length-1]:F[D],ve=!!(null==he?void 0:he.addChildType),fe=ee?z.filter(function(e){return"learnings"!==e.id&&"stations"!==e.id}).filter(function(e){return!e.isVisible||e.isVisible(k,D)}).map(function(e){return{label:e.label,icon:e.icon,onClick:function(){return I(Z,e.id)}}}):[],Ce=!K||K(k.id),be=!M||M(k.id),ge=!W||W(k.id),ye=k.children&&k.children.length>0,Se=!Ce||ye,Te=Ce?ye?"This scope cannot be deleted because other scopes inherit learnings from it.":void 0:"You do not have permission to delete this scope.",Le=ge?void 0:"You do not have permission to add a scope here.",we=!H||k.name.toLowerCase().includes(H.toLowerCase()),xe=se&&!ne,ke=ae.length-ce,Ae=xe?ae.slice(0,ce):ae;return n("div",o({ref:ue,className:u.nodeWrapper,style:{"--tree-depth":D}},{children:[i(p,{nodeType:k.type,name:k.name,isExpanded:$,isSelected:de,isAncestor:le,isExpandable:!!ye,childrenCount:null===(T=k.children)||void 0===T?void 0:T.length,learningsCount:ee?null===(L=k.metrics)||void 0===L?void 0:L.learningsCount:void 0,isCompactView:ee,onToggleExpand:function(e){e.stopPropagation(),E(k.id)},onClick:function(){I(Z,"learnings")},searchQuery:H,menuOptions:e(e(e([],ve?[{label:he.addChildLabel||"Add Child",icon:c,onClick:function(){return null==Q?void 0:Q(k.id,he.addChildType,k.name)},disabled:!ge,tooltip:Le}]:[],!0),[{label:"".concat(h("".concat(C,".rename"),"Rename")),icon:a,onClick:function(){return null==R?void 0:R(k.id,k.name)},disabled:!be||"station"===(null===(w=null==k?void 0:k.type)||void 0===w?void 0:w.toLocaleLowerCase()),tooltip:be?void 0:"You do not have permission to rename this scope."},{label:"station"===(null===(x=null==k?void 0:k.type)||void 0===x?void 0:x.toLowerCase())?"Delete Station":_?"Delete Scope":"".concat(h("".concat(C,".delete"),"Delete ".concat((null==he?void 0:he.label)||"Node"),{scope:te})),icon:s,onClick:function(){var e;return null==Y?void 0:Y(k.id,k.name,(null===(e=k.metrics)||void 0===e?void 0:e.learningsCount)||0)},disabled:Se,tooltip:Te,className:"text-red-500 hover:text-red-600 hover:bg-red-50"}],!1),fe,!0)}),$&&n("div",o({className:u.childrenWrapper},{children:[!ee&&z.filter(function(e){return!e.isVisible||e.isVisible(k,D)}).map(function(e){var o;return i(g,{icon:e.icon,label:e.label,badgeCount:e.badgeKey?null===(o=k.metrics)||void 0===o?void 0:o[e.badgeKey]:void 0,isActive:de&&(null==P?void 0:P.sectionId)===e.id,onClick:function(){return I(Z,e.id)}},"".concat(k.id,"-").concat(e.id))}),Ae.map(function(e){return i(y,{node:e,depth:D+1,nodePath:Z,expandedNodeIds:j,activeSelection:P,onToggleExpand:E,onSectionSelect:I,onNodeOptionsClick:O,onAddChild:Q,onRenameChild:R,onDeleteChild:Y,canDeleteScope:K,canEditScope:M,canCreateScope:W,searchQuery:H,forceVisible:we,sectionsConfig:z,nodeTypesConfig:F,compactView:ee},e.id)}),se&&i("button",o({type:"button",onClick:function(e){e.stopPropagation(),ie(function(e){var o=!e;return o&&I(Z,"stations"),o})},className:"".concat(u.addAction)},{children:i(t,ne?{children:i("span",{children:"Show less"})}:{children:i("span",o({style:{paddingLeft:"15px"}},{children:v(h("".concat(f,".scopeDisplayLimit.viewMoreText"),"{count} more..."),{count:ke})}))})})),ve&&!ee&&i(m,{label:he.addChildLabel||"Add Child",onAdd:function(){return null==Q?void 0:Q(k.id,he.addChildType,k.name)},disabled:!ge,tooltip:Le})]}))]}))};export{y as TreeNode};
2
2
  //# sourceMappingURL=TreeNode.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as o,jsx as n}from"react/jsx-runtime";import{ChevronDown as t,RadioTower as r,FolderOpen as c}from"lucide-react";import i from"../../styles/ScopeTree.module.css.js";import{TreeMenu as a}from"./TreeMenu.js";import{HighlightedText as d}from"./HighlightedText.js";var l=function(l){var s=l.name,m=l.isExpanded,u=l.isSelected,h=l.isAncestor,p=l.isExpandable,v=void 0===p||p,f=l.onToggleExpand,g=l.onClick,x=l.menuOptions,C=l.searchQuery,b=l.childrenCount,k=l.learningsCount,N=l.nodeType,y=u?i.nodeHeaderSelected:h?i.nodeHeaderAncestor:"",E=u||h;return o("div",e({className:"".concat(i.nodeHeader," ").concat(y),onClick:g,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),g())}},{children:[n("div",e({className:"".concat(i.chevron," ").concat(m?i.chevronExpanded:""," ").concat(v?"":i.chevronHidden),onClick:function(e){v&&f(e)},role:"button",tabIndex:v?0:-1},{children:n(t,{size:16,strokeWidth:E?2.5:2,color:E?"#2563EB":"#64748B"})})),n("div",e({className:i.folderIcon},{children:"station"===(null==N?void 0:N.toLocaleLowerCase())?n(r,{size:18,strokeWidth:E?2.5:2,color:E?"currentColor":"#64748B"}):n(c,{size:18,strokeWidth:E?2.5:2,color:E?"currentColor":"#64748B"})})),n("span",e({className:i.nodeName},{children:n(d,{text:s,highlight:C})})),n("span",e({className:"".concat(i.badge," ").concat(u?i.badgeActive:"")},void 0!==b&&b>0?{children:b}:{children:null!=k?k:0})),x&&x.length>0&&n("div",e({onClick:function(e){return e.stopPropagation()}},{children:n(a,{options:x,buttonClassName:i.optionsButton,iconSize:16})}))]}))};export{l as TreeNodeHeader};
1
+ import{__assign as e}from"tslib";import{jsxs as o,jsx as n}from"react/jsx-runtime";import{ChevronDown as t,RadioTower as c,FolderOpen as r}from"lucide-react";import i from"../../styles/ScopeTree.module.css.js";import{TreeMenu as a}from"./TreeMenu.js";import{HighlightedText as d}from"./HighlightedText.js";var l=function(l){var s=l.name,m=l.isExpanded,u=l.isSelected,p=l.isAncestor,h=l.isExpandable,v=void 0===h||h,g=l.onToggleExpand,f=l.onClick,b=l.menuOptions,C=l.searchQuery,x=l.childrenCount,k=l.learningsCount,N=l.nodeType,y=l.isCompactView,E=void 0!==y&&y,B=u?i.nodeHeaderSelected:p?i.nodeHeaderAncestor:"",H=u||p;return o("div",e({className:"".concat(i.nodeHeader," ").concat(B),onClick:f,role:"button",tabIndex:0,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}},{children:[n("div",e({className:"".concat(i.chevron," ").concat(m?i.chevronExpanded:""," ").concat(v?"":i.chevronHidden),onClick:function(e){v&&g(e)},role:"button",tabIndex:v?0:-1},{children:n(t,{size:16,strokeWidth:H?2.5:2,color:H?"#2563EB":"#64748B"})})),n("div",e({className:i.folderIcon},{children:"station"===(null==N?void 0:N.toLocaleLowerCase())?n(c,{size:18,strokeWidth:H?2.5:2,color:H?"currentColor":"#64748B"}):n(r,{size:18,strokeWidth:H?2.5:2,color:H?"currentColor":"#64748B"})})),n("span",e({className:i.nodeName},{children:n(d,{text:s,highlight:C})})),void 0!==x&&x>0?n("span",e({className:"".concat(i.badge," ").concat(u?i.badgeActive:"")},{children:x})):E?n("span",e({className:"".concat(i.badge," ").concat(u?i.badgeActive:"")},{children:null!=k?k:0})):null,b&&b.length>0&&n("div",e({onClick:function(e){return e.stopPropagation()}},{children:n(a,{options:b,buttonClassName:i.optionsButton,iconSize:16})}))]}))};export{l as TreeNodeHeader};
2
2
  //# sourceMappingURL=TreeNodeHeader.js.map
@@ -1,2 +1,2 @@
1
- import{create as e}from"zustand";import{useLearningTemplateStore as t}from"./useLearningTemplateStore.js";var n={pageTitle:"",middleDrawer:{scope:"",addScope:"",addSubScope:"",addScopeDialog:{title:"",globalTitle:"",subtitle:"",globalSubtitle:"",scopeName:"",learningApprovalSettings:{title:"",approvalRequired:{title:"",subtitle:""},publishWithoutApproval:{title:"",subtitle:""}},submitButton:"",cancel:""},treeMenu:{search:"",submenu:{learnings:"",access:"",changeHistory:""},contextMenu:{addScope:"",rename:"",delete:"",addSubScope:""}},scopeDisplayLimit:{enabled:"",count:"",compactView:"false"}},learnings:{header:{title:"",exportButton:"",addNewLearningButton:""},tier:{showTierHeader:!0,tierHeader:"",subtitle:"",tierHeaderNoOfLearnings:"",deleteDialog:{title:"",description:"",cancel:"",submit:""},learning:{inheritance:"",actions:{disable:"",enable:"",approve:"",reject:"",delete:""},approveDialog:{title:"",desc:"",footer:"",cancel:"",approveLearning:""},rejectDialog:{title:"",desc:"",feedbackTitle:"",feedbackPlaceholder:"",deleteCheckboxLabel:"",cancel:"",rejectLearning:""},deleteDialog:{title:"",desc:"",warningText:"",cancelText:"",deleteText:""}}}},emptyStateLearning:{title:"",desc:"",createNewLearning:"",createGlobalScope:"",noAccessTitle:"",noAccessDesc:"",requestAccessButton:"",requestSentButton:""},agents:{LearningTerm:""}},a={showScope:!1,showConfiguration:!1,welcomeMessage:"Hi! 👋 I'm your Instant Learning Concierge.",welcomeMessageSubtitle:"How would you like to get started? You can select an option below or describe the rule you'd like to create.",actions:[{label:"Separation rule",value:"I would want to add a separation rule"},{label:"Max priority rule",value:"I would want to set a max priority rule"},{label:"Break code matching",value:"I would want to add a break code matching rule"},{label:"Inventory code matching",value:"I would want to add a inventory window matching rule"},{label:"Enter a rule description",value:"I want to add a rule description"},{label:"Tester Genie",value:"Loading prompt..."}],chatTitle:"Teach Me OTJ - {scope} - Add Learning",chatTitleEdit:"Teach Me OTJ - {scope} - Edit Learning",formTitle:"Rule setup",setupLabel:"Configure your IL",ruleTitle:"Main Rule Name",scopeLabel:"Define Scope",tierLabel:"Select Tiers",ruleDescriptionTitle:"Learning Explanation",whenToApplyTitle:"Trigger Events (When to Apply)",addWhenToApplyBtnLabel:"Add WTA",whenNotToApplyTitle:"Exclusion Events (When NOT to Apply)",addWhenNotToApplyBtnLabel:"Add WNTA",configTitle:"Advanced Settings",saveBtnLabel:"Save Rule",saveBtnLoadingLabel:"Saving Rule...",chatTextareaPlaceholder:"Tell me more about this learning.."},l=e(function(e){return{lmsConfig:n,setLMSConfig:function(t){return e({lmsConfig:t})},clearLMSConfig:function(){return e({lmsConfig:n})}}});function i(e,n,a){if(t.getState().backwardCompatibility)return null!=n?n:"";var i=l.getState().lmsConfig,o=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},i);return"string"!=typeof o||""===o?null!=n?n:e:o.replace(/\{(\w+)\}/g,function(e,t){var n;return String(null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"{".concat(t,"}"))})}var o=e(function(e){return{teachMeConfig:null,setTeachMeConfig:function(t){return e({teachMeConfig:t})},clearTeachMeConfig:function(){return e({teachMeConfig:null})}}});function r(){var e,t,n=null!==(e=o.getState().teachMeConfig)&&void 0!==e?e:a;return{greeting:n.welcomeMessage||a.welcomeMessage,subtitle:n.welcomeMessageSubtitle||a.welcomeMessageSubtitle,actions:(null===(t=n.actions)||void 0===t?void 0:t.length)?n.actions:a.actions}}function c(e,t,n){var a=o.getState().teachMeConfig,l=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},a);return"string"!=typeof l?null!=t?t:e:l.replace(/\{(\w+)\}/g,function(e,t){var a;return String(null!==(a=null==n?void 0:n[t])&&void 0!==a?a:"{".concat(t,"}"))})}export{n as defaultLMSConfig,a as defaultTeachMeConfig,i as dt,c as dtt,r as dttWelcomeMessageParts,l as useLMSConfigStore,o as useTeachMeConfigStore};
1
+ import{create as e}from"zustand";import{useLearningTemplateStore as t}from"./useLearningTemplateStore.js";var n={pageTitle:"",middleDrawer:{scope:"",addScope:"",addSubScope:"",addScopeDialog:{title:"",globalTitle:"",subtitle:"",globalSubtitle:"",scopeName:"",learningApprovalSettings:{title:"",approvalRequired:{title:"",subtitle:""},publishWithoutApproval:{title:"",subtitle:""}},submitButton:"",cancel:""},treeMenu:{search:"",submenu:{learnings:"",access:"",changeHistory:""},contextMenu:{addScope:"",rename:"",delete:"",addSubScope:""}},scopeDisplayLimit:{enabled:"",count:"",compactView:"false",applyToLevels:"",viewMoreText:"",title:"",description:"",searchPlaceholder:"",onboardBtn:"",viewText:""}},learnings:{header:{title:"",exportButton:"",addNewLearningButton:""},tier:{showTierHeader:!0,tierHeader:"",subtitle:"",tierHeaderNoOfLearnings:"",deleteDialog:{title:"",description:"",cancel:"",submit:""},learning:{inheritance:"",actions:{disable:"",enable:"",approve:"",reject:"",delete:""},approveDialog:{title:"",desc:"",footer:"",cancel:"",approveLearning:""},rejectDialog:{title:"",desc:"",feedbackTitle:"",feedbackPlaceholder:"",deleteCheckboxLabel:"",cancel:"",rejectLearning:""},deleteDialog:{title:"",desc:"",warningText:"",cancelText:"",deleteText:""}}}},emptyStateLearning:{title:"",desc:"",createNewLearning:"",createGlobalScope:"",noAccessTitle:"",noAccessDesc:"",requestAccessButton:"",requestSentButton:""},agents:{LearningTerm:""}},a={showScope:!1,showConfiguration:!1,welcomeMessage:"Hi! 👋 I'm your Instant Learning Concierge.",welcomeMessageSubtitle:"How would you like to get started? You can select an option below or describe the rule you'd like to create.",actions:[{label:"Separation rule",value:"I would want to add a separation rule"},{label:"Max priority rule",value:"I would want to set a max priority rule"},{label:"Break code matching",value:"I would want to add a break code matching rule"},{label:"Inventory code matching",value:"I would want to add a inventory window matching rule"},{label:"Enter a rule description",value:"I want to add a rule description"},{label:"Tester Genie",value:"Loading prompt..."}],chatTitle:"Teach Me OTJ - {scope} - Add Learning",chatTitleEdit:"Teach Me OTJ - {scope} - Edit Learning",formTitle:"Rule setup",setupLabel:"Configure your IL",ruleTitle:"Main Rule Name",scopeLabel:"Define Scope",tierLabel:"Select Tiers",ruleDescriptionTitle:"Learning Explanation",whenToApplyTitle:"Trigger Events (When to Apply)",addWhenToApplyBtnLabel:"Add WTA",whenNotToApplyTitle:"Exclusion Events (When NOT to Apply)",addWhenNotToApplyBtnLabel:"Add WNTA",configTitle:"Advanced Settings",saveBtnLabel:"Save Rule",saveBtnLoadingLabel:"Saving Rule...",chatTextareaPlaceholder:"Tell me more about this learning.."},l=e(function(e){return{lmsConfig:n,setLMSConfig:function(t){return e({lmsConfig:t})},clearLMSConfig:function(){return e({lmsConfig:n})}}});function i(e,n,a){if(t.getState().backwardCompatibility)return null!=n?n:"";var i=l.getState().lmsConfig,o=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},i);return"string"!=typeof o||""===o?null!=n?n:e:o.replace(/\{(\w+)\}/g,function(e,t){var n;return String(null!==(n=null==a?void 0:a[t])&&void 0!==n?n:"{".concat(t,"}"))})}function o(e,t){return e.replace(/\{(\w+)\}/g,function(e,n){var a;return String(null!==(a=null==t?void 0:t[n])&&void 0!==a?a:"{".concat(n,"}"))})}var r=e(function(e){return{teachMeConfig:null,setTeachMeConfig:function(t){return e({teachMeConfig:t})},clearTeachMeConfig:function(){return e({teachMeConfig:null})}}});function c(){var e,t,n=null!==(e=r.getState().teachMeConfig)&&void 0!==e?e:a;return{greeting:n.welcomeMessage||a.welcomeMessage,subtitle:n.welcomeMessageSubtitle||a.welcomeMessageSubtitle,actions:(null===(t=n.actions)||void 0===t?void 0:t.length)?n.actions:a.actions}}function u(e,t,n){var a=r.getState().teachMeConfig,l=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},a);return"string"!=typeof l?null!=t?t:e:l.replace(/\{(\w+)\}/g,function(e,t){var a;return String(null!==(a=null==n?void 0:n[t])&&void 0!==a?a:"{".concat(t,"}"))})}export{n as defaultLMSConfig,a as defaultTeachMeConfig,i as dt,u as dtt,c as dttWelcomeMessageParts,o as interpolate,l as useLMSConfigStore,r as useTeachMeConfigStore};
2
2
  //# sourceMappingURL=useLMSConfigStore.js.map
@@ -23,6 +23,8 @@ interface RuleHeaderProps {
23
23
  addExemptionLabel?: string;
24
24
  /** Label for the add rule button (default: "Add New Rule") */
25
25
  addNewRuleLabel?: string;
26
+ /** Label for the "onboard a station" button (default: "Onboard a station") */
27
+ onboardStationLabel?: string;
26
28
  }
27
29
  /**
28
30
  * Header component for the Rule Content area.
@@ -1 +1 @@
1
- {"version":3,"file":"RuleHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/RuleHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;GAGG;AACH,UAAU,eAAe;IACvB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAkEzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"RuleHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/RuleHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;GAGG;AACH,UAAU,eAAe;IACvB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmEzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StationsContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/StationsContent/StationsContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAOvC,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAC/C,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED;;;GAGG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAmInD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"StationsContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/StationsContent/StationsContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAQvC,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,MAA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AAE,MAAM,KAAK,IAAI,CAAC;IACjE,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9F,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACrF,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACrC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAyS5C,CAAC"}
@@ -13,6 +13,7 @@ interface TreeNodeHeaderProps {
13
13
  childrenCount?: number;
14
14
  learningsCount?: number;
15
15
  nodeType?: string;
16
+ isCompactView?: boolean;
16
17
  }
17
18
  export declare const TreeNodeHeader: React.FC<TreeNodeHeaderProps>;
18
19
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"TreeNodeHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/ScopeTree/TreeNodeHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAY,cAAc,EAAE,MAAM,YAAY,CAAC;AAGtD,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2ExD,CAAC"}
1
+ {"version":3,"file":"TreeNodeHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/ScopeTree/TreeNodeHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAY,cAAc,EAAE,MAAM,YAAY,CAAC;AAGtD,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA6ExD,CAAC"}
@@ -36,6 +36,32 @@ export interface LMSScopeDisplayLimitConfig {
36
36
  enabled: string;
37
37
  count: string;
38
38
  compactView: string;
39
+ /**
40
+ * JSON-encoded array of depth levels this limit should apply to, e.g. "[1,2]".
41
+ * Not wired up to any logic yet — reserved for future use.
42
+ */
43
+ applyToLevels?: string;
44
+ /**
45
+ * Label for the tree's "see more" toggle when children are hidden behind
46
+ * the display limit. Supports a {count} placeholder, e.g. "{count} more...".
47
+ */
48
+ viewMoreText: string;
49
+ /**
50
+ * Word substituted for "Stations" in the StationsContent header's
51
+ * ruleSetName, e.g. "Stations" -> "{scope} > Stations (3)".
52
+ */
53
+ title: string;
54
+ /**
55
+ * Description shown under the StationsContent header. Supports a {scope}
56
+ * placeholder, interpolated with the current scope's name.
57
+ */
58
+ description: string;
59
+ /** Placeholder text for the station search input. */
60
+ searchPlaceholder: string;
61
+ /** Label for the "onboard a station" button in the StationsContent header. */
62
+ onboardBtn: string;
63
+ /** Label for the per-station "View" button. */
64
+ viewText: string;
39
65
  }
40
66
  export interface LMSMiddleDrawerConfig {
41
67
  scope: string;
@@ -168,6 +194,19 @@ export declare const useLMSConfigStore: import("zustand").UseBoundStore<import("
168
194
  * dt('learnings.tier.learning.rejectDialog.desc', { variant_name: 'Rule A' })
169
195
  */
170
196
  export declare function dt(path: string, fallback?: string, params?: Record<string, string | number>): string;
197
+ /**
198
+ * Replaces {param} placeholders in a string with the given values.
199
+ *
200
+ * dt() only interpolates placeholders when it actually reads a value from
201
+ * lmsConfig — in backwardCompatibility mode it short-circuits and returns the
202
+ * fallback untouched, leaving any {param} in the fallback unresolved. Call
203
+ * sites that need interpolation to work in both cases should call dt()
204
+ * WITHOUT a params argument (so any placeholders pass through as-is) and run
205
+ * the result through this function instead, e.g.:
206
+ *
207
+ * interpolate(dt('middleDrawer.scopeDisplayLimit.description', 'Manage {scope}.'), { scope: scopeName })
208
+ */
209
+ export declare function interpolate(template: string, params?: Record<string, string | number>): string;
171
210
  interface TeachMeConfigState {
172
211
  teachMeConfig: LMSTeachMeConfig | null;
173
212
  setTeachMeConfig: (config: LMSTeachMeConfig) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useLMSConfigStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useLMSConfigStore.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,wBAAwB,EAAE;QACxB,KAAK,EAAE,MAAM,CAAC;QACd,gBAAgB,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC;QACtD,sBAAsB,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC;KAC7D,CAAC;IACF,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AACD,MAAM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AG,IAAI,CAAC;IACvC,gBAAgB,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,eAAO,MAAM,qBAAqB,iFAI/B,CAAC;AAEJ;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,IAAI;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClD,CAQA;AACD,wBAAgB,GAAG,CACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GACvC,MAAM,CAeR"}
1
+ {"version":3,"file":"useLMSConfigStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useLMSConfigStore.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,wBAAwB,EAAE;QACxB,KAAK,EAAE,MAAM,CAAC;QACd,gBAAgB,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC;QACtD,sBAAsB,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC;KAC7D,CAAC;IACF,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE;Q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,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GACvC,MAAM,CAeR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/instant-learning",
3
- "version": "1.3.0-alpha.65",
3
+ "version": "1.3.0-alpha.67",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -100,7 +100,7 @@
100
100
  "@babel/plugin-transform-runtime": "^7.25.9",
101
101
  "@babel/preset-react": "7.26.3",
102
102
  "@babel/preset-typescript": "7.26.0",
103
- "@e-llm-studio/streaming-response": "^1.1.72",
103
+ "@e-llm-studio/streaming-response": "^1.1.74",
104
104
  "@emotion/react": "^11.14.0",
105
105
  "@emotion/styled": "^11.14.1",
106
106
  "@monaco-editor/react": "^4.7.0",
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");exports.default="data:image/svg+xml,%3Csvg%20width%3D%22160%22%20height%3D%22153%22%20viewBox%3D%220%200%20160%20153%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M79.2744%20143.735C116.627%20143.735%20146.909%20113.508%20146.909%2076.223C146.909%2038.9359%20116.627%208.71106%2079.2744%208.71106C41.9192%208.71106%2011.6367%2038.9359%2011.6367%2076.223C11.6367%20113.508%2041.9192%20143.735%2079.2744%20143.735Z%22%20fill%3D%22%23F8FAFC%22%2F%3E%3Cpath%20d%3D%22M116.902%2030.8984H43.3269C38.7417%2030.8984%2035.0234%2034.7993%2035.0234%2039.6097H125.205C125.205%2034.7993%20121.489%2030.8984%20116.902%2030.8984Z%22%20fill%3D%22%23D0D9E4%22%2F%3E%3Cpath%20d%3D%22M35.0234%2039.6094H125.205V109.239C125.205%20112.335%20123.994%20115.304%20121.834%20117.494C119.674%20119.684%20116.745%20120.914%20113.692%20120.914H46.5394C43.4834%20120.914%2040.555%20119.684%2038.3973%20117.494C36.2372%20115.304%2035.0234%20112.335%2035.0234%20109.239V39.6094Z%22%20fill%3D%22%23F1F5F9%22%2F%3E%3Cpath%20d%3D%22M125.155%2039.6592V109.239C125.155%20112.322%20123.949%20115.279%20121.798%20117.459C119.647%20119.639%20116.731%20120.864%20113.691%20120.864H46.5391C43.4967%20120.864%2040.5809%20119.639%2038.4326%20117.459C36.2818%20115.279%2035.0732%20112.322%2035.0732%20109.239V39.6592H125.155Z%22%20stroke%3D%22%2364748B%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%220.1%22%2F%3E%3Cpath%20d%3D%22M70.571%2048.3203H48.9307C48.4799%2048.3203%2048.1133%2049.295%2048.1133%2050.4981C48.1133%2051.7012%2048.4799%2052.6759%2048.9307%2052.6759H70.571C71.0218%2052.6759%2071.386%2051.7012%2071.386%2050.4981C71.386%2049.295%2071.0218%2048.3203%2070.571%2048.3203Z%22%20fill%3D%22url%28%23paint0_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2067.1953H48.9307C48.4799%2067.1953%2048.1133%2068.17%2048.1133%2069.3731C48.1133%2070.5762%2048.4799%2071.5509%2048.9307%2071.5509H70.571C71.0218%2071.5509%2071.386%2070.5762%2071.386%2069.3731C71.386%2068.17%2071.0218%2067.1953%2070.571%2067.1953Z%22%20fill%3D%22url%28%23paint1_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2086.0703H48.9307C48.4799%2086.0703%2048.1133%2087.0468%2048.1133%2088.2493C48.1133%2089.4517%2048.4799%2090.4259%2048.9307%2090.4259H70.571C71.0218%2090.4259%2071.386%2089.4517%2071.386%2088.2493C71.386%2087.0468%2071.0218%2086.0703%2070.571%2086.0703Z%22%20fill%3D%22url%28%23paint2_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%20104.945H48.9307C48.4799%20104.945%2048.1133%20105.922%2048.1133%20107.124C48.1133%20108.327%2048.4799%20109.301%2048.9307%20109.301H70.571C71.0218%20109.301%2071.386%20108.327%2071.386%20107.124C71.386%20105.922%2071.0218%20104.945%2070.571%20104.945Z%22%20fill%3D%22url%28%23paint3_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2048.3203H78.6367C77.8481%2048.3203%2077.207%2049.295%2077.207%2050.4981C77.207%2051.7012%2077.8481%2052.6759%2078.6367%2052.6759H116.507C117.296%2052.6759%20117.934%2051.7012%20117.934%2050.4981C117.934%2049.295%20117.296%2048.3203%20116.507%2048.3203Z%22%20fill%3D%22url%28%23paint4_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2086.0703H78.6367C77.8481%2086.0703%2077.207%2087.045%2077.207%2088.2481C77.207%2089.4512%2077.8481%2090.4259%2078.6367%2090.4259H116.507C117.296%2090.4259%20117.934%2089.4512%20117.934%2088.2481C117.934%2087.045%20117.296%2086.0703%20116.507%2086.0703Z%22%20fill%3D%22url%28%23paint5_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2067.1953H78.6367C77.8481%2067.1953%2077.207%2068.17%2077.207%2069.3731C77.207%2070.5762%2077.8481%2071.5509%2078.6367%2071.5509H116.507C117.296%2071.5509%20117.934%2070.5762%20117.934%2069.3731C117.934%2068.17%20117.296%2067.1953%20116.507%2067.1953Z%22%20fill%3D%22url%28%23paint6_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%20104.945H78.6367C77.8481%20104.945%2077.207%20105.92%2077.207%20107.123C77.207%20108.326%2077.8481%20109.301%2078.6367%20109.301H116.507C117.296%20109.301%20117.934%20108.326%20117.934%20107.123C117.934%20105.92%20117.296%20104.945%20116.507%20104.945Z%22%20fill%3D%22url%28%23paint7_linear_1020_82405%29%22%2F%3E%3CforeignObject%20x%3D%2270.7116%22%20y%3D%2260.6843%22%20width%3D%2279.8961%22%20height%3D%2279.81%22%3E%3Cdiv%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%20style%3D%22backdrop-filter%3Ablur%288.34px%29%3Bclip-path%3Aurl%28%23bgblur_0_1020_82405_clip_path%29%3Bheight%3A100%25%3Bwidth%3A100%25%22%3E%3C%2Fdiv%3E%3C%2FforeignObject%3E%3Cpath%20data-figma-bg-blur-radius%3D%2216.6751%22%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M110.659%2085.3419C111.63%2085.3458%20112.413%2086.1299%20112.411%2087.0961L112.395%2098.2651L123.584%2098.2817C124.555%2098.2856%20125.338%2099.0696%20125.339%20100.038C125.335%20101.007%20124.55%20101.789%20123.579%20101.79L112.39%20101.773L112.373%20112.942C112.372%20113.908%20111.586%20114.69%20110.615%20114.691C109.645%20114.687%20108.862%20113.903%20108.861%20112.935L108.877%20101.766L97.6878%20101.749C96.7198%20101.748%2095.9366%20100.964%2095.9355%2099.9948C95.9395%2099.0261%2096.725%2098.2443%2097.693%2098.2458L108.883%2098.2623L108.899%2087.0934C108.903%2086.1247%20109.689%2085.3429%20110.659%2085.3419Z%22%20fill%3D%22%23CBD5E1%22%2F%3E%3Cdefs%3E%3CclipPath%20id%3D%22bgblur_0_1020_82405_clip_path%22%20transform%3D%22translate%28-70.7116%20-60.6843%29%22%3E%3Cpath%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%2F%3E%3C%2FclipPath%3E%3ClinearGradient%20id%3D%22paint0_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2252.497%22%20x2%3D%2272.7628%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2271.372%22%20x2%3D%2272.7628%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint2_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2290.247%22%20x2%3D%2272.7628%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint3_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%22109.122%22%20x2%3D%2272.7628%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint4_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2252.497%22%20x2%3D%22120.344%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint5_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2290.247%22%20x2%3D%22120.344%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint6_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2271.372%22%20x2%3D%22120.344%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint7_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%22109.122%22%20x2%3D%22120.344%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E";
2
- //# sourceMappingURL=Search-result(add new).svg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Search-result(add new).svg.js","sources":["../../../../../src/features/LearningManagement/assets/Search-result(add new).svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%22160%22%20height%3D%22153%22%20viewBox%3D%220%200%20160%20153%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M79.2744%20143.735C116.627%20143.735%20146.909%20113.508%20146.909%2076.223C146.909%2038.9359%20116.627%208.71106%2079.2744%208.71106C41.9192%208.71106%2011.6367%2038.9359%2011.6367%2076.223C11.6367%20113.508%2041.9192%20143.735%2079.2744%20143.735Z%22%20fill%3D%22%23F8FAFC%22%2F%3E%3Cpath%20d%3D%22M116.902%2030.8984H43.3269C38.7417%2030.8984%2035.0234%2034.7993%2035.0234%2039.6097H125.205C125.205%2034.7993%20121.489%2030.8984%20116.902%2030.8984Z%22%20fill%3D%22%23D0D9E4%22%2F%3E%3Cpath%20d%3D%22M35.0234%2039.6094H125.205V109.239C125.205%20112.335%20123.994%20115.304%20121.834%20117.494C119.674%20119.684%20116.745%20120.914%20113.692%20120.914H46.5394C43.4834%20120.914%2040.555%20119.684%2038.3973%20117.494C36.2372%20115.304%2035.0234%20112.335%2035.0234%20109.239V39.6094Z%22%20fill%3D%22%23F1F5F9%22%2F%3E%3Cpath%20d%3D%22M125.155%2039.6592V109.239C125.155%20112.322%20123.949%20115.279%20121.798%20117.459C119.647%20119.639%20116.731%20120.864%20113.691%20120.864H46.5391C43.4967%20120.864%2040.5809%20119.639%2038.4326%20117.459C36.2818%20115.279%2035.0732%20112.322%2035.0732%20109.239V39.6592H125.155Z%22%20stroke%3D%22%2364748B%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%220.1%22%2F%3E%3Cpath%20d%3D%22M70.571%2048.3203H48.9307C48.4799%2048.3203%2048.1133%2049.295%2048.1133%2050.4981C48.1133%2051.7012%2048.4799%2052.6759%2048.9307%2052.6759H70.571C71.0218%2052.6759%2071.386%2051.7012%2071.386%2050.4981C71.386%2049.295%2071.0218%2048.3203%2070.571%2048.3203Z%22%20fill%3D%22url%28%23paint0_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2067.1953H48.9307C48.4799%2067.1953%2048.1133%2068.17%2048.1133%2069.3731C48.1133%2070.5762%2048.4799%2071.5509%2048.9307%2071.5509H70.571C71.0218%2071.5509%2071.386%2070.5762%2071.386%2069.3731C71.386%2068.17%2071.0218%2067.1953%2070.571%2067.1953Z%22%20fill%3D%22url%28%23paint1_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2086.0703H48.9307C48.4799%2086.0703%2048.1133%2087.0468%2048.1133%2088.2493C48.1133%2089.4517%2048.4799%2090.4259%2048.9307%2090.4259H70.571C71.0218%2090.4259%2071.386%2089.4517%2071.386%2088.2493C71.386%2087.0468%2071.0218%2086.0703%2070.571%2086.0703Z%22%20fill%3D%22url%28%23paint2_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%20104.945H48.9307C48.4799%20104.945%2048.1133%20105.922%2048.1133%20107.124C48.1133%20108.327%2048.4799%20109.301%2048.9307%20109.301H70.571C71.0218%20109.301%2071.386%20108.327%2071.386%20107.124C71.386%20105.922%2071.0218%20104.945%2070.571%20104.945Z%22%20fill%3D%22url%28%23paint3_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2048.3203H78.6367C77.8481%2048.3203%2077.207%2049.295%2077.207%2050.4981C77.207%2051.7012%2077.8481%2052.6759%2078.6367%2052.6759H116.507C117.296%2052.6759%20117.934%2051.7012%20117.934%2050.4981C117.934%2049.295%20117.296%2048.3203%20116.507%2048.3203Z%22%20fill%3D%22url%28%23paint4_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2086.0703H78.6367C77.8481%2086.0703%2077.207%2087.045%2077.207%2088.2481C77.207%2089.4512%2077.8481%2090.4259%2078.6367%2090.4259H116.507C117.296%2090.4259%20117.934%2089.4512%20117.934%2088.2481C117.934%2087.045%20117.296%2086.0703%20116.507%2086.0703Z%22%20fill%3D%22url%28%23paint5_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2067.1953H78.6367C77.8481%2067.1953%2077.207%2068.17%2077.207%2069.3731C77.207%2070.5762%2077.8481%2071.5509%2078.6367%2071.5509H116.507C117.296%2071.5509%20117.934%2070.5762%20117.934%2069.3731C117.934%2068.17%20117.296%2067.1953%20116.507%2067.1953Z%22%20fill%3D%22url%28%23paint6_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%20104.945H78.6367C77.8481%20104.945%2077.207%20105.92%2077.207%20107.123C77.207%20108.326%2077.8481%20109.301%2078.6367%20109.301H116.507C117.296%20109.301%20117.934%20108.326%20117.934%20107.123C117.934%20105.92%20117.296%20104.945%20116.507%20104.945Z%22%20fill%3D%22url%28%23paint7_linear_1020_82405%29%22%2F%3E%3CforeignObject%20x%3D%2270.7116%22%20y%3D%2260.6843%22%20width%3D%2279.8961%22%20height%3D%2279.81%22%3E%3Cdiv%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%20style%3D%22backdrop-filter%3Ablur%288.34px%29%3Bclip-path%3Aurl%28%23bgblur_0_1020_82405_clip_path%29%3Bheight%3A100%25%3Bwidth%3A100%25%22%3E%3C%2Fdiv%3E%3C%2FforeignObject%3E%3Cpath%20data-figma-bg-blur-radius%3D%2216.6751%22%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M110.659%2085.3419C111.63%2085.3458%20112.413%2086.1299%20112.411%2087.0961L112.395%2098.2651L123.584%2098.2817C124.555%2098.2856%20125.338%2099.0696%20125.339%20100.038C125.335%20101.007%20124.55%20101.789%20123.579%20101.79L112.39%20101.773L112.373%20112.942C112.372%20113.908%20111.586%20114.69%20110.615%20114.691C109.645%20114.687%20108.862%20113.903%20108.861%20112.935L108.877%20101.766L97.6878%20101.749C96.7198%20101.748%2095.9366%20100.964%2095.9355%2099.9948C95.9395%2099.0261%2096.725%2098.2443%2097.693%2098.2458L108.883%2098.2623L108.899%2087.0934C108.903%2086.1247%20109.689%2085.3429%20110.659%2085.3419Z%22%20fill%3D%22%23CBD5E1%22%2F%3E%3Cdefs%3E%3CclipPath%20id%3D%22bgblur_0_1020_82405_clip_path%22%20transform%3D%22translate%28-70.7116%20-60.6843%29%22%3E%3Cpath%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%2F%3E%3C%2FclipPath%3E%3ClinearGradient%20id%3D%22paint0_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2252.497%22%20x2%3D%2272.7628%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2271.372%22%20x2%3D%2272.7628%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint2_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2290.247%22%20x2%3D%2272.7628%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint3_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%22109.122%22%20x2%3D%2272.7628%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint4_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2252.497%22%20x2%3D%22120.344%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint5_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2290.247%22%20x2%3D%22120.344%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint6_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2271.372%22%20x2%3D%22120.344%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint7_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%22109.122%22%20x2%3D%22120.344%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E\""],"names":[],"mappings":"qGA0Ke"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material"),o=require("lucide-react"),i=require("primereact/toast"),s=require("uuid"),a=require("../../assets/Search-result(add new).svg.js"),l=require("../../store/useAuthStore.js"),u=require("../../config.js"),c=require("../../apis/scopeApis.js"),d=require("./InputField.js"),p=require("./StationAutocomplete.js"),f=require("../CardSkeleton.js"),g=require("./OnboardingLoader.js"),x=require("./TemplateCard.js"),_=[{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"},{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"}],m=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],h=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}];exports.default=function(v){var S,y=v.isOpen,b=v.onClose,j=v.onBoardStation,w=v.app_integration_id,C=v.token,T=v.stationNameParam,O=t.useState(null),F=O[0],N=O[1],B=t.useState([]),A=B[0],E=B[1],M=t.useState(0),D=M[0],q=M[1],I=t.useState(!0),k=I[0],P=I[1],R=t.useState(!1),z=R[0],L=R[1],W=t.useState([]),G=W[0],U=W[1],Y=t.useState(""),H=Y[0],K=Y[1],X=t.useState(""),J=X[0],Q=X[1],V=t.useState(!1),Z=V[0],$=V[1],ee=t.useState(!1),ne=ee[0],te=ee[1],re=t.useState(null),oe=re[0],ie=re[1],se=t.useState(!1),ae=se[0],le=se[1],ue=t.useState(0),ce=ue[0],de=ue[1],pe=t.useState(""),fe=pe[0],ge=pe[1],xe=l.default().user,_e=t.useRef(null),me=t.useRef(null),he=t.useRef(null),ve=t.useRef(null),Se=t.useState({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),ye=Se[0],be=Se[1],je=function(e,n){return e.find(function(e){return e.value===n})||null},we=t.useMemo(function(){return A.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[A]),Ce=t.useMemo(function(){var e,n,t;if(!ye.genre)return null;var r=A.find(function(e){return e.scope_name===ye.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===(n=r.inheritance)||void 0===n?void 0:n[0])||void 0,rulesCount:r.rules_count||0,tiersCount:r.tier_count||0,isCopy:null!==(t=r.is_copy)&&void 0!==t&&t}:null},[ye.genre,A]);t.useEffect(function(){return function(){he.current&&clearTimeout(he.current)}},[]);var Te=function(n){return e.__awaiter(void 0,void 0,void 0,function(){var t,r,o;return e.__generator(this,function(i){switch(i.label){case 0:if(z)return[2];L(!0),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,c.retrieveGenreScopes({limit:"20",offset:String(n)})];case 2:return"success"===(null==(t=i.sent())?void 0:t.status)&&Array.isArray(null==t?void 0:t.data)?(r=t.data,E(function(t){if(0===n)return r;var o=new Set(t.map(function(e){return e.id})),i=r.filter(function(e){return!o.has(e.id)});return e.__spreadArray(e.__spreadArray([],t,!0),i,!0)}),r.length<20?P(!1):P(!0),q(n+20)):P(!1),[3,5];case 3:return o=i.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",o),P(!1),[3,5];case 4:return L(!1),[7];case 5:return[2]}})})};t.useEffect(function(){if(y&&(E([]),q(0),P(!0),Te(0),T)){ge(T);e.__awaiter(void 0,void 0,void 0,function(){var n,t,r;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,c.fetchStationsByKeyword(T,!0)];case 1:return!0===(null==(n=e.sent())?void 0:n.success)&&Array.isArray(null==n?void 0:n.data)&&(t=n.data.find(function(e){var n;return(null===(n=e.station_name)||void 0===n?void 0:n.toLowerCase())===T.toLowerCase()&&!e.ruleset_id}),t&&N(t)),[3,3];case 2:return r=e.sent(),console.error("[StationOnboard] Error auto-selecting station:",r),[3,3];case 3:return[2]}})})}},[y,T]);t.useEffect(function(){be(F?function(n){var t;return e.__assign(e.__assign({},n),{region:null!==(t=F.market)&&void 0!==t?t:""})}:{region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""})},[F]),t.useEffect(function(){var e=setTimeout(function(){Q(H)},500);return function(){return clearTimeout(e)}},[H]),t.useEffect(function(){e.__awaiter(void 0,void 0,void 0,function(){var n,t,r;return e.__generator(this,function(e){switch(e.label){case 0:if(!J.trim())return U([]),[2];$(!0),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,c.searchScopes({search_string:J})];case 2:return"success"===(null==(n=e.sent())?void 0:n.status)&&Array.isArray(null==n?void 0:n.data)?(t=n.data.map(function(e){var n,t,r;return{id:e.id,title:e.scope_name||"Unnamed Template",description:(null===(n=e.description)||void 0===n?void 0:n.trim())||"No description available.",inheritedText:(null===(t=e.inheritance)||void 0===t?void 0:t[0])||void 0,rulesCount:e.rules_count||0,tiersCount:e.tier_count||0,isCopy:null!==(r=e.is_copy)&&void 0!==r&&r}}),U(t)):U([]),[3,5];case 3:return r=e.sent(),console.error("[StationOnboard] Error searching scopes:",r),U([]),[3,5];case 4:return $(!1),[7];case 5:return[2]}})})},[J]),t.useEffect(function(){!J.trim()&&Ce&&ie(Ce.id)},[J,Ce]);var Oe=function(){setTimeout(function(){ve.current&&ve.current.scrollTo({top:ve.current.scrollHeight,behavior:"smooth"})},100)},Fe=function(){ge(""),N(null),be({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),U([]),K(""),ie(null),b()},Ne=function(n,t){var r;if("primeTime"!==n){var o=null!==(r=null==t?void 0:t.value)&&void 0!==r?r:"";be(function(t){var r;return e.__assign(e.__assign({},t),((r={})[n]=String(o),r))}),"genre"===n&&(te(!0),he.current&&clearTimeout(he.current),he.current=setTimeout(function(){var e=A.find(function(e){return e.scope_name===o});ie(e?e.id:null),te(!1)},800))}else{var i=(null==t?void 0:t.value)?String(t.value):"";be(function(n){return e.__assign(e.__assign({},n),{primeTime:i?[i]:[]})})}},Be=Boolean(F&&ye.region&&ye.primeTime.length>0&&ye.genre);return n.jsxs(r.Dialog,e.__assign({open:y,onClose:Fe,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"}}},{children:[n.jsx(i.Toast,{ref:_e}),n.jsxs(r.Box,e.__assign({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[n.jsxs(r.Box,e.__assign({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[n.jsx(r.Typography,e.__assign({sx:{fontSize:"18px",fontWeight:600,color:"#19213D"}},{children:"Onboard a Station"})),n.jsx(r.Typography,e.__assign({sx:{fontSize:"16px",fontWeight:400,color:"#666F8D"}},{children:"Onboard a station to start configuring learnings."}))]})),n.jsx(r.IconButton,e.__assign({onClick:Fe,disabled:ae,sx:{color:"#19213D"}},{children:n.jsx(o.X,{size:24})}))]})),n.jsxs(r.DialogContent,e.__assign({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[n.jsx(g.default,{isLoading:ae,currentStep:ce,onComplete:function(){le(!1);var e=me.current;Fe(),j(e||void 0),me.current=null}}),n.jsxs(r.Box,e.__assign({sx:{display:"flex",flex:1,paddingY:"14px",paddingX:"20px",gap:3,overflowY:"hidden"}},{children:[n.jsxs(r.Box,e.__assign({ref:ve,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5",height:"100%",overflowY:"auto"}},{children:[n.jsx(r.Typography,e.__assign({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Basic Details"})),n.jsx(r.Typography,e.__assign({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Set up basic station details to unlock AI recommended scopes."})),n.jsxs(r.Box,e.__assign({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[n.jsxs(r.Box,e.__assign({className:"space-y-1.5"},{children:[n.jsxs("label",e.__assign({className:"text-sm font-medium text-[#19213D]"},{children:[n.jsx("span",e.__assign({className:"mr-0.5 text-xs font-semibold text-[#8F2C23]"},{children:"*"})),"Station Name/Call Letters"]})),n.jsx(p.default,{value:fe,onChange:ge,onStationSelect:function(e){return N(e)}})]})),n.jsx(d.default,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:ye.region||void 0,isSearchable:!1}),n.jsx(d.default,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:_,value:je(_,(null===(S=ye.primeTime)||void 0===S?void 0:S[0])||""),onOptionChange:function(e){return Ne("primeTime",e)},isSearchable:!1}),n.jsx(r.Box,e.__assign({onClick:Oe,sx:{width:"100%"}},{children:n.jsx(d.default,{required:!0,label:"Genre",placeholder:"Select Genre",options:we,value:je(we,ye.genre),onOptionChange:function(e){return Ne("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!z&&k&&Te(D)},isLoadingOptions:z,hasMoreOptions:k})})),n.jsx(r.Box,e.__assign({onClick:Oe,sx:{width:"100%"}},{children:n.jsx(d.default,{label:"Station Type",placeholder:"None",options:m,value:je(m,ye.type),onOptionChange:function(n){Ne("type",n),"Low Sellout"!==(null==n?void 0:n.value)&&be(function(n){return e.__assign(e.__assign({},n),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===ye.type&&n.jsx(r.Box,e.__assign({onClick:Oe,sx:{width:"100%"}},{children:n.jsx(d.default,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:h,value:je(h,ye.lowSelloutConfig),onOptionChange:function(e){return Ne("lowSelloutConfig",e)},isSearchable:!1})}))]}))]})),n.jsx(r.Box,e.__assign({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column",height:"100%",overflowY:"auto"}},{children:ye.genre?n.jsxs(n.Fragment,{children:[n.jsx(r.Typography,e.__assign({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Matching scope for your station"})),n.jsx(r.Box,e.__assign({sx:{display:"flex",flexDirection:"column",gap:2,mb:4}},{children:ne?n.jsx(f.default,{}):Ce?n.jsx(x.default,e.__assign({},Ce,{isSelected:oe===Ce.id,onSelect:ie}),Ce.id):null})),n.jsx(r.Typography,e.__assign({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Other available stations"})),n.jsxs("div",e.__assign({className:"relative mb-4 w-full"},{children:[n.jsx("input",{type:"text",value:H,onChange:function(e){return K(e.target.value)},placeholder:"Search for station...",className:"w-full rounded-lg border border-[#E2E8F0] px-10 py-[7px] text-[12px] outline-none transition-all placeholder:text-[#BAC0CC] focus:border-blue-500 focus:ring-1 focus:ring-blue-500"}),n.jsx(o.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",size:16})]})),n.jsxs(r.Box,e.__assign({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[Z&&n.jsx(f.default,{}),!Z&&0===G.length&&J.trim()&&n.jsxs(r.Typography,e.__assign({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',J,'".']})),!Z&&G.map(function(t){return n.jsx(x.default,e.__assign({},t,{isSelected:oe===t.id,onSelect:ie}),t.id)})]}))]}):n.jsxs(n.Fragment,{children:[n.jsx(r.Typography,e.__assign({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Fill in the station details to load AI recommended scopes"})),n.jsx(r.Typography,e.__assign({sx:{fontSize:"0.75rem",color:"#64748B",mb:3}},{children:"AI will recommend the most relevant scope for this station."})),n.jsx(r.Box,e.__assign({sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.5,py:10}},{children:n.jsx("img",{src:a.default,alt:"Empty Result"})}))]})}))]}))]})),n.jsxs(r.Box,e.__assign({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[n.jsx("button",e.__assign({onClick:Fe,disabled:ae,style:{padding:"7px 10px",borderRadius:"6px",color:"#64748B",border:"1px solid #E2E8F0",backgroundColor:"#fff",cursor:"pointer",fontSize:"14px",fontWeight:500}},{children:"Cancel"})),n.jsx("button",e.__assign({onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var n,t,r,o,i,a,l,d,p,f,g,x,_,m,h,v,S,y;return e.__generator(this,function(b){switch(b.label){case 0:if(!F||!oe)return console.error("[StationOnboard] Missing required data for onboarding"),[2];n=Ce?e.__spreadArray([Ce],G,!0):G,t=n.find(function(e){return e.id===oe}),r=null!==(_=null==t?void 0:t.isCopy)&&void 0!==_&&_,le(!0),de(0),o=null,b.label=1;case 1:return b.trys.push([1,3,,4]),i={topic:"customRuleSet",customScopeGroupName:(null===u.IL_CONFIG_CONSTANTS||void 0===u.IL_CONFIG_CONSTANTS?void 0:u.IL_CONFIG_CONSTANTS.CUSTOM_SCOPE_GROUP_NAME)||"Audacy-Traffic-Manager",scopeDescription:F.station_name||"New Station",parentScopeId:null,customScopeName:F.station_name||"New Station",customScopeId:s.v4(),createByName:(null==xe?void 0:xe.firstname)||"System",createdBy:(null==xe?void 0:xe.email)||"system@audacy.com",applicationMappingId:w},console.log("[StationOnboard] Step 1: Creating rule set with payload:",i),[4,c.createRuleSet(i,C)];case 2:if(a=b.sent(),!(o=null===(m=null==a?void 0:a.data)||void 0===m?void 0:m.scopeId))throw new Error("Failed to create scope - no scopeId returned");return de(1),[3,4];case 3:return l=b.sent(),console.error("[StationOnboard] Error creating rule set:",l),null===(h=_e.current)||void 0===h||h.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),le(!1),de(0),[2];case 4:return b.trys.push([4,6,,11]),d={market:F.market,region:F.region,primetime_windows:ye.primeTime,genre:ye.genre,station_type:""===ye.type?null:ye.type,low_sellout_configurations:"Low Sellout"===ye.type?ye.lowSelloutConfig:null,ruleset_id:o,station_guid:F.station_guid,station_name:F.station_name||"New Station"},console.log("[StationOnboard] Step 2: Updating station with payload:",d),[4,c.updateStation(d)];case 5:return b.sent(),de(2),[3,11];case 6:p=b.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",p),409===p.status?(null===(v=_e.current)||void 0===v||v.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),N(null),ie(null),ge(""),be(function(n){return e.__assign(e.__assign({},n),{region:""})})):null===(S=_e.current)||void 0===S||S.show({severity:"error",life:2500,summary:"Error updating station",detail:"Please try again."}),b.label=7;case 7:return b.trys.push([7,9,,10]),[4,c.deleteRuleSet(o,C)];case 8:return b.sent(),[3,10];case 9:return f=b.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",f),[3,10];case 10:return le(!1),de(0),[2];case 11:return b.trys.push([11,13,,14]),g={source_scope_id:oe,target_scope_id:o,is_copy_parent_variant_id:r},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",g),[4,c.inheritScope(g)];case 12:return b.sent(),de(3),[3,14];case 13:return x=b.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",x),null===(y=_e.current)||void 0===y||y.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),le(!1),de(0),[2];case 14:return me.current=o,[2]}})})},disabled:!Be||ae,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:Be?"#2563EB":"#BFDBFE",color:"#fff",cursor:Be&&!ae?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:ae?n.jsxs(n.Fragment,{children:[n.jsx(r.CircularProgress,{size:16,color:"inherit"}),n.jsx("span",{children:"Onboarding..."})]}):n.jsxs(n.Fragment,{children:[n.jsx("span",{children:"Onboard Station"}),n.jsx(o.ArrowRight,{size:16})]})}))]}))]}))};
2
- //# sourceMappingURL=BackwardStationOnboardModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BackwardStationOnboardModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import"react";var t="data:image/svg+xml,%3Csvg%20width%3D%22160%22%20height%3D%22153%22%20viewBox%3D%220%200%20160%20153%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M79.2744%20143.735C116.627%20143.735%20146.909%20113.508%20146.909%2076.223C146.909%2038.9359%20116.627%208.71106%2079.2744%208.71106C41.9192%208.71106%2011.6367%2038.9359%2011.6367%2076.223C11.6367%20113.508%2041.9192%20143.735%2079.2744%20143.735Z%22%20fill%3D%22%23F8FAFC%22%2F%3E%3Cpath%20d%3D%22M116.902%2030.8984H43.3269C38.7417%2030.8984%2035.0234%2034.7993%2035.0234%2039.6097H125.205C125.205%2034.7993%20121.489%2030.8984%20116.902%2030.8984Z%22%20fill%3D%22%23D0D9E4%22%2F%3E%3Cpath%20d%3D%22M35.0234%2039.6094H125.205V109.239C125.205%20112.335%20123.994%20115.304%20121.834%20117.494C119.674%20119.684%20116.745%20120.914%20113.692%20120.914H46.5394C43.4834%20120.914%2040.555%20119.684%2038.3973%20117.494C36.2372%20115.304%2035.0234%20112.335%2035.0234%20109.239V39.6094Z%22%20fill%3D%22%23F1F5F9%22%2F%3E%3Cpath%20d%3D%22M125.155%2039.6592V109.239C125.155%20112.322%20123.949%20115.279%20121.798%20117.459C119.647%20119.639%20116.731%20120.864%20113.691%20120.864H46.5391C43.4967%20120.864%2040.5809%20119.639%2038.4326%20117.459C36.2818%20115.279%2035.0732%20112.322%2035.0732%20109.239V39.6592H125.155Z%22%20stroke%3D%22%2364748B%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%220.1%22%2F%3E%3Cpath%20d%3D%22M70.571%2048.3203H48.9307C48.4799%2048.3203%2048.1133%2049.295%2048.1133%2050.4981C48.1133%2051.7012%2048.4799%2052.6759%2048.9307%2052.6759H70.571C71.0218%2052.6759%2071.386%2051.7012%2071.386%2050.4981C71.386%2049.295%2071.0218%2048.3203%2070.571%2048.3203Z%22%20fill%3D%22url%28%23paint0_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2067.1953H48.9307C48.4799%2067.1953%2048.1133%2068.17%2048.1133%2069.3731C48.1133%2070.5762%2048.4799%2071.5509%2048.9307%2071.5509H70.571C71.0218%2071.5509%2071.386%2070.5762%2071.386%2069.3731C71.386%2068.17%2071.0218%2067.1953%2070.571%2067.1953Z%22%20fill%3D%22url%28%23paint1_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2086.0703H48.9307C48.4799%2086.0703%2048.1133%2087.0468%2048.1133%2088.2493C48.1133%2089.4517%2048.4799%2090.4259%2048.9307%2090.4259H70.571C71.0218%2090.4259%2071.386%2089.4517%2071.386%2088.2493C71.386%2087.0468%2071.0218%2086.0703%2070.571%2086.0703Z%22%20fill%3D%22url%28%23paint2_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%20104.945H48.9307C48.4799%20104.945%2048.1133%20105.922%2048.1133%20107.124C48.1133%20108.327%2048.4799%20109.301%2048.9307%20109.301H70.571C71.0218%20109.301%2071.386%20108.327%2071.386%20107.124C71.386%20105.922%2071.0218%20104.945%2070.571%20104.945Z%22%20fill%3D%22url%28%23paint3_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2048.3203H78.6367C77.8481%2048.3203%2077.207%2049.295%2077.207%2050.4981C77.207%2051.7012%2077.8481%2052.6759%2078.6367%2052.6759H116.507C117.296%2052.6759%20117.934%2051.7012%20117.934%2050.4981C117.934%2049.295%20117.296%2048.3203%20116.507%2048.3203Z%22%20fill%3D%22url%28%23paint4_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2086.0703H78.6367C77.8481%2086.0703%2077.207%2087.045%2077.207%2088.2481C77.207%2089.4512%2077.8481%2090.4259%2078.6367%2090.4259H116.507C117.296%2090.4259%20117.934%2089.4512%20117.934%2088.2481C117.934%2087.045%20117.296%2086.0703%20116.507%2086.0703Z%22%20fill%3D%22url%28%23paint5_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2067.1953H78.6367C77.8481%2067.1953%2077.207%2068.17%2077.207%2069.3731C77.207%2070.5762%2077.8481%2071.5509%2078.6367%2071.5509H116.507C117.296%2071.5509%20117.934%2070.5762%20117.934%2069.3731C117.934%2068.17%20117.296%2067.1953%20116.507%2067.1953Z%22%20fill%3D%22url%28%23paint6_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%20104.945H78.6367C77.8481%20104.945%2077.207%20105.92%2077.207%20107.123C77.207%20108.326%2077.8481%20109.301%2078.6367%20109.301H116.507C117.296%20109.301%20117.934%20108.326%20117.934%20107.123C117.934%20105.92%20117.296%20104.945%20116.507%20104.945Z%22%20fill%3D%22url%28%23paint7_linear_1020_82405%29%22%2F%3E%3CforeignObject%20x%3D%2270.7116%22%20y%3D%2260.6843%22%20width%3D%2279.8961%22%20height%3D%2279.81%22%3E%3Cdiv%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%20style%3D%22backdrop-filter%3Ablur%288.34px%29%3Bclip-path%3Aurl%28%23bgblur_0_1020_82405_clip_path%29%3Bheight%3A100%25%3Bwidth%3A100%25%22%3E%3C%2Fdiv%3E%3C%2FforeignObject%3E%3Cpath%20data-figma-bg-blur-radius%3D%2216.6751%22%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M110.659%2085.3419C111.63%2085.3458%20112.413%2086.1299%20112.411%2087.0961L112.395%2098.2651L123.584%2098.2817C124.555%2098.2856%20125.338%2099.0696%20125.339%20100.038C125.335%20101.007%20124.55%20101.789%20123.579%20101.79L112.39%20101.773L112.373%20112.942C112.372%20113.908%20111.586%20114.69%20110.615%20114.691C109.645%20114.687%20108.862%20113.903%20108.861%20112.935L108.877%20101.766L97.6878%20101.749C96.7198%20101.748%2095.9366%20100.964%2095.9355%2099.9948C95.9395%2099.0261%2096.725%2098.2443%2097.693%2098.2458L108.883%2098.2623L108.899%2087.0934C108.903%2086.1247%20109.689%2085.3429%20110.659%2085.3419Z%22%20fill%3D%22%23CBD5E1%22%2F%3E%3Cdefs%3E%3CclipPath%20id%3D%22bgblur_0_1020_82405_clip_path%22%20transform%3D%22translate%28-70.7116%20-60.6843%29%22%3E%3Cpath%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%2F%3E%3C%2FclipPath%3E%3ClinearGradient%20id%3D%22paint0_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2252.497%22%20x2%3D%2272.7628%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2271.372%22%20x2%3D%2272.7628%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint2_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2290.247%22%20x2%3D%2272.7628%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint3_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%22109.122%22%20x2%3D%2272.7628%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint4_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2252.497%22%20x2%3D%22120.344%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint5_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2290.247%22%20x2%3D%22120.344%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint6_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2271.372%22%20x2%3D%22120.344%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint7_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%22109.122%22%20x2%3D%22120.344%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E";export{t as default};
2
- //# sourceMappingURL=Search-result(add new).svg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Search-result(add new).svg.js","sources":["../../../../src/features/LearningManagement/assets/Search-result(add new).svg"],"sourcesContent":["export default \"data:image/svg+xml,%3Csvg%20width%3D%22160%22%20height%3D%22153%22%20viewBox%3D%220%200%20160%20153%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M79.2744%20143.735C116.627%20143.735%20146.909%20113.508%20146.909%2076.223C146.909%2038.9359%20116.627%208.71106%2079.2744%208.71106C41.9192%208.71106%2011.6367%2038.9359%2011.6367%2076.223C11.6367%20113.508%2041.9192%20143.735%2079.2744%20143.735Z%22%20fill%3D%22%23F8FAFC%22%2F%3E%3Cpath%20d%3D%22M116.902%2030.8984H43.3269C38.7417%2030.8984%2035.0234%2034.7993%2035.0234%2039.6097H125.205C125.205%2034.7993%20121.489%2030.8984%20116.902%2030.8984Z%22%20fill%3D%22%23D0D9E4%22%2F%3E%3Cpath%20d%3D%22M35.0234%2039.6094H125.205V109.239C125.205%20112.335%20123.994%20115.304%20121.834%20117.494C119.674%20119.684%20116.745%20120.914%20113.692%20120.914H46.5394C43.4834%20120.914%2040.555%20119.684%2038.3973%20117.494C36.2372%20115.304%2035.0234%20112.335%2035.0234%20109.239V39.6094Z%22%20fill%3D%22%23F1F5F9%22%2F%3E%3Cpath%20d%3D%22M125.155%2039.6592V109.239C125.155%20112.322%20123.949%20115.279%20121.798%20117.459C119.647%20119.639%20116.731%20120.864%20113.691%20120.864H46.5391C43.4967%20120.864%2040.5809%20119.639%2038.4326%20117.459C36.2818%20115.279%2035.0732%20112.322%2035.0732%20109.239V39.6592H125.155Z%22%20stroke%3D%22%2364748B%22%20stroke-opacity%3D%220.1%22%20stroke-width%3D%220.1%22%2F%3E%3Cpath%20d%3D%22M70.571%2048.3203H48.9307C48.4799%2048.3203%2048.1133%2049.295%2048.1133%2050.4981C48.1133%2051.7012%2048.4799%2052.6759%2048.9307%2052.6759H70.571C71.0218%2052.6759%2071.386%2051.7012%2071.386%2050.4981C71.386%2049.295%2071.0218%2048.3203%2070.571%2048.3203Z%22%20fill%3D%22url%28%23paint0_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2067.1953H48.9307C48.4799%2067.1953%2048.1133%2068.17%2048.1133%2069.3731C48.1133%2070.5762%2048.4799%2071.5509%2048.9307%2071.5509H70.571C71.0218%2071.5509%2071.386%2070.5762%2071.386%2069.3731C71.386%2068.17%2071.0218%2067.1953%2070.571%2067.1953Z%22%20fill%3D%22url%28%23paint1_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%2086.0703H48.9307C48.4799%2086.0703%2048.1133%2087.0468%2048.1133%2088.2493C48.1133%2089.4517%2048.4799%2090.4259%2048.9307%2090.4259H70.571C71.0218%2090.4259%2071.386%2089.4517%2071.386%2088.2493C71.386%2087.0468%2071.0218%2086.0703%2070.571%2086.0703Z%22%20fill%3D%22url%28%23paint2_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M70.571%20104.945H48.9307C48.4799%20104.945%2048.1133%20105.922%2048.1133%20107.124C48.1133%20108.327%2048.4799%20109.301%2048.9307%20109.301H70.571C71.0218%20109.301%2071.386%20108.327%2071.386%20107.124C71.386%20105.922%2071.0218%20104.945%2070.571%20104.945Z%22%20fill%3D%22url%28%23paint3_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2048.3203H78.6367C77.8481%2048.3203%2077.207%2049.295%2077.207%2050.4981C77.207%2051.7012%2077.8481%2052.6759%2078.6367%2052.6759H116.507C117.296%2052.6759%20117.934%2051.7012%20117.934%2050.4981C117.934%2049.295%20117.296%2048.3203%20116.507%2048.3203Z%22%20fill%3D%22url%28%23paint4_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2086.0703H78.6367C77.8481%2086.0703%2077.207%2087.045%2077.207%2088.2481C77.207%2089.4512%2077.8481%2090.4259%2078.6367%2090.4259H116.507C117.296%2090.4259%20117.934%2089.4512%20117.934%2088.2481C117.934%2087.045%20117.296%2086.0703%20116.507%2086.0703Z%22%20fill%3D%22url%28%23paint5_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%2067.1953H78.6367C77.8481%2067.1953%2077.207%2068.17%2077.207%2069.3731C77.207%2070.5762%2077.8481%2071.5509%2078.6367%2071.5509H116.507C117.296%2071.5509%20117.934%2070.5762%20117.934%2069.3731C117.934%2068.17%20117.296%2067.1953%20116.507%2067.1953Z%22%20fill%3D%22url%28%23paint6_linear_1020_82405%29%22%2F%3E%3Cpath%20d%3D%22M116.507%20104.945H78.6367C77.8481%20104.945%2077.207%20105.92%2077.207%20107.123C77.207%20108.326%2077.8481%20109.301%2078.6367%20109.301H116.507C117.296%20109.301%20117.934%20108.326%20117.934%20107.123C117.934%20105.92%20117.296%20104.945%20116.507%20104.945Z%22%20fill%3D%22url%28%23paint7_linear_1020_82405%29%22%2F%3E%3CforeignObject%20x%3D%2270.7116%22%20y%3D%2260.6843%22%20width%3D%2279.8961%22%20height%3D%2279.81%22%3E%3Cdiv%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%20style%3D%22backdrop-filter%3Ablur%288.34px%29%3Bclip-path%3Aurl%28%23bgblur_0_1020_82405_clip_path%29%3Bheight%3A100%25%3Bwidth%3A100%25%22%3E%3C%2Fdiv%3E%3C%2FforeignObject%3E%3Cpath%20data-figma-bg-blur-radius%3D%2216.6751%22%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M110.659%2085.3419C111.63%2085.3458%20112.413%2086.1299%20112.411%2087.0961L112.395%2098.2651L123.584%2098.2817C124.555%2098.2856%20125.338%2099.0696%20125.339%20100.038C125.335%20101.007%20124.55%20101.789%20123.579%20101.79L112.39%20101.773L112.373%20112.942C112.372%20113.908%20111.586%20114.69%20110.615%20114.691C109.645%20114.687%20108.862%20113.903%20108.861%20112.935L108.877%20101.766L97.6878%20101.749C96.7198%20101.748%2095.9366%20100.964%2095.9355%2099.9948C95.9395%2099.0261%2096.725%2098.2443%2097.693%2098.2458L108.883%2098.2623L108.899%2087.0934C108.903%2086.1247%20109.689%2085.3429%20110.659%2085.3419Z%22%20fill%3D%22%23CBD5E1%22%2F%3E%3Cdefs%3E%3CclipPath%20id%3D%22bgblur_0_1020_82405_clip_path%22%20transform%3D%22translate%28-70.7116%20-60.6843%29%22%3E%3Cpath%20d%3D%22M110.659%20123.819C123.513%20123.819%20133.932%20113.419%20133.932%20100.589C133.932%2087.7597%20123.513%2077.3594%20110.659%2077.3594C97.8062%2077.3594%2087.3867%2087.7597%2087.3867%20100.589C87.3867%20113.419%2097.8062%20123.819%20110.659%20123.819Z%22%2F%3E%3C%2FclipPath%3E%3ClinearGradient%20id%3D%22paint0_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2252.497%22%20x2%3D%2272.7628%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2271.372%22%20x2%3D%2272.7628%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint2_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%2290.247%22%20x2%3D%2272.7628%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint3_linear_1020_82405%22%20x1%3D%2247.1291%22%20y1%3D%22109.122%22%20x2%3D%2272.7628%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint4_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2252.497%22%20x2%3D%22120.344%22%20y2%3D%2252.497%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint5_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2290.247%22%20x2%3D%22120.344%22%20y2%3D%2290.247%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint6_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%2271.372%22%20x2%3D%22120.344%22%20y2%3D%2271.372%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint7_linear_1020_82405%22%20x1%3D%2275.4847%22%20y1%3D%22109.122%22%20x2%3D%22120.344%22%20y2%3D%22109.122%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23CBD5E1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23F8F9FB%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E\""],"names":["EmptyResultIconSVG"],"mappings":"cA0KA,IAAAA,EAAe"}
@@ -1,2 +0,0 @@
1
- import{__assign as e,__awaiter as r,__generator as n,__spreadArray as t}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useMemo as u,useEffect as c}from"react";import{Dialog as d,Box as p,Typography as f,IconButton as m,DialogContent as h,CircularProgress as g}from"@mui/material";import{X as v,Search as b,ArrowRight as x}from"lucide-react";import{Toast as S}from"primereact/toast";import{v4 as y}from"uuid";import w from"../../assets/Search-result(add new).svg.js";import C from"../../store/useAuthStore.js";import{IL_CONFIG_CONSTANTS as _}from"../../config.js";import{retrieveGenreScopes as O,fetchStationsByKeyword as F,searchScopes as T,inheritScope as A,deleteRuleSet as N,updateStation as M,createRuleSet as E}from"../../apis/scopeApis.js";import k from"./InputField.js";import D from"./StationAutocomplete.js";import z from"../CardSkeleton.js";import P from"./OnboardingLoader.js";import B from"./TemplateCard.js";var j=[{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"},{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"}],I=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],L=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],R=function(R){var W,U=R.isOpen,q=R.onClose,G=R.onBoardStation,Y=R.app_integration_id,H=R.token,K=R.stationNameParam,X=a(null),J=X[0],Q=X[1],V=a([]),Z=V[0],$=V[1],ee=a(0),re=ee[0],ne=ee[1],te=a(!0),oe=te[0],ie=te[1],le=a(!1),ae=le[0],se=le[1],ue=a([]),ce=ue[0],de=ue[1],pe=a(""),fe=pe[0],me=pe[1],he=a(""),ge=he[0],ve=he[1],be=a(!1),xe=be[0],Se=be[1],ye=a(!1),we=ye[0],Ce=ye[1],_e=a(null),Oe=_e[0],Fe=_e[1],Te=a(!1),Ae=Te[0],Ne=Te[1],Me=a(0),Ee=Me[0],ke=Me[1],De=a(""),ze=De[0],Pe=De[1],Be=C().user,je=s(null),Ie=s(null),Le=s(null),Re=s(null),We=a({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),Ue=We[0],qe=We[1],Ge=function(e,r){return e.find(function(e){return e.value===r})||null},Ye=u(function(){return Z.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[Z]),He=u(function(){var e,r,n;if(!Ue.genre)return null;var t=Z.find(function(e){return e.scope_name===Ue.genre});return t?{id:t.id,title:t.scope_name||"Unnamed Template",description:(null===(e=t.description)||void 0===e?void 0:e.trim())||"No description available.",inheritedText:(null===(r=t.inheritance)||void 0===r?void 0:r[0])||void 0,rulesCount:t.rules_count||0,tiersCount:t.tier_count||0,isCopy:null!==(n=t.is_copy)&&void 0!==n&&n}:null},[Ue.genre,Z]);c(function(){return function(){Le.current&&clearTimeout(Le.current)}},[]);var Ke=function(e){return r(void 0,void 0,void 0,function(){var r,o,i;return n(this,function(n){switch(n.label){case 0:if(ae)return[2];se(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,O({limit:"20",offset:String(e)})];case 2:return"success"===(null==(r=n.sent())?void 0:r.status)&&Array.isArray(null==r?void 0:r.data)?(o=r.data,$(function(r){if(0===e)return o;var n=new Set(r.map(function(e){return e.id})),i=o.filter(function(e){return!n.has(e.id)});return t(t([],r,!0),i,!0)}),o.length<20?ie(!1):ie(!0),ne(e+20)):ie(!1),[3,5];case 3:return i=n.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",i),ie(!1),[3,5];case 4:return se(!1),[7];case 5:return[2]}})})};c(function(){if(U&&($([]),ne(0),ie(!0),Ke(0),K)){Pe(K);r(void 0,void 0,void 0,function(){var e,r,t;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,F(K,!0)];case 1:return!0===(null==(e=n.sent())?void 0:e.success)&&Array.isArray(null==e?void 0:e.data)&&(r=e.data.find(function(e){var r;return(null===(r=e.station_name)||void 0===r?void 0:r.toLowerCase())===K.toLowerCase()&&!e.ruleset_id}),r&&Q(r)),[3,3];case 2:return t=n.sent(),console.error("[StationOnboard] Error auto-selecting station:",t),[3,3];case 3:return[2]}})})}},[U,K]);c(function(){qe(J?function(r){var n;return e(e({},r),{region:null!==(n=J.market)&&void 0!==n?n:""})}:{region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""})},[J]),c(function(){var e=setTimeout(function(){ve(fe)},500);return function(){return clearTimeout(e)}},[fe]),c(function(){r(void 0,void 0,void 0,function(){var e,r,t;return n(this,function(n){switch(n.label){case 0:if(!ge.trim())return de([]),[2];Se(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,T({search_string:ge})];case 2:return"success"===(null==(e=n.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(r=e.data.map(function(e){var r,n,t;return{id:e.id,title:e.scope_name||"Unnamed Template",description:(null===(r=e.description)||void 0===r?void 0:r.trim())||"No description available.",inheritedText:(null===(n=e.inheritance)||void 0===n?void 0:n[0])||void 0,rulesCount:e.rules_count||0,tiersCount:e.tier_count||0,isCopy:null!==(t=e.is_copy)&&void 0!==t&&t}}),de(r)):de([]),[3,5];case 3:return t=n.sent(),console.error("[StationOnboard] Error searching scopes:",t),de([]),[3,5];case 4:return Se(!1),[7];case 5:return[2]}})})},[ge]),c(function(){!ge.trim()&&He&&Fe(He.id)},[ge,He]);var Xe=function(){setTimeout(function(){Re.current&&Re.current.scrollTo({top:Re.current.scrollHeight,behavior:"smooth"})},100)},Je=function(){Pe(""),Q(null),qe({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),de([]),me(""),Fe(null),q()},Qe=function(r,n){var t;if("primeTime"!==r){var o=null!==(t=null==n?void 0:n.value)&&void 0!==t?t:"";qe(function(n){var t;return e(e({},n),((t={})[r]=String(o),t))}),"genre"===r&&(Ce(!0),Le.current&&clearTimeout(Le.current),Le.current=setTimeout(function(){var e=Z.find(function(e){return e.scope_name===o});Fe(e?e.id:null),Ce(!1)},800))}else{var i=(null==n?void 0:n.value)?String(n.value):"";qe(function(r){return e(e({},r),{primeTime:i?[i]:[]})})}},Ve=Boolean(J&&Ue.region&&Ue.primeTime.length>0&&Ue.genre);return o(d,e({open:U,onClose:Je,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"}}},{children:[i(S,{ref:je}),o(p,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[o(p,e({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[i(f,e({sx:{fontSize:"18px",fontWeight:600,color:"#19213D"}},{children:"Onboard a Station"})),i(f,e({sx:{fontSize:"16px",fontWeight:400,color:"#666F8D"}},{children:"Onboard a station to start configuring learnings."}))]})),i(m,e({onClick:Je,disabled:Ae,sx:{color:"#19213D"}},{children:i(v,{size:24})}))]})),o(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[i(P,{isLoading:Ae,currentStep:Ee,onComplete:function(){Ne(!1);var e=Ie.current;Je(),G(e||void 0),Ie.current=null}}),o(p,e({sx:{display:"flex",flex:1,paddingY:"14px",paddingX:"20px",gap:3,overflowY:"hidden"}},{children:[o(p,e({ref:Re,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5",height:"100%",overflowY:"auto"}},{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Basic Details"})),i(f,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Set up basic station details to unlock AI recommended scopes."})),o(p,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[o(p,e({className:"space-y-1.5"},{children:[o("label",e({className:"text-sm font-medium text-[#19213D]"},{children:[i("span",e({className:"mr-0.5 text-xs font-semibold text-[#8F2C23]"},{children:"*"})),"Station Name/Call Letters"]})),i(D,{value:ze,onChange:Pe,onStationSelect:function(e){return Q(e)}})]})),i(k,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:Ue.region||void 0,isSearchable:!1}),i(k,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:j,value:Ge(j,(null===(W=Ue.primeTime)||void 0===W?void 0:W[0])||""),onOptionChange:function(e){return Qe("primeTime",e)},isSearchable:!1}),i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{required:!0,label:"Genre",placeholder:"Select Genre",options:Ye,value:Ge(Ye,Ue.genre),onOptionChange:function(e){return Qe("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!ae&&oe&&Ke(re)},isLoadingOptions:ae,hasMoreOptions:oe})})),i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{label:"Station Type",placeholder:"None",options:I,value:Ge(I,Ue.type),onOptionChange:function(r){Qe("type",r),"Low Sellout"!==(null==r?void 0:r.value)&&qe(function(r){return e(e({},r),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===Ue.type&&i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:L,value:Ge(L,Ue.lowSelloutConfig),onOptionChange:function(e){return Qe("lowSelloutConfig",e)},isSearchable:!1})}))]}))]})),i(p,e({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column",height:"100%",overflowY:"auto"}},{children:Ue.genre?o(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Matching scope for your station"})),i(p,e({sx:{display:"flex",flexDirection:"column",gap:2,mb:4}},{children:we?i(z,{}):He?i(B,e({},He,{isSelected:Oe===He.id,onSelect:Fe}),He.id):null})),i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Other available stations"})),o("div",e({className:"relative mb-4 w-full"},{children:[i("input",{type:"text",value:fe,onChange:function(e){return me(e.target.value)},placeholder:"Search for station...",className:"w-full rounded-lg border border-[#E2E8F0] px-10 py-[7px] text-[12px] outline-none transition-all placeholder:text-[#BAC0CC] focus:border-blue-500 focus:ring-1 focus:ring-blue-500"}),i(b,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",size:16})]})),o(p,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[xe&&i(z,{}),!xe&&0===ce.length&&ge.trim()&&o(f,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',ge,'".']})),!xe&&ce.map(function(r){return i(B,e({},r,{isSelected:Oe===r.id,onSelect:Fe}),r.id)})]}))]}):o(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Fill in the station details to load AI recommended scopes"})),i(f,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:3}},{children:"AI will recommend the most relevant scope for this station."})),i(p,e({sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.5,py:10}},{children:i("img",{src:w,alt:"Empty Result"})}))]})}))]}))]})),o(p,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[i("button",e({onClick:Je,disabled:Ae,style:{padding:"7px 10px",borderRadius:"6px",color:"#64748B",border:"1px solid #E2E8F0",backgroundColor:"#fff",cursor:"pointer",fontSize:"14px",fontWeight:500}},{children:"Cancel"})),i("button",e({onClick:function(){return r(void 0,void 0,void 0,function(){var r,o,i,l,a,s,u,c,d,p,f,m,h,g,v,b,x,S;return n(this,function(n){switch(n.label){case 0:if(!J||!Oe)return console.error("[StationOnboard] Missing required data for onboarding"),[2];r=He?t([He],ce,!0):ce,o=r.find(function(e){return e.id===Oe}),i=null!==(h=null==o?void 0:o.isCopy)&&void 0!==h&&h,Ne(!0),ke(0),l=null,n.label=1;case 1:return n.trys.push([1,3,,4]),a={topic:"customRuleSet",customScopeGroupName:(null==_?void 0:_.CUSTOM_SCOPE_GROUP_NAME)||"Audacy-Traffic-Manager",scopeDescription:J.station_name||"New Station",parentScopeId:null,customScopeName:J.station_name||"New Station",customScopeId:y(),createByName:(null==Be?void 0:Be.firstname)||"System",createdBy:(null==Be?void 0:Be.email)||"system@audacy.com",applicationMappingId:Y},console.log("[StationOnboard] Step 1: Creating rule set with payload:",a),[4,E(a,H)];case 2:if(s=n.sent(),!(l=null===(g=null==s?void 0:s.data)||void 0===g?void 0:g.scopeId))throw new Error("Failed to create scope - no scopeId returned");return ke(1),[3,4];case 3:return u=n.sent(),console.error("[StationOnboard] Error creating rule set:",u),null===(v=je.current)||void 0===v||v.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),Ne(!1),ke(0),[2];case 4:return n.trys.push([4,6,,11]),c={market:J.market,region:J.region,primetime_windows:Ue.primeTime,genre:Ue.genre,station_type:""===Ue.type?null:Ue.type,low_sellout_configurations:"Low Sellout"===Ue.type?Ue.lowSelloutConfig:null,ruleset_id:l,station_guid:J.station_guid,station_name:J.station_name||"New Station"},console.log("[StationOnboard] Step 2: Updating station with payload:",c),[4,M(c)];case 5:return n.sent(),ke(2),[3,11];case 6:d=n.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",d),409===d.status?(null===(b=je.current)||void 0===b||b.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),Q(null),Fe(null),Pe(""),qe(function(r){return e(e({},r),{region:""})})):null===(x=je.current)||void 0===x||x.show({severity:"error",life:2500,summary:"Error updating station",detail:"Please try again."}),n.label=7;case 7:return n.trys.push([7,9,,10]),[4,N(l,H)];case 8:return n.sent(),[3,10];case 9:return p=n.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",p),[3,10];case 10:return Ne(!1),ke(0),[2];case 11:return n.trys.push([11,13,,14]),f={source_scope_id:Oe,target_scope_id:l,is_copy_parent_variant_id:i},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",f),[4,A(f)];case 12:return n.sent(),ke(3),[3,14];case 13:return m=n.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",m),null===(S=je.current)||void 0===S||S.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),Ne(!1),ke(0),[2];case 14:return Ie.current=l,[2]}})})},disabled:!Ve||Ae,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:Ve?"#2563EB":"#BFDBFE",color:"#fff",cursor:Ve&&!Ae?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:o(l,Ae?{children:[i(g,{size:16,color:"inherit"}),i("span",{children:"Onboarding..."})]}:{children:[i("span",{children:"Onboard Station"}),i(x,{size:16})]})}))]}))]}))};export{R as default};
2
- //# sourceMappingURL=BackwardStationOnboardModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BackwardStationOnboardModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- interface StationOnboardModalProps {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- onBoardStation: (scopeId?: string) => void;
6
- app_integration_id?: string;
7
- token: string;
8
- stationNameParam?: string;
9
- }
10
- declare const BackwardStationOnboardModal: React.FC<StationOnboardModalProps>;
11
- export default BackwardStationOnboardModal;
12
- //# sourceMappingURL=BackwardStationOnboardModal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BackwardStationOnboardModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AA+DpE,UAAU,wBAAwB;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAitBnE,CAAC;AAEF,eAAe,2BAA2B,CAAC"}