@momentum-ui/web-components 3.2.22 → 3.2.23

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/3842.js +1 -1
  2. package/dist/4739.js +1 -1
  3. package/dist/6325.js +1 -1
  4. package/dist/comp/md-accordion-item-entry.js +2 -2
  5. package/dist/comp/md-activity-button-entry.js +2 -2
  6. package/dist/comp/md-advance-list-entry.js +2 -2
  7. package/dist/comp/md-alert-banner-entry.js +2 -2
  8. package/dist/comp/md-alert-entry.js +2 -2
  9. package/dist/comp/md-audio-player-entry.js +2 -2
  10. package/dist/comp/md-avatar-entry.js +2 -2
  11. package/dist/comp/md-button-entry.js +2 -2
  12. package/dist/comp/md-card-ai-entry.js +2 -2
  13. package/dist/comp/md-card-alert-entry.js +2 -2
  14. package/dist/comp/md-card-entry.js +2 -2
  15. package/dist/comp/md-card-v2-entry.js +2 -2
  16. package/dist/comp/md-chat-message-entry.js +2 -2
  17. package/dist/comp/md-checkbox-entry.js +2 -2
  18. package/dist/comp/md-coachmark-entry.js +2 -2
  19. package/dist/comp/md-coachmark-popover-entry.js +2 -2
  20. package/dist/comp/md-combobox-entry.js +2 -2
  21. package/dist/comp/md-country-code-picker-entry.js +2 -2
  22. package/dist/comp/md-date-range-picker-entry.js +1 -1
  23. package/dist/comp/md-date-time-picker-entry.js +2 -2
  24. package/dist/comp/md-datepicker-calendar-entry.js +2 -2
  25. package/dist/comp/md-datepicker-day-entry.js +2 -2
  26. package/dist/comp/md-datepicker-entry.js +2 -2
  27. package/dist/comp/md-datepicker-month-entry.js +2 -2
  28. package/dist/comp/md-datepicker-week-entry.js +2 -2
  29. package/dist/comp/md-dropdown-entry.js +5 -5
  30. package/dist/comp/md-editable-field-entry.js +2 -2
  31. package/dist/comp/md-favorite-entry.js +2 -2
  32. package/dist/comp/md-floating-minimize-entry.js +2 -2
  33. package/dist/comp/md-floating-modal-entry.js +2 -2
  34. package/dist/comp/md-grabber-entry.js +2 -2
  35. package/dist/comp/md-icon-entry.js +2 -2
  36. package/dist/comp/md-input-entry.js +2 -2
  37. package/dist/comp/md-input-file.js +2 -2
  38. package/dist/comp/md-meeting-alert-entry.js +2 -2
  39. package/dist/comp/md-menu-overlay-entry.js +2 -2
  40. package/dist/comp/md-modal-entry.js +2 -2
  41. package/dist/comp/md-pagination-entry.js +2 -2
  42. package/dist/comp/md-phone-input-entry.js +2 -2
  43. package/dist/comp/md-popover-entry.js +2 -2
  44. package/dist/comp/md-presence-entry.js +2 -2
  45. package/dist/comp/md-table-advanced-entry.js +2 -2
  46. package/dist/comp/md-table-entry.js +2 -2
  47. package/dist/comp/md-tabs-entry.js +2 -2
  48. package/dist/comp/md-task-item-entry.js +2 -2
  49. package/dist/comp/md-timepicker-entry.js +2 -2
  50. package/dist/esm/3842.js +1 -1
  51. package/dist/esm/4739.js +1 -1
  52. package/dist/esm/6325.js +1 -1
  53. package/dist/esm/comp/md-dropdown-entry.js +19 -19
  54. package/dist/esm/index-entry.js +5 -5
  55. package/dist/index-entry.js +7 -7
  56. package/dist/types/components/dropdown/Dropdown.d.ts +1 -0
  57. package/dist/types/components/dropdown/Dropdown.stories.d.ts +3 -0
  58. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("luxon"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","luxon"],t);else{var r="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("luxon")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/style-map.js"],e["lit/directives/if-defined.js"],e.luxon);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,(e,t,r,i,o,n)=>(()=>{"use strict";var s={8371(e,t,r){r.r(t),r.d(t,{DatePickerMonth:()=>i}),r(801);var i,o=r(9609),n=r(878),s=r(4084),a=r(7161),l=r(429),d=r(3842),c=function(e,t,r,i){var o,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.day=(0,n.tB)(),this.filterParams=void 0,this.datePickerProps=void 0,this.renderWeeks=()=>{var e;let t=(0,n.mK)((0,n.Mw)(this.day),null===(e=this.datePickerProps)||void 0===e?void 0:e.weekStart);const r=[],i=(0,n.tj)(this.day);do{r.push(a.html`
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("luxon"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/style-map.js","luxon"],t);else{var r="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("luxon")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"],e["lit/directives/style-map.js"],e.luxon);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,(e,t,r,i,o,n)=>(()=>{"use strict";var s={8371(e,t,r){r.r(t),r.d(t,{DatePickerMonth:()=>i}),r(801);var i,o=r(9609),n=r(878),s=r(4084),a=r(7161),l=r(429),d=r(3842),c=function(e,t,r,i){var o,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.day=(0,n.tB)(),this.filterParams=void 0,this.datePickerProps=void 0,this.renderWeeks=()=>{var e;let t=(0,n.mK)((0,n.Mw)(this.day),null===(e=this.datePickerProps)||void 0===e?void 0:e.weekStart);const r=[],i=(0,n.tj)(this.day);do{r.push(a.html`
2
2
  <md-datepicker-week
3
3
  .viewAnchorMonth=${i}
4
4
  .startOfWeekDay=${t}
5
5
  .filterParams=${this.filterParams}
6
6
  .datePickerProps=${this.datePickerProps}
7
7
  ></md-datepicker-week>
8
- `),t=(0,n.J4)(t,1)}while((0,n.tF)(t,this.day)||r.length<6);return r}}static get styles(){return[s.A,d.A]}render(){return a.html` <div class="md-datepicker__month">${this.renderWeeks()}</div> `}};c([(0,l.property)({attribute:!1})],t.prototype,"day",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"filterParams",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"datePickerProps",void 0),t=c([(0,o.w)("md-datepicker-month")],t),e.ELEMENT=t}(i||(i={}))},878(e,t,r){r.d(t,{J4:()=>c,Mw:()=>s,WV:()=>u,fi:()=>d,mK:()=>n,pp:()=>a,ro:()=>f,tB:()=>o,tF:()=>p,t_:()=>v,tj:()=>l});var i=r(5796);function o(){return i.DateTime.local()}function n(e,t){return"Monday"===t?e.startOf("week"):e.startOf("week").minus({days:1})}function s(e){return e.startOf("month")}function a(e){return e.get("day")}function l(e){return e.get("month")}function d(e,t){return e.plus({days:t})}function c(e,t){return e.plus({weeks:t})}function u(e,t){return e.setLocale(t)}function f(e,t){return e.day===t.day&&e.month===t.month&&e.year===t.year}function p(e,t){return e.month===t.month}function v(e,t){var r,i,o,n,s,a;return(null===(r=t.minDate)||void 0===r?void 0:r.startOf("day"))&&e.startOf("day")<(null===(i=t.minDate)||void 0===i?void 0:i.startOf("day"))||(null===(o=t.maxDate)||void 0===o?void 0:o.startOf("day"))&&e.startOf("day")>(null===(n=t.maxDate)||void 0===n?void 0:n.startOf("day"))||(null===(s=t.filterDate)||void 0===s?void 0:s.call(t,e))||(null===(a=t.filterDate)||void 0===a?void 0:a.call(t,e.toISODate()))||!1}},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=r},291(e){e.exports=o},318(e){e.exports=i},5796(e){e.exports=n}};const a={};function l(e){const t=a[e];if(void 0!==t)return t.exports;const r=a[e]={exports:{}};return s[e](r,r.exports,l),r.exports}l.m=s,(()=>{const e=[];l.O=(t,r,i,o)=>{if(r){o=o||0;for(var n=e.length;n>0&&e[n-1][2]>o;n--)e[n]=e[n-1];return void(e[n]=[r,i,o])}let s=1/0;for(n=0;n<e.length;n++){let[r,i,o]=e[n],d=!0;for(var a=0;a<r.length;a++)(!1&o||s>=o)&&Object.keys(l.O).every(e=>l.O[e](r[a]))?r.splice(a--,1):(d=!1,o<s&&(s=o));if(d){e.splice(n--,1);const r=i();void 0!==r&&(t=r)}}return t}})(),l.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var i=t[r++],o=t[r++];l.o(e,i)?0===o&&r++:0===o?Object.defineProperty(e,i,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,i,{enumerable:!0,get:o})}else for(var i in t)l.o(t,i)&&!l.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={878:0,2267:0,8371:0,8497:0};l.O.j=t=>0===e[t];const t=(t,r)=>{let[i,o,n]=r;var s,a,d=0;if(i.some(t=>0!==e[t])){for(s in o)l.o(o,s)&&(l.m[s]=o[s]);if(n)var c=n(l)}for(t&&t(r);d<i.length;d++)a=i[d],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return l.O(c)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();let d=l.O(void 0,[9609,4084,3305,4739,7154,9773,5983,519,3842,3639,9669,801],()=>l(8371));return d=l.O(d),d})());
8
+ `),t=(0,n.J4)(t,1)}while((0,n.tF)(t,this.day)||r.length<6);return r}}static get styles(){return[s.A,d.A]}render(){return a.html` <div class="md-datepicker__month">${this.renderWeeks()}</div> `}};c([(0,l.property)({attribute:!1})],t.prototype,"day",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"filterParams",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"datePickerProps",void 0),t=c([(0,o.w)("md-datepicker-month")],t),e.ELEMENT=t}(i||(i={}))},878(e,t,r){r.d(t,{J4:()=>c,Mw:()=>s,WV:()=>u,fi:()=>d,mK:()=>n,pp:()=>a,ro:()=>f,tB:()=>o,tF:()=>p,t_:()=>v,tj:()=>l});var i=r(5796);function o(){return i.DateTime.local()}function n(e,t){return"Monday"===t?e.startOf("week"):e.startOf("week").minus({days:1})}function s(e){return e.startOf("month")}function a(e){return e.get("day")}function l(e){return e.get("month")}function d(e,t){return e.plus({days:t})}function c(e,t){return e.plus({weeks:t})}function u(e,t){return e.setLocale(t)}function f(e,t){return e.day===t.day&&e.month===t.month&&e.year===t.year}function p(e,t){return e.month===t.month}function v(e,t){var r,i,o,n,s,a;return(null===(r=t.minDate)||void 0===r?void 0:r.startOf("day"))&&e.startOf("day")<(null===(i=t.minDate)||void 0===i?void 0:i.startOf("day"))||(null===(o=t.maxDate)||void 0===o?void 0:o.startOf("day"))&&e.startOf("day")>(null===(n=t.maxDate)||void 0===n?void 0:n.startOf("day"))||(null===(s=t.filterDate)||void 0===s?void 0:s.call(t,e))||(null===(a=t.filterDate)||void 0===a?void 0:a.call(t,e.toISODate()))||!1}},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=r},291(e){e.exports=i},318(e){e.exports=o},5796(e){e.exports=n}};const a={};function l(e){const t=a[e];if(void 0!==t)return t.exports;const r=a[e]={exports:{}};return s[e](r,r.exports,l),r.exports}l.m=s,(()=>{const e=[];l.O=(t,r,i,o)=>{if(r){o=o||0;for(var n=e.length;n>0&&e[n-1][2]>o;n--)e[n]=e[n-1];return void(e[n]=[r,i,o])}let s=1/0;for(n=0;n<e.length;n++){let[r,i,o]=e[n],d=!0;for(var a=0;a<r.length;a++)(!1&o||s>=o)&&Object.keys(l.O).every(e=>l.O[e](r[a]))?r.splice(a--,1):(d=!1,o<s&&(s=o));if(d){e.splice(n--,1);const r=i();void 0!==r&&(t=r)}}return t}})(),l.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var i=t[r++],o=t[r++];l.o(e,i)?0===o&&r++:0===o?Object.defineProperty(e,i,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,i,{enumerable:!0,get:o})}else for(var i in t)l.o(t,i)&&!l.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={878:0,2267:0,8371:0,8497:0};l.O.j=t=>0===e[t];const t=(t,r)=>{let[i,o,n]=r;var s,a,d=0;if(i.some(t=>0!==e[t])){for(s in o)l.o(o,s)&&(l.m[s]=o[s]);if(n)var c=n(l)}for(t&&t(r);d<i.length;d++)a=i[d],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return l.O(c)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();let d=l.O(void 0,[9609,4084,3305,4739,7154,9773,5983,519,3842,3639,9669,801],()=>l(8371));return d=l.O(d),d})());
@@ -1,8 +1,8 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("luxon"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","luxon"],t);else{var r="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("luxon")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/style-map.js"],e["lit/directives/if-defined.js"],e.luxon);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,(e,t,r,i,o,s)=>(()=>{"use strict";var n={801(e,t,r){r.r(t),r.d(t,{DatePickerWeek:()=>i}),r(3639);var i,o=r(9609),s=r(878),n=r(4084),a=r(7161),l=r(429),d=r(3842),c=function(e,t,r,i){var o,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.startOfWeekDay=(0,s.tB)(),this.viewAnchorMonth=(0,s.tB)().month,this.filterParams=void 0,this.datePickerProps=void 0,this.renderDays=()=>[0,1,2,3,4,5,6].map(e=>{const t=(0,s.fi)(this.startOfWeekDay,e);return a.html`
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("luxon"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/style-map.js","luxon"],t);else{var r="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("luxon")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"],e["lit/directives/style-map.js"],e.luxon);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,(e,t,r,i,o,s)=>(()=>{"use strict";var n={801(e,t,r){r.r(t),r.d(t,{DatePickerWeek:()=>i}),r(3639);var i,o=r(9609),s=r(878),n=r(4084),a=r(7161),l=r(429),d=r(3842),c=function(e,t,r,i){var o,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.startOfWeekDay=(0,s.tB)(),this.viewAnchorMonth=(0,s.tB)().month,this.filterParams=void 0,this.datePickerProps=void 0,this.renderDays=()=>[0,1,2,3,4,5,6].map(e=>{const t=(0,s.fi)(this.startOfWeekDay,e);return a.html`
2
2
  <md-datepicker-day
3
3
  .viewAnchorMonth=${this.viewAnchorMonth}
4
4
  .day=${t}
5
5
  .filterParams=${this.filterParams}
6
6
  .datePickerProps=${this.datePickerProps}
7
7
  ></md-datepicker-day>
8
- `})}static get styles(){return[n.A,d.A]}render(){return a.html` <div class="md-datepicker__week">${this.renderDays()}</div> `}};c([(0,l.property)({attribute:!1})],t.prototype,"startOfWeekDay",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"viewAnchorMonth",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"filterParams",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"datePickerProps",void 0),t=c([(0,o.w)("md-datepicker-week")],t),e.ELEMENT=t}(i||(i={}))},878(e,t,r){r.d(t,{WV:()=>a,fi:()=>n,pp:()=>s,ro:()=>l,tB:()=>o,t_:()=>d});var i=r(5796);function o(){return i.DateTime.local()}function s(e){return e.get("day")}function n(e,t){return e.plus({days:t})}function a(e,t){return e.setLocale(t)}function l(e,t){return e.day===t.day&&e.month===t.month&&e.year===t.year}function d(e,t){var r,i,o,s,n,a;return(null===(r=t.minDate)||void 0===r?void 0:r.startOf("day"))&&e.startOf("day")<(null===(i=t.minDate)||void 0===i?void 0:i.startOf("day"))||(null===(o=t.maxDate)||void 0===o?void 0:o.startOf("day"))&&e.startOf("day")>(null===(s=t.maxDate)||void 0===s?void 0:s.startOf("day"))||(null===(n=t.filterDate)||void 0===n?void 0:n.call(t,e))||(null===(a=t.filterDate)||void 0===a?void 0:a.call(t,e.toISODate()))||!1}},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=r},291(e){e.exports=o},318(e){e.exports=i},5796(e){e.exports=s}};const a={};function l(e){const t=a[e];if(void 0!==t)return t.exports;const r=a[e]={exports:{}};return n[e](r,r.exports,l),r.exports}l.m=n,(()=>{const e=[];l.O=(t,r,i,o)=>{if(r){o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];return void(e[s]=[r,i,o])}let n=1/0;for(s=0;s<e.length;s++){let[r,i,o]=e[s],d=!0;for(var a=0;a<r.length;a++)(!1&o||n>=o)&&Object.keys(l.O).every(e=>l.O[e](r[a]))?r.splice(a--,1):(d=!1,o<n&&(n=o));if(d){e.splice(s--,1);const r=i();void 0!==r&&(t=r)}}return t}})(),l.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var i=t[r++],o=t[r++];l.o(e,i)?0===o&&r++:0===o?Object.defineProperty(e,i,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,i,{enumerable:!0,get:o})}else for(var i in t)l.o(t,i)&&!l.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={801:0,878:0,3441:0,8497:0};l.O.j=t=>0===e[t];const t=(t,r)=>{let[i,o,s]=r;var n,a,d=0;if(i.some(t=>0!==e[t])){for(n in o)l.o(o,n)&&(l.m[n]=o[n]);if(s)var c=s(l)}for(t&&t(r);d<i.length;d++)a=i[d],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return l.O(c)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();let d=l.O(void 0,[9609,4084,3305,4739,7154,9773,5983,519,3842,3639,9669],()=>l(801));return d=l.O(d),d})());
8
+ `})}static get styles(){return[n.A,d.A]}render(){return a.html` <div class="md-datepicker__week">${this.renderDays()}</div> `}};c([(0,l.property)({attribute:!1})],t.prototype,"startOfWeekDay",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"viewAnchorMonth",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"filterParams",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"datePickerProps",void 0),t=c([(0,o.w)("md-datepicker-week")],t),e.ELEMENT=t}(i||(i={}))},878(e,t,r){r.d(t,{WV:()=>a,fi:()=>n,pp:()=>s,ro:()=>l,tB:()=>o,t_:()=>d});var i=r(5796);function o(){return i.DateTime.local()}function s(e){return e.get("day")}function n(e,t){return e.plus({days:t})}function a(e,t){return e.setLocale(t)}function l(e,t){return e.day===t.day&&e.month===t.month&&e.year===t.year}function d(e,t){var r,i,o,s,n,a;return(null===(r=t.minDate)||void 0===r?void 0:r.startOf("day"))&&e.startOf("day")<(null===(i=t.minDate)||void 0===i?void 0:i.startOf("day"))||(null===(o=t.maxDate)||void 0===o?void 0:o.startOf("day"))&&e.startOf("day")>(null===(s=t.maxDate)||void 0===s?void 0:s.startOf("day"))||(null===(n=t.filterDate)||void 0===n?void 0:n.call(t,e))||(null===(a=t.filterDate)||void 0===a?void 0:a.call(t,e.toISODate()))||!1}},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=r},291(e){e.exports=i},318(e){e.exports=o},5796(e){e.exports=s}};const a={};function l(e){const t=a[e];if(void 0!==t)return t.exports;const r=a[e]={exports:{}};return n[e](r,r.exports,l),r.exports}l.m=n,(()=>{const e=[];l.O=(t,r,i,o)=>{if(r){o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];return void(e[s]=[r,i,o])}let n=1/0;for(s=0;s<e.length;s++){let[r,i,o]=e[s],d=!0;for(var a=0;a<r.length;a++)(!1&o||n>=o)&&Object.keys(l.O).every(e=>l.O[e](r[a]))?r.splice(a--,1):(d=!1,o<n&&(n=o));if(d){e.splice(s--,1);const r=i();void 0!==r&&(t=r)}}return t}})(),l.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var i=t[r++],o=t[r++];l.o(e,i)?0===o&&r++:0===o?Object.defineProperty(e,i,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,i,{enumerable:!0,get:o})}else for(var i in t)l.o(t,i)&&!l.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={801:0,878:0,3441:0,8497:0};l.O.j=t=>0===e[t];const t=(t,r)=>{let[i,o,s]=r;var n,a,d=0;if(i.some(t=>0!==e[t])){for(n in o)l.o(o,n)&&(l.m[n]=o[n]);if(s)var c=s(l)}for(t&&t(r);d<i.length;d++)a=i[d],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return l.O(c)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();let d=l.O(void 0,[9609,4084,3305,4739,7154,9773,5983,519,3842,3639,9669],()=>l(801));return d=l.O(d),d})());
@@ -1,4 +1,4 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit/directives/repeat.js"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit/directives/repeat.js"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit/directives/repeat.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/style-map.js"],e["lit/directives/if-defined.js"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx,e["lit/directives/repeat.js"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,(e,t,i,s,o,n,r,a,l)=>(()=>{"use strict";var d={621(e,t,i){i.r(t),i.d(t,{Dropdown:()=>s}),i(1821);var s,o=i(2900),n=i(7704),r=i(2050),a=i(4084),l=i(7161),d=i(429),p=i(5125),h=i(291),u=i(8175),c=i(318),m=i(5057),f=function(e,t,i,s){var o,n=arguments.length,r=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t,i,s){return new(i||(i=Promise))(function(o,n){function r(e){try{l(s.next(e))}catch(e){n(e)}}function a(e){try{l(s.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((s=s.apply(e,t||[])).next())})};!function(e){class t{determineMessageType(e){return e.reduce((e,t)=>"error"===t?e:t.type,"")}filterMessagesByType(e,t){return e.reduce((e,i)=>i.type===t?e.concat(i.message):e,[])}}e.MessageController=t;let i=class extends((0,n.yC)(l.LitElement)){constructor(){super(...arguments),this.title="Select...",this.options=[],this.optionId="",this.optionValue="",this.defaultOption="",this.disabled=!1,this.customTabIndex=0,this.allowUnselected=!1,this.visibleOptions=8,this.newMomentum=!1,this.compact=!1,this.searchable=!1,this.searchItem=!1,this.inputValue="",this.placeholder="Select...",this.readOnly=!1,this.autofocus=!1,this.leftIcon="",this.trimSpace=!1,this.resultsTextLocalization="No Results",this.pill=!1,this.helpText="",this.messageArr=[],this.htmlId="",this.clearAriaLabel="Clear",this.clearIconHeight="auto",this.arrowAriaLabel="Expand",this.popupChevronAriaHidden="true",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForDropdown="",this.dropdownRenderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,this.messageController=new t,this.lastMaxHeight="",this.onOutsideClick=e=>{let t=!1;const i=e.composedPath();i.length&&(t=!!i.find(e=>e===this),t||this.expanded&&this.collapse())},this.onKeyDown=e=>{var t;if(!this.disabled&&!this.readOnly)switch(e.code){case o.Uz.Tab:this.expanded&&(e.stopPropagation(),this.collapse());break;case o.Uz.Space:case o.Uz.Enter:{const i=e.composedPath()[0];if(null===(t=i.closest)||void 0===t?void 0:t.call(i,".md-dropdown-button"))break;e.preventDefault(),this.expanded?(this.select(),this.collapse()):this.expand();break}case o.Uz.ArrowDown:e.preventDefault(),this.expanded?this.focusNext():this.expand();break;case o.Uz.ArrowUp:e.preventDefault(),this.expanded?this.focusPrev():this.expand();break;case o.Uz.Home:e.preventDefault(),this.expanded?this.focusFirst():this.expand();break;case o.Uz.End:e.preventDefault(),this.expanded?this.focusLast():this.expand();break;case o.Uz.Escape:case o.Uz.Backspace:this.expanded&&(e.preventDefault(),e.stopPropagation(),this.collapse())}},this.notifyInputValueChanged=(0,r.sg)(e=>{this.dispatchEvent(new CustomEvent("dropdown-input",{composed:!0,bubbles:!0,detail:{value:e}})),this.notifySearchResultCount(),requestAnimationFrame(()=>{this.input.focus()})},250)}connectedCallback(){super.connectedCallback(),this.setupEvents()}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(e){super.firstUpdated(e),e.forEach((e,t)=>{if("defaultOption"===t&&this.defaultOption){const{key:e}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=e}}),this.searchable&&this.setInitialValue()}updated(e){super.updated(e),e.forEach((e,t)=>{if("options"===t&&this.updateRenderOptions(),"selectedKey"===t&&this.dropdownRenderOptions.some(e=>e.key===this.selectedKey)){const e=this.filteredOptions.findIndex(e=>e.key===this.selectedKey);-1!==e&&this.focusToIndex(e),this.searchable&&this.setInitialValue()}if("expanded"===t&&(this.updateListDOM(),this.updateActiveDescendant()),"focusedIndex"===t&&(this.updateListDOM(),this.updateActiveDescendant()),"defaultOption"===t&&this.defaultOption){const{key:e}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=e}})}notifySearchResultCount(){if(this.searchResultAriaLabel){const e=/{{.*?}}/g;this.ariaLabelForDropdown=this.searchResultAriaLabel.replace(e,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForDropdown=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForDropdown=`Dropdown Element, ${this.filteredOptions.length} results found.`}setInitialValue(){var e;if(this.options.length){const t=this.dropdownRenderOptions.find(e=>e.key===this.selectedKey),i=null==t?void 0:t.option;if(i){const t=this.getOptionValue(i);this.inputValue=t,this.setInputValue(t),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(i)),this.notifyInputValueChanged(t)}}}getOptionValue(e){return this.isOptionObject(e)&&!this.optionValue?Object.values(e)[0]:this.isOptionObject(e)?e[this.optionValue]:e}getOptionId(e){return this.isOptionObject(e)?e[this.optionId]:e}isOptionObject(e){return"object"==typeof e&&null!==e}updateRenderOptions(){const e=[];this.focusReset();const t=this.options.reduce((t,i)=>{const{key:s,value:o}=this.getOptionKeyValuePair(i);return-1!==e.indexOf(s)?console.error(`Dropdown already have option key: "${s}". Ignoring `):s?(e.push(s),t.push({key:s,value:o,option:i})):console.error(`Dropdown key is not defined: "${s}". (value: "${o}"). Ignoring `),t},[]);this.allowUnselected&&t.unshift({key:"",value:this.title}),this.dropdownRenderOptions=t}updateActiveDescendant(){const e=this.searchable?this.input:this.label;if(e){const t=this.expanded&&-1!==this.focusedIndex?`combo-${this.focusedIndex}`:"";e.setAttribute("aria-activedescendant",t)}}updateListDOM(){return y(this,void 0,void 0,function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))})}resizeDropdownList(){return y(this,void 0,void 0,function*(){yield new Promise(e=>requestAnimationFrame(()=>{if(this.optionsListItems)if(this.optionsListItems.length>this.visibleOptions){const e=`${[...this.optionsListItems].slice(0,this.visibleOptions).reduce((e,t)=>e+t.offsetHeight,0)}px`;this.lastMaxHeight!==e&&(this.optionsList.style.maxHeight=e,this.lastMaxHeight=e)}else{const e="auto";this.lastMaxHeight!==e&&(this.optionsList.style.maxHeight=e,this.lastMaxHeight=e)}e()}))})}handleFocusIn(e){var t;this.disabled||null===(t=super.handleFocusIn)||void 0===t||t.call(this,e),this.dispatchEvent(new CustomEvent("dropdown-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(e){var t;null===(t=super.handleFocusOut)||void 0===t||t.call(this,e),this.dispatchEvent(new CustomEvent("dropdown-focus-out",{composed:!0,bubbles:!0}))}static get styles(){return[a.A,m.A]}get filteredOptions(){const e=this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue;if(!e.trim())return this.dropdownRenderOptions;const t=this.dropdownRenderOptions.filter(t=>t.value.toLowerCase().includes(e.toLowerCase()));return 0===t.length?[{key:"no-result",value:"No Result",disabled:!0}]:t}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}setVisualListbox(e){this.expanded=e}updateOnNextFrame(e){requestAnimationFrame(e)}setInputValue(e=""){this.input.value=e}shouldChangeButton(){const e=this.input&&this.input.value.length>0;return e&&document.dispatchEvent(new CustomEvent("on-widget-update")),e}toggleVisualListBox(e){var t,i;if(!this.readOnly){if(e.target.classList.contains("md-dropdown-input"))e.target.focus();else if("md-icon"===e.target.localName){const s=null===(i=null===(t=e.target.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.parentElement;if(s){const e=s.querySelector(".md-dropdown-input");setTimeout(()=>{e.focus()},10)}}this.expanded?this.collapse():(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.expand()),this.input.focus()}}handleRemoveAll(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}removeAllSelected(){var e;this.focusReset(),this.selectedKey="",this.inputValue="",this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus()}),this.dispatchEvent(new CustomEvent("dropdown-selection-removed",{composed:!0,bubbles:!0,detail:{}}))}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("remove-all-selected",this.removeAllSelected)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown),this.removeEventListener("remove-all-selected",this.removeAllSelected)}expand(){if(this.expanded=!0,document.dispatchEvent(new CustomEvent("on-widget-update")),!this.searchable&&this.label&&this.label.focus(),-1===this.focusedIndex)if(this.selectedKey){const e=this.filteredOptions.findIndex(e=>e.key===this.selectedKey);-1!==e?this.focusedIndex=e:this.focusNext()}else this.focusNext()}collapse(){if(this.expanded=!1,this.searchable&&this.selectedKey){const e=this.dropdownRenderOptions.find(e=>e.key===this.selectedKey);if(null==e?void 0:e.option){const t=this.getOptionValue(e.option);this.inputValue=t,this.setInputValue(t)}}}toggle(){this.expanded?this.collapse():this.expand()}select(){if(-1!==this.focusedIndex){const e=this.filteredOptions[this.focusedIndex];if(!e||"no-result"===e.key)return;const t=e.key;t!==this.selectedKey&&(this.selectedKey=t,this.dispatchEvent(new CustomEvent("dropdown-selected",{composed:!0,bubbles:!0,detail:{option:"option"in e&&e.option||e.key}})))}}onLabelClick(){this.label.focus(),this.readOnly||this.toggle()}focusFirst(){this.filteredOptions.length&&(this.focusedIndex=0)}focusLast(){this.filteredOptions.length&&(this.focusedIndex=this.filteredOptions.length-1)}focusNext(){this.filteredOptions.length&&(-1!==this.focusedIndex&&this.focusedIndex<this.filteredOptions.length-1?this.focusedIndex++:this.focusFirst())}focusPrev(){this.filteredOptions.length&&(this.focusedIndex>0?this.focusedIndex--:this.focusLast())}focusToIndex(e){this.filteredOptions.length&&e>=0&&e<=this.filteredOptions.length-1&&(this.focusedIndex=e)}focusToIndexWithOption(e){const t=this.filteredOptions.findIndex(t=>t.key===e.key);this.filteredOptions.length&&t>=0&&t<=this.filteredOptions.length-1&&(this.focusedIndex=t)}focusReset(){this.focusedIndex=-1}scrollToIndex(e){return y(this,void 0,void 0,function*(){yield new Promise(t=>{requestAnimationFrame(()=>{if(this.optionsListItems&&this.optionsListItems.length>this.visibleOptions&&e>=0&&this.optionsListItems.length>e){let t=0;const{top:i,bottom:s}=this.optionsList.getBoundingClientRect(),o=this.optionsListItems[e],n=this.optionsListItems[e+1]||o,r=this.optionsListItems[e-1]||o,a=n.getBoundingClientRect(),l=r.getBoundingClientRect();a.bottom>s?t=a.bottom-s+2:l.top<i&&(t=l.top-i-2),this.optionsList.scrollTop+=t}t()})})})}getOptionKeyValuePair(e){if("string"==typeof e)return{key:e.trim(),value:e};if(e&&"object"==typeof e){const t=Object.keys(e),i=Object.values(e);if(t.length){if(1===t.length||!this.optionId)return{key:t[0],value:i[0]};if(this.optionId)return{key:e[this.optionId],value:e[this.optionValue||this.optionId]}}}return{key:"undefined",value:"undefined"}}get labelTitle(){if(this.selectedKey){const e=this.dropdownRenderOptions.find(e=>e.key===this.selectedKey);if(e)return e.value}return this.title}get dropDownClassMap(){return{"md-dropdown__expanded":this.expanded,[`md-${this.messageType}`]:!!this.messageType,"md-new-dropdown":this.newMomentum,"md-dropdown--pill":!0===this.pill}}handleInput(e){const t=e.target.value;this.inputValue=t.trim(),this.notifyInputValueChanged(t.trim())}helpTextTemplate(){return this.helpText?l.html`
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/repeat.js"),require("lit/directives/style-map.js"),require("mobx"));else if("function"==typeof define&&define.amd)define(["@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/repeat.js","lit/directives/style-map.js","mobx"],t);else{var i="object"==typeof exports?t(require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/repeat.js"),require("lit/directives/style-map.js"),require("mobx")):t(e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"],e["lit/directives/repeat.js"],e["lit/directives/style-map.js"],e.mobx);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,(e,t,i,s,o,n,r,a,l)=>(()=>{"use strict";var d={621(e,t,i){i.r(t),i.d(t,{Dropdown:()=>s}),i(1821);var s,o=i(2900),n=i(7704),r=i(2050),a=i(4084),l=i(7161),d=i(429),p=i(5125),h=i(291),u=i(8175),c=i(318),m=i(5057),f=function(e,t,i,s){var o,n=arguments.length,r=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t,i,s){return new(i||(i=Promise))(function(o,n){function r(e){try{l(s.next(e))}catch(e){n(e)}}function a(e){try{l(s.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((s=s.apply(e,t||[])).next())})};!function(e){class t{determineMessageType(e){return e.reduce((e,t)=>"error"===t?e:t.type,"")}filterMessagesByType(e,t){return e.reduce((e,i)=>i.type===t?e.concat(i.message):e,[])}}e.MessageController=t;let i=class extends((0,n.yC)(l.LitElement)){constructor(){super(...arguments),this.title="Select...",this.options=[],this.optionId="",this.optionValue="",this.defaultOption="",this.disabled=!1,this.customTabIndex=0,this.allowUnselected=!1,this.visibleOptions=8,this.newMomentum=!1,this.compact=!1,this.searchable=!1,this.searchItem=!1,this.inputValue="",this.placeholder="Select...",this.readOnly=!1,this.autofocus=!1,this.leftIcon="",this.trimSpace=!1,this.resultsTextLocalization="No Results",this.pill=!1,this.helpText="",this.messageArr=[],this.htmlId="",this.clearAriaLabel="Clear",this.clearIconHeight="auto",this.arrowAriaLabel="Expand",this.popupChevronAriaHidden="true",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForDropdown="",this.dropdownRenderOptions=[],this.selectedKey="",this.expanded=!1,this.focusedIndex=-1,this.messageController=new t,this.lastMaxHeight="",this.onOutsideClick=e=>{let t=!1;const i=e.composedPath();i.length&&(t=!!i.find(e=>e===this),t||this.expanded&&this.collapse())},this.onKeyDown=e=>{var t;if(!this.disabled&&!this.readOnly)switch(e.code){case o.Uz.Tab:this.expanded&&(e.stopPropagation(),this.collapse());break;case o.Uz.Space:case o.Uz.Enter:{const i=e.composedPath()[0];if(null===(t=i.closest)||void 0===t?void 0:t.call(i,".md-dropdown-button"))break;e.preventDefault(),this.expanded?(this.select(),this.collapse()):this.expand();break}case o.Uz.ArrowDown:e.preventDefault(),this.expanded?this.focusNext():this.expand();break;case o.Uz.ArrowUp:e.preventDefault(),this.expanded?this.focusPrev():this.expand();break;case o.Uz.Home:e.preventDefault(),this.expanded?this.focusFirst():this.expand();break;case o.Uz.End:e.preventDefault(),this.expanded?this.focusLast():this.expand();break;case o.Uz.Escape:case o.Uz.Backspace:this.expanded&&(e.preventDefault(),e.stopPropagation(),this.collapse())}},this.notifyInputValueChanged=(0,r.sg)(e=>{this.dispatchEvent(new CustomEvent("dropdown-input",{composed:!0,bubbles:!0,detail:{value:e}})),this.notifySearchResultCount(),requestAnimationFrame(()=>{this.input.focus()})},250)}connectedCallback(){super.connectedCallback(),this.setupEvents()}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(e){super.firstUpdated(e),e.forEach((e,t)=>{if("defaultOption"===t&&this.defaultOption){const{key:e}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=e}}),this.searchable&&this.setInitialValue()}updated(e){super.updated(e),e.forEach((e,t)=>{if("options"===t&&this.updateRenderOptions(),"selectedKey"===t&&this.dropdownRenderOptions.some(e=>e.key===this.selectedKey)){const e=this.filteredOptions.findIndex(e=>e.key===this.selectedKey);-1!==e&&this.focusToIndex(e),this.searchable&&this.setInitialValue()}if("expanded"===t&&(this.updateListDOM(),this.updateActiveDescendant()),"focusedIndex"===t&&(this.updateListDOM(),this.updateActiveDescendant()),"defaultOption"===t&&this.defaultOption){const{key:e}=this.getOptionKeyValuePair(this.defaultOption);this.selectedKey=e}})}notifySearchResultCount(){if(this.searchResultAriaLabel){const e=/{{.*?}}/g;this.ariaLabelForDropdown=this.searchResultAriaLabel.replace(e,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForDropdown=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForDropdown=`Dropdown Element, ${this.filteredOptions.length} results found.`}setInitialValue(){var e;if(this.options.length){const t=this.dropdownRenderOptions.find(e=>e.key===this.selectedKey),i=null==t?void 0:t.option;if(i){const t=this.getOptionValue(i);this.inputValue=t,this.setInputValue(t),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(i)),this.notifyInputValueChanged(t)}}}getOptionValue(e){return this.isOptionObject(e)&&!this.optionValue?Object.values(e)[0]:this.isOptionObject(e)?e[this.optionValue]:e}getOptionId(e){return this.isOptionObject(e)?e[this.optionId]:e}isOptionObject(e){return"object"==typeof e&&null!==e}updateRenderOptions(){const e=[];this.focusReset();const t=this.options.reduce((t,i)=>{const{key:s,value:o}=this.getOptionKeyValuePair(i);return-1!==e.indexOf(s)?console.error(`Dropdown already have option key: "${s}". Ignoring `):s?(e.push(s),t.push({key:s,value:o,option:i})):console.error(`Dropdown key is not defined: "${s}". (value: "${o}"). Ignoring `),t},[]);this.allowUnselected&&t.unshift({key:"",value:this.title}),this.dropdownRenderOptions=t}updateActiveDescendant(){const e=this.searchable?this.input:this.label;if(e){const t=this.expanded&&-1!==this.focusedIndex?`combo-${this.focusedIndex}`:"";e.setAttribute("aria-activedescendant",t)}}updateListDOM(){return y(this,void 0,void 0,function*(){this.expanded&&(yield this.resizeDropdownList(),yield this.scrollToIndex(this.focusedIndex))})}resizeDropdownList(){return y(this,void 0,void 0,function*(){yield new Promise(e=>requestAnimationFrame(()=>{if(this.optionsListItems)if(this.optionsListItems.length>this.visibleOptions){const e=`${[...this.optionsListItems].slice(0,this.visibleOptions).reduce((e,t)=>e+t.offsetHeight,0)}px`;this.lastMaxHeight!==e&&(this.optionsList.style.maxHeight=e,this.lastMaxHeight=e)}else{const e="auto";this.lastMaxHeight!==e&&(this.optionsList.style.maxHeight=e,this.lastMaxHeight=e)}e()}))})}handleFocusIn(e){var t;this.disabled||null===(t=super.handleFocusIn)||void 0===t||t.call(this,e),this.dispatchEvent(new CustomEvent("dropdown-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(e){var t;null===(t=super.handleFocusOut)||void 0===t||t.call(this,e),this.dispatchEvent(new CustomEvent("dropdown-focus-out",{composed:!0,bubbles:!0}))}static get styles(){return[a.A,m.A]}get filteredOptions(){const e=this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue;if(!e.trim())return this.dropdownRenderOptions;const t=this.dropdownRenderOptions.filter(t=>t.value.toLowerCase().includes(e.toLowerCase()));return 0===t.length?[{key:"no-result",value:"No Result",disabled:!0}]:t}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}setVisualListbox(e){this.expanded=e}updateOnNextFrame(e){requestAnimationFrame(e)}setInputValue(e=""){this.input.value=e}shouldChangeButton(){const e=this.input&&this.input.value.length>0;return e&&document.dispatchEvent(new CustomEvent("on-widget-update")),e}toggleVisualListBox(e){var t,i;if(!this.readOnly){if(e.target.classList.contains("md-dropdown-input"))e.target.focus();else if("md-icon"===e.target.localName){const s=null===(i=null===(t=e.target.parentElement)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.parentElement;if(s){const e=s.querySelector(".md-dropdown-input");setTimeout(()=>{e.focus()},10)}}this.expanded?this.collapse():(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.expand()),this.input.focus()}}handleRemoveAll(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}removeAllSelected(){var e;this.focusReset(),this.selectedKey="",this.inputValue="",this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.updateOnNextFrame(()=>{this.input.focus()}),this.dispatchEvent(new CustomEvent("dropdown-selection-removed",{composed:!0,bubbles:!0,detail:{}}))}setupEvents(){document.addEventListener("click",this.onOutsideClick),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("remove-all-selected",this.removeAllSelected)}teardownEvents(){document.removeEventListener("click",this.onOutsideClick),this.removeEventListener("keydown",this.onKeyDown),this.removeEventListener("remove-all-selected",this.removeAllSelected)}expand(){if(this.expanded=!0,document.dispatchEvent(new CustomEvent("on-widget-update")),!this.searchable&&this.label&&this.label.focus(),-1===this.focusedIndex)if(this.selectedKey){const e=this.filteredOptions.findIndex(e=>e.key===this.selectedKey);-1!==e?this.focusedIndex=e:this.focusNext()}else this.focusNext()}collapse(){if(this.expanded=!1,this.searchable&&this.selectedKey){const e=this.dropdownRenderOptions.find(e=>e.key===this.selectedKey);if(null==e?void 0:e.option){const t=this.getOptionValue(e.option);this.inputValue=t,this.setInputValue(t)}}}toggle(){this.expanded?this.collapse():this.expand()}select(){if(-1!==this.focusedIndex){const e=this.filteredOptions[this.focusedIndex];if(!e||"no-result"===e.key)return;const t=e.key;t!==this.selectedKey&&(this.selectedKey=t,this.dispatchEvent(new CustomEvent("dropdown-selected",{composed:!0,bubbles:!0,detail:{option:"option"in e&&e.option||e.key}})))}}onLabelClick(){this.label.focus(),this.readOnly||this.toggle()}focusFirst(){this.filteredOptions.length&&(this.focusedIndex=0)}focusLast(){this.filteredOptions.length&&(this.focusedIndex=this.filteredOptions.length-1)}focusNext(){this.filteredOptions.length&&(-1!==this.focusedIndex&&this.focusedIndex<this.filteredOptions.length-1?this.focusedIndex++:this.focusFirst())}focusPrev(){this.filteredOptions.length&&(this.focusedIndex>0?this.focusedIndex--:this.focusLast())}focusToIndex(e){this.filteredOptions.length&&e>=0&&e<=this.filteredOptions.length-1&&(this.focusedIndex=e)}focusToIndexWithOption(e){const t=this.filteredOptions.findIndex(t=>t.key===e.key);this.filteredOptions.length&&t>=0&&t<=this.filteredOptions.length-1&&(this.focusedIndex=t)}focusReset(){this.focusedIndex=-1}scrollToIndex(e){return y(this,void 0,void 0,function*(){yield new Promise(t=>{requestAnimationFrame(()=>{if(this.optionsListItems&&this.optionsListItems.length>this.visibleOptions&&e>=0&&this.optionsListItems.length>e){let t=0;const{top:i,bottom:s}=this.optionsList.getBoundingClientRect(),o=this.optionsListItems[e],n=this.optionsListItems[e+1]||o,r=this.optionsListItems[e-1]||o,a=n.getBoundingClientRect(),l=r.getBoundingClientRect();a.bottom>s?t=a.bottom-s+2:l.top<i&&(t=l.top-i-2),this.optionsList.scrollTop+=t}t()})})})}getOptionKeyValuePair(e){if("string"==typeof e)return{key:e.trim(),value:e};if(e&&"object"==typeof e){const t=Object.keys(e),i=Object.values(e);if(t.length){if(1===t.length||!this.optionId)return{key:t[0],value:i[0]};if(this.optionId)return{key:e[this.optionId],value:e[this.optionValue||this.optionId]}}}return{key:"undefined",value:"undefined"}}get labelTitle(){if(this.selectedKey){const e=this.dropdownRenderOptions.find(e=>e.key===this.selectedKey);if(e)return e.value}return this.title}get comboboxAriaLabel(){return this.ariaLabel?`${this.ariaLabel}, ${this.labelTitle}`:this.labelTitle}get dropDownClassMap(){return{"md-dropdown__expanded":this.expanded,[`md-${this.messageType}`]:!!this.messageType,"md-new-dropdown":this.newMomentum,"md-dropdown--pill":!0===this.pill}}handleInput(e){const t=e.target.value;this.inputValue=t.trim(),this.notifyInputValueChanged(t.trim())}helpTextTemplate(){return this.helpText?l.html`
2
2
  <md-help-text
3
3
  class="help-text ${(0,p.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
4
4
  .message=${this.helpText}
@@ -69,7 +69,7 @@
69
69
  type="text"
70
70
  role="combobox"
71
71
  aria-autocomplete="both"
72
- aria-label=${(0,h.ifDefined)(this.inputValue?void 0:this.title)}
72
+ aria-label=${(0,h.ifDefined)(this.ariaLabel?this.ariaLabel:this.inputValue?void 0:this.title)}
73
73
  part="dropdown-input"
74
74
  aria-expanded=${this.expanded}
75
75
  placeholder=${this.inputValue?"":this.placeholder}
@@ -88,7 +88,7 @@
88
88
  <label
89
89
  class="md-dropdown-label ${(0,p.classMap)({"md-new-dropdown-label":this.newMomentum})}"
90
90
  aria-expanded="${this.expanded}"
91
- aria-label="${this.labelTitle}"
91
+ aria-label="${this.comboboxAriaLabel}"
92
92
  aria-controls="md-dropdown-list"
93
93
  aria-haspopup="listbox"
94
94
  ?disabled=${this.disabled}
@@ -113,7 +113,7 @@
113
113
  id="md-dropdown-list"
114
114
  class="md-dropdown-list"
115
115
  role="listbox"
116
- aria-label="${this.labelTitle}"
116
+ aria-label="${this.ariaLabel||this.labelTitle}"
117
117
  aria-hidden="${!this.expanded}"
118
118
  part="dropdown-options"
119
119
  tabindex=${(0,h.ifDefined)(this.newMomentum||-1===this.customTabIndex?void 0:this.customTabIndex)}
@@ -147,4 +147,4 @@
147
147
  </ul>
148
148
  </div>
149
149
  ${this.messagesTemplate()} ${this.helpTextTemplate()}
150
- `}};f([(0,d.property)({type:String,attribute:"title"})],i.prototype,"title",void 0),f([(0,d.property)({type:Array})],i.prototype,"options",void 0),f([(0,d.property)({type:String,attribute:"option-id"})],i.prototype,"optionId",void 0),f([(0,d.property)({type:String,attribute:"option-value"})],i.prototype,"optionValue",void 0),f([(0,d.property)({type:Object})],i.prototype,"defaultOption",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),f([(0,d.property)({type:Number,attribute:"custom-tab-index",reflect:!0})],i.prototype,"customTabIndex",void 0),f([(0,d.property)({type:Boolean,attribute:"allow-unselected",reflect:!0})],i.prototype,"allowUnselected",void 0),f([(0,d.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),f([(0,d.property)({type:Boolean})],i.prototype,"newMomentum",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),f([(0,d.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),f([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),f([(0,d.property)({type:String,attribute:"left-icon",reflect:!0})],i.prototype,"leftIcon",void 0),f([(0,d.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),f([(0,d.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),f([(0,d.property)({type:Boolean})],i.prototype,"pill",void 0),f([(0,d.property)({type:String})],i.prototype,"helpText",void 0),f([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),f([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),f([(0,d.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),f([(0,d.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),f([(0,d.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),f([(0,d.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),f([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),f([(0,d.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),f([(0,d.state)()],i.prototype,"ariaLabelForDropdown",void 0),f([(0,d.state)()],i.prototype,"dropdownRenderOptions",void 0),f([(0,d.state)()],i.prototype,"selectedKey",void 0),f([(0,d.state)()],i.prototype,"expanded",void 0),f([(0,d.state)()],i.prototype,"focusedIndex",void 0),f([(0,d.query)("label")],i.prototype,"label",void 0),f([(0,d.query)(".md-dropdown-input")],i.prototype,"input",void 0),f([(0,d.query)("ul.md-dropdown-list")],i.prototype,"optionsList",void 0),f([(0,d.queryAll)("li.md-dropdown-option")],i.prototype,"optionsListItems",void 0),i=f([(0,n.wW)("md-dropdown")],i),e.ELEMENT=i}(s||(s={}))},7704(e,t,i){i.d(t,{wW:()=>o.w,yC:()=>s.y}),i(2364);var s=i(3203),o=(i(9938),i(5201),i(4781),i(608),i(9609))},2022(e){e.exports=n},554(e){e.exports=r},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=i},291(e){e.exports=o},8175(e){e.exports=l},318(e){e.exports=s},5314(e){e.exports=a}};const p={};function h(e){const t=p[e];if(void 0!==t)return t.exports;const i=p[e]={exports:{}};return d[e](i,i.exports,h),i.exports}h.m=d,(()=>{const e=[];h.O=(t,i,s,o)=>{if(i){o=o||0;for(var n=e.length;n>0&&e[n-1][2]>o;n--)e[n]=e[n-1];return void(e[n]=[i,s,o])}let r=1/0;for(n=0;n<e.length;n++){let[i,s,o]=e[n],l=!0;for(var a=0;a<i.length;a++)(!1&o||r>=o)&&Object.keys(h.O).every(e=>h.O[e](i[a]))?i.splice(a--,1):(l=!1,o<r&&(r=o));if(l){e.splice(n--,1);const i=s();void 0!==i&&(t=i)}}return t}})(),h.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{if(Array.isArray(t))for(var i=0;i<t.length;){var s=t[i++],o=t[i++];h.o(e,s)?0===o&&i++:0===o?Object.defineProperty(e,s,{enumerable:!0,value:t[i++]}):Object.defineProperty(e,s,{enumerable:!0,get:o})}else for(var s in t)h.o(t,s)&&!h.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={561:0,2942:0,5323:0,7704:0,7711:0,8180:0};h.O.j=t=>0===e[t];const t=(t,i)=>{let[s,o,n]=i;var r,a,l=0;if(s.some(t=>0!==e[t])){for(r in o)h.o(o,r)&&(h.m[r]=o[r]);if(n)var d=n(h)}for(t&&t(i);l<s.length;l++)a=s[l],h.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return h.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();let u=h.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5584,5201,8227,2050,8138,5057],()=>h(621));return u=h.O(u),u})());
150
+ `}};f([(0,d.property)({type:String,attribute:"title"})],i.prototype,"title",void 0),f([(0,d.property)({type:Array})],i.prototype,"options",void 0),f([(0,d.property)({type:String,attribute:"option-id"})],i.prototype,"optionId",void 0),f([(0,d.property)({type:String,attribute:"option-value"})],i.prototype,"optionValue",void 0),f([(0,d.property)({type:Object})],i.prototype,"defaultOption",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),f([(0,d.property)({type:Number,attribute:"custom-tab-index",reflect:!0})],i.prototype,"customTabIndex",void 0),f([(0,d.property)({type:Boolean,attribute:"allow-unselected",reflect:!0})],i.prototype,"allowUnselected",void 0),f([(0,d.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),f([(0,d.property)({type:Boolean})],i.prototype,"newMomentum",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),f([(0,d.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),f([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),f([(0,d.property)({type:String,attribute:"left-icon",reflect:!0})],i.prototype,"leftIcon",void 0),f([(0,d.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),f([(0,d.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),f([(0,d.property)({type:Boolean})],i.prototype,"pill",void 0),f([(0,d.property)({type:String})],i.prototype,"helpText",void 0),f([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),f([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),f([(0,d.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),f([(0,d.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),f([(0,d.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),f([(0,d.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),f([(0,d.property)({type:String,attribute:"aria-label"})],i.prototype,"ariaLabel",void 0),f([(0,d.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),f([(0,d.state)()],i.prototype,"ariaLabelForDropdown",void 0),f([(0,d.state)()],i.prototype,"dropdownRenderOptions",void 0),f([(0,d.state)()],i.prototype,"selectedKey",void 0),f([(0,d.state)()],i.prototype,"expanded",void 0),f([(0,d.state)()],i.prototype,"focusedIndex",void 0),f([(0,d.query)("label")],i.prototype,"label",void 0),f([(0,d.query)(".md-dropdown-input")],i.prototype,"input",void 0),f([(0,d.query)("ul.md-dropdown-list")],i.prototype,"optionsList",void 0),f([(0,d.queryAll)("li.md-dropdown-option")],i.prototype,"optionsListItems",void 0),i=f([(0,n.wW)("md-dropdown")],i),e.ELEMENT=i}(s||(s={}))},7704(e,t,i){i.d(t,{wW:()=>o.w,yC:()=>s.y}),i(2364);var s=i(3203),o=(i(9938),i(5201),i(4781),i(608),i(9609))},2022(t){t.exports=e},554(e){e.exports=t},7161(e){e.exports=i},429(e){e.exports=s},5125(e){e.exports=o},291(e){e.exports=n},8175(e){e.exports=r},318(e){e.exports=a},5314(e){e.exports=l}};const p={};function h(e){const t=p[e];if(void 0!==t)return t.exports;const i=p[e]={exports:{}};return d[e](i,i.exports,h),i.exports}h.m=d,(()=>{const e=[];h.O=(t,i,s,o)=>{if(i){o=o||0;for(var n=e.length;n>0&&e[n-1][2]>o;n--)e[n]=e[n-1];return void(e[n]=[i,s,o])}let r=1/0;for(n=0;n<e.length;n++){let[i,s,o]=e[n],l=!0;for(var a=0;a<i.length;a++)(!1&o||r>=o)&&Object.keys(h.O).every(e=>h.O[e](i[a]))?i.splice(a--,1):(l=!1,o<r&&(r=o));if(l){e.splice(n--,1);const i=s();void 0!==i&&(t=i)}}return t}})(),h.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{if(Array.isArray(t))for(var i=0;i<t.length;){var s=t[i++],o=t[i++];h.o(e,s)?0===o&&i++:0===o?Object.defineProperty(e,s,{enumerable:!0,value:t[i++]}):Object.defineProperty(e,s,{enumerable:!0,get:o})}else for(var s in t)h.o(t,s)&&!h.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={561:0,2942:0,5323:0,7704:0,7711:0,8180:0};h.O.j=t=>0===e[t];const t=(t,i)=>{let[s,o,n]=i;var r,a,l=0;if(s.some(t=>0!==e[t])){for(r in o)h.o(o,r)&&(h.m[r]=o[r]);if(n)var d=n(h)}for(t&&t(i);l<s.length;l++)a=s[l],h.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return h.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();let u=h.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5584,5201,8227,2050,8138,5057],()=>h(621));return u=h.O(u),u})());
@@ -1,4 +1,4 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit/directives/repeat.js"),require("dompurify"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit/directives/repeat.js","dompurify"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit/directives/repeat.js"),require("dompurify")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/style-map.js"],e["lit/directives/if-defined.js"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx,e["lit/directives/repeat.js"],e.dompurify);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,(e,t,i,s,r,l,o,n,a,d)=>(()=>{"use strict";var p={7386(e,t,i){i.r(t),i.d(t,{EditableTextfield:()=>s}),i(9189);var s,r=i(9609),l=i(3331),o=i(4084),n=i(1347),a=i.n(n),d=i(7161),p=i(429),c=i(5125),h=i(291),m=i(9956),u=function(e,t,i,s){var r,l=arguments.length,o=l<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(o=(l<3?r(o):l>3?r(t,i,o):r(t,i))||o);return l>3&&o&&Object.defineProperty(t,i,o),o};!function(e){let t=class extends d.LitElement{constructor(){super(...arguments),this.alignment="left",this.disabled=!1,this.isEditing=!1,this.maxLines="",this.content="Click to edit text",this.message={type:"error",message:"That is not a valid input."},this.alert=!1,this.hideMessage=!1,this.pattern="",this.type=null,this.ariaLabel="editable field",this.ariaDescribedBy="",this.reportValidity=()=>{this.dispatchEvent(new Event("invalid",{bubbles:!1,cancelable:!0,composed:!0}))},this.checkValidity=e=>{let t=!0;const i=i=>{null===e.match(i)&&(t=!1)};if(this.pattern)i(new RegExp(this.pattern));else if(e&&this.type)switch(this.type){case"integer":i(new RegExp(l.b.integerString));break;case"decimal":i(new RegExp(l.b.decimalString))}return t},this.handleFocus=()=>{this.disabled||(this.isEditing=!0,this.setRange())},this.handleKeydown=e=>{var t,i;const{key:s,code:r}=e;if(!["Tab","Meta","Shift","Delete","Backspace","Arrow"].some(e=>r.includes(e)))if("integer"===this.type&&(s.includes(".")||"-"===s&&(null===(t=this.editableField)||void 0===t?void 0:t.innerText.includes("-"))))e.preventDefault();else if("integer"!==this.type&&"decimal"!==this.type||!r.match("Space")){if(this.type&&1===s.length){const t=((null===(i=this.editableField)||void 0===i?void 0:i.innerText.trim())||"")+s;("integer"!==this.type||/^-?\d*$/.test(t))&&("decimal"!==this.type||/^-?\d*\.?\d*$/.test(t))||e.preventDefault()}}else e.preventDefault()},this.handleBlur=()=>{var e,t,i;this.isEditing=!1,this.maxLines.length>0&&(null===(e=this.editableField)||void 0===e||e.scrollTo(0,0));const s=(null===(i=null===(t=this.editableField)||void 0===t?void 0:t.innerText)||void 0===i?void 0:i.trim())||"",r=a().sanitize(s);r!==this.content&&(this.content=r),this.alert=!1,this.handleValidation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleFocus)}firstUpdated(e){super.firstUpdated(e),this.innerText&&this.innerText.trim().length>0&&this.innerText.trim()!==this.content&&(this.content=this.innerText.trim())}setRange(){var e;if(this.editableField){const t=document.createRange(),i=window.getSelection(),s=this.editableField.childNodes[0];if(!s||s.nodeType!==Node.TEXT_NODE)return;const r=(null===(e=s.nodeValue)||void 0===e?void 0:e.length)||0;t.setStart(s,r),t.collapse(!0),i&&0===i.toString().length&&(i.removeAllRanges(),i.addRange(t)),this.maxLines.length>0&&(this.editableField.scrollTop=this.editableField.scrollHeight)}}handleValidation(){var e;(this.type||this.pattern)&&((null===(e=this.checkValidity)||void 0===e?void 0:e.call(this,this.content))||(this.reportValidity(),this.showAlert()))}showAlert(){this.alert=!0}static get styles(){return[o.A,m.A]}get overflowStyles(){return this.maxLines.length&&this.maxLines.length>0&&`max-height: ${2*parseInt(this.maxLines)}rem; -webkit-line-clamp: ${this.maxLines}; word-break: break-all;`}messagesTemplate(){var e,t,i;return this.alert?d.html`
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("dompurify"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/repeat.js"),require("lit/directives/style-map.js"),require("mobx"));else if("function"==typeof define&&define.amd)define(["@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","dompurify","lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/repeat.js","lit/directives/style-map.js","mobx"],t);else{var i="object"==typeof exports?t(require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("dompurify"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/repeat.js"),require("lit/directives/style-map.js"),require("mobx")):t(e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.dompurify,e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"],e["lit/directives/repeat.js"],e["lit/directives/style-map.js"],e.mobx);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,(e,t,i,s,r,l,o,n,a,d)=>(()=>{"use strict";var p={7386(e,t,i){i.r(t),i.d(t,{EditableTextfield:()=>s}),i(9189);var s,r=i(9609),l=i(3331),o=i(4084),n=i(1347),a=i.n(n),d=i(7161),p=i(429),c=i(5125),h=i(291),m=i(9956),u=function(e,t,i,s){var r,l=arguments.length,o=l<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(o=(l<3?r(o):l>3?r(t,i,o):r(t,i))||o);return l>3&&o&&Object.defineProperty(t,i,o),o};!function(e){let t=class extends d.LitElement{constructor(){super(...arguments),this.alignment="left",this.disabled=!1,this.isEditing=!1,this.maxLines="",this.content="Click to edit text",this.message={type:"error",message:"That is not a valid input."},this.alert=!1,this.hideMessage=!1,this.pattern="",this.type=null,this.ariaLabel="editable field",this.ariaDescribedBy="",this.reportValidity=()=>{this.dispatchEvent(new Event("invalid",{bubbles:!1,cancelable:!0,composed:!0}))},this.checkValidity=e=>{let t=!0;const i=i=>{null===e.match(i)&&(t=!1)};if(this.pattern)i(new RegExp(this.pattern));else if(e&&this.type)switch(this.type){case"integer":i(new RegExp(l.b.integerString));break;case"decimal":i(new RegExp(l.b.decimalString))}return t},this.handleFocus=()=>{this.disabled||(this.isEditing=!0,this.setRange())},this.handleKeydown=e=>{var t,i;const{key:s,code:r}=e;if(!["Tab","Meta","Shift","Delete","Backspace","Arrow"].some(e=>r.includes(e)))if("integer"===this.type&&(s.includes(".")||"-"===s&&(null===(t=this.editableField)||void 0===t?void 0:t.innerText.includes("-"))))e.preventDefault();else if("integer"!==this.type&&"decimal"!==this.type||!r.match("Space")){if(this.type&&1===s.length){const t=((null===(i=this.editableField)||void 0===i?void 0:i.innerText.trim())||"")+s;("integer"!==this.type||/^-?\d*$/.test(t))&&("decimal"!==this.type||/^-?\d*\.?\d*$/.test(t))||e.preventDefault()}}else e.preventDefault()},this.handleBlur=()=>{var e,t,i;this.isEditing=!1,this.maxLines.length>0&&(null===(e=this.editableField)||void 0===e||e.scrollTo(0,0));const s=(null===(i=null===(t=this.editableField)||void 0===t?void 0:t.innerText)||void 0===i?void 0:i.trim())||"",r=a().sanitize(s);r!==this.content&&(this.content=r),this.alert=!1,this.handleValidation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleFocus)}firstUpdated(e){super.firstUpdated(e),this.innerText&&this.innerText.trim().length>0&&this.innerText.trim()!==this.content&&(this.content=this.innerText.trim())}setRange(){var e;if(this.editableField){const t=document.createRange(),i=window.getSelection(),s=this.editableField.childNodes[0];if(!s||s.nodeType!==Node.TEXT_NODE)return;const r=(null===(e=s.nodeValue)||void 0===e?void 0:e.length)||0;t.setStart(s,r),t.collapse(!0),i&&0===i.toString().length&&(i.removeAllRanges(),i.addRange(t)),this.maxLines.length>0&&(this.editableField.scrollTop=this.editableField.scrollHeight)}}handleValidation(){var e;(this.type||this.pattern)&&((null===(e=this.checkValidity)||void 0===e?void 0:e.call(this,this.content))||(this.reportValidity(),this.showAlert()))}showAlert(){this.alert=!0}static get styles(){return[o.A,m.A]}get overflowStyles(){return this.maxLines.length&&this.maxLines.length>0&&`max-height: ${2*parseInt(this.maxLines)}rem; -webkit-line-clamp: ${this.maxLines}; word-break: break-all;`}messagesTemplate(){var e,t,i;return this.alert?d.html`
2
2
  <div class="md-editable-textfield__messages" style="display: ${this.hideMessage?"none":"block"}">
3
3
  <md-help-text
4
4
  id="alert-message"
@@ -27,4 +27,4 @@
27
27
  .innerText=${this.content}
28
28
  ></div>
29
29
  ${this.messagesTemplate()}
30
- `}};u([(0,p.property)({type:String})],t.prototype,"alignment",void 0),u([(0,p.property)({type:Boolean})],t.prototype,"disabled",void 0),u([(0,p.property)({type:Boolean})],t.prototype,"isEditing",void 0),u([(0,p.property)({type:String,attribute:"max-lines",reflect:!0})],t.prototype,"maxLines",void 0),u([(0,p.property)({type:String,reflect:!0})],t.prototype,"content",void 0),u([(0,p.property)({type:Object})],t.prototype,"message",void 0),u([(0,p.property)({type:Boolean,reflect:!0})],t.prototype,"alert",void 0),u([(0,p.property)({type:Boolean})],t.prototype,"hideMessage",void 0),u([(0,p.property)({type:String})],t.prototype,"pattern",void 0),u([(0,p.property)({type:String})],t.prototype,"type",void 0),u([(0,p.property)({type:String})],t.prototype,"ariaLabel",void 0),u([(0,p.property)({type:String,attribute:"aria-described-by"})],t.prototype,"ariaDescribedBy",void 0),u([(0,p.query)(".md-editable-textfield")],t.prototype,"editableField",void 0),t=u([(0,r.w)("md-editable-field")],t),e.ELEMENT=t}(s||(s={})),i.d(t,["alignment",0,["left","right","center"]])},2022(e){e.exports=l},554(e){e.exports=o},1347(e){e.exports=d},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=i},291(e){e.exports=r},8175(e){e.exports=a},318(e){e.exports=s},5314(e){e.exports=n}};const c={};function h(e){const t=c[e];if(void 0!==t)return t.exports;const i=c[e]={exports:{}};return p[e](i,i.exports,h),i.exports}h.m=p,(()=>{const e=[];h.O=(t,i,s,r)=>{if(i){r=r||0;for(var l=e.length;l>0&&e[l-1][2]>r;l--)e[l]=e[l-1];return void(e[l]=[i,s,r])}let o=1/0;for(l=0;l<e.length;l++){let[i,s,r]=e[l],a=!0;for(var n=0;n<i.length;n++)(!1&r||o>=r)&&Object.keys(h.O).every(e=>h.O[e](i[n]))?i.splice(n--,1):(a=!1,r<o&&(o=r));if(a){e.splice(l--,1);const i=s();void 0!==i&&(t=i)}}return t}})(),h.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{if(Array.isArray(t))for(var i=0;i<t.length;){var s=t[i++],r=t[i++];h.o(e,s)?0===r&&i++:0===r?Object.defineProperty(e,s,{enumerable:!0,value:t[i++]}):Object.defineProperty(e,s,{enumerable:!0,get:r})}else for(var s in t)h.o(t,s)&&!h.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={1807:0};h.O.j=t=>0===e[t];const t=(t,i)=>{let[s,r,l]=i;var o,n,a=0;if(s.some(t=>0!==e[t])){for(o in r)h.o(r,o)&&(h.m[o]=r[o]);if(l)var d=l(h)}for(t&&t(i);a<s.length;a++)n=s[a],h.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return h.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();let m=h.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,519,8441,2797,9983,3970,7906,9336,2369,9189,3331,9956],()=>h(7386));return m=h.O(m),m})());
30
+ `}};u([(0,p.property)({type:String})],t.prototype,"alignment",void 0),u([(0,p.property)({type:Boolean})],t.prototype,"disabled",void 0),u([(0,p.property)({type:Boolean})],t.prototype,"isEditing",void 0),u([(0,p.property)({type:String,attribute:"max-lines",reflect:!0})],t.prototype,"maxLines",void 0),u([(0,p.property)({type:String,reflect:!0})],t.prototype,"content",void 0),u([(0,p.property)({type:Object})],t.prototype,"message",void 0),u([(0,p.property)({type:Boolean,reflect:!0})],t.prototype,"alert",void 0),u([(0,p.property)({type:Boolean})],t.prototype,"hideMessage",void 0),u([(0,p.property)({type:String})],t.prototype,"pattern",void 0),u([(0,p.property)({type:String})],t.prototype,"type",void 0),u([(0,p.property)({type:String})],t.prototype,"ariaLabel",void 0),u([(0,p.property)({type:String,attribute:"aria-described-by"})],t.prototype,"ariaDescribedBy",void 0),u([(0,p.query)(".md-editable-textfield")],t.prototype,"editableField",void 0),t=u([(0,r.w)("md-editable-field")],t),e.ELEMENT=t}(s||(s={})),i.d(t,["alignment",0,["left","right","center"]])},2022(t){t.exports=e},554(e){e.exports=t},1347(e){e.exports=i},7161(e){e.exports=s},429(e){e.exports=r},5125(e){e.exports=l},291(e){e.exports=o},8175(e){e.exports=n},318(e){e.exports=a},5314(e){e.exports=d}};const c={};function h(e){const t=c[e];if(void 0!==t)return t.exports;const i=c[e]={exports:{}};return p[e](i,i.exports,h),i.exports}h.m=p,(()=>{const e=[];h.O=(t,i,s,r)=>{if(i){r=r||0;for(var l=e.length;l>0&&e[l-1][2]>r;l--)e[l]=e[l-1];return void(e[l]=[i,s,r])}let o=1/0;for(l=0;l<e.length;l++){let[i,s,r]=e[l],a=!0;for(var n=0;n<i.length;n++)(!1&r||o>=r)&&Object.keys(h.O).every(e=>h.O[e](i[n]))?i.splice(n--,1):(a=!1,r<o&&(o=r));if(a){e.splice(l--,1);const i=s();void 0!==i&&(t=i)}}return t}})(),h.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{if(Array.isArray(t))for(var i=0;i<t.length;){var s=t[i++],r=t[i++];h.o(e,s)?0===r&&i++:0===r?Object.defineProperty(e,s,{enumerable:!0,value:t[i++]}):Object.defineProperty(e,s,{enumerable:!0,get:r})}else for(var s in t)h.o(t,s)&&!h.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={1807:0};h.O.j=t=>0===e[t];const t=(t,i)=>{let[s,r,l]=i;var o,n,a=0;if(s.some(t=>0!==e[t])){for(o in r)h.o(r,o)&&(h.m[o]=r[o]);if(l)var d=l(h)}for(t&&t(i);a<s.length;a++)n=s[a],h.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return h.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();let m=h.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,519,8441,2797,9983,3970,7906,9336,2369,9189,3331,9956],()=>h(7386));return m=h.O(m),m})());
@@ -1,4 +1,4 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/style-map.js"],e["lit/directives/if-defined.js"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,(e,t,i,o,r,s,l,n)=>(()=>{"use strict";var a={23(e,t,i){i.r(t),i.d(t,{Favorite:()=>o}),i(1821);var o,r=i(2900),s=i(7704),l=i(9609),n=i(4084),a=i(7161),c=i(429),d=i(5125),u=i(291),m=i(6816),p=function(e,t,i,o){var r,s=arguments.length,l=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(l=(s<3?r(l):s>3?r(t,i,l):r(t,i))||l);return s>3&&l&&Object.defineProperty(t,i,l),l};!function(e){let t=class extends((0,s.yC)(a.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.value="Select favorite",this.id="",this.label="Favorite"}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleElectKeyDown),this.addEventListener("click",this.handleFavorite)}static get styles(){return[n.A,m.A]}handleFavorite(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-toggle",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}handleElectKeyDown(e){e.code!==r.Uz.Enter&&e.code!==r.Uz.Space||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-keydown",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleElectKeyDown),this.removeEventListener("click",this.handleFavorite)}get favoriteClassMap(){return{"md-favorite--active":this.checked,"md-favorite--disabled":this.disabled}}render(){return a.html`
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("mobx"));else if("function"==typeof define&&define.amd)define(["@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/style-map.js","mobx"],t);else{var i="object"==typeof exports?t(require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("mobx")):t(e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"],e["lit/directives/style-map.js"],e.mobx);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,(e,t,i,o,r,s,l,n)=>(()=>{"use strict";var a={23(e,t,i){i.r(t),i.d(t,{Favorite:()=>o}),i(1821);var o,r=i(2900),s=i(7704),l=i(9609),n=i(4084),a=i(7161),c=i(429),d=i(5125),u=i(291),m=i(6816),p=function(e,t,i,o){var r,s=arguments.length,l=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(l=(s<3?r(l):s>3?r(t,i,l):r(t,i))||l);return s>3&&l&&Object.defineProperty(t,i,l),l};!function(e){let t=class extends((0,s.yC)(a.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.value="Select favorite",this.id="",this.label="Favorite"}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleElectKeyDown),this.addEventListener("click",this.handleFavorite)}static get styles(){return[n.A,m.A]}handleFavorite(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-toggle",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}handleElectKeyDown(e){e.code!==r.Uz.Enter&&e.code!==r.Uz.Space||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-keydown",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleElectKeyDown),this.removeEventListener("click",this.handleFavorite)}get favoriteClassMap(){return{"md-favorite--active":this.checked,"md-favorite--disabled":this.disabled}}render(){return a.html`
2
2
  <label
3
3
  for="favorite-checkbox"
4
4
  id="${this.id}"
@@ -20,4 +20,4 @@
20
20
  size="16"
21
21
  ></md-icon>
22
22
  </label>
23
- `}};p([(0,c.property)({type:Boolean})],t.prototype,"disabled",void 0),p([(0,c.property)({type:Boolean})],t.prototype,"checked",void 0),p([(0,c.property)({type:String})],t.prototype,"value",void 0),p([(0,c.property)({type:String})],t.prototype,"id",void 0),p([(0,c.property)({type:String})],t.prototype,"label",void 0),t=p([(0,l.w)("md-favorite")],t),e.ELEMENT=t}(o||(o={}))},2022(e){e.exports=s},554(e){e.exports=l},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=i},291(e){e.exports=r},318(e){e.exports=o},5314(e){e.exports=n}};const c={};function d(e){const t=c[e];if(void 0!==t)return t.exports;const i=c[e]={exports:{}};return a[e](i,i.exports,d),i.exports}d.m=a,(()=>{const e=[];d.O=(t,i,o,r)=>{if(i){r=r||0;for(var s=e.length;s>0&&e[s-1][2]>r;s--)e[s]=e[s-1];return void(e[s]=[i,o,r])}let l=1/0;for(s=0;s<e.length;s++){let[i,o,r]=e[s],a=!0;for(var n=0;n<i.length;n++)(!1&r||l>=r)&&Object.keys(d.O).every(e=>d.O[e](i[n]))?i.splice(n--,1):(a=!1,r<l&&(l=r));if(a){e.splice(s--,1);const i=o();void 0!==i&&(t=i)}}return t}})(),d.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{if(Array.isArray(t))for(var i=0;i<t.length;){var o=t[i++],r=t[i++];d.o(e,o)?0===r&&i++:0===r?Object.defineProperty(e,o,{enumerable:!0,value:t[i++]}):Object.defineProperty(e,o,{enumerable:!0,get:r})}else for(var o in t)d.o(t,o)&&!d.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={6920:0};d.O.j=t=>0===e[t];const t=(t,i)=>{let[o,r,s]=i;var l,n,a=0;if(o.some(t=>0!==e[t])){for(l in r)d.o(r,l)&&(d.m[l]=r[l]);if(s)var c=s(d)}for(t&&t(i);a<o.length;a++)n=o[a],d.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return d.O(c)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();let u=d.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5584,5201,8227,2900,7704,6816],()=>d(23));return u=d.O(u),u})());
23
+ `}};p([(0,c.property)({type:Boolean})],t.prototype,"disabled",void 0),p([(0,c.property)({type:Boolean})],t.prototype,"checked",void 0),p([(0,c.property)({type:String})],t.prototype,"value",void 0),p([(0,c.property)({type:String})],t.prototype,"id",void 0),p([(0,c.property)({type:String})],t.prototype,"label",void 0),t=p([(0,l.w)("md-favorite")],t),e.ELEMENT=t}(o||(o={}))},2022(t){t.exports=e},554(e){e.exports=t},7161(e){e.exports=i},429(e){e.exports=o},5125(e){e.exports=r},291(e){e.exports=s},318(e){e.exports=l},5314(e){e.exports=n}};const c={};function d(e){const t=c[e];if(void 0!==t)return t.exports;const i=c[e]={exports:{}};return a[e](i,i.exports,d),i.exports}d.m=a,(()=>{const e=[];d.O=(t,i,o,r)=>{if(i){r=r||0;for(var s=e.length;s>0&&e[s-1][2]>r;s--)e[s]=e[s-1];return void(e[s]=[i,o,r])}let l=1/0;for(s=0;s<e.length;s++){let[i,o,r]=e[s],a=!0;for(var n=0;n<i.length;n++)(!1&r||l>=r)&&Object.keys(d.O).every(e=>d.O[e](i[n]))?i.splice(n--,1):(a=!1,r<l&&(l=r));if(a){e.splice(s--,1);const i=o();void 0!==i&&(t=i)}}return t}})(),d.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{if(Array.isArray(t))for(var i=0;i<t.length;){var o=t[i++],r=t[i++];d.o(e,o)?0===r&&i++:0===r?Object.defineProperty(e,o,{enumerable:!0,value:t[i++]}):Object.defineProperty(e,o,{enumerable:!0,get:r})}else for(var o in t)d.o(t,o)&&!d.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={6920:0};d.O.j=t=>0===e[t];const t=(t,i)=>{let[o,r,s]=i;var l,n,a=0;if(o.some(t=>0!==e[t])){for(l in r)d.o(r,l)&&(d.m[l]=r[l]);if(s)var c=s(d)}for(t&&t(i);a<o.length;a++)n=o[a],d.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return d.O(c)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();let u=d.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5584,5201,8227,2900,7704,6816],()=>d(23));return u=d.O(u),u})());
@@ -1,4 +1,4 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers"],e);else{var i="object"==typeof exports?e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers")):e(t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/style-map.js"],t["lit/directives/if-defined.js"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.mobx,t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"]);for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(self,(t,e,i,n,o,r,s,a,l,c,d,m,u)=>(()=>{"use strict";var h={5958(t,e,i){i.r(e),i.d(e,{FloatingMinimizedModal:()=>n}),i(5983),i(1821);var n,o=i(2900),r=i(7704),s=i(9609),a=i(2050),l=i(4084),c=(i(8088),i(7346),i(9e3),i(727)),d=i.n(c),m=(i(3288),i(7161)),u=i(429),h=i(291),p=i(7262),f=function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends((0,r.yC)(m.LitElement)){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.closeAriaLabel="Close Modal",this.minimize=!1,this.maximizeIconAriaLabel="Maximize Modal",this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.minPosition?{initialX:Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.minPosition)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:n}=this.getTransformValues(t);this.setTargetPosition(e,i,n),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[l.A,p.A]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",(0,a.sg)(()=>this.setInteractInstance(),250))}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance(),this.setFocusOnContainer()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("minPosition")&&!t.has("show")&&this.setInitialTargetPosition(),t.has("minimize")&&void 0!==t.get("minimize")&&this.setFocusOnContainer()}isNewPositionNotSame(){var t,e,i,n;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.minPosition)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(n=this.minPosition)||void 0===n?void 0:n.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),Number(null===(e=this.minPosition)||void 0===e?void 0:e.y))}setFocusOnContainer(){this.container&&(this.container.setAttribute("tabindex","0"),this.container.focus())}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-minimize-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>{return t=this,e=void 0,n=function*(){yield this.updateComplete,this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())});var t,e,i,n})}setInteractInstance(){requestAnimationFrame(()=>{this.container&&d()(this.container).draggable({autoScroll:!0,allowFrom:this.header,listeners:{move:this.dragMoveListener,end:this.dragEndListener},modifiers:[d().modifiers.restrictRect({restriction:document.body.getBoundingClientRect(),endOnly:!0})]})})}handleKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.handleMinimize(t)}handleKeyDownClose(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.handleClose(t)}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),t.stopPropagation()}handleMinimize(t){t.preventDefault(),t.stopPropagation(),this.dragOccured||this.dispatchEvent(new CustomEvent("floating-min-modal-minimize",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.dragOccured=!1}getTransformValues(t){const{target:e,dx:i,dy:n}=t,{initialX:o,initialY:r}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+o,y:(parseFloat(e.getAttribute("data-y"))||0)+n+r}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&d().isSet(this.container)&&d()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance(),window.removeEventListener("resize",(0,a.sg)(()=>this.setInteractInstance(),250))}render(){return m.html`
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("mobx"));else if("function"==typeof define&&define.amd)define(["@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/style-map.js","mobx"],e);else{var i="object"==typeof exports?e(require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("mobx")):e(t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/if-defined.js"],t["lit/directives/style-map.js"],t.mobx);for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(self,(t,e,i,n,o,r,s,a,l,c,d,m,u)=>(()=>{"use strict";var h={5958(t,e,i){i.r(e),i.d(e,{FloatingMinimizedModal:()=>n}),i(5983),i(1821);var n,o=i(2900),r=i(7704),s=i(9609),a=i(2050),l=i(4084),c=(i(8088),i(7346),i(9e3),i(727)),d=i.n(c),m=(i(3288),i(7161)),u=i(429),h=i(291),p=i(7262),f=function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends((0,r.yC)(m.LitElement)){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.closeAriaLabel="Close Modal",this.minimize=!1,this.maximizeIconAriaLabel="Maximize Modal",this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.minPosition?{initialX:Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.minPosition)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:n}=this.getTransformValues(t);this.setTargetPosition(e,i,n),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[l.A,p.A]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",(0,a.sg)(()=>this.setInteractInstance(),250))}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance(),this.setFocusOnContainer()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("minPosition")&&!t.has("show")&&this.setInitialTargetPosition(),t.has("minimize")&&void 0!==t.get("minimize")&&this.setFocusOnContainer()}isNewPositionNotSame(){var t,e,i,n;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.minPosition)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(n=this.minPosition)||void 0===n?void 0:n.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),Number(null===(e=this.minPosition)||void 0===e?void 0:e.y))}setFocusOnContainer(){this.container&&(this.container.setAttribute("tabindex","0"),this.container.focus())}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-minimize-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>{return t=this,e=void 0,n=function*(){yield this.updateComplete,this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))(function(o,r){function s(t){try{l(n.next(t))}catch(t){r(t)}}function a(t){try{l(n.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())});var t,e,i,n})}setInteractInstance(){requestAnimationFrame(()=>{this.container&&d()(this.container).draggable({autoScroll:!0,allowFrom:this.header,listeners:{move:this.dragMoveListener,end:this.dragEndListener},modifiers:[d().modifiers.restrictRect({restriction:document.body.getBoundingClientRect(),endOnly:!0})]})})}handleKeyDown(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.handleMinimize(t)}handleKeyDownClose(t){t.code!==o.Uz.Enter&&t.code!==o.Uz.Space||this.handleClose(t)}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),t.stopPropagation()}handleMinimize(t){t.preventDefault(),t.stopPropagation(),this.dragOccured||this.dispatchEvent(new CustomEvent("floating-min-modal-minimize",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.dragOccured=!1}getTransformValues(t){const{target:e,dx:i,dy:n}=t,{initialX:o,initialY:r}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+o,y:(parseFloat(e.getAttribute("data-y"))||0)+n+r}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&d().isSet(this.container)&&d()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance(),window.removeEventListener("resize",(0,a.sg)(()=>this.setInteractInstance(),250))}render(){return m.html`
2
2
  ${this.show?m.html`
3
3
  <div
4
4
  class="md-floating ${this.minimize?"":"hide"} md-floating-minimize"
@@ -40,4 +40,4 @@
40
40
  </div>
41
41
  </div>
42
42
  `:m.nothing}
43
- `}};f([(0,u.property)({type:String})],e.prototype,"heading",void 0),f([(0,u.property)({type:String})],e.prototype,"label",void 0),f([(0,u.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),f([(0,u.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),f([(0,u.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),f([(0,u.property)({type:String,attribute:"maximize-icon-aria-label"})],e.prototype,"maximizeIconAriaLabel",void 0),f([(0,u.property)({type:Object})],e.prototype,"minPosition",void 0),f([(0,u.query)(".md-floating")],e.prototype,"container",void 0),f([(0,u.query)(".md-floating__header")],e.prototype,"header",void 0),f([(0,u.state)()],e.prototype,"dragOccured",void 0),f([(0,u.state)()],e.prototype,"containerTransform",void 0),e=f([(0,s.w)("md-floating-modal-minimized")],e),t.ELEMENT=e}(n||(n={}))},8088(t){t.exports=l},7346(t){t.exports=c},9e3(t){t.exports=d},727(t){t.exports=m},3288(t){t.exports=u},2022(t){t.exports=r},554(t){t.exports=s},7161(e){e.exports=t},429(t){t.exports=e},5125(t){t.exports=i},291(t){t.exports=o},318(t){t.exports=n},5314(t){t.exports=a}};const p={};function f(t){const e=p[t];if(void 0!==e)return e.exports;const i=p[t]={exports:{}};return h[t](i,i.exports,f),i.exports}f.m=h,(()=>{const t=[];f.O=(e,i,n,o)=>{if(i){o=o||0;for(var r=t.length;r>0&&t[r-1][2]>o;r--)t[r]=t[r-1];return void(t[r]=[i,n,o])}let s=1/0;for(r=0;r<t.length;r++){let[i,n,o]=t[r],l=!0;for(var a=0;a<i.length;a++)(!1&o||s>=o)&&Object.keys(f.O).every(t=>f.O[t](i[a]))?i.splice(a--,1):(l=!1,o<s&&(s=o));if(l){t.splice(r--,1);const i=n();void 0!==i&&(e=i)}}return e}})(),f.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return f.d(e,{a:e}),e},f.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var n=e[i++],o=e[i++];f.o(t,n)?0===o&&i++:0===o?Object.defineProperty(t,n,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,n,{enumerable:!0,get:o})}else for(var n in e)f.o(e,n)&&!f.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},f.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),f.r=t=>{Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{const t={9237:0};f.O.j=e=>0===t[e];const e=(e,i)=>{let[n,o,r]=i;var s,a,l=0;if(n.some(e=>0!==t[e])){for(s in o)f.o(o,s)&&(f.m[s]=o[s]);if(r)var c=r(f)}for(e&&e(i);l<n.length;l++)a=n[l],f.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return f.O(c)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();let v=f.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5584,5201,8227,2900,7704,2050,7262],()=>f(5958));return v=f.O(v),v})());
43
+ `}};f([(0,u.property)({type:String})],e.prototype,"heading",void 0),f([(0,u.property)({type:String})],e.prototype,"label",void 0),f([(0,u.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),f([(0,u.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),f([(0,u.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),f([(0,u.property)({type:String,attribute:"maximize-icon-aria-label"})],e.prototype,"maximizeIconAriaLabel",void 0),f([(0,u.property)({type:Object})],e.prototype,"minPosition",void 0),f([(0,u.query)(".md-floating")],e.prototype,"container",void 0),f([(0,u.query)(".md-floating__header")],e.prototype,"header",void 0),f([(0,u.state)()],e.prototype,"dragOccured",void 0),f([(0,u.state)()],e.prototype,"containerTransform",void 0),e=f([(0,s.w)("md-floating-modal-minimized")],e),t.ELEMENT=e}(n||(n={}))},8088(e){e.exports=t},7346(t){t.exports=e},9e3(t){t.exports=i},727(t){t.exports=n},3288(t){t.exports=o},2022(t){t.exports=r},554(t){t.exports=s},7161(t){t.exports=a},429(t){t.exports=l},5125(t){t.exports=c},291(t){t.exports=d},318(t){t.exports=m},5314(t){t.exports=u}};const p={};function f(t){const e=p[t];if(void 0!==e)return e.exports;const i=p[t]={exports:{}};return h[t](i,i.exports,f),i.exports}f.m=h,(()=>{const t=[];f.O=(e,i,n,o)=>{if(i){o=o||0;for(var r=t.length;r>0&&t[r-1][2]>o;r--)t[r]=t[r-1];return void(t[r]=[i,n,o])}let s=1/0;for(r=0;r<t.length;r++){let[i,n,o]=t[r],l=!0;for(var a=0;a<i.length;a++)(!1&o||s>=o)&&Object.keys(f.O).every(t=>f.O[t](i[a]))?i.splice(a--,1):(l=!1,o<s&&(s=o));if(l){t.splice(r--,1);const i=n();void 0!==i&&(e=i)}}return e}})(),f.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return f.d(e,{a:e}),e},f.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var n=e[i++],o=e[i++];f.o(t,n)?0===o&&i++:0===o?Object.defineProperty(t,n,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,n,{enumerable:!0,get:o})}else for(var n in e)f.o(e,n)&&!f.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},f.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),f.r=t=>{Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{const t={9237:0};f.O.j=e=>0===t[e];const e=(e,i)=>{let[n,o,r]=i;var s,a,l=0;if(n.some(e=>0!==t[e])){for(s in o)f.o(o,s)&&(f.m[s]=o[s]);if(r)var c=r(f)}for(e&&e(i);l<n.length;l++)a=n[l],f.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return f.O(c)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();let v=f.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5584,5201,8227,2900,7704,2050,7262],()=>f(5958));return v=f.O(v),v})());
@@ -1,4 +1,4 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers"],e);else{var i="object"==typeof exports?e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers")):e(t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/style-map.js"],t["lit/directives/if-defined.js"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.mobx,t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"]);for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(self,(t,e,i,o,n,a,s,r,l,d,m,c,h)=>(()=>{"use strict";var p={5958(t,e,i){i(5983),i(1821);var o,n=i(2900),a=i(7704),s=i(9609),r=i(2050),l=i(4084),d=(i(8088),i(7346),i(9e3),i(727)),m=i.n(d),c=(i(3288),i(7161)),h=i(429),p=i(291),u=i(7262),f=function(t,e,i,o){var n,a=arguments.length,s=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(s=(a<3?n(s):a>3?n(e,i,s):n(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends((0,a.yC)(c.LitElement)){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.closeAriaLabel="Close Modal",this.minimize=!1,this.maximizeIconAriaLabel="Maximize Modal",this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.minPosition?{initialX:Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.minPosition)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:o}=this.getTransformValues(t);this.setTargetPosition(e,i,o),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[l.A,u.A]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",(0,r.sg)(()=>this.setInteractInstance(),250))}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance(),this.setFocusOnContainer()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("minPosition")&&!t.has("show")&&this.setInitialTargetPosition(),t.has("minimize")&&void 0!==t.get("minimize")&&this.setFocusOnContainer()}isNewPositionNotSame(){var t,e,i,o;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.minPosition)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(o=this.minPosition)||void 0===o?void 0:o.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),Number(null===(e=this.minPosition)||void 0===e?void 0:e.y))}setFocusOnContainer(){this.container&&(this.container.setAttribute("tabindex","0"),this.container.focus())}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-minimize-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>{return t=this,e=void 0,o=function*(){yield this.updateComplete,this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))(function(n,a){function s(t){try{l(o.next(t))}catch(t){a(t)}}function r(t){try{l(o.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,r)}l((o=o.apply(t,e||[])).next())});var t,e,i,o})}setInteractInstance(){requestAnimationFrame(()=>{this.container&&m()(this.container).draggable({autoScroll:!0,allowFrom:this.header,listeners:{move:this.dragMoveListener,end:this.dragEndListener},modifiers:[m().modifiers.restrictRect({restriction:document.body.getBoundingClientRect(),endOnly:!0})]})})}handleKeyDown(t){t.code!==n.Uz.Enter&&t.code!==n.Uz.Space||this.handleMinimize(t)}handleKeyDownClose(t){t.code!==n.Uz.Enter&&t.code!==n.Uz.Space||this.handleClose(t)}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),t.stopPropagation()}handleMinimize(t){t.preventDefault(),t.stopPropagation(),this.dragOccured||this.dispatchEvent(new CustomEvent("floating-min-modal-minimize",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.dragOccured=!1}getTransformValues(t){const{target:e,dx:i,dy:o}=t,{initialX:n,initialY:a}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+n,y:(parseFloat(e.getAttribute("data-y"))||0)+o+a}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&m().isSet(this.container)&&m()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance(),window.removeEventListener("resize",(0,r.sg)(()=>this.setInteractInstance(),250))}render(){return c.html`
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("mobx"));else if("function"==typeof define&&define.amd)define(["@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/style-map.js","mobx"],e);else{var i="object"==typeof exports?e(require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("mobx")):e(t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/if-defined.js"],t["lit/directives/style-map.js"],t.mobx);for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(self,(t,e,i,o,n,a,s,r,l,d,m,c,h)=>(()=>{"use strict";var p={5958(t,e,i){i(5983),i(1821);var o,n=i(2900),a=i(7704),s=i(9609),r=i(2050),l=i(4084),d=(i(8088),i(7346),i(9e3),i(727)),m=i.n(d),c=(i(3288),i(7161)),h=i(429),p=i(291),u=i(7262),f=function(t,e,i,o){var n,a=arguments.length,s=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(s=(a<3?n(s):a>3?n(e,i,s):n(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends((0,a.yC)(c.LitElement)){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.closeAriaLabel="Close Modal",this.minimize=!1,this.maximizeIconAriaLabel="Maximize Modal",this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.minPosition?{initialX:Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.minPosition)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:o}=this.getTransformValues(t);this.setTargetPosition(e,i,o),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[l.A,u.A]}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",(0,r.sg)(()=>this.setInteractInstance(),250))}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance(),this.setFocusOnContainer()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("minPosition")&&!t.has("show")&&this.setInitialTargetPosition(),t.has("minimize")&&void 0!==t.get("minimize")&&this.setFocusOnContainer()}isNewPositionNotSame(){var t,e,i,o;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.minPosition)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(o=this.minPosition)||void 0===o?void 0:o.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.minPosition)||void 0===t?void 0:t.x),Number(null===(e=this.minPosition)||void 0===e?void 0:e.y))}setFocusOnContainer(){this.container&&(this.container.setAttribute("tabindex","0"),this.container.focus())}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-minimize-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame(()=>{return t=this,e=void 0,o=function*(){yield this.updateComplete,this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))(function(n,a){function s(t){try{l(o.next(t))}catch(t){a(t)}}function r(t){try{l(o.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,r)}l((o=o.apply(t,e||[])).next())});var t,e,i,o})}setInteractInstance(){requestAnimationFrame(()=>{this.container&&m()(this.container).draggable({autoScroll:!0,allowFrom:this.header,listeners:{move:this.dragMoveListener,end:this.dragEndListener},modifiers:[m().modifiers.restrictRect({restriction:document.body.getBoundingClientRect(),endOnly:!0})]})})}handleKeyDown(t){t.code!==n.Uz.Enter&&t.code!==n.Uz.Space||this.handleMinimize(t)}handleKeyDownClose(t){t.code!==n.Uz.Enter&&t.code!==n.Uz.Space||this.handleClose(t)}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),t.stopPropagation()}handleMinimize(t){t.preventDefault(),t.stopPropagation(),this.dragOccured||this.dispatchEvent(new CustomEvent("floating-min-modal-minimize",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.dragOccured=!1}getTransformValues(t){const{target:e,dx:i,dy:o}=t,{initialX:n,initialY:a}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+n,y:(parseFloat(e.getAttribute("data-y"))||0)+o+a}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&m().isSet(this.container)&&m()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance(),window.removeEventListener("resize",(0,r.sg)(()=>this.setInteractInstance(),250))}render(){return c.html`
2
2
  ${this.show?c.html`
3
3
  <div
4
4
  class="md-floating ${this.minimize?"":"hide"} md-floating-minimize"
@@ -152,4 +152,4 @@
152
152
  </md-floating-modal-minimized>
153
153
  </div>`:m.nothing}
154
154
  `:m.nothing}
155
- `}};u([(0,c.property)({type:String})],e.prototype,"heading",void 0),u([(0,c.property)({type:String})],e.prototype,"label",void 0),u([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),u([(0,c.property)({type:Boolean,reflect:!0,attribute:"aspect-ratio"})],e.prototype,"aspectRatio",void 0),u([(0,c.property)({type:Boolean,reflect:!0,attribute:"centered"})],e.prototype,"centered",void 0),u([(0,c.property)({type:Boolean,reflect:!0,attribute:"fixed-strategy"})],e.prototype,"fixed",void 0),u([(0,c.property)({type:Boolean,reflect:!0,attribute:"full-screen"})],e.prototype,"full",void 0),u([(0,c.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),u([(0,c.property)({type:String,attribute:"resize-aria-label"})],e.prototype,"resizeAriaLabel",void 0),u([(0,c.property)({type:String,attribute:"maximize-aria-label"})],e.prototype,"maximizeScreenLabel",void 0),u([(0,c.property)({type:String,attribute:"minimize-aria-label"})],e.prototype,"minimizeAriaLabel",void 0),u([(0,c.property)({type:String,attribute:"move-aria-label"})],e.prototype,"moveAriaLabel",void 0),u([(0,c.property)({type:Boolean,attribute:"hide-move-button"})],e.prototype,"hideMoveButton",void 0),u([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"maximizable",void 0),u([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"resizable",void 0),u([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),u([(0,c.property)({type:Object})],e.prototype,"position",void 0),u([(0,c.property)({type:Object})],e.prototype,"minPosition",void 0),u([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"minimizable",void 0),u([(0,c.property)({type:Object})],e.prototype,"containerRect",void 0),u([(0,c.state)()],e.prototype,"dragOccured",void 0),u([(0,c.query)(".md-floating")],e.prototype,"container",void 0),u([(0,c.query)(".md-floating__body")],e.prototype,"body",void 0),u([(0,c.query)(".md-floating__header")],e.prototype,"header",void 0),u([(0,c.query)(".md-floating-min-parent")],e.prototype,"minimizedHeader",void 0),u([(0,c.query)('slot[name="header"]')],e.prototype,"headerSlot",void 0),e=u([(0,s.w)("md-floating-modal")],e),t.ELEMENT=e}(o||(o={}))},7704(t,e,i){i.d(e,{TS:()=>a.T,UM:()=>n.U,yC:()=>o.y}),i(2364);var o=i(3203),n=(i(9938),i(5201)),a=(i(4781),i(608))},8088(t){t.exports=l},7346(t){t.exports=d},9e3(t){t.exports=m},727(t){t.exports=c},3288(t){t.exports=h},2022(t){t.exports=a},554(t){t.exports=s},7161(e){e.exports=t},429(t){t.exports=e},5125(t){t.exports=i},291(t){t.exports=n},318(t){t.exports=o},5314(t){t.exports=r}};const u={};function f(t){const e=u[t];if(void 0!==e)return e.exports;const i=u[t]={exports:{}};return p[t](i,i.exports,f),i.exports}f.m=p,(()=>{const t=[];f.O=(e,i,o,n)=>{if(i){n=n||0;for(var a=t.length;a>0&&t[a-1][2]>n;a--)t[a]=t[a-1];return void(t[a]=[i,o,n])}let s=1/0;for(a=0;a<t.length;a++){let[i,o,n]=t[a],l=!0;for(var r=0;r<i.length;r++)(!1&n||s>=n)&&Object.keys(f.O).every(t=>f.O[t](i[r]))?i.splice(r--,1):(l=!1,n<s&&(s=n));if(l){t.splice(a--,1);const i=o();void 0!==i&&(e=i)}}return e}})(),f.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return f.d(e,{a:e}),e},f.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var o=e[i++],n=e[i++];f.o(t,o)?0===n&&i++:0===n?Object.defineProperty(t,o,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,o,{enumerable:!0,get:n})}else for(var o in e)f.o(e,o)&&!f.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},f.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),f.r=t=>{Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{const t={561:0,762:0,2942:0,5323:0,7704:0,8180:0,9237:0};f.O.j=e=>0===t[e];const e=(e,i)=>{let[o,n,a]=i;var s,r,l=0;if(o.some(e=>0!==t[e])){for(s in n)f.o(n,s)&&(f.m[s]=n[s]);if(a)var d=a(f)}for(e&&e(i);l<o.length;l++)r=o[l],f.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return f.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();let b=f.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5584,2900,2050,6343,7582,608,9613,7262],()=>f(4262));return b=f.O(b),b})());
155
+ `}};u([(0,c.property)({type:String})],e.prototype,"heading",void 0),u([(0,c.property)({type:String})],e.prototype,"label",void 0),u([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),u([(0,c.property)({type:Boolean,reflect:!0,attribute:"aspect-ratio"})],e.prototype,"aspectRatio",void 0),u([(0,c.property)({type:Boolean,reflect:!0,attribute:"centered"})],e.prototype,"centered",void 0),u([(0,c.property)({type:Boolean,reflect:!0,attribute:"fixed-strategy"})],e.prototype,"fixed",void 0),u([(0,c.property)({type:Boolean,reflect:!0,attribute:"full-screen"})],e.prototype,"full",void 0),u([(0,c.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),u([(0,c.property)({type:String,attribute:"resize-aria-label"})],e.prototype,"resizeAriaLabel",void 0),u([(0,c.property)({type:String,attribute:"maximize-aria-label"})],e.prototype,"maximizeScreenLabel",void 0),u([(0,c.property)({type:String,attribute:"minimize-aria-label"})],e.prototype,"minimizeAriaLabel",void 0),u([(0,c.property)({type:String,attribute:"move-aria-label"})],e.prototype,"moveAriaLabel",void 0),u([(0,c.property)({type:Boolean,attribute:"hide-move-button"})],e.prototype,"hideMoveButton",void 0),u([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"maximizable",void 0),u([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"resizable",void 0),u([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),u([(0,c.property)({type:Object})],e.prototype,"position",void 0),u([(0,c.property)({type:Object})],e.prototype,"minPosition",void 0),u([(0,c.property)({type:Boolean,reflect:!0})],e.prototype,"minimizable",void 0),u([(0,c.property)({type:Object})],e.prototype,"containerRect",void 0),u([(0,c.state)()],e.prototype,"dragOccured",void 0),u([(0,c.query)(".md-floating")],e.prototype,"container",void 0),u([(0,c.query)(".md-floating__body")],e.prototype,"body",void 0),u([(0,c.query)(".md-floating__header")],e.prototype,"header",void 0),u([(0,c.query)(".md-floating-min-parent")],e.prototype,"minimizedHeader",void 0),u([(0,c.query)('slot[name="header"]')],e.prototype,"headerSlot",void 0),e=u([(0,s.w)("md-floating-modal")],e),t.ELEMENT=e}(o||(o={}))},7704(t,e,i){i.d(e,{TS:()=>a.T,UM:()=>n.U,yC:()=>o.y}),i(2364);var o=i(3203),n=(i(9938),i(5201)),a=(i(4781),i(608))},8088(e){e.exports=t},7346(t){t.exports=e},9e3(t){t.exports=i},727(t){t.exports=o},3288(t){t.exports=n},2022(t){t.exports=a},554(t){t.exports=s},7161(t){t.exports=r},429(t){t.exports=l},5125(t){t.exports=d},291(t){t.exports=m},318(t){t.exports=c},5314(t){t.exports=h}};const u={};function f(t){const e=u[t];if(void 0!==e)return e.exports;const i=u[t]={exports:{}};return p[t](i,i.exports,f),i.exports}f.m=p,(()=>{const t=[];f.O=(e,i,o,n)=>{if(i){n=n||0;for(var a=t.length;a>0&&t[a-1][2]>n;a--)t[a]=t[a-1];return void(t[a]=[i,o,n])}let s=1/0;for(a=0;a<t.length;a++){let[i,o,n]=t[a],l=!0;for(var r=0;r<i.length;r++)(!1&n||s>=n)&&Object.keys(f.O).every(t=>f.O[t](i[r]))?i.splice(r--,1):(l=!1,n<s&&(s=n));if(l){t.splice(a--,1);const i=o();void 0!==i&&(e=i)}}return e}})(),f.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return f.d(e,{a:e}),e},f.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var o=e[i++],n=e[i++];f.o(t,o)?0===n&&i++:0===n?Object.defineProperty(t,o,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,o,{enumerable:!0,get:n})}else for(var o in e)f.o(e,o)&&!f.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},f.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),f.r=t=>{Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{const t={561:0,762:0,2942:0,5323:0,7704:0,8180:0,9237:0};f.O.j=e=>0===t[e];const e=(e,i)=>{let[o,n,a]=i;var s,r,l=0;if(o.some(e=>0!==t[e])){for(s in n)f.o(n,s)&&(f.m[s]=n[s]);if(a)var d=a(f)}for(e&&e(i);l<o.length;l++)r=o[l],f.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return f.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();let b=f.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5584,2900,2050,6343,7582,608,9613,7262],()=>f(4262));return b=f.O(b),b})());
@@ -1,4 +1,4 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx"],t);else{var r="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/style-map.js"],e["lit/directives/if-defined.js"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,(e,t,r,i,o,s,l,n)=>(()=>{"use strict";var a={8637(e,t,r){r.r(t),r.d(t,{Grabber:()=>i}),r(1821);var i,o=r(3876),s=r(7704),l=r(9609),n=r(7154),a=r(4084),d=r(7161),c=r(429),u=r(5125),h=r(291),p=r(7155),b=function(e,t,r,i){var o,s=arguments.length,l=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(l=(s<3?o(l):s>3?o(t,r,l):o(t,r))||l);return s>3&&l&&Object.defineProperty(t,r,l),l};!function(e){let t=class extends((0,s.yC)(d.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1,this.shadow=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[a.A,p.A]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(e){this.disableClickToggle||(0,n.o)(e.code)&&(e.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get currentLabel(){return this.checked?this.checkedLabel:this.label}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,[`md-grabber--${this.alignment}`]:this.alignment,visible:this.visible||this.focused,"md-grabber--rtl":this.isRtl}}get grabberContainerClassMap(){return{[`${this.alignment}`]:!0,shadow:this.shadow&&(this.visible||this.checked)}}get isRtl(){return"rtl"===getComputedStyle(this).direction}get iconName(){if(this.dragger)return"list-menu-bold";if("leading"===this.alignment||"trailing"===this.alignment){const e=this.isRtl?"arrow-right-bold":"arrow-left-bold",t=this.isRtl?"arrow-left-bold":"arrow-right-bold";return this.checked?e:t}return this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger||!1===o.themeManager.isMomentumV2Enabled?"10":"12"}render(){return d.html`
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("mobx"));else if("function"==typeof define&&define.amd)define(["@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/style-map.js","mobx"],t);else{var r="object"==typeof exports?t(require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("mobx")):t(e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"],e["lit/directives/style-map.js"],e.mobx);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(self,(e,t,r,i,o,s,l,n)=>(()=>{"use strict";var a={8637(e,t,r){r.r(t),r.d(t,{Grabber:()=>i}),r(1821);var i,o=r(3876),s=r(7704),l=r(9609),n=r(7154),a=r(4084),d=r(7161),c=r(429),u=r(5125),h=r(291),p=r(7155),b=function(e,t,r,i){var o,s=arguments.length,l=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(l=(s<3?o(l):s>3?o(t,r,l):o(t,r))||l);return s>3&&l&&Object.defineProperty(t,r,l),l};!function(e){let t=class extends((0,s.yC)(d.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1,this.shadow=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[a.A,p.A]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(e){this.disableClickToggle||(0,n.o)(e.code)&&(e.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get currentLabel(){return this.checked?this.checkedLabel:this.label}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,[`md-grabber--${this.alignment}`]:this.alignment,visible:this.visible||this.focused,"md-grabber--rtl":this.isRtl}}get grabberContainerClassMap(){return{[`${this.alignment}`]:!0,shadow:this.shadow&&(this.visible||this.checked)}}get isRtl(){return"rtl"===getComputedStyle(this).direction}get iconName(){if(this.dragger)return"list-menu-bold";if("leading"===this.alignment||"trailing"===this.alignment){const e=this.isRtl?"arrow-right-bold":"arrow-left-bold",t=this.isRtl?"arrow-left-bold":"arrow-right-bold";return this.checked?e:t}return this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger||!1===o.themeManager.isMomentumV2Enabled?"10":"12"}render(){return d.html`
2
2
  <div class="md-grabber__container ${(0,u.classMap)(this.grabberContainerClassMap)}">
3
3
  <button
4
4
  class="md-grabber ${(0,u.classMap)(this.grabberClassMap)}"
@@ -23,4 +23,4 @@
23
23
  ></md-icon>
24
24
  </button>
25
25
  </div>
26
- `}};b([(0,c.property)({type:String})],t.prototype,"label",void 0),b([(0,c.property)({type:String})],t.prototype,"checkedLabel",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"hovered",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"disabled",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"checked",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"visible",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"focused",void 0),b([(0,c.property)({type:Boolean,attribute:"disable-click-toggle"})],t.prototype,"disableClickToggle",void 0),b([(0,c.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"dragger",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"shadow",void 0),t=b([(0,l.w)("md-grabber")],t),e.ELEMENT=t}(i||(i={}))},2022(e){e.exports=s},554(e){e.exports=l},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=r},291(e){e.exports=o},318(e){e.exports=i},5314(e){e.exports=n}};const d={};function c(e){const t=d[e];if(void 0!==t)return t.exports;const r=d[e]={exports:{}};return a[e](r,r.exports,c),r.exports}c.m=a,(()=>{const e=[];c.O=(t,r,i,o)=>{if(r){o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];return void(e[s]=[r,i,o])}let l=1/0;for(s=0;s<e.length;s++){let[r,i,o]=e[s],a=!0;for(var n=0;n<r.length;n++)(!1&o||l>=o)&&Object.keys(c.O).every(e=>c.O[e](r[n]))?r.splice(n--,1):(a=!1,o<l&&(l=o));if(a){e.splice(s--,1);const r=i();void 0!==r&&(t=r)}}return t}})(),c.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var i=t[r++],o=t[r++];c.o(e,i)?0===o&&r++:0===o?Object.defineProperty(e,i,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,i,{enumerable:!0,get:o})}else for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={3747:0};c.O.j=t=>0===e[t];const t=(t,r)=>{let[i,o,s]=r;var l,n,a=0;if(i.some(t=>0!==e[t])){for(l in o)c.o(o,l)&&(c.m[l]=o[l]);if(s)var d=s(c)}for(t&&t(r);a<i.length;a++)n=i[a],c.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return c.O(d)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();let u=c.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5584,5201,8227,2900,7704,3876,7155],()=>c(8637));return u=c.O(u),u})());
26
+ `}};b([(0,c.property)({type:String})],t.prototype,"label",void 0),b([(0,c.property)({type:String})],t.prototype,"checkedLabel",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"hovered",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"disabled",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"checked",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"visible",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"focused",void 0),b([(0,c.property)({type:Boolean,attribute:"disable-click-toggle"})],t.prototype,"disableClickToggle",void 0),b([(0,c.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"dragger",void 0),b([(0,c.property)({type:Boolean})],t.prototype,"shadow",void 0),t=b([(0,l.w)("md-grabber")],t),e.ELEMENT=t}(i||(i={}))},2022(t){t.exports=e},554(e){e.exports=t},7161(e){e.exports=r},429(e){e.exports=i},5125(e){e.exports=o},291(e){e.exports=s},318(e){e.exports=l},5314(e){e.exports=n}};const d={};function c(e){const t=d[e];if(void 0!==t)return t.exports;const r=d[e]={exports:{}};return a[e](r,r.exports,c),r.exports}c.m=a,(()=>{const e=[];c.O=(t,r,i,o)=>{if(r){o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];return void(e[s]=[r,i,o])}let l=1/0;for(s=0;s<e.length;s++){let[r,i,o]=e[s],a=!0;for(var n=0;n<r.length;n++)(!1&o||l>=o)&&Object.keys(c.O).every(e=>c.O[e](r[n]))?r.splice(n--,1):(a=!1,o<l&&(l=o));if(a){e.splice(s--,1);const r=i();void 0!==r&&(t=r)}}return t}})(),c.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var i=t[r++],o=t[r++];c.o(e,i)?0===o&&r++:0===o?Object.defineProperty(e,i,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,i,{enumerable:!0,get:o})}else for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={3747:0};c.O.j=t=>0===e[t];const t=(t,r)=>{let[i,o,s]=r;var l,n,a=0;if(i.some(t=>0!==e[t])){for(l in o)c.o(o,l)&&(c.m[l]=o[l]);if(s)var d=s(c)}for(t&&t(r);a<i.length;a++)n=i[a],c.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return c.O(d)},r=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();let u=c.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,1821,2364,9938,4781,5584,5201,8227,2900,7704,3876,7155],()=>c(8637));return u=c.O(u),u})());
@@ -1,4 +1,4 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/style-map.js","lit/directives/if-defined.js","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx"],e);else{var i="object"==typeof exports?e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js"),require("lit/directives/if-defined.js"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx")):e(t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/style-map.js"],t["lit/directives/if-defined.js"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.mobx);for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(self,(t,e,i,o,n,s,r,l)=>(()=>{"use strict";var c={1821(t,e,i){i.r(e),i.d(e,{Icon:()=>o}),i(5983);var o,n=i(9609),s=i(4084),r=i(2022),l=i.n(r),c=i(554),a=i.n(c),u=i(7161),d=i(429),m=i(5125),h=i(291),p=i(318),v=i(7955),g=i(9837),b=i(7253),y=i(1722),f=function(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){var e;let i=e=class extends u.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this.abortController=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`);break;case"name-changed":console.warn(`[@momentum-ui/web-component] Icon: The name changed to '${e[0]}' before the SVG icon '${e[1]}' finished loading; skipping outdated result.`)}}}renewSignal(){var t;return null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=new AbortController,this.abortController.signal}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=null}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,n=function*(){var e,i,o,n;if(this.isSvgAlreadyLoaded(t))return;const s=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"),r=this.renewSignal(),l=yield(0,y.Jp)(this.computedSvgPath,t,"svg",r);if(!l)return;const c=null===(i=this.svgIcon)||void 0===i?void 0:i.getAttribute("class");s===c?(this.svgIcon=l,null===(o=this.svgIcon)||void 0===o||o.setAttribute("class",`icon ${t}`),null===(n=this.svgIcon)||void 0===n||n.setAttribute("part","icon"),this.setSvgIconAttributes()):this.consoleHandler("name-changed",[null!=c?c:"",t])},new((o=void 0)||(o=Promise))(function(t,s){function r(t){try{c(n.next(t))}catch(t){s(t)}}function l(t){try{c(n.throw(t))}catch(t){s(t)}}function c(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(r,l)}c((n=n.apply(e,i||[])).next())});var e,i,o,n}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:b.O.svgIconUrl}getIsMomentumDesignName(t){return t.endsWith("-filled")||t.endsWith("-light")||t.endsWith("-regular")||t.endsWith("-bold")}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;if("preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name))return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:a()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):"preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name)?"":l().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[s.A,g.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return u.html`
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("mobx"));else if("function"==typeof define&&define.amd)define(["@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/style-map.js","mobx"],e);else{var i="object"==typeof exports?e(require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/style-map.js"),require("mobx")):e(t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/if-defined.js"],t["lit/directives/style-map.js"],t.mobx);for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(self,(t,e,i,o,n,s,r,l)=>(()=>{"use strict";var c={1821(t,e,i){i.r(e),i.d(e,{Icon:()=>o}),i(5983);var o,n=i(9609),s=i(4084),r=i(2022),l=i.n(r),c=i(554),a=i.n(c),u=i(7161),d=i(429),m=i(5125),h=i(291),p=i(318),v=i(7955),g=i(9837),b=i(7253),y=i(1722),f=function(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){var e;let i=e=class extends u.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this.abortController=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`);break;case"name-changed":console.warn(`[@momentum-ui/web-component] Icon: The name changed to '${e[0]}' before the SVG icon '${e[1]}' finished loading; skipping outdated result.`)}}}renewSignal(){var t;return null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=new AbortController,this.abortController.signal}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=null}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,n=function*(){var e,i,o,n;if(this.isSvgAlreadyLoaded(t))return;const s=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"),r=this.renewSignal(),l=yield(0,y.Jp)(this.computedSvgPath,t,"svg",r);if(!l)return;const c=null===(i=this.svgIcon)||void 0===i?void 0:i.getAttribute("class");s===c?(this.svgIcon=l,null===(o=this.svgIcon)||void 0===o||o.setAttribute("class",`icon ${t}`),null===(n=this.svgIcon)||void 0===n||n.setAttribute("part","icon"),this.setSvgIconAttributes()):this.consoleHandler("name-changed",[null!=c?c:"",t])},new((o=void 0)||(o=Promise))(function(t,s){function r(t){try{c(n.next(t))}catch(t){s(t)}}function l(t){try{c(n.throw(t))}catch(t){s(t)}}function c(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(r,l)}c((n=n.apply(e,i||[])).next())});var e,i,o,n}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:b.O.svgIconUrl}getIsMomentumDesignName(t){return t.endsWith("-filled")||t.endsWith("-light")||t.endsWith("-regular")||t.endsWith("-bold")}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;if("preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name))return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:a()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):"preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name)?"":l().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[s.A,g.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return u.html`
2
2
  <i
3
3
  part="icon"
4
4
  id=${this.id}
@@ -23,4 +23,4 @@
23
23
  >
24
24
  ${this.svgIcon?this.svgIcon:u.nothing}
25
25
  </div>
26
- `}};i.designLookup=new Map(Object.entries(v)),f([(0,d.property)({type:String})],i.prototype,"color",void 0),f([(0,d.property)({type:String})],i.prototype,"description",void 0),f([(0,d.property)({type:String})],i.prototype,"name",void 0),f([(0,d.property)({type:String})],i.prototype,"id",void 0),f([(0,d.property)({type:String})],i.prototype,"size",void 0),f([(0,d.property)({type:String})],i.prototype,"title",void 0),f([(0,d.property)({type:String})],i.prototype,"ariaHidden",void 0),f([(0,d.property)({type:String})],i.prototype,"type",void 0),f([(0,d.property)({type:Boolean})],i.prototype,"isActive",void 0),f([(0,d.property)({type:Boolean})],i.prototype,"isComboBoxIcon",void 0),f([(0,d.property)({type:Boolean})],i.prototype,"sizeOverrided",void 0),f([(0,d.property)({type:String})],i.prototype,"iconSet",void 0),f([(0,d.property)({type:String,attribute:"svg-url"})],i.prototype,"svgUrl",void 0),f([(0,d.state)()],i.prototype,"svgIcon",void 0),f([(0,d.property)({type:String})],i.prototype,"ariaLabel",null),i=e=f([(0,n.w)("md-icon")],i),t.ELEMENT=i}(o||(o={})),i.d(e,["iconSet",0,["momentumUI","preferMomentumDesign","momentumDesign","momentumBrandVisuals","svg"],"iconSize",0,["14","16","18","20","28","36","56",14,16,18,20,28,36,56],"iconType",0,["","white"]])},2022(t){t.exports=s},554(t){t.exports=r},7161(e){e.exports=t},429(t){t.exports=e},5125(t){t.exports=i},291(t){t.exports=n},318(t){t.exports=o},5314(t){t.exports=l}};const a={};function u(t){const e=a[t];if(void 0!==e)return e.exports;const i=a[t]={exports:{}};return c[t](i,i.exports,u),i.exports}u.m=c,(()=>{const t=[];u.O=(e,i,o,n)=>{if(i){n=n||0;for(var s=t.length;s>0&&t[s-1][2]>n;s--)t[s]=t[s-1];return void(t[s]=[i,o,n])}let r=1/0;for(s=0;s<t.length;s++){let[i,o,n]=t[s],c=!0;for(var l=0;l<i.length;l++)(!1&n||r>=n)&&Object.keys(u.O).every(t=>u.O[t](i[l]))?i.splice(l--,1):(c=!1,n<r&&(r=n));if(c){t.splice(s--,1);const i=o();void 0!==i&&(e=i)}}return e}})(),u.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return u.d(e,{a:e}),e},u.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var o=e[i++],n=e[i++];u.o(t,o)?0===n&&i++:0===n?Object.defineProperty(t,o,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,o,{enumerable:!0,get:n})}else for(var o in e)u.o(e,o)&&!u.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},u.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),u.r=t=>{Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{const t={1821:0,7927:0};u.O.j=e=>0===t[e];const e=(e,i)=>{let[o,n,s]=i;var r,l,c=0;if(o.some(e=>0!==t[e])){for(r in n)u.o(n,r)&&(u.m[r]=n[r]);if(s)var a=s(u)}for(e&&e(i);c<o.length;c++)l=o[c],u.o(t,l)&&t[l]&&t[l][0](),t[l]=0;return u.O(a)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();let d=u.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,519],()=>u(1821));return d=u.O(d),d})());
26
+ `}};i.designLookup=new Map(Object.entries(v)),f([(0,d.property)({type:String})],i.prototype,"color",void 0),f([(0,d.property)({type:String})],i.prototype,"description",void 0),f([(0,d.property)({type:String})],i.prototype,"name",void 0),f([(0,d.property)({type:String})],i.prototype,"id",void 0),f([(0,d.property)({type:String})],i.prototype,"size",void 0),f([(0,d.property)({type:String})],i.prototype,"title",void 0),f([(0,d.property)({type:String})],i.prototype,"ariaHidden",void 0),f([(0,d.property)({type:String})],i.prototype,"type",void 0),f([(0,d.property)({type:Boolean})],i.prototype,"isActive",void 0),f([(0,d.property)({type:Boolean})],i.prototype,"isComboBoxIcon",void 0),f([(0,d.property)({type:Boolean})],i.prototype,"sizeOverrided",void 0),f([(0,d.property)({type:String})],i.prototype,"iconSet",void 0),f([(0,d.property)({type:String,attribute:"svg-url"})],i.prototype,"svgUrl",void 0),f([(0,d.state)()],i.prototype,"svgIcon",void 0),f([(0,d.property)({type:String})],i.prototype,"ariaLabel",null),i=e=f([(0,n.w)("md-icon")],i),t.ELEMENT=i}(o||(o={})),i.d(e,["iconSet",0,["momentumUI","preferMomentumDesign","momentumDesign","momentumBrandVisuals","svg"],"iconSize",0,["14","16","18","20","28","36","56",14,16,18,20,28,36,56],"iconType",0,["","white"]])},2022(e){e.exports=t},554(t){t.exports=e},7161(t){t.exports=i},429(t){t.exports=o},5125(t){t.exports=n},291(t){t.exports=s},318(t){t.exports=r},5314(t){t.exports=l}};const a={};function u(t){const e=a[t];if(void 0!==e)return e.exports;const i=a[t]={exports:{}};return c[t](i,i.exports,u),i.exports}u.m=c,(()=>{const t=[];u.O=(e,i,o,n)=>{if(i){n=n||0;for(var s=t.length;s>0&&t[s-1][2]>n;s--)t[s]=t[s-1];return void(t[s]=[i,o,n])}let r=1/0;for(s=0;s<t.length;s++){let[i,o,n]=t[s],c=!0;for(var l=0;l<i.length;l++)(!1&n||r>=n)&&Object.keys(u.O).every(t=>u.O[t](i[l]))?i.splice(l--,1):(c=!1,n<r&&(r=n));if(c){t.splice(s--,1);const i=o();void 0!==i&&(e=i)}}return e}})(),u.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return u.d(e,{a:e}),e},u.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var o=e[i++],n=e[i++];u.o(t,o)?0===n&&i++:0===n?Object.defineProperty(t,o,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,o,{enumerable:!0,get:n})}else for(var o in e)u.o(e,o)&&!u.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},u.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),u.r=t=>{Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{const t={1821:0,7927:0};u.O.j=e=>0===t[e];const e=(e,i)=>{let[o,n,s]=i;var r,l,c=0;if(o.some(e=>0!==t[e])){for(r in n)u.o(n,r)&&(u.m[r]=n[r]);if(s)var a=s(u)}for(e&&e(i);c<o.length;c++)l=o[c],u.o(t,l)&&t[l]&&t[l][0](),t[l]=0;return u.O(a)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();let d=u.O(void 0,[9609,4084,3305,4739,7154,9773,5983,9488,519],()=>u(1821));return d=u.O(d),d})());