@zeniai/web-cockpit-ui 2.1.27-dev → 2.1.28-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-DEEdZX6t.js → CreditAgentRoutes-rOrW9028.js} +3 -3
- package/dist/assets/{Preview-C1hTAKb-.js → Preview-8nQ6vXxR.js} +1 -1
- package/dist/assets/{ScreenRoutes-FQwDfte9.js → ScreenRoutes-9MfV_NZf.js} +45 -45
- package/dist/assets/{SignInScreen-BvOzpDMx.js → SignInScreen-CzeYKCeh.js} +1 -1
- package/dist/assets/{analytics-CyP-NgOg.js → analytics-D8DiA4u3.js} +1 -1
- package/dist/assets/{analyticsHelper-ORtH3VC2.js → analyticsHelper-C62zhkJP.js} +1 -1
- package/dist/assets/{core-BHfDbN8f.js → core-Cuh6I06m.js} +1 -1
- package/dist/assets/{dash.all.min-Fpn-A3vN.js → dash.all.min-ePqSQXI_.js} +1 -1
- package/dist/assets/{empty-DpXRS4Ke.js → empty-CwpRf8bd.js} +1 -1
- package/dist/assets/{empty-ChCjpvcH.js → empty-DG42zO_g.js} +1 -1
- package/dist/assets/epic-jXSWptso.js +2 -0
- package/dist/assets/{index-BRG3pYoE.js → index-C1hBXkGt.js} +1 -1
- package/dist/assets/{index-DRsEq_RT.js → index-C1u8VU1q.js} +1 -1
- package/dist/assets/{index-B2UA0TuP.js → index-C44eMUVC.js} +1 -1
- package/dist/assets/{index-BqQ1_Krz.js → index-CnLtsIvu.js} +1 -1
- package/dist/assets/{index-xZ-9li_y.js → index-D_3UY_2D.js} +2 -2
- package/dist/assets/{index-DSoQsS_3.js → index-m7Xk7Vks.js} +6 -6
- package/dist/assets/{index-Df9RIT3x.js → index-sjmGzj3F.js} +1 -1
- package/dist/assets/{lexical-xonkwYrt.js → lexical-CFC3xkZg.js} +1 -1
- package/dist/assets/{liveblocks-C4fAGClt.js → liveblocks-BDTsCL52.js} +1 -1
- package/dist/assets/{lottie-6ucQGhWv.js → lottie-BFyEgU6v.js} +1 -1
- package/dist/assets/{mui-Bam5ortE.js → mui-ln_7hj-c.js} +1 -1
- package/dist/assets/{react-CO1mPB0X.js → react-B0uKQH5d.js} +1 -1
- package/dist/assets/{react-D5T0gxD6.js → react-C3Atqjhw.js} +1 -1
- package/dist/assets/{react-DvauDu7z.js → react-Ca9coxvu.js} +1 -1
- package/dist/assets/{react-Dpd3yiUu.js → react-CpqSXHZF.js} +1 -1
- package/dist/assets/{react-BpokFsG7.js → react-D5cb8C_A.js} +1 -1
- package/dist/assets/{react-BuBeZ799.js → react-PWLbInDT.js} +1 -1
- package/dist/assets/{react-DtRvzGWM.js → react-W1YfeIH_.js} +1 -1
- package/dist/assets/{react-C1aKFrMl.js → react-k_Y5aGGv.js} +2 -2
- package/dist/assets/{recharts-BU9B8-bD.js → recharts-C9QKLUlV.js} +1 -1
- package/dist/assets/{sentry-DBnwc6dO.js → sentry-Sh5ZJVdi.js} +1 -1
- package/dist/assets/{url-Cxuc_b6K.js → url-C8LV-VlG.js} +1 -1
- package/dist/assets/{url-CyBQDZz9.js → url-DJ8qhkgs.js} +1 -1
- package/dist/assets/{utils-LFrcY-rF.js → utils-BJM0N5OL.js} +1 -1
- package/dist/assets/{zeni-epic-state-y6K9ejuM.js → zeni-epic-state-DAlg8WD-.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/epic-CWJunA5J.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-
|
|
2
|
-
padding: ${
|
|
1
|
+
import{j as s}from"./liveblocks-BDTsCL52.js";import{u as D,P as v}from"./ScreenRoutes-9MfV_NZf.js";import{a as f}from"./sentry-Sh5ZJVdi.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-Cuh6I06m.js";import{Kn as j,Ko as N,kk as E,Kp as M,l2 as L,l5 as $,kT as _,Kq as K,Kr as O,k$ as q,kX as B}from"./zeni-epic-state-DAlg8WD-.js";import{z as F,Z as X,k as V,l as Z,a0 as J,s as G,X as H,c as Q,g as W,h as Y}from"./index-m7Xk7Vks.js";import{n as ee}from"./mui-ln_7hj-c.js";import"./recharts-C9QKLUlV.js";import"./analyticsHelper-C62zhkJP.js";import"./utils-BJM0N5OL.js";import"./empty-DG42zO_g.js";import"./index-C1u8VU1q.js";import"./url-DJ8qhkgs.js";import"./index-CnLtsIvu.js";import"./analytics-D8DiA4u3.js";import"./lottie-BFyEgU6v.js";import"./lexical-CFC3xkZg.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]="5d269cbb-5b1b-4821-9f84-50dd18e20b4b",a._sentryDebugIdIdentifier="sentry-dbid-5d269cbb-5b1b-4821-9f84-50dd18e20b4b")}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(B())},onSaveMacro:n=>{a(q(n))},onResetSaveMacro:()=>{a(O())},onUIStateChange:n=>{a(K(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=U(te,ne)(J),oe=ee.div`
|
|
2
|
+
padding: ${Z.sp5};
|
|
3
3
|
text-align: center;
|
|
4
|
-
`;function re(){const a=P(),t=T(),n=m(
|
|
4
|
+
`;function re(){const a=P(),t=T(),n=m(j),g=m(N),[c,b]=f.useState(new Set),p=f.useRef(new Set),h=m(e=>e.tenantState.currentTenantId),y=m(e=>e.companyViewState.zeniUsers.fetchState);f.useEffect(()=>{y==="Not-Started"&&t(E())},[t,y]);const d=F.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=>{b(o=>new Set(o).add(e)),t(L(e))},onDownloadReport:()=>{const e=M(n.rows),o=d?.userId??"",r=d?.zeniSessionId??"",i=h??"";if(!o||!r||!i)return;const x=encodeURIComponent(JSON.stringify(e)),k=`${X}/tableDownload?query=${x}`;fetch(k,{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,h,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&&b(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:V.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:z,cardProfilesData:w})}function ze(){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(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-Sh5ZJVdi.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};
|