import{a as ye,n as de,c as ke}from"./utils-AUSSiI9x.js";import{a as b,b as L,t as T,f as m,h as y,k as P,j as N,d as c,l as f,i as $,m as r,n as O,p as ge,r as pe}from"./lifecycle-CdXpxNHb.js";import{e as he}from"./each-CbqiZOpL.js";import{S as Ee,i as Le}from"./index--e_niGel.js";import{$ as Pe}from"./runtime-VldLyBWb.js";function _e(t,e,s){const o=t.slice();return o[5]=e[s][0],o[6]=e[s][1],o}function be(t){let e,s=t[4](t[2].validation.missing)+"",o;return{c(){e=b("p"),o=T(s),this.h()},l(a){e=m(a,"P",{class:!0});var i=y(e);o=N(i,s),i.forEach(c),this.h()},h(){f(e,"class","error")},m(a,i){$(a,e,i),r(e,o)},p(a,i){i&20&&s!==(s=a[4](a[2].validation.missing)+"")&&O(o,s)},d(a){a&&c(e)}}}function me(t){let e,s=t[4](t[2].validation.incorrect)+"",o;return{c(){e=b("p"),o=T(s),this.h()},l(a){e=m(a,"P",{class:!0});var i=y(e);o=N(i,s),i.forEach(c),this.h()},h(){f(e,"class","error")},m(a,i){$(a,e,i),r(e,o)},p(a,i){i&20&&s!==(s=a[4](a[2].validation.incorrect)+"")&&O(o,s)},d(a){a&&c(e)}}}function ve(t){let e,s=t[6]+"",o,a;return{c(){e=b("option"),o=T(s),this.h()},l(i){e=m(i,"OPTION",{});var p=y(e);o=N(p,s),p.forEach(c),this.h()},h(){e.__value=a=t[5],pe(e,e.__value)},m(i,p){$(i,e,p),r(e,o)},p(i,p){p&1&&s!==(s=i[6]+"")&&O(o,s),p&1&&a!==(a=i[5])&&(e.__value=a,pe(e,e.__value))},d(i){i&&c(e)}}}function Se(t){var ne,re;let e,s,o,a,i,p=t[4](t[2].fields.server.label)+"",B,v,S,x,j,C,D=t[4](t[2].fields.account.label)+"",J,ee,g,K,le,w,V,q=t[4](t[2].fields.passphrase.label)+"",Q,te,A,W,ae,I,F,M=t[4](t[2].reset)+"",X,se,E,R=t[4](t[2].submit)+"",Y,h=((ne=t[1])==null?void 0:ne.missing)&&be(t),_=((re=t[1])==null?void 0:re.incorrect)&&me(t),U=he(Object.entries(t[0].servers)),u=[];for(let l=0;ls(4,o=v));let{data:a={servers:{}}}=e,{form:i={servers:{}}}=e,{i18n:p={fields:{account:{label:""},passphrase:{label:"",placeholder:""},server:{label:""}},reset:"",submit:"",validation:{incorrect:"",missing:""}}}=e,{sb:B=""}=e;return t.$$set=v=>{"data"in v&&s(0,a=v.data),"form"in v&&s(1,i=v.form),"i18n"in v&&s(2,p=v.i18n),"sb"in v&&s(3,B=v.sb)},[a,i,p,B,o]}class we extends Ee{constructor(e){super(),Le(this,e,je,Se,ye,{data:0,form:1,i18n:2,sb:3})}}we.__docgen={version:3,name:"LoginForm.svelte",data:[{keywords:[],visibility:"public",description:"PageData provided by SvelteKit.",name:"data",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{keywords:[],visibility:"public",description:"Form handling by SvelteKit",name:"form",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{keywords:[],visibility:"public",description:"Translation keys to enable reuse",name:"i18n",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{keywords:[],visibility:"public",description:"Allow for linking stories in Storybook.",name:"sb",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{we as L};