(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3382,2904],{22904:function(e,n,i){"use strict";i.r(n),i.d(n,{Status:function(){return T},StoreByStoreUrlTag:function(){return b},isStoreOpen:function(){return N},openingTimes:function(){return O}});var a,t,r,s=i(20406),d=i(95235),o=i(82841),l=i.n(o),m=i(12786),u=i(42073),c=((a={}).YES="YES",a.NO="NO",a),g=((t={}).OPEN="OPEN",t.CLOSED="CLOSED",t.PERMANENTLY_CLOSED="PERMANENTLY_CLOSED",t.TEMPORARILY_CLOSED="TEMPORARILY_CLOSED",t),p=[{title:"Facility name",icon:c.YES},{title:"Facility name",icon:c.YES},{title:"Facility name",icon:c.YES},{title:"Facility name",icon:c.NO}],y={store:{id:"101150",displayName:"Homebase Leighton Buzzard",urlTag:"South-East-England-Homebase-Leighton-Buzzard",phoneNumber:"03456 407649",longitude:-.66846,latitude:51.918694,relativeDistance:.7,status:g.OPEN,storeFacility:p,address:{country:m.cH.Gb,addresseeName:"Homebase Leighton Buzzard",addressLine1:"Vimy Road",addressLine2:"Linslade",addressLine3:"",addressLine4:"Leighton Buzzard",addressLine5:"South East England",companyName:"Homebase",phoneNumber:"03456 407649",postalCode:"LU7 1ER",clickAndCollect:!0},openingTimes:[{day:m.eO.Monday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Tuesday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Wednesday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Thursday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Friday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Saturday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Sunday,openingTime:"09:00:00",closingTime:"18:00:00"}],nearbyStores:[{id:"101151",displayName:"Homebase Felixstowe",urlTag:"South-East-England-Homebase-Felixstowe",phoneNumber:"03456 407650",longitude:1.349824,latitude:51.966744,relativeDistance:1.6,status:g.OPEN,storeFacility:p,address:{country:m.cH.Gb,addresseeName:"Homebase Felixstowe",addressLine1:"Great Eastern Square",addressLine2:"Station Approach",addressLine3:"",addressLine4:"Felixstowe",addressLine5:"South East England",companyName:"Homebase",phoneNumber:"03456 407650",postalCode:"IP11 7DY",clickAndCollect:!0},openingTimes:[{day:m.eO.Monday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Tuesday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Wednesday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Thursday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Friday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Saturday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Sunday,openingTime:"09:00:00",closingTime:"18:00:00"}]},{id:"101151",displayName:"Homebase Felixstowe",urlTag:"South-East-England-Homebase-Felixstowe",phoneNumber:"03456 407650",longitude:1.349824,latitude:51.966744,relativeDistance:2.2,status:g.OPEN,address:{country:m.cH.Gb,addresseeName:"Homebase Felixstowe",addressLine1:"Great Eastern Square",addressLine2:"Station Approach",addressLine3:"",addressLine4:"Felixstowe",addressLine5:"South East England",companyName:"Homebase",phoneNumber:"03456 407650",postalCode:"IP11 7DY",clickAndCollect:!0},storeFacility:p,openingTimes:[{day:m.eO.Monday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Tuesday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Wednesday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Thursday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Friday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Saturday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Sunday,openingTime:"09:00:00",closingTime:"18:00:00"}]},{id:"101151",displayName:"Homebase Felixstowe",urlTag:"South-East-England-Homebase-Felixstowe",phoneNumber:"03456 407650",longitude:1.349824,latitude:51.966744,relativeDistance:1,status:g.OPEN,address:{country:m.cH.Gb,addresseeName:"Homebase Felixstowe",addressLine1:"Great Eastern Square",addressLine2:"Station Approach",addressLine3:"",addressLine4:"Felixstowe",addressLine5:"South East England",companyName:"Homebase",phoneNumber:"03456 407650",postalCode:"IP11 7DY",clickAndCollect:!0},storeFacility:p,openingTimes:[{day:m.eO.Monday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Tuesday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Wednesday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Thursday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Friday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Saturday,openingTime:"09:00:00",closingTime:"18:00:00"},{day:m.eO.Sunday,openingTime:"09:00:00",closingTime:"18:00:00"}]}]}};function v(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),i.push.apply(i,a)}return i}function k(e){for(var n=1;nn?T.OPEN:T.CLOSED},O=function(e){return e.map(function(n,i){n.openingTime===n.closingTime&&e.splice(i,1,k(k({},n),{},{closed:!0}))}),e},b=function(e,n){var i,a=n.behaviours;return i=(0,s.Z)(l().mark(function n(i,t){var r,s,d;return l().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.override){n.next=2;break}return n.abrupt("return",y);case 2:return n.prev=2,n.next=5,e.query({query:u.I,variables:t});case 5:if(null==(d=n.sent.data)?void 0:d.storeByStoreUrlTag){n.next=11;break}return console.error("Store not found for URL:",t),n.abrupt("return",null);case 11:return n.abrupt("return",{store:k(k({},d.storeByStoreUrlTag),{},{status:null!==(r=d.storeByStoreUrlTag)&&void 0!==r&&r.openingTimes?N(d.storeByStoreUrlTag.openingTimes):T.CLOSED,openingTimes:O(d.storeByStoreUrlTag.openingTimes),nearbyStores:(null===(s=d.storeByStoreUrlTag)||void 0===s||null===(s=s.nearbyStores)||void 0===s?void 0:s.map(function(e){return k(k({},e),{},{status:N(e.openingTimes)})}))||[]})});case 14:return n.prev=14,n.t0=n.catch(2),console.error("Error fetching store details:",n.t0),n.abrupt("return",null);case 18:case"end":return n.stop()}},n,null,[[2,14]])})),function(e,n){return i.apply(this,arguments)}}},33382:function(e,n,i){"use strict";i.d(n,{Gx:function(){return g},cy:function(){return m},fT:function(){return c},xR:function(){return l}});var a=i(95235),t=i(73716),r=i(22904),s=i(12786);function d(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),i.push.apply(i,a)}return i}function o(e){for(var n=1;nn?r.Status.OPEN:r.Status.CLOSED},g=function(e){return e.replaceAll("-"," ")}},42073:function(e){e.exports.I={kind:"Document",operationName:"StoreDetails",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"StoreAddress"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Address"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addresseeName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine3"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine4"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"addressLine5"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"companyName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phoneNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clickAndCollect"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"StoreDetails"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"urlTag"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storeByStoreUrlTag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"urlTag"},value:{kind:"Variable",name:{kind:"Name",value:"urlTag"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlTag"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phoneNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"longitude"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"latitude"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openingTimes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"openingTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"closingTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"day"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"storeFacility"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storeId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StoreAddress"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"nearbyStores"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"3"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlTag"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phoneNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"longitude"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"latitude"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"relativeDistance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openingTimes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"openingTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"closingTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"day"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"storeFacility"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"storeId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StoreAddress"},directives:[]}]}}]}}]}}]}}],loc:{source:'fragment StoreAddress on Address {\n country\n addresseeName\n addressLine1\n addressLine2\n addressLine3\n addressLine4\n addressLine5\n companyName\n state\n phoneNumber\n clickAndCollect\n postalCode\n}\n\n\n\n#import "../../Fragment/Content/StoreAddress.graphql"\n\nquery StoreDetails($urlTag: String!) {\n storeByStoreUrlTag(urlTag: $urlTag) {\n id\n displayName\n urlTag\n phoneNumber\n email\n longitude\n latitude\n openingTimes {\n openingTime\n closingTime\n day\n }\n storeFacility {\n storeId\n icon\n title\n }\n address {\n ...StoreAddress\n }\n nearbyStores(limit: 3) {\n id\n displayName\n urlTag\n phoneNumber\n email\n longitude\n latitude\n relativeDistance\n openingTimes {\n openingTime\n closingTime\n day\n }\n storeFacility {\n storeId\n icon\n title\n }\n address {\n ...StoreAddress\n }\n }\n }\n}\n'}}}}]); //# sourceMappingURL=3382-764064bffcfb1e15.js.map