PageSourceSearch

https://s.gfactory.ai/_next/static/chunks/1834.7014fb57eb156601.js

js gfactory.ai collected 2026-10-05 14:25:22 UTC 2,203 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1834],{41834:(o,e,l)=>{l.r(e),l.d(e,{useCoupangAdMediation:()=>r});var a=l(12115),t=l(27734);function r(o){let[e,l]=(0,a.useState)(null),[r,n]=(0,a.useState)(!1),[u,c]=(0,a.useState)(null),[s,d]=(0,a.useState)(!1),{deviceADID:i="F71EF832-7DE0-4848-8C29-429107F5F767",subId:p="CommonSense",onAdLoaded:g,onAdError:f,onAdClick:h,onImpression:C}=o,k=(0,a.useCallback)(async()=>{if(r)return;let o=localStorage.getItem("coupang_last_load_".concat(i));if(o){let e=Date.now()-parseInt(o);if(e<72e5){let o=Math.ceil((72e5-e)/6e4),l="쿠팡 광고 2시간 제한 (".concat(o,"분 후 재시도 가능) - noAd 처리");console.log("\uD83D\uDED2 2시간 제한 - noAd 처리:",l),c(l),null==f||f(l),n(!1);return}}n(!0),c(null),l(null);try{console.log("\uD83D\uDED2 Loading Coupang product (API 라우트):",{deviceADID:i});let o=await (0,t.p)({deviceADID:i,subId:p});if(o)if(Array.isArray(o)?o.length>0&&o[0].productUrl:o.productUrl){l(o),d(!0),localStorage.setItem("coupang_last_load_".concat(i),Date.now().toString()),console.log("\uD83D\uDED2 Coupang last load time saved for deviceADID:",i),console.log("\uD83D\uDED2 Coupang product loaded successfully:",o),null==g||g(o);let e=new URL(window.location.href);e.searchParams.set("fake","1"),window.history.pushState({},"",e.toString()),console.log("\uD83D\uDED2 History pushed for app back button handling"),console.log("\uD83D\uDED2 [Hook] 임프레션 호출"),null==C||C(o)}else throw Error("No product URL available");else throw Error("No product data received")}catch(e){console.error("\uD83D\uDED2 Coupang product load error:",e);let o=e instanceof Error?e.message:"쿠팡 상품 로드 중 오류가 발생했습니다";c(o),null==f||f(o)}finally{n(!1)}},[i,p,r,g,f,C]),w=(0,a.useCallback)(o=>{console.log("\uD83D\uDED2 Coupang product clicked:",o.productUrl),o.productUrl&&(window.open(o.productUrl,"_blank","noopener,noreferrer"),null==h||h(o))},[h]),b=(0,a.useCallback)(()=>{l(null),c(null),d(!1)},[]),_=(0,a.useCallback)(()=>{e&&d(!0)},[e]);return{products:e,loading:r,error:u,isModalOpen:s,loadAd:k,clickAd:w,clearAd:b,showModal:_,hideModal:(0,a.useCallback)(()=>{d(!1)},[])}}}}]);

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.