OSDN Git Service

fix: update api url
[bytom/Byone.git] / new / js / 22.js.map
1 {"version":3,"sources":["webpack:///./src/views/sideMenu/menuBackup.vue","webpack:///src/views/sideMenu/menuBackup.vue","webpack:///./src/views/sideMenu/menuBackup.vue?107a","webpack:///./src/views/sideMenu/menuBackup.vue?1e5f","webpack:///./node_modules/file-saver/src/FileSaver.js","webpack:///./src/views/sideMenu/menuBackup.vue?7902"],"names":[],"mappings":";;;;;;;;;AAAA;AAAA;AACA,yBAA+L;AAC/L;AACA;AACA;AACA;AACA;AACA;AAC0K;AAC1K;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;ACdA;AACA;AACA;AACA,YADA;AAEA,QAFA,kBAEA;AACA;AACA,KAJA;;AAKA;AACA,cADA,oBACA;AACA;AACA;AACA;AADA;AAGA;AACA,aALA;AAMA;AARA;AALA,G;;;;;;;ACdA;;AAEA;AACA,qCAA4N;AAC5N;AACA;AACA;AACA,kEAAoH,E;;;;;;;ACPpH;AACA;;;AAGA;AACA;;AAEA;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,2DAA2D;AAC3D;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA,2CAA2C;AAC3C;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA,2EAA2E;AAC3E,0DAA0D,kBAAkB;AAC5E;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAwB;;AAExB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA,4BAA4B,8BAA8B;AAC1D,4BAA4B,WAAW;AACvC;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,8BAA8B,WAAW;AACzC;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sDAAsD,GAAG,yBAAyB;AAClF;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,4BAA4B,2BAA2B;AACvD;AACA;;AAEA;;;;;;;;;;ACtKA,0BAA0B,aAAa,0BAA0B,wBAAwB,sBAAsB,OAAO,gCAAgC,YAAY,aAAa,uBAAuB,YAAY,kCAAkC,oBAAoB;AACxQ;AACA,iBAAiB;AACjB,kE","file":"js/22.js","sourcesContent":["function injectStyle (ssrContext) {\n  require(\"!!vue-style-loader!css-loader?minimize!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-7ad36065\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./menuBackup.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./menuBackup.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./menuBackup.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-7ad36065\\\",\\\"hasScoped\\\":true,\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./menuBackup.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-7ad36065\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n  __vue_script__,\n  __vue_template__,\n  __vue_template_functional__,\n  __vue_styles__,\n  __vue_scopeId__,\n  __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/sideMenu/menuBackup.vue\n// module id = 555\n// module chunks = 22","<style scoped>\n</style>\n\n<template>\n    <MenuPage :title=\"$t('backup.title')\">\n        <div style=\"text-align: center\">\n            <div class=\"btn btn-primary\" @click=\"backup\">{{ $t('backup.button') }}</div>\n        </div>\n    </MenuPage>\n</template>\n\n<script>\nimport account from \"@/models/account\";\nimport FileSaver from \"file-saver\";\nexport default {\n    name: \"\",\n    data() {\n        return {};\n    },\n    methods: {\n        backup() {\n            account.backup().then(txt => {\n                var blob = new Blob([txt], {\n                    type: \"text/plain;charset=utf-8\"\n                });\n                FileSaver.saveAs(blob, \"bytom_chrome_wallet_backup.txt\");\n            });\n        }\n    }\n};\n</script>\n\n\n\n// WEBPACK FOOTER //\n// src/views/sideMenu/menuBackup.vue","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../node_modules/css-loader/index.js?minimize!../../../node_modules/vue-loader/lib/style-compiler/index.js?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-7ad36065\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./menuBackup.vue\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar update = require(\"!../../../node_modules/vue-style-loader/lib/addStylesClient.js\")(\"eae0b612\", content, true, {});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-style-loader!./node_modules/css-loader?minimize!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-7ad36065\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/views/sideMenu/menuBackup.vue\n// module id = 688\n// module chunks = 22","exports = module.exports = require(\"../../../node_modules/css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.id, \"\", \"\"]);\n\n// exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/css-loader?minimize!./node_modules/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-7ad36065\",\"scoped\":true,\"hasInlineConfig\":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/views/sideMenu/menuBackup.vue\n// module id = 689\n// module chunks = 22","/*\n* FileSaver.js\n* A saveAs() FileSaver implementation.\n*\n* By Eli Grey, http://eligrey.com\n*\n* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)\n* source  : http://purl.eligrey.com/github/FileSaver.js\n*/\n\n\n// The one and only way of getting global scope in all enviorment\n// https://stackoverflow.com/q/3277182/1008999\nvar _global = (function () {\n// some use content security policy to disable eval\n  try {\n    return Function('return this')() || (42, eval)('this')\n  } catch (e) {\n    // every global should have circular reference\n    // used for checking if someone writes var window = {}; var self = {}\n    return typeof window === 'object' && window.window === window ? window\n    : typeof self === 'object' && self.self === self ? self\n    : typeof global === 'object' && global.global === global ? global : this\n  }\n})()\n\nfunction bom (blob, opts) {\n  if (typeof opts === 'undefined') opts = { autoBom: false }\n  else if (typeof opts !== 'object') {\n    console.warn('Depricated: Expected third argument to be a object')\n    opts = { autoBom: !opts }\n  }\n\n  // prepend BOM for UTF-8 XML and text/* types (including HTML)\n  // note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF\n  if (opts.autoBom && /^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(blob.type)) {\n    return new Blob([String.fromCharCode(0xFEFF), blob], { type: blob.type })\n  }\n  return blob\n}\n\nfunction download (url, name, opts) {\n  var xhr = new XMLHttpRequest()\n  xhr.open('GET', url)\n  xhr.responseType = 'blob'\n  xhr.onload = function () {\n    saveAs(xhr.response, name, opts)\n  }\n  xhr.onerror = function () {\n    console.error('could not download file')\n  }\n  xhr.send()\n}\n\nfunction corsEnabled (url) {\n  var xhr = new XMLHttpRequest()\n  // use sync to avoid popup blocker\n  xhr.open('HEAD', url, false)\n  xhr.send()\n  return xhr.status >= 200 && xhr.status <= 299\n}\n\n// `a.click()` don't work for all browsers (#465)\nfunction click(node) {\n  try {\n    node.dispatchEvent(new MouseEvent('click'))\n  } catch (e) {\n    var evt = document.createEvent('MouseEvents')\n    evt.initMouseEvent('click', true, true, window, 0, 0, 0, 80,\n                          20, false, false, false, false, 0, null)\n    node.dispatchEvent(evt)\n  }\n}\n\nvar saveAs = _global.saveAs ||\n// probably in some web worker\n(typeof window !== 'object' || window !== _global)\n  ? function saveAs () { /* noop */ }\n\n// Use download attribute first if possible (#193 Lumia mobile)\n: 'download' in HTMLAnchorElement.prototype\n? function saveAs (blob, name, opts) {\n  var URL = _global.URL || _global.webkitURL\n  var a = document.createElement('a')\n  name = name || blob.name || 'download'\n\n  a.download = name\n  a.rel = 'noopener' // tabnabbing\n\n  // TODO: detect chrome extensions & packaged apps\n  // a.target = '_blank'\n\n  if (typeof blob === 'string') {\n    // Support regular links\n    a.href = blob\n    if (a.origin !== location.origin) {\n      corsEnabled(a.href)\n        ? download(blob, name, opts)\n        : click(a, a.target = '_blank')\n    } else {\n      click(a)\n    }\n  } else {\n    // Support blobs\n    a.href = URL.createObjectURL(blob)\n    setTimeout(function () { URL.revokeObjectURL(a.href) }, 4E4) // 40s\n    setTimeout(function () { click(a) }, 0)\n  }\n}\n\n// Use msSaveOrOpenBlob as a second approch\n: 'msSaveOrOpenBlob' in navigator\n? function saveAs (blob, name, opts) {\n  name = name || blob.name || 'download'\n\n  if (typeof blob === 'string') {\n    if (corsEnabled(blob)) {\n      download(blob, name, opts)\n    } else {\n      var a = document.createElement('a')\n      a.href = blob\n      a.target = '_blank'\n      setTimeout(function () { clikc(a) })\n    }\n  } else {\n    navigator.msSaveOrOpenBlob(bom(blob, opts), name)\n  }\n}\n\n// Fallback to using FileReader and a popup\n: function saveAs (blob, name, opts, popup) {\n  // Open a popup immediately do go around popup blocker\n  // Mostly only avalible on user interaction and the fileReader is async so...\n  popup = popup || open('', '_blank')\n  if (popup) {\n    popup.document.title =\n    popup.document.body.innerText = 'downloading...'\n  }\n\n  if (typeof blob === 'string') return download(blob, name, opts)\n\n  var force = blob.type === 'application/octet-stream'\n  var isSafari = /constructor/i.test(_global.HTMLElement) || _global.safari\n  var isChromeIOS = /CriOS\\/[\\d]+/.test(navigator.userAgent)\n\n  if ((isChromeIOS || (force && isSafari)) && typeof FileReader === 'object') {\n    // Safari doesn't allow downloading of blob urls\n    var reader = new FileReader()\n    reader.onloadend = function () {\n      var url = reader.result\n      url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, 'data:attachment/file;')\n      if (popup) popup.location.href = url\n      else location = url\n      popup = null // reverse-tabnabbing #460\n    }\n    reader.readAsDataURL(blob)\n  } else {\n    var URL = _global.URL || _global.webkitURL\n    var url = URL.createObjectURL(blob)\n    if (popup) popup.location = url\n    else location.href = url\n    popup = null // reverse-tabnabbing #460\n    setTimeout(function () { URL.revokeObjectURL(url) }, 4E4) // 40s\n  }\n}\n\nmodule.exports = _global.saveAs = saveAs.saveAs = saveAs\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/file-saver/src/FileSaver.js\n// module id = 690\n// module chunks = 22","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('MenuPage',{attrs:{\"title\":_vm.$t('backup.title')}},[_c('div',{staticStyle:{\"text-align\":\"center\"}},[_c('div',{staticClass:\"btn btn-primary\",on:{\"click\":_vm.backup}},[_vm._v(_vm._s(_vm.$t('backup.button')))])])])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-7ad36065\",\"hasScoped\":true,\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/sideMenu/menuBackup.vue\n// module id = 691\n// module chunks = 22"],"sourceRoot":""}