1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[205,9650],{70205:(t,e,i)=>{i.d(e,{a:()=>s,b:()=>u,c:()=>l,d:()=>c,g:()=>o,p:()=>h,s:()=>d});let a=async(t,e)=>new Promise(i=>{setTimeout(()=>i(t()),e)}),s=async(t,e=2e3)=>Promise.race([new Promise((t,i)=>{setTimeout(i,e)}),new Promise(async e=>{let i;for(;[void 0,null].includes(i=t());)await a(()=>null,10);e(i)})]),l=["altKey","ctrlKey","metaKey","shiftKey"],n=["badInput","valueMissing","tooLong","tooShort","typeMismatch","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch"],r=(t,e)=>t?e?Object.keys(e).reduce((t,i)=>{var a;return t.replace(RegExp(`\\{${i}\\}`,"g"),String(null!=(a=null==e?void 0:e[i])?a:""))},t):t:null,o=(t,e,i,a,s)=>{var l;if(e.customError)return i;let o=((t,e)=>{var i;return e&&Array.isArray(t)?null!=(i=t.find(t=>Object.keys(e).every(i=>{var a;return(null==(a=null==t?void 0:t.componentFilter)?void 0:a[i])===(null==e?void 0:e[i])})))?i:t.find(t=>void 0===t.componentFilter):t})(t,s);for(let t of n)if(e[t])return null!=(l=r(null==o?void 0:o[t],a))?l:i;return i},d=t=>{var e;return[...null!=(e=null==t?void 0:t.querySelectorAll("[type=submit],button:not([type]),omk-button:not([type])"))?e:[],...(null==t?void 0:t.id)?document.querySelectorAll(`button[form=${t.id}], omk-button[form=${t.id}]`):[]]},h=(t,e)=>t.endsWith("px")?parseFloat(t):t.endsWith("rem")?parseFloat(t)*parseFloat(getComputedStyle(document.documentElement).fontSize):t.endsWith("em")?parseFloat(t)*parseFloat(getComputedStyle(e).fontSize):parseFloat(t),u=(t,e,i)=>Math.min(Math.max(t,e),i),c=t=>{switch(t){case"top":return["bottom","left","right"];case"bottom":return["top","left","right"];case"left":return["right","top","bottom"];case"right":return["left","bottom","top"];case"top-start":return["bottom-start","top-end","bottom-end","right-start","left-start"];case"top-end":return["bottom-end","left","top","bottom","top-start","bottom-start","right-start"];case"bottom-start":return["top-start","bottom-end","top-end","left-start","right-start"];case"bottom-end":return["top-end","bottom-start","top-start","right-end","left-end"];case"left-start":return["right-start","left-end","right-end","top-start","bottom-start"];case"left-end":return["right-end","left-start","right-start","top-end","bottom-end"];case"right-start":return["left-start","right-end","left-end","bottom-start","top-start"];case"right-end":return["left-end","right-start","left-start","bottom-end","top-end"]}}},89650:(t,e,i)=>{i.r(e),i.d(e,{omk_percentage_field:()=>n});var a=i(42573);i(42122);var s=i(70205),l=i(20160);let n=class{constructor(t){(0,a.r)(this,t),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.value="",this.ariaLabel=null,this.label="",this.placeholder="",this.name="",this.disabled=!1,this.readOnly=!1,this.required=!1,this.customValidationMessage="",this.supportingText="",this.min="0",this.max="100",this.step="1",this.autocomplete="",this.hideValidationMessage=!1,this.alwaysShowValidationMessage=!1,this.hideDefaultClearButton=!1,this.initialValue="",this.validityKeys=["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valid","valueMissing"],this.handleInput=async t=>{var e,i;this.value=null!=(i=null==(e=t.target)?void 0:e.value)?i:"",await this.validate()},this.handleValidationRelatedEvent=async()=>{await this.validate()}}get textField(){return this.el.shadowRoot.querySelector("omk-text-field")}componentWillLoad(){this.initialValue=this.value||"",this.syncFormValue()}componentDidLoad(){queueMicrotask(()=>this.validate())}componentDidRender(){queueMicrotask(()=>this.validate())}validityMatches(t,e){return this.validityKeys.every(i=>!!(null==t?void 0:t[i])==!!(null==e?void 0:e[i]))}syncFormValue(){if(this.disabled)return void this.internals.setFormValue(null);this.internals.setFormValue(this.value)}syncHostValidity(){var t,e,i,a,n,r,o;let d=null==(t=this.el.shadowRoot)?void 0:t.querySelector("omk-text-field");if(!d)return void this.syncFormValue();this.syncFormValue();
1let h=null!=(i=null==(e=d.shadowRoot)?void 0:e.querySelector(".input"))?i:void 0,u="";this.disabled?(d.internalOverriddenValidationMessage=void 0,this.internals.setValidity({},"",h)):this.customValidationMessage?(d.internalOverriddenValidationMessage=void 0,u=this.customValidationMessage,this.internals.setValidity({customError:!0},u,h)):d.validity?(u=(0,s.g)(null!=(n=null==(a=l.l.componentValidationMessageOverrides)?void 0:a["omk-percentage-field"])?n:{},d.validity,null!=(r=d.validationMessage)?r:"",{step:this.step,min:this.min,max:this.max,value:this.value,valueLength:null==(o=this.value)?void 0:o.length,label:this.label}),d.validity.valid?(this.internals.setValidity({},"",h),u=""):this.internals.setValidity(d.validity,u,h)):this.internals.setValidity({},"",h),d.internalOverriddenValidationMessage=u||void 0;let c=this.internals.validity;this.validityMatches(this.validity,c)||(this.validity=c);let v=this.internals.validationMessage;this.validationMessage!==v&&(this.validationMessage=v)}async checkValidity(){let t=await this.textField.checkValidity();return await this.validate(),t}async reportValidity(){let t=await this.textField.reportValidity();return await this.validate(),t}async setCustomValidity(t){await this.textField.setCustomValidity(t),await this.validate()}async stepDown(t){await this.textField.stepDown(t),this.value=this.textField.value,await this.validate()}async stepUp(t){await this.textField.stepUp(t),this.value=this.textField.value,await this.validate()}async reset(){this.value=this.initialValue,this.textField.value=this.initialValue,await this.textField.reset(),await this.validate()}async clear(){await this.textField.clear(),this.value=this.textField.value,await this.validate()}async validate(t){var e,i;return this.textField.internalOverriddenValidationMessage=void 0,await this.textField.validate(t),this.value=this.textField.value,this.syncHostValidity(),null==(i=null==(e=this.validity)?void 0:e.valid)||i}formResetCallback(){this.reset()}formAssociatedCallback(t){(0,s.s)(t).forEach(t=>t.addEventListener("click",()=>{this.validate(!0)}))}render(){return(0,a.h)("omk-text-field",{key:"6246a0d55a9109ae69d142231064b911e9a724f4",autocomplete:this.autocomplete,type:"number",min:this.min,max:this.max,step:this.step,inputmode:"decimal",label:this.label,placeholder:this.placeholder,value:this.value,disabled:this.disabled,readOnly:this.readOnly,required:this.required,
1customValidationMessage:this.customValidationMessage,hideValidationMessage:this.hideValidationMessage,alwaysShowValidationMessage:this.alwaysShowValidationMessage,supportingText:this.supportingText,"aria-label":this.ariaLabel,hideDefaultClearButton:this.hideDefaultClearButton,hasTrailingIcon:!this.hideDefaultClearButton,suffixText:"%",onInput:this.handleInput,onChange:this.handleValidationRelatedEvent,onBlur:this.handleValidationRelatedEvent},(0,a.h)("slot",{key:"7572c360c3655f4b2f22ecc98f8e899ba9e2add0",slot:"leading-icon",name:"leading-icon"}))}static get delegatesFocus(){return!0}static get formAssociated(){return!0}get el(){return(0,a.a)(this)}};n.style=":host{display:block}"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.