File: /home/nepi/public_html/public/admin/js/chunk-597060b4.41bdc552.js.map
{"version":3,"sources":["webpack:///./src/interfaces/status/display.vue?6c52","webpack:///src/interfaces/status/display.vue","webpack:///./src/interfaces/status/display.vue?93d8","webpack:///./src/interfaces/status/display.vue","webpack:///./node_modules/@directus/extension-toolkit/mixins/interface.js","webpack:///./src/interfaces/status/display.vue?b398"],"names":["render","_vm","this","_h","$createElement","_c","_self","directives","name","rawName","value","options","simpleBadge","currentStatus","expression","class","simple","style","_v","_s","staticRenderFns","component","module","exports","props","id","type","String","required","default","length","Number","readonly","Boolean","collection","primaryKey","Object","newItem","relation","fields","values","width","val","includes"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,WAAW,CAAC,CAACC,KAAK,UAAUC,QAAQ,YAAYC,QAAOT,EAAIU,QAAQC,aAAcX,EAAIY,cAAcL,KAAcM,WAAW,qDAAqDC,MAAM,CAAC,QAAS,UAAW,CAAEC,OAAQf,EAAIU,QAAQC,cAAeK,MAAOhB,EAAS,OAAG,CAACA,EAAIiB,GAAG,IAAIjB,EAAIkB,GAAGlB,EAAIU,QAAQC,YAAc,KAAOX,EAAIY,cAAcL,MAAM,QACtbY,EAAkB,G,qBCYtB,GACA,aACA,UACA,cADA,WAEA,gDAEA,MAJA,WAKA,OACA,yEACA,6DCtBgW,I,wBCQ5VC,EAAY,eACd,EACArB,EACAoB,GACA,EACA,KACA,WACA,MAIa,aAAAC,E,8BCnBfC,EAAOC,QAAU,CACfC,MAAO,CAILC,GAAI,CACFC,KAAMC,OACNC,UAAU,GAGZpB,KAAM,CACJkB,KAAMC,OACNC,UAAU,GAIZlB,MAAO,CACLgB,KAAM,KACNG,QAAS,MAGXH,KAAM,CACJA,KAAMC,OACNC,UAAU,GAGZE,OAAQ,CACNJ,KAAM,CAACC,OAAQI,QACfF,QAAS,MAGXG,SAAU,CACRN,KAAMO,QACNJ,SAAS,GAGXK,WAAY,CACVR,KAAMC,OACNE,QAAS,MAGXM,WAAY,CACVT,KAAM,CAACK,OAAQJ,QACfE,QAAS,MAGXD,SAAU,CACRF,KAAMO,QACNJ,SAAS,GAGXlB,QAAS,CACPe,KAAMU,OACNP,QAAS,KAAM,KAGjBQ,QAAS,CACPX,KAAMO,QACNJ,SAAS,GAIXS,SAAU,CACRZ,KAAMU,OACNP,QAAS,MAGXU,OAAQ,CACNb,KAAMU,OACNP,QAAS,MAIXW,OAAQ,CACNd,KAAMU,OACNP,QAAS,MAEXY,MAAO,CACLf,KAAMC,OACNE,QAAS,KACT,UAAUa,GACR,MAAO,CACL,OACA,YACA,aACA,OACA,QACAC,SAASD,Q,kCCvFnB,yBAAyjB,EAAG,G","file":"js/chunk-597060b4.41bdc552.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.options.simpleBadge ? _vm.currentStatus.name : false),expression:\"options.simpleBadge ? currentStatus.name : false\"}],class:['badge', 'no-wrap', { simple: _vm.options.simpleBadge }],style:(_vm.style)},[_vm._v(\" \"+_vm._s(_vm.options.simpleBadge ? null : _vm.currentStatus.name)+\" \")])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\t<div\n\t\tv-tooltip=\"options.simpleBadge ? currentStatus.name : false\"\n\t\t:class=\"['badge', 'no-wrap', { simple: options.simpleBadge }]\"\n\t\t:style=\"style\"\n\t>\n\t\t{{ options.simpleBadge ? null : currentStatus.name }}\n\t</div>\n</template>\n\n<script>\nimport mixin from '@directus/extension-toolkit/mixins/interface';\n\nexport default {\n\tmixins: [mixin],\n\tcomputed: {\n\t\tcurrentStatus() {\n\t\t\treturn this.options.status_mapping[this.value];\n\t\t},\n\t\tstyle() {\n\t\t\treturn {\n\t\t\t\tbackgroundColor: `var(--${this.currentStatus.background_color})`,\n\t\t\t\tcolor: `var(--${this.currentStatus.text_color})`\n\t\t\t};\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"scss\" scoped>\n.badge {\n\tborder-radius: var(--border-radius);\n\tpadding: 5px 8px 4px;\n\tfont-weight: var(--weight-bold);\n\tdisplay: block;\n\tcursor: default;\n\tmax-width: max-content;\n\ttext-overflow: ellipsis;\n}\n\n.simple {\n\tborder-radius: 50%;\n\twidth: 12px;\n\theight: 12px;\n\tpadding: 6px;\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=8868cef2&scoped=true&\"\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&id=8868cef2&lang=scss&scoped=true&\"\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 \"8868cef2\",\n null\n \n)\n\nexport default component.exports","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","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&id=8868cef2&lang=scss&scoped=true&\"; 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&id=8868cef2&lang=scss&scoped=true&\""],"sourceRoot":""}