1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`5e6b11730a1cc37b0c944ac12baa12b0d8bd7ebf`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`815cb1b0-c497-4f80-8948-11de993d700c`,e._sentryDebugIdIdentifier=`sentry-dbid-815cb1b0-c497-4f80-8948-11de993d700c`)}catch{}})();import{r as e}from"./DxK5vcBk.js";import{a as t}from"./DnUMDs48.js";import{C as n,E as r,Et as i,G as a,Ht as o,J as s,L as c,M as l,Pt as u,S as d,T as f,X as p,ct as m,et as h,in as g,k as _,nn as v,pt as y,rt as b,sn as x,vt as S,w as C}from"./C9n7DQ_O.js";import{f as w}from"./P-HUrDe7.js";import{t as T}from"./CgOn9cKa.js";c(),S(),o();var E=l({__name:`ReadMore`,props:{maxHeight:{default:100},showInStoryblok:{type:Boolean,default:!1},closedText:{default:``},openText:{default:``},asButton:{type:Boolean,default:!1}},setup(e){let{$t:o}=t(),c=e,l=d(()=>c.openText===``?o(`productPage.truncateTextCtaOpen`):c.openText),S=d(()=>c.closedText===``?o(`productPage.truncateTextCtaClosed`):c.closedText),T=w(),E=T.query&&T.query._storyblok&&T.query._storyblok!==``;c.showInStoryblok&&(E=!1);let D=m(`readMore`),O=i(-1),k=i(!0),A=i(!1),j=i(!1),M=d(()=>O.value===-1?{maxHeight:`${c.maxHeight}px`}:!A.value&&!j.value?{height:`${c.maxHeight}px`}:!A.value&&j.value?{height:`${O.value+48}px`}:{}),N=()=>{j.value=!j.value};s(()=>{E?(A.value=!0,O.value=0):(P(),window.addEventListener(`resize`,P))}),a(()=>{window.removeEventListener(`resize`,P)});let P=()=>{let e=D.value?.scrollHeight;e?(O.value=e,e<=c.maxHeight?(k.value=!1,A.value=!0):(k.value=!0,A.value=!1)):console.warn(`Could not get height`)};return(t,i)=>(p(),r(`div`,{ref_key:`readMore`,ref:D,style:g(u(M)),class:`ReadMore overflow-hidden relative transition-all`},[h(t.$slots,`default`,{},void 0,!0),!u(A)&&u(O)>-1?(p(),r(`div`,{key:0,class:v([`absolute bottom-0 cursor-pointer w-full type-headline-xs desk:type-headline-sm`,{readMore:!u(j),underline:!e.asButton}]),onClick:N},[n(`div`,{class:v([`relative`,{"flex justify-center":e.asButton}])},[(p(),C(b(e.asButton?`div`:`span`),{class:v({"btn btn--sm":e.asButton})},{default:y(()=>[_(x(u(j)?u(l):u(S)),1)]),_:1},8,[`class`]))],2)],2)):f(``,!0)],4))}}),D=e({default:()=>O}),O=Object.assign(T(E,[[`__scopeId`,`data-v-b823ecab`]]),{__name:`ReadMore`});export{D as n,O as t}; 2//# sourceMappingURL=BHc4KFUc2.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.