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pack://support/./node_modules/@shopify/polaris/build/esm/components/BlockStack/BlockStack.js","webpack://support/./node_modules/@shopify/polaris-icons/dist/icons/ArrowLeftIcon.svg.mjs","webpack://support/./node_modules/@shopify/polaris-icons/dist/icons/ArrowRightIcon.svg.mjs","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/dates.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/DatePicker/utilities.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/DatePicker/DatePicker.css.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/DatePicker/components/Weekday/Weekday.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/DatePicker/components/Day/Day.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/DatePicker/components/Month/Month.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/DatePicker/DatePicker.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/EventListener/EventListener.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/InlineGrid/InlineGrid.css.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/InlineGrid/InlineGrid.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/InlineStack/InlineStack.css.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/InlineStack/InlineStack.js","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/components.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Popover/Popover.css.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Popover/components/Section/Section.js","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/use-lazy-ref.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Scrollable/context.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Scrollable/Scrollable.css.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Scrollable/Scrollable.js","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/use-component-did-mount.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Popover/components/Pane/Pane.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Scrollable/components/ScrollTo/ScrollTo.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/KeypressListener/KeypressListener.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/PositionedOverlay/utilities/math.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/PositionedOverlay/PositionedOverlay.css.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/PositionedOverlay/PositionedOverlay.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Popover/components/PopoverOverlay/PopoverOverlay.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/ThemeProvider/ThemeProvider.css.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/ThemeProvider/ThemeProvider.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Portal/Portal.js","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/portals/hooks.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Popover/Popover.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Popover/set-activator-attributes.js","webpack://support/./node_modules/@shopify/polaris-icons/dist/icons/XCircleIcon.svg.mjs","webpack://support/./node_modules/@shopify/polaris/build/esm/components/TextField/TextField.css.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Connected/Connected.css.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Connected/components/Item/Item.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/Connected/Connected.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/TextField/components/Spinner/Spinner.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/TextField/components/Resizer/Resizer.js","webpack://support/./node_modules/@shopify/polaris/build/esm/components/TextField/TextField.js","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/use-event-listener.js","webpack://support/./node_modules/@shopify/polaris/build/esm/types.js","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/debounce.js","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/geometry.js","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/portals/context.js","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/sticky-manager/context.js","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/sticky-manager/sticky-manager.js","webpack://support/./node_modules/@shopify/polaris/build/esm/utilities/use-theme.js","webpack://support/./node_modules/dayjs/dayjs.min.js","webpack://support/./node_modules/@shopify/polaris-icons/dist/icons/CalendarIcon.svg.mjs"],"sourcesContent":["var styles = {\n \"BlockStack\": \"Polaris-BlockStack\",\n \"listReset\": \"Polaris-BlockStack--listReset\",\n \"fieldsetReset\": \"Polaris-BlockStack--fieldsetReset\"\n};\n\nexport { styles as default };\n","import React from 'react';\nimport { classNames, getResponsiveProps, sanitizeCustomProperties } from '../../utilities/css.js';\nimport styles from './BlockStack.css.js';\n\nconst BlockStack = ({\n as = 'div',\n children,\n align,\n inlineAlign,\n gap,\n id,\n reverseOrder = false,\n ...restProps\n}) => {\n const className = classNames(styles.BlockStack, (as === 'ul' || as === 'ol') && styles.listReset, as === 'fieldset' && styles.fieldsetReset);\n const style = {\n '--pc-block-stack-align': align ? `${align}` : null,\n '--pc-block-stack-inline-align': inlineAlign ? `${inlineAlign}` : null,\n '--pc-block-stack-order': reverseOrder ? 'column-reverse' : 'column',\n ...getResponsiveProps('block-stack', 'gap', 'space', gap)\n };\n return /*#__PURE__*/React.createElement(as, {\n className,\n id,\n style: sanitizeCustomProperties(style),\n ...restProps\n }, children);\n};\n\nexport { BlockStack };\n","import React from 'react';\n\nvar SvgArrowLeftIcon = function SvgArrowLeftIcon(props) {\n return /*#__PURE__*/React.createElement(\"svg\", Object.assign({\n viewBox: \"0 0 20 20\"\n }, props), /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M16.5 10a.75.75 0 0 1-.75.75h-9.69l2.72 2.72a.75.75 0 0 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 1 1 1.06 1.06l-2.72 2.72h9.69a.75.75 0 0 1 .75.75Z\"\n }));\n};\nSvgArrowLeftIcon.displayName = \"ArrowLeftIcon\";\n\nexport { SvgArrowLeftIcon as S };\n","import React from 'react';\n\nvar SvgArrowRightIcon = function SvgArrowRightIcon(props) {\n return /*#__PURE__*/React.createElement(\"svg\", Object.assign({\n viewBox: \"0 0 20 20\"\n }, props), /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M3.5 10a.75.75 0 0 1 .75-.75h9.69l-2.72-2.72a.75.75 0 1 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06l2.72-2.72h-9.69a.75.75 0 0 1-.75-.75Z\"\n }));\n};\nSvgArrowRightIcon.displayName = \"ArrowRightIcon\";\n\nexport { SvgArrowRightIcon as S };\n","const WEEK_LENGTH = 7;\nfunction getWeeksForMonth(month, year, weekStartsOn = 0) {\n const firstOfMonth = new Date(year, month, 1);\n const firstDayOfWeek = firstOfMonth.getDay();\n const weeks = [[]];\n let currentWeek = weeks[0];\n let currentDate = firstOfMonth;\n const orderedWeekday = getOrderedWeekdays(weekStartsOn);\n for (let i = 0; i < orderedWeekday.indexOf(firstDayOfWeek); i++) {\n currentWeek.push(null);\n }\n while (currentDate.getMonth() === month) {\n if (currentWeek.length === WEEK_LENGTH) {\n currentWeek = [];\n weeks.push(currentWeek);\n }\n currentWeek.push(currentDate);\n currentDate = new Date(year, month, currentDate.getDate() + 1);\n }\n while (currentWeek.length < 7) {\n currentWeek.push(null);\n }\n return weeks;\n}\nfunction dateIsInRange(day, range) {\n if (day == null) {\n return false;\n }\n const {\n start,\n end\n } = range;\n return Boolean(start && day > start && end && day < end);\n}\nfunction dateIsSelected(day, range) {\n if (day == null) {\n return false;\n }\n const {\n start,\n end\n } = range;\n return Boolean(start && isSameDay(start, day) || end && isSameDay(end, day));\n}\nfunction isSameDay(day1, day2) {\n return day1.getDate() === day2.getDate() && day1.getMonth() === day2.getMonth() && day1.getFullYear() === day2.getFullYear();\n}\nfunction getNewRange(range, selected) {\n if (range == null) {\n return {\n start: selected,\n end: selected\n };\n }\n const {\n start,\n end\n } = range;\n if (end && (isDateAfter(start, end) || isDateBefore(start, end))) {\n return {\n start: selected,\n end: selected\n };\n }\n if (start) {\n if (isDateBefore(selected, start)) {\n return {\n start: selected,\n end: selected\n };\n }\n return {\n start,\n end: selected\n };\n }\n if (end) {\n if (isDateBefore(selected, end)) {\n return {\n start: selected,\n end\n };\n }\n return {\n start: start || end,\n end: selected\n };\n }\n return {\n start: selected,\n end: selected\n };\n}\nfunction getNextDisplayMonth(month) {\n if (month === 11) {\n return 0;\n }\n return month + 1;\n}\nfunction getNextDisplayYear(month, year) {\n if (month === 11) {\n return year + 1;\n }\n return year;\n}\nfunction getPreviousDisplayMonth(month) {\n if (month === 0) {\n return 11;\n }\n return month - 1;\n}\nfunction getPreviousDisplayYear(month, year) {\n if (month === 0) {\n return year - 1;\n }\n return year;\n}\nfunction isDateAfter(date, dateToCompare) {\n return date.getTime() > dateToCompare.getTime();\n}\nfunction isDateBefore(date, dateToCompare) {\n return date.getTime() < dateToCompare.getTime();\n}\nfunction isDateDisabled(date, datesToCompare) {\n return datesToCompare.some(dateToCompare => {\n return date.getTime() === dateToCompare.getTime();\n });\n}\nconst WEEKDAYS = [0, 1, 2, 3, 4, 5, 6];\nfunction getOrderedWeekdays(weekStartsOn) {\n const weekDays = [...WEEKDAYS];\n const restOfDays = weekDays.splice(weekStartsOn);\n return [...restOfDays, ...weekDays];\n}\n\nexport { dateIsInRange, dateIsSelected, getNewRange, getNextDisplayMonth, getNextDisplayYear, getOrderedWeekdays, getPreviousDisplayMonth, getPreviousDisplayYear, getWeeksForMonth, isDateAfter, isDateBefore, isDateDisabled, isSameDay };\n","function monthName(month) {\n switch (month) {\n case 0:\n return 'january';\n case 1:\n return 'february';\n case 2:\n return 'march';\n case 3:\n return 'april';\n case 4:\n return 'may';\n case 5:\n return 'june';\n case 6:\n return 'july';\n case 7:\n return 'august';\n case 8:\n return 'september';\n case 9:\n return 'october';\n case 10:\n return 'november';\n case 11:\n return 'december';\n }\n}\nfunction weekdayName(weekday) {\n switch (weekday) {\n case 0:\n return 'sunday';\n case 1:\n return 'monday';\n case 2:\n return 'tuesday';\n case 3:\n return 'wednesday';\n case 4:\n return 'thursday';\n case 5:\n return 'friday';\n case 6:\n return 'saturday';\n }\n}\n\nexport { monthName, weekdayName };\n","var styles = {\n \"DatePicker\": \"Polaris-DatePicker\",\n \"MonthLayout\": \"Polaris-DatePicker__MonthLayout\",\n \"MonthContainer\": \"Polaris-DatePicker__MonthContainer\",\n \"Month\": \"Polaris-DatePicker__Month\",\n \"DayCell\": \"Polaris-DatePicker__DayCell\",\n \"DayCell-inRange\": \"Polaris-DatePicker__DayCell--inRange\",\n \"Day\": \"Polaris-DatePicker__Day\",\n \"Day-inRange\": \"Polaris-DatePicker__Day--inRange\",\n \"Day-selected\": \"Polaris-DatePicker__Day--selected\",\n \"Day-disabled\": \"Polaris-DatePicker__Day--disabled\",\n \"EmptyDayCell\": \"Polaris-DatePicker__EmptyDayCell\",\n \"Weekday\": \"Polaris-DatePicker__Weekday\",\n \"Header\": \"Polaris-DatePicker__Header\",\n \"Title\": \"Polaris-DatePicker__Title\",\n \"Day-firstInRange\": \"Polaris-DatePicker__Day--firstInRange\",\n \"Day-hasRange\": \"Polaris-DatePicker__Day--hasRange\",\n \"Day-hoverRight\": \"Polaris-DatePicker__Day--hoverRight\",\n \"Day-lastInRange\": \"Polaris-DatePicker__Day--lastInRange\",\n \"Week\": \"Polaris-DatePicker__Week\"\n};\n\nexport { styles as default };\n","import React, { memo } from 'react';\nimport styles from '../../DatePicker.css.js';\nimport { Text } from '../../../Text/Text.js';\n\nconst Weekday = /*#__PURE__*/memo(function Weekday({\n label,\n title,\n current\n}) {\n return /*#__PURE__*/React.createElement(\"th\", {\n \"aria-label\": label,\n scope: \"col\",\n className: styles.Weekday\n }, /*#__PURE__*/React.createElement(Text, {\n as: \"span\",\n variant: \"bodySm\",\n alignment: \"center\",\n fontWeight: current ? 'bold' : 'regular',\n tone: !current ? 'subdued' : undefined\n }, title));\n});\n\nexport { Weekday };\n","import React, { memo, useRef, useEffect } from 'react';\nimport { classNames } from '../../../../utilities/css.js';\nimport { isSameDay } from '../../../../utilities/dates.js';\nimport { monthName } from '../../utilities.js';\nimport styles from '../../DatePicker.css.js';\nimport { useI18n } from '../../../../utilities/i18n/hooks.js';\nimport { Text } from '../../../Text/Text.js';\n\nconst Day = /*#__PURE__*/memo(function Day({\n day,\n focused,\n onClick,\n onHover = noop,\n onFocus = noop,\n selected,\n inRange,\n inHoveringRange,\n disabled,\n lastDayOfMonth,\n isLastSelectedDay,\n isFirstSelectedDay,\n isHoveringRight,\n rangeIsDifferent,\n weekday,\n selectedAccessibilityLabelPrefix\n}) {\n const i18n = useI18n();\n const dayNode = useRef(null);\n const hoverValue = lastDayOfMonth || day;\n useEffect(() => {\n if (focused && dayNode.current) {\n dayNode.current.focus();\n }\n }, [focused]);\n if (!day) {\n return /*#__PURE__*/React.createElement(\"td\", {\n className: styles.EmptyDayCell,\n onMouseOver: () => onHover(hoverValue)\n });\n }\n const handleClick = onClick && !disabled ? onClick.bind(null, day) : noop;\n const today = isSameDay(new Date(), day);\n const dayCellClassName = classNames(styles.DayCell, selected && styles['DayCell-selected'], (inRange || inHoveringRange) && !disabled && styles['DayCell-inRange'], isLastSelectedDay && styles['DayCell-lastInRange'], isFirstSelectedDay && styles['DayCell-firstInRange'], isHoveringRight && styles['DayCell-hoverRight'], rangeIsDifferent && styles['DayCell-hasRange']);\n const dayClassName = classNames(styles.Day, selected && styles['Day-selected'], disabled && styles['Day-disabled'], (inRange || inHoveringRange) && !disabled && styles['Day-inRange'], isLastSelectedDay && styles['Day-lastInRange'], isFirstSelectedDay && styles['Day-firstInRange'], isHoveringRight && styles['Day-hoverRight'], rangeIsDifferent && styles['Day-hasRange']);\n const date = day.getDate();\n const tabIndex = (focused || selected || today || date === 1) && !disabled ? 0 : -1;\n const ariaLabel = [selected && selectedAccessibilityLabelPrefix ? `${selectedAccessibilityLabelPrefix} ` : '', `${today ? i18n.translate('Polaris.DatePicker.today') : ''}`, `${weekday ? weekday : ''} `, `${i18n.translate(`Polaris.DatePicker.months.${monthName(day.getMonth())}`)} `, `${date} `, `${day.getFullYear()}`].join('');\n return /*#__PURE__*/React.createElement(\"td\", {\n className: dayCellClassName\n }, /*#__PURE__*/React.createElement(\"button\", {\n onFocus: () => onFocus(day),\n type: \"button\",\n ref: dayNode,\n tabIndex: tabIndex,\n className: dayClassName,\n onMouseOver: () => onHover(hoverValue),\n onClick: handleClick,\n \"aria-label\": ariaLabel,\n \"aria-disabled\": disabled,\n \"aria-pressed\": selected\n }, /*#__PURE__*/React.createElement(Text, {\n as: \"span\",\n variant: \"bodySm\",\n alignment: \"center\",\n fontWeight: today ? 'bold' : 'regular'\n }, date)));\n});\nfunction noop() {}\n\nexport { Day };\n","import React, { useMemo, useCallback } from 'react';\nimport { getWeeksForMonth, getOrderedWeekdays, getNewRange, isDateBefore, isDateAfter, isDateDisabled, isSameDay, dateIsSelected, dateIsInRange } from '../../../../utilities/dates.js';\nimport styles from '../../DatePicker.css.js';\nimport { weekdayName, monthName } from '../../utilities.js';\nimport { Weekday } from '../Weekday/Weekday.js';\nimport { Day } from '../Day/Day.js';\nimport { useI18n } from '../../../../utilities/i18n/hooks.js';\nimport { Text } from '../../../Text/Text.js';\n\nfunction Month({\n focusedDate,\n selected,\n hoverDate,\n disableDatesBefore,\n disableDatesAfter,\n disableSpecificDates,\n allowRange,\n onChange = noop,\n onHover = noop,\n onFocus = noop,\n month,\n year,\n weekStartsOn,\n accessibilityLabelPrefixes\n}) {\n const i18n = useI18n();\n const isInHoveringRange = allowRange ? hoveringDateIsInRange : () => false;\n const now = new Date();\n const current = now.getMonth() === month && now.getFullYear() === year;\n const weeks = useMemo(() => getWeeksForMonth(month, year, weekStartsOn), [month, weekStartsOn, year]);\n const weekdays = getOrderedWeekdays(weekStartsOn).map(weekday => /*#__PURE__*/React.createElement(Weekday, {\n key: weekday,\n title: i18n.translate(`Polaris.DatePicker.daysAbbreviated.${weekdayName(weekday)}`),\n label: weekdayLabel(weekday),\n current: current && new Date().getDay() === weekday\n }));\n const handleDateClick = useCallback(selectedDate => {\n onChange(getNewRange(allowRange ? selected : undefined, selectedDate));\n }, [allowRange, onChange, selected]);\n const lastDayOfMonth = useMemo(() => new Date(year, month + 1, 0), [month, year]);\n function renderWeek(day, dayIndex) {\n if (day == null) {\n return /*#__PURE__*/React.createElement(Day, {\n key: dayIndex,\n onHover: onHover,\n lastDayOfMonth: lastDayOfMonth\n });\n }\n const disabled = disableDatesBefore && isDateBefore(day, disableDatesBefore) || disableDatesAfter && isDateAfter(day, disableDatesAfter) || disableSpecificDates && isDateDisabled(day, disableSpecificDates);\n const isFirstSelectedDay = allowRange && selected && isDateStart(day, selected);\n const isLastSelectedDay = allowRange && selected && (!isSameDay(selected.start, selected.end) && isDateEnd(day, selected) || hoverDate && isSameDay(selected.start, selected.end) && isDateAfter(hoverDate, selected.start) && isSameDay(day, hoverDate) && !isFirstSelectedDay);\n const rangeIsDifferent = !(selected && isSameDay(selected.start, selected.end));\n const isHoveringRight = hoverDate && isDateBefore(day, hoverDate);\n const [firstAccessibilityLabelPrefix, lastAccessibilityLabelPrefix] = accessibilityLabelPrefixes;\n let accessibilityLabelPrefix;\n if (allowRange && isFirstSelectedDay || !allowRange && firstAccessibilityLabelPrefix) {\n accessibilityLabelPrefix = firstAccessibilityLabelPrefix;\n } else if (allowRange && isLastSelectedDay) {\n accessibilityLabelPrefix = lastAccessibilityLabelPrefix;\n }\n return /*#__PURE__*/React.createElement(Day, {\n selectedAccessibilityLabelPrefix: accessibilityLabelPrefix,\n weekday: weekdayLabel(dayIndex),\n focused: focusedDate != null && isSameDay(day, focusedDate),\n day: day,\n key: dayIndex,\n onFocus: onFocus,\n onClick: handleDateClick,\n onHover: onHover,\n selected: selected != null && dateIsSelected(day, selected),\n inRange: selected != null && dateIsInRange(day, selected),\n disabled: disabled,\n inHoveringRange: selected != null && hoverDate != null && isInHoveringRange(day, selected, hoverDate),\n isLastSelectedDay: isLastSelectedDay,\n isFirstSelectedDay: isFirstSelectedDay,\n isHoveringRight: isHoveringRight,\n rangeIsDifferent: rangeIsDifferent\n });\n }\n const weeksMarkup = weeks.map((week, index) => /*#__PURE__*/React.createElement(\"tr\", {\n className: styles.Week,\n key: index\n }, week.map(renderWeek)));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: styles.MonthContainer\n }, /*#__PURE__*/React.createElement(\"table\", {\n role: \"grid\",\n className: styles.Month\n }, /*#__PURE__*/React.createElement(\"caption\", {\n className: styles.Title\n }, /*#__PURE__*/React.createElement(Text, {\n as: \"span\",\n variant: \"bodyMd\",\n alignment: \"center\",\n fontWeight: current ? 'bold' : 'medium'\n }, i18n.translate(`Polaris.DatePicker.months.${monthName(month)}`), ' ', year)), /*#__PURE__*/React.createElement(\"thead\", null, /*#__PURE__*/React.createElement(\"tr\", {\n className: styles.WeekHeadings\n }, weekdays)), /*#__PURE__*/React.createElement(\"tbody\", null, weeksMarkup)));\n function weekdayLabel(weekday) {\n return i18n.translate(`Polaris.DatePicker.days.${weekdayName(weekday)}`);\n }\n}\nfunction noop() {}\nfunction hoveringDateIsInRange(day, range, hoverEndDate) {\n if (day == null) {\n return false;\n }\n const {\n start,\n end\n } = range;\n return Boolean(isSameDay(start, end) && day > start && day <= hoverEndDate);\n}\nfunction isDateEnd(day, range) {\n if (day == null) return false;\n const {\n end\n } = range;\n return Boolean(end && isSameDay(end, day));\n}\nfunction isDateStart(day, range) {\n if (day == null) return false;\n const {\n start\n } = range;\n return Boolean(start && isSameDay(start, day));\n}\n\nexport { Month };\n","import React, { useState, useEffect, useCallback, useMemo } from 'react';\nimport { ArrowLeftIcon, ArrowRightIcon } from '@shopify/polaris-icons';\nimport { classNames } from '../../utilities/css.js';\nimport { isDateBefore, isDateDisabled, isDateAfter, getNextDisplayYear, getNextDisplayMonth, getPreviousDisplayYear, getPreviousDisplayMonth } from '../../utilities/dates.js';\nimport { monthName } from './utilities.js';\nimport styles from './DatePicker.css.js';\nimport { Month } from './components/Month/Month.js';\nimport { useI18n } from '../../utilities/i18n/hooks.js';\nimport { Button } from '../Button/Button.js';\n\nfunction DatePicker({\n id,\n selected,\n month,\n year,\n allowRange,\n multiMonth,\n disableDatesBefore,\n disableDatesAfter,\n disableSpecificDates,\n weekStartsOn = 0,\n dayAccessibilityLabelPrefix,\n onMonthChange,\n onChange = noop\n}) {\n const i18n = useI18n();\n const [hoverDate, setHoverDate] = useState(undefined);\n const [focusDate, setFocusDate] = useState(undefined);\n useEffect(() => {\n setFocusDate(undefined);\n }, [selected]);\n const handleFocus = useCallback(date => {\n setFocusDate(date);\n }, []);\n const setFocusDateAndHandleMonthChange = useCallback(date => {\n if (onMonthChange) {\n onMonthChange(date.getMonth(), date.getFullYear());\n }\n setHoverDate(date);\n setFocusDate(date);\n }, [onMonthChange]);\n const handleDateSelection = useCallback(range => {\n const {\n end\n } = range;\n setHoverDate(end);\n setFocusDate(new Date(end));\n onChange(range);\n }, [onChange]);\n const handleMonthChangeClick = useCallback((month, year) => {\n if (!onMonthChange) {\n return;\n }\n setFocusDate(undefined);\n onMonthChange(month, year);\n }, [onMonthChange]);\n const handleHover = useCallback(date => {\n setHoverDate(date);\n }, []);\n const handleKeyUp = useCallback(event => {\n const {\n key\n } = event;\n const range = deriveRange(selected);\n const focusedDate = focusDate || range && range.start;\n if (focusedDate == null) {\n return;\n }\n if (key === 'ArrowUp') {\n const previousWeek = new Date(focusedDate);\n previousWeek.setDate(focusedDate.getDate() - 7);\n if (!(disableDatesBefore && isDateBefore(previousWeek, disableDatesBefore) || disableSpecificDates && isDateDisabled(previousWeek, disableSpecificDates))) {\n setFocusDateAndHandleMonthChange(previousWeek);\n }\n }\n if (key === 'ArrowDown') {\n const nextWeek = new Date(focusedDate);\n nextWeek.setDate(focusedDate.getDate() + 7);\n if (!(disableDatesAfter && isDateAfter(nextWeek, disableDatesAfter) || disableSpecificDates && isDateDisabled(nextWeek, disableSpecificDates))) {\n setFocusDateAndHandleMonthChange(nextWeek);\n }\n }\n if (key === 'ArrowRight') {\n const tomorrow = new Date(focusedDate);\n tomorrow.setDate(focusedDate.getDate() + 1);\n if (!(disableDatesAfter && isDateAfter(tomorrow, disableDatesAfter) || disableSpecificDates && isDateDisabled(tomorrow, disableSpecificDates))) {\n setFocusDateAndHandleMonthChange(tomorrow);\n }\n }\n if (key === 'ArrowLeft') {\n const yesterday = new Date(focusedDate);\n yesterday.setDate(focusedDate.getDate() - 1);\n if (!(disableDatesBefore && isDateBefore(yesterday, disableDatesBefore) || disableSpecificDates && isDateDisabled(yesterday, disableSpecificDates))) {\n setFocusDateAndHandleMonthChange(yesterday);\n }\n }\n }, [disableDatesAfter, disableDatesBefore, disableSpecificDates, focusDate, selected, setFocusDateAndHandleMonthChange]);\n const showNextYear = getNextDisplayYear(month, year);\n const showNextMonth = getNextDisplayMonth(month);\n const showNextToNextYear = getNextDisplayYear(showNextMonth, showNextYear);\n const showNextToNextMonth = getNextDisplayMonth(showNextMonth);\n const showPreviousYear = getPreviousDisplayYear(month, year);\n const showPreviousMonth = getPreviousDisplayMonth(month);\n const previousMonthName = i18n.translate(`Polaris.DatePicker.months.${monthName(showPreviousMonth)}`);\n const nextMonth = multiMonth ? i18n.translate(`Polaris.DatePicker.months.${monthName(showNextToNextMonth)}`) : i18n.translate(`Polaris.DatePicker.months.${monthName(showNextMonth)}`);\n const nextYear = multiMonth ? showNextToNextYear : showNextYear;\n const monthIsSelected = useMemo(() => deriveRange(selected), [selected]);\n const firstDatePickerAccessibilityLabelPrefix = allowRange ? i18n.translate(`Polaris.DatePicker.start`) : dayAccessibilityLabelPrefix;\n const secondDatePickerAccessibilityLabelPrefix = i18n.translate(`Polaris.DatePicker.end`);\n const accessibilityLabelPrefixes = [firstDatePickerAccessibilityLabelPrefix, secondDatePickerAccessibilityLabelPrefix];\n const secondDatePicker = multiMonth ? /*#__PURE__*/React.createElement(Month, {\n onFocus: handleFocus,\n focusedDate: focusDate,\n month: showNextMonth,\n year: showNextYear,\n selected: monthIsSelected,\n hoverDate: hoverDate,\n onChange: handleDateSelection,\n onHover: handleHover,\n disableDatesBefore: disableDatesBefore,\n disableDatesAfter: disableDatesAfter,\n disableSpecificDates: disableSpecificDates,\n allowRange: allowRange,\n weekStartsOn: weekStartsOn,\n accessibilityLabelPrefixes: accessibilityLabelPrefixes\n }) : null;\n const datePickerClassName = classNames(styles.DatePicker);\n return /*#__PURE__*/React.createElement(\"div\", {\n id: id,\n className: datePickerClassName,\n onKeyDown: handleKeyDown,\n onKeyUp: handleKeyUp\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Header\n }, /*#__PURE__*/React.createElement(Button, {\n variant: \"tertiary\",\n icon: ArrowLeftIcon,\n accessibilityLabel: i18n.translate('Polaris.DatePicker.previousMonth', {\n previousMonthName,\n showPreviousYear\n }),\n onClick: () => handleMonthChangeClick(showPreviousMonth, showPreviousYear)\n }), /*#__PURE__*/React.createElement(Button, {\n variant: \"tertiary\",\n icon: ArrowRightIcon,\n accessibilityLabel: i18n.translate('Polaris.DatePicker.nextMonth', {\n nextMonth,\n nextYear\n }),\n onClick: () => handleMonthChangeClick(showNextMonth, showNextYear)\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: styles.MonthLayout\n }, /*#__PURE__*/React.createElement(Month, {\n onFocus: handleFocus,\n focusedDate: focusDate,\n month: month,\n year: year,\n selected: deriveRange(selected),\n hoverDate: hoverDate,\n onChange: handleDateSelection,\n onHover: handleHover,\n disableDatesBefore: disableDatesBefore,\n disableDatesAfter: disableDatesAfter,\n disableSpecificDates: disableSpecificDates,\n allowRange: allowRange,\n weekStartsOn: weekStartsOn,\n accessibilityLabelPrefixes: accessibilityLabelPrefixes\n }), secondDatePicker));\n}\nfunction noop() {}\nfunction handleKeyDown(event) {\n const {\n key\n } = event;\n if (key === 'ArrowUp' || key === 'ArrowDown' || key === 'ArrowLeft' || key === 'ArrowRight') {\n event.preventDefault();\n event.stopPropagation();\n }\n}\nfunction deriveRange(selected) {\n return selected instanceof Date ? {\n start: selected,\n end: selected\n } : selected;\n}\n\nexport { DatePicker };\n","import { PureComponent } from 'react';\n\n/** @deprecated Use the useEventListener hook instead. */\nclass EventListener extends PureComponent {\n componentDidMount() {\n this.attachListener();\n }\n componentDidUpdate({\n passive,\n ...detachProps\n }) {\n this.detachListener(detachProps);\n this.attachListener();\n }\n componentWillUnmount() {\n this.detachListener();\n }\n render() {\n return null;\n }\n attachListener() {\n const {\n event,\n handler,\n capture,\n passive,\n window: customWindow\n } = this.props;\n const window = customWindow || globalThis.window;\n window.addEventListener(event, handler, {\n capture,\n passive\n });\n }\n detachListener(prevProps) {\n const {\n event,\n handler,\n capture,\n window: customWindow\n } = prevProps || this.props;\n const window = customWindow || globalThis.window;\n window.removeEventListener(event, handler, capture);\n }\n}\n\nexport { EventListener };\n","var styles = {\n \"InlineGrid\": \"Polaris-InlineGrid\"\n};\n\nexport { styles as default };\n","import React from 'react';\nimport { getResponsiveValue, getResponsiveProps, sanitizeCustomProperties } from '../../utilities/css.js';\nimport styles from './InlineGrid.css.js';\n\nfunction InlineGrid({\n children,\n columns,\n gap,\n alignItems\n}) {\n const style = {\n ...getResponsiveValue('inline-grid', 'grid-template-columns', formatInlineGrid(columns)),\n ...getResponsiveProps('inline-grid', 'gap', 'space', gap),\n '--pc-inline-grid-align-items': alignItems\n };\n return /*#__PURE__*/React.createElement(\"div\", {\n className: styles.InlineGrid,\n style: sanitizeCustomProperties(style)\n }, children);\n}\nfunction formatInlineGrid(columns) {\n if (typeof columns === 'object' && columns !== null && !Array.isArray(columns)) {\n return Object.fromEntries(Object.entries(columns).map(([breakpointAlias, breakpointInlineGrid]) => [breakpointAlias, getColumnValue(breakpointInlineGrid)]));\n }\n return getColumnValue(columns);\n}\nfunction getColumnValue(columns) {\n if (!columns) return undefined;\n if (typeof columns === 'number' || !isNaN(Number(columns))) {\n return `repeat(${Number(columns)}, minmax(0, 1fr))`;\n }\n if (typeof columns === 'string') return columns;\n return columns.map(column => {\n switch (column) {\n case 'oneThird':\n return 'minmax(0, 1fr)';\n case 'oneHalf':\n return 'minmax(0, 1fr)';\n case 'twoThirds':\n return 'minmax(0, 2fr)';\n }\n }).join(' ');\n}\n\nexport { InlineGrid };\n","var styles = {\n \"InlineStack\": \"Polaris-InlineStack\"\n};\n\nexport { styles as default };\n","import React from 'react';\nimport { getResponsiveProps, getResponsiveValue } from '../../utilities/css.js';\nimport styles from './InlineStack.css.js';\n\nconst InlineStack = function InlineStack({\n as: Element = 'div',\n align,\n direction = 'row',\n blockAlign,\n gap,\n wrap = true,\n children\n}) {\n const style = {\n '--pc-inline-stack-align': align,\n '--pc-inline-stack-block-align': blockAlign,\n '--pc-inline-stack-wrap': wrap ? 'wrap' : 'nowrap',\n ...getResponsiveProps('inline-stack', 'gap', 'space', gap),\n ...getResponsiveValue('inline-stack', 'flex-direction', direction)\n };\n return /*#__PURE__*/React.createElement(Element, {\n className: styles.InlineStack,\n style: style\n }, children);\n};\n\nexport { InlineStack };\n","import React, { isValidElement, Children } from 'react';\n\n// Wraps `element` in `Component`, if it is not already an instance of\n// `Component`. If `props` is passed, those will be added as props on the\n// wrapped component. If `element` is null, the component is not wrapped.\nfunction wrapWithComponent(element, Component, props) {\n if (element == null) {\n return null;\n }\n return isElementOfType(element, Component) ? element : /*#__PURE__*/React.createElement(Component, props, element);\n}\n\n// In development, we compare based on the name of the function because\n// React Hot Loader proxies React components in order to make updates. In\n// production we can simply compare the components for equality.\nconst isComponent = process.env.NODE_ENV === 'development' ? hotReloadComponentCheck : (AComponent, AnotherComponent) => AComponent === AnotherComponent;\n\n// Checks whether `element` is a React element of type `Component` (or one of\n// the passed components, if `Component` is an array of React components).\nfunction isElementOfType(element, Component) {\n if (element == null || ! /*#__PURE__*/isValidElement(element) || typeof element.type === 'string') {\n return false;\n }\n const {\n type: defaultType\n } = element;\n // Type override allows components to bypass default wrapping behavior. Ex: Stack, ResourceList...\n // See https://github.com/Shopify/app-extension-libs/issues/996#issuecomment-710437088\n const overrideType = element.props?.__type__;\n const type = overrideType || defaultType;\n const Components = Array.isArray(Component) ? Component : [Component];\n return Components.some(AComponent => typeof type !== 'string' && isComponent(AComponent, type));\n}\n\n// Returns all children that are valid elements as an array. Can optionally be\n// filtered by passing `predicate`.\nfunction elementChildren(children, predicate = () => true) {\n return Children.toArray(children).filter(child => /*#__PURE__*/isValidElement(child) && predicate(child));\n}\nfunction ConditionalWrapper({\n condition,\n wrapper,\n children\n}) {\n return condition ? wrapper(children) : children;\n}\nfunction ConditionalRender({\n condition,\n children\n}) {\n return condition ? children : null;\n}\nfunction hotReloadComponentCheck(AComponent, AnotherComponent) {\n const componentName = AComponent.name;\n const anotherComponentName = AnotherComponent.displayName;\n return AComponent === AnotherComponent || Boolean(componentName) && componentName === anotherComponentName;\n}\n\nexport { ConditionalRender, ConditionalWrapper, elementChildren, isElementOfType, wrapWithComponent };\n","var styles = {\n \"Popover\": \"Polaris-Popover\",\n \"PopoverOverlay\": \"Polaris-Popover__PopoverOverlay\",\n \"PopoverOverlay-noAnimation\": \"Polaris-Popover__PopoverOverlay--noAnimation\",\n \"PopoverOverlay-entering\": \"Polaris-Popover__PopoverOverlay--entering\",\n \"PopoverOverlay-open\": \"Polaris-Popover__PopoverOverlay--open\",\n \"measuring\": \"Polaris-Popover--measuring\",\n \"PopoverOverlay-exiting\": \"Polaris-Popover__PopoverOverlay--exiting\",\n \"fullWidth\": \"Polaris-Popover--fullWidth\",\n \"Content\": \"Polaris-Popover__Content\",\n \"positionedAbove\": \"Polaris-Popover--positionedAbove\",\n \"positionedCover\": \"Polaris-Popover--positionedCover\",\n \"ContentContainer\": \"Polaris-Popover__ContentContainer\",\n \"Content-fullHeight\": \"Polaris-Popover__Content--fullHeight\",\n \"Content-fluidContent\": \"Polaris-Popover__Content--fluidContent\",\n \"Pane\": \"Polaris-Popover__Pane\",\n \"Pane-fixed\": \"Polaris-Popover__Pane--fixed\",\n \"Pane-subdued\": \"Polaris-Popover__Pane--subdued\",\n \"Pane-captureOverscroll\": \"Polaris-Popover__Pane--captureOverscroll\",\n \"Section\": \"Polaris-Popover__Section\",\n \"FocusTracker\": \"Polaris-Popover__FocusTracker\",\n \"PopoverOverlay-hideOnPrint\": \"Polaris-Popover__PopoverOverlay--hideOnPrint\"\n};\n\nexport { styles as default };\n","import React from 'react';\nimport styles from '../../Popover.css.js';\nimport { Box } from '../../../Box/Box.js';\n\nfunction Section({\n children\n}) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Section\n }, /*#__PURE__*/React.createElement(Box, {\n paddingInlineStart: \"300\",\n paddingInlineEnd: \"300\",\n paddingBlockStart: \"200\",\n paddingBlockEnd: \"150\"\n }, children));\n}\n\nexport { Section };\n","import { useRef } from 'react';\n\nconst UNIQUE_IDENTIFIER = Symbol('unique_identifier');\n\n/**\n * useLazyRef provides a lazy initial value, similar to lazy\n * initial state the initialValue is the value used during\n * initialization and disregarded after that. Use this hook\n * for expensive initialization.\n * @param initialValue - A function that will return the initial\n * value and be disregarded after that\n * @returns MutableRefObject - Returns a ref object with the\n * results from invoking initial value\n * @example\n * function ComponentExample() {\n * const title = useLazyRef(() => someExpensiveComputation());\n * return

{title.current}

;\n * }\n */\nfunction useLazyRef(initialValue) {\n const lazyRef = useRef(UNIQUE_IDENTIFIER);\n if (lazyRef.current === UNIQUE_IDENTIFIER) {\n lazyRef.current = initialValue();\n }\n return lazyRef;\n}\n\nexport { useLazyRef };\n","import { createContext } from 'react';\n\nconst ScrollableContext = /*#__PURE__*/createContext(undefined);\n\nexport { ScrollableContext };\n","var styles = {\n \"Scrollable\": \"Polaris-Scrollable\",\n \"hasTopShadow\": \"Polaris-Scrollable--hasTopShadow\",\n \"hasBottomShadow\": \"Polaris-Scrollable--hasBottomShadow\",\n \"horizontal\": \"Polaris-Scrollable--horizontal\",\n \"vertical\": \"Polaris-Scrollable--vertical\",\n \"scrollbarWidthThin\": \"Polaris-Scrollable--scrollbarWidthThin\",\n \"scrollbarWidthNone\": \"Polaris-Scrollable--scrollbarWidthNone\",\n \"scrollbarWidthAuto\": \"Polaris-Scrollable--scrollbarWidthAuto\",\n \"scrollbarGutterStable\": \"Polaris-Scrollable--scrollbarGutterStable\",\n \"scrollbarGutterStableboth-edges\": \"Polaris-Scrollable__scrollbarGutterStableboth--edges\"\n};\n\nexport { styles as default };\n","import React, { forwardRef, useState, useRef, useCallback, useImperativeHandle, useEffect } from 'react';\nimport { debounce } from '../../utilities/debounce.js';\nimport { classNames, variationName } from '../../utilities/css.js';\nimport { scrollable } from '../shared.js';\nimport { useLazyRef } from '../../utilities/use-lazy-ref.js';\nimport { useComponentDidMount } from '../../utilities/use-component-did-mount.js';\nimport { ScrollableContext } from './context.js';\nimport styles from './Scrollable.css.js';\nimport { ScrollTo } from './components/ScrollTo/ScrollTo.js';\nimport { StickyManager } from '../../utilities/sticky-manager/sticky-manager.js';\nimport { StickyManagerContext } from '../../utilities/sticky-manager/context.js';\n\nconst MAX_SCROLL_HINT_DISTANCE = 100;\nconst LOW_RES_BUFFER = 2;\nconst ScrollableComponent = /*#__PURE__*/forwardRef(({\n children,\n className,\n horizontal = true,\n vertical = true,\n shadow,\n hint,\n focusable,\n scrollbarWidth = 'thin',\n scrollbarGutter,\n onScrolledToBottom,\n ...rest\n}, forwardedRef) => {\n const [topShadow, setTopShadow] = useState(false);\n const [bottomShadow, setBottomShadow] = useState(false);\n const stickyManager = useLazyRef(() => new StickyManager());\n const scrollArea = useRef(null);\n const scrollTo = useCallback((scrollY, options = {}) => {\n const optionsBehavior = options.behavior || 'smooth';\n const behavior = prefersReducedMotion() ? 'auto' : optionsBehavior;\n // @ts-expect-error TS removed \"instant\" option but browsers support it.\n scrollArea.current?.scrollTo({\n top: scrollY,\n behavior\n });\n }, []);\n const defaultRef = useRef();\n useImperativeHandle(forwardedRef || defaultRef, () => ({\n scrollTo\n }));\n const handleScroll = useCallback(() => {\n const currentScrollArea = scrollArea.current;\n if (!currentScrollArea) {\n return;\n }\n requestAnimationFrame(() => {\n const {\n scrollTop,\n clientHeight,\n scrollHeight\n } = currentScrollArea;\n const canScroll = Boolean(scrollHeight > clientHeight);\n const isBelowTopOfScroll = Boolean(scrollTop > 0);\n const isAtBottomOfScroll = Boolean(scrollTop + clientHeight >= scrollHeight - LOW_RES_BUFFER);\n setTopShadow(isBelowTopOfScroll);\n setBottomShadow(!isAtBottomOfScroll);\n if (canScroll && isAtBottomOfScroll && onScrolledToBottom) {\n onScrolledToBottom();\n }\n });\n }, [onScrolledToBottom]);\n useComponentDidMount(() => {\n handleScroll();\n if (hint) {\n requestAnimationFrame(() => performScrollHint(scrollArea.current));\n }\n });\n useEffect(() => {\n const currentScrollArea = scrollArea.current;\n if (!currentScrollArea) {\n return;\n }\n const handleResize = debounce(handleScroll, 50, {\n trailing: true\n });\n stickyManager.current?.setContainer(currentScrollArea);\n currentScrollArea.addEventListener('scroll', handleScroll);\n globalThis.addEventListener('resize', handleResize);\n return () => {\n currentScrollArea.removeEventListener('scroll', handleScroll);\n globalThis.removeEventListener('resize', handleResize);\n };\n }, [stickyManager, handleScroll]);\n const finalClassName = classNames(className, styles.Scrollable, vertical && styles.vertical, horizontal && styles.horizontal, shadow && topShadow && styles.hasTopShadow, shadow && bottomShadow && styles.hasBottomShadow, scrollbarWidth && styles[variationName('scrollbarWidth', scrollbarWidth)], scrollbarGutter && styles[variationName('scrollbarGutter', scrollbarGutter.replace(' ', ''))]);\n return /*#__PURE__*/React.createElement(ScrollableContext.Provider, {\n value: scrollTo\n }, /*#__PURE__*/React.createElement(StickyManagerContext.Provider, {\n value: stickyManager.current\n }, /*#__PURE__*/React.createElement(\"div\", Object.assign({\n className: finalClassName\n }, scrollable.props, rest, {\n ref: scrollArea\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n ,\n tabIndex: focusable ? 0 : undefined\n }), children)));\n});\nScrollableComponent.displayName = 'Scrollable';\nfunction prefersReducedMotion() {\n try {\n return window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n } catch (err) {\n return false;\n }\n}\nfunction performScrollHint(elem) {\n if (!elem || prefersReducedMotion()) {\n return;\n }\n const scrollableDistance = elem.scrollHeight - elem.clientHeight;\n const distanceToPeek = Math.min(MAX_SCROLL_HINT_DISTANCE, scrollableDistance) - LOW_RES_BUFFER;\n const goBackToTop = () => {\n requestAnimationFrame(() => {\n if (elem.scrollTop >= distanceToPeek) {\n elem.removeEventListener('scroll', goBackToTop);\n elem.scrollTo({\n top: 0,\n behavior: 'smooth'\n });\n }\n });\n };\n elem.addEventListener('scroll', goBackToTop);\n elem.scrollTo({\n top: MAX_SCROLL_HINT_DISTANCE,\n behavior: 'smooth'\n });\n}\nconst forNode = node => {\n const closestElement = node.closest(scrollable.selector);\n return closestElement instanceof HTMLElement ? closestElement : document;\n};\n// @ts-expect-error - expected functions/sub-components are assigned after declaration\nconst Scrollable = ScrollableComponent;\nScrollable.ScrollTo = ScrollTo;\nScrollable.forNode = forNode;\n\nexport { Scrollable };\n","import { useRef } from 'react';\nimport { useIsAfterInitialMount } from './use-is-after-initial-mount.js';\n\n/**\n * Similarly to the life-cycle method componentDidMount, useComponentDidMount\n * will be invoked after the component has mounted, and only the initial mount.\n * @param callback Defines a callback to invoke once the component has\n * initially mounted.\n * @example\n * function Playground({active}) {\n * useComponentDidMount(() => {\n * if (active) {\n * console.warning(`Component has mounted.`);\n * }\n * });\n *\n * return null;\n * }\n */\nfunction useComponentDidMount(callback) {\n const isAfterInitialMount = useIsAfterInitialMount();\n const hasInvokedLifeCycle = useRef(false);\n if (isAfterInitialMount && !hasInvokedLifeCycle.current) {\n hasInvokedLifeCycle.current = true;\n return callback();\n }\n}\n\nexport { useComponentDidMount };\n","import React from 'react';\nimport { classNames } from '../../../../utilities/css.js';\nimport { wrapWithComponent } from '../../../../utilities/components.js';\nimport styles from '../../Popover.css.js';\nimport { Section } from '../Section/Section.js';\nimport { Scrollable } from '../../../Scrollable/Scrollable.js';\n\nfunction Pane({\n captureOverscroll = false,\n fixed,\n sectioned,\n children,\n height,\n maxHeight,\n minHeight,\n subdued,\n onScrolledToBottom\n}) {\n const className = classNames(styles.Pane, fixed && styles['Pane-fixed'], subdued && styles['Pane-subdued'], captureOverscroll && styles['Pane-captureOverscroll']);\n const content = sectioned ? wrapWithComponent(children, Section, {}) : children;\n const style = {\n height,\n maxHeight,\n minHeight\n };\n return fixed ? /*#__PURE__*/React.createElement(\"div\", {\n style: style,\n className: className\n }, content) : /*#__PURE__*/React.createElement(Scrollable, {\n shadow: true,\n className: className,\n style: style,\n onScrolledToBottom: onScrolledToBottom,\n scrollbarWidth: \"thin\"\n }, content);\n}\n\nexport { Pane };\n","import React, { useRef, useContext, useEffect, useId } from 'react';\nimport { ScrollableContext } from '../../context.js';\n\nfunction ScrollTo() {\n const anchorNode = useRef(null);\n const scrollToPosition = useContext(ScrollableContext);\n useEffect(() => {\n if (!scrollToPosition || !anchorNode.current) {\n return;\n }\n scrollToPosition(anchorNode.current.offsetTop);\n }, [scrollToPosition]);\n const id = useId();\n // eslint-disable-next-line jsx-a11y/anchor-is-valid\n return /*#__PURE__*/React.createElement(\"a\", {\n id: id,\n ref: anchorNode\n });\n}\n\nexport { ScrollTo };\n","import { useRef, useCallback, useEffect } from 'react';\nimport { useIsomorphicLayoutEffect } from '../../utilities/use-isomorphic-layout-effect.js';\n\nfunction KeypressListener({\n keyCode,\n handler,\n keyEvent = 'keyup',\n options,\n useCapture,\n document: ownerDocument = globalThis.document\n}) {\n const tracked = useRef({\n handler,\n keyCode\n });\n useIsomorphicLayoutEffect(() => {\n tracked.current = {\n handler,\n keyCode\n };\n }, [handler, keyCode]);\n const handleKeyEvent = useCallback(event => {\n const {\n handler,\n keyCode\n } = tracked.current;\n if (event.keyCode === keyCode) {\n handler(event);\n }\n }, []);\n useEffect(() => {\n ownerDocument.addEventListener(keyEvent, handleKeyEvent, useCapture || options);\n return () => {\n ownerDocument.removeEventListener(keyEvent, handleKeyEvent, useCapture || options);\n };\n }, [keyEvent, handleKeyEvent, useCapture, options, ownerDocument]);\n return null;\n}\n\nexport { KeypressListener };\n","import { Rect } from '../../../utilities/geometry.js';\n\nfunction calculateVerticalPosition(activatorRect, overlayRect, overlayMargins, scrollableContainerRect, containerRect, preferredPosition, fixed, topBarOffset = 0) {\n const activatorTop = activatorRect.top;\n const activatorBottom = activatorTop + activatorRect.height;\n const spaceAbove = activatorRect.top - topBarOffset;\n const spaceBelow = containerRect.height - activatorRect.top - activatorRect.height;\n const desiredHeight = overlayRect.height;\n const verticalMargins = overlayMargins.activator + overlayMargins.container;\n const minimumSpaceToScroll = overlayMargins.container;\n const distanceToTopScroll = activatorRect.top - Math.max(scrollableContainerRect.top, 0);\n const distanceToBottomScroll = containerRect.top + Math.min(containerRect.height, scrollableContainerRect.top + scrollableContainerRect.height) - (activatorRect.top + activatorRect.height);\n const enoughSpaceFromTopScroll = distanceToTopScroll >= minimumSpaceToScroll;\n const enoughSpaceFromBottomScroll = distanceToBottomScroll >= minimumSpaceToScroll;\n const heightIfAbove = Math.min(spaceAbove, desiredHeight);\n const heightIfBelow = Math.min(spaceBelow, desiredHeight);\n const heightIfAboveCover = Math.min(spaceAbove + activatorRect.height, desiredHeight);\n const heightIfBelowCover = Math.min(spaceBelow + activatorRect.height, desiredHeight);\n const containerRectTop = fixed ? 0 : containerRect.top;\n const positionIfAbove = {\n height: heightIfAbove - verticalMargins,\n top: activatorTop + containerRectTop - heightIfAbove,\n positioning: 'above'\n };\n const positionIfBelow = {\n height: heightIfBelow - verticalMargins,\n top: activatorBottom + containerRectTop,\n positioning: 'below'\n };\n const positionIfCoverBelow = {\n height: heightIfBelowCover - verticalMargins,\n top: activatorTop + containerRectTop,\n positioning: 'cover'\n };\n const positionIfCoverAbove = {\n height: heightIfAboveCover - verticalMargins,\n top: activatorTop + containerRectTop - heightIfAbove + activatorRect.height + verticalMargins,\n positioning: 'cover'\n };\n if (preferredPosition === 'above') {\n return (enoughSpaceFromTopScroll || distanceToTopScroll >= distanceToBottomScroll && !enoughSpaceFromBottomScroll) && (spaceAbove > desiredHeight || spaceAbove > spaceBelow) ? positionIfAbove : positionIfBelow;\n }\n if (preferredPosition === 'below') {\n return (enoughSpaceFromBottomScroll || distanceToBottomScroll >= distanceToTopScroll && !enoughSpaceFromTopScroll) && (spaceBelow > desiredHeight || spaceBelow > spaceAbove) ? positionIfBelow : positionIfAbove;\n }\n if (preferredPosition === 'cover') {\n return (enoughSpaceFromBottomScroll || distanceToBottomScroll >= distanceToTopScroll && !enoughSpaceFromTopScroll) && (spaceBelow + activatorRect.height > desiredHeight || spaceBelow > spaceAbove) ? positionIfCoverBelow : positionIfCoverAbove;\n }\n if (enoughSpaceFromTopScroll && enoughSpaceFromBottomScroll) {\n return spaceAbove > spaceBelow ? positionIfAbove : positionIfBelow;\n }\n return distanceToTopScroll > minimumSpaceToScroll ? positionIfAbove : positionIfBelow;\n}\nfunction calculateHorizontalPosition(activatorRect, overlayRect, containerRect, overlayMargins, preferredAlignment) {\n const maximum = containerRect.width - overlayRect.width;\n if (preferredAlignment === 'left') {\n return Math.min(maximum, Math.max(0, activatorRect.left - overlayMargins.horizontal));\n } else if (preferredAlignment === 'right') {\n const activatorRight = containerRect.width - (activatorRect.left + activatorRect.width);\n return Math.min(maximum, Math.max(0, activatorRight - overlayMargins.horizontal));\n }\n return Math.min(maximum, Math.max(0, activatorRect.center.x - overlayRect.width / 2));\n}\nfunction rectIsOutsideOfRect(inner, outer) {\n const {\n center\n } = inner;\n return center.y < outer.top || center.y > outer.top + outer.height;\n}\nfunction intersectionWithViewport(rect, viewport = windowRect()) {\n const top = Math.max(rect.top, 0);\n const left = Math.max(rect.left, 0);\n const bottom = Math.min(rect.top + rect.height, viewport.height);\n const right = Math.min(rect.left + rect.width, viewport.width);\n return new Rect({\n top,\n left,\n height: bottom - top,\n width: right - left\n });\n}\nfunction windowRect(node) {\n const document = node?.ownerDocument || globalThis.document;\n const window = document.defaultView || globalThis.window;\n return new Rect({\n top: window.scrollY,\n left: window.scrollX,\n height: window.innerHeight,\n width: document.body.clientWidth\n });\n}\n\nexport { calculateHorizontalPosition, calculateVerticalPosition, intersectionWithViewport, rectIsOutsideOfRect, windowRect };\n","var styles = {\n \"PositionedOverlay\": \"Polaris-PositionedOverlay\",\n \"fixed\": \"Polaris-PositionedOverlay--fixed\",\n \"calculating\": \"Polaris-PositionedOverlay--calculating\",\n \"preventInteraction\": \"Polaris-PositionedOverlay--preventInteraction\"\n};\n\nexport { styles as default };\n","import React, { PureComponent } from 'react';\nimport { classNames } from '../../utilities/css.js';\nimport { getRectForNode, Rect } from '../../utilities/geometry.js';\nimport { dataPolarisTopBar, layer } from '../shared.js';\nimport { windowRect, calculateVerticalPosition, calculateHorizontalPosition, rectIsOutsideOfRect, intersectionWithViewport } from './utilities/math.js';\nimport styles from './PositionedOverlay.css.js';\nimport { Scrollable } from '../Scrollable/Scrollable.js';\nimport { EventListener } from '../EventListener/EventListener.js';\n\nconst OBSERVER_CONFIG = {\n childList: true,\n subtree: true,\n characterData: true,\n attributeFilter: ['style']\n};\nclass PositionedOverlay extends PureComponent {\n constructor(props) {\n super(props);\n this.state = {\n measuring: true,\n activatorRect: getRectForNode(this.props.activator),\n right: undefined,\n left: undefined,\n top: 0,\n height: 0,\n width: null,\n positioning: 'below',\n zIndex: null,\n outsideScrollableContainer: false,\n lockPosition: false,\n chevronOffset: 0\n };\n this.overlay = null;\n this.scrollableContainers = [];\n this.overlayDetails = () => {\n const {\n measuring,\n left,\n right,\n positioning,\n height,\n activatorRect,\n chevronOffset\n } = this.state;\n return {\n measuring,\n left,\n right,\n desiredHeight: height,\n positioning,\n activatorRect,\n chevronOffset\n };\n };\n this.setOverlay = node => {\n this.overlay = node;\n };\n this.setScrollableContainers = () => {\n const containers = [];\n let scrollableContainer = Scrollable.forNode(this.props.activator);\n if (scrollableContainer) {\n containers.push(scrollableContainer);\n while (scrollableContainer?.parentElement) {\n scrollableContainer = Scrollable.forNode(scrollableContainer.parentElement);\n containers.push(scrollableContainer);\n }\n }\n this.scrollableContainers = containers;\n };\n this.registerScrollHandlers = () => {\n this.scrollableContainers.forEach(node => {\n node.addEventListener('scroll', this.handleMeasurement);\n });\n };\n this.unregisterScrollHandlers = () => {\n this.scrollableContainers.forEach(node => {\n node.removeEventListener('scroll', this.handleMeasurement);\n });\n };\n this.handleMeasurement = () => {\n const {\n lockPosition,\n top\n } = this.state;\n this.observer.disconnect();\n this.setState(({\n left,\n top,\n right\n }) => ({\n left,\n right,\n top,\n height: 0,\n positioning: 'below',\n measuring: true\n }), () => {\n if (this.overlay == null || this.firstScrollableContainer == null) {\n return;\n }\n const {\n activator,\n preferredPosition = 'below',\n preferredAlignment = 'center',\n onScrollOut,\n fullWidth,\n fixed,\n preferInputActivator = true\n } = this.props;\n const document = activator.ownerDocument;\n const preferredActivator = preferInputActivator ? activator.querySelector('input') || activator : activator;\n const activatorRect = getRectForNode(preferredActivator);\n const currentOverlayRect = getRectForNode(this.overlay);\n const scrollableElement = isDocument(this.firstScrollableContainer) ? document.body : this.firstScrollableContainer;\n const scrollableContainerRect = getRectForNode(scrollableElement);\n const overlayRect = fullWidth || preferredPosition === 'cover' ? new Rect({\n ...currentOverlayRect,\n width: activatorRect.width\n }) : currentOverlayRect;\n\n // If `body` is 100% height, it still acts as though it were not constrained to that size. This adjusts for that.\n if (scrollableElement === document.body) {\n scrollableContainerRect.height = document.body.scrollHeight;\n }\n let topBarOffset = 0;\n const topBarElement = scrollableElement.querySelector(`${dataPolarisTopBar.selector}`);\n if (topBarElement) {\n topBarOffset = topBarElement.clientHeight;\n }\n let overlayMargins = {\n activator: 0,\n container: 0,\n horizontal: 0\n };\n if (this.overlay.firstElementChild) {\n const nodeMargins = getMarginsForNode(this.overlay.firstElementChild);\n overlayMargins = nodeMargins;\n }\n const containerRect = windowRect(activator);\n const zIndexForLayer = getZIndexForLayerFromNode(activator);\n const zIndex = zIndexForLayer == null ? zIndexForLayer : zIndexForLayer + 1;\n const verticalPosition = calculateVerticalPosition(activatorRect, overlayRect, overlayMargins, scrollableContainerRect, containerRect, preferredPosition, fixed, topBarOffset);\n const horizontalPosition = calculateHorizontalPosition(activatorRect, overlayRect, containerRect, overlayMargins, preferredAlignment);\n const chevronOffset = activatorRect.center.x - horizontalPosition + overlayMargins.horizontal * 2;\n this.setState({\n measuring: false,\n activatorRect: getRectForNode(activator),\n left: preferredAlignment !== 'right' ? horizontalPosition : undefined,\n right: preferredAlignment === 'right' ? horizontalPosition : undefined,\n top: lockPosition ? top : verticalPosition.top,\n lockPosition: Boolean(fixed),\n height: verticalPosition.height || 0,\n width: fullWidth || preferredPosition === 'cover' ? overlayRect.width : null,\n positioning: verticalPosition.positioning,\n outsideScrollableContainer: onScrollOut != null && rectIsOutsideOfRect(activatorRect, intersectionWithViewport(scrollableContainerRect, containerRect)),\n zIndex,\n chevronOffset\n }, () => {\n if (!this.overlay) return;\n this.observer.observe(this.overlay, OBSERVER_CONFIG);\n this.observer.observe(activator, OBSERVER_CONFIG);\n });\n });\n };\n this.observer = new MutationObserver(this.handleMeasurement);\n }\n componentDidMount() {\n this.setScrollableContainers();\n if (this.scrollableContainers.length && !this.props.fixed) {\n this.registerScrollHandlers();\n }\n this.handleMeasurement();\n }\n componentWillUnmount() {\n this.observer.disconnect();\n if (this.scrollableContainers.length && !this.props.fixed) {\n this.unregisterScrollHandlers();\n }\n }\n componentDidUpdate() {\n const {\n outsideScrollableContainer,\n top\n } = this.state;\n const {\n onScrollOut,\n active\n } = this.props;\n if (active && onScrollOut != null && top !== 0 && outsideScrollableContainer) {\n onScrollOut();\n }\n }\n render() {\n const {\n left,\n right,\n top,\n zIndex,\n width\n } = this.state;\n const {\n render,\n fixed,\n preventInteraction,\n classNames: propClassNames,\n zIndexOverride\n } = this.props;\n const style = {\n top: top == null || isNaN(top) ? undefined : top,\n left: left == null || isNaN(left) ? undefined : left,\n right: right == null || isNaN(right) ? undefined : right,\n width: width == null || isNaN(width) ? undefined : width,\n zIndex: zIndexOverride || zIndex || undefined\n };\n const className = classNames(styles.PositionedOverlay, fixed && styles.fixed, preventInteraction && styles.preventInteraction, propClassNames);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n style: style,\n ref: this.setOverlay\n }, /*#__PURE__*/React.createElement(EventListener, {\n event: \"resize\",\n handler: this.handleMeasurement,\n window: this.overlay?.ownerDocument.defaultView\n }), render(this.overlayDetails()));\n }\n get firstScrollableContainer() {\n return this.scrollableContainers[0] ?? null;\n }\n forceUpdatePosition() {\n // Wait a single animation frame before re-measuring.\n // Consumer's may also need to setup their own timers for\n // triggering forceUpdatePosition() `children` use animation.\n // Ideally, forceUpdatePosition() is fired at the end of a transition event.\n requestAnimationFrame(this.handleMeasurement);\n }\n}\nfunction getMarginsForNode(node) {\n // Accounts for when the node is moved between documents\n const window = node.ownerDocument.defaultView || globalThis.window;\n const nodeStyles = window.getComputedStyle(node);\n return {\n activator: parseFloat(nodeStyles.marginTop || '0'),\n container: parseFloat(nodeStyles.marginBottom || '0'),\n horizontal: parseFloat(nodeStyles.marginLeft || '0')\n };\n}\nfunction getZIndexForLayerFromNode(node) {\n const layerNode = node.closest(layer.selector) || node.ownerDocument.body;\n const zIndex = layerNode === node.ownerDocument.body ? 'auto' : parseInt(window.getComputedStyle(layerNode).zIndex || '0', 10);\n return zIndex === 'auto' || isNaN(zIndex) ? null : zIndex;\n}\nfunction isDocument(node) {\n return node.ownerDocument === null;\n}\n\nexport { PositionedOverlay };\n","import React, { PureComponent, createRef, Children } from 'react';\nimport { themeDefault } from '@shopify/polaris-tokens';\nimport { findFirstKeyboardFocusableNode } from '../../../../utilities/focus.js';\nimport { classNames, variationName } from '../../../../utilities/css.js';\nimport { isElementOfType, wrapWithComponent } from '../../../../utilities/components.js';\nimport { Key } from '../../../../types.js';\nimport { overlay } from '../../../shared.js';\nimport styles from '../../Popover.css.js';\nimport { Pane } from '../Pane/Pane.js';\nimport { PortalsManagerContext } from '../../../../utilities/portals/context.js';\nimport { EventListener } from '../../../EventListener/EventListener.js';\nimport { KeypressListener } from '../../../KeypressListener/KeypressListener.js';\nimport { PositionedOverlay } from '../../../PositionedOverlay/PositionedOverlay.js';\n\nlet PopoverCloseSource = /*#__PURE__*/function (PopoverCloseSource) {\n PopoverCloseSource[PopoverCloseSource[\"Click\"] = 0] = \"Click\";\n PopoverCloseSource[PopoverCloseSource[\"EscapeKeypress\"] = 1] = \"EscapeKeypress\";\n PopoverCloseSource[PopoverCloseSource[\"FocusOut\"] = 2] = \"FocusOut\";\n PopoverCloseSource[PopoverCloseSource[\"ScrollOut\"] = 3] = \"ScrollOut\";\n return PopoverCloseSource;\n}({});\nvar TransitionStatus = /*#__PURE__*/function (TransitionStatus) {\n TransitionStatus[\"Entering\"] = \"entering\";\n TransitionStatus[\"Entered\"] = \"entered\";\n TransitionStatus[\"Exiting\"] = \"exiting\";\n TransitionStatus[\"Exited\"] = \"exited\";\n return TransitionStatus;\n}(TransitionStatus || {});\nclass PopoverOverlay extends PureComponent {\n constructor(props) {\n super(props);\n this.state = {\n transitionStatus: this.props.active ? TransitionStatus.Entering : TransitionStatus.Exited\n };\n this.contentNode = /*#__PURE__*/createRef();\n // eslint-disable-next-line @shopify/react-no-multiple-render-methods\n this.renderPopover = overlayDetails => {\n const {\n measuring,\n desiredHeight,\n positioning\n } = overlayDetails;\n const {\n id,\n children,\n sectioned,\n fullWidth,\n fullHeight,\n fluidContent,\n hideOnPrint,\n autofocusTarget,\n captureOverscroll\n } = this.props;\n const isCovering = positioning === 'cover';\n const className = classNames(styles.Popover, measuring && styles.measuring, (fullWidth || isCovering) && styles.fullWidth, hideOnPrint && styles['PopoverOverlay-hideOnPrint'], positioning && styles[variationName('positioned', positioning)]);\n const contentStyles = measuring ? undefined : {\n height: desiredHeight\n };\n const contentClassNames = classNames(styles.Content, fullHeight && styles['Content-fullHeight'], fluidContent && styles['Content-fluidContent']);\n const {\n window\n } = this.state;\n return /*#__PURE__*/React.createElement(\"div\", Object.assign({\n className: className\n }, overlay.props), /*#__PURE__*/React.createElement(EventListener, {\n event: \"click\",\n handler: this.handleClick,\n window: window\n }), /*#__PURE__*/React.createElement(EventListener, {\n event: \"touchstart\",\n handler: this.handleClick,\n window: window\n }), /*#__PURE__*/React.createElement(KeypressListener, {\n keyCode: Key.Escape,\n handler: this.handleEscape,\n document: window?.document\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: styles.FocusTracker\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n ,\n tabIndex: 0,\n onFocus: this.handleFocusFirstItem\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: styles.ContentContainer\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: id,\n tabIndex: autofocusTarget === 'none' ? undefined : -1,\n className: contentClassNames,\n style: contentStyles,\n ref: this.contentNode\n }, renderPopoverContent(children, {\n captureOverscroll,\n sectioned\n }))), /*#__PURE__*/React.createElement(\"div\", {\n className: styles.FocusTracker\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n ,\n tabIndex: 0,\n onFocus: this.handleFocusLastItem\n }));\n };\n this.handleClick = event => {\n const target = event.target;\n const {\n contentNode,\n props: {\n activator,\n onClose,\n preventCloseOnChildOverlayClick\n }\n } = this;\n const composedPath = event.composedPath();\n const wasDescendant = preventCloseOnChildOverlayClick ? wasPolarisPortalDescendant(composedPath, this.context.container) : wasContentNodeDescendant(composedPath, contentNode);\n const isActivatorDescendant = nodeContainsDescendant(activator, target);\n if (wasDescendant || isActivatorDescendant || this.state.transitionStatus !== TransitionStatus.Entered) {\n return;\n }\n onClose(PopoverCloseSource.Click);\n };\n this.handleScrollOut = () => {\n this.props.onClose(PopoverCloseSource.ScrollOut);\n };\n this.handleEscape = event => {\n const target = event.target;\n const {\n contentNode,\n props: {\n activator\n }\n } = this;\n const composedPath = event.composedPath();\n const wasDescendant = wasContentNodeDescendant(composedPath, contentNode);\n const isActivatorDescendant = nodeContainsDescendant(activator, target);\n if (wasDescendant || isActivatorDescendant) {\n this.props.onClose(PopoverCloseSource.EscapeKeypress);\n }\n };\n this.handleFocusFirstItem = () => {\n this.props.onClose(PopoverCloseSource.FocusOut);\n };\n this.handleFocusLastItem = () => {\n this.props.onClose(PopoverCloseSource.FocusOut);\n };\n this.overlayRef = /*#__PURE__*/createRef();\n }\n forceUpdatePosition() {\n this.overlayRef.current?.forceUpdatePosition();\n }\n changeTransitionStatus(transitionStatus, cb) {\n this.setState({\n transitionStatus\n }, cb);\n // Forcing a reflow to enable the animation\n this.contentNode.current && this.contentNode.current.getBoundingClientRect();\n }\n componentDidMount() {\n if (this.props.active) {\n this.focusContent();\n this.changeTransitionStatus(TransitionStatus.Entered);\n }\n this.observer = new ResizeObserver(() => {\n this.setState({\n /**\n * This is a workaround to enable event listeners to be\n * re-attached when moving from one document to another\n * when using a React portal across iframes.\n * Using a resize observer works because when the clientWidth\n * will go from 0 to the real width after the activator\n * gets rendered in its new place.\n */\n window: this.props.activator.ownerDocument.defaultView\n });\n });\n this.observer.observe(this.props.activator);\n }\n componentDidUpdate(oldProps) {\n if (this.props.active && !oldProps.active) {\n this.focusContent();\n this.changeTransitionStatus(TransitionStatus.Entering, () => {\n this.clearTransitionTimeout();\n this.enteringTimer = window.setTimeout(() => {\n this.setState({\n transitionStatus: TransitionStatus.Entered\n });\n // Important: This will not update when the active theme changes.\n // Update this to `useTheme` once converted to a function component.\n }, parseInt(themeDefault.motion['motion-duration-100'], 10));\n });\n }\n if (!this.props.active && oldProps.active) {\n this.clearTransitionTimeout();\n this.setState({\n transitionStatus: TransitionStatus.Exited\n });\n }\n if (this.props.activator !== oldProps.activator) {\n this.observer?.unobserve(oldProps.activator);\n this.observer?.observe(this.props.activator);\n }\n }\n componentWillUnmount() {\n this.clearTransitionTimeout();\n this.observer?.disconnect();\n }\n render() {\n const {\n active,\n activator,\n fullWidth,\n preferredPosition = 'below',\n preferredAlignment = 'center',\n preferInputActivator = true,\n fixed,\n zIndexOverride\n } = this.props;\n const {\n transitionStatus\n } = this.state;\n if (transitionStatus === TransitionStatus.Exited && !active) return null;\n const className = classNames(styles.PopoverOverlay, transitionStatus === TransitionStatus.Entering && styles['PopoverOverlay-entering'], transitionStatus === TransitionStatus.Entered && styles['PopoverOverlay-open'], transitionStatus === TransitionStatus.Exiting && styles['PopoverOverlay-exiting'], preferredPosition === 'cover' && styles['PopoverOverlay-noAnimation']);\n return /*#__PURE__*/React.createElement(PositionedOverlay, {\n ref: this.overlayRef,\n fullWidth: fullWidth,\n active: active,\n activator: activator,\n preferInputActivator: preferInputActivator,\n preferredPosition: preferredPosition,\n preferredAlignment: preferredAlignment,\n render: this.renderPopover.bind(this),\n fixed: fixed,\n onScrollOut: this.handleScrollOut,\n classNames: className,\n zIndexOverride: zIndexOverride\n });\n }\n clearTransitionTimeout() {\n if (this.enteringTimer) {\n window.clearTimeout(this.enteringTimer);\n }\n }\n focusContent() {\n const {\n autofocusTarget = 'container'\n } = this.props;\n if (autofocusTarget === 'none' || this.contentNode == null) {\n return;\n }\n requestAnimationFrame(() => {\n if (this.contentNode.current == null) {\n return;\n }\n const focusableChild = findFirstKeyboardFocusableNode(this.contentNode.current);\n if (focusableChild && autofocusTarget === 'first-node') {\n focusableChild.focus({\n preventScroll: process.env.NODE_ENV === 'development'\n });\n } else {\n this.contentNode.current.focus({\n preventScroll: process.env.NODE_ENV === 'development'\n });\n }\n });\n }\n}\nPopoverOverlay.contextType = PortalsManagerContext;\nfunction renderPopoverContent(children, props) {\n const childrenArray = Children.toArray(children);\n if (isElementOfType(childrenArray[0], Pane)) {\n return childrenArray;\n }\n return wrapWithComponent(childrenArray, Pane, props);\n}\nfunction nodeContainsDescendant(rootNode, descendant) {\n if (rootNode === descendant) {\n return true;\n }\n let parent = descendant.parentNode;\n while (parent != null) {\n if (parent === rootNode) {\n return true;\n }\n parent = parent.parentNode;\n }\n return false;\n}\nfunction wasContentNodeDescendant(composedPath, contentNode) {\n return contentNode.current != null && composedPath.includes(contentNode.current);\n}\nfunction wasPolarisPortalDescendant(composedPath, portalsContainerElement) {\n return composedPath.some(eventTarget => eventTarget instanceof Node && portalsContainerElement?.contains(eventTarget));\n}\n\nexport { PopoverCloseSource, PopoverOverlay, nodeContainsDescendant };\n","var styles = {\n \"themeContainer\": \"Polaris-ThemeProvider--themeContainer\"\n};\n\nexport { styles as default };\n","import React from 'react';\nimport { createThemeClassName, themeNameDefault } from '@shopify/polaris-tokens';\nimport { ThemeNameContext, ThemeContext, getTheme } from '../../utilities/use-theme.js';\nimport { classNames } from '../../utilities/css.js';\nimport styles from './ThemeProvider.css.js';\n\n/**\n * Allowlist of local themes\n * TODO: Replace `as const` with `satisfies ThemeName[]`\n */\nconst themeNamesLocal = ['light', 'dark-experimental'];\nconst isThemeNameLocal = name => themeNamesLocal.includes(name);\nfunction ThemeProvider(props) {\n const {\n as: ThemeContainer = 'div',\n children,\n className,\n theme: themeName = themeNameDefault\n } = props;\n return /*#__PURE__*/React.createElement(ThemeNameContext.Provider, {\n value: themeName\n }, /*#__PURE__*/React.createElement(ThemeContext.Provider, {\n value: getTheme(themeName)\n }, /*#__PURE__*/React.createElement(ThemeContainer, {\n \"data-portal-id\": props['data-portal-id'],\n className: classNames(createThemeClassName(themeName), styles.themeContainer, className)\n }, children)));\n}\n\nexport { ThemeProvider, isThemeNameLocal, themeNamesLocal };\n","import { themeNameDefault } from '@shopify/polaris-tokens';\nimport React, { useId, useEffect } from 'react';\nimport { createPortal } from 'react-dom';\nimport { useThemeName } from '../../utilities/use-theme.js';\nimport { usePortalsManager } from '../../utilities/portals/hooks.js';\nimport { ThemeProvider, isThemeNameLocal } from '../ThemeProvider/ThemeProvider.js';\n\nfunction Portal({\n children,\n idPrefix = '',\n onPortalCreated = noop\n}) {\n const themeName = useThemeName();\n const {\n container\n } = usePortalsManager();\n const uniqueId = useId();\n const portalId = idPrefix !== '' ? `${idPrefix}-${uniqueId}` : uniqueId;\n useEffect(() => {\n onPortalCreated();\n }, [onPortalCreated]);\n return container ? /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement(ThemeProvider, {\n theme: isThemeNameLocal(themeName) ? themeName : themeNameDefault,\n \"data-portal-id\": portalId\n }, children), container) : null;\n}\nfunction noop() {}\n\nexport { Portal };\n","import { useContext } from 'react';\nimport { PortalsManagerContext } from './context.js';\n\nfunction usePortalsManager() {\n const portalsManager = useContext(PortalsManagerContext);\n if (!portalsManager) {\n throw new Error('No portals manager was provided. Your application must be wrapped in an component. See https://polaris.shopify.com/components/app-provider for implementation instructions.');\n }\n return portalsManager;\n}\n\nexport { usePortalsManager };\n","import React, { forwardRef, useState, useRef, useId, useImperativeHandle, useCallback, useEffect, Children } from 'react';\nimport { findFirstFocusableNodeIncludingDisabled, focusNextFocusableNode } from '../../utilities/focus.js';\nimport { portal } from '../shared.js';\nimport { setActivatorAttributes } from './set-activator-attributes.js';\nimport { PopoverCloseSource, PopoverOverlay } from './components/PopoverOverlay/PopoverOverlay.js';\nimport { Pane } from './components/Pane/Pane.js';\nimport { Section } from './components/Section/Section.js';\nimport { Portal } from '../Portal/Portal.js';\n\n// TypeScript can't generate types that correctly infer the typing of\n// subcomponents so explicitly state the subcomponents in the type definition.\n// Letting this be implicit works in this project but fails in projects that use\n// generated *.d.ts files.\n\nconst PopoverComponent = /*#__PURE__*/forwardRef(function Popover({\n activatorWrapper = 'div',\n children,\n onClose,\n activator,\n preventFocusOnClose,\n active,\n fixed,\n ariaHaspopup,\n preferInputActivator = true,\n zIndexOverride,\n ...rest\n}, ref) {\n const [isDisplayed, setIsDisplay] = useState(false);\n const [activatorNode, setActivatorNode] = useState();\n const overlayRef = useRef(null);\n const activatorContainer = useRef(null);\n const WrapperComponent = activatorWrapper;\n const id = useId();\n function forceUpdatePosition() {\n overlayRef.current?.forceUpdatePosition();\n }\n const handleClose = source => {\n onClose(source);\n if (activatorContainer.current == null || preventFocusOnClose) {\n return;\n }\n if (source === PopoverCloseSource.FocusOut && activatorNode) {\n const focusableActivator = findFirstFocusableNodeIncludingDisabled(activatorNode) || findFirstFocusableNodeIncludingDisabled(activatorContainer.current) || activatorContainer.current;\n if (!focusNextFocusableNode(focusableActivator, isInPortal)) {\n focusableActivator.focus();\n }\n } else if (source === PopoverCloseSource.EscapeKeypress && activatorNode) {\n const focusableActivator = findFirstFocusableNodeIncludingDisabled(activatorNode) || findFirstFocusableNodeIncludingDisabled(activatorContainer.current) || activatorContainer.current;\n if (focusableActivator) {\n focusableActivator.focus();\n } else {\n focusNextFocusableNode(focusableActivator, isInPortal);\n }\n }\n };\n useImperativeHandle(ref, () => {\n return {\n forceUpdatePosition,\n close: (target = 'activator') => {\n const source = target === 'activator' ? PopoverCloseSource.EscapeKeypress : PopoverCloseSource.FocusOut;\n handleClose(source);\n }\n };\n });\n const setAccessibilityAttributes = useCallback(() => {\n if (activatorContainer.current == null) {\n return;\n }\n const firstFocusable = findFirstFocusableNodeIncludingDisabled(activatorContainer.current);\n const focusableActivator = firstFocusable || activatorContainer.current;\n const activatorDisabled = 'disabled' in focusableActivator && Boolean(focusableActivator.disabled);\n setActivatorAttributes(focusableActivator, {\n id,\n active,\n ariaHaspopup,\n activatorDisabled\n });\n }, [id, active, ariaHaspopup]);\n useEffect(() => {\n function setDisplayState() {\n /**\n * This is a workaround to prevent rendering the Popover when the content is moved into\n * a React portal that hasn't been rendered. We don't want to render the Popover in this\n * case because the auto-focus logic will break. We wait until the activatorContainer is\n * displayed, which is when it has an offsetParent, or if the activatorContainer is the\n * body, if it has a clientWidth bigger than 0.\n * See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent\n */\n\n setIsDisplay(Boolean(activatorContainer.current && (activatorContainer.current.offsetParent !== null || activatorContainer.current === activatorContainer.current.ownerDocument.body && activatorContainer.current.clientWidth > 0)));\n }\n if (!activatorContainer.current) {\n return;\n }\n const observer = new ResizeObserver(setDisplayState);\n observer.observe(activatorContainer.current);\n setDisplayState();\n return () => {\n observer.disconnect();\n };\n }, []);\n useEffect(() => {\n if (!activatorNode && activatorContainer.current) {\n setActivatorNode(activatorContainer.current.firstElementChild);\n } else if (activatorNode && activatorContainer.current && !activatorContainer.current.contains(activatorNode)) {\n setActivatorNode(activatorContainer.current.firstElementChild);\n }\n setAccessibilityAttributes();\n }, [activatorNode, setAccessibilityAttributes]);\n useEffect(() => {\n if (activatorNode && activatorContainer.current) {\n setActivatorNode(activatorContainer.current.firstElementChild);\n }\n setAccessibilityAttributes();\n }, [activatorNode, setAccessibilityAttributes]);\n const portal = activatorNode && isDisplayed ? /*#__PURE__*/React.createElement(Portal, {\n idPrefix: \"popover\"\n }, /*#__PURE__*/React.createElement(PopoverOverlay, Object.assign({\n ref: overlayRef,\n id: id,\n activator: activatorNode,\n preferInputActivator: preferInputActivator,\n onClose: handleClose,\n active: active,\n fixed: fixed,\n zIndexOverride: zIndexOverride\n }, rest), children)) : null;\n return /*#__PURE__*/React.createElement(WrapperComponent, {\n ref: activatorContainer\n }, Children.only(activator), portal);\n});\nfunction isInPortal(element) {\n let parentElement = element.parentElement;\n while (parentElement) {\n if (parentElement.matches(portal.selector)) return false;\n parentElement = parentElement.parentElement;\n }\n return true;\n}\nconst Popover = Object.assign(PopoverComponent, {\n Pane,\n Section\n});\n\nexport { Popover, PopoverCloseSource };\n","function setActivatorAttributes(activator, {\n id,\n active = false,\n ariaHaspopup,\n activatorDisabled = false\n}) {\n if (!activatorDisabled) {\n activator.tabIndex = activator.tabIndex || 0;\n }\n activator.setAttribute('aria-controls', id);\n activator.setAttribute('aria-owns', id);\n activator.setAttribute('aria-expanded', String(active));\n activator.setAttribute('data-state', active ? 'open' : 'closed');\n if (ariaHaspopup != null) {\n activator.setAttribute('aria-haspopup', String(ariaHaspopup));\n }\n}\n\nexport { setActivatorAttributes };\n","import React from 'react';\n\nvar SvgXCircleIcon = function SvgXCircleIcon(props) {\n return /*#__PURE__*/React.createElement(\"svg\", Object.assign({\n viewBox: \"0 0 20 20\"\n }, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M13.03 6.97a.75.75 0 0 1 0 1.06l-1.97 1.97 1.97 1.97a.75.75 0 1 1-1.06 1.06l-1.97-1.97-1.97 1.97a.75.75 0 0 1-1.06-1.06l1.97-1.97-1.97-1.97a.75.75 0 0 1 1.06-1.06l1.97 1.97 1.97-1.97a.75.75 0 0 1 1.06 0Z\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm0-1.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11Z\"\n }));\n};\nSvgXCircleIcon.displayName = \"XCircleIcon\";\n\nexport { SvgXCircleIcon as S };\n","var styles = {\n \"TextField\": \"Polaris-TextField\",\n \"ClearButton\": \"Polaris-TextField__ClearButton\",\n \"Loading\": \"Polaris-TextField__Loading\",\n \"disabled\": \"Polaris-TextField--disabled\",\n \"error\": \"Polaris-TextField--error\",\n \"readOnly\": \"Polaris-TextField--readOnly\",\n \"Input\": \"Polaris-TextField__Input\",\n \"Backdrop\": \"Polaris-TextField__Backdrop\",\n \"multiline\": \"Polaris-TextField--multiline\",\n \"hasValue\": \"Polaris-TextField--hasValue\",\n \"focus\": \"Polaris-TextField--focus\",\n \"VerticalContent\": \"Polaris-TextField__VerticalContent\",\n \"InputAndSuffixWrapper\": \"Polaris-TextField__InputAndSuffixWrapper\",\n \"toneMagic\": \"Polaris-TextField--toneMagic\",\n \"Prefix\": \"Polaris-TextField__Prefix\",\n \"Suffix\": \"Polaris-TextField__Suffix\",\n \"AutoSizeWrapper\": \"Polaris-TextField__AutoSizeWrapper\",\n \"AutoSizeWrapperWithSuffix\": \"Polaris-TextField__AutoSizeWrapperWithSuffix\",\n \"suggestion\": \"Polaris-TextField--suggestion\",\n \"borderless\": \"Polaris-TextField--borderless\",\n \"slim\": \"Polaris-TextField--slim\",\n \"Input-hasClearButton\": \"Polaris-TextField__Input--hasClearButton\",\n \"Input-suffixed\": \"Polaris-TextField__Input--suffixed\",\n \"Input-alignRight\": \"Polaris-TextField__Input--alignRight\",\n \"Input-alignLeft\": \"Polaris-TextField__Input--alignLeft\",\n \"Input-alignCenter\": \"Polaris-TextField__Input--alignCenter\",\n \"Input-autoSize\": \"Polaris-TextField__Input--autoSize\",\n \"PrefixIcon\": \"Polaris-TextField__PrefixIcon\",\n \"CharacterCount\": \"Polaris-TextField__CharacterCount\",\n \"AlignFieldBottom\": \"Polaris-TextField__AlignFieldBottom\",\n \"Spinner\": \"Polaris-TextField__Spinner\",\n \"SpinnerIcon\": \"Polaris-TextField__SpinnerIcon\",\n \"Resizer\": \"Polaris-TextField__Resizer\",\n \"DummyInput\": \"Polaris-TextField__DummyInput\",\n \"Segment\": \"Polaris-TextField__Segment\",\n \"monospaced\": \"Polaris-TextField--monospaced\"\n};\n\nexport { styles as default };\n","var styles = {\n \"Connected\": \"Polaris-Connected\",\n \"Item\": \"Polaris-Connected__Item\",\n \"Item-primary\": \"Polaris-Connected__Item--primary\",\n \"Item-focused\": \"Polaris-Connected__Item--focused\"\n};\n\nexport { styles as default };\n","import React from 'react';\nimport { classNames } from '../../../../utilities/css.js';\nimport { useToggle } from '../../../../utilities/use-toggle.js';\nimport styles from '../../Connected.css.js';\n\nfunction Item({\n children,\n position\n}) {\n const {\n value: focused,\n setTrue: forceTrueFocused,\n setFalse: forceFalseFocused\n } = useToggle(false);\n const className = classNames(styles.Item, focused && styles['Item-focused'], position === 'primary' ? styles['Item-primary'] : styles['Item-connection']);\n return /*#__PURE__*/React.createElement(\"div\", {\n onBlur: forceFalseFocused,\n onFocus: forceTrueFocused,\n className: className\n }, children);\n}\n\nexport { Item };\n","import React from 'react';\nimport styles from './Connected.css.js';\nimport { Item } from './components/Item/Item.js';\n\nfunction Connected({\n children,\n left,\n right\n}) {\n const leftConnectionMarkup = left ? /*#__PURE__*/React.createElement(Item, {\n position: \"left\"\n }, left) : null;\n const rightConnectionMarkup = right ? /*#__PURE__*/React.createElement(Item, {\n position: \"right\"\n }, right) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Connected\n }, leftConnectionMarkup, /*#__PURE__*/React.createElement(Item, {\n position: \"primary\"\n }, children), rightConnectionMarkup);\n}\n\nexport { Connected };\n","import React from 'react';\nimport { ChevronUpIcon, ChevronDownIcon } from '@shopify/polaris-icons';\nimport styles from '../../TextField.css.js';\nimport { Icon } from '../../../Icon/Icon.js';\n\nconst Spinner = /*#__PURE__*/React.forwardRef(function Spinner({\n onChange,\n onClick,\n onMouseDown,\n onMouseUp,\n onBlur\n}, ref) {\n function handleStep(step) {\n return () => onChange(step);\n }\n function handleMouseDown(onChange) {\n return event => {\n if (event.button !== 0) return;\n onMouseDown?.(onChange);\n };\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Spinner,\n onClick: onClick,\n \"aria-hidden\": true,\n ref: ref\n }, /*#__PURE__*/React.createElement(\"div\", {\n role: \"button\",\n className: styles.Segment,\n tabIndex: -1,\n onClick: handleStep(1),\n onMouseDown: handleMouseDown(handleStep(1)),\n onMouseUp: onMouseUp,\n onBlur: onBlur\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.SpinnerIcon\n }, /*#__PURE__*/React.createElement(Icon, {\n source: ChevronUpIcon\n }))), /*#__PURE__*/React.createElement(\"div\", {\n role: \"button\",\n className: styles.Segment,\n tabIndex: -1,\n onClick: handleStep(-1),\n onMouseDown: handleMouseDown(handleStep(-1)),\n onMouseUp: onMouseUp,\n onBlur: onBlur\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.SpinnerIcon\n }, /*#__PURE__*/React.createElement(Icon, {\n source: ChevronDownIcon\n }))));\n});\n\nexport { Spinner };\n","import React, { useRef, useEffect, useCallback } from 'react';\nimport { useIsomorphicLayoutEffect } from '../../../../utilities/use-isomorphic-layout-effect.js';\nimport styles from '../../TextField.css.js';\nimport { EventListener } from '../../../EventListener/EventListener.js';\n\nfunction Resizer({\n contents,\n currentHeight: currentHeightProp = null,\n minimumLines,\n onHeightChange\n}) {\n const contentNode = useRef(null);\n const minimumLinesNode = useRef(null);\n const animationFrame = useRef();\n const currentHeight = useRef(currentHeightProp);\n if (currentHeightProp !== currentHeight.current) {\n currentHeight.current = currentHeightProp;\n }\n useEffect(() => {\n return () => {\n if (animationFrame.current) {\n cancelAnimationFrame(animationFrame.current);\n }\n };\n }, []);\n const minimumLinesMarkup = minimumLines ? /*#__PURE__*/React.createElement(\"div\", {\n ref: minimumLinesNode,\n className: styles.DummyInput,\n dangerouslySetInnerHTML: {\n __html: getContentsForMinimumLines(minimumLines)\n }\n }) : null;\n const handleHeightCheck = useCallback(() => {\n if (animationFrame.current) {\n cancelAnimationFrame(animationFrame.current);\n }\n animationFrame.current = requestAnimationFrame(() => {\n if (!contentNode.current || !minimumLinesNode.current) {\n return;\n }\n const newHeight = Math.max(contentNode.current.offsetHeight, minimumLinesNode.current.offsetHeight);\n if (newHeight !== currentHeight.current) {\n onHeightChange(newHeight);\n }\n });\n }, [onHeightChange]);\n useIsomorphicLayoutEffect(() => {\n handleHeightCheck();\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n \"aria-hidden\": true,\n className: styles.Resizer\n }, /*#__PURE__*/React.createElement(EventListener, {\n event: \"resize\",\n handler: handleHeightCheck\n }), /*#__PURE__*/React.createElement(\"div\", {\n ref: contentNode,\n className: styles.DummyInput,\n dangerouslySetInnerHTML: {\n __html: getFinalContents(contents)\n }\n }), minimumLinesMarkup);\n}\nconst ENTITIES_TO_REPLACE = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\\n': '
',\n '\\r': ''\n};\nconst REPLACE_REGEX = new RegExp(`[${Object.keys(ENTITIES_TO_REPLACE).join()}]`, 'g');\nfunction replaceEntity(entity) {\n return ENTITIES_TO_REPLACE[entity];\n}\nfunction getContentsForMinimumLines(minimumLines) {\n let content = '';\n for (let line = 0; line < minimumLines; line++) {\n content += '
';\n }\n return content;\n}\nfunction getFinalContents(contents) {\n return contents ? `${contents.replace(REPLACE_REGEX, replaceEntity)}
` : '
';\n}\n\nexport { Resizer };\n","import React, { useState, useId, useRef, useCallback, useEffect, createElement } from 'react';\nimport { XCircleIcon } from '@shopify/polaris-icons';\nimport { classNames, variationName } from '../../utilities/css.js';\nimport { useIsAfterInitialMount } from '../../utilities/use-is-after-initial-mount.js';\nimport { Key } from '../../types.js';\nimport { useEventListener } from '../../utilities/use-event-listener.js';\nimport styles from './TextField.css.js';\nimport { Labelled, helpTextID } from '../Labelled/Labelled.js';\nimport { Connected } from '../Connected/Connected.js';\nimport { Spinner as Spinner$1 } from './components/Spinner/Spinner.js';\nimport { Resizer } from './components/Resizer/Resizer.js';\nimport { labelID } from '../Label/Label.js';\nimport { useI18n } from '../../utilities/i18n/hooks.js';\nimport { Icon } from '../Icon/Icon.js';\nimport { Text } from '../Text/Text.js';\nimport { Spinner } from '../Spinner/Spinner.js';\n\nfunction TextField({\n prefix,\n suffix,\n verticalContent,\n placeholder,\n value = '',\n helpText,\n label,\n labelAction,\n labelHidden,\n disabled,\n clearButton,\n readOnly,\n autoFocus,\n focused,\n multiline,\n error,\n connectedRight,\n connectedLeft,\n type = 'text',\n name,\n id: idProp,\n role,\n step,\n largeStep,\n autoComplete,\n max,\n maxLength,\n maxHeight,\n min,\n minLength,\n pattern,\n inputMode,\n spellCheck,\n ariaOwns,\n ariaControls,\n ariaExpanded,\n ariaActiveDescendant,\n ariaAutocomplete,\n showCharacterCount,\n align,\n requiredIndicator,\n monospaced,\n selectTextOnFocus,\n suggestion,\n variant = 'inherit',\n size = 'medium',\n onClearButtonClick,\n onChange,\n onSpinnerChange,\n onFocus,\n onBlur,\n tone,\n autoSize,\n loading\n}) {\n const i18n = useI18n();\n const [height, setHeight] = useState(null);\n const [focus, setFocus] = useState(Boolean(focused));\n const isAfterInitial = useIsAfterInitialMount();\n const uniqId = useId();\n const id = idProp ?? uniqId;\n const textFieldRef = useRef(null);\n const inputRef = useRef(null);\n const textAreaRef = useRef(null);\n const prefixRef = useRef(null);\n const suffixRef = useRef(null);\n const loadingRef = useRef(null);\n const verticalContentRef = useRef(null);\n const buttonPressTimer = useRef();\n const spinnerRef = useRef(null);\n const getInputRef = useCallback(() => {\n return multiline ? textAreaRef.current : inputRef.current;\n }, [multiline]);\n useEffect(() => {\n const input = getInputRef();\n if (!input || focused === undefined) return;\n focused ? input.focus() : input.blur();\n }, [focused, verticalContent, getInputRef]);\n useEffect(() => {\n const input = inputRef.current;\n const isSupportedInputType = type === 'text' || type === 'tel' || type === 'search' || type === 'url' || type === 'password';\n if (!input || !isSupportedInputType || !suggestion) {\n return;\n }\n input.setSelectionRange(value.length, suggestion.length);\n }, [focus, value, type, suggestion]);\n const normalizedValue = suggestion ? suggestion : value;\n const normalizedStep = step != null ? step : 1;\n const normalizedMax = max != null ? max : Infinity;\n const normalizedMin = min != null ? min : -Infinity;\n const className = classNames(styles.TextField, Boolean(normalizedValue) && styles.hasValue, disabled && styles.disabled, readOnly && styles.readOnly, error && styles.error, tone && styles[variationName('tone', tone)], multiline && styles.multiline, focus && !disabled && styles.focus, variant !== 'inherit' && styles[variant], size === 'slim' && styles.slim);\n const inputType = type === 'currency' ? 'text' : type;\n const isNumericType = type === 'number' || type === 'integer';\n const iconPrefix = /*#__PURE__*/React.isValidElement(prefix) && prefix.type === Icon;\n const prefixMarkup = prefix ? /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(styles.Prefix, iconPrefix && styles.PrefixIcon),\n id: `${id}-Prefix`,\n ref: prefixRef\n }, /*#__PURE__*/React.createElement(Text, {\n as: \"span\",\n variant: \"bodyMd\"\n }, prefix)) : null;\n const suffixMarkup = suffix ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Suffix,\n id: `${id}-Suffix`,\n ref: suffixRef\n }, /*#__PURE__*/React.createElement(Text, {\n as: \"span\",\n variant: \"bodyMd\"\n }, suffix)) : null;\n const loadingMarkup = loading ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Loading,\n id: `${id}-Loading`,\n ref: loadingRef\n }, /*#__PURE__*/React.createElement(Spinner, {\n size: \"small\"\n })) : null;\n let characterCountMarkup = null;\n if (showCharacterCount) {\n const characterCount = normalizedValue.length;\n const characterCountLabel = maxLength ? i18n.translate('Polaris.TextField.characterCountWithMaxLength', {\n count: characterCount,\n limit: maxLength\n }) : i18n.translate('Polaris.TextField.characterCount', {\n count: characterCount\n });\n const characterCountClassName = classNames(styles.CharacterCount, multiline && styles.AlignFieldBottom);\n const characterCountText = !maxLength ? characterCount : `${characterCount}/${maxLength}`;\n characterCountMarkup = /*#__PURE__*/React.createElement(\"div\", {\n id: `${id}-CharacterCounter`,\n className: characterCountClassName,\n \"aria-label\": characterCountLabel,\n \"aria-live\": focus ? 'polite' : 'off',\n \"aria-atomic\": \"true\",\n onClick: handleClickChild\n }, /*#__PURE__*/React.createElement(Text, {\n as: \"span\",\n variant: \"bodyMd\"\n }, characterCountText));\n }\n const clearButtonVisible = normalizedValue !== '';\n const clearButtonMarkup = clearButton && clearButtonVisible ? /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: styles.ClearButton,\n onClick: handleClearButtonPress,\n disabled: disabled\n }, /*#__PURE__*/React.createElement(Text, {\n as: \"span\",\n visuallyHidden: true\n }, i18n.translate('Polaris.Common.clear')), /*#__PURE__*/React.createElement(Icon, {\n source: XCircleIcon,\n tone: \"base\"\n })) : null;\n const handleNumberChange = useCallback((steps, stepAmount = normalizedStep) => {\n if (onChange == null && onSpinnerChange == null) {\n return;\n }\n // Returns the length of decimal places in a number\n const dpl = num => (num.toString().split('.')[1] || []).length;\n const numericValue = value ? parseFloat(value) : 0;\n if (isNaN(numericValue)) {\n return;\n }\n\n // Making sure the new value has the same length of decimal places as the\n // step / value has.\n const decimalPlaces = type === 'integer' ? 0 : Math.max(dpl(numericValue), dpl(stepAmount));\n const newValue = Math.min(Number(normalizedMax), Math.max(numericValue + steps * stepAmount, Number(normalizedMin)));\n if (onSpinnerChange != null) {\n onSpinnerChange(String(newValue.toFixed(decimalPlaces)), id);\n } else if (onChange != null) {\n onChange(String(newValue.toFixed(decimalPlaces)), id);\n }\n }, [id, normalizedMax, normalizedMin, onChange, onSpinnerChange, normalizedStep, type, value]);\n const handleSpinnerButtonRelease = useCallback(() => {\n clearTimeout(buttonPressTimer.current);\n }, []);\n const handleSpinnerButtonPress = useCallback(onChange => {\n const minInterval = 50;\n const decrementBy = 10;\n let interval = 200;\n const onChangeInterval = () => {\n if (interval > minInterval) interval -= decrementBy;\n onChange(0);\n buttonPressTimer.current = window.setTimeout(onChangeInterval, interval);\n };\n buttonPressTimer.current = window.setTimeout(onChangeInterval, interval);\n document.addEventListener('mouseup', handleSpinnerButtonRelease, {\n once: true\n });\n }, [handleSpinnerButtonRelease]);\n const spinnerMarkup = isNumericType && step !== 0 && !disabled && !readOnly ? /*#__PURE__*/React.createElement(Spinner$1, {\n onClick: handleClickChild,\n onChange: handleNumberChange,\n onMouseDown: handleSpinnerButtonPress,\n onMouseUp: handleSpinnerButtonRelease,\n ref: spinnerRef,\n onBlur: handleOnBlur\n }) : null;\n const style = multiline && height ? {\n height,\n maxHeight\n } : null;\n const handleExpandingResize = useCallback(height => {\n setHeight(height);\n }, []);\n const resizer = multiline && isAfterInitial ? /*#__PURE__*/React.createElement(Resizer, {\n contents: normalizedValue || placeholder,\n currentHeight: height,\n minimumLines: typeof multiline === 'number' ? multiline : 1,\n onHeightChange: handleExpandingResize\n }) : null;\n const describedBy = [];\n if (error) {\n describedBy.push(`${id}Error`);\n }\n if (helpText) {\n describedBy.push(helpTextID(id));\n }\n if (showCharacterCount) {\n describedBy.push(`${id}-CharacterCounter`);\n }\n const labelledBy = [];\n if (prefix) {\n labelledBy.push(`${id}-Prefix`);\n }\n if (suffix) {\n labelledBy.push(`${id}-Suffix`);\n }\n if (verticalContent) {\n labelledBy.push(`${id}-VerticalContent`);\n }\n labelledBy.unshift(labelID(id));\n const inputClassName = classNames(styles.Input, align && styles[variationName('Input-align', align)], suffix && styles['Input-suffixed'], clearButton && styles['Input-hasClearButton'], monospaced && styles.monospaced, suggestion && styles.suggestion, autoSize && styles['Input-autoSize']);\n const handleOnFocus = event => {\n setFocus(true);\n if (selectTextOnFocus && !suggestion) {\n const input = getInputRef();\n input?.select();\n }\n if (onFocus) {\n onFocus(event);\n }\n };\n useEventListener('wheel', handleOnWheel, inputRef);\n function handleOnWheel(event) {\n if (document.activeElement === event.target && isNumericType) {\n event.stopPropagation();\n }\n }\n const input = /*#__PURE__*/createElement(multiline ? 'textarea' : 'input', {\n name,\n id,\n disabled,\n readOnly,\n role,\n autoFocus,\n value: normalizedValue,\n placeholder,\n style,\n autoComplete,\n className: inputClassName,\n ref: multiline ? textAreaRef : inputRef,\n min,\n max,\n step,\n minLength,\n maxLength,\n spellCheck,\n pattern,\n inputMode,\n type: inputType,\n rows: getRows(multiline),\n size: autoSize ? 1 : undefined,\n 'aria-describedby': describedBy.length ? describedBy.join(' ') : undefined,\n 'aria-labelledby': labelledBy.join(' '),\n 'aria-invalid': Boolean(error),\n 'aria-owns': ariaOwns,\n 'aria-activedescendant': ariaActiveDescendant,\n 'aria-autocomplete': ariaAutocomplete,\n 'aria-controls': ariaControls,\n 'aria-expanded': ariaExpanded,\n 'aria-required': requiredIndicator,\n ...normalizeAriaMultiline(multiline),\n onFocus: handleOnFocus,\n onBlur: handleOnBlur,\n onClick: handleClickChild,\n onKeyPress: handleKeyPress,\n onKeyDown: handleKeyDown,\n onChange: !suggestion ? handleChange : undefined,\n onInput: suggestion ? handleChange : undefined,\n // 1Password disable data attribute\n 'data-1p-ignore': autoComplete === 'off' || undefined,\n // LastPass disable data attribute\n 'data-lpignore': autoComplete === 'off' || undefined,\n // Dashlane disable data attribute\n 'data-form-type': autoComplete === 'off' ? 'other' : undefined\n });\n const inputWithVerticalContentMarkup = verticalContent ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.VerticalContent,\n id: `${id}-VerticalContent`,\n ref: verticalContentRef,\n onClick: handleClickChild\n }, verticalContent, input) : null;\n const inputMarkup = verticalContent ? inputWithVerticalContentMarkup : input;\n const backdropMarkup = /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(styles.Backdrop, connectedLeft && styles['Backdrop-connectedLeft'], connectedRight && styles['Backdrop-connectedRight'])\n });\n const inputAndSuffixMarkup = autoSize ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.InputAndSuffixWrapper\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(styles.AutoSizeWrapper, suffix && styles.AutoSizeWrapperWithSuffix),\n \"data-auto-size-value\": value || placeholder\n }, inputMarkup), suffixMarkup) : /*#__PURE__*/React.createElement(React.Fragment, null, inputMarkup, suffixMarkup);\n return /*#__PURE__*/React.createElement(Labelled, {\n label: label,\n id: id,\n error: error,\n action: labelAction,\n labelHidden: labelHidden,\n helpText: helpText,\n requiredIndicator: requiredIndicator,\n disabled: disabled,\n readOnly: readOnly\n }, /*#__PURE__*/React.createElement(Connected, {\n left: connectedLeft,\n right: connectedRight\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n onClick: handleClick,\n ref: textFieldRef\n }, prefixMarkup, inputAndSuffixMarkup, characterCountMarkup, loadingMarkup, clearButtonMarkup, spinnerMarkup, backdropMarkup, resizer)));\n function handleChange(event) {\n onChange && onChange(event.currentTarget.value, id);\n }\n function handleClick(event) {\n const {\n target\n } = event;\n\n // For TextFields used with Combobox, focus needs to be set again even\n // if the TextField is already focused to trigger the logic to open the\n // Combobox activator\n const inputRefRole = inputRef?.current?.getAttribute('role');\n if (target === inputRef.current && inputRefRole === 'combobox') {\n inputRef.current?.focus();\n handleOnFocus(event);\n return;\n }\n if (isPrefixOrSuffix(target) || isVerticalContent(target) || isInput(target) || isSpinner(target) || isLoadingSpinner(target) || focus) {\n return;\n }\n getInputRef()?.focus();\n }\n function handleClickChild(event) {\n if (!isSpinner(event.target) && !isInput(event.target)) {\n event.stopPropagation();\n }\n if (isPrefixOrSuffix(event.target) || isVerticalContent(event.target) || isInput(event.target) || isLoadingSpinner(event.target) || focus) {\n return;\n }\n setFocus(true);\n getInputRef()?.focus();\n }\n function handleClearButtonPress() {\n onClearButtonClick && onClearButtonClick(id);\n }\n function handleKeyPress(event) {\n const {\n key,\n which\n } = event;\n const numbersSpec = /[\\d.,eE+-]$/;\n const integerSpec = /[\\deE+-]$/;\n if (!isNumericType || which === Key.Enter || type === 'number' && numbersSpec.test(key) || type === 'integer' && integerSpec.test(key)) {\n return;\n }\n event.preventDefault();\n }\n function handleKeyDown(event) {\n if (!isNumericType) {\n return;\n }\n const {\n key,\n which\n } = event;\n if (type === 'integer' && (key === 'ArrowUp' || which === Key.UpArrow)) {\n handleNumberChange(1);\n event.preventDefault();\n }\n if (type === 'integer' && (key === 'ArrowDown' || which === Key.DownArrow)) {\n handleNumberChange(-1);\n event.preventDefault();\n }\n if ((which === Key.Home || key === 'Home') && min !== undefined) {\n if (onSpinnerChange != null) {\n onSpinnerChange(String(min), id);\n } else if (onChange != null) {\n onChange(String(min), id);\n }\n }\n if ((which === Key.End || key === 'End') && max !== undefined) {\n if (onSpinnerChange != null) {\n onSpinnerChange(String(max), id);\n } else if (onChange != null) {\n onChange(String(max), id);\n }\n }\n if ((which === Key.PageUp || key === 'PageUp') && largeStep !== undefined) {\n handleNumberChange(1, largeStep);\n }\n if ((which === Key.PageDown || key === 'PageDown') && largeStep !== undefined) {\n handleNumberChange(-1, largeStep);\n }\n }\n function handleOnBlur(event) {\n setFocus(false);\n\n // Return early if new focus target is inside the TextField component\n if (textFieldRef.current?.contains(event?.relatedTarget)) {\n return;\n }\n if (onBlur) {\n onBlur(event);\n }\n }\n function isInput(target) {\n const input = getInputRef();\n return target instanceof HTMLElement && input && (input.contains(target) || input.contains(document.activeElement));\n }\n function isPrefixOrSuffix(target) {\n return target instanceof Element && (prefixRef.current && prefixRef.current.contains(target) || suffixRef.current && suffixRef.current.contains(target));\n }\n function isSpinner(target) {\n return target instanceof Element && spinnerRef.current && spinnerRef.current.contains(target);\n }\n function isLoadingSpinner(target) {\n return target instanceof Element && loadingRef.current && loadingRef.current.contains(target);\n }\n function isVerticalContent(target) {\n return target instanceof Element && verticalContentRef.current && (verticalContentRef.current.contains(target) || verticalContentRef.current.contains(document.activeElement));\n }\n}\nfunction getRows(multiline) {\n if (!multiline) return undefined;\n return typeof multiline === 'number' ? multiline : 1;\n}\nfunction normalizeAriaMultiline(multiline) {\n if (!multiline) return undefined;\n return Boolean(multiline) || typeof multiline === 'number' && multiline > 0 ? {\n 'aria-multiline': true\n } : undefined;\n}\n\nexport { TextField };\n","import { useRef, useEffect } from 'react';\nimport { useIsomorphicLayoutEffect } from './use-isomorphic-layout-effect.js';\n\n/**\n * Acceptable target elements for `useEventListener`.\n */\n\n/**\n * Extracts the target element from a React `RefObject` or returns the input element.\n */\n\n/**\n * Extracts a (lib.dom.ts) EventMap for a given target element.\n */\n\n/**\n * Extracts all event names for a given target element.\n */\n\n/**\n * Extracts the `event` object for a given event type.\n */\n\n/**\n * React hook encapsulating the boilerplate logic for adding and removing event listeners.\n */\nfunction useEventListener(eventName, handler, target, options) {\n const handlerRef = useRef(handler);\n const optionsRef = useRef(options);\n useIsomorphicLayoutEffect(() => {\n handlerRef.current = handler;\n }, [handler]);\n useIsomorphicLayoutEffect(() => {\n optionsRef.current = options;\n }, [options]);\n useEffect(() => {\n if (!(typeof eventName === 'string' && target !== null)) return;\n let targetElement;\n if (typeof target === 'undefined') {\n targetElement = window;\n } else if ('current' in target) {\n if (target.current === null) return;\n targetElement = target.current;\n } else {\n targetElement = target;\n }\n const eventOptions = optionsRef.current;\n const eventListener = event => handlerRef.current(event);\n targetElement.addEventListener(eventName, eventListener, eventOptions);\n return () => {\n targetElement.removeEventListener(eventName, eventListener, eventOptions);\n };\n }, [eventName, target]);\n}\n\nexport { useEventListener };\n","/* eslint-disable @shopify/strict-component-boundaries */\n\n/* eslint-enable @shopify/strict-component-boundaries */\n\nlet Key = /*#__PURE__*/function (Key) {\n Key[Key[\"Backspace\"] = 8] = \"Backspace\";\n Key[Key[\"Tab\"] = 9] = \"Tab\";\n Key[Key[\"Enter\"] = 13] = \"Enter\";\n Key[Key[\"Shift\"] = 16] = \"Shift\";\n Key[Key[\"Ctrl\"] = 17] = \"Ctrl\";\n Key[Key[\"Alt\"] = 18] = \"Alt\";\n Key[Key[\"Pause\"] = 19] = \"Pause\";\n Key[Key[\"CapsLock\"] = 20] = \"CapsLock\";\n Key[Key[\"Escape\"] = 27] = \"Escape\";\n Key[Key[\"Space\"] = 32] = \"Space\";\n Key[Key[\"PageUp\"] = 33] = \"PageUp\";\n Key[Key[\"PageDown\"] = 34] = \"PageDown\";\n Key[Key[\"End\"] = 35] = \"End\";\n Key[Key[\"Home\"] = 36] = \"Home\";\n Key[Key[\"LeftArrow\"] = 37] = \"LeftArrow\";\n Key[Key[\"UpArrow\"] = 38] = \"UpArrow\";\n Key[Key[\"RightArrow\"] = 39] = \"RightArrow\";\n Key[Key[\"DownArrow\"] = 40] = \"DownArrow\";\n Key[Key[\"Insert\"] = 45] = \"Insert\";\n Key[Key[\"Delete\"] = 46] = \"Delete\";\n Key[Key[\"Key0\"] = 48] = \"Key0\";\n Key[Key[\"Key1\"] = 49] = \"Key1\";\n Key[Key[\"Key2\"] = 50] = \"Key2\";\n Key[Key[\"Key3\"] = 51] = \"Key3\";\n Key[Key[\"Key4\"] = 52] = \"Key4\";\n Key[Key[\"Key5\"] = 53] = \"Key5\";\n Key[Key[\"Key6\"] = 54] = \"Key6\";\n Key[Key[\"Key7\"] = 55] = \"Key7\";\n Key[Key[\"Key8\"] = 56] = \"Key8\";\n Key[Key[\"Key9\"] = 57] = \"Key9\";\n Key[Key[\"KeyA\"] = 65] = \"KeyA\";\n Key[Key[\"KeyB\"] = 66] = \"KeyB\";\n Key[Key[\"KeyC\"] = 67] = \"KeyC\";\n Key[Key[\"KeyD\"] = 68] = \"KeyD\";\n Key[Key[\"KeyE\"] = 69] = \"KeyE\";\n Key[Key[\"KeyF\"] = 70] = \"KeyF\";\n Key[Key[\"KeyG\"] = 71] = \"KeyG\";\n Key[Key[\"KeyH\"] = 72] = \"KeyH\";\n Key[Key[\"KeyI\"] = 73] = \"KeyI\";\n Key[Key[\"KeyJ\"] = 74] = \"KeyJ\";\n Key[Key[\"KeyK\"] = 75] = \"KeyK\";\n Key[Key[\"KeyL\"] = 76] = \"KeyL\";\n Key[Key[\"KeyM\"] = 77] = \"KeyM\";\n Key[Key[\"KeyN\"] = 78] = \"KeyN\";\n Key[Key[\"KeyO\"] = 79] = \"KeyO\";\n Key[Key[\"KeyP\"] = 80] = \"KeyP\";\n Key[Key[\"KeyQ\"] = 81] = \"KeyQ\";\n Key[Key[\"KeyR\"] = 82] = \"KeyR\";\n Key[Key[\"KeyS\"] = 83] = \"KeyS\";\n Key[Key[\"KeyT\"] = 84] = \"KeyT\";\n Key[Key[\"KeyU\"] = 85] = \"KeyU\";\n Key[Key[\"KeyV\"] = 86] = \"KeyV\";\n Key[Key[\"KeyW\"] = 87] = \"KeyW\";\n Key[Key[\"KeyX\"] = 88] = \"KeyX\";\n Key[Key[\"KeyY\"] = 89] = \"KeyY\";\n Key[Key[\"KeyZ\"] = 90] = \"KeyZ\";\n Key[Key[\"LeftMeta\"] = 91] = \"LeftMeta\";\n Key[Key[\"RightMeta\"] = 92] = \"RightMeta\";\n Key[Key[\"Select\"] = 93] = \"Select\";\n Key[Key[\"Numpad0\"] = 96] = \"Numpad0\";\n Key[Key[\"Numpad1\"] = 97] = \"Numpad1\";\n Key[Key[\"Numpad2\"] = 98] = \"Numpad2\";\n Key[Key[\"Numpad3\"] = 99] = \"Numpad3\";\n Key[Key[\"Numpad4\"] = 100] = \"Numpad4\";\n Key[Key[\"Numpad5\"] = 101] = \"Numpad5\";\n Key[Key[\"Numpad6\"] = 102] = \"Numpad6\";\n Key[Key[\"Numpad7\"] = 103] = \"Numpad7\";\n Key[Key[\"Numpad8\"] = 104] = \"Numpad8\";\n Key[Key[\"Numpad9\"] = 105] = \"Numpad9\";\n Key[Key[\"Multiply\"] = 106] = \"Multiply\";\n Key[Key[\"Add\"] = 107] = \"Add\";\n Key[Key[\"Subtract\"] = 109] = \"Subtract\";\n Key[Key[\"Decimal\"] = 110] = \"Decimal\";\n Key[Key[\"Divide\"] = 111] = \"Divide\";\n Key[Key[\"F1\"] = 112] = \"F1\";\n Key[Key[\"F2\"] = 113] = \"F2\";\n Key[Key[\"F3\"] = 114] = \"F3\";\n Key[Key[\"F4\"] = 115] = \"F4\";\n Key[Key[\"F5\"] = 116] = \"F5\";\n Key[Key[\"F6\"] = 117] = \"F6\";\n Key[Key[\"F7\"] = 118] = \"F7\";\n Key[Key[\"F8\"] = 119] = \"F8\";\n Key[Key[\"F9\"] = 120] = \"F9\";\n Key[Key[\"F10\"] = 121] = \"F10\";\n Key[Key[\"F11\"] = 122] = \"F11\";\n Key[Key[\"F12\"] = 123] = \"F12\";\n Key[Key[\"NumLock\"] = 144] = \"NumLock\";\n Key[Key[\"ScrollLock\"] = 145] = \"ScrollLock\";\n Key[Key[\"Semicolon\"] = 186] = \"Semicolon\";\n Key[Key[\"Equals\"] = 187] = \"Equals\";\n Key[Key[\"Comma\"] = 188] = \"Comma\";\n Key[Key[\"Dash\"] = 189] = \"Dash\";\n Key[Key[\"Period\"] = 190] = \"Period\";\n Key[Key[\"ForwardSlash\"] = 191] = \"ForwardSlash\";\n Key[Key[\"GraveAccent\"] = 192] = \"GraveAccent\";\n Key[Key[\"OpenBracket\"] = 219] = \"OpenBracket\";\n Key[Key[\"BackSlash\"] = 220] = \"BackSlash\";\n Key[Key[\"CloseBracket\"] = 221] = \"CloseBracket\";\n Key[Key[\"SingleQuote\"] = 222] = \"SingleQuote\";\n return Key;\n}({});\n\n/**\n * Useful for defining mutually exclusive props such as:\n *\n * interface MessageBasics {\n * timestamp?: number;\n * }\n * interface MessageWithText extends MessageBasics {\n * text: string;\n * }\n * interface MessageWithAttachment extends MessageBasics {\n * attachment: string;\n * }\n * type Message =\n * | (MessageWithText & Never)\n * | (MessageWithAttachment & Never);\n *\n * // 👍 OK\n * let foo: Message = {attachment: 'a'}\n * let bar: Message = {text: 'b'}\n *\n * // ❌ ERROR: Type '{ attachment: string; text: string; }' is not assignable to type 'Message'.\n * let baz: Message = {attachment: 'a', text: 'b'}\n */\n\nexport { Key };\n","function debounce(func, waitArg, options) {\n let lastArgs;\n let lastThis;\n let maxWait;\n let result;\n let timerId;\n let lastCallTime;\n let lastInvokeTime = 0;\n let leading = false;\n let maxing = false;\n let trailing = true;\n\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !waitArg && waitArg !== 0;\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n const wait = waitArg || 0;\n if (typeof options === 'object') {\n leading = Boolean(options.leading);\n maxing = 'maxWait' in options;\n maxWait = maxing ? Math.max(Number(options.maxWait) || 0, wait) : undefined;\n trailing = 'trailing' in options ? Boolean(options.trailing) : trailing;\n }\n function invokeFunc(time) {\n const args = lastArgs;\n const thisArg = lastThis;\n lastArgs = undefined;\n lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n function startTimer(pendingFunc, wait) {\n if (useRAF) {\n cancelAnimationFrame(timerId);\n return requestAnimationFrame(pendingFunc);\n }\n return setTimeout(pendingFunc, wait);\n }\n function cancelTimer(id) {\n if (useRAF) {\n return cancelAnimationFrame(id);\n }\n clearTimeout(id);\n }\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n function remainingWait(time) {\n const timeSinceLastCall = time - lastCallTime;\n const timeSinceLastInvoke = time - lastInvokeTime;\n const timeWaiting = wait - timeSinceLastCall;\n return maxing && maxWait ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;\n }\n function shouldInvoke(time) {\n const timeSinceLastCall = time - lastCallTime;\n const timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && maxWait && timeSinceLastInvoke >= maxWait;\n }\n function timerExpired() {\n const time = Date.now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = startTimer(timerExpired, remainingWait(time));\n }\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n // eslint-disable-next-line no-multi-assign\n lastArgs = lastThis = undefined;\n return result;\n }\n function cancel() {\n if (timerId !== undefined) {\n cancelTimer(timerId);\n }\n lastInvokeTime = 0;\n // eslint-disable-next-line no-multi-assign\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n function flush() {\n return timerId === undefined ? result : trailingEdge(Date.now());\n }\n function pending() {\n return timerId !== undefined;\n }\n function debounced(...args) {\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n lastArgs = args;\n // eslint-disable-next-line consistent-this, @typescript-eslint/no-this-alias\n lastThis = this;\n lastCallTime = time;\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = startTimer(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n debounced.pending = pending;\n return debounced;\n}\n\nexport { debounce };\n","class Rect {\n static get zero() {\n return new Rect();\n }\n constructor({\n top = 0,\n left = 0,\n width = 0,\n height = 0\n } = {}) {\n this.top = top;\n this.left = left;\n this.width = width;\n this.height = height;\n }\n get center() {\n return {\n x: this.left + this.width / 2,\n y: this.top + this.height / 2\n };\n }\n}\nfunction getRectForNode(node) {\n /**\n * NOTE: We cannot do node instanceof Element because it will fail when inside of an iframe.\n * Technically we can do `node instanceof node.ownerDocument.defaultView.Element`but this will\n * fail when node isn't an Element. We might as well try to run `getBoundingClientRect` and then\n * have a fallback for when that breaks.\n */\n try {\n const rect = node.getBoundingClientRect();\n return new Rect({\n top: rect.top,\n left: rect.left,\n width: rect.width,\n height: rect.height\n });\n } catch (_) {\n return new Rect({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n}\n\nexport { Rect, getRectForNode };\n","import { createContext } from 'react';\n\nconst PortalsManagerContext = /*#__PURE__*/createContext(undefined);\n\nexport { PortalsManagerContext };\n","import { createContext } from 'react';\n\nconst StickyManagerContext = /*#__PURE__*/createContext(undefined);\n\nexport { StickyManagerContext };\n","import { themeDefault } from '@shopify/polaris-tokens';\nimport { debounce } from '../debounce.js';\nimport { scrollable, dataPolarisTopBar } from '../../components/shared.js';\nimport { stackedContent } from '../breakpoints.js';\nimport { getRectForNode } from '../geometry.js';\n\nconst SIXTY_FPS = 1000 / 60;\nclass StickyManager {\n constructor(container) {\n this.stickyItems = [];\n this.stuckItems = [];\n this.container = null;\n this.topBarOffset = 0;\n this.handleResize = debounce(() => {\n this.manageStickyItems();\n }, SIXTY_FPS, {\n leading: true,\n trailing: true,\n maxWait: SIXTY_FPS\n });\n this.handleScroll = debounce(() => {\n this.manageStickyItems();\n }, SIXTY_FPS, {\n leading: true,\n trailing: true,\n maxWait: SIXTY_FPS\n });\n if (container) {\n this.setContainer(container);\n }\n }\n registerStickyItem(stickyItem) {\n this.stickyItems.push(stickyItem);\n }\n unregisterStickyItem(nodeToRemove) {\n const nodeIndex = this.stickyItems.findIndex(({\n stickyNode\n }) => nodeToRemove === stickyNode);\n this.stickyItems.splice(nodeIndex, 1);\n }\n getStickyItem(node) {\n return this.stickyItems.find(({\n stickyNode\n }) => node === stickyNode);\n }\n setContainer(el) {\n this.container = el;\n if (isDocument(el)) {\n this.setTopBarOffset(el);\n }\n this.container.addEventListener('scroll', this.handleScroll);\n window.addEventListener('resize', this.handleResize);\n this.manageStickyItems();\n }\n removeScrollListener() {\n if (this.container) {\n this.container.removeEventListener('scroll', this.handleScroll);\n window.removeEventListener('resize', this.handleResize);\n }\n }\n manageStickyItems() {\n if (this.stickyItems.length <= 0) {\n return;\n }\n const scrollTop = this.container ? scrollTopFor(this.container) : 0;\n const containerTop = getRectForNode(this.container).top + this.topBarOffset;\n this.stickyItems.forEach(stickyItem => {\n const {\n handlePositioning\n } = stickyItem;\n const {\n sticky,\n top,\n left,\n width\n } = this.evaluateStickyItem(stickyItem, scrollTop, containerTop);\n this.updateStuckItems(stickyItem, sticky);\n handlePositioning(sticky, top, left, width);\n });\n }\n evaluateStickyItem(stickyItem, scrollTop, containerTop) {\n const {\n stickyNode,\n placeHolderNode,\n boundingElement,\n offset,\n disableWhenStacked\n } = stickyItem;\n if (disableWhenStacked && stackedContent().matches) {\n return {\n sticky: false,\n top: 0,\n left: 0,\n width: 'auto'\n };\n }\n const stickyOffset = offset ? this.getOffset(stickyNode) + parseInt(\n // Important: This will not update when the active theme changes.\n // Update this to `useTheme` once converted to a function component.\n themeDefault.space['space-500'], 10) : this.getOffset(stickyNode);\n const scrollPosition = scrollTop + stickyOffset;\n const placeHolderNodeCurrentTop = placeHolderNode.getBoundingClientRect().top - containerTop + scrollTop;\n const top = containerTop + stickyOffset;\n const width = placeHolderNode.getBoundingClientRect().width;\n const left = placeHolderNode.getBoundingClientRect().left;\n let sticky;\n if (boundingElement == null) {\n sticky = scrollPosition >= placeHolderNodeCurrentTop;\n } else {\n const stickyItemHeight = stickyNode.getBoundingClientRect().height || stickyNode.firstElementChild?.getBoundingClientRect().height || 0;\n const stickyItemBottomPosition = boundingElement.getBoundingClientRect().bottom - stickyItemHeight + scrollTop - containerTop;\n sticky = scrollPosition >= placeHolderNodeCurrentTop && scrollPosition < stickyItemBottomPosition;\n }\n return {\n sticky,\n top,\n left,\n width\n };\n }\n updateStuckItems(item, sticky) {\n const {\n stickyNode\n } = item;\n if (sticky && !this.isNodeStuck(stickyNode)) {\n this.addStuckItem(item);\n } else if (!sticky && this.isNodeStuck(stickyNode)) {\n this.removeStuckItem(item);\n }\n }\n addStuckItem(stickyItem) {\n this.stuckItems.push(stickyItem);\n }\n removeStuckItem(stickyItem) {\n const {\n stickyNode: nodeToRemove\n } = stickyItem;\n const nodeIndex = this.stuckItems.findIndex(({\n stickyNode\n }) => nodeToRemove === stickyNode);\n this.stuckItems.splice(nodeIndex, 1);\n }\n getOffset(node) {\n if (this.stuckItems.length === 0) {\n return 0;\n }\n let offset = 0;\n let count = 0;\n const stuckNodesLength = this.stuckItems.length;\n const nodeRect = getRectForNode(node);\n while (count < stuckNodesLength) {\n const stuckNode = this.stuckItems[count].stickyNode;\n if (stuckNode !== node) {\n const stuckNodeRect = getRectForNode(stuckNode);\n if (!horizontallyOverlaps(nodeRect, stuckNodeRect)) {\n offset += getRectForNode(stuckNode).height;\n }\n } else {\n break;\n }\n count++;\n }\n return offset;\n }\n isNodeStuck(node) {\n const nodeFound = this.stuckItems.findIndex(({\n stickyNode\n }) => node === stickyNode);\n return nodeFound >= 0;\n }\n setTopBarOffset(container) {\n const topbarElement = container.querySelector(`:not(${scrollable.selector}) ${dataPolarisTopBar.selector}`);\n this.topBarOffset = topbarElement ? topbarElement.clientHeight : 0;\n }\n}\nfunction isDocument(node) {\n return node === document;\n}\nfunction scrollTopFor(container) {\n return isDocument(container) ? document.body.scrollTop || document.documentElement.scrollTop : container.scrollTop;\n}\nfunction horizontallyOverlaps(rect1, rect2) {\n const rect1Left = rect1.left;\n const rect1Right = rect1.left + rect1.width;\n const rect2Left = rect2.left;\n const rect2Right = rect2.left + rect2.width;\n return rect2Right < rect1Left || rect1Right < rect2Left;\n}\n\nexport { StickyManager };\n","import { useContext, createContext } from 'react';\nimport { themes } from '@shopify/polaris-tokens';\n\nconst ThemeContext = /*#__PURE__*/createContext(null);\nconst ThemeNameContext = /*#__PURE__*/createContext(null);\nfunction getTheme(themeName) {\n return themes[themeName];\n}\nfunction useTheme() {\n const theme = useContext(ThemeContext);\n if (!theme) {\n throw new Error('No theme was provided. Your application must be wrapped in an or component. See https://polaris.shopify.com/components/app-provider for implementation instructions.');\n }\n return theme;\n}\nfunction useThemeName() {\n const themeName = useContext(ThemeNameContext);\n if (!themeName) {\n throw new Error('No themeName was provided. Your application must be wrapped in an or component. See https://polaris.shopify.com/components/app-provider for implementation instructions.');\n }\n return themeName;\n}\nfunction UseTheme(props) {\n const theme = useTheme();\n return props.children(theme);\n}\n\nexport { ThemeContext, ThemeNameContext, UseTheme, getTheme, useTheme, useThemeName };\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)