PageSourceSearch

https://web-static.kurobbs.com/resource/prod/assets/el-input-BGHNzqxF.js

js kurobbs.com collected 2026-10-09 01:18:18 UTC 16,159 bytes, 1 lines download raw bytes

1import{a as p,g as re,r as C,s as Q,w as M,b as Xe,I as K,u as a,o as ze,J as Pe,a4 as Qe,i as oe,k as Be,Y as qe,x as Ze,K as k,m,n as S,C as y,F as ne,t as b,l as Y,q as z,y as E,z as L,B as J,S as se,G as et,$ as tt,O as at,E as X,v as ot,N as we}from"./index-BMfzZz2f.js";import{p as Te,x as nt,R as st,cj as it,a3 as lt,C as Ee,B as rt,H as ut,v as ie,a7 as Fe,a4 as le,L as Ae,aK as dt,ck as ct,cl as pt,Y as ft,W as vt,af as _e,U as N,ae as mt,_ as yt,J as gt,br as ht,bm as Re}from"./useConfig-DLqk4N_9.js";import{cl as bt,cm as It}from"./index-DCU6Kl-8.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="8001c3af-bacf-42c4-8d8b-728956da3719",t._sentryDebugIdIdentifier="sentry-dbid-8001c3af-bacf-42c4-8d8b-728956da3719")}catch(s){}})();const xt=()=>Te&&/firefox/i.test(window.navigator.userAgent),St=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),Ct=t=>t,wt=["class","style"],Et=/^on[A-Z]/,Ft=(t={})=>{const{excludeListeners:n=!1,excludeKeys:s}=t,o=p(()=>((s==null?void 0:s.value)||[]).concat(wt)),i=re();return i?p(()=>{var l;return nt(Object.entries((l=i.proxy)==null?void 0:l.$attrs).filter(([d])=>!o.value.includes(d)&&!(n&&Et.test(d))))}):p(()=>({}))},Ve=t=>{const n=re();return p(()=>{var s,o;return(o=(s=n==null?void 0:n.proxy)==null?void 0:s.$props)==null?void 0:o[t]})};function At(t){const n=C();function s(){if(t.value==null)return;const{selectionStart:i,selectionEnd:l,value:d}=t.value;if(i==null||l==null)return;const v=d.slice(0,Math.max(0,i)),f=d.slice(Math.max(0,l));n.value={selectionStart:i,selectionEnd:l,value:d,beforeTxt:v,afterTxt:f}}function o(){if(t.value==null||n.value==null)return;const{value:i}=t.value,{beforeTxt:l,afterTxt:d,selectionStart:v}=n.value;if(l==null||d==null||v==null)return;let f=i.length;if(i.endsWith(d))f=i.length-d.length;else if(i.startsWith(l))f=l.length;else{const h=l[v-1],x=i.indexOf(h,v-1);x!==-1&&(f=x+1)}t.value.setSelectionRange(f,f)}return[s,o]}function _t(t,{afterFocus:n,beforeBlur:s,afterBlur:o}={}){const i=re(),{emit:l}=i,d=Q(),v=C(!1),f=c=>{v.value||(v.value=!0,l("focus",c),n==null||n())},h=c=>{var P;Xe(s)&&s(c)||c.relatedTarget&&((P=d.value)!=null&&P.contains(c.relatedTarget))||(v.value=!1,l("blur",c),o==null||o())},x=()=>{var c;(c=t.value)==null||c.focus()};return M(d,c=>{c&&c.setAttribute("tabindex","-1")}),st(d,"click",x),{wrapperRef:d,isFocused:v,handleFocus:f,handleBlur:h}}const ue=Symbol("formContextKey"),De=Symbol("formItemContextKey"),Rt=(t,n={})=>{const s=C(void 0),o=n.prop?s:Ve("size"),i=n.global?s:it(),l=n.form?{size:void 0}:K(ue,void 0),d=n.formItem?{size:void 0}:K(De,void 0);return p(()=>o.value||a(t)||(d==null?void 0:d.size)||(l==null?void 0:l.size)||i.value||"")},kt=t=>{const n=Ve("disabled"),s=K(ue,void 0);return p(()=>n.value||a(t)||(s==null?void 0:s.disabled)||!1)},zt=()=>{const t=K(ue,void 0),n=K(De,void 0);return{form:t,formItem:n}},Pt=(t,{formItemContext:n,disableIdGeneration:s,disableIdManagement:o})=>{s||(s=C(!1)),o||(o=C(!1));const i=C();let l;const d=p(()=>{var v;return!!(!t.label&&n&&n.inputIds&&((v=n.inputIds)==null?void 0:v.length)<=1)});return ze(()=>{l=M([Pe(t,"id"),s],([v,f])=>{const h=v!=null?v:f?void 0:lt().value;h!==i.value&&(n!=null&&n.removeInputId&&(i.value&&n.removeInputId(i.value),!(o!=null&&o.value)&&!f&&h&&n.addInputId(h)),i.value=h)},{immediate:!0})}),Qe(()=>{l&&l(),n!=null&&n.removeInputId&&i.value&&n.removeInputId(i.value)}),{isLabeledByFormItem:d,inputId:i}};let I;const Bt="\n  height:0 !important;\n  visibility:hidden !important;\n  ".concat(xt()?"":"overflow:hidden !important;","\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n"),Tt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Vt(t){const n=window.getComputedStyle(t),s=n.getPropertyValue("box-sizing"),o=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),i=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:Tt.map(d=>"".concat(d,":").concat(n.getPropertyValue(d))).join(";"),paddingSize:o,borderSize:i,boxSizing:s}}function ke(t,n=1,s){var o;I||(I=document.createElement("textarea"),document.body.appendChild(I)
1);const{paddingSize:i,borderSize:l,boxSizing:d,contextStyle:v}=Vt(t);I.setAttribute("style","".concat(v,";").concat(Bt)),I.value=t.value||t.placeholder||"";let f=I.scrollHeight;const h={};d==="border-box"?f=f+l:d==="content-box"&&(f=f-i),I.value="";const x=I.scrollHeight-i;if(Ee(n)){let c=x*n;d==="border-box"&&(c=c+i+l),f=Math.max(c,f),h.minHeight="".concat(c,"px")}if(Ee(s)){let c=x*s;d==="border-box"&&(c=c+i+l),f=Math.min(c,f)}return h.height="".concat(f,"px"),(o=I.parentNode)==null||o.removeChild(I),I=void 0,h}const Dt=rt({id:{type:String,default:void 0},size:ut,disabled:Boolean,modelValue:{type:ie([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ie([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Fe},prefixIcon:{type:Fe},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ie([Object,Array,String]),default:()=>Ct({})},autofocus:{type:Boolean,default:!1}}),Lt={[le]:t=>oe(t),input:t=>oe(t),change:t=>oe(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},Nt=["role"],Mt=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Kt=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Ht=Be({name:"ElInput",inheritAttrs:!1}),Ot=Be({...Ht,props:Dt,emits:Lt,setup(t,{expose:n,emit:s}){const o=t,i=qe(),l=Ze(),d=p(()=>{const e={};return o.containerRole==="combobox"&&(e["aria-haspopup"]=i["aria-haspopup"],e["aria-owns"]=i["aria-owns"],e["aria-expanded"]=i["aria-expanded"]),e}),v=p(()=>[o.type==="textarea"?ce.b():u.b(),u.m(de.value),u.is("disabled",A.value),u.is("exceed",Ke.value),{[u.b("group")]:l.prepend||l.append,[u.bm("group","append")]:l.append,[u.bm("group","prepend")]:l.prepend,[u.m("prefix")]:l.prefix||o.prefixIcon,[u.m("suffix")]:l.suffix||o.suffixIcon||o.clearable||o.showPassword,[u.bm("suffix","password-clear")]:j.value&&ee.value,[u.b("hidden")]:o.type==="hidden"},i.class]),f=p(()=>[u.e("wrapper"),u.is("focus",Z.value)]),h=Ft({excludeKeys:p(()=>Object.keys(d.value))}),{form:x,formItem:c}=zt(),{inputId:P}=Pt(o,{formItemContext:c}),de=Rt(),A=kt(),u=Ae("input"),ce=Ae("textarea"),H=Q(),w=Q(),q=C(!1),B=C(!1),O=C(!1),pe=C(),$=Q(o.inputStyle),_=p(()=>H.value||w.value),{wrapperRef:Le,isFocused:Z,handleFocus:W,handleBlur:U}=_t(_,{afterBlur(){var e;o.validateEvent&&((e=c==null?void 0:c.validate)==null||e.call(c,"blur").catch(r=>_e()))}}),fe=p(()=>{var e;return(e=x==null?void 0:x.statusIcon)!=null?e:!1}),T=p(()=>(c==null?void 0:c.validateState)||""),ve=p(()=>T.value&&dt[T.value]),Ne=p(()=>O.value?ct:pt),Me=p(()=>[i.style]),me=p(()=>[o.inputStyle,$.value,{resize:o.resize}]),F=p(()=>ft(o.modelValue)?"":String(o.modelValue)),j=p(()=>o.clearable&&!A.value&&!o.readonly&&!!F.value&&(Z.value||q.value)),ee=p(()=>o.showPassword&&!A.value&&!o.readonly&&!!F.value&&(!!F.value||Z.value)),R=p(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!A.value&&!o.readonly&&!o.showPassword),te=p(()=>F.value.length),Ke=p(()=>!!R.value&&te.value>Number(o.maxlength)),He=p(()=>!!l.suffix||!!o.suffixIcon||j.value||o.showPassword||R.value||!!T.value&&fe.value),[Oe,$e]=At(H);vt(w,e=>{if(We(),!R.value||o.resize!=="both")return;const r=e[0],{width:g}=r.contentRect;pe.value={right:"calc(100% - ".concat(g+15+6,"px)")}});const V=()=>{const{type:e,autosize:r}=o;if(!(!Te||e!=="textarea"||!w.value))if(r){const g=we(r)?r.minRows:void 0,G=we(r)?r.maxRows:void 0,Ce=ke(w.value,g,G);$.value={overflowY:"hidden",...Ce},k(()=>{w.value.offsetHeight,$.value=Ce})}else $.value={minHeight:ke(w.value).minHeight}},We=(e=>{let r=!1;return()=>{var g;if(r||!o.autosize)return;((g=w.value)==null?void 0:g.offsetParent)===null||(e(),r=!0)}})(V),D=()=>{const e=_.value,r=o.formatter?o.formatter(F.value):F.value;!e||e.value===r||(e.value=r)},ae=async e=>{Oe();let{value:r}=e.target;if(o.formatter&&(r=o.parser?o.parser(r):r),!B.value){if(r===F.value){D();return}s(le,r),s("input",r),await k(),D(),$e()}},ye=e=>{s("change",e.target.value)},ge=e=>{s("compositionstart",e),B.value=!0},he=e=>{var r;s("compositionupdate",e);const g=(r=e.target)==null?void 0:r.value,G=g[g.length-1]||"";B.value=!St(G)},be=e=>{s("compositionend",e),B.value&&(B.value=!1,ae(e))},Ue=()=>{O.value=!O.value,Ie()},Ie=async()=>{var e;await k(),(e=_.value)==null||e.focus()},je=()=>{var e;return(e=_.value)==null?void 0:e.blur()},Ge=e=>{q.value=!1,s("mouseleave",e)},Ye=e=>{q.value=!0,s("mouseenter",e)},xe=e=>{s("keydown",e)},Je=()=>{var e;(e=_.value)==null||e.select()},Se=()=>{s(le,""),s("change",""),s("clear"),s("input","")};return M(()=>o.modelValue,()=>{var e;k(()=>V()),o.validateEvent&&((e=c==null?void 0:c.validate)==null||e.call(c,"change").catch(r=>_e()))}),M(F,()=>D()),M(()=>o.type,async()=>{await k(),D(),V()}),ze(()=>{!o.formatter&&o.parser,D(),k(V)}),n({input:H,textarea:w,ref:_,textareaStyle:me,autosize:Pe(o,"autosize"),focus:Ie,blur:je,select:Je,clear:Se,resizeTextarea:V}),(e,r)=>(m(),S("div",se(a(d),{class:a(v),style:a(Me),role:e.containerRole,onMouseenter:Ye,onMouseleave:Ge}),[y(" input "),e.type!=="textarea"?(m(),S(ne,{key:0},[y(" prepend slot "),e.$slots.prepend?(m(),S("div",{key:0,class:b(a(u).be("group","prepe
1nd"))},[Y(e.$slots,"prepend")],2)):y("v-if",!0),z("div",{ref_key:"wrapperRef",ref:Le,class:b(a(f))},[y(" prefix slot "),e.$slots.prefix||e.prefixIcon?(m(),S("span",{key:0,class:b(a(u).e("prefix"))},[z("span",{class:b(a(u).e("prefix-inner"))},[Y(e.$slots,"prefix"),e.prefixIcon?(m(),E(a(N),{key:0,class:b(a(u).e("icon"))},{default:L(()=>[(m(),E(J(e.prefixIcon)))]),_:1},8,["class"])):y("v-if",!0)],2)],2)):y("v-if",!0),z("input",se({id:a(P),ref_key:"input",ref:H,class:a(u).e("inner")},a(h),{minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?O.value?"text":"password":e.type,disabled:a(A),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,onCompositionstart:ge,onCompositionupdate:he,onCompositionend:be,onInput:ae,onFocus:r[0]||(r[0]=(...g)=>a(W)&&a(W)(...g)),onBlur:r[1]||(r[1]=(...g)=>a(U)&&a(U)(...g)),onChange:ye,onKeydown:xe}),null,16,Mt),y(" suffix slot "),a(He)?(m(),S("span",{key:1,class:b(a(u).e("suffix"))},[z("span",{class:b(a(u).e("suffix-inner"))},[!a(j)||!a(ee)||!a(R)?(m(),S(ne,{key:0},[Y(e.$slots,"suffix"),e.suffixIcon?(m(),E(a(N),{key:0,class:b(a(u).e("icon"))},{default:L(()=>[(m(),E(J(e.suffixIcon)))]),_:1},8,["class"])):y("v-if",!0)],64)):y("v-if",!0),a(j)?(m(),E(a(N),{key:1,class:b([a(u).e("icon"),a(u).e("clear")]),onMousedown:tt(a(at),["prevent"]),onClick:Se},{default:L(()=>[et(a(mt))]),_:1},8,["class","onMousedown"])):y("v-if",!0),a(ee)?(m(),E(a(N),{key:2,class:b([a(u).e("icon"),a(u).e("password")]),onClick:Ue},{default:L(()=>[(m(),E(J(a(Ne))))]),_:1},8,["class"])):y("v-if",!0),a(R)?(m(),S("span",{key:3,class:b(a(u).e("count"))},[z("span",{class:b(a(u).e("count-inner"))},X(a(te))+" / "+X(e.maxlength),3)],2)):y("v-if",!0),a(T)&&a(ve)&&a(fe)?(m(),E(a(N),{key:4,class:b([a(u).e("icon"),a(u).e("validateIcon"),a(u).is("loading",a(T)==="validating")])},{default:L(()=>[(m(),E(J(a(ve))))]),_:1},8,["class"])):y("v-if",!0)],2)],2)):y("v-if",!0)],2),y(" append slot "),e.$slots.append?(m(),S("div",{key:1,class:b(a(u).be("group","append"))},[Y(e.$slots,"append")],2)):y("v-if",!0)],64)):(m(),S(ne,{key:1},[y(" textarea "),z("textarea",se({id:a(P),ref_key:"textarea",ref:w,class:a(ce).e("inner")},a(h),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:a(A),readonly:e.readonly,autocomplete:e.autocomplete,style:a(me),"aria-label":e.label,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,onCompositionstart:ge,onCompositionupdate:he,onCompositionend:be,onInput:ae,onFocus:r[2]||(r[2]=(...g)=>a(W)&&a(W)(...g)),onBlur:r[3]||(r[3]=(...g)=>a(U)&&a(U)(...g)),onChange:ye,onKeydown:xe}),null,16,Kt),a(R)?(m(),S("span",{key:0,style:ot(pe.value),class:b(a(u).e("count"))},X(a(te))+" / "+X(e.maxlength),7)):y("v-if",!0)],64))],16,Nt))}});var $t=yt(Ot,[["__file","input.vue"]]);const Xt=gt($t),Wt=[{aiRuleId:"img_tc260_agent",markInfo:"隐式标识-图片-TC260-AIGC-agent",match:"regex",pattern:"doubao|豆包|即梦|Dreamina|可灵|Kling|通义万相|Wanx|文心一格|ERNIE|天工|skywork|SkyWork|海螺|Hailuo|MiniMax|Vidu|混元|Hunyuan|Seedream|Seedance|PixVerse",priority:1,type:1},{aiRuleId:"img_tc260_label",markInfo:"隐式标识-图片-TC260-AIGC-Label",match:"regex",pattern:"AIGC[\\s\\S]{0,200}?Label\\W{0,6}1",priority:2,type:1},{aiRuleId:"img_c2pa_action",markInfo:"隐式标识-图片-C2PA-action",match:"regex",pattern:"c2pa\\.created|edited",priority:3,type:1},{aiRuleId:"img_digital_source_type",markInfo:"隐式标识-图片-digitalSourceType",match:"regex",pattern:"(composite[Ww]ith)?[Tt]rainedAlgorithmicMedia",priority:4,type:1},{aiRuleId:"img_c2pa_software_agent",markInfo:"隐式标识-图片-C2PA-softwareAgent",match:"regex",pattern:"Adobe.?Firefly|DALL[-·]?E|Midjourney|Niji[.-]?journey|Stable.?Diffusion|NovelAI|ChatGPT|gpt-image|OpenAI|Sora|ComfyUI|Leonardo|Ideogram|Runway|Volcengine|Luma|Pika|Veo\\s?\\d",priority:5,type:1}],Ut=[{aiRuleId:"video_tc260_agent",markInfo:"隐式标识-视频-TC260-AIGC-agent",match:"regex",pattern:"AIGC[\\s\\S]{0,512}?ContentProducer[\\s\\S]{0,30}?(doubao|豆包|即梦|Dreamina|可灵|Kling|通义万相|Wanx|文心一格|ERNIE|天工|SkyWork|海螺|Hailuo|MiniMax|Vidu|混元|Hunyuan|Seedream|Seedance|PixVerse)",priority:1,type:2},{aiRuleId:"video_tc260_label",markInfo:"隐式标识-视频-TC260-AIGC-Label",match:"regex",pattern:"AIGC[\\s\\S]{0,512}?Label\\W{0,6}[123]",priority:2,type:2},{aiRuleId:"video_c2pa_software_agent",markInfo:"隐式标识-视频-C2PA-softwareAgent",match:"regex",pattern:"(softwareAgent|claim_generator|model_name|c2pa\\.)[\\s\\S]{0,200}?(Runway([ -]?Gen[-·]?\\d)?|Sora|Veo|Luma|Pika|Vidu|Pixverse|Synthesia|HailuoAI|海螺AI|Stable.?Video|OpenAI|Volcengine|Adobe.?Firefly)",priority:3,type:2},{aiRuleId:"video_c2pa_action",markInfo:"隐式标识-视频-C2PA-action",match:"regex",pattern:"c2pa\\.created|edited",priority:4,type:2},{aiRuleId:"video_digital_source_type",markInfo:"隐式标识-视频-digitalSourceType",match:"regex",pattern:"(composite[Ww]ith)?[Tt]rainedAlgorithmicMedia",priority:5,type:2}
1],Qt=ht("useAiRuleStore",{state:()=>{const t=Re(bt,Wt,{mergeDefaults:!0}),n=Re(It,Ut,{mergeDefaults:!0});return{picAiRules:t,videoAiRules:n}},actions:{updateAiRules(t){var n,s;(n=t==null?void 0:t.picAiRules)!=null&&n.length&&(this.picAiRules=t.picAiRules),(s=t==null?void 0:t.videoAiRules)!=null&&s.length&&(this.videoAiRules=t.videoAiRules)}}});export{Xt as E,kt as a,zt as b,Rt as c,Pt as d,_t as e,De as f,ue as g,xt as h,St as i,Qt as j,Ct as m,Ft as u};

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.