PageSourceSearch

https://home.s.id/assets/i18n-link-Bg6Ydwi3.js

js s.id collected 2026-10-01 07:52:44 UTC 1,693 bytes, 1 lines download raw bytes

1import{n as e,t}from"./jsx-runtime-bgSgC5OP.js";import{i as n}from"./navigation-BSxa81b8.js";import{n as r,t as i}from"./i18n-config-CQdkqChJ.js";import{n as a}from"./app-context-C1vkJMnx.js";import{t as o}from"./link-D6NKOQqj.js";e(),r();var s=t(),c=[`gl`,`lo`],l=i.locales,u=[`page`,`auth`,`dashboard`,`form`,`l`,`newsletter`,`payment`,`s`,`security`,`single`,`widget`],d=[`shortener`,`smart-redirect`,`microsite`,`qr-code`,`analytics`,`campaigns`,`subscription`,`about`,`contact`,`careers`,`trust`,`compare`,`solutions`,`resources`,`community`,`developers`,`shop`,`schools`,`industries`];function f(e,t){let n=e.split(`/`).filter(Boolean),r=t?`gl`:`lo`;if(n.length===0)return{surface:r,lang:`en`,isLanding:!1};let i=n[0];return c.includes(i)?{surface:i,lang:n[1]&&l.includes(n[1])?n[1]:`en`,isLanding:!0}:{surface:r,lang:l.includes(i)?i:`en`,isLanding:!1}}function p(e){return(e.startsWith(`/`)?e.slice(1):e).split(`/`)[0]}function m(e){let t=p(e);return u.includes(t)}function h(e){let t=p(e);return d.includes(t)}function g({href:e,...t}){let r=n(),{isGlobal:i}=a(),u=f(r,i),d=e;if(typeof e==`string`&&e.startsWith(`/`)&&!e.startsWith(`http`)){let t=e===`/`?``:e,n=p(e);d=c.includes(n)||l.includes(n)?e:m(e)?`/${u.lang}${t}`:h(e)||e===`/`||u.isLanding?`/${u.surface}/${u.lang}${t}`:`/${u.lang}${t}`}else if(typeof e==`object`&&e.pathname&&e.pathname.startsWith(`/`)&&!e.pathname.startsWith(`http`)){let t=e.pathname===`/`?``:e.pathname,n=p(e.pathname);if(!(c.includes(n)||l.includes(n))){let n;n=m(e.pathname)?`/${u.lang}${t}`:h(e.pathname)||e.pathname===`/`||u.isLanding?`/${u.surface}/${u.lang}${t}`:`/${u.lang}${t}`,d={...e,pathname:n}}}return(0,s.jsx)(o,{href:d,...t})}export{g as t};

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.