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EACxC,MAAM,EAACU,EAAK,EAACC,IAAWC,EAAAA,EAAAA,WAAS,GACjC,OACEzB,EAAAA,cAAC0B,EAAAA,EAAM,KACL1B,EAAAA,cAAC2B,EAAAA,EAAG,CAACC,MAAM,UAAUC,KAAK,YAAYC,MAAM,2CAC5C9B,EAAAA,cAAA,QAAMiB,UAAU,SACdjB,EAAAA,cAAA,OAAKiB,UAAU,iEACbjB,EAAAA,cAAA,OAAKiB,UAAU,0CACZK,EAASS,KAAKC,GAEXhC,EAAAA,cAACkB,EAAAA,KAAI,CACHe,IAAKD,EAAQE,GACbf,GAAK,IAAGa,EAAQJ,MACbO,cACAC,WAAW,IAAK,IAChBC,QAAQ,YAAa,KACrBD,WAAW,KAAM,KACjBA,WAAW,KAAM,KACjBA,WAAW,KAAM,OACpBnB,UAAU,8EAEVjB,EAAAA,cAAA,WACEA,EAAAA,cAAA,OAAKiB,UAAU,0FACbjB,EAAAA,cAACsC,EAAAA,EAAW,CACVC,IAAI,UACJtB,UAAU,2CACVa,MAAOE,EAAQF,MAAMU,oBAI3BxC,EAAAA,cAAA,MAAIiB,UAAU,0EACXe,EAAQS,MAEXzC,EAAAA,cAAA,MAAIiB,UAAU,iFACXe,EAAQJ,OAEX5B,EAAAA,cAAA,KAAGiB,UAAU,gFACT,GAAEe,EAAQU,YAAYA,YAAYC,MAAM,EAAG,eAMvD3C,EAAAA,cAAC4C,EAAK,CAAC9B,YAAaA,MAGjB,ECjEb,MA9BiBD,IAA4B,IAA3B,KAAEgC,EAAI,YAAE/B,GAAaD,EACrC,MAAMS,EAAWuB,EAAKC,qBAAqBC,MAC3C,OAAO/C,EAAAA,cAACgD,EAAO,CAAC1B,SAAUA,EAAUR,YAAeA,GAAe,C","sources":["webpack://gatsby-starter-shopify/./src/icons/filter.jsx","webpack://gatsby-starter-shopify/./node_modules/@heroicons/react/solid/esm/ArrowNarrowLeftIcon.js","webpack://gatsby-starter-shopify/./node_modules/@heroicons/react/solid/esm/ArrowNarrowRightIcon.js","webpack://gatsby-starter-shopify/./src/content/Pager.js","webpack://gatsby-starter-shopify/./src/templates/Archive.js","webpack://gatsby-starter-shopify/./src/templates/articles.js"],"sourcesContent":["import * as React from \"react\"\n\nfunction FilterIcon(props) {\n return (\n \n {\"Filter\"}\n \n \n )\n}\n\nexport default FilterIcon\n","import * as React from \"react\";\n\nfunction ArrowNarrowLeftIcon(props, svgRef) {\n return /*#__PURE__*/React.createElement(\"svg\", Object.assign({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 20 20\",\n fill: \"currentColor\",\n \"aria-hidden\": \"true\",\n ref: svgRef\n }, props), /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z\",\n clipRule: \"evenodd\"\n }));\n}\n\nconst ForwardRef = React.forwardRef(ArrowNarrowLeftIcon);\nexport default ForwardRef;","import * as React from \"react\";\n\nfunction ArrowNarrowRightIcon(props, svgRef) {\n return /*#__PURE__*/React.createElement(\"svg\", Object.assign({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 20 20\",\n fill: \"currentColor\",\n \"aria-hidden\": \"true\",\n ref: svgRef\n }, props), /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z\",\n clipRule: \"evenodd\"\n }));\n}\n\nconst ForwardRef = React.forwardRef(ArrowNarrowRightIcon);\nexport default ForwardRef;","import React from \"react\";\nimport { Link } from \"gatsby\";\nimport {\n ArrowNarrowLeftIcon,\n ArrowNarrowRightIcon,\n} from \"@heroicons/react/solid\";\n\nconst Pager = ({ pageContext }) => {\n const { previousPagePath, nextPagePath } = pageContext;\n\n return (\n \n );\n};\n\nexport default Pager;\n","import React from \"react\"\nimport { Link } from \"gatsby\"\nimport { GatsbyImage } from \"gatsby-plugin-image\";\nimport Layout from \"../content/Layout\"\nimport SEO from \"../content/Seo\"\nimport { Fragment, useState } from \"react\"\nimport {\n Dialog,\n Disclosure,\n Menu,\n Popover,\n Transition,\n} from \"@headlessui/react\"\nimport { XIcon } from \"@heroicons/react/outline\"\nimport { ChevronDownIcon } from \"@heroicons/react/solid\"\nimport FilterIcon from \"../icons/filter\"\nimport Pager from \"../content/Pager\";\n\nconst sortOptions = [\n { name: \"Featured\", value: \"FEATURED\" },\n { name: \"Date\", value: \"PRICE\" },\n { name: \"Name\", value: \"\" },\n { name: \"New\", value: \"CREATED_AT\" },\n { name: \"Trending\", value: \"BEST_SELLING\" },\n]\nconst defaultFilters = [\n {\n id: \"category\",\n name: \"Category\",\n options: [\n { value: \"crystals\", label: \"Crystals\" },\n { value: \"jewellery\", label: \"Jewellery\" },\n { value: \"aromatherapy\", label: \"Aromatherapy\" },\n { value: \"books\", label: \"Books\" },\n { value: \"tarot\", label: \"Tarot & Oracle\" },\n { value: \"accessories\", label: \"Accessories\" },\n ],\n },\n {\n id: \"tags\",\n name: \"Tags\",\n options: [\n { value: \"clothing-company\", label: \"Clothing Company\" },\n { value: \"fashion-inc\", label: \"Fashion Inc.\" },\n { value: \"shoes-n-more\", label: \"Shoes 'n More\" },\n ],\n },\n]\n\nfunction classNames(...classes) {\n return classes.filter(Boolean).join(\" \")\n}\n\nconst Archive = ({ articles, pageContext }) => {\n const [open, setOpen] = useState(false)\n return (\n \n \n
\n
\n
\n {articles.map((article) => {\n return (\n \n
\n
\n \n
\n
\n

\n {article.date}\n

\n

\n {article.title}\n

\n

\n {`${article.description.description.slice(0, 120)}...`}\n

\n \n )\n })}\n
\n \n
\n
\n
\n )\n}\n\nexport default Archive\n","import React from \"react\";\nimport Archive from \"./Archive\";\nimport { graphql } from \"gatsby\";\n\nconst Articles = ({ data, pageContext }) => {\n const articles = data.allContentfulArticle.nodes;\n return ;\n};\n\nexport const query = graphql`\n query ($skip: Int!, $limit: Int!) {\n allContentfulArticle(sort: { fields: date, order: DESC } skip: $skip limit: $limit) {\n nodes {\n id\n title\n date(formatString: \"DD MMMM YYYY\")\n author\n category {\n name\n }\n image {\n gatsbyImageData(layout: CONSTRAINED, placeholder: DOMINANT_COLOR)\n file {\n url\n }\n }\n description {\n description\n }\n }\n }\n }\n`;\n\nexport default Articles;"],"names":["props","React","Object","assign","width","height","viewBox","fill","xmlns","d","svgRef","ref","fillRule","clipRule","_ref","pageContext","previousPagePath","nextPagePath","className","Link","to","ArrowNarrowLeftIcon","ArrowNarrowRightIcon","articles","open","setOpen","useState","Layout","SEO","title","slug","image","map","article","key","id","toLowerCase","replaceAll","replace","GatsbyImage","alt","gatsbyImageData","date","description","slice","Pager","data","allContentfulArticle","nodes","Archive"],"sourceRoot":""}