@zeniai/web-cockpit-ui 2.1.66-qa → 2.1.67-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-DqMw8_uQ.js +4 -0
- package/dist/assets/{Preview-D-k85mTH.js → Preview-Bf2aZjAc.js} +1 -1
- package/dist/assets/{ScreenRoutes-BflkaEHe.js → ScreenRoutes-Bqd8TvjU.js} +83 -83
- package/dist/assets/SignInScreen-BYOyvlYM.js +1 -0
- package/dist/assets/{analytics-BjIKXvHS.js → analytics-BF8RQ33c.js} +1 -1
- package/dist/assets/{analyticsHelper-lxQeuMhs.js → analyticsHelper-XicIpKor.js} +1 -1
- package/dist/assets/{core-DoWfszlE.js → core-BEaSFqDd.js} +1 -1
- package/dist/assets/{dash.all.min-eecrGfsd.js → dash.all.min-DwCIdBAZ.js} +1 -1
- package/dist/assets/{empty-Bc6r2Taj.js → empty-CWqdIqE-.js} +1 -1
- package/dist/assets/{empty-BAHQTaq-.js → empty-Z1nV2Euy.js} +1 -1
- package/dist/assets/epic-BW5SLSR-.js +2 -0
- package/dist/assets/{index-CkdtCkU0.js → index--TEj-37I.js} +12750 -12519
- package/dist/assets/{index-BXt7YsGC.js → index-B86RNPGE.js} +1 -1
- package/dist/assets/{index-BMBmlP-B.js → index-BrI3TN_q.js} +1 -1
- package/dist/assets/{index-DbnnIemF.js → index-CexAgLjR.js} +1 -1
- package/dist/assets/{index-XP6ZMDwo.js → index-DCMWsu3D.js} +1 -1
- package/dist/assets/{index-CqmPjRKx.js → index-HCtTxL6w.js} +2 -2
- package/dist/assets/{index-CddNbSBo.js → index-STxEuMOh.js} +1 -1
- package/dist/assets/{lexical-CawsdenV.js → lexical-BYaUAD1a.js} +1 -1
- package/dist/assets/{liveblocks-C7sQMVjP.js → liveblocks-DaVEz7Yr.js} +1 -1
- package/dist/assets/{lottie-GyWOPtLj.js → lottie-gQKyywY5.js} +1 -1
- package/dist/assets/{mui-DCAETIiC.js → mui-BiGNiJmL.js} +1 -1
- package/dist/assets/{react-Ci-s5ePm.js → react-B2MhzbMg.js} +1 -1
- package/dist/assets/{react-fZHfBvCY.js → react-BERxMOLL.js} +1 -1
- package/dist/assets/{react-KBnfXEci.js → react-CaNfxiii.js} +1 -1
- package/dist/assets/{react-KBTu0z0d.js → react-Cgv0HFVx.js} +1 -1
- package/dist/assets/{react-DNQ4AhnS.js → react-DfO7zK6k.js} +1 -1
- package/dist/assets/{react-CFnWn0td.js → react-DiSIgVFd.js} +1 -1
- package/dist/assets/{react-BmGJmRR6.js → react-TWQD7s9B.js} +1 -1
- package/dist/assets/{react-7MAOEAUB.js → react-qOtc33rc.js} +2 -2
- package/dist/assets/{recharts-CCNY247x.js → recharts-Cgk6aHyT.js} +1 -1
- package/dist/assets/{sentry-Cx7_N18w.js → sentry-Dzh_YaST.js} +1 -1
- package/dist/assets/{url-Bwc2OauT.js → url-C1zdxbFd.js} +1 -1
- package/dist/assets/{url-CFUoQgr1.js → url-CHsB_o6j.js} +1 -1
- package/dist/assets/{utils-BiDm0msa.js → utils-BsEHPv6M.js} +1 -1
- package/dist/assets/{zeni-epic-state-DPzjOMGZ.js → zeni-epic-state-D2O7CafI.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-C6EJVyF5.js +0 -4
- package/dist/assets/SignInScreen-iYdcE1CA.js +0 -1
- package/dist/assets/epic-DXq-QA5m.js +0 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{j as s}from"./liveblocks-DaVEz7Yr.js";import{u as D,P as v}from"./ScreenRoutes-Bqd8TvjU.js";import{a as f}from"./sentry-Dzh_YaST.js";import{i as U,n as j,g as m,h as R,k as C,l as I,N as T}from"./core-BEaSFqDd.js";import{Pn as N,Po as k,kB as E,Pp as M,lr as L,lu as $,lg as _,Pq as O,Pr as B,lo as q,lk as F}from"./zeni-epic-state-D2O7CafI.js";import{z as K,$ as V,O as J,i as Z,a0 as G,K as H,s as Q,c as W,g as X,h as Y}from"./index--TEj-37I.js";import{n as ee}from"./mui-BiGNiJmL.js";import"./recharts-Cgk6aHyT.js";import"./analyticsHelper-XicIpKor.js";import"./utils-BsEHPv6M.js";import"./empty-CWqdIqE-.js";import"./index-B86RNPGE.js";import"./url-C1zdxbFd.js";import"./index-DCMWsu3D.js";import"./analytics-BF8RQ33c.js";import"./lottie-gQKyywY5.js";import"./lexical-BYaUAD1a.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]="bb98e083-bb0c-4a3a-9c8b-9bfb17445f88",a._sentryDebugIdIdentifier="sentry-dbid-bb98e083-bb0c-4a3a-9c8b-9bfb17445f88")}catch{}})();function te(a,t){return{headerData:{allTabOptions:H,selectedTabOption:Q("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(F())},onSaveMacro:n=>{a(q(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(O(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=R(te,ne)(G),oe=ee.div`
|
|
2
|
+
padding: ${Z.sp5};
|
|
3
|
+
text-align: center;
|
|
4
|
+
`;function re(){const a=U(),t=j(),n=m(N),g=m(k),[c,S]=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=K.getSignedInUser(),A=d!=null&&[d.firstName,d.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=>{S(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 z=encodeURIComponent(JSON.stringify(e)),x=`${V}/tableDownload?query=${z}`;fetch(x,{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),b=document.createElement("a");b.href=u,b.download=`${e.file_name}.xlsx`,b.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&&S(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:J.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(v,{element:s.jsx(re,{})})})}):s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(T,{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-Dzh_YaST.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};
|