1/*! For license information please see 3258.c282804e.chunk.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunkfrontend||=[]).push([[3258],{93258(e,t,a){a.r(t),a.d(t,{default:()=>u});var s=a(65043),r=a(53217),i=a(69002),o=a(56328),l=a(22024),d=a(9463),c=a(23946),n=a(39292),m=a(78384),p=a(70579);function u(){const e=(0,r.Zp)(),[t,a]=(0,s.useState)(""),[u,h]=(0,s.useState)(""),[x,b]=(0,s.useState)(!1);return(0,p.jsxs)("div",{className:"min-h-screen bg-white","data-testid":"gift-card-lookup-page",children:[(0,p.jsx)("nav",{className:"sticky top-0 z-30 bg-white/95 backdrop-blur-md border-b border-gray-100 pt-[env(safe-area-inset-top)]",children:(0,p.jsxs)("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 h-16 flex items-center justify-between",children:[(0,p.jsx)("button",{onClick:()=>e(-1),className:"p-2 -ml-2 rounded-full hover:bg-gray-100 transition-colors",children:(0,p.jsx)(d.A,{className:"w-5 h-5"})}),(0,p.jsx)(r.N_,{to:"/",className:"text-sm font-medium text-gray-700 hover:text-gray-900",children:"Home"})]})}),(0,p.jsxs)("main",{className:"max-w-md mx-auto px-4 sm:px-6 pt-12 pb-16",children:[(0,p.jsxs)("div",{className:"text-center mb-8",children:[(0,p.jsx)("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-2xl bg-blue-600 shadow-soft mb-4",children:(0,p.jsx)(c.A,{className:"w-6 h-6 text-white"})}),(0,p.jsx)("h1",{className:"dash-page-title mb-2",children:"Find your gift card"}),(0,p.jsx)("p",{className:"text-gray-600",children:"Enter your gift card code and the email it was sent to."})]}),(0,p.jsxs)("form",{onSubmit:async a=>{if(a.preventDefault(),t.trim()&&u.trim()){b(!0);try{var s;const a=await i.A.post("https://api.bookingflows.com/api/v2/public/gift-card-lookup",{code:t.trim().toUpperCase(),recipient_email:u.trim().toLowerCase()});null!==(s=a.data)&&void 0!==s&&s.view_token&&e(`/gift-card/view/${a.data.view_token}`)}catch(l){var r;429===(null===l||void 0===l||null===(r=l.response)||void 0===r?void 0:r.status)?o.oR.error("Too many attempts. Please wait a few minutes and try again."):o.oR.error("We couldn't find a gift card matching that code and email.")}finally{b(!1)}}else o.oR.error("Both code and email are required")},className:"bg-white rounded-2xl shadow-sm border border-gray-100 p-6 space-y-4",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"block text-sm text-gray-600 mb-1.5",children:"Gift card code"}),(0,p.jsx)("input",{type:"text",value:t,onChange:e=>a(e.target.value.toUpperCase()),placeholder:"ABCD-XXXX-XXXX-WXYZ",className:"w-full px-3 py-2.5 rounded-xl border border-gray-200 focus:outline-none focus:border-primary transition-colors font-mono tracking-wider","data-testid":"gift-card-lookup-code",autoComplete:"off"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("label",{className:"block text-sm text-gray-600 mb-1.5",children:"Recipient email"}),(0,p.jsx)("input",{type:"email",value:u,onChange:e=>h(e.target.value),placeholder:"[email protected]",className:"w-full px-3 py-2.5 rounded-xl border border-gray-200 focus:outline-none focus:border-primary transition-colors","data-testid":"gift-card-lookup-email"})]}),(0,p.jsxs)("button",{type:"submit",disabled:x,className:"w-full flex items-center justify-center gap-2 py-3 rounded-xl bg-blue-600 hover:bg-blue-700 text-white font-semibold disabled:opacity-50 transition-colors","data-testid":"gift-card-lookup-submit",children:[x?(0,p.jsx)(l.A,{className:"w-4 h-4 animate-spin"}):(0,p.jsx)(n.A,{className:"w-4 h-4"}),x?"Looking up\u2026":"Find my gift card"]}),(0,p.jsxs)("p",{className:"text-center text-xs text-gray-500 flex items-center justify-center gap-1.5 pt-2",children:[(0,p.jsx)(m.A,{className:"w-3 h-3"}),"Both code and email must match \u2014 protected against brute force."]})]})]})]})}},9463(e,t,a){const s=(0,a(31212).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);a.d(t,["A",0,s])},23946(e,t,a){const s=(0,a(31212).A)("gift",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]]);a.d(t,["A",0,s])},39292(e,t,a){const s=(0,a(31212).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);a.d(t,["A",0,s])},78384(e,t,a){const s=(0,a(31212).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
2y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);a.d(t,["A",0,s])}}]); 3//# sourceMappingURL=3258.c282804e.chunk.js.map
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.