PageSourceSearch

https://sokapal.ai/assets/CouponSharePage-BHnkQuQa.js

js sokapal.ai collected 2026-10-05 15:17:04 UTC 2,026 bytes, 1 lines download raw bytes

1import{r as e,j as s,k as r,c as o}from"./vendor-react-DbsVTsKS.js";import{d as t,ad as a,ae as n,af as l}from"./index-Dirtnqiz.js";import"./vendor-i18n-DiTKF2NC.js";import"./vendor-ui-B_XW8Pya.js";import"./vendor-charts-CG7l663-.js";import"./vendor-otel-B3hnpEUX.js";import"./app-constants-D3ojol5R.js";import"./vendor-virtuoso-CT6D0QVj.js";import"./vendor-markdown-CiT-VfZw.js";const c=({couponId:r,onBack:o})=>{const{isDarkMode:c}=t(),[i,d]=e.useState(null),[x,u]=e.useState(!0),[p,m]=e.useState(!1),f=c?"bg-[#060e1c]":"bg-gray-50",j=c?"text-white":"text-gray-900",h=c?"border-[#1e3a5f]":"border-gray-200";return e.useEffect(()=>{r&&(async()=>{u(!0),m(!1);try{const e=await a(r),s=null==e?void 0:e.responseBody;s?(d(s),n({couponId:r,username:s.username,userId:s.userId,source:"share_link"})):m(!0)}catch{m(!0)}finally{u(!1)}})()},[r]),s.jsxs("div",{className:`flex flex-col h-full ${f}`,children:[s.jsxs("div",{className:`flex-none flex items-center gap-3 px-4 py-3 border-b ${h}`,children:[s.jsx("button",{onClick:o,className:"text-gray-400 hover:text-gray-200 text-xl leading-none","aria-label":"Back",children:"←"}),s.jsx("p",{className:`font-bold text-base ${j}`,children:"Prediction Coupon"})]}),s.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-4",children:[x&&s.jsx("div",{className:"flex justify-center py-20",children:s.jsx("div",{className:"w-8 h-8 border-2 border-blue-500 border-t-transparent rounded-full animate-spin"})}),!x&&p&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-20 gap-3",children:[s.jsx("span",{className:"text-4xl",children:"🔍"}),s.jsx("p",{className:"text-sm "+(c?"text-gray-400":"text-gray-500"),children:"Coupon not found or no longer available."}),s.jsx("button",{onClick:o,className:"text-sm text-blue-400 hover:text-blue-300 underline underline-offset-2",children:"Browse all predictions"})]}),!x&&i&&s.jsx(l,{coupon:i,showAuthor:!0})]})]})},i=()=>{const{couponId:e}=r(),t=o();return s.jsx(c,{couponId:e,onBack:()=>t("/social")})};export{i 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.