1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{5557:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(4964)}])},4964:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return d},default:function(){return p}});var s=n(5893),r=n(7294),i=n(7345),o=n(3081),a=n(1163),u=n(435),l=n(1443),c=e=>{let{data:t}=e,{asPath:n}=(0,a.useRouter)(),i=(0,r.useRef)(),[o,c]=(0,r.useState)(!1),[d,p]=(0,r.useState)("Thank you"),[m,$]=(0,r.useState)(!0),[h,f]=(0,r.useState)({}),x=async e=>{if(e.preventDefault(),h.email){let e={submittedAt:new Date().getTime(),fields:Object.entries(h).map(e=>{let[t,n]=e;return{name:t,value:n}}),context:{ipAddress:await (0,l.zk)(),hutk:(0,u.ej)("hubspotutk"),pageUri:n,pageName:"Signup newsletter popup"}},t=await fetch("https://api.hsforms.com/submissions/v3/integration/submit/5392976/611d466f-7d40-4674-bba7-ca5358b6c056",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}),s=await t.json();s.status||""===s.inlineMessage||(c(200),p(s.inlineMessage))}};return((0,r.useEffect)(()=>{"1"===(0,u.ej)("newsletterpopup")?$(!0):$(!1)},[]),m)?null:(0,s.jsx)("div",{className:"newsletter-popup",ref:i,children:(0,s.jsxs)("div",{className:"form",children:[(0,s.jsx)("button",{type:"button",className:"closebtn",onClick:()=>{$(!0),(0,u.d8)("newsletterpopup","1",30)},children:(0,s.jsx)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsxs)("g",{opacity:"0.6",children:[(0,s.jsx)("line",{x1:"1.49497",y1:"1",x2:"14",y2:"13.505",stroke:"black",strokeWidth:"0.7",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("line",{x1:"0.35",y1:"-0.35",x2:"18.0348",y2:"-0.35",transform:"matrix(-0.707107 0.707107 0.707107 0.707107 14 1)",stroke:"black",strokeWidth:"0.7",strokeLinecap:"round",strokeLinejoin:"round"})]})})}),(0,s.jsx)("h2",{children:"Signup for our newsletter"}),(0,s.jsx)("p",{children:"Monthly insights about eCommerce, Shopify Plus and email marketing to grow your business"}),(0,s.jsxs)("form",{method:"post",noValidate:!0,onSubmit:x,children:[(0,s.jsx)("input",{type:"email",name:"email",placeholder:"Email",onChange:e=>{e.preventDefault();let t=e.target.value;f(Object.assign({},h,{email:t}))}}),(0,s.jsx)("input",{type:"submit",className:"send-arrow button-box button-box-black",value:"submit"})]}),200===o?(0,s.jsx)("span",{className:"formresponsemessage",children:d}):null]})})},d=!0,p=e=>{let{pageData:t,commonData:n,formsData:r}=e,{blocks:a,title:u,seoDescription:l}=(null==t?void 0:t.fields)||{};return(0,s.jsxs)(i.Z,{commonData:n,pageSeoDescription:l,pageTitle:u,children:[null==a?void 0:a.filter(e=>null!=e.sys.id).map(e=>(0,s.jsx)(o.Z,{type:e.sys.contentType.sys.id,data:e,formsData:r},e.sys.id)),(0,s.jsx)(c,{})]})}},3963:function(){},1443:function(e,t,n){"use strict";n.d(t,{zk:function(){return v}});let s="[a-fA-F\\d:]",r=e=>e&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${s})|(?<=${s})(?=\\s|$))`:"",i="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",a=` 2(?: 3(?:${o}:){7}(?:${o}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 4(?:${o}:){6}(?:${i}|:${o}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 5(?:${o}:){5}(?::${i}|(?::${o}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4 6(?:${o}:){4}(?:(?::${o}){0,1}:${i}|(?::${o}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4 7(?:${o}:){3}(?:(?::${o}){0,2}:${i}|(?::${o}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4 8(?:${o}:){2}(?:(?::${o}){0,3}:${i}|(?::${o}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4 9(?:${o}:){1}(?:(?::${o}){0,4}:${i}|(?::${o}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 10(?::(?:(?::${o}){0,5}:${i}|(?::${o}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 11)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 12`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),u=RegExp(`(?:^${i}$)|(?:^${a}$)`),l=RegExp(`^${i}$`),c=RegExp(`^${a}$`),d=e=>e&&e.exact?u:RegExp(`(?:${r(e)}${i}${r(e)})|(?:${r(e)}${a}${r(e)})`,"g");function p(e){return d.v6({exact:!0}).test(e)}function m(e){return d.v4({exact:!0}).test(e)}d.v4=e=>e&&e.exact?l:RegExp(`${r(e)}${i}${r(e)}`,"g"),d.v6=e=>e&&e.exact?c:RegExp(`${r(e)}${a}${r(e)}`,"g");var $=n(3963);void 0===$.homedir||$.homedir().replace(/\\/g,"/");
12class h extends Error{constructor(e){super("Could not get the public IP address",e),this.name="IpNotFoundError"}}class f extends Error{constructor(){super("Request was cancelled"),this.name="CancelError"}get isCanceled(){return!0}}let x={timeout:5e3},g={v4:["https://ipv4.icanhazip.com/","https://api.ipify.org/"],v6:["https://ipv6.icanhazip.com/","https://api6.ipify.org/"]},w=(e,t,n)=>{let s;let r=new XMLHttpRequest,i=new Promise((i,o)=>{s=o,r.addEventListener("error",o,{once:!0}),r.addEventListener("timeout",o,{once:!0}),r.addEventListener("load",()=>{let e=r.responseText.trim(),t="v6"===n?p:m;if(!e||!t(e)){o();return}i(e)},{once:!0}),r.open("GET",e),r.timeout=t.timeout,r.send()});return i.cancel=()=>{r.abort(),s(new f)},i},b=(e,t)=>{let n;let s=async function(){let s;let r=[...g[e],...t.fallbackUrls??[]];for(let i of r)try{n=w(i,t,e);let s=await n;return s}catch(e){if(s=e,e instanceof f)throw e}throw new h({cause:s})}();return s.cancel=()=>{n.cancel()},s};function v(e){return b("v4",{...x,...e})}}},function(e){e.O(0,[5130,4705,6584,9774,2888,179],function(){return e(e.s=5557)}),_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.