PageSourceSearch

https://www.unoform.com/gui/dist/cmp-partials-file-area-file-area.js

js unoform.com collected 2026-10-08 17:35:11 UTC 2,638 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkathena=globalThis.webpackChunkathena||[]).push([[9563],{4498:(e,i,t)=>{t.r(i),t.d(i,{FileArea:()=>r});var a=t(538);const s={name:"file-area",props:{files:{type:[Array,Object]},onRemoveFile:Function,aspectRatio:Number,hideName:{type:Boolean,default:!1}},data:()=>({localFiles:[],multiple:!1}),methods:{removeFile(e){this.onRemoveFile({file:this.files[e],index:e})}},watch:{files(){this.localFiles=this.files?Array.isArray(this.files)?this.files:[this.files]:[],this.multiple=this.files&&Array.isArray(this.files)}},mounted(){this.localFiles=this.files?Array.isArray(this.files)?this.files:[this.files]:[],this.multiple=this.files&&Array.isArray(this.files)}};const l=(0,t(1900).Z)(s,(function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"file-area",class:{"file-area--multiple":e.multiple}},[e.$slots.default?t("div",{staticClass:"file-area__item"},[e._t("default")],2):e._e(),e._v(" "),e._l(e.localFiles,(function(i,a){return t("div",{key:i.Id,staticClass:"file-area__item"},[i.loading?t("div",{staticClass:"file-area__preview-container"},[t("div",{staticClass:"file-area__file-loading"})]):t("div",{staticClass:"file-area__preview-container"},[i.Url?e._e():t("div",{staticClass:"file-area__preview-default"}),e._v(" "),e.aspectRatio&&i.Url?t("img",{staticClass:"file-area__preview-image image__img",attrs:{src:i.Url+"?mode=crop&width=180&heightratio="+e.aspectRatio}}):e._e(),e._v(" "),!e.aspectRatio&&i.Url?t("img",{staticClass:"file-area__preview-image image__img",attrs:{src:i.Url+"?width=180"}}):e._e(),e._v(" "),t("div",{staticClass:"file-area__remove-file",on:{click:function(i){return e.removeFile(a)}}})]),e._v(" "),e.hideName?e._e():t("div",{staticClass:"file-area__file-name"},[e._v(e._s(i.Name))])])}))],2)}),[],!1,null,null,null).exports,r=a.default.component("a-file-area",l)},1900:(e,i,t)=>{function a(e,i,t,a,s,l,r,n){var o,c="function"==typeof e?e.options:e;if(i&&(c.render=i,c.staticRenderFns=t,c._compiled=!0),a&&(c.functional=!0),l&&(c._scopeId="data-v-"+l),r?(o=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=o):s&&(o=n?function(){s.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:s),o)if(c.functional){c._injectStyles=o;var _=c.render;c.render=function(e,i){return o.call(i),_(e,i)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,o):[o]}return{exports:e,options:c}}t.d(i,{Z:()=>a})}}]);

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.