PageSourceSearch

https://jcppt.com/_nuxt/C1drqzDa.js

js jcppt.com collected 2026-10-09 23:21:29 UTC 4,783 bytes, 1 lines download raw bytes

1import{d as J,c as Q,b as ee,ag as I,K as l,R as E,S as x,u as n,L as c,P as _,x as w,X as T,W as K,ai as M,Z as D,U as O,aj as R,Y as U,a2 as g,n as V}from"./WVpZGHIt.js";import{s as L,l as ne,aF as te,B as G,_ as se}from"./9RqgxGMY.js";import{n as W,v as Y,I as F,ao as S}from"./nvPIUC4e.js";import{M as le}from"./CWDF7sMF.js";import"./D7yKoe-X.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new v.Error().stack;o&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[o]="78b1cf53-f985-4b1c-9200-24420724e3c7",v._sentryDebugIdIdentifier="sentry-dbid-78b1cf53-f985-4b1c-9200-24420724e3c7")}catch{}})();const oe=()=>{const v=W(),o=Y(),{currentSlide:r}=L(v),{activeElementIdList:f,hiddenElementIdList:u}=L(o);return{toggleHideElement:d=>{u.value.includes(d)?o.setHiddenElementIdList(u.value.filter(p=>p!==d)):o.setHiddenElementIdList([...u.value,d]),f.value.includes(d)&&o.setActiveElementIdList([])},showAllElements:()=>{const d=r.value.elements.map(y=>y.id),p=u.value.filter(y=>!d.includes(y));o.setHiddenElementIdList(p)},hideAllElements:()=>{const d=r.value.elements.map(p=>p.id);o.setHiddenElementIdList([...u.value,...d]),f.value.length&&o.setActiveElementIdList([])}}},ie={key:0,class:"handler"},de={class:"btns"},ce={key:0,class:"icon-btns"},ae={class:"element-list"},re={key:0,class:"group-els"},ue=["onClick","onDblclick"],ve=["id","value","onBlur","onKeydown"],pe={key:1,class:"name"},me={class:"icons"},fe=["onClick","onDblclick"],ye=["id","value","onBlur","onKeydown"],Ee={key:1,class:"name"},_e={class:"icons"},ke=J({__name:"SelectPanel",setup(v){const o=W(),r=Y(),{currentSlide:f}=L(o),{handleElement:u,handleElementId:H,activeElementIdList:k,activeGroupElementId:P,hiddenElementIdList:d}=L(r),{orderElement:p}=ne(),{selectElement:y}=te(),{toggleHideElement:h,showAllElements:Z,hideAllElements:j}=oe(),A=Q(()=>{const i=[];for(const e of f.value.elements)if(e.groupId){const a=i[i.length-1];a&&a.type==="group"&&a.id&&a.id===e.groupId?a.elements.push(e):i.push({type:"group",id:e.groupId,elements:[e]})}else i.push(e);return i}),q=(i,e)=>{if(H.value===e||d.value.includes(e))return;const a=i.elements.map($=>$.id);r.setActiveElementIdList(a),r.setHandleElementId(e),V(()=>r.setActiveGroupElementId(e))},C=ee(""),b=(i,e)=>{const a=i.target.value;o.updateElement({id:e,props:{name:a}}),C.value=""},B=i=>{C.value=i,V(()=>{document.querySelector(`#select-panel-input-${i}`).focus()})},X=()=>{r.setSelectPanelState(!1)};return(i,e)=>{const a=I("IconDown"),$=I("IconUp"),z=I("IconPreviewClose"),N=I("IconPreviewOpen");return l(),E(le,{class:"select-panel",width:200,height:360,title:`选择(${n(k).length}/${n(f).elements.length})`,left:-270,top:90,onClose:e[4]||(e[4]=s=>X())},{default:x(()=>[A.value.length?(l(),c("div",ie,[_("div",de,[w(G,{size:"small",style:{"margin-right":"5px"},onClick:e[0]||(e[0]=s=>n(Z)())},{default:x(()=>e[5]||(e[5]=[T("全部显示")])),_:1}),w(G,{size:"small",onClick:e[1]||(e[1]=s=>n(j)())},{default:x(()=>e[6]||(e[6]=[T("全部隐藏")])),_:1})]),n(u)?(l(),c("div",ce,[w(a,{class:"icon-btn",onClick:e[2]||(e[2]=s=>n(p)(n(u),n(F).UP))}),w($,{class:"icon-btn",onClick:e[3]||(e[3]=s=>n(p)(n(u),n(F).DOWN))})])):K("",!0)])):K("",!0),_("div",ae,[(l(!0),c(D,null,M(A.value,s=>(l(),c(D,{key:s.id},[s.type==="group"?(l(),c("div",re,[e[7]||(e[7]=_("div",{class:"group-title"},"组合",-1)),(l(!0),c(D,null,M(s.elements,t=>(l(),c("div",{class:O(["item",{active:n(k).includes(t.id),"group-active":n(P).includes(t.id)}]),key:t.id,onClick:m=>q(s,t.id),onDblclick:m=>B(t.id)},[C.value===t.id?(l(),c("input",{key:0,id:`select-panel-input-${t.id}`,value:t.name||n(S)[t.type],class:"input",type:"text",onBlur:m=>b(m,t.id),onKeydown:R(m=>b(m,t.id),["enter"])},null,40,ve)):(l(),c("div",pe,U(t.name||n(S)[t.type]),1)),_("div",me,[n(d).includes(t.id)?(l(),E(z,{key:0,style:{"font-size":"17px"},onClick:g(m=>n(h)(t.id),["stop"])},null,8,["onClick"])):(l(),E(N,{key:1,style:{"font-size":"17px"},onClick:g(m=>n(h)(t.id),["stop"])},null,8,["onClick"]))])],42,ue))),128))])):(l(),c("div",{key:1,class:O(["item",{active:n(k).includes(s.id
1)}]),onClick:t=>n(y)(s.id),onDblclick:t=>B(s.id)},[C.value===s.id?(l(),c("input",{key:0,id:`select-panel-input-${s.id}`,value:s.name||n(S)[s.type],class:"input",type:"text",onBlur:t=>b(t,s.id),onKeydown:R(t=>b(t,s.id),["enter"])},null,40,ye)):(l(),c("div",Ee,U(s.name||n(S)[s.type]),1)),_("div",_e,[n(d).includes(s.id)?(l(),E(z,{key:0,style:{"font-size":"17px"},onClick:g(t=>n(h)(s.id),["stop"])},null,8,["onClick"])):(l(),E(N,{key:1,style:{"font-size":"17px"},onClick:g(t=>n(h)(s.id),["stop"])},null,8,["onClick"]))])],42,fe))],64))),128))])]),_:1},8,["title"])}}}),ge=se(ke,[["__scopeId","data-v-a2958c64"]]);export{ge 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.