PageSourceSearch

https://www.eufy.com/_next/static/chunks/2357.e578c575a4774ede.js

js eufy.com collected 2026-09-24 09:35:37 UTC 12,648 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7042f616-a072-4b96-9643-4de992d674bd",e._sentryDebugIdIdentifier="sentry-dbid-7042f616-a072-4b96-9643-4de992d674bd")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2357,79222],{79222:function(e,t,o){"use strict";o.d(t,{D:function(){return n}});let n=e=>{var t,o,n;window.dataLayer=(null===(t=window)||void 0===t?void 0:t.dataLayer)||[];try{null===(n=window)||void 0===n||null===(o=n.dataLayer)||void 0===o||o.push(e)}catch(e){console.log("gaTrack error",e)}}},2357:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return N}});var n=o(85893),i=o(67294),l=o(25362),a=o(63823),s=o(4955),r=o(55774),c=o(20640),u=o.n(c),d=o(61806),m=o(1268),p=o(79222),v=o(11163),x=o(14575);let f=l.ZP.create(e=>{var t,o,c,f;let h=(0,l.dd)(),g=(0,i.useRef)(null),[_,y]=(0,i.useState)(!1),[b,w]=(0,i.useState)(!1),[C,k]=(0,i.useState)(""),[j,N]=(0,i.useState)(""),{asPath:L}=(0,v.useRouter)(),I=(null==e?void 0:e.shareLink)||(null===(o=window)||void 0===o?void 0:null===(t=o.location)||void 0===t?void 0:t.origin)+(null===(f=window)||void 0===f?void 0:null===(c=f.location)||void 0===c?void 0:c.pathname)+"?",T=I+"&code=".concat(null==e?void 0:e.code,"&utm_source=").concat(d.o?"app":"website","&utm_term=CopyLink&genre=").concat(null==e?void 0:e.genre),R=(0,i.useMemo)(()=>"eufy_home"===C&&j>="3.4.0",[C,j]),P=(0,i.useCallback)(e=>{(0,p.D)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"Activity Page Pop_"+L,position:L+"_shareProduct",button_name:e}})},[L]);(0,i.useEffect)(()=>{(0,m.j)().getNativeInfo().then(e=>{var t,o,n,i;k((null==e?void 0:null===(i=e.appName)||void 0===i?void 0:null===(n=i.toLocaleLowerCase())||void 0===n?void 0:null===(o=n.trim())||void 0===o?void 0:null===(t=o.split(" "))||void 0===t?void 0:t.join("_"))||""),N(null==e?void 0:e.appVersion)})},[]);let E=(0,i.useCallback)(t=>{"CopyLink"===t&&(0,p.D)({event:"ga4Event",event_name:"copy_link",event_parameters:{page_group:"Activity Page Pop_"+L,link:T}});let o=I+"&code=".concat(null==e?void 0:e.code,"&utm_source=").concat(d.o?"app":"website","&utm_term=").concat(t,"&genre=").concat(null==e?void 0:e.genre);if(_)return;y(!0),w(!0),u()(o);let n=setTimeout(()=>y(!1),2e3);return()=>clearTimeout(n)},[L,_,d.o,null==e?void 0:e.code,null==e?void 0:e.genre,T,I]),D=(0,i.useCallback)(async e=>{if(R&&e.indexOf("eufysecurity")>-1)return(0,m.j)().openAppPage(e);["app_mega","app_security"].includes(d.p[C])?(0,r.gn)()&&g.current?g.current.src=e:window.location.href=e:(console.log("3"),(0,m.j)().openWebview(e))},[C,R]),Z=(0,i.useCallback)(t=>{let o=encodeURIComponent(I+"&code=".concat(null==e?void 0:e.code,"&utm_source=app&utm_term=").concat(t?1===t?"Twitter":"Email":"Facebook","&genre=").concat(null==e?void 0:e.genre)),n=[{webLink:"https://www.facebook.com/sharer/sharer.php?u=".concat(o),appLink:"fb://facewebmodal/f?href=https://www.facebook.com/sharer/sharer.php?u=".concat(o)},{webLink:"https://twitter.com/intent/tweet?url=".concat(o,"&jump=2")}];switch(t){case 0:if(["app_mega","app_security","eufy_mega","eufy_security"].includes(C)){let{webLink:e,appLink:t}=n[0];D((0,r.gn)()&&["app_mega","app_security","eufy_mega","eufy_security"].includes(d.p[C])?"eufysecurity://eufy/explore/shareTo#".concat((0,r.cv)(JSON.stringify({appLink:t,webLink:e}))):"".concat(e,"&jump=2")||0)}else E("Facebook");P("Facebook");break;case 1:if(["app_mega","app_security","eufy_mega","eufy_security"].includes(C)){let{webLink:e}=n[1];D(e)}else E("Twitter");P("Twitter");break;case 2:if(g.current){let t=(0,r.cv)(JSON.stringify({title:null==e?void 0:e.emailTitle,content:(null==e?void 0:e.emailContent)+I+"&code=".concat(null==e?void 0:e.code,"&utm_source=").concat(d.o?"app":"website","&utm_term=Email&genre=").concat(null==e?void 0:e.genre)}));g.current.src="eufysecurity://eufy/explore/emailTo#".concat(t)}P("Email")}},[C,d.o,E,D,P,null==e?void 0:e.code,null==e?void 0:e.emailContent,null==e?void 0:e.emailTitle,null==e?void 0:e.genre,I]),S=(0,i.useMemo)(()=>[{text:null==e?void 0:e.facebook,src:null==e?void 0:e.facebookImg},{text:null==e?void 0:e.twitter,src:null==e?void 0:e.twitterImg},{text:null==e?void 0:e.email,src:null==e?void 0:e.emailImg}],[null==e?void 0:e.email,null==e?void 0:e.emailImg,null==e?void 0:e.facebook,null==e?void 0:e.facebookImg,null==e?void 0:e.twitter,null==e?void 0:e.twitterImg]);return(0,i.useMemo)(()=>{let e=/iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());return"eufy_life"===C||!e&&("eufy_home"===C||"eufy_mega"===C)},[C]),(0,n.jsx)(s.Z,{className:(0,a.cn)("!px-[12px] min-md:!px-[24px]"),onClose:()=>h.remove(),children:(0,n.jsxs)("div",{className:"max-h-[70vh] min-h-[50vw] w-[80vw] overflow-y-auto px-2",children:[(0,n.jsx)("div",{className:"text-center text-base font-bold",children:e.title}),(0,n.jsx)("div",{className:"text-center text-[3.2vw] font-semibold leading-[120%] text-[#1D1D1F] opacity-75",children:e.subTitles}),(0,n.jsx)("div",{className:"my-6 flex flex-wrap justify-center",children:S.map((e,t)=>e.src&&(0,n.jsxs)("div",{className:"ml-[3.4vw] mt-3",onClick:()=>Z(t),style:{marginLeft:t?void 0:"0"},children:[(0,n.jsx)("img",{src:e.src,alt:"",className:" m-auto h-10 w-10"}),(0,n.jsx)("div",{className:" mt-2 text-center text-xs font-semibold",children:e.text})]},t))}),(0,n.jsx)("div",{className:"mb-[10px] text-center text-base font-bold",children:e.pageLink}),(0,n.jsxs)("div",{className:" relative rounded bg-[#F4F6F9]",children:[(0,n.jsx)("div",{className:" h-8 w-[90%] overflow-hidden text-ellipsis whitespace-nowrap pl-2 pr-[18px] text-xs font-semibold leading-8",children:T}),(0,n.jsx)("img",{src:e.copyImg,alt:"",className:"absolute right-2 top-[6px] h-5 w-7",onClick:()=>E("CopyLink")})]}),(0,n.jsx)("iframe",{id:"referral-iframe",frameBorder:"0",title:"Referral",ref:g,className:"hidden"}),(0,n.jsx)(x.Z,{visible:b,setVisible:w,text:e.copied,time:3e3,position:"center"})]})})});l.ZP.register("rules-modal",f);var h=o(13702),g=o(61506),_=o(11472),y=o(19536),b=o(10190),w=o(72201),C=o.n(w);let k=l.ZP.create(e=>{var t,o;let{data:i}=e,a=(0,l.dd)();return(0,n.jsx)(b.Z,{open:a.visible,className:"flex items-center justify-center",tabIndex:void 0,children:(0,n.jsx)("div",{className:C().modalContainer,style:{width:"90vw",background:"white",borderRadius:"20px",position:"relative",overflow:"hidden"},children:(0,n.jsxs)("div",{className:"mt-5 flex h-[70vh] flex-col gap-6 overflow-y-auto pr-4 min-xl:mt-6",style:null==i?void 0:i.styles,children:[(0,n.jsx)("div",{className:"absolute right-4 top-4 h-[10
1px] w-[10px] cursor-pointer",onClick:()=>a.hide(),children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75276 0.247167C9.42341 -0.0821801 8.88942 -0.0821792 8.56007 0.247167L4.99986 3.8073L1.43993 0.247455C1.11058 -0.0818918 0.57659 -0.0818909 0.247237 0.247455C-0.0821181 0.576801 -0.0821172 1.11078 0.247237 1.44012L3.80716 4.99997L0.247016 8.56003C-0.0823382 8.88938 -0.0823383 9.42335 0.247016 9.7527C0.57637 10.082 1.11036 10.082 1.43971 9.7527L4.99986 6.19264L8.56029 9.75299C8.88964 10.0823 9.42363 10.0823 9.75298 9.75299C10.0823 9.42364 10.0823 8.88967 9.75298 8.56032L6.19255 4.99997L9.75276 1.43984C10.0821 1.11049 10.0821 0.576514 9.75276 0.247167ZM9.61825 0.381676C9.36319 0.126616 8.94965 0.126616 8.69458 0.381676L4.99986 4.07632L1.30542 0.381964C1.05036 0.126905 0.636813 0.126905 0.381749 0.381964C0.253699 0.510011 0.189934 0.677998 0.190452 0.845822C0.189971 0.678046 0.253737 0.51012 0.381749 0.382111C0.636814 0.127052 1.05036 0.127052 1.30542 0.382111L4.99986 4.07646L8.69458 0.381822C8.94964 0.126763 9.36319 0.126763 9.61825 0.381823C9.74575 0.509315 9.80951 0.676402 9.80955 0.843501C9.80955 0.676352 9.74579 0.509206 9.61825 0.381676ZM5.9236 5.00004L9.61847 8.69483C9.74652 8.82288 9.81029 8.99086 9.80977 9.15869C9.81025 8.99091 9.74648 8.82299 9.61847 8.69498L5.92353 5.00011L5.9236 5.00004ZM4.07611 5.00004L0.381527 8.69454C0.253995 8.82207 0.190229 8.98922 0.190229 9.15637C0.190266 8.98927 0.254033 8.82218 0.381528 8.69469L4.07618 5.00011L4.07611 5.00004Z",fill:"#333333"})})}),(0,n.jsx)(_.Z,{html:i.content,className:"px-6 font-semibold"}),(null==i?void 0:i.knowMore)&&(0,n.jsx)(y.Z,{href:null==i?void 0:null===(t=i.knowMore)||void 0===t?void 0:t.link,className:"mb-6 text-center font-semibold underline",children:null==i?void 0:null===(o=i.knowMore)||void 0===o?void 0:o.txt})]})})})});l.ZP.register("rules-modal",k);var j=o(23310),N=e=>{var t,o;let{rankList:a,userInfo:s,loading:r,getInviteCode:c}=(0,h.bT)({locale:e.locale,genre:e.genre}),{profile:u}=(0,g.U)(),{asPath:d}=(0,v.useRouter)(),m=(0,l.dd)(f),[x,_]=(0,i.useState)(!1),[y,b]=(0,i.useState)(""),w=(0,i.useCallback)(()=>{(0,p.D)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"ActivityPage_"+d,position:d+"_shareProduct",button_name:null==e?void 0:e.clickToShare}}),y?m.show({...e.shareModal,code:y,genre:e.genre}):(_(!0),c().then(t=>{var o,n;console.log("\uD83D\uDE80 ~ getInviteCode ~ res:",t);let i=null==t?void 0:null===(n=t.data)||void 0===n?void 0:null===(o=n.data)||void 0===o?void 0:o.referral_code;i&&(b(i),m.show({...e.shareModal,code:i,genre:e.genre}))}).finally(()=>_(!1)))},[m,d,y,c,null==e?void 0:e.clickToShare,e.genre,e.shareModal]);return(0,n.jsxs)("div",{className:"overflow-hidden bg-[#F5F5F7] px-4 pb-6",id:"ShareProduct",children:[(0,n.jsx)("div",{className:"my-6 text-center text-lg font-bold",children:e.title}),(0,n.jsxs)("div",{className:"relative h-[117.5vw] rounded-lg bg-no-repeat px-4 py-6",style:{backgroundImage:"url(".concat(null==e?void 0:e.img,")"),backgroundSize:"100% 100%"},children:[(0,n.jsx)("div",{className:"text-lg font-extrabold text-white",children:null===(o=e.beOurTechText)||void 0===o?void 0:null===(t=o.map)||void 0===t?void 0:t.call(o,(e,t)=>(0,n.jsx)("div",{className:"text-center font-bold  text-white ".concat(t?"text-[20px] leading-[28px]":"text-[14px] leading-[22px] opacity-75"),children:e},t))}),(0,n.jsxs)("div",{className:"absolute bottom-4 left-0 right-0 text-center",children:[x?(0,n.jsx)(j.Z,{className:"mx-auto animate-spin"}):(0,n.jsx)("div",{className:"mx-auto inline-block rounded-[40px] bg-[#E3B076] px-4 py-2 text-[16px] font-bold text-white",onClick:w,children:e.clickToShare}),(0,n.jsx)("div",{className:"mt-3 text-center text-base font-semibold text-white underline",children:(0,n.jsx)("span",{onClick:()=>{(0,p.D)({event:"ga4Event",event_name:"lp_button",event_parameters:{page_group:"ActivityPage_"+d,position:d+"_shareProduct",button_name:null==e?void 0:e.rules}}),l.ZP.show(k,{data:e.rulesConfig})},children:null==e?void 0:e.rules})})]})]})]})}},14575:function(e,t,o){"use strict";var n=o(85893),i=o(67294);t.Z=e=>{let{text:t,visible:o,setVisible:l,time:a,position:s}=e;return(0,i.useEffect)(()=>{o&&setTimeout(()=>{l(!1)},a||0)},[l,a,o]),o?(0,n.jsx)("div",{className:"fixed left-[50%] z-50 w-max max-w-[80vw] translate-x-[-50%] rounded-[40px] bg-[#333] px-10 py-2 text-center text-[14px] font-bold leading-[22px] text-white",style:{bottom:"center"===s?"50%":"40px",transform:"center"===s?"transitionY(-50%)":void 0},children:t}):(0,n.jsx)(n.Fragment,{})}},55774:function(e,t,o){"use strict";o.d(t,{cv:function(){return r},ge:function(){return c},Pg:function(){return d},gn:function(){return s}});let n={us:"security-app-us.myshopify.com",uk:"security-app-uk.myshopify.com",de:"security-app-de.myshopify.com",ca:"security-app-ca.myshopify.com",eu:"security-app-eu.myshopify.com",nl:"security-app-nl.myshopify.com",fr:"eufy-fr.myshopify.com",it:"security-app-it.myshopify.com",es:"security-app-es.myshopify.com"};var i=o(36808),l=o.n(i),a=o(34155);let s=()=>/iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()),r=e=>window.btoa(unescape(encodeURIComponent(e))),c=e=>n[e],u=JSON.parse(a.env.NEXT_PRIVATE_USER_CENTER_CONFIG||"{}"),d=e=>{let t=l().get("app_name")||"eufy_security";return null==u||u[t],{"x-shopify-domain":c(e)}}},72201:function(e){e.exports={title:"Rules_title__nr5pL",buttonText:"Rules_buttonText__ipXFM",rulesText:"Rules_rulesText__IB83W",timeItemBox:"Rules_timeItemBox__RlMN5",aboutsContainer:"Rules_aboutsContainer__CB_AR",aboutItemBox:"Rules_aboutItemBox__iA
1K8L",aboutItem:"Rules_aboutItem__YmOaG",aboutItemDesc:"Rules_aboutItemDesc__VxWD0",countdownTimeBox:"Rules_countdownTimeBox__cu9jS",aboutTitle:"Rules_aboutTitle__LWZOH",timeItem:"Rules_timeItem__ywyj9",countdownTimePoint:"Rules_countdownTimePoint__m0UV1"}}}]);

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.