"use strict";(self.webpackChunkpasswords_webextension=self.webpackChunkpasswords_webextension||[]).push([[1864],{8962:(e,t,s)=>{s.d(t,{Z:()=>r});class r{async execute(e,t){console.trace("controller.execute() not implemented")}}},6363:(e,t,s)=>{s.r(t),s.d(t,{default:()=>c});var r=s(8962),a=s(8419),n=s(4194),l=s(9083),o=s(6567),i=s(6306);class c extends r.Z{async execute(e,t){let s=e.getPayload(),r={};try{let e=(await l.Z.findById(s)).getInstance("repository.setting"),t=await e.findByNames(["server.version","server.app.version"]);r.serverVersion=i.Z.translate("ServerLabelString",t.get("server.version").getValue()),r.appVersion=i.Z.translate("AppLabelString",t.get("server.app.version").getValue())}catch(e){o.Z.logError(e)}let c=new a.Z;c.type("password").where(c.field("server").equals(s)),n.Z.get().tab.incognito&&c.hidden(!0),r.passwords=c.execute().length,r.folders=c.type("folder").execute().length,r.tags=c.type("tag").execute().length,t.setPayload(r)}}}}]);