PageSourceSearch

https://app.textmagic.com/assets/D3F14Cl-.js

js textmagic.com collected 2026-09-24 08:28:56 UTC 2,597 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`20260924-39003-d97a9715`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:textmagic-web-app":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e8c1e019-7687-4ed5-8172-46cbf0a10b59`,e._sentryDebugIdIdentifier=`sentry-dbid-e8c1e019-7687-4ed5-8172-46cbf0a10b59`)}catch{}})();import{At as e,E as t,Ft as n,H as r,R as i,U as a,Wt as o,kt as s,nt as c,tt as l,yt as u}from"./B_mscWxu.js";import"./Cf_pgd7T.js";import{_p as d}from"./BmC5PC1V.js";import{ka as f}from"./HxBUjrm7.js";r(),s();var p=0;function m(r){p+=1;let s=p,m=a(f,null),h=i();if(!h)throw Error(`useStatelessFormControl must be called within setup()`);let g=t(()=>(e(r.name)?o(r.name):r.name)??h.props.name??void 0),_=t(()=>o(r.modelValue)??h.props.modelValue),v=t(()=>e(r.validators)?o(r.validators):r.validators??h.props.validators??[]),y=t(()=>e(r.errors)?o(r.errors):r.errors??h.props.errors??[]),b=t(()=>e(r.validationMode)?o(r.validationMode):r.validationMode??h.props.validationMode??`ondemand`),x=n([]),S=n({}),C=!1,w=0,T=t(()=>(x.value??[]).concat(y.value)),E={async validate(){if(!v.value||v.value.length===0)return x.value=[],S.value={},!0;let e=new Map,t=v.value.filter(e=>e.customCallBack);t.length>0&&t.forEach(t=>{e.set(t.name,t.customCallBack)});let n=E.getValue(),r=++w;try{let{valid:t,errors:i,rulesResults:a}=await d().validate({value:n,validators:v.value??[],formValues:m?.getFormData()??{},crossFieldValues:{},localValidators:e,validationInitiator:`form`});return r===w?(x.value=i,S.value=a,t):!1}catch{return r===w?(x.value=[],S.value={},!1):!1}},getName(){return g.value??(m?`${m.getId()}-${s}`:`stateless-form-control-${s}`)},getValue(){return _.value},getErrors(){return T.value},resetErrors(){x.value=[],S.value={}},getRulesResults(){return S.value},reset(){r.reset(),C=!1},touch:()=>{C=!0},isTouched:()=>C,shouldShowErrors:()=>C&&T.value.length>0,focus:()=>{r.focus?.()},handleBlur:()=>{E.touch(),b.value===`onblur`&&E.validate()}};return l(()=>m?.register(E)),c(()=>m?.unregister(E)),u(_,()=>{b.value===`onchange`?E?.validate():E?.resetErrors()}),u([v,b],()=>{C&&E?.validate()}),{form:m,control:E}}export{m as t};
2//# sourceMappingURL=D3F14Cl-.js.map

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.