"use strict";(self.webpackChunkpasswords_webextension=self.webpackChunkpasswords_webextension||[]).push([[8463],{8962:(e,t,a)=>{a.d(t,{Z:()=>s});class s{async execute(e,t){console.trace("controller.execute() not implemented")}}},6328:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var s=a(8962),r=a(8838),i=a(3920),u=a(9838),n=a(460),o=a(1842);class c extends s.Z{async execute(e,t){let a={tab:this._getCurrentTab(),data:this._getTabData(),status:{device:await this._getDevice(),authorized:this._isAuthorized(),firstRun:await this._isFirstRun()}};t.setType("popup.data").setPayload(a)}_getTabData(){return n.Z.has("popup.data")?n.Z.get("popup.data"):{}}_isAuthorized(){return!u.Z.hasQueue("authorisation")||!u.Z.getFeedbackQueue("authorisation").hasItems()}async _getDevice(){return(await r.Z.getBrowserInfo()).device}_getCurrentTab(){return n.Z.has("popup.tab")?n.Z.get("popup.tab"):i.Z.hasRecommendations()?"related":"search"}async _isFirstRun(){return 0===(await o.Z.findAll()).length}}}}]);