PageSourceSearch

https://vectr.com/design/static/js/39.09594004.chunk.js

js vectr.com collected 2026-10-01 08:54:06 UTC 2,375 bytes, 1 lines download raw bytes

1(this["webpackJsonpvectr-next"]=this["webpackJsonpvectr-next"]||[]).push([[39],{466:function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var a=n(111),o=n.n(a),s=n(30),c=n(21);const r=o.a.create({baseURL:"https://api.vectr.com"});r.interceptors.request.use((e=>{if(s.a.requesting.set((e=>e+1)),!1===e.headers.Authorization)delete e.headers.Authorization;else{const t=Object(c.c)();Object(c.b)(t);const n=Object(c.h)();n&&(e.headers.Authorization="Bearer ".concat(n))}return e}),(e=>(s.a.requesting.set((e=>e>0?e-1:0)),Promise.reject(e)))),r.interceptors.response.use((e=>(s.a.requesting.set((e=>e>0?e-1:0)),e)),(e=>{var t,n,a,o;if(s.a.requesting.set((e=>e>0?e-1:0)),e instanceof c.a)return Promise.reject(e);const r=null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.message;return Promise.reject(Object.assign((Array.isArray(r)?r:r?[r]:[null!==(a=e.message)&&void 0!==a?a:e.name]).reduce(((e,t)=>{var n;const a=null!==(n=t.messages)&&void 0!==n?n:t;return[...e,...(Array.isArray(a)?a:[a]).map((e=>{var t;return null!==(t=e.message)&&void 0!==t?t:e}))]}),[]),{status:null===(o=e.response)||void 0===o?void 0:o.status}))}));const i=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{const t=e?"/auth/logout-all":"/auth/logout",n=Object(c.i)();await r.post(t,n?{refresh_token:n}:void 0)}catch(t){console.warn("Logout API call failed:",t)}finally{Object(c.d)(),window.location.href="./login"}};t.a=r},738:function(e,t,n){"use strict";var a=n(0);t.a=function(e){Object(a.useEffect)((function(){null===e||void 0===e||e()}),[])}},888:function(e,t,n){"use strict";n.r(t);n(0);var a=n(36),o=n(738),s=n(103),c=n(466),r=n(21),i=n(4);t.default=()=>{const e=Object(a.h)();return Object(o.a)((()=>{(async()=>{const t=new URLSearchParams(e.search),n=t.get("access_token"),a=t.get("device_choice_required"),o=t.get("code");if(window.history.replaceState({},document.title,window.location.pathname),n)Object(r.n)({access_token:n}),await Object(s.c)(1e3),window.location.href="/design".concat(a?"?showDeviceManagement=true":"");else if(o)try{const{data:e}=await c.a.post("/auth/social/exchange",{code:o},{headers:{Authorization:!1}});Object(r.n)(e),await Object(s.c)(1e3),window.location.href="/design"}catch(i){window.location.replace("./login")}else window.location.replace("./login")})()})),Object(i.jsx)(i.Fragment,{})}}}]);

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.