PageSourceSearch

https://www.axon.com/_next/static/chunks/5489-f7aa64ae6342bd4e.js

js axon.com collected 2026-10-02 02:16:17 UTC 15,147 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5489],{75489:(t,e,n)=>{n.r(e),n.d(e,{__N_SSG:()=>N,default:()=>C,getDynamicStoryblokPageProps:()=>L,loadStoryblokPage:()=>F});var l=n(37876),a=n(77101),o=n(21803),i=n(31941);let r=t=>{var e,n,r,s,c,u,d,g,v,p,h,m,y;let{story:f,locale:w,origin:_,canonicalSEOData:b,country:x}=t;(0,o.MN)({resolveRelations:!0});let j=(0,i.kY)(f,{resolveRelations:o.pQ}),k=(null==j||null==(e=j.content.seo)?void 0:e.title)||(null==j?void 0:j.name),S=null==j||null==(n=j.content.seo)?void 0:n.description,P=(null==j||null==(r=j.content.seo)?void 0:r["og:image"])||(null==j||null==(s=j.content.seo)?void 0:s.og_image)||(null==j||null==(u=j.content)||null==(c=u.thumbnail_image)?void 0:c.filename)||(null==j||null==(d=j.content.main_image)?void 0:d.filename),W=(null==j||null==(g=j.content.seo)?void 0:g["twitter:image"])||(null==j||null==(v=j.content.seo)?void 0:v.twitter_image)||P,R=(null==j?void 0:j.content.seo_no_index_tag)||(t=>(null==t?void 0:t.component)==="Resource"&&"string"==typeof t.external_link&&""!==t.external_link.trim())(null==j?void 0:j.content),A=null==j?void 0:j.content.resource_type,D=(null==j?void 0:j.published_at)||"",O=(null==j?void 0:j.updated_at)||"",T=null==j||null==(p=j.content.schema_markup)?void 0:p.code,E=(null==j||null==(h=j.content)?void 0:h.component)==="Resource";return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.A,{seoTitle:k,seoDescription:S,seoImage:P,twitterSeoImage:W,locale:w,origin:_,canonicalSEOData:b,seoNoIndexTag:R,seoType:A,datePublished:D,dateModified:O,seoSchema:T,showDefaultSchema:E}),(null==j||null==(y=j.content)||null==(m=y.component)?void 0:m.length)>0&&(0,l.jsx)(i.Dp,{blok:null==j?void 0:j.content,index:null==j?void 0:j.content._uid,locale:w,story:j,country:x})]})};var s=n(39744),c=n(89852),u=n.n(c),d=n(99742),g=n(72859),v=n(45025),p=n(13120),h=n(44805);let m=async t=>{let e=(0,g.s3)(t);try{return await (0,v.fV)("canonical:".concat(e),{ttlMs:6e4,staleWhileRevalidateMs:3e5,build:async()=>{var t;let n="canonical:".concat(e),l=await (0,p.mv)(n);if(l&&Date.now()-l.refreshedAt<3e5)return l.value;let a=(t=>{let e="LMZS7JUH1Q",n=d.env.ALGOLIA_API_ADMIN_TOKEN,l="storyblok-index-v2";return e&&n&&l?u()(e,n).initIndex(l):(console.warn("Algolia env vars missing; skipping ".concat(t,".")),null)})("canonical data fetch");if(!a)return null!=(t=null==l?void 0:l.value)?t:[];try{let t=[];await a.browseObjects({attributesToRetrieve:["name","full_slug"],filters:"canonical_path:'".concat(e.replace(/\\/g,"\\\\").replace(/'/g,"\\'"),"'"),batch:e=>{t=t.concat(e)}});let l=t.map(t=>{let e=t.full_slug.split("/"),n=g.zi.includes(e[1])?e[1]:"en-us";return{name:t.name,full_slug:t.full_slug.replace("pages/","").replace(/\/$/,""),lang:n}});return await (0,h._)(()=>(0,p.ze)(n,{value:l,refreshedAt:Date.now()},void 0,p.YW).catch(t=>console.error("Canonical data R2 write failed:",t))),l}catch(t){if(l)return l.value;throw t}}})}catch(t){return console.warn("Algolia canonical data fetch failed; continuing without canonical data."),console.warn(t),[]}};var y=n(36038),f=n(50005),w=n(23622),_=n(53435),b=n(89368),x=n(37871);let j=async t=>{try{var e,n,l,a;let{sbParams:r}=(0,o.MN)({resolveRelations:!0}),s=(0,i._8)();r.cv=await (0,x._x)();try{let l=await s.get("cdn/stories/global/help/default-global-settings",t&&"en"!==t?{...r,language:t}:r);return(null==l||null==(n=l.data)||null==(e=n.story)?void 0:e.content)||null}catch(n){if(!t||"en"===t)throw n;let e=await s.get("cdn/stories/global/help/default-global-settings",r);return(null==e||null==(a=e.data)||null==(l=a.story)?void 0:l.content)||null}}catch(t){return console.error("could not fetch Global Settings data"),console.error(t),null}};var k=n(98139),S=n(21014),P=n(55694);let W=t=>{var e,n;if(t&&"object"==typeof t)return null!=(n=t.status)?n:null==(e=t.response)?void 0:e.status},R=t=>404===W(t),A=t=>{let e=W(t);return(t=>429===W(t)||"Too Many Requests"===("string"==typeof t?t:t&&"object"==typeof t&&"message"in t?t.message:void 0))(t)||void 0!==e&&e>=500||t instanceof Error&&"TimeoutError"===t.name},D=(t,e,n,l)=>{let a,o="published-story:".concat(e,":").concat(t),i=!1;return(0,v.fV)("".concat(o,":").concat(n),{ttlMs:9e5,staleWhileRevalidateMs:36e5,build:async()=>{let t=await (0,p.mv)(o);
1if(i=!0,a=null==t?void 0:t.value,(null==t?void 0:t.version)===n)return t.value;let e=await l();return await (0,h._)(()=>(0,p.ze)(o,{version:n,value:e},void 0,p.YW).catch(async t=>{if((0,S.H)(t)){let t=await (0,p.mv)(o);if((null==t?void 0:t.version)===n)return}console.error("Published story R2 write failed:",(0,P.N)(t))})),e}}).catch(async t=>{if(!A(t))throw t;if(!i){var e;a=null==(e=await (0,p.mv)(o))?void 0:e.value}if(null!=a)return console.warn("Serving previous published story after transient Storyblok failure: ".concat(o)),a;throw t})};var O=n(57802);let T=/\.(?:js|mjs|css|map|svg|png|jpe?g|gif|webp|avif|ico|woff2?|ttf|eot|json|php|ya?ml|rdb|conf|hcl|prisma|sql|ini|env|txt|enc)$/i,E=/(?:^|\/)\.[^/]+(?:\/|$)/;var I=n(99742),M=n(82909).Buffer,N=!0;function C(t){let e=(0,b.useTranslations)("resources");if(t.pageComponent)return(0,l.jsx)(r,{...t});if(t.resourceCategoryPage){var n;let o=null==(n=t.category.langData)?void 0:n.name,i=e("resource_category"),r="".concat(i,": ").concat(o),c=encodeURI("".concat(t.origin,"/api/og?topic=").concat(i,"&title=").concat(r));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.A,{seoTitle:r,seoDescription:"Resources Category: ".concat(o),seoImage:c,locale:t.locale,origin:t.origin,canonicalSEOData:t.canonicalSEOData}),(0,l.jsx)(s.A,{...t})]})}}let L=t=>F({params:t.params,locale:t.locale,query:t.query});async function F(t){var e,l,a,r,s,c,u,d,v,p,h,b,S,P,W;let N,C="true"===I.env.AXON_911_MODE;console.log("is911Mode:",C);let L=t.locale||"en",F=Array.isArray(null==(e=t.params)?void 0:e.slug)?null==(l=t.params)?void 0:l.slug.join("/"):null==(a=t.params)?void 0:a.slug;if((null==F?void 0:F.startsWith(".well-known/"))||(N=F)&&(T.test(N)||E.test(N)))return{notFound:!0};let{sbParams:U,preview:q}=(0,o.MN)({resolveRelations:!0}),$=(0,i._8)(),z=(0,_.L)();console.log("\uD83D\uDE80 ~ loadStoryblokPage ~ locale:",L),console.log("\uD83D\uDE80 ~ loadStoryblokPage ~ slug:",F);let V=F;void 0===F&&C?F="911-com/home":void 0===F&&"en"!==L?F="pages/".concat(L,"/"):F&&(null==F?void 0:F.startsWith("pages"))&&"en"!==L?F="pages/".concat(L,"/").concat(F.substr(6)):void 0===F&&"en"===L?F="pages/home":(null==F?void 0:F.startsWith("pages"))||(null==F?void 0:F.startsWith("translations"))||C&&(null==F?void 0:F.startsWith("911-com"))||"en"!==L?(null==F?void 0:F.startsWith("pages"))||(null==F?void 0:F.startsWith("translations"))||C&&(null==F?void 0:F.startsWith("911-com"))||(F="pages/".concat(L,"/").concat(F)):F="pages/".concat(F);let G=F.replace(/^pages\//,"").split("/"),Y="911-com"===G[0]||G[0]===L&&"911-com"===G[1];if(C?!Y:Y)return{notFound:!0};let H=m(F);try{let e;if(I.env.STORYBLOK_PREVIEW_TOKEN&&"1"===t.query.__dev_preview&&t.query.data){let{gunzip:e}=await Promise.all([n.e(8994),n.e(6940)]).then(n.t.bind(n,86940,23)),{promisify:l}=await n.e(8994).then(n.t.bind(n,68994,23)),a=l(e),i=t.query.data.replace(/-/g,"+").replace(/_/g,"/"),r=new Uint8Array(M.from(i,"base64")),s=await a(r),c=JSON.parse(s.toString()).story,u=c.content,d=await (0,g.wT)(L),v={title:(null==u?void 0:u.button_title)||"",link:(0,o.L8)(null==u?void 0:u.button_link),buttonVariant:(null==u?void 0:u.button_variant)||"black",target:(null==u||null==(p=u.button_link)?void 0:p.target)||"_self"},h=await (0,y.xy)({navbarStoryUuid:null==u?void 0:u.navbar_reference,navbarCtaButton:v,locale:L});return{props:{pageComponent:!0,resourceCategoryPage:!1,canonicalSEOData:await H,story:c,storyId:c.id,locale:L,origin:z,locales:d,helpGlobalSettingsData:null,slug:F,hideFooter:(null==u?void 0:u.hide_footer)||null,hideNavbar:(null==u?void 0:u.hide_navbar)||null,navbarData:(0,y.Z$)(h),footerTheme:(null==u?void 0:u.footer_theme)||"white"}}}let{version:l,spaceId:a}=await (0,k.wj)((0,x.Uq)(),1e4);U.cv=l;let i=V;i&&i.startsWith("pages")?i=i.replace("pages","translations"):i&&!i.startsWith("translations")&&(i="translations/".concat(i));let m="pages",f=null!=(h=null==V?void 0:V.startsWith("translations"))&&h,w=null!=(b=null==V?void 0:V.startsWith("pages"))&&b,_=f||w;if(i&&(!_||f))try{let t=async()=>{try{return console.log("fetching translation (if available)...","cdn/stories/".concat(i)),{story:(await (0,k.wj)($.get("cdn/stories/".concat(i),{...U,language:L},q?{cache:"no-store"}:void 0),1e4)).data}}catch(t){if(!q&&!_&&R(t))return{story:null};throw t}};(e=(q||_?await t():await D(i,L,U.cv,t)).story)&&(m="translation")}catch(t){if(!A(t)||q||_)if(R(t))console.log("Translations not found for: cdn/stories/".concat(i));else throw t;else e=await D(F,L,U.cv,async()=>{throw t}),m="pages"}if(!e){let t=async()=>(console.log("fetching...","cdn/stories/".concat(F)),(await (0,k.wj)($.get("cdn/stories/".concat(F),f?{...U,language:L}:U,q?{cache:"no-store"}:void 0),1e4)).data);e=q||_?await t():await D(F,L,U.cv,t),m=f?"translation":"pages"}let T=null==e||null==(r=e.story)?void 0:r.content,E=null==T?void 0:T.footer_theme,N=(null==T?void 0:T.hide_footer)||null,C=(null==T?void 0:T.hide_navbar)||null,G=null;if((null==(c=e.story)||null==(s=c.content)?void 0:s.component)==="Resource"){let t=null==(P=e.story)||null==(S=P.content)?void 0:S.resource_type;("product-guide"===t||"training"===t||"release-note"===t)&&(G=await j(L))}let Y=await (0,g.wT)(L),K={title:(null==T?void 0:T.button_title)||"",link:(0,o.L8)(null==T?void 0:T.button_link),buttonVariant:(null==T?void 0:T.button_variant)||"black",target:(null==T||null==(u=T.button_link)?void 0:u.target)||"_self"},Z=await (0,y.xy)({navbarStoryUuid:null==T?void 0:T.navbar_reference,navbarStorySlug:(0,O.X)(F,L),navbarCtaButton:K,locale:L}),B={originalSlug:null!=V?V:null,locale:L,translationSlugChecked:null!=i?i:null,resolvedFrom:m,finalSlug:F,isExplicitPath:_,slugIsTranslation:!!f,
1slugIsPages:!!w,storyId:null==e||null==(d=e.story)?void 0:d.id,storyFullSlug:null!=(W=null==e||null==(v=e.story)?void 0:v.full_slug)?W:"",spaceId:a};return{props:{pageComponent:!0,resourceCategoryPage:!1,canonicalSEOData:await H,story:null==e?void 0:e.story,storyId:!!e&&e.story.id,locale:L,origin:z,locales:Y,helpGlobalSettingsData:G,slug:F,hideFooter:N,hideNavbar:C,navbarData:(0,y.Z$)(Z),footerTheme:E||"white",_axonHelperDebug:B}}}catch(e){if(!R(e))throw e;let t=(null==V?void 0:V.includes("category/"))?V.split("/category/")[1]:void 0;if(!t)return{notFound:!0};try{let{category:e}=await (0,f.ls)(t,L);if(!e)return{notFound:!0};let n=await (0,g.wT)(L),l=await (0,w.F3)({[e.facet]:e.name});return{props:{pageComponent:!1,resourceCategoryPage:!0,locale:L,canonicalSEOData:await H,categories:{[e.facet]:e.name},category:e,origin:z,hideFooter:!1,hideNavbar:!1,footer_theme:"white",locales:n,featuredResourcesInput:l}}}catch(t){throw t}}}},77101:(t,e,n)=>{n.d(e,{A:()=>s});var l=n(37876),a=n(72859),o=n(34824),i=n(77328),r=n.n(i);let s=t=>{let e,{debug:n,seoImage:i,twitterSeoImage:s,seoTitle:c,seoDescription:u,seoType:d="article",twitterSeoTitle:g,locale:v,rssFeed:p,origin:h,canonicalSEOData:m,seoNoIndexTag:y,datePublished:f,dateModified:w,seoSchema:_,showDefaultSchema:b=!1}=t,x=(0,o.useRouter)(),j="Axon.com";"en"!==v&&(j="Axon.com | ".concat(null==v?void 0:v.toUpperCase()));let k=c?"".concat(c," - ").concat(j):j,S="https://www.axon.com";if(x){let t=v||x.locale||"",e=new URL(S=(S=(S="en"===t?"".concat(S).concat(x.asPath):"".concat(S,"/").concat(t).concat(x.asPath)).endsWith("//")?S.slice(0,-1):S).replace(/\/$/,""));S=e.origin+e.pathname}let P=i;(null==i?void 0:i.includes("storyblok"))&&(P=i?i+"/m/1230x630":i);let W=s;(null==s?void 0:s.includes("storyblok"))&&(W=s?s+"/m/1230x630":s);let R=(null==x?void 0:x.asPath)||"",A=R.split("?")[0],D=R.includes("?");function O(t){return t.startsWith("/careers/all")||t.startsWith("/resources/all"),!1}let T=h?v&&"en"!==v?"".concat(h,"/").concat(v).concat((null==x?void 0:x.asPath)||""):"".concat(h).concat((null==x?void 0:x.asPath)||""):S;try{let t=new URL(T,h||"https://www.axon.com");T=O(t.pathname)?t.origin+t.pathname+t.search:t.origin+t.pathname}catch(t){T=O(T)?T.split("#")[0]:T.split("?")[0]}return T.length>1&&T.endsWith("/")&&(T=T.slice(0,-1)),_?e=_:b&&(e='\n          {\n            "@context": "https://schema.org",\n            "@type": "Article",\n            "headline": "'.concat(c,'",\n            "description": "').concat(u,'",\n            "image": [\n              "').concat(P,'"\n            ],\n            "genre": "').concat(d,'",\n            "publisher": {\n              "@type": "Organization",\n              "name": "Axon",\n              "logo": {\n                "@type": "ImageObject",\n                "url": "').concat("https://www.axon.com/public/images/logo-axon-delta.svg",'"\n              }\n            },\n            "url": "').concat(S,'",\n            "mainEntityOfPage": {\n              "@type": "WebPage",\n              "@id":  "').concat(S,'"\n            },\n            "datePublished": "').concat(f,'",\n            "dateModified": "').concat(w,'"\n          }\n    ')),(0,l.jsxs)(r(),{children:[(0,l.jsx)("title",{children:k}),u?(0,l.jsx)("meta",{name:"description",content:u}):null,(0,l.jsx)("link",{rel:"canonical",href:T}),h&&m&&m.length>1&&m.some(t=>"en-us"===t.lang)&&(()=>{let t=h+((null==x?void 0:x.asPath)||"");try{let e=new URL(t,h);t=O(e.pathname)?e.origin+e.pathname+e.search:e.origin+e.pathname}catch(e){O(t),t=t.split("#")[0]}return t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),(0,l.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:t})})(),m&&m.length>1&&h?m.map((t,e)=>{let n=t.full_slug.replace("home",""),o="".concat(h,"/").concat(n).replace(/\/$/,"");try{let t=new URL(o,h||"https://www.axon.com"),e=t.pathname,n="";O(e)&&(null==x?void 0:x.asPath)&&x.asPath.includes("?")?n=x.asPath.substring(x.asPath.indexOf("?")):O(t.pathname)&&(n=t.search),o=O(e)?t.origin+t.pathname+n:t.origin+t.pathname}catch(t){o=O(o)?o.split("#")[0]:o.split("?")[0]}return o.length>1&&o.endsWith("/")&&(o=o.slice(0,-1)),(0,l.jsx)("link",{rel:"alternate",href:o,hrefLang:(0,a.yc)(t.lang)},e)}):null,(0,l.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),y||D&&("/careers/all"===A||"/resources/all"===A)?(0,l.jsx)("meta",{name:"robots",content:"noindex,follow"}):null,(0,l.jsx)("meta",{property:"og:type",content:d}),(0,l.jsx)("meta",{property:"og:title",content:k}),u?(0,l.jsx)("meta",{property:"og:description",content:u}):null,P?(0,l.jsx)("meta",{property:"og:image",content:P}):null,(0,l.jsx)("meta",{property:"og:url",content:S}),(0,l.jsx)("meta",{property:"og:site_name",content:j}),(0,l.jsx)("meta",{name:"twitter:title",content:null!=g?g:k}),u?(0,l.jsx)("meta",{name:"twitter:description",content:u}):null,W?(0,l.jsx)("meta",{name:"twitter:image",content:W}):null,(0,l.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,l.jsx)("meta",{name:"twitter:site",content:"@axon_us"}),(null==p?void 0:p.title)?(0,l.jsx)("link",{rel:"alternate",type:"application/rss+xml",title:p.title,href:p.link}):null,e&&(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:e}})]})}}}]);

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.