"use strict";var i=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var r=(t,e)=>i(t,"name",{value:e,configurable:true});var I=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:true})};var m=(t,e,a,s)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let n of d(e))if(!h.call(t,n)&&n!==a)i(t,n,{get:()=>e[n],enumerable:!(s=b(e,n))||s.enumerable})}return t};var p=t=>m(i({},"__esModule",{value:true}),t);var x={};I(x,{cancelLogin:()=>v,resetState:()=>g,sendCredentials:()=>S,state:()=>f});module.exports=p(x);var o=require("electron");var u=require("mobx");const c=require("../../preload-safe-debug")("Ferdium:feature:basicAuth");const l={isModalVisible:true,service:null,authInfo:null};const f=(0,u.observable)(l);const g=r(()=>{Object.assign(f,l)},"resetState");const S=r((t,e)=>{c("Sending credentials to main",t,e);o.ipcRenderer.send("feature-basic-auth-credentials",{user:t,password:e})},"sendCredentials");const v=r(()=>{c("Cancel basic auth event");o.ipcRenderer.send("feature-basic-auth-cancel")},"cancelLogin");
