import{S as M,i as A,s as L,k as w,l as b,m,h as u,n as c,b as k,C as P,B as C,D as S,a as y,q as I,E as z,c as E,r as B,F as h,e as J,g as X,t as $,d as Z,f as D,G as ee,H as te,I as N,J as U,K as T,L as Y,w as G,x as K,y as Q,z as R,M as le}from"../../chunks/index-bc2baea7.js";import{p as se}from"../../chunks/stores-16595c51.js";function oe(a){let e,t,l,s,o;return{c(){e=S("svg"),t=S("path"),l=y(),s=w("span"),o=I("Light mode"),this.h()},l(r){e=z(r,"svg",{id:!0,class:!0,fill:!0,viewBox:!0,xmlns:!0});var i=m(e);t=z(i,"path",{d:!0,"fill-rule":!0,"clip-rule":!0}),m(t).forEach(u),i.forEach(u),l=E(r),s=b(r,"SPAN",{class:!0});var n=m(s);o=B(n,"Light mode"),n.forEach(u),this.h()},h(){c(t,"d","M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"),c(t,"fill-rule","evenodd"),c(t,"clip-rule","evenodd"),c(e,"id","theme-toggle-light-icon"),c(e,"class","w-5 h-5"),c(e,"fill","currentColor"),c(e,"viewBox","0 0 20 20"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(s,"class","px-2")},m(r,i){k(r,e,i),h(e,t),k(r,l,i),k(r,s,i),h(s,o)},d(r){r&&u(e),r&&u(l),r&&u(s)}}}function re(a){let e,t,l,s,o;return{c(){e=S("svg"),t=S("path"),l=y(),s=w("span"),o=I("Dark mode"),this.h()},l(r){e=z(r,"svg",{id:!0,class:!0,fill:!0,viewBox:!0,xmlns:!0});var i=m(e);t=z(i,"path",{d:!0}),m(t).forEach(u),i.forEach(u),l=E(r),s=b(r,"SPAN",{class:!0});var n=m(s);o=B(n,"Dark mode"),n.forEach(u),this.h()},h(){c(t,"d","M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"),c(e,"id","theme-toggle-dark-icon"),c(e,"class","w-5 h-5"),c(e,"fill","currentColor"),c(e,"viewBox","0 0 20 20"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(s,"class","px-2")},m(r,i){k(r,e,i),h(e,t),k(r,l,i),k(r,s,i),h(s,o)},d(r){r&&u(e),r&&u(l),r&&u(s)}}}function ne(a){let e,t,l;function s(i,n){return i[0]?re:oe}let o=s(a),r=o(a);return{c(){e=w("button"),r.c(),this.h()},l(i){e=b(i,"BUTTON",{class:!0});var n=m(e);r.l(n),n.forEach(u),this.h()},h(){c(e,"class","flex items-center text-white py-1 px-2 rounded-full hover:bg-pbw-yellow/20 dark:hover:bg-pbw-white/10")},m(i,n){k(i,e,n),r.m(e,null),t||(l=P(e,"click",a[1]),t=!0)},p(i,[n]){o!==(o=s(i))&&(r.d(1),r=o(i),r&&(r.c(),r.m(e,null)))},i:C,o:C,d(i){i&&u(e),r.d(),t=!1,l()}}}function ie(a,e,t){let l=!1;function s(){t(0,l=!l),document.body.classList.toggle("dark",l)}return[l,s]}class ae extends M{constructor(e){super(),A(this,e,ie,ne,L,{})}}var O={},ce={get exports(){return O},set exports(a){O=a}};(function(a,e){var t=function(l){this.opt=l||{},this.favicon=this.opt.favicon||"/favicon.ico",this.timeout=this.opt.timeout||0,this.logError=this.opt.logError||!1};t.prototype.ping=function(l,s){var o,r,i;typeof Promise<"u"&&(o=new Promise(function(p,x){r=p,i=x}));var n=this;n.wasSuccess=!1,n.img=new Image,n.img.onload=_,n.img.onerror=g;var d,f=new Date;function _(p){n.wasSuccess=!0,v.call(n,p)}function g(p){n.wasSuccess=!1,v.call(n,p)}n.timeout&&(d=setTimeout(function(){v.call(n,void 0)},n.timeout));function v(){d&&clearTimeout(d);var p=new Date-f;if(s){if(typeof s=="function")return this.wasSuccess?(o&&r(p),s(null,p)):(n.logError&&console.error("error loading resource"),o&&i(p),s("error",p));throw new Error("Callback is not a function.")}else{if(o)return this.wasSuccess?r(p):i(p);throw new Error("Promise is not supported by your browser. Use callback instead.")}}return n.img.src=l+n.favicon+"?"+ +new Date,o},a.exports&&(a.exports=t)})(ce);var fe=O,ue=fe;const pe=a=>({}),q=a=>({}),de=a=>({}),W=a=>({});function _e(a){let e;const t=a[4].offline,l=N(t,a,a[3],q),s=l||me();return{c(){s&&s.c()},l(o){s&&s.l(o)},m(o,r){s&&s.m(o,r),e=!0},p(o,r){l&&l.p&&(!e||r&8)&&U(l,t,o,o[3],e?Y(t,o[3],r,pe):T(o[3]),q)},i(o){e||(D(s,o),e=!0)},o(o){$(s,o),e=!1},d(o){s&&s.d(o)}}}function he(a){let e;const t=a[4].online,l=N(t,a,a[3],W),s=l||ve();return{c(){s&&s.c()},l(o){s&&s.l(o)},m(o,r){s&&s.m(o,r),e=!0},p(o,r){l&&l.p&&(!e||r&8)&&U(l,t,o,o[3],e?Y(t,o[3],r,de):T(o[3]),W)},i(o){e||(D(s,o),e=!0)},o(o){$(s,o),e=!1},d(o){s&&s.d(o)}}}function me(a){let e;return{c(){e=I("You're offline")},l(t){e=B(t,"You're offline")},m(t,l){k(t,e,l)},d(t){t&&u(e)}}}function ve(a){let e;return{c(){e=I("You're online")},l(t){e=B(t,"You're online")},m(t,l){k(t,e,l)},d(t){t&&u(e)}}}function ge(a){let e,t,l,s,o,r;const i=[he,_e],n=[];function d(f,_){return f[0]?0:1}return e=d(a),t=n[e]=i[e](a),{c(){t.c(),l=J()},l(f){t.l(f),l=J()},m(f,_){n[e].m(f,_),k(f,l,_),s=!0,o||(r=[P(window,"online",a[1]),P(window,"offline",a[1]),P(window,"load",a[1])],o=!0)},p(f,[_]){let g=e;e=d(f),e===g?n[e].p(f,_):(X(),$(n[g],1,1,()=>{n[g]=null}),Z(),t=n[e],t?t.p(f,_):(t=n[e]=i[e](f),t.c()),D(t,1),t.m(l.parentNode,l))},i(f){s||(D(t),s=!0)},o(f){$(t),s=!1},d(f){n[e].d(f),f&&u(l),o=!1,ee(r)}}}function we(a,e,t){let l,{$$slots:s={},$$scope:o}=e;const r=te();let{pingUrl:i="https://google.com"}=e;const n=()=>{new ue().ping(i,f=>{f||!navigator.onLine?t(0,l=!1):t(0,l=!0),r("detectedCondition",{online:l})})};return a.$$set=d=>{"pingUrl"in d&&t(2,i=d.pingUrl),"$$scope"in d&&t(3,o=d.$$scope)},t(0,l=navigator.onLine||!1),[l,n,i,o,s]}class be extends M{constructor(e){super(),A(this,e,we,ge,L,{pingUrl:2})}}const ke=be;function xe(a){let e,t;return e=new ke({props:{pingUrl:"https://x.gwei.cz/",$$slots:{offline:[Ee],online:[ye]},$$scope:{ctx:a}}}),e.$on("detectedCondition",a[1]),{c(){G(e.$$.fragment)},l(l){K(e.$$.fragment,l)},m(l,s){Q(e,l,s),t=!0},p(l,s){const o={};s&16&&(o.$$scope={dirty:s,ctx:l}),e.$set(o)},i(l){t||(D(e.$$.fragment,l),t=!0)},o(l){$(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function ye(a){let e,t,l,s,o,r,i;return{c(){e=w("span"),t=w("div"),l=S("svg"),s=S("circle"),o=y(),r=w("div"),i=I("Online"),this.h()},l(n){e=b(n,"SPAN",{slot:!0,class:!0});var d=m(e);t=b(d,"DIV",{});var f=m(t);l=z(f,"svg",{class:!0,viewBox:!0,xmlns:!0});var _=m(l);s=z(_,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),m(s).forEach(u),_.forEach(u),f.forEach(u),o=E(d),r=b(d,"DIV",{});var g=m(r);i=B(g,"Online"),g.forEach(u),d.forEach(u),this.h()},h(){c(s,"cx","50"),c(s,"cy","50"),c(s,"r","50"),c(s,"fill","rgb(255 222 89)"),c(l,"class","w-2"),c(l,"viewBox","0 0 100 100"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"slot","online"),c(e,"class","flex gap-2 items-center text-pbw-yellow")},m(n,d){k(n,e,d),h(e,t),h(t,l),h(l,s),h(e,o),h(e,r),h(r,i)},p:C,d(n){n&&u(e)}}}function Ee(a){let e,t,l,s,o,r,i;return{c(){e=w("span"),t=w("div"),l=S("svg"),s=S("circle"),o=y(),r=w("div"),i=I("Offline"),this.h()},l(n){e=b(n,"SPAN",{slot:!0,class:!0});var d=m(e);t=b(d,"DIV",{});var f=m(t);l=z(f,"svg",{class:!0,viewBox:!0,xmlns:!0});var _=m(l);s=z(_,"circle",{cx:!0,cy:!0,r:!0,fill:!0}),m(s).forEach(u),_.forEach(u),f.forEach(u),o=E(d),r=b(d,"DIV",{});var g=m(r);i=B(g,"Offline"),g.forEach(u),d.forEach(u),this.h()},h(){c(s,"cx","50"),c(s,"cy","50"),c(s,"r","50"),c(s,"fill","rgb(252 165 165)"),c(l,"class","w-2"),c(l,"viewBox","0 0 100 100"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"slot","offline"),c(e,"class","flex gap-2 items-center text-red-300")},m(n,d){k(n,e,d),h(e,t),h(t,l),h(l,s),h(e,o),h(e,r),h(r,i)},p:C,d(n){n&&u(e)}}}function F(a){let e,t,l,s,o,r,i,n;return{c(){e=w("div"),t=w("div"),l=w("h1"),s=w("a"),o=I("Prague Blockchain Week 2023"),r=y(),i=w("div"),n=I("June 2-11, 2023"),this.h()},l(d){e=b(d,"DIV",{class:!0});var f=m(e);t=b(f,"DIV",{class:!0});var _=m(t);l=b(_,"H1",{class:!0});var g=m(l);s=b(g,"A",{href:!0});var v=m(s);o=B(v,"Prague Blockchain Week 2023"),v.forEach(u),g.forEach(u),r=E(_),i=b(_,"DIV",{class:!0});var p=m(i);n=B(p,"June 2-11, 2023"),p.forEach(u),_.forEach(u),f.forEach(u),this.h()},h(){c(s,"href","https://prgblockweek.com"),c(l,"class","text-5xl uppercase font-bold text-pbw-white"),c(i,"class","text-4xl text-pbw-yellow"),c(t,"class","max-w-7xl mx-auto pt-10 pb-6"),c(e,"class","px-6 xl:px-0")},m(d,f){k(d,e,f),h(e,t),h(t,l),h(l,s),h(s,o),h(t,r),h(t,i),h(i,n)},d(d){d&&u(e)}}}function $e(a){let e,t,l,s,o,r,i,n,d,f=typeof window<"u"&&xe(a);o=new ae({});let _=a[0]&&F();const g=a[3].default,v=N(g,a,a[4],null);return{c(){e=w("div"),t=w("div"),l=w("div"),f&&f.c(),s=y(),G(o.$$.fragment),r=y(),_&&_.c(),i=y(),n=w("div"),v&&v.c(),this.h()},l(p){e=b(p,"DIV",{class:!0});var x=m(e);t=b(x,"DIV",{class:!0});var V=m(t);l=b(V,"DIV",{class:!0});var j=m(l);f&&f.l(j),j.forEach(u),s=E(V),K(o.$$.fragment,V),V.forEach(u),r=E(x),_&&_.l(x),x.forEach(u),i=E(p),n=b(p,"DIV",{class:!0});var H=m(n);v&&v.l(H),H.forEach(u),this.h()},h(){c(l,"class","my-auto"),c(t,"class","flex gap-4 max-w-7xl items-center justify-end p-2 m-auto h-[50px] -mb-[30px] text-white"),c(e,"class","w-full h-full bg-pbw-red"),c(n,"class","page-body")},m(p,x){k(p,e,x),h(e,t),h(t,l),f&&f.m(l,null),h(t,s),Q(o,t,null),h(e,r),_&&_.m(e,null),k(p,i,x),k(p,n,x),v&&v.m(n,null),d=!0},p(p,[x]){typeof window<"u"&&f.p(p,x),p[0]?_||(_=F(),_.c(),_.m(e,null)):_&&(_.d(1),_=null),v&&v.p&&(!d||x&16)&&U(v,g,p,p[4],d?Y(g,p[4],x,null):T(p[4]),null)},i(p){d||(D(f),D(o.$$.fragment,p),D(v,p),d=!0)},o(p){$(f),$(o.$$.fragment,p),$(v,p),d=!1},d(p){p&&u(e),f&&f.d(),R(o),_&&_.d(),p&&u(i),p&&u(n),v&&v.d(p)}}}function De(a,e,t){let l,s;le(a,se,n=>t(2,s=n));let{$$slots:o={},$$scope:r}=e;const i=n=>{console.log("event details: ",n)};return a.$$set=n=>{"$$scope"in n&&t(4,r=n.$$scope)},a.$$.update=()=>{a.$$.dirty&4&&t(0,l=!s.params.type&&!s.params.date&&!["/[entry]/schedule","/[entry]/for-speakers","/[entry]/for-sponsors"].includes(s.route.id))},[l,i,s,o,r]}class ze extends M{constructor(e){super(),A(this,e,De,$e,L,{})}}export{ze as default};