@zeniai/web-cockpit-ui 2.1.21-qa → 2.1.22-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-3PzBVyfK.js → CreditAgentRoutes-BL8EyxM1.js} +1 -1
- package/dist/assets/{Preview-BGxCnC4u.js → Preview-CgkNDipn.js} +1 -1
- package/dist/assets/{ScreenRoutes-TCTVpiPP.js → ScreenRoutes-BJHxjxsX.js} +45 -45
- package/dist/assets/SignInScreen-3hGTGqtq.js +1 -0
- package/dist/assets/{analytics-C0bz54pk.js → analytics-D6piKHLS.js} +1 -1
- package/dist/assets/{analyticsHelper-BkRlYgCM.js → analyticsHelper-CiCwaTM6.js} +1 -1
- package/dist/assets/{core-PLkhR8GQ.js → core-CRhCqIlh.js} +1 -1
- package/dist/assets/{dash.all.min-B016I0lZ.js → dash.all.min-CtdjBEej.js} +1 -1
- package/dist/assets/{empty-DKYcALi1.js → empty-B0hDzJSP.js} +1 -1
- package/dist/assets/{empty-DP1wAtuY.js → empty-Oc-i156b.js} +1 -1
- package/dist/assets/{epic-DtwtWCxR.js → epic-D6Fx4wgN.js} +1 -1
- package/dist/assets/{index-BzecKbqO.js → index-8gdhcKd2.js} +1 -1
- package/dist/assets/{index-BBLlVUWO.js → index-BE6PHtUD.js} +1 -1
- package/dist/assets/{index-CVrjujBz.js → index-CZEJ8oSC.js} +1 -1
- package/dist/assets/{index-DdzUTO9o.js → index-Ci1Zzrp1.js} +1 -1
- package/dist/assets/{index-CFAfv-Gz.js → index-DR9sIB7Z.js} +2 -2
- package/dist/assets/{index-5gZmU5Yo.js → index-DsegTYTv.js} +1 -1
- package/dist/assets/{index-CAVRu39l.js → index-d3EQEYhC.js} +5735 -5735
- package/dist/assets/{lexical-7wLTmuOM.js → lexical-B3cBH3RT.js} +1 -1
- package/dist/assets/{liveblocks-BpzIE3YU.js → liveblocks-BIAtikaQ.js} +1 -1
- package/dist/assets/{lottie-CK8RHiS5.js → lottie-BQL9e5FO.js} +1 -1
- package/dist/assets/{mui-BqlpRA7K.js → mui-CGZwNDvS.js} +1 -1
- package/dist/assets/{react-DAWLCj7U.js → react-1AJ1WX9G.js} +1 -1
- package/dist/assets/{react-BUYl5N8Z.js → react-B3qBdEEf.js} +1 -1
- package/dist/assets/{react-BNrPVsOs.js → react-BTdP10tz.js} +1 -1
- package/dist/assets/{react-B--Kn0rT.js → react-Bb1QpQwT.js} +1 -1
- package/dist/assets/{react-BmBa30rb.js → react-BrG56Vk9.js} +1 -1
- package/dist/assets/{react-CfEXQRik.js → react-CEGGv4Tf.js} +2 -2
- package/dist/assets/{react-DCWMXoCu.js → react-CFeUK9Ix.js} +1 -1
- package/dist/assets/{react-6M1tiTrK.js → react-zZnoqN-o.js} +1 -1
- package/dist/assets/{recharts-pVwp1edo.js → recharts-BEyYdT4a.js} +1 -1
- package/dist/assets/{sentry-UbsWDE_a.js → sentry-Dc2bCXeU.js} +1 -1
- package/dist/assets/{url-BYUw2jQg.js → url-BEBYKTG5.js} +1 -1
- package/dist/assets/{url-ol-AuHFj.js → url-CZPuhruJ.js} +1 -1
- package/dist/assets/{utils-zhu1nce1.js → utils-CNE54eLV.js} +1 -1
- package/dist/assets/{zeni-epic-state-BmQHjoJv.js → zeni-epic-state-Cn35_qXc.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/SignInScreen-4g3b5SUd.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-
|
|
1
|
+
import{j as r}from"./liveblocks-BIAtikaQ.js";import{u as k,P as v}from"./ScreenRoutes-BJHxjxsX.js";import{a as f}from"./sentry-Dc2bCXeU.js";import{i as P,n as T,g as m,h as U,k as C,l as I,N as R}from"./core-CRhCqIlh.js";import{KB as j,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-Cn35_qXc.js";import{z as X,_ as q,e as V,i as J,a0 as Z,s as G,X as H,a as Q,g as W,h as Y}from"./index-d3EQEYhC.js";import{n as ee}from"./mui-CGZwNDvS.js";import"./recharts-BEyYdT4a.js";import"./analyticsHelper-CiCwaTM6.js";import"./utils-CNE54eLV.js";import"./empty-B0hDzJSP.js";import"./index-Ci1Zzrp1.js";import"./url-BEBYKTG5.js";import"./index-8gdhcKd2.js";import"./analytics-D6piKHLS.js";import"./lottie-BQL9e5FO.js";import"./lexical-B3cBH3RT.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]="d92eb05c-67ec-47f4-b44b-af67cebabafe",a._sentryDebugIdIdentifier="sentry-dbid-d92eb05c-67ec-47f4-b44b-af67cebabafe")}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(j),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(R,{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-Dc2bCXeU.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};
|