{"version":3,"sources":["webpack:///./src/helpers/media.ts","webpack:///./src/stories/Components/SectionWrapper/SectionWrapper.tsx","webpack:///./src/stories/Components/Misc/Dropdown/Dropdown.styles.ts","webpack:///./src/helpers/grid.ts","webpack:///./src/img/icons/nav-arrow-down.svg","webpack:///./src/stories/Components/SectionWrapper/SectionWrapper.styles.ts","webpack:///./src/hooks/useHoverIntent.ts","webpack:///./src/stories/Components/Misc/Dropdown/Dropdown.tsx","webpack:///./src/helpers/brand.ts","webpack:///./src/helpers/fluid.ts","webpack:///./node_modules/hoverintent/index.js","webpack:///./src/stories/Widgets/ShowroomDirectory/ShowroomDirectory.styles.ts","webpack:///./src/stories/Widgets/ShowroomDirectory/ShowroomDirectory.tsx","webpack:///./src/helpers/fonts.ts","webpack:///./node_modules/lodash/noop.js","webpack:///./src/helpers/animate.ts"],"names":["Device","from","size","until","between","start","end","SectionWrapper","React","ref","children","layout","hideOverflow","otherProps","S","Container","Inner","displayName","DropdownStyles","styled","div","transition","svgArrow","Tablet","Select","select","fonts","brandonGrotesque","bold","brand","greenBright","SitePadding","SiteWidth","siteWide","css","TabletLarge","baseGrid","fluid","_path","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","SvgNavArrowDown","props","xmlns","viewBox","d","fill","SectionWrapperStyles","section","DEFAULT_PARAMS","handleFocus","interval","sensitivity","timeout","useHoverIntent","params","listener","current","hoverintent","onHover","noop","onBlur","options","remove","Dropdown","name","label","onChange","activeOption","isOpen","setIsOpen","FocusRing","focusRingClass","e","onClick","value","map","o","beige","beigeDark","black","green","greyLight","greyMid","greyDark","pink","white","validation","invalid","valid","textShadow","rgba","DEFAULT_MIN_VALUE","TabletSmall","DEFAULT_MAX_VALUE","ActualDesktop","min","max","minWidth","maxWidth","minRem","maxRem","minWidthRem","maxWidthRem","slope","yAxisIntersection","clampMin","round","clampVal","clampMax","num","Math","module","exports","el","onOver","onOut","x","y","pX","pY","mouseOver","focused","h","state","timer","tracker","clientX","clientY","dispatchOver","clearTimeout","removeEventListener","addEventListener","setTimeout","compare","abs","undefined","dispatchOut","delay","dispatchFocus","dispatchBlur","removeFocus","opt","focusOptionChanged","Filters","ShowroomDirectoryStyles","ResultsAmount","regular","ResultsCount","span","ResultsWrapper","MobileLarge","Desktop","Item","a","zahrah","medium","ShowroomDirectory","anchorId","filter","items","sortValue","setSortValue","sortedItems","sort","b","nameA","toLowerCase","nameB","localeCompare","id","event","preventDefault","item","hovered","setHovered","anchorRef","href","url","renderItem","thin","thinItalic","light","lightItalic","regularItalic","mediumItalic","boldItalic","blackItalic","semiBold","cubicEaseOut","shouldAnimate","innerCss","properties","duration","timing","scrollTo","disabled","document","querySelector","window","top","behavior"],"mappings":"qFAAO,IAAIA,EAeJ,SAASC,EAAKC,GACjB,MAAQ,eAAcA,OAEnB,SAASC,EAAMD,GAClB,MAAQ,eAAcA,EAAO,OAE1B,SAASE,EAAQC,EAAOC,GAC3B,MAAQ,GAAEL,EAAKI,UAAcF,EAAMG,KAtBvC,wIACA,SAAWN,GACPA,EAAOA,EAAM,YAAkB,KAAO,cACtCA,EAAOA,EAAM,OAAa,KAAO,SACjCA,EAAOA,EAAM,YAAkB,KAAO,cACtCA,EAAOA,EAAM,YAAkB,KAAO,cACtCA,EAAOA,EAAM,OAAa,KAAO,SACjCA,EAAOA,EAAM,aAAmB,KAAO,eACvCA,EAAOA,EAAM,YAAkB,MAAQ,cACvCA,EAAOA,EAAM,aAAmB,MAAQ,eACxCA,EAAOA,EAAM,QAAc,MAAQ,UACnCA,EAAOA,EAAM,aAAmB,MAAQ,eACxCA,EAAOA,EAAM,cAAoB,MAAQ,gBACzCA,EAAOA,EAAM,UAAgB,MAAQ,YAZzC,CAaGA,IAAWA,EAAS,M,gCCdvB,mBAEA,MAAMO,EAAiBC,aAAiB,CAAC,EAA+DC,KAAQ,IAAvE,SAAEC,EAAF,OAAYC,EAAS,UAArB,aAAgCC,KAAiBC,GAAsB,EAC5G,OAAQF,GACJ,IAAK,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pCC,EACfF,KAGZ,SAASG,EAAS7E,GACrB,MAAM8E,EAAWC,SAASC,cAjBO,oDAkBjCC,OAAOJ,SAAS,CACZK,IAAKlF,EACLmF,SAAWL,EAAsB,OAAX","file":"81-63ce34bca829d8b39cd1.js","sourcesContent":["export var Device;\r\n(function (Device) {\r\n Device[Device[\"MobileSmall\"] = 320] = \"MobileSmall\";\r\n Device[Device[\"Mobile\"] = 375] = \"Mobile\";\r\n Device[Device[\"MobileLarge\"] = 480] = \"MobileLarge\";\r\n Device[Device[\"TabletSmall\"] = 568] = \"TabletSmall\";\r\n Device[Device[\"Tablet\"] = 768] = \"Tablet\";\r\n Device[Device[\"TabletMedium\"] = 896] = \"TabletMedium\";\r\n Device[Device[\"TabletLarge\"] = 1024] = \"TabletLarge\";\r\n Device[Device[\"DesktopSmall\"] = 1280] = \"DesktopSmall\";\r\n Device[Device[\"Desktop\"] = 1366] = \"Desktop\";\r\n Device[Device[\"DesktopLarge\"] = 1600] = \"DesktopLarge\";\r\n Device[Device[\"ActualDesktop\"] = 1920] = \"ActualDesktop\";\r\n Device[Device[\"DesktopXL\"] = 2560] = \"DesktopXL\";\r\n})(Device || (Device = {}));\r\nexport function from(size) {\r\n return `(min-width: ${size}px)`;\r\n}\r\nexport function until(size) {\r\n return `(max-width: ${size - 1}px)`;\r\n}\r\nexport function between(start, end) {\r\n return `${from(start)} and ${until(end)}`;\r\n}\r\n","import * as React from 'react';\r\nimport S from './SectionWrapper.styles';\r\nconst SectionWrapper = React.forwardRef(({ children, layout = 'default', hideOverflow, ...otherProps }, ref) => {\r\n switch (layout) {\r\n case 'fullWidth':\r\n return (React.createElement(S.Container, { ref: ref, \"data-hide-overflow\": hideOverflow, ...otherProps }, children));\r\n case 'default':\r\n default:\r\n return (React.createElement(S.Container, { ref: ref, \"data-hide-overflow\": hideOverflow, ...otherProps },\r\n React.createElement(S.Inner, null, children)));\r\n }\r\n});\r\nSectionWrapper.displayName = 'SectionWrapper';\r\nexport default SectionWrapper;\r\n","import { transition } from '@helpers/animate';\r\nimport brand from '@helpers/brand';\r\nimport fonts from '@helpers/fonts';\r\nimport { Device, from } from '@helpers/media';\r\nimport svgArrow from '@img/icons/nav-arrow-down.svg';\r\nimport styled from 'styled-components';\r\nconst Container = styled.div `\r\n position: relative;\r\n flex: 0 0 100%;\r\n\r\n &::after {\r\n ${transition('transform')};\r\n\r\n display: block;\r\n content: url('${svgArrow}');\r\n width: 18px;\r\n height: 12px;\r\n position: absolute;\r\n right: 24px;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n pointer-events: none;\r\n }\r\n\r\n &[data-is-open='true']::after {\r\n transform: translateY(-50%) rotate(0.5turn);\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n flex: 0 0 calc(25% - var(--filterGap));\r\n }\r\n`;\r\nconst Select = styled.select `\r\n /* Ensure iOS doesn't apply default border radius */\r\n -webkit-appearance: none !important;\r\n ${fonts.brandonGrotesque.bold};\r\n height: 54px;\r\n padding: 0 48px 0 12px;\r\n font-size: 18px;\r\n border: 2px solid ${brand.greenBright};\r\n appearance: none;\r\n width: 100%;\r\n\r\n &.focus-ring {\r\n outline: auto;\r\n outline-offset: -5px;\r\n outline-width: 2px;\r\n outline-style: solid;\r\n }\r\n`;\r\nconst DropdownStyles = {\r\n Container,\r\n Select,\r\n};\r\nexport default DropdownStyles;\r\n","import { Device, from } from '@helpers/media';\r\nimport { css } from 'styled-components';\r\nimport { fluid } from './fluid';\r\nexport const SitePadding = 18;\r\nexport const SiteWidth = 1240;\r\nexport const SiteWidthBreakpoint = SiteWidth + SitePadding * 2;\r\nexport const siteWide = css `\r\n --sitePadding: ${SitePadding}px;\r\n --siteWidth: ${SiteWidth}px;\r\n --maxWidth: calc(var(--siteWidth) + (var(--sitePadding) * 2));\r\n\r\n margin: 0 auto;\r\n padding: 0 var(--sitePadding);\r\n width: 100%;\r\n\r\n @media ${from(Device.TabletLarge)} {\r\n width: min(calc(75% + (var(--sitePadding) * 2)), var(--maxWidth));\r\n }\r\n`;\r\nexport const baseGrid = css `\r\n --gutterWidth: ${fluid(10, 40)};\r\n\r\n display: grid;\r\n column-gap: var(--gutterWidth);\r\n grid-template-columns: repeat(12, 1fr);\r\n`;\r\n","var _path;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nfunction SvgNavArrowDown(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 13 7\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.5 7l.409-.38L13 .942 12.182 0 6.5 5.3.818 0 0 .942 6.091 6.62z\",\n fill: \"currentColor\"\n })));\n}\n\nexport default __webpack_public_path__ + \"4da2431e71f3c6e7524cf933a0bd745c.svg\";\nexport { SvgNavArrowDown as ReactComponent };","import { fluid } from '@helpers/fluid';\r\nimport { siteWide } from '@helpers/grid';\r\nimport styled from 'styled-components';\r\nconst Container = styled.section `\r\n --sectionSpacing: ${fluid(48, 96)};\r\n scroll-margin: var(--headerScrollHeight) 0 0;\r\n\r\n &[data-hide-overflow='true'] {\r\n overflow: hidden;\r\n }\r\n`;\r\nconst Inner = styled.div `\r\n ${siteWide}\r\n`;\r\nconst SectionWrapperStyles = {\r\n Container,\r\n Inner,\r\n};\r\nexport default SectionWrapperStyles;\r\n","import hoverintent from 'hoverintent';\r\nimport noop from 'lodash/noop';\r\nimport * as React from 'react';\r\nconst DEFAULT_PARAMS = {\r\n handleFocus: true,\r\n interval: 50,\r\n sensitivity: 7,\r\n timeout: 100,\r\n};\r\nexport function useHoverIntent(params) {\r\n const ref = React.useRef(null);\r\n const listener = React.useRef();\r\n React.useEffect(() => {\r\n if (ref.current) {\r\n const listener = hoverintent(ref.current, params.onHover ?? noop, params.onBlur ?? noop);\r\n listener.options({ ...DEFAULT_PARAMS, ...params });\r\n listener.current = listener;\r\n }\r\n return () => {\r\n listener.current?.remove();\r\n };\r\n }, [params.interval, params.sensitivity, params.timeout]);\r\n return { ref };\r\n}\r\n","import * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport S from './Dropdown.styles';\r\nconst Dropdown = ({ name, label, onChange, options, activeOption }) => {\r\n const [isOpen, setIsOpen] = React.useState(false);\r\n return (React.createElement(S.Container, { \"data-is-open\": isOpen },\r\n React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Select, { onChange: (e) => onChange(e), \"aria-label\": label, name: name, onClick: () => setIsOpen(!isOpen), value: activeOption },\r\n React.createElement(\"option\", { value: \"\" }, label),\r\n options.map((o) => (React.createElement(\"option\", { key: `option-${name}-${o.value}`, value: o.value }, o.label)))))));\r\n};\r\nexport default Dropdown;\r\n","import { rgba } from 'polished';\r\nconst brand = {\r\n beige: '#F4F3EE',\r\n beigeDark: '#E9E7DD',\r\n black: '#000000',\r\n green: '#9DAD98',\r\n greenBright: '#889E83',\r\n greyLight: '#F4F3EE',\r\n greyMid: '#BEBEBE',\r\n greyDark: '#2B2E34',\r\n pink: '#FF8C93',\r\n white: '#ffffff',\r\n validation: {\r\n invalid: '#DA291C',\r\n valid: '#008C15',\r\n },\r\n};\r\nexport default brand;\r\nexport const textShadow = `drop-shadow(0px 0px 6px ${rgba(brand.greyDark, 0.5)})`;\r\n","import { Device } from './media';\r\n/**\r\n * Base pixel value for the \"rem\" unit.\r\n */\r\nexport const PIXELS_PER_REM = 16;\r\n/**\r\n * Default pixel value for the min width.\r\n */\r\nexport const DEFAULT_MIN_VALUE = Device.TabletSmall;\r\n/**\r\n * Default pixel value for the max width.\r\n */\r\nexport const DEFAULT_MAX_VALUE = Device.ActualDesktop;\r\n/**\r\n * Define a fluid value between the min/max values at the min/max widths.\r\n */\r\nexport function fluid(min, max, minWidth = DEFAULT_MIN_VALUE, maxWidth = DEFAULT_MAX_VALUE) {\r\n const minRem = min / PIXELS_PER_REM;\r\n const maxRem = max / PIXELS_PER_REM;\r\n const minWidthRem = minWidth / PIXELS_PER_REM;\r\n const maxWidthRem = maxWidth / PIXELS_PER_REM;\r\n const slope = (maxRem - minRem) / (maxWidthRem - minWidthRem);\r\n const yAxisIntersection = -minWidthRem * slope + minRem;\r\n const clampMin = `${round(minRem)}rem`;\r\n const clampVal = `${round(yAxisIntersection)}rem + ${round(slope * 100)}vw`;\r\n const clampMax = `${round(maxRem)}rem`;\r\n return `clamp(${clampMin}, ${clampVal}, ${clampMax})`;\r\n}\r\n/**\r\n * Round to nearest hundredth.\r\n */\r\nfunction round(num) {\r\n return Math.round(num * 100) / 100;\r\n}\r\n","'use strict';\n\nmodule.exports = function(el, onOver, onOut) {\n var x, y, pX, pY;\n var mouseOver = false;\n var focused = false;\n var h = {},\n state = 0,\n timer = 0;\n\n var options = {\n sensitivity: 7,\n interval: 100,\n timeout: 0,\n handleFocus: false\n };\n\n function delay(el, e) {\n if (timer) timer = clearTimeout(timer);\n state = 0;\n return focused ? undefined : onOut.call(el, e);\n }\n\n function tracker(e) {\n x = e.clientX;\n y = e.clientY;\n }\n\n function compare(el, e) {\n if (timer) timer = clearTimeout(timer);\n if ((Math.abs(pX - x) + Math.abs(pY - y)) < options.sensitivity) {\n state = 1;\n return focused ? undefined : onOver.call(el, e);\n } else {\n pX = x;\n pY = y;\n timer = setTimeout(function() {\n compare(el, e);\n }, options.interval);\n }\n }\n\n // Public methods\n h.options = function(opt) {\n var focusOptionChanged = opt.handleFocus !== options.handleFocus;\n options = Object.assign({}, options, opt);\n if (focusOptionChanged) {\n options.handleFocus ? addFocus() : removeFocus();\n }\n return h;\n };\n\n function dispatchOver(e) {\n mouseOver = true;\n if (timer) timer = clearTimeout(timer);\n el.removeEventListener('mousemove', tracker, false);\n\n if (state !== 1) {\n pX = e.clientX;\n pY = e.clientY;\n\n el.addEventListener('mousemove', tracker, false);\n\n timer = setTimeout(function() {\n compare(el, e);\n }, options.interval);\n }\n\n return this;\n }\n\n function dispatchOut(e) {\n mouseOver = false;\n if (timer) timer = clearTimeout(timer);\n el.removeEventListener('mousemove', tracker, false);\n\n if (state === 1) {\n timer = setTimeout(function() {\n delay(el, e);\n }, options.timeout);\n }\n\n return this;\n }\n\n function dispatchFocus(e) {\n if (!mouseOver) {\n focused = true;\n onOver.call(el, e);\n }\n }\n\n function dispatchBlur(e) {\n if (!mouseOver && focused) {\n focused = false;\n onOut.call(el, e);\n }\n }\n\n function addFocus() {\n el.addEventListener('focus', dispatchFocus, false);\n el.addEventListener('blur', dispatchBlur, false);\n }\n\n function removeFocus() {\n el.removeEventListener('focus', dispatchFocus, false);\n el.removeEventListener('blur', dispatchBlur, false);\n }\n\n h.remove = function() {\n if (!el) return;\n el.removeEventListener('mouseover', dispatchOver, false);\n el.removeEventListener('mouseout', dispatchOut, false);\n removeFocus();\n };\n\n if (el) {\n el.addEventListener('mouseover', dispatchOver, false);\n el.addEventListener('mouseout', dispatchOut, false);\n }\n\n return h;\n};\n","import { transition } from '@helpers/animate';\r\nimport brand from '@helpers/brand';\r\nimport { fluid } from '@helpers/fluid';\r\nimport fonts from '@helpers/fonts';\r\nimport { Device, from } from '@helpers/media';\r\nimport DropdownStyles from '@stories/Components/Misc/Dropdown/Dropdown.styles';\r\nimport styled from 'styled-components';\r\nconst Filters = styled.div `\r\n display: flex;\r\n flex-wrap: wrap;\r\n justify-content: center;\r\n margin: ${fluid(24, 72)} 0 ${fluid(45, 64)};\r\n\r\n @media ${from(Device.Tablet)} {\r\n ${DropdownStyles.Container} {\r\n flex-basis: 398px;\r\n }\r\n }\r\n`;\r\nconst Container = styled.div `\r\n position: relative;\r\n padding-bottom: var(--sectionSpacing);\r\n`;\r\nconst ResultsAmount = styled.div `\r\n ${fonts.brandonGrotesque.regular};\r\n font-size: ${fluid(20, 22)};\r\n line-height: 1.5;\r\n margin-bottom: ${fluid(27, 32)};\r\n text-align: center;\r\n\r\n @media ${from(Device.Tablet)} {\r\n text-align: left;\r\n }\r\n`;\r\nconst ResultsCount = styled.span `\r\n ${fonts.brandonGrotesque.bold};\r\n`;\r\nconst ResultsWrapper = styled.div `\r\n display: grid;\r\n gap: ${fluid(16, 40)};\r\n\r\n @media ${from(Device.MobileLarge)} {\r\n grid-template-columns: repeat(2, 1fr);\r\n }\r\n\r\n @media ${from(Device.Tablet)} {\r\n grid-template-columns: repeat(3, 1fr);\r\n }\r\n\r\n @media ${from(Device.Desktop)} {\r\n grid-template-columns: repeat(4, 1fr);\r\n }\r\n`;\r\nconst Item = styled.a `\r\n ${fonts.zahrah.medium};\r\n ${transition('background-size, color', 0.25)};\r\n\r\n font-size: 20px;\r\n line-height: 26px;\r\n background: ${brand.beige};\r\n background-image: linear-gradient(to right, ${brand.green}, ${brand.green});\r\n background-repeat: no-repeat;\r\n background-size: 0% 100%;\r\n padding: ${fluid(16, 24)} ${fluid(19, 26)};\r\n color: ${brand.black};\r\n text-decoration: none;\r\n\r\n &[data-hovered='true'],\r\n &.focus-ring {\r\n background-size: 100% 100%;\r\n color: ${brand.white};\r\n }\r\n`;\r\nconst ShowroomDirectoryStyles = {\r\n Container,\r\n Filters,\r\n ResultsAmount,\r\n ResultsCount,\r\n ResultsWrapper,\r\n Item,\r\n};\r\nexport default ShowroomDirectoryStyles;\r\n","import { useHoverIntent } from '@hooks/useHoverIntent';\r\nimport Dropdown from '@stories/Components/Misc/Dropdown/Dropdown';\r\nimport SectionWrapper from '@stories/Components/SectionWrapper/SectionWrapper';\r\nimport * as React from 'react';\r\nimport { FocusRing } from 'react-aria';\r\nimport S from './ShowroomDirectory.styles';\r\nconst ShowroomDirectory = ({ anchorId, filter, items }) => {\r\n const [sortValue, setSortValue] = React.useState(filter.options[0].value);\r\n const sortedItems = items.sort((a, b) => {\r\n const nameA = a.name.toLowerCase();\r\n const nameB = b.name.toLowerCase();\r\n switch (sortValue) {\r\n case 'reverse':\r\n return -1 * nameA.localeCompare(nameB);\r\n default:\r\n return nameA.localeCompare(nameB);\r\n }\r\n });\r\n return (React.createElement(SectionWrapper, { id: anchorId },\r\n React.createElement(S.Filters, null,\r\n React.createElement(Dropdown, { key: `filter-${filter.name}`, ...filter, onChange: (event) => {\r\n event.preventDefault();\r\n setSortValue(event.target.value);\r\n }, activeOption: sortValue })),\r\n React.createElement(S.Container, null,\r\n React.createElement(S.ResultsAmount, null,\r\n \"Showing \",\r\n React.createElement(S.ResultsCount, null, items.length),\r\n \" showrooms\"),\r\n React.createElement(S.ResultsWrapper, null, sortedItems.map((item) => renderItem(item))))));\r\n function renderItem(item) {\r\n const [hovered, setHovered] = React.useState(false);\r\n const { ref: anchorRef } = useHoverIntent({\r\n onHover() {\r\n setHovered(true);\r\n },\r\n onBlur() {\r\n setHovered(false);\r\n },\r\n });\r\n return (React.createElement(FocusRing, { focusRingClass: \"focus-ring\" },\r\n React.createElement(S.Item, { ref: anchorRef, \"data-hovered\": hovered, key: `range-card-${item.id}`, href: item.url }, item.name)));\r\n }\r\n};\r\nexport default ShowroomDirectory;\r\n","import { css } from 'styled-components';\r\nexport default {\r\n brandonGrotesque: {\r\n thin: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: normal;\r\n font-weight: 100;\r\n `,\r\n thinItalic: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: italic;\r\n font-weight: 100;\r\n `,\r\n light: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: normal;\r\n font-weight: 300;\r\n `,\r\n lightItalic: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: italic;\r\n font-weight: 300;\r\n `,\r\n regular: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: normal;\r\n font-weight: 400;\r\n `,\r\n regularItalic: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: italic;\r\n font-weight: 400;\r\n `,\r\n medium: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: normal;\r\n font-weight: 500;\r\n `,\r\n mediumItalic: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: italic;\r\n font-weight: 500;\r\n `,\r\n bold: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: normal;\r\n font-weight: 700;\r\n `,\r\n boldItalic: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: italic;\r\n font-weight: 700;\r\n `,\r\n black: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: normal;\r\n font-weight: 900;\r\n `,\r\n blackItalic: css `\r\n font-family: 'Brandon Grotesque', sans-serif;\r\n font-style: italic;\r\n font-weight: 900;\r\n `,\r\n },\r\n zahrah: {\r\n regular: css `\r\n font-family: 'Zahrah', sans-serif;\r\n font-style: normal;\r\n font-weight: 400;\r\n `,\r\n medium: css `\r\n font-family: 'Zahrah', sans-serif;\r\n font-style: normal;\r\n font-weight: 500;\r\n `,\r\n semiBold: css `\r\n font-family: 'Zahrah', sans-serif;\r\n font-style: normal;\r\n font-weight: 600;\r\n `,\r\n },\r\n};\r\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","import { css } from 'styled-components';\r\nexport const inViewMargin = '0px 0px -35% 0px';\r\nexport const cubicEaseOut = `cubic-bezier(0.33, 1, 0.68, 1)`;\r\nexport const disableAnimationClass = '.equally-ai___toolbox-disable-buttons-animations';\r\nexport const shouldAnimate = (innerCss) => {\r\n return css `\r\n @media (prefers-reduced-motion: no-preference) {\r\n ${innerCss}\r\n }\r\n `;\r\n};\r\nexport const transition = (properties, duration = 0.35, timing = cubicEaseOut) => {\r\n return shouldAnimate(css `\r\n transition: ${properties};\r\n transition-duration: ${typeof duration === 'string' ? duration : `${duration}s`};\r\n transition-timing-function: ${timing};\r\n will-change: ${properties};\r\n `);\r\n};\r\nexport function scrollTo(y) {\r\n const disabled = document.querySelector(disableAnimationClass);\r\n window.scrollTo({\r\n top: y,\r\n behavior: !disabled ? 'smooth' : 'auto',\r\n });\r\n}\r\n"],"sourceRoot":""}