@seatlayer/js 0.109.1 → 0.109.2
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/{channelsMode-CcOZSm0j.d.cts → channelsMode-CVhVwfEC.d.cts} +17 -1
- package/dist/{channelsMode-CcOZSm0j.d.ts → channelsMode-CVhVwfEC.d.ts} +17 -1
- package/dist/{channelsMode-W5KNSQSJ.js → channelsMode-JF2EUOZY.js} +1 -1
- package/dist/{chunk-CNLSM36T.js → chunk-DO536AZM.js} +1 -6
- package/dist/index.cjs +20 -50
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -35
- package/dist/manager.cjs +130 -193
- package/dist/manager.d.cts +2 -2
- package/dist/manager.d.ts +2 -2
- package/dist/manager.js +27 -81
- package/dist/{managerExtras-CHNB5GFR.js → managerExtras-4NVAPHFZ.js} +1 -5
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, SeatPriceMap, ChartTheme, AccessibilityType, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AccessibleSectionStep, AvailabilityRefreshOutcome, RendererMinimapSnapshot, ISeatmapRenderer, PickerController, ExpandedSeat, TableSelectionDetails, PickerSalesState } from '@seatlayer/core';
|
|
2
2
|
export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
|
|
3
|
-
import { T as ThemeMode } from './channelsMode-
|
|
4
|
-
export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-
|
|
3
|
+
import { T as ThemeMode } from './channelsMode-CVhVwfEC.cjs';
|
|
4
|
+
export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-CVhVwfEC.cjs';
|
|
5
5
|
import * as _seatlayer_core_core_seatConfidence from '@seatlayer/core/core/seatConfidence';
|
|
6
6
|
import { SeatConfidenceDisclosure } from '@seatlayer/core/core/seatConfidence';
|
|
7
7
|
import { SeatViewStopName, Venue3DHandle, SeatState3D, SeatView } from '@seatlayer/core/view3d';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, SeatPriceMap, ChartTheme, AccessibilityType, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AccessibleSectionStep, AvailabilityRefreshOutcome, RendererMinimapSnapshot, ISeatmapRenderer, PickerController, ExpandedSeat, TableSelectionDetails, PickerSalesState } from '@seatlayer/core';
|
|
2
2
|
export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
|
|
3
|
-
import { T as ThemeMode } from './channelsMode-
|
|
4
|
-
export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-
|
|
3
|
+
import { T as ThemeMode } from './channelsMode-CVhVwfEC.js';
|
|
4
|
+
export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-CVhVwfEC.js';
|
|
5
5
|
import * as _seatlayer_core_core_seatConfidence from '@seatlayer/core/core/seatConfidence';
|
|
6
6
|
import { SeatConfidenceDisclosure } from '@seatlayer/core/core/seatConfidence';
|
|
7
7
|
import { SeatViewStopName, Venue3DHandle, SeatState3D, SeatView } from '@seatlayer/core/view3d';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as bi,b,c as Ye,d as yi,e as qo,f as Wo,g as _,h as Yo,i as vi,j as wi,k as xi,l as ki,m as gt,n as Zo,o as Qo,p as Xo,q as Jo,r as es,s as Si,t as ns,u as os}from"./chunk-U2Z2AGRX.js";import{a as Uo}from"./chunk-ICMSBXRJ.js";import{a as ts,b as is,d as Ti,e as bt,f as Ei,g as yt}from"./chunk-UBFNMA7U.js";import{a as h,b as C,c as x,d as w}from"./chunk-OSZ7DOEH.js";import{PickerController as Ap,formatMoney as sn,getLocale as to,loadLocale as Pp,localeDirection as Lp,LOCALE_NAMES as Mp,resolveLocale as Hp,seatPriceEntry as Rp,setStringOverrides as Ip,t as we}from"@seatlayer/core";var zc=/^[0-9A-Za-z.+-]{1,24}$/,jc=zc.test("0.109.1")?"0.109.1":"",Gc={host:"web",platform:"web",bundle:jc,protocol:0,chromeOwner:"web"},Kc={...Gc},Ci=null,ss=null;function Uc(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():0}function qc(){let i=e=>Math.max(0,Math.round(e*100)/100);return{bootMs:i(Uc()),documentMs:Ci==null?0:i(Ci),handshakeMs:Ci==null||ss==null?0:i(ss-Ci)}}function rs(){let{host:i,platform:e,bundle:t,protocol:n,chromeOwner:o}=Kc,s=qc();return{host:i,platform:e,...t?{bundle:t}:{},...n?{protocol:n}:{},chromeOwner:o,bootMs:s.bootMs,documentMs:s.documentMs,handshakeMs:s.handshakeMs}}var as=new Set,ls=new Map;function Ee(i){return as.has(i)?"repeat":"cold"}function Ai(i){let e=Ee(i);return as.add(i),e}function re(i){return typeof i=="number"&&Number.isFinite(i)&&i>=0?Math.round(i):0}function Wt(){return typeof location>"u"?!1:/^(localhost|127\.0\.0\.1|\[::1\])$/i.test(location.hostname)}function Wc(i){if(!/^[A-Za-z0-9_-]{1,80}$/.test(i.event))return null;let e=i.performanceProfile??{};return{event:i.event,scope:i.scope,surface:i.surface,outcome:i.outcome,stage:i.stage?.slice(0,32)??"",ms:re(i.ms),api:re(e.loadChartAndStatuses)||re(e.loadChart),scene:re(e.buildScene),panel:re(e.buildBuyerControls),paint:re(e.firstPaint),normalize:re(e.normalizeBuyerModel),renderer:re(e.createRenderer),seats:re(i.seats),floors:re(i.floors),view:i.view??"map",load:i.load??Ee(i.event),transport:i.transport??"pubapi",...rs(),availabilityMs:re(e.loadStatuses),...typeof i.revealWaitMs=="number"?{revealWaitMs:re(i.revealWaitMs)}:{},...typeof i.handoverMs=="number"?{handoverMs:re(i.handoverMs)}:{},mounts:(ls.get(i.event)??0)+1,reconnects:re(i.reconnects)}}var Yc=new Set;function ye(i){let e=Wc(i);if(e){ls.set(i.event,e.mounts);for(let t of Yc)try{t(e)}catch{}typeof fetch>"u"||Wt()||fetch(`${i.apiBase.replace(/\/+$/,"")}/pub/telemetry/chart-load`,{method:"POST",headers:{"Content-Type":"application/json","X-SeatLayer-Client":"1"},body:JSON.stringify(e),credentials:"omit",keepalive:!0}).catch(()=>{})}}var Zc="realtime.fallback_polling",cs=new Set;function Qc(i){let e=/^(wss?):\/\/([^/]+)(.*?)\/pub\/events\/([^/?#]+)\/subscribe(?:[?#]|$)/.exec(i);if(!e)return null;let t;try{t=decodeURIComponent(e[4])}catch{return null}return/^[A-Za-z0-9_-]{1,80}$/.test(t)?{apiBase:`${e[1]==="wss"?"https":"http"}://${e[2]}${e[3]}`,eventKey:t}:null}function ds(i){let e=Qc(i);return!e||cs.has(e.eventKey)||(cs.add(e.eventKey),typeof fetch>"u"||Wt())?!1:(fetch(`${e.apiBase}/pub/telemetry/client-error`,{method:"POST",headers:{"Content-Type":"application/json","X-SeatLayer-Client":"1"},body:JSON.stringify({surface:"picker",errorCode:Zc,eventKey:e.eventKey}),credentials:"omit",keepalive:!0}).catch(()=>{}),!0)}var Ze="seatlayer.v1",ps="\0",hs=4401,Xc=15e3,Jc=25e3,ed=1e4,us=5e3,td=JSON.stringify({type:"resume"}),id=3e4,nd=6e4,od=["pointermove","touchstart","keydown"],sd=3,rd=15e3,ms=6e4;function ad(i){let e=typeof i.default=="string"?i.default:"free",t={};if(i.seats&&typeof i.seats=="object")for(let[n,o]of Object.entries(i.seats))typeof o=="string"&&o!==e&&(t[n]=o);return{default:e,exceptions:t}}function ld(i,e){if(!i||i.default!==e.default)return null;let t=[];for(let[n,o]of Object.entries(e.exceptions))i.exceptions[n]!==o&&t.push({label:n,status:o});for(let n of Object.keys(i.exceptions))n in e.exceptions||t.push({label:n,status:e.default});return t}function cd(i,e){for(let t of e)t.status===i.default?delete i.exceptions[t.label]:i.exceptions[t.label]=t.status}function fs(i){if(/(?:^|[?&#])(?:token|access_token|bearer|authorization|ticket|tkt|bse)=/i.test(i))throw new Error("seatlayer: refusing to open a socket with a credential in the URL");if(/\bbse_[A-Za-z0-9._-]+/.test(i))throw new Error("seatlayer: refusing to open a socket with a credential in the URL")}var Ce=class{constructor(e){this.ws=null;this.watched=null;this.stopped=!0;this.attempt=0;this.reconnectTimer=null;this.pingTimer=null;this.pongTimer=null;this.resumeTimer=null;this.projection=null;this.version=null;this.v1=!1;this.useQueryMarker=!1;this.hidden=null;this.closedSections=null;this.failedUpgrades=0;this.pollTimer=null;this.fellBack=!1;this.lastWake=-1/0;this.lastInput=0;this.detachWake=null;this.reconnectCount=0;this.opts=e,typeof e.url=="string"&&fs(e.url)}get polling(){return this.pollTimer!==null}get protocol(){return this.ws?this.v1?"v1":"legacy":null}get snapshotVersion(){return this.version}start(){this.stopped&&(this.stopped=!1,this.attachWake(),this.connect())}stop(){this.stopped=!0,this.clearTimers(),this.stopPolling(),this.detachWake?.(),this.detachWake=null;let e=this.ws;if(this.ws=null,e){e.onopen=null,e.onmessage=null,e.onclose=null,e.onerror=null;try{e.close()}catch{}}}restart(){this.stop(),this.projection=null,this.version=null,this.attempt=0,this.failedUpgrades=0,this.start()}async connect(){if(this.stopped)return;let e=[Ze];if(this.opts.mintTicket){let a;try{a=await this.opts.mintTicket()}catch(l){this.reportIfAccessError(l),this.scheduleReconnect();return}if(this.stopped)return;a?.protocols?.length?(e=[...a.protocols],e.includes(Ze)||e.unshift(Ze)):a?.ticket&&(e=[Ze,`tkt.${a.ticket}`])}let t=this.version!==null;t&&e.push(`sv.${this.version}`);let n=typeof this.opts.url=="function"?this.opts.url():this.opts.url,o=this.useQueryMarker?`${n}${n.includes("?")?"&":"?"}pv=1`:n;fs(o);let s;try{s=(this.opts.socketFactory??((l,c)=>new WebSocket(l,c)))(o,e)}catch{this.upgradeFailed(),this.scheduleReconnect();return}this.ws=s;let r=!1;s.onopen=()=>{this.ws===s&&(r=!0,this.attempt=0,this.failedUpgrades=0,this.stopPolling(),this.v1=s.protocol===Ze,this.v1||(this.useQueryMarker=!0),this.startKeepalive(s),this.watched=null,this.watchHold(this.opts.heldHoldId?.()??null),t?this.resumeTimer=setTimeout(()=>{this.resumeTimer=null,this.opts.sink.resync()},us):this.resumeTimer=setTimeout(()=>{this.resumeTimer=null,this.opts.sink.resync({reason:"connect"})},us))},s.onmessage=a=>{if(this.ws!==s)return;let l;try{l=JSON.parse(typeof a.data=="string"?a.data:"")}catch{return}!l||typeof l!="object"||this.handleFrame(l)},s.onclose=a=>{if(this.ws===s){if(this.ws=null,this.clearTimers(),!r&&a?.code!==hs&&this.upgradeFailed(),a?.code===hs){if(a.reason==="access_expired"){this.scheduleReconnect();return}if(a.reason==="idle_expired"&&this.opts.onIdleExpired){this.stopped=!0,this.stopPolling(),this.opts.onIdleExpired();return}this.stopped=!0,this.stopPolling(),this.opts.onAccessUnavailable?.({reason:"revoked",code:"access_revoked",retryable:!1});return}this.scheduleReconnect()}},s.onerror=()=>{try{s.close()}catch{}}}watchHold(e){let t=this.ws;if(!(!e||e===this.watched||!t||t.readyState!==1))try{t.send(JSON.stringify({type:"watch",holdId:e})),this.watched=e}catch{}}handleFrame(e){let t=typeof e.type=="string"?e.type:"";if(e.protocol===1&&(this.v1=!0),typeof e.snapshotVersion=="number"&&(this.version=e.snapshotVersion),t==="pong"){this.clearPongTimer();return}if(t==="sales"){this.opts.sink.onSales?.(e);return}if(Array.isArray(e.hidden)||Array.isArray(e.closed)){let n=Array.isArray(e.hidden)?e.hidden:[],o=Array.isArray(e.closed)?e.closed:[],s=n.join(ps),r=o.join(ps);(s!==this.hidden||r!==this.closedSections)&&(this.hidden=s,this.closedSections=r,this.opts.sink.onSections?.(n,o,{withInventory:t==="snapshot"||!!e.seats}))}if(t!=="hidden"){if(t==="hold"){typeof e.holdId=="string"&&typeof e.state=="string"&&this.opts.onHoldState?.(e.holdId,e.state);return}if(t==="presence"){this.opts.sink.onPresence?.({shoppingSessions:Number(e.shoppingSessions)||0,activeHolds:Number(e.activeHolds)||0});return}if(t!=="allocation"){if(t==="snapshot"||!t&&e.seats){this.answered();let n=ad(e),o=ld(this.projection,n);this.projection=n,o===null?this.opts.sink.applyProjection?this.opts.sink.applyProjection(n):this.opts.sink.resync():o.length&&this.opts.sink.applyStatuses(o);return}if(t==="delta"&&Array.isArray(e.changes)){this.answered();let n=e.changes.filter(o=>typeof o?.label=="string"&&typeof o?.status=="string").map(o=>({label:o.label,status:o.status}));if(!n.length)return;this.projection&&cd(this.projection,n),this.opts.sink.applyStatuses(n)}}}}answered(){this.resumeTimer&&(clearTimeout(this.resumeTimer),this.resumeTimer=null)}reportIfAccessError(e){let t=e?.reason;e?.name==="BuyerAccessUnavailableError"&&(this.stopped=!0,this.stopPolling(),this.opts.onAccessUnavailable?.({reason:t??"invalid",code:e.code,status:e.status,retryable:t==="paused"}))}upgradeFailed(){this.failedUpgrades+=1,this.failedUpgrades>=sd&&this.startPolling()}startPolling(){if(!(this.pollTimer||this.stopped)){if(!this.fellBack){this.fellBack=!0;try{this.opts.onFallbackPolling?.()}catch{}let e=typeof this.opts.url=="function"?this.opts.url():this.opts.url;ds(e)}this.pollTimer=setInterval(()=>{if(this.stopped){this.stopPolling();return}typeof document<"u"&&document.hidden||Promise.resolve().then(()=>this.opts.poll?this.opts.poll():this.opts.sink.resync({reason:"frame"})).catch(()=>{})},rd)}}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}now(){return this.opts.now?this.opts.now():Date.now()}attachWake(){if(this.detachWake||typeof document>"u"||typeof window>"u"||typeof document.addEventListener!="function"||typeof window.addEventListener!="function")return;this.lastInput=this.now();let e=()=>{document.visibilityState==="visible"&&this.wake()},t=()=>{let s=this.now(),r=s-this.lastInput>=nd;this.lastInput=s,r&&this.wake()},n={capture:!0,passive:!0},o=s=>{document[s]("visibilitychange",e),window[s]("focus",e);for(let r of od)document[s](r,t,n)};o("addEventListener"),this.detachWake=()=>o("removeEventListener")}wake(){let e=this.ws;if(!e||e.readyState!==1)return;let t=this.now();if(!(t-this.lastWake<id)){try{e.send(td)}catch{return}this.lastWake=t}}startKeepalive(e){this.pingTimer=setInterval(()=>{if(this.ws===e){try{e.send(JSON.stringify({type:"ping"}))}catch{return}this.clearPongTimer(),this.pongTimer=setTimeout(()=>{this.pongTimer=null;try{e.close()}catch{}},ed)}},Jc)}scheduleReconnect(){if(this.stopped||this.reconnectTimer)return;let e=Math.min(this.attempt++,5),t=Math.min(1e3*2**e,Xc),n=this.pollTimer?ms/2+Math.random()*ms/2:Math.random()*t;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.reconnectCount+=1,this.connect()},n)}get reconnects(){return this.reconnectCount}clearPongTimer(){this.pongTimer&&(clearTimeout(this.pongTimer),this.pongTimer=null)}clearTimers(){this.pingTimer&&clearInterval(this.pingTimer),this.pingTimer=null,this.clearPongTimer(),this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null,this.resumeTimer&&clearTimeout(this.resumeTimer),this.resumeTimer=null}};function dd(i){return i==="blocked"?"not_for_sale":i==="unavailable"?"held":i==="held"||i==="booked"||i==="free"||i==="not_for_sale"?i:"free"}var pd="#f43f5e";function Yt(i,e={}){let t=n=>{let o=i.tableSelection(n);if(o)return o.physicalSeatIds;let s=i.idForLabel(n);return s?[s]:[]};return{applyStatuses(n){let o=new Set([...i.currentHold()?.labels??[],...e.ownLabels?.()??[]]),s={free:[],held:[],booked:[],not_for_sale:[]},r=[],a=[],l=new Map(i.getSelection().map(c=>[c.label,c.id]));for(let c of n){let d=t(c.label);if(!d.length)continue;let u=dd(c.status);if(s[u].push(...d),e.flashOnLiveChange&&u!=="free"&&!o.has(c.label)&&d.some(m=>i.getStatus(m)==="free"))for(let m of d)r.push({id:m,color:pd});u!=="free"&&!o.has(c.label)&&l.has(c.label)&&a.push(c.label)}for(let c of["free","held","booked","not_for_sale"])s[c].length&&i.setStatus(s[c],c);for(let c of r)i.flashSeat(c.id,c.color);if(a.length){let c=a.flatMap(u=>t(u));c.length&&i.deselect(c);let d=n.some(u=>u.status==="blocked"&&a.includes(u.label));e.onSelectedObjectUnavailable?.(a,d?"ineligible":"taken")}e.onStatusChange?.()},...i.applyProjection?{applyProjection:n=>{i.applyProjection(n)}}:{},async resync(n){await(i.resync?i.resync(n):i.refresh())},onSections(n,o,s){s?.withInventory||(i.resync?i.resync({reason:"frame"}):i.refresh()),e.onSections?.(n,o,s)}}}var Qe="pricingContract=matrix-v1&pricingContract=seat-v1",V=class extends Error{constructor(e,t,n,o,s,r,a,l){super(t),this.name="ApiError",this.status=e,this.code=n,this.conflicts=o,this.reason=s,this.retryAfterS=r,this.notice=a,l?.fields&&(this.fields=l.fields),typeof l?.retryable=="boolean"&&(this.retryable=l.retryable),l?.hint&&(this.hint=l.hint),l?.serverMessage&&(this.serverMessage=l.serverMessage)}},gs=10,bs=1;function Zt(i,e){let t=(i??"").trim();if(t){let n=Number(t);if(Number.isFinite(n)&&n>=0)return Math.ceil(n);let o=Date.parse(t);if(Number.isFinite(o))return Math.max(0,Math.ceil((o-Date.now())/1e3))}if(typeof e=="number"&&Number.isFinite(e)&&e>=0)return Math.ceil(e)}function hd(i){let e=i;return!!e&&typeof e.ticketKey=="string"&&typeof e.label=="string"&&Number.isFinite(e.unitIndex)&&Number.isFinite(e.quantity)&&(e.displayLabel===void 0||typeof e.displayLabel=="string")}var ud={seat_conflict:"taken",conflict:"taken",channel_assignment_conflict:"ineligible",allocation_exhausted:"exhausted"};function md(){return typeof crypto>"u"?null:typeof crypto.randomUUID=="function"?crypto.randomUUID():typeof crypto.getRandomValues!="function"?null:Array.from(crypto.getRandomValues(new Uint8Array(18)),i=>i.toString(16).padStart(2,"0")).join("")}function fd(i,e){let t=e.map(n=>[n.label,n.tierId??null,n.quantity??null]).sort((n,o)=>n[0]<o[0]?-1:n[0]>o[0]?1:0);return JSON.stringify([i,t])}function gd(i){return i instanceof V?i.status===408||i.status===429||i.status>=500:!0}function ys(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`viewer_${Math.random().toString(36).slice(2)}${Date.now().toString(36)}`}var _e=class{constructor(e,t={}){this.base=e;this.viewerId=ys();this.holdAttempt=null;this.holdIdempotency=!0;this.ticketKeysByHold=new Map;this.access=t.access,this.onObjectUnavailable=t.onObjectUnavailable;let n=t.referral?.trim();this.referral=n?n.slice(0,120):void 0}rotateViewerId(){this.viewerId=ys()}async pickerIdleMinutes(){return null}get accessScoped(){return!!this.access?.configured}async request(e,t={},n={}){let o=t.method??"GET",s={},r;t.body!==void 0&&(s["Content-Type"]="application/json",r=JSON.stringify(t.body));let a=await this.access?.authorization(n.auth?"unauthorized":"initial");if(a&&(s.Authorization=a),t.idempotency){let m=this.holdAttemptKey(`${t.idempotency.binding}\0${a??""}`);t.idempotency.used(m??void 0),m&&(s["Idempotency-Key"]=m)}let l=o==="GET"||e.endsWith("/hold/resume")?new AbortController:null,c=l?setTimeout(()=>l.abort(),4e4):null,d,u;try{d=await fetch(`${this.base}${e}`,{method:o,headers:s,body:r,credentials:"omit",...l?{signal:l.signal}:{}}),u=(d.headers.get("content-type")??"").includes("application/json")?await d.json().catch(p=>{if(l?.signal.aborted)throw p;return null}):null}finally{c!==null&&clearTimeout(c)}if(!d.ok){let m=u,p=m?.code??m?.error,v=d.status===401&&p==="buyer_access_invalid"&&e.endsWith("/hold/resume");if(this.access?.configured&&!v&&(d.status===401||d.status===403||d.status===422)&&await this.access.handleFailure(d.status,p)&&!n.auth)return this.request(e,t,{...n,auth:!0});if(d.status===409){let T=p?ud[p]:void 0,S=m?.conflicts?.map(y=>y.label)??t.labels??[];T&&this.onObjectUnavailable?.({labels:S,reason:T,code:p})}let g;if(d.status===429&&(g=Zt(d.headers.get("Retry-After"),m?.retryAfterSeconds)??bs,o==="GET"&&!n.rateLimit&&g<=gs))return await new Promise(T=>setTimeout(T,g*1e3)),this.request(e,t,{...n,rateLimit:!0});throw d.status===503&&(g=Zt(d.headers.get("Retry-After"),m?.retryAfterSeconds)),new V(d.status,m?.error??`request_failed_${d.status}`,p,m?.conflicts,m?.reason,g,typeof m?.notice=="string"&&m.notice?m.notice:void 0,{...Array.isArray(m?.fields)?{fields:m.fields}:{},...typeof m?.retryable=="boolean"?{retryable:m.retryable}:{},...typeof m?.hint=="string"&&m.hint?{hint:m.hint}:{},...typeof m?.message=="string"&&m.message?{serverMessage:m.message}:{}})}return u}async requestBlob(e,t={}){let n={},o=await this.access?.authorization(t.auth?"unauthorized":"initial");o&&(n.Authorization=o);let s=await fetch(`${this.base}${e}`,{method:"GET",headers:n,credentials:"omit"});if(s.ok)return s.blob();let a=(s.headers.get("content-type")??"").includes("application/json")?await s.json().catch(()=>null):null,l=a?.code??a?.error;if(this.access?.configured&&(s.status===401||s.status===403||s.status===422)&&await this.access.handleFailure(s.status,l)&&!t.auth)return this.requestBlob(e,{...t,auth:!0});let c;if(s.status===429&&(c=Zt(s.headers.get("Retry-After"),a?.retryAfterSeconds)??bs,!t.rateLimit&&c<=gs))return await new Promise(d=>setTimeout(d,c*1e3)),this.requestBlob(e,{...t,rateLimit:!0});throw new V(s.status,a?.error??`request_failed_${s.status}`,l,void 0,void 0,c)}chart(e){return this.request(`/pub/events/${encodeURIComponent(e)}/chart`)}eventConfiguration(e){return this.request(`/pub/events/${encodeURIComponent(e)}/event-configuration`)}reportViewEvidence(e,t){return this.request(`/pub/events/${encodeURIComponent(e)}/view-evidence-reports`,{method:"POST",body:{seatId:t.seatId,...t.evidenceId?{evidenceId:t.evidenceId}:{},...t.message?{message:t.message}:{}}})}asset(e,t){return/^[a-zA-Z0-9._-]+$/.test(t)?this.requestBlob(`/pub/events/${encodeURIComponent(e)}/assets/${encodeURIComponent(t)}`):Promise.reject(new V(404,"not_found","not_found"))}async objects(e){return{...await this.request(`/pub/events/${encodeURIComponent(e)}/objects?compact=1&${Qe}`),fetchedAt:Date.now()}}hold(e,t,n,o){let s=`/pub/events/${encodeURIComponent(e)}/hold?${Qe}`,r={method:"POST",body:{selections:t,...n?{ttlMs:n}:{},...o?{replaceHoldId:o}:{},...this.referral?{referral:this.referral}:{}},labels:t.map(l=>l.label)};return(o||!this.holdIdempotency?this.request(s,r):this.keyedHold(s,r,fd(e,t))).then(l=>this.noteTicketKeys(l,o))}holdAttemptKey(e){if(this.holdAttempt?.binding===e)return this.holdAttempt.key;let t=md();return this.holdAttempt=t?{binding:e,key:t}:null,t}endHoldAttempt(e){e&&this.holdAttempt?.key===e&&(this.holdAttempt=null)}async keyedHold(e,t,n,o=!1){let s;try{let r=await this.request(e,{...t,idempotency:{binding:n,used:a=>{s=a}}});return this.endHoldAttempt(s),r}catch(r){if(gd(r))throw r;this.endHoldAttempt(s);let a=r.code;if(a==="idempotency_key_reused"&&!o)return this.keyedHold(e,t,n,!0);if(a==="invalid_idempotency_key")return this.holdIdempotency=!1,this.request(e,t);throw r}}noteTicketKeys(e,t){if(t&&this.ticketKeysByHold.delete(t),!e?.holdId)return e;let n=Array.isArray(e.ticketKeys)&&e.ticketKeys.every(s=>typeof s=="string")?[...e.ticketKeys]:null,o=Array.isArray(e.ticketKeyDetails)&&e.ticketKeyDetails.every(hd)?e.ticketKeyDetails.map(({ticketKey:s,label:r,unitIndex:a,quantity:l,displayLabel:c})=>({ticketKey:s,label:r,unitIndex:a,quantity:l,...c?{displayLabel:c}:{}})):null;return n||o?this.ticketKeysByHold.set(e.holdId,{...n?{ticketKeys:n}:{},...o?{ticketKeyDetails:o}:{}}):this.ticketKeysByHold.delete(e.holdId),e}ticketKeysFor(e){let t=this.ticketKeysByHold.get(e);return t?{...t}:null}bestAvailable(e,t,n,o,s){return this.request(`/pub/events/${encodeURIComponent(e)}/best-available?${Qe}`,{method:"POST",body:{qty:t,...n?{categoryKey:n}:{},...o?{zoneId:o}:{},...s?{ttlMs:s}:{},...this.referral?{referral:this.referral}:{}}}).then(r=>this.noteTicketKeys(r))}resume(e,t){return this.request(`/pub/events/${encodeURIComponent(e)}/hold/resume`,{method:"POST",body:{holdId:t}}).then(n=>this.noteTicketKeys(n))}release(e,t,n){return this.holdAttempt=null,this.request(`/pub/events/${encodeURIComponent(e)}/release`,{method:"POST",body:{labels:t,holdId:n}}).then(o=>{let s=this.ticketKeysByHold.get(n);if(s){let r=new Set(o?.released??t);this.ticketKeysByHold.set(n,{...s.ticketKeys?{ticketKeys:s.ticketKeys.filter(a=>!r.has(a))}:{},...s.ticketKeyDetails?{ticketKeyDetails:s.ticketKeyDetails.filter(a=>!r.has(a.ticketKey))}:{}})}return o})}extend(e,t,n){return this.request(`/pub/events/${encodeURIComponent(e)}/extend`,{method:"POST",body:{holdId:t,...n?{ttlMs:n}:{}}})}paymentOptions(e){return this.request(`/pub/events/${encodeURIComponent(e)}/payment-options`)}availability(e,t=!1){return this.request(`/pub/events/${encodeURIComponent(e)}/availability?${Qe}${t?"&live=1":""}`)}startCheckout(e,t){return this.holdAttempt=null,this.request(`/pub/events/${encodeURIComponent(e)}/checkout`,{method:"POST",body:t})}orderStatus(e){return this.request(`/pub/orders/${encodeURIComponent(e)}/status`)}subscribeTicket(e){return this.request(`/pub/events/${encodeURIComponent(e)}/subscribe-tickets`,{method:"POST",body:{}})}subscribeUrl(e){let t=this.base.replace(/^http/,"ws"),n=new URLSearchParams({surface:"picker",viewerId:this.viewerId});return`${t}/pub/events/${encodeURIComponent(e)}/subscribe?${n}&${Qe}`}socketUrl(e){return this.accessScoped?"":this.subscribeUrl(e)}socketProtocols(e){return this.accessScoped?[]:[Ze]}createRealtime(e,t){return this.accessScoped?null:new Ce({url:this.subscribeUrl(e),sink:t})}};import{t as Ns,tCount as kd}from"@seatlayer/core";import{compactRowLabel as bd,seatNoteRowModel as yd,seatTypeIconSvg as ks,t as Xe}from"@seatlayer/core";import{seatConfidenceDisclosure as vd}from"@seatlayer/core/core/seatConfidence";function On(i){return/early[\s-]*bird/i.test(i?.trim()??"")}function vs(i){return On(i)?'<svg class="sl-offer-icon sl-offer-icon-discount" viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="sl-offer-discount-gradient" x1="29.492" y1="0" x2="20.028" y2="36.183" gradientUnits="userSpaceOnUse"><stop stop-color="#FD6D00"/><stop offset="1" stop-color="#F8B302"/></linearGradient></defs><path d="M16 22.751a1.071 1.071 0 1 0 0-2.142 1.071 1.071 0 0 0 0 2.142ZM16 11.39a1.071 1.071 0 1 0 0-2.141 1.071 1.071 0 0 0 0 2.141Z" fill="url(#sl-offer-discount-gradient)"/><path d="M31.137.863A2.928 2.928 0 0 0 29.054 0H17.836c-.787 0-1.527.307-2.083.863L.863 15.753A2.93 2.93 0 0 0 0 17.836c0 .787.307 1.527.863 2.083l11.218 11.218A2.927 2.927 0 0 0 14.164 32c.787 0 1.527-.307 2.083-.863l14.89-14.89A2.928 2.928 0 0 0 32 14.164V2.946c0-.788-.307-1.527-.863-2.083ZM16 7.374a2.946 2.946 0 1 1 0 5.891 2.946 2.946 0 0 1 0-5.891Zm0 17.252a2.946 2.946 0 1 1 0-5.891 2.946 2.946 0 0 1 0 5.891Zm6.025-7.689H9.975a.938.938 0 0 1 0-1.875h12.05a.938.938 0 0 1 0 1.875Zm4.017-10.041a.938.938 0 1 1 0-1.875.938.938 0 0 1 0 1.875Z" fill="url(#sl-offer-discount-gradient)"/></svg>':'<svg class="sl-offer-icon sl-offer-icon-tag" viewBox="0 0 24 24" aria-hidden="true"><path d="M20.6 13.6 13.7 20.5a2 2 0 0 1-2.8 0L3.5 13.1A2 2 0 0 1 3 11.7V4h7.7a2 2 0 0 1 1.4.6l8.5 8.5a.7.7 0 0 1 0 .5Z"/><circle cx="7.5" cy="8.5" r="1"/></svg>'}function Pi(i,e){return`<span class="sl-offer-mark" role="img" aria-label="${e(i)}" title="${e(i)}">${vs(i)}</span>`}function Li(i,e){return`<span class="sl-offer-badge">${vs(i)}<span>${e(i)}</span></span>`}function ws(i,e=Date.now()){let t=i-e;if(t<=0)return null;let n=Math.max(1,Math.ceil(t/6e4)),o=Math.floor(n/1440),s=Math.floor(n%1440/60),r=n%60;return`${(o>0?[`${o}d`,...s?[`${s}h`]:[]]:[...s?[`${s}h`]:[],...r||!s?[`${r}m`]:[]]).join(" ")} left`}function _n(i){return String(i??"\u2014").replace(/[&<>"]/g,e=>({"&":"&","<":"<",">":">",'"':"""})[e])}function E(i){return String(i??"").replace(/[&<>"]/g,e=>({"&":"&","<":"<",">":">",'"':"""})[e])}function Nn(i){return i?yd(i).map(e=>({...e,title:b(e.titleKey,e.titleFallback)})):[]}function Ss(i){return Nn(i).map(e=>e.title)}function Je(i,e={}){return Dn(Nn(i),e)}function Dn(i,e={}){if(!i.length)return"";let t=e.compact?15:17,n=i.map(o=>`<div class="sl-note sl-note-${E(o.tone)}"><span class="sl-note-i">${ks(o.icon,{size:t})}</span><span class="sl-note-t"><b>${E(o.title)}</b>`+(o.note?`<span class="sl-note-n">${E(o.note)}</span>`:"")+"</span></div>").join("");return`<div class="sl-notes${e.compact?" compact":""}">${n}</div>`}function Ts(i){return Nn(i).map(e=>{let t=E(e.note?`${e.title}: ${e.note}`:e.title);return`<span class="sl-cx-mark sl-cx-mark-${E(e.tone)}" role="img" aria-label="${t}" title="${t}">${ks(e.icon,{size:13})}</span>`}).join("")}function Mi(i){let e=[];return i?.restrictedView&&e.push(b("picker.restrictedView","Restricted view")),i?.obstructedView&&e.push(b("picker.obstructedView","Obstructed view")),e}function Bn(i,e){if(!i)return"";let t=e?b("picker.viewFromThisSeat","View from this seat"):b("picker.seeItIn3d","See it in 3D"),n=e?b("picker.viewFromHere","View from here"):t;return`<button type="button" class="sl-confirm-3d" aria-label="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span>${n}</span></button>`}function Es(i,e){if(!e)return"";let t=e,n=t.includes(i.id),o=n?t.length>1?b("picker.openComparison","Open comparison"):b("picker.savedForComparison","Saved for comparison"):t.length?b("picker.compareWithSaved","Compare with saved"):b("picker.saveToCompare","Save to compare");return`<button type="button" class="sl-confirm-compare"${n&&t.length===1?" disabled":""}><span aria-hidden="true">\u21C4</span><span>${E(o)}</span></button>`}function Cs(i,e,t){if(!t)return"";let n=vd(i.confidenceEvidence),o=n.modeledTarget??n.reality;return`<button type="button" class="sl-confirm-confidence" aria-label="Open seat confidence passport for ${E(i.displayLabel??i.label)}"><span><em>${E(e)}</em><strong>${E(n.headline)}</strong><small>${E(o)}</small></span><b>Passport</b></button>`}function q(i){let e=i?.rowLabel,t=i?.sectionLabel;if(!e||!t)return e;for(let n of["-"," ","\xB7","/","_"]){let o=`${t}${n}`;if(e.startsWith(o)&&e.length>o.length)return e.slice(o.length)}return bd(e,t)}function wd(i){switch(i){case"paused":return{title:b("picker.accessPausedTitle","These seats are on hold right now"),body:b("picker.accessPausedBody","The organizer has paused this selection. Try again in a few minutes."),action:b("picker.accessRetry","Try again")};case"revoked":return{title:b("picker.accessRevokedTitle","This access link is no longer active"),body:b("picker.accessRevokedBody","Ask whoever sent you here for a new link to keep booking these seats."),action:b("picker.accessRefresh","Refresh")};case"idle":return{title:b("picker.idlePausedTitle","Your session expired"),body:b("picker.idlePausedBody","You were away for a while. Refresh to see which seats are free now."),action:b("picker.idleRefresh","Show latest seats")};case"no_token":case"provider_failed":return{title:b("picker.accessExpiredTitle","The seat map timed out"),body:b("picker.accessExpiredBody","Any seats you\u2019re holding stay held. Refresh to see what\u2019s available now."),action:b("picker.accessRefresh","Refresh")};default:return{title:b("picker.accessInvalidTitle","We couldn\u2019t verify your access"),body:b("picker.accessInvalidBody","You can still book anything shown as available. Contact whoever sent you here for access to the rest."),action:b("picker.accessRefresh","Refresh")}}}var xd=6;function As(i,e,t){let n=_n;return[i?.sectionLabel?`<div class="sl-confirm-field sl-confirm-sec${i.sectionLabel.length>xd?" sl-confirm-sec-long":""}"><span class="sl-confirm-key">${b("picker.section","Section")}</span><span class="sl-confirm-value">${n(i.sectionLabel)}</span></div>`:"",i?.rowLabel||i?.objectType==="booth"?`<div class="sl-confirm-field"><span class="sl-confirm-key">${n(t)}</span><span class="sl-confirm-value">${n(q(i)??i?.displayLabel??e)}</span></div>`:"",i?.objectType!=="booth"?`<div class="sl-confirm-field"><span class="sl-confirm-key">${b("picker.seat","Seat")}</span><span class="sl-confirm-value">${n(i?.seatNumber??i?.displayLabel??e)}</span></div>`:""].filter(Boolean).join("")}function Ps(i,e,t){let n=_n,o=i?.objectType==="booth",s=i?.objectType==="table"&&!!i?.bookingMode,r=o||s||!i?.seatNumber,a=i?.sectionLabel??(r?void 0:i?.displayLabel),l=s?`${b("picker.guests","Guests")} ${i?.bookingMode==="variable"?`${i?.minOccupancy}\u2013${i?.maxOccupancy}`:i?.capacity}`:void 0,d=(r?[l,a?i?.rowLabel??i?.displayLabel:void 0]:[i?.rowLabel?`${t} ${q(i)??""}`.trim():void 0,`${b("picker.seat","Seat")} ${i?.seatNumber??e}`]).filter(Boolean).join(" \xB7 ");return(a?`<span class="sl-confirm-place">${n(a)}</span>`:"")+(d?`<span class="sl-confirm-pos">${a?" \xB7 ":""}${n(d)}</span>`:"")+(a||d?"":`<span class="sl-confirm-pos">${n(e)}</span>`)}function Ls(i,e){if(!i)return"";let t=e?b("picker.viewFromThisSeat","View from this seat"):b("picker.seeItIn3d","See it in 3D");return`<button type="button" class="sl-confirm-pill sl-confirm-3dpill" aria-label="${t}" title="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span aria-hidden="true">3D</span></button>`}function Ms(i,e){if(!i||e)return"";let t=b("picker.seeItIn3d","See it in 3D");return`<button type="button" class="sl-confirm-3drow" aria-label="${t}" title="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span aria-hidden="true">3D</span></button>`}function xs(i){return i.buyerMessage?.trim()||(i.restriction==="companion"?b("picker.companionRequiresWheelchair","Requires the adjacent wheelchair place"):void 0)}function Hi(i,e,t,n=()=>{}){let o=_n;if(i.length>1)return`<fieldset class="sl-confirm-tiers"><legend><span>${b("picker.ticketType","Ticket type")}</span></legend>`+i.map(a=>{let l=xs(a),c=n(a);return`<button type="button" class="sl-confirm-tier" data-confirm-tier="${o(a.id)}"${c?` data-offer-name="${o(c)}"`:""} aria-pressed="${a.id===e}"><span class="sl-confirm-tier-copy"><span class="sl-confirm-tier-name">${o(a.name)}`+(c?`<span class="sl-confirm-tier-offer">${Li(c,o)}</span>`:"")+"</span>"+(l?`<small class="sl-confirm-tier-note">${o(l)}</small>`:"")+`</span><span class="sl-confirm-tier-price">${o(t(a))}</span></button>`}).join("")+"</fieldset>";let s=i[0],r=s?xs(s):void 0;return r?`<p class="sl-confirm-tier-note">${o(r)}</p>`:""}function Hs(i){return'<div class="sl-confirm-grid">'+i.identityFields+`</div><div class="sl-confirm-cat"><span class="sl-confirm-cat-name">${E(i.categoryLabel)}</span>`+(i.priceLabel?`<span class="sl-confirm-price">${E(i.priceLabel)}</span>`:"")+'</div><div class="sl-confirm-id">'+i.marker+`<span class="sl-confirm-dot" style="background:${E(i.categoryColor)}" aria-hidden="true"></span><span class="sl-sr">${E(i.categoryLabel)}</span><span class="sl-confirm-who">`+i.identity+"</span>"+(i.priceLabel?`<span class="sl-confirm-idprice">${E(i.priceLabel)}</span>`:"")+'</div><div class="sl-confirm-body">'+i.commercial+i.tierChoices+i.groupDates+i.wheelchair+(i.thumb||i.see3dPill?`<div class="sl-confirm-strip">${i.thumb}<span class="sl-confirm-pills">${i.see3dPill}</span></div>`:"")+i.inspect+'<div class="sl-confirm-row">'+(i.see3dRow??"")+`<button type="button" class="sl-confirm-cancel">${E(i.cancelLabel)}</button><button type="button" class="sl-confirm-add"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4 4L19 7"/></svg><span class="sl-confirm-add-t">${E(i.selectLabel)}</span></button></div></div>`}function Rs(i,e){let t=_,{variable:n}=e;return`<section class="sl-table-dialog" role="dialog" aria-modal="true" aria-labelledby="sl-table-title" aria-describedby="sl-table-copy"><div class="sl-table-head"><div class="sl-table-eyebrow">${t(n?Xe("picker.flexiblePartyTypeWord",{typeWord:e.typeWord}):Xe("picker.wholeTypeWord",{typeWord:e.typeWord}))}</div><h2 class="sl-table-title" id="sl-table-title">${t(i.displayLabel??i.label)}</h2><p class="sl-table-copy" id="sl-table-copy">${t(n?b("picker.chooseGuestsCopy","Choose how many guests will sit together. This table is held exclusively for your party."):Xe("picker.allPlacesBookedTogether",{count:i.capacity}))}</p></div><div class="sl-table-body"><div class="sl-table-summary"><span>${t(e.categoryLabel)}</span>`+(e.suppressPricing?"":`<b data-table-unit>${t(Xe("picker.perGuestPrice",{price:e.unitPrice}))}</b>`)+`<span class="muted">${t(b("picker.tableCapacity","Table capacity"))}</span><span>${t(Xe("picker.guestsCount",{count:i.capacity}))}</span>`+(i.entrance?`<span class="muted">${t(b("picker.entrance","Entrance"))}</span><span>${t(i.entrance)}</span>`:"")+(e.suppressPricing?"":`<span class="muted">${t(b("picker.total","Total"))}</span><b data-table-total></b>`)+"</div>"+(n?`<label class="sl-table-qtylabel" id="sl-table-qty-label">${t(b("picker.numberOfGuests","Number of guests"))}</label><div class="sl-table-stepper" role="group" aria-labelledby="sl-table-qty-label"><button type="button" data-table-step="-1" aria-label="${t(b("picker.fewerGuests","Fewer guests"))}">\u2212</button><output aria-live="polite" data-table-qty>${i.quantity}</output><button type="button" data-table-step="1" aria-label="${t(b("picker.moreGuests","More guests"))}">+</button></div><div class="sl-table-range">${t(Xe("picker.chooseMinMaxGuests",{min:i.minOccupancy,max:i.maxOccupancy}))}</div>`:`<input type="hidden" data-table-qty value="${i.capacity}">`)+`<div class="sl-table-actions"><button type="button" class="sl-table-cancel">${t(Xe("common.cancel"))}</button><button type="button" class="sl-table-confirm">${t(e.held?b("picker.updateTable","Update table"):n?b("picker.selectTable","Select table"):b("picker.selectWholeTable","Select whole table"))}</button></div></div></section>`}function Is(i,e){let t=wd(i),n=document.createElement("div");n.className="sl-interrupt sl-access",n.setAttribute("role","status"),n.setAttribute("aria-live","polite");let o=document.createElement("div");o.className="sl-interrupt-card";let s=document.createElement("div");s.className="sl-interrupt-title",s.textContent=t.title;let r=document.createElement("div");r.className="sl-interrupt-body",r.textContent=t.body,o.append(s,r);let a=document.createElement("div");a.className="sl-interrupt-actions";let l=document.createElement("button");l.type="button",l.className="sl-interrupt-act";let c=document.createElement("span");c.className="sl-interrupt-act-icon",c.setAttribute("aria-hidden","true"),c.textContent="\u21BB";let d=document.createElement("span");return d.textContent=t.action,l.append(c,d),l.addEventListener("click",async()=>{n.classList.add("is-reloading"),l.disabled=!0;try{await e()}catch{}finally{n.isConnected&&(n.classList.remove("is-reloading"),l.disabled=!1)}}),a.appendChild(l),o.appendChild(a),n.appendChild(o),n}function Os(i,e){return`<div class="sl-a11yhead"><span class="sl-a11yhead-t">${E(i)}</span><button type="button" class="sl-a11yclose" data-a11y-close aria-label="${_(e)}"><svg viewBox="0 0 24 24" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></button></div>`}function _s(i){return i.map(e=>{let t=`<button type="button" role="switch" class="sl-a11yrow${e.className?` ${e.className}`:""}${e.on?" on":""}" data-a11y-row="${E(e.key)}" aria-checked="${e.on}" aria-pressed="${e.on}"`+(e.disabled?' disabled aria-disabled="true"':"")+`><span class="sl-a11yrow-i" aria-hidden="true">${e.iconHtml}</span><span class="sl-a11yrow-t"><span class="sl-a11yrow-l">${E(e.label)}</span></span>`+(e.count?`<span class="sl-a11yrow-c">${E(e.count)}</span>`:"")+'<span class="sl-a11yrow-s" aria-hidden="true"></span></button>';return e.note?`<div class="sl-a11yrow-w">${t}${vt({id:`sl-info-${_(e.key.replace(/[^A-Za-z0-9]+/g,"-"))}`,label:e.note,text:E(e.note)})}</div>`:t}).join("")}function vt(i){return`<span class="sl-info"${i.wrapRef?` data-ref="${_(i.wrapRef)}"`:""}><button type="button" class="sl-info-btn" data-sl-info aria-label="${_(i.label)}" aria-describedby="${_(i.id)}" aria-expanded="false"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5"/><path d="M12 8h.01"/></svg></button><span class="sl-info-pop" role="tooltip" id="${_(i.id)}"${i.ref?` data-ref="${_(i.ref)}"`:""}>${i.text}</span></span>`}function Ds(i){let e=Math.max(0,i),t=Math.floor(e/6e4),n=String(Math.floor(e%6e4/1e3)).padStart(2,"0");return`${t}:${n}`}function Bs(i){let e=i.performanceLabel?`<div class="sl-chip-when">${_(i.performanceLabel)}</div>`:"",t=i.performanceDates?.labels.length?`<div class="sl-chip-dates"><span class="sl-chip-dates-summary">${_(i.performanceDates.summary)}</span><span class="sl-chip-date-list">${i.performanceDates.labels.map(n=>`<span class="sl-chip-date">${_(n)}</span>`).join("")}</span></div>`:"";return e+Sd(i)+t}function Sd(i){let{d:e,area:t,label:n,objectType:o,quantity:s=1,identity:r}=i,a=R=>String(R??"\u2014").replace(/[&<>"]/g,G=>({"&":"&","<":"<",">":">",'"':"""})[G]),l=o==="ga"?"ga":e?.objectType??o,c=r?.displayType?.trim()||e?.displayType?.trim()||t?.displayType?.trim()||(l==="table"?b("picker.table","Table"):l==="booth"?b("picker.booth","Booth"):l==="ga"?b("picker.generalAdmission","General admission"):b("picker.row","Row")),d=r?.rowLabel??r?.displayLabel??e?.rowLabel??e?.displayLabel??t?.label??n,u=i.categoryLabel?.trim()??"",m="",p=[];l==="table"&&r?.bookingMode?(m=`${c} ${d}`,p.push([b("picker.guests","Guests"),String(s)])):l==="ga"?(m=String(t?.displayLabel??d),s>1&&p.push([b("picker.tickets","Tickets"),String(s)])):l==="booth"?(m=e?.sectionLabel??`${c} ${d}`,e?.sectionLabel&&p.push([c,String(d)])):!e?.sectionLabel&&!e?.rowLabel&&!e?.seatNumber?m=String(d):(m=e.sectionLabel??"",e.rowLabel&&p.push([c,String(q(e)??e.rowLabel)]),e.seatNumber&&p.push([b("picker.seat","Seat"),String(e.seatNumber)]));let v=!m&&!!u,g=m||u||String(d),T=!!u&&!v&&u!==g,S=i.offerName?Pi(i.offerName,a):"",y=p.map(([R,G])=>`<span class="sl-chip-seg" data-fit-seg><span class="w">${a(R)}</span> <b>${a(G)}</b></span>`);T&&y.push(`<span class="sl-chip-seg" data-fit-seg data-fit-type><span class="w">${a(u)}</span>${S}</span>`);let P=[g,...p.map(([R,G])=>`${R} ${G}`),T?u:"",i.offerName??""].filter(Boolean).join(" \xB7 ");return`<div class="sl-chip-id"><span class="sl-sr">${a(P)}</span><span class="sl-chip-name" aria-hidden="true">${a(g)}${T?"":S}</span>`+(y.length?`<span class="sl-chip-pos" aria-hidden="true">${y.join("<i>\xB7</i>")}</span>`:"")+"</div>"}function Fn(i,e,t){return i.map(n=>`<option value="${t(n.id)}"${n.id===e?" selected":""}>${t(n.name)}</option>`).join("")}function Td(i){let e=_;return` data-key="${e(i.key)}"`+(i.heldLabels.length?` data-held="${e(encodeURIComponent(i.heldLabels.join(`
|
|
1
|
+
import{a as bi,b,c as Ye,d as yi,e as qo,f as Wo,g as _,h as Yo,i as vi,j as wi,k as xi,l as ki,m as gt,n as Zo,o as Qo,p as Xo,q as Jo,r as es,s as Si,t as ns,u as os}from"./chunk-U2Z2AGRX.js";import{a as Uo}from"./chunk-ICMSBXRJ.js";import{a as ts,b as is,d as Ti,e as bt,f as Ei,g as yt}from"./chunk-UBFNMA7U.js";import{a as h,b as C,c as x,d as w}from"./chunk-OSZ7DOEH.js";import{PickerController as Ap,formatMoney as sn,getLocale as to,loadLocale as Pp,localeDirection as Lp,LOCALE_NAMES as Mp,resolveLocale as Hp,seatPriceEntry as Rp,setStringOverrides as Ip,t as we}from"@seatlayer/core";var zc=/^[0-9A-Za-z.+-]{1,24}$/,jc=zc.test("0.109.2")?"0.109.2":"",Gc={host:"web",platform:"web",bundle:jc,protocol:0,chromeOwner:"web"},Kc={...Gc},Ci=null,ss=null;function Uc(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():0}function qc(){let i=e=>Math.max(0,Math.round(e*100)/100);return{bootMs:i(Uc()),documentMs:Ci==null?0:i(Ci),handshakeMs:Ci==null||ss==null?0:i(ss-Ci)}}function rs(){let{host:i,platform:e,bundle:t,protocol:n,chromeOwner:o}=Kc,s=qc();return{host:i,platform:e,...t?{bundle:t}:{},...n?{protocol:n}:{},chromeOwner:o,bootMs:s.bootMs,documentMs:s.documentMs,handshakeMs:s.handshakeMs}}var as=new Set,ls=new Map;function Ee(i){return as.has(i)?"repeat":"cold"}function Ai(i){let e=Ee(i);return as.add(i),e}function re(i){return typeof i=="number"&&Number.isFinite(i)&&i>=0?Math.round(i):0}function Wt(){return typeof location>"u"?!1:/^(localhost|127\.0\.0\.1|\[::1\])$/i.test(location.hostname)}function Wc(i){if(!/^[A-Za-z0-9_-]{1,80}$/.test(i.event))return null;let e=i.performanceProfile??{};return{event:i.event,scope:i.scope,surface:i.surface,outcome:i.outcome,stage:i.stage?.slice(0,32)??"",ms:re(i.ms),api:re(e.loadChartAndStatuses)||re(e.loadChart),scene:re(e.buildScene),panel:re(e.buildBuyerControls),paint:re(e.firstPaint),normalize:re(e.normalizeBuyerModel),renderer:re(e.createRenderer),seats:re(i.seats),floors:re(i.floors),view:i.view??"map",load:i.load??Ee(i.event),transport:i.transport??"pubapi",...rs(),availabilityMs:re(e.loadStatuses),...typeof i.revealWaitMs=="number"?{revealWaitMs:re(i.revealWaitMs)}:{},...typeof i.handoverMs=="number"?{handoverMs:re(i.handoverMs)}:{},mounts:(ls.get(i.event)??0)+1,reconnects:re(i.reconnects)}}var Yc=new Set;function ye(i){let e=Wc(i);if(e){ls.set(i.event,e.mounts);for(let t of Yc)try{t(e)}catch{}typeof fetch>"u"||Wt()||fetch(`${i.apiBase.replace(/\/+$/,"")}/pub/telemetry/chart-load`,{method:"POST",headers:{"Content-Type":"application/json","X-SeatLayer-Client":"1"},body:JSON.stringify(e),credentials:"omit",keepalive:!0}).catch(()=>{})}}var Zc="realtime.fallback_polling",cs=new Set;function Qc(i){let e=/^(wss?):\/\/([^/]+)(.*?)\/pub\/events\/([^/?#]+)\/subscribe(?:[?#]|$)/.exec(i);if(!e)return null;let t;try{t=decodeURIComponent(e[4])}catch{return null}return/^[A-Za-z0-9_-]{1,80}$/.test(t)?{apiBase:`${e[1]==="wss"?"https":"http"}://${e[2]}${e[3]}`,eventKey:t}:null}function ds(i){let e=Qc(i);return!e||cs.has(e.eventKey)||(cs.add(e.eventKey),typeof fetch>"u"||Wt())?!1:(fetch(`${e.apiBase}/pub/telemetry/client-error`,{method:"POST",headers:{"Content-Type":"application/json","X-SeatLayer-Client":"1"},body:JSON.stringify({surface:"picker",errorCode:Zc,eventKey:e.eventKey}),credentials:"omit",keepalive:!0}).catch(()=>{}),!0)}var Ze="seatlayer.v1",ps="\0",hs=4401,Xc=15e3,Jc=25e3,ed=1e4,us=5e3,td=JSON.stringify({type:"resume"}),id=3e4,nd=6e4,od=["pointermove","touchstart","keydown"],sd=3,rd=15e3,ms=6e4;function ad(i){let e=typeof i.default=="string"?i.default:"free",t={};if(i.seats&&typeof i.seats=="object")for(let[n,o]of Object.entries(i.seats))typeof o=="string"&&o!==e&&(t[n]=o);return{default:e,exceptions:t}}function ld(i,e){if(!i||i.default!==e.default)return null;let t=[];for(let[n,o]of Object.entries(e.exceptions))i.exceptions[n]!==o&&t.push({label:n,status:o});for(let n of Object.keys(i.exceptions))n in e.exceptions||t.push({label:n,status:e.default});return t}function cd(i,e){for(let t of e)t.status===i.default?delete i.exceptions[t.label]:i.exceptions[t.label]=t.status}function fs(i){if(/(?:^|[?&#])(?:token|access_token|bearer|authorization|ticket|tkt|bse)=/i.test(i))throw new Error("seatlayer: refusing to open a socket with a credential in the URL");if(/\bbse_[A-Za-z0-9._-]+/.test(i))throw new Error("seatlayer: refusing to open a socket with a credential in the URL")}var Ce=class{constructor(e){this.ws=null;this.watched=null;this.stopped=!0;this.attempt=0;this.reconnectTimer=null;this.pingTimer=null;this.pongTimer=null;this.resumeTimer=null;this.projection=null;this.version=null;this.v1=!1;this.useQueryMarker=!1;this.hidden=null;this.closedSections=null;this.failedUpgrades=0;this.pollTimer=null;this.fellBack=!1;this.lastWake=-1/0;this.lastInput=0;this.detachWake=null;this.reconnectCount=0;this.opts=e,typeof e.url=="string"&&fs(e.url)}get polling(){return this.pollTimer!==null}get protocol(){return this.ws?this.v1?"v1":"legacy":null}get snapshotVersion(){return this.version}start(){this.stopped&&(this.stopped=!1,this.attachWake(),this.connect())}stop(){this.stopped=!0,this.clearTimers(),this.stopPolling(),this.detachWake?.(),this.detachWake=null;let e=this.ws;if(this.ws=null,e){e.onopen=null,e.onmessage=null,e.onclose=null,e.onerror=null;try{e.close()}catch{}}}restart(){this.stop(),this.projection=null,this.version=null,this.attempt=0,this.failedUpgrades=0,this.start()}async connect(){if(this.stopped)return;let e=[Ze];if(this.opts.mintTicket){let a;try{a=await this.opts.mintTicket()}catch(l){this.reportIfAccessError(l),this.scheduleReconnect();return}if(this.stopped)return;a?.protocols?.length?(e=[...a.protocols],e.includes(Ze)||e.unshift(Ze)):a?.ticket&&(e=[Ze,`tkt.${a.ticket}`])}let t=this.version!==null;t&&e.push(`sv.${this.version}`);let n=typeof this.opts.url=="function"?this.opts.url():this.opts.url,o=this.useQueryMarker?`${n}${n.includes("?")?"&":"?"}pv=1`:n;fs(o);let s;try{s=(this.opts.socketFactory??((l,c)=>new WebSocket(l,c)))(o,e)}catch{this.upgradeFailed(),this.scheduleReconnect();return}this.ws=s;let r=!1;s.onopen=()=>{this.ws===s&&(r=!0,this.attempt=0,this.failedUpgrades=0,this.stopPolling(),this.v1=s.protocol===Ze,this.v1||(this.useQueryMarker=!0),this.startKeepalive(s),this.watched=null,this.watchHold(this.opts.heldHoldId?.()??null),t?this.resumeTimer=setTimeout(()=>{this.resumeTimer=null,this.opts.sink.resync()},us):this.resumeTimer=setTimeout(()=>{this.resumeTimer=null,this.opts.sink.resync({reason:"connect"})},us))},s.onmessage=a=>{if(this.ws!==s)return;let l;try{l=JSON.parse(typeof a.data=="string"?a.data:"")}catch{return}!l||typeof l!="object"||this.handleFrame(l)},s.onclose=a=>{if(this.ws===s){if(this.ws=null,this.clearTimers(),!r&&a?.code!==hs&&this.upgradeFailed(),a?.code===hs){if(a.reason==="access_expired"){this.scheduleReconnect();return}if(a.reason==="idle_expired"&&this.opts.onIdleExpired){this.stopped=!0,this.stopPolling(),this.opts.onIdleExpired();return}this.stopped=!0,this.stopPolling(),this.opts.onAccessUnavailable?.({reason:"revoked",code:"access_revoked",retryable:!1});return}this.scheduleReconnect()}},s.onerror=()=>{try{s.close()}catch{}}}watchHold(e){let t=this.ws;if(!(!e||e===this.watched||!t||t.readyState!==1))try{t.send(JSON.stringify({type:"watch",holdId:e})),this.watched=e}catch{}}handleFrame(e){let t=typeof e.type=="string"?e.type:"";if(e.protocol===1&&(this.v1=!0),typeof e.snapshotVersion=="number"&&(this.version=e.snapshotVersion),t==="pong"){this.clearPongTimer();return}if(t==="sales"){this.opts.sink.onSales?.(e);return}if(Array.isArray(e.hidden)||Array.isArray(e.closed)){let n=Array.isArray(e.hidden)?e.hidden:[],o=Array.isArray(e.closed)?e.closed:[],s=n.join(ps),r=o.join(ps);(s!==this.hidden||r!==this.closedSections)&&(this.hidden=s,this.closedSections=r,this.opts.sink.onSections?.(n,o,{withInventory:t==="snapshot"||!!e.seats}))}if(t!=="hidden"){if(t==="hold"){typeof e.holdId=="string"&&typeof e.state=="string"&&this.opts.onHoldState?.(e.holdId,e.state);return}if(t==="presence"){this.opts.sink.onPresence?.({shoppingSessions:Number(e.shoppingSessions)||0,activeHolds:Number(e.activeHolds)||0});return}if(t!=="allocation"){if(t==="snapshot"||!t&&e.seats){this.answered();let n=ad(e),o=ld(this.projection,n);this.projection=n,o===null?this.opts.sink.applyProjection?this.opts.sink.applyProjection(n):this.opts.sink.resync():o.length&&this.opts.sink.applyStatuses(o);return}if(t==="delta"&&Array.isArray(e.changes)){this.answered();let n=e.changes.filter(o=>typeof o?.label=="string"&&typeof o?.status=="string").map(o=>({label:o.label,status:o.status}));if(!n.length)return;this.projection&&cd(this.projection,n),this.opts.sink.applyStatuses(n)}}}}answered(){this.resumeTimer&&(clearTimeout(this.resumeTimer),this.resumeTimer=null)}reportIfAccessError(e){let t=e?.reason;e?.name==="BuyerAccessUnavailableError"&&(this.stopped=!0,this.stopPolling(),this.opts.onAccessUnavailable?.({reason:t??"invalid",code:e.code,status:e.status,retryable:t==="paused"}))}upgradeFailed(){this.failedUpgrades+=1,this.failedUpgrades>=sd&&this.startPolling()}startPolling(){if(!(this.pollTimer||this.stopped)){if(!this.fellBack){this.fellBack=!0;try{this.opts.onFallbackPolling?.()}catch{}let e=typeof this.opts.url=="function"?this.opts.url():this.opts.url;ds(e)}this.pollTimer=setInterval(()=>{if(this.stopped){this.stopPolling();return}typeof document<"u"&&document.hidden||Promise.resolve().then(()=>this.opts.poll?this.opts.poll():this.opts.sink.resync({reason:"frame"})).catch(()=>{})},rd)}}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}now(){return this.opts.now?this.opts.now():Date.now()}attachWake(){if(this.detachWake||typeof document>"u"||typeof window>"u"||typeof document.addEventListener!="function"||typeof window.addEventListener!="function")return;this.lastInput=this.now();let e=()=>{document.visibilityState==="visible"&&this.wake()},t=()=>{let s=this.now(),r=s-this.lastInput>=nd;this.lastInput=s,r&&this.wake()},n={capture:!0,passive:!0},o=s=>{document[s]("visibilitychange",e),window[s]("focus",e);for(let r of od)document[s](r,t,n)};o("addEventListener"),this.detachWake=()=>o("removeEventListener")}wake(){let e=this.ws;if(!e||e.readyState!==1)return;let t=this.now();if(!(t-this.lastWake<id)){try{e.send(td)}catch{return}this.lastWake=t}}startKeepalive(e){this.pingTimer=setInterval(()=>{if(this.ws===e){try{e.send(JSON.stringify({type:"ping"}))}catch{return}this.clearPongTimer(),this.pongTimer=setTimeout(()=>{this.pongTimer=null;try{e.close()}catch{}},ed)}},Jc)}scheduleReconnect(){if(this.stopped||this.reconnectTimer)return;let e=Math.min(this.attempt++,5),t=Math.min(1e3*2**e,Xc),n=this.pollTimer?ms/2+Math.random()*ms/2:Math.random()*t;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.reconnectCount+=1,this.connect()},n)}get reconnects(){return this.reconnectCount}clearPongTimer(){this.pongTimer&&(clearTimeout(this.pongTimer),this.pongTimer=null)}clearTimers(){this.pingTimer&&clearInterval(this.pingTimer),this.pingTimer=null,this.clearPongTimer(),this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null,this.resumeTimer&&clearTimeout(this.resumeTimer),this.resumeTimer=null}};function dd(i){return i==="blocked"?"not_for_sale":i==="unavailable"?"held":i==="held"||i==="booked"||i==="free"||i==="not_for_sale"?i:"free"}var pd="#f43f5e";function Yt(i,e={}){let t=n=>{let o=i.tableSelection(n);if(o)return o.physicalSeatIds;let s=i.idForLabel(n);return s?[s]:[]};return{applyStatuses(n){let o=new Set([...i.currentHold()?.labels??[],...e.ownLabels?.()??[]]),s={free:[],held:[],booked:[],not_for_sale:[]},r=[],a=[],l=new Map(i.getSelection().map(c=>[c.label,c.id]));for(let c of n){let d=t(c.label);if(!d.length)continue;let u=dd(c.status);if(s[u].push(...d),e.flashOnLiveChange&&u!=="free"&&!o.has(c.label)&&d.some(m=>i.getStatus(m)==="free"))for(let m of d)r.push({id:m,color:pd});u!=="free"&&!o.has(c.label)&&l.has(c.label)&&a.push(c.label)}for(let c of["free","held","booked","not_for_sale"])s[c].length&&i.setStatus(s[c],c);for(let c of r)i.flashSeat(c.id,c.color);if(a.length){let c=a.flatMap(u=>t(u));c.length&&i.deselect(c);let d=n.some(u=>u.status==="blocked"&&a.includes(u.label));e.onSelectedObjectUnavailable?.(a,d?"ineligible":"taken")}e.onStatusChange?.()},...i.applyProjection?{applyProjection:n=>{i.applyProjection(n)}}:{},async resync(n){await(i.resync?i.resync(n):i.refresh())},onSections(n,o,s){s?.withInventory||(i.resync?i.resync({reason:"frame"}):i.refresh()),e.onSections?.(n,o,s)}}}var Qe="pricingContract=matrix-v1&pricingContract=seat-v1",V=class extends Error{constructor(e,t,n,o,s,r,a,l){super(t),this.name="ApiError",this.status=e,this.code=n,this.conflicts=o,this.reason=s,this.retryAfterS=r,this.notice=a,l?.fields&&(this.fields=l.fields),typeof l?.retryable=="boolean"&&(this.retryable=l.retryable),l?.hint&&(this.hint=l.hint),l?.serverMessage&&(this.serverMessage=l.serverMessage)}},gs=10,bs=1;function Zt(i,e){let t=(i??"").trim();if(t){let n=Number(t);if(Number.isFinite(n)&&n>=0)return Math.ceil(n);let o=Date.parse(t);if(Number.isFinite(o))return Math.max(0,Math.ceil((o-Date.now())/1e3))}if(typeof e=="number"&&Number.isFinite(e)&&e>=0)return Math.ceil(e)}function hd(i){let e=i;return!!e&&typeof e.ticketKey=="string"&&typeof e.label=="string"&&Number.isFinite(e.unitIndex)&&Number.isFinite(e.quantity)&&(e.displayLabel===void 0||typeof e.displayLabel=="string")}var ud={seat_conflict:"taken",conflict:"taken",channel_assignment_conflict:"ineligible",allocation_exhausted:"exhausted"};function md(){return typeof crypto>"u"?null:typeof crypto.randomUUID=="function"?crypto.randomUUID():typeof crypto.getRandomValues!="function"?null:Array.from(crypto.getRandomValues(new Uint8Array(18)),i=>i.toString(16).padStart(2,"0")).join("")}function fd(i,e){let t=e.map(n=>[n.label,n.tierId??null,n.quantity??null]).sort((n,o)=>n[0]<o[0]?-1:n[0]>o[0]?1:0);return JSON.stringify([i,t])}function gd(i){return i instanceof V?i.status===408||i.status===429||i.status>=500:!0}function ys(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`viewer_${Math.random().toString(36).slice(2)}${Date.now().toString(36)}`}var _e=class{constructor(e,t={}){this.base=e;this.viewerId=ys();this.holdAttempt=null;this.holdIdempotency=!0;this.ticketKeysByHold=new Map;this.access=t.access,this.onObjectUnavailable=t.onObjectUnavailable;let n=t.referral?.trim();this.referral=n?n.slice(0,120):void 0}rotateViewerId(){this.viewerId=ys()}async pickerIdleMinutes(){return null}get accessScoped(){return!!this.access?.configured}async request(e,t={},n={}){let o=t.method??"GET",s={},r;t.body!==void 0&&(s["Content-Type"]="application/json",r=JSON.stringify(t.body));let a=await this.access?.authorization(n.auth?"unauthorized":"initial");if(a&&(s.Authorization=a),t.idempotency){let m=this.holdAttemptKey(`${t.idempotency.binding}\0${a??""}`);t.idempotency.used(m??void 0),m&&(s["Idempotency-Key"]=m)}let l=o==="GET"||e.endsWith("/hold/resume")?new AbortController:null,c=l?setTimeout(()=>l.abort(),4e4):null,d,u;try{d=await fetch(`${this.base}${e}`,{method:o,headers:s,body:r,credentials:"omit",...l?{signal:l.signal}:{}}),u=(d.headers.get("content-type")??"").includes("application/json")?await d.json().catch(p=>{if(l?.signal.aborted)throw p;return null}):null}finally{c!==null&&clearTimeout(c)}if(!d.ok){let m=u,p=m?.code??m?.error,v=d.status===401&&p==="buyer_access_invalid"&&e.endsWith("/hold/resume");if(this.access?.configured&&!v&&(d.status===401||d.status===403||d.status===422)&&await this.access.handleFailure(d.status,p)&&!n.auth)return this.request(e,t,{...n,auth:!0});if(d.status===409){let T=p?ud[p]:void 0,S=m?.conflicts?.map(y=>y.label)??t.labels??[];T&&this.onObjectUnavailable?.({labels:S,reason:T,code:p})}let g;if(d.status===429&&(g=Zt(d.headers.get("Retry-After"),m?.retryAfterSeconds)??bs,o==="GET"&&!n.rateLimit&&g<=gs))return await new Promise(T=>setTimeout(T,g*1e3)),this.request(e,t,{...n,rateLimit:!0});throw d.status===503&&(g=Zt(d.headers.get("Retry-After"),m?.retryAfterSeconds)),new V(d.status,m?.error??`request_failed_${d.status}`,p,m?.conflicts,m?.reason,g,typeof m?.notice=="string"&&m.notice?m.notice:void 0,{...Array.isArray(m?.fields)?{fields:m.fields}:{},...typeof m?.retryable=="boolean"?{retryable:m.retryable}:{},...typeof m?.hint=="string"&&m.hint?{hint:m.hint}:{},...typeof m?.message=="string"&&m.message?{serverMessage:m.message}:{}})}return u}async requestBlob(e,t={}){let n={},o=await this.access?.authorization(t.auth?"unauthorized":"initial");o&&(n.Authorization=o);let s=await fetch(`${this.base}${e}`,{method:"GET",headers:n,credentials:"omit"});if(s.ok)return s.blob();let a=(s.headers.get("content-type")??"").includes("application/json")?await s.json().catch(()=>null):null,l=a?.code??a?.error;if(this.access?.configured&&(s.status===401||s.status===403||s.status===422)&&await this.access.handleFailure(s.status,l)&&!t.auth)return this.requestBlob(e,{...t,auth:!0});let c;if(s.status===429&&(c=Zt(s.headers.get("Retry-After"),a?.retryAfterSeconds)??bs,!t.rateLimit&&c<=gs))return await new Promise(d=>setTimeout(d,c*1e3)),this.requestBlob(e,{...t,rateLimit:!0});throw new V(s.status,a?.error??`request_failed_${s.status}`,l,void 0,void 0,c)}chart(e){return this.request(`/pub/events/${encodeURIComponent(e)}/chart`)}eventConfiguration(e){return this.request(`/pub/events/${encodeURIComponent(e)}/event-configuration`)}reportViewEvidence(e,t){return this.request(`/pub/events/${encodeURIComponent(e)}/view-evidence-reports`,{method:"POST",body:{seatId:t.seatId,...t.evidenceId?{evidenceId:t.evidenceId}:{},...t.message?{message:t.message}:{}}})}asset(e,t){return/^[a-zA-Z0-9._-]+$/.test(t)?this.requestBlob(`/pub/events/${encodeURIComponent(e)}/assets/${encodeURIComponent(t)}`):Promise.reject(new V(404,"not_found","not_found"))}async objects(e){return{...await this.request(`/pub/events/${encodeURIComponent(e)}/objects?compact=1&${Qe}`),fetchedAt:Date.now()}}hold(e,t,n,o){let s=`/pub/events/${encodeURIComponent(e)}/hold?${Qe}`,r={method:"POST",body:{selections:t,...n?{ttlMs:n}:{},...o?{replaceHoldId:o}:{},...this.referral?{referral:this.referral}:{}},labels:t.map(l=>l.label)};return(o||!this.holdIdempotency?this.request(s,r):this.keyedHold(s,r,fd(e,t))).then(l=>this.noteTicketKeys(l,o))}holdAttemptKey(e){if(this.holdAttempt?.binding===e)return this.holdAttempt.key;let t=md();return this.holdAttempt=t?{binding:e,key:t}:null,t}endHoldAttempt(e){e&&this.holdAttempt?.key===e&&(this.holdAttempt=null)}async keyedHold(e,t,n,o=!1){let s;try{let r=await this.request(e,{...t,idempotency:{binding:n,used:a=>{s=a}}});return this.endHoldAttempt(s),r}catch(r){if(gd(r))throw r;this.endHoldAttempt(s);let a=r.code;if(a==="idempotency_key_reused"&&!o)return this.keyedHold(e,t,n,!0);if(a==="invalid_idempotency_key")return this.holdIdempotency=!1,this.request(e,t);throw r}}noteTicketKeys(e,t){if(t&&this.ticketKeysByHold.delete(t),!e?.holdId)return e;let n=Array.isArray(e.ticketKeys)&&e.ticketKeys.every(s=>typeof s=="string")?[...e.ticketKeys]:null,o=Array.isArray(e.ticketKeyDetails)&&e.ticketKeyDetails.every(hd)?e.ticketKeyDetails.map(({ticketKey:s,label:r,unitIndex:a,quantity:l,displayLabel:c})=>({ticketKey:s,label:r,unitIndex:a,quantity:l,...c?{displayLabel:c}:{}})):null;return n||o?this.ticketKeysByHold.set(e.holdId,{...n?{ticketKeys:n}:{},...o?{ticketKeyDetails:o}:{}}):this.ticketKeysByHold.delete(e.holdId),e}ticketKeysFor(e){let t=this.ticketKeysByHold.get(e);return t?{...t}:null}bestAvailable(e,t,n,o,s){return this.request(`/pub/events/${encodeURIComponent(e)}/best-available?${Qe}`,{method:"POST",body:{qty:t,...n?{categoryKey:n}:{},...o?{zoneId:o}:{},...s?{ttlMs:s}:{},...this.referral?{referral:this.referral}:{}}}).then(r=>this.noteTicketKeys(r))}resume(e,t){return this.request(`/pub/events/${encodeURIComponent(e)}/hold/resume`,{method:"POST",body:{holdId:t}}).then(n=>this.noteTicketKeys(n))}release(e,t,n){return this.holdAttempt=null,this.request(`/pub/events/${encodeURIComponent(e)}/release`,{method:"POST",body:{labels:t,holdId:n}}).then(o=>{let s=this.ticketKeysByHold.get(n);if(s){let r=new Set(o?.released??t);this.ticketKeysByHold.set(n,{...s.ticketKeys?{ticketKeys:s.ticketKeys.filter(a=>!r.has(a))}:{},...s.ticketKeyDetails?{ticketKeyDetails:s.ticketKeyDetails.filter(a=>!r.has(a.ticketKey))}:{}})}return o})}extend(e,t,n){return this.request(`/pub/events/${encodeURIComponent(e)}/extend`,{method:"POST",body:{holdId:t,...n?{ttlMs:n}:{}}})}paymentOptions(e){return this.request(`/pub/events/${encodeURIComponent(e)}/payment-options`)}availability(e,t=!1){return this.request(`/pub/events/${encodeURIComponent(e)}/availability?${Qe}${t?"&live=1":""}`)}startCheckout(e,t){return this.holdAttempt=null,this.request(`/pub/events/${encodeURIComponent(e)}/checkout`,{method:"POST",body:t})}orderStatus(e){return this.request(`/pub/orders/${encodeURIComponent(e)}/status`)}subscribeTicket(e){return this.request(`/pub/events/${encodeURIComponent(e)}/subscribe-tickets`,{method:"POST",body:{}})}subscribeUrl(e){let t=this.base.replace(/^http/,"ws"),n=new URLSearchParams({surface:"picker",viewerId:this.viewerId});return`${t}/pub/events/${encodeURIComponent(e)}/subscribe?${n}&${Qe}`}socketUrl(e){return this.accessScoped?"":this.subscribeUrl(e)}socketProtocols(e){return this.accessScoped?[]:[Ze]}createRealtime(e,t){return this.accessScoped?null:new Ce({url:this.subscribeUrl(e),sink:t})}};import{t as Ns,tCount as kd}from"@seatlayer/core";import{compactRowLabel as bd,seatNoteRowModel as yd,seatTypeIconSvg as ks,t as Xe}from"@seatlayer/core";import{seatConfidenceDisclosure as vd}from"@seatlayer/core/core/seatConfidence";function On(i){return/early[\s-]*bird/i.test(i?.trim()??"")}function vs(i){return On(i)?'<svg class="sl-offer-icon sl-offer-icon-discount" viewBox="0 0 32 32" aria-hidden="true"><defs><linearGradient id="sl-offer-discount-gradient" x1="29.492" y1="0" x2="20.028" y2="36.183" gradientUnits="userSpaceOnUse"><stop stop-color="#FD6D00"/><stop offset="1" stop-color="#F8B302"/></linearGradient></defs><path d="M16 22.751a1.071 1.071 0 1 0 0-2.142 1.071 1.071 0 0 0 0 2.142ZM16 11.39a1.071 1.071 0 1 0 0-2.141 1.071 1.071 0 0 0 0 2.141Z" fill="url(#sl-offer-discount-gradient)"/><path d="M31.137.863A2.928 2.928 0 0 0 29.054 0H17.836c-.787 0-1.527.307-2.083.863L.863 15.753A2.93 2.93 0 0 0 0 17.836c0 .787.307 1.527.863 2.083l11.218 11.218A2.927 2.927 0 0 0 14.164 32c.787 0 1.527-.307 2.083-.863l14.89-14.89A2.928 2.928 0 0 0 32 14.164V2.946c0-.788-.307-1.527-.863-2.083ZM16 7.374a2.946 2.946 0 1 1 0 5.891 2.946 2.946 0 0 1 0-5.891Zm0 17.252a2.946 2.946 0 1 1 0-5.891 2.946 2.946 0 0 1 0 5.891Zm6.025-7.689H9.975a.938.938 0 0 1 0-1.875h12.05a.938.938 0 0 1 0 1.875Zm4.017-10.041a.938.938 0 1 1 0-1.875.938.938 0 0 1 0 1.875Z" fill="url(#sl-offer-discount-gradient)"/></svg>':'<svg class="sl-offer-icon sl-offer-icon-tag" viewBox="0 0 24 24" aria-hidden="true"><path d="M20.6 13.6 13.7 20.5a2 2 0 0 1-2.8 0L3.5 13.1A2 2 0 0 1 3 11.7V4h7.7a2 2 0 0 1 1.4.6l8.5 8.5a.7.7 0 0 1 0 .5Z"/><circle cx="7.5" cy="8.5" r="1"/></svg>'}function Pi(i,e){return`<span class="sl-offer-mark" role="img" aria-label="${e(i)}" title="${e(i)}">${vs(i)}</span>`}function Li(i,e){return`<span class="sl-offer-badge">${vs(i)}<span>${e(i)}</span></span>`}function ws(i,e=Date.now()){let t=i-e;if(t<=0)return null;let n=Math.max(1,Math.ceil(t/6e4)),o=Math.floor(n/1440),s=Math.floor(n%1440/60),r=n%60;return`${(o>0?[`${o}d`,...s?[`${s}h`]:[]]:[...s?[`${s}h`]:[],...r||!s?[`${r}m`]:[]]).join(" ")} left`}function _n(i){return String(i??"\u2014").replace(/[&<>"]/g,e=>({"&":"&","<":"<",">":">",'"':"""})[e])}function E(i){return String(i??"").replace(/[&<>"]/g,e=>({"&":"&","<":"<",">":">",'"':"""})[e])}function Nn(i){return i?yd(i).map(e=>({...e,title:b(e.titleKey,e.titleFallback)})):[]}function Ss(i){return Nn(i).map(e=>e.title)}function Je(i,e={}){return Dn(Nn(i),e)}function Dn(i,e={}){if(!i.length)return"";let t=e.compact?15:17,n=i.map(o=>`<div class="sl-note sl-note-${E(o.tone)}"><span class="sl-note-i">${ks(o.icon,{size:t})}</span><span class="sl-note-t"><b>${E(o.title)}</b>`+(o.note?`<span class="sl-note-n">${E(o.note)}</span>`:"")+"</span></div>").join("");return`<div class="sl-notes${e.compact?" compact":""}">${n}</div>`}function Ts(i){return Nn(i).map(e=>{let t=E(e.note?`${e.title}: ${e.note}`:e.title);return`<span class="sl-cx-mark sl-cx-mark-${E(e.tone)}" role="img" aria-label="${t}" title="${t}">${ks(e.icon,{size:13})}</span>`}).join("")}function Mi(i){let e=[];return i?.restrictedView&&e.push(b("picker.restrictedView","Restricted view")),i?.obstructedView&&e.push(b("picker.obstructedView","Obstructed view")),e}function Bn(i,e){if(!i)return"";let t=e?b("picker.viewFromThisSeat","View from this seat"):b("picker.seeItIn3d","See it in 3D"),n=e?b("picker.viewFromHere","View from here"):t;return`<button type="button" class="sl-confirm-3d" aria-label="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span>${n}</span></button>`}function Es(i,e){if(!e)return"";let t=e,n=t.includes(i.id),o=n?t.length>1?b("picker.openComparison","Open comparison"):b("picker.savedForComparison","Saved for comparison"):t.length?b("picker.compareWithSaved","Compare with saved"):b("picker.saveToCompare","Save to compare");return`<button type="button" class="sl-confirm-compare"${n&&t.length===1?" disabled":""}><span aria-hidden="true">\u21C4</span><span>${E(o)}</span></button>`}function Cs(i,e,t){if(!t)return"";let n=vd(i.confidenceEvidence),o=n.modeledTarget??n.reality;return`<button type="button" class="sl-confirm-confidence" aria-label="Open seat confidence passport for ${E(i.displayLabel??i.label)}"><span><em>${E(e)}</em><strong>${E(n.headline)}</strong><small>${E(o)}</small></span><b>Passport</b></button>`}function q(i){let e=i?.rowLabel,t=i?.sectionLabel;if(!e||!t)return e;for(let n of["-"," ","\xB7","/","_"]){let o=`${t}${n}`;if(e.startsWith(o)&&e.length>o.length)return e.slice(o.length)}return bd(e,t)}function wd(i){switch(i){case"paused":return{title:b("picker.accessPausedTitle","These seats are on hold right now"),body:b("picker.accessPausedBody","The organizer has paused this selection. Try again in a few minutes."),action:b("picker.accessRetry","Try again")};case"revoked":return{title:b("picker.accessRevokedTitle","This access link is no longer active"),body:b("picker.accessRevokedBody","Ask whoever sent you here for a new link to keep booking these seats."),action:b("picker.accessRefresh","Refresh")};case"idle":return{title:b("picker.idlePausedTitle","Your session expired"),body:b("picker.idlePausedBody","You were away for a while. Refresh to see which seats are free now."),action:b("picker.idleRefresh","Show latest seats")};case"no_token":case"provider_failed":return{title:b("picker.accessExpiredTitle","The seat map timed out"),body:b("picker.accessExpiredBody","Any seats you\u2019re holding stay held. Refresh to see what\u2019s available now."),action:b("picker.accessRefresh","Refresh")};default:return{title:b("picker.accessInvalidTitle","We couldn\u2019t verify your access"),body:b("picker.accessInvalidBody","You can still book anything shown as available. Contact whoever sent you here for access to the rest."),action:b("picker.accessRefresh","Refresh")}}}var xd=6;function As(i,e,t){let n=_n;return[i?.sectionLabel?`<div class="sl-confirm-field sl-confirm-sec${i.sectionLabel.length>xd?" sl-confirm-sec-long":""}"><span class="sl-confirm-key">${b("picker.section","Section")}</span><span class="sl-confirm-value">${n(i.sectionLabel)}</span></div>`:"",i?.rowLabel||i?.objectType==="booth"?`<div class="sl-confirm-field"><span class="sl-confirm-key">${n(t)}</span><span class="sl-confirm-value">${n(q(i)??i?.displayLabel??e)}</span></div>`:"",i?.objectType!=="booth"?`<div class="sl-confirm-field"><span class="sl-confirm-key">${b("picker.seat","Seat")}</span><span class="sl-confirm-value">${n(i?.seatNumber??i?.displayLabel??e)}</span></div>`:""].filter(Boolean).join("")}function Ps(i,e,t){let n=_n,o=i?.objectType==="booth",s=i?.objectType==="table"&&!!i?.bookingMode,r=o||s||!i?.seatNumber,a=i?.sectionLabel??(r?void 0:i?.displayLabel),l=s?`${b("picker.guests","Guests")} ${i?.bookingMode==="variable"?`${i?.minOccupancy}\u2013${i?.maxOccupancy}`:i?.capacity}`:void 0,d=(r?[l,a?i?.rowLabel??i?.displayLabel:void 0]:[i?.rowLabel?`${t} ${q(i)??""}`.trim():void 0,`${b("picker.seat","Seat")} ${i?.seatNumber??e}`]).filter(Boolean).join(" \xB7 ");return(a?`<span class="sl-confirm-place">${n(a)}</span>`:"")+(d?`<span class="sl-confirm-pos">${a?" \xB7 ":""}${n(d)}</span>`:"")+(a||d?"":`<span class="sl-confirm-pos">${n(e)}</span>`)}function Ls(i,e){if(!i)return"";let t=e?b("picker.viewFromThisSeat","View from this seat"):b("picker.seeItIn3d","See it in 3D");return`<button type="button" class="sl-confirm-pill sl-confirm-3dpill" aria-label="${t}" title="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span aria-hidden="true">3D</span></button>`}function Ms(i,e){if(!i||e)return"";let t=b("picker.seeItIn3d","See it in 3D");return`<button type="button" class="sl-confirm-3drow" aria-label="${t}" title="${t}"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2l9 5v10l-9 5-9-5V7z"/><path d="M12 12l9-5M12 12v10M12 12L3 7"/></svg><span aria-hidden="true">3D</span></button>`}function xs(i){return i.buyerMessage?.trim()||(i.restriction==="companion"?b("picker.companionRequiresWheelchair","Requires the adjacent wheelchair place"):void 0)}function Hi(i,e,t,n=()=>{}){let o=_n;if(i.length>1)return`<fieldset class="sl-confirm-tiers"><legend><span>${b("picker.ticketType","Ticket type")}</span></legend>`+i.map(a=>{let l=xs(a),c=n(a);return`<button type="button" class="sl-confirm-tier" data-confirm-tier="${o(a.id)}"${c?` data-offer-name="${o(c)}"`:""} aria-pressed="${a.id===e}"><span class="sl-confirm-tier-copy"><span class="sl-confirm-tier-name">${o(a.name)}`+(c?`<span class="sl-confirm-tier-offer">${Li(c,o)}</span>`:"")+"</span>"+(l?`<small class="sl-confirm-tier-note">${o(l)}</small>`:"")+`</span><span class="sl-confirm-tier-price">${o(t(a))}</span></button>`}).join("")+"</fieldset>";let s=i[0],r=s?xs(s):void 0;return r?`<p class="sl-confirm-tier-note">${o(r)}</p>`:""}function Hs(i){return'<div class="sl-confirm-grid">'+i.identityFields+`</div><div class="sl-confirm-cat"><span class="sl-confirm-cat-name">${E(i.categoryLabel)}</span>`+(i.priceLabel?`<span class="sl-confirm-price">${E(i.priceLabel)}</span>`:"")+'</div><div class="sl-confirm-id">'+i.marker+`<span class="sl-confirm-dot" style="background:${E(i.categoryColor)}" aria-hidden="true"></span><span class="sl-sr">${E(i.categoryLabel)}</span><span class="sl-confirm-who">`+i.identity+"</span>"+(i.priceLabel?`<span class="sl-confirm-idprice">${E(i.priceLabel)}</span>`:"")+'</div><div class="sl-confirm-body">'+i.commercial+i.tierChoices+i.groupDates+i.wheelchair+(i.thumb||i.see3dPill?`<div class="sl-confirm-strip">${i.thumb}<span class="sl-confirm-pills">${i.see3dPill}</span></div>`:"")+i.inspect+'<div class="sl-confirm-row">'+(i.see3dRow??"")+`<button type="button" class="sl-confirm-cancel">${E(i.cancelLabel)}</button><button type="button" class="sl-confirm-add"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4 4L19 7"/></svg><span class="sl-confirm-add-t">${E(i.selectLabel)}</span></button></div></div>`}function Rs(i,e){let t=_,{variable:n}=e;return`<section class="sl-table-dialog" role="dialog" aria-modal="true" aria-labelledby="sl-table-title" aria-describedby="sl-table-copy"><div class="sl-table-head"><div class="sl-table-eyebrow">${t(n?Xe("picker.flexiblePartyTypeWord",{typeWord:e.typeWord}):Xe("picker.wholeTypeWord",{typeWord:e.typeWord}))}</div><h2 class="sl-table-title" id="sl-table-title">${t(i.displayLabel??i.label)}</h2><p class="sl-table-copy" id="sl-table-copy">${t(n?b("picker.chooseGuestsCopy","Choose how many guests will sit together. This table is held exclusively for your party."):Xe("picker.allPlacesBookedTogether",{count:i.capacity}))}</p></div><div class="sl-table-body"><div class="sl-table-summary"><span>${t(e.categoryLabel)}</span>`+(e.suppressPricing?"":`<b data-table-unit>${t(Xe("picker.perGuestPrice",{price:e.unitPrice}))}</b>`)+`<span class="muted">${t(b("picker.tableCapacity","Table capacity"))}</span><span>${t(Xe("picker.guestsCount",{count:i.capacity}))}</span>`+(i.entrance?`<span class="muted">${t(b("picker.entrance","Entrance"))}</span><span>${t(i.entrance)}</span>`:"")+(e.suppressPricing?"":`<span class="muted">${t(b("picker.total","Total"))}</span><b data-table-total></b>`)+"</div>"+(n?`<label class="sl-table-qtylabel" id="sl-table-qty-label">${t(b("picker.numberOfGuests","Number of guests"))}</label><div class="sl-table-stepper" role="group" aria-labelledby="sl-table-qty-label"><button type="button" data-table-step="-1" aria-label="${t(b("picker.fewerGuests","Fewer guests"))}">\u2212</button><output aria-live="polite" data-table-qty>${i.quantity}</output><button type="button" data-table-step="1" aria-label="${t(b("picker.moreGuests","More guests"))}">+</button></div><div class="sl-table-range">${t(Xe("picker.chooseMinMaxGuests",{min:i.minOccupancy,max:i.maxOccupancy}))}</div>`:`<input type="hidden" data-table-qty value="${i.capacity}">`)+`<div class="sl-table-actions"><button type="button" class="sl-table-cancel">${t(Xe("common.cancel"))}</button><button type="button" class="sl-table-confirm">${t(e.held?b("picker.updateTable","Update table"):n?b("picker.selectTable","Select table"):b("picker.selectWholeTable","Select whole table"))}</button></div></div></section>`}function Is(i,e){let t=wd(i),n=document.createElement("div");n.className="sl-interrupt sl-access",n.setAttribute("role","status"),n.setAttribute("aria-live","polite");let o=document.createElement("div");o.className="sl-interrupt-card";let s=document.createElement("div");s.className="sl-interrupt-title",s.textContent=t.title;let r=document.createElement("div");r.className="sl-interrupt-body",r.textContent=t.body,o.append(s,r);let a=document.createElement("div");a.className="sl-interrupt-actions";let l=document.createElement("button");l.type="button",l.className="sl-interrupt-act";let c=document.createElement("span");c.className="sl-interrupt-act-icon",c.setAttribute("aria-hidden","true"),c.textContent="\u21BB";let d=document.createElement("span");return d.textContent=t.action,l.append(c,d),l.addEventListener("click",async()=>{n.classList.add("is-reloading"),l.disabled=!0;try{await e()}catch{}finally{n.isConnected&&(n.classList.remove("is-reloading"),l.disabled=!1)}}),a.appendChild(l),o.appendChild(a),n.appendChild(o),n}function Os(i,e){return`<div class="sl-a11yhead"><span class="sl-a11yhead-t">${E(i)}</span><button type="button" class="sl-a11yclose" data-a11y-close aria-label="${_(e)}"><svg viewBox="0 0 24 24" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></button></div>`}function _s(i){return i.map(e=>{let t=`<button type="button" role="switch" class="sl-a11yrow${e.className?` ${e.className}`:""}${e.on?" on":""}" data-a11y-row="${E(e.key)}" aria-checked="${e.on}" aria-pressed="${e.on}"`+(e.disabled?' disabled aria-disabled="true"':"")+`><span class="sl-a11yrow-i" aria-hidden="true">${e.iconHtml}</span><span class="sl-a11yrow-t"><span class="sl-a11yrow-l">${E(e.label)}</span></span>`+(e.count?`<span class="sl-a11yrow-c">${E(e.count)}</span>`:"")+'<span class="sl-a11yrow-s" aria-hidden="true"></span></button>';return e.note?`<div class="sl-a11yrow-w">${t}${vt({id:`sl-info-${_(e.key.replace(/[^A-Za-z0-9]+/g,"-"))}`,label:e.note,text:E(e.note)})}</div>`:t}).join("")}function vt(i){return`<span class="sl-info"${i.wrapRef?` data-ref="${_(i.wrapRef)}"`:""}><button type="button" class="sl-info-btn" data-sl-info aria-label="${_(i.label)}" aria-describedby="${_(i.id)}" aria-expanded="false"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5"/><path d="M12 8h.01"/></svg></button><span class="sl-info-pop" role="tooltip" id="${_(i.id)}"${i.ref?` data-ref="${_(i.ref)}"`:""}>${i.text}</span></span>`}function Ds(i){let e=Math.max(0,i),t=Math.floor(e/6e4),n=String(Math.floor(e%6e4/1e3)).padStart(2,"0");return`${t}:${n}`}function Bs(i){let e=i.performanceLabel?`<div class="sl-chip-when">${_(i.performanceLabel)}</div>`:"",t=i.performanceDates?.labels.length?`<div class="sl-chip-dates"><span class="sl-chip-dates-summary">${_(i.performanceDates.summary)}</span><span class="sl-chip-date-list">${i.performanceDates.labels.map(n=>`<span class="sl-chip-date">${_(n)}</span>`).join("")}</span></div>`:"";return e+Sd(i)+t}function Sd(i){let{d:e,area:t,label:n,objectType:o,quantity:s=1,identity:r}=i,a=R=>String(R??"\u2014").replace(/[&<>"]/g,G=>({"&":"&","<":"<",">":">",'"':"""})[G]),l=o==="ga"?"ga":e?.objectType??o,c=r?.displayType?.trim()||e?.displayType?.trim()||t?.displayType?.trim()||(l==="table"?b("picker.table","Table"):l==="booth"?b("picker.booth","Booth"):l==="ga"?b("picker.generalAdmission","General admission"):b("picker.row","Row")),d=r?.rowLabel??r?.displayLabel??e?.rowLabel??e?.displayLabel??t?.label??n,u=i.categoryLabel?.trim()??"",m="",p=[];l==="table"&&r?.bookingMode?(m=`${c} ${d}`,p.push([b("picker.guests","Guests"),String(s)])):l==="ga"?(m=String(t?.displayLabel??d),s>1&&p.push([b("picker.tickets","Tickets"),String(s)])):l==="booth"?(m=e?.sectionLabel??`${c} ${d}`,e?.sectionLabel&&p.push([c,String(d)])):!e?.sectionLabel&&!e?.rowLabel&&!e?.seatNumber?m=String(d):(m=e.sectionLabel??"",e.rowLabel&&p.push([c,String(q(e)??e.rowLabel)]),e.seatNumber&&p.push([b("picker.seat","Seat"),String(e.seatNumber)]));let v=!m&&!!u,g=m||u||String(d),T=!!u&&!v&&u!==g,S=i.offerName?Pi(i.offerName,a):"",y=p.map(([R,G])=>`<span class="sl-chip-seg" data-fit-seg><span class="w">${a(R)}</span> <b>${a(G)}</b></span>`);T&&y.push(`<span class="sl-chip-seg" data-fit-seg data-fit-type><span class="w">${a(u)}</span>${S}</span>`);let P=[g,...p.map(([R,G])=>`${R} ${G}`),T?u:"",i.offerName??""].filter(Boolean).join(" \xB7 ");return`<div class="sl-chip-id"><span class="sl-sr">${a(P)}</span><span class="sl-chip-name" aria-hidden="true">${a(g)}${T?"":S}</span>`+(y.length?`<span class="sl-chip-pos" aria-hidden="true">${y.join("<i>\xB7</i>")}</span>`:"")+"</div>"}function Fn(i,e,t){return i.map(n=>`<option value="${t(n.id)}"${n.id===e?" selected":""}>${t(n.name)}</option>`).join("")}function Td(i){let e=_;return` data-key="${e(i.key)}"`+(i.heldLabels.length?` data-held="${e(encodeURIComponent(i.heldLabels.join(`
|
|
2
2
|
`)))}"`:"")+(i.seatIds.length?` data-seat="${e(i.seatIds.join(" "))}"`:"")+(i.locateId?` data-locate="${e(i.locateId)}"`:"")}function Fs(i){let e=_;return`<div class="sl-chip${i.held?" sl-held":""}${i.fresh?" sl-enter":""}"`+Td(i)+">"+(i.held?i.stateHtml:`<span class="sl-chip-dot" style="background:${E(i.categoryColor)}" aria-hidden="true"></span>`)+`<div class="sl-chip-main">${i.identityHtml}`+(i.extrasHtml?`<div class="sl-chip-sub">${i.extrasHtml}</div>`:"")+`${i.noteHtml}</div>`+(i.amountText?`<span class="amt">${e(i.amountText)}</span>`:"")+i.railHtml+"</div>"}function Vn(i,e){let t=_(i),n=e?_(e):"";return'<div class="sl-chip-rail">'+(e?`<button type="button" class="view" data-view-label="${n}" aria-label="${_(Ns("picker.viewFromSeat",{label:e}))}"><svg viewBox="0 0 24 24"><path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z"/><circle cx="12" cy="12" r="3"/></svg></button>`:"")+`<button type="button" class="rm" aria-label="${t}"><svg viewBox="0 0 24 24"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></button></div>`}function Ri(i,e){return new Set(i.filter(t=>(e[t.key]??0)<=0).map(t=>t.key))}function Ii(i,e){let t=(i.doc?.categories??[]).filter(r=>!r.notForSale),n=e?t.filter(r=>r.key===e):t;if(!n.length)return null;let o=Ri(n,i.categoryAvailability());return o.size<n.length||(i.currentHold()?.items??[]).some(r=>o.has(r.categoryKey))?null:Object.assign(new Error("seatlayer: that ticket type is sold out"),{status:409,code:"sold_out",reason:"sold_out"})}function Vs(i){return i.confirming?`<div class="sl-ba" role="alert"><div class="sl-ba-title"><span class="spark" aria-hidden="true">\u2726</span>${b("picker.replaceCurrentChoices","Replace your current choices?")}</div><div class="sl-ba-replace"><b>${Ns("picker.willFindSeatsTogether",{count:i.quantity})}</b><span>${b("picker.manualTicketsRemovedNote","Your manually selected tickets will be removed only after a new group is secured.")}</span></div><div class="sl-ba-actions"><button type="button" data-ba-cancel>${b("picker.keepMine","Keep mine")}</button><button type="button" class="replace" data-ba-replace>${b("picker.findNewSeats","Find new seats")}</button></div></div>`:`<div class="sl-ba"><div class="sl-ba-title"><span class="sl-ba-title-t">${b("picker.findSeatsTogether","Find seats together")}</span>`+vt({id:"sl-info-best-seats",label:b("picker.aboutBestSeats","About finding seats together"),text:b("picker.closestGroupChosenInstantly","Closest available group, chosen instantly.")})+(i.offerPremium?`<button type="button" class="sl-ba-premium${i.premium?" on":""}" data-ba-premium aria-pressed="${i.premium?"true":"false"}"><span class="star" aria-hidden="true">\u2605</span>${b("picker.bestSeatsPremium","Best seats")}</button>`:"")+`</div><div class="sl-ba-qty"><button type="button" data-ba="-1" aria-label="${b("picker.fewerSeats","Fewer seats")}">\u2212</button><span>${i.quantity}</span><button type="button" data-ba="1" aria-label="${b("picker.moreSeats","More seats")}">+</button></div>`+(i.categories.length>1?`<select class="sl-ba-cat" aria-label="${_(b("picker.preferredTicketType","Preferred ticket type"))}" data-ba-cat><option value="">${_(b("picker.anyTicketType","Any ticket type"))}</option>`+i.categories.map(e=>e.soldOut?`<option value="${_(e.key)}" disabled>${_(`${e.label} \xB7 ${b("picker.soldOutTitle","Sold out")}`)}</option>`:`<option value="${_(e.key)}"${i.selectedCategory===e.key?" selected":""}>${_(e.label)}</option>`).join("")+"</select>":'<span class="sl-ba-cat" aria-hidden="true"></span>')+(i.zones.length?`<select class="sl-ba-zone" aria-label="${b("picker.preferredVenueZone","Preferred venue zone")}" data-ba-zone><option value="">${b("picker.anyVenueZone","Any venue zone")}</option>`+i.zones.map(e=>`<option value="${_(e.id)}"${i.selectedZone===e.id?" selected":""}>${_(e.label)}</option>`).join("")+"</select>":"")+`<button type="button" class="sl-ba-go${i.busy?" sl-busy":""}"${i.busy?" disabled":""}>`+(i.busy?`<span class="sl-ba-spin" aria-hidden="true"></span>${b("picker.findingBestSeats","Finding the best seats\u2026")}`:kd("picker.findBestSeatsCount",i.quantity))+"</button>"+(i.reopened?`<button type="button" class="sl-ba-back" data-ba-close>${b("picker.keepMyPicks","Keep my picks")}</button>`:"")+"</div>"}function $s(i){return i==="setup"||i==="testable"?{heading:b("picker.salesNotOpenPill","Sales haven\u2019t opened yet"),sentence:b("picker.salesNotOpenCopy","Tickets for this event aren\u2019t on sale yet.")}:i==="paused"?{heading:b("picker.salesPausedPill","Sales are paused"),sentence:b("picker.salesPausedCopy","Ticket sales are paused for now.")}:{heading:b("picker.salesClosedPill","Sales are closed"),sentence:b("picker.salesClosedCopy","Ticket sales for this event have ended.")}}function zs(i,e=!1){if(!e&&(i==="setup"||i==="testable"||i==="paused")){let t=$s(i);return{pill:t.heading,cta:t.heading,toast:t.sentence}}return{pill:b("picker.salesClosedPill","Sales are closed"),cta:b("picker.salesClosedCta","Sales closed"),toast:b("picker.salesClosedToast","Sales are closed for this event.")}}function js(i){if(i.salesClosed&&!i.hasPicks){let e=i.whenText?`<span class="when">${_(i.whenText)}</span>`:"",t=i.note??$s(i.salesState);return`<div class="sl-closed-note" role="status"><b>${t.heading}</b><span>${t.sentence}${e}</span></div>`}return""}function Gs(i){return i.hasGaAreas?i.seated?i.venue3d?b("picker.trayHintChoose3dOrStanding","Choose a seat in the 3D venue, or grab standing tickets below."):b("picker.trayHintTapOrStanding","Tap a seat on the map or grab standing tickets below."):i.venue3d?b("picker.gaTrayHintChoose3dArea","Choose an area in the 3D venue to select tickets."):b("picker.gaTrayHintTapArea","Tap an area on the map to choose tickets."):i.groupMode==="per_performance"?b("picker.groupPerPerformanceTrayHint","Choose seats for this performance, then complete every date above."):i.groupMode?b("picker.groupTrayHint","Choose seats once. The same seats will be held for every performance."):i.venue3d?b("picker.trayHintChoose3dOrBest","Choose a seat in the 3D venue, or let us pick the best available for you."):b("picker.trayHintTapOrBest","Tap a seat on the map, or let us pick the best available for you.")}import{getLocale as Ld,loadLocale as Md,LOCALE_NAMES as Hd,localeDirection as qs,resolveLocale as Ws,setStringOverrides as Rd,TRANSLATED_LOCALES as Id}from"@seatlayer/core";import{getLocale as Ed,localeDirection as Cd,t as Ad}from"@seatlayer/core";function Pd(){return`<svg class="sl-boot-venue" viewBox="0 0 200 140" preserveAspectRatio="xMidYMid meet" aria-hidden="true" focusable="false"><g class="sl-boot-shells">${["M20 92a80 52 0 0 1 160 0v14a94 62 0 0 0-160 0z","M32 74a68 42 0 0 1 136 0v12a80 50 0 0 0-136 0z","M46 58a54 32 0 0 1 108 0v10a64 38 0 0 0-108 0z"].map(e=>`<path d="${e}" />`).join("")}</g><rect class="sl-boot-stage" x="62" y="16" width="76" height="16" rx="4" /></svg>`}function Ks(i,e,t){let n=document.createElement("div");n.className="sl-picker",n.tabIndex=-1,n.lang=Ed(),n.dir=Cd(),i.appendChild(n),Object.entries(yt(void 0,t)).forEach(([s,r])=>n.style.setProperty(s,r)),n.innerHTML=`
|
|
3
3
|
<div class="sl-head">
|
|
4
4
|
<div class="sl-logo" data-ref="logo"></div>
|
|
@@ -458,12 +458,10 @@ ${t}`}function er(i){let{base:e,event:t,publicKey:n}=i;if(!e||!t||!n)return;let
|
|
|
458
458
|
than a second control saying the same thing. With no photo the whole rail is
|
|
459
459
|
muted and the pills move left, because a right-aligned pair floating on
|
|
460
460
|
nothing has no anchor. */
|
|
461
|
-
.sl-picker[data-layout="narrow"] .sl-confirm-thumb-badge
|
|
462
|
-
.sl-picker[data-layout="narrow"] .sl-confirm-viewbtn{position:absolute;left:6px;bottom:6px;top:auto;right:auto;
|
|
461
|
+
.sl-picker[data-layout="narrow"] .sl-confirm-thumb-badge{position:absolute;left:6px;bottom:6px;top:auto;right:auto;
|
|
463
462
|
width:auto;margin:0;display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:5px 10px;
|
|
464
463
|
border:1px solid transparent;border-radius:999px;font-size:11px;font-weight:800;
|
|
465
464
|
color:var(--sl-pill-ink);background:var(--sl-pill-plate);backdrop-filter:blur(3px);white-space:nowrap}
|
|
466
|
-
.sl-picker[data-layout="narrow"] .sl-confirm-viewbtn{position:relative;left:auto;bottom:auto}
|
|
467
465
|
/* NO PHOTO, NO RAIL (client review 2026-09-03). Without a picture the strip
|
|
468
466
|
was a 44px muted bar holding one pill \u2014 dead height on a card that already
|
|
469
467
|
covers a third of the phone. The strip leaves entirely; the 3D action moves
|
|
@@ -483,8 +481,6 @@ ${t}`}function er(i){let{base:e,event:t,publicKey:n}=i;if(!e||!t||!n)return;let
|
|
|
483
481
|
.sl-confirm-pill svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
|
|
484
482
|
/* Distance stays \u2014 it is geometric and defensible \u2014 as a caption beside the
|
|
485
483
|
pills rather than a line of its own under them. */
|
|
486
|
-
.sl-picker[data-layout="narrow"] .sl-confirm-sight{position:absolute;right:6px;top:6px;margin:0;
|
|
487
|
-
font-size:10px;font-weight:700;color:var(--sl-pill-ink);background:var(--sl-pill-plate);border-radius:999px;padding:3px 8px}
|
|
488
484
|
/* The full-width 3D button is the pill's desktop half; only one of them is
|
|
489
485
|
ever visible. */
|
|
490
486
|
.sl-picker[data-layout="narrow"] .sl-confirm-3d{display:none}
|
|
@@ -504,10 +500,6 @@ ${t}`}function er(i){let{base:e,event:t,publicKey:n}=i;if(!e||!t||!n)return;let
|
|
|
504
500
|
|
|
505
501
|
/* Plain "View from here" action shown when no real photo exists (the synthetic
|
|
506
502
|
thumb is suppressed at card size \u2014 full-screen is where it earns its keep). */
|
|
507
|
-
.sl-confirm-viewbtn{width:100%;margin-top:9px;padding:8px;border-radius:8px;border:1px solid var(--sl-line);
|
|
508
|
-
display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:800;
|
|
509
|
-
color:var(--sl-text);background:transparent;transition:border-color .15s,background .15s}
|
|
510
|
-
.sl-confirm-viewbtn:hover,.sl-confirm-viewbtn:focus-visible{border-color:var(--sl-accent);background:color-mix(in srgb,var(--sl-accent) 10%,transparent)}
|
|
511
503
|
/* confirm-card "See it in 3D" / "View from this seat" action \u2014 the purchase-
|
|
512
504
|
moment bridge into the cinematic. Styled like the view-from-seat button. */
|
|
513
505
|
.sl-confirm-3d{width:100%;margin-top:9px;padding:8px;border-radius:8px;border:1px solid var(--sl-line);
|
|
@@ -528,7 +520,6 @@ ${t}`}function er(i){let{base:e,event:t,publicKey:n}=i;if(!e||!t||!n)return;let
|
|
|
528
520
|
@media (prefers-reduced-motion:reduce){.sl-confirm-thumb-out{transition:none}}
|
|
529
521
|
.sl-confirm-thumb-badge{position:absolute;right:7px;top:7px;display:inline-flex;align-items:center;gap:5px;
|
|
530
522
|
font-size:10px;font-weight:700;color:#fff;background:rgba(10,14,22,0.72);border-radius:12px;padding:4px 9px;backdrop-filter:blur(3px)}
|
|
531
|
-
.sl-confirm-sight{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--sl-muted);margin-bottom:2px}
|
|
532
523
|
.sl-confirm-view{width:100%;margin-top:9px;padding:8px;border-radius:8px;border:1px solid var(--sl-line);
|
|
533
524
|
color:var(--sl-text);font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center;gap:7px}
|
|
534
525
|
.sl-confirm-view:hover{border-color:var(--sl-muted)}
|
|
@@ -1188,22 +1179,6 @@ ${t}`}function er(i){let{base:e,event:t,publicKey:n}=i;if(!e||!t||!n)return;let
|
|
|
1188
1179
|
/* An unavailable seat is still inspectable. This compact, non-modal status
|
|
1189
1180
|
card explains the exact chair the buyer touched without selecting it or
|
|
1190
1181
|
obscuring the venue with the full purchase confirmation sheet. */
|
|
1191
|
-
.sl-view3d-unavailable{position:absolute;left:50%;bottom:18px;z-index:9;display:grid;
|
|
1192
|
-
grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;width:min(330px,calc(100% - 24px));
|
|
1193
|
-
padding:13px 14px;border:1px solid rgba(255,255,255,.22);border-radius:14px;
|
|
1194
|
-
color:#eef3fb;background:rgba(10,14,22,.94);box-shadow:0 18px 48px rgba(0,0,0,.48);
|
|
1195
|
-
backdrop-filter:blur(10px);transform:translateX(-50%)}
|
|
1196
|
-
.sl-view3d-unavailable[data-state="held"]{border-color:rgba(242,168,56,.7)}
|
|
1197
|
-
.sl-view3d-unavailable[data-state="sold"],.sl-view3d-unavailable[data-state="dimmed"]{border-color:rgba(160,170,188,.48)}
|
|
1198
|
-
.sl-view3d-unavailable-copy{min-width:0}
|
|
1199
|
-
.sl-view3d-unavailable-eyebrow{display:block;font-size:9px;line-height:1.2;letter-spacing:.13em;
|
|
1200
|
-
text-transform:uppercase;color:#aab7cc;font-weight:850}
|
|
1201
|
-
.sl-view3d-unavailable strong{display:block;margin-top:3px;font-size:17px;line-height:1.2}
|
|
1202
|
-
.sl-view3d-unavailable p{grid-column:1/-1;margin:4px 0 0;color:#b9c4d7;font-size:11px;line-height:1.4}
|
|
1203
|
-
.sl-view3d-unavailable button{align-self:start;min-width:44px;min-height:44px;margin:-5px -6px 0 0;
|
|
1204
|
-
border-radius:999px;color:#eef3fb;font-size:18px;border:1px solid rgba(255,255,255,.18)}
|
|
1205
|
-
.sl-view3d-unavailable button:hover,.sl-view3d-unavailable button:focus-visible{background:rgba(255,255,255,.1)}
|
|
1206
|
-
.sl-picker[data-layout="narrow"] .sl-view3d-unavailable{bottom:10px;padding-bottom:max(13px,env(safe-area-inset-bottom))}
|
|
1207
1182
|
|
|
1208
1183
|
/* Sitting in the seat: the way back to the stage, and the momentary name of
|
|
1209
1184
|
the stop a pull-back just landed on.
|
|
@@ -1948,7 +1923,6 @@ button.sl-a11yrow-c[disabled]{opacity:.58;cursor:default;text-decoration-color:t
|
|
|
1948
1923
|
.sl-picker[data-layout="narrow"] .sl-filtersec{order:3}
|
|
1949
1924
|
.sl-picker[data-layout="narrow"] .sl-filters{order:4}
|
|
1950
1925
|
.sl-picker[data-layout="narrow"] .sl-prices-sec{order:5}
|
|
1951
|
-
.sl-picker[data-layout="narrow"] .sl-pricef{order:6}
|
|
1952
1926
|
.sl-picker[data-layout="narrow"] .sl-prices{order:7}
|
|
1953
1927
|
.sl-picker[data-layout="narrow"] .sl-foot{order:8}
|
|
1954
1928
|
.sl-picker[data-layout="narrow"] .sl-filtersec,
|
|
@@ -2301,7 +2275,7 @@ button.sl-a11yrow-c[disabled]{opacity:.58;cursor:default;text-decoration-color:t
|
|
|
2301
2275
|
padding:0 6px;margin:0 -6px;border-radius:8px;cursor:pointer;transition:background .15s}
|
|
2302
2276
|
.sl-price-row:hover,.sl-price-row:focus-visible{background:color-mix(in srgb,var(--sl-line) 40%,transparent)}
|
|
2303
2277
|
.sl-price-row.sl-active{background:color-mix(in srgb,var(--sl-accent) 9%,transparent)}
|
|
2304
|
-
.sl-price-was{margin-left:auto;color:var(--sl-muted);font-size:10px;text-decoration:line-through}
|
|
2278
|
+
.sl-price-was{margin-left:auto;color:var(--sl-muted);font-size:10px;text-decoration:line-through}
|
|
2305
2279
|
.sl-price-row.sl-active .sl-price-label{color:var(--sl-accent-text)}
|
|
2306
2280
|
.sl-dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--sl-cat-dot,var(--sl-accent))}
|
|
2307
2281
|
.sl-price-label{flex:1;min-width:0;display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;font-weight:600}
|
|
@@ -3012,8 +2986,7 @@ button.sl-a11yrow-c[disabled]{opacity:.58;cursor:default;text-decoration-color:t
|
|
|
3012
2986
|
Applied only to controls with clearance around them; tightly stacked pairs
|
|
3013
2987
|
(the cart chip's remove/view rail) instead get real height on narrow. */
|
|
3014
2988
|
@media (pointer:coarse){
|
|
3015
|
-
.sl-zoom>button,.sl-a11ybtn,.sl-cbbtn,.sl-close,.sl-ga-qty button,.sl-ba-qty button,.sl-price-more,
|
|
3016
|
-
.sl-seccard-x,.sl-fs-pill,.sl-side-toggle,.sl-minimap-toggle,.sl-ba-premium,
|
|
2989
|
+
.sl-zoom>button,.sl-a11ybtn,.sl-cbbtn,.sl-close,.sl-ga-qty button,.sl-ba-qty button,.sl-price-more,.sl-fs-pill,.sl-side-toggle,.sl-minimap-toggle,.sl-ba-premium,
|
|
3017
2990
|
.sl-floor-info{position:relative}
|
|
3018
2991
|
/* THE SHEET HANDLE IS NOT ON THAT LIST because it does not need to be: its
|
|
3019
2992
|
own rule is position:relative already, so the ::after below has a
|
|
@@ -3023,7 +2996,7 @@ button.sl-a11yrow-c[disabled]{opacity:.58;cursor:default;text-decoration-color:t
|
|
|
3023
2996
|
pill into the flex flow on every device this block exists for. The pill is
|
|
3024
2997
|
in that flow deliberately now, so the trap is gone with it.) */
|
|
3025
2998
|
.sl-zoom>button::after,.sl-a11ybtn::after,.sl-cbbtn::after,.sl-close::after,.sl-ga-qty button::after,.sl-ba-qty button::after,
|
|
3026
|
-
.sl-price-more::after,.sl-
|
|
2999
|
+
.sl-price-more::after,.sl-fs-pill::after,.sl-side-toggle::after,.sl-ba-premium::after,
|
|
3027
3000
|
.sl-minimap-toggle::after,.sl-floor-info::after,.sl-sheet-toggle::after{
|
|
3028
3001
|
content:'';position:absolute;top:50%;left:50%;width:max(100%,44px);height:max(100%,44px);
|
|
3029
3002
|
transform:translate(-50%,-50%)}
|
|
@@ -3110,9 +3083,6 @@ button.sl-a11yrow-c[disabled]{opacity:.58;cursor:default;text-decoration-color:t
|
|
|
3110
3083
|
.sl-seccard-dot{width:10px;height:10px;border-radius:50%;flex:none}
|
|
3111
3084
|
.sl-seccard-name{font-weight:800;font-size:14px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
3112
3085
|
.sl-seccard-price{font-weight:800;font-size:12.5px;font-variant-numeric:tabular-nums}
|
|
3113
|
-
.sl-seccard-x{width:22px;height:22px;border-radius:999px;flex:none;display:flex;align-items:center;justify-content:center;
|
|
3114
|
-
color:var(--sl-muted);font-size:12px}
|
|
3115
|
-
.sl-seccard-x:hover{color:var(--sl-text)}
|
|
3116
3086
|
.sl-seccard-zone{font-size:11.5px;color:var(--sl-muted);margin-top:6px}
|
|
3117
3087
|
.sl-seccard-left{color:var(--sl-text);font-weight:700}
|
|
3118
3088
|
.sl-seccard-mix{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:8px}
|