calcite-flow-item-TCVP5OA7.js 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348
  1. import {
  2. defineCustomElement as defineCustomElement2,
  3. defineCustomElement2 as defineCustomElement3
  4. } from "./chunk-FS3HYWCS.js";
  5. import {
  6. defineCustomElement as defineCustomElement4
  7. } from "./chunk-ERKDZ5WT.js";
  8. import {
  9. FloatingCSS,
  10. connectFloatingUI,
  11. defaultOffsetDistance,
  12. disconnectFloatingUI,
  13. filterComputedPlacements,
  14. reposition,
  15. updateAfterClose
  16. } from "./chunk-LPWNO2ZS.js";
  17. import {
  18. updateHostInteraction
  19. } from "./chunk-4LXFBVBS.js";
  20. import {
  21. defineCustomElement
  22. } from "./chunk-Y6WKYXWU.js";
  23. import {
  24. createObserver
  25. } from "./chunk-AVLPSIKF.js";
  26. import {
  27. focusElement,
  28. getElementDir,
  29. guid,
  30. isPrimaryPointerButton,
  31. queryElementRoots,
  32. toAriaBoolean
  33. } from "./chunk-2TTT3V5O.js";
  34. import {
  35. Fragment,
  36. H,
  37. Host,
  38. createEvent,
  39. forceUpdate,
  40. h,
  41. proxyCustomElement
  42. } from "./chunk-IOZKU7B2.js";
  43. import "./chunk-S5KM4IGW.js";
  44. // node_modules/@esri/calcite-components/dist/components/Heading.js
  45. var Heading = (props, children) => {
  46. const HeadingTag = `h${props.level}`;
  47. delete props.level;
  48. return h(HeadingTag, { ...props }, children);
  49. };
  50. // node_modules/@esri/calcite-components/dist/components/array.js
  51. function getRoundRobinIndex(index, total) {
  52. return (index + total) % total;
  53. }
  54. // node_modules/@esri/calcite-components/dist/components/key.js
  55. function isActivationKey(key) {
  56. return key === "Enter" || key === " ";
  57. }
  58. // node_modules/@esri/calcite-components/dist/components/openCloseComponent.js
  59. var componentToTransitionListeners = /* @__PURE__ */ new WeakMap();
  60. function transitionStart(event) {
  61. if (event.propertyName === this.openTransitionProp && event.target === this.transitionEl) {
  62. this.open ? this.onBeforeOpen() : this.onBeforeClose();
  63. }
  64. }
  65. function transitionEnd(event) {
  66. if (event.propertyName === this.openTransitionProp && event.target === this.transitionEl) {
  67. this.open ? this.onOpen() : this.onClose();
  68. }
  69. }
  70. function connectOpenCloseComponent(component) {
  71. disconnectOpenCloseComponent(component);
  72. if (component.transitionEl) {
  73. const boundOnTransitionStart = transitionStart.bind(component);
  74. const boundOnTransitionEnd = transitionEnd.bind(component);
  75. componentToTransitionListeners.set(component, [
  76. component.transitionEl,
  77. boundOnTransitionStart,
  78. boundOnTransitionEnd
  79. ]);
  80. component.transitionEl.addEventListener("transitionstart", boundOnTransitionStart);
  81. component.transitionEl.addEventListener("transitionend", boundOnTransitionEnd);
  82. }
  83. }
  84. function disconnectOpenCloseComponent(component) {
  85. if (!componentToTransitionListeners.has(component)) {
  86. return;
  87. }
  88. const [transitionEl, start, end] = componentToTransitionListeners.get(component);
  89. transitionEl.removeEventListener("transitionstart", start);
  90. transitionEl.removeEventListener("transitionend", end);
  91. componentToTransitionListeners.delete(component);
  92. }
  93. // node_modules/@esri/calcite-components/dist/components/popover.js
  94. var CSS = {
  95. container: "container",
  96. arrow: "arrow",
  97. imageContainer: "image-container",
  98. closeButtonContainer: "close-button-container",
  99. closeButton: "close-button",
  100. content: "content",
  101. hasHeader: "has-header",
  102. header: "header",
  103. headerContent: "header-content",
  104. heading: "heading"
  105. };
  106. var TEXT = {
  107. close: "Close"
  108. };
  109. var defaultPopoverPlacement = "auto";
  110. var ARIA_CONTROLS = "aria-controls";
  111. var ARIA_EXPANDED = "aria-expanded";
  112. var HEADING_LEVEL = 2;
  113. var PopoverManager = class {
  114. constructor() {
  115. this.registeredElements = /* @__PURE__ */ new Map();
  116. this.registeredElementCount = 0;
  117. this.queryPopover = (composedPath) => {
  118. const { registeredElements } = this;
  119. const registeredElement = composedPath.find((pathEl) => registeredElements.has(pathEl));
  120. return registeredElements.get(registeredElement);
  121. };
  122. this.togglePopovers = (event) => {
  123. const composedPath = event.composedPath();
  124. const togglePopover = this.queryPopover(composedPath);
  125. if (togglePopover && !togglePopover.triggerDisabled) {
  126. togglePopover.toggle();
  127. }
  128. Array.from(this.registeredElements.values()).filter((popover) => popover !== togglePopover && popover.autoClose && popover.open && !composedPath.includes(popover)).forEach((popover) => popover.toggle(false));
  129. };
  130. this.keyHandler = (event) => {
  131. if (event.defaultPrevented || !isActivationKey(event.key)) {
  132. return;
  133. }
  134. this.togglePopovers(event);
  135. };
  136. this.clickHandler = (event) => {
  137. if (isPrimaryPointerButton(event)) {
  138. this.togglePopovers(event);
  139. }
  140. };
  141. }
  142. registerElement(referenceEl, popover) {
  143. this.registeredElementCount++;
  144. this.registeredElements.set(referenceEl, popover);
  145. if (this.registeredElementCount === 1) {
  146. this.addListeners();
  147. }
  148. }
  149. unregisterElement(referenceEl) {
  150. if (this.registeredElements.delete(referenceEl)) {
  151. this.registeredElementCount--;
  152. }
  153. if (this.registeredElementCount === 0) {
  154. this.removeListeners();
  155. }
  156. }
  157. addListeners() {
  158. document.addEventListener("pointerdown", this.clickHandler, { capture: true });
  159. document.addEventListener("keydown", this.keyHandler, { capture: true });
  160. }
  161. removeListeners() {
  162. document.removeEventListener("pointerdown", this.clickHandler, { capture: true });
  163. document.removeEventListener("keydown", this.keyHandler, { capture: true });
  164. }
  165. };
  166. var popoverCss = '@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:900}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);visibility:hidden;transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:1;border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{transform:translateY(-5px)}:host([data-placement^=top]) .calcite-floating-ui-anim{transform:translateY(5px)}:host([data-placement^=left]) .calcite-floating-ui-anim{transform:translateX(5px)}:host([data-placement^=right]) .calcite-floating-ui-anim{transform:translateX(-5px)}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;visibility:visible;transform:translate(0)}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.arrow,.arrow::before{position:absolute;inline-size:8px;block-size:8px;z-index:-1}.arrow::before{content:"";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-placement^=top]) .arrow{inset-block-end:-4px}:host([data-placement^=bottom]) .arrow{inset-block-start:-4px}:host([data-placement^=left]) .arrow{direction:ltr;inset-inline-end:-4px}:host([data-placement^=right]) .arrow{direction:ltr;inset-inline-start:-4px}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3)}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);word-wrap:break-word;word-break:break-word}.container{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1)}.container.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:0.25rem;border-end-end-radius:0.25rem}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}';
  167. var manager = new PopoverManager();
  168. var Popover = proxyCustomElement(class extends H {
  169. constructor() {
  170. super();
  171. this.__registerHost();
  172. this.__attachShadow();
  173. this.calcitePopoverBeforeClose = createEvent(this, "calcitePopoverBeforeClose", 6);
  174. this.calcitePopoverClose = createEvent(this, "calcitePopoverClose", 6);
  175. this.calcitePopoverBeforeOpen = createEvent(this, "calcitePopoverBeforeOpen", 6);
  176. this.calcitePopoverOpen = createEvent(this, "calcitePopoverOpen", 6);
  177. this.autoClose = false;
  178. this.closeButton = false;
  179. this.dismissible = false;
  180. this.closable = false;
  181. this.disableFlip = false;
  182. this.disablePointer = false;
  183. this.offsetDistance = defaultOffsetDistance;
  184. this.offsetSkidding = 0;
  185. this.open = false;
  186. this.overlayPositioning = "absolute";
  187. this.placement = defaultPopoverPlacement;
  188. this.triggerDisabled = false;
  189. this.intlClose = TEXT.close;
  190. this.guid = `calcite-popover-${guid()}`;
  191. this.openTransitionProp = "opacity";
  192. this.hasLoaded = false;
  193. this.setTransitionEl = (el) => {
  194. this.transitionEl = el;
  195. connectOpenCloseComponent(this);
  196. };
  197. this.setFilteredPlacements = () => {
  198. const { el, flipPlacements } = this;
  199. this.filteredFlipPlacements = flipPlacements ? filterComputedPlacements(flipPlacements, el) : null;
  200. };
  201. this.setUpReferenceElement = (warn = true) => {
  202. this.removeReferences();
  203. this.effectiveReferenceElement = this.getReferenceElement();
  204. connectFloatingUI(this, this.effectiveReferenceElement, this.el);
  205. const { el, referenceElement, effectiveReferenceElement } = this;
  206. if (warn && referenceElement && !effectiveReferenceElement) {
  207. console.warn(`${el.tagName}: reference-element id "${referenceElement}" was not found.`, {
  208. el
  209. });
  210. }
  211. this.addReferences();
  212. };
  213. this.getId = () => {
  214. return this.el.id || this.guid;
  215. };
  216. this.setExpandedAttr = () => {
  217. const { effectiveReferenceElement, open } = this;
  218. if (!effectiveReferenceElement) {
  219. return;
  220. }
  221. if ("setAttribute" in effectiveReferenceElement) {
  222. effectiveReferenceElement.setAttribute(ARIA_EXPANDED, toAriaBoolean(open));
  223. }
  224. };
  225. this.addReferences = () => {
  226. const { effectiveReferenceElement } = this;
  227. if (!effectiveReferenceElement) {
  228. return;
  229. }
  230. const id = this.getId();
  231. if ("setAttribute" in effectiveReferenceElement) {
  232. effectiveReferenceElement.setAttribute(ARIA_CONTROLS, id);
  233. }
  234. manager.registerElement(effectiveReferenceElement, this.el);
  235. this.setExpandedAttr();
  236. };
  237. this.removeReferences = () => {
  238. const { effectiveReferenceElement } = this;
  239. if (!effectiveReferenceElement) {
  240. return;
  241. }
  242. if ("removeAttribute" in effectiveReferenceElement) {
  243. effectiveReferenceElement.removeAttribute(ARIA_CONTROLS);
  244. effectiveReferenceElement.removeAttribute(ARIA_EXPANDED);
  245. }
  246. manager.unregisterElement(effectiveReferenceElement);
  247. };
  248. this.hide = () => {
  249. this.open = false;
  250. };
  251. this.storeArrowEl = (el) => {
  252. this.arrowEl = el;
  253. this.reposition(true);
  254. };
  255. }
  256. handleDismissible(value) {
  257. this.closable = value;
  258. }
  259. handleClosable(value) {
  260. this.dismissible = value;
  261. }
  262. flipPlacementsHandler() {
  263. this.setFilteredPlacements();
  264. this.reposition(true);
  265. }
  266. offsetDistanceOffsetHandler() {
  267. this.reposition(true);
  268. }
  269. offsetSkiddingHandler() {
  270. this.reposition(true);
  271. }
  272. openHandler(value) {
  273. if (value) {
  274. this.reposition(true);
  275. } else {
  276. updateAfterClose(this.el);
  277. }
  278. this.setExpandedAttr();
  279. }
  280. overlayPositioningHandler() {
  281. this.reposition(true);
  282. }
  283. placementHandler() {
  284. this.reposition(true);
  285. }
  286. referenceElementHandler() {
  287. this.setUpReferenceElement();
  288. this.reposition(true);
  289. }
  290. connectedCallback() {
  291. this.setFilteredPlacements();
  292. connectOpenCloseComponent(this);
  293. const closable = this.closable || this.dismissible;
  294. if (closable) {
  295. this.handleDismissible(closable);
  296. }
  297. if (closable) {
  298. this.handleClosable(closable);
  299. }
  300. this.setUpReferenceElement(this.hasLoaded);
  301. }
  302. componentDidLoad() {
  303. if (this.referenceElement && !this.effectiveReferenceElement) {
  304. this.setUpReferenceElement();
  305. }
  306. this.reposition();
  307. this.hasLoaded = true;
  308. }
  309. disconnectedCallback() {
  310. this.removeReferences();
  311. disconnectFloatingUI(this, this.effectiveReferenceElement, this.el);
  312. disconnectOpenCloseComponent(this);
  313. }
  314. async reposition(delayed = false) {
  315. const { el, effectiveReferenceElement, placement, overlayPositioning, disableFlip, filteredFlipPlacements, offsetDistance, offsetSkidding, arrowEl } = this;
  316. return reposition(this, {
  317. floatingEl: el,
  318. referenceEl: effectiveReferenceElement,
  319. overlayPositioning,
  320. placement,
  321. disableFlip,
  322. flipPlacements: filteredFlipPlacements,
  323. offsetDistance,
  324. offsetSkidding,
  325. includeArrow: !this.disablePointer,
  326. arrowEl,
  327. type: "popover"
  328. }, delayed);
  329. }
  330. async setFocus(focusId) {
  331. var _a;
  332. const { closeButtonEl } = this;
  333. if (focusId === "close-button" && closeButtonEl) {
  334. forceUpdate(closeButtonEl);
  335. closeButtonEl.setFocus();
  336. return;
  337. }
  338. (_a = this.el) === null || _a === void 0 ? void 0 : _a.focus();
  339. }
  340. async toggle(value = !this.open) {
  341. this.open = value;
  342. }
  343. getReferenceElement() {
  344. const { referenceElement, el } = this;
  345. return (typeof referenceElement === "string" ? queryElementRoots(el, { id: referenceElement }) : referenceElement) || null;
  346. }
  347. onBeforeOpen() {
  348. this.calcitePopoverBeforeOpen.emit();
  349. }
  350. onOpen() {
  351. this.calcitePopoverOpen.emit();
  352. }
  353. onBeforeClose() {
  354. this.calcitePopoverBeforeClose.emit();
  355. }
  356. onClose() {
  357. this.calcitePopoverClose.emit();
  358. }
  359. renderCloseButton() {
  360. const { closeButton, intlClose, heading, closable } = this;
  361. return closable || closeButton ? h("div", { class: CSS.closeButtonContainer }, h("calcite-action", { class: CSS.closeButton, onClick: this.hide, ref: (closeButtonEl) => this.closeButtonEl = closeButtonEl, scale: heading ? "s" : "m", text: intlClose }, h("calcite-icon", { icon: "x", scale: heading ? "s" : "m" }))) : null;
  362. }
  363. renderHeader() {
  364. const { heading, headingLevel } = this;
  365. const headingNode = heading ? h(Heading, { class: CSS.heading, level: headingLevel || HEADING_LEVEL }, heading) : null;
  366. return headingNode ? h("div", { class: CSS.header }, headingNode, this.renderCloseButton()) : null;
  367. }
  368. render() {
  369. const { effectiveReferenceElement, heading, label, open, disablePointer } = this;
  370. const displayed = effectiveReferenceElement && open;
  371. const hidden = !displayed;
  372. const arrowNode = !disablePointer ? h("div", { class: CSS.arrow, ref: this.storeArrowEl }) : null;
  373. return h(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, h("div", { class: {
  374. [FloatingCSS.animation]: true,
  375. [FloatingCSS.animationActive]: displayed
  376. }, ref: this.setTransitionEl }, arrowNode, h("div", { class: {
  377. [CSS.hasHeader]: !!heading,
  378. [CSS.container]: true
  379. } }, this.renderHeader(), h("div", { class: CSS.content }, h("slot", null)), !heading ? this.renderCloseButton() : null)));
  380. }
  381. get el() {
  382. return this;
  383. }
  384. static get watchers() {
  385. return {
  386. "dismissible": ["handleDismissible"],
  387. "closable": ["handleClosable"],
  388. "flipPlacements": ["flipPlacementsHandler"],
  389. "offsetDistance": ["offsetDistanceOffsetHandler"],
  390. "offsetSkidding": ["offsetSkiddingHandler"],
  391. "open": ["openHandler"],
  392. "overlayPositioning": ["overlayPositioningHandler"],
  393. "placement": ["placementHandler"],
  394. "referenceElement": ["referenceElementHandler"]
  395. };
  396. }
  397. static get style() {
  398. return popoverCss;
  399. }
  400. }, [1, "calcite-popover", {
  401. "autoClose": [516, "auto-close"],
  402. "closeButton": [516, "close-button"],
  403. "dismissible": [1540],
  404. "closable": [1540],
  405. "disableFlip": [516, "disable-flip"],
  406. "disablePointer": [516, "disable-pointer"],
  407. "flipPlacements": [16],
  408. "heading": [1],
  409. "headingLevel": [514, "heading-level"],
  410. "label": [1],
  411. "offsetDistance": [514, "offset-distance"],
  412. "offsetSkidding": [514, "offset-skidding"],
  413. "open": [1540],
  414. "overlayPositioning": [513, "overlay-positioning"],
  415. "placement": [513],
  416. "referenceElement": [1, "reference-element"],
  417. "triggerDisabled": [516, "trigger-disabled"],
  418. "intlClose": [1, "intl-close"],
  419. "effectiveReferenceElement": [32],
  420. "reposition": [64],
  421. "setFocus": [64],
  422. "toggle": [64]
  423. }]);
  424. function defineCustomElement5() {
  425. if (typeof customElements === "undefined") {
  426. return;
  427. }
  428. const components = ["calcite-popover", "calcite-action", "calcite-icon", "calcite-loader"];
  429. components.forEach((tagName) => {
  430. switch (tagName) {
  431. case "calcite-popover":
  432. if (!customElements.get(tagName)) {
  433. customElements.define(tagName, Popover);
  434. }
  435. break;
  436. case "calcite-action":
  437. if (!customElements.get(tagName)) {
  438. defineCustomElement3();
  439. }
  440. break;
  441. case "calcite-icon":
  442. if (!customElements.get(tagName)) {
  443. defineCustomElement();
  444. }
  445. break;
  446. case "calcite-loader":
  447. if (!customElements.get(tagName)) {
  448. defineCustomElement2();
  449. }
  450. break;
  451. }
  452. });
  453. }
  454. defineCustomElement5();
  455. // node_modules/@esri/calcite-components/dist/components/action-menu.js
  456. var CSS2 = {
  457. menu: "menu",
  458. defaultTrigger: "default-trigger"
  459. };
  460. var SLOTS = {
  461. tooltip: "tooltip",
  462. trigger: "trigger"
  463. };
  464. var ICONS = {
  465. menu: "ellipsis"
  466. };
  467. var actionMenuCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:flex;outline-color:transparent}.menu ::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";
  468. var SUPPORTED_MENU_NAV_KEYS = ["ArrowUp", "ArrowDown", "End", "Home"];
  469. var ActionMenu = proxyCustomElement(class extends H {
  470. constructor() {
  471. super();
  472. this.__registerHost();
  473. this.__attachShadow();
  474. this.calciteActionMenuOpenChange = createEvent(this, "calciteActionMenuOpenChange", 6);
  475. this.expanded = false;
  476. this.open = false;
  477. this.overlayPositioning = "absolute";
  478. this.placement = "auto";
  479. this.actionElements = [];
  480. this.guid = `calcite-action-menu-${guid()}`;
  481. this.menuId = `${this.guid}-menu`;
  482. this.menuButtonId = `${this.guid}-menu-button`;
  483. this.activeMenuItemIndex = -1;
  484. this.connectMenuButtonEl = () => {
  485. const { menuButtonId, menuId, open, label } = this;
  486. const menuButtonEl = this.slottedMenuButtonEl || this.defaultMenuButtonEl;
  487. if (this.menuButtonEl === menuButtonEl) {
  488. return;
  489. }
  490. this.disconnectMenuButtonEl();
  491. this.menuButtonEl = menuButtonEl;
  492. this.setTooltipReferenceElement();
  493. if (!menuButtonEl) {
  494. return;
  495. }
  496. menuButtonEl.active = open;
  497. menuButtonEl.setAttribute("aria-controls", menuId);
  498. menuButtonEl.setAttribute("aria-expanded", toAriaBoolean(open));
  499. menuButtonEl.setAttribute("aria-haspopup", "true");
  500. if (!menuButtonEl.id) {
  501. menuButtonEl.id = menuButtonId;
  502. }
  503. if (!menuButtonEl.label) {
  504. menuButtonEl.label = label;
  505. }
  506. if (!menuButtonEl.text) {
  507. menuButtonEl.text = label;
  508. }
  509. menuButtonEl.addEventListener("pointerdown", this.menuButtonClick);
  510. menuButtonEl.addEventListener("keydown", this.menuButtonKeyDown);
  511. };
  512. this.disconnectMenuButtonEl = () => {
  513. const { menuButtonEl } = this;
  514. if (!menuButtonEl) {
  515. return;
  516. }
  517. menuButtonEl.removeEventListener("pointerdown", this.menuButtonClick);
  518. menuButtonEl.removeEventListener("keydown", this.menuButtonKeyDown);
  519. };
  520. this.setMenuButtonEl = (event) => {
  521. const actions = event.target.assignedElements({
  522. flatten: true
  523. }).filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-action"));
  524. this.slottedMenuButtonEl = actions[0];
  525. this.connectMenuButtonEl();
  526. };
  527. this.setDefaultMenuButtonEl = (el) => {
  528. this.defaultMenuButtonEl = el;
  529. this.connectMenuButtonEl();
  530. };
  531. this.handleCalciteActionClick = () => {
  532. this.open = false;
  533. this.setFocus();
  534. };
  535. this.menuButtonClick = (event) => {
  536. if (!isPrimaryPointerButton(event)) {
  537. return;
  538. }
  539. this.toggleOpen();
  540. };
  541. this.updateTooltip = (event) => {
  542. const tooltips = event.target.assignedElements({
  543. flatten: true
  544. }).filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-tooltip"));
  545. this.tooltipEl = tooltips[0];
  546. this.setTooltipReferenceElement();
  547. };
  548. this.setTooltipReferenceElement = () => {
  549. const { tooltipEl, expanded, menuButtonEl, open } = this;
  550. if (tooltipEl) {
  551. tooltipEl.referenceElement = !expanded && !open ? menuButtonEl : null;
  552. }
  553. };
  554. this.updateAction = (action, index) => {
  555. const { guid: guid2, activeMenuItemIndex } = this;
  556. const id = `${guid2}-action-${index}`;
  557. action.tabIndex = -1;
  558. action.setAttribute("role", "menuitem");
  559. if (!action.id) {
  560. action.id = id;
  561. }
  562. action.active = index === activeMenuItemIndex;
  563. };
  564. this.updateActions = (actions) => {
  565. actions === null || actions === void 0 ? void 0 : actions.forEach(this.updateAction);
  566. };
  567. this.handleDefaultSlotChange = (event) => {
  568. const actions = event.target.assignedElements({
  569. flatten: true
  570. }).filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-action"));
  571. this.actionElements = actions;
  572. };
  573. this.menuButtonKeyDown = (event) => {
  574. const { key } = event;
  575. const { actionElements, activeMenuItemIndex, open } = this;
  576. if (!actionElements.length) {
  577. return;
  578. }
  579. if (isActivationKey(key)) {
  580. event.preventDefault();
  581. if (!open) {
  582. this.toggleOpen();
  583. return;
  584. }
  585. const action = actionElements[activeMenuItemIndex];
  586. action ? action.click() : this.toggleOpen(false);
  587. }
  588. if (key === "Tab") {
  589. this.open = false;
  590. return;
  591. }
  592. if (key === "Escape") {
  593. this.toggleOpen(false);
  594. event.preventDefault();
  595. return;
  596. }
  597. this.handleActionNavigation(event, key, actionElements);
  598. };
  599. this.handleActionNavigation = (event, key, actions) => {
  600. if (!this.isValidKey(key, SUPPORTED_MENU_NAV_KEYS)) {
  601. return;
  602. }
  603. event.preventDefault();
  604. if (!this.open) {
  605. this.toggleOpen();
  606. if (key === "Home" || key === "ArrowDown") {
  607. this.activeMenuItemIndex = 0;
  608. }
  609. if (key === "End" || key === "ArrowUp") {
  610. this.activeMenuItemIndex = actions.length - 1;
  611. }
  612. return;
  613. }
  614. if (key === "Home") {
  615. this.activeMenuItemIndex = 0;
  616. }
  617. if (key === "End") {
  618. this.activeMenuItemIndex = actions.length - 1;
  619. }
  620. const currentIndex = this.activeMenuItemIndex;
  621. if (key === "ArrowUp") {
  622. this.activeMenuItemIndex = getRoundRobinIndex(Math.max(currentIndex - 1, -1), actions.length);
  623. }
  624. if (key === "ArrowDown") {
  625. this.activeMenuItemIndex = getRoundRobinIndex(currentIndex + 1, actions.length);
  626. }
  627. };
  628. this.toggleOpenEnd = () => {
  629. this.setFocus();
  630. this.el.removeEventListener("calcitePopoverOpen", this.toggleOpenEnd);
  631. };
  632. this.toggleOpen = (value = !this.open) => {
  633. this.el.addEventListener("calcitePopoverOpen", this.toggleOpenEnd);
  634. this.open = value;
  635. };
  636. }
  637. disconnectedCallback() {
  638. this.disconnectMenuButtonEl();
  639. }
  640. expandedHandler() {
  641. this.open = false;
  642. this.setTooltipReferenceElement();
  643. }
  644. openHandler(open) {
  645. this.activeMenuItemIndex = this.open ? 0 : -1;
  646. if (this.menuButtonEl) {
  647. this.menuButtonEl.active = open;
  648. }
  649. this.calciteActionMenuOpenChange.emit(open);
  650. this.setTooltipReferenceElement();
  651. }
  652. closeCalciteActionMenuOnClick(event) {
  653. if (!isPrimaryPointerButton(event)) {
  654. return;
  655. }
  656. const composedPath = event.composedPath();
  657. if (composedPath.includes(this.el)) {
  658. return;
  659. }
  660. this.open = false;
  661. }
  662. activeMenuItemIndexHandler() {
  663. this.updateActions(this.actionElements);
  664. }
  665. async setFocus() {
  666. focusElement(this.menuButtonEl);
  667. }
  668. renderMenuButton() {
  669. const { label, scale, expanded } = this;
  670. const menuButtonSlot = h("slot", { name: SLOTS.trigger, onSlotchange: this.setMenuButtonEl }, h("calcite-action", { class: CSS2.defaultTrigger, icon: ICONS.menu, ref: this.setDefaultMenuButtonEl, scale, text: label, textEnabled: expanded }));
  671. return menuButtonSlot;
  672. }
  673. renderMenuItems() {
  674. const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements } = this;
  675. const activeAction = actionElements[activeMenuItemIndex];
  676. const activeDescendantId = (activeAction === null || activeAction === void 0 ? void 0 : activeAction.id) || null;
  677. return h("calcite-popover", { disablePointer: true, flipPlacements, label, offsetDistance: 0, open, overlayPositioning, placement, referenceElement: menuButtonEl }, h("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl === null || menuButtonEl === void 0 ? void 0 : menuButtonEl.id, class: CSS2.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, h("slot", { onSlotchange: this.handleDefaultSlotChange })));
  678. }
  679. render() {
  680. return h(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), h("slot", { name: SLOTS.tooltip, onSlotchange: this.updateTooltip }));
  681. }
  682. isValidKey(key, supportedKeys) {
  683. return !!supportedKeys.find((k) => k === key);
  684. }
  685. get el() {
  686. return this;
  687. }
  688. static get watchers() {
  689. return {
  690. "expanded": ["expandedHandler"],
  691. "open": ["openHandler"],
  692. "activeMenuItemIndex": ["activeMenuItemIndexHandler"]
  693. };
  694. }
  695. static get style() {
  696. return actionMenuCss;
  697. }
  698. }, [1, "calcite-action-menu", {
  699. "expanded": [516],
  700. "flipPlacements": [16],
  701. "label": [1],
  702. "open": [1540],
  703. "overlayPositioning": [513, "overlay-positioning"],
  704. "placement": [513],
  705. "scale": [513],
  706. "menuButtonEl": [32],
  707. "activeMenuItemIndex": [32],
  708. "setFocus": [64]
  709. }, [[9, "pointerdown", "closeCalciteActionMenuOnClick"]]]);
  710. function defineCustomElement6() {
  711. if (typeof customElements === "undefined") {
  712. return;
  713. }
  714. const components = ["calcite-action-menu", "calcite-action", "calcite-icon", "calcite-loader", "calcite-popover"];
  715. components.forEach((tagName) => {
  716. switch (tagName) {
  717. case "calcite-action-menu":
  718. if (!customElements.get(tagName)) {
  719. customElements.define(tagName, ActionMenu);
  720. }
  721. break;
  722. case "calcite-action":
  723. if (!customElements.get(tagName)) {
  724. defineCustomElement3();
  725. }
  726. break;
  727. case "calcite-icon":
  728. if (!customElements.get(tagName)) {
  729. defineCustomElement();
  730. }
  731. break;
  732. case "calcite-loader":
  733. if (!customElements.get(tagName)) {
  734. defineCustomElement2();
  735. }
  736. break;
  737. case "calcite-popover":
  738. if (!customElements.get(tagName)) {
  739. defineCustomElement5();
  740. }
  741. break;
  742. }
  743. });
  744. }
  745. defineCustomElement6();
  746. // node_modules/@esri/calcite-components/dist/components/scrim.js
  747. var CSS3 = {
  748. scrim: "scrim",
  749. content: "content"
  750. };
  751. var TEXT2 = {
  752. loading: "Loading"
  753. };
  754. var scrimCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:absolute;inset:0px;z-index:700;display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;inset:0px;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background)}.content{padding:1rem}";
  755. var Scrim = proxyCustomElement(class extends H {
  756. constructor() {
  757. super();
  758. this.__registerHost();
  759. this.__attachShadow();
  760. this.intlLoading = TEXT2.loading;
  761. this.loading = false;
  762. }
  763. render() {
  764. const { el, loading, intlLoading } = this;
  765. const hasContent = el.innerHTML.trim().length > 0;
  766. const loaderNode = loading ? h("calcite-loader", { active: true, label: intlLoading }) : null;
  767. const contentNode = hasContent ? h("div", { class: CSS3.content }, h("slot", null)) : null;
  768. return h("div", { class: CSS3.scrim }, loaderNode, contentNode);
  769. }
  770. get el() {
  771. return this;
  772. }
  773. static get style() {
  774. return scrimCss;
  775. }
  776. }, [1, "calcite-scrim", {
  777. "intlLoading": [1, "intl-loading"],
  778. "loading": [516]
  779. }]);
  780. function defineCustomElement7() {
  781. if (typeof customElements === "undefined") {
  782. return;
  783. }
  784. const components = ["calcite-scrim", "calcite-loader"];
  785. components.forEach((tagName) => {
  786. switch (tagName) {
  787. case "calcite-scrim":
  788. if (!customElements.get(tagName)) {
  789. customElements.define(tagName, Scrim);
  790. }
  791. break;
  792. case "calcite-loader":
  793. if (!customElements.get(tagName)) {
  794. defineCustomElement2();
  795. }
  796. break;
  797. }
  798. });
  799. }
  800. defineCustomElement7();
  801. // node_modules/@esri/calcite-components/dist/components/panel.js
  802. var CSS4 = {
  803. backButton: "back-button",
  804. container: "container",
  805. header: "header",
  806. heading: "heading",
  807. summary: "summary",
  808. description: "description",
  809. headerContent: "header-content",
  810. headerActions: "header-actions",
  811. headerActionsEnd: "header-actions--end",
  812. headerActionsStart: "header-actions--start",
  813. contentWrapper: "content-wrapper",
  814. contentContainer: "content-container",
  815. contentHeight: "content-height",
  816. fabContainer: "fab-container",
  817. footer: "footer"
  818. };
  819. var ICONS2 = {
  820. close: "x",
  821. menu: "ellipsis",
  822. backLeft: "chevron-left",
  823. backRight: "chevron-right"
  824. };
  825. var SLOTS2 = {
  826. headerActionsStart: "header-actions-start",
  827. headerActionsEnd: "header-actions-end",
  828. headerMenuActions: "header-menu-actions",
  829. headerContent: "header-content",
  830. fab: "fab",
  831. footer: "footer",
  832. footerActions: "footer-actions"
  833. };
  834. var TEXT3 = {
  835. back: "Back",
  836. close: "Close",
  837. open: "Open",
  838. options: "Options"
  839. };
  840. var HEADING_LEVEL2 = 3;
  841. var panelCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}.container{margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-block-size:var(--calcite-panel-max-height);inline-size:var(--calcite-panel-width);max-inline-size:var(--calcite-panel-max-width);min-inline-size:var(--calcite-panel-min-width);transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}.header{border-block-end:1px solid;position:sticky;inset-block-start:0px;z-index:400;inline-size:100%;align-items:stretch;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3);flex:0 0 auto}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}.content-wrapper{overflow:auto}.content-height{block-size:100%}.content-container{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;background-color:var(--calcite-ui-background)}.footer{border-block-start:1px solid;position:sticky;inset-block-end:0px;display:flex;inline-size:100%;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-block-start-color:var(--calcite-ui-border-3);flex:0 0 auto;min-block-size:3rem;padding:0.5rem}.fab-container{position:sticky;inset-block-end:0px;z-index:300;margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}[hidden]{display:none}";
  842. var Panel = proxyCustomElement(class extends H {
  843. constructor() {
  844. super();
  845. this.__registerHost();
  846. this.__attachShadow();
  847. this.calcitePanelClose = createEvent(this, "calcitePanelClose", 6);
  848. this.calcitePanelDismiss = createEvent(this, "calcitePanelDismiss", 6);
  849. this.calcitePanelDismissedChange = createEvent(this, "calcitePanelDismissedChange", 6);
  850. this.calcitePanelScroll = createEvent(this, "calcitePanelScroll", 6);
  851. this.calcitePanelBackClick = createEvent(this, "calcitePanelBackClick", 6);
  852. this.dismissed = false;
  853. this.closed = false;
  854. this.disabled = false;
  855. this.dismissible = false;
  856. this.closable = false;
  857. this.showBackButton = false;
  858. this.loading = false;
  859. this.menuOpen = false;
  860. this.resizeObserver = createObserver("resize", () => this.resizeHandler());
  861. this.hasStartActions = false;
  862. this.hasEndActions = false;
  863. this.hasMenuItems = false;
  864. this.hasHeaderContent = false;
  865. this.hasFooterContent = false;
  866. this.hasFooterActions = false;
  867. this.hasFab = false;
  868. this.resizeHandler = () => {
  869. const { panelScrollEl } = this;
  870. if (!panelScrollEl || typeof panelScrollEl.scrollHeight !== "number" || typeof panelScrollEl.offsetHeight !== "number") {
  871. return;
  872. }
  873. panelScrollEl.tabIndex = panelScrollEl.scrollHeight > panelScrollEl.offsetHeight ? 0 : -1;
  874. };
  875. this.setContainerRef = (node) => {
  876. this.containerEl = node;
  877. };
  878. this.setCloseRef = (node) => {
  879. this.closeButtonEl = node;
  880. };
  881. this.setBackRef = (node) => {
  882. this.backButtonEl = node;
  883. };
  884. this.panelKeyDownHandler = (event) => {
  885. if (this.closable && event.key === "Escape" && !event.defaultPrevented) {
  886. this.close();
  887. event.preventDefault();
  888. }
  889. };
  890. this.close = () => {
  891. this.closed = true;
  892. this.calcitePanelDismiss.emit();
  893. this.calcitePanelClose.emit();
  894. };
  895. this.panelScrollHandler = () => {
  896. this.calcitePanelScroll.emit();
  897. };
  898. this.backButtonClick = () => {
  899. this.calcitePanelBackClick.emit();
  900. };
  901. this.handleHeaderActionsStartSlotChange = (event) => {
  902. const elements = event.target.assignedElements({
  903. flatten: true
  904. });
  905. this.hasStartActions = !!elements.length;
  906. };
  907. this.handleHeaderActionsEndSlotChange = (event) => {
  908. const elements = event.target.assignedElements({
  909. flatten: true
  910. });
  911. this.hasEndActions = !!elements.length;
  912. };
  913. this.handleHeaderMenuActionsSlotChange = (event) => {
  914. const elements = event.target.assignedElements({
  915. flatten: true
  916. });
  917. this.hasMenuItems = !!elements.length;
  918. };
  919. this.handleHeaderContentSlotChange = (event) => {
  920. const elements = event.target.assignedElements({
  921. flatten: true
  922. });
  923. this.hasHeaderContent = !!elements.length;
  924. };
  925. this.handleFooterSlotChange = (event) => {
  926. const elements = event.target.assignedElements({
  927. flatten: true
  928. });
  929. this.hasFooterContent = !!elements.length;
  930. };
  931. this.handleFooterActionsSlotChange = (event) => {
  932. const elements = event.target.assignedElements({
  933. flatten: true
  934. });
  935. this.hasFooterActions = !!elements.length;
  936. };
  937. this.handleFabSlotChange = (event) => {
  938. const elements = event.target.assignedElements({
  939. flatten: true
  940. });
  941. this.hasFab = !!elements.length;
  942. };
  943. this.setPanelScrollEl = (el) => {
  944. var _a, _b;
  945. this.panelScrollEl = el;
  946. (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
  947. if (el) {
  948. (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
  949. this.resizeHandler();
  950. }
  951. };
  952. }
  953. dismissedHandler(value) {
  954. this.closed = value;
  955. this.calcitePanelDismissedChange.emit();
  956. }
  957. closedHandler(value) {
  958. this.dismissed = value;
  959. }
  960. dismissibleHandler(value) {
  961. this.closable = value;
  962. }
  963. closableHandler(value) {
  964. this.dismissible = value;
  965. }
  966. componentDidRender() {
  967. updateHostInteraction(this);
  968. }
  969. connectedCallback() {
  970. const isClosed = this.dismissed || this.closed;
  971. const isClosable = this.dismissible || this.closable;
  972. if (isClosed) {
  973. this.dismissedHandler(isClosed);
  974. this.closedHandler(isClosed);
  975. }
  976. if (isClosable) {
  977. this.dismissibleHandler(isClosable);
  978. this.closableHandler(isClosable);
  979. }
  980. }
  981. disconnectedCallback() {
  982. var _a;
  983. (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
  984. }
  985. async setFocus(focusId) {
  986. const { backButtonEl, closeButtonEl, containerEl } = this;
  987. if (focusId === "back-button") {
  988. backButtonEl === null || backButtonEl === void 0 ? void 0 : backButtonEl.setFocus();
  989. return;
  990. }
  991. if (focusId === "dismiss-button") {
  992. closeButtonEl === null || closeButtonEl === void 0 ? void 0 : closeButtonEl.setFocus();
  993. return;
  994. }
  995. if (backButtonEl) {
  996. backButtonEl.setFocus();
  997. return;
  998. }
  999. if (closeButtonEl) {
  1000. closeButtonEl.setFocus();
  1001. return;
  1002. }
  1003. containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
  1004. }
  1005. async scrollContentTo(options) {
  1006. var _a;
  1007. (_a = this.panelScrollEl) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
  1008. }
  1009. renderBackButton() {
  1010. const { el } = this;
  1011. const rtl = getElementDir(el) === "rtl";
  1012. const { showBackButton, intlBack, backButtonClick } = this;
  1013. const label = intlBack || TEXT3.back;
  1014. const icon = rtl ? ICONS2.backRight : ICONS2.backLeft;
  1015. return showBackButton ? h("calcite-action", { "aria-label": label, class: CSS4.backButton, icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS2.headerActionsStart, text: label }) : null;
  1016. }
  1017. renderHeaderContent() {
  1018. const { heading, headingLevel, summary, description, hasHeaderContent } = this;
  1019. const headingNode = heading ? h(Heading, { class: CSS4.heading, level: headingLevel || HEADING_LEVEL2 }, heading) : null;
  1020. const descriptionNode = description || summary ? h("span", { class: CSS4.description }, description || summary) : null;
  1021. return !hasHeaderContent && (headingNode || descriptionNode) ? h("div", { class: CSS4.headerContent, key: "header-content" }, headingNode, descriptionNode) : null;
  1022. }
  1023. renderHeaderSlottedContent() {
  1024. return h("div", { class: CSS4.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, h("slot", { name: SLOTS2.headerContent, onSlotchange: this.handleHeaderContentSlotChange }));
  1025. }
  1026. renderHeaderStartActions() {
  1027. const { hasStartActions } = this;
  1028. return h("div", { class: { [CSS4.headerActionsStart]: true, [CSS4.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, h("slot", { name: SLOTS2.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange }));
  1029. }
  1030. renderHeaderActionsEnd() {
  1031. const { close, hasEndActions, intlClose, closable } = this;
  1032. const text = intlClose || TEXT3.close;
  1033. const closableNode = closable ? h("calcite-action", { "aria-label": text, icon: ICONS2.close, onClick: close, ref: this.setCloseRef, text }) : null;
  1034. const slotNode = h("slot", { name: SLOTS2.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange });
  1035. const showContainer = hasEndActions || closableNode;
  1036. return h("div", { class: { [CSS4.headerActionsEnd]: true, [CSS4.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, closableNode);
  1037. }
  1038. renderMenu() {
  1039. const { hasMenuItems, intlOptions, menuOpen } = this;
  1040. return h("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: intlOptions || TEXT3.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS2.menu, slot: SLOTS.trigger, text: intlOptions || TEXT3.options }), h("slot", { name: SLOTS2.headerMenuActions, onSlotchange: this.handleHeaderMenuActionsSlotChange }));
  1041. }
  1042. renderHeaderNode() {
  1043. const { showBackButton, hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems } = this;
  1044. const headerContentNode = this.renderHeaderContent();
  1045. const showHeader = showBackButton || hasHeaderContent || headerContentNode || hasStartActions || hasEndActions || closable || hasMenuItems;
  1046. return h("header", { class: CSS4.header, hidden: !showHeader }, this.renderBackButton(), this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd(), this.renderMenu());
  1047. }
  1048. renderFooterNode() {
  1049. const { hasFooterContent, hasFooterActions } = this;
  1050. const showFooter = hasFooterContent || hasFooterActions;
  1051. return h("footer", { class: CSS4.footer, hidden: !showFooter }, h("slot", { key: "footer-slot", name: SLOTS2.footer, onSlotchange: this.handleFooterSlotChange }), h("slot", { key: "footer-actions-slot", name: SLOTS2.footerActions, onSlotchange: this.handleFooterActionsSlotChange }));
  1052. }
  1053. renderContent() {
  1054. const { hasFab } = this;
  1055. const defaultSlotNode = h("slot", { key: "default-slot" });
  1056. const containerNode = hasFab ? h("section", { class: CSS4.contentContainer }, defaultSlotNode) : defaultSlotNode;
  1057. return h("div", { class: {
  1058. [CSS4.contentWrapper]: true,
  1059. [CSS4.contentContainer]: !hasFab,
  1060. [CSS4.contentHeight]: hasFab
  1061. }, onScroll: this.panelScrollHandler, ref: this.setPanelScrollEl }, containerNode, this.renderFab());
  1062. }
  1063. renderFab() {
  1064. return h("div", { class: CSS4.fabContainer, hidden: !this.hasFab }, h("slot", { name: SLOTS2.fab, onSlotchange: this.handleFabSlotChange }));
  1065. }
  1066. render() {
  1067. const { loading, panelKeyDownHandler, closed, closable } = this;
  1068. const panelNode = h("article", { "aria-busy": toAriaBoolean(loading), class: CSS4.container, hidden: closed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: closable ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode());
  1069. return h(Fragment, null, loading ? h("calcite-scrim", { loading }) : null, panelNode);
  1070. }
  1071. get el() {
  1072. return this;
  1073. }
  1074. static get watchers() {
  1075. return {
  1076. "dismissed": ["dismissedHandler"],
  1077. "closed": ["closedHandler"],
  1078. "dismissible": ["dismissibleHandler"],
  1079. "closable": ["closableHandler"]
  1080. };
  1081. }
  1082. static get style() {
  1083. return panelCss;
  1084. }
  1085. }, [1, "calcite-panel", {
  1086. "dismissed": [1540],
  1087. "closed": [1540],
  1088. "beforeBack": [16],
  1089. "disabled": [516],
  1090. "dismissible": [1540],
  1091. "closable": [1540],
  1092. "headingLevel": [514, "heading-level"],
  1093. "showBackButton": [516, "show-back-button"],
  1094. "intlBack": [1, "intl-back"],
  1095. "heightScale": [513, "height-scale"],
  1096. "widthScale": [513, "width-scale"],
  1097. "loading": [516],
  1098. "intlClose": [1, "intl-close"],
  1099. "intlOptions": [1, "intl-options"],
  1100. "heading": [1],
  1101. "summary": [1],
  1102. "description": [1],
  1103. "menuOpen": [516, "menu-open"],
  1104. "hasStartActions": [32],
  1105. "hasEndActions": [32],
  1106. "hasMenuItems": [32],
  1107. "hasHeaderContent": [32],
  1108. "hasFooterContent": [32],
  1109. "hasFooterActions": [32],
  1110. "hasFab": [32],
  1111. "setFocus": [64],
  1112. "scrollContentTo": [64]
  1113. }]);
  1114. function defineCustomElement8() {
  1115. if (typeof customElements === "undefined") {
  1116. return;
  1117. }
  1118. const components = ["calcite-panel", "calcite-action", "calcite-action-menu", "calcite-icon", "calcite-loader", "calcite-popover", "calcite-scrim"];
  1119. components.forEach((tagName) => {
  1120. switch (tagName) {
  1121. case "calcite-panel":
  1122. if (!customElements.get(tagName)) {
  1123. customElements.define(tagName, Panel);
  1124. }
  1125. break;
  1126. case "calcite-action":
  1127. if (!customElements.get(tagName)) {
  1128. defineCustomElement3();
  1129. }
  1130. break;
  1131. case "calcite-action-menu":
  1132. if (!customElements.get(tagName)) {
  1133. defineCustomElement6();
  1134. }
  1135. break;
  1136. case "calcite-icon":
  1137. if (!customElements.get(tagName)) {
  1138. defineCustomElement();
  1139. }
  1140. break;
  1141. case "calcite-loader":
  1142. if (!customElements.get(tagName)) {
  1143. defineCustomElement2();
  1144. }
  1145. break;
  1146. case "calcite-popover":
  1147. if (!customElements.get(tagName)) {
  1148. defineCustomElement5();
  1149. }
  1150. break;
  1151. case "calcite-scrim":
  1152. if (!customElements.get(tagName)) {
  1153. defineCustomElement7();
  1154. }
  1155. break;
  1156. }
  1157. });
  1158. }
  1159. defineCustomElement8();
  1160. // node_modules/@esri/calcite-components/dist/components/calcite-flow-item.js
  1161. var CSS5 = {
  1162. backButton: "back-button"
  1163. };
  1164. var ICONS3 = {
  1165. backLeft: "chevron-left",
  1166. backRight: "chevron-right"
  1167. };
  1168. var TEXT4 = {
  1169. back: "Back"
  1170. };
  1171. var SLOTS3 = {
  1172. headerActionsStart: "header-actions-start",
  1173. headerActionsEnd: "header-actions-end",
  1174. headerMenuActions: "header-menu-actions",
  1175. headerContent: "header-content",
  1176. fab: "fab",
  1177. footer: "footer",
  1178. footerActions: "footer-actions"
  1179. };
  1180. var flowItemCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity: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;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}";
  1181. var FlowItem = proxyCustomElement(class extends H {
  1182. constructor() {
  1183. super();
  1184. this.__registerHost();
  1185. this.__attachShadow();
  1186. this.calciteFlowItemBack = createEvent(this, "calciteFlowItemBack", 6);
  1187. this.calciteFlowItemBackClick = createEvent(this, "calciteFlowItemBackClick", 6);
  1188. this.calciteFlowItemScroll = createEvent(this, "calciteFlowItemScroll", 6);
  1189. this.calciteFlowItemClose = createEvent(this, "calciteFlowItemClose", 6);
  1190. this.closable = false;
  1191. this.closed = false;
  1192. this.disabled = false;
  1193. this.loading = false;
  1194. this.menuOpen = false;
  1195. this.showBackButton = false;
  1196. this.handlePanelScroll = (event) => {
  1197. event.stopPropagation();
  1198. this.calciteFlowItemScroll.emit();
  1199. };
  1200. this.handlePanelClose = (event) => {
  1201. event.stopPropagation();
  1202. this.calciteFlowItemClose.emit();
  1203. };
  1204. this.backButtonClick = () => {
  1205. this.calciteFlowItemBackClick.emit();
  1206. this.calciteFlowItemBack.emit();
  1207. };
  1208. this.setBackRef = (node) => {
  1209. this.backButtonEl = node;
  1210. };
  1211. this.setContainerRef = (node) => {
  1212. this.containerEl = node;
  1213. };
  1214. this.getBackLabel = () => {
  1215. return this.intlBack || TEXT4.back;
  1216. };
  1217. }
  1218. componentDidRender() {
  1219. updateHostInteraction(this);
  1220. }
  1221. async setFocus() {
  1222. const { backButtonEl, containerEl } = this;
  1223. if (backButtonEl) {
  1224. backButtonEl.setFocus();
  1225. return;
  1226. }
  1227. containerEl === null || containerEl === void 0 ? void 0 : containerEl.setFocus();
  1228. }
  1229. async scrollContentTo(options) {
  1230. var _a;
  1231. await ((_a = this.containerEl) === null || _a === void 0 ? void 0 : _a.scrollContentTo(options));
  1232. }
  1233. renderBackButton() {
  1234. const { el } = this;
  1235. const rtl = getElementDir(el) === "rtl";
  1236. const { showBackButton, backButtonClick } = this;
  1237. const label = this.getBackLabel();
  1238. const icon = rtl ? ICONS3.backRight : ICONS3.backLeft;
  1239. return showBackButton ? h("calcite-action", { "aria-label": label, class: CSS5.backButton, icon, key: "flow-back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: "header-actions-start", text: label }) : null;
  1240. }
  1241. render() {
  1242. const { closable, closed, description, disabled, heading, headingLevel, heightScale, intlBack, intlClose, intlOptions, loading, menuOpen, widthScale, backButtonEl } = this;
  1243. const label = this.getBackLabel();
  1244. return h(Host, null, h("calcite-panel", { closable, closed, description, disabled, heading, headingLevel, heightScale, intlBack, intlClose, intlOptions, loading, menuOpen, onCalcitePanelClose: this.handlePanelClose, onCalcitePanelScroll: this.handlePanelScroll, ref: this.setContainerRef, widthScale }, this.renderBackButton(), h("slot", { name: SLOTS3.headerActionsStart, slot: SLOTS2.headerActionsStart }), h("slot", { name: SLOTS3.headerActionsEnd, slot: SLOTS2.headerActionsEnd }), h("slot", { name: SLOTS3.headerContent, slot: SLOTS2.headerContent }), h("slot", { name: SLOTS3.headerMenuActions, slot: SLOTS2.headerMenuActions }), h("slot", { name: SLOTS3.fab, slot: SLOTS2.fab }), h("slot", { name: SLOTS3.footerActions, slot: SLOTS2.footerActions }), h("slot", { name: SLOTS3.footer, slot: SLOTS2.footer }), h("slot", null)), backButtonEl ? h("calcite-tooltip", { label, placement: "auto", referenceElement: backButtonEl }, label) : null);
  1245. }
  1246. get el() {
  1247. return this;
  1248. }
  1249. static get style() {
  1250. return flowItemCss;
  1251. }
  1252. }, [1, "calcite-flow-item", {
  1253. "closable": [1540],
  1254. "closed": [1540],
  1255. "beforeBack": [16],
  1256. "description": [1],
  1257. "disabled": [516],
  1258. "heading": [1],
  1259. "headingLevel": [514, "heading-level"],
  1260. "heightScale": [513, "height-scale"],
  1261. "intlBack": [1, "intl-back"],
  1262. "intlClose": [1, "intl-close"],
  1263. "intlOptions": [1, "intl-options"],
  1264. "loading": [516],
  1265. "menuOpen": [516, "menu-open"],
  1266. "showBackButton": [516, "show-back-button"],
  1267. "widthScale": [513, "width-scale"],
  1268. "backButtonEl": [32],
  1269. "setFocus": [64],
  1270. "scrollContentTo": [64]
  1271. }]);
  1272. function defineCustomElement$1() {
  1273. if (typeof customElements === "undefined") {
  1274. return;
  1275. }
  1276. const components = ["calcite-flow-item", "calcite-action", "calcite-action-menu", "calcite-icon", "calcite-loader", "calcite-panel", "calcite-popover", "calcite-scrim", "calcite-tooltip"];
  1277. components.forEach((tagName) => {
  1278. switch (tagName) {
  1279. case "calcite-flow-item":
  1280. if (!customElements.get(tagName)) {
  1281. customElements.define(tagName, FlowItem);
  1282. }
  1283. break;
  1284. case "calcite-action":
  1285. if (!customElements.get(tagName)) {
  1286. defineCustomElement3();
  1287. }
  1288. break;
  1289. case "calcite-action-menu":
  1290. if (!customElements.get(tagName)) {
  1291. defineCustomElement6();
  1292. }
  1293. break;
  1294. case "calcite-icon":
  1295. if (!customElements.get(tagName)) {
  1296. defineCustomElement();
  1297. }
  1298. break;
  1299. case "calcite-loader":
  1300. if (!customElements.get(tagName)) {
  1301. defineCustomElement2();
  1302. }
  1303. break;
  1304. case "calcite-panel":
  1305. if (!customElements.get(tagName)) {
  1306. defineCustomElement8();
  1307. }
  1308. break;
  1309. case "calcite-popover":
  1310. if (!customElements.get(tagName)) {
  1311. defineCustomElement5();
  1312. }
  1313. break;
  1314. case "calcite-scrim":
  1315. if (!customElements.get(tagName)) {
  1316. defineCustomElement7();
  1317. }
  1318. break;
  1319. case "calcite-tooltip":
  1320. if (!customElements.get(tagName)) {
  1321. defineCustomElement4();
  1322. }
  1323. break;
  1324. }
  1325. });
  1326. }
  1327. defineCustomElement$1();
  1328. var CalciteFlowItem = FlowItem;
  1329. var defineCustomElement9 = defineCustomElement$1;
  1330. export {
  1331. CalciteFlowItem,
  1332. defineCustomElement9 as defineCustomElement
  1333. };
  1334. /*!
  1335. * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  1336. * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
  1337. * v1.0.0-beta.97
  1338. */
  1339. //# sourceMappingURL=calcite-flow-item-TCVP5OA7.js.map