PageSourceSearch

https://www.extngo.com/_next/static/chunks/app/layout-d68faaa7d096acc6.js

js extngo.com collected 2026-10-06 12:37:46 UTC 8,272 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{1402:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return h}});let n=r(8140),l=r(9417),i=r(5155),o=n._(r(7650)),a=l._(r(2115)),s=r(2073),d=r(4681),c=r(4853),u=new Map,f=new Set,p=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:l=null,dangerouslySetInnerHTML:i,children:a="",strategy:s="afterInteractive",onError:c,stylesheets:p}=e,b=r||t;if(b&&f.has(b))return;if(u.has(t)){f.add(b),u.get(t).then(n,c);return}let h=()=>{l&&l(),f.add(b)},y=document.createElement("script"),g=new Promise((e,t)=>{y.addEventListener("load",function(t){e(),n&&n.call(this,t),h()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(y.innerHTML=i.__html||"",h()):a?(y.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",h()):t&&(y.src=t,u.set(t,g)),(0,d.setAttributesFromProps)(y,e),"worker"===s&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",s),p&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(p),document.body.appendChild(y)};function b(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}):p(e)}function h(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:l=null,strategy:d="afterInteractive",onError:u,stylesheets:b,...h}=e,{updateScripts:y,scripts:g,getIsSsr:x,appDir:m,nonce:_}=(0,a.useContext)(s.HeadManagerContext);_=h.nonce||_;let v=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=t||r;v.current||(l&&e&&f.has(e)&&l(),v.current=!0)},[l,t,r]);let S=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{if(!S.current){if("afterInteractive"===d)p(e);else"lazyOnload"===d&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}));S.current=!0}},[e,d]),("beforeInteractive"===d||"worker"===d)&&(y?(g[d]=(g[d]||[]).concat([{id:t,src:r,onLoad:n,onReady:l,onError:u,...h,nonce:_}]),y(g)):x&&x()?f.add(t||r):x&&!x()&&p({...e,nonce:_})),m){if(b&&b.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===d)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:_,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h,id:t}])+")"}});else return o.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:_,crossOrigin:h.crossOrigin}:{as:"script",nonce:_,crossOrigin:h.crossOrigin}),(0,i.jsx)("script",{nonce:_,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{...h,id:t}])+")"}});"afterInteractive"===d&&r&&o.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:_,crossOrigin:h.crossOrigin}:{as:"script",nonce:_,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let g=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3673:()=>{},4853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5355:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var n=r(5155),l=r(2115);let i={role:"bot",text:"Hi! Ask me about our cables (price, which one fits your setup), shipping, or anything from the blog."};function o(){let[e,t]=(0,l.useState)(!1),[r,o]=(0,l.useState)([i]),[a,s]=(0,l.useState)(""),[d,c]=(0,l.useState)(!1),u=(0,l.useRef)(null);async function f(){let e=a.trim();if(e&&!d){s(""),o(t=>[...t,{role:"user",text:e}]),c(!0);try{let t=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e})}),r=await t.json();o(e=>[...e,{role:"bot",text:r.text,links:r.links}])}catch(e){o(e=>[...e,{role:"bot",text:"Sorry, I couldn't reach the server. Please try again."}])}finally{c(!1)}}}return(0,l.useEffect)(()=>{var e;null==(e=u.current)||e.scrollTo({top:u.current.scrollHeight,behavior:"smooth"})},[r,d]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",onClick:()=>t(e=>!e),"aria-label":e?"Close chat":"Open chat",style:{position:"fixed",right:20,bottom:20,zIndex:1e3,width:56,height:56,borderRadius:"50%",background:"#E8431A",color:"#fff",border:0,boxShadow:"0 10px 30px rgba(232,67,26,.4)",cursor:"pointer",fontSize:24,display:"flex",alignItems:"center",justifyContent:"center"},children:e?"\xd7":"\uD83D\uDCAC"}),e&&(0,n.jsxs)("div",{style:{position:"fixed",right:20,bottom:88,zIndex:1e3,width:320,maxWidth:"calc(100vw - 40px)",height:440,background:"#fff",borderRadius:16,boxShadow:"0 20px 60px rgba(0,0,0,.25)",display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"var(--font-geist), sans-serif"},children:[(0,n.jsx)("div",{style:{background:"#1A1A1A",color:"#fff",padding:"14px 16px",fontWeight:700,fontSize:14},children:"EXTNGO Assistant"}),(0,n.jsxs)("div",{ref:u,style:{flex:1,overflowY:"auto",padding:"14px 12px",display:"flex",flexDirection:"column",gap:10},children:[r.map((e,t)=>{var r;return(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"user"===e.role?"flex-end":"flex-start"},children:[(0,n.jsx)("div",{style:{maxWidth:"85%",padding:"9px 12px",borderRadius:12,fontSize:13.5,lineHeight:1.5,whiteSpace:"pre-line",background:"user"===e.role?"#E8431A":"#F2F2F2",color:"user"===e.role?"#fff":"#1A1A1A"},children:e.text}),null==(r=e.links)?void 0:r.map(e=>(0,n.jsxs)("a",{href:e.url,style:{marginTop:6,fontSize:12.5,fontWeight:600,color:"#E8431A",textDecoration:"underline"},children:[e.label," →"]},e.url))]},t)}),d&&(0,n.jsx)("div",{style:{fontSize:13,color:"#8A8A8A"},children:"Typing…"})]}),(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),f()},style:{display:"flex",gap:8,padding:10,borderTop:"1px solid rgba(0,0,0,.08)"},children:[(0,n.jsx)("input",{value:a,onChange:e=>s(e.target.value),placeholder:"Ask a question…",style:{flex:1,border:"1px solid rgba(0,0,0,.15)",borderRadius:999,padding:"9px 14px",fontSize:13.5,outline:"none"}}),(0,n.jsx)("button",{type:"submit",disabled:d,style:{background:"#1A1A1A",color:"#fff",border:0,borderRadius:999,padding:"0 16px",fontSize:13.5,fontWeight:600,cursor:d?"not-allowed":"pointer"},children:"Send"})]})]})]})}},5623:e=>{e.exports={style:{fontFamily:"'Bricolage Grotesque', 'Bricolage Grotesque Fallback'",fontWeight:800,fontStyle:"normal"},className:"__className_0c1b87",variable:"__variable_0c1b87"}},6859:e=>{e.exports={style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"},className:"__className_639297",variable:"__variable_639297"}},8189:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,1402,23)),Promise.resolve().then(r.t.bind(r,5623,23)),Promise.resolve().then(r.t.bind(r,6859,23)),Promise.resolve().then(r.t.bind(r,3673,23)),Promise.resolve().then(r.bind(r,5355))}},e=>{e.O(0,[470,441,255,358],()=>e(e.s=8189)),_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.