1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5625],{5556:(e,t,a)=>{"use strict";a.d(t,{A:()=>u,L:()=>l});var r=a(37876);a(14232);var o=a(95062),s=a.n(o),n=a(52804),i=a(86340),d=a(12973),l=()=>"IE"===n.DEFAULT_COUNTRY_CODE?(0,r.jsxs)("p",{className:"description",children:["You may already have opted into some of our marketing, in which case we will continue to rely on that permission. We will also keep you updated by post. You can opt out of postal & other marketing by contacting us at"," ",(0,r.jsx)("a",{href:"mailto:[email protected]",target:"_blank",rel:"noopener noreferrer",children:"[email protected]"}),". For further information please see our"," ",(0,r.jsx)("a",{href:"https://www.concern.net/privacy",target:"_blank",rel:"noopener noreferrer",children:"privacy policy"}),"."]}):"GB"===n.DEFAULT_COUNTRY_CODE?(0,r.jsxs)("p",{className:"description",children:["You can change your preferences at any time by contacting us at"," ",(0,r.jsx)("a",{href:"mailto:[email protected]",target:"_blank",rel:"noopener noreferrer",children:"[email protected]"})," ","or by calling 0800 032 4001. For further information please see our"," ",(0,r.jsx)("a",{href:"IE"===n.DEFAULT_COUNTRY_CODE?"https://www.concern.net/privacy":"https://www.concern.org.uk/privacy-statement",target:"_blank",rel:"noopener noreferrer",children:"privacy policy"}),"."]}):null,c=e=>{var{text:t="",options:a,isShortformWithOptin:o=!1}=e;return(0,r.jsxs)(r.Fragment,{children:["IE"===n.DEFAULT_COUNTRY_CODE&&(0,r.jsx)("h2",{children:"We need to stay in touch"}),"GB"===n.DEFAULT_COUNTRY_CODE&&(0,r.jsx)("h2",{children:"Keeping you informed"}),t&&(0,r.jsx)(d.A,{tag:"p",text:t}),"IE"===n.DEFAULT_COUNTRY_CODE&&!o&&(0,r.jsx)("p",{className:"description",children:"We rely on the generosity of compassionate people like you. Please tick the boxes below so we can keep you updated on our work and reach out for your continued support. We promise not to spam you, and you can opt out at any time."}),"GB"===n.DEFAULT_COUNTRY_CODE&&!o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"description",children:"We'd love to keep you updated about our vital work tackling extreme poverty and how you can help transform more lives through campaigning and appeals."}),(0,r.jsx)("p",{className:"description",children:"Yes - I want to hear from Concern by:"})]}),(0,r.jsx)(i.YT,{name:"contact_preferences",options:a,label:"",withBackground:!0}),l()]})};c.propTypes={text:s().string,options:s().arrayOf(s().shape({value:s().string,label:s().string}
1)).isRequired,isShortformWithOptin:s().bool};let u=c},22453:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var r=a(16927),o=a(37876),s=a(14232),n=a(36403),i=a(51572),d=a(71456),l=a(57324),c=a(37556),u=a(75596),m=a(86340),h=a(38176),p=a(62488),_=a(86517),b=a.n(_),f=a(63887),g=a.n(f);let y=()=>{var[e,t]=(0,s.useState)({}),a=(0,h.lN)(),_=a.values,f=_.address.country.value,y=(0,h.mN)(),[x,v]=(0,s.useState)(!1),[j,w]=(0,s.useState)(!1);(0,s.useEffect)(()=>{(0,r._)(function*(){return yield(0,c.e$)(f)})().then(e=>{t(e)})},[f]),(0,s.useEffect)(()=>{x&&("object"==typeof _.address.addressLine1&&E({addressLine1:_.address.addressLine1.label}),"object"==typeof _.address.postalCode&&E({postalCode:_.address.postalCode.label}))},[x]),(0,s.useEffect)(()=>{"IE"===f&&a.submitFailed&&a.hasValidationErrors&&(v(!0),w(!0))},[f,a.submitFailed,a.hasValidationErrors]),(0,s.useEffect)(()=>{C(),w(!1)},[e]);var E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(e).forEach(t=>y.mutators.setValue("address.".concat(t),e[t]))},C=()=>{E({addressLine1:"",addressLine2:"",locality:"",postalCode:"",administrativeArea:{}})},A=(0,o.jsx)(n.A,{country:f,schema:e,name:"address"});return"IE"===f&&(A=(0,o.jsxs)(o.Fragment,{children:[(j||!x)&&(0,o.jsx)("div",{className:x?b()["address__ie-autocomplete"]:null,children:(0,o.jsx)(l.A,{isRequired:!0,hideSearchField:x,onAddressSearch:e=>{if(0===e.body.totalOptions){var t,a,r;v(!0),w(!0),(null==(a=e.body)||null==(t=a.reformattedAddress)?void 0:t.length)&&E({addressLine1:e.body.reformattedAddress[0],addressLine2:e.body.reformattedAddress[1],locality:e.body.reformattedAddress[2],postalCode:e.body.postcode,administrativeArea:{IE:null!=(r=e.body.reformattedAddress[3])?r:""}})}}})}),e&&x&&(0,o.jsx)(n.A,{country:f,schema:e,name:"address"}),!x&&(0,o.jsxs)("div",{className:"".concat(b()["address__switch-mode-button"]," ").concat(g()["formatted-text"]),children:["or"," ",(0,o.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),v(!0),setTimeout(()=>{var e=document.getElementById("address.addressLine1");e&&e.focus()},10)},"data-component":"ie-manually-enter-address",children:"enter your address manually"})]}),x&&j&&(0,o.jsxs)("div",{className:"".concat(b()["address__switch-mode-button"]," ").concat(g()["formatted-text"]),children:["Wrong address?"," ",(0,o.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),v(!1),w(!1),C(),setTimeout(()=>{(0,p.P)({elementId:"autocomplete-search-ie"});var e=document.querySelector("#address-autocomplete-search__search input");e&&e.focus()},10)},children:"Search again"})]}),x&&!j&&(0,o.jsxs)("div",{className:"".concat(b()["address__switch-mode-button"]," ").concat(g()["formatted-text"]),children:["or"," ",(0,o.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),v(!1),C(),setTimeout(()=>{(0,p.P)({elementId:"autocomplete-search-ie"});var e=document.querySelector("#address-autocomplete-search__search input");e&&e.focus()},10)},children:"search by your address or Eircode"})]})]})),"GB"===f&&(A=x||_.address.addressLine1&&_.address.postalCode?(0,o.jsx)(i.A,{changeSchemaType:()=>{v(!1),w(!1),C(),setTimeout(()=>{(0,p.P)({elementId:"address-autofill-uk"})},10)},autoSwitched:j,addressLookupEnabled:!0}):(0,o.jsx)(d.A,{postalCode:_.address.postalCode,addressLine1:_.address.addressLine1,changeSchemaType:(e,t)=>{v(!0),w(t)},setAddressValues:E})),(0,o.jsxs)("div",{className:"".concat(b().address," ").concat(b()["address__".concat(f)]),children:[(0,o.jsx)(m.zM,{name:"address.country",label:"Country",options:(0,c.X6)(),validate:(0,u.mw)("Please select a country"),isRequired:!0,autoFill:!1}),A]})}},75625:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>I});var r,o,s=a(37876),n=a(14232),i=a(95062),d=a.n(i),l=a(38176),c=a(4301),u=a(93833),m=a(36614),h=a(75596),p=a(10673),_=a(72259),b=a(997),f=a.n(b),g=a(83177),y=a(86340),x=a(52804),v=a(22453),j=a(37556),w=a(23369),E=a(74215),C=a(55217),A=a(12973),T=a(5556),O=a(76787);function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}let L=e=>n.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",viewBox:"0 0 16 16"},e),r||(r=n.createElement("path",{d:"M2.667 3.167A.837.837 0 0 0 1.834 4v8c0 .457.376.833.833.833h10.666a.837.837 0 0 0 .834-.833V4a.837.837 0 0 0-.833-.833zM.833 4c0-1.01.824
1-1.833 1.834-1.833h10.666c1.01 0 1.834.823 1.834 1.833v8c0 1.01-.824 1.833-1.833 1.833H2.667A1.837 1.837 0 0 1 .833 12z"})),o||(o=n.createElement("path",{d:"M.924 3.713a.5.5 0 0 1 .696-.123L8 8.056l6.38-4.466a.5.5 0 0 1 .574.82L8.287 9.076a.5.5 0 0 1-.574 0L1.047 4.41a.5.5 0 0 1-.123-.697"})));var k=a(84455),R=a.n(k),D=a(69361),F=a.n(D),U=e=>{var{heading:t="",subheading:a="",addressBookId:r=0,optInType:o="Single",logoLink:i,uuid:d=null,image:b,sectionContent:w,title:E,label:N="",behaviorSettings:k=null}=e,D=(0,n.useId)(),U=["bb",R()["bb-dotdigital-contact-form"],(0,m.j)(k)];return(0,s.jsx)(C.A,{heading:t,image:b,logoLink:i,contentRight:(0,s.jsxs)(s.Fragment,{children:[N&&(0,s.jsx)("div",{className:F()["bb-hero-social-ad__label"],children:N}),"text"===w.type&&(0,s.jsx)(A.A,{className:F()["bb-hero-social-ad__highlighted-text"],text:w.text}),"list"===w.type&&(0,s.jsx)("ul",{className:"".concat(F()["bb-hero-social-ad__list"]," ").concat(F()["bb-hero-social-ad__list--".concat(w.variant)]),children:w.items.map(e=>e.title&&e.text&&(0,s.jsxs)("li",{className:F()["bb-hero-social-ad__list-item"],children:[e.title&&(0,s.jsx)("h3",{className:F()["bb-hero-social-ad__list-item-title"],children:e.title}),e.text&&(0,s.jsx)(A.A,{className:F()["bb-hero-social-ad__list-item-text"],text:e.text})]},e.title))})]}),classnames:U.join(" "),contentLeft:(0,s.jsxs)("div",{className:R()["bb-dotdigital-contact-form__form"],id:d,children:[(0,s.jsxs)("div",{className:R()["bb-dotdigital-contact-form__form-header"],children:[E&&(0,s.jsx)("h2",{className:R()["bb-dotdigital-contact-form__form-heading"],children:E}),a&&(0,s.jsx)("p",{className:R()["bb-dotdigital-contact-form__form-subheading"],children:a})]}),(0,s.jsx)(l.lV,{initialValues:{address:{country:(0,j.oO)()}},mutators:{setValue:(e,t,a)=>{var[r,o]=e,{changeValue:s}=a;s(t,r,()=>o)}},onSubmit:(e,t)=>{var a,n=e.address;n.country=n.country.label;var i=(e,t)=>(Object.values(e).forEach(e=>{if(e&&"string"==typeof e)return void t.push(e);"object"!=typeof e||Array.isArray(e)||i(e,t)}),t),d=i(e.address,[]),l={email:e.email,firstname:e.firstname,lastname:e.lastname,phone_drupal:e.phone,address_drupal:d.join(", "),optin_email_drupal:+(null!=(a=e.optin_email)&&!!a.length),address_book_id:r,opt_in_type:o},u="".concat(E.replace(/\W/g,"_").toLowerCase(),"_").concat(r);return new Promise((a,r)=>{(0,_.tX)(u),f()("/dotdigital-subscribe",{method:"POST",throwNotOk:!1,body:l,headers:{"Content-Type":"application/json"}}).then(t=>(200===t.statusCode?(c.oR.success("Thank you for subscribing!",{autoClose:7e3}),a(t)):(400===t.statusCode&&"Invalid email address"===t.body?c.oR.error("The ".concat(e.email," email address is not allowed. Please try to use another email address."),{autoClose:7e3}):c.oR.error((0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:"Sorry, something went wrong. ".concat((0,g.A)())}})),a()),t)).then(e=>{200===e.statusCode&&t.restart()}).catch(e=>(c.oR.error((0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:"Sorry, something went wrong. ".concat((0,g.A)())}})),r(e),e))})},subscription:{submitting:!0,valid:!0},render:e=>{var{handleSubmit:t,submitting:a,valid:r}=e;return(0,s.jsxs)("form",{onSubmit:t,children:[(0,s.jsx)(y.A_,{label:"First name",name:"firstname",placeholder:"Jane",color:"green",validate:(0,h.mw)(),isRequired:!0,id:"firstname-".concat(D)}),(0,s.jsx)(y.A_,{label:"Last name",name:"lastname",placeholder:"Bloggs",color:"green",validate:(0,h.mw)(),isRequired:!0,id:"lastname-".concat(D)}),(0,s.jsx)(y.A_,{label:"Email address",name:"email",placeholder:"[email protected]",color:"green",parse:p.lb,validate:(0,h.k3)((0,h.mw)(),(0,h.Bf)()),isRequired:!0,id:"email-".concat(D),icon:(0,s.jsx)(L,{})}),(0,s.jsx)(y.A_,{name:"phone",label:"Phone number",placeholder:"GB"===x.DEFAULT_COUNTRY_CODE?"+44 1 000 0000":"+353 1 000 0000",parse:p.Kw,validate:"GB"===x.DEFAULT_COUNTRY_CODE?(0,h.FY)(7,"Please enter a valid phone number with at least 7 digits"):(0,h.k3)((0,h.mw)("Please enter a phone number in order to proceed"),(0,h.FY)(7,"Please enter a valid phone number with at least 7 digits"),(0,h.fc)(18,"Please enter a valid phone number with no longer than 18 digits")),isRequired:"GB"!==x.DEFAULT_COUNTRY_CODE,tooltip:"GB"===x.DEFAULT_COUNTRY_CODE?void 0:"This is in case we need to contact you about your donation.",icon:(0,s.jsx)(O.A,{}),inputMode:"numeric",pattern:"[0-9+\\s\\-\\(\\)\\.]+",infoOnPatternNotMatched:"Please use numbers only"}),(0,s.jsx)(v.A,{}),(0,s.jsx)(y.YT,{name:"optin_email",options:[{value:"optin_email",label:"Yes, I want to hear from Concern by email about their work and how I can continue to help change lives"}
1],label:"",withBackground:!0}),(0,s.jsx)("div",{className:R()["bb-dotdigital-contact-form__form-optin-description"],children:(0,T.L)()}),(0,s.jsx)("div",{className:R()["bb-dotdigital-contact-form__form-submit-button-wrapper"],children:(0,s.jsx)(u.A,{type:"primary",isMobileBlock:!0,isLoading:a,children:"Submit"})})]})}})]})})};U.propTypes={logoLink:d().shape(E.t).isRequired,heading:d().string.isRequired,title:d().string.isRequired,label:d().string,addressBookId:d().number,optInType:d().oneOf(["Single","Double","VerifiedDouble"]),subheading:d().string,image:d().shape(w.t).isRequired,uuid:d().string,sectionContent:d().oneOfType([d().shape({type:d().oneOf(["text"]),text:d().string.isRequired}),d().shape({type:d().oneOf(["list"]),variant:d().oneOf(["green","yellow"]).isRequired,items:d().arrayOf(d().shape({title:d().string,text:d().string}))})]).isRequired,behaviorSettings:m.U};let I=U},83177:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var r=a(52804);let o=()=>{var e="GB"===r.DEFAULT_COUNTRY_CODE?"[email protected]":"[email protected]",t="GB"===r.DEFAULT_COUNTRY_CODE?"0800 032 4001":"+353 1 417 7777",a=t.replace(/\s/g,"");return'For help, please contact <a href="mailto:'.concat(e,'">').concat(e,'</a> or <a href="tel:').concat(a,'">').concat(t,"</a>.")}},84455:e=>{e.exports={"bb-dotdigital-contact-form__form":"bb-dotdigital-contact-form__form__Up_0B","bb-dotdigital-contact-form__form-header":"bb-dotdigital-contact-form__form-header__REELM","bb-dotdigital-contact-form__form-heading":"bb-dotdigital-contact-form__form-heading__WRBWI","bb-dotdigital-contact-form__form-subheading":"bb-dotdigital-contact-form__form-subheading__6_RFF","bb-dotdigital-contact-form__form-optin-description":"bb-dotdigital-contact-form__form-optin-description__iHsAD","bb-dotdigital-contact-form__form-submit-button-wrapper":"bb-dotdigital-contact-form__form-submit-button-wrapper___3n_9"}},86517:e=>{e.exports={"address__ie-autocomplete":"address__ie-autocomplete__EuKFf","address__switch-mode-button":"address__switch-mode-button__26uxu",address__GB:"address__GB__DWCuR",address__IE:"address__IE__sy_XZ"}}}]); 2//# sourceMappingURL=5625.a368b7467726b138.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.