@seatlayer/core 0.71.5 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{categoryInventory-r3OfIEQn.d.cts → categoryInventory-BU1j8Q70.d.cts} +1 -1
- package/dist/{categoryInventory-B8CDQtH4.d.ts → categoryInventory-Bt-0psga.d.ts} +1 -1
- package/dist/chunk-4V5WYN6O.js +1 -0
- package/dist/{chunk-LR7WIR5Z.js → chunk-ALE2T36W.js} +1 -1
- package/dist/chunk-BLPBTW6I.js +1 -0
- package/dist/{chunk-GXMGOWKB.js → chunk-FMZ6HLDH.js} +1 -1
- package/dist/chunk-HXYWP6NX.js +1 -0
- package/dist/chunk-JBOTRSMY.js +1 -0
- package/dist/{chunk-MR2O5WC7.js → chunk-O5UWBFUT.js} +1 -1
- package/dist/chunk-YW2WGLRM.js +1 -0
- package/dist/chunk-ZOXZWPTL.js +1 -0
- package/dist/core/chart-ops/index.cjs +1 -1
- package/dist/core/chart-ops/index.d.cts +38 -9
- package/dist/core/chart-ops/index.d.ts +38 -9
- package/dist/core/chart-ops/index.js +1 -1
- package/dist/core/color.cjs +1 -1
- package/dist/core/color.d.cts +4 -1
- package/dist/core/color.d.ts +4 -1
- package/dist/core/color.js +1 -1
- package/dist/core/inventory/index.cjs +1 -1
- package/dist/core/inventory/index.d.cts +15 -5
- package/dist/core/inventory/index.d.ts +15 -5
- package/dist/core/inventory/index.js +1 -1
- package/dist/core/layout/index.d.cts +6 -6
- package/dist/core/layout/index.d.ts +6 -6
- package/dist/core/quality/index.cjs +1 -1
- package/dist/core/quality/index.d.cts +3 -3
- package/dist/core/quality/index.d.ts +3 -3
- package/dist/core/quality/index.js +1 -1
- package/dist/core/render-assets/index.cjs +1 -1
- package/dist/core/render-assets/index.d.cts +1 -1
- package/dist/core/render-assets/index.d.ts +1 -1
- package/dist/core/render-assets/index.js +1 -1
- package/dist/core/seatConfidence.d.cts +1 -1
- package/dist/core/seatConfidence.d.ts +1 -1
- package/dist/core/sections/index.d.cts +7 -7
- package/dist/core/sections/index.d.ts +7 -7
- package/dist/{eventConfigurations-ByU_uPeS.d.cts → eventConfigurations-3uSorYVC.d.cts} +1 -1
- package/dist/{eventConfigurations-0OC43JJY.d.ts → eventConfigurations-DfVUGyCg.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +1 -1
- package/dist/{labeling-DAGq3u0z.d.cts → labeling-9RWWmJhZ.d.cts} +1 -1
- package/dist/{labeling-B05IJwd2.d.ts → labeling-BiWB-8aq.d.ts} +1 -1
- package/dist/{layout-e0Qe7jmM.d.cts → layout-B6iOoPOv.d.cts} +3 -3
- package/dist/{layout-DkDRcXvu.d.ts → layout-B7URbtDR.d.ts} +3 -3
- package/dist/{renderedQuality-BaejczsK.d.cts → renderedQuality-BZsq3wDe.d.cts} +1 -1
- package/dist/{renderedQuality-BwwrqYzX.d.ts → renderedQuality-C5dQiq97.d.ts} +1 -1
- package/dist/{renderer-BNicx5sw.d.ts → renderer-6sFRupj0.d.ts} +2 -2
- package/dist/{renderer-Duv1HhQg.d.cts → renderer-CBOo1OZk.d.cts} +2 -2
- package/dist/{sections-CrX4vq-m.d.ts → sections-Cn_sk1Sx.d.ts} +1 -1
- package/dist/{sections-BjGjR21N.d.cts → sections-DU6YDYoZ.d.cts} +1 -1
- package/dist/{segmentedRowModel-UO_YIQRB.d.cts → segmentedRowModel-CKmyHvKv.d.cts} +1 -1
- package/dist/{segmentedRowModel-BOO8w9Ng.d.ts → segmentedRowModel-DbP7pWUk.d.ts} +1 -1
- package/dist/{ticketRestrictions-dvlNTwem.d.ts → ticketRestrictions-CvS2oQ8v.d.ts} +2 -2
- package/dist/{ticketRestrictions-DUQrKTpS.d.cts → ticketRestrictions-DkenahW2.d.cts} +2 -2
- package/dist/{types-0yruRsAj.d.cts → types-D6-wLa-m.d.cts} +200 -20
- package/dist/{types-0yruRsAj.d.ts → types-D6-wLa-m.d.ts} +200 -20
- package/dist/view3d/crossfade/panorama.d.cts +1 -1
- package/dist/view3d/crossfade/panorama.d.ts +1 -1
- package/dist/view3d/index.cjs +27 -27
- package/dist/view3d/index.d.cts +3 -3
- package/dist/view3d/index.d.ts +3 -3
- package/dist/view3d/index.js +1 -1
- package/dist/view3d/scene/scene.worker.cjs +1 -1
- package/dist/view3d/scene/scene.worker.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-7KS6TAYH.js +0 -1
- package/dist/chunk-CXF32VPG.js +0 -1
- package/dist/chunk-JBGLFOJO.js +0 -1
- package/dist/chunk-NXFDYBZY.js +0 -1
- package/dist/chunk-SKO3DCVB.js +0 -1
- package/dist/chunk-T2LWVOQ3.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as Point, C as ChartDoc, R as RowObject } from '../../types-
|
|
2
|
-
import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-
|
|
3
|
-
export { C as CATEGORY_INVENTORY_FAMILIES, a as CategoryInventoryClone, b as CategoryInventoryConflict, c as CategoryInventoryFamily, d as CategoryInventoryFamilyUsage, e as CategoryInventoryObjectType, f as CategoryInventoryReassignment, g as CategoryInventoryRemediationChange, h as CategoryInventoryRemediationResult, i as CategoryInventoryTarget, j as describeCategoryInventoryConflict, k as effectiveSeatOwnerCategoryCounts, l as inspectCategoryInventoryConflicts, r as remediateCategoryInventoryConflicts } from '../../categoryInventory-
|
|
4
|
-
export { C as CompanionSelectionIssue, M as MAX_EVENT_INVENTORY, a as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, T as TicketOptionApplicabilityIssue, b as TicketSelection, c as TicketSelectionIssue, d as TicketTierResolution, e as applicableTicketTiers, f as companionSelectionIssue, g as gaAreasOf, h as gaInventorySegments, i as gaUnitLabel, j as gaUnitLabels, k as growJoinedGAInventory, l as isGaUnitLabel, r as resolveTicketTierForSeat, t as ticketOptionNotApplicableIssue, m as ticketSelectionIssue, n as ticketTierAppliesToSeat, v as validGAInventorySegments } from '../../ticketRestrictions-
|
|
1
|
+
import { P as Point, C as ChartDoc, R as RowObject } from '../../types-D6-wLa-m.cjs';
|
|
2
|
+
import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-CBOo1OZk.cjs';
|
|
3
|
+
export { C as CATEGORY_INVENTORY_FAMILIES, a as CategoryInventoryClone, b as CategoryInventoryConflict, c as CategoryInventoryFamily, d as CategoryInventoryFamilyUsage, e as CategoryInventoryObjectType, f as CategoryInventoryReassignment, g as CategoryInventoryRemediationChange, h as CategoryInventoryRemediationResult, i as CategoryInventoryTarget, j as describeCategoryInventoryConflict, k as effectiveSeatOwnerCategoryCounts, l as inspectCategoryInventoryConflicts, r as remediateCategoryInventoryConflicts } from '../../categoryInventory-BU1j8Q70.cjs';
|
|
4
|
+
export { C as CompanionSelectionIssue, M as MAX_EVENT_INVENTORY, a as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, T as TicketOptionApplicabilityIssue, b as TicketSelection, c as TicketSelectionIssue, d as TicketTierResolution, e as applicableTicketTiers, f as companionSelectionIssue, g as gaAreasOf, h as gaInventorySegments, i as gaUnitLabel, j as gaUnitLabels, k as growJoinedGAInventory, l as isGaUnitLabel, r as resolveTicketTierForSeat, t as ticketOptionNotApplicableIssue, m as ticketSelectionIssue, n as ticketTierAppliesToSeat, v as validGAInventorySegments } from '../../ticketRestrictions-DkenahW2.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Best-available seat selection — a PURE, fully unit-testable ranking function.
|
|
@@ -173,9 +173,19 @@ interface RowCapacityProposal {
|
|
|
173
173
|
* excluded because redistributing their fixed path would move every identity.
|
|
174
174
|
*/
|
|
175
175
|
declare function rowWithTerminalCapacity(row: RowObject, seatCount: number): RowObject | null;
|
|
176
|
+
/**
|
|
177
|
+
* Change capacity from the row's start while keeping every surviving physical
|
|
178
|
+
* seat in place. The origin and bearing advance (or retreat) along the same
|
|
179
|
+
* straight/curved centreline, and per-seat metadata follows its physical seat.
|
|
180
|
+
*/
|
|
181
|
+
declare function rowWithStartCapacity(row: RowObject, seatCount: number): RowObject | null;
|
|
176
182
|
declare function rowTerminalEndpoint(row: RowObject, seatCount?: number): Point | null;
|
|
183
|
+
/** Exact location of the start-edge handle for a proposed capacity. */
|
|
184
|
+
declare function rowStartEndpoint(row: RowObject, seatCount?: number): Point | null;
|
|
177
185
|
/** Deterministically choose the terminal count whose exact endpoint is nearest the pointer. */
|
|
178
186
|
declare function resolveRowTerminalCapacity(row: RowObject, pointer: Point): RowCapacityProposal | null;
|
|
187
|
+
/** Deterministically choose the start-edge count nearest the pointer. */
|
|
188
|
+
declare function resolveRowStartCapacity(row: RowObject, pointer: Point): RowCapacityProposal | null;
|
|
179
189
|
|
|
180
190
|
type ClientInventoryModelVersion = 1 | 2;
|
|
181
191
|
type GroupedTableBookingMode = 'whole' | 'variable';
|
|
@@ -206,4 +216,4 @@ declare class GroupedTableProjectionError extends Error {
|
|
|
206
216
|
*/
|
|
207
217
|
declare function groupedTableInventory(doc: ChartDoc, modelVersion: ClientInventoryModelVersion): GroupedTableInventoryUnit[];
|
|
208
218
|
|
|
209
|
-
export { type AtomicTableCandidate, type BestAvailableOpts, type BestAvailableReason, type BestAvailableResult, type CapacityControl, type CapacityPresetSize, type ClientInventoryModelVersion, type GroupedTableBookingMode, type GroupedTableInventoryUnit, GroupedTableProjectionError, MAX_DIRECT_ROW_SWEEP, MAX_ROW_BLOCK_ROWS, MAX_ROW_SEATS, MIN_ROW_BLOCK_ROWS, MIN_ROW_SEATS, type RowBlockCountProposal, type RowCapacityProposal, capacityControl, categoryCapacity, chartCapacity, groupedTableInventory, intactRowBlockMembers, pickBestAvailable, pickBestAvailableInventory, resizeChartCapacity, resolveRowBlockCount, resolveRowTerminalCapacity, rowBlockEdgePoint, rowBlockPreviewRows, rowTerminalEndpoint, rowWithTerminalCapacity, strandedSingles };
|
|
219
|
+
export { type AtomicTableCandidate, type BestAvailableOpts, type BestAvailableReason, type BestAvailableResult, type CapacityControl, type CapacityPresetSize, type ClientInventoryModelVersion, type GroupedTableBookingMode, type GroupedTableInventoryUnit, GroupedTableProjectionError, MAX_DIRECT_ROW_SWEEP, MAX_ROW_BLOCK_ROWS, MAX_ROW_SEATS, MIN_ROW_BLOCK_ROWS, MIN_ROW_SEATS, type RowBlockCountProposal, type RowCapacityProposal, capacityControl, categoryCapacity, chartCapacity, groupedTableInventory, intactRowBlockMembers, pickBestAvailable, pickBestAvailableInventory, resizeChartCapacity, resolveRowBlockCount, resolveRowStartCapacity, resolveRowTerminalCapacity, rowBlockEdgePoint, rowBlockPreviewRows, rowStartEndpoint, rowTerminalEndpoint, rowWithStartCapacity, rowWithTerminalCapacity, strandedSingles };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as Point, C as ChartDoc, R as RowObject } from '../../types-
|
|
2
|
-
import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-
|
|
3
|
-
export { C as CATEGORY_INVENTORY_FAMILIES, a as CategoryInventoryClone, b as CategoryInventoryConflict, c as CategoryInventoryFamily, d as CategoryInventoryFamilyUsage, e as CategoryInventoryObjectType, f as CategoryInventoryReassignment, g as CategoryInventoryRemediationChange, h as CategoryInventoryRemediationResult, i as CategoryInventoryTarget, j as describeCategoryInventoryConflict, k as effectiveSeatOwnerCategoryCounts, l as inspectCategoryInventoryConflicts, r as remediateCategoryInventoryConflicts } from '../../categoryInventory-
|
|
4
|
-
export { C as CompanionSelectionIssue, M as MAX_EVENT_INVENTORY, a as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, T as TicketOptionApplicabilityIssue, b as TicketSelection, c as TicketSelectionIssue, d as TicketTierResolution, e as applicableTicketTiers, f as companionSelectionIssue, g as gaAreasOf, h as gaInventorySegments, i as gaUnitLabel, j as gaUnitLabels, k as growJoinedGAInventory, l as isGaUnitLabel, r as resolveTicketTierForSeat, t as ticketOptionNotApplicableIssue, m as ticketSelectionIssue, n as ticketTierAppliesToSeat, v as validGAInventorySegments } from '../../ticketRestrictions-
|
|
1
|
+
import { P as Point, C as ChartDoc, R as RowObject } from '../../types-D6-wLa-m.js';
|
|
2
|
+
import { E as ExpandedSeat, S as SeatStatus } from '../../renderer-6sFRupj0.js';
|
|
3
|
+
export { C as CATEGORY_INVENTORY_FAMILIES, a as CategoryInventoryClone, b as CategoryInventoryConflict, c as CategoryInventoryFamily, d as CategoryInventoryFamilyUsage, e as CategoryInventoryObjectType, f as CategoryInventoryReassignment, g as CategoryInventoryRemediationChange, h as CategoryInventoryRemediationResult, i as CategoryInventoryTarget, j as describeCategoryInventoryConflict, k as effectiveSeatOwnerCategoryCounts, l as inspectCategoryInventoryConflicts, r as remediateCategoryInventoryConflicts } from '../../categoryInventory-Bt-0psga.js';
|
|
4
|
+
export { C as CompanionSelectionIssue, M as MAX_EVENT_INVENTORY, a as MAX_GA_CAPACITY, N as NotForSaleSelectionIssue, T as TicketOptionApplicabilityIssue, b as TicketSelection, c as TicketSelectionIssue, d as TicketTierResolution, e as applicableTicketTiers, f as companionSelectionIssue, g as gaAreasOf, h as gaInventorySegments, i as gaUnitLabel, j as gaUnitLabels, k as growJoinedGAInventory, l as isGaUnitLabel, r as resolveTicketTierForSeat, t as ticketOptionNotApplicableIssue, m as ticketSelectionIssue, n as ticketTierAppliesToSeat, v as validGAInventorySegments } from '../../ticketRestrictions-CvS2oQ8v.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Best-available seat selection — a PURE, fully unit-testable ranking function.
|
|
@@ -173,9 +173,19 @@ interface RowCapacityProposal {
|
|
|
173
173
|
* excluded because redistributing their fixed path would move every identity.
|
|
174
174
|
*/
|
|
175
175
|
declare function rowWithTerminalCapacity(row: RowObject, seatCount: number): RowObject | null;
|
|
176
|
+
/**
|
|
177
|
+
* Change capacity from the row's start while keeping every surviving physical
|
|
178
|
+
* seat in place. The origin and bearing advance (or retreat) along the same
|
|
179
|
+
* straight/curved centreline, and per-seat metadata follows its physical seat.
|
|
180
|
+
*/
|
|
181
|
+
declare function rowWithStartCapacity(row: RowObject, seatCount: number): RowObject | null;
|
|
176
182
|
declare function rowTerminalEndpoint(row: RowObject, seatCount?: number): Point | null;
|
|
183
|
+
/** Exact location of the start-edge handle for a proposed capacity. */
|
|
184
|
+
declare function rowStartEndpoint(row: RowObject, seatCount?: number): Point | null;
|
|
177
185
|
/** Deterministically choose the terminal count whose exact endpoint is nearest the pointer. */
|
|
178
186
|
declare function resolveRowTerminalCapacity(row: RowObject, pointer: Point): RowCapacityProposal | null;
|
|
187
|
+
/** Deterministically choose the start-edge count nearest the pointer. */
|
|
188
|
+
declare function resolveRowStartCapacity(row: RowObject, pointer: Point): RowCapacityProposal | null;
|
|
179
189
|
|
|
180
190
|
type ClientInventoryModelVersion = 1 | 2;
|
|
181
191
|
type GroupedTableBookingMode = 'whole' | 'variable';
|
|
@@ -206,4 +216,4 @@ declare class GroupedTableProjectionError extends Error {
|
|
|
206
216
|
*/
|
|
207
217
|
declare function groupedTableInventory(doc: ChartDoc, modelVersion: ClientInventoryModelVersion): GroupedTableInventoryUnit[];
|
|
208
218
|
|
|
209
|
-
export { type AtomicTableCandidate, type BestAvailableOpts, type BestAvailableReason, type BestAvailableResult, type CapacityControl, type CapacityPresetSize, type ClientInventoryModelVersion, type GroupedTableBookingMode, type GroupedTableInventoryUnit, GroupedTableProjectionError, MAX_DIRECT_ROW_SWEEP, MAX_ROW_BLOCK_ROWS, MAX_ROW_SEATS, MIN_ROW_BLOCK_ROWS, MIN_ROW_SEATS, type RowBlockCountProposal, type RowCapacityProposal, capacityControl, categoryCapacity, chartCapacity, groupedTableInventory, intactRowBlockMembers, pickBestAvailable, pickBestAvailableInventory, resizeChartCapacity, resolveRowBlockCount, resolveRowTerminalCapacity, rowBlockEdgePoint, rowBlockPreviewRows, rowTerminalEndpoint, rowWithTerminalCapacity, strandedSingles };
|
|
219
|
+
export { type AtomicTableCandidate, type BestAvailableOpts, type BestAvailableReason, type BestAvailableResult, type CapacityControl, type CapacityPresetSize, type ClientInventoryModelVersion, type GroupedTableBookingMode, type GroupedTableInventoryUnit, GroupedTableProjectionError, MAX_DIRECT_ROW_SWEEP, MAX_ROW_BLOCK_ROWS, MAX_ROW_SEATS, MIN_ROW_BLOCK_ROWS, MIN_ROW_SEATS, type RowBlockCountProposal, type RowCapacityProposal, capacityControl, categoryCapacity, chartCapacity, groupedTableInventory, intactRowBlockMembers, pickBestAvailable, pickBestAvailableInventory, resizeChartCapacity, resolveRowBlockCount, resolveRowStartCapacity, resolveRowTerminalCapacity, rowBlockEdgePoint, rowBlockPreviewRows, rowStartEndpoint, rowTerminalEndpoint, rowWithStartCapacity, rowWithTerminalCapacity, strandedSingles };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as it,b as st,c as ct,d as lt,e as ut,f as pt,g as ft,h as mt,i as yt,j as dt,k as ht}from"../../chunk-4F7VBQCF.js";import{a as bt,b as xt,c as Mt,d as gt,e as wt,f as B,h as N}from"../../chunk-ZOXZWPTL.js";import"../../chunk-FMZ6HLDH.js";import"../../chunk-HXYWP6NX.js";import{a as H,b as V,c as Z,d as tt,e as et,f as ot,g as rt,h as nt,i as at}from"../../chunk-AM2LRFAY.js";import"../../chunk-YW2WGLRM.js";import{l as R,ma as S,oa as v,pa as P,ra as j,sa as _,w as O,xa as I}from"../../chunk-KCFEFP6H.js";import"../../chunk-JBOTRSMY.js";import"../../chunk-CRCGO52K.js";function g(t){return t.floors?.length?t.floors.flatMap(e=>e.objects):t.objects}function k(t){return g(t).reduce((e,r)=>r.type==="row"?e+S(r):r.type==="table"?e+j(r):r.type==="gaArea"?e+Math.max(0,Math.floor(r.capacity)):r.type==="booth"?e+1:e,0)}function St(t){let e={};for(let o of t.categories??[])e[o.key]=0;let r=(o,n)=>{n>0&&(e[o]=(e[o]??0)+n)};for(let o of g(t))if(o.type==="row")for(let n of v(o))r(n.categoryKey,1);else if(o.type==="table")if(o.bookAsWhole||o.variableOccupancy)r(o.categoryKey,Math.max(0,Math.round(o.seatCount)));else for(let n of _(o))r(n.categoryKey,1);else o.type==="gaArea"?r(o.categoryKey,Math.max(0,Math.floor(o.capacity))):o.type==="booth"&&r(o.categoryKey,1);return e}function z(t){if(!t.template)return null;let e=g(t),r=e.filter(u=>u.type==="row"||u.type==="table"||u.type==="gaArea");if(!r.length)return null;let n=e.filter(u=>u.type==="booth").length+r.reduce((u,f)=>u+(f.type==="table"?2:1),0),i=k(t),c=Math.max(n+1,Math.min(5e4,i*4)),l=[.5,1,1.5,2].map(u=>O(Math.round(i*u),n,c));return{family:t.template.family,display:t.template.family.replace(/-/g," ").replace(/\b\w/g,u=>u.toUpperCase()),min:n,max:c,presets:["S","M","L","XL"].map((u,f)=>({size:u,seats:l[f]}))}}function A(t){let e=v(t);return e.length?R(e):{...t.origin}}function Pt(t,e){let r=z(t);if(!r)return structuredClone(t);let o=structuredClone(t),n=g(o),i=n.filter(a=>a.type==="row"||a.type==="table"||a.type==="gaArea"),c=n.filter(a=>a.type==="booth").length,l=Math.max(r.min,Math.min(r.max,Math.round(e))),u=l-c,f=i.map((a,s)=>{let m=a.type==="gaArea"?Math.max(0,Math.floor(a.capacity)):a.seatCount,x=a.type==="table"?2:1;return{object:a,index:s,current:m,minimum:x,value:x,fraction:0}}),K=f.reduce((a,s)=>a+s.minimum,0),w=Math.max(0,u-K),L=f.reduce((a,s)=>a+Math.max(1,s.current-s.minimum),0);for(let a of f){let s=w*Math.max(1,a.current-a.minimum)/L,m=Math.floor(s);a.value+=m,a.fraction=s-m}w=u-f.reduce((a,s)=>a+s.value,0),f.sort((a,s)=>s.fraction-a.fraction||a.index-s.index);for(let a=0;a<w;a++)f[a%f.length].value++;f.sort((a,s)=>a.index-s.index);for(let a of f)if(a.object.type==="row"){let s=A(a.object);a.object.seatCount=a.value;let m=A(a.object);a.object.origin.x+=s.x-m.x,a.object.origin.y+=s.y-m.y}else if(a.object.type==="table"){let s=a.object;if(s.seatCountsBySide){let m=["top","bottom","left","right"],x=P(s),F=m.reduce((p,y)=>p+x[y],0)||1,d=m.map((p,y)=>{let C=a.value*x[p]/F;return{side:p,index:y,value:Math.floor(C),fraction:C-Math.floor(C)}}),X=a.value-d.reduce((p,y)=>p+y.value,0);d.sort((p,y)=>y.fraction-p.fraction||p.index-y.index);for(let p=0;p<X;p++)d[p%d.length].value+=1;d.sort((p,y)=>p.index-y.index),s.seatCountsBySide={top:d[0].value,bottom:d[1].value,left:d[2].value,right:d[3].value},s.sides=m.filter(p=>s.seatCountsBySide[p]>0)}s.seatCount=a.value,s.overrides&&(s.overrides=s.overrides.filter(m=>m.index<a.value),s.overrides.length||delete s.overrides)}else a.object.capacity=a.value;return o.floors?.length&&(o.objects=o.floors[0].objects),o.template={family:o.template.family,targetSeats:l},o=N(o).doc,o.template={family:t.template.family,targetSeats:k(o)},o}var W=1,T=100;function J(t,e){if(!Number.isInteger(e)||e<W||e>T)return null;let r=t.rotation*Math.PI/180,o={x:Math.cos(r),y:Math.sin(r)},n={x:-o.y,y:o.x};return Array.from({length:e},(i,c)=>{let l=t.style==="intertwined"&&c%2===1?t.seatSpacing/2:0;return{type:"row",id:`__block_preview_${c}`,label:"",origin:{x:t.origin.x+n.x*c*t.rowGap+o.x*l,y:t.origin.y+n.y*c*t.rowGap+o.y*l},rotation:t.rotation,curve:t.curve,seatCount:t.seatsPerRow,seatSpacing:t.seatSpacing,categoryKey:"__preview__"}})}function G(t,e=t.rowCount){let r=J(t,e);return r?.length?I(r[r.length-1]):null}function It(t,e){if(!Number.isFinite(e.x)||!Number.isFinite(e.y)||t.rowGap<=0)return null;let r=G(t,1);if(!r)return null;let o=t.rotation*Math.PI/180,n={x:-Math.sin(o),y:Math.cos(o)},i=(e.x-r.x)*n.x+(e.y-r.y)*n.y,c=Math.max(W,Math.min(T,Math.round(i/t.rowGap)+1)),l=G(t,c);return l?{rowCount:c,edgePoint:l}:null}function Bt(t,e){return t.length!==e.rowCount?!1:[...t].sort((o,n)=>(o.rowBlockGeneration?.rowIndex??1/0)-(n.rowBlockGeneration?.rowIndex??1/0)).every((o,n)=>{let i=o.rowBlockGeneration;return i?.kind==="row-block-v1"&&i.groupId===e.groupId&&i.rowIndex===n&&i.signature===e.signature&&JSON.stringify(i)===JSON.stringify({...e,rowIndex:n})})}var h=1,b=300,D=330;function M(t){return t.seatCount>1?t.curve/(t.seatCount-1):0}function E(t,e){let r=t.rotation*Math.PI/180,o=M(t)*Math.PI/180,n,i;if(Math.abs(o)<1e-9)n=e*t.seatSpacing,i=0;else{let c=t.seatSpacing/(2*Math.sin(Math.abs(o)/2)),l=o*e;n=c*Math.sin(l),i=-c+c*Math.cos(l)}return{x:t.origin.x+n*Math.cos(r)-i*Math.sin(r),y:t.origin.y+n*Math.sin(r)+i*Math.cos(r)}}function Q(t,e,r){let o=(t??[]).map(n=>({...n,index:n.index+e})).filter(n=>n.index>=0&&n.index<r);return o.length?o:void 0}function U(t,e){if(t.path||!Number.isInteger(e)||e<h||e>b)return null;let r=M(t);return{...t,seatCount:e,curve:r*(e-1)}}function Y(t,e){if(t.path||!Number.isInteger(e)||e<h||e>b)return null;let r=M(t),o=t.seatCount-e,n=-o;return{...t,origin:E(t,o),rotation:B(t.rotation-r*o),seatCount:e,curve:r*(e-1),overrides:Q(t.overrides,n,e)}}function $(t,e=t.seatCount){let r=U(t,e);return r?E(r,e-1):null}function q(t,e=t.seatCount){return Y(t,e)?.origin??null}function kt(t,e){if(t.path||!Number.isFinite(e.x)||!Number.isFinite(e.y))return null;let r=M(t),o=Math.abs(r)<1e-9?b:Math.min(b,Math.floor(D/Math.abs(r))+1),n=null;for(let i=h;i<=Math.max(h,o);i+=1){let c=$(t,i);if(!c)continue;let l=Math.hypot(c.x-e.x,c.y-e.y),u=r*(i-1);(!n||l<n.distance||l===n.distance&&i<n.seatCount)&&(n={seatCount:i,curve:u,endpoint:c,distance:l})}return n}function Gt(t,e){if(t.path||!Number.isFinite(e.x)||!Number.isFinite(e.y))return null;let r=M(t),o=Math.abs(r)<1e-9?b:Math.min(b,Math.floor(D/Math.abs(r))+1),n=null;for(let i=h;i<=Math.max(h,o);i+=1){let c=q(t,i);if(!c)continue;let l=Math.hypot(c.x-e.x,c.y-e.y),u=r*(i-1);(!n||l<n.distance||l===n.distance&&i<n.seatCount)&&(n={seatCount:i,curve:u,endpoint:c,distance:l})}return n}export{bt as CATEGORY_INVENTORY_FAMILIES,dt as GroupedTableProjectionError,D as MAX_DIRECT_ROW_SWEEP,V as MAX_EVENT_INVENTORY,H as MAX_GA_CAPACITY,T as MAX_ROW_BLOCK_ROWS,b as MAX_ROW_SEATS,W as MIN_ROW_BLOCK_ROWS,h as MIN_ROW_SEATS,lt as applicableTicketTiers,z as capacityControl,St as categoryCapacity,k as chartCapacity,pt as companionSelectionIssue,gt as describeCategoryInventoryConflict,xt as effectiveSeatOwnerCategoryCounts,nt as gaAreasOf,et as gaInventorySegments,Z as gaUnitLabel,ot as gaUnitLabels,ht as groupedTableInventory,rt as growJoinedGAInventory,Mt as inspectCategoryInventoryConflicts,Bt as intactRowBlockMembers,at as isGaUnitLabel,mt as pickBestAvailable,yt as pickBestAvailableInventory,wt as remediateCategoryInventoryConflicts,Pt as resizeChartCapacity,It as resolveRowBlockCount,Gt as resolveRowStartCapacity,kt as resolveRowTerminalCapacity,ut as resolveTicketTierForSeat,G as rowBlockEdgePoint,J as rowBlockPreviewRows,q as rowStartEndpoint,$ as rowTerminalEndpoint,Y as rowWithStartCapacity,U as rowWithTerminalCapacity,it as strandedSingles,st as ticketOptionNotApplicableIssue,ft as ticketSelectionIssue,ct as ticketTierAppliesToSeat,tt as validGAInventorySegments};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as Point, u as CubicPath, v as TextObject } from '../../types-
|
|
2
|
-
export { F as FloorLabelStyle } from '../../types-
|
|
3
|
-
export { C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, a as FLOOR_STACK_MIN_SURFACE_PX, b as FloorStackOptions, c as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, d as TableSeatSlot, e as allObjects, f as chartBounds, g as expandBooth, h as expandChart, i as expandRow, j as expandRowSlots, k as expandTable, l as expandTableSlots, m as floorObjects, n as floorStackPlacements, o as floorsOf, p as initialFloorMode, q as layoutFloorStack, r as mainFloorId, s as objectCenter, t as owningSectionForObject, u as pointInPolygon, v as pointInPolygonWithHoles, w as polygonLabelPoint, x as rowInventoryCount, y as rowSeatPositions, z as stackFloors, A as tableInventoryCount, B as tableSeatCountsBySide, D as translateObject } from '../../layout-
|
|
4
|
-
export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-
|
|
5
|
-
import { E as ExpandedSeat } from '../../renderer-
|
|
1
|
+
import { P as Point, u as CubicPath, v as TextObject } from '../../types-D6-wLa-m.cjs';
|
|
2
|
+
export { F as FloorLabelStyle } from '../../types-D6-wLa-m.cjs';
|
|
3
|
+
export { C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, a as FLOOR_STACK_MIN_SURFACE_PX, b as FloorStackOptions, c as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, d as TableSeatSlot, e as allObjects, f as chartBounds, g as expandBooth, h as expandChart, i as expandRow, j as expandRowSlots, k as expandTable, l as expandTableSlots, m as floorObjects, n as floorStackPlacements, o as floorsOf, p as initialFloorMode, q as layoutFloorStack, r as mainFloorId, s as objectCenter, t as owningSectionForObject, u as pointInPolygon, v as pointInPolygonWithHoles, w as polygonLabelPoint, x as rowInventoryCount, y as rowSeatPositions, z as stackFloors, A as tableInventoryCount, B as tableSeatCountsBySide, D as translateObject } from '../../layout-B6iOoPOv.cjs';
|
|
4
|
+
export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-CKmyHvKv.cjs';
|
|
5
|
+
import { E as ExpandedSeat } from '../../renderer-CBOo1OZk.cjs';
|
|
6
6
|
|
|
7
7
|
type SectionShellMode = 'auto' | 'rectangle' | 'tapered' | 'bezier';
|
|
8
8
|
declare function cubicPoint(path: CubicPath, t: number): Point;
|
|
@@ -182,7 +182,7 @@ declare function polygonInscribedAnchor(outer: readonly Point[], holes?: readonl
|
|
|
182
182
|
/**
|
|
183
183
|
* Default seat radius in world units. Mirrors `SEAT_RADIUS` in
|
|
184
184
|
* `SeatmapRenderer.ts` and `DesignerController.ts` (both 9). The renderer scales
|
|
185
|
-
* this by `theme.seatScale
|
|
185
|
+
* this by `theme.seatScale`; callers that do the same must
|
|
186
186
|
* pass the scaled value via {@link BuildOptions.seatRadius} so the index agrees
|
|
187
187
|
* with what is actually drawn.
|
|
188
188
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as Point, u as CubicPath, v as TextObject } from '../../types-
|
|
2
|
-
export { F as FloorLabelStyle } from '../../types-
|
|
3
|
-
export { C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, a as FLOOR_STACK_MIN_SURFACE_PX, b as FloorStackOptions, c as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, d as TableSeatSlot, e as allObjects, f as chartBounds, g as expandBooth, h as expandChart, i as expandRow, j as expandRowSlots, k as expandTable, l as expandTableSlots, m as floorObjects, n as floorStackPlacements, o as floorsOf, p as initialFloorMode, q as layoutFloorStack, r as mainFloorId, s as objectCenter, t as owningSectionForObject, u as pointInPolygon, v as pointInPolygonWithHoles, w as polygonLabelPoint, x as rowInventoryCount, y as rowSeatPositions, z as stackFloors, A as tableInventoryCount, B as tableSeatCountsBySide, D as translateObject } from '../../layout-
|
|
4
|
-
export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-
|
|
5
|
-
import { E as ExpandedSeat } from '../../renderer-
|
|
1
|
+
import { P as Point, u as CubicPath, v as TextObject } from '../../types-D6-wLa-m.js';
|
|
2
|
+
export { F as FloorLabelStyle } from '../../types-D6-wLa-m.js';
|
|
3
|
+
export { C as ChartBoundsOptions, E as ExpandChartOptions, F as FLOOR_STACK_GAP_RATIO, a as FLOOR_STACK_MIN_SURFACE_PX, b as FloorStackOptions, c as FloorStackPlacement, R as RowSeatSlot, T as TABLE_SEAT_OFFSET, d as TableSeatSlot, e as allObjects, f as chartBounds, g as expandBooth, h as expandChart, i as expandRow, j as expandRowSlots, k as expandTable, l as expandTableSlots, m as floorObjects, n as floorStackPlacements, o as floorsOf, p as initialFloorMode, q as layoutFloorStack, r as mainFloorId, s as objectCenter, t as owningSectionForObject, u as pointInPolygon, v as pointInPolygonWithHoles, w as polygonLabelPoint, x as rowInventoryCount, y as rowSeatPositions, z as stackFloors, A as tableInventoryCount, B as tableSeatCountsBySide, D as translateObject } from '../../layout-B7URbtDR.js';
|
|
4
|
+
export { a as SegmentedRowComponent, S as SegmentedRowPlacement, r as resolveSegmentedRowGroups, s as segmentedRowComponentSeats, b as segmentedRowComponents, c as segmentedRowSeatTotal } from '../../segmentedRowModel-DbP7pWUk.js';
|
|
5
|
+
import { E as ExpandedSeat } from '../../renderer-6sFRupj0.js';
|
|
6
6
|
|
|
7
7
|
type SectionShellMode = 'auto' | 'rectangle' | 'tapered' | 'bezier';
|
|
8
8
|
declare function cubicPoint(path: CubicPath, t: number): Point;
|
|
@@ -182,7 +182,7 @@ declare function polygonInscribedAnchor(outer: readonly Point[], holes?: readonl
|
|
|
182
182
|
/**
|
|
183
183
|
* Default seat radius in world units. Mirrors `SEAT_RADIUS` in
|
|
184
184
|
* `SeatmapRenderer.ts` and `DesignerController.ts` (both 9). The renderer scales
|
|
185
|
-
* this by `theme.seatScale
|
|
185
|
+
* this by `theme.seatScale`; callers that do the same must
|
|
186
186
|
* pass the scaled value via {@link BuildOptions.seatRadius} so the index agrees
|
|
187
187
|
* with what is actually drawn.
|
|
188
188
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var K=Object.defineProperty;var fe=Object.getOwnPropertyDescriptor;var ye=Object.getOwnPropertyNames;var Le=Object.prototype.hasOwnProperty;var xe=(t,r)=>{for(var o in r)K(t,o,{get:r[o],enumerable:!0})},ve=(t,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of ye(r))!Le.call(t,c)&&c!==o&&K(t,c,{get:()=>r[c],enumerable:!(s=fe(r,c))||s.enumerable});return t};var we=t=>ve(K({},"__esModule",{value:!0}),t);var Ue={};xe(Ue,{ACCESS_GLYPH_PATH:()=>Pe,ACCESS_GLYPH_VIEWBOX:()=>Fe,ACCESS_TYPE_GLYPH_PATHS:()=>U,AUTHORED_LABEL_MIN_CONTRAST:()=>Ve,BOOTH_LABEL_FONT_SIZE:()=>Se,DARK_BOOKABLE_LABEL_INK:()=>S,DARK_NEUTRAL_SECTION_FILL:()=>le,GA_CAPACITY_LABEL_FONT_SIZE:()=>Te,GA_FILL_OPACITY:()=>Ae,GA_LABEL_FONT_SIZE:()=>Be,LARGE_TEXT_CONTRAST:()=>ie,LIGHT_BOOKABLE_LABEL_INK:()=>B,LIGHT_NEUTRAL_SECTION_FILL:()=>ae,MIN_VISIBLE_BOOKABLE_LABEL_PX:()=>T,RENDERED_QUALITY_REPORT_VERSION:()=>de,ROW_LABEL_FONT_SIZE:()=>ke,SEAT_LABEL_FONT_SIZE:()=>Ie,SMALL_TEXT_CONTRAST:()=>z,accessGlyphInk:()=>He,accessGlyphPath:()=>Ne,bookableMarkerLabel:()=>ze,compositeHexOver:()=>Oe,inspectRenderedQualityEvidence:()=>$e,isBookableLabelLegibleAtScale:()=>Ee,isLightFill:()=>se,minimumTextContrast:()=>_e,neutralSectionFill:()=>Qe,renderedTextContrast:()=>d,stateAwareBookableLabelInk:()=>oe,summarizeLabelInkContrast:()=>Ge});module.exports=we(Ue);var Re=/^#?([\da-f]{3}|[\da-f]{6})$/i;function R(t){let r=Re.exec((t??"").trim());if(!r)return null;let o=r[1].length===3?r[1].split("").map(c=>c+c).join(""):r[1],s=parseInt(o,16);return[s>>16&255,s>>8&255,s&255]}function $(t){let r=t/255;return r<=.04045?r/12.92:((r+.055)/1.055)**2.4}function N(t){return .2126*$(t[0])+.7152*$(t[1])+.0722*$(t[2])}function re(t,r){let o=R(t),s=R(r);if(!o||!s)return null;let c=N(o),u=N(s);return(Math.max(c,u)+.05)/(Math.min(c,u)+.05)}var Ie=7,ke=10,Se=10,Be=15,Te=11,Ae=.85,T=12,z=4.5,ie=3,S="#000000",B="#ffffff",Me=24,Ce=18.67;function _e(t,r=400){return t>=Me||r>=700&&t>=Ce?ie:z}function Ee(t,r){return t*r>=T}var Fe=24,U={wheelchair:"M7.8 4.5a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM8 7L10.5 7L10.5 15L8 15ZM8 12.5L18 12.5L18 15L8 15ZM16 15L18 15L18 18L16 18ZM5.5 16a5.5 5.5 0 1 0 11 0a5.5 5.5 0 1 0 -11 0zM8 16a3 3 0 1 1 6 0a3 3 0 1 1 -6 0z",companion:"M5.5 6.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM4.5 18.5L6 11.5L11 11.5L12.5 18.5ZM12.5 7.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM11.5 19L13 12.5L18 12.5L19.5 19Z","semi-ambulatory":"M8.3 3.8a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM9 6.2L12 6.6L11 13.5L8.6 13L9 6.2ZM8.6 13L11 13L9.5 21L7 21ZM10.4 13L12.6 13L13.6 21L11.2 21ZM11.2 7.2L14 8L14.6 9.6L11.9 8.9ZM14.4 6.8L15.9 6.8L16.4 21L14.8 21Z","designated-aisle":"M3 5L6 5L6 14L3 14ZM3 12L13 12L13 15L3 15ZM5 15L7 15L7 20L5 20ZM11 15L13 15L13 20L11 20ZM13 7L20 7L17 4L19 4L23 8.5L19 13L17 13L20 10L13 10Z","step-free":"M4 4.5a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM4.4 7L7.5 7L7.5 13L11 15L9.5 17L5 14L4.4 7ZM2 19L8 19L17 10L22 10L22 13L18 13L10 21L2 21Z",hearing:"M15.5 3.5C9 2.2 5.5 6 5.5 11.5C5.5 16 8 19.5 10.5 21C13.2 22.6 16.4 20.8 15.4 18C14.8 16.4 12.9 16.1 13 14C13.1 11.9 15.8 11.4 15.8 8.5C15.8 5.4 13 4 15.5 3.5Z",cart:"M5.5 6L18.5 6a2.5 2.5 0 0 1 2.5 2.5L21 15.5a2.5 2.5 0 0 1 -2.5 2.5L11 18L7 20.5L7.5 18L5.5 18a2.5 2.5 0 0 1 -2.5 -2.5L3 8.5a2.5 2.5 0 0 1 2.5 -2.5zM6.5 11L17.5 11L17.5 12.6L6.5 12.6zM6.5 14L17.5 14L17.5 15.6L6.5 15.6z","sign-language":"M7 11L17 11L17 18a2 2 0 0 1 -2 2L9 20a2 2 0 0 1 -2 -2zM7.6 5L9.4 5L9.4 12L7.6 12zM9.9 3.5L11.7 3.5L11.7 12L9.9 12zM12.3 3.5L14.1 3.5L14.1 12L12.3 12zM14.6 5L16.4 5L16.4 12L14.6 12zM7.2 12.5L5 10.2L6.4 8.9L8.6 11.2Z","low-vision":"M2.5 12C6 6 18 6 21.5 12C18 18 6 18 2.5 12ZM9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM17.5 3L19 3L19 6L17.5 6ZM19 4L22 4L22 5.5L19 5.5Z","sensory-friendly":"M4 11C4 5 7 2.5 12 2.5S20 5 20 11L17 11C17 7 15.5 5.5 12 5.5S7 7 7 11ZM3 10L8 10L8 19L5 19a2 2 0 0 1 -2 -2ZM16 10L21 10L21 17a2 2 0 0 1 -2 2L16 19ZM9 12L15 12L15 14L9 14ZM10 16L14 16L14 18L10 18Z","plus-size":"M9.4 4.3a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0zM5 20L4 13C4 10.5 7 9.5 12 9.5C17 9.5 20 10.5 20 13L19 20Z","lift-armrest":"M5 6L8 6L8 19L5 19zM5 16L18 16L18 19L5 19zM8 12L17 12L17 14.5L8 14.5zM14 7L16 7L16 12L14 12zM12 7L18 7L15 3Z"},Pe=U.wheelchair;function Ne(t){if(!t?.length)return null;let r=t.includes("wheelchair")?"wheelchair":t[0];return U[r]??null}function ze(t){return/-(\d{1,5})$/.exec(t)?.[1]??t}var d=re;function Oe(t,r,o){let s=R(t),c=R(r);if(!s||!c)return r;let u=Math.max(0,Math.min(1,o));return`#${s.map((p,M)=>Math.round(p*u+c[M]*(1-u))).map(p=>p.toString(16).padStart(2,"0")).join("")}`}var Ve=3;function oe(t,r,o=z){let s=d(r,t);if(s!=null&&s>=o)return r;let c=d(S,t)??0,u=d(B,t)??0;return c===0&&u===0?r:c>=u?S:B}var Ze=3;function He(t){let r=d("#ffffff",t);if(r!=null&&r>=Ze)return"#ffffff";let o=d(S,t)??0,s=d(B,t)??0;return o===0&&s===0?"#ffffff":o>=s?S:B}var ne=/^#[0-9a-f]{6}$/i;function se(t){let r=R(t);return r!=null&&N(r)>.5}var ae="#e5e7eb",le="#273142";function Qe(t){return se(t)?ae:le}function Ge(t,r,o=z){let s=ne.test(t.trim()),c=t.trim().toLowerCase(),u=0,m=0,p=null;for(let C of r){if(!s||!ne.test(C.trim()))continue;u+=1;let _=oe(C,t,o);_.toLowerCase()!==c&&(m+=1,p=_)}return{total:u,overridden:m,status:u===0?"none":m===0?"applies":m===u?"overridden":"mixed",overrideInk:p}}var de=3,I=4.5,O=3,ce=24,Ke=20;function V(t){return t.filter(r=>r.visible&&!!r.screenBox)}function y(t,r){return t.x<r.x+r.width&&t.x+t.width>r.x&&t.y<r.y+r.height&&t.y+t.height>r.y}function h(t){return t.length?Math.round(Math.min(...t)*100)/100:null}function l(t,r,o){return o.length?{code:t,message:r,count:o.length,samples:o.slice(0,Ke)}:null}function A(t,r,o){return{primaryId:t.seatId,primaryLabel:t.label,...r==null?{}:{measured:Math.round(r*100)/100},...o==null?{}:{minimum:o}}}function Z(t,r,o){return{primaryId:t.id,primaryLabel:t.label,...r==null?{}:{measured:Math.round(r*100)/100},...o==null?{}:{minimum:o}}}function ue(t,r,o){return{primaryId:t.objectId,primaryLabel:t.text,...r==null?{}:{measured:Math.round(r*100)/100},...o==null?{}:{minimum:o}}}function L(t,r,o,s){return{primaryId:t,primaryLabel:r,secondaryId:o,secondaryLabel:s}}function $e(t,r="overview",o=null){let s=V(t.labels),c=V(t.hierarchyLabels),u=V(t.freeTextLabels),m=V(t.rowLabels),p=t.gaAreas.filter(e=>e.visible),M=s.map(e=>d(e.ink,e.fill)??0),C=c.map(e=>d(e.ink,e.fill)??0),_=u.map(e=>d(e.ink,e.background)??0),be=p.map(e=>d(e.effectiveBackground,t.canvasBackground)??0),b=o?t.labels.filter(e=>e.categoryKey===o):t.labels,x=o?t.gaAreas.filter(e=>e.categoryKey===o):t.gaAreas,f=b.filter(e=>e.selected),v=b.filter(e=>e.status==="held"),w=b.filter(e=>e.status==="booked"),E=b.filter(e=>e.pointerTarget.active),j=new Set([...t.labels.filter(e=>e.visible&&(e.opacity>.25||e.selected||e.status!=="free")).map(e=>e.categoryKey),...t.gaAreas.filter(e=>e.visible&&e.opacity>.1).map(e=>e.categoryKey)]),F=f.length?h(f.map(e=>d(e.selectionRingColor??t.selectionRingColor,e.fill)??0)):null,a=[],k=(e,n)=>Array.from({length:e},(g,P)=>({primaryId:`overview:${P+1}`,primaryLabel:n}));r==="overview"&&t.rung==="sections"&&(a.push(l("overview-section-category-paint","Section overview shells must use the neutral hierarchy palette, not category paint",k(t.overviewStyle.categoryPaintedSectionShells,"category-painted section shell"))),a.push(l("overview-category-detail-visible","Category-tinted section detail must wait until section focus or seat zoom",k(t.overviewStyle.visibleCategoryDetailOutlines,"category detail outline"))),a.push(l("overview-row-hints-visible","Row and seat patterns must not clutter the section overview",k(t.overviewStyle.visibleSectionRowHints,"section row hint"))),a.push(l("overview-availability-clutter","Live availability counts belong in focused detail, not on section overview shells",k(t.overviewStyle.visibleSectionAvailabilityLabels,"section availability label"))),a.push(l("overview-ga-detail-visible","Section-contained standing paint belongs in focused detail, not on section overview shells",k(t.overviewStyle.visibleSectionGADetails,"section-contained GA detail")))),a.push(l("bookable-label-undersized","Visible bookable labels must meet the rendered small-text size floor",s.filter(e=>e.renderedFontPx<t.minimumVisibleLabelPx).map(e=>A(e,e.renderedFontPx,t.minimumVisibleLabelPx)))),a.push(l("bookable-label-viewport-clipped","Visible interaction labels must remain fully inside the buyer viewport",r==="interaction"?s.filter(e=>e.screenBox.x<0||e.screenBox.y<0||e.screenBox.x+e.screenBox.width>t.viewport.width||e.screenBox.y+e.screenBox.height>t.viewport.height).map(e=>A(e)):[])),a.push(l("row-label-viewport-clipped","Visible interaction row labels must remain fully inside the buyer viewport",r==="interaction"?m.flatMap((e,n)=>{let g=e.screenBox;return g.x<0||g.y<0||g.x+g.width>t.viewport.width||g.y+g.height>t.viewport.height?[{primaryId:`row-label-${n}`,primaryLabel:e.text}]:[]}):[]));let X=[];if(r==="interaction")for(let e=0;e<m.length;e+=1)for(let n=0;n<e;n+=1)y(m[e].screenBox,m[n].screenBox)&&X.push(L(`row-label-${n}`,m[n].text,`row-label-${e}`,m[e].text));if(a.push(l("row-label-collision","Visible interaction row labels must not overlap",X)),r==="interaction"){let e=b.length>0,n=x.length>0,g=e||n,P=x.filter(i=>i.visible),me=new Set([...b.flatMap(i=>i.sectionId?[i.sectionId]:[]),...x.flatMap(i=>i.sectionId?[i.sectionId]:[])]),pe=new Set([...t.labels.map(i=>i.categoryKey),...t.gaAreas.map(i=>i.categoryKey)]),H=i=>i.screenCenter.x>=0&&i.screenCenter.x<=t.viewport.width&&i.screenCenter.y>=0&&i.screenCenter.y<=t.viewport.height;a.push(l("detail-rung-missing","Interaction evidence with bookable inventory must render the seat-detail rung",g&&t.rung!=="seats"?[{primaryId:"renderer",primaryLabel:t.rung}]:[])),a.push(l("detail-inventory-not-visible","Interaction evidence must frame at least one real bookable unit",g&&!b.some(H)&&!P.length?[{primaryId:"renderer",primaryLabel:"no target inventory in viewport"}]:[])),a.push(l("pointer-target-inactive","Interaction evidence must expose a live production pointer target",e&&!E.some(H)||!e&&n&&!P.some(i=>i.interactive)?[{primaryId:"renderer",primaryLabel:"no active pointer target in viewport"}]:[])),a.push(l("pointer-target-undersized","Every active production pointer target must reach at least 24 CSS pixels",E.filter(i=>H(i)&&i.pointerTarget.effectiveMinimumPx<ce).map(i=>A(i,i.pointerTarget.effectiveMinimumPx,ce)))),a.push(l("selected-state-missing","Interaction evidence must paint a selected unit and its renderer-owned ring",e&&(!f.length||!f.some(i=>t.selectionRingSeatIds.includes(i.seatId)))?[{primaryId:"renderer",primaryLabel:"selected state"}]:[])),a.push(l("selected-state-contrast-low","The selected-state ring must maintain 3:1 graphical contrast with the seat paint",f.length&&(F??0)<O?[{primaryId:f[0].seatId,primaryLabel:f[0].label,measured:Math.round((F??0)*100)/100,minimum:O}]:[])),a.push(l("held-state-missing","Interaction evidence must paint a held state when the floor has at least two status-managed units",b.length>=2&&!v.length?[{primaryId:"renderer",primaryLabel:"held state"}]:[])),a.push(l("booked-state-missing","Interaction evidence must paint a taken state when the floor has at least three status-managed units",b.length>=3&&!w.length?[{primaryId:"renderer",primaryLabel:"booked state"}]:[]));let ge=new Set(v.map(i=>`${i.fill.toLowerCase()}:${i.opacity}`)),he=new Set(w.map(i=>`${i.fill.toLowerCase()}:${i.opacity}`));a.push(l("status-state-indistinct","Held and taken evidence must resolve to distinct renderer paint",v.length&&w.length&&[...ge].some(i=>he.has(i))?[{primaryId:v[0].seatId,primaryLabel:v[0].label,secondaryId:w[0].seatId,secondaryLabel:w[0].label}]:[])),a.push(l("section-focus-missing","Interaction evidence must exercise section focus and its backdrop when section membership exists",me.size&&(!t.focusedSectionId||!t.focusBackdropVisible)?[{primaryId:"renderer",primaryLabel:"section focus"}]:[])),a.push(l("category-filter-missing","Interaction evidence must exercise a category filter when multiple categories exist",pe.size>=2&&(!t.categoryFilterKeys||!t.categoryFilterKeys.length)?[{primaryId:"renderer",primaryLabel:"category filter"}]:[]));let Q=t.labels.filter(i=>i.status==="free"&&!i.selected&&t.categoryFilterKeys!=null&&!t.categoryFilterKeys.includes(i.categoryKey)),G=t.gaAreas.filter(i=>t.categoryFilterKeys!=null&&!t.categoryFilterKeys.includes(i.categoryKey));a.push(l("category-filter-ineffective","The active category filter must visibly dim excluded free inventory",(Q.length||G.length)&&!Q.some(i=>i.opacity<=.25)&&!G.some(i=>i.opacity<=.1)?[...Q.map(i=>A(i,i.opacity)),...G.map(i=>({primaryId:i.areaId,primaryLabel:i.label,measured:i.opacity}))]:[])),a.push(l("target-category-not-visible","A category-specific interaction scene must visibly paint its exact target category",o&&!j.has(o)?[{primaryId:o,primaryLabel:o}]:[])),a.push(l("target-category-filter-mismatch","A category-specific interaction scene must bind its filter to only the exact target category",o&&(t.categoryFilterKeys?.length!==1||t.categoryFilterKeys[0]!==o)?[{primaryId:o,primaryLabel:o}]:[]))}a.push(l("bookable-label-contrast-low","Visible bookable labels must meet 4.5:1 contrast against their actual paint",s.flatMap(e=>{let n=d(e.ink,e.fill)??0;return n<I?[A(e,n,I)]:[]})));let D=[];for(let e=0;e<s.length;e+=1)for(let n=0;n<e;n+=1)y(s[e].screenBox,s[n].screenBox)&&D.push(L(s[n].seatId,s[n].label,s[e].seatId,s[e].label));a.push(l("bookable-label-collision","Visible bookable labels must not overlap",D)),a.push(l("hierarchy-label-undersized","Visible section and zone labels must meet the rendered small-text size floor",c.filter(e=>e.renderedFontPx<T).map(e=>Z(e,e.renderedFontPx,T)))),a.push(l("hierarchy-label-contrast-low","Visible section and zone labels must meet 4.5:1 contrast against their backing paint",c.flatMap(e=>{let n=d(e.ink,e.fill)??0;return n<I?[Z(e,n,I)]:[]}))),a.push(l("hierarchy-label-viewport-clipped","Visible overview hierarchy labels must remain fully inside the buyer viewport",r==="overview"?c.filter(e=>e.screenBox.x<0||e.screenBox.y<0||e.screenBox.x+e.screenBox.width>t.viewport.width||e.screenBox.y+e.screenBox.height>t.viewport.height).map(e=>Z(e)):[])),a.push(l("hierarchy-label-outside-section","Visible section labels must remain inside the filled section surface and outside holes",c.filter(e=>e.kind==="section"&&e.fitsContainer===!1).map(e=>Z(e))));let Y=[];for(let e=0;e<c.length;e+=1)for(let n=0;n<e;n+=1)y(c[e].screenBox,c[n].screenBox)&&Y.push(L(c[n].id,c[n].label,c[e].id,c[e].label));a.push(l("hierarchy-label-collision","Visible hierarchy labels must not overlap each other",Y));let W=[];for(let e of c)for(let n of s)y(e.screenBox,n.screenBox)&&W.push(L(e.id,e.label,n.seatId,n.label));a.push(l("hierarchy-bookable-collision","Visible hierarchy labels must not overlap bookable labels",W)),a.push(l("free-text-undersized","Visible chart text must meet the rendered small-text size floor",u.filter(e=>e.renderedFontPx<t.minimumVisibleLabelPx).map(e=>ue(e,e.renderedFontPx,t.minimumVisibleLabelPx)))),a.push(l("free-text-contrast-low","Visible chart text must meet 4.5:1 contrast against its measured background",u.flatMap(e=>{let n=d(e.ink,e.background)??0;return n<I?[ue(e,n,I)]:[]})));let J=[];for(let e=0;e<u.length;e+=1)for(let n=0;n<e;n+=1)y(u[e].screenBox,u[n].screenBox)&&J.push(L(u[n].objectId,u[n].text,u[e].objectId,u[e].text));a.push(l("free-text-collision","Visible chart text labels must not overlap each other",J));let q=[];for(let e of u)for(let n of s)y(e.screenBox,n.screenBox)&&q.push(L(e.objectId,e.text,n.seatId,n.label));a.push(l("free-text-bookable-collision","Visible chart text must not overlap bookable labels",q));let ee=[];for(let e of u)for(let n of c)y(e.screenBox,n.screenBox)&&ee.push(L(e.objectId,e.text,n.id,n.label));a.push(l("free-text-hierarchy-collision","Visible chart text must not overlap hierarchy labels",ee)),a.push(l("ga-contrast-low","Visible GA surfaces must maintain 3:1 graphical contrast with the canvas",p.flatMap(e=>{let n=d(e.effectiveBackground,t.canvasBackground)??0;return n<O?[{primaryId:e.areaId,primaryLabel:e.label,measured:Math.round(n*100)/100,minimum:O}]:[]})));let te=a.filter(e=>!!e);return{version:de,passed:te.length===0,state:r,targetCategoryKey:o,resolvedRules:["rendered-overview-label-size","rendered-overview-label-contrast","rendered-overview-label-collision","rendered-overview-hierarchy-viewport","rendered-overview-hierarchy-containment","rendered-overview-section-first-style","rendered-overview-ga-contrast",...r==="interaction"?["rendered-detail-label-viewport","rendered-detail-inventory","rendered-pointer-target","rendered-selected-held-taken-states","rendered-section-focus","rendered-category-filter"]:[]],viewport:t.viewport,canvasBackground:t.canvasBackground,effectiveScale:t.effectiveScale,rung:t.rung,inventory:{totalBookableUnits:t.totalBookableUnits,totalLabelledBookableUnits:t.totalLabelledBookableUnits,visibleBookableLabels:s.length,hiddenBookableLabels:t.hiddenLabels,visibleHierarchyLabels:c.length,visibleFreeTextLabels:u.length,visibleGAAreas:p.length},overviewStyle:t.overviewStyle,composition:{hierarchy:t.hierarchyLabels.filter(e=>e.role==="name").map(e=>({id:e.id,kind:e.kind,label:e.label,visible:e.visible})).sort((e,n)=>e.kind.localeCompare(n.kind)||e.id.localeCompare(n.id)),labelledObjects:t.freeTextLabels.map(e=>({objectId:e.objectId,kind:e.kind,text:e.text,visible:e.visible})).sort((e,n)=>e.objectId.localeCompare(n.objectId)||e.kind.localeCompare(n.kind)),gaAreas:t.gaAreas.map(e=>({areaId:e.areaId,label:e.label,categoryKey:e.categoryKey,...e.sectionId?{sectionId:e.sectionId}:{},visible:e.visible})).sort((e,n)=>e.areaId.localeCompare(n.areaId)),bookableSectionIds:[...new Set(t.labels.flatMap(e=>e.sectionId?[e.sectionId]:[]))].sort(),categoryKeys:[...new Set([...t.labels.map(e=>e.categoryKey),...t.gaAreas.map(e=>e.categoryKey)])].sort(),activeCategoryKeys:[...j].sort()},metrics:{minimumRenderedBookableLabelPx:h(s.map(e=>e.renderedFontPx)),minimumBookableLabelContrast:h(M),minimumRenderedHierarchyLabelPx:h(c.map(e=>e.renderedFontPx)),minimumHierarchyLabelContrast:h(C),minimumRenderedFreeTextPx:h(u.map(e=>e.renderedFontPx)),minimumFreeTextContrast:h(_),minimumGAContrast:h(be),minimumEffectivePointerTargetPx:h(E.map(e=>e.pointerTarget.effectiveMinimumPx)),selectedRingContrast:F==null?null:Math.round(F*100)/100},interaction:{applicable:{detail:b.length>0||x.length>0,pointer:b.length>0||x.length>0,held:b.length>=2,booked:b.length>=3,sectionFocus:b.some(e=>!!e.sectionId)||x.some(e=>!!e.sectionId),categoryFilter:new Set([...t.labels.map(e=>e.categoryKey),...t.gaAreas.map(e=>e.categoryKey)]).size>=2},selectedUnits:f.length,heldUnits:v.length,bookedUnits:w.length,activePointerTargets:E.length,focusedSectionId:t.focusedSectionId,focusBackdropVisible:t.focusBackdropVisible,categoryFilterKeys:t.categoryFilterKeys},findings:te}}0&&(module.exports={ACCESS_GLYPH_PATH,ACCESS_GLYPH_VIEWBOX,ACCESS_TYPE_GLYPH_PATHS,AUTHORED_LABEL_MIN_CONTRAST,BOOTH_LABEL_FONT_SIZE,DARK_BOOKABLE_LABEL_INK,DARK_NEUTRAL_SECTION_FILL,GA_CAPACITY_LABEL_FONT_SIZE,GA_FILL_OPACITY,GA_LABEL_FONT_SIZE,LARGE_TEXT_CONTRAST,LIGHT_BOOKABLE_LABEL_INK,LIGHT_NEUTRAL_SECTION_FILL,MIN_VISIBLE_BOOKABLE_LABEL_PX,RENDERED_QUALITY_REPORT_VERSION,ROW_LABEL_FONT_SIZE,SEAT_LABEL_FONT_SIZE,SMALL_TEXT_CONTRAST,accessGlyphInk,accessGlyphPath,bookableMarkerLabel,compositeHexOver,inspectRenderedQualityEvidence,isBookableLabelLegibleAtScale,isLightFill,minimumTextContrast,neutralSectionFill,renderedTextContrast,stateAwareBookableLabelInk,summarizeLabelInkContrast});
|
|
1
|
+
"use strict";var K=Object.defineProperty;var fe=Object.getOwnPropertyDescriptor;var ye=Object.getOwnPropertyNames;var Le=Object.prototype.hasOwnProperty;var xe=(t,r)=>{for(var o in r)K(t,o,{get:r[o],enumerable:!0})},ve=(t,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of ye(r))!Le.call(t,c)&&c!==o&&K(t,c,{get:()=>r[c],enumerable:!(s=fe(r,c))||s.enumerable});return t};var we=t=>ve(K({},"__esModule",{value:!0}),t);var Ue={};xe(Ue,{ACCESS_GLYPH_PATH:()=>Pe,ACCESS_GLYPH_VIEWBOX:()=>Fe,ACCESS_TYPE_GLYPH_PATHS:()=>U,AUTHORED_LABEL_MIN_CONTRAST:()=>Ve,BOOTH_LABEL_FONT_SIZE:()=>Se,DARK_BOOKABLE_LABEL_INK:()=>S,DARK_NEUTRAL_SECTION_FILL:()=>le,GA_CAPACITY_LABEL_FONT_SIZE:()=>Te,GA_FILL_OPACITY:()=>Ae,GA_LABEL_FONT_SIZE:()=>Be,LARGE_TEXT_CONTRAST:()=>ie,LIGHT_BOOKABLE_LABEL_INK:()=>B,LIGHT_NEUTRAL_SECTION_FILL:()=>ae,MIN_VISIBLE_BOOKABLE_LABEL_PX:()=>T,RENDERED_QUALITY_REPORT_VERSION:()=>be,ROW_LABEL_FONT_SIZE:()=>ke,SEAT_LABEL_FONT_SIZE:()=>Ie,SMALL_TEXT_CONTRAST:()=>z,accessGlyphInk:()=>He,accessGlyphPath:()=>Ne,bookableMarkerLabel:()=>ze,compositeHexOver:()=>Oe,inspectRenderedQualityEvidence:()=>$e,isBookableLabelLegibleAtScale:()=>_e,isLightFill:()=>se,minimumTextContrast:()=>Ee,neutralSectionFill:()=>Qe,renderedTextContrast:()=>b,stateAwareBookableLabelInk:()=>oe,summarizeLabelInkContrast:()=>Ge});module.exports=we(Ue);var Re=/^#?([\da-f]{3}|[\da-f]{6})$/i;function R(t){let r=Re.exec((t??"").trim());if(!r)return null;let o=r[1].length===3?r[1].split("").map(c=>c+c).join(""):r[1],s=parseInt(o,16);return[s>>16&255,s>>8&255,s&255]}function $(t){let r=t/255;return r<=.04045?r/12.92:((r+.055)/1.055)**2.4}function N(t){return .2126*$(t[0])+.7152*$(t[1])+.0722*$(t[2])}function re(t,r){let o=R(t),s=R(r);if(!o||!s)return null;let c=N(o),u=N(s);return(Math.max(c,u)+.05)/(Math.min(c,u)+.05)}var Ie=7,ke=10,Se=10,Be=15,Te=11,Ae=.85,T=12,z=4.5,ie=3,S="#000000",B="#ffffff",Me=24,Ce=18.67;function Ee(t,r=400){return t>=Me||r>=700&&t>=Ce?ie:z}function _e(t,r){return t*r>=T}var Fe=24,U={wheelchair:"M7.8 4.5a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM8 7L10.5 7L10.5 15L8 15ZM8 12.5L18 12.5L18 15L8 15ZM16 15L18 15L18 18L16 18ZM5.5 16a5.5 5.5 0 1 0 11 0a5.5 5.5 0 1 0 -11 0zM8 16a3 3 0 1 1 6 0a3 3 0 1 1 -6 0z",companion:"M5.5 6.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM4.5 18.5L6 11.5L11 11.5L12.5 18.5ZM12.5 7.5a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM11.5 19L13 12.5L18 12.5L19.5 19Z","semi-ambulatory":"M8.3 3.8a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM9 6.2L12 6.6L11 13.5L8.6 13L9 6.2ZM8.6 13L11 13L9.5 21L7 21ZM10.4 13L12.6 13L13.6 21L11.2 21ZM11.2 7.2L14 8L14.6 9.6L11.9 8.9ZM14.4 6.8L15.9 6.8L16.4 21L14.8 21Z","designated-aisle":"M3 5L6 5L6 14L3 14ZM3 12L13 12L13 15L3 15ZM5 15L7 15L7 20L5 20ZM11 15L13 15L13 20L11 20ZM13 7L20 7L17 4L19 4L23 8.5L19 13L17 13L20 10L13 10Z","step-free":"M4 4.5a2.2 2.2 0 1 0 4.4 0a2.2 2.2 0 1 0 -4.4 0zM4.4 7L7.5 7L7.5 13L11 15L9.5 17L5 14L4.4 7ZM2 19L8 19L17 10L22 10L22 13L18 13L10 21L2 21Z",hearing:"M15.5 3.5C9 2.2 5.5 6 5.5 11.5C5.5 16 8 19.5 10.5 21C13.2 22.6 16.4 20.8 15.4 18C14.8 16.4 12.9 16.1 13 14C13.1 11.9 15.8 11.4 15.8 8.5C15.8 5.4 13 4 15.5 3.5Z",cart:"M5.5 6L18.5 6a2.5 2.5 0 0 1 2.5 2.5L21 15.5a2.5 2.5 0 0 1 -2.5 2.5L11 18L7 20.5L7.5 18L5.5 18a2.5 2.5 0 0 1 -2.5 -2.5L3 8.5a2.5 2.5 0 0 1 2.5 -2.5zM6.5 11L17.5 11L17.5 12.6L6.5 12.6zM6.5 14L17.5 14L17.5 15.6L6.5 15.6z","sign-language":"M7 11L17 11L17 18a2 2 0 0 1 -2 2L9 20a2 2 0 0 1 -2 -2zM7.6 5L9.4 5L9.4 12L7.6 12zM9.9 3.5L11.7 3.5L11.7 12L9.9 12zM12.3 3.5L14.1 3.5L14.1 12L12.3 12zM14.6 5L16.4 5L16.4 12L14.6 12zM7.2 12.5L5 10.2L6.4 8.9L8.6 11.2Z","low-vision":"M2.5 12C6 6 18 6 21.5 12C18 18 6 18 2.5 12ZM9 12a3 3 0 1 0 6 0a3 3 0 1 0 -6 0zM17.5 3L19 3L19 6L17.5 6ZM19 4L22 4L22 5.5L19 5.5Z","sensory-friendly":"M4 11C4 5 7 2.5 12 2.5S20 5 20 11L17 11C17 7 15.5 5.5 12 5.5S7 7 7 11ZM3 10L8 10L8 19L5 19a2 2 0 0 1 -2 -2ZM16 10L21 10L21 17a2 2 0 0 1 -2 2L16 19ZM9 12L15 12L15 14L9 14ZM10 16L14 16L14 18L10 18Z","plus-size":"M9.4 4.3a2.6 2.6 0 1 0 5.2 0a2.6 2.6 0 1 0 -5.2 0zM5 20L4 13C4 10.5 7 9.5 12 9.5C17 9.5 20 10.5 20 13L19 20Z","lift-armrest":"M5 6L8 6L8 19L5 19zM5 16L18 16L18 19L5 19zM8 12L17 12L17 14.5L8 14.5zM14 7L16 7L16 12L14 12zM12 7L18 7L15 3Z"},Pe=U.wheelchair;function Ne(t){if(!t?.length)return null;let r=t.includes("wheelchair")?"wheelchair":t[0];return U[r]??null}function ze(t){return/-(\d{1,5})$/.exec(t)?.[1]??t}var b=re;function Oe(t,r,o){let s=R(t),c=R(r);if(!s||!c)return r;let u=Math.max(0,Math.min(1,o));return`#${s.map((p,M)=>Math.round(p*u+c[M]*(1-u))).map(p=>p.toString(16).padStart(2,"0")).join("")}`}var Ve=3;function oe(t,r,o=z){let s=b(r,t);if(s!=null&&s>=o)return r;let c=b(S,t)??0,u=b(B,t)??0;return c===0&&u===0?r:c>=u?S:B}var Ze=3;function He(t){let r=b("#ffffff",t);if(r!=null&&r>=Ze)return"#ffffff";let o=b(S,t)??0,s=b(B,t)??0;return o===0&&s===0?"#ffffff":o>=s?S:B}var ne=/^#[0-9a-f]{6}$/i;function se(t){let r=R(t);return r!=null&&N(r)>.5}var ae="#e5e7eb",le="#273142";function Qe(t){return se(t)?ae:le}function Ge(t,r,o=z){let s=ne.test(t.trim()),c=t.trim().toLowerCase(),u=0,m=0,p=null;for(let C of r){if(!s||!ne.test(C.trim()))continue;u+=1;let E=oe(C,t,o);E.toLowerCase()!==c&&(m+=1,p=E)}return{total:u,overridden:m,status:u===0?"none":m===0?"applies":m===u?"overridden":"mixed",overrideInk:p}}var be=3,I=4.5,O=3,ce=24,Ke=20;function V(t){return t.filter(r=>r.visible&&!!r.screenBox)}function y(t,r){return t.x<r.x+r.width&&t.x+t.width>r.x&&t.y<r.y+r.height&&t.y+t.height>r.y}function h(t){return t.length?Math.round(Math.min(...t)*100)/100:null}function l(t,r,o){return o.length?{code:t,message:r,count:o.length,samples:o.slice(0,Ke)}:null}function A(t,r,o){return{primaryId:t.seatId,primaryLabel:t.label,...r==null?{}:{measured:Math.round(r*100)/100},...o==null?{}:{minimum:o}}}function Z(t,r,o){return{primaryId:t.id,primaryLabel:t.label,...r==null?{}:{measured:Math.round(r*100)/100},...o==null?{}:{minimum:o}}}function ue(t,r,o){return{primaryId:t.objectId,primaryLabel:t.text,...r==null?{}:{measured:Math.round(r*100)/100},...o==null?{}:{minimum:o}}}function L(t,r,o,s){return{primaryId:t,primaryLabel:r,secondaryId:o,secondaryLabel:s}}function $e(t,r="overview",o=null){let s=V(t.labels),c=V(t.hierarchyLabels),u=V(t.freeTextLabels),m=V(t.rowLabels),p=t.gaAreas.filter(e=>e.visible),M=s.map(e=>b(e.ink,e.fill)??0),C=c.map(e=>b(e.ink,e.fill)??0),E=u.map(e=>b(e.ink,e.background)??0),de=p.map(e=>b(e.effectiveBackground,t.canvasBackground)??0),d=o?t.labels.filter(e=>e.categoryKey===o):t.labels,x=o?t.gaAreas.filter(e=>e.categoryKey===o):t.gaAreas,f=d.filter(e=>e.selected),v=d.filter(e=>e.status==="held"),w=d.filter(e=>e.status==="booked"),_=d.filter(e=>e.pointerTarget.active),j=new Set([...t.labels.filter(e=>e.visible&&(e.opacity>.25||e.selected||e.status!=="free")).map(e=>e.categoryKey),...t.gaAreas.filter(e=>e.visible&&e.opacity>.1).map(e=>e.categoryKey)]),F=f.length?h(f.map(e=>b(e.selectionRingColor??t.selectionRingColor,e.fill)??0)):null,a=[],k=(e,n)=>Array.from({length:e},(g,P)=>({primaryId:`overview:${P+1}`,primaryLabel:n}));r==="overview"&&t.rung==="sections"&&(a.push(l("overview-section-category-paint","Section overview shells must use the neutral hierarchy palette, not category paint",k(t.overviewStyle.categoryPaintedSectionShells,"category-painted section shell"))),a.push(l("overview-category-detail-visible","Category-tinted section detail must wait until section focus or seat zoom",k(t.overviewStyle.visibleCategoryDetailOutlines,"category detail outline"))),a.push(l("overview-row-hints-visible","Row and seat patterns must not clutter the section overview",k(t.overviewStyle.visibleSectionRowHints,"section row hint"))),a.push(l("overview-availability-clutter","Live availability counts belong in focused detail, not on section overview shells",k(t.overviewStyle.visibleSectionAvailabilityLabels,"section availability label"))),a.push(l("overview-ga-detail-visible","Section-contained standing paint belongs in focused detail, not on section overview shells",k(t.overviewStyle.visibleSectionGADetails,"section-contained GA detail")))),a.push(l("bookable-label-undersized","Visible bookable labels must meet the rendered small-text size floor",s.filter(e=>e.renderedFontPx<t.minimumVisibleLabelPx).map(e=>A(e,e.renderedFontPx,t.minimumVisibleLabelPx)))),a.push(l("bookable-label-viewport-clipped","Visible interaction labels must remain fully inside the buyer viewport",r==="interaction"?s.filter(e=>e.screenBox.x<0||e.screenBox.y<0||e.screenBox.x+e.screenBox.width>t.viewport.width||e.screenBox.y+e.screenBox.height>t.viewport.height).map(e=>A(e)):[])),a.push(l("row-label-viewport-clipped","Visible interaction row labels must remain fully inside the buyer viewport",r==="interaction"?m.flatMap((e,n)=>{let g=e.screenBox;return g.x<0||g.y<0||g.x+g.width>t.viewport.width||g.y+g.height>t.viewport.height?[{primaryId:`row-label-${n}`,primaryLabel:e.text}]:[]}):[]));let X=[];if(r==="interaction")for(let e=0;e<m.length;e+=1)for(let n=0;n<e;n+=1)y(m[e].screenBox,m[n].screenBox)&&X.push(L(`row-label-${n}`,m[n].text,`row-label-${e}`,m[e].text));if(a.push(l("row-label-collision","Visible interaction row labels must not overlap",X)),r==="interaction"){let e=d.length>0,n=x.length>0,g=e||n,P=x.filter(i=>i.visible),me=new Set([...d.flatMap(i=>i.sectionId?[i.sectionId]:[]),...x.flatMap(i=>i.sectionId?[i.sectionId]:[])]),pe=new Set([...t.labels.map(i=>i.categoryKey),...t.gaAreas.map(i=>i.categoryKey)]),H=i=>i.screenCenter.x>=0&&i.screenCenter.x<=t.viewport.width&&i.screenCenter.y>=0&&i.screenCenter.y<=t.viewport.height;a.push(l("detail-rung-missing","Interaction evidence with bookable inventory must render the seat-detail rung",g&&t.rung!=="seats"?[{primaryId:"renderer",primaryLabel:t.rung}]:[])),a.push(l("detail-inventory-not-visible","Interaction evidence must frame at least one real bookable unit",g&&!d.some(H)&&!P.length?[{primaryId:"renderer",primaryLabel:"no target inventory in viewport"}]:[])),a.push(l("pointer-target-inactive","Interaction evidence must expose a live production pointer target",e&&!_.some(H)||!e&&n&&!P.some(i=>i.interactive)?[{primaryId:"renderer",primaryLabel:"no active pointer target in viewport"}]:[])),a.push(l("pointer-target-undersized","Every active production pointer target must reach at least 24 CSS pixels",_.filter(i=>H(i)&&i.pointerTarget.effectiveMinimumPx<ce).map(i=>A(i,i.pointerTarget.effectiveMinimumPx,ce)))),a.push(l("selected-state-missing","Interaction evidence must paint a selected unit and its renderer-owned ring",e&&(!f.length||!f.some(i=>t.selectionRingSeatIds.includes(i.seatId)))?[{primaryId:"renderer",primaryLabel:"selected state"}]:[])),a.push(l("selected-state-contrast-low","The selected-state ring must maintain 3:1 graphical contrast with the seat paint",f.length&&(F??0)<O?[{primaryId:f[0].seatId,primaryLabel:f[0].label,measured:Math.round((F??0)*100)/100,minimum:O}]:[])),a.push(l("held-state-missing","Interaction evidence must paint a held state when the floor has at least two status-managed units",d.length>=2&&!v.length?[{primaryId:"renderer",primaryLabel:"held state"}]:[])),a.push(l("booked-state-missing","Interaction evidence must paint a taken state when the floor has at least three status-managed units",d.length>=3&&!w.length?[{primaryId:"renderer",primaryLabel:"booked state"}]:[]));let ge=new Set(v.map(i=>`${i.fill.toLowerCase()}:${i.opacity}`)),he=new Set(w.map(i=>`${i.fill.toLowerCase()}:${i.opacity}`));a.push(l("status-state-indistinct","Held and taken evidence must resolve to distinct renderer paint",v.length&&w.length&&[...ge].some(i=>he.has(i))?[{primaryId:v[0].seatId,primaryLabel:v[0].label,secondaryId:w[0].seatId,secondaryLabel:w[0].label}]:[])),a.push(l("section-focus-missing","Interaction evidence must exercise section focus and its backdrop when section membership exists",me.size&&(!t.focusedSectionId||!t.focusBackdropVisible)?[{primaryId:"renderer",primaryLabel:"section focus"}]:[])),a.push(l("category-filter-missing","Interaction evidence must exercise a category filter when multiple categories exist",pe.size>=2&&(!t.categoryFilterKeys||!t.categoryFilterKeys.length)?[{primaryId:"renderer",primaryLabel:"category filter"}]:[]));let Q=t.labels.filter(i=>i.status==="free"&&!i.selected&&t.categoryFilterKeys!=null&&!t.categoryFilterKeys.includes(i.categoryKey)),G=t.gaAreas.filter(i=>t.categoryFilterKeys!=null&&!t.categoryFilterKeys.includes(i.categoryKey));a.push(l("category-filter-ineffective","The active category filter must visibly dim excluded free inventory",(Q.length||G.length)&&!Q.some(i=>i.opacity<=.25)&&!G.some(i=>i.opacity<=.1)?[...Q.map(i=>A(i,i.opacity)),...G.map(i=>({primaryId:i.areaId,primaryLabel:i.label,measured:i.opacity}))]:[])),a.push(l("target-category-not-visible","A category-specific interaction scene must visibly paint its exact target category",o&&!j.has(o)?[{primaryId:o,primaryLabel:o}]:[])),a.push(l("target-category-filter-mismatch","A category-specific interaction scene must bind its filter to only the exact target category",o&&(t.categoryFilterKeys?.length!==1||t.categoryFilterKeys[0]!==o)?[{primaryId:o,primaryLabel:o}]:[]))}a.push(l("bookable-label-contrast-low","Visible bookable labels must meet 4.5:1 contrast against their actual paint",s.flatMap(e=>{let n=b(e.ink,e.fill)??0;return n<I?[A(e,n,I)]:[]})));let D=[];for(let e=0;e<s.length;e+=1)for(let n=0;n<e;n+=1)y(s[e].screenBox,s[n].screenBox)&&D.push(L(s[n].seatId,s[n].label,s[e].seatId,s[e].label));a.push(l("bookable-label-collision","Visible bookable labels must not overlap",D)),a.push(l("hierarchy-label-undersized","Visible section and zone labels must meet the rendered small-text size floor",c.filter(e=>e.renderedFontPx<T).map(e=>Z(e,e.renderedFontPx,T)))),a.push(l("hierarchy-label-contrast-low","Visible section and zone labels must meet 4.5:1 contrast against their backing paint",c.flatMap(e=>{let n=b(e.ink,e.fill)??0;return n<I?[Z(e,n,I)]:[]}))),a.push(l("hierarchy-label-viewport-clipped","Visible overview hierarchy labels must remain fully inside the buyer viewport",r==="overview"?c.filter(e=>e.screenBox.x<0||e.screenBox.y<0||e.screenBox.x+e.screenBox.width>t.viewport.width||e.screenBox.y+e.screenBox.height>t.viewport.height).map(e=>Z(e)):[])),a.push(l("hierarchy-label-outside-section","Visible section labels must remain inside the filled section surface and outside holes",c.filter(e=>e.kind==="section"&&e.fitsContainer===!1).map(e=>Z(e))));let Y=[];for(let e=0;e<c.length;e+=1)for(let n=0;n<e;n+=1)y(c[e].screenBox,c[n].screenBox)&&Y.push(L(c[n].id,c[n].label,c[e].id,c[e].label));a.push(l("hierarchy-label-collision","Visible hierarchy labels must not overlap each other",Y));let W=[];for(let e of c)for(let n of s)y(e.screenBox,n.screenBox)&&W.push(L(e.id,e.label,n.seatId,n.label));a.push(l("hierarchy-bookable-collision","Visible hierarchy labels must not overlap bookable labels",W)),a.push(l("free-text-undersized","Visible chart text must meet the rendered small-text size floor",u.filter(e=>e.renderedFontPx<t.minimumVisibleLabelPx).map(e=>ue(e,e.renderedFontPx,t.minimumVisibleLabelPx)))),a.push(l("free-text-contrast-low","Visible chart text must meet 4.5:1 contrast against its measured background",u.flatMap(e=>{let n=b(e.ink,e.background)??0;return n<I?[ue(e,n,I)]:[]})));let J=[];for(let e=0;e<u.length;e+=1)for(let n=0;n<e;n+=1)y(u[e].screenBox,u[n].screenBox)&&J.push(L(u[n].objectId,u[n].text,u[e].objectId,u[e].text));a.push(l("free-text-collision","Visible chart text labels must not overlap each other",J));let q=[];for(let e of u)for(let n of s)y(e.screenBox,n.screenBox)&&q.push(L(e.objectId,e.text,n.seatId,n.label));a.push(l("free-text-bookable-collision","Visible chart text must not overlap bookable labels",q));let ee=[];for(let e of u)for(let n of c)y(e.screenBox,n.screenBox)&&ee.push(L(e.objectId,e.text,n.id,n.label));a.push(l("free-text-hierarchy-collision","Visible chart text must not overlap hierarchy labels",ee)),a.push(l("ga-contrast-low","Visible GA surfaces must maintain 3:1 graphical contrast with the canvas",p.flatMap(e=>{let n=b(e.effectiveBackground,t.canvasBackground)??0;return n<O?[{primaryId:e.areaId,primaryLabel:e.label,measured:Math.round(n*100)/100,minimum:O}]:[]})));let te=a.filter(e=>!!e);return{version:be,passed:te.length===0,state:r,targetCategoryKey:o,resolvedRules:["rendered-overview-label-size","rendered-overview-label-contrast","rendered-overview-label-collision","rendered-overview-hierarchy-viewport","rendered-overview-hierarchy-containment","rendered-overview-section-first-style","rendered-overview-ga-contrast",...r==="interaction"?["rendered-detail-label-viewport","rendered-detail-inventory","rendered-pointer-target","rendered-selected-held-taken-states","rendered-section-focus","rendered-category-filter"]:[]],viewport:t.viewport,canvasBackground:t.canvasBackground,effectiveScale:t.effectiveScale,rung:t.rung,inventory:{totalBookableUnits:t.totalBookableUnits,totalLabelledBookableUnits:t.totalLabelledBookableUnits,visibleBookableLabels:s.length,hiddenBookableLabels:t.hiddenLabels,visibleHierarchyLabels:c.length,visibleFreeTextLabels:u.length,visibleGAAreas:p.length},overviewStyle:t.overviewStyle,composition:{hierarchy:t.hierarchyLabels.filter(e=>e.role==="name").map(e=>({id:e.id,kind:e.kind,label:e.label,visible:e.visible})).sort((e,n)=>e.kind.localeCompare(n.kind)||e.id.localeCompare(n.id)),labelledObjects:t.freeTextLabels.map(e=>({objectId:e.objectId,kind:e.kind,text:e.text,visible:e.visible})).sort((e,n)=>e.objectId.localeCompare(n.objectId)||e.kind.localeCompare(n.kind)),gaAreas:t.gaAreas.map(e=>({areaId:e.areaId,label:e.label,categoryKey:e.categoryKey,...e.sectionId?{sectionId:e.sectionId}:{},visible:e.visible})).sort((e,n)=>e.areaId.localeCompare(n.areaId)),bookableSectionIds:[...new Set(t.labels.flatMap(e=>e.sectionId?[e.sectionId]:[]))].sort(),categoryKeys:[...new Set([...t.labels.map(e=>e.categoryKey),...t.gaAreas.map(e=>e.categoryKey)])].sort(),activeCategoryKeys:[...j].sort()},metrics:{minimumRenderedBookableLabelPx:h(s.map(e=>e.renderedFontPx)),minimumBookableLabelContrast:h(M),minimumRenderedHierarchyLabelPx:h(c.map(e=>e.renderedFontPx)),minimumHierarchyLabelContrast:h(C),minimumRenderedFreeTextPx:h(u.map(e=>e.renderedFontPx)),minimumFreeTextContrast:h(E),minimumGAContrast:h(de),minimumEffectivePointerTargetPx:h(_.map(e=>e.pointerTarget.effectiveMinimumPx)),selectedRingContrast:F==null?null:Math.round(F*100)/100},interaction:{applicable:{detail:d.length>0||x.length>0,pointer:d.length>0||x.length>0,held:d.length>=2,booked:d.length>=3,sectionFocus:d.some(e=>!!e.sectionId)||x.some(e=>!!e.sectionId),categoryFilter:new Set([...t.labels.map(e=>e.categoryKey),...t.gaAreas.map(e=>e.categoryKey)]).size>=2},selectedUnits:f.length,heldUnits:v.length,bookedUnits:w.length,activePointerTargets:_.length,focusedSectionId:t.focusedSectionId,focusBackdropVisible:t.focusBackdropVisible,categoryFilterKeys:t.categoryFilterKeys},findings:te}}0&&(module.exports={ACCESS_GLYPH_PATH,ACCESS_GLYPH_VIEWBOX,ACCESS_TYPE_GLYPH_PATHS,AUTHORED_LABEL_MIN_CONTRAST,BOOTH_LABEL_FONT_SIZE,DARK_BOOKABLE_LABEL_INK,DARK_NEUTRAL_SECTION_FILL,GA_CAPACITY_LABEL_FONT_SIZE,GA_FILL_OPACITY,GA_LABEL_FONT_SIZE,LARGE_TEXT_CONTRAST,LIGHT_BOOKABLE_LABEL_INK,LIGHT_NEUTRAL_SECTION_FILL,MIN_VISIBLE_BOOKABLE_LABEL_PX,RENDERED_QUALITY_REPORT_VERSION,ROW_LABEL_FONT_SIZE,SEAT_LABEL_FONT_SIZE,SMALL_TEXT_CONTRAST,accessGlyphInk,accessGlyphPath,bookableMarkerLabel,compositeHexOver,inspectRenderedQualityEvidence,isBookableLabelLegibleAtScale,isLightFill,minimumTextContrast,neutralSectionFill,renderedTextContrast,stateAwareBookableLabelInk,summarizeLabelInkContrast});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AccessibilityType } from '../../types-
|
|
1
|
+
import { A as AccessibilityType } from '../../types-D6-wLa-m.cjs';
|
|
2
2
|
import { contrastRatioOrNull } from '../color.cjs';
|
|
3
|
-
export { R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-
|
|
4
|
-
import '../../renderer-
|
|
3
|
+
export { R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-BZsq3wDe.cjs';
|
|
4
|
+
import '../../renderer-CBOo1OZk.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Rendering constants that quality inspection must agree with.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AccessibilityType } from '../../types-
|
|
1
|
+
import { A as AccessibilityType } from '../../types-D6-wLa-m.js';
|
|
2
2
|
import { contrastRatioOrNull } from '../color.js';
|
|
3
|
-
export { R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-
|
|
4
|
-
import '../../renderer-
|
|
3
|
+
export { R as RENDERED_QUALITY_REPORT_VERSION, a as RenderedEvidenceState, b as RenderedQualityFinding, c as RenderedQualityFindingCode, d as RenderedQualityReport, e as RenderedQualitySample, i as inspectRenderedQualityEvidence } from '../../renderedQuality-C5dQiq97.js';
|
|
4
|
+
import '../../renderer-6sFRupj0.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Rendering constants that quality inspection must agree with.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as C,b as D}from"../../chunk-
|
|
1
|
+
import{a as C,b as D}from"../../chunk-O5UWBFUT.js";import{A,B,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n,t as q,u as s,v as u,w as v,x as w,y,z}from"../../chunk-FMZ6HLDH.js";import"../../chunk-JBOTRSMY.js";export{j as ACCESS_GLYPH_PATH,h as ACCESS_GLYPH_VIEWBOX,i as ACCESS_TYPE_GLYPH_PATHS,s as AUTHORED_LABEL_MIN_CONTRAST,e as BOOTH_LABEL_FONT_SIZE,b as DARK_BOOKABLE_LABEL_INK,z as DARK_NEUTRAL_SECTION_FILL,m as GA_CAPACITY_LABEL_FONT_SIZE,p as GA_FILL_OPACITY,f as GA_LABEL_FONT_SIZE,a as LARGE_TEXT_CONTRAST,c as LIGHT_BOOKABLE_LABEL_INK,y as LIGHT_NEUTRAL_SECTION_FILL,t as MIN_VISIBLE_BOOKABLE_LABEL_PX,C as RENDERED_QUALITY_REPORT_VERSION,r as ROW_LABEL_FONT_SIZE,o as SEAT_LABEL_FONT_SIZE,x as SMALL_TEXT_CONTRAST,v as accessGlyphInk,k as accessGlyphPath,l as bookableMarkerLabel,q as compositeHexOver,D as inspectRenderedQualityEvidence,g as isBookableLabelLegibleAtScale,w as isLightFill,d as minimumTextContrast,A as neutralSectionFill,n as renderedTextContrast,u as stateAwareBookableLabelInk,B as summarizeLabelInkContrast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var i=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var x=(e,n)=>{for(var a in n)i(e,a,{get:n[a],enumerable:!0})},E=(e,n,a,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of v(n))!I.call(e,r)&&r!==a&&i(e,r,{get:()=>n[r],enumerable:!(t=S(n,r))||t.enumerable});return e};var C=e=>E(i({},"__esModule",{value:!0}),e);var X={};x(X,{DECOR_STAMP_ICON_PATHS:()=>P,DEFAULT_SHAPE_LINE_CAP:()=>y,DEFAULT_SHAPE_LINE_ENDING:()=>p,DEFAULT_SHAPE_LINE_JOIN:()=>b,SEAT_GLYPHS:()=>c,SEAT_GLYPH_DETAIL_MIN_PX:()=>te,SEAT_GLYPH_INSET:()=>re,SEAT_GLYPH_ORDER:()=>R,SEAT_GLYPH_VIEWBOX:()=>ae,SHAPE_LINE_CAPS:()=>j,SHAPE_LINE_ENDINGS:()=>Y,SHAPE_LINE_JOINS:()=>F,VENUE_ICONS:()=>o,VENUE_ICON_GROUP_LABELS:()=>O,VENUE_ICON_GROUP_ORDER:()=>Z,VENUE_ICON_KEYS:()=>B,VENUE_ICON_STROKE:()=>ee,VENUE_ICON_VIEWBOX:()=>$,buyerBackgroundImage:()=>d,buyerFacingChartDoc:()=>V,hasConflictingLegacyTrace:()=>H,isOpenShapeKind:()=>m,isPointShapeKind:()=>U,isSeatGlyphKind:()=>s,isVenueIconKey:()=>N,migrateLegacyBackgroundLayersInPlace:()=>_,resolveSeatGlyph:()=>D,resolvedShapeLineStyle:()=>J,seatGlyph:()=>h,seatGlyphFit:()=>T,seatGlyphLabel:()=>w,seatGlyphPath:()=>K,shapeArrowMetrics:()=>W,traceReferenceImage:()=>Q,venueIcon:()=>f,venueIconPath:()=>A});module.exports=C(X);function Q(e){return e.referenceImage??(e.backgroundImage?.assetId?e.backgroundImage:void 0)}function d(e){let n=e.backgroundImage;return n?.url&&!n.assetId?n:void 0}function u(e){let n=d(e);if(!n?.url)return;let{calibration:a,derivedScale:t,assetId:r,...k}=n;return k}function _(e){let n=a=>{let t=a.backgroundImage;t?.assetId&&(a.referenceImage||(a.referenceImage=t,a.backgroundImage=void 0))};n(e);for(let a of e.floors??[])n(a);return e}function g(e){let n={...e};return delete n.referenceScan,delete n.referenceInventorySource,delete n.referenceSource,delete n.referenceInventoryExclusion,delete n.editor,n}function G(e){let n={...e};return delete n.referenceCategorySource,n}function V(e){let n=u(e),a=e.floors?.map(t=>({...t,objects:t.objects.map(g),referenceImage:void 0,backgroundImage:u(t)}));return{...e,categories:e.categories.map(G),objects:e.objects.map(g),referenceImage:void 0,venueSurveyRegistrations:void 0,backgroundImage:n,...a?{floors:a}:{}}}function H(e){return!!e.referenceImage?.assetId&&!!e.backgroundImage?.assetId&&e.referenceImage.assetId!==e.backgroundImage.assetId}var $=24,ee=2,O={facilities:"Facilities","food-drink":"Food & drink",navigation:"Getting around",accessibility:"Accessibility"},Z=["facilities","food-drink","navigation","accessibility"],L="M13 4.6a1.6 1.6 0 1 0-3.2 0 1.6 1.6 0 0 0 3.2 0 M11 6.5V13h5l2.4 6 M15 16.4A5 5 0 1 1 9 11.3",o=[{key:"restroom-men",label:"Men's restroom",group:"facilities",path:"M16 7a4 4 0 1 0-8 0 4 4 0 0 0 8 0 M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},{key:"restroom-women",label:"Women's restroom",group:"facilities",path:"M15 5a3 3 0 1 0-6 0 3 3 0 0 0 6 0 M12 8l-4 10h8l-4-10 M10 18v4 M14 18v4"},{key:"restroom-accessible",label:"Accessible restroom",group:"facilities",path:L},{key:"first-aid",label:"First aid",group:"facilities",path:"M5 4h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z M12 8v8 M8 12h8"},{key:"coat-check",label:"Coat check",group:"facilities",path:"M12 6a2 2 0 0 1 0-4 2 2 0 0 1 1.6 3.2L21 13H3l8.4-7.8 M3 13h18"},{key:"atm",label:"ATM / cash",group:"facilities",path:"M2 6h20v12H2V6Z M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0 M6 9h.01 M18 15h.01"},{key:"info",label:"Info point",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M12 11v5 M12 8h.01"},{key:"lost-found",label:"Lost & found",group:"facilities",path:"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14 M16 16l5 5 M9 8.5a2 2 0 1 1 3 1.7c-.8.5-1 .8-1 1.8 M11 15h.01"},{key:"restrooms",label:"Restrooms",group:"facilities",path:"M6 3h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M9 18v-3.5a3 3 0 0 1 6 0V18"},{key:"charging",label:"Charging point",group:"facilities",path:"M3 8h13v8H3V8Z M16 10h3v4h-3 M9.6 9l-2 3.5h2.5l-1.5 3"},{key:"smoking",label:"Smoking area",group:"facilities",path:"M2 15h13v3H2v-3Z M18 16h2 M19 8c0 1 1 1.5 1 2.5S19 12 19 13"},{key:"no-smoking",label:"No smoking",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M5.6 5.6l12.8 12.8 M7 13h6v2H7v-2Z"},{key:"food",label:"Food",group:"food-drink",path:"M7 3v6a2 2 0 0 0 4 0V3 M9 11v10 M17 3c-1.6 1-2.2 3-2.2 6 0 2 .9 3.2 2.2 3.6V21"},{key:"bar",label:"Bar",group:"food-drink",path:"M4 5h16l-8 8-8-8Z M12 13v6 M8 20h8"},{key:"coffee",label:"Caf\xE9 / coffee",group:"food-drink",path:"M4 8h13v4a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V8Z M17 9h2a2 2 0 0 1 0 4h-2 M8 2v2 M11 2v2 M4 21h14"},{key:"water",label:"Water / drinks",group:"food-drink",path:"M12 22a7 7 0 0 1-7-7c0-5 7-12 7-12s7 7 7 12a7 7 0 0 1-7 7Z"},{key:"merch",label:"Merch / shop",group:"food-drink",path:"M6 8h12l-1 12H7L6 8Z M9 8V6a3 3 0 0 1 6 0v2"},{key:"screen",label:"Screen",group:"facilities",path:"M3 4h18v12H3V4Z M9 20h6 M12 16v4 M10 8l4 2-4 2V8Z"},{key:"sound-booth",label:"Sound booth",group:"facilities",path:"M6 4v16 M6 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4 M12 4v16 M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M18 4v16 M18 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4"},{key:"entrance",label:"Entrance",group:"navigation",path:"M14 3h5a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-5 M3 12h11 M10 8l4 4-4 4"},{key:"exit",label:"Exit",group:"navigation",path:"M10 3H5a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h5 M14 12h7 M17 8l4 4-4 4"},{key:"emergency-exit",label:"Emergency exit",group:"navigation",path:"M14 4.6a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0 M12.5 8l-3.5 2 1.6 3.6-2 4.4 M12.5 10l3.5 1.5 M9 10.5l-3.5 1 M15 12h6 M18 9l3 3-3 3"},{key:"stairs",label:"Stairs",group:"navigation",path:"M3 20v-4h4v-4h4v-4h4V4h5"},{key:"elevator",label:"Elevator",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M8 11l1.5-2 1.5 2 M8 14l1.5 2 1.5-2 M15 8v8"},{key:"parking",label:"Parking",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M9 17V7h4a3 3 0 0 1 0 6H9"},{key:"wheelchair",label:"Wheelchair access",group:"accessibility",path:L},{key:"hearing",label:"Hearing assistance",group:"accessibility",path:"M8 20a4 4 0 0 1-2-3c0-1 .5-2 .5-3a4.5 4.5 0 1 1 9 0c0 1.4-1 2-2 2.4-1.2.5-1.5 1-1.5 2.2 M17 6a5 5 0 0 1 1 6 M19.5 4a8 8 0 0 1 1.2 9"}],P={wall:"M3 5h18v14H3V5Z M3 9.7h18 M3 14.3h18 M9 5v4.7 M15 5v4.7 M6 9.7v4.6 M12 9.7v4.6 M18 9.7v4.6 M9 14.3v4.7 M15 14.3v4.7",rail:"M3 7h18 M4 17h16 M6 7v10 M10 7v10 M14 7v10 M18 7v10",suite:"M3 4h18v16H3V4Z M6 17v-5h12v5 M8 12V9h8v3",obstruction:"M8 3h8l-1 4v10l1 4H8l1-4V7L8 3Z M9 7h6 M9 17h6"},M=new Map(o.map(e=>[e.key,e]));function f(e){return e?M.get(e):void 0}function A(e){return f(e)?.path}function N(e){return typeof e=="string"&&M.has(e)}var B=o.map(e=>e.key);var ae=24,te=16,re=.14,c=[{key:"circle",label:"Standard seat",shortLabel:"Standard",useCase:"General assigned seating",group:"general",path:null,bounds:null},{key:"theatre",label:"Theatre chair",shortLabel:"Theatre",useCase:"Auditoriums, arenas and stadium stands",group:"fixed",path:"M4.5 3.5 Q4.5 1.5 6.5 1.5 L17.5 1.5 Q19.5 1.5 19.5 3.5 L19.5 13 L4.5 13 Z M3.5 12 L20.5 12 Q22.5 12 22.5 14 L22.5 21 Q22.5 22.5 21 22.5 Q19.5 22.5 19.5 21 L19.5 17.5 L4.5 17.5 L4.5 21 Q4.5 22.5 3 22.5 Q1.5 22.5 1.5 21 L1.5 14 Q1.5 12 3.5 12 Z",bounds:{x:1.5,y:1.5,width:21,height:21}},{key:"dining",label:"Dining chair",shortLabel:"Dining",useCase:"Banquets, restaurants and table seating",group:"flexible",path:"M7 1 Q6 1 6 2.5 L6.75 10.5 L5 10.5 Q4 10.5 4 12 L4 14 Q4 15 5.25 15 L6 15 L4 23 L7 23 L9.5 15 L14.5 15 L17 23 L20 23 L18 15 L18.75 15 Q20 15 20 14 L20 12 Q20 10.5 19 10.5 L17.25 10.5 L18 2.5 Q18 1 17 1 Z",bounds:{x:4,y:1,width:16,height:22}},{key:"folding",label:"Folding chair",shortLabel:"Folding",useCase:"Concert floors, ceremonies and conferences",group:"flexible",path:"M6 2 Q5 2 5 3 L6 8 L18 8 L19 3 Q19 2 18 2 Z M5 9 L19 9 Q20 9 20 10.5 L19 13 L5 13 L4 10.5 Q4 9 5 9 Z M6 12 L9 12 L12 17 L15 12 L18 12 L14 19 L17 23 L14 23 L12 21 L10 23 L7 23 L10 19 Z",bounds:{x:4,y:2,width:16,height:21}},{key:"armchair",label:"Premium armchair",shortLabel:"Armchair",useCase:"Boxes, lounges and club seating",group:"premium",path:"M3.5 4 Q3.5 1.5 6 1.5 L18 1.5 Q20.5 1.5 20.5 4 L20.5 13 L3.5 13 Z M1.5 12.5 Q1.5 10 3.25 10 Q5 10 5 12.5 L5 13.5 L19 13.5 L19 12.5 Q19 10 20.75 10 Q22.5 10 22.5 12.5 L22.5 19.5 Q22.5 22 20 22 L4 22 Q1.5 22 1.5 19.5 Z",bounds:{x:1.5,y:1.5,width:21,height:20.5}},{key:"recliner",label:"Recliner",shortLabel:"Recliner",useCase:"Luxury cinemas and premium clubs",group:"premium",path:"M7 2 Q7 1 8.5 1 L15.5 1 Q17 1 17 2 L19 13 L5 13 Z M4 9 Q2 9 2 11.5 L2 16 Q2 18 4 18 L6 18 L6 15 L18 15 L18 18 L20 18 Q22 18 22 16 L22 11.5 Q22 9 20 9 Q18 9 18 11 L18 13 L6 13 L6 11 Q6 9 4 9 Z M7 17 L17 17 Q18 17 18.5 18.5 L19.5 22.5 L4.5 22.5 L5.5 18.5 Q6 17 7 17 Z",bounds:{x:2,y:1,width:20,height:21.5}},{key:"stool",label:"Stool",shortLabel:"Stool",useCase:"Bars, high-tops and seating rails",group:"flexible",path:"M6 2.5 L18 2.5 Q22 2.5 22 6.5 L22 12 Q22 16 18 16 L6 16 Q2 16 2 12 L2 6.5 Q2 2.5 6 2.5 Z M6 15.5 L9.5 15.5 L7.5 22.5 L3 22.5 Z M14.5 15.5 L18 15.5 L20.5 22.5 L16 22.5 Z",bounds:{x:2,y:2.5,width:20,height:20}},{key:"bench",label:"Bench place",shortLabel:"Bench",useCase:"Pews, bleachers and terraces",group:"fixed",path:"M2.5 0.5 L21.5 0.5 Q23 0.5 23 2 L23 5 Q23 6.5 21.5 6.5 L2.5 6.5 Q1 6.5 1 5 L1 2 Q1 0.5 2.5 0.5 Z M2 7.5 L22 7.5 Q23.5 7.5 23.5 9 L23.5 15.5 Q23.5 17 22 17 L18 17 L18 21.5 Q18 22.5 16.75 22.5 Q15.5 22.5 15.5 21.5 L15.5 17 L8.5 17 L8.5 21.5 Q8.5 22.5 7.25 22.5 Q6 22.5 6 21.5 L6 17 L2 17 Q0.5 17 0.5 15.5 L0.5 9 Q0.5 7.5 2 7.5 Z",bounds:{x:.5,y:.5,width:23,height:22}}],R=c.map(e=>e.key),l=new Map(c.map(e=>[e.key,e]));function h(e){return l.get(e)??l.get("circle")}function w(e){return h(e).label}function K(e){return h(e).path}function T(e,n){return{scale:n*2*(1-.14)/Math.max(e.width,e.height),centreX:e.x+e.width/2,centreY:e.y+e.height/2}}function s(e){return typeof e=="string"&&l.has(e)}function D(e,n){return s(e)?e:s(n?.seatGlyph)?n.seatGlyph:"circle"}var j=["butt","round","square"],F=["miter","round","bevel"],Y=["none","arrow"],y="round",b="round",p="none";function m(e){return e==="line"||e==="polyline"}function U(e){return e==="polygon"||m(e)}function J(e){return{lineCap:e.lineCap??y,lineJoin:e.lineJoin??b,startEnding:e.startEnding??p,endEnding:e.endEnding??p}}function W(e){return{pointerLength:Math.min(48,Math.max(8,e*3)),pointerWidth:Math.min(40,Math.max(8,e*2.25))}}0&&(module.exports={DECOR_STAMP_ICON_PATHS,DEFAULT_SHAPE_LINE_CAP,DEFAULT_SHAPE_LINE_ENDING,DEFAULT_SHAPE_LINE_JOIN,SEAT_GLYPHS,SEAT_GLYPH_DETAIL_MIN_PX,SEAT_GLYPH_INSET,SEAT_GLYPH_ORDER,SEAT_GLYPH_VIEWBOX,SHAPE_LINE_CAPS,SHAPE_LINE_ENDINGS,SHAPE_LINE_JOINS,VENUE_ICONS,VENUE_ICON_GROUP_LABELS,VENUE_ICON_GROUP_ORDER,VENUE_ICON_KEYS,VENUE_ICON_STROKE,VENUE_ICON_VIEWBOX,buyerBackgroundImage,buyerFacingChartDoc,hasConflictingLegacyTrace,isOpenShapeKind,isPointShapeKind,isSeatGlyphKind,isVenueIconKey,migrateLegacyBackgroundLayersInPlace,resolveSeatGlyph,resolvedShapeLineStyle,seatGlyph,seatGlyphFit,seatGlyphLabel,seatGlyphPath,shapeArrowMetrics,traceReferenceImage,venueIcon,venueIconPath});
|
|
1
|
+
"use strict";var i=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var E=(e,n)=>{for(var t in n)i(e,t,{get:n[t],enumerable:!0})},C=(e,n,t,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of x(n))!I.call(e,r)&&r!==t&&i(e,r,{get:()=>n[r],enumerable:!(a=v(n,r))||a.enumerable});return e};var Q=e=>C(i({},"__esModule",{value:!0}),e);var q={};E(q,{DECOR_STAMP_ICON_PATHS:()=>Z,DEFAULT_SHAPE_LINE_CAP:()=>b,DEFAULT_SHAPE_LINE_ENDING:()=>h,DEFAULT_SHAPE_LINE_JOIN:()=>m,SEAT_GLYPHS:()=>c,SEAT_GLYPH_DETAIL_MIN_PX:()=>oe,SEAT_GLYPH_INSET:()=>se,SEAT_GLYPH_ORDER:()=>B,SEAT_GLYPH_VIEWBOX:()=>ie,SHAPE_LINE_CAPS:()=>Y,SHAPE_LINE_ENDINGS:()=>U,SHAPE_LINE_JOINS:()=>j,VENUE_ICONS:()=>o,VENUE_ICON_GROUP_LABELS:()=>H,VENUE_ICON_GROUP_ORDER:()=>A,VENUE_ICON_KEYS:()=>R,VENUE_ICON_STROKE:()=>ae,VENUE_ICON_VIEWBOX:()=>te,buyerBackgroundImage:()=>f,buyerFacingChartDoc:()=>V,hasConflictingLegacyTrace:()=>P,isOpenShapeKind:()=>k,isPointShapeKind:()=>J,isSeatGlyphKind:()=>l,isVenueIconKey:()=>T,migrateLegacyBackgroundLayersInPlace:()=>G,resolveSeatGlyph:()=>F,resolvedShapeLineStyle:()=>W,seatGlyph:()=>p,seatGlyphFit:()=>K,seatGlyphLabel:()=>w,seatGlyphPath:()=>D,shapeArrowMetrics:()=>X,traceReferenceImage:()=>_,venueIcon:()=>M,venueIconPath:()=>N});module.exports=Q(q);function u(e){let n=e;return delete n.referenceScan,delete n.referenceInventorySource,delete n.referenceInventoryExclusion,delete n.referenceSource,delete n.referenceAnnotationSource,e}function _(e){return e.referenceImage??(e.backgroundImage?.assetId?e.backgroundImage:void 0)}function f(e){let n=e.backgroundImage;return n?.url&&!n.assetId?n:void 0}function d(e){let n=f(e);if(!n?.url)return;let{calibration:t,derivedScale:a,assetId:r,...S}=n;return S}function G(e){let n=t=>{let a=t.backgroundImage;a?.assetId&&(t.referenceImage||(t.referenceImage=a,t.backgroundImage=void 0))};n(e);for(let t of e.floors??[])n(t);return e}function g(e){let n={...e};return u(n),delete n.editor,n}function O(e){let n={...e};return delete n.referenceCategorySource,delete n.referenceDirectSeatImport,n}function V(e){let n=d(e),t=e.floors?.map(a=>({...a,objects:a.objects.map(g),referenceImage:void 0,backgroundImage:d(a)}));return{...e,categories:e.categories.map(O),objects:e.objects.map(g),referenceImage:void 0,venueSurveyRegistrations:void 0,backgroundImage:n,...t?{floors:t}:{}}}function P(e){return!!e.referenceImage?.assetId&&!!e.backgroundImage?.assetId&&e.referenceImage.assetId!==e.backgroundImage.assetId}var te=24,ae=2,H={facilities:"Facilities","food-drink":"Food & drink",navigation:"Getting around",accessibility:"Accessibility"},A=["facilities","food-drink","navigation","accessibility"],L="M13 4.6a1.6 1.6 0 1 0-3.2 0 1.6 1.6 0 0 0 3.2 0 M11 6.5V13h5l2.4 6 M15 16.4A5 5 0 1 1 9 11.3",o=[{key:"restroom-men",label:"Men's restroom",group:"facilities",path:"M16 7a4 4 0 1 0-8 0 4 4 0 0 0 8 0 M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},{key:"restroom-women",label:"Women's restroom",group:"facilities",path:"M15 5a3 3 0 1 0-6 0 3 3 0 0 0 6 0 M12 8l-4 10h8l-4-10 M10 18v4 M14 18v4"},{key:"restroom-accessible",label:"Accessible restroom",group:"facilities",path:L},{key:"first-aid",label:"First aid",group:"facilities",path:"M5 4h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z M12 8v8 M8 12h8"},{key:"coat-check",label:"Coat check",group:"facilities",path:"M12 6a2 2 0 0 1 0-4 2 2 0 0 1 1.6 3.2L21 13H3l8.4-7.8 M3 13h18"},{key:"atm",label:"ATM / cash",group:"facilities",path:"M2 6h20v12H2V6Z M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0 M6 9h.01 M18 15h.01"},{key:"info",label:"Info point",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M12 11v5 M12 8h.01"},{key:"lost-found",label:"Lost & found",group:"facilities",path:"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14 M16 16l5 5 M9 8.5a2 2 0 1 1 3 1.7c-.8.5-1 .8-1 1.8 M11 15h.01"},{key:"restrooms",label:"Restrooms",group:"facilities",path:"M6 3h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M9 18v-3.5a3 3 0 0 1 6 0V18"},{key:"charging",label:"Charging point",group:"facilities",path:"M3 8h13v8H3V8Z M16 10h3v4h-3 M9.6 9l-2 3.5h2.5l-1.5 3"},{key:"smoking",label:"Smoking area",group:"facilities",path:"M2 15h13v3H2v-3Z M18 16h2 M19 8c0 1 1 1.5 1 2.5S19 12 19 13"},{key:"no-smoking",label:"No smoking",group:"facilities",path:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18 M5.6 5.6l12.8 12.8 M7 13h6v2H7v-2Z"},{key:"food",label:"Food",group:"food-drink",path:"M7 3v6a2 2 0 0 0 4 0V3 M9 11v10 M17 3c-1.6 1-2.2 3-2.2 6 0 2 .9 3.2 2.2 3.6V21"},{key:"bar",label:"Bar",group:"food-drink",path:"M4 5h16l-8 8-8-8Z M12 13v6 M8 20h8"},{key:"coffee",label:"Caf\xE9 / coffee",group:"food-drink",path:"M4 8h13v4a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V8Z M17 9h2a2 2 0 0 1 0 4h-2 M8 2v2 M11 2v2 M4 21h14"},{key:"water",label:"Water / drinks",group:"food-drink",path:"M12 22a7 7 0 0 1-7-7c0-5 7-12 7-12s7 7 7 12a7 7 0 0 1-7 7Z"},{key:"merch",label:"Merch / shop",group:"food-drink",path:"M6 8h12l-1 12H7L6 8Z M9 8V6a3 3 0 0 1 6 0v2"},{key:"screen",label:"Screen",group:"facilities",path:"M3 4h18v12H3V4Z M9 20h6 M12 16v4 M10 8l4 2-4 2V8Z"},{key:"sound-booth",label:"Sound booth",group:"facilities",path:"M6 4v16 M6 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4 M12 4v16 M12 8a2 2 0 1 0 0 4 2 2 0 0 0 0-4 M18 4v16 M18 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4"},{key:"entrance",label:"Entrance",group:"navigation",path:"M14 3h5a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-5 M3 12h11 M10 8l4 4-4 4"},{key:"exit",label:"Exit",group:"navigation",path:"M10 3H5a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h5 M14 12h7 M17 8l4 4-4 4"},{key:"emergency-exit",label:"Emergency exit",group:"navigation",path:"M14 4.6a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0 M12.5 8l-3.5 2 1.6 3.6-2 4.4 M12.5 10l3.5 1.5 M9 10.5l-3.5 1 M15 12h6 M18 9l3 3-3 3"},{key:"stairs",label:"Stairs",group:"navigation",path:"M3 20v-4h4v-4h4v-4h4V4h5"},{key:"elevator",label:"Elevator",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M8 11l1.5-2 1.5 2 M8 14l1.5 2 1.5-2 M15 8v8"},{key:"parking",label:"Parking",group:"navigation",path:"M5 3h14a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M9 17V7h4a3 3 0 0 1 0 6H9"},{key:"wheelchair",label:"Wheelchair access",group:"accessibility",path:L},{key:"hearing",label:"Hearing assistance",group:"accessibility",path:"M8 20a4 4 0 0 1-2-3c0-1 .5-2 .5-3a4.5 4.5 0 1 1 9 0c0 1.4-1 2-2 2.4-1.2.5-1.5 1-1.5 2.2 M17 6a5 5 0 0 1 1 6 M19.5 4a8 8 0 0 1 1.2 9"}],Z={wall:"M3 5h18v14H3V5Z M3 9.7h18 M3 14.3h18 M9 5v4.7 M15 5v4.7 M6 9.7v4.6 M12 9.7v4.6 M18 9.7v4.6 M9 14.3v4.7 M15 14.3v4.7",rail:"M3 7h18 M4 17h16 M6 7v10 M10 7v10 M14 7v10 M18 7v10",suite:"M3 4h18v16H3V4Z M6 17v-5h12v5 M8 12V9h8v3",obstruction:"M8 3h8l-1 4v10l1 4H8l1-4V7L8 3Z M9 7h6 M9 17h6"},y=new Map(o.map(e=>[e.key,e]));function M(e){return e?y.get(e):void 0}function N(e){return M(e)?.path}function T(e){return typeof e=="string"&&y.has(e)}var R=o.map(e=>e.key);var ie=24,oe=16,se=.14,c=[{key:"circle",label:"Standard seat",shortLabel:"Standard",useCase:"General assigned seating",group:"general",path:null,bounds:null},{key:"theatre",label:"Theatre chair",shortLabel:"Theatre",useCase:"Auditoriums, arenas and stadium stands",group:"fixed",path:"M4.5 3.5 Q4.5 1.5 6.5 1.5 L17.5 1.5 Q19.5 1.5 19.5 3.5 L19.5 13 L4.5 13 Z M3.5 12 L20.5 12 Q22.5 12 22.5 14 L22.5 21 Q22.5 22.5 21 22.5 Q19.5 22.5 19.5 21 L19.5 17.5 L4.5 17.5 L4.5 21 Q4.5 22.5 3 22.5 Q1.5 22.5 1.5 21 L1.5 14 Q1.5 12 3.5 12 Z",bounds:{x:1.5,y:1.5,width:21,height:21}},{key:"dining",label:"Dining chair",shortLabel:"Dining",useCase:"Banquets, restaurants and table seating",group:"flexible",path:"M7 1 Q6 1 6 2.5 L6.75 10.5 L5 10.5 Q4 10.5 4 12 L4 14 Q4 15 5.25 15 L6 15 L4 23 L7 23 L9.5 15 L14.5 15 L17 23 L20 23 L18 15 L18.75 15 Q20 15 20 14 L20 12 Q20 10.5 19 10.5 L17.25 10.5 L18 2.5 Q18 1 17 1 Z",bounds:{x:4,y:1,width:16,height:22}},{key:"folding",label:"Folding chair",shortLabel:"Folding",useCase:"Concert floors, ceremonies and conferences",group:"flexible",path:"M6 2 Q5 2 5 3 L6 8 L18 8 L19 3 Q19 2 18 2 Z M5 9 L19 9 Q20 9 20 10.5 L19 13 L5 13 L4 10.5 Q4 9 5 9 Z M6 12 L9 12 L12 17 L15 12 L18 12 L14 19 L17 23 L14 23 L12 21 L10 23 L7 23 L10 19 Z",bounds:{x:4,y:2,width:16,height:21}},{key:"armchair",label:"Premium armchair",shortLabel:"Armchair",useCase:"Boxes, lounges and club seating",group:"premium",path:"M3.5 4 Q3.5 1.5 6 1.5 L18 1.5 Q20.5 1.5 20.5 4 L20.5 13 L3.5 13 Z M1.5 12.5 Q1.5 10 3.25 10 Q5 10 5 12.5 L5 13.5 L19 13.5 L19 12.5 Q19 10 20.75 10 Q22.5 10 22.5 12.5 L22.5 19.5 Q22.5 22 20 22 L4 22 Q1.5 22 1.5 19.5 Z",bounds:{x:1.5,y:1.5,width:21,height:20.5}},{key:"recliner",label:"Recliner",shortLabel:"Recliner",useCase:"Luxury cinemas and premium clubs",group:"premium",path:"M7 2 Q7 1 8.5 1 L15.5 1 Q17 1 17 2 L19 13 L5 13 Z M4 9 Q2 9 2 11.5 L2 16 Q2 18 4 18 L6 18 L6 15 L18 15 L18 18 L20 18 Q22 18 22 16 L22 11.5 Q22 9 20 9 Q18 9 18 11 L18 13 L6 13 L6 11 Q6 9 4 9 Z M7 17 L17 17 Q18 17 18.5 18.5 L19.5 22.5 L4.5 22.5 L5.5 18.5 Q6 17 7 17 Z",bounds:{x:2,y:1,width:20,height:21.5}},{key:"stool",label:"Stool",shortLabel:"Stool",useCase:"Bars, high-tops and seating rails",group:"flexible",path:"M6 2.5 L18 2.5 Q22 2.5 22 6.5 L22 12 Q22 16 18 16 L6 16 Q2 16 2 12 L2 6.5 Q2 2.5 6 2.5 Z M6 15.5 L9.5 15.5 L7.5 22.5 L3 22.5 Z M14.5 15.5 L18 15.5 L20.5 22.5 L16 22.5 Z",bounds:{x:2,y:2.5,width:20,height:20}},{key:"bench",label:"Bench place",shortLabel:"Bench",useCase:"Pews, bleachers and terraces",group:"fixed",path:"M2.5 0.5 L21.5 0.5 Q23 0.5 23 2 L23 5 Q23 6.5 21.5 6.5 L2.5 6.5 Q1 6.5 1 5 L1 2 Q1 0.5 2.5 0.5 Z M2 7.5 L22 7.5 Q23.5 7.5 23.5 9 L23.5 15.5 Q23.5 17 22 17 L18 17 L18 21.5 Q18 22.5 16.75 22.5 Q15.5 22.5 15.5 21.5 L15.5 17 L8.5 17 L8.5 21.5 Q8.5 22.5 7.25 22.5 Q6 22.5 6 21.5 L6 17 L2 17 Q0.5 17 0.5 15.5 L0.5 9 Q0.5 7.5 2 7.5 Z",bounds:{x:.5,y:.5,width:23,height:22}}],B=c.map(e=>e.key),s=new Map(c.map(e=>[e.key,e]));function p(e){return s.get(e)??s.get("circle")}function w(e){return p(e).label}function D(e){return p(e).path}function K(e,n){return{scale:n*2*(1-.14)/Math.max(e.width,e.height),centreX:e.x+e.width/2,centreY:e.y+e.height/2}}function l(e){return typeof e=="string"&&s.has(e)}function F(e,n){return l(e)?e:l(n?.seatGlyph)?n.seatGlyph:"circle"}var Y=["butt","round","square"],j=["miter","round","bevel"],U=["none","arrow"],b="round",m="round",h="none";function k(e){return e==="line"||e==="polyline"}function J(e){return e==="polygon"||k(e)}function W(e){return{lineCap:e.lineCap??b,lineJoin:e.lineJoin??m,startEnding:e.startEnding??h,endEnding:e.endEnding??h}}function X(e){return{pointerLength:Math.min(48,Math.max(8,e*3)),pointerWidth:Math.min(40,Math.max(8,e*2.25))}}0&&(module.exports={DECOR_STAMP_ICON_PATHS,DEFAULT_SHAPE_LINE_CAP,DEFAULT_SHAPE_LINE_ENDING,DEFAULT_SHAPE_LINE_JOIN,SEAT_GLYPHS,SEAT_GLYPH_DETAIL_MIN_PX,SEAT_GLYPH_INSET,SEAT_GLYPH_ORDER,SEAT_GLYPH_VIEWBOX,SHAPE_LINE_CAPS,SHAPE_LINE_ENDINGS,SHAPE_LINE_JOINS,VENUE_ICONS,VENUE_ICON_GROUP_LABELS,VENUE_ICON_GROUP_ORDER,VENUE_ICON_KEYS,VENUE_ICON_STROKE,VENUE_ICON_VIEWBOX,buyerBackgroundImage,buyerFacingChartDoc,hasConflictingLegacyTrace,isOpenShapeKind,isPointShapeKind,isSeatGlyphKind,isVenueIconKey,migrateLegacyBackgroundLayersInPlace,resolveSeatGlyph,resolvedShapeLineStyle,seatGlyph,seatGlyphFit,seatGlyphLabel,seatGlyphPath,shapeArrowMetrics,traceReferenceImage,venueIcon,venueIconPath});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ChartDoc, l as Floor, o as ChartReferenceImage, d as SeatGlyphKind, p as Category, q as ShapeLineCap, r as ShapeLineEnding, s as ShapeLineJoin, t as ShapeObject } from '../../types-
|
|
1
|
+
import { C as ChartDoc, l as Floor, o as ChartReferenceImage, d as SeatGlyphKind, p as Category, q as ShapeLineCap, r as ShapeLineEnding, s as ShapeLineJoin, t as ShapeObject } from '../../types-D6-wLa-m.cjs';
|
|
2
2
|
|
|
3
3
|
type BackgroundOwner = Pick<ChartDoc, 'referenceImage' | 'backgroundImage'> | Pick<Floor, 'referenceImage' | 'backgroundImage'>;
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ChartDoc, l as Floor, o as ChartReferenceImage, d as SeatGlyphKind, p as Category, q as ShapeLineCap, r as ShapeLineEnding, s as ShapeLineJoin, t as ShapeObject } from '../../types-
|
|
1
|
+
import { C as ChartDoc, l as Floor, o as ChartReferenceImage, d as SeatGlyphKind, p as Category, q as ShapeLineCap, r as ShapeLineEnding, s as ShapeLineJoin, t as ShapeObject } from '../../types-D6-wLa-m.js';
|
|
2
2
|
|
|
3
3
|
type BackgroundOwner = Pick<ChartDoc, 'referenceImage' | 'backgroundImage'> | Pick<Floor, 'referenceImage' | 'backgroundImage'>;
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{A as I,B as J,d,e as g,f as h,g as i,h as j,i as k,j as l,k as n,l as q,m as s,n as u,o as v,p as w,q as y,r as z,s as A,t as B,u as C,v as D,w as E,x as F,y as G,z as H}from"../../chunk-HXYWP6NX.js";import{a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c}from"../../chunk-UL5OIGIF.js";export{u as DECOR_STAMP_ICON_PATHS,D as DEFAULT_SHAPE_LINE_CAP,F as DEFAULT_SHAPE_LINE_ENDING,E as DEFAULT_SHAPE_LINE_JOIN,f as SEAT_GLYPHS,r as SEAT_GLYPH_DETAIL_MIN_PX,e as SEAT_GLYPH_INSET,m as SEAT_GLYPH_ORDER,o as SEAT_GLYPH_VIEWBOX,A as SHAPE_LINE_CAPS,C as SHAPE_LINE_ENDINGS,B as SHAPE_LINE_JOINS,s as VENUE_ICONS,n as VENUE_ICON_GROUP_LABELS,q as VENUE_ICON_GROUP_ORDER,z as VENUE_ICON_KEYS,l as VENUE_ICON_STROKE,k as VENUE_ICON_VIEWBOX,g as buyerBackgroundImage,i as buyerFacingChartDoc,j as hasConflictingLegacyTrace,G as isOpenShapeKind,H as isPointShapeKind,b as isSeatGlyphKind,y as isVenueIconKey,h as migrateLegacyBackgroundLayersInPlace,c as resolveSeatGlyph,I as resolvedShapeLineStyle,p as seatGlyph,a as seatGlyphFit,t as seatGlyphLabel,x as seatGlyphPath,J as shapeArrowMetrics,d as traceReferenceImage,v as venueIcon,w as venueIconPath};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as Point, R as RowObject, j as SeatOverride } from '../../types-
|
|
2
|
-
export { D as DEFAULT_SECTION_CORNER_SMOOTHING, M as MAX_EDGE_SAGITTA_RATIO, R as RelabelOptions, S as SectionOutlineDerivation, c as cornerSmoothingThresholdDeg, i as indexLabel, r as relabelRows, a as reverseSectionOutlinePath, s as sampleSectionOutlinePath, b as sectionCornerSmoothingPath, d as sectionOutlinePathFrom, e as sectionPathSegmentEnd, t as toBijectiveBase, f as toLetters, g as toRoman, h as transformSectionOutlinePath, j as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-
|
|
1
|
+
import { P as Point, R as RowObject, j as SeatOverride } from '../../types-D6-wLa-m.cjs';
|
|
2
|
+
export { D as DEFAULT_SECTION_CORNER_SMOOTHING, M as MAX_EDGE_SAGITTA_RATIO, R as RelabelOptions, S as SectionOutlineDerivation, c as cornerSmoothingThresholdDeg, i as indexLabel, r as relabelRows, a as reverseSectionOutlinePath, s as sampleSectionOutlinePath, b as sectionCornerSmoothingPath, d as sectionOutlinePathFrom, e as sectionPathSegmentEnd, t as toBijectiveBase, f as toLetters, g as toRoman, h as transformSectionOutlinePath, j as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-9RWWmJhZ.cjs';
|
|
3
3
|
export { SeatConfidenceDisclosure, seatConfidenceDisclosure } from '../seatConfidence.cjs';
|
|
4
|
-
import { S as SegmentedRowPlacement } from '../../segmentedRowModel-
|
|
5
|
-
export { A as AvailabilityRule, S as SectionNode, T as TIER_HEIGHT_M, U as UNGROUPED_ID, a as applyHidden, c as computeSections, h as hiddenObjectIds, i as isSectionHidden, s as sectionGeometry } from '../../sections-
|
|
6
|
-
import { E as ExpandedSeat } from '../../renderer-
|
|
4
|
+
import { S as SegmentedRowPlacement } from '../../segmentedRowModel-CKmyHvKv.cjs';
|
|
5
|
+
export { A as AvailabilityRule, S as SectionNode, T as TIER_HEIGHT_M, U as UNGROUPED_ID, a as applyHidden, c as computeSections, h as hiddenObjectIds, i as isSectionHidden, s as sectionGeometry } from '../../sections-DU6YDYoZ.cjs';
|
|
6
|
+
import { E as ExpandedSeat } from '../../renderer-CBOo1OZk.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* THE bowl resolver — whether a floor's stands wrap a centre, and the smooth
|
|
@@ -214,7 +214,7 @@ declare function buildSectionRake(rows: RakeRow[], focal: Point): SectionRake;
|
|
|
214
214
|
* caller). Applies the row's numbering scheme, direction, step, start and label
|
|
215
215
|
* prefix. Labels only — never geometry. See `RowObject.seatNumbering.scheme`.
|
|
216
216
|
*/
|
|
217
|
-
declare function seatLabelPart(row: RowObject, i: number): string;
|
|
217
|
+
declare function seatLabelPart(row: Pick<RowObject, 'seatCount' | 'seatLabelStart' | 'seatNumbering'>, i: number): string;
|
|
218
218
|
/**
|
|
219
219
|
* The synthetic row that DISPLAY numbering is computed against.
|
|
220
220
|
*
|
|
@@ -234,7 +234,7 @@ declare function logicalNumberingRow(placement: SegmentedRowPlacement): RowObjec
|
|
|
234
234
|
* physical index within it. A seat-level override wins because it was authored
|
|
235
235
|
* deliberately.
|
|
236
236
|
*/
|
|
237
|
-
declare function seatInventoryLabel(row: RowObject, physicalIndex: number, override?: SeatOverride): string;
|
|
237
|
+
declare function seatInventoryLabel(row: Pick<RowObject, 'label' | 'seatCount' | 'seatLabelStart' | 'seatNumbering'>, physicalIndex: number, override?: SeatOverride): string;
|
|
238
238
|
/**
|
|
239
239
|
* The seat's HUMAN-FACING label.
|
|
240
240
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as Point, R as RowObject, j as SeatOverride } from '../../types-
|
|
2
|
-
export { D as DEFAULT_SECTION_CORNER_SMOOTHING, M as MAX_EDGE_SAGITTA_RATIO, R as RelabelOptions, S as SectionOutlineDerivation, c as cornerSmoothingThresholdDeg, i as indexLabel, r as relabelRows, a as reverseSectionOutlinePath, s as sampleSectionOutlinePath, b as sectionCornerSmoothingPath, d as sectionOutlinePathFrom, e as sectionPathSegmentEnd, t as toBijectiveBase, f as toLetters, g as toRoman, h as transformSectionOutlinePath, j as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-
|
|
1
|
+
import { P as Point, R as RowObject, j as SeatOverride } from '../../types-D6-wLa-m.js';
|
|
2
|
+
export { D as DEFAULT_SECTION_CORNER_SMOOTHING, M as MAX_EDGE_SAGITTA_RATIO, R as RelabelOptions, S as SectionOutlineDerivation, c as cornerSmoothingThresholdDeg, i as indexLabel, r as relabelRows, a as reverseSectionOutlinePath, s as sampleSectionOutlinePath, b as sectionCornerSmoothingPath, d as sectionOutlinePathFrom, e as sectionPathSegmentEnd, t as toBijectiveBase, f as toLetters, g as toRoman, h as transformSectionOutlinePath, j as translateSectionOutlinePath, v as validSectionOutlinePath } from '../../labeling-BiWB-8aq.js';
|
|
3
3
|
export { SeatConfidenceDisclosure, seatConfidenceDisclosure } from '../seatConfidence.js';
|
|
4
|
-
import { S as SegmentedRowPlacement } from '../../segmentedRowModel-
|
|
5
|
-
export { A as AvailabilityRule, S as SectionNode, T as TIER_HEIGHT_M, U as UNGROUPED_ID, a as applyHidden, c as computeSections, h as hiddenObjectIds, i as isSectionHidden, s as sectionGeometry } from '../../sections-
|
|
6
|
-
import { E as ExpandedSeat } from '../../renderer-
|
|
4
|
+
import { S as SegmentedRowPlacement } from '../../segmentedRowModel-DbP7pWUk.js';
|
|
5
|
+
export { A as AvailabilityRule, S as SectionNode, T as TIER_HEIGHT_M, U as UNGROUPED_ID, a as applyHidden, c as computeSections, h as hiddenObjectIds, i as isSectionHidden, s as sectionGeometry } from '../../sections-Cn_sk1Sx.js';
|
|
6
|
+
import { E as ExpandedSeat } from '../../renderer-6sFRupj0.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* THE bowl resolver — whether a floor's stands wrap a centre, and the smooth
|
|
@@ -214,7 +214,7 @@ declare function buildSectionRake(rows: RakeRow[], focal: Point): SectionRake;
|
|
|
214
214
|
* caller). Applies the row's numbering scheme, direction, step, start and label
|
|
215
215
|
* prefix. Labels only — never geometry. See `RowObject.seatNumbering.scheme`.
|
|
216
216
|
*/
|
|
217
|
-
declare function seatLabelPart(row: RowObject, i: number): string;
|
|
217
|
+
declare function seatLabelPart(row: Pick<RowObject, 'seatCount' | 'seatLabelStart' | 'seatNumbering'>, i: number): string;
|
|
218
218
|
/**
|
|
219
219
|
* The synthetic row that DISPLAY numbering is computed against.
|
|
220
220
|
*
|
|
@@ -234,7 +234,7 @@ declare function logicalNumberingRow(placement: SegmentedRowPlacement): RowObjec
|
|
|
234
234
|
* physical index within it. A seat-level override wins because it was authored
|
|
235
235
|
* deliberately.
|
|
236
236
|
*/
|
|
237
|
-
declare function seatInventoryLabel(row: RowObject, physicalIndex: number, override?: SeatOverride): string;
|
|
237
|
+
declare function seatInventoryLabel(row: Pick<RowObject, 'label' | 'seatCount' | 'seatLabelStart' | 'seatNumbering'>, physicalIndex: number, override?: SeatOverride): string;
|
|
238
238
|
/**
|
|
239
239
|
* The seat's HUMAN-FACING label.
|
|
240
240
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ChartObject, C as ChartDoc } from './types-
|
|
1
|
+
import { a as ChartObject, C as ChartDoc } from './types-D6-wLa-m.cjs';
|
|
2
2
|
|
|
3
3
|
declare const EVENT_CONFIGURATION_SCHEMA: "seatlayer.event-configuration/1";
|
|
4
4
|
declare const EVENT_CONFIGURATION_EXPORT_SCHEMA: "seatlayer.event-configuration-export/1";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ChartObject, C as ChartDoc } from './types-
|
|
1
|
+
import { a as ChartObject, C as ChartDoc } from './types-D6-wLa-m.js';
|
|
2
2
|
|
|
3
3
|
declare const EVENT_CONFIGURATION_SCHEMA: "seatlayer.event-configuration/1";
|
|
4
4
|
declare const EVENT_CONFIGURATION_EXPORT_SCHEMA: "seatlayer.event-configuration-export/1";
|