PageSourceSearch

https://www.helloarchive.co.kr/_next/static/chunks/pages/logout-bdf515b509d42150a165.js

js helloarchive.co.kr collected 2026-10-02 17:18:08 UTC 2,798 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[765],{87908:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return d}});var o=r(85893),n=r(809),a=r.n(n),c=r(92447),s=r(11163),l=r(67294),i=r(9669),u=r.n(i),v=r(83983),d=!0;t.default=function(e){var t=e.redirectUrl,r=(0,s.useRouter)(),n=(0,l.useRef)(null);return(0,l.useEffect)((function(){var e=function(){var e=(0,c.Z)(a().mark((function e(){var t,r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!1,e.prev=1,e.next=4,u().get("".concat("https://m.helloarchive.co.kr","/uls/"));case 4:return r=e.sent,e.next=7,u().get("".concat("https://m.helloarchive.co.kr","/logout-bridge"));case 7:o=e.sent,t=200===r.status&&200===o.status,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t=!1;case 14:return e.abrupt("return",t);case 15:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(){return e.apply(this,arguments)}}(),o=n.current,s=function(){o.contentWindow.postMessage("logout","".concat("https://m.helloarchive.co.kr"))},l=function(e){if(e.origin==="".concat("https://m.helloarchive.co.kr")&&"success"===JSON.parse(e.data).result){var o,n;localStorage.removeItem("ynat-ps"),localStorage.removeItem("ynau-ps"),localStorage.removeItem("ynac"),sessionStorage.clear(),localStorage.setItem("cart","remove"),localStorage.setItem("sessionStorage","clear"),localStorage.removeItem("sessionStorage");var a=decodeURIComponent(t||(null===(o=r.query)||void 0===o?void 0:o.redirectUrl));if((t||null!==(n=r.query)&&void 0!==n&&n.redirectUrl)&&(0,v.JW)(a)){var c=(0,v.ry)(a);window.location.href=c}else r.replace("/")}};return(0,c.Z)(a().mark((function n(){var c,i,u,d;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e();case 2:n.sent?o&&r&&(o.src="".concat("https://m.helloarchive.co.kr","/logout-bridge"),o.addEventListener("load",s),window.addEventListener("message",l)):(localStorage.removeItem("ynat-ps"),localStorage.removeItem("ynau-ps"),localStorage.removeItem("ynac"),sessionStorage.clear(),localStorage.setItem("cart","remove"),localStorage.setItem("sessionStorage","clear"),localStorage.removeItem("sessionStorage"),u=decodeURIComponent(t||(null===(c=r.query)||void 0===c?void 0:c.redirectUrl)),(t||null!==(i=r.query)&&void 0!==i&&i.redirectUrl)&&(0,v.JW)(u)?(d=(0,v.ry)(u),window.location.href=d):r.replace("/"));case 4:case"end":return n.stop()}}),n)})))(),function(){o.removeEventListener("load",s),window.removeEventListener("message",l)}}),[n,r,t]),(0,o.jsx)("iframe",{style:{visibility:"hidden",height:"1px"},title:"mobile-page",ref:n})}},84803:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/logout",function(){return r(87908)}])}},function(e){e.O(0,[9774,2888,179],(function(){return t=84803,e(e.s=t);var t}));var t=e.O();_N_E=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.