PageSourceSearch

https://naemo.ai/_next/static/chunks/7488-1db83f89f97ea757.js

js naemo.ai collected 2026-09-24 14:29:58 UTC 8,263 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7488],{55701:function(e,t,n){n.d(t,{R:function(){return i},default:function(){return l}});var o=n(57437),r=n(2265);let i="naemo:toggle-vpdebug",u="naemo:vpdebug";function c(){let e=document.activeElement;if(!e)return!1;if(e.isContentEditable)return!0;let t=e.tagName;return"TEXTAREA"===t||"INPUT"===t&&!["checkbox","radio","button","submit","reset","file","range","color","image"].includes(e.type)}function a(e){let t=document.querySelector(e);if(!t)return"없음";let n=t.getBoundingClientRect();return"".concat(Math.round(n.top),"~").concat(Math.round(n.bottom))}function l(){let[e,t]=(0,r.useState)(null),n=(0,r.useRef)(!1);return((0,r.useEffect)(()=>{let e=new URLSearchParams(window.location.search).has("vpdebug"),o=!1;try{o="1"===sessionStorage.getItem(u)}catch(e){}let r=e=>{n.current=e;try{sessionStorage.setItem(u,e?"1":"0")}catch(e){}e?window.dispatchEvent(new Event("resize")):t(null)};(e||o)&&r(!0);let c=()=>r(!n.current);return window.addEventListener(i,c),()=>window.removeEventListener(i,c)},[]),(0,r.useEffect)(()=>{let e=e=>{e.touches.length>1&&e.preventDefault()},t=e=>{e.preventDefault()};return document.addEventListener("touchstart",e,{passive:!1}),document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("gesturestart",t),document.addEventListener("gesturechange",t),()=>{document.removeEventListener("touchstart",e),document.removeEventListener("touchmove",e),document.removeEventListener("gesturestart",t),document.removeEventListener("gesturechange",t)}},[]),(0,r.useEffect)(()=>{let e=document.documentElement,o=0,r={height:-1,offsetTop:-1,bottomGap:-1,keyboardOpen:null},i=0,u=()=>{o=0;let u=window.visualViewport,l=Math.round(window.innerHeight),s=u?Math.round(u.height):l,d=u?Math.max(0,Math.round(u.offsetTop)):0,f=u?Math.max(0,l-s-d):0,m=c();m||(i=s);let h=m&&s<i-80;s!==r.height&&(r.height=s,e.style.setProperty("--app-height","".concat(s,"px"))),d!==r.offsetTop&&(r.offsetTop=d,e.style.setProperty("--vv-offset-top","".concat(d,"px"))),f!==r.bottomGap&&(r.bottomGap=f,e.style.setProperty("--vv-bottom-gap","".concat(f,"px"))),h!==r.keyboardOpen&&(r.keyboardOpen=h,e.classList.toggle("keyboard-open",h)),n.current&&t({height:s,offsetTop:d,bottomGap:f,layout:l,keyboardOpen:h,shell:a(".app-viewport"),bar:a(".mobile-floating-bar")})},l=()=>{o||(o=requestAnimationFrame(u))},s=e=>{if(!e.isContentEditable)return e.getBoundingClientRect();let t=window.getSelection();if(!t||0===t.rangeCount)return null;let n=t.getRangeAt(0),o=n.getClientRects();if(o.length>0)return o[o.length-1];let r=n.getBoundingClientRect();if(r.width>0||r.height>0)return r;let i=n.startContainer,u=i.nodeType===Node.ELEMENT_NODE?i:i.parentElement;return u?u.getBoundingClientRect():null},d=()=>{if(!c())return;let e=document.activeElement;if(!e)return;let t=window.visualViewport;if(!t)return;let n=s(e);if(!n)return;let o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:64,r=t-o;return r<=n||e.bottom-e.top>r-n?0:e.bottom>r?e.bottom-r:e.top<n?e.top-n:0}(n,t.height);if(0===o)return;let r=e.parentElement,i=null;for(;r&&r!==document.body&&r!==document.documentElement;){let e=window.getComputedStyle(r);if("auto"===e.overflowY||"scroll"===e.overflowY){i=r;break}r=r.parentElement}if(i){let e=Math.max(0,i.scrollHeight-i.clientHeight),t=Math.min(Math.max(0,i.scrollTop+o),e);if(Math.round(t)===Math.round(i.scrollTop))return;i.scrollTo({top:t,behavior:"smooth"})}else window.scrollBy({top:o,behavior:"smooth"})},f=()=>{l(),window.setTimeout(u,120),window.setTimeout(()=>{u(),d()},350),window.setTimeout(()=>{u(),d()},500)};u(),window.addEventListener("resize",l),window.addEventListener("orientationchange",l),window.addEventListener("scroll",l,{passive:!0}),document.addEventListener("focusin",f),document.addEventListener("focusout",f);let m=window.visualViewport;null==m||m.addEventListener("resize",l),null==m||m.addEventListener("scroll",l);let h=window.setTimeout(u,300);return()=>{o&&cancelAnimationFrame(o),window.clearTimeout(h),window.removeEventListener("resize",l),window.removeEventListener("orientationchange",l),window.removeEventListener("scroll",l),document.removeEventListener("focusin",f),document.removeEventListener("focusout",f),null==m||m.removeEventListener("resize",l),null==m||m.removeEventListener("scroll",l),e.classList.remove("keyboard-open")}},[]),e)?(0,o.jsx)("div",{style:{position:"fixed",top:"calc(var(--vv-offset-top, 0px) + env(safe-area-inset-top, 0px) + 4px)",left:4,zIndex:2147483647,background:"rgba(0,0,0,0.82)",color:"#0f0",font:"11px/1.45 ui-monospace, Menlo, monospace",padding:"6px 8px",borderRadius:6,pointerEvents:"none",whiteSpace:"pre"},children:"보이는 영역   ".concat(e.offsetTop,"~").concat(e.offsetTop+e.height,"\napp-height   ").concat(e.height,"\noffset-top   ").
1concat(e.offsetTop,"\nbottom-gap   ").concat(e.bottomGap,"\ninnerHeight  ").concat(e.layout,"\n키보드        ").concat(e.keyboardOpen?"OPEN":"closed","\n앱 셸        ").concat(e.shell,"\n하단바        ").concat(e.bar)}):null}},21751:function(e,t,n){n.d(t,{jM:function(){return a},nD:function(){return c},rr:function(){return l}});var o=n(57437),r=n(2265),i=n(21652);let u=(0,r.createContext)(void 0);function c(e){let{children:t}=e,[n,c]=(0,r.useState)(null),a=(0,r.useRef)(()=>{}),l=(0,r.useRef)(!1);(0,r.useEffect)(()=>{let e=()=>{l.current&&(l.current=!1,a.current())};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let s=(0,r.useCallback)((e,t)=>{a.current=t;let n=(0,i.UM)();if(null!==e){let e=window.history.state||{},t=l.current||!!(e&&e.isMobileSubHeader);n&&!t?(window.history.pushState({...e,isMobileSubHeader:!0},""),l.current=!0):t&&(l.current=!0)}else l.current=!1;c(t=>t===e?t:e)},[]),d=(0,r.useCallback)(()=>{l.current&&(l.current=!1,window.history.back()),a.current()},[]),f=(0,r.useMemo)(()=>({subHeaderTitle:n,goBackFromSubHeader:d,registerSubHeader:s}),[n,d,s]);return(0,o.jsx)(u.Provider,{value:f,children:t})}function a(){var e,t;let n=(0,r.useContext)(u);return{subHeaderTitle:null!==(e=null==n?void 0:n.subHeaderTitle)&&void 0!==e?e:null,goBackFromSubHeader:null!==(t=null==n?void 0:n.goBackFromSubHeader)&&void 0!==t?t:()=>{}}}function l(e,t){let n=(0,r.useContext)(u),o=null==n?void 0:n.registerSubHeader,i=(0,r.useRef)(t);(0,r.useEffect)(()=>{i.current=t},[t]),(0,r.useEffect)(()=>{o&&o(e,()=>i.current())},[o,e]),(0,r.useEffect)(()=>()=>{null==o||o(null,()=>{})},[o])}},80726:function(e,t,n){n.d(t,{C3:function(){return r},fD:function(){return c},hI:function(){return u},mC:function(){return o},nh:function(){return i},nr:function(){return a}});let o="naemo_native_shell",r="naemo_oauth_client",i="ios",u="https://naemo.ai?from=ios";function c(){return"/?client=".concat(i)}function a(e,t,n){return"".concat(e,"=").concat(t,"; Path=/; Max-Age=7200; SameSite=None").concat(n?"; Secure":"")}},21652:function(e,t,n){n.d(t,{RS:function(){return o},UM:function(){return r},nX:function(){return i}});let o="(max-width: ".concat(599,"px), (max-height: ").concat(599,"px) and (max-width: ").concat(1023,"px) and (hover: none)");function r(){var e,t,n;let o=!1;if("function"==typeof window.matchMedia)try{o=window.matchMedia("(hover: hover)").matches}catch(e){o=!1}return e=window.innerWidth,t=window.innerHeight,n=o,e<=599||!n&&t<=599&&e<=1023}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof navigator?{}:navigator,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.matchMedia.bind(window);if(!0===e.standalone)return!0;if(!t)return!1;try{return["standalone","fullscreen","minimal-ui"].some(e=>t("(display-mode: ".concat(e,")")).matches)}catch(e){return!1}}},12618:function(e,t,n){n.d(t,{a:function(){return u},u:function(){return i}});var o=n(9244),r=n(80726);function i(){if("undefined"==typeof document||!(0,o.c)())return;let e="undefined"!=typeof location&&"https:"===location.protocol;document.cookie=(0,r.nr)(r.mC,"1",e),document.cookie=(0,r.nr)(r.C3,r.nh,e)}function u(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,o.c)();return(t&&i(),t||e)?{callbackUrl:(0,r.fD)()}:{callbackUrl:"/"}}}}]);

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.