@engenty/wizards-runtime 0.20.0 → 0.20.1
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.
- package/apps/runtime/dist/cli/main.js +2 -0
- package/apps/runtime/dist/docs/user-guide/command-line.md +2 -1
- package/apps/web/dist/assets/{AboutDialog-QWzpEK8M.js → AboutDialog-BFi6vOyJ.js} +1 -1
- package/apps/web/dist/assets/{CapabilitiesPage-DAr0-gN1.js → CapabilitiesPage-DAX03vkY.js} +1 -1
- package/apps/web/dist/assets/{ChangelogDialog-CdHqJV2P.js → ChangelogDialog-CdchxTO8.js} +1 -1
- package/apps/web/dist/assets/{ConnectorsSection-BO6jHrYU.js → ConnectorsSection-CNpieoyT.js} +1 -1
- package/apps/web/dist/assets/{EditorPage-Bx-fKnsY.js → EditorPage-CxABBMqo.js} +1 -1
- package/apps/web/dist/assets/{NewWizardChannels-fveQcQlY.js → NewWizardChannels-0aZoziks.js} +1 -1
- package/apps/web/dist/assets/{NewWizardPage-BTX1g2t1.js → NewWizardPage-Bn2BPaUB.js} +1 -1
- package/apps/web/dist/assets/{ProtocolSection-YnJcMN9E.js → ProtocolSection-Ce5LBBzL.js} +1 -1
- package/apps/web/dist/assets/{ReadOnly-C6qmTD35.js → ReadOnly-BFVaKM3w.js} +1 -1
- package/apps/web/dist/assets/{Results-BNuuBiwU.js → Results--mJFsNH2.js} +1 -1
- package/apps/web/dist/assets/{RunDrawer-CMgN-XTB.js → RunDrawer-DtbxGBIm.js} +1 -1
- package/apps/web/dist/assets/{SettingsPage-CuUB26YJ.js → SettingsPage-Cytcl_9w.js} +2 -2
- package/apps/web/dist/assets/{SetupPage-llGzMVeH.js → SetupPage-B5zCrIKT.js} +1 -1
- package/apps/web/dist/assets/{SpacePage-Dv6ocsc_.js → SpacePage-Bd5-wBUc.js} +1 -1
- package/apps/web/dist/assets/{StudioHome-B0bZRm1L.js → StudioHome-DzVpWMrD.js} +1 -1
- package/apps/web/dist/assets/{TableEditor-CfzTLmJF.js → TableEditor-CRhc6jI6.js} +1 -1
- package/apps/web/dist/assets/{UpdateCheck-D3QhfI5c.js → UpdateCheck-BEruHgs0.js} +2 -2
- package/apps/web/dist/assets/changelog-BgFhbmMa.js +1 -0
- package/apps/web/dist/assets/{host-C-AAp8Bz.js → host-B2ZzDrkc.js} +3 -3
- package/apps/web/dist/assets/{index-CtE0rJEL.js → index-C1m_S1ls.js} +3 -3
- package/apps/web/dist/index.html +4 -4
- package/bin/bot.mjs +1120 -0
- package/bin/wizards.mjs +6 -0
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/apps/web/dist/assets/changelog-Db3nvWao.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PublicRunner-Bp4DxTrD.js","assets/rolldown-runtime-XKyaHtl9.js","assets/ui-DSgksc1H.js","assets/jsx-runtime-C3cWAN_r.js","assets/i18n-Dyi0kvaA.js","assets/marked.esm-BfGIZK7F.js","assets/preload-helper-Cj7BV335.js","assets/theme-B46aPLtX.js","assets/react-dom-BwXff0Px.js","assets/volume-2-Br71vpS5.js","assets/read-aloud-DGS8mWgC.js","assets/brand-DKuVyYhH.js","assets/engenty-Cy7MbUxR.js","assets/logo-xL-sneZz.js","assets/phone-CG7Bz_ZL.js","assets/plug-CHvl1GhO.js","assets/theme-CbR9-ayl.css","assets/LangSwitch-BNkytlus.js","assets/media-gjOIWMWK.js","assets/session-EIDP3Wzc.js","assets/SharePage-CgQp_PT6.js","assets/EditorPage-
|
|
2
|
-
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{$ as n,$t as r,An as i,Ar as a,Br as o,C as s,Dn as c,Dr as l,Dt as u,Er as d,Fn as f,Gn as p,Gr as m,Hr as h,Jr as g,Kr as _,M as v,Mn as y,Mr as b,N as x,Nr as S,Or as ee,Qr as C,Rr as te,Sr as ne,Tr as re,Un as ie,Ur as ae,V as oe,Vr as se,Wr as ce,Xr as le,Xt as ue,Yr as de,Z as fe,Zr as pe,Zt as me,_ as he,_r as ge,_t as _e,a as ve,an as w,bn as T,br as ye,bt as be,cn as xe,cr as E,ct as D,dn as Se,dr as Ce,ei as we,fn as Te,fr as Ee,gn as O,gr as k,gt as De,hn as Oe,hr as ke,jr as Ae,kr as je,kt as Me,lr as Ne,mt as Pe,ni as Fe,nt as Ie,on as Le,ot as Re,p as ze,pt as Be,q as Ve,qr as He,rt as Ue,s as We,st as Ge,ti as Ke,tt as qe,un as Je,ut as Ye,vn as Xe,vt as Ze,wn as Qe,wr as $e,xn as A,xt as et,yr as tt,zr as j}from"./ui-DSgksc1H.js";import{n as nt,t as rt}from"./useMutation-fT44ij_b.js";import{n as it,t as at}from"./jsx-runtime-C3cWAN_r.js";import{t as ot}from"./react-dom-BwXff0Px.js";import{m as st,n as ct,p as lt}from"./brand-DKuVyYhH.js";import{l as ut,s as dt}from"./read-aloud-DGS8mWgC.js";import{E as ft,O as pt,m as mt,n as ht,v as gt,y as _t}from"./Marketplace-D3hdvrkz.js";import{Et as vt,O as yt,at as bt,c as xt,et as St,g as Ct,ht as wt,n as Tt,ot as Et,s as M}from"./i18n-Dyi0kvaA.js";import{b as Dt,c as Ot,d as kt,h as At,i as jt,n as Mt,o as Nt,r as Pt,s as Ft,u as It}from"./session-EIDP3Wzc.js";import{Bn as Lt,C as Rt,Ht as zt,Ln as Bt,Rn as Vt,S as Ht,Sn as Ut,W as Wt,Wn as Gt,a as Kt,bn as qt,d as Jt,dr as Yt,f as Xt,h as N,i as Zt,q as Qt,t as $t,w as en,wn as tn,xn as nn}from"./host-C-AAp8Bz.js";import{d as rn,l as an,n as on,u as sn}from"./marked.esm-BfGIZK7F.js";import{g as cn}from"./UpdateCheck-D3QhfI5c.js";import{n as ln,t as un}from"./logo-xL-sneZz.js";import{r as dn}from"./LangSwitch-BNkytlus.js";import{C as fn,S as pn,T as mn,b as hn,d as gn,f as _n,r as vn,t as yn,w as bn,x as xn,y as Sn}from"./theme-B46aPLtX.js";import{t as Cn}from"./RunDrawer-CMgN-XTB.js";import{r as wn}from"./volume-2-Br71vpS5.js";import{t as Tn}from"./eye-CG1LzvNI.js";import{t as En}from"./preload-helper-Cj7BV335.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Dn=class extends se{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new nt({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=On(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=On(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=On(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=On(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){j.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>{this.notify({type:`removed`,mutation:e})})})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>_(t,e))}findAll(e={}){return this.getAll().filter(t=>_(e,t))}notify(e){j.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return j.batch(()=>Promise.all(e.map(e=>e.continue().catch(g))))}};function On(e){return e.options.scope?.id}function kn(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var An=class extends se{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,j.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!C(e,n)});(o||s)&&(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(kn(e,n).forEach(e=>{e.destroy()}),kn(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){let n=new Set;return t.map((r,i)=>{let a=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,e=>{n.has(e)||(n.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=le(this.#a,t(e))),this.#a}return e}#f(){return!this.#r?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new b(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=this.#t.slice(),this.#t[n]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#a,n=e?t:this.#d(this.#u(this.#t,this.#l),this.#r?.combine);(e||t!==n)&&j.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},jn=class extends se{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??ce(r,t),a=this.get(i);return a||(a=new S({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){j.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>He(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>He(e,t)):t}notify(e){j.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){j.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){j.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Mn=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new jn,this.#t=e.mutationCache||new Dn,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=o.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=te.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pe(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=h(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return j.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;j.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return j.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=j.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(g).catch(g)}invalidateQueries(e,t={}){return j.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=j.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n),r=e.state.fetchStatus===`paused`;return(!n.throwOnError||r)&&(t=t.catch(g)),r?Promise.resolve():t}));return Promise.all(r).then(g)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(pe(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(pe(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(g).catch(g)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(g).catch(g)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return te.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ae(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{de(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ae(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{de(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ce(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===we&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},P=e(it(),1);function Nn({queries:e,...t},n){let r=Fe(n),i=Ae(),o=a(),s=t.subscribed!==!1,c=P.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:s?`optimistic`:void 0,t}),[e,r,i,s]);c.forEach(e=>{$e(e);let t=r.getQueryCache().get(e.queryHash);l(e,o,t)}),je(o);let[u]=P.useState(()=>new An(r,c,t)),[f,p,m]=u.getOptimisticResult(c,t.combine);P.useEffect(()=>{u.setQueries(c,t)},[c,t,u]);let h=!i&&s;P.useSyncExternalStore(P.useCallback(e=>h?u.subscribe(j.batchCalls(e)):g,[u,h]),()=>u.getCurrentResult(),()=>u.getCurrentResult());let _=f.some((e,t)=>d(c[t],e))?f.flatMap((e,t)=>{let n=c[t];if(n&&d(n,e)){let e=new b(r,n);return re(n,e,o)}return[]}):[];if(_.length>0)throw Promise.all(_);let v=f.find((e,t)=>{let n=c[t];return n&&ee({result:e,errorResetBoundary:o,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(v)throw v.error;return p(m())}var Pn=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,ie());else{var t=n(l);t!==null&&se(x,t.startTime-e)}}}var S=!1,ee=-1,C=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-te<C)}function re(){if(g=!1,S){var t=e.unstable_now();te=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(ee),ee=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ne());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&se(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ie():S=!1}}}var ie;if(typeof y==`function`)ie=function(){y(re)};else if(typeof MessageChannel<`u`){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=re,ie=function(){oe.postMessage(null)}}else ie=function(){_(re,0)};function se(t,n){ee=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ee),ee=-1):h=!0,se(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ie()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Fn=t(((e,t)=>{t.exports=Pn()})),In=t((e=>{var t=Fn(),n=it(),r=ot();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ee(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var C=Object.assign,te=Symbol.for(`react.element`),ne=Symbol.for(`react.transitional.element`),re=Symbol.for(`react.portal`),ie=Symbol.for(`react.fragment`),ae=Symbol.for(`react.strict_mode`),oe=Symbol.for(`react.profiler`),se=Symbol.for(`react.consumer`),ce=Symbol.for(`react.context`),le=Symbol.for(`react.forward_ref`),ue=Symbol.for(`react.suspense`),de=Symbol.for(`react.suspense_list`),fe=Symbol.for(`react.memo`),pe=Symbol.for(`react.lazy`),me=Symbol.for(`react.activity`),he=Symbol.for(`react.legacy_hidden`),ge=Symbol.for(`react.memo_cache_sentinel`),_e=Symbol.for(`react.view_transition`),ve=Symbol.for(`react.recoverable`),w=Symbol.iterator;function T(e){return typeof e!=`object`||!e?null:(e=w&&e[w]||e[`@@iterator`],typeof e==`function`?e:null)}var ye=Symbol.for(`react.client.reference`);function be(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ie:return`Fragment`;case oe:return`Profiler`;case ae:return`StrictMode`;case ue:return`Suspense`;case de:return`SuspenseList`;case me:return`Activity`;case _e:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case re:return`Portal`;case ce:return e.displayName||`Context`;case se:return(e._context.displayName||`Context`)+`.Consumer`;case le:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case fe:return t=e.displayName||null,t===null?be(e.type)||`Memo`:t;case pe:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var xe=Array.isArray,E=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Se={pending:!1,data:null,method:null,action:null},Ce=[],we=-1;function Te(e){return{current:e}}function Ee(e){0>we||(e.current=Ce[we],Ce[we]=null,we--)}function O(e,t){we++,Ce[we]=e.current,e.current=t}var k=Te(null),De=Te(null),Oe=Te(null),ke=Te(null);function Ae(e,t){switch(O(Oe,t),O(De,e),O(k,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Ee(k),O(k,e)}function je(){Ee(k),Ee(De),Ee(Oe)}function Me(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,O(ke,e)),t=k.current;var n=dp(t,e.type);t!==n&&(O(De,e),O(k,n))}function Ne(e){De.current===e&&(Ee(k),Ee(De)),ke.current===e&&(Ee(ke),sh._currentValue=Se)}var Pe,Fe;function Ie(e){if(Pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Pe=t&&t[1]||``,Fe=-1<e.stack.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PublicRunner-Bp4DxTrD.js","assets/rolldown-runtime-XKyaHtl9.js","assets/ui-DSgksc1H.js","assets/jsx-runtime-C3cWAN_r.js","assets/i18n-Dyi0kvaA.js","assets/marked.esm-BfGIZK7F.js","assets/preload-helper-Cj7BV335.js","assets/theme-B46aPLtX.js","assets/react-dom-BwXff0Px.js","assets/volume-2-Br71vpS5.js","assets/read-aloud-DGS8mWgC.js","assets/brand-DKuVyYhH.js","assets/engenty-Cy7MbUxR.js","assets/logo-xL-sneZz.js","assets/phone-CG7Bz_ZL.js","assets/plug-CHvl1GhO.js","assets/theme-CbR9-ayl.css","assets/LangSwitch-BNkytlus.js","assets/media-gjOIWMWK.js","assets/session-EIDP3Wzc.js","assets/SharePage-CgQp_PT6.js","assets/EditorPage-CxABBMqo.js","assets/useMutation-fT44ij_b.js","assets/eye-CG1LzvNI.js","assets/Marketplace-D3hdvrkz.js","assets/list-checks-D1zkXlZa.js","assets/host-B2ZzDrkc.js","assets/scroll-text-DmK2IucJ.js","assets/floating-ui.dom-S_FT_s1L.js","assets/upload-BZThm-R6.js","assets/UpdateCheck-BEruHgs0.js","assets/with-selector-DNNxLmGI.js","assets/code-editor-BLwDuQLI.js","assets/host-BrP-ENHg.css","assets/Skills-frfXXEcF.js","assets/esm-CpFD3UPd.js","assets/minus-OrLEfDzR.js","assets/code-xml-CdJeig44.js","assets/TableEditor-CRhc6jI6.js","assets/table-BEbwD8ie.js","assets/code-hPTnSH4L.js","assets/ConnectorsSection-CNpieoyT.js","assets/Bundle-DZyQ1FP7.js","assets/NewWizardChannels-0aZoziks.js","assets/StudioHome-DzVpWMrD.js","assets/Results--mJFsNH2.js","assets/RunDrawer-DtbxGBIm.js","assets/list-ordered-B7aUqZdk.js","assets/OnboardingPage-DwF6KdQy.js","assets/NewWizardPage-Bn2BPaUB.js","assets/SettingsPage-Cytcl_9w.js","assets/ProtocolSection-Ce5LBBzL.js","assets/ReadOnly-BFVaKM3w.js","assets/SpacePage-Bd5-wBUc.js","assets/link-DyYjkzYx.js","assets/CapabilitiesPage-DAX03vkY.js","assets/SetupPage-B5zCrIKT.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{$ as n,$t as r,An as i,Ar as a,Br as o,C as s,Dn as c,Dr as l,Dt as u,Er as d,Fn as f,Gn as p,Gr as m,Hr as h,Jr as g,Kr as _,M as v,Mn as y,Mr as b,N as x,Nr as S,Or as ee,Qr as C,Rr as te,Sr as ne,Tr as re,Un as ie,Ur as ae,V as oe,Vr as se,Wr as ce,Xr as le,Xt as ue,Yr as de,Z as fe,Zr as pe,Zt as me,_ as he,_r as ge,_t as _e,a as ve,an as w,bn as T,br as ye,bt as be,cn as xe,cr as E,ct as D,dn as Se,dr as Ce,ei as we,fn as Te,fr as Ee,gn as O,gr as k,gt as De,hn as Oe,hr as ke,jr as Ae,kr as je,kt as Me,lr as Ne,mt as Pe,ni as Fe,nt as Ie,on as Le,ot as Re,p as ze,pt as Be,q as Ve,qr as He,rt as Ue,s as We,st as Ge,ti as Ke,tt as qe,un as Je,ut as Ye,vn as Xe,vt as Ze,wn as Qe,wr as $e,xn as A,xt as et,yr as tt,zr as j}from"./ui-DSgksc1H.js";import{n as nt,t as rt}from"./useMutation-fT44ij_b.js";import{n as it,t as at}from"./jsx-runtime-C3cWAN_r.js";import{t as ot}from"./react-dom-BwXff0Px.js";import{m as st,n as ct,p as lt}from"./brand-DKuVyYhH.js";import{l as ut,s as dt}from"./read-aloud-DGS8mWgC.js";import{E as ft,O as pt,m as mt,n as ht,v as gt,y as _t}from"./Marketplace-D3hdvrkz.js";import{Et as vt,O as yt,at as bt,c as xt,et as St,g as Ct,ht as wt,n as Tt,ot as Et,s as M}from"./i18n-Dyi0kvaA.js";import{b as Dt,c as Ot,d as kt,h as At,i as jt,n as Mt,o as Nt,r as Pt,s as Ft,u as It}from"./session-EIDP3Wzc.js";import{Bn as Lt,C as Rt,Ht as zt,Ln as Bt,Rn as Vt,S as Ht,Sn as Ut,W as Wt,Wn as Gt,a as Kt,bn as qt,d as Jt,dr as Yt,f as Xt,h as N,i as Zt,q as Qt,t as $t,w as en,wn as tn,xn as nn}from"./host-B2ZzDrkc.js";import{d as rn,l as an,n as on,u as sn}from"./marked.esm-BfGIZK7F.js";import{g as cn}from"./UpdateCheck-BEruHgs0.js";import{n as ln,t as un}from"./logo-xL-sneZz.js";import{r as dn}from"./LangSwitch-BNkytlus.js";import{C as fn,S as pn,T as mn,b as hn,d as gn,f as _n,r as vn,t as yn,w as bn,x as xn,y as Sn}from"./theme-B46aPLtX.js";import{t as Cn}from"./RunDrawer-DtbxGBIm.js";import{r as wn}from"./volume-2-Br71vpS5.js";import{t as Tn}from"./eye-CG1LzvNI.js";import{t as En}from"./preload-helper-Cj7BV335.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Dn=class extends se{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new nt({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=On(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=On(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=On(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=On(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){j.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>{this.notify({type:`removed`,mutation:e})})})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>_(t,e))}findAll(e={}){return this.getAll().filter(t=>_(e,t))}notify(e){j.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return j.batch(()=>Promise.all(e.map(e=>e.continue().catch(g))))}};function On(e){return e.options.scope?.id}function kn(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var An=class extends se{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,j.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!C(e,n)});(o||s)&&(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(kn(e,n).forEach(e=>{e.destroy()}),kn(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){let n=new Set;return t.map((r,i)=>{let a=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,e=>{n.has(e)||(n.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=le(this.#a,t(e))),this.#a}return e}#f(){return!this.#r?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new b(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=this.#t.slice(),this.#t[n]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#a,n=e?t:this.#d(this.#u(this.#t,this.#l),this.#r?.combine);(e||t!==n)&&j.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},jn=class extends se{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??ce(r,t),a=this.get(i);return a||(a=new S({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){j.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>He(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>He(e,t)):t}notify(e){j.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){j.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){j.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Mn=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new jn,this.#t=e.mutationCache||new Dn,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=o.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=te.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(pe(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=h(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return j.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;j.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return j.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=j.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(g).catch(g)}invalidateQueries(e,t={}){return j.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=j.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n),r=e.state.fetchStatus===`paused`;return(!n.throwOnError||r)&&(t=t.catch(g)),r?Promise.resolve():t}));return Promise.all(r).then(g)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(pe(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(pe(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(g).catch(g)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(g).catch(g)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return te.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(ae(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{de(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(ae(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{de(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ce(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===we&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},P=e(it(),1);function Nn({queries:e,...t},n){let r=Fe(n),i=Ae(),o=a(),s=t.subscribed!==!1,c=P.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:s?`optimistic`:void 0,t}),[e,r,i,s]);c.forEach(e=>{$e(e);let t=r.getQueryCache().get(e.queryHash);l(e,o,t)}),je(o);let[u]=P.useState(()=>new An(r,c,t)),[f,p,m]=u.getOptimisticResult(c,t.combine);P.useEffect(()=>{u.setQueries(c,t)},[c,t,u]);let h=!i&&s;P.useSyncExternalStore(P.useCallback(e=>h?u.subscribe(j.batchCalls(e)):g,[u,h]),()=>u.getCurrentResult(),()=>u.getCurrentResult());let _=f.some((e,t)=>d(c[t],e))?f.flatMap((e,t)=>{let n=c[t];if(n&&d(n,e)){let e=new b(r,n);return re(n,e,o)}return[]}):[];if(_.length>0)throw Promise.all(_);let v=f.find((e,t)=>{let n=c[t];return n&&ee({result:e,errorResetBoundary:o,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(v)throw v.error;return p(m())}var Pn=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,ie());else{var t=n(l);t!==null&&se(x,t.startTime-e)}}}var S=!1,ee=-1,C=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-te<C)}function re(){if(g=!1,S){var t=e.unstable_now();te=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(ee),ee=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ne());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&se(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ie():S=!1}}}var ie;if(typeof y==`function`)ie=function(){y(re)};else if(typeof MessageChannel<`u`){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=re,ie=function(){oe.postMessage(null)}}else ie=function(){_(re,0)};function se(t,n){ee=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ee),ee=-1):h=!0,se(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ie()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Fn=t(((e,t)=>{t.exports=Pn()})),In=t((e=>{var t=Fn(),n=it(),r=ot();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ee(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var C=Object.assign,te=Symbol.for(`react.element`),ne=Symbol.for(`react.transitional.element`),re=Symbol.for(`react.portal`),ie=Symbol.for(`react.fragment`),ae=Symbol.for(`react.strict_mode`),oe=Symbol.for(`react.profiler`),se=Symbol.for(`react.consumer`),ce=Symbol.for(`react.context`),le=Symbol.for(`react.forward_ref`),ue=Symbol.for(`react.suspense`),de=Symbol.for(`react.suspense_list`),fe=Symbol.for(`react.memo`),pe=Symbol.for(`react.lazy`),me=Symbol.for(`react.activity`),he=Symbol.for(`react.legacy_hidden`),ge=Symbol.for(`react.memo_cache_sentinel`),_e=Symbol.for(`react.view_transition`),ve=Symbol.for(`react.recoverable`),w=Symbol.iterator;function T(e){return typeof e!=`object`||!e?null:(e=w&&e[w]||e[`@@iterator`],typeof e==`function`?e:null)}var ye=Symbol.for(`react.client.reference`);function be(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ie:return`Fragment`;case oe:return`Profiler`;case ae:return`StrictMode`;case ue:return`Suspense`;case de:return`SuspenseList`;case me:return`Activity`;case _e:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case re:return`Portal`;case ce:return e.displayName||`Context`;case se:return(e._context.displayName||`Context`)+`.Consumer`;case le:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case fe:return t=e.displayName||null,t===null?be(e.type)||`Memo`:t;case pe:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var xe=Array.isArray,E=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Se={pending:!1,data:null,method:null,action:null},Ce=[],we=-1;function Te(e){return{current:e}}function Ee(e){0>we||(e.current=Ce[we],Ce[we]=null,we--)}function O(e,t){we++,Ce[we]=e.current,e.current=t}var k=Te(null),De=Te(null),Oe=Te(null),ke=Te(null);function Ae(e,t){switch(O(Oe,t),O(De,e),O(k,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Ee(k),O(k,e)}function je(){Ee(k),Ee(De),Ee(Oe)}function Me(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,O(ke,e)),t=k.current;var n=dp(t,e.type);t!==n&&(O(De,e),O(k,n))}function Ne(e){De.current===e&&(Ee(k),Ee(De)),ke.current===e&&(Ee(ke),sh._currentValue=Se)}var Pe,Fe;function Ie(e){if(Pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Pe=t&&t[1]||``,Fe=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+Pe+e+Fe}var Le=!1;function Re(e,t){if(!e||Le)return``;Le=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
5
|
`),l=s.split(`
|
|
@@ -99,4 +99,4 @@ ul,ol{padding:0;list-style:none}
|
|
|
99
99
|
.nothing p{font-size:16px;line-height:1.55;color:var(--ink-2)}
|
|
100
100
|
@media (max-width:900px){.feat{grid-template-columns:1fr}.feat-side{border-radius:0 0 16px 16px}.row{grid-template-columns:1fr}.row .pill{justify-self:start}.foot-grid{grid-template-columns:1fr}.foot .two{grid-template-columns:1fr}}
|
|
101
101
|
@media (max-width:640px){.wp{padding-left:16px;padding-right:16px}.hero{padding-top:40px;padding-bottom:120px}.main{margin-top:-72px}.feat-main{padding:24px 20px}.feat-side{padding:24px 20px}.perch{right:10px;top:-62px}.perch svg{width:104px;height:104px}.row{padding:20px}.row-main{padding-right:48px}.row h3{font-size:22px}.sec{margin-top:56px}}
|
|
102
|
-
`,Ti={start:`Los geht's`,youGet:`Du bekommst`,youDo:`Du machst`,howItGoes:`So läuft es`,noAccount:`Kein Konto nötig`,wizards:e=>e===1?`1 Wizard`:`${e} Wizards`,minutes:e=>`etwa ${e} Min`,minutesLong:e=>`etwa ${e} Minuten`,minutesRange:(e,t)=>e===t?`etwa ${e} Minuten`:`${e} bis ${t} Minuten`,task:(e,t,n)=>{let r=[n?`Dateien hochladen`:``,e?`${e} ${e===1?`Frage`:`Fragen`} beantworten`:``,t?`${t===1?`einen Entwurf`:`${t} Entwürfe`} prüfen`:``].filter(Boolean);return r.length?Oi(r,`und`):`Nur starten`},short:(e,t)=>[t?`Dateien`:``,e?`${e} ${e===1?`Frage`:`Fragen`}`:``].filter(Boolean).join(`, `),all:`Alle Wizards`,kind:{text:`Text`,document:`Dokument`,table:`Tabelle`,image:`Bild`,video:`Video`,audio:`Audio`,dashboard:`Widget`},example:`Beispiel ansehen`,exampleNote:`Ein Lauf, den das Team geteilt hat.`,pause:`Pausieren geht jederzeit, auf diesem Gerät geht es weiter.`,download:`Zum Herunterladen, oder du schickst sie direkt aus dem Wizard.`,imprint:`Impressum`,page:`Seite`,poweredBy:`Wizards von engenty`,nothing:`Hier ist noch nichts.`,nothingNote:`Diese Adresse hat noch keine öffentliche Seite. Teams bauen ihre Wizards mit engenty wizards und zeigen sie hier.`,whatIs:`Was ist engenty wizards?`,paused:`Diese Seite ist pausiert.`,pausedNote:`Das Team kümmert sich darum. Bitte später wieder vorbeischauen.`,down:`Diese Seite ist gerade nicht erreichbar.`,downNote:`Bitte in einer Minute noch einmal versuchen.`,notBuilt:`Demo: Dieser Wizard ist noch nicht gebaut.`,notBuiltNote:`Auf der echten Seite führt der Knopf zum Wizard.`,back:`Zurück zur Seite`},Ei={start:`Start`,youGet:`You get`,youDo:`You do`,howItGoes:`How it goes`,noAccount:`No account needed`,wizards:e=>e===1?`1 wizard`:`${e} wizards`,minutes:e=>`about ${e} min`,minutesLong:e=>`about ${e} minutes`,minutesRange:(e,t)=>e===t?`about ${e} minutes`:`${e} to ${t} minutes`,task:(e,t,n)=>{let r=[n?`upload your files`:``,e?`answer ${e} ${e===1?`question`:`questions`}`:``,t?`check ${t===1?`one draft`:`${t} drafts`}`:``].filter(Boolean),i=r.length?Oi(r,`and`):`just start`;return i.charAt(0).toUpperCase()+i.slice(1)},short:(e,t)=>[t?`Files`:``,e?`${e} ${e===1?`question`:`questions`}`:``].filter(Boolean).join(`, `),all:`All wizards`,kind:{text:`Text`,document:`Document`,table:`Table`,image:`Image`,video:`Video`,audio:`Audio`,dashboard:`Widget`},example:`See an example`,exampleNote:`A run the team shared.`,pause:`You can stop at any time and continue on this device.`,download:`To download, or you send them straight from the wizard.`,imprint:`Imprint`,page:`Page`,poweredBy:`Wizards by engenty`,nothing:`There is nothing here yet.`,nothingNote:`This address has no public page yet. Teams build their wizards with engenty wizards and show them here.`,whatIs:`What is engenty wizards?`,paused:`This page is paused.`,pausedNote:`The team is looking into it. Come back later.`,down:`This page can't be reached right now.`,downNote:`Try again in a minute.`,notBuilt:`Demo: this wizard isn't built yet.`,notBuiltNote:`On a real page the button leads to the wizard.`,back:`Back to the page`},Di={youGet:`Sie bekommen`,youDo:`Sie machen`,download:`Zum Herunterladen, oder Sie schicken sie direkt aus dem Wizard.`,pause:`Pausieren geht jederzeit, auf diesem Gerät geht es weiter.`};function Oi(e,t){return e.length<2?e[0]??``:`${e.slice(0,-1).join(`, `)} ${t} ${e[e.length-1]}`}var ki=(e,t)=>e===`en`?Ei:t===`sie`?{...Ti,...Di}:Ti,Ai=e(ot(),1),ji=e=>[`page-preview`,e];function Mi(e){(0,P.useEffect)(()=>{if(document.head.querySelector(`link[data-page-fonts="${e}"]`))return;let t=document.createElement(`link`);t.rel=`stylesheet`,t.href=e,t.dataset.pageFonts=e,document.head.append(t)},[e])}function Ni({vars:e,children:t}){let[n,r]=(0,P.useState)(null),[i,a]=(0,P.useState)(null);return(0,P.useEffect)(()=>{n&&!i&&a(n.shadowRoot??n.attachShadow({mode:`open`}))},[n,i]),(0,F.jsx)(`div`,{ref:r,className:`min-h-full`,children:i?(0,Ai.createPortal)((0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`style`,{children:`${wi}\n.pg{${e};background:var(--ground);color:var(--ink);font-family:var(--f-body);-webkit-font-smoothing:antialiased;line-height:1.4;min-height:100%}.pg a{pointer-events:none}`}),(0,F.jsx)(`div`,{className:`pg`,children:t})]}),i):null})}function Pi({space:e,page:t,empty:r}){let i=ne({queryKey:ji(e.id),queryFn:()=>n.get(`/api/studio/spaces/${e.id}/page`)}),a=i.data?.organization?.space??null,o=a?.brand.name||i.data?.organization?.name||t.title,s=xi(a?.brand.theme??null);Mi(s.fontsHref);let c=ki(t.lang??`de`,t.form),l=a?.wizards??[],[u,...d]=l,f=l.map(e=>e.effort.minutes);return(0,F.jsxs)(Ni,{vars:s.vars,children:[(0,F.jsxs)(`div`,{className:`band`,children:[(0,F.jsx)(`header`,{className:`wp top`,children:(0,F.jsx)(`span`,{className:`brand`,children:a?.brand.logoUrl?(0,F.jsx)(`img`,{src:a.brand.logoUrl,alt:o}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`mark`,"aria-hidden":`true`,children:Mt(o)}),o]})})}),(0,F.jsxs)(`div`,{className:`wp hero`,children:[(0,F.jsxs)(`p`,{className:`lbl`,children:[(0,F.jsx)(`b`,{children:t.title}),o===t.title?null:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`i`,{"aria-hidden":`true`}),o]})]}),(0,F.jsx)(`h1`,{children:t.headline||t.title}),t.intro?(0,F.jsx)(`p`,{children:t.intro}):null,l.length?(0,F.jsxs)(`ul`,{className:`meta`,children:[(0,F.jsx)(`li`,{children:c.wizards(l.length)}),(0,F.jsx)(`li`,{children:c.minutesRange(Math.min(...f),Math.max(...f))}),(0,F.jsx)(`li`,{children:c.noAccount})]}):null]})]}),(0,F.jsxs)(`main`,{className:`wp main`,children:[u?(0,F.jsx)(Ii,{w:u,t:c}):(0,F.jsx)(`div`,{className:`card`,style:{padding:`28px 32px`,color:`var(--muted)`,fontSize:15},children:r}),d.length?(0,F.jsxs)(`section`,{className:`sec`,children:[(0,F.jsx)(`h2`,{children:c.all}),(0,F.jsx)(`ul`,{className:`rows`,children:d.map(e=>(0,F.jsx)(Li,{w:e,t:c},e.slug))})]}):null]})]})}function Fi({w:e}){return(0,F.jsx)(`div`,{className:`gets`,children:e.results.slice(0,4).map(e=>(0,F.jsx)(`span`,{style:{color:Ci(e.kind)},children:(0,F.jsx)(`span`,{style:{color:`var(--ink)`},children:e.title})},e.title))})}function Ii({w:e,t}){return(0,F.jsxs)(`article`,{className:`card feat`,children:[(0,F.jsx)(`div`,{className:`perch`,children:(0,F.jsx)(ct,{kind:e.avatar,size:150,interactive:!1})}),(0,F.jsxs)(`div`,{className:`feat-main`,children:[(0,F.jsx)(`h2`,{children:e.title}),e.description?(0,F.jsx)(`p`,{className:`lead`,children:e.description}):null,(0,F.jsxs)(`div`,{className:`does`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.youDo}),(0,F.jsxs)(`div`,{children:[t.task(e.effort.fields,e.effort.reviews,e.effort.uploads),` `,(0,F.jsxs)(`span`,{children:[`· `,t.minutesLong(e.effort.minutes)]})]})]}),e.results.length?(0,F.jsxs)(`div`,{className:`does`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.youGet}),(0,F.jsx)(Fi,{w:e})]}):null,(0,F.jsxs)(`div`,{className:`cta`,children:[(0,F.jsx)(`a`,{className:`pill`,href:e.runUrl,children:t.start}),(0,F.jsx)(`small`,{children:t.pause})]})]}),(0,F.jsxs)(`div`,{className:`feat-side`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.howItGoes}),(0,F.jsx)(`ul`,{className:`steps`,children:e.steps.map(e=>(0,F.jsx)(`li`,{style:{animation:`none`},children:e.title},e.title))})]})]})}function Li({w:e,t}){let n=t.short(e.effort.fields,e.effort.uploads);return(0,F.jsxs)(`li`,{className:`card row`,children:[(0,F.jsx)(`span`,{className:`peek`,children:(0,F.jsx)(ct,{kind:e.avatar,size:72,interactive:!1})}),(0,F.jsxs)(`div`,{className:`row-main`,children:[(0,F.jsx)(`h3`,{children:e.title}),e.description?(0,F.jsx)(`p`,{className:`row-desc`,children:e.description}):null,e.results.length?(0,F.jsx)(Fi,{w:e}):null,(0,F.jsx)(`ul`,{className:`row-meta`,children:(0,F.jsx)(`li`,{children:[n,t.minutes(e.effort.minutes)].filter(Boolean).join(` · `)})})]}),(0,F.jsx)(`a`,{className:`pill`,href:e.runUrl,children:t.start})]})}var Ri=`text-[0.8125rem] text-ink-3 leading-snug`;function zi(){let{space:e,spaces:t}=It();return{space:t.find(e=>e.page?.on)??t.find(e=>e.root)??e,spaces:t}}function Bi(e){return Nn({queries:e.filter(e=>e.kind!==`client`).map(e=>({queryKey:fe.spaceWizards(e.id),queryFn:()=>n.get(`/api/studio/spaces/${e.id}/wizards`)}))}).flatMap(e=>e.data??[])}function Vi(){N([{label:M(`mode.shared`)}]);let e=At().data,{space:t,spaces:n}=zi(),r=Bi(n),i=r.filter(e=>e.published&&e.shareEnabled),[a,o]=(0,P.useState)(!1),s=e?.tenant.pagesHost??null;if(!t)return null;if(!s)return(0,F.jsx)(`p`,{className:`py-24 text-center text-[0.9375rem] text-ink-3`,children:M(`page.cloudOnly`)});let c=t.page;if(c?.on)return(0,F.jsx)(Wi,{space:t,page:c,host:s,wizards:r,linked:i});let l=(0,F.jsx)(Ui,{open:a,onClose:()=>o(!1),space:t,host:s,wizards:r.filter(e=>e.spaceId===t.id)});return i.length?(0,F.jsxs)(`div`,{className:`mx-auto flex w-full max-w-3xl flex-col gap-8 px-4 py-8 sm:px-6`,children:[(0,F.jsxs)(Le,{className:`flex flex-wrap items-center gap-4 p-5`,children:[(0,F.jsx)(ct,{kind:`round`,size:44,interactive:!1}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.0625rem] leading-tight`,children:M(`shared.emptyTitle`)}),(0,F.jsx)(`p`,{className:`mt-1 text-[0.875rem] text-ink-2`,children:M(`shared.emptyText`)})]}),(0,F.jsx)(w,{onClick:()=>o(!0),children:M(`shared.setUp`)})]}),(0,F.jsxs)(`section`,{className:`flex flex-col gap-2`,children:[(0,F.jsx)(`h2`,{className:`px-1 font-medium text-[0.8125rem] text-ink-3`,children:M(`shared.byLink`)}),(0,F.jsx)(Le,{className:`divide-y divide-border-soft px-4`,children:i.map(e=>(0,F.jsx)(Hi,{wizard:e},e.id))})]}),l]}):(0,F.jsxs)(`div`,{className:`grid min-h-[60vh] place-items-center px-6 py-16`,children:[(0,F.jsxs)(`div`,{className:`flex max-w-md flex-col items-center gap-3 text-center`,children:[(0,F.jsx)(ct,{kind:`round`,size:72,interactive:!1}),(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.375rem] leading-tight`,children:M(`shared.emptyTitle`)}),(0,F.jsx)(`p`,{className:`text-[0.9375rem] text-ink-2`,children:M(`shared.emptyText`)}),(0,F.jsx)(w,{className:`mt-1`,onClick:()=>o(!0),children:M(`shared.setUp`)})]}),l]})}function Hi({wizard:e,compact:t}){let n=Wt(e),{copied:i,copy:a}=Xr(),[o,s]=(0,P.useState)(!1);return(0,F.jsxs)(`div`,{className:`flex items-center gap-3 py-3`,children:[t?null:(0,F.jsx)(ct,{kind:e.avatar,costume:e.costume,size:32,interactive:!1}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsx)(`div`,{className:`truncate font-medium text-[0.875rem]`,children:e.title}),(0,F.jsx)(`div`,{className:`truncate font-mono text-[0.75rem] text-ink-3`,children:n.replace(/^https?:\/\//,``)})]}),(0,F.jsx)(Je,{label:M(`shared.copyLink`),onClick:()=>a(n),children:i?(0,F.jsx)(sn,{className:`size-4`}):(0,F.jsx)(an,{className:`size-4`})}),(0,F.jsx)(Je,{label:M(`shared.qr`),onClick:()=>s(!0),children:(0,F.jsx)(Gn,{className:`size-4`})}),(0,F.jsx)(xe,{open:o,onClose:()=>s(!1),title:e.title,children:(0,F.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,F.jsx)(r,{text:n,label:M(`shared.qrFor`,{name:e.title}),className:`size-56`}),(0,F.jsx)(`p`,{className:A(Ri,`break-all text-center font-mono`),children:n})]})})]})}function Ui({open:e,onClose:t,space:r,host:i,wizards:a}){let o=Fe(),s=At().data?.tenant.name??``,c=r.page?.title||r.brand.name?.trim()||(r.root&&s?s:r.name),[l,u]=(0,P.useState)(c),[d,f]=(0,P.useState)(r.page?.slug||oe(c)||`page`),p=rt({mutationFn:()=>{let e=r.page?{...r.page,on:!0,title:l.trim(),slug:d}:{on:!0,slug:d,title:l.trim(),...Gr(Tt===`de`?`de-du`:`en`),wizards:a.filter(e=>e.published&&e.shareEnabled).map(e=>e.id),examples:{}};return n.patch(`/api/studio/spaces/${r.id}`,{page:e})},onSuccess:async()=>{await o.invalidateQueries({queryKey:fe.spaces()}),t()}}),m=!!l.trim()&&x.test(d);return(0,F.jsx)(xe,{open:e,onClose:t,title:M(`shared.setUp`),children:(0,F.jsxs)(`form`,{className:`flex flex-col gap-5`,onSubmit:e=>{e.preventDefault(),m&&p.mutate()},children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Te,{children:M(`page.title`)}),(0,F.jsx)(Se,{value:l,maxLength:120,onChange:e=>u(e.target.value)})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Te,{children:M(`page.address`)}),(0,F.jsx)(Qr,{host:i,value:d,onChange:f})]}),p.error?(0,F.jsx)(`p`,{className:`text-[0.8125rem] text-rose`,children:p.error.message}):null,(0,F.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,F.jsx)(w,{variant:`ghost`,onClick:t,children:M(`common.cancel`)}),(0,F.jsx)(w,{type:`submit`,busy:p.isPending,disabled:!m,children:M(`shared.turnOn`)})]})]})})}function Wi({space:e,page:t,host:r,wizards:i,linked:a}){let o=Fe(),s=At().data?.manageUrl??null,[c,l]=(0,P.useState)(`content`),u=async t=>{await n.patch(`/api/studio/spaces/${e.id}`,{page:t}),await o.invalidateQueries({queryKey:fe.spaces()}),await o.invalidateQueries({queryKey:ji(e.id)})},d=rt({mutationFn:e=>u({...t,...e})}),f=i.filter(t=>t.spaceId===e.id),p=Ur(r,t.slug,s),m=(e,n)=>d.mutate({wizards:n?[...t.wizards,e]:t.wizards.filter(t=>t!==e)}),h=f.filter(e=>e.published&&e.shareEnabled);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Xt,{children:(0,F.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-3`,children:[(0,F.jsx)(Rr,{named:!0,label:M(`mode.shared`),value:c,onChange:l,options:[{id:`content`,label:M(`shared.content`)},{id:`settings`,label:M(`shared.settings`)}]}),c===`content`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`section`,{className:`flex flex-col`,children:[(0,F.jsx)(`h2`,{className:`px-1 pb-1 font-medium text-[0.75rem] text-ink-3`,children:M(`shared.onPage`)}),h.length?h.map(e=>(0,F.jsxs)(`div`,{className:`flex items-center gap-2 border-border-soft border-b px-1 py-2 last:border-b-0`,children:[(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[0.875rem]`,children:e.title}),(0,F.jsx)(Xe,{checked:t.wizards.includes(e.id),disabled:d.isPending,label:e.title,onChange:t=>m(e.id,t)})]},e.id)):(0,F.jsx)(`p`,{className:A(Ri,`px-1`),children:M(`shared.noneToShow`)}),t.wizards.length===0&&h.length?(0,F.jsx)(`p`,{className:A(Ri,`px-1 pt-2`),children:M(`shared.pickOne`)}):null]}),a.length?(0,F.jsxs)(`section`,{className:`flex flex-col`,children:[(0,F.jsx)(`h2`,{className:`px-1 font-medium text-[0.75rem] text-ink-3`,children:M(`shared.byLink`)}),(0,F.jsx)(`div`,{className:`divide-y divide-border-soft px-1`,children:a.map(e=>(0,F.jsx)(Hi,{wizard:e,compact:!0},e.id))})]}):null]}):(0,F.jsxs)(`div`,{className:`flex flex-1 flex-col gap-5`,children:[(0,F.jsx)(mi,{host:r,page:t,disabled:!1,save:u,onState:()=>{}}),(0,F.jsx)(w,{variant:`ghost`,className:`mt-auto self-start text-rose`,busy:d.isPending,onClick:()=>d.mutate({on:!1}),children:M(`shared.turnOff`)})]})]})}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsxs)(`a`,{href:p,target:`_blank`,rel:`noreferrer`,className:`flex items-center gap-1 self-end font-mono text-[0.75rem] text-ink-3 hover:text-ink`,children:[p.replace(/^https?:\/\//,``),(0,F.jsx)(Yt,{className:`size-3.5`})]}),(0,F.jsx)(`div`,{className:`overflow-hidden rounded-xl shadow-elevated`,children:(0,F.jsx)(Pi,{space:e,page:t,empty:M(`shared.previewEmpty`)})})]})]})}var Gi=(0,P.lazy)(()=>En(()=>import(`./PublicRunner-Bp4DxTrD.js`).then(e=>({default:e.PublicRunner})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),Ki=(0,P.lazy)(()=>En(()=>import(`./SharePage-CgQp_PT6.js`).then(e=>({default:e.SharePage})),__vite__mapDeps([20,1,2,3,4,5,6,11,12,13,7,8,9,10,14,15,16,0,17,18,19]))),qi=(0,P.lazy)(()=>En(()=>import(`./EditorPage-Bx-fKnsY.js`).then(e=>({default:e.EditorPage})),__vite__mapDeps([21,1,2,3,4,5,6,22,23,24,9,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,34,35,36,7,14,16,37,38,39,40,41,42,43]))),Ji=(0,P.lazy)(()=>En(()=>import(`./host-C-AAp8Bz.js`).then(e=>e.O).then(e=>({default:e.HomePage})),__vite__mapDeps([26,1,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33]))),Yi=(0,P.lazy)(()=>En(()=>import(`./StudioHome-B0bZRm1L.js`).then(e=>({default:e.StudioHome})),__vite__mapDeps([44,1,22,2,3,4,5,6,11,12,13,24,9,23,25,15,19,26,8,27,10,28,29,18,30,31,32,17,33,41,42,34,45,46,47])));function Xi(){return _t(`orgSpaces`)?(0,F.jsx)(Yi,{}):(0,F.jsx)(Ji,{})}var Zi=(0,P.lazy)(()=>En(()=>import(`./OnboardingPage-DwF6KdQy.js`).then(e=>({default:e.OnboardingPage})),__vite__mapDeps([48,1,22,2,3,4,5,6,29,11,12,13,19,17,18]))),Qi=(0,P.lazy)(()=>En(()=>import(`./NewWizardPage-BTX1g2t1.js`).then(e=>({default:e.NewWizardPage})),__vite__mapDeps([49,1,4,3,24,2,5,6,22,9,23,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,43,14]))),$i=(0,P.lazy)(()=>En(()=>import(`./SettingsPage-CuUB26YJ.js`).then(e=>({default:e.SettingsPage})),__vite__mapDeps([50,1,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,41,42,34,51,52]))),ea=(0,P.lazy)(()=>En(()=>import(`./SpacePage-Dv6ocsc_.js`).then(e=>({default:e.SpacePage})),__vite__mapDeps([53,1,26,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33,38,39,45,46,47,34,52,54,7,14,16]))),ta=(0,P.lazy)(()=>En(()=>import(`./CapabilitiesPage-DAr0-gN1.js`).then(e=>({default:e.CapabilitiesPage})),__vite__mapDeps([55,1,19,4,3,2,5,6,26,24,22,9,23,25,15,11,12,13,8,27,10,28,29,18,30,31,32,17,33,34,41,42,51,36]))),na=(0,P.lazy)(()=>En(()=>import(`./SetupPage-llGzMVeH.js`).then(e=>({default:e.SetupPage})),__vite__mapDeps([56,1,22,2,3,4,5,6,26,24,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33]))),ra=null;function ia(){return(0,F.jsx)(`div`,{className:`flex min-h-dvh items-center justify-center`,children:(0,F.jsx)(ct,{kind:`round`,size:56})})}function I({children:e,bare:t,wide:n,full:r}){let i=At(),a=tt();return Ot(i.data),(0,P.useEffect)(()=>{i.data&&Zt(i.data)},[i.data]),i.isLoading?(0,F.jsx)(ia,{}):i.data?i.data.portalUrl?(0,F.jsx)(oa,{url:i.data.portalUrl}):i.data.mode===`local`&&!i.data.setupDone&&a.pathname!==`/setup`?(0,F.jsx)(ke,{to:`/setup`,replace:!0}):i.data.onboarding&&a.pathname!==`/start`?(0,F.jsx)(ke,{to:`/start`,replace:!0}):t?(0,F.jsxs)(F.Fragment,{children:[i.data.impersonation?(0,F.jsx)(ut,{name:i.data.user.name||i.data.user.email,until:i.data.impersonation.until}):null,e]}):(0,F.jsx)(Jt,{me:i.data,wide:n,full:r,children:(0,F.jsx)(rr,{me:i.data,children:e})}):(0,F.jsx)(fr,{})}function aa(){return xt(),(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(ia,{}),children:(0,F.jsxs)(ge,{children:[ra,(0,F.jsx)(k,{path:`/w/:token`,element:(0,F.jsx)(Gi,{})}),(0,F.jsx)(k,{path:`/w/:token/steps`,element:(0,F.jsx)(Gi,{steps:!0})}),(0,F.jsx)(k,{path:`/w/:token/steps/:runId`,element:(0,F.jsx)(Gi,{steps:!0})}),(0,F.jsx)(k,{path:`/w/:token/chat`,element:(0,F.jsx)(Gi,{chat:!0})}),(0,F.jsx)(k,{path:`/w/:token/chat/:runId`,element:(0,F.jsx)(Gi,{chat:!0})}),(0,F.jsx)(k,{path:`/w/:token/talk`,element:(0,F.jsx)(Gi,{chat:!0,talk:!0})}),(0,F.jsx)(k,{path:`/w/:token/talk/:runId`,element:(0,F.jsx)(Gi,{chat:!0,talk:!0})}),(0,F.jsx)(k,{path:`/w/:token/video`,element:(0,F.jsx)(Gi,{chat:!0,video:!0})}),(0,F.jsx)(k,{path:`/w/:token/video/:runId`,element:(0,F.jsx)(Gi,{chat:!0,video:!0})}),(0,F.jsx)(k,{path:`/w/:token/:runId`,element:(0,F.jsx)(Gi,{})}),(0,F.jsx)(k,{path:`/s/:token`,element:(0,F.jsx)(Ki,{})}),(0,F.jsx)(k,{path:`*`,element:(0,F.jsx)(L,{})})]})})}function oa({url:e}){return(0,P.useEffect)(()=>{window.location.replace(e)},[e]),(0,F.jsx)(ia,{})}function L(){return(0,P.useEffect)(()=>{window.location.replace(`${Ge}/`)},[]),(0,F.jsx)(ia,{})}function R(){let{search:e,hash:t}=tt();return _t(`capabilities`)?(0,F.jsx)(ke,{to:{pathname:`/capabilities/skills`,search:e,hash:t},replace:!0}):(0,F.jsx)(ea,{place:`skills`})}function sa(){return Kt().status===`ready`?(0,F.jsx)(ke,{to:`/`,replace:!0}):(0,F.jsx)(ia,{})}function ca(){xt(),(0,P.useEffect)(()=>(document.documentElement.dataset.studio=``,()=>{delete document.documentElement.dataset.studio}),[]);let e=Kt();return(0,F.jsx)(zt,{children:(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(ia,{}),children:(0,F.jsxs)(ge,{children:[(0,F.jsx)(k,{path:`/`,element:(0,F.jsx)(I,{children:(0,F.jsx)(Ht,{mode:`studio`,children:(0,F.jsx)(Xi,{})})})}),(0,F.jsx)(k,{path:`/wizards`,element:(0,F.jsx)(I,{children:(0,F.jsx)(Ht,{mode:`studio`,children:(0,F.jsx)(Ji,{})})})}),(0,F.jsx)(k,{path:`/sign-in`,element:(0,F.jsx)(I,{children:(0,F.jsx)(ke,{to:`/`,replace:!0})})}),(0,F.jsx)(k,{path:`/new`,element:(0,F.jsx)(I,{children:(0,F.jsx)(Qi,{})})}),(0,F.jsx)(k,{path:`/edit/:id`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(qi,{})})}),(0,F.jsx)(k,{path:`/space/:group?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(ea,{})})}),(0,F.jsx)(k,{path:`/skills`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(R,{})})}),(0,F.jsx)(k,{path:`/capabilities/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(ta,{})})}),(0,F.jsx)(k,{path:`/work`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(Ht,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(k,{path:`/work/c/:chatId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(Ht,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(k,{path:`/work/f/:folderId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(Ht,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(k,{path:`/work/r/:runId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(en,{})})}),(0,F.jsx)(k,{path:`/work/:place`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(Ht,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(k,{path:`/shared`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(Ht,{mode:`shared`,children:(0,F.jsx)(Vi,{})})})}),(0,F.jsx)(k,{path:`/settings/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)($i,{})})}),(0,F.jsx)(k,{path:`/account/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)($i,{scope:`account`})})}),(0,F.jsx)(k,{path:`/setup`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(na,{})})}),(0,F.jsx)(k,{path:`/start`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(Zi,{})})}),e.pages.map(e=>(0,F.jsx)(k,{path:e.path,element:(0,F.jsx)(I,{wide:e.wide,children:(0,F.jsx)($t,{of:e,children:(0,F.jsx)(e.component,{})})})},e.serial)),(0,F.jsx)(k,{path:`*`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(sa,{})})})]})})})}var la=class extends P.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){qe(`error`,e.message,e.stack)}render(){let{error:e}=this.state;return e?(0,F.jsxs)(`div`,{className:`flex min-h-dvh flex-col items-center justify-center p-6 text-center`,children:[(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.375rem]`,children:M(`report.crashed`)}),(0,F.jsx)(`p`,{className:`mt-2 max-w-md text-[0.9375rem] text-ink-3`,children:M(`report.crashedNote`)}),(0,F.jsxs)(`div`,{className:`mt-6 flex gap-3`,children:[(0,F.jsx)(w,{variant:`secondary`,onClick:()=>window.location.reload(),children:M(`report.reload`)}),(0,F.jsx)(w,{onClick:()=>Ut({where:this.props.where,error:{message:e.message,stack:e.stack}}),children:M(`report.open`)})]}),(0,F.jsx)(nn,{})]}):this.props.children}},ua=`wizards.organizationHint`,da=30;function fa(e){try{let t=JSON.parse(sessionStorage.getItem(ua)??`null`);return t?.slug===e&&Date.now()-t.at<da*1e3}catch{return!1}}function pa(e){try{sessionStorage.setItem(ua,JSON.stringify({slug:e,at:Date.now()}))}catch{}}function ma(e,t,n=!1){let r=e.slice(Ge.length),i=r.split(`/`)[1]??``;if(!t)return n?{kind:`here`,root:Ge}:{kind:`here`,root:D.has(i)?Ge:`${Ge}/${i}`};let a=t.mode===`managed`?t.tenant.slug:null;if(!a)return{kind:`here`,root:Ge};let o=`${Ge}/${a}`;return i===a?{kind:`here`,root:o}:t.organizations.some(e=>e.slug===i)&&!fa(i)?{kind:`switch`,slug:i}:D.has(i)?{kind:`move`,root:o,to:`${o}${r||`/`}`}:{kind:`foreign`,address:i,home:`${o}${r.slice(i.length+1)||`/`}`,me:t}}function ha({children:e}){let t=At(),n=gt(),r=(0,P.useRef)(null);if(t.isLoading||!t.data&&n.isLoading)return(0,F.jsx)(ia,{});r.current||={place:ma(window.location.pathname,t.data,n.data?.mode===`local`),tenant:t.data?.tenant.id??null};let{place:i}=r.current,{pathname:a,search:o,hash:s}=window.location;if(i.kind===`switch`){pa(i.slug);let e=new URLSearchParams({organization:i.slug,return:`${a}${o}`});return window.location.replace(Pe(`/api/auth/login?${e}`)),(0,F.jsx)(ia,{})}if(i.kind===`foreign`)return(0,F.jsx)(ga,{address:i.address,home:i.home,me:i.me});i.kind===`move`&&(window.history.replaceState(window.history.state,``,`${i.to}${o}${s}`),r.current.place={kind:`here`,root:i.root});let c=i.root,l=t.data?.mode===`managed`?t.data.tenant.slug:null,u=l?`${Ge}/${l}`:c;if(c!==Ge&&u!==c&&t.data?.tenant.id===r.current.tenant){let e=a.startsWith(c)?a.slice(c.length):`/`;window.history.replaceState(window.history.state,``,`${u}${e}${o}${s}`),r.current.place={kind:`here`,root:u},c=u}return Be(c),(0,F.jsx)(Ce,{basename:c,children:e},c)}function ga({address:e,home:t,me:n}){return(0,F.jsx)(`div`,{className:`flex min-h-dvh items-center justify-center px-6`,children:(0,F.jsxs)(`div`,{className:`flex max-w-md flex-col items-center gap-5 text-center`,children:[(0,F.jsx)(ct,{kind:`round`,size:56}),(0,F.jsxs)(`div`,{className:`rounded-md bg-paper-2 px-2.5 py-1 font-mono text-[0.8125rem] text-ink-2`,children:[`/studio/`,e]}),(0,F.jsx)(`h1`,{className:`text-balance font-display font-semibold text-2xl`,children:M(`address.foreign.title`)}),(0,F.jsx)(`p`,{className:`text-[0.9375rem] text-ink-2`,children:M(`address.foreign.text`,{email:n.user.email})}),(0,F.jsxs)(`div`,{className:`flex flex-wrap justify-center gap-2`,children:[(0,F.jsxs)(w,{onClick:()=>window.location.assign(t),children:[M(`address.foreign.continue`,{name:n.tenant.name??``}),(0,F.jsx)(E,{className:`size-4`})]}),(0,F.jsxs)(w,{variant:`secondary`,onClick:()=>void Ft(),children:[(0,F.jsx)(Gt,{className:`size-4`}),M(`address.foreign.switchAccount`)]})]})]})})}function _a({view:e,failed:t}){let n=gt(),[r,i]=(0,P.useState)(null),[a,o]=(0,P.useState)(``),[s,c]=(0,P.useState)(!1);if(!n.data?.reports)return null;let l=(0,F.jsxs)(w,{variant:`ghost`,size:`sm`,onClick:()=>Ut({where:`run`,runId:e.id,error:t&&e.error?{message:e.error}:null}),children:[(0,F.jsx)(pt,{className:`size-4`}),` `,M(`report.open`)]});if(t)return(0,F.jsx)(`div`,{className:`mt-4 flex justify-center`,children:l});let u=async(t,n)=>{i(t),await fetch(Pe(`/api/runs/${e.id}/feedback`),{method:`POST`,headers:{"content-type":`application/json`},credentials:`include`,body:JSON.stringify({good:t,...n?{comment:n}:{}})}).catch(()=>void 0),n!==void 0&&c(!0)};return(0,F.jsx)(`div`,{className:`mt-8 rounded-2xl border border-border bg-card p-4 sm:p-5`,children:s?(0,F.jsx)(`p`,{className:`text-ink-2 text-sm`,children:M(`feedback.thanks`)}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`mr-2 font-medium text-[0.9375rem]`,children:M(`feedback.ask`)}),(0,F.jsxs)(w,{size:`sm`,variant:r===!0?`quiet`:`secondary`,onClick:()=>void u(!0),children:[(0,F.jsx)(Zn,{className:`size-4`}),` `,M(`feedback.good`)]}),(0,F.jsxs)(w,{size:`sm`,variant:r===!1?`quiet`:`secondary`,onClick:()=>void u(!1),children:[(0,F.jsx)(Yn,{className:`size-4`}),` `,M(`feedback.bad`)]}),(0,F.jsx)(`span`,{className:`ml-auto`,children:l})]}),r===null?null:(0,F.jsxs)(`div`,{className:`mt-3 flex flex-col gap-2 sm:flex-row sm:items-end`,children:[(0,F.jsx)(T,{rows:2,value:a,placeholder:M(`feedback.more`),onChange:e=>o(e.target.value),className:`flex-1`}),(0,F.jsx)(w,{size:`sm`,onClick:()=>void u(r,a.trim()),children:M(`feedback.send`)})]})]})})}ue({lang:Tt,runBase:e=>`/api/runs/${e}`,withBase:Pe,asset:Ye,serviceWorker:`${Re}/sw.js`,app:{can:_e,call:De,tell:be,download:Ze},Mascot:ct,ShareResultButton:Sn,RunEnd:_a,onServerError:e=>qe(`error`,e)}),Ie(),Ue();var va=`wizards.reloadedForBuild`;window.addEventListener(`vite:preloadError`,e=>{let t=0;try{if(t=Number(sessionStorage.getItem(va))||0,Date.now()-t<6e4)return;sessionStorage.setItem(va,String(Date.now()))}catch{return}e.preventDefault(),window.location.reload()}),`engentyDesktop`in window&&(document.documentElement.dataset.desktop=``);var ya=window.location.pathname,ba=ya===Ge||ya.startsWith(`${Ge}/`);ba&&`serviceWorker`in navigator&&navigator.serviceWorker.register(`${Re}/sw.js`).catch(()=>void 0);var xa=new Mn({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}});(0,er.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(Ke,{client:xa,children:ba?(0,F.jsx)(ha,{children:(0,F.jsxs)(la,{where:`studio`,children:[(0,F.jsx)(ca,{}),(0,F.jsx)(nn,{})]})}):(0,F.jsx)(Ce,{basename:Re,children:(0,F.jsxs)(la,{where:`run`,children:[(0,F.jsx)(aa,{}),(0,F.jsx)(nn,{})]})})})}));export{Un as S,Cr as _,Vr as a,tr as b,Pr as c,br as d,Er as f,yr as g,wr as h,Rr as i,gr as l,Dr as m,Hr as n,Ir as o,Or as p,Ur as r,Fr as s,hi as t,Tr as u,hr as v,Gn as x,mr as y};
|
|
102
|
+
`,Ti={start:`Los geht's`,youGet:`Du bekommst`,youDo:`Du machst`,howItGoes:`So läuft es`,noAccount:`Kein Konto nötig`,wizards:e=>e===1?`1 Wizard`:`${e} Wizards`,minutes:e=>`etwa ${e} Min`,minutesLong:e=>`etwa ${e} Minuten`,minutesRange:(e,t)=>e===t?`etwa ${e} Minuten`:`${e} bis ${t} Minuten`,task:(e,t,n)=>{let r=[n?`Dateien hochladen`:``,e?`${e} ${e===1?`Frage`:`Fragen`} beantworten`:``,t?`${t===1?`einen Entwurf`:`${t} Entwürfe`} prüfen`:``].filter(Boolean);return r.length?Oi(r,`und`):`Nur starten`},short:(e,t)=>[t?`Dateien`:``,e?`${e} ${e===1?`Frage`:`Fragen`}`:``].filter(Boolean).join(`, `),all:`Alle Wizards`,kind:{text:`Text`,document:`Dokument`,table:`Tabelle`,image:`Bild`,video:`Video`,audio:`Audio`,dashboard:`Widget`},example:`Beispiel ansehen`,exampleNote:`Ein Lauf, den das Team geteilt hat.`,pause:`Pausieren geht jederzeit, auf diesem Gerät geht es weiter.`,download:`Zum Herunterladen, oder du schickst sie direkt aus dem Wizard.`,imprint:`Impressum`,page:`Seite`,poweredBy:`Wizards von engenty`,nothing:`Hier ist noch nichts.`,nothingNote:`Diese Adresse hat noch keine öffentliche Seite. Teams bauen ihre Wizards mit engenty wizards und zeigen sie hier.`,whatIs:`Was ist engenty wizards?`,paused:`Diese Seite ist pausiert.`,pausedNote:`Das Team kümmert sich darum. Bitte später wieder vorbeischauen.`,down:`Diese Seite ist gerade nicht erreichbar.`,downNote:`Bitte in einer Minute noch einmal versuchen.`,notBuilt:`Demo: Dieser Wizard ist noch nicht gebaut.`,notBuiltNote:`Auf der echten Seite führt der Knopf zum Wizard.`,back:`Zurück zur Seite`},Ei={start:`Start`,youGet:`You get`,youDo:`You do`,howItGoes:`How it goes`,noAccount:`No account needed`,wizards:e=>e===1?`1 wizard`:`${e} wizards`,minutes:e=>`about ${e} min`,minutesLong:e=>`about ${e} minutes`,minutesRange:(e,t)=>e===t?`about ${e} minutes`:`${e} to ${t} minutes`,task:(e,t,n)=>{let r=[n?`upload your files`:``,e?`answer ${e} ${e===1?`question`:`questions`}`:``,t?`check ${t===1?`one draft`:`${t} drafts`}`:``].filter(Boolean),i=r.length?Oi(r,`and`):`just start`;return i.charAt(0).toUpperCase()+i.slice(1)},short:(e,t)=>[t?`Files`:``,e?`${e} ${e===1?`question`:`questions`}`:``].filter(Boolean).join(`, `),all:`All wizards`,kind:{text:`Text`,document:`Document`,table:`Table`,image:`Image`,video:`Video`,audio:`Audio`,dashboard:`Widget`},example:`See an example`,exampleNote:`A run the team shared.`,pause:`You can stop at any time and continue on this device.`,download:`To download, or you send them straight from the wizard.`,imprint:`Imprint`,page:`Page`,poweredBy:`Wizards by engenty`,nothing:`There is nothing here yet.`,nothingNote:`This address has no public page yet. Teams build their wizards with engenty wizards and show them here.`,whatIs:`What is engenty wizards?`,paused:`This page is paused.`,pausedNote:`The team is looking into it. Come back later.`,down:`This page can't be reached right now.`,downNote:`Try again in a minute.`,notBuilt:`Demo: this wizard isn't built yet.`,notBuiltNote:`On a real page the button leads to the wizard.`,back:`Back to the page`},Di={youGet:`Sie bekommen`,youDo:`Sie machen`,download:`Zum Herunterladen, oder Sie schicken sie direkt aus dem Wizard.`,pause:`Pausieren geht jederzeit, auf diesem Gerät geht es weiter.`};function Oi(e,t){return e.length<2?e[0]??``:`${e.slice(0,-1).join(`, `)} ${t} ${e[e.length-1]}`}var ki=(e,t)=>e===`en`?Ei:t===`sie`?{...Ti,...Di}:Ti,Ai=e(ot(),1),ji=e=>[`page-preview`,e];function Mi(e){(0,P.useEffect)(()=>{if(document.head.querySelector(`link[data-page-fonts="${e}"]`))return;let t=document.createElement(`link`);t.rel=`stylesheet`,t.href=e,t.dataset.pageFonts=e,document.head.append(t)},[e])}function Ni({vars:e,children:t}){let[n,r]=(0,P.useState)(null),[i,a]=(0,P.useState)(null);return(0,P.useEffect)(()=>{n&&!i&&a(n.shadowRoot??n.attachShadow({mode:`open`}))},[n,i]),(0,F.jsx)(`div`,{ref:r,className:`min-h-full`,children:i?(0,Ai.createPortal)((0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`style`,{children:`${wi}\n.pg{${e};background:var(--ground);color:var(--ink);font-family:var(--f-body);-webkit-font-smoothing:antialiased;line-height:1.4;min-height:100%}.pg a{pointer-events:none}`}),(0,F.jsx)(`div`,{className:`pg`,children:t})]}),i):null})}function Pi({space:e,page:t,empty:r}){let i=ne({queryKey:ji(e.id),queryFn:()=>n.get(`/api/studio/spaces/${e.id}/page`)}),a=i.data?.organization?.space??null,o=a?.brand.name||i.data?.organization?.name||t.title,s=xi(a?.brand.theme??null);Mi(s.fontsHref);let c=ki(t.lang??`de`,t.form),l=a?.wizards??[],[u,...d]=l,f=l.map(e=>e.effort.minutes);return(0,F.jsxs)(Ni,{vars:s.vars,children:[(0,F.jsxs)(`div`,{className:`band`,children:[(0,F.jsx)(`header`,{className:`wp top`,children:(0,F.jsx)(`span`,{className:`brand`,children:a?.brand.logoUrl?(0,F.jsx)(`img`,{src:a.brand.logoUrl,alt:o}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`mark`,"aria-hidden":`true`,children:Mt(o)}),o]})})}),(0,F.jsxs)(`div`,{className:`wp hero`,children:[(0,F.jsxs)(`p`,{className:`lbl`,children:[(0,F.jsx)(`b`,{children:t.title}),o===t.title?null:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`i`,{"aria-hidden":`true`}),o]})]}),(0,F.jsx)(`h1`,{children:t.headline||t.title}),t.intro?(0,F.jsx)(`p`,{children:t.intro}):null,l.length?(0,F.jsxs)(`ul`,{className:`meta`,children:[(0,F.jsx)(`li`,{children:c.wizards(l.length)}),(0,F.jsx)(`li`,{children:c.minutesRange(Math.min(...f),Math.max(...f))}),(0,F.jsx)(`li`,{children:c.noAccount})]}):null]})]}),(0,F.jsxs)(`main`,{className:`wp main`,children:[u?(0,F.jsx)(Ii,{w:u,t:c}):(0,F.jsx)(`div`,{className:`card`,style:{padding:`28px 32px`,color:`var(--muted)`,fontSize:15},children:r}),d.length?(0,F.jsxs)(`section`,{className:`sec`,children:[(0,F.jsx)(`h2`,{children:c.all}),(0,F.jsx)(`ul`,{className:`rows`,children:d.map(e=>(0,F.jsx)(Li,{w:e,t:c},e.slug))})]}):null]})]})}function Fi({w:e}){return(0,F.jsx)(`div`,{className:`gets`,children:e.results.slice(0,4).map(e=>(0,F.jsx)(`span`,{style:{color:Ci(e.kind)},children:(0,F.jsx)(`span`,{style:{color:`var(--ink)`},children:e.title})},e.title))})}function Ii({w:e,t}){return(0,F.jsxs)(`article`,{className:`card feat`,children:[(0,F.jsx)(`div`,{className:`perch`,children:(0,F.jsx)(ct,{kind:e.avatar,size:150,interactive:!1})}),(0,F.jsxs)(`div`,{className:`feat-main`,children:[(0,F.jsx)(`h2`,{children:e.title}),e.description?(0,F.jsx)(`p`,{className:`lead`,children:e.description}):null,(0,F.jsxs)(`div`,{className:`does`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.youDo}),(0,F.jsxs)(`div`,{children:[t.task(e.effort.fields,e.effort.reviews,e.effort.uploads),` `,(0,F.jsxs)(`span`,{children:[`· `,t.minutesLong(e.effort.minutes)]})]})]}),e.results.length?(0,F.jsxs)(`div`,{className:`does`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.youGet}),(0,F.jsx)(Fi,{w:e})]}):null,(0,F.jsxs)(`div`,{className:`cta`,children:[(0,F.jsx)(`a`,{className:`pill`,href:e.runUrl,children:t.start}),(0,F.jsx)(`small`,{children:t.pause})]})]}),(0,F.jsxs)(`div`,{className:`feat-side`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.howItGoes}),(0,F.jsx)(`ul`,{className:`steps`,children:e.steps.map(e=>(0,F.jsx)(`li`,{style:{animation:`none`},children:e.title},e.title))})]})]})}function Li({w:e,t}){let n=t.short(e.effort.fields,e.effort.uploads);return(0,F.jsxs)(`li`,{className:`card row`,children:[(0,F.jsx)(`span`,{className:`peek`,children:(0,F.jsx)(ct,{kind:e.avatar,size:72,interactive:!1})}),(0,F.jsxs)(`div`,{className:`row-main`,children:[(0,F.jsx)(`h3`,{children:e.title}),e.description?(0,F.jsx)(`p`,{className:`row-desc`,children:e.description}):null,e.results.length?(0,F.jsx)(Fi,{w:e}):null,(0,F.jsx)(`ul`,{className:`row-meta`,children:(0,F.jsx)(`li`,{children:[n,t.minutes(e.effort.minutes)].filter(Boolean).join(` · `)})})]}),(0,F.jsx)(`a`,{className:`pill`,href:e.runUrl,children:t.start})]})}var Ri=`text-[0.8125rem] text-ink-3 leading-snug`;function zi(){let{space:e,spaces:t}=It();return{space:t.find(e=>e.page?.on)??t.find(e=>e.root)??e,spaces:t}}function Bi(e){return Nn({queries:e.filter(e=>e.kind!==`client`).map(e=>({queryKey:fe.spaceWizards(e.id),queryFn:()=>n.get(`/api/studio/spaces/${e.id}/wizards`)}))}).flatMap(e=>e.data??[])}function Vi(){N([{label:M(`mode.shared`)}]);let e=At().data,{space:t,spaces:n}=zi(),r=Bi(n),i=r.filter(e=>e.published&&e.shareEnabled),[a,o]=(0,P.useState)(!1),s=e?.tenant.pagesHost??null;if(!t)return null;if(!s)return(0,F.jsx)(`p`,{className:`py-24 text-center text-[0.9375rem] text-ink-3`,children:M(`page.cloudOnly`)});let c=t.page;if(c?.on)return(0,F.jsx)(Wi,{space:t,page:c,host:s,wizards:r,linked:i});let l=(0,F.jsx)(Ui,{open:a,onClose:()=>o(!1),space:t,host:s,wizards:r.filter(e=>e.spaceId===t.id)});return i.length?(0,F.jsxs)(`div`,{className:`mx-auto flex w-full max-w-3xl flex-col gap-8 px-4 py-8 sm:px-6`,children:[(0,F.jsxs)(Le,{className:`flex flex-wrap items-center gap-4 p-5`,children:[(0,F.jsx)(ct,{kind:`round`,size:44,interactive:!1}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.0625rem] leading-tight`,children:M(`shared.emptyTitle`)}),(0,F.jsx)(`p`,{className:`mt-1 text-[0.875rem] text-ink-2`,children:M(`shared.emptyText`)})]}),(0,F.jsx)(w,{onClick:()=>o(!0),children:M(`shared.setUp`)})]}),(0,F.jsxs)(`section`,{className:`flex flex-col gap-2`,children:[(0,F.jsx)(`h2`,{className:`px-1 font-medium text-[0.8125rem] text-ink-3`,children:M(`shared.byLink`)}),(0,F.jsx)(Le,{className:`divide-y divide-border-soft px-4`,children:i.map(e=>(0,F.jsx)(Hi,{wizard:e},e.id))})]}),l]}):(0,F.jsxs)(`div`,{className:`grid min-h-[60vh] place-items-center px-6 py-16`,children:[(0,F.jsxs)(`div`,{className:`flex max-w-md flex-col items-center gap-3 text-center`,children:[(0,F.jsx)(ct,{kind:`round`,size:72,interactive:!1}),(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.375rem] leading-tight`,children:M(`shared.emptyTitle`)}),(0,F.jsx)(`p`,{className:`text-[0.9375rem] text-ink-2`,children:M(`shared.emptyText`)}),(0,F.jsx)(w,{className:`mt-1`,onClick:()=>o(!0),children:M(`shared.setUp`)})]}),l]})}function Hi({wizard:e,compact:t}){let n=Wt(e),{copied:i,copy:a}=Xr(),[o,s]=(0,P.useState)(!1);return(0,F.jsxs)(`div`,{className:`flex items-center gap-3 py-3`,children:[t?null:(0,F.jsx)(ct,{kind:e.avatar,costume:e.costume,size:32,interactive:!1}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsx)(`div`,{className:`truncate font-medium text-[0.875rem]`,children:e.title}),(0,F.jsx)(`div`,{className:`truncate font-mono text-[0.75rem] text-ink-3`,children:n.replace(/^https?:\/\//,``)})]}),(0,F.jsx)(Je,{label:M(`shared.copyLink`),onClick:()=>a(n),children:i?(0,F.jsx)(sn,{className:`size-4`}):(0,F.jsx)(an,{className:`size-4`})}),(0,F.jsx)(Je,{label:M(`shared.qr`),onClick:()=>s(!0),children:(0,F.jsx)(Gn,{className:`size-4`})}),(0,F.jsx)(xe,{open:o,onClose:()=>s(!1),title:e.title,children:(0,F.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,F.jsx)(r,{text:n,label:M(`shared.qrFor`,{name:e.title}),className:`size-56`}),(0,F.jsx)(`p`,{className:A(Ri,`break-all text-center font-mono`),children:n})]})})]})}function Ui({open:e,onClose:t,space:r,host:i,wizards:a}){let o=Fe(),s=At().data?.tenant.name??``,c=r.page?.title||r.brand.name?.trim()||(r.root&&s?s:r.name),[l,u]=(0,P.useState)(c),[d,f]=(0,P.useState)(r.page?.slug||oe(c)||`page`),p=rt({mutationFn:()=>{let e=r.page?{...r.page,on:!0,title:l.trim(),slug:d}:{on:!0,slug:d,title:l.trim(),...Gr(Tt===`de`?`de-du`:`en`),wizards:a.filter(e=>e.published&&e.shareEnabled).map(e=>e.id),examples:{}};return n.patch(`/api/studio/spaces/${r.id}`,{page:e})},onSuccess:async()=>{await o.invalidateQueries({queryKey:fe.spaces()}),t()}}),m=!!l.trim()&&x.test(d);return(0,F.jsx)(xe,{open:e,onClose:t,title:M(`shared.setUp`),children:(0,F.jsxs)(`form`,{className:`flex flex-col gap-5`,onSubmit:e=>{e.preventDefault(),m&&p.mutate()},children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Te,{children:M(`page.title`)}),(0,F.jsx)(Se,{value:l,maxLength:120,onChange:e=>u(e.target.value)})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Te,{children:M(`page.address`)}),(0,F.jsx)(Qr,{host:i,value:d,onChange:f})]}),p.error?(0,F.jsx)(`p`,{className:`text-[0.8125rem] text-rose`,children:p.error.message}):null,(0,F.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,F.jsx)(w,{variant:`ghost`,onClick:t,children:M(`common.cancel`)}),(0,F.jsx)(w,{type:`submit`,busy:p.isPending,disabled:!m,children:M(`shared.turnOn`)})]})]})})}function Wi({space:e,page:t,host:r,wizards:i,linked:a}){let o=Fe(),s=At().data?.manageUrl??null,[c,l]=(0,P.useState)(`content`),u=async t=>{await n.patch(`/api/studio/spaces/${e.id}`,{page:t}),await o.invalidateQueries({queryKey:fe.spaces()}),await o.invalidateQueries({queryKey:ji(e.id)})},d=rt({mutationFn:e=>u({...t,...e})}),f=i.filter(t=>t.spaceId===e.id),p=Ur(r,t.slug,s),m=(e,n)=>d.mutate({wizards:n?[...t.wizards,e]:t.wizards.filter(t=>t!==e)}),h=f.filter(e=>e.published&&e.shareEnabled);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Xt,{children:(0,F.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-3`,children:[(0,F.jsx)(Rr,{named:!0,label:M(`mode.shared`),value:c,onChange:l,options:[{id:`content`,label:M(`shared.content`)},{id:`settings`,label:M(`shared.settings`)}]}),c===`content`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`section`,{className:`flex flex-col`,children:[(0,F.jsx)(`h2`,{className:`px-1 pb-1 font-medium text-[0.75rem] text-ink-3`,children:M(`shared.onPage`)}),h.length?h.map(e=>(0,F.jsxs)(`div`,{className:`flex items-center gap-2 border-border-soft border-b px-1 py-2 last:border-b-0`,children:[(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[0.875rem]`,children:e.title}),(0,F.jsx)(Xe,{checked:t.wizards.includes(e.id),disabled:d.isPending,label:e.title,onChange:t=>m(e.id,t)})]},e.id)):(0,F.jsx)(`p`,{className:A(Ri,`px-1`),children:M(`shared.noneToShow`)}),t.wizards.length===0&&h.length?(0,F.jsx)(`p`,{className:A(Ri,`px-1 pt-2`),children:M(`shared.pickOne`)}):null]}),a.length?(0,F.jsxs)(`section`,{className:`flex flex-col`,children:[(0,F.jsx)(`h2`,{className:`px-1 font-medium text-[0.75rem] text-ink-3`,children:M(`shared.byLink`)}),(0,F.jsx)(`div`,{className:`divide-y divide-border-soft px-1`,children:a.map(e=>(0,F.jsx)(Hi,{wizard:e,compact:!0},e.id))})]}):null]}):(0,F.jsxs)(`div`,{className:`flex flex-1 flex-col gap-5`,children:[(0,F.jsx)(mi,{host:r,page:t,disabled:!1,save:u,onState:()=>{}}),(0,F.jsx)(w,{variant:`ghost`,className:`mt-auto self-start text-rose`,busy:d.isPending,onClick:()=>d.mutate({on:!1}),children:M(`shared.turnOff`)})]})]})}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsxs)(`a`,{href:p,target:`_blank`,rel:`noreferrer`,className:`flex items-center gap-1 self-end font-mono text-[0.75rem] text-ink-3 hover:text-ink`,children:[p.replace(/^https?:\/\//,``),(0,F.jsx)(Yt,{className:`size-3.5`})]}),(0,F.jsx)(`div`,{className:`overflow-hidden rounded-xl shadow-elevated`,children:(0,F.jsx)(Pi,{space:e,page:t,empty:M(`shared.previewEmpty`)})})]})]})}var Gi=(0,P.lazy)(()=>En(()=>import(`./PublicRunner-Bp4DxTrD.js`).then(e=>({default:e.PublicRunner})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),Ki=(0,P.lazy)(()=>En(()=>import(`./SharePage-CgQp_PT6.js`).then(e=>({default:e.SharePage})),__vite__mapDeps([20,1,2,3,4,5,6,11,12,13,7,8,9,10,14,15,16,0,17,18,19]))),qi=(0,P.lazy)(()=>En(()=>import(`./EditorPage-CxABBMqo.js`).then(e=>({default:e.EditorPage})),__vite__mapDeps([21,1,2,3,4,5,6,22,23,24,9,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,34,35,36,7,14,16,37,38,39,40,41,42,43]))),Ji=(0,P.lazy)(()=>En(()=>import(`./host-B2ZzDrkc.js`).then(e=>e.O).then(e=>({default:e.HomePage})),__vite__mapDeps([26,1,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33]))),Yi=(0,P.lazy)(()=>En(()=>import(`./StudioHome-DzVpWMrD.js`).then(e=>({default:e.StudioHome})),__vite__mapDeps([44,1,22,2,3,4,5,6,11,12,13,24,9,23,25,15,19,26,8,27,10,28,29,18,30,31,32,17,33,41,42,34,45,46,47])));function Xi(){return _t(`orgSpaces`)?(0,F.jsx)(Yi,{}):(0,F.jsx)(Ji,{})}var Zi=(0,P.lazy)(()=>En(()=>import(`./OnboardingPage-DwF6KdQy.js`).then(e=>({default:e.OnboardingPage})),__vite__mapDeps([48,1,22,2,3,4,5,6,29,11,12,13,19,17,18]))),Qi=(0,P.lazy)(()=>En(()=>import(`./NewWizardPage-Bn2BPaUB.js`).then(e=>({default:e.NewWizardPage})),__vite__mapDeps([49,1,4,3,24,2,5,6,22,9,23,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,43,14]))),$i=(0,P.lazy)(()=>En(()=>import(`./SettingsPage-Cytcl_9w.js`).then(e=>({default:e.SettingsPage})),__vite__mapDeps([50,1,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,41,42,34,51,52]))),ea=(0,P.lazy)(()=>En(()=>import(`./SpacePage-Bd5-wBUc.js`).then(e=>({default:e.SpacePage})),__vite__mapDeps([53,1,26,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33,38,39,45,46,47,34,52,54,7,14,16]))),ta=(0,P.lazy)(()=>En(()=>import(`./CapabilitiesPage-DAX03vkY.js`).then(e=>({default:e.CapabilitiesPage})),__vite__mapDeps([55,1,19,4,3,2,5,6,26,24,22,9,23,25,15,11,12,13,8,27,10,28,29,18,30,31,32,17,33,34,41,42,51,36]))),na=(0,P.lazy)(()=>En(()=>import(`./SetupPage-B5zCrIKT.js`).then(e=>({default:e.SetupPage})),__vite__mapDeps([56,1,22,2,3,4,5,6,26,24,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33]))),ra=null;function ia(){return(0,F.jsx)(`div`,{className:`flex min-h-dvh items-center justify-center`,children:(0,F.jsx)(ct,{kind:`round`,size:56})})}function I({children:e,bare:t,wide:n,full:r}){let i=At(),a=tt();return Ot(i.data),(0,P.useEffect)(()=>{i.data&&Zt(i.data)},[i.data]),i.isLoading?(0,F.jsx)(ia,{}):i.data?i.data.portalUrl?(0,F.jsx)(oa,{url:i.data.portalUrl}):i.data.mode===`local`&&!i.data.setupDone&&a.pathname!==`/setup`?(0,F.jsx)(ke,{to:`/setup`,replace:!0}):i.data.onboarding&&a.pathname!==`/start`?(0,F.jsx)(ke,{to:`/start`,replace:!0}):t?(0,F.jsxs)(F.Fragment,{children:[i.data.impersonation?(0,F.jsx)(ut,{name:i.data.user.name||i.data.user.email,until:i.data.impersonation.until}):null,e]}):(0,F.jsx)(Jt,{me:i.data,wide:n,full:r,children:(0,F.jsx)(rr,{me:i.data,children:e})}):(0,F.jsx)(fr,{})}function aa(){return xt(),(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(ia,{}),children:(0,F.jsxs)(ge,{children:[ra,(0,F.jsx)(k,{path:`/w/:token`,element:(0,F.jsx)(Gi,{})}),(0,F.jsx)(k,{path:`/w/:token/steps`,element:(0,F.jsx)(Gi,{steps:!0})}),(0,F.jsx)(k,{path:`/w/:token/steps/:runId`,element:(0,F.jsx)(Gi,{steps:!0})}),(0,F.jsx)(k,{path:`/w/:token/chat`,element:(0,F.jsx)(Gi,{chat:!0})}),(0,F.jsx)(k,{path:`/w/:token/chat/:runId`,element:(0,F.jsx)(Gi,{chat:!0})}),(0,F.jsx)(k,{path:`/w/:token/talk`,element:(0,F.jsx)(Gi,{chat:!0,talk:!0})}),(0,F.jsx)(k,{path:`/w/:token/talk/:runId`,element:(0,F.jsx)(Gi,{chat:!0,talk:!0})}),(0,F.jsx)(k,{path:`/w/:token/video`,element:(0,F.jsx)(Gi,{chat:!0,video:!0})}),(0,F.jsx)(k,{path:`/w/:token/video/:runId`,element:(0,F.jsx)(Gi,{chat:!0,video:!0})}),(0,F.jsx)(k,{path:`/w/:token/:runId`,element:(0,F.jsx)(Gi,{})}),(0,F.jsx)(k,{path:`/s/:token`,element:(0,F.jsx)(Ki,{})}),(0,F.jsx)(k,{path:`*`,element:(0,F.jsx)(L,{})})]})})}function oa({url:e}){return(0,P.useEffect)(()=>{window.location.replace(e)},[e]),(0,F.jsx)(ia,{})}function L(){return(0,P.useEffect)(()=>{window.location.replace(`${Ge}/`)},[]),(0,F.jsx)(ia,{})}function R(){let{search:e,hash:t}=tt();return _t(`capabilities`)?(0,F.jsx)(ke,{to:{pathname:`/capabilities/skills`,search:e,hash:t},replace:!0}):(0,F.jsx)(ea,{place:`skills`})}function sa(){return Kt().status===`ready`?(0,F.jsx)(ke,{to:`/`,replace:!0}):(0,F.jsx)(ia,{})}function ca(){xt(),(0,P.useEffect)(()=>(document.documentElement.dataset.studio=``,()=>{delete document.documentElement.dataset.studio}),[]);let e=Kt();return(0,F.jsx)(zt,{children:(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(ia,{}),children:(0,F.jsxs)(ge,{children:[(0,F.jsx)(k,{path:`/`,element:(0,F.jsx)(I,{children:(0,F.jsx)(Ht,{mode:`studio`,children:(0,F.jsx)(Xi,{})})})}),(0,F.jsx)(k,{path:`/wizards`,element:(0,F.jsx)(I,{children:(0,F.jsx)(Ht,{mode:`studio`,children:(0,F.jsx)(Ji,{})})})}),(0,F.jsx)(k,{path:`/sign-in`,element:(0,F.jsx)(I,{children:(0,F.jsx)(ke,{to:`/`,replace:!0})})}),(0,F.jsx)(k,{path:`/new`,element:(0,F.jsx)(I,{children:(0,F.jsx)(Qi,{})})}),(0,F.jsx)(k,{path:`/edit/:id`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(qi,{})})}),(0,F.jsx)(k,{path:`/space/:group?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(ea,{})})}),(0,F.jsx)(k,{path:`/skills`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(R,{})})}),(0,F.jsx)(k,{path:`/capabilities/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(ta,{})})}),(0,F.jsx)(k,{path:`/work`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(Ht,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(k,{path:`/work/c/:chatId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(Ht,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(k,{path:`/work/f/:folderId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(Ht,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(k,{path:`/work/r/:runId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(en,{})})}),(0,F.jsx)(k,{path:`/work/:place`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(Ht,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(k,{path:`/shared`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(Ht,{mode:`shared`,children:(0,F.jsx)(Vi,{})})})}),(0,F.jsx)(k,{path:`/settings/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)($i,{})})}),(0,F.jsx)(k,{path:`/account/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)($i,{scope:`account`})})}),(0,F.jsx)(k,{path:`/setup`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(na,{})})}),(0,F.jsx)(k,{path:`/start`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(Zi,{})})}),e.pages.map(e=>(0,F.jsx)(k,{path:e.path,element:(0,F.jsx)(I,{wide:e.wide,children:(0,F.jsx)($t,{of:e,children:(0,F.jsx)(e.component,{})})})},e.serial)),(0,F.jsx)(k,{path:`*`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(sa,{})})})]})})})}var la=class extends P.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){qe(`error`,e.message,e.stack)}render(){let{error:e}=this.state;return e?(0,F.jsxs)(`div`,{className:`flex min-h-dvh flex-col items-center justify-center p-6 text-center`,children:[(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.375rem]`,children:M(`report.crashed`)}),(0,F.jsx)(`p`,{className:`mt-2 max-w-md text-[0.9375rem] text-ink-3`,children:M(`report.crashedNote`)}),(0,F.jsxs)(`div`,{className:`mt-6 flex gap-3`,children:[(0,F.jsx)(w,{variant:`secondary`,onClick:()=>window.location.reload(),children:M(`report.reload`)}),(0,F.jsx)(w,{onClick:()=>Ut({where:this.props.where,error:{message:e.message,stack:e.stack}}),children:M(`report.open`)})]}),(0,F.jsx)(nn,{})]}):this.props.children}},ua=`wizards.organizationHint`,da=30;function fa(e){try{let t=JSON.parse(sessionStorage.getItem(ua)??`null`);return t?.slug===e&&Date.now()-t.at<da*1e3}catch{return!1}}function pa(e){try{sessionStorage.setItem(ua,JSON.stringify({slug:e,at:Date.now()}))}catch{}}function ma(e,t,n=!1){let r=e.slice(Ge.length),i=r.split(`/`)[1]??``;if(!t)return n?{kind:`here`,root:Ge}:{kind:`here`,root:D.has(i)?Ge:`${Ge}/${i}`};let a=t.mode===`managed`?t.tenant.slug:null;if(!a)return{kind:`here`,root:Ge};let o=`${Ge}/${a}`;return i===a?{kind:`here`,root:o}:t.organizations.some(e=>e.slug===i)&&!fa(i)?{kind:`switch`,slug:i}:D.has(i)?{kind:`move`,root:o,to:`${o}${r||`/`}`}:{kind:`foreign`,address:i,home:`${o}${r.slice(i.length+1)||`/`}`,me:t}}function ha({children:e}){let t=At(),n=gt(),r=(0,P.useRef)(null);if(t.isLoading||!t.data&&n.isLoading)return(0,F.jsx)(ia,{});r.current||={place:ma(window.location.pathname,t.data,n.data?.mode===`local`),tenant:t.data?.tenant.id??null};let{place:i}=r.current,{pathname:a,search:o,hash:s}=window.location;if(i.kind===`switch`){pa(i.slug);let e=new URLSearchParams({organization:i.slug,return:`${a}${o}`});return window.location.replace(Pe(`/api/auth/login?${e}`)),(0,F.jsx)(ia,{})}if(i.kind===`foreign`)return(0,F.jsx)(ga,{address:i.address,home:i.home,me:i.me});i.kind===`move`&&(window.history.replaceState(window.history.state,``,`${i.to}${o}${s}`),r.current.place={kind:`here`,root:i.root});let c=i.root,l=t.data?.mode===`managed`?t.data.tenant.slug:null,u=l?`${Ge}/${l}`:c;if(c!==Ge&&u!==c&&t.data?.tenant.id===r.current.tenant){let e=a.startsWith(c)?a.slice(c.length):`/`;window.history.replaceState(window.history.state,``,`${u}${e}${o}${s}`),r.current.place={kind:`here`,root:u},c=u}return Be(c),(0,F.jsx)(Ce,{basename:c,children:e},c)}function ga({address:e,home:t,me:n}){return(0,F.jsx)(`div`,{className:`flex min-h-dvh items-center justify-center px-6`,children:(0,F.jsxs)(`div`,{className:`flex max-w-md flex-col items-center gap-5 text-center`,children:[(0,F.jsx)(ct,{kind:`round`,size:56}),(0,F.jsxs)(`div`,{className:`rounded-md bg-paper-2 px-2.5 py-1 font-mono text-[0.8125rem] text-ink-2`,children:[`/studio/`,e]}),(0,F.jsx)(`h1`,{className:`text-balance font-display font-semibold text-2xl`,children:M(`address.foreign.title`)}),(0,F.jsx)(`p`,{className:`text-[0.9375rem] text-ink-2`,children:M(`address.foreign.text`,{email:n.user.email})}),(0,F.jsxs)(`div`,{className:`flex flex-wrap justify-center gap-2`,children:[(0,F.jsxs)(w,{onClick:()=>window.location.assign(t),children:[M(`address.foreign.continue`,{name:n.tenant.name??``}),(0,F.jsx)(E,{className:`size-4`})]}),(0,F.jsxs)(w,{variant:`secondary`,onClick:()=>void Ft(),children:[(0,F.jsx)(Gt,{className:`size-4`}),M(`address.foreign.switchAccount`)]})]})]})})}function _a({view:e,failed:t}){let n=gt(),[r,i]=(0,P.useState)(null),[a,o]=(0,P.useState)(``),[s,c]=(0,P.useState)(!1);if(!n.data?.reports)return null;let l=(0,F.jsxs)(w,{variant:`ghost`,size:`sm`,onClick:()=>Ut({where:`run`,runId:e.id,error:t&&e.error?{message:e.error}:null}),children:[(0,F.jsx)(pt,{className:`size-4`}),` `,M(`report.open`)]});if(t)return(0,F.jsx)(`div`,{className:`mt-4 flex justify-center`,children:l});let u=async(t,n)=>{i(t),await fetch(Pe(`/api/runs/${e.id}/feedback`),{method:`POST`,headers:{"content-type":`application/json`},credentials:`include`,body:JSON.stringify({good:t,...n?{comment:n}:{}})}).catch(()=>void 0),n!==void 0&&c(!0)};return(0,F.jsx)(`div`,{className:`mt-8 rounded-2xl border border-border bg-card p-4 sm:p-5`,children:s?(0,F.jsx)(`p`,{className:`text-ink-2 text-sm`,children:M(`feedback.thanks`)}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`mr-2 font-medium text-[0.9375rem]`,children:M(`feedback.ask`)}),(0,F.jsxs)(w,{size:`sm`,variant:r===!0?`quiet`:`secondary`,onClick:()=>void u(!0),children:[(0,F.jsx)(Zn,{className:`size-4`}),` `,M(`feedback.good`)]}),(0,F.jsxs)(w,{size:`sm`,variant:r===!1?`quiet`:`secondary`,onClick:()=>void u(!1),children:[(0,F.jsx)(Yn,{className:`size-4`}),` `,M(`feedback.bad`)]}),(0,F.jsx)(`span`,{className:`ml-auto`,children:l})]}),r===null?null:(0,F.jsxs)(`div`,{className:`mt-3 flex flex-col gap-2 sm:flex-row sm:items-end`,children:[(0,F.jsx)(T,{rows:2,value:a,placeholder:M(`feedback.more`),onChange:e=>o(e.target.value),className:`flex-1`}),(0,F.jsx)(w,{size:`sm`,onClick:()=>void u(r,a.trim()),children:M(`feedback.send`)})]})]})})}ue({lang:Tt,runBase:e=>`/api/runs/${e}`,withBase:Pe,asset:Ye,serviceWorker:`${Re}/sw.js`,app:{can:_e,call:De,tell:be,download:Ze},Mascot:ct,ShareResultButton:Sn,RunEnd:_a,onServerError:e=>qe(`error`,e)}),Ie(),Ue();var va=`wizards.reloadedForBuild`;window.addEventListener(`vite:preloadError`,e=>{let t=0;try{if(t=Number(sessionStorage.getItem(va))||0,Date.now()-t<6e4)return;sessionStorage.setItem(va,String(Date.now()))}catch{return}e.preventDefault(),window.location.reload()}),`engentyDesktop`in window&&(document.documentElement.dataset.desktop=``);var ya=window.location.pathname,ba=ya===Ge||ya.startsWith(`${Ge}/`);ba&&`serviceWorker`in navigator&&navigator.serviceWorker.register(`${Re}/sw.js`).catch(()=>void 0);var xa=new Mn({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}});(0,er.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(Ke,{client:xa,children:ba?(0,F.jsx)(ha,{children:(0,F.jsxs)(la,{where:`studio`,children:[(0,F.jsx)(ca,{}),(0,F.jsx)(nn,{})]})}):(0,F.jsx)(Ce,{basename:Re,children:(0,F.jsxs)(la,{where:`run`,children:[(0,F.jsx)(aa,{}),(0,F.jsx)(nn,{})]})})})}));export{Un as S,Cr as _,Vr as a,tr as b,Pr as c,br as d,Er as f,yr as g,wr as h,Rr as i,gr as l,Dr as m,Hr as n,Ir as o,Or as p,Ur as r,Fr as s,hi as t,Tr as u,hr as v,Gn as x,mr as y};
|
package/apps/web/dist/index.html
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
dispatchEvent(new Event("wizard-install"));
|
|
35
35
|
});
|
|
36
36
|
</script>
|
|
37
|
-
<script type="module" crossorigin src="/studio/assets/index-
|
|
37
|
+
<script type="module" crossorigin src="/studio/assets/index-C1m_S1ls.js"></script>
|
|
38
38
|
<link rel="modulepreload" crossorigin href="/studio/assets/rolldown-runtime-XKyaHtl9.js">
|
|
39
39
|
<link rel="modulepreload" crossorigin href="/studio/assets/jsx-runtime-C3cWAN_r.js">
|
|
40
40
|
<link rel="modulepreload" crossorigin href="/studio/assets/i18n-Dyi0kvaA.js">
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
<link rel="modulepreload" crossorigin href="/studio/assets/floating-ui.dom-S_FT_s1L.js">
|
|
58
58
|
<link rel="modulepreload" crossorigin href="/studio/assets/upload-BZThm-R6.js">
|
|
59
59
|
<link rel="modulepreload" crossorigin href="/studio/assets/media-gjOIWMWK.js">
|
|
60
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/UpdateCheck-
|
|
60
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/UpdateCheck-BEruHgs0.js">
|
|
61
61
|
<link rel="modulepreload" crossorigin href="/studio/assets/with-selector-DNNxLmGI.js">
|
|
62
62
|
<link rel="modulepreload" crossorigin href="/studio/assets/code-editor-BLwDuQLI.js">
|
|
63
63
|
<link rel="modulepreload" crossorigin href="/studio/assets/LangSwitch-BNkytlus.js">
|
|
64
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/host-
|
|
64
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/host-B2ZzDrkc.js">
|
|
65
65
|
<link rel="modulepreload" crossorigin href="/studio/assets/phone-CG7Bz_ZL.js">
|
|
66
66
|
<link rel="modulepreload" crossorigin href="/studio/assets/theme-B46aPLtX.js">
|
|
67
67
|
<link rel="modulepreload" crossorigin href="/studio/assets/list-ordered-B7aUqZdk.js">
|
|
68
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/RunDrawer-
|
|
68
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/RunDrawer-DtbxGBIm.js">
|
|
69
69
|
<link rel="stylesheet" crossorigin href="/studio/assets/host-BrP-ENHg.css">
|
|
70
70
|
<link rel="stylesheet" crossorigin href="/studio/assets/theme-CbR9-ayl.css">
|
|
71
71
|
<link rel="stylesheet" crossorigin href="/studio/assets/index-CduFlFCp.css">
|