PageSourceSearch

https://fan.guru/assets/GlobalCartPage.4a37ae90.js

js fan.guru collected 2026-09-24 10:21:41 UTC 2,914 bytes, 1 lines download raw bytes

1import{av as k,es as h,et as I,el as S,r as p,eu as x,j as t,aj as E,cN as H,s as u,L as v,b as g,e7 as B,ev as f,cw as N,a2 as L}from"./index.03b766a6.js";import{e as O}from"./constants.c06fac94.js";import{S as q,E as w,a as _}from"./EditingTicketItem.05e38d85.js";import{T as U}from"./TicketCartItemCardHorizontal.c506d60b.js";import{E as j}from"./EmptyState.f3a6a9c7.js";import"./CartItemSummary.b28df345.js";import"./helpers.6f5ce4b4.js";import"./queries.9ae29538.js";import"./SquareCartItemForm.83aae725.js";import"./queries.6d396aba.js";import"./index.es.3a4cf35b.js";import"./Select.555618f9.js";import"./SquareItemHorizontalCard.6b468eb0.js";import"./queries.02128f4c.js";import"./TicketCardHorizontal.ce26b75e.js";function A(){var y;const n=h(),s=I(),a=S(),[m,C]=p.exports.useState("listing"),T=(()=>{const o={},r=e=>{var c,l;return(l=o[c=e||"global"])!=null?l:o[c]={conventionId:e,squareItems:[],ticketItems:[]}};for(const e of n)r(e.conventionId).squareItems.push(e);for(const e of s)r(e.conventionId).ticketItems.push(e);return o})(),d=Object.values(T).sort(x(o=>o.conventionId?1:0)),b=d.length===1&&((y=d[0])==null?void 0:y.squareItems.length)===0;return t("div",{css:{display:"grid",gap:"1rem"}},t("h1",{css:B},"My Cart"),t(p.exports.Suspense,{fallback:t(E,null)},d.map(({conventionId:o,squareItems:r,ticketItems:e})=>{const c=t(p.exports.Fragment,null,e.map(i=>t(U,{key:i.id,item:i})),r.map(i=>t(q,{key:i.key,cartItem:i})),t("button",{type:"button",onClick:()=>C("edit"),css:[H,{justifySelf:"start"}]},"Edit")),l=t("div",{css:{display:"flex",flexDirection:"column","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-opacity":"1",borderColor:"rgba(156, 163, 175, var(--tw-divide-opacity))","--tw-divide-y-reverse":0,borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))"}}},r.map(i=>t("div",{key:i.key,css:{paddingTop:"0.75rem",paddingBottom:"0.75rem"}},t(w,{item:i}))),e.map(i=>t("div",{key:i.id,css:{paddingTop:"0.75rem",paddingBottom:"0.75rem"}},t(_,{item:i}))),t("div",{css:{paddingTop:"0.75rem",paddingBottom:"0.75rem"}},t("button",{type:"button",onClick:()=>C("listing"),css:[u,{textAlign:"left"}]},"Done")));return t(M,{key:o||"global",conventionId:o},m==="listing"&&c,m==="edit"&&l,m==="listing"&&(b&&a?t(v,{to:g.CONVENTION_TICKET_CHECKOUT(a),css:u},"Continue to checkout"):t(z,{conventionId:o})))})),d.length===0&&t(j,{title:"Your cart is empty.",text:"Browse Exhibit Hall to find stuff you like!"}))}var et=k(A);function M(n){const s=f(n.conventionId).data;return t("section",{css:[N,{display:"grid",gap:"1rem",padding:"1rem"}]},t("h2",{css:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"700"}},(s==null?void 0:s.name)||O),n.children)}function z(n){const s=f(n.conventionId,{suspense:!0}).data,a=s?g.CONVENTION_EXHIBIT_HALL_CART(L(s)):g.EXHIBIT_HALL_CART;return t(v,{to:a,css:u},"Continue")}export{et as default};

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.