@zeniai/web-cockpit-ui 2.1.87-qa → 2.1.88-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-BOmwSb99.js +4 -0
- package/dist/assets/{Preview-WEosenpu.js → Preview-Dei-hMVN.js} +1 -1
- package/dist/assets/{ScreenRoutes-BA294ZWO.js → ScreenRoutes-dz4-sHV3.js} +76 -76
- package/dist/assets/SignInScreen-BCk2FxUe.js +1 -0
- package/dist/assets/{analytics-Uqpj01Y9.js → analytics-DUFpvYxY.js} +1 -1
- package/dist/assets/analyticsHelper-DvaiC2NZ.js +1 -0
- package/dist/assets/{core-BvdOTrdU.js → core-atK9DIfn.js} +1 -1
- package/dist/assets/{dash.all.min-C2XZGWMr.js → dash.all.min-CalfW6Yy.js} +1 -1
- package/dist/assets/{empty-DAqhdpOw.js → empty-BPapHPvT.js} +1 -1
- package/dist/assets/{empty-BD3v7hai.js → empty-CnNpMrnQ.js} +1 -1
- package/dist/assets/epic-Bvlaa17z.js +2 -0
- package/dist/assets/{index-xvyAu3Iz.js → index-BCmDXQNG.js} +2 -2
- package/dist/assets/{index-CoTZkYcY.js → index-CDlvxXj_.js} +1 -1
- package/dist/assets/{index-afdDTjn6.js → index-CpiGAHt8.js} +9235 -9177
- package/dist/assets/{index-Hkz8gtVf.js → index-Dmk-grxr.js} +1 -1
- package/dist/assets/{index-BeKE85Uf.js → index-Do7u5A5Z.js} +1 -1
- package/dist/assets/{index-CHJARHDN.js → index-ECGrBfnP.js} +1 -1
- package/dist/assets/{index-BOUWc3F_.js → index-J7fx8MEh.js} +1 -1
- package/dist/assets/{lexical-B5HHJacY.js → lexical-C6jI8uPZ.js} +1 -1
- package/dist/assets/{liveblocks-BKAokQgL.js → liveblocks-NX4xS241.js} +1 -1
- package/dist/assets/{lottie-D0D8eR1a.js → lottie-BLKTIV45.js} +1 -1
- package/dist/assets/{mui-KktnCpC4.js → mui-B_9PYwKT.js} +1 -1
- package/dist/assets/{react-BTAAdpA3.js → react-C2m7st5g.js} +1 -1
- package/dist/assets/{react-B-lGOrq2.js → react-CNIai9gw.js} +1 -1
- package/dist/assets/{react-Dbh4lHBc.js → react-CTwcF0gz.js} +1 -1
- package/dist/assets/{react-CuuEWX1M.js → react-C_eKOLUO.js} +1 -1
- package/dist/assets/{react-ZjDpTDA8.js → react-CoJSd1M8.js} +1 -1
- package/dist/assets/{react-1VsS_0qy.js → react-CvdInLQK.js} +2 -2
- package/dist/assets/{react-vz-fPhJG.js → react-DukXcbZ3.js} +1 -1
- package/dist/assets/{react-75k7nYCj.js → react-LxJC1fXG.js} +1 -1
- package/dist/assets/{recharts-_9h6ntrt.js → recharts-hOPJOv0U.js} +1 -1
- package/dist/assets/{sentry-C_ZgKpmQ.js → sentry-CNTh6DmK.js} +1 -1
- package/dist/assets/{url-D4P8o2Zm.js → url-Bpne4GB5.js} +1 -1
- package/dist/assets/{url-Bhpz9EA0.js → url-lPH4CDj7.js} +1 -1
- package/dist/assets/{utils-BtOlxAfK.js → utils-BhQsWXv1.js} +1 -1
- package/dist/assets/{zeni-epic-state-BFzBi6HJ.js → zeni-epic-state-BcLfshIh.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/CreditAgentRoutes-0OCtBndS.js +0 -4
- package/dist/assets/SignInScreen-D_ivuft_.js +0 -1
- package/dist/assets/analyticsHelper-CqcoFCM0.js +0 -1
- package/dist/assets/epic-BkivGQ9s.js +0 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{j as s}from"./liveblocks-NX4xS241.js";import{u as D,P as R}from"./ScreenRoutes-dz4-sHV3.js";import{a as f}from"./sentry-CNTh6DmK.js";import{i as v,n as T,g as m,h as U,k as C,l as I,N}from"./core-atK9DIfn.js";import{PN as j,PO as k,kY as E,PP as M,lO as L,lR as _,lD as $,PQ as O,PR as F,lL as B,lH as J}from"./zeni-epic-state-BcLfshIh.js";import{a as q,_ as V,F as H,m as Q,a0 as Y,J as Z,d as G,e as K,g as W,h as X}from"./index-CpiGAHt8.js";import{n as ee}from"./mui-B_9PYwKT.js";import"./recharts-hOPJOv0U.js";import"./analyticsHelper-DvaiC2NZ.js";import"./utils-BhQsWXv1.js";import"./empty-CnNpMrnQ.js";import"./index-CDlvxXj_.js";import"./url-lPH4CDj7.js";import"./index-J7fx8MEh.js";import"./analytics-DUFpvYxY.js";import"./lottie-BLKTIV45.js";import"./lexical-C6jI8uPZ.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]="957add00-b29e-43fc-9770-65ddd577f506",a._sentryDebugIdIdentifier="sentry-dbid-957add00-b29e-43fc-9770-65ddd577f506")}catch{}})();function te(a,t){return{headerData:{allTabOptions:Z,selectedTabOption:G("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=X(n),d=W(n);K.trackCockpitTabClicked(d),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(J())},onSaveMacro:n=>{a(B(n))},onResetSaveMacro:()=>{a(F())},onUIStateChange:n=>{a(O(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=U(te,ne)(Y),oe=ee.div`
|
|
2
|
+
padding: ${Q.sp5};
|
|
3
|
+
text-align: center;
|
|
4
|
+
`;function re(){const a=v(),t=T(),n=m(j),g=m(k),[d,h]=f.useState(new Set),p=f.useRef(new Set),y=m(e=>e.tenantState.currentTenantId),b=m(e=>e.companyViewState.zeniUsers.fetchState);f.useEffect(()=>{b==="Not-Started"&&t(E())},[t,b]);const c=q.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=y??"";if(!o||!r||!i)return;const x=encodeURIComponent(JSON.stringify(e)),z=`${V}/tableDownload?query=${x}`;fetch(z,{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,y,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:H.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(R,{element:s.jsx(re,{})})})}):s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(N,{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-CNTh6DmK.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};
|