@wildo-ai/application-creation-workbench 1.1.7 → 1.1.9

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 (96) hide show
  1. package/dist/.vite/manifest.json +385 -385
  2. package/dist/assets/{ChartEmptyState-BP_Yq5V7.js → ChartEmptyState-CA6E4koh.js} +1 -1
  3. package/dist/assets/{ChartView-07Vh3EtV.js → ChartView-DStCqyur.js} +1 -1
  4. package/dist/assets/{_basePickBy-C0TWefH3.js → _basePickBy-PxPGZAPt.js} +1 -1
  5. package/dist/assets/{_baseUniq-aBjj_hOi.js → _baseUniq-Dr0B8RcW.js} +1 -1
  6. package/dist/assets/{arc-B7pBcXhk.js → arc-BCxhne5b.js} +1 -1
  7. package/dist/assets/{architectureDiagram-VXUJARFQ-CxaR1SOK.js → architectureDiagram-VXUJARFQ-BafgqUt1.js} +1 -1
  8. package/dist/assets/{blockDiagram-VD42YOAC-FQ6rpl1q.js → blockDiagram-VD42YOAC-BMehHxU0.js} +1 -1
  9. package/dist/assets/{c4Diagram-YG6GDRKO-MBotlECZ.js → c4Diagram-YG6GDRKO-C60Zc1ur.js} +1 -1
  10. package/dist/assets/channel-BSjhzmAh.js +1 -0
  11. package/dist/assets/{chunk-4BX2VUAB-DH3JjsZf.js → chunk-4BX2VUAB-CTnmF94A.js} +1 -1
  12. package/dist/assets/{chunk-55IACEB6-B-1eMtsJ.js → chunk-55IACEB6-CCEERyVz.js} +1 -1
  13. package/dist/assets/{chunk-B4BG7PRW-DjqjS8Nd.js → chunk-B4BG7PRW-Bd1lZGJG.js} +1 -1
  14. package/dist/assets/{chunk-DI55MBZ5-CNDJpkHu.js → chunk-DI55MBZ5-pPkYoNm8.js} +1 -1
  15. package/dist/assets/{chunk-FMBD7UC4-C_LJMr3H.js → chunk-FMBD7UC4-BP87pAEZ.js} +1 -1
  16. package/dist/assets/{chunk-QN33PNHL-DOWhVFKY.js → chunk-QN33PNHL-DsXFbADB.js} +1 -1
  17. package/dist/assets/{chunk-QZHKN3VN-BqSJxIuw.js → chunk-QZHKN3VN-1so6qtpq.js} +1 -1
  18. package/dist/assets/{chunk-TZMSLE5B-CnGhg192.js → chunk-TZMSLE5B-B_cDnZaH.js} +1 -1
  19. package/dist/assets/classDiagram-2ON5EDUG-BI55jv-b.js +1 -0
  20. package/dist/assets/classDiagram-v2-WZHVMYZB-BI55jv-b.js +1 -0
  21. package/dist/assets/clone-pAAsd97l.js +1 -0
  22. package/dist/assets/{cm6-editor-DpZrV-bm.js → cm6-editor-DtQugoUi.js} +3 -3
  23. package/dist/assets/{code-block-IT6T5CEO-CJXyw75w.js → code-block-IT6T5CEO-CamRCCap.js} +1 -1
  24. package/dist/assets/{context-CYZBYFJH.js → context-5IfXBNFh.js} +1 -1
  25. package/dist/assets/{cose-bilkent-S5V4N54A-BV1r6KdQ.js → cose-bilkent-S5V4N54A-B09Dktme.js} +1 -1
  26. package/dist/assets/{dagre-6UL2VRFP-xo5kvHqM.js → dagre-6UL2VRFP-BmuAxM8G.js} +1 -1
  27. package/dist/assets/{diagram-PSM6KHXK-yWnIouwj.js → diagram-PSM6KHXK-Bkvv5TXZ.js} +1 -1
  28. package/dist/assets/{diagram-QEK2KX5R-7PaiBPsn.js → diagram-QEK2KX5R-CFRYA-1_.js} +1 -1
  29. package/dist/assets/{diagram-S2PKOQOG-CLb_cZaK.js → diagram-S2PKOQOG-BakWEXwJ.js} +1 -1
  30. package/dist/assets/{dropbox-picker-dJzRo9BP.js → dropbox-picker-SbIc-yTi.js} +1 -1
  31. package/dist/assets/{erDiagram-Q2GNP2WA-C7zQODGQ.js → erDiagram-Q2GNP2WA-wCLaSHi3.js} +1 -1
  32. package/dist/assets/{flowDiagram-NV44I4VS-CU90-nPK.js → flowDiagram-NV44I4VS-BOW4oHpe.js} +1 -1
  33. package/dist/assets/{flows-actors-graph-runtime-I8VIayGy.js → flows-actors-graph-runtime-DwqVQIB4.js} +1 -1
  34. package/dist/assets/{ganttDiagram-JELNMOA3-QChqch-L.js → ganttDiagram-JELNMOA3-waEzEqIm.js} +1 -1
  35. package/dist/assets/{gitGraphDiagram-V2S2FVAM-C9TJLfq4.js → gitGraphDiagram-V2S2FVAM-Bn_C8-0p.js} +1 -1
  36. package/dist/assets/{google-drive-picker-DP0pskfD.js → google-drive-picker-Brg_D--a.js} +1 -1
  37. package/dist/assets/{graph-BSonitmV.js → graph-bgLtj7Y8.js} +1 -1
  38. package/dist/assets/{graph-runtime-8-ugTIpe.js → graph-runtime-DWGEWD_1.js} +1 -1
  39. package/dist/assets/{index-BVEXkCPp.js → index-B8StGLIQ.js} +1 -1
  40. package/dist/assets/{index-B5SFUruu.js → index-BMMyGG2T.js} +1 -1
  41. package/dist/assets/{index-CTGTArYi.js → index-BMoCeE1-.js} +1 -1
  42. package/dist/assets/{index-BAj7bJQ9.js → index-BckMSXPQ.js} +1 -1
  43. package/dist/assets/{index-DNdNQX3_.js → index-Bpvab_-s.js} +1 -1
  44. package/dist/assets/{index-CclRN4na.js → index-BuvV8V6v.js} +1 -1
  45. package/dist/assets/{index-BkfsYGDI.js → index-Bx0F_jZr.js} +1 -1
  46. package/dist/assets/{index-CqAJwEb9.js → index-CGd_uf0m.js} +1 -1
  47. package/dist/assets/{index-D-9PKSn4.js → index-Cspkc1eu.js} +1 -1
  48. package/dist/assets/{index-CpNjptBT.js → index-CvHcD4qM.js} +3 -3
  49. package/dist/assets/{index-DRrfjJvh.js → index-CwoMDyqk.js} +1 -1
  50. package/dist/assets/{index-vvv2MPol.js → index-D2c7Ku-R.js} +1 -1
  51. package/dist/assets/{index-D_QZLEQq.js → index-D6Tyt-wK.js} +1 -1
  52. package/dist/assets/{index-tJ39cHN5.js → index-D8kAaFuw.js} +1 -1
  53. package/dist/assets/{index-Bzi4leGz.js → index-DJcbmKJR.js} +1 -1
  54. package/dist/assets/{index-B3f48X5_.js → index-DVouPxVE.js} +1 -1
  55. package/dist/assets/{index-dEth1qer.js → index-DbAWTwqd.js} +1 -1
  56. package/dist/assets/{index-D8dkqP85.js → index-Deq6GKqj.js} +247 -247
  57. package/dist/assets/{index-DwafvHBM.js → index-DeyYR0fx.js} +1 -1
  58. package/dist/assets/{index-jiRPxWhK.js → index-Dj2XlnsI.js} +1 -1
  59. package/dist/assets/{index-BZyZXiVP.js → index-DllpsRpo.js} +1 -1
  60. package/dist/assets/{index-Cx98Z3Ta.js → index-DqngBhJ0.js} +1 -1
  61. package/dist/assets/{index-CZfKMV0S.js → index-Dtd0CpHR.js} +1 -1
  62. package/dist/assets/{index-Dl0klRA0.js → index-EMv_Sqcl.js} +1 -1
  63. package/dist/assets/{index-CFS2kf4X.js → index-OfYRxDdG.js} +1 -1
  64. package/dist/assets/{index-D12-fzIP.js → index-_ofx18fG.js} +1 -1
  65. package/dist/assets/{index-DL_hDFJK.js → index-szDqrNca.js} +1 -1
  66. package/dist/assets/{index.es-BIyJxiiZ.js → index.es-p-knN0kS.js} +1 -1
  67. package/dist/assets/{infoDiagram-HS3SLOUP-Beor-41t.js → infoDiagram-HS3SLOUP-dubYV_w9.js} +1 -1
  68. package/dist/assets/{journeyDiagram-XKPGCS4Q-TTxuStRy.js → journeyDiagram-XKPGCS4Q-CSWt03b7.js} +1 -1
  69. package/dist/assets/{kanban-definition-3W4ZIXB7-BYqFfkjy.js → kanban-definition-3W4ZIXB7-ByY0OYwS.js} +1 -1
  70. package/dist/assets/{layout-DrzykIoN.js → layout-EFHHMOfd.js} +1 -1
  71. package/dist/assets/{linear-D86elEgL.js → linear-DO91-bmQ.js} +1 -1
  72. package/dist/assets/{maximize-2-zJKkDRK0.js → maximize-2-C2yGTSk4.js} +1 -1
  73. package/dist/assets/{mermaid-VLURNSYL-BAygRTK6.js → mermaid-VLURNSYL-dgg9HxDX.js} +4 -4
  74. package/dist/assets/{mermaid.core-bwWKwscf.js → mermaid.core-BL3HF1R-.js} +5 -5
  75. package/dist/assets/{mindmap-definition-VGOIOE7T-DmkSZj5s.js → mindmap-definition-VGOIOE7T-B4i70cEc.js} +1 -1
  76. package/dist/assets/{onedrive-picker-CyXOFDsr.js → onedrive-picker-D2ddyZkk.js} +1 -1
  77. package/dist/assets/{pdf-viewer-BSy3edho.js → pdf-viewer-BVwxWIH-.js} +1 -1
  78. package/dist/assets/{pieDiagram-ADFJNKIX-BoqRK1Nj.js → pieDiagram-ADFJNKIX-CqevL_e_.js} +1 -1
  79. package/dist/assets/{quadrantDiagram-AYHSOK5B-iVG56kyl.js → quadrantDiagram-AYHSOK5B-CG96jkRC.js} +1 -1
  80. package/dist/assets/{requirementDiagram-UZGBJVZJ-BlfhbQSa.js → requirementDiagram-UZGBJVZJ-BK8alIMw.js} +1 -1
  81. package/dist/assets/{sankeyDiagram-TZEHDZUN-CIqchrnr.js → sankeyDiagram-TZEHDZUN-BpWrAb31.js} +1 -1
  82. package/dist/assets/{sequenceDiagram-WL72ISMW-D98Lehfv.js → sequenceDiagram-WL72ISMW-eylhbjl4.js} +1 -1
  83. package/dist/assets/{shiki-highlighter-runtime-CUsH9pAI.js → shiki-highlighter-runtime-CiYBcgw5.js} +1 -1
  84. package/dist/assets/{stateDiagram-FKZM4ZOC-DKCmtDHk.js → stateDiagram-FKZM4ZOC-Biv9uaDx.js} +1 -1
  85. package/dist/assets/stateDiagram-v2-4FDKWEC3-CvfomsRj.js +1 -0
  86. package/dist/assets/{timeline-definition-IT6M3QCI-DeDxHecT.js → timeline-definition-IT6M3QCI-BIN7RjGk.js} +1 -1
  87. package/dist/assets/{treemap-GDKQZRPO-DIQh1NSx.js → treemap-GDKQZRPO-CewZawC8.js} +1 -1
  88. package/dist/assets/{useQuickActionButtonBehavior-BpISdruD.js → useQuickActionButtonBehavior-5uA_sWDa.js} +1 -1
  89. package/dist/assets/{xychartDiagram-PRI3JC2R-DeAMabcI.js → xychartDiagram-PRI3JC2R-DgmjzmNO.js} +1 -1
  90. package/dist/index.html +1 -1
  91. package/package.json +8 -8
  92. package/dist/assets/channel-BihP_0tn.js +0 -1
  93. package/dist/assets/classDiagram-2ON5EDUG-DmlHswhx.js +0 -1
  94. package/dist/assets/classDiagram-v2-WZHVMYZB-DmlHswhx.js +0 -1
  95. package/dist/assets/clone-H3FbKF9K.js +0 -1
  96. package/dist/assets/stateDiagram-v2-4FDKWEC3-BExRj50s.js +0 -1
@@ -1 +1 @@
1
- import{ar as re,as as L,at as Te,L as Ce,ag as _,au as ce,r as s,av as ue,aw as v,ax as b,ay as he,az as le,aA as de,aB as ge,aC as Ae,aD as D,aE as V,aF as k,l as E,aG as W,aH as G,aI as J,aJ as ye,aK as Ie,aL as be,aM as Oe,aN as Q,aO as Se,a7 as Re,aP as fe,aQ as Ne,aR as pe,aS as Ee,aT as se,aU as Y,aV as z,u as Z,F as B,aW as Me,aX as Be,aY as Le,aZ as ve,a_ as Pe,a$ as X,b0 as _e,b1 as ke,a4 as we,b2 as me,b3 as q,b4 as ee,b5 as Ue,b6 as Ve,b7 as K,b8 as Fe,b9 as De,ba as xe,bb as He,bc as ne,bd as Ke,be as je,bf as w,t as $,bg as Qe,bh as Ye,bi as ae}from"./index-D8dkqP85.js";const ie=new Set;function ze(n){const o=typeof n=="string"?n:re(n)?n.placement:void 0;if(o===void 0)return L.BOTTOM;if(Te(o))return o;const t=String(o);return ie.has(t)||(ie.add(t),Ce.getLogger().warn(`[app-shell] the status bar is configured at '${t}', which no shell layout places (only '${L.TOP}' and '${L.BOTTOM}'); it is shown at '${L.BOTTOM}'.`)),L.BOTTOM}function an(){const{UIConfig:n,navigationLayout:o,appComponentsConfiguration:t}=_(),{markComponentInitialized:a}=ce(),i=!!(o&&t);return s.useEffect(()=>{i&&a(ue.APP_MAIN_CONTAINER)},[i,a]),s.useMemo(()=>{if(!i||!o||!t)return{hasMenubar:!1,hasSidebar:!1,hasStatusBar:!1,hasToolbar:!1,hasActivityBar:!1,hasQuickActionButton:!1,hasUtilityPanel:!1,sidebarPlacement:v.START,statusBarPlacement:L.BOTTOM,utilityPanelPlacement:v.END,isLayoutReady:!1};const r=t[b.SIDEBAR],d=t[b.STATUS_BAR],l=t[b.UTILITY_PANEL],m=he(r)?r.placement:v.START;return{hasMenubar:!!t[b.MENUBAR],hasSidebar:!!r,hasStatusBar:!!d,hasToolbar:!!t[b.TOOLBAR],hasActivityBar:!!t[b.ACTIVITY_BAR],hasQuickActionButton:!!t[b.QUICK_ACTION_BUTTON],hasUtilityPanel:!!l,sidebarPlacement:m,statusBarPlacement:ze(d),utilityPanelPlacement:le(l)?l.position??v.END:v.END,isLayoutReady:!0}},[i,o,t])}function $e(n){s.useEffect(()=>{if(!n)return;const o=Array.from(document.querySelectorAll('link[rel~="icon"]')),t=o.length===0?document.createElement("link"):void 0;t&&(t.rel="icon",document.head.appendChild(t));const a=t?[t]:o,i=a.map(r=>r.getAttribute("href"));return a.forEach(r=>{r.href=n}),()=>{if(t){t.remove();return}a.forEach((r,d)=>{const l=i[d];l==null?r.removeAttribute("href"):r.setAttribute("href",l)})}},[n])}function rn(n=!1,o){const{markComponentInitialized:t,frontendConfiguration:a}=ce();s.useEffect(()=>{t(ue.PUBLIC_APP_CONTAINER)},[t]);const i=de(),{shellIdentity:r}=_(),d=n&&!r?o:void 0,l=d?{name:d.organizationName||i.name,logoUrl:d.logoUrl||i.logoUrl,logoComposition:void 0}:i,m=a.publicShellIdentityMode===ge.BRAND_HEADER?l:void 0;return $e(d?.faviconUrl),{useCardLayout:n,isReady:!0,brandHeader:m,brandAccentColor:m?d?.primaryColor:void 0}}function We(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Ge(n){switch(n){case V.VERTICAL_RAIL:return{direction:k.VERTICAL,borderSide:E.END,tooltipSide:E.END,orientation:k.VERTICAL};case V.HORIZONTAL_BAR:return{direction:k.HORIZONTAL,borderSide:E.BOTTOM,tooltipSide:E.TOP,orientation:k.HORIZONTAL};case V.BOTTOM_TAB_BAR:return{direction:k.HORIZONTAL,borderSide:E.TOP,tooltipSide:E.TOP,orientation:k.HORIZONTAL};default:return{direction:k.VERTICAL,borderSide:E.END,tooltipSide:E.END,orientation:k.VERTICAL}}}function cn(){const{UIConfig:n,appComponentsConfiguration:o}=_(),t=Ae(),a=o?.[b.ACTIVITY_BAR],r=n?.currentBreakpoint===D.MOBILE,d=s.useMemo(()=>We(a)?r?a.mobileRendering??V.BOTTOM_TAB_BAR:a.desktopRendering??V.VERTICAL_RAIL:r?V.BOTTOM_TAB_BAR:V.VERTICAL_RAIL,[a,r]),l=s.useMemo(()=>Ge(d),[d]);return{availableModes:s.useMemo(()=>t?.availableModes??[],[t?.availableModes]),activeMode:t?.activeMode??null,setActiveMode:t?.setActiveMode??(()=>{}),hasModes:t?.hasModes??!1,activeRenderingMode:d,layout:l,isNavigationLoading:!t}}function j(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function un(n={}){const{mode:o}=n,{UIConfig:t,appComponentsConfiguration:a,navigationLayout:i,homeDefinition:r}=_(),d=W(),{navigate:l}=G(),m=J(),{isNavigationItemActive:T,isHomeActive:h,handleHomeClick:A}=ye(),I=r?.compositeViewReference,C=a?.[b.MENUBAR],g=t?.currentBreakpoint,y=j(C)?C.brandMarkTheme:void 0,N=de({theme:y}),S=j(C)&&C.brandHeader===!0?N:void 0,P=s.useMemo(()=>j(C)?Ie(b.MENUBAR,C.hostedComponents,a,g,v.START,i):[],[a,C,g,i]),c=s.useMemo(()=>j(C)?be(C.items,m):void 0,[C,m]),e=s.useMemo(()=>{if(!d||!c?.length)return[];const p=Oe(void 0,c,d),O=Q.getMostSpecificActiveRoute(p.items.map(u=>u.urlPath),T),M=u=>h&&I!==void 0&&u.viewRef===I;return p.items.map(u=>({id:u.id,label:u.label,icon:u.icon,group:u.group,isActive:O!==void 0&&u.urlPath===O||M(u),...u.notificationBadgeRef?{notificationBadgeRef:u.notificationBadgeRef}:{},onExecute:()=>{Q.dispatchNavigationForResolvedTarget(l,u,b.MENUBAR)}}))},[c,d,l,T,h,I]),f=s.useMemo(()=>{const p=o||(j(C)?C.displayPolicy??"FIXED":typeof C=="string"?C:"FIXED"),O=p==="OVERLAY",M=g===D.MOBILE;return{mode:p,isOverlay:O,showMobileLayout:M&&O}},[C,o,g]);return{containerComponents:P,brandHeader:S,isHomeActive:h,handleHomeClick:A,items:e,menubarConfig:f,mapToFrontendComponentType:Se}}function Je(n,o){if(!n)return;const t=n.resourceConfigurations[o.resourceType];if(!t?.mainSchema)return;const a=t.mainSchema.shape,i=a?.[o.fieldIdentifier];if(i)return{schema:i,isPrimaryKeyFallback:!1};if(o.fieldIdentifier!==t.resourceFieldIdentifier)return;const r=a?._id??a?.id;return r?{schema:r,isPrimaryKeyFallback:!0}:void 0}function ln(n={}){const o=Re(),{on:t}=fe(),{registry:a}=Ne(),[i,r]=s.useState(0),d=n.focusTrigger??i;s.useEffect(()=>{if(n.focusTrigger===void 0)return t(pe.HOTKEY_QUICK_SWITCHER_OPEN,()=>{r(c=>c+1)})},[t,n.focusTrigger]);const l=Ee({mode:"onChange",defaultValues:o?.customScopeValues??{}}),m=s.useRef(!1),T=s.useCallback((c,e)=>c==null?e?[]:void 0:Array.isArray(c)?e?c:c[0]:e?[c]:c,[]),h=s.useMemo(()=>o?.customScopeFields?[...o.customScopeFields].sort((c,e)=>(c.position??se)-(e.position??se)):[],[o?.customScopeFields]),A=s.useMemo(()=>{const c=new Map;if(!a)return c;for(const e of h){const f=Je(a,e);f&&c.set(e.fieldIdentifier,f)}return c},[h,a]);s.useEffect(()=>{if(o?.customScopeValues){m.current=!0;for(const c of o.customScopeFields){const e=c.fieldIdentifier,f=o.customScopeValues[e],p=l.getValues(e),O=A.get(e)?.schema,M=O?Y(O)===z.ARRAY:Array.isArray(f),u=T(f??null,M);JSON.stringify(p)!==JSON.stringify(u)&&l.setValue(e,u)}queueMicrotask(()=>{m.current=!1})}},[o?.customScopeValues,o?.customScopeFields,l,T,A]);const I=s.useMemo(()=>{const c=new Set;for(const e of h)c.add(e.resourceType);return Array.from(c)},[h]),{tResourceHeader:C}=Z({component:B.APPLICATION_LEVEL_QUICK_SWITCHER,resource:I}),g=s.useMemo(()=>h.map(c=>c.fieldIdentifier),[h]),y=Me({control:l.control,name:g});s.useEffect(()=>{m.current||g.forEach((c,e)=>{const f=y[e],p=o?.customScopeValues[c],O=A.get(c)?.schema,M=O?Y(O)===z.ARRAY:!1;let u;if(f===void 0||f===""||f===null)u=null;else if(M){const R=Array.isArray(f)?f.filter(U=>typeof U=="string"&&U.length>0):[String(f)];u=R.length>0?R:null}else u=Array.isArray(f)?f[0]??null:String(f);JSON.stringify(u)!==JSON.stringify(p??null)&&o?.setScopeValue(c,u,{initiator:Be.USER_SELECTION})})},[y,g,o,h,A]);const N=s.useCallback(c=>{const e=c.dependsOn?o?.allScopeValues?.[c.dependsOn]:null;return c.dependsOn?Array.isArray(e)?e.length===0:!e:!1},[o?.allScopeValues]),S=s.useMemo(()=>h.flatMap(c=>{const e=c.fieldIdentifier,f=A.get(e);if(!f)return Le.isDevelopment()&&console.warn(`[QuickSwitcher] No schema found for scope field "${e}" — field will not render.`),[];const{schema:p,isPrimaryKeyFallback:O}=f,u=Y(p)===z.ARRAY,R=u?ve(p)??p:p,U=Y(R),x=Pe(R)||O?X.RESOURCE_REFERENCE:U===z.ENUM?X.ENUM:X.RAW,te=C(c.resourceType,"title"),oe=c.label||te||e;return[{fieldId:e,label:oe,schema:p,valueSchema:R,disabled:N(c),isMultiple:u,controlKind:x,targetResourceType:O?c.resourceType:void 0,placeholder:te||oe,optionDisplayMode:c.optionDisplayMode??ke,presentation:c.presentation??_e.CONTROL_ONLY,onClear:()=>l.setValue(e,u?[]:void 0,{shouldDirty:!0,shouldTouch:!0}),hasValue:(()=>{const H=l.getValues(e);return Array.isArray(H)?H.length>0:H!=null&&H!==""})(),definition:c}]}),[h,A,C,N,l,y]),P=s.useMemo(()=>n.containerType===b.SIDEBAR?"vertical":"horizontal",[n.containerType]);return{fields:S,formMethods:l,layoutDirection:P,focusTrigger:d}}function dn(n=L.BOTTOM){const{UIConfig:o,appComponentsConfiguration:t,shellAppearance:a}=_(),{tComponent:i}=Z({component:B.APPLICATION_LEVEL_STATUS_BAR}),{status:r}=we(),{notifications:d}=me(),l=t?.[b.STATUS_BAR],m=o?.currentBreakpoint,T=re(l)?l:void 0,h=T?.showConnectionStatus??!0,A=T?.showConnectionStatusOnMobile??!1,I=T?.showNotificationCount??!0,C=T?.showMemoryUsage??!1,g=s.useMemo(()=>I?d.length:0,[I,d.length]),y=s.useMemo(()=>(T?.statusItems??[]).map(u=>{const R=u.value!=null?String(u.value):void 0;switch(u.type){case ee.LINK:return{id:u.id,label:u.label,iconReference:u.icon,valueText:R,interaction:{type:q.LINK,href:u.href}};case ee.BUTTON:return{id:u.id,label:u.label,iconReference:u.icon,valueText:R,interaction:{type:q.BUTTON,onClick:u.onClick}};case ee.TEXT:default:return{id:u.id,label:u.label,iconReference:u.icon,valueText:R,interaction:{type:q.STATIC}}}}),[T]),N=s.useMemo(()=>T?.style,[T]),S=s.useMemo(()=>{const u=m===D.MOBILE;return{height:T?.height??(u?28:32)}},[m,T]),P=s.useMemo(()=>{const u=n===L.TOP,R=n===L.BOTTOM,U=m===D.MOBILE,x=a===Ue.CONTINUOUS;return{isTop:u,isBottom:R,isMobile:U,backgroundClassName:T?.backgroundClassName??(x?"bg-transparent":"bg-surface-sunken"),textClassName:T?.textClassName??(x?"text-foreground":"text-surface-sunken-foreground"),showBorder:T?.showBorder??!x}},[n,m,T,a]),c=s.useMemo(()=>{const u=m===D.MOBILE;return h&&(!u||A)},[m,h,A]),e=I&&g>0,f=s.useMemo(()=>!C||typeof performance>"u"||!("memory"in performance)?null:`${Math.round((performance.memory?.usedJSHeapSize??0)/1048576)}MB`,[C]),p=s.useMemo(()=>Ve(g),[g]),O=s.useMemo(()=>i(B.APPLICATION_LEVEL_STATUS_BAR,"notificationCount",{count:p}),[p,i]),M=s.useMemo(()=>{switch(r){case K.CONNECTED:return i(B.APPLICATION_LEVEL_STATUS_BAR,"connected");case K.CONNECTING:case K.RECONNECTING:return i(B.APPLICATION_LEVEL_STATUS_BAR,"reconnecting");case K.DISCONNECTED:case K.ERROR:default:return i(B.APPLICATION_LEVEL_STATUS_BAR,"disconnected")}},[r,i]);return{totalBadgeCount:g,connectionStatus:r,showConnectionStatus:h,showConnectionStatusOnMobile:A,shouldShowConnectionStatus:c,showNotificationCount:I,shouldShowNotificationCount:e,showMemoryUsage:C,memoryUsageLabel:f,notificationCountLabel:p,notificationCountAriaLabel:O,connectionStatusLabel:M,statusItems:y,dimensions:S,statusBarConfig:P,customStyle:N,currentBreakpoint:m}}function Ze(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function fn(){const{UIConfig:n,appComponentsConfiguration:o}=_(),t=W(),{navigate:a}=G(),i=J(),r=o?.[b.TOOLBAR],d=n?.currentBreakpoint,l=d===D.MOBILE,m=Ze(r)?r:void 0,T=s.useMemo(()=>Fe(m?.tools,i),[m?.tools,i]),h=s.useMemo(()=>!T?.length||!t?[]:De(T,t),[T,t]),A=s.useMemo(()=>h.map(g=>({id:g.id,label:g.label,icon:g.icon,iconOnly:g.iconOnly,onClick:()=>Q.dispatchNavigationForResolvedTarget(a,g,b.TOOLBAR)})),[h,a]),I=s.useMemo(()=>({placement:m?.placement??"top",compact:m?.compact??!1,showSeparator:m?.showSeparator??!0,hideOnMobile:m?.hideOnMobile??!1}),[m]),C=A.length>0&&!(l&&I.hideOnMobile);return{tools:A,toolbarConfig:I,shouldRender:C,currentBreakpoint:d}}function Xe(n){return xe.isRegistered(n,He.DEFAULT)}function qe(n,o,t=Xe){return n.map(a=>{if(a.kind===ne.VIEW){const r=o.includes(a.viewRef);return!r&&typeof console<"u"&&console.warn(`[utility-panel] item "${a.label}" names viewRef "${a.viewRef}", which no declared application-scoped view carries. Declare it in the application's \`flowsActorsViews\`, or the panel has nothing to host for this item.`),{kind:ne.VIEW,viewRef:a.viewRef,resolvedViewRef:r?a.viewRef:null,icon:a.icon,label:a.label}}const i=t(a.componentRef);return!i&&typeof console<"u"&&console.warn(`[utility-panel] item "${a.label}" names componentRef "${a.componentRef}", which has no component registered under the default preset. Register it — an application component through its domain module's \`componentRegistrations\`, an engine one through its preset — or nothing will render for this item.`),{kind:ne.CUSTOM_COMPONENT,componentRef:a.componentRef,resolvedComponentRef:i?a.componentRef:null,icon:a.icon,label:a.label}})}function pn(n=v.END,o){const{UIConfig:t,appComponentsConfiguration:a,flowsActorsViews:i}=_(),[r,d]=s.useState(!1),l=t?.currentBreakpoint,m=a?.[b.UTILITY_PANEL],T=le(m)?m:void 0,h=s.useMemo(()=>qe(o??T?.items??[],i?.map(I=>I.ref)??[]),[T,o,i]),A=s.useMemo(()=>T?.position??n,[T,n]);return{isOpen:r,setIsOpen:d,items:h,itemCount:h.length,position:A,currentBreakpoint:l}}function en(n,o){const t=Number(n);return Number.isFinite(t)?t:o}function mn(n=v.END,o=[]){const{UIConfig:t,appComponentsConfiguration:a}=_(),i=W(),{navigate:r}=G(),{tComponent:d}=Z({component:B.APPLICATION_LEVEL_CONTROL_PANEL}),l=J(),[m,T]=s.useState(!1),h=t?.currentBreakpoint,A=a?.[b.CONTROL_PANEL],I=typeof A=="object"&&A!==null?A.items:void 0,C=s.useMemo(()=>Ke(I,l),[I,l]),g=s.useMemo(()=>!C||!i?[]:je(C,i),[C,i]),y=s.useMemo(()=>{const e={uncategorized:[]};for(const f of g){const p=f.section??"uncategorized";e[p]||(e[p]=[]),e[p].push(f)}return e},[g]),N=s.useMemo(()=>o.map(e=>{const f=!e.onChange;switch(e.type){case w.BUTTON:return{id:e.id,label:e.label,type:w.BUTTON,disabled:f,onTrigger:()=>e.onChange?.(!0)};case w.TOGGLE:{const p=e.value===!0;return{id:e.id,label:e.label,type:w.TOGGLE,disabled:f,value:p,onToggle:()=>e.onChange?.(!p)}}case w.SELECT:return{id:e.id,label:e.label,type:w.SELECT,disabled:f,value:e.value,options:(e.options??[]).map(p=>({label:p.label,value:p.value,isSelected:e.value===p.value,onSelect:()=>e.onChange?.(p.value)}))};case w.SLIDER:{const p=e.min??0,O=e.max??100,M=e.step??1,u=en(e.value,p);return{id:e.id,label:e.label,type:w.SLIDER,disabled:f,value:u,min:p,max:O,step:M,onValueChange:R=>e.onChange?.(R)}}}}),[o]),S=s.useMemo(()=>Object.entries(y).filter(([,e])=>e.length>0).map(([e,f])=>({id:e,label:e==="uncategorized"?d(B.APPLICATION_LEVEL_CONTROL_PANEL,"actions"):d(B.APPLICATION_LEVEL_CONTROL_PANEL,e),items:f})),[y,d]),P=s.useCallback(e=>{T(!1),Q.dispatchNavigationForResolvedTarget(r,e,b.CONTROL_PANEL)},[r]),c=s.useMemo(()=>{const e=n;return e===v.START?E.START:e===v.END?E.END:e===L.TOP?E.TOP:e===L.BOTTOM?E.BOTTOM:E.END},[n]);return{isOpen:m,setIsOpen:T,groupedItems:y,sections:S,controls:N,handleItemClick:P,sheetSide:c,isNavigationLoading:!i,navigationItemCount:g.length,currentBreakpoint:h}}function F(n,o,t,a){const i=B.APPLICATION_LEVEL_NOTIFICATION_CENTER,r=n(i,o,a),d=`components.${i}.${o}`;return r===d?t??r:r}function nn(n,o,t,a){const i=o-n,r=Math.floor(i/6e4),d=Math.floor(i/36e5),l=Math.floor(i/864e5);return r<1?F(t,"timeJustNow"):r<60?F(t,"timeMinutesAgo",void 0,{count:r}):d<24?F(t,"timeHoursAgo",void 0,{count:d}):l<7?F(t,"timeDaysAgo",void 0,{count:l}):a(n)}function tn(n){switch(n){case"success":return $.CHECK_CIRCLE;case"warning":return $.WARNING;case"error":return $.X_CIRCLE;default:return $.INFO}}function Tn(n,o,t={}){const{notifications:a,clearAll:i,removeNotification:r}=me(),{on:d}=fe(),{tComponent:l,formatDate:m}=Z({component:B.APPLICATION_LEVEL_NOTIFICATION_CENTER}),[T,h]=s.useState(!1),[A,I]=s.useState(()=>Date.now()),C=t.listenForHotkeys!==!1,g=n!==void 0&&o!==void 0,y=g?n:T,N=s.useRef(y);N.current=y;const S=s.useCallback(e=>{if(g&&o){o(e);return}h(e)},[g,o]);s.useEffect(()=>C?d(pe.HOTKEY_NOTIFICATIONS_OPEN,()=>{S(!N.current)}):void 0,[d,C,S]),s.useEffect(()=>{const e=globalThis.setInterval(()=>{I(Date.now())},6e4);return()=>globalThis.clearInterval(e)},[]);const P=s.useMemo(()=>a.map(e=>{let f="",p=e.message;return e.source==="resource"&&e.resourceContext?(f=F(l,"resourceNotificationTitle",e.resourceContext.resourceType,{resourceType:e.resourceContext.resourceType}),p||(p=F(l,"resourceNotificationMessage",e.resourceContext.operationIdentifier,{operation:e.resourceContext.operationIdentifier}))):e.source==="custom"&&e.identifier&&(f=""),!f&&p&&(f=p,p=""),!f&&e.identifier&&(f=e.identifier),f||(f=l(B.APPLICATION_LEVEL_NOTIFICATION_CENTER,"title")),{id:e.id,type:e.type,source:e.source,timestamp:e.timestamp,displayTitle:f,displayMessage:p,relativeTimeLabel:nn(e.timestamp,A,l,m),iconReference:tn(e.type),nextStep:e.nextStep}}),[a,l,A,m]),c=s.useCallback(e=>{r(e)},[r]);return{isOpen:y,setIsOpen:S,sessionNotifications:P,notificationCount:a.length,handleClearAll:i,dismissNotification:c}}function on(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Cn(){const{UIConfig:n,appComponentsConfiguration:o}=_(),t=W(),{navigate:a}=G(),i=J(),r=o?.[b.QUICK_ACTION_BUTTON],d=on(r)?r:void 0,l=s.useMemo(()=>Qe(d?.actions,i),[d?.actions,i]),m=s.useMemo(()=>!l?.length||!t?[]:Ye(l,t),[l,t]),T=s.useMemo(()=>m.map(y=>({id:y.id,label:y.label,icon:y.icon,displayPolicy:y.displayPolicy,onClick:()=>Q.dispatchNavigationForResolvedTarget(a,y,b.QUICK_ACTION_BUTTON)})),[m,a]),{primaryAction:h,menuActions:A}=s.useMemo(()=>{const y=T.find(S=>S.displayPolicy===ae.PRIMARY)??null,N=T.filter(S=>S.displayPolicy!==ae.PRIMARY);return{primaryAction:y,menuActions:N}},[T]),[I,C]=s.useState(!1),g=s.useCallback(y=>{C(!1),y.onClick()},[]);return{allItems:T,primaryAction:h,menuActions:A,isOpen:I,setIsOpen:C,handleActionClick:g,hasActions:!!l?.length,isNavigationLoading:!!l?.length&&t===null,currentBreakpoint:n?.currentBreakpoint}}export{ze as a,qe as b,an as c,mn as d,un as e,Tn as f,rn as g,Cn as h,Xe as i,ln as j,dn as k,fn as l,pn as m,Je as r,cn as u};
1
+ import{ar as re,as as L,at as Te,L as Ce,ag as _,au as ce,r as s,av as ue,aw as v,ax as b,ay as he,az as le,aA as de,aB as ge,aC as Ae,aD as D,aE as V,aF as k,l as E,aG as W,aH as G,aI as J,aJ as ye,aK as Ie,aL as be,aM as Oe,aN as Q,aO as Se,a7 as Re,aP as fe,aQ as Ne,aR as pe,aS as Ee,aT as se,aU as Y,aV as z,u as Z,F as B,aW as Me,aX as Be,aY as Le,aZ as ve,a_ as Pe,a$ as X,b0 as _e,b1 as ke,a4 as we,b2 as me,b3 as q,b4 as ee,b5 as Ue,b6 as Ve,b7 as K,b8 as Fe,b9 as De,ba as xe,bb as He,bc as ne,bd as Ke,be as je,bf as w,t as $,bg as Qe,bh as Ye,bi as ae}from"./index-Deq6GKqj.js";const ie=new Set;function ze(n){const o=typeof n=="string"?n:re(n)?n.placement:void 0;if(o===void 0)return L.BOTTOM;if(Te(o))return o;const t=String(o);return ie.has(t)||(ie.add(t),Ce.getLogger().warn(`[app-shell] the status bar is configured at '${t}', which no shell layout places (only '${L.TOP}' and '${L.BOTTOM}'); it is shown at '${L.BOTTOM}'.`)),L.BOTTOM}function an(){const{UIConfig:n,navigationLayout:o,appComponentsConfiguration:t}=_(),{markComponentInitialized:a}=ce(),i=!!(o&&t);return s.useEffect(()=>{i&&a(ue.APP_MAIN_CONTAINER)},[i,a]),s.useMemo(()=>{if(!i||!o||!t)return{hasMenubar:!1,hasSidebar:!1,hasStatusBar:!1,hasToolbar:!1,hasActivityBar:!1,hasQuickActionButton:!1,hasUtilityPanel:!1,sidebarPlacement:v.START,statusBarPlacement:L.BOTTOM,utilityPanelPlacement:v.END,isLayoutReady:!1};const r=t[b.SIDEBAR],d=t[b.STATUS_BAR],l=t[b.UTILITY_PANEL],m=he(r)?r.placement:v.START;return{hasMenubar:!!t[b.MENUBAR],hasSidebar:!!r,hasStatusBar:!!d,hasToolbar:!!t[b.TOOLBAR],hasActivityBar:!!t[b.ACTIVITY_BAR],hasQuickActionButton:!!t[b.QUICK_ACTION_BUTTON],hasUtilityPanel:!!l,sidebarPlacement:m,statusBarPlacement:ze(d),utilityPanelPlacement:le(l)?l.position??v.END:v.END,isLayoutReady:!0}},[i,o,t])}function $e(n){s.useEffect(()=>{if(!n)return;const o=Array.from(document.querySelectorAll('link[rel~="icon"]')),t=o.length===0?document.createElement("link"):void 0;t&&(t.rel="icon",document.head.appendChild(t));const a=t?[t]:o,i=a.map(r=>r.getAttribute("href"));return a.forEach(r=>{r.href=n}),()=>{if(t){t.remove();return}a.forEach((r,d)=>{const l=i[d];l==null?r.removeAttribute("href"):r.setAttribute("href",l)})}},[n])}function rn(n=!1,o){const{markComponentInitialized:t,frontendConfiguration:a}=ce();s.useEffect(()=>{t(ue.PUBLIC_APP_CONTAINER)},[t]);const i=de(),{shellIdentity:r}=_(),d=n&&!r?o:void 0,l=d?{name:d.organizationName||i.name,logoUrl:d.logoUrl||i.logoUrl,logoComposition:void 0}:i,m=a.publicShellIdentityMode===ge.BRAND_HEADER?l:void 0;return $e(d?.faviconUrl),{useCardLayout:n,isReady:!0,brandHeader:m,brandAccentColor:m?d?.primaryColor:void 0}}function We(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Ge(n){switch(n){case V.VERTICAL_RAIL:return{direction:k.VERTICAL,borderSide:E.END,tooltipSide:E.END,orientation:k.VERTICAL};case V.HORIZONTAL_BAR:return{direction:k.HORIZONTAL,borderSide:E.BOTTOM,tooltipSide:E.TOP,orientation:k.HORIZONTAL};case V.BOTTOM_TAB_BAR:return{direction:k.HORIZONTAL,borderSide:E.TOP,tooltipSide:E.TOP,orientation:k.HORIZONTAL};default:return{direction:k.VERTICAL,borderSide:E.END,tooltipSide:E.END,orientation:k.VERTICAL}}}function cn(){const{UIConfig:n,appComponentsConfiguration:o}=_(),t=Ae(),a=o?.[b.ACTIVITY_BAR],r=n?.currentBreakpoint===D.MOBILE,d=s.useMemo(()=>We(a)?r?a.mobileRendering??V.BOTTOM_TAB_BAR:a.desktopRendering??V.VERTICAL_RAIL:r?V.BOTTOM_TAB_BAR:V.VERTICAL_RAIL,[a,r]),l=s.useMemo(()=>Ge(d),[d]);return{availableModes:s.useMemo(()=>t?.availableModes??[],[t?.availableModes]),activeMode:t?.activeMode??null,setActiveMode:t?.setActiveMode??(()=>{}),hasModes:t?.hasModes??!1,activeRenderingMode:d,layout:l,isNavigationLoading:!t}}function j(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function un(n={}){const{mode:o}=n,{UIConfig:t,appComponentsConfiguration:a,navigationLayout:i,homeDefinition:r}=_(),d=W(),{navigate:l}=G(),m=J(),{isNavigationItemActive:T,isHomeActive:h,handleHomeClick:A}=ye(),I=r?.compositeViewReference,C=a?.[b.MENUBAR],g=t?.currentBreakpoint,y=j(C)?C.brandMarkTheme:void 0,N=de({theme:y}),S=j(C)&&C.brandHeader===!0?N:void 0,P=s.useMemo(()=>j(C)?Ie(b.MENUBAR,C.hostedComponents,a,g,v.START,i):[],[a,C,g,i]),c=s.useMemo(()=>j(C)?be(C.items,m):void 0,[C,m]),e=s.useMemo(()=>{if(!d||!c?.length)return[];const p=Oe(void 0,c,d),O=Q.getMostSpecificActiveRoute(p.items.map(u=>u.urlPath),T),M=u=>h&&I!==void 0&&u.viewRef===I;return p.items.map(u=>({id:u.id,label:u.label,icon:u.icon,group:u.group,isActive:O!==void 0&&u.urlPath===O||M(u),...u.notificationBadgeRef?{notificationBadgeRef:u.notificationBadgeRef}:{},onExecute:()=>{Q.dispatchNavigationForResolvedTarget(l,u,b.MENUBAR)}}))},[c,d,l,T,h,I]),f=s.useMemo(()=>{const p=o||(j(C)?C.displayPolicy??"FIXED":typeof C=="string"?C:"FIXED"),O=p==="OVERLAY",M=g===D.MOBILE;return{mode:p,isOverlay:O,showMobileLayout:M&&O}},[C,o,g]);return{containerComponents:P,brandHeader:S,isHomeActive:h,handleHomeClick:A,items:e,menubarConfig:f,mapToFrontendComponentType:Se}}function Je(n,o){if(!n)return;const t=n.resourceConfigurations[o.resourceType];if(!t?.mainSchema)return;const a=t.mainSchema.shape,i=a?.[o.fieldIdentifier];if(i)return{schema:i,isPrimaryKeyFallback:!1};if(o.fieldIdentifier!==t.resourceFieldIdentifier)return;const r=a?._id??a?.id;return r?{schema:r,isPrimaryKeyFallback:!0}:void 0}function ln(n={}){const o=Re(),{on:t}=fe(),{registry:a}=Ne(),[i,r]=s.useState(0),d=n.focusTrigger??i;s.useEffect(()=>{if(n.focusTrigger===void 0)return t(pe.HOTKEY_QUICK_SWITCHER_OPEN,()=>{r(c=>c+1)})},[t,n.focusTrigger]);const l=Ee({mode:"onChange",defaultValues:o?.customScopeValues??{}}),m=s.useRef(!1),T=s.useCallback((c,e)=>c==null?e?[]:void 0:Array.isArray(c)?e?c:c[0]:e?[c]:c,[]),h=s.useMemo(()=>o?.customScopeFields?[...o.customScopeFields].sort((c,e)=>(c.position??se)-(e.position??se)):[],[o?.customScopeFields]),A=s.useMemo(()=>{const c=new Map;if(!a)return c;for(const e of h){const f=Je(a,e);f&&c.set(e.fieldIdentifier,f)}return c},[h,a]);s.useEffect(()=>{if(o?.customScopeValues){m.current=!0;for(const c of o.customScopeFields){const e=c.fieldIdentifier,f=o.customScopeValues[e],p=l.getValues(e),O=A.get(e)?.schema,M=O?Y(O)===z.ARRAY:Array.isArray(f),u=T(f??null,M);JSON.stringify(p)!==JSON.stringify(u)&&l.setValue(e,u)}queueMicrotask(()=>{m.current=!1})}},[o?.customScopeValues,o?.customScopeFields,l,T,A]);const I=s.useMemo(()=>{const c=new Set;for(const e of h)c.add(e.resourceType);return Array.from(c)},[h]),{tResourceHeader:C}=Z({component:B.APPLICATION_LEVEL_QUICK_SWITCHER,resource:I}),g=s.useMemo(()=>h.map(c=>c.fieldIdentifier),[h]),y=Me({control:l.control,name:g});s.useEffect(()=>{m.current||g.forEach((c,e)=>{const f=y[e],p=o?.customScopeValues[c],O=A.get(c)?.schema,M=O?Y(O)===z.ARRAY:!1;let u;if(f===void 0||f===""||f===null)u=null;else if(M){const R=Array.isArray(f)?f.filter(U=>typeof U=="string"&&U.length>0):[String(f)];u=R.length>0?R:null}else u=Array.isArray(f)?f[0]??null:String(f);JSON.stringify(u)!==JSON.stringify(p??null)&&o?.setScopeValue(c,u,{initiator:Be.USER_SELECTION})})},[y,g,o,h,A]);const N=s.useCallback(c=>{const e=c.dependsOn?o?.allScopeValues?.[c.dependsOn]:null;return c.dependsOn?Array.isArray(e)?e.length===0:!e:!1},[o?.allScopeValues]),S=s.useMemo(()=>h.flatMap(c=>{const e=c.fieldIdentifier,f=A.get(e);if(!f)return Le.isDevelopment()&&console.warn(`[QuickSwitcher] No schema found for scope field "${e}" — field will not render.`),[];const{schema:p,isPrimaryKeyFallback:O}=f,u=Y(p)===z.ARRAY,R=u?ve(p)??p:p,U=Y(R),x=Pe(R)||O?X.RESOURCE_REFERENCE:U===z.ENUM?X.ENUM:X.RAW,te=C(c.resourceType,"title"),oe=c.label||te||e;return[{fieldId:e,label:oe,schema:p,valueSchema:R,disabled:N(c),isMultiple:u,controlKind:x,targetResourceType:O?c.resourceType:void 0,placeholder:te||oe,optionDisplayMode:c.optionDisplayMode??ke,presentation:c.presentation??_e.CONTROL_ONLY,onClear:()=>l.setValue(e,u?[]:void 0,{shouldDirty:!0,shouldTouch:!0}),hasValue:(()=>{const H=l.getValues(e);return Array.isArray(H)?H.length>0:H!=null&&H!==""})(),definition:c}]}),[h,A,C,N,l,y]),P=s.useMemo(()=>n.containerType===b.SIDEBAR?"vertical":"horizontal",[n.containerType]);return{fields:S,formMethods:l,layoutDirection:P,focusTrigger:d}}function dn(n=L.BOTTOM){const{UIConfig:o,appComponentsConfiguration:t,shellAppearance:a}=_(),{tComponent:i}=Z({component:B.APPLICATION_LEVEL_STATUS_BAR}),{status:r}=we(),{notifications:d}=me(),l=t?.[b.STATUS_BAR],m=o?.currentBreakpoint,T=re(l)?l:void 0,h=T?.showConnectionStatus??!0,A=T?.showConnectionStatusOnMobile??!1,I=T?.showNotificationCount??!0,C=T?.showMemoryUsage??!1,g=s.useMemo(()=>I?d.length:0,[I,d.length]),y=s.useMemo(()=>(T?.statusItems??[]).map(u=>{const R=u.value!=null?String(u.value):void 0;switch(u.type){case ee.LINK:return{id:u.id,label:u.label,iconReference:u.icon,valueText:R,interaction:{type:q.LINK,href:u.href}};case ee.BUTTON:return{id:u.id,label:u.label,iconReference:u.icon,valueText:R,interaction:{type:q.BUTTON,onClick:u.onClick}};case ee.TEXT:default:return{id:u.id,label:u.label,iconReference:u.icon,valueText:R,interaction:{type:q.STATIC}}}}),[T]),N=s.useMemo(()=>T?.style,[T]),S=s.useMemo(()=>{const u=m===D.MOBILE;return{height:T?.height??(u?28:32)}},[m,T]),P=s.useMemo(()=>{const u=n===L.TOP,R=n===L.BOTTOM,U=m===D.MOBILE,x=a===Ue.CONTINUOUS;return{isTop:u,isBottom:R,isMobile:U,backgroundClassName:T?.backgroundClassName??(x?"bg-transparent":"bg-surface-sunken"),textClassName:T?.textClassName??(x?"text-foreground":"text-surface-sunken-foreground"),showBorder:T?.showBorder??!x}},[n,m,T,a]),c=s.useMemo(()=>{const u=m===D.MOBILE;return h&&(!u||A)},[m,h,A]),e=I&&g>0,f=s.useMemo(()=>!C||typeof performance>"u"||!("memory"in performance)?null:`${Math.round((performance.memory?.usedJSHeapSize??0)/1048576)}MB`,[C]),p=s.useMemo(()=>Ve(g),[g]),O=s.useMemo(()=>i(B.APPLICATION_LEVEL_STATUS_BAR,"notificationCount",{count:p}),[p,i]),M=s.useMemo(()=>{switch(r){case K.CONNECTED:return i(B.APPLICATION_LEVEL_STATUS_BAR,"connected");case K.CONNECTING:case K.RECONNECTING:return i(B.APPLICATION_LEVEL_STATUS_BAR,"reconnecting");case K.DISCONNECTED:case K.ERROR:default:return i(B.APPLICATION_LEVEL_STATUS_BAR,"disconnected")}},[r,i]);return{totalBadgeCount:g,connectionStatus:r,showConnectionStatus:h,showConnectionStatusOnMobile:A,shouldShowConnectionStatus:c,showNotificationCount:I,shouldShowNotificationCount:e,showMemoryUsage:C,memoryUsageLabel:f,notificationCountLabel:p,notificationCountAriaLabel:O,connectionStatusLabel:M,statusItems:y,dimensions:S,statusBarConfig:P,customStyle:N,currentBreakpoint:m}}function Ze(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function fn(){const{UIConfig:n,appComponentsConfiguration:o}=_(),t=W(),{navigate:a}=G(),i=J(),r=o?.[b.TOOLBAR],d=n?.currentBreakpoint,l=d===D.MOBILE,m=Ze(r)?r:void 0,T=s.useMemo(()=>Fe(m?.tools,i),[m?.tools,i]),h=s.useMemo(()=>!T?.length||!t?[]:De(T,t),[T,t]),A=s.useMemo(()=>h.map(g=>({id:g.id,label:g.label,icon:g.icon,iconOnly:g.iconOnly,onClick:()=>Q.dispatchNavigationForResolvedTarget(a,g,b.TOOLBAR)})),[h,a]),I=s.useMemo(()=>({placement:m?.placement??"top",compact:m?.compact??!1,showSeparator:m?.showSeparator??!0,hideOnMobile:m?.hideOnMobile??!1}),[m]),C=A.length>0&&!(l&&I.hideOnMobile);return{tools:A,toolbarConfig:I,shouldRender:C,currentBreakpoint:d}}function Xe(n){return xe.isRegistered(n,He.DEFAULT)}function qe(n,o,t=Xe){return n.map(a=>{if(a.kind===ne.VIEW){const r=o.includes(a.viewRef);return!r&&typeof console<"u"&&console.warn(`[utility-panel] item "${a.label}" names viewRef "${a.viewRef}", which no declared application-scoped view carries. Declare it in the application's \`flowsActorsViews\`, or the panel has nothing to host for this item.`),{kind:ne.VIEW,viewRef:a.viewRef,resolvedViewRef:r?a.viewRef:null,icon:a.icon,label:a.label}}const i=t(a.componentRef);return!i&&typeof console<"u"&&console.warn(`[utility-panel] item "${a.label}" names componentRef "${a.componentRef}", which has no component registered under the default preset. Register it — an application component through its domain module's \`componentRegistrations\`, an engine one through its preset — or nothing will render for this item.`),{kind:ne.CUSTOM_COMPONENT,componentRef:a.componentRef,resolvedComponentRef:i?a.componentRef:null,icon:a.icon,label:a.label}})}function pn(n=v.END,o){const{UIConfig:t,appComponentsConfiguration:a,flowsActorsViews:i}=_(),[r,d]=s.useState(!1),l=t?.currentBreakpoint,m=a?.[b.UTILITY_PANEL],T=le(m)?m:void 0,h=s.useMemo(()=>qe(o??T?.items??[],i?.map(I=>I.ref)??[]),[T,o,i]),A=s.useMemo(()=>T?.position??n,[T,n]);return{isOpen:r,setIsOpen:d,items:h,itemCount:h.length,position:A,currentBreakpoint:l}}function en(n,o){const t=Number(n);return Number.isFinite(t)?t:o}function mn(n=v.END,o=[]){const{UIConfig:t,appComponentsConfiguration:a}=_(),i=W(),{navigate:r}=G(),{tComponent:d}=Z({component:B.APPLICATION_LEVEL_CONTROL_PANEL}),l=J(),[m,T]=s.useState(!1),h=t?.currentBreakpoint,A=a?.[b.CONTROL_PANEL],I=typeof A=="object"&&A!==null?A.items:void 0,C=s.useMemo(()=>Ke(I,l),[I,l]),g=s.useMemo(()=>!C||!i?[]:je(C,i),[C,i]),y=s.useMemo(()=>{const e={uncategorized:[]};for(const f of g){const p=f.section??"uncategorized";e[p]||(e[p]=[]),e[p].push(f)}return e},[g]),N=s.useMemo(()=>o.map(e=>{const f=!e.onChange;switch(e.type){case w.BUTTON:return{id:e.id,label:e.label,type:w.BUTTON,disabled:f,onTrigger:()=>e.onChange?.(!0)};case w.TOGGLE:{const p=e.value===!0;return{id:e.id,label:e.label,type:w.TOGGLE,disabled:f,value:p,onToggle:()=>e.onChange?.(!p)}}case w.SELECT:return{id:e.id,label:e.label,type:w.SELECT,disabled:f,value:e.value,options:(e.options??[]).map(p=>({label:p.label,value:p.value,isSelected:e.value===p.value,onSelect:()=>e.onChange?.(p.value)}))};case w.SLIDER:{const p=e.min??0,O=e.max??100,M=e.step??1,u=en(e.value,p);return{id:e.id,label:e.label,type:w.SLIDER,disabled:f,value:u,min:p,max:O,step:M,onValueChange:R=>e.onChange?.(R)}}}}),[o]),S=s.useMemo(()=>Object.entries(y).filter(([,e])=>e.length>0).map(([e,f])=>({id:e,label:e==="uncategorized"?d(B.APPLICATION_LEVEL_CONTROL_PANEL,"actions"):d(B.APPLICATION_LEVEL_CONTROL_PANEL,e),items:f})),[y,d]),P=s.useCallback(e=>{T(!1),Q.dispatchNavigationForResolvedTarget(r,e,b.CONTROL_PANEL)},[r]),c=s.useMemo(()=>{const e=n;return e===v.START?E.START:e===v.END?E.END:e===L.TOP?E.TOP:e===L.BOTTOM?E.BOTTOM:E.END},[n]);return{isOpen:m,setIsOpen:T,groupedItems:y,sections:S,controls:N,handleItemClick:P,sheetSide:c,isNavigationLoading:!i,navigationItemCount:g.length,currentBreakpoint:h}}function F(n,o,t,a){const i=B.APPLICATION_LEVEL_NOTIFICATION_CENTER,r=n(i,o,a),d=`components.${i}.${o}`;return r===d?t??r:r}function nn(n,o,t,a){const i=o-n,r=Math.floor(i/6e4),d=Math.floor(i/36e5),l=Math.floor(i/864e5);return r<1?F(t,"timeJustNow"):r<60?F(t,"timeMinutesAgo",void 0,{count:r}):d<24?F(t,"timeHoursAgo",void 0,{count:d}):l<7?F(t,"timeDaysAgo",void 0,{count:l}):a(n)}function tn(n){switch(n){case"success":return $.CHECK_CIRCLE;case"warning":return $.WARNING;case"error":return $.X_CIRCLE;default:return $.INFO}}function Tn(n,o,t={}){const{notifications:a,clearAll:i,removeNotification:r}=me(),{on:d}=fe(),{tComponent:l,formatDate:m}=Z({component:B.APPLICATION_LEVEL_NOTIFICATION_CENTER}),[T,h]=s.useState(!1),[A,I]=s.useState(()=>Date.now()),C=t.listenForHotkeys!==!1,g=n!==void 0&&o!==void 0,y=g?n:T,N=s.useRef(y);N.current=y;const S=s.useCallback(e=>{if(g&&o){o(e);return}h(e)},[g,o]);s.useEffect(()=>C?d(pe.HOTKEY_NOTIFICATIONS_OPEN,()=>{S(!N.current)}):void 0,[d,C,S]),s.useEffect(()=>{const e=globalThis.setInterval(()=>{I(Date.now())},6e4);return()=>globalThis.clearInterval(e)},[]);const P=s.useMemo(()=>a.map(e=>{let f="",p=e.message;return e.source==="resource"&&e.resourceContext?(f=F(l,"resourceNotificationTitle",e.resourceContext.resourceType,{resourceType:e.resourceContext.resourceType}),p||(p=F(l,"resourceNotificationMessage",e.resourceContext.operationIdentifier,{operation:e.resourceContext.operationIdentifier}))):e.source==="custom"&&e.identifier&&(f=""),!f&&p&&(f=p,p=""),!f&&e.identifier&&(f=e.identifier),f||(f=l(B.APPLICATION_LEVEL_NOTIFICATION_CENTER,"title")),{id:e.id,type:e.type,source:e.source,timestamp:e.timestamp,displayTitle:f,displayMessage:p,relativeTimeLabel:nn(e.timestamp,A,l,m),iconReference:tn(e.type),nextStep:e.nextStep}}),[a,l,A,m]),c=s.useCallback(e=>{r(e)},[r]);return{isOpen:y,setIsOpen:S,sessionNotifications:P,notificationCount:a.length,handleClearAll:i,dismissNotification:c}}function on(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Cn(){const{UIConfig:n,appComponentsConfiguration:o}=_(),t=W(),{navigate:a}=G(),i=J(),r=o?.[b.QUICK_ACTION_BUTTON],d=on(r)?r:void 0,l=s.useMemo(()=>Qe(d?.actions,i),[d?.actions,i]),m=s.useMemo(()=>!l?.length||!t?[]:Ye(l,t),[l,t]),T=s.useMemo(()=>m.map(y=>({id:y.id,label:y.label,icon:y.icon,displayPolicy:y.displayPolicy,onClick:()=>Q.dispatchNavigationForResolvedTarget(a,y,b.QUICK_ACTION_BUTTON)})),[m,a]),{primaryAction:h,menuActions:A}=s.useMemo(()=>{const y=T.find(S=>S.displayPolicy===ae.PRIMARY)??null,N=T.filter(S=>S.displayPolicy!==ae.PRIMARY);return{primaryAction:y,menuActions:N}},[T]),[I,C]=s.useState(!1),g=s.useCallback(y=>{C(!1),y.onClick()},[]);return{allItems:T,primaryAction:h,menuActions:A,isOpen:I,setIsOpen:C,handleActionClick:g,hasActions:!!l?.length,isNavigationLoading:!!l?.length&&t===null,currentBreakpoint:n?.currentBreakpoint}}export{ze as a,qe as b,an as c,mn as d,un as e,Tn as f,rn as g,Cn as h,Xe as i,ln as j,dn as k,fn as l,pn as m,Je as r,cn as u};
@@ -1,4 +1,4 @@
1
- import{s as ei,g as si,q as Lt,p as ni,a as ai,b as ri,_ as a,l as Et,I as oi,d as hi,y as li,G as xt,h as ci,E as It,F as ui,a0 as gi,aE as xi,a8 as Tt}from"./mermaid.core-bwWKwscf.js";import"./index-D8dkqP85.js";import{i as di}from"./init-Gi6I4Gst.js";import{o as fi}from"./ordinal-Cboi1Yqb.js";import{l as Dt}from"./linear-D86elEgL.js";import"./mermaid-VLURNSYL-BAygRTK6.js";import"./index-e-4cSkrt.js";import"./maximize-2-zJKkDRK0.js";import"./defaultLocale-DX6XiGOO.js";function pi(t,i,e){t=+t,i=+i,e=(n=arguments.length)<2?(i=t,t=0,1):n<3?1:+e;for(var s=-1,n=Math.max(0,Math.ceil((i-t)/e))|0,x=new Array(n);++s<n;)x[s]=t+s*e;return x}function ht(){var t=fi().unknown(void 0),i=t.domain,e=t.range,s=0,n=1,x,g,m=!1,S=0,D=0,v=.5;delete t.unknown;function w(){var y=i().length,E=n<s,T=E?n:s,P=E?s:n;x=(P-T)/Math.max(1,y-S+D*2),m&&(x=Math.floor(x)),T+=(P-T-x*(y-S))*v,g=x*(1-S),m&&(T=Math.round(T),g=Math.round(g));var I=pi(y).map(function(p){return T+x*p});return e(E?I.reverse():I)}return t.domain=function(y){return arguments.length?(i(y),w()):i()},t.range=function(y){return arguments.length?([s,n]=y,s=+s,n=+n,w()):[s,n]},t.rangeRound=function(y){return[s,n]=y,s=+s,n=+n,m=!0,w()},t.bandwidth=function(){return g},t.step=function(){return x},t.round=function(y){return arguments.length?(m=!!y,w()):m},t.padding=function(y){return arguments.length?(S=Math.min(1,D=+y),w()):S},t.paddingInner=function(y){return arguments.length?(S=Math.min(1,y),w()):S},t.paddingOuter=function(y){return arguments.length?(D=+y,w()):D},t.align=function(y){return arguments.length?(v=Math.max(0,Math.min(1,y)),w()):v},t.copy=function(){return ht(i(),[s,n]).round(m).paddingInner(S).paddingOuter(D).align(v)},di.apply(w(),arguments)}var lt=(function(){var t=a(function(F,o,c,u){for(c=c||{},u=F.length;u--;c[F[u]]=o);return c},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],n=[1,5],x=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],S=[1,25],D=[1,26],v=[1,28],w=[1,29],y=[1,30],E=[1,31],T=[1,32],P=[1,33],I=[1,34],p=[1,35],_=[1,36],l=[1,37],W=[1,43],z=[1,42],U=[1,47],X=[1,50],h=[1,10,12,14,16,18,19,21,23,34,35,36],L=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],C=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],k=[1,64],$={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(o,c,u,d,A,r,j){var f=r.length-1;switch(A){case 5:d.setOrientation(r[f]);break;case 9:d.setDiagramTitle(r[f].text.trim());break;case 12:d.setLineData({text:"",type:"text"},r[f]);break;case 13:d.setLineData(r[f-1],r[f]);break;case 14:d.setBarData({text:"",type:"text"},r[f]);break;case 15:d.setBarData(r[f-1],r[f]);break;case 16:this.$=r[f].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=r[f].trim(),d.setAccDescription(this.$);break;case 19:this.$=r[f-1];break;case 20:this.$=[Number(r[f-2]),...r[f]];break;case 21:this.$=[Number(r[f])];break;case 22:d.setXAxisTitle(r[f]);break;case 23:d.setXAxisTitle(r[f-1]);break;case 24:d.setXAxisTitle({type:"text",text:""});break;case 25:d.setXAxisBand(r[f]);break;case 26:d.setXAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 27:this.$=r[f-1];break;case 28:this.$=[r[f-2],...r[f]];break;case 29:this.$=[r[f]];break;case 30:d.setYAxisTitle(r[f]);break;case 31:d.setYAxisTitle(r[f-1]);break;case 32:d.setYAxisTitle({type:"text",text:""});break;case 33:d.setYAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 37:this.$={text:r[f],type:"text"};break;case 38:this.$={text:r[f],type:"text"};break;case 39:this.$={text:r[f],type:"markdown"};break;case 40:this.$=r[f];break;case 41:this.$=r[f-1]+""+r[f];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:n,35:x,36:g}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:n,35:x,36:g}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:x,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:n,35:x,36:g}),{1:[2,3]},t(m,[2,5]),t(i,[2,7],{4:22,34:n,35:x,36:g}),{11:23,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:39,13:38,24:W,27:z,29:40,30:41,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:45,15:44,27:U,33:46,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:49,17:48,24:X,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:52,17:51,24:X,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{20:[1,53]},{22:[1,54]},t(h,[2,18]),{1:[2,2]},t(h,[2,8]),t(h,[2,9]),t(L,[2,37],{40:55,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l}),t(L,[2,38]),t(L,[2,39]),t(C,[2,40]),t(C,[2,42]),t(C,[2,43]),t(C,[2,44]),t(C,[2,45]),t(C,[2,46]),t(C,[2,47]),t(C,[2,48]),t(C,[2,49]),t(C,[2,50]),t(C,[2,51]),t(h,[2,10]),t(h,[2,22],{30:41,29:56,24:W,27:z}),t(h,[2,24]),t(h,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},t(h,[2,11]),t(h,[2,30],{33:60,27:U}),t(h,[2,32]),{31:[1,61]},t(h,[2,12]),{17:62,24:X},{25:63,27:k},t(h,[2,14]),{17:65,24:X},t(h,[2,16]),t(h,[2,17]),t(C,[2,41]),t(h,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(h,[2,31]),{27:[1,69]},t(h,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(h,[2,15]),t(h,[2,26]),t(h,[2,27]),{11:59,32:72,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},t(h,[2,33]),t(h,[2,19]),{25:73,27:k},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(o,c){if(c.recoverable)this.trace(o);else{var u=new Error(o);throw u.hash=c,u}},"parseError"),parse:a(function(o){var c=this,u=[0],d=[],A=[null],r=[],j=this.table,f="",J=0,St=0,Zt=2,_t=1,Jt=r.slice.call(arguments,1),R=Object.create(this.lexer),Y={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(Y.yy[nt]=this.yy[nt]);R.setInput(o,Y.yy),Y.yy.lexer=R,Y.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var at=R.yylloc;r.push(at);var ti=R.options&&R.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ii(V){u.length=u.length-2*V,A.length=A.length-V,r.length=r.length-V}a(ii,"popStack");function kt(){var V;return V=d.pop()||R.lex()||_t,typeof V!="number"&&(V instanceof Array&&(d=V,V=d.pop()),V=c.symbols_[V]||V),V}a(kt,"lex");for(var M,H,B,rt,q={},tt,O,Rt,it;;){if(H=u[u.length-1],this.defaultActions[H]?B=this.defaultActions[H]:((M===null||typeof M>"u")&&(M=kt()),B=j[H]&&j[H][M]),typeof B>"u"||!B.length||!B[0]){var ot="";it=[];for(tt in j[H])this.terminals_[tt]&&tt>Zt&&it.push("'"+this.terminals_[tt]+"'");R.showPosition?ot="Parse error on line "+(J+1)+`:
1
+ import{s as ei,g as si,q as Lt,p as ni,a as ai,b as ri,_ as a,l as Et,I as oi,d as hi,y as li,G as xt,h as ci,E as It,F as ui,a0 as gi,aE as xi,a8 as Tt}from"./mermaid.core-BL3HF1R-.js";import"./index-Deq6GKqj.js";import{i as di}from"./init-Gi6I4Gst.js";import{o as fi}from"./ordinal-Cboi1Yqb.js";import{l as Dt}from"./linear-DO91-bmQ.js";import"./mermaid-VLURNSYL-dgg9HxDX.js";import"./index-e-4cSkrt.js";import"./maximize-2-C2yGTSk4.js";import"./defaultLocale-DX6XiGOO.js";function pi(t,i,e){t=+t,i=+i,e=(n=arguments.length)<2?(i=t,t=0,1):n<3?1:+e;for(var s=-1,n=Math.max(0,Math.ceil((i-t)/e))|0,x=new Array(n);++s<n;)x[s]=t+s*e;return x}function ht(){var t=fi().unknown(void 0),i=t.domain,e=t.range,s=0,n=1,x,g,m=!1,S=0,D=0,v=.5;delete t.unknown;function w(){var y=i().length,E=n<s,T=E?n:s,P=E?s:n;x=(P-T)/Math.max(1,y-S+D*2),m&&(x=Math.floor(x)),T+=(P-T-x*(y-S))*v,g=x*(1-S),m&&(T=Math.round(T),g=Math.round(g));var I=pi(y).map(function(p){return T+x*p});return e(E?I.reverse():I)}return t.domain=function(y){return arguments.length?(i(y),w()):i()},t.range=function(y){return arguments.length?([s,n]=y,s=+s,n=+n,w()):[s,n]},t.rangeRound=function(y){return[s,n]=y,s=+s,n=+n,m=!0,w()},t.bandwidth=function(){return g},t.step=function(){return x},t.round=function(y){return arguments.length?(m=!!y,w()):m},t.padding=function(y){return arguments.length?(S=Math.min(1,D=+y),w()):S},t.paddingInner=function(y){return arguments.length?(S=Math.min(1,y),w()):S},t.paddingOuter=function(y){return arguments.length?(D=+y,w()):D},t.align=function(y){return arguments.length?(v=Math.max(0,Math.min(1,y)),w()):v},t.copy=function(){return ht(i(),[s,n]).round(m).paddingInner(S).paddingOuter(D).align(v)},di.apply(w(),arguments)}var lt=(function(){var t=a(function(F,o,c,u){for(c=c||{},u=F.length;u--;c[F[u]]=o);return c},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],n=[1,5],x=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],S=[1,25],D=[1,26],v=[1,28],w=[1,29],y=[1,30],E=[1,31],T=[1,32],P=[1,33],I=[1,34],p=[1,35],_=[1,36],l=[1,37],W=[1,43],z=[1,42],U=[1,47],X=[1,50],h=[1,10,12,14,16,18,19,21,23,34,35,36],L=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],C=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],k=[1,64],$={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(o,c,u,d,A,r,j){var f=r.length-1;switch(A){case 5:d.setOrientation(r[f]);break;case 9:d.setDiagramTitle(r[f].text.trim());break;case 12:d.setLineData({text:"",type:"text"},r[f]);break;case 13:d.setLineData(r[f-1],r[f]);break;case 14:d.setBarData({text:"",type:"text"},r[f]);break;case 15:d.setBarData(r[f-1],r[f]);break;case 16:this.$=r[f].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=r[f].trim(),d.setAccDescription(this.$);break;case 19:this.$=r[f-1];break;case 20:this.$=[Number(r[f-2]),...r[f]];break;case 21:this.$=[Number(r[f])];break;case 22:d.setXAxisTitle(r[f]);break;case 23:d.setXAxisTitle(r[f-1]);break;case 24:d.setXAxisTitle({type:"text",text:""});break;case 25:d.setXAxisBand(r[f]);break;case 26:d.setXAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 27:this.$=r[f-1];break;case 28:this.$=[r[f-2],...r[f]];break;case 29:this.$=[r[f]];break;case 30:d.setYAxisTitle(r[f]);break;case 31:d.setYAxisTitle(r[f-1]);break;case 32:d.setYAxisTitle({type:"text",text:""});break;case 33:d.setYAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 37:this.$={text:r[f],type:"text"};break;case 38:this.$={text:r[f],type:"text"};break;case 39:this.$={text:r[f],type:"markdown"};break;case 40:this.$=r[f];break;case 41:this.$=r[f-1]+""+r[f];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:n,35:x,36:g}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:n,35:x,36:g}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:x,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(m,[2,34]),t(m,[2,35]),t(m,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:n,35:x,36:g}),{1:[2,3]},t(m,[2,5]),t(i,[2,7],{4:22,34:n,35:x,36:g}),{11:23,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:39,13:38,24:W,27:z,29:40,30:41,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:45,15:44,27:U,33:46,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:49,17:48,24:X,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{11:52,17:51,24:X,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},{20:[1,53]},{22:[1,54]},t(h,[2,18]),{1:[2,2]},t(h,[2,8]),t(h,[2,9]),t(L,[2,37],{40:55,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l}),t(L,[2,38]),t(L,[2,39]),t(C,[2,40]),t(C,[2,42]),t(C,[2,43]),t(C,[2,44]),t(C,[2,45]),t(C,[2,46]),t(C,[2,47]),t(C,[2,48]),t(C,[2,49]),t(C,[2,50]),t(C,[2,51]),t(h,[2,10]),t(h,[2,22],{30:41,29:56,24:W,27:z}),t(h,[2,24]),t(h,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},t(h,[2,11]),t(h,[2,30],{33:60,27:U}),t(h,[2,32]),{31:[1,61]},t(h,[2,12]),{17:62,24:X},{25:63,27:k},t(h,[2,14]),{17:65,24:X},t(h,[2,16]),t(h,[2,17]),t(C,[2,41]),t(h,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(h,[2,31]),{27:[1,69]},t(h,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(h,[2,15]),t(h,[2,26]),t(h,[2,27]),{11:59,32:72,37:24,38:S,39:D,40:27,41:v,42:w,43:y,44:E,45:T,46:P,47:I,48:p,49:_,50:l},t(h,[2,33]),t(h,[2,19]),{25:73,27:k},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(o,c){if(c.recoverable)this.trace(o);else{var u=new Error(o);throw u.hash=c,u}},"parseError"),parse:a(function(o){var c=this,u=[0],d=[],A=[null],r=[],j=this.table,f="",J=0,St=0,Zt=2,_t=1,Jt=r.slice.call(arguments,1),R=Object.create(this.lexer),Y={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(Y.yy[nt]=this.yy[nt]);R.setInput(o,Y.yy),Y.yy.lexer=R,Y.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var at=R.yylloc;r.push(at);var ti=R.options&&R.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ii(V){u.length=u.length-2*V,A.length=A.length-V,r.length=r.length-V}a(ii,"popStack");function kt(){var V;return V=d.pop()||R.lex()||_t,typeof V!="number"&&(V instanceof Array&&(d=V,V=d.pop()),V=c.symbols_[V]||V),V}a(kt,"lex");for(var M,H,B,rt,q={},tt,O,Rt,it;;){if(H=u[u.length-1],this.defaultActions[H]?B=this.defaultActions[H]:((M===null||typeof M>"u")&&(M=kt()),B=j[H]&&j[H][M]),typeof B>"u"||!B.length||!B[0]){var ot="";it=[];for(tt in j[H])this.terminals_[tt]&&tt>Zt&&it.push("'"+this.terminals_[tt]+"'");R.showPosition?ot="Parse error on line "+(J+1)+`:
2
2
  `+R.showPosition()+`
3
3
  Expecting `+it.join(", ")+", got '"+(this.terminals_[M]||M)+"'":ot="Parse error on line "+(J+1)+": Unexpected "+(M==_t?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(ot,{text:R.match,token:this.terminals_[M]||M,line:R.yylineno,loc:at,expected:it})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+M);switch(B[0]){case 1:u.push(M),A.push(R.yytext),r.push(R.yylloc),u.push(B[1]),M=null,St=R.yyleng,f=R.yytext,J=R.yylineno,at=R.yylloc;break;case 2:if(O=this.productions_[B[1]][1],q.$=A[A.length-O],q._$={first_line:r[r.length-(O||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(O||1)].first_column,last_column:r[r.length-1].last_column},ti&&(q._$.range=[r[r.length-(O||1)].range[0],r[r.length-1].range[1]]),rt=this.performAction.apply(q,[f,St,J,Y.yy,B[1],A,r].concat(Jt)),typeof rt<"u")return rt;O&&(u=u.slice(0,-1*O*2),A=A.slice(0,-1*O),r=r.slice(0,-1*O)),u.push(this.productions_[B[1]][0]),A.push(q.$),r.push(q._$),Rt=j[u[u.length-2]][u[u.length-1]],u.push(Rt);break;case 3:return!0}}return!0},"parse")},Ct=(function(){var F={EOF:1,parseError:a(function(c,u){if(this.yy.parser)this.yy.parser.parseError(c,u);else throw new Error(c)},"parseError"),setInput:a(function(o,c){return this.yy=c||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:a(function(o){var c=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===d.length?this.yylloc.first_column:0)+d[d.length-u.length].length-u[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(o){this.unput(this.match.slice(o))},"less"),pastInput:a(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var o=this.pastInput(),c=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
package/dist/index.html CHANGED
@@ -75,7 +75,7 @@
75
75
  }
76
76
  </style>
77
77
  <title>Wildo Application-Creation Workbench</title>
78
- <script type="module" crossorigin src="/assets/index-D8dkqP85.js"></script>
78
+ <script type="module" crossorigin src="/assets/index-Deq6GKqj.js"></script>
79
79
  <link rel="stylesheet" crossorigin href="/assets/index-D-THewyc.css">
80
80
  </head>
81
81
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildo-ai/application-creation-workbench",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Application-creation workbench: the built operator UI and the server that fronts it on an application's companion.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Wildo AI",
@@ -28,13 +28,13 @@
28
28
  "@types/react": "^19.0.0",
29
29
  "@types/react-dom": "^19.0.0",
30
30
  "@vitejs/plugin-react": "^4.5.1",
31
- "@wildo-ai/platform-core-shared": "1.1.7",
32
- "@wildo-ai/presets-components": "1.1.7",
33
- "@wildo-ai/presets-components-models": "1.1.7",
34
- "@wildo-ai/saas-frontend-lib": "1.1.7",
35
- "@wildo-ai/saas-models": "1.1.7",
36
- "@wildo-ai/saas-specifications": "1.1.7",
37
- "@wildo-ai/zod-decorators": "1.1.7",
31
+ "@wildo-ai/platform-core-shared": "1.1.9",
32
+ "@wildo-ai/presets-components": "1.1.9",
33
+ "@wildo-ai/presets-components-models": "1.1.9",
34
+ "@wildo-ai/saas-frontend-lib": "1.1.9",
35
+ "@wildo-ai/saas-models": "1.1.9",
36
+ "@wildo-ai/saas-specifications": "1.1.9",
37
+ "@wildo-ai/zod-decorators": "1.1.9",
38
38
  "@xyflow/react": "^12.9.3",
39
39
  "jsdom": "^24.0.0",
40
40
  "lucide-react": "^1.39.0",
@@ -1 +0,0 @@
1
- import{U as a,C as n}from"./mermaid.core-bwWKwscf.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-DjqjS8Nd.js";import{_ as i}from"./mermaid.core-bwWKwscf.js";import"./index-D8dkqP85.js";import"./chunk-FMBD7UC4-C_LJMr3H.js";import"./chunk-55IACEB6-B-1eMtsJ.js";import"./chunk-QN33PNHL-DOWhVFKY.js";import"./mermaid-VLURNSYL-BAygRTK6.js";import"./index-e-4cSkrt.js";import"./maximize-2-zJKkDRK0.js";var b={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
@@ -1 +0,0 @@
1
- import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-DjqjS8Nd.js";import{_ as i}from"./mermaid.core-bwWKwscf.js";import"./index-D8dkqP85.js";import"./chunk-FMBD7UC4-C_LJMr3H.js";import"./chunk-55IACEB6-B-1eMtsJ.js";import"./chunk-QN33PNHL-DOWhVFKY.js";import"./mermaid-VLURNSYL-BAygRTK6.js";import"./index-e-4cSkrt.js";import"./maximize-2-zJKkDRK0.js";var b={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{b as diagram};
@@ -1 +0,0 @@
1
- import{b as r}from"./_baseUniq-aBjj_hOi.js";var e=4;function a(o){return r(o,e)}export{a as c};
@@ -1 +0,0 @@
1
- import{s as r,b as e,a,S as s}from"./chunk-DI55MBZ5-CNDJpkHu.js";import{_ as i}from"./mermaid.core-bwWKwscf.js";import"./index-D8dkqP85.js";import"./chunk-55IACEB6-B-1eMtsJ.js";import"./chunk-QN33PNHL-DOWhVFKY.js";import"./mermaid-VLURNSYL-BAygRTK6.js";import"./index-e-4cSkrt.js";import"./maximize-2-zJKkDRK0.js";var b={parser:a,get db(){return new s(2)},renderer:e,styles:r,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{b as diagram};