@momentum-ui/web-components 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1013.js +1 -1
- package/dist/109.js +1 -1
- package/dist/1092.js +1 -1
- package/dist/1200.js +1 -1
- package/dist/1270.js +1 -1
- package/dist/1323.js +2 -2
- package/dist/1439.js +1 -1
- package/dist/144.js +1 -1
- package/dist/1465.js +1 -1
- package/dist/15.js +1 -1
- package/dist/1564.js +1 -1
- package/dist/1625.js +1 -1
- package/dist/1626.js +1 -1
- package/dist/1729.js +1 -1
- package/dist/1890.js +1 -1
- package/dist/195.js +1 -1
- package/dist/2056.js +1 -1
- package/dist/2093.js +1 -1
- package/dist/2176.js +1 -1
- package/dist/2186.js +1 -1
- package/dist/2201.js +1 -1
- package/dist/2243.js +1 -1
- package/dist/2314.js +1 -1
- package/dist/2547.js +6 -6
- package/dist/2555.js +3 -3
- package/dist/2576.js +1 -1
- package/dist/2669.js +1 -1
- package/dist/2714.js +1 -1
- package/dist/2848.js +1 -1
- package/dist/2924.js +1 -1
- package/dist/2972.js +1 -1
- package/dist/300.js +1 -1
- package/dist/3001.js +1 -1
- package/dist/3135.js +1 -1
- package/dist/3192.js +1 -1
- package/dist/3212.js +1 -1
- package/dist/3477.js +1 -1
- package/dist/3625.js +1 -1
- package/dist/3739.js +1 -1
- package/dist/3820.js +1 -1
- package/dist/3852.js +1 -1
- package/dist/4006.js +1 -1
- package/dist/4313.js +1 -1
- package/dist/4363.js +1 -1
- package/dist/4462.js +1 -1
- package/dist/4548.js +1 -1
- package/dist/4624.js +1 -1
- package/dist/4659.js +1 -1
- package/dist/4744.js +1 -1
- package/dist/4889.js +1 -1
- package/dist/5087.js +1 -1
- package/dist/510.js +1 -1
- package/dist/5211.js +1 -1
- package/dist/5382.js +1 -1
- package/dist/5427.js +1 -1
- package/dist/5433.js +1 -1
- package/dist/5524.js +1 -1
- package/dist/5630.js +1 -1
- package/dist/5799.js +1 -1
- package/dist/5809.js +1 -1
- package/dist/5838.js +1 -1
- package/dist/591.js +1 -1
- package/dist/6188.js +1 -1
- package/dist/622.js +1 -1
- package/dist/6273.js +1 -1
- package/dist/6283.js +1 -1
- package/dist/6396.js +1 -1
- package/dist/6408.js +3 -3
- package/dist/6677.js +1 -1
- package/dist/671.js +1 -1
- package/dist/6754.js +1 -1
- package/dist/6765.js +1 -1
- package/dist/679.js +2 -2
- package/dist/6798.js +2 -2
- package/dist/6865.js +1 -1
- package/dist/7103.js +1 -1
- package/dist/7119.js +2 -2
- package/dist/7292.js +1 -1
- package/dist/754.js +1 -1
- package/dist/759.js +1 -1
- package/dist/768.js +1 -1
- package/dist/7719.js +1 -1
- package/dist/7763.js +1 -1
- package/dist/7814.js +1 -1
- package/dist/7819.js +1 -1
- package/dist/7833.js +1 -1
- package/dist/7919.js +1 -1
- package/dist/8028.js +3 -3
- package/dist/8033.js +1 -1
- package/dist/8148.js +1 -1
- package/dist/8161.js +1 -1
- package/dist/8171.js +1 -1
- package/dist/8210.js +1 -1
- package/dist/8227.js +1 -1
- package/dist/8345.js +1 -1
- package/dist/836.js +1 -1
- package/dist/8373.js +1 -1
- package/dist/8387.js +1 -1
- package/dist/8391.js +1 -1
- package/dist/8576.js +1 -1
- package/dist/8588.js +1 -1
- package/dist/8889.js +1 -1
- package/dist/8923.js +1 -1
- package/dist/8983.js +1 -1
- package/dist/9058.js +1 -1
- package/dist/9164.js +1 -1
- package/dist/9238.js +1 -1
- package/dist/9270.js +1 -1
- package/dist/9312.js +1 -1
- package/dist/9409.js +1 -1
- package/dist/9425.js +1 -1
- package/dist/9455.js +1 -1
- package/dist/9480.js +1 -1
- package/dist/9654.js +1 -1
- package/dist/984.js +2 -2
- package/dist/chunks/md-1012.js +1 -1
- package/dist/chunks/md-1036.js +1 -1
- package/dist/chunks/md-108.js +1 -1
- package/dist/chunks/md-1180.js +1 -1
- package/dist/chunks/md-1192.js +1 -1
- package/dist/chunks/md-1297.js +1 -1
- package/dist/chunks/md-1497.js +1 -1
- package/dist/chunks/md-1519.js +1 -1
- package/dist/chunks/md-1533.js +1 -1
- package/dist/chunks/md-1679.js +1 -1
- package/dist/chunks/md-1786.js +1 -1
- package/dist/chunks/md-181.js +1 -1
- package/dist/chunks/md-1870.js +1 -1
- package/dist/chunks/md-1942.js +1 -1
- package/dist/chunks/md-1983.js +1 -1
- package/dist/chunks/md-2052.js +1 -1
- package/dist/chunks/md-2086.js +1 -1
- package/dist/chunks/md-2224.js +1 -1
- package/dist/chunks/md-2241.js +1 -1
- package/dist/chunks/md-2278.js +1 -1
- package/dist/chunks/md-2292.js +1 -1
- package/dist/chunks/md-2329.js +1 -1
- package/dist/chunks/md-2402.js +1 -1
- package/dist/chunks/md-2539.js +1 -1
- package/dist/chunks/md-258.js +1 -1
- package/dist/chunks/md-2670.js +1 -1
- package/dist/chunks/md-2698.js +1 -1
- package/dist/chunks/md-2701.js +1 -1
- package/dist/chunks/md-2731.js +1 -1
- package/dist/chunks/md-279.js +1 -1
- package/dist/chunks/md-2825.js +1 -1
- package/dist/chunks/md-2896.js +1 -1
- package/dist/chunks/md-2904.js +1 -1
- package/dist/chunks/md-2923.js +1 -1
- package/dist/chunks/md-2962.js +1 -1
- package/dist/chunks/md-2970.js +1 -1
- package/dist/chunks/md-2978.js +1 -1
- package/dist/chunks/md-3035.js +1 -1
- package/dist/chunks/md-3105.js +1 -1
- package/dist/chunks/md-3195.js +1 -1
- package/dist/chunks/md-3206.js +1 -1
- package/dist/chunks/md-3231.js +1 -1
- package/dist/chunks/md-3255.js +1 -1
- package/dist/chunks/md-3270.js +1 -1
- package/dist/chunks/md-3315.js +1 -1
- package/dist/chunks/md-3399.js +1 -1
- package/dist/chunks/md-3402.js +1 -1
- package/dist/chunks/md-3409.js +1 -1
- package/dist/chunks/md-3447.js +1 -1
- package/dist/chunks/md-3458.js +1 -1
- package/dist/chunks/md-3543.js +1 -1
- package/dist/chunks/md-3557.js +1 -1
- package/dist/chunks/md-3618.js +1 -1
- package/dist/chunks/md-364.js +1 -1
- package/dist/chunks/md-3666.js +1 -1
- package/dist/chunks/md-3712.js +1 -1
- package/dist/chunks/md-3732.js +1 -1
- package/dist/chunks/md-3838.js +1 -1
- package/dist/chunks/md-4058.js +1 -1
- package/dist/chunks/md-4108.js +1 -1
- package/dist/chunks/md-4113.js +1 -1
- package/dist/chunks/md-4125.js +1 -1
- package/dist/chunks/md-414.js +1 -1
- package/dist/chunks/md-4177.js +1 -1
- package/dist/chunks/md-4205.js +1 -1
- package/dist/chunks/md-431.js +1 -1
- package/dist/chunks/md-436.js +1 -1
- package/dist/chunks/md-4412.js +1 -1
- package/dist/chunks/md-4460.js +1 -1
- package/dist/chunks/md-4490.js +1 -1
- package/dist/chunks/md-4561.js +1 -1
- package/dist/chunks/md-4564.js +1 -1
- package/dist/chunks/md-4608.js +1 -1
- package/dist/chunks/md-4635.js +1 -1
- package/dist/chunks/md-4663.js +1 -1
- package/dist/chunks/md-4701.js +1 -1
- package/dist/chunks/md-4714.js +1 -1
- package/dist/chunks/md-4745.js +1 -1
- package/dist/chunks/md-4893.js +1 -1
- package/dist/chunks/md-4896.js +1 -1
- package/dist/chunks/md-4904.js +1 -1
- package/dist/chunks/md-4911.js +1 -1
- package/dist/chunks/md-5076.js +1 -1
- package/dist/chunks/md-5089.js +1 -1
- package/dist/chunks/md-5093.js +1 -1
- package/dist/chunks/md-5117.js +1 -1
- package/dist/chunks/md-5133.js +1 -1
- package/dist/chunks/md-5320.js +1 -1
- package/dist/chunks/md-5331.js +1 -1
- package/dist/chunks/md-5344.js +1 -1
- package/dist/chunks/md-5439.js +1 -1
- package/dist/chunks/md-5449.js +1 -1
- package/dist/chunks/md-5468.js +1 -1
- package/dist/chunks/md-5506.js +1 -1
- package/dist/chunks/md-5579.js +1 -1
- package/dist/chunks/md-5610.js +1 -1
- package/dist/chunks/md-5617.js +1 -1
- package/dist/chunks/md-5672.js +1 -1
- package/dist/chunks/md-5754.js +1 -1
- package/dist/chunks/md-5772.js +1 -1
- package/dist/chunks/md-5790.js +1 -1
- package/dist/chunks/md-581.js +1 -1
- package/dist/chunks/md-5812.js +1 -1
- package/dist/chunks/md-5814.js +1 -1
- package/dist/chunks/md-5892.js +1 -1
- package/dist/chunks/md-593.js +1 -1
- package/dist/chunks/md-5976.js +1 -1
- package/dist/chunks/md-6023.js +1 -1
- package/dist/chunks/md-6033.js +1 -1
- package/dist/chunks/md-6122.js +1 -1
- package/dist/chunks/md-6269.js +1 -1
- package/dist/chunks/md-634.js +1 -1
- package/dist/chunks/md-6384.js +1 -1
- package/dist/chunks/md-6414.js +1 -1
- package/dist/chunks/md-6427.js +1 -1
- package/dist/chunks/md-6478.js +1 -1
- package/dist/chunks/md-6503.js +1 -1
- package/dist/chunks/md-6571.js +1 -1
- package/dist/chunks/md-6617.js +1 -1
- package/dist/chunks/md-6685.js +1 -1
- package/dist/chunks/md-6722.js +1 -1
- package/dist/chunks/md-6756.js +1 -1
- package/dist/chunks/md-6809.js +1 -1
- package/dist/chunks/md-6891.js +1 -1
- package/dist/chunks/md-7003.js +1 -1
- package/dist/chunks/md-7005.js +1 -1
- package/dist/chunks/md-7015.js +1 -1
- package/dist/chunks/md-7040.js +1 -1
- package/dist/chunks/md-7053.js +1 -1
- package/dist/chunks/md-7186.js +1 -1
- package/dist/chunks/md-7192.js +1 -1
- package/dist/chunks/md-7204.js +1 -1
- package/dist/chunks/md-7220.js +1 -1
- package/dist/chunks/md-7246.js +1 -1
- package/dist/chunks/md-7285.js +1 -1
- package/dist/chunks/md-736.js +1 -1
- package/dist/chunks/md-7492.js +1 -1
- package/dist/chunks/md-7522.js +1 -1
- package/dist/chunks/md-7533.js +1 -1
- package/dist/chunks/md-7556.js +1 -1
- package/dist/chunks/md-7601.js +1 -1
- package/dist/chunks/md-7909.js +1 -1
- package/dist/chunks/md-7918.js +1 -1
- package/dist/chunks/md-7939.js +1 -1
- package/dist/chunks/md-8100.js +1 -1
- package/dist/chunks/md-8103.js +1 -1
- package/dist/chunks/md-8126.js +1 -1
- package/dist/chunks/md-8130.js +1 -1
- package/dist/chunks/md-8186.js +1 -1
- package/dist/chunks/md-8199.js +1 -1
- package/dist/chunks/md-8206.js +1 -1
- package/dist/chunks/md-8254.js +1 -1
- package/dist/chunks/md-8327.js +1 -1
- package/dist/chunks/md-8333.js +1 -1
- package/dist/chunks/md-8385.js +1 -1
- package/dist/chunks/md-8425.js +1 -1
- package/dist/chunks/md-8451.js +1 -1
- package/dist/chunks/md-8454.js +1 -1
- package/dist/chunks/md-8514.js +1 -1
- package/dist/chunks/md-8557.js +1 -1
- package/dist/chunks/md-8670.js +1 -1
- package/dist/chunks/md-8713.js +1 -1
- package/dist/chunks/md-8811.js +1 -1
- package/dist/chunks/md-9040.js +1 -1
- package/dist/chunks/md-9081.js +1 -1
- package/dist/chunks/md-9104.js +1 -1
- package/dist/chunks/md-9115.js +1 -1
- package/dist/chunks/md-9129.js +1 -1
- package/dist/chunks/md-9139.js +1 -1
- package/dist/chunks/md-9156.js +1 -1
- package/dist/chunks/md-9277.js +1 -1
- package/dist/chunks/md-9350.js +1 -1
- package/dist/chunks/md-9387.js +1 -1
- package/dist/chunks/md-9405.js +1 -1
- package/dist/chunks/md-9407.js +1 -1
- package/dist/chunks/md-9412.js +1 -1
- package/dist/chunks/md-9428.js +1 -1
- package/dist/chunks/md-9433.js +1 -1
- package/dist/chunks/md-945.js +1 -1
- package/dist/chunks/md-9497.js +1 -1
- package/dist/chunks/md-9559.js +1 -1
- package/dist/chunks/md-959.js +1 -1
- package/dist/chunks/md-9614.js +1 -1
- package/dist/chunks/md-9688.js +1 -1
- package/dist/chunks/md-9689.js +1 -1
- package/dist/chunks/md-9721.js +1 -1
- package/dist/chunks/md-9789.js +1 -1
- package/dist/chunks/md-9927.js +1 -1
- package/dist/chunks/md-9934.js +1 -1
- package/dist/chunks/md-9975.js +1 -1
- package/dist/chunks/md-9980.js +1 -1
- package/dist/comp/md-accordion-entry.js +2 -2
- package/dist/comp/md-accordion-item-entry.js +2 -2
- package/dist/comp/md-activity-button-entry.js +2 -2
- package/dist/comp/md-advance-list-entry.js +3 -3
- package/dist/comp/md-alert-banner-entry.js +2 -2
- package/dist/comp/md-alert-entry.js +3 -3
- package/dist/comp/md-audio-player-entry.js +4 -4
- package/dist/comp/md-avatar-entry.js +4 -4
- package/dist/comp/md-badge-entry.js +2 -2
- package/dist/comp/md-breadcrumb-entry.js +4 -4
- package/dist/comp/md-button-entry.js +3 -3
- package/dist/comp/md-button-group-entry.js +2 -2
- package/dist/comp/md-card-ai-entry.js +2 -2
- package/dist/comp/md-card-entry.js +7 -7
- package/dist/comp/md-card-v2-entry.js +3 -3
- package/dist/comp/md-chat-message-entry.js +2 -2
- package/dist/comp/md-checkbox-entry.js +2 -2
- package/dist/comp/md-checkboxgroup-entry.js +2 -2
- package/dist/comp/md-chip-entry.js +3 -3
- package/dist/comp/md-coachmark-entry.js +2 -2
- package/dist/comp/md-coachmark-popover-entry.js +3 -3
- package/dist/comp/md-combobox-entry.js +7 -7
- package/dist/comp/md-composite-avatar-entry.js +2 -2
- package/dist/comp/md-country-code-picker-entry.js +4 -4
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-date-time-picker-entry.js +2 -2
- package/dist/comp/md-datepicker-calendar-entry.js +3 -3
- package/dist/comp/md-datepicker-day-entry.js +2 -2
- package/dist/comp/md-datepicker-entry.js +2 -2
- package/dist/comp/md-datepicker-month-entry.js +2 -2
- package/dist/comp/md-datepicker-week-entry.js +2 -2
- package/dist/comp/md-draggable-entry.js +2 -2
- package/dist/comp/md-draggable-item-entry.js +2 -2
- package/dist/comp/md-dropdown-entry.js +6 -6
- package/dist/comp/md-editable-field-entry.js +2 -2
- package/dist/comp/md-favorite-entry.js +2 -2
- package/dist/comp/md-floating-minimize-entry.js +2 -2
- package/dist/comp/md-floating-modal-entry.js +3 -3
- package/dist/comp/md-form-entry.js +2 -2
- package/dist/comp/md-grabber-entry.js +2 -2
- package/dist/comp/md-help-text-entry.js +2 -2
- package/dist/comp/md-icon-entry.js +2 -2
- package/dist/comp/md-input-entry.js +4 -4
- package/dist/comp/md-input-file.js +2 -2
- package/dist/comp/md-label-entry.js +2 -2
- package/dist/comp/md-link-entry.js +2 -2
- package/dist/comp/md-list-entry.js +2 -2
- package/dist/comp/md-list-item-entry.js +2 -2
- package/dist/comp/md-loading-entry.js +2 -2
- package/dist/comp/md-meeting-alert-entry.js +2 -2
- package/dist/comp/md-menu-entry.js +2 -2
- package/dist/comp/md-menu-item-entry.js +2 -2
- package/dist/comp/md-menu-overlay-entry.js +3 -3
- package/dist/comp/md-modal-entry.js +2 -2
- package/dist/comp/md-pagination-entry.js +4 -4
- package/dist/comp/md-phone-input-entry.js +5 -5
- package/dist/comp/md-popover-entry.js +2 -2
- package/dist/comp/md-presence-entry.js +2 -2
- package/dist/comp/md-progress-bar-entry.js +2 -2
- package/dist/comp/md-radio-entry.js +2 -2
- package/dist/comp/md-radiogroup-entry.js +2 -2
- package/dist/comp/md-slider-entry.js +4 -4
- package/dist/comp/md-spinner-entry.js +2 -2
- package/dist/comp/md-tab-entry.js +2 -2
- package/dist/comp/md-tab-panel-entry.js +1 -1
- package/dist/comp/md-table-advanced-entry.js +16 -16
- package/dist/comp/md-table-entry.js +8 -8
- package/dist/comp/md-tabs-entry.js +7 -7
- package/dist/comp/md-task-item-entry.js +3 -3
- package/dist/comp/md-theme-entry.js +2 -2
- package/dist/comp/md-timepicker-entry.js +4 -4
- package/dist/comp/md-toggle-switch-entry.js +2 -2
- package/dist/comp/md-tooltip-entry.js +2 -2
- package/dist/index-entry.js +131 -131
- package/dist/managers/thememanager-entry.js +1 -1
- package/dist/types/components/combobox/ComboBox.d.ts +1 -1
- package/dist/types/components/grabber/Grabber.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
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"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,(e,t,i)=>(()=>{"use strict";var s,o={69788(e,t,i){i.r(t),i.d(t,{Loading:()=>s});var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),c=i(20015),d=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.size="",this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,c.A]}firstUpdated(e){super.firstUpdated(e),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");if(!t)return;let i=null;const s=1400,o=e=>{if(!this.isAnimating)return;i||(i=e);const r=(e-i)%s;t.forEach((e,t)=>{const i=(r-200*t+s)%s;let o=0,a=.1;if(i<280){const e=.1+i/280*.9;o=e,a=e}else if(i<1400){const e=Math.min((i-280)/1120*2,1);o=Math.max(1-.9*e,.9),a=Math.max(1-.9*e,.2)}e.style.transform=`scale(${o})`,e.style.opacity=`${a}`}),this.animationFrameId=requestAnimationFrame(o)};this.animationFrameId=requestAnimationFrame(o)}stopAnimation(){var e;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");t&&t.forEach(e=>{e.style.transform="scale(0, 0)",e.style.opacity="0.1"})}get loadingClassMap(){return{[`md-loading--${this.size}`]:!!this.size}}get loadingIconClassMap(){return{"md-loading__icon":!0}}render(){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"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,((e,t,i)=>(()=>{"use strict";var s,o={69788:(e,t,i)=>{i.r(t),i.d(t,{Loading:()=>s});var s,o=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),c=i(20015),d=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.size="",this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,c.A]}firstUpdated(e){super.firstUpdated(e),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");if(!t)return;let i=null;const s=1400,o=e=>{if(!this.isAnimating)return;i||(i=e);const r=(e-i)%s;t.forEach(((e,t)=>{const i=(r-200*t+s)%s;let o=0,a=.1;if(i<280){const e=.1+i/280*.9;o=e,a=e}else if(i<1400){const e=Math.min((i-280)/1120*2,1);o=Math.max(1-.9*e,.9),a=Math.max(1-.9*e,.2)}e.style.transform=`scale(${o})`,e.style.opacity=`${a}`})),this.animationFrameId=requestAnimationFrame(o)};this.animationFrameId=requestAnimationFrame(o)}stopAnimation(){var e;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".md-loading__icon");t&&t.forEach((e=>{e.style.transform="scale(0, 0)",e.style.opacity="0.1"}))}get loadingClassMap(){return{[`md-loading--${this.size}`]:!!this.size}}get loadingIconClassMap(){return{"md-loading__icon":!0}}render(){return a.html`
|
|
2
2
|
<div class="md-loading ${(0,l.classMap)(this.loadingClassMap)}">
|
|
3
3
|
<span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
|
|
4
4
|
<span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
|
|
5
5
|
<span class=${(0,l.classMap)(this.loadingIconClassMap)}></span>
|
|
6
6
|
</div>
|
|
7
|
-
`}};d([(0,n.property)({type:String})],t.prototype,"size",void 0),t=d([(0,o.w)("md-loading")],t),e.ELEMENT=t}(s||(s={}))},70429
|
|
7
|
+
`}};d([(0,n.property)({type:String})],t.prototype,"size",void 0),t=d([(0,o.w)("md-loading")],t),e.ELEMENT=t}(s||(s={}))},70429:e=>{e.exports=t},85125:e=>{e.exports=i},87161:t=>{t.exports=e}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,a),i.exports}a.m=o,s=[],a.O=(e,t,i,o)=>{if(!t){var r=1/0;for(d=0;d<s.length;d++){for(var[t,i,o]=s[d],n=!0,l=0;l<t.length;l++)(!1&o||r>=o)&&Object.keys(a.O).every((e=>a.O[e](t[l])))?t.splice(l--,1):(n=!1,o<r&&(r=o));if(n){s.splice(d--,1);var c=i();void 0!==c&&(e=c)}}return e}o=o||0;for(var d=s.length;d>0&&s[d-1][2]>o;d--)s[d]=s[d-1];s[d]=[t,i,o]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={502:0};a.O.j=t=>0===e[t];var t=(t,i)=>{var s,o,[r,n,l]=i,c=0;if(r.some((t=>0!==e[t]))){for(s in n)a.o(n,s)&&(a.m[s]=n[s]);if(l)var d=l(a)}for(t&&t(i);c<r.length;c++)o=r[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.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))})();var n=a.O(void 0,[1890,4313,15],(()=>a(69788)));return a.O(n)})()));
|
|
@@ -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/until.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/until.js"],t);else{var o="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/until.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/until.js"]);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,(e,t,o,i,r,s,n,l,a)=>(()=>{"use strict";var d,c={10318
|
|
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/until.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/until.js"],t);else{var o="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/until.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/until.js"]);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,((e,t,o,i,r,s,n,l,a)=>(()=>{"use strict";var d,c={10318:e=>{e.exports=i},20291:e=>{e.exports=r},32022:e=>{e.exports=s},60554:e=>{e.exports=n},61997:(e,t,o)=>{o.r(t),o.d(t,{MeetingAlert:()=>p,MeetingAlertRole:()=>m}),o(38028),o(96798),o(61200);var i=o(90195),r=o(31890),s=o(4313),n=o(87161),l=o(70429),a=o(48064),d=o(9297),c=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};const m=["alert","alertdialog","button","checkbox","dialog","link","option","status"];var p;!function(e){let t=class extends n.LitElement{constructor(){super(...arguments),this.attendees=[{title:"Attendee",src:null,alt:"Attendee"}],this.closeAriaLabel="close",this.onKeyDown=null,this.onSnooze=null,this.message="",this.snoozeAriaLabel="snooze",this.role="button",this.show=!1,this.src="",this.status="",this.userStyles="",this.title="",this._onSnooze=e=>{this.dispatchEvent(new CustomEvent("snooze",{composed:!0,detail:{srcEvent:e}}))},this._onClose=e=>{this.dispatchEvent(new CustomEvent("close",{composed:!0,detail:{srcEvent:e}}))},this.handleSnooze=e=>{this.onSnooze?this.onSnooze(e):this._onSnooze(e),e.stopPropagation()},this.handleClose=e=>{this._onClose(e),e.stopPropagation()},this.handleKeyDown=e=>{if(e.code===i.Uz.Escape&&this.handleClose(e),e.code===i.Uz.Enter||e.code===i.Uz.Space){switch(e.target.attributes.getNamedItem("aria-label").value){case"close":this.handleClose(e);break;case"snooze":this.handleSnooze(e)}e.preventDefault()}this.onKeyDown&&this.onKeyDown(e)}}getStyles(){return n.html`
|
|
2
2
|
<style>
|
|
3
3
|
::slotted(img) {
|
|
4
4
|
display: inline-block;
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
</slot>
|
|
53
53
|
</div>
|
|
54
54
|
`:n.nothing}
|
|
55
|
-
`}};c([(0,l.property)({type:Array})],t.prototype,"attendees",void 0),c([(0,l.property)({type:String})],t.prototype,"closeAriaLabel",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"onKeyDown",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"onSnooze",void 0),c([(0,l.property)({type:String})],t.prototype,"message",void 0),c([(0,l.property)({type:String})],t.prototype,"snoozeAriaLabel",void 0),c([(0,l.property)({type:String})],t.prototype,"role",void 0),c([(0,l.property)({type:Boolean})],t.prototype,"show",void 0),c([(0,l.property)({type:String})],t.prototype,"src",void 0),c([(0,l.property)({type:String})],t.prototype,"status",void 0),c([(0,l.property)({type:String})],t.prototype,"userStyles",void 0),c([(0,l.property)({type:String})],t.prototype,"title",void 0),t=c([(0,r.w)("md-meeting-alert")],t),e.ELEMENT=t}(p||(p={}))},70429
|
|
55
|
+
`}};c([(0,l.property)({type:Array})],t.prototype,"attendees",void 0),c([(0,l.property)({type:String})],t.prototype,"closeAriaLabel",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"onKeyDown",void 0),c([(0,l.property)({attribute:!1})],t.prototype,"onSnooze",void 0),c([(0,l.property)({type:String})],t.prototype,"message",void 0),c([(0,l.property)({type:String})],t.prototype,"snoozeAriaLabel",void 0),c([(0,l.property)({type:String})],t.prototype,"role",void 0),c([(0,l.property)({type:Boolean})],t.prototype,"show",void 0),c([(0,l.property)({type:String})],t.prototype,"src",void 0),c([(0,l.property)({type:String})],t.prototype,"status",void 0),c([(0,l.property)({type:String})],t.prototype,"userStyles",void 0),c([(0,l.property)({type:String})],t.prototype,"title",void 0),t=c([(0,r.w)("md-meeting-alert")],t),e.ELEMENT=t}(p||(p={}))},70429:e=>{e.exports=t},85125:e=>{e.exports=o},85314:e=>{e.exports=l},87161:t=>{t.exports=e},89756:e=>{e.exports=a}},m={};function p(e){var t=m[e];if(void 0!==t)return t.exports;var o=m[e]={exports:{}};return c[e](o,o.exports,p),o.exports}p.m=c,d=[],p.O=(e,t,o,i)=>{if(!t){var r=1/0;for(a=0;a<d.length;a++){for(var[t,o,i]=d[a],s=!0,n=0;n<t.length;n++)(!1&i||r>=i)&&Object.keys(p.O).every((e=>p.O[e](t[n])))?t.splice(n--,1):(s=!1,i<r&&(r=i));if(s){d.splice(a--,1);var l=o();void 0!==l&&(e=l)}}return e}i=i||0;for(var a=d.length;a>0&&d[a-1][2]>i;a--)d[a]=d[a-1];d[a]=[t,o,i]},p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var o in t)p.o(t,o)&&!p.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4908:0};p.O.j=t=>0===e[t];var t=(t,o)=>{var i,r,[s,n,l]=o,a=0;if(s.some((t=>0!==e[t]))){for(i in n)p.o(n,i)&&(p.m[i]=n[i]);if(l)var d=l(p)}for(t&&t(o);a<s.length;a++)r=s[a],p.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return p.O(d)},o=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var u=p.O(void 0,[8983,1890,4313,510,5087,6283,2176,6798,6865,1200,2576,7292,6188,15,8923,7119,1465,8028,8576],(()=>p(61997)));return p.O(u)})()));
|
|
@@ -1,7 +1,7 @@
|
|
|
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"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,(e,t,i,s)=>(()=>{"use strict";var n,r={20291
|
|
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"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,((e,t,i,s)=>(()=>{"use strict";var n,r={20291:e=>{e.exports=s},70429:e=>{e.exports=t},84032:(e,t,i)=>{i.r(t),i.d(t,{MORE_MENU_ITEM_COPY_ID_PREFIX:()=>p,Menu:()=>v});var s=i(90195),n=i(31890),r=i(84624),o=i(68387),d=i(59164),l=i(4313),c=i(87161),a=i(70429),h=i(85125),m=i(48171),u=i(81626),f=function(e,t,i,s){var n,r=arguments.length,o=r<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 d=e.length-1;d>=0;d--)(n=e[d])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const p="more-menu-item-";var v;!function(e){let t=class extends((0,o.T)((0,r.I)(c.LitElement))){constructor(){super(...arguments),this.justified=!1,this.direction="horizontal",this.items=[],this.itemsHash={},this.itemsIdxHash={}}getNormalizedItemId(e){return e.replace(p,"")}static get styles(){return[l.A,u.A]}get slotItem(){return this.menuSlotElement}linkMenuItems(){return e=this,t=void 0,s=function*(){const{items:e}=this;e.forEach(((e,t)=>{const i=(0,d.O)("menu");e.setAttribute("id",i),e.setAttribute("aria-controls",i),e.selected=this.selected===t})),this.itemsHash=this.items.reduce(((e,t)=>(e[t.id]=t,e)),{}),this.itemsIdxHash=this.items.reduce(((e,t,i)=>(e[t.id]=i,e)),{})},new((i=void 0)||(i=Promise))((function(n,r){function o(e){try{l(s.next(e))}catch(e){r(e)}}function d(e){try{l(s.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,d)}l((s=s.apply(e,t||[])).next())}));var e,t,i,s}setupMenuItems(){if(this.menuSlotElement){const e=this.menuSlotElement.assignedElements({flatten:!0});this.getChildrenFromTree({children:e},this.items)}}getChildrenFromTree(e,t){e.children.forEach((e=>{e instanceof m.MenuItem.ELEMENT&&t.push(e),this.getChildrenFromTree({children:Array.from(e.children)},t)}))}updateSelectedItem(e){const t=this.slotted.findIndex((e=>e.hasAttribute("selected")));t!==e&&(this.items&&[t,e].forEach((e=>{const t=this.items[e];null==t||t.toggleAttribute("selected")})),this.dispatchEvent(new CustomEvent("selected-menu-item",{detail:{value:e},composed:!0,bubbles:!0})),this.changeSelectedItemIdx(e))}changeSelectedItemIdx(e){this.selected=e}handleItemClick(e){const{id:t}=e.detail,i=this.itemsHash[this.getNormalizedItemId(t)];if(i&&!i.disabled){const e=this.itemsIdxHash[i.id];-1!==e&&this.updateSelectedItem(e)}}handleItemKeydown(e){const{key:t,id:i}=e.detail;switch(t){case s.Uz.End:this.changeSelectedItemIdx(this.items.length-1);break;case s.Uz.Home:this.changeSelectedItemIdx(0);break;case s.Uz.ArrowLeft:case s.Uz.ArrowUp:0===this.selected?this.changeSelectedItemIdx(this.items.length-1):this.changeSelectedItemIdx(this.selected-1);break;case s.Uz.ArrowRight:case s.Uz.ArrowDown:this.selected===this.items.length-1?this.changeSelectedItemIdx(0):this.changeSelectedItemIdx(this.selected+1);break;case s.Uz.Enter:case s.Uz.Space:const e=this.slotted.findIndex((e=>e.id===i&&!e.disabled));-1!==e&&this.updateSelectedItem(e)}}connectedCallback(){super.connectedCallback(),this.addEventListener("menu-item-click",this.handleItemClick),this.addEventListener("menu-item-keydown",this.handleItemKeydown)}disconnectedCallback(){super.connectedCallback(),this.removeEventListener("menu-item-click",this.handleItemClick),this.removeEventListener("menu-item-keydown",this.handleItemKeydown)}onSlotChange(){this.setupMenuItems(),this.linkMenuItems()}get menuClassMap(){return{[`md-menu--${this.direction}`]:this.direction,justified:this.justified}}render(){return c.html`
|
|
2
2
|
<nav class="md-menu ${(0,h.classMap)(this.menuClassMap)}">
|
|
3
3
|
<ul class="md-menu-list">
|
|
4
4
|
<slot @slotchange=${this.onSlotChange}></slot>
|
|
5
5
|
</ul>
|
|
6
6
|
</nav>
|
|
7
|
-
`}};f([(0,a.property)({type:Boolean})],t.prototype,"justified",void 0),f([(0,a.property)({type:String})],t.prototype,"direction",void 0),f([(0,a.query)("slot")],t.prototype,"menuSlotElement",void 0),f([(0,a.query)("md-menu-overlay")],t.prototype,"menuSubElement",void 0),t=f([(0,n.w)("md-menu")],t),e.ELEMENT=t}(v||(v={}))},85125
|
|
7
|
+
`}};f([(0,a.property)({type:Boolean})],t.prototype,"justified",void 0),f([(0,a.property)({type:String})],t.prototype,"direction",void 0),f([(0,a.query)("slot")],t.prototype,"menuSlotElement",void 0),f([(0,a.query)("md-menu-overlay")],t.prototype,"menuSubElement",void 0),t=f([(0,n.w)("md-menu")],t),e.ELEMENT=t}(v||(v={}))},85125:e=>{e.exports=i},87161:t=>{t.exports=e}},o={};function d(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,d),i.exports}d.m=r,n=[],d.O=(e,t,i,s)=>{if(!t){var r=1/0;for(a=0;a<n.length;a++){for(var[t,i,s]=n[a],o=!0,l=0;l<t.length;l++)(!1&s||r>=s)&&Object.keys(d.O).every((e=>d.O[e](t[l])))?t.splice(l--,1):(o=!1,s<r&&(r=s));if(o){n.splice(a--,1);var c=i();void 0!==c&&(e=c)}}return e}s=s||0;for(var a=n.length;a>0&&n[a-1][2]>s;a--)n[a]=n[a-1];n[a]=[t,i,s]},d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var i in t)d.o(t,i)&&!d.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={1037:0};d.O.j=t=>0===e[t];var t=(t,i)=>{var s,n,[r,o,l]=i,c=0;if(r.some((t=>0!==e[t]))){for(s in o)d.o(o,s)&&(d.m[s]=o[s]);if(l)var a=l(d)}for(t&&t(i);c<r.length;c++)n=r[c],d.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return d.O(a)},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))})();var l=d.O(void 0,[1890,4313,2576,1270,2243,9164,3625,1626,8171],(()=>d(84032)));return d.O(l)})()));
|
|
@@ -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/if-defined.js"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,(e,t,i,s)=>(()=>{"use strict";var r,d={20291
|
|
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"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"]);for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}}(self,((e,t,i,s)=>(()=>{"use strict";var r,d={20291:e=>{e.exports=s},48171:(e,t,i)=>{i.r(t),i.d(t,{MenuItem:()=>s});var s,r=i(31890),d=i(4313),l=i(87161),o=i(70429),n=i(85125),a=i(20291),p=i(81626),c=function(e,t,i,s){var r,d=arguments.length,l=d<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(l=(d<3?r(l):d>3?r(t,i,l):r(t,i))||l);return d>3&&l&&Object.defineProperty(t,i,l),l};!function(e){let t=class extends l.LitElement{constructor(){super(...arguments),this.href="",this.label="",this.tabIndex=-1,this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",`${e}`),this.tabIndex=e?-1:0,this.requestUpdate("disabled",t)}get selected(){return this._selected}set selected(e){const t=this._selected;this._selected=e,e&&this.notifySelectedItem(),this.setAttribute("aria-selected",`${e}`),this.requestUpdate("selected",t)}static get styles(){return[d.A,p.A]}setupEvents(){this.addEventListener("mousedown",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}firstUpdated(e){super.firstUpdated(e),this.label&&this.setAttribute("aria-label",this.label),this.setupEvents()}update(e){super.update(e),e.has("disabled")&&(this.selected=!1,this.setAttribute("aria-disabled",`${this.disabled}`))}handleClick(e){e.preventDefault(),this.dispatchEvent(new CustomEvent("menu-item-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleKeyDown(e){this.dispatchEvent(new CustomEvent("menu-item-keydown",{detail:{id:this.id,key:e.code,srcEvent:e},bubbles:!0,composed:!0}))}notifySelectedItem(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}get menuItemClassMap(){return{"md-menu-item--selected":this.selected,disabled:this.disabled}}render(){return l.html`
|
|
2
2
|
<li
|
|
3
3
|
role="menuitem"
|
|
4
4
|
part="menu-item"
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
<slot></slot>
|
|
14
14
|
</a>
|
|
15
15
|
</li>
|
|
16
|
-
`}};c([(0,o.property)({type:String})],t.prototype,"href",void 0),c([(0,o.property)({type:String})],t.prototype,"label",void 0),c([(0,o.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),c([(0,o.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),c([(0,o.property)({type:Boolean,reflect:!0})],t.prototype,"selected",null),t=c([(0,r.w)("md-menu-item")],t),e.ELEMENT=t}(s||(s={}))},70429
|
|
16
|
+
`}};c([(0,o.property)({type:String})],t.prototype,"href",void 0),c([(0,o.property)({type:String})],t.prototype,"label",void 0),c([(0,o.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),c([(0,o.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),c([(0,o.property)({type:Boolean,reflect:!0})],t.prototype,"selected",null),t=c([(0,r.w)("md-menu-item")],t),e.ELEMENT=t}(s||(s={}))},70429:e=>{e.exports=t},85125:e=>{e.exports=i},87161:t=>{t.exports=e}},l={};function o(e){var t=l[e];if(void 0!==t)return t.exports;var i=l[e]={exports:{}};return d[e](i,i.exports,o),i.exports}o.m=d,r=[],o.O=(e,t,i,s)=>{if(!t){var d=1/0;for(p=0;p<r.length;p++){for(var[t,i,s]=r[p],l=!0,n=0;n<t.length;n++)(!1&s||d>=s)&&Object.keys(o.O).every((e=>o.O[e](t[n])))?t.splice(n--,1):(l=!1,s<d&&(d=s));if(l){r.splice(p--,1);var a=i();void 0!==a&&(e=a)}}return e}s=s||0;for(var p=r.length;p>0&&r[p-1][2]>s;p--)r[p]=r[p-1];r[p]=[t,i,s]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={4825:0,8171:0};o.O.j=t=>0===e[t];var t=(t,i)=>{var s,r,[d,l,n]=i,a=0;if(d.some((t=>0!==e[t]))){for(s in l)o.o(l,s)&&(o.m[s]=l[s]);if(n)var p=n(o)}for(t&&t(i);a<d.length;a++)r=d[a],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(p)},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))})();var n=o.O(void 0,[1890,4313,1626],(()=>o(48171)));return o.O(n)})()));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit/directives/if-defined.js"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","lit/directives/if-defined.js"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit/directives/if-defined.js")):t(e.lit,e["lit/decorators.js"],e["@popperjs/core/lib/modifiers/arrow"],e["@popperjs/core/lib/modifiers/flip"],e["@popperjs/core/lib/modifiers/offset"],e["@popperjs/core/lib/modifiers/preventOverflow"],e["@popperjs/core/lib/popper-lite"],e["lit/directives/if-defined.js"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,(e,t,i,r,o,s,n,a)=>(()=>{"use strict";var l,p={4863
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit/directives/if-defined.js"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","lit/directives/if-defined.js"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit/directives/if-defined.js")):t(e.lit,e["lit/decorators.js"],e["@popperjs/core/lib/modifiers/arrow"],e["@popperjs/core/lib/modifiers/flip"],e["@popperjs/core/lib/modifiers/offset"],e["@popperjs/core/lib/modifiers/preventOverflow"],e["@popperjs/core/lib/popper-lite"],e["lit/directives/if-defined.js"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,((e,t,i,r,o,s,n,a)=>(()=>{"use strict";var l,p={4863:e=>{e.exports=n},11323:(e,t,i)=>{i.r(t),i.d(t,{MenuOverlay:()=>j,OverlaySizes:()=>r,menuOverlayPlacement:()=>T,menuOverlayRole:()=>C,menuOverlaySize:()=>L});var r,o=i(35211),s=i(90195),n=i(31890),a=i(28373),l=i(66677),p=i(22962),d=i.n(p),h=i(84157),v=i.n(h),u=i(68250),c=i.n(u),g=i(69371),m=i.n(g),y=i(4863),f=i(87161),E=i(70429),O=i(20291),b=i(47819),w=function(e,t,i,r){var o,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(t,i,n):o(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n},x=function(e,t,i,r){return new(i||(i=Promise))((function(o,s){function n(e){try{l(r.next(e))}catch(e){s(e)}}function a(e){try{l(r.throw(e))}catch(e){s(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(n,a)}l((r=r.apply(e,t||[])).next())}))};!function(e){e.small="260px",e.large="370px"}(r||(r={}));const L=["small","large"],T=o.W,C=["menu","dialog"];var j;!function(e){let t=class extends((0,a.d)(f.LitElement)){constructor(){super(...arguments),this._isOpen=!1,this.size="large",this.maxHeight="",this.customWidth="",this.showArrow=!1,this.disabled=!1,this.placement="bottom",this.allowHoverToggle=!1,this.ariaRole="menu",this.ariaLabel="",this.isDatePicker=!1,this.overlayOffset=15,this.keepOpenOnWindowBlur=!1,this.positioningStrategy=void 0,this.popperInstance=null,this.triggerElement=null,this._componentAddedAriaExpanded=!1,this.updateActiveMenuOverlayOpened=t=>{var i;this===t.target&&(null===(i=e.ELEMENT.activeOverlay)||void 0===i||i.push(t.target))},this.updateActiveMenuOverlayClosed=t=>{var i,r;const o=e.ELEMENT.activeOverlay.indexOf(t.target);this===t.target&&-1!==o&&(e.ELEMENT.activeOverlay.splice(o,1),e.ELEMENT.activeOverlay.length>0?(null===(i=e.ELEMENT.activeOverlay[e.ELEMENT.activeOverlay.length-1])||void 0===i||i.setFocusableElements(),null===(r=e.ELEMENT.activeOverlay[e.ELEMENT.activeOverlay.length-1])||void 0===r||r.focusOnNestedTrigger(this.triggerElement)):this.setFocusableElements())},this.handleTriggerClick=()=>{this.toggleOverlay()},this.setOverlay=(0,l.sg)((e=>{this.disabled||(this.isOpen=e)}),100),this.expandPopup=()=>{this.setOverlay(!0)},this.collapsePopup=()=>{this.setOverlay(!1)},this.handleOutsideOverlayKeydown=t=>x(this,void 0,void 0,(function*(){let i=!1;const r=t.composedPath();r.length&&(i=!!r.find((e=>e===this)),!i)||!this.overlayContainer||t.code!==s.Uz.Escape||(t.preventDefault(),(e.ELEMENT.activeOverlay.length>0?e.ELEMENT.activeOverlay[e.ELEMENT.activeOverlay.length-1]:void 0)===this&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger()))})),this.handleTriggerKeyDown=e=>x(this,void 0,void 0,(function*(){switch(e.code){case s.Uz.Space:case s.Uz.Enter:e.preventDefault(),this.toggleOverlay(),this.isOpen||(yield this.updateComplete,this.focusOnTrigger())}})),this.handleOutsideOverlayClick=e=>{let t=!1;const i=e.composedPath();i.length&&(t=!!i.find((e=>e===this)),t||this.preventClickOutside||(this.isOpen=!1))}}get isOpen(){return this._isOpen}set isOpen(e){const t=this._isOpen;this._isOpen=e,this.handleInstance(e),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",e),this.requestUpdate("isOpen",t)}static get styles(){return[b.A,f.css`
|
|
2
2
|
.md-menu-overlay .overlay-content {
|
|
3
3
|
max-height: var(--md-menu-overlay-max-height, calc(100vh - 48px));
|
|
4
4
|
width: var(--md-menu-overlay-width, 370px);
|
|
5
5
|
overflow-y: var(--md-menu-overlay-overflow-y, auto);
|
|
6
6
|
}
|
|
7
|
-
`]}updateCSSProperties(){const e=this.maxHeight||"calc(100vh - 48px)",t=this.isDatePicker?"visible":"auto";let i;i=this.customWidth?this.customWidth:"small"===this.size?r.small:r.large,this.style.setProperty("--md-menu-overlay-max-height",e),this.style.setProperty("--md-menu-overlay-width",i),this.style.setProperty("--md-menu-overlay-overflow-y",t)}firstUpdated(e){super.firstUpdated(e),this.updateCSSProperties()}updated(e){if(super.updated(e),(e.has("maxHeight")||e.has("customWidth")||e.has("size")||e.has("isDatePicker"))&&this.updateCSSProperties(),e.has("isOpen")){const t=e.get("isOpen");this.isOpen?(this.activateFocusTrap(),this.dispatchMenuOpen(),document.addEventListener("menu-item-click",this.handleTriggerClick),requestAnimationFrame(()=>{document.addEventListener("click",this.handleOutsideOverlayClick)}),this.updateTriggerElementAriaExpanded()):!0===t&&(this.deactivateFocusTrap(),this.dispatchMenuClose(),document.removeEventListener("menu-item-click",this.handleTriggerClick),document.removeEventListener("click",this.handleOutsideOverlayClick),this.updateTriggerElementAriaExpanded())}e.has("showArrow")&&this.arrow&&this.arrow.toggleAttribute("data-show",this.showArrow)}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.updateComplete.then(()=>{this.handleTriggerSlotChange()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.removeTriggerEventListeners()}checkIsInputField(e){var t;return"md-input"===(null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.triggerElement.hasAttribute("aria-expanded")||this._componentAddedAriaExpanded?this._componentAddedAriaExpanded?this.isOpen?this.triggerElement.setAttribute("aria-expanded","true"):(this.triggerElement.removeAttribute("aria-expanded"),this._componentAddedAriaExpanded=!1):this.triggerElement.setAttribute("aria-expanded",this.isOpen?"true":"false"):(this.triggerElement.setAttribute("aria-expanded",this.isOpen?"true":"false"),this._componentAddedAriaExpanded=!0),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded",this.isOpen?"true":"false"))}handleTriggerSlotChange(){this.removeTriggerEventListeners(),this.setupTriggerEventListeners(),this.updateTriggerElementAriaExpanded(),this.popperInstance&&this.destroy(),this.isOpen&&(this.create(),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",this.isOpen))}removeTriggerEventListeners(){this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}setupTriggerEventListeners(){if(this.trigger){if(this.triggerElement=this.trigger[0],!this.triggerElement)return;this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")}}update(e){super.update(e)}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(e){e?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,y.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>x(this,void 0,void 0,function*(){var e;this.isOpen&&(null===(e=this.popperInstance)||void 0===e||e.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())}),placement:this.placement,strategy:this.positioningStrategy,modifiers:[...y.defaultModifiers,v(),c(),m(),d(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:e,reference:t})=>"left-end"===e||"right-end"===e?[t.height+t.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!0}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame(()=>{var e;(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.focusableElements[0].focus()})}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(e){var t;null===(t=this.setFocusOnTrigger)||void 0===t||t.call(this,e)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}render(){return f.html`
|
|
7
|
+
`]}updateCSSProperties(){const e=this.maxHeight||"calc(100vh - 48px)",t=this.isDatePicker?"visible":"auto";let i;i=this.customWidth?this.customWidth:"small"===this.size?r.small:r.large,this.style.setProperty("--md-menu-overlay-max-height",e),this.style.setProperty("--md-menu-overlay-width",i),this.style.setProperty("--md-menu-overlay-overflow-y",t)}firstUpdated(e){super.firstUpdated(e),this.updateCSSProperties()}updated(e){if(super.updated(e),(e.has("maxHeight")||e.has("customWidth")||e.has("size")||e.has("isDatePicker"))&&this.updateCSSProperties(),e.has("isOpen")){const t=e.get("isOpen");this.isOpen?(this.activateFocusTrap(),this.dispatchMenuOpen(),document.addEventListener("menu-item-click",this.handleTriggerClick),requestAnimationFrame((()=>{document.addEventListener("click",this.handleOutsideOverlayClick)})),this.updateTriggerElementAriaExpanded()):!0===t&&(this.deactivateFocusTrap(),this.dispatchMenuClose(),document.removeEventListener("menu-item-click",this.handleTriggerClick),document.removeEventListener("click",this.handleOutsideOverlayClick),this.updateTriggerElementAriaExpanded())}e.has("showArrow")&&this.arrow&&this.arrow.toggleAttribute("data-show",this.showArrow)}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.updateComplete.then((()=>{this.handleTriggerSlotChange()}))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.removeTriggerEventListeners()}checkIsInputField(e){var t;return"md-input"===(null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.triggerElement.hasAttribute("aria-expanded")||this._componentAddedAriaExpanded?this._componentAddedAriaExpanded?this.isOpen?this.triggerElement.setAttribute("aria-expanded","true"):(this.triggerElement.removeAttribute("aria-expanded"),this._componentAddedAriaExpanded=!1):this.triggerElement.setAttribute("aria-expanded",this.isOpen?"true":"false"):(this.triggerElement.setAttribute("aria-expanded",this.isOpen?"true":"false"),this._componentAddedAriaExpanded=!0),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded",this.isOpen?"true":"false"))}handleTriggerSlotChange(){this.removeTriggerEventListeners(),this.setupTriggerEventListeners(),this.updateTriggerElementAriaExpanded(),this.popperInstance&&this.destroy(),this.isOpen&&(this.create(),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",this.isOpen))}removeTriggerEventListeners(){this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}setupTriggerEventListeners(){if(this.trigger){if(this.triggerElement=this.trigger[0],!this.triggerElement)return;this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")}}update(e){super.update(e)}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(e){e?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,y.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>x(this,void 0,void 0,(function*(){var e;this.isOpen&&(null===(e=this.popperInstance)||void 0===e||e.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())})),placement:this.placement,strategy:this.positioningStrategy,modifiers:[...y.defaultModifiers,v(),c(),m(),d(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:e,reference:t})=>"left-end"===e||"right-end"===e?[t.height+t.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!0}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame((()=>{var e;(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.focusableElements[0].focus()}))}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(e){var t;null===(t=this.setFocusOnTrigger)||void 0===t||t.call(this,e)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}render(){return f.html`
|
|
8
8
|
<div class="md-menu-overlay">
|
|
9
9
|
<slot @slotchange=${this.handleTriggerSlotChange} name="menu-trigger"></slot>
|
|
10
10
|
<div
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
|
-
`}};t.activeOverlay=[],w([(0,E.property)({type:Boolean,attribute:"is-open",reflect:!0})],t.prototype,"isOpen",null),w([(0,E.property)({type:String})],t.prototype,"size",void 0),w([(0,E.property)({type:String,attribute:"max-height"})],t.prototype,"maxHeight",void 0),w([(0,E.property)({type:String,attribute:"custom-width"})],t.prototype,"customWidth",void 0),w([(0,E.property)({type:Boolean,attribute:"show-arrow"})],t.prototype,"showArrow",void 0),w([(0,E.property)({type:Boolean})],t.prototype,"disabled",void 0),w([(0,E.property)({type:String})],t.prototype,"placement",void 0),w([(0,E.property)({type:Boolean,attribute:"allow-hover-toggle"})],t.prototype,"allowHoverToggle",void 0),w([(0,E.property)({type:String})],t.prototype,"ariaRole",void 0),w([(0,E.property)({type:String})],t.prototype,"ariaLabel",void 0),w([(0,E.property)({type:Boolean,attribute:"is-date-picker"})],t.prototype,"isDatePicker",void 0),w([(0,E.property)({type:Number,attribute:"overlay-offset"})],t.prototype,"overlayOffset",void 0),w([(0,E.property)({type:Boolean,attribute:"keep-open-on-window-blur"})],t.prototype,"keepOpenOnWindowBlur",void 0),w([(0,E.query)(".overlay-container")],t.prototype,"overlayContainer",void 0),w([(0,E.query)(".overlay-arrow")],t.prototype,"arrow",void 0),w([(0,E.property)({type:String,attribute:"positioning-strategy"})],t.prototype,"positioningStrategy",void 0),w([(0,E.queryAssignedNodes)({slot:"menu-trigger",flatten:!0})],t.prototype,"trigger",void 0),t=w([(0,n.w)("md-menu-overlay")],t),e.ELEMENT=t}(j||(j={}))},20291
|
|
23
|
+
`}};t.activeOverlay=[],w([(0,E.property)({type:Boolean,attribute:"is-open",reflect:!0})],t.prototype,"isOpen",null),w([(0,E.property)({type:String})],t.prototype,"size",void 0),w([(0,E.property)({type:String,attribute:"max-height"})],t.prototype,"maxHeight",void 0),w([(0,E.property)({type:String,attribute:"custom-width"})],t.prototype,"customWidth",void 0),w([(0,E.property)({type:Boolean,attribute:"show-arrow"})],t.prototype,"showArrow",void 0),w([(0,E.property)({type:Boolean})],t.prototype,"disabled",void 0),w([(0,E.property)({type:String})],t.prototype,"placement",void 0),w([(0,E.property)({type:Boolean,attribute:"allow-hover-toggle"})],t.prototype,"allowHoverToggle",void 0),w([(0,E.property)({type:String})],t.prototype,"ariaRole",void 0),w([(0,E.property)({type:String})],t.prototype,"ariaLabel",void 0),w([(0,E.property)({type:Boolean,attribute:"is-date-picker"})],t.prototype,"isDatePicker",void 0),w([(0,E.property)({type:Number,attribute:"overlay-offset"})],t.prototype,"overlayOffset",void 0),w([(0,E.property)({type:Boolean,attribute:"keep-open-on-window-blur"})],t.prototype,"keepOpenOnWindowBlur",void 0),w([(0,E.query)(".overlay-container")],t.prototype,"overlayContainer",void 0),w([(0,E.query)(".overlay-arrow")],t.prototype,"arrow",void 0),w([(0,E.property)({type:String,attribute:"positioning-strategy"})],t.prototype,"positioningStrategy",void 0),w([(0,E.queryAssignedNodes)({slot:"menu-trigger",flatten:!0})],t.prototype,"trigger",void 0),t=w([(0,n.w)("md-menu-overlay")],t),e.ELEMENT=t}(j||(j={}))},20291:e=>{e.exports=a},22962:e=>{e.exports=i},68250:e=>{e.exports=o},69371:e=>{e.exports=s},70429:e=>{e.exports=t},84157:e=>{e.exports=r},87161:t=>{t.exports=e}},d={};function h(e){var t=d[e];if(void 0!==t)return t.exports;var i=d[e]={exports:{}};return p[e](i,i.exports,h),i.exports}h.m=p,l=[],h.O=(e,t,i,r)=>{if(!t){var o=1/0;for(p=0;p<l.length;p++){for(var[t,i,r]=l[p],s=!0,n=0;n<t.length;n++)(!1&r||o>=r)&&Object.keys(h.O).every((e=>h.O[e](t[n])))?t.splice(n--,1):(s=!1,r<o&&(o=r));if(s){l.splice(p--,1);var a=i();void 0!==a&&(e=a)}}return e}r=r||0;for(var p=l.length;p>0&&l[p-1][2]>r;p--)l[p]=l[p-1];l[p]=[t,i,r]},h.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{for(var i in t)h.o(t,i)&&!h.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={1323:0,1682:0};h.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[s,n,a]=i,l=0;if(s.some((t=>0!==e[t]))){for(r in n)h.o(n,r)&&(h.m[r]=n[r]);if(a)var p=a(h)}for(t&&t(i);l<s.length;l++)o=s[l],h.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return h.O(p)},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))})();var v=h.O(void 0,[1890,2576,6677,8210,1270,3135,7819,5211],(()=>h(11323)));return h.O(v)})()));
|
|
@@ -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 o="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 o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,(e,t,o,i,a,r,s,n)=>(()=>{"use strict";var l,d={10318
|
|
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 o="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 o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,((e,t,o,i,a,r,s,n)=>(()=>{"use strict";var l,d={10318:e=>{e.exports=i},20291:e=>{e.exports=a},32022:e=>{e.exports=r},32252:(e,t,o)=>{o.r(t),o.d(t,{Modal:()=>y,modalAlignment:()=>v,modalType:()=>u}),o(96798),o(61200);var i=o(90195),a=o(37719),r=o(3001),s=o(31890),n=o(4313),l=o(87161),d=o(70429),p=o(85125),m=o(20291),c=o(30414),h=function(e,t,o,i){var a,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,o,s):a(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};const u=["default","full","large","small","dialog"],v=["leading","center"];var y;!function(e){let t=class extends((0,r.dY)(l.LitElement)){constructor(){super(...arguments),this.show=!1,this.headerLabel="",this.headerMessage="",this.htmlId="",this.ariaLabel="modal",this.ariaLabelClose="Close Modal",this.ariaLabelCancel="Cancel Modal",this.ariaLabelSubmit="Submit Modal",this.ariaDescription="",this.showCloseButton=!1,this.backdropClickExit=!1,this.noExitOnEsc=!1,this.size="default",this.closeBtnName="",this.hideFooter=!1,this.hideHeader=!1,this.disableInitialFocus=!1,this.alignment=void 0,this.animating=!1,this.handleCloseOutside=e=>{e.code===i.Uz.Escape&&(e.preventDefault(),this.show&&!this.noExitOnEsc&&(this.show=!1))}}static get styles(){return[n.A,c.A]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleCloseOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleCloseOutside)}update(e){super.update(e),e.has("show")&&(this.show?this.modalFadeIn():!0===e.get("show")&&this.modalFadeOut())}get computedAlignment(){return void 0===this.alignment?a.themeManager.isMomentumV2Enabled?"leading":"center":this.alignment}notifyModalClose(){this.dispatchEvent(new CustomEvent("close-modal",{composed:!0,bubbles:!0}))}focusInsideModal(){var e;(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.setInitialFocus()}handleKeyDown(e){e.code!==i.Uz.Enter&&e.code!==i.Uz.Space||this.show&&(this.show=!0)}transitionPromise(e){return new Promise((t=>{const o=()=>{e.removeEventListener("transitionend",o),this.activateFocusTrap(),this.setFocusableElements(),requestAnimationFrame((()=>{t()}))},i=()=>{e.removeEventListener("transitioncancel",i),this.deactivateFocusTrap(),this.modalFadeOut(),t()};e.addEventListener("transitionend",o),e.addEventListener("transitioncancel",i),setTimeout((()=>{this.animating=!0}),13)}))}modalFadeIn(){return e=this,t=void 0,i=function*(){this.backDrop&&(yield this.transitionPromise(this.backDrop),this.disableInitialFocus||this.focusInsideModal())},new((o=void 0)||(o=Promise))((function(a,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function n(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(s,n)}l((i=i.apply(e,t||[])).next())}));var e,t,o,i}modalFadeOut(){this.animating=!1,this.deactivateFocusTrap(),this.notifyModalClose()}handleCloseBackdrop(){this.backdropClickExit&&(this.show=!1)}hideModal(){this.animating=!1,this.show=!1}topCloseBtnTemplate(){return l.html`
|
|
2
2
|
${this.showCloseButton?l.html`
|
|
3
3
|
<md-button
|
|
4
4
|
variant="ghost"
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
</div>
|
|
71
71
|
</div>
|
|
72
72
|
`:l.nothing}
|
|
73
|
-
`}};h([(0,d.property)({type:Boolean})],t.prototype,"show",void 0),h([(0,d.property)({type:String})],t.prototype,"headerLabel",void 0),h([(0,d.property)({type:String})],t.prototype,"headerMessage",void 0),h([(0,d.property)({type:String})],t.prototype,"htmlId",void 0),h([(0,d.property)({type:String,attribute:"aria-label"})],t.prototype,"ariaLabel",void 0),h([(0,d.property)({type:String})],t.prototype,"ariaLabelClose",void 0),h([(0,d.property)({type:String})],t.prototype,"ariaLabelCancel",void 0),h([(0,d.property)({type:String})],t.prototype,"ariaLabelSubmit",void 0),h([(0,d.property)({type:String})],t.prototype,"ariaDescription",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"showCloseButton",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"backdropClickExit",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"noExitOnEsc",void 0),h([(0,d.property)({type:String})],t.prototype,"size",void 0),h([(0,d.property)({type:String})],t.prototype,"closeBtnName",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"hideFooter",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"hideHeader",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"disableInitialFocus",void 0),h([(0,d.property)({type:String})],t.prototype,"alignment",void 0),h([(0,d.state)()],t.prototype,"animating",void 0),h([(0,d.query)(".md-modal__backdrop")],t.prototype,"backDrop",void 0),t=h([(0,s.w)("md-modal")],t),e.ELEMENT=t}(y||(y={}))},60554
|
|
73
|
+
`}};h([(0,d.property)({type:Boolean})],t.prototype,"show",void 0),h([(0,d.property)({type:String})],t.prototype,"headerLabel",void 0),h([(0,d.property)({type:String})],t.prototype,"headerMessage",void 0),h([(0,d.property)({type:String})],t.prototype,"htmlId",void 0),h([(0,d.property)({type:String,attribute:"aria-label"})],t.prototype,"ariaLabel",void 0),h([(0,d.property)({type:String})],t.prototype,"ariaLabelClose",void 0),h([(0,d.property)({type:String})],t.prototype,"ariaLabelCancel",void 0),h([(0,d.property)({type:String})],t.prototype,"ariaLabelSubmit",void 0),h([(0,d.property)({type:String})],t.prototype,"ariaDescription",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"showCloseButton",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"backdropClickExit",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"noExitOnEsc",void 0),h([(0,d.property)({type:String})],t.prototype,"size",void 0),h([(0,d.property)({type:String})],t.prototype,"closeBtnName",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"hideFooter",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"hideHeader",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"disableInitialFocus",void 0),h([(0,d.property)({type:String})],t.prototype,"alignment",void 0),h([(0,d.state)()],t.prototype,"animating",void 0),h([(0,d.query)(".md-modal__backdrop")],t.prototype,"backDrop",void 0),t=h([(0,s.w)("md-modal")],t),e.ELEMENT=t}(y||(y={}))},60554:e=>{e.exports=s},70429:e=>{e.exports=t},85125:e=>{e.exports=o},85314:e=>{e.exports=n},87161:t=>{t.exports=e}},p={};function m(e){var t=p[e];if(void 0!==t)return t.exports;var o=p[e]={exports:{}};return d[e](o,o.exports,m),o.exports}m.m=d,l=[],m.O=(e,t,o,i)=>{if(!t){var a=1/0;for(d=0;d<l.length;d++){for(var[t,o,i]=l[d],r=!0,s=0;s<t.length;s++)(!1&i||a>=i)&&Object.keys(m.O).every((e=>m.O[e](t[s])))?t.splice(s--,1):(r=!1,i<a&&(a=i));if(r){l.splice(d--,1);var n=o();void 0!==n&&(e=n)}}return e}i=i||0;for(var d=l.length;d>0&&l[d-1][2]>i;d--)l[d]=l[d-1];l[d]=[t,o,i]},m.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return m.d(t,{a:t}),t},m.d=(e,t)=>{for(var o in t)m.o(t,o)&&!m.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},m.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),m.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={6433:0};m.O.j=t=>0===e[t];var t=(t,o)=>{var i,a,[r,s,n]=o,l=0;if(r.some((t=>0!==e[t]))){for(i in s)m.o(s,i)&&(m.m[i]=s[i]);if(n)var d=n(m)}for(t&&t(o);l<r.length;l++)a=r[l],m.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return m.O(d)},o=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var c=m.O(void 0,[8983,1890,4313,510,5087,6283,2176,6798,6865,1200,8889,2576,4624,300,591,768,3135,7719,8033,144],(()=>m(32252)));return m.O(c)})()));
|
|
@@ -1,10 +1,10 @@
|
|
|
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 r in i)("object"==typeof exports?exports:t)[r]=i[r]}}(self,(t,e,i,r,a,o,s,n)=>(()=>{"use strict";var l,u={10318
|
|
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 r in i)("object"==typeof exports?exports:t)[r]=i[r]}}(self,((t,e,i,r,a,o,s,n)=>(()=>{"use strict";var l,u={10318:t=>{t.exports=r},20291:t=>{t.exports=a},23026:(t,e,i)=>{i.r(e),i.d(e,{Pagination:()=>r}),i(96798),i(61200);var r,a=i(31890),o=i(4313),s=i(87161),n=i(70429),l=i(45809),u=function(t,e,i,r){var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};!function(t){let e=class extends s.LitElement{constructor(){super(...arguments),this._currentPage=1,this.hasDots=!1,this.onlyDots=!1,this.noNavigation=!1,this.totalPage=0,this.visiblePage=3}get currentPage(){return this._currentPage}set currentPage(t){const e=this._currentPage;this._currentPage=t,this.notifyPageChange(e,t),this.requestUpdate("currentPage",e)}static get styles(){return[o.A,l.A]}computePrevious(t){1!==t&&t!==this.currentPage&&(this.currentPage-=1)}computeNext(t){t<=this.totalPage&&t!==this.currentPage&&(this.currentPage+=1)}computeFirst(){this.currentPage>=1&&(this.currentPage=1)}computeLast(){this.currentPage>=1&&(this.currentPage=this.totalPage)}computeCurrent(t){this.currentPage=t}notifyPageChange(t,e){this.dispatchEvent(new CustomEvent("page-change",{composed:!0,bubbles:!0,detail:{oldPage:t,newPage:e}}))}get hasPreviousPage(){return this.currentPage<=1}get hasNextPage(){return this.currentPage>=this.totalPage}computePageList(t){if(this.totalPage>this.visiblePage&&t){const[t,e,i]=[this.currentPage-1,this.currentPage,this.currentPage+1];let r=[];if(e<=this.visiblePage-1)return r=[...Array(this.visiblePage)].map(((t,e)=>1+e)),r.push("..."),r.push(this.totalPage),r;if(this.totalPage-e<=this.visiblePage-2){r=[],r.push(1),r.push("...");const t=[...Array(this.visiblePage)].map(((t,e)=>this.totalPage-this.visiblePage+1+e));return r.concat(t)}return[1,"...",t,e,i,"...",this.totalPage]}return[...Array(this.totalPage)].map(((t,e)=>1+e))}pagesTemplate(t){return this.computePageList(t).map((t=>"..."===t?s.html` <li class="page-ellipsis">${t}</li> `:s.html`
|
|
2
2
|
<li @click=${()=>this.computeCurrent(t)} aria-current=${t===this.currentPage}>
|
|
3
3
|
${t}
|
|
4
4
|
</li>
|
|
5
|
-
`)}dotsTemplate(t){return this.computePageList(t).map(t=>"..."===t?s.nothing:s.html`
|
|
5
|
+
`))}dotsTemplate(t){return this.computePageList(t).map((t=>"..."===t?s.nothing:s.html`
|
|
6
6
|
<li @click=${()=>this.computeCurrent(t)} aria-current=${t===this.currentPage}></li>
|
|
7
|
-
`)}render(){return s.html`
|
|
7
|
+
`))}render(){return s.html`
|
|
8
8
|
<nav class="md-pagination" role="navigation" part="pagination">
|
|
9
9
|
${this.noNavigation?s.nothing:s.html`
|
|
10
10
|
<md-button
|
|
@@ -75,4 +75,4 @@
|
|
|
75
75
|
</md-button>
|
|
76
76
|
`}
|
|
77
77
|
</nav>
|
|
78
|
-
`}};u([(0,n.property)({type:Boolean,attribute:"dots"})],e.prototype,"hasDots",void 0),u([(0,n.property)({type:Boolean,reflect:!0,attribute:"only-dots"})],e.prototype,"onlyDots",void 0),u([(0,n.property)({type:Boolean,reflect:!0,attribute:"no-navigation"})],e.prototype,"noNavigation",void 0),u([(0,n.property)({type:Number,reflect:!0,attribute:"total-page"})],e.prototype,"totalPage",void 0),u([(0,n.property)({type:Number,reflect:!0,attribute:"visible-page"})],e.prototype,"visiblePage",void 0),u([(0,n.property)({type:Number,reflect:!0,attribute:"current-page"})],e.prototype,"currentPage",null),e=u([(0,a.w)("md-pagination")],e),t.ELEMENT=e}(r||(r={}))},32022
|
|
78
|
+
`}};u([(0,n.property)({type:Boolean,attribute:"dots"})],e.prototype,"hasDots",void 0),u([(0,n.property)({type:Boolean,reflect:!0,attribute:"only-dots"})],e.prototype,"onlyDots",void 0),u([(0,n.property)({type:Boolean,reflect:!0,attribute:"no-navigation"})],e.prototype,"noNavigation",void 0),u([(0,n.property)({type:Number,reflect:!0,attribute:"total-page"})],e.prototype,"totalPage",void 0),u([(0,n.property)({type:Number,reflect:!0,attribute:"visible-page"})],e.prototype,"visiblePage",void 0),u([(0,n.property)({type:Number,reflect:!0,attribute:"current-page"})],e.prototype,"currentPage",null),e=u([(0,a.w)("md-pagination")],e),t.ELEMENT=e}(r||(r={}))},32022:t=>{t.exports=o},60554:t=>{t.exports=s},70429:t=>{t.exports=e},85125:t=>{t.exports=i},85314:t=>{t.exports=n},87161:e=>{e.exports=t}},c={};function m(t){var e=c[t];if(void 0!==e)return e.exports;var i=c[t]={exports:{}};return u[t](i,i.exports,m),i.exports}m.m=u,l=[],m.O=(t,e,i,r)=>{if(!e){var a=1/0;for(u=0;u<l.length;u++){for(var[e,i,r]=l[u],o=!0,s=0;s<e.length;s++)(!1&r||a>=r)&&Object.keys(m.O).every((t=>m.O[t](e[s])))?e.splice(s--,1):(o=!1,r<a&&(a=r));if(o){l.splice(u--,1);var n=i();void 0!==n&&(t=n)}}return t}r=r||0;for(var u=l.length;u>0&&l[u-1][2]>r;u--)l[u]=l[u-1];l[u]=[e,i,r]},m.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return m.d(e,{a:e}),e},m.d=(t,e)=>{for(var i in e)m.o(e,i)&&!m.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},m.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),m.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={1788:0};m.O.j=e=>0===t[e];var e=(e,i)=>{var r,a,[o,s,n]=i,l=0;if(o.some((e=>0!==t[e]))){for(r in s)m.o(s,r)&&(m.m[r]=s[r]);if(n)var u=n(m)}for(e&&e(i);l<o.length;l++)a=o[l],m.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return m.O(u)},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))})();var p=m.O(void 0,[8983,1890,4313,510,5087,6283,2176,6798,6865,1200,2576,5809],(()=>m(23026)));return m.O(p)})()));
|
|
@@ -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("country-codes-list"),require("country-flags-svg"),require("libphonenumber-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","country-codes-list","country-flags-svg","libphonenumber-js"],t);else{var o="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("country-codes-list"),require("country-flags-svg"),require("libphonenumber-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"],e["country-codes-list"],e["country-flags-svg"],e["libphonenumber-js"]);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,(e,t,o,i,r,s,a,l,n,d,p,u)=>(()=>{"use strict";var c,h={860
|
|
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("country-codes-list"),require("country-flags-svg"),require("libphonenumber-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","country-codes-list","country-flags-svg","libphonenumber-js"],t);else{var o="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("country-codes-list"),require("country-flags-svg"),require("libphonenumber-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"],e["country-codes-list"],e["country-flags-svg"],e["libphonenumber-js"]);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,((e,t,o,i,r,s,a,l,n,d,p,u)=>(()=>{"use strict";var c,h={860:e=>{e.exports=u},10318:e=>{e.exports=i},13060:e=>{e.exports=d},18224:(e,t,o)=>{o(4928);var i,r=o(31890),s=o(4313),a=o(13060),l=o(65875),n=o(87161),d=o(70429),p=o(85125),u=o(58175),c=o(75838),h=function(e,t,o,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(s<3?r(a):s>3?r(t,o,a):r(t,o))||a);return s>3&&a&&Object.defineProperty(t,o,a),a};!function(e){let t=class extends n.LitElement{constructor(){super(...arguments),this.codePlaceholder="+1",this.countryCallingCode="",this.showFlags=!1,this.pill=!1,this.disabled=!1,this.ariaLabel="",this.clearAriaLabel="Clear Country Code",this.id="",this.newMomentum=!1,this.isDropdownArrow=!0,this.countryCode="US",this.codeList=[]}connectedCallback(){super.connectedCallback(),this.codeList=(0,a.customArray)({name:"{countryNameEn}",value:"{countryCallingCode}",code:"{countryCode}"}),""===this.id&&(this.id=`md-country-code-picker-${Math.random().toString(36).substring(2,6)}`)}getCountryFlag(e){return n.html`
|
|
2
2
|
<span class="flag-svg-wrapper">
|
|
3
3
|
<img src="${(0,l.findFlagUrlByIso2Code)(e)}" />
|
|
4
4
|
</span>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<span>${e.name}</span>
|
|
15
15
|
<span>+${e.value}</span>
|
|
16
16
|
</div>
|
|
17
|
-
`}handleCountryChange(e){var t,o;e.detail.value&&(null===(t=e.detail.value)||void 0===t?void 0:t.id)?(this.countryCallingCode=e.detail.value.id,this.countryCode=null===(o=e.detail.value.id.split(",")[2])||void 0===o?void 0:o.trim()):(this.countryCode="US",this.countryCallingCode=""),this.dispatchEvent(new CustomEvent("country-code-changed",{bubbles:!0,composed:!0,detail:{srcEvent:e}}))}get flagClassMap(){return{"new-momentum":this.newMomentum}}get containerClassMap(){return{"md-country-code-picker__container":!0,"show-flags":this.showFlags}}getFormatedCountryCallingCode(){var e;return{id:this.countryCallingCode,value:null===(e=this.countryCallingCode.split(",")[0])||void 0===e?void 0:e.trim()}}static get styles(){return[s.A,c.A]}get sortedCodeList(){return[...this.codeList].sort((e,t)=>e.name.localeCompare(t.name))}render(){return n.html`
|
|
17
|
+
`}handleCountryChange(e){var t,o;e.detail.value&&(null===(t=e.detail.value)||void 0===t?void 0:t.id)?(this.countryCallingCode=e.detail.value.id,this.countryCode=null===(o=e.detail.value.id.split(",")[2])||void 0===o?void 0:o.trim()):(this.countryCode="US",this.countryCallingCode=""),this.dispatchEvent(new CustomEvent("country-code-changed",{bubbles:!0,composed:!0,detail:{srcEvent:e}}))}get flagClassMap(){return{"new-momentum":this.newMomentum}}get containerClassMap(){return{"md-country-code-picker__container":!0,"show-flags":this.showFlags}}getFormatedCountryCallingCode(){var e;return{id:this.countryCallingCode,value:null===(e=this.countryCallingCode.split(",")[0])||void 0===e?void 0:e.trim()}}static get styles(){return[s.A,c.A]}get sortedCodeList(){return[...this.codeList].sort(((e,t)=>e.name.localeCompare(t.name)))}render(){return n.html`
|
|
18
18
|
<div class="${(0,p.classMap)(this.containerClassMap)}">
|
|
19
19
|
${this.showFlags?n.html`
|
|
20
20
|
<span class="flag-box ${(0,p.classMap)(this.flagClassMap)}">${this.getCountryFlag(this.countryCode)}</span>
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
?is-dropdown-arrow=${this.isDropdownArrow}
|
|
34
34
|
.clearAriaLabel="${this.clearAriaLabel}"
|
|
35
35
|
>
|
|
36
|
-
${(0,u.repeat)(this.sortedCodeList,e=>e.name,(e,t)=>this.countryCodeOptionTemplate(e,t))}
|
|
36
|
+
${(0,u.repeat)(this.sortedCodeList,(e=>e.name),((e,t)=>this.countryCodeOptionTemplate(e,t)))}
|
|
37
37
|
</md-combobox>
|
|
38
38
|
</div>
|
|
39
|
-
`}};h([(0,d.property)({type:String,reflect:!0})],t.prototype,"codePlaceholder",void 0),h([(0,d.property)({type:String,attribute:"country-calling-code"})],t.prototype,"countryCallingCode",void 0),h([(0,d.property)({type:Boolean,attribute:"show-flags"})],t.prototype,"showFlags",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"pill",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"disabled",void 0),h([(0,d.property)({type:String})],t.prototype,"ariaLabel",void 0),h([(0,d.property)({type:String})],t.prototype,"clearAriaLabel",void 0),h([(0,d.property)({type:String})],t.prototype,"id",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"newMomentum",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"isDropdownArrow",void 0),h([(0,d.state)()],t.prototype,"countryCode",void 0),h([(0,d.state)()],t.prototype,"codeList",void 0),h([(0,d.query)("md-combobox")],t.prototype,"combobox",void 0),t=h([(0,r.w)("md-country-code-picker")],t),e.ELEMENT=t}(i||(i={}))},20291
|
|
39
|
+
`}};h([(0,d.property)({type:String,reflect:!0})],t.prototype,"codePlaceholder",void 0),h([(0,d.property)({type:String,attribute:"country-calling-code"})],t.prototype,"countryCallingCode",void 0),h([(0,d.property)({type:Boolean,attribute:"show-flags"})],t.prototype,"showFlags",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"pill",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"disabled",void 0),h([(0,d.property)({type:String})],t.prototype,"ariaLabel",void 0),h([(0,d.property)({type:String})],t.prototype,"clearAriaLabel",void 0),h([(0,d.property)({type:String})],t.prototype,"id",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"newMomentum",void 0),h([(0,d.property)({type:Boolean})],t.prototype,"isDropdownArrow",void 0),h([(0,d.state)()],t.prototype,"countryCode",void 0),h([(0,d.state)()],t.prototype,"codeList",void 0),h([(0,d.query)("md-combobox")],t.prototype,"combobox",void 0),t=h([(0,r.w)("md-country-code-picker")],t),e.ELEMENT=t}(i||(i={}))},20291:e=>{e.exports=r},32022:e=>{e.exports=s},58175:e=>{e.exports=n},60554:e=>{e.exports=a},65875:e=>{e.exports=p},70429:e=>{e.exports=t},84205:(e,t,o)=>{o.r(t),o.d(t,{PhoneInput:()=>i}),o(4928),o(18224),o(96408);var i,r=o(31890),s=o(860),a=o(87161),l=o(70429),n=o(85125),d=o(52714),p=function(e,t,o,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(s<3?r(a):s>3?r(t,o,a):r(t,o))||a);return s>3&&a&&Object.defineProperty(t,o,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.codePlaceholder="+1",this.numberPlaceholder="Enter Phone Number",this.countryCallingCode="",this.showFlags=!1,this.pill=!1,this.disabled=!1,this.value="",this.errorMessage="",this.showErrorMessage=!1,this.countryCodeAriaLabel="",this.dialNumberAriaLabel="",this.clearAriaLabel="Clear Input",this.clearCountryCodeAriaLabel="Clear Country Code",this.id="",this.newMomentum=!1,this.countryCode="US",this.formattedValue="",this.isValid=!0}get isRtl(){try{if(!this.isConnected)return!1;const e=getComputedStyle(this);return"rtl"===(null==e?void 0:e.direction)}catch(e){return!1}}connectedCallback(){super.connectedCallback(),""===this.id&&(this.id=`md-phone-input-${Math.random().toString(36).substring(2,6)}`),this.validateInput(this.value)}validateNumber(){this.isValid=!this.value||(0,s.isValidNumberForRegion)(this.value,this.countryCode)}handleCountryChange(e){var t,o;const i=e.detail.srcEvent;i.detail.value&&(null===(t=i.detail.value)||void 0===t?void 0:t.id)?(this.countryCallingCode=i.detail.value.id,this.countryCode=null===(o=i.detail.value.id.split(",")[2])||void 0===o?void 0:o.trim()):(this.countryCode="US",this.countryCallingCode=""),this.validateNumber(),this.dispatchEvent(new CustomEvent("countrycode-change",{bubbles:!0,composed:!0,detail:{srcEvent:i,isValid:this.isValid}}))}handlePhoneChange(e){this.value=e.detail.value,e.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-change",{bubbles:!0,composed:!0,detail:{srcEvent:e,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleKeydown(e){this.isValid=!0,e.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:e,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleBlur(e){this.validateInput(this.value),this.validateNumber(),e.stopPropagation(),this.removeCountryCode(),this.dispatchEvent(new CustomEvent("phoneinput-blur",{bubbles:!0,composed:!0,detail:{srcEvent:e,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}removeCountryCode(){var e;const t=null===(e=this.countryCallingCode.split(",")[0])||void 0===e?void 0:e.trim();if(this.value.startsWith(t)){const e=this.value.slice(t.length).replace(/^-/,"");this.value=e}}validateInput(e){this.formattedValue=new s.AsYouType(this.countryCode).input(e)}get flagClassMap(){return{"new-momentum":this.newMomentum}}get containerClassMap(){return{"md-phone-input__container":!0,rtl:this.isRtl}}static get styles(){return[d.A]}render(){return a.html`
|
|
40
40
|
<div class=${(0,n.classMap)(this.containerClassMap)}>
|
|
41
41
|
<md-country-code-picker
|
|
42
42
|
part="md-country-code-picker"
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
.messageArr="${!this.isValid||this.showErrorMessage?[{type:"error",id:this.id,ariaLive:"polite",message:this.errorMessage}]:[]}"
|
|
73
73
|
></md-input>
|
|
74
74
|
</div>
|
|
75
|
-
`}};p([(0,l.property)({type:String,reflect:!0})],t.prototype,"codePlaceholder",void 0),p([(0,l.property)({type:String})],t.prototype,"numberPlaceholder",void 0),p([(0,l.property)({type:String,attribute:"country-calling-code"})],t.prototype,"countryCallingCode",void 0),p([(0,l.property)({type:Boolean,attribute:"show-flags"})],t.prototype,"showFlags",void 0),p([(0,l.property)({type:Boolean})],t.prototype,"pill",void 0),p([(0,l.property)({type:Boolean})],t.prototype,"disabled",void 0),p([(0,l.property)({type:String})],t.prototype,"value",void 0),p([(0,l.property)({type:String})],t.prototype,"errorMessage",void 0),p([(0,l.property)({type:Boolean})],t.prototype,"showErrorMessage",void 0),p([(0,l.property)({type:String})],t.prototype,"countryCodeAriaLabel",void 0),p([(0,l.property)({type:String})],t.prototype,"dialNumberAriaLabel",void 0),p([(0,l.property)({type:String})],t.prototype,"clearAriaLabel",void 0),p([(0,l.property)({type:String})],t.prototype,"clearCountryCodeAriaLabel",void 0),p([(0,l.property)({type:String})],t.prototype,"id",void 0),p([(0,l.property)({type:Boolean})],t.prototype,"newMomentum",void 0),p([(0,l.state)()],t.prototype,"countryCode",void 0),p([(0,l.state)()],t.prototype,"formattedValue",void 0),p([(0,l.state)()],t.prototype,"isValid",void 0),t=p([(0,r.w)("md-phone-input")],t),e.ELEMENT=t}(i||(i={}))},85125
|
|
75
|
+
`}};p([(0,l.property)({type:String,reflect:!0})],t.prototype,"codePlaceholder",void 0),p([(0,l.property)({type:String})],t.prototype,"numberPlaceholder",void 0),p([(0,l.property)({type:String,attribute:"country-calling-code"})],t.prototype,"countryCallingCode",void 0),p([(0,l.property)({type:Boolean,attribute:"show-flags"})],t.prototype,"showFlags",void 0),p([(0,l.property)({type:Boolean})],t.prototype,"pill",void 0),p([(0,l.property)({type:Boolean})],t.prototype,"disabled",void 0),p([(0,l.property)({type:String})],t.prototype,"value",void 0),p([(0,l.property)({type:String})],t.prototype,"errorMessage",void 0),p([(0,l.property)({type:Boolean})],t.prototype,"showErrorMessage",void 0),p([(0,l.property)({type:String})],t.prototype,"countryCodeAriaLabel",void 0),p([(0,l.property)({type:String})],t.prototype,"dialNumberAriaLabel",void 0),p([(0,l.property)({type:String})],t.prototype,"clearAriaLabel",void 0),p([(0,l.property)({type:String})],t.prototype,"clearCountryCodeAriaLabel",void 0),p([(0,l.property)({type:String})],t.prototype,"id",void 0),p([(0,l.property)({type:Boolean})],t.prototype,"newMomentum",void 0),p([(0,l.state)()],t.prototype,"countryCode",void 0),p([(0,l.state)()],t.prototype,"formattedValue",void 0),p([(0,l.state)()],t.prototype,"isValid",void 0),t=p([(0,r.w)("md-phone-input")],t),e.ELEMENT=t}(i||(i={}))},85125:e=>{e.exports=o},85314:e=>{e.exports=l},87161:t=>{t.exports=e}},y={};function m(e){var t=y[e];if(void 0!==t)return t.exports;var o=y[e]={exports:{}};return h[e].call(o.exports,o,o.exports,m),o.exports}m.m=h,c=[],m.O=(e,t,o,i)=>{if(!t){var r=1/0;for(n=0;n<c.length;n++){for(var[t,o,i]=c[n],s=!0,a=0;a<t.length;a++)(!1&i||r>=i)&&Object.keys(m.O).every((e=>m.O[e](t[a])))?t.splice(a--,1):(s=!1,i<r&&(r=i));if(s){c.splice(n--,1);var l=o();void 0!==l&&(e=l)}}return e}i=i||0;for(var n=c.length;n>0&&c[n-1][2]>i;n--)c[n]=c[n-1];c[n]=[t,o,i]},m.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return m.d(t,{a:t}),t},m.d=(e,t)=>{for(var o in t)m.o(t,o)&&!m.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},m.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),m.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={445:0,6753:0};m.O.j=t=>0===e[t];var t=(t,o)=>{var i,r,[s,a,l]=o,n=0;if(s.some((t=>0!==e[t]))){for(i in a)m.o(a,i)&&(m.m[i]=a[i]);if(l)var d=l(m)}for(t&&t(o);n<s.length;n++)r=s[n],m.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return m.O(d)},o=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var v=m.O(void 0,[8983,7103,1890,4313,510,5087,6283,2176,6798,6865,1200,8889,8373,4624,300,591,768,3001,5630,1013,109,3739,6396,6408,9270,3820,5433,2547,5838,2714],(()=>m(84205)));return m.O(v)})()));
|
|
@@ -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("@floating-ui/dom"));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","@floating-ui/dom"],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("@floating-ui/dom")):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["@floating-ui/dom"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,(e,t,i,r,o,s,n,l,p)=>(()=>{"use strict";var a,h={5784(e){e.exports=p},10318(e){e.exports=r},20291(e){e.exports=o},32022(e){e.exports=s},60554(e){e.exports=n},70429(e){e.exports=t},71128(e,t,i){i.r(t),i.d(t,{Popover:()=>y,PopoverController:()=>m}),i(96798),i(61200);var r=i(31890),o=i(28373),s=i(66677),n=i(5784),l=i(87161),p=i(70429),a=i(68419),h=i(36365),d=i(3998),c=i(33759),u=i(86210),v=function(e,t,i,r){var o,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(s<3?o(n):s>3?o(t,i,n):o(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n},g=function(e,t,i,r){return new(i||(i=Promise))(function(o,s){function n(e){try{p(r.next(e))}catch(e){s(e)}}function l(e){try{p(r.throw(e))}catch(e){s(e)}}function p(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(n,l)}p((r=r.apply(e,t||[])).next())})};class m{show(e){}hide(){}toggle(){}isVisible(){return!1}}let y=class extends((0,o.d)(l.LitElement)){set controller(e){e?(e.show=(e=!1)=>this.showPopover(e),e.hide=()=>this.hidePopover(),e.toggle=()=>this.togglePopoverVisible(),e.isVisible=()=>this.visible,this._controller=e):this._controller=null}get controller(){return this._controller}constructor(){super(),this.id="",this.triggerID="",this.trigger=a.zY.TRIGGER,this.placement=a.zY.PLACEMENT,this.strategy=a.zY.STRATEGY,this.color=a.zY.COLOR,this.visible=a.zY.VISIBLE,this.offset=a.zY.OFFSET,this.focusTrap=a.zY.FOCUS_TRAP,this.preventScroll=a.zY.PREVENT_SCROLL,this.showArrow=a.zY.ARROW,this.closeButton=a.zY.CLOSE_BUTTON,this.interactive=a.zY.INTERACTIVE,this.delay=a.zY.DELAY,this.hideOnEscape=a.zY.HIDE_ON_ESCAPE,this.hideOnBlur=a.zY.HIDE_ON_BLUR,this.hideOnWindowBlur=a.zY.HIDE_ON_WINDOW_BLUR,this.hideOnOutsideClick=a.zY.HIDE_ON_CLICK_OUTSIDE,this.focusBackToTrigger=a.zY.FOCUS_BACK,this.backdrop=a.zY.BACKDROP,this.flip=a.zY.FLIP,this.size=a.zY.SIZE,this.zIndex=a.zY.Z_INDEX,this.appendTo="",this.closeButtonAriaLabel=null,this.role=a.zY.ROLE,this.ariaLabelledby=null,this.ariaDescribedby=null,this.disableAriaExpanded=a.zY.DISABLE_ARIA_EXPANDED,this.animationFrame=a.zY.ANIMATION_FRAME,this._controller=null,this.arrowElement=null,this.triggerElement=null,this.hoverTimer=null,this.isTriggerClicked=!1,this.openDelay=0,this.closeDelay=0,this.backdropElement=null,this.useLegacyFindFocusable=()=>!1,this.cleanupAutoUpdate=null,this.previousActiveElement=null,this.onOutsidePopoverClick=e=>{const t=e.composedPath();this.triggerElement&&t.includes(this.triggerElement)||t.includes(this)||d.S.shouldDeferToTopForOutsideClick(this)||this.hideThisPopover()},this.hideThisPopover=()=>{setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1,this.utils.handleAppendTo(!1)},this.closeDelay)},this.onEscapeKeydown=e=>{this.visible&&"Escape"===e.code&&(e.preventDefault(),this.hidePopover())},this.onPopoverFocusOut=e=>{const t=e.relatedTarget;!t||this.isElementInPopover(t)?t||setTimeout(()=>{const e=(0,s.dw)();this.isElementInPopover(e)||this.hidePopover()},0):this.hidePopover()},this.handleWindowBlurEvent=()=>{this.visible&&this.hidePopover()},this.startCloseDelay=()=>{if(this.interactive){if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}else this.hidePopover()},this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)},this.showPopover=(e=!1)=>{this.cancelCloseDelay(),e&&this.openDelay>0?setTimeout(()=>{this.utils.handleAppendTo(!0),this.visible=!0},this.openDelay):(this.utils.handleAppendTo(!0),this.visible=!0)},this.hidePopover=()=>{d.S.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1,this.utils.handleAppendTo(!1)},this.closeDelay)},this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)},this.onMouseEnterTrigger=()=>{this.trigger.includes("mouseenter")&&(this.visible||(this.previousActiveElement=(0,s.dw)()),this.showPopover(!0))},this.onFocusInTrigger=()=>{this.trigger.includes("focusin")&&this.showPopover(!1)},this.onTriggerClick=e=>{this.trigger.includes("mouseenter")&&this.isMouseOverTrigger(e)||this.togglePopoverVisible()},this.utils=new c.h(this),this.preventClickOutside=!0}firstUpdated(e){const t=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return g(this,void 0,void 0,function*(){t.firstUpdated.call(this,e),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,h.T.onCreatedPopover(this),this.visible&&(this.utils.handleAppendTo(!0),this.positionPopover(),yield this.handleCreatePopoverFirstUpdate())})}disconnectedCallback(){const e=Object.create(null,{disconnectedCallback:{get:()=>super.disconnectedCallback}});return g(this,void 0,void 0,function*(){e.disconnectedCallback.call(this),this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null),this._controller=null,this.previousActiveElement=null,this.removeEventListeners(),h.T.onDestroyedPopover(this),d.S.remove(this)})}setupTriggerListener(){if(!this.triggerID)return;const e=this.getRootNode();if(this.triggerElement=(0,s.qi)(`[id="${this.triggerID}"]`,e),!this.triggerElement){const t=null==e?void 0:e.host;if(t){const e=t.querySelector("[slot]");(null==e?void 0:e.id)===this.triggerID&&(this.triggerElement=e)}}if(this.triggerElement){if("mouseenter"===this.trigger&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.onTriggerClick),this.trigger.includes("mouseenter")){const e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.onMouseEnterTrigger),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),null==e||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.onFocusInTrigger),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;const e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.onTriggerClick),this.triggerElement.removeEventListener("mouseenter",this.onMouseEnterTrigger),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.onFocusInTrigger),this.triggerElement.removeEventListener("focusout",this.hidePopover),null==e||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}updated(e){const t=Object.create(null,{updated:{get:()=>super.updated}});return g(this,void 0,void 0,function*(){if(t.updated.call(this,e),e.has("visible")){const t=e.get("visible")||!1;yield this.isOpenUpdated(t,this.visible),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(a.ME).includes(this.placement)?this.placement:a.zY.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){const e=this.trigger.split(" ").filter(e=>Object.values(a.tr).includes(e));this.setAttribute("trigger",e.length>0?this.trigger:a.zY.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("triggerID")&&(this.removeEventListeners(),this.setupTriggerListener(),this.utils.setupAccessibility()),e.has("color")&&this.setAttribute("color",Object.values(a.o$).includes(this.color)?this.color:a.zY.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()})}isElementInPopover(e){return!!e&&(!!this.contains(e)||(0,s.QZ)("md-popover",e)===this)}isOpenUpdated(e,t){const i=Object.create(null,{preventScroll:{get:()=>super.preventScroll,set:e=>super.preventScroll=e}});return g(this,void 0,void 0,function*(){var r,o,s,n;if(e!==t&&this.triggerElement)if(t)d.S.peek()!==this&&d.S.push(this),i.preventScroll=this.preventScroll,this.focusTrap&&(null===(r=this.activateFocusTrap)||void 0===r||r.call(this)),this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.utils.handleAppendTo(!0),this.positionPopover(),yield this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),"click"===this.trigger&&(this.triggerElement.style.pointerEvents="none")),this.hideOnWindowBlur&&window.addEventListener("blur",this.handleWindowBlurEvent),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),h.T.onShowPopover(this);else{if(this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null),d.S.removeItem(this),this.utils.handleAppendTo(!1),this.backdropElement&&(null===(o=this.backdropElement)||void 0===o||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),"click"===this.trigger&&(this.triggerElement.style.pointerEvents="")),this.hideOnWindowBlur&&window.removeEventListener("blur",this.handleWindowBlurEvent),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),null===(s=this.deactivateFocusTrap)||void 0===s||s.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){const e=this.triggerElement.getAttribute("aria-haspopup");"dialog"!==e&&"alertdialog"!==e||this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&(this.previousActiveElement instanceof HTMLElement?this.previousActiveElement.focus():null===(n=this.setFocusOnDeepestNestedElement)||void 0===n||n.call(this,this.triggerElement)),this.previousActiveElement=null,h.T.onHidePopover(this)}})}isRectOverTrigger(e,t){if(this.triggerElement&&"undefined"!=typeof window&&"undefined"!=typeof document){const i=this.triggerElement.getBoundingClientRect();return e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom}return!1}isMouseOverTrigger(e){const{clientX:t,clientY:i}=e instanceof MouseEvent?e:{clientX:0,clientY:0};return this.isRectOverTrigger(t,i)}setFocusableElements(){var e;null===(e=super.setFocusableElements)||void 0===e||e.call(this);const t=this.triggerElement;this.appendTo&&this.activeFocusTrap&&t&&this.focusableElements&&(this.focusableElements.includes(t)||this.focusableElements.push(t))}handleCreatePopoverFirstUpdate(){return g(this,void 0,void 0,function*(){var e,t;this.visible&&this.interactive&&(null===(e=this.setFocusableElements)||void 0===e||e.call(this),yield this.updateComplete,null===(t=this.setInitialFocus)||void 0===t||t.call(this))})}positionPopover(){if(!this.triggerElement)return;this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null);const e=[(0,n.shift)()];let t=this.offset;if(this.flip&&e.push((0,n.flip)()),this.size){const t=this.renderRoot.querySelector('[part="popover-content"]');e.push((0,n.size)({apply({availableHeight:e}){t&&Object.assign(t.style,{maxHeight:`${e}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){const i=this.arrowElement.offsetHeight;t=Math.sqrt(2*i**2)/2+this.offset,e.push((0,n.arrow)({element:this.arrowElement,padding:12}))}e.push((0,n.offset)(t)),this.cleanupAutoUpdate=(0,n.autoUpdate)(this.triggerElement,this,()=>g(this,void 0,void 0,function*(){if(!this.triggerElement)return;const{x:t,y:i,middlewareData:r,placement:o}=yield(0,n.computePosition)(this.triggerElement,this,{placement:this.placement,middleware:e,strategy:this.strategy});this.utils.updatePopoverStyle(t,i),r.arrow&&this.arrowElement&&this.utils.updateArrowStyle(r.arrow,o),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(o)}),{animationFrame:this.animationFrame})}render(){return l.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/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("@floating-ui/dom"));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","@floating-ui/dom"],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("@floating-ui/dom")):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["@floating-ui/dom"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,((e,t,i,r,o,s,n,l,p)=>(()=>{"use strict";var a,h={5784:e=>{e.exports=p},10318:e=>{e.exports=r},20291:e=>{e.exports=o},32022:e=>{e.exports=s},60554:e=>{e.exports=n},70429:e=>{e.exports=t},71128:(e,t,i)=>{i.r(t),i.d(t,{Popover:()=>y,PopoverController:()=>m}),i(96798),i(61200);var r=i(31890),o=i(28373),s=i(66677),n=i(5784),l=i(87161),p=i(70429),a=i(68419),h=i(36365),d=i(3998),c=i(33759),u=i(86210),v=function(e,t,i,r){var o,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(s<3?o(n):s>3?o(t,i,n):o(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n},g=function(e,t,i,r){return new(i||(i=Promise))((function(o,s){function n(e){try{p(r.next(e))}catch(e){s(e)}}function l(e){try{p(r.throw(e))}catch(e){s(e)}}function p(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(n,l)}p((r=r.apply(e,t||[])).next())}))};class m{show(e){}hide(){}toggle(){}isVisible(){return!1}}let y=class extends((0,o.d)(l.LitElement)){set controller(e){e?(e.show=(e=!1)=>this.showPopover(e),e.hide=()=>this.hidePopover(),e.toggle=()=>this.togglePopoverVisible(),e.isVisible=()=>this.visible,this._controller=e):this._controller=null}get controller(){return this._controller}constructor(){super(),this.id="",this.triggerID="",this.trigger=a.zY.TRIGGER,this.placement=a.zY.PLACEMENT,this.strategy=a.zY.STRATEGY,this.color=a.zY.COLOR,this.visible=a.zY.VISIBLE,this.offset=a.zY.OFFSET,this.focusTrap=a.zY.FOCUS_TRAP,this.preventScroll=a.zY.PREVENT_SCROLL,this.showArrow=a.zY.ARROW,this.closeButton=a.zY.CLOSE_BUTTON,this.interactive=a.zY.INTERACTIVE,this.delay=a.zY.DELAY,this.hideOnEscape=a.zY.HIDE_ON_ESCAPE,this.hideOnBlur=a.zY.HIDE_ON_BLUR,this.hideOnWindowBlur=a.zY.HIDE_ON_WINDOW_BLUR,this.hideOnOutsideClick=a.zY.HIDE_ON_CLICK_OUTSIDE,this.focusBackToTrigger=a.zY.FOCUS_BACK,this.backdrop=a.zY.BACKDROP,this.flip=a.zY.FLIP,this.size=a.zY.SIZE,this.zIndex=a.zY.Z_INDEX,this.appendTo="",this.closeButtonAriaLabel=null,this.role=a.zY.ROLE,this.ariaLabelledby=null,this.ariaDescribedby=null,this.disableAriaExpanded=a.zY.DISABLE_ARIA_EXPANDED,this.animationFrame=a.zY.ANIMATION_FRAME,this._controller=null,this.arrowElement=null,this.triggerElement=null,this.hoverTimer=null,this.isTriggerClicked=!1,this.openDelay=0,this.closeDelay=0,this.backdropElement=null,this.useLegacyFindFocusable=()=>!1,this.cleanupAutoUpdate=null,this.previousActiveElement=null,this.onOutsidePopoverClick=e=>{const t=e.composedPath();this.triggerElement&&t.includes(this.triggerElement)||t.includes(this)||d.S.shouldDeferToTopForOutsideClick(this)||this.hideThisPopover()},this.hideThisPopover=()=>{setTimeout((()=>{this.visible=!1,this.isTriggerClicked=!1,this.utils.handleAppendTo(!1)}),this.closeDelay)},this.onEscapeKeydown=e=>{this.visible&&"Escape"===e.code&&(e.preventDefault(),this.hidePopover())},this.onPopoverFocusOut=e=>{const t=e.relatedTarget;!t||this.isElementInPopover(t)?t||setTimeout((()=>{const e=(0,s.dw)();this.isElementInPopover(e)||this.hidePopover()}),0):this.hidePopover()},this.handleWindowBlurEvent=()=>{this.visible&&this.hidePopover()},this.startCloseDelay=()=>{if(this.interactive){if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout((()=>{this.visible=!1}),this.closeDelay)}else this.hidePopover()},this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)},this.showPopover=(e=!1)=>{this.cancelCloseDelay(),e&&this.openDelay>0?setTimeout((()=>{this.utils.handleAppendTo(!0),this.visible=!0}),this.openDelay):(this.utils.handleAppendTo(!0),this.visible=!0)},this.hidePopover=()=>{d.S.peek()===this&&setTimeout((()=>{this.visible=!1,this.isTriggerClicked=!1,this.utils.handleAppendTo(!1)}),this.closeDelay)},this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)},this.onMouseEnterTrigger=()=>{this.trigger.includes("mouseenter")&&(this.visible||(this.previousActiveElement=(0,s.dw)()),this.showPopover(!0))},this.onFocusInTrigger=()=>{this.trigger.includes("focusin")&&this.showPopover(!1)},this.onTriggerClick=e=>{this.trigger.includes("mouseenter")&&this.isMouseOverTrigger(e)||this.togglePopoverVisible()},this.utils=new c.h(this),this.preventClickOutside=!0}firstUpdated(e){const t=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return g(this,void 0,void 0,(function*(){t.firstUpdated.call(this,e),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,h.T.onCreatedPopover(this),this.visible&&(this.utils.handleAppendTo(!0),this.positionPopover(),yield this.handleCreatePopoverFirstUpdate())}))}disconnectedCallback(){const e=Object.create(null,{disconnectedCallback:{get:()=>super.disconnectedCallback}});return g(this,void 0,void 0,(function*(){e.disconnectedCallback.call(this),this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null),this._controller=null,this.previousActiveElement=null,this.removeEventListeners(),h.T.onDestroyedPopover(this),d.S.remove(this)}))}setupTriggerListener(){if(!this.triggerID)return;const e=this.getRootNode();if(this.triggerElement=(0,s.qi)(`[id="${this.triggerID}"]`,e),!this.triggerElement){const t=null==e?void 0:e.host;if(t){const e=t.querySelector("[slot]");(null==e?void 0:e.id)===this.triggerID&&(this.triggerElement=e)}}if(this.triggerElement){if("mouseenter"===this.trigger&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.onTriggerClick),this.trigger.includes("mouseenter")){const e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.onMouseEnterTrigger),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),null==e||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.onFocusInTrigger),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;const e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.onTriggerClick),this.triggerElement.removeEventListener("mouseenter",this.onMouseEnterTrigger),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.onFocusInTrigger),this.triggerElement.removeEventListener("focusout",this.hidePopover),null==e||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}updated(e){const t=Object.create(null,{updated:{get:()=>super.updated}});return g(this,void 0,void 0,(function*(){if(t.updated.call(this,e),e.has("visible")){const t=e.get("visible")||!1;yield this.isOpenUpdated(t,this.visible),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(a.ME).includes(this.placement)?this.placement:a.zY.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){const e=this.trigger.split(" ").filter((e=>Object.values(a.tr).includes(e)));this.setAttribute("trigger",e.length>0?this.trigger:a.zY.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("triggerID")&&(this.removeEventListeners(),this.setupTriggerListener(),this.utils.setupAccessibility()),e.has("color")&&this.setAttribute("color",Object.values(a.o$).includes(this.color)?this.color:a.zY.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}))}isElementInPopover(e){return!!e&&(!!this.contains(e)||(0,s.QZ)("md-popover",e)===this)}isOpenUpdated(e,t){const i=Object.create(null,{preventScroll:{get:()=>super.preventScroll,set:e=>super.preventScroll=e}});return g(this,void 0,void 0,(function*(){var r,o,s,n;if(e!==t&&this.triggerElement)if(t)d.S.peek()!==this&&d.S.push(this),i.preventScroll=this.preventScroll,this.focusTrap&&(null===(r=this.activateFocusTrap)||void 0===r||r.call(this)),this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.utils.handleAppendTo(!0),this.positionPopover(),yield this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),"click"===this.trigger&&(this.triggerElement.style.pointerEvents="none")),this.hideOnWindowBlur&&window.addEventListener("blur",this.handleWindowBlurEvent),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),h.T.onShowPopover(this);else{if(this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null),d.S.removeItem(this),this.utils.handleAppendTo(!1),this.backdropElement&&(null===(o=this.backdropElement)||void 0===o||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),"click"===this.trigger&&(this.triggerElement.style.pointerEvents="")),this.hideOnWindowBlur&&window.removeEventListener("blur",this.handleWindowBlurEvent),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),null===(s=this.deactivateFocusTrap)||void 0===s||s.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){const e=this.triggerElement.getAttribute("aria-haspopup");"dialog"!==e&&"alertdialog"!==e||this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&(this.previousActiveElement instanceof HTMLElement?this.previousActiveElement.focus():null===(n=this.setFocusOnDeepestNestedElement)||void 0===n||n.call(this,this.triggerElement)),this.previousActiveElement=null,h.T.onHidePopover(this)}}))}isRectOverTrigger(e,t){if(this.triggerElement&&"undefined"!=typeof window&&"undefined"!=typeof document){const i=this.triggerElement.getBoundingClientRect();return e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom}return!1}isMouseOverTrigger(e){const{clientX:t,clientY:i}=e instanceof MouseEvent?e:{clientX:0,clientY:0};return this.isRectOverTrigger(t,i)}setFocusableElements(){var e;null===(e=super.setFocusableElements)||void 0===e||e.call(this);const t=this.triggerElement;this.appendTo&&this.activeFocusTrap&&t&&this.focusableElements&&(this.focusableElements.includes(t)||this.focusableElements.push(t))}handleCreatePopoverFirstUpdate(){return g(this,void 0,void 0,(function*(){var e,t;this.visible&&this.interactive&&(null===(e=this.setFocusableElements)||void 0===e||e.call(this),yield this.updateComplete,null===(t=this.setInitialFocus)||void 0===t||t.call(this))}))}positionPopover(){if(!this.triggerElement)return;this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=null);const e=[(0,n.shift)()];let t=this.offset;if(this.flip&&e.push((0,n.flip)()),this.size){const t=this.renderRoot.querySelector('[part="popover-content"]');e.push((0,n.size)({apply({availableHeight:e}){t&&Object.assign(t.style,{maxHeight:`${e}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){const i=this.arrowElement.offsetHeight;t=Math.sqrt(2*i**2)/2+this.offset,e.push((0,n.arrow)({element:this.arrowElement,padding:12}))}e.push((0,n.offset)(t)),this.cleanupAutoUpdate=(0,n.autoUpdate)(this.triggerElement,this,(()=>g(this,void 0,void 0,(function*(){if(!this.triggerElement)return;const{x:t,y:i,middlewareData:r,placement:o}=yield(0,n.computePosition)(this.triggerElement,this,{placement:this.placement,middleware:e,strategy:this.strategy});this.utils.updatePopoverStyle(t,i),r.arrow&&this.arrowElement&&this.utils.updateArrowStyle(r.arrow,o),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(o)}))),{animationFrame:this.animationFrame})}render(){return l.html`
|
|
2
2
|
<div class="popover-hover-bridge"></div>
|
|
3
3
|
${this.closeButton?l.html` <md-button
|
|
4
4
|
class="popover-close"
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
<div part="popover-content">
|
|
15
15
|
<slot></slot>
|
|
16
16
|
</div>
|
|
17
|
-
`}static get styles(){return[u.A]}};v([(0,p.property)({type:String,reflect:!0})],y.prototype,"id",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"triggerID",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"trigger",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"placement",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"strategy",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"color",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],y.prototype,"visible",void 0),v([(0,p.property)({type:Number,reflect:!0})],y.prototype,"offset",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"focus-trap"})],y.prototype,"focusTrap",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],y.prototype,"preventScroll",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"show-arrow"})],y.prototype,"showArrow",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"close-button"})],y.prototype,"closeButton",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],y.prototype,"interactive",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"delay",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],y.prototype,"hideOnEscape",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],y.prototype,"hideOnBlur",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"hide-on-window-blur"})],y.prototype,"hideOnWindowBlur",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],y.prototype,"hideOnOutsideClick",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],y.prototype,"focusBackToTrigger",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],y.prototype,"backdrop",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],y.prototype,"flip",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],y.prototype,"size",void 0),v([(0,p.property)({type:Number,reflect:!0,attribute:"z-index"})],y.prototype,"zIndex",void 0),v([(0,p.property)({type:String,reflect:!0,attribute:"append-to"})],y.prototype,"appendTo",void 0),v([(0,p.property)({type:String,attribute:"close-button-aria-label",reflect:!0})],y.prototype,"closeButtonAriaLabel",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"role",void 0),v([(0,p.property)({type:String,reflect:!0,attribute:"aria-labelledby"})],y.prototype,"ariaLabelledby",void 0),v([(0,p.property)({type:String,reflect:!0,attribute:"aria-describedby"})],y.prototype,"ariaDescribedby",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],y.prototype,"disableAriaExpanded",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"animation-frame"})],y.prototype,"animationFrame",void 0),v([(0,p.property)({type:Object,attribute:!1})],y.prototype,"controller",null),y=v([(0,r.w)("md-popover")],y)},85125
|
|
17
|
+
`}static get styles(){return[u.A]}};v([(0,p.property)({type:String,reflect:!0})],y.prototype,"id",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"triggerID",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"trigger",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"placement",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"strategy",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"color",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],y.prototype,"visible",void 0),v([(0,p.property)({type:Number,reflect:!0})],y.prototype,"offset",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"focus-trap"})],y.prototype,"focusTrap",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],y.prototype,"preventScroll",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"show-arrow"})],y.prototype,"showArrow",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"close-button"})],y.prototype,"closeButton",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],y.prototype,"interactive",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"delay",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],y.prototype,"hideOnEscape",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],y.prototype,"hideOnBlur",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"hide-on-window-blur"})],y.prototype,"hideOnWindowBlur",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],y.prototype,"hideOnOutsideClick",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],y.prototype,"focusBackToTrigger",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],y.prototype,"backdrop",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],y.prototype,"flip",void 0),v([(0,p.property)({type:Boolean,reflect:!0})],y.prototype,"size",void 0),v([(0,p.property)({type:Number,reflect:!0,attribute:"z-index"})],y.prototype,"zIndex",void 0),v([(0,p.property)({type:String,reflect:!0,attribute:"append-to"})],y.prototype,"appendTo",void 0),v([(0,p.property)({type:String,attribute:"close-button-aria-label",reflect:!0})],y.prototype,"closeButtonAriaLabel",void 0),v([(0,p.property)({type:String,reflect:!0})],y.prototype,"role",void 0),v([(0,p.property)({type:String,reflect:!0,attribute:"aria-labelledby"})],y.prototype,"ariaLabelledby",void 0),v([(0,p.property)({type:String,reflect:!0,attribute:"aria-describedby"})],y.prototype,"ariaDescribedby",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],y.prototype,"disableAriaExpanded",void 0),v([(0,p.property)({type:Boolean,reflect:!0,attribute:"animation-frame"})],y.prototype,"animationFrame",void 0),v([(0,p.property)({type:Object,attribute:!1})],y.prototype,"controller",null),y=v([(0,r.w)("md-popover")],y)},85125:e=>{e.exports=i},85314:e=>{e.exports=l},87161:t=>{t.exports=e}},d={};function c(e){var t=d[e];if(void 0!==t)return t.exports;var i=d[e]={exports:{}};return h[e](i,i.exports,c),i.exports}c.m=h,a=[],c.O=(e,t,i,r)=>{if(!t){var o=1/0;for(p=0;p<a.length;p++){for(var[t,i,r]=a[p],s=!0,n=0;n<t.length;n++)(!1&r||o>=r)&&Object.keys(c.O).every((e=>c.O[e](t[n])))?t.splice(n--,1):(s=!1,r<o&&(o=r));if(s){a.splice(p--,1);var l=i();void 0!==l&&(e=l)}}return e}r=r||0;for(var p=a.length;p>0&&a[p-1][2]>r;p--)a[p]=a[p-1];a[p]=[t,i,r]},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={3413:0};c.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[s,n,l]=i,p=0;if(s.some((t=>0!==e[t]))){for(r in n)c.o(n,r)&&(c.m[r]=n[r]);if(l)var a=l(c)}for(t&&t(i);p<s.length;p++)o=s[p],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return c.O(a)},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))})();var u=c.O(void 0,[8983,1890,4313,510,5087,6283,2176,6798,6865,1200,2576,8210,1270,3135,8345,1439],(()=>c(71128)));return c.O(u)})()));
|