@zeniai/web-cockpit-ui 2.1.61-qa → 2.1.62-dev

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 (39) hide show
  1. package/dist/assets/{CreditAgentRoutes-9wTmltF1.js → CreditAgentRoutes-Cau_p4lZ.js} +2 -2
  2. package/dist/assets/{Preview-KTykUQ97.js → Preview-pwJjhxYn.js} +1 -1
  3. package/dist/assets/{ScreenRoutes-DVpUDuzk.js → ScreenRoutes-CwHNzr3W.js} +68 -68
  4. package/dist/assets/SignInScreen-BGlBOkf5.js +1 -0
  5. package/dist/assets/{analytics-CGe5SljI.js → analytics-cv_4m9uH.js} +1 -1
  6. package/dist/assets/{analyticsHelper-B5cJWbON.js → analyticsHelper-DqE19sjB.js} +1 -1
  7. package/dist/assets/{core-D3vKAA7N.js → core-DDdUdMPr.js} +1 -1
  8. package/dist/assets/{dash.all.min-ylknGIId.js → dash.all.min-C-60LNl7.js} +1 -1
  9. package/dist/assets/{empty-DW038OdA.js → empty-C5MTVDEL.js} +1 -1
  10. package/dist/assets/{empty-DkhajhXs.js → empty-h1vQoFEL.js} +1 -1
  11. package/dist/assets/{epic-CCxbhMbX.js → epic-CsW9tgv0.js} +2 -2
  12. package/dist/assets/{index-CGQCfrgk.js → index-1601h8Di.js} +1 -1
  13. package/dist/assets/{index-BtVu_6uM.js → index-CbIimWjJ.js} +2 -2
  14. package/dist/assets/{index-CfEJv6Ed.js → index-Cz93iuda.js} +1 -1
  15. package/dist/assets/{index-IJyuEKHy.js → index-Df06yIQu.js} +1 -1
  16. package/dist/assets/{index-Bb2epO76.js → index-DvFuwux_.js} +1 -1
  17. package/dist/assets/{index-DZdv0QvX.js → index-X12blyMu.js} +1 -1
  18. package/dist/assets/{index-D_38EV1q.js → index-h9NFE7gD.js} +11966 -11815
  19. package/dist/assets/{lexical-BljFBMwH.js → lexical-CO9Xnsyh.js} +1 -1
  20. package/dist/assets/{liveblocks-epuBm_yI.js → liveblocks-BdS2WhG7.js} +1 -1
  21. package/dist/assets/{lottie-BrxBXfFD.js → lottie-wbaGwVQA.js} +1 -1
  22. package/dist/assets/{mui-8hItAKMS.js → mui-CuL2SouZ.js} +1 -1
  23. package/dist/assets/{react-C4351T1L.js → react-C7P2bml1.js} +1 -1
  24. package/dist/assets/{react-petVfRIS.js → react-CRDzOUQI.js} +1 -1
  25. package/dist/assets/{react-B2UBowdx.js → react-CoHMyrSk.js} +1 -1
  26. package/dist/assets/{react-DNOSJ5Kp.js → react-D9tEXq7A.js} +1 -1
  27. package/dist/assets/{react-BX-G3nJa.js → react-DP5zUGPx.js} +2 -2
  28. package/dist/assets/{react-DdFPtX0I.js → react-DWWPRON1.js} +1 -1
  29. package/dist/assets/{react-BSbZOTN5.js → react-Dmr4z6QW.js} +1 -1
  30. package/dist/assets/{react-Djd3VUgu.js → react-ZXOPoA5D.js} +1 -1
  31. package/dist/assets/{recharts-CVMJEk22.js → recharts-BvZBzKeE.js} +1 -1
  32. package/dist/assets/{sentry-B6LdD-Db.js → sentry-Bgu00-bc.js} +1 -1
  33. package/dist/assets/{url-Bk0ubj4J.js → url-DvbcspVI.js} +1 -1
  34. package/dist/assets/{url-DHlV2vdp.js → url-kEVOcBxC.js} +1 -1
  35. package/dist/assets/{utils-D3h4t6L5.js → utils-CZrj8eVc.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-Ca9l8454.js → zeni-epic-state-Di80ywix.js} +3 -3
  37. package/dist/index.html +1 -1
  38. package/package.json +2 -2
  39. package/dist/assets/SignInScreen-D7xAp2FS.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as s}from"./liveblocks-epuBm_yI.js";import{u as D,P as j}from"./ScreenRoutes-DVpUDuzk.js";import{a as f}from"./sentry-B6LdD-Db.js";import{i as v,n as U,g as m,h as R,k as C,l as I,N as T}from"./core-D3vKAA7N.js";import{P3 as N,P4 as k,ks as E,P5 as M,la as L,ld as $,k$ as _,P6 as O,P7 as B,l7 as F,l3 as q}from"./zeni-epic-state-Ca9l8454.js";import{z as Q,_ as V,d as J,i as Z,a0 as G,f as H,Q as K,a as W,g as X,h as Y}from"./index-D_38EV1q.js";import{n as ee}from"./mui-8hItAKMS.js";import"./recharts-CVMJEk22.js";import"./analyticsHelper-B5cJWbON.js";import"./utils-D3h4t6L5.js";import"./empty-DW038OdA.js";import"./index-CfEJv6Ed.js";import"./url-DHlV2vdp.js";import"./index-IJyuEKHy.js";import"./analytics-CGe5SljI.js";import"./lottie-BrxBXfFD.js";import"./lexical-BljFBMwH.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="a953787e-a692-46b2-8b1e-00312ea597c9",a._sentryDebugIdIdentifier="sentry-dbid-a953787e-a692-46b2-8b1e-00312ea597c9")}catch{}})();function te(a,t){return{headerData:{allTabOptions:H,selectedTabOption:K("creditAgent")},creditAgentPageData:{macroData:{data:t.macroCombined.data,fetchState:t.macroCombined.fetchStatus.fetchState,updateState:t.macroCombined.updateStatus.fetchState},cardProfilesData:t.cardProfilesData}}}function ne(a,t){return{headerActions:{onTabChange:n=>{const g=Y(n),c=X(n);W.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(q())},onSaveMacro:n=>{a(F(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(O(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=R(te,ne)(G),oe=ee.div`
1
+ import{j as s}from"./liveblocks-BdS2WhG7.js";import{u as D,P as j}from"./ScreenRoutes-CwHNzr3W.js";import{a as f}from"./sentry-Bgu00-bc.js";import{i as v,n as U,g as m,h as R,k as C,l as I,N as T}from"./core-DDdUdMPr.js";import{P3 as N,P4 as k,kt as E,P5 as M,lb as L,le as _,l0 as $,P6 as O,P7 as B,l8 as F,l4 as q}from"./zeni-epic-state-Di80ywix.js";import{z as Q,_ as V,i as J,n as Z,a0 as G,f as H,Q as K,c as W,g as X,h as Y}from"./index-h9NFE7gD.js";import{n as ee}from"./mui-CuL2SouZ.js";import"./recharts-BvZBzKeE.js";import"./analyticsHelper-DqE19sjB.js";import"./utils-CZrj8eVc.js";import"./empty-C5MTVDEL.js";import"./index-Cz93iuda.js";import"./url-kEVOcBxC.js";import"./index-Df06yIQu.js";import"./analytics-cv_4m9uH.js";import"./lottie-wbaGwVQA.js";import"./lexical-CO9Xnsyh.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="a92320cb-25d9-4ea9-8fc5-6fe4fd49fb9e",a._sentryDebugIdIdentifier="sentry-dbid-a92320cb-25d9-4ea9-8fc5-6fe4fd49fb9e")}catch{}})();function te(a,t){return{headerData:{allTabOptions:H,selectedTabOption:K("creditAgent")},creditAgentPageData:{macroData:{data:t.macroCombined.data,fetchState:t.macroCombined.fetchStatus.fetchState,updateState:t.macroCombined.updateStatus.fetchState},cardProfilesData:t.cardProfilesData}}}function ne(a,t){return{headerActions:{onTabChange:n=>{const g=Y(n),c=X(n);W.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(q())},onSaveMacro:n=>{a(F(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(O(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=R(te,ne)(G),oe=ee.div`
2
2
  padding: ${Z.sp5};
3
3
  text-align: center;
4
- `;function re(){const a=v(),t=U(),n=m(N),g=m(k),[c,h]=f.useState(new Set),p=f.useRef(new Set),b=m(e=>e.tenantState.currentTenantId),y=m(e=>e.companyViewState.zeniUsers.fetchState);f.useEffect(()=>{y==="Not-Started"&&t(E())},[t,y]);const d=Q.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,z=f.useMemo(()=>({onFetch:()=>{t(_())},onUpdateProfile:(e,o,r)=>{const i=r.updatedByName??A;t($({tenantId:o,tenantEmailDomain:e,update:{...r,updatedByName:i}}))},onAnalyse:e=>{h(o=>new Set(o).add(e)),t(L(e))},onDownloadReport:()=>{const e=M(n.rows),o=d?.userId??"",r=d?.zeniSessionId??"",i=b??"";if(!o||!r||!i)return;const w=encodeURIComponent(JSON.stringify(e)),x=`${V}/tableDownload?query=${w}`;fetch(x,{headers:{"zeni-user-id":o,"zeni-session-id":r,"zeni-tenant-id":i}}).then(async l=>{if(!l.ok){const u=await l.text();throw new Error(`Download failed: ${l.status} ${u}`)}return l.blob()}).then(l=>{const u=URL.createObjectURL(l),S=document.createElement("a");S.href=u,S.download=`${e.file_name}.xlsx`,S.click(),URL.revokeObjectURL(u)}).catch(()=>{})}}),[t,A,d,b,n.rows]);f.useEffect(()=>{if(c.size===0)return;const e=new Set;for(const o of c){const r=n.rows.find(i=>i.tenantId===o);r!=null&&r.isAnalyzing?p.current.add(o):r!=null&&!r.isAnalyzing&&p.current.has(o)&&(e.add(o),p.current.delete(o))}e.size>0&&h(o=>{const r=new Set(o);for(const i of e)r.delete(i);return r})},[n.rows,c]);const P=f.useMemo(()=>({fetchState:n.fetchStatus.fetchState,rows:n.rows.map(e=>e.isAnalyzing||e.tenantId!=null&&c.has(e.tenantId)?{...e,isAnalyzing:!0}:e),uiState:n.uiState}),[n,c]);return d==null?s.jsx(oe,{children:J.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:z,cardProfilesData:P})}function ze(){const{isAllowed:a,isLoading:t}=D();return t?null:a?s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(j,{element:s.jsx(re,{})})})}):s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(T,{to:"/management",replace:!0})})})}export{ze as default};
4
+ `;function re(){const a=v(),t=U(),n=m(N),g=m(k),[c,h]=f.useState(new Set),p=f.useRef(new Set),b=m(e=>e.tenantState.currentTenantId),y=m(e=>e.companyViewState.zeniUsers.fetchState);f.useEffect(()=>{y==="Not-Started"&&t(E())},[t,y]);const d=Q.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,z=f.useMemo(()=>({onFetch:()=>{t($())},onUpdateProfile:(e,o,r)=>{const i=r.updatedByName??A;t(_({tenantId:o,tenantEmailDomain:e,update:{...r,updatedByName:i}}))},onAnalyse:e=>{h(o=>new Set(o).add(e)),t(L(e))},onDownloadReport:()=>{const e=M(n.rows),o=d?.userId??"",r=d?.zeniSessionId??"",i=b??"";if(!o||!r||!i)return;const w=encodeURIComponent(JSON.stringify(e)),x=`${V}/tableDownload?query=${w}`;fetch(x,{headers:{"zeni-user-id":o,"zeni-session-id":r,"zeni-tenant-id":i}}).then(async l=>{if(!l.ok){const u=await l.text();throw new Error(`Download failed: ${l.status} ${u}`)}return l.blob()}).then(l=>{const u=URL.createObjectURL(l),S=document.createElement("a");S.href=u,S.download=`${e.file_name}.xlsx`,S.click(),URL.revokeObjectURL(u)}).catch(()=>{})}}),[t,A,d,b,n.rows]);f.useEffect(()=>{if(c.size===0)return;const e=new Set;for(const o of c){const r=n.rows.find(i=>i.tenantId===o);r!=null&&r.isAnalyzing?p.current.add(o):r!=null&&!r.isAnalyzing&&p.current.has(o)&&(e.add(o),p.current.delete(o))}e.size>0&&h(o=>{const r=new Set(o);for(const i of e)r.delete(i);return r})},[n.rows,c]);const P=f.useMemo(()=>({fetchState:n.fetchStatus.fetchState,rows:n.rows.map(e=>e.isAnalyzing||e.tenantId!=null&&c.has(e.tenantId)?{...e,isAnalyzing:!0}:e),uiState:n.uiState}),[n,c]);return d==null?s.jsx(oe,{children:J.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:z,cardProfilesData:P})}function ze(){const{isAllowed:a,isLoading:t}=D();return t?null:a?s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(j,{element:s.jsx(re,{})})})}):s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(T,{to:"/management",replace:!0})})})}export{ze as default};
@@ -1 +1 @@
1
- import{a as h,R as n}from"./sentry-B6LdD-Db.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="f4ba052c-9e02-4735-9454-bf2cba2bc7bc",t._sentryDebugIdIdentifier="sentry-dbid-f4ba052c-9e02-4735-9454-bf2cba2bc7bc")}catch{}})();const d="64px",u={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:f})=>{const[b,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||_({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(u[e]){o(u[e]);return}o(null);const y=await(await fetch(E.replace("{url}",e))).json();if(y.thumbnail_url){const g=y.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),u[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),p={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:b&&!l?`url(${b})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...p},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:d,width:d,height:d,position:l?"absolute":void 0,...p},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:c.shadow,className:"react-player__shadow"},n.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:c.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...f?{"aria-label":f}:{}},l?a:null,m||x)};var S=k;export{S as default};
1
+ import{a as h,R as n}from"./sentry-Bgu00-bc.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="f4ba052c-9e02-4735-9454-bf2cba2bc7bc",t._sentryDebugIdIdentifier="sentry-dbid-f4ba052c-9e02-4735-9454-bf2cba2bc7bc")}catch{}})();const d="64px",u={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:f})=>{const[b,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||_({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(u[e]){o(u[e]);return}o(null);const y=await(await fetch(E.replace("{url}",e))).json();if(y.thumbnail_url){const g=y.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),u[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),p={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:b&&!l?`url(${b})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...p},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:d,width:d,height:d,position:l?"absolute":void 0,...p},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:c.shadow,className:"react-player__shadow"},n.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:c.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...f?{"aria-label":f}:{}},l?a:null,m||x)};var S=k;export{S as default};