PageSourceSearch

https://staticb2c.juneyaoair.com/b2cpro1790753209884/DIw6cUfW.js

js juneyaoair.com collected 2026-10-02 05:23:06 UTC 2,594 bytes, 1 lines download raw bytes

1import{d as P,a as d,s as R,c as p,M as $,N as q,a4 as f,aa as m,O as u,a8 as h,_ as z,u as O,D as U,Z,n as G}from"./BbQbBpsT.js";import{S as H}from"./DmRevPhN.js";import{_ as J}from"./DlAUqK2U.js";const K={class:"ho-input"},L={class:"ho-input-orginal"},Q=["placeholder","readonly","value"],W=P({__name:"ho-input",props:{disabled:{type:Boolean,default:()=>!1},type:{default:()=>"text"},autocomplete:{default:()=>"off"},label:{},modelValue:{default:()=>""},placeholder:{},readonly:{type:Boolean,default:()=>!1},rules:{}},emits:["input","change","focus","blur","compositionstart","compositionupdate","compositionend"],setup(V,{emit:B}){const l=B,n=V,r=d(!1),i=d(!1),g=R(),c=d(""),v=d(""),s=p(()=>n.modelValue||""),I=p(()=>g.value),S=p(()=>{var e;return!!((e=n==null?void 0:n.rules)!=null&&e.length)}),y=p(()=>n.rules||[]),b=()=>{const e=I.value;!e||e.value===s.value||(e.value=s.value)},_=async e=>{const t=e.target.value;if(!r.value){if(t===s.value){b();return}l("input",t),await G(),b()}},w=e=>{const a=e.target.value;C("change",a),l("change",a)},F=e=>{l("compositionstart",e),r.value=!0},k=e=>{l("compositionupdate",e),r.value=!0},D=e=>{l("compositionend",e),r.value&&(r.value=!1,_(e))},E=e=>{i.value=!0,l("focus",e)},M=e=>{i.value=!1,C("blur",s.value),l("blur",e)},C=async(e,a)=>{if(!S.value)return!1;const t=N(e);return t.length===0?!0:(c.value="validating",T(a,t).then(()=>!0).catch(o=>{const{fields:A}=o;return Promise.reject(A)}))},N=e=>(n.rules||[]).filter(t=>!t.trigger||!e?!0:Array.isArray(t.trigger)?t.trigger.includes(e):t.trigger===e).map(({trigger:t,...o})=>o),T=async(e,a)=>new H({model:a}).validate({model:e},{firstFields:!0}).then(()=>(c.value="success",!0)).catch(o=>(j(o),Promise.reject(o))),j=e=>{var o;const{errors:a,fields:t}=e;c.value="error",v.value=a?((o=a==null?void 0:a[0])==null?void 0:o.message)??`${n.label} is required`:""};return(e,a)=>($(),q("div",K,[f(u("label",{class:z(["label",{noneValue:!s.value&&!i.value}])},h(e.label),3),[[m,e.label]]),u("div",L,[u("input",{class:"ho-input-inner",id:"inputId",ref_key:"input",ref:g,type:"text",placeholder:i.value&&e.label?e.placeholder:"",readonly:"readonly"in e?e.readonly:O(U),autocomplete:"off",value:s.value,onInput:_,onFocus:E,onBlur:M,onChange:w,onCompositionstart:F,onCompositionupdate:k,onCompositionend:D},null,40,Q),Z(e.$slots,"description",{},void 0,!0)]),f(u("div",{class:"validate-errors"},h(v.value),513),[[m,c.value==="error"&&!!v.value]]),f(u("div",{class:"validate-errors"},h(y.value.length>0?y.value[0].message:""),513),[[m,!s.value]])]))}}),ee=J(W,[["__scopeId","data-v-45fe1ba1"]]);export{ee as h};

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.