"use strict";(self.webpackChunkpasswords_webextension=self.webpackChunkpasswords_webextension||[]).push([[4708],{8962:(e,t,a)=>{a.d(t,{Z:()=>s});class s{async execute(e,t){console.trace("controller.execute() not implemented")}}},9236:(e,t,a)=>{a.r(t),a.d(t,{default:()=>d});var s=a(8962),n=a(9775),r=a(8838),l=a(9390),o=a(6567),c=a(4947);class d extends s.Z{async execute(e,t){let{password:a,size:s}=e.getPayload(),r=n.Z.getItem(a);if(null!==r)try{let e=await r.getFavicon(s),a=await c.Z.convert(e);t.setPayload(a)}catch(e){o.Z.logError(e),t.setPayload(await this._getDefaultIcon())}else t.setPayload(await this._getDefaultIcon())}async _getDefaultIcon(){let e=await l.Z.getBadgeIcon();return null===e&&(e=await r.Z.getBrowserApi().runtime.getURL("img/passwords-new-dark.svg")),e}async _blobToBase64(e){return new Promise(((t,a)=>{let s=new FileReader;s.addEventListener("loadend",(()=>{t(s.result)})),s.addEventListener("error",(e=>{a(e)})),s.readAsDataURL(e)}))}}}}]);