HEX
Server: Apache
System: Linux server1.ariadata.co 4.18.0-553.120.1.el8_10.x86_64 #1 SMP Mon Apr 20 18:04:27 EDT 2026 x86_64
User: nepi (1051)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,show_source,popen,proc_open
Upload Files
File: /home/nepi/public_html/public/admin/js/chunk-3c5ed143.b8e4a0ce.js.map
{"version":3,"sources":["webpack:///./node_modules/@directus/extension-toolkit/mixins/interface.js","webpack:///./src/interfaces/status/input.vue?aee2","webpack:///src/interfaces/status/input.vue","webpack:///./src/interfaces/status/input.vue?f341","webpack:///./src/interfaces/status/input.vue","webpack:///./src/interfaces/status/input.vue?c584"],"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","staticClass","_l","key","attrs","label","on","$event","$emit","staticRenderFns","component"],"mappings":"mGAAAA,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,yCCvFnB,IAAIE,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,4BAA4BN,EAAIO,GAAIP,EAAgB,cAAE,SAASV,EAAQkB,GAAK,OAAOJ,EAAG,UAAU,CAACI,IAAIA,EAAIC,MAAM,CAAC,GAAMT,EAAInB,KAAO,IAAM2B,EAAK,KAAOR,EAAInB,KAAK,MAAQ2B,EAAI,SAAWlB,EAAQJ,SAAWI,EAAQJ,SAAWc,EAAId,SAAS,cAAcP,OAAOqB,EAAIlB,OAAO,MAAQQ,EAAQoB,MAAM,QAAUF,GAAOR,EAAIlB,OAAO6B,GAAG,CAAC,OAAS,SAASC,GAAQ,OAAOZ,EAAIa,MAAM,QAASD,UAAc,IAChfE,EAAkB,G,+tBCoBtB,OACA,uBACA,aACA,KAHA,WAIA,OACA,mBAGA,UACA,cADA,WACA,WACA,oDACA,+DAEA,4BACA,4EACA,EADA,CAEA,gDAHA,IAMA,aAXA,WAYA,yBACA,iBAQA,OANA,oCACA,mCACA,kBAIA,GAEA,UAvBA,WAwBA,oBAEA,0DACA,6CAEA,uCAEA,YA/BA,WAgCA,oBACA,uDAGA,4EAGA,QA/CA,WAgDA,mCAEA,gEACA,2EACA,YACA,yBAIA,8BC9E8V,I,wBCQ1VC,EAAY,eACd,EACAhB,EACAe,GACA,EACA,KACA,WACA,MAIa,aAAAC,E,kECnBf,yBAAujB,EAAG","file":"js/chunk-3c5ed143.b8e4a0ce.js","sourcesContent":["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('div',{staticClass:\"interface-status subgrid\"},_vm._l((_vm.optionValues),function(options,key){return _c('v-radio',{key:key,attrs:{\"id\":(_vm.name + \"-\" + key),\"name\":_vm.name,\"value\":key,\"disabled\":options.readonly ? options.readonly : _vm.readonly,\"model-value\":String(_vm.value),\"label\":options.label,\"checked\":key == _vm.value},on:{\"change\":function($event){return _vm.$emit('input', $event)}}})}),1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\t<div class=\"interface-status subgrid\">\n\t\t<v-radio\n\t\t\tv-for=\"(options, key) in optionValues\"\n\t\t\t:id=\"`${name}-${key}`\"\n\t\t\t:key=\"key\"\n\t\t\t:name=\"name\"\n\t\t\t:value=\"key\"\n\t\t\t:disabled=\"options.readonly ? options.readonly : readonly\"\n\t\t\t:model-value=\"String(value)\"\n\t\t\t:label=\"options.label\"\n\t\t\t:checked=\"key == value\"\n\t\t\t@change=\"$emit('input', $event)\"\n\t\t></v-radio>\n\t</div>\n</template>\n\n<script>\nimport mixin from '@directus/extension-toolkit/mixins/interface';\nimport { mapValues, includes, forEach } from 'lodash';\n\nexport default {\n\tname: 'InterfaceStatus',\n\tmixins: [mixin],\n\tdata() {\n\t\treturn {\n\t\t\tstartStatus: null\n\t\t};\n\t},\n\tcomputed: {\n\t\tstatusMapping() {\n\t\t\tif (typeof this.options.status_mapping === 'string') {\n\t\t\t\treturn this.options.status_mapping ? JSON.parse(this.status_mapping) : {};\n\t\t\t}\n\t\t\tif (!this.options.status_mapping) return {};\n\t\t\treturn mapValues(this.options.status_mapping, mapping => ({\n\t\t\t\t...mapping,\n\t\t\t\tlabel: this.$helpers.formatTitle(this.$t(mapping.name))\n\t\t\t}));\n\t\t},\n\t\toptionValues() {\n\t\t\tconst allStatuses = this.statusMapping;\n\t\t\tconst blacklist = this.blacklist;\n\n\t\t\tforEach(allStatuses, function(value) {\n\t\t\t\tif (includes(blacklist, value.value)) {\n\t\t\t\t\tvalue.readonly = true;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn allStatuses;\n\t\t},\n\t\tblacklist() {\n\t\t\tif (!this.permissions) return;\n\n\t\t\tif (typeof this.permissions.status_blacklist === 'string')\n\t\t\t\treturn this.permissions.status_blacklist.split(',');\n\n\t\t\treturn this.permissions.status_blacklist || [];\n\t\t},\n\t\tpermissions() {\n\t\t\tif (this.newItem) {\n\t\t\t\treturn this.$store.state.permissions[this.collection].$create;\n\t\t\t}\n\n\t\t\treturn this.$store.state.permissions[this.collection].statuses[this.startStatus];\n\t\t}\n\t},\n\tcreated() {\n\t\tif (!this.value || this.value === '') {\n\t\t\t// Set first value selected if no default exists\n\t\t\tif (this.$store.state.permissions[this.collection].statuses !== null) {\n\t\t\t\tlet obj = Object.keys(this.$store.state.permissions[this.collection].statuses);\n\t\t\t\tif (obj.length > 1) {\n\t\t\t\t\tthis.$emit('input', obj[0]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.startStatus = this.value;\n\t}\n};\n</script>\n\n<style lang=\"scss\" scoped>\n.interface-status {\n\tmax-width: var(--width-x-large);\n\tmargin-bottom: -12px;\n\tpadding-top: calc(\n\t\t(var(--input-height) - 24px) / 2\n\t); // [input height] - 24px (icon height) / 2 (top padding)\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!./input.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!./input.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./input.vue?vue&type=template&id=c209edf8&scoped=true&\"\nimport script from \"./input.vue?vue&type=script&lang=js&\"\nexport * from \"./input.vue?vue&type=script&lang=js&\"\nimport style0 from \"./input.vue?vue&type=style&index=0&id=c209edf8&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  \"c209edf8\",\n  null\n  \n)\n\nexport default component.exports","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!./input.vue?vue&type=style&index=0&id=c209edf8&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!./input.vue?vue&type=style&index=0&id=c209edf8&lang=scss&scoped=true&\""],"sourceRoot":""}