"use strict";(self["webpackChunkaw_webui"]=self["webpackChunkaw_webui"]||[]).push([[4792],{14792:(t,i,e)=>{e.r(i),e.d(i,{default:()=>g});let n={};const r={name:"fa-icon",props:{name:{type:String,validator(t){return!t||t in n||(console.warn(`Invalid prop: prop "name" is referring to an unregistered icon "${t}".\nPlease make sure you have imported this icon before using it.`),!1)}},title:String,scale:[Number,String],spin:Boolean,inverse:Boolean,pulse:Boolean,flip:{validator(t){return"horizontal"===t||"vertical"===t}},label:String,tabindex:[Number,String]},data(){return{id:h(),x:!1,y:!1,childrenWidth:0,childrenHeight:0,outerScale:1}},computed:{normalizedScale(){let t=this.scale;return t="undefined"===typeof t?1:Number(t),isNaN(t)||t<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.',this),this.outerScale):t*this.outerScale},klass(){return{"fa-icon":!0,"fa-spin":this.spin,"fa-flip-horizontal":"horizontal"===this.flip,"fa-flip-vertical":"vertical"===this.flip,"fa-inverse":this.inverse,"fa-pulse":this.pulse,[this.$options.name]:!0}},icon(){return this.name?n[this.name]:null},box(){return this.icon?`0 0 ${this.icon.width} ${this.icon.height}`:`0 0 ${this.width} ${this.height}`},ratio(){if(!this.icon)return 1;let{width:t,height:i}=this.icon;return Math.max(t,i)/16},width(){return this.childrenWidth||this.icon&&this.icon.width/this.ratio*this.normalizedScale||0},height(){return this.childrenHeight||this.icon&&this.icon.height/this.ratio*this.normalizedScale||0},style(){return 1!==this.normalizedScale&&{fontSize:this.normalizedScale+"em"}},raw(){if(!this.icon||!this.icon.raw)return null;let t=this.icon.raw,i={};return t=t.replace(/\s(?:xml:)?id=(["']?)([^"')\s]+)\1/g,((t,e,n)=>{let r=h();return i[n]=r,` id="${r}"`})),t=t.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,((t,e,n,r)=>{let s=e||r;return s&&i[s]?`#${i[s]}`:t})),t},focusable(){let{tabindex:t}=this;if(null==t)return"false";let i="string"===typeof t?parseInt(t,10):t;return i>=0?null:"false"}},mounted(){this.updateStack()},updated(){this.updateStack()},methods:{updateStack(){if(!this.name&&null!==this.name&&0===this.$children.length)return void console.warn('Invalid prop: prop "name" is required.');if(this.icon)return;let t=0,i=0;this.$children.forEach((e=>{e.outerScale=this.normalizedScale,t=Math.max(t,e.width),i=Math.max(i,e.height)})),this.childrenWidth=t,this.childrenHeight=i,this.$children.forEach((e=>{e.x=(t-e.width)/2,e.y=(i-e.height)/2}))}},render(t){if(null===this.name)return t();let i={class:this.klass,style:this.style,attrs:{role:this.$attrs.role||(this.label||this.title?"img":null),"aria-label":this.label||null,"aria-hidden":String(!(this.label||this.title)),tabindex:this.tabindex,x:this.x,y:this.y,width:this.width,height:this.height,viewBox:this.box,focusable:this.focusable}},e=`vat-${this.id}`;if(this.title&&(i.attrs["aria-labelledby"]=e),this.raw){let t=this.raw;this.title&&(t=`<title id="${e}">${o(this.title)}</title>${t}`),i.domProps={innerHTML:t}}let n=this.title?[t("title",{attrs:{id:e}},this.title)]:[];return t("svg",i,this.raw?null:n.concat(this.$slots.default||[...this.icon.paths.map(((i,e)=>t("path",{attrs:i,key:`path-${e}`}))),...this.icon.polygons.map(((i,e)=>t("polygon",{attrs:i,key:`polygon-${e}`})))]))},register(t){for(let i in t){let e=t[i],{paths:r=[],d:l,polygons:h=[],points:a}=e;l&&r.push({d:l}),a&&h.push({points:a}),n[i]=s({},e,{paths:r,polygons:h})}},icons:n};function s(t,...i){return i.forEach((i=>{for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])})),t}let l=870711;function h(){return`va-${(l++).toString(16)}`}const a={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function o(t){return t.replace(/[<>"&]/g,(t=>a[t]||t))}const u=r;var c,d,p=e(1001),f=(0,p.Z)(u,c,d,!1,null,null,null);const g=f.exports}}]);
//# sourceMappingURL=4792.dc6ab249.js.map