PageSourceSearch

https://linkid.pw/_next/static/chunks/pages/help/chat-9d5a628fdda64ace.js

js linkid.pw collected 2026-10-06 03:57:46 UTC 3,122 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92999],{75503:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/help/chat",function(){return n(47383)}])},47383:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return h},default:function(){return ChatPage}});var r=n(85893),i=n(82729),o=n(43926),s=n(83074),c=n(11163),a=n(67294),l=n(41686);function _templateObject(){let e=(0,i._)(["\n  position: fixed;\n  inset: 0;\n  z-index: 31;\n  width: 100%;\n  height: 100%;\n  border: 0;\n  background-color: ",";\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,i._)(["\n  position: fixed;\n  inset: 0;\n  z-index: 30;\n  background-color: ",";\n"]);return _templateObject1=function(){return e},e}let u=/^session_[a-zA-Z0-9-]+$/,d={early_termination_notice:"scenario_e521fdf1-9183-4833-bc1b-4ac1ebcda395"},normalizeKoreanMobilePhone=e=>{if("string"!=typeof e)return null;let t=e.trim().replace(/[\s().-]/g,"");return t.startsWith("0082")?t="+82".concat(t.slice(4)):t.startsWith("82")&&(t="+".concat(t)),/^010\d{8}$/.test(t)&&(t="+82".concat(t.slice(1))),/^\+8210\d{8}$/.test(t)?t:null},getCrispSessionId=e=>{if("string"!=typeof e)return null;let t=e.trim();return u.test(t)?t:null},getCrispSource=e=>{if("string"!=typeof e)return null;let t=e.trim();return t||null},buildCrispIframeUrl=e=>{let{session:t,source:n,user_phone:r}=e,i=new URLSearchParams({website_id:"3d8e4daf-24ff-4611-b9b3-c3116e863d30"}),o=getCrispSource(n);if(o){i.set("source",o);let e=normalizeKoreanMobilePhone(r);e&&i.set("user_phone",e)}let s=getCrispSessionId(t);return s&&i.set("crisp_sid",s),"".concat("https://go.crisp.chat/chat/embed/","?").concat(i.toString())};function HelpChat(){let e=(0,c.useRouter)(),t=getCrispSessionId(e.query.session),n=getCrispSource(e.query.source),i=(0,a.useRef)(null);return((0,a.useEffect)(()=>{if(!e.isReady||t)return;let handleChatClosed=()=>{e.replace("/help/faq")};window.addEventListener(o.vf,handleChatClosed);let r=n?d[n]:null,c=normalizeKoreanMobilePhone(e.query.user_phone),a=r?"".concat(r,":").concat(null!=c?c:""):null;return n&&r&&i.current!==a?(i.current=a,(0,o.YN)({workflowId:r,phone:c,resetSession:!0,variables:{source:n,...c?{user_phone:c}:{}},sessionData:[["entry_source",n],["support_topic",n]]}).catch(()=>(0,s.Eo)("상담 연결에 실패했습니다. 잠시 후 다시 시도해 주세요."))):c?(0,o.Yz)(c).catch(()=>(0,s.Eo)("상담 연결에 실패했습니다. 잠시 후 다시 시도해 주세요.")):(0,o.NJ)(),()=>{window.removeEventListener(o.vf,handleChatClosed)}},[e,e.isReady,e.query.user_phone,t,n]),t)?(0,r.jsx)(p,{src:buildCrispIframeUrl(e.query),title:"Crisp Chat",allow:"microphone; camera"}):(0,r.jsx)(f,{"aria-hidden":"true"})}let p=l.ZP.iframe.withConfig({componentId:"sc-ad60271a-0"})(_templateObject(),e=>{let{theme:t}=e;return t.colors.white}),f=l.ZP.div.withConfig({componentId:"sc-ad60271a-1"})(_templateObject1(),e=>{let{theme:t}=e;return t.colors.white});var h=!0;function ChatPage(){return(0,r.jsx)(HelpChat,{})}}},function(e){e.O(0,[49774,92888,40179],function(){return e(e.s=75503)}),_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.