@tylertech/forge 2.12.2 → 2.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/custom-elements.json +55 -1
  2. package/dist/esm/bottom-sheet/index.js +1 -1
  3. package/dist/esm/chunks/{chunk.BXUXNGBH.js → chunk.2IYJMMJE.js} +2 -2
  4. package/dist/esm/chunks/{chunk.BXUXNGBH.js.map → chunk.2IYJMMJE.js.map} +0 -0
  5. package/dist/esm/chunks/chunk.44RVGESY.js +7 -0
  6. package/dist/esm/chunks/chunk.44RVGESY.js.map +7 -0
  7. package/dist/esm/chunks/{chunk.Z5P6EA5L.js → chunk.6QMDYUVT.js} +2 -2
  8. package/dist/esm/chunks/{chunk.Z5P6EA5L.js.map → chunk.6QMDYUVT.js.map} +0 -0
  9. package/dist/esm/chunks/{chunk.TAX3RMGW.js → chunk.G7QMC34F.js} +2 -2
  10. package/dist/esm/chunks/{chunk.TAX3RMGW.js.map → chunk.G7QMC34F.js.map} +0 -0
  11. package/dist/esm/chunks/{chunk.DGOV5RDW.js → chunk.HUWXZ4ZN.js} +2 -2
  12. package/dist/esm/chunks/{chunk.DGOV5RDW.js.map → chunk.HUWXZ4ZN.js.map} +2 -2
  13. package/dist/esm/chunks/{chunk.3LZEQWAL.js → chunk.JAEVBPHT.js} +2 -2
  14. package/dist/esm/chunks/{chunk.3LZEQWAL.js.map → chunk.JAEVBPHT.js.map} +0 -0
  15. package/dist/esm/chunks/{chunk.YSE5EMB3.js → chunk.NNGE722W.js} +2 -2
  16. package/dist/esm/chunks/{chunk.YSE5EMB3.js.map → chunk.NNGE722W.js.map} +0 -0
  17. package/dist/esm/dialog/index.js +1 -1
  18. package/dist/esm/index.js +1 -1
  19. package/dist/esm/split-view/index.js +1 -1
  20. package/dist/esm/split-view/split-view/index.js +1 -1
  21. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  22. package/dist/esm/switch/index.js +1 -1
  23. package/dist/esm/time-picker/index.js +1 -1
  24. package/esm/split-view/split-view/split-view-constants.d.ts +0 -1
  25. package/esm/split-view/split-view-panel/split-view-panel-adapter.d.ts +4 -1
  26. package/esm/split-view/split-view-panel/split-view-panel-adapter.js +17 -6
  27. package/esm/split-view/split-view-panel/split-view-panel-constants.d.ts +1 -0
  28. package/esm/split-view/split-view-panel/split-view-panel-constants.js +2 -1
  29. package/esm/split-view/split-view-panel/split-view-panel-foundation.js +1 -4
  30. package/esm/split-view/split-view-panel/split-view-panel-utils.d.ts +6 -0
  31. package/esm/split-view/split-view-panel/split-view-panel-utils.js +17 -0
  32. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  33. package/esm/switch/switch.d.ts +1 -0
  34. package/esm/switch/switch.js +13 -9
  35. package/package.json +1 -1
  36. package/dist/esm/chunks/chunk.YE26Y4CT.js +0 -7
  37. package/dist/esm/chunks/chunk.YE26Y4CT.js.map +0 -7
@@ -3,5 +3,5 @@
3
3
  * Copyright 2022 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a as rt}from"./chunk.E37HEAJ5.js";import{d as at}from"./chunk.YSE5EMB3.js";import{a as f,b as nt}from"./chunk.IMK2LFWR.js";import{h as st}from"./chunk.KGW63HJX.js";import{c as et}from"./chunk.D3DLVPPE.js";import{e as tt}from"./chunk.7JTKKFL4.js";import{e as it}from"./chunk.3UMBCR4P.js";import{a as E,b as ot}from"./chunk.BOENNFXE.js";import{j as K}from"./chunk.LZMYHIO2.js";import{a as F}from"./chunk.D4SNVKDA.js";import{a as Q,d as Z,l as w}from"./chunk.YAJT3P6V.js";import{a as $}from"./chunk.24D46RLZ.js";import{g as J}from"./chunk.7ZS4N2FT.js";import{j as b,k as X,m as G,n as q,o as Y,p as j}from"./chunk.KYCC3C3M.js";import{a as z}from"./chunk.A23NSEWA.js";import{a as u}from"./chunk.B3IJU6XJ.js";import{a as R,b as B}from"./chunk.BSZ2LBJX.js";import{a as W}from"./chunk.3E5QKMHL.js";import{a as N,e as H,g as V,i as U}from"./chunk.HN4PXH3D.js";import{m as A,s as P,u as x}from"./chunk.R4NDFXVA.js";import{a as S,k as c,l as L,o as y}from"./chunk.G76HB2FK.js";import{a as k,f as p}from"./chunk.MCIQXNKY.js";var h=`${B}time-picker`,lt={TOGGLE:"forge-time-picker-toggle",VALUE:"value",OPEN:"open",ALLOW_SECONDS:"allow-seconds",MASKED:"masked",SHOW_MASK_FORMAT:"show-mask-format",USE_24_HOUR_TIME:"use-24-hour-time",ALLOW_INVALID_TIME:"allow-invalid-time",MIN:"min",MAX:"max",START_TIME:"start-time",STEP:"step",ALLOW_INPUT:"allow-input",SHOW_NOW:"show-now",SHOW_HOUR_OPTIONS:"show-hour-options",DISABLED:"disabled",POPUP_CLASSES:"popup-classes",ALLOW_DROPDOWN:"allow-dropdown"},ft={INPUT:"input, input[forge-time-picker-input]",TOGGLE:`[${lt.TOGGLE}]`},gt={OPEN:`${h}-open`,CLOSE:`${h}-close`,INPUT:`${h}-input`,CHANGE:`${h}-change`},vt={DEFAULT_MINUTE_STEP:60,MAX_DAY_MILLIS:864e5,MAX_DAY_MINUTES:1440},s={elementName:h,attributes:lt,selectors:ft,events:gt,numbers:vt};var g=class extends z{constructor(e){super(e)}initialize(){this._inputElement=this._component.querySelector(s.selectors.INPUT)}initializeMask(e){this._inputMask&&this._inputMask.destroy(),this._inputMask=new J(this._inputElement,e)}destroy(){this._targetElement=void 0,this._toggleElement=void 0,this._inputElement=void 0}destroyMask(){this._inputMask&&(this._inputMask.destroy(),this._inputMask=void 0)}initializeAccessibility(e){this._inputElement.setAttribute("autocomplete","off"),this._inputElement.setAttribute("autocorrect","off"),this._inputElement.setAttribute("autocapitalize","off"),this._inputElement.setAttribute("spellcheck","false"),this._inputElement.setAttribute("role","combobox"),this._inputElement.setAttribute("aria-live","assertive"),this._inputElement.setAttribute("aria-atomic","true"),this._inputElement.setAttribute("aria-haspopup","true"),this._inputElement.setAttribute("aria-expanded","false")}addInputListener(e,i,n){this._inputElement.addEventListener(e,i,{capture:n})}removeInputListener(e,i,n){this._inputElement&&this._inputElement.removeEventListener(e,i,{capture:n})}addToggleListener(e,i){this._toggleElement&&this._toggleElement.addEventListener(e,i)}removeToggleListener(e,i){this._toggleElement&&this._toggleElement.removeEventListener(e,i)}hasInputElement(){return!!this._inputElement}tryCreateToggle(){let e=this._component.querySelector(f.elementName),i=this._component.querySelector(s.selectors.TOGGLE);if(e){let n=e.querySelector(`${E.elementName}[slot=trailing]`);if(n||i){this._toggleElement=n||i;return}let l=document.createElement(E.elementName);l.slot="trailing",l.dense=!0,l.densityLevel=3,l.style.marginRight="4px";let o=document.createElement("button");o.type="button",o.tabIndex=-1,o.setAttribute("aria-label","Toggle time dropdown");let d=document.createElement(Q.elementName);d.name="clock_outline",o.appendChild(d),l.appendChild(o),e.appendChild(l),this._toggleElement=l}else i&&(this._toggleElement=i)}tryFocusInput(){this._inputElement.select()}tryBlurInput(){this._inputElement.blur()}selectInputText(){this._inputElement.select()}isInputDisabled(){return this._inputElement.disabled}isInputFocused(){return P()===this._inputElement}setInputValue(e,i){this._inputElement.value!==e&&(this._inputElement.value=e,this._inputMask&&this._inputMask.update(),i&&(this._emitInputEvent("change"),this._emitInputEvent("input")))}getInputValue(){return this._inputMask?this._inputMask.maskedValue:this._inputElement.value}setDisabled(e){this._inputElement.disabled=e,this._inputElement.setAttribute("aria-disabled",e.toString()),this.setToggleDisabled(e)}attachDropdown(e){this._listDropdown=new st(this._inputElement,e),this._listDropdown.open(),this._inputElement.setAttribute("aria-controls",`list-dropdown-popup-${e.id}`)}detachDropdown(){this._listDropdown&&(this._listDropdown.close(),this._listDropdown.destroy(),this._listDropdown=void 0),this._inputElement.removeAttribute("aria-controls")}propagateKey(e){var i;(i=this._listDropdown)==null||i.handleKey(e)}setActiveDescendant(e){x(this._inputElement,!!e,"aria-activedescendant",e)}getTargetElementWidth(e){return this._getTargetElement(e).getBoundingClientRect().width}_emitInputEvent(e){this._inputElement.dispatchEvent(new Event(e))}emitInputEvent(e,i){U(this._inputElement,e,i)}setInputReadonly(e){this._inputElement.readOnly=e}setToggleDisabled(e){if(this._toggleElement)if(this._toggleElement.setAttribute("aria-disabled",e.toString()),"disabled"in this._toggleElement)this._toggleElement.disabled=e;else{let i=this._toggleElement.querySelector("button");i&&(i.disabled=e)}}activateFirstOption(){var e;(e=this._listDropdown)==null||e.activateFirstOption()}getActiveOption(){var e;return(e=this._listDropdown)==null?void 0:e.getActiveOption()}_getTargetElement(e){return this._targetElement?this._targetElement:(this._targetElement=e?this._component.querySelector(e)||this._getDefaultTargetElement():this._getDefaultTargetElement(),this._targetElement)}_getDefaultTargetElement(){let e=this._component.querySelector(f.elementName);if(e&&e.shadowRoot){let i=V(e,f.selectors.ROOT);if(i)return i}return this._component}};function C(a,t,e){if(!a||/^\s*$/.test(a))return null;let i=0,n=0,l=0;if(b.test(a)){let o=G(a);i=+o.hours||0,n=+o.minutes||0,l=+o.seconds||0}else if(X.test(a)){let o=q(a);i=+o.hours||0,n=+o.minutes||0,l=+o.seconds||0,i===12&&o.meridiem==="AM"&&(i=0),i<12&&o.meridiem==="PM"&&(i+=12)}else return null;return dt(i)+I(n)+(e?O(l):0)}function m(a,t,e){if(typeof a!="number"||a<0)return null;let i=Math.min(pt(a),23),n=Math.min(ut(a),59),o=a/(1e3*60)<720?"AM":"PM";t||(i=i<=12?i:i-12,i===0&&(i=12));let d=`${String(i).padStart(2,"0")}:${String(n).padStart(2,"0")}`;if(e){let _=Math.min(M(a),59);d+=`:${String(_).padStart(2,"0")}`}return t||(d+=` ${o}`),d}function pt(a){return Math.abs(Math.floor(a/(1e3*60*60)))}function ut(a){return Math.abs(Math.floor(v(a)%60))}function v(a){return a/(1e3*60)}function M(a){return Math.abs(Math.floor(It(a)%60))}function It(a){return a/1e3}function dt(a){return a*60*60*1e3}function I(a){return a*60*1e3}function O(a){return a*1e3}function mt(a){return a-O(M(a))}function D(a){let t=new Date,e=t.getHours(),i=t.getMinutes();return dt(e)+I(i)+(a?O(t.getSeconds()):0)}function Rt(a,t,e=!1){a||(a=new Date);let i=C(t,!0,e);if(!i)return a.setHours(0,0,0),a;let n=pt(i),l=828e5;n>l?n=l:n<0&&(n=0);let o=ut(i),d=e?M(i):0;return a.setHours(n,o,d),a}var T=class{constructor(t){this._adapter=t;this._value=null;this._masked=!0;this._use24HourTime=!1;this._showMaskFormat=!1;this._min=null;this._max=null;this._restrictedTimes=[];this._startTime=null;this._step=s.numbers.DEFAULT_MINUTE_STEP;this._allowInput=!0;this._open=!1;this._allowSeconds=!1;this._allowInvalidTime=!1;this._showNow=!1;this._showHourOptions=!0;this._customOptions=[];this._disabled=!1;this._popupClasses=[];this._allowDropdown=!0;this._isInitialized=!1;this._identifier=S(),this._inputListener=e=>this._onInput(e),this._inputKeydownListener=e=>this._onInputKeydown(e),this._toggleMousedownListener=e=>this._onToggleMousedown(e),this._inputFocusListener=e=>this._onInputFocus(e),this._inputBlurListener=e=>this._onInputBlur(e),this._inputMousedownListener=e=>this._onInputMousedown(e)}initialize(){if(this._adapter.initialize(),!this._adapter.hasInputElement())throw new Error("Unable to locate <input> element to attach to.");if(this._adapter.initializeAccessibility(this._identifier),!this._value){let t=this._adapter.getInputValue();this._setValue(this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds))}this._adapter.addInputListener("focus",this._inputFocusListener),this._adapter.addInputListener("blur",this._inputBlurListener),this._adapter.addInputListener("keydown",this._inputKeydownListener,!0),this._formatInputValue(!1),typeof this._value=="number"&&this._applyValue(this._value,!1),this._applyAllowInput(),this._applyAllowDropdown(),this._applyDisabled(),this._applyMask(),this._isInitialized=!0}disconnect(){this._isInitialized=!1,this._adapter.removeInputListener("input",this._inputListener),this._adapter.removeInputListener("focus",this._inputFocusListener),this._adapter.removeInputListener("blur",this._inputBlurListener),this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.removeInputListener("keydown",this._inputKeydownListener,!0),this._masked&&this._adapter.destroyMask(),this._closeDropdown(),this._adapter.destroy()}_onInput(t){this._handleInput(this._adapter.getInputValue())}_onInputKeydown(t){if(t.shiftKey)switch(t.code){case"Backspace":case"Delete":t.preventDefault(),this._trySetValue(null)&&this._formatInputValue();return}switch(t.code){case"Tab":this._open&&this._selectActiveOption();break;case"Esc":case"Escape":this._open&&(t.preventDefault(),this._closeDropdown(!0));break;case"Down":case"ArrowDown":this._allowDropdown&&(t.preventDefault(),this._open?this._adapter.propagateKey(t.code):(this._openDropdown(),this._adapter.activateFirstOption()));break;case"Up":case"ArrowUp":this._allowDropdown&&(t.preventDefault(),this._open&&this._adapter.propagateKey(t.code));break;case"Enter":case"Home":case"End":this._open&&(t.code==="Enter"&&t.stopPropagation(),t.preventDefault(),this._adapter.propagateKey(t.code));break;case"KeyN":t.preventDefault();let e=D(this._allowSeconds);if(this._value!==e){let i=m(e,!0,this._allowSeconds);this._emitChangeEvent(i)&&(this._applyValue(e),this._selectInputText())}break}}_selectActiveOption(){let t=this._adapter.getActiveOption();t&&this._onSelect(t.value)}_onToggleMousedown(t){this._disabled||!this.allowDropdown||(t.stopPropagation(),!this._adapter.isInputDisabled()&&(t.preventDefault(),this._open?this._closeDropdown(!0):(F.isMobile?this._adapter.tryBlurInput():this._adapter.tryFocusInput(),this._openDropdown())))}_onInputFocus(t){this._allowInput&&this._adapter.selectInputText()}_onInputBlur(t){this._formatInputValue(),this._open&&!this._adapter.isInputFocused()&&this._closeDropdown(!0)}_onInputMousedown(t){!this._allowInput&&!this._open&&(this._openDropdown(),this._adapter.tryFocusInput(),window.requestAnimationFrame(()=>this._adapter.selectInputText()))}_applyDisabled(){this._adapter.setDisabled(this._disabled)}_applyMask(){if(this._masked&&this._allowInput){let t={showMaskFormat:this._showMaskFormat,use24HourTime:this._use24HourTime,showSeconds:this._allowSeconds,prepareCallback:this._prepareMaskCallback,onChange:y(e=>this._handleInput(e),0,!0)};this._adapter.initializeMask(t)}else this._adapter.destroyMask(),this._formatInputValue()}_applyAllowInput(){this._adapter.setInputReadonly(!this._allowInput),this._allowInput?(this._adapter.removeInputListener("mousedown",this._inputMousedownListener),this._masked||this._adapter.addInputListener("input",this._inputListener)):(this._adapter.addInputListener("mousedown",this._inputMousedownListener),this._adapter.removeInputListener("input",this._inputListener))}_applyAllowDropdown(){this._adapter.setToggleDisabled(!this._allowDropdown),this._allowDropdown?(this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.tryCreateToggle(),this._adapter.addToggleListener("mousedown",this._toggleMousedownListener)):this._open&&this._closeDropdown(!0)}_applyAllowSeconds(){let t=this._value;if(this._allowSeconds){if(this._isInitialized&&t!==this._value){let e=m(this._value,!0,!0);this._emitChangeEvent(e)}}else{if(typeof this._value!="number")return;if(this._setValue(mt(this._value)),this._isInitialized&&t!==this._value){let e=m(this._value,!0,!1);this._emitChangeEvent(e)}}}_handleInput(t){let e=t;if(!this._allowInput)return;this._open&&this._closeDropdown(!0),t=j(t,this._use24HourTime,this._allowSeconds),typeof this._coercionCallback=="function"&&(t=this._coercionCallback.call(null,e,t,this._allowSeconds)),this._isValidTimeFormat(t)||(t="");let i;!this._masked&&typeof this._parseCallback=="function"?i=this._parseCallback.call(null,t):i=this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds),i=this._validateMillis(i),this._trySetValue(i)}_emitChangeEvent(t,e=!1){return this._adapter.emitHostEvent(s.events.CHANGE,t,!0,!e)}_trySetValue(t){if(t===this._value)return!1;let e=m(t,!0,this._allowSeconds);return this._masked&&this._adapter.emitInputEvent(s.events.INPUT,e),this._value!==t&&this._emitChangeEvent(e)?(this._setValue(t),!0):!1}_setValue(t){this._value=this._normalizeTimeValue(t)}_validateMillis(t){if(typeof t=="number"){let e=typeof this._min=="number"&&t<this._min,i=typeof this._max=="number"&&t>this._max;(e||i)&&(t=null)}return typeof t=="number"&&this._restrictedTimes.length&&this._restrictedTimes.includes(t)&&(t=null),t}_isValidTimeFormat(t){return!this._masked&&typeof this._validationCallback=="function"?this._validationCallback.call(this,t):Y(t)}_isValidInputValue(t){return b.test(t)}_onSelect(t){if(this._closeDropdown(!0),!t.isCustom&&t.metadata==="now"&&(t.time=D(this._allowSeconds)),t.isCustom)if(typeof t.customCallback=="function"){let n=t.customCallback.call(null,t.metadata);if(typeof n!="number")throw new Error("Custom options must provide a time of day value in milliseconds.");t.time=n}else throw new Error("You must implement a `toMilliseconds` callback that returns the time value to use for this custom option.");if(this._value===t.time)return;let e=m(t.time,!0,this._allowSeconds);!this._emitChangeEvent(e)||(this._applyValue(t.time),this._selectInputText())}_selectInputText(){window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._adapter.isInputFocused()&&this._adapter.selectInputText()})})}_applyValue(t,e=!0){this._setValue(t);let i=this._formatValue(this._value);this._adapter.getInputValue()!==i&&this._adapter.setInputValue(i,e)}_normalizeTimeValue(t){return t==null?null:t<0?0:t>s.numbers.MAX_DAY_MILLIS?s.numbers.MAX_DAY_MILLIS:t}_openDropdown(){let t=this._generateTimeOptions();if(!this.allowDropdown||!t.length)return;this._formatInputValue(),this._open=!0,this._adapter.setHostAttribute(s.attributes.OPEN);let e=t.filter(o=>!o.divider&&!o.disabled),i=[],n;if(t.length){if(this._value!=null){let o=this._findClosestOptionIndex(this._value,e);o>=0&&(e[o].value.time===this._value?i=[e[o].value]:n=o)}else if(typeof this._startTime=="number"){let o=this._findClosestOptionIndex(this._startTime,e);o>=0&&o<e.length&&(n=o)}}let l={id:`forge-time-picker-${this._identifier}`,selectedValues:i,syncWidth:!0,activeStartIndex:n,popupClasses:this._popupClasses,popupStatic:!0,type:"standard",options:t,selectCallback:o=>this._onSelect(o),closeCallback:()=>this._closeDropdown(!0),activeChangeCallback:o=>this._adapter.setActiveDescendant(o),targetWidthCallback:()=>this._adapter.getTargetElementWidth(this._popupTarget)};this._adapter.attachDropdown(l),this._adapter.emitHostEvent(s.events.OPEN,void 0,!1)}_closeDropdown(t=!1){this._open=!1,this._adapter.removeHostAttribute(s.attributes.OPEN),this._adapter.detachDropdown(),t&&this._adapter.emitHostEvent(s.events.CLOSE,!0,!1)}_findClosestOptionIndex(t,e){let i=e.reduce((n,l)=>Math.abs((l.value.time||0)-t)<Math.abs((n.value.time||0)-t)?l:n);return e.indexOf(i)}_formatInputValue(t=!0){let e=this._adapter.getInputValue();if(this._allowInvalidTime&&!this._masked&&e&&!this._value)return;let i=this._formatValue(this._value);e!==i&&this._adapter.setInputValue(i,t)}_generateTimeOptions(){let t=this._min!=null?Math.max(v(this._min),0):0,e=this._max!=null?Math.min(v(this._max),s.numbers.MAX_DAY_MINUTES):s.numbers.MAX_DAY_MINUTES,i=this._step,n=[],l=[];if(this._showHourOptions){for(let d=t;d<=e&&d!==s.numbers.MAX_DAY_MINUTES;d+=i){let _=I(d),_t=this._restrictedTimes.includes(_),ht=m(_,this._use24HourTime,!1)||"",bt={time:_};n.push({label:ht,value:bt,disabled:_t})}let o=n.findIndex(d=>d.value.time/1e3/60>=720);o>=0&&o<n.length-1&&n.splice(o,0,{label:"",value:null,divider:!0})}if(this._showNow){let o={time:null,metadata:"now"};l.push({label:"Now",value:o})}if(Array.isArray(this._customOptions)&&this._customOptions.length){let o=this._customOptions.map(d=>{let _={time:null,metadata:d.value,isCustom:!0,customCallback:d.toMilliseconds};return{label:d.label,value:_}});l=[...l,...o]}return l.length&&(n.length&&n.splice(0,0,{label:"",value:null,divider:!0}),l.forEach((o,d)=>n.splice(d,0,o))),n}_convertTimeStringToMillis(t,e,i){return(!t||!this._isValidTimeFormat(t))&&(t=""),C(t,e,i)}_formatValue(t){return!this._masked&&typeof this._formatCallback=="function"?this._formatCallback.call(null,t,this._use24HourTime,this._allowSeconds):m(this._value,this._use24HourTime,this._allowSeconds)||""}_warnInvalidFormat(t){console.warn(`The specified value "${t}" does not conform to the required format. The format is "HH:mm", "HH:mm:ss" where HH is 00-23, mm is 00-59, and ss is 00-59.`)}get open(){return this._open}set open(t){this._open!==t&&this._isInitialized&&(this._open=t,this._open?this._openDropdown():this._closeDropdown())}get masked(){return this._masked}set masked(t){this._masked!==t&&(this._masked=t,this._isInitialized&&(this._masked?(this._adapter.removeInputListener("input",this._inputListener),this._applyMask()):(this._adapter.destroyMask(),this._formatInputValue(),this._adapter.addInputListener("input",this._inputListener))))}get showMaskFormat(){return this._showMaskFormat}set showMaskFormat(t){this._showMaskFormat!==t&&(this._showMaskFormat=t,this._isInitialized&&this._applyMask())}get allowSeconds(){return this._allowSeconds}set allowSeconds(t){this._allowSeconds!==t&&(this._allowSeconds=!!t,this._applyAllowSeconds(),this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(s.attributes.ALLOW_SECONDS,`${!!t}`))}get use24HourTime(){return this._use24HourTime}set use24HourTime(t){this._use24HourTime!==t&&(this._use24HourTime=!!t,this._isInitialized&&(this._adapter.destroyMask(),this._formatInputValue(),this._applyMask()),this._adapter.setHostAttribute(s.attributes.USE_24_HOUR_TIME,`${!!t}`))}get allowInvalidTime(){return this._allowInvalidTime}set allowInvalidTime(t){this._allowInvalidTime!==t&&(this._allowInvalidTime=!!t,this._adapter.setHostAttribute(s.attributes.ALLOW_INVALID_TIME,`${!!t}`))}get value(){return m(this._value,!0,this._allowSeconds)}set value(t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}let e=this._validateMillis(this._convertTimeStringToMillis(t,!0,!0));this._setValue(e),this._isInitialized&&this._applyValue(this._value)}get min(){return m(this._min,!0,this._allowSeconds)}set min(t){if(this._min!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._min=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get max(){return m(this._max,!0,this._allowSeconds)}set max(t){if(this._max!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._max=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get restrictedTimes(){return this._restrictedTimes.map(t=>m(t,!0,this._allowSeconds)).filter(t=>typeof t=="string")}set restrictedTimes(t){Array.isArray(t)||(t=[]),this._restrictedTimes=t.filter(e=>typeof e=="string").map(e=>this._convertTimeStringToMillis(e,!0,!0)).filter(e=>typeof e=="number")}get startTime(){return m(this._startTime,!0,this._allowSeconds)}set startTime(t){if(this._startTime!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._startTime=this._convertTimeStringToMillis(t,!0,this._allowSeconds)}}get step(){return this._step}set step(t){this._step=t}get allowInput(){return this._allowInput}set allowInput(t){this._allowInput!==t&&(this._allowInput=t,this._isInitialized&&(this._applyAllowInput(),this._applyMask()))}get popupTarget(){return this._popupTarget}set popupTarget(t){this._popupTarget!==t&&(this._popupTarget=t)}get showNow(){return this._showNow}set showNow(t){this._showNow!==t&&(this._showNow=t)}get showHourOptions(){return this._showHourOptions}set showHourOptions(t){this._showHourOptions!==t&&(this._showHourOptions=t)}get customOptions(){return this._customOptions}set customOptions(t){this._customOptions=Array.isArray(t)?t:[]}set validationCallback(t){this._validationCallback=t,this._isInitialized&&this._applyMask()}set parseCallback(t){this._parseCallback=t}set formatCallback(t){this._formatCallback=t}set coercionCallback(t){this._coercionCallback=t}set prepareMaskCallback(t){this._prepareMaskCallback=t,this._isInitialized&&this._applyMask()}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=!!t,this._isInitialized&&this._applyDisabled(),this._adapter.toggleHostAttribute(s.attributes.DISABLED,this._disabled))}get popupClasses(){return Array.isArray(this._popupClasses)?[...this._popupClasses]:this._popupClasses}set popupClasses(t){Array.isArray(t)?this._popupClasses=[...t]:this._popupClasses=[t]}get allowDropdown(){return this._allowDropdown}set allowDropdown(t){this._allowDropdown!==t&&(this._allowDropdown=t,this._isInitialized&&this._applyAllowDropdown())}};var Tt="<template><slot></slot></template>",kt=":host{display:block}:host([hidden]){display:none}",r=class extends W{constructor(){super();Z.define([rt,K]),H(this,Tt,kt),this._foundation=new T(new g(this))}static get observedAttributes(){return[s.attributes.VALUE,s.attributes.OPEN,s.attributes.ALLOW_SECONDS,s.attributes.MASKED,s.attributes.SHOW_MASK_FORMAT,s.attributes.USE_24_HOUR_TIME,s.attributes.ALLOW_INVALID_TIME,s.attributes.MIN,s.attributes.MAX,s.attributes.START_TIME,s.attributes.STEP,s.attributes.ALLOW_INPUT,s.attributes.SHOW_NOW,s.attributes.SHOW_HOUR_OPTIONS,s.attributes.DISABLED,s.attributes.POPUP_CLASSES,s.attributes.ALLOW_DROPDOWN]}connectedCallback(){this.querySelector(s.selectors.INPUT)?this._foundation.initialize():A(this,s.selectors.INPUT).then(()=>this._foundation.initialize())}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(e,i,n){switch(e){case s.attributes.VALUE:this.value=n;break;case s.attributes.OPEN:this.open=c(n);break;case s.attributes.ALLOW_SECONDS:this.allowSeconds=c(n);break;case s.attributes.MASKED:this.masked=c(n);break;case s.attributes.SHOW_MASK_FORMAT:this.showMaskFormat=c(n);break;case s.attributes.USE_24_HOUR_TIME:this.use24HourTime=c(n);break;case s.attributes.ALLOW_INVALID_TIME:this.allowInvalidTime=c(n);break;case s.attributes.SHOW_NOW:this.showNow=c(n);break;case s.attributes.SHOW_HOUR_OPTIONS:this.showHourOptions=c(n);break;case s.attributes.MIN:this.min=n;break;case s.attributes.MAX:this.max=n;break;case s.attributes.START_TIME:this.startTime=n;break;case s.attributes.STEP:this.step=L(n);break;case s.attributes.ALLOW_INPUT:this.allowInput=c(n);break;case s.attributes.DISABLED:this.disabled=c(n);break;case s.attributes.POPUP_CLASSES:this.popupClasses=n;break;case s.attributes.ALLOW_DROPDOWN:this.allowDropdown=c(n);break}}};p([u()],r.prototype,"value",2),p([u()],r.prototype,"open",2),p([u()],r.prototype,"allowSeconds",2),p([u()],r.prototype,"masked",2),p([u()],r.prototype,"showMaskFormat",2),p([u()],r.prototype,"use24HourTime",2),p([u()],r.prototype,"allowInvalidTime",2),p([u()],r.prototype,"min",2),p([u()],r.prototype,"max",2),p([u()],r.prototype,"restrictedTimes",2),p([u()],r.prototype,"startTime",2),p([u()],r.prototype,"step",2),p([u()],r.prototype,"allowInput",2),p([u()],r.prototype,"showNow",2),p([u()],r.prototype,"showHourOptions",2),p([u()],r.prototype,"customOptions",2),p([u()],r.prototype,"validationCallback",2),p([u()],r.prototype,"parseCallback",2),p([u()],r.prototype,"formatCallback",2),p([u()],r.prototype,"coercionCallback",2),p([u()],r.prototype,"prepareMaskCallback",2),p([u()],r.prototype,"disabled",2),p([u()],r.prototype,"popupClasses",2),p([u()],r.prototype,"allowDropdown",2),p([u()],r.prototype,"popupTarget",2),r=p([R({name:s.elementName,dependencies:[et,tt,ot,w,it,w,at]})],r);var ct=class extends ${constructor(e){super(e)}_build(){let e=document.createElement(s.elementName);return this._attachTextField(e),e}get inputElement(){return this._textFieldDelegate.inputElement}get textFieldElement(){return this._textFieldDelegate.element}get value(){return this._element.value}set value(e){this._element.value=e}get disabled(){return this._element.disabled}set disabled(e){this._element.disabled=e}get invalid(){return this._textFieldDelegate.invalid||!1}set invalid(e){this._textFieldDelegate.invalid=e}onChange(e){this._element.addEventListener(s.events.CHANGE,i=>{var n;return e((n=i.detail)!=null?n:"")})}onInput(e){this._element.masked?this._element.addEventListener(s.events.INPUT,i=>{var n;return e((n=i.detail)!=null?n:"")}):this._textFieldDelegate.inputElement.addEventListener("input",i=>e(i.target.value))}onFocus(e){this._textFieldDelegate.inputElement.addEventListener("focus",i=>e(i))}onBlur(e){this._textFieldDelegate.inputElement.addEventListener("blur",i=>e(i))}_attachTextField(e){var n,l,o,d;let i={props:k({},(l=(n=this._config.options)==null?void 0:n.textFieldDelegateConfig)==null?void 0:l.props),options:k({},(d=(o=this._config.options)==null?void 0:o.textFieldDelegateConfig)==null?void 0:d.options)};this._textFieldDelegate=new nt(i),e.appendChild(this._textFieldDelegate.element)}};function xe(){N(r)}export{s as a,g as b,C as c,m as d,pt as e,ut as f,v as g,M as h,It as i,dt as j,I as k,O as l,mt as m,D as n,Rt as o,T as p,r as q,ct as r,xe as s};
7
- //# sourceMappingURL=chunk.3LZEQWAL.js.map
6
+ import{a as rt}from"./chunk.E37HEAJ5.js";import{d as at}from"./chunk.NNGE722W.js";import{a as f,b as nt}from"./chunk.IMK2LFWR.js";import{h as st}from"./chunk.KGW63HJX.js";import{c as et}from"./chunk.D3DLVPPE.js";import{e as tt}from"./chunk.7JTKKFL4.js";import{e as it}from"./chunk.3UMBCR4P.js";import{a as E,b as ot}from"./chunk.BOENNFXE.js";import{j as K}from"./chunk.LZMYHIO2.js";import{a as F}from"./chunk.D4SNVKDA.js";import{a as Q,d as Z,l as w}from"./chunk.YAJT3P6V.js";import{a as $}from"./chunk.24D46RLZ.js";import{g as J}from"./chunk.7ZS4N2FT.js";import{j as b,k as X,m as G,n as q,o as Y,p as j}from"./chunk.KYCC3C3M.js";import{a as z}from"./chunk.A23NSEWA.js";import{a as u}from"./chunk.B3IJU6XJ.js";import{a as R,b as B}from"./chunk.BSZ2LBJX.js";import{a as W}from"./chunk.3E5QKMHL.js";import{a as N,e as H,g as V,i as U}from"./chunk.HN4PXH3D.js";import{m as A,s as P,u as x}from"./chunk.R4NDFXVA.js";import{a as S,k as c,l as L,o as y}from"./chunk.G76HB2FK.js";import{a as k,f as p}from"./chunk.MCIQXNKY.js";var h=`${B}time-picker`,lt={TOGGLE:"forge-time-picker-toggle",VALUE:"value",OPEN:"open",ALLOW_SECONDS:"allow-seconds",MASKED:"masked",SHOW_MASK_FORMAT:"show-mask-format",USE_24_HOUR_TIME:"use-24-hour-time",ALLOW_INVALID_TIME:"allow-invalid-time",MIN:"min",MAX:"max",START_TIME:"start-time",STEP:"step",ALLOW_INPUT:"allow-input",SHOW_NOW:"show-now",SHOW_HOUR_OPTIONS:"show-hour-options",DISABLED:"disabled",POPUP_CLASSES:"popup-classes",ALLOW_DROPDOWN:"allow-dropdown"},ft={INPUT:"input, input[forge-time-picker-input]",TOGGLE:`[${lt.TOGGLE}]`},gt={OPEN:`${h}-open`,CLOSE:`${h}-close`,INPUT:`${h}-input`,CHANGE:`${h}-change`},vt={DEFAULT_MINUTE_STEP:60,MAX_DAY_MILLIS:864e5,MAX_DAY_MINUTES:1440},s={elementName:h,attributes:lt,selectors:ft,events:gt,numbers:vt};var g=class extends z{constructor(e){super(e)}initialize(){this._inputElement=this._component.querySelector(s.selectors.INPUT)}initializeMask(e){this._inputMask&&this._inputMask.destroy(),this._inputMask=new J(this._inputElement,e)}destroy(){this._targetElement=void 0,this._toggleElement=void 0,this._inputElement=void 0}destroyMask(){this._inputMask&&(this._inputMask.destroy(),this._inputMask=void 0)}initializeAccessibility(e){this._inputElement.setAttribute("autocomplete","off"),this._inputElement.setAttribute("autocorrect","off"),this._inputElement.setAttribute("autocapitalize","off"),this._inputElement.setAttribute("spellcheck","false"),this._inputElement.setAttribute("role","combobox"),this._inputElement.setAttribute("aria-live","assertive"),this._inputElement.setAttribute("aria-atomic","true"),this._inputElement.setAttribute("aria-haspopup","true"),this._inputElement.setAttribute("aria-expanded","false")}addInputListener(e,i,n){this._inputElement.addEventListener(e,i,{capture:n})}removeInputListener(e,i,n){this._inputElement&&this._inputElement.removeEventListener(e,i,{capture:n})}addToggleListener(e,i){this._toggleElement&&this._toggleElement.addEventListener(e,i)}removeToggleListener(e,i){this._toggleElement&&this._toggleElement.removeEventListener(e,i)}hasInputElement(){return!!this._inputElement}tryCreateToggle(){let e=this._component.querySelector(f.elementName),i=this._component.querySelector(s.selectors.TOGGLE);if(e){let n=e.querySelector(`${E.elementName}[slot=trailing]`);if(n||i){this._toggleElement=n||i;return}let l=document.createElement(E.elementName);l.slot="trailing",l.dense=!0,l.densityLevel=3,l.style.marginRight="4px";let o=document.createElement("button");o.type="button",o.tabIndex=-1,o.setAttribute("aria-label","Toggle time dropdown");let d=document.createElement(Q.elementName);d.name="clock_outline",o.appendChild(d),l.appendChild(o),e.appendChild(l),this._toggleElement=l}else i&&(this._toggleElement=i)}tryFocusInput(){this._inputElement.select()}tryBlurInput(){this._inputElement.blur()}selectInputText(){this._inputElement.select()}isInputDisabled(){return this._inputElement.disabled}isInputFocused(){return P()===this._inputElement}setInputValue(e,i){this._inputElement.value!==e&&(this._inputElement.value=e,this._inputMask&&this._inputMask.update(),i&&(this._emitInputEvent("change"),this._emitInputEvent("input")))}getInputValue(){return this._inputMask?this._inputMask.maskedValue:this._inputElement.value}setDisabled(e){this._inputElement.disabled=e,this._inputElement.setAttribute("aria-disabled",e.toString()),this.setToggleDisabled(e)}attachDropdown(e){this._listDropdown=new st(this._inputElement,e),this._listDropdown.open(),this._inputElement.setAttribute("aria-controls",`list-dropdown-popup-${e.id}`)}detachDropdown(){this._listDropdown&&(this._listDropdown.close(),this._listDropdown.destroy(),this._listDropdown=void 0),this._inputElement.removeAttribute("aria-controls")}propagateKey(e){var i;(i=this._listDropdown)==null||i.handleKey(e)}setActiveDescendant(e){x(this._inputElement,!!e,"aria-activedescendant",e)}getTargetElementWidth(e){return this._getTargetElement(e).getBoundingClientRect().width}_emitInputEvent(e){this._inputElement.dispatchEvent(new Event(e))}emitInputEvent(e,i){U(this._inputElement,e,i)}setInputReadonly(e){this._inputElement.readOnly=e}setToggleDisabled(e){if(this._toggleElement)if(this._toggleElement.setAttribute("aria-disabled",e.toString()),"disabled"in this._toggleElement)this._toggleElement.disabled=e;else{let i=this._toggleElement.querySelector("button");i&&(i.disabled=e)}}activateFirstOption(){var e;(e=this._listDropdown)==null||e.activateFirstOption()}getActiveOption(){var e;return(e=this._listDropdown)==null?void 0:e.getActiveOption()}_getTargetElement(e){return this._targetElement?this._targetElement:(this._targetElement=e?this._component.querySelector(e)||this._getDefaultTargetElement():this._getDefaultTargetElement(),this._targetElement)}_getDefaultTargetElement(){let e=this._component.querySelector(f.elementName);if(e&&e.shadowRoot){let i=V(e,f.selectors.ROOT);if(i)return i}return this._component}};function C(a,t,e){if(!a||/^\s*$/.test(a))return null;let i=0,n=0,l=0;if(b.test(a)){let o=G(a);i=+o.hours||0,n=+o.minutes||0,l=+o.seconds||0}else if(X.test(a)){let o=q(a);i=+o.hours||0,n=+o.minutes||0,l=+o.seconds||0,i===12&&o.meridiem==="AM"&&(i=0),i<12&&o.meridiem==="PM"&&(i+=12)}else return null;return dt(i)+I(n)+(e?O(l):0)}function m(a,t,e){if(typeof a!="number"||a<0)return null;let i=Math.min(pt(a),23),n=Math.min(ut(a),59),o=a/(1e3*60)<720?"AM":"PM";t||(i=i<=12?i:i-12,i===0&&(i=12));let d=`${String(i).padStart(2,"0")}:${String(n).padStart(2,"0")}`;if(e){let _=Math.min(M(a),59);d+=`:${String(_).padStart(2,"0")}`}return t||(d+=` ${o}`),d}function pt(a){return Math.abs(Math.floor(a/(1e3*60*60)))}function ut(a){return Math.abs(Math.floor(v(a)%60))}function v(a){return a/(1e3*60)}function M(a){return Math.abs(Math.floor(It(a)%60))}function It(a){return a/1e3}function dt(a){return a*60*60*1e3}function I(a){return a*60*1e3}function O(a){return a*1e3}function mt(a){return a-O(M(a))}function D(a){let t=new Date,e=t.getHours(),i=t.getMinutes();return dt(e)+I(i)+(a?O(t.getSeconds()):0)}function Rt(a,t,e=!1){a||(a=new Date);let i=C(t,!0,e);if(!i)return a.setHours(0,0,0),a;let n=pt(i),l=828e5;n>l?n=l:n<0&&(n=0);let o=ut(i),d=e?M(i):0;return a.setHours(n,o,d),a}var T=class{constructor(t){this._adapter=t;this._value=null;this._masked=!0;this._use24HourTime=!1;this._showMaskFormat=!1;this._min=null;this._max=null;this._restrictedTimes=[];this._startTime=null;this._step=s.numbers.DEFAULT_MINUTE_STEP;this._allowInput=!0;this._open=!1;this._allowSeconds=!1;this._allowInvalidTime=!1;this._showNow=!1;this._showHourOptions=!0;this._customOptions=[];this._disabled=!1;this._popupClasses=[];this._allowDropdown=!0;this._isInitialized=!1;this._identifier=S(),this._inputListener=e=>this._onInput(e),this._inputKeydownListener=e=>this._onInputKeydown(e),this._toggleMousedownListener=e=>this._onToggleMousedown(e),this._inputFocusListener=e=>this._onInputFocus(e),this._inputBlurListener=e=>this._onInputBlur(e),this._inputMousedownListener=e=>this._onInputMousedown(e)}initialize(){if(this._adapter.initialize(),!this._adapter.hasInputElement())throw new Error("Unable to locate <input> element to attach to.");if(this._adapter.initializeAccessibility(this._identifier),!this._value){let t=this._adapter.getInputValue();this._setValue(this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds))}this._adapter.addInputListener("focus",this._inputFocusListener),this._adapter.addInputListener("blur",this._inputBlurListener),this._adapter.addInputListener("keydown",this._inputKeydownListener,!0),this._formatInputValue(!1),typeof this._value=="number"&&this._applyValue(this._value,!1),this._applyAllowInput(),this._applyAllowDropdown(),this._applyDisabled(),this._applyMask(),this._isInitialized=!0}disconnect(){this._isInitialized=!1,this._adapter.removeInputListener("input",this._inputListener),this._adapter.removeInputListener("focus",this._inputFocusListener),this._adapter.removeInputListener("blur",this._inputBlurListener),this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.removeInputListener("keydown",this._inputKeydownListener,!0),this._masked&&this._adapter.destroyMask(),this._closeDropdown(),this._adapter.destroy()}_onInput(t){this._handleInput(this._adapter.getInputValue())}_onInputKeydown(t){if(t.shiftKey)switch(t.code){case"Backspace":case"Delete":t.preventDefault(),this._trySetValue(null)&&this._formatInputValue();return}switch(t.code){case"Tab":this._open&&this._selectActiveOption();break;case"Esc":case"Escape":this._open&&(t.preventDefault(),this._closeDropdown(!0));break;case"Down":case"ArrowDown":this._allowDropdown&&(t.preventDefault(),this._open?this._adapter.propagateKey(t.code):(this._openDropdown(),this._adapter.activateFirstOption()));break;case"Up":case"ArrowUp":this._allowDropdown&&(t.preventDefault(),this._open&&this._adapter.propagateKey(t.code));break;case"Enter":case"Home":case"End":this._open&&(t.code==="Enter"&&t.stopPropagation(),t.preventDefault(),this._adapter.propagateKey(t.code));break;case"KeyN":t.preventDefault();let e=D(this._allowSeconds);if(this._value!==e){let i=m(e,!0,this._allowSeconds);this._emitChangeEvent(i)&&(this._applyValue(e),this._selectInputText())}break}}_selectActiveOption(){let t=this._adapter.getActiveOption();t&&this._onSelect(t.value)}_onToggleMousedown(t){this._disabled||!this.allowDropdown||(t.stopPropagation(),!this._adapter.isInputDisabled()&&(t.preventDefault(),this._open?this._closeDropdown(!0):(F.isMobile?this._adapter.tryBlurInput():this._adapter.tryFocusInput(),this._openDropdown())))}_onInputFocus(t){this._allowInput&&this._adapter.selectInputText()}_onInputBlur(t){this._formatInputValue(),this._open&&!this._adapter.isInputFocused()&&this._closeDropdown(!0)}_onInputMousedown(t){!this._allowInput&&!this._open&&(this._openDropdown(),this._adapter.tryFocusInput(),window.requestAnimationFrame(()=>this._adapter.selectInputText()))}_applyDisabled(){this._adapter.setDisabled(this._disabled)}_applyMask(){if(this._masked&&this._allowInput){let t={showMaskFormat:this._showMaskFormat,use24HourTime:this._use24HourTime,showSeconds:this._allowSeconds,prepareCallback:this._prepareMaskCallback,onChange:y(e=>this._handleInput(e),0,!0)};this._adapter.initializeMask(t)}else this._adapter.destroyMask(),this._formatInputValue()}_applyAllowInput(){this._adapter.setInputReadonly(!this._allowInput),this._allowInput?(this._adapter.removeInputListener("mousedown",this._inputMousedownListener),this._masked||this._adapter.addInputListener("input",this._inputListener)):(this._adapter.addInputListener("mousedown",this._inputMousedownListener),this._adapter.removeInputListener("input",this._inputListener))}_applyAllowDropdown(){this._adapter.setToggleDisabled(!this._allowDropdown),this._allowDropdown?(this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.tryCreateToggle(),this._adapter.addToggleListener("mousedown",this._toggleMousedownListener)):this._open&&this._closeDropdown(!0)}_applyAllowSeconds(){let t=this._value;if(this._allowSeconds){if(this._isInitialized&&t!==this._value){let e=m(this._value,!0,!0);this._emitChangeEvent(e)}}else{if(typeof this._value!="number")return;if(this._setValue(mt(this._value)),this._isInitialized&&t!==this._value){let e=m(this._value,!0,!1);this._emitChangeEvent(e)}}}_handleInput(t){let e=t;if(!this._allowInput)return;this._open&&this._closeDropdown(!0),t=j(t,this._use24HourTime,this._allowSeconds),typeof this._coercionCallback=="function"&&(t=this._coercionCallback.call(null,e,t,this._allowSeconds)),this._isValidTimeFormat(t)||(t="");let i;!this._masked&&typeof this._parseCallback=="function"?i=this._parseCallback.call(null,t):i=this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds),i=this._validateMillis(i),this._trySetValue(i)}_emitChangeEvent(t,e=!1){return this._adapter.emitHostEvent(s.events.CHANGE,t,!0,!e)}_trySetValue(t){if(t===this._value)return!1;let e=m(t,!0,this._allowSeconds);return this._masked&&this._adapter.emitInputEvent(s.events.INPUT,e),this._value!==t&&this._emitChangeEvent(e)?(this._setValue(t),!0):!1}_setValue(t){this._value=this._normalizeTimeValue(t)}_validateMillis(t){if(typeof t=="number"){let e=typeof this._min=="number"&&t<this._min,i=typeof this._max=="number"&&t>this._max;(e||i)&&(t=null)}return typeof t=="number"&&this._restrictedTimes.length&&this._restrictedTimes.includes(t)&&(t=null),t}_isValidTimeFormat(t){return!this._masked&&typeof this._validationCallback=="function"?this._validationCallback.call(this,t):Y(t)}_isValidInputValue(t){return b.test(t)}_onSelect(t){if(this._closeDropdown(!0),!t.isCustom&&t.metadata==="now"&&(t.time=D(this._allowSeconds)),t.isCustom)if(typeof t.customCallback=="function"){let n=t.customCallback.call(null,t.metadata);if(typeof n!="number")throw new Error("Custom options must provide a time of day value in milliseconds.");t.time=n}else throw new Error("You must implement a `toMilliseconds` callback that returns the time value to use for this custom option.");if(this._value===t.time)return;let e=m(t.time,!0,this._allowSeconds);!this._emitChangeEvent(e)||(this._applyValue(t.time),this._selectInputText())}_selectInputText(){window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._adapter.isInputFocused()&&this._adapter.selectInputText()})})}_applyValue(t,e=!0){this._setValue(t);let i=this._formatValue(this._value);this._adapter.getInputValue()!==i&&this._adapter.setInputValue(i,e)}_normalizeTimeValue(t){return t==null?null:t<0?0:t>s.numbers.MAX_DAY_MILLIS?s.numbers.MAX_DAY_MILLIS:t}_openDropdown(){let t=this._generateTimeOptions();if(!this.allowDropdown||!t.length)return;this._formatInputValue(),this._open=!0,this._adapter.setHostAttribute(s.attributes.OPEN);let e=t.filter(o=>!o.divider&&!o.disabled),i=[],n;if(t.length){if(this._value!=null){let o=this._findClosestOptionIndex(this._value,e);o>=0&&(e[o].value.time===this._value?i=[e[o].value]:n=o)}else if(typeof this._startTime=="number"){let o=this._findClosestOptionIndex(this._startTime,e);o>=0&&o<e.length&&(n=o)}}let l={id:`forge-time-picker-${this._identifier}`,selectedValues:i,syncWidth:!0,activeStartIndex:n,popupClasses:this._popupClasses,popupStatic:!0,type:"standard",options:t,selectCallback:o=>this._onSelect(o),closeCallback:()=>this._closeDropdown(!0),activeChangeCallback:o=>this._adapter.setActiveDescendant(o),targetWidthCallback:()=>this._adapter.getTargetElementWidth(this._popupTarget)};this._adapter.attachDropdown(l),this._adapter.emitHostEvent(s.events.OPEN,void 0,!1)}_closeDropdown(t=!1){this._open=!1,this._adapter.removeHostAttribute(s.attributes.OPEN),this._adapter.detachDropdown(),t&&this._adapter.emitHostEvent(s.events.CLOSE,!0,!1)}_findClosestOptionIndex(t,e){let i=e.reduce((n,l)=>Math.abs((l.value.time||0)-t)<Math.abs((n.value.time||0)-t)?l:n);return e.indexOf(i)}_formatInputValue(t=!0){let e=this._adapter.getInputValue();if(this._allowInvalidTime&&!this._masked&&e&&!this._value)return;let i=this._formatValue(this._value);e!==i&&this._adapter.setInputValue(i,t)}_generateTimeOptions(){let t=this._min!=null?Math.max(v(this._min),0):0,e=this._max!=null?Math.min(v(this._max),s.numbers.MAX_DAY_MINUTES):s.numbers.MAX_DAY_MINUTES,i=this._step,n=[],l=[];if(this._showHourOptions){for(let d=t;d<=e&&d!==s.numbers.MAX_DAY_MINUTES;d+=i){let _=I(d),_t=this._restrictedTimes.includes(_),ht=m(_,this._use24HourTime,!1)||"",bt={time:_};n.push({label:ht,value:bt,disabled:_t})}let o=n.findIndex(d=>d.value.time/1e3/60>=720);o>=0&&o<n.length-1&&n.splice(o,0,{label:"",value:null,divider:!0})}if(this._showNow){let o={time:null,metadata:"now"};l.push({label:"Now",value:o})}if(Array.isArray(this._customOptions)&&this._customOptions.length){let o=this._customOptions.map(d=>{let _={time:null,metadata:d.value,isCustom:!0,customCallback:d.toMilliseconds};return{label:d.label,value:_}});l=[...l,...o]}return l.length&&(n.length&&n.splice(0,0,{label:"",value:null,divider:!0}),l.forEach((o,d)=>n.splice(d,0,o))),n}_convertTimeStringToMillis(t,e,i){return(!t||!this._isValidTimeFormat(t))&&(t=""),C(t,e,i)}_formatValue(t){return!this._masked&&typeof this._formatCallback=="function"?this._formatCallback.call(null,t,this._use24HourTime,this._allowSeconds):m(this._value,this._use24HourTime,this._allowSeconds)||""}_warnInvalidFormat(t){console.warn(`The specified value "${t}" does not conform to the required format. The format is "HH:mm", "HH:mm:ss" where HH is 00-23, mm is 00-59, and ss is 00-59.`)}get open(){return this._open}set open(t){this._open!==t&&this._isInitialized&&(this._open=t,this._open?this._openDropdown():this._closeDropdown())}get masked(){return this._masked}set masked(t){this._masked!==t&&(this._masked=t,this._isInitialized&&(this._masked?(this._adapter.removeInputListener("input",this._inputListener),this._applyMask()):(this._adapter.destroyMask(),this._formatInputValue(),this._adapter.addInputListener("input",this._inputListener))))}get showMaskFormat(){return this._showMaskFormat}set showMaskFormat(t){this._showMaskFormat!==t&&(this._showMaskFormat=t,this._isInitialized&&this._applyMask())}get allowSeconds(){return this._allowSeconds}set allowSeconds(t){this._allowSeconds!==t&&(this._allowSeconds=!!t,this._applyAllowSeconds(),this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(s.attributes.ALLOW_SECONDS,`${!!t}`))}get use24HourTime(){return this._use24HourTime}set use24HourTime(t){this._use24HourTime!==t&&(this._use24HourTime=!!t,this._isInitialized&&(this._adapter.destroyMask(),this._formatInputValue(),this._applyMask()),this._adapter.setHostAttribute(s.attributes.USE_24_HOUR_TIME,`${!!t}`))}get allowInvalidTime(){return this._allowInvalidTime}set allowInvalidTime(t){this._allowInvalidTime!==t&&(this._allowInvalidTime=!!t,this._adapter.setHostAttribute(s.attributes.ALLOW_INVALID_TIME,`${!!t}`))}get value(){return m(this._value,!0,this._allowSeconds)}set value(t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}let e=this._validateMillis(this._convertTimeStringToMillis(t,!0,!0));this._setValue(e),this._isInitialized&&this._applyValue(this._value)}get min(){return m(this._min,!0,this._allowSeconds)}set min(t){if(this._min!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._min=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get max(){return m(this._max,!0,this._allowSeconds)}set max(t){if(this._max!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._max=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get restrictedTimes(){return this._restrictedTimes.map(t=>m(t,!0,this._allowSeconds)).filter(t=>typeof t=="string")}set restrictedTimes(t){Array.isArray(t)||(t=[]),this._restrictedTimes=t.filter(e=>typeof e=="string").map(e=>this._convertTimeStringToMillis(e,!0,!0)).filter(e=>typeof e=="number")}get startTime(){return m(this._startTime,!0,this._allowSeconds)}set startTime(t){if(this._startTime!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._startTime=this._convertTimeStringToMillis(t,!0,this._allowSeconds)}}get step(){return this._step}set step(t){this._step=t}get allowInput(){return this._allowInput}set allowInput(t){this._allowInput!==t&&(this._allowInput=t,this._isInitialized&&(this._applyAllowInput(),this._applyMask()))}get popupTarget(){return this._popupTarget}set popupTarget(t){this._popupTarget!==t&&(this._popupTarget=t)}get showNow(){return this._showNow}set showNow(t){this._showNow!==t&&(this._showNow=t)}get showHourOptions(){return this._showHourOptions}set showHourOptions(t){this._showHourOptions!==t&&(this._showHourOptions=t)}get customOptions(){return this._customOptions}set customOptions(t){this._customOptions=Array.isArray(t)?t:[]}set validationCallback(t){this._validationCallback=t,this._isInitialized&&this._applyMask()}set parseCallback(t){this._parseCallback=t}set formatCallback(t){this._formatCallback=t}set coercionCallback(t){this._coercionCallback=t}set prepareMaskCallback(t){this._prepareMaskCallback=t,this._isInitialized&&this._applyMask()}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=!!t,this._isInitialized&&this._applyDisabled(),this._adapter.toggleHostAttribute(s.attributes.DISABLED,this._disabled))}get popupClasses(){return Array.isArray(this._popupClasses)?[...this._popupClasses]:this._popupClasses}set popupClasses(t){Array.isArray(t)?this._popupClasses=[...t]:this._popupClasses=[t]}get allowDropdown(){return this._allowDropdown}set allowDropdown(t){this._allowDropdown!==t&&(this._allowDropdown=t,this._isInitialized&&this._applyAllowDropdown())}};var Tt="<template><slot></slot></template>",kt=":host{display:block}:host([hidden]){display:none}",r=class extends W{constructor(){super();Z.define([rt,K]),H(this,Tt,kt),this._foundation=new T(new g(this))}static get observedAttributes(){return[s.attributes.VALUE,s.attributes.OPEN,s.attributes.ALLOW_SECONDS,s.attributes.MASKED,s.attributes.SHOW_MASK_FORMAT,s.attributes.USE_24_HOUR_TIME,s.attributes.ALLOW_INVALID_TIME,s.attributes.MIN,s.attributes.MAX,s.attributes.START_TIME,s.attributes.STEP,s.attributes.ALLOW_INPUT,s.attributes.SHOW_NOW,s.attributes.SHOW_HOUR_OPTIONS,s.attributes.DISABLED,s.attributes.POPUP_CLASSES,s.attributes.ALLOW_DROPDOWN]}connectedCallback(){this.querySelector(s.selectors.INPUT)?this._foundation.initialize():A(this,s.selectors.INPUT).then(()=>this._foundation.initialize())}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(e,i,n){switch(e){case s.attributes.VALUE:this.value=n;break;case s.attributes.OPEN:this.open=c(n);break;case s.attributes.ALLOW_SECONDS:this.allowSeconds=c(n);break;case s.attributes.MASKED:this.masked=c(n);break;case s.attributes.SHOW_MASK_FORMAT:this.showMaskFormat=c(n);break;case s.attributes.USE_24_HOUR_TIME:this.use24HourTime=c(n);break;case s.attributes.ALLOW_INVALID_TIME:this.allowInvalidTime=c(n);break;case s.attributes.SHOW_NOW:this.showNow=c(n);break;case s.attributes.SHOW_HOUR_OPTIONS:this.showHourOptions=c(n);break;case s.attributes.MIN:this.min=n;break;case s.attributes.MAX:this.max=n;break;case s.attributes.START_TIME:this.startTime=n;break;case s.attributes.STEP:this.step=L(n);break;case s.attributes.ALLOW_INPUT:this.allowInput=c(n);break;case s.attributes.DISABLED:this.disabled=c(n);break;case s.attributes.POPUP_CLASSES:this.popupClasses=n;break;case s.attributes.ALLOW_DROPDOWN:this.allowDropdown=c(n);break}}};p([u()],r.prototype,"value",2),p([u()],r.prototype,"open",2),p([u()],r.prototype,"allowSeconds",2),p([u()],r.prototype,"masked",2),p([u()],r.prototype,"showMaskFormat",2),p([u()],r.prototype,"use24HourTime",2),p([u()],r.prototype,"allowInvalidTime",2),p([u()],r.prototype,"min",2),p([u()],r.prototype,"max",2),p([u()],r.prototype,"restrictedTimes",2),p([u()],r.prototype,"startTime",2),p([u()],r.prototype,"step",2),p([u()],r.prototype,"allowInput",2),p([u()],r.prototype,"showNow",2),p([u()],r.prototype,"showHourOptions",2),p([u()],r.prototype,"customOptions",2),p([u()],r.prototype,"validationCallback",2),p([u()],r.prototype,"parseCallback",2),p([u()],r.prototype,"formatCallback",2),p([u()],r.prototype,"coercionCallback",2),p([u()],r.prototype,"prepareMaskCallback",2),p([u()],r.prototype,"disabled",2),p([u()],r.prototype,"popupClasses",2),p([u()],r.prototype,"allowDropdown",2),p([u()],r.prototype,"popupTarget",2),r=p([R({name:s.elementName,dependencies:[et,tt,ot,w,it,w,at]})],r);var ct=class extends ${constructor(e){super(e)}_build(){let e=document.createElement(s.elementName);return this._attachTextField(e),e}get inputElement(){return this._textFieldDelegate.inputElement}get textFieldElement(){return this._textFieldDelegate.element}get value(){return this._element.value}set value(e){this._element.value=e}get disabled(){return this._element.disabled}set disabled(e){this._element.disabled=e}get invalid(){return this._textFieldDelegate.invalid||!1}set invalid(e){this._textFieldDelegate.invalid=e}onChange(e){this._element.addEventListener(s.events.CHANGE,i=>{var n;return e((n=i.detail)!=null?n:"")})}onInput(e){this._element.masked?this._element.addEventListener(s.events.INPUT,i=>{var n;return e((n=i.detail)!=null?n:"")}):this._textFieldDelegate.inputElement.addEventListener("input",i=>e(i.target.value))}onFocus(e){this._textFieldDelegate.inputElement.addEventListener("focus",i=>e(i))}onBlur(e){this._textFieldDelegate.inputElement.addEventListener("blur",i=>e(i))}_attachTextField(e){var n,l,o,d;let i={props:k({},(l=(n=this._config.options)==null?void 0:n.textFieldDelegateConfig)==null?void 0:l.props),options:k({},(d=(o=this._config.options)==null?void 0:o.textFieldDelegateConfig)==null?void 0:d.options)};this._textFieldDelegate=new nt(i),e.appendChild(this._textFieldDelegate.element)}};function xe(){N(r)}export{s as a,g as b,C as c,m as d,pt as e,ut as f,v as g,M as h,It as i,dt as j,I as k,O as l,mt as m,D as n,Rt as o,T as p,r as q,ct as r,xe as s};
7
+ //# sourceMappingURL=chunk.JAEVBPHT.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2022 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a as I}from"./chunk.DGOV5RDW.js";import{a as P}from"./chunk.NGIBMR3Q.js";import{c as H}from"./chunk.7NXPOEXV.js";import{a as p,d as w}from"./chunk.QJPH24V4.js";import{a as L}from"./chunk.BOENNFXE.js";import{a as O}from"./chunk.A23NSEWA.js";import{a as n}from"./chunk.B3IJU6XJ.js";import{a as M,b as S}from"./chunk.BSZ2LBJX.js";import{a as A}from"./chunk.3E5QKMHL.js";import{a as D,e as x,g as m}from"./chunk.HN4PXH3D.js";import{i as C,r as T,s as y,t as k}from"./chunk.R4NDFXVA.js";import{b,c as f,d as E,k as c}from"./chunk.G76HB2FK.js";import{a as _,f as s}from"./chunk.MCIQXNKY.js";var l=`${S}dialog`,B={ANIMATING:"forge-dialog--animating",OPEN:"forge-dialog--open",ACTION_BUTTON:"forge-dialog__action__button",BUTTON_TEXT:"forge-button__text",SCROLLABLE:"forge-dialog--scrollable",FULLSCREEN:"forge-dialog--fullscreen",MOVEABLE:"forge-dialog--moveable"},v={BACKDROP_CLOSE:"backdrop-close",ESCAPE_CLOSE:"escape-close",FULLSCREEN:"fullscreen",POSITION_TYPE:"position-type",POSITION_X:"position-x",POSITION_Y:"position-y",MOVEABLE:"moveable",MOVE_TARGET:"move-target",OPEN:"forge-dialog-open",INITIAL_FOCUS:"forge-dialog-focus",DFEAULT_MOVE_TARGET:"forge-dialog-move-target"},R={CONTAINER:".forge-dialog",SURFACE:".forge-dialog__surface",BACKDROP:p.elementName,INITIAL_FOCUS:`[${v.INITIAL_FOCUS}]`,DFEAULT_MOVE_TARGET:`[${v.DFEAULT_MOVE_TARGET}]`,CONTENT:".forge-dialog__body"},z={BEFORE_CLOSE:`${l}-before-close`,OPEN:`${l}-open`,CLOSE:`${l}-close`,READY:`${l}-ready`,MOVE_START:`${l}-move-start`,MOVED:`${l}-move`,MOVE_END:`${l}-move-end`},K={ANIMATION_DURATION:150,BACKDROP_MAX_OPACITY:.3},i={elementName:l,classes:B,selectors:R,attributes:v,events:z,numbers:K};var g=class{constructor(e){this._adapter=e;this._open=!1;this._backdropClose=!0;this._escapeClose=!0;this._fullscreen=!1;this._positionType="absolute";this._positionX=null;this._positionY=null;this._moveable=!1;this._moveTarget=i.selectors.DFEAULT_MOVE_TARGET;this._isAnimating=!1;this._isMoving=!1;this._attachedDocumentKeydownHandler=!1;this._attachedBackdropClickHandler=!1;this._transitionEndHandler=t=>this._onTransitionEnd(),this._documentKeydownHandler=t=>this._onDocumentKeydown(t),this._backdropClickHandler=t=>this._onBackdropClick(t),this._moveTargetMouseDownHandler=t=>this._onMoveTargetMouseDown(t),this._moveTargetMouseMoveHandler=t=>this._onMoveTargetMouseMove(t),this._moveTargetMouseUpHandler=t=>this._onMoveTargetMouseUp(t)}initialize(){this._adapter.initializeAccessibility(),this._open&&this._moveable&&(this._adapter.setMoveable(this._moveable),this._initMoveTarget())}destroy(){this._open&&(this._removeDragHandlers(),this._adapter.deregisterTransitionEndHandler(this._transitionEndHandler),this._attachedDocumentKeydownHandler&&this._adapter.removeDocumentListener("keydown",this._documentKeydownHandler),this._attachedBackdropClickHandler&&this._adapter.deregisterBackdropClickHandler(this._backdropClickHandler))}async _applyOpen(e){if(e){if(typeof this._openCallback=="function"&&!await this._executeOpenCallback())return;this._open=e,this._openDialog()}else{if(typeof this._closeCallback=="function"&&!await this._executeCloseCallback())return;this._open=e,this._closeDialog()}this._adapter.toggleHostAttribute(i.attributes.OPEN,this._open)}async _executeOpenCallback(){try{return await Promise.resolve(this._openCallback())!==!1}catch(e){return!1}}async _executeCloseCallback(){try{return await Promise.resolve(this._closeCallback())!==!1}catch(e){return!1}}initializeMoveTarget(){this._moveTarget||(this._moveTarget=i.selectors.DFEAULT_MOVE_TARGET),this._initMoveTarget()}resetPosition(){this._adapter.setSurfacePosition(this._positionX,this._positionY,this._positionType)}_normalizePositionValue(e){return E(e)?`${e}px`:f(e)?e:null}_openDialog(){this._adapter.attach(),this._fullscreen||(this._moveable&&this._adapter.setMoveable(this._moveable),(this._positionX!=null||this._positionY!=null)&&this._adapter.setSurfacePosition(this._positionX,this._positionY,this._positionType)),this._adapter.setBodyAttribute(i.attributes.OPEN,"true"),this._adapter.registerTransitionEndHandler(this._transitionEndHandler),this._setDocumentKeydownListener(this._escapeClose),this._setBackdropClickListener(this._backdropClose),this._adapter.setAnimating(!0),this._isAnimating=!0,window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._adapter.setVisibility(!0),this._adapter.emitHostEvent(i.events.OPEN),this._adapter.trySetInitialFocus(),this._adapter.isScrollable()&&this._adapter.addRootClass(i.classes.SCROLLABLE)})}),setTimeout(()=>{window.requestAnimationFrame(()=>{this._open&&this._isAnimating&&this._onTransitionEnd()})},i.numbers.ANIMATION_DURATION)}_closeDialog(){this._moveTarget&&this._removeDragHandlers(),this._adapter.deregisterTransitionEndHandler(this._transitionEndHandler),this._attachedDocumentKeydownHandler&&this._adapter.removeDocumentListener("keydown",this._documentKeydownHandler),this._attachedBackdropClickHandler&&this._adapter.deregisterBackdropClickHandler(this._backdropClickHandler),this._isAnimating=!1,this._adapter.setAnimating(!0),this._adapter.setVisibility(!1),setTimeout(()=>{this._adapter.emitHostEvent(i.events.CLOSE),this._adapter.detach(),this._adapter.getOpenDialogs(i.elementName).length||this._adapter.removeBodyAttribute(i.attributes.OPEN)},i.numbers.ANIMATION_DURATION)}_onTransitionEnd(){!this._isAnimating||(this._adapter.deregisterTransitionEndHandler(this._transitionEndHandler),this._adapter.setAnimating(!1),this._adapter.emitHostEvent(i.events.READY),this._adapter.tryLayoutChildren(),this._moveable&&this._initMoveTarget(),this._isAnimating=!1)}_initMoveTarget(){!this._fullscreen&&this._moveable&&this._moveTarget&&this._adapter.setMoveTarget(this._moveTarget)&&this._adapter.setMoveTargetHandler("mousedown",this._moveTargetMouseDownHandler)}_removeDragHandlers(){this._adapter.removeDragTargetHandler("mousedown",this._moveTargetMouseDownHandler),this._adapter.removeDocumentListener("mousemove",this._moveTargetMouseMoveHandler),this._adapter.removeDocumentListener("mouseup",this._moveTargetMouseUpHandler)}_onMoveTargetMouseDown(e){e.preventDefault(),this._adapter.captureActiveElement();let t=this._adapter.getSurfaceBounds();this._moveContext={top:e.clientY-t.top,left:e.clientX-t.left,height:t.height,width:t.width},this._adapter.setDocumentListener("mousemove",this._moveTargetMouseMoveHandler),this._adapter.setDocumentListener("mouseup",this._moveTargetMouseUpHandler)}_onMoveTargetMouseMove(e){e.preventDefault();let t=this._calculateOffsetPosition(e.pageX,e.pageY,this._moveContext);if(!this._isMoving&&(this._isMoving=!0,!this._adapter.emitHostEvent(i.events.MOVE_START,t,!0,!0)))return;let o=this._clampPosition(t,this._moveContext);if((!this._lastPosition||o.x!==this._lastPosition.x||o.y!==this._lastPosition.y)&&this._adapter.emitHostEvent(i.events.MOVED,o,!0,!0)){this._lastPosition=_({},o);let d=this._normalizePositionValue(o.x),N=this._normalizePositionValue(o.y);this._adapter.setSurfacePosition(d,N,"absolute")}}_onMoveTargetMouseUp(e){this._isMoving&&this._adapter.emitHostEvent(i.events.MOVE_END),this._moveComplete()}_moveComplete(){this._adapter.tryRestoreActiveElement(),this._adapter.removeDocumentListener("mousemove",this._moveTargetMouseMoveHandler),this._adapter.removeDocumentListener("mouseup",this._moveTargetMouseUpHandler),this._lastPosition=void 0,this._moveContext=void 0,this._isMoving=!1}_onDocumentKeydown(e){e.stopPropagation(),e.key&&(e.key==="Escape"||e.key==="Esc")&&this._tryClose()}_onBackdropClick(e){e.stopPropagation(),this._tryClose()}async _tryClose(){if(!!this._adapter.emitHostEvent(i.events.BEFORE_CLOSE,void 0,void 0,!0)){if(!this._beforeCloseCallback){this.open=!1;return}try{if(await Promise.resolve(this._beforeCloseCallback())!==!1){this.open=!1;return}}catch(t){return}}}_setBackdropClickListener(e){!this._open||(e&&!this._attachedBackdropClickHandler?(this._adapter.registerBackdropClickHandler(this._backdropClickHandler),this._attachedBackdropClickHandler=!0):!e&&this._attachedBackdropClickHandler&&(this._adapter.deregisterBackdropClickHandler(this._backdropClickHandler),this._attachedBackdropClickHandler=!1))}_setDocumentKeydownListener(e){!this._open||(e&&!this._attachedDocumentKeydownHandler?(this._adapter.setDocumentListener("keydown",this._documentKeydownHandler),this._attachedDocumentKeydownHandler=!0):!e&&this._attachedDocumentKeydownHandler&&(this._adapter.removeDocumentListener("keydown",this._documentKeydownHandler),this._attachedDocumentKeydownHandler=!1))}_calculateOffsetPosition(e,t,o){return{x:e-((o==null?void 0:o.left)||0),y:t-((o==null?void 0:o.top)||0)}}_clampPosition({x:e,y:t},o){let a=0,d=0;return o&&(a=o.width,d=o.height),e<=0?e=0:e+a>=window.innerWidth&&(e=window.innerWidth-a),t<=0?t=0:t+d>=window.innerHeight&&(t=window.innerHeight-d),{x:e,y:t}}set backdropClose(e){e=Boolean(e),this._backdropClose!==e&&(this._backdropClose=e,this._setBackdropClickListener(this._backdropClose),b(this._backdropClose)?this._adapter.setHostAttribute(i.attributes.BACKDROP_CLOSE,this._backdropClose.toString()):this._adapter.removeHostAttribute(i.attributes.BACKDROP_CLOSE))}get backdropClose(){return this._backdropClose}set escapeClose(e){e=Boolean(e),this._escapeClose!==e&&(this._escapeClose=e,this._setDocumentKeydownListener(this._escapeClose),b(this._escapeClose)?this._adapter.setHostAttribute(i.attributes.ESCAPE_CLOSE,this._escapeClose.toString()):this._adapter.removeHostAttribute(i.attributes.ESCAPE_CLOSE))}get escapeClose(){return this._escapeClose}get open(){return this._open}set open(e){this._open!==e&&(e=Boolean(e),e!==this._open&&this._applyOpen(e))}get fullscreen(){return this._fullscreen}set fullscreen(e){this._fullscreen!==e&&(this._fullscreen=e,this._adapter.setFullscreen(this._fullscreen))}get openCallback(){return this._openCallback}set openCallback(e){this._openCallback=e}get closeCallback(){return this._closeCallback}set closeCallback(e){this._closeCallback=e}get beforeCloseCallback(){return this._beforeCloseCallback}set beforeCloseCallback(e){this._beforeCloseCallback=e}get positionType(){return this._positionType}set positionType(e){this._positionType!==e&&(this._positionType=e,this._open&&this._adapter.setSurfacePosition(this._positionX,this._positionY,this._positionType))}get positionX(){return this._positionX}set positionX(e){this._positionX!==e&&(this._positionX=this._normalizePositionValue(e),this._open&&this._adapter.setSurfacePosition(this._positionX,this._positionY,this._positionType))}get positionY(){return this._positionY}set positionY(e){this._positionY!==e&&(this._positionY=this._normalizePositionValue(e),this._open&&this._adapter.setSurfacePosition(this._positionX,this._positionY,this._positionType))}get moveable(){return this._moveable}set moveable(e){this._moveable!==e&&(this._moveable=e,this._open&&(this._adapter.setMoveable(this._moveable),this._moveable?this._initMoveTarget():(this._removeDragHandlers(),this._isMoving=!1)))}get moveTarget(){return this._moveTarget}set moveTarget(e){this._moveTarget=e}};var u=class extends O{constructor(t){super(t);this._backdropElement=m(t,i.selectors.BACKDROP),this._containerElement=m(t,i.selectors.CONTAINER),this._surfaceElement=m(t,i.selectors.SURFACE)}initializeAccessibility(){this._component.hasAttribute("role")||this._component.setAttribute("role","dialog"),this._component.setAttribute("aria-modal","true")}setAnimating(t){t?this._containerElement.classList.add(i.classes.ANIMATING):this._containerElement.classList.remove(i.classes.ANIMATING)}setVisibility(t){t?this._containerElement.classList.add(i.classes.OPEN):this._containerElement.classList.remove(i.classes.OPEN)}attach(){document.body.appendChild(this._component)}detach(){this._activeElement&&(this._activeElement=void 0),C(this._component)}registerTransitionEndHandler(t){this._surfaceElement.addEventListener("transitionend",t)}deregisterTransitionEndHandler(t){this._surfaceElement.removeEventListener("transitionend",t)}setDocumentListener(t,o){document.addEventListener(t,o)}removeDocumentListener(t,o){document.removeEventListener(t,o)}registerBackdropClickHandler(t){this._backdropElement.addEventListener(p.events.BACKDROP_CLICK,t)}deregisterBackdropClickHandler(t){this._backdropElement.removeEventListener(p.events.BACKDROP_CLICK,t)}getOpenDialogs(t){return document.querySelectorAll(t)}setBodyAttribute(t,o){document.body.setAttribute(t,o)}removeBodyAttribute(t){document.body.removeAttribute(t)}trySetInitialFocus(){let t=T(this._component,i.selectors.INITIAL_FOCUS);t&&t.length&&t[t.length-1].focus()}isScrollable(){let t=this._component.querySelector(i.selectors.CONTENT);return t?t.scrollHeight>t.offsetHeight:!1}addRootClass(t){this._component.classList.add(t)}setFullscreen(t){t?this._containerElement.classList.add(i.classes.FULLSCREEN):this._containerElement.classList.remove(i.classes.FULLSCREEN)}setMoveable(t){k(this._containerElement,t,i.classes.MOVEABLE)}tryLayoutChildren(){let t=[L.elementName,I.elementName,H.elementName,P.elementName];Array.from(this._component.querySelectorAll(t.join(","))).filter(a=>typeof a.layout=="function").forEach(a=>a.layout())}setMoveTarget(t){return t?(this._moveTargetElement=this._component.querySelector(t),!!this._moveTargetElement):!1}setMoveTargetHandler(t,o){this._moveTargetElement&&this._moveTargetElement.addEventListener(t,o)}removeDragTargetHandler(t,o){this._moveTargetElement&&this._moveTargetElement.removeEventListener(t,o)}getSurfaceBounds(){return this._surfaceElement.getBoundingClientRect()}setSurfacePosition(t,o,a){this._surfaceElement.style.position=a==="absolute"?a:"relative",o!=null?this._surfaceElement.style.top=o:this._surfaceElement.style.removeProperty("top"),t!=null?this._surfaceElement.style.left=t:this._surfaceElement.style.removeProperty("left")}captureActiveElement(){this._activeElement=y(),this._activeElement&&this._activeElement.blur()}tryRestoreActiveElement(){this._activeElement&&(this._activeElement.isConnected&&this._activeElement.focus(),this._activeElement=void 0)}};var F='<template><div class="forge-dialog" part="root"><forge-backdrop part="scrim"></forge-backdrop><div class="forge-dialog__surface" part="surface"><slot></slot></div></div></template>',U='.forge-dialog{position:fixed;top:0;bottom:0;left:0;right:0;z-index:8;z-index:var(--forge-z-index-dialog,8);-webkit-box-align:center;align-items:center;-webkit-box-align:var(--forge-dialog-align-items,center);align-items:var(--forge-dialog-align-items,center);top:0;top:var(--forge-dialog-top,0);padding:24px;padding:var(--forge-dialog-padding,24px);display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;visibility:hidden}@media (max-width:599px){.forge-dialog{padding:0}}.forge-dialog--moveable:not(.forge-dialog--fullscreen) ::slotted([forge-dialog-move-target]){cursor:move}.forge-dialog--animating{visibility:visible}.forge-dialog--animating .forge-dialog--open .forge-dialog__surface{-webkit-transition:-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 150ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1)}.forge-dialog--animating .forge-dialog__surface{-webkit-transition:-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 150ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1)}.forge-dialog--scrollable .forge-dialog__footer,.forge-dialog--scrollable .forge-dialog__title{border-color:rgba(0,0,0,.12)}.forge-dialog--open{visibility:visible!important}.forge-dialog--open .forge-dialog__surface{-webkit-transform:scale(1);transform:scale(1);opacity:1}.forge-dialog__surface{-webkit-box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background-color:#fff;background-color:var(--mdc-theme-surface,#fff);width:auto;width:var(--forge-dialog-width,auto);height:auto;height:var(--forge-dialog-height,auto);min-width:280px;min-width:var(--forge-dialog-min-width,280px);max-width:100%;max-width:var(--forge-dialog-max-width,100%);max-height:100%;max-height:var(--forge-dialog-max-height,100%);border-radius:4px;border-radius:var(--forge-dialog-border-radius,var(--mdc-shape-medium,4px));display:-webkit-inline-box;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transform:scale(.8);transform:scale(.8);opacity:0;overflow:hidden;z-index:inherit}.forge-dialog__header{margin:0;padding:0 24px 9px;border-bottom:1px solid transparent}.forge-dialog__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:1.25rem;font-size:var(--forge-typography-title-font-size, 1.25rem);line-height:2rem;line-height:var(--forge-typography-title-line-height, 2rem);font-weight:400;font-weight:var(--forge-typography-title-font-weight,400);letter-spacing:.0125em;letter-spacing:var(--forge-typography-title-letter-spacing, .0125em);text-decoration:inherit;-webkit-text-decoration:var(--forge-typography-title-text-decoration,inherit);text-decoration:var(--forge-typography-title-text-decoration,inherit);text-transform:inherit;text-transform:var(--forge-typography-title-text-transform,inherit);-webkit-box-sizing:border-box;box-sizing:border-box;margin:0}.forge-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.forge-dialog__body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-body1-font-size, 1rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight,400);letter-spacing:.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, .03125em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body1-text-decoration,inherit);text-decoration:var(--mdc-typography-body1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform,inherit);padding-top:20px;padding:0 24px 24px;overflow:auto}.forge-dialog__body--scrollable{max-height:195px;border-top:1px solid rgba(0,0,0,.1);border-bottom:1px solid rgba(0,0,0,.1);overflow-x:auto;overflow-y:scroll;-webkit-overflow-scrolling:touch}.forge-dialog__footer{display:-webkit-box;display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;-webkit-box-align:center;align-items:center;-webkit-box-pack:end;justify-content:flex-end;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid transparent}.forge-dialog--fullscreen{padding:0}.forge-dialog--fullscreen .forge-dialog__surface{height:100%;width:100%;min-width:auto;max-width:100%;border-radius:0}:host{display:block}:host([hidden]){display:none}',r=class extends A{constructor(){super();x(this,F,U),this._foundation=new g(new u(this))}static get observedAttributes(){return[i.attributes.BACKDROP_CLOSE,i.attributes.ESCAPE_CLOSE,i.attributes.OPEN,i.attributes.FULLSCREEN,i.attributes.POSITION_TYPE,i.attributes.POSITION_X,i.attributes.POSITION_Y,i.attributes.MOVEABLE,i.attributes.MOVE_TARGET]}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(t,o,a){switch(t){case i.attributes.BACKDROP_CLOSE:this.backdropClose=a==="true";break;case i.attributes.ESCAPE_CLOSE:this.escapeClose=a==="true";break;case i.attributes.OPEN:this.open=c(a);break;case i.attributes.FULLSCREEN:this.fullscreen=c(a);break;case i.attributes.POSITION_TYPE:this.positionType=a;break;case i.attributes.POSITION_X:this.positionX=a;break;case i.attributes.POSITION_Y:this.positionY=a;break;case i.attributes.MOVEABLE:this.moveable=c(a);break;case i.attributes.MOVE_TARGET:this.moveTarget=a;break}}initializeMoveTarget(){this._foundation.initializeMoveTarget()}resetPosition(){this._foundation.resetPosition()}};s([n()],r.prototype,"backdropClose",2),s([n()],r.prototype,"escapeClose",2),s([n()],r.prototype,"open",2),s([n()],r.prototype,"fullscreen",2),s([n()],r.prototype,"openCallback",2),s([n()],r.prototype,"closeCallback",2),s([n()],r.prototype,"beforeCloseCallback",2),s([n()],r.prototype,"positionType",2),s([n()],r.prototype,"positionX",2),s([n()],r.prototype,"positionY",2),s([n()],r.prototype,"moveable",2),s([n()],r.prototype,"moveTarget",2),r=s([M({name:i.elementName,dependencies:[w]})],r);function xe(){D(r)}export{i as a,g as b,u as c,r as d,xe as e};
7
- //# sourceMappingURL=chunk.YSE5EMB3.js.map
6
+ import{a as I}from"./chunk.HUWXZ4ZN.js";import{a as P}from"./chunk.NGIBMR3Q.js";import{c as H}from"./chunk.7NXPOEXV.js";import{a as p,d as w}from"./chunk.QJPH24V4.js";import{a as L}from"./chunk.BOENNFXE.js";import{a as O}from"./chunk.A23NSEWA.js";import{a as n}from"./chunk.B3IJU6XJ.js";import{a as M,b as S}from"./chunk.BSZ2LBJX.js";import{a as A}from"./chunk.3E5QKMHL.js";import{a as D,e as x,g as m}from"./chunk.HN4PXH3D.js";import{i as C,r as T,s as y,t as k}from"./chunk.R4NDFXVA.js";import{b,c as f,d as E,k as c}from"./chunk.G76HB2FK.js";import{a as _,f as s}from"./chunk.MCIQXNKY.js";var l=`${S}dialog`,B={ANIMATING:"forge-dialog--animating",OPEN:"forge-dialog--open",ACTION_BUTTON:"forge-dialog__action__button",BUTTON_TEXT:"forge-button__text",SCROLLABLE:"forge-dialog--scrollable",FULLSCREEN:"forge-dialog--fullscreen",MOVEABLE:"forge-dialog--moveable"},v={BACKDROP_CLOSE:"backdrop-close",ESCAPE_CLOSE:"escape-close",FULLSCREEN:"fullscreen",POSITION_TYPE:"position-type",POSITION_X:"position-x",POSITION_Y:"position-y",MOVEABLE:"moveable",MOVE_TARGET:"move-target",OPEN:"forge-dialog-open",INITIAL_FOCUS:"forge-dialog-focus",DFEAULT_MOVE_TARGET:"forge-dialog-move-target"},R={CONTAINER:".forge-dialog",SURFACE:".forge-dialog__surface",BACKDROP:p.elementName,INITIAL_FOCUS:`[${v.INITIAL_FOCUS}]`,DFEAULT_MOVE_TARGET:`[${v.DFEAULT_MOVE_TARGET}]`,CONTENT:".forge-dialog__body"},z={BEFORE_CLOSE:`${l}-before-close`,OPEN:`${l}-open`,CLOSE:`${l}-close`,READY:`${l}-ready`,MOVE_START:`${l}-move-start`,MOVED:`${l}-move`,MOVE_END:`${l}-move-end`},K={ANIMATION_DURATION:150,BACKDROP_MAX_OPACITY:.3},i={elementName:l,classes:B,selectors:R,attributes:v,events:z,numbers:K};var g=class{constructor(e){this._adapter=e;this._open=!1;this._backdropClose=!0;this._escapeClose=!0;this._fullscreen=!1;this._positionType="absolute";this._positionX=null;this._positionY=null;this._moveable=!1;this._moveTarget=i.selectors.DFEAULT_MOVE_TARGET;this._isAnimating=!1;this._isMoving=!1;this._attachedDocumentKeydownHandler=!1;this._attachedBackdropClickHandler=!1;this._transitionEndHandler=t=>this._onTransitionEnd(),this._documentKeydownHandler=t=>this._onDocumentKeydown(t),this._backdropClickHandler=t=>this._onBackdropClick(t),this._moveTargetMouseDownHandler=t=>this._onMoveTargetMouseDown(t),this._moveTargetMouseMoveHandler=t=>this._onMoveTargetMouseMove(t),this._moveTargetMouseUpHandler=t=>this._onMoveTargetMouseUp(t)}initialize(){this._adapter.initializeAccessibility(),this._open&&this._moveable&&(this._adapter.setMoveable(this._moveable),this._initMoveTarget())}destroy(){this._open&&(this._removeDragHandlers(),this._adapter.deregisterTransitionEndHandler(this._transitionEndHandler),this._attachedDocumentKeydownHandler&&this._adapter.removeDocumentListener("keydown",this._documentKeydownHandler),this._attachedBackdropClickHandler&&this._adapter.deregisterBackdropClickHandler(this._backdropClickHandler))}async _applyOpen(e){if(e){if(typeof this._openCallback=="function"&&!await this._executeOpenCallback())return;this._open=e,this._openDialog()}else{if(typeof this._closeCallback=="function"&&!await this._executeCloseCallback())return;this._open=e,this._closeDialog()}this._adapter.toggleHostAttribute(i.attributes.OPEN,this._open)}async _executeOpenCallback(){try{return await Promise.resolve(this._openCallback())!==!1}catch(e){return!1}}async _executeCloseCallback(){try{return await Promise.resolve(this._closeCallback())!==!1}catch(e){return!1}}initializeMoveTarget(){this._moveTarget||(this._moveTarget=i.selectors.DFEAULT_MOVE_TARGET),this._initMoveTarget()}resetPosition(){this._adapter.setSurfacePosition(this._positionX,this._positionY,this._positionType)}_normalizePositionValue(e){return E(e)?`${e}px`:f(e)?e:null}_openDialog(){this._adapter.attach(),this._fullscreen||(this._moveable&&this._adapter.setMoveable(this._moveable),(this._positionX!=null||this._positionY!=null)&&this._adapter.setSurfacePosition(this._positionX,this._positionY,this._positionType)),this._adapter.setBodyAttribute(i.attributes.OPEN,"true"),this._adapter.registerTransitionEndHandler(this._transitionEndHandler),this._setDocumentKeydownListener(this._escapeClose),this._setBackdropClickListener(this._backdropClose),this._adapter.setAnimating(!0),this._isAnimating=!0,window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._adapter.setVisibility(!0),this._adapter.emitHostEvent(i.events.OPEN),this._adapter.trySetInitialFocus(),this._adapter.isScrollable()&&this._adapter.addRootClass(i.classes.SCROLLABLE)})}),setTimeout(()=>{window.requestAnimationFrame(()=>{this._open&&this._isAnimating&&this._onTransitionEnd()})},i.numbers.ANIMATION_DURATION)}_closeDialog(){this._moveTarget&&this._removeDragHandlers(),this._adapter.deregisterTransitionEndHandler(this._transitionEndHandler),this._attachedDocumentKeydownHandler&&this._adapter.removeDocumentListener("keydown",this._documentKeydownHandler),this._attachedBackdropClickHandler&&this._adapter.deregisterBackdropClickHandler(this._backdropClickHandler),this._isAnimating=!1,this._adapter.setAnimating(!0),this._adapter.setVisibility(!1),setTimeout(()=>{this._adapter.emitHostEvent(i.events.CLOSE),this._adapter.detach(),this._adapter.getOpenDialogs(i.elementName).length||this._adapter.removeBodyAttribute(i.attributes.OPEN)},i.numbers.ANIMATION_DURATION)}_onTransitionEnd(){!this._isAnimating||(this._adapter.deregisterTransitionEndHandler(this._transitionEndHandler),this._adapter.setAnimating(!1),this._adapter.emitHostEvent(i.events.READY),this._adapter.tryLayoutChildren(),this._moveable&&this._initMoveTarget(),this._isAnimating=!1)}_initMoveTarget(){!this._fullscreen&&this._moveable&&this._moveTarget&&this._adapter.setMoveTarget(this._moveTarget)&&this._adapter.setMoveTargetHandler("mousedown",this._moveTargetMouseDownHandler)}_removeDragHandlers(){this._adapter.removeDragTargetHandler("mousedown",this._moveTargetMouseDownHandler),this._adapter.removeDocumentListener("mousemove",this._moveTargetMouseMoveHandler),this._adapter.removeDocumentListener("mouseup",this._moveTargetMouseUpHandler)}_onMoveTargetMouseDown(e){e.preventDefault(),this._adapter.captureActiveElement();let t=this._adapter.getSurfaceBounds();this._moveContext={top:e.clientY-t.top,left:e.clientX-t.left,height:t.height,width:t.width},this._adapter.setDocumentListener("mousemove",this._moveTargetMouseMoveHandler),this._adapter.setDocumentListener("mouseup",this._moveTargetMouseUpHandler)}_onMoveTargetMouseMove(e){e.preventDefault();let t=this._calculateOffsetPosition(e.pageX,e.pageY,this._moveContext);if(!this._isMoving&&(this._isMoving=!0,!this._adapter.emitHostEvent(i.events.MOVE_START,t,!0,!0)))return;let o=this._clampPosition(t,this._moveContext);if((!this._lastPosition||o.x!==this._lastPosition.x||o.y!==this._lastPosition.y)&&this._adapter.emitHostEvent(i.events.MOVED,o,!0,!0)){this._lastPosition=_({},o);let d=this._normalizePositionValue(o.x),N=this._normalizePositionValue(o.y);this._adapter.setSurfacePosition(d,N,"absolute")}}_onMoveTargetMouseUp(e){this._isMoving&&this._adapter.emitHostEvent(i.events.MOVE_END),this._moveComplete()}_moveComplete(){this._adapter.tryRestoreActiveElement(),this._adapter.removeDocumentListener("mousemove",this._moveTargetMouseMoveHandler),this._adapter.removeDocumentListener("mouseup",this._moveTargetMouseUpHandler),this._lastPosition=void 0,this._moveContext=void 0,this._isMoving=!1}_onDocumentKeydown(e){e.stopPropagation(),e.key&&(e.key==="Escape"||e.key==="Esc")&&this._tryClose()}_onBackdropClick(e){e.stopPropagation(),this._tryClose()}async _tryClose(){if(!!this._adapter.emitHostEvent(i.events.BEFORE_CLOSE,void 0,void 0,!0)){if(!this._beforeCloseCallback){this.open=!1;return}try{if(await Promise.resolve(this._beforeCloseCallback())!==!1){this.open=!1;return}}catch(t){return}}}_setBackdropClickListener(e){!this._open||(e&&!this._attachedBackdropClickHandler?(this._adapter.registerBackdropClickHandler(this._backdropClickHandler),this._attachedBackdropClickHandler=!0):!e&&this._attachedBackdropClickHandler&&(this._adapter.deregisterBackdropClickHandler(this._backdropClickHandler),this._attachedBackdropClickHandler=!1))}_setDocumentKeydownListener(e){!this._open||(e&&!this._attachedDocumentKeydownHandler?(this._adapter.setDocumentListener("keydown",this._documentKeydownHandler),this._attachedDocumentKeydownHandler=!0):!e&&this._attachedDocumentKeydownHandler&&(this._adapter.removeDocumentListener("keydown",this._documentKeydownHandler),this._attachedDocumentKeydownHandler=!1))}_calculateOffsetPosition(e,t,o){return{x:e-((o==null?void 0:o.left)||0),y:t-((o==null?void 0:o.top)||0)}}_clampPosition({x:e,y:t},o){let a=0,d=0;return o&&(a=o.width,d=o.height),e<=0?e=0:e+a>=window.innerWidth&&(e=window.innerWidth-a),t<=0?t=0:t+d>=window.innerHeight&&(t=window.innerHeight-d),{x:e,y:t}}set backdropClose(e){e=Boolean(e),this._backdropClose!==e&&(this._backdropClose=e,this._setBackdropClickListener(this._backdropClose),b(this._backdropClose)?this._adapter.setHostAttribute(i.attributes.BACKDROP_CLOSE,this._backdropClose.toString()):this._adapter.removeHostAttribute(i.attributes.BACKDROP_CLOSE))}get backdropClose(){return this._backdropClose}set escapeClose(e){e=Boolean(e),this._escapeClose!==e&&(this._escapeClose=e,this._setDocumentKeydownListener(this._escapeClose),b(this._escapeClose)?this._adapter.setHostAttribute(i.attributes.ESCAPE_CLOSE,this._escapeClose.toString()):this._adapter.removeHostAttribute(i.attributes.ESCAPE_CLOSE))}get escapeClose(){return this._escapeClose}get open(){return this._open}set open(e){this._open!==e&&(e=Boolean(e),e!==this._open&&this._applyOpen(e))}get fullscreen(){return this._fullscreen}set fullscreen(e){this._fullscreen!==e&&(this._fullscreen=e,this._adapter.setFullscreen(this._fullscreen))}get openCallback(){return this._openCallback}set openCallback(e){this._openCallback=e}get closeCallback(){return this._closeCallback}set closeCallback(e){this._closeCallback=e}get beforeCloseCallback(){return this._beforeCloseCallback}set beforeCloseCallback(e){this._beforeCloseCallback=e}get positionType(){return this._positionType}set positionType(e){this._positionType!==e&&(this._positionType=e,this._open&&this._adapter.setSurfacePosition(this._positionX,this._positionY,this._positionType))}get positionX(){return this._positionX}set positionX(e){this._positionX!==e&&(this._positionX=this._normalizePositionValue(e),this._open&&this._adapter.setSurfacePosition(this._positionX,this._positionY,this._positionType))}get positionY(){return this._positionY}set positionY(e){this._positionY!==e&&(this._positionY=this._normalizePositionValue(e),this._open&&this._adapter.setSurfacePosition(this._positionX,this._positionY,this._positionType))}get moveable(){return this._moveable}set moveable(e){this._moveable!==e&&(this._moveable=e,this._open&&(this._adapter.setMoveable(this._moveable),this._moveable?this._initMoveTarget():(this._removeDragHandlers(),this._isMoving=!1)))}get moveTarget(){return this._moveTarget}set moveTarget(e){this._moveTarget=e}};var u=class extends O{constructor(t){super(t);this._backdropElement=m(t,i.selectors.BACKDROP),this._containerElement=m(t,i.selectors.CONTAINER),this._surfaceElement=m(t,i.selectors.SURFACE)}initializeAccessibility(){this._component.hasAttribute("role")||this._component.setAttribute("role","dialog"),this._component.setAttribute("aria-modal","true")}setAnimating(t){t?this._containerElement.classList.add(i.classes.ANIMATING):this._containerElement.classList.remove(i.classes.ANIMATING)}setVisibility(t){t?this._containerElement.classList.add(i.classes.OPEN):this._containerElement.classList.remove(i.classes.OPEN)}attach(){document.body.appendChild(this._component)}detach(){this._activeElement&&(this._activeElement=void 0),C(this._component)}registerTransitionEndHandler(t){this._surfaceElement.addEventListener("transitionend",t)}deregisterTransitionEndHandler(t){this._surfaceElement.removeEventListener("transitionend",t)}setDocumentListener(t,o){document.addEventListener(t,o)}removeDocumentListener(t,o){document.removeEventListener(t,o)}registerBackdropClickHandler(t){this._backdropElement.addEventListener(p.events.BACKDROP_CLICK,t)}deregisterBackdropClickHandler(t){this._backdropElement.removeEventListener(p.events.BACKDROP_CLICK,t)}getOpenDialogs(t){return document.querySelectorAll(t)}setBodyAttribute(t,o){document.body.setAttribute(t,o)}removeBodyAttribute(t){document.body.removeAttribute(t)}trySetInitialFocus(){let t=T(this._component,i.selectors.INITIAL_FOCUS);t&&t.length&&t[t.length-1].focus()}isScrollable(){let t=this._component.querySelector(i.selectors.CONTENT);return t?t.scrollHeight>t.offsetHeight:!1}addRootClass(t){this._component.classList.add(t)}setFullscreen(t){t?this._containerElement.classList.add(i.classes.FULLSCREEN):this._containerElement.classList.remove(i.classes.FULLSCREEN)}setMoveable(t){k(this._containerElement,t,i.classes.MOVEABLE)}tryLayoutChildren(){let t=[L.elementName,I.elementName,H.elementName,P.elementName];Array.from(this._component.querySelectorAll(t.join(","))).filter(a=>typeof a.layout=="function").forEach(a=>a.layout())}setMoveTarget(t){return t?(this._moveTargetElement=this._component.querySelector(t),!!this._moveTargetElement):!1}setMoveTargetHandler(t,o){this._moveTargetElement&&this._moveTargetElement.addEventListener(t,o)}removeDragTargetHandler(t,o){this._moveTargetElement&&this._moveTargetElement.removeEventListener(t,o)}getSurfaceBounds(){return this._surfaceElement.getBoundingClientRect()}setSurfacePosition(t,o,a){this._surfaceElement.style.position=a==="absolute"?a:"relative",o!=null?this._surfaceElement.style.top=o:this._surfaceElement.style.removeProperty("top"),t!=null?this._surfaceElement.style.left=t:this._surfaceElement.style.removeProperty("left")}captureActiveElement(){this._activeElement=y(),this._activeElement&&this._activeElement.blur()}tryRestoreActiveElement(){this._activeElement&&(this._activeElement.isConnected&&this._activeElement.focus(),this._activeElement=void 0)}};var F='<template><div class="forge-dialog" part="root"><forge-backdrop part="scrim"></forge-backdrop><div class="forge-dialog__surface" part="surface"><slot></slot></div></div></template>',U='.forge-dialog{position:fixed;top:0;bottom:0;left:0;right:0;z-index:8;z-index:var(--forge-z-index-dialog,8);-webkit-box-align:center;align-items:center;-webkit-box-align:var(--forge-dialog-align-items,center);align-items:var(--forge-dialog-align-items,center);top:0;top:var(--forge-dialog-top,0);padding:24px;padding:var(--forge-dialog-padding,24px);display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;visibility:hidden}@media (max-width:599px){.forge-dialog{padding:0}}.forge-dialog--moveable:not(.forge-dialog--fullscreen) ::slotted([forge-dialog-move-target]){cursor:move}.forge-dialog--animating{visibility:visible}.forge-dialog--animating .forge-dialog--open .forge-dialog__surface{-webkit-transition:-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 150ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1)}.forge-dialog--animating .forge-dialog__surface{-webkit-transition:-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 150ms 0s cubic-bezier(0, 0, .2, 1);transition:transform 150ms 0s cubic-bezier(0, 0, .2, 1),-webkit-transform 150ms 0s cubic-bezier(0, 0, .2, 1)}.forge-dialog--scrollable .forge-dialog__footer,.forge-dialog--scrollable .forge-dialog__title{border-color:rgba(0,0,0,.12)}.forge-dialog--open{visibility:visible!important}.forge-dialog--open .forge-dialog__surface{-webkit-transform:scale(1);transform:scale(1);opacity:1}.forge-dialog__surface{-webkit-box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background-color:#fff;background-color:var(--mdc-theme-surface,#fff);width:auto;width:var(--forge-dialog-width,auto);height:auto;height:var(--forge-dialog-height,auto);min-width:280px;min-width:var(--forge-dialog-min-width,280px);max-width:100%;max-width:var(--forge-dialog-max-width,100%);max-height:100%;max-height:var(--forge-dialog-max-height,100%);border-radius:4px;border-radius:var(--forge-dialog-border-radius,var(--mdc-shape-medium,4px));display:-webkit-inline-box;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transform:scale(.8);transform:scale(.8);opacity:0;overflow:hidden;z-index:inherit}.forge-dialog__header{margin:0;padding:0 24px 9px;border-bottom:1px solid transparent}.forge-dialog__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:1.25rem;font-size:var(--forge-typography-title-font-size, 1.25rem);line-height:2rem;line-height:var(--forge-typography-title-line-height, 2rem);font-weight:400;font-weight:var(--forge-typography-title-font-weight,400);letter-spacing:.0125em;letter-spacing:var(--forge-typography-title-letter-spacing, .0125em);text-decoration:inherit;-webkit-text-decoration:var(--forge-typography-title-text-decoration,inherit);text-decoration:var(--forge-typography-title-text-decoration,inherit);text-transform:inherit;text-transform:var(--forge-typography-title-text-transform,inherit);-webkit-box-sizing:border-box;box-sizing:border-box;margin:0}.forge-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.forge-dialog__body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-body1-font-size, 1rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight,400);letter-spacing:.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, .03125em);text-decoration:inherit;-webkit-text-decoration:var(--mdc-typography-body1-text-decoration,inherit);text-decoration:var(--mdc-typography-body1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform,inherit);padding-top:20px;padding:0 24px 24px;overflow:auto}.forge-dialog__body--scrollable{max-height:195px;border-top:1px solid rgba(0,0,0,.1);border-bottom:1px solid rgba(0,0,0,.1);overflow-x:auto;overflow-y:scroll;-webkit-overflow-scrolling:touch}.forge-dialog__footer{display:-webkit-box;display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;-webkit-box-align:center;align-items:center;-webkit-box-pack:end;justify-content:flex-end;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid transparent}.forge-dialog--fullscreen{padding:0}.forge-dialog--fullscreen .forge-dialog__surface{height:100%;width:100%;min-width:auto;max-width:100%;border-radius:0}:host{display:block}:host([hidden]){display:none}',r=class extends A{constructor(){super();x(this,F,U),this._foundation=new g(new u(this))}static get observedAttributes(){return[i.attributes.BACKDROP_CLOSE,i.attributes.ESCAPE_CLOSE,i.attributes.OPEN,i.attributes.FULLSCREEN,i.attributes.POSITION_TYPE,i.attributes.POSITION_X,i.attributes.POSITION_Y,i.attributes.MOVEABLE,i.attributes.MOVE_TARGET]}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.destroy()}attributeChangedCallback(t,o,a){switch(t){case i.attributes.BACKDROP_CLOSE:this.backdropClose=a==="true";break;case i.attributes.ESCAPE_CLOSE:this.escapeClose=a==="true";break;case i.attributes.OPEN:this.open=c(a);break;case i.attributes.FULLSCREEN:this.fullscreen=c(a);break;case i.attributes.POSITION_TYPE:this.positionType=a;break;case i.attributes.POSITION_X:this.positionX=a;break;case i.attributes.POSITION_Y:this.positionY=a;break;case i.attributes.MOVEABLE:this.moveable=c(a);break;case i.attributes.MOVE_TARGET:this.moveTarget=a;break}}initializeMoveTarget(){this._foundation.initializeMoveTarget()}resetPosition(){this._foundation.resetPosition()}};s([n()],r.prototype,"backdropClose",2),s([n()],r.prototype,"escapeClose",2),s([n()],r.prototype,"open",2),s([n()],r.prototype,"fullscreen",2),s([n()],r.prototype,"openCallback",2),s([n()],r.prototype,"closeCallback",2),s([n()],r.prototype,"beforeCloseCallback",2),s([n()],r.prototype,"positionType",2),s([n()],r.prototype,"positionX",2),s([n()],r.prototype,"positionY",2),s([n()],r.prototype,"moveable",2),s([n()],r.prototype,"moveTarget",2),r=s([M({name:i.elementName,dependencies:[w]})],r);function xe(){D(r)}export{i as a,g as b,u as c,r as d,xe as e};
7
+ //# sourceMappingURL=chunk.NNGE722W.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2022 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a,b,c,d,e}from"../chunks/chunk.YSE5EMB3.js";import"../chunks/chunk.DGOV5RDW.js";import"../chunks/chunk.NGIBMR3Q.js";import"../chunks/chunk.7NXPOEXV.js";import"../chunks/chunk.QJPH24V4.js";import"../chunks/chunk.BOENNFXE.js";import"../chunks/chunk.QXLPBYMX.js";import"../chunks/chunk.PYG4YVBA.js";import"../chunks/chunk.QZHEP4X2.js";import"../chunks/chunk.YAJT3P6V.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.24D46RLZ.js";import"../chunks/chunk.7ZS4N2FT.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.KYCC3C3M.js";import"../chunks/chunk.GVQVA7P3.js";import"../chunks/chunk.MIYZJUXH.js";import"../chunks/chunk.A23NSEWA.js";import"../chunks/chunk.B3IJU6XJ.js";import"../chunks/chunk.BSZ2LBJX.js";import"../chunks/chunk.3E5QKMHL.js";import"../chunks/chunk.HN4PXH3D.js";import"../chunks/chunk.R4NDFXVA.js";import"../chunks/chunk.G76HB2FK.js";import"../chunks/chunk.MCIQXNKY.js";export{a as DIALOG_CONSTANTS,c as DialogAdapter,d as DialogComponent,b as DialogFoundation,e as defineDialogComponent};
6
+ import{a,b,c,d,e}from"../chunks/chunk.NNGE722W.js";import"../chunks/chunk.HUWXZ4ZN.js";import"../chunks/chunk.NGIBMR3Q.js";import"../chunks/chunk.7NXPOEXV.js";import"../chunks/chunk.QJPH24V4.js";import"../chunks/chunk.BOENNFXE.js";import"../chunks/chunk.QXLPBYMX.js";import"../chunks/chunk.PYG4YVBA.js";import"../chunks/chunk.QZHEP4X2.js";import"../chunks/chunk.YAJT3P6V.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.24D46RLZ.js";import"../chunks/chunk.7ZS4N2FT.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.KYCC3C3M.js";import"../chunks/chunk.GVQVA7P3.js";import"../chunks/chunk.MIYZJUXH.js";import"../chunks/chunk.A23NSEWA.js";import"../chunks/chunk.B3IJU6XJ.js";import"../chunks/chunk.BSZ2LBJX.js";import"../chunks/chunk.3E5QKMHL.js";import"../chunks/chunk.HN4PXH3D.js";import"../chunks/chunk.R4NDFXVA.js";import"../chunks/chunk.G76HB2FK.js";import"../chunks/chunk.MCIQXNKY.js";export{a as DIALOG_CONSTANTS,c as DialogAdapter,d as DialogComponent,b as DialogFoundation,e as defineDialogComponent};
7
7
  //# sourceMappingURL=index.js.map
package/dist/esm/index.js CHANGED
@@ -3,5 +3,5 @@
3
3
  * Copyright 2022 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a as uj}from"./chunks/chunk.BXUXNGBH.js";import"./chunks/chunk.WINL2C7Q.js";import{a as kj,b as lj,c as mj,d as nj,e as oj,f as rj,g as tj}from"./chunks/chunk.33Q5FK2H.js";import{a as pj,b as qj,c as sj}from"./chunks/chunk.DIYJJHWP.js";import"./chunks/chunk.TLCGGWBO.js";import{a as Hi,b as Ii,c as Ji,d as Ki,e as Li,f as Mi,g as Ni}from"./chunks/chunk.YWKKZLZ2.js";import{a as Gi}from"./chunks/chunk.O3G6ZLJN.js";import{a as Ci,b as Di,c as Ei,d as Fi}from"./chunks/chunk.OOBE3XRM.js";import{a as Oi,b as Pi,c as Qi,d as Ri,e as Si,f as Ti,g as Ui,h as Vi,i as Wi,j as Xi,k as Yi,l as Zi,m as _i,n as $i,o as aj,p as bj,q as cj,r as dj,s as ej}from"./chunks/chunk.3LZEQWAL.js";import{a as fj,b as gj,c as hj,d as ij,e as jj}from"./chunks/chunk.2SAHWDGJ.js";import"./chunks/chunk.X2RP4QW3.js";import{a as fi,b as gi,c as hi,d as ii}from"./chunks/chunk.TAX3RMGW.js";import{a as Jh,b as Kh,c as Lh,d as Mh,e as Nh,f as Oh,g as Ph,h as Qh,i as Rh,j as Sh,k as Th,l as Uh,m as Vh,n as Wh,o as Xh,p as Yh,q as Zh,r as _h,s as $h,t as ai,u as bi,v as ci,w as di,x as ei}from"./chunks/chunk.YE26Y4CT.js";import"./chunks/chunk.E37HEAJ5.js";import"./chunks/chunk.E4NCI7MS.js";import{a as oi,b as pi,c as qi,d as ri,e as si}from"./chunks/chunk.TLHI6K2R.js";import{a as ji,b as ki,c as li,d as mi,e as ni}from"./chunks/chunk.SJSLC6XF.js";import{a as ti,b as ui,c as vi,d as wi,e as xi,f as yi,g as zi,h as Ai,i as Bi}from"./chunks/chunk.TR64DV3G.js";import{a as Fh,b as Gh,c as Hh,d as Ih}from"./chunks/chunk.T7ZJDAXV.js";import"./chunks/chunk.AJJILT3A.js";import{a as uh,b as vh,c as wh,d as xh,e as yh}from"./chunks/chunk.444GNOS4.js";import{a as zh,b as Ah,c as Bh,d as Ch,e as Dh,f as Eh}from"./chunks/chunk.Q6L7T6OJ.js";import{a as Kg,b as Lg,c as Mg}from"./chunks/chunk.VMWS5OOZ.js";import{a as Ng,b as Og,c as Pg,d as sh,e as th}from"./chunks/chunk.6RSXJERY.js";import{a as rh}from"./chunks/chunk.OOICAEAX.js";import{a as Wg,b as Xg,c as gh,d as kh,e as lh}from"./chunks/chunk.HAOBWYPY.js";import{a as mh,b as nh,c as oh,d as ph,e as qh}from"./chunks/chunk.2NMN5N7V.js";import{a as hh,b as ih,c as jh}from"./chunks/chunk.BCUBTR5O.js";import"./chunks/chunk.MNFGVNDI.js";import{a as Qg,b as Rg,c as Sg,d as Tg,e as Ug,f as Vg,g as Yg,h as fh}from"./chunks/chunk.6ZCECXMM.js";import{a as ch,b as dh,c as eh}from"./chunks/chunk.B5ABD4CZ.js";import{a as Zg,b as _g,c as $g,d as ah,e as bh}from"./chunks/chunk.EJ4ASQET.js";import"./chunks/chunk.WF2MFLG4.js";import{a as Bf,b as Cf,c as Df}from"./chunks/chunk.5WMEFHVN.js";import{a as Ef,b as Ff,c as Gf,d as Hf,e as If,f as Jf,g as Kf,h as Lf,i as Mf,j as Nf,k as Of}from"./chunks/chunk.5XQVZQ4U.js";import{a as Pf,b as Qf,c as Rf,d as Sf,e as Tf,f as Uf}from"./chunks/chunk.X77WVI2H.js";import"./chunks/chunk.QQDDGRY6.js";import{a as ff,b as gf,c as hf}from"./chunks/chunk.SHT6BCLY.js";import{a as of,b as pf,c as qf}from"./chunks/chunk.6APYGKNX.js";import{a as jf,b as kf,c as lf,d as mf,e as nf}from"./chunks/chunk.URBXDOF7.js";import{a as bf,b as cf,c as df,d as ef}from"./chunks/chunk.IJIKFXUT.js";import{a as rf,b as sf,c as tf,d as uf,e as vf,f as wf}from"./chunks/chunk.V7P3QPNM.js";import{a as xf,b as yf,c as zf,d as Af}from"./chunks/chunk.XXA6KNXT.js";import{a as Se,b as Te,c as Ue,d as Ve,e as We,f as Xe}from"./chunks/chunk.4T5TGQFG.js";import{a as Le,b as Me,c as Ne,d as Oe,e as Pe,f as Qe,g as Re}from"./chunks/chunk.5D6UB4DL.js";import"./chunks/chunk.RKKJB3EE.js";import{a as Ye,b as Ze,c as _e,d as $e,e as af}from"./chunks/chunk.YSE5EMB3.js";import{a as Ee,b as Fe,c as Ge,d as He,e as Ie,f as Je,g as Ke}from"./chunks/chunk.LLHA3SQR.js";import"./chunks/chunk.MHEJZJT3.js";import{a as _c}from"./chunks/chunk.K43ZNKT2.js";import{A as se,B as te,C as ue,D as ve,E as we,F as xe,G as Ae,a as Ud,b as Vd,c as Wd,d as Xd,e as Yd,f as Zd,g as _d,h as $d,i as ae,j as be,k as ce,l as de,m as ee,n as fe,o as ge,p as he,q as ie,r as je,s as ke,t as le,u as me,v as ne,w as oe,x as pe,y as qe,z as re}from"./chunks/chunk.JB2N65SR.js";import{A as Qd,B as Rd,C as Sd,D as Td,E as ye,F as ze,a as pd,b as qd,c as rd,d as sd,e as td,f as ud,g as vd,h as wd,i as xd,j as yd,k as Ad,l as Bd,m as Cd,n as Dd,o as Ed,p as Fd,q as Gd,r as Hd,s as Id,t as Jd,u as Kd,v as Ld,w as Md,x as Nd,y as Od,z as Pd}from"./chunks/chunk.J3NHIF6W.js";import{a as ed,b as fd,c as gd,d as hd,e as id,f as jd,g as kd,h as ld,i as md,j as nd,k as od}from"./chunks/chunk.DGDT4UQT.js";import{a as zd}from"./chunks/chunk.E43TT4RI.js";import{a as Be,b as Ce,c as De}from"./chunks/chunk.MGTNCCW3.js";import{a as eb,b as fb,c as wb,d as xb,e as yb,f as zb,g as Ab,h as Bb,i as Cb,j as Db,k as Eb}from"./chunks/chunk.NTFA7FCB.js";import{a as $a,b as ab,c as bb,d as db}from"./chunks/chunk.DML4YNQF.js";import{a as _a,b as cb}from"./chunks/chunk.IMK2LFWR.js";import{a as qa,b as ra,c as sa}from"./chunks/chunk.YHHIPP2F.js";import{a as gb,b as hb,c as ib,d as tb,e as ub,f as vb}from"./chunks/chunk.5PQTSZ7G.js";import"./chunks/chunk.RPPBBBYG.js";import"./chunks/chunk.AWCBH5KW.js";import{a as Wa,b as Xa,c as Ya,d as Za}from"./chunks/chunk.F5I55MXD.js";import"./chunks/chunk.Y6FFG7XO.js";import"./chunks/chunk.CKS5A4YN.js";import{a as pb,b as qb,c as rb,d as sb}from"./chunks/chunk.G77PXLAU.js";import{a as ob}from"./chunks/chunk.WV45FGTW.js";import{a as jb,b as kb,c as lb,d as mb,e as nb}from"./chunks/chunk.Y6MPWPZU.js";import{a as jc,b as kc,c as lc,d as mc,e as nc}from"./chunks/chunk.7O7V3N4A.js";import{a as Dc,b as Ec,c as Fc,d as Gc,e as Hc}from"./chunks/chunk.Z5P6EA5L.js";import{a as zc,b as Ac,c as Bc,d as Cc}from"./chunks/chunk.DGOV5RDW.js";import{a as wc,b as xc,c as yc}from"./chunks/chunk.NGIBMR3Q.js";import{a as oc,b as pc,c as qc,d as rc,e as sc,f as tc,g as uc,h as vc}from"./chunks/chunk.7NXPOEXV.js";import{a as Rc,b as Sc,c as Tc,d as Uc,e as Vc}from"./chunks/chunk.I2YRKTG7.js";import{a as Qb,b as Rb,c as Sb,d as Tb,e as Ub}from"./chunks/chunk.QJPH24V4.js";import{a as $c,b as ad,c as bd,d as cd,e as dd}from"./chunks/chunk.5K5SIZRX.js";import{a as Wc,b as Xc,c as Yc,d as Zc}from"./chunks/chunk.WNOSTPQQ.js";import{a as la,b as ma,c as na,d as oa,e as pa}from"./chunks/chunk.IFZXG3LI.js";import{a as ga,b as ha,c as ia,d as ja,e as ka}from"./chunks/chunk.OG2BI3UW.js";import{a as g,b as h,c as da,d as ea,e as fa}from"./chunks/chunk.P6B3UWJ5.js";import{a as _f,b as $f,c as ag,d as bg,e as cg,f as Jg}from"./chunks/chunk.CV5E5W6I.js";import{a as rg,b as sg,c as tg,d as ug,e as vg}from"./chunks/chunk.G5Q2CUUE.js";import{a as Vf,b as Wf,c as Xf,d as Yf,e as Zf}from"./chunks/chunk.SZL74RTY.js";import"./chunks/chunk.F3W3XMGT.js";import"./chunks/chunk.KGW63HJX.js";import{a as Ta,b as Ua,c as Va}from"./chunks/chunk.54QFNVMG.js";import"./chunks/chunk.FZQCBRPK.js";import{a as Ja,b as Ka,c as La,d as Ma}from"./chunks/chunk.D3DLVPPE.js";import{a as wa,b as xa,c as Fa,d as Ga,e as Ha,f as Ia}from"./chunks/chunk.7JTKKFL4.js";import"./chunks/chunk.AMFXGOSA.js";import"./chunks/chunk.EC6JSIQW.js";import{a as Mc,b as Nc,c as Oc,d as Pc,e as Qc}from"./chunks/chunk.K753A3KI.js";import{a as ta,b as ua,c as va}from"./chunks/chunk.XYBFFTXS.js";import"./chunks/chunk.STS5TIUV.js";import{a as jg,b as kg,c as lg}from"./chunks/chunk.APGFXXJ7.js";import{a as mg,b as ng,c as og,d as pg,e as qg}from"./chunks/chunk.BFNAQQCU.js";import{a as Vb,b as Wb,c as Xb,d as Yb,e as Zb,f as _b}from"./chunks/chunk.MNBJMPJ6.js";import{a as Eg,b as Fg,c as Gg,d as Hg,e as Ig}from"./chunks/chunk.PFD2SVJ4.js";import{a as wg,b as xg,c as yg,d as Cg,e as Dg}from"./chunks/chunk.FPV4XEUK.js";import{a as zg,b as Ag,c as Bg}from"./chunks/chunk.JNOCXQVB.js";import{a as Ib,b as Jb,c as Mb,d as Nb,e as Ob,f as Pb}from"./chunks/chunk.35U4OX7S.js";import{a as Kb,b as Lb}from"./chunks/chunk.SVGEVCXA.js";import{a as Fb,b as Gb,c as Hb}from"./chunks/chunk.2GY2VPJG.js";import{a as Ic,b as Jc,c as Kc,d as Lc}from"./chunks/chunk.OAKTW64X.js";import{a as Na,b as Oa,c as Pa,d as Qa,e as Ra,f as Sa}from"./chunks/chunk.3UMBCR4P.js";import{a as $b,b as ac,c as bc,d as cc}from"./chunks/chunk.BOENNFXE.js";import{a as ya,b as za,c as Aa,d as Ba,e as Ca,f as Da,g as Ea}from"./chunks/chunk.QXLPBYMX.js";import"./chunks/chunk.PYG4YVBA.js";import"./chunks/chunk.QZHEP4X2.js";import{a as dg,b as eg,c as fg,d as gg,e as hg,f as ig}from"./chunks/chunk.4KBQ5AJJ.js";import"./chunks/chunk.LZMYHIO2.js";import{a as ec,b as fc,c as gc,d as hc,e as ic}from"./chunks/chunk.OUEF6VQ6.js";import{a as dc}from"./chunks/chunk.VLTJFKGZ.js";import"./chunks/chunk.D4SNVKDA.js";import"./chunks/chunk.UUX4QJ4D.js";import{a as R,b as S,c as T,d as U,e as V,f as W,g as X,h as Y,i as Z,j as _,k as $,l as aa,m as ba,n as ca}from"./chunks/chunk.YAJT3P6V.js";import"./chunks/chunk.6KTLOA7V.js";import"./chunks/chunk.SKLCDWYQ.js";import{a as j}from"./chunks/chunk.24D46RLZ.js";import{a as K,b as L,c as M,d as N,e as O,f as P,g as Q}from"./chunks/chunk.7ZS4N2FT.js";import"./chunks/chunk.U6FJJGO3.js";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as t,i as u,j as v,k as w,l as x,m as y,n as z,o as A,p as B,q as C,r as D,s as E,t as F,u as G,v as H,w as I,x as J}from"./chunks/chunk.KYCC3C3M.js";import{a as r,b as s}from"./chunks/chunk.GVQVA7P3.js";import{a as i}from"./chunks/chunk.MIYZJUXH.js";import{a as b}from"./chunks/chunk.A23NSEWA.js";import"./chunks/chunk.B3IJU6XJ.js";import{b as c,c as d,d as e,e as f}from"./chunks/chunk.BSZ2LBJX.js";import{a}from"./chunks/chunk.3E5QKMHL.js";import"./chunks/chunk.HN4PXH3D.js";import"./chunks/chunk.R4NDFXVA.js";import"./chunks/chunk.G76HB2FK.js";import"./chunks/chunk.MCIQXNKY.js";export{Ii as ACCEPTABLE_KEYS,ma as ACCORDION_CONSTANTS,$f as APP_BAR_CONSTANTS,tg as APP_BAR_HELP_BUTTON_CONSTANTS,jg as APP_BAR_MENU_BUTTON_CONSTANTS,ng as APP_BAR_NOTIFICATION_BUTTON_CONSTANTS,Eg as APP_BAR_PROFILE_BUTTON_CONSTANTS,dg as APP_BAR_SEARCH_CONSTANTS,eb as AUTOCOMPLETE_CONSTANTS,Ib as AVATAR_CONSTANTS,la as AccordionAdapter,oa as AccordionComponent,na as AccordionFoundation,ag as AppBarAdapter,cg as AppBarComponent,bg as AppBarFoundation,rg as AppBarHelpButtonAdapter,ug as AppBarHelpButtonComponent,sg as AppBarHelpButtonFoundation,kg as AppBarMenuButtonComponent,mg as AppBarNotificationButtonAdapter,pg as AppBarNotificationButtonComponent,og as AppBarNotificationButtonFoundation,Fg as AppBarProfileButtonAdapter,Hg as AppBarProfileButtonComponent,Gg as AppBarProfileButtonFoundation,gg as AppBarSearchAdapter,hg as AppBarSearchComponent,fg as AppBarSearchFoundation,wb as AutocompleteAdapter,Cb as AutocompleteComponent,Db as AutocompleteComponentDelegate,Bb as AutocompleteFoundation,fb as AutocompleteMode,Jb as AvatarAdapter,Nb as AvatarComponent,Ob as AvatarComponentDelegate,Mb as AvatarFoundation,Qb as BACKDROP_CONSTANTS,Vb as BADGE_CONSTANTS,jc as BANNER_CONSTANTS,bf as BASE_DRAWER_CONSTANTS,Qg as BASE_SELECT_CONSTANTS,Dc as BOTTOM_SHEET_CONSTANTS,Rc as BUSY_INDICATOR_CONSTANTS,Ic as BUTTON_CONSTANTS,Wc as BUTTON_TOGGLE_CONSTANTS,$c as BUTTON_TOGGLE_GROUP_CONSTANTS,Rb as BackdropAdapter,Tb as BackdropComponent,Sb as BackdropFoundation,Wb as BadgeAdapter,Yb as BadgeComponent,Zb as BadgeComponentDelegate,Xb as BadgeFoundation,kc as BannerAdapter,mc as BannerComponent,lc as BannerFoundation,b as BaseAdapter,a as BaseComponent,i as BaseComponentDelegate,cf as BaseDrawerAdapter,ef as BaseDrawerComponent,df as BaseDrawerFoundation,fh as BaseSelectAdapter,Yg as BaseSelectComponent,Vg as BaseSelectFoundation,Ec as BottomSheetAdapter,Gc as BottomSheetComponent,Fc as BottomSheetFoundation,Sc as BusyIndicatorAdapter,Uc as BusyIndicatorComponent,Tc as BusyIndicatorFoundation,Jc as ButtonComponent,Kc as ButtonComponentDelegate,Xc as ButtonToggleAdapter,Zc as ButtonToggleComponent,Yc as ButtonToggleFoundation,ad as ButtonToggleGroupAdapter,cd as ButtonToggleGroupComponent,bd as ButtonToggleGroupFoundation,pd as CALENDAR_CONSTANTS,ye as CALENDAR_DROPDOWN_CONSTANTS,ed as CALENDAR_MENU_CONSTANTS,Be as CARD_CONSTANTS,f as CDN_BASE_URL,qc as CHECKBOX_CONSTANTS,kb as CHIP_CONSTANTS,gb as CHIP_FIELD_CONSTANTS,jb as CHIP_SET_CONSTANTS,Mc as CIRCULAR_PROGRESS_CONSTANTS,Fb as COLOR_CONSTANTS,Ee as COLOR_PICKER_CONSTANTS,c as COMPONENT_NAME_PREFIX,ue as CalendarAdapter,we as CalendarComponent,xe as CalendarComponentDelegate,ze as CalendarDropdown,ve as CalendarFoundation,ld as CalendarMenuAdapter,nd as CalendarMenuComponent,md as CalendarMenuFoundation,rd as CalendarMonthFocus,Ce as CardComponent,ui as CellAlign,sc as CheckboxAdapter,tc as CheckboxComponent,uc as CheckboxComponentDelegate,rc as CheckboxFoundation,lb as ChipAdapter,nb as ChipComponent,hb as ChipFieldAdapter,tb as ChipFieldComponent,ub as ChipFieldComponentDelegate,ib as ChipFieldFoundation,mb as ChipFoundation,pb as ChipSetAdapter,rb as ChipSetComponent,qb as ChipSetFoundation,Nc as CircularProgressAdapter,Pc as CircularProgressComponent,Oc as CircularProgressFoundation,He as ColorPickerAdapter,Je as ColorPickerComponent,Ie as ColorPickerFoundation,Ge as ColorPickerValueType,Se as DATE_PICKER_CONSTANTS,Me as DATE_RANGE_PICKER_CONSTANTS,Fe as DEFAULT_COLOR,eg as DEFAULT_COMBINED_OPTIONS,K as DEFAULT_DATE_MASK,Ye as DIALOG_CONSTANTS,qa as DIVIDER_CONSTANTS,ff as DRAWER_CONSTANTS,L as DateInputMask,Te as DatePickerAdapter,Ve as DatePickerComponent,We as DatePickerComponentDelegate,Ue as DatePickerFoundation,Le as DatePickerRange,zd as DateRange,Qe as DateRangeComponentDelegate,Ne as DateRangePickerAdapter,Pe as DateRangePickerComponent,Oe as DateRangePickerFoundation,qd as DayOfWeek,_e as DialogAdapter,$e as DialogComponent,Ze as DialogFoundation,ra as DividerComponent,gf as DrawerComponent,ga as EXPANSION_PANEL_CONSTANTS,ha as ExpansionPanelAdapter,ja as ExpansionPanelComponent,ia as ExpansionPanelFoundation,rf as FILE_PICKER_CONSTANTS,xf as FLOATING_ACTION_BUTTON_CONSTANTS,Xa as FLOATING_LABEL_CONSTANTS,sf as FilePickerAdapter,uf as FilePickerComponent,vf as FilePickerComponentDelegate,tf as FilePickerFoundation,yf as FloatingActionButton,zf as FloatingActionButtonComponentDelegate,Za as FloatingLabel,Wa as FloatingLabelAdapter,Ya as FloatingLabelFoundation,za as ForgeRipple,Aa as ForgeRippleFoundation,j as FormFieldComponentDelegate,$b as ICON_BUTTON_CONSTANTS,e as ICON_CLASS_NAME,R as ICON_CONSTANTS,S as ICON_REGISTRY_KEY,Bf as INLINE_MESSAGE_CONSTANTS,k as ISO_8601_REGEX,l as ISO_TIMEZONE_REGEX,T as IconAdapter,ac as IconButtonComponent,bc as IconButtonComponentDelegate,aa as IconComponent,ba as IconComponentDelegate,$ as IconFoundation,U as IconRegistry,Cf as InlineMessageComponent,Ef as KEYBOARD_SHORTCUT_CONSTANTS,Ji as KEYCODE_MAP,d as KEYSTROKE_DEBOUNCE_THRESHOLD,Gf as KeyboardShortcutAdapter,Nf as KeyboardShortcutComponent,Mf as KeyboardShortcutFoundation,Pf as LABEL_VALUE_CONSTANTS,ta as LINEAR_PROGRESS_CONSTANTS,wa as LIST_CONSTANTS,xa as LIST_ITEM_CONSTANTS,Qf as LabelValueAdapter,Sf as LabelValueComponent,Tf as LabelValueComponentDelegate,Rf as LabelValueFoundation,ua as LinearProgressComponent,Ja as ListAdapter,La as ListComponent,Ka as ListFoundation,Fa as ListItemAdapter,Ha as ListItemComponent,Ga as ListItemFoundation,Vf as MENU_CONSTANTS,of as MINI_DRAWER_CONSTANTS,kf as MODAL_DRAWER_CONSTANTS,Wf as MenuAdapter,Yf as MenuComponent,Xf as MenuFoundation,pf as MiniDrawerComponent,jf as ModalDrawerAdapter,mf as ModalDrawerComponent,lf as ModalDrawerFoundation,g as OPEN_ICON_CONSTANTS,_g as OPTION_CONSTANTS,ch as OPTION_GROUP_CONSTANTS,da as OpenIconAdapter,ea as OpenIconComponent,h as OpenIconFoundation,Zg as OptionAdapter,ah as OptionComponent,$g as OptionFoundation,dh as OptionGroupComponent,xb as OptionType,Kg as PAGE_STATE_CONSTANTS,Ng as PAGINATOR_CONSTANTS,x as PARSEABLE_TIME_FORMAT,Na as POPUP_CONSTANTS,uh as PRODUCT_ICON_CONSTANTS,wg as PROFILE_CARD_CONSTANTS,Lg as PageStateComponent,Pg as PaginatorAdapter,sh as PaginatorComponent,Og as PaginatorFoundation,Pa as PopupAdapter,Oa as PopupAnimationType,Ra as PopupComponent,Qa as PopupFoundation,vh as ProductIconAdapter,xh as ProductIconComponent,wh as ProductIconFoundation,xg as ProfileCardAdapter,Cg as ProfileCardComponent,yg as ProfileCardFoundation,zh as QUANTITY_FIELD_CONSTANTS,Ah as QuantityFieldAdapter,Ch as QuantityFieldComponent,Dh as QuantityFieldComponentDelegate,Bh as QuantityFieldFoundation,wc as RADIO_CONSTANTS,ya as RIPPLE_CONSTANTS,xc as RadioComponent,Ba as RippleAdapter,Da as RippleComponent,Ca as RippleFoundation,hh as SCAFFOLD_CONSTANTS,mh as SELECT_CONSTANTS,Wg as SELECT_DROPDOWN_CONSTANTS,Ta as SKELETON_CONSTANTS,Fh as SLIDER_CONSTANTS,bi as SPLIT_VIEW_CONSTANTS,Jh as SPLIT_VIEW_PANEL_CONSTANTS,oi as STEPPER_CONSTANTS,ji as STEP_CONSTANTS,zc as SWITCH_CONSTANTS,ih as ScaffoldComponent,nh as SelectAdapter,ph as SelectComponent,rh as SelectComponentDelegate,gh as SelectDropdownAdapter,kh as SelectDropdownComponent,Xg as SelectDropdownFoundation,oh as SelectFoundation,Rg as SelectOptionType,Ua as SkeletonComponent,Gh as SliderComponent,Hh as SliderComponentDelegate,vi as SortDirection,fi as SplitViewAdapter,Kh as SplitViewAnimatingLayer,hi as SplitViewComponent,gi as SplitViewFoundation,ci as SplitViewPanelAdapter,di as SplitViewPanelComponent,ai as SplitViewPanelFoundation,ki as StepAdapter,mi as StepComponent,li as StepFoundation,pi as StepperAdapter,ri as StepperComponent,qi as StepperFoundation,Ac as SwitchComponent,Bc as SwitchComponentDelegate,ti as TABLE_CONSTANTS,Hi as TAB_BAR_CONSTANTS,Ci as TAB_CONSTANTS,_a as TEXT_FIELD_CONSTANTS,Oi as TIME_PICKER_CONSTANTS,fj as TOAST_CONSTANTS,zg as TOOLBAR_CONSTANTS,dc as TOOLTIP_CONSTANTS,M as TWELVE_HOUR_TIME_MASK,N as TWELVE_HOUR_TIME_MASK_WITH_SECONDS,w as TWELVE_HOUR_TIME_REGEX,O as TWENTY_FOUR_HOUR_TIME_MASK,P as TWENTY_FOUR_HOUR_TIME_MASK_WITH_SECONDS,v as TWENTY_FOUR_HOUR_TIME_REGEX,Di as TabAdapter,Li as TabBarAdapter,Mi as TabBarComponent,Ki as TabBarFoundation,Fi as TabComponent,Ei as TabFoundation,xi as TableAdapter,Ai as TableComponent,wi as TableFilterType,zi as TableFoundation,yi as TableRow,$a as TextFieldAdapter,bb as TextFieldComponent,cb as TextFieldComponentDelegate,ab as TextFieldFoundation,Q as TimeInputMask,Pi as TimePickerAdapter,cj as TimePickerComponent,dj as TimePickerComponentDelegate,bj as TimePickerFoundation,gj as ToastAdapter,ij as ToastComponent,hj as ToastFoundation,Ag as ToolbarComponent,fc as TooltipAdapter,hc as TooltipComponent,gc as TooltipFoundation,pj as VIEW_CONSTANTS,kj as VIEW_SWITCHER_CONSTANTS,lj as ViewAnimationDirection,qj as ViewComponent,nj as ViewSwitcherAdapter,mj as ViewSwitcherAnimationType,rj as ViewSwitcherComponent,oj as ViewSwitcherFoundation,J as assignMatchingProperties,ec as attachTooltip,X as awaitIconDefinition,Th as clampSize,Nh as clearState,se as coerceDateFromValue,t as createSvgFromString,pa as defineAccordionComponent,Jg as defineAppBarComponent,vg as defineAppBarHelpButtonComponent,lg as defineAppBarMenuButtonComponent,qg as defineAppBarNotificationButtonComponent,Ig as defineAppBarProfileButtonComponent,ig as defineAppBarSearchComponent,Eb as defineAutocompleteComponent,Pb as defineAvatarComponent,Ub as defineBackdropComponent,_b as defineBadgeComponent,nc as defineBannerComponent,Hc as defineBottomSheetComponent,Vc as defineBusyIndicatorComponent,Lc as defineButtonComponent,_c as defineButtonToggleComponent,dd as defineButtonToggleGroupComponent,Ae as defineCalendarComponent,od as defineCalendarMenuComponent,De as defineCardComponent,vc as defineCheckboxComponent,ob as defineChipComponent,vb as defineChipFieldComponent,sb as defineChipSetComponent,Qc as defineCircularProgressComponent,Ke as defineColorPickerComponent,uj as defineComponents,Xe as defineDatePickerComponent,Re as defineDateRangePickerComponent,af as defineDialogComponent,sa as defineDividerComponent,hf as defineDrawerComponent,ka as defineExpansionPanelComponent,wf as defineFilePickerComponent,Af as defineFloatingActionButtonComponent,cc as defineIconButtonComponent,ca as defineIconComponent,Df as defineInlineMessageComponent,Of as defineKeyboardShortcutComponent,Uf as defineLabelValueComponent,va as defineLinearProgressComponent,Ma as defineListComponent,Ia as defineListItemComponent,Zf as defineMenuComponent,qf as defineMiniDrawerComponent,nf as defineModalDrawerComponent,fa as defineOpenIconComponent,bh as defineOptionComponent,eh as defineOptionGroupComponent,Mg as definePageStateComponent,th as definePaginatorComponent,Sa as definePopupComponent,yh as defineProductIconComponent,Dg as defineProfileCardComponent,Eh as defineQuantityFieldComponent,yc as defineRadioComponent,Ea as defineRippleComponent,jh as defineScaffoldComponent,qh as defineSelectComponent,lh as defineSelectDropdownComponent,Va as defineSkeletonComponent,Ih as defineSliderComponent,ii as defineSplitViewComponent,ei as defineSplitViewPanelComponent,ni as defineStepComponent,si as defineStepperComponent,Cc as defineSwitchComponent,Ni as defineTabBarComponent,Gi as defineTabComponent,Bi as defineTableComponent,db as defineTextFieldComponent,ej as defineTimePickerComponent,jj as defineToastComponent,Bg as defineToolbarComponent,ic as defineTooltipComponent,sj as defineViewComponent,tj as defineViewSwitcherComponent,Hf as elementAcceptsTextInput,_f as elementName,s as eventIncludesArrowKey,Rd as eventIncludesDate,Sd as eventIncludesElement,Z as fetchIconContent,Lf as fixKey,n as formatDate,Nd as getAccessibleHeader,me as getAllYearOptions,W as getCachedIcon,Pd as getClearButton,Hb as getColor,$i as getCurrentTimeOfDayMillis,Xh as getCursor,Fd as getDateElement,Bd as getDateId,de as getDateRangeFromDates,Ed as getDateRow,Gd as getDateSpacerElement,ee as getDatesFromDateRange,ge as getDatesInRange,Dd as getDayElement,Ad as getDayId,he as getEventDescriptions,Id as getEventElement,Hd as getEventWrapperElement,Cd as getEventWrapperId,qe as getEventsOnDate,Wd as getFirstDateOfWeek,Yd as getFirstDayOfMonth,wd as getFirstDayOfWeekForLocale,Od as getFooter,fd as getGrid,gd as getGridItems,Yh as getHandleIcon,Kd as getHeader,pe as getIndexOfDate,p as getLastDateOfMonth,Xd as getLastDateOfWeek,hd as getList,id as getListItems,td as getLocalizedDayOfMonth,sd as getLocalizedDayOfWeek,ud as getLocalizedMonth,vd as getLocalizedYear,fe as getMinAndMaxDates,Kf as getModiferKeysString,Ld as getMonthButtonContent,Ud as getMonthDates,q as getMonthLength,ke as getMonthOptions,re as getMultipleFromRange,$h as getPixelDimension,jd as getScrollSpy,zb as getSelectedOption,Zd as getSortedDaysOfWeek,Zh as getSplitViewPanelSibling,Lb as getTextColor,Gb as getThemeColor,Qd as getTodayButton,Jd as getTooltip,Wh as getValuenow,Vd as getWeekDates,xd as getWeekendDaysForLocale,Md as getYearButtonContent,le as getYearOptions,Vh as handleBoundariesAfterResize,Uh as handleBoundariesDuringResize,C as highlightTextHTML,Xi as hoursToMillis,Lh as initState,oe as isDisabled,$d as isInMonth,ae as isInRange,Tg as isOptionGroupObject,Ug as isOptionObject,yb as isOptionType,yd as isRtlLocale,u as isSafeSvg,o as isSameDate,Sg as isSelectOptionType,ne as isSelected,A as isSupportedTimeFormat,_d as isToday,Ph as keyboardResize,Jf as matchKeyCombination,Rh as maxResize,aj as mergeDateWithTime,Si as millisToHours,Ui as millisToMinutes,Ti as millisToMinutesClamped,Wi as millisToSeconds,Vi as millisToSecondsClamped,Ri as millisToTimeString,Qh as minResize,Yi as minutesToMillis,pc as numbers,Ab as optionEqualPredicate,ie as parseDateOffset,m as parseDateString,If as parseKeyCombinations,_h as parseSize,je as parseYearRange,E as percentToPixels,F as pixelsToPercent,Oh as pointerResize,r as proxyShadowScrollEvent,Kb as randomHexColor,kd as removeAllExceptLastChild,Y as removeIconListener,Sh as resizeSibling,I as safeMax,H as safeMin,_ as sanitizeExternalType,V as sanitizeSvgContent,G as scaleValue,Zi as secondsToMillis,Mh as setState,Td as setTabindexOnElement,te as shouldHandleEvent,be as sortDates,ce as splitIntoWeeks,oc as strings,_i as stripSecondsFromMillis,Ff as textInputTypes,Qi as timeStringToMillis,z as tokenize12HourTimeString,y as tokenize24HourTimeString,B as tryCoerceTimeString,D as userInteractionListener};
6
+ import{a as vj}from"./chunks/chunk.2IYJMMJE.js";import"./chunks/chunk.WINL2C7Q.js";import{a as lj,b as mj,c as nj,d as oj,e as pj,f as sj,g as uj}from"./chunks/chunk.33Q5FK2H.js";import{a as qj,b as rj,c as tj}from"./chunks/chunk.DIYJJHWP.js";import"./chunks/chunk.TLCGGWBO.js";import{a as Ii,b as Ji,c as Ki,d as Li,e as Mi,f as Ni,g as Oi}from"./chunks/chunk.YWKKZLZ2.js";import{a as Hi}from"./chunks/chunk.O3G6ZLJN.js";import{a as Di,b as Ei,c as Fi,d as Gi}from"./chunks/chunk.OOBE3XRM.js";import{a as Pi,b as Qi,c as Ri,d as Si,e as Ti,f as Ui,g as Vi,h as Wi,i as Xi,j as Yi,k as Zi,l as _i,m as $i,n as aj,o as bj,p as cj,q as dj,r as ej,s as fj}from"./chunks/chunk.JAEVBPHT.js";import{a as gj,b as hj,c as ij,d as jj,e as kj}from"./chunks/chunk.2SAHWDGJ.js";import"./chunks/chunk.X2RP4QW3.js";import{a as gi,b as hi,c as ii,d as ji}from"./chunks/chunk.G7QMC34F.js";import{a as Jh,b as Kh,c as Lh,d as Mh,e as Nh,f as Oh,g as Ph,h as Qh,i as Rh,j as Sh,k as Th,l as Uh,m as Vh,n as Wh,o as Xh,p as Yh,q as Zh,r as _h,s as $h,t as ai,u as bi,v as ci,w as di,x as ei,y as fi}from"./chunks/chunk.44RVGESY.js";import"./chunks/chunk.E37HEAJ5.js";import"./chunks/chunk.E4NCI7MS.js";import{a as pi,b as qi,c as ri,d as si,e as ti}from"./chunks/chunk.TLHI6K2R.js";import{a as ki,b as li,c as mi,d as ni,e as oi}from"./chunks/chunk.SJSLC6XF.js";import{a as ui,b as vi,c as wi,d as xi,e as yi,f as zi,g as Ai,h as Bi,i as Ci}from"./chunks/chunk.TR64DV3G.js";import{a as Fh,b as Gh,c as Hh,d as Ih}from"./chunks/chunk.T7ZJDAXV.js";import"./chunks/chunk.AJJILT3A.js";import{a as uh,b as vh,c as wh,d as xh,e as yh}from"./chunks/chunk.444GNOS4.js";import{a as zh,b as Ah,c as Bh,d as Ch,e as Dh,f as Eh}from"./chunks/chunk.Q6L7T6OJ.js";import{a as Kg,b as Lg,c as Mg}from"./chunks/chunk.VMWS5OOZ.js";import{a as Ng,b as Og,c as Pg,d as sh,e as th}from"./chunks/chunk.6RSXJERY.js";import{a as rh}from"./chunks/chunk.OOICAEAX.js";import{a as Wg,b as Xg,c as gh,d as kh,e as lh}from"./chunks/chunk.HAOBWYPY.js";import{a as mh,b as nh,c as oh,d as ph,e as qh}from"./chunks/chunk.2NMN5N7V.js";import{a as hh,b as ih,c as jh}from"./chunks/chunk.BCUBTR5O.js";import"./chunks/chunk.MNFGVNDI.js";import{a as Qg,b as Rg,c as Sg,d as Tg,e as Ug,f as Vg,g as Yg,h as fh}from"./chunks/chunk.6ZCECXMM.js";import{a as ch,b as dh,c as eh}from"./chunks/chunk.B5ABD4CZ.js";import{a as Zg,b as _g,c as $g,d as ah,e as bh}from"./chunks/chunk.EJ4ASQET.js";import"./chunks/chunk.WF2MFLG4.js";import{a as Bf,b as Cf,c as Df}from"./chunks/chunk.5WMEFHVN.js";import{a as Ef,b as Ff,c as Gf,d as Hf,e as If,f as Jf,g as Kf,h as Lf,i as Mf,j as Nf,k as Of}from"./chunks/chunk.5XQVZQ4U.js";import{a as Pf,b as Qf,c as Rf,d as Sf,e as Tf,f as Uf}from"./chunks/chunk.X77WVI2H.js";import"./chunks/chunk.QQDDGRY6.js";import{a as ff,b as gf,c as hf}from"./chunks/chunk.SHT6BCLY.js";import{a as of,b as pf,c as qf}from"./chunks/chunk.6APYGKNX.js";import{a as jf,b as kf,c as lf,d as mf,e as nf}from"./chunks/chunk.URBXDOF7.js";import{a as bf,b as cf,c as df,d as ef}from"./chunks/chunk.IJIKFXUT.js";import{a as rf,b as sf,c as tf,d as uf,e as vf,f as wf}from"./chunks/chunk.V7P3QPNM.js";import{a as xf,b as yf,c as zf,d as Af}from"./chunks/chunk.XXA6KNXT.js";import{a as Se,b as Te,c as Ue,d as Ve,e as We,f as Xe}from"./chunks/chunk.4T5TGQFG.js";import{a as Le,b as Me,c as Ne,d as Oe,e as Pe,f as Qe,g as Re}from"./chunks/chunk.5D6UB4DL.js";import"./chunks/chunk.RKKJB3EE.js";import{a as Ye,b as Ze,c as _e,d as $e,e as af}from"./chunks/chunk.NNGE722W.js";import{a as Ee,b as Fe,c as Ge,d as He,e as Ie,f as Je,g as Ke}from"./chunks/chunk.LLHA3SQR.js";import"./chunks/chunk.MHEJZJT3.js";import{a as _c}from"./chunks/chunk.K43ZNKT2.js";import{A as se,B as te,C as ue,D as ve,E as we,F as xe,G as Ae,a as Ud,b as Vd,c as Wd,d as Xd,e as Yd,f as Zd,g as _d,h as $d,i as ae,j as be,k as ce,l as de,m as ee,n as fe,o as ge,p as he,q as ie,r as je,s as ke,t as le,u as me,v as ne,w as oe,x as pe,y as qe,z as re}from"./chunks/chunk.JB2N65SR.js";import{A as Qd,B as Rd,C as Sd,D as Td,E as ye,F as ze,a as pd,b as qd,c as rd,d as sd,e as td,f as ud,g as vd,h as wd,i as xd,j as yd,k as Ad,l as Bd,m as Cd,n as Dd,o as Ed,p as Fd,q as Gd,r as Hd,s as Id,t as Jd,u as Kd,v as Ld,w as Md,x as Nd,y as Od,z as Pd}from"./chunks/chunk.J3NHIF6W.js";import{a as ed,b as fd,c as gd,d as hd,e as id,f as jd,g as kd,h as ld,i as md,j as nd,k as od}from"./chunks/chunk.DGDT4UQT.js";import{a as zd}from"./chunks/chunk.E43TT4RI.js";import{a as Be,b as Ce,c as De}from"./chunks/chunk.MGTNCCW3.js";import{a as eb,b as fb,c as wb,d as xb,e as yb,f as zb,g as Ab,h as Bb,i as Cb,j as Db,k as Eb}from"./chunks/chunk.NTFA7FCB.js";import{a as $a,b as ab,c as bb,d as db}from"./chunks/chunk.DML4YNQF.js";import{a as _a,b as cb}from"./chunks/chunk.IMK2LFWR.js";import{a as qa,b as ra,c as sa}from"./chunks/chunk.YHHIPP2F.js";import{a as gb,b as hb,c as ib,d as tb,e as ub,f as vb}from"./chunks/chunk.5PQTSZ7G.js";import"./chunks/chunk.RPPBBBYG.js";import"./chunks/chunk.AWCBH5KW.js";import{a as Wa,b as Xa,c as Ya,d as Za}from"./chunks/chunk.F5I55MXD.js";import"./chunks/chunk.Y6FFG7XO.js";import"./chunks/chunk.CKS5A4YN.js";import{a as pb,b as qb,c as rb,d as sb}from"./chunks/chunk.G77PXLAU.js";import{a as ob}from"./chunks/chunk.WV45FGTW.js";import{a as jb,b as kb,c as lb,d as mb,e as nb}from"./chunks/chunk.Y6MPWPZU.js";import{a as jc,b as kc,c as lc,d as mc,e as nc}from"./chunks/chunk.7O7V3N4A.js";import{a as Dc,b as Ec,c as Fc,d as Gc,e as Hc}from"./chunks/chunk.6QMDYUVT.js";import{a as zc,b as Ac,c as Bc,d as Cc}from"./chunks/chunk.HUWXZ4ZN.js";import{a as wc,b as xc,c as yc}from"./chunks/chunk.NGIBMR3Q.js";import{a as oc,b as pc,c as qc,d as rc,e as sc,f as tc,g as uc,h as vc}from"./chunks/chunk.7NXPOEXV.js";import{a as Rc,b as Sc,c as Tc,d as Uc,e as Vc}from"./chunks/chunk.I2YRKTG7.js";import{a as Qb,b as Rb,c as Sb,d as Tb,e as Ub}from"./chunks/chunk.QJPH24V4.js";import{a as $c,b as ad,c as bd,d as cd,e as dd}from"./chunks/chunk.5K5SIZRX.js";import{a as Wc,b as Xc,c as Yc,d as Zc}from"./chunks/chunk.WNOSTPQQ.js";import{a as la,b as ma,c as na,d as oa,e as pa}from"./chunks/chunk.IFZXG3LI.js";import{a as ga,b as ha,c as ia,d as ja,e as ka}from"./chunks/chunk.OG2BI3UW.js";import{a as g,b as h,c as da,d as ea,e as fa}from"./chunks/chunk.P6B3UWJ5.js";import{a as _f,b as $f,c as ag,d as bg,e as cg,f as Jg}from"./chunks/chunk.CV5E5W6I.js";import{a as rg,b as sg,c as tg,d as ug,e as vg}from"./chunks/chunk.G5Q2CUUE.js";import{a as Vf,b as Wf,c as Xf,d as Yf,e as Zf}from"./chunks/chunk.SZL74RTY.js";import"./chunks/chunk.F3W3XMGT.js";import"./chunks/chunk.KGW63HJX.js";import{a as Ta,b as Ua,c as Va}from"./chunks/chunk.54QFNVMG.js";import"./chunks/chunk.FZQCBRPK.js";import{a as Ja,b as Ka,c as La,d as Ma}from"./chunks/chunk.D3DLVPPE.js";import{a as wa,b as xa,c as Fa,d as Ga,e as Ha,f as Ia}from"./chunks/chunk.7JTKKFL4.js";import"./chunks/chunk.AMFXGOSA.js";import"./chunks/chunk.EC6JSIQW.js";import{a as Mc,b as Nc,c as Oc,d as Pc,e as Qc}from"./chunks/chunk.K753A3KI.js";import{a as ta,b as ua,c as va}from"./chunks/chunk.XYBFFTXS.js";import"./chunks/chunk.STS5TIUV.js";import{a as jg,b as kg,c as lg}from"./chunks/chunk.APGFXXJ7.js";import{a as mg,b as ng,c as og,d as pg,e as qg}from"./chunks/chunk.BFNAQQCU.js";import{a as Vb,b as Wb,c as Xb,d as Yb,e as Zb,f as _b}from"./chunks/chunk.MNBJMPJ6.js";import{a as Eg,b as Fg,c as Gg,d as Hg,e as Ig}from"./chunks/chunk.PFD2SVJ4.js";import{a as wg,b as xg,c as yg,d as Cg,e as Dg}from"./chunks/chunk.FPV4XEUK.js";import{a as zg,b as Ag,c as Bg}from"./chunks/chunk.JNOCXQVB.js";import{a as Ib,b as Jb,c as Mb,d as Nb,e as Ob,f as Pb}from"./chunks/chunk.35U4OX7S.js";import{a as Kb,b as Lb}from"./chunks/chunk.SVGEVCXA.js";import{a as Fb,b as Gb,c as Hb}from"./chunks/chunk.2GY2VPJG.js";import{a as Ic,b as Jc,c as Kc,d as Lc}from"./chunks/chunk.OAKTW64X.js";import{a as Na,b as Oa,c as Pa,d as Qa,e as Ra,f as Sa}from"./chunks/chunk.3UMBCR4P.js";import{a as $b,b as ac,c as bc,d as cc}from"./chunks/chunk.BOENNFXE.js";import{a as ya,b as za,c as Aa,d as Ba,e as Ca,f as Da,g as Ea}from"./chunks/chunk.QXLPBYMX.js";import"./chunks/chunk.PYG4YVBA.js";import"./chunks/chunk.QZHEP4X2.js";import{a as dg,b as eg,c as fg,d as gg,e as hg,f as ig}from"./chunks/chunk.4KBQ5AJJ.js";import"./chunks/chunk.LZMYHIO2.js";import{a as ec,b as fc,c as gc,d as hc,e as ic}from"./chunks/chunk.OUEF6VQ6.js";import{a as dc}from"./chunks/chunk.VLTJFKGZ.js";import"./chunks/chunk.D4SNVKDA.js";import"./chunks/chunk.UUX4QJ4D.js";import{a as R,b as S,c as T,d as U,e as V,f as W,g as X,h as Y,i as Z,j as _,k as $,l as aa,m as ba,n as ca}from"./chunks/chunk.YAJT3P6V.js";import"./chunks/chunk.6KTLOA7V.js";import"./chunks/chunk.SKLCDWYQ.js";import{a as j}from"./chunks/chunk.24D46RLZ.js";import{a as K,b as L,c as M,d as N,e as O,f as P,g as Q}from"./chunks/chunk.7ZS4N2FT.js";import"./chunks/chunk.U6FJJGO3.js";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as t,i as u,j as v,k as w,l as x,m as y,n as z,o as A,p as B,q as C,r as D,s as E,t as F,u as G,v as H,w as I,x as J}from"./chunks/chunk.KYCC3C3M.js";import{a as r,b as s}from"./chunks/chunk.GVQVA7P3.js";import{a as i}from"./chunks/chunk.MIYZJUXH.js";import{a as b}from"./chunks/chunk.A23NSEWA.js";import"./chunks/chunk.B3IJU6XJ.js";import{b as c,c as d,d as e,e as f}from"./chunks/chunk.BSZ2LBJX.js";import{a}from"./chunks/chunk.3E5QKMHL.js";import"./chunks/chunk.HN4PXH3D.js";import"./chunks/chunk.R4NDFXVA.js";import"./chunks/chunk.G76HB2FK.js";import"./chunks/chunk.MCIQXNKY.js";export{Ji as ACCEPTABLE_KEYS,ma as ACCORDION_CONSTANTS,$f as APP_BAR_CONSTANTS,tg as APP_BAR_HELP_BUTTON_CONSTANTS,jg as APP_BAR_MENU_BUTTON_CONSTANTS,ng as APP_BAR_NOTIFICATION_BUTTON_CONSTANTS,Eg as APP_BAR_PROFILE_BUTTON_CONSTANTS,dg as APP_BAR_SEARCH_CONSTANTS,eb as AUTOCOMPLETE_CONSTANTS,Ib as AVATAR_CONSTANTS,la as AccordionAdapter,oa as AccordionComponent,na as AccordionFoundation,ag as AppBarAdapter,cg as AppBarComponent,bg as AppBarFoundation,rg as AppBarHelpButtonAdapter,ug as AppBarHelpButtonComponent,sg as AppBarHelpButtonFoundation,kg as AppBarMenuButtonComponent,mg as AppBarNotificationButtonAdapter,pg as AppBarNotificationButtonComponent,og as AppBarNotificationButtonFoundation,Fg as AppBarProfileButtonAdapter,Hg as AppBarProfileButtonComponent,Gg as AppBarProfileButtonFoundation,gg as AppBarSearchAdapter,hg as AppBarSearchComponent,fg as AppBarSearchFoundation,wb as AutocompleteAdapter,Cb as AutocompleteComponent,Db as AutocompleteComponentDelegate,Bb as AutocompleteFoundation,fb as AutocompleteMode,Jb as AvatarAdapter,Nb as AvatarComponent,Ob as AvatarComponentDelegate,Mb as AvatarFoundation,Qb as BACKDROP_CONSTANTS,Vb as BADGE_CONSTANTS,jc as BANNER_CONSTANTS,bf as BASE_DRAWER_CONSTANTS,Qg as BASE_SELECT_CONSTANTS,Dc as BOTTOM_SHEET_CONSTANTS,Rc as BUSY_INDICATOR_CONSTANTS,Ic as BUTTON_CONSTANTS,Wc as BUTTON_TOGGLE_CONSTANTS,$c as BUTTON_TOGGLE_GROUP_CONSTANTS,Rb as BackdropAdapter,Tb as BackdropComponent,Sb as BackdropFoundation,Wb as BadgeAdapter,Yb as BadgeComponent,Zb as BadgeComponentDelegate,Xb as BadgeFoundation,kc as BannerAdapter,mc as BannerComponent,lc as BannerFoundation,b as BaseAdapter,a as BaseComponent,i as BaseComponentDelegate,cf as BaseDrawerAdapter,ef as BaseDrawerComponent,df as BaseDrawerFoundation,fh as BaseSelectAdapter,Yg as BaseSelectComponent,Vg as BaseSelectFoundation,Ec as BottomSheetAdapter,Gc as BottomSheetComponent,Fc as BottomSheetFoundation,Sc as BusyIndicatorAdapter,Uc as BusyIndicatorComponent,Tc as BusyIndicatorFoundation,Jc as ButtonComponent,Kc as ButtonComponentDelegate,Xc as ButtonToggleAdapter,Zc as ButtonToggleComponent,Yc as ButtonToggleFoundation,ad as ButtonToggleGroupAdapter,cd as ButtonToggleGroupComponent,bd as ButtonToggleGroupFoundation,pd as CALENDAR_CONSTANTS,ye as CALENDAR_DROPDOWN_CONSTANTS,ed as CALENDAR_MENU_CONSTANTS,Be as CARD_CONSTANTS,f as CDN_BASE_URL,qc as CHECKBOX_CONSTANTS,kb as CHIP_CONSTANTS,gb as CHIP_FIELD_CONSTANTS,jb as CHIP_SET_CONSTANTS,Mc as CIRCULAR_PROGRESS_CONSTANTS,Fb as COLOR_CONSTANTS,Ee as COLOR_PICKER_CONSTANTS,c as COMPONENT_NAME_PREFIX,ue as CalendarAdapter,we as CalendarComponent,xe as CalendarComponentDelegate,ze as CalendarDropdown,ve as CalendarFoundation,ld as CalendarMenuAdapter,nd as CalendarMenuComponent,md as CalendarMenuFoundation,rd as CalendarMonthFocus,Ce as CardComponent,vi as CellAlign,sc as CheckboxAdapter,tc as CheckboxComponent,uc as CheckboxComponentDelegate,rc as CheckboxFoundation,lb as ChipAdapter,nb as ChipComponent,hb as ChipFieldAdapter,tb as ChipFieldComponent,ub as ChipFieldComponentDelegate,ib as ChipFieldFoundation,mb as ChipFoundation,pb as ChipSetAdapter,rb as ChipSetComponent,qb as ChipSetFoundation,Nc as CircularProgressAdapter,Pc as CircularProgressComponent,Oc as CircularProgressFoundation,He as ColorPickerAdapter,Je as ColorPickerComponent,Ie as ColorPickerFoundation,Ge as ColorPickerValueType,Se as DATE_PICKER_CONSTANTS,Me as DATE_RANGE_PICKER_CONSTANTS,Fe as DEFAULT_COLOR,eg as DEFAULT_COMBINED_OPTIONS,K as DEFAULT_DATE_MASK,Ye as DIALOG_CONSTANTS,qa as DIVIDER_CONSTANTS,ff as DRAWER_CONSTANTS,L as DateInputMask,Te as DatePickerAdapter,Ve as DatePickerComponent,We as DatePickerComponentDelegate,Ue as DatePickerFoundation,Le as DatePickerRange,zd as DateRange,Qe as DateRangeComponentDelegate,Ne as DateRangePickerAdapter,Pe as DateRangePickerComponent,Oe as DateRangePickerFoundation,qd as DayOfWeek,_e as DialogAdapter,$e as DialogComponent,Ze as DialogFoundation,ra as DividerComponent,gf as DrawerComponent,ga as EXPANSION_PANEL_CONSTANTS,ha as ExpansionPanelAdapter,ja as ExpansionPanelComponent,ia as ExpansionPanelFoundation,rf as FILE_PICKER_CONSTANTS,xf as FLOATING_ACTION_BUTTON_CONSTANTS,Xa as FLOATING_LABEL_CONSTANTS,sf as FilePickerAdapter,uf as FilePickerComponent,vf as FilePickerComponentDelegate,tf as FilePickerFoundation,yf as FloatingActionButton,zf as FloatingActionButtonComponentDelegate,Za as FloatingLabel,Wa as FloatingLabelAdapter,Ya as FloatingLabelFoundation,za as ForgeRipple,Aa as ForgeRippleFoundation,j as FormFieldComponentDelegate,$b as ICON_BUTTON_CONSTANTS,e as ICON_CLASS_NAME,R as ICON_CONSTANTS,S as ICON_REGISTRY_KEY,Bf as INLINE_MESSAGE_CONSTANTS,k as ISO_8601_REGEX,l as ISO_TIMEZONE_REGEX,T as IconAdapter,ac as IconButtonComponent,bc as IconButtonComponentDelegate,aa as IconComponent,ba as IconComponentDelegate,$ as IconFoundation,U as IconRegistry,Cf as InlineMessageComponent,Ef as KEYBOARD_SHORTCUT_CONSTANTS,Ki as KEYCODE_MAP,d as KEYSTROKE_DEBOUNCE_THRESHOLD,Gf as KeyboardShortcutAdapter,Nf as KeyboardShortcutComponent,Mf as KeyboardShortcutFoundation,Pf as LABEL_VALUE_CONSTANTS,ta as LINEAR_PROGRESS_CONSTANTS,wa as LIST_CONSTANTS,xa as LIST_ITEM_CONSTANTS,Qf as LabelValueAdapter,Sf as LabelValueComponent,Tf as LabelValueComponentDelegate,Rf as LabelValueFoundation,ua as LinearProgressComponent,Ja as ListAdapter,La as ListComponent,Ka as ListFoundation,Fa as ListItemAdapter,Ha as ListItemComponent,Ga as ListItemFoundation,Vf as MENU_CONSTANTS,of as MINI_DRAWER_CONSTANTS,kf as MODAL_DRAWER_CONSTANTS,Wf as MenuAdapter,Yf as MenuComponent,Xf as MenuFoundation,pf as MiniDrawerComponent,jf as ModalDrawerAdapter,mf as ModalDrawerComponent,lf as ModalDrawerFoundation,g as OPEN_ICON_CONSTANTS,_g as OPTION_CONSTANTS,ch as OPTION_GROUP_CONSTANTS,da as OpenIconAdapter,ea as OpenIconComponent,h as OpenIconFoundation,Zg as OptionAdapter,ah as OptionComponent,$g as OptionFoundation,dh as OptionGroupComponent,xb as OptionType,Kg as PAGE_STATE_CONSTANTS,Ng as PAGINATOR_CONSTANTS,x as PARSEABLE_TIME_FORMAT,Na as POPUP_CONSTANTS,uh as PRODUCT_ICON_CONSTANTS,wg as PROFILE_CARD_CONSTANTS,Lg as PageStateComponent,Pg as PaginatorAdapter,sh as PaginatorComponent,Og as PaginatorFoundation,Pa as PopupAdapter,Oa as PopupAnimationType,Ra as PopupComponent,Qa as PopupFoundation,vh as ProductIconAdapter,xh as ProductIconComponent,wh as ProductIconFoundation,xg as ProfileCardAdapter,Cg as ProfileCardComponent,yg as ProfileCardFoundation,zh as QUANTITY_FIELD_CONSTANTS,Ah as QuantityFieldAdapter,Ch as QuantityFieldComponent,Dh as QuantityFieldComponentDelegate,Bh as QuantityFieldFoundation,wc as RADIO_CONSTANTS,ya as RIPPLE_CONSTANTS,xc as RadioComponent,Ba as RippleAdapter,Da as RippleComponent,Ca as RippleFoundation,hh as SCAFFOLD_CONSTANTS,mh as SELECT_CONSTANTS,Wg as SELECT_DROPDOWN_CONSTANTS,Ta as SKELETON_CONSTANTS,Fh as SLIDER_CONSTANTS,ci as SPLIT_VIEW_CONSTANTS,Jh as SPLIT_VIEW_PANEL_CONSTANTS,pi as STEPPER_CONSTANTS,ki as STEP_CONSTANTS,zc as SWITCH_CONSTANTS,ih as ScaffoldComponent,nh as SelectAdapter,ph as SelectComponent,rh as SelectComponentDelegate,gh as SelectDropdownAdapter,kh as SelectDropdownComponent,Xg as SelectDropdownFoundation,oh as SelectFoundation,Rg as SelectOptionType,Ua as SkeletonComponent,Gh as SliderComponent,Hh as SliderComponentDelegate,wi as SortDirection,gi as SplitViewAdapter,Kh as SplitViewAnimatingLayer,ii as SplitViewComponent,hi as SplitViewFoundation,di as SplitViewPanelAdapter,ei as SplitViewPanelComponent,bi as SplitViewPanelFoundation,li as StepAdapter,ni as StepComponent,mi as StepFoundation,qi as StepperAdapter,si as StepperComponent,ri as StepperFoundation,Ac as SwitchComponent,Bc as SwitchComponentDelegate,ui as TABLE_CONSTANTS,Ii as TAB_BAR_CONSTANTS,Di as TAB_CONSTANTS,_a as TEXT_FIELD_CONSTANTS,Pi as TIME_PICKER_CONSTANTS,gj as TOAST_CONSTANTS,zg as TOOLBAR_CONSTANTS,dc as TOOLTIP_CONSTANTS,M as TWELVE_HOUR_TIME_MASK,N as TWELVE_HOUR_TIME_MASK_WITH_SECONDS,w as TWELVE_HOUR_TIME_REGEX,O as TWENTY_FOUR_HOUR_TIME_MASK,P as TWENTY_FOUR_HOUR_TIME_MASK_WITH_SECONDS,v as TWENTY_FOUR_HOUR_TIME_REGEX,Ei as TabAdapter,Mi as TabBarAdapter,Ni as TabBarComponent,Li as TabBarFoundation,Gi as TabComponent,Fi as TabFoundation,yi as TableAdapter,Bi as TableComponent,xi as TableFilterType,Ai as TableFoundation,zi as TableRow,$a as TextFieldAdapter,bb as TextFieldComponent,cb as TextFieldComponentDelegate,ab as TextFieldFoundation,Q as TimeInputMask,Qi as TimePickerAdapter,dj as TimePickerComponent,ej as TimePickerComponentDelegate,cj as TimePickerFoundation,hj as ToastAdapter,jj as ToastComponent,ij as ToastFoundation,Ag as ToolbarComponent,fc as TooltipAdapter,hc as TooltipComponent,gc as TooltipFoundation,qj as VIEW_CONSTANTS,lj as VIEW_SWITCHER_CONSTANTS,mj as ViewAnimationDirection,rj as ViewComponent,oj as ViewSwitcherAdapter,nj as ViewSwitcherAnimationType,sj as ViewSwitcherComponent,pj as ViewSwitcherFoundation,J as assignMatchingProperties,ec as attachTooltip,X as awaitIconDefinition,Th as clampSize,Nh as clearState,se as coerceDateFromValue,ai as createOverlay,t as createSvgFromString,pa as defineAccordionComponent,Jg as defineAppBarComponent,vg as defineAppBarHelpButtonComponent,lg as defineAppBarMenuButtonComponent,qg as defineAppBarNotificationButtonComponent,Ig as defineAppBarProfileButtonComponent,ig as defineAppBarSearchComponent,Eb as defineAutocompleteComponent,Pb as defineAvatarComponent,Ub as defineBackdropComponent,_b as defineBadgeComponent,nc as defineBannerComponent,Hc as defineBottomSheetComponent,Vc as defineBusyIndicatorComponent,Lc as defineButtonComponent,_c as defineButtonToggleComponent,dd as defineButtonToggleGroupComponent,Ae as defineCalendarComponent,od as defineCalendarMenuComponent,De as defineCardComponent,vc as defineCheckboxComponent,ob as defineChipComponent,vb as defineChipFieldComponent,sb as defineChipSetComponent,Qc as defineCircularProgressComponent,Ke as defineColorPickerComponent,vj as defineComponents,Xe as defineDatePickerComponent,Re as defineDateRangePickerComponent,af as defineDialogComponent,sa as defineDividerComponent,hf as defineDrawerComponent,ka as defineExpansionPanelComponent,wf as defineFilePickerComponent,Af as defineFloatingActionButtonComponent,cc as defineIconButtonComponent,ca as defineIconComponent,Df as defineInlineMessageComponent,Of as defineKeyboardShortcutComponent,Uf as defineLabelValueComponent,va as defineLinearProgressComponent,Ma as defineListComponent,Ia as defineListItemComponent,Zf as defineMenuComponent,qf as defineMiniDrawerComponent,nf as defineModalDrawerComponent,fa as defineOpenIconComponent,bh as defineOptionComponent,eh as defineOptionGroupComponent,Mg as definePageStateComponent,th as definePaginatorComponent,Sa as definePopupComponent,yh as defineProductIconComponent,Dg as defineProfileCardComponent,Eh as defineQuantityFieldComponent,yc as defineRadioComponent,Ea as defineRippleComponent,jh as defineScaffoldComponent,qh as defineSelectComponent,lh as defineSelectDropdownComponent,Va as defineSkeletonComponent,Ih as defineSliderComponent,ji as defineSplitViewComponent,fi as defineSplitViewPanelComponent,oi as defineStepComponent,ti as defineStepperComponent,Cc as defineSwitchComponent,Oi as defineTabBarComponent,Hi as defineTabComponent,Ci as defineTableComponent,db as defineTextFieldComponent,fj as defineTimePickerComponent,kj as defineToastComponent,Bg as defineToolbarComponent,ic as defineTooltipComponent,tj as defineViewComponent,uj as defineViewSwitcherComponent,Hf as elementAcceptsTextInput,_f as elementName,s as eventIncludesArrowKey,Rd as eventIncludesDate,Sd as eventIncludesElement,Z as fetchIconContent,Lf as fixKey,n as formatDate,Nd as getAccessibleHeader,me as getAllYearOptions,W as getCachedIcon,Pd as getClearButton,Hb as getColor,aj as getCurrentTimeOfDayMillis,Xh as getCursor,Fd as getDateElement,Bd as getDateId,de as getDateRangeFromDates,Ed as getDateRow,Gd as getDateSpacerElement,ee as getDatesFromDateRange,ge as getDatesInRange,Dd as getDayElement,Ad as getDayId,he as getEventDescriptions,Id as getEventElement,Hd as getEventWrapperElement,Cd as getEventWrapperId,qe as getEventsOnDate,Wd as getFirstDateOfWeek,Yd as getFirstDayOfMonth,wd as getFirstDayOfWeekForLocale,Od as getFooter,fd as getGrid,gd as getGridItems,Yh as getHandleIcon,Kd as getHeader,pe as getIndexOfDate,p as getLastDateOfMonth,Xd as getLastDateOfWeek,hd as getList,id as getListItems,td as getLocalizedDayOfMonth,sd as getLocalizedDayOfWeek,ud as getLocalizedMonth,vd as getLocalizedYear,fe as getMinAndMaxDates,Kf as getModiferKeysString,Ld as getMonthButtonContent,Ud as getMonthDates,q as getMonthLength,ke as getMonthOptions,re as getMultipleFromRange,$h as getPixelDimension,jd as getScrollSpy,zb as getSelectedOption,Zd as getSortedDaysOfWeek,Zh as getSplitViewPanelSibling,Lb as getTextColor,Gb as getThemeColor,Qd as getTodayButton,Jd as getTooltip,Wh as getValuenow,Vd as getWeekDates,xd as getWeekendDaysForLocale,Md as getYearButtonContent,le as getYearOptions,Vh as handleBoundariesAfterResize,Uh as handleBoundariesDuringResize,C as highlightTextHTML,Yi as hoursToMillis,Lh as initState,oe as isDisabled,$d as isInMonth,ae as isInRange,Tg as isOptionGroupObject,Ug as isOptionObject,yb as isOptionType,yd as isRtlLocale,u as isSafeSvg,o as isSameDate,Sg as isSelectOptionType,ne as isSelected,A as isSupportedTimeFormat,_d as isToday,Ph as keyboardResize,Jf as matchKeyCombination,Rh as maxResize,bj as mergeDateWithTime,Ti as millisToHours,Vi as millisToMinutes,Ui as millisToMinutesClamped,Xi as millisToSeconds,Wi as millisToSecondsClamped,Si as millisToTimeString,Qh as minResize,Zi as minutesToMillis,pc as numbers,Ab as optionEqualPredicate,ie as parseDateOffset,m as parseDateString,If as parseKeyCombinations,_h as parseSize,je as parseYearRange,E as percentToPixels,F as pixelsToPercent,Oh as pointerResize,r as proxyShadowScrollEvent,Kb as randomHexColor,kd as removeAllExceptLastChild,Y as removeIconListener,Sh as resizeSibling,I as safeMax,H as safeMin,_ as sanitizeExternalType,V as sanitizeSvgContent,G as scaleValue,_i as secondsToMillis,Mh as setState,Td as setTabindexOnElement,te as shouldHandleEvent,be as sortDates,ce as splitIntoWeeks,oc as strings,$i as stripSecondsFromMillis,Ff as textInputTypes,Ri as timeStringToMillis,z as tokenize12HourTimeString,y as tokenize24HourTimeString,B as tryCoerceTimeString,D as userInteractionListener};
7
7
  //# sourceMappingURL=index.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2022 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import"../chunks/chunk.X2RP4QW3.js";import{a as y,b as z,c as A,d as B}from"../chunks/chunk.TAX3RMGW.js";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"../chunks/chunk.YE26Y4CT.js";import"../chunks/chunk.E37HEAJ5.js";import"../chunks/chunk.AJJILT3A.js";import"../chunks/chunk.QXLPBYMX.js";import"../chunks/chunk.PYG4YVBA.js";import"../chunks/chunk.QZHEP4X2.js";import"../chunks/chunk.LZMYHIO2.js";import"../chunks/chunk.YAJT3P6V.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.24D46RLZ.js";import"../chunks/chunk.7ZS4N2FT.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.KYCC3C3M.js";import"../chunks/chunk.GVQVA7P3.js";import"../chunks/chunk.MIYZJUXH.js";import"../chunks/chunk.A23NSEWA.js";import"../chunks/chunk.B3IJU6XJ.js";import"../chunks/chunk.BSZ2LBJX.js";import"../chunks/chunk.3E5QKMHL.js";import"../chunks/chunk.HN4PXH3D.js";import"../chunks/chunk.R4NDFXVA.js";import"../chunks/chunk.G76HB2FK.js";import"../chunks/chunk.MCIQXNKY.js";export{u as SPLIT_VIEW_CONSTANTS,a as SPLIT_VIEW_PANEL_CONSTANTS,y as SplitViewAdapter,b as SplitViewAnimatingLayer,A as SplitViewComponent,z as SplitViewFoundation,v as SplitViewPanelAdapter,w as SplitViewPanelComponent,t as SplitViewPanelFoundation,k as clampSize,e as clearState,B as defineSplitViewComponent,x as defineSplitViewPanelComponent,o as getCursor,p as getHandleIcon,s as getPixelDimension,q as getSplitViewPanelSibling,n as getValuenow,m as handleBoundariesAfterResize,l as handleBoundariesDuringResize,c as initState,g as keyboardResize,i as maxResize,h as minResize,r as parseSize,f as pointerResize,j as resizeSibling,d as setState};
6
+ import"../chunks/chunk.X2RP4QW3.js";import{a as z,b as A,c as B,d as C}from"../chunks/chunk.G7QMC34F.js";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"../chunks/chunk.44RVGESY.js";import"../chunks/chunk.E37HEAJ5.js";import"../chunks/chunk.AJJILT3A.js";import"../chunks/chunk.QXLPBYMX.js";import"../chunks/chunk.PYG4YVBA.js";import"../chunks/chunk.QZHEP4X2.js";import"../chunks/chunk.LZMYHIO2.js";import"../chunks/chunk.YAJT3P6V.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.24D46RLZ.js";import"../chunks/chunk.7ZS4N2FT.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.KYCC3C3M.js";import"../chunks/chunk.GVQVA7P3.js";import"../chunks/chunk.MIYZJUXH.js";import"../chunks/chunk.A23NSEWA.js";import"../chunks/chunk.B3IJU6XJ.js";import"../chunks/chunk.BSZ2LBJX.js";import"../chunks/chunk.3E5QKMHL.js";import"../chunks/chunk.HN4PXH3D.js";import"../chunks/chunk.R4NDFXVA.js";import"../chunks/chunk.G76HB2FK.js";import"../chunks/chunk.MCIQXNKY.js";export{v as SPLIT_VIEW_CONSTANTS,a as SPLIT_VIEW_PANEL_CONSTANTS,z as SplitViewAdapter,b as SplitViewAnimatingLayer,B as SplitViewComponent,A as SplitViewFoundation,w as SplitViewPanelAdapter,x as SplitViewPanelComponent,u as SplitViewPanelFoundation,k as clampSize,e as clearState,t as createOverlay,C as defineSplitViewComponent,y as defineSplitViewPanelComponent,o as getCursor,p as getHandleIcon,s as getPixelDimension,q as getSplitViewPanelSibling,n as getValuenow,m as handleBoundariesAfterResize,l as handleBoundariesDuringResize,c as initState,g as keyboardResize,i as maxResize,h as minResize,r as parseSize,f as pointerResize,j as resizeSibling,d as setState};
7
7
  //# sourceMappingURL=index.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2022 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a as b,b as c,c as d,d as e}from"../../chunks/chunk.TAX3RMGW.js";import{u as a}from"../../chunks/chunk.YE26Y4CT.js";import"../../chunks/chunk.E37HEAJ5.js";import"../../chunks/chunk.QXLPBYMX.js";import"../../chunks/chunk.PYG4YVBA.js";import"../../chunks/chunk.QZHEP4X2.js";import"../../chunks/chunk.LZMYHIO2.js";import"../../chunks/chunk.YAJT3P6V.js";import"../../chunks/chunk.6KTLOA7V.js";import"../../chunks/chunk.SKLCDWYQ.js";import"../../chunks/chunk.24D46RLZ.js";import"../../chunks/chunk.7ZS4N2FT.js";import"../../chunks/chunk.U6FJJGO3.js";import"../../chunks/chunk.KYCC3C3M.js";import"../../chunks/chunk.GVQVA7P3.js";import"../../chunks/chunk.MIYZJUXH.js";import"../../chunks/chunk.A23NSEWA.js";import"../../chunks/chunk.B3IJU6XJ.js";import"../../chunks/chunk.BSZ2LBJX.js";import"../../chunks/chunk.3E5QKMHL.js";import"../../chunks/chunk.HN4PXH3D.js";import"../../chunks/chunk.R4NDFXVA.js";import"../../chunks/chunk.G76HB2FK.js";import"../../chunks/chunk.MCIQXNKY.js";export{a as SPLIT_VIEW_CONSTANTS,b as SplitViewAdapter,d as SplitViewComponent,c as SplitViewFoundation,e as defineSplitViewComponent};
6
+ import{a as b,b as c,c as d,d as e}from"../../chunks/chunk.G7QMC34F.js";import{v as a}from"../../chunks/chunk.44RVGESY.js";import"../../chunks/chunk.E37HEAJ5.js";import"../../chunks/chunk.QXLPBYMX.js";import"../../chunks/chunk.PYG4YVBA.js";import"../../chunks/chunk.QZHEP4X2.js";import"../../chunks/chunk.LZMYHIO2.js";import"../../chunks/chunk.YAJT3P6V.js";import"../../chunks/chunk.6KTLOA7V.js";import"../../chunks/chunk.SKLCDWYQ.js";import"../../chunks/chunk.24D46RLZ.js";import"../../chunks/chunk.7ZS4N2FT.js";import"../../chunks/chunk.U6FJJGO3.js";import"../../chunks/chunk.KYCC3C3M.js";import"../../chunks/chunk.GVQVA7P3.js";import"../../chunks/chunk.MIYZJUXH.js";import"../../chunks/chunk.A23NSEWA.js";import"../../chunks/chunk.B3IJU6XJ.js";import"../../chunks/chunk.BSZ2LBJX.js";import"../../chunks/chunk.3E5QKMHL.js";import"../../chunks/chunk.HN4PXH3D.js";import"../../chunks/chunk.R4NDFXVA.js";import"../../chunks/chunk.G76HB2FK.js";import"../../chunks/chunk.MCIQXNKY.js";export{a as SPLIT_VIEW_CONSTANTS,b as SplitViewAdapter,d as SplitViewComponent,c as SplitViewFoundation,e as defineSplitViewComponent};
7
7
  //# sourceMappingURL=index.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2022 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,v as u,w as v,x as w}from"../../chunks/chunk.YE26Y4CT.js";import"../../chunks/chunk.E37HEAJ5.js";import"../../chunks/chunk.QXLPBYMX.js";import"../../chunks/chunk.PYG4YVBA.js";import"../../chunks/chunk.QZHEP4X2.js";import"../../chunks/chunk.LZMYHIO2.js";import"../../chunks/chunk.YAJT3P6V.js";import"../../chunks/chunk.6KTLOA7V.js";import"../../chunks/chunk.SKLCDWYQ.js";import"../../chunks/chunk.24D46RLZ.js";import"../../chunks/chunk.7ZS4N2FT.js";import"../../chunks/chunk.U6FJJGO3.js";import"../../chunks/chunk.KYCC3C3M.js";import"../../chunks/chunk.GVQVA7P3.js";import"../../chunks/chunk.MIYZJUXH.js";import"../../chunks/chunk.A23NSEWA.js";import"../../chunks/chunk.B3IJU6XJ.js";import"../../chunks/chunk.BSZ2LBJX.js";import"../../chunks/chunk.3E5QKMHL.js";import"../../chunks/chunk.HN4PXH3D.js";import"../../chunks/chunk.R4NDFXVA.js";import"../../chunks/chunk.G76HB2FK.js";import"../../chunks/chunk.MCIQXNKY.js";export{a as SPLIT_VIEW_PANEL_CONSTANTS,b as SplitViewAnimatingLayer,u as SplitViewPanelAdapter,v as SplitViewPanelComponent,t as SplitViewPanelFoundation,k as clampSize,e as clearState,w as defineSplitViewPanelComponent,o as getCursor,p as getHandleIcon,s as getPixelDimension,q as getSplitViewPanelSibling,n as getValuenow,m as handleBoundariesAfterResize,l as handleBoundariesDuringResize,c as initState,g as keyboardResize,i as maxResize,h as minResize,r as parseSize,f as pointerResize,j as resizeSibling,d as setState};
6
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,w as v,x as w,y as x}from"../../chunks/chunk.44RVGESY.js";import"../../chunks/chunk.E37HEAJ5.js";import"../../chunks/chunk.QXLPBYMX.js";import"../../chunks/chunk.PYG4YVBA.js";import"../../chunks/chunk.QZHEP4X2.js";import"../../chunks/chunk.LZMYHIO2.js";import"../../chunks/chunk.YAJT3P6V.js";import"../../chunks/chunk.6KTLOA7V.js";import"../../chunks/chunk.SKLCDWYQ.js";import"../../chunks/chunk.24D46RLZ.js";import"../../chunks/chunk.7ZS4N2FT.js";import"../../chunks/chunk.U6FJJGO3.js";import"../../chunks/chunk.KYCC3C3M.js";import"../../chunks/chunk.GVQVA7P3.js";import"../../chunks/chunk.MIYZJUXH.js";import"../../chunks/chunk.A23NSEWA.js";import"../../chunks/chunk.B3IJU6XJ.js";import"../../chunks/chunk.BSZ2LBJX.js";import"../../chunks/chunk.3E5QKMHL.js";import"../../chunks/chunk.HN4PXH3D.js";import"../../chunks/chunk.R4NDFXVA.js";import"../../chunks/chunk.G76HB2FK.js";import"../../chunks/chunk.MCIQXNKY.js";export{a as SPLIT_VIEW_PANEL_CONSTANTS,b as SplitViewAnimatingLayer,v as SplitViewPanelAdapter,w as SplitViewPanelComponent,u as SplitViewPanelFoundation,k as clampSize,e as clearState,t as createOverlay,x as defineSplitViewPanelComponent,o as getCursor,p as getHandleIcon,s as getPixelDimension,q as getSplitViewPanelSibling,n as getValuenow,m as handleBoundariesAfterResize,l as handleBoundariesDuringResize,c as initState,g as keyboardResize,i as maxResize,h as minResize,r as parseSize,f as pointerResize,j as resizeSibling,d as setState};
7
7
  //# sourceMappingURL=index.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2022 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a,b,c,d}from"../chunks/chunk.DGOV5RDW.js";import"../chunks/chunk.PYG4YVBA.js";import"../chunks/chunk.QZHEP4X2.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.24D46RLZ.js";import"../chunks/chunk.7ZS4N2FT.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.KYCC3C3M.js";import"../chunks/chunk.GVQVA7P3.js";import"../chunks/chunk.MIYZJUXH.js";import"../chunks/chunk.A23NSEWA.js";import"../chunks/chunk.BSZ2LBJX.js";import"../chunks/chunk.3E5QKMHL.js";import"../chunks/chunk.HN4PXH3D.js";import"../chunks/chunk.R4NDFXVA.js";import"../chunks/chunk.G76HB2FK.js";import"../chunks/chunk.MCIQXNKY.js";export{a as SWITCH_CONSTANTS,b as SwitchComponent,c as SwitchComponentDelegate,d as defineSwitchComponent};
6
+ import{a,b,c,d}from"../chunks/chunk.HUWXZ4ZN.js";import"../chunks/chunk.PYG4YVBA.js";import"../chunks/chunk.QZHEP4X2.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.24D46RLZ.js";import"../chunks/chunk.7ZS4N2FT.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.KYCC3C3M.js";import"../chunks/chunk.GVQVA7P3.js";import"../chunks/chunk.MIYZJUXH.js";import"../chunks/chunk.A23NSEWA.js";import"../chunks/chunk.BSZ2LBJX.js";import"../chunks/chunk.3E5QKMHL.js";import"../chunks/chunk.HN4PXH3D.js";import"../chunks/chunk.R4NDFXVA.js";import"../chunks/chunk.G76HB2FK.js";import"../chunks/chunk.MCIQXNKY.js";export{a as SWITCH_CONSTANTS,b as SwitchComponent,c as SwitchComponentDelegate,d as defineSwitchComponent};
7
7
  //# sourceMappingURL=index.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2022 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s}from"../chunks/chunk.3LZEQWAL.js";import"../chunks/chunk.E37HEAJ5.js";import"../chunks/chunk.YSE5EMB3.js";import"../chunks/chunk.DML4YNQF.js";import"../chunks/chunk.IMK2LFWR.js";import"../chunks/chunk.RPPBBBYG.js";import"../chunks/chunk.AWCBH5KW.js";import"../chunks/chunk.F5I55MXD.js";import"../chunks/chunk.Y6FFG7XO.js";import"../chunks/chunk.DGOV5RDW.js";import"../chunks/chunk.NGIBMR3Q.js";import"../chunks/chunk.7NXPOEXV.js";import"../chunks/chunk.QJPH24V4.js";import"../chunks/chunk.KGW63HJX.js";import"../chunks/chunk.54QFNVMG.js";import"../chunks/chunk.FZQCBRPK.js";import"../chunks/chunk.D3DLVPPE.js";import"../chunks/chunk.7JTKKFL4.js";import"../chunks/chunk.AMFXGOSA.js";import"../chunks/chunk.EC6JSIQW.js";import"../chunks/chunk.XYBFFTXS.js";import"../chunks/chunk.STS5TIUV.js";import"../chunks/chunk.3UMBCR4P.js";import"../chunks/chunk.BOENNFXE.js";import"../chunks/chunk.QXLPBYMX.js";import"../chunks/chunk.PYG4YVBA.js";import"../chunks/chunk.QZHEP4X2.js";import"../chunks/chunk.LZMYHIO2.js";import"../chunks/chunk.D4SNVKDA.js";import"../chunks/chunk.UUX4QJ4D.js";import"../chunks/chunk.YAJT3P6V.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.24D46RLZ.js";import"../chunks/chunk.7ZS4N2FT.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.KYCC3C3M.js";import"../chunks/chunk.GVQVA7P3.js";import"../chunks/chunk.MIYZJUXH.js";import"../chunks/chunk.A23NSEWA.js";import"../chunks/chunk.B3IJU6XJ.js";import"../chunks/chunk.BSZ2LBJX.js";import"../chunks/chunk.3E5QKMHL.js";import"../chunks/chunk.HN4PXH3D.js";import"../chunks/chunk.R4NDFXVA.js";import"../chunks/chunk.G76HB2FK.js";import"../chunks/chunk.MCIQXNKY.js";export{a as TIME_PICKER_CONSTANTS,b as TimePickerAdapter,q as TimePickerComponent,r as TimePickerComponentDelegate,p as TimePickerFoundation,s as defineTimePickerComponent,n as getCurrentTimeOfDayMillis,j as hoursToMillis,o as mergeDateWithTime,e as millisToHours,g as millisToMinutes,f as millisToMinutesClamped,i as millisToSeconds,h as millisToSecondsClamped,d as millisToTimeString,k as minutesToMillis,l as secondsToMillis,m as stripSecondsFromMillis,c as timeStringToMillis};
6
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s}from"../chunks/chunk.JAEVBPHT.js";import"../chunks/chunk.E37HEAJ5.js";import"../chunks/chunk.NNGE722W.js";import"../chunks/chunk.DML4YNQF.js";import"../chunks/chunk.IMK2LFWR.js";import"../chunks/chunk.RPPBBBYG.js";import"../chunks/chunk.AWCBH5KW.js";import"../chunks/chunk.F5I55MXD.js";import"../chunks/chunk.Y6FFG7XO.js";import"../chunks/chunk.HUWXZ4ZN.js";import"../chunks/chunk.NGIBMR3Q.js";import"../chunks/chunk.7NXPOEXV.js";import"../chunks/chunk.QJPH24V4.js";import"../chunks/chunk.KGW63HJX.js";import"../chunks/chunk.54QFNVMG.js";import"../chunks/chunk.FZQCBRPK.js";import"../chunks/chunk.D3DLVPPE.js";import"../chunks/chunk.7JTKKFL4.js";import"../chunks/chunk.AMFXGOSA.js";import"../chunks/chunk.EC6JSIQW.js";import"../chunks/chunk.XYBFFTXS.js";import"../chunks/chunk.STS5TIUV.js";import"../chunks/chunk.3UMBCR4P.js";import"../chunks/chunk.BOENNFXE.js";import"../chunks/chunk.QXLPBYMX.js";import"../chunks/chunk.PYG4YVBA.js";import"../chunks/chunk.QZHEP4X2.js";import"../chunks/chunk.LZMYHIO2.js";import"../chunks/chunk.D4SNVKDA.js";import"../chunks/chunk.UUX4QJ4D.js";import"../chunks/chunk.YAJT3P6V.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.24D46RLZ.js";import"../chunks/chunk.7ZS4N2FT.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.KYCC3C3M.js";import"../chunks/chunk.GVQVA7P3.js";import"../chunks/chunk.MIYZJUXH.js";import"../chunks/chunk.A23NSEWA.js";import"../chunks/chunk.B3IJU6XJ.js";import"../chunks/chunk.BSZ2LBJX.js";import"../chunks/chunk.3E5QKMHL.js";import"../chunks/chunk.HN4PXH3D.js";import"../chunks/chunk.R4NDFXVA.js";import"../chunks/chunk.G76HB2FK.js";import"../chunks/chunk.MCIQXNKY.js";export{a as TIME_PICKER_CONSTANTS,b as TimePickerAdapter,q as TimePickerComponent,r as TimePickerComponentDelegate,p as TimePickerFoundation,s as defineTimePickerComponent,n as getCurrentTimeOfDayMillis,j as hoursToMillis,o as mergeDateWithTime,e as millisToHours,g as millisToMinutes,f as millisToMinutesClamped,i as millisToSeconds,h as millisToSecondsClamped,d as millisToTimeString,k as minutesToMillis,l as secondsToMillis,m as stripSecondsFromMillis,c as timeStringToMillis};
7
7
  //# sourceMappingURL=index.js.map
@@ -33,7 +33,6 @@ export declare const SPLIT_VIEW_CONSTANTS: {
33
33
  export declare type SplitViewOrientation = 'horizontal' | 'vertical';
34
34
  export interface ISplitViewUpdateConfig {
35
35
  accessibility?: boolean;
36
- clearCursor?: boolean;
37
36
  cursor?: boolean;
38
37
  orientation?: SplitViewOrientation;
39
38
  properties?: Partial<ISplitViewBase>;
@@ -10,6 +10,7 @@ import { ISplitViewUpdateConfig, SplitViewOrientation } from '../split-view/spli
10
10
  import { ISplitViewComponent } from '../split-view/split-view';
11
11
  export interface ISplitViewPanelAdapter extends IBaseAdapter {
12
12
  initialize(): void;
13
+ tryRemoveOverlay(): void;
13
14
  setPointerdownListener(listener: (evt: PointerEvent) => void): void;
14
15
  setPointerupListener(listener: (evt: PointerEvent) => void): void;
15
16
  removePointerupListener(listener: (evt: PointerEvent) => void): void;
@@ -46,8 +47,10 @@ export declare class SplitViewPanelAdapter extends BaseAdapter<ISplitViewPanelCo
46
47
  private _ripple;
47
48
  private _content;
48
49
  private _parent?;
50
+ private _overlay?;
49
51
  constructor(component: ISplitViewPanelComponent);
50
52
  initialize(): void;
53
+ tryRemoveOverlay(): void;
51
54
  setPointerdownListener(listener: (evt: PointerEvent) => void): void;
52
55
  setPointerupListener(listener: (evt: PointerEvent) => void): void;
53
56
  removePointerupListener(listener: (evt: PointerEvent) => void): void;
@@ -101,7 +104,7 @@ export declare class SplitViewPanelAdapter extends BaseAdapter<ISplitViewPanelCo
101
104
  */
102
105
  setHandleCursor(orientation?: SplitViewOrientation, config?: ISplitViewPanelCursorConfig): void;
103
106
  /**
104
- * Applies a cursor style to the document body.
107
+ * Applies a cursor style to the overlay element covering the document body.
105
108
  * @param orientation The component's orientation.
106
109
  * @param config The component's resizable value and whether it's at the min or max value.
107
110
  */
@@ -7,7 +7,7 @@ import { getShadowElement, playKeyframeAnimation, toggleAttribute } from '@tyler
7
7
  import { BaseAdapter } from '../../core/base/base-adapter';
8
8
  import { SPLIT_VIEW_PANEL_CONSTANTS } from './split-view-panel-constants';
9
9
  import { SPLIT_VIEW_CONSTANTS } from '../split-view/split-view-constants';
10
- import { getCursor, getHandleIcon, getSplitViewPanelSibling } from './split-view-panel-utils';
10
+ import { getCursor, getHandleIcon, createOverlay, getSplitViewPanelSibling } from './split-view-panel-utils';
11
11
  export class SplitViewPanelAdapter extends BaseAdapter {
12
12
  constructor(component) {
13
13
  super(component);
@@ -24,6 +24,11 @@ export class SplitViewPanelAdapter extends BaseAdapter {
24
24
  this._parent = parent;
25
25
  }
26
26
  }
27
+ tryRemoveOverlay() {
28
+ var _a;
29
+ (_a = this._overlay) === null || _a === void 0 ? void 0 : _a.remove();
30
+ this._overlay = undefined;
31
+ }
27
32
  setPointerdownListener(listener) {
28
33
  this._handle.addEventListener('pointerdown', listener);
29
34
  }
@@ -155,9 +160,14 @@ export class SplitViewPanelAdapter extends BaseAdapter {
155
160
  var _a;
156
161
  this._root.classList.toggle(SPLIT_VIEW_PANEL_CONSTANTS.classes.GRABBED, value);
157
162
  this._handle.setAttribute('aria-grabbed', value.toString());
158
- (_a = this._parent) === null || _a === void 0 ? void 0 : _a.update({ clearCursor: true });
159
- if (!value) {
160
- document.body.style.removeProperty('cursor');
163
+ if (value) {
164
+ if (!this._overlay) {
165
+ this._overlay = createOverlay();
166
+ }
167
+ document.body.append(this._overlay);
168
+ }
169
+ else {
170
+ (_a = this._overlay) === null || _a === void 0 ? void 0 : _a.remove();
161
171
  }
162
172
  }
163
173
  /**
@@ -174,12 +184,13 @@ export class SplitViewPanelAdapter extends BaseAdapter {
174
184
  }
175
185
  }
176
186
  /**
177
- * Applies a cursor style to the document body.
187
+ * Applies a cursor style to the overlay element covering the document body.
178
188
  * @param orientation The component's orientation.
179
189
  * @param config The component's resizable value and whether it's at the min or max value.
180
190
  */
181
191
  setBodyCursor(orientation, config) {
182
- document.body.style.setProperty('cursor', getCursor(orientation, config));
192
+ var _a;
193
+ (_a = this._overlay) === null || _a === void 0 ? void 0 : _a.style.setProperty('cursor', getCursor(orientation, config));
183
194
  }
184
195
  /**
185
196
  * Gets the size of the content along the orientation axis. Does not include the resize handle.
@@ -29,6 +29,7 @@ export declare const SPLIT_VIEW_PANEL_CONSTANTS: {
29
29
  CLOSING: string;
30
30
  OPENING: string;
31
31
  DISABLED: string;
32
+ OVERLAY: string;
32
33
  };
33
34
  ids: {
34
35
  ROOT: string;
@@ -27,7 +27,8 @@ const classes = {
27
27
  CLOSED: 'forge-split-view-panel--closed',
28
28
  CLOSING: 'forge-split-view-panel--closing',
29
29
  OPENING: 'forge-split-view-panel--opening',
30
- DISABLED: 'forge-split-view-panel--disabled'
30
+ DISABLED: 'forge-split-view-panel--disabled',
31
+ OVERLAY: 'forge-split-view-panel-overlay'
31
32
  };
32
33
  const ids = {
33
34
  ROOT: 'root',