@inspectr/app 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{r as b,a as o}from"./index.DuQykEgd.js";var s={},m;function g(){if(m)return s;m=1;var t=b();return s.createRoot=t.createRoot,s.hydrateRoot=t.hydrateRoot,s}var p=g();const v=({value:t,name:e,hydrate:r=!0})=>{if(!t)return null;const n=r?"astro-slot":"astro-static-slot";return o.createElement(n,{name:e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}})};v.shouldComponentUpdate=()=>!1;var N=v;function C(t){for(const e in t)if(e.startsWith("__reactContainer"))return e}function R(t){let e={};for(const r of t.attributes)e[r.name]=r.value;return t.firstChild===null?o.createElement(t.localName,e):o.createElement(t.localName,e,Array.from(t.childNodes).map(r=>r.nodeType===Node.TEXT_NODE?r.data:r.nodeType===Node.ELEMENT_NODE?R(r):void 0).filter(r=>!!r))}function O(t,e){if(e&&t){let r=[],n=document.createElement("template");n.innerHTML=t;for(let u of n.content.children)r.push(R(u));return r}else return t?o.createElement(N,{value:t}):void 0}let y=new WeakMap;const h=(t,e)=>{let r=y.get(t);return r||(r=e(),y.set(t,r)),r};var x=t=>(e,r,{default:n,...u},{client:A})=>{if(!t.hasAttribute("ssr"))return;const d=t.getAttribute("data-action-key"),l=t.getAttribute("data-action-name"),f=t.getAttribute("data-action-result"),T=d&&l&&f?[JSON.parse(f),d,l]:void 0,_={identifierPrefix:t.getAttribute("prefix"),formState:T};for(const[i,a]of Object.entries(u))r[i]=o.createElement(N,{value:a,name:i});const c=o.createElement(e,r,O(n,t.hasAttribute("data-react-children"))),E=C(t);if(E&&delete t[E],A==="only")return o.startTransition(()=>{h(t,()=>{const a=p.createRoot(t);return t.addEventListener("astro:unmount",()=>a.unmount(),{once:!0}),a}).render(c)});o.startTransition(()=>{h(t,()=>{const a=p.hydrateRoot(t,c,_);return t.addEventListener("astro:unmount",()=>a.unmount(),{once:!0}),a}).render(c)})};export{x as default};
1
+ import{r as b,a as o}from"./index.Di-KY2rW.js";var s={},m;function g(){if(m)return s;m=1;var t=b();return s.createRoot=t.createRoot,s.hydrateRoot=t.hydrateRoot,s}var p=g();const v=({value:t,name:e,hydrate:r=!0})=>{if(!t)return null;const n=r?"astro-slot":"astro-static-slot";return o.createElement(n,{name:e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}})};v.shouldComponentUpdate=()=>!1;var N=v;function C(t){for(const e in t)if(e.startsWith("__reactContainer"))return e}function R(t){let e={};for(const r of t.attributes)e[r.name]=r.value;return t.firstChild===null?o.createElement(t.localName,e):o.createElement(t.localName,e,Array.from(t.childNodes).map(r=>r.nodeType===Node.TEXT_NODE?r.data:r.nodeType===Node.ELEMENT_NODE?R(r):void 0).filter(r=>!!r))}function O(t,e){if(e&&t){let r=[],n=document.createElement("template");n.innerHTML=t;for(let u of n.content.children)r.push(R(u));return r}else return t?o.createElement(N,{value:t}):void 0}let y=new WeakMap;const h=(t,e)=>{let r=y.get(t);return r||(r=e(),y.set(t,r)),r};var x=t=>(e,r,{default:n,...u},{client:A})=>{if(!t.hasAttribute("ssr"))return;const d=t.getAttribute("data-action-key"),l=t.getAttribute("data-action-name"),f=t.getAttribute("data-action-result"),T=d&&l&&f?[JSON.parse(f),d,l]:void 0,_={identifierPrefix:t.getAttribute("prefix"),formState:T};for(const[i,a]of Object.entries(u))r[i]=o.createElement(N,{value:a,name:i});const c=o.createElement(e,r,O(n,t.hasAttribute("data-react-children"))),E=C(t);if(E&&delete t[E],A==="only")return o.startTransition(()=>{h(t,()=>{const a=p.createRoot(t);return t.addEventListener("astro:unmount",()=>a.unmount(),{once:!0}),a}).render(c)});o.startTransition(()=>{h(t,()=>{const a=p.hydrateRoot(t,c,_);return t.addEventListener("astro:unmount",()=>a.unmount(),{once:!0}),a}).render(c)})};export{x as default};