PageSourceSearch

https://www.empatica.com/_next/static/chunks/app/(site)/blog/%5Bslug%5D/page-b1a3b7b408fbfb6f.js

js empatica.com collected 2026-09-24 17:20:32 UTC 14,610 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74754],{2921:(e,t,s)=>{"use strict";s.d(t,{bz:()=>c,z7:()=>a,WQ:()=>n,s1:()=>l});var i=s(12115);let r=(e,t)=>Array.from({length:t-e+1},(t,s)=>s+e),n=({total:e,itemsPerPage:t,currentPage:s,nSibling:n=1})=>{let[o,l]=(0,i.useState)(3),a=(()=>{let[e,t]=(0,i.useState)({width:void 0,height:void 0});return(0,i.useEffect)(()=>{let e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),e})();return(0,i.useEffect)(()=>(a&&a.width&&(a.width<330&&l(0),a.width>330&&a.width<530&&l(1),a.width>530&&a.width<800&&l(3),a.width>800&&a.width<1e3&&l(5),a.width>1e3&&l(7)),()=>{}),[a,o]),(0,i.useMemo)(()=>{let i=Math.ceil(e/t);if(n+5>=i)return r(1,i);let l=Math.max(s-n,1),a=Math.min(s+n,i);return l>2&&a<i-2?l>2&&!(a<i-2)?[1,"...",...r(i-o+2*n+1,i)]:[1,"...",...r(l,a),"...",i]:[...r(1,o+2*n),"...",i]},[e,t,s,n,o])};var o=s(32957);let l=e=>(0,o.Ub)(e,{defaultValue:!1,initializeWithValue:!1}),a=({emblaApi:e})=>{let[t,s]=(0,i.useState)(0),[r,n]=(0,i.useState)([]),[o,l]=(0,i.useState)(!1),[a,c]=(0,i.useState)(!1),d=(0,i.useCallback)(()=>{let t=e?.plugins().autoplay;t&&t.reset()},[e]),h=(0,i.useCallback)(e=>{n(e.scrollSnapList())},[]),u=(0,i.useCallback)(e=>{s(e.selectedScrollSnap()),l(e.canScrollNext()),c(e.canScrollPrev())},[]),m=(0,i.useCallback)(()=>{e&&(e.scrollNext(),d())},[e]),v=(0,i.useCallback)(()=>{e&&(e.scrollPrev(),d())},[e]),_=(0,i.useCallback)(t=>{e&&(e.scrollTo(t),d())},[e]);return(0,i.useEffect)(()=>{if(e)return h(e),u(e),e.on("reInit",h).on("reInit",u).on("select",u),()=>{e.off("reInit",h).off("reInit",u).off("select",u)}},[e,h,u]),{selectedIndex:t,scrollSnaps:r,scrollToNext:m,scrollToPrev:v,scrollTo:_,canScrollNext:o,canScrollPrev:a}},c=(e,t)=>{let[s,r]=(0,i.useState)(t?.defaultPlaying??!1),n=(0,i.useCallback)(t=>{let s=e?.plugins()?.autoScroll;s&&(s.stop(),t())},[e]),o=(0,i.useCallback)(()=>{let t=e?.plugins()?.autoScroll;t&&(t.isPlaying()?t.stop:t.play)()},[e]);return(0,i.useEffect)(()=>{let t=e?.plugins()?.autoScroll;t&&(r(t.isPlaying()),e.on("autoScroll:play",()=>r(!0)).on("autoScroll:stop",()=>r(!1)).on("reInit",()=>r(t.isPlaying())))},[e]),{autoScrollIsPlaying:s,toggleAutoScroll:o,onAutoScrollButtonClick:n}}},38386:(e,t,s)=>{"use strict";s.d(t,{FreeTextLottie:()=>o});var i=s(95155),r=s(12115),n=s(79847);let o=({src:e,dataUrl:t,...s})=>{let[o,l]=(0,r.useState)(e);return((0,r.useEffect)(()=>{t?fetch(t).then(e=>e.json()).then(l).catch(()=>l(void 0)):l(e)},[t,e]),o)?(0,i.jsx)(n.e,{autoplay:!0,loop:!0,...s,src:o}):null}},39951:(e,t,s)=>{"use strict";s.d(t,{Pagination:()=>c});var i=s(86975),r=s(95155),n=s(19798),o=s.n(n),l=s(48243),a=s(2921);s(48012);let c=({page:e,pageSize:t,total:s})=>{let i=(0,a.WQ)({total:s,nSibling:1,currentPage:e,itemsPerPage:t});if(0===e||i.length<2)return null;let n=1===e,c=e===i[i.length-1],u="/blog",m=n?"#":`/blog/${e-1!=1?`page-${e-1}`:""}`,v=c?"#":`/blog/page-${e+1}`;return(0,r.jsxs)(d,{children:[(0,r.jsx)(h,{href:m,active:!1,children:(0,r.jsx)(l.m6W,{})}),i.map((t,s)=>{if("string"==typeof t)return(0,r.jsx)(h,{href:"#",active:!1,children:"…"},s);let i=t===e,l=1===t,a=o().resolve(u,`page-${t}`);return n&&l&&(a=u),l&&!n&&(a=u),i&&(a="#"),(0,r.jsx)(h,{href:a,className:t===e?"active":"",active:t===e,children:t},`${e}-${t}-${s}`)}),(0,r.jsx)(h,{href:v,active:!1,children:(0,r.jsx)(l.OQo,{})})]})},d=(0,i.I)("div")({classes:["pkoxsxh"]}),h=(0,i.I)("a",{shouldForwardProp:e=>"active"!==e})({classes:["s1bwc7yw"],variants:[{props:{active:!0},className:"s1bwc7yw-1"},{props:{active:!1},className:"s1bwc7yw-2"}]})},45741:(e,t,s)=>{"use strict";s.d(t,{_:()=>d});var i=s(86975),r=s(95155),n=s(12115),o=s(9382),l=s(68520),a=s(73086);s(42689);let c={top:{y:"-100%"},bottom:{y:"100%"},left:{x:"-100%"},right:{x:"100%"}},d=({isOpen:e,onClose:t,children:s,direction:i="bottom",style:a,title:d,closeButtonProps:p,contentProps:E,drawerProps:P})=>((0,n.useEffect)(()=>{document.body.style.overflowY=e?"hidden":"auto"},[e]),(0,r.jsxs)("div",{children:[e&&(0,r.jsx)(h,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},onClick:t}),(0,r.jsxs)(u,{direction:i,initial:c[i],animate:e?{x:0,y:0}:c[i],exit:c[i],transition:{type:"spring",stiffness:200,damping:30},...P,style:{...P?.style,"--drawer-width":"number"==typeof a?.drawer?.width?`${a.drawer.width}px`:a?.drawer?.width,"--drawer-height":"number"==typeof a?.drawer?.height?`${a.drawer.height}px`:a?.drawer?.height},children:[(0,r.jsxs)("div",{className:v,children:[d,(0,r.jsx)(m,{onClick:t,"aria-label":"Close Button",...p,children:(0,r.jsx)(l.g,{icon:o.GRI,size:"2xl"})})]}),(0,r.jsx)(_,{...E,direction:i,children:s})]})]})),h=(0,i.I)(a.PY1.div)({classes:["o17sd6io"]}),u=(0,i.I)(a.PY1.div,{shouldForwardProp:e=>"direction"!==e})({classes:["d1shyg3m"],variants:[{props:{direction:"top"},className:"d1shyg3m-1"},{props:{direction:"bottom"},className:"d1shyg3m-2"},{props:{direction:"left"},className:"d1shyg3m-3"},{props:{direction:"right"},className:"d1shyg3m-4"}]}),m=(0,i.I)("button")({classes:["cs8v7zc"]}),v="hxdwk9o",_=(0,i.I)("div",{shouldForwardProp:e=>"direction"!==e})({classes:["c1wgurwn"],variants:[{props:function(e){return["top","bottom"].includes(e.direction)},className:"c1wgurwn-1"},{props:function(e){return["right","left"].includes(e.direction)},className:"c1wgurwn-2"}]})},48739:(e,t,s)=>{"use strict";s.d(t,{c:()=>o});var i=s(86975),r=s(95155);s(73787);let n=(0,i.I)("div")({classes:["dnqkg5o"]}),o=({width:e,color:t,...s})=>(0,r.jsx)(n,{role:"separator","aria-orientation":"horizontal",...s,style:{...s.style,"--divider-width":`${e}px`,"--divider-color":t}})},65461:(e,t,s)=>{"use strict";s.d(t,{u:()=>o});var i=s(12115),r=s(2921);let n={xs:450,sm:600,md:900,lg:1200,xl:1536,"2xl":2500},o=e=>{let t=(0,i.useMemo)(()=>n[e]||n.md,[e]);return{isMatching:(0,r.s1)(`(max-width: ${t}px)`)}}},77004:(e,t,s)=>{"use strict";s.d(t,{h:()=>n});var i=s(14991),r=s(29048);let n=(0,i.w)({client:{NEXT_PUBLIC_ENVIRONMENT:r.k5(["development","production","preview","staging","local"]),NEXT_PUBLIC_SANITY_DATASET:r.k5(["development","production","staging","test"]),NEXT_PUBLIC_DD_APP_ID:r.Yj(),NEXT_PUBLIC_DD_TOKEN:r.Yj(),NEXT_PUBLIC_DD_SITE:r.Yj(),NEXT_PUBLIC_DD_SERVICE:r.Yj(),NEXT_PUBLIC_DD_VERSION:r.Yj(),NEXT_PUBLIC_EMPATICA_CHECKOUT_DOMAIN:r.Yj(),NEXT_PUBLIC_WEBSITE_URL:r.Yj().default("http://www.empatica.com"),NEXT_PUBLIC_SANITY_PROJECT_ID:r.Yj(),NEXT_PUBLIC_LOG_LEVEL:r.k5(["debug","info","warn","error"]).optional().default("debug"),NEXT_PUBLIC_SANITY_STUDIO_PREVIEW_SECRET:r.Yj(),NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_ID:r.Yj(),NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_AUTH:r.Yj(),NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_PREVIEW:r.Yj()},runtimeEnv:{NEXT_PUBLIC_ENVIRONMENT:"production",NEXT_PUBLIC_SANITY_DATASET:"production",NEXT_PUBLIC_DD_APP_ID:"c2e5bc37-8b90-469a-b289-1f2f497506cd",NEXT_PUBLIC_DD_TOKEN:"pubc8905e2bccf07a328aec4f03325161b5",NEXT_PUBLIC_DD_SITE:"datadoghq.com",NEXT_PUBLIC_DD_SERVICE:"empatica-website",NEXT_PUBLIC_DD_VERSION:"1.99",NEXT_PUBLIC_EMPATICA_CHECKOUT_DOMAIN:"https://checkout.empatica.com",NEXT_PUBLIC_WEBSITE_URL:"https://www.empatica.com",NEXT_PUBLIC_SANITY_PROJECT_ID:"ggwhkgro",NEXT_PUBLIC_LOG_LEVEL:"info",NEXT_PUBLIC_SANITY_STUDIO_PREVIEW_SECRET:'Z!C%]R:I1PWe1eBI~7Yg"b4_$r.Os7Qt_9Z$93L"o+cAO>P^%K@RB%X&kj@o`zc',NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_ID:"GTM-PBTLHFCB",NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_AUTH:"os_55EFBzw-cKvvavwt0Kw",NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_PREVIEW:"env-1"},skipValidation:!1})},82468:(e,t,s)=>{Promise.resolve().then(s.bind(s,19785)),Promise.resolve().then(s.bind(s,15925)),Promise.resolve().then(s.bind(s,5571)),Promise.resolve().then(s.bind(s,59459)),Promise.resolve().then(s.bind(s,72049)),Promise.resolve().then(s.bind(s,9317)),Promise.resolve().then(s.bind(s,42267)),Promise.resolve().then(s.bind(s,97777)),Promise.resolve().then(s.bind(s,40527)),Promise.resolve().then(s.bind(s,88277)),Promise.resolve().then(s.bind(s,95259)),Promise.resolve().then(s.t.bind(s,9034,23)),Promise.resolve().then(s.t.bind(s,12863,23)),Promise.resolve().then(s.t.bind(s,92315,23)),Promise.resolve().then(s.t.bind(s,24114,23)),Promise.resolve().then(s.t.bind(s,61239,23)),Promise.resolve().then(s.t.bind(s,84465,23)),Promise.resolve().then(s.t.bind(s,34231,23)),Promise.resolve().then(s.t.bind(s,54937,23)),Promise.resolve().then(s.t.bind(s,97793,23)),Promise.resolve().then(s.t.bind(s,67245,23)),Promise.resolve().then(s.t.bind(s,58564,23)),Promise.resolve().then(s.t.bind(s,52261,23)),Promise.resolve().then(s.t.bind(s,93443,23)),Promise.resolve().then(s.t.bind(s,47654,23)),Promise.resolve().then(s.t.bind(s,50916,23)),Promise.resolve().then(s.t.bind(s,5430,23)),Promise.resolve().then(s.t.bind(s,45790,23)),Promise.resolve().then(s.t.bind(s,81763,23)),Promise.resolve().then(s.t.bind(s,14553,23)),Promise.resolve().then(s.bind(s,35276)),Promise.resolve().then(s.t.bind(s,8097,23)),Promise.resolve().then(s.t.bind(s,69550,23)),Promise.resolve().then(s.bind(s,2626)),Promise.resolve().then(s.bind(s,39951)),Promise.resolve().then(s.bind(s,38386)),Promise.resolve().then(s.bind(s,82999)),Promise.resolve().then(s.bind(s,90132)),Promise.resolve().then(s.bind(s,13535)),Promise.resolve().then(s.bind(s,69224)),Promise.resolve().then(s.bind(s,65412)),Promise.resolve().then(s.bind(s,64930)),Promise.resolve().then(s.bind(s,69558)),Promise.resolve().then(s.bind(s,27834)),Promise.resolve().then(s.bind(s,47296))},83193:(e,t,s)=>{"use strict";s.d(t,{a:()=>d});var i=s(86975),r=s(95155),n=s(12115),o=s(9382),l=s(68520),a=s(5710),c=s(73086);s(89750);let d=({open:e,onClose:t,children:s,size:i="default",labelledBy:c,ariaLabel:d})=>{let _=(0,n.useRef)(null);return(0,n.useEffect)(()=>{e?document.body.classList.add("noscroll"):document.body.classList.remove("noscroll")},[e]),(0,n.useEffect)(()=>
1{if(!e)return;let t=document.activeElement;return _.current?.focus(),()=>{t instanceof HTMLElement&&t.focus()}},[e]),(0,n.useEffect)(()=>{if(!e)return;let s=e=>{if("Escape"===e.key)return void t();if("Tab"!==e.key)return;let s=_.current;if(!s)return;let i=Array.from(s.querySelectorAll('a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter(e=>"true"!==e.getAttribute("aria-hidden"));if(0===i.length){e.preventDefault(),s.focus();return}let r=i[0],n=i[i.length-1],o=document.activeElement;if(e.shiftKey&&(o===r||o===s)){e.preventDefault(),n.focus();return}e.shiftKey||o!==n||(e.preventDefault(),r.focus())};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[e,t]),(0,r.jsx)(a.N,{children:e&&(0,r.jsx)(h,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>t(),children:(0,r.jsxs)(u,{ref:_,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-label":c?void 0:d,tabIndex:-1,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.3},onClick:e=>e.stopPropagation(),size:i,children:[(0,r.jsx)(m,{type:"button","aria-label":"Close",onClick:()=>t(),children:(0,r.jsx)(l.g,{icon:o.GRI,size:"lg"})}),(0,r.jsx)(v,{children:s})]})})})},h=(0,i.I)(c.PY1.div)({classes:["oxw1k92"]}),u=(0,i.I)(c.PY1.div)({classes:["mhsyv35"],variants:[{props:{size:"large"},className:"mhsyv35-1"}]}),m=(0,i.I)("button")({classes:["c1gicmgf"]}),v=(0,i.I)("div")({classes:["c140sp1v"]})},90913:(e,t,s)=>{"use strict";s.d(t,{o:()=>h});var i=s(86975),r=s(95155),n=s(12115),o=s(97017),l=s(57273),a=s(48739),c=s(65461),d=s(45741);s(94587);let h=({regions:e})=>{let{isOpen:t,toggle:s,regionsSupported:i}=(0,l.G0)(),{isMatching:a}=(0,c.u)("md"),h=(0,o.K)();(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&s(!1)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);let f=Object.entries(i.filter(t=>e.includes(t.value)).reduce((e,t)=>{let s=t.continent||"Other";return{...e,[s]:[...e[s]||[],t]}},{})).reduce((e,[t,s])=>{if("Asia"!==t&&"Americas"!==t)return[...e,{name:t,regions:[...s]}];{let t=e.findIndex(e=>"Asia & Americas"===e.name);return -1!==t?[...e.slice(0,t),{...e[t],regions:[...e[t].regions,...s]},...e.slice(t+1)]:[...e,{name:"Asia & Americas",regions:[...s]}]}},[]);return(0,r.jsx)(d._,{isOpen:t,onClose:s,direction:"bottom",style:{drawer:{height:a?"90%":"85%"}},children:(0,r.jsxs)(u,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(m,{children:"Shipping destination"}),(0,r.jsx)(v,{children:"Select your region so we can ship your device to the correct location."})]}),(0,r.jsx)(_,{style:{gridTemplateColumns:f.length<4?`repeat(${f.length}, 1fr)`:void 0},children:f.map(e=>{let t="Asia & Americas"===e.name?e.regions.reduce((e,t)=>{let s=e.findIndex(e=>e.name===t.continent);return -1!==s?[...e.slice(0,s),{...e[s],regions:[...e[s].regions,t]},...e.slice(s+1)]:[...e,{name:t.continent||"Other",regions:[t]}]},[]):[e];return(0,r.jsx)("div",{children:t.map(e=>(0,r.jsxs)("div",{style:{marginBottom:50},children:[(0,r.jsxs)(P,{children:[(0,r.jsx)("span",{children:e.name}),(0,r.jsx)(b,{width:173})]}),(0,r.jsx)(I,{children:e.regions.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsxs)(p,{onClick:()=>h(e.value),style:{alignItems:e.note?"flex-start":"center"},children:[(0,r.jsx)("img",{src:e.flag,alt:`${e.name} Flag`}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{children:e.name}),e.currency&&(0,r.jsx)("span",{children:e.currency}),e.note&&(0,r.jsx)("span",{children:e.note})]})]},e.name),e.countriesAvailable&&(0,r.jsxs)(E,{children:[(0,r.jsx)("p",{children:"Currently shipping to"}),(0,r.jsx)("div",{children:e.countriesAvailable.map(e=>(0,r.jsx)("span",{children:e},e))})]})]},e.name))})]},e.name))},e.name)})})]})})},u=(0,i.I)("div")({classes:["c17mbsqv"]}),m=(0,i.I)("p")({classes:["t1q0c4l9"]}),v=(0,i.I)("p")({classes:["s15f1x1s"]}),_=(0,i.I)("div")({classes:["c1frvvk6"]}),p=(0,i.I)("div")({classes:["r1fypkkc"]}),E=(0,i.I)("div")({classes:["c1k3jmm0"]}),P=(0,i.I)("div")({classes:["cq6ce8h"]}),b=(0,i.I)(a.c)({classes:["sd3mhtk"]}),I=(0,i.I)("div")({classes:["rnmshiu"]})},97017:(e,t,s)=>{"use strict";s.d(t,{K:()=>o});var i=s(98210),r=s(77004),n=s(51739);let o=()=>{let e=(0,i.usePathname)();return t=>{document.cookie=`NEXT_LOCALE=${t}; max-age=31536000; path=/`;let{routePath:s}=(0,n.$h)(e),i=(0,n.w5)(s,t);"local"===r.h.NEXT_PUBLIC_ENVIRONMENT&&console.info(`[market] chose ${t}; stored it and going to ${i}`),window.location.assign(i)}}}},e=>{e.O(0,[6107,63961,39486,84386,79850,17746,72623,45261,67279,75784,6207,35813,28718,3858,24786,28808,31286,9266,52266,69066,44206,80208,12616,52793,14593,80873,6746,6474,40006,44527,28441,3332,77358],()=>e(e.s=82468)),_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.