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
44 KiB
2 lines
44 KiB
(function(a){function e(e){for(var i,s,o=e[0],u=e[1],l=e[2],d=0,v=[];d<o.length;d++)s=o[d],Object.prototype.hasOwnProperty.call(n,s)&&n[s]&&v.push(n[s][0]),n[s]=0;for(i in u)Object.prototype.hasOwnProperty.call(u,i)&&(a[i]=u[i]);c&&c(e);while(v.length)v.shift()();return r.push.apply(r,l||[]),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 u=t[o];0!==n[u]&&(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"]||[],u=o.push.bind(o);o.push=e,o=o.slice();for(var l=0;l<o.length;l++)e(o[l]);var c=u;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"),u=t("262e"),l=t("2caf"),c=t("9ab4"),d=t("1b40"),v=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 ")]),a.isPlugin()?t("div",{staticClass:"tab-panel__item",class:{"tab-panel__item_active":"ember"===a.tab},on:{click:function(e){a.tab="ember"}}},[a._v(" Ember ")]):a._e()]),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),a.isPlugin()?t("div",{staticClass:"tab-page__item",class:{"tab-page__item_show":"ember"===a.tab}},[t("EmberTab")],1):a._e()])])])},k=[],h=t("bee2"),m=t("4eb5"),f=t.n(m),p=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",[a.showLoader?t("div",{staticClass:"lds-grid"},[t("div"),t("div"),t("div"),t("div"),t("div"),t("div"),t("div"),t("div"),t("div")]):a._e(),a.showLoader?a._e():t("div",[t("div",{staticClass:"mock-service__select"},[t("div",[a._v("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])},function(e){return a.onServiceChanged("xtee_mta")}]}},[t("option",{attrs:{value:"-1"}},[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",{staticClass:"mock-service__select"},[t("div",[a._v("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])},function(e){return a.onServiceChanged("ria")}]}},[t("option",{attrs:{value:"-1"}},[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("div",{staticClass:"mock-service__select"},[t("div",[a._v("Scoring")]),t("div",[t("select",{directives:[{name:"model",rawName:"v-model",value:a.registers.scoring,expression:"registers.scoring"}],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,"scoring",e.target.multiple?t:t[0])},function(e){return a.onServiceChanged("scoring")}]}},[t("option",{attrs:{value:"-1"}},[a._v("-")]),t("option",{attrs:{value:"0"}},[a._v("Не замокано")]),t("option",{attrs:{value:"1"}},[a._v("A")]),t("option",{attrs:{value:"2"}},[a._v("B")]),t("option",{attrs:{value:"3"}},[a._v("C")]),t("option",{attrs:{value:"4"}},[a._v("D")]),t("option",{attrs:{value:"5"}},[a._v("E")]),t("option",{attrs:{value:"6"}},[a._v("F")])])])]),t("br"),"add"===a.mode?t("button",{on:{click:a.saveMocks}},[a._v("Сохранить моки")]):a._e()])])},g=[],b=(t("c975"),t("a9e3"),t("96cf"),t("1da1")),y=t("b85c"),w=function(){function a(){Object(o["a"])(this,a),this.xtee_mta="",this.ria="",this.scoring="",this.xtee_pension=""}return Object(h["a"])(a,[{key:"reset",value:function(){this.xtee_mta="",this.ria="",this.scoring="",this.xtee_pension=""}}]),a}(),A=(t("4de4"),t("d81d"),t("ac1f"),t("5319"),t("bc3a")),M=t.n(A);(function(a){a[a["base"]=0]="base"})(i||(i={}));var _=!1,j=i.base,C={code:"api_plugin_get_configurations",method:"GET",url:"/plugin/mock-configurations"},z=(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]=z;var B,S=O,K=function(){function a(){Object(o["a"])(this,a)}return Object(h["a"])(a,[{key:"handle",value:function(a){if(!_)return null;var e=j in S||!1;if(!e)throw new Error("Flow not found!!! Change flow in @/stubs/config.ts");var t=S[j],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}(),P=new K,L=(t("466d"),function(){function a(){Object(o["a"])(this,a)}return Object(h["a"])(a,[{key:"resolve",value:function(){var a=this,e=new Promise((function(e){if("undefined"!==typeof chrome.tabs)chrome.tabs.query({active:!0,currentWindow:!0},(function(t){var i,n=Object(y["a"])(t);try{for(n.s();!(i=n.n()).done;){var r=i.value,s=a.grabTargetUrl(r.url||"");return void e(s)}}catch(o){n.e(o)}finally{n.f()}}));else{var t=a.grabTargetUrl(location.href||"");e(t)}}));return e.then((function(a){return console.log("url",a),a}))}},{key:"grabTargetUrl",value:function(a){if(a.indexOf("localhost")>-1)return null;var e=a.match(/http:\/\/.*?\.(.*?)\..*?/)||[],t=e[1]||null,i=a.indexOf("laen")>-1||a.indexOf("smsmoney")>-1||a.indexOf("smsraha")>-1||a.indexOf("placetgroup")>-1,n=a.indexOf("smspinigai")>-1||a.indexOf("paskolos")>-1||a.indexOf("nordecum")>-1;if(!i&&!n)return null;var r=i?"placetgroup":"nordecum",s=i?"com":"lt",o=-1!==a.indexOf(".sv");return a=t&&o?r+"."+t+".sv":"dev."+r+"."+s,a=(o?"http://":"https://")+a,console.log("domain_resolver",e,t,i,r,s,a),a}}]),a}()),N=new L,E=function a(){Object(o["a"])(this,a)},I=function(a){Object(u["a"])(t,a);var e=Object(l["a"])(t);function t(){return Object(o["a"])(this,t),e.apply(this,arguments)}return t}(E),D=function(a){Object(u["a"])(t,a);var e=Object(l["a"])(t);function t(){return Object(o["a"])(this,t),e.apply(this,arguments)}return t}(E),R=function(){function a(e){Object(o["a"])(this,a),this.handlers=[],this.baseUrl=e,this.syncBaseUrlWithStand()}return Object(h["a"])(a,[{key:"syncBaseUrlWithStand",value:function(){var a=Object(b["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,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 I})).map((function(a){return a.handle(s),a}));var o=P.handle(a.code),u=s;if(a.prefix){var l={};l[a.prefix]=u.data,u.data=l}"GET"===u.method&&(u.params=u.data,delete u.data);var c=o||M()(u);return c.then((function(a){return e.handlers.filter((function(a){return a instanceof D})).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(u["a"])(t,a);var e=Object(l["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}(I),G=(new T,function a(){Object(o["a"])(this,a)}),V={code:"api_plugin_add_configurations",method:"POST",url:"/plugin/mock-configurations",prefix:"mockConfigurations"},x={code:"api_plugin_change_configuration_value",method:"PATCH",url:"/plugin/mock-configurations/{id}/value",prefix:"mockConfigurations"},J=function(a){Object(u["a"])(t,a);var e=Object(l["a"])(t);function t(){return Object(o["a"])(this,t),e.apply(this,arguments)}return Object(h["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(x,a)}}]),t}(R),F=new J("http://placetgroup.sipachev.sv").addHandler(new T);d["c"].use(f.a),function(a){a["ADD"]="add",a["UPDATE"]="update"}(B||(B={}));var H=function(a){Object(u["a"])(t,a);var e=Object(l["a"])(t);function t(){var a;return Object(o["a"])(this,t),a=e.apply(this,arguments),a.showLoader=!1,a.registers=new w,a.register2Id={},a}return Object(h["a"])(t,[{key:"mounted",value:function(){console.log("mounted",this.personalCode)}},{key:"onPersonalCodeChanged",value:function(){this.registers.reset(),this.showLoader=!1,this.refreshMocks()}},{key:"refreshMocks",value:function(){var a=this;this.mode===B.UPDATE&&(this.showLoader=!0,F.mockConfigurations({personalCode:this.personalCode}).then((function(e){var t,i=[],n=Object(y["a"])(e.data);try{for(n.s();!(t=n.n()).done;){var r=t.value;a.registers[r.code]=r.value,a.register2Id[r.code]=r.id,i.push(r.code)}}catch(o){n.e(o)}finally{n.f()}for(var s in a.registers)i.indexOf(s)>-1||(a.registers[s]="",delete a.register2Id[s])})).then((function(){a.showLoader=!1})))}},{key:"onServiceChanged",value:function(){var a=Object(b["a"])(regeneratorRuntime.mark((function a(e){var t=this;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(this.mode===B.UPDATE){a.next=2;break}return a.abrupt("return");case 2:if("undefined"!==typeof this.register2Id[e]){a.next=8;break}return a.next=5,this.saveMock(this.personalCode,e,Number(this.registers[e]));case 5:return a.next=7,this.refreshMocks();case 7:return a.abrupt("return");case 8:this.showLoader=!0,F.changeMockValueConfiguration({id:this.register2Id[e],value:this.registers[e]}).then((function(a){console.log("updateMock"),console.log(a)})).then((function(){t.showLoader=!1}));case 10:case"end":return a.stop()}}),a,this)})));function e(e){return a.apply(this,arguments)}return e}()},{key:"saveMocks",value:function(){var a=this,e=[];for(var t in this.registers){var i=new G;i.personalCode=this.personalCode,i.code=t,i.value=this.registers[t],i.value&&(i.active="true",e.push(i))}this.showLoader=!0,F.addMockConfigurations({items:e}).then((function(a){console.log("saveMocks"),console.log(a)})).then((function(){a.showLoader=!1}))}},{key:"saveMock",value:function(a,e,t){var i=this,n=[],r=new G;return r.personalCode=a,r.code=e,r.value=t,r.active="true",n.push(r),this.showLoader=!0,F.addMockConfigurations({items:n}).then((function(a){console.log("saveMocks"),console.log(a)})).then((function(){i.showLoader=!1}))}}]),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 U,W,Z=H,$=Z,Y=(t("d384"),t("2877")),q=Object(Y["a"])($,p,g,!1,null,"4c71c246",null),Q=q.exports,X=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: "),"ee"===a.person.country?t("span",[a._v("Estonia")]):a._e(),"lt"===a.person.country?t("span",[a._v("Lithuania")]):a._e()])]),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(h["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"})(U||(U={})),function(a){a["MALE"]="male",a["FEMALE"]="female",a["RANDOM"]="random"}(W||(W={}));var na,ra=function(){function a(){Object(o["a"])(this,a)}return Object(h["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-25,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 U.POLAND:return console.log(a),W.MALE===e?String(2*ia.generate(1,5)-1):String(2*ia.generate(1,4));default:return console.log(e,W.MALE===e),W.RANDOM===e&&(i=ia.generate(1,999)>500?W.FEMALE:W.MALE),console.log(t,"year",Object(ea["a"])(t)),W.MALE===i?t<2e3?"3":"5":t<2e3?"4":"6"}}},{key:"getControlSum",value:function(a,e,t,i,n,r){var s,o;if(U.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 u=0,l=0;s=r+e+t+i+n;for(var c=1,d=3,v=0;v<10;v++){var k=+s[v];k*c,k*d,10===++c&&(c=1),10===++d&&(d=1)}return l%=11,(u%=11)<10?String(u):String(l<10?l: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(h["a"])(a,[{key:"generate",value:function(a){var e=this.getBankAccount(a),t=this.getNationalCheckDigit(e),i=this.getBankCode(a);switch(a){case U.ESTONIA:return a.toUpperCase()+this.getIbanCheckDigits(i+e+t+"141400")+i+e+t;case U.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=U.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 U.POLAND:return e[Math.floor(Math.random()*e.length)];case U.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}(),ua=new oa,la=function(){function a(){Object(o["a"])(this,a)}return Object(h["a"])(a,[{key:"generate",value:function(a){switch(a){case U.POLAND:return this.getPlPhoneNum();case U.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 la,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(h["a"])(a,[{key:"generate",value:function(a,e){switch(a){case U.POLAND:return W.MALE===e?this.plMaleFirstNames[Math.floor(Math.random()*this.plMaleFirstNames.length)]:this.plFemaleFirstNames[Math.floor(Math.random()*this.plFemaleFirstNames.length)];case U.LITHUANIA:return W.MALE===e?this.ltMaleFirstNames[Math.floor(Math.random()*this.ltMaleFirstNames.length)]:this.ltFemaleFirstNames[Math.floor(Math.random()*this.ltFemaleFirstNames.length)];default:return W.MALE===e?this.eeMaleFirstNames[Math.floor(Math.random()*this.eeMaleFirstNames.length)]:this.eeFemaleFirstNames[Math.floor(Math.random()*this.eeFemaleFirstNames.length)]}}}]),a}(),va=new da,ka=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(h["a"])(a,[{key:"generate",value:function(a){switch(a){case U.POLAND:return this.plLastNames[Math.floor(Math.random()*this.plLastNames.length)];case U.LITHUANIA:return this.ltLastNames[Math.floor(Math.random()*this.ltLastNames.length)];default:return this.eeLastNames[Math.floor(Math.random()*this.eeLastNames.length)]}}}]),a}(),ha=new ka,ma=function a(){Object(o["a"])(this,a),this.day=null,this.month=null,this.year=null},fa=function a(){Object(o["a"])(this,a),this.birthday=new ma,this.country=U.ESTONIA,this.gender=W.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 pa,ga=function(){function a(){Object(o["a"])(this,a)}return Object(h["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"})(pa||(pa={}));var ya=function(){function a(){Object(o["a"])(this,a)}return Object(h["a"])(a,[{key:"resolve",value:function(){var a=this,e=new Promise((function(e){if("undefined"!==typeof chrome.tabs)chrome.tabs.query({active:!0,currentWindow:!0},(function(t){var i,n=Object(y["a"])(t);try{for(n.s();!(i=n.n()).done;){var r=i.value,s=a.grabCountry(r.url||"");return void e(s)}}catch(o){n.e(o)}finally{n.f()}}));else{var t=a.grabCountry(location.href||"");e(t)}}));return e.then((function(a){return console.log("country",a),a}))}},{key:"grabCountry",value:function(a){var e=a.indexOf("smspinigai")>-1||a.indexOf("paskolos")>-1||a.indexOf("nordecum")>-1;return e?U.LITHUANIA:U.ESTONIA}}]),a}(),wa=new ya;d["c"].use(f.a);var Aa=function(a){Object(u["a"])(t,a);var e=Object(l["a"])(t);function t(){var a;return Object(o["a"])(this,t),a=e.apply(this,arguments),a.personalCode="",a.person=new fa,a.copyText="",a}return Object(h["a"])(t,[{key:"mounted",value:function(){var a=Object(b["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,wa.resolve();case 2:this.person.country=a.sent;case 3:case"end":return a.stop()}}),a,this)})));function e(){return a.apply(this,arguments)}return e}()},{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=ua.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=ua.generate(this.person.country);this.insertValueToNode(na.IBAN,e);var t=ca.generate(this.person.country);this.insertValueToNode(na.PHONE,t);var i=va.generate(this.person.country,this.person.gender);this.insertValueToNode(na.FIRST_NAME,i);var n=ha.generate(this.person.country);this.insertValueToNode(na.LAST_NAME,n)}},{key:"insertValueToNode",value:function(a,e){ba.send({action:pa.INSERT,target:a,value:e})}}]),t}(d["c"]);Aa=Object(c["a"])([Object(d["a"])({components:{Mocks:Q}})],Aa);var Ma=Aa,_a=Ma,ja=(t("1b20"),Object(Y["a"])(_a,X,aa,!1,null,"07d54bac",null)),Ca=ja.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()])},Oa=[];d["c"].use(f.a);var Ba=function(a){Object(u["a"])(t,a);var e=Object(l["a"])(t);function t(){var a;return Object(o["a"])(this,t),a=e.apply(this,arguments),a.personalCode="",a}return t}(d["c"]);Ba=Object(c["a"])([Object(d["a"])({components:{Mocks:Q}})],Ba);var Sa=Ba,Ka=Sa,Pa=(t("feba"),Object(Y["a"])(Ka,za,Oa,!1,null,"06a3afe4",null)),La=Pa.exports,Na=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")])])])])},Ea=[],Ia=function(){function a(){Object(o["a"])(this,a)}return Object(h["a"])(a,[{key:"enable",value:function(){chrome.storage&&chrome.storage.sync.set({"need-clean-notification":!0},(function(){console.log("need-clean-notification: "+!0)}))}},{key:"disable",value:function(){chrome.storage&&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&&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}(),Da=new Ia;d["c"].use(f.a);var Ra=function(a){Object(u["a"])(t,a);var e=Object(l["a"])(t);function t(){var a;return Object(o["a"])(this,t),a=e.apply(this,arguments),a.person=new fa,a.isAutoCleaner=!1,a}return Object(h["a"])(t,[{key:"mounted",value:function(){var a=this;Da.state().then((function(e){a.isAutoCleaner=e,console.log("this.isAutoCleaner = "+e)}))}},{key:"cleanNotifications",value:function(){ba.send({action:pa.CLEAN_NOTIFICATION})}},{key:"onChangeAutoCleaner",value:function(){console.log(this.isAutoCleaner),this.isAutoCleaner?Da.enable():Da.disable()}}]),t}(d["c"]);Ra=Object(c["a"])([d["a"]],Ra);var Ta=Ra,Ga=Ta,Va=(t("4809"),Object(Y["a"])(Ga,Na,Ea,!1,null,"590b0168",null)),xa=Va.exports;d["c"].use(f.a);var Ja=function(a){Object(u["a"])(t,a);var e=Object(l["a"])(t);function t(){var a;return Object(o["a"])(this,t),a=e.apply(this,arguments),a.tab="person",a}return Object(h["a"])(t,[{key:"isPlugin",value:function(){return console.log(chrome),!!chrome.tabs}}]),t}(d["c"]);Ja=Object(c["a"])([Object(d["a"])({components:{Mocks:Q,PersonTab:Ca,MocksTab:La,EmberTab:xa}})],Ja);var Fa=Ja,Ha=Fa,Ua=(t("aa64"),Object(Y["a"])(Ha,v,k,!1,null,"5e51ebac",null)),Wa=Ua.exports,Za=function(a){Object(u["a"])(t,a);var e=Object(l["a"])(t);function t(){return Object(o["a"])(this,t),e.apply(this,arguments)}return t}(d["c"]);Za=Object(c["a"])([Object(d["a"])({components:{Main:Wa}})],Za);var $a=Za,Ya=$a,qa=(t("034f"),Object(Y["a"])(Ya,r,s,!1,null,null,null)),Qa=qa.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(Qa)}}).$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.724ec763.js.map
|