@zeniai/web-cockpit-ui 2.2.60-qa → 2.2.61-qa

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-DqdxDLoQ.js → CreditAgentRoutes-Bp105DKH.js} +1 -1
  2. package/dist/assets/{Preview-GgjRgeCQ.js → Preview-fPv1DRQ1.js} +1 -1
  3. package/dist/assets/{ScreenRoutes-Dawo7fR_.js → ScreenRoutes-sIcJFc7C.js} +62 -62
  4. package/dist/assets/{SignInScreen-B6QADSls.js → SignInScreen-DsjujE21.js} +1 -1
  5. package/dist/assets/{analytics-CvmZpl0O.js → analytics-D9WAqKwO.js} +1 -1
  6. package/dist/assets/{analyticsHelper-CEFxucQh.js → analyticsHelper-DlewDUsz.js} +1 -1
  7. package/dist/assets/{core-B0f7VJiM.js → core-BT-LKwBO.js} +1 -1
  8. package/dist/assets/{dash.all.min-DaJ8g1sK.js → dash.all.min-CKT5oDoJ.js} +1 -1
  9. package/dist/assets/{empty-BpugT50s.js → empty-BDwq2_Ke.js} +1 -1
  10. package/dist/assets/{empty-DJ47423V.js → empty-DLEMo0C8.js} +1 -1
  11. package/dist/assets/epic-buZFiD5u.js +2 -0
  12. package/dist/assets/{index-BsYKlx7J.js → index-B1wMrwn2.js} +5 -5
  13. package/dist/assets/{index-CCAoSMAj.js → index-BImK4auf.js} +1 -1
  14. package/dist/assets/{index-C4wLHSim.js → index-BJDEumzS.js} +2 -2
  15. package/dist/assets/{index-CgOQLCJF.js → index-Bb7G7FaI.js} +1 -1
  16. package/dist/assets/{index-4fBZIMkT.js → index-CrilB6JM.js} +1 -1
  17. package/dist/assets/{index-BCb04u0A.js → index-D-Wq9lqR.js} +1 -1
  18. package/dist/assets/{index-Cv8NN2Qb.js → index-D0mTjBB0.js} +1 -1
  19. package/dist/assets/{lexical-CUCg0cit.js → lexical-j9_Jb968.js} +1 -1
  20. package/dist/assets/{liveblocks-QPpfWT1k.js → liveblocks-kmOPplCT.js} +1 -1
  21. package/dist/assets/{lottie-94tqENIz.js → lottie-aFBdPFe2.js} +1 -1
  22. package/dist/assets/{mui-BMWWzgng.js → mui-XB5bJcWw.js} +1 -1
  23. package/dist/assets/{react-DlTUSlct.js → react-BRNWlGy9.js} +2 -2
  24. package/dist/assets/{react-CRVl585z.js → react-BWD9XeW-.js} +1 -1
  25. package/dist/assets/{react-CeMEy7aE.js → react-BfLhnNyi.js} +1 -1
  26. package/dist/assets/{react-B_j_mUBG.js → react-BoDcsozs.js} +1 -1
  27. package/dist/assets/{react-B6iHsUCL.js → react-C2D6ucNV.js} +1 -1
  28. package/dist/assets/{react-BjL3pKtT.js → react-Coc9YedC.js} +1 -1
  29. package/dist/assets/{react-DpDoOrPd.js → react-CuQlE1A-.js} +1 -1
  30. package/dist/assets/{react-DJ55yQpt.js → react-_1JAZkWT.js} +1 -1
  31. package/dist/assets/{recharts-DJRWcEMe.js → recharts-BskwK9gv.js} +1 -1
  32. package/dist/assets/{sentry-B-_9zVwh.js → sentry-D-2wyAuJ.js} +1 -1
  33. package/dist/assets/{url-C5cbTvrm.js → url-AmPMMF75.js} +1 -1
  34. package/dist/assets/{url-BK1viaXJ.js → url-FBy8M7B4.js} +1 -1
  35. package/dist/assets/{utils-B1jq4BPS.js → utils-xLcidbPi.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-C81HyNDq.js → zeni-epic-state-Dh8YZcQV.js} +7 -7
  37. package/dist/index.html +1 -1
  38. package/package.json +3 -3
  39. package/dist/assets/epic-GVLDKHf1.js +0 -2
@@ -1,4 +1,4 @@
1
- import{j as s}from"./liveblocks-QPpfWT1k.js";import{u as R,P as v}from"./ScreenRoutes-Dawo7fR_.js";import{a as f}from"./sentry-B-_9zVwh.js";import{i as P,n as T,g as m,h as U,k as C,l as I,N as j}from"./core-B0f7VJiM.js";import{Sg as N,Sh as k,lx as E,Si as M,mn as L,mq as $,mc as _,Sj as O,Sk as q,mk as B,mg as F}from"./zeni-epic-state-C81HyNDq.js";import{z as V,S as G,G as J,n as Z,T as H,R as K,w as Q,a as W,g as X,b as Y}from"./index-BsYKlx7J.js";import{n as ee}from"./mui-BMWWzgng.js";import"./recharts-DJRWcEMe.js";import"./analyticsHelper-CEFxucQh.js";import"./utils-B1jq4BPS.js";import"./empty-BpugT50s.js";import"./index-4fBZIMkT.js";import"./url-BK1viaXJ.js";import"./index-CgOQLCJF.js";import"./analytics-CvmZpl0O.js";import"./lottie-94tqENIz.js";import"./lexical-CUCg0cit.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]="4bc4c377-6e2c-4fce-9a0f-f9a9bfb05704",a._sentryDebugIdIdentifier="sentry-dbid-4bc4c377-6e2c-4fce-9a0f-f9a9bfb05704")}catch{}})();function te(a,t){return{headerData:{allTabOptions:K,selectedTabOption:Q("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(F())},onSaveMacro:n=>{a(B(n))},onResetSaveMacro:()=>{a(q())},onUIStateChange:n=>{a(O(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=U(te,ne)(H),oe=ee.div`
1
+ import{j as s}from"./liveblocks-kmOPplCT.js";import{u as R,P as v}from"./ScreenRoutes-sIcJFc7C.js";import{a as f}from"./sentry-D-2wyAuJ.js";import{i as P,n as T,g as m,h as U,k as C,l as I,N as j}from"./core-BT-LKwBO.js";import{So as N,Sp as k,lx as E,Sq as M,mn as L,mq as $,mc as _,Sr as O,Ss as q,mk as B,mg as F}from"./zeni-epic-state-Dh8YZcQV.js";import{z as V,S as G,G as J,n as Z,T as H,R as K,w as Q,a as W,g as X,b as Y}from"./index-B1wMrwn2.js";import{n as ee}from"./mui-XB5bJcWw.js";import"./recharts-BskwK9gv.js";import"./analyticsHelper-DlewDUsz.js";import"./utils-xLcidbPi.js";import"./empty-BDwq2_Ke.js";import"./index-CrilB6JM.js";import"./url-FBy8M7B4.js";import"./index-Bb7G7FaI.js";import"./analytics-D9WAqKwO.js";import"./lottie-aFBdPFe2.js";import"./lexical-j9_Jb968.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]="c067fe7a-bc05-48db-8f36-60f1980fe578",a._sentryDebugIdIdentifier="sentry-dbid-c067fe7a-bc05-48db-8f36-60f1980fe578")}catch{}})();function te(a,t){return{headerData:{allTabOptions:K,selectedTabOption:Q("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(F())},onSaveMacro:n=>{a(B(n))},onResetSaveMacro:()=>{a(q())},onUIStateChange:n=>{a(O(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=U(te,ne)(H),oe=ee.div`
2
2
  padding: ${Z.sp5};
3
3
  text-align: center;
4
4
  `;function re(){const a=P(),t=T(),n=m(N),g=m(k),[c,h]=f.useState(new Set),S=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=V.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,w=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 z=encodeURIComponent(JSON.stringify(e)),D=`${G}/tableDownload?query=${z}`;fetch(D,{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),p=document.createElement("a");p.href=u,p.download=`${e.file_name}.xlsx`,p.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?S.current.add(o):r!=null&&!r.isAnalyzing&&S.current.has(o)&&(e.add(o),S.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 x=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:w,cardProfilesData:x})}function we(){const{isAllowed:a,isLoading:t}=R();return t?null:a?s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(v,{element:s.jsx(re,{})})})}):s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(j,{to:"/management",replace:!0})})})}export{we as default};
@@ -1 +1 @@
1
- import{a as h,R as n}from"./sentry-B-_9zVwh.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-D-2wyAuJ.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};