"use strict";(self.webpackChunk_bitwarden_web_vault=self.webpackChunk_bitwarden_web_vault||[]).push([[782],{74782:(t,n,o)=>{o.r(n),o.d(n,{ImportWebComponent:()=>m});var e=o(17530),i=o(42594),r=o(25065),a=o(56111),u=o(89459),s=o(26657),c=o(56898),l=o(10672),d=o(88016),f=o(20464),p=function(t,n,o,e){return new(o||(o=Promise))((function(i,r){function a(t){try{s(e.next(t))}catch(n){r(n)}}function u(t){try{s(e.throw(t))}catch(n){r(n)}}function s(t){var n;t.done?i(t.value):(n=t.value,n instanceof o?n:new o((function(t){t(n)}))).then(a,u)}s((e=e.apply(t,n||[])).next())}))};class m{constructor(t){this.router=t,this.loading=!1,this.disabled=!1}onSuccessfulImport(t){return p(this,void 0,void 0,(function*(){yield this.router.navigate(["vault"])}))}}m.ɵfac=function(t){return new(t||m)(a.rXU(u.Ix))},m.ɵcmp=a.VBU({type:m,selectors:[["ng-component"]],standalone:!0,features:[a.aNF],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,"importData")," "))},dependencies:[r.G,s.$,c.Q,l.H,d.$,e.Pi,i.G,f.f],encapsulation:2})}}]);
//# sourceMappingURL=782.21f76589db204bc93f32.js.map