PageSourceSearch

https://mkkey.net/assets/MkPageWindow-8d0b641c.js

js mkkey.net collected 2026-09-25 21:52:27 UTC 2,363 bytes, 1 lines download raw bytes

1import{bj as $,bk as q,b as s,aL as v,aN as B,m as I,bl as L,p as R,_ as T}from"./app-7b8b4f0e.js";import{X as W}from"./MkWindow-ef18dd3a.js";import{p as z}from"./popout-3d8899ca.js";import{b as E,a as u,c as r,g as i,h as H,i as g,p as m,t as V,G as b,q as f,D,H as S,k as X,x as j,u as A,A as p}from"./vue-6566b4ff.js";import"./contains-dfd70620.js";const F=E({__name:"MkPageWindow",props:{initialPath:null},emits:["closed"],setup(k,{expose:_}){const w=k,e=new $(q,w.initialPath);let a=u(),n=u();const o=u([{path:e.getCurrentPath(),key:e.getCurrentKey()}]),y=r(()=>{const t=[];return o.value.length>1&&t.push({icon:"ph-caret-left ph-bold ph-lg",onClick:x}),t}),C=r(()=>[{icon:"ph-arrows-out-simple ph-bold ph-lg",title:s.ts.showInPage,onClick:c}]);e.addListener("push",t=>{o.value.push({path:t.path,key:t.key})}),p("router",e),R(t=>{a.value=t}),p("shouldOmitHeaderTitle",!0),p("shouldHeaderThin",!0);const P=r(()=>[{icon:"ph-arrows-out-simple ph-bold ph-lg",text:s.ts.showInPage,action:c},{icon:"ph-arrow-square-out ph-bold ph-lg",text:s.ts.popout,action:N},{icon:"ph-arrow-square-out ph-bold ph-lg",text:s.ts.openInNewTab,action:()=>{window.open(v+e.getCurrentPath(),"_blank"),n.value.close()}},{icon:"ph-link-simple ph-bold ph-lg",text:s.ts.copyLink,action:()=>{B(v+e.getCurrentPath())}}]);function x(){o.value.pop(),e.replace(o.value[o.value.length-1].path,o.value[o.value.length-1].key)}function M(){n.value.close()}function c(){I.push(e.getCurrentPath(),"forcePage"),n.value.close()}function N(){z(e.getCurrentPath(),n.value.$el),n.value.close()}return _({close:M}),(t,h)=>(i(),H(W,{ref_key:"windowEl",ref:n,"initial-width":500,"initial-height":500,"can-resize":!0,"close-button":!0,"buttons-left":y.value,"buttons-right":C.value,contextmenu:P.value,onClosed:h[0]||(h[0]=l=>t.$emit("closed"))},{header:g(()=>{var l;return[(l=a.value)!=null&&l.value?(i(),m(S,{key:0},[a.value.value.icon?(i(),m("i",{key:0,class:V(["icon",a.value.value.icon]),style:{"margin-right":"0.5em"}},null,2)):b("",!0),f("span",null,D(a.value.value.title),1)],64)):b("",!0)]}),default:g(()=>{var l,d;return[f("div",{class:"yrolvcoq",style:A({background:(d=(l=a.value)==null?void 0:l.value)==null?void 0:d.bg})},[X(L,{router:j(e)},null,8,["router"])],4)]}),_:1},8,["buttons-left","buttons-right","contextmenu"]))}});const U=T(F,[["__scopeId","data-v-154a41dc"]]);export{U 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.