1import{u as A,r as b,j as t,F as h,cK as y,cz as i,T as l}from"./elements-DVh2jUIM.js";import{o as w,A as v,j as k,q as L,L as x,aU as q}from"./index-DeQvL4I7.js";import{B as S}from"./BillingSideContentContainer-2GpqK0JI.js";import{R}from"./SupportLink-Bmmzei6G.js";import{A as I}from"./authorization-CE7gncHO.js";import{u as z}from"./useRedesign-DVyq07A4.js";import"./grids-DXrfAsUA.js";import"./startOfDay-AazlW55I.js";import"./ManagePayment-DWws-XIx.js";import"./useIsMobile-Davbtvz5.js";import"./useAuthorization-D7B2eQha.js";const Q={title:"Support",showPropertySelector:!1,showAi:!1};function G(){const N=z(),g=w().state,{t:e}=A(),[d]=v(),[j,K]=b.useState([]),[s,P]=b.useState(),u=k(a=>a.accounts),o=d.get("accountNumber")??void 0,r=d.has("subLedgerId")?Number(d.get("subLedgerId")):void 0,c=new URLSearchParams;o&&c.set("accountNumber",o),typeof r=="number"&&c.set("subLedgerId",String(r));const m=`/billing${c.toString()?`?${c.toString()}`:""}`;b.useEffect(()=>{var f;const a=u.find(p=>p.accountNumber===o&&p.subLedgerId===r)??u.at(0);P(a),L.getPayments({ownerId:a==null?void 0:a.ownerId,subLedgerId:(f=a==null?void 0:a.subLedgerId)==null?void 0:f.toString()}).then(p=>K(p.member)).catch(console.error)},[o,u,r]);const n={b:t.jsx("b",{}),br:t.jsx("br",{}),ul:t.jsx("ul",{className:"mt-1 list-disc"}),ol:t.jsx("ol",{className:"mt-1 list-decimal"}),li:t.jsx("li",{className:"ml-5"})};return t.jsx(I,{controller:"Homeowner_v2",action:"Billing",children:N?t.jsxs("div",{className:"flex flex-col tablet:flex-row gap-6",children:[t.jsxs("section",{className:"tablet:w-2/3 p-horizontal-layout-sm tablet:p-horizontal-layout bg-base-fill rounded-xl",children:[t.jsx("h1",{className:"font-semibold text-xl",children:e("billing.support.title")}),t.jsx("p",{className:"tablet:hidden pt-4",children:t.jsxs(x,{to:m,className:"text-base-link font-bold",children:[t.jsx(h,{icon:y,className:"mr-2 w-4 h-4"}),e("billing.support.returnToBilling")]})}),t.jsxs("div",{className:"mt-12 space-y-8",children:[t.jsx(i,{title:e("billing.support.faq.duplicate.title"),defaultOpen:g,children:t.jsx(l,{i18nKey:"billing.support.faq.duplicate.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.balance.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.balance.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.prePay.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.prePay.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.bankAccount.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.bankAccount.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.viewPayments.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.viewPayments.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.changeRecurringPayment.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.changeRecurringPayment.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.paymentDue.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.paymentDue.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.multipleAccounts.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.multipleAccounts.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.multipleMethods.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.multipleMethods.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.paymentApplied.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.paymentApplied.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.fundsPulled.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.fundsPulled.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.cancel.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.cancel.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.lateFees.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.lateFees.content",components:n})})]}),t.jsxs("div",{className:"mt-12 p-4 rounded-lg bg-primary/10",children:[t.jsx("p",{children:t.jsx(l,{i18nKey:"billing.support.description",components:{a:t.jsx("a",{href:q,target:"_blank",rel:"noopener noreferrer",className:"text-base-link hover:underline"})}})}),s&&t.jsxs("dl",{className:"grid grid-cols-1 items-start text-sm mt-4 gap-y-1 gap-x-4 sm:grid-cols-[auto_1fr]",children:[t.jsx("dt",{className:"font-bold",children:e("billing.support.account.number")}),t.jsx("dd",{"data-qa":"faq-account",children:s.accountNumber}),t.jsx("dt",{className:"font-bold",children:e("billing.support.account.company")}),t.jsx("dd",{"data-qa":"faq-mgmt-co",children:s.managementCompany}),t.jsx("dt",{className:"font-bold",children:e("billing.support.account.name")}),t.jsx("dd",{"data-qa":"owner-name",children:s.ownerName}),t.jsx("dt",{className:"font-bold",children:e("billing.support.account.association")}),t.jsx("dd",{"data-qa":"assoc-name",children:s.associationName}),t.jsx("dt",{className:"font-bold",children:e("billing.support.account.email")}),t.jsx("dd",{"data-qa":"email",children:s.eMail}),t.jsx("dt",{className:"font-bold",children:e("billing.support.account.address")}),t.jsx("dd",{"data-qa":"address",children:s.propertyAddress.address1})]})]})]}),t.jsx(S,{payments:j,selectedAccount:s,manageDuplicatePayment:!1})]}):t.jsxs("div",{className:"flex flex-col md:flex-row bg-base-fill rounded-xl",children:[t.jsxs("section",{className:"md:w-2/3 p-horizontal-layout-sm sm:p-horizontal-layout",children:[t.jsx("h1",{className:"font-bold text-2xl",children:e("billing.support.title")}),t.jsx("p",{className:"md:hidden pt-4",children:t.jsxs(x,{to:m,className:"text-base-link font-bold",children:[t.jsx(h,{icon:y,className:"mr-2 w-4 h-4"}),e("billing.support.returnToBilling")]})}),t.jsxs("div",{className:"mt-12 space-y-8",children:[t.jsx(i,{title:e("billing.support.faq.duplicate.title"),defaultOpen:g,children:t.jsx(l,{i18nKey:"billing.support.faq.duplicate.content",components:n}
1)}),t.jsx(i,{title:e("billing.support.faq.balance.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.balance.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.prePay.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.prePay.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.bankAccount.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.bankAccount.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.viewPayments.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.viewPayments.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.changeRecurringPayment.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.changeRecurringPayment.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.paymentDue.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.paymentDue.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.multipleAccounts.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.multipleAccounts.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.multipleMethods.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.multipleMethods.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.paymentApplied.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.paymentApplied.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.fundsPulled.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.fundsPulled.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.cancel.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.cancel.content",components:n})}),t.jsx(i,{title:e("billing.support.faq.lateFees.title"),children:t.jsx(l,{i18nKey:"billing.support.faq.lateFees.content",components:n})})]}),t.jsxs("div",{className:"mt-12 p-4 rounded-lg border-l-4 border-primary bg-primary/10",children:[t.jsx("p",{children:t.jsx(l,{i18nKey:"billing.support.description",components:{a:t.jsx("a",{href:q,target:"_blank",rel:"noopener noreferrer",className:"text-base-link hover:underline"})}})}),s&&t.jsxs("dl",{className:"grid grid-cols-1 items-start text-sm mt-4 gap-y-1 gap-x-4 sm:grid-cols-[auto_1fr]",children:[t.jsx("dt",{className:"font-bold",children:e("billing.support.account.number")}),t.jsx("dd",{"data-qa":"faq-account",children:s.accountNumber}),t.jsx("dt",{className:"font-bold",children:e("billing.support.account.company")}),t.jsx("dd",{"data-qa":"faq-mgmt-co",children:s.managementCompany}),t.jsx("dt",{className:"font-bold",children:e("billing.support.account.name")}),t.jsx("dd",{"data-qa":"owner-name",children:s.ownerName}),t.jsx("dt",{className:"font-bold",children:e("billing.support.account.association")}),t.jsx("dd",{"data-qa":"assoc-name",children:s.associationName}),t.jsx("dt",{className:"font-bold",children:e("billing.support.account.email")}),t.jsx("dd",{"data-qa":"email",children:s.eMail}),t.jsx("dt",{className:"font-bold",children:e("billing.support.account.address")}),t.jsx("dd",{"data-qa":"address",children:s.propertyAddress.address1})]})]})]}),t.jsxs("aside",{className:"p-horizontal-layout-sm sm:p-horizontal-layout md:w-2/5",children:[t.jsx(R,{payments:j}),t.jsx("div",{className:"float-right pt-3 pr-3",children:t.jsx(l,{i18nKey:"billing.support.makePayment",components:{Link:t.jsx(x,{"data-qa":"billing-link",className:"text-base-link hover:underline",to:m})}})})]})]})})}export{G as Component,Q as handle};
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.