PageSourceSearch

https://prudtorg.ru/bitrix/js/ui/vue3/components/avatar/dist/avatar.bundle.js?17713392211906

js prudtorg.ru collected 2026-10-04 20:10:36 UTC 1,906 bytes, 67 lines download raw bytes

1/* eslint-disable */
2this.BX = this.BX || {};
3this.BX.UI = this.BX.UI || {};
4this.BX.UI.Vue3 = this.BX.UI.Vue3 || {};
5(function (exports,ui_avatar,ui_vue3) {
6	'use strict';
7
8	const AvatarConcreteClassByType = Object.freeze({
9	  round: ui_avatar.AvatarRound,
10	  'round-guest': ui_avatar.AvatarRoundGuest,
11	  'round-extranet': ui_avatar.AvatarRoundExtranet,
12	  'round-accent': ui_avatar.AvatarRoundAccent,
13	  hexagon: ui_avatar.AvatarHexagon,
14	  'hexagon-guest': ui_avatar.AvatarHexagonGuest,
15	  'hexagon-extranet': ui_avatar.AvatarHexagonExtranet,
16	  'hexagon-accent': ui_avatar.AvatarHexagonAccent,
17	  square: ui_avatar.AvatarSquare,
18	  'square-guest': ui_avatar.AvatarSquareGuest,
19	  'square-extranet': ui_avatar.AvatarSquareExtranet,
20	  'square-accent': ui_avatar.AvatarSquareAccent
21	});
22
23	// @vue/component
24	const Avatar = {
25	  name: 'UiAvatar',
26	  props: {
27	    options: {
28	      /** @type AvatarOptions */
29	      type: Object,
30	      required: false,
31	      default: () => ({})
32	    },
33	    type: {
34	      /** @type AvatarType */
35	      type: String,
36	      required: false,
37	      default: 'round',
38	      validator(val) {
39	        return Object.keys(AvatarConcreteClassByType).includes(val);
40	      }
41	    }
42	  },
43	  data() {
44	    return {
45	      size: null
46	    };
47	  },
48	  created() {
49	    var _this$options$size;
50	    const ConcreteClass = AvatarConcreteClassByType[this.type];
51
52	    /** @type AvatarBase */
53	    this.instance = new ConcreteClass(this.options);
54	    this.size = (_this$options$size = this.options.size) != null ? _this$options$size : null;
55	  },
56	  mounted() {
57	    this.instance.renderTo(this.$refs.container);
58	  },
59	  template: `
60		<div ref="container" :style="{ 'width': size + 'px', 'height': size + 'px'}"></div>
61	`
62	};
63
64	exports.Avatar = Avatar;
65
66}((this.BX.UI.Vue3.Components = this.BX.UI.Vue3.Components || {}),BX.UI,BX.Vue3));
67//# sourceMappingURL=avatar.bundle.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.