import{s as H,e as h,c as _,h as y,d as f,a as E,b as i,i as P,g as S,n as B,r as M,f as w,j as T,k as m}from"./scheduler.bDsl0G2p.js";import{S as N,i as z,c as C,a as D,m as I,t as g,b,d as V,g as F,e as L}from"./index.DtyFm6kT.js";import"./0.D1YHP6Ug.js";import{_ as q}from"./merge.BbzSJwQC.js";import{F as O}from"./Fabric.5rUJ7tAB.js";import{N as R}from"./Note.D2NXccL1.js";import{A as U}from"./APT_Button.CCi_iPyN.js";function A(r){let e,s,t,n="Human to Chicken Transmogrification Reincarnation Spell",o,l,v,u,$,a,p,x;return l=new R({props:{text:"Mixing. Please check later.",progress:{show:"yes"}}}),p=new U({props:{button_text:"Buy",APT:"1",clicked:r[4],permitted:"no"}}),{c(){e=h("div"),s=h("div"),t=h("span"),t.textContent=n,o=w(),C(l.$$.fragment),v=w(),u=h("div"),$=w(),a=h("div"),C(p.$$.fragment),this.h()},l(c){e=_(c,"DIV",{style:!0});var k=y(e);s=_(k,"DIV",{class:!0});var d=y(s);t=_(d,"SPAN",{style:!0,"data-svelte-h":!0}),S(t)!=="svelte-11b7xkb"&&(t.textContent=n),o=T(d),D(l.$$.fragment,d),v=T(d),u=_(d,"DIV",{style:!0}),y(u).forEach(f),$=T(d),a=_(d,"DIV",{style:!0});var j=y(a);D(p.$$.fragment,j),j.forEach(f),d.forEach(f),k.forEach(f),this.h()},h(){i(t,"display","block"),i(t,"font-size","1.5em"),i(t,"line-height","1.5em"),i(t,"padding","1cm .5cm"),i(t,"white-space","pre-wrap"),i(u,"height","0.25cm"),i(a,"text-align","right"),E(s,"class","card p-4"),i(e,"box-sizing","border-box"),i(e,"height","100%"),i(e,"width","100%"),i(e,"padding","1cm"),i(e,"display","flex"),i(e,"justify-content","center"),i(e,"align-items","center"),i(e,"flex-direction","column"),i(e,"gap","0.5cm")},m(c,k){P(c,e,k),m(e,s),m(s,t),m(s,o),I(l,s,null),m(s,v),m(s,u),m(s,$),m(s,a),I(p,a,null),x=!0},p:B,i(c){x||(g(l.$$.fragment,c),g(p.$$.fragment,c),x=!0)},o(c){b(l.$$.fragment,c),b(p.$$.fragment,c),x=!1},d(c){c&&f(e),V(l),V(p)}}}function W(r){let e,s,t=r[1]==="yes"&&A(r);return{c(){e=h("div"),t&&t.c(),this.h()},l(n){e=_(n,"DIV",{slot:!0,style:!0});var o=y(e);t&&t.l(o),o.forEach(f),this.h()},h(){E(e,"slot","leaves"),i(e,"height","100%"),i(e,"width","100%"),i(e,"display","flex"),i(e,"justify-content","center"),i(e,"align-items","center")},m(n,o){P(n,e,o),t&&t.m(e,null),s=!0},p(n,o){n[1]==="yes"?t?(t.p(n,o),o&2&&g(t,1)):(t=A(n),t.c(),g(t,1),t.m(e,null)):t&&(F(),b(t,1,1,()=>{t=null}),L())},i(n){s||(g(t),s=!0)},o(n){b(t),s=!1},d(n){n&&f(e),t&&t.d()}}}function G(r){let e,s="<div>This is unfinished</div>";return{c(){e=h("div"),e.innerHTML=s,this.h()},l(t){e=_(t,"DIV",{slot:!0,"data-svelte-h":!0}),S(e)!=="svelte-i3jo2i"&&(e.innerHTML=s),this.h()},h(){E(e,"slot","unfinished")},m(t,n){P(t,e,n)},p:B,d(t){t&&f(e)}}}function J(r){let e,s,t={on_change:r[2],on_prepare:r[3],$$slots:{unfinished:[G],leaves:[W]},$$scope:{ctx:r}};return e=new O({props:t}),r[5](e),{c(){C(e.$$.fragment)},l(n){D(e.$$.fragment,n)},m(n,o){I(e,n,o),s=!0},p(n,[o]){const l={};o&2050&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){s||(g(e.$$.fragment,n),s=!0)},o(n){b(e.$$.fragment,n),s=!1},d(n){r[5](null),V(e,n)}}}function K(r,e,s){let t;const n=()=>{},o=()=>{console.info("on_next_pressed"),t.advance(({freight:a})=>(a.next.permitted==="yes"?current+=1:a.next.has_alert==="yes"&&(a.unfinished.showing="yes"),console.info({freight:a}),a))};let l="no";const v=()=>{t.advance(({freight:a})=>q({},a,{showing:"yes",name:"",unfinished:{showing:"no"},back:{text:"Back",permitted:"no",go:async()=>{console.log("back pressed"),t.advance(({freight:p})=>(show_panel==="Online Petition"&&(p.back.permitted="no",show_panel="Wheel"),p))}},next:{text:"Unfinished",permitted:"no",has_alert:"yes",go:()=>{o()}},panel:{text:""}})),s(1,l="yes")},u=()=>{};function $(a){M[a?"unshift":"push"](()=>{t=a,s(0,t)})}return[t,l,n,v,u,$]}class se extends N{constructor(e){super(),z(this,e,K,J,H,{})}}export{se as default};
//# sourceMappingURL=Trinket.BVVPOFcq.js.map
