1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5646],{5646:(e,t,n)=>{n.r(t),n.d(t,{adaptAttractionSectionsFromV3:()=>c,adaptInventoryItemsToAttractionSections:()=>u,toSeatBlock:()=>s});let a={currency:"",display:"",displayRounded:"",value:0};var i=n(72010),r=n(44178);let l=e=>(0,i._t)(e?.fees?.find(e=>"SERVICE_FEE"===e.type)?.value),o=(e,t)=>{let n=(0,i._t)(e?.discountAmount),a=e?.discountPercentage>0,r=n?.value>0;return a?`${t} ${e.discountPercentage}%`:r?`${t} ${n.displayRounded}`:null},s=(e,t)=>{var n;let s,u,c=e.priceOptions??[],d=(0,r.Ls)(c),p=c.find(e=>e.promotion),y=c.some(e=>!!e.category?.id),m="number"==typeof e.maxQuantityPerOrder?Math.min(e.quantityAvailable,e.maxQuantityPerOrder):e.quantityAvailable;return{_type:"GASeatBlock",description:e.inventoryVariant?.description??null,discountPercentage:d?.discountPercentage??null,extendedDescription:e.inventoryVariant?.extendedDescription??null,faceValue:(0,i._t)(d?.listPrice),feeSummary:{_type:"FeeSummary",concierge:a,convenience:l(d)??a,orderFee:a},feeTextPerTicket:(n=t.feeTextPerTicketTemplate,s=l(d),s?.value?n.replace("#fee",s.display):null),...e.inventoryVariant?._type==="GiftCard"&&{giftCardValue:(0,i._t)(e.inventoryVariant.value)},includesFees:!0,inventoryItemId:e.id,lowPriceWithRewardsDiscount:null,maxContiguousSeats:m,priceOptionId:y?null:d?.id??null,priceTypes:y?c.map(e=>{var n;let a;return n=t.saveText,a=!!e.isDefault,{canBeSoldSeparately:!e.constraints,description:e.category?.description??null,faceValue:(0,i._t)(e.listPrice),id:e.category?.id,includeInFromPrice:a,isDefaultPriceType:a,maxQuantityPerOrder:e.maxQuantityPerOrder??null,name:e.category?.name??"",priceOptionId:e.id,priceWithRewardsDiscount:null,...e.promotion&&{promotionLabel:e.promotion.name},salePrice:(0,i._t)(e.sellPrice),savingsMessage:o(e,n)}}):null,promotionLabel:(d?.promotion??p?.promotion)?.name??null,providerId:null,providerParams:null,rewards:null,rewardsDiscountMaximumPerTicket:null,rewardsSavingsMessage:null,salePrice:(0,i._t)(d?.sellPrice),savingsMessage:o(d,t.saveText),selectionBlockedChainSize:null,selectionBlockedReason:null,selectionRestrictionType:null,totalSeats:e.quantityAvailable,venueAreaIds:(u=e.inventoryVariant,u?._type==="GeneralAdmission"?u.venueAreaIds?.join(",")??null:null)}},u=(e,t)=>{let n=new Map;return(e??[]).forEach(e=>{let a=e.inventoryVariant?.name??"",i=n.get(a);i?i.gaBlocks.push(s(e,t)):n.set(a,{_type:"GASection",attributes:[],description:null,extendedDescription:null,gaBlocks:[s(e,t)],name:a,orderValue:null,seatBlocks:null})}),[...n.values()]},c=(e,t)=>({...e,data:u(e?.data,t)})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.