PageSourceSearch

https://www.eufy.com/_next/static/chunks/5514.94e2938fe7d2df0d.js

js eufy.com collected 2026-09-24 09:36:54 UTC 3,745 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="0dd93764-9cb8-49a1-b8ed-05b5351d6cd3",e._sentryDebugIdIdentifier="sentry-dbid-0dd93764-9cb8-49a1-b8ed-05b5351d6cd3")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5514],{5514:function(e,l,t){t.r(l),t.d(l,{useCustomerService:function(){return s}});var n,i,o=t(85893),d=t(67294),a=t(4298),r=t.n(a),v=t(5307),u=t(96928);(n=i||(i={})).ComponentLiveChat="ComponentLiveChat",n.ComponentFirework="ComponentFirework",n.ComponentLiveStream="ComponentLiveStream";let s=e=>{var l,t;let{liveHelper:n=!1,liveChat:i=!1,fwcdn3Metafields:o,metafields:a}=e,[r,s]=(0,d.useState)(""),{setCustomerServiceType:h}=(0,v.l8)(),{data:c}=(0,u.Z)(),p=null==a?void 0:a.thirdparty,C=(0,d.useCallback)(async()=>{let e=await fetch("https://fireworkapi1.com/api/chat_channels/".concat(null==o?void 0:o.livehelperChannelId,"/agents_availability")),{agents_available:l}=await e.json();s(l?"ComponentFirework":i?"ComponentLiveChat":"")},[null==o?void 0:o.livehelperChannelId,i]);return(0,d.useEffect)(()=>{"true"===n&&(null==o?void 0:o.livehelperChannelId)?C():i&&s("ComponentLiveChat")},[n,i,null==o?void 0:o.livehelperChannelId,C]),(0,d.useEffect)(()=>{h(r)},[r,h]),(0,d.useEffect)(()=>{var e,l;window.__shulexConfig={email:(null==c?void 0:c.email)||"",brand:"eufy",country:null==p?void 0:null===(e=p.liveChat)||void 0===e?void 0:e.country,language:null==p?void 0:null===(l=p.liveChat)||void 0===l?void 0:l.language}},[c,null==p?void 0:null===(l=p.liveChat)||void 0===l?void 0:l.country,null==p?void 0:null===(t=p.liveChat)||void 0===t?void 0:t.language]),(0,d.useEffect)(()=>{let e=setInterval(()=>{let l=document.querySelector("shulex-chatbot-lancher");if(l){let t=l.shadowRoot,n=null==t?void 0:t.getElementById("livechat_launcher_btn");n&&(n.style.setProperty("z-index","50","important"),window.matchMedia("(max-width: 768px)").matches&&(n.style.setProperty("bottom","140px","important"),n.style.setProperty("right","1rem","important"))),clearInterval(e)}},100);return()=>clearInterval(e)},[]),{customerServiceType:r}},h=(e,l)=>!!e&&0!==e.length&&e.some(e=>{if(e.endsWith("/*")){let t=e.slice(0,-1);return l.startsWith(t)}return l===e});l.default=e=>{var l,t,n,i;let{locale:a,path:v="",pathname:u="",liveHelper:c=!1,liveChat:p=!1,fwcdn3Metafields:C,metafields:m,livechat_includePaths:y}=e,f=(0,d.useMemo)(()=>!!y&&0!==y.length&&!h(y,v.split("?")[0].split("#")[0]),[y,v]),{customerServiceType:b}=s({locale:a,path:v,pathname:u,liveHelper:c,liveChat:p,fwcdn3Metafields:C,metafields:m}),w=(0,d.useMemo)(()=>{var e,l,t,n,i,d;return{ComponentLiveChat:(0,o.jsx)(o.Fragment,{children:(null==m?void 0:null===(l=m.thirdparty)||void 0===l?void 0:null===(e=l.liveChat)||void 0===e?void 0:e.id)&&(0,o.jsx)(r(),{id:"liveChat",src:"https://apps.voc.ai/api_v2/gpt/bots/livechat/embed.js?id=".concat(null==m?void 0:null===(n=m.thirdparty)||void 0===n?void 0:null===(t=n.liveChat)||void 0===t?void 0:t.id,"&token=").concat(null==m?void 0:null===(d=m.thirdparty)||void 0===d?void 0:null===(i=d.liveChat)||void 0===i?void 0:i.token)})}),ComponentFirework:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("fw-live-helper",{style:{zIndex:59,position:"fixed"},class:"fw-live-helper",bypass_sa_availability:!0,chat_channel_id:null==C?void 0:C.livehelperChannelId})})}},[a,null==C?void 0:C.livehelperChannelId,null==m?void 0:null===(t=m.thirdparty)||void 0===t?void 0:null===(l=t.liveChat)||void 0===l?void 0:l.id,null==m?void 0:null===(i=m.thirdparty)||void 0===i?void 0:null===(n=i.liveChat)||void 0===n?void 0:n.token]);return f?null:b in w?w[b]:null}}}]);

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.