1import{n as me,e as z,d as y,r as Ce,b as Ue,i as Ne,v as Xe,c as Ye,l as Ze}from"./index-D6d4kZkX.js";import{e as v,b as R,c as te,t as N,g as ve}from"./ContainerContext-BavehaTw.js";import{S as pe,i as ge,d as k,a as he,b as F,g as B,l as _,h,e as Pe,v as ke,t as I,c as j,m as oe,u as xe,A as $e,f as ne,o as H,p as T,q as W,r as X,y as q}from"./index-BVmDeBsl.js";import{q as ee,J as Se,K as Fe,Q as Be}from"./SvelteApollo-D3OG7ev6.js";import{u as Ee}from"./fragment-masking-CMs6SO9L.js";import{f as be}from"./FeedPostForm-Ei1v76m1.js";import{F as _e,u as Re}from"./FeedPost-C4ln5MEa.js";import{c as qe}from"./cx-C6c7kUCj.js";import{y as et,br as Me,bs as Le,bt as je}from"./Spinner-oAC9Iisp.js";import"./isArrayLike-Bcy-_sts.js";import"./shared-Bp9SGWxR.js";import"./spread-CgU5AtxT.js";import"./FormErrors-CUzrYaJ6.js";import"./zod-generated-CNpaoo-C.js";import"./BBCode-BdNtNRDM.js";import"./MediaImage-D5IK8F4s.js";import"./transition-3SI18fX_.js";import"./Picture-hqimcuPS.js";import"./SearchHeaderFormData-Zih4tp88.js";import"./ParticipantRef-BX-dYjX4.js";import"./_createSet-BC01BMsk.js";import"./constructFrom-rJN6zrQ_.js";import"./index-jHtbw_iu.js";import"./HtmlForm-BuPa8gRm.js";import"./CalendarDate-iNjl934J.js";import"./required-BkSB_lRc.js";import"./temporizePromise-BPnl2Y8V.js";import"./zonedDateTime-bagcjYNQ.js";import"./documentName-osODYk-F.js";import"./SubmitButton-B5Mig_uk.js";import"./SelectMyParticipantInput-VF2yxSNb.js";import"./StackZIndex-CV2feX4o.js";import"./create-DhHzJOlc.js";import"./index-CJu818Os.js";import"./find-DWis5oRf.js";import"./isString-D-ay0Zk4.js";import"./_baseUniq-DkchXrZB.js";import"./_baseRest-51aN0EN5.js";import"./truncate-mdjTXLsG.js";import"./Utils-DUoEQ0zu.js";import"./Modal-DbrsQD6j.js";import"./create-CnK43xuh.js";import"./WithTooltip-BXV1JGWf.js";import"./pointer-CNUJI4f1.js";import"./filterNotNull-C8BnPedc.js";import"./ParticipantAvatar-CjBI6AUN.js";import"./participantUtils-BFikPgb_.js";import"./FollowButton-C9Wfu-OH.js";import"./SecuredArea-BfKVNbHT.js";import"./SecuredAreaModalContext-BpB6QNoR.js";import"./CountryPicture-D9XVLEZM.js";import"./create-Ur6gLvRH.js";import"./typeahead-DbcXf7cO.js";import"./create-C1Z9ocpj.js";import"./melt-95-Otxob.js";import"./debounce-DtsRdNft.js";import"./DatePickerInput-bZQi3At5.js";import"./calendarDate-BClRyeap.js";import"./sync-BcmB5jVA.js";import"./globals-D0QH3NT1.js";import"./ButtonMenu-C0dUvSf2.js";import"./Utils-2e0Vc_M9.js";import"./WithContext-PpYwc8qQ.js";import"./logo-CGvrh_Ll.js";import"./PasswordInput-CLHco845.js";import"./Input-C5jzUxxu.js";import"./ModalGoafricaContact-Bw7QCDJa.js";import"./logo-DLbKnZrF.js";import"./pipe-DolA5Ihc.js";import"./email-CvYYxvUp.js";import"./isBetween-CmybpuoX.js";import"./Textarea-DJKW9jRk.js";import"./resizeObserver-CjI-ufp5.js";import"./Select-DO2x_WwQ.js";import"./MultiCategoryChoice-BTnAZkB8.js";import"./country-B--c7reY.js";import"./deburr-DAyiRRY4.js";import"./AsyncMultiSelect-CQEIU1pu.js";import"./_cacheHas-SVO6LSXC.js";import"./_baseFlatten-CRRYwU8x.js";import"./escapeRegExp-CQ_zBttk.js";import"./sortBy-oZj81meL.js";import"./_baseOrderBy-CzOwYYmJ.js";import"./_baseMap-DRwYizjT.js";import"./_isIterateeCall-BpKgdWho.js";import"./sortBy-B497iKlW.js";import"./_baseOrderBy-RMcf0Vyn.js";import"./keyBy-C6S9xdlf.js";import"./assert-Dn5G_yvX.js";import"./map-BCxdbFNx.js";import"./upperFirst-C3hyEwtB.js";import"./slice-CUZHkHT-.js";import"./differenceInMilliseconds-CfmX0FVN.js";const L="src/lib/components/Feed/FeedPostLoader.svelte";function ie(o){let e,t,i,s,n,r,c,l,d,f,p,u,m,b,S;const P={c:function(){e=v("div"),t=v("div"),i=v("div"),s=R(),n=v("div"),r=v("div"),c=v("span"),c.textContent="Author name here",l=R(),d=v("div"),f=v("span"),f.textContent="Author title will come here",p=R(),u=v("div"),m=v("span"),m.textContent="3 days ago",b=R(),S=v("div"),S.textContent=`Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 2 incididunt ut labore et dolore magna aliqua. Vel facilisis volutpat est velit 3 egestas. Faucibus nisl tincidunt eget nullam non. Eu non diam phasellus vestibulum 4 lorem.`,h(i,"class","force-w-16 ls:force-w-24 force-h-16 ls:force-h-24 rounded-full bg-gray-300 animate-pulse"),y(i,L,10,8,255),h(c,"class","bg-gray-300 animate-pulse rounded-md"),y(c,L,15,16,507),h(r,"class","text-12 font-bold truncate"),y(r,L,14,12,450),h(f,"class","bg-gray-300 animate-pulse rounded-md"),y(f,L,20,16,709),h(d,"class","italic text-12 truncate"),y(d,L,19,12,653),h(m,"class","bg-gray-300 animate-pulse rounded-md"),y(m,L,25,16,911),h(u,"class","italic text-12"),y(u,L,24,12,866),h(n,"class","flex-1 relative overflow-hidden"),y(n,L,13,8,390),h(t,"class","flex mb-8 items-start space-x-5"),y(t,L,9,4,201),h(S,"class","text-14 bg-gray-300 animate-pulse rounded-md"),y(S,L,29,4,1033),h(e,"class",qe("my-5 bg-white/50 p-5 border rounded-lg border-gray-300_ shadow_ boxify_ text-transparent")),y(e,L,4,0,68)},l:function(g){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(g,M){B(g,e,M),_(e,t),_(t,i),_(t,s),_(t,n),_(n,r),_(r,c),_(n,l),_(n,d),_(d,f),_(n,p),_(n,u),_(u,m),_(e,b),_(e,S)},p:z,i:z,o:z,d:function(g){g&&F(e)}};return k("SvelteRegisterBlock",{block:P,id:ie.name,type:"component",source:"",ctx:o}),P}function tt(o,e,t){let{$$slots:i={},$$scope:s}=e;he("FeedPostLoader",i,[]);const n=[];return Object.keys(e).forEach(r=>{!~n.indexOf(r)&&r.slice(0,2)!=="$$"&&r!=="slot"&&console.warn(`<FeedPostLoader> was created with unknown prop '${r}'`)}),o.$capture_state=()=>({cx:qe}),[]}class De extends pe{constructor(e){super(e),ge(this,e,tt,ie,me,{}),k("SvelteRegisterComponent",{component:this,tagName:"FeedPostLoader",options:e,id:ie.name})}}const G="src/lib/components/Feed/FeedsSection_Body.svelte";function V(o,e,t){const i=o.slice();return i[4]=e[t],i[6]=t,i}function Oe(o){let e,t;e=new _e({props:{post:o[4],commentData:null},$$inline:!0});const i={c:function(){X(e.$$.fragment)},m:function(n,r){W(e,n,r),t=!0},p:function(n,r){const c={};r&1&&(c.post=n[4]),e.$set(c)},i:function(n){t||(j(e.$$.fragment,n),t=!0)},o:function(n){I(e.$$.fragment,n),t=!1},d:function(n){T(e,n)}};return k("SvelteRegisterBlock",{block:i,id:Oe.name,type:"else",source:"(17:12) {:else}",ctx:o}),i}function Ae(o){let e,t,i,s,n,r;t=new _e({props:{post:o[4],commentData:null},$$inline:!0});const c={c:function(){e=v("div"),X(t.$$.fragment),i=R(),y(e,G,16,16,507)},m:function(d,f){B(d,e,f),W(t,e,null),_(e,i),s=!0,n||(r=[Ue(be.call(null,e)),H(e,"fetchmore",function(){Ne(o[3])&&o[3].apply(this,arguments)}
4,!1,!1,!1,!1)],n=!0)},p:function(d,f){o=d;const p={};f&1&&(p.post=o[4]),t.$set(p)},i:function(d){s||(j(t.$$.fragment,d),s=!0)},o:function(d){I(t.$$.fragment,d),s=!1},d:function(d){d&&F(e),T(t),n=!1,Ce(r)}};return k("SvelteRegisterBlock",{block:c,id:Ae.name,type:"if",source:"(13:12) {#if index === posts.length - 3}",ctx:o}),c}function se(o,e){let t,i,s,n,r;const c=[Ae,Oe],l=[];function d(p,u){return p[6]===p[0].length-3?0:1}i=d(e),s=l[i]=c[i](e);const f={key:o,first:null,c:function(){t=te(),s.c(),n=te(),this.first=t},m:function(u,m){B(u,t,m),l[i].m(u,m),B(u,n,m),r=!0},p:function(u,m){e=u;let b=i;i=d(e),i===b?l[i].p(e,m):(oe(),I(l[b],1,1,()=>{l[b]=null}),ne(),s=l[i],s?s.p(e,m):(s=l[i]=c[i](e),s.c()),j(s,1),s.m(n.parentNode,n))},i:function(u){r||(j(s),r=!0)},o:function(u){I(s),r=!1},d:function(u){u&&(F(t),F(n)),l[i].d(u)}};return k("SvelteRegisterBlock",{block:f,id:se.name,type:"each",source:"(12:8) {#each posts as post, index (post.id)}",ctx:e}),f}function re(o){let e,t;e=new De({$$inline:!0});const i={c:function(){X(e.$$.fragment)},m:function(n,r){W(e,n,r),t=!0},i:function(n){t||(j(e.$$.fragment,n),t=!0)},o:function(n){I(e.$$.fragment,n),t=!1},d:function(n){T(e,n)}};return k("SvelteRegisterBlock",{block:i,id:re.name,type:"if",source:"(23:0) {#if loading}",ctx:o}),i}function ce(o){let e,t=o[2].map(Ie).join(` 5`)+"",i;const s={c:function(){e=v("div"),i=N(t),h(e,"class","alert alert-danger my-3"),y(e,G,29,4,826)},m:function(r,c){B(r,e,c),_(e,i)},p:function(r,c){c&4&&t!==(t=r[2].map(Ie).join(` 6`)+"")&&q(i,t)},d:function(r){r&&F(e)}};return k("SvelteRegisterBlock",{block:s,id:ce.name,type:"if",source:"(26:0) {#if errors}",ctx:o}),s}function le(o){let e,t,i=[],s=new Map,n,r,c,l,d,f,p=Pe(o[0]);const u=P=>P[4].id;ke(o,p,V,u);for(let P=0;P<p.length;P+=1){let w=V(o,p,P),g=u(w);s.set(g,i[P]=se(g,w))}let m=o[1]&&re(o),b=o[2]&&ce(o);const S={c:function(){e=v("div"),t=v("div");for(let w=0;w<i.length;w+=1)i[w].c();n=R(),m&&m.c(),r=R(),b&&b.c(),c=te(),h(t,"class","flex flex-col gap-8"),y(t,G,13,4,363),y(e,G,12,0,309)},l:function(w){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(w,g){B(w,e,g),_(e,t);for(let M=0;M<i.length;M+=1)i[M]&&i[M].m(t,null);B(w,n,g),m&&m.m(w,g),B(w,r,g),b&&b.m(w,g),B(w,c,g),l=!0,d||(f=[Ue(be.call(null,e)),H(e,"fetchmore",function(){Ne(o[3])&&o[3].apply(this,arguments)},!1,!1,!1,!1)],d=!0)},p:function(w,[g]){o=w,g&9&&(p=Pe(o[0]),oe(),ke(o,p,V,u),i=xe(i,g,u,1,o,p,s,t,$e,se,null,V),ne()),o[1]?m?g&2&&j(m,1):(m=re(o),m.c(),j(m,1),m.m(r.parentNode,r)):m&&(oe(),I(m,1,1,()=>{m=null}),ne()),o[2]?b?b.p(o,g):(b=ce(o),b.c(),b.m(c.parentNode,c)):b&&(b.d(1),b=null)},i:function(w){if(!l){for(let g=0;g<p.length;g+=1)j(i[g]);j(m),l=!0}},o:function(w){for(let g=0;g<i.length;g+=1)I(i[g]);I(m),l=!1},d:function(w){w&&(F(e),F(n),F(r),F(c));for(let g=0;g<i.length;g+=1)i[g].d();m&&m.d(w),b&&b.d(w),d=!1,Ce(f)}};return k("SvelteRegisterBlock",{block:S,id:le.name,type:"component",source:"",ctx:o}),S}const Ie=o=>o.message;function ot(o,e,t){let{$$slots:i={},$$scope:s}=e;he("FeedsSection_Body",i,[]);let{posts:n}=e,{loading:r}=e,{errors:c}=e,{loadMore:l}=e;o.$$.on_mount.push(function(){n===void 0&&!("posts"in e||o.$$.bound[o.$$.props.posts])&&console.warn("<FeedsSection_Body> was created without expected prop 'posts'"),r===void 0&&!("loading"in e||o.$$.bound[o.$$.props.loading])&&console.warn("<FeedsSection_Body> was created without expected prop 'loading'"),c===void 0&&!("errors"in e||o.$$.bound[o.$$.props.errors])&&console.warn("<FeedsSection_Body> was created without expected prop 'errors'"),l===void 0&&!("loadMore"in e||o.$$.bound[o.$$.props.loadMore])&&console.warn("<FeedsSection_Body> was created without expected prop 'loadMore'")});const d=["posts","loading","errors","loadMore"];return Object.keys(e).forEach(f=>{!~d.indexOf(f)&&f.slice(0,2)!=="$$"&&f!=="slot"&&console.warn(`<FeedsSection_Body> was created with unknown prop '${f}'`)}),o.$$set=f=>{"posts"in f&&t(0,n=f.posts),"loading"in f&&t(1,r=f.loading),"errors"in f&&t(2,c=f.errors),"loadMore"in f&&t(3,l=f.loadMore)},o.$capture_state=()=>
6({fetchMoreAction:be,FeedPost:_e,FeedPostLoader:De,posts:n,loading:r,errors:c,loadMore:l}),o.$inject_state=f=>{"posts"in f&&t(0,n=f.posts),"loading"in f&&t(1,r=f.loading),"errors"in f&&t(2,c=f.errors),"loadMore"in f&&t(3,l=f.loadMore)},e&&"$$inject"in e&&o.$inject_state(e.$$inject),[n,r,c,l]}class Qe extends pe{constructor(e){super(e),ge(this,e,ot,le,me,{posts:0,loading:1,errors:2,loadMore:3}),k("SvelteRegisterComponent",{component:this,tagName:"FeedsSection_Body",options:e,id:le.name})}get posts(){throw new Error("<FeedsSection_Body>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set posts(e){throw new Error("<FeedsSection_Body>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get loading(){throw new Error("<FeedsSection_Body>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set loading(e){throw new Error("<FeedsSection_Body>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get errors(){throw new Error("<FeedsSection_Body>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set errors(e){throw new Error("<FeedsSection_Body>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get loadMore(){throw new Error("<FeedsSection_Body>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set loadMore(e){throw new Error("<FeedsSection_Body>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const E="src/lib/components/Feed/FeedsSection.svelte";function ae(o){let e;function t(r,c){return r[5]?Ke:Je}let i=t(o),s=i(o);const n={c:function(){e=v("h3"),s.c(),h(e,"id",o[4]),h(e,"class","text-brand-blue_ text-gray-500 font-bold text-16 ls:text-20 m-0 flex-1 my-8 mx-6 t:mx-0"),y(e,E,93,8,2274)},m:function(c,l){B(c,e,l),s.m(e,null)},p:function(c,l){i===(i=t(c))&&s?s.p(c,l):(s.d(1),s=i(c),s&&(s.c(),s.m(e,null))),l&16&&h(e,"id",c[4])},d:function(c){c&&F(e),s.d()}};return k("SvelteRegisterBlock",{block:n,id:ae.name,type:"if",source:"(69:4) {#if title}",ctx:o}),n}function Je(o){let e;const t={c:function(){e=N(o[0])},m:function(s,n){B(s,e,n)},p:function(s,n){n&1&&q(e,s[0])},d:function(s){s&&F(e)}};return k("SvelteRegisterBlock",{block:t,id:Je.name,type:"else",source:"(78:12) {:else}",ctx:o}),t}function Ke(o){let e,t;const i={c:function(){e=v("a"),t=N(o[0]),h(e,"href",o[5]),h(e,"class","text-gray-500 cursor-pointer"),y(e,E,98,16,2467)},m:function(n,r){B(n,e,r),_(e,t)},p:function(n,r){r&1&&q(t,n[0]),r&32&&h(e,"href",n[5])},d:function(n){n&&F(e)}};return k("SvelteRegisterBlock",{block:i,id:Ke.name,type:"if",source:"(74:12) {#if fullPageUrl}",ctx:o}),i}function ue(o){let e;function t(r,c){return r[7]==="pending"?ze:Ve}let i=t(o),s=i(o);const n={c:function(){e=v("div"),s.c(),h(e,"class","mb-4 flex items-center gap-2"),y(e,E,107,8,2699)},m:function(c,l){B(c,e,l),s.m(e,null)},p:function(c,l){i===(i=t(c))&&s?s.p(c,l):(s.d(1),s=i(c),s&&(s.c(),s.m(e,null)))},d:function(c){c&&F(e),s.d()}};return k("SvelteRegisterBlock",{block:n,id:ue.name,type:"if",source:"(83:4) {#if canManagePending}",ctx:o}),n}function Ve(o){let e,t,i=je(void 0,o[13])+"",s,n,r,c,l;const d={c:function(){e=v("button"),t=v("span"),s=N(i),n=R(),r=v("i"),h(t,"class","mr-2"),y(t,E,131,20,3743),h(r,"class","fa fa-clock-o"),h(r,"aria-hidden",!0),y(r,E,134,20,3890),h(e,"type","button"),h(e,"class","btn-leo btn-leo-filter"),y(e,E,126,16,3554)},m:function(p,u){B(p,e,u),_(e,t),_(t,s),_(e,n),_(e,r),c||(l=H(e,"click",o[21],!1,!1,!1,!1),c=!0)},p:function(p,u){u&8192&&i!==(i=je(void 0,p[13])+"")&&q(s,i)},d:function(p){p&&F(e),c=!1,l()}};return k("SvelteRegisterBlock",{block:d,id:Ve.name,type:"else",source:"(102:12) {:else}",ctx:o}),d}function ze(o){let e,t,i,s,n,r,c,l=Le({nb:o[9]},o[13])+"",d,f,p;const u={c:function(){e=v("div"),t=v("button"),i=v("span"),i.textContent="Ã",s=R(),n=v("span"),r=v("i"),c=R(),d=N(l),h(i,"aria-hidden",!0),y(i,E,118,24,3170),h(t,"type","button"),h(t,"class","close"),h(t,"aria-label","Fermer"),y(t,E,112,20,2932),h(r,"class","fa fa-clock-o mr-2"),h(r,"aria-hidden",!0),y(r,E,12
61,24,3333),h(n,"class","text-gray-600 font-bold text-sm"),y(n,E,120,20,3260),h(e,"class","rounded-full p-2 hover:bg-gray-500/10 flex items-center gap-2"),y(e,E,109,16,2797)},m:function(b,S){B(b,e,S),_(e,t),_(t,i),_(e,s),_(e,n),_(n,r),_(n,c),_(n,d),f||(p=H(t,"click",o[20],!1,!1,!1,!1),f=!0)},p:function(b,S){S&8704&&l!==(l=Le({nb:b[9]},b[13])+"")&&q(d,l)},d:function(b){b&&F(e),f=!1,p()}};return k("SvelteRegisterBlock",{block:u,id:ze.name,type:"if",source:"(85:12) {#if mode === 'pending'}",ctx:o}),u}function de(o){let e,t,i=(o[3]||Me(void 0,o[13]))+"",s;const n={c:function(){e=v("div"),t=v("a"),s=N(i),h(t,"href",o[5]),h(t,"class","btn btn-lg btn-primary"),y(t,E,142,12,4194),h(e,"class","flex justify-center my-6"),y(e,E,141,8,4141)},m:function(c,l){B(c,e,l),_(e,t),_(t,s)},p:function(c,l){l&8200&&i!==(i=(c[3]||Me(void 0,c[13]))+"")&&q(s,i),l&32&&h(t,"href",c[5])},d:function(c){c&&F(e)}};return k("SvelteRegisterBlock",{block:n,id:de.name,type:"if",source:"(117:4) {#if withButton && nbResults > maxPerPage}",ctx:o}),n}function fe(o){let e,t,i,s,n,r,c=o[0]&&ae(o),l=o[6]&&ue(o);s=new Qe({props:{posts:o[11],loading:o[8],errors:o[10],loadMore:o[15]},$$inline:!0});let d=o[2]&&o[9]>o[1]&&de(o);const f={c:function(){e=v("div"),c&&c.c(),t=R(),l&&l.c(),i=R(),X(s.$$.fragment),n=R(),d&&d.c(),h(e,"class","my-5"),y(e,E,91,0,2229)},l:function(u){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(u,m){B(u,e,m),c&&c.m(e,null),_(e,t),l&&l.m(e,null),_(e,i),W(s,e,null),_(e,n),d&&d.m(e,null),r=!0},p:function(u,[m]){u[0]?c?c.p(u,m):(c=ae(u),c.c(),c.m(e,t)):c&&(c.d(1),c=null),u[6]?l?l.p(u,m):(l=ue(u),l.c(),l.m(e,i)):l&&(l.d(1),l=null);const b={};m&2048&&(b.posts=u[11]),m&256&&(b.loading=u[8]),m&1024&&(b.errors=u[10]),s.$set(b),u[2]&&u[9]>u[1]?d?d.p(u,m):(d=de(u),d.c(),d.m(e,null)):d&&(d.d(1),d=null)},i:function(u){r||(j(s.$$.fragment,u),r=!0)},o:function(u){I(s.$$.fragment,u),r=!1},d:function(u){u&&F(e),c&&c.d(),l&&l.d(),T(s),d&&d.d()}};return k("SvelteRegisterBlock",{block:f,id:fe.name,type:"component",source:"",ctx:o}),f}function nt(o,e,t){let i,s,n,r,c,l,d,f=z,p=()=>(f(),f=Ze(i,a=>t(19,d=a)),i),u;o.$$.on_destroy.push(()=>f());let{$$slots:m={},$$scope:b}=e;he("FeedsSection",m,[]);const{lang:S}=ve();Xe(S,"lang"),Ye(o,S,a=>t(13,u=a));let{author:P}=e,{title:w=null}=e,{maxPerPage:g=5}=e,{withButton:M=!1}=e,{buttonLabel:Q=null}=e,{titleId:J=null}=e,{usePagination:D=!1}=e,{fullPageUrl:K=null}=e,{canManagePending:O=!1}=e,C="published";const Y=ee(Se,{variables:{author:P,page:1,maxPerPage:g,lang:u}}),U=O?ee(Fe,{variables:{author:P,page:1,maxPerPage:g,lang:u}}):null,we=Y.result,Z=U==null?void 0:U.result;function ye(){if(!D||!n||r||n.page>=n.nbPages)return;const a=n.page+1,A=(We,{fetchMoreResult:x})=>{let $=[...We.posts.results,...x.posts.results];return $=Re($,"id"),x.posts.results=$,x};C==="pending"&&U?U.fetchMore({variables:{page:a,maxPerPage:g},updateQuery:A}):Y.fetchMore({variables:{page:a,maxPerPage:g},updateQuery:A})}o.$$.on_mount.push(function(){P===void 0&&!("author"in e||o.$$.bound[o.$$.props.author])&&console.warn("<FeedsSection> was created without expected prop 'author'")});const Ge=["author","title","maxPerPage","withButton","buttonLabel","titleId","usePagination","fullPageUrl","canManagePending"];Object.keys(e).forEach(a=>{!~Ge.indexOf(a)&&a.slice(0,2)!=="$$"&&a!=="slot"&&console.warn(`<FeedsSection> was created with unknown prop '${a}'`)});const He=()=>t(7,C="published"),Te=()=>t(7,C="pending");return o.$$set=a=>{"author"in a&&t(16,P=a.author),"title"in a&&t(0,w=a.title),"maxPerPage"in a&&t(1,g=a.maxPerPage),"withButton"in a&&t(2,M=a.withButton),"buttonLabel"in a&&t(3,Q=a.buttonLabel),"titleId"in a&&t(4,J=a.titleId),"usePagination"in a&&t(17,D=a.usePagination),"fullPageUrl"in a&&t(5,K=a.fullPageUrl),"canManagePending"in a&&t(6,O=a.canManagePending)},o.$capture_state=()=>({FeedPostsQueryDocument:Se,FeedsSection_PendingPostsQueryDocument:Fe,NewsFeedPostFragmentDoc:Be,query:ee,useFragment:Ee,FeedsSection_Body:Qe,uniqBy:Re,getContainer:ve,t:et,lang:S,author:P,title:w,maxPerPage:g,withButton:M,buttonLabel:Q,titleId:J,usePagination:D,fullPageUrl:K,canManagePending:O,mode:C,publishedQuery:Y,pendingQuery:U,publishedResult:we,pendingResult:Z,loadM
6orePosts:ye,pagerInfo:n,loading:r,nbResults:l,errors:c,posts:s,activeResult:i,$activeResult:d,$lang:u}),o.$inject_state=a=>{"author"in a&&t(16,P=a.author),"title"in a&&t(0,w=a.title),"maxPerPage"in a&&t(1,g=a.maxPerPage),"withButton"in a&&t(2,M=a.withButton),"buttonLabel"in a&&t(3,Q=a.buttonLabel),"titleId"in a&&t(4,J=a.titleId),"usePagination"in a&&t(17,D=a.usePagination),"fullPageUrl"in a&&t(5,K=a.fullPageUrl),"canManagePending"in a&&t(6,O=a.canManagePending),"mode"in a&&t(7,C=a.mode),"pagerInfo"in a&&t(18,n=a.pagerInfo),"loading"in a&&t(8,r=a.loading),"nbResults"in a&&t(9,l=a.nbResults),"errors"in a&&t(10,c=a.errors),"posts"in a&&t(11,s=a.posts),"activeResult"in a&&p(t(12,i=a.activeResult))},e&&"$$inject"in e&&o.$inject_state(e.$$inject),o.$$.update=()=>{var a,A;o.$$.dirty&128&&p(t(12,i=C==="pending"&&Z?Z:we)),o.$$.dirty&524288&&t(11,s=Ee(Be,((a=d.data)==null?void 0:a.posts.results)??[])),o.$$.dirty&524288&&t(18,n=(A=d.data)==null?void 0:A.posts.pagerInfo),o.$$.dirty&524288&&t(8,r=d.loading),o.$$.dirty&524288&&t(10,c=d.errors),o.$$.dirty&262144&&t(9,l=(n==null?void 0:n.total)??0)},[w,g,M,Q,J,K,O,C,r,l,c,s,i,u,S,ye,P,D,n,d,He,Te]}class zo extends pe{constructor(e){super(e),ge(this,e,nt,fe,me,{author:16,title:0,maxPerPage:1,withButton:2,buttonLabel:3,titleId:4,usePagination:17,fullPageUrl:5,canManagePending:6}),k("SvelteRegisterComponent",{component:this,tagName:"FeedsSection",options:e,id:fe.name})}get author(){throw new Error("<FeedsSection>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set author(e){throw new Error("<FeedsSection>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get title(){throw new Error("<FeedsSection>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set title(e){throw new Error("<FeedsSection>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get maxPerPage(){throw new Error("<FeedsSection>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set maxPerPage(e){throw new Error("<FeedsSection>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get withButton(){throw new Error("<FeedsSection>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set withButton(e){throw new Error("<FeedsSection>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get buttonLabel(){throw new Error("<FeedsSection>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set buttonLabel(e){throw new Error("<FeedsSection>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get titleId(){throw new Error("<FeedsSection>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set titleId(e){throw new Error("<FeedsSection>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get usePagination(){throw new Error("<FeedsSection>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set usePagination(e){throw new Error("<FeedsSection>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get fullPageUrl(){throw new Error("<FeedsSection>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set fullPageUrl(e){throw new Error("<FeedsSection>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get canManagePending(){throw new Error("<FeedsSection>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set canManagePending(e){throw new Error("<FeedsSection>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}export{zo as default}; 7//# sourceMappingURL=FeedsSection-uJ5JpIrR.js.map
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.