1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e4258cca-f233-462e-b87b-2bcf3381a8f4",e._sentryDebugIdIdentifier="sentry-dbid-e4258cca-f233-462e-b87b-2bcf3381a8f4")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9184],{7301:(e,r,t)=>{t.d(r,{C:()=>a,V:()=>i,getCheckoutFlowSessionContext:()=>o});let a="checkout_flow_id",i="checkout_flow_form_type",o=()=>({flowId:window.sessionStorage.getItem(a)??void 0,formType:window.sessionStorage.getItem(i)??void 0})},7334:(e,r,t)=>{t.d(r,{Ay:()=>b,Mp:()=>h,Qx:()=>p,in:()=>g});var a,i,o,n=t(95155),s=t(69730),l=t.n(s),u=t(98500),d=t.n(u);t(12115);var c=t(64642),m=t(12261),g=((a={}).PRIMARY="primary",a.PRIMARY_OUTLINED="primary-outlined",a.PRIMARY_LINK="primary-link",a.SUCCESS_OUTLINED="success-outlined",a.NEUTRAL_LINK="neutral-link",a.FACEBOOK="facebook",a.X="x",a.WHATSAPP="whatsapp",a.INSTAGRAM="instagram",a.CUSTOM="custom",a),h=((i={}).MEDIUM="medium",i.LARGE="large",i.XL="xl",i),p=((o={}).BUTTON="button",o.LINK="link",o);let f=e=>{let{tagSpecificProps:r,testId:t,buttonId:a,...i}=e;return"link"===r.htmlTag?(0,n.jsx)(d(),{"data-testid":t,...i,href:r.disabled?"#":r.href,target:r.target,prefetch:!!r.prefetch&&!c.D.isInCypressTesting,onClick:e=>{r.disabled||(r?.onClick?.(),e.stopPropagation())}}):(0,n.jsx)("button",{"data-testid":t,onMouseDown:e=>e.preventDefault(),...i,onClick:e=>{m.vF.info("[button] button clicked",{id:a,testId:t}),e.stopPropagation(),r?.onClick?.(e)},disabled:r.disabled,type:r.type||"button"})},b=({style:e="primary",size:r="medium",tagSpecificProps:t,children:a,className:i,testId:o,id:s})=>{let u={"[@media(hover:none)]:active:bg-primary-dark":"primary"===e,"[@media(hover:none)]:active:border-primary-mid":"primary-outlined"===e&&!t.disabled,"[@media(hover:none)]:active:bg-primary-light":"primary-outlined"===e&&!t.disabled,"[@media(hover:none)]:active:border-success-mid":"success-outlined"===e,"[@media(hover:none)]:active:bg-success-light":"success-outlined"===e,"[@media(hover:none)]:active:bg-social-facebook-dark":"facebook"===e,"[@media(hover:none)]:active:bg-social-x-light":"x"===e,"[@media(hover:none)]:active:bg-social-whatsapp-dark":"whatsapp"===e},d={"[@media(hover:hover)]:hover:bg-primary-dark":"primary"===e,"[@media(hover:hover)]:hover:border-primary-mid":"primary-outlined"===e&&!t.disabled,"[@media(hover:hover)]:hover:bg-primary-light":"primary-outlined"===e&&!t.disabled,"[@media(hover:hover)]:hover:border-success-mid":"success-outlined"===e,"[@media(hover:hover)]:hover:bg-success-light":"success-outlined"===e,"[@media(hover:hover)]:hover:bg-social-facebook-dark":"facebook"===e,"[@media(hover:hover)]:hover:bg-social-x-light":"x"===e,"[@media(hover:hover)]:hover:bg-social-whatsapp-dark":"whatsapp"===e};return(0,n.jsx)(f,{buttonId:s,tagSpecificProps:t,testId:o,className:l()("rounded-[4px] font-medium tracking-[2px] uppercase transition-colors cursor-pointer no-underline",{"px-[16px] py-[12px] text-[12px] leading-[16px]":"medium"===r,"px-[24px] py-[20px] text-[12px]":"large"===r,"px-[24px] py-[24px] text-[14px]":"xl"===r,"bg-primary-mid text-white":"primary"===e,"text-primary-mid border-2 border-primary-light bg-white":"primary-outlined"===e,"text-success-mid border-2 border-success-midLight bg-white":"success-outlined"===e,"text-primary-mid bg-transparent":"primary-link"===e,"text-neutral-dark bg-transparent":"neutral-link"===e,"opacity-50 cursor-default":t.disabled,"cursor-pointer":!t.disabled,"bg-social-facebook-light text-white":"facebook"===e,"bg-social-x-dark text-white":"x"===e,"text-white bg-instagramGradient":"instagram"===e,"bg-social-whatsapp-light text-white":"whatsapp"===e,...u,...d},i),children:a})}},13715:(e,r,t)=>{t.d(r,{r:()=>a});let a={CZK:"CZK",EUR:"EUR"}},15069:(e,r,t)=>{t.d(r,{W:()=>a});let a=(0,t(71454).vt)(e=>({toast:null,setToast:r=>e({toast:r})}))},15893:(e,r,t)=>{t.d(r,{vF:()=>s});var a=t(87358);let i=e=>{switch(e?.toLowerCase()){case"debug":return 10;case"info":return 20;case"warn":return 30;case"error":return 40;default:return}},o=i(a.env.LOG_LEVEL)??i(a.env.NEXT_PUBLIC_LOG_LEVEL)??20,n=(e,r,...t)=>{if(e>=o){if(40===e)return void console.error(r,...t);if(30===e)return void console.warn(r,...t);if(10===e)return void console.debug(r,...t);console.info(r,...t)}},s={info:(e,...r)=>n(20,e,...r),debug:(e,...r)=>n(10,e,...r),warn:(e,...r)=>n(30,e,...r),error:(e,...r)=>n(40,e,...r)}},16596:(e,r,t)=>{t.d(r,{N:()=>s,d:()=>l});var a=t(15565),i=t.n(a),o=t(15069),n=t(64642);let s=(e,r={})=>{let t=r.timeout||5e3,a=r?.error&&i()(r.error)&&!n.D.isProd?`${e}: ${String(r.error)}`:e;o.W.setState({toast:{type:"error",message:a,timeout:t}}),setTimeout(()=>
1o.W.setState({toast:null}),t)},l=()=>({showGenericErrorToast:e=>{var r;r={type:"error",message:e},o.W.setState({toast:r}),setTimeout(()=>{o.W.setState({toast:null})},r?.timeout||5e3)}})},21464:(e,r,t)=>{t.d(r,{GA:()=>o,hL:()=>i});var a=t(64642);let i=(...e)=>{let r=e.filter(e=>!!e);return((...e)=>{if(0===e.length)return"";let r=e.filter(e=>e);return 0===r.length?"":1===r.length?r[0]:r.map((e,t)=>{if(0===t)return e.endsWith("/")?e.slice(0,-1):e;if(t===r.length-1)return e.startsWith("/")?e.slice(1):e;let a=e;return a.startsWith("/")&&(a=a.slice(1)),a.endsWith("/")&&(a=a.slice(0,-1)),a}).join("/")})(a.D.redirectUrl,...r)},o=(e,r)=>{let[t,a]=e.split("?"),i=new URLSearchParams(a||"");Object.entries(r).forEach(([e,r])=>{null!=r&&i.set(e,String(r))});let o=i.toString();return o?`${t}?${o}`:t}},33793:(e,r,t)=>{t.d(r,{C:()=>i,z:()=>a});let a=(e,r)=>"string"==typeof e?e:1===r&&e.one?e.one:2===r&&e.few?e.few:e.other??"",i=(e,r)=>{let t=e;for(let[e,a]of Object.entries(r))t=t.split(`{{${e}}}`).join(String(a));return t}},36642:(e,r,t)=>{t.d(r,{g:()=>a});let a={success:"success",failure:"failure"}},40743:(e,r,t)=>{t.d(r,{B:()=>u});var a=t(64412),i=t(13715);let o={canUseGoodHabit:!0,instagramAnimationGifUrl:"/public/images/ig-share-animation.gif",qrCodeAsDefaultPaymentMethodForDesktop:!0,collectionDonationSettings:{isCountryRequired:!1,displayNewLawDisclaimer:!1},timeZone:"Europe/Prague",ownershipNoteTranslationKey:"ownershipNote",organizationDefaultAgreedToShareContact:!1,shareDialogExtraEarnValue:800,country:a.TP.CZECH_REPUBLIC,paymentMethodAmountRanges:{[a.g5.ApplePay]:{min:0,max:1e6},[a.g5.GooglePay]:{min:0,max:1e6},[a.g5.Card]:{min:0,max:1e6},[a.g5.WireTransfer]:{min:0,max:1/0},[a.g5.QrCode]:{min:0,max:1/0},[a.g5.StandingOrder]:{min:0,max:1/0}},minimalAmountForDonorChallengeToView:1e3,fallbackLanguage:a.TM.CZ,currency:i.r.CZK,shouldDisplayProjectFootnoteText:!0,isChatbotEnabled:!0,donationFormCommon:{maxDecimalPlaces:0,tipBreakpointForDefaultValue:4999,donationAmountMinimum:10,donationAmountMaximum:1e7,phoneNumberFieldPlaceholder:"+420XXXXXXXXX",isPrivacyConsentCheckboxSupported:!0},projectOverlay:{largeDonationThreshold:2e3,projectPathSegment:"pribeh"}},n={instagramAnimationGifUrl:"/public/images/ig-share-animation-es.gif",qrCodeAsDefaultPaymentMethodForDesktop:!1,timeZone:"Europe/Madrid",collectionDonationSettings:{isCountryRequired:!1},organizationDefaultAgreedToShareContact:!1,shareDialogExtraEarnValue:32,country:a.TP.SPAIN,isWireTransferHidden:!1,paymentMethodAmountRanges:{[a.g5.ApplePay]:{min:0,max:4699},[a.g5.GooglePay]:{min:0,max:4699},[a.g5.Card]:{min:0,max:4699},[a.g5.WireTransfer]:{min:2e3,max:1/0}},paymentMethodAmountRulesExcludedFormTypes:[a.m$.GoodHabit],minimalAmountForDonorChallengeToView:33,fallbackLanguage:a.TM.ES,currency:i.r.EUR,isChatbotEnabled:!1,shouldDisplayProjectFootnoteText:!1,donationFormCommon:{maxDecimalPlaces:2,tipBreakpointForDefaultValue:199,donationAmountMinimum:1,donationAmountMaximum:399770,phoneNumberFieldPlaceholder:"+34XXXXXXXXX",isPrivacyConsentCheckboxSupported:!0},projectOverlay:{largeDonationThreshold:100,projectPathSegment:"historia"}},s={canUseGoodHabit:!0,instagramAnimationGifUrl:"/public/images/ig-share-animation.gif",qrCodeAsDefaultPaymentMethodForDesktop:!1,timeZone:"Europe/Bratislava",collectionDonationSettings:{isCountryRequired:!0,displayNewLawDisclaimer:!0},organizationDefaultAgreedToShareContact:!0,shareDialogExtraEarnValue:32,minimalAmountForDonorChallengeToView:33,country:a.TP.SLOVAKIA,paymentMethodAmountRanges:{[a.g5.ApplePay]:{min:0,max:4e4},[a.g5.GooglePay]:{min:0,max:4e4},[a.g5.Card]:{min:0,max:4e4},[a.g5.WireTransfer]:{min:0,max:1/0},[a.g5.QrCode]:{min:0,max:1/0},[a.g5.StandingOrder]:{min:0,max:1/0}},fallbackLanguage:a.TM.SK,currency:i.r.EUR,shouldDisplayProjectFootnoteText:!1,isChatbotEnabled:!0,donationFormCommon:{maxDecimalPlaces:2,tipBreakpointForDefaultValue:199,donationAmountMinimum:1,donationAmountMaximum:399770,phoneNumberFieldPlaceholder:"+421XXXXXXXXX",isPrivacyConsentCheckboxSupported:!1},projectOverlay:{largeDonationThreshold:100,projectPathSegment:"pribeh"}};
1var l=t(64642);let u={[a.TP.CZECH_REPUBLIC]:o,[a.TP.SLOVAKIA]:s,[a.TP.SPAIN]:n}[l.D.country]},40752:(e,r,t)=>{t.d(r,{_:()=>a});let a={"user-draft":"user-draft","user-draft-submitted":"user-draft-submitted","user-draft-returned":"user-draft-returned","user-draft-rejected":"user-draft-rejected",draft:"draft",cancelled:"cancelled",scheduled:"scheduled",active:"active",finished:"finished",closed:"closed"}},52823:(e,r,t)=>{t.d(r,{N:()=>a});let a={dobro:"dobro",plus:"plus"}},60181:(e,r,t)=>{t.d(r,{x:()=>a});let a={"user-draft":"user-draft","user-draft-submitted":"user-draft-submitted","user-draft-returned":"user-draft-returned","user-draft-rejected":"user-draft-rejected",draft:"draft",cancelled:"cancelled",scheduled:"scheduled",active:"active",finished:"finished",closed:"closed"}},61159:(e,r,t)=>{t.d(r,{H:()=>a});let a=e=>Number.isFinite(e)?Number((e/100).toPrecision(15)):(console.error(`Error while converting amount in cents - value: "${e}", type: "${typeof e}" to currency: not a finite number`),0)},64412:(e,r,t)=>{t.d(r,{BV:()=>h,JE:()=>v,MA:()=>f,P5:()=>C,TM:()=>_,TP:()=>T,c1:()=>S,g5:()=>I,iR:()=>E,m$:()=>p,nN:()=>y,q2:()=>b});var a,i,o,n,s,l,u,d,c,m,g,h=((a={}).LOGIN="login",a.ADMIN="admin",a.PROJECT_ADMIN="admin/project",a.LOGOUT="logout",a.Cookies="cookies",a),p=((i={}).Single="single",i.LongTerm="long-term",i.Commercial="commercial",i.GoodHabit="good-habit",i),f=((o={}).COPYLINK="copylink",o.INSTAGRAM="instagram",o.FACEBOOK="facebook",o.TWITTER="twitter",o.LINKEDIN="linkedin",o.EMAIL="email",o.WHATSAPP="whatsapp",o.OTHER="other",o),b=((n={}).SOCIAL_SHARE="socialshare",n.SHARE_BUTTON="share_button",n),v=((s={}).SHARE_BUTTON="share_button",s),E=((l={}).NextJs="Next.js",l),y=((u={}).SINGLE_AUTHENTICATED_USER="single_authenticated_user",u.SINGLE_UNAUTHENTICATED_USER="single_unauthenticated_user",u.GOOD_HABIT_AUTHENTICATED_USER="good_habit_authenticated_user",u.GOOD_HABIT_UNAUTHENTICATED_USER="good_habit_unauthenticated_user",u.COMMERCIAL_PROJECT="commercial_project",u),C=((d={}).FOOTER="footer",d.SUBSCRIPTION_BAR="subscription_bar",d),I=((c={}).GooglePay="googlepay",c.ApplePay="applepay",c.Card="card",c.WireTransfer="wire-transfer",c.QrCode="qr-code",c.StandingOrder="standing-order",c),_=((m={}).CZ="cs",m.EN="en",m.ES="es",m.SK="sk",m),T=((g={}).CZECH_REPUBLIC="CZ",g.SLOVAKIA="SK",g.SPAIN="ES",g);let S={CZ:"cs",SK:"sk",ES:"es"}},64642:(e,r,t)=>{t.d(r,{D:()=>b});var a=t(64412),i=t(81371),o=t(87358);let n=!!window.Cypress,s=(0,i.UB)(),l=s===i.eW.PrCi,u=s===i.eW.Local,d=s===i.eW.Prod,c=s===i.eW.Dev||s===i.eW.QaDev,m=[i.eW.Dev,i.eW.QaDev,i.eW.Prod].includes(s),g=(0,i.tj)({value:"https://donio.sk",envName:"NEXT_PUBLIC_API_BASE_URL",defaultValue:"https://doniodev.cz",required:!l}),h=(0,i.uB)("true","NEXT_PUBLIC_MIXPANEL_ENABLED",!1),p={[a.TP.CZECH_REPUBLIC]:":originUrl/pribeh/:numericId/other/poster.html",[a.TP.SLOVAKIA]:":originUrl/pribeh/:numericId/other/poster.html",[a.TP.SPAIN]:":originUrl/historia/:numericId/other/poster.html"},f=(0,i.uB)("true","NEXT_PUBLIC_GTM_ENABLED"),b={mixPanelToken:(0,i.Au)({envName:"NEXT_PUBLIC_MIXPANEL_TOKEN",required:h,value:"979df67e7fdabf3492eac5db3235c65a"}),gtmID:(0,i.Au)({value:"GTM-NDJSQMS",envName:"NEXT_PUBLIC_GTM_ID",required:f}),cookiebotId:(0,i.Au)({value:"66a9a021-39b6-44b0-a028-e35527371deb",envName:"NEXT_PUBLIC_COOKIEBOT_ID",required:!l&&!u}),sentryDsn:(0,i.Au)({value:"https://ac4c90b096671aacd390ebca89f28c59@o4508800568131584.ingest.de.sentry.io/4508800569507920",envName:"NEXT_PUBLIC_SENTRY_DSN",required:m}),sentryAuthToken:(0,i.Au)({envName:"NEXT_PUBLIC_SENTRY_AUTH_TOKEN",required:m,value:"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"}),fbAppId:(0,i.Au)({envName:"NEXT_PUBLIC_FB_APP_ID",value:"400108838337227",required:m}),businessEnv:s,country:(0,i.xN)({value:"SK",enumValues:Object.values(a.TP),envName:"NEXT_PUBLIC_COUNTRY",defaultValue:a.TP.CZECH_REPUBLIC,optionalFor:[i.eW.Local,i.eW.PrCi]}),publicApiBaseUrl:g,amioChannelId:(0,i.Au)({envName:"NEXT_PUBLIC_AMIO_CHANNEL_ID",value:"7188513137133110411",required:m}),getPosterPreviewUrl:(e,r)=>p[r].replace(":numericId",`${e}
1`).replace(":originUrl",g),redirectUrl:(0,i.tj)({value:"https://donio.sk",envName:"NEXT_PUBLIC_REDIRECT_URL",required:!l,defaultValue:"http://localhost:3000"}),isMixpanelEnabled:h,isMixpanelInDebugMode:(0,i.uB)(o.env.NEXT_PUBLIC_MIXPANEL_DEBUG,"NEXT_PUBLIC_MIXPANEL_DEBUG"),isGtmEnabled:f,isAnalyticInDebugMode:(0,i.uB)(o.env.NEXT_PUBLIC_IS_ANALYTIC_IN_DEBUG_MODE,"NEXT_PUBLIC_IS_ANALYTIC_IN_DEBUG_MODE"),isInCypressTesting:n||(0,i.uB)(o.env.NEXT_PUBLIC_IS_IN_CYPRESS_TESTING,"NEXT_PUBLIC_IS_IN_CYPRESS_TESTING",!1),isPrCi:l,isProd:d,isDev:c,isLocal:u}},66494:(e,r,t)=>{t.d(r,{$g:()=>l,De:()=>u,ZV:()=>s});var a=t(64412),i=t(40743),o=t(61159),n=t(12261);let s=(e,r="cs-CZ")=>{try{return e.toLocaleString(r,{maximumFractionDigits:0})}catch(t){return console.error(t,e,r),(0,n.Cp)(t,{extra:{function:"formatNumber",value:e,language:r}}),e.toString()}},l=(e,r)=>{let{currency:t,fractionDigits:o,locale:s}="number"==typeof r?{currency:i.B.currency,fractionDigits:r,locale:a.TM.CZ}:{currency:r?.currency??i.B.currency,fractionDigits:r?.fractionDigits??0,locale:r?.locale??a.TM.CZ};try{return e.toLocaleString(s,{style:"currency",currency:t,maximumFractionDigits:o,minimumFractionDigits:0})}catch(r){return(0,n.Cp)(r,{extra:{function:"formatPrice",value:e}}),console.error("Error in formatPrice:",r),e.toString()}},u=(e,r)=>{try{let t=(0,o.H)(e);return l(t,r)}catch(r){return(0,n.Cp)(r,{extra:{function:"formatPriceInCents",amountInCents:e}}),console.error("Error in formatPriceInCents:",r),e.toString()}}},70392:(e,r,t)=>{t.d(r,{f:()=>n});var a=t(73321),i=t(64412),o=t(40743);let n=()=>"en"===(0,a.useSearchParams)().get("lang")?i.TM.EN:o.B.fallbackLanguage},71454:(e,r,t)=>{t.d(r,{KU:()=>i,Zr:()=>o,vt:()=>n});var a=t(12115);function i(e,r){return()=>{let t=e();return{getItem:e=>{let a=t.getItem(e);if(null===a)return null;try{return JSON.stringify(JSON.parse(a,r?.reviver))}catch{return a}},setItem:(e,a)=>{try{let i=JSON.parse(a);t.setItem(e,JSON.stringify(i,r?.replacer))}catch{t.setItem(e,a)}}}}}function o(e,r){return(t,a,i)=>{let o=r.storage?.()??localStorage,n={};try{let e=o.getItem(r.name);if(e){let r=JSON.parse(e);n=r.state??r}}catch{}let s=e(e=>{t(e);try{o.setItem(r.name,JSON.stringify({state:a()}))}catch{}},a,i);return i.setServerState(s),{...s,...n}}}function n(e){let r=e=>{let r,t,i,o=(i=new Set,{getState:()=>t,setState:e=>{let r="function"==typeof e?e(t):e;t={...t,...r},i.forEach(e=>e())},subscribe:e=>(i.add(e),()=>i.delete(e))}),n={...o,setServerState:e=>{r=e}},s=e(o.setState,o.getState,n);function l(e){let t="function"==typeof e?e:e=>e;return(0,a.useSyncExternalStore)(o.subscribe,()=>t(o.getState()),()=>t(r??o.getState()))}return o.setState(s),l.getState=o.getState,l.setState=o.setState,l.subscribe=o.subscribe,l};return e?r(e):r}},81371:(e,r,t)=>{t.d(r,{Au:()=>d,UB:()=>n,eW:()=>o,tj:()=>u,uB:()=>s,xN:()=>l});var a,i=t(87358),o=((a={}).Prod="prod",a.Dev="dev",a.Local="local",a.PrCi="PR-CI",a.QaDev="QA-DEV",a);let n=()=>{let e="prod";if(!e&&"true"===i.env.CI)return"PR-CI";if(Object.values(o).includes(e))return e;throw Error(`Env variable NEXT_PUBLIC_BUSINESS_ENV with value: ${e} is not a valid NodeEnv`)},s=(e,r,t)=>{if(!["true","false"].includes(e)){if(!t&&!e)return!1;throw Error(`Env variable ${r} of type boolean has invalid value ${e}`)}return"true"===e},l=({defaultValue:e,enumValues:r,envName:t,value:a,optionalFor:i,requiredFor:o})=>{let s=n();if(!a){if(i&&!i.includes(s))throw Error(`Env variable ${t} is optional for ${i} but current environment is ${s}`);if(o&&o.includes(s))throw Error(`Env variable ${t} is required for ${o} but current environment is ${s}`);return e}if(!r.includes(a))throw Error(`Env variable ${t} with value: ${a} is not a valid enum value. Valid values are: ${r}`);return a},u=({value:e,envName:r,required:t,defaultValue:a})=>{if(!e){if(!t)return a||"";throw Error(`Env variable ${r} of type url is missing`)}try{return new URL(e),e}catch{throw Error(`Env variable ${r} with value: ${e} is not a valid url`)}},d=({envName:e,value:r,required:t,defaultValue:a})=>{if(!r){if(t)throw Error(`Env variable ${e} of type string is missing`);return a||void 0}return r}}}]);
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.