PageSourceSearch

https://www.theeelpie.co.uk/_next/static/chunks/1866.ff1db51d0b476896.js

js theeelpie.co.uk collected 2026-09-26 16:27:47 UTC 18,191 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1866,5104,3676,7610,9831],{1514:function(e,a,n){"use strict";n.d(a,{Z:function(){return c}});var t=n(1549),i=n(3136),r=n(4194),l=n(353),o=n(3908),s=n.n(o);function c(e){let{align:a="center",exClass:n=""}=e,o=(0,r.useRef)(null),{theme:c}=(0,i.Z)({slug:["sitewide"]}),u=(0,l.K)(o),d=(0,r.useMemo)(()=>{let e=(u.windowHeight-u.elementToWindowTop+u.elementHeight)/u.windowHeight;return e>1&&(e=1),e<0&&(e=0),{transform:"scaleX(".concat(e,")")}},[u]);return["Propeller"].includes(c)?(0,t.jsx)("div",{className:"".concat(s().line," ").concat(s()[a]," ").concat(n),style:d,ref:o}):null}},709:function(e,a,n){"use strict";n.d(a,{Z:function(){return c}});var t=n(1549),i=n(3136),r=n(4194),l=n(353),o=n(3908),s=n.n(o);function c(e){let{align:a="center",exClass:n="",twoLines:o=!1}=e,c=(0,r.useRef)(null),u=(0,l.K)(c),{theme:d}=(0,i.Z)({slug:["sitewide"]}),m=(0,r.useMemo)(()=>{let e=(u.windowHeight-u.elementToWindowTop+u.elementHeight)/u.windowHeight;return e>1&&(e=1),e<0&&(e=0),{"--color-line2":o&&u.percentToWindow<50?"var(--brand-color-black)":"currentColor",transform:"scaleY(".concat(e,")")}},[u,o]),p=(0,r.useMemo)(()=>{let e=(u.windowHeight-u.elementToWindowTop+u.elementHeight)/u.windowHeight*75;return e>37&&(e=37),e<0&&(e=0),{height:"".concat(e,"px")}},[u]),h=(0,r.useMemo)(()=>{let e=(u.windowHeight-u.elementToWindowTop+u.elementHeight)/u.windowHeight*75;return e>75&&(e=75),e<0&&(e=0),{height:"".concat(e-37<0?0:e-37,"px")}},[u]),g=(0,r.useMemo)(()=>{let e=(u.windowHeight-u.elementToWindowTop+u.elementHeight)/u.windowHeight*75;return e>75&&(e=75),e<0&&(e=0),{"--color-line2":o&&e>38?"var(--brand-color-black)":"currentColor",top:"".concat(e,"px")}},[u,o]);return["Propeller"].includes(d)?(0,t.jsx)("div",{className:"".concat(s().lineWrapper," ").concat(n),children:(0,t.jsxs)("div",{className:"".concat(s().centerVerticalLine," ").concat(s()[a]," ").concat(o?s().twoLines:""),ref:c,children:[(0,t.jsx)("span",{className:o?s().lineTwo:"",style:o?h:m}),(0,t.jsx)("span",{className:s().lineOne,style:p}),(0,t.jsx)("span",{style:g})]})}):null}},6779:function(e,a,n){"use strict";n.d(a,{Z:function(){return l}});var t=n(1549);n(4194);var i=n(6933),r=n.n(i);function l(e){let{color:a,gap:n="0px",minHeight:i}=e;return(0,t.jsx)("div",{style:{backgroundColor:a,inset:n,minHeight:i},className:r().background})}},1866:function(e,a,n){"use strict";n.r(a),n.d(a,{default:function(){return G}});var t=n(1549),i=n(1410),r=n(4046),l=n(2121),o=n(518),s=n(9510),c=n(4194),u=n(6779),d=n(5443),m=n.n(d),p=n(9072),h=n(9646),g=n(7693),f=n(7643),b=n(5104),x=n.n(b),_=n(1775),w=n(9965),v=n.n(w),y=n(3676),N=n.n(y);function j(e){let{className:a,label:n,name:i,required:r}=e;return(0,t.jsxs)(_.Z,{className:a,children:[(0,t.jsx)("input",{className:N().input,name:i,required:r,type:"checkbox"}),(0,t.jsx)("span",{className:N().mark}),(0,t.jsx)("span",{className:N().label,dangerouslySetInnerHTML:{__html:v().sanitize(n)}})]})}var C=n(9831),k=n.n(C);let S=["United States","United Kingdom","Canada","Afghanistan","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antarctica","Antigua & Barbuda","Argentina","Armenia","Aruba","Ascension Island","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia & Herzegovina","Botswana","Bouvet Island","Brazil","British Indian Ocean Territory","British Virgin Islands","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canary Islands","Cape Verde","Caribbean Netherlands","Cayman Islands","Central African Republic","Ceuta & Melilla","Chad","Chile","China","Christmas Island","Clipperton Islands","Cocos (Keeling) Islands","Colombia","Comoros","Congo - Brazzaville","Congo - Kinshasa","Cook Islands","Costa Rica","Croatia","Cuba","Cura\xe7ao","Cyprus","Czechia","C\xf4te d'Ivoire","Denmark","Diego Garcia","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Falkland Islands","Faroe Islands","Fiji","Finland","France","French Guiana","French Polynesia","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guernsey","Guinea","Guinea-Bissau","Guyana","Haiti","Heard & McDonald Islands","Honduras","Hong Kong SAR China","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Isle of Man","Israel","Italy","Jamaica","Japan","Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macao SAR China","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Montserrat","Morocco","Mozambique","Myanmar (Burma)","Namibia","Nauru","Nepal","Netherlands","Netherlands Antilles","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Northern Mariana Islands","North Korea","North Macedonia","Norway","Oman","Outlying Oceania","Pakistan","Palau","Palestinian Territories","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn Islands","Poland","Portugal","Puerto Rico","Qatar","Romania","Russia","Rwanda","R\xe9union","Samoa","San Marino","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Sint Maarten","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia & South Sandwich Islands","South Korea","South Sudan","Spain","Sri Lanka","St. Barth\xe9lemy","St. Helena","St. Kitt & Nevis","St. Lucia","St. Martin","St. Pierre & Miquelon","St. Vincent & Grenadines","Sudan","Suriname","Svalbard & Jan Mayen","Sweden","Switzerland","Syria","S\xe3o Tom\xe9 & Pr\xedncipe","Taiwan, China","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tokelau","Tonga","Trinidad & Tobago","Tristan da Cunha","Tunisia","Turkey","Turkmenistan","Turks & Caicos Islands","Tuvalu","U.S. Outlying Islands","U.S. Virgin Islands","Uganda","Ukraine","United Arab Emirates","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Wallis & Futuna","Western Sahara","Yemen","Zambia","Zimbabwe","\xc5land Islands"];function T(e){let{className:a,isPristine:n,name:i,placeholder:r,required:l}=e;return(0,t.jsx)(_.Z,{className:a,children:(0,t.jsxs)("select",{className:"".concat(k().input," form-input"),name:i,required:l,"data-pristine":n,children:[r&&(0,t.jsx)("option",{value:"",disabled:l,children:r}),S.map((e,a)=>(0,t.jsx)("option",{value:e,children:e},"field-country-option-".concat(a+1)))]})})}var I=n(7679),B=n(7714),M=n(7610),A=n.n(M);function H(e){let{className:a,label:n,name:i,required:r}=e,l=(0,B.cI)(),[o,s]=(0,c.useState)(-1),[u,d]=(0,c.useState)(-1),[m,p]=(0,c.useState)(-1),h=(0,c.useMemo)(()=>
1{if(![m,u,o].includes(-1))return"".concat(m,"-").concat(u+1,"-").concat(o)},[m,u,o]);return(0,c.useEffect)(()=>{var e;h&&(null===(e=l.mutators)||void 0===e||e.setFormAttribute(i,h))},[h,l,i]),(0,t.jsxs)(_.Z,{className:a,children:[(0,t.jsxs)("span",{className:"".concat(k().label," form-label"),children:[n,r?" *":""]}),(0,t.jsxs)("div",{className:"".concat(k().input," ").concat(A().parent," form-input"),children:[(0,t.jsxs)("div",{className:A().container,children:[(0,t.jsx)(I._W,{defaultValue:"DD",year:o,month:u,endYearGiven:!0,value:m,required:r,onChange:e=>p(parseInt(e,10)),id:"day",classes:"".concat(k().input," form-input")}),(0,t.jsx)(f.default,{className:A().chevron})]}),(0,t.jsxs)("div",{className:A().container,children:[(0,t.jsx)(I.lH,{defaultValue:"MM",numeric:!0,year:o,required:r,value:u,onChange:e=>d(parseInt(e,10)),id:"month",classes:"".concat(k().input," form-input")}),(0,t.jsx)(f.default,{className:A().chevron})]}),(0,t.jsxs)("div",{className:A().container,children:[(0,t.jsx)(I.qi,{defaultValue:"YYYY",reverse:!0,required:r,value:o,onChange:e=>s(parseInt(e,10)),id:"year",classes:"".concat(k().input," form-input"),optionClasses:"option classes"}),(0,t.jsx)(f.default,{className:A().chevron})]})]}),(0,t.jsx)("input",{className:"form-input",name:i,required:r,type:"hidden"})]})}function Z(e){let{className:a,label:n,name:i,options:r,required:l}=e;return(0,t.jsxs)(_.Z,{className:a,children:[n&&(0,t.jsxs)("span",{className:"".concat(k().label," form-label"),children:[n,l?" *":""]}),(0,t.jsxs)("select",{className:"".concat(k().input," form-input"),name:i,required:l,children:[(0,t.jsx)("option",{value:"",disabled:!0,children:"Select an option"}),(r||[]).map((e,a)=>(0,t.jsx)("option",{value:e.value,children:e.text},(0,h.Z)("selectOption",a)))]}),(0,t.jsx)(f.default,{className:k().chevron})]})}var F=n(4849),q=n.n(F);function L(e){let{className:a,name:n,placeholder:i,required:r}=e,[l]=function(){let e=(0,c.useRef)(null),a=(0,c.useRef)();return(0,c.useEffect)(()=>(e.current&&(a.current=q()(e.current,{preferredCountries:["us","gb","ca"]})),()=>{var e;null==a||null===(e=a.current)||void 0===e||e.destroy()}),[]),[e,a.current]}();return(0,t.jsx)(_.Z,{className:a,children:(0,t.jsx)("input",{className:"".concat(k().input," form-input"),name:n,placeholder:i,ref:l,required:r,type:"tel"})})}function W(e){let{backgroundColor:a,className:n,label:i,name:r,placeholder:l,required:o}=e;return(0,t.jsxs)(_.Z,{className:n,children:[i&&(0,t.jsxs)("span",{className:"".concat(k().label," form-label"),children:[i,o?" *":""]}),(0,t.jsx)("textarea",{className:"".concat(k().input," form-input"),"data-bg-color":a,name:r,placeholder:l,required:o})]})}function P(e){let{backgroundColor:a,className:n,label:i,name:r,placeholder:l,required:o,type:s}=e;return(0,t.jsxs)(_.Z,{className:n,children:[i&&(0,t.jsxs)("span",{className:"".concat(k().label," form-label"),children:[i,o?" *":""]}),(0,t.jsx)("input",{className:"".concat(k().input," form-input"),"data-bg-color":a,name:r,placeholder:l,required:o,type:s})]})}function G(e){let{content:{form:{acf:{fields:a},id:n},reverse:d=!1,backgroundColor:b,enabledBackgroundColor:_,fontSize:w,heading:v,primaryImage:y,seoSize:N,alignHeading:C,content:S},button:I}=e,B=(0,g.Z)("(max-width: ".concat(x().breakpoint,")")),M=d?"0px 200px 0px 0":"0px 0px 0px 200px";B&&(M="0px 0px 125px 0");let A=(0,c.useCallback)(async e=>{let{fields:a,formId:n,recaptchaToken:t}=e;try{let e=await fetch("/wp-json/contactforms/submit",{method:"POST",body:JSON.stringify({fields:a,formId:n,recaptchaToken:t})});if(e.ok){let{success:a}=await e.json();if(a)return{}}throw Error()}catch(e){return{[l.Ck]:"There was an error with the form. Please check and try again."}}},[]);return(0,t.jsx)(o.M,{children:(0,t.jsxs)("div",{"data-reverse":d,className:"container container--lrg ".concat(x().container),children:[_&&(0,t.jsx)(u.Z,{color:b,gap:M}),(0,t.jsx)("div",{"data-vertical-align":"center",className:"".concat(x().left),children:y&&(0,t.jsx)("div",{className:"o-image o-image--cover ".concat(x().image),children:(0,t.jsx)(r.ZP,{className:x().primaryImage,params:[{width:375},{width:550}],src:y.url,alt:y.alt||"Form Block Image",loading:"lazy"})})}),(0,t.jsx)("div",{className:"".concat(x().contentWrapper),children:(0,t.jsxs)("div",{children:[(0,t.jsx)(p.Z,{className:"".concat(x().content),heading:{as:N,size:w,text:v,alignHeading:C},content:S,align:C}),(0,t.jsx)(s.E.div,{"data-align":C,className:x().formWrapper,initial:{y:"50px",opacity:0}
1,whileInView:{y:"0",opacity:1},viewport:{once:!0,amount:0},transition:{delay:.25,duration:.5,ease:"easeInOut"},children:(0,t.jsxs)(i.Z,{formId:n,onSubmit:A,recaptchaSiteKey:"6LcaXJEnAAAAAP_fry8kt0CnAopqdCB_THhH8NLw",mutators:{setFormAttribute:(e,a,n)=>{let{changeValue:t}=n;t(a,e[0],()=>e[1])}},styles:{form:x().form,recaptchaDisclaimer:x().disclaimer,successMessage:x().success},children:[a.map((e,a)=>{switch(e.acf_fc_layout){case"email":case"text":return(0,t.jsx)(P,{backgroundColor:_?b:"",className:"".concat(k().wrapper," ").concat(e.label?k().hasLabel:""," form-field-wrapper width50"),label:e.label,name:e.name,placeholder:e.placeholder||"",required:e.required,type:e.acf_fc_layout},(0,h.Z)("field",a));case"birthday":return(0,t.jsx)(H,{className:"".concat(k().wrapper," ").concat(e.label?k().hasLabel:""," form-field-wrapper"),label:e.label,name:e.name,required:e.required},(0,h.Z)("dob",a));case"checkbox":return(0,t.jsx)(j,{className:"".concat(k().wrapper," ").concat(e.label?k().hasLabel:""," form-field-wrapper"),label:e.label,name:e.name,required:e.required},(0,h.Z)("checkbox",a));case"country":return(0,t.jsxs)("div",{className:k().selectWrapper,children:[(0,t.jsx)(T,{className:"".concat(k().wrapper," ").concat(e.label?k().hasLabel:""," form-field-wrapper"),name:e.name,required:e.required},(0,h.Z)("country",a)),(0,t.jsx)(f.default,{className:k().chevron})]});case"select":return(0,t.jsx)(Z,{className:"".concat(k().wrapper," ").concat(e.label?k().hasLabel:""," form-field-wrapper width100"),label:e.label,name:e.name,options:e.options||[],required:e.required},(0,h.Z)("select",a));case"telephone":return(0,t.jsx)(L,{className:"".concat(k().wrapper," form-field-wrapper"),name:e.name,required:e.required},(0,h.Z)("checkbox",a));case"textArea":return(0,t.jsx)(W,{backgroundColor:_?b:"",className:"".concat(k().wrapper," ").concat(e.label?k().hasLabel:""," form-field-wrapper width100"),label:e.label,name:e.name,placeholder:e.placeholder||"",required:e.required},(0,h.Z)("textarea",a));default:return null}}),(0,t.jsx)("button",{className:"".concat(m().button," ").concat(m().tertiary," ").concat(x().submit),"data-style":"primary","data-hover-color":"black",type:"submit",children:(0,t.jsx)("span",{children:(null==I?void 0:I.label)?null==I?void 0:I.label:"Send"})})]})})]})})]})})}n(4230)},9072:function(e,a,n){"use strict";n.d(a,{Z:function(){return m}});var t=n(1549),i=n(518),r=n(9510);n(4194);var l=n(7673),o=n(3246),s=n(9669);function c(e){let{subheading:a}=e;return a?(0,t.jsx)("p",{className:"subheading",children:a}):null}var u=n(5946),d=n.n(u);function m(e){let{align:a="center",blockAlignment:n,buttons:u,className:m="",content:p,isBlack:h,heading:g,subheading:f,...b}=e;return p||(null==g?void 0:g.text)?(0,t.jsx)(i.M,{children:(0,t.jsxs)("div",{className:"content ".concat(m).trim(),"data-align":a,"data-block-align":n,...b,children:[(0,t.jsx)("div",{className:"".concat(g.text?"heading":null," ").concat(d().heading),"data-align":g.alignHeading||"left","data-has-subheading":f?"true":"false",children:(0,t.jsxs)(r.E.div,{className:d().relative,initial:{y:"50px",opacity:0},whileInView:{y:"0",opacity:1},viewport:{once:!0,amount:0},transition:{duration:.5,ease:"easeInOut"},"data-alignment":g.alignHeading,children:[(0,t.jsx)(o.Z,{as:g.as,size:g.size,text:g.text,alignHeading:g.alignHeading}),f&&(0,t.jsx)(c,{subheading:f})]})}),p&&(0,t.jsx)(r.E.div,{className:d().content,initial:{y:"50px",opacity:0},whileInView:{y:"0",opacity:1},viewport:{once:!0,amount:0},transition:{delay:0,duration:.5,ease:"easeInOut"},children:(0,t.jsx)(s.Z,{content:p})}),u&&(0,t.jsx)(r.E.div,{className:d().buttonBox,initial:{y:"50px",opacity:0},whileInView:{y:"0",opacity:1},viewport:{once:!0,amount:0},transition:{delay:.2,duration:.5,ease:"easeInOut"},children:(0,t.jsx)(l.Z,{className:d().buttons,isBlack:h,buttons:u})})]})}):null}},3246:function(e,a,n){"use strict";n.d(a,{Z:function(){return o}});var t=n(1549),i=n(3136);n(4194);var r=n(1514),l=n(709);function o(e){let{as:a="h1",size:n="beta",text:o,alignHeading:s,disableVerticalLine:c=!1,disableTextLine:u=!1,...d}=e,{theme:m}=(0,i.Z)({slug:["sitewide"]});return o?(0,t.jsxs)("div",{children:[(0,t.jsx)(a,{className:"heading--".concat(n),...d,"data-align":s,dangerouslySetInnerHTML:{__html:o.split("<br/>").join("\n").split("<br>").join("\n")}}),["Propeller"].includes(m)&&!u&&(0,t.jsx)(r.Z,{align:s}),["Propeller"].includes(m)&&"center"===s&&!c&&(0,t.jsx)(l.Z,{})]}):null}},353:function(e,a,n){"use strict";n.d(a,{K:function(){return i}});var t=n(4194);function i(e){let[a,n]=(0,t.useState)({windowHeight:0,documentHeight:0,scrollPosition:0,elementToTop:0,elementToWindowTop:0,percentToWindow:0,percentToWindowCapped:0,elementHeight:0}),i=(0,t.useCallback)(()=>
1{if(e.current){let a=e.current.getBoundingClientRect().top/window.innerHeight*100;a>100&&(a=100),a<0&&(a=0),n({windowHeight:window.innerHeight,documentHeight:document.body.scrollHeight,scrollPosition:window.scrollY,elementToWindowTop:e.current.getBoundingClientRect().top,elementToTop:e.current.getBoundingClientRect().top+window.scrollY,percentToWindow:e.current.getBoundingClientRect().top/window.innerHeight*100,percentToWindowCapped:a,elementHeight:e.current.getBoundingClientRect().height})}},[e]);return(0,t.useEffect)(()=>(i(),document.addEventListener("scroll",i),()=>document.removeEventListener("scroll",i)),[]),a}},3908:function(e){e.exports={line:"Animated_line__ghbuA",left:"Animated_left__TAeNR",right:"Animated_right__plgx9",center:"Animated_center__DRBvI",lineWrapper:"Animated_lineWrapper__02me9",centerVerticalLine:"Animated_centerVerticalLine__DNGul",lineOne:"Animated_lineOne__zUmiB",lineTwo:"Animated_lineTwo__39uCc",twoLines:"Animated_twoLines__o9D61"}},6933:function(e){e.exports={background:"Background_background__MO9LE"}},5104:function(e){e.exports={breakpoint:"820px",container:"FormBlock_container__KexpF","form-title":"FormBlock_form-title__9t_Ai",form:"FormBlock_form__b_Zbh",submit:"FormBlock_submit__5Xhk5",disclaimer:"FormBlock_disclaimer__9roUZ",success:"FormBlock_success___ZnQ_",contentWrapper:"FormBlock_contentWrapper__8TNWY",content:"FormBlock_content__1PHHQ",left:"FormBlock_left__GpFH4",image:"FormBlock_image__AfTUs"}},3676:function(e){e.exports={mark:"Checkbox_mark__oWcJB",input:"Checkbox_input__JQfWC",label:"Checkbox_label__Q9kb5"}},7610:function(e){e.exports={container:"Dob_container__wO0wO",parent:"Dob_parent__q4CBF",chevron:"Dob_chevron__0Aikr"}},9831:function(e){e.exports={wrapper:"FormField_wrapper__iyunp",label:"FormField_label__m6YN0",input:"FormField_input__QEqMZ",chevron:"FormField_chevron__YBosm",selectWrapper:"FormField_selectWrapper__c3Nfc",hasLabel:"FormField_hasLabel__qydl0"}},5946:function(e){e.exports={heading:"Content_heading__H_Nli",relative:"Content_relative__vzysb"}}}]);

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.