@televet/kibble-ui 5.0.26-sc.1 → 5.0.26-sc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{anatomy-BsrdhlLN.js → anatomy-B0LtI6sf.js} +2 -2
- package/dist/chunks/{anatomy-BsrdhlLN.js.map → anatomy-B0LtI6sf.js.map} +1 -1
- package/dist/chunks/{anatomy-ByfITE1W.js → anatomy-DKlFmIC5.js} +11 -11
- package/dist/chunks/{anatomy-ByfITE1W.js.map → anatomy-DKlFmIC5.js.map} +1 -1
- package/dist/chunks/{datePicker.component-BkCLLBbA.js → datePicker.component-BTNp4pkH.js} +2 -2
- package/dist/chunks/{datePicker.component-BkCLLBbA.js.map → datePicker.component-BTNp4pkH.js.map} +1 -1
- package/dist/chunks/{datePicker.component-Dbxjqbki.js → datePicker.component-DgbWKb2q.js} +2 -2
- package/dist/chunks/{datePicker.component-Dbxjqbki.js.map → datePicker.component-DgbWKb2q.js.map} +1 -1
- package/dist/chunks/{dateTimePicker.component-49q0KN3k.js → dateTimePicker.component-CvNBzSf6.js} +2 -2
- package/dist/chunks/{dateTimePicker.component-49q0KN3k.js.map → dateTimePicker.component-CvNBzSf6.js.map} +1 -1
- package/dist/chunks/{dateTimePicker.component-jPa4WzsR.js → dateTimePicker.component-DgyypWQR.js} +3 -3
- package/dist/chunks/{dateTimePicker.component-jPa4WzsR.js.map → dateTimePicker.component-DgyypWQR.js.map} +1 -1
- package/dist/chunks/{popover.component-C9PY02k_.js → popover.component-DIYT1Lc0.js} +2 -2
- package/dist/chunks/{popover.component-C9PY02k_.js.map → popover.component-DIYT1Lc0.js.map} +1 -1
- package/dist/chunks/{popover.component-CiRGriH0.js → popover.component-DTjA1GSd.js} +2 -2
- package/dist/chunks/{popover.component-CiRGriH0.js.map → popover.component-DTjA1GSd.js.map} +1 -1
- package/dist/chunks/{popover.recipe-DhiHO7Ev.js → popover.recipe-CtptsJg6.js} +2 -2
- package/dist/chunks/{popover.recipe-DhiHO7Ev.js.map → popover.recipe-CtptsJg6.js.map} +1 -1
- package/dist/chunks/{popover.recipe-Bg7XkURN.js → popover.recipe-DPwwsWLb.js} +2 -2
- package/dist/chunks/{popover.recipe-Bg7XkURN.js.map → popover.recipe-DPwwsWLb.js.map} +1 -1
- package/dist/chunks/{theme.provider-CkWbGsN9.js → theme.provider-6Q7cs-Zb.js} +3 -3
- package/dist/chunks/theme.provider-6Q7cs-Zb.js.map +1 -0
- package/dist/chunks/{theme.provider-CtzMMtbT.js → theme.provider-NzQochsc.js} +280 -274
- package/dist/chunks/theme.provider-NzQochsc.js.map +1 -0
- package/dist/chunks/{timePicker.component-CkYqU0UZ.js → timePicker.component--sP-VAU6.js} +2 -2
- package/dist/chunks/{timePicker.component-CkYqU0UZ.js.map → timePicker.component--sP-VAU6.js.map} +1 -1
- package/dist/chunks/{timePicker.component-wuq0ZnAY.js → timePicker.component-BQavnU5-.js} +2 -2
- package/dist/chunks/{timePicker.component-wuq0ZnAY.js.map → timePicker.component-BQavnU5-.js.map} +1 -1
- package/dist/chunks/{timeRange.component-4vXrNask.js → timeRange.component-CK1x2GMK.js} +2 -2
- package/dist/chunks/{timeRange.component-4vXrNask.js.map → timeRange.component-CK1x2GMK.js.map} +1 -1
- package/dist/chunks/{timeRange.component-FoG-HHMx.js → timeRange.component-CNgdynZc.js} +2 -2
- package/dist/chunks/{timeRange.component-FoG-HHMx.js.map → timeRange.component-CNgdynZc.js.map} +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/DateTimePicker/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/index.js +5 -5
- package/dist/esm/index.js +14 -15
- package/dist/esm/theme/index.js +4 -5
- package/dist/types/theme/index.d.ts +0 -1
- package/dist/types/theme/recipes/Field/field.recipe.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunks/theme.provider-CkWbGsN9.js.map +0 -1
- package/dist/chunks/theme.provider-CtzMMtbT.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const c=require("./
|
|
2
|
-
//# sourceMappingURL=anatomy-
|
|
1
|
+
"use strict";const c=require("./index-B-OGBT0w.js"),o=require("./index-D_vndwae.js"),t=require("./index-CQURjLlA.js"),n=require("./index-BFUdiDZp.js"),s=require("./field.anatomy-Bhj7Mlr7.js"),m=require("./index-rSq6Bry6.js"),d=require("./index-D6HBfqAu.js"),l=require("./index-yh2QitBe.js"),y=require("./index-DhaZ70Qi.js"),e=require("./use-locale-context-ym21RUxU.js"),A=require("./index-DLe40do7.js");var a=t.createAnatomy("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");a.build();e.createProps()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]);e.createProps()(["htmlFor"]);e.createProps()(["id"]);e.createProps()(["item","persistFocus"]);const r=t.createAnatomy("fieldset").parts("root","errorText","helperText","legend");r.build();const p=o.anatomy.extendWith("itemBody"),u=t.createAnatomy("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),g=t.createAnatomy("alert").parts("title","description","root","indicator","content"),h=t.createAnatomy("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),x=t.createAnatomy("blockquote").parts("root","icon","content","caption"),b=t.createAnatomy("card").parts("root","header","body","footer","title","description"),f=t.createAnatomy("checkbox-card",["root","control","label","description","addon","indicator","content"]),T=t.createAnatomy("data-list").parts("root","item","itemLabel","itemValue"),k=n.anatomy.extendWith("header","body","footer","backdrop"),W=n.anatomy.extendWith("header","body","footer","backdrop"),C=o.anatomy$1.extendWith("textarea"),q=t.createAnatomy("empty-state",["root","content","indicator","title","description"]),v=s.fieldAnatomy.extendWith("requiredIndicator"),$=r.extendWith("content"),I=o.anatomy$2.extendWith("itemContent","dropzoneContent","fileText"),O=t.createAnatomy("list").parts("root","item","indicator"),G=m.anatomy.extendWith("itemCommand"),P=t.createAnatomy("select").parts("root","field","indicator"),V=c.anatomy.extendWith("header","body","footer"),i=d.anatomy.extendWith("itemAddon","itemIndicator"),w=i.extendWith("itemContent","itemDescription"),B=l.anatomy.extendWith("itemIndicator"),L=y.anatomy.extendWith("indicatorGroup"),F=a.extendWith("indicatorGroup","empty"),S=o.anatomy$3.extendWith("markerIndicator"),H=t.createAnatomy("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),U=t.createAnatomy("status").parts("root","indicator"),D=t.createAnatomy("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),E=A.anatomy.extendWith("indicator"),z=t.createAnatomy("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),K=t.createAnatomy("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),N=t.createAnatomy("tabs").parts("root","trigger","list","content","contentGroup","indicator"),R=t.createAnatomy("tag").parts("root","label","closeTrigger","startElement","endElement"),_=t.createAnatomy("timeline").parts("root","item","content","separator","indicator","connector","title","description"),j=o.colorPickerAnatomy.extendWith("channelText"),J=t.createAnatomy("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);o.anatomy$4.extendWith("valueText");exports.accordionAnatomy=p;exports.actionBarAnatomy=u;exports.alertAnatomy=g;exports.blockquoteAnatomy=x;exports.breadcrumbAnatomy=h;exports.cardAnatomy=b;exports.checkboxCardAnatomy=f;exports.codeBlockAnatomy=J;exports.colorPickerAnatomy=j;exports.comboboxAnatomy=F;exports.dataListAnatomy=T;exports.dialogAnatomy=k;exports.drawerAnatomy=W;exports.editableAnatomy=C;exports.emptyStateAnatomy=q;exports.fieldAnatomy=v;exports.fieldsetAnatomy=$;exports.fileUploadAnatomy=I;exports.listAnatomy=O;exports.menuAnatomy=G;exports.nativeSelectAnatomy=P;exports.popoverAnatomy=V;exports.radioCardAnatomy=w;exports.radioGroupAnatomy=i;exports.ratingGroupAnatomy=B;exports.selectAnatomy=L;exports.sliderAnatomy=S;exports.statAnatomy=H;exports.statusAnatomy=U;exports.stepsAnatomy=D;exports.switchAnatomy=E;exports.tableAnatomy=z;exports.tabsAnatomy=N;exports.tagAnatomy=R;exports.timelineAnatomy=_;exports.toastAnatomy=K;
|
|
2
|
+
//# sourceMappingURL=anatomy-B0LtI6sf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anatomy-BsrdhlLN.js","sources":["../../node_modules/@zag-js/combobox/dist/index.mjs","../../node_modules/@ark-ui/react/dist/components/fieldset/fieldset.anatomy.js","../../node_modules/@chakra-ui/react/dist/esm/anatomy.js"],"sourcesContent":["import { createAnatomy } from '@zag-js/anatomy';\nimport { ListCollection } from '@zag-js/collection';\nimport { raf, setCaretToEnd, nextTick, scrollIntoView, observeAttributes, clickIfLink, query, dataAttr, ariaAttr, isDownloadingEvent, isOpeningInNewTab, isContextMenuEvent, isLeftClick, getEventKey, isComposingEvent, isAnchorElement } from '@zag-js/dom-query';\nimport { getPlacement, getPlacementStyles } from '@zag-js/popper';\nimport { match, remove, addOrRemove, isBoolean, isEqual, createSplitProps, ensure } from '@zag-js/utils';\nimport { ariaHidden } from '@zag-js/aria-hidden';\nimport { setup } from '@zag-js/core';\nimport { trackDismissableElement } from '@zag-js/dismissable';\nimport { createProps } from '@zag-js/types';\n\n// src/combobox.anatomy.ts\nvar anatomy = createAnatomy(\"combobox\").parts(\n \"root\",\n \"clearTrigger\",\n \"content\",\n \"control\",\n \"input\",\n \"item\",\n \"itemGroup\",\n \"itemGroupLabel\",\n \"itemIndicator\",\n \"itemText\",\n \"label\",\n \"list\",\n \"positioner\",\n \"trigger\"\n);\nvar parts = anatomy.build();\nvar collection = (options) => {\n return new ListCollection(options);\n};\ncollection.empty = () => {\n return new ListCollection({ items: [] });\n};\nvar getRootId = (ctx) => ctx.ids?.root ?? `combobox:${ctx.id}`;\nvar getLabelId = (ctx) => ctx.ids?.label ?? `combobox:${ctx.id}:label`;\nvar getControlId = (ctx) => ctx.ids?.control ?? `combobox:${ctx.id}:control`;\nvar getInputId = (ctx) => ctx.ids?.input ?? `combobox:${ctx.id}:input`;\nvar getContentId = (ctx) => ctx.ids?.content ?? `combobox:${ctx.id}:content`;\nvar getPositionerId = (ctx) => ctx.ids?.positioner ?? `combobox:${ctx.id}:popper`;\nvar getTriggerId = (ctx) => ctx.ids?.trigger ?? `combobox:${ctx.id}:toggle-btn`;\nvar getClearTriggerId = (ctx) => ctx.ids?.clearTrigger ?? `combobox:${ctx.id}:clear-btn`;\nvar getItemGroupId = (ctx, id) => ctx.ids?.itemGroup?.(id) ?? `combobox:${ctx.id}:optgroup:${id}`;\nvar getItemGroupLabelId = (ctx, id) => ctx.ids?.itemGroupLabel?.(id) ?? `combobox:${ctx.id}:optgroup-label:${id}`;\nvar getItemId = (ctx, id) => ctx.ids?.item?.(id) ?? `combobox:${ctx.id}:option:${id}`;\nvar getContentEl = (ctx) => ctx.getById(getContentId(ctx));\nvar getInputEl = (ctx) => ctx.getById(getInputId(ctx));\nvar getPositionerEl = (ctx) => ctx.getById(getPositionerId(ctx));\nvar getControlEl = (ctx) => ctx.getById(getControlId(ctx));\nvar getTriggerEl = (ctx) => ctx.getById(getTriggerId(ctx));\nvar getClearTriggerEl = (ctx) => ctx.getById(getClearTriggerId(ctx));\nvar getItemEl = (ctx, value) => {\n if (value == null) return;\n const selector = `[role=option][data-value=\"${CSS.escape(value)}\"]`;\n return query(getContentEl(ctx), selector);\n};\nvar focusInputEl = (ctx) => {\n const inputEl = getInputEl(ctx);\n if (ctx.isActiveElement(inputEl)) return;\n inputEl?.focus({ preventScroll: true });\n};\nvar focusTriggerEl = (ctx) => {\n const triggerEl = getTriggerEl(ctx);\n if (ctx.isActiveElement(triggerEl)) return;\n triggerEl?.focus({ preventScroll: true });\n};\n\n// src/combobox.connect.ts\nfunction connect(service, normalize) {\n const { context, prop, state, send, scope, computed, event } = service;\n const translations = prop(\"translations\");\n const collection2 = prop(\"collection\");\n const disabled = prop(\"disabled\");\n const interactive = computed(\"isInteractive\");\n const invalid = prop(\"invalid\");\n const readOnly = prop(\"readOnly\");\n const open = state.hasTag(\"open\");\n const focused = state.hasTag(\"focused\");\n const composite = prop(\"composite\");\n const highlightedValue = context.get(\"highlightedValue\");\n const popperStyles = getPlacementStyles({\n ...prop(\"positioning\"),\n placement: context.get(\"currentPlacement\")\n });\n function getItemState(props2) {\n const disabled2 = collection2.getItemDisabled(props2.item);\n const value = collection2.getItemValue(props2.item);\n ensure(value, () => `[zag-js] No value found for item ${JSON.stringify(props2.item)}`);\n return {\n value,\n disabled: Boolean(disabled2 || disabled2),\n highlighted: highlightedValue === value,\n selected: context.get(\"value\").includes(value)\n };\n }\n return {\n focused,\n open,\n inputValue: context.get(\"inputValue\"),\n highlightedValue,\n highlightedItem: context.get(\"highlightedItem\"),\n value: context.get(\"value\"),\n valueAsString: computed(\"valueAsString\"),\n hasSelectedItems: computed(\"hasSelectedItems\"),\n selectedItems: context.get(\"selectedItems\"),\n collection: prop(\"collection\"),\n multiple: !!prop(\"multiple\"),\n disabled: !!disabled,\n syncSelectedItems() {\n send({ type: \"SELECTED_ITEMS.SYNC\" });\n },\n reposition(options = {}) {\n send({ type: \"POSITIONING.SET\", options });\n },\n setHighlightValue(value) {\n send({ type: \"HIGHLIGHTED_VALUE.SET\", value });\n },\n clearHighlightValue() {\n send({ type: \"HIGHLIGHTED_VALUE.CLEAR\" });\n },\n selectValue(value) {\n send({ type: \"ITEM.SELECT\", value });\n },\n setValue(value) {\n send({ type: \"VALUE.SET\", value });\n },\n setInputValue(value, reason = \"script\") {\n send({ type: \"INPUT_VALUE.SET\", value, src: reason });\n },\n clearValue(value) {\n if (value != null) {\n send({ type: \"ITEM.CLEAR\", value });\n } else {\n send({ type: \"VALUE.CLEAR\" });\n }\n },\n focus() {\n getInputEl(scope)?.focus();\n },\n setOpen(nextOpen, reason = \"script\") {\n const open2 = state.hasTag(\"open\");\n if (open2 === nextOpen) return;\n send({ type: nextOpen ? \"OPEN\" : \"CLOSE\", src: reason });\n },\n getRootProps() {\n return normalize.element({\n ...parts.root.attrs,\n dir: prop(\"dir\"),\n id: getRootId(scope),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly)\n });\n },\n getLabelProps() {\n return normalize.label({\n ...parts.label.attrs,\n dir: prop(\"dir\"),\n htmlFor: getInputId(scope),\n id: getLabelId(scope),\n \"data-readonly\": dataAttr(readOnly),\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-focus\": dataAttr(focused),\n onClick(event2) {\n if (composite) return;\n event2.preventDefault();\n getTriggerEl(scope)?.focus({ preventScroll: true });\n }\n });\n },\n getControlProps() {\n return normalize.element({\n ...parts.control.attrs,\n dir: prop(\"dir\"),\n id: getControlId(scope),\n \"data-state\": open ? \"open\" : \"closed\",\n \"data-focus\": dataAttr(focused),\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid)\n });\n },\n getPositionerProps() {\n return normalize.element({\n ...parts.positioner.attrs,\n dir: prop(\"dir\"),\n id: getPositionerId(scope),\n style: popperStyles.floating\n });\n },\n getInputProps() {\n return normalize.input({\n ...parts.input.attrs,\n dir: prop(\"dir\"),\n \"aria-invalid\": ariaAttr(invalid),\n \"data-invalid\": dataAttr(invalid),\n \"data-autofocus\": dataAttr(prop(\"autoFocus\")),\n name: prop(\"name\"),\n form: prop(\"form\"),\n disabled,\n required: prop(\"required\"),\n autoComplete: \"off\",\n autoCorrect: \"off\",\n autoCapitalize: \"none\",\n spellCheck: \"false\",\n readOnly,\n placeholder: prop(\"placeholder\"),\n id: getInputId(scope),\n type: \"text\",\n role: \"combobox\",\n defaultValue: context.get(\"inputValue\"),\n \"aria-autocomplete\": computed(\"autoComplete\") ? \"both\" : \"list\",\n \"aria-controls\": getContentId(scope),\n \"aria-expanded\": open,\n \"data-state\": open ? \"open\" : \"closed\",\n \"aria-activedescendant\": highlightedValue ? getItemId(scope, highlightedValue) : void 0,\n onClick(event2) {\n if (event2.defaultPrevented) return;\n if (!prop(\"openOnClick\")) return;\n if (!interactive) return;\n send({ type: \"INPUT.CLICK\", src: \"input-click\" });\n },\n onFocus() {\n if (disabled) return;\n send({ type: \"INPUT.FOCUS\" });\n },\n onBlur() {\n if (disabled) return;\n send({ type: \"INPUT.BLUR\" });\n },\n onChange(event2) {\n send({ type: \"INPUT.CHANGE\", value: event2.currentTarget.value, src: \"input-change\" });\n },\n onKeyDown(event2) {\n if (event2.defaultPrevented) return;\n if (!interactive) return;\n if (event2.ctrlKey || event2.shiftKey || isComposingEvent(event2)) return;\n const openOnKeyPress = prop(\"openOnKeyPress\");\n const isModifierKey = event2.ctrlKey || event2.metaKey || event2.shiftKey;\n const keypress = true;\n const keymap = {\n ArrowDown(event3) {\n if (!openOnKeyPress && !open) return;\n send({ type: event3.altKey ? \"OPEN\" : \"INPUT.ARROW_DOWN\", keypress, src: \"arrow-key\" });\n event3.preventDefault();\n },\n ArrowUp() {\n if (!openOnKeyPress && !open) return;\n send({ type: event2.altKey ? \"CLOSE\" : \"INPUT.ARROW_UP\", keypress, src: \"arrow-key\" });\n event2.preventDefault();\n },\n Home(event3) {\n if (isModifierKey) return;\n send({ type: \"INPUT.HOME\", keypress });\n if (open) {\n event3.preventDefault();\n }\n },\n End(event3) {\n if (isModifierKey) return;\n send({ type: \"INPUT.END\", keypress });\n if (open) {\n event3.preventDefault();\n }\n },\n Enter(event3) {\n send({ type: \"INPUT.ENTER\", keypress, src: \"item-select\" });\n const submittable = computed(\"isCustomValue\") && prop(\"allowCustomValue\");\n if (open && !submittable) {\n event3.preventDefault();\n }\n if (highlightedValue == null) return;\n const itemEl = getItemEl(scope, highlightedValue);\n if (isAnchorElement(itemEl)) {\n prop(\"navigate\")?.({ value: highlightedValue, node: itemEl, href: itemEl.href });\n }\n },\n Escape() {\n send({ type: \"INPUT.ESCAPE\", keypress, src: \"escape-key\" });\n event2.preventDefault();\n }\n };\n const key = getEventKey(event2, { dir: prop(\"dir\") });\n const exec = keymap[key];\n exec?.(event2);\n }\n });\n },\n getTriggerProps(props2 = {}) {\n return normalize.button({\n ...parts.trigger.attrs,\n dir: prop(\"dir\"),\n id: getTriggerId(scope),\n \"aria-haspopup\": composite ? \"listbox\" : \"dialog\",\n type: \"button\",\n tabIndex: props2.focusable ? void 0 : -1,\n \"aria-label\": translations.triggerLabel,\n \"aria-expanded\": open,\n \"data-state\": open ? \"open\" : \"closed\",\n \"aria-controls\": open ? getContentId(scope) : void 0,\n disabled,\n \"data-invalid\": dataAttr(invalid),\n \"data-focusable\": dataAttr(props2.focusable),\n \"data-readonly\": dataAttr(readOnly),\n \"data-disabled\": dataAttr(disabled),\n onFocus() {\n if (!props2.focusable) return;\n send({ type: \"INPUT.FOCUS\", src: \"trigger\" });\n },\n onClick(event2) {\n if (event2.defaultPrevented) return;\n if (!interactive) return;\n if (!isLeftClick(event2)) return;\n send({ type: \"TRIGGER.CLICK\", src: \"trigger-click\" });\n },\n onPointerDown(event2) {\n if (!interactive) return;\n if (event2.pointerType === \"touch\") return;\n if (!isLeftClick(event2)) return;\n event2.preventDefault();\n queueMicrotask(() => {\n getInputEl(scope)?.focus({ preventScroll: true });\n });\n },\n onKeyDown(event2) {\n if (event2.defaultPrevented) return;\n if (composite) return;\n const keyMap = {\n ArrowDown() {\n send({ type: \"INPUT.ARROW_DOWN\", src: \"arrow-key\" });\n },\n ArrowUp() {\n send({ type: \"INPUT.ARROW_UP\", src: \"arrow-key\" });\n }\n };\n const key = getEventKey(event2, { dir: prop(\"dir\") });\n const exec = keyMap[key];\n if (exec) {\n exec(event2);\n event2.preventDefault();\n }\n }\n });\n },\n getContentProps() {\n return normalize.element({\n ...parts.content.attrs,\n dir: prop(\"dir\"),\n id: getContentId(scope),\n role: !composite ? \"dialog\" : \"listbox\",\n tabIndex: -1,\n hidden: !open,\n \"data-state\": open ? \"open\" : \"closed\",\n \"data-placement\": context.get(\"currentPlacement\"),\n \"aria-labelledby\": getLabelId(scope),\n \"aria-multiselectable\": prop(\"multiple\") && composite ? true : void 0,\n \"data-empty\": dataAttr(collection2.size === 0),\n onPointerDown(event2) {\n if (!isLeftClick(event2)) return;\n event2.preventDefault();\n }\n });\n },\n getListProps() {\n return normalize.element({\n ...parts.list.attrs,\n role: !composite ? \"listbox\" : void 0,\n \"data-empty\": dataAttr(collection2.size === 0),\n \"aria-labelledby\": getLabelId(scope),\n \"aria-multiselectable\": prop(\"multiple\") && !composite ? true : void 0\n });\n },\n getClearTriggerProps() {\n return normalize.button({\n ...parts.clearTrigger.attrs,\n dir: prop(\"dir\"),\n id: getClearTriggerId(scope),\n type: \"button\",\n tabIndex: -1,\n disabled,\n \"data-invalid\": dataAttr(invalid),\n \"aria-label\": translations.clearTriggerLabel,\n \"aria-controls\": getInputId(scope),\n hidden: !context.get(\"value\").length,\n onPointerDown(event2) {\n if (!isLeftClick(event2)) return;\n event2.preventDefault();\n },\n onClick(event2) {\n if (event2.defaultPrevented) return;\n if (!interactive) return;\n send({ type: \"VALUE.CLEAR\", src: \"clear-trigger\" });\n }\n });\n },\n getItemState,\n getItemProps(props2) {\n const itemState = getItemState(props2);\n const value = itemState.value;\n return normalize.element({\n ...parts.item.attrs,\n dir: prop(\"dir\"),\n id: getItemId(scope, value),\n role: \"option\",\n tabIndex: -1,\n \"data-highlighted\": dataAttr(itemState.highlighted),\n \"data-state\": itemState.selected ? \"checked\" : \"unchecked\",\n \"aria-selected\": ariaAttr(itemState.highlighted),\n \"aria-disabled\": ariaAttr(itemState.disabled),\n \"data-disabled\": dataAttr(itemState.disabled),\n \"data-value\": itemState.value,\n onPointerMove() {\n if (itemState.disabled) return;\n if (itemState.highlighted) return;\n send({ type: \"ITEM.POINTER_MOVE\", value });\n },\n onPointerLeave() {\n if (props2.persistFocus) return;\n if (itemState.disabled) return;\n const prev = event.previous();\n const mouseMoved = prev?.type.includes(\"POINTER\");\n if (!mouseMoved) return;\n send({ type: \"ITEM.POINTER_LEAVE\", value });\n },\n onClick(event2) {\n if (isDownloadingEvent(event2)) return;\n if (isOpeningInNewTab(event2)) return;\n if (isContextMenuEvent(event2)) return;\n if (itemState.disabled) return;\n send({ type: \"ITEM.CLICK\", src: \"item-select\", value });\n }\n });\n },\n getItemTextProps(props2) {\n const itemState = getItemState(props2);\n return normalize.element({\n ...parts.itemText.attrs,\n dir: prop(\"dir\"),\n \"data-state\": itemState.selected ? \"checked\" : \"unchecked\",\n \"data-disabled\": dataAttr(itemState.disabled),\n \"data-highlighted\": dataAttr(itemState.highlighted)\n });\n },\n getItemIndicatorProps(props2) {\n const itemState = getItemState(props2);\n return normalize.element({\n \"aria-hidden\": true,\n ...parts.itemIndicator.attrs,\n dir: prop(\"dir\"),\n \"data-state\": itemState.selected ? \"checked\" : \"unchecked\",\n hidden: !itemState.selected\n });\n },\n getItemGroupProps(props2) {\n const { id } = props2;\n return normalize.element({\n ...parts.itemGroup.attrs,\n dir: prop(\"dir\"),\n id: getItemGroupId(scope, id),\n \"aria-labelledby\": getItemGroupLabelId(scope, id),\n \"data-empty\": dataAttr(collection2.size === 0),\n role: \"group\"\n });\n },\n getItemGroupLabelProps(props2) {\n const { htmlFor } = props2;\n return normalize.element({\n ...parts.itemGroupLabel.attrs,\n dir: prop(\"dir\"),\n id: getItemGroupLabelId(scope, htmlFor),\n role: \"presentation\"\n });\n }\n };\n}\nvar { guards, createMachine, choose } = setup();\nvar { and, not } = guards;\nvar machine = createMachine({\n props({ props: props2 }) {\n return {\n loopFocus: true,\n openOnClick: false,\n defaultValue: [],\n closeOnSelect: !props2.multiple,\n allowCustomValue: false,\n inputBehavior: \"none\",\n selectionBehavior: props2.multiple ? \"clear\" : \"replace\",\n openOnKeyPress: true,\n openOnChange: true,\n composite: true,\n navigate({ node }) {\n clickIfLink(node);\n },\n collection: collection.empty(),\n ...props2,\n positioning: {\n placement: \"bottom\",\n sameWidth: true,\n ...props2.positioning\n },\n translations: {\n triggerLabel: \"Toggle suggestions\",\n clearTriggerLabel: \"Clear value\",\n ...props2.translations\n }\n };\n },\n initialState({ prop }) {\n const open = prop(\"open\") || prop(\"defaultOpen\");\n return open ? \"suggesting\" : \"idle\";\n },\n context({ prop, bindable, getContext, getEvent }) {\n return {\n currentPlacement: bindable(() => ({\n defaultValue: void 0\n })),\n value: bindable(() => ({\n defaultValue: prop(\"defaultValue\"),\n value: prop(\"value\"),\n isEqual,\n hash(value) {\n return value.join(\",\");\n },\n onChange(value) {\n const context = getContext();\n const prevSelectedItems = context.get(\"selectedItems\");\n const collection2 = prop(\"collection\");\n const nextItems = value.map((v) => {\n const item = prevSelectedItems.find((item2) => collection2.getItemValue(item2) === v);\n return item || collection2.find(v);\n });\n context.set(\"selectedItems\", nextItems);\n prop(\"onValueChange\")?.({ value, items: nextItems });\n }\n })),\n highlightedValue: bindable(() => ({\n defaultValue: prop(\"defaultHighlightedValue\") || null,\n value: prop(\"highlightedValue\"),\n onChange(value) {\n const item = prop(\"collection\").find(value);\n prop(\"onHighlightChange\")?.({ highlightedValue: value, highlightedItem: item });\n }\n })),\n inputValue: bindable(() => {\n let inputValue = prop(\"inputValue\") || prop(\"defaultInputValue\") || \"\";\n const value = prop(\"defaultValue\") || prop(\"value\") || [];\n if (!inputValue.trim() && !prop(\"multiple\")) {\n const valueAsString = prop(\"collection\").stringifyMany(value);\n inputValue = match(prop(\"selectionBehavior\"), {\n preserve: inputValue || valueAsString,\n replace: valueAsString,\n clear: \"\"\n });\n }\n return {\n defaultValue: inputValue,\n value: prop(\"inputValue\"),\n onChange(value2) {\n const event = getEvent();\n const reason = (event.previousEvent || event).src;\n prop(\"onInputValueChange\")?.({ inputValue: value2, reason });\n }\n };\n }),\n highlightedItem: bindable(() => {\n const highlightedValue = prop(\"highlightedValue\");\n const highlightedItem = prop(\"collection\").find(highlightedValue);\n return { defaultValue: highlightedItem };\n }),\n selectedItems: bindable(() => {\n const value = prop(\"value\") || prop(\"defaultValue\") || [];\n const selectedItems = prop(\"collection\").findMany(value);\n return { defaultValue: selectedItems };\n })\n };\n },\n computed: {\n isInputValueEmpty: ({ context }) => context.get(\"inputValue\").length === 0,\n isInteractive: ({ prop }) => !(prop(\"readOnly\") || prop(\"disabled\")),\n autoComplete: ({ prop }) => prop(\"inputBehavior\") === \"autocomplete\",\n autoHighlight: ({ prop }) => prop(\"inputBehavior\") === \"autohighlight\",\n hasSelectedItems: ({ context }) => context.get(\"value\").length > 0,\n valueAsString: ({ context, prop }) => prop(\"collection\").stringifyItems(context.get(\"selectedItems\")),\n isCustomValue: ({ context, computed }) => context.get(\"inputValue\") !== computed(\"valueAsString\")\n },\n watch({ context, prop, track, action, send }) {\n track([() => context.hash(\"value\")], () => {\n action([\"syncSelectedItems\"]);\n });\n track([() => context.get(\"inputValue\")], () => {\n action([\"syncInputValue\"]);\n });\n track([() => context.get(\"highlightedValue\")], () => {\n action([\"syncHighlightedItem\", \"autofillInputValue\"]);\n });\n track([() => prop(\"open\")], () => {\n action([\"toggleVisibility\"]);\n });\n track([() => prop(\"collection\").toString()], () => {\n send({ type: \"CHILDREN_CHANGE\" });\n });\n },\n on: {\n \"SELECTED_ITEMS.SYNC\": {\n actions: [\"syncSelectedItems\"]\n },\n \"HIGHLIGHTED_VALUE.SET\": {\n actions: [\"setHighlightedValue\"]\n },\n \"HIGHLIGHTED_VALUE.CLEAR\": {\n actions: [\"clearHighlightedValue\"]\n },\n \"ITEM.SELECT\": {\n actions: [\"selectItem\"]\n },\n \"ITEM.CLEAR\": {\n actions: [\"clearItem\"]\n },\n \"VALUE.SET\": {\n actions: [\"setValue\"]\n },\n \"INPUT_VALUE.SET\": {\n actions: [\"setInputValue\"]\n },\n \"POSITIONING.SET\": {\n actions: [\"reposition\"]\n }\n },\n entry: choose([\n {\n guard: \"autoFocus\",\n actions: [\"setInitialFocus\"]\n }\n ]),\n states: {\n idle: {\n tags: [\"idle\", \"closed\"],\n entry: [\"scrollContentToTop\", \"clearHighlightedValue\"],\n on: {\n \"CONTROLLED.OPEN\": {\n target: \"interacting\"\n },\n \"TRIGGER.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"setInitialFocus\", \"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"setInitialFocus\", \"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n \"INPUT.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n \"INPUT.FOCUS\": {\n target: \"focused\"\n },\n OPEN: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"invokeOnOpen\"]\n }\n ],\n \"VALUE.CLEAR\": {\n target: \"focused\",\n actions: [\"clearInputValue\", \"clearSelectedItems\", \"setInitialFocus\"]\n }\n }\n },\n focused: {\n tags: [\"focused\", \"closed\"],\n entry: [\"scrollContentToTop\", \"clearHighlightedValue\"],\n on: {\n \"CONTROLLED.OPEN\": [\n {\n guard: \"isChangeEvent\",\n target: \"suggesting\"\n },\n {\n target: \"interacting\"\n }\n ],\n \"INPUT.CHANGE\": [\n {\n guard: and(\"isOpenControlled\", \"openOnChange\"),\n actions: [\"setInputValue\", \"invokeOnOpen\", \"highlightFirstItemIfNeeded\"]\n },\n {\n guard: \"openOnChange\",\n target: \"suggesting\",\n actions: [\"setInputValue\", \"invokeOnOpen\", \"highlightFirstItemIfNeeded\"]\n },\n {\n actions: [\"setInputValue\"]\n }\n ],\n \"LAYER.INTERACT_OUTSIDE\": {\n target: \"idle\"\n },\n \"INPUT.ESCAPE\": {\n guard: and(\"isCustomValue\", not(\"allowCustomValue\")),\n actions: [\"revertInputValue\"]\n },\n \"INPUT.BLUR\": {\n target: \"idle\"\n },\n \"INPUT.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n \"TRIGGER.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"setInitialFocus\", \"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"setInitialFocus\", \"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n \"INPUT.ARROW_DOWN\": [\n // == group 1 ==\n {\n guard: and(\"isOpenControlled\", \"autoComplete\"),\n actions: [\"invokeOnOpen\"]\n },\n {\n guard: \"autoComplete\",\n target: \"interacting\",\n actions: [\"invokeOnOpen\"]\n },\n // == group 2 ==\n {\n guard: \"isOpenControlled\",\n actions: [\"highlightFirstOrSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"highlightFirstOrSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n \"INPUT.ARROW_UP\": [\n // == group 1 ==\n {\n guard: \"autoComplete\",\n target: \"interacting\",\n actions: [\"invokeOnOpen\"]\n },\n {\n guard: \"autoComplete\",\n target: \"interacting\",\n actions: [\"invokeOnOpen\"]\n },\n // == group 2 ==\n {\n target: \"interacting\",\n actions: [\"highlightLastOrSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"highlightLastOrSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n OPEN: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"invokeOnOpen\"]\n }\n ],\n \"VALUE.CLEAR\": {\n actions: [\"clearInputValue\", \"clearSelectedItems\"]\n }\n }\n },\n interacting: {\n tags: [\"open\", \"focused\"],\n entry: [\"setInitialFocus\"],\n effects: [\"scrollToHighlightedItem\", \"trackDismissableLayer\", \"trackPlacement\", \"hideOtherElements\"],\n on: {\n \"CONTROLLED.CLOSE\": [\n {\n guard: \"restoreFocus\",\n target: \"focused\",\n actions: [\"setFinalFocus\"]\n },\n {\n target: \"idle\"\n }\n ],\n CHILDREN_CHANGE: [\n {\n guard: \"isHighlightedItemRemoved\",\n actions: [\"clearHighlightedValue\"]\n },\n {\n actions: [\"scrollToHighlightedItem\"]\n }\n ],\n \"INPUT.HOME\": {\n actions: [\"highlightFirstItem\"]\n },\n \"INPUT.END\": {\n actions: [\"highlightLastItem\"]\n },\n \"INPUT.ARROW_DOWN\": [\n {\n guard: and(\"autoComplete\", \"isLastItemHighlighted\"),\n actions: [\"clearHighlightedValue\", \"scrollContentToTop\"]\n },\n {\n actions: [\"highlightNextItem\"]\n }\n ],\n \"INPUT.ARROW_UP\": [\n {\n guard: and(\"autoComplete\", \"isFirstItemHighlighted\"),\n actions: [\"clearHighlightedValue\"]\n },\n {\n actions: [\"highlightPrevItem\"]\n }\n ],\n \"INPUT.ENTER\": [\n // == group 1 ==\n {\n guard: and(\"isOpenControlled\", \"isCustomValue\", not(\"hasHighlightedItem\"), not(\"allowCustomValue\")),\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n {\n guard: and(\"isCustomValue\", not(\"hasHighlightedItem\"), not(\"allowCustomValue\")),\n target: \"focused\",\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n // == group 2 ==\n {\n guard: and(\"isOpenControlled\", \"closeOnSelect\"),\n actions: [\"selectHighlightedItem\", \"invokeOnClose\"]\n },\n {\n guard: \"closeOnSelect\",\n target: \"focused\",\n actions: [\"selectHighlightedItem\", \"invokeOnClose\", \"setFinalFocus\"]\n },\n {\n actions: [\"selectHighlightedItem\"]\n }\n ],\n \"INPUT.CHANGE\": [\n {\n guard: \"autoComplete\",\n target: \"suggesting\",\n actions: [\"setInputValue\"]\n },\n {\n target: \"suggesting\",\n actions: [\"clearHighlightedValue\", \"setInputValue\"]\n }\n ],\n \"ITEM.POINTER_MOVE\": {\n actions: [\"setHighlightedValue\"]\n },\n \"ITEM.POINTER_LEAVE\": {\n actions: [\"clearHighlightedValue\"]\n },\n \"ITEM.CLICK\": [\n {\n guard: and(\"isOpenControlled\", \"closeOnSelect\"),\n actions: [\"selectItem\", \"invokeOnClose\"]\n },\n {\n guard: \"closeOnSelect\",\n target: \"focused\",\n actions: [\"selectItem\", \"invokeOnClose\", \"setFinalFocus\"]\n },\n {\n actions: [\"selectItem\"]\n }\n ],\n \"LAYER.ESCAPE\": [\n {\n guard: and(\"isOpenControlled\", \"autoComplete\"),\n actions: [\"syncInputValue\", \"invokeOnClose\"]\n },\n {\n guard: \"autoComplete\",\n target: \"focused\",\n actions: [\"syncInputValue\", \"invokeOnClose\"]\n },\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\", \"setFinalFocus\"]\n }\n ],\n \"TRIGGER.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\"]\n }\n ],\n \"LAYER.INTERACT_OUTSIDE\": [\n // == group 1 ==\n {\n guard: and(\"isOpenControlled\", \"isCustomValue\", not(\"allowCustomValue\")),\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n {\n guard: and(\"isCustomValue\", not(\"allowCustomValue\")),\n target: \"idle\",\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n // == group 2 ==\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"idle\",\n actions: [\"invokeOnClose\"]\n }\n ],\n CLOSE: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\", \"setFinalFocus\"]\n }\n ],\n \"VALUE.CLEAR\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"clearInputValue\", \"clearSelectedItems\", \"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"clearInputValue\", \"clearSelectedItems\", \"invokeOnClose\", \"setFinalFocus\"]\n }\n ]\n }\n },\n suggesting: {\n tags: [\"open\", \"focused\"],\n effects: [\"trackDismissableLayer\", \"scrollToHighlightedItem\", \"trackPlacement\", \"hideOtherElements\"],\n entry: [\"setInitialFocus\"],\n on: {\n \"CONTROLLED.CLOSE\": [\n {\n guard: \"restoreFocus\",\n target: \"focused\",\n actions: [\"setFinalFocus\"]\n },\n {\n target: \"idle\"\n }\n ],\n CHILDREN_CHANGE: [\n {\n guard: \"autoHighlight\",\n actions: [\"highlightFirstItem\"]\n },\n {\n guard: \"isHighlightedItemRemoved\",\n actions: [\"clearHighlightedValue\"]\n }\n ],\n \"INPUT.ARROW_DOWN\": {\n target: \"interacting\",\n actions: [\"highlightNextItem\"]\n },\n \"INPUT.ARROW_UP\": {\n target: \"interacting\",\n actions: [\"highlightPrevItem\"]\n },\n \"INPUT.HOME\": {\n target: \"interacting\",\n actions: [\"highlightFirstItem\"]\n },\n \"INPUT.END\": {\n target: \"interacting\",\n actions: [\"highlightLastItem\"]\n },\n \"INPUT.ENTER\": [\n // == group 1 ==\n {\n guard: and(\"isOpenControlled\", \"isCustomValue\", not(\"hasHighlightedItem\"), not(\"allowCustomValue\")),\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n {\n guard: and(\"isCustomValue\", not(\"hasHighlightedItem\"), not(\"allowCustomValue\")),\n target: \"focused\",\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n // == group 2 ==\n {\n guard: and(\"isOpenControlled\", \"closeOnSelect\"),\n actions: [\"selectHighlightedItem\", \"invokeOnClose\"]\n },\n {\n guard: \"closeOnSelect\",\n target: \"focused\",\n actions: [\"selectHighlightedItem\", \"invokeOnClose\", \"setFinalFocus\"]\n },\n {\n actions: [\"selectHighlightedItem\"]\n }\n ],\n \"INPUT.CHANGE\": {\n actions: [\"setInputValue\"]\n },\n \"LAYER.ESCAPE\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\"]\n }\n ],\n \"ITEM.POINTER_MOVE\": {\n target: \"interacting\",\n actions: [\"setHighlightedValue\"]\n },\n \"ITEM.POINTER_LEAVE\": {\n actions: [\"clearHighlightedValue\"]\n },\n \"LAYER.INTERACT_OUTSIDE\": [\n // == group 1 ==\n {\n guard: and(\"isOpenControlled\", \"isCustomValue\", not(\"allowCustomValue\")),\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n {\n guard: and(\"isCustomValue\", not(\"allowCustomValue\")),\n target: \"idle\",\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n // == group 2 ==\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"idle\",\n actions: [\"invokeOnClose\"]\n }\n ],\n \"TRIGGER.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\"]\n }\n ],\n \"ITEM.CLICK\": [\n {\n guard: and(\"isOpenControlled\", \"closeOnSelect\"),\n actions: [\"selectItem\", \"invokeOnClose\"]\n },\n {\n guard: \"closeOnSelect\",\n target: \"focused\",\n actions: [\"selectItem\", \"invokeOnClose\", \"setFinalFocus\"]\n },\n {\n actions: [\"selectItem\"]\n }\n ],\n CLOSE: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\", \"setFinalFocus\"]\n }\n ],\n \"VALUE.CLEAR\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"clearInputValue\", \"clearSelectedItems\", \"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"clearInputValue\", \"clearSelectedItems\", \"invokeOnClose\", \"setFinalFocus\"]\n }\n ]\n }\n }\n },\n implementations: {\n guards: {\n isInputValueEmpty: ({ computed }) => computed(\"isInputValueEmpty\"),\n autoComplete: ({ computed, prop }) => computed(\"autoComplete\") && !prop(\"multiple\"),\n autoHighlight: ({ computed }) => computed(\"autoHighlight\"),\n isFirstItemHighlighted: ({ prop, context }) => prop(\"collection\").firstValue === context.get(\"highlightedValue\"),\n isLastItemHighlighted: ({ prop, context }) => prop(\"collection\").lastValue === context.get(\"highlightedValue\"),\n isCustomValue: ({ computed }) => computed(\"isCustomValue\"),\n allowCustomValue: ({ prop }) => !!prop(\"allowCustomValue\"),\n hasHighlightedItem: ({ context }) => context.get(\"highlightedValue\") != null,\n closeOnSelect: ({ prop }) => !!prop(\"closeOnSelect\"),\n isOpenControlled: ({ prop }) => prop(\"open\") != null,\n openOnChange: ({ prop, context }) => {\n const openOnChange = prop(\"openOnChange\");\n if (isBoolean(openOnChange)) return openOnChange;\n return !!openOnChange?.({ inputValue: context.get(\"inputValue\") });\n },\n restoreFocus: ({ event }) => event.restoreFocus == null ? true : !!event.restoreFocus,\n isChangeEvent: ({ event }) => event.previousEvent?.type === \"INPUT.CHANGE\",\n autoFocus: ({ prop }) => !!prop(\"autoFocus\"),\n isHighlightedItemRemoved: ({ prop, context }) => !prop(\"collection\").has(context.get(\"highlightedValue\"))\n },\n effects: {\n trackDismissableLayer({ send, prop, scope }) {\n if (prop(\"disableLayer\")) return;\n const contentEl = () => getContentEl(scope);\n return trackDismissableElement(contentEl, {\n defer: true,\n exclude: () => [getInputEl(scope), getTriggerEl(scope), getClearTriggerEl(scope)],\n onFocusOutside: prop(\"onFocusOutside\"),\n onPointerDownOutside: prop(\"onPointerDownOutside\"),\n onInteractOutside: prop(\"onInteractOutside\"),\n onEscapeKeyDown(event) {\n event.preventDefault();\n event.stopPropagation();\n send({ type: \"LAYER.ESCAPE\", src: \"escape-key\" });\n },\n onDismiss() {\n send({ type: \"LAYER.INTERACT_OUTSIDE\", src: \"interact-outside\", restoreFocus: false });\n }\n });\n },\n hideOtherElements({ scope }) {\n return ariaHidden([\n getInputEl(scope),\n getContentEl(scope),\n getTriggerEl(scope),\n getClearTriggerEl(scope)\n ]);\n },\n trackPlacement({ context, prop, scope }) {\n const anchorEl = () => getControlEl(scope) || getTriggerEl(scope);\n const positionerEl = () => getPositionerEl(scope);\n context.set(\"currentPlacement\", prop(\"positioning\").placement);\n return getPlacement(anchorEl, positionerEl, {\n ...prop(\"positioning\"),\n defer: true,\n onComplete(data) {\n context.set(\"currentPlacement\", data.placement);\n }\n });\n },\n scrollToHighlightedItem({ context, prop, scope, event }) {\n const inputEl = getInputEl(scope);\n let cleanups = [];\n const exec = (immediate) => {\n const pointer = event.current().type.includes(\"POINTER\");\n const highlightedValue = context.get(\"highlightedValue\");\n if (pointer || !highlightedValue) return;\n const itemEl = getItemEl(scope, highlightedValue);\n const contentEl = getContentEl(scope);\n const scrollToIndexFn = prop(\"scrollToIndexFn\");\n if (scrollToIndexFn) {\n const highlightedIndex = prop(\"collection\").indexOf(highlightedValue);\n scrollToIndexFn({ index: highlightedIndex, immediate });\n return;\n }\n const raf_cleanup = raf(() => {\n scrollIntoView(itemEl, { rootEl: contentEl, block: \"nearest\" });\n });\n cleanups.push(raf_cleanup);\n };\n const rafCleanup = raf(() => exec(true));\n cleanups.push(rafCleanup);\n const observerCleanup = observeAttributes(inputEl, {\n attributes: [\"aria-activedescendant\"],\n callback: () => exec(false)\n });\n cleanups.push(observerCleanup);\n return () => {\n cleanups.forEach((cleanup) => cleanup());\n };\n }\n },\n actions: {\n reposition({ context, prop, scope, event }) {\n const controlEl = () => getControlEl(scope);\n const positionerEl = () => getPositionerEl(scope);\n getPlacement(controlEl, positionerEl, {\n ...prop(\"positioning\"),\n ...event.options,\n defer: true,\n listeners: false,\n onComplete(data) {\n context.set(\"currentPlacement\", data.placement);\n }\n });\n },\n setHighlightedValue({ context, event }) {\n if (event.value == null) return;\n context.set(\"highlightedValue\", event.value);\n },\n clearHighlightedValue({ context }) {\n context.set(\"highlightedValue\", null);\n },\n selectHighlightedItem(params) {\n const { context, prop } = params;\n const collection2 = prop(\"collection\");\n const highlightedValue = context.get(\"highlightedValue\");\n if (!highlightedValue || !collection2.has(highlightedValue)) return;\n const nextValue = prop(\"multiple\") ? addOrRemove(context.get(\"value\"), highlightedValue) : [highlightedValue];\n prop(\"onSelect\")?.({ value: nextValue, itemValue: highlightedValue });\n context.set(\"value\", nextValue);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: collection2.stringifyMany(nextValue),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n },\n scrollToHighlightedItem({ context, prop, scope }) {\n nextTick(() => {\n const highlightedValue = context.get(\"highlightedValue\");\n if (highlightedValue == null) return;\n const itemEl = getItemEl(scope, highlightedValue);\n const contentEl = getContentEl(scope);\n const scrollToIndexFn = prop(\"scrollToIndexFn\");\n if (scrollToIndexFn) {\n const highlightedIndex = prop(\"collection\").indexOf(highlightedValue);\n scrollToIndexFn({ index: highlightedIndex, immediate: true });\n return;\n }\n scrollIntoView(itemEl, { rootEl: contentEl, block: \"nearest\" });\n });\n },\n selectItem(params) {\n const { context, event, flush, prop } = params;\n if (event.value == null) return;\n flush(() => {\n const nextValue = prop(\"multiple\") ? addOrRemove(context.get(\"value\"), event.value) : [event.value];\n prop(\"onSelect\")?.({ value: nextValue, itemValue: event.value });\n context.set(\"value\", nextValue);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: prop(\"collection\").stringifyMany(nextValue),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n });\n },\n clearItem(params) {\n const { context, event, flush, prop } = params;\n if (event.value == null) return;\n flush(() => {\n const nextValue = remove(context.get(\"value\"), event.value);\n context.set(\"value\", nextValue);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: prop(\"collection\").stringifyMany(nextValue),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n });\n },\n setInitialFocus({ scope }) {\n raf(() => {\n focusInputEl(scope);\n });\n },\n setFinalFocus({ scope }) {\n raf(() => {\n const triggerEl = getTriggerEl(scope);\n if (triggerEl?.dataset.focusable == null) {\n focusInputEl(scope);\n } else {\n focusTriggerEl(scope);\n }\n });\n },\n syncInputValue({ context, scope, event }) {\n const inputEl = getInputEl(scope);\n if (!inputEl) return;\n inputEl.value = context.get(\"inputValue\");\n queueMicrotask(() => {\n if (event.current().type === \"INPUT.CHANGE\") return;\n setCaretToEnd(inputEl);\n });\n },\n setInputValue({ context, event }) {\n context.set(\"inputValue\", event.value);\n },\n clearInputValue({ context }) {\n context.set(\"inputValue\", \"\");\n },\n revertInputValue({ context, prop, computed }) {\n const selectionBehavior = prop(\"selectionBehavior\");\n const inputValue = match(selectionBehavior, {\n replace: computed(\"hasSelectedItems\") ? computed(\"valueAsString\") : \"\",\n preserve: context.get(\"inputValue\"),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n },\n setValue(params) {\n const { context, flush, event, prop } = params;\n flush(() => {\n context.set(\"value\", event.value);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: prop(\"collection\").stringifyMany(event.value),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n });\n },\n clearSelectedItems(params) {\n const { context, flush, prop } = params;\n flush(() => {\n context.set(\"value\", []);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: prop(\"collection\").stringifyMany([]),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n });\n },\n scrollContentToTop({ prop, scope }) {\n const scrollToIndexFn = prop(\"scrollToIndexFn\");\n if (scrollToIndexFn) {\n scrollToIndexFn({ index: 0, immediate: true });\n } else {\n const contentEl = getContentEl(scope);\n if (!contentEl) return;\n contentEl.scrollTop = 0;\n }\n },\n invokeOnOpen({ prop, event }) {\n const reason = getOpenChangeReason(event);\n prop(\"onOpenChange\")?.({ open: true, reason });\n },\n invokeOnClose({ prop, event }) {\n const reason = getOpenChangeReason(event);\n prop(\"onOpenChange\")?.({ open: false, reason });\n },\n highlightFirstItem({ context, prop, scope }) {\n const exec = getContentEl(scope) ? queueMicrotask : raf;\n exec(() => {\n const value = prop(\"collection\").firstValue;\n if (value) context.set(\"highlightedValue\", value);\n });\n },\n highlightFirstItemIfNeeded({ computed, action }) {\n if (!computed(\"autoHighlight\")) return;\n action([\"highlightFirstItem\"]);\n },\n highlightLastItem({ context, prop, scope }) {\n const exec = getContentEl(scope) ? queueMicrotask : raf;\n exec(() => {\n const value = prop(\"collection\").lastValue;\n if (value) context.set(\"highlightedValue\", value);\n });\n },\n highlightNextItem({ context, prop }) {\n let value = null;\n const highlightedValue = context.get(\"highlightedValue\");\n const collection2 = prop(\"collection\");\n if (highlightedValue) {\n value = collection2.getNextValue(highlightedValue);\n if (!value && prop(\"loopFocus\")) value = collection2.firstValue;\n } else {\n value = collection2.firstValue;\n }\n if (value) context.set(\"highlightedValue\", value);\n },\n highlightPrevItem({ context, prop }) {\n let value = null;\n const highlightedValue = context.get(\"highlightedValue\");\n const collection2 = prop(\"collection\");\n if (highlightedValue) {\n value = collection2.getPreviousValue(highlightedValue);\n if (!value && prop(\"loopFocus\")) value = collection2.lastValue;\n } else {\n value = collection2.lastValue;\n }\n if (value) context.set(\"highlightedValue\", value);\n },\n highlightFirstSelectedItem({ context, prop }) {\n raf(() => {\n const [value] = prop(\"collection\").sort(context.get(\"value\"));\n if (value) context.set(\"highlightedValue\", value);\n });\n },\n highlightFirstOrSelectedItem({ context, prop, computed }) {\n raf(() => {\n let value = null;\n if (computed(\"hasSelectedItems\")) {\n value = prop(\"collection\").sort(context.get(\"value\"))[0];\n } else {\n value = prop(\"collection\").firstValue;\n }\n if (value) context.set(\"highlightedValue\", value);\n });\n },\n highlightLastOrSelectedItem({ context, prop, computed }) {\n raf(() => {\n const collection2 = prop(\"collection\");\n let value = null;\n if (computed(\"hasSelectedItems\")) {\n value = collection2.sort(context.get(\"value\"))[0];\n } else {\n value = collection2.lastValue;\n }\n if (value) context.set(\"highlightedValue\", value);\n });\n },\n autofillInputValue({ context, computed, prop, event, scope }) {\n const inputEl = getInputEl(scope);\n const collection2 = prop(\"collection\");\n if (!computed(\"autoComplete\") || !inputEl || !event.keypress) return;\n const valueText = collection2.stringify(context.get(\"highlightedValue\"));\n raf(() => {\n inputEl.value = valueText || context.get(\"inputValue\");\n });\n },\n syncSelectedItems(params) {\n queueMicrotask(() => {\n const { context, prop } = params;\n const collection2 = prop(\"collection\");\n const value = context.get(\"value\");\n const selectedItems = value.map((v) => {\n const item = context.get(\"selectedItems\").find((item2) => collection2.getItemValue(item2) === v);\n return item || collection2.find(v);\n });\n context.set(\"selectedItems\", selectedItems);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: collection2.stringifyMany(value),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n });\n },\n syncHighlightedItem({ context, prop }) {\n const item = prop(\"collection\").find(context.get(\"highlightedValue\"));\n context.set(\"highlightedItem\", item);\n },\n toggleVisibility({ event, send, prop }) {\n send({ type: prop(\"open\") ? \"CONTROLLED.OPEN\" : \"CONTROLLED.CLOSE\", previousEvent: event });\n }\n }\n }\n});\nfunction getOpenChangeReason(event) {\n return (event.previousEvent || event).src;\n}\nvar props = createProps()([\n \"allowCustomValue\",\n \"autoFocus\",\n \"closeOnSelect\",\n \"collection\",\n \"composite\",\n \"defaultHighlightedValue\",\n \"defaultInputValue\",\n \"defaultOpen\",\n \"defaultValue\",\n \"dir\",\n \"disabled\",\n \"disableLayer\",\n \"form\",\n \"getRootNode\",\n \"highlightedValue\",\n \"id\",\n \"ids\",\n \"inputBehavior\",\n \"inputValue\",\n \"invalid\",\n \"loopFocus\",\n \"multiple\",\n \"name\",\n \"navigate\",\n \"onFocusOutside\",\n \"onHighlightChange\",\n \"onInputValueChange\",\n \"onInteractOutside\",\n \"onOpenChange\",\n \"onOpenChange\",\n \"onPointerDownOutside\",\n \"onSelect\",\n \"onValueChange\",\n \"open\",\n \"openOnChange\",\n \"openOnClick\",\n \"openOnKeyPress\",\n \"placeholder\",\n \"positioning\",\n \"readOnly\",\n \"required\",\n \"scrollToIndexFn\",\n \"selectionBehavior\",\n \"translations\",\n \"value\"\n]);\nvar splitProps = createSplitProps(props);\nvar itemGroupLabelProps = createProps()([\"htmlFor\"]);\nvar splitItemGroupLabelProps = createSplitProps(itemGroupLabelProps);\nvar itemGroupProps = createProps()([\"id\"]);\nvar splitItemGroupProps = createSplitProps(itemGroupProps);\nvar itemProps = createProps()([\"item\", \"persistFocus\"]);\nvar splitItemProps = createSplitProps(itemProps);\n\nexport { anatomy, collection, connect, itemGroupLabelProps, itemGroupProps, itemProps, machine, props, splitItemGroupLabelProps, splitItemGroupProps, splitItemProps, splitProps };\n","'use client';\nimport { createAnatomy } from '@zag-js/anatomy';\n\nconst fieldsetAnatomy = createAnatomy(\"fieldset\").parts(\"root\", \"errorText\", \"helperText\", \"legend\");\nconst parts = fieldsetAnatomy.build();\n\nexport { fieldsetAnatomy, parts };\n","\"use strict\";\nimport { comboboxAnatomy as comboboxAnatomy$1 } from '@ark-ui/react';\nimport { accordionAnatomy as accordionAnatomy$1 } from '@ark-ui/react/accordion';\nimport { createAnatomy } from '@ark-ui/react/anatomy';\nimport { clipboardAnatomy as clipboardAnatomy$1 } from '@ark-ui/react/clipboard';\nimport { colorPickerAnatomy as colorPickerAnatomy$1 } from '@ark-ui/react/color-picker';\nimport { dialogAnatomy as dialogAnatomy$1 } from '@ark-ui/react/dialog';\nimport { editableAnatomy as editableAnatomy$1 } from '@ark-ui/react/editable';\nimport { fieldAnatomy as fieldAnatomy$1 } from '@ark-ui/react/field';\nimport { fieldsetAnatomy as fieldsetAnatomy$1 } from '@ark-ui/react/fieldset';\nimport { fileUploadAnatomy as fileUploadAnatomy$1 } from '@ark-ui/react/file-upload';\nimport { menuAnatomy as menuAnatomy$1 } from '@ark-ui/react/menu';\nimport { popoverAnatomy as popoverAnatomy$1 } from '@ark-ui/react/popover';\nimport { radioGroupAnatomy as radioGroupAnatomy$1 } from '@ark-ui/react/radio-group';\nimport { ratingGroupAnatomy as ratingGroupAnatomy$1 } from '@ark-ui/react/rating-group';\nimport { selectAnatomy as selectAnatomy$1 } from '@ark-ui/react/select';\nimport { sliderAnatomy as sliderAnatomy$1 } from '@ark-ui/react/slider';\nimport { switchAnatomy as switchAnatomy$1 } from '@ark-ui/react/switch';\nexport { treeViewAnatomy } from '@ark-ui/react/tree-view';\nexport { avatarAnatomy } from '@ark-ui/react/avatar';\nexport { checkboxAnatomy } from '@ark-ui/react/checkbox';\nexport { collapsibleAnatomy } from '@ark-ui/react/collapsible';\nexport { hoverCardAnatomy } from '@ark-ui/react/hover-card';\nexport { numberInputAnatomy } from '@ark-ui/react/number-input';\nexport { pinInputAnatomy } from '@ark-ui/react/pin-input';\nexport { progressAnatomy } from '@ark-ui/react/progress';\nexport { qrCodeAnatomy } from '@ark-ui/react/qr-code';\nexport { segmentGroupAnatomy } from '@ark-ui/react/segment-group';\nexport { tooltipAnatomy } from '@ark-ui/react/tooltip';\n\nconst accordionAnatomy = accordionAnatomy$1.extendWith(\"itemBody\");\nconst actionBarAnatomy = createAnatomy(\"action-bar\").parts(\n \"positioner\",\n \"content\",\n \"separator\",\n \"selectionTrigger\",\n \"closeTrigger\"\n);\nconst alertAnatomy = createAnatomy(\"alert\").parts(\n \"title\",\n \"description\",\n \"root\",\n \"indicator\",\n \"content\"\n);\nconst breadcrumbAnatomy = createAnatomy(\"breadcrumb\").parts(\n \"link\",\n \"currentLink\",\n \"item\",\n \"list\",\n \"root\",\n \"ellipsis\",\n \"separator\"\n);\nconst blockquoteAnatomy = createAnatomy(\"blockquote\").parts(\n \"root\",\n \"icon\",\n \"content\",\n \"caption\"\n);\nconst cardAnatomy = createAnatomy(\"card\").parts(\n \"root\",\n \"header\",\n \"body\",\n \"footer\",\n \"title\",\n \"description\"\n);\nconst checkboxCardAnatomy = createAnatomy(\"checkbox-card\", [\n \"root\",\n \"control\",\n \"label\",\n \"description\",\n \"addon\",\n \"indicator\",\n \"content\"\n]);\nconst dataListAnatomy = createAnatomy(\"data-list\").parts(\n \"root\",\n \"item\",\n \"itemLabel\",\n \"itemValue\"\n);\nconst dialogAnatomy = dialogAnatomy$1.extendWith(\n \"header\",\n \"body\",\n \"footer\",\n \"backdrop\"\n);\nconst drawerAnatomy = dialogAnatomy$1.extendWith(\n \"header\",\n \"body\",\n \"footer\",\n \"backdrop\"\n);\nconst editableAnatomy = editableAnatomy$1.extendWith(\"textarea\");\nconst emptyStateAnatomy = createAnatomy(\"empty-state\", [\n \"root\",\n \"content\",\n \"indicator\",\n \"title\",\n \"description\"\n]);\nconst fieldAnatomy = fieldAnatomy$1.extendWith(\"requiredIndicator\");\nconst fieldsetAnatomy = fieldsetAnatomy$1.extendWith(\"content\");\nconst fileUploadAnatomy = fileUploadAnatomy$1.extendWith(\n \"itemContent\",\n \"dropzoneContent\",\n \"fileText\"\n);\nconst listAnatomy = createAnatomy(\"list\").parts(\n \"root\",\n \"item\",\n \"indicator\"\n);\nconst menuAnatomy = menuAnatomy$1.extendWith(\"itemCommand\");\nconst nativeSelectAnatomy = createAnatomy(\"select\").parts(\n \"root\",\n \"field\",\n \"indicator\"\n);\nconst popoverAnatomy = popoverAnatomy$1.extendWith(\n \"header\",\n \"body\",\n \"footer\"\n);\nconst radioGroupAnatomy = radioGroupAnatomy$1.extendWith(\n \"itemAddon\",\n \"itemIndicator\"\n);\nconst radioCardAnatomy = radioGroupAnatomy.extendWith(\n \"itemContent\",\n \"itemDescription\"\n);\nconst ratingGroupAnatomy = ratingGroupAnatomy$1.extendWith(\"itemIndicator\");\nconst selectAnatomy = selectAnatomy$1.extendWith(\"indicatorGroup\");\nconst comboboxAnatomy = comboboxAnatomy$1.extendWith(\n \"indicatorGroup\",\n \"empty\"\n);\nconst sliderAnatomy = sliderAnatomy$1.extendWith(\"markerIndicator\");\nconst statAnatomy = createAnatomy(\"stat\").parts(\n \"root\",\n \"label\",\n \"helpText\",\n \"valueText\",\n \"valueUnit\",\n \"indicator\"\n);\nconst statusAnatomy = createAnatomy(\"status\").parts(\"root\", \"indicator\");\nconst stepsAnatomy = createAnatomy(\"steps\", [\n \"root\",\n \"list\",\n \"item\",\n \"trigger\",\n \"indicator\",\n \"separator\",\n \"content\",\n \"title\",\n \"description\",\n \"nextTrigger\",\n \"prevTrigger\",\n \"progress\"\n]);\nconst switchAnatomy = switchAnatomy$1.extendWith(\"indicator\");\nconst tableAnatomy = createAnatomy(\"table\").parts(\n \"root\",\n \"header\",\n \"body\",\n \"row\",\n \"columnHeader\",\n \"cell\",\n \"footer\",\n \"caption\"\n);\nconst toastAnatomy = createAnatomy(\"toast\").parts(\n \"root\",\n \"title\",\n \"description\",\n \"indicator\",\n \"closeTrigger\",\n \"actionTrigger\"\n);\nconst tabsAnatomy = createAnatomy(\"tabs\").parts(\n \"root\",\n \"trigger\",\n \"list\",\n \"content\",\n \"contentGroup\",\n \"indicator\"\n);\nconst tagAnatomy = createAnatomy(\"tag\").parts(\n \"root\",\n \"label\",\n \"closeTrigger\",\n \"startElement\",\n \"endElement\"\n);\nconst timelineAnatomy = createAnatomy(\"timeline\").parts(\n \"root\",\n \"item\",\n \"content\",\n \"separator\",\n \"indicator\",\n \"connector\",\n \"title\",\n \"description\"\n);\nconst colorPickerAnatomy = colorPickerAnatomy$1.extendWith(\"channelText\");\nconst codeBlockAnatomy = createAnatomy(\"code-block\", [\n \"root\",\n \"content\",\n \"title\",\n \"header\",\n \"footer\",\n \"control\",\n \"overlay\",\n \"code\",\n \"codeText\",\n \"copyTrigger\",\n \"copyIndicator\",\n \"collapseTrigger\",\n \"collapseIndicator\",\n \"collapseText\"\n]);\nconst clipboardAnatomy = clipboardAnatomy$1.extendWith(\"valueText\");\n\nexport { accordionAnatomy, actionBarAnatomy, alertAnatomy, blockquoteAnatomy, breadcrumbAnatomy, cardAnatomy, checkboxCardAnatomy, clipboardAnatomy, codeBlockAnatomy, colorPickerAnatomy, comboboxAnatomy, dataListAnatomy, dialogAnatomy, drawerAnatomy, editableAnatomy, emptyStateAnatomy, fieldAnatomy, fieldsetAnatomy, fileUploadAnatomy, listAnatomy, menuAnatomy, nativeSelectAnatomy, popoverAnatomy, radioCardAnatomy, radioGroupAnatomy, ratingGroupAnatomy, selectAnatomy, sliderAnatomy, statAnatomy, statusAnatomy, stepsAnatomy, switchAnatomy, tableAnatomy, tabsAnatomy, tagAnatomy, timelineAnatomy, toastAnatomy };\n"],"names":["anatomy","createAnatomy","createProps","fieldsetAnatomy","accordionAnatomy","accordionAnatomy$1","actionBarAnatomy","alertAnatomy","breadcrumbAnatomy","blockquoteAnatomy","cardAnatomy","checkboxCardAnatomy","dataListAnatomy","dialogAnatomy","dialogAnatomy$1","drawerAnatomy","editableAnatomy","editableAnatomy$1","emptyStateAnatomy","fieldAnatomy","fieldAnatomy$1","fieldsetAnatomy$1","fileUploadAnatomy","fileUploadAnatomy$1","listAnatomy","menuAnatomy","menuAnatomy$1","nativeSelectAnatomy","popoverAnatomy","popoverAnatomy$1","radioGroupAnatomy","radioGroupAnatomy$1","radioCardAnatomy","ratingGroupAnatomy","ratingGroupAnatomy$1","selectAnatomy","selectAnatomy$1","comboboxAnatomy","comboboxAnatomy$1","sliderAnatomy","sliderAnatomy$1","statAnatomy","statusAnatomy","stepsAnatomy","switchAnatomy","switchAnatomy$1","tableAnatomy","toastAnatomy","tabsAnatomy","tagAnatomy","timelineAnatomy","colorPickerAnatomy","colorPickerAnatomy$1","codeBlockAnatomy","clipboardAnatomy$1"],"mappings":"mZAWA,IAAIA,EAAUC,EAAAA,cAAc,UAAU,EAAE,MACtC,OACA,eACA,UACA,UACA,QACA,OACA,YACA,iBACA,gBACA,WACA,QACA,OACA,aACA,SACF,EACYD,EAAQ,MAAK,EAw7CbE,EAAAA,cAAc,CACxB,mBACA,YACA,gBACA,aACA,YACA,0BACA,oBACA,cACA,eACA,MACA,WACA,eACA,OACA,cACA,mBACA,KACA,MACA,gBACA,aACA,UACA,YACA,WACA,OACA,WACA,iBACA,oBACA,qBACA,oBACA,eACA,eACA,uBACA,WACA,gBACA,OACA,eACA,cACA,iBACA,cACA,cACA,WACA,WACA,kBACA,oBACA,eACA,OACF,CAAC,EAEyBA,EAAAA,YAAa,EAAC,CAAC,SAAS,CAAC,EAE9BA,EAAAA,YAAa,EAAC,CAAC,IAAI,CAAC,EAEzBA,EAAAA,cAAc,CAAC,OAAQ,cAAc,CAAC,ECpgDtD,MAAMC,EAAkBF,EAAAA,cAAc,UAAU,EAAE,MAAM,OAAQ,YAAa,aAAc,QAAQ,EACrFE,EAAgB,MAAK,EC0B9B,MAACC,EAAmBC,EAAAA,QAAmB,WAAW,UAAU,EAC3DC,EAAmBL,EAAAA,cAAc,YAAY,EAAE,MACnD,aACA,UACA,YACA,mBACA,cACF,EACMM,EAAeN,EAAAA,cAAc,OAAO,EAAE,MAC1C,QACA,cACA,OACA,YACA,SACF,EACMO,EAAoBP,EAAAA,cAAc,YAAY,EAAE,MACpD,OACA,cACA,OACA,OACA,OACA,WACA,WACF,EACMQ,EAAoBR,EAAAA,cAAc,YAAY,EAAE,MACpD,OACA,OACA,UACA,SACF,EACMS,EAAcT,EAAAA,cAAc,MAAM,EAAE,MACxC,OACA,SACA,OACA,SACA,QACA,aACF,EACMU,EAAsBV,EAAa,cAAC,gBAAiB,CACzD,OACA,UACA,QACA,cACA,QACA,YACA,SACF,CAAC,EACKW,EAAkBX,EAAAA,cAAc,WAAW,EAAE,MACjD,OACA,OACA,YACA,WACF,EACMY,EAAgBC,EAAe,QAAC,WACpC,SACA,OACA,SACA,UACF,EACMC,EAAgBD,EAAe,QAAC,WACpC,SACA,OACA,SACA,UACF,EACME,EAAkBC,EAAAA,UAAkB,WAAW,UAAU,EACzDC,EAAoBjB,EAAa,cAAC,cAAe,CACrD,OACA,UACA,YACA,QACA,aACF,CAAC,EACKkB,EAAeC,EAAAA,aAAe,WAAW,mBAAmB,EAC5DjB,EAAkBkB,EAAkB,WAAW,SAAS,EACxDC,EAAoBC,EAAmB,UAAC,WAC5C,cACA,kBACA,UACF,EACMC,EAAcvB,EAAAA,cAAc,MAAM,EAAE,MACxC,OACA,OACA,WACF,EACMwB,EAAcC,EAAAA,QAAc,WAAW,aAAa,EACpDC,EAAsB1B,EAAAA,cAAc,QAAQ,EAAE,MAClD,OACA,QACA,WACF,EACM2B,EAAiBC,EAAgB,QAAC,WACtC,SACA,OACA,QACF,EACMC,EAAoBC,EAAmB,QAAC,WAC5C,YACA,eACF,EACMC,EAAmBF,EAAkB,WACzC,cACA,iBACF,EACMG,EAAqBC,EAAAA,QAAqB,WAAW,eAAe,EACpEC,EAAgBC,EAAAA,QAAgB,WAAW,gBAAgB,EAC3DC,EAAkBC,EAAkB,WACxC,iBACA,OACF,EACMC,EAAgBC,EAAAA,UAAgB,WAAW,iBAAiB,EAC5DC,EAAcxC,EAAAA,cAAc,MAAM,EAAE,MACxC,OACA,QACA,WACA,YACA,YACA,WACF,EACMyC,EAAgBzC,EAAAA,cAAc,QAAQ,EAAE,MAAM,OAAQ,WAAW,EACjE0C,EAAe1C,EAAa,cAAC,QAAS,CAC1C,OACA,OACA,OACA,UACA,YACA,YACA,UACA,QACA,cACA,cACA,cACA,UACF,CAAC,EACK2C,EAAgBC,EAAAA,QAAgB,WAAW,WAAW,EACtDC,EAAe7C,EAAAA,cAAc,OAAO,EAAE,MAC1C,OACA,SACA,OACA,MACA,eACA,OACA,SACA,SACF,EACM8C,EAAe9C,EAAAA,cAAc,OAAO,EAAE,MAC1C,OACA,QACA,cACA,YACA,eACA,eACF,EACM+C,EAAc/C,EAAAA,cAAc,MAAM,EAAE,MACxC,OACA,UACA,OACA,UACA,eACA,WACF,EACMgD,EAAahD,EAAAA,cAAc,KAAK,EAAE,MACtC,OACA,QACA,eACA,eACA,YACF,EACMiD,EAAkBjD,EAAAA,cAAc,UAAU,EAAE,MAChD,OACA,OACA,UACA,YACA,YACA,YACA,QACA,aACF,EACMkD,EAAqBC,EAAAA,mBAAqB,WAAW,aAAa,EAClEC,EAAmBpD,EAAa,cAAC,aAAc,CACnD,OACA,UACA,QACA,SACA,SACA,UACA,UACA,OACA,WACA,cACA,gBACA,kBACA,oBACA,cACF,CAAC,EACwBqD,EAAkB,UAAC,WAAW,WAAW","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"anatomy-B0LtI6sf.js","sources":["../../node_modules/@zag-js/combobox/dist/index.mjs","../../node_modules/@ark-ui/react/dist/components/fieldset/fieldset.anatomy.js","../../node_modules/@chakra-ui/react/dist/esm/anatomy.js"],"sourcesContent":["import { createAnatomy } from '@zag-js/anatomy';\nimport { ListCollection } from '@zag-js/collection';\nimport { raf, setCaretToEnd, nextTick, scrollIntoView, observeAttributes, clickIfLink, query, dataAttr, ariaAttr, isDownloadingEvent, isOpeningInNewTab, isContextMenuEvent, isLeftClick, getEventKey, isComposingEvent, isAnchorElement } from '@zag-js/dom-query';\nimport { getPlacement, getPlacementStyles } from '@zag-js/popper';\nimport { match, remove, addOrRemove, isBoolean, isEqual, createSplitProps, ensure } from '@zag-js/utils';\nimport { ariaHidden } from '@zag-js/aria-hidden';\nimport { setup } from '@zag-js/core';\nimport { trackDismissableElement } from '@zag-js/dismissable';\nimport { createProps } from '@zag-js/types';\n\n// src/combobox.anatomy.ts\nvar anatomy = createAnatomy(\"combobox\").parts(\n \"root\",\n \"clearTrigger\",\n \"content\",\n \"control\",\n \"input\",\n \"item\",\n \"itemGroup\",\n \"itemGroupLabel\",\n \"itemIndicator\",\n \"itemText\",\n \"label\",\n \"list\",\n \"positioner\",\n \"trigger\"\n);\nvar parts = anatomy.build();\nvar collection = (options) => {\n return new ListCollection(options);\n};\ncollection.empty = () => {\n return new ListCollection({ items: [] });\n};\nvar getRootId = (ctx) => ctx.ids?.root ?? `combobox:${ctx.id}`;\nvar getLabelId = (ctx) => ctx.ids?.label ?? `combobox:${ctx.id}:label`;\nvar getControlId = (ctx) => ctx.ids?.control ?? `combobox:${ctx.id}:control`;\nvar getInputId = (ctx) => ctx.ids?.input ?? `combobox:${ctx.id}:input`;\nvar getContentId = (ctx) => ctx.ids?.content ?? `combobox:${ctx.id}:content`;\nvar getPositionerId = (ctx) => ctx.ids?.positioner ?? `combobox:${ctx.id}:popper`;\nvar getTriggerId = (ctx) => ctx.ids?.trigger ?? `combobox:${ctx.id}:toggle-btn`;\nvar getClearTriggerId = (ctx) => ctx.ids?.clearTrigger ?? `combobox:${ctx.id}:clear-btn`;\nvar getItemGroupId = (ctx, id) => ctx.ids?.itemGroup?.(id) ?? `combobox:${ctx.id}:optgroup:${id}`;\nvar getItemGroupLabelId = (ctx, id) => ctx.ids?.itemGroupLabel?.(id) ?? `combobox:${ctx.id}:optgroup-label:${id}`;\nvar getItemId = (ctx, id) => ctx.ids?.item?.(id) ?? `combobox:${ctx.id}:option:${id}`;\nvar getContentEl = (ctx) => ctx.getById(getContentId(ctx));\nvar getInputEl = (ctx) => ctx.getById(getInputId(ctx));\nvar getPositionerEl = (ctx) => ctx.getById(getPositionerId(ctx));\nvar getControlEl = (ctx) => ctx.getById(getControlId(ctx));\nvar getTriggerEl = (ctx) => ctx.getById(getTriggerId(ctx));\nvar getClearTriggerEl = (ctx) => ctx.getById(getClearTriggerId(ctx));\nvar getItemEl = (ctx, value) => {\n if (value == null) return;\n const selector = `[role=option][data-value=\"${CSS.escape(value)}\"]`;\n return query(getContentEl(ctx), selector);\n};\nvar focusInputEl = (ctx) => {\n const inputEl = getInputEl(ctx);\n if (ctx.isActiveElement(inputEl)) return;\n inputEl?.focus({ preventScroll: true });\n};\nvar focusTriggerEl = (ctx) => {\n const triggerEl = getTriggerEl(ctx);\n if (ctx.isActiveElement(triggerEl)) return;\n triggerEl?.focus({ preventScroll: true });\n};\n\n// src/combobox.connect.ts\nfunction connect(service, normalize) {\n const { context, prop, state, send, scope, computed, event } = service;\n const translations = prop(\"translations\");\n const collection2 = prop(\"collection\");\n const disabled = prop(\"disabled\");\n const interactive = computed(\"isInteractive\");\n const invalid = prop(\"invalid\");\n const readOnly = prop(\"readOnly\");\n const open = state.hasTag(\"open\");\n const focused = state.hasTag(\"focused\");\n const composite = prop(\"composite\");\n const highlightedValue = context.get(\"highlightedValue\");\n const popperStyles = getPlacementStyles({\n ...prop(\"positioning\"),\n placement: context.get(\"currentPlacement\")\n });\n function getItemState(props2) {\n const disabled2 = collection2.getItemDisabled(props2.item);\n const value = collection2.getItemValue(props2.item);\n ensure(value, () => `[zag-js] No value found for item ${JSON.stringify(props2.item)}`);\n return {\n value,\n disabled: Boolean(disabled2 || disabled2),\n highlighted: highlightedValue === value,\n selected: context.get(\"value\").includes(value)\n };\n }\n return {\n focused,\n open,\n inputValue: context.get(\"inputValue\"),\n highlightedValue,\n highlightedItem: context.get(\"highlightedItem\"),\n value: context.get(\"value\"),\n valueAsString: computed(\"valueAsString\"),\n hasSelectedItems: computed(\"hasSelectedItems\"),\n selectedItems: context.get(\"selectedItems\"),\n collection: prop(\"collection\"),\n multiple: !!prop(\"multiple\"),\n disabled: !!disabled,\n syncSelectedItems() {\n send({ type: \"SELECTED_ITEMS.SYNC\" });\n },\n reposition(options = {}) {\n send({ type: \"POSITIONING.SET\", options });\n },\n setHighlightValue(value) {\n send({ type: \"HIGHLIGHTED_VALUE.SET\", value });\n },\n clearHighlightValue() {\n send({ type: \"HIGHLIGHTED_VALUE.CLEAR\" });\n },\n selectValue(value) {\n send({ type: \"ITEM.SELECT\", value });\n },\n setValue(value) {\n send({ type: \"VALUE.SET\", value });\n },\n setInputValue(value, reason = \"script\") {\n send({ type: \"INPUT_VALUE.SET\", value, src: reason });\n },\n clearValue(value) {\n if (value != null) {\n send({ type: \"ITEM.CLEAR\", value });\n } else {\n send({ type: \"VALUE.CLEAR\" });\n }\n },\n focus() {\n getInputEl(scope)?.focus();\n },\n setOpen(nextOpen, reason = \"script\") {\n const open2 = state.hasTag(\"open\");\n if (open2 === nextOpen) return;\n send({ type: nextOpen ? \"OPEN\" : \"CLOSE\", src: reason });\n },\n getRootProps() {\n return normalize.element({\n ...parts.root.attrs,\n dir: prop(\"dir\"),\n id: getRootId(scope),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly)\n });\n },\n getLabelProps() {\n return normalize.label({\n ...parts.label.attrs,\n dir: prop(\"dir\"),\n htmlFor: getInputId(scope),\n id: getLabelId(scope),\n \"data-readonly\": dataAttr(readOnly),\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-focus\": dataAttr(focused),\n onClick(event2) {\n if (composite) return;\n event2.preventDefault();\n getTriggerEl(scope)?.focus({ preventScroll: true });\n }\n });\n },\n getControlProps() {\n return normalize.element({\n ...parts.control.attrs,\n dir: prop(\"dir\"),\n id: getControlId(scope),\n \"data-state\": open ? \"open\" : \"closed\",\n \"data-focus\": dataAttr(focused),\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid)\n });\n },\n getPositionerProps() {\n return normalize.element({\n ...parts.positioner.attrs,\n dir: prop(\"dir\"),\n id: getPositionerId(scope),\n style: popperStyles.floating\n });\n },\n getInputProps() {\n return normalize.input({\n ...parts.input.attrs,\n dir: prop(\"dir\"),\n \"aria-invalid\": ariaAttr(invalid),\n \"data-invalid\": dataAttr(invalid),\n \"data-autofocus\": dataAttr(prop(\"autoFocus\")),\n name: prop(\"name\"),\n form: prop(\"form\"),\n disabled,\n required: prop(\"required\"),\n autoComplete: \"off\",\n autoCorrect: \"off\",\n autoCapitalize: \"none\",\n spellCheck: \"false\",\n readOnly,\n placeholder: prop(\"placeholder\"),\n id: getInputId(scope),\n type: \"text\",\n role: \"combobox\",\n defaultValue: context.get(\"inputValue\"),\n \"aria-autocomplete\": computed(\"autoComplete\") ? \"both\" : \"list\",\n \"aria-controls\": getContentId(scope),\n \"aria-expanded\": open,\n \"data-state\": open ? \"open\" : \"closed\",\n \"aria-activedescendant\": highlightedValue ? getItemId(scope, highlightedValue) : void 0,\n onClick(event2) {\n if (event2.defaultPrevented) return;\n if (!prop(\"openOnClick\")) return;\n if (!interactive) return;\n send({ type: \"INPUT.CLICK\", src: \"input-click\" });\n },\n onFocus() {\n if (disabled) return;\n send({ type: \"INPUT.FOCUS\" });\n },\n onBlur() {\n if (disabled) return;\n send({ type: \"INPUT.BLUR\" });\n },\n onChange(event2) {\n send({ type: \"INPUT.CHANGE\", value: event2.currentTarget.value, src: \"input-change\" });\n },\n onKeyDown(event2) {\n if (event2.defaultPrevented) return;\n if (!interactive) return;\n if (event2.ctrlKey || event2.shiftKey || isComposingEvent(event2)) return;\n const openOnKeyPress = prop(\"openOnKeyPress\");\n const isModifierKey = event2.ctrlKey || event2.metaKey || event2.shiftKey;\n const keypress = true;\n const keymap = {\n ArrowDown(event3) {\n if (!openOnKeyPress && !open) return;\n send({ type: event3.altKey ? \"OPEN\" : \"INPUT.ARROW_DOWN\", keypress, src: \"arrow-key\" });\n event3.preventDefault();\n },\n ArrowUp() {\n if (!openOnKeyPress && !open) return;\n send({ type: event2.altKey ? \"CLOSE\" : \"INPUT.ARROW_UP\", keypress, src: \"arrow-key\" });\n event2.preventDefault();\n },\n Home(event3) {\n if (isModifierKey) return;\n send({ type: \"INPUT.HOME\", keypress });\n if (open) {\n event3.preventDefault();\n }\n },\n End(event3) {\n if (isModifierKey) return;\n send({ type: \"INPUT.END\", keypress });\n if (open) {\n event3.preventDefault();\n }\n },\n Enter(event3) {\n send({ type: \"INPUT.ENTER\", keypress, src: \"item-select\" });\n const submittable = computed(\"isCustomValue\") && prop(\"allowCustomValue\");\n if (open && !submittable) {\n event3.preventDefault();\n }\n if (highlightedValue == null) return;\n const itemEl = getItemEl(scope, highlightedValue);\n if (isAnchorElement(itemEl)) {\n prop(\"navigate\")?.({ value: highlightedValue, node: itemEl, href: itemEl.href });\n }\n },\n Escape() {\n send({ type: \"INPUT.ESCAPE\", keypress, src: \"escape-key\" });\n event2.preventDefault();\n }\n };\n const key = getEventKey(event2, { dir: prop(\"dir\") });\n const exec = keymap[key];\n exec?.(event2);\n }\n });\n },\n getTriggerProps(props2 = {}) {\n return normalize.button({\n ...parts.trigger.attrs,\n dir: prop(\"dir\"),\n id: getTriggerId(scope),\n \"aria-haspopup\": composite ? \"listbox\" : \"dialog\",\n type: \"button\",\n tabIndex: props2.focusable ? void 0 : -1,\n \"aria-label\": translations.triggerLabel,\n \"aria-expanded\": open,\n \"data-state\": open ? \"open\" : \"closed\",\n \"aria-controls\": open ? getContentId(scope) : void 0,\n disabled,\n \"data-invalid\": dataAttr(invalid),\n \"data-focusable\": dataAttr(props2.focusable),\n \"data-readonly\": dataAttr(readOnly),\n \"data-disabled\": dataAttr(disabled),\n onFocus() {\n if (!props2.focusable) return;\n send({ type: \"INPUT.FOCUS\", src: \"trigger\" });\n },\n onClick(event2) {\n if (event2.defaultPrevented) return;\n if (!interactive) return;\n if (!isLeftClick(event2)) return;\n send({ type: \"TRIGGER.CLICK\", src: \"trigger-click\" });\n },\n onPointerDown(event2) {\n if (!interactive) return;\n if (event2.pointerType === \"touch\") return;\n if (!isLeftClick(event2)) return;\n event2.preventDefault();\n queueMicrotask(() => {\n getInputEl(scope)?.focus({ preventScroll: true });\n });\n },\n onKeyDown(event2) {\n if (event2.defaultPrevented) return;\n if (composite) return;\n const keyMap = {\n ArrowDown() {\n send({ type: \"INPUT.ARROW_DOWN\", src: \"arrow-key\" });\n },\n ArrowUp() {\n send({ type: \"INPUT.ARROW_UP\", src: \"arrow-key\" });\n }\n };\n const key = getEventKey(event2, { dir: prop(\"dir\") });\n const exec = keyMap[key];\n if (exec) {\n exec(event2);\n event2.preventDefault();\n }\n }\n });\n },\n getContentProps() {\n return normalize.element({\n ...parts.content.attrs,\n dir: prop(\"dir\"),\n id: getContentId(scope),\n role: !composite ? \"dialog\" : \"listbox\",\n tabIndex: -1,\n hidden: !open,\n \"data-state\": open ? \"open\" : \"closed\",\n \"data-placement\": context.get(\"currentPlacement\"),\n \"aria-labelledby\": getLabelId(scope),\n \"aria-multiselectable\": prop(\"multiple\") && composite ? true : void 0,\n \"data-empty\": dataAttr(collection2.size === 0),\n onPointerDown(event2) {\n if (!isLeftClick(event2)) return;\n event2.preventDefault();\n }\n });\n },\n getListProps() {\n return normalize.element({\n ...parts.list.attrs,\n role: !composite ? \"listbox\" : void 0,\n \"data-empty\": dataAttr(collection2.size === 0),\n \"aria-labelledby\": getLabelId(scope),\n \"aria-multiselectable\": prop(\"multiple\") && !composite ? true : void 0\n });\n },\n getClearTriggerProps() {\n return normalize.button({\n ...parts.clearTrigger.attrs,\n dir: prop(\"dir\"),\n id: getClearTriggerId(scope),\n type: \"button\",\n tabIndex: -1,\n disabled,\n \"data-invalid\": dataAttr(invalid),\n \"aria-label\": translations.clearTriggerLabel,\n \"aria-controls\": getInputId(scope),\n hidden: !context.get(\"value\").length,\n onPointerDown(event2) {\n if (!isLeftClick(event2)) return;\n event2.preventDefault();\n },\n onClick(event2) {\n if (event2.defaultPrevented) return;\n if (!interactive) return;\n send({ type: \"VALUE.CLEAR\", src: \"clear-trigger\" });\n }\n });\n },\n getItemState,\n getItemProps(props2) {\n const itemState = getItemState(props2);\n const value = itemState.value;\n return normalize.element({\n ...parts.item.attrs,\n dir: prop(\"dir\"),\n id: getItemId(scope, value),\n role: \"option\",\n tabIndex: -1,\n \"data-highlighted\": dataAttr(itemState.highlighted),\n \"data-state\": itemState.selected ? \"checked\" : \"unchecked\",\n \"aria-selected\": ariaAttr(itemState.highlighted),\n \"aria-disabled\": ariaAttr(itemState.disabled),\n \"data-disabled\": dataAttr(itemState.disabled),\n \"data-value\": itemState.value,\n onPointerMove() {\n if (itemState.disabled) return;\n if (itemState.highlighted) return;\n send({ type: \"ITEM.POINTER_MOVE\", value });\n },\n onPointerLeave() {\n if (props2.persistFocus) return;\n if (itemState.disabled) return;\n const prev = event.previous();\n const mouseMoved = prev?.type.includes(\"POINTER\");\n if (!mouseMoved) return;\n send({ type: \"ITEM.POINTER_LEAVE\", value });\n },\n onClick(event2) {\n if (isDownloadingEvent(event2)) return;\n if (isOpeningInNewTab(event2)) return;\n if (isContextMenuEvent(event2)) return;\n if (itemState.disabled) return;\n send({ type: \"ITEM.CLICK\", src: \"item-select\", value });\n }\n });\n },\n getItemTextProps(props2) {\n const itemState = getItemState(props2);\n return normalize.element({\n ...parts.itemText.attrs,\n dir: prop(\"dir\"),\n \"data-state\": itemState.selected ? \"checked\" : \"unchecked\",\n \"data-disabled\": dataAttr(itemState.disabled),\n \"data-highlighted\": dataAttr(itemState.highlighted)\n });\n },\n getItemIndicatorProps(props2) {\n const itemState = getItemState(props2);\n return normalize.element({\n \"aria-hidden\": true,\n ...parts.itemIndicator.attrs,\n dir: prop(\"dir\"),\n \"data-state\": itemState.selected ? \"checked\" : \"unchecked\",\n hidden: !itemState.selected\n });\n },\n getItemGroupProps(props2) {\n const { id } = props2;\n return normalize.element({\n ...parts.itemGroup.attrs,\n dir: prop(\"dir\"),\n id: getItemGroupId(scope, id),\n \"aria-labelledby\": getItemGroupLabelId(scope, id),\n \"data-empty\": dataAttr(collection2.size === 0),\n role: \"group\"\n });\n },\n getItemGroupLabelProps(props2) {\n const { htmlFor } = props2;\n return normalize.element({\n ...parts.itemGroupLabel.attrs,\n dir: prop(\"dir\"),\n id: getItemGroupLabelId(scope, htmlFor),\n role: \"presentation\"\n });\n }\n };\n}\nvar { guards, createMachine, choose } = setup();\nvar { and, not } = guards;\nvar machine = createMachine({\n props({ props: props2 }) {\n return {\n loopFocus: true,\n openOnClick: false,\n defaultValue: [],\n closeOnSelect: !props2.multiple,\n allowCustomValue: false,\n inputBehavior: \"none\",\n selectionBehavior: props2.multiple ? \"clear\" : \"replace\",\n openOnKeyPress: true,\n openOnChange: true,\n composite: true,\n navigate({ node }) {\n clickIfLink(node);\n },\n collection: collection.empty(),\n ...props2,\n positioning: {\n placement: \"bottom\",\n sameWidth: true,\n ...props2.positioning\n },\n translations: {\n triggerLabel: \"Toggle suggestions\",\n clearTriggerLabel: \"Clear value\",\n ...props2.translations\n }\n };\n },\n initialState({ prop }) {\n const open = prop(\"open\") || prop(\"defaultOpen\");\n return open ? \"suggesting\" : \"idle\";\n },\n context({ prop, bindable, getContext, getEvent }) {\n return {\n currentPlacement: bindable(() => ({\n defaultValue: void 0\n })),\n value: bindable(() => ({\n defaultValue: prop(\"defaultValue\"),\n value: prop(\"value\"),\n isEqual,\n hash(value) {\n return value.join(\",\");\n },\n onChange(value) {\n const context = getContext();\n const prevSelectedItems = context.get(\"selectedItems\");\n const collection2 = prop(\"collection\");\n const nextItems = value.map((v) => {\n const item = prevSelectedItems.find((item2) => collection2.getItemValue(item2) === v);\n return item || collection2.find(v);\n });\n context.set(\"selectedItems\", nextItems);\n prop(\"onValueChange\")?.({ value, items: nextItems });\n }\n })),\n highlightedValue: bindable(() => ({\n defaultValue: prop(\"defaultHighlightedValue\") || null,\n value: prop(\"highlightedValue\"),\n onChange(value) {\n const item = prop(\"collection\").find(value);\n prop(\"onHighlightChange\")?.({ highlightedValue: value, highlightedItem: item });\n }\n })),\n inputValue: bindable(() => {\n let inputValue = prop(\"inputValue\") || prop(\"defaultInputValue\") || \"\";\n const value = prop(\"defaultValue\") || prop(\"value\") || [];\n if (!inputValue.trim() && !prop(\"multiple\")) {\n const valueAsString = prop(\"collection\").stringifyMany(value);\n inputValue = match(prop(\"selectionBehavior\"), {\n preserve: inputValue || valueAsString,\n replace: valueAsString,\n clear: \"\"\n });\n }\n return {\n defaultValue: inputValue,\n value: prop(\"inputValue\"),\n onChange(value2) {\n const event = getEvent();\n const reason = (event.previousEvent || event).src;\n prop(\"onInputValueChange\")?.({ inputValue: value2, reason });\n }\n };\n }),\n highlightedItem: bindable(() => {\n const highlightedValue = prop(\"highlightedValue\");\n const highlightedItem = prop(\"collection\").find(highlightedValue);\n return { defaultValue: highlightedItem };\n }),\n selectedItems: bindable(() => {\n const value = prop(\"value\") || prop(\"defaultValue\") || [];\n const selectedItems = prop(\"collection\").findMany(value);\n return { defaultValue: selectedItems };\n })\n };\n },\n computed: {\n isInputValueEmpty: ({ context }) => context.get(\"inputValue\").length === 0,\n isInteractive: ({ prop }) => !(prop(\"readOnly\") || prop(\"disabled\")),\n autoComplete: ({ prop }) => prop(\"inputBehavior\") === \"autocomplete\",\n autoHighlight: ({ prop }) => prop(\"inputBehavior\") === \"autohighlight\",\n hasSelectedItems: ({ context }) => context.get(\"value\").length > 0,\n valueAsString: ({ context, prop }) => prop(\"collection\").stringifyItems(context.get(\"selectedItems\")),\n isCustomValue: ({ context, computed }) => context.get(\"inputValue\") !== computed(\"valueAsString\")\n },\n watch({ context, prop, track, action, send }) {\n track([() => context.hash(\"value\")], () => {\n action([\"syncSelectedItems\"]);\n });\n track([() => context.get(\"inputValue\")], () => {\n action([\"syncInputValue\"]);\n });\n track([() => context.get(\"highlightedValue\")], () => {\n action([\"syncHighlightedItem\", \"autofillInputValue\"]);\n });\n track([() => prop(\"open\")], () => {\n action([\"toggleVisibility\"]);\n });\n track([() => prop(\"collection\").toString()], () => {\n send({ type: \"CHILDREN_CHANGE\" });\n });\n },\n on: {\n \"SELECTED_ITEMS.SYNC\": {\n actions: [\"syncSelectedItems\"]\n },\n \"HIGHLIGHTED_VALUE.SET\": {\n actions: [\"setHighlightedValue\"]\n },\n \"HIGHLIGHTED_VALUE.CLEAR\": {\n actions: [\"clearHighlightedValue\"]\n },\n \"ITEM.SELECT\": {\n actions: [\"selectItem\"]\n },\n \"ITEM.CLEAR\": {\n actions: [\"clearItem\"]\n },\n \"VALUE.SET\": {\n actions: [\"setValue\"]\n },\n \"INPUT_VALUE.SET\": {\n actions: [\"setInputValue\"]\n },\n \"POSITIONING.SET\": {\n actions: [\"reposition\"]\n }\n },\n entry: choose([\n {\n guard: \"autoFocus\",\n actions: [\"setInitialFocus\"]\n }\n ]),\n states: {\n idle: {\n tags: [\"idle\", \"closed\"],\n entry: [\"scrollContentToTop\", \"clearHighlightedValue\"],\n on: {\n \"CONTROLLED.OPEN\": {\n target: \"interacting\"\n },\n \"TRIGGER.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"setInitialFocus\", \"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"setInitialFocus\", \"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n \"INPUT.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n \"INPUT.FOCUS\": {\n target: \"focused\"\n },\n OPEN: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"invokeOnOpen\"]\n }\n ],\n \"VALUE.CLEAR\": {\n target: \"focused\",\n actions: [\"clearInputValue\", \"clearSelectedItems\", \"setInitialFocus\"]\n }\n }\n },\n focused: {\n tags: [\"focused\", \"closed\"],\n entry: [\"scrollContentToTop\", \"clearHighlightedValue\"],\n on: {\n \"CONTROLLED.OPEN\": [\n {\n guard: \"isChangeEvent\",\n target: \"suggesting\"\n },\n {\n target: \"interacting\"\n }\n ],\n \"INPUT.CHANGE\": [\n {\n guard: and(\"isOpenControlled\", \"openOnChange\"),\n actions: [\"setInputValue\", \"invokeOnOpen\", \"highlightFirstItemIfNeeded\"]\n },\n {\n guard: \"openOnChange\",\n target: \"suggesting\",\n actions: [\"setInputValue\", \"invokeOnOpen\", \"highlightFirstItemIfNeeded\"]\n },\n {\n actions: [\"setInputValue\"]\n }\n ],\n \"LAYER.INTERACT_OUTSIDE\": {\n target: \"idle\"\n },\n \"INPUT.ESCAPE\": {\n guard: and(\"isCustomValue\", not(\"allowCustomValue\")),\n actions: [\"revertInputValue\"]\n },\n \"INPUT.BLUR\": {\n target: \"idle\"\n },\n \"INPUT.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n \"TRIGGER.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"setInitialFocus\", \"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"setInitialFocus\", \"highlightFirstSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n \"INPUT.ARROW_DOWN\": [\n // == group 1 ==\n {\n guard: and(\"isOpenControlled\", \"autoComplete\"),\n actions: [\"invokeOnOpen\"]\n },\n {\n guard: \"autoComplete\",\n target: \"interacting\",\n actions: [\"invokeOnOpen\"]\n },\n // == group 2 ==\n {\n guard: \"isOpenControlled\",\n actions: [\"highlightFirstOrSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"highlightFirstOrSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n \"INPUT.ARROW_UP\": [\n // == group 1 ==\n {\n guard: \"autoComplete\",\n target: \"interacting\",\n actions: [\"invokeOnOpen\"]\n },\n {\n guard: \"autoComplete\",\n target: \"interacting\",\n actions: [\"invokeOnOpen\"]\n },\n // == group 2 ==\n {\n target: \"interacting\",\n actions: [\"highlightLastOrSelectedItem\", \"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"highlightLastOrSelectedItem\", \"invokeOnOpen\"]\n }\n ],\n OPEN: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnOpen\"]\n },\n {\n target: \"interacting\",\n actions: [\"invokeOnOpen\"]\n }\n ],\n \"VALUE.CLEAR\": {\n actions: [\"clearInputValue\", \"clearSelectedItems\"]\n }\n }\n },\n interacting: {\n tags: [\"open\", \"focused\"],\n entry: [\"setInitialFocus\"],\n effects: [\"scrollToHighlightedItem\", \"trackDismissableLayer\", \"trackPlacement\", \"hideOtherElements\"],\n on: {\n \"CONTROLLED.CLOSE\": [\n {\n guard: \"restoreFocus\",\n target: \"focused\",\n actions: [\"setFinalFocus\"]\n },\n {\n target: \"idle\"\n }\n ],\n CHILDREN_CHANGE: [\n {\n guard: \"isHighlightedItemRemoved\",\n actions: [\"clearHighlightedValue\"]\n },\n {\n actions: [\"scrollToHighlightedItem\"]\n }\n ],\n \"INPUT.HOME\": {\n actions: [\"highlightFirstItem\"]\n },\n \"INPUT.END\": {\n actions: [\"highlightLastItem\"]\n },\n \"INPUT.ARROW_DOWN\": [\n {\n guard: and(\"autoComplete\", \"isLastItemHighlighted\"),\n actions: [\"clearHighlightedValue\", \"scrollContentToTop\"]\n },\n {\n actions: [\"highlightNextItem\"]\n }\n ],\n \"INPUT.ARROW_UP\": [\n {\n guard: and(\"autoComplete\", \"isFirstItemHighlighted\"),\n actions: [\"clearHighlightedValue\"]\n },\n {\n actions: [\"highlightPrevItem\"]\n }\n ],\n \"INPUT.ENTER\": [\n // == group 1 ==\n {\n guard: and(\"isOpenControlled\", \"isCustomValue\", not(\"hasHighlightedItem\"), not(\"allowCustomValue\")),\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n {\n guard: and(\"isCustomValue\", not(\"hasHighlightedItem\"), not(\"allowCustomValue\")),\n target: \"focused\",\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n // == group 2 ==\n {\n guard: and(\"isOpenControlled\", \"closeOnSelect\"),\n actions: [\"selectHighlightedItem\", \"invokeOnClose\"]\n },\n {\n guard: \"closeOnSelect\",\n target: \"focused\",\n actions: [\"selectHighlightedItem\", \"invokeOnClose\", \"setFinalFocus\"]\n },\n {\n actions: [\"selectHighlightedItem\"]\n }\n ],\n \"INPUT.CHANGE\": [\n {\n guard: \"autoComplete\",\n target: \"suggesting\",\n actions: [\"setInputValue\"]\n },\n {\n target: \"suggesting\",\n actions: [\"clearHighlightedValue\", \"setInputValue\"]\n }\n ],\n \"ITEM.POINTER_MOVE\": {\n actions: [\"setHighlightedValue\"]\n },\n \"ITEM.POINTER_LEAVE\": {\n actions: [\"clearHighlightedValue\"]\n },\n \"ITEM.CLICK\": [\n {\n guard: and(\"isOpenControlled\", \"closeOnSelect\"),\n actions: [\"selectItem\", \"invokeOnClose\"]\n },\n {\n guard: \"closeOnSelect\",\n target: \"focused\",\n actions: [\"selectItem\", \"invokeOnClose\", \"setFinalFocus\"]\n },\n {\n actions: [\"selectItem\"]\n }\n ],\n \"LAYER.ESCAPE\": [\n {\n guard: and(\"isOpenControlled\", \"autoComplete\"),\n actions: [\"syncInputValue\", \"invokeOnClose\"]\n },\n {\n guard: \"autoComplete\",\n target: \"focused\",\n actions: [\"syncInputValue\", \"invokeOnClose\"]\n },\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\", \"setFinalFocus\"]\n }\n ],\n \"TRIGGER.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\"]\n }\n ],\n \"LAYER.INTERACT_OUTSIDE\": [\n // == group 1 ==\n {\n guard: and(\"isOpenControlled\", \"isCustomValue\", not(\"allowCustomValue\")),\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n {\n guard: and(\"isCustomValue\", not(\"allowCustomValue\")),\n target: \"idle\",\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n // == group 2 ==\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"idle\",\n actions: [\"invokeOnClose\"]\n }\n ],\n CLOSE: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\", \"setFinalFocus\"]\n }\n ],\n \"VALUE.CLEAR\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"clearInputValue\", \"clearSelectedItems\", \"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"clearInputValue\", \"clearSelectedItems\", \"invokeOnClose\", \"setFinalFocus\"]\n }\n ]\n }\n },\n suggesting: {\n tags: [\"open\", \"focused\"],\n effects: [\"trackDismissableLayer\", \"scrollToHighlightedItem\", \"trackPlacement\", \"hideOtherElements\"],\n entry: [\"setInitialFocus\"],\n on: {\n \"CONTROLLED.CLOSE\": [\n {\n guard: \"restoreFocus\",\n target: \"focused\",\n actions: [\"setFinalFocus\"]\n },\n {\n target: \"idle\"\n }\n ],\n CHILDREN_CHANGE: [\n {\n guard: \"autoHighlight\",\n actions: [\"highlightFirstItem\"]\n },\n {\n guard: \"isHighlightedItemRemoved\",\n actions: [\"clearHighlightedValue\"]\n }\n ],\n \"INPUT.ARROW_DOWN\": {\n target: \"interacting\",\n actions: [\"highlightNextItem\"]\n },\n \"INPUT.ARROW_UP\": {\n target: \"interacting\",\n actions: [\"highlightPrevItem\"]\n },\n \"INPUT.HOME\": {\n target: \"interacting\",\n actions: [\"highlightFirstItem\"]\n },\n \"INPUT.END\": {\n target: \"interacting\",\n actions: [\"highlightLastItem\"]\n },\n \"INPUT.ENTER\": [\n // == group 1 ==\n {\n guard: and(\"isOpenControlled\", \"isCustomValue\", not(\"hasHighlightedItem\"), not(\"allowCustomValue\")),\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n {\n guard: and(\"isCustomValue\", not(\"hasHighlightedItem\"), not(\"allowCustomValue\")),\n target: \"focused\",\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n // == group 2 ==\n {\n guard: and(\"isOpenControlled\", \"closeOnSelect\"),\n actions: [\"selectHighlightedItem\", \"invokeOnClose\"]\n },\n {\n guard: \"closeOnSelect\",\n target: \"focused\",\n actions: [\"selectHighlightedItem\", \"invokeOnClose\", \"setFinalFocus\"]\n },\n {\n actions: [\"selectHighlightedItem\"]\n }\n ],\n \"INPUT.CHANGE\": {\n actions: [\"setInputValue\"]\n },\n \"LAYER.ESCAPE\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\"]\n }\n ],\n \"ITEM.POINTER_MOVE\": {\n target: \"interacting\",\n actions: [\"setHighlightedValue\"]\n },\n \"ITEM.POINTER_LEAVE\": {\n actions: [\"clearHighlightedValue\"]\n },\n \"LAYER.INTERACT_OUTSIDE\": [\n // == group 1 ==\n {\n guard: and(\"isOpenControlled\", \"isCustomValue\", not(\"allowCustomValue\")),\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n {\n guard: and(\"isCustomValue\", not(\"allowCustomValue\")),\n target: \"idle\",\n actions: [\"revertInputValue\", \"invokeOnClose\"]\n },\n // == group 2 ==\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"idle\",\n actions: [\"invokeOnClose\"]\n }\n ],\n \"TRIGGER.CLICK\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\"]\n }\n ],\n \"ITEM.CLICK\": [\n {\n guard: and(\"isOpenControlled\", \"closeOnSelect\"),\n actions: [\"selectItem\", \"invokeOnClose\"]\n },\n {\n guard: \"closeOnSelect\",\n target: \"focused\",\n actions: [\"selectItem\", \"invokeOnClose\", \"setFinalFocus\"]\n },\n {\n actions: [\"selectItem\"]\n }\n ],\n CLOSE: [\n {\n guard: \"isOpenControlled\",\n actions: [\"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"invokeOnClose\", \"setFinalFocus\"]\n }\n ],\n \"VALUE.CLEAR\": [\n {\n guard: \"isOpenControlled\",\n actions: [\"clearInputValue\", \"clearSelectedItems\", \"invokeOnClose\"]\n },\n {\n target: \"focused\",\n actions: [\"clearInputValue\", \"clearSelectedItems\", \"invokeOnClose\", \"setFinalFocus\"]\n }\n ]\n }\n }\n },\n implementations: {\n guards: {\n isInputValueEmpty: ({ computed }) => computed(\"isInputValueEmpty\"),\n autoComplete: ({ computed, prop }) => computed(\"autoComplete\") && !prop(\"multiple\"),\n autoHighlight: ({ computed }) => computed(\"autoHighlight\"),\n isFirstItemHighlighted: ({ prop, context }) => prop(\"collection\").firstValue === context.get(\"highlightedValue\"),\n isLastItemHighlighted: ({ prop, context }) => prop(\"collection\").lastValue === context.get(\"highlightedValue\"),\n isCustomValue: ({ computed }) => computed(\"isCustomValue\"),\n allowCustomValue: ({ prop }) => !!prop(\"allowCustomValue\"),\n hasHighlightedItem: ({ context }) => context.get(\"highlightedValue\") != null,\n closeOnSelect: ({ prop }) => !!prop(\"closeOnSelect\"),\n isOpenControlled: ({ prop }) => prop(\"open\") != null,\n openOnChange: ({ prop, context }) => {\n const openOnChange = prop(\"openOnChange\");\n if (isBoolean(openOnChange)) return openOnChange;\n return !!openOnChange?.({ inputValue: context.get(\"inputValue\") });\n },\n restoreFocus: ({ event }) => event.restoreFocus == null ? true : !!event.restoreFocus,\n isChangeEvent: ({ event }) => event.previousEvent?.type === \"INPUT.CHANGE\",\n autoFocus: ({ prop }) => !!prop(\"autoFocus\"),\n isHighlightedItemRemoved: ({ prop, context }) => !prop(\"collection\").has(context.get(\"highlightedValue\"))\n },\n effects: {\n trackDismissableLayer({ send, prop, scope }) {\n if (prop(\"disableLayer\")) return;\n const contentEl = () => getContentEl(scope);\n return trackDismissableElement(contentEl, {\n defer: true,\n exclude: () => [getInputEl(scope), getTriggerEl(scope), getClearTriggerEl(scope)],\n onFocusOutside: prop(\"onFocusOutside\"),\n onPointerDownOutside: prop(\"onPointerDownOutside\"),\n onInteractOutside: prop(\"onInteractOutside\"),\n onEscapeKeyDown(event) {\n event.preventDefault();\n event.stopPropagation();\n send({ type: \"LAYER.ESCAPE\", src: \"escape-key\" });\n },\n onDismiss() {\n send({ type: \"LAYER.INTERACT_OUTSIDE\", src: \"interact-outside\", restoreFocus: false });\n }\n });\n },\n hideOtherElements({ scope }) {\n return ariaHidden([\n getInputEl(scope),\n getContentEl(scope),\n getTriggerEl(scope),\n getClearTriggerEl(scope)\n ]);\n },\n trackPlacement({ context, prop, scope }) {\n const anchorEl = () => getControlEl(scope) || getTriggerEl(scope);\n const positionerEl = () => getPositionerEl(scope);\n context.set(\"currentPlacement\", prop(\"positioning\").placement);\n return getPlacement(anchorEl, positionerEl, {\n ...prop(\"positioning\"),\n defer: true,\n onComplete(data) {\n context.set(\"currentPlacement\", data.placement);\n }\n });\n },\n scrollToHighlightedItem({ context, prop, scope, event }) {\n const inputEl = getInputEl(scope);\n let cleanups = [];\n const exec = (immediate) => {\n const pointer = event.current().type.includes(\"POINTER\");\n const highlightedValue = context.get(\"highlightedValue\");\n if (pointer || !highlightedValue) return;\n const itemEl = getItemEl(scope, highlightedValue);\n const contentEl = getContentEl(scope);\n const scrollToIndexFn = prop(\"scrollToIndexFn\");\n if (scrollToIndexFn) {\n const highlightedIndex = prop(\"collection\").indexOf(highlightedValue);\n scrollToIndexFn({ index: highlightedIndex, immediate });\n return;\n }\n const raf_cleanup = raf(() => {\n scrollIntoView(itemEl, { rootEl: contentEl, block: \"nearest\" });\n });\n cleanups.push(raf_cleanup);\n };\n const rafCleanup = raf(() => exec(true));\n cleanups.push(rafCleanup);\n const observerCleanup = observeAttributes(inputEl, {\n attributes: [\"aria-activedescendant\"],\n callback: () => exec(false)\n });\n cleanups.push(observerCleanup);\n return () => {\n cleanups.forEach((cleanup) => cleanup());\n };\n }\n },\n actions: {\n reposition({ context, prop, scope, event }) {\n const controlEl = () => getControlEl(scope);\n const positionerEl = () => getPositionerEl(scope);\n getPlacement(controlEl, positionerEl, {\n ...prop(\"positioning\"),\n ...event.options,\n defer: true,\n listeners: false,\n onComplete(data) {\n context.set(\"currentPlacement\", data.placement);\n }\n });\n },\n setHighlightedValue({ context, event }) {\n if (event.value == null) return;\n context.set(\"highlightedValue\", event.value);\n },\n clearHighlightedValue({ context }) {\n context.set(\"highlightedValue\", null);\n },\n selectHighlightedItem(params) {\n const { context, prop } = params;\n const collection2 = prop(\"collection\");\n const highlightedValue = context.get(\"highlightedValue\");\n if (!highlightedValue || !collection2.has(highlightedValue)) return;\n const nextValue = prop(\"multiple\") ? addOrRemove(context.get(\"value\"), highlightedValue) : [highlightedValue];\n prop(\"onSelect\")?.({ value: nextValue, itemValue: highlightedValue });\n context.set(\"value\", nextValue);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: collection2.stringifyMany(nextValue),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n },\n scrollToHighlightedItem({ context, prop, scope }) {\n nextTick(() => {\n const highlightedValue = context.get(\"highlightedValue\");\n if (highlightedValue == null) return;\n const itemEl = getItemEl(scope, highlightedValue);\n const contentEl = getContentEl(scope);\n const scrollToIndexFn = prop(\"scrollToIndexFn\");\n if (scrollToIndexFn) {\n const highlightedIndex = prop(\"collection\").indexOf(highlightedValue);\n scrollToIndexFn({ index: highlightedIndex, immediate: true });\n return;\n }\n scrollIntoView(itemEl, { rootEl: contentEl, block: \"nearest\" });\n });\n },\n selectItem(params) {\n const { context, event, flush, prop } = params;\n if (event.value == null) return;\n flush(() => {\n const nextValue = prop(\"multiple\") ? addOrRemove(context.get(\"value\"), event.value) : [event.value];\n prop(\"onSelect\")?.({ value: nextValue, itemValue: event.value });\n context.set(\"value\", nextValue);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: prop(\"collection\").stringifyMany(nextValue),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n });\n },\n clearItem(params) {\n const { context, event, flush, prop } = params;\n if (event.value == null) return;\n flush(() => {\n const nextValue = remove(context.get(\"value\"), event.value);\n context.set(\"value\", nextValue);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: prop(\"collection\").stringifyMany(nextValue),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n });\n },\n setInitialFocus({ scope }) {\n raf(() => {\n focusInputEl(scope);\n });\n },\n setFinalFocus({ scope }) {\n raf(() => {\n const triggerEl = getTriggerEl(scope);\n if (triggerEl?.dataset.focusable == null) {\n focusInputEl(scope);\n } else {\n focusTriggerEl(scope);\n }\n });\n },\n syncInputValue({ context, scope, event }) {\n const inputEl = getInputEl(scope);\n if (!inputEl) return;\n inputEl.value = context.get(\"inputValue\");\n queueMicrotask(() => {\n if (event.current().type === \"INPUT.CHANGE\") return;\n setCaretToEnd(inputEl);\n });\n },\n setInputValue({ context, event }) {\n context.set(\"inputValue\", event.value);\n },\n clearInputValue({ context }) {\n context.set(\"inputValue\", \"\");\n },\n revertInputValue({ context, prop, computed }) {\n const selectionBehavior = prop(\"selectionBehavior\");\n const inputValue = match(selectionBehavior, {\n replace: computed(\"hasSelectedItems\") ? computed(\"valueAsString\") : \"\",\n preserve: context.get(\"inputValue\"),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n },\n setValue(params) {\n const { context, flush, event, prop } = params;\n flush(() => {\n context.set(\"value\", event.value);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: prop(\"collection\").stringifyMany(event.value),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n });\n },\n clearSelectedItems(params) {\n const { context, flush, prop } = params;\n flush(() => {\n context.set(\"value\", []);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: prop(\"collection\").stringifyMany([]),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n });\n },\n scrollContentToTop({ prop, scope }) {\n const scrollToIndexFn = prop(\"scrollToIndexFn\");\n if (scrollToIndexFn) {\n scrollToIndexFn({ index: 0, immediate: true });\n } else {\n const contentEl = getContentEl(scope);\n if (!contentEl) return;\n contentEl.scrollTop = 0;\n }\n },\n invokeOnOpen({ prop, event }) {\n const reason = getOpenChangeReason(event);\n prop(\"onOpenChange\")?.({ open: true, reason });\n },\n invokeOnClose({ prop, event }) {\n const reason = getOpenChangeReason(event);\n prop(\"onOpenChange\")?.({ open: false, reason });\n },\n highlightFirstItem({ context, prop, scope }) {\n const exec = getContentEl(scope) ? queueMicrotask : raf;\n exec(() => {\n const value = prop(\"collection\").firstValue;\n if (value) context.set(\"highlightedValue\", value);\n });\n },\n highlightFirstItemIfNeeded({ computed, action }) {\n if (!computed(\"autoHighlight\")) return;\n action([\"highlightFirstItem\"]);\n },\n highlightLastItem({ context, prop, scope }) {\n const exec = getContentEl(scope) ? queueMicrotask : raf;\n exec(() => {\n const value = prop(\"collection\").lastValue;\n if (value) context.set(\"highlightedValue\", value);\n });\n },\n highlightNextItem({ context, prop }) {\n let value = null;\n const highlightedValue = context.get(\"highlightedValue\");\n const collection2 = prop(\"collection\");\n if (highlightedValue) {\n value = collection2.getNextValue(highlightedValue);\n if (!value && prop(\"loopFocus\")) value = collection2.firstValue;\n } else {\n value = collection2.firstValue;\n }\n if (value) context.set(\"highlightedValue\", value);\n },\n highlightPrevItem({ context, prop }) {\n let value = null;\n const highlightedValue = context.get(\"highlightedValue\");\n const collection2 = prop(\"collection\");\n if (highlightedValue) {\n value = collection2.getPreviousValue(highlightedValue);\n if (!value && prop(\"loopFocus\")) value = collection2.lastValue;\n } else {\n value = collection2.lastValue;\n }\n if (value) context.set(\"highlightedValue\", value);\n },\n highlightFirstSelectedItem({ context, prop }) {\n raf(() => {\n const [value] = prop(\"collection\").sort(context.get(\"value\"));\n if (value) context.set(\"highlightedValue\", value);\n });\n },\n highlightFirstOrSelectedItem({ context, prop, computed }) {\n raf(() => {\n let value = null;\n if (computed(\"hasSelectedItems\")) {\n value = prop(\"collection\").sort(context.get(\"value\"))[0];\n } else {\n value = prop(\"collection\").firstValue;\n }\n if (value) context.set(\"highlightedValue\", value);\n });\n },\n highlightLastOrSelectedItem({ context, prop, computed }) {\n raf(() => {\n const collection2 = prop(\"collection\");\n let value = null;\n if (computed(\"hasSelectedItems\")) {\n value = collection2.sort(context.get(\"value\"))[0];\n } else {\n value = collection2.lastValue;\n }\n if (value) context.set(\"highlightedValue\", value);\n });\n },\n autofillInputValue({ context, computed, prop, event, scope }) {\n const inputEl = getInputEl(scope);\n const collection2 = prop(\"collection\");\n if (!computed(\"autoComplete\") || !inputEl || !event.keypress) return;\n const valueText = collection2.stringify(context.get(\"highlightedValue\"));\n raf(() => {\n inputEl.value = valueText || context.get(\"inputValue\");\n });\n },\n syncSelectedItems(params) {\n queueMicrotask(() => {\n const { context, prop } = params;\n const collection2 = prop(\"collection\");\n const value = context.get(\"value\");\n const selectedItems = value.map((v) => {\n const item = context.get(\"selectedItems\").find((item2) => collection2.getItemValue(item2) === v);\n return item || collection2.find(v);\n });\n context.set(\"selectedItems\", selectedItems);\n const inputValue = match(prop(\"selectionBehavior\"), {\n preserve: context.get(\"inputValue\"),\n replace: collection2.stringifyMany(value),\n clear: \"\"\n });\n context.set(\"inputValue\", inputValue);\n });\n },\n syncHighlightedItem({ context, prop }) {\n const item = prop(\"collection\").find(context.get(\"highlightedValue\"));\n context.set(\"highlightedItem\", item);\n },\n toggleVisibility({ event, send, prop }) {\n send({ type: prop(\"open\") ? \"CONTROLLED.OPEN\" : \"CONTROLLED.CLOSE\", previousEvent: event });\n }\n }\n }\n});\nfunction getOpenChangeReason(event) {\n return (event.previousEvent || event).src;\n}\nvar props = createProps()([\n \"allowCustomValue\",\n \"autoFocus\",\n \"closeOnSelect\",\n \"collection\",\n \"composite\",\n \"defaultHighlightedValue\",\n \"defaultInputValue\",\n \"defaultOpen\",\n \"defaultValue\",\n \"dir\",\n \"disabled\",\n \"disableLayer\",\n \"form\",\n \"getRootNode\",\n \"highlightedValue\",\n \"id\",\n \"ids\",\n \"inputBehavior\",\n \"inputValue\",\n \"invalid\",\n \"loopFocus\",\n \"multiple\",\n \"name\",\n \"navigate\",\n \"onFocusOutside\",\n \"onHighlightChange\",\n \"onInputValueChange\",\n \"onInteractOutside\",\n \"onOpenChange\",\n \"onOpenChange\",\n \"onPointerDownOutside\",\n \"onSelect\",\n \"onValueChange\",\n \"open\",\n \"openOnChange\",\n \"openOnClick\",\n \"openOnKeyPress\",\n \"placeholder\",\n \"positioning\",\n \"readOnly\",\n \"required\",\n \"scrollToIndexFn\",\n \"selectionBehavior\",\n \"translations\",\n \"value\"\n]);\nvar splitProps = createSplitProps(props);\nvar itemGroupLabelProps = createProps()([\"htmlFor\"]);\nvar splitItemGroupLabelProps = createSplitProps(itemGroupLabelProps);\nvar itemGroupProps = createProps()([\"id\"]);\nvar splitItemGroupProps = createSplitProps(itemGroupProps);\nvar itemProps = createProps()([\"item\", \"persistFocus\"]);\nvar splitItemProps = createSplitProps(itemProps);\n\nexport { anatomy, collection, connect, itemGroupLabelProps, itemGroupProps, itemProps, machine, props, splitItemGroupLabelProps, splitItemGroupProps, splitItemProps, splitProps };\n","'use client';\nimport { createAnatomy } from '@zag-js/anatomy';\n\nconst fieldsetAnatomy = createAnatomy(\"fieldset\").parts(\"root\", \"errorText\", \"helperText\", \"legend\");\nconst parts = fieldsetAnatomy.build();\n\nexport { fieldsetAnatomy, parts };\n","\"use strict\";\nimport { comboboxAnatomy as comboboxAnatomy$1 } from '@ark-ui/react';\nimport { accordionAnatomy as accordionAnatomy$1 } from '@ark-ui/react/accordion';\nimport { createAnatomy } from '@ark-ui/react/anatomy';\nimport { clipboardAnatomy as clipboardAnatomy$1 } from '@ark-ui/react/clipboard';\nimport { colorPickerAnatomy as colorPickerAnatomy$1 } from '@ark-ui/react/color-picker';\nimport { dialogAnatomy as dialogAnatomy$1 } from '@ark-ui/react/dialog';\nimport { editableAnatomy as editableAnatomy$1 } from '@ark-ui/react/editable';\nimport { fieldAnatomy as fieldAnatomy$1 } from '@ark-ui/react/field';\nimport { fieldsetAnatomy as fieldsetAnatomy$1 } from '@ark-ui/react/fieldset';\nimport { fileUploadAnatomy as fileUploadAnatomy$1 } from '@ark-ui/react/file-upload';\nimport { menuAnatomy as menuAnatomy$1 } from '@ark-ui/react/menu';\nimport { popoverAnatomy as popoverAnatomy$1 } from '@ark-ui/react/popover';\nimport { radioGroupAnatomy as radioGroupAnatomy$1 } from '@ark-ui/react/radio-group';\nimport { ratingGroupAnatomy as ratingGroupAnatomy$1 } from '@ark-ui/react/rating-group';\nimport { selectAnatomy as selectAnatomy$1 } from '@ark-ui/react/select';\nimport { sliderAnatomy as sliderAnatomy$1 } from '@ark-ui/react/slider';\nimport { switchAnatomy as switchAnatomy$1 } from '@ark-ui/react/switch';\nexport { treeViewAnatomy } from '@ark-ui/react/tree-view';\nexport { avatarAnatomy } from '@ark-ui/react/avatar';\nexport { checkboxAnatomy } from '@ark-ui/react/checkbox';\nexport { collapsibleAnatomy } from '@ark-ui/react/collapsible';\nexport { hoverCardAnatomy } from '@ark-ui/react/hover-card';\nexport { numberInputAnatomy } from '@ark-ui/react/number-input';\nexport { pinInputAnatomy } from '@ark-ui/react/pin-input';\nexport { progressAnatomy } from '@ark-ui/react/progress';\nexport { qrCodeAnatomy } from '@ark-ui/react/qr-code';\nexport { segmentGroupAnatomy } from '@ark-ui/react/segment-group';\nexport { tooltipAnatomy } from '@ark-ui/react/tooltip';\n\nconst accordionAnatomy = accordionAnatomy$1.extendWith(\"itemBody\");\nconst actionBarAnatomy = createAnatomy(\"action-bar\").parts(\n \"positioner\",\n \"content\",\n \"separator\",\n \"selectionTrigger\",\n \"closeTrigger\"\n);\nconst alertAnatomy = createAnatomy(\"alert\").parts(\n \"title\",\n \"description\",\n \"root\",\n \"indicator\",\n \"content\"\n);\nconst breadcrumbAnatomy = createAnatomy(\"breadcrumb\").parts(\n \"link\",\n \"currentLink\",\n \"item\",\n \"list\",\n \"root\",\n \"ellipsis\",\n \"separator\"\n);\nconst blockquoteAnatomy = createAnatomy(\"blockquote\").parts(\n \"root\",\n \"icon\",\n \"content\",\n \"caption\"\n);\nconst cardAnatomy = createAnatomy(\"card\").parts(\n \"root\",\n \"header\",\n \"body\",\n \"footer\",\n \"title\",\n \"description\"\n);\nconst checkboxCardAnatomy = createAnatomy(\"checkbox-card\", [\n \"root\",\n \"control\",\n \"label\",\n \"description\",\n \"addon\",\n \"indicator\",\n \"content\"\n]);\nconst dataListAnatomy = createAnatomy(\"data-list\").parts(\n \"root\",\n \"item\",\n \"itemLabel\",\n \"itemValue\"\n);\nconst dialogAnatomy = dialogAnatomy$1.extendWith(\n \"header\",\n \"body\",\n \"footer\",\n \"backdrop\"\n);\nconst drawerAnatomy = dialogAnatomy$1.extendWith(\n \"header\",\n \"body\",\n \"footer\",\n \"backdrop\"\n);\nconst editableAnatomy = editableAnatomy$1.extendWith(\"textarea\");\nconst emptyStateAnatomy = createAnatomy(\"empty-state\", [\n \"root\",\n \"content\",\n \"indicator\",\n \"title\",\n \"description\"\n]);\nconst fieldAnatomy = fieldAnatomy$1.extendWith(\"requiredIndicator\");\nconst fieldsetAnatomy = fieldsetAnatomy$1.extendWith(\"content\");\nconst fileUploadAnatomy = fileUploadAnatomy$1.extendWith(\n \"itemContent\",\n \"dropzoneContent\",\n \"fileText\"\n);\nconst listAnatomy = createAnatomy(\"list\").parts(\n \"root\",\n \"item\",\n \"indicator\"\n);\nconst menuAnatomy = menuAnatomy$1.extendWith(\"itemCommand\");\nconst nativeSelectAnatomy = createAnatomy(\"select\").parts(\n \"root\",\n \"field\",\n \"indicator\"\n);\nconst popoverAnatomy = popoverAnatomy$1.extendWith(\n \"header\",\n \"body\",\n \"footer\"\n);\nconst radioGroupAnatomy = radioGroupAnatomy$1.extendWith(\n \"itemAddon\",\n \"itemIndicator\"\n);\nconst radioCardAnatomy = radioGroupAnatomy.extendWith(\n \"itemContent\",\n \"itemDescription\"\n);\nconst ratingGroupAnatomy = ratingGroupAnatomy$1.extendWith(\"itemIndicator\");\nconst selectAnatomy = selectAnatomy$1.extendWith(\"indicatorGroup\");\nconst comboboxAnatomy = comboboxAnatomy$1.extendWith(\n \"indicatorGroup\",\n \"empty\"\n);\nconst sliderAnatomy = sliderAnatomy$1.extendWith(\"markerIndicator\");\nconst statAnatomy = createAnatomy(\"stat\").parts(\n \"root\",\n \"label\",\n \"helpText\",\n \"valueText\",\n \"valueUnit\",\n \"indicator\"\n);\nconst statusAnatomy = createAnatomy(\"status\").parts(\"root\", \"indicator\");\nconst stepsAnatomy = createAnatomy(\"steps\", [\n \"root\",\n \"list\",\n \"item\",\n \"trigger\",\n \"indicator\",\n \"separator\",\n \"content\",\n \"title\",\n \"description\",\n \"nextTrigger\",\n \"prevTrigger\",\n \"progress\"\n]);\nconst switchAnatomy = switchAnatomy$1.extendWith(\"indicator\");\nconst tableAnatomy = createAnatomy(\"table\").parts(\n \"root\",\n \"header\",\n \"body\",\n \"row\",\n \"columnHeader\",\n \"cell\",\n \"footer\",\n \"caption\"\n);\nconst toastAnatomy = createAnatomy(\"toast\").parts(\n \"root\",\n \"title\",\n \"description\",\n \"indicator\",\n \"closeTrigger\",\n \"actionTrigger\"\n);\nconst tabsAnatomy = createAnatomy(\"tabs\").parts(\n \"root\",\n \"trigger\",\n \"list\",\n \"content\",\n \"contentGroup\",\n \"indicator\"\n);\nconst tagAnatomy = createAnatomy(\"tag\").parts(\n \"root\",\n \"label\",\n \"closeTrigger\",\n \"startElement\",\n \"endElement\"\n);\nconst timelineAnatomy = createAnatomy(\"timeline\").parts(\n \"root\",\n \"item\",\n \"content\",\n \"separator\",\n \"indicator\",\n \"connector\",\n \"title\",\n \"description\"\n);\nconst colorPickerAnatomy = colorPickerAnatomy$1.extendWith(\"channelText\");\nconst codeBlockAnatomy = createAnatomy(\"code-block\", [\n \"root\",\n \"content\",\n \"title\",\n \"header\",\n \"footer\",\n \"control\",\n \"overlay\",\n \"code\",\n \"codeText\",\n \"copyTrigger\",\n \"copyIndicator\",\n \"collapseTrigger\",\n \"collapseIndicator\",\n \"collapseText\"\n]);\nconst clipboardAnatomy = clipboardAnatomy$1.extendWith(\"valueText\");\n\nexport { accordionAnatomy, actionBarAnatomy, alertAnatomy, blockquoteAnatomy, breadcrumbAnatomy, cardAnatomy, checkboxCardAnatomy, clipboardAnatomy, codeBlockAnatomy, colorPickerAnatomy, comboboxAnatomy, dataListAnatomy, dialogAnatomy, drawerAnatomy, editableAnatomy, emptyStateAnatomy, fieldAnatomy, fieldsetAnatomy, fileUploadAnatomy, listAnatomy, menuAnatomy, nativeSelectAnatomy, popoverAnatomy, radioCardAnatomy, radioGroupAnatomy, ratingGroupAnatomy, selectAnatomy, sliderAnatomy, statAnatomy, statusAnatomy, stepsAnatomy, switchAnatomy, tableAnatomy, tabsAnatomy, tagAnatomy, timelineAnatomy, toastAnatomy };\n"],"names":["anatomy","createAnatomy","createProps","fieldsetAnatomy","accordionAnatomy","accordionAnatomy$1","actionBarAnatomy","alertAnatomy","breadcrumbAnatomy","blockquoteAnatomy","cardAnatomy","checkboxCardAnatomy","dataListAnatomy","dialogAnatomy","dialogAnatomy$1","drawerAnatomy","editableAnatomy","editableAnatomy$1","emptyStateAnatomy","fieldAnatomy","fieldAnatomy$1","fieldsetAnatomy$1","fileUploadAnatomy","fileUploadAnatomy$1","listAnatomy","menuAnatomy","menuAnatomy$1","nativeSelectAnatomy","popoverAnatomy","popoverAnatomy$1","radioGroupAnatomy","radioGroupAnatomy$1","radioCardAnatomy","ratingGroupAnatomy","ratingGroupAnatomy$1","selectAnatomy","selectAnatomy$1","comboboxAnatomy","comboboxAnatomy$1","sliderAnatomy","sliderAnatomy$1","statAnatomy","statusAnatomy","stepsAnatomy","switchAnatomy","switchAnatomy$1","tableAnatomy","toastAnatomy","tabsAnatomy","tagAnatomy","timelineAnatomy","colorPickerAnatomy","colorPickerAnatomy$1","codeBlockAnatomy","clipboardAnatomy$1"],"mappings":"mZAWA,IAAIA,EAAUC,EAAAA,cAAc,UAAU,EAAE,MACtC,OACA,eACA,UACA,UACA,QACA,OACA,YACA,iBACA,gBACA,WACA,QACA,OACA,aACA,SACF,EACYD,EAAQ,MAAK,EAw7CbE,EAAAA,cAAc,CACxB,mBACA,YACA,gBACA,aACA,YACA,0BACA,oBACA,cACA,eACA,MACA,WACA,eACA,OACA,cACA,mBACA,KACA,MACA,gBACA,aACA,UACA,YACA,WACA,OACA,WACA,iBACA,oBACA,qBACA,oBACA,eACA,eACA,uBACA,WACA,gBACA,OACA,eACA,cACA,iBACA,cACA,cACA,WACA,WACA,kBACA,oBACA,eACA,OACF,CAAC,EAEyBA,EAAAA,YAAa,EAAC,CAAC,SAAS,CAAC,EAE9BA,EAAAA,YAAa,EAAC,CAAC,IAAI,CAAC,EAEzBA,EAAAA,cAAc,CAAC,OAAQ,cAAc,CAAC,ECpgDtD,MAAMC,EAAkBF,EAAAA,cAAc,UAAU,EAAE,MAAM,OAAQ,YAAa,aAAc,QAAQ,EACrFE,EAAgB,MAAK,EC0B9B,MAACC,EAAmBC,EAAAA,QAAmB,WAAW,UAAU,EAC3DC,EAAmBL,EAAAA,cAAc,YAAY,EAAE,MACnD,aACA,UACA,YACA,mBACA,cACF,EACMM,EAAeN,EAAAA,cAAc,OAAO,EAAE,MAC1C,QACA,cACA,OACA,YACA,SACF,EACMO,EAAoBP,EAAAA,cAAc,YAAY,EAAE,MACpD,OACA,cACA,OACA,OACA,OACA,WACA,WACF,EACMQ,EAAoBR,EAAAA,cAAc,YAAY,EAAE,MACpD,OACA,OACA,UACA,SACF,EACMS,EAAcT,EAAAA,cAAc,MAAM,EAAE,MACxC,OACA,SACA,OACA,SACA,QACA,aACF,EACMU,EAAsBV,EAAa,cAAC,gBAAiB,CACzD,OACA,UACA,QACA,cACA,QACA,YACA,SACF,CAAC,EACKW,EAAkBX,EAAAA,cAAc,WAAW,EAAE,MACjD,OACA,OACA,YACA,WACF,EACMY,EAAgBC,EAAe,QAAC,WACpC,SACA,OACA,SACA,UACF,EACMC,EAAgBD,EAAe,QAAC,WACpC,SACA,OACA,SACA,UACF,EACME,EAAkBC,EAAAA,UAAkB,WAAW,UAAU,EACzDC,EAAoBjB,EAAa,cAAC,cAAe,CACrD,OACA,UACA,YACA,QACA,aACF,CAAC,EACKkB,EAAeC,EAAAA,aAAe,WAAW,mBAAmB,EAC5DjB,EAAkBkB,EAAkB,WAAW,SAAS,EACxDC,EAAoBC,EAAmB,UAAC,WAC5C,cACA,kBACA,UACF,EACMC,EAAcvB,EAAAA,cAAc,MAAM,EAAE,MACxC,OACA,OACA,WACF,EACMwB,EAAcC,EAAAA,QAAc,WAAW,aAAa,EACpDC,EAAsB1B,EAAAA,cAAc,QAAQ,EAAE,MAClD,OACA,QACA,WACF,EACM2B,EAAiBC,EAAgB,QAAC,WACtC,SACA,OACA,QACF,EACMC,EAAoBC,EAAmB,QAAC,WAC5C,YACA,eACF,EACMC,EAAmBF,EAAkB,WACzC,cACA,iBACF,EACMG,EAAqBC,EAAAA,QAAqB,WAAW,eAAe,EACpEC,EAAgBC,EAAAA,QAAgB,WAAW,gBAAgB,EAC3DC,EAAkBC,EAAkB,WACxC,iBACA,OACF,EACMC,EAAgBC,EAAAA,UAAgB,WAAW,iBAAiB,EAC5DC,EAAcxC,EAAAA,cAAc,MAAM,EAAE,MACxC,OACA,QACA,WACA,YACA,YACA,WACF,EACMyC,EAAgBzC,EAAAA,cAAc,QAAQ,EAAE,MAAM,OAAQ,WAAW,EACjE0C,EAAe1C,EAAa,cAAC,QAAS,CAC1C,OACA,OACA,OACA,UACA,YACA,YACA,UACA,QACA,cACA,cACA,cACA,UACF,CAAC,EACK2C,EAAgBC,EAAAA,QAAgB,WAAW,WAAW,EACtDC,EAAe7C,EAAAA,cAAc,OAAO,EAAE,MAC1C,OACA,SACA,OACA,MACA,eACA,OACA,SACA,SACF,EACM8C,EAAe9C,EAAAA,cAAc,OAAO,EAAE,MAC1C,OACA,QACA,cACA,YACA,eACA,eACF,EACM+C,EAAc/C,EAAAA,cAAc,MAAM,EAAE,MACxC,OACA,UACA,OACA,UACA,eACA,WACF,EACMgD,EAAahD,EAAAA,cAAc,KAAK,EAAE,MACtC,OACA,QACA,eACA,eACA,YACF,EACMiD,EAAkBjD,EAAAA,cAAc,UAAU,EAAE,MAChD,OACA,OACA,UACA,YACA,YACA,YACA,QACA,aACF,EACMkD,EAAqBC,EAAAA,mBAAqB,WAAW,aAAa,EAClEC,EAAmBpD,EAAa,cAAC,aAAc,CACnD,OACA,UACA,QACA,SACA,SACA,UACA,UACA,OACA,WACA,cACA,gBACA,kBACA,oBACA,cACF,CAAC,EACwBqD,EAAkB,UAAC,WAAW,WAAW","x_google_ignoreList":[0,1,2]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as i } from "./index-
|
|
3
|
-
import { a as s, b as c, c as d, d as l, e as m, f as p } from "./index-hPXhx9Mi.js";
|
|
1
|
+
import { a as r } from "./index-k8xPaJWO.js";
|
|
2
|
+
import { a as i, b as s, c, d, e as l, f as m } from "./index-hPXhx9Mi.js";
|
|
4
3
|
import { f as t } from "./index-BcafYtXX.js";
|
|
5
4
|
import { a as e } from "./index-BWNl4vB2.js";
|
|
5
|
+
import { f as p } from "./field.anatomy-CAraH-al.js";
|
|
6
6
|
import { a as y } from "./index-CmREf48Z.js";
|
|
7
7
|
import { a as u } from "./index-DVGrQEJi.js";
|
|
8
8
|
import { a as g } from "./index-DJa3JmO7.js";
|
|
@@ -78,7 +78,7 @@ o()(["id"]);
|
|
|
78
78
|
o()(["item", "persistFocus"]);
|
|
79
79
|
const n = t("fieldset").parts("root", "errorText", "helperText", "legend");
|
|
80
80
|
n.build();
|
|
81
|
-
const G =
|
|
81
|
+
const G = i.extendWith("itemBody"), F = t("action-bar").parts(
|
|
82
82
|
"positioner",
|
|
83
83
|
"content",
|
|
84
84
|
"separator",
|
|
@@ -133,13 +133,13 @@ const G = s.extendWith("itemBody"), F = t("action-bar").parts(
|
|
|
133
133
|
"body",
|
|
134
134
|
"footer",
|
|
135
135
|
"backdrop"
|
|
136
|
-
), E =
|
|
136
|
+
), E = s.extendWith("textarea"), z = t("empty-state", [
|
|
137
137
|
"root",
|
|
138
138
|
"content",
|
|
139
139
|
"indicator",
|
|
140
140
|
"title",
|
|
141
141
|
"description"
|
|
142
|
-
]), U =
|
|
142
|
+
]), U = p.extendWith("requiredIndicator"), j = n.extendWith("content"), J = c.extendWith(
|
|
143
143
|
"itemContent",
|
|
144
144
|
"dropzoneContent",
|
|
145
145
|
"fileText"
|
|
@@ -151,7 +151,7 @@ const G = s.extendWith("itemBody"), F = t("action-bar").parts(
|
|
|
151
151
|
"root",
|
|
152
152
|
"field",
|
|
153
153
|
"indicator"
|
|
154
|
-
), M =
|
|
154
|
+
), M = r.extendWith(
|
|
155
155
|
"header",
|
|
156
156
|
"body",
|
|
157
157
|
"footer"
|
|
@@ -164,7 +164,7 @@ const G = s.extendWith("itemBody"), F = t("action-bar").parts(
|
|
|
164
164
|
), X = g.extendWith("itemIndicator"), Y = h.extendWith("indicatorGroup"), Z = a.extendWith(
|
|
165
165
|
"indicatorGroup",
|
|
166
166
|
"empty"
|
|
167
|
-
), _ =
|
|
167
|
+
), _ = d.extendWith("markerIndicator"), tt = t("stat").parts(
|
|
168
168
|
"root",
|
|
169
169
|
"label",
|
|
170
170
|
"helpText",
|
|
@@ -222,7 +222,7 @@ const G = s.extendWith("itemBody"), F = t("action-bar").parts(
|
|
|
222
222
|
"connector",
|
|
223
223
|
"title",
|
|
224
224
|
"description"
|
|
225
|
-
), dt =
|
|
225
|
+
), dt = l.extendWith("channelText"), lt = t("code-block", [
|
|
226
226
|
"root",
|
|
227
227
|
"content",
|
|
228
228
|
"title",
|
|
@@ -238,7 +238,7 @@ const G = s.extendWith("itemBody"), F = t("action-bar").parts(
|
|
|
238
238
|
"collapseIndicator",
|
|
239
239
|
"collapseText"
|
|
240
240
|
]);
|
|
241
|
-
|
|
241
|
+
m.extendWith("valueText");
|
|
242
242
|
export {
|
|
243
243
|
_ as A,
|
|
244
244
|
tt as B,
|
|
@@ -277,4 +277,4 @@ export {
|
|
|
277
277
|
b as y,
|
|
278
278
|
X as z
|
|
279
279
|
};
|
|
280
|
-
//# sourceMappingURL=anatomy-
|
|
280
|
+
//# sourceMappingURL=anatomy-DKlFmIC5.js.map
|