@plasmicapp/react-web
Advanced tools
Comparing version 0.2.104 to 0.2.105
import * as React from 'react'; | ||
import React__default, { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperties, FocusEvent, KeyboardEvent as KeyboardEvent$1, SyntheticEvent, ReactNode } from 'react'; | ||
import React__default, { AriaAttributes, DOMAttributes as DOMAttributes$1, AriaRole, CSSProperties, Key, ReactNode, ReactElement, FocusEvent, KeyboardEvent as KeyboardEvent$1, SyntheticEvent } from 'react'; | ||
@@ -389,2 +389,100 @@ // This is the only way I found to break circular references between ClassArray and ClassValue | ||
type SelectionMode = 'none' | 'single' | 'multiple'; | ||
type SelectionBehavior = 'toggle' | 'replace'; | ||
type Selection = 'all' | Set<Key>; | ||
type FocusStrategy = 'first' | 'last'; | ||
type DisabledBehavior = 'selection' | 'all'; | ||
/* | ||
* Copyright 2020 Adobe. All rights reserved. | ||
* This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. You may obtain a copy | ||
* of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under | ||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
* OF ANY KIND, either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
/** | ||
* A generic interface to access a readonly sequential | ||
* collection of unique keyed items. | ||
*/ | ||
interface Collection<T> extends Iterable<T> { | ||
/** The number of items in the collection. */ | ||
readonly size: number, | ||
/** Iterate over all keys in the collection. */ | ||
getKeys(): Iterable<Key>, | ||
/** Get an item by its key. */ | ||
getItem(key: Key): T, | ||
/** Get an item by the index of its key. */ | ||
at(idx: number): T, | ||
/** Get the key that comes before the given key in the collection. */ | ||
getKeyBefore(key: Key): Key | null, | ||
/** Get the key that comes after the given key in the collection. */ | ||
getKeyAfter(key: Key): Key | null, | ||
/** Get the first key in the collection. */ | ||
getFirstKey(): Key | null, | ||
/** Get the last key in the collection. */ | ||
getLastKey(): Key | null | ||
} | ||
interface Node<T> { | ||
/** The type of item this node represents. */ | ||
type: string, | ||
/** A unique key for the node. */ | ||
key: Key, | ||
/** The object value the node was created from. */ | ||
value: T, | ||
/** The level of depth this node is at in the heirarchy. */ | ||
level: number, | ||
/** Whether this item has children, even if not loaded yet. */ | ||
hasChildNodes: boolean, | ||
/** The loaded children of this node. */ | ||
childNodes: Iterable<Node<T>>, | ||
/** The rendered contents of this node (e.g. JSX). */ | ||
rendered: ReactNode, | ||
/** A string value for this node, used for features like typeahead. */ | ||
textValue: string, | ||
/** An accessibility label for this node. */ | ||
'aria-label'?: string, | ||
/** The index of this node within its parent. */ | ||
index?: number, | ||
/** A function that should be called to wrap the rendered node. */ | ||
wrapper?: (element: ReactElement) => ReactElement, | ||
/** The key of the parent node. */ | ||
parentKey?: Key, | ||
/** The key of the node before this node. */ | ||
prevKey?: Key, | ||
/** The key of the node after this node. */ | ||
nextKey?: Key, | ||
/** Additional properties specific to a particular node type. */ | ||
props?: any, | ||
/** @private */ | ||
shouldInvalidate?: (context: unknown) => boolean | ||
} | ||
/* | ||
* Copyright 2020 Adobe. All rights reserved. | ||
* This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. You may obtain a copy | ||
* of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under | ||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
* OF ANY KIND, either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
// Event bubbling can be problematic in real-world applications, so the default for React Spectrum components | ||
@@ -400,2 +498,26 @@ // is not to propagate. This can be overridden by calling continuePropagation() on the event. | ||
type PointerType = 'mouse' | 'pen' | 'touch' | 'keyboard' | 'virtual'; | ||
interface PressEvent { | ||
/** The type of press event being fired. */ | ||
type: 'pressstart' | 'pressend' | 'pressup' | 'press', | ||
/** The pointer type that triggered the press event. */ | ||
pointerType: PointerType, | ||
/** The target element of the press event. */ | ||
target: Element, | ||
/** Whether the shift keyboard modifier was held during the press event. */ | ||
shiftKey: boolean, | ||
/** Whether the ctrl keyboard modifier was held during the press event. */ | ||
ctrlKey: boolean, | ||
/** Whether the meta keyboard modifier was held during the press event. */ | ||
metaKey: boolean, | ||
/** Whether the alt keyboard modifier was held during the press event. */ | ||
altKey: boolean | ||
} | ||
interface LongPressEvent extends Omit<PressEvent, 'type'> { | ||
/** The type of long press event being fired. */ | ||
type: 'longpressstart' | 'longpressend' | 'longpress' | ||
} | ||
interface KeyboardEvents { | ||
@@ -1060,2 +1182,198 @@ /** Handler that is called when a key is pressed. */ | ||
interface FocusState { | ||
/** Whether the collection is currently focused. */ | ||
readonly isFocused: boolean; | ||
/** Sets whether the collection is focused. */ | ||
setFocused(isFocused: boolean): void; | ||
/** The current focused key in the collection. */ | ||
readonly focusedKey: Key; | ||
/** Whether the first or last child of the focused key should receive focus. */ | ||
readonly childFocusStrategy: FocusStrategy; | ||
/** Sets the focused key, and optionally, whether the first or last child of that key should receive focus. */ | ||
setFocusedKey(key: Key, child?: FocusStrategy): void; | ||
} | ||
interface MultipleSelectionState extends FocusState { | ||
/** The type of selection that is allowed in the collection. */ | ||
readonly selectionMode: SelectionMode; | ||
/** The selection behavior for the collection. */ | ||
readonly selectionBehavior: SelectionBehavior; | ||
/** Sets the selection behavior for the collection. */ | ||
setSelectionBehavior(selectionBehavior: SelectionBehavior): void; | ||
/** Whether the collection allows empty selection. */ | ||
readonly disallowEmptySelection: boolean; | ||
/** The currently selected keys in the collection. */ | ||
readonly selectedKeys: Selection; | ||
/** Sets the selected keys in the collection. */ | ||
setSelectedKeys(keys: Selection): void; | ||
/** The currently disabled keys in the collection. */ | ||
readonly disabledKeys: Set<Key>; | ||
/** Whether `disabledKeys` applies to selection, actions, or both. */ | ||
readonly disabledBehavior: DisabledBehavior; | ||
} | ||
interface MultipleSelectionManager extends FocusState { | ||
/** The type of selection that is allowed in the collection. */ | ||
readonly selectionMode: SelectionMode; | ||
/** The selection behavior for the collection. */ | ||
readonly selectionBehavior: SelectionBehavior; | ||
/** Whether the collection allows empty selection. */ | ||
readonly disallowEmptySelection?: boolean; | ||
/** The currently selected keys in the collection. */ | ||
readonly selectedKeys: Set<Key>; | ||
/** Whether the selection is empty. */ | ||
readonly isEmpty: boolean; | ||
/** Whether all items in the collection are selected. */ | ||
readonly isSelectAll: boolean; | ||
/** The first selected key in the collection. */ | ||
readonly firstSelectedKey: Key | null; | ||
/** The last selected key in the collection. */ | ||
readonly lastSelectedKey: Key | null; | ||
/** The currently disabled keys in the collection. */ | ||
readonly disabledKeys: Set<Key>; | ||
/** Whether `disabledKeys` applies to selection, actions, or both. */ | ||
readonly disabledBehavior: DisabledBehavior; | ||
/** Returns whether a key is selected. */ | ||
isSelected(key: Key): boolean; | ||
/** Returns whether the current selection is equal to the given selection. */ | ||
isSelectionEqual(selection: Set<Key>): boolean; | ||
/** Extends the selection to the given key. */ | ||
extendSelection(toKey: Key): void; | ||
/** Toggles whether the given key is selected. */ | ||
toggleSelection(key: Key): void; | ||
/** Replaces the selection with only the given key. */ | ||
replaceSelection(key: Key): void; | ||
/** Replaces the selection with the given keys. */ | ||
setSelectedKeys(keys: Iterable<Key>): void; | ||
/** Selects all items in the collection. */ | ||
selectAll(): void; | ||
/** Removes all keys from the selection. */ | ||
clearSelection(): void; | ||
/** Toggles between select all and an empty selection. */ | ||
toggleSelectAll(): void; | ||
/** | ||
* Toggles, replaces, or extends selection to the given key depending | ||
* on the pointer event and collection's selection mode. | ||
*/ | ||
select(key: Key, e?: PressEvent | LongPressEvent | PointerEvent): void; | ||
/** Returns whether the given key can be selected. */ | ||
canSelectItem(key: Key): boolean; | ||
/** Returns whether the given key is non-interactive, i.e. both selection and actions are disabled. */ | ||
isDisabled(key: Key): boolean; | ||
/** Sets the selection behavior for the collection. */ | ||
setSelectionBehavior(selectionBehavior: SelectionBehavior): void; | ||
} | ||
interface SelectionManagerOptions { | ||
allowsCellSelection?: boolean; | ||
} | ||
/** | ||
* An interface for reading and updating multiple selection state. | ||
*/ | ||
declare class SelectionManager implements MultipleSelectionManager { | ||
constructor(collection: Collection<Node<unknown>>, state: MultipleSelectionState, options?: SelectionManagerOptions); | ||
/** | ||
* The type of selection that is allowed in the collection. | ||
*/ | ||
get selectionMode(): SelectionMode; | ||
/** | ||
* Whether the collection allows empty selection. | ||
*/ | ||
get disallowEmptySelection(): boolean; | ||
/** | ||
* The selection behavior for the collection. | ||
*/ | ||
get selectionBehavior(): SelectionBehavior; | ||
/** | ||
* Sets the selection behavior for the collection. | ||
*/ | ||
setSelectionBehavior(selectionBehavior: SelectionBehavior): void; | ||
/** | ||
* Whether the collection is currently focused. | ||
*/ | ||
get isFocused(): boolean; | ||
/** | ||
* Sets whether the collection is focused. | ||
*/ | ||
setFocused(isFocused: boolean): void; | ||
/** | ||
* The current focused key in the collection. | ||
*/ | ||
get focusedKey(): Key; | ||
/** Whether the first or last child of the focused key should receive focus. */ | ||
get childFocusStrategy(): FocusStrategy; | ||
/** | ||
* Sets the focused key. | ||
*/ | ||
setFocusedKey(key: Key, childFocusStrategy?: FocusStrategy): void; | ||
/** | ||
* The currently selected keys in the collection. | ||
*/ | ||
get selectedKeys(): Set<Key>; | ||
/** | ||
* The raw selection value for the collection. | ||
* Either 'all' for select all, or a set of keys. | ||
*/ | ||
get rawSelection(): Selection; | ||
/** | ||
* Returns whether a key is selected. | ||
*/ | ||
isSelected(key: Key): boolean; | ||
/** | ||
* Whether the selection is empty. | ||
*/ | ||
get isEmpty(): boolean; | ||
/** | ||
* Whether all items in the collection are selected. | ||
*/ | ||
get isSelectAll(): boolean; | ||
get firstSelectedKey(): Key | null; | ||
get lastSelectedKey(): Key | null; | ||
get disabledKeys(): Set<Key>; | ||
get disabledBehavior(): DisabledBehavior; | ||
/** | ||
* Extends the selection to the given key. | ||
*/ | ||
extendSelection(toKey: Key): void; | ||
/** | ||
* Toggles whether the given key is selected. | ||
*/ | ||
toggleSelection(key: Key): void; | ||
/** | ||
* Replaces the selection with only the given key. | ||
*/ | ||
replaceSelection(key: Key): void; | ||
/** | ||
* Replaces the selection with the given keys. | ||
*/ | ||
setSelectedKeys(keys: Iterable<Key>): void; | ||
/** | ||
* Selects all items in the collection. | ||
*/ | ||
selectAll(): void; | ||
/** | ||
* Removes all keys from the selection. | ||
*/ | ||
clearSelection(): void; | ||
/** | ||
* Toggles between select all and an empty selection. | ||
*/ | ||
toggleSelectAll(): void; | ||
select(key: Key, e?: PressEvent | LongPressEvent | PointerEvent): void; | ||
/** | ||
* Returns whether the current selection is equal to the given selection. | ||
*/ | ||
isSelectionEqual(selection: Set<Key>): boolean; | ||
canSelectItem(key: Key): boolean; | ||
isDisabled(key: Key): boolean; | ||
} | ||
interface ListState<T> { | ||
/** A collection of items in the list. */ | ||
collection: Collection<Node<T>>; | ||
/** A set of items that are disabled. */ | ||
disabledKeys: Set<Key>; | ||
/** A selection manager to read and update multiple selection state. */ | ||
selectionManager: SelectionManager; | ||
} | ||
declare const SelectContext: React.Context<ListState<any> | undefined>; | ||
/* | ||
@@ -1199,2 +1517,26 @@ * Copyright 2020 Adobe. All rights reserved. | ||
interface OverlayTriggerState { | ||
/** Whether the overlay is currently open. */ | ||
readonly isOpen: boolean; | ||
/** Sets whether the overlay is open. */ | ||
setOpen(isOpen: boolean): void; | ||
/** Opens the overlay. */ | ||
open(): void; | ||
/** Closes the overlay. */ | ||
close(): void; | ||
/** Toggles the overlay's visibility. */ | ||
toggle(): void; | ||
} | ||
interface TriggeredOverlayContextValue { | ||
triggerRef: React.RefObject<HTMLElement>; | ||
state: OverlayTriggerState; | ||
autoFocus?: boolean | FocusStrategy; | ||
placement?: Placement; | ||
overlayMatchTriggerWidth?: boolean; | ||
overlayMinTriggerWidth?: boolean; | ||
overlayWidth?: number; | ||
} | ||
declare const TriggeredOverlayContext: React.Context<TriggeredOverlayContextValue | undefined>; | ||
declare type InitFunc<T> = ($props: Record<string, any>, $state: $State) => T; | ||
@@ -1224,2 +1566,2 @@ interface $State { | ||
export { BaseButtonProps, BaseMenuButtonProps, BaseMenuGroupProps, BaseMenuItemProps, BaseMenuProps, BaseSelectOptionGroupProps, BaseSelectOptionProps, BaseSelectProps, BaseTextInputProps, BaseTriggeredOverlayProps, ButtonRef, CheckboxProps, CheckboxRef, CheckboxRefValue, DropdownMenu, Flex, HTMLElementRefOf, HtmlAnchorOnlyProps, HtmlButtonOnlyProps, MenuButtonRef, MenuButtonRefValue, MenuRef, MenuRefValue, MultiChoiceArg, PlasmicIcon, PlasmicImg, PlasmicLink, PlasmicRootProvider, PlasmicSlot, SelectOptionRef, SelectRef, SelectRefValue, SingleBooleanChoiceArg, SingleChoiceArg, Stack, StrictProps, SwitchProps, SwitchRef, SwitchRefValue, TextInputRef, TextInputRefValue, Trans, TriggeredOverlayConfig, TriggeredOverlayRef, classNames, createPlasmicElementProxy, createUseScreenVariants, deriveRenderOpts, ensureGlobalVariants, genTranslatableString, generateStateOnChangeProp, generateStateValueProp, getDataProps, hasVariant, makeFragment, omit, pick, renderPlasmicSlot, setPlumeStrictMode, useButton, useCheckbox, useVanillaDollarState as useDollarState, useIsSSR, useMenu, useMenuButton, useMenuGroup, useMenuItem, useSelect, useSelectOption, useSelectOptionGroup, useSwitch, useTextInput, useTrigger, useTriggeredOverlay, wrapWithClassName }; | ||
export { BaseButtonProps, BaseMenuButtonProps, BaseMenuGroupProps, BaseMenuItemProps, BaseMenuProps, BaseSelectOptionGroupProps, BaseSelectOptionProps, BaseSelectProps, BaseTextInputProps, BaseTriggeredOverlayProps, ButtonRef, CheckboxProps, CheckboxRef, CheckboxRefValue, DropdownMenu, Flex, HTMLElementRefOf, HtmlAnchorOnlyProps, HtmlButtonOnlyProps, MenuButtonRef, MenuButtonRefValue, MenuRef, MenuRefValue, MultiChoiceArg, PlasmicIcon, PlasmicImg, PlasmicLink, PlasmicRootProvider, PlasmicSlot, SelectContext, SelectOptionRef, SelectRef, SelectRefValue, SingleBooleanChoiceArg, SingleChoiceArg, Stack, StrictProps, SwitchProps, SwitchRef, SwitchRefValue, TextInputRef, TextInputRefValue, Trans, TriggeredOverlayConfig, TriggeredOverlayContext, TriggeredOverlayRef, classNames, createPlasmicElementProxy, createUseScreenVariants, deriveRenderOpts, ensureGlobalVariants, genTranslatableString, generateStateOnChangeProp, generateStateValueProp, getDataProps, hasVariant, makeFragment, omit, pick, renderPlasmicSlot, setPlumeStrictMode, useButton, useCheckbox, useVanillaDollarState as useDollarState, useIsSSR, useMenu, useMenuButton, useMenuGroup, useMenuItem, useSelect, useSelectOption, useSelectOptionGroup, useSwitch, useTextInput, useTrigger, useTriggeredOverlay, wrapWithClassName }; |
export { BaseSelectProps, SelectRef, SelectRefValue, useSelect, } from "./select"; | ||
export { BaseSelectOptionProps, SelectOptionRef, useSelectOption, } from "./select-option"; | ||
export { BaseSelectOptionGroupProps, useSelectOptionGroup, } from "./select-option-group"; | ||
export { SelectContext } from "./context"; |
export { BaseTriggeredOverlayProps, TriggeredOverlayConfig, TriggeredOverlayRef, useTriggeredOverlay, } from "./triggered-overlay"; | ||
export { TriggeredOverlayContext } from "./context"; |
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("classnames")),r=require("react"),n=e(r),a=require("react-dom"),i=e(a),o=require("@react-aria/ssr"),s=require("@react-aria/focus"),u=require("@react-aria/checkbox"),l=require("@react-aria/visually-hidden"),c=require("@react-stately/toggle"),p=require("@react-aria/menu"),d=require("@react-stately/tree"),f=require("@react-stately/collections"),v=require("@react-aria/separator"),h=require("@react-stately/menu"),m=require("@react-aria/interactions"),y=require("@react-aria/select"),g=require("@react-aria/listbox"),b=require("@react-stately/select"),P=require("@react-aria/switch"),w=require("@react-aria/overlays"),S=e(require("dlv")),V=require("dset");function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function x(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return E(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function M(e){return null!=e}function I(e){if(0===Object.keys(e).length)return e;for(var t={},r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(var i=0,o=n;i<o.length;i++){var s=o[i];s in e&&(t[s]=e[s])}return t}function F(e){if(0===Object.keys(e).length)return e;for(var t={},r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(var i=0,o=Object.keys(e);i<o.length;i++){var s=o[i];n.includes(s)||(t[s]=e[s])}return t}function j(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0!==t.length)return function(e){for(var r,n=e,a=C(t);!(r=a()).done;)n=(0,r.value)(n);return n}}function k(e,t){for(var r,n={},a=C(e);!(r=a()).done;){var i=r.value,o=t(i);o in n?n[o].push(i):n[o]=[i]}return n}function A(e,t){var r={};for(var n in e)r[n]=t(e[n]);return r}var T="undefined"!=typeof window,R=Symbol("NONE"),D=T?n.useLayoutEffect:n.useEffect;function N(e,t,r){return Array.isArray(r)?n.createElement.apply(n,[e,t].concat(r)):r||"children"in t?n.createElement(e,t,r):n.createElement(e,t)}function W(e){return n.isValidElement(t=e)||function(e){return"string"==typeof e||"number"==typeof e}(t)?[e]:Array.isArray(e)?e.flatMap(W):[];var t}function q(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(r.every((function(e){return 0===Object.keys(e).length})))return e;for(var a=O({},e),i=0,o=r;i<o.length;i++)for(var s=o[i],u=0,l=Object.keys(s);u<l.length;u++){var c=l[u];a[c]=H(c,a[c],s[c])}return a}function K(e,t){e&&("function"==typeof e?e(t):Object.isFrozen(e)||(e.current=t))}function _(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r,n=C(t);!(r=n()).done;)K(r.value,e)}}function H(e,r,n){return r===R||n===R?null:null==r?n:null==n?r:"className"===e?t(r,n):"style"===e?O({},r,n):"ref"===e?_(r,n):typeof r!=typeof n?n:e.startsWith("on")&&"function"==typeof r?function(){var e;return"function"==typeof r&&(e=r.apply(void 0,arguments)),"function"==typeof n&&(e=n.apply(void 0,arguments)),e}:n}function L(e,t,r,n){var a=t.children,i=x(t,["children"]),o=B(a,null!=r&&r);return N(e,O({ref:n},i),o)}function U(e,t){var r=e.as,n=e.hasGap;return L(null!=r?r:"div",x(e,["as","hasGap"]),n,t)}var z=function(e){return r.forwardRef((function(t,r){var n=t.hasGap,a=x(t,["hasGap"]);return L(e,a,n,r)}))},G=Object.assign(r.forwardRef(U),{div:z("div"),a:z("a"),button:z("button"),h1:z("h1"),h2:z("h2"),h3:z("h3"),h4:z("h4"),h5:z("h5"),h6:z("h6"),label:z("label"),form:z("form"),section:z("section"),head:z("head"),main:z("main"),nav:z("nav")});function B(e,t){var n=t?"__wab_flex-container":"__wab_passthrough";return e?Array.isArray(e)?r.createElement.apply(r,["div",{className:n}].concat(e)):r.createElement("div",{className:n},e):null}function J(e,t,r,a){if(!e||0===Object.keys(e).length)return N(t,r,r.children);var i=Z(e),o=X(r,i.props);if("render"===i.type)return i.render(o,t);var s=t;"as"===i.type&&i.as&&(t===G?o.as=i.as:s=i.as);var u=o.children;i.wrapChildren&&(u=i.wrapChildren(function(e){return Array.isArray(e)?1===e.length?e[0]:n.createElement.apply(n,[n.Fragment,{}].concat(e)):e}(u))),a&&(u=B(u,!0));var l=N(s,o,u);return i.wrap&&(l=i.wrap(l)),l}var Y=new Map;function $(e,t){var r,n=t["data-plasmic-override"],a=t["data-plasmic-wrap-flex-child"],i=null!=(r=t["data-plasmic-trigger-props"])?r:[];delete t["data-plasmic-override"],delete t["data-plasmic-wrap-flex-child"],delete t["data-plasmic-trigger-props"];for(var o=arguments.length,s=new Array(o>2?o-2:0),u=2;u<o;u++)s[u-2]=arguments[u];return J(n,e,q.apply(void 0,[t,0===s.length?{}:{children:1===s.length?s[0]:s}].concat(i)),a)}var Q=Symbol("UNSET");function X(e,t){if(!t)return e;for(var r=O({},e),n=0,a=Object.keys(t);n<a.length;n++){var i=a[n],o=e[i],s=t[i];s===Q?delete r[i]:(null!=s||"className"===i||"style"===i||i.startsWith("on")&&"function"==typeof o||(s=R),r[i]=H(i,o,s))}return r}function Z(e){if(!e)return{type:"default",props:{}};if(function(e){return"string"==typeof e||"number"==typeof e||n.isValidElement(e)}(e))return{type:"default",props:{children:e}};if("object"==typeof e)return"as"in e?O({},e,{props:e.props||{},type:"as"}):"render"in e?O({},e,{type:"render"}):"props"in e?O({},e,{props:e.props||{},type:"default"}):(t=Object.keys(e),r=["wrap","wrapChildren"],t.every((function(e){return r.includes(e)}))?O({},e,{props:{},type:"default"}):{type:"default",props:e});if("function"==typeof e)return{type:"render",render:e};var t,r;throw new Error("Unexpected override: "+e)}function ee(e,t){if(!t)return e;for(var r={},n=0,a=Array.from(new Set([].concat(Object.keys(e),Object.keys(t))));n<a.length;n++){var i=a[n];r[i]=te(e[i],t[i])}return r}function te(e,t){var r,n;if(!e)return t;if(!t)return e;var a=Z(e),i=Z(t),o=j.apply(void 0,[a.wrap,i.wrap].filter(M)),s=j.apply(void 0,[a.wrapChildren,i.wrapChildren].filter(M)),u=X(null!=(r=a.props)?r:{},i.props);if("render"===i.type)return{render:i.render,props:u,wrap:o,wrapChildren:s};if("render"===a.type)return{render:a.render,props:u,wrap:o,wrapChildren:s};var l=null!=(n="as"===i.type?i.as:void 0)?n:"as"===a.type?a.as:void 0;return O({props:u,wrap:o,wrapChildren:s},l?{as:l}:{})}var re=[640,750,828,1080,1200,1920,2048,3840],ne=[].concat([16,32,48,64,96,128,256,384],re),ae=n.forwardRef((function(e,r){var a=e.src,i=e.className,o=e.displayWidth,s=e.displayHeight,u=e.displayMinWidth,l=e.displayMinHeight,c=e.displayMaxWidth,p=e.displayMaxHeight,d=e.quality,f=e.loader,v=e.imgRef,h=e.style,m=e.loading,y=x(e,["src","className","displayWidth","displayHeight","displayMinWidth","displayMinHeight","displayMaxWidth","displayMaxHeight","quality","loader","imgRef","style","loading"]),g=Object.assign({},y,{loading:null!=m?m:"lazy"}),b="string"!=typeof a&&a?a:{fullWidth:void 0,fullHeight:void 0,aspectRatio:void 0},P=b.fullWidth,w=b.fullHeight,S=b.aspectRatio,V=a?"string"==typeof a?a:"string"==typeof a.src?a.src:a.src.src:"";if(null==w||null==P)return n.createElement("img",Object.assign({src:V,className:i,style:h},g,{loading:m,ref:_(v,r)}));!oe(V)||null!=s&&"auto"!==s||null!=o&&"auto"!==o||(o="100%");var E=o;P&&w&&(!o||"auto"===o)&&ue(s)&&(oe(V)||(E=ue(s)*P/w));var C=P,M=w;S&&isFinite(S)&&oe(V)&&(C=ie,M=Math.round(C/S));var F=function(e,t,r){var n=null==r?void 0:r.minWidth,a=ue(e),i=ue(n);if(null!=a&&(!n||null!=i))return{widthDescs:[{width:se(Math.max(a,null!=i?i:0),t),desc:"1x"},{width:se(2*Math.max(a,null!=i?i:0),t),desc:"2x"}],sizes:void 0};var o=re.filter((function(e){return!t||e<t}));return t&&0===o.length?{widthDescs:[{width:se(t,t),desc:"1x"}],sizes:void 0}:{widthDescs:o.map((function(e){return{width:se(e,t),desc:e+"w"}})),sizes:"100vw"}}(E,P,{minWidth:u}),j=F.sizes,k=F.widthDescs,A=function(e){return null==e?void 0:"plasmic"===e?le:e}(f),T='<svg width="'+C+'" height="'+M+'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>',R="undefined"==typeof window?Buffer.from(T).toString("base64"):window.btoa(T),D=O({},h||{}),N=O({},I(h||{},"objectFit","objectPosition"));return null!=o&&"auto"!==o?N.width="100%":(N.width=o,D.width="auto",u&&(N.minWidth="100%"),null!=c&&"none"!==c&&(N.maxWidth="100%")),null!=s&&"auto"!==s?N.height="100%":(N.height=s,D.height="auto",l&&(N.minHeight="100%"),null!=p&&"none"!==p&&(N.maxHeight="100%")),n.createElement("div",{className:t(i,"__wab_img-wrapper"),ref:r,style:D},n.createElement("img",{alt:"","aria-hidden":!0,className:"__wab_img-spacer-svg",src:"data:image/svg+xml;base64,"+R,style:N}),function(e){var t=e.imageLoader,r=e.widthDescs,a=e.src,i=e.quality,o=e.style,s=e.className,u=e.sizes,l=e.imgProps,c=e.ref;return n.createElement("picture",{className:"__wab_picture"},t&&t.supportsUrl(a)&&n.createElement("source",{type:"image/webp",srcSet:r.map((function(e){return t.transformUrl({src:a,quality:i,width:e.width,format:"webp"})+" "+e.desc})).join(", ")}),n.createElement("img",Object.assign({},l,{ref:c,className:s,decoding:"async",src:t&&t.supportsUrl(a)?t.transformUrl({src:a,quality:i,width:r[r.length-1].width}):a,srcSet:t&&t.supportsUrl(a)?r.map((function(e){return t.transformUrl({src:a,quality:i,width:e.width})+" "+e.desc})).join(", "):void 0,sizes:t&&t.supportsUrl(a)?u:void 0,style:O({},o?I(o,"objectFit","objectPosition"):{},{width:0,height:0})})))}({imageLoader:A,widthDescs:k,sizes:j,src:V,quality:d,ref:v,style:h?I(h,"objectFit","objectPosition"):void 0,imgProps:g,className:"__wab_img"}))})),ie=1e4;function oe(e){return e.endsWith(".svg")||e.startsWith("data:image/svg")}function se(e,t){var r,n=null!=(r=ne.findIndex((function(t){return t>=e})))?r:ne.length-1,a=ne[n];if(!(a>=t||n+1<ne.length&&t<=ne[n+1]))return a}function ue(e){if(null!=e&&""!=e){if("number"==typeof e)return e;var t=function(e){var t=e.match(/^\s*(-?(?:\d+\.\d*|\d*\.\d+|\d+))\s*([a-z]*|%)\s*(?:\/\*.*)?$/i);if(null!=t)return{num:+t[1],units:t[2]}}(e);return!t||t.units&&"px"!==t.units?void 0:t.num}}var le={supportsUrl:function(e){return e.startsWith("https://img.plasmic.app")&&!oe(e)},transformUrl:function(e){var t,r=[e.width?"w="+e.width:void 0,"q="+(null!=(t=e.quality)?t:75),e.format?"f="+e.format:void 0].filter((function(e){return!!e}));return e.src+"?"+r.join("&")}},ce=n.forwardRef((function(e,t){if("nextjs"===e.platform&&e.href){var r=["href","replace","scroll","shallow","passHref","prefetch","locale"];return n.createElement(e.component,I.apply(void 0,[e].concat(r)),n.createElement("a",Object.assign({},F.apply(void 0,[e,"component","platform"].concat(r)),{ref:t})))}return"gatsby"===e.platform&&/^\/(?!\/)/.test(e.href)?n.createElement(e.component,O({},F(e,"component","platform","href"),{to:e.href,ref:t})):n.createElement("a",Object.assign({},F(e,"component","platform"),{ref:t}))})),pe=n.createContext(void 0);function de(e){var t={},r=0;return{str:function e(a){if(!a)return"";if("number"==typeof a||"boolean"==typeof a||"string"==typeof a)return a.toString();if("object"!=typeof a)return"";if(Array.isArray(a)||null!=(i=a)&&"function"==typeof i[Symbol.iterator])return Array.from(a).map((function(t){return e(t)})).filter((function(e){return!!e})).join("");var i,o=he(a,"props")&&he(a.props,"children")&&a.props.children||he(a,"children")&&a.children||[],s=""+n.Children.toArray(o).map((function(t){return e(t)})).filter((function(e){return!!e})).join("");if(n.isValidElement(a)&&a.type===n.Fragment)return s;var u=r+1;return r++,t[u]=n.isValidElement(a)?n.cloneElement(a,{key:u,children:void 0}):a,"<"+u+">"+s+"</"+u+">"}(e),components:t,componentsCount:r}}function fe(e){var t=e.children,r=n.useContext(pe);if(!r)return ve||(console.warn("Using Plasmic Translation but no translation function has been provided"),ve=!0),t;var a=de(t);return r(a.str,a.componentsCount>0?{components:a.components}:void 0)}var ve=!1;function he(e,t){return"object"==typeof e&&null!==e&&t in e}function me(e){var t=e.as,n=e.defaultContents,a=e.value,i=x(e,["as","defaultContents","value"]),o=void 0===a?n:a;if(!o||Array.isArray(o)&&0===o.length)return null;var s=function e(t){return!r.isValidElement(t)||t.type!==r.Fragment&&t.type!==fe?"string"==typeof t?t:Array.isArray(t)&&1===t.length&&"string"==typeof t[0]?t[0]:void 0:e(t.props.children)}(o);return s&&(o=r.createElement("div",{className:"__wab_slot-string-wrapper"},s)),0===Object.keys(i).filter((function(e){return!!i[e]})).length?r.createElement(r.Fragment,null,o):r.createElement(t||"div",q({className:"__wab_slot"},i),o)}var ye=[],ge={};function be(){return T?Object.entries(ge).filter((function(e){return window.matchMedia(e[1]).matches})).map((function(e){return e[0]})):[]}var Pe=void 0;T&&window.addEventListener("resize",(function(){var e=be();Pe&&e.join("")===Pe.join("")||(Pe=e,i.unstable_batchedUpdates((function(){return ye.forEach((function(e){return e()}))})))}));var we=r.createContext(void 0),Se=o.useIsSSR;function Ve(){r.useContext(we)}var Oe={useHover:function(){var e=r.useState(!1),t=e[1];return[e[0],{onMouseEnter:function(){return t(!0)},onMouseLeave:function(){return t(!1)}}]},useFocused:function(e){var t=s.useFocusRing({within:!1,isTextInput:e.isTextInput});return[t.isFocused,t.focusProps]},useFocusVisible:function(e){var t=s.useFocusRing({within:!1,isTextInput:e.isTextInput});return[t.isFocusVisible,t.focusProps]},useFocusedWithin:function(e){var t=s.useFocusRing({within:!0,isTextInput:e.isTextInput});return[t.isFocused,t.focusProps]},useFocusVisibleWithin:function(e){var t=s.useFocusRing({within:!0,isTextInput:e.isTextInput});return[t.isFocusVisible,t.focusProps]},usePressed:function(){var e=r.useState(!1),t=e[1];return[e[0],{onMouseDown:function(){return t(!0)},onMouseUp:function(){return t(!1)}}]}},xe=t,Ee=!0;function Ce(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter((function(e){return!!e.def})),a=k(n,(function(e){return e.def.group}));return A(a,(function(e){return Object.fromEntries(e.map((function(e){return[e.def.variant,!!e.active]})))}))}function Me(e){if(r.isValidElement(e)){var t=e.type;return t.__plumeType||(null==t.getPlumeType?void 0:t.getPlumeType(e.props))}}function Ie(e){return I(e,"className","style")}function Fe(e,t){return{plasmicProps:{variants:I.apply(void 0,[t].concat(e.internalVariantProps)),args:I.apply(void 0,[t].concat(e.internalArgProps)),overrides:{}}}}var je=/^(data-.*)$/;function ke(e,t){var r=t.itemPlumeType,a=t.sectionPlumeType,i=t.invalidChildError,o=t.requireItemValue;return n.useMemo((function(){return function(e,t){if(!e)return{items:[],disabledKeys:[]};var r=t.itemPlumeType,a=t.sectionPlumeType,i=t.invalidChildError,o=0,s=0,u=[];return{items:function e(l){return W(l).flatMap((function(l){if(n.isValidElement(l)){if(l.type===n.Fragment)return e(l.props.children);var c,p=Me(l);if(p===r){var d=Re(l=function(e){if(Ne(e,"value"))return o++,e;if(t.requireItemValue&&Ee)throw new Error('Must specify a "value" prop for '+function(e){if("string"==typeof e.type)return e.type;var t,r,n,a,i=e.type;return null!=(t=null!=(r=null!=(n=i.displayName)?n:i.name)?r:null==(a=i.render)?void 0:a.name)?t:"Component"}(e));return We(e,{value:""+o++})}(l));return De(l,"isDisabled")&&d&&u.push(d),[l]}if(p===a)return[We(l,{key:null!=(c=l.key)?c:"section-"+s++,children:e(De(l,"children"))})]}if(Ee)throw new Error(null!=i?i:"Unexpected child");return[]}))}(e),disabledKeys:u}}(e,{itemPlumeType:r,sectionPlumeType:a,invalidChildError:i,requireItemValue:o})}),[e,r,a,i,o])}function Ae(e){return We(e.rendered,{_node:e,key:e.key})}function Te(e,t){if(Me(e)===t.itemPlumeType){var r,a=e,i=De(a,"children");return n.createElement(f.Item,{key:Re(a),textValue:null!=(r=De(a,"textValue"))?r:(o=i,"string"==typeof o?i:Ne(a,"value")?De(a,"value"):a.key),"aria-label":De(a,"aria-label")},a)}var o,s=e;return n.createElement(f.Section,{title:s,"aria-label":De(s,"aria-label"),items:De(s,"children")},(function(e){return Te(e,t)}))}function Re(e){var t;return null!=(t=De(e,"value"))?t:e.key}function De(e,t){return"componentProps"in e.props?e.props.componentProps[t]:e.props[t]}function Ne(e,t){return"componentProps"in e.props?t in e.props.componentProps:t in e.props}function We(e,t){return n.cloneElement(e,e.type.getPlumeType?O({componentProps:O({},e.props.componentProps,t)},t.key?{key:t.key}:{}):t)}var qe=r.createContext(void 0),Ke=r.createContext(void 0),_e={itemPlumeType:"menu-item",sectionPlumeType:"menu-group"};function He(e,t){var n=e.triggerRef,a=e.isDisabled,i=e.placement,o=e.menuMatchTriggerWidth,s=e.menuWidth,u=e.menu,l=p.useMenuTrigger({type:"menu",isDisabled:a},t,n),c=l.menuProps;return{triggerProps:m.usePress(O({},l.menuTriggerProps,{isDisabled:a})).pressProps,makeMenu:function(){var e="function"==typeof u?u():u;if(!e)return null;if("menu"!==Me(e)){if(Ee)throw new Error("Must use an instance of the Menu component.");return null}return r.cloneElement(e,q(e.props,c))},triggerContext:r.useMemo((function(){var e;return{triggerRef:n,state:t,autoFocus:null==(e=t.focusStrategy)||e,placement:i,overlayMatchTriggerWidth:o,overlayMinTriggerWidth:!0,overlayWidth:s}}),[n,t,i,o,s])}}var Le=r.createContext(void 0),Ue={itemPlumeType:"select-option",sectionPlumeType:"select-option-group"};function ze(e){var t=e.state,n=e.menuProps,a=e.children,i=r.useRef(null),o=g.useListBox(O({},n,{isVirtualized:!1,autoFocus:t.focusStrategy||!0,disallowEmptySelection:!0}),t,i);return r.cloneElement(a,q(a.props,o.listBoxProps,{style:{outline:"none"},ref:i}))}var Ge=Symbol("plasmic.unitialized");function Be(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Je=function(e){return"symbol"!=typeof e&&!isNaN(+e)};function Ye(e,t){var r=null!=t?t:function(){return{get:function(e,t){return e[t]},set:function(e,t,r){return(e[t]=r)||!0}}},n=function(t){return Object.fromEntries(Object.values(e).filter((function(e){return Be(t.map((function(e){return Je(e)?"[]":e})),e.path.slice(0,t.length))})).map((function(e){var r=e.path[t.length];return e.path.length===t.length+1?[r,{isLast:!0,specKey:e.pathStr}]:[r,{isLast:!1,specKey:e.pathStr}]})))};return function e(t){var a=n(t);return new Proxy("[]"in a?[]:{},{deleteProperty:function(e,n){if(!("[]"in a)||!Je(n))throw new Error("You can't delete a non-repeated property in the middle of the path");var i,o;return delete e[n],null==r||null==(i=(o=r({path:[].concat(t,[+n]),specKey:a["[]"].specKey})).deleteProperty)||i.call(o,e,n),!0},get:function(n,i,o){if("[]"in a&&Je(i))i in n||(n[i]=e([].concat(t,[+i])));else if(i in a){var s,u;if(a[i].isLast)return n[i]=null==r||null==(s=(u=r({path:[].concat(t,[i]),specKey:a[i].specKey})).get)?void 0:s.call(u,n,i,o);i in n||(n[i]=e([].concat(t,[i])))}return n[i]},set:function(i,o,s,u){if("[]"in a&&Je(o))o in i||(i[o]=e([].concat(t,[+o])));else if(o in a){var l,c,p;if(a[o].isLast)return i[o]=s,null!=(l=null==(c=(p=r({path:[].concat(t,[o]),specKey:a[o].specKey})).set)?void 0:c.call(p,i,o,s,u))&&l}return"registerInitFunc"===o?i[o]=s:"object"==typeof s&&function e(t,a,i){if("object"==typeof i)for(var o=n(a),s=0,u=Object.entries(o);s<u.length;s++){var l=u[s],c=l[0],p=l[1],d=p.isLast,f=p.specKey;if("[]"===c&&Array.isArray(i))for(var v=0;v<i.length;v++)e(t[v],[].concat(a,[v]),i[v]);else if(c in i){var h,m;d?null==r||null==(h=(m=r({specKey:f,path:[].concat(a,[c])})).set)||h.call(m,t,c,i[c],void 0):e(t[c],[].concat(a,[c]),i[c])}}}(i[o],[].concat(t,[Je(o)?+o:o]),s),!0}})}([])}function $e(e,t,r){var n=Ye(e);return Object.values(t).forEach((function(e){var t=e.path;V.dset(n,t,S(r,t))})),n}function Qe(e,t){t[JSON.stringify(e.path)]=e}function Xe(e,t,r,n){for(var a=[new Set],i={},o=Object.assign(Ye(e,(function(n){return{get:function(s,u){var l=e[n.specKey];if(l.valueProp)return l.isRepeated?S(t[l.valueProp],n.path.slice(1)):t[l.valueProp];var c=S(r,n.path);return c===Ge&&(c=function(r){a.push(new Set);var n=e[r.specKey].initFunc(t,o),s=a.pop();return i[JSON.stringify(r.path)]=[].concat(s.values()),n}(n),V.dset(r,n.path,c)),a[a.length-1].add(JSON.stringify(n.path)),c},set:function(){throw new Error("Cannot update state values during initialization")}}})),{registerInitFunc:function(){}}),s=0,u=Object.values(n);s<u.length;s++){var l=u[s].path;S(r,l)===Ge&&S(o,l)}return i}exports.DropdownMenu=function(e){var t=e.isOpen,n=e.defaultOpen,a=e.onOpenChange,i=e.children,o=e.placement,s=e.menu,u=r.useRef(null),l=h.useMenuTriggerState({isOpen:t,defaultOpen:n,onOpenChange:a,shouldFlip:!0}),c=He({triggerRef:u,placement:o,menu:s},l),p=c.makeMenu;return r.createElement(qe.Provider,{value:c.triggerContext},r.cloneElement(i,q(i.props,c.triggerProps,{ref:u})),l.isOpen&&p())},exports.PlasmicIcon=function(e){var t=e.PlasmicIconType,n=x(e,["PlasmicIconType"]);return r.createElement(t,Object.assign({},n))},exports.PlasmicImg=ae,exports.PlasmicLink=ce,exports.PlasmicRootProvider=function(e){var t=e.platform,n=e.children,a=r.useMemo((function(){return{platform:t}}),[t]);return r.createElement(we.Provider,{value:a},r.createElement(o.SSRProvider,null,r.createElement(pe.Provider,{value:e.translator},n)))},exports.PlasmicSlot=function(e){return me(e)},exports.Stack=G,exports.Trans=fe,exports.classNames=xe,exports.createPlasmicElementProxy=function(e,t){null==t&&(t={});var r=t["data-plasmic-name"],n=t["data-plasmic-root"],a=t["data-plasmic-for-node"];delete t["data-plasmic-name"],delete t["data-plasmic-root"],delete t["data-plasmic-for-node"];for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];var u=$.apply(void 0,[e,t].concat(o));if(r&&Y.set(r,u),n){var l,c=a?null!=(l=Y.get(a))?l:null:u;return Y.clear(),c}return u},exports.createUseScreenVariants=function(e,t){return Object.assign(ge,t),Pe=void 0,function(){var t=r.useState()[1],n=r.useRef(Pe||[]);return D((function(){var e=function(){Pe&&n.current.join("")!==Pe.join("")&&(n.current=Pe,t({}))};return ye.push(e),void 0===Pe&&(Pe=be()),e(),function(){ye.splice(ye.indexOf(e),1)}}),[]),e?Pe||[]:Pe?Pe[Pe.length-1]:void 0}},exports.deriveRenderOpts=function(e,t){var r,n,a,i,o,s=t.name,u=t.descendantNames,l=t.internalVariantPropNames,c=t.internalArgPropNames,p=["variants","args","overrides"],d=(r=F.apply(void 0,[I.apply(void 0,[e].concat(l))].concat(p)),n=e.variants,r&&n?O({},r,n):r||n||{}),f=(a=F.apply(void 0,[I.apply(void 0,[e].concat(c))].concat(p)),i=e.args,a&&i?O({},a,i):a||i||{}),v=ee(F.apply(void 0,[I.apply(void 0,[e].concat(u))].concat(c,l,p)),e.overrides),h=F.apply(void 0,[e,"variants","args","overrides"].concat(u,l,c));return Object.keys(h).length>0&&(v=ee(v,((o={})[s]={props:h},o))),{variants:d,args:f,overrides:v}},exports.ensureGlobalVariants=function(e){return Object.entries(e).filter((function(e){return"PLEASE_RENDER_INSIDE_PROVIDER"===e[1]})).forEach((function(t){e[t[0]]=void 0})),e},exports.genTranslatableString=de,exports.generateStateOnChangeProp=function(e,t,r){return function(n,a){return V.dset(e,[t].concat(r,a),n)}},exports.generateStateValueProp=function(e,t){return S(e,t)},exports.getDataProps=function(e){return function(e,t){for(var r={},n=0,a=Object.entries(e);n<a.length;n++){var i=a[n][0];je.test(i)&&(r[i]=e[i])}return r}(e)},exports.hasVariant=function(e,t,r){if(null==e)return!1;var n=e[t];return null!=n&&(!0===n?r===t:!1!==n&&(Array.isArray(n)?n.includes(r):"string"==typeof n?n===r:void 0!==n[r]&&!1!==n[r]))},exports.makeFragment=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.createElement.apply(r,[r.Fragment,{}].concat(t))},exports.omit=F,exports.pick=I,exports.renderPlasmicSlot=me,exports.setPlumeStrictMode=function(e){Ee=e},exports.useButton=function(e,t,r,n){var a,i,o,s;void 0===n&&(n=null);var u=t.link,l=t.isDisabled,c=t.startIcon,p=t.endIcon,d=t.showStartIcon,f=t.showEndIcon,v=t.children,h=x(t,["link","isDisabled","startIcon","endIcon","showStartIcon","showEndIcon","children"]);return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:r.showStartIconVariant,active:d},{def:r.showEndIconVariant,active:f},{def:r.isDisabledVariant,active:l})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),r.startIconSlot&&((a={})[r.startIconSlot]=c,a),r.endIconSlot&&((i={})[r.endIconSlot]=p,i),((o={})[r.contentSlot]=v,o)),overrides:((s={})[r.root]={as:u?"a":"button",props:O({},F.apply(void 0,[h].concat(e.internalArgProps,e.internalVariantProps)),{ref:n,disabled:l},!!u&&{href:u})},s)}}},exports.useCheckbox=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=t.children,p=t.isDisabled,d=t.isIndeterminate;Ve();var f=r.useRef(null),v=r.useRef(null),h=function(e){var t=O({},e,{isSelected:e.isChecked,defaultSelected:e.defaultChecked});return delete t.isChecked,delete t.defaultChecked,t}(t),m=c.useToggleState(h),y=u.useCheckbox(h,m,f).inputProps,g=O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isDisabledVariant,active:p},{def:n.isCheckedVariant,active:m.isSelected},{def:n.isIndeterminateVariant,active:d},{def:n.noLabelVariant,active:!s})),b=((i={})[n.root]={as:"label",props:q(Ie(t),{ref:v}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(l.VisuallyHidden,{isFocusable:!0},r.createElement("input",Object.assign({},y,{ref:f}))),e)}},i),P=O({},I.apply(void 0,[t].concat(e.internalArgProps)),n.labelSlot?((o={})[n.labelSlot]=s,o):{}),w=r.useMemo((function(){return{setChecked:function(e){return m.setSelected(e)}}}),[m]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return v.current},focus:function(){var e;return null==(e=f.current)?void 0:e.focus()},blur:function(){var e;return null==(e=f.current)?void 0:e.blur()},setChecked:function(e){return w.setChecked(e)}}}),[v,f,w]),{plasmicProps:{variants:g,overrides:b,args:P},state:w}},exports.useDollarState=function(e,t){for(var r=n.useState(0)[1],a=n.useMemo((function(){var t=Object.fromEntries(e.map((function(e){var t,r=e.path;return[r,O({},x(e,["path"]),{pathStr:r,path:(t=r,t.split(".").flatMap((function e(t){return t.endsWith("[]")?[].concat(e(t.slice(0,-2)),["[]"]):[t]}))),isRepeated:r.split(".").some((function(e){return e.endsWith("[]")}))})]})));return{stateValues:Ye(t),initStateDeps:{},initStateValues:Ye(t),states:{},specs:t}}),[]),i=Object.assign(Ye(a.specs,(function(e){return{deleteProperty:function(t,n){for(var i=e.path,o=0,s=Object.entries(a.states);o<s.length;o++){var u=s[o],l=u[0],c=u[1];c.path.length>=i.length&&Be(c.path.slice(0,i.length),i)&&delete a.states[l]}return r((function(e){return e+1})),!0},get:function(n,o){var s=a.specs[e.specKey];if(s.valueProp)return s.isRepeated?S(t[s.valueProp],e.path.slice(1)):t[s.valueProp];if(!function(e,t){return JSON.stringify(e.path)in t}(e,a.states)){var u;Qe(e,a.states),V.dset(a.stateValues,e.path,s.initFunc?Ge:null!=(u=s.initVal)?u:void 0);var l=s.initFunc?Xe(a.specs,t,a.stateValues,a.states):{};return V.dset(a.initStateValues,e.path,S(a.stateValues,e.path)),a.initStateDeps=O({},a.initStateDeps,l),r((function(e){return e+1})),s.initFunc?s.initFunc(t,i):s.initVal}return S(a.stateValues,e.path)},set:function(n,i,o){if(o!==S(a.stateValues,e.path)){Qe(e,a.states),V.dset(a.stateValues,e.path,o);for(var s=0,u=Object.entries(a.initStateDeps);s<u.length;s++){var l=u[s],c=l[0];l[1].includes(JSON.stringify(e.path))&&V.dset(a.stateValues,JSON.parse(c),Ge)}var p=Xe(a.specs,t,a.stateValues,a.states);a.initStateDeps=O({},a.initStateDeps,p),r((function(e){return e+1}))}var d,f=a.specs[e.specKey];return f.onChangeProp&&(null==(d=t[f.onChangeProp])||d.call(t,o,e.path)),!0}}})),{registerInitFunc:function(e,n){Object.values(a.states).filter((function(t){return t.specKey===e})).some((function(e){return S(a.stateValues,e.path)!==n(t,i)}))&&(a.specs[e]=O({},a.specs[e],{initFunc:n}),r((function(e){return e+1})))}}),o=void 0,s=[],u=0,l=Object.values(a.states);u<l.length;u++){var c=l[u],p=c.path,d=c.specKey,f=a.specs[d];if(f.initFunc){var v=f.initFunc(t,i);v!==S(a.initStateValues,p)&&(console.log("init changed for "+JSON.stringify(p)+" from "+S(a.initStateValues,p)+" to "+v+"; resetting state"),s.push({path:p,specKey:d}),o||(o=$e(a.specs,a.states,a.stateValues)),V.dset(o,p,Ge))}}n.useLayoutEffect((function(){if(void 0!==o){var e=Xe(a.specs,t,o,a.states),n=$e(a.specs,a.states,a.initStateValues);s.forEach((function(e){var t=e.path;V.dset(n,t,S(o,t))})),a.stateValues=$e(a.specs,a.states,o),a.initStateValues=n,a.initStateDeps=O({},a.initStateDeps,e),r((function(e){return e+1}));for(var i,u=C(s);!(i=u()).done;){var l,c=i.value,p=c.path,d=a.specs[c.specKey];d.onChangeProp&&(console.log("Firing onChange for reset init value: "+d.path,S(o,p)),null==(l=t[d.onChangeProp])||l.call(t,S(o,p)))}}}),[o,t,s,a.specs]);for(var h=0,m=Object.values(a.states);h<m.length;h++)S(i,m[h].path);return i},exports.useIsSSR=Se,exports.useMenu=function(e,t,n,a){var i,o;void 0===a&&(a=null),Ve();var s=function(e){var t=e.children,n=x(e,["children"]),a=ke(t,O({},_e,{invalidChildError:"Can only use Menu.Item and Menu.Group as children to Menu",requireItemValue:!1})),i=a.items,o=a.disabledKeys;return{ariaProps:O({},n,{children:r.useCallback((function(e){return Te(e,_e)}),[]),items:i,disabledKeys:o})}}(t).ariaProps,u=r.useContext(qe),l=r.useRef(null),c=d.useTreeState(s),f=r.useRef(null),v=p.useMenu(O({},s,{autoFocus:null==u?void 0:u.autoFocus}),c,f).menuProps,h=r.useMemo((function(){return{state:c,menuProps:t}}),[c,t]),m=O({},I.apply(void 0,[t].concat(e.internalVariantProps))),y=((i={})[n.root]={props:q(Ie(t),{ref:l})},i[n.itemsContainer]={as:"ul",props:q(v,{ref:f,style:O({},{outline:"none"})})},i),g=O({},I.apply(void 0,[t].concat(e.internalArgProps)),((o={})[n.itemsSlot]=r.createElement(Ke.Provider,{value:h},Array.from(c.collection).map((function(e){return Ae(e)}))),o)),b=r.useMemo((function(){return{getFocusedValue:function(){return c.selectionManager.focusedKey},setFocusedValue:function(e){return c.selectionManager.setFocusedKey(e)}}}),[c]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return l.current},getFocusedValue:function(){return b.getFocusedValue()},setFocusedValue:function(e){return b.setFocusedValue(e)}}}),[l,b]),{plasmicProps:{variants:m,args:g,overrides:y},state:b}},exports.useMenuButton=function(e,t,n,a){var i,o;void 0===a&&(a=null);var u=t.placement,l=t.isOpen,c=t.defaultOpen,p=t.onOpenChange,d=t.isDisabled,f=t.menu,v=t.autoFocus,m=t.menuMatchTriggerWidth,y=t.menuWidth;Ve();var g=r.useRef(null),b=r.useRef(null),P=h.useMenuTriggerState({isOpen:l,defaultOpen:c,onOpenChange:p,shouldFlip:!0}),w=He({isDisabled:d,triggerRef:b,placement:u,menuMatchTriggerWidth:m,menuWidth:y,menu:f},P),S=w.triggerProps,V=w.makeMenu,x=w.triggerContext,E=s.useFocusable(t,b).focusableProps,C=O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isOpenVariant,active:P.isOpen},{def:n.isDisabledVariant,active:d})),M=O({},I.apply(void 0,[t].concat(e.internalArgProps)),((i={})[n.menuSlot]=P.isOpen?V():void 0,i)),F=((o={})[n.root]={wrapChildren:function(e){return r.createElement(qe.Provider,{value:x},e)},props:{ref:g}},o[n.trigger]={props:q(S,E,Ie(t),I(t,"title"),{ref:b,autoFocus:v,disabled:!!d,type:"button"})},o),j=r.useMemo((function(){return{open:function(){return P.open()},close:function(){return P.close()},isOpen:function(){return P.isOpen}}}),[P]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return g.current},getTrigger:function(){return b.current},focus:function(){return b.current&&b.current.focus()},blur:function(){return b.current&&b.current.blur()},open:j.open,close:j.close,isOpen:j.isOpen}}),[g,b,j]),{plasmicProps:{variants:C,args:M,overrides:F},state:j}},exports.useMenuGroup=function(e,t,n){var a,i,o=r.useContext(Ke),s=t._node;if(!o||!s){if(Ee)throw new Error("You can only use a Menu.Group within a Menu component.");return Fe(e,t)}var u=p.useMenuSection({heading:t.title,"aria-label":t["aria-label"]}),l=u.headingProps,c=u.groupProps,d=v.useSeparator({elementType:"li"}).separatorProps;return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.noTitleVariant,active:!t.title},{def:n.isFirstVariant,active:o.state.collection.getFirstKey()===s.key})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.titleSlot]=t.title,a[n.itemsSlot]=Array.from(s.childNodes).map((function(e){return Ae(e)})),a)),overrides:((i={})[n.root]={props:Ie(t)},i[n.separator]={props:O({},d),as:"li"},i[n.titleContainer]=O({props:O({role:"presentation"},l)},!t.title&&{render:function(){return null}}),i[n.itemsContainer]={props:O({},c),as:"ul"},i)}}},exports.useMenuItem=function(e,t,n){var a,i,o=r.useContext(Ke),s=r.useContext(qe);if(!o){if(Ee)throw new Error("You can only use a Menu.Item within a Menu component.");return Fe(e,t)}var u=t.children,l=t.onAction,c=o.state,d=o.menuProps,f=t._node,v=c.disabledKeys.has(f.key),h=c.selectionManager.isFocused&&c.selectionManager.focusedKey===f.key,m=r.useRef(null),y=p.useMenuItem(q({onAction:l},{onAction:d.onAction,onClose:null==s?void 0:s.state.close},{isDisabled:v,"aria-label":f&&f["aria-label"],key:f.key,isVirtualized:!1,closeOnSelect:!0}),c,m),g=y.menuItemProps,b=y.labelProps;return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isDisabledVariant,active:v},{def:n.isHighlightedVariant,active:h})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.labelSlot]=u,a)),overrides:((i={})[n.root]={as:"li",props:q(g,{ref:m,style:{outline:"none"}})},i[n.labelContainer]={props:O({},b)},i)}}},exports.useSelect=function(e,t,n,a){var i,o;void 0===a&&(a=null),Ve();var s=function(e){var t=e.value,n=e.defaultValue,a=e.children,i=e.onChange,o=x(e,["value","defaultValue","children","onChange","placement","menuMatchTriggerWidth","menuWidth"]),s=ke(a,O({},Ue,{invalidChildError:"Can only use Select.Option and Select.OptionGroup as children to Select",requireItemValue:!0})),u=s.items,l=s.disabledKeys;return{ariaProps:O({},o,{children:r.useCallback((function(e){return Te(e,Ue)}),[]),onSelectionChange:r.useMemo((function(){return i?function(e){return i(null==e||"null"===e?null:e)}:void 0}),[i]),items:u,disabledKeys:l,defaultSelectedKey:n},"value"in e&&{selectedKey:null!=t?t:null})}}(t).ariaProps,u=t.placement,l=b.useSelectState(s),c=r.useRef(null),p=r.useRef(null),d=t.isDisabled,f=t.name,v=t.menuWidth,h=t.menuMatchTriggerWidth,g=t.autoFocus,P=t.placeholder,w=t.selectedContent,S=y.useSelect(s,l,c),V=S.menuProps,E=m.usePress(O({},S.triggerProps,{isDisabled:d})).pressProps,C=l.selectedItem?null!=w?w:De(l.selectedItem.value,"children"):null,M=O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isOpenVariant,active:l.isOpen},{def:n.placeholderVariant,active:!l.selectedItem},{def:n.isDisabledVariant,active:d})),F=r.useMemo((function(){return{triggerRef:c,state:l,placement:u,overlayMatchTriggerWidth:h,overlayMinTriggerWidth:!0,overlayWidth:v}}),[c,l,u,h,v]),j=((i={})[n.root]={props:q(Ie(t),{ref:p}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(y.HiddenSelect,{state:l,triggerRef:c,name:f,isDisabled:d}),e)}},i[n.trigger]={props:q(E,{ref:c,autoFocus:g,disabled:!!d,type:"button"})},i[n.overlay]={wrap:function(e){return r.createElement(qe.Provider,{value:F},e)}},i[n.optionsContainer]={wrap:function(e){return r.createElement(ze,{state:l,menuProps:V},e)}},i),k=O({},I.apply(void 0,[t].concat(e.internalArgProps)),((o={})[n.triggerContentSlot]=C,o[n.placeholderSlot]=P,o[n.optionsSlot]=r.createElement(Le.Provider,{value:l},Array.from(l.collection).map((function(e){return Ae(e)}))),o)),A=r.useMemo((function(){return{open:function(){return l.open()},close:function(){return l.close()},isOpen:function(){return l.isOpen},getSelectedValue:function(){return l.selectedKey?""+l.selectedKey:null},setSelectedValue:function(e){return l.setSelectedKey(e)}}}),[l]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return p.current},getTrigger:function(){return c.current},focus:function(){var e;return null==(e=c.current)?void 0:e.focus()},blur:function(){var e;return null==(e=c.current)?void 0:e.blur()},open:function(){return A.open()},close:function(){return A.close()},isOpen:function(){return A.isOpen()},getSelectedValue:function(){return A.getSelectedValue()},setSelectedValue:function(e){return A.setSelectedValue(e)}}}),[p,c,A]),{plasmicProps:{variants:M,args:k,overrides:j},state:A}},exports.useSelectOption=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=r.useContext(Le);if(!s){if(Ee)throw new Error("You can only use a Select.Option within a Select component.");return Fe(e,t)}var u=t.children,l=r.useRef(null),c=_(l,a),p=t._node,d=s.selectionManager.isSelected(p.key),f=s.disabledKeys.has(p.key),v=s.selectionManager.isFocused&&s.selectionManager.focusedKey===p.key,h=g.useOption({isSelected:d,isDisabled:f,"aria-label":p&&p["aria-label"],key:p.key,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,isVirtualized:!1},s,l),m=h.optionProps,y=h.labelProps;return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isSelectedVariant,active:d},{def:n.isDisabledVariant,active:f},{def:n.isHighlightedVariant,active:v})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),((i={})[n.labelSlot]=u,i)),overrides:((o={})[n.root]={props:q(m,Ie(t),{ref:c,style:{outline:"none"}})},o[n.labelContainer]={props:y},o)}}},exports.useSelectOptionGroup=function(e,t,n){var a,i,o=r.useContext(Le),s=t._node;if(!o||!s){if(Ee)throw new Error("You can only use a Select.OptionGroup within a Select component.");return Fe(e,t)}var u=g.useListBoxSection({heading:t.title,"aria-label":t["aria-label"]}),l=u.headingProps,c=u.groupProps,p=v.useSeparator({elementType:"li"}).separatorProps;return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.noTitleVariant,active:!t.title},{def:n.isFirstVariant,active:o.collection.getFirstKey()===s.key})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.titleSlot]=t.title,a[n.optionsSlot]=Array.from(s.childNodes).map((function(e){return Ae(e)})),a)),overrides:((i={})[n.root]={props:Ie(t)},i[n.separator]={props:O({},p)},i[n.titleContainer]=O({props:O({role:"presentation"},l)},!t.title&&{render:function(){return null}}),i[n.optionsContainer]={props:O({},c)},i)}}},exports.useSwitch=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=t.children,u=t.isDisabled;Ve();var p=r.useRef(null),d=r.useRef(null),f=function(e){var t=O({},e,{isSelected:e.isChecked,defaultSelected:e.defaultChecked});return delete t.isChecked,delete t.defaultChecked,t}(t),v=c.useToggleState(f),h=P.useSwitch(f,v,p).inputProps,m=O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isDisabledVariant,active:u},{def:n.isCheckedVariant,active:v.isSelected},{def:n.noLabelVariant,active:!s})),y=((i={})[n.root]={as:"label",props:q(Ie(t),{ref:d}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(l.VisuallyHidden,{isFocusable:!0},r.createElement("input",Object.assign({},h,{ref:p}))),e)}},i),g=O({},I.apply(void 0,[t].concat(e.internalArgProps)),n.labelSlot?((o={})[n.labelSlot]=s,o):{}),b=r.useMemo((function(){return{setChecked:function(e){return v.setSelected(e)}}}),[v]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return d.current},focus:function(){var e;return null==(e=p.current)?void 0:e.focus()},blur:function(){var e;return null==(e=p.current)?void 0:e.blur()},setChecked:function(e){return b.setChecked(e)}}}),[d,p,b]),{plasmicProps:{variants:m,overrides:y,args:g},state:b}},exports.useTextInput=function(e,t,n,a){var i,o,s;void 0===a&&(a=null);var u=t.isDisabled,l=t.startIcon,c=t.endIcon,p=t.showStartIcon,d=t.showEndIcon,f=t.className,v=t.style,h=t.inputClassName,m=t.inputStyle,y=x(t,["isDisabled","startIcon","endIcon","showStartIcon","showEndIcon","className","style","inputClassName","inputStyle"]),g=r.useRef(null),b=r.useRef(null);return r.useImperativeHandle(a,(function(){return{focus:function(){var e;null==(e=b.current)||e.focus()},blur:function(){var e;null==(e=b.current)||e.blur()},getRoot:function(){return g.current},getInput:function(){return b.current}}}),[g,b]),{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.showStartIconVariant,active:p},{def:n.showEndIconVariant,active:d},{def:n.isDisabledVariant,active:u})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),n.startIconSlot&&((i={})[n.startIconSlot]=l,i),n.endIconSlot&&((o={})[n.endIconSlot]=c,o)),overrides:((s={})[n.root]={props:{ref:g,className:f,style:v}},s[n.input]={props:O({},F.apply(void 0,[y].concat(e.internalArgProps.filter((function(e){return"required"!==e})),e.internalVariantProps)),{disabled:u,ref:b,className:h,style:m})},s)}}},exports.useTrigger=function(e,t){return Oe[e](t)},exports.useTriggeredOverlay=function(e,t,n,i){var o,u;void 0===i&&(i=null);var l=r.useRef(null),c=_(l,i),p=r.useContext(qe);if(!p){if(Ee)throw new Error("You can only use a triggered overlay with a TriggeredOverlayContext");return Fe(e,t)}var d=t.children,f=p.triggerRef,v=p.placement,h=p.overlayMatchTriggerWidth,m=p.overlayMinTriggerWidth,y=p.overlayWidth,g=p.state,b=r.useState(!1),P=b[0],S=b[1],V=f.current&&(h||m)?f.current.offsetWidth:void 0;D((function(){!P&&f.current&&(h||m)&&S(!0)}),[f,P,h,m]);var x=w.useOverlay({isOpen:g.isOpen,onClose:g.close,isDismissable:!0,shouldCloseOnBlur:!0},l).overlayProps,E=w.useOverlayPosition({targetRef:f,overlayRef:l,placement:null!=v?v:"bottom left",shouldFlip:!0,isOpen:g.isOpen,onClose:g.close,containerPadding:0}),C=E.overlayProps,M=E.updatePosition,F=E.placement;D((function(){g.isOpen&&requestAnimationFrame((function(){M()}))}),[g.isOpen,M]);var j=q({style:{left:"auto",right:"auto",top:"auto",bottom:"auto",position:"absolute",width:null!=y?y:h?V:"auto",minWidth:m?V:"auto"}},x,C);return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isPlacedTopVariant,active:"top"===F},{def:n.isPlacedBottomVariant,active:"bottom"===F},{def:n.isPlacedLeftVariant,active:"left"===F},{def:n.isPlacedRightVariant,active:"right"===F})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),((o={})[n.contentSlot]=r.createElement(s.FocusScope,{restoreFocus:!0},r.createElement(w.DismissButton,{onDismiss:g.close}),d),o)),overrides:((u={})[n.root]={props:q(j,Ie(t),{ref:c}),wrap:function(e){return"undefined"!=typeof document?a.createPortal(e,document.body):e}},u)}}},exports.wrapWithClassName=function(e,t){var n=r.isValidElement(e)&&e.key||void 0;return r.createElement("div",{key:n,className:t,style:{display:"grid"}},e)}; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("classnames")),r=require("react"),n=e(r),a=require("react-dom"),i=e(a),o=require("@react-aria/ssr"),s=require("@react-aria/focus"),u=require("@react-aria/checkbox"),l=require("@react-aria/visually-hidden"),c=require("@react-stately/toggle"),p=require("@react-aria/menu"),d=require("@react-stately/tree"),f=require("@react-stately/collections"),v=require("@react-aria/separator"),h=require("@react-stately/menu"),m=require("@react-aria/interactions"),y=require("@react-aria/select"),g=require("@react-aria/listbox"),b=require("@react-stately/select"),P=require("@react-aria/switch"),w=require("@react-aria/overlays"),S=e(require("dlv")),V=require("dset");function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function x(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return E(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function M(e){return null!=e}function I(e){if(0===Object.keys(e).length)return e;for(var t={},r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(var i=0,o=n;i<o.length;i++){var s=o[i];s in e&&(t[s]=e[s])}return t}function F(e){if(0===Object.keys(e).length)return e;for(var t={},r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(var i=0,o=Object.keys(e);i<o.length;i++){var s=o[i];n.includes(s)||(t[s]=e[s])}return t}function j(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0!==t.length)return function(e){for(var r,n=e,a=C(t);!(r=a()).done;)n=(0,r.value)(n);return n}}function k(e,t){for(var r,n={},a=C(e);!(r=a()).done;){var i=r.value,o=t(i);o in n?n[o].push(i):n[o]=[i]}return n}function A(e,t){var r={};for(var n in e)r[n]=t(e[n]);return r}var T="undefined"!=typeof window,R=Symbol("NONE"),D=T?n.useLayoutEffect:n.useEffect;function N(e,t,r){return Array.isArray(r)?n.createElement.apply(n,[e,t].concat(r)):r||"children"in t?n.createElement(e,t,r):n.createElement(e,t)}function W(e){return n.isValidElement(t=e)||function(e){return"string"==typeof e||"number"==typeof e}(t)?[e]:Array.isArray(e)?e.flatMap(W):[];var t}function q(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(r.every((function(e){return 0===Object.keys(e).length})))return e;for(var a=O({},e),i=0,o=r;i<o.length;i++)for(var s=o[i],u=0,l=Object.keys(s);u<l.length;u++){var c=l[u];a[c]=H(c,a[c],s[c])}return a}function K(e,t){e&&("function"==typeof e?e(t):Object.isFrozen(e)||(e.current=t))}function _(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r,n=C(t);!(r=n()).done;)K(r.value,e)}}function H(e,r,n){return r===R||n===R?null:null==r?n:null==n?r:"className"===e?t(r,n):"style"===e?O({},r,n):"ref"===e?_(r,n):typeof r!=typeof n?n:e.startsWith("on")&&"function"==typeof r?function(){var e;return"function"==typeof r&&(e=r.apply(void 0,arguments)),"function"==typeof n&&(e=n.apply(void 0,arguments)),e}:n}function L(e,t,r,n){var a=t.children,i=x(t,["children"]),o=B(a,null!=r&&r);return N(e,O({ref:n},i),o)}function U(e,t){var r=e.as,n=e.hasGap;return L(null!=r?r:"div",x(e,["as","hasGap"]),n,t)}var z=function(e){return r.forwardRef((function(t,r){var n=t.hasGap,a=x(t,["hasGap"]);return L(e,a,n,r)}))},G=Object.assign(r.forwardRef(U),{div:z("div"),a:z("a"),button:z("button"),h1:z("h1"),h2:z("h2"),h3:z("h3"),h4:z("h4"),h5:z("h5"),h6:z("h6"),label:z("label"),form:z("form"),section:z("section"),head:z("head"),main:z("main"),nav:z("nav")});function B(e,t){var n=t?"__wab_flex-container":"__wab_passthrough";return e?Array.isArray(e)?r.createElement.apply(r,["div",{className:n}].concat(e)):r.createElement("div",{className:n},e):null}function J(e,t,r,a){if(!e||0===Object.keys(e).length)return N(t,r,r.children);var i=Z(e),o=X(r,i.props);if("render"===i.type)return i.render(o,t);var s=t;"as"===i.type&&i.as&&(t===G?o.as=i.as:s=i.as);var u=o.children;i.wrapChildren&&(u=i.wrapChildren(function(e){return Array.isArray(e)?1===e.length?e[0]:n.createElement.apply(n,[n.Fragment,{}].concat(e)):e}(u))),a&&(u=B(u,!0));var l=N(s,o,u);return i.wrap&&(l=i.wrap(l)),l}var Y=new Map;function $(e,t){var r,n=t["data-plasmic-override"],a=t["data-plasmic-wrap-flex-child"],i=null!=(r=t["data-plasmic-trigger-props"])?r:[];delete t["data-plasmic-override"],delete t["data-plasmic-wrap-flex-child"],delete t["data-plasmic-trigger-props"];for(var o=arguments.length,s=new Array(o>2?o-2:0),u=2;u<o;u++)s[u-2]=arguments[u];return J(n,e,q.apply(void 0,[t,0===s.length?{}:{children:1===s.length?s[0]:s}].concat(i)),a)}var Q=Symbol("UNSET");function X(e,t){if(!t)return e;for(var r=O({},e),n=0,a=Object.keys(t);n<a.length;n++){var i=a[n],o=e[i],s=t[i];s===Q?delete r[i]:(null!=s||"className"===i||"style"===i||i.startsWith("on")&&"function"==typeof o||(s=R),r[i]=H(i,o,s))}return r}function Z(e){if(!e)return{type:"default",props:{}};if(function(e){return"string"==typeof e||"number"==typeof e||n.isValidElement(e)}(e))return{type:"default",props:{children:e}};if("object"==typeof e)return"as"in e?O({},e,{props:e.props||{},type:"as"}):"render"in e?O({},e,{type:"render"}):"props"in e?O({},e,{props:e.props||{},type:"default"}):(t=Object.keys(e),r=["wrap","wrapChildren"],t.every((function(e){return r.includes(e)}))?O({},e,{props:{},type:"default"}):{type:"default",props:e});if("function"==typeof e)return{type:"render",render:e};var t,r;throw new Error("Unexpected override: "+e)}function ee(e,t){if(!t)return e;for(var r={},n=0,a=Array.from(new Set([].concat(Object.keys(e),Object.keys(t))));n<a.length;n++){var i=a[n];r[i]=te(e[i],t[i])}return r}function te(e,t){var r,n;if(!e)return t;if(!t)return e;var a=Z(e),i=Z(t),o=j.apply(void 0,[a.wrap,i.wrap].filter(M)),s=j.apply(void 0,[a.wrapChildren,i.wrapChildren].filter(M)),u=X(null!=(r=a.props)?r:{},i.props);if("render"===i.type)return{render:i.render,props:u,wrap:o,wrapChildren:s};if("render"===a.type)return{render:a.render,props:u,wrap:o,wrapChildren:s};var l=null!=(n="as"===i.type?i.as:void 0)?n:"as"===a.type?a.as:void 0;return O({props:u,wrap:o,wrapChildren:s},l?{as:l}:{})}var re=[640,750,828,1080,1200,1920,2048,3840],ne=[].concat([16,32,48,64,96,128,256,384],re),ae=n.forwardRef((function(e,r){var a=e.src,i=e.className,o=e.displayWidth,s=e.displayHeight,u=e.displayMinWidth,l=e.displayMinHeight,c=e.displayMaxWidth,p=e.displayMaxHeight,d=e.quality,f=e.loader,v=e.imgRef,h=e.style,m=e.loading,y=x(e,["src","className","displayWidth","displayHeight","displayMinWidth","displayMinHeight","displayMaxWidth","displayMaxHeight","quality","loader","imgRef","style","loading"]),g=Object.assign({},y,{loading:null!=m?m:"lazy"}),b="string"!=typeof a&&a?a:{fullWidth:void 0,fullHeight:void 0,aspectRatio:void 0},P=b.fullWidth,w=b.fullHeight,S=b.aspectRatio,V=a?"string"==typeof a?a:"string"==typeof a.src?a.src:a.src.src:"";if(null==w||null==P)return n.createElement("img",Object.assign({src:V,className:i,style:h},g,{loading:m,ref:_(v,r)}));!oe(V)||null!=s&&"auto"!==s||null!=o&&"auto"!==o||(o="100%");var E=o;P&&w&&(!o||"auto"===o)&&ue(s)&&(oe(V)||(E=ue(s)*P/w));var C=P,M=w;S&&isFinite(S)&&oe(V)&&(C=ie,M=Math.round(C/S));var F=function(e,t,r){var n=null==r?void 0:r.minWidth,a=ue(e),i=ue(n);if(null!=a&&(!n||null!=i))return{widthDescs:[{width:se(Math.max(a,null!=i?i:0),t),desc:"1x"},{width:se(2*Math.max(a,null!=i?i:0),t),desc:"2x"}],sizes:void 0};var o=re.filter((function(e){return!t||e<t}));return t&&0===o.length?{widthDescs:[{width:se(t,t),desc:"1x"}],sizes:void 0}:{widthDescs:o.map((function(e){return{width:se(e,t),desc:e+"w"}})),sizes:"100vw"}}(E,P,{minWidth:u}),j=F.sizes,k=F.widthDescs,A=function(e){return null==e?void 0:"plasmic"===e?le:e}(f),T='<svg width="'+C+'" height="'+M+'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>',R="undefined"==typeof window?Buffer.from(T).toString("base64"):window.btoa(T),D=O({},h||{}),N=O({},I(h||{},"objectFit","objectPosition"));return null!=o&&"auto"!==o?N.width="100%":(N.width=o,D.width="auto",u&&(N.minWidth="100%"),null!=c&&"none"!==c&&(N.maxWidth="100%")),null!=s&&"auto"!==s?N.height="100%":(N.height=s,D.height="auto",l&&(N.minHeight="100%"),null!=p&&"none"!==p&&(N.maxHeight="100%")),n.createElement("div",{className:t(i,"__wab_img-wrapper"),ref:r,style:D},n.createElement("img",{alt:"","aria-hidden":!0,className:"__wab_img-spacer-svg",src:"data:image/svg+xml;base64,"+R,style:N}),function(e){var t=e.imageLoader,r=e.widthDescs,a=e.src,i=e.quality,o=e.style,s=e.className,u=e.sizes,l=e.imgProps,c=e.ref;return n.createElement("picture",{className:"__wab_picture"},t&&t.supportsUrl(a)&&n.createElement("source",{type:"image/webp",srcSet:r.map((function(e){return t.transformUrl({src:a,quality:i,width:e.width,format:"webp"})+" "+e.desc})).join(", ")}),n.createElement("img",Object.assign({},l,{ref:c,className:s,decoding:"async",src:t&&t.supportsUrl(a)?t.transformUrl({src:a,quality:i,width:r[r.length-1].width}):a,srcSet:t&&t.supportsUrl(a)?r.map((function(e){return t.transformUrl({src:a,quality:i,width:e.width})+" "+e.desc})).join(", "):void 0,sizes:t&&t.supportsUrl(a)?u:void 0,style:O({},o?I(o,"objectFit","objectPosition"):{},{width:0,height:0})})))}({imageLoader:A,widthDescs:k,sizes:j,src:V,quality:d,ref:v,style:h?I(h,"objectFit","objectPosition"):void 0,imgProps:g,className:"__wab_img"}))})),ie=1e4;function oe(e){return e.endsWith(".svg")||e.startsWith("data:image/svg")}function se(e,t){var r,n=null!=(r=ne.findIndex((function(t){return t>=e})))?r:ne.length-1,a=ne[n];if(!(a>=t||n+1<ne.length&&t<=ne[n+1]))return a}function ue(e){if(null!=e&&""!=e){if("number"==typeof e)return e;var t=function(e){var t=e.match(/^\s*(-?(?:\d+\.\d*|\d*\.\d+|\d+))\s*([a-z]*|%)\s*(?:\/\*.*)?$/i);if(null!=t)return{num:+t[1],units:t[2]}}(e);return!t||t.units&&"px"!==t.units?void 0:t.num}}var le={supportsUrl:function(e){return e.startsWith("https://img.plasmic.app")&&!oe(e)},transformUrl:function(e){var t,r=[e.width?"w="+e.width:void 0,"q="+(null!=(t=e.quality)?t:75),e.format?"f="+e.format:void 0].filter((function(e){return!!e}));return e.src+"?"+r.join("&")}},ce=n.forwardRef((function(e,t){if("nextjs"===e.platform&&e.href){var r=["href","replace","scroll","shallow","passHref","prefetch","locale"];return n.createElement(e.component,I.apply(void 0,[e].concat(r)),n.createElement("a",Object.assign({},F.apply(void 0,[e,"component","platform"].concat(r)),{ref:t})))}return"gatsby"===e.platform&&/^\/(?!\/)/.test(e.href)?n.createElement(e.component,O({},F(e,"component","platform","href"),{to:e.href,ref:t})):n.createElement("a",Object.assign({},F(e,"component","platform"),{ref:t}))})),pe=n.createContext(void 0);function de(e){var t={},r=0;return{str:function e(a){if(!a)return"";if("number"==typeof a||"boolean"==typeof a||"string"==typeof a)return a.toString();if("object"!=typeof a)return"";if(Array.isArray(a)||null!=(i=a)&&"function"==typeof i[Symbol.iterator])return Array.from(a).map((function(t){return e(t)})).filter((function(e){return!!e})).join("");var i,o=he(a,"props")&&he(a.props,"children")&&a.props.children||he(a,"children")&&a.children||[],s=""+n.Children.toArray(o).map((function(t){return e(t)})).filter((function(e){return!!e})).join("");if(n.isValidElement(a)&&a.type===n.Fragment)return s;var u=r+1;return r++,t[u]=n.isValidElement(a)?n.cloneElement(a,{key:u,children:void 0}):a,"<"+u+">"+s+"</"+u+">"}(e),components:t,componentsCount:r}}function fe(e){var t=e.children,r=n.useContext(pe);if(!r)return ve||(console.warn("Using Plasmic Translation but no translation function has been provided"),ve=!0),t;var a=de(t);return r(a.str,a.componentsCount>0?{components:a.components}:void 0)}var ve=!1;function he(e,t){return"object"==typeof e&&null!==e&&t in e}function me(e){var t=e.as,n=e.defaultContents,a=e.value,i=x(e,["as","defaultContents","value"]),o=void 0===a?n:a;if(!o||Array.isArray(o)&&0===o.length)return null;var s=function e(t){return!r.isValidElement(t)||t.type!==r.Fragment&&t.type!==fe?"string"==typeof t?t:Array.isArray(t)&&1===t.length&&"string"==typeof t[0]?t[0]:void 0:e(t.props.children)}(o);return s&&(o=r.createElement("div",{className:"__wab_slot-string-wrapper"},s)),0===Object.keys(i).filter((function(e){return!!i[e]})).length?r.createElement(r.Fragment,null,o):r.createElement(t||"div",q({className:"__wab_slot"},i),o)}var ye=[],ge={};function be(){return T?Object.entries(ge).filter((function(e){return window.matchMedia(e[1]).matches})).map((function(e){return e[0]})):[]}var Pe=void 0;T&&window.addEventListener("resize",(function(){var e=be();Pe&&e.join("")===Pe.join("")||(Pe=e,i.unstable_batchedUpdates((function(){return ye.forEach((function(e){return e()}))})))}));var we=r.createContext(void 0),Se=o.useIsSSR;function Ve(){r.useContext(we)}var Oe={useHover:function(){var e=r.useState(!1),t=e[1];return[e[0],{onMouseEnter:function(){return t(!0)},onMouseLeave:function(){return t(!1)}}]},useFocused:function(e){var t=s.useFocusRing({within:!1,isTextInput:e.isTextInput});return[t.isFocused,t.focusProps]},useFocusVisible:function(e){var t=s.useFocusRing({within:!1,isTextInput:e.isTextInput});return[t.isFocusVisible,t.focusProps]},useFocusedWithin:function(e){var t=s.useFocusRing({within:!0,isTextInput:e.isTextInput});return[t.isFocused,t.focusProps]},useFocusVisibleWithin:function(e){var t=s.useFocusRing({within:!0,isTextInput:e.isTextInput});return[t.isFocusVisible,t.focusProps]},usePressed:function(){var e=r.useState(!1),t=e[1];return[e[0],{onMouseDown:function(){return t(!0)},onMouseUp:function(){return t(!1)}}]}},xe=t,Ee=!0;function Ce(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter((function(e){return!!e.def})),a=k(n,(function(e){return e.def.group}));return A(a,(function(e){return Object.fromEntries(e.map((function(e){return[e.def.variant,!!e.active]})))}))}function Me(e){if(r.isValidElement(e)){var t=e.type;return t.__plumeType||(null==t.getPlumeType?void 0:t.getPlumeType(e.props))}}function Ie(e){return I(e,"className","style")}function Fe(e,t){return{plasmicProps:{variants:I.apply(void 0,[t].concat(e.internalVariantProps)),args:I.apply(void 0,[t].concat(e.internalArgProps)),overrides:{}}}}var je=/^(data-.*)$/;function ke(e,t){var r=t.itemPlumeType,a=t.sectionPlumeType,i=t.invalidChildError,o=t.requireItemValue;return n.useMemo((function(){return function(e,t){if(!e)return{items:[],disabledKeys:[]};var r=t.itemPlumeType,a=t.sectionPlumeType,i=t.invalidChildError,o=0,s=0,u=[];return{items:function e(l){return W(l).flatMap((function(l){if(n.isValidElement(l)){if(l.type===n.Fragment)return e(l.props.children);var c,p=Me(l);if(p===r){var d=Re(l=function(e){if(Ne(e,"value"))return o++,e;if(t.requireItemValue&&Ee)throw new Error('Must specify a "value" prop for '+function(e){if("string"==typeof e.type)return e.type;var t,r,n,a,i=e.type;return null!=(t=null!=(r=null!=(n=i.displayName)?n:i.name)?r:null==(a=i.render)?void 0:a.name)?t:"Component"}(e));return We(e,{value:""+o++})}(l));return De(l,"isDisabled")&&d&&u.push(d),[l]}if(p===a)return[We(l,{key:null!=(c=l.key)?c:"section-"+s++,children:e(De(l,"children"))})]}if(Ee)throw new Error(null!=i?i:"Unexpected child");return[]}))}(e),disabledKeys:u}}(e,{itemPlumeType:r,sectionPlumeType:a,invalidChildError:i,requireItemValue:o})}),[e,r,a,i,o])}function Ae(e){return We(e.rendered,{_node:e,key:e.key})}function Te(e,t){if(Me(e)===t.itemPlumeType){var r,a=e,i=De(a,"children");return n.createElement(f.Item,{key:Re(a),textValue:null!=(r=De(a,"textValue"))?r:(o=i,"string"==typeof o?i:Ne(a,"value")?De(a,"value"):a.key),"aria-label":De(a,"aria-label")},a)}var o,s=e;return n.createElement(f.Section,{title:s,"aria-label":De(s,"aria-label"),items:De(s,"children")},(function(e){return Te(e,t)}))}function Re(e){var t;return null!=(t=De(e,"value"))?t:e.key}function De(e,t){return"componentProps"in e.props?e.props.componentProps[t]:e.props[t]}function Ne(e,t){return"componentProps"in e.props?t in e.props.componentProps:t in e.props}function We(e,t){return n.cloneElement(e,e.type.getPlumeType?O({componentProps:O({},e.props.componentProps,t)},t.key?{key:t.key}:{}):t)}var qe=r.createContext(void 0),Ke=r.createContext(void 0),_e={itemPlumeType:"menu-item",sectionPlumeType:"menu-group"};function He(e,t){var n=e.triggerRef,a=e.isDisabled,i=e.placement,o=e.menuMatchTriggerWidth,s=e.menuWidth,u=e.menu,l=p.useMenuTrigger({type:"menu",isDisabled:a},t,n),c=l.menuProps;return{triggerProps:m.usePress(O({},l.menuTriggerProps,{isDisabled:a})).pressProps,makeMenu:function(){var e="function"==typeof u?u():u;if(!e)return null;if("menu"!==Me(e)){if(Ee)throw new Error("Must use an instance of the Menu component.");return null}return r.cloneElement(e,q(e.props,c))},triggerContext:r.useMemo((function(){var e;return{triggerRef:n,state:t,autoFocus:null==(e=t.focusStrategy)||e,placement:i,overlayMatchTriggerWidth:o,overlayMinTriggerWidth:!0,overlayWidth:s}}),[n,t,i,o,s])}}var Le=r.createContext(void 0),Ue={itemPlumeType:"select-option",sectionPlumeType:"select-option-group"};function ze(e){var t=e.state,n=e.menuProps,a=e.children,i=r.useRef(null),o=g.useListBox(O({},n,{isVirtualized:!1,autoFocus:t.focusStrategy||!0,disallowEmptySelection:!0}),t,i);return r.cloneElement(a,q(a.props,o.listBoxProps,{style:{outline:"none"},ref:i}))}var Ge=Symbol("plasmic.unitialized");function Be(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Je=function(e){return"symbol"!=typeof e&&!isNaN(+e)};function Ye(e,t){var r=null!=t?t:function(){return{get:function(e,t){return e[t]},set:function(e,t,r){return(e[t]=r)||!0}}},n=function(t){return Object.fromEntries(Object.values(e).filter((function(e){return Be(t.map((function(e){return Je(e)?"[]":e})),e.path.slice(0,t.length))})).map((function(e){var r=e.path[t.length];return e.path.length===t.length+1?[r,{isLast:!0,specKey:e.pathStr}]:[r,{isLast:!1,specKey:e.pathStr}]})))};return function e(t){var a=n(t);return new Proxy("[]"in a?[]:{},{deleteProperty:function(e,n){if(!("[]"in a)||!Je(n))throw new Error("You can't delete a non-repeated property in the middle of the path");var i,o;return delete e[n],null==r||null==(i=(o=r({path:[].concat(t,[+n]),specKey:a["[]"].specKey})).deleteProperty)||i.call(o,e,n),!0},get:function(n,i,o){if("[]"in a&&Je(i))i in n||(n[i]=e([].concat(t,[+i])));else if(i in a){var s,u;if(a[i].isLast)return n[i]=null==r||null==(s=(u=r({path:[].concat(t,[i]),specKey:a[i].specKey})).get)?void 0:s.call(u,n,i,o);i in n||(n[i]=e([].concat(t,[i])))}return n[i]},set:function(i,o,s,u){if("[]"in a&&Je(o))o in i||(i[o]=e([].concat(t,[+o])));else if(o in a){var l,c,p;if(a[o].isLast)return i[o]=s,null!=(l=null==(c=(p=r({path:[].concat(t,[o]),specKey:a[o].specKey})).set)?void 0:c.call(p,i,o,s,u))&&l}return"registerInitFunc"===o?i[o]=s:"object"==typeof s&&function e(t,a,i){if("object"==typeof i)for(var o=n(a),s=0,u=Object.entries(o);s<u.length;s++){var l=u[s],c=l[0],p=l[1],d=p.isLast,f=p.specKey;if("[]"===c&&Array.isArray(i))for(var v=0;v<i.length;v++)e(t[v],[].concat(a,[v]),i[v]);else if(c in i){var h,m;d?null==r||null==(h=(m=r({specKey:f,path:[].concat(a,[c])})).set)||h.call(m,t,c,i[c],void 0):e(t[c],[].concat(a,[c]),i[c])}}}(i[o],[].concat(t,[Je(o)?+o:o]),s),!0}})}([])}function $e(e,t,r){var n=Ye(e);return Object.values(t).forEach((function(e){var t=e.path;V.dset(n,t,S(r,t))})),n}function Qe(e,t){t[JSON.stringify(e.path)]=e}function Xe(e,t,r,n){for(var a=[new Set],i={},o=Object.assign(Ye(e,(function(n){return{get:function(s,u){var l=e[n.specKey];if(l.valueProp)return l.isRepeated?S(t[l.valueProp],n.path.slice(1)):t[l.valueProp];var c=S(r,n.path);return c===Ge&&(c=function(r){a.push(new Set);var n=e[r.specKey].initFunc(t,o),s=a.pop();return i[JSON.stringify(r.path)]=[].concat(s.values()),n}(n),V.dset(r,n.path,c)),a[a.length-1].add(JSON.stringify(n.path)),c},set:function(){throw new Error("Cannot update state values during initialization")}}})),{registerInitFunc:function(){}}),s=0,u=Object.values(n);s<u.length;s++){var l=u[s].path;S(r,l)===Ge&&S(o,l)}return i}exports.DropdownMenu=function(e){var t=e.isOpen,n=e.defaultOpen,a=e.onOpenChange,i=e.children,o=e.placement,s=e.menu,u=r.useRef(null),l=h.useMenuTriggerState({isOpen:t,defaultOpen:n,onOpenChange:a,shouldFlip:!0}),c=He({triggerRef:u,placement:o,menu:s},l),p=c.makeMenu;return r.createElement(qe.Provider,{value:c.triggerContext},r.cloneElement(i,q(i.props,c.triggerProps,{ref:u})),l.isOpen&&p())},exports.PlasmicIcon=function(e){var t=e.PlasmicIconType,n=x(e,["PlasmicIconType"]);return r.createElement(t,Object.assign({},n))},exports.PlasmicImg=ae,exports.PlasmicLink=ce,exports.PlasmicRootProvider=function(e){var t=e.platform,n=e.children,a=r.useMemo((function(){return{platform:t}}),[t]);return r.createElement(we.Provider,{value:a},r.createElement(o.SSRProvider,null,r.createElement(pe.Provider,{value:e.translator},n)))},exports.PlasmicSlot=function(e){return me(e)},exports.SelectContext=Le,exports.Stack=G,exports.Trans=fe,exports.TriggeredOverlayContext=qe,exports.classNames=xe,exports.createPlasmicElementProxy=function(e,t){null==t&&(t={});var r=t["data-plasmic-name"],n=t["data-plasmic-root"],a=t["data-plasmic-for-node"];delete t["data-plasmic-name"],delete t["data-plasmic-root"],delete t["data-plasmic-for-node"];for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];var u=$.apply(void 0,[e,t].concat(o));if(r&&Y.set(r,u),n){var l,c=a?null!=(l=Y.get(a))?l:null:u;return Y.clear(),c}return u},exports.createUseScreenVariants=function(e,t){return Object.assign(ge,t),Pe=void 0,function(){var t=r.useState()[1],n=r.useRef(Pe||[]);return D((function(){var e=function(){Pe&&n.current.join("")!==Pe.join("")&&(n.current=Pe,t({}))};return ye.push(e),void 0===Pe&&(Pe=be()),e(),function(){ye.splice(ye.indexOf(e),1)}}),[]),e?Pe||[]:Pe?Pe[Pe.length-1]:void 0}},exports.deriveRenderOpts=function(e,t){var r,n,a,i,o,s=t.name,u=t.descendantNames,l=t.internalVariantPropNames,c=t.internalArgPropNames,p=["variants","args","overrides"],d=(r=F.apply(void 0,[I.apply(void 0,[e].concat(l))].concat(p)),n=e.variants,r&&n?O({},r,n):r||n||{}),f=(a=F.apply(void 0,[I.apply(void 0,[e].concat(c))].concat(p)),i=e.args,a&&i?O({},a,i):a||i||{}),v=ee(F.apply(void 0,[I.apply(void 0,[e].concat(u))].concat(c,l,p)),e.overrides),h=F.apply(void 0,[e,"variants","args","overrides"].concat(u,l,c));return Object.keys(h).length>0&&(v=ee(v,((o={})[s]={props:h},o))),{variants:d,args:f,overrides:v}},exports.ensureGlobalVariants=function(e){return Object.entries(e).filter((function(e){return"PLEASE_RENDER_INSIDE_PROVIDER"===e[1]})).forEach((function(t){e[t[0]]=void 0})),e},exports.genTranslatableString=de,exports.generateStateOnChangeProp=function(e,t,r){return function(n,a){return V.dset(e,[t].concat(r,a),n)}},exports.generateStateValueProp=function(e,t){return S(e,t)},exports.getDataProps=function(e){return function(e,t){for(var r={},n=0,a=Object.entries(e);n<a.length;n++){var i=a[n][0];je.test(i)&&(r[i]=e[i])}return r}(e)},exports.hasVariant=function(e,t,r){if(null==e)return!1;var n=e[t];return null!=n&&(!0===n?r===t:!1!==n&&(Array.isArray(n)?n.includes(r):"string"==typeof n?n===r:void 0!==n[r]&&!1!==n[r]))},exports.makeFragment=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.createElement.apply(r,[r.Fragment,{}].concat(t))},exports.omit=F,exports.pick=I,exports.renderPlasmicSlot=me,exports.setPlumeStrictMode=function(e){Ee=e},exports.useButton=function(e,t,r,n){var a,i,o,s;void 0===n&&(n=null);var u=t.link,l=t.isDisabled,c=t.startIcon,p=t.endIcon,d=t.showStartIcon,f=t.showEndIcon,v=t.children,h=x(t,["link","isDisabled","startIcon","endIcon","showStartIcon","showEndIcon","children"]);return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:r.showStartIconVariant,active:d},{def:r.showEndIconVariant,active:f},{def:r.isDisabledVariant,active:l})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),r.startIconSlot&&((a={})[r.startIconSlot]=c,a),r.endIconSlot&&((i={})[r.endIconSlot]=p,i),((o={})[r.contentSlot]=v,o)),overrides:((s={})[r.root]={as:u?"a":"button",props:O({},F.apply(void 0,[h].concat(e.internalArgProps,e.internalVariantProps)),{ref:n,disabled:l},!!u&&{href:u})},s)}}},exports.useCheckbox=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=t.children,p=t.isDisabled,d=t.isIndeterminate;Ve();var f=r.useRef(null),v=r.useRef(null),h=function(e){var t=O({},e,{isSelected:e.isChecked,defaultSelected:e.defaultChecked});return delete t.isChecked,delete t.defaultChecked,t}(t),m=c.useToggleState(h),y=u.useCheckbox(h,m,f).inputProps,g=O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isDisabledVariant,active:p},{def:n.isCheckedVariant,active:m.isSelected},{def:n.isIndeterminateVariant,active:d},{def:n.noLabelVariant,active:!s})),b=((i={})[n.root]={as:"label",props:q(Ie(t),{ref:v}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(l.VisuallyHidden,{isFocusable:!0},r.createElement("input",Object.assign({},y,{ref:f}))),e)}},i),P=O({},I.apply(void 0,[t].concat(e.internalArgProps)),n.labelSlot?((o={})[n.labelSlot]=s,o):{}),w=r.useMemo((function(){return{setChecked:function(e){return m.setSelected(e)}}}),[m]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return v.current},focus:function(){var e;return null==(e=f.current)?void 0:e.focus()},blur:function(){var e;return null==(e=f.current)?void 0:e.blur()},setChecked:function(e){return w.setChecked(e)}}}),[v,f,w]),{plasmicProps:{variants:g,overrides:b,args:P},state:w}},exports.useDollarState=function(e,t){for(var r=n.useState(0)[1],a=n.useMemo((function(){var t=Object.fromEntries(e.map((function(e){var t,r=e.path;return[r,O({},x(e,["path"]),{pathStr:r,path:(t=r,t.split(".").flatMap((function e(t){return t.endsWith("[]")?[].concat(e(t.slice(0,-2)),["[]"]):[t]}))),isRepeated:r.split(".").some((function(e){return e.endsWith("[]")}))})]})));return{stateValues:Ye(t),initStateDeps:{},initStateValues:Ye(t),states:{},specs:t}}),[]),i=Object.assign(Ye(a.specs,(function(e){return{deleteProperty:function(t,n){for(var i=e.path,o=0,s=Object.entries(a.states);o<s.length;o++){var u=s[o],l=u[0],c=u[1];c.path.length>=i.length&&Be(c.path.slice(0,i.length),i)&&delete a.states[l]}return r((function(e){return e+1})),!0},get:function(n,o){var s=a.specs[e.specKey];if(s.valueProp)return s.isRepeated?S(t[s.valueProp],e.path.slice(1)):t[s.valueProp];if(!function(e,t){return JSON.stringify(e.path)in t}(e,a.states)){var u;Qe(e,a.states),V.dset(a.stateValues,e.path,s.initFunc?Ge:null!=(u=s.initVal)?u:void 0);var l=s.initFunc?Xe(a.specs,t,a.stateValues,a.states):{};return V.dset(a.initStateValues,e.path,S(a.stateValues,e.path)),a.initStateDeps=O({},a.initStateDeps,l),r((function(e){return e+1})),s.initFunc?s.initFunc(t,i):s.initVal}return S(a.stateValues,e.path)},set:function(n,i,o){if(o!==S(a.stateValues,e.path)){Qe(e,a.states),V.dset(a.stateValues,e.path,o);for(var s=0,u=Object.entries(a.initStateDeps);s<u.length;s++){var l=u[s],c=l[0];l[1].includes(JSON.stringify(e.path))&&V.dset(a.stateValues,JSON.parse(c),Ge)}var p=Xe(a.specs,t,a.stateValues,a.states);a.initStateDeps=O({},a.initStateDeps,p),r((function(e){return e+1}))}var d,f=a.specs[e.specKey];return f.onChangeProp&&(null==(d=t[f.onChangeProp])||d.call(t,o,e.path)),!0}}})),{registerInitFunc:function(e,n){Object.values(a.states).filter((function(t){return t.specKey===e})).some((function(e){return S(a.stateValues,e.path)!==n(t,i)}))&&(a.specs[e]=O({},a.specs[e],{initFunc:n}),r((function(e){return e+1})))}}),o=void 0,s=[],u=0,l=Object.values(a.states);u<l.length;u++){var c=l[u],p=c.path,d=c.specKey,f=a.specs[d];if(f.initFunc){var v=f.initFunc(t,i);v!==S(a.initStateValues,p)&&(console.log("init changed for "+JSON.stringify(p)+" from "+S(a.initStateValues,p)+" to "+v+"; resetting state"),s.push({path:p,specKey:d}),o||(o=$e(a.specs,a.states,a.stateValues)),V.dset(o,p,Ge))}}n.useLayoutEffect((function(){if(void 0!==o){var e=Xe(a.specs,t,o,a.states),n=$e(a.specs,a.states,a.initStateValues);s.forEach((function(e){var t=e.path;V.dset(n,t,S(o,t))})),a.stateValues=$e(a.specs,a.states,o),a.initStateValues=n,a.initStateDeps=O({},a.initStateDeps,e),r((function(e){return e+1}));for(var i,u=C(s);!(i=u()).done;){var l,c=i.value,p=c.path,d=a.specs[c.specKey];d.onChangeProp&&(console.log("Firing onChange for reset init value: "+d.path,S(o,p)),null==(l=t[d.onChangeProp])||l.call(t,S(o,p)))}}}),[o,t,s,a.specs]);for(var h=0,m=Object.values(a.states);h<m.length;h++)S(i,m[h].path);return i},exports.useIsSSR=Se,exports.useMenu=function(e,t,n,a){var i,o;void 0===a&&(a=null),Ve();var s=function(e){var t=e.children,n=x(e,["children"]),a=ke(t,O({},_e,{invalidChildError:"Can only use Menu.Item and Menu.Group as children to Menu",requireItemValue:!1})),i=a.items,o=a.disabledKeys;return{ariaProps:O({},n,{children:r.useCallback((function(e){return Te(e,_e)}),[]),items:i,disabledKeys:o})}}(t).ariaProps,u=r.useContext(qe),l=r.useRef(null),c=d.useTreeState(s),f=r.useRef(null),v=p.useMenu(O({},s,{autoFocus:null==u?void 0:u.autoFocus}),c,f).menuProps,h=r.useMemo((function(){return{state:c,menuProps:t}}),[c,t]),m=O({},I.apply(void 0,[t].concat(e.internalVariantProps))),y=((i={})[n.root]={props:q(Ie(t),{ref:l})},i[n.itemsContainer]={as:"ul",props:q(v,{ref:f,style:O({},{outline:"none"})})},i),g=O({},I.apply(void 0,[t].concat(e.internalArgProps)),((o={})[n.itemsSlot]=r.createElement(Ke.Provider,{value:h},Array.from(c.collection).map((function(e){return Ae(e)}))),o)),b=r.useMemo((function(){return{getFocusedValue:function(){return c.selectionManager.focusedKey},setFocusedValue:function(e){return c.selectionManager.setFocusedKey(e)}}}),[c]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return l.current},getFocusedValue:function(){return b.getFocusedValue()},setFocusedValue:function(e){return b.setFocusedValue(e)}}}),[l,b]),{plasmicProps:{variants:m,args:g,overrides:y},state:b}},exports.useMenuButton=function(e,t,n,a){var i,o;void 0===a&&(a=null);var u=t.placement,l=t.isOpen,c=t.defaultOpen,p=t.onOpenChange,d=t.isDisabled,f=t.menu,v=t.autoFocus,m=t.menuMatchTriggerWidth,y=t.menuWidth;Ve();var g=r.useRef(null),b=r.useRef(null),P=h.useMenuTriggerState({isOpen:l,defaultOpen:c,onOpenChange:p,shouldFlip:!0}),w=He({isDisabled:d,triggerRef:b,placement:u,menuMatchTriggerWidth:m,menuWidth:y,menu:f},P),S=w.triggerProps,V=w.makeMenu,x=w.triggerContext,E=s.useFocusable(t,b).focusableProps,C=O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isOpenVariant,active:P.isOpen},{def:n.isDisabledVariant,active:d})),M=O({},I.apply(void 0,[t].concat(e.internalArgProps)),((i={})[n.menuSlot]=P.isOpen?V():void 0,i)),F=((o={})[n.root]={wrapChildren:function(e){return r.createElement(qe.Provider,{value:x},e)},props:{ref:g}},o[n.trigger]={props:q(S,E,Ie(t),I(t,"title"),{ref:b,autoFocus:v,disabled:!!d,type:"button"})},o),j=r.useMemo((function(){return{open:function(){return P.open()},close:function(){return P.close()},isOpen:function(){return P.isOpen}}}),[P]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return g.current},getTrigger:function(){return b.current},focus:function(){return b.current&&b.current.focus()},blur:function(){return b.current&&b.current.blur()},open:j.open,close:j.close,isOpen:j.isOpen}}),[g,b,j]),{plasmicProps:{variants:C,args:M,overrides:F},state:j}},exports.useMenuGroup=function(e,t,n){var a,i,o=r.useContext(Ke),s=t._node;if(!o||!s){if(Ee)throw new Error("You can only use a Menu.Group within a Menu component.");return Fe(e,t)}var u=p.useMenuSection({heading:t.title,"aria-label":t["aria-label"]}),l=u.headingProps,c=u.groupProps,d=v.useSeparator({elementType:"li"}).separatorProps;return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.noTitleVariant,active:!t.title},{def:n.isFirstVariant,active:o.state.collection.getFirstKey()===s.key})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.titleSlot]=t.title,a[n.itemsSlot]=Array.from(s.childNodes).map((function(e){return Ae(e)})),a)),overrides:((i={})[n.root]={props:Ie(t)},i[n.separator]={props:O({},d),as:"li"},i[n.titleContainer]=O({props:O({role:"presentation"},l)},!t.title&&{render:function(){return null}}),i[n.itemsContainer]={props:O({},c),as:"ul"},i)}}},exports.useMenuItem=function(e,t,n){var a,i,o=r.useContext(Ke),s=r.useContext(qe);if(!o){if(Ee)throw new Error("You can only use a Menu.Item within a Menu component.");return Fe(e,t)}var u=t.children,l=t.onAction,c=o.state,d=o.menuProps,f=t._node,v=c.disabledKeys.has(f.key),h=c.selectionManager.isFocused&&c.selectionManager.focusedKey===f.key,m=r.useRef(null),y=p.useMenuItem(q({onAction:l},{onAction:d.onAction,onClose:null==s?void 0:s.state.close},{isDisabled:v,"aria-label":f&&f["aria-label"],key:f.key,isVirtualized:!1,closeOnSelect:!0}),c,m),g=y.menuItemProps,b=y.labelProps;return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isDisabledVariant,active:v},{def:n.isHighlightedVariant,active:h})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.labelSlot]=u,a)),overrides:((i={})[n.root]={as:"li",props:q(g,{ref:m,style:{outline:"none"}})},i[n.labelContainer]={props:O({},b)},i)}}},exports.useSelect=function(e,t,n,a){var i,o;void 0===a&&(a=null),Ve();var s=function(e){var t=e.value,n=e.defaultValue,a=e.children,i=e.onChange,o=x(e,["value","defaultValue","children","onChange","placement","menuMatchTriggerWidth","menuWidth"]),s=ke(a,O({},Ue,{invalidChildError:"Can only use Select.Option and Select.OptionGroup as children to Select",requireItemValue:!0})),u=s.items,l=s.disabledKeys;return{ariaProps:O({},o,{children:r.useCallback((function(e){return Te(e,Ue)}),[]),onSelectionChange:r.useMemo((function(){return i?function(e){return i(null==e||"null"===e?null:e)}:void 0}),[i]),items:u,disabledKeys:l,defaultSelectedKey:n},"value"in e&&{selectedKey:null!=t?t:null})}}(t).ariaProps,u=t.placement,l=b.useSelectState(s),c=r.useRef(null),p=r.useRef(null),d=t.isDisabled,f=t.name,v=t.menuWidth,h=t.menuMatchTriggerWidth,g=t.autoFocus,P=t.placeholder,w=t.selectedContent,S=y.useSelect(s,l,c),V=S.menuProps,E=m.usePress(O({},S.triggerProps,{isDisabled:d})).pressProps,C=l.selectedItem?null!=w?w:De(l.selectedItem.value,"children"):null,M=O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isOpenVariant,active:l.isOpen},{def:n.placeholderVariant,active:!l.selectedItem},{def:n.isDisabledVariant,active:d})),F=r.useMemo((function(){return{triggerRef:c,state:l,placement:u,overlayMatchTriggerWidth:h,overlayMinTriggerWidth:!0,overlayWidth:v}}),[c,l,u,h,v]),j=((i={})[n.root]={props:q(Ie(t),{ref:p}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(y.HiddenSelect,{state:l,triggerRef:c,name:f,isDisabled:d}),e)}},i[n.trigger]={props:q(E,{ref:c,autoFocus:g,disabled:!!d,type:"button"})},i[n.overlay]={wrap:function(e){return r.createElement(qe.Provider,{value:F},e)}},i[n.optionsContainer]={wrap:function(e){return r.createElement(ze,{state:l,menuProps:V},e)}},i),k=O({},I.apply(void 0,[t].concat(e.internalArgProps)),((o={})[n.triggerContentSlot]=C,o[n.placeholderSlot]=P,o[n.optionsSlot]=r.createElement(Le.Provider,{value:l},Array.from(l.collection).map((function(e){return Ae(e)}))),o)),A=r.useMemo((function(){return{open:function(){return l.open()},close:function(){return l.close()},isOpen:function(){return l.isOpen},getSelectedValue:function(){return l.selectedKey?""+l.selectedKey:null},setSelectedValue:function(e){return l.setSelectedKey(e)}}}),[l]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return p.current},getTrigger:function(){return c.current},focus:function(){var e;return null==(e=c.current)?void 0:e.focus()},blur:function(){var e;return null==(e=c.current)?void 0:e.blur()},open:function(){return A.open()},close:function(){return A.close()},isOpen:function(){return A.isOpen()},getSelectedValue:function(){return A.getSelectedValue()},setSelectedValue:function(e){return A.setSelectedValue(e)}}}),[p,c,A]),{plasmicProps:{variants:M,args:k,overrides:j},state:A}},exports.useSelectOption=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=r.useContext(Le);if(!s){if(Ee)throw new Error("You can only use a Select.Option within a Select component.");return Fe(e,t)}var u=t.children,l=r.useRef(null),c=_(l,a),p=t._node,d=s.selectionManager.isSelected(p.key),f=s.disabledKeys.has(p.key),v=s.selectionManager.isFocused&&s.selectionManager.focusedKey===p.key,h=g.useOption({isSelected:d,isDisabled:f,"aria-label":p&&p["aria-label"],key:p.key,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,isVirtualized:!1},s,l),m=h.optionProps,y=h.labelProps;return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isSelectedVariant,active:d},{def:n.isDisabledVariant,active:f},{def:n.isHighlightedVariant,active:v})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),((i={})[n.labelSlot]=u,i)),overrides:((o={})[n.root]={props:q(m,Ie(t),{ref:c,style:{outline:"none"}})},o[n.labelContainer]={props:y},o)}}},exports.useSelectOptionGroup=function(e,t,n){var a,i,o=r.useContext(Le),s=t._node;if(!o||!s){if(Ee)throw new Error("You can only use a Select.OptionGroup within a Select component.");return Fe(e,t)}var u=g.useListBoxSection({heading:t.title,"aria-label":t["aria-label"]}),l=u.headingProps,c=u.groupProps,p=v.useSeparator({elementType:"li"}).separatorProps;return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.noTitleVariant,active:!t.title},{def:n.isFirstVariant,active:o.collection.getFirstKey()===s.key})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.titleSlot]=t.title,a[n.optionsSlot]=Array.from(s.childNodes).map((function(e){return Ae(e)})),a)),overrides:((i={})[n.root]={props:Ie(t)},i[n.separator]={props:O({},p)},i[n.titleContainer]=O({props:O({role:"presentation"},l)},!t.title&&{render:function(){return null}}),i[n.optionsContainer]={props:O({},c)},i)}}},exports.useSwitch=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=t.children,u=t.isDisabled;Ve();var p=r.useRef(null),d=r.useRef(null),f=function(e){var t=O({},e,{isSelected:e.isChecked,defaultSelected:e.defaultChecked});return delete t.isChecked,delete t.defaultChecked,t}(t),v=c.useToggleState(f),h=P.useSwitch(f,v,p).inputProps,m=O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isDisabledVariant,active:u},{def:n.isCheckedVariant,active:v.isSelected},{def:n.noLabelVariant,active:!s})),y=((i={})[n.root]={as:"label",props:q(Ie(t),{ref:d}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(l.VisuallyHidden,{isFocusable:!0},r.createElement("input",Object.assign({},h,{ref:p}))),e)}},i),g=O({},I.apply(void 0,[t].concat(e.internalArgProps)),n.labelSlot?((o={})[n.labelSlot]=s,o):{}),b=r.useMemo((function(){return{setChecked:function(e){return v.setSelected(e)}}}),[v]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return d.current},focus:function(){var e;return null==(e=p.current)?void 0:e.focus()},blur:function(){var e;return null==(e=p.current)?void 0:e.blur()},setChecked:function(e){return b.setChecked(e)}}}),[d,p,b]),{plasmicProps:{variants:m,overrides:y,args:g},state:b}},exports.useTextInput=function(e,t,n,a){var i,o,s;void 0===a&&(a=null);var u=t.isDisabled,l=t.startIcon,c=t.endIcon,p=t.showStartIcon,d=t.showEndIcon,f=t.className,v=t.style,h=t.inputClassName,m=t.inputStyle,y=x(t,["isDisabled","startIcon","endIcon","showStartIcon","showEndIcon","className","style","inputClassName","inputStyle"]),g=r.useRef(null),b=r.useRef(null);return r.useImperativeHandle(a,(function(){return{focus:function(){var e;null==(e=b.current)||e.focus()},blur:function(){var e;null==(e=b.current)||e.blur()},getRoot:function(){return g.current},getInput:function(){return b.current}}}),[g,b]),{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.showStartIconVariant,active:p},{def:n.showEndIconVariant,active:d},{def:n.isDisabledVariant,active:u})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),n.startIconSlot&&((i={})[n.startIconSlot]=l,i),n.endIconSlot&&((o={})[n.endIconSlot]=c,o)),overrides:((s={})[n.root]={props:{ref:g,className:f,style:v}},s[n.input]={props:O({},F.apply(void 0,[y].concat(e.internalArgProps.filter((function(e){return"required"!==e})),e.internalVariantProps)),{disabled:u,ref:b,className:h,style:m})},s)}}},exports.useTrigger=function(e,t){return Oe[e](t)},exports.useTriggeredOverlay=function(e,t,n,i){var o,u;void 0===i&&(i=null);var l=r.useRef(null),c=_(l,i),p=r.useContext(qe);if(!p){if(Ee)throw new Error("You can only use a triggered overlay with a TriggeredOverlayContext");return Fe(e,t)}var d=t.children,f=p.triggerRef,v=p.placement,h=p.overlayMatchTriggerWidth,m=p.overlayMinTriggerWidth,y=p.overlayWidth,g=p.state,b=r.useState(!1),P=b[0],S=b[1],V=f.current&&(h||m)?f.current.offsetWidth:void 0;D((function(){!P&&f.current&&(h||m)&&S(!0)}),[f,P,h,m]);var x=w.useOverlay({isOpen:g.isOpen,onClose:g.close,isDismissable:!0,shouldCloseOnBlur:!0},l).overlayProps,E=w.useOverlayPosition({targetRef:f,overlayRef:l,placement:null!=v?v:"bottom left",shouldFlip:!0,isOpen:g.isOpen,onClose:g.close,containerPadding:0}),C=E.overlayProps,M=E.updatePosition,F=E.placement;D((function(){g.isOpen&&requestAnimationFrame((function(){M()}))}),[g.isOpen,M]);var j=q({style:{left:"auto",right:"auto",top:"auto",bottom:"auto",position:"absolute",width:null!=y?y:h?V:"auto",minWidth:m?V:"auto"}},x,C);return{plasmicProps:{variants:O({},I.apply(void 0,[t].concat(e.internalVariantProps)),Ce({def:n.isPlacedTopVariant,active:"top"===F},{def:n.isPlacedBottomVariant,active:"bottom"===F},{def:n.isPlacedLeftVariant,active:"left"===F},{def:n.isPlacedRightVariant,active:"right"===F})),args:O({},I.apply(void 0,[t].concat(e.internalArgProps)),((o={})[n.contentSlot]=r.createElement(s.FocusScope,{restoreFocus:!0},r.createElement(w.DismissButton,{onDismiss:g.close}),d),o)),overrides:((u={})[n.root]={props:q(j,Ie(t),{ref:c}),wrap:function(e){return"undefined"!=typeof document?a.createPortal(e,document.body):e}},u)}}},exports.wrapWithClassName=function(e,t){var n=r.isValidElement(e)&&e.key||void 0;return r.createElement("div",{key:n,className:t,style:{display:"grid"}},e)}; | ||
//# sourceMappingURL=react-web.cjs.production.min.js.map |
{ | ||
"name": "@plasmicapp/react-web", | ||
"version": "0.2.104", | ||
"version": "0.2.105", | ||
"description": "plasmic library for rendering in the presentational style", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
export { BaseSelectProps, SelectRef, SelectRefValue, useSelect, } from "./select"; | ||
export { BaseSelectOptionProps, SelectOptionRef, useSelectOption, } from "./select-option"; | ||
export { BaseSelectOptionGroupProps, useSelectOptionGroup, } from "./select-option-group"; | ||
export { SelectContext } from "./context"; |
@@ -265,3 +265,3 @@ import { a as __assign, p as pick, b as __spreadArray, c as __read, _ as __rest } from '../../common-182a0b0c.js'; | ||
export { useSelect, useSelectOption, useSelectOptionGroup }; | ||
export { SelectContext, useSelect, useSelectOption, useSelectOptionGroup }; | ||
//# sourceMappingURL=index.js.map |
export { BaseTriggeredOverlayProps, TriggeredOverlayConfig, TriggeredOverlayRef, useTriggeredOverlay, } from "./triggered-overlay"; | ||
export { TriggeredOverlayContext } from "./context"; |
@@ -10,2 +10,3 @@ import { c as __read, a as __assign, p as pick, b as __spreadArray } from '../../common-182a0b0c.js'; | ||
import { T as TriggeredOverlayContext } from '../../context-034b8d25.js'; | ||
export { T as TriggeredOverlayContext } from '../../context-034b8d25.js'; | ||
import 'classnames'; | ||
@@ -12,0 +13,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1953575
192
17027
10