PageSourceSearch

https://kakak.ai/_next/static/chunks/pages/xlsmart-subs-f76bfca3cd04e88d.js

js kakak.ai collected 2026-10-05 15:15:31 UTC 40,096 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="6f01c7ec-1261-4cf3-8656-32e07ee17a10",e._sentryDebugIdIdentifier="sentry-dbid-6f01c7ec-1261-4cf3-8656-32e07ee17a10")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7491],{50773:function(e,a,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/xlsmart-subs",function(){return r(67647)}])},67647:function(e,a,r){"use strict";r.r(a),r.d(a,{__N_SSP:function(){return T},default:function(){return X}});var t=r(85893),s=r(67294),n=r(11163),i=r(84053),d=r(52882),l=r(26697);function c(e){let a=e.metadata||e.provider_metadata||{},r=new Date(a.last_renewal_at?a.last_renewal_at:e.created),t=(new Date().getTime()-r.getTime())/36e5,s=function(e){let a=e.metadata||e.provider_metadata||{};return"day"===a.interval?1:"month"===a.interval?24:"SILVER"===a.tier?1:"GOLD"===a.tier||"PLATINUM"===a.tier?24:1===a.interval_count?1:a.interval_count&&a.interval_count>=30?24:"daily"===a.frequency?1:24}(e),n=Math.max(0,s-t),i=function(e){let a=e.metadata||e.provider_metadata||{};return"day"===a.interval||"SILVER"===a.tier||"daily"===a.frequency||1===a.interval_count}(e),d=t<=s,l=a.last_renewal_at?"renewal":"activation",c="";return c=d?"Refund dapat dilakukan dalam ".concat(Math.ceil(n)," jam lagi (dari ").concat(l,")"):"Refund hanya dapat dilakukan dalam ".concat(s," jam setelah ").concat(l),{eligible:d,windowHours:s,hoursSinceCreation:t,hoursRemaining:n,reason:c,isDailySubscription:i}}var o=r(39991),u=r(20569),x=r(61612),m=r(25234),g=r(17981),b=r(71073);function h(e){let{orientation:a="horizontal",decorative:r=!0,className:s,...n}=e;return(0,t.jsx)("div",{role:r?"none":"separator","aria-orientation":r?void 0:a,className:(0,b.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",s),...n})}var p=r(54847),k=r(70034),j=r(21557),y=r(37871),v=(r(6987),r(11373)),N=r(28335),f=r(60268),w=e=>{let{subscription:a,onTestComplete:r}=e,[t,n]=(0,s.useState)(!1),[i,d]=(0,s.useState)(null);return null},_=r(18742),S=r(75489),Z=r(99763),L=r(2461),D=r(61796),C=r(65784),E=r(29661),A=r(72003),P=r(91560),F=r(41036),B=r(27042),I=r(13729);let R={active:{label:"Aktif",color:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",icon:N.Z,description:"Langganan sedang aktif"},pending:{label:"Pending",color:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",icon:_.Z,description:"Menunggu aktivasi"},pending_activation:{label:"Menunggu Aktivasi",color:"bg-[#E8FAF4] text-brand-green dark:bg-brand-green/10 dark:text-brand-green/90",icon:_.Z,description:"Menunggu konfirmasi aktivasi dari XLSmart"},pending_cancellation:{label:"Sedang Dibatalkan",color:"bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200",icon:_.Z,description:"Permintaan pembatalan sedang diproses oleh XLSmart"},pending_refund:{label:"Refund Diproses",color:"bg-[#EEEFFE] text-brand-purple dark:bg-brand-purple/10 dark:text-brand-purple/90",icon:_.Z,description:"Permintaan refund sedang diproses oleh XLSmart"},refunded:{label:"Refund Selesai",color:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",icon:S.Z,description:"Refund telah berhasil diproses"},canceled:{label:"Dibatalkan",color:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200",icon:f.Z,description:"Langganan telah dibatalkan"},cancelled:{label:"Dibatalkan",color:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200",icon:f.Z,description:"Langganan telah dibatalkan"},expired:{label:"Kedaluwarsa",color:"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-200",icon:f.Z,description:"Langganan telah kedaluwarsa"}};var T=!0;function X(){var e,a,r,b,N,T,X,M,z,O,q,U,K,Y,H,$,V,G,J,W,Q,ee,ea,er,et,es,en,ei,ed,el;let ec=(0,n.useRouter)(),eo=(0,i.useUser)(),eu=(0,i.useSupabaseClient)(),{t:ex}
1=(0,y.$G)("common"),[em,eg]=(0,s.useState)([]),[eb,eh]=(0,s.useState)(null),[ep,ek]=(0,s.useState)([]),[ej,ey]=(0,s.useState)(!0),[ev,eN]=(0,s.useState)(!1),[ef,ew]=(0,s.useState)(null),[e_,eS]=(0,s.useState)({}),[eZ,eL]=(0,s.useState)(!1),[eD,eC]=(0,s.useState)({open:!1,subscription:null}),[eE,eA]=(0,s.useState)({open:!1,subscription:null}),[eP,eF]=(0,s.useState)(0),[eB,eI]=(0,s.useState)(0),[eR,eT]=(0,s.useState)(0),[eX,eM]=(0,s.useState)(!1),[ez,eO]=(0,s.useState)(!1),[eq,eU]=(0,s.useState)(null),[eK,eY]=(0,s.useState)(null),[eH,e$]=(0,s.useState)(null),[eV,eG]=(0,s.useState)(null),eJ=(0,s.useCallback)(async()=>{if(eo){ey(!0),ew(null);try{let e=Date.now(),[a,r]=await Promise.all([eu.from("subscriptions").select("*").eq("user_id",eo.id).eq("provider","xlsmart").order("created",{ascending:!1}),fetch("/api/transactions/list?limit=50&_t=".concat(e))]);if(a.error)throw a.error;if(eg(a.data||[]),r.ok){let e=await r.json();ek(e.transactions||[])}else console.error("Failed to load transactions:",r.status)}catch(e){console.error("Load data error:",e)}finally{ey(!1)}}},[eo,eu]),eW=(0,s.useCallback)(async()=>{if(eo)try{let{data:e,error:a}=await eu.from("subscriptions").select("*").eq("user_id",eo.id).eq("provider","xlsmart").order("created",{ascending:!1});if(a)throw a;eg(e||[])}catch(e){console.error("Load subscriptions error:",e)}},[eo,eu]),eQ=(0,s.useCallback)(async()=>{if(null==eo?void 0:eo.id)try{var e,a,r,t,s,n,i;let d=Date.now(),l=await fetch("/api/credits/balance?userId=".concat(eo.id,"&_t=").concat(d));if(!l.ok){console.error("Failed to load credit balance:",l.status);return}let c=await l.json(),o=(null===(e=c.credits)||void 0===e?void 0:e.bonus_pro)?c.credits.bonus_pro-(c.credits.bonus_pro_usage||0):0;eF((null===(a=c.credits)||void 0===a?void 0:a.basic)?c.credits.basic-(c.credits.basic_usage||0):0),eI((null===(r=c.credits)||void 0===r?void 0:r.pro)?c.credits.pro-(c.credits.pro_usage||0):0),eT(o),eM((null===(t=c.credits)||void 0===t?void 0:t.unlimited)||!1),eO((null===(s=c.credits)||void 0===s?void 0:s.unlimited_pro)||!1),eU((null===(n=c.credits)||void 0===n?void 0:n.valid_until)?new Date(c.credits.valid_until):null),eY((null===(i=c.subscription)||void 0===i?void 0:i.name)||null),eh(c)}catch(e){console.error("Load credit balance error:",e)}},[null==eo?void 0:eo.id]),e0=e=>{if(!e.id){ew("ID langganan tidak ditemukan");return}eC({open:!0,subscription:e})},e4=async()=>{let e=eD.subscription;if(!e)return;let a="unsubscribe-".concat(e.id);eS(e=>({...e,[a]:!0})),ew(null);try{let r=await fetch("/api/xlsmart/unsubscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subscription_id:e.id})}),t=await r.json();if(!r.ok||!t.success){ew(t.error||"Gagal membatalkan langganan"),eC({open:!1,subscription:null}),eS(e=>({...e,[a]:!1}));return}await new Promise(e=>setTimeout(e,2e3)),await eW();let s=await (async()=>{let a=await fetch("/api/xlsmart/subscription-status?subscription_id=".concat(e.id));return a.ok?await a.json():null})();s&&("canceled"===s.status||"cancelled"===s.status)?(eC({open:!0,subscription:{...e,status:"canceled"}}),setTimeout(()=>{eC({open:!1,subscription:null}),eW(),eQ()},2e3)):(eC({open:!1,subscription:null}),await eW(),await eQ())}catch(e){console.error("Unsubscribe error:",e),ew("Terjadi kesalahan saat membatalkan langganan"),eC({open:!1,subscription:null})}finally{eS(e=>({...e,[a]:!1}))}},e2=e=>{ew(null);let a=e.metadata||{},r=(null==e?void 0:e.xlsmart_last_transaction_id)||(null==a?void 0:a.last_renewal_transaction_id)||(null==a?void 0:a.xlsmart_transaction_id);if(!e.id){ew("ID langganan tidak ditemukan");return}if(!r){ew("ID transaksi tidak ditemukan");return}eA({open:!0,subscription:e})},e1=async()=>{let e=eE.subscription;if(!e)return;let a=e.metadata||{},r=(null==e?void 0:e.xlsmart_last_transaction_id)||(null==a?void 0:a.last_renewal_transaction_id)||(null==a?void 0:a.xlsmart_transaction_id),t=(null==a?void 0:a.last_renewal_at)||e.created,s=(null==a?void 0:a.last_renewal_at)?"renewal":"initial subscription";console.log("[xlsmart-subs] Refund request initiated:",{subscription_id:e.id,transaction_id:r,transaction_source:(null==e?void 0:e.xlsmart_last_transaction_id)?"dedicated_column":(null==a?void 0:a.last_renewal_transaction_id)?"renewal_metadata":"initial_metadata",reference_type:s,reference_time:t,created:e.created,last_renewal_at:null==a?void 0:a.last_renewal_at});let n="refund-".concat(e.id);eS(e=>({...e,[n]:!0})),ew(null);try{let a=await fetch("/api/xlsmart/refund",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subscription_id:e.id,transaction_id:r,reason:"User requested refund from subscription management page"})}),t=await a.json();if(a.ok&&t.success){await new Promise(e=>setTimeout(e,2e3)),await eW();let a=await (async()=>{let a=await fetch("/api/xlsmart/subscription-status?subscription_id=".concat(e.id));return a.ok?await a.json():null})();
1a&&("refunded"===a.status||"pending_refund"===a.status)?(eA({open:!0,subscription:{...e,status:a.status}}),setTimeout(()=>{eA({open:!1,subscription:null}),eW(),eQ()},2e3)):(eA({open:!1,subscription:null}),await eW(),await eQ())}else{let e=t.message||t.error||"Gagal mengajukan refund";ew(e)}}catch(e){console.error("Refund error:",e),ew(e instanceof Error?e.message:"Terjadi kesalahan saat mengajukan refund")}finally{eS(e=>({...e,[n]:!1}))}},e6=e=>new Date(e).toLocaleDateString("id-ID",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}),e3=e=>{let a=(0,o.WN)(e),r=a.icon;return(0,t.jsx)(r,{className:"w-4 h-4 ".concat(a.textColor)})};return((0,s.useEffect)(()=>{let e;return(null==eo?void 0:eo.id)&&(e=(0,l.J$)(eo.id,eF,eM,e=>eU(e),eI,eG,e=>e$(e?new Date(e):null),eT,eO,eY)),()=>{e&&e()}},[null==eo?void 0:eo.id]),(0,s.useEffect)(()=>{eo?(eJ(),eQ()):ey(!1)},[eo,eJ,eQ]),(0,s.useEffect)(()=>{if(!(null==eo?void 0:eo.id))return;let e=eu.channel("xlsmart-subscriptions-changes").on("postgres_changes",{event:"*",schema:"public",table:"subscriptions",filter:"user_id=eq.".concat(eo.id)},e=>{eW()}).subscribe();return()=>{eu.removeChannel(e)}},[null==eo?void 0:eo.id,eu,eW]),ej&&eo)?(0,t.jsx)("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900 flex items-center justify-center",children:(0,t.jsx)(v.Z,{className:"h-8 w-8 animate-spin text-gray-600 dark:text-gray-400"})}):eo?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.R,{title:"Kelola Langganan kakak.ai - kakak.ai",description:"Lihat status, kelola pembayaran, dan batalkan langganan kakak.ai melalui XLSmart. Dashboard lengkap untuk manajemen langganan Anda.",url:"/xlsmart-subs"}),(0,t.jsxs)("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[(0,t.jsx)(k.h,{user:eo,showNavigation:!0,showLoginButton:!1,customNavItems:[{label:ex("home","en"===ec.locale?"Home":"Beranda"),href:"/"}]}),(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 pt-24",children:[(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsxs)("button",{onClick:()=>ec.push("/"),className:"flex items-center text-gray-600 dark:text-gray-400 hover:text-brand-green dark:hover:text-brand-green transition-colors",children:[(0,t.jsx)(Z.Z,{size:20,className:"mr-2"}),"en"===ec.locale?"Back to App":"Kembali ke App"]})}),(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:"Langganan kakak.ai"}),(0,t.jsx)("p",{className:"text-gray-600 dark:text-gray-400 mt-2",children:"Kelola langganan kakak.ai yang dibayar menggunakan pulsa"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,t.jsxs)(u.z,{variant:"outline",onClick:()=>{eN(!0),Promise.all([eJ(),eQ()]).finally(()=>eN(!1))},disabled:ev,className:"dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 w-full sm:w-auto",children:[ev?(0,t.jsx)(v.Z,{className:"h-4 w-4 animate-spin mr-2"}):(0,t.jsx)(L.Z,{className:"h-4 w-4 mr-2"}),"Refresh"]}),(0,t.jsx)(u.z,{onClick:()=>ec.push("/xlsmart"),className:"w-full sm:w-auto",children:"Langganan Baru"})]})]})}),ef&&(0,t.jsxs)(m.bZ,{className:"mb-6 border-red-200 bg-red-50 dark:bg-red-900 dark:border-red-800",children:[(0,t.jsx)(D.Z,{className:"h-4 w-4 text-red-500 dark:text-red-300"}),(0,t.jsx)(m.X,{className:"text-red-800 dark:text-red-200",children:ef})]}),(0,t.jsxs)(x.Zb,{className:"mb-6 bg-white dark:bg-gray-800 shadow-lg border-gray-200 dark:border-gray-700",children:[(0,t.jsxs)(x.Ol,{children:[(0,t.jsxs)(x.ll,{className:"text-lg text-gray-900 dark:text-white flex items-center gap-2",children:[(0,t.jsx)(C.Z,{className:"h-5 w-5"}),"Saldo Credit"]}),(0,t.jsx)(x.SZ,{className:"dark:text-gray-400",children:"Status credit dan penggunaan Anda saat ini (real-time)"})]}),(0,t.jsxs)(x.aY,{children:[em.some(e=>"active"===e.status)&&0===eP&&0===eB&&0===eR&&!eX&&!ez&&(0,t.jsxs)(m.bZ,{className:"mb-4 border-yellow-200 bg-yellow-50 dark:bg-yellow-900/20 dark:border-yellow-700",children:[(0,t.jsx)(D.Z,{className:"h-4 w-4 text-yellow-500 dark:text-yellow-300"}),(0,t.jsx)(m.X,{className:"text-yellow-800 dark:text-yellow-200",children:"Credits belum muncul? Coba refresh halaman atau hubungi support jika masalah berlanjut."})]}),(0,t.jsx)("div",{className:"space-y-4 mb-4",children:eX?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"p-4 border rounded-lg bg-[#EEEFFE] dark:bg-brand-purple/10 border-brand-purple/30 dark:border-brand-purple/30",children:[(0,t.jsxs)("div",{className:"flex flex-col mb-2",children:[(0,t.jsx)("div",{className:"text-sm font-medium text-brand-purple dark:text-brand-purple/80",children:"Credit Pro"}),!ez&&(0,t.jsx)("div",{className:"text-xs text-brand-purple dark:text-brand-purple italic",children:"Tidak ada tanggal kadaluarsa"})]}),ez?(0,t.jsx)("div",{className:"text-2xl font-bold text-brand-purple dark:text-brand-purple",children:"Unlimited"}):(0,t.jsx)("div",{className:"text-2xl font-bold text-brand-purple dark:text-brand-purple/80",children:Math.max(0,eB).toLocaleStr
1ing("id-ID")})]}),(0,t.jsxs)("div",{className:"border-t border-gray-300 dark:border-gray-600 pt-4 space-y-4",children:[eK&&"FREE_DAILY"!==eK&&(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-600 dark:text-gray-400",children:"Paket Langganan:"}),(0,t.jsx)("span",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:eK})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"p-4 border rounded-lg bg-green-50 dark:bg-green-900/10 border-green-200 dark:border-green-800",children:[(0,t.jsx)("div",{className:"text-sm font-medium text-green-800 dark:text-green-300 mb-2",children:"Credit Basic"}),(0,t.jsx)("div",{className:"text-2xl font-bold text-green-600 dark:text-green-400",children:"Unlimited"})]}),(0,t.jsxs)("div",{className:"p-4 border rounded-lg bg-[#E8FAF4] dark:bg-brand-green/10/10 border-brand-green/30 dark:border-brand-green/30",children:[(0,t.jsx)("div",{className:"text-sm font-medium text-brand-green dark:text-brand-green/70 mb-2",children:"Bonus Pro Credit"}),(0,t.jsx)("div",{className:"text-2xl font-bold text-brand-green dark:text-brand-green",children:Math.max(0,eR).toLocaleString("id-ID")})]})]}),eq&&(0,t.jsxs)("div",{className:"flex justify-between items-center px-4 py-2 bg-green-50 dark:bg-green-900/10 rounded-lg border border-green-200 dark:border-green-800",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-green-800 dark:text-green-300",children:"Berlaku Hingga:"}),(0,t.jsx)("span",{className:"text-sm font-semibold text-green-900 dark:text-green-200",children:new Date(eq).toLocaleString("id-ID",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone})})]})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"p-4 border rounded-lg bg-[#EEEFFE] dark:bg-brand-purple/10 border-brand-purple/30 dark:border-brand-purple/30",children:[(0,t.jsxs)("div",{className:"flex flex-col mb-2",children:[(0,t.jsx)("div",{className:"text-sm font-medium text-brand-purple dark:text-brand-purple/80",children:"Credit Pro"}),!ez&&(0,t.jsx)("div",{className:"text-xs text-brand-purple dark:text-brand-purple italic",children:"Tidak ada tanggal kadaluarsa"})]}),ez?(0,t.jsx)("div",{className:"text-2xl font-bold text-brand-purple dark:text-brand-purple",children:"Unlimited"}):(0,t.jsx)("div",{className:"text-2xl font-bold text-brand-purple dark:text-brand-purple/80",children:Math.max(0,eB).toLocaleString("id-ID")})]}),(0,t.jsxs)("div",{className:"p-4 border rounded-lg dark:border-gray-600",children:[(0,t.jsx)("div",{className:"text-sm font-medium text-muted-foreground dark:text-gray-400 mb-2",children:"Credit Basic"}),(0,t.jsx)("div",{className:"text-2xl font-bold dark:text-white",children:Math.max(0,eP).toLocaleString("id-ID")})]})]}),eR>0&&(0,t.jsxs)("div",{className:"p-4 border rounded-lg dark:border-gray-600",children:[(0,t.jsx)("div",{className:"text-sm font-medium text-muted-foreground dark:text-gray-400",children:"Bonus Pro Credit"}),(0,t.jsx)("div",{className:"text-2xl font-bold dark:text-white",children:Math.max(0,eR).toLocaleString("id-ID")})]})]})}),!1]})]}),0===em.length?(0,t.jsx)(x.Zb,{className:"bg-white dark:bg-gray-800 shadow-lg border-gray-200 dark:border-gray-700",children:(0,t.jsx)(x.aY,{className:"pt-8",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(E.Z,{className:"mx-auto h-12 w-12 text-gray-400 dark:text-gray-500 mb-4"}),(0,t.jsx)("h3",{className:"text-lg font-medium text-gray-900 dark:text-white mb-2",children:"Belum ada langganan"}),(0,t.jsx)("p",{className:"text-gray-500 dark:text-gray-400 mb-6",children:"Anda belum memiliki langganan kakak.ai aktif"}),(0,t.jsx)(u.z,{onClick:()=>ec.push("/xlsmart"),children:"Buat Langganan Baru"})]})})}):(0,t.jsx)("div",{className:"space-y-6",children:em.filter(e=>"active"===e.status).map(e=>{let a=R[e.status]||R.pending,r=a.icon,s=e.metadata||{},n=s.tier?s.tier.toUpperCase():"",i=s.product_name||"XLSmart Package",l=n?"".concat(n," ").concat(i):i,o=c(e).eligible,b=function(e){let a=c(e),r=(e.metadata||e.provider_metadata||{}).last_renewal_at?"perpanjangan":"aktivasi";if(a.eligible){let e=Math.ceil(a.hoursRemaining),t=Math.ceil(60*a.hoursRemaining);return e<1?"⏰ Refund tersedia untuk ".concat(t," menit lagi (dari ").concat(r,")"):"⏰ Refund tersedia untuk ".concat(e," jam lagi (dari ").concat(r,")")}{let e=Math.floor(a.hoursSinceCreation),t=a.isDailySubscription?"harian (1 jam)":"bulanan (24 jam)";return"❌ Batas waktu refund untuk langganan ".concat(t," telah lewat (").concat(e," jam yang lalu dari ").concat(r,")")}}(e);return(0,t.jsxs)(x.Zb,{className:"bg-white dark:bg-gray-800 shadow-lg border-gray-200 dark:border-gray-700",children:[(0,t.jsx)(x.Ol,{children:(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)(E.Z,{className:"h-5 w-5 text-gray-400 dark:text-gray-500"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(x.ll,{className:"text-lg text-gray-900 dark:text-white",children:(0,d.bE)(e.provider_customer_id||"")}),(0,t.jsx)(x.SZ,{className:"dark:text-gray-400",children:l})]})]}),(0,t.jsxs)(g.C,{className:"".concat(a.color," dark:text-white"),children:[(0,t.jsx)(r,{className:"h-3 w-3 mr-1"}),a.label]})]})}),(0,t.jsxs)(x.aY,{children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"font-medium text-gray-900 dark:text-white",children:"Detail Langganan"}),(0,t.jsxs)("div",{className:"flex items-center text-sm",children:[(0,t.jsx)(A.Z,{className:"h-4 w-4 text-gray-400 dark:text-gray-500 mr-2"}),(0,t.jsx)("span",{className:"text-gray-500 dark:text-gray-400 w-20",children:"Mulai:"}),(0,t.jsx)("span",{className:"dark:text-gray-300",children:e6(e.created)})]}),e.current_period_end&&(0,t.jsxs)("div",{className:"flex items-center text-sm",children:[(0,t.jsx)(A.Z,{className:"h-4 w-4 text-gray-400 dark:text-gray-500 mr-2"}),(0,t.jsx)("span",{className:"text-gray-500 dark:text-gray-400 w-20",children:"Berakhir:"}),(0,t.jsx)("span",{className:"dark:text-gray-300",children:e6(e.current_period_end)})]}),s.price&&(0,t.jsxs)("div",{className:"flex items-center text-sm",children:[(0,t.jsx)(C.Z,{className:"h-4 w-4 text-gray-400 dark:text-gray-500 mr-2"}),(0,t.jsx)("span",{className:"text-gray-500 dark:text-gray-400 w-20",children:"Harga:"}),(0,t.jsx)("span",{className:"dark:text-gray-300",children:s.price})]}),(s.credits||s.bonus_pro_credits||s.unlimited)&&(0,t.jsxs)("div",{className:"flex items-center text-sm",children:[(0,t.jsx)("span",{className:"text-gray-500 dark:text-gray-400 w-20 ml-6",children:"Benefit:"}),(0,t.jsxs)("span",{className:"dark:text-gray-300",children:[s.unlimited&&"Unlimited Basic",s.bonus_pro_credits&&s.bonus_pro_credits>0&&" + ".concat(s.bonus_pro_credits," Bonus Pro Credits"),s.credits>0&&!s.unlimited&&"".concat(s.credits," Credits")]})]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"font-medium text-gray-900 dark:text-white",children:"Status & Aksi"}),(0,t.jsx)("div",{className:"text-sm text-gray-600 dark:text-gray-400",children:a.description}),"active"===e.status&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:(0,t.jsxs)(u.z,{variant:"outline",size:"sm",onClick:()=>e0(e),disabled:e_["unsubscribe-".concat(e.id)],className:"dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",children:[e_["unsubscribe-".concat(e.id)]?(0,t.jsx)(v.Z,{className:"h-3 w-3 animate-spin mr-1"}):(0,t.jsx)(P.Z,{className:"h-3 w-3 mr-1"}),"Batalkan"]})}),"pending_cancellation"===e.status&&(0,t.jsxs)(m.bZ,{className:"dark:bg-orange-900/20 dark:border-orange-700",children:[(0,t.jsx)(_.Z,{className:"h-4 w-4"}),(0,t.jsx)(m.X,{className:"dark:text-orange-200",children:"Pembatalan sedang diproses oleh XLSmart. Mohon tunggu notifikasi konfirmasi."})]}),"pending_refund"===e.status&&(0,t.jsxs)(m.bZ,{className:"dark:bg-brand-purple/10 dark:border-brand-purple/40",children:[(0,t.jsx)(_.Z,{className:"h-4 w-4"}),(0,t.jsx)(m.X,{className:"dark:text-brand-purple/90",children:"Refund sedang diproses oleh XLSmart. Dana akan dikembalikan dalam 1-3 hari kerja."})]}),["cancelled","active"].includes(e.status)&&"pending_refund"!==e.status&&function(e){let a=e.metadata||e.provider_metadata||{};return!!(a.last_renewal_at||a.last_renewal_transaction_id||a.renewal_transaction_id)}(e)&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:(0,t.jsxs)(u.z,{variant:"outline",size:"sm",onClick:()=>e2(e),disabled:e_["refund-".concat(e.id)]||!o,className:"dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600 disabled:opacity-50 disabled:cursor-not-allowed",children:[e_["refund-".concat(e.id)]?(0,t.jsx)(v.Z,{className:"h-3 w-3 animate-spin mr-1"}):(0,t.jsx)(C.Z,{className:"h-3 w-3 mr-1"}),"Request Refund"]})}),(0,t.jsx)("p",{className:"text-xs ".concat(o?"text-gray-500 dark:text-gray-400":"text-red-500 dark:text-red-400"),children:b})]})]})]}),(e.provider_subscription_id||e.provider_transaction_id)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h,{className:"my-4 dark:bg-gray-700"}),(0,t.jsxs)("div",{className:"text-xs text-gray-500 dark:text-gray-400 space-y-1",children:[e.provider_subscription_id&&(0,t.jsxs)("div",{children:["Subscription ID: ",e.provider_subscription_id]}),e.provider_transaction_id&&(0,t.jsxs)("div",{children:["Transaction ID: ",e.provider_transaction_id]})]})]})]}),"active"===e.status&&(0,t.jsx)("div",{className:"px-6 pb-6",children:(0,t.jsx)(w,{subscription:e,onTestComplete:()=>{eW(),eQ()}})})]},e.id)})}),(0,t.jsxs)(x.Zb,{className:"mt-8 bg-white dark:bg-gray-800 shadow-lg border-gray-200 dark:border-gray-700",children:[(0,t.jsxs)(x.Ol,{children:[(0,t.jsxs)(x.ll,{className:"text-lg text-gray-900 dark:text-white flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(F.Z,{className:"h-5 w-5"}),ex("Transaction History")]}),(0,t.jsxs)(u.z,{variant:"outline",size:"sm",onClick:()=>eL(!eZ),className:"dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",children:[eZ?ex("Hide"):ex("Show")," ",ex("History")]})]}),(0,t.jsx)(x.SZ,{className:"dark:text-gray-400",children:ex("View your past payments and transactions")})]}),eZ&&(0,t.jsx)(x.aY,{children:0===ep.length?(0,t.jsx)("p",{className:"text-gray-500 dark:text-gray-400 text-center py-4",children:ex("No transactions foun
1d")}):(0,t.jsx)("div",{className:"space-y-3",children:ep.slice(0,10).map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between p-3 border rounded-lg dark:border-gray-600",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[e3(e.transaction_status||e.status),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-medium dark:text-white",children:e.product_name||ex("Transaction")}),(0,t.jsxs)("div",{className:"text-sm text-gray-500 dark:text-gray-400",children:[new Date(e.created_at||"").toLocaleDateString("id"===ec.locale?"id-ID":"en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}),e.payment_type&&" • ".concat(e.payment_type)]})]})]}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsx)("div",{className:"font-medium dark:text-white",children:"created"===e.status||"pending"===e.transaction_status?"Rp ".concat((e.price_unit_amount||e.gross_amount||0).toLocaleString("id-ID")):0===(e.gross_amount||0)?ex("Free"):"Rp ".concat((e.gross_amount||0).toLocaleString("id-ID"))}),(0,t.jsx)("div",{className:"text-sm ".concat((0,o.WN)(e.transaction_status||e.status).textColor),children:(0,o.lD)(e.transaction_status||e.status)})]})]},e.id))})})]}),(0,t.jsxs)(x.Zb,{className:"mt-8 bg-white dark:bg-gray-800 shadow-lg border-gray-200 dark:border-gray-700",children:[(0,t.jsx)(x.Ol,{children:(0,t.jsx)(x.ll,{className:"text-lg text-gray-900 dark:text-white",children:"Butuh Bantuan?"})}),(0,t.jsxs)(x.aY,{children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-medium mb-2 text-gray-900 dark:text-white",children:"Masalah Pembayaran"}),(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-3",children:"Jika terjadi masalah dengan pembayaran atau pulsa tidak terpotong, hubungi customer service operator Anda."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-medium mb-2 text-gray-900 dark:text-white",children:"Bantuan Teknis"}),(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-3",children:"Untuk masalah teknis aplikasi atau pertanyaan lainnya, hubungi support kakak.ai."})]})]}),(0,t.jsx)("div",{className:"flex gap-3 mt-4",children:(0,t.jsx)(u.z,{variant:"outline",onClick:()=>ec.push("/support"),className:"dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",children:"Hubungi Supp
1ort"})})]})]})]}),(0,t.jsx)(p.Vq,{open:eD.open,onOpenChange:e=>{var a;return!e_["unsubscribe-".concat(null===(a=eD.subscription)||void 0===a?void 0:a.id)]&&eC({open:e,subscription:null})},children:(0,t.jsxs)(p.cZ,{className:"bg-white dark:bg-gray-800",children:[(0,t.jsxs)(p.fK,{children:[(0,t.jsx)(p.$N,{className:"text-gray-900 dark:text-white flex items-center gap-2",children:(null===(e=eD.subscription)||void 0===e?void 0:e.status)==="canceled"?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.Z,{className:"h-5 w-5 text-green-500"}),"Pembatalan Berhasil"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.Z,{className:"h-5 w-5 text-red-500"}),"Konfirmasi Pembatalan Langganan"]})}),(0,t.jsx)(p.Be,{className:"dark:text-gray-400",children:(null===(a=eD.subscription)||void 0===a?void 0:a.status)==="canceled"?"Langganan Anda telah berhasil dibatalkan.":"Tindakan ini akan membatalkan langganan Anda."})]}),(null===(r=eD.subscription)||void 0===r?void 0:r.status)==="canceled"?(0,t.jsxs)("div",{className:"space-y-4 py-4",children:[(0,t.jsxs)(m.bZ,{className:"border-green-200 bg-green-50 dark:bg-green-900/20 dark:border-green-700",children:[(0,t.jsx)(S.Z,{className:"h-4 w-4 text-green-600 dark:text-green-400"}),(0,t.jsxs)(m.X,{className:"text-green-800 dark:text-green-200",children:["Langganan untuk nomor ",(0,t.jsx)("strong",{children:(0,d.bE)((null===(b=eD.subscription)||void 0===b?void 0:b.provider_customer_id)||"")})," telah dibatalkan."]})]}),(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:"Anda tidak akan ditagih untuk periode berikutnya. Akses ke benefit langganan akan berakhir sesuai periode yang sudah dibayar."})]}):e_["unsubscribe-".concat(null===(N=eD.subscription)||void 0===N?void 0:N.id)]?(0,t.jsxs)("div",{className:"space-y-4 py-8",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4",children:[(0,t.jsx)(v.Z,{className:"h-8 w-8 animate-spin text-brand-green"}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:"Memproses pembatalan..."}),(0,t.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:"Menunggu konfirmasi dari XLSmart (maks. 30 detik)"})]})]}),(0,t.jsxs)(m.bZ,{className:"border-brand-green/30 bg-[#E8FAF4] dark:bg-brand-green/10 dark:border-brand-green/60",children:[(0,t.jsx)(B.Z,{className:"h-4 w-4 text-brand-green dark:text-brand-green"}),(0,t.jsx)(m.X,{className:"text-brand-green dark:text-brand-green/90",children:"Mohon tunggu, kami sedang memproses permintaan pembatalan Anda."})]})]}):(0,t.jsxs)("div",{className:"space-y-4 py-4",children:[(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:"Apakah Anda yakin ingin membatalkan langganan untuk nomor:"}),(0,t.jsxs)("div",{className:"p-4 bg-gray-50 dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-700",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(E.Z,{className:"h-4 w-4 text-gray-500 dark:text-gray-400"}),(0,t.jsx)("span",{className:"font-semibold text-gray-900 dark:text-white",children:(0,d.bE)((null===(T=eD.subscription)||void 0===T?void 0:T.provider_customer_id)||"")})]}),(null===(M=eD.subscription)||void 0===M?void 0:null===(X=M.metadata)||void 0===X?void 0:X.product_name)&&(0,t.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:["Paket: ",eD.subscription.metadata.product_name]})]}),(0,t.jsxs)(m.bZ,{className:"border-yellow-200 bg-yellow-50 dark:bg-yellow-900/20 dark:border-yellow-700",children:[(0,t.jsx)(D.Z,{className:"h-4 w-4 text-yellow-600 dark:text-yellow-400"}),(0,t.jsxs)(m.X,{className:"text-yellow-800 dark:text-yellow-200",children:[(0,t.jsx)("strong",{children:"Perhatian:"})," Setelah dibatalkan, langganan Anda akan berakhir dan Anda akan kehilangan akses ke benefit yang diberikan."]})]})]}),(0,t.jsx)(p.cN,{children:(null===(z=eD.subscription)||void 0===z?void 0:z.status)==="canceled"?(0,t.jsx)(u.z,{onClick:()=>eC({open:!1,subscription:null}),className:"w-full",children:"Tutup"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.z,{variant:"outline",onClick:()=>eC({open:!1,subscription:null}),disabled:e_["unsubscribe-".concat(null===(O=eD.subscription)||void 0===O?void 0:O.id)],className:"dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",children:"Batal"}),(0,t.jsx)(u.z,{variant:"destructive",onClick:e4,disabled:e_["unsubscribe-".concat(null===(q=eD.subscription)||void 0===q?void 0:q.id)],className:"bg-red-600 hover:bg-red-700",children:e_["unsubscribe-".concat(null===(U=eD.subscription)||void 0===U?void 0:U.id)]?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Memproses..."]}):"Ya, Batalkan Langganan"})]})})]})}),(0,t.jsx)(p.Vq,{open:eE.open,onOpenChange:e=>{var a;return!e_["refund-".concat(null===(a=eE.subscription)||void 0===a?void 0:a.id)]&&eA({open:e,subscription:null})},children:(0,t.jsxs)(p.cZ,{className:"bg-white dark:bg-gray-800",children:[(0,t.jsxs)(p.fK,{children:[(0,t.jsx)(p.$N,{className:"text-gray-900 dark:text-white flex items-center gap-2",children:(null===(K=eE.subscription)||void 0===K?void 0:K.status)==="refunded"||(null===(Y=eE.subscription)||void 0===Y?void 0:Y.status)==="pending_refund"?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.Z,{className:"h-5 w-5 text-green-500"}),(null===(H=eE.subscription)||void 0===H?void 0:H.status)==="refunded"?"Refund Berhasil":"Refund Sedang Diproses"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C.Z,{className:"h-5 w-5 text-brand-green"}),"Konfirmasi Permintaan Refund"]})}),(0,t.jsx)(p.Be,{className:"dark:text-gray-400",children:(null===($=eE.subscription)||void 0===$?void 0:$.status)==="refunded"?"Permintaan refund Anda telah berhasil diproses.":(null===(V=eE.subscription)||void 0===V?void 0:V.status)==="pending_refund"?"Permintaan refund Anda sedang diproses oleh XLSmart.":"Pengajuan refund akan diproses oleh XLSmart."})]}),(null===(G=eE.subscription)||void 0===G?void 0:G.status)==="refunded"?(0,t.jsxs)("div",{className:"space-y-4 py-4",children:[(0,t.jsxs)(m.bZ,{className:"border-green-200 bg-green-50 dark:bg-green-900/20 dark:border-green-700",children:[(0,t.jsx)(S.Z,{className:"h-4 w-4 text-green-600 dark:text-green-400"}),(0,t.jsxs)(m.X,{className:"text-green-800 dark:text-green-200",children:["Refund untuk langganan nomor ",(0,t.jsx)("strong",{children:(0,d.bE)((null===(J=eE.subscription)||void 0===J?void 0:J.provider_customer_id)||"")})," telah berhasil diproses."]})]}),(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:"Dana refund akan dikembalikan ke pulsa And
1a dalam 1-3 hari kerja."})]}):(null===(W=eE.subscription)||void 0===W?void 0:W.status)==="pending_refund"?(0,t.jsxs)("div",{className:"space-y-4 py-4",children:[(0,t.jsxs)(m.bZ,{className:"border-yellow-200 bg-yellow-50 dark:bg-yellow-900/20 dark:border-yellow-700",children:[(0,t.jsx)(_.Z,{className:"h-4 w-4 text-yellow-600 dark:text-yellow-400"}),(0,t.jsxs)(m.X,{className:"text-yellow-800 dark:text-yellow-200",children:["Permintaan refund untuk nomor ",(0,t.jsx)("strong",{children:(0,d.bE)((null===(Q=eE.subscription)||void 0===Q?void 0:Q.provider_customer_id)||"")})," sedang diproses."]})]}),(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:"Proses refund memerlukan waktu. Kami akan mengirimkan notifikasi setelah refund selesai diproses."})]}):e_["refund-".concat(null===(ee=eE.subscription)||void 0===ee?void 0:ee.id)]?(0,t.jsxs)("div",{className:"space-y-4 py-8",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4",children:[(0,t.jsx)(v.Z,{className:"h-8 w-8 animate-spin text-brand-green"}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:"Memproses permintaan refund..."}),(0,t.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:"Menunggu konfirmasi dari XLSmart (maks. 30 detik)"})]})]}),(0,t.jsxs)(m.bZ,{className:"border-brand-green/30 bg-[#E8FAF4] dark:bg-brand-green/10 dark:border-brand-green/60",children:[(0,t.jsx)(B.Z,{className:"h-4 w-4 text-brand-green dark:text-brand-green"}),(0,t.jsx)(m.X,{className:"text-brand-green dark:text-brand-green/90",children:"Mohon tunggu, kami sedang memproses permintaan refund Anda."})]})]}):(0,t.jsxs)("div",{className:"space-y-4 py-4",children:[ef&&(0,t.jsxs)(m.bZ,{className:"border-red-200 bg-red-50 dark:bg-red-900/20 dark:border-red-700",children:[(0,t.jsx)(f.Z,{className:"h-4 w-4 text-red-600 dark:text-red-400"}),(0,t.jsxs)(m.X,{className:"text-red-800 dark:text-red-200",children:[(0,t.jsx)("strong",{children:"Error:"})," ",ef]})]}),(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:"Apakah Anda yakin ingin mengajukan refund untuk langganan:"}),(0,t.jsxs)("div",{className:"p-4 bg-gray-50 dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-700",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(E.Z,{className:"h-4 w-4 text-gray-500 dark:text-gray-400"}),(0,t.jsx)("span",{className:"font-semibold text-gray-900 dark:text-white",children:(0,d.bE)((null===(ea=eE.subscription)||void 0===ea?void 0:ea.provider_customer_id)||"")})]}),(null===(et=eE.subscription)||void 0===et?void 0:null===(er=et.metadata)||void 0===er?void 0:er.product_name)&&(0,t.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1",children:["Paket: ",eE.subscription.metadata.product_name]})]}),(0,t.jsxs)(m.bZ,{className:"border-brand-green/30 bg-[#E8FAF4] dark:bg-brand-green/10 dark:border-brand-green/60",children:[(0,t.jsx)(_.Z,{className:"h-4 w-4 text-brand-green dark:text-brand-green"}),(0,t.jsxs)(m.X,{className:"text-brand-green dark:text-brand-green/90",children:[(0,t.jsx)("strong",{children:"Informasi:"}),(0,t.jsxs)("ul",{className:"list-disc list-inside mt-2 space-y-1 text-sm",children:[(0,t.jsx)("li",{children:"Refund hanya dapat dilakukan dalam 24 jam setelah pembayaran"}),(0,t.jsx)("li",{children:"Proses refund dilakukan oleh XLSmart"}),(0,t.jsx)("li",{children:"Dana akan dikembalikan ke pulsa Anda"}),(0,t.jsx)("li",{children:"Setelah refund, Anda akan kehilangan akses ke benefit langganan"})]})]})]})]}),(0,t.jsx)(p.cN,{children:(null===(es=eE.subscription)||void 0===es?void 0:es.status)==="refunded"||(null===(en=eE.subscription)||void 0===en?void 0:en.status)==="pending_refund"?(0,t.jsx)(u.z,{onClick:()=>eA({open:!1,subscription:null}),className:"w-full",children:"Tutup"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.z,{variant:"outline",onClick:()=>eA({open:!1,subscription:null}),disabled:e_["refund-".concat(null===(ei=eE.subscription)||void 0===ei?void 0:ei.id)],className:"dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",children:"Batal"}),(0,t.jsx)(u.z,{onClick:e1,disabled:e_["refund-".concat(null===(ed=eE.subscription)||void 0===ed?void 0:ed.id)],className:"bg-brand-green hover:bg-brand-green-2",children:e_["refund-".concat(null===(el=eE.subscription)||void 0===el?void 0:el.id)]?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Memproses..."]}):"Ya, Ajukan Refund"})]})})]})}),(0,t.jsx)(j.$,{user:eo,showSEOContent:!1})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.R,{title:"Kelola Langganan XLSmart - kakak.ai",de
1scription:"Login untuk mengelola langganan kakak.ai Anda melalui XLSmart. Lihat status pembayaran, riwayat transaksi, dan pengaturan langganan dengan mudah.",url:"/xlsmart-subs"}),(0,t.jsxs)("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900",children:[(0,t.jsx)(k.h,{user:eo,showNavigation:!0,showLoginButton:!0,customNavItems:[{label:ex("home","en"===ec.locale?"Home":"Beranda"),href:"/"}]}),(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 pt-24",children:(0,t.jsxs)(x.Zb,{className:"max-w-md mx-auto bg-white dark:bg-gray-800 shadow-lg border-gray-200 dark:border-gray-700",children:[(0,t.jsxs)(x.Ol,{className:"text-center",children:[(0,t.jsx)(x.ll,{className:"text-xl text-gray-900 dark:text-white mb-2",children:"en"===ec.locale?"Login Required":"Login Diperlukan"}),(0,t.jsx)(x.SZ,{className:"dark:text-gray-400",children:"en"===ec.locale?"Please login first to view your kakak.ai subscription information.":"Silakan login terlebih dahulu untuk melihat informasi langganan kakak.ai Anda."})]}),(0,t.jsx)(x.aY,{className:"text-center",children:(0,t.jsx)(u.z,{onClick:()=>{sessionStorage.setItem("redirectAfterLogin","/xlsmart-subs"),ec.push("/signin")},className:"w-full",children:"en"===ec.locale?"Login Now":"Login Sekarang"})})]})}),(0,t.jsx)(j.$,{user:eo,showSEOContent:!1})]})]})}}},function(e){e.O(0,[3246,9464,9358,9451,1091,7062,5456,8343,1394,132,465,5139,569,6202,3729,1612,7511,7346,1569,7172,4578,9396,1557,924,842,4382,1406,2417,7943,2586,2297,5976,1448,1561,7701,2170,7673,8163,2888,9922,179],function(){return e(e.s=50773)}),_N_E=e.O()}]);

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.