pbw-explore/_app/immutable/chunks/Footer-5a9be4b8.js

10 řádky
16 KiB
JavaScript
Surový Normální zobrazení Historie

import{S as ce,i as de,s as he,a as V,e as U,c as y,b as M,f as O,g as L,d as Y,t as A,J as ke,h as m,k,l as D,m as w,n as v,H as g,q as I,r as T,K as j,u as X,w as me,x as ve,y as _e,z as ge,B as F,L as De}from"./index-ae6fe942.js";import{r as H,t as S,d as we,g as G,a as Me,f as C,S as be}from"./utils-960039b8.js";function J(s,e){H(2,arguments);var t=S(s),r=S(e),a=t.getTime()-r.getTime();return a<0?-1:a>0?1:a}function Ee(s,e){H(2,arguments);var t=S(s),r=S(e),a=t.getFullYear()-r.getFullYear(),l=t.getMonth()-r.getMonth();return a*12+l}function Ie(s,e){return H(2,arguments),S(s).getTime()-S(e).getTime()}var P={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Te="trunc";function Se(s){return s?P[s]:P[Te]}function Ne(s){H(1,arguments);var e=S(s);return e.setHours(23,59,59,999),e}function Oe(s){H(1,arguments);var e=S(s),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(23,59,59,999),e}function Ve(s){H(1,arguments);var e=S(s);return Ne(e).getTime()===Oe(e).getTime()}function ye(s,e){H(2,arguments);var t=S(s),r=S(e),a=J(t,r),l=Math.abs(Ee(t,r)),i;if(l<1)i=0;else{t.getMonth()===1&&t.getDate()>27&&t.setDate(30),t.setMonth(t.getMonth()-a*l);var f=J(t,r)===-a;Ve(S(s))&&l===1&&J(s,r)===1&&(f=!1),i=a*(l-Number(f))}return i===0?0:i}function Ae(s,e,t){H(2,arguments);var r=Ie(s,e)/1e3;return Se(t==null?void 0:t.roundingMethod)(r)}function pe(s,e){if(s==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(s[t]=e[t]);return s}function He(s){return pe({},s)}var B=1440,Re=2520,z=43200,Xe=86400;function Je(s,e,t){var r,a;H(2,arguments);var l=Me(),i=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:l.locale)!==null&&r!==void 0?r:we;if(!i.formatDistance)throw new RangeError("locale must contain formatDistance property");var f=J(s,e);if(isNaN(f))throw new RangeError("Invalid time value");var n=pe(He(t),{addSuffix:Boolean(t==null?void 0:t.addSuffix),comparison:f}),u,o;f>0?(u=S(e),o=S(s)):(u=S(s),o=S(e));var c=Ae(o,u),_=(G(o)-G(u))/1e3,d=Math.round((c-_)/60),h;if(d<2)return t!=null&&t.includeSeconds?c<5?i.formatDistance("lessThanXSeconds",5,n):c<10?i.formatDistance("lessThanXSeconds",10,n):c<20?i.formatDistance("lessThanXSeconds",20,n):c<40?i.formatDistance("halfAMinute",0,n):c<60?i.formatDistance("lessThanXMinutes",1,n):i.formatDistance("xMinutes",1,n):d===0?i.formatDistance("lessThanXMinutes",1,n):i.formatDistance("xMinutes",d,n);if(d<45)return i.formatDistance("xMinutes",d,n);if(d<90)return i.formatDistance("aboutXHours",1,n);if(d<B){var b=Math.round(d/60);return i.formatDistance("aboutXHours",b,n)}else{if(d<Re)return i.formatDistance("xDays",1,n);if(d<z){var p=Math.round(d/B);return i.formatDistance("xDays",p,n)}else if(d<Xe)return h=Math.round(d/z),i.formatDistance("aboutXMonths",h,n)}if(h=ye(o,u),h<12){var E=Math.round(d/z);return i.formatDistance("xMonths",E,n)}else{var N=h%12,R=Math.floor(h/12);return N<3?i.formatDistance("aboutXYears",R,n):N<9?i.formatDistance("overXYears",R,n):i.formatDistance("almostXYears",R+1,n)}}function W(s,e){return H(1,arguments),Je(s,Date.now(),e)}function K(s,e,t){const r=s.slice();return r[8]=e[t],r}function Q(s){let e,t,r,a,l,i,f,n,u=s[1]==="benefit"&&Z(s);return{c(){e=k("div"),u&&u.c(),t=V(),r=k("a"),a=k("img"),this.h()},l(o){e=D(o,"DIV",{class:!0});var c=w(e);u&&u.l(c),t=y(c),r=D(c,"A",{href:!0});var _=w(r);a=D(_,"IMG",{src:!0,alt:!0,class:!0}),_.forEach(m),c.forEach(m),this.h()},h(){j(a.src,l=s[8][s[2]])||v(a,"src",l),v(a,"alt",i=s[8].name),v(a,"class",f=(s[4]==="small"?"rounded-lg":"rounded-2xl")+" w-full "+s[3]+" object-cover"),v(r,"href",n=s[6](s[1],s[8])),v(e,"class","w-full relative")},m(o,c){M(o,e,c),u&&u.m(e,null),g(e,t),g(e,r),g(r,a)},p(o,c){o[1]==="benefit"?u?u.p(o,c):(u=Z(o),u.c(),u.m(e,t)):u&&(u.d(1),u=null),c&5&&!j(a.src,l=o[8][o[2]])&&v(a,"src",l),c&1&&i!==(i=o[8].name)&&v(a,"alt",i),c&24&&f!==(f=(o[4]==="small"?"rounded-lg":"rounded-2xl")+" w-full "+o[3]+" object-cover")&&v(a,"class",f),c&3&&n!==(n=o[6](o[1],o[8]))&&v
 |  `),u=k("button"),o=I("Toggle JSON source"),this.h()},l(d){e=T(d," |  ID: "),t=D(d,"A",{href:!0,class:!0,target:!0});var h=w(t);a=T(h,r),h.forEach(m),i=T(d," ["),f=T(d,s[1]),n=T(d,`]
 |  `),u=D(d,"BUTTON",{class:!0});var b=w(u);o=T(b,"Toggle JSON source"),b.forEach(m),this.h()},h(){v(t,"href",l="https://github.com/utxo-foundation/prague-blockchain-week/tree/main/data/23/events/"+s[0].id),v(t,"class","underline hover:no-underline"),v(t,"target","_blank"),v(u,"class","cursor-pointer underline hover:no-underline")},m(d,h){M(d,e,h),M(d,t,h),g(t,a),M(d,i,h),M(d,f,h),M(d,n,h),M(d,u,h),g(u,o),c||(_=De(u,"click",s[4]),c=!0)},p(d,h){h&1&&r!==(r=d[0].id+"")&&X(a,r),h&1&&l!==(l="https://github.com/utxo-foundation/prague-blockchain-week/tree/main/data/23/events/"+d[0].id)&&v(t,"href",l),h&2&&X(f,d[1])},d(d){d&&m(e),d&&m(t),d&&m(i),d&&m(f),d&&m(n),d&&m(u),c=!1,_()}}}function ue(s){let e,t,r,a,l=JSON.stringify(s[0],null,2)+"",i;return{c(){e=k("h2"),t=I("JSON source-code"),r=V(),a=k("div"),i=I(l),this.h()},l(f){e=D(f,"H2",{class:!0});var n=w(e);t=T(n,"JSON source-code"),n.forEach(m),r=y(f),a=D(f,"DIV",{class:!0});var u=w(a);i=T(u,l),u.forEach(m),this.h()},h(){v(e,"class","text-2xl uppercase font-bold mt-10 text-gray-500"),v(a,"class","mt-4 font-mono whitespace-pre-wrap p-4 rounded-md bg-slate-200 text-sm text-black")},m(f,n){M(f,e,n),g(e,t),M(f,r,n),M(f,a,n),g(a,i)},p(f,n){n&1&&l!==(l=JSON.stringify(f[0],null,2)+"")&&X(i,l)},d(f){f&&m(e),f&&m(r),f&&m(a)}}}function ze(s){let e,t,r,a,l,i,f,n,u,o,c,_,d,h=s[2]&&fe(s);return{c(){e=k("div"),t=k("div"),r=k("div"),a=I("⚙ This page is automatically generated using the structured dataset which can be consumed as a single JSON file → "),l=k("a"),i=I("data.prgblockweek.com/23/index.json"),f=I(`.
`),n=k("div"),u=I(`
📖 The source data GitHub repository `),o=k("a"),c=I("utxo-foundation/prague-blockchain-week"),_=I(`.
Go ahead and do PRs!`),d=V(),h&&h.c(),this.h()},l(b){e=D(b,"DIV",{class:!0});var p=w(e);t=D(p,"DIV",{class:!0});var E=w(t);r=D(E,"DIV",{});var N=w(r);a=T(N,"⚙ This page is automatically generated using the structured dataset which can be consumed as a single JSON file → "),l=D(N,"A",{href:!0,class:!0,target:!0});var R=w(l);i=T(R,"data.prgblockweek.com/23/index.json"),R.forEach(m),f=T(N,`.
`),n=D(N,"DIV",{class:!0}),w(n).forEach(m),u=T(N,`
📖 The source data GitHub repository `),o=D(N,"A",{href:!0,class:!0,target:!0});var q=w(o);c=T(q,"utxo-foundation/prague-blockchain-week"),q.forEach(m),_=T(N,`.
Go ahead and do PRs!`),N.forEach(m),E.forEach(m),d=y(p),h&&h.l(p),p.forEach(m),this.h()},h(){v(l,"href","https://data.prgblockweek.com/23/index.json"),v(l,"class","underline hover:no-underline"),v(l,"target","_blank"),v(n,"class","h-4"),v(o,"href","https://github.com/utxo-foundation/prague-blockchain-week"),v(o,"class","underline hover:no-underline"),v(o,"target","_blank"),v(t,"class","bg-gray-100 p-4 text-lg text-gray-600"),v(e,"class","mt-20")},m(b,p){M(b,e,p),g(e,t),g(t,r),g(r,a),g(r,l),g(l,i),g(r,f),g(r,n),g(r,u),g(r,o),g(o,c),g(r,_),g(e,d),h&&h.m(e,null)},p(b,[p]){b[2]?h?h.p(b,p):(h=fe(b),h.c(),h.m(e,null)):h&&(h.d(1),h=null)},i:F,o:F,d(b){b&&m(e),h&&h.d()}}}function qe(s,e,t){let{item:r}=e,{col:a}=e,{bundle:l}=e,i=!1;const f=()=>(t(3,i=!i),!1);return s.$$set=n=>{"item"in n&&t(0,r=n.item),"col"in n&&t(1,a=n.col),"bundle"in n&&t(2,l=n.bundle)},[r,a,l,i,f]}class Ge extends ce{constructor(e){super(),de(this,e,qe,ze,he,{item:0,col:1,bundle:2})}}export{Fe as C,Ge as F};