1import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,ct as s,mt as c,o as l,tr as u,un as d,vn as f,y as p}from"./runtime-core.esm-bundler-BKdLzFmX.js";import{t as m}from"./appVariables-if8fQ3xE.js";import{t as h}from"./helper-D5ziWoUd.js";import{t as g}from"./Arrow-BomPYjmh.js";var _=[`innerHTML`],v={key:1,class:`text-sm text-dark font-cr-medium`},y={class:`mb-3 relative pl-5 break-words last:mb-0`},b=[`aria-label`],x={__name:`LevelContent`,props:[`levelDescription`,`levelBenefits`,`showFullContentInitially`,`fromPage`],emits:[`updateShowFullContent`],setup(x,{emit:S}){let C=f(),w=f(!1);return s(()=>{m.IsBrowser&&(w.value=C.value.clientHeight>200)}),(s,f)=>(c(),a(`div`,{ref_key:`levelContent`,ref:C,class:r([`relative`,[x.fromPage==`paymentModal`?`rounded-2xl border border-solid border-dark/10 p-4`:``,n(w)&&!x.showFullContentInitially&&x.fromPage==`paymentModal`?`max-h-[280px] overflow-hidden`:``]])},[i(`div`,{class:r([`text-left`,[n(w)&&!x.showFullContentInitially&&x.fromPage!=`paymentModal`?`max-h-[280px] overflow-hidden`:``,(x.fromPage,``)]])},[i(`div`,null,[n(h).sanitizeHtml(x.levelDescription,!1,[`h1`,`b`,`a`,`br`,`p`,`div`]).trim()==`<br>`?p(``,!0):(c(),a(`h3`,{key:0,class:`font-cr-regular break-words text-sm leading-6 mb-2`,innerHTML:n(h).sanitizeHtml(x.levelDescription,!1,[`h1`,`b`,`a`,`br`,`p`,`div`]).trim()},null,8,_)),x.fromPage==`paymentModal`?(c(),a(`p`,v,`Membership benefits`)):p(``,!0),x.levelBenefits?(c(),a(`ul`,{key:2,class:r([[x.fromPage==`paymentModal`?`mt-2`:`mt-4`],`font-cr-regular text-sm ml-2`])},[(c(!0),a(l,null,o(JSON.parse(x.levelBenefits),e=>(c(),a(`li`,y,[f[1]||=i(`span`,{"aria-hidden":`true`,tabindex:`-1`,class:`inline-block w-2 h-2 rounded-full bg-dark absolute left-0 top-2`},null,-1),i(`h3`,null,u(e.title),1)]))),256))],2)):p(``,!0)])],2),n(w)&&!x.showFullContentInitially?(c(),a(`div`,{key:0,role:`button`,tabindex:`0`,"aria-label":s.$t(`lang.a11y.membership.see_more`),onClick:f[0]||=e=>{d(w)?w.value=!1:w=!1,s.$emit(`updateShowFullContent`)},class:r([[x.fromPage==`paymentModal`?`w-[98%] my-0 mx-auto right-0`:`w-full`],`absolute flex items-center justify-center bottom-0 left-0 text-dark text-sm font-cr-medium cursor-pointer pt-5 tw-see-more-shadow hover:underline`])},[t(u(s.$t(`lang.common.see_more`))+` `,1),e(g,{width:`30`,class:`transform rotate-90 -ml-1`,fillClass:`fill-dark`})],10,b)):p(``,!0)],2))}};export{x as t};
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.