{"version":3,"sources":["webpack:///./node_modules/@esri/calcite-components/dist/components/calcite-list.js","webpack:///./node_modules/@esri/calcite-components/dist/components/interactive.js"],"names":["CSS","container","listCss","List","super","this","__registerHost","__attachShadow","disabled","firstListItem","el","querySelector","setFocus","role","class","defineCustomElement$1","customElements","components","forEach","tagName","get","define","CalciteList","defineCustomElement","noopClick","updateHostInteraction","component","hostIsTabbable","setAttribute","contains","document","activeElement","blur","click","HTMLElement","prototype","call","removeAttribute"],"mappings":"kHAAA;;;;;;AAQA,MAAMA,EAAM,CACVC,UAAW,aAGPC,EAAU,o8GAEVC,EAAqB,eAAmB,cAAc,OAC1D,cACEC,QACAC,KAAKC,iBACLD,KAAKE,iBASLF,KAAKG,UAAW,EAOlB,qBACE,eAAsBH,MAQxB,iBACE,MAAMI,EAAgBJ,KAAKK,GAAGC,cAAc,4CAC1B,OAAlBF,QAA4C,IAAlBA,GAAoCA,EAAcG,WAO9E,SACE,OAAQ,cAAD,CAAG,OAAM,CAAEC,KAAM,QAAU,eAAE,MAAO,CAAEC,MAAOd,EAAIC,WAAa,eAAE,OAAQ,QAEjF,SAAW,OAAOI,KAClB,mBAAqB,OAAOH,IAC3B,CAAC,EAAG,eAAgB,CACnB,SAAY,CAAC,KACb,aAAgB,CAAC,EAAG,iBACpB,SAAY,CAAC,OAEjB,SAASa,IACP,GAA8B,qBAAnBC,eACT,OAEF,MAAMC,EAAa,CAAC,gBACpBA,EAAWC,QAAQC,IAAa,OAAQA,GACtC,IAAK,eACEH,eAAeI,IAAID,IACtBH,eAAeK,OAAOF,EAAShB,GAEjC,SAGNY,IAEA,MAAMO,EAAcnB,EACdoB,EAAsBR,G;;;;;;ACzE5B,SAASS,KAaT,SAASC,EAAsBC,EAAWC,GAAiB,GACzD,GAAID,EAAUlB,SAOZ,OANAkB,EAAUhB,GAAGkB,aAAa,WAAY,MACtCF,EAAUhB,GAAGkB,aAAa,gBAAiB,QACvCF,EAAUhB,GAAGmB,SAASC,SAASC,gBACjCD,SAASC,cAAcC,YAEzBN,EAAUhB,GAAGuB,MAAQT,GAGvBE,EAAUhB,GAAGuB,MAAQC,YAAYC,UAAUF,MACb,oBAAnBN,EACTD,EAAUhB,GAAGkB,aAAa,WAAYD,EAAeS,KAAKV,GAAa,IAAM,OAEnD,IAAnBC,EACPD,EAAUhB,GAAGkB,aAAa,WAAY,MAEZ,IAAnBD,GACPD,EAAUhB,GAAG2B,gBAAgB,YAG/BX,EAAUhB,GAAG2B,gBAAgB,iBAvC/B","file":"js/chunk-134e928e.7ff09c34.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 */\nimport { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';\nimport { u as updateHostInteraction } from './interactive.js';\n\nconst CSS = {\n container: \"container\"\n};\n\nconst listCss = \"@-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{display:block}: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}.container{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;background-color:transparent}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(calcite-list-item){margin-bottom:1px;--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item:last-child){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}\";\n\nconst List = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.__attachShadow();\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * When true, disabled prevents user interaction.\n */\n this.disabled = false;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n componentDidRender() {\n updateHostInteraction(this);\n }\n // --------------------------------------------------------------------------\n //\n // Public Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n const firstListItem = this.el.querySelector(`calcite-list-item:not([non-interactive])`);\n firstListItem === null || firstListItem === void 0 ? void 0 : firstListItem.setFocus();\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n render() {\n return (h(Host, { role: \"list\" }, h(\"div\", { class: CSS.container }, h(\"slot\", null))));\n }\n get el() { return this; }\n static get style() { return listCss; }\n}, [1, \"calcite-list\", {\n \"disabled\": [516],\n \"headingLevel\": [2, \"heading-level\"],\n \"setFocus\": [64]\n }]);\nfunction defineCustomElement$1() {\n if (typeof customElements === \"undefined\") {\n return;\n }\n const components = [\"calcite-list\"];\n components.forEach(tagName => { switch (tagName) {\n case \"calcite-list\":\n if (!customElements.get(tagName)) {\n customElements.define(tagName, List);\n }\n break;\n } });\n}\ndefineCustomElement$1();\n\nconst CalciteList = List;\nconst defineCustomElement = defineCustomElement$1;\n\nexport { CalciteList, defineCustomElement };\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"],"sourceRoot":""}