PageSourceSearch

https://rentok.com/_next/static/chunks/pages/_sites/payment-pages/p2/[shortId]-d7c04a85465f4c58.js

js rentok.com collected 2026-10-01 23:43:41 UTC 39,537 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="eee866c8-b521-4c3a-bd8c-8b325d11d75b",e._sentryDebugIdIdentifier="sentry-dbid-eee866c8-b521-4c3a-bd8c-8b325d11d75b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6526],{67976:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_sites/payment-pages/p2/[shortId]",function(){return n(62497)}])},62497:function(e,a,n){"use strict";n.r(a),n.d(a,{__N_SSP:function(){return E},default:function(){return PayPageRoute}});var t=n(85893),l=n(9008),s=n.n(l),o=n(11163),r=n(67294),i=n(83164),d=n(48316),c=n(89583),u=n(1451),p=n(44650),y=n(23035),h=n(14834),m=n(16460),x=n(1617),v=n(73927),j=n(40330),b=n(21485);function Fact(e){let{k:a,children:n}=e;return(0,t.jsxs)("div",{className:"pay-fact","data-sentry-component":"Fact","data-sentry-source-file":"DueDetail.jsx",children:[(0,t.jsx)("dt",{children:a}),(0,t.jsx)("dd",{children:n})]})}function DueDetail(e){var a,n,l;let{s,inv:o,onBack:d,covered:g=null,onPay:k,onPayAll:f,onPayCash:N}=e,w=s.renderedAt,_=(0,i.tc)(),[P,R]=(0,r.useState)(!1),[C,D]=function(e){let[a,n]=(0,r.useState)("idle"),open=async()=>{if("making"===a)return;let t=window.open("","_blank");n("making");try{var l,s;let a=(0,b.tu)()?null:await fetch("".concat("https://apiv2.rentok.com","/invoices/unpaid-receipt?invoice_uuid=").concat(encodeURIComponent((null==e?void 0:e.id)||""))),o=null===(s=a?await a.json():await (0,b.pW)("/invoices/unpaid-receipt"))||void 0===s?void 0:null===(l=s.data)||void 0===l?void 0:l.pdf_url;if(!o)throw Error("no file");t?t.location.href=o:window.location.href=o,n("idle")}catch(e){null==t||t.close(),n("failed")}};return[a,open]}(o),q=(0,m.C4)(o,s.paid),I=(0,m.co)(o,{paid:s.paid,covered:!!g,now:w}),A=(0,m.I3)(o),F=(0,v.N6)(null==o?void 0:o.due_start_date,null==o?void 0:o.due_end_date,w),O=(0,v.Zt)(null==o?void 0:o.due_start_date,null==o?void 0:o.due_end_date),U=(0,m.JG)(null==o?void 0:o.description),T=(0,j.$M)(null==o?void 0:o.description),S=String((null==o?void 0:o.firebase_id)||"").includes(j.JT)?String(o.firebase_id).split(j.JT).length:0,Z=(0,y.PX)(s),E=Number(null==o?void 0:o.amount)||0,M=function(e,a,n,t,l){let s=(0,v.Ny)(null==a?void 0:a.due_date);if("autopay"===e)return"Leaves by autopay on ".concat((0,v.Ny)(t));if("part"===e)return"".concat((0,v.kk)(n.amount)," of ").concat((0,v.kk)(n.amount+(Number(null==a?void 0:a.amount)||0))," paid");let o=(0,v.mg)(null==a?void 0:a.due_date,l);return o?"late"===e?"Was due on ".concat(s," \xb7 ").concat(o.text.replace(/^Overdue by /,"")," ago"):"calm"===o.tone?"Due on ".concat(s):"".concat(o.text," \xb7 ").concat(s):null}(I,o,q,null==g?void 0:g.next,w),B=[(null==o?void 0:o.invoice_id)?(0,t.jsx)(Fact,{k:"Invoice number",children:o.invoice_id},"no"):null,Number(null==o?void 0:o.discount)>0?(0,t.jsx)(Fact,{k:"Discount",children:(0,v.kk)(o.discount)},"disc"):null,Number(null==o?void 0:o.tax)>0?(0,t.jsx)(Fact,{k:"Tax",children:(0,v.kk)(o.tax)},"tax"):null,S?(0,t.jsxs)(Fact,{k:"Made of",children:[S," charges, billed together"]},"m"):null].filter(Boolean),L=B.length>0||U||T,z=[F&&(0,m.ie)(o)&&(0,m.ie)(o)!==(0,v.Ny)(null==o?void 0:o.due_date)?(0,t.jsx)(Fact,{k:"Raised on",children:(0,m.ie)(o)},"raised"):null,s.amountEditable||"autopay"===I||"cash"===s.methods||"none"===s.methods?null:(0,t.jsxs)(Fact,{k:"Paid with",children:["Your other dues. ",s.propertyName||"The property"," takes them together."]},"with")].filter(Boolean),G=s.amountEditable&&"none"!==s.methods,W="autopay"===I||"none"===s.methods?null:G?{label:"Pay ".concat((0,v.kk)(E)),go:()=>null==k?void 0:k(o)}:"cash"===s.methods?{label:"Pay in cash",go:()=>null==N?void 0:N()}:{label:"Pay all ".concat((0,v.kk)((0,h.z1)(s).due)),go:()=>null==f?void 0:f()},Y=S?null:null==o?void 0:o.id;return(0,t.jsxs)("div",{className:"pay-screen",ref:_,"data-sentry-component":"DueDetail","data-sentry-source-file":"DueDetail.jsx",children:[(0,t.jsxs)("div",{className:"pay-topbar",children:[(0,t.jsx)("button",{type:"button",onClick:d,className:"pay-glass pay-back-flat","aria-label":"Back",children:(0,t.jsx)(u.XWG,{"data-sentry-element":"LuChevronLeft","data-sentry-source-file":"DueDetail.jsx"})}),(0,t.jsx)("div",{className:"pay-topbar-rest",children:A?"Late fine":"Due detail"}),(0,t.jsxs)("div",{className:"pay-topbar-live","aria-hidden":!0,
1children:[(0,t.jsx)(x.Ct,{stage:I,size:22,share:q.amount/(q.amount+E||1),"data-sentry-element":"Badge","data-sentry-source-file":"DueDetail.jsx"}),(0,t.jsx)("span",{className:"amt pay-money",children:(0,v.kk)(E)}),(0,t.jsx)("span",{className:"to",children:null==o?void 0:o.due_type})]}),(0,t.jsx)("span",{})]}),(0,t.jsxs)("header",{className:"pay-chrome",children:[(0,t.jsx)("span",{className:"pay-chrome-badge",children:(0,t.jsx)(x.Ct,{stage:I,size:104,day:null===(a=(0,v.rX)(null==o?void 0:o.due_date))||void 0===a?void 0:a.day,share:q.amount/(q.amount+E||1),label:{due:"Due",late:"Running late",part:"Part paid",autopay:"Autopay"}[I],"data-sentry-element":"Badge","data-sentry-source-file":"DueDetail.jsx"})}),(0,t.jsx)("div",{className:"pay-chrome-label",children:"part"===I?"Left to pay":"Amount due"}),(0,t.jsx)("div",{className:"pay-chrome-sum pay-money",children:(0,v.kk)(E)}),M?(0,t.jsx)("div",{className:"pay-chrome-rail","data-stage":I,children:M}):null,s.propertyName?(0,t.jsxs)("div",{className:"pay-chrome-when",children:["to ",s.propertyName]}):null]}),(0,t.jsxs)("section",{className:"pay-panel",children:[(0,t.jsxs)("div",{className:"pay-panel-top",children:[(0,t.jsx)("span",{className:"pay-tile","aria-hidden":!0,children:(0,t.jsx)(u.AgU,{"data-sentry-element":"LuFileText","data-sentry-source-file":"DueDetail.jsx"})}),(0,t.jsxs)("div",{className:"pay-grow",children:[(0,t.jsx)("div",{className:"pay-panel-title",children:(null==o?void 0:o.due_type)||"Charge"}),(0,t.jsx)("div",{className:"pay-panel-sub",children:F?"".concat(F).concat(O?" \xb7 ".concat(O," days"):""):(0,m.ie)(o)?"Charged ".concat((0,m.ie)(o)):"One-time charge"})]})]}),z.length?(0,t.jsx)("dl",{className:"pay-facts",children:z}):null,L?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",className:"pay-more pay-more--row","aria-expanded":P,onClick:()=>R(e=>!e),children:[P?"Less about this charge":"More about this charge",(0,t.jsx)(u.gPZ,{"aria-hidden":!0,style:{transform:P?"rotate(180deg)":void 0}})]}),P?(0,t.jsxs)("div",{className:"pay-more-body",children:[B.length?(0,t.jsx)("dl",{className:"pay-facts",children:B}):null,U?(0,t.jsxs)("figure",{className:"pay-note",children:[(0,t.jsxs)("figcaption",{children:["From ",s.propertyName||"the property"]}),(0,t.jsx)("blockquote",{children:U})]}):null,T?(0,t.jsx)(i.u5,{m:T}):null]}):null]}):null]}),"part"===I?(0,t.jsxs)("section",{className:"pay-panel pay-panel--flush",children:[(0,t.jsx)("div",{className:"pay-panel-head",children:"Paid so far"}),(0,t.jsx)("ul",{className:"pay-pieces",children:q.pieces.map((e,a)=>{let n=(0,m.bq)(e);return(0,t.jsxs)("li",{children:[(0,t.jsx)(x.fQ,{mark:(null==n?void 0:n.mark)||"other",size:36}),(0,t.jsxs)("span",{className:"pay-pieces-what",children:[(0,t.jsx)("b",{className:"pay-money",children:(0,v.kk)(e.amount)}),[(0,v.Ny)(e.paid_date),null==n?void 0:n.label].filter(Boolean).join(" \xb7 ")]})]},e.id||a)})}),(0,t.jsxs)("div",{className:"pay-pieces-left",children:[(0,t.jsx)("span",{children:"Left to pay"}),(0,t.jsx)("b",{className:"pay-money",children:(0,v.kk)(E)})]})]}):null,"autopay"===I?(0,t.jsxs)("section",{className:"pay-panel",children:[(0,t.jsxs)("div",{className:"pay-panel-top",children:[(0,t.jsx)(x.fQ,{mark:"autopay",size:43}),(0,t.jsxs)("div",{className:"pay-grow",children:[(0,t.jsx)("div",{className:"pay-panel-title",children:"Autopay takes this one"}),(0,t.jsxs)("div",{className:"pay-panel-sub",children:["On the ",(0,h.xw)(null===(n=s.autopay)||void 0===n?void 0:n.day)," of every month, from the account you approved. Nothing to press."]})]})]}),Z?(0,t.jsxs)("a",{className:"pay-ask",href:(0,y.cv)(s,"change-date",{day:(0,h.xw)(null===(l=s.autopay)||void 0===l?void 0:l.day)}),target:"_blank",rel:"noreferrer",children:[(0,t.jsx)(c.FaWhatsapp,{"aria-hidden":!0}),"Change the date with ",Z.name]}):null]}):null,A?(0,t.jsxs)("section",{className:"pay-panel",children:[(0,t.jsx)("div",{className:"pay-panel-title",children:"About this fine"}),(0,t.jsxs)("p",{className:"pay-panel-sub",style:{marginTop:4},children:[s.propertyName||"Your property"," adds it by itself when a due date passes. Autopay stops these."]})]}):null,Z?(0,t.jsxs)("a",{className:"pay-ask pay-ask--quiet",href:(0,y.cv)(s,A?"fine":"charge",{inv:o,span:F}),target:"_blank",rel:"noreferrer",children:[(0,t.jsx)(c.FaWhatsapp,{"aria-hidden":!0}),A?"Fine looks wrong?":"Question about this?"," Message ",Z.name]}):null,W||Y||"none"===s.methods&&(0,y.cv)(s,"pay-direct",{amount:E})?(0,t.jsx)("div",{className:"pay-dock",children:(0,t.jsxs)("div",{className:"pay-dock-key","data-single":W&&Y?void 0:"true",children:[W||"none"!==s.methods?null:(0,t.jsxs)(p.Z,{wide:!0,href:(0,y.cv)(s,"pay-direct",{amount:E}),children:["Message ",(null==Z?void 0:Z.name)||"them"]}),W?(0,t.jsx)("button",{type:"button",className:"pay-dock-primary","data-state":"ready",onClick:W.go,children:(0,t.jsx)("span",{className:"pay-money",children:W.label})}):null,Y?(0,t.jsxs)("button",{type:"button",className:W?"pay-dock-quiet":"pay-dock-primary","data-state":"ready",onClick:D,"aria-busy":"making"===C,children:["making"===C?(0,t.jsx)("span",{className:"pay-s
1pin","aria-hidden":!0}):(0,t.jsx)(u.$0x,{"aria-hidden":!0}),"making"===C?"Making it":"failed"===C?"Try again":W?"Invoice":"Download invoice"]}):null]})}):null]})}var g=n(69309),k=n(21087),f=n(95892),N=n(65559),w=n(46630),_=n(30040),P=n(27752);let R={overdue:"var(--pay-overdue-ink)",waiting:"var(--pay-waiting-ink)",calm:"var(--pay-meta)"},C=[["dues","Bills"],["history","Receipts"]],keepDates=e=>String(e||"").replace(/(\d) (?=[A-Za-z])/g,"$1\xa0");function Meta(e){let{tone:a,children:n}=e;return(0,t.jsx)("div",{className:"pay-row-meta",style:a?{color:a}:void 0,"data-sentry-component":"Meta","data-sentry-source-file":"Receipt.jsx",children:(0,t.jsx)("div",{className:"pay-row-meta-list",children:n})})}function DueRow(e){let{inv:a,canPay:n,onPay:l,auto:s,onOpen:o,now:r}=e,i=(0,v.mg)(null==a?void 0:a.due_date,r),d=(0,v.N6)(null==a?void 0:a.due_start_date,null==a?void 0:a.due_end_date,r),c=(0,v.Zt)(null==a?void 0:a.due_start_date,null==a?void 0:a.due_end_date),u=(0,v.Ny)((null==a?void 0:a.invoice_date)||(null==a?void 0:a.created_at));return(0,t.jsxs)("div",{className:"pay-row","data-sentry-component":"DueRow","data-sentry-source-file":"Receipt.jsx",children:[(0,t.jsxs)(P.Z,{onOpen:o,label:"".concat((null==a?void 0:a.due_type)||"Charge",", ").concat((0,v.kk)(null==a?void 0:a.amount),". Details"),"data-sentry-element":"Opens","data-sentry-source-file":"Receipt.jsx",children:[(0,t.jsx)("div",{className:"pay-row-title",children:(null==a?void 0:a.due_type)||"Charge"}),(0,t.jsx)(Meta,{"data-sentry-element":"Meta","data-sentry-source-file":"Receipt.jsx",children:d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:keepDates(d)}),c?(0,t.jsx)("span",{children:"For ".concat(c,"\xa0days")}):null]}):(0,t.jsx)("span",{children:u?"".concat((null==a?void 0:a.due_type)===j.n8?"Charged":"Raised"," ").concat(u):"One-time charge"})})]}),(0,t.jsx)("div",{className:"pay-row-side",children:s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"pay-automark pay-money",children:[(0,t.jsx)(x.Ct,{stage:"autopay",size:18}),"Auto \xb7 ",(0,v.kk)(null==a?void 0:a.amount)]}),(0,t.jsxs)("div",{className:"pay-row-due",style:{color:"var(--pay-paid-ink)"},children:["Leaves on ",(0,v.Ny)(s.next)]})]}):(0,t.jsxs)(t.Fragment,{children:[n?(0,t.jsxs)("button",{type:"button",className:"pay-paykey pay-money",onClick:()=>l(a),children:["Pay ",(0,v.kk)(null==a?void 0:a.amount)]}):(0,t.jsx)("div",{className:"pay-row-amount pay-money",children:(0,v.kk)(null==a?void 0:a.amount)}),i?(0,t.jsx)("div",{className:"pay-row-due",style:{color:R[i.tone]},children:i.text}):null]})})]})}function PaidRow(e){let{inv:a,onOpen:n}=e,l=(0,v.Ny)(null==a?void 0:a.paid_date,!0);return(0,t.jsxs)("div",{className:"pay-row","data-sentry-component":"PaidRow","data-sentry-source-file":"Receipt.jsx",children:[(0,t.jsxs)(P.Z,{onOpen:n,label:"".concat((null==a?void 0:a.due_type)||"Payment",", ").concat((0,v.kk)(null==a?void 0:a.amount)).concat(l?", paid on ".concat(l):"",". Receipt"),"data-sentry-element":"Opens","data-sentry-source-file":"Receipt.jsx",children:[(0,t.jsx)("div",{className:"pay-row-title",children:(null==a?void 0:a.due_type)||"Payment"}),l?(0,t.jsx)(Meta,{tone:"var(--pay-paid-ink)",children:(0,t.jsxs)("span",{children:["Paid on ",l]})}):null]}),(0,t.jsxs)("div",{className:"pay-row-side",children:[(0,t.jsx)("div",{className:"pay-row-amount pay-money",children:(0,v.kk)(null==a?void 0:a.amount)}),(null==a?void 0:a.pdf_link)?(0,t.jsx)("a",{className:"pay-row-receipt",href:a.pdf_link,target:"_blank",rel:"noreferrer",children:"Receipt"}):null]})]})}function EmptyDues(e){let{s:a}=e,n=function(e,a){var n,t;let l=e.map(e=>Date.parse(null==e?void 0:e.paid_date)).filter(Number.isFinite);if(!l.length)return null;let s=Math.max(...l);return(0,v.Ny)(s,(null===(n=(0,v.rX)(s))||void 0===n?void 0:n.year)!==(null===(t=(0,v.rX)(a))||void 0===t?void 0:t.year))}(a.paid,a.renderedAt),l=a.settlingUp?["This account is settled."]:a.hasHistory?["No dues.","Enjoy the month."]:["Nothing to pay yet."];return(0,t.jsxs)("div",{className:"pay-clear","data-sentry-component":"EmptyDues","data-sentry-source-file":"Receipt.jsx",children:[a.hasHistory?(0,t.jsx)(N.Z,{size:64,className:"pay-clear-seal"}):null,(0,t.jsx)("div",{className:"pay-clear-line",children:l.map(e=>(0,t.jsx)("span",{children:e},e))}),n?(0,t.jsxs)("div",{className:"pay-clear-note",children:["Last paid on ",n]}):null]})}function EmptyHistory(){return(0,t.jsxs)("div",{className:"pay-clear","data-sentry-component":"EmptyHistory","data-sentry-source-file":"Receipt.jsx",children:[(0,t.jsx)("div",{className:"pay-clear-line",children:"No receipts yet."}),(0,t.jsx)("div",{className:"pay-clear-note",children:"Your first receipt will be printed here."})]})}function ScopedDues(e){let{s:a,canPay:n,onPayOne:l,onOpenDue:s,covered:o,open:r,onOpen:i}
1=e,d=a.rest||[],c=d.reduce((e,a)=>e+(Number(null==a?void 0:a.amount)||0),0),row=(e,r)=>(0,t.jsx)(DueRow,{inv:e,canPay:n,onPay:l,auto:(0,h.yZ)(o,e)?o:null,onOpen:s&&(null==e?void 0:e.id)?()=>s(e):null,now:a.renderedAt,"data-sentry-element":"DueRow","data-sentry-component":"row","data-sentry-source-file":"Receipt.jsx"},(0,j.is)(e)||r);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"pay-scoped-label",children:"This link is for"}),row(a.scoped,"scoped"),r?d.map(row):null,d.length?(0,t.jsx)("button",{type:"button",className:"pay-more-rows pay-more-rows--accent","aria-expanded":r,onClick:()=>i(!r),children:r?"Show less":"".concat(d.length," more ").concat(1===d.length?"bill":"bills"," (").concat((0,v.kk)(c),")")}):null]})}function Receipt(e){let{s:a,meter:n,tab:l="dues",onTab:s,rows:o=!1,onRows:i,onPayOne:d,onOpenDue:c,onOpenReceipt:u,onOpenMeter:p,onRecharge:x,notice:b=null,children:k}=e,N=(0,h.jt)(a),P=(0,y.PX)(a),R=a.amountEditable&&"none"!==a.methods,D=o?a.paid:a.paid.slice(0,6),q=(0,r.useId)(),I=(0,_.N4)(n)&&!a.settlingUp,A=n?(0,t.jsx)(w.ZP,{m:n,s:a,onOpen:p,onRecharge:x,rentIn:function(e){var a;let n=null===(a=(e.dues||[]).find(e=>(null==e?void 0:e.due_type)===j.I_))||void 0===a?void 0:a.due_date;if(!n)return null;let t=Math.round(((0,v.TF)(n)-(0,v.TF)(e.renderedAt))/864e5);return t>=0&&t<21?t:null}(a)}):null,F=(0,t.jsx)(g.ZP,{s:a,onPayNow:d,where:"bill",quiet:I}),O=(0,t.jsx)("div",{className:"pay-tabs",role:"tablist","aria-label":"Your bill",onKeyDown:e=>{var a;let n={ArrowRight:1,ArrowLeft:-1}[e.key];if(!n)return;e.preventDefault();let t=(C.findIndex(e=>{let[a]=e;return a===l})+n+C.length)%C.length;s(C[t][0]),null===(a=e.currentTarget.querySelectorAll('[role="tab"]')[t])||void 0===a||a.focus()},children:C.map(e=>{let[a,n]=e;return(0,t.jsx)("button",{type:"button",role:"tab",id:"".concat(q,"-").concat(a),"aria-selected":l===a,"aria-controls":"".concat(q,"-panel"),tabIndex:l===a?0:-1,className:"pay-tab",onClick:()=>s(a),children:n},a)})});return(0,t.jsxs)(f.ZP,{s:a,controls:O,above:b?(0,t.jsxs)(t.Fragment,{children:[b,I?A:F]}):I?A:F,autopayHere:!0,"data-sentry-element":"Machine","data-sentry-component":"Receipt","data-sentry-source-file":"Receipt.jsx",children:[(0,t.jsx)("div",{className:"pay-feed",children:(0,t.jsxs)("div",{className:"pay-sheet",children:[(0,t.jsxs)("article",{className:"pay-paper",role:"tabpanel",id:"".concat(q,"-panel"),"aria-labelledby":"".concat(q,"-").concat(l),children:[a.tenantName?(0,t.jsxs)("div",{className:"pay-billto",children:["dues"===l?"For":"Paid by"," ",(0,t.jsx)("b",{children:(0,m.fQ)(a.tenantName)}),(0,m.U1)(a.room)?" \xb7 ".concat((0,m.U1)(a.room)):""]}):null,"dues"===l?a.scoped?(0,t.jsx)(ScopedDues,{s:a,canPay:R,onPayOne:d,onOpenDue:c,covered:N,open:o,onOpen:i}):a.dues.length?a.dues.map((e,n)=>(0,t.jsx)(DueRow,{inv:e,canPay:R,onPay:d,auto:(0,h.yZ)(N,e)?N:null,onOpen:c&&(null==e?void 0:e.id)?()=>c(e):null,now:a.renderedAt},(null==e?void 0:e.id)||n)):(0,t.jsx)(EmptyDues,{s:a}):a.paid.length?(0,t.jsxs)(t.Fragment,{children:[D.map((e,a)=>(0,t.jsx)(PaidRow,{inv:e,onOpen:u&&(null==e?void 0:e.id)?()=>u(e):null},(null==e?void 0:e.id)||a)),a.paid.length>6&&!o?(0,t.jsxs)("button",{type:"button",className:"pay-more-rows",onClick:()=>i(!0),children:["Print the other ",a.paid.length-6]}):null]}):(0,t.jsx)(EmptyHistory,{})]}),(0,t.jsx)("div",{className:"pay-tear","aria-hidden":!0})]})}),I?F:A,P?(0,t.jsxs)("a",{className:"pay-support",href:(0,y.cv)(a,"hello"),target:"_blank",rel:"noreferrer",children:["Something wrong? Message ",(0,t.jsx)("span",{className:"pay-support-name",children:P.name})]}):null,k]})}function AutopayTick(e){var a,n,l,s;let{s:i,on:d,from:c=null,tone:p="bar"}=e,y=(0,o.useRouter)(),m=y.query,b=Number(m.day)||(0,h.BB)(i),g=(0,h.IJ)(null===(a=i.autopay)||void 0===a?void 0:a.window).includes(b)?b:null,k=Number(null===(l=i.autopay)||void 0===l?void 0:null===(n=l.coins)||void 0===n?void 0:n.setup)||0,[f,N]=(0,r.useState)(!1),w=(0,h.x2)(m.shortId,m,{step:"setup",from:c});return(0,r.useEffect)(()=>{y.prefetch(w).catch(()=>void 0)},[m.shortId]),(0,t.jsxs)("div",{className:"pay-tick","data-on":d?"true":"false","data-tone":p,"data-sentry-component":"AutopayTick","data-sentry-source-file":"Receipt.jsx",children:[(0,t.jsxs)("label",{className:"pay-tick-label",children:[(0,t.jsx)("input",{type:"checkbox",className:"pay-tick-input",checked:d,onChange:()=>{let e=new URL(window.location.href);d?e.searchParams.delete("setup"):e.searchParams.set("setup","1");let a={...m};delete a.setup,y.replace({pathname:y.pathname,query:d?a:{...a,setup:"1"}},e.pathname+e.search,{shallow:!0,scroll:!1})}}
1),(0,t.jsx)("span",{className:"pay-tick-box","aria-hidden":!0,children:(0,t.jsx)(u.Nhk,{"data-sentry-element":"LuCheck","data-sentry-source-file":"Receipt.jsx"})}),(0,t.jsxs)("span",{className:"pay-tick-text",children:[(0,t.jsxs)("span",{className:"pay-tick-head",children:["Autopay my ",(null===(s=i.autopay)||void 0===s?void 0:s.rentOnly)?"rent":"bills"," from next month"]}),d?(0,t.jsxs)("span",{className:"pay-tick-sub",children:[1===(0,h.Y5)(i,m)&&i.rent?(0,j.v0)(i)?"Rent + ".concat((0,v.kk)((0,j.v0)(i))," fee, ").concat((0,v.kk)(i.rent+(0,j.v0)(i)),", every month on the "):"Rent, ".concat((0,v.kk)(i.rent),", every month on the "):"Every month on the ",g?(0,h.xw)(g):"day you pick next"]}):k?(0,t.jsxs)(x.le,{tone:"plate"===p?"light":"navy",size:14,className:"pay-tick-sub",children:["Get ",k.toLocaleString("en-IN")," Rent Coins"]}):(0,t.jsx)("span",{className:"pay-tick-sub",children:"Nothing starts until you approve"})]})]}),(0,t.jsx)("button",{type:"button",className:"pay-tick-link",onClick:()=>{f||(N(!0),y.push(w).catch(()=>N(!1)))},"aria-busy":f||void 0,children:f?"Opening…":d?"Edit":"Know more"})]})}function PayBar(e){var a;let{s:n,meter:l,onPayAll:s,onPayOne:r,onPayAsked:i,onPayCash:d,onPayAdvance:c,onRecharge:u}=e,m=(0,o.useRouter)(),{covered:x,due:j,scoped:b,asked:g}=(0,h.z1)(n),f=!n.hasDues||j<=0,N=b?Number(b.amount):0,P=b?b.due_type||"This bill":null,R=b?N:g;if((0,_.Up)(n,l,{clear:f})&&u){let e=(0,w.ps)(l,n);return(0,t.jsxs)("div",{className:"pay-bar",children:[(0,t.jsxs)("div",{className:"pay-bar-text",children:[(0,t.jsx)("div",{className:"pay-bar-label",children:e.label}),e.amount?(0,t.jsx)("div",{className:"pay-bar-amount pay-bar-amount--calm pay-money",children:e.amount}):null]}),(0,t.jsx)(k.Z,{onClick:u,children:"Recharge"})]})}if(f&&"none"===n.methods||f&&x)return null;let C=!f&&("both"===n.methods||"online"===n.methods)&&(0,h.kw)((0,h.BI)(n)),D=C&&"1"===m.query.setup,q=D?Object.fromEntries(["setup","option","day","autopay"].filter(e=>null!=m.query[e]).map(e=>[e,m.query[e]])):void 0;return(0,t.jsxs)(t.Fragment,{children:[C?(0,t.jsx)(AutopayTick,{s:n,on:D}):null,(0,t.jsxs)("div",{className:"pay-bar",children:[(0,t.jsxs)("div",{className:"pay-bar-text",children:[(0,t.jsx)("div",{className:"pay-bar-label",children:f?"Nothing due":P||(g?"Requested":D?"Paying today":"Total dues")}),f?null:(0,t.jsx)("div",{className:"pay-bar-amount pay-money",children:(0,v.kk)(null!=R?R:j)}),!f&&null!=R&&j>R?(0,t.jsxs)("button",{type:"button",className:"pay-bar-rest",onClick:()=>s(q),children:["or pay everything, ",(0,v.kk)(j)]}):null]}),"none"===n.methods?(0,t.jsxs)(p.Z,{href:(0,y.cv)(n,"pay-direct",{amount:null!=R?R:j}),children:["Message ",(null===(a=(0,y.PX)(n))||void 0===a?void 0:a.name)||"them"]}):f?(0,t.jsx)(k.Z,{onClick:c,children:"Pay in advance"}):(0,t.jsx)(k.Z,{onClick:"cash"===n.methods?d:D?()=>{let e=m.query;m.push((0,h.x2)(e.shortId,{...e,setup:void 0},{step:"setup",option:(0,h.Y5)(n,e),day:Number(e.day)||(0,h.BB)(n)||null}))}:b?()=>r(b,q):g?()=>i(q):()=>s(q),children:"cash"===n.methods?"Pay in cash":D?"Pay and set up autopay":null!=R?"Pay ".concat((0,v.kk)(R)):"Pay all"})]})]})}var D=n(620);let q={expired:{title:"Link expired",head:"This link has expired",say:"Links stop working after seven days. Nothing about your rent has changed — you just need a new one."},notfound:{title:"Link not found",head:"This link doesn't work",say:"It may have been typed in by hand, or the property may have replaced it since. A new one takes a moment."}};function Gone(e){let{kind:a,propertyName:n,logoUrl:l,brandColor:o,brand:r="RentOk",at:i}=e,u=q[a]||q.notfound;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s(),{"data-sentry-element":"Head","data-sentry-source-file":"Gone.jsx",children:[(0,t.jsx)("title",{children:"".concat(u.title).concat(n?" \xb7 ".concat(n):"")}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1","data-sentry-element":"meta","data-sentry-source-file":"Gone.jsx"}),(0,t.jsx)("meta",{name:"robots",content:"noindex","data-sentry-element":"meta","data-sentry-source-file":"Gone.jsx"})]}),(0,t.jsxs)(d.Z,{brandColor:o,propertyName:n,logoUrl:l,"data-sentry-element":"PayPageRoot","data-sentry-source-file":"Gone.jsx",children:[(0,t.jsx)(D.ZP,{propertyName:n,brandColor:o,brand:r,at:i,"data-sentry-element":"Skyline","data-sentry-source-file":"Gone.jsx"}),(0,t.jsxs)("div",{className:"pay-col pay-gone",children:[n?(0,t.jsx)("p",{className:"pay-sr",children:n}):null,(0,t.jsx)("h1",{className:"pay-gone-head",children:u.head}),(0,t.jsx)("p",{className:"pay-gone-say",children:u.say}),(0,t.jsx)("div",{className:"pay-gone-foot",children:(0,t.jsx)("a",{className:"pay-key pay-gone-key",href:y.mB,target:"_blank",rel:"noreferrer","aria-label":"Get a new link on WhatsApp",children:(0,t.jsxs)("span",{children:[(0,t.jsx)(c.FaWhatsapp,{"aria-hidden":!0,
1className:"pay-gone-wa","data-sentry-element":"FaWhatsapp","data-sentry-source-file":"Gone.jsx"}),"Get a new link"]})})})]})]})]})}var I=n(56361),A=n(312),F=n(33705),O=n(60507),U=n(66775),T=n(17618);function _shortId_Row(e){let{k:a,v:n,note:l,alarm:s}=e;return(0,t.jsxs)("div",{className:"flex gap-3 py-2 pay-dbg-row",children:[(0,t.jsx)("div",{className:"pay-label shrink-0 pay-dbg-key",children:a}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{style:{fontFamily:"var(--pay-font-display)",color:s?"var(--pay-overdue-ink)":"var(--pay-ink)"},children:n}),l?(0,t.jsx)("div",{className:"pay-dbg-note",children:l}):null]})]})}let S=["autopay","day","option","tab","rows","setup"],Z=["autopay","ceiling","rent","total","option","day","rail","pfrom","until"];var E=!0;function PayPageRoute(e){let{gone:a,...n}=e;return a?(0,t.jsx)(Gone,{kind:a,at:n.renderedAt}):(0,t.jsx)(Bill,{...n})}function Bill(e){var a,n,l,c,u;let{tenantDetails:p,shortLinkData:x,shortId:b,is_vendor:g,renderedAt:k}=e,N=(0,o.useRouter)(),w=(0,O.Hs)((0,j.Zi)((0,h.V0)((0,j.on)({tenantDetails:p,shortLinkData:x,is_vendor:g,renderedAt:k}),N.query),N.query),N.query),_=(0,j.AC)(w),P=(0,U.f_)((0,U.MJ)(w),N.query),{orderId:R,gateway:C,amount:q,meter:E}=N.query,[M,B]=(0,r.useState)(null),[L,z]=(0,r.useState)(!1),G=(0,r.useRef)(null),[W,Y]=(0,r.useState)(null),H=(0,r.useRef)(!1),receiptUrlOf=e=>{var a,n;return e.ok&&((null===(a=e.data)||void 0===a?void 0:a.pdf_link)||(null===(n=e.data)||void 0===n?void 0:n.receipt_url))||null},chase=async()=>{for(let a=0;a<5;a++){var e;await new Promise(e=>setTimeout(e,4e3));let a=await (0,T.WK)(R,null===(e=w.keys)||void 0===e?void 0:e.firebaseId),n=receiptUrlOf(a);if(n){B(e=>(null==e?void 0:e.state)==="paid"?{...e,receiptUrl:n,hunting:!1}:e);return}}B(e=>(null==e?void 0:e.state)==="paid"?{...e,hunting:!1}:e)},land=async e=>{var a;if(!e.ok)return!1;let n=await (0,T.WK)(R,null===(a=w.keys)||void 0===a?void 0:a.firebaseId),t=receiptUrlOf(n);return B({state:"paid",receiptUrl:t,hunting:!t}),t||chase(),!0},ask=()=>{var e;return(0,T.mb)({orderId:R,amount:q,gateway:C,shortId:b,pgId:null===(e=w.keys)||void 0===e?void 0:e.pgId})},lookAgain=async()=>{if(L)return;z(!0);let e=await ask();await land(e)||B({state:"unsure",problem:e.problem}),z(!1)};(0,r.useEffect)(()=>{if(!R||G.current===R)return;G.current=R,B({state:"checking"});let e=!0;return(async()=>{let a=null;for(let n=0;n<4;n++){let t=await ask();if(!e||await land(t)||(a=t.problem,n<3&&await new Promise(e=>setTimeout(e,4e3)),!e))return}B({state:"unsure",problem:a})})(),()=>{e=!1}},[R]);let go=function(){var e;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"push",t=Object.fromEntries(S.filter(e=>void 0!==N.query[e]).map(e=>[e,N.query[e]])),l=Object.fromEntries(Object.entries({...t,...a}).filter(e=>{let[,a]=e;return null!=a})),s=new URLSearchParams(l).toString(),o=(0,f.Ye)(),r=N[n]({pathname:N.pathname,query:{shortId:b,...l}},"/p2/".concat(b).concat(s?"?".concat(s):""),{shallow:!0});return"push"===n&&(null==r||null===(e=r.then)||void 0===e||e.call(r,()=>(0,f.ZV)(o))),r},home=()=>(0,f.Mx)()?N.back():go({},"replace");if((null==M?void 0:M.state)==="checking")return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s(),{children:[(0,t.jsx)("title",{children:"Checking \xb7 ".concat(w.propertyName||"")}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,t.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,t.jsxs)(d.Z,{brandColor:w.brandColor,propertyName:w.propertyName,logoUrl:w.logoUrl,children:[(0,t.jsx)(D.ZP,{slim:!0,propertyName:w.propertyName,at:w.renderedAt}),(0,t.jsxs)("div",{className:"pay-col pay-checking",children:[(0,t.jsx)("div",{className:"pay-spin pay-spin--page","aria-hidden":!0}),(0,t.jsx)("h1",{children:"Checking your payment"}),Number(q)?(0,t.jsx)("p",{className:"pay-checking-sum pay-money",children:(0,v.kk)(Number(q))}):null,w.propertyName?(0,t.jsxs)("p",{className:"pay-checking-to",children:["to ",w.propertyName]}):null,(0,t.jsx)("p",{className:"pay-checking-wait",children:"This takes a few seconds. Please do not close this page."})]})]})]});if((null==M?void 0:M.state)==="paid")return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s(),{children:[(0,t.jsx)("title",{children:"Paid \xb7 ".concat(w.propertyName||"Receipt")}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,t.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,t.jsx)(d.Z,{brandColor:w.brandColor,propertyName:w.propertyName,logoUrl:w.logoUrl,children:(0,t.jsx)("div",{className:"pay-col",children:(0,t.jsx)(i.ZP,{s:w,awaiting:!!M.hunting,onBack:()=>{B(null);let e=new URLSearchParams(Object.entries(N.query).filter(e=>{let[a]=e;return S.includes(a)&&"setup"!==a}));N.replace("/p2/".concat(b).concat(String(e)?"?".concat(e):""))},payment:{amount:Number(q)||null,mode:null,platformFee:null,dues:[],...N.query.bill?{dues:[...w.paid,...w.dues].filter(e=>String(null==e?void 0:e.id)===String(N.query.bill)).slice(0,1)}:{},advance:"advance"in N.query,at:new Date(w.renderedAt),reference:String(R),receiptUrl:M.receiptUrl,toMeter:null!=E?()=>N.push("/p2/".concat(b,"/meter").concat(Number(q)>0?"?added=".concat(Number(q)):"")):null}})})})]});if(w.expired)return(0,t.jsx)(Gone,{kind:"expired",propertyName:w.propertyName,logoUrl:w.logoUrl,brandColor:w.brandColor,at:w.renderedAt});let toPay=e=>{let a=(0,f.Ye)(),n=j.iM?Object.fromEntries(Z.filter(e=>null!=N.query[e]).map(e=>[e,N.query[e]])):{};return N.push({pathname:"/p2/".concat(b,"/pay"),query:{...n,...e}}).then(()=>(0,f.ZV)(a))},storyFirst=e=>a=>!(!(null==a?void 0:a.setup)&&!(null==a?void 0:a.way)&&!H.current&&(0,O.nU)(w))||(0,I.bn)(w)?e(a):(H.current=!0,Y("story")),X=storyFirst(e=>{if(!(null==e?void 0:e.setup))return toPay({all:1,...e});let a=(0,f.Ye)();return N.push((0,h.x2)(b,N.query,{step:"what",setup:null,all:1,from:null,rail:null})).then(()=>(0,f.ZV)(a))}),payOne=(e,a)=>toPay({...(null==e?void 0:e.id)?{bill:e.id}:{all:1},...a}
1),J=storyFirst(e=>toPay({...e})),payCash=function(){var e;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return toPay({...(null===(e=a.scoped)||void 0===e?void 0:e.id)?{bill:a.scoped.id}:a.asked?{}:{all:1},how:"cash"})},rechargeMeter=()=>toPay({meter:1,from:"bill"}),K=(0,y.PX)(w),Q=(0,y.cv)(w,"payment-missing",{amount:Number(q)||0}),V=N.query.due?w.dues.find(e=>String(null==e?void 0:e.id)===String(N.query.due)):null,$=N.query.due&&!V?(0,j.bx)(w,N.query.due):null,ee=N.query.receipt?w.paid.find(e=>String(null==e?void 0:e.id)===String(N.query.receipt)):(null==$?void 0:$.paid)||null,ea=N.query.was||($&&!$.paid?N.query.due:null)||w.invoiceScoped,en=!N.query.was&&!$&&!!w.invoiceScoped,et=(0,j.bx)(w,ea),el=(null==et?void 0:et.paid)?(0,m.bq)(et.paid):null,es=et?et.paid?(0,t.jsx)(F.Sq,{tone:"good",title:"".concat(et.paid.due_type||"That bill"," ").concat((0,v.kk)(et.amount)," is ").concat((null==el?void 0:el.adjusted)?"settled":"paid"),line:[en?"This link was sent for it.":null,et.on?"".concat((null==el?void 0:el.adjusted)?el.label:"Paid"," on ").concat((0,v.Ny)(et.on),"."):null].filter(Boolean).join(" "),children:(0,t.jsx)("button",{type:"button",className:"pay-news-alt",onClick:()=>go({receipt:et.paid.id}),children:"See receipt"})}):(0,t.jsx)(F.Sq,{tone:"note",title:en?"The bill this link was for is no longer due":"That bill is no longer due",line:w.hasDues?"What you owe now is below.":"You owe nothing right now."}):null;if(V||ee){let e=(0,h.jt)(w),a=ee?(0,m.bq)(ee):null;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s(),{children:[(0,t.jsx)("title",{children:"".concat(V?V.due_type||"Due":"Receipt"," \xb7 ").concat(w.propertyName||"your account")}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,t.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,t.jsx)(d.Z,{brandColor:w.brandColor,propertyName:w.propertyName,logoUrl:w.logoUrl,children:(0,t.jsx)("div",{className:"pay-col",children:V?(0,t.jsx)(DueDetail,{s:w,inv:V,onBack:home,covered:(0,h.yZ)(e,V)?e:null,onPay:payOne,onPayAll:X,onPayCash:()=>payCash()}):(0,t.jsx)(i.ZP,{s:w,still:!0,onBack:home,payment:{amount:Number(ee.amount)||0,at:ee.paid_date,how:a,receiptUrl:ee.pdf_link||null,dues:[ee]}})})})]})}if(j.iM&&"paid"in N.query)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s(),{children:[(0,t.jsx)("title",{children:"Paid \xb7 ".concat(w.propertyName||"Receipt")}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,t.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,t.jsx)(d.Z,{brandColor:w.brandColor,propertyName:w.propertyName,logoUrl:w.logoUrl,children:(0,t.jsx)("div",{className:"pay-col",children:(0,t.jsx)(i.ZP,{s:w,awaiting:"preparing"in N.query,onBack:()=>go({},"replace"),payment:"deposit"===N.query.paid?{amount:w.duesTotal,at:new Date(w.renderedAt),how:(0,m.bq)({status:1,payments:[{status:1,payment_mode:211,paid_date:w.renderedAt}]}),receiptUrl:null}:"cash"===N.query.paid?{amount:w.duesTotal,at:new Date(w.renderedAt),handedTo:"Sunil",reference:"sample-payment-id",receiptUrl:null}:{amount:w.duesTotal,mode:"UPI",platformFee:Number(N.query.fee)||null,at:new Date(w.renderedAt),reference:"RTK".concat((null==b?void 0:b.toUpperCase())||""),receiptUrl:(null===(n=w.paid)||void 0===n?void 0:null===(a=n[0])||void 0===a?void 0:a.pdf_link)||null}})})})]});if(!(j.iM&&"debug"in N.query))return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s(),{children:[(0,t.jsx)("title",{children:w.propertyName?"".concat(w.propertyName," \xb7 your account"):"Your account"}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,t.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,t.jsx)(d.Z,{brandColor:w.brandColor,propertyName:w.propertyName,logoUrl:w.logoUrl,children:(0,t.jsxs)("div",{className:"pay-col pay-col--full",children:[(null==M?void 0:M.state)==="unsure"?(0,t.jsxs)("div",{className:"pay-returned",role:"status",children:[(0,t.jsx)("p",{className:"pay-returned-say",children:M.problem}),(0,t.jsxs)("div",{className:"pay-returned-acts",children:[(0,t.jsx)("button",{type:"button",className:"pay-returned-do",onClick:lookAgain,disabled:L,children:L?"Checking…":"Check again"}),Q?(0,t.jsxs)("a",{className:"pay-returned-do",href:Q,target:"_blank",rel:"noreferrer",children:["Message ",(null==K?void 0:K.name)||"the property"]}):null]})]}):null,(0,t.jsxs)(Receipt,{s:w,tab:"history"===N.query.tab?"history":"dues",onTab:e=>go({tab:"dues"===e?null:e,rows:null},"replace"),rows:"all"===N.query.rows,onRows:e=>go({rows:e?"all":null},"replace"),onPayOne:payOne,onOpenDue:e=>go({due:e.id}),onOpenReceipt:e=>go({receipt:e.id}),meter:P,onOpenMeter:()=>N.push("/p2/".concat(b,"/meter")),onRecharge:rechargeMeter,notice:es,children:["none"===w.methods&&w.hasDues?(0,t.jsxs)("p",{className:"pay-last",children:[w.propertyName||"Your property"," collects dues directly, not online."]}):null,!j.HT||(null==b?void 0:b.startsWith("demo-"))?null:(0,t.jsx)(A.PT,{code:b,balance:null!==(u=null===(c=w.autopay)||void 0===c?void 0:null===(l=c.coins)||void 0===l?void 0:l.balance)&&void 0!==u?u:null})]}),(0,t.jsx)("div",{className:"pay-commit",children:(0,t.jsx)(PayBar,{s:w,meter:P,onPayAll:X,onPayOne:payOne,onPayAsked:J,onPayCash:()=>payCash((0,h.z1)(w)),onPayAdvance:()=>toPay({}),onRecharge:rechargeMeter})}),(0,t.jsx)(I.ZP,{s:w,where:"bill",asked:W,onClosed:()=>Y(null),onPay:(e,a)=>e?payOne(e,a):(0,h.z1)(w).asked?J(a):X(a)})]})})]});let eo=null==x?void 0:x.amount,er=void 0!==eo&&null===w.linkAmount;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s(),{children:[(0,t.jsx)("title",{children:"p2 \xb7 ".concat(_)}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,t.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,t.jsx)(d.Z,{brandColor:w.brandColor,propertyName:w.propertyName,logoUrl:w.logoUrl,children:(0,t.jsxs)("div",{className:"pay-dbg",children:[(0,t.jsx)("div",{className:"pay-label",children:"the instrument, not the design"}),(0,t.jsx)("h1",{className:"pay-display pay-dbg-title",children:_}),(0,t.jsxs)("p",{className:"pay-dbg-sub",children:["/p2/",b," \xb7 the same link on the live page is ",(0,t.jsxs)("a",{href:"/p/".concat(b),children:["/p/",b]})]}),(0,t.jsxs)("div",{className:"pay-dbg-specimen",children:[(0,t.jsx)("div",{className:"pay-label",children:"amount due"}),(0,t.jsx)("div",{className:"pay-display pay-money pay-dbg-amount",children:(0,v.kk)(w.duesTotal)}),(0,t.jsxs)("div",{className:"pay-dbg-lg",children:[w.tenantName||"—"," \xb7 ",w.room||"no room"," \xb7 ",w.propertyName||"—"]}),(0,t.jsx)("div",{className:"pay-dbg-base",children:"reading size, 17px after the bump"}),(0,t.jsx)("div",{className:"pay-dbg-sm",children:"support size, 14.5px"}),(0,t.jsx)("div",{className:"pay-dbg-chip",children:"the owner’s colour, on the one button it may touch"})]}),(0,t.jsxs)("div",{className:"pay-dbg-rows",children:[(0,t.jsx)("div",{className:"pay-label",children:"what the backend decided"}),(0,t.jsx)(_shortId_Row,{k:"methods",v:w.methods,note:{both:"78.7% of tenants",cash:"11.7%",online:"8.6%",none:"1.1%, and today that page has no button at all"}[w.methods],alarm:"none"===w.methods}),(0,t.jsx)(_shortId_Row,{k:"amount",v:w.amountEditable?"editable":"fixed to the total",note:w.amountEditable?"is_partial_payment, or dues are zero":"is_partial_payment is off and dues are above zero"}),(0,t.jsx)(_shortId_Row,{k:"dues",v:w.hasDues?"".concat(w.dues.length," open, ").concat((0,v.kk)(w.duesTotal)):"nothing to pay",note:w.hasDues?null:"62.9% of tenants sent a link are here; the page for it has never been designed"}),(0,t.jsx)(_shortId_Row,{k:"late fines",v:w.fines.length?"".concat(w.fines.length," on this bill"):"none",note:w.fines.length?"second-largest open due type in the product":null}),(0,t.jsx)(_shortId_Row,{k:"merged rows",v:w.hasMergedRow?"yes, a row is a monthly total":"no"}),(0,t.jsx)(_shortId_Row,{k:"paid history",v:w.hasHistory?"".concat(w.paid.length," receipts"):"none yet",note:w.hasHistory?"the biggest block on most pages, and nobody designed it":"the first-ever receipt is a welcome, not an empty list"}),(0,t.jsx)(_shortId_Row,{k:"link expiry",v:(null==x?void 0:x.expiry_at)?"".concat(w.expired?"EXPIRED":"live"," \xb7 ").concat(x.expiry_at):"none",note:"every link dies 7 days after creation, from a column default no code sets",alarm:w.expired}),(0,t.jsx)(_shortId_Row,{k:"link amount",v:er?"unusable: ".concat(JSON.stringify(eo)):w.linkAmount?(0,v.kk)(w.linkAmount):"—",note:er?"this is what the WhatsApp preview prints; see rentok-backend#6821 and #6823":null,alarm:er}),(0,t.jsx)(_shortId_Row,{k:"invoice scope",v:w.invoiceScoped?"one invoice":"all dues"}),(0,t.jsx)(_shortId_Row,{k:"electricity",v:w.electricity?"".concat(w.electricity).concat(w.electricityLink?", sheet auto-opens and cannot be closed":""):"none",alarm:w.electricityLink}),(0,t.jsx)(_shortId_Row,{k:"brand colour",v:w.brandColor||"none, 78.6% are here"}),(0,t.jsx)(_shortId_Row,{k:"logo",v:w.logoUrl?"a url":"none",note:w.logoUrl?"never null: the backend falls back to a constructed CDN path that may 404":null}),(0,t.jsx)(_shortId_Row,{k:"selfie",v:w.selfie?"yes":"none, 52.5% are here"}),(0,t.jsx)(_shortId_Row,{k:"support number",v:w.supportPhone||"n
1one",note:"already in the payload; the live page throws it away and hardcodes RentOk's"}),(0,t.jsx)(_shortId_Row,{k:"moved out?",v:"unknown",note:"tenant.status is not in the response. 9.3% of link recipients have moved out. Belongs in the additive contract.",alarm:!0})]})]})})]})}}},function(e){e.O(0,[9570,3415,1664,9496,8316,7386,3705,7449,6529,5295,9774,2888,179],function(){return e(e.s=67976)}),_N_E=e.O()}]);

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.