PageSourceSearch

https://b4ukraine.org/_app/immutable/nodes/16.c98dc7aa.js

js b4ukraine.org collected 2026-10-02 11:10:16 UTC 6,331 bytes, 1 lines download raw bytes

1import{S as X,i as Y,s as Z,m as R,a as S,e as _,t as W,p as V,g as N,c as p,b as $,d as J,f as u,r as c,u as q,h as v,j as h,v as y,w as E,x as B,l as x,o as I,C as ee,D as te,E as re,k as ae,F as se,G as C,n as K}from"../chunks/index.31eff074.js";import{S as le,w as ie,b as ne}from"../chunks/index.476fba7f.js";import{P as oe}from"../chunks/preview.722e43e5.js";import{B as ce}from"../chunks/index.7343a974.js";import{p as fe,P as ue,n as Q,a as T}from"../chunks/next.375990c0.js";import{p as he}from"../chunks/stores.74aed31f.js";function L(n,e,a){const r=n.slice();return r[8]=e[a],r}function _e(n){let e=[],a=new Map,r,s,t=n[1];const l=i=>i[8].path;for(let i=0;i<t.length;i+=1){let o=L(n,t,i),m=l(o);a.set(m,e[i]=O(m,o))}return{c(){for(let i=0;i<e.length;i+=1)e[i].c();r=I()},l(i){for(let o=0;o<e.length;o+=1)e[o].l(i);r=I()},m(i,o){for(let m=0;m<e.length;m+=1)e[m]&&e[m].m(i,o);v(i,r,o),s=!0},p(i,o){o&2&&(t=i[1],ee(),e=te(e,o,l,1,i,t,a,r.parentNode,se,O,r,L),re())},i(i){if(!s){for(let o=0;o<t.length;o+=1)y(e[o]);s=!0}},o(i){for(let o=0;o<e.length;o+=1)E(e[o]);s=!1},d(i){for(let o=0;o<e.length;o+=1)e[o].d(i);i&&u(r)}}}function O(n,e){let a,r,s;return r=new oe({props:{post:e[8]}}),{key:n,first:null,c(){a=I(),R(r.$$.fragment),this.h()},l(t){a=I(),V(r.$$.fragment,t),this.h()},h(){this.first=a},m(t,l){v(t,a,l),q(r,t,l),s=!0},p(t,l){e=t;const i={};l&2&&(i.post=e[8]),r.$set(i)},i(t){s||(y(r.$$.fragment,t),s=!0)},o(t){E(r.$$.fragment,t),s=!1},d(t){t&&u(a),B(r,t)}}}function pe(n){let e,a;return e=new ue({props:{totalItems:n[3],pageSize:A,currentPage:n[0],limit:1,showStepOptions:!0,$$slots:{prev:[ke,({value:r})=>({7:r}),({value:r})=>r?128:0],next:[ve,({value:r})=>({7:r}),({value:r})=>r?128:0],number:[me,({value:r})=>({7:r}),({value:r})=>r?128:0]},$$scope:{ctx:n}}}),{c(){R(e.$$.fragment)},l(r){V(e.$$.fragment,r)},m(r,s){q(e,r,s),a=!0},p(r,s){const t={};s&1&&(t.currentPage=r[0]),s&2177&&(t.$$scope={dirty:s,ctx:r}),e.$set(t)},i(r){a||(y(e.$$.fragment,r),a=!0)},o(r){E(e.$$.fragment,r),a=!1},d(r){B(e,r)}}}function me(n){let e,a=n[7]+"",r,s;return{c(){e=_("a"),r=W(a),this.h()},l(t){e=p(t,"A",{class:!0,slot:!0,href:!0});var l=$(e);r=J(l,a),l.forEach(u),this.h()},h(){c(e,"class","img-wrapper"),c(e,"slot","number"),c(e,"href",s=n[7]===1?"/letters":`/letters/${n[7]}`)},m(t,l){v(t,e,l),h(e,r)},p(t,l){l&128&&a!==(a=t[7]+"")&&ae(r,a),l&128&&s!==(s=t[7]===1?"/letters":`/letters/${t[7]}`)&&c(e,"href",s)},d(t){t&&u(e)}}}function de(n){let e,a,r;return{c(){e=_("span"),a=_("img"),this.h()},l(s){e=p(s,"SPAN",{class:!0});var t=$(e);a=p(t,"IMG",{alt:!0,src:!0,width:!0,height:!0}),t.forEach(u),this.h()},h(){c(a,"alt","next"),C(a.src,r=Q)||c(a,"src",r),c(a,"width","24"),c(a,"height","24"),c(e,"class","img-wrapper")},m(s,t){v(s,e,t),h(e,a)},p:K,d(s){s&&u(e)}}}function ge(n){let e,a,r,s;return{c(){e=_("a"),a=_("img"),this.h()},l(t){e=p(t,"A",{class:!0,href:!0});var l=$(e);a=p(l,"IMG",{alt:!0,src:!0,width:!0,height:!0}),l.forEach(u),this.h()},h(){c(a,"alt","next"),C(a.src,r=Q)||c(a,"src",r),c(a,"width","24"),c(a,"height","24"),c(e,"class","img-wrapper"),c(e,"href",s=`/letters/${n[0]+1}`)},m(t,l){v(t,e,l),h(e,a)},p(t,l){l&1&&s!==(s=`/letters/${t[0]+1}`)&&c(e,"href",s)},d(t){t&&u(e)}}}function ve(n){let e,a;function r(l,i){return i&1&&(e=null),e==null&&(e=l[0]<Math.ceil(l[3]/A)),e?ge:de}let s=r(n,-1),t=s(n);return{c(){t.c(),a=I()},l(l){t.l(l),a=I()},m(l,i){t.m(l,i),v(l,a,i)},p(l,i){s===(s=r(l,i))&&t?t.p(l,i):(t.d(1),t=s(l),t&&(t.c(),t.m(a.parentNode,a)))}
1,d(l){t.d(l),l&&u(a)}}}function $e(n){let e,a,r;return{c(){e=_("span"),a=_("img"),this.h()},l(s){e=p(s,"SPAN",{class:!0});var t=$(e);a=p(t,"IMG",{alt:!0,src:!0,width:!0,height:!0}),t.forEach(u),this.h()},h(){c(a,"alt","prev"),C(a.src,r=T)||c(a,"src",r),c(a,"width","24"),c(a,"height","24"),c(e,"class","img-wrapper")},m(s,t){v(s,e,t),h(e,a)},p:K,d(s){s&&u(e)}}}function be(n){let e,a,r,s;return{c(){e=_("a"),a=_("img"),this.h()},l(t){e=p(t,"A",{class:!0,href:!0});var l=$(e);a=p(l,"IMG",{alt:!0,src:!0,width:!0,height:!0}),l.forEach(u),this.h()},h(){c(a,"alt","prev"),C(a.src,r=T)||c(a,"src",r),c(a,"width","24"),c(a,"height","24"),c(e,"class","img-wrapper"),c(e,"href",s=n[0]===2?"/letters":`/letters/${n[0]-1}`)},m(t,l){v(t,e,l),h(e,a)},p(t,l){l&1&&s!==(s=t[0]===2?"/letters":`/letters/${t[0]-1}`)&&c(e,"href",s)},d(t){t&&u(e)}}}function ke(n){let e;function a(t,l){return t[0]>1?be:$e}let r=a(n),s=r(n);return{c(){s.c(),e=I()},l(t){s.l(t),e=I()},m(t,l){s.m(t,l),v(t,e,l)},p(t,l){r===(r=a(t))&&s?s.p(t,l):(s.d(1),s=r(t),s&&(s.c(),s.m(e.parentNode,e)))},d(t){s.d(t),t&&u(e)}}}function we(n){let e,a,r,s,t,l,i,o,m,k,H,U,P,j,G;e=new le({props:{description:n[4],title:M,schemas:[ie,{...ne,name:M,description:n[4]}]}}),t=new ce({props:{current:M}});let d=n[2]&&_e(n),g=n[3]/A>1&&pe(n);return{c(){R(e.$$.fragment),a=S(),r=_("main"),s=_("div"),R(t.$$.fragment),l=S(),i=_("div"),o=_("h1"),m=W(M),k=S(),H=_("hr"),U=S(),P=_("div"),d&&d.c(),j=S(),g&&g.c(),this.h()},l(f){V(e.$$.fragment,f),a=N(f),r=p(f,"MAIN",{class:!0});var b=$(r);s=p(b,"DIV",{class:!0});var D=$(s);V(t.$$.fragment,D),l=N(D),i=p(D,"DIV",{class:!0});var w=$(i);o=p(w,"H1",{class:!0});var z=$(o);m=J(z,M),z.forEach(u),k=N(w),H=p(w,"HR",{}),U=N(w),P=p(w,"DIV",{class:!0});var F=$(P);d&&d.l(F),F.forEach(u),j=N(w),g&&g.l(w),w.forEach(u),D.forEach(u),b.forEach(u),this.h()},h(){c(o,"class","text-2"),c(P,"class","list"),c(i,"class","content"),c(s,"class","container"),c(r,"class","letters page")},m(f,b){q(e,f,b),v(f,a,b),v(f,r,b),h(r,s),q(t,s,null),h(s,l),h(s,i),h(i,o),h(o,m),h(i,k),h(i,H),h(i,U),h(i,P),d&&d.m(P,null),h(i,j),g&&g.m(i,null),G=!0},p(f,[b]){f[2]&&d.p(f,b),f[3]/A>1&&g.p(f,b)},i(f){G||(y(e.$$.fragment,f),y(t.$$.fragment,f),y(d),y(g),G=!0)},o(f){E(e.$$.fragment,f),E(t.$$.fragment,f),E(d),E(g),G=!1},d(f){B(e,f),f&&u(a),f&&u(r),B(t),d&&d.d(),g&&g.d()}}}const A=9,M="Letters from Ukraine";function Ie(n,e,a){let r,s,t;x(n,he,k=>a(6,t=k));let{data:l}=e;const{posts:i,totalItems:o}=l,m="Read the stories of ordinary Ukrainians' personal loss and share their plea to Western multinationals to leave Russia";return n.$$set=k=>{"data"in k&&a(5,l=k.data)},n.$$.update=()=>{n.$$.dirty&64&&a(0,r=Number(t.params.page)||1),n.$$.dirty&1&&a(1,s=fe({items:i,pageSize:A,currentPage:r}))},[r,s,i,o,m,l,t]}class Ae extends X{constructor(e){super(),Y(this,e,Ie,we,Z,{data:5})}}export{Ae as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.