@zeniai/web-cockpit-ui 2.0.68-qa → 2.0.69-delhi
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-Bss0oAp2.js +4 -0
- package/dist/assets/{Preview-cMRxJmqE.js → Preview-DM76KDnJ.js} +1 -1
- package/dist/assets/{ScreenRoutes-6LFj7gBk.js → ScreenRoutes-D98UhWaJ.js} +68 -68
- package/dist/assets/SignInScreen-Z4wgpZw_.js +1 -0
- package/dist/assets/{analytics-229JjXE6.js → analytics-DJ4FX9kQ.js} +1 -1
- package/dist/assets/{analyticsHelper-D-XA-G1C.js → analyticsHelper-DS7VLE8l.js} +1 -1
- package/dist/assets/{core-DwwJdmq2.js → core-gZ7hj96N.js} +1 -1
- package/dist/assets/{dash.all.min-MYR0xtDJ.js → dash.all.min-B73S0-uc.js} +1 -1
- package/dist/assets/{empty-B8r9jhMw.js → empty-D-Qsae6i.js} +1 -1
- package/dist/assets/{empty-ffUYdJQE.js → empty-DA7ipIPo.js} +1 -1
- package/dist/assets/epic-CHC-th_Q.js +2 -0
- package/dist/assets/{index-C31HTxuh.js → index-BAUj-_Yv.js} +1 -1
- package/dist/assets/{index-_Qzdiihj.js → index-Bgil84Dx.js} +2 -2
- package/dist/assets/{index-BF55dCh7.js → index-CP59VzEk.js} +1 -1
- package/dist/assets/{index-C_e4ap2P.js → index-CTinbhBD.js} +1 -1
- package/dist/assets/{index-C1a3CnIO.js → index-D7iF3Kof.js} +16109 -11899
- package/dist/assets/{index-D3Rm2er6.js → index-DS2vv-Oo.js} +1 -1
- package/dist/assets/{index-DaNHyhG6.js → index-FJiq0laV.js} +1 -1
- package/dist/assets/{index-xQ8260uf.css → index-UA2r-eW3.css} +1 -1
- package/dist/assets/{lexical-DwzqW6no.js → lexical-FqqX_Njt.js} +1 -1
- package/dist/assets/{liveblocks-B_RPwuYW.js → liveblocks-DkPu4dTh.js} +1 -1
- package/dist/assets/{lottie-oGpegJdu.js → lottie-BDYVFq95.js} +1 -1
- package/dist/assets/{mui-BLeq-mRB.js → mui-CTL-C42X.js} +1 -1
- package/dist/assets/{react-BwbFlZCK.js → react-1P1gtBpH.js} +1 -1
- package/dist/assets/{react-Dof1fMh-.js → react-2zUM3zq0.js} +1 -1
- package/dist/assets/{react-CrzMGJ8m.js → react-BfEUUTSS.js} +1 -1
- package/dist/assets/{react-CEcgrBUb.js → react-CKW3w4-k.js} +1 -1
- package/dist/assets/{react-DuQIE3G2.js → react-CQpWmI9s.js} +1 -1
- package/dist/assets/{react-BSRcAyUN.js → react-YIsHTz0r.js} +2 -2
- package/dist/assets/{react-BjtgV0Hs.js → react-cguxG4f8.js} +1 -1
- package/dist/assets/{react-C9ZxUKN_.js → react-lIVkBuBD.js} +1 -1
- package/dist/assets/{recharts-Dq1oaXt3.js → recharts-I8caMN-U.js} +1 -1
- package/dist/assets/{sentry-CiIWUpL-.js → sentry-C1m9DZfz.js} +1 -1
- package/dist/assets/{url-Bk7oZDyA.js → url-CB5fHZr3.js} +1 -1
- package/dist/assets/{url-CE0fqVqa.js → url-Cr5Khc4e.js} +1 -1
- package/dist/assets/{utils-BGNG5TKu.js → utils-BJLeysCS.js} +1 -1
- package/dist/assets/{zeni-epic-state-Dscro4pQ.js → zeni-epic-state-C4BJPXfY.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-DBBuQf26.js +0 -4
- package/dist/assets/SignInScreen-D0qn3KYD.js +0 -1
- package/dist/assets/epic-D3R_12hU.js +0 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{j as s}from"./liveblocks-DkPu4dTh.js";import{u as U,P}from"./ScreenRoutes-D98UhWaJ.js";import{a as f}from"./sentry-C1m9DZfz.js";import{i as k,n as v,g as m,h as T,k as C,l as I,N as j}from"./core-gZ7hj96N.js";import{JM as N,JN as R,k8 as M,JO as E,kT as J,kW as L,kI as $,JP as _,JQ as O,kQ as B,kM as F}from"./zeni-epic-state-C4BJPXfY.js";import{z as q,$ as Q,D as V,f as W,a0 as Z,U as G,J as H,b as K,g as X,h as Y}from"./index-D7iF3Kof.js";import{n as ee}from"./mui-CTL-C42X.js";import"./recharts-I8caMN-U.js";import"./analyticsHelper-DS7VLE8l.js";import"./utils-BJLeysCS.js";import"./empty-D-Qsae6i.js";import"./index-CP59VzEk.js";import"./url-Cr5Khc4e.js";import"./index-DS2vv-Oo.js";import"./analytics-DJ4FX9kQ.js";import"./lottie-BDYVFq95.js";import"./lexical-FqqX_Njt.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]="5b0f68fb-61ce-4538-a991-646829c00b2a",a._sentryDebugIdIdentifier="sentry-dbid-5b0f68fb-61ce-4538-a991-646829c00b2a")}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=X(n);K.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(F())},onSaveMacro:n=>{a(B(n))},onResetSaveMacro:()=>{a(O())},onUIStateChange:n=>{a(_(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=T(te,ne)(Z),oe=ee.div`
|
|
2
|
+
padding: ${W.sp5};
|
|
3
|
+
text-align: center;
|
|
4
|
+
`;function re(){const a=k(),t=v(),n=m(N),g=m(R),[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(M())},[t,y]);const d=q.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,w=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(J(e))},onDownloadReport:()=>{const e=E(n.rows),o=d?.userId??"",r=d?.zeniSessionId??"",i=b??"";if(!o||!r||!i)return;const x=encodeURIComponent(JSON.stringify(e)),D=`${Q}/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 z=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:V.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:w,cardProfilesData:z})}function we(){const{isAllowed:a,isLoading:t}=U();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,b as a}from"./sentry-
|
|
1
|
+
import{a as h,b as a}from"./sentry-C1m9DZfz.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};
|