homeassistant/custom_components/hacs/hacs_frontend_experimental/frontend_latest/5943.qTsmzFDBk9s.js

3 lines
68 KiB
JavaScript
Raw Normal View History

2025-01-10 21:08:35 -08:00
/*! For license information please see 5943.qTsmzFDBk9s.js.LICENSE.txt */
export const id=5943;export const ids=[5943];export const modules={49412:(e,t,i)=>{i.d(t,{K:()=>k});var c=i(43204),d=(i(11027),i(65666),i(75642),i(98691)),l=i(74015),o=["input","button","textarea","select"],n=function(e){var t=e.target;if(t){var i=(""+t.tagName).toLowerCase();-1===o.indexOf(i)&&e.preventDefault()}};function a(e,t){for(var i=new Map,c=0;c<e;c++){var d=t(c).trim();if(d){var l=d[0].toLowerCase();i.has(l)||i.set(l,[]),i.get(l).push({text:d.toLowerCase(),index:c})}}return i.forEach((function(e){e.sort((function(e,t){return e.index-t.index}))})),i}function r(e,t){var i,c=e.nextChar,d=e.focusItemAtIndex,o=e.sortedIndexByFirstChar,n=e.focusedItemIndex,a=e.skipFocus,r=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout((function(){!function(e){e.typeaheadBuffer=""}(t)}),l.KT.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+c,i=1===t.typeaheadBuffer.length?function(e,t,i,c){var d=c.typeaheadBuffer[0],l=e.get(d);if(!l)return-1;if(d===c.currentFirstChar&&l[c.sortedIndexCursor].index===t){c.sortedIndexCursor=(c.sortedIndexCursor+1)%l.length;var o=l[c.sortedIndexCursor].index;if(!i(o))return o}c.currentFirstChar=d;var n,a=-1;for(n=0;n<l.length;n++)if(!i(l[n].index)){a=n;break}for(;n<l.length;n++)if(l[n].index>t&&!i(l[n].index)){a=n;break}if(-1!==a)return c.sortedIndexCursor=a,l[c.sortedIndexCursor].index;return-1}(o,n,r,t):function(e,t,i){var c=i.typeaheadBuffer[0],d=e.get(c);if(!d)return-1;var l=d[i.sortedIndexCursor];if(0===l.text.lastIndexOf(i.typeaheadBuffer,0)&&!t(l.index))return l.index;var o=(i.sortedIndexCursor+1)%d.length,n=-1;for(;o!==i.sortedIndexCursor;){var a=d[o],r=0===a.text.lastIndexOf(i.typeaheadBuffer,0),s=!t(a.index);if(r&&s){n=o;break}o=(o+1)%d.length}if(-1!==n)return i.sortedIndexCursor=n,d[i.sortedIndexCursor].index;return-1}(o,r,t),-1===i||a||d(i),i}function s(e){return e.typeaheadBuffer.length>0}var m=i(18601),p=i(14114),h=i(82612),u=i(38341),f=i(12335),_=i(72774),g=i(45253),b={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},x={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},v={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330};const y=function(e){function t(i,d){void 0===d&&(d={});var l=e.call(this,(0,c.__assign)((0,c.__assign)({},t.defaultAdapter),i))||this;return l.disabled=!1,l.isMenuOpen=!1,l.useDefaultValidation=!0,l.customValidity=!0,l.lastSelectedIndex=v.UNSET_INDEX,l.clickDebounceTimeout=0,l.recentlyClicked=!1,l.leadingIcon=d.leadingIcon,l.helperText=d.helperText,l}return(0,c.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return b},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return v},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return x},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return-1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelec
//# sourceMappingURL=5943.qTsmzFDBk9s.js.map