PageSourceSearch

https://www.ecotricity.co.uk/component---src-templates-form-tsx-d56e9ffc1a5f018956dd.js

js ecotricity.co.uk collected 2026-09-24 15:20:51 UTC 54,554 bytes, 3 lines download raw bytes

1/*! For license information please see component---src-templates-form-tsx-d56e9ffc1a5f018956dd.js.LICENSE.txt */
2(self.webpackChunkecotricity=self.webpackChunkecotricity||[]).push([[9274],{844:function(e,t,r){r(4200)},1160:function(e,t,r){"use strict";var n=r(6835),i=r(3614),a=r(9509),s=r(243);t.A=({topic:e,heading:t,subheading:r,standfirst:o,text:l})=>{const u={gridTemplateColumns:["[start] repeat(12, 1fr) [end]",null,"1fr [start] repeat(10, 1fr) [end] 1fr"],rowGap:10,"::before":{content:e&&'""',display:["none",null,"block"],borderTop:"double",position:"relative",top:"50%"}},c={gridColumn:"start / end",marginTop:12},d=null==o?void 0:o.split("\n").filter(Boolean).map((e,t)=>(0,s.Y)(n.EY,{as:"p",variant:"intro",children:e},t));return(0,s.FD)(n.xA,{sx:u,variant:"default",children:[(0,s.Y)(n.EY,{sx:{gridColumn:"start / end",letterSpacing:"0.4em"},variant:"contrast",children:e}),t&&(0,s.Y)(n.DZ,{as:"h1",sx:{gridColumn:"start / end",fontSize:[6,7]},variant:"xl",children:t}),r&&(0,s.Y)(n.DZ,{as:"h2",sx:{gridColumn:"start / end",marginTop:-9},variant:"head",children:r}),o&&(0,s.Y)(i.BJ,{sx:c,gap:11,children:d}),l&&(0,s.Y)(i.BJ,{sx:c,gap:11,children:(0,a.CA)(l)})]})}},3934:function(e,t,r){"use strict";var n=r(6540),i=r(6835),a=r(6201),s=r.n(a),o=r(243);t.A=({isOpen:e,onClose:t,children:r})=>{const a=(0,n.useRef)(null);return(0,n.useEffect)(()=>{var e;return null===(e=a.current)||void 0===e||e.addEventListener("close",t),()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.removeEventListener("close",t)}},[t]),(0,n.useEffect)(()=>{var t,r,n;e?(null===(t=a.current)||void 0===t||t.showModal(),null===(r=a.current)||void 0===r||r.focus()):null===(n=a.current)||void 0===n||n.close()},[e]),(0,o.Y)("dialog",{ref:a,"aria-modal":"true",onClick:()=>t(),sx:{background:"transparent",border:"none",outline:"none","::backdrop":{background:"rgba(51,51,51,0.8)"}},children:(0,o.Y)("div",{sx:{display:"flex",flexDirection:"column",position:"relative"},children:(0,o.FD)("div",{sx:{border:"none",borderRadius:"10px",background:"white",marginBottom:"20px"},children:[(0,o.Y)("div",{sx:{display:"flex",justifyContent:"flex-end"},children:(0,o.Y)(i.K0,{size:44,sx:{margin:"10px 20px 10px 0",color:"text",bg:"background"},"aria-label":"Close",onClick:()=>t(),children:(0,o.Y)(s(),{"aria-hidden":"true",width:20,height:20})})}),(0,o.Y)("div",{sx:{padding:"0 30px 30px"},children:r})]})})})}},4200:function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=r(6540),a=n(i),s=r(961);r(5556);var o=n(r(311));function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function c(e){return requestAnimationFrame(e)}function d(e){cancelAnimationFrame(e)}function f(e){var t=e.ownerDocument;return t.hasFocus()&&t.activeElement===e}function m(e){return null==e?void 0:e.ownerDocument}function h(e){return i.useCallback(function(){var t=e.current,r="undefined"!=typeof window&&function(e){var t=function(e){var t;return null==(t=m(e))?void 0:t.defaultView}(e);return!!t&&e instanceof t.HTMLElement}(t);if(!t||!r)return null;if("INPUT"!==t.nodeName&&(t=t.querySelector("input")),!t)throw new Error("react-input-mask: inputComponent doesn't contain input node");return t},[e])}function g(e,t){var r,n,a,s,o=i.useRef({start:null,end:null}),l=h(e),u=i.useCallback(function(){return function(e){var t=e.selectionStart,r=e.selectionEnd;return{start:t,end:r,length:r-t}}(l())},[l]),m=i.useCallback(function(){return o.current},[]),g=i.useCallback(function(e){var t=l();t&&f(t)&&(function(e,t,r){void 0===r&&(r=t),e.setSelectionRange(t,r)}(t,e.start,e.end),o.current=u())},[l,u]),p=i.useCallback(function(){o.current=u()},[u]),v=(r=p,n=i.useRef(null),a=i.useCallback(function(){null===n.current&&function e(){r(),n.current=c(e)}()},[r]),s=i.useCallback(function(){d(n.current),n.current=null},[]),i.useEffect(function(){n.current&&(s(),a())},[a,s]),i.useEffect(d,[]),[a,s]),b=v[0],y=v[1];return i.useLayoutEffect(function(){if(t){var e=l();return e.addEventListener("focus",b),e.addEventListener("blur",y),f(e)&&b(),function(){e.removeEventListener("focus",b),e.removeEventListener("blur",y),y()}}}),{getSelection:u,getLastSelection:m,setSelection:g}}
2function p(e,t){var r=i.useRef(),n=g(r,t),a=n.getSelection,s=n.getLastSelection,o=n.setSelection,l=function(e,t){var r=h(e),n=i.useRef(t);return{getValue:i.useCallback(function(){return r().value},[r]),getLastValue:i.useCallback(function(){return n.current},[]),setValue:i.useCallback(function(e){n.current=e;var t=r();t&&(t.value=e)},[r])}}(r,e),u=l.getValue,c=l.getLastValue,d=l.setValue;return{inputRef:r,getInputState:function(){return{value:u(),selection:a()}},getLastInputState:function(){return{value:c(),selection:s()}},setInputState:function(e){var t=e.value,r=e.selection;d(t),o(r)}}}r(9771);var v=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],b={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},y=function(e){var t=this;this.isCharacterAllowedAtPosition=function(e,r){var n=t.maskOptions.maskPlaceholder;return!!t.isCharacterFillingPosition(e,r)||!!n&&n[r]===e},this.isCharacterFillingPosition=function(e,r){var n=t.maskOptions.mask;if(!e||r>=n.length)return!1;if(!t.isPositionEditable(r))return n[r]===e;var i=n[r];return new RegExp(i).test(e)},this.isPositionEditable=function(e){var r=t.maskOptions,n=r.mask,i=r.permanents;return e<n.length&&-1===i.indexOf(e)},this.isValueEmpty=function(e){return e.split("").every(function(e,r){return!t.isPositionEditable(r)||!t.isCharacterFillingPosition(e,r)})},this.isValueFilled=function(e){return t.getFilledLength(e)===t.maskOptions.lastEditablePosition+1},this.getDefaultSelectionForValue=function(e){var r=t.getFilledLength(e),n=t.getRightEditablePosition(r);return{start:n,end:n}},this.getFilledLength=function(e){return function(e,t){for(var r=e.length-1;r>=0;r--)if(t(e[r],r))return r;return-1}(e.split(""),function(e,r){return t.isPositionEditable(r)&&t.isCharacterFillingPosition(e,r)})+1},this.getStringFillingLengthAtPosition=function(e,r){return e.split("").reduce(function(e,r){return t.insertCharacterAtPosition(e,r,e.length)},function(e,t){void 0===t&&(t=1);for(var r="",n=0;n<t;n++)r+=" ";return r}(0,r)).length-r},this.getLeftEditablePosition=function(e){for(var r=e;r>=0;r--)if(t.isPositionEditable(r))return r;return null},this.getRightEditablePosition=function(e){for(var r=t.maskOptions.mask,n=e;n<r.length;n++)if(t.isPositionEditable(n))return n;return null},this.formatValue=function(e){var r=t.maskOptions,n=r.maskPlaceholder,i=r.mask;if(!n){for(e=t.insertStringAtPosition("",e,0);e.length<i.length&&!t.isPositionEditable(e.length);)e+=i[e.length];return e}return t.insertStringAtPosition(n,e,0)},this.clearRange=function(e,r,n){if(!n)return e;var i=r+n,a=t.maskOptions,s=a.maskPlaceholder,o=a.mask,l=e.split("").map(function(e,n){var a=t.isPositionEditable(n);return!s&&n>=i&&!a?"":n<r||n>=i?e:a?s?s[n]:"":o[n]}).join("");return t.formatValue(l)},this.insertCharacterAtPosition=function(e,r,n){var i=t.maskOptions,a=i.mask,s=i.maskPlaceholder;if(n>=a.length)return e;var o=t.isCharacterAllowedAtPosition(r,n),l=t.isPositionEditable(n),u=t.getRightEditablePosition(n),c=s&&u?r===s[u]:null,d=e.slice(0,n);return!o&&l||(e=d+(o?r:a[n])),o||l||c||(e=t.insertCharacterAtPosition(e,r,n+1)),e},this.insertStringAtPosition=function(e,r,n){var i=t.maskOptions,a=i.mask,s=i.maskPlaceholder;if(!r||n>=a.length)return e;var o=r.split(""),l=t.isValueFilled(e)||!!s,u=e.slice(n);return e=o.reduce(function(e,r){return t.insertCharacterAtPosition(e,r,e.length)},e.slice(0,n)),l?e+=u.slice(e.length-n):t.isValueFilled(e)?e+=a.slice(e.length).join(""):e=u.split("").filter(function(e,r){return t.isPositionEditable(n+r)}).reduce(function(e,r){var n=t.getRightEditablePosition(e.length);return null===n?e:(t.isPositionEditable(e.length)||(e+=a.slice(e.length,n).join("")),t.insertCharacterAtPosition(e,r,e.length))},e),e},this.processChange=function(e,r){var n=t.maskOptions,i=n.mask,a=n.prefix,s=n.lastEditablePosition,o=e.value,l=e.selection,u=r.value,c=r.selection,d=o,f="",m=0,h=0,g=Math.min(c.start,l.start);return l.end>c.start?(f=d.slice(c.start,l.end),h=(m=t.getStringFillingLengthAtPosition(f,g))?c.length:0):d.length<u.length&&(h=u.length-d.length),d=u,h&&(1!==h||c.length||(g=c.start===l.start?t.getRightEditablePosition(l.start):t.getLeftEditablePosition(l.start)),d=t.clearRange(d,g,h)),d=t.insertStringAtPosition(d,f,g),(g+=m)>=i.length?g=i.length:g<a.length&&!m?g=a.length:g>=a.length&&g<s&&m&&(g=t.getRightEditablePosition(g)),{value:d=t.formatValue(d),enteredString:f,selection:{start:g,end:g}}},this.maskOptions=function(e){var t=e.mask,r=e.maskPlaceholder,n=[];if(!t)return{maskPlaceholder:null,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};if("string"==typeof t){var i=!1,a="";t.split("").forEach(function(e){i||"\\"!==e?(!i&&b[e]||n.push(a.length),a+=e,i=!1):i=!0}),t=a.split("").map(function(e,t){return-1===n.indexOf(t)?b[e]:e})}else t.forEach(function(e,t){"string"==typeof e&&n.push(t)});r&&(r=1===r.length?t.map(function(e,t){return-1!==n.indexOf(t)?e:r}
2):r.split(""),n.forEach(function(e){r[e]=t[e]}),r=r.join(""));for(var s=n.filter(function(e,t){return e===t}).map(function(e){return t[e]}).join(""),o=t.length-1;-1!==n.indexOf(o);)o--;return{maskPlaceholder:r,prefix:s,mask:t,lastEditablePosition:o,permanents:n}}(e)},w=function(e){function t(){return e.apply(this,arguments)||this}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,function(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var i=r[n],a=Object.getOwnPropertyDescriptor(t,i);a&&a.configurable&&void 0===e[i]&&Object.defineProperty(e,i,a)}}(e,t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.children,r=u(e,["children"]);return a.cloneElement(t,r)},t}(a.Component),F=i.forwardRef(function(e,t){var r=e.alwaysShowMask,n=e.children,d=e.mask,g=e.maskPlaceholder,b=e.beforeMaskedStateChange,F=u(e,["alwaysShowMask","children","mask","maskPlaceholder","beforeMaskedStateChange"]);!function(e){var t=e.mask,r=e.maskPlaceholder;t&&r&&1!==r.length&&r.length!==t.length&&o(!1)}(e);var x,S,k=new y({mask:d,maskPlaceholder:g}),D=!!d,O=!F.disabled&&!F.readOnly,E=null!==e.value&&void 0!==e.value,Y=(x=D,S=i.useRef(),i.useEffect(function(){S.current=x}),S.current),R=p(function(e){return""+e}((E?e.value:e.defaultValue)||""),D),C=R.inputRef,N=R.getInputState,j=R.setInputState,P=R.getLastInputState,$=h(C);if(D&&E){var V=$(),M=V&&f(V)||r||e.value?k.formatValue(e.value):e.value;b&&(M=b({nextState:{value:M,selection:{start:null,end:null}}}).value),j(l({},P(),{value:M}))}var A=P(),T=A.selection,I=A.value;i.useLayoutEffect(function(){if(D){var e=f($()),t=T,n=N(),i=l({},n);if(!E){var a=n.value,s=k.formatValue(a),o=k.isValueEmpty(s);!o||e||r?i.value=s:o&&!e&&(i.value="")}e&&!Y?i.selection=k.getDefaultSelectionForValue(i.value):E&&e&&t&&null!==t.start&&null!==t.end&&(i.selection=t),b&&(i=b({currentState:n,nextState:i})),j(i)}});var L=l({},F,{onFocus:function(t){C.current=t.target;var r=N().value;if(D&&!k.isValueFilled(r)){var n=k.formatValue(r),i=k.getDefaultSelectionForValue(n),a={value:n,selection:i};b&&(n=(a=b({currentState:N(),nextState:a})).value,i=a.selection),j(a),n!==r&&e.onChange&&e.onChange(t),c(function(){j(P())})}e.onFocus&&e.onFocus(t)},onBlur:function(t){var n=N().value,i=P().value;if(D&&!r&&k.isValueEmpty(i)){var a="",s={value:a,selection:{start:null,end:null}};b&&(a=(s=b({currentState:N(),nextState:s})).value),j(s),a!==n&&e.onChange&&e.onChange(t)}e.onBlur&&e.onBlur(t)},onChange:D&&O?function(t){var r=N(),n=P(),i=k.processChange(r,n);b&&(i=b({currentState:r,previousState:n,nextState:i})),j(i),e.onChange&&e.onChange(t)}:e.onChange,onMouseDown:D&&O?function(t){var r=$(),n=N().value,i=m(r);if(!f(r)&&!k.isValueFilled(n)){var a=t.clientX,s=t.clientY,o=(new Date).getTime();i.addEventListener("mouseup",function e(t){if(i.removeEventListener("mouseup",e),f(r)){var n=Math.abs(t.clientX-a),u=Math.abs(t.clientY-s),c=Math.max(n,u),d=(new Date).getTime()-o;if(c<=10&&d<=200||c<=5&&d<=300){var m=P(),h=l({},m,{selection:k.getDefaultSelectionForValue(m.value)});j(h)}}})}e.onMouseDown&&e.onMouseDown(t)}:e.onMouseDown,ref:function(e){C.current=s.findDOMNode(e),function(e){return"function"==typeof e}(t)?t(e):null!==t&&"object"==typeof t&&(t.current=e)},value:D&&E?I:e.value});return n?(function(e,t){v.filter(function(r){return null!=t.props[r]&&t.props[r]!==e[r]}).length&&o(!1)}(e,n),a.createElement(w,L,n)):a.createElement("input",L)});F.displayName="InputMask",F.defaultProps={alwaysShowMask:!1,maskPlaceholder:"_"},e.exports=F},6147:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return Lt}});var n=r(6835),i=r(3343),a=r(1501),s=r(1160),o=r(6540),l=e=>e instanceof HTMLElement;const u="blur",c="change",d="input",f="onBlur",m="onChange",h="onSubmit",g="onTouched",p="all",v="select",b="undefined",y="max",w="min",F="maxLength",x="minLength",S="pattern",k="required",D="validate";var O=e=>null==e,E=e=>Array.isArray(e);const Y=e=>"object"==typeof e;var R=e=>!O(e)&&!E(e)&&Y(e)&&!(e instanceof Date),C=e=>!E(e)&&(/^\w*$/.test(e)||!/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/.test(e)),N=e=>{const t=[];return e.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,(e,r,n,i)=>{t.push(n?i.replace(/\\(\\)?/g,"$1"):r||e)}),t};function j(e,t,r){let n=-1;const i=C(t)?[t]:N(t),a=i.length,s=a-1;for(;++n<a;){const t=i[n];let a=r;if(n!==s){const r=e[t];
2a=R(r)||E(r)?r:isNaN(+i[n+1])?{}:[]}e[t]=a,e=e[t]}return e}var P=e=>Object.entries(e).reduce((e,[t,r])=>C(t)?Object.assign(Object.assign({},e),{[t]:r}):(j(e,t,r),e),{}),$=e=>void 0===e,V=e=>e.filter(Boolean),M=(e,t,r)=>{const n=V(t.split(/[,[\].]+?/)).reduce((e,t)=>O(e)?e:e[t],e);return $(n)||n===e?$(e[t])?r:e[t]:n},A=(e,t)=>{l(e)&&e.removeEventListener&&(e.removeEventListener(d,t),e.removeEventListener(c,t),e.removeEventListener(u,t))};const T={isValid:!1,value:""};var I=e=>E(e)?e.reduce((e,t)=>t&&t.ref.checked?{isValid:!0,value:t.ref.value}:e,T):T,L=e=>"radio"===e.type,B=e=>"file"===e.type,z=e=>"checkbox"===e.type,U=e=>e.type===`${v}-multiple`;const q={value:!1,isValid:!1},Z={value:!0,isValid:!0};var J=e=>{if(E(e)){if(e.length>1){const t=e.filter(e=>e&&e.ref.checked).map(({ref:{value:e}})=>e);return{value:t,isValid:!!t.length}}const{checked:t,value:r,attributes:n}=e[0].ref;return t?n&&!$(n.value)?$(r)||""===r?Z:{value:r,isValid:!0}:Z:q}return q};function W(e,t,r,n){const i=e.current[t];if(i){const{ref:{value:e,disabled:t},ref:r}=i;if(t&&n)return;return B(r)?r.files:L(r)?I(i.options).value:U(r)?(a=r.options,[...a].filter(({selected:e})=>e).map(({value:e})=>e)):z(r)?J(i.options).value:e}var a;if(r)return M(r.current,t)}function _(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&_(e.parentNode)}var H=e=>R(e)&&!Object.keys(e).length,G=e=>"boolean"==typeof e;function K(e,t){const r=C(t)?[t]:N(t),n=1==r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=$(e)?n++:e[t[n++]];return e}(e,r),i=r[r.length-1];let a;n&&delete n[i];for(let s=0;s<r.slice(0,-1).length;s++){let t,n=-1;const i=r.slice(0,-(s+1)),o=i.length-1;for(s>0&&(a=e);++n<i.length;){const r=i[n];t=t?t[r]:e[r],o===n&&(R(t)&&H(t)||E(t)&&!t.filter(e=>R(e)&&!H(e)||G(e)).length)&&(a?delete a[r]:delete e[r]),a=t}}return e}const X=(e,t)=>e&&e.ref===t;function Q(e,t,r,n,i){let a=-1;for(;++a<e.length;){for(const n in e[a])E(e[a][n])?(!r[a]&&(r[a]={}),r[a][n]=[],Q(e[a][n],M(t[a]||{},n,[]),r[a][n],r[a],n)):M(t[a]||{},n)===e[a][n]?j(r[a]||{},n):r[a]=Object.assign(Object.assign({},r[a]),{[n]:!0});!r.length&&n&&delete n[i]}return r.length?r:void 0}var ee=e=>"string"==typeof e,te=e=>O(e)||!Y(e);function re(e,t){if(te(e)||te(t))return t;for(const n in t){const i=e[n],a=t[n];try{R(i)&&R(a)||E(i)&&E(a)?e[n]=re(i,a):e[n]=a}catch(r){}}return e}var ne=(e,t,r,n)=>{const i={};for(const a in e.current)($(n)||(ee(n)?a.startsWith(n):E(n)&&n.find(e=>a.startsWith(e))))&&(i[a]=W(e,a,void 0,r));return re(P(Object.assign({},(t||{}).current||{})),P(i))};function ie(e=[],t=[],r){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(const a of n)if(!r||!["ref","context"].includes(a)){const n=e[a],i=t[a];if((R(n)||E(n))&&(R(i)||E(i))?!ie(n,i,r):n!==i)return!1}return!0}var ae=e=>e instanceof RegExp;var se=e=>{return R(t=e)&&!ae(t)?e:{value:e,message:""};var t},oe=e=>"function"==typeof e,le=e=>ee(e)||R(e)&&(0,o.isValidElement)(e);function ue(e,t,r="validate"){if(le(e)||G(e)&&!e)return{type:r,message:le(e)?e:"",ref:t}}var ce=(e,t,r,n,i)=>{if(t){const t=r[e];return Object.assign(Object.assign({},t),{types:Object.assign(Object.assign({},t&&t.types?t.types:{}),{[n]:i||!0})})}return{}},de=async(e,t,{ref:r,ref:{type:n,value:i},options:a,required:s,maxLength:o,minLength:l,min:u,max:c,pattern:d,validate:f},m)=>{const h=e.current,g=r.name,p={},v=L(r),b=z(r),E=v||b,Y=""===i,C=ce.bind(null,g,t,p),N=(e,t,n,i=F,a=x)=>{const s=e?t:n;p[g]=Object.assign({type:e?i:a,message:s,ref:r},C(e?i:a,s))};if(s&&(!v&&!b&&(Y||O(i))||G(i)&&!i||b&&!J(a).isValid||v&&!I(a).isValid)){const{value:e,message:n}=le(s)?{value:!!s,message:s}:se(s);if(e&&(p[g]=Object.assign({type:k,message:n,ref:E?((h[g].options||[])[0]||{}).ref:r},C(k,n)),!t))return p}if(!O(u)||!O(c)){let e,a;const{value:s,message:o}=se(c),{value:l,message:d}=se(u);if("number"===n||!n&&!isNaN(i)){const t=r.valueAsNumber||parseFloat(i);O(s)||(e=t>s),O(l)||(a=t<l)}else{const t=r.valueAsDate||new Date(i);ee(s)&&(e=t>new Date(s)),ee(l)&&(a=t<new Date(l))}if((e||a)&&(N(!!e,o,d,y,w),!t))return p}if(ee(i)&&!Y&&(o||l)){const{value:e,message:r}=se(o),{value:n,message:a}=se(l),s=i.toString().length,u=!O(e)&&s>e,c=!O(n)&&s<n;if((u||c)&&(N(!!u,r,a),!t))return p}if(d&&!Y){const{value:e,message:n}=se(d);if(ae(e)&&!e.test(i)&&(p[g]=Object.assign({type:S,message:n,ref:r},C(S,n)),!t))return p}if(f){const n=W(e,g,m),i=E&&a?a[0].ref:r;if(oe(f)){const e=ue(await f(n),i);if(e&&(p[g]=Object.assign(Object.assign({},e),C(D,e.message)),!t))return p}else if(R(f)){let e={};for(const[r,a]of Object.entries(f)){if(!H(e)&&!t)break;
2const s=ue(await a(n),i,r);s&&(e=Object.assign(Object.assign({},s),C(r,s.message)),t&&(p[g]=e))}if(!H(e)&&(p[g]=Object.assign({ref:i},e),!t))return p}}return p};const fe=(e,t)=>Object.entries(t).map(([r,n])=>((t,r,n)=>{const i=n?`${e}.${t}`:`${e}[${t}]`;return te(r)?i:fe(i,r)})(r,n,R(t))).flat(1/0);var me=(e,t,r,n,i)=>{let a;return r.add(t),H(e)?a=void 0:(a=M(e,t),(R(a)||E(a))&&fe(t,a).forEach(e=>r.add(e))),$(a)?i?n:M(n,t):a},he=({isOnBlur:e,isOnChange:t,isOnTouch:r,isTouched:n,isReValidateOnBlur:i,isReValidateOnChange:a,isBlurEvent:s,isSubmitted:o,isOnAll:l})=>!l&&(!o&&r?!(n||s):(o?i:e)?!s:!(o?a:t)||s),ge=e=>e.substring(0,e.indexOf("["));const pe=(e,t)=>RegExp(`^${t}[\\d+]`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e);var ve=(e,t)=>[...e].some(e=>pe(t,e));var be=e=>({isOnSubmit:!e||e===h,isOnBlur:e===f,isOnChange:e===m,isOnAll:e===p,isOnTouch:e===g}),ye=e=>L(e)||z(e);const we=typeof window===b,Fe=typeof document!==b&&!we&&!$(window.HTMLElement),xe=Fe?"Proxy"in window:typeof Proxy!==b;function Se({mode:e=h,reValidateMode:t=m,resolver:r,context:n,defaultValues:i={},shouldFocusError:a=!0,shouldUnregister:s=!0,criteriaMode:f}={}){const g=(0,o.useRef)({}),b=(0,o.useRef)({}),y=(0,o.useRef)(new Set),w=(0,o.useRef)({}),F=(0,o.useRef)({}),x=(0,o.useRef)({}),S=(0,o.useRef)({}),k=(0,o.useRef)(i),D=(0,o.useRef)({}),Y=(0,o.useRef)(!1),N=(0,o.useRef)(!1),T=(0,o.useRef)(),I=(0,o.useRef)(s?{}:Object.assign({},i)),q=(0,o.useRef)({}),Z=(0,o.useRef)(n),J=(0,o.useRef)(r),G=(0,o.useRef)(new Set),re=(0,o.useRef)(be(e)),{isOnSubmit:ae,isOnTouch:se}=re.current,le=f===p,[ue,ce]=(0,o.useState)({isDirty:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touched:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!ae,errors:{}}),pe=(0,o.useRef)({isDirty:!xe,dirtyFields:!xe,touched:!xe||se,isSubmitting:!xe,isValid:!xe}),Se=(0,o.useRef)(ue),ke=(0,o.useRef)(),{isOnBlur:De,isOnChange:Oe}=(0,o.useRef)(be(t)).current;Z.current=n,J.current=r,Se.current=ue;const Ee=(0,o.useCallback)((e={})=>!Y.current&&ce(Object.assign(Object.assign({},Se.current),e)),[]),Ye=(0,o.useCallback)((e,t,r=!1,n={},i)=>{let a=r||function({errors:e,name:t,error:r,validFields:n,fieldsWithValidation:i}){const a=$(r),s=M(e,t);return a&&!!s||!a&&!ie(s,r,!0)||a&&M(i,t)&&!M(n,t)}({errors:Se.current.errors,error:t,name:e,validFields:S.current,fieldsWithValidation:x.current});const s=M(Se.current.errors,e);t?(K(S.current,e),a=a||!s||!ie(s,t,!0),j(Se.current.errors,e,t)):((M(x.current,e)||J.current)&&(j(S.current,e,!0),a=a||s),K(Se.current.errors,e)),(a&&!O(r)||!H(n))&&Ee(Object.assign(Object.assign(Object.assign({},n),{errors:Se.current.errors}),J.current?{isValid:!!i}:{}))},[]),Re=(0,o.useCallback)((e,t)=>{const{ref:r,options:n}=g.current[e],i=Fe&&l(r)&&O(t)?"":t;L(r)&&n?n.forEach(({ref:e})=>e.checked=e.value===i):B(r)&&!ee(i)?r.files=i:U(r)?[...r.options].forEach(e=>e.selected=i.includes(e.value)):z(r)&&n?n.length>1?n.forEach(({ref:e})=>e.checked=E(i)?!!i.find(t=>t===e.value):i===e.value):n[0].ref.checked=!!i:r.value=i},[]),Ce=()=>!ie(Le(),H(k.current)?D.current:k.current)||!H(Se.current.dirtyFields),Ne=(0,o.useCallback)((e,t=!0)=>{if(pe.current.isDirty||pe.current.dirtyFields){const r=M(D.current,e)!==W(g,e,I),n=M(Se.current.dirtyFields,e),i=Se.current.isDirty;r?j(Se.current.dirtyFields,e,!0):K(Se.current.dirtyFields,e);const a={isDirty:Ce(),dirtyFields:Se.current.dirtyFields},s=pe.current.isDirty&&i!==a.isDirty||pe.current.dirtyFields&&n!==M(Se.current.dirtyFields,e);return s&&t&&(Se.current=Object.assign(Object.assign({},Se.current),a),Ee(Object.assign({},a))),s?a:{}}return{}},[]),je=(0,o.useCallback)(async(e,t)=>{if(g.current[e]){const r=(await de(g,le,g.current[e],I))[e];return Ye(e,r,t),$(r)}return!1},[Ye,le]),Pe=(0,o.useCallback)(async e=>{const{errors:t}=await J.current(Le(),Z.current,le),r=Se.current.isValid;if(E(e)){const r=e.map(e=>{const r=M(t,e);return r?j(Se.current.errors,e,r):K(Se.current.errors,e),!r}).every(Boolean);return Ee({isValid:H(t),errors:Se.current.errors}),r}{const n=M(t,e);return Ye(e,n,r!==H(t),{},H(t)),!n}},[Ye,le]),$e=(0,o.useCallback)(async e=>{const t=e||Object.keys(g.current);if(J.current)return Pe(t);if(E(t)){const e=await Promise.all(t.map(async e=>await je(e,null)));return Ee(),e.every(Boolean)}return await je(t,pe.current.isValid)},[Pe,je]),Ve=(0,o.useCallback)((e,t,{shouldDirty:r,shouldValidate:n})=>{const i={};j(i,e,t);for(const a of fe(e,t))g.current[a]&&(Re(a,M(i,a)),r&&Ne(a),n&&$e(a))},[$e,Re,Ne]),Me=(0,o.useCallback)((e,t,r={})=>{g.current[e]?(Re(e,t),r.shouldDirty&&Ne(e)):te(t)||(Ve(e,t,r),G.current.has(e)&&(b.current[e]=t,q.current[e]({[e]:t}),(pe.current.isDirty||pe.current.dirtyFields)&&(j(Se.current.dirtyFields,e,Q(t,M(k.current,e,[]),M(Se.current.dirtyFields,e,[]))),Ee({isDirty:!ie(Object.assign(Object.assign({},Le()),{[e]:t}),k.current),dirtyFields:Se.current.dirtyFields})))),!s&&j(I.current,e,t)},[Ne,Re,Ve]),Ae=e=>N.current||y.current.has(e)||y.current.has((e.match(/\w+/)||[])[0]),Te=(e,t=!0)=>
2{if(!H(w.current))for(const r in w.current)e&&w.current[r].size&&!w.current[r].has(e)&&!w.current[r].has(ge(e))||(F.current[r](),t=!1);return t};function Ie(e){if(!s)for(const t of G.current)C(t)&&!e[t]&&(e=Object.assign(Object.assign({},e),{[t]:[]}));return e}function Le(e){if(ee(e))return W(g,e,I);if(E(e)){const t={};for(const r of e)j(t,r,W(g,r,I));return t}return Ie(ne(g,I))}T.current=T.current?T.current:async({type:e,target:t})=>{const r=t.name,n=g.current[r];let i,a;if(n){const t=e===u,s=he(Object.assign({isBlurEvent:t,isReValidateOnChange:Oe,isReValidateOnBlur:De,isTouched:!!M(Se.current.touched,r),isSubmitted:Se.current.isSubmitted},re.current));let o=Ne(r,!1),l=!H(o)||Ae(r);if(t&&!M(Se.current.touched,r)&&pe.current.touched&&(j(Se.current.touched,r,!0),o=Object.assign(Object.assign({},o),{touched:Se.current.touched})),s)return Te(r),(!H(o)||l&&H(o))&&Ee(o);if(J.current){const{errors:e}=await J.current(Le(),Z.current,le),t=Se.current.isValid;i=M(e,r),a=H(e),t!==a&&(l=!0)}else i=(await de(g,le,n,I))[r];Te(r),Ye(r,i,l,o,a)}};const Be=(0,o.useCallback)(async(e={})=>{const{errors:t}=await J.current(Object.assign(Object.assign(Object.assign({},k.current),Le()),e),Z.current,le),r=H(t);Se.current.isValid!==r&&Ee({isValid:r})},[le]),ze=(0,o.useCallback)((e,t)=>function(e,t,r,n,i,a){const{ref:s,ref:{name:o,type:l}}=r,u=e.current[o];if(!i){const t=W(e,o,n);$(t)||j(n.current,o,t)}if(l)if((L(s)||z(s))&&u){const{options:r}=u;E(r)&&r.length?(V(r).forEach((e,n)=>{const{ref:i}=e;(i&&_(i)&&X(e,i)||a)&&(A(i,t),K(r,`[${n}]`))}),r&&!V(r).length&&delete e.current[o]):delete e.current[o]}else(_(s)&&X(u,s)||a)&&(A(s,t),delete e.current[o]);else delete e.current[o]}(g,T.current,e,I,s,t),[s]),Ue=(0,o.useCallback)((e,t)=>{e&&(ze(e,t),s&&!V(e.options||[]).length&&(K(D.current,e.ref.name),K(S.current,e.ref.name),K(x.current,e.ref.name),K(Se.current.errors,e.ref.name),j(Se.current.dirtyFields,e.ref.name,!0),Ee({errors:Se.current.errors,isDirty:Ce(),dirtyFields:Se.current.dirtyFields}),J.current&&Be()))},[Be,ze]);const qe=(0,o.useCallback)((e,t,r)=>{const n=r?w.current[r]:y.current,i=$(t)?k.current:t,a=ne(g,I,!1,e);return ee(e)?me(a,e,n,$(t)?M(i,e):t,!0):E(e)?e.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:me(a,t,n,i)}),{}):(N.current=$(r),P(!H(a)&&a||i))},[]);function Ze(e,t={}){const{name:r,type:n,value:i}=e,a=Object.assign({ref:e},t),s=g.current,o=ye(e),f=ve(G.current,r),m=t=>Fe&&(!l(e)||t===e);let h,p=s[r],b=!0;if(p&&(o?E(p.options)&&V(p.options).find(e=>i===e.ref.value&&m(e.ref)):m(p.ref)))return void(s[r]=Object.assign(Object.assign({},p),t));p=n?o?Object.assign({options:[...V(p&&p.options||[]),{ref:e}],ref:{type:n,name:r}},t):Object.assign({},a):a,s[r]=p;const y=$(M(I.current,r));if(H(k.current)&&y||(h=M(y?k.current:I.current,r),b=$(h),b||f||Re(r,h)),H(t)||(j(x.current,r,!0),!ae&&pe.current.isValid&&de(g,le,p,I).then(e=>{const t=Se.current.isValid;H(e)?j(S.current,r,!0):K(S.current,r),t!==H(e)&&Ee()})),!(D.current[r]||f&&b)){const e=W(g,r,I);j(D.current,r,b?R(e)?Object.assign({},e):e:h),!f&&K(Se.current.dirtyFields,r)}n&&function({ref:e},t,r){l(e)&&r&&(e.addEventListener(t?c:d,r),e.addEventListener(u,r))}(o&&p.options?p.options[p.options.length-1]:p,o||e.type===`${v}-one`,T.current)}const Je=(0,o.useCallback)((e,t)=>async r=>{r&&r.preventDefault&&(r.preventDefault(),r.persist());let n={},i=Ie(ne(g,I,!0));pe.current.isSubmitting&&Ee({isSubmitting:!0});try{if(J.current){const{errors:e,values:t}=await J.current(i,Z.current,le);Se.current.errors=e,n=e,i=t}else for(const e of Object.values(g.current))if(e){const{ref:{name:t}}=e,r=await de(g,le,e,I);r[t]?(j(n,t,r[t]),K(S.current,t)):M(x.current,t)&&(K(Se.current.errors,t),j(S.current,t,!0))}H(n)&&Object.keys(Se.current.errors).every(e=>e in g.current)?(Ee({errors:{},isSubmitting:!0}),await e(i,r)):(Se.current.errors=Object.assign(Object.assign({},Se.current.errors),n),t&&await t(n,r),a&&((e,t)=>{for(const r in e)if(M(t,r)){const t=e[r];if(t){if(t.ref.focus){t.ref.focus();break}if(t.options){t.options[0].ref.focus();break}}}})(g.current,n))}finally{Ee({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:H(Se.current.errors),errors:Se.current.errors,submitCount:Se.current.submitCount+1})}},[a,le]);ke.current=ke.current||!Fe?ke.current:function(e,t){const r=new MutationObserver(()=>{for(const r of Object.values(e.current))if(r&&r.options)for(const e of r.options)e&&e.ref&&_(e.ref)&&t(r);else r&&_(r.ref)&&t(r)});return r.observe(window.document,{childList:!0,subtree:!0}),r}(g,Ue),(0,o.useEffect)(()=>(Y.current=!1,r&&pe.current.isValid&&Be(),()=>{Y.current=!0,ke.current&&ke.current.disconnect(),I.current={}
2,g.current&&Object.values(g.current).forEach(e=>Ue(e,!0))}),[Ue]),!r&&pe.current.isValid&&(ue.isValid=ie(S.current,x.current)&&H(Se.current.errors));const We={trigger:$e,setValue:(0,o.useCallback)(function(e,t,r){Me(e,t,r),Ae(e)&&Ee(),Te(e),(r||{}).shouldValidate&&$e(e)},[Me,$e]),getValues:(0,o.useCallback)(Le,[]),register:(0,o.useCallback)(function(e,t){if(!we)if(ee(e))Ze({name:e},t);else{if(!R(e)||!("name"in e))return t=>t&&Ze(t,e);Ze(e,t)}},[k.current]),unregister:(0,o.useCallback)(function(e){for(const t of E(e)?e:[e])Ue(g.current[t],!0)},[])},_e=Object.assign({renderWatchedInputs:Te,shouldUnregister:s,removeFieldEventListener:ze,watchInternal:qe,mode:re.current,reValidateMode:{isReValidateOnBlur:De,isReValidateOnChange:Oe},fieldsRef:g,isWatchAllRef:N,watchFieldsRef:y,resetFieldArrayFunctionRef:q,useWatchFieldsRef:w,useWatchRenderFunctionsRef:F,fieldArrayDefaultValuesRef:b,validFieldsRef:S,fieldsWithValidationRef:x,fieldArrayNamesRef:G,readFormStateRef:pe,formStateRef:Se,defaultValuesRef:k,shallowFieldsStateRef:I,updateFormState:Ee,validateResolver:r?Be:void 0},We);return Object.assign({watch:function(e,t){return qe(e,t)},control:_e,formState:xe?new Proxy(ue,{get:(e,t)=>{if(t in e)return pe.current[t]=!0,e[t]}}):ue,handleSubmit:Je,reset:(0,o.useCallback)((e,t={})=>{if(Fe)for(const n of Object.values(g.current))if(n){const{ref:e,options:t}=n,i=ye(e)&&E(t)?t[0].ref:e;if(l(i))try{i.closest("form").reset();break}catch(r){}}g.current={},k.current=Object.assign({},e||k.current),e&&Te(""),I.current=s?{}:Object.assign({},e)||{},Object.values(q.current).forEach(e=>oe(e)&&e()),(({errors:e,isDirty:t,isSubmitted:r,touched:n,isValid:i,submitCount:a,dirtyFields:s})=>{i||(S.current={},x.current={}),D.current={},b.current={},y.current=new Set,N.current=!1,Ee({submitCount:a?Se.current.submitCount:0,isDirty:!!t&&Se.current.isDirty,isSubmitted:!!r&&Se.current.isSubmitted,isValid:!!i&&Se.current.isValid,dirtyFields:s?Se.current.dirtyFields:{},touched:n?Se.current.touched:{},errors:e?Se.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(t)},[]),clearErrors:(0,o.useCallback)(function(e){e&&(E(e)?e:[e]).forEach(e=>g.current[e]?C(e)?delete Se.current.errors[e]:j(Se.current.errors,e,void 0):K(Se.current.errors,e)),Ee({errors:e?Se.current.errors:{}})},[]),setError:(0,o.useCallback)(function(e,t){const r=(g.current[e]||{}).ref;j(Se.current.errors,e,Object.assign(Object.assign({},t),{ref:r})),Ee({isValid:!1,errors:Se.current.errors}),t.shouldFocus&&r&&r.focus&&r.focus()},[]),errors:ue.errors},We)}const ke=(0,o.createContext)(null);ke.displayName="RHFContext";var De=r(243);const Oe="#009cc8",Ee=()=>(0,De.FD)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:Oe,width:"32px",height:"32px",children:[(0,De.Y)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,De.Y)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})]});var Ye=({contents:e})=>(0,De.FD)(n.JU,{sx:{position:"relative",marginLeft:"32px",width:"32px","> div":{display:"none"},":hover > div, :focus > div":{display:"block"}},role:"tooltip",children:[(0,De.Y)(Ee,{}),(0,De.Y)("div",{sx:{color:"white",padding:"20px",borderRadius:"4px",position:"absolute",width:"300px",backgroundColor:Oe,bottom:"90px",left:"-150px"},children:(0,De.Y)(e,{})})]});r(844);const Re=({deepName:e,label:t,handleRef:r,errors:i,type:a="text",tooltip:s})=>{const o=e.map(e=>"number"==typeof e?`[${e}]`:e).join(""),l=e.reduce((e,t)=>e?e[t]:void 0,i),u=l?"error":"complexFormInput";return(0,De.FD)(n.az,{sx:{width:"100%",marginBottom:"2rem"},children:[(0,De.FD)(n.JU,{htmlFor:`input-${o}`,id:`label-${o}`,children:[t,":"]}),(0,De.FD)(n.az,{sx:{display:"flex",flexFlow:"row nowrap"},children:[(0,De.Y)(n.pd,{"aria-describedby":`label-${o} errors-${o}`,"aria-invalid":Boolean(null==l?void 0:l.message),id:`input-${o}`,name:o,ref:r,variant:u,type:a}),s&&(0,De.Y)(Ye,{contents:s})]}),(0,De.Y)(n.EY,{as:"p",variant:"errorLabel",id:`errors-${o}`,children:null==l?void 0:l.message})]})},Ce=e=>{const{handleRef:t,label:r}=e;return(0,De.Y)(Re,{...e,handleRef:t(r)})},Ne=/^(([^\s"(),.:;<>@[\\\]]+(\.[^\s"(),.:;<>@[\\\]]+)*)|(".+"))@((\[(?:\d{1,3}\.){3}\d{1,3}])|(([\dA-Za-z-]+\.)+[A-Za-z]{2,}))$/,je=/^(?:(?:\(?(?:0(?:0|1{2})\)?[\s-]?\(?|\+)4{2}\)?[\s-]?(?:\(?0\)?[\s-]?)?)|(?:\(?0))(?:(?:\d{5}\)?[\s-]?\d{4,5})|(?:\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3}))|(?:\d{3}\)?[\s-]?\d{3}[\s-]?\d{3,4})|(?:\d{2}\)?(?:[\s-]?\d{4}){2}))(?:[\s-]?(?:x|ext\.?|#)\d{3,4})?$/,Pe=/^[A-Za-z]{1,2}(\d{1,2}|\d[A-Za-z])\s*\d[A-Za-z]{2}$/,$e=/^([0-9]){8,9}$/g,Ve=e=>t=>!(null!=t&&t.length&&(null==t||!t.match(Ne)))||`${e}
2 is not valid.`,Me=e=>t=>!(null!=t&&t.length&&(null==t||!t.match(je)))||`${e} is not valid.`,Ae=e=>Pe.test(e)||"Please enter a valid postcode",Te=e=>!!e.match($e)||"Account number is not valid.";Math.pow(10,8);var Ie=6e4,Le=36e5;function Be(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}var ze={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ue=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,qe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ze=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Je(e){return e?parseInt(e):1}function We(e){return e&&parseFloat(e.replace(",","."))||0}var _e=[31,null,31,30,31,30,31,31,30,31,30,31];function He(e){return e%400==0||e%4==0&&e%100!=0}function Ge(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return r.length>=t?e.apply(null,r.slice(0,t).reverse()):function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return Ge(e,t,r.concat(i))}}var Ke=Ge(function(e,t){var r;Be(1,arguments);var n=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}(null!==(r=null==t?void 0:t.additionalDigits)&&void 0!==r?r:2);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i,a=function(e){var t,r={},n=e.split(ze.dateTimeDelimiter);if(n.length>2)return r;/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],ze.timeZoneDelimiter.test(r.date)&&(r.date=e.split(ze.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length)));if(t){var i=ze.timezone.exec(t);i?(r.time=t.replace(i[1],""),r.timezone=i[1]):r.time=t}return r}(e);if(a.date){var s=function(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:null===a?i:100*a,restDateString:e.slice((n[1]||n[2]).length)}}(a.date,n);i=function(e,t){if(null===t)return new Date(NaN);var r=e.match(Ue);if(!r)return new Date(NaN);var n=!!r[4],i=Je(r[1]),a=Je(r[2])-1,s=Je(r[3]),o=Je(r[4]),l=Je(r[5])-1;if(n)return function(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}(0,o,l)?function(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,a=7*(t-1)+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}(t,o,l):new Date(NaN);var u=new Date(0);return function(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(_e[t]||(He(e)?29:28))}(t,a,s)&&function(e,t){return t>=1&&t<=(He(e)?366:365)}(t,i)?(u.setUTCFullYear(t,a,Math.max(i,s)),u):new Date(NaN)}(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var o,l=i.getTime(),u=0;if(a.time&&(u=function(e){var t=e.match(qe);if(!t)return NaN;var r=We(t[1]),n=We(t[2]),i=We(t[3]);if(!function(e,t,r){if(24===e)return 0===t&&0===r;return r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}(r,n,i))return NaN;return r*Le+n*Ie+1e3*i}(a.time),isNaN(u)))return new Date(NaN);if(!a.timezone){var c=new Date(l+u),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return o=function(e){if("Z"===e)return 0;var t=e.match(Ze);if(!t)return 0;var r="+"===t[1]?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,i))return NaN;return r*(n*Le+i*Ie)}(a.timezone),isNaN(o)?new Date(NaN):new Date(l+u+o)},1);function Xe(e){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(e)}var Qe=Ge(function(e){Be(1,arguments);var t=function(e){Be(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Xe(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.
21 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()},1);const et=/^(\d{4})-(\d{2})-(\d{2})$/,tt=e=>{if("string"==typeof e){const t=e.trim().match(et);if(t){const[,e,r,n]=t,i=Number(r),a=Number(n),s=Qe(Ke(`${e}-${r}`));return i>=1&&i<=12?a>=1&&a<=s||`day must be 1 - ${s}`:"month must be 1 - 12"}}return"Date must be yyyy-mm-dd"};var rt=({defaultValue:e,register:t,min:r,max:i,errors:a,errorMessage:s,name:o,required:l,label:u})=>{const c=a[o],d=void 0===c||"string"!=typeof(null==(f=c)?void 0:f.message)||Array.isArray(c)?void 0:c;var f;return(0,De.FD)(n.az,{sx:{marginBottom:"1rem"},children:[u&&(0,De.FD)(n.JU,{htmlFor:o,children:[u,":"]}),(0,De.Y)(n.pd,{"aria-label":"Pick date","aria-describedby":`${o}-date-error`,"data-qa":"datePicker",defaultValue:e,min:r,max:i,name:o,pattern:et.source,variant:"complexFormInput",placeholder:"yyyy-mm-dd",ref:t({validate:tt,required:l?s:l}),required:l,step:"1",type:"date",sx:{maxWidth:"20rem"}}),(null==d?void 0:d.message)&&(0,De.Y)(n.EY,{as:"p",id:`${o}-date-error`,variant:"errorLabel",children:d.message})]})};var nt=e=>t=>r=>t(r)(e(r));class it extends Error{}const at="postcode",st="postcode",ot="line1",lt="line2",ut="town",ct="town",dt="county",ft="county",mt={addressline1:"",addressline2:"",buildingname:"",county:"",postcode:"",posttown:"",premise:"",street:"",summaryline:"",uniquedeliverypointreferencenumber:""},ht=({manual:e,register:t,udprn:r,addressName:i})=>{const a=e?"text":"hidden",s={display:e?"auto":"none"};return(0,De.FD)(n.az,{sx:{padding:e?"2rem 0":"2rem 0 0"},children:[(0,De.Y)(n.JU,{htmlFor:"line1",sx:s,children:"Address"}),(0,De.Y)(n.pd,{name:`${i}.${ot}`,ref:t({validate:()=>!0}),type:a,variant:"complexFormInput"}),(0,De.Y)(n.pd,{"aria-label":"Address line 2",name:`${i}.${lt}`,ref:t({validate:()=>!0}),type:a,variant:"complexFormInput"}),(0,De.Y)(n.pd,{"aria-label":"Address line 3",name:`${i}.line3`,ref:t({validate:()=>!0}),type:a,variant:"complexFormInput"}),(0,De.Y)(n.JU,{htmlFor:ct,sx:s,children:"Town"}),(0,De.Y)(n.pd,{id:ct,name:`${i}.${ut}`,ref:t({validate:()=>!0}),type:a,variant:"complexFormInput"}),(0,De.Y)(n.JU,{htmlFor:ft,sx:s,children:"County"}),(0,De.Y)(n.pd,{id:ft,name:`${i}.${dt}`,ref:t({validate:()=>!0}),type:a,variant:"complexFormInput"}),(0,De.Y)(n.pd,{id:"udprn",name:`${i}.udprn`,ref:t(),type:"hidden",value:e?"":r})]})},gt={valid:Ae,nonEmpty:(pt="postcode",e=>!(null==e||!e.length)||`Please enter your ${pt}`)};var pt;const vt=nt(({useManualState:e,useSelectedState:t})=>function(r){const{setValue:i,addresses:a}=r,[s,l]=e(!1),[u,c]=t(-1),d=u>=0?(f=u,e=>e[f])(a):mt;var f;return(0,o.useLayoutEffect)(()=>{void 0!==d&&(i(`${r.addressName}.${ot}`,d.premise),i(`${r.addressName}.${lt}`,d.street),i(`${r.addressName}.${ut}`,d.posttown),i(`${r.addressName}.${dt}`,d.county))},[d,r.addressName,i]),(0,De.FD)("div",{children:[(0,De.FD)(n.l6,{"aria-label":"Select address",disabled:s,name:"select-address",onBlur:({target:{options:e,selectedIndex:t}})=>{const r=Number(e[t].value);c(r)},sx:{marginBottom:"1rem"},children:[(0,De.Y)("option",{value:-1,children:"Please select"}),a.map((e,t)=>(0,De.Y)("option",{value:t,children:e.summaryline},e.summaryline+t))]}),(0,De.Y)(n.JU,{htmlFor:"custom-address-checkbox",children:s?"Use Address Picker":"Can't see your address?"}),(0,De.Y)("input",{id:"custom-address-checkbox",name:"custom-address",onChange:({target:{checked:e}})=>{l(e)},style:{position:"absolute",left:"-9999px"},type:"checkbox"}),(0,De.Y)(ht,{...r,addressName:r.addressName,manual:s,udprn:null==d?void 0:d.uniquedeliverypointreferencenumber})]})})(({useFetchedAddresses:e})=>t=>function(r){var i,a,s;const{register:l,watch:u,errors:c}=r,d=u(`${r.addressName}.${at}`),[f,m]=e(void 0),[h,g]=(0,o.useState)(!1),p=(0,o.useCallback)(()=>{const e=new it("The postcode search isn't available right now, please enter your address below");return g(!0),Promise.resolve().then(()=>
2{if(!d)throw new it("Please enter a valid postcode")}).then(()=>{return fetch(`https://api.ecotricity.co.uk/address/v1/lookup/${e=null!=d?d:"",e.replace(/ /g,"")}?addTags=UDPRN`);var e}).then(e=>e.json()).then(t=>{if("success"===t.status)return t.data;throw e}).then(m).catch(t=>m(t instanceof it?t:e)).finally(()=>g(!1))},[d,m]),v=c[r.addressName],b=void 0===v||"string"==typeof(null==(y=v)?void 0:y.message)||Array.isArray(v)?void 0:v;var y;return(0,De.FD)(n.az,{children:[(0,De.FD)(n.xA,{columns:[1,"1fr 4fr"],gap:"10",children:[(0,De.FD)(n.az,{children:[(0,De.Y)(n.JU,{htmlFor:st,children:"Postcode"}),(0,De.Y)(n.pd,{id:st,name:`${r.addressName}.${at}`,ref:l({validate:gt}),variant:"complexFormInput"})]}),(0,De.Y)(n.az,{sx:{padding:["0 0 2rem","2rem 0"],display:"flex",flexFlow:"row nowrap",alignItems:"flex-end"},children:(0,De.Y)(n.$n,{onClick:p,disabled:h,type:"button",variant:"small",sx:{padding:"8px 16px",cursor:"pointer",opacity:h?.6:1},children:h?"Fetching Addresses":"Get address"})}),(0,De.Y)(n.EY,{as:"p",variant:"errorLabel",sx:{display:null!=b&&null!==(i=b[at])&&void 0!==i&&i.message||f instanceof Error?"block":"none"},children:null!==(a=null==b||null===(s=b[at])||void 0===s?void 0:s.message)&&void 0!==a?a:f instanceof Error&&f.message})]}),f instanceof Error?(0,De.Y)(n.az,{children:(0,De.Y)(ht,{...r,addressName:r.addressName,manual:!0,udprn:void 0})}):void 0!==f?(0,De.Y)(t,{...r,addresses:f}):void 0]})});var bt=vt({useManualState:o.useState,useSelectedState:o.useState,useFetchedAddresses:o.useState}),yt=r(4810);var wt=({reformat:e,handleSubmit:t,completeText:r,children:i,postSubmitUrl:a})=>{const[s,l]=(0,o.useState)({submissionError:null,inFlight:!1,submitted:!1}),u=(0,o.useRef)(null);return(0,o.useEffect)(()=>{s.submitted&&u.current&&u.current.scrollIntoView(!1)},[s.submitted]),s.submitted?(0,De.FD)(n.az,{ref:u,children:[(0,De.Y)(n.EY,{children:r}),(0,De.Y)(n.$n,{onClick:()=>{l({submissionError:null,inFlight:!1,submitted:!1})},variant:"secondary",children:"Reset form"})]}):(0,De.FD)("form",{noValidate:!0,onSubmit:t(async t=>{if(!s.inFlight){l({...s,inFlight:!0,submissionError:null});try{await(async e=>{const t=await fetch("https://api.ecotricity.co.uk/webforms/v1/business-meter-reading",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),r=await t.json().catch(()=>({}));if(!t.ok){const e=(null==r?void 0:r.message)||"Submission failed";throw new Error(e)}return r})(e(t)),l({...s,inFlight:!1,submitted:!0}),a&&(0,yt.navigate)(a)}catch(r){console.error("Submission error:",r),l({...s,submissionError:"Submission failed!",inFlight:!1})}}}),children:[i,(0,De.Y)(n.$n,{type:"submit",children:s.inFlight?"Submitting form...":"Submit form"}),null===s.submissionError?"":(0,De.Y)(n.EY,{as:"p",variant:"errorLabel",children:s.submissionError})]})};const Ft={marginBottom:"1rem"},xt={marginBottom:"1rem"},St={marginBottom:"3rem"},kt=({businessName:e,phoneNumber:t,emailAddress:r,address:{line1:n,line2:i,postcode:a,town:s,county:o,udprn:l},accountNumber:u,readingDate:c,numberOfMeters:d,comments:f,meterReadings:m})=>({suppliedName:e,suppliedEmail:r,callers_Phone__c:t,junifer_Account_Number__c:u,site_Address__c:`${n}, ${i}, ${a}, ${s}, ${o}, udprn: ${l}`,description:`Reading Date: ${c},\n Number of Meters: ${d},\n Comments: ${f},\n Meter Readings: ${JSON.stringify(m,null,2)}`}),Dt=()=>(0,De.FD)("span",{children:["You may just have one reading on your meter. If that's you, just fill in the\n    day read field. If you have two readings on your meter, please provide us\n    with both of these readings in the day and night fields below",(0,De.Y)("br",{}),(0,De.Y)("br",{}),"Some meters may have numbers in red, we won't use these but you are welcome\n    to include them in your reading."]}),Ot=({index:e,...t})=>{const r=(e,r={})=>t.register({required:`Please enter your ${e.toLowerCase()}`,...r}),i=e=>t=>!(!t||!/^[0-9]{0,20}(?:\.\d{0,2})?$/.test(t))||`Please enter a valid ${e.toLowerCase()}`;return(0,De.FD)(n.az,{sx:St,children:[(0,De.FD)(n.DZ,{sx:Ft,children:["Meter ",e+1]}),(0,De.FD)(n.az,{sx:{width:["100%","50%"]},children:[(0,De.Y)(Ce,{...t,deepName:["meterReadings",e,"electricityDayValue"],handleRef:e=>r(e,{validate:{validMeterRead:i(e)}}),label:"Electricity day read",tooltip:Dt}),(0,De.Y)(Ce,{...t,deepName:["meterReadings",e,"electricityMeterSerialNumber"],handleRef:r,label:"Serial no."}),(0,De.Y)(Ce,{...t,deepName:["meterReadings",e,"electricityNightValue"],handleRef:e=>r(e,{validate:{validMeterRead:i(e)}}),label:"Electricity night read"}),(0,De.Y)(Ce,{...t,deepName:["meterReadings",e,"gasValue"],handleRef:e=>r(e,{validate:{validMeterRead:i(e)}}),label:"Gas meter read"}),(0,De.Y)(Ce,{...t,deepName:["meterReadings",e,"gasMeterSerialNumber"],handleRef:r,label:"Gas serial no."})]})]})};var Et=()=>{const e=Se({criteriaMode:"all",mode:"onBlur",reValidateMode:"onChange"}),{register:t,watch:r}=e,i=Number(r("numberOfMeters")),a=Math.max(1,Number.isNaN(i)?1:i),s=[...new Array(a).keys()].map((t,r)=>(0,De.Y)(Ot,{index:r,...e},r));return(0,De.FD)(wt,{reformat:kt,completeText:(0,De.FD)(n.az,{sx:St,children:[(0,De.Y)(n.DZ,{sx:Ft,children:"Thanks for your meter read"}),(0,De.Y)(n.EY,{as:"p",sx:xt,children:"Thanks for your meter reading for your business. It helps us to keep your\n      account up-to-date and your bills as accurate as they can be. If you can\n      give us another reading – in three to four months time – that'd be great."}),(0,De.Y)(n.EY,{as:"p",sx:{fontWeight:"bold"},children:"Best wishes,"}),(0,De.Y)(n.EY,{as:"p",sx:{marginBottom:"1rem",fontWeight:"bold"}
2,children:"The Ecotricity Team"})]}),...e,children:[(0,De.FD)(n.az,{sx:St,children:[(0,De.Y)(n.DZ,{sx:Ft,children:"Your details"}),(0,De.Y)(Ce,{...e,deepName:["businessName"],handleRef:e=>t({required:`Please enter your ${e}`}),label:"Business name"}),(0,De.Y)(Ce,{...e,deepName:["emailAddress"],handleRef:e=>t({required:`Please enter your ${e}`,validate:{validEmail:Ve(e)}}),label:"Email address",type:"email"}),(0,De.Y)(Ce,{...e,deepName:["phoneNumber"],handleRef:e=>t({required:`Please enter your ${e}`,validate:{validPhoneNumber:Me(e)}}),label:"Phone number",type:"tel"}),(0,De.Y)(Ce,{...e,deepName:["accountNumber"],handleRef:e=>t({required:`Please enter your ${e}`,validate:{validAccountNumber:Te}}),label:"Account number"}),(0,De.Y)(bt,{...e,addressName:"address"})]}),(0,De.FD)(n.az,{sx:St,children:[(0,De.Y)(n.DZ,{sx:Ft,children:"Your reading"}),(0,De.Y)(n.EY,{as:"p",children:"Date of meter reading"}),(0,De.Y)(rt,{errorMessage:"Please enter a date for these meter readings",name:"readingDate",required:!0,...e}),(0,De.Y)(n.JU,{htmlFor:"numberOfMeters",children:"Number of meters"}),(0,De.FD)(n.l6,{id:"numberOfMeters",name:"numberOfMeters",ref:t(),sx:{width:["100%","50%"]},children:[(0,De.Y)("option",{value:"1",children:"1"}),(0,De.Y)("option",{value:"2",children:"2"}),(0,De.Y)("option",{value:"3",children:"3"}),(0,De.Y)("option",{value:"4",children:"4"}),(0,De.Y)("option",{value:"5",children:"5"})]})]}),s,(0,De.FD)(n.az,{sx:St,children:[(0,De.Y)(n.JU,{htmlFor:"comments",children:"Additional comments or requests"}),(0,De.Y)(n.TM,{id:"comments",name:"comments",ref:t()})]})]})};const Yt=/^(FIT)?00[0-9]{6}-[1-9]$/,Rt=e=>!(!Boolean(null==e?void 0:e.length)||null==e||!e.trim().match(Yt))||"Your FIT ID must be at least 9 numerical characters",Ct=e=>t=>!!(""===t||void 0===t||Boolean(t.length)&&t.trim().match(/^[0-9]+$/)&&t.trim().match(/[1-9]/))||`${e} is not valid. It does not need to include numbers after the decimal place.`;let Nt=function(e){return e.STANDARD="Standard Tariff",e}({});var jt=r(3934);const Pt=e=>{var t;return(null==e||null===(t=e.exportStatus)||void 0===t?void 0:t.toLowerCase())===Nt.STANDARD.toLowerCase()};var $t=()=>{const e=Se({criteriaMode:"all",mode:"onBlur",reValidateMode:"onChange"}),{register:t,handleSubmit:r,watch:i,errors:a,unregister:s,reset:l}=e,[u,c]=(0,o.useState)({submissionError:null,submissionSuccess:null,inFlight:!1,exportReadOn:!0,installationFetchedSuccess:null}),[d,f]=(0,o.useState)(!1),[m,h]=(0,o.useState)(void 0),{fitId:g,postcode:p}=i(["fitId","postcode"]);async function v(e,t){let r;try{r=await(async(e,t)=>fetch(`https://api.ecotricity.co.uk/microtricity-v2/v1/public/installation/${e}?postcode=${t}`).then(e=>e.json()).then(e=>"success"===e.status?e.data:void 0))(e,t)}catch(n){}void 0===r?(s("exportRead"),c(e=>({...e,inFlight:!1,installationFetchedSuccess:!1,exportReadOn:!0}))):(Pt(r)||s("exportRead"),c(e=>({...e,inFlight:!1,installationFetchedSuccess:!0,exportReadOn:Pt(r)})))}(0,o.useEffect)(()=>{h(new Date);const e=setInterval(()=>h(new Date),36e5);return()=>{clearInterval(e)}},[]);const b=null==m?void 0:m.toISOString().split("T")[0];(0,o.useEffect)(()=>{if(g&&p&&!a.fitId&&!a.postcode){v("fit"===(e=g).substring(0,3).toLowerCase()?e:"FIT"+e,p)}var e},[a.fitId,a.postcode,g,p,s]);return(0,De.FD)(De.FK,{children:[(0,De.FD)("form",{noValidate:!0,onSubmit:r(e=>{u.inFlight||(c(e=>({...e,submissionError:null,inFlight:!0})),(async e=>{const t=await fetch("https://api.ecotricity.co.uk/microtricity-v2/v1/public/meter-reads",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)});return await t.json().catch(()=>({}))})((({fitId:e,postcode:t,generationRead:r,exportRead:n,readingDate:i})=>({fitId:e,postcode:t,generationRead:parseInt(r),...n&&{exportRead:parseInt(n)},readDate:i}))(e)).then(t=>{"success"===t.status?(c(t=>({...t,inFlight:!1,submissionSuccess:{paymentDate:e.readingDate},submissionError:null})),f(!0),l()):(c(e=>({...e,inFlight:!1,submissionError:t.data.message,submissionSuccess:null})),f(!1))}).catch(()=>c(e=>({...e,submissionError:"Submission failed!",inFlight:!1}))))}),children:[(0,De.Y)(Ce,{...e,tooltip:Vt,deepName:["fitId"],handleRef:e=>t({required:`Please enter your ${e}`,validate:{validFitId:Rt}}),label:"FIT ID"}),(0,De.Y)("div",{style:{width:"100%"},children:(0,De.Y)(Ce,{...e,tooltip:Mt,deepName:["postcode"],handleRef:e=>t({required:`Please enter your ${e}`,validate:{validPostcode:Ae}}),label:"Postcode"})}),(0,De.Y)("div",{style:{width:"100%",color:"rgb(255, 102, 51)",padding:"0.2rem",minHeight:"2.5rem"},children:u.installationFetchedSuccess||null===u.installationFetchedSuccess?null:"The FIT ID and Postcode you entered do n
2ot match your account, please double-check these details are correct"}),(0,De.Y)(rt,{...e,errorMessage:"Please enter a date for these meter readings",name:"readingDate",max:b,required:!0,label:"Meter Read Date"}),(0,De.Y)(Ce,{...e,tooltip:At,deepName:["generationRead"],label:"Generation Read",type:"number",handleRef:e=>t({required:`Please enter your ${e}`,validate:{validGenerationRead:Ct(e)}})}),u.exportReadOn?(0,De.Y)(Ce,{...e,tooltip:Tt,deepName:["exportRead"],handleRef:(y=!0===u.installationFetchedSuccess,e=>{const r={validate:{validExportRead:Ct(e)}};return y&&(r.required=`Please enter your ${e}`),t(r)}),label:"Export Read",type:"number"}):"",(0,De.Y)("p",{children:"“If you are having issues with your Meter, please contact your Installer. If you have any further queries relating to your Microtricity account, please get in touch on 0345 555 7600 or emailing [email protected]”"}),(0,De.Y)(n.$n,{type:"submit",variant:"primary",children:u.inFlight?"Submitting form...":"Submit form"}),null===u.submissionError?"":(0,De.Y)(n.EY,{as:"p",variant:"errorLabel",children:u.submissionError}),null!==u.submissionSuccess?"":(0,De.Y)(De.FK,{children:" "})]}),(0,De.FD)(jt.A,{isOpen:d,onClose:()=>{f(!1)},children:[(0,De.Y)(n.DZ,{as:"h4",children:"Meter Reading Submitted"}),(0,De.FD)(n.EY,{sx:{marginTop:"12px"},children:["Thank you for submitting your Microtricity meter reading, you will receive payment for this in ",(()=>{const e=(new Date).getMonth()+1;return e<=3?"May":e<=6?"August":e<=9?"November":"February"})(),"."," "]})]})]});var y};const Vt=()=>(0,De.Y)("span",{children:"Your FIT ID starts with FIT followed by 8 digits and an extension reference at the end e.g. FIT00001234-1 – if you’re unsure about this please get in touch."}),Mt=()=>(0,De.Y)("span",{children:"Please note this is the address of your renewable energy installation, which may differ from your correspondence address."}),At=()=>(0,De.Y)("span",{children:"This reading needs to be taken from your Generation Meter."}),Tt=()=>(0,De.Y)("span",{children:"This reading needs to be taken from your Export Meter (this may be from your Smart Meter)."}),It={"Business meter reading":Et,"Microtricity meter reading":$t,default:()=>(0,De.Y)("p",{children:"Form not found"})};var Lt=({data:{form:e={}}})=>{var t,r;const o=null!==(t=It[null!==(r=null==e?void 0:e.form)&&void 0!==r?r:"default"])&&void 0!==t?t:It.default,l="Business"===(null==e?void 0:e.navigation);return(0,De.FD)(i.A,{page:e,muted:!0,isBusiness:l,children:[(0,De.Y)(a.A,{as:"div",variant:"header",children:(0,De.Y)(s.A,{heading:(null==e?void 0:e.heading)||(null==e?void 0:e.title),text:null==e?void 0:e.body})}),(0,De.Y)(a.A,{variant:"card",children:(0,De.Y)(n.az,{sx:{padding:"2rem",background:"white"},children:(0,De.Y)(o,{})})})]})}},6201:function(e,t,r){var n=r(6540);function i(e){return n.createElement("svg",e,[n.createElement("rect",{x:"14.8633",y:"0.0146484",width:"3",height:"21",transform:"rotate(45 14.8633 0.0146484)",fill:"currentColor",key:0}),n.createElement("rect",{x:"16.9844",y:"14.8638",width:"3",height:"21",transform:"rotate(135 16.9844 14.8638)",fill:"currentColor",key:1})])}i.defaultProps={viewBox:"0 0 17 17",fill:"currentColor"},e.exports=i,i.default=i},9771:function(e){"use strict";var t=function(){};e.exports=t}}]);
3//# sourceMappingURL=component---src-templates-form-tsx-d56e9ffc1a5f018956dd.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.