File: /home/nepi/public_html/public/admin/js/chunk-8e696ca2.a7e15d3a.js.map
{"version":3,"sources":["webpack:///./src/interfaces/translation/display.vue?101c","webpack:///./node_modules/@directus/extension-toolkit/mixins/interface.js","webpack:///./src/interfaces/translation/display.vue?c6ac","webpack:///src/interfaces/translation/display.vue","webpack:///./src/interfaces/translation/display.vue?baac","webpack:///./src/interfaces/translation/display.vue"],"names":["module","exports","props","id","type","String","required","name","value","default","length","Number","readonly","Boolean","collection","primaryKey","options","Object","newItem","relation","fields","values","width","val","includes","render","_vm","this","_h","$createElement","_c","_self","class","empty","displayValue","_v","_s","_e","$t","language","systemLanguagePrinted","staticRenderFns","component"],"mappings":"gHAAA,yBAAiiB,EAAG,G,qBCApiBA,EAAOC,QAAU,CACfC,MAAO,CAILC,GAAI,CACFC,KAAMC,OACNC,UAAU,GAGZC,KAAM,CACJH,KAAMC,OACNC,UAAU,GAIZE,MAAO,CACLJ,KAAM,KACNK,QAAS,MAGXL,KAAM,CACJA,KAAMC,OACNC,UAAU,GAGZI,OAAQ,CACNN,KAAM,CAACC,OAAQM,QACfF,QAAS,MAGXG,SAAU,CACRR,KAAMS,QACNJ,SAAS,GAGXK,WAAY,CACVV,KAAMC,OACNI,QAAS,MAGXM,WAAY,CACVX,KAAM,CAACO,OAAQN,QACfI,QAAS,MAGXH,SAAU,CACRF,KAAMS,QACNJ,SAAS,GAGXO,QAAS,CACPZ,KAAMa,OACNR,QAAS,KAAM,KAGjBS,QAAS,CACPd,KAAMS,QACNJ,SAAS,GAIXU,SAAU,CACRf,KAAMa,OACNR,QAAS,MAGXW,OAAQ,CACNhB,KAAMa,OACNR,QAAS,MAIXY,OAAQ,CACNjB,KAAMa,OACNR,QAAS,MAEXa,MAAO,CACLlB,KAAMC,OACNI,QAAS,KACT,UAAUc,GACR,MAAO,CACL,OACA,YACA,aACA,OACA,QACAC,SAASD,Q,gECvFnB,IAAIE,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACE,MAAM,CAAEC,OAAQP,EAAIQ,eAAgB,CAACR,EAAIS,GAAG,IAAIT,EAAIU,GAAGV,EAAIQ,cAAc,KAAOR,EAAIQ,aAAsHR,EAAIW,KAA5G,CAACX,EAAIS,GAAG,IAAIT,EAAIU,GAAGV,EAAIY,GAAG,6BAA8B,CAAEC,SAAUb,EAAIc,yBAA0B,OAAgB,IAC3TC,EAAkB,G,mECYtB,GACA,aACA,UACA,eADA,WAEA,0BAEA,sBAJA,WAKA,yEAEA,qBAPA,WAOA,IACA,6BACA,yEACA,iDACA,sCAGA,aAEA,aAhBA,WAiBA,yCAIA,sBAIA,0BACA,mCACA,sBACA,2BAIA,KAVA,+CAJA,QCjCgW,I,wBCQ5VC,EAAY,eACd,EACAjB,EACAgB,GACA,EACA,KACA,KACA,MAIa,aAAAC,E","file":"js/chunk-8e696ca2.a7e15d3a.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./display.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./display.vue?vue&type=style&index=0&lang=scss&\"","module.exports = {\n props: {\n // Unique id for this interface. Should be added to the lower level \n // HTML input element if applicable. This ID will be used in the label's\n // `for` attribute\n id: {\n type: String,\n required: true\n },\n // Name of the field\n name: {\n type: String,\n required: true\n },\n // The current value. This can either be the default value, the saved database\n // value or the current state after the user made an edit\n value: {\n type: null,\n default: null\n },\n // Type of the field, eg `string`, `hash`, or `array`\n type: {\n type: String,\n required: true\n },\n // Max length\n length: {\n type: [String, Number],\n default: null\n },\n // If the field is readonly or not\n readonly: {\n type: Boolean,\n default: false\n },\n // Name of the collection\n collection: {\n type: String,\n default: null\n },\n // Primary key of the item you're editing in this context\n primaryKey: {\n type: [Number, String],\n default: null\n },\n // If the field is required or not\n required: {\n type: Boolean,\n default: false\n },\n // Field options. A json object based on the interface's meta.json file\n options: {\n type: Object,\n default: () => ({})\n },\n // If the item that's currently being edited is new\n newItem: {\n type: Boolean,\n default: false\n },\n // The relation of the current field. Will contain information on the related\n // collection and field(s)\n relation: {\n type: Object,\n default: null\n },\n // The other fields in the current edit page\n fields: {\n type: Object,\n default: null\n },\n // The values of the other fields on the edit page. Can be used for things like\n // automatically generating a slug based on another field\n values: {\n type: Object,\n default: null\n },\n width: {\n type: String,\n default: null,\n validator(val) {\n return [\n 'half',\n 'half-left',\n 'half-right',\n 'full',\n 'fill'\n ].includes(val);\n }\n }\n }\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:{ empty: !_vm.displayValue }},[_vm._v(\" \"+_vm._s(_vm.displayValue)+\" \"),(!_vm.displayValue)?[_vm._v(\" \"+_vm._s(_vm.$t('not_translated_in_language', { language: _vm.systemLanguagePrinted }))+\" \")]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\t<span :class=\"{ empty: !displayValue }\">\n\t\t{{ displayValue }}\n\t\t<template v-if=\"!displayValue\">\n\t\t\t{{ $t('not_translated_in_language', { language: systemLanguagePrinted }) }}\n\t\t</template>\n\t</span>\n</template>\n\n<script>\nimport mixin from '@directus/extension-toolkit/mixins/interface';\nimport { find } from 'lodash';\n\nexport default {\n\tmixins: [mixin],\n\tcomputed: {\n\t\tsystemLanguage() {\n\t\t\treturn this.$i18n.locale;\n\t\t},\n\t\tsystemLanguagePrinted() {\n\t\t\treturn this.$i18n.availableLanguages[this.systemLanguage].split('(')[0];\n\t\t},\n\t\tsystemLanguageValues() {\n\t\t\tconst { languageField } = this.options;\n\t\t\tconst fullMatch = find(this.value, { [languageField]: this.systemLanguage });\n\t\t\tconst partialMatch = find(this.value, {\n\t\t\t\t[languageField]: this.systemLanguage.split('-')[0]\n\t\t\t});\n\n\t\t\treturn fullMatch || partialMatch;\n\t\t},\n\t\tdisplayValue() {\n\t\t\tif (!this.value || this.value.length === 0) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif (!this.options.template) {\n\t\t\t\treturn this.$tc('item_count', (this.value || []).length);\n\t\t\t}\n\n\t\t\tif (this.systemLanguageValues) {\n\t\t\t\treturn this.$helpers.micromustache.render(\n\t\t\t\t\tthis.options.template,\n\t\t\t\t\tthis.systemLanguageValues\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"scss\">\n.empty {\n\tcolor: var(--empty-value);\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./display.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./display.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./display.vue?vue&type=template&id=cf899134&\"\nimport script from \"./display.vue?vue&type=script&lang=js&\"\nexport * from \"./display.vue?vue&type=script&lang=js&\"\nimport style0 from \"./display.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}