@e-llm-studio/instant-learning 0.1.1-alpha.17 → 0.1.1-alpha.18

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 (20) hide show
  1. package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
  2. package/dist/cjs/features/LearningManagement/apis/apiConfig.js +1 -1
  3. package/dist/cjs/features/LearningManagement/apis/scopeApis.js +1 -1
  4. package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
  5. package/dist/cjs/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
  6. package/dist/cjs/features/LearningManagement/store/useConfigStore.js +1 -1
  7. package/dist/cjs/plugins/valueTypes/Default/DefaultTeachMeRenderer.js +1 -1
  8. package/dist/features/LearningManagement/LearningManagement.js +1 -1
  9. package/dist/features/LearningManagement/apis/apiConfig.js +1 -1
  10. package/dist/features/LearningManagement/apis/scopeApis.js +1 -1
  11. package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
  12. package/dist/features/LearningManagement/components/StationOnboarding/StationOnboardModal.js +1 -1
  13. package/dist/features/LearningManagement/store/useConfigStore.js +1 -1
  14. package/dist/plugins/valueTypes/Default/DefaultTeachMeRenderer.js +1 -1
  15. package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts +1 -1
  16. package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts.map +1 -1
  17. package/dist/types/src/features/LearningManagement/store/useConfigStore.d.ts.map +1 -1
  18. package/dist/types/src/plugins/valueTypes/Default/DefaultTeachMeRenderer.d.ts.map +1 -1
  19. package/dist/types/src/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +1 -1
  20. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as n,__generator as o,__spreadArray as r}from"tslib";import{jsxs as t,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useMemo as c,useEffect as u}from"react";import{Dialog as d,Box as p,Typography as f,IconButton as m,DialogContent as h,CircularProgress as g}from"@mui/material";import{X as v,BrushCleaning as b,Search as S,ArrowRight as x}from"lucide-react";import{Toast as y}from"primereact/toast";import{retrieveGenreScopes as C,searchScopes as w,inheritScope as T,deleteRuleSet as _,updateStation as O,createRuleSet as F}from"../../apis/scopeApis.js";import z from"./StationAutocomplete.js";import k from"../CardSkeleton.js";import D from"./OnboardingLoader.js";import E from"./TemplateCard.js";import N from"../../styles/StationOnboardModal.module.css.js";import I from"./InputField.js";import A from"../../store/useAuthStore.js";import{useConfigStore as M}from"../../store/useConfigStore.js";var j=[{label:"PT - Pacific Time",value:"Pacific Time"},{label:"MT - Mountain Time",value:"Mountain Time"},{label:"CT - Central Time",value:"Central Time"},{label:"ET - Eastern Time",value:"Eastern Time"}],P=[{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"},{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"}],B=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],W=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],L=function(L){var R,q=L.isOpen,Y=L.onClose,G=L.onBoardStation,H=L.app_integration_id,U=L.token,Z=a(null),K=Z[0],X=Z[1],J=a([]),Q=J[0],V=J[1],$=a(0),ee=$[0],ne=$[1],oe=a(!0),re=oe[0],te=oe[1],ie=a(!1),le=ie[0],ae=ie[1],se=a([]),ce=se[0],ue=se[1],de=a(""),pe=de[0],fe=de[1],me=a(""),he=me[0],ge=me[1],ve=a(!1),be=ve[0],Se=ve[1],xe=a(!1),ye=xe[0],Ce=xe[1],we=a(null),Te=we[0],_e=we[1],Oe=a(!1),Fe=Oe[0],ze=Oe[1],ke=a(0),De=ke[0],Ee=ke[1],Ne=a(""),Ie=Ne[0],Ae=Ne[1];A().user;var Me=s(null),je=s(null),Pe=s(null),Be=s(null);M().configuration;var We=a({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),Le=We[0],Re=We[1],qe=function(e,n){return e.find(function(e){return e.value===n})||null},Ye=c(function(){return Q.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[Q]),Ge=c(function(){var e,n,o;if(!Le.genre)return null;var r=Q.find(function(e){return e.scope_name===Le.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!==(o=r.is_copy)&&void 0!==o&&o}:null},[Le.genre,Q]);u(function(){return function(){Pe.current&&clearTimeout(Pe.current)}},[]);var He=function(e){return n(void 0,void 0,void 0,function(){var n,t,i;return o(this,function(o){switch(o.label){case 0:if(le)return[2];ae(!0),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,C({limit:"20",offset:String(e)})];case 2:return"success"===(null==(n=o.sent())?void 0:n.status)&&Array.isArray(null==n?void 0:n.data)?(t=n.data,V(function(n){if(0===e)return t;var o=new Set(n.map(function(e){return e.id})),i=t.filter(function(e){return!o.has(e.id)});return r(r([],n,!0),i,!0)}),t.length<20?te(!1):te(!0),ne(e+20)):te(!1),[3,5];case 3:return i=o.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",i),te(!1),[3,5];case 4:return ae(!1),[7];case 5:return[2]}})})};u(function(){q&&(V([]),ne(0),te(!0),He(0))},[q]);u(function(){Re(K?function(n){var o;return e(e({},n),{region:null!==(o=K.market)&&void 0!==o?o:""})}:{region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""})},[K]),u(function(){var e=setTimeout(function(){ge(pe)},500);return function(){return clearTimeout(e)}},[pe]),u(function(){n(void 0,void 0,void 0,function(){var e,n,r;return o(this,function(o){switch(o.label){case 0:if(!he.trim())return ue([]),[2];Se(!0),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,w({search_string:he})];case 2:return"success"===(null==(e=o.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(n=e.data.map(function(e){var n,o,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===(o=e.inheritance)||void 0===o?void 0:o[0])||void 0,rulesCount:e.rules_count||0,tiersCount:e.tier_count||0,isCopy:null!==(r=e.is_copy)&&void 0!==r&&r}}),ue(n)):ue([]),[3,5];case 3:return r=o.sent(),console.error("[StationOnboard] Error searching scopes:",r),ue([]),[3,5];case 4:return Se(!1),[7];case 5:return[2]}})})},[he]),u(function(){!he.trim()&&Ge&&_e(Ge.id)},[he,Ge]);var Ue=function(){setTimeout(function(){Be.current&&Be.current.scrollTo({top:Be.current.scrollHeight,behavior:"smooth"})},100)},Ze=function(){Ae(""),X(null),Re({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),ue([]),fe(""),_e(null),Y()},Ke=function(n,o){var r;if("primeTime"!==n){var t=null!==(r=null==o?void 0:o.value)&&void 0!==r?r:"";Re(function(o){var r;return e(e({},o),((r={})[n]=String(t),r))}),"genre"===n&&(Ce(!0),Pe.current&&clearTimeout(Pe.current),Pe.current=setTimeout(function(){var e=Q.find(function(e){return e.scope_name===t});_e(e?e.id:null),Ce(!1)},800))}else{var i=(null==o?void 0:o.value)?String(o.value):"";Re(function(n){return e(e({},n),{primeTime:i?[i]:[]})})}},Xe=Boolean(K&&Le.region&&Le.timezone&&Le.primeTime.length>0&&Le.genre);return t(d,e({open:q,onClose:Ze,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"sans-serif"}}},{children:[i(y,{ref:Me}),t(p,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[t(p,e({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[i(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:Ze,disabled:Fe,sx:{color:"#19213D"}},{children:i(v,{size:24})}))]})),t(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[i(D,{isLoading:Fe,currentStep:De,onComplete:function(){ze(!1);var e=je.current;Ze(),G(e||void 0),je.current=null}}),t(p,e({sx:{display:"flex",flex:1,paddingY:"14px",paddingX:"20px",gap:3,overflowY:"hidden"}},{children:[t(p,e({ref:Be,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5",height:"100%",overflowY:"auto"}},{children:[i(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."})),t(p,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[t(p,e({className:N.formGroup},{children:[t("label",e({className:N.label},{children:[i("span",e({className:N.asterisk},{children:"*"})),"Station Name/Call Letters"]})),i(z,{value:Ie,onChange:Ae,onStationSelect:function(e){return X(e)}})]})),i(I,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:Le.region||void 0,isSearchable:!1}),i(I,{required:!0,label:"TimeZone",placeholder:"Select TimeZone",options:j,value:qe(j,Le.timezone),onOptionChange:function(e){return Ke("timezone",e)},isSearchable:!1}),i(I,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:P,value:qe(P,(null===(R=Le.primeTime)||void 0===R?void 0:R[0])||""),onOptionChange:function(e){return Ke("primeTime",e)},isSearchable:!1}),i(p,e({onClick:Ue,sx:{width:"100%"}},{children:i(I,{required:!0,label:"Genre",placeholder:"Select Genre",options:Ye,value:qe(Ye,Le.genre),onOptionChange:function(e){return Ke("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!le&&re&&He(ee)},isLoadingOptions:le,hasMoreOptions:re})})),i(p,e({onClick:Ue,sx:{width:"100%"}},{children:i(I,{label:"Station Type",placeholder:"None",options:B,value:qe(B,Le.type),onOptionChange:function(n){Ke("type",n),"Low Sellout"!==(null==n?void 0:n.value)&&Re(function(n){return e(e({},n),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===Le.type&&i(p,e({onClick:Ue,sx:{width:"100%"}},{children:i(I,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:W,value:qe(W,Le.lowSelloutConfig),onOptionChange:function(e){return Ke("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:Le.genre?t(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:ye?i(k,{}):Ge?i(E,e({},Ge,{isSelected:Te===Ge.id,onSelect:_e}),Ge.id):null})),i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Other available stations"})),t("div",e({className:N.searchWrapper},{children:[i("input",{type:"text",value:pe,onChange:function(e){return fe(e.target.value)},placeholder:"Search for station...",className:N.searchInput}),i(S,{className:N.searchIcon,size:16})]})),t(p,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[be&&i(k,{}),!be&&0===ce.length&&he.trim()&&t(f,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',he,'".']})),!be&&ce.map(function(n){return i(E,e({},n,{isSelected:Te===n.id,onSelect:_e}),n.id)})]}))]}):t(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(b,{})}))]})}))]}))]})),t(p,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[i("button",e({onClick:Ze,disabled:Fe,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 n(void 0,void 0,void 0,function(){var n,t,i,l,a,s,c,u,d,p,f,m,h,g,v,b,S,x;return o(this,function(o){switch(o.label){case 0:if(!K||!Te)return console.error("[StationOnboard] Missing required data for onboarding"),[2];n=Ge?r([Ge],ce,!0):ce,t=n.find(function(e){return e.id===Te}),i=null!==(h=null==t?void 0:t.isCopy)&&void 0!==h&&h,ze(!0),Ee(0),l=null,o.label=1;case 1:return o.trys.push([1,3,,4]),a={topic:"customRuleSet",scope_reference_id:null,scopeDescription:"demo",parentScopeId:null,scopeName:K.station_name||"New Station",scopeReferenceMetadata:{},applicationMappingId:H},console.log("[StationOnboard] Step 1: Creating rule set with payload:",a),[4,F(a,U)];case 2:if(s=o.sent(),!(l=null===(g=null==s?void 0:s.data)||void 0===g?void 0:g.scopeId))throw new Error("Failed to create scope - no scopeId returned");return console.log("[StationOnboard] Step 1 Complete: Created scope with ID:",l),Ee(1),[3,4];case 3:return c=o.sent(),console.error("[StationOnboard] Error creating rule set:",c),null===(v=Me.current)||void 0===v||v.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),ze(!1),Ee(0),[2];case 4:return o.trys.push([4,6,,11]),u={market:K.market,region:K.region,timezone:Le.timezone,primetime_windows:Le.primeTime,genre:Le.genre,station_type:""===Le.type?null:Le.type,low_sellout_configurations:"Low Sellout"===Le.type?Le.lowSelloutConfig:null,ruleset_id:l,station_guid:K.station_guid,station_name:K.station_name||"New Station"},console.log("[StationOnboard] Step 2: Updating station with payload:",u),[4,O(u)];case 5:return o.sent(),console.log("[StationOnboard] Step 2 Complete: Station updated"),Ee(2),[3,11];case 6:d=o.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",d),409===d.status?(null===(b=Me.current)||void 0===b||b.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),X(null),_e(null),Ae(""),Re(function(n){return e(e({},n),{region:""})})):null===(S=Me.current)||void 0===S||S.show({severity:"error",life:2500,summary:"Error updating station",detail:"Please try again."}),o.label=7;case 7:return o.trys.push([7,9,,10]),[4,_(l)];case 8:return o.sent(),console.log("[StationOnboard] Rollback complete: Deleted rule set",l),[3,10];case 9:return p=o.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",p),[3,10];case 10:return ze(!1),Ee(0),[2];case 11:return o.trys.push([11,13,,14]),f={source_scope_id:Te,target_scope_id:l,is_copy_parent_variant_id:i},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",f),[4,T(f)];case 12:return o.sent(),console.log("[StationOnboard] Step 3 Complete: Scope inherited"),Ee(3),[3,14];case 13:return m=o.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",m),null===(x=Me.current)||void 0===x||x.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),ze(!1),Ee(0),[2];case 14:return je.current=l,console.log("[StationOnboard] Onboarding completed successfully!"),[2]}})})},disabled:!Xe||Fe,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:Xe?"#2563EB":"#BFDBFE",color:"#fff",cursor:Xe&&!Fe?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:t(l,Fe?{children:[i(g,{size:16,color:"inherit"}),i("span",{children:"Onboarding..."})]}:{children:[i("span",{children:"Onboard Station"}),i(x,{size:16})]})}))]}))]}))};export{L as default};
1
+ import{__assign as e,__awaiter as n,__generator as o,__spreadArray as r}from"tslib";import{jsxs as t,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useMemo as c,useEffect as u}from"react";import{Dialog as d,Box as p,Typography as f,IconButton as m,DialogContent as h,CircularProgress as g}from"@mui/material";import{X as v,BrushCleaning as b,Search as S,ArrowRight as x}from"lucide-react";import{Toast as y}from"primereact/toast";import{retrieveGenreScopes as C,searchScopes as w,inheritScope as T,deleteRuleSet as _,updateStation as O,createRuleSet as F}from"../../apis/scopeApis.js";import z from"./StationAutocomplete.js";import k from"../CardSkeleton.js";import D from"./OnboardingLoader.js";import E from"./TemplateCard.js";import N from"../../styles/StationOnboardModal.module.css.js";import I from"./InputField.js";import A from"../../store/useAuthStore.js";import{useConfigStore as M}from"../../store/useConfigStore.js";var j=[{label:"PT - Pacific Time",value:"Pacific Time"},{label:"MT - Mountain Time",value:"Mountain Time"},{label:"CT - Central Time",value:"Central Time"},{label:"ET - Eastern Time",value:"Eastern Time"}],P=[{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"},{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"}],B=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],W=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],L=function(L){var R,q=L.isOpen,Y=L.onClose,G=L.onBoardStation,H=L.app_integration_id,U=L.token,Z=a(null),K=Z[0],X=Z[1],J=a([]),Q=J[0],V=J[1],$=a(0),ee=$[0],ne=$[1],oe=a(!0),re=oe[0],te=oe[1],ie=a(!1),le=ie[0],ae=ie[1],se=a([]),ce=se[0],ue=se[1],de=a(""),pe=de[0],fe=de[1],me=a(""),he=me[0],ge=me[1],ve=a(!1),be=ve[0],Se=ve[1],xe=a(!1),ye=xe[0],Ce=xe[1],we=a(null),Te=we[0],_e=we[1],Oe=a(!1),Fe=Oe[0],ze=Oe[1],ke=a(0),De=ke[0],Ee=ke[1],Ne=a(""),Ie=Ne[0],Ae=Ne[1];A().user;var Me=s(null),je=s(null),Pe=s(null),Be=s(null);M().configuration;var We=a({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),Le=We[0],Re=We[1],qe=function(e,n){return e.find(function(e){return e.value===n})||null},Ye=c(function(){return Q.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[Q]),Ge=c(function(){var e,n,o;if(!Le.genre)return null;var r=Q.find(function(e){return e.scope_name===Le.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!==(o=r.is_copy)&&void 0!==o&&o}:null},[Le.genre,Q]);u(function(){return function(){Pe.current&&clearTimeout(Pe.current)}},[]);var He=function(e){return n(void 0,void 0,void 0,function(){var n,t,i;return o(this,function(o){switch(o.label){case 0:if(le)return[2];ae(!0),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,C({limit:"20",offset:String(e)})];case 2:return"success"===(null==(n=o.sent())?void 0:n.status)&&Array.isArray(null==n?void 0:n.data)?(t=n.data,V(function(n){if(0===e)return t;var o=new Set(n.map(function(e){return e.id})),i=t.filter(function(e){return!o.has(e.id)});return r(r([],n,!0),i,!0)}),t.length<20?te(!1):te(!0),ne(e+20)):te(!1),[3,5];case 3:return i=o.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",i),te(!1),[3,5];case 4:return ae(!1),[7];case 5:return[2]}})})};u(function(){q&&(V([]),ne(0),te(!0),He(0))},[q]);u(function(){Re(K?function(n){var o;return e(e({},n),{region:null!==(o=K.market)&&void 0!==o?o:""})}:{region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""})},[K]),u(function(){var e=setTimeout(function(){ge(pe)},500);return function(){return clearTimeout(e)}},[pe]),u(function(){n(void 0,void 0,void 0,function(){var e,n,r;return o(this,function(o){switch(o.label){case 0:if(!he.trim())return ue([]),[2];Se(!0),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,w({search_string:he})];case 2:return"success"===(null==(e=o.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(n=e.data.map(function(e){var n,o,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===(o=e.inheritance)||void 0===o?void 0:o[0])||void 0,rulesCount:e.rules_count||0,tiersCount:e.tier_count||0,isCopy:null!==(r=e.is_copy)&&void 0!==r&&r}}),ue(n)):ue([]),[3,5];case 3:return r=o.sent(),console.error("[StationOnboard] Error searching scopes:",r),ue([]),[3,5];case 4:return Se(!1),[7];case 5:return[2]}})})},[he]),u(function(){!he.trim()&&Ge&&_e(Ge.id)},[he,Ge]);var Ue=function(){setTimeout(function(){Be.current&&Be.current.scrollTo({top:Be.current.scrollHeight,behavior:"smooth"})},100)},Ze=function(){Ae(""),X(null),Re({region:"",timezone:"",primeTime:[],genre:"",type:"",lowSelloutConfig:""}),ue([]),fe(""),_e(null),Y()},Ke=function(n,o){var r;if("primeTime"!==n){var t=null!==(r=null==o?void 0:o.value)&&void 0!==r?r:"";Re(function(o){var r;return e(e({},o),((r={})[n]=String(t),r))}),"genre"===n&&(Ce(!0),Pe.current&&clearTimeout(Pe.current),Pe.current=setTimeout(function(){var e=Q.find(function(e){return e.scope_name===t});_e(e?e.id:null),Ce(!1)},800))}else{var i=(null==o?void 0:o.value)?String(o.value):"";Re(function(n){return e(e({},n),{primeTime:i?[i]:[]})})}},Xe=Boolean(K&&Le.region&&Le.timezone&&Le.primeTime.length>0&&Le.genre);return t(d,e({open:q,onClose:Ze,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"sans-serif"}}},{children:[i(y,{ref:Me}),t(p,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[t(p,e({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[i(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:Ze,disabled:Fe,sx:{color:"#19213D"}},{children:i(v,{size:24})}))]})),t(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[i(D,{isLoading:Fe,currentStep:De,onComplete:function(){ze(!1);var e=je.current;Ze(),G(e||void 0),je.current=null}}),t(p,e({sx:{display:"flex",flex:1,paddingY:"14px",paddingX:"20px",gap:3,overflowY:"hidden"}},{children:[t(p,e({ref:Be,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5",height:"100%",overflowY:"auto"}},{children:[i(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."})),t(p,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[t(p,e({className:N.formGroup},{children:[t("label",e({className:N.label},{children:[i("span",e({className:N.asterisk},{children:"*"})),"Station Name/Call Letters"]})),i(z,{value:Ie,onChange:Ae,onStationSelect:function(e){return X(e)}})]})),i(I,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:Le.region||void 0,isSearchable:!1}),i(I,{required:!0,label:"TimeZone",placeholder:"Select TimeZone",options:j,value:qe(j,Le.timezone),onOptionChange:function(e){return Ke("timezone",e)},isSearchable:!1}),i(I,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:P,value:qe(P,(null===(R=Le.primeTime)||void 0===R?void 0:R[0])||""),onOptionChange:function(e){return Ke("primeTime",e)},isSearchable:!1}),i(p,e({onClick:Ue,sx:{width:"100%"}},{children:i(I,{required:!0,label:"Genre",placeholder:"Select Genre",options:Ye,value:qe(Ye,Le.genre),onOptionChange:function(e){return Ke("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!le&&re&&He(ee)},isLoadingOptions:le,hasMoreOptions:re})})),i(p,e({onClick:Ue,sx:{width:"100%"}},{children:i(I,{label:"Station Type",placeholder:"None",options:B,value:qe(B,Le.type),onOptionChange:function(n){Ke("type",n),"Low Sellout"!==(null==n?void 0:n.value)&&Re(function(n){return e(e({},n),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===Le.type&&i(p,e({onClick:Ue,sx:{width:"100%"}},{children:i(I,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:W,value:qe(W,Le.lowSelloutConfig),onOptionChange:function(e){return Ke("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:Le.genre?t(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:ye?i(k,{}):Ge?i(E,e({},Ge,{isSelected:Te===Ge.id,onSelect:_e}),Ge.id):null})),i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Other available stations"})),t("div",e({className:N.searchWrapper},{children:[i("input",{type:"text",value:pe,onChange:function(e){return fe(e.target.value)},placeholder:"Search for station...",className:N.searchInput}),i(S,{className:N.searchIcon,size:16})]})),t(p,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[be&&i(k,{}),!be&&0===ce.length&&he.trim()&&t(f,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',he,'".']})),!be&&ce.map(function(n){return i(E,e({},n,{isSelected:Te===n.id,onSelect:_e}),n.id)})]}))]}):t(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(b,{})}))]})}))]}))]})),t(p,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[i("button",e({onClick:Ze,disabled:Fe,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 n(void 0,void 0,void 0,function(){var n,t,i,l,a,s,c,u,d,p,f,m,h,g,v,b,S,x;return o(this,function(o){switch(o.label){case 0:if(!K||!Te)return console.error("[StationOnboard] Missing required data for onboarding"),[2];n=Ge?r([Ge],ce,!0):ce,t=n.find(function(e){return e.id===Te}),i=null!==(h=null==t?void 0:t.isCopy)&&void 0!==h&&h,ze(!0),Ee(0),l=null,o.label=1;case 1:return o.trys.push([1,3,,4]),a={topic:"customRuleSet",scope_reference_id:null,scopeDescription:"demo",parentScopeId:null,scopeName:K.station_name||"New Station",scopeReferenceMetadata:{},applicationMappingId:H},console.log("[StationOnboard] Step 1: Creating rule set with payload:",a),[4,F(a,U)];case 2:if(s=o.sent(),!(l=null===(g=null==s?void 0:s.data)||void 0===g?void 0:g.scopeId))throw new Error("Failed to create scope - no scopeId returned");return console.log("[StationOnboard] Step 1 Complete: Created scope with ID:",l),Ee(1),[3,4];case 3:return c=o.sent(),console.error("[StationOnboard] Error creating rule set:",c),null===(v=Me.current)||void 0===v||v.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),ze(!1),Ee(0),[2];case 4:return o.trys.push([4,6,,11]),u={market:K.market,region:K.region,timezone:Le.timezone,primetime_windows:Le.primeTime,genre:Le.genre,station_type:""===Le.type?null:Le.type,low_sellout_configurations:"Low Sellout"===Le.type?Le.lowSelloutConfig:null,ruleset_id:l,station_guid:K.station_guid,station_name:K.station_name||"New Station"},console.log("[StationOnboard] Step 2: Updating station with payload:",u),[4,O(u)];case 5:return o.sent(),console.log("[StationOnboard] Step 2 Complete: Station updated"),Ee(2),[3,11];case 6:d=o.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",d),409===d.status?(null===(b=Me.current)||void 0===b||b.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),X(null),_e(null),Ae(""),Re(function(n){return e(e({},n),{region:""})})):null===(S=Me.current)||void 0===S||S.show({severity:"error",life:2500,summary:"Error updating station",detail:"Please try again."}),o.label=7;case 7:return o.trys.push([7,9,,10]),[4,_(l,U)];case 8:return o.sent(),console.log("[StationOnboard] Rollback complete: Deleted rule set",l),[3,10];case 9:return p=o.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",p),[3,10];case 10:return ze(!1),Ee(0),[2];case 11:return o.trys.push([11,13,,14]),f={source_scope_id:Te,target_scope_id:l,is_copy_parent_variant_id:i},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",f),[4,T(f)];case 12:return o.sent(),console.log("[StationOnboard] Step 3 Complete: Scope inherited"),Ee(3),[3,14];case 13:return m=o.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",m),null===(x=Me.current)||void 0===x||x.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),ze(!1),Ee(0),[2];case 14:return je.current=l,console.log("[StationOnboard] Onboarding completed successfully!"),[2]}})})},disabled:!Xe||Fe,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:Xe?"#2563EB":"#BFDBFE",color:"#fff",cursor:Xe&&!Fe?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:t(l,Fe?{children:[i(g,{size:16,color:"inherit"}),i("span",{children:"Onboarding..."})]}:{children:[i("span",{children:"Onboard Station"}),i(x,{size:16})]})}))]}))]}))};export{L as default};
2
2
  //# sourceMappingURL=StationOnboardModal.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as n}from"tslib";import{create as e}from"zustand";var i=e(function(e){return{configuration:null,ilLabels:{setupLabel:"Learning Setup",ruleTitle:"Learning Title",ruleDescriptionTitle:"Learning Description"},setConfig:function(n){return e(function(){return{configuration:n}})},setIlLabels:function(i){return e(function(e){return{ilLabels:n(n({},e.ilLabels),i)}})},resetConfig:function(){return e({configuration:null,ilLabels:{setupLabel:"Learning Setup",ruleTitle:"Learning Title",ruleDescriptionTitle:"Learning Description"}})}}});export{i as useConfigStore};
1
+ import{__assign as e}from"tslib";import{create as n}from"zustand";var t={"Separation rule":"I would want to add a separation rule","Max priority rule":"I would want to set a max priority rule","Break code matching":"I would want to add a break code matching rule","Inventory code matching":"I would want to add a inventory window matching rule","Enter a rule description":"I want to add a rule description","Tester Genie":"Loading prompt..."},r="<p><span>Hi! 👋 I'm your Instant Learning Concierge.</span>\n <span>How would you like to get started? You can select an option below or describe the rule you'd like to create.</span>\n ".concat(["Separation rule","Max priority rule","Break code matching","Inventory code matching","Enter a rule description","Tester Genie"].map(function(e){return'<button class="clickable-button" data-value="'.concat(t[e],'">').concat(e,"</button>")}).join(""),"</p>"),i=n(function(n){return{configuration:{INITIAL_CHAT_MESSAGE:r},ilLabels:{setupLabel:"Learning Setup",ruleTitle:"Learning Title",ruleDescriptionTitle:"Learning Description"},setConfig:function(e){return n(function(){return{configuration:e}})},setIlLabels:function(t){return n(function(n){return{ilLabels:e(e({},n.ilLabels),t)}})},resetConfig:function(){return n({configuration:null,ilLabels:{setupLabel:"Learning Setup",ruleTitle:"Learning Title",ruleDescriptionTitle:"Learning Description"}})}}});export{i as useConfigStore};
2
2
  //# sourceMappingURL=useConfigStore.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as s}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as l}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"@viswa-test/test-citation";import"../../../features/LearningManagement/store/useLearningTemplateStore.js";import"primereact/toast";import"../../../features/LearningManagement/apis/scopeApis.js";import"../../../features/LearningManagement/components/ToolTip.js";import"../../../features/LearningManagement/store/useAuthStore.js";import"date-fns";import"framer-motion";import"@mui/icons-material/Close";import p from"../../../features/IL-OTJ/_components/AccordianSection.js";import u from"../../../features/IL-OTJ/ILOTJ.js";import"../../../features/LearningManagement/store/useConfigStore.js";import"@radix-ui/react-tooltip";import"../../../features/LearningManagement/components/StationOnboarding/InputField.js";import"../../../features/LearningManagement/store/useEnvStore.js";var c={order_rules:{enabled:!1,global_min_separation_seconds:0},advertiser_rules:{enabled:!1,global_min_separation_seconds:0},inventory_rules:{respect_inventory_code:!1},break_code_rules:{respect_break_code:!1},is_default_enabled:!1},d=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],m=["Tier 1"],f=function(){var f=a(!0),g=f[0],_=f[1],b=a(""),v=b[0],h=b[1],y=a(""),T=y[0],k=y[1],w=a({station:"",tiers:["Tier 1"]}),L=w[0],C=w[1],I=a([]),x=I[0],A=I[1],S=a([]),j=S[0],O=S[1],M=a(c),N=M[0],E=M[1],J=i(function(t,o){C(function(n){var r;return e(e({},n),((r={})[t]=o,r))})},[]),D=i(function(t,o){E(function(n){var r=e({},n);switch(t){case"order_rules":case"advertiser_rules":r[t]="boolean"==typeof o?e(e({},n[t]),{enabled:o}):{enabled:o.enabled,global_min_separation_seconds:o.global_min_separation_seconds};break;case"inventory_rules":r.inventory_rules={respect_inventory_code:"boolean"==typeof o?o:o.respect_inventory_code};break;case"break_code_rules":r.break_code_rules={respect_break_code:"boolean"==typeof o?o:o.respect_break_code};break;case"is_default_enabled":r.is_default_enabled="boolean"==typeof o?o:!!o}return r})},[]),W=function(e){e(function(e){return t(t([],e,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},B=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},R=function(t,o,n){t(function(t){return t.map(function(t){return String(t.id)===String(o)?e(e({},t),{text:n}):t})})},G=[e({key:"order_rules",label:"Order"},N.order_rules),e({key:"advertiser_rules",label:"Advertiser"},N.advertiser_rules)],U=[{key:"inventory_rules",label:"Inventory code",enabled:N.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:N.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:N.is_default_enabled}],H={"Separation rule":"I would want to add a separation rule","Max priority rule":"I would want to set a max priority rule","Break code matching":"I would want to add a break code matching rule","Inventory code matching":"I would want to add a inventory window matching rule","Enter a rule description":"I want to add a rule description","Tester Genie":"Loading prompt..."},z="<p><span>Hi! 👋 I'm your Instant Learning Concierge.</span>\n <span>How would you like to get started? You can select an option below or describe the rule you’d like to create.</span>\n ".concat(["Separation rule","Max priority rule","Break code matching","Inventory code matching","Enter a rule description","Tester Genie"].map(function(e){return'<button class="clickable-button" data-value="'.concat(H[e],'">').concat(e,"</button>")}).join(""),"</p>");return o(u,{open:g,closeFunction:function(){return _(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:o(s,{}),customSections:o(n,{}),isUseNormalChat:!0,chatTitle:"Create New Learning",formTitle:"Learning Details",initialChatMessage:z,template:l.BaseTemplate,templateProps:{state:{title:v,description:T,scopeData:L,whenToApplyConditions:x,whenNotToApplyConditions:j,configData:N,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,o;return h(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onDescriptionChange:function(e){var t,o;return k(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onAddWhenToApply:function(){return W(A)},onRemoveWhenToApply:function(e){return B(A,e)},onEditWhenToApply:function(e,t){return R(A,e,t)},onAddWhenNotToApply:function(){return W(O)},onRemoveWhenNotToApply:function(e){return B(O,e)},onEditWhenNotToApply:function(e,t){return R(O,e,t)},onScopeChange:J,onConfigChange:D},uiState:{showScope:!1,showConfiguration:!0,titleLabel:"Main Rule Name",scopeLabel:"Define Scope",tierLabel:"Select Tier",descriptionLabel:"Learning Explanation",whenToApplyLabel:"Trigger Events (When to Apply)",whenNotToApplyLabel:"Exclusion Events (When NOT to Apply)",configLabel:"Advanced Settings",stationOptions:d,tierOptions:m,separationItems:G,toggles:U},customNodes:{afterDescription:o(p,e({title:{type:"other",label:"Extra Context Panel"}},{children:o("p",e({style:{padding:"12px",fontSize:"14px",color:"#64748b"}},{children:"Because you decoupled the template, I can inject anything I want here without touching BaseTemplate logic!"}))})),afterTitle:r("div",e({style:{marginBottom:"12px",padding:"8px",backgroundColor:"#f0f4ff",borderRadius:"4px"}},{children:[o("strong",{children:"Tip:"})," Use a clear and descriptive title for your rule to make it easily identifiable later."]}))}}})};export{f as default};
1
+ import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as s}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as l}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"@viswa-test/test-citation";import"../../../features/LearningManagement/store/useLearningTemplateStore.js";import"primereact/toast";import"../../../features/LearningManagement/apis/scopeApis.js";import"../../../features/LearningManagement/components/ToolTip.js";import"../../../features/LearningManagement/store/useAuthStore.js";import"date-fns";import"framer-motion";import"@mui/icons-material/Close";import p from"../../../features/IL-OTJ/_components/AccordianSection.js";import u from"../../../features/IL-OTJ/ILOTJ.js";import"../../../features/LearningManagement/store/useConfigStore.js";import"@radix-ui/react-tooltip";import"../../../features/LearningManagement/components/StationOnboarding/InputField.js";import"../../../features/LearningManagement/store/useEnvStore.js";var c={order_rules:{enabled:!1,global_min_separation_seconds:0},advertiser_rules:{enabled:!1,global_min_separation_seconds:0},inventory_rules:{respect_inventory_code:!1},break_code_rules:{respect_break_code:!1},is_default_enabled:!1},m=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],d=["Tier 1"],f=function(){var f=a(!0),_=f[0],b=f[1],g=a(""),v=g[0],h=g[1],T=a(""),y=T[0],k=T[1],L=a({station:"",tiers:["Tier 1"]}),C=L[0],w=L[1],A=a([]),j=A[0],I=A[1],S=a([]),x=S[0],O=S[1],M=a(c),N=M[0],J=M[1],D=i(function(t,o){w(function(n){var r;return e(e({},n),((r={})[t]=o,r))})},[]),E=i(function(t,o){J(function(n){var r=e({},n);switch(t){case"order_rules":case"advertiser_rules":r[t]="boolean"==typeof o?e(e({},n[t]),{enabled:o}):{enabled:o.enabled,global_min_separation_seconds:o.global_min_separation_seconds};break;case"inventory_rules":r.inventory_rules={respect_inventory_code:"boolean"==typeof o?o:o.respect_inventory_code};break;case"break_code_rules":r.break_code_rules={respect_break_code:"boolean"==typeof o?o:o.respect_break_code};break;case"is_default_enabled":r.is_default_enabled="boolean"==typeof o?o:!!o}return r})},[]),W=function(e){e(function(e){return t(t([],e,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},B=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},R=function(t,o,n){t(function(t){return t.map(function(t){return String(t.id)===String(o)?e(e({},t),{text:n}):t})})},U=[e({key:"order_rules",label:"Order"},N.order_rules),e({key:"advertiser_rules",label:"Advertiser"},N.advertiser_rules)],H=[{key:"inventory_rules",label:"Inventory code",enabled:N.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:N.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:N.is_default_enabled}];return o(u,{open:_,closeFunction:function(){return b(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:o(s,{}),customSections:o(n,{}),isUseNormalChat:!0,chatTitle:"Create New Learning",formTitle:"Learning Details",initialChatMessage:"Hey! How can I assist you?",template:l.BaseTemplate,templateProps:{state:{title:v,description:y,scopeData:C,whenToApplyConditions:j,whenNotToApplyConditions:x,configData:N,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,o;return h(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onDescriptionChange:function(e){var t,o;return k(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onAddWhenToApply:function(){return W(I)},onRemoveWhenToApply:function(e){return B(I,e)},onEditWhenToApply:function(e,t){return R(I,e,t)},onAddWhenNotToApply:function(){return W(O)},onRemoveWhenNotToApply:function(e){return B(O,e)},onEditWhenNotToApply:function(e,t){return R(O,e,t)},onScopeChange:D,onConfigChange:E},uiState:{showScope:!1,showConfiguration:!0,titleLabel:"Main Rule Name",scopeLabel:"Define Scope",tierLabel:"Select Tier",descriptionLabel:"Learning Explanation",whenToApplyLabel:"Trigger Events (When to Apply)",whenNotToApplyLabel:"Exclusion Events (When NOT to Apply)",configLabel:"Advanced Settings",stationOptions:m,tierOptions:d,separationItems:U,toggles:H},customNodes:{afterDescription:o(p,e({title:{type:"other",label:"Extra Context Panel"}},{children:o("p",e({style:{padding:"12px",fontSize:"14px",color:"#64748b"}},{children:"Because you decoupled the template, I can inject anything I want here without touching BaseTemplate logic!"}))})),afterTitle:r("div",e({style:{marginBottom:"12px",padding:"8px",backgroundColor:"#f0f4ff",borderRadius:"4px"}},{children:[o("strong",{children:"Tip:"})," Use a clear and descriptive title for your rule to make it easily identifiable later."]}))}}})};export{f as default};
2
2
  //# sourceMappingURL=DefaultTeachMeRenderer.js.map
@@ -122,7 +122,7 @@ export declare const getRuleOverrideHistory: (variantId: string) => Promise<any>
122
122
  export declare const createRuleSet: (payload: any, token: string) => Promise<any>;
123
123
  export declare const fetchStationsByKeyword: (keyword: string, includeOnboarded?: boolean) => Promise<any>;
124
124
  export declare const saveRuleSet: (payload: any) => Promise<any>;
125
- export declare const deleteRuleSet: (ruleSetId: string) => Promise<any>;
125
+ export declare const deleteRuleSet: (ruleSetId: string, token: string) => Promise<any>;
126
126
  export declare const deleteRule: (ruleId: string) => Promise<any>;
127
127
  export declare const deleteQuestion: (questionId: string) => Promise<any>;
128
128
  export declare const deleteTier: (scopeId: string, tierId: string) => Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"scopeApis.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/apis/scopeApis.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IAChC,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,aAAa,EAAE,OAAO,CAAC;QACvB,MAAM,CAAC,EAAE;YACP,WAAW,EAAE,MAAM,CAAC;YACpB,gBAAgB,CAAC,EAAE;gBACjB,iBAAiB,EAAE,GAAG,CAAC;aACxB,CAAC;YACF,WAAW,CAAC,EAAE;gBACZ,iBAAiB,EAAE,GAAG,CAAC;aACxB,CAAC;SACH,CAAC;QACF,UAAU,CAAC,EAAE;YACX,IAAI,EAAE,MAAM,CAAC;YACb,GAAG,EAAE,MAAM,CAAC;YACZ,GAAG,EAAE,MAAM,CAAC;SACb,CAAC;QACF,OAAO,EAAE;YAEP,OAAO,EAAE,MAAM,CAAC;YAChB,sBAAsB,EAAE,MAAM,CAAC;YAC/B,yBAAyB,EAAE,MAAM,CAAC;YAClC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YACnC,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAC1C,KAAK,EAAE;gBACL,IAAI,EAAE,MAAM,CAAC;gBACb,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;gBAC7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;gBAC1B,KAAK,EAAE;oBACL,SAAS,EAAE,MAAM,CAAC;oBAClB,OAAO,EAAE,MAAM,CAAC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AAE,aACT,OAAO,aACP,MAAM,iBAYlB,CAAC;AAEF,eAAO,MAAM,qBAAqB,YACvB,MAAM,UACP,MAAM,eACD,MAAM,cACP,MAAM,GAAG,IAAI,cACb,MAAM,GAAG,IAAI,iBAkB1B,CAAC;AAEF,eAAO,MAAM,sBAAsB,eAAsB,MAAM,WAAW,MAAM,iBAW/E,CAAC;AAEF,eAAO,MAAM,mBAAmB,aACrB,0BAA0B,iBASpC,CAAC;AAEF,eAAO,MAAM,YAAY,YAAmB,mBAAmB,iBAQ9D,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,YAAmB,MAAM,KAAG,QAAQ,GAAG,CA2BvE,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,YAAmB,sBAAsB,KAAG,QAAQ,OAAO,CAQtF,CAAC"}
1
+ {"version":3,"file":"scopeApis.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/apis/scopeApis.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;IAChC,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,aAAa,EAAE,OAAO,CAAC;QACvB,MAAM,CAAC,EAAE;YACP,WAAW,EAAE,MAAM,CAAC;YACpB,gBAAgB,CAAC,EAAE;gBACjB,iBAAiB,EAAE,GAAG,CAAC;aACxB,CAAC;YACF,WAAW,CAAC,EAAE;gBACZ,iBAAiB,EAAE,GAAG,CAAC;aACxB,CAAC;SACH,CAAC;QACF,UAAU,CAAC,EAAE;YACX,IAAI,EAAE,MAAM,CAAC;YACb,GAAG,EAAE,MAAM,CAAC;YACZ,GAAG,EAAE,MAAM,CAAC;SACb,C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AAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,YAAmB,oBAAoB,iBAQhE,CAAC;AAEF,eAAO,MAAM,aAAa,YAAmB,MAAM,iBAelD,CAAC;AAEF,eAAO,MAAM,aAAa,eACZ,MAAM,EAAE,aACT,OAAO,aACP,MAAM,iBAYlB,CAAC;AAEF,eAAO,MAAM,qBAAqB,YACvB,MAAM,UACP,MAAM,eACD,MAAM,cACP,MAAM,GAAG,IAAI,cACb,MAAM,GAAG,IAAI,iBAkB1B,CAAC;AAEF,eAAO,MAAM,sBAAsB,eAAsB,MAAM,WAAW,MAAM,iBAW/E,CAAC;AAEF,eAAO,MAAM,mBAAmB,aACrB,0BAA0B,iBASpC,CAAC;AAEF,eAAO,MAAM,YAAY,YAAmB,mBAAmB,iBAQ9D,CAAC;AAGF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,YAAmB,MAAM,KAAG,QAAQ,GAAG,CA2BvE,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,YAAmB,sBAAsB,KAAG,QAAQ,OAAO,CAQtF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useConfigStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useConfigStore.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAA;IACD,SAAS,EAAE,CACT,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,KACxB,IAAI,CAAC;IACV,WAAW,EAAE,CACX,QAAQ,EAAE,OAAO,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAC,KACC,IAAI,CAAC;IAEV,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAGD,eAAO,MAAM,cAAc,0EA0BxB,CAAC"}
1
+ {"version":3,"file":"useConfigStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useConfigStore.ts"],"names":[],"mappings":"AAsFA,UAAU,WAAW;IACnB,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAA;IACD,SAAS,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IACjD,WAAW,EAAE,CACX,QAAQ,EAAE,OAAO,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAC,KACC,IAAI,CAAC;IACV,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAoBD,eAAO,MAAM,cAAc,0EAuBxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultTeachMeRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/ValueTypes/Default/DefaultTeachMeRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,MAAM,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;QAAE,kBAAkB,EAAE,OAAO,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE,OAAO,CAAC;CAC/B;AAkBD,UAAU,2BAA2B;CAEpC;AAED,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAgKjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioTrafficLearningRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAEhG,QAAA,MAAM,4BAA4B,UAAW,mBAAmB,4CAqC/D,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
1
+ {"version":3,"file":"RadioTrafficLearningRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAEhG,QAAA,MAAM,4BAA4B,UAAW,mBAAmB,4CAkC/D,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/instant-learning",
3
- "version": "0.1.1-alpha.17",
3
+ "version": "0.1.1-alpha.18",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",