(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1248:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ReviewList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"ReviewFilterInput"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"currentPage"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reviews"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}},{kind:"Argument",name:{kind:"Name",value:"currentPage"},value:{kind:"Variable",name:{kind:"Name",value:"currentPage"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hits"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"suggest"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:218}};i.loc.source={body:"query ReviewList (\n    $filter: ReviewFilterInput,\n    $pageSize: Int,\n    $currentPage: Int\n  ) {\n  reviews(\n    filter: $filter\n    pageSize: $pageSize\n    currentPage: $currentPage\n  )\n  {\n    hits\n    suggest\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}i.definitions.forEach((function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach((function(n){e(n,i)})),n.variableDefinitions&&n.variableDefinitions.forEach((function(n){e(n,i)})),n.definitions&&n.definitions.forEach((function(n){e(n,i)}))}(e,n),t[e.name.value]=n}})),e.exports=i,e.exports.ReviewList=function(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var u=s;s=new Set,u.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(n){var t=r(e,n);t&&i.definitions.push(t)})),i}(i,"ReviewList")},1807:function(e,n,i){var t={"./gqlQuery":948,"./gqlQuery.js":948,"./processor/processType":956,"./processor/processType.ts":956,"./queries/categories":951,"./queries/categories.gql":951,"./queries/cmsBlock":954,"./queries/cmsBlock.gql":954,"./queries/cmsHierarchy":955,"./queries/cmsHierarchy.gql":955,"./queries/cmsPage":953,"./queries/cmsPage.gql":953,"./queries/customAttributeMetadata":950,"./queries/customAttributeMetadata.gql":950,"./queries/products":949,"./queries/products.gql":949,"./queries/reviews":1248,"./queries/reviews.gql":1248,"./queries/taxrule":952,"./queries/taxrule.gql":952,"./searchAdapter":551,"./searchAdapter.ts":551};function r(e){var n=a(e);return i(n)}function a(e){if(!i.o(t,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t[e]}r.keys=function(){return Object.keys(t)},r.resolve=a,e.exports=r,r.id=1807},551:function(e,n,i){"use strict";i.r(n),i.d(n,"SearchAdapter",(function(){return c}));var t=i(0),r=i(948),a=i(8),o=i(18),s=i.n(o),u=i(956),l=i(20),d=i(1),c=function(){function e(){this.entities=[],this.initBaseTypes()}return e.prototype.search=function(e){return Object(t.b)(this,void 0,void 0,(function(){var n,i,o,u,c,f,m;return Object(t.d)(this,(function(t){switch(t.label){case 0:if(!(e.searchQuery instanceof l.a))throw new Error("SearchQuery instance has wrong class required to process with graphQl request.");if(!this.entities[e.type])throw new Error("No entity type registered for "+e.type);return null!==e.store?[3,1]:(i=Object(a.b)(),[3,3]);case 1:return[4,Object(a.f)(e.store)];case 2:i=t.sent(),t.label=3;case 3:if(void 0===(n=i).storeCode||null==n.storeCode||!e.type)throw new Error("Store and SearchRequest.type are required arguments for executing Graphql query");return o=Object(r.prepareQueryVars)(e),u=this.entities[e.type].query,c=JSON.stringify({query:u,variables:o}),f="",this.entities[e.type].url?f=this.entities[e.type].url:(f=d.server.protocol+"://"+d.graphql.host+":"+d.graphql.port+"/graphql",m=""!==n.storeCode?encodeURIComponent(n.storeCode)+"/":"",f=f+"/"+m),[2,s()(f,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:c}).then((function(e){return e.json()})).catch((function(e){throw new Error("FetchError in request to ES: "+e.toString())}))]}}))}))},e.prototype.registerEntityType=function(e,n){var t=n.url,r=void 0===t?"":t,a=n.gql,o=n.queryProcessor,s=n.resultPorcessor;return this.entities[e]={query:i(1807)(""+a),queryProcessor:o,resultPorcessor:s},""!==r&&(this.entities[e].url=r),this},e.prototype.registerEntityTypeByQuery=function(e,n){var i=n.url,t=void 0===i?"":i,r=n.query,a=n.queryProcessor,o=n.resultPorcessor;return this.entities[e]={query:r,queryProcessor:a,resultPorcessor:o},""!==t&&(this.entities[e].url=t),this},e.prototype.initBaseTypes=function(){this.registerEntityType("product",{gql:"./queries/products.gql",queryProcessor:function(e){return e},resultPorcessor:function(e,n,i){if(null===e)throw new Error("Invalid graphQl result - null not exepcted");if(e.hasOwnProperty("data"))return Object(u.processProductsType)(e.data.products,n,i);throw e.error?new Error(JSON.stringify(e.error)):new Error("Unknown error with graphQl result in resultPorcessor for entity type 'product'")}}),this.registerEntityType("attribute",{gql:"./queries/customAttributeMetadata.gql",queryProcessor:function(e){return e},resultPorcessor:function(e,n,i){if(null===e)throw new Error("Invalid graphQl result - null not exepcted");if(e.hasOwnProperty("data"))return Object(u.processESResponseType)(e.data.customAttributeMetadata,n,i);throw e.error?new Error(JSON.stringify(e.error)):new Error("Unknown error with graphQl result in resultPorcessor for entity type 'attribute'")}}),this.registerEntityType("review",{gql:"./queries/reviews.gql",queryProcessor:function(e){return e},resultPorcessor:function(e,n,i){if(null===e)throw new Error("Invalid graphQl result - null not exepcted");if(e.hasOwnProperty("data"))return Object(u.processESResponseType)(e.data.reviews,n,i);throw e.error?new Error(JSON.stringify(e.error)):new Error("Unknown error with graphQl result in resultPorcessor for entity type 'review'")}}),this.registerEntityType("category",{gql:"./queries/categories.gql",queryProcessor:function(e){return e},resultPorcessor:function(e,n,i){if(null===e)throw new Error("Invalid graphQl result - null not exepcted");if(e.hasOwnProperty("data"))return Object(u.processESResponseType)(e.data.categories,n,i);throw e.error?new Error(JSON.stringify(e.error)):new Error("Unknown error with graphQl result in resultPorcessor for entity type 'category'")}}),this.registerEntityType("taxrule",{gql:"./queries/taxrule.gql",queryProcessor:function(e){return e},resultPorcessor:function(e,n,i){if(null===e)throw new Error("Invalid graphQl result - null not exepcted");if(e.hasOwnProperty("data"))return Object(u.processESResponseType)(e.data.taxrule,n,i);throw e.error?new Error(JSON.stringify(e.error)):new Error("Unknown error with graphQl result in resultPorcessor for entity type 'taxrule'")}}),this.registerEntityType("cms_page",{gql:"./queries/cmsPage.gql",queryProcessor:function(e){return e},resultPorcessor:function(e,n,i){if(null===e)throw new Error("Invalid graphQl result - null not exepcted");if(e.hasOwnProperty("data"))return Object(u.processCmsType)(e.data.cmsPages,n,i);throw e.error?new Error(JSON.stringify(e.error)):new Error("Unknown error with graphQl result in resultPorcessor for entity type 'cmsPage'")}}),this.registerEntityType("cms_block",{gql:"./queries/cmsBlock.gql",queryProcessor:function(e){return e},resultPorcessor:function(e,n,i){if(null===e)throw new Error("Invalid graphQl result - null not exepcted");if(e.hasOwnProperty("data"))return Object(u.processCmsType)(e.data.cmsBlocks,n,i);throw e.error?new Error(JSON.stringify(e.error)):new Error("Unknown error with graphQl result in resultPorcessor for entity type 'cmsBlock'")}}),this.registerEntityType("cms_hierarchy",{gql:"./queries/cmsHierarchy.gql",queryProcessor:function(e){return e},resultPorcessor:function(e,n,i){if(null===e)throw new Error("Invalid graphQl result - null not exepcted");if(e.hasOwnProperty("data"))return Object(u.processCmsType)(e.data.cmsHierarchies,n,i);throw e.error?new Error(JSON.stringify(e.error)):new Error("Unknown error with graphQl result in resultPorcessor for entity type 'cmsHierarchy'")}})},e}()},782:function(e,n,i){"use strict";var t=i(37),r=i(15),a=i(165),o=i(66);var s=function(e,n){var i=-1,t=Object(o.a)(e)?Array(e.length):[];return Object(a.a)(e,(function(e,r,a){t[++i]=n(e,r,a)})),t},u=i(23);n.a=function(e,n){return(Object(u.a)(e)?t.a:s)(e,Object(r.a)(n,3))}},948:function(e,n,i){"use strict";function t(e,n){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=function(e,n){if(!e)return;if("string"==typeof e)return r(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return r(e,n)}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var t=0,a=function(){};return{s:a,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==i.return||i.return()}finally{if(u)throw o}}}}function r(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i<n;i++)t[i]=e[i];return t}function a(e){var n,i,t,r={},a=e.attribute.split(".");if(a.length>1){for(var o=e.value,s=a.length-1;s>=0;s--)n={},i=a[s],t=o,i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,o=n;r=o}else r[e.attribute]=e.value;return r}function o(e){var n={},i=void 0!==e.searchQuery.getAppliedFilters?e.searchQuery.getAppliedFilters():{};n.search=e.searchQuery.getSearchText(),n.sort={},n.filter={},n._sourceInclude={},n._sourceExclude={};var r=e.searchQuery.getAvailableFilters();if(r.length>0){var o,s=t(r);try{for(s.s();!(o=s.n()).done;){var u=o.value;n.filter[u.field]={},void 0!==u.scope&&(n.filter[u.field].scope=u.scope)}}catch(e){s.e(e)}finally{s.f()}}var l,d=t(i);try{for(d.s();!(l=d.n()).done;){var c=l.value;c.scope&&(c.value.scope=c.scope,delete c.scope);var f=a(c);n.filter=Object.assign(n.filter,f)}}catch(e){d.e(e)}finally{d.f()}if(""!==e.sort){var m=e.sort.split(":");void 0!==m[1]?n.sort[m[0]]=m[1].toUpperCase():"_score"===m[0]?n.sort[m[0]]="DESC":n.sort[m[0]]="ASC"}return n.pageSize=e.size,n.currentPage=e.from/e.size+1,n.attributes=n.filter,n._sourceInclude=e._sourceInclude,n._sourceExclude=e._sourceExclude,n}function s(e){var n="",t=o(e);switch(e.type){case"product":n=i(949);break;case"attribute":n=i(950);break;case"category":n=i(951);break;case"taxrule":n=i(952);break;case"cms_page":n=i(953);break;case"cms_block":n=i(954);break;case"cms_hierarhy":n=i(955)}return JSON.stringify({query:n,variables:t})}i.r(n),i.d(n,"prepareQueryVars",(function(){return o})),i.d(n,"prepareGraphQlBody",(function(){return s}))},949:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProductListFilters"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"ProductFilterInput"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"search"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"currentPage"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"NamedType",name:{kind:"Name",value:"ProductSortInput"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"_sourceInclude"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"_sourceExclude"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"products"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}},{kind:"Argument",name:{kind:"Name",value:"search"},value:{kind:"Variable",name:{kind:"Name",value:"search"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}},{kind:"Argument",name:{kind:"Name",value:"currentPage"},value:{kind:"Variable",name:{kind:"Name",value:"currentPage"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"_sourceInclude"},value:{kind:"Variable",name:{kind:"Name",value:"_sourceInclude"}}},{kind:"Argument",name:{kind:"Name",value:"_sourceExclude"},value:{kind:"Variable",name:{kind:"Name",value:"_sourceExclude"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"aggregations"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sort_fields"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"page_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"page_size"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"current_page"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:634}};i.loc.source={body:"query ProductListFilters (\n    $filter: ProductFilterInput,\n    $search: String!,\n    $pageSize: Int,\n    $currentPage: Int,\n    $sort: ProductSortInput,\n    $_sourceInclude: [String],\n    $_sourceExclude: [String]\n  ) {\n    products(\n      filter: $filter\n      search: $search\n      pageSize: $pageSize\n      currentPage: $currentPage\n      sort: $sort\n      _sourceInclude: $_sourceInclude\n      _sourceExclude: $_sourceExclude\n    )\n    {\n      items\n      total_count\n      aggregations\n      sort_fields{\n        options {\n          value\n        }\n      }\n      page_info{\n        page_size\n        current_page\n      }\n    }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}i.definitions.forEach((function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach((function(n){e(n,i)})),n.variableDefinitions&&n.variableDefinitions.forEach((function(n){e(n,i)})),n.definitions&&n.definitions.forEach((function(n){e(n,i)}))}(e,n),t[e.name.value]=n}})),e.exports=i,e.exports.ProductListFilters=function(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var u=s;s=new Set,u.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(n){var t=r(e,n);t&&i.definitions.push(t)})),i}(i,"ProductListFilters")},950:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"customAttributeMetadata"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attributes"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AttributeInput"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"_sourceInclude"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customAttributeMetadata"},arguments:[{kind:"Argument",name:{kind:"Name",value:"attributes"},value:{kind:"Variable",name:{kind:"Name",value:"attributes"}}},{kind:"Argument",name:{kind:"Name",value:"_sourceInclude"},value:{kind:"Variable",name:{kind:"Name",value:"_sourceInclude"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hits"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:203}};i.loc.source={body:"query customAttributeMetadata ($attributes: AttributeInput!, $_sourceInclude: [String]) {\n  customAttributeMetadata(\n    attributes: $attributes\n    _sourceInclude: $_sourceInclude\n  )\n  {\n    hits\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}i.definitions.forEach((function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach((function(n){e(n,i)})),n.variableDefinitions&&n.variableDefinitions.forEach((function(n){e(n,i)})),n.definitions&&n.definitions.forEach((function(n){e(n,i)}))}(e,n),t[e.name.value]=n}})),e.exports=i,e.exports.customAttributeMetadata=function(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var u=s;s=new Set,u.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(n){var t=r(e,n);t&&i.definitions.push(t)})),i}(i,"customAttributeMetadata")},951:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CategoryList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"CategoryFilterInput"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"currentPage"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sort"}},type:{kind:"NamedType",name:{kind:"Name",value:"CategorySortInput"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"_sourceInclude"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}},{kind:"Argument",name:{kind:"Name",value:"currentPage"},value:{kind:"Variable",name:{kind:"Name",value:"currentPage"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"Variable",name:{kind:"Name",value:"sort"}}},{kind:"Argument",name:{kind:"Name",value:"_sourceInclude"},value:{kind:"Variable",name:{kind:"Name",value:"_sourceInclude"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hits"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"suggest"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:338}};i.loc.source={body:"query CategoryList (\n    $filter: CategoryFilterInput,\n    $pageSize: Int,\n    $currentPage: Int,\n    $sort: CategorySortInput,\n    $_sourceInclude: [String]\n  ) {\n  categories(\n    filter: $filter\n    pageSize: $pageSize\n    currentPage: $currentPage\n    sort: $sort\n    _sourceInclude: $_sourceInclude\n  )\n  {\n    hits\n    suggest\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}i.definitions.forEach((function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach((function(n){e(n,i)})),n.variableDefinitions&&n.variableDefinitions.forEach((function(n){e(n,i)})),n.definitions&&n.definitions.forEach((function(n){e(n,i)}))}(e,n),t[e.name.value]=n}})),e.exports=i,e.exports.CategoryList=function(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var u=s;s=new Set,u.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(n){var t=r(e,n);t&&i.definitions.push(t)})),i}(i,"CategoryList")},952:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"taxrule"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"TaxRuleInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxrule"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hits"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:93}};i.loc.source={body:"query taxrule ($filter: TaxRuleInput) {\n  taxrule(\n    filter: $filter\n  )\n  {\n    hits\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}i.definitions.forEach((function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach((function(n){e(n,i)})),n.variableDefinitions&&n.variableDefinitions.forEach((function(n){e(n,i)})),n.definitions&&n.definitions.forEach((function(n){e(n,i)}))}(e,n),t[e.name.value]=n}})),e.exports=i,e.exports.taxrule=function(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var u=s;s=new Set,u.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(n){var t=r(e,n);t&&i.definitions.push(t)})),i}(i,"taxrule")},953:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"cmsPages"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"CmsInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cmsPages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"identifier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meta_description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meta_keywords"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:186}};i.loc.source={body:"query cmsPages ($filter: CmsInput) {\n  cmsPages(\n    filter: $filter\n  )\n  {\n    items {\n      title\n      identifier\n      content\n      meta_description\n      meta_keywords\n    }\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}i.definitions.forEach((function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach((function(n){e(n,i)})),n.variableDefinitions&&n.variableDefinitions.forEach((function(n){e(n,i)})),n.definitions&&n.definitions.forEach((function(n){e(n,i)}))}(e,n),t[e.name.value]=n}})),e.exports=i,e.exports.cmsPages=function(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var u=s;s=new Set,u.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(n){var t=r(e,n);t&&i.definitions.push(t)})),i}(i,"cmsPages")},954:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"cmsBlocks"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"CmsInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cmsBlocks"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"identifier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"creation_time"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:175}};i.loc.source={body:"query cmsBlocks ($filter: CmsInput) {\n  cmsBlocks(\n    filter: $filter\n  )\n  {\n    items {\n      title\n      id\n      identifier\n      content\n      creation_time\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}i.definitions.forEach((function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach((function(n){e(n,i)})),n.variableDefinitions&&n.variableDefinitions.forEach((function(n){e(n,i)})),n.definitions&&n.definitions.forEach((function(n){e(n,i)}))}(e,n),t[e.name.value]=n}})),e.exports=i,e.exports.cmsBlocks=function(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var u=s;s=new Set,u.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(n){var t=r(e,n);t&&i.definitions.push(t)})),i}(i,"cmsBlocks")},955:function(e,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"cmsHierarchies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"CmsInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cmsHierarchies"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"page_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"xpath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"request_url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent_node_id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:189}};i.loc.source={body:"query cmsHierarchies ($filter: CmsInput) {\n  cmsHierarchies(\n    filter: $filter\n  )\n  {\n    items {\n      page_id\n      label\n      xpath\n      request_url\n      parent_node_id\n    }\n  }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function r(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}i.definitions.forEach((function(e){if(e.name){var n=new Set;!function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var t=n.type;"NamedType"===t.kind&&i.add(t.name.value)}n.selectionSet&&n.selectionSet.selections.forEach((function(n){e(n,i)})),n.variableDefinitions&&n.variableDefinitions.forEach((function(n){e(n,i)})),n.definitions&&n.definitions.forEach((function(n){e(n,i)}))}(e,n),t[e.name.value]=n}})),e.exports=i,e.exports.cmsHierarchies=function(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=t[n]||new Set,o=new Set,s=new Set;for(a.forEach((function(e){s.add(e)}));s.size>0;){var u=s;s=new Set,u.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(n){var t=r(e,n);t&&i.definitions.push(t)})),i}(i,"cmsHierarchies")},956:function(e,n,i){"use strict";i.r(n),i.d(n,"processESResponseType",(function(){return o})),i.d(n,"processProductsType",(function(){return s})),i.d(n,"processCmsType",(function(){return u}));var t=i(782),r=i(3),a=i(1);function o(e,n,i){return{items:Object(t.a)(e.hits.hits,(function(e){return Object.assign(e._source,{_score:e._score,slug:e._source.slug?e._source.slug:e._source.hasOwnProperty("url_key")&&a.products.useMagentoUrlKeys?e._source.url_key:e._source.hasOwnProperty("name")?Object(r.p)(e._source.name)+"-"+e._source.id:""})})),total:e.hits.total,start:n,perPage:i,aggregations:e.aggregations,suggestions:e.suggest}}function s(e,n,i){return{items:Object(t.a)(e.items,(function(e){var n={};return e._score&&(n._score=e._score,delete e._score),n.slug=e.slug?e.slug:e.url_key&&a.products.useMagentoUrlKeys?e.url_key:e.name?Object(r.p)(e.name)+"-"+e.id:"",Object.assign(e,n)})),total:e.total_count,start:n,perPage:i,aggregations:e.aggregations,suggestions:e.suggest}}function u(e,n,i){return{items:e.items,total:e.total_count,start:n,perPage:i,aggregations:e.aggregations,suggestions:e.suggest}}}}]);
//# sourceMappingURL=vsf-search-adapter-1.56c1b3df03a7533fb193.js.map