PageSourceSearch

https://partner.rockbrosbike.us/assets/DevPage-DpVs4C84.js

js rockbrosbike.us collected 2026-10-04 13:30:31 UTC 1,402 bytes, 2 lines download raw bytes

1import{r as o,g as m,a as u,s as a,b as j,c,j as e,I as p,C as k}from"./index-BPR3l8qa.js";function N(){const[x,l]=o.useState(m("x-shop")),[v,r]=o.useState(u()),[t,f]=o.useState(!!m("isdev"));if(o.useEffect(()=>{t?a("isdev","1"):j("isdev")},[t]),document.location.hostname!=="localhost")return window.location.href="http://localhost:3001/dev?access_token=".concat(u(),"&x-shop=").concat(document.location.hostname),null;const n=new URL(document.location.href).searchParams;if(n.has("access_token"))return c(n.get("access_token")),a("x-shop",n.get("x-shop")),window.location.href="/",null;const g=s=>{if(s.includes("login-as")){const i=new URL(s),d=i.pathname.split("/").pop(),h=i.hostname;r(d),c(d),l(h),a("x-shop",h)}else l(s),a("x-shop",s)};return e.jsx("div",{className:"container",children:e.jsx("div",{className:"py-4",children:e.jsx("div",{className:"card",children:e.jsxs("div",{className:"card-body",children:[e.jsxs("div",{className:"form-group",children:[e.jsx("label",{children:"Portal subdomain"}),e.jsx(p,{type:"text",value:x,onChange:g})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{children:"Auth token"}),e.jsx(p,{type:"text",value:v,onChange:s=>{r(s),c(s)}})]}),e.jsx("div",{className:"form-group",children:e.jsx(k,{label:"Development mode ?",checked:t,onChange:s=>f(s.target.checked)})})]})})})})}export{N as default};
2//# sourceMappingURL=DevPage-DpVs4C84.js.map

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.