import{S as u,c as s,a as m,d,e as r,m as C,b as f,t as p,f as v}from"./index-CP70Tq58.js";import{A as c}from"./XPro-DLv5pwJ7.js";function n(){var t="/home/andre/src/svelte/Anvil/src/lib/components/atoms/Avatar.svelte",A="9eb4753c18fcb11420144f63faf7af1512aa7788",i=window,e="__coverage__",o={path:"/home/andre/src/svelte/Anvil/src/lib/components/atoms/Avatar.svelte",statementMap:{0:{start:{line:21,column:1},end:{line:29,column:5}},1:{start:{line:31,column:1},end:{line:61,column:3}},2:{start:{line:33,column:3},end:{line:33,column:42}},3:{start:{line:36,column:3},end:{line:36,column:48}},4:{start:{line:39,column:3},end:{line:39,column:45}},5:{start:{line:40,column:3},end:{line:40,column:18}},6:{start:{line:43,column:28},end:{line:43,column:30}},7:{start:{line:44,column:3},end:{line:44,column:70}},8:{start:{line:44,column:29},end:{line:44,column:70}},9:{start:{line:45,column:3},end:{line:45,column:80}},10:{start:{line:45,column:34},end:{line:45,column:80}},11:{start:{line:46,column:3},end:{line:46,column:85}},12:{start:{line:46,column:34},end:{line:46,column:85}},13:{start:{line:47,column:3},end:{line:47,column:35}},14:{start:{line:50,column:3},end:{line:50,column:23}},15:{start:{line:50,column:16},end:{line:50,column:23}},16:{start:{line:51,column:3},end:{line:51,column:46}},17:{start:{line:52,column:3},end:{line:52,column:18}},18:{start:{line:55,column:3},end:{line:55,column:47}},19:{start:{line:56,column:3},end:{line:56,column:19}},20:{start:{line:59,column:3},end:{line:59,column:42}},21:{start:{line:65,column:23},end:{line:65,column:30}},22:{start:{line:66,column:28},end:{line:66,column:35}},23:{start:{line:68,column:1},end:{line:71,column:3}},24:{start:{line:69,column:2},end:{line:69,column:68}},25:{start:{line:69,column:27},end:{line:69,column:68}},26:{start:{line:70,column:2},end:{line:70,column:83}},27:{start:{line:70,column:32},end:{line:70,column:83}},28:{start:{line:73,column:1},end:{line:73,column:30}},29:{start:{line:78,column:2},end:{line:78,column:10}},30:{start:{line:79,column:2},end:{line:79,column:96}},31:{start:{line:83,column:25},end:{line:83,column:971}}},fnMap:{0:{name:"create_fragment",decl:{start:{line:17,column:9},end:{line:17,column:24}},loc:{start:{line:17,column:30},end:{line:62,column:1}},line:17},1:{name:"(anonymous_1)",decl:{start:{line:32,column:2},end:{line:32,column:3}},loc:{start:{line:32,column:6},end:{line:34,column:3}},line:32},2:{name:"(anonymous_2)",decl:{start:{line:35,column:2},end:{line:35,column:3}},loc:{start:{line:35,column:11},end:{line:37,column:3}},line:35},3:{name:"(anonymous_3)",decl:{start:{line:38,column:2},end:{line:38,column:3}},loc:{start:{line:38,column:20},end:{line:41,column:3}},line:38},4:{name:"(anonymous_4)",decl:{start:{line:42,column:2},end:{line:42,column:3}},loc:{start:{line:42,column:18},end:{line:48,column:3}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:49,column:2},end:{line:49,column:3}},loc:{start:{line:49,column:11},end:{line:53,column:3}},line:49},6:{name:"(anonymous_6)",decl:{start:{line:54,column:2},end:{line:54,column:3}},loc:{start:{line:54,column:11},end:{line:57,column:3}},line:54},7:{name:"(anonymous_7)",decl:{start:{line:58,column:2},end:{line:58,column:3}},loc:{start:{line:58,column:15},end:{line:60,column:3}},line:58},8:{name:"instance",decl:{start:{line:64,column:9},end:{line:64,column:17}},loc:{start:{line:64,column:49},end:{line:74,column:1}},line:64},9:{name:"(anonymous_9)",decl:{start:{line:68,column:16},end:{line:68,column:17}},loc:{start:{line:68,column:27},end:{line:71,column:2}},line:68},10:{name:"(anonymous_10)",decl:{start:{line:77,column:1},end:{line:77,column:2}},loc:{start:{line:77,column:22},end:{line:80,column:2}},line:77}},branchMap:{0:{loc:{start:{line:44,column:3},end:{line:44,column:70}},type:"if",locations:[{start:{line:44,column:3},end:{line:44,column:70}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},1:{loc:{start:{line:45,column:3},end:{line:45,column:80}},type:"if",locations:[{start:{line:45,column:3},end:{line:45,column:80}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:45},2:{loc:{start:{line:46,column:3},end:{line:46,column:85}},type:"if",locations:[{start:{line:46,column:3},end:{line:46,column:85}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:46},3:{loc:{start:{line:50,column:3},end:{line:50,column:23}},type:"if",locations:[{start:{line:50,column:3},end:{line:50,column:23}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:50},4:{loc:{start:{line:65,column:7},end:{line:65,column:18}},type:"default-arg",locations:[{start:{line:65,column:16},end:{line:65,column:18}}],line:65},5:{loc:{start:{line:66,column:7},end:{line:66,column:23}},type:"default-arg",locations:[{start:{line:66,column:21},end:{line:66,column:23}}],line:66},6:{loc:{start:{line:69,column:2},end:{line:69,column:68}},type:"if",locations:[{start:{line:69,column:2},end:{line:69,column:68}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:69},7:{loc:{start:{line:70,column:2},end:{line:70,column:83}},type:"if",locations:[{start:{line:70,column:2},end:{line:70,column:83}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:70}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0],5:[0],6:[0,0],7:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/andre/src/svelte/Anvil/src/lib/components/atoms/Avatar.svelte"],names:[],mappings:";;;;;;;;;;;;;;AAcU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,QAAQ,CAAwB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;;oBAenC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;yBAAO,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;8BAAgD,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;+DAAnF,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;yEAAO,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;8EAAgD,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;AATpF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,GAAG,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAMX,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,GAAG,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9eb4753c18fcb11420144f63faf7af1512aa7788"},l=i[e]||(i[e]={});(!l[t]||l[t].hash!==A)&&(l[t]=o);var a=l[t];return n=function(){return a},a}n();function y(t){n().f[0]++;let A,i;return n().s[0]++,A=new c({props:{src:t[0],alt:t[1],width:"w-32",rounded:"rounded-full",initials:t[1]}}),n().s[1]++,{c(){n().f[1]++,n().s[2]++,d(A.$$.fragment)},l(e){n().f[2]++,n().s[3]++,r(A.$$.fragment,e)},m(e,o){n().f[3]++,n().s[4]++,C(A,e,o),n().s[5]++,i=!0},p(e,[o]){n().f[4]++;const l=(n().s[6]++,{});n().s[7]++,o&1?(n().b[0][0]++,n().s[8]++,l.src=e[0]):n().b[0][1]++,n().s[9]++,o&2?(n().b[1][0]++,n().s[10]++,l.alt=e[1]):n().b[1][1]++,n().s[11]++,o&2?(n().b[2][0]++,n().s[12]++,l.initials=e[1]):n().b[2][1]++,n().s[13]++,A.$set(l)},i(e){if(n().f[5]++,n().s[14]++,i){n().b[3][0]++,n().s[15]++;return}else n().b[3][1]++;n().s[16]++,f(A.$$.fragment,e),n().s[17]++,i=!0},o(e){n().f[6]++,n().s[18]++,p(A.$$.fragment,e),n().s[19]++,i=!1},d(e){n().f[7]++,n().s[20]++,v(A,e)}}}function b(t,A,i){n().f[8]++;let{avatar:e=(n().b[4][0]++,"")}=(n().s[21]++,A),{displayName:o=(n().b[5][0]++,"")}=(n().s[22]++,A);return n().s[23]++,t.$$set=l=>{n().f[9]++,n().s[24]++,"avatar"in l?(n().b[6][0]++,n().s[25]++,i(0,e=l.avatar)):n().b[6][1]++,n().s[26]++,"displayName"in l?(n().b[7][0]++,n().s[27]++,i(1,o=l.displayName)):n().b[7][1]++},n().s[28]++,[e,o]}class h extends u{constructor(A){n().f[10]++,n().s[29]++,super(),n().s[30]++,s(this,A,b,y,m,{avatar:0,displayName:1})}}n().s[31]++;c.__docgen={version:3,name:"Avatar.svelte",data:[{keywords:[{name:"type",description:"{string | undefined}"}],visibility:"public",description:"URL to Avatar image.",name:"avatar",kind:"let",static:!1,readonly:!1,type:{kind:"union",text:"string | undefined",type:[{kind:"type",text:"string",type:"string"},{kind:"type",text:"undefined",type:"undefined"}]},defaultValue:""},{keywords:[{name:"type",description:"{string | undefined}"}],visibility:"public",description:"Name to derive initials from if no avatar is given.",name:"displayName",kind:"let",static:!1,readonly:!1,type:{kind:"union",text:"string | undefined",type:[{kind:"type",text:"string",type:"string"},{kind:"type",text:"undefined",type:"undefined"}]},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{h as A}; //# sourceMappingURL=Avatar-CUHWuSMc.js.map