"use strict";(self.webpackChunkpasswords_webextension=self.webpackChunkpasswords_webextension||[]).push([[4013],{8962:(e,s,t)=>{t.d(s,{Z:()=>a});class a{async execute(e,s){console.trace("controller.execute() not implemented")}}},9125:(e,s,t)=>{t.r(s),t.d(s,{default:()=>g});var a=t(9775),l=t(6822),c=t(8962),o=t(4194),r=t(7577),d=t(6567),n=t(8215),i=t(6591),u=t(4140);class g extends c.Z{async execute(e,s){let t=a.Z.getItem(e.getPayload()),c=o.Z.get("autofill.ids",[]);-1===c.indexOf(t.getId())&&(c.push(t.getId()),o.Z.set("autofill.ids",c)),n.Z.registerUse(t.getId()).catch(d.Z.catchEvt);try{let e=await l.Z.send({type:"autofill.password",receiver:"client",channel:"tabs",tab:o.Z.currentTabId,silent:!0,payload:{user:t.getUserName(),password:t.getPassword(),formFields:u.Z.getCustomFormFields(t),submit:await r.Z.getValue("paste.form.submit")}}),a=e instanceof i.Z&&!0===e.getPayload();s.setPayload({success:a})}catch(e){d.Z.logError(e),s.setPayload({success:!1})}}}}}]);