UNPKG

@lanaco/lnc-react-ui

Version:

React component library

14 lines (12 loc) 2.12 kB
"use strict";const e=require("react/jsx-runtime"),D=require("react"),E=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),G=require("./breakpoints-CcVm-gVm.cjs"),J=require("./index-BXkL0HmX.cjs"),K=require("./LoanCalculatorSection.cjs"),Q=E.styled.div` display: flex; gap: 2rem; & .loan-calculator, .location-finder { flex: 1; } @media ${G.down("S")} { flex-direction: column; gap: 1.25rem; } `,V=D.forwardRef((t,n)=>{const{hasLoanCalculator:a,hasLocationFinder:o,locationFinderTitle:l,locationFinderPlaceholder:r,openMapText:i,onOpenMap:s=()=>{},mapFilters:m,inputComponent:c,loanCalculatorTitle:u,loanCalculatorText:d,loanCalculatorPlaceholder:p,openCalculatorText:x,onOpenCalculator:y=X=>{},defaultLoanAmount:T,defaultInterestRate:L,defaultLoanPeriod:P,monthlyPayment:h,totalInterestPaid:f,currency:C,loanPeriodUnit:R,minLoanAmount:b,maxLoanAmount:q,minInterestRate:A,maxInterestRate:F,minLoanPeriod:H,maxLoanPeriod:M,headerTitleText:S,footerTitleText:j,loanAmountLabel:I,loanAmountHint:w,interestRateLabel:g,interestRateHint:O,loanPeriodLabel:_,loanPeriodHint:k,submitText:v,summaryMonthlyPaymentText:N,summaryMonthlyPaymentHint:U,summaryTotalPaymentText:W,summaryTotalPaymentHint:$,handleSubmit:z,handleCancel:B}=t;return e.jsxs(Q,{ref:n,className:"lp-section lp-custom-loan-map-section",children:[o===!0&&e.jsx(J.LocationFinder,{title:l,placeholderText:r,onOpenMap:s,openMapText:i,mapFilters:m,inputComponent:c}),a===!0&&e.jsx(K,{loanCalculatorTitle:u,loanCalculatorText:d,loanCalculatorPlaceholder:p,openCalculatorText:x,onOpenCalculator:y,defaultLoanAmount:T,defaultInterestRate:L,defaultLoanPeriod:P,monthlyPayment:h,totalInterestPaid:f,currency:C,loanPeriodUnit:R,minLoanAmount:b,maxLoanAmount:q,minInterestRate:A,maxInterestRate:F,minLoanPeriod:H,maxLoanPeriod:M,headerTitleText:S,footerTitleText:j,loanAmountLabel:I,loanAmountHint:w,interestRateLabel:g,interestRateHint:O,loanPeriodLabel:_,loanPeriodHint:k,submitText:v,summaryMonthlyPaymentText:N,summaryMonthlyPaymentHint:U,summaryTotalPaymentText:W,summaryTotalPaymentHint:$,handleSubmit:z,handleCancel:B})]})});module.exports=V;