PageSourceSearch

https://isselkoadar-fhyhya63.manus.space/assets/UnsubscribePage-C-gCrk56.js

js isselkoadar-fhyhya63.manus.space collected 2026-10-03 05:02:44 UTC 4,364 bytes, 6 lines download raw bytes

1import{c as b,y as g,r as t,t as m,j as e,L as n,Z as u,o as h,p,h as f,g as j,B as P}from"./index-Bcd0B-av.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const l=b("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);function w(){const i=g(),s=new URLSearchParams(i).get("token")??"",[a,x]=t.useState(!1),[c,d]=t.useState(""),r=m.subscriber.unsubscribe.useMutation({onSuccess:()=>x(!0),onError:o=>d(o.message)});return t.useEffect(()=>{s&&!a&&!c&&r.mutate({token:s})},[s]),e.jsxs("div",{"data-loc":"client/src/pages/UnsubscribePage.tsx:27",className:"min-h-screen bg-background flex flex-col",dir:"rtl",children:[e.jsx("nav",{"data-loc":"client/src/pages/UnsubscribePage.tsx:28",className:"sticky top-0 z-50 bg-white border-b border-border shadow-sm",children:e.jsx("div",{"data-loc":"client/src/pages/UnsubscribePage.tsx:29",className:"container flex items-center h-16",children:e.jsxs(n,{"data-loc":"client/src/pages/UnsubscribePage.tsx:30",href:"/",className:"flex items-center gap-2",children:[e.jsx("div",{"data-loc":"client/src/pages/UnsubscribePage.tsx:31",className:"w-8 h-8 rounded-lg brand-gradient flex items-center justify-center",children:e.jsx(u,{"data-loc":"client/src/pages/UnsubscribePage.tsx:32",className:"w-4 h-4 text-white"})}),e.jsx("span",{"data-loc":"client/src/pages/UnsubscribePage.tsx:34",className:"font-bold text-foreground",children:"وكالة إيسلكو"})]})})}),e.jsx("div",{"data-loc":"client/src/pages/UnsubscribePage.tsx:39",className:"flex-1 flex items-center justify-center p-4",children:e.jsx(h,{"data-loc":"client/src/pages/UnsubscribePage.tsx:40",className:"max-w-md w-full",children:e.jsxs(p,{"data-loc":"client/src/pages/UnsubscribePage.tsx:41",className:"p-8 text-center",children:[s?r.isPending?e.jsxs(e.Fragment,{children:[e.jsx(f,{"data-loc":"client/src/pages/UnsubscribePage.tsx:52",className:"w-12 h-12 text-primary animate-spin mx-auto mb-4"}),e.jsx("h2",{"data-loc":"client/src/pages/UnsubscribePage.tsx:53",className:"text-xl font-bold text-foreground mb-2",children:"جاري المعالجة..."}),e.jsx("p",{"data-loc":"client/src/pages/UnsubscribePage.tsx:54",className:"text-muted-foreground text-sm",children:"يرجى الانتظار."})]}):a?e.jsxs(e.Fragment,{children:[e.jsx(j,{"data-loc":"client/src/pages/UnsubscribePage.tsx:58",className:"w-12 h-12 text-green-500 mx-auto mb-4"}),e.jsx("h2",{"data-loc":"client/src/pages/UnsubscribePage.tsx:59",className:"text-xl font-bold text-foreground mb-2",children:"تم إلغاء الاشتراك"}),e.jsx("p",{"data-loc":"client/src/pages/UnsubscribePage.tsx:60",className:"text-muted-foreground text-sm mb-6",children:"تم إلغاء اشتراكك بنجاح. لن تتلقى رسائل منا بعد الآن."}),e.jsx("p",{"data-loc":"client/src/pages/UnsubscribePage.tsx:63",className:"text-muted-foreground text-xs mb-6",children:"إذا غيّرت رأيك، يمكنك الاشتراك مجدداً من موقعنا."})]}):e.jsxs(e.Fragment,{children:[e.jsx(l,{"data-loc":"client/src/pages/UnsubscribePage.tsx:69",className:"w-12 h-12 text-destructive mx-auto mb-4"}),e.jsx("h2",{"data-loc":"client/src/pages/UnsubscribePage.tsx:70",className:"text-xl font-bold text-foreground mb-2",children:"حدث خطأ"}),e.jsx("p",{"data-loc":"client/src/pages/UnsubscribePage.tsx:71",className:"text-muted-foreground text-sm mb-6",children:c})]}):e.jsxs(e.Fragment,{children:[e.jsx(l,{"data-loc":"client/src/pages/UnsubscribePage.tsx:44",className:"w-12 h-12 text-destructive mx-auto mb-4"}),e.jsx("h2",{"data-loc":"client/src/pages/UnsubscribePage.tsx:45",className:"text-xl font-bold text-foreground mb-2",children:"رابط غير صالح"}),e.jsx("p",{"data-loc":"client/src/pages/UnsubscribePage.tsx:46",className:"text-muted-foreground text-sm mb-6",children:"رابط إلغاء الاشتراك غير صالح أو منتهي الصلاحية."})]}),e.jsx(P,{"data-loc":"client/src/pages/UnsubscribePage.tsx:74",asChild:!0,className:"brand-gradient text-white border-0",children:e.jsx(n,{"data-loc":"client/src/pages/UnsubscribePage.tsx:75",href:"/",children:"العودة للرئيسية"})})]})})})]})}export{w 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.