q2-tecton-elements 1.3.1 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/cjs/click-elsewhere.cjs.entry.js +1 -1
  2. package/dist/cjs/{index-4faae504.js → index-88eda03b.js} +0 -3
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{patch-914a750e.js → patch-e20a85b4.js} +1 -1
  5. package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
  6. package/dist/cjs/q2-btn.cjs.entry.js +1 -1
  7. package/dist/cjs/q2-calendar.cjs.entry.js +1 -1
  8. package/dist/cjs/q2-carousel-pane.cjs.entry.js +1 -1
  9. package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
  10. package/dist/cjs/q2-checkbox-group.cjs.entry.js +1 -1
  11. package/dist/cjs/q2-checkbox.cjs.entry.js +1 -1
  12. package/dist/cjs/q2-dropdown-item.cjs.entry.js +1 -1
  13. package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
  14. package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
  15. package/dist/cjs/q2-icon.cjs.entry.js +1 -1
  16. package/dist/cjs/q2-input_2.cjs.entry.js +1 -1
  17. package/dist/cjs/q2-loading-element.cjs.entry.js +2 -2
  18. package/dist/cjs/q2-loading.cjs.entry.js +2 -2
  19. package/dist/cjs/q2-loc.cjs.entry.js +1 -1
  20. package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
  21. package/dist/cjs/q2-option.cjs.entry.js +1 -1
  22. package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
  23. package/dist/cjs/q2-radio.cjs.entry.js +1 -1
  24. package/dist/cjs/q2-section.cjs.entry.js +1 -1
  25. package/dist/cjs/q2-select.cjs.entry.js +1 -1
  26. package/dist/cjs/q2-tab-container.cjs.entry.js +1 -1
  27. package/dist/cjs/q2-tab-pane.cjs.entry.js +1 -1
  28. package/dist/cjs/q2-tecton-elements.cjs.js +2 -2
  29. package/dist/cjs/{shapes-6672cf49.js → shapes-00766dc3.js} +1 -1
  30. package/dist/cjs/tecton-tab-pane.cjs.entry.js +1 -5
  31. package/dist/collection/components/tecton-tab-pane/index.js +0 -4
  32. package/dist/esm/click-elsewhere.entry.js +1 -1
  33. package/dist/esm/{index-34b1f583.js → index-b70f7228.js} +0 -3
  34. package/dist/esm/loader.mjs +2 -2
  35. package/dist/esm/{patch-6cd50c08.js → patch-187aa2d6.js} +1 -1
  36. package/dist/esm/q2-avatar.entry.js +1 -1
  37. package/dist/esm/q2-btn.entry.js +1 -1
  38. package/dist/esm/q2-calendar.entry.js +1 -1
  39. package/dist/esm/q2-carousel-pane.entry.js +1 -1
  40. package/dist/esm/q2-carousel.entry.js +1 -1
  41. package/dist/esm/q2-checkbox-group.entry.js +1 -1
  42. package/dist/esm/q2-checkbox.entry.js +1 -1
  43. package/dist/esm/q2-dropdown-item.entry.js +1 -1
  44. package/dist/esm/q2-dropdown.entry.js +1 -1
  45. package/dist/esm/q2-editable-field.entry.js +1 -1
  46. package/dist/esm/q2-icon.entry.js +1 -1
  47. package/dist/esm/q2-input_2.entry.js +1 -1
  48. package/dist/esm/q2-loading-element.entry.js +2 -2
  49. package/dist/esm/q2-loading.entry.js +2 -2
  50. package/dist/esm/q2-loc.entry.js +1 -1
  51. package/dist/esm/q2-optgroup.entry.js +1 -1
  52. package/dist/esm/q2-option.entry.js +1 -1
  53. package/dist/esm/q2-radio-group.entry.js +1 -1
  54. package/dist/esm/q2-radio.entry.js +1 -1
  55. package/dist/esm/q2-section.entry.js +1 -1
  56. package/dist/esm/q2-select.entry.js +1 -1
  57. package/dist/esm/q2-tab-container.entry.js +1 -1
  58. package/dist/esm/q2-tab-pane.entry.js +1 -1
  59. package/dist/esm/q2-tecton-elements.mjs +2 -2
  60. package/dist/esm/{shapes-c290d265.js → shapes-1a12324b.js} +1 -1
  61. package/dist/esm/tecton-tab-pane.entry.js +1 -5
  62. package/dist/esm-es5/click-elsewhere.entry.js +1 -1
  63. package/dist/esm-es5/{index-34b1f583.js → index-b70f7228.js} +0 -3
  64. package/dist/esm-es5/loader.mjs +2 -2
  65. package/dist/esm-es5/{patch-6cd50c08.js → patch-187aa2d6.js} +1 -1
  66. package/dist/esm-es5/q2-avatar.entry.js +1 -1
  67. package/dist/esm-es5/q2-btn.entry.js +1 -1
  68. package/dist/esm-es5/q2-calendar.entry.js +1 -1
  69. package/dist/esm-es5/q2-carousel-pane.entry.js +1 -1
  70. package/dist/esm-es5/q2-carousel.entry.js +1 -1
  71. package/dist/esm-es5/q2-checkbox-group.entry.js +1 -1
  72. package/dist/esm-es5/q2-checkbox.entry.js +1 -1
  73. package/dist/esm-es5/q2-dropdown-item.entry.js +1 -1
  74. package/dist/esm-es5/q2-dropdown.entry.js +1 -1
  75. package/dist/esm-es5/q2-editable-field.entry.js +1 -1
  76. package/dist/esm-es5/q2-icon.entry.js +1 -1
  77. package/dist/esm-es5/q2-input_2.entry.js +1 -1
  78. package/dist/esm-es5/q2-loading-element.entry.js +2 -2
  79. package/dist/esm-es5/q2-loading.entry.js +2 -2
  80. package/dist/esm-es5/q2-loc.entry.js +1 -1
  81. package/dist/esm-es5/q2-optgroup.entry.js +1 -1
  82. package/dist/esm-es5/q2-option.entry.js +1 -1
  83. package/dist/esm-es5/q2-radio-group.entry.js +1 -1
  84. package/dist/esm-es5/q2-radio.entry.js +1 -1
  85. package/dist/esm-es5/q2-section.entry.js +1 -1
  86. package/dist/esm-es5/q2-select.entry.js +1 -1
  87. package/dist/esm-es5/q2-tab-container.entry.js +1 -1
  88. package/dist/esm-es5/q2-tab-pane.entry.js +1 -1
  89. package/dist/esm-es5/q2-tecton-elements.mjs +2 -2
  90. package/dist/esm-es5/{shapes-c290d265.js → shapes-1a12324b.js} +1 -1
  91. package/dist/esm-es5/tecton-tab-pane.entry.js +1 -5
  92. package/dist/q2-tecton-elements/{p-a568efed.system.js → p-00067d0a.system.js} +1 -1
  93. package/dist/q2-tecton-elements/{p-a713c5fc.system.js → p-06e01d71.system.js} +1 -1
  94. package/dist/q2-tecton-elements/{p-42d82321.entry.js → p-07203a0e.entry.js} +1 -1
  95. package/dist/q2-tecton-elements/{p-59a02c0a.entry.js → p-1048dd48.entry.js} +1 -1
  96. package/dist/q2-tecton-elements/{p-211d3858.entry.js → p-12cf6e8b.entry.js} +1 -1
  97. package/dist/q2-tecton-elements/p-1a8e579d.js +1 -0
  98. package/dist/q2-tecton-elements/{p-04a9e20b.system.entry.js → p-1f8ea8da.system.entry.js} +1 -1
  99. package/dist/q2-tecton-elements/{p-a53cd78f.system.entry.js → p-208d0c6e.system.entry.js} +1 -1
  100. package/dist/q2-tecton-elements/{p-19398668.entry.js → p-30c73ea9.entry.js} +1 -1
  101. package/dist/q2-tecton-elements/{p-67de0ec8.system.entry.js → p-37035bba.system.entry.js} +1 -1
  102. package/dist/q2-tecton-elements/{p-ee20ba95.system.entry.js → p-3d8e5455.system.entry.js} +1 -1
  103. package/dist/q2-tecton-elements/p-4007abdd.system.entry.js +1 -0
  104. package/dist/q2-tecton-elements/{p-209592ce.system.entry.js → p-4433a232.system.entry.js} +1 -1
  105. package/dist/q2-tecton-elements/{p-79f337d9.entry.js → p-46204d10.entry.js} +1 -1
  106. package/dist/q2-tecton-elements/{p-1dc36e58.system.entry.js → p-49ec33ae.system.entry.js} +1 -1
  107. package/dist/q2-tecton-elements/{p-72742d91.system.entry.js → p-4fd89735.system.entry.js} +1 -1
  108. package/dist/q2-tecton-elements/{p-40b3ba17.system.entry.js → p-561628df.system.entry.js} +1 -1
  109. package/dist/q2-tecton-elements/{p-4ff290be.system.entry.js → p-5adaa91d.system.entry.js} +1 -1
  110. package/dist/q2-tecton-elements/{p-df6d17da.system.entry.js → p-5b054e1e.system.entry.js} +1 -1
  111. package/dist/q2-tecton-elements/{p-a56bc5bf.system.entry.js → p-5c88a649.system.entry.js} +1 -1
  112. package/dist/q2-tecton-elements/{p-633aeeb4.entry.js → p-5e0021ec.entry.js} +1 -1
  113. package/dist/q2-tecton-elements/{p-3082637e.system.entry.js → p-5f0adaa9.system.entry.js} +1 -1
  114. package/dist/q2-tecton-elements/{p-9b266886.system.js → p-5f52c28d.system.js} +1 -1
  115. package/dist/q2-tecton-elements/{p-b08c40a0.entry.js → p-5fc58e19.entry.js} +1 -1
  116. package/dist/q2-tecton-elements/{p-e6313cd6.entry.js → p-5ff595f3.entry.js} +1 -1
  117. package/dist/q2-tecton-elements/{p-0a951e47.system.entry.js → p-647199c8.system.entry.js} +1 -1
  118. package/dist/q2-tecton-elements/{p-e93bfe23.entry.js → p-6cb61d0e.entry.js} +1 -1
  119. package/dist/q2-tecton-elements/{p-fd1b52e9.entry.js → p-70a87905.entry.js} +1 -1
  120. package/dist/q2-tecton-elements/{p-87bb9ff8.system.entry.js → p-70ffd0bb.system.entry.js} +1 -1
  121. package/dist/q2-tecton-elements/{p-5299effa.entry.js → p-75be017a.entry.js} +1 -1
  122. package/dist/q2-tecton-elements/{p-3c0b64bb.entry.js → p-7b10d18b.entry.js} +1 -1
  123. package/dist/q2-tecton-elements/{p-59121cc0.entry.js → p-7cdd18f7.entry.js} +1 -1
  124. package/dist/q2-tecton-elements/p-7f5118a6.entry.js +1 -0
  125. package/dist/q2-tecton-elements/{p-7659c3c2.entry.js → p-819126ca.entry.js} +1 -1
  126. package/dist/q2-tecton-elements/{p-3ef9bb34.entry.js → p-83ac78cd.entry.js} +1 -1
  127. package/dist/q2-tecton-elements/{p-10502b27.system.entry.js → p-8dfd0e89.system.entry.js} +1 -1
  128. package/dist/q2-tecton-elements/{p-9df42353.entry.js → p-9a298ef4.entry.js} +1 -1
  129. package/dist/q2-tecton-elements/{p-e00e02a3.entry.js → p-9df82ade.entry.js} +1 -1
  130. package/dist/q2-tecton-elements/{p-e1bd7e6a.js → p-9fc24628.js} +1 -1
  131. package/dist/q2-tecton-elements/{p-df1a0921.entry.js → p-a26673f1.entry.js} +1 -1
  132. package/dist/q2-tecton-elements/{p-c81dc9f0.system.entry.js → p-a53e34ff.system.entry.js} +1 -1
  133. package/dist/q2-tecton-elements/{p-e50a5546.entry.js → p-a942cc7c.entry.js} +1 -1
  134. package/dist/q2-tecton-elements/{p-a9ab9f95.entry.js → p-aa0e3b90.entry.js} +1 -1
  135. package/dist/q2-tecton-elements/{p-fb316fec.entry.js → p-b1fb02bf.entry.js} +1 -1
  136. package/dist/q2-tecton-elements/{p-c78e1b7c.system.entry.js → p-b88eabe8.system.entry.js} +1 -1
  137. package/dist/q2-tecton-elements/{p-64526ee4.entry.js → p-b96a2e11.entry.js} +1 -1
  138. package/dist/q2-tecton-elements/{p-38b9534b.entry.js → p-ba0baa43.entry.js} +1 -1
  139. package/dist/q2-tecton-elements/{p-8bda3fe4.system.entry.js → p-bf8db157.system.entry.js} +1 -1
  140. package/dist/q2-tecton-elements/{p-78e5e68c.js → p-ce2eb03c.js} +1 -1
  141. package/dist/q2-tecton-elements/{p-ce0ad5f8.system.entry.js → p-daf25558.system.entry.js} +1 -1
  142. package/dist/q2-tecton-elements/{p-4126f9eb.system.entry.js → p-dbf210b9.system.entry.js} +1 -1
  143. package/dist/q2-tecton-elements/{p-5539639f.system.entry.js → p-e02615e5.system.entry.js} +1 -1
  144. package/dist/q2-tecton-elements/{p-b3933511.system.entry.js → p-ea606976.system.entry.js} +1 -1
  145. package/dist/q2-tecton-elements/{p-6df877cb.system.entry.js → p-f01bebc8.system.entry.js} +1 -1
  146. package/dist/q2-tecton-elements/{p-2d49c74e.system.js → p-f08aea0c.system.js} +1 -1
  147. package/dist/q2-tecton-elements/{p-43dc7121.entry.js → p-f6023957.entry.js} +1 -1
  148. package/dist/q2-tecton-elements/{p-c58b223f.system.entry.js → p-f6f4572b.system.entry.js} +1 -1
  149. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  150. package/dist/q2-tecton-elements/q2-tecton-elements.js +1 -1
  151. package/dist/types/components/tecton-tab-pane/index.d.ts +0 -1
  152. package/package.json +2 -2
  153. package/dist/q2-tecton-elements/p-7ff881d1.js +0 -1
  154. package/dist/q2-tecton-elements/p-9f5539f3.entry.js +0 -1
  155. package/dist/q2-tecton-elements/p-a0a72bf3.system.entry.js +0 -1
@@ -1 +1 @@
1
- var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<i;t++)for(var s=arguments[t],l=0,r=s.length;l<r;l++,o++)n[o]=s[l];return n};System.register(["./p-2d49c74e.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,i,n,o,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;o=e.g},function(e){s=e.c}],execute:function(){var l="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:block;margin-top:var(--tct-select-margin-top, var(--app-scale-4, 30px));margin-bottom:var(--tct-select-margin-bottom, var(--app-scale-4, 30px))}.q2-select-container{position:relative;display:block}.q2-select-input{margin:0}.custom-display-content{position:absolute;bottom:0;left:calc(var(--tct-scale-2, var(--app-scale-2, 10px)) + 1px);height:44px;width:calc(100% - 34px - var(--tct-scale-3, var(--app-scale-3, 15px)));overflow:hidden;cursor:pointer;-webkit-transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease));transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease))}.custom-display-content:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.is-searchable.is-focused .custom-display-content,.is-searchable .custom-display-content:active{left:calc(var(--tct-scale-3, var(--app-scale-3, 15px)) + 1px)}.has-error .custom-display-content{width:calc(100% - 68px - var(--tct-scale-3, var(--app-scale-3, 15px)))}.dropdown-open .q2-select-dropdown{overflow-y:auto;max-height:300px}.multi-select-header{padding:var(--tct-scale-1, var(--app-scale-1, 5px))\n var(--tct-scale-2, var(--app-scale-2, 10px))}.show-all-options{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px));margin-left:var(--tct-scale-2, var(--app-scale-2, 10px))}";var r=e("q2_select",function(){function e(e){var n=this;t(this,e);this.change=i(this,"change",7);this.input=i(this,"input",7);this.selectedOptions=[];this.disabled=false;this.multiple=false;this.searchable=false;this.multilineOptions=false;this.optional=false;this.dropdownOpen=false;this.onlyShowingSelected=false;this.hasCustomDisplay=false;this.inputFocused=false;this.scheduledAfterRender=[];this.keyStore={queue:[],lastPressedAt:new Date};this.guid=s();this.dropdownId="q2-select-dropdown-"+this.guid;this.onMutationObserved=function(){var e=n.hostElement.querySelector(".custom-display-content");var t=n.hostElement.shadowRoot.querySelector('slot[name="q2-select-display"]');var i=!!t?t.assignedNodes().length>0:e.children.length>0;if(n.hasCustomDisplay!==i){n.hasCustomDisplay=i}if(n.multiple){n.updateMultipleOptionAttrs();return}n.updateSingleOptionAttrs();var o=n.optionElements[n.activeIndex];if(!o||o.id!==n.activeOptionId){n.activeIndex=n.getDefaultActiveIndex();n.setActiveOption()}};this.searchAndFocus=function(e){var t=function(){var e=(n.activeIndex||0)+1;var t=n.optionElements.map((function(e,t){return{element:e,index:t}}));return __spreadArrays(t.slice(e),t.slice(0,e))};var i=function(){var t=new Date;if(t.getTime()-n.keyStore.lastPressedAt.getTime()>1e3){n.keyStore.queue=[]}if(n.keyStore.queue.length!==1||n.keyStore.queue[0]!==e){n.keyStore.queue.push(e)}n.keyStore.lastPressedAt=t};var o=function(e){return e.find((function(e){return!e.element.disabled&&e.element.display.replace(/\s/g,"").match(new RegExp("^"+n.keyStore.queue.join(""),"i"))}))};var s=function(e){var t=e.element,i=e.index;if(n.dropdownOpen||n.multiple){n.openDropdownWithActiveElement(i)}else{n.activeIndex=i;n.change.emit({value:t.value})}};i();var l=o(t());if(l){s(l)}};this.inputClickHandler=function(e){e.stopPropagation();n.toggleDropdown();n.focusInput()};this.inputInputHandler=function(e){e.stopPropagation();if(!n.dropdownOpen){n.openDropdownWithoutActiveElement()}n.searchText=e.detail.value;n.input.emit({query:e.detail.value})};this.inputKeydownHandler=function(e){if(e.key==="Enter"&&n.dropdownOpen){e.preventDefault();var t=n.hostElement.querySelector('[option-id="'+n.activeOptionId+'"]');t&&!t.disabled&&n.selectOption(t.value)}if(["Escape","Esc"].includes(e.key)){n.closeDropdown();n.focusInput()}if(e.key==="Tab"){if(n.dropdownOpen&&n.searchable&&e.shiftKey){e.preventDefault();n.focusInput()}else{n.dropdownOpen&&!n.multiple&&e.preventDefault()}}};this.inputFocusHandler=function(){n.inputFocused=true};this.inputBlurHandler=function(){n.inputFocused=false};this.inputChangeHandler=function(e){e.stopPropagation()};this.showAllOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey&&n.selectedOptionsCount===0){e.preventDefault()}};this.showSelectedOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey){e.preventDefault()}};this.clickedElsewhere=function(e){var t=e.target;if(t.localName==="click-elsewhere"){e.stopPropagation();if(n.dropdownOpen){n.closeDropdown()}}};this.showSelectedOptions=function(){n.onlyShowingSelected=true;n.optionElements.forEach((function(e){e._multiSelectHidden=!e.selected}))};this.showAllOptions=function(){n.onlyShowingSelected=false;n.optionElements.forEach((function(e){e._multiSelectHidden=false}))};this.onCustomDisplayClick=function(e){e.stopPropagation();n.focusInput();n.toggleDropdown()}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.resizeIframe=function(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()};e.prototype.getDefaultActiveIndex=function(){var e=this.optionElements.findIndex((function(e){return e.selected}));return e>-1?e:0};e.prototype.setActiveOption=function(){var e=this;if(!this.dropdownOpen){return}this.optionElements.forEach((function(t,i){if(e.activeIndex===i){t.active=true;e.activeOptionId=t.optionId}else{t.active=false}}))};e.prototype.setFocusedOption=function(){var e=this.optionElements[this.activeIndex].shadowRoot.querySelector("div");e.dispatchEvent(new FocusEvent("focus"));e.focus()};e.prototype.calculateMultiSelectSelectedDisplay=function(){var e=this;if(this.selectedOptions.length===1){var t=this.optionElements.find((function(t){return t.value===e.selectedOptions[0]}));return t&&t.display&&this.loc(t.display)||t&&t.value||this.selectedOptions[0]}else if(this.selectedOptions.length>1){return this.loc("tecton.element.select.multiDisplay",[this.selectedOptions.length])}else{return""}};e.prototype.calculateSingleSelectSelectedDisplay=function(){var e=this;var t=this.optionElements.find((function(t){return e.value===t.value}));return t&&t.display&&this.loc(t.display)||this.value||""};Object.defineProperty(e.prototype,"selectedDisplay",{get:function(){if(this.hasCustomDisplay&&!this.searchText){return""}if(this.searchable&&this.dropdownOpen){return this.searchText||""}return this.multiple?this.calculateMultiSelectSelectedDisplay():this.calculateSingleSelectSelectedDisplay()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedOptionsCount",{get:function(){return this.selectedOptions.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"optionElements",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-option"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"wrapperClasses",{get:function(){var e=this.dropdownOpen&&" dropdown-open"||"";var t=Array.isArray(this.errors)&&this.errors.length>0?" has-error":"";var i=this.inputFocused?" is-focused":"";var n=this.searchable?" is-searchable":"";return"q2-select-container"+e+t+i+n},enumerable:false,configurable:true});e.prototype.updateSingleOptionAttrs=function(){var e=this;this.optionElements.forEach((function(t,i){t.selected=e.value===t.value;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.updateMultipleOptionAttrs=function(){var e=this;if(this.selectedOptions.length===0){this.onlyShowingSelected=false}this.optionElements.forEach((function(t,i){t.selected=e.selectedOptions.includes(t.value);t._multiSelectHidden=e.onlyShowingSelected?!t.selected:false;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.selectOption=function(e){if(this.multiple){var t=this.selectedOptions.includes(e);if(t){this.change.emit({selectedOptions:this.selectedOptions.filter((function(t){return t!==e}))})}else{this.change.emit({selectedOptions:__spreadArrays(this.selectedOptions,[e])})}}else{this.change.emit({value:e});this.closeDropdown();this.focusInput()}};e.prototype.scrollToActiveOption=function(){var e=this.optionElements[this.activeIndex];e&&e.scrollIntoView({block:"nearest"})};e.prototype.openDropdownWithoutActiveElement=function(){this.activeIndex=undefined;this.setActiveOption();this.dropdownOpen=true;this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.openDropdownWithActiveElement=function(e){var t=this;this.activeIndex=e;this.dropdownOpen=true;this.setActiveOption();this.scheduledAfterRender.push((function(){if(!t.searchable){t.setFocusedOption()}t.scrollToActiveOption();t.resizeIframe()}))};e.prototype.closeDropdown=function(){this.dropdownOpen=false;if(this.searchText){this.searchText="";this.input.emit({query:""})}this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.toggleDropdown=function(){if(this.disabled){return}if(this.searchable){if(!this.dropdownOpen){this.openDropdownWithoutActiveElement()}}else{if(this.dropdownOpen){this.closeDropdown()}else{this.openDropdownWithoutActiveElement()}}};e.prototype.adjustActiveOptionAndScroll=function(e){this.activeIndex+=e;this.setActiveOption();if(!this.searchable){this.setFocusedOption()}this.scrollToActiveOption()};e.prototype.setDefaultActiveElement=function(){this.activeIndex=this.getDefaultActiveIndex();this.setActiveOption();if(!this.searchable){this.setFocusedOption()}};e.prototype.focusInput=function(){var e=this.hostElement.shadowRoot.querySelector("q2-input");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.getNextVisibleIndex=function(e){var t=this.activeIndex+e;while(t>=0&&t<=this.optionElements.length-1){var i=window.getComputedStyle(this.optionElements[t]),n=i.display,o=i.visibility;if(n!=="none"&&o!=="hidden"){return t}t=t+e}return-1};e.prototype.componentDidLoad=function(){var e=new MutationObserver(this.onMutationObserved);e.observe(this.hostElement,{childList:true,subtree:true});this.mutationObserver=e;this.onMutationObserved()};e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.scheduledAfterRender.forEach((function(e){return e()}));e.scheduledAfterRender=[]}),25)};e.prototype.disconnectedCallback=function(){if(this.mutationObserver){this.mutationObserver.disconnect();this.mutationObserver=null}};e.prototype.valueUpdated=function(){if(this.multiple){return}this.updateSingleOptionAttrs()};e.prototype.selectedOptionsUpdated=function(){if(!this.multiple){return}this.updateMultipleOptionAttrs()};e.prototype.multilineOptionsChanged=function(e,t){var i=this;if(e===t){return}this.optionElements.forEach((function(e){e.multiline=i.multilineOptions}))};e.prototype.onHostElementChange=function(e){if(e.target===this.hostElement&&!this.hostElement.onchange){if(this.multiple){this.selectedOptions=e.detail.selectedOptions}else{this.value=e.detail.value}}};e.prototype.onHostElementInput=function(e){if(this.searchable&&e.target===this.hostElement&&!this.hostElement.oninput){var t=this.optionElements;var i=e.detail.query.trim().toLowerCase();t.forEach((function(e){if(i===""){e.style.display=""}else{var t=e.display,n=t===void 0?"":t,o=e.innerText,s=o===void 0?"":o;var l=n.toLowerCase().includes(i)||s.toLowerCase().includes(i);e.style.display=l?"":"none"}}))}};e.prototype.clickHandler=function(e){var t=e.target;if(t.localName!=="q2-option"||t.disabled){return}this.selectOption(t.value)};e.prototype.keydownHandler=function(e){if(e.key==="Enter"&&this.dropdownOpen){e.preventDefault();var t=this.hostElement.querySelector('[option-id="'+this.activeOptionId+'"]');t&&!t.disabled&&this.selectOption(t.value)}else if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex>0){var i=this.getNextVisibleIndex(-1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(this.activeIndex!==0){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex<this.optionElements.length-1){var i=this.getNextVisibleIndex(1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(!this.activeIndex){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["Escape","Esc"].includes(e.key)){this.closeDropdown();this.focusInput()}else if(e.key==="Tab"){if(this.dropdownOpen&&this.searchable&&e.shiftKey){e.preventDefault();this.focusInput()}else{this.dropdownOpen&&!this.multiple&&e.preventDefault()}}else if(!this.searchable&&e.key.match(/^[a-zA-Z0-9]$/)){this.searchAndFocus(e.key)}};e.prototype.render=function(){var e=this;return n("click-elsewhere",{class:this.wrapperClasses,onChange:this.clickedElsewhere},n("q2-input",{class:"q2-select-input",label:this.label&&this.loc(this.label)||"",value:this.selectedDisplay,errors:Array.isArray(this.errors)&&this.errors.length>0&&this.errors.map((function(t){return e.loc(t)}))||this.invalid&&["tecton.element.select.invalid"]||[],disabled:this.disabled,optional:this.optional,ariaLabel:!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||"",ariaExpanded:this.dropdownOpen,ariaOwns:this.dropdownId,ariaHaspopup:"listbox",role:this.searchable?"combobox":null,pseudo:!this.searchable,"test-id":"toggleDropdown","hide-messages":true,iconRight:"chevron-down",onClick:this.inputClickHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeydownHandler,onFocus:this.inputFocusHandler,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler}),n("div",{class:"custom-display-content",hidden:!this.hasCustomDisplay||!!this.searchText,onClick:this.onCustomDisplayClick},n("slot",{name:"q2-select-display"})),this.optionsDropdown())};e.prototype.optionsDropdown=function(){return n("div",{class:"q2-select-dropdown q2-element-dropdown"},this.multiple?this.visibilityToggle():"",n("div",{class:"q2-select-options",id:this.dropdownId},n("slot",null)))};e.prototype.visibilityToggle=function(){return n("div",{class:"multi-select-header"},this.loc("tecton.element.select.multiHeader.showing"),n("q2-btn",{class:"option-toggle show-all-options"+(this.onlyShowingSelected?"":" selected"),badge:true,"test-id":"allOptionsButton",onClick:this.showAllOptions,onKeyDown:this.showAllOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.all")),n("q2-btn",{class:"option-toggle show-selected-options"+(this.onlyShowingSelected?" selected":""),disabled:this.selectedOptions.length===0,badge:true,"test-id":"selectedOptionsButton",onClick:this.showSelectedOptions,onKeyDown:this.showSelectedOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.selected",[this.selectedOptionsCount])))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueUpdated"],selectedOptions:["selectedOptionsUpdated"],multilineOptions:["multilineOptionsChanged"]}},enumerable:false,configurable:true});return e}());r.style=l}}}));
1
+ var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<i;t++)for(var s=arguments[t],l=0,r=s.length;l<r;l++,o++)n[o]=s[l];return n};System.register(["./p-f08aea0c.system.js","./p-4576db15.system.js"],(function(e){"use strict";var t,i,n,o,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;o=e.g},function(e){s=e.c}],execute:function(){var l="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:block;margin-top:var(--tct-select-margin-top, var(--app-scale-4, 30px));margin-bottom:var(--tct-select-margin-bottom, var(--app-scale-4, 30px))}.q2-select-container{position:relative;display:block}.q2-select-input{margin:0}.custom-display-content{position:absolute;bottom:0;left:calc(var(--tct-scale-2, var(--app-scale-2, 10px)) + 1px);height:44px;width:calc(100% - 34px - var(--tct-scale-3, var(--app-scale-3, 15px)));overflow:hidden;cursor:pointer;-webkit-transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease));transition:left var(--tct-tween-2, var(--app-tween-1, 0.2s ease))}.custom-display-content:not([hidden]){display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.is-searchable.is-focused .custom-display-content,.is-searchable .custom-display-content:active{left:calc(var(--tct-scale-3, var(--app-scale-3, 15px)) + 1px)}.has-error .custom-display-content{width:calc(100% - 68px - var(--tct-scale-3, var(--app-scale-3, 15px)))}.dropdown-open .q2-select-dropdown{overflow-y:auto;max-height:300px}.multi-select-header{padding:var(--tct-scale-1, var(--app-scale-1, 5px))\n var(--tct-scale-2, var(--app-scale-2, 10px))}.show-all-options{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px));margin-left:var(--tct-scale-2, var(--app-scale-2, 10px))}";var r=e("q2_select",function(){function e(e){var n=this;t(this,e);this.change=i(this,"change",7);this.input=i(this,"input",7);this.selectedOptions=[];this.disabled=false;this.multiple=false;this.searchable=false;this.multilineOptions=false;this.optional=false;this.dropdownOpen=false;this.onlyShowingSelected=false;this.hasCustomDisplay=false;this.inputFocused=false;this.scheduledAfterRender=[];this.keyStore={queue:[],lastPressedAt:new Date};this.guid=s();this.dropdownId="q2-select-dropdown-"+this.guid;this.onMutationObserved=function(){var e=n.hostElement.querySelector(".custom-display-content");var t=n.hostElement.shadowRoot.querySelector('slot[name="q2-select-display"]');var i=!!t?t.assignedNodes().length>0:e.children.length>0;if(n.hasCustomDisplay!==i){n.hasCustomDisplay=i}if(n.multiple){n.updateMultipleOptionAttrs();return}n.updateSingleOptionAttrs();var o=n.optionElements[n.activeIndex];if(!o||o.id!==n.activeOptionId){n.activeIndex=n.getDefaultActiveIndex();n.setActiveOption()}};this.searchAndFocus=function(e){var t=function(){var e=(n.activeIndex||0)+1;var t=n.optionElements.map((function(e,t){return{element:e,index:t}}));return __spreadArrays(t.slice(e),t.slice(0,e))};var i=function(){var t=new Date;if(t.getTime()-n.keyStore.lastPressedAt.getTime()>1e3){n.keyStore.queue=[]}if(n.keyStore.queue.length!==1||n.keyStore.queue[0]!==e){n.keyStore.queue.push(e)}n.keyStore.lastPressedAt=t};var o=function(e){return e.find((function(e){return!e.element.disabled&&e.element.display.replace(/\s/g,"").match(new RegExp("^"+n.keyStore.queue.join(""),"i"))}))};var s=function(e){var t=e.element,i=e.index;if(n.dropdownOpen||n.multiple){n.openDropdownWithActiveElement(i)}else{n.activeIndex=i;n.change.emit({value:t.value})}};i();var l=o(t());if(l){s(l)}};this.inputClickHandler=function(e){e.stopPropagation();n.toggleDropdown();n.focusInput()};this.inputInputHandler=function(e){e.stopPropagation();if(!n.dropdownOpen){n.openDropdownWithoutActiveElement()}n.searchText=e.detail.value;n.input.emit({query:e.detail.value})};this.inputKeydownHandler=function(e){if(e.key==="Enter"&&n.dropdownOpen){e.preventDefault();var t=n.hostElement.querySelector('[option-id="'+n.activeOptionId+'"]');t&&!t.disabled&&n.selectOption(t.value)}if(["Escape","Esc"].includes(e.key)){n.closeDropdown();n.focusInput()}if(e.key==="Tab"){if(n.dropdownOpen&&n.searchable&&e.shiftKey){e.preventDefault();n.focusInput()}else{n.dropdownOpen&&!n.multiple&&e.preventDefault()}}};this.inputFocusHandler=function(){n.inputFocused=true};this.inputBlurHandler=function(){n.inputFocused=false};this.inputChangeHandler=function(e){e.stopPropagation()};this.showAllOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey&&n.selectedOptionsCount===0){e.preventDefault()}};this.showSelectedOptionTabKeyDown=function(e){if(e.key==="Tab"&&!e.shiftKey){e.preventDefault()}};this.clickedElsewhere=function(e){var t=e.target;if(t.localName==="click-elsewhere"){e.stopPropagation();if(n.dropdownOpen){n.closeDropdown()}}};this.showSelectedOptions=function(){n.onlyShowingSelected=true;n.optionElements.forEach((function(e){e._multiSelectHidden=!e.selected}))};this.showAllOptions=function(){n.onlyShowingSelected=false;n.optionElements.forEach((function(e){e._multiSelectHidden=false}))};this.onCustomDisplayClick=function(e){e.stopPropagation();n.focusInput();n.toggleDropdown()}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.resizeIframe=function(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()};e.prototype.getDefaultActiveIndex=function(){var e=this.optionElements.findIndex((function(e){return e.selected}));return e>-1?e:0};e.prototype.setActiveOption=function(){var e=this;if(!this.dropdownOpen){return}this.optionElements.forEach((function(t,i){if(e.activeIndex===i){t.active=true;e.activeOptionId=t.optionId}else{t.active=false}}))};e.prototype.setFocusedOption=function(){var e=this.optionElements[this.activeIndex].shadowRoot.querySelector("div");e.dispatchEvent(new FocusEvent("focus"));e.focus()};e.prototype.calculateMultiSelectSelectedDisplay=function(){var e=this;if(this.selectedOptions.length===1){var t=this.optionElements.find((function(t){return t.value===e.selectedOptions[0]}));return t&&t.display&&this.loc(t.display)||t&&t.value||this.selectedOptions[0]}else if(this.selectedOptions.length>1){return this.loc("tecton.element.select.multiDisplay",[this.selectedOptions.length])}else{return""}};e.prototype.calculateSingleSelectSelectedDisplay=function(){var e=this;var t=this.optionElements.find((function(t){return e.value===t.value}));return t&&t.display&&this.loc(t.display)||this.value||""};Object.defineProperty(e.prototype,"selectedDisplay",{get:function(){if(this.hasCustomDisplay&&!this.searchText){return""}if(this.searchable&&this.dropdownOpen){return this.searchText||""}return this.multiple?this.calculateMultiSelectSelectedDisplay():this.calculateSingleSelectSelectedDisplay()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedOptionsCount",{get:function(){return this.selectedOptions.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"optionElements",{get:function(){return Array.from(this.hostElement.querySelectorAll("q2-option"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"wrapperClasses",{get:function(){var e=this.dropdownOpen&&" dropdown-open"||"";var t=Array.isArray(this.errors)&&this.errors.length>0?" has-error":"";var i=this.inputFocused?" is-focused":"";var n=this.searchable?" is-searchable":"";return"q2-select-container"+e+t+i+n},enumerable:false,configurable:true});e.prototype.updateSingleOptionAttrs=function(){var e=this;this.optionElements.forEach((function(t,i){t.selected=e.value===t.value;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.updateMultipleOptionAttrs=function(){var e=this;if(this.selectedOptions.length===0){this.onlyShowingSelected=false}this.optionElements.forEach((function(t,i){t.selected=e.selectedOptions.includes(t.value);t._multiSelectHidden=e.onlyShowingSelected?!t.selected:false;t.optionId="q2-select-"+e.guid+"-option-"+i;t.multiline=e.multilineOptions}))};e.prototype.selectOption=function(e){if(this.multiple){var t=this.selectedOptions.includes(e);if(t){this.change.emit({selectedOptions:this.selectedOptions.filter((function(t){return t!==e}))})}else{this.change.emit({selectedOptions:__spreadArrays(this.selectedOptions,[e])})}}else{this.change.emit({value:e});this.closeDropdown();this.focusInput()}};e.prototype.scrollToActiveOption=function(){var e=this.optionElements[this.activeIndex];e&&e.scrollIntoView({block:"nearest"})};e.prototype.openDropdownWithoutActiveElement=function(){this.activeIndex=undefined;this.setActiveOption();this.dropdownOpen=true;this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.openDropdownWithActiveElement=function(e){var t=this;this.activeIndex=e;this.dropdownOpen=true;this.setActiveOption();this.scheduledAfterRender.push((function(){if(!t.searchable){t.setFocusedOption()}t.scrollToActiveOption();t.resizeIframe()}))};e.prototype.closeDropdown=function(){this.dropdownOpen=false;if(this.searchText){this.searchText="";this.input.emit({query:""})}this.scheduledAfterRender.push(this.resizeIframe)};e.prototype.toggleDropdown=function(){if(this.disabled){return}if(this.searchable){if(!this.dropdownOpen){this.openDropdownWithoutActiveElement()}}else{if(this.dropdownOpen){this.closeDropdown()}else{this.openDropdownWithoutActiveElement()}}};e.prototype.adjustActiveOptionAndScroll=function(e){this.activeIndex+=e;this.setActiveOption();if(!this.searchable){this.setFocusedOption()}this.scrollToActiveOption()};e.prototype.setDefaultActiveElement=function(){this.activeIndex=this.getDefaultActiveIndex();this.setActiveOption();if(!this.searchable){this.setFocusedOption()}};e.prototype.focusInput=function(){var e=this.hostElement.shadowRoot.querySelector("q2-input");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.getNextVisibleIndex=function(e){var t=this.activeIndex+e;while(t>=0&&t<=this.optionElements.length-1){var i=window.getComputedStyle(this.optionElements[t]),n=i.display,o=i.visibility;if(n!=="none"&&o!=="hidden"){return t}t=t+e}return-1};e.prototype.componentDidLoad=function(){var e=new MutationObserver(this.onMutationObserved);e.observe(this.hostElement,{childList:true,subtree:true});this.mutationObserver=e;this.onMutationObserved()};e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.scheduledAfterRender.forEach((function(e){return e()}));e.scheduledAfterRender=[]}),25)};e.prototype.disconnectedCallback=function(){if(this.mutationObserver){this.mutationObserver.disconnect();this.mutationObserver=null}};e.prototype.valueUpdated=function(){if(this.multiple){return}this.updateSingleOptionAttrs()};e.prototype.selectedOptionsUpdated=function(){if(!this.multiple){return}this.updateMultipleOptionAttrs()};e.prototype.multilineOptionsChanged=function(e,t){var i=this;if(e===t){return}this.optionElements.forEach((function(e){e.multiline=i.multilineOptions}))};e.prototype.onHostElementChange=function(e){if(e.target===this.hostElement&&!this.hostElement.onchange){if(this.multiple){this.selectedOptions=e.detail.selectedOptions}else{this.value=e.detail.value}}};e.prototype.onHostElementInput=function(e){if(this.searchable&&e.target===this.hostElement&&!this.hostElement.oninput){var t=this.optionElements;var i=e.detail.query.trim().toLowerCase();t.forEach((function(e){if(i===""){e.style.display=""}else{var t=e.display,n=t===void 0?"":t,o=e.innerText,s=o===void 0?"":o;var l=n.toLowerCase().includes(i)||s.toLowerCase().includes(i);e.style.display=l?"":"none"}}))}};e.prototype.clickHandler=function(e){var t=e.target;if(t.localName!=="q2-option"||t.disabled){return}this.selectOption(t.value)};e.prototype.keydownHandler=function(e){if(e.key==="Enter"&&this.dropdownOpen){e.preventDefault();var t=this.hostElement.querySelector('[option-id="'+this.activeOptionId+'"]');t&&!t.disabled&&this.selectOption(t.value)}else if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex>0){var i=this.getNextVisibleIndex(-1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(this.activeIndex!==0){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();if(this.dropdownOpen){if(this.activeIndex<this.optionElements.length-1){var i=this.getNextVisibleIndex(1);if(i>-1){this.adjustActiveOptionAndScroll(i-this.activeIndex)}}else if(!this.activeIndex){this.setDefaultActiveElement()}}else{this.openDropdownWithActiveElement(this.getDefaultActiveIndex())}}else if(["Escape","Esc"].includes(e.key)){this.closeDropdown();this.focusInput()}else if(e.key==="Tab"){if(this.dropdownOpen&&this.searchable&&e.shiftKey){e.preventDefault();this.focusInput()}else{this.dropdownOpen&&!this.multiple&&e.preventDefault()}}else if(!this.searchable&&e.key.match(/^[a-zA-Z0-9]$/)){this.searchAndFocus(e.key)}};e.prototype.render=function(){var e=this;return n("click-elsewhere",{class:this.wrapperClasses,onChange:this.clickedElsewhere},n("q2-input",{class:"q2-select-input",label:this.label&&this.loc(this.label)||"",value:this.selectedDisplay,errors:Array.isArray(this.errors)&&this.errors.length>0&&this.errors.map((function(t){return e.loc(t)}))||this.invalid&&["tecton.element.select.invalid"]||[],disabled:this.disabled,optional:this.optional,ariaLabel:!this.label&&this.ariaLabel&&this.loc(this.ariaLabel)||"",ariaExpanded:this.dropdownOpen,ariaOwns:this.dropdownId,ariaHaspopup:"listbox",role:this.searchable?"combobox":null,pseudo:!this.searchable,"test-id":"toggleDropdown","hide-messages":true,iconRight:"chevron-down",onClick:this.inputClickHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeydownHandler,onFocus:this.inputFocusHandler,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler}),n("div",{class:"custom-display-content",hidden:!this.hasCustomDisplay||!!this.searchText,onClick:this.onCustomDisplayClick},n("slot",{name:"q2-select-display"})),this.optionsDropdown())};e.prototype.optionsDropdown=function(){return n("div",{class:"q2-select-dropdown q2-element-dropdown"},this.multiple?this.visibilityToggle():"",n("div",{class:"q2-select-options",id:this.dropdownId},n("slot",null)))};e.prototype.visibilityToggle=function(){return n("div",{class:"multi-select-header"},this.loc("tecton.element.select.multiHeader.showing"),n("q2-btn",{class:"option-toggle show-all-options"+(this.onlyShowingSelected?"":" selected"),badge:true,"test-id":"allOptionsButton",onClick:this.showAllOptions,onKeyDown:this.showAllOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.all")),n("q2-btn",{class:"option-toggle show-selected-options"+(this.onlyShowingSelected?" selected":""),disabled:this.selectedOptions.length===0,badge:true,"test-id":"selectedOptionsButton",onClick:this.showSelectedOptions,onKeyDown:this.showSelectedOptionTabKeyDown},this.loc("tecton.element.select.multiHeader.selected",[this.selectedOptionsCount])))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueUpdated"],selectedOptions:["selectedOptionsUpdated"],multilineOptions:["multilineOptionsChanged"]}},enumerable:false,configurable:true});return e}());r.style=l}}}));
@@ -1 +1 @@
1
- System.register(["./p-2d49c74e.system.js"],(function(e){"use strict";var l;return{setters:[function(e){l=e.h}],execute:function(){var i=e("a",{circle:function(e){var i=e.width,t=e.additionalClasses;return l("div",{class:"skeleton-shape circle "+(t||""),style:{width:i,height:i}})},rectangle:function(e){var i=e.width,t=e.height,r=e.borderRadius,a=e.additionalClasses;return l("div",{class:"skeleton-shape rectangle "+(a||""),style:{width:i,height:t,borderRadius:r}})}});var t={field:function(){return l("div",{class:"skeleton-shape field"},l("div",{class:"skeleton-field-label"},i.rectangle({height:"1rem",width:"50%"})),i.rectangle({height:"var(--tct-input-height, 42px)",borderRadius:"3px"}))},text:function(e,t){var r;var a=(r=e===null||e===void 0?void 0:e[0])!==null&&r!==void 0?r:1;var n=t===null||t===void 0?void 0:t.has("header");var d=(t===null||t===void 0?void 0:t.has("center"))&&"center"||(t===null||t===void 0?void 0:t.has("right"))&&"right"||"left";var s=(t===null||t===void 0?void 0:t.has("smallheader"))?" smaller":"";var o=n?"header "+d+s:"";return l("div",{class:"skeleton-shape text"},n&&i.rectangle({width:"60%",additionalClasses:o}),!!a&&Array(a).fill(undefined).map((function(){return i.rectangle({height:"1rem"})})))}};var r=e("s",{rectangle:function(){return i.rectangle({height:"100%",borderRadius:"var(--tct-border-radius-1, 3px)"})},table:function(e,t){var r,a;var n=(r=e===null||e===void 0?void 0:e[0])!==null&&r!==void 0?r:5;var d=(a=e===null||e===void 0?void 0:e[1])!==null&&a!==void 0?a:5;var s=t===null||t===void 0?void 0:t.has("headless");var o=t===null||t===void 0?void 0:t.has("bordered");return l("div",{class:"skeleton-shape table"},!s&&l("div",{class:"skeleton-table-head"},l("div",{class:"skeleton-table-row skeleton-table-header flex"},!!n&&Array(n).fill(undefined).map((function(){return i.rectangle({height:"1rem"})}))),l("div",{class:"skeleton-table-row-border"},i.rectangle({height:"3px"}))),l("div",{class:"skeleton-table-body"},!!d&&Array(d).fill(undefined).map((function(){return l("div",{class:"skeleton-table-row-wrapper"},l("div",{class:"skeleton-table-row flex"},!!n&&Array(n).fill(undefined).map((function(){return i.rectangle({height:"1.5rem"})}))),o&&l("div",{class:"skeleton-table-row-border"},i.rectangle({height:"1px",additionalClasses:"no-margin"})))}))))},field:t.field,form:function(e){var i,r,a;var n=(i=(e===null||e===void 0?void 0:e[1])&&(e===null||e===void 0?void 0:e[0]))!==null&&i!==void 0?i:1;var d=(a=(r=e===null||e===void 0?void 0:e[1])!==null&&r!==void 0?r:e===null||e===void 0?void 0:e[0])!==null&&a!==void 0?a:1;var s=n*d;return l("div",{class:"skeleton-shape form flex columns-"+n},!!s&&Array(s).fill(undefined).map(t.field))},text:t.text,"detailed-item":function(e,r){var a=r===null||r===void 0?void 0:r.has("square");var n=(r===null||r===void 0?void 0:r.has("center"))&&"center"||(r===null||r===void 0?void 0:r.has("right"))&&"right"||"left";return l("div",{class:"skeleton-shape detailed-item flex "+n},l("div",{class:"detailed-item-image flex-"+n},a?i.rectangle({width:"1.5em",height:"1.5em",borderRadius:"3px"}):i.circle({width:"1.5em"})),l("div",{class:"detailed-item-text flex flex-v-center flex-"+n},l("div",null,t.text(e,r))))},"label-value":function(e){var t;var r=2*((t=e===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:1);return l("div",{class:"skeleton-shape label-value flex"},!!r&&Array(r).fill(undefined).map((function(){return i.rectangle({height:"1rem"})})))}})}}}));
1
+ System.register(["./p-f08aea0c.system.js"],(function(e){"use strict";var l;return{setters:[function(e){l=e.h}],execute:function(){var i=e("a",{circle:function(e){var i=e.width,t=e.additionalClasses;return l("div",{class:"skeleton-shape circle "+(t||""),style:{width:i,height:i}})},rectangle:function(e){var i=e.width,t=e.height,a=e.borderRadius,r=e.additionalClasses;return l("div",{class:"skeleton-shape rectangle "+(r||""),style:{width:i,height:t,borderRadius:a}})}});var t={field:function(){return l("div",{class:"skeleton-shape field"},l("div",{class:"skeleton-field-label"},i.rectangle({height:"1rem",width:"50%"})),i.rectangle({height:"var(--tct-input-height, 42px)",borderRadius:"3px"}))},text:function(e,t){var a;var r=(a=e===null||e===void 0?void 0:e[0])!==null&&a!==void 0?a:1;var n=t===null||t===void 0?void 0:t.has("header");var d=(t===null||t===void 0?void 0:t.has("center"))&&"center"||(t===null||t===void 0?void 0:t.has("right"))&&"right"||"left";var s=(t===null||t===void 0?void 0:t.has("smallheader"))?" smaller":"";var o=n?"header "+d+s:"";return l("div",{class:"skeleton-shape text"},n&&i.rectangle({width:"60%",additionalClasses:o}),!!r&&Array(r).fill(undefined).map((function(){return i.rectangle({height:"1rem"})})))}};var a=e("s",{rectangle:function(){return i.rectangle({height:"100%",borderRadius:"var(--tct-border-radius-1, 3px)"})},table:function(e,t){var a,r;var n=(a=e===null||e===void 0?void 0:e[0])!==null&&a!==void 0?a:5;var d=(r=e===null||e===void 0?void 0:e[1])!==null&&r!==void 0?r:5;var s=t===null||t===void 0?void 0:t.has("headless");var o=t===null||t===void 0?void 0:t.has("bordered");return l("div",{class:"skeleton-shape table"},!s&&l("div",{class:"skeleton-table-head"},l("div",{class:"skeleton-table-row skeleton-table-header flex"},!!n&&Array(n).fill(undefined).map((function(){return i.rectangle({height:"1rem"})}))),l("div",{class:"skeleton-table-row-border"},i.rectangle({height:"3px"}))),l("div",{class:"skeleton-table-body"},!!d&&Array(d).fill(undefined).map((function(){return l("div",{class:"skeleton-table-row-wrapper"},l("div",{class:"skeleton-table-row flex"},!!n&&Array(n).fill(undefined).map((function(){return i.rectangle({height:"1.5rem"})}))),o&&l("div",{class:"skeleton-table-row-border"},i.rectangle({height:"1px",additionalClasses:"no-margin"})))}))))},field:t.field,form:function(e){var i,a,r;var n=(i=(e===null||e===void 0?void 0:e[1])&&(e===null||e===void 0?void 0:e[0]))!==null&&i!==void 0?i:1;var d=(r=(a=e===null||e===void 0?void 0:e[1])!==null&&a!==void 0?a:e===null||e===void 0?void 0:e[0])!==null&&r!==void 0?r:1;var s=n*d;return l("div",{class:"skeleton-shape form flex columns-"+n},!!s&&Array(s).fill(undefined).map(t.field))},text:t.text,"detailed-item":function(e,a){var r=a===null||a===void 0?void 0:a.has("square");var n=(a===null||a===void 0?void 0:a.has("center"))&&"center"||(a===null||a===void 0?void 0:a.has("right"))&&"right"||"left";return l("div",{class:"skeleton-shape detailed-item flex "+n},l("div",{class:"detailed-item-image flex-"+n},r?i.rectangle({width:"1.5em",height:"1.5em",borderRadius:"3px"}):i.circle({width:"1.5em"})),l("div",{class:"detailed-item-text flex flex-v-center flex-"+n},l("div",null,t.text(e,a))))},"label-value":function(e){var t;var a=2*((t=e===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:1);return l("div",{class:"skeleton-shape label-value flex"},!!a&&Array(a).fill(undefined).map((function(){return i.rectangle({height:"1rem"})})))}})}}}));
@@ -1 +1 @@
1
- import{r as t,h as a,g as i}from"./p-7ff881d1.js";const r=class{constructor(a){t(this,a),this.badSrc=!1,this.onError=()=>{this.badSrc=!0}}srcDidUpdate(){this.badSrc=!1}getInitials(t){const a=t.split(" ");return`${a[0][0]}${a[a.length-1][0]}`.toUpperCase()}render(){return a("div",null,this.src&&!this.badSrc?a("img",{class:"avatar-img","test-id":"userImage",src:this.src,onError:this.onError}):"",!this.name||this.src&&!this.badSrc?"":a("div",{"test-id":"userInitials",class:"avatar-initials"},this.getInitials(this.name)),this.name||this.src&&!this.badSrc?"":a("img",{"test-id":"fallbackImage",class:"fallback",src:"https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png"}))}get el(){return i(this)}static get watchers(){return{src:["srcDidUpdate"]}}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.avatar-img{-o-object-fit:cover;object-fit:cover;height:var(--tct-avatar-img-height, 44px);width:var(--tct-avatar-img-width, 44px);border-radius:var(--tct-avatar-img-br, 50%)}.avatar-initials{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:var(--tct-avatar-height, 44px);width:var(--tct-avatar-width, 44px);background-color:var(--tct-avatar-bg,#9e9e9e);color:var(--tct-avatar-color, #ffffff);font-size:var(--tct-avatar-font-size, 20px);font-weight:var(--tct-avatar-font-weight, 200);border-radius:var(--tct-avatar-br, 50%)}.fallback{height:var(--tct-avatar-fallback-height, 44px);width:var(--tct-avatar-fallback-width, 44px);border-radius:var(--tct-avatar-fallback-br, 50%)}";export{r as q2_avatar}
1
+ import{r as t,h as a,g as i}from"./p-1a8e579d.js";const r=class{constructor(a){t(this,a),this.badSrc=!1,this.onError=()=>{this.badSrc=!0}}srcDidUpdate(){this.badSrc=!1}getInitials(t){const a=t.split(" ");return`${a[0][0]}${a[a.length-1][0]}`.toUpperCase()}render(){return a("div",null,this.src&&!this.badSrc?a("img",{class:"avatar-img","test-id":"userImage",src:this.src,onError:this.onError}):"",!this.name||this.src&&!this.badSrc?"":a("div",{"test-id":"userInitials",class:"avatar-initials"},this.getInitials(this.name)),this.name||this.src&&!this.badSrc?"":a("img",{"test-id":"fallbackImage",class:"fallback",src:"https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png"}))}get el(){return i(this)}static get watchers(){return{src:["srcDidUpdate"]}}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.avatar-img{-o-object-fit:cover;object-fit:cover;height:var(--tct-avatar-img-height, 44px);width:var(--tct-avatar-img-width, 44px);border-radius:var(--tct-avatar-img-br, 50%)}.avatar-initials{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:var(--tct-avatar-height, 44px);width:var(--tct-avatar-width, 44px);background-color:var(--tct-avatar-bg,#9e9e9e);color:var(--tct-avatar-color, #ffffff);font-size:var(--tct-avatar-font-size, 20px);font-weight:var(--tct-avatar-font-weight, 200);border-radius:var(--tct-avatar-br, 50%)}.fallback{height:var(--tct-avatar-fallback-height, 44px);width:var(--tct-avatar-fallback-width, 44px);border-radius:var(--tct-avatar-fallback-br, 50%)}";export{r as q2_avatar}
@@ -1 +1 @@
1
- import{r as e,h as r,H as t,g as o}from"./p-7ff881d1.js";const a=class{constructor(r){e(this,r),this.generatePaneClass=e=>"q2-carousel-pane swiper-slide q2-carousel-pane-"+e}get currentPaneIndex(){return Array.prototype.indexOf.call(this.hostElement.parentElement.children,this.hostElement)}loc(e,r){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,r):e}render(){return r(t,{class:this.generatePaneClass(this.currentPaneIndex),tabIndex:"0","aria-hidden":this.hideFromScreenReader,"aria-label":this.label},r("article",{class:"q2-carousel-pane-main-content"},r("slot",null),r("span",{class:"sr-only item-count"},this.loc("tecton.element.carousel.itemDescription",[(this.currentPaneIndex+1).toString()]),this.loc("tecton.element.carousel.collectionDescription",[(this.siblingCount||0).toString()]))))}get hostElement(){return o(this)}};a.style="q2-carousel .swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition:all .2s;transition:all .2s}.q2-carousel-pane .q2-carousel-pane-main-content{-webkit-box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.25);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.25);background-color:var(---tct-carousel-background-color, #FFFFFF);border:var(--tct-carousel-pane-border-width, 1px) solid var(--tct-carousel-pane-border-color, #CCCCCC);border-radius:var(--tct-carousel-pane-border-radius, 8px);padding:var(--tct-carousel-pane-padding, .5rem .5rem .5rem .5rem);min-height:10em}q2-carousel-pane.q2-carousel-pane:focus{-webkit-box-shadow:none;box-shadow:none}.q2-carousel-pane:focus .q2-carousel-pane-main-content{outline:none;-webkit-box-shadow:0 0 0 2px #33B4FF;box-shadow:0 0 0 2px #33B4FF;}.q2-carousel-pane .q2-carousel-pane-main-content:hover{cursor:-webkit-grab;cursor:grab}";export{a as q2_carousel_pane}
1
+ import{r as e,h as r,H as t,g as o}from"./p-1a8e579d.js";const a=class{constructor(r){e(this,r),this.generatePaneClass=e=>"q2-carousel-pane swiper-slide q2-carousel-pane-"+e}get currentPaneIndex(){return Array.prototype.indexOf.call(this.hostElement.parentElement.children,this.hostElement)}loc(e,r){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,r):e}render(){return r(t,{class:this.generatePaneClass(this.currentPaneIndex),tabIndex:"0","aria-hidden":this.hideFromScreenReader,"aria-label":this.label},r("article",{class:"q2-carousel-pane-main-content"},r("slot",null),r("span",{class:"sr-only item-count"},this.loc("tecton.element.carousel.itemDescription",[(this.currentPaneIndex+1).toString()]),this.loc("tecton.element.carousel.collectionDescription",[(this.siblingCount||0).toString()]))))}get hostElement(){return o(this)}};a.style="q2-carousel .swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition:all .2s;transition:all .2s}.q2-carousel-pane .q2-carousel-pane-main-content{-webkit-box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.25);box-shadow:0px 2px 8px 0px rgba(0, 0, 0, 0.25);background-color:var(---tct-carousel-background-color, #FFFFFF);border:var(--tct-carousel-pane-border-width, 1px) solid var(--tct-carousel-pane-border-color, #CCCCCC);border-radius:var(--tct-carousel-pane-border-radius, 8px);padding:var(--tct-carousel-pane-padding, .5rem .5rem .5rem .5rem);min-height:10em}q2-carousel-pane.q2-carousel-pane:focus{-webkit-box-shadow:none;box-shadow:none}.q2-carousel-pane:focus .q2-carousel-pane-main-content{outline:none;-webkit-box-shadow:0 0 0 2px #33B4FF;box-shadow:0 0 0 2px #33B4FF;}.q2-carousel-pane .q2-carousel-pane-main-content:hover{cursor:-webkit-grab;cursor:grab}";export{a as q2_carousel_pane}
@@ -1 +1 @@
1
- System.register(["./p-2d49c74e.system.js"],(function(e){"use strict";var t,o,n;return{setters:[function(e){t=e.r;o=e.h;n=e.g}],execute:function(){var r="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:-ms-inline-flexbox;display:inline-flex}.dropdown-container{position:relative;display:block}.dropdown-button-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.dropdown-button.unstyled .dropdown-button-content{padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}.dropdown-button:not([icon]) q2-icon{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px))}.q2-element-dropdown{width:var(--tct-user-dropdown-width, 175px)}.q2-element-dropdown.dropup{bottom:40px}";var i=e("q2_dropdown",function(){function e(e){var o=this;t(this,e);this.type="icon";this.dropdownOpen=false;this.scheduledAfterRender=[];this.dropdownItemSelector="q2-dropdown-item:not([disabled]):not([separator])";this.focusToggle=function(){var e=o.hostElement.shadowRoot.querySelector(".dropdown-button");e&&e.dispatchEvent(new FocusEvent("focus"))};this.calculatePopDirection=function(){var e=o.hostElement.shadowRoot.querySelector(".q2-element-dropdown");e.classList.add("sizable");var t=e.getBoundingClientRect().height;e.classList.remove("sizable");var n=o.hostElement.shadowRoot.querySelector(".dropdown-button");var r=n.getBoundingClientRect(),i=r.top,s=r.height;var a=window.innerHeight-i-s;return a<t?"up":"down"};this.openDropdown=function(){o.privatePopDirection=o.popDirection||o.calculatePopDirection();if(!o.dropdownOpen){o.dropdownOpen=true;o.scheduledAfterRender.push(o.resizeIframe)}};this.closeDropdown=function(){if(o.dropdownOpen){o.dropdownOpen=false;o.scheduledAfterRender.push((function(){o.resizeIframe();o.focusToggle()}))}};this.onClickElsewhere=function(e){var t=e.target;if(t.localName==="click-elsewhere"){e.stopPropagation();o.closeDropdown()}};this.onToggleClick=function(){if(o.dropdownOpen){o.closeDropdown();return}o.openDropdown()};this.onToggleKeydown=function(e){if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();o.openDropdown();o.focusLastItem();return}if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();o.openDropdown();o.focusFirstItem();return}if(["Escape","Esc"].includes(e.key)){e.preventDefault();o.closeDropdown();return}};this.onDropdownMenuClick=function(e){if(e.target.localName!=="q2-dropdown-item"){return}var t=e.target;if(!t.disabled&&!t.separator){o.closeDropdown()}};this.onDropdownMenuKeydown=function(e){if(["Escape","Esc"].includes(e.key)){o.closeDropdown();return}if(e.target.localName!=="q2-dropdown-item"){return}var t=e.target;if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();o.focusAdjacentItem(t,"prev");return}if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();o.focusAdjacentItem(t,"next");return}}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.resizeIframe=function(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()};e.prototype.resolveMenu=function(){return this.name&&window.TectonElements&&window.TectonElements.resolveMenu(this.name,this.contextValue)};e.prototype.orchestrateResolvedMenuItems=function(){var e=this;if(!this.name||!this.context){this.removeResolvedElements();return}this.resolveMenuItemElements().then((function(t){e.removeResolvedElements();t.forEach((function(t){e.hostElement.appendChild(t)}))})).catch((function(t){e.removeResolvedElements();throw t}))};e.prototype.removeResolvedElements=function(){var e=this;var t=this.hostElement.querySelectorAll("q2-dropdown-item.resolved-menu-item");t.forEach((function(t){return e.hostElement.removeChild(t)}))};e.prototype.resolveMenuItemElements=function(){var e=this;return this.resolveMenu().then((function(t){return t.map((function(t){var o;switch(t.action){case"navigateTo":o=function(){return e.navigateTo(t.featureName,t.moduleName)};break;case"showOverpanel":o=function(){return e.navigateToOverpanel(t.featureName,t.moduleName)};break}var n=document.createElement("q2-dropdown-item");n.setAttribute("value",t.itemLabel);n.classList.add("resolved-menu-item");n.innerHTML=t.itemLabel;n.onclick=o;return n}))}))};e.prototype.navigateTo=function(e,t){return window.TectonElements&&window.TectonElements.navigateTo(e,t)};e.prototype.navigateToOverpanel=function(e,t){return window.TectonElements&&window.TectonElements.navigateToOverpanel(e,t)};Object.defineProperty(e.prototype,"toggleButtonProps",{get:function(){var e=["icon","fab","primary","secondary"];var t=e.includes(this.type)?this.type:"";var o=t==="icon";var n=t==="fab";var r=["primary","secondary"].includes(t)?t:undefined;var i=this.dropdownOpen;var s=!!this.disabled;var a=this.dropdownOpen;var d=!this.label&&this.ariaLabel?this.loc(this.ariaLabel):undefined;var l="dropdown-button"+(!o&&!n&&!r?" unstyled":"");return{icon:o,fab:n,color:r,active:i,disabled:s,ariaExpanded:a,ariaLabel:d,className:l}},enumerable:false,configurable:true});e.prototype.nameHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.contextHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.contextValueHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.componentDidLoad=function(){this.orchestrateResolvedMenuItems()};e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.scheduledAfterRender.forEach((function(e){return e()}));e.scheduledAfterRender=[]}),25)};e.prototype.focusFirstItem=function(){var e=this.hostElement.querySelector(this.dropdownItemSelector+":first-child");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.focusLastItem=function(){var e=this.hostElement.querySelector(this.dropdownItemSelector+":last-child");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.focusAdjacentItem=function(e,t){var o=Array.from(this.hostElement.querySelectorAll(this.dropdownItemSelector));var n=o.indexOf(e);if(n===-1){return}var r=0;if(t==="next"){if(n<o.length-1){r=n+1}else{r=0}}else if(t==="prev"){if(n>0){r=n-1}else{r=o.length-1}}var i=o[r];i&&i.dispatchEvent(new Event("focus"))};e.prototype.render=function(){var e=this.toggleButtonProps;return o("click-elsewhere",{class:"dropdown-container"+(this.dropdownOpen?" dropdown-open":""),onChange:this.onClickElsewhere},o("q2-btn",{class:e.className,onClick:this.onToggleClick,onKeyDown:this.onToggleKeydown,icon:e.icon,fab:e.fab,color:e.color,active:e.active,disabled:e.disabled,ariaExpanded:e.ariaExpanded,ariaLabel:e.ariaLabel,ariaHasPopup:"menu","test-id":"dropdownButton"},o("div",{class:"dropdown-button-content"},this.icon&&o("q2-icon",{type:this.icon}),this.label&&o("span",{class:"dropdown-button-text"},this.loc(this.label)))),o("div",{class:"q2-element-dropdown "+(this.privatePopDirection==="up"?"dropup":""),role:"menu",onClick:this.onDropdownMenuClick,onKeyDown:this.onDropdownMenuKeydown},o("div",null,o("slot",null),this.dropdownOpen&&o("q2-btn",{class:"sr close-dropdown",onFocus:this.closeDropdown}))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["nameHandler"],context:["contextHandler"],contextValue:["contextValueHandler"]}},enumerable:false,configurable:true});return e}());i.style=r}}}));
1
+ System.register(["./p-f08aea0c.system.js"],(function(e){"use strict";var t,o,n;return{setters:[function(e){t=e.r;o=e.h;n=e.g}],execute:function(){var r="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.q2-element-dropdown{display:none;position:absolute;background-color:var(--app-white);color:var(--t-font-color);left:0;width:100%;z-index:100;margin-top:1px;-webkit-box-shadow:var(--app-shadow-1);box-shadow:var(--app-shadow-1);height:0;overflow:hidden;opacity:0;visibility:hidden;-webkit-transition:opacity var(--app-tween-1);transition:opacity var(--app-tween-1);border-radius:var(--tct-dropdown-element-br, 0)}.q2-element-dropdown.sizable{display:block;height:auto}.dropdown-open .q2-element-dropdown{display:block;height:auto;overflow:auto;opacity:1;visibility:visible;margin-bottom:var(--app-scale-2)}:host([alignment='right']) .q2-element-dropdown{left:auto;right:0}:host{display:-ms-inline-flexbox;display:inline-flex}.dropdown-container{position:relative;display:block}.dropdown-button-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.dropdown-button.unstyled .dropdown-button-content{padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}.dropdown-button:not([icon]) q2-icon{margin-right:var(--tct-scale-1, var(--app-scale-1, 5px))}.q2-element-dropdown{width:var(--tct-user-dropdown-width, 175px)}.q2-element-dropdown.dropup{bottom:40px}";var i=e("q2_dropdown",function(){function e(e){var o=this;t(this,e);this.type="icon";this.dropdownOpen=false;this.scheduledAfterRender=[];this.dropdownItemSelector="q2-dropdown-item:not([disabled]):not([separator])";this.focusToggle=function(){var e=o.hostElement.shadowRoot.querySelector(".dropdown-button");e&&e.dispatchEvent(new FocusEvent("focus"))};this.calculatePopDirection=function(){var e=o.hostElement.shadowRoot.querySelector(".q2-element-dropdown");e.classList.add("sizable");var t=e.getBoundingClientRect().height;e.classList.remove("sizable");var n=o.hostElement.shadowRoot.querySelector(".dropdown-button");var r=n.getBoundingClientRect(),i=r.top,s=r.height;var a=window.innerHeight-i-s;return a<t?"up":"down"};this.openDropdown=function(){o.privatePopDirection=o.popDirection||o.calculatePopDirection();if(!o.dropdownOpen){o.dropdownOpen=true;o.scheduledAfterRender.push(o.resizeIframe)}};this.closeDropdown=function(){if(o.dropdownOpen){o.dropdownOpen=false;o.scheduledAfterRender.push((function(){o.resizeIframe();o.focusToggle()}))}};this.onClickElsewhere=function(e){var t=e.target;if(t.localName==="click-elsewhere"){e.stopPropagation();o.closeDropdown()}};this.onToggleClick=function(){if(o.dropdownOpen){o.closeDropdown();return}o.openDropdown()};this.onToggleKeydown=function(e){if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();o.openDropdown();o.focusLastItem();return}if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();o.openDropdown();o.focusFirstItem();return}if(["Escape","Esc"].includes(e.key)){e.preventDefault();o.closeDropdown();return}};this.onDropdownMenuClick=function(e){if(e.target.localName!=="q2-dropdown-item"){return}var t=e.target;if(!t.disabled&&!t.separator){o.closeDropdown()}};this.onDropdownMenuKeydown=function(e){if(["Escape","Esc"].includes(e.key)){o.closeDropdown();return}if(e.target.localName!=="q2-dropdown-item"){return}var t=e.target;if(["ArrowUp","Up"].includes(e.key)){e.preventDefault();o.focusAdjacentItem(t,"prev");return}if(["ArrowDown","Down"].includes(e.key)){e.preventDefault();o.focusAdjacentItem(t,"next");return}}}e.prototype.loc=function(e,t){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(e,t):e};e.prototype.resizeIframe=function(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()};e.prototype.resolveMenu=function(){return this.name&&window.TectonElements&&window.TectonElements.resolveMenu(this.name,this.contextValue)};e.prototype.orchestrateResolvedMenuItems=function(){var e=this;if(!this.name||!this.context){this.removeResolvedElements();return}this.resolveMenuItemElements().then((function(t){e.removeResolvedElements();t.forEach((function(t){e.hostElement.appendChild(t)}))})).catch((function(t){e.removeResolvedElements();throw t}))};e.prototype.removeResolvedElements=function(){var e=this;var t=this.hostElement.querySelectorAll("q2-dropdown-item.resolved-menu-item");t.forEach((function(t){return e.hostElement.removeChild(t)}))};e.prototype.resolveMenuItemElements=function(){var e=this;return this.resolveMenu().then((function(t){return t.map((function(t){var o;switch(t.action){case"navigateTo":o=function(){return e.navigateTo(t.featureName,t.moduleName)};break;case"showOverpanel":o=function(){return e.navigateToOverpanel(t.featureName,t.moduleName)};break}var n=document.createElement("q2-dropdown-item");n.setAttribute("value",t.itemLabel);n.classList.add("resolved-menu-item");n.innerHTML=t.itemLabel;n.onclick=o;return n}))}))};e.prototype.navigateTo=function(e,t){return window.TectonElements&&window.TectonElements.navigateTo(e,t)};e.prototype.navigateToOverpanel=function(e,t){return window.TectonElements&&window.TectonElements.navigateToOverpanel(e,t)};Object.defineProperty(e.prototype,"toggleButtonProps",{get:function(){var e=["icon","fab","primary","secondary"];var t=e.includes(this.type)?this.type:"";var o=t==="icon";var n=t==="fab";var r=["primary","secondary"].includes(t)?t:undefined;var i=this.dropdownOpen;var s=!!this.disabled;var a=this.dropdownOpen;var d=!this.label&&this.ariaLabel?this.loc(this.ariaLabel):undefined;var l="dropdown-button"+(!o&&!n&&!r?" unstyled":"");return{icon:o,fab:n,color:r,active:i,disabled:s,ariaExpanded:a,ariaLabel:d,className:l}},enumerable:false,configurable:true});e.prototype.nameHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.contextHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.contextValueHandler=function(){this.orchestrateResolvedMenuItems()};e.prototype.componentDidLoad=function(){this.orchestrateResolvedMenuItems()};e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.scheduledAfterRender.forEach((function(e){return e()}));e.scheduledAfterRender=[]}),25)};e.prototype.focusFirstItem=function(){var e=this.hostElement.querySelector(this.dropdownItemSelector+":first-child");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.focusLastItem=function(){var e=this.hostElement.querySelector(this.dropdownItemSelector+":last-child");e&&e.dispatchEvent(new FocusEvent("focus"))};e.prototype.focusAdjacentItem=function(e,t){var o=Array.from(this.hostElement.querySelectorAll(this.dropdownItemSelector));var n=o.indexOf(e);if(n===-1){return}var r=0;if(t==="next"){if(n<o.length-1){r=n+1}else{r=0}}else if(t==="prev"){if(n>0){r=n-1}else{r=o.length-1}}var i=o[r];i&&i.dispatchEvent(new Event("focus"))};e.prototype.render=function(){var e=this.toggleButtonProps;return o("click-elsewhere",{class:"dropdown-container"+(this.dropdownOpen?" dropdown-open":""),onChange:this.onClickElsewhere},o("q2-btn",{class:e.className,onClick:this.onToggleClick,onKeyDown:this.onToggleKeydown,icon:e.icon,fab:e.fab,color:e.color,active:e.active,disabled:e.disabled,ariaExpanded:e.ariaExpanded,ariaLabel:e.ariaLabel,ariaHasPopup:"menu","test-id":"dropdownButton"},o("div",{class:"dropdown-button-content"},this.icon&&o("q2-icon",{type:this.icon}),this.label&&o("span",{class:"dropdown-button-text"},this.loc(this.label)))),o("div",{class:"q2-element-dropdown "+(this.privatePopDirection==="up"?"dropup":""),role:"menu",onClick:this.onDropdownMenuClick,onKeyDown:this.onDropdownMenuKeydown},o("div",null,o("slot",null),this.dropdownOpen&&o("q2-btn",{class:"sr close-dropdown",onFocus:this.closeDropdown}))))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["nameHandler"],context:["contextHandler"],contextValue:["contextValueHandler"]}},enumerable:false,configurable:true});return e}());i.style=r}}}));
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,g as s}from"./p-7ff881d1.js";import{c as r}from"./p-1d4bf5ef.js";function n(t){return"function"==typeof t}let o=!1;const a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=t},get useDeprecatedSynchronousErrorHandling(){return o}};function c(t){setTimeout(()=>{throw t},0)}const h={closed:!0,next(t){},error(t){if(a.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete(){}},l=Array.isArray||(t=>t&&"number"==typeof t.length);function u(t){return null!==t&&"object"==typeof t}const f=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class b{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:i,_ctorUnsubscribe:e,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof b)i.remove(this);else if(null!==i)for(let n=0;n<i.length;++n)i[n].remove(this);if(n(s)){e&&(this._unsubscribe=void 0);try{s.call(this)}catch(o){t=o instanceof f?d(o.errors):[o]}}if(l(r)){let i=-1,e=r.length;for(;++i<e;){const e=r[i];if(u(e))try{e.unsubscribe()}catch(o){t=t||[],o instanceof f?t=t.concat(d(o.errors)):t.push(o)}}}if(t)throw new f(t)}add(t){let i=t;if(!t)return b.EMPTY;switch(typeof t){case"function":i=new b(t);case"object":if(i===this||i.closed||"function"!=typeof i.unsubscribe)return i;if(this.closed)return i.unsubscribe(),i;if(!(i instanceof b)){const t=i;i=new b,i._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:e}=i;if(null===e)i._parentOrParents=this;else if(e instanceof b){if(e===this)return i;i._parentOrParents=[e,this]}else{if(-1!==e.indexOf(this))return i;e.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[i]:s.push(i),i}remove(t){const i=this._subscriptions;if(i){const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}function d(t){return t.reduce((t,i)=>t.concat(i instanceof f?i.errors:i),[])}b.EMPTY=function(t){return t.closed=!0,t}(new b);const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class v extends b{constructor(t,i,e){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=h;break;case 1:if(!t){this.destination=h;break}if("object"==typeof t){t instanceof v?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new w(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new w(this,t,i,e)}}[p](){return this}static create(t,i,e){const s=new v(t,i,e);return s.syncErrorThrowable=!1,s}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class w extends v{constructor(t,i,e,s){let r;super(),this._parentSubscriber=t;let o=this;n(i)?r=i:i&&(r=i.next,e=i.error,s=i.complete,i!==h&&(o=Object.create(i),n(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=e,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:i}=this;a.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?this.__tryOrSetError(i,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:i}=this,{useDeprecatedSynchronousErrorHandling:e}=a;if(this._error)e&&i.syncErrorThrowable?(this.__tryOrSetError(i,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(i.syncErrorThrowable)e?(i.syncErrorValue=t,i.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),e)throw t;c(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const i=()=>this._complete.call(this._context);a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,i){try{t.call(this._context,i)}catch(e){if(this.unsubscribe(),a.useDeprecatedSynchronousErrorHandling)throw e;c(e)}}__tryOrSetError(t,i,e){if(!a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{i.call(this._context,e)}catch(s){return a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(c(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const y="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(t){return t}class g{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new g;return i.source=this,i.operator=t,i}subscribe(t,i,e){const{operator:s}=this,r=function(t,i,e){if(t){if(t instanceof v)return t;if(t[p])return t[p]()}return t||i||e?new v(t,i,e):new v(h)}(t,i,e);if(r.add(s?s.call(r,this.source):this.source||a.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(i){a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function(t){for(;t;){const{closed:i,destination:e,isStopped:s}=t;if(i||s)return!1;t=e&&e instanceof v?e:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=m(i))((i,e)=>{let s;s=this.subscribe(i=>{try{t(i)}catch(r){e(r),s&&s.unsubscribe()}},e,i)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[y](){return this}pipe(...t){return 0===t.length?this:(0===(i=t).length?x:1===i.length?i[0]:function(t){return i.reduce((t,i)=>i(t),t)})(this);var i}toPromise(t){return new(t=m(t))((t,i)=>{let e;this.subscribe(t=>e=t,t=>i(t),()=>t(e))})}}function m(t){if(t||(t=Promise),!t)throw new Error("no Promise impl found");return t}g.create=t=>new g(t);class _ extends b{constructor(t,i){super()}schedule(t,i=0){return this}}class k{constructor(t,i=k.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,e){return new this.SchedulerAction(this,t).schedule(e,i)}}k.now=()=>Date.now();class S extends k{constructor(t,i=k.now){super(t,()=>S.delegate&&S.delegate!==this?S.delegate.now():i()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,i=0,e){return S.delegate&&S.delegate!==this?S.delegate.schedule(t,i,e):super.schedule(t,i,e)}flush(t){const{actions:i}=this;if(this.active)return void i.push(t);let e;this.active=!0;do{if(e=t.execute(t.state,t.delay))break}while(t=i.shift());if(this.active=!1,e){for(;t=i.shift();)t.unsubscribe();throw e}}}const E=new S(class extends _{constructor(t,i){super(t,i),this.scheduler=t,this.work=i,this.pending=!1}schedule(t,i=0){if(this.closed)return this;this.state=t;const e=this.id,s=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(s,e,i)),this.pending=!0,this.delay=i,this.id=this.id||this.requestAsyncId(s,this.id,i),this}requestAsyncId(t,i,e=0){return setInterval(t.flush.bind(t,this),e)}recycleAsyncId(t,i,e=0){if(null!==e&&this.delay===e&&!1===this.pending)return i;clearInterval(i)}execute(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const e=this._execute(t,i);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,i){let e=!1,s=void 0;try{this.work(t)}catch(r){e=!0,s=!!r&&r||new Error(r)}if(e)return this.unsubscribe(),s}_unsubscribe(){const t=this.id,i=this.scheduler,e=i.actions,s=e.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&e.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(i,t,null)),this.delay=null}});class L{constructor(t,i){this.project=t,this.thisArg=i}call(t,i){return i.subscribe(new O(t,this.project,this.thisArg))}}class O extends v{constructor(t,i,e){super(t),this.project=i,this.count=0,this.thisArg=e||this}_next(t){let i;try{i=this.project.call(this.thisArg,t,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(i)}}const j="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";class z extends v{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class P extends v{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function $(t){const{subscriber:i,counter:e,period:s}=t;i.next(e),this.schedule({subscriber:i,counter:e+1,period:s},s)}class A{constructor(t){this.durationSelector=t}call(t,i){return i.subscribe(new C(t,this.durationSelector))}}class C extends P{constructor(t,i){super(t),this.durationSelector=i,this.hasValue=!1}_next(t){try{const i=this.durationSelector.call(this,t);i&&this._tryNext(t,i)}catch(i){this.destination.error(i)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(t,i){let e=this.durationSubscription;this.value=t,this.hasValue=!0,e&&(e.unsubscribe(),this.remove(e)),e=function(t,i){if(!i.closed)return t instanceof g?t.subscribe(i):(t=>{if(t&&"function"==typeof t[y])return o=t,t=>{const i=o[y]();if("function"!=typeof i.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return i.subscribe(t)};if((n=t)&&"number"==typeof n.length&&"function"!=typeof n)return r=t,t=>{for(let i=0,e=r.length;i<e&&!t.closed;i++)t.next(r[i]);t.complete()};if((s=t)&&"function"!=typeof s.subscribe&&"function"==typeof s.then)return e=t,t=>(e.then(i=>{t.closed||(t.next(i),t.complete())},i=>t.error(i)).then(null,c),t);if(t&&"function"==typeof t[j])return i=t,t=>{const e=i[j]();for(;;){let i;try{i=e.next()}catch(s){return t.error(s),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t};{const i=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${i} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var i,e,s,r,n,o})(t)(i)}(i,new z(this)),e&&!e.closed&&this.add(this.durationSubscription=e)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const t=this.value,i=this.durationSubscription;i&&(this.durationSubscription=void 0,i.unsubscribe(),this.remove(i)),this.value=void 0,this.hasValue=!1,super._next(t)}}}const R=class{constructor(e){t(this,e),this.change=i(this,"change",7),this.settled=i(this,"settled",7),this.guid=r(),this.scheduledAfterRender=[],this.hasLeft=!1,this.hasRight=!1,this.initTabScroll=()=>{const t=this.hostElement.shadowRoot.querySelector(".tab-list");if(t){const{scrollWidth:i,clientWidth:e,scrollLeft:s}=t;this.hasLeft=s>0,this.hasRight=i>e}},this.updateTabData=()=>{this.updateTabPaneProps(),this.setTabs()},this.updateTabPaneProps=()=>{this.tabPanes.forEach((t,i)=>{t.selected=t.value===this.selectedTabValue,t.guid=this.guid,t.index=i})},this.setTabs=()=>{this.tabs=this.tabPanes.map(({label:t,value:i})=>({label:t&&this.loc(t)||"",value:i}))},this.onTabClick=t=>{this.change.emit({value:t.target.dataset.value})},this.onTabKeyDown=t=>{const i=t.target.dataset.value;"ArrowRight"!==t.key&&"Right"!==t.key?"ArrowLeft"!==t.key&&"Left"!==t.key||this.moveToAdjacentTab(i,"prev"):this.moveToAdjacentTab(i,"next")},this.moveToAdjacentTab=(t,i)=>{let e=this.tabs.map(({value:t})=>t).indexOf(t),s=!1;if("next"===i&&e!==this.tabs.length-1&&(e+=1,s=!0),"prev"===i&&0!==e&&(e-=1,s=!0),s){const t=this.tabs[e].value;this.hostElement.shadowRoot.querySelector(`.tab-list a[data-value="${t}"]`).focus(),this.change.emit({value:t})}},this.calculateTabScroll=({direction:t,scrollWidth:i,clientWidth:e,scrollLeft:s})=>{const r=s+("left"===t?-1:1)*Math.round(.5*e);return{newScrollLeft:r,hasLeft:r>0,hasRight:i>=e+r}},this.onTabScroll=t=>{const i=this.hostElement.shadowRoot.querySelector(".tab-list");let{scrollWidth:e,clientWidth:s,scrollLeft:r}=i;const{newScrollLeft:n,hasLeft:o,hasRight:a}=this.calculateTabScroll({direction:t,scrollWidth:e,clientWidth:s,scrollLeft:r});this.hasLeft=o,this.hasRight=a,i.scroll({left:n,behavior:"smooth"})}}loc(t,i){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,i):t}resizeIframe(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()}get tabPanes(){const t=this.hostElement.querySelectorAll("q2-tab-pane, tecton-tab-pane");return 0===t.length?[]:Array.from(t).filter(t=>t.name===this.name)}get selectedTabValue(){return this.value||this.tabPanes[0].value||""}defaultChangeHandler(t){t.target!==this.hostElement||this.hostElement.onchange||(this.value=t.detail.value)}componentWillLoad(){const t=new MutationObserver(this.updateTabData);t.observe(this.hostElement,{childList:!0,attributes:!0}),this.mutationObserver=t,this.updateTabData()}componentDidRender(){var t;this.scheduledAfterRender.forEach(t=>t()),this.scheduledAfterRender=[],this.settled.emit(),this.resizeSubscription||(this.initTabScroll(),this.resizeSubscription=function t(i,e,s,r){return n(s)&&(r=s,s=void 0),r?t(i,e,s).pipe((o=t=>l(t)?r(...t):r(t),function(t){return t.lift(new L(o,void 0))})):new g(t=>{!function t(i,e,s,r,n){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(i)){const t=i;i.addEventListener(e,s,n),o=()=>t.removeEventListener(e,s,n)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(i)){const t=i;i.on(e,s),o=()=>t.off(e,s)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(i)){const t=i;i.addListener(e,s),o=()=>t.removeListener(e,s)}else{if(!i||!i.length)throw new TypeError("Invalid event target");for(let o=0,a=i.length;o<a;o++)t(i[o],e,s,r,n)}r.add(o)}(i,e,(function(i){t.next(arguments.length>1?Array.prototype.slice.call(arguments):i)}),t,s)});var o}(window,"resize").pipe((t=()=>function(t=0,i=E){var e;return(l(e=t)||!(e-parseFloat(e)+1>=0)||t<0)&&(t=0),i&&"function"==typeof i.schedule||(i=E),new g(e=>(e.add(i.schedule($,t,{subscriber:e,counter:0,period:t})),e))}(200),i=>i.lift(new A(t)))).subscribe(this.initTabScroll))}disconnectedCallback(){this.mutationObserver.disconnect(),this.mutationObserver=null,this.resizeSubscription.unsubscribe(),this.resizeSubscription=null}valueObserver(){this.updateTabData(),this.scheduledAfterRender.push(this.resizeIframe)}nameObserver(){this.updateTabData()}render(){return e("div",{class:"tab-container"},e("ul",{class:"tab-list",role:"tablist"},this.hasLeft&&e("li",{role:"presentation",class:"nav nav-left",onClick:()=>this.onTabScroll("left")},e("div",{class:"arrow-container"},e("a",null,e("q2-icon",{type:"chevron-left"})))),this.tabs.map((t,i)=>this.generateTab(t,i)),this.hasRight&&e("li",{role:"presentation",class:"nav nav-right",onClick:()=>this.onTabScroll("right")},e("div",{class:"arrow-container"},e("a",null,e("q2-icon",{type:"chevron-right"}))))),e("div",{class:"tab-content"},e("slot",null)))}generateTab(t,i){const{label:s,value:r}=t,n=this.selectedTabValue===r;return e("li",{role:"presentation"},e("a",{id:`tab-${this.guid}-${i}`,href:"javascript://","data-value":r,"test-id":"tabLink",tabIndex:n?0:-1,role:"tab","aria-selected":""+n,"aria-controls":`tab-pane-${this.guid}-${i}`,onClick:this.onTabClick,onKeyDown:this.onTabKeyDown},s))}get hostElement(){return s(this)}static get watchers(){return{value:["valueObserver"],name:["nameObserver"]}}};R.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.tab-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.tab-list{padding:0;display:-ms-flexbox;display:flex;margin:0;list-style:none;border-bottom:1px solid\n var(--tct-tab-container-border-color, var(--tct-gray-l1, var(--app-gray-l1, #cccccc)));white-space:nowrap;overflow-x:hidden;-ms-flex-align:center;align-items:center}.tab-list li.nav{position:absolute;height:44px;width:46px}.tab-list li.nav-left{left:-15px;background:-webkit-gradient(linear, left top, right top, color-stop(60%, var(--tct-section-bg, var(--t-section-bg, #ffffff))), to(transparent));background:linear-gradient(to right, var(--tct-section-bg, var(--t-section-bg, #ffffff)) 60%, transparent)}.tab-list li.nav-right{right:-15px;background:-webkit-gradient(linear, right top, left top, color-stop(60%, var(--tct-section-bg, var(--t-section-bg, #ffffff))), to(transparent));background:linear-gradient(to left, var(--tct-section-bg, var(--t-section-bg, #ffffff)) 60%, transparent)}.tab-list li.nav .arrow-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:inherit;width:inherit;cursor:pointer}.tab-list li.nav .arrow-container a{padding:0;margin:0;height:inherit;width:inherit;border-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.tab-list a{text-decoration:none;padding:var(--tct-scale-2, var(--app-scale-2, 10px));margin:var(--tct-scale-1, var(--app-scale-1, 5px)) var(--tct-scale-1, var(--app-scale-1, 5px))\n 0;color:var(--tct-tab-inactive-color, var(--t-tab-inactive, inherit));font-size:var(--tct-tab-font-size, var(--t-tab-font-size, 17px));border-bottom:3px solid transparent;display:block;-webkit-transition:color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease))}:host([type='section']) .tab-list a{font-size:inherit;padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}@media screen and (max-width: 767px){.tab-list a{font-size:inherit;padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}}.tab-list a:hover{color:var(--tct-tab-active-color, var(--t-tab-active, #2e2e2e));background-color:var(--tct-tab-hover-bg-color, var(--t-tab-hover-bg-color, inherit));width:var(--tct-tab-hover-width, var(--t-tab-hover-width, 100%))}.tab-list a[aria-selected='true']{color:var(--tct-tab-active-color, var(--t-tab-active, #2e2e2e));border-color:currentColor;width:var(--tct-tab-active-width, var(--t-tab-active-width, 100%));background-color:var(--tct-tab-active-bg-color, var(--t-tab-active-bg-color, inherit))}:host([color='alt']) .tab-list a{color:var(--tct-tab-alt-inactive-color, var(--t-tab-alt-inactive, inherit))}:host([color='alt']) .tab-list a:hover,:host([color='alt']) .tab-list a[aria-selected='true']{color:var(--tct-tab-alt-active-color, var(--t-tab-alt-active, inherit))}.tab-content{padding:var(--tct-scale-2, var(--app-scale-2, 10px)) 0}";export{R as q2_tab_container}
1
+ import{r as t,c as i,h as e,g as s}from"./p-1a8e579d.js";import{c as r}from"./p-1d4bf5ef.js";function n(t){return"function"==typeof t}let o=!1;const a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=t},get useDeprecatedSynchronousErrorHandling(){return o}};function c(t){setTimeout(()=>{throw t},0)}const h={closed:!0,next(t){},error(t){if(a.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete(){}},l=Array.isArray||(t=>t&&"number"==typeof t.length);function u(t){return null!==t&&"object"==typeof t}const f=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class b{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:i,_ctorUnsubscribe:e,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof b)i.remove(this);else if(null!==i)for(let n=0;n<i.length;++n)i[n].remove(this);if(n(s)){e&&(this._unsubscribe=void 0);try{s.call(this)}catch(o){t=o instanceof f?d(o.errors):[o]}}if(l(r)){let i=-1,e=r.length;for(;++i<e;){const e=r[i];if(u(e))try{e.unsubscribe()}catch(o){t=t||[],o instanceof f?t=t.concat(d(o.errors)):t.push(o)}}}if(t)throw new f(t)}add(t){let i=t;if(!t)return b.EMPTY;switch(typeof t){case"function":i=new b(t);case"object":if(i===this||i.closed||"function"!=typeof i.unsubscribe)return i;if(this.closed)return i.unsubscribe(),i;if(!(i instanceof b)){const t=i;i=new b,i._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:e}=i;if(null===e)i._parentOrParents=this;else if(e instanceof b){if(e===this)return i;i._parentOrParents=[e,this]}else{if(-1!==e.indexOf(this))return i;e.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[i]:s.push(i),i}remove(t){const i=this._subscriptions;if(i){const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}function d(t){return t.reduce((t,i)=>t.concat(i instanceof f?i.errors:i),[])}b.EMPTY=function(t){return t.closed=!0,t}(new b);const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class v extends b{constructor(t,i,e){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=h;break;case 1:if(!t){this.destination=h;break}if("object"==typeof t){t instanceof v?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new w(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new w(this,t,i,e)}}[p](){return this}static create(t,i,e){const s=new v(t,i,e);return s.syncErrorThrowable=!1,s}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class w extends v{constructor(t,i,e,s){let r;super(),this._parentSubscriber=t;let o=this;n(i)?r=i:i&&(r=i.next,e=i.error,s=i.complete,i!==h&&(o=Object.create(i),n(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=e,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:i}=this;a.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?this.__tryOrSetError(i,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:i}=this,{useDeprecatedSynchronousErrorHandling:e}=a;if(this._error)e&&i.syncErrorThrowable?(this.__tryOrSetError(i,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(i.syncErrorThrowable)e?(i.syncErrorValue=t,i.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),e)throw t;c(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const i=()=>this._complete.call(this._context);a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,i){try{t.call(this._context,i)}catch(e){if(this.unsubscribe(),a.useDeprecatedSynchronousErrorHandling)throw e;c(e)}}__tryOrSetError(t,i,e){if(!a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{i.call(this._context,e)}catch(s){return a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(c(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const y="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(t){return t}class g{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new g;return i.source=this,i.operator=t,i}subscribe(t,i,e){const{operator:s}=this,r=function(t,i,e){if(t){if(t instanceof v)return t;if(t[p])return t[p]()}return t||i||e?new v(t,i,e):new v(h)}(t,i,e);if(r.add(s?s.call(r,this.source):this.source||a.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(i){a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function(t){for(;t;){const{closed:i,destination:e,isStopped:s}=t;if(i||s)return!1;t=e&&e instanceof v?e:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=m(i))((i,e)=>{let s;s=this.subscribe(i=>{try{t(i)}catch(r){e(r),s&&s.unsubscribe()}},e,i)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[y](){return this}pipe(...t){return 0===t.length?this:(0===(i=t).length?x:1===i.length?i[0]:function(t){return i.reduce((t,i)=>i(t),t)})(this);var i}toPromise(t){return new(t=m(t))((t,i)=>{let e;this.subscribe(t=>e=t,t=>i(t),()=>t(e))})}}function m(t){if(t||(t=Promise),!t)throw new Error("no Promise impl found");return t}g.create=t=>new g(t);class _ extends b{constructor(t,i){super()}schedule(t,i=0){return this}}class k{constructor(t,i=k.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,e){return new this.SchedulerAction(this,t).schedule(e,i)}}k.now=()=>Date.now();class S extends k{constructor(t,i=k.now){super(t,()=>S.delegate&&S.delegate!==this?S.delegate.now():i()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,i=0,e){return S.delegate&&S.delegate!==this?S.delegate.schedule(t,i,e):super.schedule(t,i,e)}flush(t){const{actions:i}=this;if(this.active)return void i.push(t);let e;this.active=!0;do{if(e=t.execute(t.state,t.delay))break}while(t=i.shift());if(this.active=!1,e){for(;t=i.shift();)t.unsubscribe();throw e}}}const E=new S(class extends _{constructor(t,i){super(t,i),this.scheduler=t,this.work=i,this.pending=!1}schedule(t,i=0){if(this.closed)return this;this.state=t;const e=this.id,s=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(s,e,i)),this.pending=!0,this.delay=i,this.id=this.id||this.requestAsyncId(s,this.id,i),this}requestAsyncId(t,i,e=0){return setInterval(t.flush.bind(t,this),e)}recycleAsyncId(t,i,e=0){if(null!==e&&this.delay===e&&!1===this.pending)return i;clearInterval(i)}execute(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const e=this._execute(t,i);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,i){let e=!1,s=void 0;try{this.work(t)}catch(r){e=!0,s=!!r&&r||new Error(r)}if(e)return this.unsubscribe(),s}_unsubscribe(){const t=this.id,i=this.scheduler,e=i.actions,s=e.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&e.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(i,t,null)),this.delay=null}});class L{constructor(t,i){this.project=t,this.thisArg=i}call(t,i){return i.subscribe(new O(t,this.project,this.thisArg))}}class O extends v{constructor(t,i,e){super(t),this.project=i,this.count=0,this.thisArg=e||this}_next(t){let i;try{i=this.project.call(this.thisArg,t,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(i)}}const j="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";class z extends v{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class P extends v{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function $(t){const{subscriber:i,counter:e,period:s}=t;i.next(e),this.schedule({subscriber:i,counter:e+1,period:s},s)}class A{constructor(t){this.durationSelector=t}call(t,i){return i.subscribe(new C(t,this.durationSelector))}}class C extends P{constructor(t,i){super(t),this.durationSelector=i,this.hasValue=!1}_next(t){try{const i=this.durationSelector.call(this,t);i&&this._tryNext(t,i)}catch(i){this.destination.error(i)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(t,i){let e=this.durationSubscription;this.value=t,this.hasValue=!0,e&&(e.unsubscribe(),this.remove(e)),e=function(t,i){if(!i.closed)return t instanceof g?t.subscribe(i):(t=>{if(t&&"function"==typeof t[y])return o=t,t=>{const i=o[y]();if("function"!=typeof i.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return i.subscribe(t)};if((n=t)&&"number"==typeof n.length&&"function"!=typeof n)return r=t,t=>{for(let i=0,e=r.length;i<e&&!t.closed;i++)t.next(r[i]);t.complete()};if((s=t)&&"function"!=typeof s.subscribe&&"function"==typeof s.then)return e=t,t=>(e.then(i=>{t.closed||(t.next(i),t.complete())},i=>t.error(i)).then(null,c),t);if(t&&"function"==typeof t[j])return i=t,t=>{const e=i[j]();for(;;){let i;try{i=e.next()}catch(s){return t.error(s),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t};{const i=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${i} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var i,e,s,r,n,o})(t)(i)}(i,new z(this)),e&&!e.closed&&this.add(this.durationSubscription=e)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const t=this.value,i=this.durationSubscription;i&&(this.durationSubscription=void 0,i.unsubscribe(),this.remove(i)),this.value=void 0,this.hasValue=!1,super._next(t)}}}const R=class{constructor(e){t(this,e),this.change=i(this,"change",7),this.settled=i(this,"settled",7),this.guid=r(),this.scheduledAfterRender=[],this.hasLeft=!1,this.hasRight=!1,this.initTabScroll=()=>{const t=this.hostElement.shadowRoot.querySelector(".tab-list");if(t){const{scrollWidth:i,clientWidth:e,scrollLeft:s}=t;this.hasLeft=s>0,this.hasRight=i>e}},this.updateTabData=()=>{this.updateTabPaneProps(),this.setTabs()},this.updateTabPaneProps=()=>{this.tabPanes.forEach((t,i)=>{t.selected=t.value===this.selectedTabValue,t.guid=this.guid,t.index=i})},this.setTabs=()=>{this.tabs=this.tabPanes.map(({label:t,value:i})=>({label:t&&this.loc(t)||"",value:i}))},this.onTabClick=t=>{this.change.emit({value:t.target.dataset.value})},this.onTabKeyDown=t=>{const i=t.target.dataset.value;"ArrowRight"!==t.key&&"Right"!==t.key?"ArrowLeft"!==t.key&&"Left"!==t.key||this.moveToAdjacentTab(i,"prev"):this.moveToAdjacentTab(i,"next")},this.moveToAdjacentTab=(t,i)=>{let e=this.tabs.map(({value:t})=>t).indexOf(t),s=!1;if("next"===i&&e!==this.tabs.length-1&&(e+=1,s=!0),"prev"===i&&0!==e&&(e-=1,s=!0),s){const t=this.tabs[e].value;this.hostElement.shadowRoot.querySelector(`.tab-list a[data-value="${t}"]`).focus(),this.change.emit({value:t})}},this.calculateTabScroll=({direction:t,scrollWidth:i,clientWidth:e,scrollLeft:s})=>{const r=s+("left"===t?-1:1)*Math.round(.5*e);return{newScrollLeft:r,hasLeft:r>0,hasRight:i>=e+r}},this.onTabScroll=t=>{const i=this.hostElement.shadowRoot.querySelector(".tab-list");let{scrollWidth:e,clientWidth:s,scrollLeft:r}=i;const{newScrollLeft:n,hasLeft:o,hasRight:a}=this.calculateTabScroll({direction:t,scrollWidth:e,clientWidth:s,scrollLeft:r});this.hasLeft=o,this.hasRight=a,i.scroll({left:n,behavior:"smooth"})}}loc(t,i){return window.TectonElements&&window.TectonElements.loc?window.TectonElements.loc(t,i):t}resizeIframe(){return window.TectonElements&&window.TectonElements.resizeIframe&&window.TectonElements.resizeIframe()}get tabPanes(){const t=this.hostElement.querySelectorAll("q2-tab-pane, tecton-tab-pane");return 0===t.length?[]:Array.from(t).filter(t=>t.name===this.name)}get selectedTabValue(){return this.value||this.tabPanes[0].value||""}defaultChangeHandler(t){t.target!==this.hostElement||this.hostElement.onchange||(this.value=t.detail.value)}componentWillLoad(){const t=new MutationObserver(this.updateTabData);t.observe(this.hostElement,{childList:!0,attributes:!0}),this.mutationObserver=t,this.updateTabData()}componentDidRender(){var t;this.scheduledAfterRender.forEach(t=>t()),this.scheduledAfterRender=[],this.settled.emit(),this.resizeSubscription||(this.initTabScroll(),this.resizeSubscription=function t(i,e,s,r){return n(s)&&(r=s,s=void 0),r?t(i,e,s).pipe((o=t=>l(t)?r(...t):r(t),function(t){return t.lift(new L(o,void 0))})):new g(t=>{!function t(i,e,s,r,n){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(i)){const t=i;i.addEventListener(e,s,n),o=()=>t.removeEventListener(e,s,n)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(i)){const t=i;i.on(e,s),o=()=>t.off(e,s)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(i)){const t=i;i.addListener(e,s),o=()=>t.removeListener(e,s)}else{if(!i||!i.length)throw new TypeError("Invalid event target");for(let o=0,a=i.length;o<a;o++)t(i[o],e,s,r,n)}r.add(o)}(i,e,(function(i){t.next(arguments.length>1?Array.prototype.slice.call(arguments):i)}),t,s)});var o}(window,"resize").pipe((t=()=>function(t=0,i=E){var e;return(l(e=t)||!(e-parseFloat(e)+1>=0)||t<0)&&(t=0),i&&"function"==typeof i.schedule||(i=E),new g(e=>(e.add(i.schedule($,t,{subscriber:e,counter:0,period:t})),e))}(200),i=>i.lift(new A(t)))).subscribe(this.initTabScroll))}disconnectedCallback(){this.mutationObserver.disconnect(),this.mutationObserver=null,this.resizeSubscription.unsubscribe(),this.resizeSubscription=null}valueObserver(){this.updateTabData(),this.scheduledAfterRender.push(this.resizeIframe)}nameObserver(){this.updateTabData()}render(){return e("div",{class:"tab-container"},e("ul",{class:"tab-list",role:"tablist"},this.hasLeft&&e("li",{role:"presentation",class:"nav nav-left",onClick:()=>this.onTabScroll("left")},e("div",{class:"arrow-container"},e("a",null,e("q2-icon",{type:"chevron-left"})))),this.tabs.map((t,i)=>this.generateTab(t,i)),this.hasRight&&e("li",{role:"presentation",class:"nav nav-right",onClick:()=>this.onTabScroll("right")},e("div",{class:"arrow-container"},e("a",null,e("q2-icon",{type:"chevron-right"}))))),e("div",{class:"tab-content"},e("slot",null)))}generateTab(t,i){const{label:s,value:r}=t,n=this.selectedTabValue===r;return e("li",{role:"presentation"},e("a",{id:`tab-${this.guid}-${i}`,href:"javascript://","data-value":r,"test-id":"tabLink",tabIndex:n?0:-1,role:"tab","aria-selected":""+n,"aria-controls":`tab-pane-${this.guid}-${i}`,onClick:this.onTabClick,onKeyDown:this.onTabKeyDown},s))}get hostElement(){return s(this)}static get watchers(){return{value:["valueObserver"],name:["nameObserver"]}}};R.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.tab-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.tab-list{padding:0;display:-ms-flexbox;display:flex;margin:0;list-style:none;border-bottom:1px solid\n var(--tct-tab-container-border-color, var(--tct-gray-l1, var(--app-gray-l1, #cccccc)));white-space:nowrap;overflow-x:hidden;-ms-flex-align:center;align-items:center}.tab-list li.nav{position:absolute;height:44px;width:46px}.tab-list li.nav-left{left:-15px;background:-webkit-gradient(linear, left top, right top, color-stop(60%, var(--tct-section-bg, var(--t-section-bg, #ffffff))), to(transparent));background:linear-gradient(to right, var(--tct-section-bg, var(--t-section-bg, #ffffff)) 60%, transparent)}.tab-list li.nav-right{right:-15px;background:-webkit-gradient(linear, right top, left top, color-stop(60%, var(--tct-section-bg, var(--t-section-bg, #ffffff))), to(transparent));background:linear-gradient(to left, var(--tct-section-bg, var(--t-section-bg, #ffffff)) 60%, transparent)}.tab-list li.nav .arrow-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:inherit;width:inherit;cursor:pointer}.tab-list li.nav .arrow-container a{padding:0;margin:0;height:inherit;width:inherit;border-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.tab-list a{text-decoration:none;padding:var(--tct-scale-2, var(--app-scale-2, 10px));margin:var(--tct-scale-1, var(--app-scale-1, 5px)) var(--tct-scale-1, var(--app-scale-1, 5px))\n 0;color:var(--tct-tab-inactive-color, var(--t-tab-inactive, inherit));font-size:var(--tct-tab-font-size, var(--t-tab-font-size, 17px));border-bottom:3px solid transparent;display:block;-webkit-transition:color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease));transition:color var(--tct-tween-2, var(--app-tween-2, 0.4s ease)),\n border-color var(--tct-tween-1, var(--app-tween-1, 0.2s ease))}:host([type='section']) .tab-list a{font-size:inherit;padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}@media screen and (max-width: 767px){.tab-list a{font-size:inherit;padding:var(--tct-scale-2, var(--app-scale-2, 10px))\n var(--tct-scale-1, var(--app-scale-1, 5px))}}.tab-list a:hover{color:var(--tct-tab-active-color, var(--t-tab-active, #2e2e2e));background-color:var(--tct-tab-hover-bg-color, var(--t-tab-hover-bg-color, inherit));width:var(--tct-tab-hover-width, var(--t-tab-hover-width, 100%))}.tab-list a[aria-selected='true']{color:var(--tct-tab-active-color, var(--t-tab-active, #2e2e2e));border-color:currentColor;width:var(--tct-tab-active-width, var(--t-tab-active-width, 100%));background-color:var(--tct-tab-active-bg-color, var(--t-tab-active-bg-color, inherit))}:host([color='alt']) .tab-list a{color:var(--tct-tab-alt-inactive-color, var(--t-tab-alt-inactive, inherit))}:host([color='alt']) .tab-list a:hover,:host([color='alt']) .tab-list a[aria-selected='true']{color:var(--tct-tab-alt-active-color, var(--t-tab-alt-active, inherit))}.tab-content{padding:var(--tct-scale-2, var(--app-scale-2, 10px)) 0}";export{R as q2_tab_container}
@@ -1,4 +1,4 @@
1
- import{r as t,c as n,h as e,g as i}from"./p-7ff881d1.js";
1
+ import{r as t,c as n,h as e,g as i}from"./p-1a8e579d.js";
2
2
  //! moment.js
3
3
  //! version : 2.27.0
4
4
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
@@ -1 +1 @@
1
- System.register(["./p-2d49c74e.system.js"],(function(e){"use strict";var i,t;return{setters:[function(e){i=e.r;t=e.h}],execute:function(){var n="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.tab-pane[aria-hidden='true']{display:none}";var o=e("q2_tab_pane",function(){function e(e){i(this,e)}e.prototype.render=function(){return t("div",{id:"tab-pane-"+this.guid+"-"+this.index,class:"tab-pane"+(this.selected?"":" hidden"),role:"tabpanel",tabindex:"-1","aria-expanded":""+!!this.selected,"aria-hidden":""+!this.selected,"aria-labelledby":"tab-"+this.guid+"-"+this.index},t("slot",null))};return e}());o.style=n}}}));
1
+ System.register(["./p-f08aea0c.system.js"],(function(e){"use strict";var i,t;return{setters:[function(e){i=e.r;t=e.h}],execute:function(){var n="*{-webkit-box-sizing:border-box;box-sizing:border-box}*:active{outline:none}*:focus{outline:none;-webkit-box-shadow:var(--const-global-focus);box-shadow:var(--const-global-focus)}:host{-webkit-box-shadow:none !important;box-shadow:none !important}::-moz-focus-inner{border:none}input,button{font-family:inherit;font-size:inherit}:host(.sr),:host(.sr) button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.sr,.sr button{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.hidden{display:none}:host([hidden]){display:none}.invisible{visibility:hidden}.tab-pane[aria-hidden='true']{display:none}";var o=e("q2_tab_pane",function(){function e(e){i(this,e)}e.prototype.render=function(){return t("div",{id:"tab-pane-"+this.guid+"-"+this.index,class:"tab-pane"+(this.selected?"":" hidden"),role:"tabpanel",tabindex:"-1","aria-expanded":""+!!this.selected,"aria-hidden":""+!this.selected,"aria-labelledby":"tab-"+this.guid+"-"+this.index},t("slot",null))};return e}());o.style=n}}}));
@@ -1 +1 @@
1
- import{r as t,c as s,g as i}from"./p-7ff881d1.js";const h=class{constructor(i){t(this,i),this.change=s(this,"change",7),this.mouseEventList=["mousedown","dragstart","touchstart"],this.isCurrentlyFocused=!1,this.mouseHandler=t=>{const s=this.shadowContains(this.findActiveElement()),i=this.shadowContains(this.shadowEventTarget(t))||this.originatesInSlots(t.target);if(!i&&(this.isCurrentlyFocused||s))return this.isCurrentlyFocused=!1,void this.change.emit();this.isCurrentlyFocused=i||s},this.windowBlurHandler=()=>{if(this.findActiveElement()===document.body&&this.isCurrentlyFocused)return this.isCurrentlyFocused=!1,void this.change.emit()}}componentWillLoad(){this.mouseEventList.forEach(t=>{document.addEventListener(t,this.mouseHandler)}),window.addEventListener("blur",this.windowBlurHandler)}disconnectedCallback(){this.mouseEventList.forEach(t=>{document.removeEventListener(t,this.mouseHandler)}),window.removeEventListener("blur",this.windowBlurHandler)}findActiveElement(){let t=document.activeElement;for(;;){if(!t||!t.shadowRoot)return t;t=t.shadowRoot.activeElement}}shadowEventTarget(t){return t.composedPath()[0]||t.target}shadowContains(t){for(;;){if(t===this.hostElement)return!0;if(!t)return!1;t=t.parentNode||t.host}}originatesInSlots(t){const s=this.hostElement.querySelectorAll("slot");for(let i=0;i<s.length;i++){const h=s[i],r=h&&h.assignedNodes&&h.assignedNodes()||this.hostElement.childNodes;for(let s=0;s<r.length;s++)if(r[s].contains(t))return!0}return!1}get hostElement(){return i(this)}};export{h as click_elsewhere}
1
+ import{r as t,c as s,g as i}from"./p-1a8e579d.js";const e=class{constructor(i){t(this,i),this.change=s(this,"change",7),this.mouseEventList=["mousedown","dragstart","touchstart"],this.isCurrentlyFocused=!1,this.mouseHandler=t=>{const s=this.shadowContains(this.findActiveElement()),i=this.shadowContains(this.shadowEventTarget(t))||this.originatesInSlots(t.target);if(!i&&(this.isCurrentlyFocused||s))return this.isCurrentlyFocused=!1,void this.change.emit();this.isCurrentlyFocused=i||s},this.windowBlurHandler=()=>{if(this.findActiveElement()===document.body&&this.isCurrentlyFocused)return this.isCurrentlyFocused=!1,void this.change.emit()}}componentWillLoad(){this.mouseEventList.forEach(t=>{document.addEventListener(t,this.mouseHandler)}),window.addEventListener("blur",this.windowBlurHandler)}disconnectedCallback(){this.mouseEventList.forEach(t=>{document.removeEventListener(t,this.mouseHandler)}),window.removeEventListener("blur",this.windowBlurHandler)}findActiveElement(){let t=document.activeElement;for(;;){if(!t||!t.shadowRoot)return t;t=t.shadowRoot.activeElement}}shadowEventTarget(t){return t.composedPath()[0]||t.target}shadowContains(t){for(;;){if(t===this.hostElement)return!0;if(!t)return!1;t=t.parentNode||t.host}}originatesInSlots(t){const s=this.hostElement.querySelectorAll("slot");for(let i=0;i<s.length;i++){const e=s[i],h=e&&e.assignedNodes&&e.assignedNodes()||this.hostElement.childNodes;for(let s=0;s<h.length;s++)if(h[s].contains(t))return!0}return!1}get hostElement(){return i(this)}};export{e as click_elsewhere}