@zeniai/web-cockpit-ui 2.1.38-qa → 2.1.39-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.
- package/dist/assets/{CreditAgentRoutes-D64dYSoQ.js → CreditAgentRoutes-Bhc999uL.js} +1 -1
- package/dist/assets/{Preview-jPJm8y17.js → Preview-SbAMiEr5.js} +1 -1
- package/dist/assets/{ScreenRoutes-B4Ha8cac.js → ScreenRoutes-BWznuot5.js} +69 -69
- package/dist/assets/SignInScreen-BSQ777P_.js +1 -0
- package/dist/assets/{analytics-BEHSc-AL.js → analytics-JGp-OcCZ.js} +1 -1
- package/dist/assets/{analyticsHelper-BV_C5B7d.js → analyticsHelper-CbZ2OGis.js} +1 -1
- package/dist/assets/{core-VnljIQDX.js → core-CufZxI47.js} +1 -1
- package/dist/assets/{dash.all.min-CQuBz05A.js → dash.all.min-C8TpQQjW.js} +1 -1
- package/dist/assets/{empty-DmSfYDlU.js → empty-4dMZl8Ki.js} +1 -1
- package/dist/assets/{empty-BfdtMg3M.js → empty-DwPBudby.js} +1 -1
- package/dist/assets/{epic-jd-DJoVQ.js → epic-J8QJ4Zeu.js} +2 -2
- package/dist/assets/{index-FplfLDuw.js → index-BNb6MXSj.js} +1 -1
- package/dist/assets/{index-BMzZKfha.js → index-Cd6su0Bw.js} +1 -1
- package/dist/assets/{index-Biv_PpFH.js → index-DTuyAhmh.js} +1 -1
- package/dist/assets/{index-BRtZXB3G.js → index-DX_sJwNe.js} +1 -1
- package/dist/assets/{index-tN4IXR0K.js → index-DeoIoa1M.js} +1 -1
- package/dist/assets/{index-DeS40-nZ.js → index-Dipv4qjf.js} +7764 -7866
- package/dist/assets/{index-ByHh9eu-.js → index-ManiO-kp.js} +2 -2
- package/dist/assets/{lexical-jU5YI7Ga.js → lexical-CpiGfyON.js} +1 -1
- package/dist/assets/{liveblocks-xmHLgckB.js → liveblocks-gxJFXGmD.js} +1 -1
- package/dist/assets/{lottie-Bj5-YO-I.js → lottie-C_9J9UHb.js} +1 -1
- package/dist/assets/{mui-iy0jwx3V.js → mui-ByyD63hs.js} +1 -1
- package/dist/assets/{react-Dn0LFr3R.js → react-BMHG-xA_.js} +1 -1
- package/dist/assets/{react-DzPc0gFf.js → react-BaR0DRi7.js} +1 -1
- package/dist/assets/{react-C-tjMDYe.js → react-BbviPPBQ.js} +2 -2
- package/dist/assets/{react-BwpxuvU5.js → react-Brt2ASi1.js} +1 -1
- package/dist/assets/{react-uuVhl-Lk.js → react-D0IMGhI5.js} +1 -1
- package/dist/assets/{react-DIvc8YGJ.js → react-DcgSgC7e.js} +1 -1
- package/dist/assets/{react-CaYQcHse.js → react-JI780Gj1.js} +1 -1
- package/dist/assets/{react-CxnkHRqu.js → react-mN4_kUw9.js} +1 -1
- package/dist/assets/{recharts-geaCQK6J.js → recharts-CTh9l4g3.js} +1 -1
- package/dist/assets/{sentry-DJAOl7Gy.js → sentry-VyC48rhk.js} +1 -1
- package/dist/assets/{url-Dx7kzWip.js → url-Czq22X10.js} +1 -1
- package/dist/assets/{url-zXgeg6Qx.js → url-WzvL1SGM.js} +1 -1
- package/dist/assets/{utils-D0ninCFD.js → utils-C9w-hcJw.js} +1 -1
- package/dist/assets/{zeni-epic-state-DBiKHAAi.js → zeni-epic-state-CI0C0wuD.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/SignInScreen-Db4O7wnp.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-
|
|
1
|
+
import{j as s}from"./liveblocks-gxJFXGmD.js";import{u as j,P as v}from"./ScreenRoutes-BWznuot5.js";import{a as f}from"./sentry-VyC48rhk.js";import{i as P,n as U,g as m,h as R,k as C,l as I,N as T}from"./core-CufZxI47.js";import{Oz as N,OA as k,ks as E,OB as M,la as O,ld as L,k$ as $,OC as _,OD as B,l7 as F,l3 as q}from"./zeni-epic-state-CI0C0wuD.js";import{z as Q,_ as V,c as J,n as Z,a0 as G,f as H,Q as K,a as W,g as X,h as Y}from"./index-Dipv4qjf.js";import{n as ee}from"./mui-ByyD63hs.js";import"./recharts-CTh9l4g3.js";import"./analyticsHelper-CbZ2OGis.js";import"./utils-C9w-hcJw.js";import"./empty-4dMZl8Ki.js";import"./index-DX_sJwNe.js";import"./url-Czq22X10.js";import"./index-DTuyAhmh.js";import"./analytics-JGp-OcCZ.js";import"./lottie-C_9J9UHb.js";import"./lexical-CpiGfyON.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]="e76896cc-fe0b-4580-8cbf-f7aced73cb10",a._sentryDebugIdIdentifier="sentry-dbid-e76896cc-fe0b-4580-8cbf-f7aced73cb10")}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(_(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=R(te,ne)(G),oe=ee.div`
|
|
2
2
|
padding: ${Z.sp5};
|
|
3
3
|
text-align: center;
|
|
4
4
|
`;function re(){const a=P(),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(L({tenantId:o,tenantEmailDomain:e,update:{...r,updatedByName:i}}))},onAnalyse:e=>{h(o=>new Set(o).add(e)),t(O(e))},onDownloadReport:()=>{const e=M(n.rows),o=d?.userId??"",r=d?.zeniSessionId??"",i=b??"";if(!o||!r||!i)return;const x=encodeURIComponent(JSON.stringify(e)),D=`${V}/tableDownload?query=${x}`;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),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 w=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:w})}function ze(){const{isAllowed:a,isLoading:t}=j();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(T,{to:"/management",replace:!0})})})}export{ze as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,b as a}from"./sentry-
|
|
1
|
+
import{a as h,b as a}from"./sentry-VyC48rhk.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="6d600b3f-6c40-4b9e-8892-371ff81f1c30",t._sentryDebugIdIdentifier="sentry-dbid-6d600b3f-6c40-4b9e-8892-371ff81f1c30")}catch{}})();const c="64px",f={},k=({src:t,light:n,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:u})=>{const[p,o]=h.useState(null);h.useEffect(()=>{!t||!n||!r||_({src:t,light:n,oEmbedUrl:r})},[t,n,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(a.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(f[e]){o(f[e]);return}o(null);const b=await(await fetch(E.replace("{url}",e))).json();if(b.thumbnail_url){const g=b.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),f[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=a.isValidElement(n),y={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:p&&!l?`url(${p})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...y},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:l?"absolute":void 0,...y},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=a.createElement("div",{style:d.shadow,className:"react-player__shadow"},a.createElement("div",{style:d.playIcon,className:"react-player__play-icon"}));return a.createElement("div",{style:d.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...u?{"aria-label":u}:{}},l?n:null,m||x)};var S=k;export{S as default};
|