PageSourceSearch

https://app.textmagic.com/assets/Dl2w7PgH.js

js textmagic.com collected 2026-09-24 08:31:02 UTC 2,906 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]=`edbb9b9d-7d90-469a-8cd7-9d670ff1e002`,e._sentryDebugIdIdentifier=`sentry-dbid-edbb9b9d-7d90-469a-8cd7-9d670ff1e002`)}catch{}})();import{A as e,At as t,Ct as n,D as r,F as i,Ft as a,H as o,L as s,M as c,O as l,P as u,Qt as d,Wt as f,ct as p,dn as m,fn as h,ft as g,gn as _,it as v,k as y,kt as b,q as x,x as S}from"./B_mscWxu.js";import{Cm as C,dl as w,gm as T}from"./Cf_pgd7T.js";import{Fi as E,Pi as D,Ti as O,mi as k}from"./index_Dp5kRkmW.js";import{n as A}from"./CoUb_X5i.js";o(),b(),d();var j={key:1,class:`body-text-regular-14 emphasize--text lh-20 break-spaces`},M=s({__name:`TmPromptModal`,setup(o){let{getParams:s}=T(`prompt`),{getCallback:d,removeCallback:b}=A(),{onClose:M}=E(),N=s(),P=d(N.promptId),F=a(``),I=a(!0),L=()=>f(F).trim(),R=()=>{let{validations:e}=N;if(!e?.length)I.value=!0;else{let t=L();I.value=e.every(e=>e(t))}return I.value},z=()=>{let e=F.value.trim();R()&&P(e||null)};return M(()=>{b(N.promptId)}),(a,o)=>(v(),l(D,{title:f(N).title,"cancel-button-text":f(N).cancelButtonText,"hide-cancel-button":``},{"modal-content":n(()=>[f(N).textComponent?(v(),l(g(f(N).textComponent),h(x({key:0},f(N).textComponentProps)),null,16)):f(N).text?(v(),e(`div`,j,[typeof f(N).text==`string`?(v(),e(S,{key:0},[u(_(f(N).text),1)],64)):(v(),l(w,{key:1,keypath:f(N).text.translateKey},c({_:2},[p(f(N).text.slots,e=>({name:e.name,fn:n(()=>[r(`span`,{class:m([`body-text-semi-bold-14 emphasize--text`,e.className||``])},_(e.value),3)])}))]),1032,[`keypath`]))])):y(``,!0),r(`div`,{class:m([`tm-prompt-modal__field`,{"mt-4":!!f(N).inputLabel}])},[i(O,{label:f(N).inputLabel},{default:n(()=>[i(k,{modelValue:f(F),"onUpdate:modelValue":o[0]||(o[0]=e=>t(F)?F.value=e:null),"error-state":!f(I),placeholder:f(N).inputPlaceholder,onBlur:R},{error:n(()=>[u(_(f(N).invalidInputText||a.$t(`common.invalid`)),1)]),_:1},8,[`modelValue`,`error-state`,`placeholder`])]),_:1},8,[`label`])],2)]),"modal-footer-button":n(()=>[i(C,{onClick:o[1]||(o[1]=e=>f(P)(null))},{default:n(()=>[u(_(f(N).cancelButtonText||a.$t(`common.cancel`)),1)]),_:1}),i(C,{color:f(N).submitColor||`primary`,size:`large`,disable:!L(),onClick:z},{default:n(()=>[u(_(f(N).submitText||a.$t(`common.save`)),1)]),_:1},8,[`color`,`disable`])]),_:1},8,[`title`,`cancel-button-text`]))}});export{M as default};
2//# sourceMappingURL=Dl2w7PgH.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.