import{s as K,e as v,a as E,t as I,c as b,b as y,f as u,g as w,d as V,l as M,m as h,i as P,h as c,o as W,j,n as q,r as N,p as U}from"./scheduler.HHbpe561.js";import{S as A,i as F}from"./index.zjc5z22-.js";function z(i){let e,a;return{c(){e=v("p"),a=I(i[1]),this.h()},l(s){e=b(s,"P",{class:!0});var t=y(e);a=V(t,i[1]),t.forEach(u),this.h()},h(){h(e,"class","pb-1 italic")},m(s,t){P(s,e,t),c(e,a)},p(s,t){t&2&&j(a,s[1])},d(s){s&&u(e)}}}function B(i){let e,a;return{c(){e=v("p"),a=I(i[2]),this.h()},l(s){e=b(s,"P",{class:!0});var t=y(e);a=V(t,i[2]),t.forEach(u),this.h()},h(){h(e,"class","pb-1 italic")},m(s,t){P(s,e,t),c(e,a)},p(s,t){t&4&&j(a,s[2])},d(s){s&&u(e)}}}function G(i){let e,a,s,t,l,p,g,k,o,D,m,x="Ok",C,O,n=i[1]&&z(i),r=i[2]&&B(i);return{c(){e=v("div"),a=v("div"),s=E(),t=v("div"),l=v("div"),p=v("p"),g=I(i[0]),k=E(),n&&n.c(),o=E(),r&&r.c(),D=E(),m=v("button"),m.textContent=x,this.h()},l(f){e=b(f,"DIV",{class:!0});var d=y(e);a=b(d,"DIV",{class:!0}),y(a).forEach(u),s=w(d),t=b(d,"DIV",{class:!0});var S=y(t);l=b(S,"DIV",{class:!0});var _=y(l);p=b(_,"P",{class:!0});var T=y(p);g=V(T,i[0]),T.forEach(u),k=w(_),n&&n.l(_),o=w(_),r&&r.l(_),D=w(_),m=b(_,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),M(m)!=="svelte-fnm6uk"&&(m.textContent=x),_.forEach(u),S.forEach(u),d.forEach(u),this.h()},h(){h(a,"class","fixed inset-0 bg-black bg-opacity-50 transition-opacity"),h(p,"class","pb-1"),h(m,"type","button"),h(m,"class","rounded border border-transparent text-slate-50 mt-3 mx-1 py-1 px-3 bg-primary transition-colors hover:bg-primary-foreground"),h(l,"class","relative transform overflow-hidden rounded-lg p-6 max-w-2xl bg-slate-50 text-slate-800"),h(t,"class","flex min-h-full justify-center text-center items-center"),h(e,"class","fixed inset-0 z-50 overflow-y-auto")},m(f,d){P(f,e,d),c(e,a),c(e,s),c(e,t),c(t,l),c(l,p),c(p,g),c(l,k),n&&n.m(l,null),c(l,o),r&&r.m(l,null),c(l,D),c(l,m),C||(O=[W(window,"keydown",i[4]),W(m,"click",i[3])],C=!0)},p(f,[d]){d&1&&j(g,f[0]),f[1]?n?n.p(f,d):(n=z(f),n.c(),n.m(l,o)):n&&(n.d(1),n=null),f[2]?r?r.p(f,d):(r=B(f),r.c(),r.m(l,D)):r&&(r.d(1),r=null)},i:q,o:q,d(f){f&&u(e),n&&n.d(),r&&r.d(),C=!1,N(O)}}}function H(i,e,a){let{message:s}=e,{details:t=""}=e,{moreDetails:l=""}=e;const p=U();function g(){p("confirm")}function k(o){(o.key==="Enter"||o.key==="Escape")&&g()}return i.$$set=o=>{"message"in o&&a(0,s=o.message),"details"in o&&a(1,t=o.details),"moreDetails"in o&&a(2,l=o.moreDetails)},[s,t,l,g,k]}class Q extends A{constructor(e){super(),F(this,e,H,G,K,{message:0,details:1,moreDetails:2})}}export{Q as W};
