PageSourceSearch

https://airkaman.com/_next/static/chunks/pages/shield-proxy-creditcard-8b272f1f182dd487.js

js airkaman.com collected 2026-10-09 03:31:56 UTC 11,763 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5328],{6939:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(37876),n=a(42008),o=a(63320),i=a.n(o);let s=e=>{let{children:t,embedded:a=!1}=e;return(0,r.jsx)(n.A,{className:a?i().embedContainer:i().container,children:t})}},17177:(e,t,a)=>{"use strict";a.d(t,{Jr:()=>r,zl:()=>n});let r=e=>(e=>!!e&&(e.includes("localhost")||e.includes("127.0.0.1")||e.includes("0.0.0.0")||e.startsWith("192.168.")||e.startsWith("10.")||e.startsWith("172.")))(e)?"http":"https",n=e=>{let t=r(e);return"".concat(t,"://").concat(e)}},28996:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/shield-proxy-creditcard",function(){return a(39233)}])},30672:(e,t,a)=>{"use strict";a.d(t,{EG:()=>c,Qk:()=>p,e$:()=>s,jR:()=>l});var r=a(17177);let n="SHIELD_READY",o="SHIELD_INIT_DATA",i="SHIELD_REQUEST_CHECKOUT_DATA",s=(e,t)=>{try{let a="".concat(JSON.stringify(e||{}),"|").concat(JSON.stringify(t||[])),r=0;for(let e=0;e<a.length;e++)r=Math.imul(r,31)+a.charCodeAt(e)|0;return(r>>>0).toString(36)}catch(e){return"0"}},p=(e,t,a,r)=>{if(!e||!e.data)return!1;let s=e.data.type;if(s!==n&&s!==i)return!1;let p=t&&t.contentWindow;if(!p)return!0;try{p.postMessage({type:o,formData:r?r.formData:void 0,cartItems:r?r.cartItems:void 0},a||"*")}catch(e){}return!0},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8e3;return new Promise((a,n)=>{let s=e?"".concat((0,r.Jr)(e),"://").concat(e):null,p=!1,c=setTimeout(()=>{p||(p=!0,window.removeEventListener("message",l),n(Error("Timeout waiting for checkout data from parent")))},t),l=e=>{if(e.source!==window.parent||s&&e.origin!==s)return;let t=e.data;t&&t.type===o&&!p&&(p=!0,clearTimeout(c),window.removeEventListener("message",l),a({formData:t.formData||{},cartItems:t.cartItems||[]}))};window.addEventListener("message",l);try{window.parent.postMessage({type:i},s||"*")}catch(e){p=!0,clearTimeout(c),window.removeEventListener("message",l),n(e)}})},l=e=>{let t=()=>{},a=!1,i=new Promise(e=>{t=e}),s=e?"".concat((0,r.Jr)(e),"://").concat(e):null,p=e=>{if(e.source!==window.parent||s&&e.origin!==s)return;let r=e.data;r&&r.type===o&&!a&&(a=!0,t({formData:r.formData||{},cartItems:r.cartItems||[]}))};{window.addEventListener("message",p);let e=0,t=()=>{if(!a){try{window.parent.postMessage({type:n},s||"*")}catch(e){}(e+=1)<80&&setTimeout(t,250)}};t()}return{promise:i,destroy:()=>{window.removeEventListener("message",p)}}}},39233:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>h});var r=a(37876),n=a(14232),o=a(89099),i=a(77328),s=a.n(i),p=a(42008),c=a(6939),l=a(45102),d=a(63320),m=a.n(d),u=a(83570),y=a(30672);let h=()=>{let e=(0,o.useRouter)(),t=(0,n.useRef)(),{client_id:a,totalPrice:i,formData:d,cartItems:h,shield_domain:g,shield_encrypted:w,shipping_cost:f,prefix:_,query:P,conversion_label:E,adsid:x,isFormValid:v,storename:b,urlParams:D,coupon:C,discount:R,free_shipping:O,protect:A,call:S}=e.query;return(0,n.useEffect)(()=>{if(!a||!i)return void console.error("Missing required parameters: client_id or totalPrice");let e=(0,y.jR)(b),r=async()=>{if(h&&"undefined"!==h&&"null"!==h){let e={},t=[];try{e=d&&"undefined"!==d&&"null"!==d?JSON.parse(d):{}}catch(t){e={}}try{t=JSON.parse(h)}catch(e){t=[]}return{formData:e,cartItems:t}}return e.promise},n=document.createElement("script");return n.src="https://www.paypal.com/sdk/js?client-id=".concat(a,"&currency=USD&intent=capture"),n.async=!0,n.onload=()=>{if(!window.paypal||!t.current)return void console.error("PayPal SDK not available or container not ready");t.current.innerHTML="";let e=window.paypal.Buttons({fundingSource:"card",createOrder:async()=>{if("false"===v)throw window.parent.postMessage({type:"FORM_VALIDATION_ERROR",message:"Please complete all required fields before proceeding with payment."},"*"),Error("Form validation failed");try{let e=await r(),t=e.formData||{},a=e.cartItems||[];if(!i||0>=parseFloat(i))throw window.parent.postMessage({type:"FORM_VALIDATION_ERROR",message:"Invalid order amount. Please check your cart."},"*"),Error("Invalid order amount");if(!g||!w)throw window.parent.postMessage({type:"FORM_VALIDATION_ERROR",message:"Payment c
1onfiguration error. Please refresh the page."},"*"),Error("Missing payment configuration");let n=await fetch((0,u.Yi)("paypal/create-order"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:parseFloat(i),formData:t,cartItems:a,shield_domain:g,shield_encrypted:w,storename:b||window.location.hostname,shipping_cost:parseFloat(f||0),prefix:_,params:D||"",coupon:C||"",discount:parseFloat(R||0),free_shipping:"true"===O,protect:"true"===A,call:"true"===S})}),o=await n.json();if(!o.success)throw Error(o.message||"Order creation failed");let{orderID:s,paypal_id:p}=o;return p}catch(e){throw console.error("Error creating order:",e),e}},onApprove:async e=>{try{let t=await fetch((0,u.Yi)("paypal/capture-order"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paypal_id:e.orderID,shield_encrypted:w})}),a=await t.json();window.parent.postMessage({type:"PAYPAL_SUCCESS",data:a,orderID:a.order_id||e.orderID},"*")}catch(t){console.error("Error capturing payment:",t);try{(await fetch((0,u.Yi)("paypal/update-payment-status"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({orderID:e.orderID,status:"failed",paypalDetails:{status:"failed",message:JSON.stringify({name:"CAPTURE_ERROR",details:[{field:"payment_capture",location:"server",issue:t.message||"Unknown error",description:"Payment capture failed during processing"}],message:t.message||"Payment capture error occurred",debug_id:Date.now().toString()})}})})).ok&&console.log("Payment status updated to failed after capture error")}catch(e){console.error("Failed to update payment status after capture error:",e)}window.parent.postMessage({type:"PAYPAL_ERROR",error:t,userMessage:"Payment processing failed. Please try again."},"*")}},onError:async e=>{console.error("PayPal Error:",e);let t="Payment processing error. Please try again in a few seconds.";e.message&&e.message.includes("PAYEE_ACCOUNT_RESTRICTED")?t="Payment system is temporarily unavailable. Please try again in a few minutes or contact support.":e.message&&e.message.includes("Order creation failed")?t="Unable to process payment at the moment. Please wait a few seconds and try again.":e.message&&e.message.includes("Network")&&(t="Connection error. Please check your internet and try again.");try{e.orderID&&(await fetch((0,u.Yi)("paypal/update-payment-status"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({orderID:e.orderID,status:"failed",paypalDetails:{status:"failed",message:JSON.stringify({name:"PAYPAL_ERROR",details:[{field:"payment_processing",location:"client",issue:e.message||"Unknown error",description:e.message||"Payment processing failed"}],message:e.message||"Payment processing error occurred",debug_id:Date.now().toString()})}})})).ok&&console.log("Payment status updated to failed")}catch(e){console.error("Failed to update payment status:",e)}window.parent.postMessage({type:"PAYPAL_ERROR",error:e,userMessage:t},"*")},onCancel:async e=>{console.log("Payment cancelled by user");try{e.orderID&&(await fetch((0,u.Yi)("paypal/update-payment-status"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({orderID:e.orderID,status:"cancelled",paypalDetails:{status:"cancelled",message:JSON.stringify({name:"USER_CANCELLED",details:[{field:"payment_flow",location:"client",issue:"USER_CANCELLED",description:"Payment was cancelled by the user"}],message:"Payment was cancelled by the user",debug_id:Date.now().toString()})}})})).ok&&console.log("Payment status updated to cancelled")}catch(e){console.error("Failed to update payment status:",e)}window.parent.postMessage({type:"PAYPAL_CANCELLED",message:"Payment was cancelled by the user"},"*")}});if(e.isEligible()){e.render(t.current),setTimeout(()=>{let e=t.current.querySelector("div");e&&e.classList.add(m().paypalButton)},100);let a=new ResizeObserver(e=>{for(let t of e){let e=t.contentRect.height;e>0&&window.parent.postMessage({type:"RESIZE_IFRAME",height:Math.max(e+40,200)},"*")}});return t.current&&a.observe(t.current),()=>{a.disconnect()}}console.error("PayPal button is not eligible")},n.onerror=()=>{console.error("Failed to load PayPal SDK")},document.head.appendChild(n),()=>{e.destroy(),n.parentNode&&n.parentNode.removeChild(n)}},[a,i,d,h,g,w,f,_,P,D,v,b,C,R,O,A,S]),(0,r.jsxs)(c.A,{children:[(0,r.jsx)(l.A,{}),(0,r.jsxs)(s(),{children:[(0,r.jsx)("title",{children:"PayPal Payment"}),(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,r.jsx)(p.A,{ref:t,className:m().paypalContainer})]})}},45102:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var r=a(37876),n=a(75961),o=a.n(n),i=a(77328),s=a.n(i);let p=e=>{let{embedded:t=!1}=e;return(0,r.jsx)(s(),{children:(0,r.jsx)(o(),{id:"b6458549a2c2a68c",dynamic:["0",t?"visible":"hidden",t?"visible":"hidden",t?"100%":"100vw",t?"none":"100vw",t?"100%":"auto",t?"auto":"100vh",t?"\n                #alphax-payment,\n                #alphax-payment > div,\n                .alphaxContainer {\n                    width: 100% !important;\n                    max-width: none !important;\n                    min-width: 100% !important;\n                    margin: 0 !important;\n                    overflow: visible !important;\n                }\n\n                #alphax-payment iframe,\n                .alphaxContainer iframe {\n                    width: 100% !important;\n                    max-width: none !important;\n                    min-width: 100% !important;\n                    min-height: 780px !important;\n                    height: 780px !important;\n                    margin: 0 !important;\n                    border: none !important;\n                }\n                ":"",t?"auto":"none"],children:"html,body{margin:0!important;padding:".concat("0","!important;background:transparent!important;overflow-x:").concat(t?"visible":"hidden","!important;overflow-y:").concat(t?"visible":"hidden","!important;width:").concat(t?"100%":"100vw","!important;max-width:").concat(t?"none":"100vw","!important;min-height:").concat(t?"100%":"auto","!important;height:").concat(t?"auto":"100vh","!important;box-sizing:border-box!important}").concat(t?"\n                #alphax-payment,\n                #alphax-payment > div,\n                .alphaxContainer {\n                    width: 100% !important;\n                    max-width: none !important;\n                    min-width: 100% !important;\n                    margin: 0 !important;\n                    overflow: visible !important;\n                }\n\n                #alphax-payment iframe,\n                .alphaxContainer iframe {\n                    width: 100% !important;\n                    max-width: none !important;\n                    min-width: 100% !important;\n                    min-height: 780px !important;\n                    height: 780px !important;\n                    margin: 0 !important;\n                    border: none !important;\n                }\n                ":""," ::-webkit-scrollbar{display:").concat(t?"auto":"none","!important}iframe{border:none!important;outline:none!important;margin:0!important;padding:0!important}")})})}},63320:e=>{e.exports={container:"Proxy_container__KVWUp",paypalContainer:"Proxy_paypalContainer__PbunF",paypalButton:"Proxy_paypalButton__0oQAB",airwallexContainer:"Proxy_airwallexContainer__5_pUO",embedContainer:"Proxy_embedContainer__bbzX9",stripeContainer:"Proxy_stripeContainer__cgsxH",alphaxContainer:"Proxy_alphaxContainer__AmFuh","alphax-payment":"Proxy_alphax-payment__WGDRX"}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=28996)),_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.