PageSourceSearch

https://fan.guru/assets/TicketCheckoutPage.6b37cfa7.js

js fan.guru collected 2026-09-24 10:22:49 UTC 5,143 bytes, 1 lines download raw bytes

1import{d$ as B,j as t,dg as m,dU as p,ec as I,as as R,a9 as q,eJ as H,K as _,aa as A,e7 as D,r as O,cw as u,s as U,dQ as W,dW as G,X as M,aj as $}from"./index.03b766a6.js";import{E as K,c as Q,d as V,e as X,f as z,C as J}from"./queries.02128f4c.js";import{A as Y}from"./AuthGuard.eefeb286.js";import{E as Z}from"./EmptyState.f3a6a9c7.js";import{L as ee}from"./LoadingButton.3a2670aa.js";import{O as te}from"./OrderTotalLine.ee208e9a.js";import{T as re}from"./TicketCartItemCardHorizontal.c506d60b.js";import"./helpers.6f5ce4b4.js";import"./TicketCardHorizontal.ce26b75e.js";import"./CartItemSummary.b28df345.js";const ne=B()?"pk_live_8PsjqdyZkQG68VnRiHevNuII":"pk_test_qGHfMx0f1KBmXp0rcJCC3J9H00sTH4RW96",ae={style:{base:{color:"#32325d",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}}};var C="https://js.stripe.com/v3",ie=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,y="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",oe=function(){for(var e=document.querySelectorAll('script[src^="'.concat(C,'"]')),n=0;n<e.length;n++){var r=e[n];if(!!ie.test(r.src))return r}return null},se=function(e){var n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(C).concat(n);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(r),r},ce=function(e,n){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:n})},l=null,le=function(e){return l!==null||(l=new Promise(function(n,r){if(typeof window=="undefined"||typeof document=="undefined"){n(null);return}if(window.Stripe&&e&&console.warn(y),window.Stripe){n(window.Stripe);return}try{var i=oe();i&&e?console.warn(y):i||(i=se(e)),i.addEventListener("load",function(){window.Stripe?n(window.Stripe):r(new Error("Stripe.js not available"))}),i.addEventListener("error",function(){r(new Error("Failed to load Stripe.js"))})}catch(s){r(s);return}})),l},de=function(e,n,r){if(e===null)return null;var i=e.apply(void 0,n);return ce(i,r),i},w=Promise.resolve().then(function(){return le(null)}),E=!1;w.catch(function(a){E||console.warn(a)});var ue=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];E=!0;var i=Date.now();return w.then(function(s){return de(s,n,i)})};const me=ue(ne);function pe(a){return t(K,{stripe:me},a.children)}var fe=m(function(e){return t(p,{label:"First name",autoComplete:e.isCreditCard?"cc-given-name":"given-name",required:!0,placeholder:"Bob",...e})}),ve=m(function(e){return t(p,{label:"Last name",autoComplete:e.isCreditCard?"cc-family-name":"family-name",required:!0,placeholder:"Bob",...e})}),ge=m(function(e){return t(p,{label:"Phone number",inputMode:"tel",autoComplete:"tel",required:!0,placeholder:"(123) 555-5555",pattern:"[0-9()\\-+. ]+",title:"Enter a valid phone number",...e})});function Fe(a){return t(Y,{fallback:t(I,{text:"Please log in to continue."})},t(pe,null,t(he,{...a})))}function he(a){var h,S;const e=R(),n=q(),r=H(e.id),i=_(),s=A(),{header:b=t("h1",{css:[D]},e.name),onCheckoutSuccess:T=o=>{i.replace(s.CONVENTION_TICKET_ORDER_DETAIL(n,o.id))}}=a,[f,x]=O.exports.useState({firstName:"",lastName:"",email:"",phone:""});function c(o){return{value:f[o],onChange:k=>{x(j=>({...j,[o]:k.target.value}))}}}const N=r.length===0,L=Q(r,e.id),v=V(),g=X(),{mutate:F,...d}=z(r,f,{onSuccess:T}),P=(S=(h=L.data)==null?void 0:h.details.map(o=>({name:o.text,amount:{amount:Number(o.amount)*100}})))!=null?S:[];return N?t(Z,{text:"Your cart is empty."}):!v||!g?t($,null):t("form",{onSubmit:M(()=>F([v,g])),css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(1rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1rem * var(--tw-space-y-reverse))"}}},b,r.map(o=>t(re,{key:o.id,item:o})),t("h2",{css:{fontWeight:"700"}},"Billing and payment"),t("div",{css:[u,{display:"grid",gap:"1rem",padding:"1rem","@media (min-width: 640px)":{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}}]},t(fe,{isCreditCard:!0,...c("firstName")}
1),t(ve,{isCreditCard:!0,...c("lastName")}),t(G,{...c("email")}),t(ge,{...c("phone")})),t("div",{css:[u,{padding:"1rem","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(1rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1rem * var(--tw-space-y-reverse))"}}],"data-testid":"card-fields"},t(J,{options:ae})),t("div",{css:[u,{display:"flex",flexDirection:"column",padding:"1rem","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(1rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1rem * var(--tw-space-y-reverse))"}}]},t("div",null,P.map(o=>t(te,{key:o.name,css:[o.name==="Total"&&{marginTop:"0.5rem",fontSize:"1rem",lineHeight:"1.5rem"}],...o}))),t(ee,{type:"submit",css:U,isLoading:d.isLoading},"Confirm and pay"),d.error&&t("p",{css:W},String(d.error))))}export{Fe 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.