import{s as F,d,i as y,k as f,c as p,h as $,f as D,e as u,j,b as k,n as W,a as q,g as C,q as g,t as b}from"./Cl1o3nVP.js";import{S as H,i as L,d as I,t as T,a as w,m as E,c as V,b as B}from"./nb9JOxVX.js";import{T as M}from"./B7v8dEzq.js";import{R}from"./B-NtoCc1.js";function x(c){let e;function n(r,o){return r[0].dapp_wallet_cohesion.chain_id!=="yes"?N:A}let i=n(c),t=i(c);return{c(){e=u("div"),t.c(),this.h()},l(r){e=p(r,"DIV",{style:!0});var o=$(e);t.l(o),o.forEach(d),this.h()},h(){k(e,"display","flex"),k(e,"align-items","center"),k(e,"justify-content","center")},m(r,o){y(r,e,o),t.m(e,null)},p(r,o){i===(i=n(r))&&t?t.p(r,o):(t.d(1),t=i(r),t&&(t.c(),t.m(e,null)))},d(r){r&&d(e),t.d()}}}function A(c){let e,n,i,t,r,o="Dapp",s,a,l="Wallet",m;return{c(){e=u("div"),n=u("span"),i=b(S),t=b(" The "),r=u("b"),r.textContent=o,s=b(" and "),a=u("b"),a.textContent=l,m=b(" report are on the same Chain ID."),this.h()},l(_){e=p(_,"DIV",{class:!0});var v=$(e);n=p(v,"SPAN",{});var h=$(n);i=g(h,S),t=g(h," The "),r=p(h,"B",{"data-svelte-h":!0}),C(r)!=="svelte-6f8od5"&&(r.textContent=o),s=g(h," and "),a=p(h,"B",{"data-svelte-h":!0}),C(a)!=="svelte-v7jbo7"&&(a.textContent=l),m=g(h," report are on the same Chain ID."),h.forEach(d),v.forEach(d),this.h()},h(){q(e,"class","card p-4 variant-filled-surface")},m(_,v){y(_,e,v),f(e,n),f(n,i),f(n,t),f(n,r),f(n,s),f(n,a),f(n,m)},p:W,d(_){_&&d(e)}}}function N(c){let e,n='<div class="card p-2 variant-filled-error"><span>The <b>Dapp</b> and <b>Wallet</b> are not on the same Chain ID.</span></div>';return{c(){e=u("div"),e.innerHTML=n,this.h()},l(i){e=p(i,"DIV",{class:!0,"data-svelte-h":!0}),C(e)!=="svelte-o5nofp"&&(e.innerHTML=n),this.h()},h(){q(e,"class","card p-2 variant-filled-error")},m(i,t){y(i,e,t)},p:W,d(i){i&&d(e)}}}function P(c){let e,n,i,t,r,o;n=new M({props:{on_change:c[2]}}),t=new R({props:{on_change:c[3]}});let s=typeof c[0]=="object"&&typeof c[1]=="object"&&c[1].stage_name_connected.length>=1&&x(c);return{c(){e=u("div"),B(n.$$.fragment),i=j(),B(t.$$.fragment),r=j(),s&&s.c()},l(a){e=p(a,"DIV",{});var l=$(e);V(n.$$.fragment,l),i=D(l),V(t.$$.fragment,l),r=D(l),s&&s.l(l),l.forEach(d)},m(a,l){y(a,e,l),E(n,e,null),f(e,i),E(t,e,null),f(e,r),s&&s.m(e,null),o=!0},p(a,[l]){const m={};l&1&&(m.on_change=a[2]),n.$set(m);const _={};l&2&&(_.on_change=a[3]),t.$set(_),typeof a[0]=="object"&&typeof a[1]=="object"&&a[1].stage_name_connected.length>=1?s?s.p(a,l):(s=x(a),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i(a){o||(w(n.$$.fragment,a),w(t.$$.fragment,a),o=!0)},o(a){T(n.$$.fragment,a),T(t.$$.fragment,a),o=!1},d(a){a&&d(e),I(n),I(t),s&&s.d()}}}const S="😁";function z(c,e,n){let i=!1,t=!1;return[i,t,({freight:s})=>{n(0,i=s)},({pro_freight:s})=>{n(1,t=s)}]}class Q extends H{constructor(e){super(),L(this,e,z,P,F,{})}}export{Q as B};
//# sourceMappingURL=Ckj4ToPo.js.map
