PageSourceSearch

https://terminal.aexistechnologies.ai/_next/static/chunks/9222-09a…?dpl=dpl_4ngxSdkKLzCF2uqHk9c5CA6KLkKt

js aexistechnologies.ai collected 2026-10-05 15:11:59 UTC 9,374 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6628b18e-c760-4653-8992-cf994e988157",e._sentryDebugIdIdentifier="sentry-dbid-6628b18e-c760-4653-8992-cf994e988157")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9222],{34855:(e,t,a)=>{a.d(t,{h:()=>s,l:()=>l});let s="ai-2026-10",l=[{publicId:"temel",id:"ai_temel",name:"Temel",monthlyKurus:199e3,seats:1,capacity:1},{publicId:"pro",id:"ai_pro",name:"Pro",monthlyKurus:449e3,seats:2,capacity:5},{publicId:"ultra",id:"ai_ultra",name:"Ultra",monthlyKurus:639e3,seats:3,capacity:10},{publicId:"ultra-20x",id:"ai_ultra20",name:"Ultra 20\xd7",monthlyKurus:1039e3,seats:3,capacity:20}]},79222:(e,t,a)=>{a.d(t,{M:()=>f});var s=a(95155),l=a(12115),i=a(45515),n=a(22164),r=a(44478),c=a(6296),d=a(12651),o=a(62791),u=a(69577),m=a(91337),x=a(97048),p=a(34855);let h="https://aexistechnologies.ai";function f({brandId:e,planId:t,billingPeriod:a,purpose:f="subscription",seatCount:y=0,couponCode:g="",expectedAmountKurus:b,onSuccess:j}){let[w,N]=(0,l.useState)("consent"),[k,_]=(0,l.useState)(!1),[v,I]=(0,l.useState)(null),[T,S]=(0,l.useState)(null),[z,A]=(0,l.useState)(null),[C,D]=(0,l.useState)(""),K=(0,l.useRef)(!1),P=(0,l.useCallback)(async()=>{if(!K.current){if(!k)return void N("consent");K.current=!0,N("starting"),D("");try{let s=await (0,m.MB)(`${(0,x.nI)()}/api/billing/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({brand_id:e,plan_id:t,billing_period:a,purpose:f,seat_count:"seat"===f?y:0,coupon_code:g||"",terms_accepted:!0,terms_version:"2026-07-30",...t.startsWith("ai_")?{catalog_version:p.h}:{}})}),l=await s.json().catch(()=>({}));if(!s.ok){D(l?.detail||"\xd6deme başlatılamadı, l\xfctfen tekrar deneyin."),N("failed");return}if(t.startsWith("ai_")&&void 0!==b&&l.amount_gross_kurus!==b){D("\xd6deme tutarı değişti. G\xfcncel toplamı g\xf6rmek i\xe7in sayfayı yenileyin."),N("failed");return}S(l.merchant_oid),I(l.iframe_url),A(l.amount_gross_kurus),N("iframe")}catch{D("\xd6deme sistemine ulaşılamadı, l\xfctfen tekrar deneyin."),N("failed")}finally{K.current=!1}}},[e,t,a,f,y,g,k,b]);return((0,l.useEffect)(()=>{let e;if("iframe"!==w||!T)return;let a=!1,s=new AbortController,l=async()=>{try{let e=await (0,m.MB)(`${(0,x.nI)()}/api/billing/status?merchant_oid=${T}`,{signal:s.signal});if(!e.ok||a)return;let l=await e.json();if("success"===l.status){if(t.startsWith("ai_")&&l.test_mode){D("Test \xf6demesi tamamlandı; \xfccretli paket etkinleştirilmedi."),N("failed");return}N("success")}else"review"===l.status?(D("\xd6demeniz alındı ancak paketiniz bu sırada değişti. Yeni \xf6deme yapmayın; [email protected] ile işlem kontrol\xfc i\xe7in iletişime ge\xe7in."),N("review")):("failed"===l.status||"expired"===l.status)&&(D("\xd6deme tamamlanamadı. Kartınızı kontrol edip tekrar deneyebilirsiniz."),N("failed"))}catch{}finally{a||(e=setTimeout(l,3e3))}};return e=setTimeout(l,3e3),()=>{a=!0,clearTimeout(e),s.abort()}},[w,T,t]),(0,l.useEffect)(()=>{if("success"!==w)return;let e=setTimeout(j,1500);return()=>clearTimeout(e)},[w,j]),"consent"===w)?(0,s.jsxs)("div",{className:"py-4 space-y-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-4 rounded-xl bg-white/[0.03] border border-white/5",children:[(0,s.jsx)("div",{className:"text-left",children:"seat"===f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-sm text-white font-medium",children:["Ek Koltuk ",(0,s.jsxs)("span",{className:"text-gray-500 font-normal",children:["\xd7 ",y]})]}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-0.5",children:"\xd6deme sonrası koltuklarınız hemen a\xe7ılır; \xfccret d\xf6nem sonuna kadar orantılıdır."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-sm text-white font-medium",children:[p.l.find(e=>e.id===t)?.name||t.charAt(0).toUpperCase()+t.slice(1)," plan",(0,s.jsxs)("span",{className:"text-gray-500 font-normal",children:[" \xb7 ","monthly"===a?"Aylık":"Yıllık"]})]}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-0.5",children:"\xd6deme doğrulandığında se\xe7tiğiniz d\xf6nem hesabınıza tanımlanır."})]})}),null!=b&&(0,s.jsxs)("div",{className:"text-right shrink-0 ml-3",children:[(0,s.jsx)("p",{className:"text-base text-white font-bold",children:(0,x.us)(b)}),(0,s.jsxs)("p",{className:"text-[11px] text-gray-500",children:["KDV dahil",g?` \xb7 ${g}`:""]})]})]}),(0,s.jsxs)("label",{className:"flex items-start gap-3 p-4 rounded-xl bg-white/[0.02] border border-white/5 cursor-pointer hover:border-white/10 transition-colors text-left",children:[(0,s.jsx)("input",{type:"checkbox",checked:k,onChange:e=>_(e.target.checked),className:"mt-0.5 w-4 h-4 shrink-0 rounded border-gray-600 bg-transparent accent-purple-500 cursor-pointer"}),(0,s.jsxs)("span",{className:"text-xs text-gray-400 leading-relaxed",children:[(0,s.jsxs)("a",{href:`${h}/mesafeli-satis`,target:"_blank",rel:"noopener noreferrer",className:"text-purple-400 hover:text-purple-300 underline underline-offset-2 inline-flex items-center gap-1",children:["Mesafeli Satış S\xf6zleşmesi",(0,s.jsx)(n.A,{className:"w-3 h-3"})]})," ","ve"," ",(0,s.jsxs)("a",{href:`${h}/iptal-iade`,target:"_blank",rel:"noopener noreferrer",className:"text-purple-400 hover:text-purple-300 underline underline-offset-2 inline-flex items-center gap-1",children:["İptal ve İade Koşulları",(0,s.jsx)(n.A,{className:"w-3 h-3"})]}),"’","nı okudum, onaylıyorum."]})]}),(0,s.jsx)("button",{onClick:P,disabled:!k,className:"w-full py-3 rounded-xl bg-purple-600 hover:bg-purple-500 disabled:bg-white/5 disabled:text-gray-600 disabled:cursor-not-allowed text-white text-sm font-semibold transition-colors",children:"G\xfcvenli \xd6demeye Ge\xe7"}),(0,s.jsxs)("p",{className:"text-[11px] text-gray-600 text-center flex items-center justify-center gap-1.5",children:[(0,s.jsx)(r.A,{className:"w-3.5 h-3.5"}),"\xd6deme PayTR g\xfcvenli altyapısıyla, 3D Secure doğrulamalı alınır."]})]}):"starting"===w?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 gap-3",children:[(0,s.jsx)(c.A,{className:"w-8 h-8 text-purple-400 animate-spin"}),(0,s.jsx)("p",{className:"text-sm text-gray-400",children:"G\xfcvenli \xf6deme sayfası hazırlanıyor..."})]}):"success"===w?(0,s.jsxs)(i.P.div,{initial:{opacity:0,scale:.95}
1,animate:{opacity:1,scale:1},className:"flex flex-col items-center justify-center py-16 gap-3",children:[(0,s.jsx)(d.A,{className:"w-12 h-12 text-emerald-400"}),(0,s.jsx)("p",{className:"text-white font-semibold",children:"\xd6deme alındı"}),(0,s.jsx)("p",{className:"text-sm text-gray-400",children:"seat"===f?"Koltuklarınız a\xe7ılıyor...":"Aboneliğiniz g\xfcncelleniyor..."})]}):"failed"===w||"review"===w?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 gap-4",children:[(0,s.jsx)(o.A,{className:"w-12 h-12 text-rose-400"}),(0,s.jsx)("p",{className:"text-sm text-gray-300 text-center max-w-sm",children:C}),"review"!==w&&(0,s.jsxs)("button",{onClick:P,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl bg-purple-600 hover:bg-purple-500 text-white text-sm font-semibold transition-colors",children:[(0,s.jsx)(u.A,{className:"w-4 h-4"}),"Tekrar Dene"]})]}):(0,s.jsxs)("div",{className:"space-y-3",children:[null!=z&&(0,s.jsxs)("p",{className:"text-xs text-gray-500 text-center",children:["Tahsil edilecek tutar: ",(0,s.jsx)("span",{className:"text-gray-300 font-semibold",children:(0,x.us)(z)})," (KDV dahil)"]}),(0,s.jsx)("iframe",{src:v||"",className:"w-full rounded-xl bg-white",style:{height:620,border:0},allow:"payment"}),(0,s.jsx)("p",{className:"text-[11px] text-gray-600 text-center",children:"\xd6deme PayTR g\xfcvenli altyapısı \xfczerinden alınır; kart bilgileriniz AEXIS sunucularına ulaşmaz."})]})}},97048:(e,t,a)=>{a.d(t,{BillingProvider:()=>u,dp:()=>m,nI:()=>c,us:()=>d});var s=a(95155),l=a(12115),i=a(91337),n=a(93422),r=a(41463);function c(){let e=r.env.NEXT_PUBLIC_BILLING_API_URL;if(e)return e.replace(/\/$/,"");let t=(0,i.e9)();return t.includes("aexistechnologies.ai")?"https://aexis-production-8841.up.railway.app":t.replace(/\/$/,"")}function d(e){return(e/100).toLocaleString("tr-TR",{minimumFractionDigits:2,maximumFractionDigits:2})+" TL"}let o=(0,l.createContext)({status:null,loading:!1,refetch:async()=>{},billingModalOpen:!1,setBillingModalOpen:()=>{}});function u({children:e}){let{activeBrand:t}=(0,n.P)(),[a,r]=(0,l.useState)(null),[d,u]=(0,l.useState)(!1),[m,x]=(0,l.useState)(!1),p=(0,l.useRef)(null),h=(0,l.useCallback)(async()=>{let e=t?.id;if(!e)return void r(null);u(!0);try{let t=await (0,i.MB)(`${c()}/api/billing/subscription-status?brand_id=${e}`);if(t.ok){let a=await t.json();p.current===e&&r(a)}else p.current===e&&r(null)}catch(t){console.error("[BILLING] subscription-status alinamadi:",t),p.current===e&&r(null)}finally{u(!1)}},[t?.id]);return(0,l.useEffect)(()=>{p.current=t?.id||null,h();let e=setInterval(h,3e5);return()=>clearInterval(e)},[t?.id,h]),(0,s.jsx)(o.Provider,{value:{status:a,loading:d,refetch:h,billingModalOpen:m,setBillingModalOpen:x},children:e})}function m(){return(0,l.useContext)(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.