parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"QdEO":[function(require,module,exports) {
module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}};
},{}],"vOEm":[function(require,module,exports) {
"use strict";function t(t){return"application/pdf"===t?"picture_as_pdf":t.startsWith("application")?"insert_drive_file":t.startsWith("image")?"crop_original":t.startsWith("video")?"videocam":t.startsWith("code")?"code":t.startsWith("audio")?"audiotrack":"save"}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"9is1":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("../../../mixins/interface")),t=i(require("./get-icon"));function i(e){return e&&e.__esModule?e:{default:e}}var u={mixins:[e.default],data:function(){return{error:null}},computed:{filetype:function(){return this.value?this.value.type:null},isImage:function(){return this.filetype&&this.filetype.startsWith("image")},icon:function(){return(0,t.default)(this.filetype)},imageUrl:function(){return this.isImage?this.value&&this.value.data&&this.value.data.thumbnails&&this.value.data.thumbnails[0]&&this.value.data.thumbnails[0].url:null}},methods:{handleImageError:function(e){this.error=e}}};exports.default=u;
(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,a=e.$createElement,r=e._self._c||a;return r("div",{staticClass:"readonly-single-file no-wrap"},[e.imageUrl&&!e.error?r("img",{attrs:{src:e.imageUrl},on:{error:e.handleImageError}}):e.error?r("i",{staticClass:"material-icons"},[e._v("broken_image")]):e.value?r("span",{directives:[{name:"tooltip",rawName:"v-tooltip.right",value:e.value&&e.value.filename,expression:"value && value.filename",modifiers:{right:!0}}],staticClass:"material-icons"},[e._v(e._s(e.icon))]):r("span",[e._v("--")])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-2f71ad",functional:void 0});})();
},{"../../../mixins/interface":"QdEO","./get-icon":"vOEm"}]},{},["9is1"], "__DirectusExtension__")