"use strict";(self.webpackChunkpasswords_webextension=self.webpackChunkpasswords_webextension||[]).push([[7481],{8962:(e,t,s)=>{s.d(t,{Z:()=>a});class a{async execute(e,t){console.trace("controller.execute() not implemented")}}},5410:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var a=s(8962),r=s(8838),l=s(4194),c=s(6567);class n extends a.Z{async execute(e,t){let s=r.Z.getBrowserApi();try{let a=await this.getTabId(e);await s.tabs.remove(a),t.setPayload({success:!0})}catch(e){c.Z.logError(e),t.setPayload({success:!1})}}async getTabId(e){let t=e.getPayload();if(null===t||!t.hasOwnProperty("url"))return l.Z.get("id");let s=await r.Z.getBrowserApi().tabs.query({url:t.url});return 0===s.length?l.Z.get("id"):s[0].id}}}}]);