@e-llm-studio/instant-learning 1.3.0-alpha.117 → 1.3.0-alpha.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map +1 -0
- package/dist/cjs/features/LSCGuidelinesCart/Cart/Cart.js +1 -1
- package/dist/cjs/features/LSCGuidelinesCart/GuidelineCard.js +1 -1
- package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.js +1 -1
- package/dist/cjs/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js +1 -1
- package/dist/cjs/features/LSCGuidelinesCart/LearningManagementWrapper.js +1 -1
- package/dist/cjs/features/LSCGuidelinesCart/api.js +1 -1
- package/dist/cjs/features/LSCGuidelinesCart/endpoints.js +1 -1
- package/dist/cjs/features/LearningManagement/AuditLog/AuditLog.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningManagementTest.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js +2 -0
- package/dist/cjs/features/LearningManagement/assets/Search-result(add new).svg.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js +2 -0
- package/dist/cjs/features/LearningManagement/components/CreateLearningSetModal.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +2 -0
- package/dist/cjs/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +1 -0
- package/dist/cjs/features/LearningManagement/styles/CreateLearningSetModal.module.css.js +2 -0
- package/dist/cjs/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +1 -0
- package/dist/cjs/features/LearningManagement/utils/resizeObserverErrorGuard.js +2 -0
- package/dist/cjs/features/LearningManagement/utils/resizeObserverErrorGuard.js.map +1 -0
- package/dist/cjs/schema-driven/FallbackField.js +2 -0
- package/dist/cjs/schema-driven/FallbackField.js.map +1 -0
- package/dist/cjs/schema-driven/SchemaRenderer.js +2 -0
- package/dist/cjs/schema-driven/SchemaRenderer.js.map +1 -0
- package/dist/cjs/schema-driven/adapters/ConditionSectionAdapter.js +2 -0
- package/dist/cjs/schema-driven/adapters/ConditionSectionAdapter.js.map +1 -0
- package/dist/cjs/schema-driven/adapters/ConfigSectionAdapter.js +2 -0
- package/dist/cjs/schema-driven/adapters/ConfigSectionAdapter.js.map +1 -0
- package/dist/cjs/schema-driven/adapters/GlobalSetupAccordionAdapter.js +2 -0
- package/dist/cjs/schema-driven/adapters/GlobalSetupAccordionAdapter.js.map +1 -0
- package/dist/cjs/schema-driven/adapters/PromptTextEditorAdapter.js +2 -0
- package/dist/cjs/schema-driven/adapters/PromptTextEditorAdapter.js.map +1 -0
- package/dist/cjs/schema-driven/adapters/ScopeSectionAdapter.js +2 -0
- package/dist/cjs/schema-driven/adapters/ScopeSectionAdapter.js.map +1 -0
- package/dist/cjs/schema-driven/adapters/TextInputAdapter.js +2 -0
- package/dist/cjs/schema-driven/adapters/TextInputAdapter.js.map +1 -0
- package/dist/cjs/schema-driven/adapters/VariantListWrapperAdapter.js +2 -0
- package/dist/cjs/schema-driven/adapters/VariantListWrapperAdapter.js.map +1 -0
- package/dist/cjs/schema-driven/demoSchema.js +2 -0
- package/dist/cjs/schema-driven/demoSchema.js.map +1 -0
- package/dist/cjs/schema-driven/primitives/Accordion.js +2 -0
- package/dist/cjs/schema-driven/primitives/Accordion.js.map +1 -0
- package/dist/cjs/schema-driven/types.js +2 -0
- package/dist/cjs/schema-driven/types.js.map +1 -0
- package/dist/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js +2 -0
- package/dist/features/IL-OTJ/_components/templates/BaseTemplate/BaseTemplate.js.map +1 -0
- package/dist/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js +2 -0
- package/dist/features/IL-OTJ/_components/templates/CreateCategory/CreateCategory.js.map +1 -0
- package/dist/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js +2 -0
- package/dist/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.js.map +1 -0
- package/dist/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js +2 -0
- package/dist/features/IL-OTJ/_components/templates/WorkflowComposer/WorkflowComposer.js.map +1 -0
- package/dist/features/LSCGuidelinesCart/Cart/Cart.js +1 -1
- package/dist/features/LSCGuidelinesCart/GuidelineCard.js +1 -1
- package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.js +1 -1
- package/dist/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.js +1 -1
- package/dist/features/LSCGuidelinesCart/LearningManagementWrapper.js +1 -1
- package/dist/features/LSCGuidelinesCart/api.js +1 -1
- package/dist/features/LSCGuidelinesCart/endpoints.js +1 -1
- package/dist/features/LearningManagement/AuditLog/AuditLog.js +1 -1
- package/dist/features/LearningManagement/LearningManagementTest.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js +2 -0
- package/dist/features/LearningManagement/assets/Search-result(add new).svg.js.map +1 -0
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js +2 -0
- package/dist/features/LearningManagement/components/CreateLearningSetModal.js.map +1 -0
- package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js +2 -0
- package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js.map +1 -0
- package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js +2 -0
- package/dist/features/LearningManagement/styles/CreateLearningSetModal.module.css.js.map +1 -0
- package/dist/features/LearningManagement/utils/resizeObserverErrorGuard.js +2 -0
- package/dist/features/LearningManagement/utils/resizeObserverErrorGuard.js.map +1 -0
- package/dist/schema-driven/FallbackField.js +2 -0
- package/dist/schema-driven/FallbackField.js.map +1 -0
- package/dist/schema-driven/SchemaRenderer.js +2 -0
- package/dist/schema-driven/SchemaRenderer.js.map +1 -0
- package/dist/schema-driven/adapters/ConditionSectionAdapter.js +2 -0
- package/dist/schema-driven/adapters/ConditionSectionAdapter.js.map +1 -0
- package/dist/schema-driven/adapters/ConfigSectionAdapter.js +2 -0
- package/dist/schema-driven/adapters/ConfigSectionAdapter.js.map +1 -0
- package/dist/schema-driven/adapters/GlobalSetupAccordionAdapter.js +2 -0
- package/dist/schema-driven/adapters/GlobalSetupAccordionAdapter.js.map +1 -0
- package/dist/schema-driven/adapters/PromptTextEditorAdapter.js +2 -0
- package/dist/schema-driven/adapters/PromptTextEditorAdapter.js.map +1 -0
- package/dist/schema-driven/adapters/ScopeSectionAdapter.js +2 -0
- package/dist/schema-driven/adapters/ScopeSectionAdapter.js.map +1 -0
- package/dist/schema-driven/adapters/TextInputAdapter.js +2 -0
- package/dist/schema-driven/adapters/TextInputAdapter.js.map +1 -0
- package/dist/schema-driven/adapters/VariantListWrapperAdapter.js +2 -0
- package/dist/schema-driven/adapters/VariantListWrapperAdapter.js.map +1 -0
- package/dist/schema-driven/demoSchema.js +2 -0
- package/dist/schema-driven/demoSchema.js.map +1 -0
- package/dist/schema-driven/primitives/Accordion.js +2 -0
- package/dist/schema-driven/primitives/Accordion.js.map +1 -0
- package/dist/schema-driven/types.js +2 -0
- package/dist/schema-driven/types.js.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.d.ts +11 -0
- package/dist/types/src/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.d.ts.map +1 -0
- package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.d.ts +1 -1
- package/dist/types/src/features/LSCGuidelinesCart/Cart/Cart.d.ts.map +1 -1
- package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.d.ts +1 -6
- package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.d.ts.map +1 -1
- package/dist/types/src/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.d.ts.map +1 -1
- package/dist/types/src/features/LSCGuidelinesCart/LearningManagementWrapper.d.ts +1 -6
- package/dist/types/src/features/LSCGuidelinesCart/LearningManagementWrapper.d.ts.map +1 -1
- package/dist/types/src/features/LSCGuidelinesCart/api.d.ts +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/api.d.ts.map +1 -1
- package/dist/types/src/features/LSCGuidelinesCart/endpoints.d.ts +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/endpoints.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/AuditLog/AuditLog.d.ts +1 -0
- package/dist/types/src/features/LearningManagement/AuditLog/AuditLog.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts +12 -0
- package/dist/types/src/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/utils/resizeObserverErrorGuard.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/utils/resizeObserverErrorGuard.d.ts.map +1 -0
- package/dist/types/src/schema-driven/FallbackField.d.ts +13 -0
- package/dist/types/src/schema-driven/FallbackField.d.ts.map +1 -0
- package/dist/types/src/schema-driven/SchemaRenderer.d.ts +21 -0
- package/dist/types/src/schema-driven/SchemaRenderer.d.ts.map +1 -0
- package/dist/types/src/schema-driven/adapters/ConditionSectionAdapter.d.ts +11 -0
- package/dist/types/src/schema-driven/adapters/ConditionSectionAdapter.d.ts.map +1 -0
- package/dist/types/src/schema-driven/adapters/ConfigSectionAdapter.d.ts +13 -0
- package/dist/types/src/schema-driven/adapters/ConfigSectionAdapter.d.ts.map +1 -0
- package/dist/types/src/schema-driven/adapters/GlobalSetupAccordionAdapter.d.ts +5 -0
- package/dist/types/src/schema-driven/adapters/GlobalSetupAccordionAdapter.d.ts.map +1 -0
- package/dist/types/src/schema-driven/adapters/PromptTextEditorAdapter.d.ts +13 -0
- package/dist/types/src/schema-driven/adapters/PromptTextEditorAdapter.d.ts.map +1 -0
- package/dist/types/src/schema-driven/adapters/ScopeSectionAdapter.d.ts +5 -0
- package/dist/types/src/schema-driven/adapters/ScopeSectionAdapter.d.ts.map +1 -0
- package/dist/types/src/schema-driven/adapters/TextInputAdapter.d.ts +18 -0
- package/dist/types/src/schema-driven/adapters/TextInputAdapter.d.ts.map +1 -0
- package/dist/types/src/schema-driven/adapters/VariantListWrapperAdapter.d.ts +17 -0
- package/dist/types/src/schema-driven/adapters/VariantListWrapperAdapter.d.ts.map +1 -0
- package/dist/types/src/schema-driven/demoSchema.d.ts +13 -0
- package/dist/types/src/schema-driven/demoSchema.d.ts.map +1 -0
- package/dist/types/src/schema-driven/primitives/Accordion.d.ts +10 -0
- package/dist/types/src/schema-driven/primitives/Accordion.d.ts.map +1 -0
- package/dist/types/src/schema-driven/types.d.ts +40 -0
- package/dist/types/src/schema-driven/types.d.ts.map +1 -0
- package/package.json +11 -8
- package/dist/cjs/features/LSCGuidelinesCart/transformSelectedGuidelineData.js +0 -2
- package/dist/cjs/features/LSCGuidelinesCart/transformSelectedGuidelineData.js.map +0 -1
- package/dist/features/LSCGuidelinesCart/transformSelectedGuidelineData.js +0 -2
- package/dist/features/LSCGuidelinesCart/transformSelectedGuidelineData.js.map +0 -1
- package/dist/types/src/features/LSCGuidelinesCart/transformSelectedGuidelineData.d.ts +0 -18
- package/dist/types/src/features/LSCGuidelinesCart/transformSelectedGuidelineData.d.ts.map +0 -1
package/dist/features/LearningManagement/components/StationOnboarding/BackwardStationOnboardModal.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__awaiter as r,__generator as n,__spreadArray as t}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useMemo as u,useEffect as c}from"react";import{Dialog as d,Box as p,Typography as f,IconButton as m,DialogContent as h,CircularProgress as g}from"@mui/material";import{X as v,Search as b,ArrowRight as x}from"lucide-react";import{Toast as S}from"primereact/toast";import{v4 as y}from"uuid";import w from"../../assets/Search-result(add new).svg.js";import C from"../../store/useAuthStore.js";import{IL_CONFIG_CONSTANTS as _}from"../../config.js";import{retrieveGenreScopes as O,fetchStationsByKeyword as F,searchScopes as T,inheritScope as A,deleteRuleSet as N,updateStation as M,createRuleSet as E}from"../../apis/scopeApis.js";import k from"./InputField.js";import D from"./StationAutocomplete.js";import z from"../CardSkeleton.js";import P from"./OnboardingLoader.js";import B from"./TemplateCard.js";var j=[{label:"5am to 7pm",value:"05:00 AM - 7:00 PM"},{label:"6am to 7pm",value:"06:00 AM - 7:00 PM"}],I=[{label:"Low Sellout",value:"Low Sellout"},{label:"High Sellout",value:"High Sellout"},{label:"None",value:""}],L=[{label:"None",value:"None"},{label:"Distribute spots evenly across all breaks in the hour",value:"Distribute spots evenly across all breaks in the hour"}],R=function(R){var W,U=R.isOpen,q=R.onClose,G=R.onBoardStation,Y=R.app_integration_id,H=R.token,K=R.stationNameParam,X=a(null),J=X[0],Q=X[1],V=a([]),Z=V[0],$=V[1],ee=a(0),re=ee[0],ne=ee[1],te=a(!0),oe=te[0],ie=te[1],le=a(!1),ae=le[0],se=le[1],ue=a([]),ce=ue[0],de=ue[1],pe=a(""),fe=pe[0],me=pe[1],he=a(""),ge=he[0],ve=he[1],be=a(!1),xe=be[0],Se=be[1],ye=a(!1),we=ye[0],Ce=ye[1],_e=a(null),Oe=_e[0],Fe=_e[1],Te=a(!1),Ae=Te[0],Ne=Te[1],Me=a(0),Ee=Me[0],ke=Me[1],De=a(""),ze=De[0],Pe=De[1],Be=C().user,je=s(null),Ie=s(null),Le=s(null),Re=s(null),We=a({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),Ue=We[0],qe=We[1],Ge=function(e,r){return e.find(function(e){return e.value===r})||null},Ye=u(function(){return Z.map(function(e){return{label:e.scope_name,value:e.scope_name}})},[Z]),He=u(function(){var e,r,n;if(!Ue.genre)return null;var t=Z.find(function(e){return e.scope_name===Ue.genre});return t?{id:t.id,title:t.scope_name||"Unnamed Template",description:(null===(e=t.description)||void 0===e?void 0:e.trim())||"No description available.",inheritedText:(null===(r=t.inheritance)||void 0===r?void 0:r[0])||void 0,rulesCount:t.rules_count||0,tiersCount:t.tier_count||0,isCopy:null!==(n=t.is_copy)&&void 0!==n&&n}:null},[Ue.genre,Z]);c(function(){return function(){Le.current&&clearTimeout(Le.current)}},[]);var Ke=function(e){return r(void 0,void 0,void 0,function(){var r,o,i;return n(this,function(n){switch(n.label){case 0:if(ae)return[2];se(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,O({limit:"20",offset:String(e)})];case 2:return"success"===(null==(r=n.sent())?void 0:r.status)&&Array.isArray(null==r?void 0:r.data)?(o=r.data,$(function(r){if(0===e)return o;var n=new Set(r.map(function(e){return e.id})),i=o.filter(function(e){return!n.has(e.id)});return t(t([],r,!0),i,!0)}),o.length<20?ie(!1):ie(!0),ne(e+20)):ie(!1),[3,5];case 3:return i=n.sent(),console.error("[StationOnboard] Failed to fetch genre scopes:",i),ie(!1),[3,5];case 4:return se(!1),[7];case 5:return[2]}})})};c(function(){if(U&&($([]),ne(0),ie(!0),Ke(0),K)){Pe(K);r(void 0,void 0,void 0,function(){var e,r,t;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,F(K,!0)];case 1:return!0===(null==(e=n.sent())?void 0:e.success)&&Array.isArray(null==e?void 0:e.data)&&(r=e.data.find(function(e){var r;return(null===(r=e.station_name)||void 0===r?void 0:r.toLowerCase())===K.toLowerCase()&&!e.ruleset_id}),r&&Q(r)),[3,3];case 2:return t=n.sent(),console.error("[StationOnboard] Error auto-selecting station:",t),[3,3];case 3:return[2]}})})}},[U,K]);c(function(){qe(J?function(r){var n;return e(e({},r),{region:null!==(n=J.market)&&void 0!==n?n:""})}:{region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""})},[J]),c(function(){var e=setTimeout(function(){ve(fe)},500);return function(){return clearTimeout(e)}},[fe]),c(function(){r(void 0,void 0,void 0,function(){var e,r,t;return n(this,function(n){switch(n.label){case 0:if(!ge.trim())return de([]),[2];Se(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,T({search_string:ge})];case 2:return"success"===(null==(e=n.sent())?void 0:e.status)&&Array.isArray(null==e?void 0:e.data)?(r=e.data.map(function(e){var r,n,t;return{id:e.id,title:e.scope_name||"Unnamed Template",description:(null===(r=e.description)||void 0===r?void 0:r.trim())||"No description available.",inheritedText:(null===(n=e.inheritance)||void 0===n?void 0:n[0])||void 0,rulesCount:e.rules_count||0,tiersCount:e.tier_count||0,isCopy:null!==(t=e.is_copy)&&void 0!==t&&t}}),de(r)):de([]),[3,5];case 3:return t=n.sent(),console.error("[StationOnboard] Error searching scopes:",t),de([]),[3,5];case 4:return Se(!1),[7];case 5:return[2]}})})},[ge]),c(function(){!ge.trim()&&He&&Fe(He.id)},[ge,He]);var Xe=function(){setTimeout(function(){Re.current&&Re.current.scrollTo({top:Re.current.scrollHeight,behavior:"smooth"})},100)},Je=function(){Pe(""),Q(null),qe({region:"",primeTime:["06:00 AM - 7:00 PM"],genre:"Music",type:"",lowSelloutConfig:""}),de([]),me(""),Fe(null),q()},Qe=function(r,n){var t;if("primeTime"!==r){var o=null!==(t=null==n?void 0:n.value)&&void 0!==t?t:"";qe(function(n){var t;return e(e({},n),((t={})[r]=String(o),t))}),"genre"===r&&(Ce(!0),Le.current&&clearTimeout(Le.current),Le.current=setTimeout(function(){var e=Z.find(function(e){return e.scope_name===o});Fe(e?e.id:null),Ce(!1)},800))}else{var i=(null==n?void 0:n.value)?String(n.value):"";qe(function(r){return e(e({},r),{primeTime:i?[i]:[]})})}},Ve=Boolean(J&&Ue.region&&Ue.primeTime.length>0&&Ue.genre);return o(d,e({open:U,onClose:Je,maxWidth:!1,disableEscapeKeyDown:!0,PaperProps:{sx:{width:"90vw",height:"90vh",borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"}}},{children:[i(S,{ref:je}),o(p,e({sx:{p:"20px 20px 20px 27px",borderBottom:"1px solid #F0F2F5",display:"flex",justifyContent:"space-between",alignItems:"center",bgcolor:"#fff"}},{children:[o(p,e({sx:{display:"flex",flexDirection:"column",gap:.5}},{children:[i(f,e({sx:{fontSize:"18px",fontWeight:600,color:"#19213D"}},{children:"Onboard a Station"})),i(f,e({sx:{fontSize:"16px",fontWeight:400,color:"#666F8D"}},{children:"Onboard a station to start configuring learnings."}))]})),i(m,e({onClick:Je,disabled:Ae,sx:{color:"#19213D"}},{children:i(v,{size:24})}))]})),o(h,e({sx:{p:0,bgcolor:"#F8FAFC",display:"flex",flexDirection:"row",overflow:"hidden",position:"relative"}},{children:[i(P,{isLoading:Ae,currentStep:Ee,onComplete:function(){Ne(!1);var e=Ie.current;Je(),G(e||void 0),Ie.current=null}}),o(p,e({sx:{display:"flex",flex:1,paddingY:"14px",paddingX:"20px",gap:3,overflowY:"hidden"}},{children:[o(p,e({ref:Re,sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"16px",border:"1px solid #F0F2F5",height:"100%",overflowY:"auto"}},{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:600,mb:.5,color:"#19213D"}},{children:"Basic Details"})),i(f,e({sx:{fontSize:"0.75rem",color:"#00000080",mb:"20px"}},{children:"Set up basic station details to unlock AI recommended scopes."})),o(p,e({sx:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[o(p,e({className:"space-y-1.5"},{children:[o("label",e({className:"text-sm font-medium text-[#19213D]"},{children:[i("span",e({className:"mr-0.5 text-xs font-semibold text-[#8F2C23]"},{children:"*"})),"Station Name/Call Letters"]})),i(D,{value:ze,onChange:Pe,onStationSelect:function(e){return Q(e)}})]})),i(k,{required:!0,disabled:!0,label:"Region",placeholder:"Select Region",value:Ue.region||void 0,isSearchable:!1}),i(k,{required:!0,label:"Prime Time Window",placeholder:"Select Prime Time",options:j,value:Ge(j,(null===(W=Ue.primeTime)||void 0===W?void 0:W[0])||""),onOptionChange:function(e){return Qe("primeTime",e)},isSearchable:!1}),i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{required:!0,label:"Genre",placeholder:"Select Genre",options:Ye,value:Ge(Ye,Ue.genre),onOptionChange:function(e){return Qe("genre",e)},isSearchable:!1,onMenuScrollToBottom:function(){!ae&&oe&&Ke(re)},isLoadingOptions:ae,hasMoreOptions:oe})})),i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{label:"Station Type",placeholder:"None",options:I,value:Ge(I,Ue.type),onOptionChange:function(r){Qe("type",r),"Low Sellout"!==(null==r?void 0:r.value)&&qe(function(r){return e(e({},r),{lowSelloutConfig:""})})},isSearchable:!1})})),"Low Sellout"===Ue.type&&i(p,e({onClick:Xe,sx:{width:"100%"}},{children:i(k,{label:"Low Sell Out Configurations",placeholder:"Select Configuration",options:L,value:Ge(L,Ue.lowSelloutConfig),onOptionChange:function(e){return Qe("lowSelloutConfig",e)},isSearchable:!1})}))]}))]})),i(p,e({sx:{flex:1,bgcolor:"#fff",p:3,borderRadius:"12px",border:"1px solid #F0F2F5",display:"flex",flexDirection:"column",height:"100%",overflowY:"auto"}},{children:Ue.genre?o(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Matching scope for your station"})),i(p,e({sx:{display:"flex",flexDirection:"column",gap:2,mb:4}},{children:we?i(z,{}):He?i(B,e({},He,{isSelected:Oe===He.id,onSelect:Fe}),He.id):null})),i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Other available stations"})),o("div",e({className:"relative mb-4 w-full"},{children:[i("input",{type:"text",value:fe,onChange:function(e){return me(e.target.value)},placeholder:"Search for station...",className:"w-full rounded-lg border border-[#E2E8F0] px-10 py-[7px] text-[12px] outline-none transition-all placeholder:text-[#BAC0CC] focus:border-blue-500 focus:ring-1 focus:ring-blue-500"}),i(b,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",size:16})]})),o(p,e({sx:{display:"flex",flexDirection:"column",gap:2}},{children:[xe&&i(z,{}),!xe&&0===ce.length&&ge.trim()&&o(f,e({sx:{fontSize:"0.875rem",color:"#64748B",textAlign:"center",py:4}},{children:['No scopes found matching "',ge,'".']})),!xe&&ce.map(function(r){return i(B,e({},r,{isSelected:Oe===r.id,onSelect:Fe}),r.id)})]}))]}):o(l,{children:[i(f,e({sx:{fontSize:"1rem",fontWeight:500,mb:1.5}},{children:"Fill in the station details to load AI recommended scopes"})),i(f,e({sx:{fontSize:"0.75rem",color:"#64748B",mb:3}},{children:"AI will recommend the most relevant scope for this station."})),i(p,e({sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.5,py:10}},{children:i("img",{src:w,alt:"Empty Result"})}))]})}))]}))]})),o(p,e({sx:{p:"12px 20px",borderTop:"1px solid #F0F2F5",display:"flex",justifyContent:"flex-end",gap:2,bgcolor:"#fff"}},{children:[i("button",e({onClick:Je,disabled:Ae,style:{padding:"7px 10px",borderRadius:"6px",color:"#64748B",border:"1px solid #E2E8F0",backgroundColor:"#fff",cursor:"pointer",fontSize:"14px",fontWeight:500}},{children:"Cancel"})),i("button",e({onClick:function(){return r(void 0,void 0,void 0,function(){var r,o,i,l,a,s,u,c,d,p,f,m,h,g,v,b,x,S;return n(this,function(n){switch(n.label){case 0:if(!J||!Oe)return console.error("[StationOnboard] Missing required data for onboarding"),[2];r=He?t([He],ce,!0):ce,o=r.find(function(e){return e.id===Oe}),i=null!==(h=null==o?void 0:o.isCopy)&&void 0!==h&&h,Ne(!0),ke(0),l=null,n.label=1;case 1:return n.trys.push([1,3,,4]),a={topic:"customRuleSet",customScopeGroupName:(null==_?void 0:_.CUSTOM_SCOPE_GROUP_NAME)||"Audacy-Traffic-Manager",scopeDescription:J.station_name||"New Station",parentScopeId:null,customScopeName:J.station_name||"New Station",customScopeId:y(),createByName:(null==Be?void 0:Be.firstname)||"System",createdBy:(null==Be?void 0:Be.email)||"system@audacy.com",applicationMappingId:Y},console.log("[StationOnboard] Step 1: Creating rule set with payload:",a),[4,E(a,H)];case 2:if(s=n.sent(),!(l=null===(g=null==s?void 0:s.data)||void 0===g?void 0:g.scopeId))throw new Error("Failed to create scope - no scopeId returned");return ke(1),[3,4];case 3:return u=n.sent(),console.error("[StationOnboard] Error creating rule set:",u),null===(v=je.current)||void 0===v||v.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to create rule set. Please try again."}),Ne(!1),ke(0),[2];case 4:return n.trys.push([4,6,,11]),c={market:J.market,region:J.region,primetime_windows:Ue.primeTime,genre:Ue.genre,station_type:""===Ue.type?null:Ue.type,low_sellout_configurations:"Low Sellout"===Ue.type?Ue.lowSelloutConfig:null,ruleset_id:l,station_guid:J.station_guid,station_name:J.station_name||"New Station"},console.log("[StationOnboard] Step 2: Updating station with payload:",c),[4,M(c)];case 5:return n.sent(),ke(2),[3,11];case 6:d=n.sent(),console.error("[StationOnboard] Error updating station, rolling back rule set:",d),409===d.status?(null===(b=je.current)||void 0===b||b.show({severity:"error",life:2500,summary:"Error updating station",detail:"Station already Onboarded."}),Q(null),Fe(null),Pe(""),qe(function(r){return e(e({},r),{region:""})})):null===(x=je.current)||void 0===x||x.show({severity:"error",life:2500,summary:"Error updating station",detail:"Please try again."}),n.label=7;case 7:return n.trys.push([7,9,,10]),[4,N(l,H)];case 8:return n.sent(),[3,10];case 9:return p=n.sent(),console.error("[StationOnboard] Failed to rollback rule set deletion:",p),[3,10];case 10:return Ne(!1),ke(0),[2];case 11:return n.trys.push([11,13,,14]),f={source_scope_id:Oe,target_scope_id:l,is_copy_parent_variant_id:i},console.log("[StationOnboard] Step 3: Inheriting scope with payload:",f),[4,A(f)];case 12:return n.sent(),ke(3),[3,14];case 13:return m=n.sent(),console.error("[StationOnboard] Error inheriting scope (no rollback):",m),null===(S=je.current)||void 0===S||S.show({severity:"error",life:3e3,summary:"Error",detail:"Failed to apply rule template. Please try again."}),Ne(!1),ke(0),[2];case 14:return Ie.current=l,[2]}})})},disabled:!Ve||Ae,style:{padding:"7px 10px",borderRadius:"6px",border:"none",backgroundColor:Ve?"#2563EB":"#BFDBFE",color:"#fff",cursor:Ve&&!Ae?"pointer":"not-allowed",fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:"7px"}},{children:o(l,Ae?{children:[i(g,{size:16,color:"inherit"}),i("span",{children:"Onboarding..."})]}:{children:[i("span",{children:"Onboard Station"}),i(x,{size:16})]})}))]}))]}))};export{R as default};
|
|
2
|
+
//# sourceMappingURL=BackwardStationOnboardModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackwardStationOnboardModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var o={overlay:"CreateLearningSetModal-module_overlay__iwLU2",modal:"CreateLearningSetModal-module_modal__TIP0O",header:"CreateLearningSetModal-module_header__alW8D",headerContent:"CreateLearningSetModal-module_headerContent__bxA6y",title:"CreateLearningSetModal-module_title__vlj8Q",description:"CreateLearningSetModal-module_description__TGliO",closeBtn:"CreateLearningSetModal-module_closeBtn__33qJN",form:"CreateLearningSetModal-module_form__e8iCL",formGroup:"CreateLearningSetModal-module_formGroup__RydF4",label:"CreateLearningSetModal-module_label__q-hkm",asterisk:"CreateLearningSetModal-module_asterisk__cXpjU",inputField:"CreateLearningSetModal-module_inputField__nnq0-",inputError:"CreateLearningSetModal-module_inputError__Q78Vy",errorMessage:"CreateLearningSetModal-module_errorMessage__z0WBC",footer:"CreateLearningSetModal-module_footer__qc-SJ",cancelBtn:"CreateLearningSetModal-module_cancelBtn__YiIV7",confirmBtn:"CreateLearningSetModal-module_confirmBtn__8oMwL",spinner:"CreateLearningSetModal-module_spinner__SERKD",spin:"CreateLearningSetModal-module_spin__0BrCH"};e("@keyframes CreateLearningSetModal-module_spin__0BrCH{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.CreateLearningSetModal-module_overlay__iwLU2{align-items:center;background-color:#0000004d;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:9999}.CreateLearningSetModal-module_modal__TIP0O{background-color:#fff;border-radius:.75rem;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;max-width:90%;padding:1.5rem;position:relative;width:600px}.CreateLearningSetModal-module_header__alW8D{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;margin-bottom:1.5rem}.CreateLearningSetModal-module_headerContent__bxA6y{flex:1}.CreateLearningSetModal-module_title__vlj8Q{color:#19213d;font-size:1.125rem;font-weight:500;margin:0}.CreateLearningSetModal-module_description__TGliO{color:#666f8d;font-size:.875rem;font-weight:400;line-height:1.5;margin-top:.25rem}.CreateLearningSetModal-module_closeBtn__33qJN{align-items:center;background:#0000;border:none;border-radius:.375rem;color:#9ca3af;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:color .2s,background-color .2s}.CreateLearningSetModal-module_closeBtn__33qJN:hover{background-color:#f3f4f6;color:#4b5563}.CreateLearningSetModal-module_closeBtn__33qJN:focus{outline:none}.CreateLearningSetModal-module_form__e8iCL{display:flex;flex-direction:column;gap:1.25rem}.CreateLearningSetModal-module_formGroup__RydF4{display:flex;flex-direction:column;gap:.375rem;position:relative}.CreateLearningSetModal-module_label__q-hkm{align-items:center;color:#19213d;display:flex;font-size:.875rem;font-weight:500}.CreateLearningSetModal-module_asterisk__cXpjU{color:#8f2c23;font-size:1rem;font-weight:600;margin-right:.25rem}.CreateLearningSetModal-module_inputField__nnq0-{background-color:#fff;border:1px solid #f0f2f5;border-radius:.375rem;box-sizing:border-box;color:#19213d;font-size:.875rem;outline:none;padding:.625rem .75rem;transition:border-color .2s,box-shadow .2s;width:100%}.CreateLearningSetModal-module_inputField__nnq0-::placeholder{color:#9ca3af}.CreateLearningSetModal-module_inputField__nnq0-:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb33}.CreateLearningSetModal-module_inputError__Q78Vy{border-color:#8f2c23}.CreateLearningSetModal-module_inputError__Q78Vy:focus{border-color:#8f2c23;box-shadow:0 0 0 2px #8f2c2333}.CreateLearningSetModal-module_errorMessage__z0WBC{color:#8f2c23;font-size:.75rem;font-weight:400;margin-top:.25rem}.CreateLearningSetModal-module_footer__qc-SJ{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1rem}.CreateLearningSetModal-module_cancelBtn__YiIV7{background-color:initial;border:1px solid #e2e8f0;border-radius:.375rem;color:#64748b;cursor:pointer;font-size:.875rem;font-weight:500;padding:.5rem 1rem;transition:background-color .2s}.CreateLearningSetModal-module_cancelBtn__YiIV7:hover:not(:disabled){background-color:#f9fafb}.CreateLearningSetModal-module_cancelBtn__YiIV7:disabled{cursor:not-allowed;opacity:.5}.CreateLearningSetModal-module_confirmBtn__8oMwL{align-items:center;background-color:#2563eb;border:none;border-radius:.375rem;color:#fff;cursor:pointer;display:inline-flex;font-size:.875rem;font-weight:500;justify-content:center;padding:.5rem 1rem;transition:background-color .2s}.CreateLearningSetModal-module_confirmBtn__8oMwL:hover:not(:disabled){background-color:#1d4ed8}.CreateLearningSetModal-module_confirmBtn__8oMwL:disabled{cursor:not-allowed;opacity:.5}.CreateLearningSetModal-module_spinner__SERKD{animation:CreateLearningSetModal-module_spin__0BrCH 1s linear infinite;color:#fff;height:1rem;margin-right:.5rem;width:1rem}");export{o as default};
|
|
2
|
+
//# sourceMappingURL=CreateLearningSetModal.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateLearningSetModal.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=new Set(["ResizeObserver loop completed with undelivered notifications.","ResizeObserver loop limit exceeded"]),n=!1,o=function(n){return"string"==typeof n&&e.has(n)},t=function(){n||"undefined"==typeof window||(n=!0,window.addEventListener("error",function(e){o(e.message)&&e.stopImmediatePropagation()},!0),window.addEventListener("unhandledrejection",function(e){var n;o((null===(n=e.reason)||void 0===n?void 0:n.message)||e.reason)&&(e.preventDefault(),e.stopImmediatePropagation())},!0))};export{t as installResizeObserverErrorGuard};
|
|
2
|
+
//# sourceMappingURL=resizeObserverErrorGuard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizeObserverErrorGuard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as o}from"tslib";import{jsxs as n}from"react/jsx-runtime";var e=function(e){var r,t,i=e.schema;return"production"!==process.env.NODE_ENV&&console.warn('[componentRegistry] No component registered for bpa_ui_component "'.concat(null!==(r=null==i?void 0:i.bpa_ui_component)&&void 0!==r?r:"unknown",'"')),n("div",o({style:{border:"1px dashed #FCA5A5",borderRadius:8,padding:12,fontSize:13,color:"#B91C1C",background:"#FEF2F2",fontFamily:'"Plus Jakarta Sans", sans-serif'}},{children:[(null==i?void 0:i.title)?"".concat(i.title,": "):"","Unsupported field (",null!==(t=null==i?void 0:i.bpa_ui_component)&&void 0!==t?t:"unknown",")"]}))};export{e as default};
|
|
2
|
+
//# sourceMappingURL=FallbackField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FallbackField.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as r}from"tslib";import{jsx as t,Fragment as e}from"react/jsx-runtime";import n,{useMemo as o,Suspense as i}from"react";import{resolveRegistryComponentOrFallback as p,isContainerComponent as a}from"../ComponentRegistry.js";import{FormContext as u}from"./types.js";var c=function(){return t("div",r({style:{padding:12,fontSize:13,color:"#9ca3af"}},{children:"Loading…"}))},d={PromptTextEditor:n.lazy(function(){return import("./adapters/PromptTextEditorAdapter.js")}),GlobalSetupAccordion:n.lazy(function(){return import("./adapters/GlobalSetupAccordionAdapter.js")})},l=function(e){var n=e.id,o=e.node;if(o.hidden)return null;var u=o.bpa_ui_component&&d[o.bpa_ui_component]||p(o.bpa_ui_component),l=a(o.bpa_ui_component);return t(i,r({fallback:t(c,{})},{children:t(u,r({id:n,schema:o},{children:l&&!o.is_repeatable_variant&&o.properties&&t(s,{properties:o.properties})}))}))},s=function(r){var n=r.properties,i=o(function(){return function(r){return Object.entries(r).sort(function(r,t){var e,n,o=r[1],i=t[1];return(null!==(e=o.ui_position)&&void 0!==e?e:0)-(null!==(n=i.ui_position)&&void 0!==n?n:0)})}(n)},[n]);return t(e,{children:i.map(function(r){var e=r[0],n=r[1];return t(l,{id:e,node:n},e)})})},m=function(e){var n=e.schema,o=e.state,i=e.handlers,p=e.uiState;return(null==n?void 0:n.properties)?t(u.Provider,r({value:{state:o,handlers:i,uiState:p}},{children:t(s,{properties:n.properties})})):null};export{m as SchemaForm,s as SchemaPropertyList};
|
|
2
|
+
//# sourceMappingURL=SchemaRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaRenderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{useContext as t}from"react";import{ConditionSection as n}from"../../features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js";import{FormContext as o}from"../types.js";var e=function(e){var d,a,r,l,c,s,v,p,u,h,y,A=e.id,g=e.schema,m=t(o),T=m.state,f=m.handlers,I=m.uiState,E=m.tierKey,w=m.variantIndex;if(!T||!I)return null;var S="wta"===g.data_key,W=S?(null===(r=null===(a=null===(d=T.variantsByTier)||void 0===d?void 0:d[E])||void 0===a?void 0:a[w])||void 0===r?void 0:r.whenToApplyConditions)||[]:(null===(s=null===(c=null===(l=T.variantsByTier)||void 0===l?void 0:l[E])||void 0===c?void 0:c[w])||void 0===s?void 0:s.whenNotToApplyConditions)||[],C=(null===(v=I.validationErrors)||void 0===v?void 0:v["".concat(S?"whenToApply":"whenNotToApply","-").concat(E,"-").concat(w)])||(S?I.conflictReason:void 0),N=(null===(h=null===(u=null===(p=T.variantsByTier)||void 0===p?void 0:p[E])||void 0===u?void 0:u[w])||void 0===h?void 0:h.isReadOnly)||I.isAiStreaming,_=(null===(y=I.highlights)||void 0===y?void 0:y.get("".concat(E,"_").concat(w)))||{},x=S?_.wta:_.wnta;return i(n,{id:"".concat(A,"-").concat(E,"-").concat(w),idPrefix:"condition-".concat(g.data_key),title:g.title,required:!!g.core_field,readOnly:N,conditions:W,index:w,tierKey:E,onAdd:function(){return S?f.addWhenToApply(E,w):f.addWhenNotToApply(E,w)},onRemove:function(i,t,n){return S?f.removeWhenToApply(i,t,n):f.removeWhenNotToApply(i,t,n)},onEdit:function(i,t,n,o){return S?f.editWhenToApply(i,t,n,o):f.editWhenNotToApply(i,t,n,o)},bordered:!0,dividerRequired:!0,addLabel:S?I.addWhenToApplyBtnLabel:I.addWhenNotToApplyBtnLabel,tooltipDescription:g.tooltip,errorMessage:C,isHighlighted:x||!1,highlightedIds:I.highlightedIds,citations:function(i){var t,n,o=null===(t=T.fieldCitations)||void 0===t?void 0:t[i];return Array.isArray(o)&&o.length>0?o:null!==(n=T.citations)&&void 0!==n?n:[]}("".concat(S?"whenToApply":"whenNotToApply","_").concat(E,"_").concat(w)),isAiStreaming:I.isAiStreaming,activeEditId:I.activeEditId,setActiveEditId:I.setActiveEditId,pendingEditId:I.pendingEditId,setPendingEditId:I.setPendingEditId,setSendMessageInChat:I.setSendMessageInChat})};export{e as default};
|
|
2
|
+
//# sourceMappingURL=ConditionSectionAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionSectionAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{useContext as e}from"react";import{ConfigSection as t}from"../../features/IL-OTJ/_components/organisms/ConfigSection/ConfigSection.js";import{FormContext as n}from"../types.js";var d=function(d){var o,r,a,s,l,g,v,c,u;d.id;var m=d.schema,f=e(n),I=f.state,h=f.handlers,p=f.uiState,S=f.tierKey,C=f.variantIndex;if(!I||!p)return null;var E=(null===(r=null===(o=p.separationItemsByTier)||void 0===o?void 0:o[S])||void 0===r?void 0:r.get(C))||[],y=(null===(s=null===(a=p.togglesByTier)||void 0===a?void 0:a[S])||void 0===s?void 0:s.get(C))||[],A=(null===(v=null===(g=null===(l=I.variantsByTier)||void 0===l?void 0:l[S])||void 0===g?void 0:g[C])||void 0===v?void 0:v.isReadOnly)||p.isAiStreaming,x=(null===(c=p.highlights)||void 0===c?void 0:c.get("".concat(S,"_").concat(C)))||{};return i(t,{id:"config-".concat(S,"-").concat(C),title:null!==(u=m.title)&&void 0!==u?u:"Advanced Settings",required:!!m.core_field,readOnly:A,onConfigChange:function(i,e){return h.onConfigChange(S,C,i,e)},separationItems:E,toggles:y,index:C,highlights:x,bordered:!0,isAiStreaming:p.isAiStreaming,activeEditId:p.activeEditId,setActiveEditId:p.setActiveEditId,pendingEditId:p.pendingEditId,setPendingEditId:p.setPendingEditId,setSendMessageInChat:p.setSendMessageInChat})};export{d as default};
|
|
2
|
+
//# sourceMappingURL=ConfigSectionAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigSectionAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as i,jsxs as t}from"react/jsx-runtime";import{useContext as l,useState as n,useRef as o,useEffect as r}from"react";import d from"../../features/IL-OTJ/_components/AccordianSection.js";import{FormContext as a}from"../types.js";import{SchemaPropertyList as s}from"../SchemaRenderer.js";import{Loader2Icon as u,Pencil as c,Check as p,AlertTriangle as f}from"lucide-react";var v=function(v){var g,m,y=v.schema,h=l(a),x=h.state,S=h.uiState,I=n(null),b=I[0],E=I[1],C=n(null),D=C[0],T=C[1],A=n(!1),k=A[0],j=A[1],z=o(null==S?void 0:S.isAiStreaming),O="rule-setup"===(null==S?void 0:S.activeEditId);r(function(){z.current&&!(null==S?void 0:S.isAiStreaming)&&k&&j(!1),z.current=null==S?void 0:S.isAiStreaming},[null==S?void 0:S.isAiStreaming,k]);var N=function(){var e;E(null),T(null),null===(e=null==S?void 0:S.setActiveEditId)||void 0===e||e.call(S,null)},P=function(){var e,i,t=null!=b?b:x.ruleTitle,l=null!=D?D:x.scopeData,n=t!==x.ruleTitle,o=JSON.stringify(l)!==JSON.stringify(x.scopeData);if(!n&&!o)return E(null),T(null),void(null===(e=null==S?void 0:S.setActiveEditId)||void 0===e||e.call(S,null));if(null==S?void 0:S.setSendMessageInChat){var r="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),d=[];if(n&&d.push((null==t?void 0:t.trim())?"Title with ".concat(t):"No Title"),o){var a=null==l?void 0:l.tiers;d.push(a&&a.length>0?"tiers: ".concat(a.join(", ")):"No Tier Selected")}S.setSendMessageInChat("__SKELETON__:".concat(r,":Update Rule Setup ").concat(d.join(" and ")))}j(!0),E(null),T(null),null===(i=null==S?void 0:S.setActiveEditId)||void 0===i||i.call(S,null)},R=null!==b?null==b?void 0:b.trim():(x.ruleTitle||"").trim(),_=null!=D?D:x.scopeData,w=R!==(x.ruleTitle||"").trim(),J=JSON.stringify(_)!==JSON.stringify(x.scopeData),F=!w&&!J||""===R;return i("div",e({"data-edit-id":"rule-setup"},{children:i(d,e({title:{type:"other",label:y.title||(null==S?void 0:S.setupLabel)||"Rule Setup"},actionButtons:function(t,l){if(O)return null;var n=!!(null==S?void 0:S.activeEditId)&&"rule-setup"!==S.activeEditId;return i("div",e({style:{position:"relative",display:"flex",flexDirection:"column"}},{children:i("button",e({title:n?"Save active edits first":"Edit",onClick:function(i){i.stopPropagation(),n?(null==S?void 0:S.setPendingEditId)&&S.setPendingEditId(S.activeEditId||null):(!function(){var i,t;(null==S?void 0:S.activeEditId)&&"rule-setup"!==S.activeEditId||(null===(i=null==S?void 0:S.setActiveEditId)||void 0===i||i.call(S,"rule-setup"),E(null!==(t=x.ruleTitle)&&void 0!==t?t:""),T(x.scopeData?e({},x.scopeData):{}))}(),(null==S?void 0:S.setPendingEditId)&&S.setPendingEditId(null),t||l())},disabled:k,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"6px 8px",border:"1px solid #e5e7eb",borderRadius:"8px",cursor:k?"not-allowed":"pointer",backgroundColor:"#ffffff",color:"#6b7280",opacity:k?.5:1}},{children:i(c,{size:14})}))}))},footerData:{ruleTitle:x.ruleTitle,stations:[x.scopeData.station],tiers:null===(g=x.scopeData)||void 0===g?void 0:g.tiers},defaultOpen:null!==(m=y.default_open)&&void 0!==m?m:"Create"===(null==S?void 0:S.usedFor),readOnly:"Create"!==(null==S?void 0:S.usedFor),isAiStreaming:null==S?void 0:S.isAiStreaming,editFlow:"Edit"===(null==S?void 0:S.usedFor)},{children:t("div",e({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:[k&&(null==S?void 0:S.isAiStreaming)&&t("div",e({style:{display:"flex",alignItems:"center",color:"#141414ff",fontSize:"13px",fontWeight:500,fontStyle:"italic",marginBottom:"8px",paddingLeft:"4px"}},{children:[i(u,{size:16,style:{marginRight:8,animation:"spin 1s linear infinite"}}),"Checking the correctness of your Rule Setup..."]})),i(a.Provider,e({value:e(e({},l(a)),{isEditingSetup:O,draftTitle:b,setDraftTitle:E,draftScope:D,setDraftScope:T})},{children:i(s,{properties:y.properties})})),O?t("div",e({style:{display:"flex",flexDirection:"column",alignItems:"flex-start"}},{children:[t("div",e({style:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"16px"}},{children:[i("button",e({onClick:N,style:{background:"none",border:"none",color:"#6b7280",fontSize:"14px",fontWeight:"500",cursor:"pointer",padding:"0"}},{children:"Discard Changes"})),t("button",e({onClick:P,disabled:F,style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 16px",borderRadius:"12px",border:"none",backgroundColor:"#2563eb",color:"#ffffff",fontSize:"14px",fontWeight:"500",cursor:F?"not-allowed":"pointer",opacity:F?.5:1}},{children:[i(p,{size:18,strokeWidth:2.5,color:"#ffffff"})," Save Changes"]}))]})),"rule-setup"===(null==S?void 0:S.pendingEditId)&&t("div",e({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"10px"}},{children:[i(f,{size:14,style:{color:"#C2410C"}}),i("div",e({style:{color:"#C2410C",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]}))]})):null]}))}))}))};export{v as default};
|
|
2
|
+
//# sourceMappingURL=GlobalSetupAccordionAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalSetupAccordionAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as t,jsx as e,Fragment as n}from"react/jsx-runtime";import{useContext as l,useState as o,Suspense as r}from"react";import{Check as d,X as a,Pencil as s,AlertTriangle as c}from"lucide-react";import{FormContext as p}from"../types.js";var u=function(u){var v,h,m,x,f=u.schema,g=l(p),y=g.state,b=g.uiState,E=g.tierKey,I=g.variantIndex,C="instruction-prompt-".concat(E,"-").concat(I),S=(null==b?void 0:b.activeEditId)===C,w=!!(null==b?void 0:b.activeEditId)&&b.activeEditId!==C,k=o(null),z=k[0],A=k[1];if(!y||!b||!b.LazyPromptEditor)return null;var P=(null===(h=null===(v=y.variantsByTier)||void 0===v?void 0:v[E])||void 0===h?void 0:h[I])||{},_=null!==(m=P.instructionPrompt)&&void 0!==m?m:b.instructionPrompt,B=P.isReadOnly||b.isAiStreaming,L=((null===(x=b.highlights)||void 0===x?void 0:x.get("".concat(E,"_").concat(I)))||{}).instruction_prompt||!1,T=!z||z.trim()===((null==_?void 0:_.trim())||""),W={display:"flex",alignItems:"center",justifyContent:"center",padding:"8px",border:"1px solid #e5e7eb",borderRadius:"8px",cursor:"pointer",width:"36px",height:"36px",backgroundColor:"#ffffff"};return t("div",i({style:{display:"flex",flexDirection:"column",gap:"4px",width:"100%",marginBottom:"12px",margin:"0 0.2rem",overflow:"hidden",boxSizing:"border-box"},"data-edit-id":C},{children:[e("div",i({style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between",marginBottom:"4px"}},{children:e("span",i({style:{fontSize:"14px",fontWeight:500,color:"#19213D",fontFamily:'"Plus Jakarta Sans", sans-serif'}},{children:f.title}))})),t("div",i({style:{display:"flex",alignItems:"flex-start",gap:"8px",width:"100%",minWidth:0}},{children:[e("div",i({style:{flex:1,minWidth:0,border:L?"1px solid #2563EB":"1px solid transparent",borderRadius:"8px",boxShadow:L?"0 0 12px 3px rgba(37, 99, 235, 0.3)":"none",transition:"border-color 0.3s, box-shadow 0.3s"}},{children:e(r,i({fallback:e("div",i({style:{padding:"12px",fontSize:"13px",color:"#6b7280"}},{children:"Loading editor..."}))},{children:e("div",i({style:{pointerEvents:S?"auto":"none",opacity:S?1:.75}},{children:e(b.LazyPromptEditor,{value:S&&null!==z?z:_,onChange:function(i){var t;return S?A(i):null===(t=b.setInstructionPrompt)||void 0===t?void 0:t.call(b,i)},title:f.title,minHeight:"220px",maxHeight:"220px"})}))}))})),!B&&e("div",i({style:{display:"flex",flexDirection:"row",gap:"8px",marginTop:"0px"}},{children:S?t(n,{children:[t("button",i({title:"Apply",onClick:function(){var i,t;if(null!==z){if(z!==(null!=_?_:"")&&(null===(i=b.setInstructionPrompt)||void 0===i||i.call(b,z),null==b?void 0:b.setSendMessageInChat)){var e="sk-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8));b.setSendMessageInChat("__SKELETON__:".concat(e,":The Instruction Prompt has been updated through the Learning Form"))}A(null),null===(t=null==b?void 0:b.setActiveEditId)||void 0===t||t.call(b,null)}},disabled:T,style:i(i({},W),{backgroundColor:"#2563EB",color:"white",width:"auto",padding:"8px 12px",cursor:T?"not-allowed":"pointer",opacity:T?.5:1})},{children:[e(d,{size:20,strokeWidth:2.5})," Apply"]})),e("button",i({title:"Cancel",onClick:function(){var i;A(null),null===(i=null==b?void 0:b.setActiveEditId)||void 0===i||i.call(b,null)},style:i(i({},W),{borderColor:"#E3E8E9",color:"#dc2626"})},{children:e(a,{size:20,strokeWidth:2.5})}))]}):e("button",i({title:w?"Save active edits first":"Edit",onClick:function(){var i;(null==b?void 0:b.activeEditId)&&b.activeEditId!==C||(null===(i=null==b?void 0:b.setActiveEditId)||void 0===i||i.call(b,C),A(null!=_?_:""))},disabled:(null==b?void 0:b.isAiStreaming)||w,style:i(i({},W),{color:"#6b7280",cursor:(null==b?void 0:b.isAiStreaming)||w?"not-allowed":"pointer",opacity:(null==b?void 0:b.isAiStreaming)||w?.5:1})},{children:e(s,{size:20})}))}))]})),(null==b?void 0:b.pendingEditId)===C&&S&&t("div",i({style:{display:"flex",alignItems:"center",gap:"6px",marginTop:"6px"}},{children:[e(c,{size:14,style:{color:"#C2410C"}}),e("div",i({style:{color:"#C2410C",fontSize:"13px"}},{children:"Pending - Changes not applied yet. Apply or discard them to continue."}))]}))]}))};export{u as default};
|
|
2
|
+
//# sourceMappingURL=PromptTextEditorAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptTextEditorAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as o,Fragment as t,jsx as e}from"react/jsx-runtime";import{useContext as n,useState as r}from"react";import{ScopeSection as s}from"../../features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js";import{FormContext as a}from"../types.js";import{InputDataReasoningCard as l}from"../../features/IL-OTJ/_components/InputDataReasoningCard.js";import{ButtonCognitiveIcon as d}from"../../features/IL-OTJ/_components/_svg/ButtonCognitiveIcon.js";var c=function(c){var p,u,v,f,g,m,h,S,O=c.id,I=c.schema,D=n(a),E=D.state,j=D.handlers,C=D.uiState,_=D.isEditingSetup,y=D.draftScope,T=D.setDraftScope,x=r(function(){return new Set([O])}),b=x[0],A=x[1],J=r(!1),L=J[0],M=J[1];if(!E||!C)return null;var w=_&&null!==y?y:E.scopeData,V=(null===(p=C.highlights)||void 0===p?void 0:p.get("global_0"))||{},q=null===(u=E.citation)||void 0===u?void 0:u.scopeData;return o(t,{children:[e(s,{id:O,title:I.title,required:!!I.core_field,readOnly:C.isAiStreaming||!_,openSections:b,setOpenSections:A,scopeData:w,onScopeChange:function(o,t){var e;return _?T(i(i({},w),((e={})[o]=t,e))):j.onScopeChange(o,t)},stationOptions:C.stationOptions,tierOptions:C.tierOptions,isOpen:b.has(O)||L,onToggle:function(){return M(!L)},showCognitiveIcon:!!q,cognitiveIcon:e(d,{}),highlights:V,tooltipDescription:null!==(v=I.tooltip)&&void 0!==v?v:"",errorMessage:(null===(f=C.validationErrors)||void 0===f?void 0:f.station)||(null===(g=C.validationErrors)||void 0===g?void 0:g.tiers),stationErrorMessage:null===(m=C.validationErrors)||void 0===m?void 0:m.station,tierErrorMessage:null===(h=C.validationErrors)||void 0===h?void 0:h.tiers}),q&&e("div",i({style:{marginTop:"-17px",position:"relative",zIndex:1}},{children:e(l,{isVisible:L,citation:q,citations:function(i){var o,t,e=null===(o=E.fieldCitations)||void 0===o?void 0:o[i];return Array.isArray(e)&&e.length>0?e:null!==(t=E.citations)&&void 0!==t?t:[]}("scopeData"),fieldName:I.title||"Scope",fieldValue:null===(S=null==w?void 0:w.tiers)||void 0===S?void 0:S.join(", ")})}))]})};export{c as default};
|
|
2
|
+
//# sourceMappingURL=ScopeSectionAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopeSectionAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as t,Fragment as e,jsx as n}from"react/jsx-runtime";import{useContext as o,useState as l}from"react";import{TextSection as a}from"../../features/IL-OTJ/_components/organisms/TextSection/TextSection.js";import{FormContext as d}from"../types.js";import{InputDataReasoningCard as r}from"../../features/IL-OTJ/_components/InputDataReasoningCard.js";var s=function(s){var c,v,u,g,p,m,f,h,I,y,T,E,S,_,D,b,A,x,C;s.id;var O=s.schema,j=o(d),F=j.state,M=j.handlers,R=j.uiState,w=j.tierKey,B=j.variantIndex,k=j.isEditingSetup,J=j.draftTitle,L=j.setDraftTitle,N=l(!1),P=N[0],V=N[1];if(!F||!R)return null;var q=null===(c=O.data_key)||void 0===c?void 0:c.startsWith("global."),z=(null===(v=O.data_key)||void 0===v?void 0:v.replace("global.",""))||"",G="";G=q?"ruleTitle"===z?k&&null!==J?J:F.ruleTitle:null===(u=F.dynamicGlobalState)||void 0===u?void 0:u[z]:"ruleDescription"===z?null===(m=null===(p=null===(g=F.variantsByTier)||void 0===g?void 0:g[w])||void 0===p?void 0:p[B])||void 0===m?void 0:m.ruleDescription:null===(y=null===(I=null===(h=null===(f=F.variantsByTier)||void 0===f?void 0:f[w])||void 0===h?void 0:h[B])||void 0===I?void 0:I.dynamicFields)||void 0===y?void 0:y[z];var H=R.highlights||new Map,K=q?null===(T=H.get("global_0")||{})||void 0===T?void 0:T[z]:null===(E=H.get("".concat(w,"_").concat(B))||{})||void 0===E?void 0:E[z],W=q?null===(S=F.citation)||void 0===S?void 0:S[z]:null===(_=F.citation)||void 0===_?void 0:_["".concat(z,"_").concat(w)],Q=q?null===(D=R.validationErrors)||void 0===D?void 0:D[z]:null===(b=R.validationErrors)||void 0===b?void 0:b["".concat(z,"-").concat(w,"-").concat(B)],U=q?R.isAiStreaming||!k:R.isAiStreaming||(null===(C=null===(x=null===(A=F.variantsByTier)||void 0===A?void 0:A[w])||void 0===x?void 0:x[B])||void 0===C?void 0:C.isReadOnly);return t(e,{children:[n(a,{id:q?"global-".concat(z):"".concat(z,"-").concat(w,"-").concat(B),title:O.title,rows:q?1:2,placeholder:O.placeholder,required:!!O.core_field,readOnly:U,value:G||"",onChange:function(i){q?"ruleTitle"===z?k?L(i):M.setRuleTitle(i):M.setDynamicField(z,i):"ruleDescription"===z?M.setRuleDescription(w,B,i):M.setDynamicField(z,i,w,B)},enableInlineEdit:!0,fieldName:O.title,tooltipDescription:O.tooltip,errorMessage:Q,isHighlighted:K||!1,isOpen:P,onToggle:function(){return V(!P)},showCognitiveIcon:!!W,activeEditId:R.activeEditId,setActiveEditId:R.setActiveEditId,pendingEditId:R.pendingEditId,setPendingEditId:R.setPendingEditId,setSendMessageInChat:R.setSendMessageInChat,isAiStreaming:R.isAiStreaming}),W&&n("div",i({style:{marginTop:"-17px",position:"relative",zIndex:1}},{children:n(r,{isVisible:P,citation:W,citations:function(i){var t,e,n=null===(t=F.fieldCitations)||void 0===t?void 0:t[i];return Array.isArray(n)&&n.length>0?n:null!==(e=F.citations)&&void 0!==e?e:[]}(q?z:"".concat(z,"_").concat(w,"_").concat(B)),fieldName:O.title||"Field",fieldValue:G})}))]})};export{s as default};
|
|
2
|
+
//# sourceMappingURL=TextInputAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInputAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as i}from"react/jsx-runtime";import{useContext as r,useState as t}from"react";import{VariantListWrapper as a}from"../../features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js";import n from"../../features/IL-OTJ/_components/AccordianSection.js";import{FormContext as l}from"../types.js";import{SchemaPropertyList as o}from"../SchemaRenderer.js";var d=function(d){var u,s,c,v,f=d.schema,p=r(l),m=p.state,h=p.handlers,y=p.uiState,x=t(null),A=x[0],g=x[1];if(!m)return null;var D=(null===(c=null===(s=null===(u=m.scopeData)||void 0===u?void 0:u.tiers)||void 0===s?void 0:s[0])||void 0===c?void 0:c.toLowerCase().replace(/ /g,"_"))||"tier_1",T=(null===(v=m.variantsByTier)||void 0===v?void 0:v[D])||[];return i(a,e({onAddVariant:function(){var e;return null===(e=h.addNewVariant)||void 0===e?void 0:e.call(h,D)},isDisabled:null==y?void 0:y.isAiStreaming,showAddVariantBtn:"Edit"!==(null==y?void 0:y.usedFor)},{children:T.map(function(r,t){var a="".concat(D,"-variant-").concat(t),d=r.variantType||"default";return i("div",e({style:{width:"100%"}},{children:i(n,e({title:{type:"default"===d||"default_variant"===d?"default":"variant",label:d,number:t+1,isNewVariant:!0===r.is_variant,isDefault:r.isDefault,isModified:r.isModified},defaultOpen:!0,expanded:A===a||(null==y?void 0:y.activeVariantAccordionIndex)===t,onToggle:function(){var e,i=A===a;g(i?null:a),null===(e=null==y?void 0:y.setActiveVariantAccordionIndex)||void 0===e||e.call(y,i?null:t)},variant:"rule-behavior",footerData:{ruleTitle:d,description:r.ruleDescription||""},readOnly:r.isReadOnly||(null==y?void 0:y.isAiStreaming)},{children:i("div",e({style:{display:"flex",flexDirection:"column",gap:"12px"}},{children:i(l.Provider,e({value:{state:m,handlers:h,uiState:y,tierKey:D,variantIndex:t}},{children:i(o,{properties:f.properties})}))}))}))}),a)})}))};export{d as default};
|
|
2
|
+
//# sourceMappingURL=VariantListWrapperAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariantListWrapperAdapter.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={type:"object",title:"RHS FORM",properties:{section_1:{type:"object",title:"Configure your IL",ui_position:1,bpa_ui_component:"Accordion",default_open:!0,properties:{ruleTitle:{type:"string",title:"Learning Title",placeholder:"Enter a short, descriptive title for the learning",ui_position:1,bpa_ui_component:"TextInput",data_key:"global.ruleTitle",core_field:!0,ai_generated:!0,read_only:!1,hidden:!1,tooltip:"Why this Title?"},scopeData:{type:"object",title:"Scope",ui_position:2,bpa_ui_component:"ScopeSection",data_key:"global.scopeData",core_field:!0,ai_generated:!0,read_only:!1,hidden:!1}}},section_2:{type:"object",title:"Variants",ui_position:2,bpa_ui_component:"Accordion",default_open:!0,properties:{variantList:{type:"array",title:"Variants",ui_position:1,bpa_ui_component:"VariantListWrapper",is_repeatable_variant:!0,properties:{ruleDescription:{type:"string",title:"Learning Explanation",placeholder:"Explain the learning behaviour",ui_position:1,bpa_ui_component:"TextInput",data_key:"ruleDescription",core_field:!0,ai_generated:!0,read_only:!1,hidden:!1},instructionPrompt:{type:"string",title:"Instruction Prompt",ui_position:2,bpa_ui_component:"PromptTextEditor",data_key:"instructionPrompt",core_field:!1,ai_generated:!0,read_only:!1,hidden:!1},whenToApply:{type:"array",title:"When to apply",ui_position:3,bpa_ui_component:"ConditionSection",data_key:"wta",core_field:!0,ai_generated:!0,read_only:!1,hidden:!1},whenNotToApply:{type:"array",title:"When NOT to apply",ui_position:4,bpa_ui_component:"ConditionSection",data_key:"wnta",core_field:!1,ai_generated:!0,read_only:!1,hidden:!1},configurations:{type:"object",title:"Advanced Settings",ui_position:5,bpa_ui_component:"ConfigSection",data_key:"configData",core_field:!1,ai_generated:!0,read_only:!1,hidden:!1,properties:{is_default:{type:"boolean",title:"Default Variant",ui_position:1,data_key:"is_default_enabled",hidden:!1},order_separation_advertisers:{type:"array",title:"Order Separation Advertisers",ui_position:2,data_key:"order_rules",hidden:!0}}}}}}}}};export{e as DEMO_LEARNING_METADATA_COMPONENTS};
|
|
2
|
+
//# sourceMappingURL=demoSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"demoSchema.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as n}from"react";import{ChevronDown as o}from"lucide-react";var i=function(i){var a=i.schema,d=i.children,l=n(!!a.default_open),s=l[0],c=l[1];return e("div",t({style:{border:"1px solid #E2E8F0",borderRadius:12,marginBottom:12,overflow:"hidden"}},{children:[e("button",t({type:"button",onClick:function(){return c(function(t){return!t})},"aria-expanded":s,style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",background:"#F8FAFC",border:"none",cursor:"pointer",fontSize:14,fontWeight:500,color:"#19213D",fontFamily:'"Plus Jakarta Sans", sans-serif'}},{children:[a.title,r(o,{size:18,style:{transform:s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}})]})),s&&r("div",t({style:{padding:16,display:"flex",flexDirection:"column",gap:12}},{children:d}))]}))};export{i as default};
|
|
2
|
+
//# sourceMappingURL=Accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Proof-of-concept template: the entire RHS form is generated from
|
|
4
|
+
* `learningMetadataComponents` — component choice, ordering, and nesting
|
|
5
|
+
* all come from the JSON, resolved through the component registry. No
|
|
6
|
+
* per-field JSX. Falls back to `DEMO_LEARNING_METADATA_COMPONENTS` when the
|
|
7
|
+
* real teach-me config hasn't been fetched, so it's always previewable.
|
|
8
|
+
*/
|
|
9
|
+
export declare const SchemaDrivenCreateRule: React.FC<any>;
|
|
10
|
+
export default SchemaDrivenCreateRule;
|
|
11
|
+
//# sourceMappingURL=SchemaDrivenCreateRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaDrivenCreateRule.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/IL-OTJ/_components/templates/SchemaDriven/SchemaDrivenCreateRule.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAahD,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { GuidelineInstance } from '../interfacesApi';
|
|
|
3
3
|
interface CartProps {
|
|
4
4
|
items: GuidelineInstance[];
|
|
5
5
|
onRemove: (id: string) => void;
|
|
6
|
-
onProceed: (selected: GuidelineInstance
|
|
6
|
+
onProceed: (selected: GuidelineInstance) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare function Cart({ items, onRemove, onProceed }: CartProps): import("react").JSX.Element;
|
|
9
9
|
export default Cart;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cart.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LSCGuidelinesCart/Cart/Cart.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,UAAU,SAAS;IACjB,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,SAAS,EAAE,CAAC,QAAQ,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Cart.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LSCGuidelinesCart/Cart/Cart.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,UAAU,SAAS;IACjB,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,SAAS,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAClD;AAaD,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,SAAS,+BAyE7D;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -2,15 +2,10 @@
|
|
|
2
2
|
import type { User } from '../LearningManagement/store/types';
|
|
3
3
|
interface GuidelineLandingPageProps {
|
|
4
4
|
baseUrl: string;
|
|
5
|
-
baseWebsocketUrl: string;
|
|
6
5
|
token: string;
|
|
7
6
|
userDetails: User;
|
|
8
7
|
modeId?: string;
|
|
9
|
-
assistantName: string;
|
|
10
|
-
appsecRbacUrl: string;
|
|
11
|
-
appsecBaseUrl: string;
|
|
12
|
-
onProceedSelected: (selected: any) => void;
|
|
13
8
|
}
|
|
14
|
-
export declare function GuidelineLandingPage({ baseUrl,
|
|
9
|
+
export declare function GuidelineLandingPage({ baseUrl, token, userDetails, modeId }: GuidelineLandingPageProps): import("react").JSX.Element;
|
|
15
10
|
export default GuidelineLandingPage;
|
|
16
11
|
//# sourceMappingURL=GuidelinesLandingPage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GuidelinesLandingPage.d.ts","sourceRoot":"","sources":["../../../../../src/features/LSCGuidelinesCart/GuidelinesLandingPage.tsx"],"names":[],"mappings":";AAQA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"GuidelinesLandingPage.d.ts","sourceRoot":"","sources":["../../../../../src/features/LSCGuidelinesCart/GuidelinesLandingPage.tsx"],"names":[],"mappings":";AAQA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;AAQ9D,UAAU,yBAAyB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,IAAI,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAYD,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,yBAAyB,+BA2ItG;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GuidelinesLandingPage.styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,QAAA,MAAM,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"GuidelinesLandingPage.styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/LSCGuidelinesCart/GuidelinesLandingPage.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,QAAA,MAAM,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CAkI3C,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
import type { User } from '../LearningManagement/store/types';
|
|
3
3
|
interface LearningManagementWrapperProps {
|
|
4
4
|
userDetails: User;
|
|
5
|
-
baseUrl: string;
|
|
6
|
-
baseWebsocketUrl: string;
|
|
7
|
-
assistantName: string;
|
|
8
|
-
appsecRbacUrl: string;
|
|
9
|
-
appsecBaseUrl: string;
|
|
10
5
|
appIntegrationId: string;
|
|
11
6
|
modeId?: string;
|
|
12
7
|
guidelineTitle?: string;
|
|
@@ -14,6 +9,6 @@ interface LearningManagementWrapperProps {
|
|
|
14
9
|
/** Slot for additional header actions (buttons, etc.) */
|
|
15
10
|
headerActions?: React.ReactNode;
|
|
16
11
|
}
|
|
17
|
-
export declare function LearningManagementWrapper({ userDetails,
|
|
12
|
+
export declare function LearningManagementWrapper({ userDetails, appIntegrationId, modeId, guidelineTitle, onBack, headerActions, }: LearningManagementWrapperProps): import("react").JSX.Element;
|
|
18
13
|
export default LearningManagementWrapper;
|
|
19
14
|
//# sourceMappingURL=LearningManagementWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LearningManagementWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/LSCGuidelinesCart/LearningManagementWrapper.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"LearningManagementWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/LSCGuidelinesCart/LearningManagementWrapper.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;AA0C9D,UAAU,8BAA8B;IACtC,WAAW,EAAE,IAAI,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,yDAAyD;IACzD,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAqDD,wBAAgB,yBAAyB,CAAC,EACxC,WAAW,EACX,gBAAgB,EAChB,MAAM,EACN,cAAc,EACd,MAAM,EACN,aAAa,GACd,EAAE,8BAA8B,+BAwBhC;AAED,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { ListInstancesResponse } from './interfacesApi';
|
|
2
2
|
export declare function fetchGuidelineInstances(baseUrl: string, token: string): Promise<ListInstancesResponse>;
|
|
3
|
-
export declare function fetchRBACConfig(baseUrl: string, token: string, applicationMappingId: string): Promise<any>;
|
|
4
3
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/features/LSCGuidelinesCart/api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,qBAAqB,CAAC,CAShC
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/features/LSCGuidelinesCart/api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,qBAAqB,CAAC,CAShC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../../src/features/LSCGuidelinesCart/endpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;6BACK,MAAM;
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../../src/features/LSCGuidelinesCart/endpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;6BACK,MAAM;CAEhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditLog.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/AuditLog/AuditLog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AuditLog.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/AuditLog/AuditLog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,yCAAyC,CAAC;AA6DjD,UAAU,aAAa;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6RrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizeObserverErrorGuard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/utils/resizeObserverErrorGuard.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,+BAA+B,YAyB3C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SchemaComponentProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Rendered by the registry whenever a schema node's `bpa_ui_component`
|
|
5
|
+
* doesn't match a registered component, so an unrecognized value degrades
|
|
6
|
+
* gracefully instead of breaking the form. Shares `SchemaComponentProps`
|
|
7
|
+
* with every other registered component (including the unused `id`/
|
|
8
|
+
* `children`) so it unifies cleanly in the `resolveRegistryComponentOrFallback`
|
|
9
|
+
* return type.
|
|
10
|
+
*/
|
|
11
|
+
declare const FallbackField: React.FC<SchemaComponentProps>;
|
|
12
|
+
export default FallbackField;
|
|
13
|
+
//# sourceMappingURL=FallbackField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FallbackField.d.ts","sourceRoot":"","sources":["../../../../src/schema-driven/FallbackField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;;;GAOG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAuBjD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SchemaFieldNode, SchemaRoot } from './types';
|
|
3
|
+
interface SchemaPropertyListProps {
|
|
4
|
+
properties: Record<string, SchemaFieldNode>;
|
|
5
|
+
}
|
|
6
|
+
/** Renders every property of a schema node, ordered by `ui_position`. */
|
|
7
|
+
export declare const SchemaPropertyList: React.FC<SchemaPropertyListProps>;
|
|
8
|
+
export interface SchemaFormProps {
|
|
9
|
+
schema?: SchemaRoot | null;
|
|
10
|
+
state?: any;
|
|
11
|
+
handlers?: any;
|
|
12
|
+
uiState?: any;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Entry point: renders an entire `learningMetadataComponents`-shaped schema
|
|
16
|
+
* with no per-field code required — component resolution, ordering, and
|
|
17
|
+
* nesting are all driven by the JSON itself via the component registry.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SchemaForm: React.FC<SchemaFormProps>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=SchemaRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaRenderer.d.ts","sourceRoot":"","sources":["../../../../src/schema-driven/SchemaRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAe,MAAM,SAAS,CAAC;AA0DnE,UAAU,uBAAuB;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC7C;AAED,yEAAyE;AACzE,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAUhE,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAOhD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SchemaComponentProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Bridges the schema-driven renderer to the existing `ConditionSection`
|
|
5
|
+
* organism (used for both "When to apply" and "When NOT to apply" via
|
|
6
|
+
* `schema.data_key` — `wta` / `wnta`). Holds its own local list of
|
|
7
|
+
* conditions until real form state (keyed by `data_key`) replaces it.
|
|
8
|
+
*/
|
|
9
|
+
declare const ConditionSectionAdapter: React.FC<SchemaComponentProps>;
|
|
10
|
+
export default ConditionSectionAdapter;
|
|
11
|
+
//# sourceMappingURL=ConditionSectionAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionSectionAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/adapters/ConditionSectionAdapter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAE7D;;;;;GAKG;AACH,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsD3D,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SchemaComponentProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Bridges the schema-driven renderer to the existing `ConfigSection`
|
|
5
|
+
* organism. The nested `is_default` / `order_separation_advertisers`
|
|
6
|
+
* schema properties are consumed internally by `ConfigSection` itself
|
|
7
|
+
* (as `separationItems` / `toggles`), so this adapter is a leaf — it does
|
|
8
|
+
* not recurse into `schema.properties`. Holds local state until real form
|
|
9
|
+
* state (keyed by `data_key`) replaces it.
|
|
10
|
+
*/
|
|
11
|
+
declare const ConfigSectionAdapter: React.FC<SchemaComponentProps>;
|
|
12
|
+
export default ConfigSectionAdapter;
|
|
13
|
+
//# sourceMappingURL=ConfigSectionAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigSectionAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/adapters/ConfigSectionAdapter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAE7D;;;;;;;GAOG;AACH,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8BxD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalSetupAccordionAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/adapters/GlobalSetupAccordionAdapter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAI7D,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAoJ/D,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SchemaComponentProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Bridges the schema-driven renderer to the existing `PromptTextEditor`
|
|
5
|
+
* (a thin wrapper around the vendor `AIPromptEditor`). That component
|
|
6
|
+
* requires a real `value`/`onChange` pair — it crashes internally if
|
|
7
|
+
* `value` is undefined — so this adapter cannot use the generic
|
|
8
|
+
* `{id, schema, children}` contract directly and holds local state until
|
|
9
|
+
* `data_key`-based form state replaces it.
|
|
10
|
+
*/
|
|
11
|
+
declare const PromptTextEditorAdapter: React.FC<SchemaComponentProps>;
|
|
12
|
+
export default PromptTextEditorAdapter;
|
|
13
|
+
//# sourceMappingURL=PromptTextEditorAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptTextEditorAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/adapters/PromptTextEditorAdapter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAE7D;;;;;;;GAOG;AACH,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAoF3D,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScopeSectionAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/adapters/ScopeSectionAdapter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAI7D,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAuDvD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SchemaComponentProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Bridges the schema-driven renderer to the existing `TextSection` organism
|
|
5
|
+
* (cognitive-icon slot, tooltip, highlight, inline edit/apply/cancel) instead
|
|
6
|
+
* of a bare input, so schema-driven fields get the same chrome as the
|
|
7
|
+
* hand-built form.
|
|
8
|
+
*
|
|
9
|
+
* Note: `TextSection`'s "Apply" only fires `setSendMessageInChat` — the real
|
|
10
|
+
* value swap happens when a new `value` prop flows back down after the AI
|
|
11
|
+
* chat approves the edit, same as everywhere else in `CreateRule.tsx`. We
|
|
12
|
+
* don't have that chat loop here, so Apply currently just closes the editor
|
|
13
|
+
* without persisting; `onChange`/local `value` becomes live again once
|
|
14
|
+
* `data_key` state binding (or an equivalent approval loop) lands.
|
|
15
|
+
*/
|
|
16
|
+
declare const TextInputAdapter: React.FC<SchemaComponentProps>;
|
|
17
|
+
export default TextInputAdapter;
|
|
18
|
+
//# sourceMappingURL=TextInputAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInputAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/adapters/TextInputAdapter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAG7D;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAoFpD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SchemaComponentProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Bridges the schema-driven renderer to the exact `VariantListWrapper` used
|
|
5
|
+
* by `CreateRule.tsx` — same connector-line layout and "Add Variant"
|
|
6
|
+
* affordance, instead of a second implementation. `VariantListWrapper` has
|
|
7
|
+
* no collapse/dropdown behavior of its own, so a schema wanting the
|
|
8
|
+
* "Variants" block collapsible must nest this node under an `Accordion`
|
|
9
|
+
* node — the container.
|
|
10
|
+
*
|
|
11
|
+
* "Add Variant" is disabled until repeatable-variant state (cloning the
|
|
12
|
+
* child field set per variant) lands with the state-management phase; the
|
|
13
|
+
* schema only renders one instance of its properties today.
|
|
14
|
+
*/
|
|
15
|
+
declare const VariantListWrapperAdapter: React.FC<SchemaComponentProps>;
|
|
16
|
+
export default VariantListWrapperAdapter;
|
|
17
|
+
//# sourceMappingURL=VariantListWrapperAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariantListWrapperAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/adapters/VariantListWrapperAdapter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAG7D;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsD7D,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SchemaRoot } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Fixture matching `teachMeConfig.learningMetadataComponents`. Used by
|
|
4
|
+
* `SchemaDrivenCreateRule` whenever the real config hasn't been fetched yet
|
|
5
|
+
* (e.g. local development), so the renderer is always previewable. Edit
|
|
6
|
+
* this to try out new fields/components without touching any backend config.
|
|
7
|
+
*
|
|
8
|
+
* `section_2` nests its `VariantListWrapper` inside an `Accordion` —
|
|
9
|
+
* `VariantListWrapper` has no collapse behavior of its own, so the parent
|
|
10
|
+
* `Accordion` is what gives the "Variants" block its dropdown.
|
|
11
|
+
*/
|
|
12
|
+
export declare const DEMO_LEARNING_METADATA_COMPONENTS: SchemaRoot;
|
|
13
|
+
//# sourceMappingURL=demoSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"demoSchema.d.ts","sourceRoot":"","sources":["../../../../src/schema-driven/demoSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC;;;;;;;;;GASG;AACH,eAAO,MAAM,iCAAiC,EAAE,UAgI/C,CAAC"}
|