1 line
1.5 KiB
JavaScript
1 line
1.5 KiB
JavaScript
import{S as d,c as o,a as l,d as f,e as m,m as u,b as p,t as c,f as y}from"./index-CFSywFfb.js";import{A as r}from"./XPro-CT_nc-YB.js";function v(s){let t,i;return t=new r({props:{src:s[0],alt:s[1],width:"w-32",rounded:"rounded-full",initials:s[1]}}),{c(){f(t.$$.fragment)},l(e){m(t.$$.fragment,e)},m(e,a){u(t,e,a),i=!0},p(e,[a]){const n={};a&1&&(n.src=e[0]),a&2&&(n.alt=e[1]),a&2&&(n.initials=e[1]),t.$set(n)},i(e){i||(p(t.$$.fragment,e),i=!0)},o(e){c(t.$$.fragment,e),i=!1},d(e){y(t,e)}}}function g(s,t,i){let{avatar:e=""}=t,{displayName:a=""}=t;return s.$$set=n=>{"avatar"in n&&i(0,e=n.avatar),"displayName"in n&&i(1,a=n.displayName)},[e,a]}class w extends d{constructor(t){super(),o(this,t,g,v,l,{avatar:0,displayName:1})}}r.__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{w as A};
|