(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1379,1206],{11206:function(e,n,i){"use strict";i.r(n),i.d(n,{Status:function(){return k},StoreByStoreUrlTag:function(){return b},isStoreOpen:function(){return N}});var a,t,r,s=i(20406),d=i(95235),o=i(82841),l=i.n(o),m=i(39722),u=((a={}).YES="YES",a.NO="NO",a),c=((t={}).OPEN="OPEN",t.CLOSED="CLOSED",t.PERMANENTLY_CLOSED="PERMANENTLY_CLOSED",t.TEMPORARILY_CLOSED="TEMPORARILY_CLOSED",t),g=[{title:"Facility name",icon:u.YES},{title:"Facility name",icon:u.YES},{title:"Facility name",icon:u.YES},{title:"Facility name",icon:u.NO}],p={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:c.OPEN,storeFacility:g,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:c.OPEN,storeFacility:g,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:c.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:g,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:c.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:g,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"}]}]}},y=i(40911);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 T(e){for(var n=1;nn?k.OPEN:k.CLOSED},O=function(e){return e.map(function(n,i){n.openingTime===n.closingTime&&e.splice(i,1,T(T({},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",p);case 2:return n.next=4,e.query({query:y.I,variables:t});case 4:return d=n.sent.data,n.abrupt("return",{store:T(T({},d.storeByStoreUrlTag),{},{status:null!==(r=d.storeByStoreUrlTag)&&void 0!==r&&r.openingTimes?N(d.storeByStoreUrlTag.openingTimes):k.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 T(T({},e),{},{status:N(e.openingTimes)})}))||[]})});case 7:case"end":return n.stop()}},n)})),function(e,n){return i.apply(this,arguments)}}},21379:function(e,n,i){"use strict";i.d(n,{Gx:function(){return p},cy:function(){return u},fT:function(){return g},xR:function(){return m}});var a=i(95235),t=i(90998),r=i(93138),s=i(11206),d=i(39722);function o(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 l(e){for(var n=1;nn?s.Status.OPEN:s.Status.CLOSED},p=function(e){return e.replaceAll("-"," ")}},40911: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:"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:"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 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 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=1379-09f0e10b6b744485.js.map