1import{d as y,y as w,D as l,w as d,v as H,af as b,o as m,c as f,b as v,S as k,n as B,e as i,i as p,t as z,h as R,j as C,aa as E,k as M}from"./DGmrWm4W.js";const S={key:0,class:"ui-read-more__button-wrapper"},T=y({__name:"UiReadMore",props:{maxHeight:{default:"100px"},lines:{default:0},expanded:{type:Boolean,default:!1},mobileOnly:{type:Boolean,default:!1}},emits:["toggle"],setup(u,{emit:_}){const e=u,h=_,{t:$}=w(),n=l(null),t=l(e.expanded),s=l(!1),o=l(null),g=C(()=>t.value?{}:{maxHeight:e.lines?`calc(${e.lines} * 1lh)`:e.maxHeight,overflow:"hidden"});d(()=>e.expanded,a=>{t.value=a}),d(()=>[e.maxHeight,e.lines],()=>{r()});const r=()=>{E(()=>{if(!n.value)return;const a=n.value.scrollHeight;if(e.lines){if(t.value)return;s.value=a>n.value.clientHeight+1}else s.value=a>parseInt(e.maxHeight);s.value||(t.value=!0)})},c=()=>{o.value&&clearTimeout(o.value),o.value=setTimeout(()=>{r()},100)},x=()=>{t.value=!t.value,h("toggle",t.value)};return H(()=>{r(),window.addEventListener("resize",c)}),b(()=>{window.removeEventListener("resize",c),o.value&&clearTimeout(o.value)}),(a,I)=>(m(),f("div",{class:p(["ui-read-more",{"ui-read-more--mobile-only":u.mobileOnly}])},[v("div",{ref_key:"contentRef",ref:n,class:p(["ui-read-more__content",{"ui-read-more__content--collapsed":!i(t)}]),style:B(i(g))},[k(a.$slots,"default",{},void 0,!0)],6),i(s)?(m(),f("div",S,[v("button",{class:"ui-read-more__button",onClick:x},z(i(t)?a.$t("showLess"):a.$t("showMore")),1)])):R("",!0)],2))}}),O=Object.assign(M(T,[["__scopeId","data-v-32c37479"]]),{__name:"UiReadMore"});export{O as _};
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.