@zeniai/web-cockpit-ui 2.1.59-qa → 2.1.60-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.
- package/dist/assets/CreditAgentRoutes-YHg8tlT5.js +4 -0
- package/dist/assets/{Preview-DpbeYg-t.js → Preview-CB9VFSFG.js} +1 -1
- package/dist/assets/{ScreenRoutes-Ce7SHgVV.js → ScreenRoutes-Crh4zZmR.js} +84 -84
- package/dist/assets/SignInScreen-cP9M-qLm.js +1 -0
- package/dist/assets/{analytics-D7e-q2n2.js → analytics-CJ-99BAi.js} +1 -1
- package/dist/assets/{analyticsHelper-C6cyuG73.js → analyticsHelper-4nr13OOU.js} +1 -1
- package/dist/assets/{core-BXBxaRgZ.js → core-ae6C9SFq.js} +1 -1
- package/dist/assets/{dash.all.min-CVO4pgzi.js → dash.all.min-13l2blxG.js} +1 -1
- package/dist/assets/{empty-Bzq42jB7.js → empty-D71SaEFO.js} +1 -1
- package/dist/assets/{empty-D0dGHIL6.js → empty-Jr91gKco.js} +1 -1
- package/dist/assets/epic-KlDJxmoM.js +2 -0
- package/dist/assets/{index-3SjgOYGo.js → index-B4u1MkFA.js} +2 -2
- package/dist/assets/{index-Dt5jY2Gg.js → index-BztSVodx.js} +12616 -12353
- package/dist/assets/{index-CtI2lwXQ.js → index-CG3UcP3-.js} +1 -1
- package/dist/assets/{index-hdHVxsxI.js → index-CeHu4s1K.js} +1 -1
- package/dist/assets/{index-V6D5uU1v.js → index-D-VCqVRW.js} +1 -1
- package/dist/assets/{index-Deo9uVJE.js → index-Dqddkqe6.js} +1 -1
- package/dist/assets/{index-Q7DUUVDs.js → index-KlC86Kqr.js} +1 -1
- package/dist/assets/{lexical-B8fVt5Gm.js → lexical-BGFLsWHJ.js} +1 -1
- package/dist/assets/{liveblocks-DjVQoSWf.js → liveblocks-Bn7noxJp.js} +1 -1
- package/dist/assets/{lottie-D8k5vd9Q.js → lottie-D0-6TaDY.js} +1 -1
- package/dist/assets/{mui-Dpe9nqK2.js → mui-ch1YjYXp.js} +1 -1
- package/dist/assets/{react-CoK5N4qi.js → react-3FoSCb7P.js} +2 -2
- package/dist/assets/{react-Dq0ORI2h.js → react-BH3Hiwdz.js} +1 -1
- package/dist/assets/{react-DrUYQ1aO.js → react-BrHkJWmB.js} +1 -1
- package/dist/assets/{react-CC-vl3gX.js → react-CHVPl2RP.js} +1 -1
- package/dist/assets/{react--aYO8n1z.js → react-D8ni32uC.js} +1 -1
- package/dist/assets/{react-IbkjfyT8.js → react-D9mgTUUP.js} +1 -1
- package/dist/assets/{react-CStejISp.js → react-JHZqSGj_.js} +1 -1
- package/dist/assets/{react-N708RHsB.js → react-yHcvOV9J.js} +1 -1
- package/dist/assets/{recharts-B9kgZTL1.js → recharts-B-o5hhzQ.js} +1 -1
- package/dist/assets/{sentry-CaR4_S4M.js → sentry-D8X0sEIS.js} +1 -1
- package/dist/assets/{url-Dn67HTrv.js → url-CimB9UBp.js} +1 -1
- package/dist/assets/{url-DtpZRq8Z.js → url-DYs7Y8Zy.js} +1 -1
- package/dist/assets/{utils-Bgo75Q5v.js → utils-Bi5Qv40_.js} +1 -1
- package/dist/assets/{zeni-epic-state-DLZ6zLs_.js → zeni-epic-state-CnTBBrBI.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-C06gRcQN.js +0 -4
- package/dist/assets/SignInScreen-CNbKgMo4.js +0 -1
- package/dist/assets/epic-DJBeqo3D.js +0 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{j as s}from"./liveblocks-Bn7noxJp.js";import{u as D,P as v}from"./ScreenRoutes-Crh4zZmR.js";import{a as f}from"./sentry-D8X0sEIS.js";import{i as U,n as j,g as m,h as R,k as C,l as I,N as T}from"./core-ae6C9SFq.js";import{Pn as N,Po as k,kB as E,Pp as M,lr as L,lu as _,lg as $,Pq as O,Pr as B,lo as q,lk as F}from"./zeni-epic-state-CnTBBrBI.js";import{z as K,_ as V,O as J,f as Z,a0 as G,K as H,s as Q,c as W,g as X,h as Y}from"./index-BztSVodx.js";import{n as ee}from"./mui-ch1YjYXp.js";import"./recharts-B-o5hhzQ.js";import"./analyticsHelper-4nr13OOU.js";import"./utils-Bi5Qv40_.js";import"./empty-D71SaEFO.js";import"./index-D-VCqVRW.js";import"./url-CimB9UBp.js";import"./index-CeHu4s1K.js";import"./analytics-CJ-99BAi.js";import"./lottie-D0-6TaDY.js";import"./lexical-BGFLsWHJ.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]="2608b4a2-76d4-4bd0-81f0-ffd43bf6dd9e",a._sentryDebugIdIdentifier="sentry-dbid-2608b4a2-76d4-4bd0-81f0-ffd43bf6dd9e")}catch{}})();function te(a,t){return{headerData:{allTabOptions:H,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(F())},onSaveMacro:n=>{a(q(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(O(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=R(te,ne)(G),oe=ee.div`
|
|
2
|
+
padding: ${Z.sp5};
|
|
3
|
+
text-align: center;
|
|
4
|
+
`;function re(){const a=U(),t=j(),n=m(N),g=m(k),[d,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 c=K.getSignedInUser(),A=c!=null&&[c.firstName,c.lastName].filter(Boolean).join(" ")||void 0,P=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=c?.userId??"",r=c?.zeniSessionId??"",i=b??"";if(!o||!r||!i)return;const z=encodeURIComponent(JSON.stringify(e)),x=`${V}/tableDownload?query=${z}`;fetch(x,{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,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?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,d]);const w=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:J.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:P,cardProfilesData:w})}function Pe(){const{isAllowed:a,isLoading:t}=D();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{Pe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,R as n}from"./sentry-
|
|
1
|
+
import{a as h,R as n}from"./sentry-D8X0sEIS.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};
|