PageSourceSearch

https://janitza-id-dev.web.app/assets/PageStatistics-S_exTBfi.js

js janitza-id-dev.web.app collected 2026-10-03 12:27:24 UTC 13,099 bytes, 1 lines download raw bytes

1import{g as c,b as u,j as e,a8 as x,M as k,_ as h,S as y,an as f,ao as d,ap as S,aa as G,$ as z,ah as v,U as $,al as A,am as E,ai as F,aj as C,Z as j,c as W}from"./index-BM1TMO-e.js";import{a as g,af as q}from"./fa-C6IpbxMt.js";import{s as D}from"./index-CgJb-egC.js";const M=c({customer:{id:"janitza-id.page.statistics.customer",defaultMessage:"Customer",description:"[Janitza ID] tab title customer for statistics page"},solutionPartner:{id:"janitza-id.page.statistics.solutionPartner",defaultMessage:"Solution Partner",description:"[Janitza ID] tab title Solution Partner for statistics page"}}),L=c({lastInstallableGridVisVersion:{id:"janitza-id.page.statistics.lastInstallableGridVisVersionTable.lastInstallableGridVisVersion",defaultMessage:"Last installable GridVis version",description:"[Janitza ID] table header last installable GridVis Version"},count:{id:"janitza-id.page.statistics.lastInstallableGridVisVersionTable.count",defaultMessage:"count",description:"[Janitza ID] table header count for GridVis versions"}}),B="_versionTableContainer_10dlr_48",K={versionTableContainer:B};function J({lastInstallableVersion:t}){const{formatMessage:i}=u(),a=t?Object.entries(t).filter(([n])=>D.valid(n)).sort(([n],[s])=>D.compare(n,s)):[];return e.jsx("div",{className:K.versionTableContainer,children:e.jsxs(x,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{children:i(L.lastInstallableGridVisVersion)}),e.jsx("td",{children:i(L.count)})]})}),e.jsx("tbody",{children:a.map(([n,s])=>e.jsxs("tr",{children:[e.jsx("td",{children:n}),e.jsx("td",{children:s})]},n))})]})})}const o=c({activeLicenses:{id:"janitza-id.page.statistics.activeLicenses",defaultMessage:"Number of active licenses",description:"[Janitza ID] title total number of active licenses"},essentialsLicenses:{id:"janitza-id.page.statistics.essentialsLicenses",defaultMessage:"Number of essentials licenses",description:"[Janitza ID] title total number of essentials licenses"},standardLicenses:{id:"janitza-id.page.statistics.standardLicenses",defaultMessage:"Number of standard licenses",description:"[Janitza ID] title total number of standard licenses"},expertLicenses:{id:"janitza-id.page.statistics.expertLicenses",defaultMessage:"Number of expert licenses",description:"[Janitza ID] title total number of expert licenses"},cloudLicenses:{id:"janitza-id.page.statistics.cloudLicenses",defaultMessage:"Number of cloud licenses",description:"[Janitza ID] title total number of cloud licenses"},expiredLicenses:{id:"janitza-id.page.statistics.expiredLicenses",defaultMessage:"Number of expired licenses",description:"[Janitza ID] title total number of expired licenses"},totalItemStorageCount:{id:"janitza-id.page.statistics.totalItemStorageCount",defaultMessage:"Number of total items in item storage",description:"[Janitza ID] title total number of items in item storage"},totalItemStorageDays:{id:"janitza-id.page.statistics.totalItemStorageDays",defaultMessage:"Number of total days in item storage",description:"[Janitza ID] title total number of days in item storage"},averageItemStorageCount:{id:"janitza-id.page.statistics.averageItemStorageCount",defaultMessage:"Number of average items in item storage",description:"[Janitza ID] title average number of days in item storage"},averageItemStorageDays:{id:"janitza-id.page.statistics.averageItemStorageDays",defaultMessage:"Number of average days in item storage",description:"[Janitza ID] title average number of days in item storage"}});function V(t,i){var a,n;return i?[{label:t(o.activeLicenses),value:i.activeLicensesCount,key:"activeLicensesCount",isShowingSyncStatus:!0},{label:t(o.essentialsLicenses),value:i.essentialsLicensesCount,key:"essentialsLicensesCount",isShowingSyncStatus:!0},{label:t(o.standardLicenses),value:i.standardLicensesCount,key:"standardLicensesCount",isShowingSyncStatus:!0},{label:t(o.expertLicenses),value:i.expertLicensesCount,key:"expertLicensesCount",isShowingSyncStatus:!0},{label:t(o.cloudLicenses),value:i.cloudLicensesCount,key:"cloudLicensesCount",isShowingSyncStatus:!0},{label:t(o.expiredLicenses),value:i.expiredLicensesCount,key:"expiredLicensesCount",isShowingSyncStatus:!0},{label:t(o.totalItemStorageDays),value:Math.round(i.totalItemStorageDays??0),key:"totalItemStorageDays",isShowingSyncStatus:!0},{label:t(o.totalItemStorageCount),value:Math.round(i.totalItemStorageCount??0),key:"totalItemStorageCount",isShowingSyncStatus:!0},{label:t(o.averageItemStorageDays),value:(a=i.averageItemStorageDays)==null?void 0:a.toFixed(2),key:"averageItemStorageDays",isShowingSyncStatus:!0},{label:t(o.averageItemStorageCount),value:(n=i.averageItemStorageCount)==null?void 0:n.toFixed(2),key:"averageItemStorageCount",isShowingSyncStatus:!0}]:[]}const m=c({title:{id:"janitza-id.page.statistics.solutionPartner.title",defaultMessage:"Solution Partner Statistics",description:"[Janitza ID] title for solution partner table"},company:{id:"janitza-id.page.statistics.solutionPartner.company",defaultMessage:"Company",description:"[Janitza ID] table header company"},licenses:{id:"janitza-id.page.statistics.solutionPartner.licenses",defaultMessage:"Licenses",description:"[Janitza ID] table header licenses"},availableItems:{id:"janitza-id.page.statistics.solutionPartner.availableItems",defaultMessage:"Available Items",description:"[Janitza ID] table header availableItems"},usedItems:{id:"janitza-id.page.statistics.solutionPartner.usedItems",defaultMessage:"Items in Use",description:"[Janitza ID] table header usedItems"}}),p=c({owner:{id:"janitza-id.page.statistics.solutionPartnerInfoTable.owner",defaultMessage:"Owner",description:"[Janitza ID] table label owner"},availableItems:{id:"janitza-id.page.statistics.solutionPartnerInfoTable.availableItems",defaultMessage:"Available items",description:"[Janitza ID] table label availableItems"},usedItems:{id:"janitza-id.page.statistics.solutionPartnerInfoTable.usedItems",defaultMessage:"Items in use",description:"[Janitza ID] table label usedItems"},itemBundles:{id:"janitza-id.page.statistics.solutionPartnerInfoTable.itemBundles",defaultMessage:"Item Bundles",description:"[Janitza ID] table label itemBundles"},projects:{id:"janitza-id.page.statistics.solutionPartnerInfoTable.projects",defaultMessage:"Projects",description:"[Janitza ID] table label projects"}});function O({solutionPartnerStatistics:t,closeFunc:i}){const{formatMessage:a}=u();return e.jsx(k,{onCloseModal:i,title:t.company,dataCy:"SolutionPartnerInfoModalTitle",children:e.jsxs(x,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{children:a(p.owner)}),e.jsx("td",{children:a(p.availableItems)}),e.jsx("td",{children:a(p.usedItems)}),e.jsx("td",{children:a(p.itemBundles)}),e.jsx("td",{children:a(p.projects)})]})}),e.jsx("tbody",{children:t==null?void 0:t.licenses.map(n=>e.jsxs("tr",{children:[e.jsx("td",{children:n.ownerMail}),e.jsx("td",{children:n.availableItems}),e.jsx("td",{children:n.usedItems}),e.jsx("td",{children:n.itemBundlesCount}),e.jsx("td",{children:n.projectsPerLicense})]},n.ownerMail))})]})})}const R="_solutionPartnerTableContainer_1130j_1",U="_cardContainer_1130j_7",Q="_spinnerWrapper_1130j_11",I={solutionPartnerTableContainer:R,cardContainer:U,spinnerWrapper:Q};function Y(){const{formatMessage:t}=u(),[i,a]=g.useState(!1),[n,s]=g.useState(""),{isLoading:w,data:l}=h({queryKey:["fetchSolutionPartnerStatistics"],queryFn:async()=>{try{return await z("/frontend/latest-solution-partner-statistics")}catch(r){throw new Error(v(r))}}}),P=V(t,l==null?void 0:l.premoStatistics.licenseStatistics);return e.jsx(e.Fragment,{children:w?e.jsx("div",{className:I.spinnerWrapper,children:e.jsx(y,{size:40})}):e.jsxs(e.Fragment,{children:[i&&e.jsx(O,{solutionPartnerStatistics:l==null?void 0:l.solutionPartnerStatistics.find(r=>r.company===n),closeFunc:()=>a(!1)}),e.jsx("div",{className:I.cardContainer,children:e.jsx(f,{dataCy:"card-solutionPartnerStatistics",heading:t(m.title),children:e.jsx(d,{container:!0,className:"qf-GridContainer",spacing:2,children:P.map(r=>
1e.jsx(d,{className:`qf-GridItem_${r.key}`,size:{xs:6,lg:4},children:e.jsx(S,{label:r.label,value:r.value??0,dataCy:`solutionPartnerGrid-${r.key}`})},r.label))})})}),e.jsx("div",{className:I.solutionPartnerTableContainer,children:e.jsxs(x,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{children:t(m.company)}),e.jsx("td",{children:t(m.licenses)}),e.jsx("td",{children:t(m.availableItems)}),e.jsx("td",{children:t(m.usedItems)}),e.jsx("td",{})]})}),e.jsx("tbody",{children:l==null?void 0:l.solutionPartnerStatistics.map(r=>e.jsxs("tr",{onClick:()=>{s(r.company),a(!0)},children:[e.jsx("td",{children:r.company}),e.jsx("td",{children:r.licenses.length}),e.jsx("td",{children:r.totalItems.availableItems}),e.jsx("td",{children:r.totalItems.usedItems}),e.jsx("td",{children:e.jsx(G,{icon:q})})]},r.company))})]})}),e.jsx(J,{lastInstallableVersion:l==null?void 0:l.premoStatistics.licenseStatistics.lastInstallableGridVisVersion})]})})}const Z=c({title:{id:"janitza-id.page.statistics.license",defaultMessage:"License statistics",description:"[Janitza ID] title for license table"},lastInstallableGridVisVersion:{id:"janitza-id.page.statistics.table.lastInstallableGridVisVersion",defaultMessage:"Last installable GridVis version",description:"[Janitza ID] table header last installable GridVis Version"},count:{id:"janitza-id.page.statistics.table.count",defaultMessage:"count",description:"[Janitza ID] table header count for GridVis versions"}}),H="_cardContainer_nora0_1",X="_spinnerWrapper_nora0_5",N={cardContainer:H,spinnerWrapper:X};function ee(){const{formatMessage:t}=u(),{isLoading:i,data:a}=h({queryKey:["fetchPremoStatistics"],queryFn:async()=>{try{return await z("/frontend/latest-license-statistics")}catch(s){throw new Error(v(s))}}}),n=V(t,a==null?void 0:a.licenseStatistics);return e.jsx(e.Fragment,{children:i?e.jsx("div",{className:N.spinnerWrapper,children:e.jsx(y,{dataCy:"spinner-licenseStatisticsLoading",size:40})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:N.cardContainer,children:e.jsx(f,{dataCy:"card-licenseStatistics",heading:t(Z.title),children:e.jsx(d,{container:!0,className:"qf-GridContainer",spacing:2,children:n.map(s=>e.jsx(d,{className:`qf-GridItem_${s.key}`,size:{xs:6,lg:4},children:e.jsx(S,{label:s.label,value:s.value??0,dataCy:`itemTable-${s.key}`})},s.label))})})}),e.jsx(J,{lastInstallableVersion:a==null?void 0:a.licenseStatistics.lastInstallableGridVisVersion})]})})}const b=c({title:{id:"janitza-id.page.userStatistics.title",defaultMessage:"User userStatistics",description:"[Janitza ID] title for userStatistics page"},totalNumber:{id:"janitza-id.page.userStatistics.totalNumber",defaultMessage:"Number of all accounts",description:"[Janitza ID] title total number of Janitza ID accounts"},customer:{id:"janitza-id.page.userStatistics.customer",defaultMessage:"Number of customer accounts",description:"[Janitza ID] title number of customer accounts"},janitzaMembers:{id:"janitza-id.page.userStatistics.janitzaMember",defaultMessage:"Number of Janitza member accounts",description:"[Janitza ID] title number of Janitza member accounts"},markedAsDeleted:{id:"janitza-id.page.userStatistics.markedAsDeleted",defaultMessage:"Number of accounts marked as deleted",description:"[Janitza ID] title marked as deleted accounts"}}),te="_cardContainer_z5pat_38",ae="_spinnerWrapper_z5pat_42",T={cardContainer:te,spinnerWrapper:ae};function se(){const{formatMessage:t}=u(),{isLoading:i,data:a}=h({queryKey:["fetchUserStatistics"],queryFn:async()=>{try{return await z("/frontend/latest-user-statistics")}catch(s){throw new Error(v(s))}}}),n=[{label:t(b.totalNumber),value:(a==null?void 0:a.totalUsersCount)??0,key:"accountNumber"},{label:t(b.customer),value:(a==null?void 0:a.customerCount)??0,key:"customerNumber"},{label:t(b.janitzaMembers),value:(a==null?void 0:a.janitzaMembers)??0,key:"janitzaMembersNumber"},{label:t(b.markedAsDeleted),value:(a==null?void 0:a.isMarkedAsDeletedCount)??0,key:"markedAsDeletedNumber"}];return e.jsx("div",{className:T.cardContainer,children:i?e.jsx("div",{className:T.spinnerWrapper,children:e.jsx(y,{dataCy:"spinner-userStatisticsLoading",size:40})}):e.jsx(f,{dataCy:"card-userStatistics",heading:t(b.title),children:e.jsx(d,{container:!0,className:"qf-GridContainer",spacing:2,children:n.map(s=>e.jsx(d,{className:`qf-GridItem_${s.key}`,size:{xs:6,lg:4},children:e.jsx(S,{label:s.label,value:s.value,dataCy:`itemTable-${s.key}`})},s.label))})})})}const ie="_page_1bvxe_1",_={page:ie},ne="CUSTOMER";function ce(){const{formatMessage:t}=u(),{user:i}=g.useContext($),[a,n]=g.useState(ne);return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:_.page}
1),A(E.VIEW_STATISTICS_PAGES,i)&&e.jsxs(F,{defaultTabKey:a,onSwitchTab:s=>{n(s)},className:W(_.tabBar,j.TABPANEL),children:[e.jsx(C,{tabKey:"CUSTOMER",title:t(M.customer),className:j.TABPANEL,children:e.jsxs("div",{children:[e.jsx(se,{}),e.jsx(ee,{})]})}),e.jsx(C,{tabKey:"SOLUTION_PARTNER",title:t(M.solutionPartner),className:j.TABPANEL,children:e.jsx("div",{children:e.jsx(Y,{})})})]}),e.jsx("div",{})]})}export{ce as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.