import{s as w,d as g,i as h,f as T,y as d,j,r as v}from"./Cl1o3nVP.js";import{S,i as q,d as l,t as c,a as f,m,c as u,b as $,g as C,e as F}from"./nb9JOxVX.js";import{T as N}from"./B1DCuOm0.js";import{T as V}from"./CihG2Kh6.js";import{T as z}from"./B7v8dEzq.js";function k(a){let t,s;return t=new V({props:{prepare:a[4],every_enhance:a[5]}}),{c(){$(t.$$.fragment)},l(n){u(t.$$.fragment,n)},m(n,r){m(t,n,r),s=!0},p(n,r){const e={};r&1&&(e.prepare=n[4]),r&1&&(e.every_enhance=n[5]),t.$set(e)},i(n){s||(f(t.$$.fragment,n),s=!0)},o(n){c(t.$$.fragment,n),s=!1},d(n){l(t,n)}}}function A(a){let t,s,n,r;t=new z({props:{on_change:a[3]}});let e=typeof a[0]=="object"&&a[2]==="yes"&&k(a);return{c(){$(t.$$.fragment),s=j(),e&&e.c(),n=d()},l(o){u(t.$$.fragment,o),s=T(o),e&&e.l(o),n=d()},m(o,p){m(t,o,p),h(o,s,p),e&&e.m(o,p),h(o,n,p),r=!0},p(o,p){const i={};p&1&&(i.on_change=o[3]),t.$set(i),typeof o[0]=="object"&&o[2]==="yes"?e?(e.p(o,p),p&5&&f(e,1)):(e=k(o),e.c(),f(e,1),e.m(n.parentNode,n)):e&&(C(),c(e,1,1,()=>{e=null}),F())},i(o){r||(f(t.$$.fragment,o),f(e),r=!0)},o(o){c(t.$$.fragment,o),c(e),r=!1},d(o){o&&(g(s),g(n)),l(t,o),e&&e.d(o)}}}function B(a){let t,s,n={on_prepare:a[6],$$slots:{default:[A]},$$scope:{ctx:a}};return t=new N({props:n}),a[7](t),{c(){$(t.$$.fragment)},l(r){u(t.$$.fragment,r)},m(r,e){m(t,r,e),s=!0},p(r,[e]){const o={};e&4&&(o.on_prepare=r[6]),e&261&&(o.$$scope={dirty:e,ctx:r}),t.$set(o)},i(r){s||(f(t.$$.fragment,r),s=!0)},o(r){c(t.$$.fragment,r),s=!1},d(r){a[7](null),l(t,r)}}}function D(a,t,s){let n=!1,r,e="no";const o=({freight:_})=>{s(0,n=_)},p=()=>(console.log("net choices with text prepared",{name:n.net_name,path:n.net_path}),{net_name:n.dapp_network.net_name}),i=({net_name:_,net_path:E,chain_id:G})=>{n.change_dapp_network({net_name:_})},y=()=>{console.log("on prepare dapp network"),s(2,e="yes")};function b(_){v[_?"unshift":"push"](()=>{r=_,s(1,r)})}return[n,r,e,o,p,i,y,b]}class M extends S{constructor(t){super(),q(this,t,D,B,w,{})}}export{M as default};
//# sourceMappingURL=uwIa0kVX.js.map
