@zeniai/web-cockpit-ui 2.2.46-qa → 2.2.47-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-tR27gzWg.js +4 -0
- package/dist/assets/{Preview-CGj3P1jP.js → Preview-C6Zrf4qj.js} +1 -1
- package/dist/assets/{ScreenRoutes-1VwR_gaT.js → ScreenRoutes-DIXvaozw.js} +62 -62
- package/dist/assets/SignInScreen-aeoYHh61.js +1 -0
- package/dist/assets/{analytics-nq0TtytR.js → analytics-BL9_8m2A.js} +1 -1
- package/dist/assets/{analyticsHelper-B_UKvSGZ.js → analyticsHelper-BcAzp2ny.js} +1 -1
- package/dist/assets/{core-m3VYRY_7.js → core-Da9pmOZx.js} +1 -1
- package/dist/assets/{dash.all.min-DcWaGJ-z.js → dash.all.min-DZqQ7CZE.js} +1 -1
- package/dist/assets/{empty-zPCOAbji.js → empty-BAVYhdGn.js} +1 -1
- package/dist/assets/{empty-zOcOn9Ee.js → empty-C7AeqkeU.js} +1 -1
- package/dist/assets/epic-D15lDrzg.js +2 -0
- package/dist/assets/{index-COuyuWJA.js → index-C-Pi7dYk.js} +1 -1
- package/dist/assets/{index-ncxiPGEr.js → index-CFbPmJZP.js} +1 -1
- package/dist/assets/{index-CqMkr8zB.js → index-CiFtDuom.js} +1 -1
- package/dist/assets/{index-B3RVx9pM.js → index-CnY4gjR5.js} +1 -1
- package/dist/assets/{index-DDVy3Hmz.js → index-DCuVhBEn.js} +8372 -8372
- package/dist/assets/{index-QITcPMaM.js → index-I5Ee0Y1o.js} +1 -1
- package/dist/assets/{index-BFFJqvOL.js → index-i9eUvddk.js} +2 -2
- package/dist/assets/{lexical-CuMKiWYI.js → lexical-NiqoO08H.js} +1 -1
- package/dist/assets/{liveblocks-CchkA3bw.js → liveblocks-BJ_lV1e4.js} +1 -1
- package/dist/assets/{lottie-B6aVMurr.js → lottie-bB5WcnIF.js} +1 -1
- package/dist/assets/{mui-Cu_VyyT2.js → mui-C6HuK6C_.js} +1 -1
- package/dist/assets/{react-vL5aznKY.js → react-BbSvuBpu.js} +1 -1
- package/dist/assets/{react-OZzbuwIW.js → react-BoDnXLZc.js} +1 -1
- package/dist/assets/{react-CWh5qOHc.js → react-C4XdKCfF.js} +1 -1
- package/dist/assets/{react-bcy-5r1Z.js → react-C73ufqmp.js} +1 -1
- package/dist/assets/{react-qCp9XP99.js → react-C8W6M5c7.js} +1 -1
- package/dist/assets/{react-CP15xXH7.js → react-DY7L_gQ8.js} +1 -1
- package/dist/assets/{react-BqgbUvZF.js → react-Ndz0t6Yy.js} +1 -1
- package/dist/assets/{react-BvRkDqzo.js → react-a5ApXt6l.js} +2 -2
- package/dist/assets/{recharts-Wo60fZfy.js → recharts-CqdBpZ7x.js} +1 -1
- package/dist/assets/{sentry-BsnydYBh.js → sentry-B8S0muDJ.js} +1 -1
- package/dist/assets/{url-CENqTQ9f.js → url-Cqfn3IBg.js} +1 -1
- package/dist/assets/{url-DGpTS5yN.js → url-YFPK-4bb.js} +1 -1
- package/dist/assets/{utils-Cx3_3V6b.js → utils-DNmapDkl.js} +1 -1
- package/dist/assets/{zeni-epic-state--x9oSMyd.js → zeni-epic-state-q0fPItjR.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/CreditAgentRoutes-Uc2I28Tf.js +0 -4
- package/dist/assets/SignInScreen-BVp41baX.js +0 -1
- package/dist/assets/epic-CNWRSDO7.js +0 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{j as s}from"./liveblocks-BJ_lV1e4.js";import{u as v,P}from"./ScreenRoutes-DIXvaozw.js";import{a as f}from"./sentry-B8S0muDJ.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-Da9pmOZx.js";import{S7 as N,S8 as k,lu as E,S9 as M,mk as L,mn as $,m9 as O,Sa as _,Sb as B,mh as F,md as q}from"./zeni-epic-state-q0fPItjR.js";import{a as V,Z,G,k as J,a0 as H,c as K,w as Q,d as W,g as X,e as Y}from"./index-DCuVhBEn.js";import{n as ee}from"./mui-C6HuK6C_.js";import"./recharts-CqdBpZ7x.js";import"./analyticsHelper-BcAzp2ny.js";import"./utils-DNmapDkl.js";import"./empty-BAVYhdGn.js";import"./index-C-Pi7dYk.js";import"./url-Cqfn3IBg.js";import"./index-CiFtDuom.js";import"./analytics-BL9_8m2A.js";import"./lottie-bB5WcnIF.js";import"./lexical-NiqoO08H.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]="94b92ed7-d9f6-4613-b640-ff4d8a5fd954",a._sentryDebugIdIdentifier="sentry-dbid-94b92ed7-d9f6-4613-b640-ff4d8a5fd954")}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),d=X(n);W.trackCockpitTabClicked(d),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=T(te,ne)(H),oe=ee.div`
|
|
2
|
+
padding: ${J.sp5};
|
|
3
|
+
text-align: center;
|
|
4
|
+
`;function re(){const a=U(),t=R(),n=m(N),g=m(k),[d,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 c=V.getSignedInUser(),A=c!=null&&[c.firstName,c.lastName].filter(Boolean).join(" ")||void 0,w=f.useMemo(()=>({onFetch:()=>{t(O())},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=c?.userId??"",r=c?.zeniSessionId??"",i=b??"";if(!o||!r||!i)return;const z=encodeURIComponent(JSON.stringify(e)),D=`${Z}/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,c,b,n.rows]);f.useEffect(()=>{if(d.size===0)return;const e=new Set;for(const o of d){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,d]);const x=f.useMemo(()=>({fetchState:n.fetchStatus.fetchState,rows:n.rows.map(e=>e.isAnalyzing||e.tenantId!=null&&d.has(e.tenantId)?{...e,isAnalyzing:!0}:e),uiState:n.uiState}),[n,d]);return c==null?s.jsx(oe,{children:G.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:w,cardProfilesData:x})}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-B8S0muDJ.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};
|