import{s as $,e as f,c as u,j as k,d as r,f as b,m as a,i as c,k as y,n as w,u as T,J as h}from"./scheduler.NvvBUJNK.js";import{S as D,i as z,c as J,a as M,m as j,t as H,b as L,d as A}from"./index.BjobFbD-.js";import"./0.CMTQMBFK.js";import{F as C,_ as I}from"./merge.9BByo6bC.js";function m(i){let e,t=i[0]==="Digital Assets 1"&&_();return{c(){t&&t.c(),e=h()},l(n){t&&t.l(n),e=h()},m(n,s){t&&t.m(n,s),c(n,e,s)},p(n,s){n[0]==="Digital Assets 1"?t||(t=_(),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&r(e),t&&t.d(n)}}}function _(i){let e,t='<header style="font-size: 3em; ">Rondovals</header> <div class="card p-4" style="width: 100%; text-align: center; "><header style="font-size: 2em; ">Tivaevae</header> <button type="button" class="btn variant-filled">Establish</button> <button type="button" class="btn variant-filled">Join</button> <button type="button" class="btn variant-filled">Destroy</button></div> <div class="card p-4" style="width: 100%; text-align: center; "><header style="font-size: 2em; ">Geimfaras</header> <button type="button" class="btn variant-filled">Join</button></div> <div class="card p-4" style="width: 100%; text-align: center; "><header style="font-size: 2em; ">Mall</header> <button type="button" class="btn variant-filled">Join</button></div> <div class="card p-4" style="width: 100%; text-align: center; "><header style="font-size: 2em; ">Thermoplastic</header> <button type="button" class="btn variant-filled">Join</button></div>';return{c(){e=f("div"),e.innerHTML=t,this.h()},l(n){e=u(n,"DIV",{style:!0,"data-svelte-h":!0}),y(e)!=="svelte-3bv95u"&&(e.innerHTML=t),this.h()},h(){a(e,"box-sizing","border-box"),a(e,"height","100%"),a(e,"width","100%"),a(e,"padding","1cm"),a(e,"display","flex"),a(e,"justify-content","center"),a(e,"align-items","center"),a(e,"flex-direction","column"),a(e,"gap","0.5cm")},m(n,s){c(n,e,s)},d(n){n&&r(e)}}}function V(i){let e,t=i[2]==="yes"&&m(i);return{c(){e=f("div"),t&&t.c(),this.h()},l(n){e=u(n,"DIV",{slot:!0,style:!0});var s=k(e);t&&t.l(s),s.forEach(r),this.h()},h(){b(e,"slot","leaves"),a(e,"height","100%"),a(e,"width","100%"),a(e,"display","flex"),a(e,"justify-content","center"),a(e,"align-items","center")},m(n,s){c(n,e,s),t&&t.m(e,null)},p(n,s){n[2]==="yes"?t?t.p(n,s):(t=m(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(n){n&&r(e),t&&t.d()}}}function E(i){let e,t="<div>This is unfinished</div>";return{c(){e=f("div"),e.innerHTML=t,this.h()},l(n){e=u(n,"DIV",{slot:!0,"data-svelte-h":!0}),y(e)!=="svelte-i3jo2i"&&(e.innerHTML=t),this.h()},h(){b(e,"slot","unfinished")},m(n,s){c(n,e,s)},p:w,d(n){n&&r(e)}}}function F(i){let e,t,n={on_change:i[3],on_prepare:i[4],$$slots:{unfinished:[E],leaves:[V]},$$scope:{ctx:i}};return e=new C({props:n}),i[5](e),{c(){J(e.$$.fragment)},l(s){M(e.$$.fragment,s)},m(s,l){j(e,s,l),t=!0},p(s,[l]){const d={};l&8197&&(d.$$scope={dirty:l,ctx:s}),e.$set(d)},i(s){t||(H(e.$$.fragment,s),t=!0)},o(s){L(e.$$.fragment,s),t=!1},d(s){i[5](null),A(e,s)}}}function R(i,e,t){let n="Digital Assets 1",s;const l=()=>{},d=()=>{console.info("on_next_pressed"),s.advance(({freight:o})=>(o.next.permitted==="yes"?current+=1:o.next.has_alert==="yes"&&(o.unfinished.showing="yes"),console.info({freight:o}),o))};let p="no";const v=()=>{s.advance(({freight:o})=>I({},o,{showing:"yes",name:"Rondovals",unfinished:{showing:"no"},back:{text:"Back",permitted:"no",go:async()=>{console.log("back pressed"),s.advance(({freight:x})=>x)}},next:{text:"Unfinished",permitted:"no",has_alert:"yes",go:()=>{d()}},panel:{text:""}})),t(2,p="yes")};function g(o){T[o?"unshift":"push"](()=>{s=o,t(1,s)})}return[n,s,p,l,v,g]}class N extends D{constructor(e){super(),z(this,e,R,F,$,{})}}export{N as default};
//# sourceMappingURL=Trinket.Df9qQzxx.js.map
