"use strict";(self.webpackChunkpasswords_webextension=self.webpackChunkpasswords_webextension||[]).push([[9406],{8962:(e,r,o)=>{o.d(r,{Z:()=>a});class a{async execute(e,r){console.trace("controller.execute() not implemented")}}},8423:(e,r,o)=>{o.r(r),o.d(r,{default:()=>t});var a=o(8962),s=o(7968),c=o(460);class t extends a.Z{async execute(e,r){c.Z.has("passlink.action.connect")||r.setPayload({success:!1,message:"PasslinkNoActiveAction"});let o=c.Z.get("passlink.action.connect"),a=await o.getTheme(),t=s.Z.processTheme(a);r.setPayload({success:!0,theme:a,vars:t})}}},7968:(e,r,o)=>{o.d(r,{Z:()=>a});const a=new class{processTheme(e){let r={"--color-primary":"#0082c9","--color-text":"#ffffff","--image-background":"linear-gradient(40deg, #0082c9 0%, #30b6ff 100%)","--image-logo":"","--border-radius":"3px","--border-radius-large":"10px","--border-radius-pill":"100px"};return null===e||(e.hasOwnProperty("colors")&&(e.colors.hasOwnProperty("primary")&&(r["--color-primary"]=e.colors.primary),e.colors.hasOwnProperty("text")&&(r["--color-text"]=e.colors.text)),e.hasOwnProperty("color.primary")&&(r["--color-primary"]=e["color.primary"]),e.hasOwnProperty("color.text")&&(r["--color-text"]=e["color.text"]),e.hasOwnProperty("background")&&("#0082c9"!==r["--color-primary"]&&(r["--image-background"]=`linear-gradient(40deg,${r["--color-primary"]} 0%,${r["--color-text"]} 320%)`),r["--image-background"]=`url(${e.background}), ${r["--image-background"]}`),e.hasOwnProperty("logo")&&(r["--image-logo"]=`url(${e.logo})`)),r}}}}]);