1import A from"./XYwiwyAQ.js";import{u as B}from"./BlTl1_lZ.js";import{q as I,e as h,h as r,i as o,D as w,v as l,M as d,F as u,k as m,j as P,n as i,x as a,p as S,I as T,a7 as V,P as W,_ as D}from"./yvTmYE1z.js";const E=["data-directus"],N={class:"container"},F={class:"tier-name"},K={class:"tier-section"},j={key:0,class:"tier-section-heading"},O={class:"tier-section-body"},z={class:"tier-section"},H={class:"tier-bullets"},L={class:"tier-quote-slot"},M={key:0,class:"tier-quote"},Q={key:1,class:"tier-quote-attribution"},$={class:"tier-quote-attribution-name"},G={key:0,class:"tier-quote-attribution-title"},J={class:"tier-amount-stack"},R={key:0,class:"tier-badge"},U={class:"tier-amount-headline"},X={class:"tier-amount-label"},Y={class:"tier-amount-figure"},Z={key:0,class:"tier-amount-description"},tt=I({__name:"TierCards",props:{block:{},pageId:{}},setup(b){const f=b,{setAttr:g}=B(),y=["green","amber","blue"],c=h(()=>f.block.item),v=h(()=>c.value.background_color?{backgroundColor:c.value.background_color}:{});function q(s,t){if(!t?.startsWith("#")||s.metaKey||s.ctrlKey||s.shiftKey||s.button!==0)return;const e=document.getElementById(t.slice(1));e&&(s.preventDefault(),e.scrollIntoView({block:"start",behavior:"auto"}),history.replaceState(history.state,"",t))}function C(s){return s?{tag:"a",linkProps:s.startsWith("http")||s.startsWith("//")?{href:s,target:"_blank",rel:"noopener"}:{href:s}}:{tag:"div",linkProps:{}}}function x(s){const t=s?.trim()??"",e=t.indexOf("***");return e===-1?{name:t,title:""}:{name:t.slice(0,e).trim(),title:t.slice(e+3).trim()}}const _=h(()=>(c.value.tiers??[]).map(s=>({...s,quoteAttribution:x(s.quote_attribution),bullets:(Array.isArray(s.enables)?s.enables:[]).map(t=>typeof t=="string"?t:t?.text??"").filter(t=>t.trim()!==""),amounts:(s.amounts??[]).map(t=>({...t,accent:y.includes(t.accent)?t.accent:"green",...C(t.url)}))})));return(s,t)=>(i(),r("section",{class:"block-tier-cards",style:d(v.value),"data-directus":c.value?.id?P(g)({collection:b.block.collection,item:c.value.id,fields:"title,de
1scription,background_color,tiers",mode:"drawer"}):void 0},[o("div",N,[w(A,{title:c.value.title,description:c.value.description},null,8,["title","description"]),_.value.length>0?(i(),r("div",{key:0,class:"tier-grid",style:d({"--tier-count":_.value.length})},[(i(!0),r(u,null,m(_.value,(e,k)=>(i(),r(u,{key:e.id},[o("div",{class:"tier-body",style:d({gridColumn:k+1})},[o("h2",F,a(e.name),1),o("div",K,[e.who_its_for?(i(),r("h3",j," Who it's for ")):l("",!0),o("p",O,a(e.who_its_for),1)]),o("div",z,[e.bullets.length>0?(i(),r(u,{key:0},[t[0]||(t[0]=o("h3",{class:"tier-section-heading"},"What your support enables",-1)),o("ul",H,[(i(!0),r(u,null,m(e.bullets,(n,p)=>(i(),r("li",{key:p},a(n),1))),128))])],64)):l("",!0)])],4),o("div",{class:"tier-foot",style:d({gridColumn:k+1})},[o("div",L,[e.quote?(i(),r("p",M," â"+a(e.quote)+"â ",1)):l("",!0),e.quote&&e.quoteAttribution.name?(i(),r("p",Q,[t[1]||(t[1]=o("span",{class:"tier-quote-attribution-prefix"},"â ",-1)),o("span",$,a(e.quoteAttribution.name),1),e.quoteAttribution.title?(i(),r("span",G," - "+a(e.quoteAttribution.title),1)):l("",!0)])):l("",!0)]),o("div",J,[e.badge?(i(),r("p",R,a(e.badge),1)):l("",!0),(i(!0),r(u,null,m(e.amounts,n=>(i(),S(W(n.tag),V({key:n.id},{ref_for:!0},n.linkProps,{class:["tier-amount",`tier-amount--${n.accent}`],onClick:p=>q(p,n.url)}),{default:T(()=>[o("span",U,[o("span",X,a(n.label)+":",1),o("span",Y,a(n.amount),1)]),n.description?(i(),r("span",Z,a(n.description),1)):l("",!0)]),_:2},1040,["class","onClick"]))),128))])],4)],64))),128))],4)):l("",!0)])],12,E))}}),it=Object.assign(D(tt,[["__scopeId","data-v-9e999c33"]]),{__name:"BlockTierCards"});export{it 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.