claude-web/node_modules/primevue/avatar/index.mjs.map

1 line
6.5 KiB
Plaintext
Raw Normal View History

2026-02-23 02:23:38 +00:00
{"version":3,"file":"index.mjs","sources":["../../src/avatar/BaseAvatar.vue","../../src/avatar/Avatar.vue","../../src/avatar/Avatar.vue?vue&type=template&id=09391380&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport AvatarStyle from 'primevue/avatar/style';\n\nexport default {\n name: 'BaseAvatar',\n extends: BaseComponent,\n props: {\n label: {\n type: String,\n default: null\n },\n icon: {\n type: String,\n default: null\n },\n image: {\n type: String,\n default: null\n },\n size: {\n type: String,\n default: 'normal'\n },\n shape: {\n type: String,\n default: 'square'\n },\n ariaLabelledby: {\n type: String,\n default: null\n },\n ariaLabel: {\n type: String,\n default: null\n }\n },\n style: AvatarStyle,\n provide() {\n return {\n $pcAvatar: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <div :class=\"cx('root')\" :aria-labelledby=\"ariaLabelledby\" :aria-label=\"ariaLabel\" v-bind=\"ptmi('root')\" :data-p=\"dataP\">\n <slot>\n <span v-if=\"label\" :class=\"cx('label')\" v-bind=\"ptm('label')\" :data-p=\"dataP\">{{ label }}</span>\n <component v-else-if=\"$slots.icon\" :is=\"$slots.icon\" :class=\"cx('icon')\" />\n <span v-else-if=\"icon\" :class=\"[cx('icon'), icon]\" v-bind=\"ptm('icon')\" :data-p=\"dataP\" />\n <img v-else-if=\"image\" :src=\"image\" :alt=\"ariaLabel\" @error=\"onError\" v-bind=\"ptm('image')\" :data-p=\"dataP\" />\n </slot>\n </div>\n</template>\n\n<script>\nimport { cn } from '@primeuix/utils';\nimport BaseAvatar from './BaseAvatar.vue';\n\nexport default {\n name: 'Avatar',\n extends: BaseAvatar,\n inheritAttrs: false,\n emits: ['error'],\n methods: {\n onError(event) {\n this.$emit('error', event);\n }\n },\n computed: {\n dataP() {\n return cn({\n [this.shape]: this.shape,\n [this.size]: this.size\n });\n }\n }\n};\n</script>\n","<template>\n <div :class=\"cx('root')\" :aria-labelledby=\"ariaLabelledby\" :aria-label=\"ariaLabel\" v-bind=\"ptmi('root')\" :data-p=\"dataP\">\n <slot>\n <span v-if=\"label\" :class=\"cx('label')\" v-bind=\"ptm('label')\" :data-p=\"dataP\">{{ label }}</span>\n <component v-else-if=\"$slots.icon\" :is=\"$slots.icon\" :class=\"cx('icon')\" />\n <span v-else-if=\"icon\" :class=\"[cx('icon'), icon]\" v-bind=\"ptm('icon')\" :data-p=\"dataP\" />\n <img v-else-if=\"image\" :src=\"image\" :alt=\"ariaLabel\" @error=\"onError\" v-bind=\"ptm('image')\" :data-p=\"dataP\" />\n </slot>\n </div>\n</template>\n\n<script>\nimport { cn } from '@primeuix/utils';\nimport BaseAvatar from './BaseAvatar.vue';\n\nexport default {\n name: 'Avatar',\n extends: BaseAvatar,\n inheritAttrs: false,\n emits: ['error'],\n methods: {\n onError(event) {\n this.$emit('error', event);\n }\n },\n computed: {\n dataP() {\n return cn({\n [this.shape]: this.shape,\n [this.size]: this.size\n });\n }\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","label","type","String","icon","image","size","shape","ariaLabelledby","ariaLabel","style","AvatarStyle","provide","$pcAvatar","$parentInstance","BaseAvatar","inheritAttrs","emits","methods","onError","event","$emit","computed","dataP","cn","_defineProperty","_openBlock","_createElementBlock","_mergeProps","_ctx","cx","ptmi","$options","_renderSlot","ptm","_hoisted_2","$slots","_createBlock","_resolveDynamicComponent","_hoisted_3","src","alt","apply","arguments","_hoisted_4"],"mappings":";;;;;AAIA,eAAe;AACXA,EAAAA,I