PageSourceSearch

https://5degree.co/static/js/188.b85451e6.chunk.js

js 5degree.co collected 2026-09-29 09:34:58 UTC 2,793 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[188],{993:function(e,o,t){"use strict";t.r(o),t.d(o,"default",function(){return s});var n=t(0),a=t.n(n),d=t(12),l=t(21),r=t(38),i=t(14),c=t(2),u=t(11);function s(){const e=Object(d.d)(e=>e.checkoutReducer),[o,t]=Object(n.useState)(),s=Object(d.c)(),v=Object(n.useRef)({});Object(n.useEffect)(()=>{let e=null;v.current={};let o=null;const n=new URLSearchParams(window.location.search).get("payload");if(n){const t=n?JSON.parse(window.atob(n)):null;console.log("decryptedPayload =====> ",t),e=t,v.current=t||{},(null===t||void 0===t?void 0:t.merchant_payload)?(o=t?JSON.parse(window.atob(null===t||void 0===t?void 0:t.merchant_payload)):{},console.log("Decrypted merchantPayload: ",o)):console.error("Failed to decrypt payload")}return!e||e.error?(Object(i.a)("Payment not verified"),m("/cart",o)):t(o),()=>{s(Object(l.o)())}},[]),Object(n.useEffect)(()=>{o&&y()},[o]),Object(n.useEffect)(()=>{var t;if(e.paymentData&&o)if(console.warn(e.paymentData,{partnerPaymentData:o},"simple"),"success"===(null===e||void 0===e?void 0:null===(t=e.paymentData)||void 0===t?void 0:t.status)){var n,a;let t=(null===e||void 0===e?void 0:null===(n=e.paymentData)||void 0===n?void 0:n.data)||{};t.txnId=null===e||void 0===e?void 0:null===(a=e.paymentData)||void 0===a?void 0:a.txnId,p({},null===o||void 0===o?void 0:o.orderID,t)}else Object(i.a)("Payment not verified"),m("/cart")},[null===e||void 0===e?void 0:e.paymentData]);const p=function(){var e;let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=c.PAYMENT_METHOD_SIMPL;o.isPromo&&(n=o.isPromo);let a=(null===t||void 0===t?void 0:null===(e=t.payload)||void 0===e?void 0:e.redirectData)||"";m(`${`/payment${o.oHash?"/"+o.oHash:""}`}?paymentMethod=${n}&txnID=${t.txnId||""}&orderID=${arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}&postData=${a}&postUri=${t.url||""}`)},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.location.href=`https://${(null===t||void 0===t?void 0:t.domain)||(null===o||void 0===o?void 0:o.domain)}${e}`},y=()=>{var e,t;console.log("INSIde initiate payment call============",v.current);let n=Object(u.o)(),a={orderID:o.orderID,paymentMethod:c.PAYMENT_METHOD_SIMPL,merchantID:o.merchantID,deviceType:n.OSName,browserType:n.BrowserName,userAgent:n.userAgent,phone:o.phone,source:o.nonClusterSaleType===c.SALE_TYPE_SUBSCRIPTION?"subscription":"dotpe",accessToken:null===v||void 0===v?void 0:null===(e=v.current)||void 0===e?void 0:e.token};(null===(t=o.paymentPromoObj)||void 0===t?void 0:t.promoCode)&&(a.promoCode=o.paymentPromoObj.promoCode),h(a)},h=e=>{e.merchantName=o.merchantName,o.isPromo&&(e.paymentMethod=o.isPromo),s(Object(l.n)(e))};return a.a.createElement("div",null,a.a.createElement(r.default,null))}}}]);

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.