PageSourceSearch

https://luckyhills-de.com/dist/ReadMoreBlock-DgWCWOXA.js

js luckyhills-de.com collected 2026-10-07 14:48:45 UTC 1,367 bytes, 2 lines download raw bytes

1import{o as _}from"./observeContentChanged-B-da6vRh.js";import{k as h,l as k,f as g,m as u,n as B,H as i,a6 as C,M,D as y,A as H,z as b,q as x,x as R,y as O,G as D,r as n,c as v}from"./vendors-_fSCfn4Z.js";import{t as E}from"./floating-ui-DiwcxBBh.js";import{_ as N}from"./main-COcUbzo4.js";const S={class:"read-more-block"},w=h({__name:"ReadMoreBlock",props:{startHeight:{default:192},showLessButton:{type:Boolean,default:!0}},setup(d){const r=k(),s=d,t=n(null),e=n(!1),o=n(),l=n(!1),m=v(()=>e.value?r.t("COMMON.READ_LESS"):r.t("COMMON.READ_MORE")),p=v(()=>e.value&&s.showLessButton||!e.value&&l.value),f=a=>{a.preventDefault(),e.value=!e.value,o.value=e.value&&t.value?t.value.scrollHeight:s.startHeight},c=()=>{t.value&&t.value.scrollHeight>s.startHeight&&(l.value=!0,o.value=s.startHeight)};return g(()=>{const a=t.value;a&&_({target:a,callback:c}),c()}),(a,L)=>(u(),B("div",S,[i("div",{ref_key:"contentWrap",ref:t,class:M([{"read-more-block__content--is-closed":!e.value&&o.value},"read-more-block__content"]),style:C(o.value?{height:o.value+"px"}:void 0)},[i("div",null,[y(a.$slots,"default",{},void 0,!0)])],6),p.value?(u(),H(b(E),{key:0,class:"read-more-block__btn",variant:"primary",onClick:f},{default:x(()=>[R(O(m.value),1)]),_:1})):D("",!0)]))}}),T=N(w,[["__scopeId","data-v-849c80a2"]]);export{T as R};
2//# sourceMappingURL=ReadMoreBlock-DgWCWOXA.js.map

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.