PageSourceSearch

https://openroom.ca/_next/static/chunks/7596-6f881297f7b274c2.js

js openroom.ca collected 2026-09-30 16:03:40 UTC 28,198 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7596],{91755:function(e,t,n){n.d(t,{$:function(){return r.$}});var r=n(51548)},77596:function(e,t,n){n.d(t,{Z:function(){return J}});var r=n(85893),a=n(67294),l=n(70465);let o=e=>e?e.toLowerCase().replace(/\b([a-zÀ-ɏ])/g,e=>e.toUpperCase()):"",i=e=>{if(null==e||""===e)return null;if(e instanceof Date)return isNaN(e.getTime())?null:e;let t=String(e).trim();if(""===t)return null;let n=new Date(/^\d{4}-\d{2}-\d{2}$/.test(t)?"".concat(t,"T00:00:00Z"):t);return isNaN(n.getTime())?null:n},s=e=>{let t=i(e);return t?new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(t):null},c=e=>null==e?null:l.AF.format(e/100),u=e=>{let t=(null!=e?e:"").trim();return t?t.length<=3&&!/\d/.test(t)?t.toUpperCase():o(t):""},d=e=>{let t=(null!=e?e:"").trim().toUpperCase().replace(/\s+/g,"");return t?/^[A-Z]\d[A-Z]\d[A-Z]\d$/.test(t)?"".concat(t.slice(0,3)," ").concat(t.slice(3)):t:""},g=e=>/^(canada|usa|united states|us)$/i.test(e.trim()),m=(e,t,n)=>[[o(e),u(t)].filter(Boolean).join(", "),d(n)].filter(Boolean).join(" "),p=e=>{let t=[e.address_1,e.address_2].map(e=>(null!=e?e:"").trim()).filter(Boolean).map(o).join(", "),n=m(e.city,e.province,e.postal_code);if(!t||!n){var r;let a=(null!==(r=e.full_address)&&void 0!==r?r:"").split(",").map(e=>e.trim()).filter(e=>e&&!g(e));if(a.length>0&&(t||(t=o(a[0])),!n)){let e=a.slice(1),t=e.find(e=>/\d/.test(e)&&e.length<=7),r=e.find(e=>e!==t&&e.length<=3&&!/\d/.test(e));n=m(e.find(e=>e!==t&&e!==r),r,t)}}return{line1:t,line2:n}},f=e=>{let{courtFiling:t,actions:n}=e,{line1:a,line2:o}=p(t),i=t.submission_type?(0,l.Vl)(t.submission_type):"Court order",c=s(t.issued_date),u=[t.province?(0,l.Vl)(t.province):null,i,c?"Issued ".concat(c):null,t.reference_id?"File ".concat(t.reference_id.toUpperCase()):null].filter(Boolean);return(0,r.jsxs)("header",{children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold leading-tight text-gray-900 dark:text-white md:text-3xl uppercase",children:t.full_address||a||"Unknown address"}),o&&(0,r.jsx)("p",{className:"mt-1 text-base text-gray-600 dark:text-gray-300",children:o})]}),n&&(0,r.jsx)("div",{className:"shrink-0",children:n})]}),u.length>0&&(0,r.jsx)("p",{className:"mt-3 text-sm text-gray-500 dark:text-gray-400",children:u.join(" \xb7 ")})]})},y=e=>{var t,n,r,a;return[{id:"tenancy_ended",label:"Tenancy ended",date:null!==(t=e.tenancy_terminated_date)&&void 0!==t?t:""},{id:"hearing",label:"Hearing",date:null!==(n=e.meeting_date)&&void 0!==n?n:""},{id:"court_order_issued",label:"Court order issued",date:null!==(r=e.issued_date)&&void 0!==r?r:""},{id:"interest_starts",label:"Interest starts",date:null!==(a=e.daily_compensation_start_date)&&void 0!==a?a:""}].filter(e=>null!==i(e.date))},h=e=>{let{events:t}=e,n=t.map(e=>({event:e,date:i(e.date)})).filter(e=>!!e.date).sort((e,t)=>e.date.getTime()-t.date.getTime()).map(e=>e.event);if(0===n.length)return null;let a=n.length-1;return(0,r.jsx)("ol",{className:"flex flex-col md:flex-row md:items-start",children:n.map((e,t)=>(0,r.jsxs)("li",{className:"relative flex flex-1 gap-4 pb-6 last:pb-0 md:flex-col md:gap-0 md:pb-0",children:[t<a&&(0,r.jsx)("span",{"aria-hidden":"true",className:"absolute left-[6px] top-4 h-full w-px bg-gray-200 dark:bg-gray-700 md:left-3 md:top-[6px] md:h-px md:w-full"}),(0,r.jsx)("span",{"aria-hidden":"true",className:"relative z-10 mt-1 h-3 w-3 shrink-0 rounded-full border-2 border-purple bg-white dark:bg-gray-900 md:mt-0"}),(0,r.jsxs)("div",{className:"md:mt-3 md:pr-6",children:[(0,r.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:e.label}),(0,r.jsx)("div",{className:"text-[13px] text-gray-500 dark:text-gray-400",children:s(e.date)})]})]},e.id))})},w=e=>null!=e&&""!==e,b=e=>{let{items:t,columns:n=2}=e,a=t.filter(e=>e.keepEmpty||w(e.value));return 0===a.length?null:(0,r.jsx)("dl",{className:"grid grid-cols-1 gap-x-8 gap-y-5 ".concat(3===n?"sm:grid-cols-3":"sm:grid-cols-2"),children:a.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("dt",{className:"text-[13px] font-medium text-gray-500 dark:text-gray-400",children:e.label}),(0,r.jsx)("dd",{className:e.emphasis?"mt-1 text-base font-semibold text-gray-900 dark:text-white":"mt-1 text-[15px] text-gray-900 dark:text-gray-100",children:w(e.value)?e.value:(0,r.jsx)("span",{className:"text-gray-400","aria-label":"Not available",children:"—"})})]},e.label))})};var x=n(81683);let _=e=>{let{tags:t}
1=e,n=(0,x.S1)((null!=t?t:[]).filter(Boolean));return 0===n.length?(0,r.jsx)("span",{className:"text-gray-400",children:"—"}):(0,r.jsx)("ul",{className:"flex flex-wrap gap-2",children:n.map(e=>(0,r.jsx)("li",{className:"rounded-md bg-gray-100 px-2.5 py-1 text-[13px] font-medium text-gray-700 dark:bg-gray-700 dark:text-gray-200",children:(0,x.kH)(e)},e))})},v=e=>{var t;let{courtFiling:n}=e,a=(null!==(t=n.tags)&&void 0!==t?t:[]).filter(Boolean).length>0,l=[{label:"Adjudicator",value:n.adjudicator_name?o(n.adjudicator_name):null},{label:"Monthly rent",value:c(n.monthly_rent),emphasis:!0}];return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsx)(b,{items:l}),a&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-[13px] font-medium text-gray-500 dark:text-gray-400",children:"Topics"}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)(_,{tags:n.tags})})]})]})},j=e=>{let{role:t,names:n,legalRep:a}=e,i=(null!=n?n:[]).filter(Boolean);return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-[13px] font-medium text-gray-500 dark:text-gray-400",children:(0,l._6)(t,"".concat(t,"s"),i.length)}),(0,r.jsx)("div",{className:"mt-1 text-[15px] text-gray-900 dark:text-gray-100",children:i.length>0?i.map(o).join(", "):(0,r.jsx)("span",{className:"text-gray-400",children:"—"})}),(0,r.jsx)("div",{className:"mt-4 text-[13px] font-medium text-gray-500 dark:text-gray-400",children:"Legal representative"}),(0,r.jsx)("div",{className:"mt-1 text-[15px] text-gray-900 dark:text-gray-100",children:a?o(a):(0,r.jsx)("span",{className:"text-gray-400",children:"—"})})]})},z=e=>{let{courtFiling:t}=e;return(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2",children:[(0,r.jsx)(j,{role:"Tenant",names:t.tenant_names,legalRep:t.tenant_legal_rep_name}),(0,r.jsx)(j,{role:"Landlord",names:t.landlord_names,legalRep:t.landlord_legal_rep_name})]})};var S=n(90659),k=n(50259),N=n(98074),T=n(91755);let A=e=>{let{pageNumber:t}=e;return(0,r.jsx)("img",{src:"/img/blurred-court-order.png",alt:"Court order page ".concat(t),loading:"lazy",draggable:!1,className:"block h-auto w-full select-none"})},C=e=>{let{index:t,pageNumber:n,eager:l,overlay:o,loadUrls:i}=e,s=(0,a.useRef)(null),[c,u]=(0,a.useState)(""),[d,g]=(0,a.useState)(!1),m=(0,a.useRef)(!1),p=(0,a.useRef)(!1),f=(0,a.useCallback)(async()=>{if(!m.current){m.current=!0;try{let e=await i();e[t]&&u(e[t])}catch(e){}}},[i,t]);(0,a.useEffect)(()=>{if(l){f();return}let e=s.current;if(!e||"undefined"==typeof IntersectionObserver){f();return}let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(t.disconnect(),f())},{rootMargin:"600px"});return t.observe(e),()=>t.disconnect()},[l,f]);let y=(0,a.useCallback)(async()=>{if(!p.current){p.current=!0;try{let e=await i(!0);e[t]&&(g(!1),u(e[t]))}catch(e){}}},[i,t]);return(0,r.jsx)("div",{ref:s,className:o?"absolute inset-0":"",children:c&&(0,r.jsx)("img",{src:c,alt:"Court order page ".concat(n),loading:l?"eager":"lazy",draggable:!1,onLoad:()=>g(!0),onError:y,className:"".concat(o?"h-full w-full object-contain":"block h-auto w-full"," transition-opacity duration-700 ease-out motion-reduce:transition-none ").concat(d?"opacity-100":"opacity-0")})})},U=e=>{let{index:t,pageNumber:n,hasBlur:a,verified:l,verifying:o,eager:i,onView:s,loadUrls:c}=e;return(0,r.jsxs)("figure",{className:"m-0",children:[(0,r.jsxs)("figcaption",{className:"mb-2 text-[13px] font-medium text-gray-500 dark:text-gray-400",children:["Page ",n]}),(0,r.jsxs)("div",{className:"relative overflow-hidden rounded-lg border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-800",children:[a&&(0,r.jsx)(A,{pageNumber:n}),!a&&!l&&(0,r.jsx)("div",{className:"aspect-[3/4] w-full","aria-hidden":"true"}),l&&(0,r.jsx)(C,{index:t,pageNumber:n,eager:i,overlay:a,loadUrls:c}),!l&&(0,r.jsx)("button",{type:"button",onClick:s,disabled:o,className:"group absolute inset-0 z-10 flex cursor-pointer items-center justify-center transition-colors hover:bg-gray-900/[0.04] focus:outline-none disabled:cursor-default",children:(0,r.jsx)("span",{className:"pointer-events-none inline-flex items-center gap-2 rounded-full bg-purple px-5 py-3 text-sm font-medium text-white shadow-lg ring-1 ring-black/5 transition group-hover:bg-purple-600 group-focus-visible:ring-2 group-focus-visible:ring-purple-300 group-focus-visible:ring-offset-2",children:o?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T.$,{size:"sm",light:!0,"aria-hidden":"true"}),"Loading…"]}):"Click to View Court Order"})})]})]})};var I=n(79011);let D=async e=>{let t={status:"unavailable",page_count:0};try{let n=await (0,I.U2)("/documents/".concat(e,"/preview"));if(!n.ok)return t;let r=await n.json(),a=Number(null==r?void 0:r.page_count)||0;if((null==r?void 0:r.status)==="ready"&&a>0)return{status:"ready",page_count:a};return t}catch(e){return t}},O=async(e,t)=>{var n;let r=await fetch("".concat("https://api.openroom.ca","/documents/").concat(e,"/pdf"),{method:"POST",body:JSON.stringify({token:t.token,user_token:t.userToken,captcha_token:t.captchaToken})}),a=await r.json();return(null==a?void 0:a.url)!=void 0?{kind:"redirect",url:a.url}:{kind:"images",imageURLs:null!==(n=null==a?void 0:a.image_url)&&void 0!==n?n:[]}},E=e=>{var t;let{courtFilingId:n}=e,{executeRecaptcha:l}=(0,k.xX)(),[o,i]=(0,a.useState)(null),[s,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)(!1),[g,m]=(0,a.useState)(0),p=(0,a.useRef)(null),f=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=!0;return c(!1),m(0),p.current=null,f.current=null,i(null),D(n).then(t=>{e&&i(t)}),()=>{e=!1}},[n]);let y=(0,a.useCallback)(async()=>{let e="";l&&(e=await l("view_pdf"));let t="";try{t=(await S.g.currentSession()).getIdToken().getJwtToken()}catch(e){}let r=await (0,N.Af)(new Date().getTime()),a=await O(n,{token:e,userToken:t,captchaToken:r});if("images"!==a.kind||0===a.imageURLs.length)throw Error("court order unavailable");return a.imageURLs},[l,n]),h=(0,a.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=p.current;if(!e&&t&&Date.now()-t.fetchedAt<6e3)return t.urls;if(f.current)return f.current;let n=y().then(e=>(p.current={urls:e,fetchedAt:Date.now()},f.current=null,e)).catch(e=>{throw f.current=null,e});return f.current=n,n},[y]),w=(0,a.useCallback)(async()=>
1{if(!u){d(!0);try{let e=await h(!0);m(e.length),c(!0)}catch(e){}finally{d(!1)}}},[h,u]),b=(0,r.jsx)("h2",{id:"court-order-heading",className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Court order"});if(null==o)return(0,r.jsxs)("section",{"aria-labelledby":"court-order-heading",children:[b,(0,r.jsx)("div",{className:"mx-auto mt-4 max-w-xl",children:(0,r.jsx)("div",{className:"aspect-[3/4] w-full animate-pulse rounded-lg border border-gray-200 bg-gray-100 motion-reduce:animate-none dark:border-gray-700 dark:bg-gray-800"})})]});let x=null!==(t=o.page_count)&&void 0!==t?t:0,_=x>0;return(0,r.jsxs)("section",{"aria-labelledby":"court-order-heading",children:[b,(0,r.jsx)("div",{className:"mx-auto mt-4 max-w-xl space-y-6",children:Array.from({length:s?x>0?x:g:x>0?x:1}).map((e,t)=>(0,r.jsx)(U,{index:t,pageNumber:t+1,hasBlur:_,verified:s,verifying:u,eager:0===t,onView:w,loadUrls:h},t))})]})},R=e=>{let{title:t,children:n}=e;return(0,r.jsxs)("section",{className:"border-t border-gray-100 pt-8 dark:border-gray-800",children:[t&&(0,r.jsx)("h2",{className:"mb-5 text-lg font-semibold text-gray-900 dark:text-white",children:t}),n]})},B=()=>(0,r.jsxs)("div",{className:"mx-auto w-full max-w-3xl animate-pulse space-y-8 motion-reduce:animate-none",children:[(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"h-8 w-2/3 rounded bg-gray-200 dark:bg-gray-700"}),(0,r.jsx)("div",{className:"h-4 w-1/3 rounded bg-gray-100 dark:bg-gray-800"})]}),(0,r.jsx)("div",{className:"h-24 rounded bg-gray-100 dark:bg-gray-800"}),(0,r.jsx)("div",{className:"h-40 rounded bg-gray-100 dark:bg-gray-800"})]});var J=e=>{let{courtFiling:t,isUnauthenticated:n,headerActions:a}=e;if(void 0==t)return(0,r.jsx)(B,{});let l=y(t);return(0,r.jsxs)("div",{className:"mx-auto w-full max-w-3xl space-y-8",children:[(0,r.jsx)(f,{courtFiling:t,actions:a}),l.length>0&&(0,r.jsx)(R,{title:"Timeline",children:(0,r.jsx)(h,{events:l})}
1),(0,r.jsx)(R,{title:"Case details",children:(0,r.jsx)(v,{courtFiling:t})}),(0,r.jsx)(R,{title:"Parties involved",children:(0,r.jsx)(z,{courtFiling:t})}),(0,r.jsx)(R,{children:(0,r.jsx)(E,{courtFilingId:t.id})})]})}},81683:function(e,t,n){n.d(t,{Av:function(){return p},D8:function(){return s},Q1:function(){return h},S1:function(){return f},WQ:function(){return i},kH:function(){return y},kJ:function(){return b},oQ:function(){return w}});var r=n(79011),a=n(98074),l=n(70465),o=n(1604);o.z.object({tenant_names:o.z.array(o.z.string()).default([]),landlord_names:o.z.array(o.z.string()).default([]),tags:o.z.array(o.z.string()).default([]),landlord_legal_rep_name:o.z.string().nullable().optional(),tenant_legal_rep_name:o.z.string().nullable().optional(),adjudicator_name:o.z.string().nullable().optional(),full_address:o.z.string().nullable().optional(),address_1:o.z.string().nullable().optional(),address_2:o.z.string().nullable().optional(),city:o.z.string().nullable().optional(),postal_code:o.z.string().nullable().optional(),province:o.z.string().nullable().optional(),country:o.z.string().nullable().optional(),uploader_email:o.z.string().nullable().optional(),submission_type:o.z.string().nullable().optional(),reasoning:o.z.string().nullable().optional(),state:o.z.string().default("pending"),amount_owed:o.z.number().nullable().optional(),damages:o.z.number().nullable().optional(),monthly_rent:o.z.number().nullable().optional(),reference_id:o.z.string().nullable().optional(),upload_timestamp:o.z.number().nullable().optional(),issued_date:o.z.string().nullable().optional(),meeting_date:o.z.string().nullable().optional(),sheriff_call_date:o.z.string().nullable().optional(),first_non_payment_date:o.z.string().nullable().optional(),dismissed:o.z.boolean().nullable().optional(),content_type:o.z.string().nullable().optional(),daily_compensation_start_date:o.z.string().nullable().optional(),interest_rate:o.z.number().nullable().optional(),vacated_date:o.z.string().nullable().optional(),tenancy_terminated_date:o.z.string().nullable().optional()}).extend({id:o.z.string().optional(),created_at:o.z.string().optional(),updated_at:o.z.string().optional(),free_tier_search:o.z.string().nullable().optional()}),o.z.object({id:o.z.string(),tenant_names:o.z.array(o.z.string()),landlord_names:o.z.array(o.z.string()),tags:o.z.array(o.z.string()),landlord_legal_rep_name:o.z.string().nullable().optional(),tenant_legal_rep_name:o.z.string().nullable().optional(),adjudicator_name:o.z.string().nullable().optional(),full_address:o.z.string().nullable().optional(),address_1:o.z.string().nullable().optional(),address_2:o.z.string().nullable().optional(),city:o.z.string().nullable().optional(),postal_code:o.z.string().nullable().optional(),province:o.z.string().nullable().optional(),country:o.z.string().nullable().optional(),submission_type:o.z.string().nullable().optional(),reasoning:o.z.string().nullable().optional(),state:o.z.string().default("pending"),amount_owed:o.z.number().nullable().optional(),damages:o.z.number().nullable().optional(),monthly_rent:o.z.number().nullable().optional(),reference_id:o.z.string().nullable().optional(),external_link:o.z.string().nullable().optional(),upload_timestamp:o.z.number().nullable().optional(),issued_date:o.z.string().nullable().optional(),meeting_date:o.z.string().nullable().optional(),sheriff_call_date:o.z.string().nullable().optional(),dismissed:o.z.boolean().nullable().optional(),content_type:o.z.string().nullable().optional(),daily_compensation_start_date:o.z.string().nullable().optional(),interest_rate:o.z.number().nullable().optional(),vacated_date:o.z.string().nullable().optional(),tenancy_terminated_date:o.z.string().nullable().optional(),matched_terms:o.z.array(o.z.string()).default([])});let i=e=>null===e?async()=>{let e=await (0,r.wt)({endpoint:"/court-filing/?limit=10"});return await (0,a.df)(e.rle_compressed)}:async()=>{let t=await (0,r.wt)({endpoint:"/court-filing/v3/?".concat(e)});return await (0,a.df)(t.rle_compressed)},s=e=>async()=>(0,r.wt)({endpoint:"/court-filing/".concat(e)}),c={dismissed:"Dismissed",landlord_filed:"Filed by Landlord",tenant_filed:"Filed by Tenant",mediated:"Mediated Settlement","review order":"Review Order",l1:"Non-payment of Rent",l2:"End Tenancy",l3:"End Tenancy after Agreement",l4:"Breach of Agreement",l8:"Employee or Superintendent Tenancy",l9:"Rent Owing After Tenant Notice",l10:"Money Owing by Former Tenant",t1:"Tenant Rebate",t2:"Tenant Rights",t3:"Rent Reduction",t4:"Maintenance",t5:"Bad Faith Eviction",t6:"Maintenance",n4:"Non-payment of Rent",n5:"Disruption","n5 reason 1":"Damage","n5 reason 2":"Interference or Overcrowding",n6:"Illegal Act","n6 reason 1":"Illegal Act","n6 reason 2":"Misrepresentation of Income","n6 reason 3":"Other Illegal Act",n7:"Serious Problems","n7 reason 1":"Serious Damage","n7 reason 2":"Impaired Safety","n7 reason 4":"Illegal Drug Production",n8:"End tenancy at end of term","n8 reason 1":"Persistent Late Payment","n8 reason 4":"Employment Ended",n11:"Mutual Agreement to End Tenancy",n12:"Personal Use","n12 reason 1":"Personal Use",n13:"Demolition, Conversion, or Major Repairs","n13 reason 1":"Renovation or Repair"},u={n4:"l1",n8:"l8",n12:"t5"},d=new Set(["n5","n6","n7","n8","n12","n13"]),g=/^n\d+ reason \d+$/,m=(()=>{let e={};for(let[n,r]of Object.entries(c)){var t;g.test(n)||(null!==(t=e[r])&&void 0!==t?t:e[r]=[]).push(n)}let n={};for(let t of Object.values(e))for(let e of t)n[e]=t.filter(t=>t!==e);return n})();function p(e){let t=new Set(e);for(let r of e){var n;let e=/^(n\d+) reason \d+$/.exec(r);for(let a of(e&&t.add(e[1]),r in u&&t.add(u[r]),d.has(r)&&t.add("l2"),null!==(n=m[r])&&void 0!==n?n:[]))t.add(a)}return[...t]}function f(e){let t=new Set(e);for(let e of Object.keys(u))t.has(e)&&t.delete(u[e]);for(let e of([...d].some(e=>t.has(e))&&t.delete("l2"),[...t])){let n=/^(n\d+) reason \d+$/.exec(e);n&&t.delete(n[1])}return[...t]}let y=e=>{var t;return null!==(t=c[e])&&void 0!==t?t:(0,l.Vl)(e)},h=(()=>{let e=new Set,t=[];for(let[n,r]of Object.entries(c))!g.test(n)&&(e.has(r)||(e.add(r),t.push({value:n,label:r})));return t})(),w=c,b=()=>async()=>(0,r.wt)({endpoint:"/general-stats"})},79011:function(e,t,n){n.d(t,{$Y:function(){return p},BO:function(){return f},LP:function(){return o},Nq:function(){return g},QH:function(){return l},U2:function(){return i},ZM:function(){return d},gK:function(){return u},rO:function(){return m},ty:function(){return s},wt:function(){return c},yu:function(){return y}});var r=n(90659),a=n(24546);let l=e=>"https://api.openroom.ca"+e,o=async()=>(await r.g.currentSession()).getIdToken().getJwtToken(),i=e=>fetch("https://api.openroom.ca"+e),s=(e,t)=>fetch("https://api.openroom.ca"+e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),c=async e=>{let t,{endpoint:n,_headers:l}=e;try{t=(await r.g.currentSession()).getIdToken().getJwtToken()}catch(e){window.location.replace(window.location.origin);return}let o={Authorization:"Bearer ".concat(t),"Content-Type":"application/json",...void 0===l?{}:l},i=window.localStorage.getItem(a.d.AS);i&&(o["X-AS"]=i);let s=await fetch("https://api.openroom.ca"+n,{method:"GET",headers:o});if(!s.ok)throw Error("Network response was not ok");return 401==s.status&&window.location.replace(window.location.origin),s.json()},u=async e=>{let t,{endpoint:n,payload:l,_headers:o}=e;try{t=(await r.g.currentSession()).getIdToken().getJwtToken()}catch(e){window.location.replace(window.location.origin);return}let i={Authorization:"Bearer ".concat(t),"Content-Type":"application/json",...o},s=window.localStorage.getItem(a.d.AS);s&&(i["X-AS"]=s);let c={method:"PUT",headers:i};return void 0!=l&&(c.body=JSON.stringify(l)),(await fetch("https://api.openroom.ca"+n,c)).json()},d=async e=>{let t,{endpoint:n,payload:l,_headers:o}=e;try{t=(await r.g.currentSession()).getIdToken().getJwtToken()}catch(e){window.location.replace(window.location.origin);return}let i={Authorization:"Bearer ".concat(t),"Content-Type":"application/json",...o},s=window.localStorage.getItem(a.d.AS);s&&(i["X-AS"]=s);let c={method:"PATCH",headers:i};return void 0!=l&&(c.body=JSON.stringify(l)),(await fetch("https://api.openroom.ca"+n,c)).json()},g=async e=>{let t,{endpoint:n,payload:l,_headers:o}=e;try{t=(await r.g.currentSession()).getIdToken().getJwtToken()}catch(e){window.location.replace(window.location.origin);return}let i={Authorization:"Bearer ".concat(t),"Content-Type":"application/json",...o},s=window.localStorage.getItem(a.d.AS);s&&(i["X-AS"]=s);let c={method:"DELETE",headers:i};return void 0!=l&&(c.body=JSON.stringify(l)),(await fetch("https://api.openroom.ca"+n,c)).json()},m=async e=>{let t,{endpoint:n,file:l,_headers:o}=e,i=new FormData;i.append("file",l);try{t=(await r.g.currentSession()).getIdToken().getJwtToken()}catch(e){window.location.replace(window.location.origin);return}let s={Authorization:"Bearer ".concat(t),...o},c=window.localStorage.getItem(a.d.AS);return c&&(s["X-AS"]=c),(await fetch("https://api.openroom.ca"+n,{method:"PUT",headers:s,body:i})).json()},p=async e=>{let t,{endpoint:n,files:l,_headers:o}=e,i=new FormData;for(let e in l)i.append(e,l[e]);try{t=(await r.g.currentSession()).getIdToken().getJwtToken()}catch(e){window.location.replace(window.location.origin);return}let s={Authorization:"Bearer ".concat(t),...o},c=window.localStorage.getItem(a.d.AS);return c&&(s["X-AS"]=c),(await fetch("https://api.openroom.ca"+n,{method:"POST",headers:s,body:i})).json()},f=async e=>{let{endpoint:t,payload:n,_headers:l}=e;try{let e;try{e=(await r.g.currentSession()).getIdToken().getJwtToken()}catch(e){window.location.replace(window.location.origin);return}let o={Authorization:"Bearer ".concat(e),"Content-Type":"application/json",...l},i=window.localStorage.getItem(a.d.AS);i&&(o["X-AS"]=i);let s=await fetch("https://api.openroom.ca"+t,{method:"POST",headers:o,body:JSON.stringify(n)});if(!s.ok){let e=await s.json();throw Error(e.message||"API error")}return s.json()}catch(e){throw console.error("Error in authPostJSON:",e),e}},y=async e=>{let t,{endpoint:n,file:l,_headers:o}=e,i=new FormData;i.append("file",l);try{t=(await r.g.currentSession()).getIdToken().getJwtToken()}catch(e){window.location.replace(window.location.origin);return}let s={Authorization:"Bearer ".concat(t),...o},c=window.localStorage.getItem(a.d.AS);return c&&(s["X-AS"]=c),(await fetch("https://api.openroom.ca"+n,{method:"POST",headers:s,body:i})).json()}},98074:function(e,t,n){n.d(t,{yR:function(){return u},QU:function(){return d},df:function(){return m},Nf:function(){return s},i2:function(){return c},Af:function(){return g}});var r=n(27885);async function a(e,t){let n=crypto.getRandomValues(new Uint8Array(16)),r=await crypto.subtle.importKey("raw",new Uint8Array(t),{name:"AES-CBC"},!1,["encrypt"]),a=await crypto.subtle.encrypt({name:"AES-CBC",iv:n},r,e),l=new Uint8Array(n.length+a.byteLength);return l.set(n),l.set(new Uint8Array(a),n.length),l}async function l(e,t){let n=new TextEncoder().encode(e),l=function(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n]>>1|(1&e[n])<<7;return t}(r.ZP.gzip(n)),o=Uint8Array.from(atob(t),e=>e.charCodeAt(0));return btoa(String.fromCharCode(...await a(l,o)))}var o=n(17744),i=n(95638);async function s(e){let t=new Date().getTime(),n=await (0,i.T$)(Math.floor(t/1e3/1e4));return await l(JSON.stringify(e),n)}async function c(e){let t=await (0,i.T$)(0);return encodeURIComponent(await l(JSON.stringify(e),t))}async function u(e){let t=new Date().getTime(),n=await (0,i.T$)(Math.floor(t/1e3/1e4));return(0,i.x6)(e,n)}async function d(e){let t=await (0,i.T$)(0);return(0,i.x6)(decodeURIComponent(e),t)}async function g(e){let t=(0,o.z)(),n=await (0,i.T$)(t);return l(JSON.stringify(e),n)}async function m(e){let t=(0,o.z)();try{let n=await (0,i.T$)(t);return await (0,i.x6)(e,n)}catch(r){let n=await (0,i.T$)(t-1);return await (0,i.x6)(e,n)}}},17744:function(e,t,n){n.d(t,{z:function(){return r}});function r(){return Math.floor(new Date().getTime()/36e6)}},70465:function(e,t,n){n.d(t,{$G:function(){return r},$_:function(){return u},AF:function(){return f},Be:function(){return w},H8:function(){return g},Jx:function(){return h},SC:function(){return s},Vl:function(){return o},Wx:function(){return c},_6:function(){return l},_M:function(){return b},bo:function(){return i},cF:function(){return _},jH:function(){return y},kC:function(){return a},sH:function(){return p},tp:function(){return d},uL:function(){return x},yh:function(){return m}});let r=(e,t)=>null==e?"":null!==t&&e.length>t?e.substring(0,t-3)+"...":e;function a(e){return e.slice(0,1).toUpperCase()+e.slice(1)}function l(e,t,n){return n>1?t:e}function o(e){return e.replaceAll("_"," ").replace(/(^\w{1})|(\s+\w{1})/g,e=>e.toUpperCase())}function i(e){return new Date(e+"Z").toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}
1function s(e){return new Date(e).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric"})}function c(e){let t=new Date(e);return new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).format(t)}function u(e){return new Date(e).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}function d(e){return Intl.NumberFormat("en",{style:"currency",currency:"USD",compactDisplay:"long"},{}).format(e)}function g(e){return null==e?"-":Intl.NumberFormat("en",{style:"currency",currency:"USD",compactDisplay:"long"},{}).format(Math.round(e)/100)}function m(e){return(Math.round(e)/100).toPrecision(3)+" %"}function p(e){return Intl.NumberFormat("en",{},{}).format(e)}let f=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function y(e){return null==e||""===e}function h(e){return e.replace("-","_")}function w(e,t){return y(e)?t:e}function b(e,t){return e.startsWith(t)?e.slice(t.length):e}function x(e){return"number"==typeof e?String(e):"string"==typeof e?e:""}function _(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.trim().split(/\s+/),r="",a="",l="";return 1===n.length?r=n[0]:2===n.length?[r,l]=n:(r=n[0],l=n[n.length-1],a=n.slice(1,-1).join(" "),t||(l="".concat(a," ").concat(l).trim(),a="")),{first_name:r,middle_name:a,last_name:l}}},95638:function(e,t,n){n.d(t,{Kp:function(){return s},T$:function(){return i},x6:function(){return o}});var r=n(27885);async function a(e,t){let n=e.slice(0,16),r=e.slice(16),a=await crypto.subtle.importKey("raw",t,{name:"AES-CBC"},!1,["decrypt"]),l=await crypto.subtle.decrypt({name:"AES-CBC",iv:n},a,r);return new Uint8Array(l)}function l(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=(e[n]<<1|e[n]>>7)&255;return t}async function o(e,t){try{let n=Uint8Array.from(atob(e),e=>e.charCodeAt(0)),o=Uint8Array.from(atob(t),e=>e.charCodeAt(0)),i=await a(n,o),s=l(i),c=r.ZP.ungzip(s),u=new TextDecoder("utf-8").decode(c);return JSON.parse(u)}catch(e){throw e}}async function i(e){let t=new Uint8Array(4);t[0]=e>>24&255,t[1]=e>>16&255,t[2]=e>>8&255,t[3]=255&e;let n=await window.crypto.subtle.digest("SHA-256",t);return btoa(Array.from(new Uint8Array(n).slice(0,16),e=>("0"+(255&e).toString(16)).slice(-2)).join("").slice(0,16))}async function s(e,t){try{let n=Uint8Array.from(atob(e),e=>e.charCodeAt(0)),o=Uint8Array.from(atob(t),e=>e.charCodeAt(0)),i=await a(n,o),s=l(i),c=r.ZP.ungzip(s),u=new TextDecoder("utf-8").decode(c);return JSON.parse(u)}catch(e){throw e}}}}]);

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.