canary_fe/dist/js/app-legacy.e4b8025b.js
2021-03-06 23:26:36 +08:00

1 line
12 KiB
JavaScript

(function(e){function t(t){for(var o,a,i=t[0],u=t[1],d=t[2],l=0,s=[];l<i.length;l++)a=i[l],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&s.push(r[a][0]),r[a]=0;for(o in u)Object.prototype.hasOwnProperty.call(u,o)&&(e[o]=u[o]);f&&f(t);while(s.length)s.shift()();return c.push.apply(c,d||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],o=!0,a=1;a<n.length;a++){var i=n[a];0!==r[i]&&(o=!1)}o&&(c.splice(t--,1),e=u(u.s=n[0]))}return e}var o={},a={app:0},r={app:0},c=[];function i(e){return u.p+"js/"+({"account~add~detail~generator~home~settings~unlock~updatelog":"account~add~detail~generator~home~settings~unlock~updatelog","account~add~detail~home~settings~unlock":"account~add~detail~home~settings~unlock","account~settings":"account~settings",account:"account",settings:"settings",add:"add",detail:"detail",home:"home",unlock:"unlock",generator:"generator",updatelog:"updatelog"}[e]||e)+"-legacy."+{"account~add~detail~generator~home~settings~unlock~updatelog":"62afb7b1","account~add~detail~home~settings~unlock":"b287b6d5","account~settings":"691078f5",account:"cce3577e",settings:"32a90902",add:"afa49e75",detail:"5a992a7f",home:"09cf4fec",unlock:"4de44754",generator:"ec8ad9cd",updatelog:"6a2a19c4"}[e]+".js"}function u(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={account:1,settings:1,add:1,detail:1,home:1,unlock:1,generator:1,updatelog:1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var o="css/"+({"account~add~detail~generator~home~settings~unlock~updatelog":"account~add~detail~generator~home~settings~unlock~updatelog","account~add~detail~home~settings~unlock":"account~add~detail~home~settings~unlock","account~settings":"account~settings",account:"account",settings:"settings",add:"add",detail:"detail",home:"home",unlock:"unlock",generator:"generator",updatelog:"updatelog"}[e]||e)+"."+{"account~add~detail~generator~home~settings~unlock~updatelog":"31d6cfe0","account~add~detail~home~settings~unlock":"31d6cfe0","account~settings":"31d6cfe0",account:"9f35b946",settings:"737c08f8",add:"caa4e153",detail:"77dce31c",home:"a8e69ca9",unlock:"bc688abc",generator:"51264771",updatelog:"78701de0"}[e]+".css",r=u.p+o,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var d=c[i],l=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(l===o||l===r))return t()}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){d=s[i],l=d.getAttribute("data-href");if(l===o||l===r)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var o=t&&t.target&&t.target.src||r,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=o,delete a[e],f.parentNode.removeChild(f),n(c)},f.href=r;var g=document.getElementsByTagName("head")[0];g.appendChild(f)})).then((function(){a[e]=0})));var o=r[e];if(0!==o)if(o)t.push(o[2]);else{var c=new Promise((function(t,n){o=r[e]=[t,n]}));t.push(o[2]=c);var d,l=document.createElement("script");l.charset="utf-8",l.timeout=120,u.nc&&l.setAttribute("nonce",u.nc),l.src=i(e);var s=new Error;d=function(t){l.onerror=l.onload=null,clearTimeout(f);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}r[e]=void 0}};var f=setTimeout((function(){d({type:"timeout",target:l})}),12e4);l.onerror=l.onload=d,document.head.appendChild(l)}return Promise.all(t)},u.m=e,u.c=o,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)u.d(n,o,function(t){return e[t]}.bind(null,o));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/",u.oe=function(e){throw console.error(e),e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],l=d.push.bind(d);d.push=t,d=d.slice();for(var s=0;s<d.length;s++)t(d[s]);var f=l;c.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"56d7":function(e,t,n){"use strict";n.r(t);n("139e"),n("fae9"),n("3ff7"),n("d6dc");var o=n("a593"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("icon",{staticClass:"bg",attrs:{name:"canary"}}),n("router-view")],1)},r=[],c=n("d211"),i=n("cf6b"),u={name:"App",mounted:function(){var e=this;window.addEventListener("beforeunload",(function(t){return e.beforeunloadHandler(t)})),window.addEventListener("unload",(function(t){return e.unloadHandler(t)}))},destroyed:function(){var e=this;window.removeEventListener("beforeunload",(function(t){return e.beforeunloadHandler(t)})),window.removeEventListener("unload",(function(t){return e.unloadHandler(t)}))},methods:Object(c["a"])(Object(c["a"])({},Object(i["b"])(["setRowPwd"])),{},{beforeunloadHandler:function(){this._beforeUnload_time=(new Date).getTime()},unloadHandler:function(e){this._gap_time=(new Date).getTime()-this._beforeUnload_time,this._gap_time<=5&&(console.log("退出程序清除主密码"),this.setRowPwd(["",this]))}})},d=u,l=(n("5c0b"),n("5d22")),s=Object(l["a"])(d,a,r,!1,null,null,null),f=s.exports,g=n("08e7");Object(g["a"])("".concat("/","service-worker.js"),{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered:function(){console.log("Service worker has been registered.")},cached:function(){console.log("Content has been cached for offline use.")},updatefound:function(){console.log("New content is downloading.")},updated:function(){console.log("New content is available; please refresh."),window.location.reload(!0)},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(e){console.error("Error during service worker registration:",e)}});n("402f");var h=n("a81e");o["default"].use(h["a"]);var m=[{path:"/",name:"Home",component:function(){return Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("home")]).then(n.bind(null,"1c62"))}},{path:"/add",name:"Add",component:function(){return Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("add")]).then(n.bind(null,"df8f"))}},{path:"/account",name:"Account",component:function(){return Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("account~settings"),n.e("account")]).then(n.bind(null,"a3f2"))}},{path:"/updatelog",name:"UpdateLog",component:function(){return Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("updatelog")]).then(n.bind(null,"8263"))}},{path:"/settings",name:"Settings",component:function(){return Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("account~settings"),n.e("settings")]).then(n.bind(null,"3f42"))}},{path:"/unlock",name:"Unlock",component:function(){return Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("unlock")]).then(n.bind(null,"ca94"))}},{path:"/detail",name:"Detail",component:function(){return Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("account~add~detail~home~settings~unlock"),n.e("detail")]).then(n.bind(null,"f574"))}},{path:"/generator",name:"Generator",component:function(){return Promise.all([n.e("account~add~detail~generator~home~settings~unlock~updatelog"),n.e("generator")]).then(n.bind(null,"5eac"))}},{path:"*",redirect:"/",name:"notFound",hidden:!0}],p=new h["a"]({mode:"history",base:"/",routes:m}),v=p;n("fae2");o["default"].use(i["a"]);var w=new i["a"].Store({state:{user_infos:"",row_data:"",row_pwd:"",settings:"",home_state:""},mutations:{SET_USERINFO:function(e,t){e.user_infos=t},SET_ROWDATA:function(e,t){e.row_data=t},SET_ROWPWD:function(e,t){e.row_pwd=t},SET_SETTINGS:function(e,t){e.settings=t},SET_HOMESTATE:function(e,t){e.home_state=t}},actions:{setUserInfo:function(e,t){var n=e.commit;n("SET_USERINFO",t[0]),b.call(t[1])},setRowData:function(e,t){var n=e.commit;n("SET_ROWDATA",t[0]),b.call(t[1])},setRowPwd:function(e,t){var n=e.commit;n("SET_ROWPWD",t[0]),b.call(t[1])},setSettings:function(e,t){var n=e.commit;n("SET_SETTINGS",t[0]),b.call(t[1])},setHomeState:function(e,t){var n=e.commit;n("SET_HOMESTATE",t[0]),b.call(t[1])}},modules:{}});function b(){for(var e=this.$store.state,t=0,n=Object.keys(e);t<n.length;t++){var o=n[t];localStorage.setItem("canary_"+o,JSON.stringify(e[o]))}}var k=n("e6a3"),y=n("61e4"),_=n("25e5"),E=n.n(_),S=(n("cd3b"),n("cfe9"),n("cb3b"),n("9306")),O=n.n(S),T=n("aac1"),x=n.n(T);o["default"].component("icon",y["a"]),o["default"].use(E.a),Object(k["a"])(),o["default"].use(O.a);var P=n("65d8");o["default"].use(P,{name:"v-touch"}),new x.a,o["default"].config.productionTip=!1,new o["default"]({router:v,store:w,render:function(e){return e(f)}}).$mount("#app")},"5c0b":function(e,t,n){"use strict";n("ac27")},7126:function(e,t,n){var o={"./canary-white.svg":"8579","./canary.svg":"c251","./file_copy.svg":"d6a5"};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}a.keys=function(){return Object.keys(o)},a.resolve=r,e.exports=a,a.id="7126"},8579:function(e,t){e.exports={svg:{$:{class:"icon",width:"200px",height:"200.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},path:[{$:{fill:"#ffffff",d:"M921.6 716.75904L415.46752 210.66752a136.25344 136.25344 0 0 0-96.54272-39.99744c-70.93248 0-128.53248 54.272-135.19872 123.43296L102.4 375.43936h86.12864C210.59584 506.39872 294.57408 616.09984 409.6 673.49504v179.84512h68.27008V700.34432a405.18656 405.18656 0 0 0 68.25984 13.70112v139.30496H614.4V716.75904h307.2zM448.93184 340.6336L620.2368 511.95904h-39.95648c-75.27424 0-136.54016-61.22496-136.54016-136.52992-0.01024-12.12416 2.12992-23.63392 5.19168-34.79552z m-198.26688-33.46432a68.32128 68.32128 0 0 1 68.25984-68.22912c18.19648 0 35.36896 7.09632 48.27136 19.99872l28.4672 28.4672a202.37312 202.37312 0 0 0-20.20352 88.03328c0 112.92672 91.86304 204.8 204.8 204.8h108.22656l68.27008 68.25984H592.00512c-188.20096 0-341.34016-153.1392-341.34016-341.32992z"}}]}}},ac27:function(e,t,n){},c251:function(e,t){e.exports={svg:{$:{t:"1582191167349",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3270","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"200",height:"200"},defs:[{style:[{$:{type:"text/css"}}]}],path:[{$:{d:"M921.6 716.75904L415.46752 210.66752a136.25344 136.25344 0 0 0-96.54272-39.99744c-70.93248 0-128.53248 54.272-135.19872 123.43296L102.4 375.43936h86.12864C210.59584 506.39872 294.57408 616.09984 409.6 673.49504v179.84512h68.27008V700.34432a405.18656 405.18656 0 0 0 68.25984 13.70112v139.30496H614.4V716.75904h307.2zM448.93184 340.6336L620.2368 511.95904h-39.95648c-75.27424 0-136.54016-61.22496-136.54016-136.52992-0.01024-12.12416 2.12992-23.63392 5.19168-34.79552z m-198.26688-33.46432a68.32128 68.32128 0 0 1 68.25984-68.22912c18.19648 0 35.36896 7.09632 48.27136 19.99872l28.4672 28.4672a202.37312 202.37312 0 0 0-20.20352 88.03328c0 112.92672 91.86304 204.8 204.8 204.8h108.22656l68.27008 68.25984H592.00512c-188.20096 0-341.34016-153.1392-341.34016-341.32992z","p-id":"3271",fill:"#bbdefb"}}]}}},d6a5:function(e,t){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},path:[{$:{d:"M0 0h24v24H0z",fill:"none"}},{$:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}}]}}},e6a3:function(e,t,n){"use strict";function o(){var e=document.documentElement.clientWidth||document.body.clientWidth,t=document.getElementsByTagName("html")[0];t.style.fontSize=e>=500?"50px":e/10+"px"}n.d(t,"a",(function(){return o}))}});