@limetech/lime-elements 35.0.0 → 35.0.1-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/cjs/{_arrayIncludesWith-36a6fafb.js → _arrayIncludesWith-29083f83.js} +5 -4
  2. package/dist/cjs/{_assignValue-c9fc3712.js → _assignValue-7c18d8d6.js} +1 -1
  3. package/dist/cjs/_defineProperty-8f56146d.js +13 -0
  4. package/dist/cjs/{_defineProperty-8351e789.js → _getNative-60328036.js} +0 -9
  5. package/dist/cjs/{dateFormatter-34b77ead.js → dateFormatter-05d80b12.js} +1 -1
  6. package/dist/cjs/identity-6dc34885.js +44 -0
  7. package/dist/cjs/{isEqual-e3b9c27c.js → isEqual-d2a13a24.js} +13 -55
  8. package/dist/cjs/lime-elements.cjs.js +1 -1
  9. package/dist/cjs/limel-code-editor.cjs.entry.js +2 -2
  10. package/dist/cjs/limel-color-picker-palette_2.cjs.entry.js +4 -3
  11. package/dist/cjs/limel-date-picker.cjs.entry.js +2 -2
  12. package/dist/cjs/limel-dialog.cjs.entry.js +26 -9
  13. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +70 -66
  14. package/dist/cjs/limel-form.cjs.entry.js +20439 -20437
  15. package/dist/cjs/limel-header.cjs.entry.js +3 -3
  16. package/dist/cjs/limel-menu.cjs.entry.js +4 -3
  17. package/dist/cjs/limel-picker.cjs.entry.js +2 -1
  18. package/dist/cjs/limel-tab-bar.cjs.entry.js +6 -4
  19. package/dist/cjs/limel-table.cjs.entry.js +6 -4
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/{moment-5c6581b7.js → moment-5cfac5cd.js} +1 -1
  22. package/dist/cjs/{pickBy-88b0430a.js → pickBy-3ef47bf2.js} +6 -5
  23. package/dist/cjs/{zipObject-4050a45f.js → zipObject-93a471fa.js} +1 -1
  24. package/dist/collection/collection-manifest.json +1 -1
  25. package/dist/collection/components/dialog/dialog.js +29 -11
  26. package/dist/collection/components/header/header.css +21 -16
  27. package/dist/collection/components/header/header.js +4 -4
  28. package/dist/collection/components/picker/picker.js +2 -1
  29. package/dist/esm/{_arrayIncludesWith-b5d3fd9e.js → _arrayIncludesWith-969bccda.js} +4 -3
  30. package/dist/esm/{_assignValue-08fe10bc.js → _assignValue-fb2bf80a.js} +1 -1
  31. package/dist/esm/_defineProperty-2105cb48.js +11 -0
  32. package/dist/esm/{_defineProperty-8c869077.js → _getNative-93d6bfe9.js} +1 -9
  33. package/dist/esm/{dateFormatter-ed618478.js → dateFormatter-2cad0292.js} +1 -1
  34. package/dist/esm/identity-87aa3962.js +41 -0
  35. package/dist/esm/{isArrayLike-dd37ba9a.js → isArrayLike-385e0f31.js} +1 -1
  36. package/dist/esm/{isEqual-4f22635f.js → isEqual-c5a636a4.js} +3 -43
  37. package/dist/esm/lime-elements.js +1 -1
  38. package/dist/esm/limel-code-editor.entry.js +2 -2
  39. package/dist/esm/limel-color-picker-palette_2.entry.js +4 -3
  40. package/dist/esm/limel-date-picker.entry.js +2 -2
  41. package/dist/esm/limel-dialog.entry.js +26 -9
  42. package/dist/esm/limel-flatpickr-adapter.entry.js +71 -67
  43. package/dist/esm/limel-form.entry.js +20477 -20475
  44. package/dist/esm/limel-header.entry.js +3 -3
  45. package/dist/esm/limel-menu.entry.js +4 -3
  46. package/dist/esm/limel-picker.entry.js +2 -1
  47. package/dist/esm/limel-tab-bar.entry.js +6 -4
  48. package/dist/esm/limel-table.entry.js +7 -5
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/esm/{moment-29c213b7.js → moment-367e51c5.js} +1 -1
  51. package/dist/esm/{pickBy-8a849e46.js → pickBy-d359eb12.js} +4 -3
  52. package/dist/esm/polyfills/css-shim.js +1 -1
  53. package/dist/esm/{zipObject-22e88ce9.js → zipObject-2bb1968e.js} +1 -1
  54. package/dist/lime-elements/lime-elements.esm.js +1 -1
  55. package/dist/lime-elements/p-1a9a961a.entry.js +11 -0
  56. package/dist/lime-elements/p-2754e134.entry.js +1 -0
  57. package/dist/lime-elements/{p-2ff40ce6.js → p-3af5f9ad.js} +1 -1
  58. package/dist/lime-elements/p-4c3358cb.js +1 -0
  59. package/dist/lime-elements/{p-eae8c615.entry.js → p-4d5a874a.entry.js} +1 -1
  60. package/dist/lime-elements/p-5fdb83c9.js +1 -0
  61. package/dist/lime-elements/p-669626e5.js +1 -0
  62. package/dist/lime-elements/p-6966b5df.entry.js +1 -0
  63. package/dist/lime-elements/p-7cda574b.js +1 -0
  64. package/dist/lime-elements/{p-80327bb8.entry.js → p-84f933f7.entry.js} +2 -2
  65. package/dist/lime-elements/{p-96f4b892.entry.js → p-8827628d.entry.js} +6 -6
  66. package/dist/lime-elements/{p-7f43b0c4.js → p-9acf7b5d.js} +1 -1
  67. package/dist/lime-elements/p-ad8cb388.js +1 -0
  68. package/dist/lime-elements/p-ade76f1d.js +1 -0
  69. package/dist/lime-elements/p-af0ec482.entry.js +16 -0
  70. package/dist/lime-elements/p-b0046fcd.entry.js +1 -0
  71. package/dist/lime-elements/{p-090bc949.js → p-b28128d2.js} +1 -1
  72. package/dist/lime-elements/p-b95e80c9.entry.js +1 -0
  73. package/dist/lime-elements/{p-72e03943.js → p-d76f896d.js} +1 -1
  74. package/dist/lime-elements/p-e80dd2ff.entry.js +1 -0
  75. package/dist/lime-elements/p-f9bfbeb3.entry.js +82 -0
  76. package/dist/lime-elements/p-fa607ed3.js +1 -0
  77. package/dist/types/components/dialog/dialog.d.ts +4 -5
  78. package/dist/types/components/dialog/dialog.types.d.ts +4 -0
  79. package/dist/types/components.d.ts +3 -3
  80. package/package.json +16 -16
  81. package/dist/lime-elements/p-04b5bc13.entry.js +0 -82
  82. package/dist/lime-elements/p-101af376.entry.js +0 -1
  83. package/dist/lime-elements/p-1a64b531.js +0 -1
  84. package/dist/lime-elements/p-358706b6.entry.js +0 -1
  85. package/dist/lime-elements/p-379955f4.js +0 -1
  86. package/dist/lime-elements/p-426d11b4.js +0 -1
  87. package/dist/lime-elements/p-440084ea.js +0 -1
  88. package/dist/lime-elements/p-5b7a8c61.entry.js +0 -20
  89. package/dist/lime-elements/p-716a6acd.entry.js +0 -16
  90. package/dist/lime-elements/p-87a1e1cb.entry.js +0 -1
  91. package/dist/lime-elements/p-c4b38454.entry.js +0 -1
  92. package/dist/lime-elements/p-da962c64.entry.js +0 -1
  93. package/dist/lime-elements/p-f83213b8.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-e9a95b8f.js";import{i as n}from"./p-0534b23b.js";import{T as h,b as r,E as o,c as l,d as a,a as c,A as u,e as d,f,g as m}from"./p-216ffe20.js";import{c as p}from"./p-6c094f3f.js";function v(t){return"function"==typeof t?t():t}function y(){var t={};return t.promise=new Promise((function(i,s){t.resolve=i,t.reject=s})),t}function g(t){var i=null,s=null,e=new Promise((function(t,e){i=t,s=e}));return t&&t.then((function(t){i&&i(t)}),(function(t){s&&s(t)})),{promise:e,resolve:function(t){i&&i(t)},reject:function(t){s&&s(t)},cancel:function(){i=null,s=null}}}
1
+ import{r as t,c as i,h as s,g as n}from"./p-e9a95b8f.js";import{i as e}from"./p-0534b23b.js";import{T as h,b as r,E as o,c as l,d as a,a as c,A as u,e as d,f as m,g as f}from"./p-216ffe20.js";import{c as p}from"./p-6c094f3f.js";function v(t){return"function"==typeof t?t():t}function y(){var t={};return t.promise=new Promise((function(i,s){t.resolve=i,t.reject=s})),t}function g(t){var i=null,s=null,n=new Promise((function(t,n){i=t,s=n}));return t&&t.then((function(t){i&&i(t)}),(function(t){s&&s(t)})),{promise:n,resolve:function(t){i&&i(t)},reject:function(t){s&&s(t)},cancel:function(){i=null,s=null}}}
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
@@ -13,4 +13,4 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
13
13
  See the Apache Version 2.0 License for specific language governing permissions
14
14
  and limitations under the License.
15
15
  ***************************************************************************** */
16
- var b=function(){return(b=Object.assign||function(t){for(var i,s=1,e=arguments.length;s<e;s++)for(var n in i=arguments[s])Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n]);return t}).apply(this,arguments)},w={key:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return null},onlyResolvesLast:!0},C=function(){function t(t){this.config=t,this.debounceSingleton=null,this.debounceCache={}}return t.prototype._createDebouncedFunction=function(){var t,i,s=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=void 0,n=void 0,h=void 0,r=[];return function(){var l=v(i),a=(new Date).getTime(),c=!e||a-e>l;e=a;for(var u=arguments.length,d=Array(u),f=0;f<u;f++)d[f]=arguments[f];if(c&&s.leading)return s.accumulate?Promise.resolve(t.call(this,[d])).then((function(t){return t[0]})):Promise.resolve(t.call.apply(t,[this].concat(d)));if(n?clearTimeout(h):n=y(),r.push(d),h=setTimeout(o.bind(this),l),s.accumulate){var m=r.length-1;return n.promise.then((function(t){return t[m]}))}return n.promise};function o(){var i=n;clearTimeout(h),Promise.resolve(s.accumulate?t.call(this,r):t.apply(this,r[r.length-1])).then(i.resolve,i.reject),r=[],n=null}}(this.config.func,this.config.wait,this.config.options);return this.config.options.onlyResolvesLast&&(t=s,i=null,s=function(){for(var s=[],e=0;e<arguments.length;e++)s[e]=arguments[e];i&&i();var n=g(t.apply(void 0,s));return i=n.cancel,n.promise}),{func:s}},t.prototype.getDebouncedFunction=function(t){var i,s=(i=this.config.options).key.apply(i,t);return null==s?(this.debounceSingleton||(this.debounceSingleton=this._createDebouncedFunction()),this.debounceSingleton):(this.debounceCache[s]||(this.debounceCache[s]=this._createDebouncedFunction()),this.debounceCache[s])},t}();const D=class{constructor(s){t(this,s),this.change=i(this,"change",7),this.interact=i(this,"interact",7),this.action=i(this,"action",7),this.disabled=!1,this.readonly=!1,this.required=!1,this.multiple=!1,this.delimiter=null,this.actions=[],this.actionPosition="bottom",this.actionScrollBehavior="sticky",this.badgeIcons=!0,this.textValue="",this.loading=!1,this.chips=[],this.chipSetEditMode=!1,this.handleTextInput=this.handleTextInput.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleDropdownKeyDown=this.handleDropdownKeyDown.bind(this),this.handleInputFieldFocus=this.handleInputFieldFocus.bind(this),this.handleChange=this.handleChange.bind(this),this.handleInteract=this.handleInteract.bind(this),this.handleListChange=this.handleListChange.bind(this),this.handleActionListChange=this.handleActionListChange.bind(this),this.handleStopEditAndBlur=this.handleStopEditAndBlur.bind(this),this.createDebouncedSearcher=this.createDebouncedSearcher.bind(this),this.handleCloseMenu=this.handleCloseMenu.bind(this),this.onListKeyDown=this.onListKeyDown.bind(this),this.portalId=p()}componentWillLoad(){this.chips=this.createChips(this.value)}componentDidLoad(){this.createDebouncedSearcher(this.searcher),this.chipSet=this.host.shadowRoot.querySelector("limel-chip-set")}async componentWillUpdate(){this.chipSetEditMode=!1,this.chipSet&&(this.chipSetEditMode=await this.chipSet.getEditMode())}render(){this.chips.forEach((t=>{"iconBackgroundColor"in t&&t.iconBackgroundColor&&(t.iconFillColor="rgb(var(--color-white))")}));const t={};return this.multiple||(t.maxItems=1),[s("limel-chip-set",Object.assign({type:"input",label:this.label,helperText:this.helperText,leadingIcon:this.leadingIcon,value:this.chips,disabled:this.disabled,delimiter:this.renderDelimiter(),readonly:this.readonly,required:this.required,searchLabel:this.searchLabel,onInput:this.handleTextInput,onKeyDown:this.handleInputKeyDown,onChange:this.handleChange,onInteract:this.handleInteract,onStartEdit:this.handleInputFieldFocus,onStopEdit:this.handleStopEditAndBlur,emptyInputOnBlur:!1,clearAllButton:this.multiple},t)),this.renderDropdown()]}onChangeValue(){this.chips=this.createChips(this.value)}createDebouncedSearcher(t){var i,s,e;"function"==typeof t&&(this.debouncedSearch=(i=t,500,s=b({},w,undefined),e=new C({func:i,wait:500,options:s}),function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.getDebouncedFunction(t).func.apply(void 0,t)}))}renderDelimiter(){return this.multiple?this.delimiter:null}createChips(t){return t?this.multiple?t.map(this.createChip):[this.createChip(t)]:[]}createChip(t){return{id:`${t.value}`,text:t.text,removable:!0,icon:t.icon,iconBackgroundColor:t.iconColor,value:t}}renderDropdown(){const t=this.getDropdownContent(),i=[];if(this.shouldShowDropDownContent()){const s=this.getActionContent();"top"===this.actionPosition&&i.push(s),t&&i.push(t),"bottom"===this.actionPosition&&i.push(s)}return this.renderPortal(i)}getActionContent(){var t,i;return 0===(null!==(i=null===(t=this.actions)||void 0===t?void 0:t.length)&&void 0!==i?i:0)?null:[s("limel-list",{class:{"static-actions-list":!0,"is-on-top":"top"===this.actionPosition,"is-at-bottom":"bottom"===this.actionPosition,"has-position-sticky":"sticky"===this.actionScrollBehavior},badgeIcons:!0,type:"selectable",onChange:this.handleActionListChange,items:this.actions.map(this.removeUnusedPropertiesOnAction)})]}removeUnusedPropertiesOnAction(t){return Object.assign(Object.assign({},t),{actions:[]})}shouldShowDropDownContent(){return!this.isFull()&&!!this.chipSetEditMode}getDropdownContent(){if(this.shouldShowDropDownContent())return this.loading?this.renderSpinner():this.items&&this.items.length?this.renderListResult():this.renderEmptyMessage()}isFull(){return!this.multiple&&!!this.value}renderSpinner(){return s("div",{style:{width:"100%",display:"flex","align-items":"center","justify-content":"center",padding:"1rem 0"}},s("limel-spinner",{limeBranded:!1}))}renderEmptyMessage(){if(this.emptyResultMessage)return s("p",{style:{color:"var(--lime-light-grey, #{$lime-light-grey})","text-align":"center"}},this.emptyResultMessage)}renderListResult(){const t=this.items.some((t=>"icon"in t&&!!t.icon));return s("limel-list",{badgeIcons:t&&this.badgeIcons,onChange:this.handleListChange,onKeyDown:this.onListKeyDown,type:"selectable",items:this.items})}onListKeyDown(t){const i=[h,r,o].includes(t.key),s=[l,a,c].includes(t.keyCode);(i||s)&&this.chipSet.setFocus()}renderPortal(t=[]){const i=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");return s("limel-portal",{visible:t.length>0,containerId:this.portalId,inheritParentWidth:!0,containerStyle:{"z-index":i}},s("limel-menu-surface",{open:t.length>0,allowClicksElement:this.host,style:{"--mdc-menu-min-width":"100%","max-height":"inherit",display:"flex"},onDismiss:this.handleCloseMenu},t))}handleStopEditAndBlur(){const t=this.host.shadowRoot.activeElement||document.activeElement,i=document.querySelector(`#${this.portalId}`);n(t,this.host)||n(t,i)||this.clearInputField()}async handleTextInput(t){t.stopPropagation();const i=t.detail;this.textValue=i,this.loading=!0;const s=""===i?this.searcher:this.debouncedSearch,e=await s(i);this.handleSearchResult(i,e)}handleListChange(t){var i;if(t.stopPropagation(),!this.value||this.value!==t.detail){let i=t.detail;this.multiple&&(i=[...this.value,t.detail]),this.change.emit(i),this.items=[]}this.multiple&&(null===(i=this.chipSet)||void 0===i||i.setFocus(!0))}handleActionListChange(t){t.stopPropagation(),t.detail&&(this.action.emit(t.detail.value),this.items=[])}async handleInputFieldFocus(){this.loading=!0;const t=this.textValue,i=await this.searcher(t);this.handleSearchResult(t,i)}handleChange(t){t.stopPropagation();let i=null;this.multiple&&(i=t.detail.map((t=>this.value.find((i=>`${i.value}`===t.id))))),this.change.emit(i)}handleInteract(t){t.stopPropagation(),this.interact.emit(t.detail?t.detail.value:t.detail)}handleInputKeyDown(t){const i=!(t.key!==h&&t.keyCode!==l||t.altKey||t.metaKey||t.shiftKey),s=t.key===u||t.keyCode===d,e=t.key===f||t.keyCode===m;if(!i&&!s&&!e)return;const n=document.querySelector(` #${this.portalId} limel-list`);n&&(t.preventDefault(),i||e?n.shadowRoot.querySelector(".mdc-deprecated-list-item:first-child").focus():s&&n.shadowRoot.querySelector(".mdc-deprecated-list-item:last-child").focus())}handleDropdownKeyDown(t){(t.key===r||t.keyCode===a)&&(t.preventDefault(),this.textValue="",this.chipSet.setFocus(!0))}handleSearchResult(t,i){if(t===this.textValue){if(this.items=i,this.multiple){const t=this.value;this.items=i.filter((i=>!t.includes(i)))}this.loading=!1}}handleCloseMenu(){this.clearInputField()}clearInputField(){this.chipSet.emptyInput(),this.textValue="",this.handleSearchResult("",[])}get host(){return e(this)}static get watchers(){return{value:["onChangeValue"],searcher:["createDebouncedSearcher"]}}};D.style=":host{position:relative;display:block}:host([hidden]){display:none}";export{D as limel_picker}
16
+ var b=function(){return(b=Object.assign||function(t){for(var i,s=1,n=arguments.length;s<n;s++)for(var e in i=arguments[s])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t}).apply(this,arguments)},w={key:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return null},onlyResolvesLast:!0},C=function(){function t(t){this.config=t,this.debounceSingleton=null,this.debounceCache={}}return t.prototype._createDebouncedFunction=function(){var t,i,s=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=void 0,e=void 0,h=void 0,r=[];return function(){var l=v(i),a=(new Date).getTime(),c=!n||a-n>l;n=a;for(var u=arguments.length,d=Array(u),m=0;m<u;m++)d[m]=arguments[m];if(c&&s.leading)return s.accumulate?Promise.resolve(t.call(this,[d])).then((function(t){return t[0]})):Promise.resolve(t.call.apply(t,[this].concat(d)));if(e?clearTimeout(h):e=y(),r.push(d),h=setTimeout(o.bind(this),l),s.accumulate){var f=r.length-1;return e.promise.then((function(t){return t[f]}))}return e.promise};function o(){var i=e;clearTimeout(h),Promise.resolve(s.accumulate?t.call(this,r):t.apply(this,r[r.length-1])).then(i.resolve,i.reject),r=[],e=null}}(this.config.func,this.config.wait,this.config.options);return this.config.options.onlyResolvesLast&&(t=s,i=null,s=function(){for(var s=[],n=0;n<arguments.length;n++)s[n]=arguments[n];i&&i();var e=g(t.apply(void 0,s));return i=e.cancel,e.promise}),{func:s}},t.prototype.getDebouncedFunction=function(t){var i,s=(i=this.config.options).key.apply(i,t);return null==s?(this.debounceSingleton||(this.debounceSingleton=this._createDebouncedFunction()),this.debounceSingleton):(this.debounceCache[s]||(this.debounceCache[s]=this._createDebouncedFunction()),this.debounceCache[s])},t}();const D=class{constructor(s){t(this,s),this.change=i(this,"change",7),this.interact=i(this,"interact",7),this.action=i(this,"action",7),this.disabled=!1,this.readonly=!1,this.required=!1,this.multiple=!1,this.delimiter=null,this.actions=[],this.actionPosition="bottom",this.actionScrollBehavior="sticky",this.badgeIcons=!0,this.textValue="",this.loading=!1,this.chips=[],this.chipSetEditMode=!1,this.handleTextInput=this.handleTextInput.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleDropdownKeyDown=this.handleDropdownKeyDown.bind(this),this.handleInputFieldFocus=this.handleInputFieldFocus.bind(this),this.handleChange=this.handleChange.bind(this),this.handleInteract=this.handleInteract.bind(this),this.handleListChange=this.handleListChange.bind(this),this.handleActionListChange=this.handleActionListChange.bind(this),this.handleStopEditAndBlur=this.handleStopEditAndBlur.bind(this),this.createDebouncedSearcher=this.createDebouncedSearcher.bind(this),this.handleCloseMenu=this.handleCloseMenu.bind(this),this.onListKeyDown=this.onListKeyDown.bind(this),this.portalId=p()}componentWillLoad(){this.chips=this.createChips(this.value)}componentDidLoad(){this.createDebouncedSearcher(this.searcher),this.chipSet=this.host.shadowRoot.querySelector("limel-chip-set")}async componentWillUpdate(){this.chipSetEditMode=!1,this.chipSet&&(this.chipSetEditMode=await this.chipSet.getEditMode())}render(){this.chips.forEach((t=>{"iconBackgroundColor"in t&&t.iconBackgroundColor&&(t.iconFillColor="rgb(var(--color-white))")}));const t={};return this.multiple||(t.maxItems=1),[s("limel-chip-set",Object.assign({type:"input",label:this.label,helperText:this.helperText,leadingIcon:this.leadingIcon,value:this.chips,disabled:this.disabled,delimiter:this.renderDelimiter(),readonly:this.readonly,required:this.required,searchLabel:this.searchLabel,onInput:this.handleTextInput,onKeyDown:this.handleInputKeyDown,onChange:this.handleChange,onInteract:this.handleInteract,onStartEdit:this.handleInputFieldFocus,onStopEdit:this.handleStopEditAndBlur,emptyInputOnBlur:!1,clearAllButton:this.multiple},t)),this.renderDropdown()]}onChangeValue(){this.chips=this.createChips(this.value)}createDebouncedSearcher(t){var i,s,n;"function"==typeof t&&(this.debouncedSearch=(i=t,500,s=b({},w,undefined),n=new C({func:i,wait:500,options:s}),function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.getDebouncedFunction(t).func.apply(void 0,t)}))}renderDelimiter(){return this.multiple?this.delimiter:null}createChips(t){return t?this.multiple?t.map(this.createChip):[this.createChip(t)]:[]}createChip(t){return{id:`${t.value}`,text:t.text,removable:!0,icon:t.icon,iconBackgroundColor:t.iconColor,value:t}}renderDropdown(){const t=this.getDropdownContent(),i=[];if(this.shouldShowDropDownContent()){const s=this.getActionContent();"top"===this.actionPosition&&i.push(s),t&&i.push(t),"bottom"===this.actionPosition&&i.push(s)}return this.renderPortal(i)}getActionContent(){var t,i;return 0===(null!==(i=null===(t=this.actions)||void 0===t?void 0:t.length)&&void 0!==i?i:0)?null:[s("limel-list",{class:{"static-actions-list":!0,"is-on-top":"top"===this.actionPosition,"is-at-bottom":"bottom"===this.actionPosition,"has-position-sticky":"sticky"===this.actionScrollBehavior},badgeIcons:!0,type:"selectable",onChange:this.handleActionListChange,items:this.actions.map(this.removeUnusedPropertiesOnAction)})]}removeUnusedPropertiesOnAction(t){return Object.assign(Object.assign({},t),{actions:[]})}shouldShowDropDownContent(){return!this.isFull()&&!!this.chipSetEditMode}getDropdownContent(){if(this.shouldShowDropDownContent())return this.loading?this.renderSpinner():this.items&&this.items.length?this.renderListResult():this.renderEmptyMessage()}isFull(){return!this.multiple&&!!this.value}renderSpinner(){return s("div",{style:{width:"100%",display:"flex","align-items":"center","justify-content":"center",padding:"1rem 0"}},s("limel-spinner",{limeBranded:!1}))}renderEmptyMessage(){if(this.emptyResultMessage)return s("p",{style:{color:"rgb(var(--contrast-1100))","text-align":"center",margin:"0.5rem 1rem"}},this.emptyResultMessage)}renderListResult(){const t=this.items.some((t=>"icon"in t&&!!t.icon));return s("limel-list",{badgeIcons:t&&this.badgeIcons,onChange:this.handleListChange,onKeyDown:this.onListKeyDown,type:"selectable",items:this.items})}onListKeyDown(t){const i=[h,r,o].includes(t.key),s=[l,a,c].includes(t.keyCode);(i||s)&&this.chipSet.setFocus()}renderPortal(t=[]){const i=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");return s("limel-portal",{visible:t.length>0,containerId:this.portalId,inheritParentWidth:!0,containerStyle:{"z-index":i}},s("limel-menu-surface",{open:t.length>0,allowClicksElement:this.host,style:{"--mdc-menu-min-width":"100%","max-height":"inherit",display:"flex"},onDismiss:this.handleCloseMenu},t))}handleStopEditAndBlur(){const t=this.host.shadowRoot.activeElement||document.activeElement,i=document.querySelector(`#${this.portalId}`);e(t,this.host)||e(t,i)||this.clearInputField()}async handleTextInput(t){t.stopPropagation();const i=t.detail;this.textValue=i,this.loading=!0;const s=""===i?this.searcher:this.debouncedSearch,n=await s(i);this.handleSearchResult(i,n)}handleListChange(t){var i;if(t.stopPropagation(),!this.value||this.value!==t.detail){let i=t.detail;this.multiple&&(i=[...this.value,t.detail]),this.change.emit(i),this.items=[]}this.multiple&&(null===(i=this.chipSet)||void 0===i||i.setFocus(!0))}handleActionListChange(t){t.stopPropagation(),t.detail&&(this.action.emit(t.detail.value),this.items=[])}async handleInputFieldFocus(){this.loading=!0;const t=this.textValue,i=await this.searcher(t);this.handleSearchResult(t,i)}handleChange(t){t.stopPropagation();let i=null;this.multiple&&(i=t.detail.map((t=>this.value.find((i=>`${i.value}`===t.id))))),this.change.emit(i)}handleInteract(t){t.stopPropagation(),this.interact.emit(t.detail?t.detail.value:t.detail)}handleInputKeyDown(t){const i=!(t.key!==h&&t.keyCode!==l||t.altKey||t.metaKey||t.shiftKey),s=t.key===u||t.keyCode===d,n=t.key===m||t.keyCode===f;if(!i&&!s&&!n)return;const e=document.querySelector(` #${this.portalId} limel-list`);e&&(t.preventDefault(),i||n?e.shadowRoot.querySelector(".mdc-deprecated-list-item:first-child").focus():s&&e.shadowRoot.querySelector(".mdc-deprecated-list-item:last-child").focus())}handleDropdownKeyDown(t){(t.key===r||t.keyCode===a)&&(t.preventDefault(),this.textValue="",this.chipSet.setFocus(!0))}handleSearchResult(t,i){if(t===this.textValue){if(this.items=i,this.multiple){const t=this.value;this.items=i.filter((i=>!t.includes(i)))}this.loading=!1}}handleCloseMenu(){this.clearInputField()}clearInputField(){this.chipSet.emptyInput(),this.textValue="",this.handleSearchResult("",[])}get host(){return n(this)}static get watchers(){return{value:["onChangeValue"],searcher:["createDebouncedSearcher"]}}};D.style=":host{position:relative;display:block}:host([hidden]){display:none}";export{D as limel_picker}
@@ -1,4 +1,4 @@
1
- import{r as t,c as n,h as r,g as i}from"./p-e9a95b8f.js";import{a as e,w as o,f as c,h as a,j as s}from"./p-426d11b4.js";import{M as l,a as u}from"./p-48d4ef20.js";import{a as d,b as f,M as h}from"./p-cbc43682.js";import{m}from"./p-dcc97cc2.js";import{a as b,b as p,c as g,i as v,d as _}from"./p-f83213b8.js";import"./p-eda23c05.js";import"./p-c93050d6.js";import"./p-379955f4.js";import"./p-0b1af919.js";import"./p-858c6b82.js";import"./p-7f43b0c4.js";var y=g((function(t,n){return v(t)?function(t,n,r,i){var e=-1,o=b,s=!0,l=t.length,u=[],d=n.length;if(!l)return u;n.length>=200&&(o=a,s=!1,n=new c(n));t:for(;++e<l;){var f=t[e],h=f;if(f=0!==f?f:0,s&&h==h){for(var m=d;m--;)if(n[m]===h)continue t;u.push(f)}else o(n,h,i)||u.push(f)}return u}(t,_(n,1,v,!0)):[]})),w=function(t,n){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])})(t,n)};
1
+ import{r as t,c as n,h as r,g as i}from"./p-e9a95b8f.js";import{u as e,f as o,h as c,i as a}from"./p-ade76f1d.js";import{M as s,a as l}from"./p-48d4ef20.js";import{a as u,b as d,M as f}from"./p-cbc43682.js";import{m as h}from"./p-dcc97cc2.js";import{a as m,b,c as p,i as g,d as v}from"./p-fa607ed3.js";import{a as _}from"./p-669626e5.js";import"./p-eda23c05.js";import"./p-c93050d6.js";import"./p-4c3358cb.js";import"./p-0b1af919.js";import"./p-858c6b82.js";import"./p-9acf7b5d.js";import"./p-5fdb83c9.js";var y=p((function(t,n){return g(t)?function(t,n,r,i){var e=-1,a=m,s=!0,l=t.length,u=[],d=n.length;if(!l)return u;n.length>=200&&(a=c,s=!1,n=new o(n));t:for(;++e<l;){var f=t[e],h=f;if(f=0!==f?f:0,s&&h==h){for(var b=d;b--;)if(n[b]===h)continue t;u.push(f)}else a(n,h,i)||u.push(f)}return u}(t,v(n,1,g,!0)):[]})),w=function(t,n){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])})(t,n)};
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -48,7 +48,7 @@ PERFORMANCE OF THIS SOFTWARE.
48
48
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
49
49
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
50
50
  * THE SOFTWARE.
51
- */(n[1].split(","),6);return parseFloat(r[4])},n.prototype.clampScrollValue=function(t){var n=this.calculateScrollEdges();return Math.min(Math.max(n.left,t),n.right)},n.prototype.computeCurrentScrollPositionRTL=function(){var t=this.calculateCurrentTranslateX();return this.getRTLScroller().getScrollPositionRTL(t)},n.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},n.prototype.scrollToImpl=function(t){var n=this.getScrollPosition(),r=this.clampScrollValue(t);this.animate({finalScrollPosition:r,scrollDelta:r-n})},n.prototype.scrollToImplRTL=function(t){var n=this.getRTLScroller().scrollToRTL(t);this.animate(n)},n.prototype.getIncrementScrollOperation=function(t){if(this.isRTL())return this.getRTLScroller().incrementScrollRTL(t);var n=this.getScrollPosition(),r=this.clampScrollValue(t+n);return{finalScrollPosition:r,scrollDelta:r-n}},n.prototype.animate=function(t){var r=this;0!==t.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+t.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame((function(){r.adapter.addClass(n.cssClasses.ANIMATING),r.adapter.setScrollContentStyleProperty("transform","none")})),this.isAnimating=!0)},n.prototype.stopScrollAnimation=function(){this.isAnimating=!1;var t=this.getAnimatingScrollPosition();this.adapter.removeClass(n.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(t)},n.prototype.getAnimatingScrollPosition=function(){var t=this.calculateCurrentTranslateX(),n=this.adapter.getScrollAreaScrollLeft();return this.isRTL()?this.getRTLScroller().getAnimatingScrollPosition(n,t):n-t},n.prototype.rtlScrollerFactory=function(){var t=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(t-1);var n=this.adapter.getScrollAreaScrollLeft();if(n<0)return this.adapter.setScrollAreaScrollLeft(t),new L(this.adapter);var r=this.adapter.computeScrollAreaClientRect(),i=this.adapter.computeScrollContentClientRect(),e=Math.round(i.right-r.right);return this.adapter.setScrollAreaScrollLeft(t),e===n?new z(this.adapter):new I(this.adapter)},n.prototype.isRTL=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},n}(l),M=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return S(n,t),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(){this.area=this.root.querySelector(D.strings.AREA_SELECTOR),this.content=this.root.querySelector(D.strings.CONTENT_SELECTOR)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleInteraction=function(){t.foundation.handleInteraction()},this.handleTransitionEnd=function(n){t.foundation.handleTransitionEnd(n)},this.area.addEventListener("wheel",this.handleInteraction,d()),this.area.addEventListener("touchstart",this.handleInteraction,d()),this.area.addEventListener("pointerdown",this.handleInteraction,d()),this.area.addEventListener("mousedown",this.handleInteraction,d()),this.area.addEventListener("keydown",this.handleInteraction,d()),this.content.addEventListener("transitionend",this.handleTransitionEnd)},n.prototype.destroy=function(){t.prototype.destroy.call(this),this.area.removeEventListener("wheel",this.handleInteraction,d()),this.area.removeEventListener("touchstart",this.handleInteraction,d()),this.area.removeEventListener("pointerdown",this.handleInteraction,d()),this.area.removeEventListener("mousedown",this.handleInteraction,d()),this.area.removeEventListener("keydown",this.handleInteraction,d()),this.content.removeEventListener("transitionend",this.handleTransitionEnd)},n.prototype.getDefaultFoundation=function(){var t=this;return new D({eventTargetMatchesSelector:function(t,n){return m(t,n)},addClass:function(n){t.root.classList.add(n)},removeClass:function(n){t.root.classList.remove(n)},addScrollAreaClass:function(n){t.area.classList.add(n)},setScrollAreaStyleProperty:function(n,r){t.area.style.setProperty(n,r)},setScrollContentStyleProperty:function(n,r){t.content.style.setProperty(n,r)},getScrollContentStyleValue:function(n){return window.getComputedStyle(t.content).getPropertyValue(n)},setScrollAreaScrollLeft:function(n){return t.area.scrollLeft=n},getScrollAreaScrollLeft:function(){return t.area.scrollLeft},getScrollContentOffsetWidth:function(){return t.content.offsetWidth},getScrollAreaOffsetWidth:function(){return t.area.offsetWidth},computeScrollAreaClientRect:function(){return t.area.getBoundingClientRect()},computeScrollContentClientRect:function(){return t.content.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return function(t,n){if(void 0===n&&(n=!0),n&&void 0!==E)return E;var r=t.createElement("div");r.classList.add(k.SCROLL_TEST),t.body.appendChild(r);var i=r.offsetHeight-r.clientHeight;return t.body.removeChild(r),n&&(E=i),i}
51
+ */(n[1].split(","),6);return parseFloat(r[4])},n.prototype.clampScrollValue=function(t){var n=this.calculateScrollEdges();return Math.min(Math.max(n.left,t),n.right)},n.prototype.computeCurrentScrollPositionRTL=function(){var t=this.calculateCurrentTranslateX();return this.getRTLScroller().getScrollPositionRTL(t)},n.prototype.calculateScrollEdges=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},n.prototype.scrollToImpl=function(t){var n=this.getScrollPosition(),r=this.clampScrollValue(t);this.animate({finalScrollPosition:r,scrollDelta:r-n})},n.prototype.scrollToImplRTL=function(t){var n=this.getRTLScroller().scrollToRTL(t);this.animate(n)},n.prototype.getIncrementScrollOperation=function(t){if(this.isRTL())return this.getRTLScroller().incrementScrollRTL(t);var n=this.getScrollPosition(),r=this.clampScrollValue(t+n);return{finalScrollPosition:r,scrollDelta:r-n}},n.prototype.animate=function(t){var r=this;0!==t.scrollDelta&&(this.stopScrollAnimation(),this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+t.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect(),requestAnimationFrame((function(){r.adapter.addClass(n.cssClasses.ANIMATING),r.adapter.setScrollContentStyleProperty("transform","none")})),this.isAnimating=!0)},n.prototype.stopScrollAnimation=function(){this.isAnimating=!1;var t=this.getAnimatingScrollPosition();this.adapter.removeClass(n.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(t)},n.prototype.getAnimatingScrollPosition=function(){var t=this.calculateCurrentTranslateX(),n=this.adapter.getScrollAreaScrollLeft();return this.isRTL()?this.getRTLScroller().getAnimatingScrollPosition(n,t):n-t},n.prototype.rtlScrollerFactory=function(){var t=this.adapter.getScrollAreaScrollLeft();this.adapter.setScrollAreaScrollLeft(t-1);var n=this.adapter.getScrollAreaScrollLeft();if(n<0)return this.adapter.setScrollAreaScrollLeft(t),new L(this.adapter);var r=this.adapter.computeScrollAreaClientRect(),i=this.adapter.computeScrollContentClientRect(),e=Math.round(i.right-r.right);return this.adapter.setScrollAreaScrollLeft(t),e===n?new z(this.adapter):new I(this.adapter)},n.prototype.isRTL=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},n}(s),M=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return S(n,t),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(){this.area=this.root.querySelector(D.strings.AREA_SELECTOR),this.content=this.root.querySelector(D.strings.CONTENT_SELECTOR)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleInteraction=function(){t.foundation.handleInteraction()},this.handleTransitionEnd=function(n){t.foundation.handleTransitionEnd(n)},this.area.addEventListener("wheel",this.handleInteraction,u()),this.area.addEventListener("touchstart",this.handleInteraction,u()),this.area.addEventListener("pointerdown",this.handleInteraction,u()),this.area.addEventListener("mousedown",this.handleInteraction,u()),this.area.addEventListener("keydown",this.handleInteraction,u()),this.content.addEventListener("transitionend",this.handleTransitionEnd)},n.prototype.destroy=function(){t.prototype.destroy.call(this),this.area.removeEventListener("wheel",this.handleInteraction,u()),this.area.removeEventListener("touchstart",this.handleInteraction,u()),this.area.removeEventListener("pointerdown",this.handleInteraction,u()),this.area.removeEventListener("mousedown",this.handleInteraction,u()),this.area.removeEventListener("keydown",this.handleInteraction,u()),this.content.removeEventListener("transitionend",this.handleTransitionEnd)},n.prototype.getDefaultFoundation=function(){var t=this;return new D({eventTargetMatchesSelector:function(t,n){return h(t,n)},addClass:function(n){t.root.classList.add(n)},removeClass:function(n){t.root.classList.remove(n)},addScrollAreaClass:function(n){t.area.classList.add(n)},setScrollAreaStyleProperty:function(n,r){t.area.style.setProperty(n,r)},setScrollContentStyleProperty:function(n,r){t.content.style.setProperty(n,r)},getScrollContentStyleValue:function(n){return window.getComputedStyle(t.content).getPropertyValue(n)},setScrollAreaScrollLeft:function(n){return t.area.scrollLeft=n},getScrollAreaScrollLeft:function(){return t.area.scrollLeft},getScrollContentOffsetWidth:function(){return t.content.offsetWidth},getScrollAreaOffsetWidth:function(){return t.area.offsetWidth},computeScrollAreaClientRect:function(){return t.area.getBoundingClientRect()},computeScrollContentClientRect:function(){return t.content.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return function(t,n){if(void 0===n&&(n=!0),n&&void 0!==E)return E;var r=t.createElement("div");r.classList.add(k.SCROLL_TEST),t.body.appendChild(r);var i=r.offsetHeight-r.clientHeight;return t.body.removeChild(r),n&&(E=i),i}
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2018 Google Inc.
@@ -70,7 +70,7 @@ PERFORMANCE OF THIS SOFTWARE.
70
70
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
71
71
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
72
72
  * THE SOFTWARE.
73
- */(document)}})},n.prototype.getScrollPosition=function(){return this.foundation.getScrollPosition()},n.prototype.getScrollContentWidth=function(){return this.content.offsetWidth},n.prototype.incrementScroll=function(t){this.foundation.incrementScroll(t)},n.prototype.scrollTo=function(t){this.foundation.scrollTo(t)},n}(u),N=function(t,n){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])})(t,n)};function P(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}N(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var W=function(){return(W=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)},Y=function(t,n){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])})(t,n)};
73
+ */(document)}})},n.prototype.getScrollPosition=function(){return this.foundation.getScrollPosition()},n.prototype.getScrollContentWidth=function(){return this.content.offsetWidth},n.prototype.incrementScroll=function(t){this.foundation.incrementScroll(t)},n.prototype.scrollTo=function(t){this.foundation.scrollTo(t)},n}(l),N=function(t,n){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])})(t,n)};function P(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}N(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var W=function(){return(W=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)},Y=function(t,n){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])})(t,n)};
74
74
  /*! *****************************************************************************
75
75
  Copyright (c) Microsoft Corporation.
76
76
 
@@ -84,7 +84,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
84
84
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
85
85
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
86
86
  PERFORMANCE OF THIS SOFTWARE.
87
- ***************************************************************************** */function B(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}Y(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var K=function(){return(K=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)},H={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},V={CONTENT_SELECTOR:".mdc-tab-indicator__content"},F=function(t){function n(r){return t.call(this,K(K({},n.defaultAdapter),r))||this}return B(n,t),Object.defineProperty(n,"cssClasses",{get:function(){return H},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return V},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),n.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},n}(l),X=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return B(n,t),n.prototype.activate=function(){this.adapter.addClass(F.cssClasses.ACTIVE)},n.prototype.deactivate=function(){this.adapter.removeClass(F.cssClasses.ACTIVE)},n}(F),G=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return B(n,t),n.prototype.activate=function(t){if(t){var n=this.computeContentClientRect(),r=t.width/n.width,i=t.left-n.left;this.adapter.addClass(F.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+i+"px) scaleX("+r+")"),this.computeContentClientRect(),this.adapter.removeClass(F.cssClasses.NO_TRANSITION),this.adapter.addClass(F.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(F.cssClasses.ACTIVE)},n.prototype.deactivate=function(){this.adapter.removeClass(F.cssClasses.ACTIVE)},n}(F),q=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return B(n,t),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(){this.content=this.root.querySelector(F.strings.CONTENT_SELECTOR)},n.prototype.computeContentClientRect=function(){return this.foundation.computeContentClientRect()},n.prototype.getDefaultFoundation=function(){var t=this,n={addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},computeContentClientRect:function(){return t.content.getBoundingClientRect()},setContentStyleProperty:function(n,r){t.content.style.setProperty(n,r)}};return this.root.classList.contains(F.cssClasses.FADE)?new X(n):new G(n)},n.prototype.activate=function(t){this.foundation.activate(t)},n.prototype.deactivate=function(){this.foundation.deactivate()},n}(u),U={ACTIVE:"mdc-tab--active"},J={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"},Q=function(t){function n(r){var i=t.call(this,W(W({},n.defaultAdapter),r))||this;return i.focusOnActivate=!0,i}return P(n,t),Object.defineProperty(n,"cssClasses",{get:function(){return U},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return J},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),n.prototype.handleClick=function(){this.adapter.notifyInteracted()},n.prototype.isActive=function(){return this.adapter.hasClass(U.ACTIVE)},n.prototype.setFocusOnActivate=function(t){this.focusOnActivate=t},n.prototype.activate=function(t){this.adapter.addClass(U.ACTIVE),this.adapter.setAttr(J.ARIA_SELECTED,"true"),this.adapter.setAttr(J.TABINDEX,"0"),this.adapter.activateIndicator(t),this.focusOnActivate&&this.adapter.focus()},n.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(U.ACTIVE),this.adapter.setAttr(J.ARIA_SELECTED,"false"),this.adapter.setAttr(J.TABINDEX,"-1"),this.adapter.deactivateIndicator())},n.prototype.computeDimensions=function(){var t=this.adapter.getOffsetWidth(),n=this.adapter.getOffsetLeft(),r=this.adapter.getContentOffsetWidth(),i=this.adapter.getContentOffsetLeft();return{contentLeft:n+i,contentRight:n+i+r,rootLeft:n,rootRight:n+t}},n}(l),Z=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return P(n,t),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(t,n){void 0===t&&(t=function(t,n){return new h(t,n)}),void 0===n&&(n=function(t){return new q(t)}),this.id=this.root.id;var r=new f(h.createAdapter(this));this.ripple=t(this.root,r);var i=this.root.querySelector(Q.strings.TAB_INDICATOR_SELECTOR);this.tabIndicator=n(i),this.content=this.root.querySelector(Q.strings.CONTENT_SELECTOR)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick=function(){t.foundation.handleClick()},this.listen("click",this.handleClick)},n.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),t.prototype.destroy.call(this)},n.prototype.getDefaultFoundation=function(){var t=this;return new Q({setAttr:function(n,r){return t.root.setAttribute(n,r)},addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},hasClass:function(n){return t.root.classList.contains(n)},activateIndicator:function(n){t.tabIndicator.activate(n)},deactivateIndicator:function(){t.tabIndicator.deactivate()},notifyInteracted:function(){return t.emit(Q.strings.INTERACTED_EVENT,{tabId:t.id},!0)},getOffsetLeft:function(){return t.root.offsetLeft},getOffsetWidth:function(){return t.root.offsetWidth},getContentOffsetLeft:function(){return t.content.offsetLeft},getContentOffsetWidth:function(){return t.content.offsetWidth},focus:function(){return t.root.focus()}})},Object.defineProperty(n.prototype,"active",{get:function(){return this.foundation.isActive()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"focusOnActivate",{set:function(t){this.foundation.setFocusOnActivate(t)},enumerable:!1,configurable:!0}),n.prototype.activate=function(t){this.foundation.activate(t)},n.prototype.deactivate=function(){this.foundation.deactivate()},n.prototype.computeIndicatorClientRect=function(){return this.tabIndicator.computeContentClientRect()},n.prototype.computeDimensions=function(){return this.foundation.computeDimensions()},n.prototype.focus=function(){this.root.focus()},n}(u),$={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},tt={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},nt=new Set;
87
+ ***************************************************************************** */function B(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}Y(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var K=function(){return(K=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)},H={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},V={CONTENT_SELECTOR:".mdc-tab-indicator__content"},F=function(t){function n(r){return t.call(this,K(K({},n.defaultAdapter),r))||this}return B(n,t),Object.defineProperty(n,"cssClasses",{get:function(){return H},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return V},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),n.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},n}(s),X=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return B(n,t),n.prototype.activate=function(){this.adapter.addClass(F.cssClasses.ACTIVE)},n.prototype.deactivate=function(){this.adapter.removeClass(F.cssClasses.ACTIVE)},n}(F),G=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return B(n,t),n.prototype.activate=function(t){if(t){var n=this.computeContentClientRect(),r=t.width/n.width,i=t.left-n.left;this.adapter.addClass(F.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+i+"px) scaleX("+r+")"),this.computeContentClientRect(),this.adapter.removeClass(F.cssClasses.NO_TRANSITION),this.adapter.addClass(F.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(F.cssClasses.ACTIVE)},n.prototype.deactivate=function(){this.adapter.removeClass(F.cssClasses.ACTIVE)},n}(F),q=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return B(n,t),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(){this.content=this.root.querySelector(F.strings.CONTENT_SELECTOR)},n.prototype.computeContentClientRect=function(){return this.foundation.computeContentClientRect()},n.prototype.getDefaultFoundation=function(){var t=this,n={addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},computeContentClientRect:function(){return t.content.getBoundingClientRect()},setContentStyleProperty:function(n,r){t.content.style.setProperty(n,r)}};return this.root.classList.contains(F.cssClasses.FADE)?new X(n):new G(n)},n.prototype.activate=function(t){this.foundation.activate(t)},n.prototype.deactivate=function(){this.foundation.deactivate()},n}(l),U={ACTIVE:"mdc-tab--active"},J={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"},Q=function(t){function n(r){var i=t.call(this,W(W({},n.defaultAdapter),r))||this;return i.focusOnActivate=!0,i}return P(n,t),Object.defineProperty(n,"cssClasses",{get:function(){return U},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return J},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),n.prototype.handleClick=function(){this.adapter.notifyInteracted()},n.prototype.isActive=function(){return this.adapter.hasClass(U.ACTIVE)},n.prototype.setFocusOnActivate=function(t){this.focusOnActivate=t},n.prototype.activate=function(t){this.adapter.addClass(U.ACTIVE),this.adapter.setAttr(J.ARIA_SELECTED,"true"),this.adapter.setAttr(J.TABINDEX,"0"),this.adapter.activateIndicator(t),this.focusOnActivate&&this.adapter.focus()},n.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(U.ACTIVE),this.adapter.setAttr(J.ARIA_SELECTED,"false"),this.adapter.setAttr(J.TABINDEX,"-1"),this.adapter.deactivateIndicator())},n.prototype.computeDimensions=function(){var t=this.adapter.getOffsetWidth(),n=this.adapter.getOffsetLeft(),r=this.adapter.getContentOffsetWidth(),i=this.adapter.getContentOffsetLeft();return{contentLeft:n+i,contentRight:n+i+r,rootLeft:n,rootRight:n+t}},n}(s),Z=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return P(n,t),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(t,n){void 0===t&&(t=function(t,n){return new f(t,n)}),void 0===n&&(n=function(t){return new q(t)}),this.id=this.root.id;var r=new d(f.createAdapter(this));this.ripple=t(this.root,r);var i=this.root.querySelector(Q.strings.TAB_INDICATOR_SELECTOR);this.tabIndicator=n(i),this.content=this.root.querySelector(Q.strings.CONTENT_SELECTOR)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick=function(){t.foundation.handleClick()},this.listen("click",this.handleClick)},n.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),t.prototype.destroy.call(this)},n.prototype.getDefaultFoundation=function(){var t=this;return new Q({setAttr:function(n,r){return t.root.setAttribute(n,r)},addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},hasClass:function(n){return t.root.classList.contains(n)},activateIndicator:function(n){t.tabIndicator.activate(n)},deactivateIndicator:function(){t.tabIndicator.deactivate()},notifyInteracted:function(){return t.emit(Q.strings.INTERACTED_EVENT,{tabId:t.id},!0)},getOffsetLeft:function(){return t.root.offsetLeft},getOffsetWidth:function(){return t.root.offsetWidth},getContentOffsetLeft:function(){return t.content.offsetLeft},getContentOffsetWidth:function(){return t.content.offsetWidth},focus:function(){return t.root.focus()}})},Object.defineProperty(n.prototype,"active",{get:function(){return this.foundation.isActive()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"focusOnActivate",{set:function(t){this.foundation.setFocusOnActivate(t)},enumerable:!1,configurable:!0}),n.prototype.activate=function(t){this.foundation.activate(t)},n.prototype.deactivate=function(){this.foundation.deactivate()},n.prototype.computeIndicatorClientRect=function(){return this.tabIndicator.computeContentClientRect()},n.prototype.computeDimensions=function(){return this.foundation.computeDimensions()},n.prototype.focus=function(){this.root.focus()},n}(l),$={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},tt={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},nt=new Set;
88
88
  /**
89
89
  * @license
90
90
  * Copyright 2018 Google Inc.
@@ -106,7 +106,7 @@ PERFORMANCE OF THIS SOFTWARE.
106
106
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
107
107
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
108
108
  * THE SOFTWARE.
109
- */nt.add($.ARROW_LEFT_KEY),nt.add($.ARROW_RIGHT_KEY),nt.add($.END_KEY),nt.add($.HOME_KEY),nt.add($.ENTER_KEY),nt.add($.SPACE_KEY);var rt=new Map;rt.set(tt.ARROW_LEFT_KEYCODE,$.ARROW_LEFT_KEY),rt.set(tt.ARROW_RIGHT_KEYCODE,$.ARROW_RIGHT_KEY),rt.set(tt.END_KEYCODE,$.END_KEY),rt.set(tt.HOME_KEYCODE,$.HOME_KEY),rt.set(tt.ENTER_KEYCODE,$.ENTER_KEY),rt.set(tt.SPACE_KEYCODE,$.SPACE_KEY);var it=function(t){function n(r){var i=t.call(this,C(C({},n.defaultAdapter),r))||this;return i.useAutomaticActivation=!1,i}return x(n,t),Object.defineProperty(n,"strings",{get:function(){return $},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return tt},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),n.prototype.setUseAutomaticActivation=function(t){this.useAutomaticActivation=t},n.prototype.activateTab=function(t){var n,r=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(t)&&t!==r&&(-1!==r&&(this.adapter.deactivateTabAtIndex(r),n=this.adapter.getTabIndicatorClientRectAtIndex(r)),this.adapter.activateTabAtIndex(t,n),this.scrollIntoView(t),this.adapter.notifyTabActivated(t))},n.prototype.handleKeyDown=function(t){var n=this.getKeyFromEvent(t);if(void 0!==n)if(this.isActivationKey(n)||t.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(n))return;var r=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),n);this.adapter.setActiveTab(r),this.scrollIntoView(r)}else{var i=this.adapter.getFocusedTabIndex();this.isActivationKey(n)?this.adapter.setActiveTab(i):(r=this.determineTargetFromKey(i,n),this.adapter.focusTabAtIndex(r),this.scrollIntoView(r))}},n.prototype.handleTabInteraction=function(t){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(t.detail.tabId))},n.prototype.scrollIntoView=function(t){this.indexIsInRange(t)&&(0!==t?t!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(t):this.scrollIntoViewImpl(t):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},n.prototype.determineTargetFromKey=function(t,n){var r=this.isRTL(),i=this.adapter.getTabListLength()-1,e=t;return n===$.END_KEY?e=i:n===$.ARROW_LEFT_KEY&&!r||n===$.ARROW_RIGHT_KEY&&r?e-=1:n===$.ARROW_RIGHT_KEY&&!r||n===$.ARROW_LEFT_KEY&&r?e+=1:e=0,e<0?e=i:e>i&&(e=0),e},n.prototype.calculateScrollIncrement=function(t,n,r,i){var e=this.adapter.getTabDimensionsAtIndex(n),o=e.contentLeft-r-i+tt.EXTRA_SCROLL_AMOUNT;return n<t?Math.min(e.contentRight-r-tt.EXTRA_SCROLL_AMOUNT,0):Math.max(o,0)},n.prototype.calculateScrollIncrementRTL=function(t,n,r,i,e){var o=this.adapter.getTabDimensionsAtIndex(n),c=e-o.contentLeft-r-tt.EXTRA_SCROLL_AMOUNT;return n>t?Math.max(e-o.contentRight-r-i+tt.EXTRA_SCROLL_AMOUNT,0):Math.min(c,0)},n.prototype.findAdjacentTabIndexClosestToEdge=function(t,n,r,i){var e=n.rootLeft-r,o=n.rootRight-r-i,c=e+o;return e<0||c<0?t-1:o>0||c>0?t+1:-1},n.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(t,n,r,i,e){var o=e-n.rootLeft-i-r,c=e-n.rootRight-r,a=o+c;return o>0||a>0?t+1:c<0||a<0?t-1:-1},n.prototype.getKeyFromEvent=function(t){return nt.has(t.key)?t.key:rt.get(t.keyCode)},n.prototype.isActivationKey=function(t){return t===$.SPACE_KEY||t===$.ENTER_KEY},n.prototype.indexIsInRange=function(t){return t>=0&&t<this.adapter.getTabListLength()},n.prototype.isRTL=function(){return this.adapter.isRTL()},n.prototype.scrollIntoViewImpl=function(t){var n=this.adapter.getScrollPosition(),r=this.adapter.getOffsetWidth(),i=this.adapter.getTabDimensionsAtIndex(t),e=this.findAdjacentTabIndexClosestToEdge(t,i,n,r);if(this.indexIsInRange(e)){var o=this.calculateScrollIncrement(t,e,n,r);this.adapter.incrementScroll(o)}},n.prototype.scrollIntoViewImplRTL=function(t){var n=this.adapter.getScrollPosition(),r=this.adapter.getOffsetWidth(),i=this.adapter.getTabDimensionsAtIndex(t),e=this.adapter.getScrollContentWidth(),o=this.findAdjacentTabIndexClosestToEdgeRTL(t,i,n,r,e);if(this.indexIsInRange(o)){var c=this.calculateScrollIncrementRTL(t,o,n,r,e);this.adapter.incrementScroll(c)}},n}(l),et=it.strings,ot=0,ct=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return x(n,t),n.attachTo=function(t){return new n(t)},Object.defineProperty(n.prototype,"focusOnActivate",{set:function(t){var n,r;try{for(var i=O(this.tabList),e=i.next();!e.done;e=i.next())e.value.focusOnActivate=t}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"useAutomaticActivation",{set:function(t){this.foundation.setUseAutomaticActivation(t)},enumerable:!1,configurable:!0}),n.prototype.initialize=function(t,n){void 0===t&&(t=function(t){return new Z(t)}),void 0===n&&(n=function(t){return new M(t)}),this.tabList=this.instantiateTabs(t),this.tabScroller=this.instantiatetabScroller(n)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleTabInteraction=function(n){t.foundation.handleTabInteraction(n)},this.handleKeyDown=function(n){t.foundation.handleKeyDown(n)},this.listen(Q.strings.INTERACTED_EVENT,this.handleTabInteraction),this.listen("keydown",this.handleKeyDown);for(var n=0;n<this.tabList.length;n++)if(this.tabList[n].active){this.scrollIntoView(n);break}},n.prototype.destroy=function(){var n,r;t.prototype.destroy.call(this),this.unlisten(Q.strings.INTERACTED_EVENT,this.handleTabInteraction),this.unlisten("keydown",this.handleKeyDown);try{for(var i=O(this.tabList),e=i.next();!e.done;e=i.next())e.value.destroy()}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}this.tabScroller&&this.tabScroller.destroy()},n.prototype.getDefaultFoundation=function(){var t=this;return new it({scrollTo:function(n){t.tabScroller.scrollTo(n)},incrementScroll:function(n){t.tabScroller.incrementScroll(n)},getScrollPosition:function(){return t.tabScroller.getScrollPosition()},getScrollContentWidth:function(){return t.tabScroller.getScrollContentWidth()},getOffsetWidth:function(){return t.root.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(t.root).getPropertyValue("direction")},setActiveTab:function(n){t.foundation.activateTab(n)},activateTabAtIndex:function(n,r){t.tabList[n].activate(r)},deactivateTabAtIndex:function(n){t.tabList[n].deactivate()},focusTabAtIndex:function(n){t.tabList[n].focus()},getTabIndicatorClientRectAtIndex:function(n){return t.tabList[n].computeIndicatorClientRect()},getTabDimensionsAtIndex:function(n){return t.tabList[n].computeDimensions()},getPreviousActiveTabIndex:function(){for(var n=0;n<t.tabList.length;n++)if(t.tabList[n].active)return n;return-1},getFocusedTabIndex:function(){var n=t.getTabElements(),r=document.activeElement;return n.indexOf(r)},getIndexOfTabById:function(n){for(var r=0;r<t.tabList.length;r++)if(t.tabList[r].id===n)return r;return-1},getTabListLength:function(){return t.tabList.length},notifyTabActivated:function(n){return t.emit(et.TAB_ACTIVATED_EVENT,{index:n},!0)}})},n.prototype.activateTab=function(t){this.foundation.activateTab(t)},n.prototype.scrollIntoView=function(t){this.foundation.scrollIntoView(t)},n.prototype.getTabElements=function(){return[].slice.call(this.root.querySelectorAll(et.TAB_SELECTOR))},n.prototype.instantiateTabs=function(t){return this.getTabElements().map((function(n){return n.id=n.id||"mdc-tab-"+ ++ot,t(n)}))},n.prototype.instantiatetabScroller=function(t){var n=this.root.querySelector(et.TAB_SCROLLER_SELECTOR);return n?t(n):null},n}(u);
109
+ */nt.add($.ARROW_LEFT_KEY),nt.add($.ARROW_RIGHT_KEY),nt.add($.END_KEY),nt.add($.HOME_KEY),nt.add($.ENTER_KEY),nt.add($.SPACE_KEY);var rt=new Map;rt.set(tt.ARROW_LEFT_KEYCODE,$.ARROW_LEFT_KEY),rt.set(tt.ARROW_RIGHT_KEYCODE,$.ARROW_RIGHT_KEY),rt.set(tt.END_KEYCODE,$.END_KEY),rt.set(tt.HOME_KEYCODE,$.HOME_KEY),rt.set(tt.ENTER_KEYCODE,$.ENTER_KEY),rt.set(tt.SPACE_KEYCODE,$.SPACE_KEY);var it=function(t){function n(r){var i=t.call(this,C(C({},n.defaultAdapter),r))||this;return i.useAutomaticActivation=!1,i}return x(n,t),Object.defineProperty(n,"strings",{get:function(){return $},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return tt},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!1,configurable:!0}),n.prototype.setUseAutomaticActivation=function(t){this.useAutomaticActivation=t},n.prototype.activateTab=function(t){var n,r=this.adapter.getPreviousActiveTabIndex();this.indexIsInRange(t)&&t!==r&&(-1!==r&&(this.adapter.deactivateTabAtIndex(r),n=this.adapter.getTabIndicatorClientRectAtIndex(r)),this.adapter.activateTabAtIndex(t,n),this.scrollIntoView(t),this.adapter.notifyTabActivated(t))},n.prototype.handleKeyDown=function(t){var n=this.getKeyFromEvent(t);if(void 0!==n)if(this.isActivationKey(n)||t.preventDefault(),this.useAutomaticActivation){if(this.isActivationKey(n))return;var r=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(),n);this.adapter.setActiveTab(r),this.scrollIntoView(r)}else{var i=this.adapter.getFocusedTabIndex();this.isActivationKey(n)?this.adapter.setActiveTab(i):(r=this.determineTargetFromKey(i,n),this.adapter.focusTabAtIndex(r),this.scrollIntoView(r))}},n.prototype.handleTabInteraction=function(t){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(t.detail.tabId))},n.prototype.scrollIntoView=function(t){this.indexIsInRange(t)&&(0!==t?t!==this.adapter.getTabListLength()-1?this.isRTL()?this.scrollIntoViewImplRTL(t):this.scrollIntoViewImpl(t):this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.adapter.scrollTo(0))},n.prototype.determineTargetFromKey=function(t,n){var r=this.isRTL(),i=this.adapter.getTabListLength()-1,e=t;return n===$.END_KEY?e=i:n===$.ARROW_LEFT_KEY&&!r||n===$.ARROW_RIGHT_KEY&&r?e-=1:n===$.ARROW_RIGHT_KEY&&!r||n===$.ARROW_LEFT_KEY&&r?e+=1:e=0,e<0?e=i:e>i&&(e=0),e},n.prototype.calculateScrollIncrement=function(t,n,r,i){var e=this.adapter.getTabDimensionsAtIndex(n),o=e.contentLeft-r-i+tt.EXTRA_SCROLL_AMOUNT;return n<t?Math.min(e.contentRight-r-tt.EXTRA_SCROLL_AMOUNT,0):Math.max(o,0)},n.prototype.calculateScrollIncrementRTL=function(t,n,r,i,e){var o=this.adapter.getTabDimensionsAtIndex(n),c=e-o.contentLeft-r-tt.EXTRA_SCROLL_AMOUNT;return n>t?Math.max(e-o.contentRight-r-i+tt.EXTRA_SCROLL_AMOUNT,0):Math.min(c,0)},n.prototype.findAdjacentTabIndexClosestToEdge=function(t,n,r,i){var e=n.rootLeft-r,o=n.rootRight-r-i,c=e+o;return e<0||c<0?t-1:o>0||c>0?t+1:-1},n.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(t,n,r,i,e){var o=e-n.rootLeft-i-r,c=e-n.rootRight-r,a=o+c;return o>0||a>0?t+1:c<0||a<0?t-1:-1},n.prototype.getKeyFromEvent=function(t){return nt.has(t.key)?t.key:rt.get(t.keyCode)},n.prototype.isActivationKey=function(t){return t===$.SPACE_KEY||t===$.ENTER_KEY},n.prototype.indexIsInRange=function(t){return t>=0&&t<this.adapter.getTabListLength()},n.prototype.isRTL=function(){return this.adapter.isRTL()},n.prototype.scrollIntoViewImpl=function(t){var n=this.adapter.getScrollPosition(),r=this.adapter.getOffsetWidth(),i=this.adapter.getTabDimensionsAtIndex(t),e=this.findAdjacentTabIndexClosestToEdge(t,i,n,r);if(this.indexIsInRange(e)){var o=this.calculateScrollIncrement(t,e,n,r);this.adapter.incrementScroll(o)}},n.prototype.scrollIntoViewImplRTL=function(t){var n=this.adapter.getScrollPosition(),r=this.adapter.getOffsetWidth(),i=this.adapter.getTabDimensionsAtIndex(t),e=this.adapter.getScrollContentWidth(),o=this.findAdjacentTabIndexClosestToEdgeRTL(t,i,n,r,e);if(this.indexIsInRange(o)){var c=this.calculateScrollIncrementRTL(t,o,n,r,e);this.adapter.incrementScroll(c)}},n}(s),et=it.strings,ot=0,ct=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return x(n,t),n.attachTo=function(t){return new n(t)},Object.defineProperty(n.prototype,"focusOnActivate",{set:function(t){var n,r;try{for(var i=O(this.tabList),e=i.next();!e.done;e=i.next())e.value.focusOnActivate=t}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"useAutomaticActivation",{set:function(t){this.foundation.setUseAutomaticActivation(t)},enumerable:!1,configurable:!0}),n.prototype.initialize=function(t,n){void 0===t&&(t=function(t){return new Z(t)}),void 0===n&&(n=function(t){return new M(t)}),this.tabList=this.instantiateTabs(t),this.tabScroller=this.instantiatetabScroller(n)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleTabInteraction=function(n){t.foundation.handleTabInteraction(n)},this.handleKeyDown=function(n){t.foundation.handleKeyDown(n)},this.listen(Q.strings.INTERACTED_EVENT,this.handleTabInteraction),this.listen("keydown",this.handleKeyDown);for(var n=0;n<this.tabList.length;n++)if(this.tabList[n].active){this.scrollIntoView(n);break}},n.prototype.destroy=function(){var n,r;t.prototype.destroy.call(this),this.unlisten(Q.strings.INTERACTED_EVENT,this.handleTabInteraction),this.unlisten("keydown",this.handleKeyDown);try{for(var i=O(this.tabList),e=i.next();!e.done;e=i.next())e.value.destroy()}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}this.tabScroller&&this.tabScroller.destroy()},n.prototype.getDefaultFoundation=function(){var t=this;return new it({scrollTo:function(n){t.tabScroller.scrollTo(n)},incrementScroll:function(n){t.tabScroller.incrementScroll(n)},getScrollPosition:function(){return t.tabScroller.getScrollPosition()},getScrollContentWidth:function(){return t.tabScroller.getScrollContentWidth()},getOffsetWidth:function(){return t.root.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(t.root).getPropertyValue("direction")},setActiveTab:function(n){t.foundation.activateTab(n)},activateTabAtIndex:function(n,r){t.tabList[n].activate(r)},deactivateTabAtIndex:function(n){t.tabList[n].deactivate()},focusTabAtIndex:function(n){t.tabList[n].focus()},getTabIndicatorClientRectAtIndex:function(n){return t.tabList[n].computeIndicatorClientRect()},getTabDimensionsAtIndex:function(n){return t.tabList[n].computeDimensions()},getPreviousActiveTabIndex:function(){for(var n=0;n<t.tabList.length;n++)if(t.tabList[n].active)return n;return-1},getFocusedTabIndex:function(){var n=t.getTabElements(),r=document.activeElement;return n.indexOf(r)},getIndexOfTabById:function(n){for(var r=0;r<t.tabList.length;r++)if(t.tabList[r].id===n)return r;return-1},getTabListLength:function(){return t.tabList.length},notifyTabActivated:function(n){return t.emit(et.TAB_ACTIVATED_EVENT,{index:n},!0)}})},n.prototype.activateTab=function(t){this.foundation.activateTab(t)},n.prototype.scrollIntoView=function(t){this.foundation.scrollIntoView(t)},n.prototype.getTabElements=function(){return[].slice.call(this.root.querySelectorAll(et.TAB_SELECTOR))},n.prototype.instantiateTabs=function(t){return this.getTabElements().map((function(n){return n.id=n.id||"mdc-tab-"+ ++ot,t(n)}))},n.prototype.instantiatetabScroller=function(t){var n=this.root.querySelector(et.TAB_SCROLLER_SELECTOR);return n?t(n):null},n}(l);
110
110
  /**
111
111
  * @license
112
112
  * Copyright 2018 Google Inc.
@@ -128,4 +128,4 @@ PERFORMANCE OF THIS SOFTWARE.
128
128
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
129
129
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
130
130
  * THE SOFTWARE.
131
- */const{TAB_ACTIVATED_EVENT:at}=$,st=class{constructor(r){t(this,r),this.changeTab=n(this,"changeTab",7),this.tabs=[],this.canScrollLeft=!1,this.canScrollRight=!1,this.setupMdc=!1,this.handleTabActivated=this.handleTabActivated.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleLeftScrollClick=this.handleLeftScrollClick.bind(this),this.handleRightScrollClick=this.handleRightScrollClick.bind(this),this.renderTab=this.renderTab.bind(this)}connectedCallback(){this.setup()}componentDidLoad(){this.setup()}componentDidUpdate(){this.setupMdc&&(this.setup(),this.setupMdc=!1)}disconnectedCallback(){this.tearDown()}render(){return r("div",{class:"mdc-tab-bar",role:"tablist"},r("div",{class:{"mdc-tab-scroller":!0,"can-scroll-left":this.canScrollLeft,"can-scroll-right":this.canScrollRight}},r("div",{class:"mdc-tab-scroller__scroll-area lime-hide-scrollbars"},r("div",{class:"mdc-tab-scroller__scroll-content"},this.tabs.map(this.renderTab))),r("div",{class:"scroll-fade left"}),r("div",{class:"scroll-button left"},r("limel-icon-button",{icon:"angle_left",elevated:!0,tabindex:"-1","aria-hidden":"true",disabled:!this.canScrollLeft,onClick:this.handleLeftScrollClick})),r("div",{class:"scroll-fade right"}),r("div",{class:"scroll-button right"},r("limel-icon-button",{icon:"angle_right",elevated:!0,tabindex:"-1","aria-hidden":"true",disabled:!this.canScrollRight,onClick:this.handleRightScrollClick}))))}tabsChanged(t=[],n=[]){const r=t.map((t=>t.id)),i=n.map((t=>t.id));s(r,i)||(this.setupMdc=!0,this.tearDown())}handleWindowResize(){this.handleScroll()}setup(){const t=this.host.shadowRoot.querySelector(".mdc-tab-bar");t&&(this.mdcTabBar=new ct(t),this.mdcTabBar.focusOnActivate=!0,this.mdcTabBar.useAutomaticActivation=!0,this.scrollArea=t.querySelector(".mdc-tab-scroller__scroll-area"),this.scrollContent=t.querySelector(".mdc-tab-scroller__scroll-content"),this.setupListeners(),setTimeout(this.handleScroll,0))}tearDown(){this.scrollArea&&this.scrollArea.removeEventListener("scroll",this.handleScroll),this.mdcTabBar&&(this.mdcTabBar.unlisten(at,this.handleTabActivated),this.mdcTabBar.destroy())}setupListeners(){this.mdcTabBar.listen(at,this.handleTabActivated),this.scrollArea.addEventListener("scroll",this.handleScroll,{passive:!0})}handleTabActivated(t){const n=function(t,n){const r=t.findIndex((t=>!0===t.active)),i=[...t];return-1!==r&&(i[r]=Object.assign(Object.assign({},t[r]),{active:!1})),i[n]=Object.assign(Object.assign({},t[n]),{active:!0}),i}(this.tabs,t.detail.index);y(n,this.tabs).sort(this.sortByInactive).forEach((t=>{this.changeTab.emit(t)})),this.tabs=n}sortByInactive(t,n){return Number(t.active)-Number(n.active)}handleScroll(){const t=this.scrollArea.scrollLeft,n=Math.floor(this.scrollContent.getBoundingClientRect().width-this.scrollArea.getBoundingClientRect().width-t);this.canScrollLeft=t>40,this.canScrollRight=n>40}handleLeftScrollClick(){this.scrollArea.scroll({left:this.scrollArea.scrollLeft-150,behavior:"smooth"})}handleRightScrollClick(){this.scrollArea.scroll({left:this.scrollArea.scrollLeft+150,behavior:"smooth"})}renderIcon(t){if(!t.icon)return;const n={color:""};return t.iconColor&&(n.color=t.iconColor),r("limel-icon",{class:"mdc-tab__icon",name:t.icon,style:n,size:"small","aria-hidden":"true"})}renderTab(t){return r("button",{class:{"mdc-tab":!0,"mdc-tab--active":!!t.active},role:"tab","aria-selected":t.active?"true":"false",tabindex:t.active?0:-1},r("span",{class:"mdc-tab__content"},this.renderIcon(t),r("span",{class:"mdc-tab__text-label"},t.text),t.badge?r("limel-badge",{label:t.badge}):""),r("span",{class:{"mdc-tab-indicator":!0,"mdc-tab-indicator--active":!!t.active}},r("span",{class:"mdc-tab-indicator__content mdc-tab-indicator__content--underline"})),r("span",{class:"mdc-tab__ripple"}))}get host(){return i(this)}static get watchers(){return{tabs:["tabsChanged"]}}};st.style=":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}.mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:flex;flex:1 0 auto;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#26a69a;border-color:var(--mdc-theme-primary, #26a69a)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#575756;color:var(--mdc-theme-secondary, #575756)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mdc-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:none;text-transform:var(--mdc-typography-button-text-transform, none);position:relative}.mdc-tab .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mdc-tab .mdc-tab__icon{color:rgba(0, 0, 0, 0.54);fill:currentColor}.mdc-tab__content{position:relative}.mdc-tab__icon{width:24px;height:24px;font-size:24px}.mdc-tab--active .mdc-tab__text-label{color:#26a69a;color:var(--mdc-theme-primary, #26a69a)}.mdc-tab--active .mdc-tab__icon{color:#26a69a;color:var(--mdc-theme-primary, #26a69a);fill:currentColor}.mdc-tab{background:none}.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px;}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-tab{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-tab .mdc-tab__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-tab .mdc-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}.mdc-tab:hover .mdc-tab__ripple::before,.mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before,.mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after{transition:opacity 150ms linear}.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-tab.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-tab__ripple{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:transform, opacity}.scroll-fade,.scroll-button{position:absolute;transition-property:transform;transition-duration:0.3s;transition-timing-function:ease-out}.scroll-fade{top:0;height:100%;width:4.0625rem;pointer-events:none}.scroll-fade.left{transform:translate3d(-4.0625rem, 0, 0);left:0;background:linear-gradient(270deg, rgba(var(--contrast-300), 0) 0%, rgba(var(--contrast-300), 0.8) 40%, rgba(var(--contrast-300), 0.8) 100%)}.scroll-fade.right{transform:translate3d(4.0625rem, 0, 0);right:0;background:linear-gradient(90deg, rgba(var(--contrast-300), 0) 0%, rgba(var(--contrast-300), 0.8) 40%, rgba(var(--contrast-300), 0.8) 100%)}.scroll-button{--icon-background-color:rgb(var(--contrast-100));top:0.25rem}.scroll-button.left{transform:translate3d(-4.0625rem, 0, 0);left:0.25rem}.scroll-button.right{transform:translate3d(4.0625rem, 0, 0);right:0.25rem}.scroll-button:hover{transform:translate3d(0, 0, 0)}.mdc-tab-scroller{position:relative;overflow:hidden}.mdc-tab-scroller.can-scroll-left .scroll-fade.left,.mdc-tab-scroller.can-scroll-left .scroll-button.left,.mdc-tab-scroller.can-scroll-right .scroll-fade.right,.mdc-tab-scroller.can-scroll-right .scroll-button.right{transform:translate3d(0, 0, 0)}.mdc-tab-scroller.can-scroll-left:not(.can-scroll-right) .scroll-button.right,.mdc-tab-scroller.can-scroll-right:not(.can-scroll-left) .scroll-button.left{opacity:0.5;transition-delay:0.5s}.lime-hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.mdc-tab-scroller__scroll-content{padding:0.5rem 0.75rem 0 0.75rem;background-color:rgb(var(--contrast-300))}:host{display:block;position:relative}:host(.has-tabs-with-equal-width) .mdc-tab{flex:1 0 auto}.mdc-tab-indicator .mdc-tab-indicator__content{border:none}.mdc-tab__ripple{box-sizing:border-box;border-radius:0.625rem;border-style:solid;border-color:transparent;border-width:0.25rem;opacity:0.7}.mdc-tab__ripple:before,.mdc-tab__ripple:after{transition:background-color 0.5s ease}.mdc-tab{border-radius:0;letter-spacing:normal;padding-right:1.25rem;padding-left:1.25rem;min-width:2.5rem;background-color:transparent;flex:0 0 auto}.mdc-tab:not(.mdc-tab--active){--badge-background-color:rgb(var(--contrast-600))}.mdc-tab:not(.mdc-tab--active):after{content:\"\";display:block;background-color:rgb(var(--contrast-600));width:0.125rem;height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:-0.125rem}.mdc-tab:not(.mdc-tab--active):last-of-type:after{display:none}.mdc-tab--active{border-radius:0.625rem 0.625rem 0 0;background-color:rgb(var(--contrast-100));z-index:2}.mdc-tab--active:before,.mdc-tab--active:after{content:\"\";display:block;width:0.75rem;height:0.75rem;position:absolute;bottom:0;background-color:rgb(var(--contrast-100));-webkit-mask-image:url(\"data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' clip-rule='evenodd' viewBox='0 0 50 50'><defs/><path d='M0 0c0 27.594 22.406 50 50 50H0V0z'/></svg>\");mask-image:url(\"data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' clip-rule='evenodd' viewBox='0 0 50 50'><defs/><path d='M0 0c0 27.594 22.406 50 50 50H0V0z'/></svg>\")}.mdc-tab--active:before{left:-0.75rem;transform:rotateY(180deg)}.mdc-tab--active:after{right:-0.75rem}.mdc-tab--active .mdc-ripple-upgraded--background-focused:before{background-color:transparent;transition:background-color 1s ease}.mdc-tab__content{gap:0.375rem}.mdc-tab__text-label{padding-left:0 !important}";export{st as limel_tab_bar}
131
+ */const{TAB_ACTIVATED_EVENT:at}=$,st=class{constructor(r){t(this,r),this.changeTab=n(this,"changeTab",7),this.tabs=[],this.canScrollLeft=!1,this.canScrollRight=!1,this.setupMdc=!1,this.handleTabActivated=this.handleTabActivated.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleLeftScrollClick=this.handleLeftScrollClick.bind(this),this.handleRightScrollClick=this.handleRightScrollClick.bind(this),this.renderTab=this.renderTab.bind(this)}connectedCallback(){this.setup()}componentDidLoad(){this.setup()}componentDidUpdate(){this.setupMdc&&(this.setup(),this.setupMdc=!1)}disconnectedCallback(){this.tearDown()}render(){return r("div",{class:"mdc-tab-bar",role:"tablist"},r("div",{class:{"mdc-tab-scroller":!0,"can-scroll-left":this.canScrollLeft,"can-scroll-right":this.canScrollRight}},r("div",{class:"mdc-tab-scroller__scroll-area lime-hide-scrollbars"},r("div",{class:"mdc-tab-scroller__scroll-content"},this.tabs.map(this.renderTab))),r("div",{class:"scroll-fade left"}),r("div",{class:"scroll-button left"},r("limel-icon-button",{icon:"angle_left",elevated:!0,tabindex:"-1","aria-hidden":"true",disabled:!this.canScrollLeft,onClick:this.handleLeftScrollClick})),r("div",{class:"scroll-fade right"}),r("div",{class:"scroll-button right"},r("limel-icon-button",{icon:"angle_right",elevated:!0,tabindex:"-1","aria-hidden":"true",disabled:!this.canScrollRight,onClick:this.handleRightScrollClick}))))}tabsChanged(t=[],n=[]){const r=t.map((t=>t.id)),i=n.map((t=>t.id));a(r,i)||(this.setupMdc=!0,this.tearDown())}handleWindowResize(){this.handleScroll()}setup(){const t=this.host.shadowRoot.querySelector(".mdc-tab-bar");t&&(this.mdcTabBar=new ct(t),this.mdcTabBar.focusOnActivate=!0,this.mdcTabBar.useAutomaticActivation=!0,this.scrollArea=t.querySelector(".mdc-tab-scroller__scroll-area"),this.scrollContent=t.querySelector(".mdc-tab-scroller__scroll-content"),this.setupListeners(),setTimeout(this.handleScroll,0))}tearDown(){this.scrollArea&&this.scrollArea.removeEventListener("scroll",this.handleScroll),this.mdcTabBar&&(this.mdcTabBar.unlisten(at,this.handleTabActivated),this.mdcTabBar.destroy())}setupListeners(){this.mdcTabBar.listen(at,this.handleTabActivated),this.scrollArea.addEventListener("scroll",this.handleScroll,{passive:!0})}handleTabActivated(t){const n=function(t,n){const r=t.findIndex((t=>!0===t.active)),i=[...t];return-1!==r&&(i[r]=Object.assign(Object.assign({},t[r]),{active:!1})),i[n]=Object.assign(Object.assign({},t[n]),{active:!0}),i}(this.tabs,t.detail.index);y(n,this.tabs).sort(this.sortByInactive).forEach((t=>{this.changeTab.emit(t)})),this.tabs=n}sortByInactive(t,n){return Number(t.active)-Number(n.active)}handleScroll(){const t=this.scrollArea.scrollLeft,n=Math.floor(this.scrollContent.getBoundingClientRect().width-this.scrollArea.getBoundingClientRect().width-t);this.canScrollLeft=t>40,this.canScrollRight=n>40}handleLeftScrollClick(){this.scrollArea.scroll({left:this.scrollArea.scrollLeft-150,behavior:"smooth"})}handleRightScrollClick(){this.scrollArea.scroll({left:this.scrollArea.scrollLeft+150,behavior:"smooth"})}renderIcon(t){if(!t.icon)return;const n={color:""};return t.iconColor&&(n.color=t.iconColor),r("limel-icon",{class:"mdc-tab__icon",name:t.icon,style:n,size:"small","aria-hidden":"true"})}renderTab(t){return r("button",{class:{"mdc-tab":!0,"mdc-tab--active":!!t.active},role:"tab","aria-selected":t.active?"true":"false",tabindex:t.active?0:-1},r("span",{class:"mdc-tab__content"},this.renderIcon(t),r("span",{class:"mdc-tab__text-label"},t.text),t.badge?r("limel-badge",{label:t.badge}):""),r("span",{class:{"mdc-tab-indicator":!0,"mdc-tab-indicator--active":!!t.active}},r("span",{class:"mdc-tab-indicator__content mdc-tab-indicator__content--underline"})),r("span",{class:"mdc-tab__ripple"}))}get host(){return i(this)}static get watchers(){return{tabs:["tabsChanged"]}}};st.style=":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}.mdc-tab-scroller{overflow-y:hidden}.mdc-tab-scroller.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-scroller__test{position:absolute;top:-9999px;width:100px;height:100px;overflow-x:scroll}.mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:touch;display:flex;overflow-x:hidden}.mdc-tab-scroller__scroll-area::-webkit-scrollbar,.mdc-tab-scroller__test::-webkit-scrollbar{display:none}.mdc-tab-scroller__scroll-area--scroll{overflow-x:scroll}.mdc-tab-scroller__scroll-content{position:relative;display:flex;flex:1 0 auto;transform:none;will-change:transform}.mdc-tab-scroller--align-start .mdc-tab-scroller__scroll-content{justify-content:flex-start}.mdc-tab-scroller--align-end .mdc-tab-scroller__scroll-content{justify-content:flex-end}.mdc-tab-scroller--align-center .mdc-tab-scroller__scroll-content{justify-content:center}.mdc-tab-scroller--animating .mdc-tab-scroller__scroll-area{-webkit-overflow-scrolling:auto}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#26a69a;border-color:var(--mdc-theme-primary, #26a69a)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#575756;color:var(--mdc-theme-secondary, #575756)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mdc-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:none;text-transform:var(--mdc-typography-button-text-transform, none);position:relative}.mdc-tab .mdc-tab__text-label{color:rgba(0, 0, 0, 0.6)}.mdc-tab .mdc-tab__icon{color:rgba(0, 0, 0, 0.54);fill:currentColor}.mdc-tab__content{position:relative}.mdc-tab__icon{width:24px;height:24px;font-size:24px}.mdc-tab--active .mdc-tab__text-label{color:#26a69a;color:var(--mdc-theme-primary, #26a69a)}.mdc-tab--active .mdc-tab__icon{color:#26a69a;color:var(--mdc-theme-primary, #26a69a);fill:currentColor}.mdc-tab{background:none}.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px;}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-tab{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:\"\"}.mdc-tab .mdc-tab__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-tab .mdc-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-tab.mdc-ripple-upgraded--unbounded .mdc-tab__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-tab.mdc-ripple-upgraded--foreground-activation .mdc-tab__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-tab.mdc-ripple-upgraded--foreground-deactivation .mdc-tab__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-tab.mdc-ripple-upgraded .mdc-tab__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-tab .mdc-tab__ripple::before,.mdc-tab .mdc-tab__ripple::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}.mdc-tab:hover .mdc-tab__ripple::before,.mdc-tab.mdc-ripple-surface--hover .mdc-tab__ripple::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-tab.mdc-ripple-upgraded--background-focused .mdc-tab__ripple::before,.mdc-tab:not(.mdc-ripple-upgraded):focus .mdc-tab__ripple::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-tab:not(.mdc-ripple-upgraded) .mdc-tab__ripple::after{transition:opacity 150ms linear}.mdc-tab:not(.mdc-ripple-upgraded):active .mdc-tab__ripple::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-tab.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-tab__ripple{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:transform, opacity}.scroll-fade,.scroll-button{position:absolute;transition-property:transform;transition-duration:0.3s;transition-timing-function:ease-out}.scroll-fade{top:0;height:100%;width:4.0625rem;pointer-events:none}.scroll-fade.left{transform:translate3d(-4.0625rem, 0, 0);left:0;background:linear-gradient(270deg, rgba(var(--contrast-300), 0) 0%, rgba(var(--contrast-300), 0.8) 40%, rgba(var(--contrast-300), 0.8) 100%)}.scroll-fade.right{transform:translate3d(4.0625rem, 0, 0);right:0;background:linear-gradient(90deg, rgba(var(--contrast-300), 0) 0%, rgba(var(--contrast-300), 0.8) 40%, rgba(var(--contrast-300), 0.8) 100%)}.scroll-button{--icon-background-color:rgb(var(--contrast-100));top:0.25rem}.scroll-button.left{transform:translate3d(-4.0625rem, 0, 0);left:0.25rem}.scroll-button.right{transform:translate3d(4.0625rem, 0, 0);right:0.25rem}.scroll-button:hover{transform:translate3d(0, 0, 0)}.mdc-tab-scroller{position:relative;overflow:hidden}.mdc-tab-scroller.can-scroll-left .scroll-fade.left,.mdc-tab-scroller.can-scroll-left .scroll-button.left,.mdc-tab-scroller.can-scroll-right .scroll-fade.right,.mdc-tab-scroller.can-scroll-right .scroll-button.right{transform:translate3d(0, 0, 0)}.mdc-tab-scroller.can-scroll-left:not(.can-scroll-right) .scroll-button.right,.mdc-tab-scroller.can-scroll-right:not(.can-scroll-left) .scroll-button.left{opacity:0.5;transition-delay:0.5s}.lime-hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.mdc-tab-scroller__scroll-content{padding:0.5rem 0.75rem 0 0.75rem;background-color:rgb(var(--contrast-300))}:host{display:block;position:relative}:host(.has-tabs-with-equal-width) .mdc-tab{flex:1 0 auto}.mdc-tab-indicator .mdc-tab-indicator__content{border:none}.mdc-tab__ripple{box-sizing:border-box;border-radius:0.625rem;border-style:solid;border-color:transparent;border-width:0.25rem;opacity:0.7}.mdc-tab__ripple:before,.mdc-tab__ripple:after{transition:background-color 0.5s ease}.mdc-tab{border-radius:0;letter-spacing:normal;padding-right:1.25rem;padding-left:1.25rem;min-width:2.5rem;background-color:transparent;flex:0 0 auto}.mdc-tab:not(.mdc-tab--active){--badge-background-color:rgb(var(--contrast-600))}.mdc-tab:not(.mdc-tab--active):after{content:\"\";display:block;background-color:rgb(var(--contrast-600));width:0.125rem;height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:-0.125rem}.mdc-tab:not(.mdc-tab--active):last-of-type:after{display:none}.mdc-tab--active{border-radius:0.625rem 0.625rem 0 0;background-color:rgb(var(--contrast-100));z-index:2}.mdc-tab--active:before,.mdc-tab--active:after{content:\"\";display:block;width:0.75rem;height:0.75rem;position:absolute;bottom:0;background-color:rgb(var(--contrast-100));-webkit-mask-image:url(\"data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' clip-rule='evenodd' viewBox='0 0 50 50'><defs/><path d='M0 0c0 27.594 22.406 50 50 50H0V0z'/></svg>\");mask-image:url(\"data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' clip-rule='evenodd' viewBox='0 0 50 50'><defs/><path d='M0 0c0 27.594 22.406 50 50 50H0V0z'/></svg>\")}.mdc-tab--active:before{left:-0.75rem;transform:rotateY(180deg)}.mdc-tab--active:after{right:-0.75rem}.mdc-tab--active .mdc-ripple-upgraded--background-focused:before{background-color:transparent;transition:background-color 1s ease}.mdc-tab__content{gap:0.375rem}.mdc-tab__text-label{padding-left:0 !important}";export{st as limel_tab_bar}
@@ -1 +1 @@
1
- import{i as n}from"./p-eda23c05.js";var r=/^(?:0|[1-9]\d*)$/;function t(n,t){var u=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==u||"symbol"!=u&&r.test(n))&&n>-1&&n%1==0&&n<t}function u(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}function e(r){return null!=r&&u(r.length)&&!n(r)}export{u as a,t as b,e as i}
1
+ import{i as n}from"./p-eda23c05.js";var r=/^(?:0|[1-9]\d*)$/;function t(n,t){var u=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==u||"symbol"!=u&&r.test(n))&&n>-1&&n%1==0&&n<t}function u(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}function e(r){return null!=r&&u(r.length)&&!n(r)}export{t as a,e as b,u as i}
@@ -0,0 +1 @@
1
+ import{a as r,i as n}from"./p-669626e5.js";import{d as t,j as u,M as o,o as i,l as e,n as f,p as a,q as c,r as s,t as v,k as l,c as p}from"./p-ade76f1d.js";import{S as d,i as b}from"./p-c93050d6.js";import{i as j}from"./p-0b1af919.js";import{i as m}from"./p-d529bb7d.js";import{b as y,i as h,a as O}from"./p-9acf7b5d.js";import{a as w}from"./p-b28128d2.js";var g=d?d.prototype:void 0,E=g?g.toString:void 0;function _(n){if("string"==typeof n)return n;if(j(n))return r(n,_)+"";if(m(n))return E?E.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}var x=Object.prototype.hasOwnProperty;function $(r){return y(r)?u(r,!0):function(r){if(!b(r))return function(r){var n=[];if(null!=r)for(var t in Object(r))n.push(t);return n}(r);var n=t(r),u=[];for(var o in r)("constructor"!=o||!n&&x.call(r,o))&&u.push(o);return u}(r)}var k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/;function q(r,n){if(j(r))return!1;var t=typeof r;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=r&&!m(r))||T.test(r)||!k.test(r)||null!=n&&r in Object(n)}function M(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var t=function(){var u=arguments,o=n?n.apply(this,u):u[0],i=t.cache;if(i.has(o))return i.get(o);var e=r.apply(this,u);return t.cache=i.set(o,e)||i,e};return t.cache=new(M.Cache||o),t}M.Cache=o;var S,z,A,B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,D=(S=function(r){var n=[];return 46===r.charCodeAt(0)&&n.push(""),r.replace(B,(function(r,t,u,o){n.push(u?o.replace(C,"$1"):t||r)})),n},z=M(S,(function(r){return 500===A.size&&A.clear(),r})),A=z.cache,z);function F(r){return null==r?"":_(r)}function G(r,n){return j(r)?r:q(r,n)?[r]:D(F(r))}function H(r){if("string"==typeof r||m(r))return r;var n=r+"";return"0"==n&&1/r==-1/0?"-0":n}function I(r,n){for(var t=0,u=(n=G(n,r)).length;null!=r&&t<u;)r=r[H(n[t++])];return t&&t==u?r:void 0}function J(r,n,t){var u=null==r?void 0:I(r,n);return void 0===u?t:u}var K=i(Object.getPrototypeOf,Object),L=Object.getOwnPropertySymbols?function(r){for(var n=[];r;)f(n,a(r)),r=K(r);return n}:e;function N(r){return r==r&&!b(r)}function P(r,n){return function(t){return null!=t&&t[r]===n&&(void 0!==n||r in Object(t))}}function Q(r,n){return null!=r&&n in Object(r)}function R(r,n,t){for(var u=-1,o=(n=G(n,r)).length,i=!1;++u<o;){var e=H(n[u]);if(!(i=null!=r&&t(r,e)))break;r=r[e]}return i||++u!=o?i:!!(o=null==r?0:r.length)&&h(o)&&O(e,o)&&(j(r)||p(r))}function U(r){return"function"==typeof r?r:null==r?n:"object"==typeof r?j(r)?(i=r[1],q(o=r[0])&&N(i)?P(H(o),i):function(r){var n=J(r,o);return void 0===n&&n===i?function(r,n){return null!=r&&R(r,n,Q)}(r,o):v(i,n,3)}):1==(u=function(r){for(var n=l(r),t=n.length;t--;){var u=n[t],o=r[u];n[t]=[u,o,N(o)]}return n}(t=r)).length&&u[0][2]?P(u[0][0],u[0][1]):function(r){return r===t||function(r,n,t,u){var o=t.length,i=o;if(null==r)return!i;for(r=Object(r);o--;){var e=t[o];if(e[2]?e[1]!==r[e[0]]:!(e[0]in r))return!1}for(;++o<i;){var f=(e=t[o])[0],a=r[f],c=e[1];if(e[2]){if(void 0===a&&!(f in r))return!1}else{var l,p=new s;if(!(void 0===l?v(c,a,3,u,p):l))return!1}}return!0}(r,0,u)}:function(r){return q(r)?(n=H(r),function(r){return null==r?void 0:r[n]}):function(r){return function(n){return I(n,r)}}(r);var n}(r);var t,u,o,i}var V=Object.prototype.hasOwnProperty;function W(r,n){return null!=r&&V.call(r,n)}function X(r,n){return null!=r&&R(r,n,W)}function Y(r){if("function"!=typeof r)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!r.call(this);case 1:return!r.call(this,n[0]);case 2:return!r.call(this,n[0],n[1]);case 3:return!r.call(this,n[0],n[1],n[2])}return!r.apply(this,n)}}function Z(r,n,t,u){if(!b(r))return r;for(var o=-1,i=(n=G(n,r)).length,e=i-1,f=r;null!=f&&++o<i;){var a=H(n[o]),c=t;if("__proto__"===a||"constructor"===a||"prototype"===a)return r;if(o!=e){var s=f[a];void 0===(c=u?u(s,a,f):void 0)&&(c=b(s)?s:O(n[o+1])?[]:{})}w(f,a,c),f=f[a]}return r}function rr(n,t){if(null==n)return{};var u=r(function(r){return c(r,$,L)}(n),(function(r){return[r]}));return t=U(t),function(r,n,t){for(var u=-1,o=n.length,i={};++u<o;){var e=n[u],f=I(r,e);t(f,e)&&Z(i,G(e,r),f)}return i}(n,u,(function(r,n){return t(r,n[0])}))}export{J as a,U as b,K as g,X as h,Y as n,rr as p,F as t}
@@ -0,0 +1 @@
1
+ import{e as t}from"./p-eda23c05.js";import{g as r,t as n}from"./p-4c3358cb.js";import{r as e,b as i,f as o,S as u}from"./p-c93050d6.js";import{i as a}from"./p-0b1af919.js";import{i as c}from"./p-858c6b82.js";import{i as s,a as f,b as v}from"./p-9acf7b5d.js";var h=r(e,"WeakMap"),b=Object.prototype;function j(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||b)}function l(t){return c(t)&&"[object Arguments]"==i(t)}var p=Object.prototype,d=p.hasOwnProperty,m=p.propertyIsEnumerable,_=l(function(){return arguments}())?l:function(t){return c(t)&&d.call(t,"callee")&&!m.call(t,"callee")},w="object"==typeof exports&&exports&&!exports.nodeType&&exports,y=w&&"object"==typeof module&&module&&!module.nodeType&&module,O=y&&y.exports===w?e.Buffer:void 0,g=(O?O.isBuffer:void 0)||function(){return!1},A={};function x(t){return function(r){return t(r)}}A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Arguments]"]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object Boolean]"]=A["[object DataView]"]=A["[object Date]"]=A["[object Error]"]=A["[object Function]"]=A["[object Map]"]=A["[object Number]"]=A["[object Object]"]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object WeakMap]"]=!1;var S="object"==typeof exports&&exports&&!exports.nodeType&&exports,k=S&&"object"==typeof module&&module&&!module.nodeType&&module,M=k&&k.exports===S&&o.process,D=function(){try{return k&&k.require&&k.require("util").types||M&&M.binding&&M.binding("util")}catch(t){}}(),V=D&&D.isTypedArray,B=V?x(V):function(t){return c(t)&&s(t.length)&&!!A[i(t)]},P=Object.prototype.hasOwnProperty;function W(t,r){var n=a(t),e=!n&&_(t),i=!n&&!e&&g(t),o=!n&&!e&&!i&&B(t),u=n||e||i||o,c=u?function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}(t.length,String):[],s=c.length;for(var v in t)!r&&!P.call(t,v)||u&&("length"==v||i&&("offset"==v||"parent"==v)||o&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||f(v,s))||c.push(v);return c}function E(t,r){return function(n){return t(r(n))}}var q=E(Object.keys,Object),L=Object.prototype.hasOwnProperty;function N(t){if(!j(t))return q(t);var r=[];for(var n in Object(t))L.call(t,n)&&"constructor"!=n&&r.push(n);return r}function R(t){return v(t)?W(t):N(t)}var z=r(Object,"create"),C=Object.prototype.hasOwnProperty,F=Object.prototype.hasOwnProperty;function G(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function H(r,n){for(var e=r.length;e--;)if(t(r[e][0],n))return e;return-1}G.prototype.clear=function(){this.__data__=z?z(null):{},this.size=0},G.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},G.prototype.get=function(t){var r=this.__data__;if(z){var n=r[t];return"__lodash_hash_undefined__"===n?void 0:n}return C.call(r,t)?r[t]:void 0},G.prototype.has=function(t){var r=this.__data__;return z?void 0!==r[t]:F.call(r,t)},G.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=z&&void 0===r?"__lodash_hash_undefined__":r,this};var I=Array.prototype.splice;function J(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}J.prototype.clear=function(){this.__data__=[],this.size=0},J.prototype.delete=function(t){var r=this.__data__,n=H(r,t);return!(n<0||(n==r.length-1?r.pop():I.call(r,n,1),--this.size,0))},J.prototype.get=function(t){var r=this.__data__,n=H(r,t);return n<0?void 0:r[n][1]},J.prototype.has=function(t){return H(this.__data__,t)>-1},J.prototype.set=function(t,r){var n=this.__data__,e=H(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this};var K=r(e,"Map");function Q(t,r){var n,e,i=t.__data__;return("string"==(e=typeof(n=r))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?i["string"==typeof r?"string":"hash"]:i.map}function T(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function U(t,r){for(var n=-1,e=r.length,i=t.length;++n<e;)t[i+n]=r[n];return t}function X(t){var r=this.__data__=new J(t);this.size=r.size}function Y(){return[]}T.prototype.clear=function(){this.size=0,this.__data__={hash:new G,map:new(K||J),string:new G}},T.prototype.delete=function(t){var r=Q(this,t).delete(t);return this.size-=r?1:0,r},T.prototype.get=function(t){return Q(this,t).get(t)},T.prototype.has=function(t){return Q(this,t).has(t)},T.prototype.set=function(t,r){var n=Q(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this},X.prototype.clear=function(){this.__data__=new J,this.size=0},X.prototype.delete=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n},X.prototype.get=function(t){return this.__data__.get(t)},X.prototype.has=function(t){return this.__data__.has(t)},X.prototype.set=function(t,r){var n=this.__data__;if(n instanceof J){var e=n.__data__;if(!K||e.length<199)return e.push([t,r]),this.size=++n.size,this;n=this.__data__=new T(e)}return n.set(t,r),this.size=n.size,this};var Z=Object.prototype.propertyIsEnumerable,$=Object.getOwnPropertySymbols,tt=$?function(t){return null==t?[]:(t=Object(t),function(r){for(var n=-1,e=null==r?0:r.length,i=0,o=[];++n<e;){var u=r[n];Z.call(t,u)&&(o[i++]=u)}return o}($(t)))}:Y;function rt(t,r,n){var e=r(t);return a(t)?e:U(e,n(t))}function nt(t){return rt(t,R,tt)}var et=r(e,"DataView"),it=r(e,"Promise"),ot=r(e,"Set"),ut=n(et),at=n(K),ct=n(it),st=n(ot),ft=n(h),vt=i;(et&&"[object DataView]"!=vt(new et(new ArrayBuffer(1)))||K&&"[object Map]"!=vt(new K)||it&&"[object Promise]"!=vt(it.resolve())||ot&&"[object Set]"!=vt(new ot)||h&&"[object WeakMap]"!=vt(new h))&&(vt=function(t){var r=i(t),e="[object Object]"==r?t.constructor:void 0,o=e?n(e):"";if(o)switch(o){case ut:return"[object DataView]";case at:return"[object Map]";case ct:return"[object Promise]";case st:return"[object Set]";case ft:return"[object WeakMap]"}return r});const ht=vt;var bt=e.Uint8Array;function jt(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new T;++r<n;)this.add(t[r])}function lt(t,r){for(var n=-1,e=null==t?0:t.length;++n<e;)if(r(t[n],n,t))return!0;return!1}function pt(t,r){return t.has(r)}function dt(t,r,n,e,i,o){var u=1&n,a=t.length,c=r.length;if(a!=c&&!(u&&c>a))return!1;var s=o.get(t),f=o.get(r);if(s&&f)return s==r&&f==t;var v=-1,h=!0,b=2&n?new jt:void 0;for(o.set(t,r),o.set(r,t);++v<a;){var j=t[v],l=r[v];if(e)var p=u?e(l,j,v,r,t,o):e(j,l,v,t,r,o);if(void 0!==p){if(p)continue;h=!1;break}if(b){if(!lt(r,(function(t,r){if(!pt(b,r)&&(j===t||i(j,t,n,e,o)))return b.push(r)}))){h=!1;break}}else if(j!==l&&!i(j,l,n,e,o)){h=!1;break}}return o.delete(t),o.delete(r),h}function mt(t){var r=-1,n=Array(t.size);return t.forEach((function(t,e){n[++r]=[e,t]})),n}function _t(t){var r=-1,n=Array(t.size);return t.forEach((function(t){n[++r]=t})),n}jt.prototype.add=jt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},jt.prototype.has=function(t){return this.__data__.has(t)};var wt=u?u.prototype:void 0,yt=wt?wt.valueOf:void 0,Ot=Object.prototype.hasOwnProperty,gt="[object Object]",At=Object.prototype.hasOwnProperty;function xt(r,n,e,i,o){return r===n||(null==r||null==n||!c(r)&&!c(n)?r!=r&&n!=n:function(r,n,e,i,o,u){var c=a(r),s=a(n),f=c?"[object Array]":ht(r),v=s?"[object Array]":ht(n),h=(f="[object Arguments]"==f?gt:f)==gt,b=(v="[object Arguments]"==v?gt:v)==gt,j=f==v;if(j&&g(r)){if(!g(n))return!1;c=!0,h=!1}if(j&&!h)return u||(u=new X),c||B(r)?dt(r,n,e,i,o,u):function(r,n,e,i,o,u,a){switch(e){case"[object DataView]":if(r.byteLength!=n.byteLength||r.byteOffset!=n.byteOffset)return!1;r=r.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(r.byteLength!=n.byteLength||!u(new bt(r),new bt(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return t(+r,+n);case"[object Error]":return r.name==n.name&&r.message==n.message;case"[object RegExp]":case"[object String]":return r==n+"";case"[object Map]":var c=mt;case"[object Set]":if(c||(c=_t),r.size!=n.size&&!(1&i))return!1;var s=a.get(r);if(s)return s==n;i|=2,a.set(r,n);var f=dt(c(r),c(n),i,o,u,a);return a.delete(r),f;case"[object Symbol]":if(yt)return yt.call(r)==yt.call(n)}return!1}(r,n,f,e,i,o,u);if(!(1&e)){var l=h&&At.call(r,"__wrapped__"),p=b&&At.call(n,"__wrapped__");if(l||p){var d=l?r.value():r,m=p?n.value():n;return u||(u=new X),o(d,m,e,i,u)}}return!!j&&(u||(u=new X),function(t,r,n,e,i,o){var u=1&n,a=nt(t),c=a.length;if(c!=nt(r).length&&!u)return!1;for(var s=c;s--;){var f=a[s];if(!(u?f in r:Ot.call(r,f)))return!1}var v=o.get(t),h=o.get(r);if(v&&h)return v==r&&h==t;var b=!0;o.set(t,r),o.set(r,t);for(var j=u;++s<c;){var l=t[f=a[s]],p=r[f];if(e)var d=u?e(p,l,f,r,t,o):e(l,p,f,t,r,o);if(!(void 0===d?l===p||i(l,p,n,e,o):d)){b=!1;break}j||(j="constructor"==f)}if(b&&!j){var m=t.constructor,_=r.constructor;m==_||!("constructor"in t)||!("constructor"in r)||"function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _||(b=!1)}return o.delete(t),o.delete(r),b}(r,n,e,i,o,u))}(r,n,e,i,xt,o))}function St(t,r){return xt(t,r)}export{T as M,ot as S,g as a,B as b,_ as c,j as d,N as e,jt as f,ht as g,pt as h,St as i,W as j,R as k,Y as l,mt as m,U as n,E as o,tt as p,rt as q,X as r,_t as s,xt as t,x as u}