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/www/public/admin/js/chunk-1c6fa0e2.d8c19900.js.map
{"version":3,"sources":["webpack:///./src/interfaces/file-size/input.vue?3e72","webpack:///src/interfaces/file-size/input.vue","webpack:///./src/interfaces/file-size/input.vue?4755","webpack:///./src/interfaces/file-size/input.vue","webpack:///./node_modules/core-js/internals/string-repeat.js","webpack:///./src/interfaces/file-size/input.vue?6baf","webpack:///./src/interfaces/file-size/format-size.js","webpack:///./node_modules/core-js/internals/this-number-value.js","webpack:///./node_modules/@directus/extension-toolkit/mixins/interface.js","webpack:///./node_modules/core-js/modules/es.number.to-fixed.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","options","staticClass","attrs","readonly","placeholder","on","calculateValue","model","value","callback","$$v","reducedValue","expression","name","unitChoices","units","$event","$emit","_v","_s","formatSize","staticRenderFns","component","toInteger","requireObjectCoercible","module","exports","repeat","count","str","String","result","n","Infinity","RangeError","bytes","decimal","threshold","Boolean","Math","abs","unitIndex","remainingBytes","length","toFixed","classof","TypeError","props","id","type","required","default","Number","collection","primaryKey","Object","newItem","relation","fields","values","width","val","includes","$","thisNumberValue","fails","nativeToFixed","floor","pow","x","acc","log","x2","FORCED","call","target","proto","forced","fractionDigits","e","z","j","k","number","fractDigits","data","sign","multiply","c","index","c2","divide","dataToString","s","t","slice"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAQF,EAAIM,QAAmB,YAAEF,EAAG,MAAM,CAACG,YAAY,uBAAuB,CAACH,EAAG,UAAU,CAACG,YAAY,sBAAsBC,MAAM,CAAC,KAAO,SAAS,SAAWR,EAAIS,SAAS,Y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AO,GAAK,IACZV,GAAK,GAEPU,EAAO,GAAKV,GACZM,EAAS,EAAG,GACZI,EAAO,GACP5D,EAAS6D,SAETL,EAAS,EAAGP,GACZO,EAAS,IAAMR,EAAG,GAClBhD,EAAS6D,IAAiBjE,EAAO+C,KAAK,IAAKU,GAU7C,OAPEA,EAAc,GAChBF,EAAInD,EAAOY,OACXZ,EAASuD,GAAQJ,GAAKE,EAClB,KAAOzD,EAAO+C,KAAK,IAAKU,EAAcF,GAAKnD,EAC3CA,EAAOgE,MAAM,EAAGb,EAAIE,GAAe,IAAMrD,EAAOgE,MAAMb,EAAIE,KAE9DrD,EAASuD,EAAOvD,EACTA","file":"js/chunk-1c6fa0e2.d8c19900.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.options.formatInput)?_c('div',{staticClass:\"interface-container\"},[_c('v-input',{staticClass:\"interface-file-size\",attrs:{\"type\":\"number\",\"readonly\":_vm.readonly,\"placeholder\":_vm.options.placeholder,\"monospace\":\"\"},on:{\"input\":_vm.calculateValue},model:{value:(_vm.reducedValue),callback:function ($$v) {_vm.reducedValue=$$v},expression:\"reducedValue\"}}),_c('v-select',{staticClass:\"interface-file-size-units\",attrs:{\"id\":_vm.name,\"readonly\":_vm.readonly,\"options\":_vm.unitChoices,\"placeholder\":_vm.options.placeholder},on:{\"input\":_vm.calculateValue},model:{value:(_vm.units),callback:function ($$v) {_vm.units=$$v},expression:\"units\"}})],1):_c('div',[_c('v-input',{staticClass:\"interface-file-size\",attrs:{\"type\":\"number\",\"readonly\":_vm.readonly,\"placeholder\":_vm.options.placeholder,\"value\":_vm.value},on:{\"input\":function($event){return _vm.$emit('input', $event)}}}),_c('span',{staticClass:\"interface-file-size-formatted\"},[_vm._v(\"(\"+_vm._s(_vm.formatSize(_vm.value, true))+\")\")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\t<div v-if=\"options.formatInput\" class=\"interface-container\">\n\t\t<v-input\n\t\t\tv-model=\"reducedValue\"\n\t\t\ttype=\"number\"\n\t\t\tclass=\"interface-file-size\"\n\t\t\t:readonly=\"readonly\"\n\t\t\t:placeholder=\"options.placeholder\"\n\t\t\tmonospace\n\t\t\t@input=\"calculateValue\"\n\t\t></v-input>\n\t\t<!--\n    -->\n\t\t<v-select\n\t\t\t:id=\"name\"\n\t\t\tv-model=\"units\"\n\t\t\tclass=\"interface-file-size-units\"\n\t\t\t:readonly=\"readonly\"\n\t\t\t:options=\"unitChoices\"\n\t\t\t:placeholder=\"options.placeholder\"\n\t\t\t@input=\"calculateValue\"\n\t\t></v-select>\n\t</div>\n\t<div v-else>\n\t\t<v-input\n\t\t\ttype=\"number\"\n\t\t\tclass=\"interface-file-size\"\n\t\t\t:readonly=\"readonly\"\n\t\t\t:placeholder=\"options.placeholder\"\n\t\t\t:value=\"value\"\n\t\t\t@input=\"$emit('input', $event)\"\n\t\t></v-input>\n\t\t<span class=\"interface-file-size-formatted\">({{ formatSize(value, true) }})</span>\n\t</div>\n</template>\n\n<script>\nimport mixin from '@directus/extension-toolkit/mixins/interface';\nimport formatSize from './format-size';\n\nexport default {\n\tmixins: [mixin],\n\tdata() {\n\t\treturn {\n\t\t\treducedValue: '1',\n\t\t\tunits: '1',\n\t\t\tunitChoices: {\n\t\t\t\t'1': 'B',\n\t\t\t\t'1000': 'kB',\n\t\t\t\t'1000000': 'MB',\n\t\t\t\t'1000000000': 'GB',\n\t\t\t\t'1000000000000': 'TB',\n\t\t\t\t'1000000000000000': 'PB',\n\t\t\t\t'1000000000000000000': 'EB'\n\t\t\t}\n\t\t};\n\t},\n\tcreated() {\n\t\tif (this.value < 1000) {\n\t\t\t// B\n\t\t\tthis.reducedValue = this.value;\n\t\t\tthis.units = '1';\n\t\t} else if (this.value < 1000000) {\n\t\t\t// kB\n\t\t\tthis.reducedValue = this.value / 1000;\n\t\t\tthis.units = '1000';\n\t\t} else if (this.value < 1000000000) {\n\t\t\t// MB\n\t\t\tthis.reducedValue = this.value / 1000000;\n\t\t\tthis.units = '1000000';\n\t\t} else if (this.value < 1000000000000) {\n\t\t\t// GB\n\t\t\tthis.reducedValue = this.value / 1000000000;\n\t\t\tthis.units = '1000000000';\n\t\t} else if (this.value < 1000000000000000) {\n\t\t\t// TB\n\t\t\tthis.reducedValue = this.value / 1000000000000;\n\t\t\tthis.units = '1000000000000';\n\t\t} else if (this.value < 1000000000000000000) {\n\t\t\t// PB\n\t\t\tthis.reducedValue = this.value / 1000000000000000;\n\t\t\tthis.units = '1000000000000000';\n\t\t} else {\n\t\t\t// EB\n\t\t\tthis.reducedValue = this.value / 1000000000000000000;\n\t\t\tthis.units = '1000000000000000000';\n\t\t}\n\t},\n\tmethods: {\n\t\tformatSize,\n\t\tcalculateValue() {\n\t\t\tconst value = Math.round(this.reducedValue * this.units);\n\t\t\tthis.$emit('input', value);\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"scss\" scoped>\n.interface-container {\n\tposition: relative;\n\tdisplay: flex;\n\tjustify-content: space-between;\n}\n.interface-file-size-formatted {\n\tcolor: var(--blue-grey-300);\n\tmargin-left: 10px;\n\tfont-style: italic;\n}\n.interface-file-size {\n\twidth: calc(100% - 80px);\n}\n.interface-file-size-units {\n\twidth: 68px;\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=c7e14858&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=c7e14858&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  \"c7e14858\",\n  null\n  \n)\n\nexport default component.exports","'use strict';\nvar toInteger = require('../internals/to-integer');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `String.prototype.repeat` method implementation\n// https://tc39.github.io/ecma262/#sec-string.prototype.repeat\nmodule.exports = ''.repeat || function repeat(count) {\n  var str = String(requireObjectCoercible(this));\n  var result = '';\n  var n = toInteger(count);\n  if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');\n  for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;\n  return result;\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!./input.vue?vue&type=style&index=0&id=c7e14858&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=c7e14858&lang=scss&scoped=true&\"","/**\n * Convert a value in bytes to a human readable format\n * @param {number} value The value in bytes to format\n * @return {string} The human readable filesize\n * @example\n *\n * const byteSize = 1500;\n * const fileSize = formatSize(byteSize);\n * // => '1.5 KB'\n * @see https://stackoverflow.com/a/14919494/4859211\n */\nexport default function formatSize(bytes = 0, decimal = true) {\n\tconst threshold = decimal ? 1000 : 1024;\n\n\tif (Boolean(bytes) === false) {\n\t\treturn '--';\n\t}\n\n\tif (Math.abs(bytes) < threshold) {\n\t\treturn `${bytes} B`;\n\t}\n\n\tconst units = decimal\n\t\t? ['kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']\n\t\t: ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];\n\n\tlet unitIndex = -1;\n\tlet remainingBytes = bytes;\n\n\tdo {\n\t\tremainingBytes /= threshold;\n\t\tunitIndex += 1;\n\t} while (Math.abs(remainingBytes) >= threshold && unitIndex < units.length - 1);\n\n\treturn `${remainingBytes.toFixed(1)} ${units[unitIndex]}`;\n}\n","var classof = require('../internals/classof-raw');\n\n// `thisNumberValue` abstract operation\n// https://tc39.github.io/ecma262/#sec-thisnumbervalue\nmodule.exports = function (value) {\n  if (typeof value != 'number' && classof(value) != 'Number') {\n    throw TypeError('Incorrect invocation');\n  }\n  return +value;\n};\n","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","'use strict';\nvar $ = require('../internals/export');\nvar toInteger = require('../internals/to-integer');\nvar thisNumberValue = require('../internals/this-number-value');\nvar repeat = require('../internals/string-repeat');\nvar fails = require('../internals/fails');\n\nvar nativeToFixed = 1.0.toFixed;\nvar floor = Math.floor;\n\nvar pow = function (x, n, acc) {\n  return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\n\nvar log = function (x) {\n  var n = 0;\n  var x2 = x;\n  while (x2 >= 4096) {\n    n += 12;\n    x2 /= 4096;\n  }\n  while (x2 >= 2) {\n    n += 1;\n    x2 /= 2;\n  } return n;\n};\n\nvar FORCED = nativeToFixed && (\n  0.00008.toFixed(3) !== '0.000' ||\n  0.9.toFixed(0) !== '1' ||\n  1.255.toFixed(2) !== '1.25' ||\n  1000000000000000128.0.toFixed(0) !== '1000000000000000128'\n) || !fails(function () {\n  // V8 ~ Android 4.3-\n  nativeToFixed.call({});\n});\n\n// `Number.prototype.toFixed` method\n// https://tc39.github.io/ecma262/#sec-number.prototype.tofixed\n$({ target: 'Number', proto: true, forced: FORCED }, {\n  // eslint-disable-next-line max-statements\n  toFixed: function toFixed(fractionDigits) {\n    var number = thisNumberValue(this);\n    var fractDigits = toInteger(fractionDigits);\n    var data = [0, 0, 0, 0, 0, 0];\n    var sign = '';\n    var result = '0';\n    var e, z, j, k;\n\n    var multiply = function (n, c) {\n      var index = -1;\n      var c2 = c;\n      while (++index < 6) {\n        c2 += n * data[index];\n        data[index] = c2 % 1e7;\n        c2 = floor(c2 / 1e7);\n      }\n    };\n\n    var divide = function (n) {\n      var index = 6;\n      var c = 0;\n      while (--index >= 0) {\n        c += data[index];\n        data[index] = floor(c / n);\n        c = (c % n) * 1e7;\n      }\n    };\n\n    var dataToString = function () {\n      var index = 6;\n      var s = '';\n      while (--index >= 0) {\n        if (s !== '' || index === 0 || data[index] !== 0) {\n          var t = String(data[index]);\n          s = s === '' ? t : s + repeat.call('0', 7 - t.length) + t;\n        }\n      } return s;\n    };\n\n    if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');\n    // eslint-disable-next-line no-self-compare\n    if (number != number) return 'NaN';\n    if (number <= -1e21 || number >= 1e21) return String(number);\n    if (number < 0) {\n      sign = '-';\n      number = -number;\n    }\n    if (number > 1e-21) {\n      e = log(number * pow(2, 69, 1)) - 69;\n      z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);\n      z *= 0x10000000000000;\n      e = 52 - e;\n      if (e > 0) {\n        multiply(0, z);\n        j = fractDigits;\n        while (j >= 7) {\n          multiply(1e7, 0);\n          j -= 7;\n        }\n        multiply(pow(10, j, 1), 0);\n        j = e - 1;\n        while (j >= 23) {\n          divide(1 << 23);\n          j -= 23;\n        }\n        divide(1 << j);\n        multiply(1, 1);\n        divide(2);\n        result = dataToString();\n      } else {\n        multiply(0, z);\n        multiply(1 << -e, 0);\n        result = dataToString() + repeat.call('0', fractDigits);\n      }\n    }\n    if (fractDigits > 0) {\n      k = result.length;\n      result = sign + (k <= fractDigits\n        ? '0.' + repeat.call('0', fractDigits - k) + result\n        : result.slice(0, k - fractDigits) + '.' + result.slice(k - fractDigits));\n    } else {\n      result = sign + result;\n    } return result;\n  }\n});\n"],"sourceRoot":""}