PageSourceSearch

https://www.guycameron.me/vite/assets/Editor-sbpnT0CJ.js

js guycameron.me collected 2026-09-29 11:55:46 UTC 11,004 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SitePage-Cfvf9HsB.js","assets/RenderReact-D01794dB.js","assets/index-BrgB-2s_.js","assets/getAuthenticityToken-CMfMkA-b.js","assets/index-CFcgNnu0.js","assets/index-Bfjrilrr.js","assets/refreshPreview-BuhiaIfi.js","assets/clsx-B7rjN5bm.js","assets/isObjectLike-nLWjQ9zq.js","assets/ConfigTanstackQuery-vtCUV_at.js","assets/iconify-DOvuEbFR.js","assets/index.prod-DA3Fci0A.js","assets/index-Bi5lei3d.js","assets/index-B4Qbta6p.css","assets/CurrentSiteIdContext-MK8CVTxU.js","assets/connectToChild-CYVGlWxw.js","assets/index.esm-BxfKy9L_.js","assets/inflection-CWKxl8AH.js","assets/isEmpty-DlXo6s1t.js","assets/AboutApi-DmUH4GHw.js","assets/SitePage-CvCSNA2V.css"])))=>i.map(i=>d[i]);
2import{R,a as X,j}from"./RenderReact-D01794dB.js";import{p as Y,C as Z}from"./ConfigTanstackQuery-vtCUV_at.js";import{C as q}from"./ConfigAccount-Egq9Y64d.js";import{S as k,_ as B,c as tt,R as _,a as et,b as A,d as C,e as D,i as z,m as K,f as rt,M as nt,P as ot,g as W,h as E,j as at,k as F,l as it,u as st,n as ct,o as ut,p as lt,w as ft,q as pt,s as vt,C as dt}from"./index-Bi5lei3d.js";import{e as ht,u as mt,a as yt,b as gt,C as Lt}from"./getAuthenticityToken-CMfMkA-b.js";import{a8 as I,T as jt,Q as Pt}from"./index-BrgB-2s_.js";import{i as Ot}from"./isEmpty-DlXo6s1t.js";function xt(e){return{type:ht.RECEIVE_SITES,payload:{sites:e}}}const Rt={receiveSites:xt};function bt(){return async function(e,c){return k.getAll().then(l=>l.data).then(l=>e(Rt.receiveSites(l)))}}const St={fetchSites:bt};var Q=function(e){B(c,e);function c(){for(var m,P=arguments.length,x=new Array(P),s=0;s<P;s++)x[s]=arguments[s];return m=e.call.apply(e,[this].concat(x))||this,m.history=tt(m.props),m}var l=c.prototype;return l.render=function(){return R.createElement(_,{history:this.history,children:this.props.children})},c}(R.Component),wt=function(e){B(c,e);function c(){for(var m,P=arguments.length,x=new Array(P),s=0;s<P;s++)x[s]=arguments[s];return m=e.call.apply(e,[this].concat(x))||this,m.history=et(m.props),m}var l=c.prototype;return l.render=function(){return R.createElement(_,{history:this.history,children:this.props.children})},c}(R.Component),N=function(c,l){return typeof c=="function"?c(l):c},V=function(c,l){return typeof c=="string"?rt(c,null,null,l):c},$=function(c){return c},S=R.forwardRef;typeof S>"u"&&(S=$);function Et(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Ct=S(function(e,c){var l=e.innerRef,m=e.navigate,P=e.onClick,x=A(e,["innerRef","navigate","onClick"]),s=x.target,n=C({},x,{onClick:function(t){try{P&&P(t)}catch(o){throw t.preventDefault(),o}!t.defaultPrevented&&t.button===0&&(!s||s==="_self")&&!Et(t)&&(t.preventDefault(),m())}});return $!==S?n.ref=c||l:n.ref=l,R.createElement("a",n)}),G=S(function(e,c){var l=e.component,m=l===void 0?Ct:l,P=e.replace,x=e.to,s=e.innerRef,n=A(e,["component","replace","to","innerRef"]);return R.createElement(D.Consumer,null,function(r){r||z();var t=r.history,o=V(N(x,r.location),r.location),d=o?t.createHref(o):"",g=C({},n,{href:d,navigate:function(){var L=N(x,r.location),i=P?t.replace:t.push;i(L)}});return $!==S?g.ref=c||s:g.innerRef=s,R.createElement(m,g)})}),U=function(c){return c},M=R.forwardRef;typeof M>"u"&&(M=U);function Mt(){for(var e=arguments.length,c=new Array(e),l=0;l<e;l++)c[l]=arguments[l];return c.filter(function(m){return m}).join(" ")}var Tt=M(function(e,c){var l=e["aria-current"],m=l===void 0?"page":l,P=e.activeClassName,x=P===void 0?"active":P,s=e.activeStyle,n=e.className,r=e.exact,t=e.isActive,o=e.location,d=e.strict,g=e.style,p=e.to,L=e.innerRef,i=A(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return R.createElement(D.Consumer,null,function(a){a||z();var f=o||a.location,y=V(N(p,f),f),u=y.pathname,h=u&&u.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),v=h?K(f.pathname,{path:h,exact:r,strict:d}):null,O=!!(t?t(v,f):v),b=O?Mt(n,x):n,w=O?C({},g,{},s):g,T=C({"aria-current":O&&m||null,className:b,style:w,to:y},i);return U!==M?T.ref=c||L:T.innerRef=L,R.createElement(G,T)})});const Nt=Object.freeze(Object.defineProperty({__proto__:null,BrowserRouter:Q,HashRouter:wt,Link:G,MemoryRouter:nt,NavLink:Tt,Prompt:ot,Redirect:W,Route:E,Router:_,StaticRouter:at,Switch:F,__RouterContext:D,generatePath:it,matchPath:K,useHistory:st,useLocation:ct,useParams:ut,useRouteMatch:lt,withRouter:ft},Symbol.toStringTag,{value:"Module"}));var J={exports:{}};const _t=I(Nt),At=I(pt);(function(e,c){(function(m,P){e.exports=P(X,_t,Y,At)})(jt,function(l,m,P,x){return function(s){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return s[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=s,r.c=n,r.d=function(t,o,d){r.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:d})},r.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,o){if(o&1&&(t=r(t)),o&8||o&4&&typeof t=="object"&&t&&t.__esModule)return t;var d=Object.create(null);if(r.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:t}),o&2&&typeof t!="string")for(var g in t)r.d(d,g,(function(p){return t[p]}).bind(null,g));return d},r.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(o,"a",o),o},r.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},r.p="",r(r.s=4)}([function(s,n){s.exports=l},function(s,n){s.exports=m},function(s,n,r){var t=this&&this.__extends||function(){var u=function(h,v){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,b){O.__proto__=b}||function(O,b){for(var w in b)b.hasOwnProperty(w)&&(O[w]=b[w])},u(h,v)};return function(h,v){u(h,v);function O(){this.constructor=h}h.prototype=v===null?Object.create(v):(O.prototype=v.prototype,new O)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(u){for(var h,v=1,O=arguments.length;v<O;v++){h=arguments[v];for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(u[b]=h[b])}return u},o.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var d=r(0),g=r(6),p=r(1),L=r(3),i=r(7),a=null,f=function(u){var h=u.location,v=u.nextLocation,O=u.watchOnlyPathname;if(h!==null&&v!==h&&!(O&&h.pathname===v.pathname)){if(i.shouldPrevent(v)&&!i.hasBeenPrevented(v)){i.prevent(v);return}a=o({},h)}},y=function(u){t(h,u);function h(){var v=u!==null&&u.apply(this,arguments)||this;return v.state={currentLocation:null},v}return h.getDerivedStateFromProps=function(v,O){return f({location:O.currentLocation,nextLocation:v.location,watchOnlyPathname:v.watchOnlyPathname}),{currentLocation:v.location}},h.prototype.render=function(){var v=this.props.children;return d.createElement(L.default.Provider,{value:a},v)},h.propTypes={watchOnlyPathname:g.bool,children:g.node.isRequired},h.defaultProps={watchOnlyPathname:!1},h}(d.Component);n.getLastLocation=function(){return a},n.setLastLocation=function(u){a=u},n.default=p.withRouter(y)},function(s,n,r){Object.defineProperty(n,"__esModule",{value:!0});var t=r(0),o=t.createContext(null);n.default=o},function(s,n,r){Object.defineProperty(n,"__esModule",{value:!0});var t=r(5);n.withLastLocation=t.default;var o=r(2);n.LastLocationProvider=o.default;var d=r(8);n.useLastLocation=d.default;var g=r(9);n.RedirectWithoutLastLocation=g.default},function(s,n,r){var t=this&&this.__assign||function(){return t=Object.assign||function(i){for(var a,f=1,y=arguments.length;f<y;f++){a=arguments[f];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])}return i},t.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var o=r(0),d=r(1),g=r(2);function p(i){return i.displayName||i.name||"Component"}var L=function(i){var a=function(f){return o.createElement(i,t({lastLocation:g.getLastLocation()},f))};return a.displayName="WithLastLocation("+p(i)+")",d.withRouter(a)};n.default=L},function(s,n){s.exports=P},function(s,n,r){var t=this&&this.__rest||function(p,L){var i={};for(var a in p)Object.prototype.hasOwnProperty.call(p,a)&&L.indexOf(a)<0&&(i[a]=p[a]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,a=Object.getOwnPropertySymbols(p);f<a.length;f++)L.indexOf(a[f])<0&&Object.prototype.propertyIsEnumerable.call(p,a[f])&&(i[a[f]]=p[a[f]]);return i};Object.defineProperty(n,"__esModule",{value:!0});var o=["key","pathname","search","hash"],d=function(p,L){return o.every(function(i){return p[i]===L[i]})},g=[];n.prevent=function(p){p.state;var L=t(p,["state"]);g.push(L)},n.hasBeenPrevented=function(p){return g.some(function(L){return d(p,L)})},n.shouldPrevent=function(p){return!!(p.state&&p.state.preventLastLocation)}},function(s,n,r){Object.defineProperty(n,"__esModule",{value:!0});var t=r(0),o=r(3);function d(){return t.useContext(o.default)}n.default=d},function(s,n,r){var t=this&&this.__assign||function(){return t=Object.assign||function(i){for(var a,f=1,y=arguments.length;f<y;f++){a=arguments[f];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])}return i},t.apply(this,arguments)},o=this&&this.__rest||function(i,a){var f={};for(var y in i)Object.prototype.hasOwnProperty.call(i,y)&&a.indexOf(y)<0&&(f[y]=i[y]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,y=Object.getOwnPropertySymbols(i);u<y.length;u++)a.indexOf(y[u])<0&&Object.prototype.propertyIsEnumerable.call(i,y[u])&&(f[y[u]]=i[y[u]]);return f};Object.defineProperty(n,"__esModule",{value:!0});var d=r(0),g=r(1),p=r(10),L=function(i){var a=i.to,f=o(i,["to"]),y;
2return typeof a=="string"?y=p.createLocation(a,{preventLastLocation:!0}):y=t({},a,{state:t({preventLastLocation:!0},a.state)}),d.createElement(g.Redirect,t({},f,{to:y}))};n.default=L},function(s,n){s.exports=x}])})})(J);var Dt=J.exports;function H(){const e=mt(),c=yt(m=>m.sites);if(R.useEffect(()=>{e(St.fetchSites())},[]),gt(c))return null;if(Ot(c))return vt("/onboarding/demo",{method:"POST"}),null;const l=c[0];return j.jsx(W,{to:`/sites/${l.id}`})}const $t=R.lazy(()=>Pt(()=>import("./SitePage-Cfvf9HsB.js").then(e=>e.e),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])));function Ht(){return j.jsx(Q,{basename:"/editor",children:j.jsx(Dt.LastLocationProvider,{children:j.jsx(R.Suspense,{fallback:j.jsx(Bt,{}),children:j.jsxs(F,{children:[j.jsx(E,{path:"/sites/:siteId",children:j.jsx($t,{})}),j.jsx(E,{exact:!0,path:"/sites",children:j.jsx(H,{})}),j.jsx(E,{exact:!0,path:"/",children:j.jsx(H,{})})]})})})})}function Bt(){return j.jsx("div",{className:"flex flex-row items-center justify-center",style:{position:"fixed",inset:0},children:j.jsx("div",{className:"loading loading-lg loading-spinner"})})}function zt(){return j.jsx(Z,{children:j.jsx(Lt,{children:j.jsx(q,{children:j.jsx(dt,{children:j.jsx(Ht,{})})})})})}const Ut=Object.freeze(Object.defineProperty({__proto__:null,default:zt},Symbol.toStringTag,{value:"Module"}));export{Ut as E,G as L,Tt as N};

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.