1(function(){var t={604:function(t,e,n){"use strict";var r=n(3751),o=n(810),a=n(5220),i=n(641),u=n(33),c={class:"thank-you-page"},s={class:"hero"},l={class:"contain"},d={class:"page-title"},f={key:0,class:"contain newsletter-instructions"},p=["innerHTML"];function m(t,e,n,r,o,a){var m=(0,i.g2)("SocialShare"),h=(0,i.g2)("ThankYouCampaigns"),y=(0,i.g2)("ThankYouGalleries");return(0,i.uX)(),(0,i.CE)("div",c,[(0,i.Lk)("header",s,[(0,i.Lk)("div",{class:"image",style:(0,u.Tr)({backgroundImage:"url(".concat(a.imageSrc,")")})},null,4),(0,i.Lk)("div",l,[(0,i.Lk)("div",d,[(0,i.Lk)("h1",null,[(0,i.Lk)("mark",null,(0,u.v_)(a.titleText)+" "+(0,u.v_)(a.forename),1)]),(0,i.Lk)("h3",null,[(0,i.Lk)("mark",null,(0,u.v_)(a.formattedMsg),1)])])])]),a.newsletter?((0,i.uX)(),(0,i.CE)("div",f,[(0,i.Lk)("div",{innerHTML:t.$t("thankYou.newletter_instructions")},null,8,p)])):(0,i.Q3)("",!0),(0,i.bF)(m),(0,i.bF)(h),(0,i.bF)(y)])}var h=n(953);function y(t,e){return S(t)||_(t,e)||b(t,e)||v()}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(t,e){if(t){if("string"==typeof t)return g(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function _(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}function S(t){if(Array.isArray(t))return t}function k(t){return t.replace(/[A-Z]/g,function(t){return"_".concat(t.toLowerCase())})}function A(t){return Object.fromEntries(Object.entries(t).map(function(t){var e=y(t,2),n=e[0],r=e[1];return[k(n),r]}))}var P=(0,o.nY)("donation",{namespaced:!0,state:function(){return{reference:null,type:"monthly",amount:null,forename:null,surname:null,email:null,phone:"",currency:null,street:null,zip:null,city:null,state:"",country:"none",giftaid:!1,giftDonation:null,newsletter:!1,tax:{idType:"none",idNumber:null,taxNumber:null},utms:{},details:{},gatewayId:null}},getters:{currentDonation:function(t){return{reference:t.reference,type:t.type,amount:t.amount,forename:t.forename,surname:t.surname,email:t.email,phone:t.phone,currency:t.currency,street:t.street,zip:t.zip,city:t.city,state:t.state,country:t.country,giftaid:t.giftaid,giftDonation:t.giftDonation,newsletter:t.newsletter,tax:t.tax,utms:t.utms,details:t.details,gatewayId:t.gatewayId}},donationParams:function(t){return{reference:t.reference,type:t.type,amount:t.amount,forename:t.forename,surname:t.surname,email:t.email,phone:t.phone,currency:t.currency,street:t.street,zip:t.zip,city:t.city,state:t.state,country:t.country,giftaid:t.giftaid,gift_donation:t.giftDonation,newsletter:t.newsletter,tax:A(t.tax),utms:t.utms,details:t.details,gateway_id:t.gatewayId}}},actions:{setReference:function(t){this.reference=t},setType:function(t){this.type=t},setAmount:function(t){this.amount=t},setForename:function(t){this.forename=t},setSurname:function(t){this.surname=t},setEmail:function(t){this.email=t},setPhone:function(t){this.phone=t},setCurrency:function(t){this.currency=t},setStreet:function(t){this.street=t},setZip:function(t){this.zip=t},setCity:function(t){this.city=t},setState:function(t){this.state=t},setCountry:function(t){this.country=t},setGiftaid:function(t){this.giftaid=t},setGiftDonation:function(t){this.giftDonation=t},setNewsletter:function(t){this.newsletter=t},setUtms:function(t){this.utms=t},setTax:function(t){this.tax=t},setDetails:function(t){this.details=t},setGatewayId:function(t){this.gatewayId=t},reset:function(){this.reference=null,this.type="monthly",this.amount=null,this.forename=null,this.surname=null,this.email=null,this.phone=null,this.currency=null,this.street=null,this.zip=null,this.city=null,this.state=null,this.country="none",this.giftaid=!1,this.giftDonation=null,this.newsletter=null,this.utms={},this.tax={idType:"none",idNumber:null,taxNumber:null},this.details={},this.gatewayId=null}}}),E=n(9),L=(0,o.nY)("l10n",{namespaced:!0,state:function(){return{current:null,loadedLocations:{}}},getters:{},actions:{addLocation:function(t){var e=t.key,n=t.locationData;this.loadedLocations[e]=Object.assign({},n,{key:e})},set:function(t){this.current=this.loadedLocations[t]},setCurrentLocation:function(t){this.current=t},change:function(t){var e=this,r=null;return r=this.loadedLocations[t]?Promise.resolve(t):n(1845)("./".concat(t)).then(function(t){return t.default}).then(function(n){return e.addLocation({key:t,locationData:n}),t}),r.then(function(t){return e.set(t)})}}}),C=n(4291),w=n.n(C),T={class:"share"},F={class:"container contain"},O={class:"share"},$={class:"links"},j=["href"],I=["aria-label","src","alt","title"],D={key:0,class:"add-to-clipboard"},V=["title"],R=["aria-label","src","alt","title"];function N(t,e,n,r,o,a){return(0,i.uX)(),(0,i.CE)("section",T,[(0,i.Lk)("div",F,[(0,i.Lk)("div",O,[(0,i.Lk)("h3",null,(0,u.v_)(t.$t("share.title")),1),(0,i.Lk)("div",$,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(Object.keys(t.$tm("share.socialMedia")),function(e){return(0,i.uX)(),(0,i.CE)("div",{key:e,class:(0,u.C4)("".concat(e,"-share"))},[(0,i.Lk)("a",{href:t.$t("share.socialMedia.".concat(e,".url"))},[(0,i.Lk)("img",{"aria-label":t.$t("share.socialMedia.".concat(e,".label")),class:(0,u.C4)(e),src:t.$t("share.socialMedia.".concat(e,".imagePath")),alt:t.$t("share.socialMedia.".concat(e,".label")),title:t.$t("share.socialMedia.".concat(e,".label"))},null,10,I)],8,j)],2)}),128)),a.canCopy?((0,i.uX)(),(0,i.CE)("div",D,[(0,i.Lk)("a",{onClick:e[0]||(e[0]=function(){return a.addToClipboard&&a.addToClipboard.apply(a,arguments)}),title:t.$t("share.canonicalUrl")},[(0,i.Lk)("img",{"aria-label":t.$t("share.copyToClipboard.label"),class:(0,u.C4)({copied:r.copied}),src:t.$t("share.copyToClipboard.imagePath"),alt:t.$t("share.copyToClipboard.label"),title:t.$t("share.copyToClipboard.label")},null,10,R)],8,V)])):(0,i.Q3)("",!0)])])])])}function U(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return x(s,"_invoke",function(n,r,o){var a,u,c,s=0,l=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,u=0,c=t,f.n=n,i}};function p(n,r){for(u=n,c=r,e=0;!d&&s&&!o&&e<l.length;e++){var o,a=l[e],p=f.p,m=a[2];n>3?(o=m===r)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<m&&(
1o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,u=0))}if(o||n>1)return i;throw d=!0,r}return function(o,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,m),u=l,c=m;(e=u<2?t:c)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,c)):f.n=c:f.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(d=f.n<0)?c:n.call(r,f))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:d}}}(n,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(x(e={},r,function(){return this}),e),d=s.prototype=u.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,x(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=s,x(d,"constructor",s),x(s,"constructor",c),c.displayName="GeneratorFunction",x(s,o,"GeneratorFunction"),x(d),x(d,o,"Generator"),x(d,r,function(){return this}),x(d,"toString",function(){return"[object Generator]"}),(U=function(){return{w:a,m:f}})()}function x(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}x=function(t,e,n,r){function a(e,n){x(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},x(t,e,n,r)}function M(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Y(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(t){M(a,r,o,i,u,"next",t)}function u(t){M(a,r,o,i,u,"throw",t)}i(void 0)})}}var G={name:"SocialShare",setup:function(){var t=(0,h.KR)(!1);return{copied:t}},methods:{addToClipboard:function(){var t=this;return Y(U().m(function e(){return U().w(function(e){while(1)switch(e.n){case 0:return t.copied=!t.copied,e.n=1,t.$clipboard.writeText(t.$t("share.canonicalUrl"));case 1:return e.a(2)}},e)}))()}},computed:{canCopy:function(){return!!this.$clipboard}}},X=n(6262);const K=(0,X.A)(G,[["render",N],["__scopeId","data-v-43152625"]]);var q=K,H={class:"campaigns"},B={class:"container contain"},W={class:"side-by-side"},Q={class:"card-deck general-shadowed tall-poppy"},z=["href"],Z=["src"],J={class:"card-body"},tt={class:"card-title"},et=["href"],nt=["src"],rt={class:"card-body"},ot={class:"card-title"},at=["href"],it=["src"],ut={class:"card-body"},ct={class:"card-title"},st=["href"],lt=["src"],dt={class:"card-body"},ft={class:"card-title"};function pt(t,e){return(0,i.uX)(),(0,i.CE)("section",H,[(0,i.Lk)("div",B,[(0,i.Lk)("header",W,[(0,i.Lk)("h3",null,(0,u.v_)(t.$t("thankYou.campaigns.header.title")),1),(0,i.Lk)("div",null,[(0,i.Lk)("p",null,(0,u.v_)(t.$t("thankYou.campaigns.header.note")),1)])]),(0,i.Lk)("div",Q,[(0,i.Lk)("a",{class:"card",href:t.$t("thankYou.campaigns.cards.conservation.cta_link"),target:"_blank"},[(0,i.Lk)("img",{class:"card-img-top image-cap",src:t.$t("thankYou.campaigns.cards.conservation.img_src")},null,8,Z),(0,i.Lk)("div",J,[(0,i.Lk)("h4",tt,(0,u.v_)(t.$t("thankYou.campaigns.cards.conservation.title")),1),(0,i.Lk)("p",null,(0,u.v_)(t.$t("thankYou.campaigns.cards.conservation.content")),1)])],8,z),(0,i.Lk)("a",{class:"card",href:t.$t("thankYou.campaigns.cards.uncontacted.cta_link"),target:"_blank"},[(0,i.Lk)("img",{class:"card-img-top image-cap",src:t.$t("thankYou.campaigns.cards.uncontacted.img_src")},null,8,nt),(0,i.Lk)("div",rt,[(0,i.Lk)("h4",ot,(0,u.v_)(t.$t("thankYou.campaigns.cards.uncontacted.title")),1),(0,i.Lk)("p",null,(0,u.v_)(t.$t("thankYou.campaigns.cards.uncontacted.content")),1)])],8,et),(0,i.Lk)("a",{class:"card",href:t.$t("thankYou.campaigns.cards.tribal_voice.cta_link"),target:"_blank"},[(0,i.Lk)("img",{class:"card-img-top image-cap",src:t.$t("thankYou.campaigns.cards.tribal_voice.img_src")},null,8,it),(0,i.Lk)("div",ut,[(0,i.Lk)("h4",ct,(0,u.v_)(t.$t("thankYou.campaigns.cards.tribal_voice.title")),1),(0,i.Lk)("p",null,(0,u.v_)(t.$t("thankYou.campaigns.cards.tribal_voice.content")),1)])],8,at),t.$tm("thankYou.campaigns.cards.factory_schools.cta_link")[0]?((0,i.uX)(),(0,i.CE)("a",{key:0,class:"card",href:t.$t("thankYou.campaigns.cards.factory_schools.cta_link"),target:"_blank"},[(0,i.Lk)("img",{class:"card-img-top image-cap",src:t.$t("thankYou.campaigns.cards.factory_schools.img_src")},null,8,lt),(0,i.Lk)("div",dt,[(0,i.Lk)("h4",ft,(0,u.v_)(t.$t("thankYou.campaigns.cards.factory_schools.title")),1),(0,i.Lk)("p",null,(0,u.v_)(t.$t("thankYou.campaigns.cards.factory_schools.content")),1)])],8,st)):(0,i.Q3)("",!0)])])])}const mt={},ht=(0,X.A)(mt,[["render",pt],["__scopeId","data-v-6d661f6f"]]);var yt=ht,vt={class:"galleries"},bt={class:"container contain"},gt={class:"side-by-side"},_t={class:"card-deck general-shadowed black"},St=["href"],kt=["src"],At={class:"card-body"},Pt={class:"card-title"},Et=["href"],Lt=["src"],Ct={class:"card-body"},wt={class:"card-title"},Tt=["innerHTML"],Ft=["href"],Ot=["src"],$t={class:"card-body"},jt={class:"card-title"},It=["href"];function Dt(t,e){return(0,i.uX)(),(0,i.CE)("section",vt,[(0,i.Lk)("div",bt,[(0,i.Lk)("header",gt,[(0,i.Lk)("h3",null,(0,u.v_)(t.$t("thankYou.galleries.header.title")),1),(0,i.Lk)("div",null,[(0,i.Lk)("p",null,(0,u.v_)(t.$t("thankYou.galleries.header.note")),1)])]),(0,i.Lk)("div",_t,[(0,i.Lk)("a",{class:"card",href:t.$t("thankYou.galleries.cards.same_as_sand.cta_link"),target:"_blank"},[(0,i.Lk)("img",{class:"card-img-top image-cap",src:t.$t("thankYou.galleries.cards.same_as_sand.img_src")},null,8,kt),(0,i.Lk)("div",At,[(0,i.Lk)("h4",Pt,(0,u.v_)(t.$t("thankYou.galleries.cards.same_as_sand.title")),1),(0,i.Lk)("p",null,(0,u.v_)(t.$t("thankYou.galleries.cards.same_as_sand.content")),1)])],8,St),(0,i.Lk)("a",{class:"card",href:t.$t("thankYou.galleries.cards.our_universe.cta_link"),target:"_blank"},[(0,i.Lk)("img",{class:"card-img-top image-cap",src:t.$t("thankYou.galleries.cards.our_universe.img_src")},null,8,Lt),(0,i.Lk)("div",Ct,[(0,i.Lk)("h4",wt,(0,u.v_)(t.$t("thankYou.galleries.cards.our_universe.title")),1),(0,i.Lk)("p",{innerHTML:t.$t("thankYou.galleries.cards.our_universe.content")},null,8,Tt)])],8,Et),(0,i.Lk)("a",{class:"card",href:t.$t("thankYou.galleries.cards.great_spirits.cta_link"),target:"_blank"},[(0,i.Lk)("img",{class:"card-img-top image-cap",src:t.$t("thankYou.galleries.cards.great_spirits.img_src")},null,8,Ot),(0,i.Lk)("div",$t,[(0,i.Lk)("h4",jt,(0,u.v_)(t.$t("thankYou.galleries.cards.great_spirits.title")),1),(0,i.Lk)("p",null,(0,u.v_)(t.$t("thankYou.galleries.cards.great_spirits.content")),1)])],8,Ft)]),(0,i.Lk)("footer",null,[(0,i.Lk)("a",{class:"btn btn-primary",href:t.$t("thankYou.galleries.footer.cta_link"),target:"_blank"},(0,u.v_)(t.$t("thankYou.galleries.footer.cta_text")),9,It)])])])}const Vt={},Rt=(0,X.A)(Vt,[["render",Dt],["__scopeId","data-v-911b51e8"]]);var Nt=Rt,Ut={name:"ThankYou",components:{ThankYouGalleries:Nt,ThankYouCampaigns:yt,SocialShare:q},setup:function(){var t=L(),e=P(),n=(0,h.Kh)({title:""});return(0,E.u)({title:(0,i.EW)(function(){return n.title})}),{siteData:n,donationStore:e,l10nStore:t}},beforeMount:function(){this.siteData.title="".concat(this.$t("thankYou.header.default_title")," - Survival International")},computed:{titleText:function(){return this.$t("thankYou.header.default_title")},thanksText:function(){return"oneOff"===this.type?"thankYou.header.yourDonationOfX.oneOff":"thankYou.header.yourDonationOfX.regular"},newsletter:function(){return this.donationStore.newsletter},imageSrc:function(){return this.$t("thankYou.header.default_image")},amount:function(){return Number(this.donationStore.amount)},curr:function(){return this.donationStore.currency},currencies:function(){return this.l10nStore["current"]?this.l10nStore.current["currencies"]:null},forename:function(){return this.donationStore.forename},type:function(){return this.donationStore.type},formattedCurrency:function(){return this.currencies?this.formatCurrency(this.amount,this.curr,this.currencies):""},formattedMsg:function(){return this.$t(this.thanksText,{amount:this.formattedCurrency})}},methods:{formatCurrency:function(t,e,n){return w()(t,Object.assign({formatWithSymbol:!0},n[e].config),null).format()},sendGAEvent:function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"donation_completed",donation_amount:this.amount,donation_currency:this.curr,donation_type:this.t
1ype,utms:JSON.stringify(this.donationStore.utms)})}},mounted:function(){this.$scrollToTop(),this.$nextTick(function(){localStorage.clear()}),this.sendGAEvent()}};const xt=(0,X.A)(Ut,[["render",m],["__scopeId","data-v-0fe2d52b"]]);var Mt=xt,Yt={id:"donation"},Gt={class:"columns"},Xt={class:"column"},Kt={class:"donation-nav"};function qt(t,e,n,r,o,a){var c=(0,i.g2)("CountryLocationSelect"),s=(0,i.g2)("CurrencySelect"),l=(0,i.g2)("TransitionSlide"),d=(0,i.g2)("DonationTypeSelect"),f=(0,i.g2)("AmountPreselect"),p=(0,i.g2)("font-awesome-icon"),m=(0,i.g2)("router-link"),h=(0,i.g2)("DonationHeader"),y=(0,i.g2)("DonationFooter");return(0,i.uX)(),(0,i.CE)("div",Yt,[(0,i.bF)(h,null,{default:(0,i.k6)(function(){return[(0,i.Lk)("div",Gt,[(0,i.Lk)("div",Xt,[a.showCountryLocationSelect?((0,i.uX)(),(0,i.Wv)(c,{key:0})):(0,i.Q3)("",!0),(0,i.bF)(l,null,{default:(0,i.k6)(function(){return[a.officeLocationKnown?((0,i.uX)(),(0,i.Wv)(s,{key:0})):(0,i.Q3)("",!0)]}),_:1}),(0,i.bF)(l,null,{default:(0,i.k6)(function(){return[a.officeLocationKnown?((0,i.uX)(),(0,i.Wv)(d,{key:0})):(0,i.Q3)("",!0)]}),_:1}),a.officeLocationKnown?((0,i.uX)(),(0,i.Wv)(f,{key:1})):(0,i.Q3)("",!0),(0,i.Lk)("p",Kt,[a.allowContinue?((0,i.uX)(),(0,i.Wv)(m,{key:0,to:{name:t.$t("routeNames.personalDetails")},class:"btn btn-primary continue"},{default:(0,i.k6)(function(){return[(0,i.eW)((0,u.v_)(t.$t("donationForm.continue"))+" ",1),(0,i.bF)(p,{icon:"arrow-right"})]}),_:1},8,["to"])):((0,i.uX)(),(0,i.Wv)(m,{key:1,to:"#",class:"btn btn-primary disabled continue"},{default:(0,i.k6)(function(){return[(0,i.eW)((0,u.v_)(t.$t("donationForm.continue"))+" ",1),(0,i.bF)(p,{icon:"arrow-right"})]}),_:1}))])])])]}),_:1}),(0,i.bF)(y)])}var Ht=(0,o.nY)("root",{namespaced:!0,state:function(){return{currentDomain:null,isEnDomain:!1,queryParams:{},hiddenFrequencies:[],appeal:null,validation:{paymentMethodSelect:!1,form:!1},validateAllFields:!1,turnstileToken:null}},getters:{formValid:function(t){return Object.values(t.validation).every(function(t){return!0===t})}},actions:{setCurrentDomain:function(t){this.currentDomain=t},setIsEnDomain:function(t){this.isEnDomain=t},setHiddenFrequencies:function(t){this.hiddenFrequencies=Array.isArray(t)?t:t?[t]:[]},setAppeal:function(t){this.appeal=t},setQueryParams:function(t){this.queryParams=t},setValidationPaymentMethodSelect:function(t){this.validation.paymentMethodSelect=t},setValidationForm:function(t){this.validation.form=t},touchValidationFields:function(t){this.validateAllFields=t},setTurnstileToken:function(t){this.turnstileToken=t}}}),Bt=n(2302),Wt={class:"amount-select"},Qt={class:"custom-amount-wrapper"},zt={key:0,id:"additional-info"};function Zt(t,e,n,r,o,a){var u=(0,i.g2)("SuggestedAmounts"),c=(0,i.g2)("FormField"),s=(0,i.g2)("TaxReliefCalculator");return(0,i.uX)(),(0,i.CE)("div",Wt,[(0,i.bF)(u,{onSelected:a.presetSelected},null,8,["onSelected"]),(0,i.Lk)("div",Qt,[(0,i.bF)(c,{class:"custom-amount",label:a.customLabel,modelValue:a.amount,"onUpdate:modelValue":e[0]||(e[0]=function(t){return a.amount=t}),type:"number",validation:r.v$.amount},null,8,["label","modelValue","validation"])]),t.$tm("donationForm.additionalInfo")?((0,i.uX)(),(0,i.CE)("p",zt,[a.displayTaxRelief?((0,i.uX)(),(0,i.Wv)(s,{key:0})):(0,i.Q3)("",!0)])):(0,i.Q3)("",!0)])}var Jt={class:"amount-options"},te={class:"options"},ee=["onClick"],ne={class:"amount"},re={class:"caption"};function oe(t,e,n,r,o,a){return(0,i.uX)(),(0,i.CE)("div",Jt,[(0,i.Lk)("div",te,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(a.suggestedAmounts,function(e,n){return(0,i.uX)(),(0,i.CE)("div",{class:(0,u.C4)(["option",[n,{active:a.isActive(a.optionAmount(e))}]]),key:n,onClick:function(t){return a.select(a.optionAmount(e))}},[(0,i.Lk)("span",ne,(0,u.v_)(a.formatCurrency(a.optionAmount(e))),1),(0,i.Lk)("span",null,(0,u.v_)(t.$t("donationForm.suggestedAmounts.".concat(a.type,".caption"))),1),(0,i.Lk)("span",re,(0,u.v_)(t.$t(a.captionKey(n))),1)],10,ee)}),128))])])}var ae={name:"SuggestedAmounts",setup:function(){var t=P(),e=Ht(),n=(0,h.KR)(null);return{donationStore:t,rootStore:e,selectedAmount:n}},emits:["selected"],computed:{appealName:function(){return this.rootStore.appeal},type:function(){return this.donationStore.type},currency:function(){return this.donationStore.currency},currentAmount:function(){return this.donationStore.amount},suggestedAmounts:function(){return this.appealPresent?this.$tm("appeals.".concat(this.appealName,".suggestedAmounts.").concat(this.t
1ype)):this.$l10n.suggestedAmountsFor(this.currency,this.type)},appealPresent:function(){return this.rootStore.appeal&&0!==Object.keys(this.$tm("appeals.".concat(this.rootStore.appeal))).length}},methods:{captionKey:function(t){return this.appealPresent?"appeals.".concat(this.appealName,".suggestedAmounts.").concat(this.type,".").concat(t,".prompt"):"donationForm.suggestedAmounts.".concat(this.type,".").concat(t)},optionAmount:function(t){return"string"===typeof t?t:t.amount},formatCurrency:function(t){if(this.currency)return this.$l10n.formatCurrency(t,this.currency,{precision:0})},select:function(t){this.selectedAmount=t,this.$emit("selected",t)},isActive:function(t){return t===this.currentAmount}},watch:{currentAmount:function(t){t!==this.selectedAmount?this.selectedAmount=null:this.isActive(t)}}};const ie=(0,X.A)(ae,[["render",oe],["__scopeId","data-v-383af297"]]);var ue=ie,ce=["for","type"],se=["id","type"],le=["id","type"],de=["id","type"];function fe(t,e,n,o,a,c){return(0,i.uX)(),(0,i.CE)("div",{class:(0,u.C4)(["form-field",{error:c.hasError&&!o.active,light:"light"===n.theme}])},[n.label?((0,i.uX)(),(0,i.CE)("label",{key:0,for:c.id,type:n.type,class:(0,u.C4)({active:o.active||c.hasValue})},(0,u.v_)(n.label),11,ce)):(0,i.Q3)("",!0),"number"===n.type?(0,i.bo)(((0,i.uX)(),(0,i.CE)("input",(0,i.v6)({key:1,onKeypress:e[0]||(e[0]=function(t){return c.isNumber(t)}),id:c.id,"onUpdate:modelValue":e[1]||(e[1]=function(t){return c.val=t}),type:n.type},(0,i.Tb)({focus:c.focus,blur:c.blur},!0),{step:"1.0",min:"0"}),null,16,se)),[[r.hp,c.val,void 0,{number:!0}]]):"textarea"===n.type?(0,i.bo)(((0,i.uX)(),(0,i.CE)("textarea",(0,i.v6)({key:2,id:c.id,"onUpdate:modelValue":e[2]||(e[2]=function(t){return c.val=t}),type:n.type},(0,i.Tb)({focus:c.focus,blur:c.blur},!0),{maxlength:"400"}),null,16,le)),[[r.Jo,c.val]]):(0,i.bo)(((0,i.uX)(),(0,i.CE)("input",(0,i.v6)({key:3,id:c.id,"onUpdate:modelValue":e[3]||(e[3]=function(t){return c.val=t}),type:n.type},(0,i.Tb)({focus:c.focus,blur:c.blur},!0)),null,16,de)),[[r.hp,c.val]])],2)}var pe={name:"FormField",setup:function(){var t=(0,h.KR)(!1);return{active:t}},props:{modelValue:{required:!0,type:[String,Number,null]},validation:{required:!0,type:Object},type:{default:"text",validator:function(t){return-1!==["text","textarea","email","tel","password","number"].indexOf(t)}},label:{type:String,default:""},theme:{type:String,default:""}},emits:["update:modelValue"],computed:{id:function(){return"element-".concat((0,Bt.A)())},hasError:function(){return this.validation&&this.validation.$error},val:{get:function(){return this.modelValue},set:function(t){this.validation&&this.validation.$touch(),this.$emit("update:modelValue",t)}},hasValue:function(){return this.modelValue&&""!==this.modelValue}},methods:{focus:function(){this.active=!0},blur:function(){this.validation&&this.validation.$touch(),this.active=!1},isNumber:function(t){if(!/\d/.test(t.key)&&"."!==t.key)return t.preventDefault()}}};const me=(0,X.A)(pe,[["render",fe]]);var he=me,ye={class:"tax-relief"},ve=["innerHTML"],be=["innerHTML"],ge=["innerHTML"];function _e(t,e,n,r,o,a){return(0,i.uX)(),(0,i.CE)("div",ye,[(0,i.Lk)("div",null,[(0,i.Lk)("p",null,[(0,i.Lk)("small",{innerHTML:t.$t("donationForm.additionalInfo.taxRelief.description")},null,8,ve)]),a.showCalc?((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[a.ineligble?((0,i.uX)(),(0,i.CE)("p",{key:0,class:"relief-calc",innerHTML:t.$t("donationForm.additionalInfo.taxRelief.ineligible")},null,8,be)):((0,i.uX)(),(0,i.CE)("p",{key:1,class:"relief-calc",innerHTML:t.$t("donationForm.additionalInfo.taxRelief.calculatedTaxRelief",{reducedAmount:a.reducedAmount,deduction:a.deduction})},null,8,ge))],64)):(0,i.Q3)("",!0)])])}var Se={es:{baseRate:.8,higherRate:.4,baseLimit:250,higherLimit:null},fr:{baseRate:.66,higherRate:null,baseLimit:null,higherLimit:null},it:{baseRate:.7,higherRate:null,baseLimit:null,higherLimit:3e4}};function ke(t,e){switch(e){case"monthly":return t.multiply(12);case"quarterly":return t.multiply(4);case"biAnnually":return t.multiply(2);default:return t}}
1function Ae(t,e){switch(e){case"monthly":return t.divide(12);case"quarterly":return t.divide(4);case"biAnnually":return t.divide(2);default:return t}}function Pe(t,e,n){var r=ke(t,e);if(r.value>n.baseLimit){var o=w()(n.baseLimit),a=o.multiply(n.baseRate),i=r.subtract(o),u=i.multiply(n.higherRate),c=a.add(u),s=Ae(c,e).value,l=t.subtract(s).value;return{reducedAmount:s,deduction:l,ineligible:!1}}var d=t.multiply(n.baseRate).value,f=t.subtract(d).value;return{reducedAmount:d,deduction:f,ineligible:!1}}function Ee(t,e,n){if(!(t&&e&&n))return{reducedAmount:null,deduction:null,ineligible:!1};var r=w()(t),o=Se[n];if(o.higherLimit&&r.value>o.higherLimit)return{reducedAmount:null,deduction:null,ineligible:!0};if(o.higherRate&&o.baseLimit)return Pe(r,e,o);var a=r.multiply(o.baseRate).value,i=r.subtract(a).value;return{reducedAmount:a,deduction:i,ineligible:!1}}var Le={name:"TaxReliefCalculator",setup:function(){var t=P(),e=L();return{donationStore:t,l10nStore:e}},computed:{locationKey:function(){return this.$l10n.currentLocation.key},currentAmount:function(){return this.donationStore.amount},currentCurrency:function(){return this.donationStore.currency},currentFrequency:function(){return this.donationStore.type},taxRelief:function(){return Ee(this.currentAmount,this.currentFrequency,this.locationKey)},ineligble:function(){return this.taxRelief.ineligible},reducedAmount:function(){return this.formatCurrency(this.taxRelief.reducedAmount,this.currentCurrency)},deduction:function(){return this.formatCurrency(this.taxRelief.deduction,this.currentCurrency)},showCalc:function(){return"eur"===this.currentCurrency&&this.currentAmount}},methods:{formatCurrency:function(t,e){return this.$l10n.formatCurrency(t,e,{precision:2})}}};const Ce=(0,X.A)(Le,[["render",_e],["__scopeId","data-v-3a055eae"]]);var we=Ce,Te=n(3855),Fe=n(9639),Oe={name:"AmountPreselect",setup:function(){var t=Ht(),e=P();return{rootStore:t,donationStore:e,v$:(0,Fe.Ay)()}},components:{SuggestedAmounts:ue,FormField:he,TaxReliefCalculator:we},computed:{currency:function(){return this.donationStore.currency},amount:{get:function(){return this.donationStore.amount},set:function(t){this.donationStore.setAmount("".concat(t))}},displayTaxRelief:function(){return["es","fr","it"].includes(this.$l10n.currentLocation.key)},customLabel:function(){return this.$t("donationForm.customAmount.label")}},methods:{presetSelected:function(t){this.donationStore.setAmount(t)}},validations:function(){var t=this;return{amount:{required:Te.mw,amount:function(e){return null!==e&&e>=t.$l10n.minAmountFor(t.currency)}}}}};const $e=(0,X.A)(Oe,[["render",Zt],["__scopeId","data-v-3e1ebc6a"]]);var je=$e,Ie={class:"country-wrapper"},De={key:0,class:"country-help"};function Ve(t,e,n,r,o,a){var c=(0,i.g2)("SelectField");return(0,i.uX)(),(0,i.CE)("div",Ie,["none"===a.country?((0,i.uX)(),(0,i.CE)("h3",De," Please select your country ")):(0,i.Q3)("",!0),(0,i.Lk)("label",{class:(0,u.C4)({error:r.v$.$error})},(0,u.v_)(t.$t("location.label")),3),(0,i.bF)(c,{class:"country",list:t.$tm("countries"),modelValue:a.country,"onUpdate:modelValue":e[0]||(e[0]=function(t){return a.country=t}),validation:r.v$.country},null,8,["list","modelValue","validation"])])}var Re=["for"],Ne=["id"],Ue=["value"],xe={key:1,value:"none",disabled:""};function Me(t,e,n,o,a,c){return(0,i.uX)(),(0,i.CE)("div",{class:(0,u.C4)(["form-field selectfield",{error:c.hasError&&!o.active}])},[n.label?((0,i.uX)(),(0,i.CE)("label",{key:0,for:c.id,class:(0,u.C4)({active:o.active||c.hasValue})},(0,u.v_)(n.label),11,Re)):(0,i.Q3)("",!0),(0,i.bo)((0,i.Lk)("select",(0,i.v6)({id:c.id,"onUpdate:modelValue":e[0]||(e[0]=function(t){return c.val=t})},(0,i.Tb)({focus:c.focus,blur:c.blur},!0),{class:{hasValue:c.hasValue}}),[e[1]||(e[1]=(0,i.Lk)("option",{value:"none",disabled:""},null,-1)),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(n.list,function(t,e){return(0,i.uX)(),(0,i.CE)(i.FK,{key:t},["disabled"!==e?((0,i.uX)(),(0,i.CE)("option",{key:0,value:e},(0,u.v_)(t),9,Ue)):((0,i.uX)(),(0,i.CE)("option",xe,(0,u.v_)(t),1))],64)}),128))],16,Ne),[[r.u1,c.val]])],2)}
1var Ye={name:"SelectField",setup:function(){var t=(0,h.KR)(!1);return{active:t}},props:{modelValue:{type:[String,Number],required:!0,default:"none"},label:{type:String,default:null},list:{type:Object,required:!0},validation:{type:Object,required:!0}},emits:["update:modelValue"],computed:{id:function(){return"element-".concat((0,Bt.A)())},hasError:function(){return this.validation&&this.validation.$error},val:{get:function(){return this.modelValue},set:function(t){this.validation&&this.validation.$touch(),this.$emit("update:modelValue",t)}},hasValue:function(){return this.modelValue&&"none"!==this.modelValue}},methods:{focus:function(){this.active=!0},blur:function(){this.validation&&this.validation.$touch(),this.active=!1}},watch:{list:function(){""===this.val&&(this.val="none")}}};const Ge=(0,X.A)(Ye,[["render",Me],["__scopeId","data-v-3b021547"]]);var Xe=Ge,Ke=n(2858),qe={name:"CountryLocationSelect",components:{SelectField:Xe},setup:function(){var t=Ht(),e=P();return{rootStore:t,donationStore:e,v$:(0,Fe.Ay)()}},methods:{updateOfficeFromCountryCode:function(t){var e=this,n=Ke["default"][t];this.$l10n.changeLocation(n).then(function(){e.appealExists(e.rootStore.queryParams["appeal"])&&e.rootStore.setAppeal(e.rootStore.queryParams.appeal)})},appealExists:function(t){return 0!==Object.keys(this.$tm("appeals.".concat(t))).length}},computed:{country:{get:function(){return this.donationStore.country},set:function(t){this.donationStore.setCountry(t)}}},validations:function(){return{country:{required:Te.mw,country:function(t){return"none"!==t}}}},watch:{country:function(){this.updateOfficeFromCountryCode(this.country)}}};const He=(0,X.A)(qe,[["render",Ve],["__scopeId","data-v-3b755e78"]]);var Be=He,We={key:0,class:"currency-select"},Qe={class:"options"},ze=["id","value"],Ze=["for"];function Je(t,e,n,o,a,c){return c.currencyCount>1?((0,i.uX)(),(0,i.CE)("div",We,[(0,i.Lk)("label",null,(0,u.v_)(t.$t("donationForm.currency.label"))+":",1),(0,i.Lk)("div",Qe,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(c.availableCurrencies,function(t,n){return(0,i.uX)(),(0,i.CE)("div",{class:(0,u.C4)(["option",n]),key:n},[(0,i.bo)((0,i.Lk)("input",{type:"radio",id:c.idFor(n),"onUpdate:modelValue":e[0]||(e[0]=function(t){return c.currency=t}),value:n},null,8,ze),[[r.XL,c.currency]]),(0,i.Lk)("label",{class:(0,u.C4)({"small-font":c.largeSymbol(t.config.symbol)}),for:c.idFor(n)},(0,u.v_)(t.config.symbol),11,Ze)],2)}),128))])])):(0,i.Q3)("",!0)}var tn={name:"CurrencySelect",setup:function(){var t=P(),e=(0,h.KR)((0,Bt.A)());return{donationStore:t,uniqueId:e}},computed:{currency:{get:function(){return this.donationStore.currency}
1,set:function(t){this.donationStore.setCurrency(t)}},availableCurrencies:function(){return this.$l10n.availableCurrencies},currencyCount:function(){return Object.keys(this.availableCurrencies).length}},methods:{idFor:function(t){return"element-".concat(this.uniqueId,"-").concat(t)},largeSymbol:function(t){return t.length>2}},watch:{"$l10n.currentLocation":function(t){null===this.currency?this.donationStore.setCurrency(this.$l10n.currentLocation.defaultCurrency):Object.keys(this.$l10n.availableCurrencies).includes(this.currency)||this.donationStore.setCurrency(this.$l10n.currentLocation.defaultCurrency)}}};const en=(0,X.A)(tn,[["render",Je],["__scopeId","data-v-f8883a52"]]);var nn=en,rn={class:"page-footer"},on={class:"dontions-go-towards"},an={class:"container contain"},un={class:"side-by-side"},cn={class:"cards"},sn={class:"vert-cards left"},ln={class:"card"},dn={class:"content"},fn={class:"card"},pn={class:"content"},mn={class:"center-card"},hn={class:"circle"},yn=["title"],vn={class:"vert-cards right"},bn={class:"card"},gn={class:"content"},_n={class:"card"},Sn={class:"content"},kn={class:"more-ways-to-give",id:"moreWaysToGive"},An={class:"container contain"},Pn={key:0,class:"side-by-side"},En={class:"cards"},Ln={class:"card"},Cn=["src"],wn=["href"],Tn={key:0},Fn={key:1},On=["innerHTML"],$n={key:0},jn={key:1,class:"h4"},In=["innerHTML"],Dn={key:0};function Vn(t,e,n,r,o,a){return(0,i.uX)(),(0,i.CE)("div",rn,[(0,i.Lk)("div",on,[(0,i.Lk)("div",an,[(0,i.Lk)("header",un,[(0,i.Lk)("h4",null,(0,u.v_)(t.$t("footer.dontions-go-towards.header.title")),1)]),(0,i.Lk)("div",cn,[(0,i.Lk)("div",sn,[(0,i.Lk)("div",ln,[(0,i.Lk)("div",dn,[(0,i.Lk)("h4",null,(0,u.v_)(t.$t("footer.dontions-go-towards.cards.1.title")),1),(0,i.Lk)("p",null,(0,u.v_)(t.$t("footer.dontions-go-towards.cards.1.content")),1)])]),(0,i.Lk)("div",fn,[(0,i.Lk)("div",pn,[(0,i.Lk)("h4",null,(0,u.v_)(t.$t("footer.dontions-go-towards.cards.2.title")),1),(0,i.Lk)("p",null,(0,u.v_)(t.$t("footer.dontions-go-towards.cards.2.content")),1)])])]),(0,i.Lk)("div",mn,[(0,i.Lk)("div",hn,[(0,i.Lk)("div",{class:"content",title:t.$t("footer.dontions-go-towards.image.title")},null,8,yn)])]),(0,i.Lk)("div",vn,[(0,i.Lk)("div",bn,[(0,i.Lk)("div",gn,[(0,i.Lk)("h4",null,(0,u.v_)(t.$t("footer.dontions-go-towards.cards.3.title")),1),(0,i.Lk)("p",null,(0,u.v_)(t.$t("footer.dontions-go-towards.cards.3.content")),1)])]),(0,i.Lk)("div",_n,[(0,i.Lk)("div",Sn,[(0,i.Lk)("h4",null,(0,u.v_)(t.$t("footer.dontions-go-towards.cards.4.title")),1),(0,i.Lk)("p",null,(0,u.v_)(t.$t("footer.dontions-go-towards.cards.4.content")),1)])])])])])]),(0,i.Lk)("div",kn,[(0,i.Lk)("div",An,[t.$t("footer.more-ways-to-give.header.title").length>0?((0,i.uX)(),(0,i.CE)("header",Pn,[(0,i.Lk)("h2",null,(0,u.v_)(t.$t("footer.more-ways-to-give.header.title")),1),(0,i.Lk)("div",null,[(0,i.Lk)("p",null,(0,u.v_)(t.$t("footer.more-ways-to-give.header.note")),1)])])):(0,i.Q3)("",!0),(0,i.Lk)("div",En,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(Object.keys(t.$tm("footer.more-ways-to-give.cards")),function(e,n){return(0,i.uX)(),(0,i.CE)(i.FK,{key:e},[(0,i.Lk)("div",Ln,[t.$tm("footer.more-ways-to-give.cards.".concat(e,".imgSrc"))[0]?((0,i.uX)(),(0,i.CE)("img",{key:0,src:t.$t("footer.more-ways-to-give.cards.".concat(e,".imgSrc"))},null,8,Cn)):(0,i.Q3)("",!0),t.$tm("footer.more-ways-to-give.cards.".concat(e,".linkSrc"))[0]?((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[(0,i.Lk)("a",{href:t.$t("footer.more-ways-to-give.cards.".concat(e,".linkSrc")),target:"_bank"},[n<3?((0,i.uX)(),(0,i.CE)("h4",Tn,(0,u.v_)(t.$t("footer.more-ways-to-give.cards.".concat(e,".title"))),1)):((0,i.uX)(),(0,i.CE)("h5",Fn,(0,u.v_)(t.$t("footer.more-ways-to-give.cards.".concat(e,".title"))),1))],8,wn),(0,i.Lk)("p",{innerHTML:t.$t("footer.more-ways-to-give.cards.".concat(e,".content"))},null,8,On)],64)):((0,i.uX)(),(0,i.CE)(i.FK,{key:2},[n<3?((0,i.uX)(),(0,i.CE)("h4",$n,(0,u.v_)(t.$t("footer.more-ways-to-give.cards.".concat(e,".title"))),1)):((0,i.uX)(),(0,i.CE)("h5",jn,(0,u.v_)(t.$t("footer.more-ways-to-give.cards.".concat(e,".title"))),1)),(0,i.Lk)("p",{innerHTML:t.$t("footer.more-ways-to-give.cards.".concat(e,".content"))},null,8,In)],64))]),2===n?((0,i.uX)(),(0,i.CE)("hr",Dn)):(0,i.Q3)("",!0)],64)}),128))])])])])}var Rn={name:"DonationFooter"};const Nn=(0,X.A)(Rn,[["render",Vn],["__scopeId","data-v-4179c9ba"]]);var Un=Nn,xn={class:"page-top hero"},Mn={class:"header"},Yn={class:"contain"},Gn={class:"page-title"},Xn={class:"title-credit"},Kn={class:"container-wrapper"};function qn(t,e,n,r,o,a){var c=(0,i.g2)("TransitionSlide"),s=(0,i.g2)("DonationContainer");return(0,i.uX)(),(0,i.CE)("div",xn,[(0,i.Lk)("div",{class:"image",style:(0,u.Tr)({backgroundImage:"url(".concat(a.imageSrc,")")})},null,4),(0,i.bF)(c,null,{default:(0,i.k6)(function(){return[(0,i.Lk)("div",Mn,[(0,i.Lk)("div",Yn,[(0,i.Lk)("div",Gn,[(0,i.Lk)("h1",null,[(0,i.Lk)("mark",null,(0,u.v_)(a.donateText),1)]),(0,i.Lk)("h2",{class:(0,u.C4)(a.titleText.length<120?"":"long-text")},[(0,i.Lk)("mark",null,(0,u.v_)(a.titleText),1)],2),(0,i.Lk)("mark",Xn,[(0,i.Lk)("strong",null,(0,u.v_)(a.titleTextCredit),1),(0,i.eW)(" "+(0,u.v_)(a.titleTextCreditDescription),1)])])]),e[0]||(e[0]=(0,i.Lk)("div",{class:"row"},[(0,i.Lk)("div",{class:"right"})],-1))])]}),_:1}),(0,i.Lk)("div",Kn,[(0,i.bF)(s,null,{default:(0,i.k6)(function(){return[(0,i.RG)(t.$slots,"default",{},void 0,!0)]}),_:3})])])}var Hn={class:"wrapper"},Bn={class:"container"};function Wn(t,e,n,r,o,a){return(0,i.uX)(),(0,i.CE)("div",Hn,[(0,i.Lk)("div",Bn,[(0,i.RG)(t.$slots,"default",{},void 0,!0)])])}var Qn={name:"DonationContainer"};const zn=(0,X.A)(Qn,[["render",Wn],["__scopeId","data-v-6718a3ce"]]);var Zn=zn;function Jn(t,e,n,o,a,u){return(0,i.uX)(),(0,i.Wv)(r.eB,{name:"slide",onBeforeLeave:u.beforeLeave,onLeave:u.leave,onBeforeEnter:u.beforeEnter,onEnter:u.enter},{default:(0,i.k6)(function(){return[(0,i.RG)(t.$slots,"default")]}),_:3},8,["onBeforeLeave","onLeave","onBeforeEnter","onEnter"])}var tr=n(1417),er={name:"TransitionSlide",props:{time:{type:Number,default:500}},methods:{beforeEnter:function(t){t.style.setProperty("max-height","none"),t.style.setProperty("min-height",0),t.style.setProperty("overflow","hidden")},beforeLeave:function(t){t.style.setProperty("height",t.clientHeight),t.style.setProperty("max-height","none"),t.style.setProperty("min-height",0),t.style.setProperty("overflow","hidden")},leave:function(t,e){var n=getComputedStyle(t);new tr.K({height:t.clientHeight,opacity:n.opacity}).to({height:0,opacity:0}
1,this.time).easing(tr.GS.Quadratic.InOut).onUpdate(function(e){t.style.setProperty("height","".concat(e.height,"px")),t.style.setProperty("opacity",e.opacity)}).onComplete(e).start()},enter:function(t,e){var n=this;this.$nextTick(function(){var r=getComputedStyle(t);new tr.K({height:0,opacity:0}).to({height:t.clientHeight,opacity:r.opacity},n.time).easing(tr.GS.Quadratic.InOut).onUpdate(function(e){t.style.setProperty("height","".concat(e.height,"px")),t.style.setProperty("opacity",e.opacity)}).onComplete(e).start()})}}};const nr=(0,X.A)(er,[["render",Jn]]);var rr=nr,or={name:"DonationHeader",setup:function(){var t=Ht();return{rootStore:t}},components:{TransitionSlide:rr,DonationContainer:Zn},methods:{getTranslation:function(t){var e="appeals.".concat(this.appeal,".").concat(t);return 0!==Object.keys(this.$tm(e)).length?this.$t(e):this.$t("header.default_".concat(t))}},computed:{appeal:function(){return this.rootStore.appeal},donateText:function(){return this.getTranslation("text")},titleText:function(){return this.getTranslation("title")},titleTextCredit:function(){return this.getTranslation("credit_title")},titleTextCreditDescription:function(){return this.getTranslation("credit_description")},imageSrc:function(){return this.getTranslation("image")}}};const ar=(0,X.A)(or,[["render",qn],["__scopeId","data-v-311daa32"]]);var ir=ar,ur={class:"donation-type-select"},cr={key:0},sr=["innerHTML"],lr={class:"donation-types form-check-group"},dr=["id","value"],fr=["for"];function pr(t,e,n,o,a,c){var s=(0,i.g2)("DonationFrequencySelect");return(0,i.uX)(),(0,i.CE)("div",ur,[t.$t("donationForm.donationType.prompt")?((0,i.uX)(),(0,i.CE)("p",cr,[(0,i.Lk)("small",{class:"prompt-text",innerHTML:c.promptText},null,8,sr)])):(0,i.Q3)("",!0),(0,i.Lk)("div",lr,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(c.types,function(n){return(0,i.uX)(),(0,i.CE)("div",{key:n,class:"option"},[(0,i.bo)((0,i.Lk)("input",{id:"".concat(n,"-donation-type"),type:"radio","onUpdate:modelValue":e[0]||(e[0]=function(t){return c.donationType=t}),value:n},null,8,dr),[[r.XL,c.donationType]]),(0,i.Lk)("label",{for:"".concat(n,"-donation-type")},[(0,i.eW)((0,u.v_)(t.$t("donationForm.donationType.".concat(n)))+" ",1),n.match(/^(?!.*oneOff).*$/)?((0,i.uX)(),(0,i.Wv)(s,{key:0,modelValue:c.donationType,"onUpdate:modelValue":e[1]||(e[1]=function(t){return c.donationType=t})},null,8,["modelValue"])):(0,i.Q3)("",!0)],8,fr)])}),128))])])}var mr={key:0,class:"donation-frequency-select"},hr={class:"options"},yr=["onClick"];function vr(t,e,n,r,o,a){return a.multipleFrequencies?((0,i.uX)(),(0,i.CE)("div",mr,[(0,i.Lk)("span",{class:"change",onClick:e[0]||(e[0]=function(t){return a.changeClicked()})}),(0,i.Lk)("div",{class:(0,u.C4)(["dropdown",{open:r.open}])},[(0,i.Lk)("div",hr,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(a.frequencies,function(e){return(0,i.uX)(),(0,i.CE)("div",{class:"option",key:e,onClick:function(t){return a.select(e)}},(0,u.v_)(t.$t("donationForm.donationType.".concat(e))),9,yr)}),128))])],2)])):(0,i.Q3)("",!0)}var br={name:"DonationFrequencySelect",setup:function(){var t=(0,h.KR)(!1),e=P(),n=Ht();return{donationStore:e,rootStore:n,open:t}},computed:{type:{get:function(){return this.donationStore.type},set:function(t){this.donationStore.setType(t)}},hiddenFrequencies:function(){return this.rootStore.hiddenFrequencies},visibleRegularFrequencies:function(){var t=this;return Object.keys(this.$l10n.availableFrequencies.regular).filter(function(e){return!t.hiddenFrequencies.includes(e)})},frequencies:function(){var t=this;return this.visibleRegularFrequencies.filter(function(e){return e!==t.type})},multipleFrequencies:function(){return this.visibleRegularFrequencies.length>1&&"oneOff"!==this.type}},watch:{hiddenFrequencies:{immediate:!0,handler:function(t){if("oneOff"!==this.type&&t.includes(this.type)){var e=this.visibleRegularFrequencies[0];e&&(this.type=e)}}}},methods:{select:function(t){this.type=t,this.open=!1},changeClicked:function(){this.open=!this.open}}};const gr=(0,X.A)(br,[["render",vr],["__scopeId","data-v-44b17626"]]);var _r=gr,Sr={name:"DonationTypeSelect",setup:function(){var t=Ht(),e=P();return{rootStore:t,donationStore:e}},components:{DonationFrequencySelect:_r},computed:{hideOneOff:function(){return this.rootStore.hiddenFrequencies.includes("oneOff")},hideRegular:function(){var t=this.rootStore.hiddenFrequencies;if(t.includes("regular"))return!0;var e=Object.keys(this.$l10n.availableFrequencies.regular);return e.length>0&&e.every(function(e){return t.includes(e)})},types:function(){return this.hideOneOff?[this.regularType]:this.hideRegular?["oneOff"]:[this.regularType,"oneOff"]},regularType:function(){return this.donationType.match(/^(?!.*oneOff).*$/)?this.donationType:"monthly"},donationType:{get:function(){return this.donationStore.type},set:function(t){this.donationStore.setType(t)}},promptText:function(){return this.rootStore.appeal&&this.$tm("appeals.".concat(this.rootStore.appeal,".donationType.prompt"))[0]?this.$t("appeals.".concat(this.rootStore.appeal,".donationType.prompt")):this.$t("donationForm.donationType.prompt")}},watch:{types:function(t){if(1===t.length){var e=t[0];this.donationStore.setType(e)}}}};const kr=(0,X.A)(Sr,[["render",pr],["__scopeId","data-v-ab856e02"]]);var Ar=kr,Pr={name:"DonationIntro",components:{TransitionSlide:rr,CurrencySelect:nn,DonationTypeSelect:Ar,AmountPreselect:je,DonationFooter:Un,CountryLocationSelect:Be,DonationHeader:ir},setup:function(){var t=Ht(),e=P();return{rootStore:t,donationStore:e}}
1,computed:{donationDetailsGiven:function(){var t=this.rootStore.queryParams;return"amount"in t||"amnt"in t||"type"in t},showCountryLocationSelect:function(){return this.rootStore.isEnDomain&&!("l"in this.rootStore.queryParams)},currency:{get:function(){return this.donationStore.currency},set:function(t){this.donationStore.setCurrency(t)}},country:{get:function(){return this.donationStore.country},set:function(t){this.donationStore.setCountry(t)}},amount:function(){return this.donationStore.amount},officeLocationKnown:function(){return"none"!==this.country||!this.rootStore.isEnDomain||"l"in this.rootStore.queryParams},allowContinue:function(){return!!this.currency&&(this.rootStore.isEnDomain&&!("l"in this.rootStore.queryParams)?Number(this.amount)>this.$l10n.minAmountFor(this.currency)&&"none"!==this.country:!!(Number(this.amount)>this.$l10n.minAmountFor(this.currency)))}},methods:{prefillDonation:function(){var t=this.rootStore.queryParams;if("type"in t&&["monthly","mon","oneOff","one"].includes(t.type))switch(t.type){case"mon":case"monthly":this.donationStore.setType("monthly");break;case"one":case"oneOff":this.donationStore.setType("oneOff");break}var e=t.amnt||t.amount||!1;e&&Number(e)>0&&this.donationStore.setAmount("".concat(Number(e)));var n=t.curr||t.currency||!1;n&&Object.keys(this.$l10n.availableCurrencies).includes(n.toLocaleLowerCase())&&this.donationStore.setCurrency(n.toLocaleLowerCase())}},mounted:function(){var t=this;this.$scrollToElement(".column"),this.$l10n.onLocationChange((0,Bt.A)(),function(e){null===t.donationStore.currency&&t.donationStore.setCurrency(e.defaultCurrency)},{immediate:!0}),this.donationStore.setReference((0,Bt.A)()),this.donationDetailsGiven&&this.prefillDonation()},watch:{"$l10n.currentLocation":function(t){this.donationStore.setCurrency(this.$l10n.currentLocation.defaultCurrency)},allowContinue:function(t){!0===t&&this.$scrollToElement(".continue")}}};const Er=(0,X.A)(Pr,[["render",qt],["__scopeId","data-v-20883e05"]]);var Lr=Er,Cr={id:"donation"},wr={class:"columns"},Tr={class:"column"},Fr={class:"donation-nav"};function Or(t,e,n,r,o,a){var c=(0,i.g2)("ProgressTracker"),s=(0,i.g2)("DonationSummary"),l=(0,i.g2)("DonationForm"),d=(0,i.g2)("GiftDonation"),f=(0,i.g2)("TaxIdentification"),p=(0,i.g2)("NewsletterSignup"),m=(0,i.g2)("PrivacyStatement"),h=(0,i.g2)("GiftAid"),y=(0,i.g2)("font-awesome-icon"),v=(0,i.g2)("router-link"),b=(0,i.g2)("DonationHeader"),g=(0,i.g2)("DonationFooter");return(0,i.uX)(),(0,i.CE)("div",Cr,[(0,i.bF)(b,null,{default:(0,i.k6)(function(){return[(0,i.Lk)("div",wr,[(0,i.Lk)("div",Tr,[(0,i.bF)(c,{"current-step":2}),(0,i.bF)(s),(0,i.bF)(l,{ref:"form"},null,512),(0,i.Lk)("p",Fr,[t.$tm("giftDonation.display")?((0,i.uX)(),(0,i.Wv)(d,{key:0})):(0,i.Q3)("",!0),(0,i.bF)(f),(0,i.bF)(p),(0,i.bF)(m),(0,i.bF)(h),e[0]||(e[0]=(0,i.Lk)("br",null,null,-1)),(0,i.bF)(v,{to:{name:"donationIntro"},class:"btn btn-primary back"},{default:(0,i.k6)(function(){return[(0,i.bF)(y,{icon:"arrow-left"}),(0,i.eW)(" "+(0,u.v_)(t.$t("donationForm.back")),1)]}),_:1}),e[1]||(e[1]=(0,i.eW)(" Â ",-1)),a.allowContinue?((0,i.uX)(),(0,i.Wv)(v,{key:1,to:{name:t.$t("routeNames.paymentDetails")},class:"btn btn-primary continue"},{default:(0,i.k6)(function(){return[(0,i.eW)((0,u.v_)(t.$t("donationForm.continue"))+" ",1),(0,i.bF)(y,{icon:"arrow-right"})]}),_:1},8,["to"])):((0,i.uX)(),(0,i.Wv)(v,{key:2,to:"#",class:"btn btn-primary disabled continue",onClick:a.touchAllFields},{default:(0,i.k6)(function(){return[(0,i.eW)((0,u.v_)(t.$t("donationForm.continue"))+" ",1),(0,i.bF)(y,{icon:"arrow-right"})]}),_:1},8,["onClick"]))])])])]}),_:1}),(0,i.bF)(g)])}var $r={class:"donation-form"},jr={class:"details-header"},Ir={class:"name"},Dr={key:4,class:"country readonly-val"};function Vr(t,e,n,r,o,a){var c=(0,i.g2)("FormField"),s=(0,i.g2)("SelectField"),l=(0,i.g2)("TransitionSlide");return(0,i.uX)(),(0,i.CE)("div",$r,[(0,i.bF)(l,null,{default:(0,i.k6)(function(){return[(0,i.Lk)("div",{class:(0,u.C4)(["full-details",a.formClasses])},[(0,i.Lk)("h3",jr,(0,u.v_)(t.$t("donationForm.details.header")),1),(0,i.Lk)("div",Ir,[(0,i.bF)(c,{class:"forename",label:a.showAsteriskIfRequired("forename")+t.$t("donationForm.details.forename.label"),modelValue:a.forename,"onUpdate:modelValue":e[0]||(e[0]=function(t){return a.forename=t}),validation:r.v$.forename},null,8,["label","modelValue","validation"]),(0,i.bF)(c,{class:"surname",label:a.showAsteriskIfRequired("surname")+t.$t("donationForm.details.surname.label"),modelValue:a.surname,"onUpdate:modelValue":e[1]||(e[1]=function(t){return a.surname=t}),validation:r.v$.surname},null,8,["label","modelValue","validation"])]),(0,i.bF)(c,{class:"email",label:a.showAsteriskIfRequired("email")+t.$t("donationForm.details.email.label"),modelValue:a.email,"onUpdate:modelValue":e[2]||(e[2]=function(t){return a.email=t}),type:"email",validation:r.v$.email},null,8,["label","modelValue","validation"]),a.showPhone?((0,i.uX)(),(0,i.Wv)(c,{key:0,class:"phone",label:t.$t("donationForm.details.phone.label"),modelValue:a.phone,"onUpdate:modelValue":e[3]||(e[3]=function(t){return a.phone=t}),type:"tel",validation:r.v$.phone},null,8,["label","modelValue","validation"])):(0,i.Q3)("",!0),(0,i.bF)(c,{class:"street",label:a.showAsteriskIfRequired("street")+t.$t("donationForm.details.street.label"),modelValue:a.street,"onUpdate:modelValue":e[4]||(e[4]=function(t){return a.street=t}),validation:r.v$.street},null,8,["label","modelValue","validation"]),(0,i.bF)(c,{class:"city",label:a.showAsteriskIfRequired("city")+t.$t("donationForm.details.city.label"),modelValue:a.city,"onUpdate:modelValue":e[5]||(e[5]=function(t){return a.city=t}),validation:r.v$.city},null,8,["label","modelValue","validation"]),(0,i.bF)(c,{class:"zip",label:a.showAsteriskIfRequired("zip")+t.$t("donationForm.details.zip.label"),modelValue:a.zip,"onUpdate:modelValue":e[6]||(e[6]=function(t){return a.zip=t}),validation:r.v$.zip}
1,null,8,["label","modelValue","validation"]),Object.keys(t.$tm("states")).length>0&&a.showState?((0,i.uX)(),(0,i.Wv)(s,{key:1,class:"state",label:a.showAsteriskIfRequired("state")+t.$t("donationForm.details.state.label"),list:t.$tm("states"),modelValue:a.state,"onUpdate:modelValue":e[7]||(e[7]=function(t){return a.state=t}),validation:r.v$.state},null,8,["label","list","modelValue","validation"])):a.showState?((0,i.uX)(),(0,i.Wv)(c,{key:2,class:"state",label:t.$t("donationForm.details.state.label"),modelValue:a.state,"onUpdate:modelValue":e[8]||(e[8]=function(t){return a.state=t}),validation:r.v$.state},null,8,["label","modelValue","validation"])):(0,i.Q3)("",!0),a.editableCountry?((0,i.uX)(),(0,i.Wv)(s,{key:3,class:"country",label:a.showAsteriskIfRequired("country")+t.$t("location.label"),list:t.$tm("countries"),modelValue:a.country,"onUpdate:modelValue":e[9]||(e[9]=function(t){return a.country=t}),validation:r.v$.country},null,8,["label","list","modelValue","validation"])):((0,i.uX)(),(0,i.CE)("div",Dr,(0,u.v_)(t.$tm("countries")[a.country]),1))],2)]}),_:1})])}var Rr=n(6816),Nr={name:"DonationForm",components:{TransitionSlide:rr,FormField:he,SelectField:Xe},setup:function(){var t=P(),e=Ht(),n=L();return{v$:(0,Fe.Ay)(),donationStore:t,rootStore:e,l10nStore:n}},methods:{showAsteriskIfRequired:function(t){var e=this.v$[t].required;return"none"===this[t]||e&&e.$invalid?"* ":""},updateOfficeFromCountryCode:function(t){var e=Ke["default"][t];this.$l10n.changeLocation(e)},zipValid:function(t){return(0,Rr.B5)(this.country)?(0,Rr.Kq)(this.zip,this.country):null!==t&&t.match(/\S/)}},computed:{forename:{get:function(){return this.donationStore.forename},set:function(t){this.donationStore.setForename(t)}},surname:{get:function(){return this.donationStore.surname},set:function(t){this.donationStore.setSurname(t)}},email:{get:function(){return this.donationStore.email},set:function(t){this.donationStore.setEmail(t)}},phone:{get:function(){return this.donationStore.phone},set:function(t){this.donationStore.setPhone(t)}},currency:{get:function(){return this.donationStore.currency}
1,set:function(t){this.donationStore.setCurrency(t)}},street:{get:function(){return this.donationStore.street},set:function(t){this.donationStore.setStreet(t)}},city:{get:function(){return this.donationStore.city},set:function(t){this.donationStore.setCity(t)}},zip:{get:function(){return this.donationStore.zip},set:function(t){this.donationStore.setZip(t.toUpperCase())}},state:{get:function(){return this.donationStore.state},set:function(t){this.donationStore.setState(t)}},country:{get:function(){return this.donationStore.country},set:function(t){this.donationStore.setCountry(t)}},validateAllFields:function(){return this.rootStore.validateAllFields},showState:function(){return this.l10nStore.current.formFields.state.show},showPhone:function(){return this.l10nStore.current.formFields.telephone.show},hidePhoneAndState:function(){return!this.showPhone&&!this.showState},formClasses:function(){return this.hidePhoneAndState?{"no-phone-or-state":!0}:this.showState?this.showPhone?{}:{"no-phone":!0}:{"no-state":!0}},editableCountry:function(){return!this.rootStore.isEnDomain||"l"in this.rootStore.queryParams}},validations:function(){var t=this;return{forename:{required:Te.mw,minLength:(0,Te.Bp)(2)},surname:{required:Te.mw,minLength:(0,Te.Bp)(2)},email:{email:Te.Rp,required:Te.mw},phone:{phone:Te._$.regex(/^[0-9\s]*$/)},street:{required:(0,Te.F5)(function(){return this.l10nStore.current.formFields.street.required}),street:Te._$.regex(/\S/)},zip:{required:(0,Te.F5)(function(){return this.l10nStore.current.formFields.zip.required}),zip:function(e){return null===e||""===e||t.zipValid(e)}},state:{required:(0,Te.F5)(function(){return this.l10nStore.current.formFields.state.required}),state:Te._$.regex(/\S/)},city:{required:(0,Te.F5)(function(){return this.l10nStore.current.formFields.city.required}),city:Te._$.regex(/\S/)},country:{required:Te.mw,country:function(t){return"none"!==t}}}},watch:{country:function(t){var e=this.rootStore.queryParams["l"];this.rootStore.isEnDomain&&!e&&this.updateOfficeFromCountryCode(t)},validateAllFields:function(t){this.v$.$touch()},"v$.$invalid":function(t){this.rootStore.setValidationForm(!t)}}};const Ur=(0,X.A)(Nr,[["render",Vr],["__scopeId","data-v-924bb6d2"]]);var xr=Ur,Mr={class:"donation-summary"},Yr=["innerHTML"];function Gr(t,e,n,r,o,a){return(0,i.uX)(),(0,i.CE)("div",Mr,[(0,i.Lk)("span",{innerHTML:a.summaryText},null,8,Yr)])}var Xr={name:"DonationSummary",setup:function(){var t=P(),e=L();return{donationStore:t,l10nStore:e}},computed:{amount:function(){return Number(this.donationStore.amount)},currency:function(){return this.donationStore.currency},formattedCurrency:function(){return this.$l10n.formatCurrency(this.amount,this.currency,{precision:2})},type:function(){return this.donationStore.type},summaryText:function(){return this.$t("donationSummary.".concat(this.type),{amount:this.formattedCurrency})}}};const Kr=(0,X.A)(Xr,[["render",Gr],["__scopeId","data-v-099a02a9"]]);var qr=Kr,Hr={key:0,class:"gift-aid"},Br=["src"];function Wr(t,e,n,r,o,a){var c=(0,i.g2)("CheckBox");return a.display?((0,i.uX)(),(0,i.CE)("div",Hr,[(0,i.Lk)("h4",null,(0,u.v_)(t.$t("donationForm.details.giftaid.title")),1),(0,i.Lk)("p",null,(0,u.v_)(t.$t("donationForm.details.giftaid.description",{amount:a.amountWithGiftAid})),1),(0,i.Lk)("div",null,[(0,i.Lk)("img",{class:"giftaid-logo",src:t.$t("donationForm.details.giftaid.logo"),alt:"Giftaid logo"},null,8,Br),(0,i.bF)(c,{label:t.$t("donationForm.details.giftaid.label"),modelValue:a.giftaid,"onUpdate:modelValue":e[0]||(e[0]=function(t){return a.giftaid=t})},null,8,["label","modelValue"])])])):(0,i.Q3)("",!0)}var Qr={class:"form-check"},zr=["id"],Zr=["for"],Jr={class:"text"};function to(t,e,n,o,a,c){return(0,i.uX)(),(0,i.CE)("div",Qr,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox",id:c.id,"onUpdate:modelValue":e[0]||(e[0]=function(t){return c.val=t})},null,8,zr),[[r.lH,c.val]]),n.label?((0,i.uX)(),(0,i.CE)("label",{key:0,for:c.id},[e[1]||(e[1]=(0,i.Lk)("span",{class:"check"},null,-1)),(0,i.Lk)("span",Jr,(0,u.v_)(n.label),1)],8,Zr)):(0,i.Q3)("",!0)])}var eo={name:"CheckBox",props:{modelValue:{required:!0,type:Boolean},label:{required:!0,type:String}},emits:["update:modelValue"],computed:{id:function(){return"element-".concat((0,Bt.A)())},val:{get:function(){return this.modelValue},set:function(t){this.$emit("update:modelValue",t)}}}};const no=(0,X.A)(eo,[["render",to]]);
1var ro=no,oo={name:"GiftAid",setup:function(){var t=P();return{donationStore:t}},components:{CheckBox:ro},computed:{giftaid:{get:function(){return this.donationStore.giftaid},set:function(t){this.donationStore.setGiftaid(t)}},amount:function(){return this.donationStore.amount},amountWithGiftAid:function(){return w()(this.amount).multiply(.25)},currency:function(){return this.donationStore.currency},country:function(){return this.donationStore.country},display:function(){return"gbp"===this.currency&&"GB"===this.country}},watch:{currency:function(){"gbp"!==this.currency&&(this.giftaid=!1)}}};const ao=(0,X.A)(oo,[["render",Wr],["__scopeId","data-v-7217da76"]]);var io=ao,uo={class:"gift-this-donation"},co={key:0};function so(t,e,n,r,o,a){var c=(0,i.g2)("CheckBox"),s=(0,i.g2)("FormField"),l=(0,i.g2)("TransitionSlide");return(0,i.uX)(),(0,i.CE)("div",uo,[(0,i.bF)(c,{label:t.$t("giftDonation.checkLabel"),modelValue:r.giftDonation,"onUpdate:modelValue":e[0]||(e[0]=function(t){return r.giftDonation=t})},null,8,["label","modelValue"]),(0,i.bF)(l,null,{default:(0,i.k6)(function(){return[r.giftDonation?((0,i.uX)(),(0,i.CE)("div",co,[(0,i.Lk)("h4",null,(0,u.v_)(t.$t("giftDonation.name.title")),1),(0,i.bF)(s,{label:t.$t("giftDonation.name.label"),modelValue:r.giftData.name,"onUpdate:modelValue":e[1]||(e[1]=function(t){return r.giftData.name=t}),validation:r.v$.giftData.name},null,8,["label","modelValue","validation"])])):(0,i.Q3)("",!0)]}),_:1})])}var lo={name:"GiftDonation",components:{CheckBox:ro,FormField:he,TransitionSlide:rr},setup:function(){var t=P(),e=(0,h.KR)(!1),n=(0,h.KR)({name:null});return{donationStore:t,v$:(0,Fe.Ay)(),giftDonation:e,giftData:n}},validations:function(){return{giftData:{name:{required:(0,Te.F5)(function(){return this.giftDonation})}}}},computed:{fieldsInvalid:function(){return this.v$.$invalid}},watch:{giftDonation:function(t){!1===t&&(this.donationStore.setGiftDonation(null),this.giftData={name:null})},"giftData.name":function(t){!this.fieldsInvalid&&this.giftDonation&&this.donationStore.setGiftDonation("".concat(this.giftData.name))}}};const fo=(0,X.A)(lo,[["render",so],["__scopeId","data-v-4454fd94"]]);var po=fo,mo={key:0,id:"newsletterSignup"};function ho(t,e,n,r,o,a){var c=(0,i.g2)("CheckBox");return a.display?((0,i.uX)(),(0,i.CE)("div",mo,[(0,i.Lk)("h3",null,(0,u.v_)(t.$t("donationForm.details.newsletter.title")),1),(0,i.Lk)("div",null,[(0,i.Lk)("small",null,(0,u.v_)(t.$t("donationForm.details.newsletter.text")),1)]),(0,i.bF)(c,{label:t.$t("donationForm.details.newsletter.label"),modelValue:a.newsletter,"onUpdate:modelValue":e[0]||(e[0]=function(t){return a.newsletter=t})},null,8,["label","modelValue"])])):(0,i.Q3)("",!0)}var yo={name:"NewsletterSignup",setup:function(){var t=P();return{donationStore:t}},components:{CheckBox:ro},computed:{newsletter:{get:function(){return this.donationStore.newsletter},set:function(t){this.donationStore.setNewsletter(t)}},display:function(){return this.$l10n.currentLocation.formFields.newsletter.show}},mounted:function(){this.donationStore.setNewsletter(this.$l10n.currentLocation.formFields.newsletter.prechecked)}};const vo=(0,X.A)(yo,[["render",ho],["__scopeId","data-v-0bbfdd48"]]);var bo=vo,go={class:"privacy-statement"},_o=["innerHTML"];function So(t,e,n,r,o,a){return(0,i.uX)(),(0,i.CE)("div",go,[(0,i.Lk)("h3",null,(0,u.v_)(t.$t("donationForm.details.privacy.title")),1),(0,i.Lk)("div",null,[(0,i.Lk)("small",{innerHTML:t.$t("donationForm.details.privacy.text")},null,8,_o)])])}var ko={name:"PrivacyStatement"};const Ao=(0,X.A)(ko,[["render",So],["__scopeId","data-v-bd992364"]]);var Po=Ao,Eo={class:"donation-progress"};function Lo(t,e,n,r,o,a){var c=(0,i.g2)("font-awesome-icon");return(0,i.uX)(),(0,i.CE)("div",Eo,[(0,i.Lk)("ul",null,[(0,i.Lk)("li",{class:(0,u.C4)(["step",{"current-step":1===n.currentStep}])}," 1 ",2),e[0]||(e[0]=(0,i.Lk)("li",{class:"spacer"},null,-1)),(0,i.Lk)("li",{class:(0,u.C4)(["step",{"current-step":2===n.currentStep}])}," 2 ",2),e[1]||(e[1]=(0,i.Lk)("li",{class:"spacer"},null,-1)),(0,i.Lk)("li",{class:(0,u.C4)(["step",{"current-step":3===n.currentStep}])}," 3 ",2),e[2]||(e[2]=(0,i.Lk)("li",{class:"spacer"},null,-1)),(0,i.Lk)("li",{class:(0,u.C4)(["step",{"current-step":4===n.currentStep}])},[(0,i.bF)(c,{icon:"check"})],2)])])}var Co={name:"ProgressTracker",props:{currentStep:{required:!0,type:Number}}};const wo=(0,X.A)(Co,[["render",Lo],["__scopeId","data-v-5091a8a2"]]);var To=wo,Fo={class:"tax-identification"},Oo={key:0,class:"us-tax-guidestar"};function $o(t,e,n,r,o,a){var c=(0,i.g2)("ItTaxInformation"),s=(0,i.g2)("EsTaxInformation");return(0,i.uX)(),(0,i.CE)("div",Fo,["us"===a.currentLocationKey?((0,i.uX)(),(0,i.CE)("div",Oo,[e[0]||(e[0]=(0,i.Lk)("div",null,[(0,i.Lk)("img",{class:"guidestar-platinum-seal",src:"https://assets.survivalinternational.org/viru/logos/guidestar-platinum-seal.png",alt:"GuideStar Platinum Seal"})],-1)),(0,i.Lk)("div",null,[(0,i.Lk)("span",null,(0,u.v_)(t.$t("donationForm.details.guidestar.tax_id")),1)])])):a.showItalyTaxID?((0,i.uX)(),(0,i.Wv)(c,{key:1})):a.showSpainTaxID?((0,i.uX)(),(0,i.Wv)(s,{key:2})):(0,i.Q3)("",!0)])}var jo={class:"es-tax"},Io={class:"why-tax-id"};function Do(t,e,n,r,o,a){var c=(0,i.g2)("FormField"),s=(0,i.g2)("SelectField");return(0,i.uX)(),(0,i.CE)("div",jo,[(0,i.bF)(c,{label:t.$t("donationForm.details.taxId.idNumber"),modelValue:a.idNumber,"onUpdate:modelValue":e[0]||(e[0]=function(t){return a.idNumber=t}),validation:r.v$.idNumber,placeholder:t.$t("donationForm.details.taxId.idNumber")},null,8,["label","modelValue","validation","placeholder"]),(0,i.bF)(s,{label:t.$t("donationForm.details.taxId.taxIdentification"),list:a.idTypes,modelValue:a.idType,"onUpdate:modelValue":e[1]||(e[1]=function(t){return a.idType=t}),validation:r.v$.idType},null,8,["label","list","modelValue","validation"]),(0,i.Lk)("details",Io,[(0,i.Lk)("summary",null,[(0,i.Lk)("small",null,(0,u.v_)(t.$t("donationForm.details.taxId.whyQuestion")),1)]),(0,i.Lk)("small",null,(0,u.v_)(t.$t("donationForm.details.taxId.whyAnswer")),1)])])}var Vo=/^(\d{8})([A-Z])$/,Ro=/^([ABCDEFGHJKLMNPQRSUVW])(\d{7})([0-9A-J])$/,No=/^[XYZ]\d{7,8}[A-Z]$/;function Uo(t){if(null===t)return!1;t=t.toUpperCase().replace(/\s/,"");var e=!1,n=xo(t);switch(n){case"dni":e=Mo(t);break;case"nie":e=Yo(t);break;case"cif":e=Go(t);break}return e}function xo(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";
1return t.match(Vo)?"dni":t.match(Ro)?"cif":t.match(No)?"nie":void 0}function Mo(t){var e="TRWAGMYFPDXBNJZSQVHLCKE",n=e.charAt(parseInt(t,10)%23);return n===t.charAt(8)}function Yo(t){var e=t.charAt(0);switch(e){case"X":e=0;break;case"Y":e=1;break;case"Z":e=2;break}return Mo(e+t.substr(1))}function Go(t){for(var e,n=t.match(Ro),r=n[1],o=n[2],a=n[3],i=0,u=0,c=0;c<o.length;c++)e=parseInt(o[c],10),c%2===0?(e*=2,u+=e<10?e:e-9):i+=e;var s=10-(i+u).toString().substr(-1),l="JABCDEFGHI".substr(s,1);return r.match(/[ABEH]/)?a==s:r.match(/[KPQS]/)?a==l:a==s||a==l}var Xo={name:"EsTaxInformation",components:{FormField:he,SelectField:Xe},setup:function(){var t=P(),e=L();return{v$:(0,Fe.Ay)(),donationStore:t,l10nStore:e}},computed:{idTypes:function(){return this.$tm("donationForm.details.taxId.idTypes")},currentCountry:function(){return this.donationStore.country},currentLocationKey:function(){return this.l10nStore.current.key},idType:{get:function(){return this.donationStore.tax.idType},set:function(t){this.donationStore.setTax({idType:t,idNumber:this.donationStore.tax.idNumber})}},idNumber:{get:function(){return this.donationStore.tax.idNumber},set:function(t){this.donationStore.setTax({idType:this.donationStore.tax.idType,idNumber:t})}}},validations:function(){var t=this;return{idNumber:{required:(0,Te.F5)(function(){return!["none",""].includes(this.idType)}),idNumber:function(t){return!![null,""].includes(t)||Uo(t)}},idType:{required:(0,Te.F5)(function(){return![null,""].includes(this.idNumber)}),idType:function(e){return!Uo(t.idNumber)||!["none",""].includes(e)}}}},watch:{idNumber:function(t){Uo(t)&&(this.idNumber=t.toUpperCase(),this.idType="".concat(xo(t)).toUpperCase())}}};const Ko=(0,X.A)(Xo,[["render",Do],["__scopeId","data-v-66491227"]]);var qo=Ko,Ho={class:"it-tax"};function Bo(t,e,n,r,o,a){var c=(0,i.g2)("FormField");return(0,i.uX)(),(0,i.CE)("div",Ho,[(0,i.bF)(c,{label:t.$t("donationForm.details.taxId.idNumber"),modelValue:a.taxNumber,"onUpdate:modelValue":e[0]||(e[0]=function(t){return a.taxNumber=t}),validation:r.v$.taxNumber},null,8,["label","modelValue","validation"]),(0,i.Lk)("small",null,(0,u.v_)(t.$t("donationForm.details.taxId.details")),1)])}var Wo={name:"ItTaxInformation",components:{FormField:he},setup:function(){var t=P(),e=L();return{v$:(0,Fe.Ay)(),donationStore:t,l10nStore:e}},computed:{taxNumber:{get:function(){return this.donationStore.tax.taxNumber},set:function(t){this.donationStore.setTax({taxNumber:t})}}},validations:function(){return{taxNumber:{alphaNum:Te.tS}}}};const Qo=(0,X.A)(Wo,[["render",Bo]]);var zo=Qo,Zo={name:"TaxIdentification",components:{EsTaxInformation:qo,ItTaxInformation:zo},setup:function(){var t=P(),e=L();return{donationStore:t,l10nStore:e}},computed:{currentCountry:function(){return this.donationStore.country},currentLocationKey:function(){return this.l10nStore.current.key},showSpainTaxID:function(){return"es"===this.currentLocationKey&&"ES"===this.currentCountry},showItalyTaxID:function(){return"it"===this.currentLocationKey}}};const Jo=(0,X.A)(Zo,[["render",$o],["__scopeId","data-v-b7be9496"]]);var ta=Jo;function ea(t){return ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ea(t)}function na(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return ra(s,"_invoke",function(n,r,o){var a,u,c,s=0,l=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,u=0,c=t,f.n=n,i}};function p(n,r){for(u=n,c=r,e=0;!d&&s&&!o&&e<l.length;e++){var o,a=l[e],p=f.p,m=a[2];n>3?(o=m===r)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,u=0))}if(o||n>1)return i;throw d=!0,r}return function(o,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,m),u=l,c=m;(e=u<2?t:c)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,c)):f.n=c:f.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");
1if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(d=f.n<0)?c:n.call(r,f))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:d}}}(n,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(ra(e={},r,function(){return this}),e),d=s.prototype=u.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,ra(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=s,ra(d,"constructor",s),ra(s,"constructor",c),c.displayName="GeneratorFunction",ra(s,o,"GeneratorFunction"),ra(d),ra(d,o,"Generator"),ra(d,r,function(){return this}),ra(d,"toString",function(){return"[object Generator]"}),(na=function(){return{w:a,m:f}})()}function ra(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ra=function(t,e,n,r){function a(e,n){ra(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},ra(t,e,n,r)}function oa(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function aa(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(t){oa(a,r,o,i,u,"next",t)}function u(t){oa(a,r,o,i,u,"throw",t)}i(void 0)})}}function ia(t,e,n){return(e=ua(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ua(t){var e=ca(t,"string");return"symbol"==ea(e)?e:e+""}function ca(t,e){if("object"!=ea(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ea(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var sa={name:"PersonalDetails",setup:function(){var t=Ht();return{rootStore:t}},components:ia(ia(ia({DonationFooter:Un,DonationHeader:ir,DonationForm:xr,GiftAid:io,GiftDonation:po,TaxIdentification:ta,ProgressTracker:To,DonationSummary:qr},"DonationSummary",qr),"NewsletterSignup",bo),"PrivacyStatement",Po),computed:{allowContinue:function(){return this.rootStore.validation.form}},methods:{touchAllFields:function(){var t=this;return aa(na().m(function e(){return na().w(function(e){while(1)switch(e.n){case 0:return t.rootStore.touchValidationFields(!0),e.n=1,t.$nextTick();case 1:t.rootStore.touchValidationFields(!1),t.$scrollToElement(".error");case 2:return e.a(2)}},e)}))()}},mounted:function(){this.$scrollToElement(".column")},watch:{allowContinue:function(t){!0===t&&this.$scrollToElement(".continue")}}};const la=(0,X.A)(sa,[["render",Or],["__scopeId","data-v-c23743c2"]]);var da=la,fa={id:"donation"},pa={class:"error"},ma={class:"columns"},ha={class:"column"},ya={class:"donation-nav"};function va(t,e,n,r,o,a){var c=(0,i.g2)("font-awesome-icon"),s=(0,i.g2)("LoadingPanel"),l=(0,i.g2)("ProgressTracker"),d=(0,i.g2)("DonationSummary"),f=(0,i.g2)("PaymentMethodSelect"),p=(0,i.g2)("router-link"),m=(0,i.g2)("DonationHeader"),h=(0,i.g2)("DonationFooter");return(0,i.uX)(),(0,i.CE)("div",fa,[(0,i.bF)(m,null,{default:(0,i.k6)(function(){return[(0,i.bF)(s,{ref:"loadingpanel"},{loading:(0,i.k6)(function(){return[(0,i.bF)(c,{icon:"spinner",pulse:""}),(0,i.Lk)("h4",null,(0,u.v_)(t.$t("paymentStatus.processing")),1)]}),failure:(0,i.k6)(function(n){return[(0,i.Lk)("h4",null,(0,u.v_)(t.$t("paymentStatus.failure")),1),(0,i.Lk)("span",pa,(0,u.v_)(n.result.message),1),(0,i.Lk)("button",{onClick:e[0]||(e[0]=function(){return a.resetPayment&&a.resetPayment.apply(a,arguments)})},(0,u.v_)(t.$t("paymentStatus.changePaymentMethod")),1)]}),_:1},512),(0,i.Lk)("div",ma,[(0,i.Lk)("div",ha,[(0,i.bF)(l,{"current-step":3}),(0,i.bF)(d),(0,i.bF)(f,{ref:"paymentmethodselect"},null,512),(0,i.Lk)("p",ya,[(0,i.bF)(p,{to:{name:t.$t("routeNames.personalDetails")},class:"btn btn-primary back"},{default:(0,i.k6)(function(){return[(0,i.bF)(c,{icon:"arrow-left"}),(0,i.eW)(" "+(0,u.v_)(t.$t("donationForm.back")),1)]}),_:1},8,["to"])]),e[1]||(e[1]=(0,i.Lk)("div",{id:"turnstile-container"},null,-1))])])]}),_:1}),(0,i.bF)(h)])}var ba=(0,o.nY)("payment",{namespaced:!0,state:function(){return{complete:!1,paymentProcessing:null,paymentSuccess:null,paymentResult:null,details:{}}},getters:{},actions:{setDetails:function(t){this.details=t},setComplete:function(t){this.complete=t},setPaymentProcessing:function(t){this.paymentProcessing=t},setPaymentSuccess:function(t){this.paymentSuccess=t},setPaymentResult:function(t){this.paymentResult=t},reset:function(){this.details={},this.complete=!1,this.paymentProcessing=!1,this.processingComplete=!1,this.paymentSuccess=null,this.paymentResult=null}}}),ga={key:0,class:"loading-panel-overlay"},_a={key:0,class:"loading"},Sa={key:1,class:"success"},ka={key:2,class:"failure"};function Aa(t,e,n,r,o,a){var c=(0,i.g2)("font-awesome-icon"),s=(0,i.g2)("TransitionFade");return(0,i.uX)(),(0,i.Wv)(s,null,{default:(0,i.k6)(function(){return[r.paymentStore.paymentProcessing?((0,i.uX)(),(0,i.CE)("div",ga,[(0,i.Lk)("div",{class:(0,u.C4)(["loading-panel",a.className])},[r.completed?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",_a,[(0,i.RG)(t.$slots,"loading",{},function(){return[(0,i.bF)(c,{icon:"spinner",pulse:""}),(0,i.Lk)("h4",null,(0,u.v_)(t.$t("paymentStatus.loading")),1)]})])),r.completed&&r.success?((0,i.uX)(),(0,i.CE)("div",Sa,[(0,i.RG)(t.$slots,"success",{result:r.result},function(){return[(0,i.Lk)("h4",null,(0,u.v_)(r.result),1)]})])):(0,i.Q3)("",!0),r.completed&&!r.success?((0,i.uX)(),(0,i.CE)("div",ka,[(0,i.RG)(t.$slots,"failure",{result:r.result},function(){return[(0,i.Lk)("h4",null,(0,u.v_)(r.result),1)]})])):(0,i.Q3)("",!0)],2)])):(0,i.Q3)("",!0)]}),_:3})}function Pa(t,e,n,o,a,u){return(0,i.uX)(),(0,i.Wv)(r.eB,{name:"fade"},{default:(0,i.k6)(function(){return[(0,i.RG)(t.$slots,"default",{},void 0,!0)]}),_:3})}var Ea={name:"TransitionFade"};const La=(0,X.A)(Ea,[["render",Pa],["__scopeId","data-v-12c6b146"]]);var Ca=La,wa={name:"LoadingPanel",setup:function(){var t=(0,h.KR)(!1),e=(0,h.KR)(null),n=(0,h.KR)(null),r=ba();return{completed:t,success:e,result:n,paymentStore:r}}
1,components:{TransitionFade:Ca},computed:{className:function(){return this.completed?this.success?"success":"failure":"loading"}},emits:["success","failure"],expose:["reset"],methods:{reset:function(){this.completed=!1,this.success=null,this.result=null}},watch:{"paymentStore.paymentSuccess":function(t){!0===t?(this.completed=!0,this.success=!0,this.result=this.paymentStore.paymentResult,this.$emit("success",this.paymentStore.paymentResult)):!1===t&&(this.completed=!0,this.success=!1,this.result=this.paymentStore.paymentResult,this.$emit("failure",this.paymentStore.paymentResult))}}};const Ta=(0,X.A)(wa,[["render",Aa]]);var Fa=Ta,Oa={class:"payment-header"},$a={class:"options form-check-group"},ja=["value","id"],Ia=["for"],Da=["aria-label","src","alt","title"],Va=["src"],Ra={key:1},Na={key:0,class:"payment"};function Ua(t,e,n,o,a,c){return(0,i.uX)(),(0,i.CE)("div",{class:(0,u.C4)(["payment-select",{error:o.v$.$error}])},[(0,i.Lk)("h3",Oa,(0,u.v_)(t.$t("payment.header")),1),(0,i.Lk)("div",$a,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(Object.keys(c.validPaymentMethods),function(n){return(0,i.uX)(),(0,i.CE)("div",{class:(0,u.C4)(["option",n]),key:n},[(0,i.bo)((0,i.Lk)("input",{type:"radio","onUpdate:modelValue":e[0]||(e[0]=function(t){return o.selectedMethod=t}),value:n,id:c.idFor(n)},null,8,ja),[[r.XL,o.selectedMethod]]),(0,i.Lk)("label",{class:"payment-checkbox",for:c.idFor(n)},[(0,i.Lk)("img",{"aria-label":t.$t("payment.methods.".concat(n,".name")),class:(0,u.C4)(n),src:t.$t("payment.methods.".concat(n,".logo")),alt:t.$t("payment.methods.".concat(n,".name")),title:t.$t("payment.methods.".concat(n,".name"))},null,10,Da),"stripe"===n&&o.applePayAvailable?((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[e[1]||(e[1]=(0,i.eW)(" Â ",-1)),"stripe"===n?((0,i.uX)(),(0,i.CE)("img",{key:0,src:t.$t("payment.methods.applepay.logo"),alt:"Apple Pay",title:"Apple Pay"},null,8,Va)):(0,i.Q3)("",!0),(0,i.Lk)("div",null,(0,u.v_)(t.$t("payment.methods.applepay.name")),1)],64)):((0,i.uX)(),(0,i.CE)("div",Ra,(0,u.v_)(t.$t("payment.methods.".concat(n,".name"))),1))],8,Ia)],2)}),128))]),c.currentComponent?((0,i.uX)(),(0,i.CE)("div",Na,[((0,i.uX)(),(0,i.Wv)((0,i.$y)(c.currentComponent),{"validate-fields":c.validateAllFields},null,8,["validate-fields"]))])):(0,i.Q3)("",!0)],2)}var xa={class:"paypal-payment"};function Ma(t,e,n,r,o,a){var c=(0,i.g2)("SubmitButton");return(0,i.uX)(),(0,i.CE)("div",xa,[(0,i.Lk)("small",null,(0,u.v_)(t.$t("payment.methods.paypal.popUpWarning")),1),(0,i.bF)(c,{onSubmitted:a.processDonation},null,8,["onSubmitted"])])}var Ya=n(4335),Ga=n(4164);function Xa(t){var e=["forename","surname","email","phone","street","zip"],n=new Ga.SensitiveParamFilter({params:Ga.SPFDefaultParams.concat(e)});return n.filter(t)}function Ka(t,e){var n=JSON.stringify(Xa(t)),r=new Error(n),o=e.donationStore.reference;r.name=o?"PaymentFailureError - Reference: ".concat(o):"PaymentFailureError","$bugsnag"in e&&e.$bugsnag.notify(r)}function qa(t){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qa(t)}function Ha(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ba(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ha(Object(n),!0).forEach(function(e){Wa(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Wa(t,e,n){return(e=Qa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qa(t){var e=za(t,"string");return"symbol"==qa(e)?e:e+""}function za(t,e){if("object"!=qa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Za(t,e){var n=Ba({},t.paymentStore.details),r=JSON.stringify(n);e.setItem("payment",r),e.location=t.$l10n.currentLocation.key}var Ja=["disabled"],ti={class:"secure-payment-container"},ei={class:"secure-payment"};function ni(t,e,n,r,o,a){var c=(0,i.g2)("font-awesome-icon");return(0,i.uX)(),(0,i.CE)("div",null,[(0,i.Lk)("button",{class:(0,u.C4)(["submit",{disabled:!a.donationValid}]),onClick:e[0]||(e[0]=function(){return a.submit&&a.submit.apply(a,arguments)}),disabled:!a.donationValid},(0,u.v_)(t.$t("donationForm.confirm")),11,Ja),(0,i.Lk)("div",ti,[(0,i.Lk)("div",ei,[(0,i.bF)(c,{icon:"lock"}),(0,i.eW)(" "+(0,u.v_)(t.$t("donationForm.paySecurely")),1)])])])}function ri(t){return ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(t)}function oi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ai(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?oi(Object(n),!0).forEach(function(e){ii(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ii(t,e,n){return(e=ui(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ui(t){var e=ci(t,"string");return"symbol"==ri(e)?e:e+""}function ci(t,e){if("object"!=ri(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ri(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function si(t,e){var n=ai({},t.donationStore.donationParams),r=JSON.stringify(n);e.setItem("donation",r),e.location=t.$l10n.currentLocation.key}var li={name:"SubmitButton",setup:function(){var t=Ht(),e=P(),n=ba();return{donationStore:e,paymentStore:n,rootStore:t}},computed:{thankYouPath:function(){return this.$t("routeNames.thankYou")},donationValid:function(){return this.rootStore.formValid&&this.rootStore.turnstileToken}},emits:["submitted"],methods:{submit:function(){this.donationValid?(this.paymentStore.setPaymentProcessing(!0),si(this,localStorage),this.$emit("submitted")):this.touchFields()},touchFields:function(){this.rootStore.touchValidationFields(!0),document.querySelector("div.error")?this.$scrollToElement(".error"):this.$scrollToTop(),this.$nextTick(function(){this.rootStore.touchValidationFields(!1)})}}};const di=(0,X.A)(li,[["render",ni],["__scopeId","data-v-3cdf011f"]]);var fi=di,pi={name:"PaypalComponent",components:{SubmitButton:fi},setup:function(){var t=ba(),e=P(),n=Ht();return{rootStore:n,paymentStore:t,donationStore:e}},mounted:function(){this.paymentStore.setComplete(!0)},methods:{processDonation:function(){var t=this,e=this.donationStore.donationParams;return Ya.A.post("".concat("/api","/paypal/serialize"),{currency:e.currency,amount:e.amount,location:this.$l10n.currentLocation.key,language:this.$l10n.currentLanguage,type:e.type,return_url:"".concat(location.origin,"/callbacks/paypal/authorised?l=").concat(this.$l10n.currentLocation.key,"&paypal_redirect=true")}).then(function(e){var n={paypalId:e.data.paypal_id};t.paymentStore.setDetails(n),Za(t,localStorage);var r=t.paymentStore.details;return r?{approveUrl:e.data.approve}:Promise.reject(new Error("Payment could not be stored"))}).then(function(t){return window.location.href=t.approveUrl,new Promise(function(){return setTimeout(function(){console.log("Waiting for window location change ...")},1e4)})}).catch(function(e){Ka(e,t),t.paymentStore.setPaymentSuccess(!1),t.paymentStore.setPaymentProcessing(!0),t.paymentStore.setComplete(!0),t.paymentStore.setPaymentResult(e)})}}};const mi=(0,X.A)(pi,[["render",Ma]]);var hi=mi,yi={class:"sepa-payment"},vi={key:0},bi={key:1,class:"confirm-payment-holder"};function gi(t,e,n,r,o,a){var c=(0,i.g2)("FormField"),s=(0,i.g2)("CheckBox"),l=(0,i.g2)("SubmitButton");return(0,i.uX)(),(0,i.CE)("div",yi,[t.$tm("payment.methods.sepa.msg")[0]?((0,i.uX)(),(0,i.CE)("small",vi,(0,u.v_)(t.$t("payment.methods.sepa.msg")),1)):(0,i.Q3)("",!0),(0,i.Lk)("div",null,[(0,i.bF)(c,{label:a.showAsteriskIfRequired("iban")+t.$t("donationForm.details.sepa.iban.label"),modelValue:r.sepa.iban,"onUpdate:modelValue":e[0]||(e[0]=function(t){return r.sepa.iban=t}),validation:r.v$.sepa.iban,theme:"light"},null,8,["label","modelValue","validation"])]),t.$l10n.currentLocation.formFields.confirmPaymentHolderRequired?((0,i.uX)(),(0,i.CE)("div",bi,[(0,i.bF)(s,{label:t.$t("payment.confirmPaymentHolder"),modelValue:r.assumedPaymentHolder,"onUpdate:modelValue":e[1]||(e[1]=function(t){return r.assumedPaymentHolder=t})},null,8,["label","modelValue"])])):(0,i.Q3)("",!0),(0,i.bF)(l,{onSubmitted:a.processDonation},null,8,["onSubmitted"])])}function _i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return Si(s,"_invoke",function(n,r,o){var a,u,c,s=0,l=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,u=0,c=t,f.n=n,i}};function p(n,r){for(u=n,c=r,e=0;!d&&s&&!o&&e<l.length;e++){var o,a=l[e],p=f.p,m=a[2];n>3?(o=m===r)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<m&&(
vendor: 4,769 bytes, line 1
1o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,u=0))}if(o||n>1)return i;throw d=!0,r}return function(o,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,m),u=l,c=m;(e=u<2?t:c)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,c)):f.n=c:f.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(d=f.n<0)?c:n.call(r,f))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:d}}}(n,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Si(e={},r,function(){return this}),e),d=s.prototype=u.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Si(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=s,Si(d,"constructor",s),Si(s,"constructor",c),c.displayName="GeneratorFunction",Si(s,o,"GeneratorFunction"),Si(d),Si(d,o,"Generator"),Si(d,r,function(){return this}),Si(d,"toString",function(){return"[object Generator]"}),(_i=function(){return{w:a,m:f}})()}function Si(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Si=function(t,e,n,r){function a(e,n){Si(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},Si(t,e,n,r)}function ki(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Ai(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(t){ki(a,r,o,i,u,"next",t)}function u(t){ki(a,r,o,i,u,"throw",t)}i(void 0)})}}function Pi(t,e){Ka(e,t),t.paymentStore.setPaymentSuccess(!1),t.paymentStore.setPaymentProcessing(!0),t.paymentStore.setComplete(!0),t.paymentStore.setPaymentResult(e)}function Ei(t,e){return Li.apply(this,arguments)}function Li(){return Li=Ai(_i().m(function t(e,n){return _i().w(function(t){while(1)switch(t.n){case 0:return e.paymentStore.setPaymentSuccess(!0),e.paymentStore.setPaymentProcessing(!1),e.paymentStore.setComplete(!0),t.n=1,e.$router.push({name:n});case 1:return t.a(2)}},t)})),Li.apply(this,arguments)}function Ci(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return wi(s,"_invoke",function(n,r,o){var a,u,c,s=0,l=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,u=0,c=t,f.n=n,i}};function p(n,r){for(u=n,c=r,e=0;!d&&s&&!o&&e<l.length;e++){var o,a=l[e],p=f.p,m=a[2];n>3?(o=m===r)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,u=0))}if(o||n>1)return i;throw d=!0,r}return function(o,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,m),u=l,c=m;(e=u<2?t:c)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,c)):f.n=c:f.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(d=f.n<0)?c:n.call(r,f))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:d}}}(n,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(wi(e={},r,function(){return this}),e),d=s.prototype=u.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,wi(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=s,wi(d,"constructor",s),wi(s,"constructor",c),c.displayName="GeneratorFunction",wi(s,o,"GeneratorFunction"),wi(d),wi(d,o,"Generator"),wi(d,r,function(){return this}),wi(d,"toString",function(){return"[object Generator]"}),(Ci=function(){return{w:a,m:f}})()}function wi(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}wi=function(t,e,n,r){function a(e,n){wi(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},wi(t,e,n,r)}function Ti(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Fi(t){return function(){var e=this,n=arguments;
1return new Promise(function(r,o){var a=t.apply(e,n);function i(t){Ti(a,r,o,i,u,"next",t)}function u(t){Ti(a,r,o,i,u,"throw",t)}i(void 0)})}}function Oi(t,e){return t.$scrollToElement(".loading-panel"),new Promise(function(n){var r=null,o=function(){var a=Fi(Ci().m(function a(){var i;return Ci().w(function(a){while(1)switch(a.p=a.n){case 0:return a.p=0,a.n=1,Ya.A.get("".concat("/api","/donation/").concat(e,"/status"));case 1:r=a.v,a.n=3;break;case 2:return a.p=2,i=a.v,t.paymentStore.setPaymentSuccess(!1),t.paymentStore.setPaymentProcessing(!0),t.paymentStore.setComplete(!0),t.paymentStore.setPaymentResult(i.message),a.a(2,n({status:"failed"}));case 3:if("pending"===r.data.status){a.n=4;break}return"failed"===r.data.status&&(t.paymentStore.setPaymentSuccess(!1),t.paymentStore.setPaymentProcessing(!0),t.paymentStore.setComplete(!0),t.paymentStore.setPaymentResult(r.data.details)),a.a(2,n(r.data));case 4:setTimeout(o,500);case 5:return a.a(2)}},a,null,[[0,2]])}));return function(){return a.apply(this,arguments)}}();o()})}var $i=n(6729),ji=n.n($i);function Ii(t){return Ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(t)}function Di(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return Vi(s,"_invoke",function(n,r,o){var a,u,c,s=0,l=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,u=0,c=t,f.n=n,i}};function p(n,r){for(u=n,c=r,e=0;!d&&s&&!o&&e<l.length;e++){var o,a=l[e],p=f.p,m=a[2];n>3?(o=m===r)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,u=0))}if(o||n>1)return i;throw d=!0,r}return function(o,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,m),u=l,c=m;(e=u<2?t:c)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,c)):f.n=c:f.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(d=f.n<0)?c:n.call(r,f))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:d}}}(n,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Vi(e={},r,function(){return this}),e),d=s.prototype=u.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Vi(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=s,Vi(d,"constructor",s),Vi(s,"constructor",c),c.displayName="GeneratorFunction",Vi(s,o,"GeneratorFunction"),Vi(d),Vi(d,o,"Generator"),Vi(d,r,function(){return this}),Vi(d,"toString",function(){return"[object Generator]"}),(Di=function(){return{w:a,m:f}})()}function Vi(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Vi=function(t,e,n,r){function a(e,n){Vi(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},Vi(t,e,n,r)}function Ri(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ni(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ri(Object(n),!0).forEach(function(e){Ui(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ui(t,e,n){return(e=xi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xi(t){var e=Mi(t,"string");return"symbol"==Ii(e)?e:e+""}function Mi(t,e){if("object"!=Ii(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Yi(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Gi(t){return function(){var e=this,n=arguments;
1return new Promise(function(r,o){var a=t.apply(e,n);function i(t){Yi(a,r,o,i,u,"next",t)}function u(t){Yi(a,r,o,i,u,"throw",t)}i(void 0)})}}var Xi={name:"SepaComponent",components:{FormField:he,CheckBox:ro,SubmitButton:fi},setup:function(){var t=P(),e=ba(),n=Ht(),r=(0,h.KR)({iban:""}),o=(0,h.KR)(!0);return{rootStore:n,donationStore:t,paymentStore:e,v$:(0,Fe.Ay)(),sepa:r,assumedPaymentHolder:o}},validations:{sepa:{iban:{required:Te.mw,iban:function(t){return ji().isValid(t)}}}},methods:{processDonation:function(){var t=this;return Gi(Di().m(function e(){var n,r,o,a,i,u;return Di().w(function(e){while(1)switch(e.p=e.n){case 0:return n=Object.assign({},Ni(Ni({},t.donationStore.donationParams),{},{payment:{adapter:"sepa",iban_number:t.paymentStore.details.iban},location:t.$l10n.currentLocation.key,language:t.$l10n.currentLanguage,turnstile_response:t.rootStore.turnstileToken})),r=null,e.p=1,e.n=2,Ya.A.post("".concat("/api","/donation"),n);case 2:r=e.v,e.n=4;break;case 3:return e.p=3,u=e.v,o=u.response?u.response.data:u,a="message"in o?o.message:o,Pi(t,a),e.a(2);case 4:return e.n=5,Oi(t,r.data.reference);case 5:if(i=e.v,"failed"!==i.status){e.n=6;break}return Pi(t,i.details),e.a(2);case 6:Ei(t,t.thankYouPath);case 7:return e.a(2)}},e,null,[[1,3]])}))()},showAsteriskIfRequired:function(t){var e=this.v$.sepa[t].required;return"none"===this.v$.sepa[t]||e&&e.$invalid?"* ":""}},computed:{thankYouPath:function(){return this.$t("routeNames.thankYou")},sepaInvalid:function(){return!1===this.assumedPaymentHolder||(!this.v$["sepa"]||this.v$.sepa.$invalid)}},watch:{"sepa.iban":function(t){t&&(this.sepa.iban=t.toUpperCase().replace(/[^A-Za-z0-9]/g,""),this.paymentStore.setDetails(Ni({},this.sepa)))},validateFields:function(){this.v$.$touch()},sepaInvalid:function(t){this.paymentStore.setComplete(!t)}},mounted:function(){this.donationStore.setReference((0,Bt.A)()),this.paymentStore.setComplete(!1),this.$l10n.currentLocation.formFields.confirmPaymentHolderRequired&&(this.assumedPaymentHolder=!1)}};const Ki=(0,X.A)(Xi,[["render",gi],["__scopeId","data-v-b4e1d262"]]);var qi=Ki,Hi={class:"smart-debit-payment"},Bi={class:"direct-debit-bank-details"},Wi={class:"form-check"},Qi={for:"account-holder-confirmed"},zi={class:"text"},Zi=["href"],Ji={class:"direct-debit-mandate-confirmation"};function tu(t,e,n,o,a,c){var s=(0,i.g2)("CollectionDateSelect"),l=(0,i.g2)("FormField"),d=(0,i.g2)("SubmitButton"),f=(0,i.gN)("mask");return(0,i.uX)(),(0,i.CE)("div",Hi,[(0,i.Lk)("div",null,[(0,i.bF)(s,{modelValue:o.smartDebit.collectionDate,"onUpdate:modelValue":e[0]||(e[0]=function(t){return o.smartDebit.collectionDate=t})},null,8,["modelValue"]),(0,i.bF)(l,{label:c.showAsteriskIfRequired("accountName")+t.$t("donationForm.details.smartDebit.accountName.label"),modelValue:o.smartDebit.accountName,"onUpdate:modelValue":e[1]||(e[1]=function(t){return o.smartDebit.accountName=t}),validation:o.v$.smartDebit.accountName},null,8,["label","modelValue","validation"]),(0,i.Lk)("div",Bi,[(0,i.bo)((0,i.bF)(l,{class:"smart-debit-account-number",label:c.showAsteriskIfRequired("accountNumber")+t.$t("donationForm.details.smartDebit.accountNumber.label"),modelValue:o.smartDebit.accountNumber,"onUpdate:modelValue":e[2]||(e[2]=function(t){return o.smartDebit.accountNumber=t}),validation:o.v$.smartDebit.accountNumber},null,8,["label","modelValue","validation"]),[[f,"########"]]),(0,i.bo)((0,i.bF)(l,{class:"smart-debit-sort-code",label:c.showAsteriskIfRequired("sortCode")+t.$t("donationForm.details.smartDebit.sortCode.label"),modelValue:o.smartDebit.sortCode,"onUpdate:modelValue":e[3]||(e[3]=function(t){return o.smartDebit.sortCode=t}),validation:o.v$.smartDebit.sortCode},null,8,["label","modelValue","validation"]),[[f,"## ## ##"]])])]),(0,i.Lk)("div",null,[(0,i.Lk)("p",null,[(0,i.Lk)("small",null,(0,u.v_)(t.$t("donationForm.details.smartDebit.accountHolder.text-part-1")),1)]),(0,i.Lk)("div",Wi,[(0,i.bo)((0,i.Lk)("input",{type:"checkbox",id:"account-holder-confirmed","onUpdate:modelValue":e[4]||(e[4]=function(t){return o.accountHolderConfirmed=t}),required:""},null,512),[[r.lH,o.accountHolderConfirmed]]),(0,i.Lk)("label",Qi,[e[5]||(e[5]=(0,i.Lk)("span",{class:"check"},null,-1)),(0,i.Lk)("span",zi,(0,u.v_)(t.$t("donationForm.details.smartDebit.confirmationLabel")),1)])]),(0,i.Lk)("p",null,[(0,i.eW)((0,u.v_)(t.$t("donationForm.details.smartDebit.accountHolder.text-part-2"))+" ",1),(0,i.Lk)("a",{href:t.$t("donationForm.details.smartDebit.accountHolder.downloadableForm.url"),target:"_blank"},(0,u.v_)(t.$t("donationForm.details.smartDebit.accountHolder.downloadableForm.text")),9,Zi)])]),(0,i.Lk)("div",Ji,[(0,i.Lk)("details",null,[(0,i.Lk)("summary",null,(0,u.v_)(t.$t("donationForm.details.smartDebit.directDebitGuarantee.title")),1),(0,i.Lk)("ul",null,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(t.$tm("donationForm.details.smartDebit.directDebitGuarantee.list"),function(t){return(0,i.uX)(),(0,i.CE)("li",{key:t}
1,(0,u.v_)(t),1)}),128))])])]),(0,i.bF)(d,{onSubmitted:c.processDonation},null,8,["onSubmitted"])])}var eu=n(9928),nu={class:"collection-date-select"},ru={class:"options"},ou=["id","value"],au=["for"];function iu(t,e,n,o,a,c){return(0,i.uX)(),(0,i.CE)("div",nu,[(0,i.Lk)("label",null,(0,u.v_)(t.$t("donationForm.details.smartDebit.collectionDate.label"))+":",1),(0,i.Lk)("div",ru,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(c.availableCollectionDates,function(t,n){return(0,i.uX)(),(0,i.CE)("div",{class:(0,u.C4)(["option","day-".concat(n)]),key:n},[(0,i.bo)((0,i.Lk)("input",{type:"radio",id:c.idFor(n),"onUpdate:modelValue":e[0]||(e[0]=function(t){return c.model=t}),value:n},null,8,ou),[[r.XL,c.model]]),(0,i.Lk)("label",{for:c.idFor(n)},(0,u.v_)(t),9,au)],2)}),128))])])}var uu={name:"CollectionDateSelect",setup:function(){var t=(0,h.KR)((0,Bt.A)());return{uniqueId:t}},props:{modelValue:{type:String,default:"1"}},emits:["update:modelValue"],computed:{model:{get:function(){return this.modelValue},set:function(t){this.$emit("update:modelValue",t)}},availableCollectionDates:function(){return this.$l10n.availableCollectionDates}},methods:{idFor:function(t){return"element-".concat(this.uniqueId,"-").concat(t)}}};const cu=(0,X.A)(uu,[["render",iu],["__scopeId","data-v-17a25348"]]);var su=cu;function lu(t){return lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(t)}function du(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return fu(s,"_invoke",function(n,r,o){var a,u,c,s=0,l=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,u=0,c=t,f.n=n,i}};function p(n,r){for(u=n,c=r,e=0;!d&&s&&!o&&e<l.length;e++){var o,a=l[e],p=f.p,m=a[2];n>3?(o=m===r)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,u=0))}if(o||n>1)return i;throw d=!0,r}return function(o,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,m),u=l,c=m;(e=u<2?t:c)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,c)):f.n=c:f.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(d=f.n<0)?c:n.call(r,f))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:d}}}(n,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(fu(e={},r,function(){return this}),e),d=s.prototype=u.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,fu(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=s,fu(d,"constructor",s),fu(s,"constructor",c),c.displayName="GeneratorFunction",fu(s,o,"GeneratorFunction"),fu(d),fu(d,o,"Generator"),fu(d,r,function(){return this}),fu(d,"toString",function(){return"[object Generator]"}),(du=function(){return{w:a,m:f}})()}function fu(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}fu=function(t,e,n,r){function a(e,n){fu(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},fu(t,e,n,r)}function pu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function mu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?pu(Object(n),!0).forEach(function(e){hu(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function hu(t,e,n){return(e=yu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yu(t){var e=vu(t,"string");return"symbol"==lu(e)?e:e+""}function vu(t,e){if("object"!=lu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=lu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function bu(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function gu(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(t){bu(a,r,o,i,u,"next",t)}function u(t){bu(a,r,o,i,u,"throw",t)}i(void 0)})}}var _u={name:"SmartdebitComponent",components:{FormField:he,CollectionDateSelect:su,SubmitButton:fi},props:{validateFields:{type:Boolean,default:!1}},directives:{mask:eu.mask},setup:function(){var t=Ht(),e=P(),n=ba(),r=(0,h.KR)({accountName:"",sortCode:"",accountNumber:"",collectionDate:"1"}),o=(0,h.KR)(!1);return{donationStore:e,paymentStore:n,rootStore:t,v$:(0,Fe.Ay)(),smartDebit:r,accountHolderConfirmed:o}},validations:{smartDebit:{accountName:{required:Te.mw,minLength:(0,Te.Bp)(3)},accountNumber:{required:Te.mw,minLength:(0,Te.Bp)(8)},sortCode:{required:Te.mw,minLength:(0,Te.Bp)(8)}}},methods:{processDonation:function(){var t=this;return gu(du().m(function e(){var n,r,o,a,i,u,c;return du().w(function(e){while(1)switch(e.p=e.n){case 0:return n={adapter:"smartdebit",sort_code:t.paymentStore.details.sortCode.replace(/-|\s/g,""),account_number:t.paymentStore.details.accountNumber,account_name:t.paymentStore.details.accountName,chosen_day:t.paymentStore.details.collectionDate},r=Object.assign({},mu(mu({},t.donationStore.donationParams),{},{payment:mu({},n),location:t.$l10n.currentLocation.key,language:t.$l10n.currentLanguage,turnstile_response:t.rootStore.turnstileToken})),o=null,e.p=1,e.n=2,Ya.A.post("".concat("/api","/donation"),r);case 2:o=e.v,e.n=4;break;case 3:return e.p=3,c=e.v,a=c.response?c.response.data:c,i="message"in a?a.message:a,Pi(t,i),e.a(2);case 4:return e.n=5,Oi(t,o.data.reference);case 5:if(u=e.v,"failed"!==u.status){e.n=6;break}return Pi(t,u.details),e.a(2);case 6:Ei(t,t.thankYouPath);case 7:return e.a(2)}},e,null,[[1,3]])}))()},showAsteriskIfRequired:function(t){var e=this.v$.smartDebit[t].required;return"none"===this.v$.smartDebit[t]||e&&e.$invalid?"* ":""}},computed:{smartDebitValid:function(){return!!this.v$["smartDebit"]&&!this.v$.smartDebit.$invalid},frequency:function(){return this.donationStore.type},thankYouPath:function(){return this.$t("routeNames.thankYou")}},watch:{smartDebitValid:function(t){this.paymentStore.setComplete(t&&this.accountHolderConfirmed)},accountHolderConfirmed:function(t){this.paymentStore.setComplete(t&&this.smartDebitValid)},smartDebit:{handler:function(){this.paymentStore.setDetails(mu({},this.smartDebit))},deep:!0},validateFields:function(t){this.v$.$touch()},frequency:function(){this.smartDebit.collectionDate="1"}},mounted:function(){this.donationStore.setType("monthly"),this.rootStore.setHiddenFrequencies(["oneOff"]),this.donationStore.setReference((0,Bt.A)().substring(0,18)),this.paymentStore.setComplete(!1)},beforeUnmount:function(){this.rootStore.setHiddenFrequencies([])}};const Su=(0,X.A)(_u,[["render",tu],["__scopeId","data-v-7531c5ee"]]);var ku=Su,Au={class:"stripe-payment"},Pu={class:"payment-element",ref:"element"};function Eu(t,e,n,r,o,a){var u=(0,i.g2)("SubmitButton");return(0,i.uX)(),(0,i.CE)("div",Au,[(0,i.Lk)("div",Pu,null,512),(0,i.bF)(u,{onSubmitted:a.processDonation},null,8,["onSubmitted"])])}function Lu(t){return Lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lu(t)}function Cu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Tu(r.key),r)}}function wu(t,e,n){return e&&Cu(t.prototype,e),n&&Cu(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tu(t){var e=Fu(t,"string");return"symbol"==Lu(e)?e:e+""}function Fu(t,e){if("object"!=Lu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Lu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ou(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $u(t,e,n){return e=Mu(e),ju(t,Nu()?Reflect.construct(e,n||[],Mu(t).constructor):e.apply(t,n))}function ju(t,e){if(e&&("object"==Lu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Iu(t)}function Iu(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Du(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xu(t,e)}function Vu(t){var e="function"==typeof Map?new Map:void 0;return Vu=function(t){if(null===t||!Uu(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return Ru(t,arguments,Mu(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),xu(n,t)},Vu(t)}function Ru(t,e,n){if(Nu())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&xu(o,n.prototype),o}function Nu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Nu=function(){return!!t})()}function Uu(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}function xu(t,e){return xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xu(t,e)}function Mu(t){return Mu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mu(t)}var Yu=function(t){function e(t){var n;return Ou(this,e),n=$u(this,e,[t]),n.name="StripeApiKeyError",n}return Du(e,t),wu(e)}(Vu(Error));function Gu(t,e){try{t.createToken("pii",{personal_id_number:"test"}).then(function(t){if(!t.token)throw new Yu("".concat(e," - Invalid"));console.log("valid stripe apiKey")})}catch(n){console.log("Invalid stripe apiKey")}}function Xu(t){return Xu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xu(t)}function Ku(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return qu(s,"_invoke",function(n,r,o){var a,u,c,s=0,l=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,u=0,c=t,f.n=n,i}};function p(n,r){for(u=n,c=r,e=0;!d&&s&&!o&&e<l.length;e++){var o,a=l[e],p=f.p,m=a[2];n>3?(o=m===r)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<m&&(
1o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,u=0))}if(o||n>1)return i;throw d=!0,r}return function(o,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,m),u=l,c=m;(e=u<2?t:c)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,c)):f.n=c:f.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(d=f.n<0)?c:n.call(r,f))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:d}}}(n,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(qu(e={},r,function(){return this}),e),d=s.prototype=u.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,qu(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=s,qu(d,"constructor",s),qu(s,"constructor",c),c.displayName="GeneratorFunction",qu(s,o,"GeneratorFunction"),qu(d),qu(d,o,"Generator"),qu(d,r,function(){return this}),qu(d,"toString",function(){return"[object Generator]"}),(Ku=function(){return{w:a,m:f}})()}function qu(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}qu=function(t,e,n,r){function a(e,n){qu(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},qu(t,e,n,r)}function Hu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Bu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hu(Object(n),!0).forEach(function(e){Wu(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Wu(t,e,n){return(e=Qu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qu(t){var e=zu(t,"string");return"symbol"==Xu(e)?e:e+""}function zu(t,e){if("object"!=Xu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Xu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Zu(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Ju(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(t){Zu(a,r,o,i,u,"next",t)}function u(t){Zu(a,r,o,i,u,"throw",t)}i(void 0)})}}var tc={name:"StripeComponent",components:{SubmitButton:fi},setup:function(){var t=P(),e=ba(),n=Ht(),r=null,o=null;return{rootStore:n,donationStore:t,paymentStore:e,stripe:r,elements:o}},computed:{thankYouPath:function(){return this.$t("routeNames.thankYou")}},methods:{processDonation:function(){var t=this;return Ju(Ku().m(function e(){var n,r,o,a,i,u,c,s,l,d,f,p,m,h,y,v,b,g;return Ku().w(function(e){while(1)switch(e.p=e.n){case 0:return t.$
1scrollToElement(".column"),e.n=1,t.elements.submit();case 1:if(n=e.v,r=n.error,!r){e.n=2;break}return Pi(t,r),e.a(2);case 2:return o=t.elements,a=Bu(Bu({},t.donationStore.donationParams),{},{payment:{adapter:"stripe",reference:t.donationStore.reference},location:t.$l10n.currentLocation.key,language:t.$l10n.currentLanguage,turnstile_response:t.rootStore.turnstileToken}),i=null,e.p=3,e.n=4,Ya.A.post("".concat("/api","/donation"),a);case 4:i=e.v,e.n=6;break;case 5:return e.p=5,v=e.v,u=v.response?v.response.data:v,c="message"in u?u.message:u,Pi(t,c),e.a(2);case 6:return s=i.data.client_secret,l=i.data.reference,d="".concat(location.origin,"/callbacks/stripe/authorised?l=").concat(t.$l10n.currentLocation.key,"&reference=").concat(l),e.p=7,e.n=8,t.stripe.confirmPayment({elements:o,clientSecret:s,confirmParams:{return_url:d},redirect:"if_required"});case 8:m=e.v,f=m.error,p=m.paymentIntent,e.n=14;break;case 9:return e.p=9,b=e.v,e.p=10,e.n=11,Ya.A.patch("".concat("/api","/donation/").concat(l,"/failure"));case 11:e.n=13;break;case 12:e.p=12,e.v;case 13:return Pi(t,b),e.a(2);case 14:if(!f){e.n=19;break}return e.p=15,e.n=16,Ya.A.patch("".concat("/api","/donation/").concat(l,"/failure"));case 16:e.n=18;break;case 17:e.p=17,e.v;case 18:return Pi(t,f),e.a(2);case 19:if("succeeded"===p.status){e.n=24;break}return e.p=20,e.n=21,Ya.A.patch("".concat("/api","/donation/").concat(l,"/failure"));case 21:e.n=23;break;case 22:e.p=22,e.v;case 23:return Pi(t,new Error(t.$t("paymentStatus.paymentIncomplete"))),e.a(2);case 24:return e.p=24,e.n=25,Ya.A.post("".concat("/api","/donation/").concat(l,"/confirm"));case 25:e.n=27;break;case 26:return e.p=26,g=e.v,h=g.response?g.response.data:g,y="message"in h?h.message:h,Pi(t,y),e.a(2);case 27:Ei(t,t.thankYouPath);case 28:return e.a(2)}},e,null,[[24,26],[20,22],[15,17],[10,12],[7,9],[3,5]])}))()}},mounted:function(){var t=this,e=this.$l10n.paymentMethods.stripe,n={VUE_APP_I18N_LOCALE:"en_gb",VUE_APP_I18N_FALLBACK_LOCALE:"en_gb",VUE_APP_BACKEND_HOST:"/api",VUE_APP_STRIPE_API_KEY_DE:"pk_live_QA7jjh12yP5Kv6sThHrG5Fu8",VUE_APP_STRIPE_API_KEY_ES:"pk_live_lbIZaW9QcUkQqRywXKMbl1iU",VUE_APP_STRIPE_API_KEY_GB:"pk_live_AVEBhH72Ab4fXEG5heJWpNDi",VUE_APP_STRIPE_API_KEY_FR:"pk_live_JZv2FotuPPzMeaHIeJPsqfrm",VUE_APP_STRIPE_API_KEY_IT:"pk_live_TnTQhSAabEWSCWuIf4nj4rfl",VUE_APP_STRIPE_API_KEY_PT:"pk_live_wJB5ePbVEhe7NO8ohnAvNZX7",VUE_APP_STRIPE_API_KEY_US:"pk_live_51AA1IYFpgOJXHv3IY6du7H6Y7OFhiAenyeAiejmcu0dhvYszeu258AI99A0zkXvwBfHQeAae2LC1diPA3FMhwt1100A7UDDYGT",VUE_APP_BUGSNAG_KEY:"d7091c6e89ed90da9b48792ea2900aea",VUE_APP_GA_MEASUREMENT_ID:"G-VBQT0CYZ12",VUE_APP_RECAPTCHA_PUBLIC_KEY:"6Lei_NgaAAAAAOywskBfRYIVAhLbUgiuN0SPGjzC",VUE_APP_RECAPTCHA_PRIVATE_KEY:"6Lei_NgaAAAAAMvusz8PCFrEG9yIXme_r7vH398y",VUE_APP_RECAPTCHA_v3_PUBLIC_KEY:"6Lfz3qYfAAAAAM8dM3PMMksAwYGG-cCXZEhR6M06",VUE_APP_RECAPTCHA_v3_PRIVATE_KEY:"6Lfz3qYfAAAAAATTrVZP-fp-AxjQCZROiXct1E9M",VUE_APP_TURNSTILE_SITE_KEY:"0x4AAAAAAA15vYRWWzqO7AuB",NODE_ENV:"production",BASE_URL:"/"}[e.apiKey];this.donationStore.setReference((0,Bt.A)()),this.paymentStore.setComplete(!1),this.$loadScript("https://js.stripe.com/v3/").then(function(){return t.stripe=new Stripe({VUE_APP_I18N_LOCALE:"en_gb",VUE_APP_I18N_FALLBACK_LOCALE:"en_gb",VUE_APP_BACKEND_HOST:"/api",VUE_APP_STRIPE_API_KEY_DE:"pk_live_QA7jjh12yP5Kv6sThHrG5Fu8",VUE_APP_STRIPE_API_KEY_ES:"pk_live_lbIZaW9QcUkQqRywXKMbl1iU",VUE_APP_STRIPE_API_KEY_GB:"pk_live_AVEBhH72Ab4fXEG5heJWpNDi",VUE_APP_STRIPE_API_KEY_FR:"pk_live_JZv2FotuPPzMeaHIeJPsqfrm",VUE_APP_STRIPE_API_KEY_IT:"pk_live_TnTQhSAabEWSCWuIf4nj4rfl",VUE_APP_STRIPE_API_KEY_PT:"pk_live_wJB5ePbVEhe7NO8ohnAvNZX7",VUE_APP_STRIPE_API_KEY_US:"pk_live_51AA1IYFpgOJXHv3IY6du7H6Y7OFhiAenyeAiejmcu0dhvYszeu258AI99A0zkXvwBfHQeAae2LC1diPA3FMhwt1100A7UDDYGT",VUE_APP_BUGSNAG_KEY:"d7091c6e89ed90da9b48792ea2900aea",VUE_APP_GA_MEASUREMENT_ID:"G-VBQT0CYZ12",VUE_APP_RECAPTCHA_PUBLIC_KEY:"6Lei_NgaAAAAAOywskBfRYIVAhLbUgiuN0SPGjzC",VUE_APP_RECAPTCHA_PRIVATE_KEY:"6Lei_NgaAAAAAMvusz8PCFrEG9yIXme_r7vH398y",VUE_APP_RECAPTCHA_v3_PUBLIC_KEY:"6Lfz3qYfAAAAAM8dM3PMMksAwYGG-cCXZEhR6M06",VUE_APP_RECAPTCHA_v3_PRIVATE_KEY:"6Lfz3qYfAAAAAATTrVZP-fp-AxjQCZROiXct1E9M",VUE_APP_TURNSTILE_SITE_KEY:"0x4AAAAAAA15vYRWWzqO7AuB",NODE_ENV:"production",BASE_URL:"/"}[e.apiKey],{locale:e.locale}),Gu(t.stripe,n),t.stripe}).then(Ju(Ku().m(function e(){var n,r,o,a,i;return Ku().w(function(e){while(1)switch(e.n){case 0:n=t.$l10n.amountInCents(t.donationStore.amount,t.donationStore.currency),r={currency:t.donationStore.currency,amount:n,appearance:{theme:"flat"},layout:{type:"accordion",defaultCollapsed:!1,radios:!1,spacedAccordionItems:!0}},o="oneOff"===t.donationStore.type?"payment":"subscription",a=t.stripe.elements(Bu({mode:o},r)),t.elements=a,i=a.create("payment",{defaultValues:{billingDetails:{address:{postal_code:t.donationStore.zip,country:t.donationStore.country}}}}),i.mount(t.$refs.element),i.on("change",function(){var e=Ju(Ku().m(function e(n){var r;return Ku().w(function(e){while(1)switch(e.n){case 0:r=n.complete,t.paymentStore.setComplete(r);case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}());case 1:return e.a(2)}},e)})))}};const ec=(0,X.A)(tc,[["render",Eu],["__scopeId","data-v-201004d0"]]);var nc=ec,rc={name:"PaymentMethodSelect",components:{TransitionSlide:rr,PaypalComponent:hi,StripeComponent:nc,SepaComponent:qi,SmartdebitComponent:ku},expose:["resetPayment"],setup:function(){var t=P(),e=ba(),n=Ht(),r=(0,h.KR)(null),o=(0,h.KR)((0,Bt.A)()),a=(0,h.KR)({}),i=(0,h.Kh)({stripe:"StripeComponent",sepa:"SepaComponent",payp
1al:"PaypalComponent",smartdebit:"SmartdebitComponent"}),u=(0,h.Kh)({cc:"stripe",dd:"smartdebit",py:"paypal",se:"sepa"}),c=(0,h.KR)(!1);return{v$:(0,Fe.Ay)(),donationStore:t,paymentStore:e,rootStore:n,selectedMethod:r,uniqueId:o,paymentMethods:a,components:i,paymentMethodShorthands:u,applePayAvailable:c}},computed:{donation:function(){return this.donationStore.currentDonation},currentComponent:function(){return this.components[this.selectedMethod]},validPaymentMethods:function(){var t=this,e=this.paymentMethods;return"eur"!==this.donation.currency&&delete e.sepa,"oneOff"!==this.donation.type&&"gbp"===this.donation.currency||delete e.smartdebit,"rmvPymnt"in this.rootStore.queryParams&&this.rootStore.queryParams.rmvPymnt.split(",").forEach(function(n){var r=t.paymentMethodShorthands[n];delete e[r]}),e},validateAllFields:function(){return this.rootStore.validateAllFields},paymentDetailsComplete:function(){return this.paymentStore.complete}},validations:function(){return{paymentDetailsComplete:{required:Te.mw,paymentDetailsComplete:function(t){return!0===t}}}},watch:{selectedMethod:function(t){null===t&&this.resetPayment()},paymentDetailsComplete:function(t){this.rootStore.setValidationPaymentMethodSelect(t),this.v$.$touch()},validPaymentMethods:function(){var t=Object.keys(this.validPaymentMethods).includes(this.selectedMethod);t||this.resetPayment()},validateAllFields:function(){this.v$.$touch()},"v$.$invalid":function(t){this.rootStore.setValidationPaymentMethodSelect(!t)}},methods:{idFor:function(t){return"element-".concat(this.uniqueId,"-").concat(t)},resetPayment:function(){this.paymentStore.reset(),this.selectedMethod=null},detectApplePay:function(){return window.ApplePaySession&&ApplePaySession.canMakePayments()?(console.log("Apple Pay is available on this device"),!0):(console.log("Apple Pay is not available on this device"),!1)}},mounted:function(){this.paymentMethods=this.$l10n.currentLocation.paymentMethods,this.applePayAvailable=this.detectApplePay()}};const oc=(0,X.A)(rc,[["render",Ua],["__scopeId","data-v-58edec06"]]);var ac=oc,ic={name:"PaymentDetails",components:{DonationFooter:Un,DonationHeader:ir,PaymentMethodSelect:ac,LoadingPanel:Fa,ProgressTracker:To,DonationSummary:qr},setup:function(){var t=Ht(),e=P(),n=ba(),r=null;return{donationStore:e,paymentStore:n,rootStore:t,turnstileWidgetId:r}},methods:{resetPayment:function(){this.donationStore.setReference((0,Bt.A)()),this.$refs.loadingpanel.reset(),this.$refs.paymentmethodselect.resetPayment()}},mounted:function(){var t=this;this.$scrollToElement(".column"),"undefined"==typeof turnstile?this.$loadScript("https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",{async:!1}).then(function(){t.turnstileWidgetId=turnstile.ready(function(){turnstile.render("#turnstile-container",{sitekey:"0x4AAAAAAA15vYRWWzqO7AuB",theme:"light",size:"normal",language:t.$l10n.currentLanguage,callback:function(e){t.rootStore.setTurnstileToken(e)}})})}):turnstile.reset(this.turnstileWidgetId),Object.fromEntries(new URLSearchParams(window.location.search))["failed_stripe_authorisation"]&&(this.rootStore.setValidationForm(!0),Pi(this,this.donationStore.details["authorisation_error"]),this.$nextTick(function(){t.paymentStore.setPaymentProcessing(!0)}))}};const uc=(0,X.A)(ic,[["render",va],["__scopeId","data-v-94a30e66"]]);var cc=uc,sc={class:"callback"};function lc(t,e,n,r,o,a){return(0,i.uX)(),(0,i.CE)("div",sc,[r.component?((0,i.uX)(),(0,i.Wv)((0,i.$y)(r.component),{key:0})):(0,i.Q3)("",!0)])}var dc={class:"page-body"},fc={class:"loading-panel-overlay"},pc={class:"loading-panel"},mc={class:"loading"};function hc(t,e,n,r,o,a){var c=(0,i.g2)("font-awesome-icon");return(0,i.uX)(),(0,i.CE)("div",dc,[(0,i.Lk)("div",fc,[(0,i.Lk)("div",pc,[(0,i.Lk)("div",mc,[(0,i.bF)(c,{icon:"spinner",pulse:""}),(0,i.Lk)("h4",null,(0,u.v_)(t.$t("paymentStatus.loading")),1)])])])])}function yc(t){try{var e="__storage_test__";return t.setItem(e,e),t.removeItem(e),!0}catch(n){return n instanceof DOMException&&(22===n.code||1014===n.co
1de||"QuotaExceededError"===n.name||"NS_ERROR_DOM_QUOTA_REACHED"===n.name)&&t&&0!==t.length}}function vc(t,e){if(yc(e)){var n={};return!!e.getItem("donation")&&(n=JSON.parse(e.getItem("donation")),t.donationStore.setReference(n.reference),t.donationStore.setType(n.type),t.donationStore.setAmount(n.amount),t.donationStore.setForename(n.forename),t.donationStore.setSurname(n.surname),t.donationStore.setEmail(n.email),t.donationStore.setPhone(n.phone),t.donationStore.setCurrency(n.currency),t.donationStore.setStreet(n.street),t.donationStore.setZip(n.zip),t.donationStore.setCity(n.city),t.donationStore.setState(n.state),t.donationStore.setCountry(n.country),t.donationStore.setGiftaid(n.giftaid),t.donationStore.setNewsletter(n.newsletter),t.donationStore.setUtms(n.utms),n)}}function bc(t,e){if(yc(e)){var n={};return!!e.getItem("payment")&&(n=JSON.parse(e.getItem("payment")),t.paymentStore.setDetails(n),n)}}var gc={name:"PaypalAuthorisedCallback",setup:function(){var t=ba(),e=P(),n=Ht(),r=(0,h.Kh)({title:""});return(0,E.u)({title:(0,i.EW)(function(){return r.title})}),{siteData:r,rootStore:n,paymentStore:t,donationStore:e}},beforeMount:function(){this.siteData.title="".concat(this.$t("paymentStatus.loading")," - Paypal")},computed:{token:function(){return this.rootStore.queryParams.token}},methods:{submit:function(t){var e=this;Ya.A.post("".concat("/api","/donation"),t).then(function(){return Oi(e,t.reference)}).then(function(t){"failed"!==t.status?e.$router.push({name:e.$t("routeNames.thankYou")}):e.handleFailure()}).catch(function(t){"$bugsnag"in e&&e.$bugsnag.notify(t),e.handleFailure()})},handleFailure:function(){var t={payment_cancelled:!0};localStorage.location&&(t.l=localStorage.location),this.$router.push({path:"/",query:t})}},mounted:function(){var t=vc(this,localStorage),e=bc(this,localStorage);if(t&&e){var n=Object.assign({},t,{payment:{token:this.token,adapter:"paypal",paypal_id:this.paymentStore.details.paypalId},location:this.$l10n.currentLocation.key,language:this.$l10n.currentLanguage});this.submit(n)}else this.handleFailure()}};const _c=(0,X.A)(gc,[["render",hc],["__scopeId","data-v-1a7eadf2"]]);var Sc=_c,kc={class:"page-body"},Ac={class:"loading-panel-overlay"},Pc={class:"loading-panel"},Ec={class:"loading"};function Lc(t,e,n,r,o,a){var c=(0,i.g2)("font-awesome-icon");return(0,i.uX)(),(0,i.CE)("div",kc,[(0,i.Lk)("div",Ac,[(0,i.Lk)("div",Pc,[(0,i.Lk)("div",Ec,[(0,i.bF)(c,{icon:"spinner",pulse:""}),(0,i.Lk)("h4",null,(0,u.v_)(t.$t("paymentStatus.loading")),1)])])])])}function Cc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return wc(s,"_invoke",function(n,r,o){var a,u,c,s=0,l=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,u=0,c=t,f.n=n,i}};function p(n,r){for(u=n,c=r,e=0;!d&&s&&!o&&e<l.length;e++){var o,a=l[e],p=f.p,m=a[2];n>3?(o=m===r)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,u=0))}if(o||n>1)return i;throw d=!0,r}return function(o,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,m),u=l,c=m;(e=u<2?t:c)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,c)):f.n=c:f.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(d=f.n<0)?c:n.call(r,f))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:d}}}(n,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(wc(e={},r,function(){return this}),e),d=s.prototype=u.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,wc(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=s,wc(d,"constructor",s),wc(s,"constructor",c),c.displayName="GeneratorFunction",wc(s,o,"GeneratorFunction"),wc(d),wc(d,o,"Generator"),wc(d,r,function(){return this}),wc(d,"toString",function(){return"[object Generator]"}),(Cc=function(){return{w:a,m:f}})()}function wc(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}wc=function(t,e,n,r){function a(e,n){wc(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},wc(t,e,n,r)}function Tc(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Fc(t){return function(){var e=this,n=arguments;
1return new Promise(function(r,o){var a=t.apply(e,n);function i(t){Tc(a,r,o,i,u,"next",t)}function u(t){Tc(a,r,o,i,u,"throw",t)}i(void 0)})}}var Oc={name:"StripeAuthorisedCallback",setup:function(){var t=ba(),e=P(),n=Ht(),r=(0,h.Kh)({title:""}),o=null;return(0,E.u)({title:(0,i.EW)(function(){return r.title})}),{siteData:r,rootStore:n,paymentStore:t,donationStore:e,stripe:o}},beforeMount:function(){this.siteData.title="".concat(this.$t("paymentStatus.loading")," - Stripe")},methods:{handleFailure:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e={payment_cancelled:!0,failed_stripe_authorisation:!0},n=Object.assign({},this.donationStore.details,{authorisation_error:t});this.donationStore.setDetails(n),localStorage.location&&(e.l=localStorage.location),this.$router.push({name:this.$t("routeNames.paymentDetails"),query:e})},processAuthorisation:function(){var t=this;return Fc(Cc().m(function e(){var n,r,o,a,i,u,c;return Cc().w(function(e){while(1)switch(e.p=e.n){case 0:if(n=t.rootStore.queryParams.reference,r=t.rootStore.queryParams.payment_intent_client_secret,o=t.rootStore.queryParams.redirect_status,n){e.n=1;break}return t.handleFailure(t.$t("paymentStatus.failure")),e.a(2);case 1:if("failed"!==o){e.n=11;break}return e.p=2,e.n=3,Ya.A.patch("".concat("/api","/donation/").concat(n,"/failure"));case 3:e.n=5;break;case 4:e.p=4,e.v;case 5:return a=t.$l10n.paymentMethods.stripe,e.n=6,t.$loadScript("https://js.stripe.com/v3/");case 6:return t.stripe=new Stripe({VUE_APP_I18N_LOCALE:"en_gb",VUE_APP_I18N_FALLBACK_LOCALE:"en_gb",VUE_APP_BACKEND_HOST:"/api",VUE_APP_STRIPE_API_KEY_DE:"pk_live_QA7jjh12yP5Kv6sThHrG5Fu8",VUE_APP_STRIPE_API_KEY_ES:"pk_live_lbIZaW9QcUkQqRywXKMbl1iU",VUE_APP_STRIPE_API_KEY_GB:"pk_live_AVEBhH72Ab4fXEG5heJWpNDi",VUE_APP_STRIPE_API_KEY_FR:"pk_live_JZv2FotuPPzMeaHIeJPsqfrm",VUE_APP_STRIPE_API_KEY_IT:"pk_live_TnTQhSAabEWSCWuIf4nj4rfl",VUE_APP_STRIPE_API_KEY_PT:"pk_live_wJB5ePbVEhe7NO8ohnAvNZX7",VUE_APP_STRIPE_API_KEY_US:"pk_live_51AA1IYFpgOJXHv3IY6du7H6Y7OFhiAenyeAiejmcu0dhvYszeu258AI99A0zkXvwBfHQeAae2LC1diPA3FMhwt1100A7UDDYGT",VUE_APP_BUGSNAG_KEY:"d7091c6e89ed90da9b48792ea2900aea",VUE_APP_GA_MEASUREMENT_ID:"G-VBQT0CYZ12",VUE_APP_RECAPTCHA_PUBLIC_KEY:"6Lei_NgaAAAAAOywskBfRYIVAhLbUgiuN0SPGjzC",VUE_APP_RECAPTCHA_PRIVATE_KEY:"6Lei_NgaAAAAAMvusz8PCFrEG9yIXme_r7vH398y",VUE_APP_RECAPTCHA_v3_PUBLIC_KEY:"6Lfz3qYfAAAAAM8dM3PMMksAwYGG-cCXZEhR6M06",VUE_APP_RECAPTCHA_v3_PRIVATE_KEY:"6Lfz3qYfAAAAAATTrVZP-fp-AxjQCZROiXct1E9M",VUE_APP_TURNSTILE_SITE_KEY:"0x4AAAAAAA15vYRWWzqO7AuB",NODE_ENV:"production",BASE_URL:"/"}[a.apiKey],{locale:a.locale}),i=t.$t("paymentStatus.failure"),e.p=7,e.n=8,t.stripe.retrievePaymentIntent(r);case 8:u=e.v,i=u.paymentIntent.last_payment_error.message,e.n=10;break;case 9:e.p=9,e.v;case 10:return t.handleFailure(i),e.a(2);case 11:return e.p=11,e.n=12,Ya.A.post("".concat("/api","/donation/").concat(n,"/confirm"));case 12:e.n=14;break;case 13:return e.p=13,c=e.v,"$bugsnag"in t&&t.$bugsnag.notify(c),t.handleFailure(t.$t("paymentStatus.failure")),e.a(2);case 14:Oi(t,n).then(function(e){"failed"===e.status?t.handleFailure(t.$t("paymentStatus.failure")):t.$router.push({name:t.$t("routeNames.thankYou")})}).catch(function(e){"$bugsnag"in t&&t.$bugsnag.notify(e),t.handleFailure(t.$t("paymentStatus.failure"))});case 15:return e.a(2)}},e,null,[[11,13],[7,9],[2,4]])}))()}},mounted:function(){this.processAuthorisation()}};const $c=(0,X.A)(Oc,[["render",Lc],["__scopeId","data-v-0540c614"]]);var jc=$c,Ic={name:"PaymentCallback",setup:function(){var t=(0,h.KR)(null);return{component:t}},props:{adapter:{type:String,required:!0},callback:{type:String,required:!0}},components:{PaypalAuthorisedCallback:Sc,StripeAuthorisedCallback:jc},methods:{getComponent:function(){var t=this.adapter,e=this.callback;"paypal"===t&&"authorised"===e?this.component=(0,h.IG)(Sc):"stripe"===t&&"authorised"===e&&(this.component=(0,h.IG)(jc))}},created:function(){this.getComponent()},watch:{adapter:function(){this.getComponent()},callback:function(){this.getComponent()}}};const Dc=(0,X.A)(Ic,[["render",lc]]);var Vc=Dc,Rc={class:"with-navigation"};function Nc(t,e,n,r,o,a){var u=(0,i.g2)("MainNav"),c=(0,i.g2)("router-view"),s=(0,i.g2)("MainFooter");return(0,i.uX)(),(0,i.CE)("div",Rc,[(0,i.bF)(u),(0,i.bF)(c),(0,i.bF)(s)])}function Uc(t){return Gc(t)||Yc(t)||Mc(t)||xc()}function xc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mc(t,e){if(t){if("string"==typeof t)return Xc(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xc(t,e):void 0}}function Yc(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Gc(t){if(Array.isArray(t))return Xc(t)}function Xc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Kc={class:"contain"},qc=["href"];function Hc(t,e){return(0,i.uX)(),(0,i.CE)("nav",null,[(0,i.Lk)("div",Kc,[(0,i.Lk)("a",{href:t.$t("header.homepageUrl")},Uc(e[0]||(e[0]=[(0,i.Lk)("img",{class:"logo",src:"https://assets.survivalinternational.org/viru/layout/survival-logo.svg"},null,-1)])),8,qc)])])}const Bc={},Wc=(0,X.A)(Bc,[["render",Hc],["__scopeId","data-v-b2c408e8"]]);var Qc=Wc,zc={class:"contain"};function Zc(t,e,n,r,o,a){return(0,i.uX)(),(0,i.CE)("nav",null,[(0,i.Lk)("div",zc,[e[0]||(e[0]=(0,i.Lk)("img",{class:"logo",src:"https://assets.survivalinternational.org/viru/layout/survival-logo.svg"},null,-1)),(0,i.eW)(" "+(0,u.v_)(t.$t("footer.main.text")),1)])])}var Jc={computed:{currentLanguage:function(){return this.$l10n.currentLanguage}}};const ts=(0,X.A)(Jc,[["render",Zc],["__scopeId","data-v-b6f3e6a8"]]);var es=ts,ns={name:"WithNavigation",components:{MainNav:Qc,MainFooter:es}};
1const rs=(0,X.A)(ns,[["render",Nc],["__scopeId","data-v-19037139"]]);var os=rs;function as(t,e,n){var r=P();r.amount?n():n("/")}function is(){return(0,a.aE)({history:(0,a.LA)(),routes:[{path:"/",component:os,children:[{path:"",name:"donationIntro",component:Lr},{path:"ihre-angaben",name:"personalDetailsDe",component:da,beforeEnter:as},{path:"personal-information",name:"personalDetailsEn",component:da,beforeEnter:as},{path:"informacion-personal",name:"personalDetailsEs",component:da,beforeEnter:as},{path:"informations-personnelles",name:"personalDetailsFr",component:da,beforeEnter:as},{path:"informazione-personale",name:"personalDetailsIt",component:da,beforeEnter:as},{path:"dados-pessoas",name:"personalDetailsBr",component:da,beforeEnter:as},{path:"zahlungsinformationen",name:"paymentDetailsDe",component:cc,beforeEnter:as},{path:"payment-information",name:"paymentDetailsEn",component:cc,beforeEnter:as},{path:"informacion-del-pago",name:"paymentDetailsEs",component:cc,beforeEnter:as},{path:"informations-de-paiement",name:"paymentDetailsFr",component:cc,beforeEnter:as},{path:"informazioni-sul-pagamento",name:"paymentDetailsIt",component:cc,beforeEnter:as},{path:"informacao-de-pagamento",name:"paymentDetailsBr",component:cc,beforeEnter:as},{path:"danke",name:"thankYouDe",component:Mt,beforeEnter:as},{path:"thank-you",name:"thankYouEn",component:Mt,beforeEnter:as},{path:"gracias",name:"thankYouEs",component:Mt,beforeEnter:as},{path:"merci",name:"thankYouFr",component:Mt,beforeEnter:as},{path:"grazie",name:"thankYouIt",component:Mt,beforeEnter:as},{path:"obrigado",name:"thankYouBr",component:Mt,beforeEnter:as}]},{path:"/callbacks/:adapter/:callback",component:Vc,props:!0},{path:"/:pathMatch(.*)*",name:"not-found",component:Lr}]})}var us=n(3474),cs=n(6429),ss=n(1273),ls=n(2630),ds={id:"app"};function fs(t,e,n,r,o,a){var u=(0,i.g2)("router-view");return(0,i.uX)(),(0,i.CE)("div",ds,[r.loading?((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[],64)):((0,i.uX)(),(0,i.Wv)(u,{key:1}))])}var ps=n(9392),ms=n(1024);function hs(t,e){t.setForename(ys(e)),t.setSurname(vs(e)),t.setEmail(bs(e)),t.setStreet(gs(e)),t.setZip(_s(e)),t.setCity(Ss(e)),t.setState(ks(e)),t.setCountry(As(e))}function ys(t){return"forename"}function vs(t){return"surname"}function bs(t){return"test-email-".concat(t,"@survivalinternational.org")}function gs(t){return"123 fake street"}function _s(t){switch(t){case"gb":return"AB12 3BA";default:return"12345"}}function Ss(t){return"fake city"}function ks(t){return"fake state"}function As(t){switch(t){case"us":return"US";case"gb":return"GB";case"es":return"ES";case"fr":return"FR";case"de":return"DE";case"it":return"IT";case"pt":return"BR";default:return"US"}}var Ps={name:"ViruRoot",setup:function(){var t=(0,h.KR)(!0),e=(0,h.Kh)({title:"Donate - Survival International",description:""});(0,E.u)({title:(0,i.EW)(function(){return e.title}),meta:[{name:"description",content:(0,i.EW)(function(){return e.description})}]});var n=Ht(),r=P();return{siteData:e,rootStore:n,donationStore:r,loading:t}},beforeMount:function(){var t=this,e=window.location.hostname.replace(/local.|staging-/gi,"");this.rootStore.setCurrentDomain(e);var n="donate.survivalinternational.org"===e;this.rootStore.setIsEnDomain(n);var r=Object.fromEntries(new URLSearchParams(window.location.search));this.rootStore.setQueryParams(r),this.donationStore.setUtms(r);var o={one_off:"oneOff",oneoff:"oneOff",one:"oneOff",reg:"regular"},a=r.omitFrequency||r.hidefq||"",i=a?a.split(",").map(function(t){return o[t]||t}).filter(Boolean):[];this.rootStore.setHiddenFrequencies(i),i.includes("oneOff")?this.donationStore.setType("monthly"):i.includes("regular")&&this.donationStore.setType("oneOff");var u=this.locationFromParam(r)||this.inferLocation(e);this.$l10n.changeLocation(u).then(function(){t.siteData.title="".concat(t.$t("meta.title")," - Survival International"),t.appealExists(r.appeal)&&t.rootStore.setAppeal(r.appeal),{VUE_APP_I18N_LOCALE:"en_gb",VUE_APP_I18N_FALLBACK_LOCALE:"en_gb",VUE_APP_BACKEND_HOST:"/api",VUE_APP_STRIPE_API_KEY_DE:"pk_live_QA7jjh12yP5Kv6sThHrG5Fu8",VUE_APP_STRIPE_API_KEY_ES:"pk_live_lbIZaW9QcUkQqRywXKMbl1iU",VUE_APP_STRIPE_API_KEY_GB:"pk_live_AVEBhH72Ab4fXEG5heJWpNDi",VUE_APP_STRIPE_API_KEY_FR:"pk_live_JZv2FotuPPzMeaHIeJPsqfrm",VUE_APP_STRIPE_API_KEY_IT:"pk_live_TnTQhSAabEWSCWuIf4nj4rfl",VUE_APP_STRIPE_API_KEY_PT:"pk_live_wJB5ePbVEhe7NO8ohnAvNZX7",VUE_APP_STRIPE_API_KEY_US:"pk_live_51AA1IYFpgOJXHv3IY6du7H6Y7OFhiAenyeAiejmcu0dhvYszeu258AI99A0zkXvwBfHQeAae2LC1diPA3FMhwt1100A7UDDYGT",VUE_APP_BUGSNAG_KEY:"d7091c6e89ed90da9b48792ea2900aea",VUE_APP_GA_MEASUREMENT_ID:"G-VBQT0CYZ12",VUE_APP_RECAPTCHA_PUBLIC_KEY:"6Lei_NgaAAAAAOywskBfRYIVAhLbUgiuN0SPGjzC",VUE_APP_RECAPTCHA_PRIVATE_KEY:"6Lei_NgaAAAAAMvusz8PCFrEG9yIXme_r7vH398y",VUE_APP_RECAPTCHA_v3_PUBLIC_KEY:"6Lfz3qYfAAAAAM8dM3PMMksAwYGG-cCXZEhR6M06",VUE_APP_RECAPTCHA_v3_PRIVATE_KEY:"6Lfz3qYfAAAAAATTrVZP-fp-AxjQCZROiXct1E9M",VUE_APP_TURNSTILE_SITE_KEY:"0x4AAAAAAA15vYRWWzqO7AuB",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_DEV_MODE&&hs(t.donationStore,u),t.loading=!1})},methods:{inferLocation:function(t){return ps["default"][t]||"us"},locationFromParam:function(t){return"l"in t&&ms["default"][t.l]},appealExists:function(t){return 0!==Object.keys(this.$tm("appeals.".concat(t))).length}}};const Es=(0,X.A)(Ps,[["render",fs]]);var Ls=Es;function Cs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof u?r:u,s=Object.create(c.prototype);return ws(s,"_invoke",function(n,r,o){var a,u,c,s=0,l=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,u=0,c=t,f.n=n,i}};function p(n,r){for(u=n,c=r,e=0;!d&&s&&!o&&e<l.length;e++){var o,a=l[e],p=f.p,m=a[2];n>3?(o=m===r)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,f.v=r,f.n=a[1]):p<m&&(
1o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,f.n=m,u=0))}if(o||n>1)return i;throw d=!0,r}return function(o,l,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===l&&p(l,m),u=l,c=m;(e=u<2?t:c)||!d;){a||(u?u<3?(u>1&&(f.n=-1),p(u,c)):f.n=c:f.v=c);try{if(s=2,a){if(u||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,u<2&&(u=0)}else 1===u&&(e=a.return)&&e.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((e=(d=f.n<0)?c:n.call(r,f))!==i)break}catch(e){a=t,u=1,c=e}finally{s=1}}return{value:e,done:d}}}(n,o,a),!0),s}var i={};function u(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(ws(e={},r,function(){return this}),e),d=s.prototype=u.prototype=Object.create(l);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,ws(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=s,ws(d,"constructor",s),ws(s,"constructor",c),c.displayName="GeneratorFunction",ws(s,o,"GeneratorFunction"),ws(d),ws(d,o,"Generator"),ws(d,r,function(){return this}),ws(d,"toString",function(){return"[object Generator]"}),(Cs=function(){return{w:a,m:f}})()}function ws(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ws=function(t,e,n,r){function a(e,n){ws(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},ws(t,e,n,r)}function Ts(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Fs(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(t){Ts(a,r,o,i,u,"next",t)}function u(t){Ts(a,r,o,i,u,"throw",t)}i(void 0)})}}function Os(t){var e=t.i18n,n=t.locations;this.i18n=e,this.store=L(),this.availableLocations=n,this.loadedLocales=[],this.locationChangeHooks={}}Os.prototype={_setLocale:function(t){return this.i18n.global.locale.value=t,document.querySelector("html").setAttribute("lang",t),t},get currentLocation(){return this.store.current},get currentLocale(){return this.i18n.global.locale},get currentLanguage(){return this.i18n.global.locale.value.split("-")[0]},get availableCurrencies(){return this.currentLocation.currencies},get availableFrequencies(){return this.currentLocation.donationFrequencies},get paymentMethods(){return this.currentLocation.paymentMethods},get availableCollectionDates(){return this.currentLocation.paymentMethods.smartdebit.collectionDates},changeLocation:function(t){var e=this;return this.store.change(t).then(function(){return e.changeLanguage(e.currentLocation.defaultLanguage)}).then(function(){e.i18n.fallbackLocale=e.currentLocation.currentLocale}).then(function(){Object.values(e.locationChangeHooks).forEach(function(t){t(e.currentLocation)})})},changeLanguage:function(t){var e=this;return Fs(Cs().m(function n(){var r,o,a,i;return Cs().w(function(n){while(1)switch(n.n){case 0:return r=e.currentLocation.key,o="".concat(t,"-").concat(r.toUpperCase()),n.n=1,e.loadCountries(t);case 1:return a=n.v,n.n=2,e.loadStates(r);case 2:if(i=n.v,e.i18n.global.locale!==o){n.n=3;break}return n.a(2,Promise.resolve(o));case 3:if(!e.loadedLocales.includes(o)){n.n=4;break}return n.a(2,Promise.resolve(e._setLocale(o)));case 4:return n.a(2,e.importLangFromFile(t,r,o,a,i))}},n)}))()},importLangFromFile:function(t,e,r,o,a){var i=this;return n(5232)("./".concat(t,"/").concat(e,".json")).then(function(t){return Object.assign(t.default,{countries:o,states:a}),i.i18n.global.setLocaleMessage(r,t.default),i.loadedLocales.push(r),i._setLocale(r)})},loadCountries:function(t){return n(6451)("./".concat(t)).then(function(t){return t.countries})},loadStates:function(t){return"us"!==t?{}:n(4609)("./".concat(t)).then(function(t){return t.states})},suggestedAmountsFor:function(t,e){var n=this.currentLocation.currencies[t];return n?n.suggestedAmounts[e]:[]},minAmountFor:function(t){return this.currentLocation.currencies[t].minimum},formatCurrency:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.currentLocation.currencies&&e)return w()(t,Object.assign({formatWithSymbol:!0},this.currentLocation.currencies[e].config,n)).format()},amountInCents:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{precision:2};if(this.currentLocation.currencies&&e)return w()(t,Object.assign({formatWithSymbol:!0},this.currentLocation.currencies[e].config,n)).intValue},onLocationChange:function(t,e,n){var r=n.immediate;this.locationChangeHooks[t]=e,r&&e(this.currentLocation)}};var $s=Os,js=n(5110),Is={install:function(t,e){t.config.globalProperties.$l10n=new $s({i18n:e,locations:js["default"]})}},Ds=n(4682),Vs=(0,Ds.hU)({silentFallbackWarn:!0,warnHtmlInMessage:!1,warnHtmlMessage:!1,globalInjection:!0,legacy:!1}),Rs={install:function(t){t.config.globalProperties.$loadScript=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{async:!0},n=document.querySelector('script[src="'.concat(t,'"]'));if(n)return n.promise;var r=document.createElement("script");return r.promise=new Promise(function(n,o){r.type="text/javascript",r.async=e.async,r.addEventListener("load",n),r.addEventListener("error",o),r.addEventListener("abort",o),r.src=t,document.head.appendChild(r)})}}},Ns=n(5993),Us=n.n(Ns),xs=n(9892),Ms=n.n(xs),Ys=function(){requestAnimationFrame(Ys),tr.Ay.update()};function Gs(t){return Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(t)}function Xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ks(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Xs(Object(n),!0).forEach(function(e){qs(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function qs(t,e,n){return(e=Hs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hs(t){var e=Bs(t,"string");return"symbol"==Gs(e)?e:e+""}function Bs(t,e){if("object"!=Gs(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Gs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}Ys();var Ws=is(),Qs=(0,us.Zf)(),zs=(0,r.Ef)(Ks({},Ls));cs.Yv.add(ls.z1G,ls.dmS,ls.CeG,ls.e68,ls.DW4),zs.component("FontAwesomeIcon",ss.gc),zs.use((0,o.Ey)()),zs.use(Ws),zs.use(Vs),zs.use(Is,Vs),zs.use(Rs),zs.use(Qs),zs.config.globalProperties.$clipboard=window.navigator.clipboard,zs.config.globalProperties.$scrollToTop=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return window.scrollTo(t,e)},zs.config.globalProperties.$scrollToElement=function(t){return document.querySelector(t).scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},Us().start({apiKey:"d7091c6e89ed90da9b48792ea2900aea",plugins:[new(Ms())]});var Zs=Us().getPlugin("vue");Zs.installVueErrorHandler(zs),zs.config.globalProperties.$bugsnag=Us(),zs.mount("#app")},1024:function(t,e,n){"use strict";n.r(e),e["default"]={br:"br",de:"de",en_gb:"gb",en_us:"us",en:"us",gb:"gb",es:"es",fr:"fr",it:"it",pt:"br",us:"us"}},1845:function(t,e,n){var r={"./br":[4472,3,472],"./br.json":[4472,3,472],"./countryCodeToOffice":[2858,9],"./countryCodeToOffice.js":[2858,9],"./de":[4991,3,991],"./de.json":[4991,3,991],"./domainToLocationMap":[9392,9],"./domainToLocationMap.js":[9392,9],"./es":[2112,3,112],"./es.json":[2112,3,112],"./fr":[4372,3,372],"./fr.json":[4372,3,372],"./gb":[5509,3,509],"./gb.json":[5509,3,509],"./it":[6973,3,973],"./it.json":[6973,3,973],"./lang/countries/de":[2685,3,685],"./lang/countries/de.json":[2685,3,685],"./lang/countries/en":[1761,3,761],"./lang/countries/en.json":[1761,3,761],"./lang/countries/es":[8914,3,914],"./lang/countries/es.json":[8914,3,914],"./lang/countries/fr":[762,3,762],"./lang/countries/fr.json":[762,3,762],"./lang/countries/it":[6707,3,707],"./lang/countries/it.json":[6707,3,707],"./lang/countries/pt":[4462,3,462],"./lang/countries/pt.json":[4462,3,462],"./lang/de/de":[1436,3,436],"./lang/de/de.json":[1436,3,436],"./lang/en/gb":[1986,3,986],"./lang/en/gb.json":[1986,3,986],"./lang/en/us":[2919,3,919],"./lang/en/us.json":[2919,3,919],"./lang/es/es":[7510,3,510],"./lang/es/es.json":[7510,3,510],"./lang/fr/fr":[3142,3,142],"./lang/fr/fr.json":[3142,3,142],"./lang/it/it":[7112,3,731],"./lang/it/it.json":[7112,3,731],"./lang/pt/br":[7474,3,474],"./lang/pt/br.json":[7474,3,474],"./lang/states/us":[5948,3,948],"./lang/states/us.json":[5948,3,948],"./list":[5110,9],"./list.js":[5110,9],"./locationParamMap":[1024,9],"./locationParamMap.js":[1024,9],"./pt":[936,3,936],"./pt.json":[936,3,936],"./us":[6672,3,672],"./us.json":[6672,3,672]};function o(t){if(!n.o(r,t))return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e});var e=r[t],o=e[0];return Promise.all(e.slice(2).map(n.e)).then(function(){return n.t(o,16|e[1])})}o.keys=function(){return Object.keys(r)},o.id=1845,t.exports=o},2858:function(t,e,n){"use strict";n.r(e),e["default"]={AD:"gb",AE:"gb",AF:"gb",AG:"us",AI:"us",AL:"gb",AM:"gb",AO:"gb",AQ:"gb",AR:"us",AS:"gb",AT:"gb",AU:"gb",AW:"us",AX:"gb",AZ:"gb",BA:"gb",BB:"us",BD:"gb",BE:"gb",BF:"gb",BG:"gb",BH:"gb",BI:"gb",BJ:"gb",BL:"gb",BM:"us",BN:"gb",BO:"us",BQ:"gb",BR:"gb",BS:"us",BT:"gb",BW:"gb",BY:"gb",BZ:"us",CA:"us",CC:"gb",CD:"gb",CF:"gb",CG:"gb",CH:"gb",CI:"gb",CK:"gb",CL:"us",CM:"gb",CN:"gb",CO:"us",CR:"us",CV:"gb",CW:"us",CX:"gb",CY:"gb",CZ:"gb",DE:"gb",DJ:"gb",DK:"gb",DM:"us",DO:"us",DZ:"gb",EC:"us",EE:"gb",EG:"gb",EH:"gb",ER:"gb",ES:"gb",ET:"gb",FI:"gb",FJ:"gb",FK:"gb",FM:"gb",FO:"gb",FR:"gb",GA:"gb",GB:"gb",GD:"us",GE:"gb",GF:"us",GG:"gb",GH:"gb",GI:"gb",GL:"gb",GM:"gb",GN:"gb",GP:"us",GQ:"gb",GR:"gb",GS:"gb",GT:"us",GU:"gb",GW:"gb",GY:"us",HK:"gb",HM:"gb",HN:"us",HR:"gb",HT:"us",HU:"gb",ID:"gb",IE:"gb",IL:"gb",IM:"gb",IN:"gb",IO:"gb",IQ:"gb",IS:"gb",IT:"gb",JE:"gb",JM:"us",JO:"gb",JP:"gb",KE:"gb",KG:"gb",KH:"gb",KI:"gb",KM:"gb",KN:"us",KR:"gb",KW:"gb",KY:"us",KZ:"gb",LA:"gb",LB:"gb",LC:"us",LI:"gb",LK:"gb",LR:"gb",LS:"gb",LT:"gb",LU:"gb",LV:"gb",LY:"gb",MA:"gb",MC:"gb",MD:"gb",ME:"gb",MF:"gb",MG:"gb",MH:"gb",MK:"gb",ML:"gb",MM:"gb",MN:"gb",MO:"gb",MP:"gb",MQ:"us",MR:"gb",MS:"us",MT:"gb",MU:"gb",MV:"gb",MW:"gb",MX:"us",MY:"gb",MZ:"gb",NA:"gb",NC:"gb",NE:"gb",NF:"gb",NG:"gb",NI:"us",NL:"gb",NO:"gb",NP:"gb",NR:"gb",NU:"gb",NZ:"gb",OM:"gb",PA:"us",PE:"us",PF:"gb",PG:"gb",PH:"gb",PK:"gb",PL:"gb",PM:"gb",PN:"gb",PR:"us",PS:"gb",PT:"gb",PW:"gb",PY:"us",QA:"gb",RE:"gb",RO:"gb",RS:"gb",RU:"gb",RW:"gb",SA:"gb",SB:"gb",SC:"gb",SD:"gb",SE:"gb",SG:"gb",SH:"gb",SI:"gb",SJ:"gb",SK:"gb",SL:"gb",SM:"gb",SN:"gb",SO:"gb",SR:"us",SS:"gb",ST:"gb",SV:"us",SX:"gb",SZ:"gb",TC:"gb",TD:"gb",TF:"gb",TG:"gb",TH:"gb",TJ:"gb",TK:"gb",TL:"gb",TM:"gb",TN:"gb",TO:"gb",TR:"gb",TT:"us",TV:"gb",TW:"gb",TZ:"gb",UA:"gb",UG:"gb",UK:"gb",UM:"gb",US:"us",UY:"us",UZ:"gb",VA:"gb",VC:"us",VE:"us",VG:"us",VI:"us",VN:"gb",VU:"gb",WF:"gb",WS:"gb",YE:"gb",YT:"gb",ZA:"gb",ZM:"gb",ZW:"gb"}},4609:function(t,e,n){var r={"./us":[5948,948],"./us.json":[5948,948]};function o(t){if(!n.o(r,t))return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e});var e=r[t],o=e[0];return n.e(e[1]).then(function(){return n.t(o,19)})}o.keys=function(){return Object.keys(r)},o.id=4609,t.exports=o},5110:function(t,e,n){"use strict";n.r(e),e["default"]=["us","gb","de","es","fr","it","br"]},5232:function(t,e,n){var r={"./countries/de.json":[2685,685],"./countries/en.json":[1761,761],"./countries/es.json":[8914,914],"./countries/fr.json":[762,762],"./countries/it.json":[6707,707],"./countries/pt.json":[4462,462],"./de/de.json":[1436,436],"./en/gb.json":[1986,986],"./en/us.json":[2919,919],"./es/es.json":[7510,510],"./fr/fr.json":[3142,142],"./it/it.json":[7112,731],"./pt/br.json":[7474,474],"./states/us.json":[5948,948]};function o(t){if(!n.o(r,t))return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e});var e=r[t],o=e[0];return n.e(e[1]).then(function(){return n.t(o,19)})}o.keys=function(){return Object.keys(r)},o.id=5232,t.exports=o},6451:function(t,e,n){var r={"./de":[2685,685],"./de.json":[2685,685],"./en":[1761,761],"./en.json":[1761,761],"./es":[8914,914],"./es.json":[8914,914],"./fr":[762,762],"./fr.json":[762,762],"./it":[6707,707],"./it.json":[6707,707],"./pt":[4462,462],"./pt.json":[4462,462]};function o(t){if(!n.o(r,t))return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e});var e=r[t],o=e[0];return n.e(e[1]).then(function(){return n.t(o,19)})}o.keys=function(){return Object.keys(r)}
1,o.id=6451,t.exports=o},9392:function(t,e,n){"use strict";n.r(e),e["default"]={"beitragen.survivalinternational.de":"de","hazte-socio-dona.survival.es":"es","donate.survivalinternational.org":"us","donner.survivalinternational.fr":"fr","dona.survival.it":"it","doar.survivalbrasil.org":"br"}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r].call(a.exports,a,a.exports,n),a.exports}n.m=t,function(){var t=[];n.O=function(e,r,o,a){if(!r){var i=1/0;for(l=0;l<t.length;l++){r=t[l][0],o=t[l][1],a=t[l][2];for(var u=!0,c=0;c<r.length;c++)(!1&a||i>=a)&&Object.keys(n.O).every(function(t){return n.O[t](r[c])})?r.splice(c--,1):(u=!1,a<i&&(i=a));if(u){t.splice(l--,1);var s=o();void 0!==s&&(e=s)}}return e}a=a||0;for(var l=t.length;l>0&&t[l-1][2]>a;l--)t[l]=t[l-1];t[l]=[r,o,a]}}(),function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){var t,e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var a=Object.create(null);n.r(a);var i={};t=t||[null,e({}),e([]),e(e)];for(var u=2&o&&r;("object"==typeof u||"function"==typeof u)&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach(function(t){i[t]=function(){return r[t]}});return i["default"]=function(){return r},n.d(a,i),a}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.f={},n.e=function(t){return Promise.all(Object.keys(n.f).reduce(function(e,r){return n.f[r](t,e),e},[]))}}(),function(){n.u=function(t){return"js/"+t+"."+{112:"5cafb684",142:"ebc3f7ba",372:"b2bd7cad",436:"7d2f15cf",462:"25c58384",472:"4ba88757",474:"a378a73b",509:"f1a5382e",510:"90f7612b",672:"ded80eb1",685:"dae138af",707:"1efee258",731:"cdaf74f0",761:"3aeb87d0",762:"62d9f2c9",914:"ceec1654",919:"28d7766b",936:"88eaa55e",948:"d7d0e366",973:"bb4bd877",986:"184074a2",991:"b1f37b74"}[t]+".js"}}(),function(){n.miniCssF=function(t){}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="frontend:";n.l=function(r,o,a,i){if(t[r])t[r].push(o);else{var u,c;if(void 0!==a)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var d=s[l];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==e+a){u=d;break}}u||(c=!0,u=document.createElement("script"),u.charset="utf-8",u.timeout=120,n.nc&&u.setAttribute("nonce",n.nc),u.setAttribute("data-webpack",e+a),u.src=r),t[r]=[o];var f=function(e,n){u.onerror=u.onload=null,clearTimeout(p);var o=t[r];if(delete t[r],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach(function(t){return t(n)}),e)return e(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=f.bind(null,u.onerror),u.onload=f.bind(null,u.onload),c&&document.head.appendChild(u)}}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p="/"}(),function(){var t={524:0};n.f.j=function(e,r){var o=n.o(t,e)?t[e]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise(function(n,r){o=t[e]=[n,r]});r.push(o[2]=a);var i=n.p+n.u(e),u=new Error,c=function(r){if(n.o(t,e)&&(o=t[e],0!==o&&(t[e]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;u.message="Loading chunk "+e+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,o[1](u)}};n.l(i,c,"chunk-"+e,e)}},n.O.j=function(e){return 0===t[e]};var e=function(e,r){var o,a,i=r[0],u=r[1],c=r[2],s=0;if(i.some(function(e){return 0!==t[e]})){for(o in u)n.o(u,o)&&(n.m[o]=u[o]);if(c)var l=c(n)}for(e&&e(r);s<i.length;s++)a=i[s],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(l)},r=self["webpackChunkfrontend"]=self["webpackChunkfrontend"]||[];
1r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}();var r=n.O(void 0,[504],function(){return n(604)});r=n.O(r)})(); 2//# sourceMappingURL=app.93fd3048.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.