1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="84d9525e-b25e-40a8-a166-3fbe67ce6dd8",e._sentryDebugIdIdentifier="sentry-dbid-84d9525e-b25e-40a8-a166-3fbe67ce6dd8")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4330],{20155:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var s=r(57437),n=r(44839),l=r(96164),i=r(14063);function a(e){let{className:t,type:r="button",children:a,disabled:c,icon:o,iconPosition:d="start",template:u,...f}=e;return(0,s.jsxs)(i.Z,{className:(0,l.m6)((0,n.Z)("mx-auto flex min-h-[40px] min-w-[120px] items-center justify-center gap-x-2 rounded-md px-6 py-2 text-center font-semibold","[&:not(:disabled)]:hover:brightness-90",function(e){if(!e)return"";switch(e){case"salmon":return"surface-salmon-1 w-full max-w-[414px]";case"green":return"surface-green-2 w-full max-w-[414px]";case"grey":return"surface-grey-4 w-full max-w-[414px]";default:return""}}(u),t,{"opacity-[0.38]":c})),type:r,disabled:c,...f,children:[o&&"start"===d&&(0,s.jsx)("span",{className:"[&>svg]:text-20",children:o}),a&&(0,s.jsx)("span",{children:a}),o&&"end"===d&&(0,s.jsx)("span",{className:"[&>svg]:text-20",children:o})]})}},72645:function(e,t,r){"use strict";var s=r(57437),n=r(2265),l=r(44839),i=r(2151),a=r.n(i),c=r(96369);t.Z=(0,n.forwardRef)(function(e,t){let{className:r,label:i,isAnimatingLabelDisabled:o,supportingText:d,patternFeedback:u,type:f,defaultValue:g,maxLength:x,inputClassName:m,onEveryChange:p,onValidChange:h,showFeedback:b=!0,...v}=e,w=(0,n.useRef)(null),y=t&&"function"!=typeof t?t:w,j=(0,n.useId)(),N=v.name??j;(0,n.useEffect)(()=>{y.current&&c.Z.registerInput(N,y.current,_,u,v.pattern)},[y,N,u,v.pattern]),(0,n.useEffect)(()=>()=>{c.Z.deregisterInput(N)},[N]);
1let[Z,E]=(0,n.useState)(!!g||!!v.value),[k,_]=(0,n.useState)(""),[q,I]=(0,n.useState)("aggressive"),S=a()(function(e){(c.Z.validate(N).isValid||""===e.target.value)&&h?.(e)},400);return(0,s.jsxs)("div",{className:(0,l.Z)("flex flex-col gap-2",{"text-red-1":""!==k},r),children:[(0,s.jsxs)("div",{className:"relative flex h-[58px] flex-col gap-y-1 bg-transparent",children:[(0,s.jsx)("input",{className:(0,l.Z)("surface-white disabled:surface-grey-2 peer h-full w-full rounded-md border border-solid px-3 pb-1 pt-4 text-16",m,{"border-grey-3":""===k,"[&:not(:focus-visible)]:border-red-1":""!==k}),id:j,type:f,defaultValue:g,maxLength:x,...v,onChange:function(e){E(!!e.target.value),p?.(e),S(e)},onBlur:function(){c.Z.validate(N).isValid||"passive"!==q||I("aggressive")},ref:y}),(0,s.jsx)("label",{className:(0,l.Z)("absolute left-3 top-1/2 text-grey-7 transition-[font-size,transform] duration-standard ease-standard","peer-focus-visible:translate-y-[-20px] peer-focus-visible:text-12",{"translate-y-[-20px] text-12":Z||o,"-translate-y-1/2 text-16":!Z&&!o}),htmlFor:j,children:i})]}),d&&!k&&(0,s.jsx)("div",{className:"text-14 leading-[18px]",children:d}),b&&k&&"aggressive"===q&&(0,s.jsx)("div",{className:"text-14 leading-[18px]",role:"alert",children:k})]})})},39240:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var s=r(57437),n=r(2265),l=r(44839),i=r(65125),a=r(20155);function c(e){let{isOpen:t,header:r,description:c,primaryButtonLabel:o,secondaryButtonLabel:d,onPrimaryClick:u,onSecondaryClick:f,onModalClose:g,...x}=e,m=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=m.current;e&&(t?e.show():e.close())},[t]);let p=(0,n.useCallback)(e=>{"Escape"===e.key&&g()},[g]);return(0,n.useEffect)(()=>(document.addEventListener("keydown",p,!1),()=>{document.removeEventListener("keydown",p,!1)}),[p]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("dialog",{role:"dialog",ref:m,className:(0,l.Z)("fixed inset-0 z-[100000700] items-center justify-center bg-transparent backdrop:bg-backdrop-2",{hidden:!t}),inert:t?void 0:"",onClick:e=>e.target===m.current&&g(),...x,children:(0,s.jsxs)("div",{className:"flex h-[378px] w-[311px] rounded-md bg-white p-3 scrollbar-hide lg:h-[280px] lg:w-[574px]",children:[(0,s.jsx)("button",{className:"pointer-events-auto absolute right-1 top-1 cursor-pointer rounded rounded-r-none bg-white p-2",onClick:g,"aria-label":"close",children:(0,s.jsx)(i.FU5,{size:24})}),(0,s.jsxs)("div",{className:"flex h-full w-full flex-col gap-6 p-3 lg:gap-5",children:[(0,s.jsx)(i.UPv,{size:48,className:"fill-salmon-5"}),(0,s.jsx)("p",{className:"font-sans text-18 font-bold",children:r}),(0,s.jsx)("div",{className:"h-[200px] lg:h-[100px]",children:(0,s.jsx)("p",{className:"font-normal text-grey-5",children:c})}),(0,s.jsx)("div",{className:"w-full border-b-2 border-grey-3"}),(0,s.jsxs)("div",{className:(0,l.Z)("rtl grid w-full gap-2",{"grid-cols-2":d}),children:[(0,s.jsx)(a.Z,{className:"surface-green-2 order-last h-[48px] w-full rounded-lg font-normal",onClick:u||g,children:o||"Close"}),d&&(0,s.jsx)(a.Z,{className:"surface-grey-4 h-[48px] w-full rounded-lg font-normal",onClick:f,children:d})]})]})]})}),t&&(0,s.jsx)("div",{className:"fixed inset-0 z-[100000650] bg-backdrop-3",onClick:g})]})}},54330:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return m}});var s=r(57437),n=r(2265),l=r(44839),i=r(65125),a=r(60198),c=r.n(a),o=r(72645),d=r(74893),u=r(39240),f=r(41642),g=r(218),x=r(44404);function m(e){let t,{data:{newsletterHeader:r,newsletterSubhead:a,newsletterType:m="customer",newsletterPrivacyLink:p,newsletterTnCLink:h}}=e,{executeWithProgress:b}=(0,n.useContext)(f.K),{formatMessage:v}=(0,g.v)({name:"furniturechoice"}),w=(0,n.useRef)(null),y=(0,n.useRef)(null),[j,N]=(0,n.useState)(!1),[Z,E]=(0,n.useState)(!1),[k,_]=(0,n.use
1State)(!1),[q,I]=(0,n.useState)(0),[S,R]=(0,n.useState)(!1),[A,C]=(0,n.useState)(""),M="newsletterDockingDisabled",L=v({id:"tastics.content.newsletter.subscribe_disclaimer"}),F=(0,s.jsx)(d.Z,{className:"cursor-pointer underline",reference:h,children:v({id:"tastics.content.newsletter.terms_and_conditions"})},(0,n.useId)()),T=(0,s.jsx)(d.Z,{className:"cursor-pointer underline",reference:p,children:v({id:"tastics.content.newsletter.privacy_policy"})},(0,n.useId)());function z(){localStorage.setItem(M,"true"),E(!1)}async function D(e){e.preventDefault();let t=Object.fromEntries(new FormData(e.currentTarget));t.type=m,await b(async()=>{try{(await x.S.callAction({actionName:"furniturechoice-newsletter/add",payload:t})).isError?(C(v({id:"tastics.content.newsletter.error_body"})),R(!0)):w.current&&(_(!0),setTimeout(()=>{z(),N(!1),_(!1)},5e3))}catch(e){console.error("Signup Error",e),C(v({id:"tastics.content.newsletter.error_body"})),R(!0)}})}return t=c()(L,"{terms_and_conditions}",()=>F),t=c()(t,"{privacy_policy}",()=>T),(0,n.useEffect)(()=>{let e=new IntersectionObserver(e=>{N(!e[0].isIntersecting)},{root:null,rootMargin:"0px",threshold:[0]});return y.current&&e.observe(y.current),()=>{y.current&&e.unobserve(y.current)}},[]),(0,n.useEffect)(()=>{w.current&&I(w.current.offsetHeight)},[]),(0,n.useEffect)(()=>{E(!localStorage.getItem(M)||"true"!==localStorage.getItem(M))},[]),(0,s.jsxs)("section",{children:[(0,s.jsx)("div",{ref:y,className:(0,l.Z)({"!h-0":!j||!Z}),style:{height:q}}),(0,s.jsx)("div",{ref:w,className:(0,l.Z)("fixed bottom-0 w-full rounded-t-md bg-salmon-1",{"container !relative !rounded-none bg-transparent":!j||!Z}),children:k?(0,s.jsx)("div",{className:"surface-salmon-1 p-10 text-center font-bold",children:v({id:"tastics.content.newsletter.subscribe_press_centre_thank_you"})}):(0,s.jsxs)("div",{className:(0,l.Z)("flex bg-salmon-1 p-5 text-white lg:px-12",{"flex-col rounded-t-md p-4 lg:flex-row lg:items-center lg:justify-between lg:px-9":j,"flex-col lg:flex-row":!j}),children:[(0,s.jsxs)("div",{className:(0,l.Z)("flex flex-1 flex-col text-left",{"text-center lg:mt-6 lg:text-left":!j},{"items-baseline lg:basis-[66%] lg:flex-row":j}),children:[j&&(0,s.jsx)("button",{className:"absolute right-4 top-4 ml-4 cursor-pointer p-2 lg:hidden",onClick:()=>z(),children:(0,s.jsx)(i.FU5,{size:20})}),(0,s.jsx)("h5",{className:(0,l.Z)("mb-2 font-bold leading-6 lg:text-21",{"text-21 lg:mb-0 xl:ml-10":j,"text-20 lg:mb-2 lg:ml-0":!j}),children:r}),(0,s.jsx)("p",{className:(0,l.Z)("text-16 leading-4.5 lg:text-left lg:text-16",{"lg:mx-6":j,"text-16":!j}),children:a})]}),(0,s.jsx)("div",{className:(0,l.Z)("mt-4 flex-1 lg:w-full",{"basis-[33%]":j}),children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("form",{onSubmit:D,children:[(0,s.jsxs)("div",{className:"flex w-full",children:[(0,s.jsx)(o.Z,{className:(0,l.Z)("mb-2 w-full lg:w-3/4 [&>[role=alert]]:mb-2 [&>[role=alert]]:text-12 [&>[role=alert]]:text-white [&>div:first-child]:h-[48px]",{"lg:w-[calc(100%-84px)] [&_input]:rounded-e-none":j},{"lg:[&_input]:rounded-e-none":!j}),name:"email",label:"Enter your email",type:"email",maxLength:200}),j&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{className:(0,l.Z)("surface-grey-6 mb-1 h-[48px] w-auto rounded rounded-s-none p-2 px-6 text-center text-14 font-semibold leading-5 lg:right-[20%]"),children:v({id:"tastics.content.newsletter.subscribe"})}),(0,s.jsx)("button",{className:"-mt-1 ml-7 hidden cursor-pointer lg:z-100 lg:block",onClick:()=>z(),children:(0,s.jsx)(i.FU5,{size:20})})]})]}),!j&&(0,s.jsx)("button",{className:(0,l.Z)("surface-grey-6 mb-1 w-full rounded p-2 text-center text-14 font-semibold leading-5","lg:absolute lg:right-0 lg:top-0 lg:h-[48px] lg:w-1/4 lg:rounded-s-none"),children:v({id:"tastics.content.newsletter.subscribe"})})]}),(0,s.jsx)("p",{className:(0,l.Z)("text-12 font-light leading-[15px] lg:text-left",{"lg:hidden":j,"text-center lg:!block":!j}),children:t})]})})]})}),(0,s.jsx)(u.Z,{isOpen:S,onModalClose:()=>{R(!1)},header:v({id:"tastics.content.newsletter.error_header"}),description:A})]})}},96369:function(e,t){"use strict";let r={"billing.salutation":{required:"Title is required."},"billing.firstName":{required:"First name is required."},"billing.lastName":{required:"Surname is required."},"billing.email":{required:"Email is required.",emailValid:"Please enter a valid email address."},"billing.phone":{required:"Contact number is required."},"billing.typeAhead":{required:"Please fill in this field."},"billing.streetName":{required:"Address is required.",maxLength:"Maximum 100 characters for Address."},"billing.streetNumber":{maxLength:"Maximum 100 characters for Street number."},"billing.additionalAddressInfo":{maxLength:"Maximum 100 characters for Additional address info."},"billing.additionalStreetInfo":{maxLength:"Maximum 100 characters for Additional street info."},"billing.city":{required:"Town or city is required.",maxLength:"Maximum 100 characters for Town or city."},"billing.region":{maxLength:"Maximum 100 characters for Region."},"billing.postalCode":{required:"Postcode is required."}},s={inputRefs:new Map,registerInput(e,t,r,s,n){t&&this.inputRefs.set(e,{input
1:t,updateFeedback:r,patternFeedback:s,pattern:n})},deregisterInput(e){this.inputRefs.has(e)&&this.inputRefs.delete(e)},getMessage:(e,t)=>r[e]?.[t],validate(e){let t=this.inputRefs.get(e),r="",s=!0;if(!t)return{isValid:!0,message:""};let{input:n,updateFeedback:l,pattern:i,patternFeedback:a}=t;if(Array.isArray(n))n.some(e=>e.checked)||(s=!1,r=this.getMessage(e,"required")||"Please select an option.");else{let t=n.value.trim(),l=n.required,c=n.getAttribute("maxLength"),o=i||n.getAttribute("pattern")||"";l&&!t&&(s=!1,r=this.getMessage(e,"required")||"This field is required."),s&&o&&t&&!new RegExp(o).test(t)&&(s=!1,r=a||this.getMessage(e,"emailValid")||"Invalid format."),s&&c&&t.length>parseInt(c)&&(s=!1,r=this.getMessage(e,"maxLength")||`Maximum ${c} characters allowed.`)}return l&&l(r),{isValid:s,message:r}},validateAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!0;return this.inputRefs.forEach((r,s)=>{!e.includes(s)&&(this.validate(s).isValid||(t=!1))}),t}};t.Z=s},60198:function(e){var t=function(e){var t=/[\\^$.*+?()[\]{}|]/g,r=RegExp(t.source);return e&&r.test(e)?e.replace(t,"\\$&"):e},r=function(e){return"string"==typeof e},s=function(e){var t=[];return e.forEach(function(e){Array.isArray(e)?t=t.concat(e):t.push(e)}),t};e.exports=function(e,n,l){return Array.isArray(e)||(e=[e]),s(e.map(function(e){return r(e)?function(e,s,n){var l=0,i=0;if(""===e)return e;if(!e||!r(e))throw TypeError("First argument to react-string-replace#replaceString must be a string");var a=s;a instanceof RegExp||(a=RegExp("("+t(a)+")","gi"));for(var c=e.split(a),o=1,d=c.length;o<d;o+=2){if(void 0===c[o]||void 0===c[o-1]){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}i=c[o].length,l+=c[o-1].length,c[o]=n(c[o],o,l),l+=i}return c}(e,n,l):e}))}}}]);
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.