PageSourceSearch

https://portal.wibernet.co.za/dist/dist-portal-login/index.bZHWB6i4.js

js wibernet.co.za collected 2026-10-09 22:43:32 UTC 1,915 bytes, 2 lines download raw bytes

1import{e as u,i as c,d as h,_ as C,r as i,c as _}from"./app.6-zBPm55.js";import{d as g,y,H as b,f as A}from"./vendor.kmuNf4Gr.js";/* empty css               */let l={},r={};function E(){return window.location.pathname.slice(0,7)==="/portal"}function T(){return E()?"/portal/add-on--get-code":"/admin/config/add-on--get-code"}function k(o,t){let e=o;return u(t)||(e+=window.md5(JSON.stringify(t))),c(r,e)||(r[e]=new Promise((d,n)=>{if(c(l,e)){delete r[e],d(l[e]);return}let a=o.replace(/\\\\/g,"\\"),f={before:{page:a,params:t,location:"before_content"},after:{page:a,params:t,location:"after_content"}};h({url:T(),data:f,method:"POST"}).then(p=>{const s=p;if(c(s,"error"))delete r[e],n(s);else{let m={before:c(s,"before_code")?s.before_code:"",after:c(s,"after_code")?s.after_code:""};delete r[e],l[e]=m,d(m)}})})),r[e]}_(["XAddonCode.mounted"]);const w={name:"XAddonCode",emits:["addon-code-loaded"],props:{page:String,location:String,params:Object,className:String},data(){return{html:""}},mounted(...o){return i("XAddonCode.mounted",()=>{k(this.page,this.params).then(t=>{let e=this.location==="after_content"?"after":"before";this.setCode(t[e])}).catch(t=>{console.error(t)})},this,o)},methods:{parseCode(...o){return i("XAddonCode.parseCode",t=>{let e=document.createElement("div");e.innerHTML=t;let d=Array.from(e.getElementsByTagName("script"));d.forEach(n=>n.remove()),this.html=e.innerHTML.trim(),this.$nextTick(()=>{d.forEach(n=>{const a=document.createElement("script");a.textContent=n.textContent,document.body.appendChild(a)}),this.$emit("addon-code-loaded",null)})},this,o)},setCode(...o){return i("XAddonCode.setCode",t=>{this.parseCode(t)},this,o)}}},x=["innerHTML"];function S(o,t,e,d,n,a){return n.html!==""?(g(),y("div",{key:0,class:b(e.className),innerHTML:n.html},null,10,x)):A("",!0)}const N=C(w,[["render",S]]);export{N as XAddonCode,N as default};
2//# sourceMappingURL=index.bZHWB6i4.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.