PageSourceSearch

https://app.operandio.com/assets/Avatar-x_kotOlL.js

js operandio.com collected 2026-09-24 12:21:13 UTC 5,949 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`26.09.24.0119`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`759069d7-5fcb-4788-aa4c-aaabd89b4afd`,e._sentryDebugIdIdentifier=`sentry-dbid-759069d7-5fcb-4788-aa4c-aaabd89b4afd`)}catch{}})();import{o as e}from"./rolldown-runtime-Bxf_Cl9G.js";import{dt as t,er as n,gt as r,ir as i,nr as a,tr as o}from"./icon-BDkq4lpg.js";import{t as s}from"./build-Bc8wDfhT.js";import{t as c}from"./dayjs.min-pHxHDHEe.js";import{$n as l,Yn as u}from"./vendor-mui-B74EjWsH.js";import{n as d}from"./DisplayImage-Bo-o2na3.js";import{a as f}from"./useThemingUtils-BDtNDt5j.js";import{t as p}from"./Tooltip-DXkv1i52.js";var m=e(s()),h=e(c()),g=i(),_=[{background:`#FFB4AB`,text:`#5F0C00`},{background:`#FFDDB5`,text:`#5F2C00`},{background:`#FFE999`,text:`#483800`},{background:`#B4E5B4`,text:`#0D4F0D`},{background:`#A8E6CF`,text:`#004D34`},{background:`#B4D7F1`,text:`#003D5C`},{background:`#C5B4E8`,text:`#2D1B5E`},{background:`#F4B4D4`,text:`#5E0D2F`},{background:`#FFD4B4`,text:`#5F2200`},{background:`#D4D4F4`,text:`#1B1B5E`}],v={background:`#B6DBFF`,text:`#4A5E73`},y=e=>{if(!e||typeof e!=`string`)return _[0];let t=e.slice(-1).toLowerCase(),n=parseInt(t,16);return Number.isNaN(n)?_[0]:_[n%10]},b=()=>v,x=e=>e?.color?{background:e.color,text:f(e.color)}:y(e?.id),S=e=>{let{fullName:t,firstName:n,lastName:r}=e??{};return t||[n,r].filter(Boolean).join(` `)||null},C=15,w=60,T=.42,E=e=>e*T,D=(e,t=40)=>({width:t,height:t,fontSize:e.typography.pxToRem(E(t)),backgroundColor:e.palette.grey[700],color:e.palette.text.white}),O=r()((e,{kiosk:t,device:n,size:r})=>({root:{width:r,height:r,fontSize:e.typography.pxToRem(E(r))},colorDefault:{backgroundColor:e.palette.grey[300],color:e.palette.text.primary},img:{opacity:1,animationName:t||n?void 0:`fadeInOpacity`,animationIterationCount:1,animationTimingFunction:`ease-in`,animationDuration:`0.35s`}})),k=r()(e=>({online:{"& .MuiBadge-badge":{backgroundColor:e.palette.success.main,boxShadow:`0 0 0 2px ${e.palette.background.default}`}},away:{"& .MuiBadge-badge":{backgroundColor:e.palette.warning.main,boxShadow:`0 0 0 2px ${e.palette.background.default}`}},offline:{"& .MuiBadge-badge":{backgroundColor:e.palette.grey[400],boxShadow:`0 0 0 2px ${e.palette.background.default}`}}}));function A(e){let r=(0,g.c)(34),{className:i,avatar:s,id:c,firstName:u,lastName:f,fullName:h,identityProvider:_,usernameChange:v,activeAt:x,icon:C,number:w,inactive:T,external:E,isAllStaff:D,additionalInfo:k,size:A,imageWidth:j,imageHeight:M,isOperandioSupport:ee,...N}=e,P=A===void 0?40:A,F;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(F=m.default.get(),r[0]=F):F=r[0];let{clientKiosk:I,clientDevice:L}=F,{imageViewerBaseUri:R,imageViewerBucketName:z}=m.default.get(`uploader`),B;r[1]===P?B=r[2]:(B={kiosk:I,device:L,size:P},r[1]=P,r[2]=B);let{classes:V}=O(B),te=j??P*2,H=M??P*2,U=D?b():c?y(c):null,W=U?{...V,colorDefault:void 0}:V,G=E?` (External)`:``,K=()=>{if(!U)return N.style;let e={backgroundColor:U.background,color:U.text};return N.style?{...N.style,...e}:e},{style:ne,publicPhoneNumber:re,roleTitle:ie,...q}=N,J;r[3]===k?J=r[4]:(J=e=>k?typeof k==`string`?`${e} ${k}`:a(n,{children:[e,` `,k]}):e,r[3]=k,r[4]=J);let Y=J;if(s&&s.key){let e;r[5]!==u||r[6]!==h||r[7]!==f?(e=S({fullName:h,firstName:u,lastName:f}),r[5]=u,r[6]=h,r[7]=f,r[8]=e):e=r[8];let t=e,n=E?`(External)`:null,a;r[9]!==t||r[10]!==n?(a=[t,n].filter(Boolean),r[9]=t,r[10]=n,r[11]=a):a=r[11];let c=a.join(` `),m;return r[12]!==Y||r[13]!==c?(m=Y(c),r[12]=Y,r[13]=c,r[14]=m):m=r[14],o(p,{title:m,children:o(l,{classes:W,className:i,alt:t??``,src:d(R,z,s,`cover`,te,H),...q})})}if(u&&f){let e=`${u} ${f}${G}`,t;r[15]!==Y||r[16]!==e?(t=Y(e),r[15]=Y,r[16]=e,r[17]=t):t=r[17];let n=K(),s;r[18]===u?s=r[19]:(s=u.charAt(0).toUpperCase(),r[18]=u,r[19]=s);let c;return r[20]===f?c=r[21]:(c=f.charAt(0).toUpperCase(),r[20]=f,r[21]=c),o(p,{title:t,children:a(l,{classes:W,className:i,style:n,role:`img`,"aria-label":e,...q,children:[s,c]})})}if(h){let e=`${h}${G}`,t;r[22]!==Y||r[23]!==e?(t=Y(e),r[22]=Y,r[23]=e,r[24]=t):t=r[24];let n=K(),a;return r[25]===h?a=r[26]:(a=h.charAt(0).toUpperCase(),r[25]=h,r[26]=a),o(p,{title:t,children:o(l,{classes:W,className:i,style:n,role:`img`,"aria-label":e,...q,children:a})})}if(C){let e=o(l,{classes:W,className:i,style:K(),...q,children:C});return h?o(p,{title:Y(`${h}${G}`),children:e}):e}if(w)return o(l,{classes:W,className:i,style:K(),...q,children:w});let X=l,Z=K(),Q;r[27]===Symbol.for(`react.memo_cache_sentinel`)?(Q=o(t,{}),r[27]=Q):Q=r[27];let $;return r[28]!==X||r[29]!==i||r[30]!==W||r[31]!==q||r[32]!==Z?($=o(X,{classes:W,className:i,style:Z,...q,children:Q}),r[28]=X,r[29]=i,r[30]=W,r[31]=q,r[32]=Z,r[33]=$):$=r[33],$}var j=e=>{let t=(0,g.c)(21),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({activeAt:n,showPresenceStatus:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?!0:i,{classes:s,cx:c}=k(),l;bb0:{if(!n){l=null;break bb0}let e=(0,h.default)().diff((0,h.default)(n),`minute`);if(e<=C){l=`online`;break bb0}if(e<=w){l=`away`;break bb0}l=`offline`}let d=l;if(a&&d){let e=d===`online`,n=d===`away`,i=d===`offline`,a;t[4]!==s.away||t[5]!==s.offline||t[6]!==s.online||t[7]!==c||t[8]!==e||t[9]!==n||t[10]!==i?(a=c({[s.online]:e,[s.away]:n,[s.offline]:i}),t[4]=s.away,t[5]=s.offline,t[6]=s.online,t[7]=c,t[8]=e,t[9]=n,t[10]=i,t[11]=a):a=t[11];let l;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(l={vertical:`bottom`,horizontal:`right`},t[12]=l):l=t[12];let f=`User is ${d}`,p;t[13]===r?p=t[14]:(p=o(A,{...r}),t[13]=r,t[14]=p);let m;return t[15]!==a||t[16]!==f||t[17]!==p?(m=o(u,{className:a,overlap:`circular`,variant:`dot`,anchorOrigin:l,"aria-label":f,children:p}),t[15]=a,t[16]=f,t[17]=p,t[18]=m):m=t[18],m}let f;return t[19]===r?f=t[20]:(f=o(A,{...r}),t[19]=r,t[20]=f),f};export{y as a,x as i,D as n,S as r,j as t};

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.