"use strict";var b=Object.create;var r=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var w=Object.getPrototypeOf;var A=Object.prototype.hasOwnProperty;var o=(e,t)=>r(e,"name",{value:t,configurable:true});var I=(e,t)=>{for(var i in t)r(e,i,{get:t[i],enumerable:true})};var f=(e,t,i,s)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let a of m(t))if(!A.call(e,a)&&a!==i)r(e,a,{get:()=>t[a],enumerable:!(s=h(t,a))||s.enumerable})}return e};var q=(e,t,i)=>(i=e!=null?b(w(e)):{},f(t||!e||!e.__esModule?r(i,"default",{value:e,enumerable:true}):i,e));var x=e=>f(r({},"__esModule",{value:true}),e);var y={};I(y,{Component:()=>p.default,default:()=>l,mainIpcHandler:()=>g});module.exports=x(y);var c=require("electron");var d=require("./store");var p=q(require("./Component"));const n=require("../../preload-safe-debug")("Ferdium:feature:basicAuth");const u=d.state;function l(){n("Initialize basicAuth feature");window["ferdium"].features.basicAuth={state:u};c.ipcRenderer.on("feature:basic-auth-request",(e,t)=>{n(e,t);u.authInfo=t.authInfo;u.isModalVisible=true})}o(l,"initialize");const g=o((e,t)=>{n("Sending basic auth call",t);e.webContents.send("feature:basic-auth-request",{authInfo:t})},"mainIpcHandler");
