PageSourceSearch

https://www.ibabbleon.com/dashboard/assets/avatar-TpgCIGvx.js

js ibabbleon.com collected 2026-09-24 08:44:08 UTC 5,091 bytes, 83 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:`282cc9b677652e6fae2b78ae8486f8251e72ce64`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`14ea5f34-a100-4280-bfbd-87b58e0d0cf8`,e._sentryDebugIdIdentifier=`sentry-dbid-14ea5f34-a100-4280-bfbd-87b58e0d0cf8`)}catch{}})();import{ct as e,pt as t}from"./reactivity.esm-bundler-CEB7aCG7.js";import{D as n,F as r,H as i,d as a,f as o,u as s,z as c}from"./runtime-core.esm-bundler-B4qKrkxs.js";import{t as l}from"./style-BTGxmFmA.js";import{t as u}from"./classnames-BZH7jR3u.js";import{t as d}from"./basecomponent-BH18ut7-.js";var f=l.extend({name:`avatar`,style:`
2    .p-avatar {
3        display: inline-flex;
4        align-items: center;
5        justify-content: center;
6        width: dt('avatar.width');
7        height: dt('avatar.height');
8        font-weight: dt('avatar.font.weight');
9        font-size: dt('avatar.font.size');
10        background: dt('avatar.background');
11        color: dt('avatar.color');
12        border-radius: dt('avatar.border.radius');
13    }
14
15    .p-avatar-image {
16        background: transparent;
17    }
18
19    .p-avatar-circle {
20        border-radius: 50%;
21    }
22
23    .p-avatar-circle img {
24        border-radius: 50%;
25    }
26
27    .p-avatar-icon {
28        font-size: dt('avatar.icon.size');
29        width: dt('avatar.icon.size');
30        height: dt('avatar.icon.size');
31    }
32
33    .p-avatar img {
34        width: 100%;
35        height: 100%;
36    }
37
38    .p-avatar-lg {
39        width: dt('avatar.lg.width');
40        height: dt('avatar.lg.width');
41        font-size: dt('avatar.lg.font.size');
42    }
43
44    .p-avatar-lg .p-avatar-icon {
45        font-size: dt('avatar.lg.icon.size');
46        width: dt('avatar.lg.icon.size');
47        height: dt('avatar.lg.icon.size');
48    }
49
50    .p-avatar-xl {
51        width: dt('avatar.xl.width');
52        height: dt('avatar.xl.width');
53        font-size: dt('avatar.xl.font.size');
54    }
55
56    .p-avatar-xl .p-avatar-icon {
57        font-size: dt('avatar.xl.icon.size');
58        width: dt('avatar.xl.icon.size');
59        height: dt('avatar.xl.icon.size');
60    }
61
62    .p-avatar-group {
63        display: flex;
64        align-items: center;
65    }
66
67    .p-avatar-group .p-avatar + .p-avatar {
68        margin-inline-start: dt('avatar.group.offset');
69    }
70
71    .p-avatar-group .p-avatar {
72        border: 2px solid dt('avatar.group.border.color');
73    }
74
75    .p-avatar-group .p-avatar-lg + .p-avatar-lg {
76        margin-inline-start: dt('avatar.lg.group.offset');
77    }
78
79    .p-avatar-group .p-avatar-xl + .p-avatar-xl {
80        margin-inline-start: dt('avatar.xl.group.offset');
81    }
82`,classes:{root:function(e){var t=e.props;return[`p-avatar p-component`,{"p-avatar-image":t.image!=null,"p-avatar-circle":t.shape===`circle`,"p-avatar-lg":t.size===`large`,"p-avatar-xl":t.size===`xlarge`}]},label:`p-avatar-label`,icon:`p-avatar-icon`}}),p={name:`BaseAvatar`,extends:d,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:`normal`},shape:{type:String,default:`square`},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:f,provide:function(){return{$pcAvatar:this,$parentInstance:this}}};function m(e){"@babel/helpers - typeof";return m=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},m(e)}function h(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){var t=_(e,`string`);return m(t)==`symbol`?t:t+``}function _(e,t){if(m(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(m(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var v={name:`Avatar`,extends:p,inheritAttrs:!1,emits:[`error`],methods:{onError:function(e){this.$emit(`error`,e)}},computed:{dataP:function(){return u(h(h({},this.shape,this.shape),this.size,this.size))}}},y=[`aria-labelledby`,`aria-label`,`data-p`],b=[`data-p`],x=[`data-p`],S=[`src`,`alt`,`data-p`];function C(l,u,d,f,p,m){return r(),o(`div`,n({class:l.cx(`root`),"aria-labelledby":l.ariaLabelledby,"aria-label":l.ariaLabel},l.ptmi(`root`),{"data-p":m.dataP}),[c(l.$slots,`default`,{},function(){return[l.label?(r(),o(`span`,n({key:0,class:l.cx(`label`)},l.ptm(`label`),{"data-p":m.dataP}),t(l.label),17,b)):l.$slots.icon?(r(),s(i(l.$slots.icon),{key:1,class:e(l.cx(`icon`))},null,8,[`class`])):l.icon?(r(),o(`span`,n({key:2,class:[l.cx(`icon`),l.icon]},l.ptm(`icon`),{"data-p":m.dataP}
82),null,16,x)):l.image?(r(),o(`img`,n({key:3,src:l.image,alt:l.ariaLabel,onError:u[0]||=function(){return m.onError&&m.onError.apply(m,arguments)}},l.ptm(`image`),{"data-p":m.dataP}),null,16,S)):a(``,!0)]})],16,y)}v.render=C;export{v as t};
83//# sourceMappingURL=avatar-TpgCIGvx.js.map

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.