1import{O as a,P as e,N as s,j as r,V as t,e as i,_ as o}from"#entry";import{u as l}from"./CAgLKPVn.js";import{V as c}from"./BcVEr5iZ.js";import{V as n}from"./369w539r.js";import{V as d}from"./BWrehKB2.js";import{B as u,r as p,c as m,x as v,aG as g,aw as f,ay as b,av as h,$ as y,R as P,aH as _,aq as k,C as x,az as U,U as j,ax as z,S as w,al as C}from"./nX7w3--X.js";const $={key:0,class:"teaser-content"},V={key:1,class:"teaser-content"},G={class:"headline text-center mb-2"},S={key:0,class:"pricing-display text-center mb-3"},B={key:0,class:"promo-pricing"},F={class:"original-price mb-1"},I={class:"strikethrough"},O={class:"current-price-large"},q={class:"price-amount"},E={key:1,class:"regular-pricing"},H={class:"current-price-large"},L={class:"price-amount"},M={class:"description text-center mb-6"},N={class:"features-section mb-6"},R={class:"feature-list"},T={class:"feature-content"},Y={class:"feature-title"},A={class:"feature-description"},D=o(u({__name:"ProUpgradeTeaser",props:{variant:{},embedded:{type:Boolean}},setup(o){const u=o,D=s(),J=e(),{isUpgrading:K,startUpgrade:Q,upgradeCtaLabel:W}=l(),X=p(null),Z=p(!0),aa=m((()=>"filters"===u.variant?"Upgrade to Pro and gain access to advanced tools that help you filter posts, search content, and follow your favorite nonprofits.":"impact-report"===u.variant?"Upgrade to Pro to download nonprofit impact reports and dive deeper into the stories and metrics behind the organizations you care about.":"Upgrade to Pro and gain access to advanced tools that help you see unlimited posts, filter content, and search across all nonprofit updates.")),ea=m((()=>"⨠Unlock Pro Features")),sa=m((()=>null!==X.value&&X.value<a.originalPrice)),ra=m((()=>{if(null===X.value)return 0;const e=(a.originalPrice-X.value)/a.originalPrice*100;return Math.round(e)}));async function ta(){await Q({location:`feed_pro_teaser_${u.variant}`})}return v((async()=>{Z.value=!0;try{const a=(await J.getProducts()).find((a=>a.id===D.public.gcProProductId));a?.price&&(X.value=a.price.amount)}catch(a){console.error("Error loading products:",a)}finally{Z.value=!1}})),(e,s)=>(f(),g(C(e.embedded?"div":x(d)),{class:w(["upgrade-teaser",{"upgrade-teaser--embedded":e.embedded}]),elevation:e.embedded?void 0:4,border:!e.embedded||void 0},{default:b((()=>[Z.value?(f(),h("div",$,[y(c,{type:"image, heading, paragraph, list-item-three-line, button"})])):(f(),h("div",V,[s[5]||(s[5]=P("div",{class:"logo-container mb-6"},[P("img",{src:r,alt:"Giving Compass",class:"gc-logo"})],-1)),P("h2",G,k(ea.value),1),null!==X.value?(f(),h("div",S,[sa.value?(f(),h("div",B,[P("div",F,[P("span",I,"$"+k(x(a).originalPrice),1),y(n,{size:"x-small",color:"success",variant:"flat",class:"ml-2"},{default:b((()=>[U(k(ra.value)+"% Off ",1)])),_:1})]),P("div",O,[P("span",q,"$"+k(X.value),1),s[0]||(s[0]=P("span",{class:"price-period"},"/month",-1))])])):(f(),h("div",E,[P("div",H,[P("span",L,"$"+k(X.value),1),s[1]||(s[1]=P("span",{class:"price-period"},"/month",-1))])]))])):_("",!0),P("p",M,k(aa.value),1),P("div",N,[s[4]||(s[4]=P("h3",{class:"features-heading mb-4"},"Pro Plan Features",-1)),P("ul",R,[(f(!0),h(j,null,z(x(a).features,(a=>(f(),h("li",{key:a.title,class:"feature-item"},[y(t,{size:"20",color:"success",class:"feature-icon"},{default:b((()=>[...s[2]||(s[2]=[U("mdi-check-circle",-1)])])),_:1}),P("div",T,[P("div",Y,[U(k(a.title)+" ",1),a.comingSoon?(f(),g(n,{key:0,size:"x-small",color:"primary",variant:"flat",class:"ml-2"},{default:b((()=>[...s[3]||(s[3]=[U(" Coming Soon ",-1)])])),_:1})):_("",!0)]),P("div",A,k(a.description),1)])])))),128))])]),y(i,{onClick:ta,loading:x(K),color:"primary",size:"x-large",block:"",class:"subscribe-button"},{default:b((()=>[U(k(x(W)),1)])),_:1},8,["loading"])]))])),_:1},8,["class","elevation","border"]))}}),[["__scopeId","data-v-086710ca"]]);export{D as P};
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.