import{_ as t,f as a,w as e,aG as s}from"./index-4c745ab9.js";import{u as o}from"./useFreeze-8df38998.js";import{o as i,a as l,g as n,t as r,u,d as c,L as d,l as m,q as p,f as v,F as _}from"./vendor-edc0678f.js";import{D as f,P as y}from"./productDetail-a6cee236.js";import{f as N}from"./index-478984b7.js";const b={class:"rules"},g={class:"title fw-bold"},h={class:"item"},j=t({__name:"productRules",props:{proRules:{type:String,default:""}},setup:t=>(e,s)=>(i(),l("div",b,[n("div",g,r(u(a)("product_rules")),1),n("div",h,r(t.proRules?t.proRules:u(a)("No_introductionyet")),1)]))},[["__scopeId","data-v-d95cea18"]]),R={class:"introduction"},D={class:"title fw-bold"},F={class:"buyNow"},w=t({__name:"financialDetails",setup(t){const{_isFreeze:b}=o(),g=c(),h=d(),w=m({leftName:a("average_income"),leftColor:"#DF163D",centerName:"".concat(a("project_cycle"),"(").concat(a("ldgpt_host_day"),")"),rightName:a("starting-amount")}),A=m(""),I=m({}),C=m(""),x=()=>{s.includes(__config._APP_ENV)?b(s)&&g.push("/buyFunds/".concat(h.params.id)):g.push("/buyFunds/".concat(h.params.id))};return p(()=>{(async()=>{try{const t=await N(h.params.id);if(200===t.code){const{title:a,icon:e,avgRate:s,days:o,limitMin:i,coin:l,prodectIntroduction:n,problem:r}=t.data;A.value=n,w.value={title:a,icon:e,leftNum:s+"%",centerNum:o,rightNum:i+" "+l.toUpperCase(),...w.value};const{process:u,totalInvestAmount:c,remainAmount:d,timeLimit:m}=t.data;I.value={title:a,process:u,totalInvestAmount:c,remainAmount:d,timeLimit:m,avgRate:s,coin:l.toUpperCase()},C.value=r}}catch(t){}})()}),(t,s)=>(i(),l(_,null,[v(e,{currentName:u(a)("host.detail")},null,8,["currentName"]),v(f,{headerObj:w.value},null,8,["headerObj"]),n("div",R,[n("div",D,r(u(a)("Fund_introduction")),1),n("div",null,r(A.value?A.value:u(a)("No_introductionyet")),1)]),v(y,{proDetail:I.value},null,8,["proDetail"]),v(j,{proRules:C.value},null,8,["proRules"]),n("div",F,[n("div",{class:"buyBtn",onClick:x},r(u(a)("buy_it_now")),1)])],64))}},[["__scopeId","data-v-cd872708"]]);export{w as default};
