(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3927,5714],{41461:function(e,n,i){"use strict";i.d(n,{m:function(){return y}}),i(2784);var t,a,r,o=i(97457),s=i(15792),d=i(7328),l=i(4626),c=i(57209),u=i(48840),m=i(87330),g=(0,u.zo)(l.P)(a||(a=(0,d.Z)(["\n ",";\n width: 100%;\n display: flex;\n align-self: start;\n gap: ",";\n color: ",";\n\n path {\n fill: ",";\n }\n"])),(0,m.xv)("bodyText","default"),(0,u.W0)(.75),function(e){return e.status?e.theme.colors.palette.greys.darker:e.theme.colors.palette.accent.base},function(e){return e.status?e.theme.colors.palette.greys.darker:e.theme.colors.palette.accent.base}),p=(0,u.zo)(c.r)(r||(r=(0,d.Z)(["\n grid-gap: ",";\n -ms-grid-rows: auto;\n grid-template-rows: auto;\n"])),(0,u.W0)(2)),h=i(52322),v=((t={}).YES="YES",t.NO="NO",t),y=function(e){var n,i=(0,s.Fg)();return(0,h.jsx)(p,{rows:2,columns:2,children:e.storeFacility&&e.storeFacility.length>0&&(null===(n=e.storeFacility)||void 0===n?void 0:n.map(function(e,n){var t=e.icon===v.YES,a=t?i.icons.tickCircle:i.icons.crossCircle;return(0,h.jsxs)(g,{status:t,children:[(null==a?void 0:a.svgPath)&&(0,h.jsx)("div",{style:{height:null==a?void 0:a.height,width:null==a?void 0:a.width,marginRight:"3px",marginTop:"3px"},children:(0,h.jsx)(o.default,{xmlns:"http://www.w3.org/2000/svg",height:null==a?void 0:a.height,width:null==a?void 0:a.width,viewBox:null==a?void 0:a.viewBox,children:(0,h.jsx)("path",{d:null==a?void 0:a.svgPath})})}),(0,h.jsx)("span",{children:e.title})]},"facility-".concat(n))}))})}},673:function(e,n,i){"use strict";i.d(n,{M:function(){return P}});var t,a,r,o,s,d,l,c,u=i(2784),m=i(41857),g=i(97457),p=i(15792),h=i(48840),v=i(41461),y=i(70086),f=i(7328),T=i(25237),k=i.n(T),x=i(51339),b=i(81292),O=i(87330),N=k()(function(){return Promise.resolve().then(i.bind(i,91308))},{loadableGenerated:{webpack:function(){return[91308]}}}),F=h.zo.div(t||(t=(0,f.Z)(["\n display: flex;\n flex-direction: column;\n border: 1px solid\n ",";\n position: relative;\n padding: ",";\n width: 100%;\n background: ",";\n\n "," {\n max-width: ",";\n min-width: 365px;\n }\n\n ","\n ","\n"])),function(e){return e.selected?e.theme.colors.palette.greys.darker:e.theme.colors.palette.greys.light},(0,h.W0)(3),function(e){return e.theme.colors.palette.greys.white},function(e){return(0,b.mq)(e.theme.breakpointUtils.map,"sm")},function(e){var n,i;return e.fullWidthCard?"100%":null!==(n=e.theme.storeDetailsCard)&&void 0!==n&&n.maxWidth?null===(i=e.theme.storeDetailsCard)||void 0===i?void 0:i.maxWidth:"424px"},function(e){return e.compactCard&&"background: ".concat(h.rS.colors.palette.greys.white)},function(e){return e.clickable&&":hover {cursor: pointer;}"}),w=h.zo.div(a||(a=(0,f.Z)(["\n ",";\n display: flex;\n align-items: center;\n gap: ",";\n justify-content: left;\n & a {\n ",";\n text-decoration: none;\n cursor: pointer;\n }\n & a:hover {\n text-decoration: underline;\n }\n"])),(0,O.xv)("medium1","alternate"),(0,h.W0)(1),(0,O.xv)("medium1","alternate")),S=(0,h.zo)(x.zx)(r||(r=(0,f.Z)(["\n height: 48px;\n width: ",";\n "," {\n width: calc(50% - 4px);\n }\n &&,\n &:hover,\n &:active,\n &:focus,\n &:disabled {\n a {\n padding: 0;\n }\n }\n"])),function(e){return e.compactCard?"calc(50% - 4px)":"100%"},function(e){return(0,b.mq)(e.theme.breakpointUtils.map,"sm")}),C=h.zo.div(o||(o=(0,f.Z)(["\n margin-top: ",";\n display: flex;\n gap: ",";\n flex-wrap: wrap;\n height: 100%;\n align-items: flex-end;\n\n "," {\n flex-wrap: nowrap;\n }\n"])),(0,h.W0)(1),(0,h.W0)(1),function(e){return(0,b.mq)(e.theme.breakpointUtils.map,"sm")}),E=h.zo.div(s||(s=(0,f.Z)(["\n ","\n"])),function(e){return e.searchCompactCard?(0,h.iv)(d||(d=(0,f.Z)(["\n top: 2px;\n right: 2px;\n width: 24px;\n height: 24px;\n position: absolute;\n "]))):(0,h.iv)(l||(l=(0,f.Z)(["\n top: 0px;\n right: 0px;\n width: 20px;\n height: 20px;\n position: absolute;\n transform: translate(50%, -50%);\n path {\n fill: ",";\n }\n rect {\n fill: ",";\n }\n "])),function(e){return e.theme.colors.palette.greys.darker},function(e){return e.theme.colors.palette.greys.white})}),L=h.zo.div(c||(c=(0,f.Z)(["\n ",";\n color: ",";\n position: relative;\n width: 32px;\n height: 32px;\n\n & span {\n width: 100%;\n height: 100%;\n line-height: 24px;\n position: absolute;\n text-align: center;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n\n path {\n fill: ",";\n }\n"])),(0,O.xv)("small","alternate"),function(e){return e.theme.colors.palette.greys.white},function(e){return e.selected?e.theme.colors.palette.greys.darker:e.theme.colors.palette.accent.base}),j=i(52322),P=function(e){var n,i,t,a,r,o,s,d,l,c,f,T,k,x,b,O=(0,p.Fg)(),P=(0,m.ND)().hideStoreLocatorOpeningTimes,D=e.searchCard&&e.compactCard?O.icons.closeCross:O.icons.selectedCard,Y=u.createRef(),z=new Date().getDay();return u.useEffect(function(){if(e.selected){var n;null==Y||null===(n=Y.current)||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center"})}},[e.selected]),(0,j.jsxs)(F,{selected:e.selected,compactCard:e.compactCard,fullWidthCard:e.fullWidthCard,ref:Y,clickable:!!e.entireCardOnClick,onClick:function(){return e.searchNo&&e.entireCardOnClick&&e.entireCardOnClick(e.searchNo)},children:[e.selected&&!e.hideCloseIcon&&(0,j.jsx)(E,{searchCompactCard:e.searchCard&&e.compactCard,children:(0,j.jsxs)(g.default,{xmlns:"http://www.w3.org/2000/svg",height:null==D?void 0:D.height,width:null==D?void 0:D.width,viewBox:null==D?void 0:D.viewBox,children:[(0,j.jsx)("rect",{width:null==D?void 0:D.width,height:null==D?void 0:D.height,fill:"#FFFFFF"}),(0,j.jsx)("path",{d:null==D?void 0:D.svgPath})]})}),(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:"".concat((0,h.W0)(1))},"data-testid":"title-container",children:[(0,j.jsxs)(w,{"data-testid":"name-wrapper",children:[e.searchCard?(null===(n=O.icons.mapPin)||void 0===n?void 0:n.svgPath)&&(0,j.jsxs)(L,{selected:e.selected,children:[(0,j.jsx)(g.default,{xmlns:"http://www.w3.org/2000/svg",height:null===(i=O.icons.mapPin)||void 0===i?void 0:i.height,width:null===(t=O.icons.mapPin)||void 0===t?void 0:t.width,viewBox:null===(a=O.icons.mapPin)||void 0===a?void 0:a.viewBox,children:(0,j.jsx)("path",{d:null===(r=O.icons.mapPin)||void 0===r?void 0:r.svgPath})}),(0,j.jsx)("span",{children:e.searchNo})]}):(0,j.jsx)(N,{}),(0,j.jsx)("a",{href:e.storeDetailsHref,onClick:function(e){e.stopPropagation()},role:"button",children:null===(o=e.store)||void 0===o?void 0:o.displayName})]}),(0,j.jsxs)("p",{children:[null===(s=e.store)||void 0===s||null===(s=s.relativeDistance)||void 0===s?void 0:s.toFixed(1)," ",null===(d=e.i18n)||void 0===d?void 0:d.milesText]})]}),(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"".concat((0,h.W0)(1))},"data-testid":"info-wrapper",children:[(0,j.jsx)("p",{children:null===(l=e.store)||void 0===l?void 0:l.address}),!P&&(0,j.jsx)(y.$u,{openingTimes:null===(c=e.store)||void 0===c?void 0:c.openingTimes[z],status:null===(f=e.store)||void 0===f?void 0:f.status,i18n:e.i18n,isOpen:(null===(T=e.store)||void 0===T?void 0:T.status)===y.qb.OPEN}),!e.compactCard&&(0,j.jsx)(v.m,{storeFacility:null===(k=e.store)||void 0===k?void 0:k.storeFacility})]}),(0,j.jsxs)(C,{"data-testid":"card-footer",children:[(0,j.jsx)(S,{"data-testid":"card-store-details-button",emphasis:"high",type:"button",renderedAs:"a",href:e.storeDetailsHref,onClick:function(n){e.storeDetailsOnClick&&e.storeDetailsOnClick(),n.stopPropagation()},compactCard:e.compactCard,children:null===(x=e.i18n)||void 0===x?void 0:x.storeDetailsButton}),(0,j.jsx)(S,{"data-testid":"card-get-directions-button",emphasis:"medium",type:"button",renderedAs:"a",href:e.getDirectionsHref,target:"_blank",onClick:function(e){e.stopPropagation()},compactCard:e.compactCard,children:null===(b=e.i18n)||void 0===b?void 0:b.getDirectionsButton})]})]})}},70086:function(e,n,i){"use strict";i.d(n,{qb:function(){return v},$u:function(){return f},mr:function(){return y}}),i(2784);var t,a,r,o=i(25237),s=i.n(o),d=i(50311),l=i(7328),c=i(48840),u=i(87330),m=c.zo.div(a||(a=(0,l.Z)(["\n display: flex;\n flex-direction: row;\n justify-content: left;\n gap: ",";\n align-items: center;\n"])),(0,c.W0)(1)),g=c.zo.p(r||(r=(0,l.Z)(["\n ","\n"])),(0,u.xv)("bodyText","alternate")),p=i(52322),h=s()(function(){return Promise.resolve().then(i.bind(i,96258))},{loadableGenerated:{webpack:function(){return[96258]}}}),v=((t={}).OPEN="OPEN",t.CLOSED="CLOSED",t.PERMANENTLY_CLOSED="PERMANENTLY_CLOSED",t.TEMPORARILY_CLOSED="TEMPORARILY_CLOSED",t),y=function(e){var n=e.replace(".",":").split(":").map(function(e){return e.trim()}),i=parseInt(n[0],10);i<10&&(i=parseInt("".concat(0,i),10));var t=n[1];return"".concat(i,":").concat(t)},f=function(e){var n=e.openingTimes,i=e.status,t=e.i18n,a=e.isOpen,r=(0,d.Fg)();return i===v.PERMANENTLY_CLOSED?(0,p.jsxs)(m,{children:[(0,p.jsx)(h,{fill:r.colors.error.base}),(0,p.jsx)(g,{children:null==t?void 0:t.storePermClosed})]}):i===v.TEMPORARILY_CLOSED?(0,p.jsxs)(m,{children:[(0,p.jsx)(h,{fill:r.colors.error.base}),(0,p.jsx)(g,{children:null==t?void 0:t.storeTempClosed})]}):a?(0,p.jsxs)(m,{children:[(0,p.jsx)(h,{fill:r.colors.success.base}),n&&(0,p.jsx)(g,{children:"".concat(null==t?void 0:t.storeOpenText," ").concat(y(null==n?void 0:n.openingTime)," - ").concat(y(null==n?void 0:n.closingTime))})]}):(0,p.jsxs)(m,{children:[(0,p.jsx)(h,{fill:r.colors.error.base}),(0,p.jsx)(g,{children:null==t?void 0:t.storeClosedText})]})}},50598:function(e,n,i){"use strict";i.d(n,{Ej:function(){return l},GK:function(){return a},gi:function(){return c},hY:function(){return d},pO:function(){return u}});var t=i(76635),a=function(e){return"https://www.google.com/maps/dir/?api=1&destination=".concat(e)},r={default:4,selected:8},o=function(e,n,i,t){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.3;return Math.abs(i-e)>a||Math.abs(t-n)>a},s=(0,t.debounce)(function(e,n,i,t,a){if(!n||o(n.lat,n.lng,e.lat,e.lng))try{i(e.lat,e.lng),window.google&&window.google.maps&&new window.google.maps.Geocoder().geocode({location:{lat:e.lat,lng:e.lng}},function(e,n){"OK"===n&&e&&e[0]&&t(e[0].formatted_address)}),a(e)}catch(e){console.error("Error fetching stores:",e)}},1e3,{leading:!1,trailing:!0}),d=function(){s.cancel()},l=function(e,n,i){var t=i.enableSearchOnMapLocationChange,a=i.mapChangeCount,r=i.lastSearchLocation,o=i.onFetchStores,d=i.onSetResultsFor,l=i.onUpdateLastSearchLocation;t&&a>1&&n>=6&&s(e,r,o,d,l)},c=function(e){var n=e.defaultZoom,i=e.mapReadyCallback,t=e.onMapChange,a=e.enableSearchOnMapLocationChange,o=e.isPinClickInProgress,s=e.listenersRef,d=e.setMap;return function(e){if(d(e),e.setZoom(n||r.default),"function"==typeof i&&i(!0),"function"==typeof t&&a){s.current.forEach(function(e){google.maps.event.removeListener(e)}),s.current=[];var l=function(){if(!o.current){var n=e.getCenter(),i=e.getZoom(),a=e.getBounds();n&&i&&a&&"function"==typeof t&&t({lat:n.lat(),lng:n.lng()},i,a)}};s.current.push(e.addListener("dragend",l),e.addListener("zoom_changed",l))}}},u=function(e){var n=e.map,i=e.markers,t=e.selectedPinZoom,a=e.defaultZoom,o=e.pinClickCallback,s=e.fitBounds,d=e.isPinClickInProgress;return function(e,l,c){n&&(d.current=!0,requestAnimationFrame(function(){l?(n.setZoom(t||r.selected),n.panTo(e),"function"==typeof o&&o(c||0)):(n.setZoom(a||r.default),i.length>1&&s());var u=n.addListener("idle",function(){d.current=!1,google.maps.event.removeListener(u)})}))}}},5714:function(e,n,i){"use strict";i.r(n),i.d(n,{Stores:function(){return f},StoresIconType:function(){return y},processesLowerCase:function(){return h}});var t,a,r=i(20406),o=i(95235),s=i(82841),d=i.n(s),l=i(20610),c=i(12786),u=((t=u||{}).YES="YES",t.NO="NO",t),m={stores:[{id:"101150",displayName:"Homebase Leighton Buzzard",urlTag:"South-East-England-Homebase-Leighton-Buzzard",phoneNumber:"03456 407649",openingTimes:[{day:c.eO.Friday,openingTime:"08:00:00",closingTime:"20:00:00"},{day:c.eO.Monday,openingTime:"08:00:00",closingTime:"19:00:00"},{day:c.eO.Saturday,openingTime:"08:00:00",closingTime:"20:00:00"},{day:c.eO.Sunday,openingTime:"10:00:00",closingTime:"16:00:00"},{day:c.eO.Thursday,openingTime:"09:00:00",closingTime:"19:00:00"},{day:c.eO.Tuesday,openingTime:"09:00:00",closingTime:"19:00:00"},{day:c.eO.Wednesday,openingTime:"09:00:00",closingTime:"19:00:00"}],address:{country:"GB",addresseeName:"Homebase Felixstowe",addressLine4:"Leighton Buzzard",addressLine5:"South East England"},storeFacility:[{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"},{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"}]},{id:"101159",displayName:"Homebase Leighton Buzzard",urlTag:"South-East-England-Homebase-Leighton-Buzzard",phoneNumber:"03456 407649",openingTimes:[{day:c.eO.Friday,openingTime:"08:00:00",closingTime:"20:00:00"},{day:c.eO.Monday,openingTime:"08:00:00",closingTime:"19:00:00"},{day:c.eO.Saturday,openingTime:"08:00:00",closingTime:"20:00:00"},{day:c.eO.Sunday,openingTime:"10:00:00",closingTime:"16:00:00"},{day:c.eO.Thursday,openingTime:"09:00:00",closingTime:"19:00:00"},{day:c.eO.Tuesday,openingTime:"09:00:00",closingTime:"19:00:00"},{day:c.eO.Wednesday,openingTime:"09:00:00",closingTime:"19:00:00"}],address:{country:"GB",addresseeName:"Homebase Felixstowe",addressLine4:"Leighton Buzzard",addressLine5:"South East England"},storeFacility:[{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"},{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"}]},{id:"101151",displayName:"Homebase Felixstowe",urlTag:"South-East-England-Homebase-Felixstowe",phoneNumber:"03456 407650",openingTimes:[{day:c.eO.Friday,openingTime:"08:00:00",closingTime:"20:00:00"},{day:c.eO.Monday,openingTime:"08:00:00",closingTime:"19:00:00"},{day:c.eO.Saturday,openingTime:"08:00:00",closingTime:"20:00:00"},{day:c.eO.Sunday,openingTime:"10:00:00",closingTime:"16:00:00"},{day:c.eO.Thursday,openingTime:"08:30:00",closingTime:"19:00:00"},{day:c.eO.Tuesday,openingTime:"08:30:00",closingTime:"19:00:00"},{day:c.eO.Wednesday,openingTime:"08:30:00",closingTime:"19:00:00"}],address:{country:"GB",addresseeName:"Homebase Felixstowe",addressLine4:"Felixstowe",addressLine5:"South East England"},storeFacility:[{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"},{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"}]},{id:"101152",displayName:"Homebase Dartford",urlTag:"South-East-England-Homebase-Dartford",phoneNumber:"03456 407666",openingTimes:[{day:c.eO.Friday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:c.eO.Monday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:c.eO.Saturday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:c.eO.Sunday,openingTime:"10:00:00",closingTime:"16:00:00"},{day:c.eO.Thursday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:c.eO.Tuesday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:c.eO.Wednesday,openingTime:"09:00:00",closingTime:"18:00:00"}],address:{country:"GB",addresseeName:"Homebase Felixstowe",addressLine4:"Dartford",addressLine5:"South East England"},storeFacility:[{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"},{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"}]},{id:"101153",displayName:"Homebase Belfast Galwally",urlTag:"Northern-Ireland-Homebase-Galwally",phoneNumber:"03456 407674",openingTimes:[{day:c.eO.Friday,openingTime:"08:00:00",closingTime:"20:00:00"},{day:c.eO.Monday,openingTime:"08:00:00",closingTime:"19:00:00"},{day:c.eO.Saturday,openingTime:"08:00:00",closingTime:"20:00:00"},{day:c.eO.Sunday,openingTime:"13:00:00",closingTime:"18:00:00"},{day:c.eO.Thursday,openingTime:"09:00:00",closingTime:"20:00:00"},{day:c.eO.Tuesday,openingTime:"09:00:00",closingTime:"19:00:00"},{day:c.eO.Wednesday,openingTime:"09:00:00",closingTime:"19:00:00"}],address:{country:"GB",addresseeName:"Homebase Felixstowe",addressLine4:"Galwally",addressLine5:"Northern Ireland"},storeFacility:[{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"},{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"}]},{id:"101154",displayName:"Homebase Craigavon",urlTag:"Northern-Ireland-Homebase-Craigavon",phoneNumber:"03456 407675",openingTimes:[{day:c.eO.Friday,openingTime:"08:00:00",closingTime:"20:00:00"},{day:c.eO.Monday,openingTime:"08:00:00",closingTime:"19:00:00"},{day:c.eO.Saturday,openingTime:"08:00:00",closingTime:"20:00:00"},{day:c.eO.Sunday,openingTime:"13:00:00",closingTime:"18:00:00"},{day:c.eO.Thursday,openingTime:"09:00:00",closingTime:"19:00:00"},{day:c.eO.Tuesday,openingTime:"09:00:00",closingTime:"19:00:00"},{day:c.eO.Wednesday,openingTime:"09:00:00",closingTime:"19:00:00"}],address:{country:"GB",addresseeName:"Homebase Felixstowe",addressLine4:"Craigavon",addressLine5:"Northern Ireland"},storeFacility:[{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"},{icon:u.YES,title:"Facility name"},{icon:u.NO,title:"Facility name"}]}]};function g(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),i.push.apply(i,t)}return i}function p(e){for(var n=1;n