gatsby-matrix-theme 31.0.0 → 31.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/package.json +2 -2
  3. package/src/components/atoms/site-contacts/index.js +23 -11
  4. package/src/components/atoms/site-contacts/site-contacts.stories.js +12 -0
  5. package/src/gatsby-core-theme/components/molecules/main/index.js +5 -5
  6. package/src/gatsby-core-theme/components/molecules/search/index.js +42 -3
  7. package/src/gatsby-core-theme/components/organisms/search/index.js +12 -1
  8. package/src/gatsby-core-theme/components/pages/body/index.js +3 -1
  9. package/storybook/public/{238.63241167.iframe.bundle.js → 238.6573b754.iframe.bundle.js} +1 -1
  10. package/storybook/public/{343.6a79d1f0.iframe.bundle.js → 343.6342e7dd.iframe.bundle.js} +1 -1
  11. package/storybook/public/{353.bc06f7ed.iframe.bundle.js → 353.15a2b39d.iframe.bundle.js} +4 -4
  12. package/storybook/public/{353.bc06f7ed.iframe.bundle.js.map → 353.15a2b39d.iframe.bundle.js.map} +1 -1
  13. package/storybook/public/{408.e2d12757.iframe.bundle.js → 408.6238c46f.iframe.bundle.js} +2 -2
  14. package/storybook/public/{555.ea2f83c3.iframe.bundle.js → 555.5074c29a.iframe.bundle.js} +1 -1
  15. package/storybook/public/{60.9dc681ce.iframe.bundle.js → 60.d1cf4201.iframe.bundle.js} +1 -1
  16. package/storybook/public/{694.133d4c3b.iframe.bundle.js → 694.9ddc47e7.iframe.bundle.js} +1 -1
  17. package/storybook/public/{895.e6166f2a.iframe.bundle.js → 895.fa43b4e4.iframe.bundle.js} +1 -1
  18. package/storybook/public/{917.ab319ca7.iframe.bundle.js → 917.b93b8935.iframe.bundle.js} +1 -1
  19. package/storybook/public/{932.cb7dfc74.iframe.bundle.js → 932.2bcb3c48.iframe.bundle.js} +1 -1
  20. package/storybook/public/iframe.html +1 -1
  21. package/storybook/public/main.aa33da4f.iframe.bundle.js +2 -0
  22. package/storybook/public/{runtime~main.109e903c.iframe.bundle.js → runtime~main.3d1caeef.iframe.bundle.js} +1 -1
  23. package/storybook/public/main.11fe6ac0.iframe.bundle.js +0 -2
  24. /package/storybook/public/{353.bc06f7ed.iframe.bundle.js.LICENSE.txt → 353.15a2b39d.iframe.bundle.js.LICENSE.txt} +0 -0
  25. /package/storybook/public/{408.e2d12757.iframe.bundle.js.LICENSE.txt → 408.6238c46f.iframe.bundle.js.LICENSE.txt} +0 -0
  26. /package/storybook/public/{main.11fe6ac0.iframe.bundle.js.LICENSE.txt → main.aa33da4f.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## [31.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v31.0.0...v31.0.1) (2023-08-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * excluded header fo search path ([3f12519](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3f1251900d9584941ce5e19743bfeaaa3fc1dcd3))
7
+ * update search for matrix ([164282d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/164282d94590827dd8e60a923e6af343b29be06d))
8
+ * update the latest core version ([c7070a0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c7070a068ed6b3bc2cf941342489477ebfd5b10a))
9
+
10
+
11
+ ### Code Refactoring
12
+
13
+ * show custom heading for site contacts ([70eaf22](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/70eaf22fc60504812f4b794fc96c8e8ad7956d09))
14
+
15
+
16
+ * Merge branch 'tm-3556-contact-us-page' into 'master' ([f44db71](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f44db71e0c8140e8ab8a70719baf466fd2c91092))
17
+ * Merge branch 'tm-3533-enable-search-for-multiple-market' into 'master' ([c936102](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c9361024ca289104e007cbc1f4e04bbf35bee621))
18
+ * Merge branch 'tm-3533-enable-search-for-multiple-market' into 'master' ([1a1c463](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1a1c463d101b6c08a047d6cc865a629eb8232231))
19
+
1
20
  # [31.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v30.0.0...v31.0.0) (2023-08-22)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "31.0.0",
3
+ "version": "31.0.1",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@react-icons/all-files": "^4.1.0",
27
27
  "gatsby": "^5.11.0",
28
- "gatsby-core-theme": "28.0.1",
28
+ "gatsby-core-theme": "28.0.2",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-plugin-sitemap": "^3.3.0",
31
31
  "gatsby-transformer-sharp": "^5.11.0",
@@ -1,24 +1,34 @@
1
- import React from 'react';
1
+ import React, { useContext } from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import { Context } from 'gatsby-core-theme/src/context/MainProvider';
4
+ import { translate } from 'gatsby-core-theme/src/helpers/getters';
3
5
  import keygen from 'gatsby-core-theme/src/helpers/keygen';
4
6
  import styles from './site-contacts.module.scss';
5
7
 
6
- const SiteContacts = ({ page }) => {
8
+ const SiteContacts = ({ page, showHeading = false, heading = null }) => {
9
+ const { translations } = useContext(Context) || {};
7
10
  const { siteSchema } = page || {};
8
11
  const email = siteSchema?.email || null;
9
12
 
10
13
  if (!email) return;
11
14
 
12
15
  return (
13
- <div className={styles.siteContacts}>
14
- <ul className={styles?.generalContacts || ''}>
15
- {email?.map((item) => (
16
- <li key={keygen()}>
17
- <p>{item.contact_type}</p>
18
- <a href={`mailto:${item.email}`}>{item.email}</a>
19
- </li>
20
- ))}
21
- </ul>
16
+ <div className={styles.siteContactsContainer}>
17
+ {showHeading && (
18
+ <h2>
19
+ {heading || translate(translations, 'reach_us', 'Reach out to one of our departments')}
20
+ </h2>
21
+ )}
22
+ <div className={styles.siteContacts}>
23
+ <ul className={styles?.generalContacts || ''}>
24
+ {email?.map((item) => (
25
+ <li key={keygen()}>
26
+ <p>{item.contact_type}</p>
27
+ <a href={`mailto:${item.email}`}>{item.email}</a>
28
+ </li>
29
+ ))}
30
+ </ul>
31
+ </div>
22
32
  </div>
23
33
  );
24
34
  };
@@ -29,4 +39,6 @@ SiteContacts.propTypes = {
29
39
  page: PropTypes.shape({
30
40
  siteSchema: PropTypes.shape({}),
31
41
  }).isRequired,
42
+ showHeading: PropTypes.bool,
43
+ heading: PropTypes.string,
32
44
  };
@@ -32,6 +32,18 @@ export default {
32
32
  defaultValue: { summary: '' },
33
33
  },
34
34
  },
35
+ showHeading: {
36
+ name: 'showHeading',
37
+ type: { name: 'boolean', required: false },
38
+ defaultValue: false,
39
+ description: 'Show/hide intro description of page',
40
+ },
41
+ heading: {
42
+ name: 'heading',
43
+ type: { name: 'string', required: false },
44
+ defaultValue: 'Show custom heading here',
45
+ description: 'Show custom heading here',
46
+ },
35
47
  },
36
48
  parameters: {
37
49
  docs: {
@@ -10,9 +10,10 @@ import keygen from 'gatsby-core-theme/src/helpers/keygen';
10
10
  import styles from 'gatsby-core-theme/src/components/molecules/main/main.module.scss';
11
11
  import settings from '../../../../constants/settings/newsletter';
12
12
  import FeedBackModule from '../../../../components/atoms/feedBackModule';
13
+ import { isSearchPath } from '~helpers/isSearchPath';
13
14
 
14
15
  const Main = ({ section = {}, pageContext = {}, showAuthor = true, exclOperator = false }) => {
15
- const { page } = pageContext;
16
+ const { page, allMarkets } = pageContext;
16
17
  const siteName = process.env.GATSBY_SITE_NAME;
17
18
  const showNewsletter = !(
18
19
  settings[siteName]?.filter_pages?.includes('*') ||
@@ -21,10 +22,9 @@ const Main = ({ section = {}, pageContext = {}, showAuthor = true, exclOperator
21
22
  );
22
23
  const isContactUsPage = !!section?.modules?.filter((module) => module.name === 'contact_form')
23
24
  .length;
24
- const SearchPage =
25
- page.path === 's'
26
- ? loadable(() => import(`gatsby-core-theme/src/components/pages/search`))
27
- : null;
25
+
26
+ const pathPrefixes = isSearchPath(allMarkets, page.path);
27
+ const SearchPage = pathPrefixes ? loadable(() => import(`~pages/search`)) : null;
28
28
  const HtmlSitemap = pageContext.sitemapData
29
29
  ? loadable(() => import(`gatsby-core-theme/src/components/atoms/sitemap`))
30
30
  : null;
@@ -34,6 +34,7 @@ const Search = ({
34
34
  children,
35
35
  noResults = 'We can’t find anything that matches your query. Please try again with other keywords.',
36
36
  page,
37
+ pageContext,
37
38
  }) => {
38
39
  const { setShowSearch } = useContext(NavigationContext);
39
40
  const pageSearchOptionsCopy = pageSearchOptions;
@@ -89,6 +90,16 @@ const Search = ({
89
90
  if (formSearchOptionsCopy.sort) {
90
91
  const types = getChildrenTypes();
91
92
  let filteredResults = [];
93
+
94
+ searchResultsRef.current.forEach((object) => {
95
+ if (object.relation && object.relation.market === pageContext.page?.market) {
96
+ filteredResults = [
97
+ ...filteredResults,
98
+ ...searchResultsRef.current.filter(filterByKey('id', object.id)),
99
+ ];
100
+ }
101
+ });
102
+
92
103
  types.forEach((type) => {
93
104
  filteredResults = [
94
105
  ...filteredResults,
@@ -109,7 +120,13 @@ const Search = ({
109
120
  setIsLoading(false);
110
121
  }
111
122
  }
112
- }, [searchQuery, formSearchOptionsCopy, getChildrenTypes]);
123
+ }, [
124
+ searchQuery,
125
+ formSearchOptionsCopy?.sort,
126
+ formSearchOptionsCopy?.limit,
127
+ getChildrenTypes,
128
+ pageContext?.page?.market,
129
+ ]);
113
130
 
114
131
  // PROCESSES
115
132
 
@@ -340,7 +357,21 @@ const Search = ({
340
357
  )}
341
358
  >
342
359
  {getChildrenTypes().map((type, index) => {
343
- let items = searchResultsRef.current.filter((item) => item.type === type);
360
+ let items = [];
361
+
362
+ searchResultsRef.current.forEach((object) => {
363
+ if (
364
+ object.relation &&
365
+ object.relation.market === page?.market &&
366
+ object.type === type
367
+ ) {
368
+ const filteredItems = searchResultsRef.current.filter(
369
+ filterByKey('id', object.id)
370
+ );
371
+ items = items.concat(filteredItems);
372
+ }
373
+ });
374
+
344
375
  const titleObj = pageSearchOptionsCopy.archiveOptions.titles.find(
345
376
  (title) => title.type === type
346
377
  );
@@ -448,7 +479,15 @@ Search.propTypes = {
448
479
  }),
449
480
  children: PropTypes.elementType,
450
481
  styles: PropTypes.shape({}),
451
- page: PropTypes.shape({}),
482
+ page: PropTypes.shape({
483
+ translations: PropTypes.shape({}),
484
+ market: PropTypes.string,
485
+ }),
486
+ pageContext: PropTypes.shape({
487
+ page: PropTypes.shape({
488
+ market: PropTypes.string,
489
+ }),
490
+ }),
452
491
  };
453
492
 
454
493
  export default Search;
@@ -10,7 +10,14 @@ import { NavigationContext } from 'gatsby-core-theme/src/components/organisms/na
10
10
 
11
11
  import styles from 'gatsby-core-theme/src/components/organisms/search/search.module.scss';
12
12
 
13
- const SearchForm = ({ className, searchIcon, iconWidth = 24, iconHeight = 24 }) => {
13
+ const SearchForm = ({
14
+ className,
15
+ searchIcon,
16
+ iconWidth = 24,
17
+ iconHeight = 24,
18
+ pageContext,
19
+ searchURLPageName,
20
+ }) => {
14
21
  const { showSearch, setShowSearch, setShowMenu, showMenu } = useContext(NavigationContext);
15
22
 
16
23
  const Search = showSearch ? (
@@ -89,6 +96,8 @@ const SearchForm = ({ className, searchIcon, iconWidth = 24, iconHeight = 24 })
89
96
  className={`${styles?.searchForm || ''} ${styles?.show || ''}`}
90
97
  >
91
98
  <Search
99
+ pageContext={pageContext}
100
+ searchURLPageName={searchURLPageName}
92
101
  searchIcon={searchIcon}
93
102
  formSearchOptions={{
94
103
  autoComplete: true,
@@ -128,6 +137,8 @@ SearchForm.propTypes = {
128
137
  searchIcon: PropTypes.string,
129
138
  iconWidth: PropTypes.number,
130
139
  iconHeight: PropTypes.number,
140
+ pageContext: PropTypes.shape({}),
141
+ searchURLPageName: PropTypes.string,
131
142
  };
132
143
 
133
144
  export default SearchForm;
@@ -11,6 +11,7 @@ import Main from 'gatsby-core-theme/src/components/molecules/main';
11
11
  import Header from 'gatsby-core-theme/src/components/molecules/header';
12
12
  import Footer from '../../molecules/footer';
13
13
  import LinkMenu from '../../../../components/atoms/link-menu';
14
+ import { isSearchPath } from '~helpers/isSearchPath';
14
15
 
15
16
  function Body({ pageContext, children, excludeTemplateInPopup = [], hideOperatorBanner = false }) {
16
17
  useEffect(() => {
@@ -62,7 +63,8 @@ function Body({ pageContext, children, excludeTemplateInPopup = [], hideOperator
62
63
  ? loadable(() => import(`gatsby-core-theme/src/components/atoms/open-graph`))
63
64
  : null;
64
65
 
65
- const isSearch = pageContext.page.path === 's' && true;
66
+ const isSearch = isSearchPath(pageContext.allMarkets, pageContext.page.path);
67
+
66
68
  const status = pageContext.page.relation?.status;
67
69
 
68
70
  const hideBanner = status === 'inactive' || status === 'coming_soon';
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkgatsby_matrix_theme=self.webpackChunkgatsby_matrix_theme||[]).push([[238],{"../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return operator}});var react=__webpack_require__("../node_modules/react/index.js"),prop_types=__webpack_require__("../node_modules/gatsby-core-theme/node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),lazy_image=__webpack_require__("../node_modules/gatsby-core-theme/src/hooks/lazy-image/index.js"),getters=__webpack_require__("../node_modules/gatsby-core-theme/src/helpers/getters.mjs"),atoms_button=__webpack_require__("../node_modules/gatsby-core-theme/src/components/atoms/button/index.js"),injectStylesIntoStyleTag=__webpack_require__("../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),operator_module=__webpack_require__("../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].use[1]!../node_modules/sass-loader/dist/cjs.js!../node_modules/sass-resources-loader/lib/loader.js??ruleSet[1].rules[10].use[3]!../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.module.scss"),options={insert:"head",singleton:!1},autocomplete_operator_module=(injectStylesIntoStyleTag_default()(operator_module.Z,options),operator_module.Z.locals||{}),Operator=function Operator(_ref){var _relation$standardise,_ref$item=_ref.item,item=void 0===_ref$item?{}:_ref$item,relation=item.relation,img=(null==relation||null===(_relation$standardise=relation.standardised_logo_url_object)||void 0===_relation$standardise?void 0:_relation$standardise.filename)||relation.logo_url;return react.createElement("div",{className:autocomplete_operator_module.row||""},react.createElement(lazy_image.Z,{width:56,height:56,src:(0,getters.S7)(img,56,56),alt:item.title}),react.createElement("h3",null,item.title),react.createElement(atoms_button.Z,{to:"/#",primaryColor:!0,isInternalLink:!1,gtmClass:"operator-gtm btn-cta"}))};Operator.displayName="Operator",Operator.propTypes={item:prop_types_default().shape({title:prop_types_default().string,relation:prop_types_default().shape({logo_url:prop_types_default().string})}).isRequired},Operator.__docgenInfo={description:"",methods:[],displayName:"Operator",props:{item:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{title:{name:"string",required:!1},relation:{name:"shape",value:{logo_url:{name:"string",required:!1}},required:!1}}},required:!1}}};var operator=Operator;"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.js"]={name:"Operator",docgenInfo:Operator.__docgenInfo,path:"../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.js"})},"../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].use[1]!../node_modules/sass-loader/dist/cjs.js!../node_modules/sass-resources-loader/lib/loader.js??ruleSet[1].rules[10].use[3]!../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.module.scss":function(module,__webpack_exports__,__webpack_require__){var _css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0__),_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".r58fNxDfcLwVDC\\+bB1aHXg\\=\\={display:flex;align-items:center;justify-content:space-between;background-color:#fff;padding:0 1rem;border-top:1px solid #ccc}.r58fNxDfcLwVDC\\+bB1aHXg\\=\\= img{max-width:6.5rem}.r58fNxDfcLwVDC\\+bB1aHXg\\=\\= h3{font-size:1.6rem}","",{version:3,sources:["webpack://./../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.module.scss","webpack://./../node_modules/gatsby-core-theme/src/styles/utils/_mixins.scss"],names:[],mappings:"AAcA,6BCbE,YAAA,CACA,kBDaoB,CCZpB,6BDY4B,CAC5B,qBAAA,CACA,cAAA,CACA,yBAAA,CACA,iCACE,gBAAA,CAEF,gCACE,gBAAA",sourcesContent:["// Global styles extended in each theme\n\n// Utils\n@import '../../../../styles/utils/variables/typography';\n@import '../../../../styles/utils/variables/layout';\n@import '../../../../styles/utils/variables/stack-order';\n@import '../../../../styles/utils/media-queries';\n@import '../../../../styles/utils/icons';\n@import '../../../../styles/utils/tooltip';\n@import '../../../../styles/utils/loader';\n@import '../../../../styles/utils/mixins';\n@import '../../../../styles/utils/scrollbar';\n@import '../../../../styles/utils/animations';\n\n.row {\n @include flex-align(center, space-between);\n background-color: white;\n padding: 0 1rem;\n border-top: 1px solid #ccc;\n img {\n max-width: 6.5rem;\n }\n h3 {\n font-size: 1.6rem;\n }\n}\n","@mixin flex-align($align-items, $justify-content) {\n display: flex;\n align-items: $align-items;\n justify-content: $justify-content;\n}\n\n@mixin flex-direction($flex-direction) {\n display: flex;\n flex-direction: $flex-direction;\n}\n\n@mixin overflow($overflow-type, $overflow-value, $scrolling) {\n #{$overflow-type}: $overflow-value;\n -webkit-overflow-scrolling: $scrolling; // Autoprefixer doesn't add\n}\n\n@mixin text-background($bgcolor, $text-color) {\n background: $bgcolor;\n border-radius: 100px;\n color: $text-color;\n font-weight: 700;\n @include flex-align(center, center);\n padding: 0 2rem;\n}\n\n@mixin link-color($color) {\n color: $color;\n\n &:hover {\n color: $color;\n }\n}\n\n// Using em because I want images in content to inherit size based on parent element (not root)\n@mixin content-img-float($direction) {\n float: $direction;\n @if $direction == right {\n margin: 0 0 2.4rem 5.6rem;\n }\n @else if $direction == left {\n margin: 0 5.6rem 2.4rem 0;\n }\n @else {\n margin: 0 1em 1em 0;\n }\n}\n\n@mixin content-img-align($direction: center, $spacing: 1em) {\n display: block;\n @if $direction == right {\n margin: $spacing 0 $spacing auto;\n } @else if $direction == left {\n margin: $spacing auto $spacing 0;\n } @else {\n margin: $spacing auto;\n }\n}\n\n@mixin section-arrow-down($color, $width, $height) {\n position: relative;\n &:after {\n top: 100%;\n left: 50%;\n border: solid transparent;\n content: '';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n border-color: rgba(0, 0, 0, 0);\n border-top: $height solid $color;\n border-right: calc($width / 2) solid transparent;\n border-left: calc($width / 2) solid transparent;\n margin-left: - calc($width / 2);\n }\n}\n\n@mixin gradientBtn($color1, $color2, $color3) {\n background: linear-gradient(to bottom, $color1 0, $color2 14%, $color3 61%);\n &:hover {\n background: linear-gradient(to bottom, $color1 0, $color2 14%, $color3 61%);\n }\n}\n\n@mixin sportBtn($color1, $color2) {\n background: linear-gradient(to bottom, $color1 0, $color2 100%);\n &:hover {\n background: linear-gradient(to bottom, $color2 0, $color1 100%);\n }\n}\n\n@mixin star($border-color: #ffb400, $fill-color: #ffb400, $width: 16px, $line-height: 2rem) {\n line-height: $line-height;\n width: $width;\n font-weight: normal;\n display: inline-block;\n color: $fill-color;\n font-size: 15px;\n position: relative;\n text-shadow: -1px 0 $border-color, 0 1px $border-color, 1px 0 $border-color, 0 -1px $border-color;\n\n &:last-child {\n margin-right: 0;\n }\n &:before {\n content: '\\2605';\n }\n}\n\n@mixin half-star($border-color: #ffb400, $half-empty-color: #ffb400, $half-full-color: white) {\n line-height: 2rem;\n width: 16px;\n font-weight: normal;\n display: inline-block;\n color: $half-full-color;\n font-size: 15px;\n position: relative;\n &:before {\n content: '\\2605';\n }\n text-shadow: -1px 0 $border-color, 0 1px $border-color, 1px 0 $border-color, 0 -1px $border-color;\n &:after {\n content: '\\2605';\n color: $half-empty-color;\n position: absolute;\n width: 7px;\n overflow: hidden;\n bottom: 0;\n left: 0;\n }\n}\n\n\n@mixin border-gradient($color-1, $color-2, $bgcolor, $radius: .8rem) {\n background: $bgcolor;\n &:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border-radius: $radius;\n border: 2px solid transparent;\n background: $color-1, $color-2 border-box;\n -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n -webkit-mask-composite: destination-out;\n mask-composite: exclude;\n }\n}\n\n@mixin buttonsColor($color1, $color2, $color3, $textColor: 'white') {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n background-color: $color1;\n color: $textColor;\n padding: 0.9rem 3rem;\n font-weight: 700;\n font-size: 1.8rem;\n border-radius: var(--border-radius);\n\n >svg {\n flex: none;\n margin-left: .8rem;\n }\n\n &:hover {\n background-color: $color2;\n color: $textColor;\n }\n\n &:active {\n background-color: $color3;\n color: $textColor;\n }\n}"],sourceRoot:""}]),___CSS_LOADER_EXPORT___.locals={row:"r58fNxDfcLwVDC+bB1aHXg=="},__webpack_exports__.Z=___CSS_LOADER_EXPORT___}}]);
1
+ "use strict";(self.webpackChunkgatsby_matrix_theme=self.webpackChunkgatsby_matrix_theme||[]).push([[238],{"../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return operator}});var react=__webpack_require__("../node_modules/react/index.js"),prop_types=__webpack_require__("../node_modules/gatsby-core-theme/node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),lazy_image=__webpack_require__("../node_modules/gatsby-core-theme/src/hooks/lazy-image/index.js"),getters=__webpack_require__("../node_modules/gatsby-core-theme/src/helpers/getters.mjs"),atoms_button=__webpack_require__("../node_modules/gatsby-core-theme/src/components/atoms/button/index.js"),injectStylesIntoStyleTag=__webpack_require__("../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),operator_module=__webpack_require__("../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].use[1]!../node_modules/sass-loader/dist/cjs.js!../node_modules/sass-resources-loader/lib/loader.js??ruleSet[1].rules[10].use[3]!../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.module.scss"),options={insert:"head",singleton:!1},autocomplete_operator_module=(injectStylesIntoStyleTag_default()(operator_module.Z,options),operator_module.Z.locals||{}),Operator=function Operator(_ref){var _relation$standardise,_ref$item=_ref.item,item=void 0===_ref$item?{}:_ref$item,relation=item.relation,img=(null==relation||null===(_relation$standardise=relation.standardised_logo_url_object)||void 0===_relation$standardise?void 0:_relation$standardise.filename)||relation.logo_url;return react.createElement("div",{className:autocomplete_operator_module.row||""},react.createElement(lazy_image.Z,{width:56,height:56,src:(0,getters.S7)(img,56,56),alt:item.title}),react.createElement("h3",null,item.title),react.createElement(atoms_button.Z,{to:"/#",primaryColor:!0,isInternalLink:!1,gtmClass:"operator-gtm btn-cta"}))};Operator.displayName="Operator",Operator.propTypes={item:prop_types_default().shape({title:prop_types_default().string,relation:prop_types_default().shape({logo_url:prop_types_default().string})}).isRequired},Operator.__docgenInfo={description:"",methods:[],displayName:"Operator",props:{item:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{title:{name:"string",required:!1},relation:{name:"shape",value:{logo_url:{name:"string",required:!1}},required:!1}}},required:!1}}};var operator=Operator;"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.js"]={name:"Operator",docgenInfo:Operator.__docgenInfo,path:"../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.js"})},"../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].use[1]!../node_modules/sass-loader/dist/cjs.js!../node_modules/sass-resources-loader/lib/loader.js??ruleSet[1].rules[10].use[3]!../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.module.scss":function(module,__webpack_exports__,__webpack_require__){var _css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0__),_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".r58fNxDfcLwVDC\\+bB1aHXg\\=\\={display:flex;align-items:center;justify-content:space-between;background-color:#fff;padding:0 1rem;border-top:1px solid #ccc}.r58fNxDfcLwVDC\\+bB1aHXg\\=\\= img{max-width:6.5rem}.r58fNxDfcLwVDC\\+bB1aHXg\\=\\= h3{font-size:1.6rem}","",{version:3,sources:["webpack://./../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/operator.module.scss","webpack://./../node_modules/gatsby-core-theme/src/styles/utils/_mixins.scss"],names:[],mappings:"AAcA,6BCbE,YAAA,CACA,kBDaoB,CCZpB,6BDY4B,CAC5B,qBAAA,CACA,cAAA,CACA,yBAAA,CACA,iCACE,gBAAA,CAEF,gCACE,gBAAA",sourcesContent:["// Global styles extended in each theme\n\n// Utils\n@import '../../../../styles/utils/variables/typography';\n@import '../../../../styles/utils/variables/layout';\n@import '../../../../styles/utils/variables/stack-order';\n@import '../../../../styles/utils/media-queries';\n@import '../../../../styles/utils/icons';\n@import '../../../../styles/utils/tooltip';\n@import '../../../../styles/utils/loader';\n@import '../../../../styles/utils/mixins';\n@import '../../../../styles/utils/scrollbar';\n@import '../../../../styles/utils/animations';\n\n.row {\n @include flex-align(center, space-between);\n background-color: white;\n padding: 0 1rem;\n border-top: 1px solid #ccc;\n img {\n max-width: 6.5rem;\n }\n h3 {\n font-size: 1.6rem;\n }\n}\n","@mixin flex-align($align-items, $justify-content) {\n display: flex;\n align-items: $align-items;\n justify-content: $justify-content;\n}\n\n@mixin flex-direction($flex-direction) {\n display: flex;\n flex-direction: $flex-direction;\n}\n\n@mixin overflow($overflow-type, $overflow-value, $scrolling) {\n #{$overflow-type}: $overflow-value;\n -webkit-overflow-scrolling: $scrolling; // Autoprefixer doesn't add\n}\n\n@mixin text-background($bgcolor, $text-color) {\n background: $bgcolor;\n border-radius: 100px;\n color: $text-color;\n font-weight: 700;\n @include flex-align(center, center);\n padding: 0 2rem;\n}\n\n@mixin link-color($color) {\n color: $color;\n\n &:hover {\n color: $color;\n }\n}\n\n// Using em because I want images in content to inherit size based on parent element (not root)\n@mixin content-img-float($direction) {\n float: $direction;\n @if $direction == right {\n margin: 0 0 2.4rem 4.8rem;\n }\n @else if $direction == left {\n margin: 0 4.8rem 2.4rem 0;\n }\n @else {\n margin: 0 1em 1em 0;\n }\n}\n\n@mixin content-img-align($direction: center, $spacing: 1em) {\n display: block;\n @if $direction == right {\n margin: $spacing 0 $spacing auto;\n } @else if $direction == left {\n margin: $spacing auto $spacing 0;\n } @else {\n margin: $spacing auto;\n }\n}\n\n@mixin section-arrow-down($color, $width, $height) {\n position: relative;\n &:after {\n top: 100%;\n left: 50%;\n border: solid transparent;\n content: '';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n border-color: rgba(0, 0, 0, 0);\n border-top: $height solid $color;\n border-right: calc($width / 2) solid transparent;\n border-left: calc($width / 2) solid transparent;\n margin-left: - calc($width / 2);\n }\n}\n\n@mixin gradientBtn($color1, $color2, $color3) {\n background: linear-gradient(to bottom, $color1 0, $color2 14%, $color3 61%);\n &:hover {\n background: linear-gradient(to bottom, $color1 0, $color2 14%, $color3 61%);\n }\n}\n\n@mixin sportBtn($color1, $color2) {\n background: linear-gradient(to bottom, $color1 0, $color2 100%);\n &:hover {\n background: linear-gradient(to bottom, $color2 0, $color1 100%);\n }\n}\n\n@mixin star($border-color: #ffb400, $fill-color: #ffb400, $width: 16px, $line-height: 2rem) {\n line-height: $line-height;\n width: $width;\n font-weight: normal;\n display: inline-block;\n color: $fill-color;\n font-size: 15px;\n position: relative;\n text-shadow: -1px 0 $border-color, 0 1px $border-color, 1px 0 $border-color, 0 -1px $border-color;\n\n &:last-child {\n margin-right: 0;\n }\n &:before {\n content: '\\2605';\n }\n}\n\n@mixin half-star($border-color: #ffb400, $half-empty-color: #ffb400, $half-full-color: white) {\n line-height: 2rem;\n width: 16px;\n font-weight: normal;\n display: inline-block;\n color: $half-full-color;\n font-size: 15px;\n position: relative;\n &:before {\n content: '\\2605';\n }\n text-shadow: -1px 0 $border-color, 0 1px $border-color, 1px 0 $border-color, 0 -1px $border-color;\n &:after {\n content: '\\2605';\n color: $half-empty-color;\n position: absolute;\n width: 7px;\n overflow: hidden;\n bottom: 0;\n left: 0;\n }\n}\n\n\n@mixin border-gradient($color-1, $color-2, $bgcolor, $radius: .8rem) {\n background: $bgcolor;\n &:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border-radius: $radius;\n border: 2px solid transparent;\n background: $color-1, $color-2 border-box;\n -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n -webkit-mask-composite: destination-out;\n mask-composite: exclude;\n }\n}\n\n@mixin buttonsColor($color1, $color2, $color3, $textColor: 'white') {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n background-color: $color1;\n color: $textColor;\n padding: 0.9rem 3rem;\n font-weight: 700;\n font-size: 1.8rem;\n border-radius: var(--border-radius);\n\n >svg {\n flex: none;\n margin-left: .8rem;\n }\n\n &:hover {\n background-color: $color2;\n color: $textColor;\n }\n\n &:active {\n background-color: $color3;\n color: $textColor;\n }\n}"],sourceRoot:""}]),___CSS_LOADER_EXPORT___.locals={row:"r58fNxDfcLwVDC+bB1aHXg=="},__webpack_exports__.Z=___CSS_LOADER_EXPORT___}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkgatsby_matrix_theme=self.webpackChunkgatsby_matrix_theme||[]).push([[343],{"../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return game}});var react=__webpack_require__("../node_modules/react/index.js"),prop_types=__webpack_require__("../node_modules/gatsby-core-theme/node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),injectStylesIntoStyleTag=__webpack_require__("../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),game_module=__webpack_require__("../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].use[1]!../node_modules/sass-loader/dist/cjs.js!../node_modules/sass-resources-loader/lib/loader.js??ruleSet[1].rules[10].use[3]!../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.module.scss"),options={insert:"head",singleton:!1},autocomplete_game_module=(injectStylesIntoStyleTag_default()(game_module.Z,options),game_module.Z.locals||{}),Game=function Game(_ref){var _ref$item=_ref.item,item=void 0===_ref$item?{}:_ref$item;return react.createElement("div",{className:autocomplete_game_module.row||""},react.createElement("h3",null,item.title))};Game.displayName="Game",Game.propTypes={item:prop_types_default().shape({title:prop_types_default().string}).isRequired},Game.__docgenInfo={description:"",methods:[],displayName:"Game",props:{item:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{title:{name:"string",required:!1}}},required:!1}}};var game=Game;"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.js"]={name:"Game",docgenInfo:Game.__docgenInfo,path:"../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.js"})},"../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].use[1]!../node_modules/sass-loader/dist/cjs.js!../node_modules/sass-resources-loader/lib/loader.js??ruleSet[1].rules[10].use[3]!../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.module.scss":function(module,__webpack_exports__,__webpack_require__){var _css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0__),_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".kFHTXGonUmeUo4L5waNvpw\\=\\={display:flex;align-items:center;justify-content:space-between;background-color:#fff;padding:0 1rem;border-top:1px solid #ccc}.kFHTXGonUmeUo4L5waNvpw\\=\\= h3{font-size:1.6rem}","",{version:3,sources:["webpack://./../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.module.scss","webpack://./../node_modules/gatsby-core-theme/src/styles/utils/_mixins.scss"],names:[],mappings:"AAcA,4BCbE,YAAA,CACA,kBDaoB,CCZpB,6BDY4B,CAC5B,qBAAA,CACA,cAAA,CACA,yBAAA,CACA,+BACE,gBAAA",sourcesContent:["// Global styles extended in each theme\n\n// Utils\n@import '../../../../styles/utils/variables/typography';\n@import '../../../../styles/utils/variables/layout';\n@import '../../../../styles/utils/variables/stack-order';\n@import '../../../../styles/utils/media-queries';\n@import '../../../../styles/utils/icons';\n@import '../../../../styles/utils/tooltip';\n@import '../../../../styles/utils/loader';\n@import '../../../../styles/utils/mixins';\n@import '../../../../styles/utils/scrollbar';\n@import '../../../../styles/utils/animations';\n\n.row {\n @include flex-align(center, space-between);\n background-color: white;\n padding: 0 1rem;\n border-top: 1px solid #ccc;\n h3 {\n font-size: 1.6rem;\n }\n}\n","@mixin flex-align($align-items, $justify-content) {\n display: flex;\n align-items: $align-items;\n justify-content: $justify-content;\n}\n\n@mixin flex-direction($flex-direction) {\n display: flex;\n flex-direction: $flex-direction;\n}\n\n@mixin overflow($overflow-type, $overflow-value, $scrolling) {\n #{$overflow-type}: $overflow-value;\n -webkit-overflow-scrolling: $scrolling; // Autoprefixer doesn't add\n}\n\n@mixin text-background($bgcolor, $text-color) {\n background: $bgcolor;\n border-radius: 100px;\n color: $text-color;\n font-weight: 700;\n @include flex-align(center, center);\n padding: 0 2rem;\n}\n\n@mixin link-color($color) {\n color: $color;\n\n &:hover {\n color: $color;\n }\n}\n\n// Using em because I want images in content to inherit size based on parent element (not root)\n@mixin content-img-float($direction) {\n float: $direction;\n @if $direction == right {\n margin: 0 0 2.4rem 5.6rem;\n }\n @else if $direction == left {\n margin: 0 5.6rem 2.4rem 0;\n }\n @else {\n margin: 0 1em 1em 0;\n }\n}\n\n@mixin content-img-align($direction: center, $spacing: 1em) {\n display: block;\n @if $direction == right {\n margin: $spacing 0 $spacing auto;\n } @else if $direction == left {\n margin: $spacing auto $spacing 0;\n } @else {\n margin: $spacing auto;\n }\n}\n\n@mixin section-arrow-down($color, $width, $height) {\n position: relative;\n &:after {\n top: 100%;\n left: 50%;\n border: solid transparent;\n content: '';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n border-color: rgba(0, 0, 0, 0);\n border-top: $height solid $color;\n border-right: calc($width / 2) solid transparent;\n border-left: calc($width / 2) solid transparent;\n margin-left: - calc($width / 2);\n }\n}\n\n@mixin gradientBtn($color1, $color2, $color3) {\n background: linear-gradient(to bottom, $color1 0, $color2 14%, $color3 61%);\n &:hover {\n background: linear-gradient(to bottom, $color1 0, $color2 14%, $color3 61%);\n }\n}\n\n@mixin sportBtn($color1, $color2) {\n background: linear-gradient(to bottom, $color1 0, $color2 100%);\n &:hover {\n background: linear-gradient(to bottom, $color2 0, $color1 100%);\n }\n}\n\n@mixin star($border-color: #ffb400, $fill-color: #ffb400, $width: 16px, $line-height: 2rem) {\n line-height: $line-height;\n width: $width;\n font-weight: normal;\n display: inline-block;\n color: $fill-color;\n font-size: 15px;\n position: relative;\n text-shadow: -1px 0 $border-color, 0 1px $border-color, 1px 0 $border-color, 0 -1px $border-color;\n\n &:last-child {\n margin-right: 0;\n }\n &:before {\n content: '\\2605';\n }\n}\n\n@mixin half-star($border-color: #ffb400, $half-empty-color: #ffb400, $half-full-color: white) {\n line-height: 2rem;\n width: 16px;\n font-weight: normal;\n display: inline-block;\n color: $half-full-color;\n font-size: 15px;\n position: relative;\n &:before {\n content: '\\2605';\n }\n text-shadow: -1px 0 $border-color, 0 1px $border-color, 1px 0 $border-color, 0 -1px $border-color;\n &:after {\n content: '\\2605';\n color: $half-empty-color;\n position: absolute;\n width: 7px;\n overflow: hidden;\n bottom: 0;\n left: 0;\n }\n}\n\n\n@mixin border-gradient($color-1, $color-2, $bgcolor, $radius: .8rem) {\n background: $bgcolor;\n &:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border-radius: $radius;\n border: 2px solid transparent;\n background: $color-1, $color-2 border-box;\n -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n -webkit-mask-composite: destination-out;\n mask-composite: exclude;\n }\n}\n\n@mixin buttonsColor($color1, $color2, $color3, $textColor: 'white') {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n background-color: $color1;\n color: $textColor;\n padding: 0.9rem 3rem;\n font-weight: 700;\n font-size: 1.8rem;\n border-radius: var(--border-radius);\n\n >svg {\n flex: none;\n margin-left: .8rem;\n }\n\n &:hover {\n background-color: $color2;\n color: $textColor;\n }\n\n &:active {\n background-color: $color3;\n color: $textColor;\n }\n}"],sourceRoot:""}]),___CSS_LOADER_EXPORT___.locals={row:"kFHTXGonUmeUo4L5waNvpw=="},__webpack_exports__.Z=___CSS_LOADER_EXPORT___}}]);
1
+ "use strict";(self.webpackChunkgatsby_matrix_theme=self.webpackChunkgatsby_matrix_theme||[]).push([[343],{"../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return game}});var react=__webpack_require__("../node_modules/react/index.js"),prop_types=__webpack_require__("../node_modules/gatsby-core-theme/node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),injectStylesIntoStyleTag=__webpack_require__("../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),game_module=__webpack_require__("../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].use[1]!../node_modules/sass-loader/dist/cjs.js!../node_modules/sass-resources-loader/lib/loader.js??ruleSet[1].rules[10].use[3]!../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.module.scss"),options={insert:"head",singleton:!1},autocomplete_game_module=(injectStylesIntoStyleTag_default()(game_module.Z,options),game_module.Z.locals||{}),Game=function Game(_ref){var _ref$item=_ref.item,item=void 0===_ref$item?{}:_ref$item;return react.createElement("div",{className:autocomplete_game_module.row||""},react.createElement("h3",null,item.title))};Game.displayName="Game",Game.propTypes={item:prop_types_default().shape({title:prop_types_default().string}).isRequired},Game.__docgenInfo={description:"",methods:[],displayName:"Game",props:{item:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{title:{name:"string",required:!1}}},required:!1}}};var game=Game;"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.js"]={name:"Game",docgenInfo:Game.__docgenInfo,path:"../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.js"})},"../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[10].use[1]!../node_modules/sass-loader/dist/cjs.js!../node_modules/sass-resources-loader/lib/loader.js??ruleSet[1].rules[10].use[3]!../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.module.scss":function(module,__webpack_exports__,__webpack_require__){var _css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../node_modules/css-loader/dist/runtime/cssWithMappingToString.js"),_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0__),_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".kFHTXGonUmeUo4L5waNvpw\\=\\={display:flex;align-items:center;justify-content:space-between;background-color:#fff;padding:0 1rem;border-top:1px solid #ccc}.kFHTXGonUmeUo4L5waNvpw\\=\\= h3{font-size:1.6rem}","",{version:3,sources:["webpack://./../node_modules/gatsby-core-theme/src/components/atoms/search/autocomplete/game.module.scss","webpack://./../node_modules/gatsby-core-theme/src/styles/utils/_mixins.scss"],names:[],mappings:"AAcA,4BCbE,YAAA,CACA,kBDaoB,CCZpB,6BDY4B,CAC5B,qBAAA,CACA,cAAA,CACA,yBAAA,CACA,+BACE,gBAAA",sourcesContent:["// Global styles extended in each theme\n\n// Utils\n@import '../../../../styles/utils/variables/typography';\n@import '../../../../styles/utils/variables/layout';\n@import '../../../../styles/utils/variables/stack-order';\n@import '../../../../styles/utils/media-queries';\n@import '../../../../styles/utils/icons';\n@import '../../../../styles/utils/tooltip';\n@import '../../../../styles/utils/loader';\n@import '../../../../styles/utils/mixins';\n@import '../../../../styles/utils/scrollbar';\n@import '../../../../styles/utils/animations';\n\n.row {\n @include flex-align(center, space-between);\n background-color: white;\n padding: 0 1rem;\n border-top: 1px solid #ccc;\n h3 {\n font-size: 1.6rem;\n }\n}\n","@mixin flex-align($align-items, $justify-content) {\n display: flex;\n align-items: $align-items;\n justify-content: $justify-content;\n}\n\n@mixin flex-direction($flex-direction) {\n display: flex;\n flex-direction: $flex-direction;\n}\n\n@mixin overflow($overflow-type, $overflow-value, $scrolling) {\n #{$overflow-type}: $overflow-value;\n -webkit-overflow-scrolling: $scrolling; // Autoprefixer doesn't add\n}\n\n@mixin text-background($bgcolor, $text-color) {\n background: $bgcolor;\n border-radius: 100px;\n color: $text-color;\n font-weight: 700;\n @include flex-align(center, center);\n padding: 0 2rem;\n}\n\n@mixin link-color($color) {\n color: $color;\n\n &:hover {\n color: $color;\n }\n}\n\n// Using em because I want images in content to inherit size based on parent element (not root)\n@mixin content-img-float($direction) {\n float: $direction;\n @if $direction == right {\n margin: 0 0 2.4rem 4.8rem;\n }\n @else if $direction == left {\n margin: 0 4.8rem 2.4rem 0;\n }\n @else {\n margin: 0 1em 1em 0;\n }\n}\n\n@mixin content-img-align($direction: center, $spacing: 1em) {\n display: block;\n @if $direction == right {\n margin: $spacing 0 $spacing auto;\n } @else if $direction == left {\n margin: $spacing auto $spacing 0;\n } @else {\n margin: $spacing auto;\n }\n}\n\n@mixin section-arrow-down($color, $width, $height) {\n position: relative;\n &:after {\n top: 100%;\n left: 50%;\n border: solid transparent;\n content: '';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n border-color: rgba(0, 0, 0, 0);\n border-top: $height solid $color;\n border-right: calc($width / 2) solid transparent;\n border-left: calc($width / 2) solid transparent;\n margin-left: - calc($width / 2);\n }\n}\n\n@mixin gradientBtn($color1, $color2, $color3) {\n background: linear-gradient(to bottom, $color1 0, $color2 14%, $color3 61%);\n &:hover {\n background: linear-gradient(to bottom, $color1 0, $color2 14%, $color3 61%);\n }\n}\n\n@mixin sportBtn($color1, $color2) {\n background: linear-gradient(to bottom, $color1 0, $color2 100%);\n &:hover {\n background: linear-gradient(to bottom, $color2 0, $color1 100%);\n }\n}\n\n@mixin star($border-color: #ffb400, $fill-color: #ffb400, $width: 16px, $line-height: 2rem) {\n line-height: $line-height;\n width: $width;\n font-weight: normal;\n display: inline-block;\n color: $fill-color;\n font-size: 15px;\n position: relative;\n text-shadow: -1px 0 $border-color, 0 1px $border-color, 1px 0 $border-color, 0 -1px $border-color;\n\n &:last-child {\n margin-right: 0;\n }\n &:before {\n content: '\\2605';\n }\n}\n\n@mixin half-star($border-color: #ffb400, $half-empty-color: #ffb400, $half-full-color: white) {\n line-height: 2rem;\n width: 16px;\n font-weight: normal;\n display: inline-block;\n color: $half-full-color;\n font-size: 15px;\n position: relative;\n &:before {\n content: '\\2605';\n }\n text-shadow: -1px 0 $border-color, 0 1px $border-color, 1px 0 $border-color, 0 -1px $border-color;\n &:after {\n content: '\\2605';\n color: $half-empty-color;\n position: absolute;\n width: 7px;\n overflow: hidden;\n bottom: 0;\n left: 0;\n }\n}\n\n\n@mixin border-gradient($color-1, $color-2, $bgcolor, $radius: .8rem) {\n background: $bgcolor;\n &:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border-radius: $radius;\n border: 2px solid transparent;\n background: $color-1, $color-2 border-box;\n -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n -webkit-mask-composite: destination-out;\n mask-composite: exclude;\n }\n}\n\n@mixin buttonsColor($color1, $color2, $color3, $textColor: 'white') {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n background-color: $color1;\n color: $textColor;\n padding: 0.9rem 3rem;\n font-weight: 700;\n font-size: 1.8rem;\n border-radius: var(--border-radius);\n\n >svg {\n flex: none;\n margin-left: .8rem;\n }\n\n &:hover {\n background-color: $color2;\n color: $textColor;\n }\n\n &:active {\n background-color: $color3;\n color: $textColor;\n }\n}"],sourceRoot:""}]),___CSS_LOADER_EXPORT___.locals={row:"kFHTXGonUmeUo4L5waNvpw=="},__webpack_exports__.Z=___CSS_LOADER_EXPORT___}}]);