\n Lease #{lease.serial_num}\n
\n \n\n ${[`${lease.price.toFixed()}`, lease.price_footage].join(\" / \")} ft.\n
\n\n \n {lease.customer?.name}\n \n {#if lease.customer}\n
Balance:
\n\n {numberToCurrency(lease.customer.balance)}\n
\n\n Unit #{unit.name}\n
\n \n\n ${[`${storageUnit.price}`, storageUnit.priceDuration]\n .filter((s) => s)\n .join(\" / \")}\n
\n\n \n {storageUnit.customer?.name ?? \"???\"}\n \n
\n {/if}\n {#if storageUnit.auctionDate}\nAuction date:
\n\n {new Date(storageUnit.auctionDate).toLocaleDateString()}\n
\nBalance:
\n\n {numberToCurrency(storageUnit.customer.balance)}\n
\n\n \n {storageUnit.customer?.name ?? \"???\"}\n \n {#if storageUnit.scheduledMoveOut}\n
Scheduled move out:
\n\n {new Date(storageUnit.scheduledMoveOut).toLocaleDateString()}\n
\nBalance:
\n\n {numberToCurrency(storageUnit.customer.balance)}\n
\nError
\n\n {loadError}\n
\nSite map loading...
\nSite map loading...
\n{:else if status == \"ready\"}\nError: {loadError}
\n{/if}\n","import { Controller } from \"@hotwired/stimulus\"\nimport SiteMapEditor from \"../components/site_map/SiteMapEditor.svelte\"\n\nexport default class extends Controller {\n static values = {\n siteMapId: String,\n }\n\n connect() {\n this.siteMapEditor = new SiteMapEditor({\n target: this.element,\n props: {\n siteMapId: this.siteMapIdValue\n }\n })\n }\n\n disconnect() {\n this.siteMapEditor.$destroy()\n }\n}\n","import SiteMapViewer from \"@/components/site_map/SiteMapViewer.svelte\"\nimport { Controller } from \"@hotwired/stimulus\"\nimport { getSiteMap, getSiteMapUnitStatuses } from \"@/api/site_maps\"\n\nexport default class extends Controller {\n static values = {\n siteMapId: String,\n }\n\n connect() {\n this.siteMapViewer = new SiteMapViewer({\n props: {\n getSiteMap,\n getUnitStatuses: getSiteMapUnitStatuses,\n shouldShowCustomerPopover: true,\n siteMapId: this.siteMapIdValue,\n },\n target: this.element,\n })\n }\n\n disconnect() {\n this.siteMapViewer.$destroy()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n focus(e) {\n const focusedTag = document.activeElement.tagName.toLowerCase()\n if (focusedTag !== \"input\" && focusedTag !== \"textarea\") {\n e.preventDefault()\n this.element.focus()\n }\n }\n}\n","/**!\n * Sortable 1.15.2\n * @author\tRubaXa