PageSourceSearch

https://www.zaq.ai/_nuxt/B6w_62Mz.js

js zaq.ai collected 2026-10-05 13:22:09 UTC 2,915 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DNDieyWa.js","./BrkBPn3Y.js","./entry.BTkKFlfe.css"])))=>i.map(i=>d[i]);
2import{_ as S,z as B,r as i,C as g,e as C,c as r,o as d,a as c,O as f,b as E,t as v,P as e,a1 as L,a2 as D,U as x,a0 as P,f as I,V as G,R as M,b7 as O,a7 as U}from"./BrkBPn3Y.js";const z=M(()=>U(()=>import("./DNDieyWa.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(p=>p.default||p)),A={class:"sub-types"},j={class:"local-t"},$={key:0,class:"mt-4"},q={class:"autoInsertRow"},F={key:0,class:"autoInsertRow"},H=["placeholder","disabled"],J={key:1,class:"pagesReference mb-2"},K={__name:"Local",props:{props:{type:Object,default:()=>({})},savedView:{type:Object,default:()=>({})},instance:{type:Boolean,default:!1},linked:{type:Boolean,default:!1}},emits:["addSectionType","load"],setup(p,{emit:T}){const{t:l}=B(),a=p,u=T,o=i(!1),y=i(!1),b=i(!1),n=i(""),h=i([]),k=g(()=>a.savedView.id||`id-${Date.now()}`),w=g(()=>a.savedView.weight||0),m=g(()=>a.instance||a.linked);function V(){if(y.value=!1,m.value&&!n.value){y.value=!0;return}u("addSectionType",{name:a.props.name,type:"local",id:k.value,weight:w.value,auto_insertion:o.value,instance_name:n.value})}async function N(){u("load",!0);try{const t=await O(a.props.linked_to);t.res&&t.res.data?(o.value=t.res.data.auto_insertion,t.res.data.pages&&t.res.data.pages.length>0&&(h.value=t.res.data.pages.map(s=>s.path)),n.value=t.res.data.name):t.error&&console.error("Error loading global type:",t.error?.response?.data?.message||"Unknown error")}catch(t){console.error("Error fetching global type data:",t)}finally{u("load",!1)}}return C(()=>{a.instance||setTimeout(()=>{u("addSectionType",{name:a.props.name,type:"local",id:k.value,weight:w.value,auto_insertion:o.value,instance_name:a.props.instance_name})},500),a.props.linked_to&&N()}),(t,s)=>{const R=z;return d(),r("div",A,[c("h4",j,v(a.props.linked_to?e(L)(e(D)(a.props.linked_to,"/")):e(l)("Adding section")),1),e(m)?(d(),r("div",$,[c("div",q,[c("div",null,v(e(l)("autoInsertInstance")),1),x(c("input",{"onUpdate:modelValue":s[0]||(s[0]=_=>I(o)?o.value=_:null),type:"checkbox",class:"autoInsertInput"},null,512),[[P,e(o)]])]),a.props.linked_to?f("",!0):(d(),r("div",F,[x(c("input",{class:"py-4 pl-6 border rounded-xl border-FieldGray h-48px instanceInput my-2 focus:outline-none",type:"text",placeholder:e(l)("instanceName")+"*",disabled:!!a.props.linked_to,"onUpdate:modelValue":s[1]||(s[1]=_=>I(n)?n.value=_:null)},null,8,H),[[G,e(n)]])])),e(y)?(d(),r("span",J,v(e(l)("instanceNameRequired")),1)):f("",!0)])):f("",!0),E(R,{"global-section-mode":e(m),"show-pages-list":e(b),pages:e(h),onShowPagesClicked:s[2]||(s[2]=_=>b.value=!e(b))},null,8,["global-section-mode","show-pages-list","pages"]),e(m)?(d(),r("button",{key:1,class:"mt-4 submit-btn",type:"button",onClick:V},v(e(l)("Submit data")),1)):f("",!0)])}}},W=S(K,[["__scopeId","data-v-667b17bb"]]);export{W as default};

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.