PageSourceSearch

https://fonds.lv/build/assets/Detail-7i2lyQFU.js

js fonds.lv collected 2026-09-24 10:04:49 UTC 7,672 bytes, 1 lines download raw bytes

1import{P as k}from"./PublicLayout-Bl2s4wul.js";import B from"./Banner-jNEpQ46N.js";import T from"./Contents-BLECTrPo.js";import C from"./WithMargins-D7iJzfnL.js";import{T as L}from"./TileWhiteButton-DQdKe0Qx.js";import{i as F,Z as M,r as p,c as f,w as x,a as d,b as t,f as c,g as m,t as n,W as N,e as u,o as l,F as A,j as S}from"./app-B9KORyBa.js";import D from"./PaymentForm-BEitIOo4.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ApplicationLogo-DrAX-EpC.js";import"./NavLink-BiVKPBr8.js";import"./ChevronDownOutline-DkbFw82G.js";import"./LogoYoutube-C-1pvmVy.js";import"./Modal-Bzvoe6wK.js";import"./PrimaryButton-vaEit9c1.js";import"./Tile-Ca0LacZN.js";import"./ArrowOutline-MLamF7zR.js";import"./DocumentTextOutline-B7A647Cs.js";import"./InputError-BH5ciAU3.js";import"./InputLabel-C-zTQq7X.js";import"./TextInput-C7OaZZNQ.js";import"./Checkbox-B5c7Wy63.js";const I={name:"Detail",components:{Head:M,Link:F,PaymentForm:D,TileButton:L,WithMargins:C,Contents:T,Banner:B,PublicLayout:k},props:{project:{type:Object,default:[]},achievedAmount:{type:Number,default:0},patrons:{type:Object,default:[]}},data(){return{projectTranslations:this.$page.props.translations.project,appTranslations:this.$page.props.translations.app,locale:this.$page.props.appLocale,openPaymentForm:!1,predefinedAmount:0,predefinedProject:this.project,openTab:!0}},methods:{openModel(i=10){this.predefinedAmount=i,this.openPaymentForm=!0},splitNumberIntoGroups(i){return i.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")},calculatePercentageLeft(){const i=this.project.expenses_end??this.project.expenses_start,e=this.achievedAmount/100;return i===0?0:((i-e)/i*100).toFixed(2)}}},V={class:"space-y-20"},W={class:"grid grid-cols-1 xl:grid-cols-12 gap-5"},H={class:"xl:col-span-5 bg-gradient-to-br from-custom-blue to-typography p-12 w-full space-y-4"},O={class:"text-white font-metaProBold text-[24pt] md:text-[36pt] xl:text-[40pt] leading-none"},z={class:"font-lora text-white text-[20pt] leading-none"},E={class:"xl:col-span-7 bg-primary px-12 py-6 space-y-8"},Z={class:"xl:flex"},q={class:"text-white font-lora mt-auto"},J={class:"ml-auto text-white font-metaProBold text-[32pt]"},K={class:"bg-gradient-to-r from-accent to-secondary h-4 shadow-[inset_0_5px_5px_-5px_rgba(0,0,0,0.9),_inset_0_-5px_5px_-5px_rgba(0,0,0,0.9)] flex"},Q={class:"grid grid-cols-2 xl:grid-cols-5 gap-5"},R={class:"text-center font-metaProBold text-white text-[12pt] m-auto"},U={class:"group cursor-pointer h-full bg-gradient-to-tr from-[#90470e] via-[#ba7322] to-[#ffe48b] h-full flex flex-col"},X={class:"py-0.5 px-6 h-full flex flex-col"},Y={class:"uppercase text-[#461703] text-[12pt] m-auto font-metaPro group-hover:translate-y-1 transition ease-in-out duration-300 group-active:text-white",style:{"letter-spacing":"0.2em"}},$={class:"xl:col-span-12 bg-tertiary px-12 pt-6 pb-20 xl:grid xl:grid-cols-1 gap-5"},tt={class:"text-white font-metaProBold text-5xl xl:text-[72pt] leading-none"},et={key:0,class:"text-nowrap"},ot={key:1},st={key:2,class:"text-nowrap"},nt={class:"py-6"},rt={class:"font-lora leading-none text-xl xl:text-[20pt] text-white"},at={class:"w-[75%]"},lt={key:0},it={id:"patrons"},pt={key:"patrons"},ct={class:"py-12 space-y-4"},dt={class:"font-metaPro text-[40pt] leading-none text-accent"},mt={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"},ut={class:"font-lora hover:border-b-2 hover:font-bold hover:text-accent hover:border-accent"},xt={key:1,class:"font-lora"};function _t(i,e,s,ft,o,r){const h=p("Head"),g=p("Banner"),b=p("TileButton"),y=p("Contents"),v=p("Link"),j=p("WithMargins"),w=p("PaymentForm"),P=p("PublicLayout");return l(),f(P,null,{default:x(()=>[d(h,{title:"Projects"}),t("div",V,[d(j,{class:"space-y-20"},{default:x(()=>{var _;return[d(g,{post:s.project,type:"projects",via:"#004286",viaStart:"30%",to:"transparent",toStart:"55%",transparentStart:"60%",showCategory:!1,showButton:!1},null,8,["post"]),t("div",W,[t("div",H,[t("h1",O,n(o.projectTranslations.patronOpportunities),1),t("p",z,n(s.project.patron_opportunities[o.locale]),1)]),t("div",E,[t("div",Z,[t("p",q,n(o.projectTranslations.from)+" "+n(r.splitNumberIntoGroups(s.project.expenses_end??s.project.expenses_start))+" "+n(o.projectTranslations.alreadyDonated),1
1),t("p",J,n(r.splitNumberIntoGroups(s.achievedAmount/100))+" €",1)]),t("div",K,[t("div",{class:"h-4 bg-white shadow-[inset_0_5px_5px_-5px_rgba(0,0,0,0.9),_inset_0_-5px_5px_-5px_rgba(0,0,0,0.9)] ml-auto",style:N({width:r.calculatePercentageLeft()+"%"})},null,4)]),t("div",Q,[t("div",{class:"border border-accent bg-secondary py-1 cursor-pointer",onClick:e[0]||(e[0]=a=>r.openModel(20))},[...e[8]||(e[8]=[t("h1",{class:"text-center font-metaProBold text-white text-[16pt]"},[u("20"),t("span",{class:"text-[12pt]"},"€")],-1)])]),t("div",{class:"border border-accent bg-secondary py-1 cursor-pointer",onClick:e[1]||(e[1]=a=>r.openModel(35))},[...e[9]||(e[9]=[t("h1",{class:"text-center font-metaProBold text-white text-[16pt]"},[u("35"),t("span",{class:"text-[12pt]"},"€")],-1)])]),t("div",{class:"border border-accent bg-secondary py-1 cursor-pointer",onClick:e[2]||(e[2]=a=>r.openModel(50))},[...e[10]||(e[10]=[t("h1",{class:"text-center font-metaProBold text-white text-[16pt]"},[u("50"),t("span",{class:"text-[12pt]"},"€")],-1)])]),t("div",{class:"border border-accent bg-secondary py-1 cursor-pointer",onClick:e[3]||(e[3]=a=>r.openModel(100))},[...e[11]||(e[11]=[t("h1",{class:"text-center font-metaProBold text-white text-[16pt]"},[u("100"),t("span",{class:"text-[12pt]"},"€")],-1)])]),t("div",{class:"border border-accent bg-secondary py-1 flex cursor-pointer",onClick:e[4]||(e[4]=a=>r.openModel())},[t("h1",R,n(o.projectTranslations.chooseSum),1)])]),t("div",{class:"overflow-hidden w-32 h-10",onClick:e[5]||(e[5]=a=>r.openModel())},[t("div",U,[t("div",X,[t("p",Y,n(o.appTranslations.donate),1)]),e[12]||(e[12]=t("div",{class:"w-full h-2 bg-gradient-to-r from-[#441d01] to-[#daa853] bg-transparent group-hover:translate-y-2 transition ease-in-out duration-300"},null,-1))])])]),t("div",$,[t("div",null,[t("h1",tt,[s.project.expenses_start?(l(),c("span",et,n(r.splitNumberIntoGroups(s.project.expenses_start)),1)):m("",!0),s.project.expenses_start&&s.project.expenses_end?(l(),c("span",ot," — ")):m("",!0),s.project.expenses_end?(l(),c("span",st,n(r.splitNumberIntoGroups(s.project.expenses_end)),1)):m("",!0),e[13]||(e[13]=u("€",-1))])]),t("div",nt,[t("p",rt,n(s.project.expenses_description[o.locale]),1)]),d(b,{internalLink:!1,href:"mailto:[email protected]",buttonPosition:"left-0","button-color":"bg-custom-light-gray"},{default:x(()=>[t("span",null,n(o.projectTranslations.contactFund),1)]),_:1})])]),t("div",at,[d(y,{contents:s.project.contents,enableFirstLetterStyle:!1},null,8,["contents"])]),(_=s.patrons)!=null&&_.length?(l(),c("div",lt,[t("div",it,[t("div",pt,[t("div",ct,[t("div",{class:"border-b-4 py-4 border-accent cursor-pointer",onClick:e[6]||(e[6]=a=>o.openTab=!o.openTab)},[t("span",dt,n(o.projectTranslations.thanksToDonators),1)]),o.openTab?(l(),c("div",mt,[(l(!0),c(A,null,S(s.patrons,a=>(l(),c("div",null,[a.has_details?(l(),f(v,{key:0,href:i.route("patrons.show",{patron:a.id}),class:"flex"},{default:x(()=>[t("span",ut,n(a.name[o.locale]),1)]),_:2},1032,["href"])):(l(),c("span",xt,n(a.name[o.locale]),1))]))),256))])):m("",!0)])])])])):m("",!0)]}),_:1})]),d(w,{onClose:e[7]||(e[7]=_=>o.openPaymentForm=!1),"open-modal":o.openPaymentForm,"predefined-amount":o.predefinedAmount,"predefined-project":o.predefinedProject},null,8,["open-modal","predefined-amount","predefined-project"])]),_:1})}const Vt=G(I,[["render",_t]]);export{Vt 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.