PageSourceSearch

https://wbk-assets.webook.com/0.7.8.2/assets/index-BpvY-G53.js

js webook.com collected 2026-10-03 20:44:09 UTC 3,603 bytes, 1 lines download raw bytes

1import{u as w,j as s}from"./@wbk/hooks-FtCTMeyH.js";import{f as N,e as y,h as v,r as c}from"./vendor-Cc9w-i99.js";import{T as p,c as b,B as n}from"./@wbk/ui-DZdD23Ta.js";import{cc as j}from"./@wbk/queue-8-09eRJS.js";import{C as h}from"./@wbk/currency-BxlCDaIM.js";import{q as _}from"./@wbk/svg-Bua7FxzL.js";import{F as S,S as C}from"./index-DZ2Htu0z.js";import{C as k}from"./ChargeFailed-CUzeHQ5-.js";import{u as T,T as x}from"./react-i18next-Dxy0wzdl.js";import"./@wbk/config-DuwrGB8a.js";import"./@wbk/logger-DfNVpG3P.js";import"./react-hook-form-D_m77UuM.js";import"./@wbk/api-DFKMxA3e.js";import"./i18next-Ce0fiPMx.js";import"./i18next-http-backend-C2uFdLra.js";import"./i18next-browser-languagedetector-Bv2FoO1s.js";import"./react-helmet-BcOPeyN0.js";import"./@wbk/analytics-B-_ZPhJq.js";import"./@wbk/contentful-C-wfS48z.js";import"./@wbk/auth-Djoddyo0.js";import"./@wbk/ticketing-Og7zkUfp.js";import"./@wbk/payment-cL5x8D1N.js";import"./@wbk/flights-Cjxxns74.js";import"./@wbk/hotels-CFdSoV_6.js";import"./@smc/ads-C1pDiBF5.js";import"./@wbk/auction-CsNezADS.js";const se=()=>{const{isWebView:m}=w(),l=N(),{id:t,lang:a}=y(),{data:e,isLoading:d,error:g}=j({paymentSessionId:t||"",lang:a}),[f]=v(),o=f.get("auction"),{t:r}=T(["common","booking"]),u=c.useRef(void 0);return c.useEffect(()=>{var i;e&&((i=window.ReactNativeWebView)==null||i.postMessage(JSON.stringify({eventName:"CHARGESUCCESS",transaction_id:t,order_id:e._id,order_total:e==null?void 0:e.amount,currency:(e==null?void 0:e.currency)||"SAR",payment_type:e==null?void 0:e.trans_typ})))},[e,t]),c.useEffect(()=>{var i;o&&(e!=null&&e.amount&&((i=u.current)==null||i.publish({title:s.jsx(p,{as:"div",variant:"body-S",children:s.jsx(x,{i18nKey:"success_charge_message",ns:"booking",children:s.jsx(h,{originalPrice:e.amount,currency:e==null?void 0:e.currency,canExchange:!1,className:"inline-block [&_svg]:h-3 [&_svg]:w-3",priceClassName:"text-body-S"})})}),icon:!0})),l(`/${a}/auctions/${o}/book`))},[a,o]),d||o?s.jsxs(s.Fragment,{children:[s.jsx(b,{ref:u}),s.jsx(S,{})]}):g?s.jsx(k,{}):s.jsxs("section",{"data-webview":m,className:"data-[webview=true]:bg-body-level-1 min-h-svh py-12",children:[s.jsx(C,{}),s.jsxs("div",{className:"container flex min-h-[600px] max-w-xl flex-col justify-between",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsx(_,{className:"text-success mx-auto max-w-[160px]"}),s.jsx(p,{as:"div",variant:"heading-S",className:"text-center",children:s.jsx(x,{i18nKey:"success_charge_message",ns:"booking",children:s.jsx(h,{originalPrice:(e==null?void 0:e.amount)||0,currency:e==null?void 0:e.currency,canExchange:!1,className:"inline-block",priceClassName:"text-heading-S"})})})]}),s.jsx("div",{className:"mx-auto w-full max-w-xs space-y-4",children:m?s.jsxs(s.Fragment,{children:[s.jsx(n,{className:"w-full",theme:"white",shape:"outlined",onClick:()=>{var i;(i=window.ReactNativeWebView)==null||i.postMessage(JSON.stringify({eventName:"TRANSACTIONDETAILS",transaction_id:t}))},children:r("booking:transaction_detail")}),s.jsx(n,{className:"w-full",theme:"white",shape:"outlined",onClick:()=>{var i;(i=window.ReactNativeWebView)==null||i.postMessage(JSON.stringify({eventName:"ADDMOREMONEY"}))},children:`+ ${r("booking:add_more_money")}`}),s.jsx(n,{className:"w-full",theme:"white",shape:"text",onClick:()=>{var i;(i=window.ReactNativeWebView)==null||i.postMessage(JSON.stringify({eventName:"BACKTOACCOUNT"}))},children:r("booking:back_to_your_account")})]}):s.jsx(n,{className:"w-full",theme:"white",shape:"outlined",onClick:()=>{l(`/${a}`)},children:r("common:go_home")})})]})]})};export{se 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.