@zeniai/web-cockpit-ui 2.2.45-qa → 2.2.46-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-B2x4Vjsg.js → CreditAgentRoutes-87Pk_45A.js} +2 -2
- package/dist/assets/{Preview-jEqeJgiS.js → Preview-CGj3P1jP.js} +1 -1
- package/dist/assets/{ScreenRoutes-DePceo0X.js → ScreenRoutes-DhfColzV.js} +73 -73
- package/dist/assets/SignInScreen-CmjHFAC7.js +1 -0
- package/dist/assets/{analytics-Bs0jyeDf.js → analytics-nq0TtytR.js} +1 -1
- package/dist/assets/analyticsHelper-C29Ld-wE.js +1 -0
- package/dist/assets/{core-Vh79mQi-.js → core-m3VYRY_7.js} +1 -1
- package/dist/assets/{dash.all.min--m17HfJN.js → dash.all.min-DcWaGJ-z.js} +1 -1
- package/dist/assets/{empty-Cr6V-lcK.js → empty-zOcOn9Ee.js} +1 -1
- package/dist/assets/{empty-rKLdVfAD.js → empty-zPCOAbji.js} +1 -1
- package/dist/assets/epic-CNWRSDO7.js +2 -0
- package/dist/assets/{index-Dj6sDa0e.js → index-B3RVx9pM.js} +1 -1
- package/dist/assets/{index-L8muUP22.js → index-BFFJqvOL.js} +2 -2
- package/dist/assets/{index-Ba5J2L-e.js → index-C1qzuL2m.js} +7591 -7514
- package/dist/assets/{index-BHjhplCu.js → index-COuyuWJA.js} +1 -1
- package/dist/assets/{index-B_PNJgn0.js → index-CqMkr8zB.js} +1 -1
- package/dist/assets/{index-DWf0oYzk.js → index-QITcPMaM.js} +1 -1
- package/dist/assets/{index-BUH8JQ8X.js → index-ncxiPGEr.js} +1 -1
- package/dist/assets/{lexical-BDZnx4RH.js → lexical-CuMKiWYI.js} +1 -1
- package/dist/assets/{liveblocks-DtcDYudf.js → liveblocks-CchkA3bw.js} +1 -1
- package/dist/assets/{lottie-DXHGG-jg.js → lottie-B6aVMurr.js} +1 -1
- package/dist/assets/{mui-f6Dp32oc.js → mui-Cu_VyyT2.js} +1 -1
- package/dist/assets/{react-Cs3s8bnV.js → react-BqgbUvZF.js} +1 -1
- package/dist/assets/{react-BHtPgLZY.js → react-BvRkDqzo.js} +2 -2
- package/dist/assets/{react-C-Ju221b.js → react-CP15xXH7.js} +1 -1
- package/dist/assets/{react-BaGSe7PJ.js → react-CWh5qOHc.js} +1 -1
- package/dist/assets/{react-C-IOLXCW.js → react-OZzbuwIW.js} +1 -1
- package/dist/assets/{react-Bro02Anx.js → react-bcy-5r1Z.js} +1 -1
- package/dist/assets/{react-pro438Ui.js → react-qCp9XP99.js} +1 -1
- package/dist/assets/{react-B1zzD3Qi.js → react-vL5aznKY.js} +1 -1
- package/dist/assets/{recharts-C1pWIeFp.js → recharts-Wo60fZfy.js} +1 -1
- package/dist/assets/{sentry-BmC9_S_j.js → sentry-BsnydYBh.js} +1 -1
- package/dist/assets/{url-C8Vc2sb2.js → url-CENqTQ9f.js} +1 -1
- package/dist/assets/{url-DbEC-Cd4.js → url-DGpTS5yN.js} +1 -1
- package/dist/assets/{utils-BY4fTmQa.js → utils-Cx3_3V6b.js} +1 -1
- package/dist/assets/{zeni-epic-state-DDYX_3Yy.js → zeni-epic-state--x9oSMyd.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/SignInScreen-BiNRS40G.js +0 -1
- package/dist/assets/analyticsHelper-BcHO8zO-.js +0 -1
- package/dist/assets/epic-foRRqnAF.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-
|
|
1
|
+
import{j as s}from"./liveblocks-CchkA3bw.js";import{u as v,P}from"./ScreenRoutes-DhfColzV.js";import{a as u}from"./sentry-BsnydYBh.js";import{i as U,n as R,g as m,h as T,k as C,l as I,N as j}from"./core-m3VYRY_7.js";import{S5 as N,S6 as k,lu as E,S7 as M,mk as L,mn as _,m9 as $,S8 as O,S9 as B,mh as F,md as q}from"./zeni-epic-state--x9oSMyd.js";import{z as V,_ as G,G as J,k as Z,a0 as H,c as K,w as Q,d as W,g as X,e as Y}from"./index-C1qzuL2m.js";import{n as ee}from"./mui-Cu_VyyT2.js";import"./recharts-Wo60fZfy.js";import"./analyticsHelper-C29Ld-wE.js";import"./utils-Cx3_3V6b.js";import"./empty-zPCOAbji.js";import"./index-COuyuWJA.js";import"./url-CENqTQ9f.js";import"./index-CqMkr8zB.js";import"./analytics-nq0TtytR.js";import"./lottie-B6aVMurr.js";import"./lexical-CuMKiWYI.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]="e66756d1-b6d5-4ba7-b821-d7c434880572",a._sentryDebugIdIdentifier="sentry-dbid-e66756d1-b6d5-4ba7-b821-d7c434880572")}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(q())},onSaveMacro:n=>{a(F(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(O(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=T(te,ne)(H),oe=ee.div`
|
|
2
2
|
padding: ${Z.sp5};
|
|
3
3
|
text-align: center;
|
|
4
|
-
`;function re(){const a=U(),t=R(),n=m(N),g=m(k),[c,h]=
|
|
4
|
+
`;function re(){const a=U(),t=R(),n=m(N),g=m(k),[c,h]=u.useState(new Set),S=u.useRef(new Set),b=m(e=>e.tenantState.currentTenantId),y=m(e=>e.companyViewState.zeniUsers.fetchState);u.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=u.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 x=encodeURIComponent(JSON.stringify(e)),D=`${G}/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 f=await l.text();throw new Error(`Download failed: ${l.status} ${f}`)}return l.blob()}).then(l=>{const f=URL.createObjectURL(l),p=document.createElement("a");p.href=f,p.download=`${e.file_name}.xlsx`,p.click(),URL.revokeObjectURL(f)}).catch(()=>{})}}),[t,A,d,b,n.rows]);u.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 z=u.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:z})}function we(){const{isAllowed:a,isLoading:t}=v();return t?null:a?s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(P,{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-
|
|
1
|
+
import{a as h,R as n}from"./sentry-BsnydYBh.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};
|