@zeniai/web-cockpit-ui 2.1.15-qa → 2.1.16-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-CekbH0FJ.js → CreditAgentRoutes-BLcXdRVz.js} +1 -1
- package/dist/assets/{Preview-DM7IIBU6.js → Preview-BJaJHIXt.js} +1 -1
- package/dist/assets/{ScreenRoutes-RW5brnMG.js → ScreenRoutes-3V2SStsc.js} +45 -45
- package/dist/assets/SignInScreen-CRmXe9cM.js +1 -0
- package/dist/assets/{analytics-kAYocZaW.js → analytics-C6l-Q7hS.js} +1 -1
- package/dist/assets/{analyticsHelper-BOT8o3GB.js → analyticsHelper-DHKNXkPP.js} +1 -1
- package/dist/assets/{core-wqGTKdrX.js → core-BCd_ZyoB.js} +1 -1
- package/dist/assets/{dash.all.min-Cn4PvBV0.js → dash.all.min-BOhncwd2.js} +1 -1
- package/dist/assets/{empty-WDop3RVk.js → empty-Ct0fwwL7.js} +1 -1
- package/dist/assets/{empty-CwGlmcKm.js → empty-vdMDUeli.js} +1 -1
- package/dist/assets/{epic-Gy06qdPL.js → epic-B6XtJw_d.js} +1 -1
- package/dist/assets/{index-CyMLHwJK.js → index-BiGaMeAe.js} +1 -1
- package/dist/assets/{index-mNRV3r4z.js → index-BrCCqZVZ.js} +1 -1
- package/dist/assets/{index-DtWzJqqQ.js → index-Bu_75_sr.js} +1 -1
- package/dist/assets/{index-K2_g9h_M.js → index-Ce6E_loW.js} +1 -1
- package/dist/assets/{index-BGfA7Kc0.js → index-DoCHU-sT.js} +78 -82
- package/dist/assets/{index-BI6Um_JJ.js → index-EIlRPZNs.js} +2 -2
- package/dist/assets/{index-C0tWJmU-.js → index-GpDqG9_Q.js} +1 -1
- package/dist/assets/{lexical-BsvjAL9o.js → lexical-XhFLmCS2.js} +1 -1
- package/dist/assets/{liveblocks-D5W-062e.js → liveblocks-CkQleBF0.js} +1 -1
- package/dist/assets/{lottie-DH_vLz4X.js → lottie-CGfUM9CX.js} +1 -1
- package/dist/assets/{mui-BbFnaP9e.js → mui-gX6u_tJh.js} +1 -1
- package/dist/assets/{react-n57rvqoQ.js → react-AT_rYS3W.js} +2 -2
- package/dist/assets/{react-DLoYBZ1e.js → react-BCnpGuKu.js} +1 -1
- package/dist/assets/{react-BMV2EN8L.js → react-CDHxYwMh.js} +1 -1
- package/dist/assets/{react-DJkDinGk.js → react-CK_9ODZn.js} +1 -1
- package/dist/assets/{react-DlPueuPX.js → react-Cocuj3BZ.js} +1 -1
- package/dist/assets/{react-Dj2_kzXl.js → react-DMnahpGy.js} +1 -1
- package/dist/assets/{react-C7Uhow7J.js → react-DwzBaEa0.js} +1 -1
- package/dist/assets/{react-BGcISOeu.js → react-nOec6Y7h.js} +1 -1
- package/dist/assets/{recharts-Dq7hBBop.js → recharts-BtWQrSXM.js} +1 -1
- package/dist/assets/{sentry-DUrdKjEd.js → sentry-D1epAy3z.js} +1 -1
- package/dist/assets/{url-C8mKBxbk.js → url-AvWe-SCE.js} +1 -1
- package/dist/assets/{url-De3yKBys.js → url-r7bvwIus.js} +1 -1
- package/dist/assets/{utils-9fW_hk2t.js → utils-BiOup2QC.js} +1 -1
- package/dist/assets/{zeni-epic-state-B8X0A8aO.js → zeni-epic-state-BsCurjLB.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/SignInScreen-DCuHD6gU.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-
|
|
1
|
+
import{j as r}from"./liveblocks-CkQleBF0.js";import{u as k,P as v}from"./ScreenRoutes-3V2SStsc.js";import{a as f}from"./sentry-D1epAy3z.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-BCd_ZyoB.js";import{KB as R,KC as N,kk as E,KD as M,l2 as L,l5 as $,kT as _,KE as K,KF as B,k$ as F,kX as O}from"./zeni-epic-state-BsCurjLB.js";import{z as X,_ as q,i as V,j as J,a0 as Z,s as G,X as H,b as Q,g as W,h as Y}from"./index-DoCHU-sT.js";import{n as ee}from"./mui-gX6u_tJh.js";import"./recharts-BtWQrSXM.js";import"./analyticsHelper-DHKNXkPP.js";import"./utils-BiOup2QC.js";import"./empty-vdMDUeli.js";import"./index-BrCCqZVZ.js";import"./url-r7bvwIus.js";import"./index-GpDqG9_Q.js";import"./analytics-C6l-Q7hS.js";import"./lottie-CGfUM9CX.js";import"./lexical-XhFLmCS2.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]="88a1cd71-7910-445f-9a4b-9254367ae81f",a._sentryDebugIdIdentifier="sentry-dbid-88a1cd71-7910-445f-9a4b-9254367ae81f")}catch{}})();function te(a,t){return{headerData:{allTabOptions:G,selectedTabOption:H("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=W(n);Q.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(O())},onSaveMacro:n=>{a(F(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(K(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=U(te,ne)(Z),oe=ee.div`
|
|
2
2
|
padding: ${J.sp5};
|
|
3
3
|
text-align: center;
|
|
4
4
|
`;function se(){const a=P(),t=T(),n=m(R),g=m(N),[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=X.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,z=f.useMemo(()=>({onFetch:()=>{t(_())},onUpdateProfile:(e,o,s)=>{const i=s.updatedByName??A;t($({tenantId:o,tenantEmailDomain:e,update:{...s,updatedByName:i}}))},onAnalyse:e=>{h(o=>new Set(o).add(e)),t(L(e))},onDownloadReport:()=>{const e=M(n.rows),o=d?.userId??"",s=d?.zeniSessionId??"",i=b??"";if(!o||!s||!i)return;const x=encodeURIComponent(JSON.stringify(e)),D=`${q}/tableDownload?query=${x}`;fetch(D,{headers:{"zeni-user-id":o,"zeni-session-id":s,"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 s=n.rows.find(i=>i.tenantId===o);s!=null&&s.isAnalyzing?p.current.add(o):s!=null&&!s.isAnalyzing&&p.current.has(o)&&(e.add(o),p.current.delete(o))}e.size>0&&h(o=>{const s=new Set(o);for(const i of e)s.delete(i);return s})},[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?r.jsx(oe,{children:V.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):r.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:z,cardProfilesData:w})}function ze(){const{isAllowed:a,isLoading:t}=k();return t?null:a?r.jsx(C,{children:r.jsx(I,{path:"/*",element:r.jsx(v,{element:r.jsx(se,{})})})}):r.jsx(C,{children:r.jsx(I,{path:"/*",element:r.jsx(j,{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-D1epAy3z.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};
|