@limetech/lime-elements 35.0.0-next.12 → 35.0.0-next.16

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 (143) hide show
  1. package/dist/cjs/{component-f7ef9087.js → component-66df95e7.js} +190 -132
  2. package/dist/cjs/{component-f532119f.js → component-67144c1c.js} +47 -3
  3. package/dist/cjs/{component-ed21410d.js → component-ae3bfacf.js} +367 -235
  4. package/dist/cjs/{component-2faaa141.js → component-cf490570.js} +213 -143
  5. package/dist/cjs/{component-10dbdd60.js → component-dd795ff0.js} +7 -5
  6. package/dist/cjs/limel-badge.cjs.entry.js +2 -2
  7. package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
  8. package/dist/cjs/limel-button.cjs.entry.js +1 -1
  9. package/dist/cjs/limel-checkbox.cjs.entry.js +129 -84
  10. package/dist/cjs/limel-chip-set.cjs.entry.js +233 -189
  11. package/dist/cjs/limel-circular-progress.cjs.entry.js +1 -1
  12. package/dist/cjs/limel-code-editor.cjs.entry.js +48 -21
  13. package/dist/cjs/limel-date-picker.cjs.entry.js +4 -4
  14. package/dist/cjs/limel-dialog.cjs.entry.js +7 -8
  15. package/dist/cjs/limel-file.cjs.entry.js +4 -4
  16. package/dist/cjs/limel-flex-container.cjs.entry.js +4 -0
  17. package/dist/cjs/limel-form.cjs.entry.js +7298 -8723
  18. package/dist/cjs/limel-icon-button.cjs.entry.js +4 -4
  19. package/dist/cjs/limel-input-field.cjs.entry.js +5 -5
  20. package/dist/cjs/limel-linear-progress.cjs.entry.js +2 -2
  21. package/dist/cjs/limel-list_3.cjs.entry.js +5 -5
  22. package/dist/cjs/limel-menu-list.cjs.entry.js +84 -68
  23. package/dist/cjs/limel-popover-surface.cjs.entry.js +1 -1
  24. package/dist/cjs/limel-select.cjs.entry.js +4 -4
  25. package/dist/cjs/limel-slider.cjs.entry.js +32 -5
  26. package/dist/cjs/limel-snackbar.cjs.entry.js +77 -71
  27. package/dist/cjs/limel-switch.cjs.entry.js +496 -200
  28. package/dist/cjs/limel-tab-bar.cjs.entry.js +261 -184
  29. package/dist/cjs/limel-table.cjs.entry.js +1 -1
  30. package/dist/collection/components/badge/badge.css +9 -15
  31. package/dist/collection/components/badge/badge.js +2 -2
  32. package/dist/collection/components/button/button.css +333 -145
  33. package/dist/collection/components/button-group/button-group.css +30 -5
  34. package/dist/collection/components/checkbox/checkbox.css +45 -13
  35. package/dist/collection/components/chip-set/chip-set.css +367 -34
  36. package/dist/collection/components/circular-progress/circular-progress.css +2 -2
  37. package/dist/collection/components/code-editor/code-editor.css +8 -13
  38. package/dist/collection/components/dialog/dialog.css +153 -109
  39. package/dist/collection/components/flex-container/flex-container.js +10 -0
  40. package/dist/collection/components/form/form.css +3 -1
  41. package/dist/collection/components/icon-button/icon-button.css +116 -59
  42. package/dist/collection/components/icon-button/icon-button.js +1 -0
  43. package/dist/collection/components/input-field/input-field.css +337 -29
  44. package/dist/collection/components/linear-progress/linear-progress.css +14 -2
  45. package/dist/collection/components/list/list.css +902 -86
  46. package/dist/collection/components/menu-list/menu-list.css +902 -86
  47. package/dist/collection/components/menu-surface/menu-surface.css +32 -7
  48. package/dist/collection/components/popover-surface/popover-surface.css +1 -0
  49. package/dist/collection/components/select/select.css +424 -17
  50. package/dist/collection/components/select/select.template.js +1 -1
  51. package/dist/collection/components/slider/slider.css +49 -2
  52. package/dist/collection/components/snackbar/snackbar.css +588 -301
  53. package/dist/collection/components/switch/switch.css +592 -222
  54. package/dist/collection/components/switch/switch.js +18 -12
  55. package/dist/collection/components/tab-bar/tab-bar.css +77 -49
  56. package/dist/collection/components/table/table.css +10 -4
  57. package/dist/collection/style/functions.scss +3 -1
  58. package/dist/esm/{component-89e0ce26.js → component-19eb6e2b.js} +7 -5
  59. package/dist/esm/{component-2630c3d7.js → component-288691f3.js} +367 -235
  60. package/dist/esm/{component-d682c974.js → component-410aad5a.js} +44 -4
  61. package/dist/esm/{component-429e92ee.js → component-5b4ac85a.js} +213 -143
  62. package/dist/esm/{component-834d85a1.js → component-fffa3419.js} +190 -132
  63. package/dist/esm/limel-badge.entry.js +3 -3
  64. package/dist/esm/limel-button-group.entry.js +1 -1
  65. package/dist/esm/limel-button.entry.js +1 -1
  66. package/dist/esm/limel-checkbox.entry.js +129 -84
  67. package/dist/esm/limel-chip-set.entry.js +233 -189
  68. package/dist/esm/limel-circular-progress.entry.js +1 -1
  69. package/dist/esm/limel-code-editor.entry.js +48 -21
  70. package/dist/esm/limel-date-picker.entry.js +4 -4
  71. package/dist/esm/limel-dialog.entry.js +7 -8
  72. package/dist/esm/limel-file.entry.js +4 -4
  73. package/dist/esm/limel-flex-container.entry.js +4 -0
  74. package/dist/esm/limel-form.entry.js +7301 -8726
  75. package/dist/esm/limel-icon-button.entry.js +4 -4
  76. package/dist/esm/limel-input-field.entry.js +5 -5
  77. package/dist/esm/limel-linear-progress.entry.js +2 -2
  78. package/dist/esm/limel-list_3.entry.js +5 -5
  79. package/dist/esm/limel-menu-list.entry.js +84 -68
  80. package/dist/esm/limel-popover-surface.entry.js +1 -1
  81. package/dist/esm/limel-select.entry.js +4 -4
  82. package/dist/esm/limel-slider.entry.js +32 -5
  83. package/dist/esm/limel-snackbar.entry.js +77 -71
  84. package/dist/esm/limel-switch.entry.js +496 -200
  85. package/dist/esm/limel-tab-bar.entry.js +261 -184
  86. package/dist/esm/limel-table.entry.js +1 -1
  87. package/dist/lime-elements/lime-elements.esm.js +1 -1
  88. package/dist/lime-elements/p-09593e7a.entry.js +1 -0
  89. package/dist/lime-elements/p-0b43d0dd.entry.js +1 -0
  90. package/dist/lime-elements/p-0f5cbdea.entry.js +1 -0
  91. package/dist/lime-elements/p-1c284626.js +73 -0
  92. package/dist/lime-elements/{p-8ad5e143.entry.js → p-22f5ab58.entry.js} +1 -1
  93. package/dist/lime-elements/p-3084b02c.entry.js +73 -0
  94. package/dist/lime-elements/p-3e87bb28.entry.js +82 -0
  95. package/dist/lime-elements/p-433f8f64.entry.js +82 -0
  96. package/dist/lime-elements/{p-076bd4dc.js → p-48d4ef20.js} +3 -3
  97. package/dist/lime-elements/p-4e486308.entry.js +82 -0
  98. package/dist/lime-elements/p-4f1528ab.entry.js +59 -0
  99. package/dist/lime-elements/p-552a5f2c.entry.js +1 -0
  100. package/dist/lime-elements/{p-e275f502.entry.js → p-57892079.entry.js} +3 -3
  101. package/dist/lime-elements/{p-041ae00c.entry.js → p-783e6e99.entry.js} +1 -1
  102. package/dist/lime-elements/p-7c89ad03.entry.js +1 -0
  103. package/dist/lime-elements/p-96697356.entry.js +126 -0
  104. package/dist/lime-elements/p-b4a7d61f.entry.js +16 -0
  105. package/dist/lime-elements/{p-268cf1fa.entry.js → p-bf4ee462.entry.js} +1 -1
  106. package/dist/lime-elements/p-c15adec9.entry.js +37 -0
  107. package/dist/lime-elements/p-cbc43682.js +81 -0
  108. package/dist/lime-elements/{p-ace9affc.js → p-d0a7de87.js} +2 -2
  109. package/dist/lime-elements/p-dfba92de.js +126 -0
  110. package/dist/lime-elements/p-e587e8f6.entry.js +1 -0
  111. package/dist/lime-elements/p-e632aab7.entry.js +1 -0
  112. package/dist/lime-elements/p-e6e76954.entry.js +1 -0
  113. package/dist/lime-elements/p-ec5e5f63.entry.js +131 -0
  114. package/dist/lime-elements/{p-34c7872e.entry.js → p-f15ab9f4.entry.js} +1 -1
  115. package/dist/lime-elements/p-f34dd45d.entry.js +1 -0
  116. package/dist/lime-elements/p-ff5b1f0f.entry.js +59 -0
  117. package/dist/lime-elements/style/functions.scss +3 -1
  118. package/dist/types/components/badge/badge.d.ts +1 -1
  119. package/dist/types/components/flex-container/flex-container.d.ts +7 -0
  120. package/dist/types/components/switch/switch.d.ts +2 -2
  121. package/package.json +8 -8
  122. package/dist/lime-elements/p-0ce9165f.entry.js +0 -1
  123. package/dist/lime-elements/p-0fd208f3.entry.js +0 -82
  124. package/dist/lime-elements/p-143705b1.entry.js +0 -1
  125. package/dist/lime-elements/p-24d97176.entry.js +0 -1
  126. package/dist/lime-elements/p-29f054cc.entry.js +0 -37
  127. package/dist/lime-elements/p-4932c029.entry.js +0 -1
  128. package/dist/lime-elements/p-510bb5a4.entry.js +0 -1
  129. package/dist/lime-elements/p-668795a7.js +0 -73
  130. package/dist/lime-elements/p-7476efe0.entry.js +0 -1
  131. package/dist/lime-elements/p-84689828.entry.js +0 -73
  132. package/dist/lime-elements/p-902347b9.js +0 -81
  133. package/dist/lime-elements/p-90c6fa15.js +0 -126
  134. package/dist/lime-elements/p-90f3e17c.entry.js +0 -37
  135. package/dist/lime-elements/p-ad04a4d4.entry.js +0 -16
  136. package/dist/lime-elements/p-c35874db.entry.js +0 -1
  137. package/dist/lime-elements/p-c8c8a946.entry.js +0 -59
  138. package/dist/lime-elements/p-ca664c9f.entry.js +0 -1
  139. package/dist/lime-elements/p-d2c74396.entry.js +0 -1
  140. package/dist/lime-elements/p-d48ad9f7.entry.js +0 -126
  141. package/dist/lime-elements/p-d8167c28.entry.js +0 -82
  142. package/dist/lime-elements/p-dcc52d92.entry.js +0 -131
  143. package/dist/lime-elements/p-df8faeb4.entry.js +0 -59
@@ -1,131 +0,0 @@
1
- import{r as t,c as n,h as r,g as i}from"./p-92146da6.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-076bd4dc.js";import{a as d,b as f,M as h}from"./p-902347b9.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)):[]})),x=function(t,n){return(x=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
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function w(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}x(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var C=function(){return(C=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)},O=function(t,n){return(O=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)};
16
- /*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation.
18
-
19
- Permission to use, copy, modify, and/or distribute this software for any
20
- purpose with or without fee is hereby granted.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
- PERFORMANCE OF THIS SOFTWARE.
29
- ***************************************************************************** */function T(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}O(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var S,A=function(){return(A=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)},E={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},k={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"},j=function(t){this.adapter=t},R=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return T(n,t),n.prototype.getScrollPositionRTL=function(){var t=this.adapter.getScrollAreaScrollLeft(),n=this.calculateScrollEdges_().right;return Math.round(n-t)},n.prototype.scrollToRTL=function(t){var n=this.calculateScrollEdges_(),r=this.adapter.getScrollAreaScrollLeft(),i=this.clampScrollValue_(n.right-t);return{finalScrollPosition:i,scrollDelta:i-r}},n.prototype.incrementScrollRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue_(n-t);return{finalScrollPosition:r,scrollDelta:r-n}},n.prototype.getAnimatingScrollPosition=function(t){return t},n.prototype.calculateScrollEdges_=function(){return{left:0,right:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth()}},n.prototype.clampScrollValue_=function(t){var n=this.calculateScrollEdges_();return Math.min(Math.max(n.left,t),n.right)},n}(j),I=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return T(n,t),n.prototype.getScrollPositionRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft();return Math.round(t-n)},n.prototype.scrollToRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue_(-t);return{finalScrollPosition:r,scrollDelta:r-n}},n.prototype.incrementScrollRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue_(n-t);return{finalScrollPosition:r,scrollDelta:r-n}},n.prototype.getAnimatingScrollPosition=function(t,n){return t-n},n.prototype.calculateScrollEdges_=function(){var t=this.adapter.getScrollContentOffsetWidth();return{left:this.adapter.getScrollAreaOffsetWidth()-t,right:0}},n.prototype.clampScrollValue_=function(t){var n=this.calculateScrollEdges_();return Math.max(Math.min(n.right,t),n.left)},n}(j),L=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return T(n,t),n.prototype.getScrollPositionRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft();return Math.round(n-t)},n.prototype.scrollToRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue_(t);return{finalScrollPosition:r,scrollDelta:n-r}},n.prototype.incrementScrollRTL=function(t){var n=this.adapter.getScrollAreaScrollLeft(),r=this.clampScrollValue_(n+t);return{finalScrollPosition:r,scrollDelta:n-r}},n.prototype.getAnimatingScrollPosition=function(t,n){return t+n},n.prototype.calculateScrollEdges_=function(){return{left:this.adapter.getScrollContentOffsetWidth()-this.adapter.getScrollAreaOffsetWidth(),right:0}},n.prototype.clampScrollValue_=function(t){var n=this.calculateScrollEdges_();return Math.min(Math.max(n.right,t),n.left)},n}(j),z=function(t){function n(r){var i=t.call(this,A(A({},n.defaultAdapter),r))||this;return i.isAnimating_=!1,i}return T(n,t),Object.defineProperty(n,"cssClasses",{get:function(){return E},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return k},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!1,configurable:!0}),n.prototype.init=function(){var t=this.adapter.computeHorizontalScrollbarHeight();this.adapter.setScrollAreaStyleProperty("margin-bottom",-t+"px"),this.adapter.addScrollAreaClass(n.cssClasses.SCROLL_AREA_SCROLL)},n.prototype.getScrollPosition=function(){if(this.isRTL_())return this.computeCurrentScrollPositionRTL_();var t=this.calculateCurrentTranslateX_();return this.adapter.getScrollAreaScrollLeft()-t},n.prototype.handleInteraction=function(){this.isAnimating_&&this.stopScrollAnimation_()},n.prototype.handleTransitionEnd=function(t){this.isAnimating_&&this.adapter.eventTargetMatchesSelector(t.target,n.strings.CONTENT_SELECTOR)&&(this.isAnimating_=!1,this.adapter.removeClass(n.cssClasses.ANIMATING))},n.prototype.incrementScroll=function(t){0!==t&&this.animate_(this.getIncrementScrollOperation_(t))},n.prototype.incrementScrollImmediate=function(t){if(0!==t){var n=this.getIncrementScrollOperation_(t);0!==n.scrollDelta&&(this.stopScrollAnimation_(),this.adapter.setScrollAreaScrollLeft(n.finalScrollPosition))}},n.prototype.scrollTo=function(t){if(this.isRTL_())return this.scrollToRTL_(t);this.scrollTo_(t)},n.prototype.getRTLScroller=function(){return this.rtlScrollerInstance_||(this.rtlScrollerInstance_=this.rtlScrollerFactory_()),this.rtlScrollerInstance_},n.prototype.calculateCurrentTranslateX_=function(){var t=this.adapter.getScrollContentStyleValue("transform");if("none"===t)return 0;var n=/\((.+?)\)/.exec(t);if(!n)return 0;var r=function(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,e,o=r.call(t),c=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)c.push(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return c}
30
- /**
31
- * @license
32
- * Copyright 2018 Google Inc.
33
- *
34
- * Permission is hereby granted, free of charge, to any person obtaining a copy
35
- * of this software and associated documentation files (the "Software"), to deal
36
- * in the Software without restriction, including without limitation the rights
37
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
38
- * copies of the Software, and to permit persons to whom the Software is
39
- * furnished to do so, subject to the following conditions:
40
- *
41
- * The above copyright notice and this permission notice shall be included in
42
- * all copies or substantial portions of the Software.
43
- *
44
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
46
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
47
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
48
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
49
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
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.scrollTo_=function(t){var n=this.getScrollPosition(),r=this.clampScrollValue_(t);this.animate_({finalScrollPosition:r,scrollDelta:r-n})},n.prototype.scrollToRTL_=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 I(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 L(this.adapter):new R(this.adapter)},n.prototype.isRTL_=function(){return"rtl"===this.adapter.getScrollContentStyleValue("direction")},n}(l),D=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return T(n,t),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(){this.area_=this.root.querySelector(z.strings.AREA_SELECTOR),this.content_=this.root.querySelector(z.strings.CONTENT_SELECTOR)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleInteraction_=function(){return t.foundation.handleInteraction()},this.handleTransitionEnd_=function(n){return 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 z({eventTargetMatchesSelector:function(t,n){return m(t,n)},addClass:function(n){return t.root.classList.add(n)},removeClass:function(n){return t.root.classList.remove(n)},addScrollAreaClass:function(n){return t.area_.classList.add(n)},setScrollAreaStyleProperty:function(n,r){return t.area_.style.setProperty(n,r)},setScrollContentStyleProperty:function(n,r){return 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!==S)return S;var r=t.createElement("div");r.classList.add(E.SCROLL_TEST),t.body.appendChild(r);var i=r.offsetHeight-r.clientHeight;return t.body.removeChild(r),n&&(S=i),i}
52
- /**
53
- * @license
54
- * Copyright 2018 Google Inc.
55
- *
56
- * Permission is hereby granted, free of charge, to any person obtaining a copy
57
- * of this software and associated documentation files (the "Software"), to deal
58
- * in the Software without restriction, including without limitation the rights
59
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
60
- * copies of the Software, and to permit persons to whom the Software is
61
- * furnished to do so, subject to the following conditions:
62
- *
63
- * The above copyright notice and this permission notice shall be included in
64
- * all copies or substantial portions of the Software.
65
- *
66
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
67
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
68
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
69
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
70
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
71
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
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),M=function(t,n){return(M=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 N(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}M(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var P=function(){return(P=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)},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)};
74
- /*! *****************************************************************************
75
- Copyright (c) Microsoft Corporation.
76
-
77
- Permission to use, copy, modify, and/or distribute this software for any
78
- purpose with or without fee is hereby granted.
79
-
80
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
81
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
82
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
83
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
84
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
85
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
86
- PERFORMANCE OF THIS SOFTWARE.
87
- ***************************************************************************** */function Y(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}W(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var B=function(){return(B=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)},K={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},H={CONTENT_SELECTOR:".mdc-tab-indicator__content"},V=function(t){function n(r){return t.call(this,B(B({},n.defaultAdapter),r))||this}return Y(n,t),Object.defineProperty(n,"cssClasses",{get:function(){return K},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return H},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),F=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.prototype.activate=function(){this.adapter.addClass(V.cssClasses.ACTIVE)},n.prototype.deactivate=function(){this.adapter.removeClass(V.cssClasses.ACTIVE)},n}(V),X=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(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(V.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+i+"px) scaleX("+r+")"),this.computeContentClientRect(),this.adapter.removeClass(V.cssClasses.NO_TRANSITION),this.adapter.addClass(V.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(V.cssClasses.ACTIVE)},n.prototype.deactivate=function(){this.adapter.removeClass(V.cssClasses.ACTIVE)},n}(V),G=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Y(n,t),n.attachTo=function(t){return new n(t)},n.prototype.initialize=function(){this.content_=this.root.querySelector(V.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){return t.content_.style.setProperty(n,r)}};return this.root.classList.contains(V.cssClasses.FADE)?new F(n):new X(n)},n.prototype.activate=function(t){this.foundation.activate(t)},n.prototype.deactivate=function(){this.foundation.deactivate()},n}(u),q={ACTIVE:"mdc-tab--active"},U={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"},J=function(t){function n(r){var i=t.call(this,P(P({},n.defaultAdapter),r))||this;return i.focusOnActivate_=!0,i}return N(n,t),Object.defineProperty(n,"cssClasses",{get:function(){return q},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return U},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(q.ACTIVE)},n.prototype.setFocusOnActivate=function(t){this.focusOnActivate_=t},n.prototype.activate=function(t){this.adapter.addClass(q.ACTIVE),this.adapter.setAttr(U.ARIA_SELECTED,"true"),this.adapter.setAttr(U.TABINDEX,"0"),this.adapter.activateIndicator(t),this.focusOnActivate_&&this.adapter.focus()},n.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(q.ACTIVE),this.adapter.setAttr(U.ARIA_SELECTED,"false"),this.adapter.setAttr(U.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),Q=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return N(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 G(t)}),this.id=this.root.id;var r=new f(h.createAdapter(this));this.ripple_=t(this.root,r);var i=this.root.querySelector(J.strings.TAB_INDICATOR_SELECTOR);this.tabIndicator_=n(i),this.content_=this.root.querySelector(J.strings.CONTENT_SELECTOR)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick_=function(){return 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 J({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){return t.tabIndicator_.activate(n)},deactivateIndicator:function(){return t.tabIndicator_.deactivate()},notifyInteracted:function(){return t.emit(J.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),Z={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"},$={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},tt=new Set;
88
- /**
89
- * @license
90
- * Copyright 2018 Google Inc.
91
- *
92
- * Permission is hereby granted, free of charge, to any person obtaining a copy
93
- * of this software and associated documentation files (the "Software"), to deal
94
- * in the Software without restriction, including without limitation the rights
95
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
96
- * copies of the Software, and to permit persons to whom the Software is
97
- * furnished to do so, subject to the following conditions:
98
- *
99
- * The above copyright notice and this permission notice shall be included in
100
- * all copies or substantial portions of the Software.
101
- *
102
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
103
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
104
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
105
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
106
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
107
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
108
- * THE SOFTWARE.
109
- */tt.add(Z.ARROW_LEFT_KEY),tt.add(Z.ARROW_RIGHT_KEY),tt.add(Z.END_KEY),tt.add(Z.HOME_KEY),tt.add(Z.ENTER_KEY),tt.add(Z.SPACE_KEY);var nt=new Map;nt.set($.ARROW_LEFT_KEYCODE,Z.ARROW_LEFT_KEY),nt.set($.ARROW_RIGHT_KEYCODE,Z.ARROW_RIGHT_KEY),nt.set($.END_KEYCODE,Z.END_KEY),nt.set($.HOME_KEYCODE,Z.HOME_KEY),nt.set($.ENTER_KEYCODE,Z.ENTER_KEY),nt.set($.SPACE_KEYCODE,Z.SPACE_KEY);var rt=function(t){function n(r){var i=t.call(this,C(C({},n.defaultAdapter),r))||this;return i.useAutomaticActivation_=!1,i}return w(n,t),Object.defineProperty(n,"strings",{get:function(){return Z},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return $},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){if(this.indexIsInRange_(t))return 0===t?this.adapter.scrollTo(0):t===this.adapter.getTabListLength()-1?this.adapter.scrollTo(this.adapter.getScrollContentWidth()):this.isRTL_()?this.scrollIntoViewRTL_(t):void this.scrollIntoView_(t)},n.prototype.determineTargetFromKey_=function(t,n){var r=this.isRTL_(),i=this.adapter.getTabListLength()-1,e=t;return n===Z.END_KEY?e=i:n===Z.ARROW_LEFT_KEY&&!r||n===Z.ARROW_RIGHT_KEY&&r?e-=1:n===Z.ARROW_RIGHT_KEY&&!r||n===Z.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+$.EXTRA_SCROLL_AMOUNT;return n<t?Math.min(e.contentRight-r-$.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-$.EXTRA_SCROLL_AMOUNT;return n>t?Math.max(e-o.contentRight-r-i+$.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 tt.has(t.key)?t.key:nt.get(t.keyCode)},n.prototype.isActivationKey_=function(t){return t===Z.SPACE_KEY||t===Z.ENTER_KEY},n.prototype.indexIsInRange_=function(t){return t>=0&&t<this.adapter.getTabListLength()},n.prototype.isRTL_=function(){return this.adapter.isRTL()},n.prototype.scrollIntoView_=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.scrollIntoViewRTL_=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),it=rt.strings,et=0,ot=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return w(n,t),n.attachTo=function(t){return new n(t)},Object.defineProperty(n.prototype,"focusOnActivate",{set:function(t){this.tabList_.forEach((function(n){return n.focusOnActivate=t}))},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 Q(t)}),void 0===n&&(n=function(t){return new D(t)}),this.tabList_=this.instantiateTabs_(t),this.tabScroller_=this.instantiateTabScroller_(n)},n.prototype.initialSyncWithDOM=function(){var t=this;this.handleTabInteraction_=function(n){return t.foundation.handleTabInteraction(n)},this.handleKeyDown_=function(n){return t.foundation.handleKeyDown(n)},this.listen(J.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(){t.prototype.destroy.call(this),this.unlisten(J.strings.INTERACTED_EVENT,this.handleTabInteraction_),this.unlisten("keydown",this.handleKeyDown_),this.tabList_.forEach((function(t){return t.destroy()})),this.tabScroller_&&this.tabScroller_.destroy()},n.prototype.getDefaultFoundation=function(){var t=this;return new rt({scrollTo:function(n){return t.tabScroller_.scrollTo(n)},incrementScroll:function(n){return 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){return t.foundation.activateTab(n)},activateTabAtIndex:function(n,r){return t.tabList_[n].activate(r)},deactivateTabAtIndex:function(n){return t.tabList_[n].deactivate()},focusTabAtIndex:function(n){return 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(it.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(it.TAB_SELECTOR))},n.prototype.instantiateTabs_=function(t){return this.getTabElements_().map((function(n){return n.id=n.id||"mdc-tab-"+ ++et,t(n)}))},n.prototype.instantiateTabScroller_=function(t){var n=this.root.querySelector(it.TAB_SCROLLER_SELECTOR);return n?t(n):null},n}(u);
110
- /**
111
- * @license
112
- * Copyright 2018 Google Inc.
113
- *
114
- * Permission is hereby granted, free of charge, to any person obtaining a copy
115
- * of this software and associated documentation files (the "Software"), to deal
116
- * in the Software without restriction, including without limitation the rights
117
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
118
- * copies of the Software, and to permit persons to whom the Software is
119
- * furnished to do so, subject to the following conditions:
120
- *
121
- * The above copyright notice and this permission notice shall be included in
122
- * all copies or substantial portions of the Software.
123
- *
124
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
125
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
126
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
127
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
128
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
129
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
130
- * THE SOFTWARE.
131
- */const{TAB_ACTIVATED_EVENT:ct}=Z;let at=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 ot(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(ct,this.handleTabActivated),this.mdcTabBar.destroy())}setupListeners(){this.mdcTabBar.listen(ct,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"]}}};at.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{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.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__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);padding-right:24px;padding-left:24px;min-width:90px;position:relative;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;background:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.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::-moz-focus-inner{padding:0;border:0}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{position:relative;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;width:24px;height:24px;font-size:24px;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{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--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}.mdc-tab{padding-right:1.25rem;padding-left:1.25rem}:host(.has-tabs-with-equal-width) .mdc-tab{flex:1 0 auto}.mdc-tab-indicator .mdc-tab-indicator__content{border:none}.mdc-tab--active .mdc-ripple-upgraded--background-focused:before{background-color:transparent;transition:background-color 1s ease}.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}.mdc-tab{background-color:transparent;flex:0 0 auto}.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}";export{at as limel_tab_bar}
@@ -1,59 +0,0 @@
1
- import{r as t,c as i,h as e,g as r}from"./p-92146da6.js";import{M as s,a as n}from"./p-076bd4dc.js";import{M as o,a,b as d}from"./p-902347b9.js";import{m as c}from"./p-dcc97cc2.js";import{A as l}from"./p-48105d44.js";import{g as m}from"./p-9faad6eb.js";
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var h=function(t,i){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)};function u(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}h(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}var p,f,b,v=function(){return(v=Object.assign||function(t){for(var i,e=1,r=arguments.length;e<r;e++)for(var s in i=arguments[e])Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s]);return t}).apply(this,arguments)};
16
- /**
17
- * @license
18
- * Copyright 2020 Google Inc.
19
- *
20
- * Permission is hereby granted, free of charge, to any person obtaining a copy
21
- * of this software and associated documentation files (the "Software"), to deal
22
- * in the Software without restriction, including without limitation the rights
23
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
24
- * copies of the Software, and to permit persons to whom the Software is
25
- * furnished to do so, subject to the following conditions:
26
- *
27
- * The above copyright notice and this permission notice shall be included in
28
- * all copies or substantial portions of the Software.
29
- *
30
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
31
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
33
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
34
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
35
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
36
- * THE SOFTWARE.
37
- */!function(t){t[t.ACTIVE=0]="ACTIVE",t[t.INACTIVE=1]="INACTIVE"}(p||(p={})),function(t){t[t.START=1]="START",t[t.END=2]="END"}(f||(f={})),function(t){t.SLIDER_UPDATE="slider_update"}(b||(b={}));var g="undefined"!=typeof window,_=function(t){function i(e){var r=t.call(this,v(v({},i.defaultAdapter),e))||this;return r.initialStylesRemoved=!1,r.isDisabled=!1,r.isDiscrete=!1,r.step=1,r.hasTickMarks=!1,r.isRange=!1,r.thumb=null,r.downEventClientX=null,r.startThumbKnobWidth=0,r.endThumbKnobWidth=0,r.animFrame=new l,r}return u(i,t),Object.defineProperty(i,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},getThumbKnobWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),i.prototype.init=function(){var t=this;this.isDisabled=this.adapter.hasClass("mdc-slider--disabled"),this.isDiscrete=this.adapter.hasClass("mdc-slider--discrete"),this.hasTickMarks=this.adapter.hasClass("mdc-slider--tick-marks"),this.isRange=this.adapter.hasClass("mdc-slider--range");var i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("min",this.isRange?f.START:f.END),"min"),e=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("max",f.END),"max"),r=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("value",f.END),"value"),s=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute("value",f.START),"value"):i,n=this.adapter.getInputAttribute("step",f.END),o=n?this.convertAttributeValueToNumber(n,"step"):this.step;this.validateProperties({min:i,max:e,value:r,valueStart:s,step:o}),this.min=i,this.max=e,this.value=r,this.valueStart=s,this.step=o,this.numDecimalPlaces=function(t){var i=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(t));if(!i)return 0;var e=i[1]||"";return Math.max(0,("0"===e?0:e.length)-Number(i[2]||0))}
38
- /**
39
- * @license
40
- * Copyright 2020 Google Inc.
41
- *
42
- * Permission is hereby granted, free of charge, to any person obtaining a copy
43
- * of this software and associated documentation files (the "Software"), to deal
44
- * in the Software without restriction, including without limitation the rights
45
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
46
- * copies of the Software, and to permit persons to whom the Software is
47
- * furnished to do so, subject to the following conditions:
48
- *
49
- * The above copyright notice and this permission notice shall be included in
50
- * all copies or substantial portions of the Software.
51
- *
52
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
54
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
55
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
56
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
57
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
58
- * THE SOFTWARE.
59
- */(this.step),this.valueBeforeDownEvent=r,this.valueStartBeforeDownEvent=s,this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){t.handleInputChange(f.START)},this.inputEndChangeListener=function(){t.handleInputChange(f.END)},this.inputStartFocusListener=function(){t.handleInputFocus(f.START)},this.inputEndFocusListener=function(){t.handleInputFocus(f.END)},this.inputStartBlurListener=function(){t.handleInputBlur(f.START)},this.inputEndBlurListener=function(){t.handleInputBlur(f.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},i.prototype.destroy=function(){this.deregisterEventHandlers()},i.prototype.getMin=function(){return this.min},i.prototype.getMax=function(){return this.max},i.prototype.getValue=function(){return this.value},i.prototype.setValue=function(t){if(this.isRange&&t<this.valueStart)throw new Error("end thumb value ("+t+") must be >= start thumb value ("+this.valueStart+")");this.updateValue(t,f.END)},i.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},i.prototype.setValueStart=function(t){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&t>this.value)throw new Error("start thumb value ("+t+") must be <= end thumb value ("+this.value+")");this.updateValue(t,f.START)},i.prototype.getStep=function(){return this.step},i.prototype.getDisabled=function(){return this.isDisabled},i.prototype.setDisabled=function(t){this.isDisabled=t,t?(this.adapter.addClass("mdc-slider--disabled"),this.isRange&&this.adapter.setInputAttribute("disabled","",f.START),this.adapter.setInputAttribute("disabled","",f.END)):(this.adapter.removeClass("mdc-slider--disabled"),this.isRange&&this.adapter.removeInputAttribute("disabled",f.START),this.adapter.removeInputAttribute("disabled",f.END))},i.prototype.getIsRange=function(){return this.isRange},i.prototype.layout=function(t){var i=(void 0===t?{}:t).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(f.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(f.END)),i||this.updateUI()},i.prototype.handleResize=function(){this.layout()},i.prototype.handleDown=function(t){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var i=null!=t.clientX?t.clientX:t.targetTouches[0].clientX;this.downEventClientX=i;var e=this.mapClientXOnSliderScale(i);this.thumb=this.getThumbFromDownEvent(i,e),null!==this.thumb&&(this.handleDragStart(t,e,this.thumb),this.updateValue(e,this.thumb,{emitInputEvent:!0}))}},i.prototype.handleMove=function(t){if(!this.isDisabled){t.preventDefault();var i=null!=t.clientX?t.clientX:t.targetTouches[0].clientX,e=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(i),null!==this.thumb){var r=this.mapClientXOnSliderScale(i);e||(this.handleDragStart(t,r,this.thumb),this.adapter.emitDragStartEvent(r,this.thumb)),this.updateValue(r,this.thumb,{emitInputEvent:!0})}}},i.prototype.handleUp=function(){if(!this.isDisabled&&null!==this.thumb){var t=this.thumb===f.START?this.valueStart:this.value;(this.thumb===f.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent)!==t&&this.adapter.emitChangeEvent(t,this.thumb),this.adapter.emitDragEndEvent(t,this.thumb),this.thumb=null}},i.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass("mdc-slider__thumb--with-indicator",f.START),this.adapter.addThumbClass("mdc-slider__thumb--with-indicator",f.END))},i.prototype.handleThumbMouseleave=function(){this.isDiscrete&&this.isRange&&(this.adapter.isInputFocused(f.START)||this.adapter.isInputFocused(f.END)||(this.adapter.removeThumbClass("mdc-slider__thumb--with-indicator",f.START),this.adapter.removeThumbClass("mdc-slider__thumb--with-indicator",f.END)))},i.prototype.handleMousedownOrTouchstart=function(t){var i=this,e="mousedown"===t.type?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(e,this.moveListener);var r=function(){i.handleUp(),i.adapter.deregisterBodyEventHandler(e,i.moveListener),i.adapter.deregisterEventHandler("mouseup",r),i.adapter.deregisterEventHandler("touchend",r)};this.adapter.registerBodyEventHandler("mouseup",r),this.adapter.registerBodyEventHandler("touchend",r),this.handleDown(t)},i.prototype.handlePointerdown=function(t){this.adapter.setPointerCapture(t.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(t)},i.prototype.handleInputChange=function(t){var i=Number(this.adapter.getInputValue(t));t===f.START?this.setValueStart(i):this.setValue(i),this.adapter.emitChangeEvent(t===f.START?this.valueStart:this.value,t),this.adapter.emitInputEvent(t===f.START?this.valueStart:this.value,t)},i.prototype.handleInputFocus=function(t){this.adapter.addThumbClass("mdc-slider__thumb--focused",t),this.isDiscrete&&(this.adapter.addThumbClass("mdc-slider__thumb--with-indicator",t),this.isRange&&this.adapter.addThumbClass("mdc-slider__thumb--with-indicator",t===f.START?f.END:f.START))},i.prototype.handleInputBlur=function(t){this.adapter.removeThumbClass("mdc-slider__thumb--focused",t),this.isDiscrete&&(this.adapter.removeThumbClass("mdc-slider__thumb--with-indicator",t),this.isRange&&this.adapter.removeThumbClass("mdc-slider__thumb--with-indicator",t===f.START?f.END:f.START))},i.prototype.handleDragStart=function(t,i,e){this.adapter.focusInput(e),t.preventDefault(),this.adapter.emitDragStartEvent(i,e)},i.prototype.getThumbFromDownEvent=function(t,i){if(!this.isRange)return f.END;var e=this.adapter.getThumbBoundingClientRect(f.START),r=this.adapter.getThumbBoundingClientRect(f.END),s=t>=e.left&&t<=e.right,n=t>=r.left&&t<=r.right;return s&&n?null:s?f.START:n?f.END:i<this.valueStart?f.START:i>this.value?f.END:i-this.valueStart<=this.value-i?f.START:f.END},i.prototype.getThumbFromMoveEvent=function(t){if(null!==this.thumb)return this.thumb;if(null===this.downEventClientX)throw new Error("`downEventClientX` is null after move event.");return Math.abs(this.downEventClientX-t)<5?this.thumb:t<this.downEventClientX?this.adapter.isRTL()?f.END:f.START:this.adapter.isRTL()?f.START:f.END},i.prototype.updateUI=function(t){this.updateThumbAndInputAttributes(t),this.updateThumbAndTrackUI(t),this.updateValueIndicatorUI(t),this.updateTickMarksUI()},i.prototype.updateThumbAndInputAttributes=function(t){if(t){var i=this.isRange&&t===f.START?this.valueStart:this.value,e=String(i);this.adapter.setInputAttribute("value",e,t),this.isRange&&t===f.START?this.adapter.setInputAttribute("min",e,f.END):this.isRange&&t===f.END&&this.adapter.setInputAttribute("max",e,f.START),this.adapter.getInputValue(t)!==e&&this.adapter.setInputValue(e,t);var r=this.adapter.getValueToAriaValueTextFn();r&&this.adapter.setInputAttribute("aria-valuetext",r(i),t)}},i.prototype.updateValueIndicatorUI=function(t){this.isDiscrete&&(this.adapter.setValueIndicatorText(this.isRange&&t===f.START?this.valueStart:this.value,t===f.START?f.START:f.END),!t&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,f.START))},i.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var t=(this.value-this.valueStart)/this.step+1,i=(this.max-this.value)/this.step,e=Array.from({length:(this.valueStart-this.min)/this.step}).fill(p.INACTIVE),r=Array.from({length:t}).fill(p.ACTIVE),s=Array.from({length:i}).fill(p.INACTIVE);this.adapter.updateTickMarks(e.concat(r).concat(s))}},i.prototype.mapClientXOnSliderScale=function(t){var i=(t-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(i=1-i);var e=this.min+i*(this.max-this.min);return e===this.max||e===this.min?e:Number(this.quantize(e).toFixed(this.numDecimalPlaces))},i.prototype.quantize=function(t){var i=Math.round((t-this.min)/this.step);return this.min+i*this.step},i.prototype.updateValue=function(t,i,e){var r=(void 0===e?{}:e).emitInputEvent;if(t=this.clampValue(t,i),this.isRange&&i===f.START){if(this.valueStart===t)return;this.valueStart=t}else{if(this.value===t)return;this.value=t}this.updateUI(i),r&&this.adapter.emitInputEvent(i===f.START?this.valueStart:this.value,i)},i.prototype.clampValue=function(t,i){return t=Math.min(Math.max(t,this.min),this.max),this.isRange&&i===f.START&&t>this.value?this.value:this.isRange&&i===f.END&&t<this.valueStart?this.valueStart:t},i.prototype.updateThumbAndTrackUI=function(t){var i=this,e=this.max,r=this.min,s=(this.value-this.valueStart)/(e-r),n=s*this.rect.width,o=this.adapter.isRTL(),a=g?m(window,"transform"):"transform";if(this.isRange){var d=this.adapter.isRTL()?(e-this.value)/(e-r)*this.rect.width:(this.valueStart-r)/(e-r)*this.rect.width,c=d+n;this.animFrame.request(b.SLIDER_UPDATE,(function(){!o&&t===f.START||o&&t!==f.START?(i.adapter.setTrackActiveStyleProperty("transform-origin","right"),i.adapter.setTrackActiveStyleProperty("left","unset"),i.adapter.setTrackActiveStyleProperty("right",i.rect.width-c+"px")):(i.adapter.setTrackActiveStyleProperty("transform-origin","left"),i.adapter.setTrackActiveStyleProperty("right","unset"),i.adapter.setTrackActiveStyleProperty("left",d+"px")),i.adapter.setTrackActiveStyleProperty(a,"scaleX("+s+")");var e=o?c:d,r=i.adapter.isRTL()?d:c;t!==f.START&&t&&i.initialStylesRemoved||i.adapter.setThumbStyleProperty(a,"translateX("+e+"px)",f.START),t!==f.END&&t&&i.initialStylesRemoved||i.adapter.setThumbStyleProperty(a,"translateX("+r+"px)",f.END),i.removeInitialStyles(o),i.updateOverlappingThumbsUI(e,r,t)}))}else this.animFrame.request(b.SLIDER_UPDATE,(function(){i.adapter.setThumbStyleProperty(a,"translateX("+(o?i.rect.width-n:n)+"px)",f.END),i.adapter.setTrackActiveStyleProperty(a,"scaleX("+s+")"),i.removeInitialStyles(o)}))},i.prototype.removeInitialStyles=function(t){if(!this.initialStylesRemoved){var i=t?"right":"left";this.adapter.removeThumbStyleProperty(i,f.END),this.isRange&&this.adapter.removeThumbStyleProperty(i,f.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},i.prototype.resetTrackAndThumbAnimation=function(){var t=this;if(this.isDiscrete){var i=g?m(window,"transition"):"transition",e="all 0s ease 0s";this.adapter.setThumbStyleProperty(i,e,f.END),this.isRange&&this.adapter.setThumbStyleProperty(i,e,f.START),this.adapter.setTrackActiveStyleProperty(i,e),requestAnimationFrame((function(){t.adapter.removeThumbStyleProperty(i,f.END),t.adapter.removeTrackActiveStyleProperty(i),t.isRange&&t.adapter.removeThumbStyleProperty(i,f.START)}))}},i.prototype.updateOverlappingThumbsUI=function(t,i,e){(this.adapter.isRTL()?i+this.endThumbKnobWidth/2>=t-this.startThumbKnobWidth/2:t+this.startThumbKnobWidth/2>=i-this.endThumbKnobWidth/2)?(this.adapter.addThumbClass("mdc-slider__thumb--top",e||f.END),this.adapter.removeThumbClass("mdc-slider__thumb--top",e===f.START?f.END:f.START)):(this.adapter.removeThumbClass("mdc-slider__thumb--top",f.START),this.adapter.removeThumbClass("mdc-slider__thumb--top",f.END))},i.prototype.convertAttributeValueToNumber=function(t,i){if(null===t)throw new Error("MDCSliderFoundation: `"+i+"` must be non-null.");var e=Number(t);if(isNaN(e))throw new Error("MDCSliderFoundation: `"+i+"` value is `"+t+"`, but must be a number.");return e},i.prototype.validateProperties=function(t){var i=t.min,e=t.max,r=t.value,s=t.valueStart,n=t.step;if(i>=e)throw new Error("MDCSliderFoundation: min must be strictly less than max. Current: [min: "+i+", max: "+e+"]");if(n<=0)throw new Error("MDCSliderFoundation: step must be a positive number. Current step: "+this.step);if(this.isRange){if(r<i||r>e||s<i||s>e)throw new Error("MDCSliderFoundation: values must be in [min, max] range. Current values: [start value: "+s+", end value: "+r+"]");if(s>r)throw new Error("MDCSliderFoundation: start value must be <= end value. Current values: [start value: "+s+", end value: "+r+"]");var o=(r-i)/n;if((s-i)/n%1!=0||o%1!=0)throw new Error("MDCSliderFoundation: Slider values must be valid based on the step value. Current values: [start value: "+s+", end value: "+r+"]")}else{if(r<i||r>e)throw new Error("MDCSliderFoundation: value must be in [min, max] range. Current value: "+r);if((o=(r-i)/n)%1!=0)throw new Error("MDCSliderFoundation: Slider value must be valid based on the step value. Current value: "+r)}},i.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),i.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(f.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(f.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(f.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(f.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(f.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(f.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(f.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(f.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(f.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(f.END,"blur",this.inputEndBlurListener)},i.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),i.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(f.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(f.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(f.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(f.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(f.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(f.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(f.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(f.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(f.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(f.END,"blur",this.inputEndBlurListener)},i.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},i.SUPPORTS_POINTER_EVENTS=g&&Boolean(window.PointerEvent)&&!(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),i}(s),y=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.skipInitialUIUpdate=!1,i.valueToAriaValueTextFn=null,i}return u(i,t),i.attachTo=function(t,e){return void 0===e&&(e={}),new i(t,void 0,e)},i.prototype.getDefaultFoundation=function(){var t=this;return new _({hasClass:function(i){return t.root.classList.contains(i)},addClass:function(i){t.root.classList.add(i)},removeClass:function(i){t.root.classList.remove(i)},addThumbClass:function(i,e){t.getThumbEl(e).classList.add(i)},removeThumbClass:function(i,e){t.getThumbEl(e).classList.remove(i)},getAttribute:function(i){return t.root.getAttribute(i)},getInputValue:function(i){return t.getInput(i).value},setInputValue:function(i,e){t.getInput(e).value=i},getInputAttribute:function(i,e){return t.getInput(e).getAttribute(i)},setInputAttribute:function(i,e,r){t.getInput(r).setAttribute(i,e)},removeInputAttribute:function(i,e){t.getInput(e).removeAttribute(i)},focusInput:function(i){t.getInput(i).focus()},isInputFocused:function(i){return t.getInput(i)===document.activeElement},getThumbKnobWidth:function(i){return t.getThumbEl(i).querySelector(".mdc-slider__thumb-knob").getBoundingClientRect().width},getThumbBoundingClientRect:function(i){return t.getThumbEl(i).getBoundingClientRect()},getBoundingClientRect:function(){return t.root.getBoundingClientRect()},isRTL:function(){return"rtl"===getComputedStyle(t.root).direction},setThumbStyleProperty:function(i,e,r){t.getThumbEl(r).style.setProperty(i,e)},removeThumbStyleProperty:function(i,e){t.getThumbEl(e).style.removeProperty(i)},setTrackActiveStyleProperty:function(i,e){t.trackActive.style.setProperty(i,e)},removeTrackActiveStyleProperty:function(i){t.trackActive.style.removeProperty(i)},setValueIndicatorText:function(i,e){t.getThumbEl(e).querySelector(".mdc-slider__value-indicator-text").textContent=String(i)},getValueToAriaValueTextFn:function(){return t.valueToAriaValueTextFn},updateTickMarks:function(i){var e=t.root.querySelector(".mdc-slider__tick-marks");e||((e=document.createElement("div")).classList.add("mdc-slider__tick-marks"),t.root.querySelector(".mdc-slider__track").appendChild(e)),i.length!==e.children.length?(e.innerHTML="",t.addTickMarks(e,i)):t.updateTickMarks(e,i)},setPointerCapture:function(i){t.root.setPointerCapture(i)},emitChangeEvent:function(i,e){t.emit("MDCSlider:change",{value:i,thumb:e})},emitInputEvent:function(i,e){t.emit("MDCSlider:input",{value:i,thumb:e})},emitDragStartEvent:function(i,e){t.getRipple(e).activate()},emitDragEndEvent:function(i,e){t.getRipple(e).deactivate()},registerEventHandler:function(i,e){t.listen(i,e)},deregisterEventHandler:function(i,e){t.unlisten(i,e)},registerThumbEventHandler:function(i,e,r){t.getThumbEl(i).addEventListener(e,r)},deregisterThumbEventHandler:function(i,e,r){t.getThumbEl(i).removeEventListener(e,r)},registerInputEventHandler:function(i,e,r){t.getInput(i).addEventListener(e,r)},deregisterInputEventHandler:function(i,e,r){t.getInput(i).removeEventListener(e,r)},registerBodyEventHandler:function(t,i){document.body.addEventListener(t,i)},deregisterBodyEventHandler:function(t,i){document.body.removeEventListener(t,i)},registerWindowEventHandler:function(t,i){window.addEventListener(t,i)},deregisterWindowEventHandler:function(t,i){window.removeEventListener(t,i)}})},i.prototype.initialize=function(t){var i=(void 0===t?{}:t).skipInitialUIUpdate;this.inputs=[].slice.call(this.root.querySelectorAll(".mdc-slider__input")),this.thumbs=[].slice.call(this.root.querySelectorAll(".mdc-slider__thumb")),this.trackActive=this.root.querySelector(".mdc-slider__track--active_fill"),this.ripples=this.createRipples(),i&&(this.skipInitialUIUpdate=!0)},i.prototype.initialSyncWithDOM=function(){this.foundation.layout({skipUpdateUI:this.skipInitialUIUpdate})},i.prototype.layout=function(){this.foundation.layout()},i.prototype.getValueStart=function(){return this.foundation.getValueStart()},i.prototype.setValueStart=function(t){this.foundation.setValueStart(t)},i.prototype.getValue=function(){return this.foundation.getValue()},i.prototype.setValue=function(t){this.foundation.setValue(t)},i.prototype.getDisabled=function(){return this.foundation.getDisabled()},i.prototype.setDisabled=function(t){this.foundation.setDisabled(t)},i.prototype.setValueToAriaValueTextFn=function(t){this.valueToAriaValueTextFn=t},i.prototype.getThumbEl=function(t){return t===f.END?this.thumbs[this.thumbs.length-1]:this.thumbs[0]},i.prototype.getInput=function(t){return t===f.END?this.inputs[this.inputs.length-1]:this.inputs[0]},i.prototype.getRipple=function(t){return t===f.END?this.ripples[this.ripples.length-1]:this.ripples[0]},i.prototype.addTickMarks=function(t,i){for(var e=document.createDocumentFragment(),r=0;r<i.length;r++){var s=document.createElement("div");s.classList.add(i[r]===p.ACTIVE?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),e.appendChild(s)}t.appendChild(e)},i.prototype.updateTickMarks=function(t,i){for(var e=Array.from(t.children),r=0;r<e.length;r++)i[r]===p.ACTIVE?(e[r].classList.add("mdc-slider__tick-mark--active"),e[r].classList.remove("mdc-slider__tick-mark--inactive")):(e[r].classList.add("mdc-slider__tick-mark--inactive"),e[r].classList.remove("mdc-slider__tick-mark--active"))},i.prototype.createRipples=function(){for(var t=[],i=[].slice.call(this.root.querySelectorAll(".mdc-slider__thumb")),e=function(e){var s=i[e],n=r.inputs[e],l=v(v({},o.createAdapter(r)),{addClass:function(t){s.classList.add(t)},computeBoundingRect:function(){return s.getBoundingClientRect()},deregisterInteractionHandler:function(t,i){n.removeEventListener(t,i)},isSurfaceActive:function(){return c(n,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,i){n.addEventListener(t,i,a())},removeClass:function(t){s.classList.remove(t)},updateCssVariable:function(t,i){s.style.setProperty(t,i)}}),m=new o(s,new d(l));m.unbounded=!0,t.push(m)},r=this,s=0;s<i.length;s++)e(s);return t},i}(n);let k=class{constructor(e){t(this,e),this.change=i(this,"change",7),this.disabled=!1,this.readonly=!1,this.factor=1,this.unit="",this.valuemax=100,this.valuemin=0,this.changeHandler=t=>{let i=t.detail.value;const e=this.multiplyByFactor(this.step);this.isMultipleOfStep(i,e)||(i=this.roundToStep(i,e)),this.change.emit(i/this.factor)},this.inputHandler=this.inputHandler.bind(this),this.getContainerClassList=this.getContainerClassList.bind(this)}connectedCallback(){this.initialize()}componentDidLoad(){this.initialize()}initialize(){const t=this.getInputElement();if(!t)return;const i=this.getValue();t.setAttribute("value",`${this.multiplyByFactor(i)}`);const e=i<=this.valuemax;if(!(i>=this.valuemin)){const e=this.multiplyByFactor(i);t.setAttribute("min",`${e}`)}if(!e){const e=this.multiplyByFactor(i);t.setAttribute("max",`${e}`)}this.isMultipleOfStep(i,this.step)||t.removeAttribute("step"),this.createMDCSlider()}componentWillLoad(){this.setPercentageClass(this.value)}disconnectedCallback(){this.destroyMDCSlider()}getContainerClassList(){return{slider:!0,"lime-slider--readonly":this.readonly,[this.percentageClass]:!0}}render(){const t={};return this.step&&(t.step=this.multiplyByFactor(this.step)),(this.disabled||this.readonly)&&(t.disabled=!0),e("div",{class:this.getContainerClassList()},e("label",{class:"slider__label mdc-floating-label mdc-floating-label--float-above"},this.label),e("div",{class:"slider__content"},e("div",{class:"slider__content-range-container"},e("span",{class:"slider__content-min-label"},this.multiplyByFactor(this.valuemin),this.unit),e("span",{class:"slider__content-max-label"},this.multiplyByFactor(this.valuemax),this.unit)),e("div",{class:{"mdc-slider":!0,"mdc-slider--discrete":!0,"mdc-slider--disabled":this.disabled||this.readonly}},e("input",Object.assign({class:"mdc-slider__input",type:"range",min:this.multiplyByFactor(this.valuemin),max:this.multiplyByFactor(this.valuemax),value:this.multiplyByFactor(this.value),name:"volume","aria-label":"Discrete slider demo"},t)),e("div",{class:"mdc-slider__track"},e("div",{class:"mdc-slider__track--inactive"}),e("div",{class:"mdc-slider__track--active"},e("div",{class:"mdc-slider__track--active_fill"}))),e("div",{class:"mdc-slider__thumb"},e("div",{class:"mdc-slider__value-indicator-container","aria-hidden":"true"},e("div",{class:"mdc-slider__value-indicator"},e("span",{class:"mdc-slider__value-indicator-text"},this.multiplyByFactor(this.value)))),e("div",{class:"mdc-slider__thumb-knob"})))),this.renderHelperLine())}renderHelperLine(){if(this.helperText)return e("div",{class:"mdc-slider-helper-line"},e("p",{class:"mdc-slider-helper-text"},this.helperText))}watchDisabled(){this.updateDisabledState()}watchReadonly(){this.updateDisabledState()}watchValue(){if(!this.mdcSlider)return;const t=this.multiplyByFactor(this.getValue());if(this.mdcSlider.setValue(t),this.isStepConfigured())return;const i=this.multiplyByFactor(this.step);this.isMultipleOfStep(t,i)&&this.reCreateSliderWithStep()}updateDisabledState(){this.mdcSlider&&this.mdcSlider.setDisabled(this.disabled||this.readonly)}multiplyByFactor(t){return Math.round(t*this.factor)}getValue(){let t=this.value;return isFinite(t)||(t=this.valuemin),t}inputHandler(t){this.setPercentageClass(t.detail.value/this.factor)}setPercentageClass(t){this.percentageClass=function(t){return 0===t?"percent-0":t<.1?"percent-0-10":t<.2?"percent-10-20":t<.3?"percent-20-30":t<.4?"percent-30-40":t<.5?"percent-40-50":t<.6?"percent-50-60":t<.7?"percent-60-70":t<.8?"percent-70-80":t<.9?"percent-80-90":"percent-90-100"}((t-this.valuemin)/(this.valuemax-this.valuemin))}isMultipleOfStep(t,i){return!i||t%i==0}roundToStep(t,i){return Math.round(t/i)*i}getRootElement(){return this.rootElement.shadowRoot.querySelector(".mdc-slider")}getInputElement(){const t=this.getRootElement();if(t)return t.querySelector("input")}isStepConfigured(){if(!this.step)return!0;const t=this.getInputElement();return!t||t.hasAttribute("step")}reCreateSliderWithStep(){const t=this.getInputElement(),i=`${this.multiplyByFactor(this.step)}`;t.setAttribute("step",i),this.destroyMDCSlider(),this.createMDCSlider()}createMDCSlider(){const t=this.getRootElement();this.mdcSlider=new y(t),this.mdcSlider.listen("MDCSlider:change",this.changeHandler),this.mdcSlider.listen("MDCSlider:input",this.inputHandler)}destroyMDCSlider(){this.mdcSlider.unlisten("MDCSlider:change",this.changeHandler),this.mdcSlider.unlisten("MDCSlider:input",this.inputHandler),this.mdcSlider.destroy(),this.mdcSlider=void 0}get rootElement(){return r(this)}static get watchers(){return{disabled:["watchDisabled"],readonly:["watchReadonly"],value:["watchValue"]}}};k.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 )}@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-slider__thumb{--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);will-change:transform, opacity}.mdc-slider__thumb::before,.mdc-slider__thumb::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-slider__thumb::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-slider__thumb::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-slider__thumb.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-slider__thumb.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-slider__thumb.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-slider__thumb.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-slider__thumb.mdc-ripple-upgraded--foreground-deactivation::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-slider__thumb::before,.mdc-slider__thumb::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-slider__thumb.mdc-ripple-upgraded::before,.mdc-slider__thumb.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-slider__thumb.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-slider__thumb::before,.mdc-slider__thumb::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}.mdc-slider__thumb:hover::before,.mdc-slider__thumb.mdc-ripple-surface--hover::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before,.mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-slider__thumb:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-slider__thumb.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-slider{cursor:pointer;height:48px;margin:0 24px;position:relative;touch-action:pan-y}.mdc-slider .mdc-slider__track{height:4px;position:absolute;top:50%;transform:translateY(-50%);width:100%}.mdc-slider .mdc-slider__track--active,.mdc-slider .mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider .mdc-slider__track--active{border-radius:3px;height:6px;overflow:hidden;top:-1px}.mdc-slider .mdc-slider__track--active_fill{border-top:6px solid;box-sizing:border-box;height:100%;width:100%;position:relative;-webkit-transform-origin:left;transform-origin:left}[dir=rtl] .mdc-slider .mdc-slider__track--active_fill,.mdc-slider .mdc-slider__track--active_fill[dir=rtl]{-webkit-transform-origin:right;transform-origin:right}.mdc-slider .mdc-slider__track--inactive{border-radius:2px;height:4px;left:0;top:0}.mdc-slider .mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}.mdc-slider .mdc-slider__track--active_fill{border-color:#26a69a;border-color:var(--mdc-theme-primary, #26a69a)}.mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:#000;border-color:var(--mdc-theme-on-surface, #000)}.mdc-slider .mdc-slider__track--inactive{background-color:#26a69a;background-color:var(--mdc-theme-primary, #26a69a);opacity:0.24}.mdc-slider.mdc-slider--disabled .mdc-slider__track--inactive{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);opacity:0.24}.mdc-slider .mdc-slider__value-indicator-container{bottom:44px;left:50%;pointer-events:none;position:absolute;transform:translateX(-50%)}.mdc-slider .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);align-items:center;border-radius:4px;display:flex;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom}.mdc-slider .mdc-slider__value-indicator::before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid;bottom:-5px;content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0}.mdc-slider .mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}@media (prefers-reduced-motion){.mdc-slider .mdc-slider__value-indicator,.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:none}}.mdc-slider .mdc-slider__value-indicator-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-subtitle2-font-size, 0.8125rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.125rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:0.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-slider .mdc-slider__value-indicator{background-color:#000;opacity:0.6}.mdc-slider .mdc-slider__value-indicator::before{border-top-color:#000}.mdc-slider .mdc-slider__value-indicator{color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-slider .mdc-slider__thumb{display:flex;height:48px;left:-24px;outline:none;position:absolute;user-select:none;width:48px}.mdc-slider .mdc-slider__thumb--top{z-index:1}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border:1px solid;box-sizing:content-box;border-color:#fff}.mdc-slider .mdc-slider__thumb-knob{box-shadow:0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);border:10px solid;border-radius:50%;box-sizing:border-box;height:20px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:20px}.mdc-slider .mdc-slider__thumb-knob{background-color:#26a69a;background-color:var(--mdc-theme-primary, #26a69a);border-color:#26a69a;border-color:var(--mdc-theme-primary, #26a69a)}.mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);border-color:#000;border-color:var(--mdc-theme-on-surface, #000)}.mdc-slider .mdc-slider__thumb::before,.mdc-slider .mdc-slider__thumb::after{background-color:#26a69a;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #26a69a))}.mdc-slider .mdc-slider__thumb:hover::before,.mdc-slider .mdc-slider__thumb.mdc-ripple-surface--hover::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before,.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-slider .mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider .mdc-slider__tick-mark--active,.mdc-slider .mdc-slider__tick-mark--inactive{border-radius:50%;height:2px;width:2px}.mdc-slider .mdc-slider__tick-mark--active{background-color:#fff;background-color:var(--mdc-theme-on-primary, #fff);opacity:0.6}.mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--active{background-color:#fff;background-color:var(--mdc-theme-on-primary, #fff);opacity:0.6}.mdc-slider .mdc-slider__tick-mark--inactive{background-color:#26a69a;background-color:var(--mdc-theme-primary, #26a69a);opacity:0.6}.mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--inactive{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);opacity:0.6}.mdc-slider.mdc-slider--disabled{opacity:0.38;cursor:auto}.mdc-slider.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:transform 80ms ease}@media (prefers-reduced-motion){.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:none}}.mdc-slider__input{cursor:pointer;left:0;margin:0;height:100%;opacity:0;pointer-events:none;position:absolute;top:0;width:100%}.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}:host([disabled]:not([readonly])) .slider__label{color:rgba(var(--contrast-1200), 0.5)}.slider{position:relative}.slider__label{color:rgba(var(--contrast-1200), 1);padding-left:1.25rem;top:0.5625rem}.slider__content{display:flex;flex-direction:column;margin-top:0.25rem}.slider__content-range-container{display:flex;order:2;justify-content:space-between;width:calc(100% - 1.5rem);margin:0 auto;margin-top:-1rem}.slider__content-min-label,.slider__content-max-label{transition:opacity 0.2s ease;opacity:0.7;font-size:0.75rem;top:1.25rem}.slider:hover .slider__content-min-label,.slider:hover .slider__content-max-label{opacity:1}.mdc-slider__track:before,.mdc-slider__track:after{content:"";display:inline-block;position:absolute;top:0;bottom:0;margin:auto;width:0.375rem;height:0.375rem;border-radius:50%;background-color:rgba(var(--contrast-700), 0.6)}.mdc-slider__track:before{left:-0.75rem}.mdc-slider__track:after{right:-0.75rem}.mdc-slider__track--active_fill,.mdc-slider__track--inactive,.mdc-slider__thumb-knob{transition:background-color 0.5s ease}:host(.displays-percentage-colors) .slider.lime-slider--readonly{--mdc-theme-on-surface:var(--mdc-theme-primary)}:host(.displays-percentage-colors) .slider.percent-0{--mdc-theme-primary:var(--color-percent--0)}:host(.displays-percentage-colors) .slider.percent-0-10{--mdc-theme-primary:var(--color-percent--0to10)}:host(.displays-percentage-colors) .slider.percent-10-20{--mdc-theme-primary:var(--color-percent--10to20)}:host(.displays-percentage-colors) .slider.percent-20-30{--mdc-theme-primary:var(--color-percent--20to30)}:host(.displays-percentage-colors) .slider.percent-30-40{--mdc-theme-primary:var(--color-percent--30to40)}:host(.displays-percentage-colors) .slider.percent-40-50{--mdc-theme-primary:var(--color-percent--40to50)}:host(.displays-percentage-colors) .slider.percent-50-60{--mdc-theme-primary:var(--color-percent--50to60)}:host(.displays-percentage-colors) .slider.percent-60-70{--mdc-theme-primary:var(--color-percent--60to70)}:host(.displays-percentage-colors) .slider.percent-70-80{--mdc-theme-primary:var(--color-percent--70to80)}:host(.displays-percentage-colors) .slider.percent-80-90{--mdc-theme-primary:var(--color-percent--80to90)}:host(.displays-percentage-colors) .slider.percent-90-100{--mdc-theme-primary:var(--color-percent--90to100)}:host(.displays-percentage-colors) .slider.percent-30-40 .mdc-slider__value-indicator-text,:host(.displays-percentage-colors) .slider.percent-40-50 .mdc-slider__value-indicator-text,:host(.displays-percentage-colors) .slider.percent-70-80 .mdc-slider__value-indicator-text{color:rgb(var(--color-gray-darker))}:host(.displays-percentage-colors) .slider.percent-30-40 .mdc-slider--disabled .mdc-slider__value-indicator-text,:host(.displays-percentage-colors) .slider.percent-40-50 .mdc-slider--disabled .mdc-slider__value-indicator-text,:host(.displays-percentage-colors) .slider.percent-70-80 .mdc-slider--disabled .mdc-slider__value-indicator-text{color:rgb(var(--contrast-100))}:host(.displays-percentage-colors) .slider.percent-50-60 .mdc-slider__value-indicator-text,:host(.displays-percentage-colors) .slider.percent-60-70 .mdc-slider__value-indicator-text{color:rgb(var(--color-gray-dark))}:host(.displays-percentage-colors) .slider.percent-50-60 .mdc-slider--disabled .mdc-slider__value-indicator-text,:host(.displays-percentage-colors) .slider.percent-60-70 .mdc-slider--disabled .mdc-slider__value-indicator-text{color:rgb(var(--contrast-100))}: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 )}.lime-slider--readonly .mdc-slider.mdc-slider--disabled{opacity:1}.lime-slider--readonly .mdc-slider.mdc-slider--disabled .mdc-slider__track,.lime-slider--readonly .mdc-slider.mdc-slider--disabled .mdc-slider__track--active,.lime-slider--readonly .mdc-slider.mdc-slider--disabled .mdc-slider__track--inactive,.lime-slider--readonly .mdc-slider.mdc-slider--disabled .mdc-slider__value-indicator{height:1rem;border-radius:1rem}.lime-slider--readonly .mdc-slider.mdc-slider--disabled .mdc-slider__track--active{top:0}.lime-slider--readonly .mdc-slider.mdc-slider--disabled .mdc-slider__value-indicator{transition:all 0s;transform:translateY(1.75rem)}.lime-slider--readonly .mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob{opacity:0}.lime-slider--readonly .mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill,.lime-slider--readonly .mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mdc-theme-primary)}.lime-slider--readonly .mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mdc-theme-primary)}.mdc-slider:not(.mdc-slider--disabled) .mdc-slider__thumb-knob:before,.mdc-slider:not(.mdc-slider--disabled) .mdc-slider__thumb-knob:after{transition:all 0.2s ease 0.2s;content:"";display:block;position:absolute;top:0;bottom:0;margin:auto;width:0.75rem;opacity:0;width:0;height:0;border:0.25rem solid transparent;border-top-color:rgba(var(--contrast-1400), 0.6)}.mdc-slider:not(.mdc-slider--disabled) .mdc-slider__thumb-knob:before{left:-1.25rem;transform:rotate(90deg)}.mdc-slider:not(.mdc-slider--disabled) .mdc-slider__thumb-knob:after{right:-1.25rem;transform:rotate(-90deg)}.mdc-slider:not(.mdc-slider--disabled) .mdc-slider__thumb-knob:hover:before{opacity:0.8;left:-1.75rem}.mdc-slider:not(.mdc-slider--disabled) .mdc-slider__thumb-knob:hover:after{opacity:0.8;right:-1.75rem}.mdc-slider .mdc-slider__value-indicator-container{z-index:1}.mdc-slider .mdc-slider__value-indicator{transition:transform 0.2s ease-out;opacity:1;transform:scale(1) translateY(2rem);border-radius:1.25rem;padding:0 0.5rem;height:1.5rem}.mdc-slider .mdc-slider__value-indicator:before{border-top-color:transparent}.mdc-slider .mdc-slider__value-indicator-text{color:var(--color-of-value-indicator)}.mdc-slider .mdc-ripple-upgraded--foreground-activation .mdc-slider__value-indicator{transform:scale(1.5) translateY(0);box-shadow:var(--shadow-depth-16)}.mdc-slider .mdc-ripple-upgraded--foreground-activation .mdc-slider__value-indicator:before{border-top-color:var(--mdc-theme-primary)}.mdc-slider:not(.mdc-slider--disabled) .mdc-slider__value-indicator{box-shadow:var(--button-shadow-normal)}.mdc-slider:not(.mdc-slider--disabled) .mdc-slider__value-indicator,.slider.lime-slider--readonly .mdc-slider__value-indicator{background-color:var(--mdc-theme-primary)}:host(:focus) .mdc-slider-helper-text,:host(:focus-visible) .mdc-slider-helper-text,:host(:focus-within) .mdc-slider-helper-text{opacity:1}.mdc-slider-helper-line{padding-right:1rem;padding-left:1rem;flex-basis:100%;width:100%}.mdc-slider-helper-text{font-family:Roboto, sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:0.6875rem;font-weight:400;letter-spacing:0.0333333333em;text-decoration:inherit;text-transform:inherit;display:block;margin-top:0;line-height:normal;margin:0;transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}.mdc-slider-helper-text:before{height:0.75rem;display:inline-block;width:0;content:"";vertical-align:0}';export{k as limel_slider}