1import{p as x,j as o}from"./@wbk/hooks-BlLlWTp9.js";import{l as u,S as g}from"./index-CriLyxpO.js";import{h,r as a,L as f}from"./vendor-Cc9w-i99.js";import{T as r,B as y}from"./@wbk/ui-Bq7l3oiK.js";import{u as j}from"./@wbk/analytics-DE0c17Pa.js";import{P as k}from"./PaymentMethods-KaHZlsh2.js";import{u as m}from"./react-i18next-Dxy0wzdl.js";import"./@wbk/queue-DaHNt4dN.js";import"./@wbk/api-BgBdL-BO.js";import"./@wbk/config-CNzyBjC_.js";import"./@wbk/logger-DfNVpG3P.js";import"./i18next-Ce0fiPMx.js";import"./i18next-http-backend-C2uFdLra.js";import"./i18next-browser-languagedetector-Bv2FoO1s.js";import"./react-helmet-BcOPeyN0.js";import"./@wbk/contentful-9uMqmgoA.js";import"./react-hook-form-D_m77UuM.js";import"./@wbk/auth-AbxUcDmb.js";import"./@wbk/svg-HUfKeBgT.js";import"./@wbk/currency-B7PYjEev.js";import"./@wbk/ticketing-BIN3h7yH.js";import"./@wbk/payment-CMegBHo6.js";import"./@wbk/flights-zxddM6AH.js";import"./@wbk/hotels-5c6KxmYL.js";import"./@smc/ads-x_0QwEKi.js";import"./@wbk/auction-BYo4kjve.js";const b=()=>{var s,i;const{t}=m("booking"),[p]=h(),e=(i=(s=p.get("error"))==null?void 0:s.split(":"))==null?void 0:i[1],{purchaseFailed:c}=j(),[l,d]=a.useState("/");return a.useEffect(()=>{const n=new Error(e||"Reason not found in URL");n.name="PaymentFailedException",u.captureException(n,{extra:{reason:e||"EMPTY"},tags:{journey:"checkout"}})},[e]),a.useEffect(()=>{c({reason:e,booking_type:"hotel"}),d(x("last_book_page")||"/")},[]),o.jsx("section",{className:"container py-20",children:o.jsxs("div",{className:"bg-body-dark/10 mx-auto max-w-xl rounded-lg px-6 py-10 shadow-lg",children:[o.jsx(r,{variant:"heading-XXL",as:"h1",color:"error",className:"mb-2 text-center",children:t("booking:payment_failed")}),o.jsx(r,{className:"py-3 text-center",children:t("booking:payment_information_right")}),!!e&&o.jsxs("div",{className:"py-3 text-center",children:[o.jsx(r,{children:t("booking:reason_bank")}),o.jsx(r,{color:"error",children:`${e}`})]}),o.jsx("div",{className:"mx-auto mb-8 max-w-sm py-4",children:o.jsx(y,{as:f,to:l,className:"w-full",children:t("booking:try_again")})}),o.jsx(k,{className:"mx-auto max-w-md"})]})})},K=()=>{const{t}=m("booking");return o.jsxs(o.Fragment,{children:[o.jsx(g,{title:t("booking:payment_failed")}),o.jsx(b,{})]})};export{K 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.