PageSourceSearch

https://rentok.com/_next/static/chunks/8316-420f84dc3cc4a50f.js

js rentok.com collected 2026-10-01 23:47:00 UTC 22,502 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8974500a-1d7f-412a-9291-bb22f01665ea",e._sentryDebugIdIdentifier="sentry-dbid-8974500a-1d7f-412a-9291-bb22f01665ea")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8316],{21485:function(e,n,t){function demoCode(){var e,n,t;return(null===(t=window.location)||void 0===t?void 0:null===(n=t.pathname)||void 0===n?void 0:null===(e=n.match(/^\/p2\/(demo-[a-z-]+)/))||void 0===e?void 0:e[1])||null}t.d(n,{Qh:function(){return setGuided},pW:function(){return demoCall},tt:function(){return isGuided},tu:function(){return demoCode},w5:function(){return forgetDemo},yS:function(){return l}});let l="/p2/demo-rent?autopay=offer&sheet=ways&look=1",i="pay-demo-guided",isGuided=()=>{try{return"1"===window.sessionStorage.getItem(i)}catch(e){return!1}},setGuided=e=>{try{e?window.sessionStorage.setItem(i,"1"):window.sessionStorage.removeItem(i)}catch(e){}};function forgetDemo(){document.cookie="pay_demo=; Path=/; Max-Age=0";try{Object.keys(localStorage).filter(e=>
1e.startsWith("rentok.")).forEach(e=>localStorage.removeItem(e)),Object.keys(sessionStorage).filter(e=>e.startsWith("pay-")).forEach(e=>sessionStorage.removeItem(e))}catch(e){}}async function demoCall(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:demoCode();try{let l=await fetch("/api/pay-demo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:t,path:e,body:n})});return await l.json()}catch(e){return null}}},73927:function(e,n,t){function rupees(e){let n=Number(e||0),t=n!==Math.trunc(n);return n.toLocaleString("en-IN",{style:"currency",currency:"INR",maximumFractionDigits:t?2:0,minimumFractionDigits:t?2:0})}function typedAmount(e){return String(null!=e?e:"").split(".")[0].replace(/\D/g,"")}function groupTyped(e){let n=typedAmount(e);return n?Number(n).toLocaleString("en-IN",{maximumFractionDigits:0}):""}t.d(n,{Ke:function(){return typedAmount},N6:function(){return period},Ny:function(){return onDate},TF:function(){return istMidnight},Zt:function(){return spanDays},kk:function(){return rupees},mg:function(){return dueness},rX:function(){return ist},tc:function(){return onDateTime},uU:function(){return groupTyped}});let l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],i=new Intl.DateTimeFormat("en-GB",{timeZone:"Asia/Kolkata",year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1});function ist(e){if(null==e)return null;let n=e instanceof Date?e:new Date(e);if(Number.isNaN(n.getTime()))return null;let t=Object.fromEntries(i.formatToParts(n).map(e=>[e.type,e.value]));return{day:Number(t.day),month:Number(t.month)-1,year:Number(t.year),hour:Number(t.hour)%24,minute:Number(t.minute)}}function onDate(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=ist(e);return t?"".concat(t.day," ").concat(l[t.month]).concat(n?" ".concat(String(t.year).slice(-2)):""):null}function onDateTime(e){let n=ist(e);if(!n)return null;let t=n.hour<12?"am":"pm",i=n.hour%12==0?12:n.hour%12;return"".concat(n.day," ").concat(l[n.month]," ").concat(n.year,", ").concat(i,":").concat(String(n.minute).padStart(2,"0")," ").concat(t)}function istMidnight(e){let n=ist(e);return n?Date.UTC(n.year,n.month,n.day):null}function spanDays(e,n){if(!e||!n)return null;let t=Math.round((new Date(n)-new Date(e))/864e5)+1;return t>0?t:null}function period(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();if(!e||!n)return null;let l=ist(e),i=ist(n),o=ist(t);if(!l||!i||!o)return null;let a=l.year!==i.year;return"".concat(onDate(e,a)," – ").concat(onDate(n,a||i.year!==o.year))}function dueness(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,t=istMidnight(e),l=istMidnight(n);if(null===t||null===l)return null;let i=Math.round((t-l)/864e5);return i<-1?{tone:"overdue",text:"Overdue by ".concat(Math.abs(i)," days")}:-1===i?{tone:"overdue",text:"Overdue by a day"}:0===i?{tone:"overdue",text:"Due today"}:1===i?{tone:"waiting",text:"Due tomorrow"}:i<=7?{tone:"waiting",text:"Due in ".concat(i," days")}:{tone:"calm",text:"Due ".concat(onDate(e))}}},40330:function(e,n,t){t.d(n,{$M:function(){return meterBreakup},AC:function(){return benchCase},EC:function(){return m},FE:function(){return scopedRow},HT:function(){return u},I_:function(){return c},JT:function(){return d},KF:function(){return sender},Md:function(){return cadence},Om:function(){return wantsFullAmount},PS:function(){return a},ZM:function(){return autopayTerms},Zi:function(){return withScopedPreview},am:function(){return r},bx:function(){return billGone},iM:function(){return o},is:function(){return rowId},n8:function(){return s},on:function(){return payState},v0:function(){return autopayFee},vy:function(){return openingAmount}});
1var l=t(73927),i=t(83454);let isExpired=(e,n)=>!!(null==e?void 0:e.expiry_at)&&new Date(e.expiry_at)<new Date(n),o="true"===i.env.NEXT_PUBLIC_PAY_PREVIEW,a="true"===i.env.NEXT_PUBLIC_PAY_LAUNCH_EVERY_VISIT,r=!1,u=!0,autopayFee=e=>{var n;return Number(null==e?void 0:null===(n=e.autopay)||void 0===n?void 0:n.fee)||0},d="_MeregDue_",s="Automatic Late Fine",c="Rent",m="EazyApp Tech Pvt Ltd";function usableLinkAmount(e){let n=Number(e);return!Number.isFinite(n)||n<=0?null:n}let p=new Set(["GXi0eaXlilRnTTtwz6Svnnkz41K2","B81lqo7Go5YBj0f8JGG06ylARUo1","i2qgZXXDjiegykUEmvZ95AzmYLh1","twlUKWssJNbPBiz3DLvsehlKMeQ2","uFGY6vcHTfNmUwoS0ZgjsmvokW22"]);function wantsFullAmount(e){var n;return p.has(null==e?void 0:null===(n=e.keys)||void 0===n?void 0:n.pgId)&&Number(null==e?void 0:e.duesTotal)>0&&function(e,n){if(!e)return!0;let t=new Date(e);if(Number.isNaN(t.getTime()))return!0;let day=e=>new Date(e).toISOString().slice(0,10);return day(t)<=day(null!=n?n:Date.now())}(null==e?void 0:e.joinedOn,null==e?void 0:e.renderedAt)}function openingAmount(e){let{row:n=null,all:t=!1,advance:l=!1,duesTotal:i=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n)return Math.ceil(Number(n.amount)||0);if(l)return 0;let o=t||wantsFullAmount(e)||!(null==e?void 0:e.linkAmount)?0:Math.min(e.linkAmount,i||e.linkAmount);return Math.ceil(o||i)}function rowId(e){var n,t;return String(null!==(t=null!==(n=null==e?void 0:e.id)&&void 0!==n?n:null==e?void 0:e.firebase_id)&&void 0!==t?t:"")}function billGone(e,n){if(!n)return null;let t=String(n);if(((null==e?void 0:e.dues)||[]).some(e=>rowId(e)===t))return null;let l=(null==e?void 0:e.paid)||[],i=l.find(e=>rowId(e)===t);if(!i)return((null==e?void 0:e.dues)||[]).some(e=>String((null==e?void 0:e.firebase_id)||"").includes(d))?null:{paid:null};let o=l.filter(e=>
1e!==i&&String((null==e?void 0:e.root_invoice_id)||"")===t);return{paid:i,amount:[i,...o].reduce((e,n)=>e+(Number(null==n?void 0:n.amount)||0),0),on:i.paid_date||null}}function scopedRow(e,n){return n&&(Array.isArray(e)?e:[]).find(e=>rowId(e)===String(n))||null}function sender(e){return(null==e?void 0:e.brandName)||"RentOk"}function withScopedPreview(e,n){if(!o||!e)return e;let t=Number(null==n?void 0:n.scoped);if(!(t>=1)||!Array.isArray(e.dues)||e.dues.length<2)return e;let l=e.dues[Math.min(t,e.dues.length)-1];return l?{...e,scoped:l,rest:e.dues.filter(e=>e!==l)}:e}function sentAt(e){return(null==e?void 0:e.expiry_at)&&!Number.isNaN(Date.parse(e.expiry_at))?Date.parse(e.expiry_at)-6048e5:null}function payState(e){let{tenantDetails:n,shortLinkData:t,is_vendor:l,renderedAt:i=null}=e,o=Array.isArray(null==n?void 0:n.pending_dues)?n.pending_dues:[],a=Array.isArray(null==n?void 0:n.collections)?n.collections:[],r=Number(null==n?void 0:n.pending_dues_amount)||0,p=null!=i?i:Date.now(),v=isExpired(t,p),y=!!(null==n?void 0:n.collect_online_payment),f=!!(null==n?void 0:n.collect_cash_payment)&&!l,g=!!(null==n?void 0:n.is_partial_payment)||r<=0,h=(null==n?void 0:n.electricity_service)||null;return{renderedAt:p,methods:y&&f?"both":y?"online":f?"cash":"none",amountEditable:g,duesTotal:r,dues:o,paid:a,hasDues:o.length>0||r>0,hasHistory:a.length>0,fines:o.filter(e=>(null==e?void 0:e.due_type)===s),hasMergedRow:o.some(e=>String((null==e?void 0:e.firebase_id)||"").includes(d)),logoUrl:(null==n?void 0:n.logo_url)||null,brandColor:(null==n?void 0:n.brand_color)||null,brandName:String((null==n?void 0:n.brand_name)||"").trim()||null,selfie:(null==n?void 0:n.selfie)||null,propertyName:String((null==n?void 0:n.pg_name)||"").trim()||null,tenantName:String((null==n?void 0:n.tenant_name)||"").trim()||null,tenantUuid:(null==n?void 0:n.tenant_uuid)||null,keys:{pgId:(null==n?void 0:n.pg_id)||null,pgNumber:Number(null==n?void 0:n.pg_number)||null,firebaseId:(null==n?void 0:n.firebase_id)||null,tenantUuid:(null==n?void 0:n.tenant_uuid)||null,propertyId:(null==n?void 0:n.property_id)||null},tenantPhone:(null==n?void 0:n.tenant_phone)||null,tenantEmail:String((null==n?void 0:n.tenant_email)||"").trim()||null,joinedOn:(null==n?void 0:n.tenant_doj)||null,room:(null==n?void 0:n.room)||null,supportPhone:(null==t?void 0:t.tenant_communication_phone)||null,expired:v,linkAmount:!function(e,n,t){if(!e||!t)return!1;let l=(n||[]).filter(e=>Date.parse(null==e?void 0:e.paid_date)>=t);return l.reduce((e,n)=>{var t;return e+(Number(null!==(t=null==n?void 0:n.paid_amount)&&void 0!==t?t:null==n?void 0:n.amount)||0)},0)>=e}(usableLinkAmount(null==t?void 0:t.amount),a,sentAt(t))?usableLinkAmount(null==t?void 0:t.amount):null,linkSentAt:sentAt(t),linkForMeter:!!(null==t?void 0:t.is_electricity),invoiceScoped:(null==t?void 0:t.invoice_id)||null,scoped:scopedRow(o,null==t?void 0:t.invoice_id),rest:scopedRow(o,null==t?void 0:t.invoice_id)?o.filter(e=>rowId(e)!==String(t.invoice_id)):[],electricity:h,electricityLink:!!(null==t?void 0:t.is_electricity)&&!!h,isVendor:!!l,isBookingBotPayment:!!(null==n?void 0:n.is_booking_bot_payment),rent:Number(null==n?void 0:n.fixed_rent)>0?Number(n.fixed_rent):null,autopay:function(e){var n,t,l,i,o,a;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ids=e=>Array.isArray(e)?e.map(String).filter(Boolean):[];return{offered:!!(null==e?void 0:e.offered),required:!!(null==e?void 0:e.required),status:(null==e?void 0:e.status)||null,hold:["on_hold","customer_paused"].includes(null==e?void 0:e.hold)?e.hold:null,day:Number(null==e?void 0:e.preferred_debit_date)||null,failedOn:(null==e?void 0:null===(n=e.last_debit)||void 0===n?void 0:n.status)!=="failed"||(r||[]).some(n=>(null==n?void 0:n.due_type)===c&&Date.parse(null==n?void 0:n.paid_date)>Date.parse(e.last_debit.date))?null:e.last_debit.date||null,failReason:(null==e?void 0:null===(t=e.last_debit)||void 0===t?void 0:t.status)==="failed"&&e.last_debit.reason||null,retryOn:(null==e?void 0:null===(l=e.last_debit)||void 0===l?void 0:l.retry_on)||null,pause:(null==e?void 0:e.pause)?{from:e.pause.from||null,until:e.pause.until||null}:null,pauseLimit:(null==e?void 0:e.pause_limit)||null,window:(null==e?void 0:e.window)||null,ceiling:Number(null==e?void 0:e.ceiling)||null,duesCeiling:Number(null==e?void 0:e.dues_ceiling)||null,enachCeiling:Number(null==e?void 0:e.enac
1h_ceiling)||null,enachDuesCeiling:Number(null==e?void 0:e.enach_dues_ceiling)||null,perDebitCap:Number(null==e?void 0:e.per_debit_cap)||null,rentTotal:Number(null==e?void 0:e.rent_total)||null,duesTotal:Number(null==e?void 0:e.dues_total)||null,option:2===Number(null==e?void 0:e.option)?2:1,live:!!(null==e?void 0:e.live),rentOnly:!!(null==e?void 0:e.rent_only),pausable:!!(null==e?void 0:e.pausable),messages:!!(null==e?void 0:e.messages),manageable:!!(null==e?void 0:e.manageable),dayChangeable:!!(null==e?void 0:e.manageable)&&!!(null==e?void 0:e.window)&&e.window.from!==e.window.to,fee:(null==e?void 0:e.fee)==null?null:Number(e.fee)||0,nextPending:(null==e?void 0:e.next_pending)==null?null:!!e.next_pending,lastPaid:(null==e?void 0:null===(i=e.last_paid)||void 0===i?void 0:i.date)?{date:e.last_paid.date,amount:Number(e.last_paid.amount)||null}:null,payeeName:String((null==e?void 0:e.payee_name)||"").trim()||m,validUntil:(null==e?void 0:e.valid_until)||null,coins:u&&(null==e?void 0:e.coins)?{setup:Number(e.coins.setup_bonus)||0,perRupee:Number(e.coins.earn_per_rupee)||0,worth:Number(e.coins.coins_per_rupee)||null,balance:null==e.coins.balance?null:Number(e.coins.balance)||0,earned:null==e.coins.earned_by_autopay?null:Number(e.coins.earned_by_autopay)||0}:null,rail:(null==e?void 0:e.rail)==="bank"?"bank":"upi",lastDebitIds:ids(null==e?void 0:null===(o=e.last_debit)||void 0===o?void 0:o.invoice_ids),nextDebit:(null==e?void 0:null===(a=e.next_debit)||void 0===a?void 0:a.date)?{date:e.next_debit.date,invoiceIds:ids(e.next_debit.invoice_ids),state:e.next_debit.state||null}:null}}((null==n?void 0:n.coins)&&(null==n?void 0:n.autopay)?{...n.autopay,coins:n.coins}:null==n?void 0:n.autopay,a),ways:(null==n?void 0:n.ways)?u?n.ways:{...n.ways,coins:null,earn_per_rupee:null}:null,settlingUp:o.some(e=>4===Number(null==e?void 0:e.status))}}function benchCase(e){let{hasCredit:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.expired?"S00 expired":n?"S10 live credit":e.hasMergedRow&&e.hasDues?"S11 merged dues row":e.electricityLink?"S09 electricity, dedicated link":e.electricity?"S08 electricity block":"none"===e.methods?"S07 no way to pay":e.settlingUp?"S01 moved out, settling up":e.fines.length>0?"S06 late fine on the bill":e.hasDues?"both"===e.methods&&e.amountEditable?e.brandColor&&e.logoUrl?"S03a both+editable, branded":"S03b both+editable, unbranded":"both"===e.methods?"S04 both+locked":"cash"===e.methods?"S05a cash only":"online"===e.methods?"S05b online only":"S99 other":"S02 nothing to pay"}let v=[[6,8,"Every week"],[12,16,"Every fortnight"],[27,33,"Every month"],[57,63,"Every two months"],[86,95,"Every three months"],[175,190,"Every six months"],[355,375,"Every year"]];function cadence(e,n){var t;let i=(0,l.Zt)(e,n);return null===i?null:(null===(t=v.find(e=>{let[n,t]=e;return i>=n&&i<=t}))||void 0===t?void 0:t[2])||null}function autopayTerms(e){var n,t;let l=((null==e?void 0:e.dues)||[]).find(e=>(null==e?void 0:e.due_type)===c),i=(null==e?void 0:e.autopay)||{},o=(null==e?void 0:e.rent)==null?null:e.rent+(Number(i.fee)||0),total=e=>{var n,t;return null!==(t=2===e?i.duesTotal:null!==(n=i.rentTotal)&&void 0!==n?n:o)&&void 0!==t?t:null};return{amount:o,ceiling:null!==(n=i.ceiling)&&void 0!==n?n:null,limit:e=>{var n,t,l;return null!==(l="bank"===i.rail?2===e?i.enachDuesCeiling:null!==(n=i.enachCeiling)&&void 0!==n?n:o:2===e&&null!==(t=i.duesCeiling)&&void 0!==t?t:i.ceiling)&&void 0!==l?l:null},perDebitCap:null!==(t=i.perDebitCap)&&void 0!==t?t:null,total,parts:e=>"bank"!==i.rail&&i.perDebitCap&&total(e)>i.perDebitCap?Math.ceil(total(e)/i.perDebitCap):1,cadence:cadence(null==l?void 0:l.due_start_date,null==l?void 0:l.due_end_date)}}let y={initial:/initial\s*reading\s*:?\s*([\d,.]+)/i,final:/final\s*reading\s*:?\s*([\d,.]+)/i,rateUnits:/\(\s*₹\s*([\d,.]+)\s*[*x×]\s*([\d,.]+)\s*units/i,consumed:/consumed\s*units?\s*:?\s*\(?\s*(?:₹[\d,.]+\s*[*x×]\s*)?([\d,.]+)\s*units/i},num=e=>{if(null==e)return null;let n=Number(String(e).replace(/,/g,""));return Number.isFinite(n)?n:null};function meterBreakup(e){var n,t,l,i;let o=String(e||"");if(!/meter/i.test(o))return null;let a=num(null===(n=o.match(y.initial))||void 0===n?void 0:n[1]),r=num(null===(t=o.match(y.final))||void 0===t?void 0:t[1]),u=o.match(y.rateUnits),d=num(null==u?void 0:u[1]),s=null!==(i=num(null==u?void 0:u[2]))&&void 0!==i?i:num(null===(l=o.match(y.consumed))||void 0===l?void 0:l[1]);return null===a||null===r?null:{initial:a,final:r,units:null!=s?s:r-a,rate:d}}},48316:function(e,n,t){t.d(n,{b:function(){return brandVars},Z:function(){return PayPageRoot}});
1var l=t(85893),i=t(9008),o=t.n(i),a=t(62538),r=t.n(a);let chan=(e,n)=>parseInt(e.slice(1+2*n,3+2*n),16),lin=e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4,luminance=e=>{let[n,t,l]=e;return .2126*lin(n)+.7152*lin(t)+.0722*lin(l)},hexOf=e=>"#"+e.map(e=>Math.round(e).toString(16).padStart(2,"0")).join(""),rgbOf=e=>[chan(e,0),chan(e,1),chan(e,2)],over=(e,n,t)=>e.map((e,l)=>n*e+(1-n)*t[l]),ratio=(e,n)=>{let[t,l]=[luminance(e),luminance(n)];return(Math.max(t,l)+.05)/(Math.min(t,l)+.05)},u=rgbOf("#F4F5FA"),d="#FFFFFF",s="#000000";function pick(e){let score=n=>Math.min(...e.map(e=>ratio(rgbOf(n),e))),n=score(d),t=score(s);return t>n?{label:s,ratio:t}:{label:d,ratio:n}}let c=rgbOf("#12174E"),cardGround=e=>over(rgbOf(e),.06,rgbOf("#FFFFFF"));function brandInk(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4.5,t=rgbOf(e);if(!t.every(Number.isFinite))return"#1A1A1A";let l=cardGround(e),clears=e=>ratio(rgbOf(e),l)>=n;if(clears(e))return e;for(let e=1;e<=40;e++){let n=1-.025*e,l=hexOf(t.map(e=>e*n));if(clears(l))return l}return"#1A1A1A"}var m=t(41664),p=t.n(m),v=t(67294),y=t(21485),f=t(40330);let g=[["Offer, with the story","?autopay=offer&sheet=ways&look=1"],["Autopay launch sheet","?autopay=offer&look=1"],["One approval left","?autopay=started"],["Autopay on","?autopay=on&option=2"],["Your autopay","/autopay?autopay=on&option=2&step=manage"],["Paused","?autopay=paused&option=2"],["A debit failed","/autopay?autopay=failed&option=2&step=manage"],["Required by the property","?autopay=required"],["Rent Coins","?autopay=offer&sheet=coins"],["Bank auto-debit (e-NACH)","/autopay?autopay=offer&rail=bank&step=what"],["What UPI adds, on the pay screen","/pay?all=1&autopay=offer"]],realCode=()=>{var e;return f.am&&(null===(e=window.location.pathname.match(/^\/p2\/([A-Za-z0-9]{4,16})(\/|$)/))||void 0===e?void 0:e[1])||null};function DemoTag(){let[e,n]=(0,v.useState)(!1),[t,i]=(0,v.useState)(!1),[o,a]=(0,v.useState)(!1),[r,u]=(0,v.useState)(!1),[d,s]=(0,v.useState)(!1),[c,m]=(0,v.useState)(null);return((0,v.useEffect)(()=>{let e=window.location.pathname;m(realCode()),n(!!(0,y.tu)()||e.startsWith("/p2/demo/")),"/p2/demo/cases"===e&&(0,y.Qh)(!1),i((0,y.tt)()),a("/p2/demo/cases"===e)},[]),(0,v.useEffect)(()=>{let e;if(!t||!new URLSearchParams(window.location.search).get("orderId"))return;let n=setInterval(()=>{document.querySelector(".pay-topbar-live")&&(clearInterval(n),e=setTimeout(()=>{u(!0),s(!0)},1800))},500);return()=>{clearInterval(n),clearTimeout(e)}},[t]),c)?(0,l.jsx)(TestTag,{code:c}):e?(0,l.jsxs)("details",{className:"pay-demo-tag",open:d,onToggle:e=>s(e.currentTarget.open),"data-sentry-component":"DemoTag","data-sentry-source-file":"DemoTag.jsx",children:[(0,l.jsx)("summary",{"aria-label":"Demo: made-up tenant, no money moves. Open to start again, see the test cases, or report a problem",children:"Demo"}),(0,l.jsxs)("div",{className:"pay-demo-tag-menu",children:[(0,l.jsx)("p",{children:r?"That’s the whole journey.":"Made-up tenant. No money moves."}),(0,l.jsx)("a",{href:"/p2/demo",className:t?"is-main":void 0,children:t?"See it again":"Guided journey"}),o?null:(0,l.jsx)(p(),{href:"/p2/demo/cases",children:"All test cases"}),(0,l.jsx)("button",{type:"button",onClick:()=>{var e;let n=(null===(e=navigator.userAgent.match(/\(([^)]+)\)/))||void 0===e?void 0:e[1])||navigator.userAgent,t=["Payment page test","Screen: ".concat(document.title),"Address: ".concat(window.location.pathname).concat(window.location.search),"Phone: ".concat(n),"","What I did:","What I expected:","What happened:","(screenshot attached)"].join("\n");window.open("https://wa.me/?text=".concat(encodeURIComponent(t)),"_blank","noopener")},children:"Report a problem"})]})]}):null}function TestTag(e){let{code:n}=e,t=null!=new URLSearchParams(window.location.search).get("real"),i="/p2/".concat(n);return(0,l.jsxs)("details",{className:"pay-demo-tag","data-sentry-component":"TestTag","data-sentry-source-file":"DemoTag.jsx",children:[(0,l.jsx)("summary",{"aria-label":"Test mode: open to switch states",children:t?"Real":"Test"}),(0,l.jsxs)("div",{className:"pay-demo-tag-menu pay-demo-tag-menu--test",children:[(0,l.jsx)("p",{children:t?"What a tenant sees. Everything here is real.":"Test mode on a real link. Autopay is pretend; paying and cash are real."}),(0,l.jsx)("button",{type:"button",className:"is-main",onClick:()=>{(0,y.w5)(),window.location.assign(i)},children:"Start again"}),g.map(e=>{let[n,t]=e;
1return(0,l.jsx)("a",{href:"".concat(i).concat(t),children:n},n)}),(0,l.jsx)("a",{href:t?i:"".concat(i,"?real=1"),children:t?"Back to test mode":"What a tenant sees"})]})]})}let h=/^#[0-9a-fA-F]{6}$/;function brandVars(e){if(!e||!h.test(String(e).trim()))return{};let n=String(e).trim(),t=function(e){let n=rgbOf(e);if(!n.every(Number.isFinite))return e;for(let e=0;e<=40;e++){let t=over([255,255,255],.025*e,n);if(ratio(t,c)>=3)return hexOf(t)}return"#FFFFFF"}(n);return{"--pay-brand":n,"--pay-on-brand":pick([rgbOf(n)]).label,"--pay-on-key":pick([over(rgbOf(n),.78,u)]).label,"--pay-brand-ink":brandInk(n),"--pay-auto-ink":brandInk(n),"--pay-key-a":t,"--pay-key-b":"color-mix(in srgb, ".concat(t," 72%, #FFFFFF)"),"--pay-key-side":"color-mix(in srgb, ".concat(t," 56%, #000000)"),"--pay-key-glow":"color-mix(in srgb, ".concat(t," 70%, #000000)"),"--pay-key-ink":pick([rgbOf(t)]).label}}let b="Open to see what you owe and pay it.";function PayPageRoot(e){let{brandColor:n,propertyName:t,logoUrl:i,style:a,className:u="",children:d,...s}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o(),{"data-sentry-element":"Head","data-sentry-source-file":"PayPageRoot.jsx",children:[(0,l.jsx)("link",{rel:"stylesheet",href:"/paypage/pay-page.css?v=".concat("5c1d83a63e")},"pay-page-css"),(0,l.jsx)("meta",{property:"og:title",content:t?"Your bill from ".concat(t):"Your bill","data-sentry-element":"meta","data-sentry-source-file":"PayPageRoot.jsx"},"og:title"),(0,l.jsx)("meta",{property:"og:description",content:b,"data-sentry-element":"meta","data-sentry-source-file":"PayPageRoot.jsx"},"og:description"),(0,l.jsx)("meta",{name:"description",content:b,"data-sentry-element":"meta","data-sentry-source-file":"PayPageRoot.jsx"},"description"),(0,l.jsx)("meta",{property:"og:type",content:"website","data-sentry-element":"meta","data-sentry-source-file":"PayPageRoot.jsx"},"og:type"),i?(0,l.jsx)("link",{rel:"icon",href:i},"pay-icon"):null]}),(0,l.jsxs)("div",{className:"pay-page ".concat(r().variable," ").concat(u),"data-brand":Object.keys(brandVars(n)).length?"":void 0,style:{...brandVars(n),...a},...s,children:[d,(0,l.jsx)(DemoTag,{"data-sentry-element":"DemoTag","data-sentry-source-file":"PayPageRoot.jsx"})]})]})}}}]);

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.