PageSourceSearch

https://delta-batt.com/_nuxt/DFXCdSeG.js

js delta-batt.com collected 2026-10-09 22:42:41 UTC 1,345 bytes, 1 lines download raw bytes

1import{e as g,_ as L}from"./p7j0WGZt.js";import{m as k,F as H,v as c,l as T,q as i,N as u,Q as w,u as n,U as x,a1 as E,a9 as N,S as V,$ as y,j as m,al as z,p as d,M as p}from"./uOatmh1Q.js";const M={class:"expandable-text"},O=["innerHTML"],B=k({__name:"ExpandableText",props:{htmlContent:{},maxHeight:{default:100},maxLines:{}},setup(_){z(s=>({v14e9a6c3:n(v),v44bbcfc5:e.maxHeight+"px"}));const e=_,t=m(!1),o=m(),l=m(!1),f=d(()=>e.maxLines!=null&&e.maxLines>0),v=d(()=>String(e.maxLines??0)),h=()=>{t.value=!t.value},a=()=>{const s=o.value;if(!s||!e.htmlContent?.trim()){l.value=!1;return}t.value||(l.value=s.scrollHeight>s.clientHeight+1)};let r;H(()=>{c(a),o.value&&(r=new ResizeObserver(()=>a()),r.observe(o.value))}),T(()=>{r?.disconnect()}),i(()=>e.htmlContent,()=>{t.value=!1,c(a)}),i([()=>e.maxLines,()=>e.maxHeight],()=>{c(a)}),i(t,()=>{c(a)});const b=d(()=>e.htmlContent);return(s,R)=>{const C=g;return p(),u("div",M,[w("div",{ref_key:"contentRef",ref:o,class:x(["expandable-text__content",{"is-expanded":n(t),"is-clamped":n(f)&&!n(t)}]),innerHTML:n(b)},null,10,O),n(l)?(p(),u("button",{key:0,class:x(["expandable-text__button",{"is-expanded":n(t)}]),onClick:h},[E(N(n(t)?"Свернуть":"Читать далее")+" ",1),V(C,{name:"arrow",size:16})],2)):y("",!0)])}}}),j=L(B,[["__scopeId","data-v-7af67c09"]]);export{j 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.