1import{i as C,Z as R,r as d,c as u,w as i,a,b as t,g as p,o as r,t as s,f as c,n as y,F as w,j as T}from"./app-BFBm0Bhp.js";import{T as j}from"./TagInput-B24tt8Te.js";import{H as O,P as W}from"./PublicLayout-CrF0O-Xg.js";import q from"./Banner-DJY-QY1j.js";import A from"./Tile-OcqGRWaW.js";import{_ as F}from"./GuestLayout-D0dV0UsO.js";import I from"./TileWithGradiant-DkH4WarQ.js";import{_ as H}from"./ArrowOutline-BlnyArpk.js";import{T as k}from"./TileWhiteButton-CQnqhm_G.js";import{T as E}from"./TileTransparentButton-W4MQsupk.js";import M from"./WithMargins-2s5ttyK6.js";import V from"./Requisites-CnEXogUb.js";import{_ as D}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ChevronDownOutline-I8s4miqi.js";import"./ApplicationLogo-BDZZhcqx.js";import"./NavLink-XJ1F9B8R.js";import"./PaymentForm-b0DK4QxV.js";import"./InputError-gS6WMAxM.js";import"./InputLabel-COeR7jGs.js";import"./TextInput-BleaLv5g.js";import"./Modal-BCYUwSCy.js";import"./PrimaryButton-DQRXstZk.js";import"./Checkbox-D14ZYmw-.js";import"./LogoYoutube-DPs_gR_f.js";const N={name:"Home",components:{Requisites:V,TileButton:k,WithMargins:M,TileTransparentButton:E,TileWhiteButton:k,TileWithGradiant:I,ArrowOutline:H,TileWithButton:I,PublicLayout:W,GuestLayout:F,Banner:q,Tile:A,Header:O,Head:R,TagInput:j,Link:C},props:{categories:{type:Object,default:[]},banner:{type:Object,default:{postItem:null,type:null}},secondaryBanner:{type:Object,default:{postItem:null,type:null}},top:{type:Object,default:{postItem:null,type:null}},bottomLeft:{type:Object,default:{postItem:null,type:null}},bottomRight:{type:Object,default:{postItem:null,type:null}},texts:{type:Object,default:[]}},data(){return{sectionIndex:null,patronTranslations:this.$page.props.translations.patron,projectTranslations:this.$page.props.translations.project,appTranslations:this.$page.props.translations.app,locale:this.$page.props.appLocale,activeTab:null,backgroundSets:["bg-gradient-to-br from-[#aba9c5] to-[#7a77a3]","bg-gradient-to-br from-[#b4ae93] to-[#8f865d]","bg-gradient-to-br from-[#fdac00] to-[#c68e00]","bg-gradient-to-br from-[#9ba6a9] to-[#78878b]","bg-gradient-to-br from-[#b1560e] to-[#874826]","bg-gradient-to-br from-[#004286] to-[#002d50]"],borderSets:[{default:"border-[#aba9c5]",hover:"hover:border-[#aba9c5]"},{default:"border-[#b4ae93]",hover:"hover:border-[#b4ae93]"},{default:"border-[#fdac00]",hover:"hover:border-[#fdac00]"},{default:"border-[#9ba6a9]",hover:"hover:border-[#9ba6a9]"},{default:"border-[#b1560e]",hover:"hover:border-[#b1560e]"},{default:"border-[#004286]",hover:"hover:border-[#004286]"}],textSets:[{default:"text-[#aba9c5]",hover:"hover:text-[#aba9c5]"},{default:"text-[#b4ae93]",hover:"hover:text-[#b4ae93]"},{default:"text-[#fdac00]",hover:"hover:text-[#fdac00]"},{default:"text-[#9ba6a9]",hover:"hover:text-[#9ba6a9]"},{default:"text-[#b1560e]",hover:"hover:text-[#b1560e]"},{default:"text-[#004286]",hover:"hover:text-[#004286]"}]}},methods:{categoryBackground(n){return this.backgroundSets[n%this.backgroundSets.length]},categoryBorder(n){return this.borderSets[n%this.borderSets.length]},categoryText(n){return this.textSets[n%this.textSets.length]},scrollToSection(n){this.setActiveTab(n);const h=document.getElementById("category-"+n);h&&h.scrollIntoView({behavior:"smooth"})},setActiveTab(n){this.activeTab=n}}},z={class:"space-y-20"},U={class:"text-[32pt] md:text-[40pt] text-center"},Y={class:"text-[16pt] text-center whitespace-pre-line"},Z={class:"text-[16pt] text-center whitespace-pre-line"},J={class:"flex w-full"},K={class:"font-lora text-[24pt] font-semibold mx-auto"},Q={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5"},X={class:"w-3/4"},$={class:"text-white text-[32pt] leading-none font-metaPro"},tt={class:"pb-2 absolute bottom-0 right-6"},et={class:"w-3/4"},ot={class:"text-white text-[32pt] leading-none font-metaPro"},st={class:"pb-2 absolute bottom-0 right-6"},nt={class:"w-3/4"},at={class:"text-white text-[32pt] leading-none font-metaPro"},rt={class:"pb-2 absolute bottom-0 right-6"},it={class:"mt-auto group-hover:-mr-4 transition-all duration-200 ease-in-out"},lt={key:0,class:"space-y-10"},ct={class:"w-1/2 text-wrap"},dt={class:"text-custom-gray text-[28pt] md:text-[40pt] xl:text-[48pt] font-metaProBold leading-none"},pt={key:1,class:"space-y-10"},mt={class:"w-1/2 text-wrap"},ut={class:"text-primary text-[28pt] md:text-[40pt] xl:text-[48pt] font-metaProBold leading-none"},ht={class:"grid grid-cols-1 md:grid-cols-2 gap-5"},_t={class:"md:col-span-2"},bt={class:"border-b-4 py-4 border-primary"},gt={class:"font-metaPro leading-none text-[28pt] lg:text-[32pt] xl:text-[40pt] text-primary"},ft={class:"grid grid-cols-1 md:grid-cols-2 font-lora"},vt={class:"py-5 pr-5 text-[18pt]"},yt={class:"whitespace-pre-line"},xt={class:"border-b-4 py-4 border-primary"},wt={class:"font-metaPro leading-none text-[28pt] lg:text-[32pt] xl:text-[40pt] text-primary"},Tt={class:"font-lora"},It={class:"py-5 pr-5 text-[18pt]"},kt={class:"whitespace-pre-line"},Bt={class:"border-b-4 py-4 border-primary"},Pt={class:"font-metaPro leading-none text-[28pt] lg:text-[32pt] xl:text-[40pt] text-primary"},Lt={class:"font-lora"},St={class:"py-5 pr-5 text-[18pt]"},Gt={class:"whitespace-pre-line"},Ct={class:"md:col-span-2"},Rt={class:"border-b-4 py-4 border-primary"},jt={class:"font-metaPro leading-none text-[28pt] lg:text-[32pt] xl:text-[40pt] text-primary"},Ot={class:"grid grid-cols-1 md:grid-cols-2 font-lora"},Wt={class:"py-5 pr-5 text-[18pt]"},qt={class:"whitespace-pre-line"},At={class:"md:col-span-2"},Ft={class:"border-b-4 py-4 border-primary"},Ht={class:"font-metaPro leading-none text-[28pt] lg:text-[32pt] xl:text-[40pt] text-primary"},Et={class:"grid grid-cols-1 md:grid-cols-2 font-lora"},Mt={class:"py-5 pr-5 text-[18pt]"},Vt={class:"whitespace-pre-line"},Dt={class:"-mt-6 md:-mt-10 transition-all duration-200 ease-in-out group-hover:-mr-4"},Nt={class:"-mt-6 md:-mt-10 transition-all duration-200 ease-in-out group-hover:-mr-4"},zt={class:"-mt-6 md:-mt-10 transition-all duration-200 ease-in-out group-hover:-mr-4"},Ut={class:"col-span-12"},Yt={class:"font-lora text-[40pt]"},Zt={class:"col-span-12"},Jt={class:"-mt-6 md:-mt-10 transition-all duration-200 ease-in-out group-hover:-mr-4"},Kt=["onClick"],Qt={class:"w-3/4"},Xt={class:"text-white text-[32pt] leading-none font-metaPro"},$t={class:"pb-2 absolute bottom-0 right-6"},te={class:"mt-auto group-hover:-mr-4 transition-all duration-200 ease-in-out"},ee=["id"],oe={key:0,class:"grid grid-cols-1 xs:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 gap-x-5 gap-y-2"},se={key:1,class:"font-lora uppercase"};function ne(n,h,e,ae,o,_){const B=d("Head"),P=d("Banner"),b=d("WithMargins"),m=d("ArrowOutline"),g=d("Link"),L=d("Requisites"),x=d("Tile"),S=d("TileWithGradiant"),G=d("PublicLayout");return r(),u(G,null,{default:i(()=>[a(B,{title:"Patrons"}),t("div",z,[a(b,null,{default:i(()=>[e.banner.postItem&&e.banner.type?(r(),u(P,{key:0,post:e.banner.postItem,type:e.banner.type,from:"#0098FF",via:"#60C9FF",viaStart:"30%",to:"transparent",toStart:"55%",transparentStart:"60%",
1showCategory:!1},null,8,["post","type"])):p("",!0)]),_:1}),a(b,{class:"font-lora space-y-10 w-[75%] mx-auto"},{default:i(()=>[t("h1",U,s(e.texts.mainTitle.content[o.locale]),1),t("p",Y,[t("strong",null,s(e.texts.mainExcerpt.content[o.locale]),1)]),t("p",Z,s(e.texts.mainMore.content[o.locale]),1),t("div",J,[t("span",K,s(o.appTranslations.thankYou)+"!",1)])]),_:1}),a(b,{class:"space-y-16"},{default:i(()=>[t("div",null,[t("div",Q,[t("div",{onClick:h[0]||(h[0]=f=>o.sectionIndex="requisites"),class:"cursor-pointer p-4 h-40 relative group bg-custom-gray"},[t("div",X,[t("span",$,s(o.patronTranslations.howDonate),1)]),t("div",tt,[t("div",{class:y(["mt-auto transition-all duration-200 ease-in-out",{"group-hover:-mr-4":o.sectionIndex!=="requisites"}])},[a(m,{"is-active":o.sectionIndex==="requisites",class:"ml-auto w-20"},null,8,["is-active"])],2)])]),t("div",{onClick:h[1]||(h[1]=f=>o.sectionIndex="patronGains"),class:"cursor-pointer p-4 h-40 relative group bg-primary"},[t("div",et,[t("span",ot,s(o.patronTranslations.patronGains),1)]),t("div",st,[t("div",{class:y(["mt-auto transition-all duration-200 ease-in-out",{"group-hover:-mr-4":o.sectionIndex!=="patronGains"}])},[a(m,{"is-active":o.sectionIndex==="patronGains",class:"ml-auto w-20"},null,8,["is-active"])],2)])]),a(g,{href:n.route("projects.index"),class:"cursor-pointer p-4 h-40 relative group bg-accent"},{default:i(()=>[t("div",nt,[t("span",at,s(o.appTranslations.projects),1)]),t("div",rt,[t("div",it,[a(m,{class:"ml-auto w-20"})])])]),_:1},8,["href"])])]),o.sectionIndex==="requisites"?(r(),c("div",lt,[t("div",ct,[t("span",dt,s(o.patronTranslations.howToDonateInEntireWorld),1)]),a(L,{design:"compact",textAccent:"text-custom-gray",borderAccent:"border-custom-gray"})])):p("",!0),o.sectionIndex==="patronGains"?(r(),c("div",pt,[t("div",mt,[t("span",ut,s(o.patronTranslations.foundationPatronGains),1)]),t("div",ht,[t("div",_t,[t("div",bt,[t("span",gt,s(o.patronTranslations.inLatvia),1)]),t("div",ft,[t("div",vt,[t("p",yt,s(e.texts.patronGainLatvia.content[o.locale]),1)])])]),t("div",null,[t("div",xt,[t("span",wt,s(o.patronTranslations.forBusiness),1)]),t("div",Tt,[t("div",It,[t("p",kt,s(e.texts.patronGainBusiness.content[o.locale]),1)])])]),t("div",null,[t("div",Bt,[t("span",Pt,s(o.patronTranslations.forPerson),1)]),t("div",Lt,[t("div",St,[t("p",Gt,s(e.texts.patronGainPerson.content[o.locale]),1)])])]),t("div",Ct,[t("div",Rt,[t("span",jt,s(o.patronTranslations.usa),1)]),t("div",Ot,[t("div",Wt,[t("p",qt,s(e.texts.patronGainUsa.content[o.locale]),1)])])]),t("div",At,[t("div",Ft,[t("span",Ht,s(o.patronTranslations.canada),1)]),t("div",Et,[t("div",Mt,[t("p",Vt,s(e.texts.patronGainCanada.content[o.locale]),1)])])])])])):p("",!0)]),_:1}),e.top.postItem&&e.top.type||e.bottomLeft.postItem&&e.bottomLeft.type||e.bottomRight.postItem&&e.bottomRight.type?(r(),u(b,{key:0,class:"grid grid-cols-12 gap-y-5 gap-x-5"},{default:i(()=>[e.top.postItem&&e.top.type?(r(),u(g,{key:0,class:"cursor-pointer col-span-12",href:n.route(e.top.type+".show",e.top.postItem.id)},{default:i(()=>[a(x,{post:e.top.postItem,textPosition:"bottom-0 w-2/3",classes:"bg-primary mix-blend-multiply h-60 md:h-[36rem]",href:n.route(e.top.type+".show",e.top.postItem.id)},{button:i(()=>[t("div",Dt,[a(m,{class:"w-16 md:w-24 ml-auto mr-5"})])]),_:1},8,["post","href"])]),_:1},8,["href"])):p("",!0),e.bottomLeft.postItem&&e.bottomLeft.type?(r(),u(g,{key:1,class:"cursor-pointer col-span-12 md:col-span-5",href:n.route(e.bottomLeft.type+".show",e.bottomLeft.postItem.id)},{default:i(()=>[a(x,{post:e.top.postItem,textPosition:"bottom-0 w-2/3",classes:"bg-primary mix-blend-multiply h-60 md:h-96",href:n.route(e.bottomLeft.type+".show",e.bottomLeft.postItem.id)},{button:i(()=>[t("div",Nt,[a(m,{class:"w-16 md:w-24 ml-auto mr-5"})])]),_:1},8,["post","href"])]),_:1},8,["href"])):p("",!0),e.bottomRight.postItem&&e.bottomRight.type?(r(),u(g,{key:2,class:"cursor-pointer col-span-12 md:col-span-7",href:n.route(e.bottomRight.type+".show",e.bottomRight.postItem.id)},{default:i(()=>[a(x,{post:e.bottomRight.postItem,textPosition:"bottom-0 w-2/3",classes:"bg-primary mix-blend-multiply h-60 md:h-96",href:n.route(e.bottomRight.type+".show",e.bottomRight.postItem.id)},{button:i(()=>[t("div",zt,[a(m,{class:"w-16 md:w-24 ml-auto mr-5"})])]),_:1},8,["post","href"])]),_:1},8,["href"])):p("",!0)]),_:1})):p("",!0),a(b,{class:"grid grid-cols-12 gap-y-5 gap-x-5"},{default:i(()=>[t("div",Ut,[t("h1",Yt,s(o.patronTranslations.proudPatrons),1)]),t("div",Zt,[e.secondaryBanner.postItem&&e.secondaryBanner.type?(r(),u(g,{key:0,class:"cursor-pointer col-span-12",href:n.route(e.secondaryBanner.type+".show",e.secondaryBanner.postItem.id)},{default:i(()=>[a(S,{post:e.secondaryBanner.postItem,classes:"h-[32rem] bg-accent","gradient-color":"transparent","show-excerpt":!0},{button:i(()=>[t("div",Jt,[a(m,{class:"w-16 md:w-24 ml-auto mr-5"})])]),_:1},8,["post"])]),_:1},8,["href"])):p("",!0)]),(r(!0),c(w,null,T(e.categories,(f,l)=>
1(r(),c("div",{class:y(["cursor-pointer w-full col-span-12 sm:col-span-6 xl:col-span-4 p-4 h-44 relative group",_.categoryBackground(l)]),onClick:v=>_.scrollToSection(l)},[t("div",Qt,[t("span",Xt,s(f.name[o.locale]),1)]),t("div",$t,[t("div",te,[a(m,{class:"ml-auto w-20"})])])],10,Kt))),256))]),_:1}),t("div",null,[(r(!0),c(w,null,T(e.categories,(f,l)=>(r(),c("div",{key:l,id:"category-"+l,class:"py-12"},[a(b,{class:"space-y-12",onClick:v=>_.scrollToSection(l)},{default:i(()=>[t("div",{class:y(["border-b-4 py-4 cursor-pointer",_.categoryBorder(l).default])},[t("span",{class:y(["font-metaPro text-[40pt] leading-none",_.categoryText(l).default])},s(f.name[o.locale]),3)],2),o.activeTab===l?(r(),c("div",oe,[(r(!0),c(w,null,T(f.patrons,v=>(r(),c("div",null,[v.has_details?(r(),u(g,{key:0,href:n.route("patrons.show",{patron:v.id}),class:"flex"},{default:i(()=>[t("span",{class:y(_.categoryText(l).hover+" font-lora hover:border-b-2 hover:font-bold uppercase"+_.categoryBorder(l).hover)},s(v.name[o.locale]),3)]),_:2},1032,["href"])):(r(),c("span",se,s(v.name[o.locale]),1))]))),256))])):p("",!0)]),_:2},1032,["onClick"])],8,ee))),128))])])]),_:1})}const Ge=D(N,[["render",ne]]);export{Ge 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.