PageSourceSearch

https://social.itsvic.dev/vite/BLQycyiX.js

js itsvic.dev collected 2026-10-05 23:49:37 UTC 1,045 bytes, 1 lines download raw bytes

1import{M as f,bj as w,bk as b,$ as k,bl as x,bm as _,y as s}from"./app-DhbzpxNh.js";import{u as h}from"./BIUatlku.js";import{b as B,l as P,h as C,C as M,j as S,H as v,B as N,q as n}from"./BI8qgwQJ.js";import"./BTqQ_sdn.js";const T={"data-cy-mkw-button":"",class:"mkw-button"},i="button",$=B({__name:"WidgetButton",props:{widget:{}},emits:["updateProps"],setup(c,{expose:p,emit:l}){const d={label:{type:"string",default:"BUTTON"},colored:{type:"boolean",default:!0},script:{type:"string",multiline:!0,default:'Mk:dialog("hello" "world")'}},e=c,u=l,{widgetProps:r,configure:m}=h(i,d,e,u),g=new _,y=async()=>{const o=new w(b({storageKey:"widget",token:k?.token}),{in:x,out:t=>{},log:(t,j)=>{}});let a;try{a=g.parse(r.script)}catch{s({type:"error",text:"Syntax error :("});return}try{await o.exec(a)}catch(t){s({type:"error",text:t})}};return p({name:i,configure:m,id:e.widget?e.widget.id:null}),(o,a)=>(C(),P("div",T,[M(f,{primary:n(r).colored,full:"",onClick:y},{default:S(()=>[v(N(n(r).label),1)]),_:1},8,["primary"])]))}});export{$ 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.