PageSourceSearch

https://istanbulfintechweek.com/assets/TicketsCheckout-2RClyBy2.js

js istanbulfintechweek.com collected 2026-09-30 10:34:42 UTC 7,330 bytes, 1 lines download raw bytes

1import{g as T,r as a,j as e,H as L,m as w,L as d,E as B,a8 as F,F as R,p as W}from"./index-sg1QXStc.js";import{b as D,E as j,a as E,c as I,d as P}from"./eventbrite-DtI-mv8C.js";import{T as v}from"./ticket-CkWwPDSl.js";const p=`eventbrite-widget-container-${E}`,M=12e3,Y={"c-suite":"C-Pass",summit:"Summit Pass"},H="ticket_purchase";function O(s,n){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:H,...s?{transaction_id:s}:{},...n?{ticket_pass:n}:{}})}function N({children:s}){return e.jsxs("a",{href:I,target:"_blank",rel:"noopener noreferrer",className:"mx-auto inline-flex items-center justify-center gap-2 bg-[#F4D35E] hover:bg-[#EFC420] text-[#1B3A5C] text-base font-bold rounded-md px-8 h-14 transition-all",children:[s,e.jsx(W,{className:"w-5 h-5"})]})}function G(){return e.jsxs("div",{className:"absolute inset-0 overflow-hidden bg-white px-5 md:px-0 pt-2 animate-pulse","aria-hidden":"true",children:[e.jsx("div",{className:"h-5 w-2/3 mx-auto rounded bg-gray-200 mb-3"}),e.jsx("div",{className:"h-3.5 w-1/2 mx-auto rounded bg-gray-100 mb-7"}),e.jsx("div",{className:"h-12 w-full rounded-lg border border-gray-200 mb-5"}),[0,1,2].map(s=>e.jsxs("div",{className:"rounded-lg border border-gray-200 p-4 mb-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3.5",children:[e.jsx("div",{className:"h-4 w-1/3 rounded bg-gray-200"}),e.jsx("div",{className:"h-8 w-24 rounded bg-gray-100"})]}),e.jsx("div",{className:"h-3.5 w-1/4 rounded bg-gray-200 mb-3"}),e.jsx("div",{className:"h-3 w-full rounded bg-gray-100 mb-2"}),e.jsx("div",{className:"h-3 w-4/5 rounded bg-gray-100"})]},s))]})}function z(){const[,s]=T(),[n,C]=a.useState(!1),[l,k]=a.useState(!1),[A,S]=a.useState(!1),[c,_]=a.useState(!1),[m]=a.useState(D),[u]=a.useState(()=>Y[new URLSearchParams(window.location.search).get("pass")??""]),g=a.useRef(!1);return a.useEffect(()=>{if(m||g.current)return;g.current=!0;let i=!1,o,b;const f=r=>{if(r.origin!==P)return;const t=r.data;if(!t||typeof t!="object"||t.messageName!=="widgetRenderComplete"||i)return;o&&clearTimeout(o),k(!0);const h=Number(t.widgetHeight),y=document.getElementById(p);y&&Number.isFinite(h)&&h>200&&(y.style.height=`${Math.ceil(h)}px`,S(!0))},x=()=>{i||!window.EBWidgets||(window.addEventListener("message",f),b=()=>window.removeEventListener("message",f),window.EBWidgets.createWidget({widgetType:"checkout",eventId:E,onOrderComplete:r=>{i||(O(r?.orderId,u),s("/thank-you"))},iframeContainerId:p,iframeContainerHeight:1e3,iframeAutoAdapt:100}))};if(window.EBWidgets)x();else{const r=document.querySelector(`script[src="${j}"]`);if(r)r.addEventListener("load",x,{once:!0});else{const t=document.createElement("script");t.src=j,t.async=!0,t.onload=x,t.onerror=()=>{i||C(!0)},document.body.appendChild(t)}}return o=setTimeout(()=>{i||_(!0)},M),()=>{i=!0,o&&clearTimeout(o),b?.()}},[m]),e.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[e.jsx(L,{}),e.jsxs("section",{className:"pt-32 pb-12 relative overflow-hidden bg-[#1B3A5C]",children:[e.jsx("div",{className:"absolute inset-0 opacity-20 pointer-events-none bg-[radial-gradient(circle_at_25%_20%,#3CC89A,transparent_45%)]"}),e.jsx("div",{className:"absolute inset-0 bg-grid opacity-10"}),e.jsx("div",{className:"max-w-4xl mx-auto px-6 relative z-10 text-center",children:e.jsxs(w.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6},children:[e.jsxs("span",{className:"inline-flex items-center gap-2 text-xs font-semibold uppercase tracking-widest text-[#F4D35E] bg-white/[0.08] px-3 py-1.5 rounded-full mt-[60px] mb-6",children:[e.jsx(v,{className:"w-4 h-4"})," İstanbul Fintech Week 2026 powered by BEX Digital Wallet"]}),e.jsxs("h1",{className:"text-3xl md:text-5xl font-heading font-extrabold text-white leading-[1.05] mb-5",children:["Complete Your"," ",e.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-[#F4D35E] to-[#3CC89A]",children:"Purchase"})]}),e.jsx("p",{className:"text-white/80 text-base md:text-lg max-w-2xl mx-auto mb-8",children:u?e.jsxs(e.Fragment,{children:["You picked the"," ",e.jsx("span",{className:"font-bold text-white",children:u}),". Select it below and check out securely via Eventbrite."]}):e.jsx(e.Fragment,{children:"Select your pass below — checkout is handled securely by Eventbrite."})}),e.jsxs(d,{href:"/tickets",className:"inline-flex items-center gap-2 text-sm text-white/85 hover:text-white bg-white/[0.06] hover:bg-white/[0.12] border border-white/15 rounded-full px-4 py-2 transition-colors",children:[e.jsx(B,{className:"w-4 h-4"}),"Compare passes again"]})]})})]}),e.jsx("section",{id:"checkout",className:"py-12 md:py-16 bg-[#f2f2f2]",children:e.jsxs("div",{className:"max-w-3xl mx-auto md:px-6",children:[e.jsxs("p",{className:"text-center text-sm text-gray-600 mb-5 px-6 md:px-0",children:["By purchasing a pass you agree to our"," ",e.jsx(d,{href:"/terms-of-service",className:"text-[#1B3A5C] font-semibold underline underline-offset-2 hover:text-[#3CC89A]",children:"Terms of Service"})," ","and"," ",e.jsx(d,{href:"/refund-policy",className:"text-[#1B3A5C] font-semibold underline underline-offset-2 hover:text-[#3CC89A]",children:"Refund & Cancellation Policy"}),". Full refund up to ",F," days before the event."]}),e.jsx(w.div,{initial:{opacity:0,y:16}
1,animate:{opacity:1,y:0},transition:{duration:.5},className:"bg-white md:rounded-2xl shadow-xl shadow-black/[0.06] border-y md:border border-black/[0.05] py-5 md:p-8",children:m||n?e.jsxs("div",{className:"py-16 min-h-[420px] flex flex-col justify-center text-center px-6 md:px-0",children:[e.jsx("div",{className:"w-16 h-16 mx-auto mb-6 rounded-full bg-[#3CC89A]/15 flex items-center justify-center text-[#1F8E68]",children:e.jsx(v,{className:"w-9 h-9"})}),e.jsx("h2",{className:"text-2xl md:text-3xl font-heading font-bold text-[#1B3A5C] mb-3",children:"Choose your pass on Eventbrite"}),e.jsx("p",{className:"text-gray-600 max-w-md mx-auto leading-relaxed mb-8",children:n?"The ticket widget couldn't load, so we'll take you to our official Eventbrite page to complete your purchase securely.":"Your browser blocks embedded checkouts, so we'll take you to our official Eventbrite page to complete your purchase securely."}),e.jsx(N,{children:"Get Your Pass on Eventbrite"})]}):e.jsxs(e.Fragment,{children:[c&&!l&&e.jsxs("div",{className:"mx-5 md:mx-0 mb-6 rounded-xl border border-[#F4D35E]/60 bg-[#F4D35E]/10 px-5 py-4 text-center",children:[e.jsx("p",{className:"text-sm text-[#1B3A5C] mb-4",children:"Checkout is taking longer than usual to load. You can complete your purchase on Eventbrite instead."}),e.jsx(N,{children:"Continue on Eventbrite"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{id:p,className:`w-full ${A?"":c&&!l?"h-0 overflow-hidden":"h-[560px] md:h-[820px]"}`}),!l&&!c&&e.jsxs(e.Fragment,{children:[e.jsx(G,{}),e.jsx("p",{className:"sr-only",role:"status",children:"Loading checkout…"})]})]})]})}),e.jsxs("p",{className:"text-center text-xs text-gray-500 mt-6 px-6 md:px-0",children:["Checkout and payments are securely processed by Eventbrite. Card details are never seen or stored by us — see our"," ",e.jsx(d,{href:"/privacy-policy",className:"underline underline-offset-2 hover:text-gray-700",children:"Privacy Policy"}),"."]})]})}),e.jsx(R,{})]})}export{z 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.