PageSourceSearch

https://propro-clean.tw/assets/SideNavigationDisclosure.1fbba026.js

js propro-clean.tw collected 2026-10-07 08:14:04 UTC 2,528 bytes, 1 lines download raw bytes

1import{D as e,c as t,d as s}from"./headlessui.esm.12a303ec.js";import{r as a}from"./ChevronUpIcon.8bf05be2.js";import{g as n}from"./index.441c06ad.js";import{r as l,o,e as i,g as r,w as c,i as u,t as f,c as p,G as d,j as y,v as k,n as m,ap as g,F as v,h as b}from"./vendor.ddbd020e.js";const _={name:"SideNavigationDisclosure",components:{Disclosure:e,DisclosureButton:t,DisclosurePanel:s,ChevronUpIcon:a},props:{title:{type:String,default:""},link:{type:String,default:""},isExternal:{type:Boolean,default:!1},isButton:{type:Boolean,default:!1},content:{type:Array,default:()=>[]},defaultOpen:{type:Boolean,default:!0}},setup(){const e=n(),{setLoading:t}=e;return{setLoading:t}},data:()=>({open:!1})},x={class:"flex justify-between text-left focus:outline-none focus-visible:ring focus-visible:ring-opacity-75"},h=["href"],D={key:1,role:"button",class:"inline-block w-full py-2"},j=["href"];_.render=function(e,t,s,a,n,_){const w=l("router-link"),B=l("ChevronUpIcon"),C=l("DisclosureButton"),L=l("DisclosurePanel"),I=l("Disclosure");return o(),i("div",null,[r(I,{"default-open":s.defaultOpen},{default:c((()=>[u("div",x,[s.isExternal?(o(),i("a",{key:0,href:s.link,target:"_blank",class:"inline-block w-full py-2"},f(s.title),9,h)):s.isButton?(o(),i("a",D,f(s.title),1)):(o(),p(w,{key:2,to:s.link,class:"inline-block w-full py-2",onClick:t[0]||(t[0]=e=>a.setLoading(s.link))},{default:c((()=>[d(f(s.title),1)])),_:1},8,["to"])),y(r(C,{class:"focus:outline-none"},{default:c((({open:e})=>[r(B,{class:m([e?"transform rotate-180":"","w-6 h-6"])},null,8,["class"])])),_:1},512),[[k,s.content.length>0]])]),r(g,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-out","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:c((()=>[r(L,{class:"space-y-1 pl-4"},{default:c((()=>[(o(!0),i(v,null,b(s.content,(e=>(o(),i("div",{key:e.nc_id,class:"flex justify-between text-left focus:outline-none focus-visible:ring focus-visible:ring-opacity-75"},[e.is_external?(o(),i("a",{key:0,href:e.nc_url,class:"inline-block text-[14px] text-gray-600",target:"_blank"},f(e.nc_name),9,j)):(o(),p(w,{key:1,to:e.nc_url,class:"inline-block text-[14px] text-gray-600",onClick:t=>a.setLoading(e.nc_url)},{default:c((()=>[d(f(e.nc_name),1)])),_:2},1032,["to","onClick"]))])))),128))])),_:1})])),_:1})])),_:1},8,["default-open"])])};export{_};

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.