1import{_ as g,c as x,i as y,aF as b,o as a,b as l,d as c,a9 as m,J as k,n as $,s as z,p as B,q as C,k as S,m as w,ax as D,aG as M,v,f as H,F as L,r as R,t as N,y as V}from"./index.c8baca32.js";const E={__name:"DropdownButton",props:{placement:{type:String,default:"bottom-start",validator:s=>["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end"].includes(s)}},setup(s){const o=s,t=v(!1),e=v(null),r=v(null),f=x(()=>{if(!r.value)return{};const{top:n,left:i,width:h,height:u}=r.value,_=4;switch(o.placement){case"bottom":return{top:`${n+u+_}px`,left:`${i+h/2}px`,transform:"translateX(-50%)"};case"bottom-start":return{top:`${n+u+_}px`,left:`${i}px`};case"bottom-end":return{top:`${n+u+_}px`,left:`${i+h}px`,transform:"translateX(-100%)"};default:return{top:`${n+u+_}px`,left:`${i}px`}}}),d=()=>{t.value=!t.value,t.value&&(r.value=e.value.getBoundingClientRect())},p=n=>{e.value&&!e.value.contains(n.target)&&(t.value=!1)};return y(()=>{document.addEventListener("click",p)}),b(()=>{document.removeEventListener("click",p)}),(n,i)=>(a(),l("div",{class:"dropdown-button",ref_key:"dropdownRef",ref:e},[c("button",{class:$(["dropdown-button__trigger",{"dropdown-button__trigger--active":t.value}]),onClick:d},[m(n.$slots,"trigger",{},()=>[i[0]||(i[0]=k("Dropdown",-1))],!0)],2),(a(),z(M,{to:"body"},[B(D,{name:"dropdown"},{default:C(()=>[t.value?(a(),l("div",{key:0,class:"dropdown-button__menu",style:S(f.value)},[m(n.$slots,"default",{},void 0,!0)],4)):w("",!0)]),_:3})]))],512))}},G=g(E,[["__scopeId","data-v-6133c9a2"]]),F=["width","height"],J={__name:"meun",props:{size:{type:String,default:"20"},color:{type:String,default:"#000"}},setup(s){const o=s;return(t,e)=>(a(),l("svg",{t:"1720359872313",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4562","xmlns:xlink":"http://www.w3.org/1999/xlink",width:o.size,height:o.size},[...e[0]||(e[0]=[c("path",{d:"M868.702 801.754c15.464 0 28 12.536 28 28 0 15.31-12.286 27.749-27.537 27.996l-0.463 0.004H155.214c-15.464 0-28-12.536-28-28 0-15.31 12.287-27.749 27.537-27.996l0.463-0.004h713.488z m0-316.955c15.464 0 28 12.536 28 28 0 15.31-12.286 27.75-27.537 27.997l-0.463 0.003H155.214c-15.464 0-28-12.536-28-28 0-15.309 12.287-27.749 27.537-27.996l0.463-0.004h713.488z m0-317.142c15.464 0 28 12.536 28 28 0 15.309-12.286 27.749-27.537 27.996l-0.463 0.004H155.214c-15.464 0-28-12.536-28-28 0-15.31 12.287-27.75 27.537-27.997l0.463-0.003h713.488z","p-id":"4563"},null,-1)])],8,F))}},T=["width","height"],I=["fill"],j={__name:"car",props:{size:{type:String,default:"20"},color:{type:String,default:"#000"}},setup(s){const o=s;return(t,e)=>(a(),l("svg",{t:"1720340700569",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6117","xmlns:xlink":"http://www.w3.org/1999/xlink",width:o.size,height:o.size},[c("path",{d:"M697.6 318.4c-17.6 0-32-14.4-32-32v-64c0-84.8-59.2-150.4-136-150.4s-136 65.6-136 150.4v64c0 17.6-14.4 32-32 32s-32-14.4-32-32v-64C329.6 102.4 417.6 8 529.6 8s200 94.4 200 214.4v64c0 17.6-14.4 32-32 32z",fill:o.color,"p-id":"6118","data-spm-anchor-id":"a313x.search_index.0.i0.16263a81BHh2hU",class:"selected"},null,8,I),e[0]||(e[0]=c("path",{d:"M726.4 988.8H334.4c-76.8 0-137.6-54.4-139.2-123.2L142.4 300.8v-3.2c0-20.8 16-43.2 49.6-43.2h676.8c28.8 0 49.6 19.2 49.6 46.4v3.2L864 867.2c0 68.8-59.2 121.6-137.6 121.6zM208 318.4l51.2 542.4v3.2c0 35.2 32 60.8 75.2 60.8h392c36.8 0 75.2-20.8 75.2-59.2v-3.2l51.2-544H208z",fill:"#474747","p-id":"6119"},null,-1))],8,T))}};const O={class:"nav-item-container"},P={class:"nav-item"},U={key:0,class:"meun-list"},X=["onClick"],q={__name:"downMeunButton",props:{options:{type:Array}},setup(s){const o=H(),t=s,e=r=>{r&&o.push({path:V(r)})};return(r,f)=>(a(),l("div",O,[c("div",P,[m(r.$slots,"default",{},void 0,!0)]),t.options&&t.options.length>0?(a(),l("div",U,[(a(!0),l(L,null,R(t.options,(d,p)=>(a(),l("div",{key:p,class:"item g-default-txt",onClick:n=>e(d.path)},N(d.label),9,X))),128))])):w("",!0)]))}}
1,K=g(q,[["__scopeId","data-v-d573711b"]]);export{K as D,G as _,j as a,J as b};
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.