You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
41 KiB
2 lines
41 KiB
(function(a){function e(e){for(var i,s,o=e[0],l=e[1],u=e[2],d=0,k=[];d<o.length;d++)s=o[d],Object.prototype.hasOwnProperty.call(n,s)&&n[s]&&k.push(n[s][0]),n[s]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(a[i]=l[i]);c&&c(e);while(k.length)k.shift()();return r.push.apply(r,u||[]),t()}function t(){for(var a,e=0;e<r.length;e++){for(var t=r[e],i=!0,o=1;o<t.length;o++){var l=t[o];0!==n[l]&&(i=!1)}i&&(r.splice(e--,1),a=s(s.s=t[0]))}return a}var i={},n={app:0},r=[];function s(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.m=a,s.c=i,s.d=function(a,e,t){s.o(a,e)||Object.defineProperty(a,e,{enumerable:!0,get:t})},s.r=function(a){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},s.t=function(a,e){if(1&e&&(a=s(a)),8&e)return a;if(4&e&&"object"===typeof a&&a&&a.__esModule)return a;var t=Object.create(null);if(s.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:a}),2&e&&"string"!=typeof a)for(var i in a)s.d(t,i,function(e){return a[e]}.bind(null,i));return t},s.n=function(a){var e=a&&a.__esModule?function(){return a["default"]}:function(){return a};return s.d(e,"a",e),e},s.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)},s.p="/";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],l=o.push.bind(o);o.push=e,o=o.slice();for(var u=0;u<o.length;u++)e(o[u]);var c=l;r.push([0,"chunk-vendors"]),t()})({0:function(a,e,t){a.exports=t("cd49")},"034f":function(a,e,t){"use strict";t("85ec")},"1b20":function(a,e,t){"use strict";t("e7cb")},"439d":function(a,e,t){},4809:function(a,e,t){"use strict";t("88a6")},"620b":function(a,e,t){},"85ec":function(a,e,t){},"88a6":function(a,e,t){},aa64:function(a,e,t){"use strict";t("620b")},bf38:function(a,e,t){},cd49:function(a,e,t){"use strict";t.r(e);t("e260"),t("e6cf"),t("cca6"),t("a79d");var i,n=t("2b0e"),r=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{attrs:{id:"app"}},[t("Main",{attrs:{msg:"Welcome to Your Vue.js + TypeScript App"}})],1)},s=[],o=t("d4ec"),l=t("262e"),u=t("2caf"),c=t("9ab4"),d=t("1b40"),k=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"container"},[t("div",{staticClass:"wrapper"},[t("div",{staticClass:"tab-panel"},[t("div",{staticClass:"tab-panel__item",class:{"tab-panel__item_active":"person"===a.tab},on:{click:function(e){a.tab="person"}}},[a._v("Person ")]),t("div",{staticClass:"tab-panel__item",class:{"tab-panel__item_active":"mocks"===a.tab},on:{click:function(e){a.personalId="",a.tab="mocks"}}},[a._v(" Mocks ")]),t("div",{staticClass:"tab-panel__item",class:{"tab-panel__item_active":"ember"===a.tab},on:{click:function(e){a.tab="ember"}}},[a._v(" Ember ")])]),t("div",{staticClass:"tab-page"},[t("div",{staticClass:"tab-page__item",class:{"tab-page__item_show":"person"===a.tab}},[t("PersonTab")],1),t("div",{staticClass:"tab-page__item",class:{"tab-page__item_show":"mocks"===a.tab}},[t("MocksTab")],1),t("div",{staticClass:"tab-page__item",class:{"tab-page__item_show":"ember"===a.tab}},[t("EmberTab")],1)])])])},v=[],m=t("4eb5"),h=t.n(m),p=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",[t("div",[t("div",[a._v("XTEE MTA")]),t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:a.registers.xtee_mta,expression:"registers.xtee_mta"}],staticClass:"option-select",on:{change:[function(e){var t=Array.prototype.filter.call(e.target.options,(function(a){return a.selected})).map((function(a){var e="_value"in a?a._value:a.value;return e}));a.$set(a.registers,"xtee_mta",e.target.multiple?t:t[0])},a.onXteeMtaChanged]}},[t("option",{attrs:{value:""}},[a._v("-")]),t("option",{attrs:{value:"0"}},[a._v("Не замокано (делать запрос)")]),t("option",{attrs:{value:"1"}},[a._v("Выписка на хороший доход")]),t("option",{attrs:{value:"2"}},[a._v("Выписка на маленький доход")]),t("option",{attrs:{value:"3"}},[a._v("Ошибка загрузки выписки (перезапрос)")]),t("option",{attrs:{value:"4"}},[a._v("Ошибка загрузки выписки (нет данных)")]),t("option",{attrs:{value:"5"}},[a._v("По персональному коду (3 - выписка с хорошим доходом, остальные - ошибка загрузки выписки)")]),t("option",{attrs:{value:"6"}},[a._v("Выписка на хороший доход, последние два месяца доход 0")]),t("option",{attrs:{value:"7"}},[a._v("Выписка на хороший доход, последний месяц доход 0")]),t("option",{attrs:{value:"8"}},[a._v("Выписка на хороший доход, но у пользователя нет активного работодателя. Не можем выдать")]),t("option",{attrs:{value:"9"}},[a._v("Выписка на хороший доход, в выписке есть выплаты, которые не учитываются в подсчёте среднего дохода")])])])]),t("div",[t("div",[a._v("XTEE RIA")]),t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:a.registers.ria,expression:"registers.ria"}],staticClass:"option-select",on:{change:[function(e){var t=Array.prototype.filter.call(e.target.options,(function(a){return a.selected})).map((function(a){var e="_value"in a?a._value:a.value;return e}));a.$set(a.registers,"ria",e.target.multiple?t:t[0])},a.onRiaChanged]}},[t("option",{attrs:{value:""}},[a._v("-")]),t("option",{attrs:{value:"0"}},[a._v("Не замокано (делать запрос)")]),t("option",{attrs:{value:"1"}},[a._v("Успешный запрос")]),t("option",{attrs:{value:"2"}},[a._v("Все запросы отклонены")]),t("option",{attrs:{value:"3"}},[a._v("По персональному коду (3 - успешно, остальные - ошибка)")])])])]),t("br"),t("br"),"add"===a.mode?t("button",{on:{click:a.saveMocks}},[a._v("Сохранить моки")]):a._e()])},f=[],g=t("b85c"),b=t("bee2"),y=function a(){Object(o["a"])(this,a),this.xtee_mta="",this.ria="",this.xtee_pension=""},w=(t("4de4"),t("c975"),t("d81d"),t("ac1f"),t("5319"),t("96cf"),t("1da1")),A=t("bc3a"),M=t.n(A);(function(a){a[a["base"]=0]="base"})(i||(i={}));var j=!1,z=i.base,C={code:"api_plugin_get_configurations",method:"GET",url:"/plugin/mock-configurations"},_=(t("d3b7"),new Promise((function(a){var e={data:[{id:"casdasdc34c342cr341c34r123d",personalId:"48907031677",code:"xtee_mta",value:"2",active:!0}],status:200,statusText:"OK",headers:{},config:{}};a(e)}))),O={};O[i.base]={},O[i.base][C.code]=_;var B,S=O,K=function(){function a(){Object(o["a"])(this,a)}return Object(b["a"])(a,[{key:"handle",value:function(a){if(!j)return null;var e=z in S||!1;if(!e)throw new Error("Flow not found!!! Change flow in @/stubs/config.ts");var t=S[z],i=a in t||!1;if(!i)throw new Error("Route`s stub not found!!! Add stub or change flow to check application");return t[a]}}]),a}(),E=new K,P=(t("466d"),function(){function a(){Object(o["a"])(this,a)}return Object(b["a"])(a,[{key:"resolve",value:function(){var a=new Promise((function(a){"undefined"!==typeof chrome&&"undefined"!==typeof chrome.tabs?chrome.tabs.query({active:!0,currentWindow:!0},(function(e){var t,i=Object(g["a"])(e);try{for(i.s();!(t=i.n()).done;){var n=t.value,r=n.url||"",s=r.match(/http:\/\/.*?\.(.*?)\..*?/)||[],o=s[1]||null,l=r.indexOf("laen")>-1||r.indexOf("smsmoney")>-1||r.indexOf("smsraha")>-1||r.indexOf("placetgroup")>-1,u=l?"placetgroup":"nordecum",c=l?"com":"lt",d=-1!==r.indexOf(".sv");return r=o&&d?u+"."+o+".sv":"dev."+u+"."+c,r=(d?"http://":"https://")+r,console.log("domain_resolver",s,o,l,u,c,r),void a(r)}}catch(k){i.e(k)}finally{i.f()}})):a(null)}));return a.then((function(a){return console.log("url",a),a}))}}]),a}()),N=new P,L=function a(){Object(o["a"])(this,a)},D=function(a){Object(l["a"])(t,a);var e=Object(u["a"])(t);function t(){return Object(o["a"])(this,t),e.apply(this,arguments)}return t}(L),I=function(a){Object(l["a"])(t,a);var e=Object(u["a"])(t);function t(){return Object(o["a"])(this,t),e.apply(this,arguments)}return t}(L),R=function(){function a(e){Object(o["a"])(this,a),this.handlers=[],this.baseUrl=e}return Object(b["a"])(a,[{key:"syncBaseUrlWithStand",value:function(){var a=Object(w["a"])(regeneratorRuntime.mark((function a(){var e=this;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,N.resolve().then((function(a){e.baseUrl=a||e.baseUrl}));case 2:case"end":return a.stop()}}),a)})));function e(){return a.apply(this,arguments)}return e}()},{key:"send",value:function(a){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.syncBaseUrlWithStand();var i=a.url,n=t;for(var r in t)i.indexOf("{"+r+"}")>-1&&(i=i.replace("{"+r+"}",n[r]),delete n[r]);console.log(t,"data");var s={method:a.method,url:this.baseUrl+i,data:n,headers:{"Content-Type":"application/json;charset=utf-8"}};this.handlers.filter((function(a){return a instanceof D})).map((function(a){return a.handle(s),a}));var o=E.handle(a.code),l=s;if(a.prefix){var u={};u[a.prefix]=l.data,l.data=u}"GET"===l.method&&(l.params=l.data,delete l.data);var c=o||M()(l);return c.then((function(a){return e.handlers.filter((function(a){return a instanceof I})).map((function(e){return e.handle(a),e})),a}))}},{key:"addHandler",value:function(a){return this.handlers.push(a),this}}]),a}(),T=function(a){Object(l["a"])(t,a);var e=Object(u["a"])(t);function t(){var a;return Object(o["a"])(this,t),a=e.apply(this,arguments),a.handle=function(a){a.headers=a.headers||{},a.headers["x-plugin-token"]="GxwGRM",console.log(a,"DeviceIdHandler")},a}return t}(D),G=(new T,function a(){Object(o["a"])(this,a)}),V={code:"api_plugin_add_configurations",method:"POST",url:"/plugin/mock-configurations",prefix:"mockConfigurations"},J={code:"api_plugin_change_configuration_value",method:"PATCH",url:"/plugin/mock-configurations/{id}/value",prefix:"mockConfigurations"},x=function(a){Object(l["a"])(t,a);var e=Object(u["a"])(t);function t(){return Object(o["a"])(this,t),e.apply(this,arguments)}return Object(b["a"])(t,[{key:"mockConfigurations",value:function(a){return this.send(C,a)}},{key:"addMockConfigurations",value:function(a){return this.send(V,a)}},{key:"changeMockValueConfiguration",value:function(a){return this.send(J,a)}}]),t}(R),F=new x("http://placetgroup.sipachev.sv").addHandler(new T);d["c"].use(h.a),function(a){a["ADD"]="add",a["UPDATE"]="update"}(B||(B={}));var H=function(a){Object(l["a"])(t,a);var e=Object(u["a"])(t);function t(){var a;return Object(o["a"])(this,t),a=e.apply(this,arguments),a.registers=new y,a.register2Id={},a}return Object(b["a"])(t,[{key:"mounted",value:function(){console.log("mounted",this.personalCode)}},{key:"onPersonalCodeChanged",value:function(a,e){var t=this;this.mode===B.UPDATE&&F.mockConfigurations({personalCode:this.personalCode}).then((function(a){var e,i=Object(g["a"])(a.data);try{for(i.s();!(e=i.n()).done;){var n=e.value;t.registers[n.code]=n.value,t.register2Id[n.code]=n.id}}catch(r){i.e(r)}finally{i.f()}}))}},{key:"onXteeMtaChanged",value:function(){this.mode===B.UPDATE&&"undefined"!==this.register2Id.xtee_mta&&F.changeMockValueConfiguration({id:this.register2Id.xtee_mta,value:this.registers.xtee_mta}).then((function(a){console.log("updateMock"),console.log(a)}))}},{key:"onRiaChanged",value:function(){this.mode===B.UPDATE&&"undefined"!==this.register2Id.ria&&F.changeMockValueConfiguration({id:this.register2Id.ria,value:this.registers.ria}).then((function(a){console.log("updateMock"),console.log(a)}))}},{key:"saveMocks",value:function(){var a=[];for(var e in this.registers){var t=new G;t.personalCode=this.personalCode,t.code=e,t.value=this.registers[e],t.value&&(t.active="true",a.push(t))}F.addMockConfigurations({items:a}).then((function(a){console.log("saveMocks"),console.log(a)}))}}]),t}(d["c"]);Object(c["a"])([Object(d["b"])()],H.prototype,"personalCode",void 0),Object(c["a"])([Object(d["b"])()],H.prototype,"mode",void 0),Object(c["a"])([Object(d["d"])("personalCode",{immediate:!0})],H.prototype,"onPersonalCodeChanged",null),H=Object(c["a"])([d["a"]],H);var W,U,Z=H,$=Z,Y=(t("d384"),t("2877")),X=Object(Y["a"])($,p,f,!1,null,"4c71c246",null),q=X.exports,Q=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",[t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-row__item"},[t("input",{directives:[{name:"model",rawName:"v-model",value:a.person.birthday.day,expression:"person.birthday.day"}],staticClass:"form-row__item-input",attrs:{title:"Day",type:"text",placeholder:"Day"},domProps:{value:a.person.birthday.day},on:{input:function(e){e.target.composing||a.$set(a.person.birthday,"day",e.target.value)}}})]),t("div",{staticClass:"form-row__item"},[t("select",{directives:[{name:"model",rawName:"v-model",value:a.person.birthday.month,expression:"person.birthday.month"}],attrs:{title:"Month"},on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,(function(a){return a.selected})).map((function(a){var e="_value"in a?a._value:a.value;return e}));a.$set(a.person.birthday,"month",e.target.multiple?t:t[0])}}},a._l(a.allowedMonths,(function(e){return t("option",{domProps:{value:e}},[a._v(a._s(e))])})),0)]),t("div",{staticClass:"form-row__item"},[t("select",{directives:[{name:"model",rawName:"v-model",value:a.person.birthday.year,expression:"person.birthday.year"}],attrs:{title:"Year"},on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,(function(a){return a.selected})).map((function(a){var e="_value"in a?a._value:a.value;return e}));a.$set(a.person.birthday,"year",e.target.multiple?t:t[0])}}},a._l(a.allowedYears,(function(e){return t("option",{domProps:{value:e}},[a._v(a._s(e))])})),0)])]),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-row__item"},[t("label",[a._v(" Country "),t("select",{directives:[{name:"model",rawName:"v-model",value:a.person.country,expression:"person.country"}],on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,(function(a){return a.selected})).map((function(a){var e="_value"in a?a._value:a.value;return e}));a.$set(a.person,"country",e.target.multiple?t:t[0])}}},[t("option",{attrs:{value:"ee"}},[a._v("Estonia")]),t("option",{attrs:{value:"lt"}},[a._v("Lithuania")])])])]),t("div",{staticClass:"form-row__item"},[t("label",[a._v(" Gender "),t("select",{directives:[{name:"model",rawName:"v-model",value:a.person.gender,expression:"person.gender"}],on:{change:function(e){var t=Array.prototype.filter.call(e.target.options,(function(a){return a.selected})).map((function(a){var e="_value"in a?a._value:a.value;return e}));a.$set(a.person,"gender",e.target.multiple?t:t[0])}}},[t("option",{attrs:{value:"male"}},[a._v("Male")]),t("option",{attrs:{value:"female"}},[a._v("Female")]),t("option",{attrs:{value:"random"}},[a._v("Random")])])])])]),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-row__item copy-button",attrs:{"data-clipboard-text":"text1"},on:{click:a.autocomplete}},[t("button",[a._v("Autocomplete")])]),t("div",{staticClass:"form-row__item copy-button",attrs:{"data-clipboard-text":"text2"},on:{click:a.copyPersonalCode}},[t("button",[a._v("personalCode")])]),t("div",{staticClass:"form-row__item copy-button",attrs:{"data-clipboard-text":"text3"},on:{click:a.copyIban}},[t("button",[a._v("Iban")])]),t("div",{staticClass:"form-row__item copy-button",attrs:{"data-clipboard-text":"text3"},on:{click:a.copyPhone}},[t("button",[a._v("Phone")])])]),t("div",{staticClass:"memory-panel"},[a._v("Memory: "+a._s(a.copyText))]),a.personalCode?t("div",[t("hr"),t("Mocks",{attrs:{mode:"add",personalCode:a.personalCode}})],1):a._e()])},aa=[],ea=(t("25f0"),t("4d90"),t("53ca")),ta=function(){function a(){Object(o["a"])(this,a)}return Object(b["a"])(a,[{key:"generate",value:function(a,e){return Math.floor(Math.random()*(e-a+1)+a)}}]),a}(),ia=new ta;(function(a){a["ESTONIA"]="ee",a["LITHUANIA"]="lt",a["POLAND"]="pl"})(W||(W={})),function(a){a["MALE"]="male",a["FEMALE"]="female",a["RANDOM"]="random"}(U||(U={}));var na,ra=function(){function a(){Object(o["a"])(this,a)}return Object(b["a"])(a,[{key:"generate",value:function(a){var e=this.grabFullYear(a.birthday.year),t=this.getYearPart(e),i=this.getMonthPart(a.birthday.month),n=this.getDayPart(a.birthday.day),r=this.getIdNumPart(),s=this.getGenderPart(a.country,a.gender,e),o=(this.getControlSum(a.country,t,i,n,r,s),this.getChecksum(s+t+i+n+r));return s+t+i+n+r+o}},{key:"grabFullYear",value:function(a){if(!a){var e=(new Date).getFullYear();a=BigInt(ia.generate(e-5,e-55))}return a}},{key:"getYearPart",value:function(a){return String(a).substring(2,4)}},{key:"getMonthPart",value:function(a){return a||(a=BigInt(ia.generate(1,12))),a.toString().padStart(2,"0")}},{key:"getDayPart",value:function(a){return a||(a=BigInt(ia.generate(1,28))),a.toString().padStart(2,"0")}},{key:"getIdNumPart",value:function(){return ia.generate(1,999).toString().padStart(3,"0")}},{key:"getGenderPart",value:function(a,e,t){console.log(a,e);var i=e;switch(a){case W.POLAND:return console.log(a),U.MALE===e?String(2*ia.generate(1,5)-1):String(2*ia.generate(1,4));default:return console.log(e,U.MALE===e),U.RANDOM===e&&(i=ia.generate(1,999)>500?U.FEMALE:U.MALE),console.log(t,"year",Object(ea["a"])(t)),U.MALE===i?t<2e3?"3":"5":t<2e3?"4":"6"}}},{key:"getControlSum",value:function(a,e,t,i,n,r){var s,o;if(W.POLAND===a)return o=+(s=e+t+i+n+r)[0]+3*+s[1]+7*+s[2]+9*+s[3]+ +s[4]+3*+s[5]+7*+s[6]+9*+s[7]+ +s[8]+3*+s[9],0!==(o%=10)&&(o=10-o),o=String(o),o;var l=0,u=0;s=r+e+t+i+n;for(var c=1,d=3,k=0;k<10;k++){var v=+s[k];v*c,v*d,10===++c&&(c=1),10===++d&&(d=1)}return u%=11,(l%=11)<10?String(l):String(u<10?u:0)}},{key:"getChecksum",value:function(a){var e,t,i=1,n=3,r=0,s=0;for(e=0;e<10;e++)t=parseInt(a[e]),r+=t*i,s+=t*n,i++,10===i&&(i=1),n++,10===n&&(n=1);return r%=11,s%=11,r<10?r:s<10?s:0}}]),a}(),sa=new ra,oa=function(){function a(){Object(o["a"])(this,a)}return Object(b["a"])(a,[{key:"generate",value:function(a){var e=this.getBankAccount(a),t=this.getNationalCheckDigit(e),i=this.getBankCode(a);switch(a){case W.ESTONIA:return a.toUpperCase()+this.getIbanCheckDigits(i+e+t+"141400")+i+e+t;case W.LITHUANIA:return a.toUpperCase()+this.getIbanCheckDigits(i+e+"212900")+i+e;default:return a.toUpperCase()+this.getIbanCheckDigits(i+e+"252100")+i+e}}},{key:"getBankAccount",value:function(a){var e,t=BigInt(97),i=BigInt((e=W.POLAND===a?Math.floor(9999999*Math.random()).toString().padStart(7,"0")+Math.floor(9999999*Math.random()).toString().padStart(7,"0"):Math.floor(99999*Math.random()).toString().padStart(5,"0")+Math.floor(9999*Math.random()).toString().padStart(4,"0"))+"00");return e+String(t-i%t).padStart(2,"0")}},{key:"getNationalCheckDigit",value:function(a){for(var e=[7,1,3,7,1,3,7,1,3,7,1,3,7,1,3,7,1,3,7],t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=0,n=a.length,r=18,s=n-1;s>-1;s--)t[r]=e[r]*+a[s],r--;r=18;for(var o=n-1;o>-1;o--)i-=-t[r],r--;return String(i%10!==0?10-i%10:0)}},{key:"getBankCode",value:function(a){var e=["16000003","11602231","10301612","18900002","15002240","19401018","19101152"],t=["2200","1010","3300","7700","1700","4204"],i=["20900","72900","74000","40100","21200","72300","21700","21400","70440","71800","73000"];switch(a){case W.POLAND:return e[Math.floor(Math.random()*e.length)];case W.ESTONIA:return t[Math.floor(Math.random()*t.length)];default:return i[Math.floor(Math.random()*i.length)]}}},{key:"getIbanCheckDigits",value:function(a){return String(BigInt("98")-BigInt(a)%BigInt("97")).padStart(2,"0")}}]),a}(),la=new oa,ua=function(){function a(){Object(o["a"])(this,a)}return Object(b["a"])(a,[{key:"generate",value:function(a){switch(a){case W.POLAND:return this.getPlPhoneNum();case W.LITHUANIA:return this.getLtPhoneNum();default:return this.getEePhoneNum()}}},{key:"getPlPhoneNum",value:function(){for(var a=["45","50","51","53","57","60","66","69","72","73","78","79","88"],e=this.getBasePhone(),t=0;t<=8;t++){for(var i="",n=t.toString(),r=0;r<=6;r++)i+=n;e===i&&(e=e.substring(0,6)+"9")}return a[Math.floor(Math.random()*a.length)]+e}},{key:"getLtPhoneNum",value:function(){return"6"+this.getBasePhone()}},{key:"getEePhoneNum",value:function(){return"5"+this.getBasePhone()}},{key:"getBasePhone",value:function(){return Math.floor(9999999*Math.random()).toString().padStart(7,"0")}}]),a}(),ca=new ua,da=function(){function a(){Object(o["a"])(this,a),this.plMaleFirstNames=["Adamek","Adaś","Aleksander","Alfons","Alojzy","Ambroży","Andrzej","Antoni","Arkadiusz","Artur","Baltazar","Barnaba","Bartek","Bartłomiej","Bartosz","Bernard","Biernat","Bogumił","Bogurad","Bogusław","Boguś","Bolek","Bolesław","Bonawentura","Bonifacy","Borys","Bronisław","Cezary","Cyryl","Czesław","Damian","Daniel","Dariusz","Dawid","Domarad","Domaradz","Dominik","Dzierżykraj","Edward","Emil","Eryk","Ezdrasz","Fabian","Filip","Franciszek","Gabriel","Gniewosz","Gocław","Gracjan","Grzegorz","Grzesiek","Grześ","Gustaw","Habakuk","Henryk","Hubert","Igor","Igorek","Ildefons","Ireneusz","Iwan","Izajasz","Jacek","Jakub","Jan","Janusz","Jarosław","Jaruś","Jasiek","Jerzy","Jonatan","Józef","Judasz","Juliusz","Jurek","Juruś","Justyn","Kacper","Kamil","Karol","Kazimierz","Klaudiusz","Kochan","Konrad","Krystian","Krzysztof","Krzyś","Ksawery","Lasota","Lech","Lesław","Leszek","Lew","Lucek","Lucjan","Lucjusz","Ludwik","Łukasz","Maciej","Marcel","Marcin","Marek","Marian","Mariusz","Mateusz","Maurycy","Michał","Michałek","Michaś","Mieczysław","Mieszko","Mietek","Mikołaj","Miłosz","Mirosław","Nawoj","Niemir","Nierod","Norbert","Olaf","Oleg","Olek","Olgierd","Oliwer","Oliwier","Oskar","Paweł","Pawełek","Piotr","Piotrek","Piotruś","Poniat","Przemysław","Racibor","Racław","Radek","Radosław","Radzim","Radzisław","Rafał","Recław","Remigiusz","Robert","Roman","Romek","Ryszard","Ryś","Sambor","Sebastian","Sergiusz","Seweryn","Sławomir","Stanisław","Staś","Stefan","Sulejman","Sulich","Sylwester","Szczepan","Szczęsny","Szymek","Szymon","Szymuś","Tadeusz","Tomasz","Tytus","Ulryk","Wacław","Waldek","Waldemar","Waleriusz","Wawrzyniec","Wiesław","Wiktor","Wincenty","Wit","Witek","Witold","Witosław","Władysław","Włodek","Włodzimierz","Wojciech","Wojcik","Wojsław","Wojtas","Wojtasz","Wojtek","Wojtuś","Wszerad","Zachariasz","Zbigniew","Zbylut","Zbyszek","Zdzisław","Zygmunt","Zyguś","Żegota"],this.plFemaleFirstNames=["Agata","Agnieszka","Agusia","Aleksandra","Alicja","Amanda","Anastazja","Aneta","Ania","Anka","Anna","Apolonia","Asia","Barbara","Basia","Beata","Benedykta","Bernadeta","Bogdana","Bogumiła","Bolesława","Bożena","Bożenka","Bronisława","Brygida","Cecylia","Celestyna","Czesława","Dagmara","Danuta","Dobrosława","Dominika","Dorota","Dorotka","Edwarda","Edyta","Ela","Eleonora","Elżbieta","Emilia","Emilka","Ewa","Ewelina","Ewka","Ewunia","Franciszka","Gabriela","Genowefa","Gosia","Grażyna","Halina","Hania","Hanna","Helena","Henryka","Hildegarda","Honorata","Iga","Irena","Iwana","Iwona","Iwonka","Izabela","Jadwiga","Jadzia","Jagoda","Janina","Joanna","Joasia","Jolanta","Judyta","Julia","Justyna","Kamila","Karolina","Kasia","Katarzyna","Kazimiera","Klara","Klaudia","Klotylda","Krysia","Krystyna","Kunegunda","Lena","Łucja","Magda","Magdalena","Malina","Małgorzata","Maria","Marianna","Mariola","Mariolka","Marta","Martyna","Marycha","Maryla","Marylka","Marysia","Marzena","Matylda","Melania","Michalina","Monika","Nadia","Natalia","Oliwia","Patrycja","Paulina","Renata","Róża","Stanisława","Stefania","Sylwia","Szarlota","Teresa","Urszula","Wanda","Weronika","Wiesława","Wiktoria","Wioleta","Zofia","Zuzanna","Żaneta"],this.ltMaleFirstNames=["Adolfas","Aivaras","Albinas","Aleksandras","Alfonsas","Alfredas","Algimantas","Algirdas ","Algis","Alvydas","Andrius","Antanas","Antons","Arnoldas","Arturas","Arunas","Arvydas","Audrius","Aurelijus","Aurimas","Balys","Benas","Benjaminas","Bernardas","Bronislovas","Bronius","Ceslovas","Dainius","Danas","Darius","Daumantas","Deimantas","Deividas","Domantas","Donatas","Edgaras","Edmundas","Eduardas","Edvardas","Edvinas","Egidijus","Eimantas","Ernestas","Eugenijus","Evaldas","Feliksas","Gediminas","Giedrius","Gintaras","Gintautas","Henrikas","Ignas","Isakas","Jeronimas","Jokubas","Jonas","Juozapas","Juozas","Jurgis","Justas","Justinas","Karolis","Kazimieras","Kazys","Kestutis","Laurynas","Leonardas","Leonas","Linas","Lionginas","Liudvikas","Lukas","Mantas","Marijonas","Marius ","Markas","Martynas","Mikalojus","Mindaugas ","Modestas","Mykolas","Nerijus","Osvaldas","Ovidijus","Paulius","Petras","Povilas","Pranas","Raimundas","Ramunas","Remigijus","Ricardas","Rimantas","Rimas","Rimvydas","Robertas","Rolandas","Romanas","Romualdas","Rytis","Sarunas","Saulius","Sigitas","Silvestras","Simas","Simonas","Stasys","Steponas","Svajunas","Tadas ","Tauras","Tautvilas","Teodoras","Tomas","Urbonas","Vaidas","Vaidotas ","Valdas","Valdemaras","Vidmantas","Viktoras","Vincas","Virgilijus","Virginijus","Vladas","Vygantas","Vytautas","Vytenis ","Zenonas","Zigmas","Zydrunas","Zygimantas"],this.ltFemaleFirstNames=["Agne","Akvile","Aldona","Aukse","Ausra","Ausrine","Austeja","Austra","Biruta","Brigita","Daina","Dalia","Danguole","Danute","Deimante","Diana","Edita","Egle","Elena","Eugenija","Gabija","Gabriele","Genovaite","Gintare","Grazina","Ieva","Indre","Inga","Ingrida","Irena","Irene","Irina","Jolanta","Jurate","Jurga","Justina","Kristina","Laima","Laura","Lilija","Lina","Loreta","Magdalena","Marija","Milda","Monika","Nijole","Olga","Ona","Paulina","Raminta","Ramune","Rasa","Ruta","Salomeja","Sigita","Silvija","Sofija","Sonata","Ugne","Urte","Vaida","Vaiva","Vanda","Veronica","Viktorija","Vilija","Vilma","Violeta","Virginija","Vitalija","Zita","Zivile"],this.eeMaleFirstNames=["Aadu","Aarne","Ado","Ago","Ain","Aivar","Aksel","Alar","Albert","Allar","Alo","Andreas","Andres","Andrus","Anti","Anto","Anton","Ants","Ardo","Argo","Arno","Arnold","Artur","Arvi","Arvo","Asko","August","Avo","Eduard","Eerik","Eero","Egon","Eiko","Einar","Eino","Elmar","Elmo","Emil","Endel","Enn","Erki","Erkki","Erni","Ervin","Evald","Georg","Gert","Gunnar","Gustav","Hannes","Harald","Harri","Heiki","Heino","Hendrik","Henrik","Hillar","Illimar","Ilmar","Imre","Indrek","Ingmar","Innar","Ivar","Ivo","Jaagup","Jaak","Jaan","Jaanus","Jan","Janar","Johannes","Joonas","Joosep","Juhan","Juho","Jürgen","Jüri","Kaarel","Kaido","Kalev","Kaljo","Kalju","Kalle","Kalmer","Kaspar","Kasper","Kert","Koit","Kristjan","Kristo","Lauri","Laurits","Leho","Lembit","Lennart","Madis","Magnus","Mait","Marek","Margus","Marko","Märt","Mart","Martin","Mati","Mattias","Meelis","Mihkel","Mikk","Neeme","Niilo","Olari","Olev","Oscar","Osvald","Ott","Paavo","Paul","Peep","Peeter","Priidu","Priit","Ragnar","Raimo","Rain","Rainer","Rait","Raivo","Rasmus","Raul","Rauno","Rein","Riho","Risto","Robert","Roland","Sander","Siim","Silver","Sten","Sulev","Sven","Taavi","Tanel","Tarmo","Tauno","Teet","Tiit","Timo","Toivo","Tõnis","Tõnu","Toomas","Uku","Ülar","Üllar","Ülo","Ulrik","Uno","Urmas","Uuno","Vahur","Vaino","Valdo","Vallo","Valter","Veiko","Vello","Viljar","Viljo","Villem","Villu","Voldemar"],this.eeFemaleFirstNames=["Agnes","Aili","Aino","Airi","Alma","Anna","Anne","Anneli","Anni","Annika","Anu","Asta","Astrid","Birgit","Dagmar","Eeva","Elina","Ellen","Elli","Elsa","Ene","Epp","Erika","Erna","Ester","Eva","Eve","Evelin","Evi","Gerli","Getter","Grete","Heidi","Hele","Helene","Helge","Heli","Helmi","Herta","Hilda","Hilja","Ida","Iiris","Ilse","Imbi","Ines","Inge","Ingrid","Ita","Jaana","Johanna","Kadri","Kaia","Kaija","Kaili","Kaire","Kaisa","Kaja","Karin","Karoliina","Katariina","Kätlin","Katrin","Kersti","Ketlin","Kirsti","Klaudia","Koidu","Krista","Kristel","Kristiina","Kulli","Laine","Laura","Lenna","Liina","Liis","Liisa","Liisi","Lilli","Linda","Lotte","Maarja","Maia","Mare","Maret","Margit","Mari","Maria","Meeli","Merike","Merle","Meta","Miina","Minna","Mirjam","Monika","Piia","Piret","Raine","Riin","Riina","Rita","Saara","Salme","Selma","Signe","Silvia","Sirje","Terje","Tiina","Tiiu","Triin","Tuuli","Ülle","Ulvi","Urve","Valve","Vilma","Virve"]}return Object(b["a"])(a,[{key:"generate",value:function(a,e){switch(a){case W.POLAND:return U.MALE===e?this.plMaleFirstNames[Math.floor(Math.random()*this.plMaleFirstNames.length)]:this.plFemaleFirstNames[Math.floor(Math.random()*this.plFemaleFirstNames.length)];case W.LITHUANIA:return U.MALE===e?this.ltMaleFirstNames[Math.floor(Math.random()*this.ltMaleFirstNames.length)]:this.ltFemaleFirstNames[Math.floor(Math.random()*this.ltFemaleFirstNames.length)];default:return U.MALE===e?this.eeMaleFirstNames[Math.floor(Math.random()*this.eeMaleFirstNames.length)]:this.eeFemaleFirstNames[Math.floor(Math.random()*this.eeFemaleFirstNames.length)]}}}]),a}(),ka=new da,va=function(){function a(){Object(o["a"])(this,a),this.plLastNames=["Abgarowicz","Abrahamowicz","Abramczyk","Abramowicz","Adamczak","Adamczyk","Adamiak","Adamiec","Adamowski","Adamski","Aleksandrowicz","Ambroziak","Anczok","Andrzejewski","Ankwicz","Antek","Araszkiewicz","Babiuch","Bachleda","Baginski","Bąk","Bakula","Balcerzak","Balicki","Banasiak","Baranowska","Baranowski","Barański","Bargiel","Bartnicki","Barton","Bartosiewicz","Bednarek","Bednarski","Beksiński","Beres","Berezovsky","Białas","Bialik","Białkowski","Biały","Bieganski","Bielawski","Bielecki","Bieliński","Bielski","Bierut","Biesiadecki","Bieszczad","Biskupski","Błaszczyk","Blechacz","Bobak","Bobrowski","Bochenek","Bogusz","Bojarski","Boniecki","Bonikowski","Bonk","Borkowski","Borowicz","Borowiec","Borowiecki","Borowski","Bortkiewicz","Borysewicz","Borzym","Bratkowski","Brodnicki","Brodowski","Brodzki","Bronikowski","Bronowski","Brózda","Brożyna","Brzechwa","Brzeziński","Brzozowski","Brzyski","Buczkowski","Bujak","Bujwid","Bukowski","Burzyński","Butkiewicz","Bystron","Bytnar","Cebertowicz","Chadaj","Chalupa","Chałupa","Chlapowski","Chłapowski","Chmara","Chmiel","Chmielewski","Chmielowski","Chojnacki","Cholewa","Chorążycki","Chrobak","Chrzanowski","Cichocki","Cichy","Ciechanowski","Cieplak","Ciesielski","Cieśla","Cieślak","Cieślar","Cieślik","Ciołek","Ciszewski","Cuch","Cukier","Cybulka","Cybulska","Cybulski","Cygan","Cyrankiewicz","Czachowski","Czajkowski","Czaplic","Czapski","Czarnecki","Czarniecki","Czarny","Czechowicz","Czerniak","Czerwonka","Czyż","Czyżewski","Dąbrowski","Danilowicz","Dawidowicz","Dawidowska","Dawidowski","Dębicki","Dębski","Dembski","Długosz","Dobrowolski","Dolniak","Domagała","Dombrovsky","Dombrowski","Drozd","Dryja","Drzyzga","Duczyński","Dudek","Dunajewski","Dunin","Dus","Dzięcioł","Dziedzic","Dzikowski","Dziuba","Fedorowicz","Filipowicz","Flatau","Frąckowiak","Frankowski","Gałecki","Galecki","Gąsienica","Gąsior","Geremek","Giedroyć","Gielgud","Gierczak","Gierek","Giertych","Gieysztor","Ginter","Głowacki","Gminski","Godlewski","Gojowczyk","Gołąb","Golomb","Gomułka","Górski","Grabarczyk","Grabowski","Graczyk","Grinevsky","Grochowiak","Grochowski","Gronkowski","Grudziński","Grunitzky","Gruszka","Grycz","Grzyb","Grzybowski","Grzywacz","Gudowicz"],this.ltLastNames=["Abramavicius","Abromavicius","Adomaitis","Aleliunas","Andrijauskas","Andriukaitis","Andriuskevicius","Andrulis","Antanavicius","Arlauskas","Arlauskiene","Astrauskas","Baciulis","Bagdonas","Bakaitis","Balciunas","Balsys","Baranauskas","Bartkevicius","Bartkus","Bartulis","Basanavicius","Berankis","Bernotas","Brazauskas","Brazdauskis","Briedis","Budrys","Butkevicius","Butkus","Butrym","Cesnauskis","Dagys","Daukantaite","Daukantas","Daukantiene","Dauksa","Daumantas","Dirgela","Donelaitis","Garsva","Gerulaitis","Giedraitis","Grazulis","Grinius","Grybauskas","Gudaitis","Gustaitis","Gylys","Ilgauskas","Ivanauskas","Jakubenas","Jankauskas","Jankunas","Janonis","Jasaitis","Jasikevicius","Javtokas","Jovaisa","Juknevicius","Jurevicius","Kacinskas","Kairys","Kalinauskas","Kaminskas","Karnisovas","Karosas","Karvelis","Katelynas","Kaukenas","Kavaliauskas","Kiedis","Kleiza","Klimaitis","Klimas","Klimavicius","Kubilius","Kudirka","Kundrotas","Kuprevicius","Kuris","Laurinavicius","Leonas","Liepa","Lozoraitis","Lupeikis","Macijauskas","Maciulis","Mackevicius","Malinauskas","Mamontovas","Marcinkeviciene","Marcinkevicius","Marcinkeviciute","Marciulionis","Markevicius","Martinaitis","Masiulis","Matonis","Matulevicius","Mazeika","Mekas","Mickevicius","Mikenas","Mikutavicius","Miskinis","Motiejunas","Navickas","Noreika","Norkus","Novickis","Pakalniskis","Paleckis","Palubinskas","Paulauskas","Petkevicius","Petraitis","Petrauskas","Petrulis","Pleckaitis","Pocius","Poskus","Pozela","Prudius","Rackauskas","Ramanauskas","Rimas","Rimkus","Rimsa","Sabonis","Sabutis","Sakalauskas","Saltenis","Saulys","Savickas","Sernas","Sidlauskas","Simkus","Simonavicius","Sinkevicius","Skema","Smetona","Songaila","Stankevicius","Stauskas","Steponavicius","Stonkus","Stonys","Sulskis","Sutkus","Svedas","Urbonas","Urbonavicius","Vaisvila","Vaitkevicius","Vaitkus","Valaitis","Valantinas","Valinskas","Vanagas","Varnas","Vasiliauskas","Venclova","Venskus","Vilkaitis","Vilkas","Visinskis","Vysniauskas","Zemaitis","Ziemelis","Zikaras","Zilinskas","Zukauskas"],this.eeLastNames=["Aare","Aarma","Aas","Aasmäe","Aav","Aavik","Allik","Alver","Aru","Eenpalu","Eensaar","Eskola","Härma","Ilves","Jääger","Jakobson","Jänes","Järve","Järvis","Jõgi","Kaaleste","Kaasik","Käbin","Kalda","Kaljulaid","Kaljurand","Kallas","Kallaste","Kangro","Kangur","Kapp","Kärner","Kask","Käsper","Kass","Keres","Keskküla","Kesküla","Kikkas","Kingsepp","Kirs","Kirsipuu","Kivi","Klavan","Kõiv","Kokk","Kontaveit","Koppel","Korjus","Kotkas","Kreek","Kross","Kruus","Kukk","Kütt","Kuusik","Kuusk","Laar","Laht","Lass","Laur","Laurits","Lemsalu","Lepik","Lepmets","Lepp","Levandi","Liiv","Lill","Lindmaa","Linna","Lipp","Lippmaa","Lõhmus","Loo","Lõoke","Luik","Luts","Mägi","Mälk","Mänd","Männik","Margiste","Mark","Masing","Mets","Must","Nõmmik","Nurme","Nurmsalu","Oja","Olesk","Öpik","Orav","Pääsuke","Padar","Pärn","Peebo","Peetre","Pihlak","Piho","Piip","Põder","Põld","Poska","Puhvel","Pütsep","Puusepp","Raag","Rand","Raud","Raudsepp","Rebane","Reek","Reinsalu","Rooba","Roolaid","Rootare","Rummo","Rüütel","Rüütli","Saar","Salumäe","Sepp","Sibul","Siimar","Simm","Sirel","Sisask","Sokk","Soosaar","Susi","Talts","Talvik","Tamm","Tamme","Tarvas","Teder","Toom","Toome","Toots","Vaher","Vahtra","Vaino","Vainola","Välbe","Valdma","Väljas","Valk","Vesik","Veski","Viiding","Visnapuu","Vitsut","Võigemast","Võsu"]}return Object(b["a"])(a,[{key:"generate",value:function(a){switch(a){case W.POLAND:return this.plLastNames[Math.floor(Math.random()*this.plLastNames.length)];case W.LITHUANIA:return this.ltLastNames[Math.floor(Math.random()*this.ltLastNames.length)];default:return this.eeLastNames[Math.floor(Math.random()*this.eeLastNames.length)]}}}]),a}(),ma=new va,ha=function a(){Object(o["a"])(this,a),this.day=null,this.month=null,this.year=null},pa=function a(){Object(o["a"])(this,a),this.birthday=new ha,this.country=W.ESTONIA,this.gender=U.RANDOM};(function(a){a["PERSONAL_ID"]="personal_id",a["IBAN"]="iban",a["PHONE"]="phone",a["FIRST_NAME"]="first_name",a["LAST_NAME"]="last_name",a["PASSWORD"]="password"})(na||(na={}));var fa,ga=function(){function a(){Object(o["a"])(this,a)}return Object(b["a"])(a,[{key:"send",value:function(a){"undefined"!==typeof chrome&&chrome.tabs.query({active:!0,currentWindow:!0},(function(e){chrome.tabs.sendMessage(e[0].id,a,(function(a){console.log(a)}))}))}}]),a}(),ba=new ga;(function(a){a["INSERT"]="insert",a["CLEAN_NOTIFICATION"]="clean_notification"})(fa||(fa={})),d["c"].use(h.a);var ya=function(a){Object(l["a"])(t,a);var e=Object(u["a"])(t);function t(){var a;return Object(o["a"])(this,t),a=e.apply(this,arguments),a.personalCode="",a.person=new pa,a.copyText="",a}return Object(b["a"])(t,[{key:"allowedMonths",get:function(){for(var a=[],e=1;e<=12;e++)a.push(e);return a}},{key:"allowedYears",get:function(){for(var a=[],e=(new Date).getFullYear(),t=1960;t<=e;t++)a.push(t);return a}},{key:"copyPersonalCode",value:function(){var a=sa.generate(this.person);this.personalCode=a,this.copy(a)}},{key:"copyIban",value:function(){var a=la.generate(this.person.country);this.personalCode="",this.copy(a)}},{key:"copyPhone",value:function(){var a=ca.generate(this.person.country);this.personalCode="",this.copy(a)}},{key:"copy",value:function(a){this.copyText=a,this.$copyText(a)}},{key:"autocomplete",value:function(){var a=sa.generate(this.person);this.personalCode=a,this.copy(a),this.insertValueToNode(na.PERSONAL_ID,a);var e=la.generate(this.person.country);this.insertValueToNode(na.IBAN,e);var t=ca.generate(this.person.country);this.insertValueToNode(na.PHONE,t);var i=ka.generate(this.person.country,this.person.gender);this.insertValueToNode(na.FIRST_NAME,i);var n=ma.generate(this.person.country);this.insertValueToNode(na.LAST_NAME,n)}},{key:"insertValueToNode",value:function(a,e){ba.send({action:fa.INSERT,target:a,value:e})}}]),t}(d["c"]);ya=Object(c["a"])([Object(d["a"])({components:{Mocks:q}})],ya);var wa=ya,Aa=wa,Ma=(t("1b20"),Object(Y["a"])(Aa,Q,aa,!1,null,"07d54bac",null)),ja=Ma.exports,za=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",[t("label",[a._v(" Personal id "),t("input",{directives:[{name:"model",rawName:"v-model",value:a.personalCode,expression:"personalCode"}],attrs:{type:"text"},domProps:{value:a.personalCode},on:{input:function(e){e.target.composing||(a.personalCode=e.target.value)}}})]),a.personalCode?t("div",[t("hr"),t("Mocks",{attrs:{mode:"update",personalCode:a.personalCode}})],1):a._e()])},Ca=[];d["c"].use(h.a);var _a=function(a){Object(l["a"])(t,a);var e=Object(u["a"])(t);function t(){var a;return Object(o["a"])(this,t),a=e.apply(this,arguments),a.personalCode="",a}return t}(d["c"]);_a=Object(c["a"])([Object(d["a"])({components:{Mocks:q}})],_a);var Oa=_a,Ba=Oa,Sa=(t("feba"),Object(Y["a"])(Ba,za,Ca,!1,null,"06a3afe4",null)),Ka=Sa.exports,Ea=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",[t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-row__item"},[t("label",[a._v(" Use notification cleaner "),t("input",{directives:[{name:"model",rawName:"v-model",value:a.isAutoCleaner,expression:"isAutoCleaner"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(a.isAutoCleaner)?a._i(a.isAutoCleaner,null)>-1:a.isAutoCleaner},on:{change:[function(e){var t=a.isAutoCleaner,i=e.target,n=!!i.checked;if(Array.isArray(t)){var r=null,s=a._i(t,r);i.checked?s<0&&(a.isAutoCleaner=t.concat([r])):s>-1&&(a.isAutoCleaner=t.slice(0,s).concat(t.slice(s+1)))}else a.isAutoCleaner=n},a.onChangeAutoCleaner]}})])])]),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-row__item"},[t("button",{on:{click:a.cleanNotifications}},[a._v("Clean")])])])])},Pa=[],Na=function(){function a(){Object(o["a"])(this,a)}return Object(b["a"])(a,[{key:"enable",value:function(){chrome.storage.sync.set({"need-clean-notification":!0},(function(){console.log("need-clean-notification: "+!0)}))}},{key:"disable",value:function(){chrome.storage.sync.set({"need-clean-notification":!1},(function(){console.log("need-clean-notification: "+!1)}))}},{key:"state",value:function(){return new Promise((function(a,e){chrome.storage.sync.get(["need-clean-notification"],(function(e){console.log("Value currently is "+e["need-clean-notification"]),a(e["need-clean-notification"]||!1)}))}))}}]),a}(),La=new Na;d["c"].use(h.a);var Da=function(a){Object(l["a"])(t,a);var e=Object(u["a"])(t);function t(){var a;return Object(o["a"])(this,t),a=e.apply(this,arguments),a.person=new pa,a.isAutoCleaner=!1,a}return Object(b["a"])(t,[{key:"mounted",value:function(){var a=this;La.state().then((function(e){a.isAutoCleaner=e,console.log("this.isAutoCleaner = "+e)}))}},{key:"cleanNotifications",value:function(){ba.send({action:fa.CLEAN_NOTIFICATION})}},{key:"onChangeAutoCleaner",value:function(){console.log(this.isAutoCleaner),this.isAutoCleaner?La.enable():La.disable()}}]),t}(d["c"]);Da=Object(c["a"])([d["a"]],Da);var Ia=Da,Ra=Ia,Ta=(t("4809"),Object(Y["a"])(Ra,Ea,Pa,!1,null,"590b0168",null)),Ga=Ta.exports;d["c"].use(h.a);var Va=function(a){Object(l["a"])(t,a);var e=Object(u["a"])(t);function t(){var a;return Object(o["a"])(this,t),a=e.apply(this,arguments),a.tab="person",a}return t}(d["c"]);Va=Object(c["a"])([Object(d["a"])({components:{Mocks:q,PersonTab:ja,MocksTab:Ka,EmberTab:Ga}})],Va);var Ja=Va,xa=Ja,Fa=(t("aa64"),Object(Y["a"])(xa,k,v,!1,null,"5e51ebac",null)),Ha=Fa.exports,Wa=function(a){Object(l["a"])(t,a);var e=Object(u["a"])(t);function t(){return Object(o["a"])(this,t),e.apply(this,arguments)}return t}(d["c"]);Wa=Object(c["a"])([Object(d["a"])({components:{Main:Ha}})],Wa);var Ua=Wa,Za=Ua,$a=(t("034f"),Object(Y["a"])(Za,r,s,!1,null,null,null)),Ya=$a.exports,Xa=t("9483");Object(Xa["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.")},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(a){console.error("Error during service worker registration:",a)}}),n["a"].config.productionTip=!1,new n["a"]({render:function(a){return a(Ya)}}).$mount("#app")},d384:function(a,e,t){"use strict";t("bf38")},e7cb:function(a,e,t){},feba:function(a,e,t){"use strict";t("439d")}});
|
|
//# sourceMappingURL=app.2ef77665.js.map
|