{"version":3,"sources":["webpack:///./node_modules/@esri/calcite-components/dist/components/guid.js","webpack:///./node_modules/@esri/calcite-components/dist/components/label.js","webpack:///./node_modules/@esri/calcite-components/dist/components/form.js","webpack:///./node_modules/@esri/calcite-components/dist/components/interactive.js","webpack:///./node_modules/@esri/calcite-components/dist/components/dom.js","webpack:///./node_modules/@esri/calcite-components/dist/components/checkbox.js","webpack:///./node_modules/@esri/calcite-components/dist/components/calcite-checkbox.js"],"names":["gen","counts","map","count","out","i","Math","random","toString","substring","join","guid","labelClickEvent","labelConnectedEvent","labelDisconnectedEvent","labelTagName","onLabelClickMap","WeakMap","onLabelConnectedMap","onLabelDisconnectedMap","unlabeledComponents","Set","findLabelForComponent","componentEl","id","forLabel","selector","parentLabel","hasAncestorCustomElements","label","traversedElements","customElementAncestorCheckEventType","listener","event","stopImmediatePropagation","composedPath","slice","indexOf","addEventListener","once","dispatchEvent","CustomEvent","composed","bubbles","removeEventListener","ancestorCustomElements","filter","el","_a","tagName","includes","length","connectLabel","component","labelEl","has","boundOnLabelDisconnected","onLabelDisconnected","bind","boundOnLabelClick","onLabelClick","set","delete","document","get","disconnectLabel","getLabelText","_b","textContent","trim","this","disabled","containedLabelableChildClicked","contains","detail","sourceEvent","target","onLabelConnected","add","boundOnLabelConnected","hiddenFormInputSlotName","isCheckable","onFormResetMap","formComponentSet","WeakSet","hasRegisteredFormComponentParent","form","formComponentEl","formComponentRegisterEventName","some","element","stopPropagation","submitForm","formEl","requestSubmit","connectForm","value","defaultValue","defaultChecked","checked","boundOnFormReset","onFormReset","disconnectForm","syncHiddenFormInput","name","ownerDocument","inputs","querySelectorAll","forEach","input","remove","values","Array","isArray","extra","seen","docFrag","valueMatch","find","val","defaultSyncHiddenFormInput","push","pop","createElement","slot","createDocumentFragment","append","required","tabIndex","call","HiddenFormInputSlot","noopClick","updateHostInteraction","hostIsTabbable","setAttribute","activeElement","blur","click","HTMLElement","prototype","removeAttribute","autoTheme","darkTheme","lightTheme","CSS_UTILITY","rtl","TEXT","loading","getElementDir","prop","closest","closestElementCrossShadowBoundary","getAttribute","getElementProp","fallbackValue","getRootNode","getHost","root","host","queryElementsRoots","queryFromAll","allResults","assignedSlot","rootNode","results","from","uniqueResults","result","queryElementRoots","queryFrom","found","getElementById","querySelector","closestFrom","isCalciteFocusable","setFocus","async","focusElement","focus","defaultSlotSelector","getSlotted","slotName","options","slotSelector","all","queryMultiple","querySingle","getDirectChildren","children","child","matches","direct","parentElement","item","reduce","previousValue","currentValue","match","setRequestedIcon","iconObject","iconValue","matchedValue","toAriaBoolean","checkboxCss","Checkbox","super","__registerHost","__attachShadow","calciteInternalCheckboxBlur","calciteCheckboxChange","calciteInternalCheckboxFocus","hovered","indeterminate","scale","checkedPath","indeterminatePath","getPath","toggle","emit","keyDownHandler","key","preventDefault","clickHandler","onToggleBlur","onToggleFocus","toggleEl","onClick","onKeyDown","class","onBlur","onFocus","ref","role","undefined","viewBox","d","defineCustomElement","customElements","components","define","CalciteCheckbox"],"mappings":";;;;;;AAKA,SAASA,EAAIC,GACX,OAAOA,EACJC,IAAKC,IACN,IAAIC,EAAM,GACV,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAOE,IACzBD,IAA+B,OAArB,EAAIE,KAAKC,UAAuB,GAAGC,SAAS,IAAIC,UAAU,GAEtE,OAAOL,IAENM,KAAK,KAdV,kCAgBA,MAAMC,EAAO,IAAMX,EAAI,CAAC,EAAG,EAAG,EAAG,EAAG,K,oCChBpC;;;;;GAWA,MAAMY,EAAkB,4BAClBC,EAAsB,gCACtBC,EAAyB,kCACzBC,EAAe,gBACfC,EAAkB,IAAIC,QACtBC,EAAsB,IAAID,QAC1BE,EAAyB,IAAIF,QAC7BG,EAAsB,IAAIC,IAC1BC,EAAyBC,IAC7B,MAAM,GAAEC,GAAOD,EACTE,EAAWD,GAAM,eAAkBD,EAAa,CAAEG,SAAU,GAAGX,UAAqBS,QAC1F,GAAIC,EACF,OAAOA,EAET,MAAME,EAAc,eAAkCJ,EAA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,MAEd,uBACE,eAAgBA,MAChB,eAAeA,MAEjB,qBACE,eAAsBA,MAOxB,SACE,OAAQ,cAAD,CAAG,OAAM,CAAE4J,QAAS5J,KAAKwJ,aAAcK,UAAW7J,KAAKqJ,gBAAkB,eAAE,MAAO,CAAE,eAAgB,eAAcrJ,KAAK6B,SAAU,aAAc,eAAa7B,MAAO8J,MAAO,SAAUC,OAAQ/J,KAAKyJ,aAAcO,QAAShK,KAAK0J,cAAeO,IAAMN,GAAc3J,KAAK2J,SAAWA,EAAWO,KAAM,WAAYxG,SAAU1D,KAAKC,cAAWkK,EAAY,GAAK,eAAE,MAAO,CAAEL,MAAO,YAAaM,QAAS,aAAe,eAAE,OAAQ,CAAEC,EAAGrK,KAAKkJ,aAAe,eAAE,OAAQ,OAAQ,eAAE,OAAqB,CAAEnK,UAAWiB,QAEjf,SAAW,OAAOA,KAClB,mBAAqB,OAAOqI,IAC3B,CAAC,EAAG,mBAAoB,CACvB,QAAW,CAAC,MACZ,SAAY,CAAC,KACb,KAAQ,CAAC,MACT,QAAW,CAAC,MACZ,cAAiB,CAAC,MAClB,MAAS,CAAC,GACV,KAAQ,CAAC,KACT,SAAY,CAAC,KACb,MAAS,CAAC,KACV,MAAS,CAAC,GACV,SAAY,CAAC,OAEjB,SAASiC,IACP,GAA8B,qBAAnBC,eACT,OAEF,MAAMC,EAAa,CAAC,oBACpBA,EAAWlI,QAAQ3D,IAAa,OAAQA,GACtC,IAAK,mBACE4L,eAAe7K,IAAIf,IACtB4L,eAAeE,OAAO9L,EAAS2J,GAEjC,SAGNgC;;;;;;ACvJA,MAAMI,EAAkBpC,EAClB,EAAsBgC","file":"js/chunk-990faa72.20729c70.js","sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.82\n */\nfunction gen(counts) {\n return counts\n .map((count) => {\n let out = \"\";\n for (let i = 0; i < count; i++) {\n out += (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);\n }\n return out;\n })\n .join(\"-\");\n}\nconst guid = () => gen([2, 1, 1, 1, 3]);\n\nexport { guid as g };\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.82\n */\nimport { c as queryElementRoots, e as closestElementCrossShadowBoundary } from './dom.js';\n\n/**\n * Exported for testing purposes only\n * @internal\n */\nconst labelClickEvent = \"calciteInternalLabelClick\";\nconst labelConnectedEvent = \"calciteInternalLabelConnected\";\nconst labelDisconnectedEvent = \"calciteInternaLabelDisconnected\";\nconst labelTagName = \"calcite-label\";\nconst onLabelClickMap = new WeakMap();\nconst onLabelConnectedMap = new WeakMap();\nconst onLabelDisconnectedMap = new WeakMap();\nconst unlabeledComponents = new Set();\nconst findLabelForComponent = (componentEl) => {\n const { id } = componentEl;\n const forLabel = id && queryElementRoots(componentEl, { selector: `${labelTagName}[for=\"${id}\"]` });\n if (forLabel) {\n return forLabel;\n }\n const parentLabel = closestElementCrossShadowBoundary(componentEl, labelTagName);\n if (!parentLabel ||\n // labelable components within other custom elements are not considered labelable\n hasAncestorCustomElements(parentLabel, componentEl)) {\n return null;\n }\n return parentLabel;\n};\nfunction hasAncestorCustomElements(label, componentEl) {\n let traversedElements;\n const customElementAncestorCheckEventType = \"custom-element-ancestor-check\";\n const listener = (event) => {\n event.stopImmediatePropagation();\n const composedPath = event.composedPath();\n traversedElements = composedPath.slice(composedPath.indexOf(componentEl), composedPath.indexOf(label));\n };\n label.addEventListener(customElementAncestorCheckEventType, listener, { once: true });\n componentEl.dispatchEvent(new CustomEvent(customElementAncestorCheckEventType, { composed: true, bubbles: true }));\n label.removeEventListener(customElementAncestorCheckEventType, listener);\n const ancestorCustomElements = traversedElements\n .filter((el) => el !== componentEl && el !== label)\n .filter((el) => { var _a; return (_a = el.tagName) === null || _a === void 0 ? void 0 : _a.includes(\"-\"); });\n return ancestorCustomElements.length > 0;\n}\n/**\n * Helper to set up label interactions on connectedCallback.\n */\nfunction connectLabel(component) {\n const labelEl = findLabelForComponent(component.el);\n if (onLabelClickMap.has(labelEl) || (!labelEl && unlabeledComponents.has(component))) {\n return;\n }\n const boundOnLabelDisconnected = onLabelDisconnected.bind(component);\n if (labelEl) {\n component.labelEl = labelEl;\n const boundOnLabelClick = onLabelClick.bind(component);\n onLabelClickMap.set(component.labelEl, boundOnLabelClick);\n component.labelEl.addEventListener(labelClickEvent, boundOnLabelClick);\n unlabeledComponents.delete(component);\n document.removeEventListener(labelConnectedEvent, onLabelConnectedMap.get(component));\n onLabelDisconnectedMap.set(component, boundOnLabelDisconnected);\n document.addEventListener(labelDisconnectedEvent, boundOnLabelDisconnected);\n }\n else if (!unlabeledComponents.has(component)) {\n boundOnLabelDisconnected();\n document.removeEventListener(labelDisconnectedEvent, onLabelDisconnectedMap.get(component));\n }\n}\n/**\n * Helper to tear down label interactions on disconnectedCallback on labelable components.\n */\nfunction disconnectLabel(component) {\n unlabeledComponents.delete(component);\n document.removeEventListener(labelConnectedEvent, onLabelConnectedMap.get(component));\n document.removeEventListener(labelDisconnectedEvent, onLabelDisconnectedMap.get(component));\n onLabelConnectedMap.delete(component);\n onLabelDisconnectedMap.delete(component);\n if (!component.labelEl) {\n return;\n }\n const boundOnLabelClick = onLabelClickMap.get(component.labelEl);\n component.labelEl.removeEventListener(labelClickEvent, boundOnLabelClick);\n onLabelClickMap.delete(component.labelEl);\n}\n/**\n * Helper to get the label text from a component.\n */\nfunction getLabelText(component) {\n var _a, _b;\n return component.label || ((_b = (_a = component.labelEl) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || \"\";\n}\nfunction onLabelClick(event) {\n if (this.disabled) {\n return;\n }\n const containedLabelableChildClicked = this.el.contains(event.detail.sourceEvent.target);\n if (containedLabelableChildClicked) {\n return;\n }\n this.onLabelClick(event);\n}\nfunction onLabelConnected() {\n if (unlabeledComponents.has(this)) {\n connectLabel(this);\n }\n}\nfunction onLabelDisconnected() {\n unlabeledComponents.add(this);\n const boundOnLabelConnected = onLabelConnectedMap.get(this) || onLabelConnected.bind(this);\n onLabelConnectedMap.set(this, boundOnLabelConnected);\n document.addEventListener(labelConnectedEvent, boundOnLabelConnected);\n}\n\nexport { labelDisconnectedEvent as a, connectLabel as c, disconnectLabel as d, getLabelText as g, labelConnectedEvent as l };\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.82\n */\nimport { e as closestElementCrossShadowBoundary } from './dom.js';\nimport { h } from '@stencil/core/internal/client';\n\n/**\n * Exported for testing purposes.\n */\nconst hiddenFormInputSlotName = \"hidden-form-input\";\nfunction isCheckable(component) {\n return \"checked\" in component;\n}\nconst onFormResetMap = new WeakMap();\nconst formComponentSet = new WeakSet();\nfunction hasRegisteredFormComponentParent(form, formComponentEl) {\n // we use events as a way to test for nested form-associated components across shadow bounds\n const formComponentRegisterEventName = \"calciteInternalFormComponentRegister\";\n let hasRegisteredFormComponentParent = false;\n form.addEventListener(formComponentRegisterEventName, (event) => {\n hasRegisteredFormComponentParent = event\n .composedPath()\n .some((element) => formComponentSet.has(element));\n event.stopPropagation();\n }, { once: true });\n formComponentEl.dispatchEvent(new CustomEvent(formComponentRegisterEventName, {\n bubbles: true,\n composed: true\n }));\n return hasRegisteredFormComponentParent;\n}\n/**\n * Helper to submit a form.\n */\nfunction submitForm(component) {\n var _a;\n (_a = component.formEl) === null || _a === void 0 ? void 0 : _a.requestSubmit();\n}\n/**\n * Helper to reset a form.\n */\nfunction resetForm(component) {\n var _a;\n (_a = component.formEl) === null || _a === void 0 ? void 0 : _a.reset();\n}\n/**\n * Helper to set up form interactions on connectedCallback.\n */\nfunction connectForm(component) {\n const { el, value } = component;\n const form = closestElementCrossShadowBoundary(el, \"form\");\n if (!form || hasRegisteredFormComponentParent(form, el)) {\n return;\n }\n component.formEl = form;\n component.defaultValue = value;\n if (isCheckable(component)) {\n component.defaultChecked = component.checked;\n }\n const boundOnFormReset = (component.onFormReset || onFormReset).bind(component);\n form.addEventListener(\"reset\", boundOnFormReset);\n onFormResetMap.set(component.el, boundOnFormReset);\n formComponentSet.add(el);\n}\nfunction onFormReset() {\n if (isCheckable(this)) {\n this.checked = this.defaultChecked;\n return;\n }\n this.value = this.defaultValue;\n}\n/**\n * Helper to tear down form interactions on disconnectedCallback.\n */\nfunction disconnectForm(component) {\n const { el, formEl } = component;\n if (!formEl) {\n return;\n }\n const boundOnFormReset = onFormResetMap.get(el);\n formEl.removeEventListener(\"reset\", boundOnFormReset);\n onFormResetMap.delete(el);\n component.formEl = null;\n formComponentSet.delete(el);\n}\n/**\n * Helper for setting the default value on initialization after connectedCallback.\n *\n * Note that this is only needed if the default value cannot be determined on connectedCallback.\n */\nfunction afterConnectDefaultValueSet(component, value) {\n component.defaultValue = value;\n}\n/**\n * Helper for maintaining a form-associated's hidden input in sync with the component.\n *\n * Based on Ionic's approach: https://github.com/ionic-team/ionic-framework/blob/e4bf052794af9aac07f887013b9250d2a045eba3/core/src/utils/helpers.ts#L198\n */\nfunction syncHiddenFormInput(component) {\n const { el, formEl, name, value } = component;\n const { ownerDocument } = el;\n const inputs = el.querySelectorAll(`input[slot=\"${hiddenFormInputSlotName}\"]`);\n if (!formEl || !name) {\n inputs.forEach((input) => input.remove());\n return;\n }\n const values = Array.isArray(value) ? value : [value];\n const extra = [];\n const seen = new Set();\n inputs.forEach((input) => {\n const valueMatch = values.find((val) => \n /* intentional non-strict equality check */\n val == input.value);\n if (valueMatch != null) {\n seen.add(valueMatch);\n defaultSyncHiddenFormInput(component, input, valueMatch);\n }\n else {\n extra.push(input);\n }\n });\n let docFrag;\n values.forEach((value) => {\n if (seen.has(value)) {\n return;\n }\n let input = extra.pop();\n if (!input) {\n input = ownerDocument.createElement(\"input\");\n input.slot = hiddenFormInputSlotName;\n }\n if (!docFrag) {\n docFrag = ownerDocument.createDocumentFragment();\n }\n docFrag.append(input);\n defaultSyncHiddenFormInput(component, input, value);\n });\n if (docFrag) {\n el.append(docFrag);\n }\n extra.forEach((input) => input.remove());\n}\nfunction defaultSyncHiddenFormInput(component, input, value) {\n var _a;\n const { defaultValue, disabled, name, required } = component;\n // keep in sync to prevent losing reset value\n input.defaultValue = defaultValue;\n input.disabled = disabled;\n input.name = name;\n input.required = required;\n input.tabIndex = -1;\n if (isCheckable(component)) {\n // keep in sync to prevent losing reset value\n input.defaultChecked = component.defaultChecked;\n // heuristic to support default/on mode from https://html.spec.whatwg.org/multipage/input.html#dom-input-value-default-on\n input.value = component.checked ? value || \"on\" : \"\";\n // we disable the component when not checked to avoid having its value submitted\n if (!disabled && !component.checked) {\n input.disabled = true;\n }\n }\n else {\n input.value = value || \"\";\n }\n (_a = component.syncHiddenFormInput) === null || _a === void 0 ? void 0 : _a.call(component, input);\n}\n/**\n * Helper to render the slot for form-associated component's hidden input.\n *\n * If the component has a default slot, this must be placed at the bottom of the component's root container to ensure it is the last child.\n *\n * render(): VNode {\n * \n *
\n * // ...\n * \n *
\n *
\n * }\n *\n * Note that the hidden-form-input Sass mixin must be added to the component's style to apply specific styles.\n */\nconst HiddenFormInputSlot = ({ component }) => {\n syncHiddenFormInput(component);\n return h(\"slot\", { name: hiddenFormInputSlotName });\n};\n\nexport { HiddenFormInputSlot as H, afterConnectDefaultValueSet as a, connectForm as c, disconnectForm as d, resetForm as r, submitForm as s };\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.82\n */\nfunction noopClick() {\n /** noop **/\n}\n/**\n * This helper updates the host element to prevent keyboard interaction on its subtree and sets the appropriate aria attribute for accessibility.\n *\n * This should be used in the `componentDidRender` lifecycle hook.\n *\n * **Notes**\n *\n * * this util is not needed for simple components whose root element or elements are an interactive component (custom element or native control). For those cases, set the `disabled` props on the root components instead.\n * * technically, users can override `tabindex` and restore keyboard navigation, but this will be considered user error\n */\nfunction updateHostInteraction(component, hostIsTabbable = false) {\n if (component.disabled) {\n component.el.setAttribute(\"tabindex\", \"-1\");\n component.el.setAttribute(\"aria-disabled\", \"true\");\n if (component.el.contains(document.activeElement)) {\n document.activeElement.blur();\n }\n component.el.click = noopClick;\n return;\n }\n component.el.click = HTMLElement.prototype.click;\n if (typeof hostIsTabbable === \"function\") {\n component.el.setAttribute(\"tabindex\", hostIsTabbable.call(component) ? \"0\" : \"-1\");\n }\n else if (hostIsTabbable === true) {\n component.el.setAttribute(\"tabindex\", \"0\");\n }\n else if (hostIsTabbable === false) {\n component.el.removeAttribute(\"tabindex\");\n }\n else ;\n component.el.removeAttribute(\"aria-disabled\");\n}\n\nexport { updateHostInteraction as u };\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.82\n */\nimport { g as guid } from './guid.js';\n\nconst autoTheme = \"calcite-theme-auto\";\nconst darkTheme = \"calcite-theme-dark\";\nconst lightTheme = \"calcite-theme-light\";\nconst CSS_UTILITY = {\n autoTheme,\n darkTheme,\n lightTheme,\n rtl: \"calcite--rtl\"\n};\nconst TEXT = {\n loading: \"Loading\"\n};\n\n/**\n * This helper will guarantee an ID on the provided element.\n *\n * If it already has an ID, it will be preserved, otherwise a unique one will be generated and assigned.\n *\n * @returns {string} The element's ID.\n */\nfunction ensureId(el) {\n if (!el) {\n return \"\";\n }\n return (el.id = el.id || `${el.tagName.toLowerCase()}-${guid()}`);\n}\nfunction nodeListToArray(nodeList) {\n return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);\n}\nfunction getThemeName(el) {\n const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);\n return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains(\"calcite-theme-dark\")) ? \"dark\" : \"light\";\n}\nfunction getElementDir(el) {\n const prop = \"dir\";\n const selector = `[${prop}]`;\n const closest = closestElementCrossShadowBoundary(el, selector);\n return closest ? closest.getAttribute(prop) : \"ltr\";\n}\nfunction getElementProp(el, prop, fallbackValue) {\n const selector = `[${prop}]`;\n const closest = el.closest(selector);\n return closest ? closest.getAttribute(prop) : fallbackValue;\n}\nfunction getRootNode(el) {\n return el.getRootNode();\n}\nfunction getHost(root) {\n return root.host || null;\n}\n/**\n * This helper queries an element's rootNodes and any ancestor rootNodes.\n *\n * @returns {Element[]} The elements.\n */\nfunction queryElementsRoots(element, selector) {\n // Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.\n // Based on: https://stackoverflow.com/q/54520554/194216\n function queryFromAll(el, allResults) {\n if (!el) {\n return allResults;\n }\n if (el.assignedSlot) {\n el = el.assignedSlot;\n }\n const rootNode = getRootNode(el);\n const results = Array.from(rootNode.querySelectorAll(selector));\n const uniqueResults = results.filter((result) => !allResults.includes(result));\n allResults = [...allResults, ...uniqueResults];\n const host = getHost(rootNode);\n return host ? queryFromAll(host, allResults) : allResults;\n }\n return queryFromAll(element, []);\n}\n/**\n * This helper queries an element's rootNode and any ancestor rootNodes.\n *\n * If both an 'id' and 'selector' are supplied, 'id' will take precedence over 'selector'.\n *\n * @returns {Element} The element.\n */\nfunction queryElementRoots(element, { selector, id }) {\n // Gets the rootNode and any ancestor rootNodes (shadowRoot or document) of an element and queries them for a selector.\n // Based on: https://stackoverflow.com/q/54520554/194216\n function queryFrom(el) {\n if (!el) {\n return null;\n }\n if (el.assignedSlot) {\n el = el.assignedSlot;\n }\n const rootNode = getRootNode(el);\n const found = id\n ? \"getElementById\" in rootNode\n ? /*\n Check to make sure 'getElementById' exists in cases where element is no longer connected to the DOM and getRootNode() returns the element.\n https://github.com/Esri/calcite-components/pull/4280\n */\n rootNode.getElementById(id)\n : null\n : selector\n ? rootNode.querySelector(selector)\n : null;\n const host = getHost(rootNode);\n return found ? found : host ? queryFrom(host) : null;\n }\n return queryFrom(element);\n}\nfunction closestElementCrossShadowBoundary(element, selector) {\n // based on https://stackoverflow.com/q/54520554/194216\n function closestFrom(el) {\n return el ? el.closest(selector) || closestFrom(getHost(getRootNode(el))) : null;\n }\n return closestFrom(element);\n}\nfunction isCalciteFocusable(el) {\n return typeof (el === null || el === void 0 ? void 0 : el.setFocus) === \"function\";\n}\nasync function focusElement(el) {\n if (!el) {\n return;\n }\n return isCalciteFocusable(el) ? el.setFocus() : el.focus();\n}\nconst defaultSlotSelector = \":not([slot])\";\nfunction getSlotted(element, slotName, options) {\n if (slotName && !Array.isArray(slotName) && typeof slotName !== \"string\") {\n options = slotName;\n slotName = null;\n }\n const slotSelector = slotName\n ? Array.isArray(slotName)\n ? slotName.map((name) => `[slot=\"${name}\"]`).join(\",\")\n : `[slot=\"${slotName}\"]`\n : defaultSlotSelector;\n if (options === null || options === void 0 ? void 0 : options.all) {\n return queryMultiple(element, slotSelector, options);\n }\n return querySingle(element, slotSelector, options);\n}\nfunction getDirectChildren(el, selector) {\n return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];\n}\nfunction queryMultiple(element, slotSelector, options) {\n let matches = slotSelector === defaultSlotSelector\n ? getDirectChildren(element, defaultSlotSelector)\n : Array.from(element.querySelectorAll(slotSelector));\n matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);\n matches = (options === null || options === void 0 ? void 0 : options.matches) ? matches.filter((el) => el === null || el === void 0 ? void 0 : el.matches(options.matches)) : matches;\n const selector = options === null || options === void 0 ? void 0 : options.selector;\n return selector\n ? matches\n .map((item) => Array.from(item.querySelectorAll(selector)))\n .reduce((previousValue, currentValue) => [...previousValue, ...currentValue], [])\n .filter((match) => !!match)\n : matches;\n}\nfunction querySingle(element, slotSelector, options) {\n let match = slotSelector === defaultSlotSelector\n ? getDirectChildren(element, defaultSlotSelector)[0] || null\n : element.querySelector(slotSelector);\n match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;\n match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;\n const selector = options === null || options === void 0 ? void 0 : options.selector;\n return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;\n}\nfunction filterDirectChildren(el, selector) {\n return Array.from(el.children).filter((child) => child.matches(selector));\n}\n// set a default icon from a defined set or allow an override with an icon name string\nfunction setRequestedIcon(iconObject, iconValue, matchedValue) {\n if (typeof iconValue === \"string\" && iconValue !== \"\") {\n return iconValue;\n }\n else if (iconValue === \"\") {\n return iconObject[matchedValue];\n }\n}\nfunction intersects(rect1, rect2) {\n return !(rect2.left > rect1.right ||\n rect2.right < rect1.left ||\n rect2.top > rect1.bottom ||\n rect2.bottom < rect1.top);\n}\n/**\n * This helper makes sure that boolean aria attributes are properly converted to a string.\n *\n * It should only be used for aria attributes that require a string value of \"true\" or \"false\".\n *\n * @returns {string} The string conversion of a boolean value (\"true\" | \"false\").\n */\nfunction toAriaBoolean(value) {\n return (!!value).toString();\n}\n\nexport { CSS_UTILITY as C, TEXT as T, getElementDir as a, getSlotted as b, queryElementRoots as c, getThemeName as d, closestElementCrossShadowBoundary as e, focusElement as f, getElementProp as g, filterDirectChildren as h, ensureId as i, isCalciteFocusable as j, intersects as k, nodeListToArray as n, queryElementsRoots as q, setRequestedIcon as s, toAriaBoolean as t };\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.82\n */\nimport { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';\nimport { g as guid } from './guid.js';\nimport { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form.js';\nimport { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label.js';\nimport { u as updateHostInteraction } from './interactive.js';\nimport { t as toAriaBoolean } from './dom.js';\n\nconst checkboxCss = \"@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-checkbox-size:0.75rem}:host([scale=m]){--calcite-checkbox-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-checkbox-size:1rem}:host{position:relative;display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-ui-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);width:var(--calcite-checkbox-size);height:var(--calcite-checkbox-size);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);color:var(--calcite-ui-background)}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host .toggle:focus .check-svg,:host .toggle:active .check-svg{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);-webkit-transition:var(--calcite-animation-timing);transition:var(--calcite-animation-timing)}.toggle:focus-visible{outline:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}\";\n\nconst Checkbox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.__attachShadow();\n this.calciteInternalCheckboxBlur = createEvent(this, \"calciteInternalCheckboxBlur\", 7);\n this.calciteCheckboxChange = createEvent(this, \"calciteCheckboxChange\", 7);\n this.calciteInternalCheckboxFocus = createEvent(this, \"calciteInternalCheckboxFocus\", 7);\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** The checked state of the checkbox. */\n this.checked = false;\n /** True if the checkbox is disabled */\n this.disabled = false;\n /**\n * The hovered state of the checkbox.\n * @internal\n */\n this.hovered = false;\n /**\n * True if the checkbox is initially indeterminate,\n * which is independent from its checked state\n * https://css-tricks.com/indeterminate-checkboxes/\n * */\n this.indeterminate = false;\n /**\n * When true, makes the component required for form-submission.\n *\n * @internal\n */\n this.required = false;\n /** specify the scale of the checkbox, defaults to m */\n this.scale = \"m\";\n //--------------------------------------------------------------------------\n //\n // Private Properties\n //\n //--------------------------------------------------------------------------\n this.checkedPath = \"M5.5 12L2 8.689l.637-.636L5.5 10.727l8.022-7.87.637.637z\";\n this.indeterminatePath = \"M13 8v1H3V8z\";\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n this.getPath = () => this.indeterminate ? this.indeterminatePath : this.checked ? this.checkedPath : \"\";\n this.toggle = () => {\n if (!this.disabled) {\n this.checked = !this.checked;\n this.setFocus();\n this.indeterminate = false;\n this.calciteCheckboxChange.emit();\n }\n };\n this.keyDownHandler = (event) => {\n if (event.key === \" \" || event.key === \"Enter\") {\n this.toggle();\n event.preventDefault();\n }\n };\n this.clickHandler = () => {\n this.toggle();\n };\n //--------------------------------------------------------------------------\n //\n // Event Listeners\n //\n //--------------------------------------------------------------------------\n this.onToggleBlur = () => {\n this.calciteInternalCheckboxBlur.emit(false);\n };\n this.onToggleFocus = () => {\n this.calciteInternalCheckboxFocus.emit(true);\n };\n this.onLabelClick = () => {\n this.toggle();\n };\n }\n //--------------------------------------------------------------------------\n //\n // Public Methods\n //\n //--------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n (_a = this.toggleEl) === null || _a === void 0 ? void 0 : _a.focus();\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n connectedCallback() {\n this.guid = this.el.id || `calcite-checkbox-${guid()}`;\n connectLabel(this);\n connectForm(this);\n }\n disconnectedCallback() {\n disconnectLabel(this);\n disconnectForm(this);\n }\n componentDidRender() {\n updateHostInteraction(this);\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h(\"div\", { \"aria-checked\": toAriaBoolean(this.checked), \"aria-label\": getLabelText(this), class: \"toggle\", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, ref: (toggleEl) => (this.toggleEl = toggleEl), role: \"checkbox\", tabIndex: this.disabled ? undefined : 0 }, h(\"svg\", { class: \"check-svg\", viewBox: \"0 0 16 16\" }, h(\"path\", { d: this.getPath() })), h(\"slot\", null)), h(HiddenFormInputSlot, { component: this })));\n }\n get el() { return this; }\n static get style() { return checkboxCss; }\n}, [1, \"calcite-checkbox\", {\n \"checked\": [1540],\n \"disabled\": [516],\n \"guid\": [1537],\n \"hovered\": [1540],\n \"indeterminate\": [1540],\n \"label\": [1],\n \"name\": [520],\n \"required\": [516],\n \"scale\": [513],\n \"value\": [8],\n \"setFocus\": [64]\n }]);\nfunction defineCustomElement() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"calcite-checkbox\"];\n components.forEach(tagName => { switch (tagName) {\n case \"calcite-checkbox\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, Checkbox);\n }\n break;\n } });\n}\ndefineCustomElement();\n\nexport { Checkbox as C, defineCustomElement as d };\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.82\n */\nimport { C as Checkbox, d as defineCustomElement$1 } from './checkbox.js';\n\nconst CalciteCheckbox = Checkbox;\nconst defineCustomElement = defineCustomElement$1;\n\nexport { CalciteCheckbox, defineCustomElement };\n"],"sourceRoot":""}