PageSourceSearch

https://cdn.transferwatcher.com/_next/static/chunks/1087.d5ebe9be329349a9.js

js transferwatcher.com collected 2026-10-02 21:37:13 UTC 5,836 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1087],{49499:(e,t,r)=>{r.d(t,{sH:()=>u,Z2:()=>s}),r(95010);var n=r(95155),o=r(92129),l=r(12115);let c=(0,l.createContext)({}),u=e=>{let{children:t,recaptchaSiteKey:r,anonymousComment:u,canLoginByGoogle:s,canLoginByFacebook:a,customFieldsEnabled:i=!1,tenant:d,frontendDomain:f,timezone:m,subscriptionEnabled:b=!1}=e,[p,h]=(0,l.useState)(),[S,g]=(0,l.useState)(""),[v,w]=(0,l.useState)(!1),[y,I]=(0,l.useState)(!1),[_,k]=(0,l.useState)("A"),[C,P]=(0,l.useState)("");(0,l.useEffect)(()=>{let e=localStorage.getItem("".concat(d,"-user"));e&&"undefined"!==e&&h(JSON.parse(e)),A(),E()},[]);let E=()=>{let e=localStorage.getItem("group"),t=e||"A";e||(t=(0,o.S5)(),localStorage.setItem("group",t)),k(t)},A=()=>{let e=window.localStorage.getItem("visitor");e||(e=Math.random().toString(),window.localStorage.setItem("visitor",e)),g(e)};return(0,n.jsx)(c.Provider,{value:{timezone:m,isAnonymous:v,setIsAnonymous:w,visitor:S,recaptchaToken:C,setRecaptchaToken:P,userData:p,setUserData:h,showAuthModal:y,setShowAuthModal:I,recaptchaSiteKey:r,anonymousComment:u,canLoginByGoogle:s,canLoginByFacebook:a,customFieldsEnabled:i,abGroup:_,tenant:d,frontendDomain:f,subscriptionEnabled:b},children:t})},s=()=>(0,l.useContext)(c)},71087:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var n=r(95155),o=r(12115),l=r(4085),c=r(49499),u=r(34786);let s="transferwatcher.com",a={entitlements:[],subscriptions:[],subscribedProductIds:[]};var i=r(39918);let d=e=>{let{children:t,paymentProviderConfig:r}=e,d=(e=>{let{userData:t,isAnonymous:r}=(0,c.Z2)(),[n,i]=(0,o.useState)(a),d=e.paywallActive,f=e.canSell,[m,b]=(0,o.useState)(d),[p,h]=(0,o.useState)(!1),[S,g]=(0,o.useState)(!1),[v,w]=(0,o.useState)(null),[y,I]=(0,o.useState)([]),[_,k]=(0,o.useState)(!1),C=(0,o.useRef)(!1),P=(0,o.useRef)(!1),E=(0,o.useRef)(0),A=(0,o.useCallback)(async e=>{try{let t=await (0,u.m_)();if(E.current!==e)return;let r=null!=t?t:a;i(r),(e=>{try{let t=localStorage.getItem("".concat(s,"-user"));if(!t||"undefined"===t)return;let r=JSON.parse(t);r&&"object"==typeof r&&(r.entitlements=e.entitlements,r.subscribedProductIds=e.subscribedProductIds,localStorage.setItem("".concat(s,"-user"),JSON.stringify(r)))}catch(e){}})(r),C.current=!0}catch(t){if(E.current!==e)return;console.error("Failed to fetch subscription entitlements:",t),w((0,l.p)("common:subscription.errors.load_status")),i(a)}finally{E.current===e&&(b(!1),P.current=!1)}},[]);(0,o.useEffect)(()=>{if(E.current+=1,C.current=!1,P.current=!1,i(a),!d){b(!1),w(null);return}if(r||!t)return void b(!1);let e=E.current;P.current=!0,b(!0),w(null),A(e)},[t,r,d,A]),(0,o.useEffect)(()=>{if("undefined"==typeof document)return;let e=n.entitlements.includes("ad_free");document.documentElement.classList.toggle("paid-user",e)},[n.entitlements]);let N=(0,o.useCallback)(async()=>{if(!d){b(!1),w(null);return}if(r||!t)return void b(!1);if(C.current||P.current)return;P.current=!0;let e=E.current;b(!0),w(null),await A(e)},[r,d,t,A]),x=(0,o.useCallback)(async()=>{if(!d){b(!1),w(null);return}if(r||!t)return void b(!1);C.current=!1,P.current=!0;let e=E.current;b(!0),w(null),await A(e)},[r,d,t,A]),U=(0,o.useCallback)(async()=>{if(f&&e.accountId){k(!0);try{let e=await (0,u.Sn)();I(e)}catch(e){console.error("Failed to fetch products:",e),I([])}finally{k(!1)}}},[f,e.accountId]),j=(0,o.useCallback)(async(n,o)=>{if(!f||!e.accountId)return void w((0,l.p)("common:subscription.errors.not_configured"));if(!n||!o)return void w((0,l.p)("common:subscription.errors.select_plan"));if(r||!t)return void w((0,l.p)("common:subscription.errors.login_to_subscribe"));h(!0),w(null);try{let e=await (0,u.fw)(n,o);if(null==e?void 0:e.checkoutUrl)window.location.href=e.checkoutUrl;else throw Error((0,l.p)("common:subscription.errors.no_checkout_url"))}catch(e){var c,s;console.error("Checkout failed:",e),w((null==e||null==(s=e.data)||null==(c=s.metaData)?void 0:c.message)||(0,l.p)("common:subscription.errors.start_checkout"))}finally{h(!1)}},[f,e.accountId,r,t]),J=(0,o.useCallback)(async()=>{if(!d||!e.accountId)return void w((0,l.p)("common:subscription.errors.not_configured"));if(r||!t)return void w((0,l.p)("common:subscription.errors.login_to_manage"));g(!0),w(null);try{let e=await (0,u.VK)();if(null==e?void 0:e.portalUrl)window.location.href=e.portalUrl;else throw Error((0,l.p)("common:subscription.errors.no_portal_url"))}catch(e){var n,o;console.error("Portal session failed:",e),w((null==e||null==(o=e.data)||null==(n=o.metaData)?void 0:n.message)||(0,l.p)("common:subscription.errors.open_management"))}finally{g(!1)}},[d,e.accountId,r,t]),M=(0,o.useCallback)(e=>n.entitlements.includes(e),[n.entitlements]),O=(0,o.useCallback)(e=>n.subscribedProductIds.includes(e),[n.subscribedProductIds]);return{me:n,paymentProviderConfig:e,isStatusLoading:m,isCheckoutLoading:p,isPortalLoading:S,error:v,entitlements:n.entitlements,subscribedProductIds:n.subscribedProductIds,hasEntitlement:M,isSubscribedToProduct:O,paywallActive:d,canSell:f,isSubscriptionEnabled:d,ensureStatusLoaded:N,refreshSubscriptionStatus:x,products:y,loadingProducts:_,fetchProducts:U,startCheckout:j,openCustomerPortal:J}})(r);return(0,n.jsx)(i.h9.Provider,{value:d,children:t})}},92129:(e,t,r)=>{r.d(t,{S5:()=>c,cn:()=>s,ro:()=>u});var n=r(34786),o=r(42228),l=r(26888);function c(){return["A","B"][Math.floor(2*Math.random())]}async function u(e){let{scope:t,offset:r,paginationPageSize:o,scopeData:l="get",isSticky:c,exclude_tags_id:u,page:s=0,withContent:a,displayPage:i,tenantId:d}=e;try{let{data:e}=await (0,n.XC)(t,l,s,{isSticky:c,exclude_tags_id:u,offset:r,paginationPageSize:o,withContent:a,displayPage:i},d||"transferwatcher.com");return e.data}catch(e){return console.log(e),[]}}function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,o.$)(t))}}}]);

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.