@zeniai/web-cockpit-ui 2.1.91-qa → 2.1.92-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-DLOfnKfw.js +4 -0
- package/dist/assets/{Preview-DaasMMe_.js → Preview-H4Hv2tdB.js} +1 -1
- package/dist/assets/{ScreenRoutes-NtHObCq8.js → ScreenRoutes-D17SI7T4.js} +47 -47
- package/dist/assets/SignInScreen-C4Hx7UIe.js +1 -0
- package/dist/assets/{analytics-Bty8Hg0Q.js → analytics-CCfZT6Uv.js} +1 -1
- package/dist/assets/{analyticsHelper-BMROAoKS.js → analyticsHelper-BRTuLQ01.js} +1 -1
- package/dist/assets/{core-DgfROaAS.js → core-SgLORTvv.js} +1 -1
- package/dist/assets/{dash.all.min-CDwKAlcH.js → dash.all.min-B1jyM1zC.js} +1 -1
- package/dist/assets/{empty-Bws4MSrW.js → empty-84IiGB_O.js} +1 -1
- package/dist/assets/{empty-glYvi4q4.js → empty-Ckn8TqRK.js} +1 -1
- package/dist/assets/epic-CmBKoGS2.js +2 -0
- package/dist/assets/{index-Cu0osUaw.js → index-2VrjhkGD.js} +1 -1
- package/dist/assets/{index-OFLS09XU.js → index-BGuyu_Mq.js} +1 -1
- package/dist/assets/{index-iTdGasKk.js → index-CjwsaajZ.js} +1 -1
- package/dist/assets/{index-DM6kz7jp.js → index-DrGKP7QR.js} +18528 -16864
- package/dist/assets/{index-gmESdZqt.js → index-J2PgBTyb.js} +1 -1
- package/dist/assets/{index-CNj6leJs.js → index-nT0yeBFh.js} +2 -2
- package/dist/assets/{index-CQwPFbkV.js → index-x3YmJjsH.js} +1 -1
- package/dist/assets/{lexical-BR_VpIe3.js → lexical-Bml_hdSu.js} +1 -1
- package/dist/assets/{liveblocks-B8GPBdVd.js → liveblocks-_7SY0JH5.js} +1 -1
- package/dist/assets/{lottie-BMwaEd0-.js → lottie-CiJ1hSDE.js} +1 -1
- package/dist/assets/{mui-DhSgbxxf.js → mui-DEYt8JH9.js} +1 -1
- package/dist/assets/{react-ClZq_sxx.js → react-BN_6bmLD.js} +1 -1
- package/dist/assets/{react-fe_ZKeQp.js → react-Baoh_JVX.js} +1 -1
- package/dist/assets/{react-CATI9ge3.js → react-BjFyvnWc.js} +2 -2
- package/dist/assets/{react-aTRNLobE.js → react-Br8z86Kc.js} +1 -1
- package/dist/assets/{react-DV0soYw9.js → react-Cz5qMleB.js} +1 -1
- package/dist/assets/{react-B4GicJ8k.js → react-D_RHCgKb.js} +1 -1
- package/dist/assets/{react-DYo4DeN-.js → react-DkeFcNHz.js} +1 -1
- package/dist/assets/{react-D5XZh3hy.js → react-DyhvQVgi.js} +1 -1
- package/dist/assets/{recharts-BbTkHEQ9.js → recharts-vozvqkJ5.js} +1 -1
- package/dist/assets/{sentry-1ioB2Xg9.js → sentry-ZSlJ36Wt.js} +1 -1
- package/dist/assets/{url-DWVVfns1.js → url-CSMFGIFe.js} +1 -1
- package/dist/assets/{url-B3qHgqzn.js → url-DYlDrA3k.js} +1 -1
- package/dist/assets/{utils-CEeexPqZ.js → utils-OR78jg7i.js} +1 -1
- package/dist/assets/{zeni-epic-state-oxZ8tGTt.js → zeni-epic-state-B-jHl1oI.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-BZkAnlva.js +0 -4
- package/dist/assets/SignInScreen-B2JvII6p.js +0 -1
- package/dist/assets/epic-B73zNx1F.js +0 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{j as s}from"./liveblocks-_7SY0JH5.js";import{u as P,P as v}from"./ScreenRoutes-D17SI7T4.js";import{a as f}from"./sentry-ZSlJ36Wt.js";import{i as T,n as U,g as m,h as j,k as C,l as I,N as R}from"./core-SgLORTvv.js";import{Qy as N,Qz as k,l0 as E,QA as M,lS as L,lV as _,lH as $,QB as Q,QC as B,lP as F,lL as O}from"./zeni-epic-state-B-jHl1oI.js";import{z as J,_ as V,j as q,m as H,a0 as Z,J as G,d as K,e as W,g as X,h as Y}from"./index-DrGKP7QR.js";import{n as ee}from"./mui-DEYt8JH9.js";import"./recharts-vozvqkJ5.js";import"./analyticsHelper-BRTuLQ01.js";import"./utils-OR78jg7i.js";import"./empty-84IiGB_O.js";import"./index-J2PgBTyb.js";import"./url-CSMFGIFe.js";import"./index-2VrjhkGD.js";import"./analytics-CCfZT6Uv.js";import"./lottie-CiJ1hSDE.js";import"./lexical-Bml_hdSu.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]="d2e2e26b-9c0d-4f46-b6be-130ee3ed626d",a._sentryDebugIdIdentifier="sentry-dbid-d2e2e26b-9c0d-4f46-b6be-130ee3ed626d")}catch{}})();function te(a,t){return{headerData:{allTabOptions:G,selectedTabOption:K("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(O())},onSaveMacro:n=>{a(F(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(Q(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=j(te,ne)(Z),oe=ee.div`
|
|
2
|
+
padding: ${H.sp5};
|
|
3
|
+
text-align: center;
|
|
4
|
+
`;function re(){const a=T(),t=U(),n=m(N),g=m(k),[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=J.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,z=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=d?.userId??"",r=d?.zeniSessionId??"",i=b??"";if(!o||!r||!i)return;const x=encodeURIComponent(JSON.stringify(e)),D=`${V}/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 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?s.jsx(oe,{children:q.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:z,cardProfilesData:w})}function ze(){const{isAllowed:a,isLoading:t}=P();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(R,{to:"/management",replace:!0})})})}export{ze as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,R as n}from"./sentry-
|
|
1
|
+
import{a as h,R as n}from"./sentry-ZSlJ36Wt.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};
|