PageSourceSearch

https://samugiken.com/_next/static/chunks/pages/payment/return-2711f93f44c6c8fd.js

js samugiken.com collected 2026-10-07 01:51:27 UTC 2,613 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7579],{65434:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/payment/return",function(){return n(4058)}])},5409:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(15989),a=n(39771),o=n(91340);let c=r.Z.create({baseURL:a.T5+"/api",headers:{"Content-Type":"application/json"},withCredentials:!0});c.interceptors.request.use(e=>{if((0,o.rD)()){let t=(0,o.Zd)();t&&(e.headers=e.headers||{},e.headers["x-session-id"]=t)}else e.headers&&e.headers["x-session-id"]&&delete e.headers["x-session-id"];return e});let i=r.Z.create({baseURL:a.T5+"/api",headers:{"Content-Type":"multipart/form-data"},maxContentLength:1/0,maxBodyLength:1/0,withCredentials:!0});t.Z=c},4058:function(e,t,n){"use strict";n.r(t);var r=n(52676),a=n(75271),o=n(33561),c=n(6443);t.default=()=>{let e=(0,o.useRouter)();return(0,a.useEffect)(()=>{let t=async()=>{let t=e.query.orderid;try{let n=await (0,c.j)({orderid:t}).then(e=>e.data),r=encodeURIComponent(n.orderRefId),a=encodeURIComponent(n.orderCode||"");"CONFIRMED"===n.status||"SUCCESS"===n.paymentStatus?e.replace("/payment/success?orderRef=".concat(r,"&order=").concat(a)):(n.paymentStatus,e.replace("/payment/failed?orderRef=".concat(r,"&order=").concat(a)))}catch(t){e.replace("/payment/failed")}};e.isReady&&t()},[e.isReady]),(0,r.jsx)("div",{className:"flex items-center justify-center h-[60vh]",children:"Processing payment..."})}},6443:function(e,t,n){"use strict";n.d(t,{j:function(){return o},y:function(){return a}});var r=n(5409);async function a(e){return await r.Z.post("/payment/init/".concat(e))}async function o(e){let t=new URLSearchParams;return e.orderid&&t.set("orderid",e.orderid),await r.Z.get("/payment/return?".concat(t.toString()))}},91340:function(e,t,n){"use strict";n.d(t,{Zd:function(){return o}
1,hv:function(){return i},rD:function(){return s},wN:function(){return c}});let r="session_id",a="session_header_enabled";function o(){try{let e=localStorage.getItem(r);if(e&&e.length>0)return e;let t="undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():u();return localStorage.setItem(r,t),t}catch(e){return u()}}function c(){try{localStorage.setItem(a,"1")}catch(e){}}function i(){try{localStorage.setItem(a,"0"),localStorage.removeItem(r)}catch(e){}}function s(){try{return"1"===localStorage.getItem(a)}catch(e){return!1}}function u(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}},function(e){e.O(0,[5989,2888,9774,179],function(){return e(e.s=65434)}),_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.