PageSourceSearch

https://panel.winningcircle.io/static/js/4238.2e33e2c5.chunk.js

js winningcircle.io collected 2026-10-05 23:19:18 UTC 7,261 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkwinning_circle_academy_web=self.webpackChunkwinning_circle_academy_web||[]).push([[4238],{44238(e,t,s){s.r(t),s.d(t,{default:()=>y});var a=s(65043),n=s(98975),r=s(4942),i=s(46332),o=s(31136),c=s(5647),l=s(46337),d=s(70579);const u=e=>{let{selectedSubscription:t,newlyRegistered:s=!1}=e;const n=(0,l.w)((e=>e.setSelectedUserSubscription)),{usePayWithCripto:r}=(0,c.A)(),{mutate:i,isLoading:o,isError:u,data:p}=r();return(0,a.useEffect)((()=>{null!==t&&void 0!==t&&t.id&&(n(t),i(t.id))}),[null===t||void 0===t?void 0:t.id]),(0,a.useEffect)((()=>{p&&(window.location.href=null===p||void 0===p?void 0:p.data)}),[p]),(0,d.jsxs)("div",{className:"w-full bg-white dark:bg-card-bg rounded-2xl pt-10 pb-6 shadow-[0px_1px_3px_0px_#606C800D] dark:border dark:border-[rgba(244,244,244,1)] mt-10 flex flex-col",children:[(0,d.jsx)("span",{className:"text-[35px] px-10 mb-4 font-light text-black dark:text-white",children:"Kripto \xd6deme"}),(0,d.jsx)("div",{className:"h-[1px] bg-gray-200 dark:bg-[#7b7b7b] w-full"}),(0,d.jsx)("div",{className:"px-10 py-20 flex items-center justify-center",children:o?(0,d.jsx)("span",{className:"text-lg text-gray-600 dark:text-white",children:"\xd6deme sayfas\u0131na y\xf6nlendiriliyorsunuz..."}):u?(0,d.jsx)("span",{className:"text-lg text-gray-600 dark:text-white",children:"\xd6deme i\u015flemi ba\u015far\u0131s\u0131z oldu. L\xfctfen tekrar deneyin."}):(0,d.jsx)("span",{className:"text-lg text-gray-600 dark:text-white",children:"\xd6deme sayfas\u0131 haz\u0131rlan\u0131yor..."})})]})};var p=s(50639),x=s(45394),m=s(30342);const y=()=>{const[e,t]=(0,a.useState)(!1),s=(0,n.Zp)(),c=(0,n.zy)(),{auth:l}=(0,m.A)();(0,a.useEffect)((()=>{var e;!0===(null===(e=c.state)||void 0===e?void 0:e.fromRegistration)||s(r.A.userPanel,{replace:!0})}),[null===l||void 0===l?void 0:l.accessToken,null===l||void 0===l?void 0:l.user,c.state,s]);const y=(0,p.n)((e=>e.selectedSubscription));return a.useEffect((()=>{y||s(r.A.chooseSubscriptionRegister,{replace:!0})}),[y,s]),y?(0,d.jsxs)("div",{className:"relative min-h-screen flex flex-col justify-between pb-6",children:[(0,d.jsx)("div",{className:"fixed inset-0 bg-wc-new-gray bg-no-repeat bg-center bg-cover -z-10"}),(0,d.jsxs)("div",{className:"relative z-10 flex-1",children:[(0,d.jsx)("div",{className:"mt-10 flex justify-center w-full",children:(0,d.jsxs)("div",{className:"cursor-pointer transition-all duration-500 ease-in-out relative mb-2",onClick:()=>s(r.A.home),onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[(0,d.jsx)("div",{className:"hidden md:block",children:(0,d.jsxs)("div",{className:"relative h-20 flex items-center justify-center w-[200px]",children:[(0,d.jsx)(i.h,{className:"transition-all duration-500 ease-in-out absolute dark:[&_path]:fill-white ".concat(e?"w-7 h-5 translate-x-0 -translate-y-4":"w-16 h-12 translate-x-0 translate-y-0")}),(0,d.jsx)(o.h,{className:"transition-all duration-500 ease-in-out absolute dark:[&_path]:fill-white ".concat(e?"opacity-100 w-52 h-10 translate-y-4":"opacity-0 w-44 h-8 translate-y-6")})]})}),(0,d.jsx)("div",{className:"md:hidden flex justify-center",children:(0,d.jsx)("img",{src:i.A,alt:"WinningCircle",className:"h-12 w-16 dark:invert"})})]})}),(0,d.jsxs)("div",{className:"w-[75%] mx-auto",children:[(0,d.jsx)(u,{selectedSubscription:y,newlyRegistered:!0}),(0,d.jsx)("div",{className:"flex justify-start mt-4",children:(0,d.jsxs)("button",{onClick:()=>{s(r.A.selectPatymentMethodRegister,{state:{fromRegistration:!0}})},className:"bg-about-us-button-bg dark:bg-button-dark-gradient rounded-lg px-6 py-3 flex items-center text-wc-green dark:text-black font-bold text-[14px] hover:scale-[1.02] transition-all duration-300",children:[(0,d.jsx)(x.zBw,{className:"text-wc-green dark:text-black p-0 mr-1 rotate-180"}),"Geri"]})})]})]}),(0,d.jsx)("div",{className:"text-center mt-auto pt-4 text-wc-green dark:text-gold-color text-sm",children:"#winningcircle | BORNTOWIN"})]}):null}},5647(e,t,s){s.d(t,{A:()=>u});var a=s(19073),n=s(1349),r=s(47640),i=s(63248),o=s(47097),c=s(46474),l=s(52613),d=s(9498);const u=()=>{const e=(0,a.A)(),t=(0,i.jE)(),{showToast:s}=(0,n.d)();return{useGetStudentSubscription:()=>(0,r.I)({queryKey:["StudentSubscription"],queryFn:async()=>{const t=await c.A.fetchData({endpointURL:l.A.getStudentSubscription,axiosPrivate:e});return(0,d.s)({response:t})}}),useGetPaymentMethods:()=>(0,r.I)({queryKey:["PaymentMethods"],queryFn:async()=>{const t=await c.A.fetchData({endpointURL:l.A.getPaymentMethods,axiosPrivate:e});return(0,d.s)({response:t})}}),usePayWithCripto:()=>(0,o.n)({mutationFn:async t=>{const s=await c.A.fetchData({endpointURL:l.A.payWithCripto,axiosPrivate:e,httpParams:{subscriptionId:t}}
1);return(0,d.s)({response:s})}}),usePayWithCard:t=>(0,r.I)({queryKey:["PayWithCard"],queryFn:async()=>{const s=await c.A.fetchData({endpointURL:l.A.payWithCard,axiosPrivate:e,httpParams:{subscriptionId:t}});return(0,d.s)({response:s})}}),useGetSubscriptionPaymentMethod:()=>(0,r.I)({queryKey:["SubscriptionPaymentMethod"],queryFn:async()=>{const t=await c.A.fetchData({endpointURL:l.A.getSubscriptionPaymentMethod,axiosPrivate:e});return(0,d.s)({response:t})}}),useCancelSubscription:()=>(0,o.n)({mutationFn:async()=>{const t=await c.A.putData({endpointURL:l.A.cancelSubscription,axiosPrivate:e});return(0,d.s)({response:t})},onSuccess:()=>{s("Abonelik iptal edildi"),t.invalidateQueries({queryKey:["StudentSubscription"]})},onError:e=>{s((0,d.H)({error:e}).errorMessage,"error")}}),useCreateSubscriptionWithCard:()=>(0,o.n)({mutationFn:async(t,s)=>{const a=await c.A.putData({endpointURL:l.A.createSubscriptionWithCard,axiosPrivate:e,params:{subscriptionId:t,paymentMethodId:s}});return(0,d.s)({response:a})},onSuccess:()=>{s("Abonelik iptal edildi")},onError:e=>{s((0,d.H)({error:e}).errorMessage,"error")}}),useUpdateSubscriptionPaymentMethod:()=>(0,o.n)({mutationFn:async t=>{const s=await c.A.putData({endpointURL:l.A.updateSubscriptionPaymentMethod,axiosPrivate:e,params:{paymentMethodId:t}});return(0,d.s)({response:s})},onSuccess:()=>{s("Abonelik iptal edildi")},onError:e=>{s((0,d.H)({error:e}).errorMessage,"error")}}),useGetInvoices:()=>(0,r.I)({queryKey:["Invoices"],queryFn:async()=>{const t=await c.A.fetchData({endpointURL:l.A.getInvoices,axiosPrivate:e});return(0,d.s)({response:t})}}),useSaveDiscountCode:()=>(0,o.n)({mutationFn:async t=>{const s=await c.A.putData({endpointURL:l.A.saveDiscountCode,axiosPrivate:e,params:{reference:t}});return(0,d.s)({response:s})},onSuccess:()=>{s("\u0130ndirim kodu ba\u015far\u0131yla kaydedildi")},onError:e=>{s((0,d.H)({error:e}).errorMessage,"error")}})}}},50639(e,t,s){s.d(t,{n:()=>a});const a=(0,s(4131).v)((e=>({selectedSubscription:null,registrationStep:"subscription",isInstallmentPayment:!1,setSelectedSubscription:t=>e({selectedSubscription:t}),setRegistrationStep:t=>e({registrationStep:t}),setIsInstallmentPayment:t=>e({isInstallmentPayment:t}),reset:()=>e({selectedSubscription:null,registrationStep:"subscription",isInstallmentPayment:!1})})))},46337(e,t,s){s.d(t,{w:()=>a});const a=(0,s(4131).v)((e=>({selectedUserSubscription:null,setSelectedUserSubscription:t=>e({selectedUserSubscription:t}),reset:()=>e({selectedUserSubscription:null})})))}}]);
2//# sourceMappingURL=4238.2e33e2c5.chunk.js.map

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.