PageSourceSearch

https://primariatiamare.ro/_nuxt/ScriptEditor-Br0aQW4x.C2xrFYiD.js

js primariatiamare.ro collected 2026-10-03 18:58:30 UTC 2,483 bytes, 7 lines download raw bytes

1import{aW as _}from"./entry.0U_9hCsv.js";import{_ as v,d as V,r as g,i as y,l as P,m as h,t as I,n as w,j as x,aw as B,I as E}from"./FormEditor.umd.min.DGrVv1kM.js";import{j,a as u,G as C,s as k,c as A}from"./AutocompleteDefinitions-lPh6rwFM.Uj7UVtzK.js";import"./Globals-Dr6G6hh4.C5MCsFHU.js";try{let o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new o.Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="2ca4149c-3559-407d-a04e-87eec3e95222",o._sentryDebugIdIdentifier="sentry-dbid-2ca4149c-3559-407d-a04e-87eec3e95222")}catch{}const D=V({__name:"ScriptEditor",props:{modelValue:{type:String,required:!1},variables:{type:Array,required:!1}},emits:["update:modelValue"],setup(o,{emit:i}){const c=B({loader:()=>_(()=>import("./vue-codemirror.esm-XFf6NDez.9DcoxDQ4.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(e=>e.Codemirror),loadingComponent:E});g(!1);const l=o,m=i,d=y({get(){return l.modelValue?l.modelValue:""},set(e){m("update:modelValue",e)}}),p=[],n={};(()=>{Object.entries(C).filter(e=>{var t;return(t=l.variables)==null?void 0:t.includes(e[0])}).forEach(e=>{var t;const a=e[1].autocomplete,s=e[1].properties;a&&p.push(a),s&&(n[(t=e[1].autocomplete)==null?void 0:t.label]=Object.entries(s).map(r=>({info:r[1].info,type:r[1].type,label:r[0]})))})})();const f=e=>{let t=k(e.state).resolveInner(e.pos,-1),a=e.state.sliceDoc(t.from,e.pos),s=/\w*$/.exec(a);if(!s&&!e.explicit)return null;const r=A(e);if(r)return{from:s?t.from+s.index:e.pos,options:n[r.path[0]]?n[r.path[0]]:[]}},b=[j(),u.data.of({autocomplete:p}),u.data.of({autocomplete:f})];return(e,t)=>(P(),h("div",null,[t[1]||(t[1]=I("h3",null,"On submit function",-1)),w(x(c),{id:e.$attrs.id,class:"p-0",modelValue:d.value,"onUpdate:modelValue":t[0]||(t[0]=a=>d.value=a),style:{height:"400px"},autofocus:!0,indentWithTab:!0,tabSize:4,extensions:b},null,8,["id","modelValue"])]))}}),G=v(D,[["__scopeId","data-v-243ee330"],["__file","/var/lib/jenkins/workspace/dps-form-editor/src/components/UIControls/ScriptEditor/ScriptEditor.vue"]]);export{G as default};
2function __vite__mapDeps(indexes) {
3  if (!__vite__mapDeps.viteFileDeps) {
4    __vite__mapDeps.viteFileDeps = ["./vue-codemirror.esm-XFf6NDez.9DcoxDQ4.js","./FormEditor.umd.min.DGrVv1kM.js","./entry.0U_9hCsv.js","./AutocompleteDefinitions-lPh6rwFM.Uj7UVtzK.js","./Globals-Dr6G6hh4.C5MCsFHU.js"]
5  }
6  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7}

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.