1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[821],{86213(e,t,r){r(52675),r(89463),r(2259),r(23792),r(2892),r(59904),r(84185),r(26099),r(3362),r(47764),r(62953);var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function u(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(r(89073)),u=a(r(1549)),c=r(30619),s=r(56772);t.default={initLoadMoreProjects:function(e){"scrollRestoration"in history&&(history.scrollRestoration="manual");var t=document.querySelector(".js-load-more-projects"),r=(0,c.getByQuerySelector)(".js-project-cards"),a=e?"loadedPlusProjects":"loadedDobroProjects",l=a+"Page",f=a+"Button",d=a+"Position";window.addEventListener("scroll",(0,i.default)((function(){sessionStorage.setItem(d,String(window.scrollY))}),100));var p,g;if((p=sessionStorage.getItem(a))&&r.insertAdjacentHTML("beforeend",p),(g=sessionStorage.getItem(d))&&window.scrollTo(0,Number(g)),t){"hidden"===sessionStorage.getItem(f)?t.classList.add("u-hidden"):t.addEventListener("click",(function(){y()}));var h=null!==sessionStorage.getItem(l)?Number(sessionStorage.getItem(l)):1,y=function(){return n(void 0,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return u.default.loaderStart(t),h++,[4,(0,s.loadMoreProjects)(e,h)];case 1:return n=o.sent(),r.insertAdjacentHTML("beforeend",n.data.htmlProjects),i=sessionStorage.getItem(a)||"",i+=n.data.htmlProjects,sessionStorage.setItem(a,i),sessionStorage.setItem(l,String(h)),n.data.isLastPage&&(t.classList.add("u-hidden"),sessionStorage.setItem(f,"hidden")),u.default.loaderClose(t),[2]}}))}))}}}}},56772(e,t,r){r(52675),r(89463),r(2259),r(23792),r(23288),r(59904),r(84185),r(26099),r(3362),r(38781),r(47764),r(62953);var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function u(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}
1,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.loadMoreProjects=void 0;var i=a(r(57009)),u=r(98922),c=r(95673);t.loadMoreProjects=function(e,t){return n(void 0,void 0,Promise,(function(){var r;return o(this,(function(n){return r=e?(0,c.createUrl)(u.LOAD_MORE_PLUS_PROJECTS,{page:t.toString()}):(0,c.createUrl)(u.LOAD_MORE_DOBRO_PROJECTS,{page:t.toString()}),[2,i.default.get(r)]}))}))}},98922(e,t,r){r(84185),Object.defineProperty(t,"__esModule",{value:!0}),t.LOAD_MORE_SUBPROJECT_DONATIONS=t.LOAD_MORE_DONATIONS=t.LOAD_MORE_PLUS_PROJECTS=t.LOAD_MORE_DOBRO_PROJECTS=void 0;var n=r(48772);t.LOAD_MORE_DOBRO_PROJECTS="".concat(n.BASE_API_PATH,"/load-more-projects/dobro/:page"),t.LOAD_MORE_PLUS_PROJECTS="".concat(n.BASE_API_PATH,"/load-more-projects/plus/:page"),t.LOAD_MORE_DONATIONS="".concat(n.BASE_API_PATH,"/load-more-donations/:page/:projectId"),t.LOAD_MORE_SUBPROJECT_DONATIONS="".concat(n.BASE_API_PATH,"/load-more-donations/:page/:projectId/:subprojectId/")},7329(e,t,r){r(84185);var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=void 0;var o=n(r(30973)),a=n(r(96498)),i=r(3767),u=function(){function e(e,t,r,n){this.data=e,this.flashMessageStore=t,this.donioDataProvider=r,this.translator=n}return e.prototype.set=function(e,t){this.data[e]=t},e}();t.default=u;t.createApp=function(e,t){t(new u(e,new i.FlashMessageStore,new o.default,new a.default))}},30973(e,t,r){r(74423),r(64346),r(84185),r(79432),r(16034),r(21699),Object.defineProperty(t,"__esModule",{value:!0});var n=r(32018),o=r(24127),a=r(30619),i=function(){var e=this;this.getTipsPercentageTreshold=function(){if(e.applicationLanguage===n.ApplicationLanguage.CS)return 4e3;if(e.applicationLanguage===n.ApplicationLanguage.SK)return 200;throw new Error("Unhandled application language")},this.getCurrency=function(){var e=(0,a.getByQuerySelector)("body").getAttribute("data-donio-currency");if((0,o.assertNotNull)(e,"Currency cannot be null"),!Object.values(n.Currency).includes(e))throw new Error('Invalid currency "'.concat(e,'"'));return e},this.getCurrencySymbol=function(){var e=(0,a.getByQuerySelector)("body").getAttribute("data-donio-currency-symbol");if((0,o.assertNotNull)(e,"Currency symbol cannot be null"),!Object.values(n.CurrencySymbol).includes(e))throw new Error('Invalid currency symbol "'.concat(e,'"'));return e},this.getApplicationLanguage=function(){var e=(0,a.getByQuerySelector)("body").getAttribute("data-donio-application-language");if((0,o.assertNotNull)(e,"Application language cannot be null"),!Object.values(n.ApplicationLanguage).includes(e))throw new Error('Invalid application language "'.concat(e,'"'));return e},this.getUserid=function(){var e=(0,a.getByQuerySelector)("body");if(!e.hasAttribute("data-user-id"))return null;var t=e.getAttribute("data-user-id");return(0,o.assertNotNull)(t,"User ID cannot be null"),t},this.getMixpanelData=function(){var e=(0,a.getByQuerySelector)("body").getAttribute("data-mixpanel");if(null===e)return{};var t=JSON.parse(e);return Array.isArray(t)?{}:t},this.applicationLanguage=this.getApplicationLanguage(),this.currency=this.getCurrency(),this.currencySymbol=this.getCurrencySymbol(),this.userId=this.getUserid(),this.mixpanelData=this.getMixpanelData()};t.default=i},32018(e,t,r){var n,o,a;r(84185),Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationLanguage=t.Currency=t.CurrencySymbol=void 0,function(e){e.EUR="â¬",e.CZK="KÄ"}(n||(t.CurrencySymbol=n={})),function(e){e.EUR="EUR",e.CZK="CZK"}(o||(t.Currency=o={})),function(e){e.CS="cs",e.SK="sk",e.ES="es"}(a||(t.ApplicationLanguage=a={}))},95673(e,t,r){r(52675),r(89463),r(2259),r(23792),r(62062),r(84185),r(5506),r(26099),r(27495),r(47764),r(25440),r(62953);var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i};
1Object.defineProperty(t,"__esModule",{value:!0}),t.createUrl=void 0;t.createUrl=function(e,t){var r=e;return Object.entries(t).map((function(e){var t=n(e,2),o=t[0],a=t[1];r=r.replace(":".concat(o),a)})),r}},89073(e,t,r){r(84185),r(76031),Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var r;return function(){for(var n=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];clearTimeout(r),r=setTimeout((function(){return e.apply(n,o)}),t)}}},23167(e,t,r){var n=r(94901),o=r(20034),a=r(52967);e.exports=function(e,t,r){var i,u;return a&&n(i=t.constructor)&&i!==r&&o(u=i.prototype)&&u!==r.prototype&&a(e,u),e}},79472(e,t,r){var n,o=r(44576),a=r(18745),i=r(94901),u=r(84215),c=r(82839),s=r(67680),l=r(22812),f=o.Function,d=/MSIE .\./.test(c)||"BUN"===u&&((n=o.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return d?function(n,o){var u=l(arguments.length,1)>r,c=i(n)?n:f(n),d=u?s(arguments,r):[],p=u?function(){a(c,this,d)}:c;return t?e(p,o):e(p)}:e}},43802(e,t,r){var n=r(79504),o=r(67750),a=r(655),i=r(47452),u=n("".replace),c=RegExp("^["+i+"]+"),s=RegExp("(^|[^"+i+"])["+i+"]+$"),l=function(e){return function(t){var r=a(o(t));return 1&e&&(r=u(r,c,"")),2&e&&(r=u(r,s,"$1")),r}};e.exports={start:l(1),end:l(2),trim:l(3)}},31240(e,t,r){var n=r(79504);e.exports=n(1.1.valueOf)},47452(e){e.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},64346(e,t,r){r(46518)({target:"Array",stat:!0},{isArray:r(34376)})},62062(e,t,r){var n=r(46518),o=r(59213).map;n({target:"Array",proto:!0,forced:!r(70597)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},23288(e,t,r){var n=r(79504),o=r(36840),a=Date.prototype,i="Invalid Date",u="toString",c=n(a.toString),s=n(a.getTime);String(new Date(NaN))!==i&&o(a,u,(function(){var e=s(this);return e==e?c(this):i}))},2892(e,t,r){var n=r(46518),o=r(96395),a=r(43724),i=r(44576),u=r(19167),c=r(79504),s=r(92796),l=r(39297),f=r(23167),d=r(1625),p=r(10757),g=r(72777),h=r(79039),y=r(38480).f,v=r(77347).f,b=r(24913).f,_=r(31240),S=r(43802).trim,m="Number",O=i.Number,A=u.Number,I=O.prototype,E=i.TypeError,w=c("".slice),P=c("".charCodeAt),N=function(e){var t=g(e,"number");return"bigint"==typeof t?t:j(t)},j=function(e){var t,r,n,o,a,i,u,c,s=g(e,"number");if(p(s))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=S(s),43===(t=P(s,0))||45===t){if(88===(r=P(s,2))||120===r)return NaN}else if(48===t){switch(P(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(i=(a=w(s,2)).length,u=0;u<i;u++)if((c=P(a,u))<48||c>o)return NaN;return parseInt(a,n)}return+s},M=s(m,!O(" 0o1")||!O("0b1")||O("+0x1")),T=function(e){return d(I,e)&&h((function(){_(e)}))},L=function(e){var t=arguments.length<1?0:O(N(e));return T(this)?f(Object(t),this,L):t};L.prototype=I,M&&!o&&(I.constructor=L),n({global:!0,constructor:!0,wrap:!0,forced:M},{Number:L});var R=function(e,t){for(var r,n=a?y(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)l(t,r=n[o])&&!l(e,r)&&b(e,r,v(t,r))};o&&A&&R(u.Number,A),(M||o)&&R(u.Number,O)},5506(e,t,r){var n=r(46518),o=r(32357).entries;n({target:"Object",stat:!0},{entries:function(e){return o(e)}})},79432(e,t,r){var n=r(46518),o=r(48981),a=r(71072);n({target:"Object",stat:!0,forced:r(79039)((function(){a(1)}))},{keys:function(e){return a(o(e))}})},38781(e,t,r){var n=r(10350).PROPER,o=r(36840),a=r(28551),i=r(655),u=r(79039),c=r(61034),s="toString",l=RegExp.prototype,f=l.toString,d=u((function(){return"/a/b"!==f.call({source:"a",flags:"b"})})),p=n&&f.name!==s;(d||p)&&o(l,s,(function(){var e=a(this);return"/"+i(e.source)+"/"+i(c(e))}),{unsafe:!0})},15575(e,t,r){var n=r(46518),o=r(44576),a=r(79472)(o.setInterval,!0);n({global:!0,bind:!0,forced:o.setInterval!==a},{setInterval:a})},24599(e,t,r){var n=r(46518),o=r(44576),a=r(79472)(o.setTimeout,!0);n({global:!0,bind:!0,forced:o.setTimeout!==a},{setTimeout:a})},76031(e,t,r){r(15575),r(24599)}}]);
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.