"use strict";(self.webpackChunk_bitwarden_web_vault=self.webpackChunk_bitwarden_web_vault||[]).push([[782],{28020(t,n,e){e.d(n,{H7:()=>o.H7,UN:()=>o.UN,bf:()=>o.bf});e(83586);var o=e(68052)},74782(t,n,e){e.d(n,{ImportWebComponent:()=>v});var o=e(28020),r=e(43215),i=e(36801),s=e(72932),u=e(25065),a=e(33812),c=e(23649),d=e(26657),l=e(56898),f=e(10672),p=e(49112),b=e(25740),m=function(t,n,e,o){return new(e||(e=Promise))(function(r,i){function s(t){try{a(o.next(t))}catch(n){i(n)}}function u(t){try{a(o.throw(t))}catch(n){i(n)}}function a(t){var n;t.done?r(t.value):(n=t.value,n instanceof e?n:new e(function(t){t(n)})).then(s,u)}a((o=o.apply(t,n||[])).next())})};class v{constructor(t){this.router=t,this.loading=!1,this.disabled=!1}onSuccessfulImport(t){return m(this,void 0,void 0,function*(){yield this.router.navigate(["vault"])})}}v.ɵfac=function(t){return new(t||v)(a.rXU(c.Ix))},v.ɵcmp=a.VBU({type:v,selectors:[["ng-component"]],features:[a.Jv_([...r.F3,(0,i.F)({provide:o.UN,useClass:o.bf,deps:[r.Uz]})])],decls:6,vars:5,consts:[[3,"formDisabled","formLoading","onSuccessfulImport"],["form","import_form_importForm","bitButton","","type","submit","bitFormButton","","buttonType","primary",3,"disabled","loading"]],template:function(t,n){1&t&&(a.nrm(0,"app-header"),a.j41(1,"bit-container")(2,"tools-import",0),a.bIt("formDisabled",function(t){return n.disabled=t})("formLoading",function(t){return n.loading=t})("onSuccessfulImport",function(t){return n.onSuccessfulImport(t)}),a.k0s(),a.j41(3,"button",1),a.EFF(4),a.nI1(5,"i18n"),a.k0s()()),2&t&&(a.R7$(3),a.Y8G("disabled",n.disabled)("loading",n.loading),a.R7$(),a.SpI(" ",a.bMT(5,3,"importVerb")," "))},dependencies:[u.G,d.$,l.Q,f.H,r.Pi,s.G,p.f,b.$],encapsulation:2})}}]);
//# sourceMappingURL=782.98098434b07e68b3ed00.js.map