PageSourceSearch

https://www.color4care.no/_nuxt/Bjt440Fu.js

js color4care.no collected 2026-10-04 20:57:37 UTC 1,395 bytes, 1 lines download raw bytes

1import{d as g,B as y,m as x,a3 as _,c as f,a9 as k,f as r,Y as w,n as C,g as H,t as S,h as b,l as s,o as m,z as M}from"#entry";import{_ as z}from"./DlAUqK2U.js";const B={class:"py-8"},$=g({__name:"ReadMore",props:{maxHeight:{default:100},showInStoryblok:{type:Boolean,default:!1}},setup(p){const n=p,l=y();let i=l.query&&l.query._storyblok&&l.query._storyblok!=="";n.showInStoryblok&&(i=!1);const c=s(null),a=s(-1),d=s(!0),t=s(!1),o=s(!1),v=M(()=>a.value===-1?{maxHeight:`${n.maxHeight}px`}:!t.value&&!o.value?{height:`${n.maxHeight}px`}:!t.value&&o.value?{height:`${a.value+48}px`}:{}),h=()=>{o.value=!o.value};x(()=>{i?(t.value=!0,a.value=0):(u(),window.addEventListener("resize",u))}),_(()=>{window.removeEventListener("resize",u)});const u=()=>{const e=c.value.scrollHeight;e?(a.value=e,e<=n.maxHeight?(d.value=!1,t.value=!0):(d.value=!0,t.value=!1)):console.warn("Could not get height")};return(e,I)=>(m(),f("div",{ref_key:"readMore",ref:c,style:k(r(v)),class:"ReadMore overflow-hidden relative transition-all"},[w(e.$slots,"default",{},void 0,!0),!r(t)&&r(a)>-1?(m(),f("div",{key:0,class:C(["absolute bottom-0 cursor-pointer w-full type-xs-medium md:type-sm-medium underline",{readMore:!r(o)}]),onClick:h},[H("div",B,S(r(o)?e.$t("productPage.truncateTextCtaOpen"):e.$t("productPage.truncateTextCtaClosed")),1)],2)):b("",!0)],4))}}),E=z($,[["__scopeId","data-v-3eaca2cc"]]);export{E as R};

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.