UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

53 lines 34.6 kB
/*! For license information please see 64809.0824d19cd4963e9c.js.LICENSE.txt */ "use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[64809],{3449:function(t,e,o){o(62953);var i=o(40445),r=o(5124),a=o(67576);let n,l,s=t=>t;class h extends r.WF{render(){return(0,r.qy)(n||(n=s`<slot></slot>`))}constructor(...t){super(...t),this.disabled=!1}}h.styles=(0,r.AH)(l||(l=s`:host{display:block;color:var(--mdc-text-field-label-ink-color,rgba(0,0,0,.6));font-size:var(--ha-font-size-s);padding-left:16px;padding-right:16px;padding-inline-start:16px;padding-inline-end:16px;letter-spacing:var( --mdc-typography-caption-letter-spacing, .0333333333em );line-height:normal}:host([disabled]){color:var(--mdc-text-field-disabled-ink-color,rgba(0,0,0,.6))}`)),(0,i.Cg)([(0,a.MZ)({type:Boolean,reflect:!0})],h.prototype,"disabled",void 0),h=(0,i.Cg)([(0,a.EM)("ha-input-helper-text")],h)},31157:function(t,e,o){o.a(t,async function(t,i){try{o.r(e),o.d(e,{HaNumberSelector:function(){return m}});o(62953);var r=o(40445),a=o(5124),n=o(67576),l=o(1087),s=(o(3449),o(70759)),h=o(91485),p=t([s,h]);[s,h]=p.then?(await p)():p;let d,u,c,v,b,f,w=t=>t;class m extends a.WF{reportValidity(){var t,e;return null===(t=null===(e=this._input)||void 0===e?void 0:e.reportValidity())||void 0===t||t}willUpdate(t){t.has("value")&&(""!==this._valueStr&&this.value===Number(this._valueStr)||(this._valueStr=null==this.value||isNaN(this.value)?"":this.value.toString()))}render(){var t,e,o,i,r,n,l,s,h,p,f,m,y,g;const x="box"===(null===(t=this.selector.number)||void 0===t?void 0:t.mode)||void 0===(null===(e=this.selector.number)||void 0===e?void 0:e.min)||void 0===(null===(o=this.selector.number)||void 0===o?void 0:o.max);let k;var $;if(!x&&(k=null!==($=this.selector.number.step)&&void 0!==$?$:1,"any"===k)){k=1;const t=(this.selector.number.max-this.selector.number.min)/100;for(;k>t;)k/=10}const C=null===(i=this.selector.number)||void 0===i?void 0:i.translation_key;let M=null===(r=this.selector.number)||void 0===r?void 0:r.unit_of_measurement;return x&&M&&this.localizeValue&&C&&(M=this.localizeValue(`${C}.unit_of_measurement.${M}`)||M),(0,a.qy)(d||(d=w` ${0} <div class="input"> ${0} <ha-input .inputMode="${0}" .label="${0}" .placeholder="${0}" class="${0}" .min="${0}" .max="${0}" .value="${0}" .step="${0}" .hint="${0}" .disabled="${0}" .required="${0}" type="number" autoValidate .withoutSpinButtons="${0}" @input="${0}"> ${0} </ha-input> </div> ${0} `),this.label&&!x?(0,a.qy)(u||(u=w`${0}${0}`),this.label,this.required?"*":""):a.s6,x?a.s6:(0,a.qy)(c||(c=w` <ha-slider labeled .min="${0}" .max="${0}" .value="${0}" .step="${0}" .disabled="${0}" .required="${0}" @change="${0}" .withMarkers="${0}"> </ha-slider> `),this.selector.number.min,this.selector.number.max,this.value,k,this.disabled,this.required,this._handleSliderChange,(null===(n=this.selector.number)||void 0===n?void 0:n.slider_ticks)||!1),"any"===(null===(l=this.selector.number)||void 0===l?void 0:l.step)||(null!==(s=null===(h=this.selector.number)||void 0===h?void 0:h.step)&&void 0!==s?s:1)%1!=0?"decimal":"numeric",x?this.label:void 0,void 0!==this.placeholder?this.placeholder.toString():"",x?"single":"",null===(p=this.selector.number)||void 0===p?void 0:p.min,null===(f=this.selector.number)||void 0===f?void 0:f.max,null!==(m=this._valueStr)&&void 0!==m?m:"",null!==(y=null===(g=this.selector.number)||void 0===g?void 0:g.step)&&void 0!==y?y:1,x?this.helper:void 0,this.disabled,this.required,!x,this._handleInputChange,M?(0,a.qy)(v||(v=w`<span slot="end">${0}</span>`),M):a.s6,!x&&this.helper?(0,a.qy)(b||(b=w`<ha-input-helper-text .disabled="${0}">${0}</ha-input-helper-text>`),this.disabled,this.helper):a.s6)}_handleInputChange(t){t.stopPropagation(),this._valueStr=t.target.value;const e=""===t.target.value||isNaN(t.target.value)?void 0:Number(t.target.value);this.value!==e&&(0,l.r)(this,"value-changed",{value:e})}_handleSliderChange(t){t.stopPropagation();const e=Number(t.target.value);this.value!==e&&(0,l.r)(this,"value-changed",{value:e})}constructor(...t){super(...t),this.required=!0,this.disabled=!1,this._valueStr=""}}m.styles=(0,a.AH)(f||(f=w`.input{display:flex;justify-content:space-between;align-items:center;direction:ltr}ha-slider{flex:1;margin-right:16px;margin-inline-end:16px;margin-inline-start:0}ha-input::part(wa-input){width:40px}ha-input.single{flex:1}`)),(0,r.Cg)([(0,n.MZ)({attribute:!1})],m.prototype,"selector",void 0),(0,r.Cg)([(0,n.MZ)({type:Number})],m.prototype,"value",void 0),(0,r.Cg)([(0,n.MZ)({type:Number})],m.prototype,"placeholder",void 0),(0,r.Cg)([(0,n.MZ)()],m.prototype,"label",void 0),(0,r.Cg)([(0,n.MZ)()],m.prototype,"helper",void 0),(0,r.Cg)([(0,n.MZ)({attribute:!1})],m.prototype,"localizeValue",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean})],m.prototype,"required",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean})],m.prototype,"disabled",void 0),(0,r.Cg)([(0,n.P)("ha-input",!0)],m.prototype,"_input",void 0),m=(0,r.Cg)([(0,n.EM)("ha-selector-number")],m),i()}catch(d){i(d)}})},70759:function(t,e,o){o.a(t,async function(t,e){try{o(62953);var i=o(40445),r=o(60346),a=o(5124),n=o(67576),l=o(63091),s=t([r]);r=(s.then?(await s)():s)[0];let h,p=t=>t;class d extends r.A{connectedCallback(){super.connectedCallback(),this.dir=l.G.document.dir}static get styles(){return[r.A.styles,(0,a.AH)(h||(h=p`:host{--track-size:var(--ha-slider-track-size, 4px);--marker-height:calc(var(--ha-slider-track-size, 4px) / 2);--marker-width:calc(var(--ha-slider-track-size, 4px) / 2);--wa-color-surface-default:var(--card-background-color);--wa-color-neutral-fill-normal:var( --ha-slider-track-color, var(--disabled-color) );--wa-tooltip-background-color:var( --ha-tooltip-background-color, var(--secondary-background-color) );--wa-tooltip-content-color:var( --ha-tooltip-text-color, var(--primary-text-color) );--wa-tooltip-font-family:var( --ha-tooltip-font-family, var(--ha-font-family-body) );--wa-tooltip-font-size:var( --ha-tooltip-font-size, var(--ha-font-size-s) );--wa-tooltip-font-weight:var( --ha-tooltip-font-weight, var(--ha-font-weight-normal) );--wa-tooltip-line-height:var( --ha-tooltip-line-height, var(--ha-line-height-condensed) );--wa-tooltip-padding:var(--ha-tooltip-padding, var(--ha-space-2));--wa-tooltip-border-radius:var( --ha-tooltip-border-radius, var(--ha-border-radius-sm) );--wa-tooltip-arrow-size:var(--ha-tooltip-arrow-size, 0px);--wa-tooltip-border-width:0px;--wa-z-index-tooltip:1000;min-width:100px;min-inline-size:100px;width:200px}#slider{padding-block:14px;margin-block:-14px}#thumb{border:none;background-color:var(--ha-slider-thumb-color,var(--primary-color));overflow:hidden}#thumb:after{content:"";border-radius:50%;position:absolute;width:calc(var(--thumb-width) * 2 + 8px);height:calc(var(--thumb-height) * 2 + 8px);left:calc(-50% - 4px);top:calc(-50% - 4px);cursor:pointer}#slider:focus-visible:not(.disabled) #thumb,#slider:focus-visible:not(.disabled) #thumb-max,#slider:focus-visible:not(.disabled) #thumb-min{outline:var(--wa-focus-ring)}#track:after{content:"";position:absolute;top:calc(-50% - 4px);left:0;width:100%;height:calc(var(--track-size) * 2 + 8px);cursor:pointer}#indicator{background-color:var(--ha-slider-indicator-color,var(--primary-color))}:host([size=medium]){--thumb-width:20px;--thumb-height:20px}:host([size=small]){--thumb-width:16px;--thumb-height:16px}`))]}constructor(...t){super(...t),this.size="small",this.withTooltip=!0}}(0,i.Cg)([(0,n.MZ)({reflect:!0})],d.prototype,"size",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,attribute:"with-tooltip"})],d.prototype,"withTooltip",void 0),d=(0,i.Cg)([(0,n.EM)("ha-slider")],d),e()}catch(h){e(h)}})},34127:function(t,e,o){o.a(t,async function(t,e){try{o(62953);var i=o(40445),r=o(52630),a=o(5124),n=o(67576),l=t([r]);r=(l.then?(await l)():l)[0];let s,h=t=>t;class p extends r.A{static get styles(){return[r.A.styles,(0,a.AH)(s||(s=h`:host{--wa-tooltip-background-color:var( --ha-tooltip-background-color, var(--ha-color-surface-default) );--wa-tooltip-content-color:var( --ha-tooltip-text-color, var(--primary-text-color) );--wa-tooltip-font-family:var( --ha-tooltip-font-family, var(--ha-font-family-body) );--wa-tooltip-font-size:var( --ha-tooltip-font-size, var(--ha-font-size-m) );--wa-tooltip-font-weight:var( --ha-tooltip-font-weight, var(--ha-font-weight-medium) );--wa-tooltip-line-height:var( --ha-tooltip-line-height, var(--ha-line-height-condensed) );--wa-tooltip-padding:var(--ha-tooltip-padding, var(--ha-space-2));--wa-tooltip-border-radius:var( --ha-tooltip-border-radius, var(--ha-border-radius-md) );--wa-tooltip-arrow-size:var(--ha-tooltip-arrow-size, 0px);--wa-tooltip-border-width:0px;--wa-z-index-tooltip:1000}.tooltip::part(popup){animation-duration:var(--ha-tooltip-animation-duration, 0)}.body{box-shadow:var(--ha-tooltip-box-shadow,var(--ha-box-shadow-m))}`))]}constructor(...t){super(...t),this.showDelay=350,this.hideDelay=150}}(0,i.Cg)([(0,n.MZ)({attribute:"show-delay",type:Number})],p.prototype,"showDelay",void 0),(0,i.Cg)([(0,n.MZ)({attribute:"hide-delay",type:Number})],p.prototype,"hideDelay",void 0),p=(0,i.Cg)([(0,n.EM)("ha-tooltip")],p),e()}catch(s){e(s)}})},69235:function(t,e,o){o.a(t,async function(t,e){try{o(3362),o(62953);"function"!=typeof window.ResizeObserver&&(window.ResizeObserver=(await o.e(71055).then(o.bind(o,52370))).default),e()}catch(i){e(i)}},1)},35370:function(t,e,o){var i=o(26198);t.exports=function(t,e,o){for(var r=0,a=arguments.length>2?o:i(e),n=new t(a);a>r;)n[r]=e[r++];return n}},30006:function(t,e,o){o.a(t,async function(t,e){try{o(74423),o(27495),o(62953);var i=o(5124),r=o(67576),a=o(6412),n=o(63672),l=o(34514),s=o(37541),h=o(40991),p=o(92070),d=o(28225),u=o(41268),c=o(9395),v=o(62676),b=o(15477),f=o(31896),w=o(17060),m=(o(38625),o(96272)),y=t([w]);w=(y.then?(await y)():y)[0];let $,C,M,A,Z,z,E,T=t=>t;var g=Object.defineProperty,x=Object.getOwnPropertyDescriptor,k=(t,e,o,i)=>{for(var r,a=i>1?void 0:i?x(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(a=(i?r(e,o,a):r(a))||a);return i&&a&&g(e,o,a),a};let B=class extends v.q{static get validators(){return[...super.validators,(0,u.i)()]}get value(){var t;return this.valueHasChanged?this._value:null!==(t=this._value)&&void 0!==t?t:this.defaultValue}set value(t){this._value!==t&&(this.valueHasChanged=!0,this._value=t)}handleSizeChange(){(0,h.b)(this.localName,this.size)}handleChange(t){this.value=this.input.value,this.relayNativeEvent(t,{bubbles:!0,composed:!0})}clear(){""!==this.value&&(this.value="",this.updateComplete.then(()=>{this.dispatchEvent(new s.I),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})),this.input.focus()}handleClearClick(t){t.preventDefault(),this.clear()}handleInput(){this.value=this.input.value}handleKeyDown(t){(0,d.U)(t,this)}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}updated(t){if(super.updated(t),t.has("value")||t.has("defaultValue")||t.has("type")){const t=["number","date","time","datetime-local"];this.input&&t.includes(this.type)&&this.value&&this.input.value!==this.value&&(this._value=this.input.value),this.customStates.set("blank",!this.value),this.updateValidity()}}handleStepChange(){this.input.step=String(this.step),this.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,o="none"){this.input.setSelectionRange(t,e,o)}setRangeText(t,e,o,i="preserve"){const r=null!=e?e:this.input.selectionStart,a=null!=o?o:this.input.selectionEnd;this.input.setRangeText(t,r,a,i),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}formResetCallback(){this.value=null,this.input&&(this.input.value=this.value),super.formResetCallback()}render(){var t;const e=this.hasUpdated?this.hasSlotController.test("label"):this.withLabel,o=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,r=!!this.label||!!e,s=!!this.hint||!!o,h=this.withClear&&!this.disabled&&!this.readonly,p=(i.S$||this.hasUpdated)&&h&&("number"==typeof this.value||this.value&&this.value.length>0);return(0,i.qy)($||($=T` <label part="form-control-label label" class="${0}" for="input" aria-hidden="${0}"> <slot name="label">${0}</slot> </label> <div part="base" class="text-field"> <slot name="start" part="start" class="start"></slot> <input part="input" id="input" class="control" type="${0}" title="${0}" name="${0}" ?disabled="${0}" ?readonly="${0}" ?required="${0}" placeholder="${0}" minlength="${0}" maxlength="${0}" min="${0}" max="${0}" step="${0}" .value="${0}" autocapitalize="${0}" autocomplete="${0}" autocorrect="${0}" ?autofocus="${0}" spellcheck="${0}" pattern="${0}" enterkeyhint="${0}" inputmode="${0}" aria-describedby="hint" @change="${0}" @input="${0}" @keydown="${0}"> ${0} ${0} <slot name="end" part="end" class="end"></slot> </div> <slot id="hint" part="hint" name="hint" class="${0}" aria-hidden="${0}">${0}</slot> `),(0,a.H)({label:!0,"has-label":r}),r?"false":"true",this.label,"password"===this.type&&this.passwordVisible?"text":this.type,this.title,(0,n.J)(this.name),this.disabled,this.readonly,this.required,(0,n.J)(this.placeholder),(0,n.J)(this.minlength),(0,n.J)(this.maxlength),(0,n.J)(this.min),(0,n.J)(this.max),(0,n.J)(this.step),(0,l.V)(null!==(t=this.value)&&void 0!==t?t:""),(0,n.J)(this.autocapitalize),(0,n.J)(this.autocomplete),this.autocorrect?"on":"off",this.autofocus,this.spellcheck,(0,n.J)(this.pattern),(0,n.J)(this.enterkeyhint),(0,n.J)(this.inputmode),this.handleChange,this.handleInput,this.handleKeyDown,p?(0,i.qy)(C||(C=T` <slot name="clear-button"> <button part="clear-button" class="clear" type="button" aria-label="${0}" @click="${0}" tabindex="-1"> <slot name="clear-icon"> <wa-icon name="circle-xmark" library="system" variant="regular"></wa-icon> </slot> </button> </slot> `),this.localize.term("clearEntry"),this.handleClearClick):"",this.passwordToggle&&!this.disabled?(0,i.qy)(M||(M=T` <slot name="password-toggle-button"> <button part="password-toggle-button" class="password-toggle" type="button" aria-label="${0}" @click="${0}" tabindex="-1"> ${0} </button> </slot> `),this.localize.term(this.passwordVisible?"hidePassword":"showPassword"),this.handlePasswordToggle,this.passwordVisible?(0,i.qy)(Z||(Z=T` <slot name="hide-password-icon"> <wa-icon name="eye-slash" library="system" variant="regular"></wa-icon> </slot> `)):(0,i.qy)(A||(A=T` <slot name="show-password-icon"> <wa-icon name="eye" library="system" variant="regular"></wa-icon> </slot> `))):"",(0,a.H)({"has-slotted":s}),s?"false":"true",this.hint)}constructor(){super(...arguments),this.assumeInteractionOn=["blur","input"],this.hasSlotController=new p.X(this,"hint","label"),this.localize=new w.c(this),this.title="",this.type="text",this._value=null,this.defaultValue=this.getAttribute("value")||null,this.size="m",this.appearance="outlined",this.pill=!1,this.label="",this.hint="",this.withClear=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.withoutSpinButtons=!1,this.required=!1,this.spellcheck=!0,this.withLabel=!1,this.withHint=!1}};B.css=[f.A,b.A,m.A],B.shadowRootOptions=Object.assign(Object.assign({},v.q.shadowRootOptions),{},{delegatesFocus:!0}),k([(0,r.P)("input")],B.prototype,"input",2),k([(0,r.MZ)()],B.prototype,"title",2),k([(0,r.MZ)({reflect:!0})],B.prototype,"type",2),k([(0,r.wk)()],B.prototype,"value",1),k([(0,r.MZ)({attribute:"value",reflect:!0})],B.prototype,"defaultValue",2),k([(0,r.MZ)({reflect:!0})],B.prototype,"size",2),k([(0,c.w)("size")],B.prototype,"handleSizeChange",1),k([(0,r.MZ)({reflect:!0})],B.prototype,"appearance",2),k([(0,r.MZ)({type:Boolean,reflect:!0})],B.prototype,"pill",2),k([(0,r.MZ)()],B.prototype,"label",2),k([(0,r.MZ)({attribute:"hint"})],B.prototype,"hint",2),k([(0,r.MZ)({attribute:"with-clear",type:Boolean})],B.prototype,"withClear",2),k([(0,r.MZ)()],B.prototype,"placeholder",2),k([(0,r.MZ)({type:Boolean,reflect:!0})],B.prototype,"readonly",2),k([(0,r.MZ)({attribute:"password-toggle",type:Boolean})],B.prototype,"passwordToggle",2),k([(0,r.MZ)({attribute:"password-visible",type:Boolean})],B.prototype,"passwordVisible",2),k([(0,r.MZ)({attribute:"without-spin-buttons",type:Boolean,reflect:!0})],B.prototype,"withoutSpinButtons",2),k([(0,r.MZ)({type:Boolean,reflect:!0})],B.prototype,"required",2),k([(0,r.MZ)()],B.prototype,"pattern",2),k([(0,r.MZ)({type:Number})],B.prototype,"minlength",2),k([(0,r.MZ)({type:Number})],B.prototype,"maxlength",2),k([(0,r.MZ)()],B.prototype,"min",2),k([(0,r.MZ)()],B.prototype,"max",2),k([(0,r.MZ)()],B.prototype,"step",2),k([(0,r.MZ)()],B.prototype,"autocapitalize",2),k([(0,r.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"off"===t),toAttribute:t=>t?"on":"off"}})],B.prototype,"autocorrect",2),k([(0,r.MZ)()],B.prototype,"autocomplete",2),k([(0,r.MZ)({type:Boolean})],B.prototype,"autofocus",2),k([(0,r.MZ)()],B.prototype,"enterkeyhint",2),k([(0,r.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],B.prototype,"spellcheck",2),k([(0,r.MZ)()],B.prototype,"inputmode",2),k([(0,r.MZ)({attribute:"with-label",type:Boolean})],B.prototype,"withLabel",2),k([(0,r.MZ)({attribute:"with-hint",type:Boolean})],B.prototype,"withHint",2),k([(0,c.w)("step",{waitUntilFirstUpdate:!0})],B.prototype,"handleStepChange",1),B=k([(0,r.EM)("wa-input")],B),null===(z=(E=B).disableWarning)||void 0===z||z.call(E,"change-in-update"),e()}catch($){e($)}})},96272:function(t,e,o){o.d(e,{A:function(){return r}});let i;var r=(0,o(5124).AH)(i||(i=(t=>t)`:host{border-width:0}:host(:focus){outline:0}.text-field{display:flex;align-items:stretch;justify-content:start;position:relative;transition:inherit;height:var(--wa-form-control-height);border-color:var(--wa-form-control-border-color);border-radius:var(--wa-form-control-border-radius);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);cursor:text;color:var(--wa-form-control-value-color);font-size:var(--wa-form-control-value-font-size);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);vertical-align:middle;width:100%;transition:background-color var(--wa-transition-normal),border-color var(--wa-transition-normal),outline-color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);background-color:var(--wa-form-control-background-color);box-shadow:var(--box-shadow);padding:0 var(--wa-form-control-padding-inline);outline:var(--wa-focus-ring-style) var(--wa-focus-ring-width) transparent;outline-offset:var(--wa-focus-ring-offset)}.text-field:focus-within{outline-color:var(--wa-color-focus)}.text-field:has(:disabled){cursor:not-allowed;opacity:.5}:host([appearance=outlined]) .text-field{background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color)}:host([appearance=filled]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-color-neutral-fill-quiet)}:host([appearance=filled-outlined]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-form-control-border-color)}:host([pill]) .text-field{border-radius:var(--wa-border-radius-pill)!important}.text-field:has(:-webkit-autofill),.text-field:has(:autofill){background-color:var(--wa-color-brand-fill-quiet)!important}.text-field input,.text-field textarea{height:100%;padding:0;border:none;outline:0;box-shadow:none;margin:0;cursor:inherit;-webkit-appearance:none;font:inherit}:is(.text-field input,.text-field textarea):-webkit-autofill,:is(.text-field input,.text-field textarea):-webkit-autofill:active,:is(.text-field input,.text-field textarea):-webkit-autofill:focus,:is(.text-field input,.text-field textarea):-webkit-autofill:hover{-webkit-background-clip:text;background-color:transparent;-webkit-text-fill-color:inherit}input{flex:1 1 auto;min-width:0;height:100%;transition:inherit;background-color:rgb(118 118 118 / 0);height:calc(var(--wa-form-control-height) - var(--border-width) * 2);padding-block:0;color:inherit}input:autofill,input:autofill:active,input:autofill:focus,input:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}input::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{-webkit-appearance:none}input:focus{outline:0}textarea:autofill,textarea:autofill:active,textarea:autofill:focus,textarea:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}textarea::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}.end,.start{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default}:is(.start,.end)::slotted(wa-icon){color:var(--wa-color-neutral-on-quiet)}.start::slotted(*){margin-inline-end:var(--wa-form-control-padding-inline)}.end::slotted(*){margin-inline-start:var(--wa-form-control-padding-inline)}.clear,.password-toggle{display:inline-flex;align-items:center;justify-content:center;font-size:inherit;color:var(--wa-color-neutral-on-quiet);border:none;background:0 0;padding:0;transition:var(--wa-transition-normal) color;cursor:pointer;margin-inline-start:var(--wa-form-control-padding-inline)}@media (hover:hover){:is(.clear,.password-toggle):hover{color:color-mix(in oklab,currentColor,var(--wa-color-mix-hover))}}:is(.clear,.password-toggle):active{color:color-mix(in oklab,currentColor,var(--wa-color-mix-active))}:is(.clear,.password-toggle):focus{outline:0}::-ms-reveal{display:none}:host([without-spin-buttons]) input[type=number]{-moz-appearance:textfield}:host([without-spin-buttons]) input[type=number]::-webkit-inner-spin-button,:host([without-spin-buttons]) input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}`))},52630:function(t,e,o){o.a(t,async function(t,i){try{o.d(e,{A:function(){return M}});o(74423),o(44114),o(18111),o(22489),o(3362),o(27495),o(62953);var r=o(5124),a=o(67576),n=o(6412),l=o(17051),s=o(42462),h=o(28438),p=o(98779),d=o(27259),u=o(25877),c=o(984),v=o(95010),b=o(9395),f=o(717),w=o(40158),m=o(51920),y=t([w]);w=(y.then?(await y)():y)[0];let $,C=t=>t;var g=Object.defineProperty,x=Object.getOwnPropertyDescriptor,k=(t,e,o,i)=>{for(var r,a=i>1?void 0:i?x(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(a=(i?r(e,o,a):r(a))||a);return i&&a&&g(e,o,a),a};let M=class extends f.A{connectedCallback(){super.connectedCallback(),this.eventController.signal.aborted&&(this.eventController=new AbortController),this.addEventListener("mouseout",this.handleMouseOut),this.open&&(this.open=!1,this.updateComplete.then(()=>{this.open=!0})),this.id||(this.id=(0,v.N)("wa-tooltip-")),this.for&&this.anchor?(this.anchor=null,this.handleForChange()):this.for&&this.handleForChange()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this),this.eventController.abort(),this.anchor&&this.removeFromAriaLabelledBy(this.anchor,this.id)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}addToAriaLabelledBy(t,e){const o=(t.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean);o.includes(e)||(o.push(e),t.setAttribute("aria-labelledby",o.join(" ")))}removeFromAriaLabelledBy(t,e){const o=(t.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean).filter(t=>t!==e);o.length>0?t.setAttribute("aria-labelledby",o.join(" ")):t.removeAttribute("aria-labelledby")}async handleOpenChange(){if(this.open){if(this.disabled)return;const t=new p.k;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);document.addEventListener("keydown",this.handleDocumentKeyDown,{signal:this.eventController.signal}),(0,u.AZ)(this),this.body.hidden=!1,this.popup.active=!0,await(0,d.Ud)(this.popup.popup,"show-with-scale"),this.popup.reposition(),this.dispatchEvent(new s.q)}else{const t=new h.L;if(this.dispatchEvent(t),t.defaultPrevented)return void(this.open=!1);document.removeEventListener("keydown",this.handleDocumentKeyDown),(0,u.Fw)(this),await(0,d.Ud)(this.popup.popup,"hide-with-scale"),this.popup.active=!1,this.body.hidden=!0,this.dispatchEvent(new l.Z)}}handleForChange(){const t=this.getRootNode();if(!t)return;const e=this.for?t.getElementById(this.for):null,o=this.anchor;if(e===o)return;const{signal:i}=this.eventController;e&&(this.addToAriaLabelledBy(e,this.id),e.addEventListener("blur",this.handleBlur,{capture:!0,signal:i}),e.addEventListener("focus",this.handleFocus,{capture:!0,signal:i}),e.addEventListener("click",this.handleClick,{signal:i}),e.addEventListener("mouseover",this.handleMouseOver,{signal:i}),e.addEventListener("mouseout",this.handleMouseOut,{signal:i})),o&&(this.removeFromAriaLabelledBy(o,this.id),o.removeEventListener("blur",this.handleBlur,{capture:!0}),o.removeEventListener("focus",this.handleFocus,{capture:!0}),o.removeEventListener("click",this.handleClick),o.removeEventListener("mouseover",this.handleMouseOver),o.removeEventListener("mouseout",this.handleMouseOut)),this.anchor=e}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,(0,c.l)(this,"wa-after-show")}async hide(){if(this.open)return this.open=!1,(0,c.l)(this,"wa-after-hide")}render(){return(0,r.qy)($||($=C` <wa-popup part="base" exportparts=" popup:base__popup, arrow:base__arrow " class="${0}" placement="${0}" distance="${0}" skidding="${0}" flip shift ?arrow="${0}" hover-bridge .anchor="${0}"> <div part="body" class="body"> <slot></slot> </div> </wa-popup> `),(0,n.H)({tooltip:!0,"tooltip-open":this.open}),this.placement,this.distance,this.skidding,!this.withoutArrow,this.anchor)}constructor(){super(...arguments),this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.showDelay=150,this.hideDelay=0,this.trigger="hover focus",this.withoutArrow=!1,this.for=null,this.anchor=null,this.eventController=new AbortController,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.open&&(0,u.a0)(this)&&(t.preventDefault(),t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{this.hasTrigger("hover")&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),this.showDelay))},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){var t;const e=Boolean(null===(t=this.anchor)||void 0===t?void 0:t.matches(":hover")),o=this.matches(":hover");if(e||o)return;clearTimeout(this.hoverTimeout),e||o||(this.hoverTimeout=window.setTimeout(()=>{this.hide()},this.hideDelay))}}}};M.css=m.A,M.dependencies={"wa-popup":w.A},k([(0,a.P)("slot:not([name])")],M.prototype,"defaultSlot",2),k([(0,a.P)(".body")],M.prototype,"body",2),k([(0,a.P)("wa-popup")],M.prototype,"popup",2),k([(0,a.MZ)()],M.prototype,"placement",2),k([(0,a.MZ)({type:Boolean,reflect:!0})],M.prototype,"disabled",2),k([(0,a.MZ)({type:Number})],M.prototype,"distance",2),k([(0,a.MZ)({type:Boolean,reflect:!0})],M.prototype,"open",2),k([(0,a.MZ)({type:Number})],M.prototype,"skidding",2),k([(0,a.MZ)({attribute:"show-delay",type:Number})],M.prototype,"showDelay",2),k([(0,a.MZ)({attribute:"hide-delay",type:Number})],M.prototype,"hideDelay",2),k([(0,a.MZ)()],M.prototype,"trigger",2),k([(0,a.MZ)({attribute:"without-arrow",type:Boolean,reflect:!0})],M.prototype,"withoutArrow",2),k([(0,a.MZ)()],M.prototype,"for",2),k([(0,a.wk)()],M.prototype,"anchor",2),k([(0,b.w)("open",{waitUntilFirstUpdate:!0})],M.prototype,"handleOpenChange",1),k([(0,b.w)("for")],M.prototype,"handleForChange",1),k([(0,b.w)(["distance","placement","skidding"])],M.prototype,"handleOptionsChange",1),k([(0,b.w)("disabled")],M.prototype,"handleDisabledChange",1),M=k([(0,a.EM)("wa-tooltip")],M),i()}catch($){i($)}})},51920:function(t,e,o){o.d(e,{A:function(){return r}});let i;var r=(0,o(5124).AH)(i||(i=(t=>t)`:host{--max-width:30ch;display:inline-block;position:absolute;color:var(--wa-tooltip-content-color);font-size:var(--wa-tooltip-font-size);line-height:var(--wa-tooltip-line-height);text-align:start;white-space:normal}.tooltip{--arrow-size:var(--wa-tooltip-arrow-size);--arrow-color:var(--wa-tooltip-background-color)}.tooltip::part(popup){z-index:1000}.tooltip[placement^=top]::part(popup){transform-origin:bottom}.tooltip[placement^=bottom]::part(popup){transform-origin:top}.tooltip[placement^=left]::part(popup){transform-origin:right}.tooltip[placement^=right]::part(popup){transform-origin:left}.body{display:block;width:max-content;max-width:var(--max-width);border-radius:var(--wa-tooltip-border-radius);background-color:var(--wa-tooltip-background-color);border:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color);padding:.25em .5em;user-select:none;-webkit-user-select:none}.tooltip{--popup-border-width:var(--wa-tooltip-border-width)}.tooltip::part(arrow){border-bottom:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color);border-right:var(--wa-tooltip-border-width) var(--wa-tooltip-border-style) var(--wa-tooltip-border-color)}`))},37541:function(t,e,o){o.d(e,{I:function(){return i}});class i extends Event{constructor(){super("wa-clear",{bubbles:!0,cancelable:!1,composed:!0})}}},984:function(t,e,o){o.d(e,{l:function(){return i}});o(3362);function i(t,e){return new Promise(o=>{t.addEventListener(e,function i(r){r.target===t&&(t.removeEventListener(e,i),o())})})}},95010:function(t,e,o){o.d(e,{q:function(){return r},N:function(){return a}});o(54743),o(11745),o(16573),o(78100),o(77936),o(21489),o(48140),o(75044),o(21903),o(91134),o(28845),o(373),o(37467),o(44732),o(79577),o(16632),o(34226),o(9486),o(20456);let i=(t=21)=>{let e="",o=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&o[t]];return e};function r(t,e,o){const i=t=>Object.is(t,-0)?0:t;return i(t<e?e:t>o?o:t)}function a(t=""){return`${t}${i()}`}},28225:function(t,e,o){o.d(e,{U:function(){return i}});o(74423),o(62953);function i(t,e){const o=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"!==t.key||o||setTimeout(()=>{t.defaultPrevented||t.isComposing||function(t){let e=null;"form"in t&&(e=t.form);!e&&"getForm"in t&&(e=t.getForm());if(!e)return;const o=[...e.elements];if(1===o.length)return void e.requestSubmit(null);const i=o.find(t=>"submit"===t.type&&!t.matches(":disabled"));if(!i)return;["input","button"].includes(i.localName)?e.requestSubmit(i):i.click()}(e)})}},15477:function(t,e,o){o.d(e,{A:function(){return r}});let i;var r=(0,o(5124).AH)(i||(i=(t=>t)`:host{display:flex;flex-direction:column}[part~=form-control]{display:contents}:is([part~=form-control-label],[part~=label]).has-label,:is([part~=form-control-label],[part~=label]):has(:not(:empty)){display:inline-flex;color:var(--wa-form-control-label-color);font-weight:var(--wa-form-control-label-font-weight);line-height:var(--wa-form-control-label-line-height);margin-block-end:0.5em}:host([required]) :is([part~=form-control-label],[part~=label])::after{content:var(--wa-form-control-required-content);margin-inline-start:var(--wa-form-control-required-content-offset);color:var(--wa-form-control-required-content-color)}[part~=hint]{display:block;color:var(--wa-form-control-hint-color);font-weight:var(--wa-form-control-hint-font-weight);line-height:var(--wa-form-control-hint-line-height);margin-block-start:0.5em;font-size:var(--wa-font-size-smaller)}[part~=hint]:not(.has-slotted,.has-hint){display:none}`))},34514:function(t,e,o){o.d(e,{V:function(){return n}});o(16280),o(62953);var i=o(5055),r=o(42017),a=o(63937);const n=(0,r.u$)(class extends r.WL{render(t){return t}update(t,[e]){if(e===i.c0||e===i.s6)return e;const o=t.element,n=t.name;if(t.type===r.OA.PROPERTY){if(e===o[n])return i.c0}else if(t.type===r.OA.BOOLEAN_ATTRIBUTE){if(!!e===o.hasAttribute(n))return i.c0}else if(t.type===r.OA.ATTRIBUTE&&o.getAttribute(n)===e+"")return i.c0;return(0,a.mY)(t),e}constructor(t){if(super(t),t.type!==r.OA.PROPERTY&&t.type!==r.OA.ATTRIBUTE&&t.type!==r.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,a.Rt)(t))throw Error("`live` bindings can only contain a single expression")}})},89784:function(t,e,o){o.d(e,{W:function(){return l}});o(16280),o(74423),o(72712),o(18111),o(18237),o(27495),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(25440),o(62953);var i=o(5055),r=o(42017);const a="important",n=" !"+a,l=(0,r.u$)(class extends r.WL{render(t){return Object.keys(t).reduce((e,o)=>{const i=t[o];return null==i?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)null==e[i]&&(this.ft.delete(i),i.includes("-")?o.removeProperty(i):o[i]=null);for(const i in e){const t=e[i];if(null!=t){this.ft.add(i);const e="string"==typeof t&&t.endsWith(n);i.includes("-")||e?o.setProperty(i,e?t.slice(0,-11):t,e?a:""):o[i]=t}}return i.c0}constructor(t){var e;if(super(t),t.type!==r.OA.ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}})}}]);