"use strict";(self.webpackChunkpasswords_webextension=self.webpackChunkpasswords_webextension||[]).push([[7781],{8962:(e,s,a)=>{a.d(s,{Z:()=>t});class t{async execute(e,s){console.trace("controller.execute() not implemented")}}},3440:(e,s,a)=>{a.r(s),a.d(s,{default:()=>n});var t=a(8962),r=a(7851),c=a(7380),o=a(6567);class n extends t.Z{async execute(e,s){let a=(await r.Z.getDefaultApi()).getInstance("service.password"),t=e.getPayload();try{let e=await a.generate(t.numbers,t.special,t.strength);s.setPayload({success:!0,password:e.password,words:e.words})}catch(e){o.Z.logError(e),c.Z.error(["PasswordGenerateError",e.message]).catch(o.Z.catchEvt),s.setPayload({success:!1})}}}}}]);