@hortiview/shared-components 0.0.4723 → 0.0.4724

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 (58) hide show
  1. package/dist/_getTag-DyrzUAbj.js +494 -0
  2. package/dist/components/BaseView/BaseView.js +43 -297
  3. package/dist/components/BasicHeading/BasicHeading.js +24 -25
  4. package/dist/components/BasicHeading/BasicHeading.test.js +4 -4
  5. package/dist/components/BlockView/BlockView.js +14 -14
  6. package/dist/components/DeleteModal/DeleteModal.js +49 -4687
  7. package/dist/components/Disclaimer/Disclaimer.js +8 -10
  8. package/dist/components/EmptyView/EmptyView.js +8 -247
  9. package/dist/components/HashTabView/HashTabView.js +52 -1838
  10. package/dist/components/HeaderFilter/HeaderFilter.js +18 -7595
  11. package/dist/components/Iconify/Iconify.js +1 -1
  12. package/dist/components/ListArea/ListArea.js +316 -261
  13. package/dist/components/ListArea/ListArea.test.js +1 -1
  14. package/dist/components/ListArea/ListAreaService.js +34 -35
  15. package/dist/components/SearchBar/SearchBar.js +21 -2043
  16. package/package.json +1 -1
  17. package/dist/BlockView.module-ypKp14Lt.cjs +0 -1
  18. package/dist/HashTabView.module-B20c3S70.cjs +0 -1
  19. package/dist/HeaderFilter.module-DSCJz6-s.cjs +0 -1
  20. package/dist/_commonjsHelpers-DwTZ_eVU.cjs +0 -1
  21. package/dist/_getTag-DNUtgXkb.js +0 -136
  22. package/dist/_getTag-DSIzMwlx.cjs +0 -1
  23. package/dist/_stringToPath-B-GSTJ2e.cjs +0 -1
  24. package/dist/_stringToPath-BfzwTbL6.js +0 -54
  25. package/dist/baseView.module--VUY4h_X.cjs +0 -1
  26. package/dist/basicHeading.module-BbcVMp42.cjs +0 -1
  27. package/dist/component-DJvMx3oL.cjs +0 -148
  28. package/dist/component-Rx4bNsGO.js +0 -680
  29. package/dist/disclaimer.module-BfrBh-Rf.cjs +0 -1
  30. package/dist/index.es-80RhGkCD.cjs +0 -1
  31. package/dist/index.es-Ba9oZK_n.js +0 -769
  32. package/dist/index.es-C1ojb4Lq.js +0 -106
  33. package/dist/index.es-CEydmFbW.cjs +0 -23
  34. package/dist/index.es-CKdjg72r.cjs +0 -64
  35. package/dist/index.es-CNBieliG.js +0 -151
  36. package/dist/index.es-CPRODq-I.cjs +0 -127
  37. package/dist/index.es-CQ3ep412.js +0 -305
  38. package/dist/index.es-CSD_u-fK.cjs +0 -1
  39. package/dist/index.es-CVCp4d0C.js +0 -45
  40. package/dist/index.es-Cct4Uapb.js +0 -1776
  41. package/dist/index.es-Cj9DW-2T.js +0 -430
  42. package/dist/index.es-Cm4X20_S.js +0 -673
  43. package/dist/index.es-Cqx46S1V.cjs +0 -540
  44. package/dist/index.es-DiO-sp-V.cjs +0 -1
  45. package/dist/index.es-DyXn5zZ8.cjs +0 -1
  46. package/dist/index.es-InSNsV4f.js +0 -1067
  47. package/dist/index.es-J3ub0jmR.cjs +0 -1
  48. package/dist/index.es-L0ZCcbUf.js +0 -4939
  49. package/dist/index.es-gvcK6-6t.cjs +0 -1
  50. package/dist/listArea.module-CMO-yRdf.cjs +0 -1
  51. package/dist/magic-string.es-EQkD18No.cjs +0 -10
  52. package/dist/react.esm-CMNZXU0t.cjs +0 -93
  53. package/dist/searchBar.module-CFi8D8zn.cjs +0 -1
  54. package/dist/tslib.es6-CIXEwqhg.js +0 -72
  55. package/dist/tslib.es6-D1TYK0An.cjs +0 -1
  56. package/dist/useBreakpoint-PUopk3AO.cjs +0 -1
  57. package/dist/verticalDivider.module-Ciw9Fnt1.cjs +0 -1
  58. package/dist/vi.JYQecGiw-M1q0RI3O.cjs +0 -512
@@ -1,540 +0,0 @@
1
- "use strict";const i=require("./index.es-CEydmFbW.cjs"),a=require("react"),Xt=require("./index.es-CPRODq-I.cjs"),D=require("./tslib.es6-D1TYK0An.cjs"),P=require("./component-DJvMx3oL.cjs"),zt=require("./_commonjsHelpers-DwTZ_eVU.cjs"),pt=require("./_getTag-DSIzMwlx.cjs"),Yt=require("./index.es-DiO-sp-V.cjs"),ze=require("./index.es-CSD_u-fK.cjs"),Ye=require("./index.es-J3ub0jmR.cjs"),Qt={label:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.func,i.PropTypes.node]),labelType:i.PropTypes.oneOf(["string","icon"]),leadingIcon:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.func,i.PropTypes.node]),themeColor:i.deprecatedOneOf(i.PropTypes.oneOf(["themeDefault","primary","secondary","danger","success","blue","gray","green","orange","purple","red","teal","yellow","primary-variant","no-bg-on-dark"]),["primaryVariant"],"LabelBadge","Please use one of 'themeDefault','primary','secondary','danger','success','blue','gray','green','orange','purple','red','teal','yellow','primary-variant','no-bg-on-dark'."),trailingIcon:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.func,i.PropTypes.node])},Zt={label:null,labelType:"string",leadingIcon:void 0,themeColor:"themeDefault",trailingIcon:void 0},Jt={counter:i.PropTypes.number,max:i.PropTypes.number,themeColor:i.PropTypes.oneOf(["primary","secondary","danger","success"])},en={counter:null,max:99,themeColor:"danger"},Tt=(s,n)=>!s&&s!==0?null:s<=n?s:`${n}+`,ft=a.forwardRef((s,n)=>{const{className:e,counter:t,max:r,themeColor:o,...l}=s,c=a.useRef(),[u,_]=a.useState(Tt(t,r));a.useEffect(()=>_(Tt(t,r)),[t,r]),a.useImperativeHandle(n,()=>c.current,[]);const C=i.clsx("lmnt","lmnt-badge","lmnt-badge--notification",`lmnt-badge--notification-${o}`,"mdc-typography--caption-bold",(u||u===0)&&"lmnt-badge--notification-badge-counter",e);return a.createElement("div",i._extends({ref:c,className:C},l),u&&u)});ft.displayName="NotificationBadge";ft.propTypes=Jt;ft.defaultProps=en;const Qe=a.forwardRef((s,n)=>{const{className:e,label:t,labelType:r,leadingIcon:o,trailingIcon:l,themeColor:c,...u}=s,_=a.useRef();a.useImperativeHandle(n,()=>_.current,[]);const C=i.clsx("lmnt","lmnt-badge","lmnt-badge--label",`lmnt-badge--label-${c}`,"mdc-typography--caption-bold",r==="icon"&&"lmnt-badge--label-icon-as-label",o&&"lmnt-badge--label-leading-icon",l&&"lmnt-badge--label-trailing-icon",e),m=a.useMemo(()=>{var p;return r==="icon"||!o?null:typeof o=="string"?a.createElement(ze.Icon,{className:"lmnt-badge-label__leading-icon",icon:o,iconSize:"xsmall"}):typeof o=="function"?o({className:"lmnt-icon--xsmall lmnt-badge-label__leading-icon"}):i.addProps(o,{className:i.clsx("lmnt-badge-label__leading-icon",o==null||(p=o.props)===null||p===void 0?void 0:p.className)})},[r,o]),E=a.useMemo(()=>{var p;return r==="string"?t:typeof t=="string"?a.createElement(ze.Icon,{className:"lmnt-badge-label-icon",icon:t,iconSize:"xsmall"}):typeof t=="function"?t({className:"lmnt-icon--xsmall lmnt-badge-label-icon"}):i.addProps(t,{className:i.clsx("lmnt-badge-label-icon","lmnt-icon--xsmall",t==null||(p=t.props)===null||p===void 0?void 0:p.className)})},[r,t]),d=a.useMemo(()=>{var p;return!l||r==="icon"||m?null:typeof l=="string"?a.createElement(ze.Icon,{className:"lmnt-badge-label__trailing-icon",icon:l,iconSize:"xsmall"}):typeof l=="function"?l({className:"lmnt-icon--xsmall lmnt-badge-label__trailing-icon"}):i.addProps(l,{className:i.clsx("lmnt-badge-label__trailing-icon",l==null||(p=l.props)===null||p===void 0?void 0:p.className)})},[r,l,m]);return a.createElement("div",i._extends({ref:_,className:C},u),m&&m,a.createElement("span",{className:"lmnt-badge--label__label"},E),d&&d)});Qe.displayName="LabelBadge";Qe.propTypes=Qt;Qe.defaultProps=Zt;/**
2
- * @license
3
- * Copyright 2017 Google Inc.
4
- *
5
- * Permission is hereby granted, free of charge, to any person obtaining a copy
6
- * of this software and associated documentation files (the "Software"), to deal
7
- * in the Software without restriction, including without limitation the rights
8
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- * copies of the Software, and to permit persons to whom the Software is
10
- * furnished to do so, subject to the following conditions:
11
- *
12
- * The above copyright notice and this permission notice shall be included in
13
- * all copies or substantial portions of the Software.
14
- *
15
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- * THE SOFTWARE.
22
- */var tn={ROOT:"mdc-form-field"},nn={LABEL_SELECTOR:".mdc-form-field > label"};/**
23
- * @license
24
- * Copyright 2017 Google Inc.
25
- *
26
- * Permission is hereby granted, free of charge, to any person obtaining a copy
27
- * of this software and associated documentation files (the "Software"), to deal
28
- * in the Software without restriction, including without limitation the rights
29
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
30
- * copies of the Software, and to permit persons to whom the Software is
31
- * furnished to do so, subject to the following conditions:
32
- *
33
- * The above copyright notice and this permission notice shall be included in
34
- * all copies or substantial portions of the Software.
35
- *
36
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
42
- * THE SOFTWARE.
43
- */var _t=function(s){D.__extends(n,s);function n(e){var t=s.call(this,D.__assign(D.__assign({},n.defaultAdapter),e))||this;return t.click=function(){t.handleClick()},t}return Object.defineProperty(n,"cssClasses",{get:function(){return tn},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return nn},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),n.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},n.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},n.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){e.adapter.deactivateInputRipple()})},n}(P.MDCFoundation);/**
44
- * @license
45
- * Copyright 2017 Google Inc.
46
- *
47
- * Permission is hereby granted, free of charge, to any person obtaining a copy
48
- * of this software and associated documentation files (the "Software"), to deal
49
- * in the Software without restriction, including without limitation the rights
50
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51
- * copies of the Software, and to permit persons to whom the Software is
52
- * furnished to do so, subject to the following conditions:
53
- *
54
- * The above copyright notice and this permission notice shall be included in
55
- * all copies or substantial portions of the Software.
56
- *
57
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
63
- * THE SOFTWARE.
64
- */var rn=function(s){D.__extends(n,s);function n(){return s!==null&&s.apply(this,arguments)||this}return n.attachTo=function(e){return new n(e)},n.prototype.labelEl=function(){var e=_t.strings.LABEL_SELECTOR;return this.root.querySelector(e)},n.prototype.getDefaultFoundation=function(){var e=this,t={activateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.activate()},deactivateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.deactivate()},deregisterInteractionHandler:function(r,o){var l=e.labelEl();l&&l.removeEventListener(r,o)},registerInteractionHandler:function(r,o){var l=e.labelEl();l&&l.addEventListener(r,o)}};return new _t(t)},n}(P.MDCComponent);const sn={alignEnd:i.PropTypes.bool,children:i.PropTypes.node,className:i.PropTypes.string,inputRef:i.PropTypes.oneOfType([i.PropTypes.func,i.PropTypes.shape({current:i.PropTypes.any})])},on={alignEnd:!1,children:null,className:void 0,inputRef:null},De=a.forwardRef((s,n)=>{const{children:e,inputRef:t,className:r,alignEnd:o,...l}=s,c=a.useRef(),u=a.useRef();return a.useImperativeHandle(n,()=>c.current,[]),a.useEffect(()=>(u.current=rn.attachTo(c.current),()=>{u.current.destroy()})),a.useEffect(()=>{t&&(u.current.input=t.current)},[t]),a.createElement("div",i._extends({ref:c,className:i.clsx("lmnt mdc-form-field lmnt-form-field",o&&"mdc-form-field--align-end",r)},l),e)});De.displayName="FormField";De.propTypes=sn;De.defaultProps=on;const an={children:i.PropTypes.node.isRequired,className:i.PropTypes.string,disabled:i.PropTypes.bool,hideLabel:i.PropTypes.bool},ln={children:null,className:void 0,disabled:!1,hideLabel:!1},Ge=a.forwardRef((s,n)=>{const{children:e,className:t,disabled:r,hideLabel:o,targetId:l,...c}=s,u=a.useRef();return a.useImperativeHandle(n,()=>u.current,[]),a.createElement("label",i._extends({ref:u,className:i.clsx("lmnt-input-label",o&&"sr-only",r&&"lmnt-theme-on-surface-disabled",t),htmlFor:l,"aria-labelledby":l},c),e)});Ge.displayName="InputLabel";Ge.propTypes=an;Ge.defaultProps=ln;/**
65
- * @license
66
- * Copyright 2016 Google Inc.
67
- *
68
- * Permission is hereby granted, free of charge, to any person obtaining a copy
69
- * of this software and associated documentation files (the "Software"), to deal
70
- * in the Software without restriction, including without limitation the rights
71
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
72
- * copies of the Software, and to permit persons to whom the Software is
73
- * furnished to do so, subject to the following conditions:
74
- *
75
- * The above copyright notice and this permission notice shall be included in
76
- * all copies or substantial portions of the Software.
77
- *
78
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
79
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
80
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
81
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
82
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
84
- * THE SOFTWARE.
85
- */var It={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},gt={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function Bt(s){return!!s.document&&typeof s.document.createElement=="function"}function cn(s,n){if(Bt(s)&&n in It){var e=s.document.createElement("div"),t=It[n],r=t.standard,o=t.prefixed,l=r in e.style;return l?r:o}return n}function Ct(s,n){if(Bt(s)&&n in gt){var e=s.document.createElement("div"),t=gt[n],r=t.standard,o=t.prefixed,l=t.cssProperty,c=l in e.style;return c?r:o}return n}/**
86
- * @license
87
- * Copyright 2016 Google Inc.
88
- *
89
- * Permission is hereby granted, free of charge, to any person obtaining a copy
90
- * of this software and associated documentation files (the "Software"), to deal
91
- * in the Software without restriction, including without limitation the rights
92
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
93
- * copies of the Software, and to permit persons to whom the Software is
94
- * furnished to do so, subject to the following conditions:
95
- *
96
- * The above copyright notice and this permission notice shall be included in
97
- * all copies or substantial portions of the Software.
98
- *
99
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
100
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
101
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
102
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
103
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
104
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
105
- * THE SOFTWARE.
106
- */var ke={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},ce={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},vt={ANIM_END_LATCH_MS:250};/**
107
- * @license
108
- * Copyright 2016 Google Inc.
109
- *
110
- * Permission is hereby granted, free of charge, to any person obtaining a copy
111
- * of this software and associated documentation files (the "Software"), to deal
112
- * in the Software without restriction, including without limitation the rights
113
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
114
- * copies of the Software, and to permit persons to whom the Software is
115
- * furnished to do so, subject to the following conditions:
116
- *
117
- * The above copyright notice and this permission notice shall be included in
118
- * all copies or substantial portions of the Software.
119
- *
120
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
121
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
122
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
123
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
124
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
125
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
126
- * THE SOFTWARE.
127
- */var dn=function(s){D.__extends(n,s);function n(e){var t=s.call(this,D.__assign(D.__assign({},n.defaultAdapter),e))||this;return t.currentCheckState_=ce.TRANSITION_STATE_INIT,t.currentAnimationClass_="",t.animEndLatchTimer_=0,t.enableAnimationEndHandler_=!1,t}return Object.defineProperty(n,"cssClasses",{get:function(){return ke},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return ce},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return vt},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),n.prototype.init=function(){this.currentCheckState_=this.determineCheckState_(),this.updateAriaChecked_(),this.adapter.addClass(ke.UPGRADED)},n.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer_)},n.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(ke.DISABLED):this.adapter.removeClass(ke.DISABLED)},n.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler_&&(clearTimeout(this.animEndLatchTimer_),this.animEndLatchTimer_=setTimeout(function(){e.adapter.removeClass(e.currentAnimationClass_),e.enableAnimationEndHandler_=!1},vt.ANIM_END_LATCH_MS))},n.prototype.handleChange=function(){this.transitionCheckState_()},n.prototype.transitionCheckState_=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState_,t=this.determineCheckState_();if(e!==t){this.updateAriaChecked_();var r=ce.TRANSITION_STATE_UNCHECKED,o=ke.SELECTED;t===r?this.adapter.removeClass(o):this.adapter.addClass(o),this.currentAnimationClass_.length>0&&(clearTimeout(this.animEndLatchTimer_),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass_)),this.currentAnimationClass_=this.getTransitionAnimationClass_(e,t),this.currentCheckState_=t,this.adapter.isAttachedToDOM()&&this.currentAnimationClass_.length>0&&(this.adapter.addClass(this.currentAnimationClass_),this.enableAnimationEndHandler_=!0)}}},n.prototype.determineCheckState_=function(){var e=ce.TRANSITION_STATE_INDETERMINATE,t=ce.TRANSITION_STATE_CHECKED,r=ce.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:r},n.prototype.getTransitionAnimationClass_=function(e,t){var r=ce.TRANSITION_STATE_INIT,o=ce.TRANSITION_STATE_CHECKED,l=ce.TRANSITION_STATE_UNCHECKED,c=n.cssClasses,u=c.ANIM_UNCHECKED_CHECKED,_=c.ANIM_UNCHECKED_INDETERMINATE,C=c.ANIM_CHECKED_UNCHECKED,m=c.ANIM_CHECKED_INDETERMINATE,E=c.ANIM_INDETERMINATE_CHECKED,d=c.ANIM_INDETERMINATE_UNCHECKED;switch(e){case r:return t===l?"":t===o?E:d;case l:return t===o?u:_;case o:return t===l?C:m;default:return t===o?E:d}},n.prototype.updateAriaChecked_=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(ce.ARIA_CHECKED_ATTR,ce.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(ce.ARIA_CHECKED_ATTR)},n}(P.MDCFoundation);/**
128
- * @license
129
- * Copyright 2016 Google Inc.
130
- *
131
- * Permission is hereby granted, free of charge, to any person obtaining a copy
132
- * of this software and associated documentation files (the "Software"), to deal
133
- * in the Software without restriction, including without limitation the rights
134
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
135
- * copies of the Software, and to permit persons to whom the Software is
136
- * furnished to do so, subject to the following conditions:
137
- *
138
- * The above copyright notice and this permission notice shall be included in
139
- * all copies or substantial portions of the Software.
140
- *
141
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
142
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
143
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
144
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
145
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
146
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
147
- * THE SOFTWARE.
148
- */var At=["checked","indeterminate"],un=function(s){D.__extends(n,s);function n(){var e=s!==null&&s.apply(this,arguments)||this;return e.ripple_=e.createRipple_(),e}return n.attachTo=function(e){return new n(e)},Object.defineProperty(n.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.nativeControl_.checked=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"indeterminate",{get:function(){return this.nativeControl_.indeterminate},set:function(e){this.nativeControl_.indeterminate=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this.nativeControl_.value},set:function(e){this.nativeControl_.value=e},enumerable:!1,configurable:!0}),n.prototype.initialize=function(){var e=ce.DATA_INDETERMINATE_ATTR;this.nativeControl_.indeterminate=this.nativeControl_.getAttribute(e)==="true",this.nativeControl_.removeAttribute(e)},n.prototype.initialSyncWithDOM=function(){var e=this;this.handleChange_=function(){return e.foundation.handleChange()},this.handleAnimationEnd_=function(){return e.foundation.handleAnimationEnd()},this.nativeControl_.addEventListener("change",this.handleChange_),this.listen(Ct(window,"animationend"),this.handleAnimationEnd_),this.installPropertyChangeHooks_()},n.prototype.destroy=function(){this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.handleChange_),this.unlisten(Ct(window,"animationend"),this.handleAnimationEnd_),this.uninstallPropertyChangeHooks_(),s.prototype.destroy.call(this)},n.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(r){return e.root.classList.add(r)},forceLayout:function(){return e.root.offsetWidth},hasNativeControl:function(){return!!e.nativeControl_},isAttachedToDOM:function(){return!!e.root.parentNode},isChecked:function(){return e.checked},isIndeterminate:function(){return e.indeterminate},removeClass:function(r){e.root.classList.remove(r)},removeNativeControlAttr:function(r){e.nativeControl_.removeAttribute(r)},setNativeControlAttr:function(r,o){e.nativeControl_.setAttribute(r,o)},setNativeControlDisabled:function(r){e.nativeControl_.disabled=r}};return new dn(t)},n.prototype.createRipple_=function(){var e=this,t=D.__assign(D.__assign({},P.MDCRipple.createAdapter(this)),{deregisterInteractionHandler:function(r,o){return e.nativeControl_.removeEventListener(r,o,P.applyPassive())},isSurfaceActive:function(){return P.matches(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(r,o){return e.nativeControl_.addEventListener(r,o,P.applyPassive())}});return new P.MDCRipple(this.root,new P.MDCRippleFoundation(t))},n.prototype.installPropertyChangeHooks_=function(){var e=this,t=this.nativeControl_,r=Object.getPrototypeOf(t);At.forEach(function(o){var l=Object.getOwnPropertyDescriptor(r,o);if(bt(l)){var c=l.get,u={configurable:l.configurable,enumerable:l.enumerable,get:c,set:function(_){l.set.call(t,_),e.foundation.handleChange()}};Object.defineProperty(t,o,u)}})},n.prototype.uninstallPropertyChangeHooks_=function(){var e=this.nativeControl_,t=Object.getPrototypeOf(e);At.forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);bt(o)&&Object.defineProperty(e,r,o)})},Object.defineProperty(n.prototype,"nativeControl_",{get:function(){var e=ce.NATIVE_CONTROL_SELECTOR,t=this.root.querySelector(e);if(!t)throw new Error("Checkbox component requires a "+e+" element");return t},enumerable:!1,configurable:!0}),n}(P.MDCComponent);function bt(s){return!!s&&typeof s.set=="function"}const pn={alignEnd:i.PropTypes.bool,checked:i.PropTypes.bool,children:i.PropTypes.node,className:i.PropTypes.string,disabled:i.PropTypes.bool,hideLabel:i.PropTypes.bool,id:i.PropTypes.string,indeterminate:i.PropTypes.bool,label:i.PropTypes.string,onChange:i.PropTypes.func,themeColor:i.PropTypes.oneOf(["primary","secondary","danger","success"]),value:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.number,i.PropTypes.bool,i.PropTypes.object])},fn={alignEnd:!1,checked:null,children:void 0,className:void 0,disabled:!1,hideLabel:!1,id:void 0,indeterminate:!1,label:null,themeColor:"primary",value:null},We=a.forwardRef((s,n)=>{const{alignEnd:e,checked:t,children:r,className:o,disabled:l,hideLabel:c,id:u,indeterminate:_,label:C,onChange:m,themeColor:E,value:d,...p}=s,[v]=a.useState(()=>u||i.edsRandomId()),A=a.useRef(),h=a.useRef(),f=C||r;a.useImperativeHandle(n,()=>A.current,[]);let I=!1,b=t;const w=a.useCallback(ee=>{const x=ee.target.checked;I&&x===b||(I=!0,b=x,m?.(b,ee,d))},[m]);a.useEffect(()=>(h.current=new un(A.current),()=>{h.current.destroy()}),[]),a.useEffect(()=>{h.current.checked!==t&&(h.current.checked=t)},[t]),a.useEffect(()=>{_&&t===null?h.current.indeterminate=!0:h.current.indeterminate=!1},[t,_]);const X={};return d!=null&&(X.value=d),a.createElement(De,{alignEnd:e,input:h,className:"lmnt mdc-touch-target-wrapper"},a.createElement("div",{ref:A,className:i.clsx("lmnt mdc-checkbox lmnt-checkbox mdc-checkbox--touch",l&&"mdc-checkbox--disabled",E&&`lmnt-checkbox--${E}`,o)},a.createElement("input",i._extends({id:v,disabled:l,type:"checkbox",className:"mdc-checkbox__native-control",onChange:w,onClick:w,defaultChecked:t},X,p)),a.createElement("div",{className:"mdc-checkbox__background"},a.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},a.createElement("path",{className:"mdc-checkbox__checkmark-path",fill:"none",stroke:"white",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),a.createElement("div",{className:"mdc-checkbox__mixedmark"})),a.createElement("div",{className:"mdc-checkbox__ripple"})),a.createElement(Ge,{hideLabel:c,targetId:v,className:i.clsx(l&&"lmnt-theme-on-surface-disabled"),disabled:l},f))});We.displayName="Checkbox";We.propTypes=pn;We.defaultProps=fn;/**
149
- * @license
150
- * Copyright 2020 Google Inc.
151
- *
152
- * Permission is hereby granted, free of charge, to any person obtaining a copy
153
- * of this software and associated documentation files (the "Software"), to deal
154
- * in the Software without restriction, including without limitation the rights
155
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
156
- * copies of the Software, and to permit persons to whom the Software is
157
- * furnished to do so, subject to the following conditions:
158
- *
159
- * The above copyright notice and this permission notice shall be included in
160
- * all copies or substantial portions of the Software.
161
- *
162
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
163
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
164
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
165
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
166
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
167
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
168
- * THE SOFTWARE.
169
- */var M={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},ne=new Set;ne.add(M.BACKSPACE);ne.add(M.ENTER);ne.add(M.SPACEBAR);ne.add(M.PAGE_UP);ne.add(M.PAGE_DOWN);ne.add(M.END);ne.add(M.HOME);ne.add(M.ARROW_LEFT);ne.add(M.ARROW_UP);ne.add(M.ARROW_RIGHT);ne.add(M.ARROW_DOWN);ne.add(M.DELETE);ne.add(M.ESCAPE);ne.add(M.TAB);var de={BACKSPACE:8,ENTER:13,SPACEBAR:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ESCAPE:27,TAB:9},re=new Map;re.set(de.BACKSPACE,M.BACKSPACE);re.set(de.ENTER,M.ENTER);re.set(de.SPACEBAR,M.SPACEBAR);re.set(de.PAGE_UP,M.PAGE_UP);re.set(de.PAGE_DOWN,M.PAGE_DOWN);re.set(de.END,M.END);re.set(de.HOME,M.HOME);re.set(de.ARROW_LEFT,M.ARROW_LEFT);re.set(de.ARROW_UP,M.ARROW_UP);re.set(de.ARROW_RIGHT,M.ARROW_RIGHT);re.set(de.ARROW_DOWN,M.ARROW_DOWN);re.set(de.DELETE,M.DELETE);re.set(de.ESCAPE,M.ESCAPE);re.set(de.TAB,M.TAB);var ve=new Set;ve.add(M.PAGE_UP);ve.add(M.PAGE_DOWN);ve.add(M.END);ve.add(M.HOME);ve.add(M.ARROW_LEFT);ve.add(M.ARROW_UP);ve.add(M.ARROW_RIGHT);ve.add(M.ARROW_DOWN);function te(s){var n=s.key;if(ne.has(n))return n;var e=re.get(s.keyCode);return e||M.UNKNOWN}/**
170
- * @license
171
- * Copyright 2018 Google Inc.
172
- *
173
- * Permission is hereby granted, free of charge, to any person obtaining a copy
174
- * of this software and associated documentation files (the "Software"), to deal
175
- * in the Software without restriction, including without limitation the rights
176
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
177
- * copies of the Software, and to permit persons to whom the Software is
178
- * furnished to do so, subject to the following conditions:
179
- *
180
- * The above copyright notice and this permission notice shall be included in
181
- * all copies or substantial portions of the Software.
182
- *
183
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
184
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
185
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
186
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
187
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
188
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
189
- * THE SOFTWARE.
190
- */var Fe={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},Be={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},Ve={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67},q;(function(s){s[s.BOTTOM=1]="BOTTOM",s[s.CENTER=2]="CENTER",s[s.RIGHT=4]="RIGHT",s[s.FLIP_RTL=8]="FLIP_RTL"})(q||(q={}));var Ne;(function(s){s[s.TOP_LEFT=0]="TOP_LEFT",s[s.TOP_RIGHT=4]="TOP_RIGHT",s[s.BOTTOM_LEFT=1]="BOTTOM_LEFT",s[s.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",s[s.TOP_START=8]="TOP_START",s[s.TOP_END=12]="TOP_END",s[s.BOTTOM_START=9]="BOTTOM_START",s[s.BOTTOM_END=13]="BOTTOM_END"})(Ne||(Ne={}));/**
191
- * @license
192
- * Copyright 2018 Google Inc.
193
- *
194
- * Permission is hereby granted, free of charge, to any person obtaining a copy
195
- * of this software and associated documentation files (the "Software"), to deal
196
- * in the Software without restriction, including without limitation the rights
197
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
198
- * copies of the Software, and to permit persons to whom the Software is
199
- * furnished to do so, subject to the following conditions:
200
- *
201
- * The above copyright notice and this permission notice shall be included in
202
- * all copies or substantial portions of the Software.
203
- *
204
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
205
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
206
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
207
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
208
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
209
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
210
- * THE SOFTWARE.
211
- */var ge,_e,g={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},hn=(ge={},ge[""+g.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",ge[""+g.LIST_ITEM_CLASS]="mdc-list-item",ge[""+g.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",ge[""+g.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",ge[""+g.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",ge[""+g.ROOT]="mdc-list",ge),be=(_e={},_e[""+g.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",_e[""+g.LIST_ITEM_CLASS]="mdc-deprecated-list-item",_e[""+g.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",_e[""+g.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",_e[""+g.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",_e[""+g.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",_e[""+g.ROOT]="mdc-deprecated-list",_e),U={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:`
212
- .`+g.LIST_ITEM_CLASS+` button:not(:disabled),
213
- .`+g.LIST_ITEM_CLASS+` a,
214
- .`+be[g.LIST_ITEM_CLASS]+` button:not(:disabled),
215
- .`+be[g.LIST_ITEM_CLASS]+` a
216
- `,DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:`
217
- .`+g.LIST_ITEM_CLASS+` button:not(:disabled),
218
- .`+g.LIST_ITEM_CLASS+` a,
219
- .`+g.LIST_ITEM_CLASS+` input[type="radio"]:not(:disabled),
220
- .`+g.LIST_ITEM_CLASS+` input[type="checkbox"]:not(:disabled),
221
- .`+be[g.LIST_ITEM_CLASS]+` button:not(:disabled),
222
- .`+be[g.LIST_ITEM_CLASS]+` a,
223
- .`+be[g.LIST_ITEM_CLASS]+` input[type="radio"]:not(:disabled),
224
- .`+be[g.LIST_ITEM_CLASS]+` input[type="checkbox"]:not(:disabled)
225
- `,RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},Z={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},mn="evolution";/**
226
- * @license
227
- * Copyright 2020 Google Inc.
228
- *
229
- * Permission is hereby granted, free of charge, to any person obtaining a copy
230
- * of this software and associated documentation files (the "Software"), to deal
231
- * in the Software without restriction, including without limitation the rights
232
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
233
- * copies of the Software, and to permit persons to whom the Software is
234
- * furnished to do so, subject to the following conditions:
235
- *
236
- * The above copyright notice and this permission notice shall be included in
237
- * all copies or substantial portions of the Software.
238
- *
239
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
240
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
241
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
242
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
243
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
244
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
245
- * THE SOFTWARE.
246
- */var En=["input","button","textarea","select"],Se=function(s){var n=s.target;if(n){var e=(""+n.tagName).toLowerCase();En.indexOf(e)===-1&&s.preventDefault()}};/**
247
- * @license
248
- * Copyright 2020 Google Inc.
249
- *
250
- * Permission is hereby granted, free of charge, to any person obtaining a copy
251
- * of this software and associated documentation files (the "Software"), to deal
252
- * in the Software without restriction, including without limitation the rights
253
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
254
- * copies of the Software, and to permit persons to whom the Software is
255
- * furnished to do so, subject to the following conditions:
256
- *
257
- * The above copyright notice and this permission notice shall be included in
258
- * all copies or substantial portions of the Software.
259
- *
260
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
261
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
262
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
263
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
264
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
265
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
266
- * THE SOFTWARE.
267
- */function yn(){var s={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""};return s}function Tn(s,n){for(var e=new Map,t=0;t<s;t++){var r=n(t).trim();if(r){var o=r[0].toLowerCase();e.has(o)||e.set(o,[]),e.get(o).push({text:r.toLowerCase(),index:t})}}return e.forEach(function(l){l.sort(function(c,u){return c.index-u.index})}),e}function dt(s,n){var e=s.nextChar,t=s.focusItemAtIndex,r=s.sortedIndexByFirstChar,o=s.focusedItemIndex,l=s.skipFocus,c=s.isItemAtIndexDisabled;clearTimeout(n.bufferClearTimeout),n.bufferClearTimeout=setTimeout(function(){Kt(n)},Z.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),n.typeaheadBuffer=n.typeaheadBuffer+e;var u;return n.typeaheadBuffer.length===1?u=_n(r,o,c,n):u=In(r,c,n),u!==-1&&!l&&t(u),u}function _n(s,n,e,t){var r=t.typeaheadBuffer[0],o=s.get(r);if(!o)return-1;if(r===t.currentFirstChar&&o[t.sortedIndexCursor].index===n){t.sortedIndexCursor=(t.sortedIndexCursor+1)%o.length;var l=o[t.sortedIndexCursor].index;if(!e(l))return l}t.currentFirstChar=r;var c=-1,u;for(u=0;u<o.length;u++)if(!e(o[u].index)){c=u;break}for(;u<o.length;u++)if(o[u].index>n&&!e(o[u].index)){c=u;break}return c!==-1?(t.sortedIndexCursor=c,o[t.sortedIndexCursor].index):-1}function In(s,n,e){var t=e.typeaheadBuffer[0],r=s.get(t);if(!r)return-1;var o=r[e.sortedIndexCursor];if(o.text.lastIndexOf(e.typeaheadBuffer,0)===0&&!n(o.index))return o.index;for(var l=(e.sortedIndexCursor+1)%r.length,c=-1;l!==e.sortedIndexCursor;){var u=r[l],_=u.text.lastIndexOf(e.typeaheadBuffer,0)===0,C=!n(u.index);if(_&&C){c=l;break}l=(l+1)%r.length}return c!==-1?(e.sortedIndexCursor=c,r[e.sortedIndexCursor].index):-1}function Ht(s){return s.typeaheadBuffer.length>0}function Kt(s){s.typeaheadBuffer=""}function St(s,n){var e=s.event,t=s.isTargetListItem,r=s.focusedItemIndex,o=s.focusItemAtIndex,l=s.sortedIndexByFirstChar,c=s.isItemAtIndexDisabled,u=te(e)==="ArrowLeft",_=te(e)==="ArrowUp",C=te(e)==="ArrowRight",m=te(e)==="ArrowDown",E=te(e)==="Home",d=te(e)==="End",p=te(e)==="Enter",v=te(e)==="Spacebar";if(e.ctrlKey||e.metaKey||u||_||C||m||E||d||p)return-1;var A=!v&&e.key.length===1;if(A){Se(e);var h={focusItemAtIndex:o,focusedItemIndex:r,nextChar:e.key.toLowerCase(),sortedIndexByFirstChar:l,skipFocus:!1,isItemAtIndexDisabled:c};return dt(h,n)}if(!v)return-1;t&&Se(e);var f=t&&Ht(n);if(f){var h={focusItemAtIndex:o,focusedItemIndex:r,nextChar:" ",sortedIndexByFirstChar:l,skipFocus:!1,isItemAtIndexDisabled:c};return dt(h,n)}return-1}/**
268
- * @license
269
- * Copyright 2018 Google Inc.
270
- *
271
- * Permission is hereby granted, free of charge, to any person obtaining a copy
272
- * of this software and associated documentation files (the "Software"), to deal
273
- * in the Software without restriction, including without limitation the rights
274
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
275
- * copies of the Software, and to permit persons to whom the Software is
276
- * furnished to do so, subject to the following conditions:
277
- *
278
- * The above copyright notice and this permission notice shall be included in
279
- * all copies or substantial portions of the Software.
280
- *
281
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
282
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
283
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
284
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
285
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
286
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
287
- * THE SOFTWARE.
288
- */function gn(s){return s instanceof Array}var ut=function(s){D.__extends(n,s);function n(e){var t=s.call(this,D.__assign(D.__assign({},n.defaultAdapter),e))||this;return t.wrapFocus_=!1,t.isVertical_=!0,t.isSingleSelectionList_=!1,t.selectedIndex_=Z.UNSET_INDEX,t.focusedItemIndex=Z.UNSET_INDEX,t.useActivatedClass_=!1,t.useSelectedAttr_=!1,t.ariaCurrentAttrValue_=null,t.isCheckboxList_=!1,t.isRadioList_=!1,t.hasTypeahead=!1,t.typeaheadState=yn(),t.sortedIndexByFirstChar=new Map,t}return Object.defineProperty(n,"strings",{get:function(){return U},enumerable:!1,configurable:!0}),Object.defineProperty(n,"cssClasses",{get:function(){return g},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return Z},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),n.prototype.layout=function(){this.adapter.getListItemCount()!==0&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList_=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList_=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},n.prototype.setWrapFocus=function(e){this.wrapFocus_=e},n.prototype.setVerticalOrientation=function(e){this.isVertical_=e},n.prototype.setSingleSelection=function(e){this.isSingleSelectionList_=e,e&&this.maybeInitializeSingleSelection()},n.prototype.maybeInitializeSingleSelection=function(){for(var e=this.adapter.getListItemCount(),t=0;t<e;t++){var r=this.adapter.listItemAtIndexHasClass(t,g.LIST_ITEM_SELECTED_CLASS),o=this.adapter.listItemAtIndexHasClass(t,g.LIST_ITEM_ACTIVATED_CLASS);if(r||o){o&&this.setUseActivatedClass(!0),this.isSingleSelectionList_=!0,this.selectedIndex_=t;return}}},n.prototype.setHasTypeahead=function(e){this.hasTypeahead=e,e&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},n.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&Ht(this.typeaheadState)},n.prototype.setUseActivatedClass=function(e){this.useActivatedClass_=e},n.prototype.setUseSelectedAttribute=function(e){this.useSelectedAttr_=e},n.prototype.getSelectedIndex=function(){return this.selectedIndex_},n.prototype.setSelectedIndex=function(e){this.isIndexValid_(e)&&(this.isCheckboxList_?this.setCheckboxAtIndex_(e):this.isRadioList_?this.setRadioAtIndex_(e):this.setSingleSelectionAtIndex_(e))},n.prototype.handleFocusIn=function(e,t){t>=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},n.prototype.handleFocusOut=function(e,t){var r=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout(function(){r.adapter.isFocusInsideList()||r.setTabindexToFirstSelectedOrFocusedItem()},0)},n.prototype.handleKeydown=function(e,t,r){var o=this,l=te(e)==="ArrowLeft",c=te(e)==="ArrowUp",u=te(e)==="ArrowRight",_=te(e)==="ArrowDown",C=te(e)==="Home",m=te(e)==="End",E=te(e)==="Enter",d=te(e)==="Spacebar",p=e.key==="A"||e.key==="a";if(this.adapter.isRootFocused()){if(c||m?(e.preventDefault(),this.focusLastElement()):(_||C)&&(e.preventDefault(),this.focusFirstElement()),this.hasTypeahead){var v={event:e,focusItemAtIndex:function(f){o.focusItemAtIndex(f)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(f){return o.adapter.listItemAtIndexHasClass(f,g.LIST_ITEM_DISABLED_CLASS)}};St(v,this.typeaheadState)}return}var A=this.adapter.getFocusedElementIndex();if(!(A===-1&&(A=r,A<0))){if(this.isVertical_&&_||!this.isVertical_&&u)Se(e),this.focusNextElement(A);else if(this.isVertical_&&c||!this.isVertical_&&l)Se(e),this.focusPrevElement(A);else if(C)Se(e),this.focusFirstElement();else if(m)Se(e),this.focusLastElement();else if(p&&e.ctrlKey&&this.isCheckboxList_)e.preventDefault(),this.toggleAll(this.selectedIndex_===Z.UNSET_INDEX?[]:this.selectedIndex_);else if((E||d)&&t){var h=e.target;if(h&&h.tagName==="A"&&E||(Se(e),this.adapter.listItemAtIndexHasClass(A,g.LIST_ITEM_DISABLED_CLASS)))return;this.isTypeaheadInProgress()||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(A),this.adapter.notifyAction(A))}if(this.hasTypeahead){var v={event:e,focusItemAtIndex:function(I){o.focusItemAtIndex(I)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(I){return o.adapter.listItemAtIndexHasClass(I,g.LIST_ITEM_DISABLED_CLASS)}};St(v,this.typeaheadState)}}},n.prototype.handleClick=function(e,t){e!==Z.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(e,g.LIST_ITEM_DISABLED_CLASS)||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(e,t),this.adapter.notifyAction(e)))},n.prototype.focusNextElement=function(e){var t=this.adapter.getListItemCount(),r=e+1;if(r>=t)if(this.wrapFocus_)r=0;else return e;return this.focusItemAtIndex(r),r},n.prototype.focusPrevElement=function(e){var t=e-1;if(t<0)if(this.wrapFocus_)t=this.adapter.getListItemCount()-1;else return e;return this.focusItemAtIndex(t),t},n.prototype.focusFirstElement=function(){return this.focusItemAtIndex(0),0},n.prototype.focusLastElement=function(){var e=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(e),e},n.prototype.focusInitialElement=function(){var e=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(e),e},n.prototype.setEnabled=function(e,t){this.isIndexValid_(e)&&(t?(this.adapter.removeClassForElementIndex(e,g.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,U.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,g.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,U.ARIA_DISABLED,"true")))},n.prototype.setSingleSelectionAtIndex_=function(e){if(this.selectedIndex_!==e){var t=g.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass_&&(t=g.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex_!==Z.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex_,t),this.setAriaForSingleSelectionAtIndex_(e),this.setTabindexAtIndex(e),e!==Z.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,t),this.selectedIndex_=e}},n.prototype.setAriaForSingleSelectionAtIndex_=function(e){this.selectedIndex_===Z.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,U.ARIA_CURRENT));var t=this.ariaCurrentAttrValue_!==null,r=t?U.ARIA_CURRENT:U.ARIA_SELECTED;if(this.selectedIndex_!==Z.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,r,"false"),e!==Z.UNSET_INDEX){var o=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,r,o)}},n.prototype.getSelectionAttribute=function(){return this.useSelectedAttr_?U.ARIA_SELECTED:U.ARIA_CHECKED},n.prototype.setRadioAtIndex_=function(e){var t=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),this.selectedIndex_!==Z.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,t,"false"),this.adapter.setAttributeForElementIndex(e,t,"true"),this.selectedIndex_=e},n.prototype.setCheckboxAtIndex_=function(e){for(var t=this.getSelectionAttribute(),r=0;r<this.adapter.getListItemCount();r++){var o=!1;e.indexOf(r)>=0&&(o=!0),this.adapter.setCheckedCheckboxOrRadioAtIndex(r,o),this.adapter.setAttributeForElementIndex(r,t,o?"true":"false")}this.selectedIndex_=e},n.prototype.setTabindexAtIndex=function(e){this.focusedItemIndex===Z.UNSET_INDEX&&e!==0?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==e&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),!(this.selectedIndex_ instanceof Array)&&this.selectedIndex_!==e&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,"tabindex","-1"),e!==Z.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},n.prototype.isSelectableList_=function(){return this.isSingleSelectionList_||this.isCheckboxList_||this.isRadioList_},n.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var e=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(e)},n.prototype.getFirstSelectedOrFocusedItemIndex=function(){var e=this.focusedItemIndex>=0?this.focusedItemIndex:0;return this.isSelectableList_()&&(typeof this.selectedIndex_=="number"&&this.selectedIndex_!==Z.UNSET_INDEX?e=this.selectedIndex_:gn(this.selectedIndex_)&&this.selectedIndex_.length>0&&(e=this.selectedIndex_.reduce(function(t,r){return Math.min(t,r)}))),e},n.prototype.isIndexValid_=function(e){var t=this;if(e instanceof Array){if(!this.isCheckboxList_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return e.length===0?!0:e.some(function(r){return t.isIndexInRange_(r)})}else if(typeof e=="number"){if(this.isCheckboxList_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange_(e)||this.isSingleSelectionList_&&e===Z.UNSET_INDEX}else return!1},n.prototype.isIndexInRange_=function(e){var t=this.adapter.getListItemCount();return e>=0&&e<t},n.prototype.setSelectedIndexOnAction_=function(e,t){t===void 0&&(t=!0),this.isCheckboxList_?this.toggleCheckboxAtIndex_(e,t):this.setSelectedIndex(e)},n.prototype.toggleCheckboxAtIndex_=function(e,t){var r=this.getSelectionAttribute(),o=this.adapter.isCheckboxCheckedAtIndex(e);t&&(o=!o,this.adapter.setCheckedCheckboxOrRadioAtIndex(e,o)),this.adapter.setAttributeForElementIndex(e,r,o?"true":"false");var l=this.selectedIndex_===Z.UNSET_INDEX?[]:this.selectedIndex_.slice();o?l.push(e):l=l.filter(function(c){return c!==e}),this.selectedIndex_=l},n.prototype.focusItemAtIndex=function(e){this.adapter.focusItemAtIndex(e),this.focusedItemIndex=e},n.prototype.toggleAll=function(e){var t=this.adapter.getListItemCount();if(e.length===t)this.setCheckboxAtIndex_([]);else{for(var r=[],o=0;o<t;o++)(!this.adapter.listItemAtIndexHasClass(o,g.LIST_ITEM_DISABLED_CLASS)||e.indexOf(o)>-1)&&r.push(o);this.setCheckboxAtIndex_(r)}},n.prototype.typeaheadMatchItem=function(e,t,r){var o=this;r===void 0&&(r=!1);var l={focusItemAtIndex:function(c){o.focusItemAtIndex(c)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:r,isItemAtIndexDisabled:function(c){return o.adapter.listItemAtIndexHasClass(c,g.LIST_ITEM_DISABLED_CLASS)}};return dt(l,this.typeaheadState)},n.prototype.typeaheadInitSortedIndex=function(){return Tn(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},n.prototype.clearTypeaheadBuffer=function(){Kt(this.typeaheadState)},n}(P.MDCFoundation);/**
289
- * @license
290
- * Copyright 2018 Google Inc.
291
- *
292
- * Permission is hereby granted, free of charge, to any person obtaining a copy
293
- * of this software and associated documentation files (the "Software"), to deal
294
- * in the Software without restriction, including without limitation the rights
295
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
296
- * copies of the Software, and to permit persons to whom the Software is
297
- * furnished to do so, subject to the following conditions:
298
- *
299
- * The above copyright notice and this permission notice shall be included in
300
- * all copies or substantial portions of the Software.
301
- *
302
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
303
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
304
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
305
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
306
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
307
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
308
- * THE SOFTWARE.
309
- */var Ut=function(s){D.__extends(n,s);function n(){return s!==null&&s.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"vertical",{set:function(e){this.foundation.setVerticalOrientation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"listElements",{get:function(){return Array.from(this.root.querySelectorAll("."+this.classNameMap[g.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"wrapFocus",{set:function(e){this.foundation.setWrapFocus(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasTypeahead",{set:function(e){this.foundation.setHasTypeahead(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"singleSelection",{set:function(e){this.foundation.setSingleSelection(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e)},enumerable:!1,configurable:!0}),n.attachTo=function(e){return new n(e)},n.prototype.initialSyncWithDOM=function(){this.isEvolutionEnabled=mn in this.root.dataset,this.isEvolutionEnabled?this.classNameMap=hn:P.matches(this.root,U.DEPRECATED_SELECTOR)?this.classNameMap=be:this.classNameMap=Object.values(g).reduce(function(e,t){return e[t]=t,e},{}),this.handleClick=this.handleClickEvent.bind(this),this.handleKeydown=this.handleKeydownEvent.bind(this),this.focusInEventListener=this.handleFocusInEvent.bind(this),this.focusOutEventListener=this.handleFocusOutEvent.bind(this),this.listen("keydown",this.handleKeydown),this.listen("click",this.handleClick),this.listen("focusin",this.focusInEventListener),this.listen("focusout",this.focusOutEventListener),this.layout(),this.initializeListType(),this.ensureFocusable()},n.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},n.prototype.layout=function(){var e=this.root.getAttribute(U.ARIA_ORIENTATION);this.vertical=e!==U.ARIA_ORIENTATION_HORIZONTAL;var t="."+this.classNameMap[g.LIST_ITEM_CLASS]+":not([tabindex])",r=U.FOCUSABLE_CHILD_ELEMENTS,o=this.root.querySelectorAll(t);o.length&&Array.prototype.forEach.call(o,function(c){c.setAttribute("tabindex","-1")});var l=this.root.querySelectorAll(r);l.length&&Array.prototype.forEach.call(l,function(c){c.setAttribute("tabindex","-1")}),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout()},n.prototype.getPrimaryText=function(e){var t,r=e.querySelector("."+this.classNameMap[g.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||r)return(t=r?.textContent)!==null&&t!==void 0?t:"";var o=e.querySelector("."+this.classNameMap[g.LIST_ITEM_TEXT_CLASS]);return o&&o.textContent||""},n.prototype.initializeListType=function(){var e=this;if(this.isInteractive=P.matches(this.root,U.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var t=Array.from(this.root.querySelectorAll(U.SELECTED_ITEM_SELECTOR),function(c){return e.listElements.indexOf(c)});P.matches(this.root,U.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=t:t.length>0&&(this.selectedIndex=t[0]);return}var r=this.root.querySelectorAll(U.ARIA_ROLE_CHECKBOX_SELECTOR),o=this.root.querySelector(U.ARIA_CHECKED_RADIO_SELECTOR);if(r.length){var l=this.root.querySelectorAll(U.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(l,function(c){return e.listElements.indexOf(c)})}else o&&(this.selectedIndex=this.listElements.indexOf(o))},n.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},n.prototype.typeaheadMatchItem=function(e,t){return this.foundation.typeaheadMatchItem(e,t,!0)},n.prototype.getDefaultFoundation=function(){var e=this,t={addClassForElementIndex:function(r,o){var l=e.listElements[r];l&&l.classList.add(e.classNameMap[o])},focusItemAtIndex:function(r){var o=e.listElements[r];o&&o.focus()},getAttributeForElementIndex:function(r,o){return e.listElements[r].getAttribute(o)},getFocusedElementIndex:function(){return e.listElements.indexOf(document.activeElement)},getListItemCount:function(){return e.listElements.length},getPrimaryTextAtIndex:function(r){return e.getPrimaryText(e.listElements[r])},hasCheckboxAtIndex:function(r){var o=e.listElements[r];return!!o.querySelector(U.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(r){var o=e.listElements[r];return!!o.querySelector(U.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(r){var o=e.listElements[r],l=o.querySelector(U.CHECKBOX_SELECTOR);return l.checked},isFocusInsideList:function(){return e.root!==document.activeElement&&e.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===e.root},listItemAtIndexHasClass:function(r,o){return e.listElements[r].classList.contains(e.classNameMap[o])},notifyAction:function(r){e.emit(U.ACTION_EVENT,{index:r},!0)},removeClassForElementIndex:function(r,o){var l=e.listElements[r];l&&l.classList.remove(e.classNameMap[o])},setAttributeForElementIndex:function(r,o,l){var c=e.listElements[r];c&&c.setAttribute(o,l)},setCheckedCheckboxOrRadioAtIndex:function(r,o){var l=e.listElements[r],c=l.querySelector(U.CHECKBOX_RADIO_SELECTOR);c.checked=o;var u=document.createEvent("Event");u.initEvent("change",!0,!0),c.dispatchEvent(u)},setTabIndexForListItemChildren:function(r,o){var l=e.listElements[r],c=U.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;Array.prototype.forEach.call(l.querySelectorAll(c),function(u){u.setAttribute("tabindex",o)})}};return new ut(t)},n.prototype.ensureFocusable=function(){if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[g.LIST_ITEM_CLASS]+'[tabindex="0"]')){var e=this.initialFocusIndex();e!==-1&&(this.listElements[e].tabIndex=0)}},n.prototype.initialFocusIndex=function(){if(this.selectedIndex instanceof Array&&this.selectedIndex.length>0)return this.selectedIndex[0];if(typeof this.selectedIndex=="number"&&this.selectedIndex!==Z.UNSET_INDEX)return this.selectedIndex;var e=this.root.querySelector("."+this.classNameMap[g.LIST_ITEM_CLASS]+":not(."+this.classNameMap[g.LIST_ITEM_DISABLED_CLASS]+")");return e===null?-1:this.getListItemIndex(e)},n.prototype.getListItemIndex=function(e){var t=P.closest(e,"."+this.classNameMap[g.LIST_ITEM_CLASS]+", ."+this.classNameMap[g.ROOT]);return t&&P.matches(t,"."+this.classNameMap[g.LIST_ITEM_CLASS])?this.listElements.indexOf(t):-1},n.prototype.handleFocusInEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusIn(e,t)},n.prototype.handleFocusOutEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusOut(e,t)},n.prototype.handleKeydownEvent=function(e){var t=this.getListItemIndex(e.target),r=e.target;this.foundation.handleKeydown(e,r.classList.contains(this.classNameMap[g.LIST_ITEM_CLASS]),t)},n.prototype.handleClickEvent=function(e){var t=this.getListItemIndex(e.target),r=e.target,o=!P.matches(r,U.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,o)},n}(P.MDCComponent);/**
310
- * @license
311
- * Copyright 2018 Google Inc.
312
- *
313
- * Permission is hereby granted, free of charge, to any person obtaining a copy
314
- * of this software and associated documentation files (the "Software"), to deal
315
- * in the Software without restriction, including without limitation the rights
316
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
317
- * copies of the Software, and to permit persons to whom the Software is
318
- * furnished to do so, subject to the following conditions:
319
- *
320
- * The above copyright notice and this permission notice shall be included in
321
- * all copies or substantial portions of the Software.
322
- *
323
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
324
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
325
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
326
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
327
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
328
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
329
- * THE SOFTWARE.
330
- */var xe=function(s){D.__extends(n,s);function n(e){var t=s.call(this,D.__assign(D.__assign({},n.defaultAdapter),e))||this;return t.isSurfaceOpen=!1,t.isQuickOpen=!1,t.isHoistedElement=!1,t.isFixedPosition=!1,t.isHorizontallyCenteredOnViewport=!1,t.maxHeight=0,t.openAnimationEndTimerId=0,t.closeAnimationEndTimerId=0,t.animationRequestId=0,t.anchorCorner=Ne.TOP_START,t.originCorner=Ne.TOP_START,t.anchorMargin={top:0,right:0,bottom:0,left:0},t.position={x:0,y:0},t}return Object.defineProperty(n,"cssClasses",{get:function(){return Fe},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return Be},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return Ve},enumerable:!1,configurable:!0}),Object.defineProperty(n,"Corner",{get:function(){return Ne},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyOpen:function(){},notifyClosing:function(){}}},enumerable:!1,configurable:!0}),n.prototype.init=function(){var e=n.cssClasses,t=e.ROOT,r=e.OPEN;if(!this.adapter.hasClass(t))throw new Error(t+" class required in root element.");this.adapter.hasClass(r)&&(this.isSurfaceOpen=!0)},n.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},n.prototype.setAnchorCorner=function(e){this.anchorCorner=e},n.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^q.RIGHT},n.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},n.prototype.setIsHoisted=function(e){this.isHoistedElement=e},n.prototype.setFixedPosition=function(e){this.isFixedPosition=e},n.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},n.prototype.setIsHorizontallyCenteredOnViewport=function(e){this.isHorizontallyCenteredOnViewport=e},n.prototype.setQuickOpen=function(e){this.isQuickOpen=e},n.prototype.setMaxHeight=function(e){this.maxHeight=e},n.prototype.isOpen=function(){return this.isSurfaceOpen},n.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(n.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(n.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){e.adapter.addClass(n.cssClasses.OPEN),e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.openAnimationEndTimerId=setTimeout(function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(n.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()},Ve.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},n.prototype.close=function(e){var t=this;if(e===void 0&&(e=!1),!!this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen){this.isSurfaceOpen=!1,e||this.maybeRestoreFocus(),this.adapter.removeClass(n.cssClasses.OPEN),this.adapter.removeClass(n.cssClasses.IS_OPEN_BELOW),this.adapter.notifyClose();return}this.adapter.addClass(n.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){t.adapter.removeClass(n.cssClasses.OPEN),t.adapter.removeClass(n.cssClasses.IS_OPEN_BELOW),t.closeAnimationEndTimerId=setTimeout(function(){t.closeAnimationEndTimerId=0,t.adapter.removeClass(n.cssClasses.ANIMATING_CLOSED),t.adapter.notifyClose()},Ve.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()}},n.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},n.prototype.handleKeydown=function(e){var t=e.keyCode,r=e.key,o=r==="Escape"||t===27;o&&this.close()},n.prototype.autoposition=function(){var e;this.measurements=this.getAutoLayoutmeasurements();var t=this.getoriginCorner(),r=this.getMenuSurfaceMaxHeight(t),o=this.hasBit(t,q.BOTTOM)?"bottom":"top",l=this.hasBit(t,q.RIGHT)?"right":"left",c=this.getHorizontalOriginOffset(t),u=this.getVerticalOriginOffset(t),_=this.measurements,C=_.anchorSize,m=_.surfaceSize,E=(e={},e[l]=c,e[o]=u,e);C.width/m.width>Ve.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(l="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(E),this.adapter.setTransformOrigin(l+" "+o),this.adapter.setPosition(E),this.adapter.setMaxHeight(r?r+"px":""),this.hasBit(t,q.BOTTOM)||this.adapter.addClass(n.cssClasses.IS_OPEN_BELOW)},n.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),r=this.adapter.getWindowDimensions(),o=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:r.width-e.right,bottom:r.height-e.bottom,left:e.left},viewportSize:r,windowScroll:o}},n.prototype.getoriginCorner=function(){var e=this.originCorner,t=this.measurements,r=t.viewportDistance,o=t.anchorSize,l=t.surfaceSize,c=n.numbers.MARGIN_TO_EDGE,u=this.hasBit(this.anchorCorner,q.BOTTOM),_,C;u?(_=r.top-c+this.anchorMargin.bottom,C=r.bottom-c-this.anchorMargin.bottom):(_=r.top-c+this.anchorMargin.top,C=r.bottom-c+o.height-this.anchorMargin.top);var m=C-l.height>0;!m&&_>C&&(e=this.setBit(e,q.BOTTOM));var E=this.adapter.isRtl(),d=this.hasBit(this.anchorCorner,q.FLIP_RTL),p=this.hasBit(this.anchorCorner,q.RIGHT)||this.hasBit(e,q.RIGHT),v=!1;E&&d?v=!p:v=p;var A,h;v?(A=r.left+o.width+this.anchorMargin.right,h=r.right-this.anchorMargin.right):(A=r.left+this.anchorMargin.left,h=r.right+o.width-this.anchorMargin.left);var f=A-l.width>0,I=h-l.width>0,b=this.hasBit(e,q.FLIP_RTL)&&this.hasBit(e,q.RIGHT);return I&&b&&E||!f&&b?e=this.unsetBit(e,q.RIGHT):(f&&v&&E||f&&!v&&p||!I&&A>=h)&&(e=this.setBit(e,q.RIGHT)),e},n.prototype.getMenuSurfaceMaxHeight=function(e){if(this.maxHeight>0)return this.maxHeight;var t=this.measurements.viewportDistance,r=0,o=this.hasBit(e,q.BOTTOM),l=this.hasBit(this.anchorCorner,q.BOTTOM),c=n.numbers.MARGIN_TO_EDGE;return o?(r=t.top+this.anchorMargin.top-c,l||(r+=this.measurements.anchorSize.height)):(r=t.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-c,l&&(r-=this.measurements.anchorSize.height)),r},n.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,r=this.hasBit(e,q.RIGHT),o=this.hasBit(this.anchorCorner,q.RIGHT);if(r){var l=o?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?l-(this.measurements.viewportSize.width-this.measurements.bodySize.width):l}return o?t.width-this.anchorMargin.right:this.anchorMargin.left},n.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,r=this.hasBit(e,q.BOTTOM),o=this.hasBit(this.anchorCorner,q.BOTTOM),l=0;return r?l=o?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:l=o?t.height+this.anchorMargin.bottom:this.anchorMargin.top,l},n.prototype.adjustPositionForHoistedElement=function(e){var t,r,o=this.measurements,l=o.windowScroll,c=o.viewportDistance,u=o.surfaceSize,_=o.viewportSize,C=Object.keys(e);try{for(var m=D.__values(C),E=m.next();!E.done;E=m.next()){var d=E.value,p=e[d]||0;if(this.isHorizontallyCenteredOnViewport&&(d==="left"||d==="right")){e[d]=(_.width-u.width)/2;continue}p+=c[d],this.isFixedPosition||(d==="top"?p+=l.y:d==="bottom"?p-=l.y:d==="left"?p+=l.x:p-=l.x),e[d]=p}}catch(v){t={error:v}}finally{try{E&&!E.done&&(r=m.return)&&r.call(m)}finally{if(t)throw t.error}}},n.prototype.maybeRestoreFocus=function(){var e=this.adapter.isFocused(),t=document.activeElement&&this.adapter.isElementInContainer(document.activeElement);(e||t)&&this.adapter.restoreFocus()},n.prototype.hasBit=function(e,t){return!!(e&t)},n.prototype.setBit=function(e,t){return e|t},n.prototype.unsetBit=function(e,t){return e^t},n.prototype.isFinite=function(e){return typeof e=="number"&&isFinite(e)},n}(P.MDCFoundation);/**
331
- * @license
332
- * Copyright 2018 Google Inc.
333
- *
334
- * Permission is hereby granted, free of charge, to any person obtaining a copy
335
- * of this software and associated documentation files (the "Software"), to deal
336
- * in the Software without restriction, including without limitation the rights
337
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
338
- * copies of the Software, and to permit persons to whom the Software is
339
- * furnished to do so, subject to the following conditions:
340
- *
341
- * The above copyright notice and this permission notice shall be included in
342
- * all copies or substantial portions of the Software.
343
- *
344
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
345
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
346
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
347
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
348
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
349
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
350
- * THE SOFTWARE.
351
- */var Gt=function(s){D.__extends(n,s);function n(){return s!==null&&s.apply(this,arguments)||this}return n.attachTo=function(e){return new n(e)},n.prototype.initialSyncWithDOM=function(){var e=this,t=this.root.parentElement;this.anchorElement=t&&t.classList.contains(Fe.ANCHOR)?t:null,this.root.classList.contains(Fe.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(r){e.foundation.handleKeydown(r)},this.handleBodyClick=function(r){e.foundation.handleBodyClick(r)},this.registerBodyClickListener=function(){document.body.addEventListener("click",e.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function(){document.body.removeEventListener("click",e.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(Be.OPENED_EVENT,this.registerBodyClickListener),this.listen(Be.CLOSED_EVENT,this.deregisterBodyClickListener)},n.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(Be.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(Be.CLOSED_EVENT,this.deregisterBodyClickListener),s.prototype.destroy.call(this)},n.prototype.isOpen=function(){return this.foundation.isOpen()},n.prototype.open=function(){this.foundation.open()},n.prototype.close=function(e){e===void 0&&(e=!1),this.foundation.close(e)},Object.defineProperty(n.prototype,"quickOpen",{set:function(e){this.foundation.setQuickOpen(e)},enumerable:!1,configurable:!0}),n.prototype.setIsHoisted=function(e){this.foundation.setIsHoisted(e)},n.prototype.setMenuSurfaceAnchorElement=function(e){this.anchorElement=e},n.prototype.setFixedPosition=function(e){e?this.root.classList.add(Fe.FIXED):this.root.classList.remove(Fe.FIXED),this.foundation.setFixedPosition(e)},n.prototype.setAbsolutePosition=function(e,t){this.foundation.setAbsolutePosition(e,t),this.setIsHoisted(!0)},n.prototype.setAnchorCorner=function(e){this.foundation.setAnchorCorner(e)},n.prototype.setAnchorMargin=function(e){this.foundation.setAnchorMargin(e)},n.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(r){return e.root.classList.add(r)},removeClass:function(r){return e.root.classList.remove(r)},hasClass:function(r){return e.root.classList.contains(r)},hasAnchor:function(){return!!e.anchorElement},notifyClose:function(){return e.emit(xe.strings.CLOSED_EVENT,{})},notifyClosing:function(){e.emit(xe.strings.CLOSING_EVENT,{})},notifyOpen:function(){return e.emit(xe.strings.OPENED_EVENT,{})},isElementInContainer:function(r){return e.root.contains(r)},isRtl:function(){return getComputedStyle(e.root).getPropertyValue("direction")==="rtl"},setTransformOrigin:function(r){var o=cn(window,"transform")+"-origin";e.root.style.setProperty(o,r)},isFocused:function(){return document.activeElement===e.root},saveFocus:function(){e.previousFocus=document.activeElement},restoreFocus:function(){e.root.contains(document.activeElement)&&e.previousFocus&&e.previousFocus.focus&&e.previousFocus.focus()},getInnerDimensions:function(){return{width:e.root.offsetWidth,height:e.root.offsetHeight}},getAnchorDimensions:function(){return e.anchorElement?e.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(r){var o=e.root;o.style.left="left"in r?r.left+"px":"",o.style.right="right"in r?r.right+"px":"",o.style.top="top"in r?r.top+"px":"",o.style.bottom="bottom"in r?r.bottom+"px":""},setMaxHeight:function(r){e.root.style.maxHeight=r}};return new xe(t)},n}(P.MDCComponent);/**
352
- * @license
353
- * Copyright 2018 Google Inc.
354
- *
355
- * Permission is hereby granted, free of charge, to any person obtaining a copy
356
- * of this software and associated documentation files (the "Software"), to deal
357
- * in the Software without restriction, including without limitation the rights
358
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
359
- * copies of the Software, and to permit persons to whom the Software is
360
- * furnished to do so, subject to the following conditions:
361
- *
362
- * The above copyright notice and this permission notice shall be included in
363
- * all copies or substantial portions of the Software.
364
- *
365
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
366
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
367
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
368
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
369
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
370
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
371
- * THE SOFTWARE.
372
- */var Re={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},Ce={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected"},Cn={FOCUS_ROOT_INDEX:-1},Le;(function(s){s[s.NONE=0]="NONE",s[s.LIST_ROOT=1]="LIST_ROOT",s[s.FIRST_ITEM=2]="FIRST_ITEM",s[s.LAST_ITEM=3]="LAST_ITEM"})(Le||(Le={}));/**
373
- * @license
374
- * Copyright 2018 Google Inc.
375
- *
376
- * Permission is hereby granted, free of charge, to any person obtaining a copy
377
- * of this software and associated documentation files (the "Software"), to deal
378
- * in the Software without restriction, including without limitation the rights
379
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
380
- * copies of the Software, and to permit persons to whom the Software is
381
- * furnished to do so, subject to the following conditions:
382
- *
383
- * The above copyright notice and this permission notice shall be included in
384
- * all copies or substantial portions of the Software.
385
- *
386
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
387
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
388
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
389
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
390
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
391
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
392
- * THE SOFTWARE.
393
- */var vn=function(s){D.__extends(n,s);function n(e){var t=s.call(this,D.__assign(D.__assign({},n.defaultAdapter),e))||this;return t.closeAnimationEndTimerId_=0,t.defaultFocusState_=Le.LIST_ROOT,t}return Object.defineProperty(n,"cssClasses",{get:function(){return Re},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return Ce},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return Cn},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),n.prototype.destroy=function(){this.closeAnimationEndTimerId_&&clearTimeout(this.closeAnimationEndTimerId_),this.adapter.closeSurface()},n.prototype.handleKeydown=function(e){var t=e.key,r=e.keyCode,o=t==="Tab"||r===9;o&&this.adapter.closeSurface(!0)},n.prototype.handleItemAction=function(e){var t=this,r=this.adapter.getElementIndex(e);r<0||(this.adapter.notifySelected({index:r}),this.adapter.closeSurface(),this.closeAnimationEndTimerId_=setTimeout(function(){var o=t.adapter.getElementIndex(e);o>=0&&t.adapter.isSelectableItemAtIndex(o)&&t.setSelectedIndex(o)},xe.numbers.TRANSITION_CLOSE_DURATION))},n.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState_){case Le.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case Le.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case Le.NONE:break;default:this.adapter.focusListRoot();break}},n.prototype.setDefaultFocusState=function(e){this.defaultFocusState_=e},n.prototype.setSelectedIndex=function(e){if(this.validatedIndex_(e),!this.adapter.isSelectableItemAtIndex(e))throw new Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,Ce.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,Re.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,Re.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,Ce.ARIA_CHECKED_ATTR,"true")},n.prototype.setEnabled=function(e,t){this.validatedIndex_(e),t?(this.adapter.removeClassFromElementAtIndex(e,g.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,Ce.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,g.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,Ce.ARIA_DISABLED_ATTR,"true"))},n.prototype.validatedIndex_=function(e){var t=this.adapter.getMenuItemCount(),r=e>=0&&e<t;if(!r)throw new Error("MDCMenuFoundation: No list item at specified index.")},n}(P.MDCFoundation);/**
394
- * @license
395
- * Copyright 2018 Google Inc.
396
- *
397
- * Permission is hereby granted, free of charge, to any person obtaining a copy
398
- * of this software and associated documentation files (the "Software"), to deal
399
- * in the Software without restriction, including without limitation the rights
400
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
401
- * copies of the Software, and to permit persons to whom the Software is
402
- * furnished to do so, subject to the following conditions:
403
- *
404
- * The above copyright notice and this permission notice shall be included in
405
- * all copies or substantial portions of the Software.
406
- *
407
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
408
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
409
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
410
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
411
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
412
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
413
- * THE SOFTWARE.
414
- */var An=function(s){D.__extends(n,s);function n(){return s!==null&&s.apply(this,arguments)||this}return n.attachTo=function(e){return new n(e)},n.prototype.initialize=function(e,t){e===void 0&&(e=function(r){return new Gt(r)}),t===void 0&&(t=function(r){return new Ut(r)}),this.menuSurfaceFactory_=e,this.listFactory_=t},n.prototype.initialSyncWithDOM=function(){var e=this;this.menuSurface_=this.menuSurfaceFactory_(this.root);var t=this.root.querySelector(Ce.LIST_SELECTOR);t?(this.list_=this.listFactory_(t),this.list_.wrapFocus=!0):this.list_=null,this.handleKeydown_=function(r){return e.foundation.handleKeydown(r)},this.handleItemAction_=function(r){return e.foundation.handleItemAction(e.items[r.detail.index])},this.handleMenuSurfaceOpened_=function(){return e.foundation.handleMenuSurfaceOpened()},this.menuSurface_.listen(xe.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.listen("keydown",this.handleKeydown_),this.listen(ut.strings.ACTION_EVENT,this.handleItemAction_)},n.prototype.destroy=function(){this.list_&&this.list_.destroy(),this.menuSurface_.destroy(),this.menuSurface_.unlisten(xe.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.unlisten("keydown",this.handleKeydown_),this.unlisten(ut.strings.ACTION_EVENT,this.handleItemAction_),s.prototype.destroy.call(this)},Object.defineProperty(n.prototype,"open",{get:function(){return this.menuSurface_.isOpen()},set:function(e){e?this.menuSurface_.open():this.menuSurface_.close()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"wrapFocus",{get:function(){return this.list_?this.list_.wrapFocus:!1},set:function(e){this.list_&&(this.list_.wrapFocus=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasTypeahead",{set:function(e){this.list_&&(this.list_.hasTypeahead=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"typeaheadInProgress",{get:function(){return this.list_?this.list_.typeaheadInProgress:!1},enumerable:!1,configurable:!0}),n.prototype.typeaheadMatchItem=function(e,t){return this.list_?this.list_.typeaheadMatchItem(e,t):-1},n.prototype.layout=function(){this.list_&&this.list_.layout()},Object.defineProperty(n.prototype,"items",{get:function(){return this.list_?this.list_.listElements:[]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"singleSelection",{set:function(e){this.list_&&(this.list_.singleSelection=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this.list_?this.list_.selectedIndex:Z.UNSET_INDEX},set:function(e){this.list_&&(this.list_.selectedIndex=e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"quickOpen",{set:function(e){this.menuSurface_.quickOpen=e},enumerable:!1,configurable:!0}),n.prototype.setDefaultFocusState=function(e){this.foundation.setDefaultFocusState(e)},n.prototype.setAnchorCorner=function(e){this.menuSurface_.setAnchorCorner(e)},n.prototype.setAnchorMargin=function(e){this.menuSurface_.setAnchorMargin(e)},n.prototype.setSelectedIndex=function(e){this.foundation.setSelectedIndex(e)},n.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},n.prototype.getOptionByIndex=function(e){var t=this.items;return e<t.length?this.items[e]:null},n.prototype.getPrimaryTextAtIndex=function(e){var t=this.getOptionByIndex(e);return t&&this.list_&&this.list_.getPrimaryText(t)||""},n.prototype.setFixedPosition=function(e){this.menuSurface_.setFixedPosition(e)},n.prototype.setIsHoisted=function(e){this.menuSurface_.setIsHoisted(e)},n.prototype.setAbsolutePosition=function(e,t){this.menuSurface_.setAbsolutePosition(e,t)},n.prototype.setAnchorElement=function(e){this.menuSurface_.anchorElement=e},n.prototype.getDefaultFoundation=function(){var e=this,t={addClassToElementAtIndex:function(r,o){var l=e.items;l[r].classList.add(o)},removeClassFromElementAtIndex:function(r,o){var l=e.items;l[r].classList.remove(o)},addAttributeToElementAtIndex:function(r,o,l){var c=e.items;c[r].setAttribute(o,l)},removeAttributeFromElementAtIndex:function(r,o){var l=e.items;l[r].removeAttribute(o)},elementContainsClass:function(r,o){return r.classList.contains(o)},closeSurface:function(r){return e.menuSurface_.close(r)},getElementIndex:function(r){return e.items.indexOf(r)},notifySelected:function(r){return e.emit(Ce.SELECTED_EVENT,{index:r.index,item:e.items[r.index]})},getMenuItemCount:function(){return e.items.length},focusItemAtIndex:function(r){return e.items[r].focus()},focusListRoot:function(){return e.root.querySelector(Ce.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(r){return!!P.closest(e.items[r],"."+Re.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(r){var o=P.closest(e.items[r],"."+Re.MENU_SELECTION_GROUP),l=o.querySelector("."+Re.MENU_SELECTED_LIST_ITEM);return l?e.items.indexOf(l):-1}};return new vn(t)},n}(P.MDCComponent);const bn={absolutePositionX:i.PropTypes.number,absolutePositionY:i.PropTypes.number,anchorCorner:i.PropTypes.oneOf(["TOP_LEFT","TOP_RIGHT","BOTTOM_LEFT","BOTTOM_RIGHT","TOP_START","TOP_END","BOTTOM_START","BOTTOM_END"]),anchorMargin:i.PropTypes.object,anchorProps:i.PropTypes.object,children:i.PropTypes.node,direction:i.PropTypes.oneOf(["ltr","rtl"]),fixed:i.PropTypes.bool,fullScreen:i.PropTypes.bool,fullWidth:i.PropTypes.bool,handleBodyClick:i.PropTypes.func,hoistToBody:i.PropTypes.bool,maxHeight:i.PropTypes.number,onClose:i.PropTypes.func,onOpen:i.PropTypes.func,onSelect:i.PropTypes.func,open:i.PropTypes.bool,style:i.PropTypes.object,surfaceOnly:i.PropTypes.bool,themeColor:i.PropTypes.oneOf(["surface","primary","secondary"]),trigger:i.PropTypes.node,wrapFocus:i.PropTypes.bool},Sn={absolutePositionX:null,absolutePositionY:null,anchorCorner:"BOTTOM_START",anchorMargin:null,anchorProps:{},children:null,direction:"ltr",fixed:!1,fullScreen:!1,fullWidth:!1,hoistToBody:!1,maxHeight:275,open:!1,style:null,surfaceOnly:!1,themeColor:"surface",trigger:null,wrapFocus:!0},xn={children:i.PropTypes.node},On={children:null},Ze=a.forwardRef((s,n)=>{const{children:e,className:t,...r}=s;return a.createElement("div",i._extends({ref:n,className:i.clsx("lmnt","mdc-menu-surface--anchor",t)},r),e)});Ze.displayName="MenuAnchor";Ze.propTypes=xn;Ze.defaultProps=On;const ht=a.createContext({}),Pn=(s,n,e)=>t=>a.createElement(Ze,i._extends({},s,{ref:e}),n,t),Ln=s=>n=>a.createElement(Xt.Portal$1,{disabled:!s},n),mt=a.forwardRef((s,n)=>{const{absolutePositionX:e,absolutePositionY:t,anchorCorner:r,anchorMargin:o,anchorProps:l,children:c,className:u,direction:_,fixed:C,fullScreen:m,fullWidth:E,handleBodyClick:d,hoistToBody:p,iconMenu:v,id:A,maxHeight:h,onClose:f,onOpen:I,onSelect:b,open:w,quickOpen:X,style:ee,surfaceOnly:x,themeColor:K,trigger:j,unexposed:H,wrapFocus:Y,...ie}=s,[Ae]=a.useState(()=>A||i.edsRandomId()),[he,me]=a.useState(),k=a.useRef(),y=a.useRef(),ue=a.useRef();a.useImperativeHandle(n,()=>k.current,[]);const z=a.useCallback(Q=>{const O=x?y.current.foundation.getoriginCorner():y.current.menuSurface_.foundation.getoriginCorner(),N=x&&y.current.foundation.hasBit(O,q.BOTTOM)||!x&&y.current.menuSurface_.foundation.hasBit(O,q.BOTTOM)?"bottom":"top";me(N==="bottom"),I&&I(Q)},[I,x]),G=a.useCallback(Q=>{b&&b(Q.detail)},[b]);a.useEffect(()=>(y.current=x?Gt.attachTo(k.current):An.attachTo(k.current),()=>{y.current.destroy()}),[x]),a.useEffect(()=>(x||y.current.listen("MDCMenu:selected",G),()=>{x||y.current.unlisten("MDCMenu:selected",G)}),[G,x]),a.useEffect(()=>(y.current.listen("MDCMenuSurface:closed",f),()=>{y.current.unlisten("MDCMenuSurface:closed",f)}),[f]),a.useEffect(()=>(y.current.listen("MDCMenuSurface:opened",z),()=>{y.current.unlisten("MDCMenuSurface:opened",z)}),[z]),a.useEffect(()=>{x?y.current.foundation.setMaxHeight(h):y.current.menuSurface_.foundation.setMaxHeight(h)},[h,x]),a.useEffect(()=>{o&&(x?y.current.foundation.setAnchorMargin(o):y.current.menuSurface_.foundation.setAnchorMargin(o))},[o,x]),a.useEffect(()=>{d&&(y.current.handleBodyClick=d)},[d]),a.useEffect(()=>{(!C&&e&&e>-1||!C&&t&&t>-1)&&(y.current.setAbsolutePosition(e,t),y.current.foundation.getAutoLayoutmeasurements().surfaceSize&&y.current.foundation.autoposition())},[e,t,C]),a.useEffect(()=>{y.current.setFixedPosition(C)},[C]),a.useEffect(()=>{y.current.wrapFocus=Y},[Y]),a.useEffect(()=>{r&&!(e||t)&&y.current.setAnchorCorner(Ne[r.toUpperCase()])},[y,r,e,t]),a.useEffect(()=>{y.current.setIsHoisted(p),x?y.current.setMenuSurfaceAnchorElement(ue.current):y.current.setAnchorElement(ue.current)},[p,x,j]),a.useEffect(()=>{y.current.quickOpen=X},[X]),a.useEffect(()=>{w?!x&&!y.current.open?y.current.open=w:y.current.foundation.isSurfaceOpen||y.current.open():!x&&y.current.open?y.current.open=!1:y.current.foundation.isSurfaceOpen&&y.current.close()},[y,w,x]);const B=a.useMemo(()=>({inMenu:!0}),[]),se=a.useMemo(()=>{var Q,O;return i.clsx("lmnt","mdc-menu-surface","lmnt-menu-container",(x&&((Q=y.current)===null||Q===void 0?void 0:Q.foundation.isOpen())||!x&&((O=y.current)===null||O===void 0?void 0:O.menuSurface_.foundation.isOpen()))&&"mdc-menu-surface--open",he&&"lmnt-menu-open-up",!x&&"mdc-menu",!p&&E&&"mdc-menu-surface--fullwidth",p&&m&&"lmnt-menu-surface--fullScreen",`lmnt-theme-${K}-bg`,u)},[u,m,E,p,he,x,K]),J=a.useMemo(()=>Pn(l,j,ue),[l,j]),oe=a.useMemo(()=>Ln(p),[p]),pe=a.useMemo(()=>({...ee,direction:_}),[ee,_]);return a.createElement(i.ConditionalWrapper,{condition:j,wrapper:J},a.createElement(i.ConditionalWrapper,{condition:p,wrapper:oe},a.createElement("div",i._extends({ref:k,id:Ae,style:pe,className:se,tabIndex:"-1"},ie),a.createElement(ht.Provider,{value:B},c))))});mt.displayName="Menu";mt.propTypes=bn;mt.defaultProps=Sn;function Nn(s,n){for(var e=-1,t=n.length,r=s.length;++e<t;)s[r+e]=n[e];return s}var Rn=Nn,Dn=Rn,Mn=i.isArray_1;function kn(s,n,e){var t=n(s);return Mn(s)?t:Dn(t,e(s))}var wn=kn;function Fn(s,n){for(var e=-1,t=s==null?0:s.length,r=0,o=[];++e<t;){var l=s[e];n(l,e,s)&&(o[r++]=l)}return o}var Bn=Fn;function Hn(){return[]}var Kn=Hn,Un=Bn,Gn=Kn,Wn=Object.prototype,jn=Wn.propertyIsEnumerable,xt=Object.getOwnPropertySymbols,$n=xt?function(s){return s==null?[]:(s=Object(s),Un(xt(s),function(n){return jn.call(s,n)}))}:Gn,qn=$n,Vn=i._overArg,Xn=Vn(Object.keys,Object),zn=Xn,Yn=i._isPrototype,Qn=zn,Zn=Object.prototype,Jn=Zn.hasOwnProperty;function er(s){if(!Yn(s))return Qn(s);var n=[];for(var e in Object(s))Jn.call(s,e)&&e!="constructor"&&n.push(e);return n}var tr=er,nr=i._arrayLikeKeys,rr=tr,ir=i.isArrayLike_1;function sr(s){return ir(s)?nr(s):rr(s)}var Wt=sr,or=wn,ar=qn,lr=Wt;function cr(s){return or(s,lr,ar)}var dr=cr,Ot=dr,ur=1,pr=Object.prototype,fr=pr.hasOwnProperty;function hr(s,n,e,t,r,o){var l=e&ur,c=Ot(s),u=c.length,_=Ot(n),C=_.length;if(u!=C&&!l)return!1;for(var m=u;m--;){var E=c[m];if(!(l?E in n:fr.call(n,E)))return!1}var d=o.get(s),p=o.get(n);if(d&&p)return d==n&&p==s;var v=!0;o.set(s,n),o.set(n,s);for(var A=l;++m<u;){E=c[m];var h=s[E],f=n[E];if(t)var I=l?t(f,h,E,n,s,o):t(h,f,E,s,n,o);if(!(I===void 0?h===f||r(h,f,e,t,o):I)){v=!1;break}A||(A=E=="constructor")}if(v&&!A){var b=s.constructor,w=n.constructor;b!=w&&"constructor"in s&&"constructor"in n&&!(typeof b=="function"&&b instanceof b&&typeof w=="function"&&w instanceof w)&&(v=!1)}return o.delete(s),o.delete(n),v}var mr=hr,lt=i._Stack,Er=pt._equalArrays,yr=pt._equalByTag,Tr=mr,Pt=pt._getTag,Lt=i.isArray_1,Nt=i.isBufferExports,_r=i.isTypedArray_1,Ir=1,Rt="[object Arguments]",Dt="[object Array]",Xe="[object Object]",gr=Object.prototype,Mt=gr.hasOwnProperty;function Cr(s,n,e,t,r,o){var l=Lt(s),c=Lt(n),u=l?Dt:Pt(s),_=c?Dt:Pt(n);u=u==Rt?Xe:u,_=_==Rt?Xe:_;var C=u==Xe,m=_==Xe,E=u==_;if(E&&Nt(s)){if(!Nt(n))return!1;l=!0,C=!1}if(E&&!C)return o||(o=new lt),l||_r(s)?Er(s,n,e,t,r,o):yr(s,n,u,e,t,r,o);if(!(e&Ir)){var d=C&&Mt.call(s,"__wrapped__"),p=m&&Mt.call(n,"__wrapped__");if(d||p){var v=d?s.value():s,A=p?n.value():n;return o||(o=new lt),r(v,A,e,t,o)}}return E?(o||(o=new lt),Tr(s,n,e,t,r,o)):!1}var vr=Cr,Ar=vr,kt=i.isObjectLike_1;function jt(s,n,e,t,r){return s===n?!0:s==null||n==null||!kt(s)&&!kt(n)?s!==s&&n!==n:Ar(s,n,e,t,jt,r)}var $t=jt,br=$t;function Sr(s,n){return br(s,n)}var xr=Sr;const Or=zt.getDefaultExportFromCjs(xr);/**
415
- * @license
416
- * Copyright 2016 Google Inc.
417
- *
418
- * Permission is hereby granted, free of charge, to any person obtaining a copy
419
- * of this software and associated documentation files (the "Software"), to deal
420
- * in the Software without restriction, including without limitation the rights
421
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
422
- * copies of the Software, and to permit persons to whom the Software is
423
- * furnished to do so, subject to the following conditions:
424
- *
425
- * The above copyright notice and this permission notice shall be included in
426
- * all copies or substantial portions of the Software.
427
- *
428
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
429
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
430
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
431
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
432
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
433
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
434
- * THE SOFTWARE.
435
- */var Pr={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"},Lr={DISABLED:"mdc-radio--disabled",ROOT:"mdc-radio"};/**
436
- * @license
437
- * Copyright 2016 Google Inc.
438
- *
439
- * Permission is hereby granted, free of charge, to any person obtaining a copy
440
- * of this software and associated documentation files (the "Software"), to deal
441
- * in the Software without restriction, including without limitation the rights
442
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
443
- * copies of the Software, and to permit persons to whom the Software is
444
- * furnished to do so, subject to the following conditions:
445
- *
446
- * The above copyright notice and this permission notice shall be included in
447
- * all copies or substantial portions of the Software.
448
- *
449
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
450
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
451
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
452
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
453
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
454
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
455
- * THE SOFTWARE.
456
- */var wt=function(s){D.__extends(n,s);function n(e){return s.call(this,D.__assign(D.__assign({},n.defaultAdapter),e))||this}return Object.defineProperty(n,"cssClasses",{get:function(){return Lr},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return Pr},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),n.prototype.setDisabled=function(e){var t=n.cssClasses.DISABLED;this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(t):this.adapter.removeClass(t)},n}(P.MDCFoundation);/**
457
- * @license
458
- * Copyright 2016 Google Inc.
459
- *
460
- * Permission is hereby granted, free of charge, to any person obtaining a copy
461
- * of this software and associated documentation files (the "Software"), to deal
462
- * in the Software without restriction, including without limitation the rights
463
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
464
- * copies of the Software, and to permit persons to whom the Software is
465
- * furnished to do so, subject to the following conditions:
466
- *
467
- * The above copyright notice and this permission notice shall be included in
468
- * all copies or substantial portions of the Software.
469
- *
470
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
471
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
472
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
473
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
474
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
475
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
476
- * THE SOFTWARE.
477
- */var Nr=function(s){D.__extends(n,s);function n(){var e=s!==null&&s.apply(this,arguments)||this;return e.ripple_=e.createRipple_(),e}return n.attachTo=function(e){return new n(e)},Object.defineProperty(n.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.nativeControl_.checked=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this.nativeControl_.value},set:function(e){this.nativeControl_.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!1,configurable:!0}),n.prototype.destroy=function(){this.ripple_.destroy(),s.prototype.destroy.call(this)},n.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(r){return e.root.classList.add(r)},removeClass:function(r){return e.root.classList.remove(r)},setNativeControlDisabled:function(r){return e.nativeControl_.disabled=r}};return new wt(t)},n.prototype.createRipple_=function(){var e=this,t=D.__assign(D.__assign({},P.MDCRipple.createAdapter(this)),{registerInteractionHandler:function(r,o){return e.nativeControl_.addEventListener(r,o,P.applyPassive())},deregisterInteractionHandler:function(r,o){return e.nativeControl_.removeEventListener(r,o,P.applyPassive())},isSurfaceActive:function(){return!1},isUnbounded:function(){return!0}});return new P.MDCRipple(this.root,new P.MDCRippleFoundation(t))},Object.defineProperty(n.prototype,"nativeControl_",{get:function(){var e=wt.strings.NATIVE_CONTROL_SELECTOR,t=this.root.querySelector(e);if(!t)throw new Error("Radio component requires a "+e+" element");return t},enumerable:!1,configurable:!0}),n}(P.MDCComponent);const Rr={alignEnd:i.PropTypes.bool,checked:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.bool]),children:i.deprecatedProp(i.PropTypes.node,"Radio","Use `label` instead."),className:i.PropTypes.string,disabled:i.PropTypes.bool,hideLabel:i.PropTypes.bool,id:i.PropTypes.string,label:i.PropTypes.string.isRequired,name:i.PropTypes.string.isRequired,onChange:i.PropTypes.func,themeColor:i.PropTypes.oneOf(["primary","secondary","danger","success"]),value:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.number])},Dr={alignEnd:!1,checked:null,children:void 0,className:void 0,disabled:!1,hideLabel:!1,id:void 0,label:null,name:null,themeColor:"primary",value:null},Je=a.forwardRef((s,n)=>{const{alignEnd:e,checked:t,children:r,className:o,disabled:l,hideLabel:c,id:u,label:_,name:C,onChange:m,themeColor:E,value:d,...p}=s,[v]=a.useState(()=>u||i.edsRandomId()),A=a.useRef(),h=a.useRef();a.useImperativeHandle(n,()=>A.current,[]);const f=I=>{if(m){m(I,d);return}h.current.checked=I.target.checked};return a.useEffect(()=>(h.current=Nr.attachTo(A.current),()=>{var I;(I=h.current)===null||I===void 0||I.destroy()}),[h]),a.useEffect(()=>{h.current.value=d},[d]),a.useEffect(()=>{h.current.checked=t},[t]),a.useEffect(()=>{h.current.disabled=l},[l]),a.createElement(De,{alignEnd:e,inputRef:h},a.createElement("div",{ref:A,className:i.clsx("lmnt mdc-radio lmnt-radio",l&&"mdc-radio--disabled",E&&`lmnt-radio--${E}`,o,"mdc-touch-target-wrapper")},a.createElement("input",i._extends({id:v,onChange:f,disabled:l,name:C,type:"radio",className:"mdc-radio__native-control"},p)),a.createElement("div",{className:"mdc-radio__background"},a.createElement("div",{className:"mdc-radio__outer-circle"}),a.createElement("div",{className:"mdc-radio__inner-circle"})),a.createElement("div",{className:"mdc-radio__ripple"})),a.createElement(Ge,{hideLabel:c,targetId:v,className:i.clsx(l&&"lmnt-theme-on-surface-disabled"),disabled:l},_||r))});Je.displayName="Radio";Je.propTypes=Rr;Je.defaultProps=Dr;/**
478
- * @license
479
- * Copyright 2018 Google Inc.
480
- *
481
- * Permission is hereby granted, free of charge, to any person obtaining a copy
482
- * of this software and associated documentation files (the "Software"), to deal
483
- * in the Software without restriction, including without limitation the rights
484
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
485
- * copies of the Software, and to permit persons to whom the Software is
486
- * furnished to do so, subject to the following conditions:
487
- *
488
- * The above copyright notice and this permission notice shall be included in
489
- * all copies or substantial portions of the Software.
490
- *
491
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
492
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
493
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
494
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
495
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
496
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
497
- * THE SOFTWARE.
498
- */var we={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},Ft={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"};/**
499
- * @license
500
- * Copyright 2018 Google Inc.
501
- *
502
- * Permission is hereby granted, free of charge, to any person obtaining a copy
503
- * of this software and associated documentation files (the "Software"), to deal
504
- * in the Software without restriction, including without limitation the rights
505
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
506
- * copies of the Software, and to permit persons to whom the Software is
507
- * furnished to do so, subject to the following conditions:
508
- *
509
- * The above copyright notice and this permission notice shall be included in
510
- * all copies or substantial portions of the Software.
511
- *
512
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
513
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
514
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
515
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
516
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
517
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
518
- * THE SOFTWARE.
519
- */var ct=function(s){D.__extends(n,s);function n(e){return s.call(this,D.__assign(D.__assign({},n.defaultAdapter),e))||this}return Object.defineProperty(n,"strings",{get:function(){return Ft},enumerable:!1,configurable:!0}),Object.defineProperty(n,"cssClasses",{get:function(){return we},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){},setNativeControlAttr:function(){}}},enumerable:!1,configurable:!0}),n.prototype.setChecked=function(e){this.adapter.setNativeControlChecked(e),this.updateAriaChecked_(e),this.updateCheckedStyling_(e)},n.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(we.DISABLED):this.adapter.removeClass(we.DISABLED)},n.prototype.handleChange=function(e){var t=e.target;this.updateAriaChecked_(t.checked),this.updateCheckedStyling_(t.checked)},n.prototype.updateCheckedStyling_=function(e){e?this.adapter.addClass(we.CHECKED):this.adapter.removeClass(we.CHECKED)},n.prototype.updateAriaChecked_=function(e){this.adapter.setNativeControlAttr(Ft.ARIA_CHECKED_ATTR,""+!!e)},n}(P.MDCFoundation);/**
520
- * @license
521
- * Copyright 2018 Google Inc.
522
- *
523
- * Permission is hereby granted, free of charge, to any person obtaining a copy
524
- * of this software and associated documentation files (the "Software"), to deal
525
- * in the Software without restriction, including without limitation the rights
526
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
527
- * copies of the Software, and to permit persons to whom the Software is
528
- * furnished to do so, subject to the following conditions:
529
- *
530
- * The above copyright notice and this permission notice shall be included in
531
- * all copies or substantial portions of the Software.
532
- *
533
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
534
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
535
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
536
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
537
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
538
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
539
- * THE SOFTWARE.
540
- */var Mr=function(s){D.__extends(n,s);function n(){var e=s!==null&&s.apply(this,arguments)||this;return e.ripple_=e.createRipple_(),e}return n.attachTo=function(e){return new n(e)},n.prototype.destroy=function(){s.prototype.destroy.call(this),this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.changeHandler_)},n.prototype.initialSyncWithDOM=function(){var e=this;this.changeHandler_=function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return(t=e.foundation).handleChange.apply(t,D.__spreadArray([],D.__read(r)))},this.nativeControl_.addEventListener("change",this.changeHandler_),this.checked=this.checked},n.prototype.getDefaultFoundation=function(){var e=this,t={addClass:function(r){return e.root.classList.add(r)},removeClass:function(r){return e.root.classList.remove(r)},setNativeControlChecked:function(r){return e.nativeControl_.checked=r},setNativeControlDisabled:function(r){return e.nativeControl_.disabled=r},setNativeControlAttr:function(r,o){return e.nativeControl_.setAttribute(r,o)}};return new ct(t)},Object.defineProperty(n.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.foundation.setChecked(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),n.prototype.createRipple_=function(){var e=this,t=ct.strings.RIPPLE_SURFACE_SELECTOR,r=this.root.querySelector(t),o=D.__assign(D.__assign({},P.MDCRipple.createAdapter(this)),{addClass:function(l){return r.classList.add(l)},computeBoundingRect:function(){return r.getBoundingClientRect()},deregisterInteractionHandler:function(l,c){e.nativeControl_.removeEventListener(l,c,P.applyPassive())},isSurfaceActive:function(){return P.matches(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(l,c){e.nativeControl_.addEventListener(l,c,P.applyPassive())},removeClass:function(l){r.classList.remove(l)},updateCssVariable:function(l,c){r.style.setProperty(l,c)}});return new P.MDCRipple(this.root,new P.MDCRippleFoundation(o))},Object.defineProperty(n.prototype,"nativeControl_",{get:function(){var e=ct.strings.NATIVE_CONTROL_SELECTOR;return this.root.querySelector(e)},enumerable:!1,configurable:!0}),n}(P.MDCComponent);const kr={alignEnd:i.PropTypes.bool,checked:i.PropTypes.bool,children:i.deprecatedProp(i.PropTypes.node,"Switch","Use `label` instead."),className:i.PropTypes.string,disabled:i.PropTypes.bool,hideLabel:i.PropTypes.bool,id:i.PropTypes.string,inputProps:i.PropTypes.object,label:i.PropTypes.string.isRequired,onChange:i.PropTypes.func,themeColor:i.PropTypes.oneOf(["primary","secondary","danger","success"]),value:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.number,i.PropTypes.bool,i.PropTypes.object])},wr={alignEnd:!1,checked:!1,children:void 0,className:void 0,disabled:!1,hideLabel:!1,id:void 0,inputProps:void 0,label:"Off|On",themeColor:"primary",value:null},je=a.forwardRef((s,n)=>{const{alignEnd:e,checked:t,children:r,className:o,disabled:l,hideLabel:c,id:u,inputProps:_,label:C,onChange:m,themeColor:E,value:d,...p}=s,[v]=a.useState(()=>u||i.edsRandomId()),A=a.useRef(),h=a.useRef(),f=C||r;a.useImperativeHandle(n,()=>A.current,[]);const I=b=>{m?.(b.target.checked,d,b)};return a.useEffect(()=>(h.current=Mr.attachTo(A.current),()=>{var b;(b=h.current)===null||b===void 0||b.destroy()}),[]),a.useEffect(()=>{h.current.checked=!!t},[t]),a.createElement(De,{inputRef:h,alignEnd:e},a.createElement("div",i._extends({ref:A,className:i.clsx("lmnt mdc-switch lmnt-switch",l&&"mdc-switch--disabled",E&&`lmnt-switch--${E}`,o)},p),a.createElement("div",{className:"mdc-switch__track"}),a.createElement("div",{className:"mdc-switch__thumb-underlay"},a.createElement("div",{className:"mdc-switch__thumb"}),a.createElement("input",i._extends({onChange:I,disabled:l,type:"checkbox",id:v,role:"switch"},_,{className:i.clsx("mdc-switch__native-control",_?.className),value:d})))),a.createElement("label",{className:i.clsx("lmnt-switch-label mdc-switch-label",c&&"sr-only"),htmlFor:v},f))});je.displayName="Switch";je.propTypes=kr;je.SwitchDefaultProps=wr;const et=a.createContext({}),qt={categoryIdKey:i.PropTypes.string,categoryNameKey:i.PropTypes.string,children:i.PropTypes.node,componentPropsKey:i.PropTypes.string,dense:i.PropTypes.bool,dividerVariant:i.PropTypes.oneOf(["full","padded","inset","insetPadded"]),groupIdKey:i.PropTypes.string,groupNameKey:i.PropTypes.string,itemIdKey:i.PropTypes.string,items:i.PropTypes.oneOfType([i.PropTypes.arrayOf(i.PropTypes.object),i.PropTypes.arrayOf(i.PropTypes.string)]),itemsKey:i.PropTypes.string,leadingBlockType:i.PropTypes.oneOf(["","avatar","checkbox","icon","image","lgImage","radio","switch","thumbnail"]),navigation:i.PropTypes.bool,nonInteractive:i.PropTypes.bool,onAction:i.PropTypes.func,overlineTextKey:i.PropTypes.string,primaryTextKey:i.PropTypes.string,role:i.PropTypes.oneOf(["","listbox","menu","radiogroup","group"]),secondaryTextKey:i.PropTypes.string,selected:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.number,i.PropTypes.object,i.PropTypes.arrayOf(i.PropTypes.string),i.PropTypes.arrayOf(i.PropTypes.number),i.PropTypes.arrayOf(i.PropTypes.object)]),showDivider:i.PropTypes.bool,singleList:i.PropTypes.bool,themeColor:i.PropTypes.oneOf(["","surface","primary","secondary"]),trailingBlockType:i.PropTypes.oneOf(["","avatar","badge","checkbox","icon","image","lgImage","meta","radio","switch","thumbnail"]),wrapFocus:i.PropTypes.bool},Vt={categoryIdKey:"id",categoryNameKey:"categoryName",children:null,componentPropsKey:"componentProps",dense:!1,dividerVariant:"full",groupIdKey:"id",groupNameKey:"groupName",itemIdKey:"id",items:null,itemsKey:"items",leadingBlockType:void 0,navigation:!1,nonInteractive:!1,overlineTextKey:"overlineText",primaryTextKey:"primaryText",role:"listbox",secondaryTextKey:"secondaryText",selected:null,showDivider:!0,singleList:!0,themeColor:"",trailingBlockType:void 0,wrapFocus:!0},Fr={variant:i.PropTypes.oneOf(["full","padded","inset","insetPadded"])},Br={variant:"full"},Hr={children:i.PropTypes.node},Kr={children:null},Ur={},Gr={};i.PropTypes.node;const Wr={activated:i.PropTypes.bool,ariaChecked:i.PropTypes.bool,children:i.PropTypes.node,disableHighlight:i.PropTypes.bool,disabled:i.PropTypes.bool,isChildOption:i.PropTypes.bool,leadingBlock:i.PropTypes.node,leadingBlockType:i.PropTypes.oneOf(["","avatar","checkbox","icon","image","lgImage","radio","switch","thumbnail"]),noHover:i.PropTypes.bool,nonInteractive:i.PropTypes.bool,onClick:i.PropTypes.func,onKeyPress:i.PropTypes.func,overlineText:i.PropTypes.node,primaryText:i.PropTypes.node,secondaryText:i.PropTypes.node,selected:i.PropTypes.bool,tag:i.PropTypes.oneOfType([i.PropTypes.string,i.PropTypes.elementType,i.PropTypes.instanceOf(a.Component)]),themeColor:i.PropTypes.oneOf(["","surface","primary","secondary"]),trailingBlock:i.PropTypes.node,trailingBlockType:i.PropTypes.oneOf(["","avatar","badge","checkbox","icon","image","lgImage","meta","radio","switch","thumbnail"]),value:i.PropTypes.node,variant:i.PropTypes.oneOf(["standard","category","group"]),wrapMode:i.PropTypes.oneOf(["wrap","noWrap","truncate"])},jr={activated:!1,ariaChecked:!1,children:null,disableHighlight:!1,disabled:!1,isChildOption:!1,leadingBlock:null,leadingBlockType:"",noHover:!1,nonInteractive:!1,overlineText:null,primaryText:null,secondaryText:null,selected:!1,tag:null,themeColor:"",trailingBlock:null,trailingBlockType:void 0,value:null,variant:"standard",wrapMode:"wrap"},$r={children:i.PropTypes.node,overlineText:i.PropTypes.node,primaryText:i.PropTypes.node,secondaryText:i.PropTypes.node},qr={children:null,overlineText:null,primaryText:null,secondaryText:null},Vr={children:i.PropTypes.node},Xr={children:null},zr={children:i.PropTypes.node},Yr={children:null},Qr={children:i.PropTypes.node},Zr={children:null},Jr={children:i.PropTypes.node},ei={children:null},ti={children:i.PropTypes.node},ni={children:null},ri={items:i.PropTypes.oneOfType([i.PropTypes.arrayOf(i.PropTypes.object),i.PropTypes.arrayOf(i.PropTypes.string)])},ii={items:null},si={},oi={},tt=a.forwardRef((s,n)=>{const{children:e,className:t,...r}=s;return a.createElement("span",i._extends({ref:n,className:i.clsx("lmnt","mdc-list-item__overline-text",t)},r),e)});tt.displayName="ListItemOverline";tt.propTypes=zr;tt.defaultProps=Yr;const nt=a.forwardRef((s,n)=>{const{children:e,className:t,...r}=s;return a.createElement("span",i._extends({ref:n,className:i.clsx("lmnt","mdc-list-item__secondary-text",t)},r),e)});nt.displayName="ListItemSecondaryText";nt.defaultProps=ei;nt.propTypes=Jr;const rt=a.forwardRef((s,n)=>{const{children:e,className:t,...r}=s;return a.createElement("span",i._extends({ref:n,className:i.clsx("lmnt","mdc-list-item__primary-text",t)},r),e)});rt.displayName="ListItemPrimaryText";rt.propTypes=Qr;rt.defaultProps=Zr;const it=a.forwardRef((s,n)=>{const{overlineText:e,primaryText:t,secondaryText:r,children:o,className:l,...c}=s;return a.createElement("span",i._extends({ref:n,className:i.clsx("lmnt","mdc-list-item__content",l)},c),e&&a.createElement(tt,null,e),t&&a.createElement(rt,null,t),r&&a.createElement(nt,null,r))});it.displayName="ListItemContent";it.propTypes=$r;it.defaultProps=qr;const st=a.forwardRef((s,n)=>{const{children:e,className:t,...r}=s;return a.createElement("span",i._extends({ref:n,className:i.clsx("mdc-list-item__start",t)},r),e)});st.displayName="ListItemLeadingBlock";st.propTypes=Vr;st.defaultProps=Xr;const ot=a.forwardRef((s,n)=>{const{children:e,className:t,...r}=s;return a.createElement("span",i._extends({ref:n,className:i.clsx("lmnt","mdc-list-item__end",t)},r),e)});ot.displayName="ListItemTrailingBlock";ot.propTypes=ti;ot.defaultProps=ni;const Pe=a.forwardRef((s,n)=>{const{activated:e,ariaChecked:t,children:r,className:o,disableHighlight:l,disabled:c,id:u,isChildOption:_,leadingBlock:C,leadingBlockType:m,noHover:E,nonInteractive:d,onClick:p,onKeyPress:v,onMouseMove:A,onMouseOver:h,overlineText:f,primaryText:I,secondaryText:b,selected:w,tag:X,themeColor:ee,trailingBlock:x,trailingBlockType:K,value:j,variant:H,wrapMode:Y,...ie}=s,Ae=a.useRef(),[he,me]=a.useState("mdc-list-item--with-one-line"),k=a.useContext(et),y=k.leadingBlockType||m,ue=k.trailingBlockType||K,z=I||r,G=a.useMemo(()=>k.role!=="group"?h:void 0,[]),B=a.useMemo(()=>k.role!=="group"?A:void 0,[]),se=a.useMemo(()=>H!=="standard"?"h3":X||(k.navigation?"a":"li"),[H,k.navigation,X]);a.useEffect(()=>{I&&f&&b?me("mdc-list-item--with-three-lines"):(I&&b||f&&b)&&me("mdc-list-item--with-two-lines")},[I,f,b]);const J=(F,R,fe)=>F==="radiogroup"||R==="radio"||fe==="radio"?"radio":F==="group"||R==="switch"||R==="checkbox"||fe==="switch "||fe==="checkbox"?"checkbox":F==="listbox"?"option":F==="menu"?"menuItem":null,oe=a.useCallback(F=>{!k.nonInteractive&&!c&&p?.(F,j)},[k.nonInteractive,c,p,j]),pe=(F,R,fe,ye,Ie,Me)=>{switch(F){case"checkbox":return Me?null:!R||typeof R=="string"?a.createElement(We,{hideLabel:!0,label:fe,checked:ye}):R;case"icon":return typeof R=="string"?a.createElement(ze.Icon,{icon:R}):R;case"radio":return Me?null:!R||typeof R=="string"?a.createElement(Je,{hideLabel:!0,label:fe,name:R||Ie,checked:ye}):R;case"switch":return Me?null:!R||typeof R=="string"?a.createElement(je,{hideLabel:!0,label:fe}):R;case"badge":return typeof R=="string"?a.createElement(Qe,{label:R}):R;default:return F?R:null}},Q=a.useMemo(()=>pe(y,C,z,t,k.randomId,!1),[y,C,z,t,k.randomId]),O=a.useMemo(()=>{const F=k.trailingBlockType||K,R=y==="checkbox"||y==="radio"||y==="switch";return pe(F,x,z,t,k.randomId,R)},[t,z,y,k.randomId,k.trailingBlockType,x,K]),N=(F,R)=>{switch(R){case"avatar":return`mdc-list-item--with-${F}-avatar`;case"checkbox":return`mdc-list-item--with-${F}-checkbox`;case"icon":return`mdc-list-item--with-${F}-icon`;case"image":return`mdc-list-item--with-${F}-image`;case"radio":return`mdc-list-item--with-${F}-radio`;case"switch":return`mdc-list-item--with-${F}-switch`;case"thumbnail":return`mdc-list-item--with-${F}-thumbnail`;case"lgImage":return`mdc-list-item--with-${F}-video`;case"badge":return`mdc-list-item--with-${F}-badge`;default:return null}},V=a.useMemo(()=>{let F;if(!H||H==="standard"){const R=N("leading",y),fe=N("trailing",ue);F=i.clsx(["mdc-list-item",`lmnt-theme-${ee}-bg`,he,(k.nonInteractive||d)&&"mdc-list-item--non-interactive",R,fe])}return F},[H,y,ue,ee,he,k.nonInteractive,d]),ae=i.clsx(["lmnt",V,(!k.nonInteractive||d)&&k.navigation&&(t||e)&&"mdc-list-item--activated",(!k.nonInteractive||d)&&(!l||_)&&(t||w)&&"mdc-list-item--selected",(k.nonInteractive||E||d)&&"lmnt-list-item__no-hover",c&&"mdc-list-item--disabled",Y==="truncate"&&"lmnt-list-item--truncate",Y==="noWrap"&&"lmnt-list-item--no-wrap",Y==="wrap"&&"lmnt-list-item--wrap ",H==="group"&&"mdc-list-group__subheader lmnt-list-group__subheader",H==="category"&&"lmnt-list-group__category-header",o]),le=J(k.role,y,ue);return a.useImperativeHandle(n,()=>Ae.current,[]),a.createElement(Yt.Ripple,{componentRef:Ae},a.createElement(se,i._extends({id:u,"aria-checked":t,ref:Ae,role:le,onClick:oe,className:ae,onKeyPress:v,onMouseMove:B,onMouseOver:G},ie),a.createElement("span",{className:"mdc-list-item__ripple"}),H==="standard"&&Q&&a.createElement(st,null,Q),H!=="standard"&&H==="category"&&a.createElement(Ye.TypoSubtitle,{level:0},z),H!=="standard"&&H==="group"&&k.listType==="group"&&a.createElement(Ye.TypoSubtitle,{level:2},z),H!=="standard"&&H==="group"&&k.listType==="category"&&a.createElement(Ye.TypoCaption,null,z),H==="standard"&&a.createElement(it,{primaryText:z,overlineText:H==="standard"&&f,secondaryText:H==="standard"&&b}),H==="standard"&&O&&a.createElement(ot,null,O)))});Pe.displayName="ListItem";Pe.propTypes=Wr;Pe.defaultProps=jr;const $e=a.forwardRef((s,n)=>{const{variant:e,className:t,...r}=s,{leadingBlockType:o,navigation:l}=a.useContext(et),c=a.useMemo(()=>l?"hr":"li",[l]);return a.createElement(c,i._extends({ref:n,role:"separator",className:i.clsx("mdc-list-divider","lmnt-list-divider",(e==="padded"||e==="insetPadded")&&"lmnt-list-divider--with-padding",(e==="insetPadded"||e==="inset")&&"lmnt-list-divider--with-inset",o==="avatar"&&" mdc-list-divider--with-leading-avatar",o==="checkbox"&&" mdc-list-divider--with-leading-checkbox",o==="icon"&&" mdc-list-divider--with-leading-icon",o==="image"&&" mdc-list-divider--with-leading-image",o==="largeImage"&&" mdc-list-divider--with-leading-video",o==="radio"&&" mdc-list-divider--with-leading-radio",o==="switch"&&" mdc-list-divider--with-leading-switch",o==="thumbnail"&&" mdc-list-divider--with-leading-thumbnail",t)},r))});$e.displayName="ListDivider";$e.propTypes=Fr;$e.defaultProps=Br;const He=a.forwardRef((s,n)=>{const{children:e,items:t,group:r,selectedIndex:o}=s,{showDivider:l,dividerVariant:c,categoryNameKey:u,secondaryTextKey:_,overlineTextKey:C,groupNameKey:m,primaryTextKey:E,role:d,singleList:p,componentPropsKey:v}=a.useContext(et),[A]=a.useState(()=>i.edsRandomId());return Array.isArray(t)?t?.map((h,f)=>{let I=h[E];!I&&typeof h=="string"&&(I=h);const b=h[_],w=h[C],X=i.getListVariant(h,m,u);let ee;d==="group"?Array.isArray(o)&&o.length&&(ee=o.indexOf(f)!==-1):ee=o===f;let x,K;(!h.leadingBlock||typeof h.trailingBlock!="string")&&d==="radiogroup"&&!p?x=A:x=h.leadingBlock,(!h.trailingBlock||typeof h.trailingBlock!="string")&&d==="radiogroup"&&!p?K=A:K=h.trailingBlock;const j=h[v]||{};return a.createElement(a.Fragment,{key:I||b||w},a.createElement(Pe,i._extends({ref:n,key:I,tabIndex:f===0?0:-1,variant:X,secondaryText:b,primaryText:I,overlineText:w,leadingBlock:x,trailingBlock:K,ariaChecked:ee},j)),!r&&l&&t.length>f+1&&a.createElement($e,{variant:c}))}):e});He.displayName="ListItemsList";He.propTypes=ri;He.defaultProps=ii;const Ke=a.forwardRef((s,n)=>{const{className:e,...t}=s;return a.createElement("hr",i._extends({ref:n,className:i.clsx("lmnt","lmnt-list-divider","mdc-list-divider",e)},t))});Ke.displayName="ListGroupDivider";Ke.propTypes=Ur;Ke.defaultProps=Gr;const Oe=a.forwardRef((s,n)=>{const{categoryId:e,categoryIdKey:t,categoryNameKey:r,children:o,className:l,componentPropsKey:c,customRef:u,dense:_,dividerVariant:C,groupId:m,groupIdKey:E,groupItems:d,groupNameKey:p,groupSelectedIndex:v,inMenu:A,itemIdKey:h,items:f,itemsKey:I,leadingBlockType:b,listType:w,navigation:X,nonInteractive:ee,onAction:x,overlineTextKey:K,primaryTextKey:j,role:H,roleToUse:Y,secondaryTextKey:ie,selected:Ae,showDivider:he,singleList:me,themeColor:k,trailingBlockType:y,wrapFocus:ue,...z}=s,G=a.useRef(u||null),B=a.useRef(),se=a.useCallback((T,S,L)=>{const $=T[p],W=T[I][L];return{selectedGroup:$,selectedGroupIndex:S,selectedGroupId:T[E]||$,selectedIndex:L,selectedItem:typeof W=="string"?W:W[h]||W[j]}},[E,p,h,I,j]),J=a.useCallback((T,S)=>S.findIndex(L=>T===L[E]||T===L[p]),[E,p]),oe=a.useCallback((T,S)=>S.findIndex(L=>T===L[t]||T===L[r]),[t,r]),pe=a.useCallback((T,S,L)=>{const $=J(S,T);if($===-1)return{};const W=f[$];return se(W,$,L)},[se,J,f]),Q=a.useCallback((T,S)=>{const L=T[r];return{selectedCategory:L,selectedCategoryIndex:S,selectedCategoryId:T[t]||L}},[t,r]),O=a.useCallback((T,S,L)=>{const $=oe(T,f);if($===-1)return{};const W=f[$];return{...Q(W,$),...pe(W[I],S,L)}},[Q,oe,pe,f,I]),N=a.useCallback((T,S,L)=>w==="category"?O(L,S,T):w==="group"?pe(f,S,T):f?f[T][h]||f[T]:T,[w,O,pe,f,h]),V=a.useCallback((T,S,L)=>{const $=oe(T,f);if($===-1)return[];const W=f[$],Ee=W[I],Te=J(S,Ee);if(Te===-1)return[];const qe=Ee[Te];return qe[I].length<=L?[]:[{...Q(W,$),...se(qe,Te,L)}]},[Q,se,oe,J,f,I]),ae=a.useCallback((T,S)=>{const L=[],$=J(T,f);if($===-1)return[];const W=f[$];return L.push(se(W,$,S)),L},[se,J,f]),le=a.useCallback((T,S,L)=>T.reduce((W,Ee)=>{if(w==="simple"&&W.push(f[Ee][h]||f[Ee]),w==="category"&&W.splice(W.length-1,0,...V(L,S,Ee)),w==="group"){const Te=ae(S,Ee);W.splice(W.length-1,0,...Te)}return W},[]),[V,ae,h,f,w]),F=a.useCallback((T,S,L)=>{const $=oe(T,f);if($===-1)return{};const W=f[$],Ee=W[I],Te=J(S,Ee);if(Te===-1)return{};const qe=Ee[Te];return{...Q(W,$),...se(qe,Te,L)}},[Q,se,oe,J,f,I]),R=a.useCallback(T=>f&&T>-1?f[T][h]||f[T]:T,[h,f]),fe=a.useCallback((T,S,L)=>w==="category"?F(T,S,L):w==="group"?pe(f,S,L):R(L),[R,F,pe,f,w]),ye=a.useCallback((T,S,L)=>Y==="group"?le(T,S,L):me?fe(L,S,T):R(T),[E,p,h,f,I,w,j,Y,me,t,r]),Ie=a.useCallback(T=>{var S;x&&x(N(T.detail.index,m,e),ye((S=B.current)===null||S===void 0?void 0:S.foundation.getSelectedIndex(),m,e),m,e,T)},[e,x,N,ye,m]);a.useEffect(()=>{if(!A)return B.current=new Ut(G.current),()=>{var T;(T=B.current)===null||T===void 0||T.destroy()}},[A,B]),a.useEffect(()=>{var T;return(T=B.current)===null||T===void 0||T.listen("MDCList:action",Ie),()=>{var S;(S=B.current)===null||S===void 0||S.unlisten("MDCList:action",Ie)}},[Ie]),a.useEffect(()=>{B.current&&(B.current.wrapFocus=ue)},[ue]),a.useEffect(()=>{var T,S;const L=Y==="listbox"||Y==="radiogroup";(T=B.current)===null||T===void 0||T.foundation.setSingleSelection(L),Y&&!L&&((S=B.current)===null||S===void 0?void 0:S.foundation.getSelectedIndex())===-1&&(B.current.foundation.isCheckboxList_=!0,B.current.foundation.setSelectedIndex([])),L&&B.current&&(B.current.foundation.isCheckboxList_=!1)},[Y]);const Me=X?"nav":"ul";return a.useImperativeHandle(n,()=>G.current,[]),a.createElement(Me,i._extends({"aria-multiselectable":b==="checkbox"||y==="checkbox"||b==="switch"||y==="switch"||Y==="group","data-evolution":"true",ref:G,role:Y,"aria-orientation":"vertical",className:i.clsx("lmnt","lmnt-list","mdc-list",`lmnt-theme-${k}-bg`,_&&"lmnt-list--dense",w==="category"&&"lmnt-nested-list",l)},z),o)});Oe.displayName="ListRoot";Oe.propTypes=qt;Oe.defaultProps=Vt;const Ue=a.forwardRef((s,n)=>{const{children:e,className:t,variant:r}=s;return r==="group"?a.createElement("div",{ref:n,className:i.clsx("mdc-list-group",t)},e):r==="category"?a.createElement("div",{ref:n,className:i.clsx("lmnt-list-category",t)},e):a.createElement(a.Fragment,null,e)});Ue.displayName="ListWrapper";Ue.propTypes=si;Ue.defaultProps=oi;const at=a.forwardRef((s,n)=>{const{categoryIdKey:e,categoryNameKey:t,children:r,className:o,componentPropsKey:l,customRef:c,dense:u,dividerVariant:_,groupIdKey:C,groupNameKey:m,itemIdKey:E,items:d,itemsKey:p,leadingBlockType:v,listType:A,multiSelect:h,navigation:f,nonInteractive:I,onAction:b,overlineTextKey:w,primaryTextKey:X,role:ee,secondaryTextKey:x,selected:K,showDivider:j,singleList:H,themeColor:Y,trailingBlockType:ie,wrapFocus:Ae,...he}=s,me=a.useRef(c||null);a.useImperativeHandle(n,()=>me.current,[]);const[k,y]=a.useState(K),[ue]=a.useState(()=>i.edsRandomId()),{inMenu:z}=a.useContext(ht);a.useEffect(()=>{d&&d.length>0&&r&&i.edsWarning("List: Items should not be used with children. If both are sent children will be ignored.")},[d,r]);const G=a.useMemo(()=>Array.isArray(d)&&d[0]&&typeof d[0]=="object"&&d[0][t]?"category":Array.isArray(d)&&d[0]&&typeof d[0]=="object"&&d[0][m]?"group":A||"simple",[t,m,d,A]),[B,se]=a.useState(()=>i.getRole(s));a.useEffect(()=>{se(i.getRole({leadingBlockType:v,trailingBlockType:ie,nonInteractive:I,role:ee}))},[v,ie,I,ee]);const J=a.useCallback((O,N)=>{if(b&&B)if(G==="simple")b(O,N),y(N);else if(H)if(B!=="group")b(O,N);else{if(!k){y(N),b(O,N);return}const V=[...k],ae=k.findIndex(le=>G==="category"?le.selectedCategoryId===O.selectedCategoryId&&le.selectedGroupId===O.selectedGroupId&&le.selectedItem===O.selectedItem:le.selectedGroupId===O.selectedGroupId&&le.selectedItem===O.selectedItem);if(ae!==-1){V.splice(ae,1),y(V),b(O,V);return}V.push(O),y(V),b(O,V)}else b(O,N)},[k,G,b,B,H]),oe=a.useCallback((O,N,V,ae,le,F)=>{const R=N[m];if(!R)return null;const fe=i.getListVariant(N,m,t),ye=N[C]||R,Ie=i.getSelectedItemIndex(V,F,B,H?K:K[ye],H);return a.createElement(a.Fragment,{key:ye},a.createElement(Pe,{variant:fe,primaryText:R}),a.createElement(O,i._extends({inMenu:z,ref:me,categoryId:le,groupId:ye,itemsKey:p,primaryTextKey:X,onAction:J,showDivider:j,className:o,dense:u,items:d,leadingBlockType:v,listType:G,roleToUse:B,trailingBlockType:ie,groupNameKey:m,groupIdKey:C,categoryNameKey:t,selected:K,groupItems:N[p],groupSelectedIndex:Ie,componentPropsKey:l},he),a.createElement(He,{items:N[p],selectedIndex:Ie,group:!0}),ae&&d.length>V+1&&a.createElement(Ke,null)))},[t,H,o,he,u,C,m,J,z,d,p,v,G,X,B,K,j,ie,l]),pe=a.useMemo(()=>{if(!d&&r)return a.createElement(Oe,i._extends({inMenu:z,ref:me,itemsKey:p,onAction:J,showDivider:j,className:o,dense:u,items:d,leadingBlockType:v,listType:G,roleToUse:B,trailingBlockType:ie,groupNameKey:m,categoryNameKey:t,categoryIdKey:e,componentPropsKey:l,navigation:f},he),r);if(G==="simple"){let O;return B==="group"?(O=[],Array.isArray(K)&&K?.forEach(N=>{d?.forEach((V,ae)=>{(N===V||N===V[E]||N===ae[X])&&O.push(ae)})})):O=d?.findIndex(N=>typeof N=="string"?N===K:typeof N=="object"?N[E]||N[E]===0?N[E]===K:Or(N,K):null),a.createElement(Oe,i._extends({inMenu:z,ref:me,itemsKey:p,onAction:J,showDivider:j,className:o,dense:u,themeColor:Y,items:d,leadingBlockType:v,listType:G,roleToUse:B,trailingBlockType:ie,groupNameKey:m,categoryNameKey:t,categoryIdKey:e,componentPropsKey:l,navigation:f},he),a.createElement(He,{items:d,selectedIndex:O},!d&&r))}return G==="group"?d?.map((O,N)=>oe(Oe,O,N,j)):G==="category"?d?.map((O,N)=>{const V=O[t];if(!V)return null;const ae=i.getListVariant(O,m,t),le=O[e]||V;return a.createElement(a.Fragment,{key:le},a.createElement(Ue,{variant:"group",className:`lmnt-nested-list mdc-list lmnt-theme-${Y}-bg`},a.createElement(Pe,{variant:ae,primaryText:V}),O[p].map((F,R)=>oe(Oe,F,R,!1,le,N))),j&&d.length>N+1&&a.createElement(Ke,null))}):null},[oe,z,p,j,r,o,he,u,d,v,G,B,ie,m,t,K,e,J,X,E,l,f,Y]),Q=a.useMemo(()=>({role:B,nonInteractive:I,leadingBlockType:v,trailingBlockType:ie,showDivider:j,dividerVariant:_,selected:K,listType:G,categoryNameKey:t,secondaryTextKey:x,overlineTextKey:w,groupNameKey:m,primaryTextKey:X,randomId:ue,singleList:H,navigation:f,componentPropsKey:l}),[t,l,_,m,v,G,f,I,w,X,ue,B,x,K,j,H,ie]);return a.createElement(et.Provider,{value:Q},a.createElement(Ue,{variant:G},pe))});at.displayName="List";at.propTypes=qt;at.defaultProps=Vt;const Et=a.forwardRef((s,n)=>{const{children:e,className:t,...r}=s;return a.createElement("div",i._extends({ref:n,className:i.clsx("lmnt","lmnt-list-group","mdc-list-group",t)},r),e)});Et.displayName="ListGroup";Et.propTypes=Hr;Et.defaultProps=Kr;const yt=a.forwardRef((s,n)=>{const{className:e,children:t,...r}=s;return a.createElement("h3",i._extends({ref:n,className:i.clsx("mdc-list-group__subheader lmnt-list-group__subheader",e)},r),a.createElement(Ye.TypoSubtitle,{level:2},t))});yt.displayName="ListGroupSubHeader";yt.propTypes={className:i.PropTypes.string,children:i.PropTypes.node};yt.defaultProps={children:null,className:""};exports.Checkbox=We;exports.List=at;exports.ListDivider=$e;exports.ListItem=Pe;exports.MenuContext=ht;exports.Switch=je;exports._baseIsEqual=$t;exports.keys_1=Wt;