import{L as u,ah as d,ao as o,a_ as l,av as c,b9 as b,ca as f}from"./app-k0jcl5PQ.js";import{A as p}from"./BEDdXV-K.chunk.js";const y=["amber","apricot","aqua","azure","black","blue","bronze","brown","chocolate","copper","coral","cream","crimson","cyan","emerald","gold","green","grey","indigo","ivory","jade","lavender","lime","maroon","mint","navy","olive","orange","peach","pink","plum","purple","red","rose","ruby","sage","salmon","sapphire","scarlet","silver","sky","teal","turquoise","violet","white","yellow"],w=["aardvark","albatross","alligator","alpaca","ant","anteater","antelope","ape","armadillo","baboon","badger","bat","bear","beaver","bee","beetle","bison","blackbird","boar","bobcat","bonobo","buffalo","butterfly","camel","canary","capybara","caribou","cat","caterpillar","chameleon","cheetah","chimpanzee","chinchilla","chipmunk","clownfish","cockatoo","cougar","cow","coyote","crab","crane","crocodile","crow","deer","dingo","dog","dolphin","donkey","dove","dragonfly","duck","eagle","elephant","elk","emu","falcon","ferret","finch","firefly","fish","flamingo","fox","frog","gazelle","gecko","gerbil","giraffe","goat","goldfish","goose","gorilla","grasshopper","gull","hamster","hare","hawk","hedgehog","heron","hippopotamus","horse","hummingbird","iguana","impala","jaguar","jellyfish","kangaroo","kingfisher","kiwi","koala","koi","ladybug","lemur","leopard","lion","lizard","llama","lobster","lynx","macaw","magpie","manatee","mandrill","marlin","meerkat","mole","mongoose","monkey","moose","mouse","mule","narwhal","newt","nightingale","ocelot","octopus","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","peacock","pelican","penguin","pheasant","pigeon","platypus","pony","porcupine","possum","pufferfish","puffin","puma","quail","rabbit","raccoon","raven","reindeer","rhinoceros","roadrunner","robin","rooster","salamander","salmon","seahorse","seal","shark","sheep","sloth","snail","snake","sparrow","squid","squirrel","starfish","stingray","stork","swallow","swan","swordfish","tapir","tiger","toad","tortoise","toucan","trout","tuna","turtle","wallaby","walrus","weasel","whale","wildebeest","wolf","wolverine","woodpecker","yak","zebra"],n={colours:y,animals:w},v="shared.analyticsUtils",i=u.encloseNamespace(v);function g(e){return e.charAt(0).toUpperCase()+e.slice(1)}function k(e){if(!e)return 0;let a=0;for(let r=0;r<e.length;r++){const s=e.charCodeAt(r);a=(a<<5)-a+s,a|=0}return Math.abs(a)}function x(e,a){const r=Math.floor(new Date().getMinutes()/5),s=k(`${e||a}-${r}`),m=n.colours[s%n.colours.length],h=n.animals[Math.floor(s/n.colours.length)%n.animals.length];return`${g(m)} ${g(h)}`}function N(e,a){return e?a?x(e.id,e.sessionId):e.deleted?i("deleted"):d.getFullName(e)||i("anonUser"):i("anonUser")}const C="_iconCircle_186sk_1",j="_dot_186sk_8",t={iconCircle:C,dot:j};function S(e){const a=e.type==="anon";return e.type==="student-reach"?o.jsx("div",{className:"position-relative h-100 w-100",children:o.jsx("div",{className:`${t.iconCircle} bg-orange text-light ${e.extraClasses||""}`,children:o.jsx(l,{svg:b,size:e.anonymousSvgSize||c.Large,className:"svg-container w-100 h-100"})})}):a?o.jsxs("div",{className:"position-relative h-100 w-100",children:[o.jsx("div",{className:`${t.iconCircle} bg-gray-700 text-light ${e.extraClasses||""}`,children:o.jsx(l,{svg:p,size:e.anonymousSvgSize||c.Large,className:"svg-container w-100 h-100"})}),e.showDot&&o.jsx("div",{className:`${t.dot} rounded-circle bg-danger`})]}):o.jsx(f,{imageCdnUrl:e.imageCdnUrl,initials:e.initials,imageUrl:e.imageUrl,extraClasses:e.extraClasses,showDot:e.showDot,anonymiseUsers:e.anonymiseUsers})}export{S as E,N as a};
//# sourceMappingURL=BzIt8QkE.chunk.js.map
