PageSourceSearch

https://www.fortanix.com/_next/static/chunks/pages/_app-127653a5b9d42c76.js

js fortanix.com collected 2026-09-24 08:33:50 UTC 5,468 bytes, 4 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{7035:()=>{},32529:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var r=n(37876);n(51678),n(7035);var i=n(14232),o=n(62748);function a(){return(0,i.useEffect)(()=>{(0,o.dg)()},[]),null}var l=n(45105),c=n.n(l);function s(){let[t,e]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{if(t)return;let n=()=>e(!0),r={once:!0,passive:!0},i=["click","keydown","mousemove","scroll","touchstart"];return i.forEach(t=>{window.addEventListener(t,n,r)}),()=>{i.forEach(t=>{window.removeEventListener(t,n,r)})}},[t]),t)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c(),{id:"gtm-init",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:`
2            window.dataLayer = window.dataLayer || [];
3            window.dataLayer.push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
4          `}}),(0,r.jsx)(c(),{id:"gtm-script",src:"https://www.googletagmanager.com/gtm.js?id=GTM-PJNLL4W",strategy:"lazyOnload"}),(0,r.jsx)(c(),{id:"hs-script-loader",src:"https://js.hs-scripts.com/3435228.js",strategy:"lazyOnload"})]}):null}let u=function({Component:t,pageProps:e}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{}),(0,r.jsx)(a,{}),(0,r.jsx)(t,{...e})]})}},45105:(t,e,n)=>{t.exports=n(13209)},51678:()=>{},56556:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(32529)}])},62748:(t,e,n)=>{"use strict";n.d(e,{KK:()=>b,bN:()=>$,dg:()=>D,ij:()=>E,k_:()=>U});let r="algolia_visitor_id",i="fortanix_hs_known_email",o="last_algolia_search_query",a="last_algolia_clicked_title",l="last_algolia_clicked_url",c="last_algolia_index",s="last_algolia_query_id",u="algolia_search_history",d="algolia_click_history",f=null,_=null,g="";function h(){return"u">typeof document}function m(t){return String(t||"").trim()}function w(t,e=5e3){let n=m(t);return n.length<=e?n:`${n.slice(0,e-3)}...`}function p(t){if(!h())return"";let e=document.cookie.split("; ").find(e=>e.startsWith(`${t}=`));return e?decodeURIComponent(e.split("=")[1]):""}function y(t,e,n){if(!h())return;let r=new Date(Date.now()+864e5*n).toUTCString(),i=function(){if(!h())return"";let t=window.location.hostname;return"localhost"===t||"127.0.0.1"===t?"":t.endsWith("fortanix.com")?".fortanix.com":""}(),o=[`${t}=${encodeURIComponent(e||"")}`,`expires=${r}`,"path=/","SameSite=Lax"];i&&o.push(`domain=${i}`),h()&&"https:"===window.location.protocol&&o.push("Secure"),document.cookie=o.join("; ")}function v(t){if(!h())return"";try{return window.localStorage.getItem(t)||""}catch(t){return""}}function k(t,e){if(h())try{window.localStorage.setItem(t,e||"")}catch(t){}}function j(t){let e=v(t);if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(t){return[]}}function x(t,e){let n=[...j(t),{...e,pageUrl:window.location.href,timestamp:new Date().toISOString()}].slice(-10);return k(t,JSON.stringify(n||[])),n}function S(){if(!h())return"";let t=v(r)||p(r);if(t)return k(r,t),y(r,t,365),t;let e=window.crypto&&window.crypto.randomUUID?`visitor_${window.crypto.randomUUID()}`:`visitor_${Date.now()}_${Math.random().toString(36).slice(2)}`;return k(r,e),y(r,e,365),e}function T(){return v(i)||p(i)}function N(t,e){let n=w(e);k(t,n),y(t,n,30)}function O(){let t=S(),e=j(u),n=j(d);return{algolia_visitor_id:t,last_algolia_search_query:v(o)||p(o),last_algolia_clicked_title:v(a)||p(a),last_algolia_clicked_url:v(l)||p(l),last_algolia_index:v(c)||p(c),last_algolia_query_id:v(s)||p(s),algolia_search_history:w(JSON.stringify(e)),algolia_click_history:w(JSON.stringify(n))}}function $(t){if(!h()||!t)return t;try{let e=new URL(t,window.location.origin);if("resources.fortanix.com"!==e.hostname)return t;let n=O();return Object.keys(n).forEach(t=>{n[t]&&e.searchParams.set(t,n[t])}),e.toString()}catch(e){return t}}function E(t,e){t&&t.currentTarget&&(t.currentTarget.href=$(e||t.currentTarget.href))}async function I(){if(!h())return"";let t=T();if(t)return t;let e=S();return e?_||(_=fetch(`/api/hubspot/resolve-contact-by-visitor?algoliaVisitorId=${encodeURIComponent(e)}`).then(t=>t.ok?t.json():null).then(t=>{let e,n=t&&t.email?t.email:"";return n&&(e=m(n).toLowerCase())&&(k(i,e),y(i,e,365)),n}).catch(()=>"").finally(()=>{_=null})):""}function L(t={}){if(!h())return;let e=!0===t.useBeacon,n=!0===t.immediate,r=async()=>{let t=T();if(t||(t=await I()),t)return function(t,e){let n="/api/hubspot/update-algolia-activity",r=JSON.stringify(t);if(e&&navigator.sendBeacon){let t=new Blob([r],{type:"application/json"});if(navigator.sendBeacon(n,t))return Promise.resolve()}return fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:r,keepalive:e}).catch(()=>{})}({email:t,...O()},e)};n?r():(f&&clearTimeout(f),f=setTimeout(r,2500))}function U({query:t,indexName:e,source:n}){if(!h())return;let r=m(t);if(!r||r.length<3)return;let i=`${r}|${e||""}|${n||""}`;i!==g&&(g=i,S(),k(o,r),k(c,e||""),x(u,{query:r,indexName:e||"",source:n||""}),f&&clearTimeout(f),f=setTimeout(()=>{y(o,r,30),y(c,e||"",30),L({immediate:!1,useBeacon:!1})},2500))}function b({query:t,indexName:e,objectID:n,title:r,url:i,queryID:u,position:f,source:_}){h()&&(S(),N(a,r||""),N(l,i||""),N(c,e||""),N(s,u||""),x(d,{query:t||v(o),indexName:e||"",objectID:n||"",title:r||"",url:i||"",queryID:u||"",position:f||"",source:_||""}),L({immediate:!0,useBeacon:!0}))}function D(){if(!h())return;let t=S();window.aa&&t&&window.aa("setUserToken",t),I()}}},t=>{var e=e=>t(t.s=e);t.O(0,[6593,8792],()=>(e(56556),e(59603))),_N_E=t.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.