{"version":3,"sources":["webpack:///./galaxy/src/users/Quota.vue?896d","webpack:///galaxy/src/users/Quota.vue","webpack:///./galaxy/src/users/Quota.vue?34d6","webpack:///./galaxy/src/users/Quota.vue","webpack:///./galaxy/src/users/Quota.vue?2c5a","webpack:///./node_modules/byte-size/dist/index.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_t","_v","_s","readable_usage","readable_quota","attrs","quota","usage","variant","staticRenderFns","component","global","factory","module","exports","defaultOptions","_options","WeakMap","ByteSize","bytes","options","Object","assign","units","precision","set","tables","metric","from","to","unit","long","metric_octet","iec","Math","pow","iec_octet","customUnits","prefix","abs","table","Error","find","u","value","toFixed","get","toStringFn","bind","byteSize"],"mappings":"uIAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,OAAO,CAACJ,EAAIO,GAAG,YAAY,GAAGH,EAAG,OAAO,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,gBAAgB,MAAMV,EAAIS,GAAGT,EAAIW,qBAAqBP,EAAG,aAAa,CAACQ,MAAM,CAAC,IAAMZ,EAAIa,OAAS,GAAG,MAASb,EAAIa,OAASb,EAAIc,OAAU,EAAE,QAAUd,EAAIe,YAAY,IACnZC,EAAkB,G,qBCYtB,GACE,KAAF,QACE,MAAF,CACI,MAAJ,CACM,UADN,SACA,GAAQ,MAAR,+BACM,UAAN,GAEI,MAAJ,CACM,UADN,SACA,GAAQ,MAAR,+BACM,UAAN,IAGE,SAAF,CACI,eADJ,WAEM,OAAN,qBACA,iBAEI,eALJ,WAMM,OAAN,WACA,gBADA,KAGI,QATJ,WAUM,IAAN,wBACM,IAAN,wBACM,OAAN,YACA,eACA,eACA,UCxCiY,I,wBCQ7XC,EAAY,eACd,EACAlB,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EAAMO,KAClBpC,KAAKqC,KAAOR,EAAMQ,UAElBrC,KAAKkD,MAAQN,EAASnB,EACtBzB,KAAKoC,KAAO,GACZpC,KAAKqC,KAAO,IAOlB,WACE,MAAMX,EAAUJ,EAAS8B,IAAIpD,MAC7B,OAAO0B,EAAQ2B,WAAa3B,EAAQ2B,WAAWC,KAAKtD,KAAxB0B,GAAkC,GAAG1B,KAAKkD,SAASlD,KAAKoC,QAexF,SAASmB,EAAU9B,EAAOC,GACxB,OAAO,IAAIF,EAASC,EAAOC,GAW7B,OAJA6B,EAASlC,eAAiB,SAAUK,GAClCL,EAAiBK,GAGZ6B","file":"js/Quota.6c3ba991.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"galaxy-user-quota\"},[_c('div',{staticClass:\"progress-label\"},[_c('span',[_vm._t(\"default\")],2),_c('span',[_vm._v(_vm._s(_vm.readable_usage)+\" / \"+_vm._s(_vm.readable_quota))])]),_c('b-progress',{attrs:{\"max\":_vm.quota || 10,\"value\":(_vm.quota && _vm.usage) || 1,\"variant\":_vm.variant}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/@vue/cli-plugin-babel/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!./Quota.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/@vue/cli-plugin-babel/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!./Quota.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Quota.vue?vue&type=template&id=1cd30d20&scoped=true&\"\nimport script from \"./Quota.vue?vue&type=script&lang=js&\"\nexport * from \"./Quota.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Quota.vue?vue&type=style&index=0&id=1cd30d20&scoped=true&lang=css&\"\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 \"1cd30d20\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Quota.vue?vue&type=style&index=0&id=1cd30d20&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Quota.vue?vue&type=style&index=0&id=1cd30d20&scoped=true&lang=css&\"","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = global || self, global.byteSize = factory());\n}(this, (function () { 'use strict';\n\n /**\n * @module byte-size\n */\n\n let defaultOptions = {};\n const _options = new WeakMap();\n\n class ByteSize {\n constructor (bytes, options) {\n options = Object.assign({\n units: 'metric',\n precision: 1\n }, defaultOptions, options);\n _options.set(this, options);\n\n const tables = {\n metric: [\n { from: 0 , to: 1e3 , unit: 'B' , long: 'bytes' },\n { from: 1e3 , to: 1e6 , unit: 'kB', long: 'kilobytes' },\n { from: 1e6 , to: 1e9 , unit: 'MB', long: 'megabytes' },\n { from: 1e9 , to: 1e12, unit: 'GB', long: 'gigabytes' },\n { from: 1e12, to: 1e15, unit: 'TB', long: 'terabytes' },\n { from: 1e15, to: 1e18, unit: 'PB', long: 'petabytes' },\n { from: 1e18, to: 1e21, unit: 'EB', long: 'exabytes' },\n { from: 1e21, to: 1e24, unit: 'ZB', long: 'zettabytes' },\n { from: 1e24, to: 1e27, unit: 'YB', long: 'yottabytes' },\n ],\n metric_octet: [\n { from: 0 , to: 1e3 , unit: 'o' , long: 'octets' },\n { from: 1e3 , to: 1e6 , unit: 'ko', long: 'kilooctets' },\n { from: 1e6 , to: 1e9 , unit: 'Mo', long: 'megaoctets' },\n { from: 1e9 , to: 1e12, unit: 'Go', long: 'gigaoctets' },\n { from: 1e12, to: 1e15, unit: 'To', long: 'teraoctets' },\n { from: 1e15, to: 1e18, unit: 'Po', long: 'petaoctets' },\n { from: 1e18, to: 1e21, unit: 'Eo', long: 'exaoctets' },\n { from: 1e21, to: 1e24, unit: 'Zo', long: 'zettaoctets' },\n { from: 1e24, to: 1e27, unit: 'Yo', long: 'yottaoctets' },\n ],\n iec: [\n { from: 0 , to: Math.pow(1024, 1), unit: 'B' , long: 'bytes' },\n { from: Math.pow(1024, 1), to: Math.pow(1024, 2), unit: 'KiB', long: 'kibibytes' },\n { from: Math.pow(1024, 2), to: Math.pow(1024, 3), unit: 'MiB', long: 'mebibytes' },\n { from: Math.pow(1024, 3), to: Math.pow(1024, 4), unit: 'GiB', long: 'gibibytes' },\n { from: Math.pow(1024, 4), to: Math.pow(1024, 5), unit: 'TiB', long: 'tebibytes' },\n { from: Math.pow(1024, 5), to: Math.pow(1024, 6), unit: 'PiB', long: 'pebibytes' },\n { from: Math.pow(1024, 6), to: Math.pow(1024, 7), unit: 'EiB', long: 'exbibytes' },\n { from: Math.pow(1024, 7), to: Math.pow(1024, 8), unit: 'ZiB', long: 'zebibytes' },\n { from: Math.pow(1024, 8), to: Math.pow(1024, 9), unit: 'YiB', long: 'yobibytes' },\n ],\n iec_octet: [\n { from: 0 , to: Math.pow(1024, 1), unit: 'o' , long: 'octets' },\n { from: Math.pow(1024, 1), to: Math.pow(1024, 2), unit: 'Kio', long: 'kibioctets' },\n { from: Math.pow(1024, 2), to: Math.pow(1024, 3), unit: 'Mio', long: 'mebioctets' },\n { from: Math.pow(1024, 3), to: Math.pow(1024, 4), unit: 'Gio', long: 'gibioctets' },\n { from: Math.pow(1024, 4), to: Math.pow(1024, 5), unit: 'Tio', long: 'tebioctets' },\n { from: Math.pow(1024, 5), to: Math.pow(1024, 6), unit: 'Pio', long: 'pebioctets' },\n { from: Math.pow(1024, 6), to: Math.pow(1024, 7), unit: 'Eio', long: 'exbioctets' },\n { from: Math.pow(1024, 7), to: Math.pow(1024, 8), unit: 'Zio', long: 'zebioctets' },\n { from: Math.pow(1024, 8), to: Math.pow(1024, 9), unit: 'Yio', long: 'yobioctets' },\n ],\n };\n Object.assign(tables, options.customUnits);\n\n const prefix = bytes < 0 ? '-' : '';\n bytes = Math.abs(bytes);\n const table = tables[options.units];\n if (table) {\n const units = table.find(u => bytes >= u.from && bytes < u.to);\n if (units) {\n const value = units.from === 0\n ? prefix + bytes\n : prefix + (bytes / units.from).toFixed(options.precision);\n this.value = value;\n this.unit = units.unit;\n this.long = units.long;\n } else {\n this.value = prefix + bytes;\n this.unit = '';\n this.long = '';\n }\n } else {\n throw new Error(`Invalid units specified: ${options.units}`)\n }\n }\n\n toString () {\n const options = _options.get(this);\n return options.toStringFn ? options.toStringFn.bind(this)() : `${this.value} ${this.unit}`\n }\n }\n\n /**\n * Returns an object with the spec `{ value: string, unit: string, long: string }`. The returned object defines a `toString` method meaning it can be used in any string context.\n * @param {number} - The bytes value to convert.\n * @param [options] {object} - Optional config.\n * @param [options.precision] {number} - Number of decimal places. Defaults to `1`.\n * @param [options.units] {string} - Specify `'metric'`, `'iec'`, `'metric_octet'`, `'iec_octet'` or the name of a property from the custom units table in `options.customUnits`. Defaults to `metric`.\n * @param [options.customUnits] {object} - An object containing one or more custom unit lookup tables.\n * @param [options.toStringFn] {function} - A `toString` function to override the default.\n * @returns {object}\n * @alias module:byte-size\n */\n function byteSize (bytes, options) {\n return new ByteSize(bytes, options)\n }\n\n /**\n * Set the default `byteSize` options for the duration of the process.\n * @param options {object} - A `byteSize` options object.\n */\n byteSize.defaultOptions = function (options) {\n defaultOptions = options;\n };\n\n return byteSize;\n\n})));\n"],"sourceRoot":""}