@spaceandtimelabs/dapp-mi-space-time 0.1.0-beta.44 → 0.1.0-beta.45
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/build/assets/{ErdWrapper-c7be9ca2.js → ErdWrapper-0f1bc286.js} +1 -1
- package/build/assets/{Queries-dff9cd99.js → Queries-57c1def5.js} +1 -1
- package/build/assets/{QueryEditorWrapper-3ad446b9.js → QueryEditorWrapper-7bc9f71a.js} +1 -1
- package/build/assets/{index-277de038.js → index-adcf33e3.js} +3 -3
- package/build/index.html +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jg as o,j as e,r as t}from"./vendor-charts-0df127d0.js";import{u as n,O as s,E as d,a as p}from"./index-
|
|
1
|
+
import{jg as o,j as e,r as t}from"./vendor-charts-0df127d0.js";import{u as n,O as s,E as d,a as p}from"./index-adcf33e3.js";import"./vendor-editor-ed23b824.js";import"./vendor-three-f79fdf23.js";const x=r=>{const a=o(),{height:i}=n();return e.jsx(t.Suspense,{fallback:s,children:e.jsx(d,{pageHeight:i,children:a?e.jsx(s,{}):e.jsx(p,{...r,hideSchemaSidebar:!1})})})};export{x as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{hc as zt,ma as Br,r as E,ak as St,j as f,aC as Tt,b8 as x,cQ as vn,mb as Fr,cN as rn,mc as Kr,md as Wr,ba as dt,d4 as bt,dy as on,aB as ht,kq as Dn,c2 as an,ct as It,me as Ur,mf as Vr,mg as zr,dg as Y,dC as sr,as as ir,c3 as Ve,dE as $r,cj as Gr,lD as Xr,b2 as Jr,di as Zr,g as sn,a as cr,mh as qr,R as g,mi as I,mj as be,mk as Ce,ml as $t,mm as De,mn as eo,mo as $,mp as wn,mq as to,mr as Ct,ms as Z,mt as Ye,mu as Pe,mv as Gt,mw as Ae,mx as no,my as ro,mz as ie,mA as ce,mB as Le,mC as Xt,mD as he,mE as Ge,mF as Xe,A as oo,mG as ft,mH as Jt,mI as cn,mJ as Rt,mK as ao,mL as kn,mM as Sn,mN as so,mO as io,mP as pr,mQ as bn,mR as it,mS as ct,mT as co,mU as po,mV as lr,mW as ur,mX as lo,mY as uo,mZ as ho,m_ as fo,m$ as mo,n0 as go,n1 as Je,n2 as yo,n3 as vo,n4 as mt,n5 as gt,n6 as yt,n7 as Cn,n8 as _n,n9 as Do,G as wo,na as ko,bi as dr,bg as So,du as pt,d_ as bo,nb as Co,dT as _o,av as Eo,e2 as xo,lP as H,aD as rt,bL as Fe,eg as En,dz as xn,bM as Yt,lQ as Mo,dw as Mn,eb as No,ec as ot,au as Ke,nc as Pt,a$ as Oo,nd as To,dv as jt,dt as Lt,ed as Io,ne as Ro,nf as Yo}from"./vendor-charts-0df127d0.js";import{u as _t,b as Po,c as jo,d as hr,e as pn,f as ln,r as Nn,g as un,C as On,h as Tn,M as Lo,V as dn,P as hn,i as Ao,H as Qo,j as fn,I as oe,B as ee,k as Ho,l as Bo,m as Fo,n as vt,N as At,o as ze,L as Ko,p as Wo,s as We,q as Uo,t as Vo,v as fr,w as mr,T as gr,x as zo,y as yr,z as vr,A as $o,D as Go,F as Xo,G as In,J as Jo,O as Zo,K as qo,R as Rn,S as ea,W as ta,U as Yn,X as Pn,Y as jn,Z as na,_ as ra,$ as oa,a0 as aa,a1 as sa,a2 as ia}from"./index-277de038.js";import"./vendor-editor-ed23b824.js";import"./vendor-three-f79fdf23.js";const ca="/assets/emptyHistory-39807386.png",pa="/assets/emptyHistory-e09c1ac9.webp",la="/assets/heartbeat-d012a4c0.png";zt.extend(Br);function ua({queryParams:o,setSortBy:s,setPageNumber:i,onPageChange:t,onPageSizeChange:e,defaultSize:r}){var T,G,X;const{height:p,headerHeight:n}=_t(),[a,c]=E.useState(!1),[d,m]=E.useState([]),[v,k]=E.useState(null),[w,S]=E.useState({areaChartConfig:[],lineChartConfig:[]}),[b,D]=E.useState(0),M=(T=Object.keys(w))==null?void 0:T.length,h=Po(),O=jo(),_=hr(),Q=pn(),R=ln(),j=Q||R,{totalPages:z=0,totalElements:q=0}=(O==null?void 0:O.pageable)||{},ae=St();E.useEffect(()=>()=>Nn(),[]),E.useEffect(()=>{var N,J,ye,Be,yn;if((N=_==null?void 0:_.content)!=null&&N.length){const jr=(J=_==null?void 0:_.content)==null?void 0:J.map(U=>U==null?void 0:U.queryType),nt={};(jr??[]).forEach(U=>{nt[U]?nt[U]+=1:nt[U]=1});const Lr=(ye=Object.entries(nt))==null?void 0:ye.map(([U,Hr])=>({Source:U,Trafic:Hr}));m(Lr);const Ar=(Be=_==null?void 0:_.content)==null?void 0:Be.map(U=>({Timestamp:U.timestamp,Usage:U.usage,Runtime:U.runtime})),Qr=(yn=_==null?void 0:_.content)==null?void 0:yn.map(U=>({Timestamp:U.timestamp,Usage:U.usage,DataVolume:U.responseSize}));S({areaChartConfig:Ar,lineChartConfig:Qr}),(o==null?void 0:o.isRecent)==="false"&&D(0)}else m([])},[_==null?void 0:_.content,o]);const te=N=>i(N),_e=(N,J)=>{if(N==="systemHeartbeat"||N==="CPUSkew")return;const ye=J==="ASC"?"DESC":"ASC";Nn(),s(N,ye)},fe=N=>{ae.push("/queries/new?tabID=1"),Dn(N)},Ee=N=>{k(N),c(!0)},le=()=>{k(null),c(!1)},me=({timestamp:N})=>rn(N),xe=({runtime:N})=>Kr(N),Me=({responseSize:N=0})=>Wr(N),Ne=({cpuskew:N="59%"})=>f.jsx(Ao,{children:N}),ge=({systemHeartbeat:N="58"})=>f.jsxs(Qo,{children:[f.jsx("img",{src:la,alt:"system-heartbeat"}),f.jsx("span",{children:N})]}),ue=N=>f.jsx("span",{className:"text",children:N.queryType?N.queryType:"-"}),de=N=>f.jsx("span",{className:"text",children:N!=null&&N.usage?N.usage:"-"}),C=N=>f.jsxs(fn,{onClick:()=>Ee(N),className:"queryText",children:[f.jsx("span",{className:"text",children:N.sqlText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),ne=N=>f.jsx(oe,{onClick:()=>{fe(N)},tooltip:x.VIEW_IN_EDITOR,children:f.jsx(bt,{})}),Ie=()=>f.jsx(on,{imgPath:ca,imgPathWebp:pa,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)?x.EMPTY_QUERY_HISTORY:x.NO_RESULT_FOUND_ON_FILTER,children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),He=()=>p-n-230||300,Re=()=>{v&&Dn(v)},Nt=()=>f.jsx(an,{title:h,children:h});if((O==null?void 0:O.totalElements)===0)return Ie();if(h)return Nt();const qe=()=>{D(N=>N+1)},Ot=()=>{D(N=>N-1)},et=()=>{D(0)},tt=()=>{D(M-1)},y=()=>{var Be;let N,J,ye;switch(b){case 1:b===1&&(N="Usage and Data Volume Variation over time",J=It.column_chart,ye=zr);break;default:N="Usage and Runtime Trends Over Time",J=It.area_chart,ye=Vr}return console.log("queryHistory",_.content),f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:N}),f.jsx("span",{className:"cardHeadCount",children:(Be=_==null?void 0:_.content)==null?void 0:Be.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:J===It.area_chart?w.areaChartConfig:w.lineChartConfig,chartConfigurationData:ye}).config,type:J})})]})};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:a,id:v==null?void 0:v.savedQueryId,text:v==null?void 0:v.sqlText,onClose:le,onClickView:Re,isHistory:!0}),(j||((G=_==null?void 0:_.content)==null?void 0:G.length)>0)&&(o==null?void 0:o.isRecent)==="false"&&f.jsxs(Tt,{container:!0,spacing:{xs:1,sm:3},children:[f.jsx(Tt,{item:!0,sm:5,xs:12,children:f.jsxs(On,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:x.TOTAL_QUERIES}),f.jsx("span",{className:"cardHeadCount",children:(X=_==null?void 0:_.content)==null?void 0:X.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:d,chartConfigurationData:Ur}).config,type:"pie_chart"})})]})}),f.jsx(Tt,{item:!0,sm:7,xs:12,children:f.jsxs(On,{children:[y(),!j&&f.jsx(Lo,{maxSteps:M,activeStep:b,handleFirst:et,handleLast:tt,handleNext:qe,handlePrev:Ot})]})})]}),f.jsx(dn,{data:_==null?void 0:_.content,columns:Fr,isAction:!0,actionComponent:N=>ne(N),loading:j,rowRender:[{dataKey:"sqlText",func:C},{dataKey:"timestamp",func:me},{dataKey:"runtime",func:xe},{dataKey:"responseSize",func:Me},{dataKey:"systemHeartbeat",func:ge},{dataKey:"CPUSkew",func:Ne},{dataKey:"queryType",func:ue},{dataKey:"usage",func:de}],rowSize:75,bodyHeight:He(),onItemsSort:_e,sortBy:o==null?void 0:o.sortBy,sortOrder:(o==null?void 0:o.sortOrder)||""}),(j?!0:(_==null?void 0:_.length)!==0)&&f.jsx(hn,{onChange:te,count:z,page:o.pageNo,onPageChange:t,totalElements:q,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:o.pageSize,defaultSize:r})]})}const da=o=>{const{row:s,handleClose:i,handlePublishCallback:t,open:e}=o,{id:r,queryName:p,visibility:n,slug:a}=s||{},[c,d]=E.useState(""),[m,v]=E.useState(!1),[k,w]=E.useState(!1),[S,b]=E.useState(!1),D=Ho()||(s==null?void 0:s.visibility),M=E.useRef(null),h=n===Y.public;E.useEffect(()=>{if(e&&n===Y.public){const j=window.location.origin+Ve.queriesSlug(r,a);d(j)}else d(""),b(!1),M.current=null},[e]);const O=j=>{var ae,te;const z=((te=(ae=j==null?void 0:j.target)==null?void 0:ae.value)==null?void 0:te.trim())||"",q=(z==null?void 0:z.length)>0&&$r(z);v(q),z!==c&&d(z)},_=async()=>{w(!0),await Wo(r,p,c,D,t)===x.RESPONSE_SUCCESS_STATUS&&i(),w(!1)},Q=j=>{switch(j){case Y.public:We(Y.public);break;case Y.private:We(Y.private);break;case Y.subscription:We(Y.subscription);break;default:We(Y.private)}},R=()=>{Gr(c).then(()=>{b(!0)})};return f.jsx(Bo,{title:x.QUERY_PUBLISH,visible:e,maxWidth:"sm",onClose:i,children:f.jsxs(Fo,{children:[f.jsxs("div",{className:"visibilityCheck",children:[f.jsx("div",{className:"label",children:"Choose the visibility for your query"}),f.jsxs(sr,{variant:"contained",className:`isPublicCheck ${n===Y.public&&"disabled"}`,children:[f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.private)},color:D===Y.public||D===Y.subscription?"secondary":"primary",disabled:n===Y.public,children:x.PRIVATE}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.subscription)},color:D===Y.subscription?"primary":"secondary",disabled:n===Y.public,children:x.PRIVATE_TO_MY_ORG}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.public)},color:D===Y.public?"primary":"secondary",children:x.PUBLIC})]})]}),D===Y.public&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"slugInput",children:f.jsx(vt,{autoFocus:!0,label:"Unique Query Name",required:!0,placeholder:"Enter slug name",ishelpertext:1,helperText:!h&&`${c==null?void 0:c.length}/${At}`,value:c,warningText:!h&&x.MAX_LENGTH_ERROR("slug name",At),hasMax:!0,maxValue:At,onChange:O,errorText:m&&x.VIEW_NAME_ERROR("Slug"),ref:M,inputProps:{readOnly:h},endAdornment:a?f.jsx(ir,{position:"end",children:f.jsx(oe,{onClick:()=>window.open(window.location.origin+Ve.queriesSlug(r,a),"_blank"),children:f.jsx(bt,{})})}):null})}),h&&f.jsx(ze,{message:x.PUBLISHED_TEXT("query")}),D===Y.public&&!h&&f.jsx(ze,{message:x.PUBLISH_CONFIRM_MESSAGE("Query")})]}),f.jsxs("div",{className:"btnRow",children:[f.jsx(ee,{disabled:k,variant:"contained",color:"secondary",onClick:i,className:"formBtn cancel",children:x.CANCEL}),!h&&f.jsx(ee,{disabled:m||(c==null?void 0:c.length)>=50||k||D===Y.public&&!(c!=null&&c.trim()),variant:"contained",color:"primary",onClick:_,className:"formBtn submit",children:k?f.jsx("img",{src:Ko,alt:"loading",height:36}):x.SUBMIT}),h&&f.jsx(ee,{type:"button",variant:"contained",color:"primary",onClick:R,children:S?x.COPIED:x.COPY_LINK})]})]})})};function ha({queryParams:o,setPageNumber:s,setSortBy:i,onPageChange:t,onPageSizeChange:e,deleteQuery:r,defaultSize:p,handlePublishCallback:n}){const a=St(),{height:c,headerHeight:d}=_t(),m=Uo(),v=Vo(),{totalPages:k=0,totalElements:w=0}=(v==null?void 0:v.pageable)||{},S=fr(),b=pn(),D=ln(),M=b||D,[h,O]=E.useState(!1),[_,Q]=E.useState({}),[R,j]=E.useState(!1),[z,q]=E.useState({}),ae=(C,ne)=>{i(C,ne==="ASC"?"DESC":"ASC")},te=C=>s(C),_e=C=>f.jsx(mr,{className:"queryName",onClick:()=>{a.push(`/queries/${C.id}`)},children:(C==null?void 0:C.name)||"Untitled Query"}),fe=C=>C&&rn(C==null?void 0:C.modified),Ee=C=>C&&f.jsx(gr,{tags:C==null?void 0:C.tags}),le=C=>{Q(C),O(!0)},me=C=>f.jsxs(fn,{onClick:()=>le(C),className:"queryText",children:[f.jsx("span",{className:"text",children:C.queryText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),xe=()=>c-d-170||300,Me=()=>{j(!1),q({}),We("")},Ne=C=>f.jsxs(f.Fragment,{children:[f.jsx(Jr,{label:(C==null?void 0:C.visibility)===Y.public?x.PUBLISHED:x.PUBLISH("Query"),children:f.jsx("span",{className:"publishBtn",children:f.jsx(oe,{onClick:()=>{j(!0),q(C)},children:f.jsx(Zr,{})})})}),f.jsx(oe,{onClick:()=>{a.push(`/queries/${C.id}`)},tooltip:"View",children:f.jsx(bt,{})}),f.jsx(zo,{icon:!0,confirmButtonMessage:x.YES,cancelButtonMessage:x.NO,disabled:C.visibility===Y.public,tooltip:x.DELETE(""),title:x.DELETE("Query"),confirmMessage:x.DELETE_CONFIRM_MESSAGE(`'${C.name||""}' query`),description:x.DELETE_QUERY_DESCRIPTION,onConfirm:ne=>{ne.stopPropagation(),r(C.id,C.name)}},"expire")]}),ge=()=>f.jsx(on,{imgPath:yr,imgPathWebp:vr,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&!(o!=null&&o.status)?x.NO_QUERY_FOUND:x.NO_RESULT_FOUND_ON_FILTER,className:"emptyBlock",children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),ue=()=>f.jsx(an,{title:m,children:m});if(k===0&&!M&&!m)return ge();if(m)return ue();const de=()=>{Q({}),O(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:h,id:_==null?void 0:_.id,text:_==null?void 0:_.queryText,queryPreview:_,onClose:de}),f.jsx(dn,{data:S,columns:Xr,isAction:!0,actionComponent:Ne,actionColumnName:"Actions",rowRender:[{dataKey:"name",func:_e},{dataKey:"modified",func:fe},{dataKey:"tags",func:Ee},{dataKey:"queryText",func:me}],loading:M,rowSize:75,bodyHeight:xe(),onItemsSort:ae,sortBy:(o==null?void 0:o.sortBy)||"",sortOrder:(o==null?void 0:o.sortOrder)||"",nonSortableColumns:{tags:!0}}),(M?!0:(S==null?void 0:S.length)!==0)&&f.jsx("div",{className:"queryPagePagination",children:f.jsx(hn,{onChange:te,count:k,page:(o==null?void 0:o.pageNo)||0,onPageChange:t,totalElements:w,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:(o==null?void 0:o.pageSize)||0,defaultSize:p})}),f.jsx(da,{open:R,handleClose:Me,row:z,handlePublishCallback:n})]})}var Dr={exports:{}};/*!
|
|
1
|
+
import{hc as zt,ma as Br,r as E,ak as St,j as f,aC as Tt,b8 as x,cQ as vn,mb as Fr,cN as rn,mc as Kr,md as Wr,ba as dt,d4 as bt,dy as on,aB as ht,kq as Dn,c2 as an,ct as It,me as Ur,mf as Vr,mg as zr,dg as Y,dC as sr,as as ir,c3 as Ve,dE as $r,cj as Gr,lD as Xr,b2 as Jr,di as Zr,g as sn,a as cr,mh as qr,R as g,mi as I,mj as be,mk as Ce,ml as $t,mm as De,mn as eo,mo as $,mp as wn,mq as to,mr as Ct,ms as Z,mt as Ye,mu as Pe,mv as Gt,mw as Ae,mx as no,my as ro,mz as ie,mA as ce,mB as Le,mC as Xt,mD as he,mE as Ge,mF as Xe,A as oo,mG as ft,mH as Jt,mI as cn,mJ as Rt,mK as ao,mL as kn,mM as Sn,mN as so,mO as io,mP as pr,mQ as bn,mR as it,mS as ct,mT as co,mU as po,mV as lr,mW as ur,mX as lo,mY as uo,mZ as ho,m_ as fo,m$ as mo,n0 as go,n1 as Je,n2 as yo,n3 as vo,n4 as mt,n5 as gt,n6 as yt,n7 as Cn,n8 as _n,n9 as Do,G as wo,na as ko,bi as dr,bg as So,du as pt,d_ as bo,nb as Co,dT as _o,av as Eo,e2 as xo,lP as H,aD as rt,bL as Fe,eg as En,dz as xn,bM as Yt,lQ as Mo,dw as Mn,eb as No,ec as ot,au as Ke,nc as Pt,a$ as Oo,nd as To,dv as jt,dt as Lt,ed as Io,ne as Ro,nf as Yo}from"./vendor-charts-0df127d0.js";import{u as _t,b as Po,c as jo,d as hr,e as pn,f as ln,r as Nn,g as un,C as On,h as Tn,M as Lo,V as dn,P as hn,i as Ao,H as Qo,j as fn,I as oe,B as ee,k as Ho,l as Bo,m as Fo,n as vt,N as At,o as ze,L as Ko,p as Wo,s as We,q as Uo,t as Vo,v as fr,w as mr,T as gr,x as zo,y as yr,z as vr,A as $o,D as Go,F as Xo,G as In,J as Jo,O as Zo,K as qo,R as Rn,S as ea,W as ta,U as Yn,X as Pn,Y as jn,Z as na,_ as ra,$ as oa,a0 as aa,a1 as sa,a2 as ia}from"./index-adcf33e3.js";import"./vendor-editor-ed23b824.js";import"./vendor-three-f79fdf23.js";const ca="/assets/emptyHistory-39807386.png",pa="/assets/emptyHistory-e09c1ac9.webp",la="/assets/heartbeat-d012a4c0.png";zt.extend(Br);function ua({queryParams:o,setSortBy:s,setPageNumber:i,onPageChange:t,onPageSizeChange:e,defaultSize:r}){var T,G,X;const{height:p,headerHeight:n}=_t(),[a,c]=E.useState(!1),[d,m]=E.useState([]),[v,k]=E.useState(null),[w,S]=E.useState({areaChartConfig:[],lineChartConfig:[]}),[b,D]=E.useState(0),M=(T=Object.keys(w))==null?void 0:T.length,h=Po(),O=jo(),_=hr(),Q=pn(),R=ln(),j=Q||R,{totalPages:z=0,totalElements:q=0}=(O==null?void 0:O.pageable)||{},ae=St();E.useEffect(()=>()=>Nn(),[]),E.useEffect(()=>{var N,J,ye,Be,yn;if((N=_==null?void 0:_.content)!=null&&N.length){const jr=(J=_==null?void 0:_.content)==null?void 0:J.map(U=>U==null?void 0:U.queryType),nt={};(jr??[]).forEach(U=>{nt[U]?nt[U]+=1:nt[U]=1});const Lr=(ye=Object.entries(nt))==null?void 0:ye.map(([U,Hr])=>({Source:U,Trafic:Hr}));m(Lr);const Ar=(Be=_==null?void 0:_.content)==null?void 0:Be.map(U=>({Timestamp:U.timestamp,Usage:U.usage,Runtime:U.runtime})),Qr=(yn=_==null?void 0:_.content)==null?void 0:yn.map(U=>({Timestamp:U.timestamp,Usage:U.usage,DataVolume:U.responseSize}));S({areaChartConfig:Ar,lineChartConfig:Qr}),(o==null?void 0:o.isRecent)==="false"&&D(0)}else m([])},[_==null?void 0:_.content,o]);const te=N=>i(N),_e=(N,J)=>{if(N==="systemHeartbeat"||N==="CPUSkew")return;const ye=J==="ASC"?"DESC":"ASC";Nn(),s(N,ye)},fe=N=>{ae.push("/queries/new?tabID=1"),Dn(N)},Ee=N=>{k(N),c(!0)},le=()=>{k(null),c(!1)},me=({timestamp:N})=>rn(N),xe=({runtime:N})=>Kr(N),Me=({responseSize:N=0})=>Wr(N),Ne=({cpuskew:N="59%"})=>f.jsx(Ao,{children:N}),ge=({systemHeartbeat:N="58"})=>f.jsxs(Qo,{children:[f.jsx("img",{src:la,alt:"system-heartbeat"}),f.jsx("span",{children:N})]}),ue=N=>f.jsx("span",{className:"text",children:N.queryType?N.queryType:"-"}),de=N=>f.jsx("span",{className:"text",children:N!=null&&N.usage?N.usage:"-"}),C=N=>f.jsxs(fn,{onClick:()=>Ee(N),className:"queryText",children:[f.jsx("span",{className:"text",children:N.sqlText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),ne=N=>f.jsx(oe,{onClick:()=>{fe(N)},tooltip:x.VIEW_IN_EDITOR,children:f.jsx(bt,{})}),Ie=()=>f.jsx(on,{imgPath:ca,imgPathWebp:pa,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)?x.EMPTY_QUERY_HISTORY:x.NO_RESULT_FOUND_ON_FILTER,children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),He=()=>p-n-230||300,Re=()=>{v&&Dn(v)},Nt=()=>f.jsx(an,{title:h,children:h});if((O==null?void 0:O.totalElements)===0)return Ie();if(h)return Nt();const qe=()=>{D(N=>N+1)},Ot=()=>{D(N=>N-1)},et=()=>{D(0)},tt=()=>{D(M-1)},y=()=>{var Be;let N,J,ye;switch(b){case 1:b===1&&(N="Usage and Data Volume Variation over time",J=It.column_chart,ye=zr);break;default:N="Usage and Runtime Trends Over Time",J=It.area_chart,ye=Vr}return console.log("queryHistory",_.content),f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:N}),f.jsx("span",{className:"cardHeadCount",children:(Be=_==null?void 0:_.content)==null?void 0:Be.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:J===It.area_chart?w.areaChartConfig:w.lineChartConfig,chartConfigurationData:ye}).config,type:J})})]})};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:a,id:v==null?void 0:v.savedQueryId,text:v==null?void 0:v.sqlText,onClose:le,onClickView:Re,isHistory:!0}),(j||((G=_==null?void 0:_.content)==null?void 0:G.length)>0)&&(o==null?void 0:o.isRecent)==="false"&&f.jsxs(Tt,{container:!0,spacing:{xs:1,sm:3},children:[f.jsx(Tt,{item:!0,sm:5,xs:12,children:f.jsxs(On,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:x.TOTAL_QUERIES}),f.jsx("span",{className:"cardHeadCount",children:(X=_==null?void 0:_.content)==null?void 0:X.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:d,chartConfigurationData:Ur}).config,type:"pie_chart"})})]})}),f.jsx(Tt,{item:!0,sm:7,xs:12,children:f.jsxs(On,{children:[y(),!j&&f.jsx(Lo,{maxSteps:M,activeStep:b,handleFirst:et,handleLast:tt,handleNext:qe,handlePrev:Ot})]})})]}),f.jsx(dn,{data:_==null?void 0:_.content,columns:Fr,isAction:!0,actionComponent:N=>ne(N),loading:j,rowRender:[{dataKey:"sqlText",func:C},{dataKey:"timestamp",func:me},{dataKey:"runtime",func:xe},{dataKey:"responseSize",func:Me},{dataKey:"systemHeartbeat",func:ge},{dataKey:"CPUSkew",func:Ne},{dataKey:"queryType",func:ue},{dataKey:"usage",func:de}],rowSize:75,bodyHeight:He(),onItemsSort:_e,sortBy:o==null?void 0:o.sortBy,sortOrder:(o==null?void 0:o.sortOrder)||""}),(j?!0:(_==null?void 0:_.length)!==0)&&f.jsx(hn,{onChange:te,count:z,page:o.pageNo,onPageChange:t,totalElements:q,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:o.pageSize,defaultSize:r})]})}const da=o=>{const{row:s,handleClose:i,handlePublishCallback:t,open:e}=o,{id:r,queryName:p,visibility:n,slug:a}=s||{},[c,d]=E.useState(""),[m,v]=E.useState(!1),[k,w]=E.useState(!1),[S,b]=E.useState(!1),D=Ho()||(s==null?void 0:s.visibility),M=E.useRef(null),h=n===Y.public;E.useEffect(()=>{if(e&&n===Y.public){const j=window.location.origin+Ve.queriesSlug(r,a);d(j)}else d(""),b(!1),M.current=null},[e]);const O=j=>{var ae,te;const z=((te=(ae=j==null?void 0:j.target)==null?void 0:ae.value)==null?void 0:te.trim())||"",q=(z==null?void 0:z.length)>0&&$r(z);v(q),z!==c&&d(z)},_=async()=>{w(!0),await Wo(r,p,c,D,t)===x.RESPONSE_SUCCESS_STATUS&&i(),w(!1)},Q=j=>{switch(j){case Y.public:We(Y.public);break;case Y.private:We(Y.private);break;case Y.subscription:We(Y.subscription);break;default:We(Y.private)}},R=()=>{Gr(c).then(()=>{b(!0)})};return f.jsx(Bo,{title:x.QUERY_PUBLISH,visible:e,maxWidth:"sm",onClose:i,children:f.jsxs(Fo,{children:[f.jsxs("div",{className:"visibilityCheck",children:[f.jsx("div",{className:"label",children:"Choose the visibility for your query"}),f.jsxs(sr,{variant:"contained",className:`isPublicCheck ${n===Y.public&&"disabled"}`,children:[f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.private)},color:D===Y.public||D===Y.subscription?"secondary":"primary",disabled:n===Y.public,children:x.PRIVATE}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.subscription)},color:D===Y.subscription?"primary":"secondary",disabled:n===Y.public,children:x.PRIVATE_TO_MY_ORG}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.public)},color:D===Y.public?"primary":"secondary",children:x.PUBLIC})]})]}),D===Y.public&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"slugInput",children:f.jsx(vt,{autoFocus:!0,label:"Unique Query Name",required:!0,placeholder:"Enter slug name",ishelpertext:1,helperText:!h&&`${c==null?void 0:c.length}/${At}`,value:c,warningText:!h&&x.MAX_LENGTH_ERROR("slug name",At),hasMax:!0,maxValue:At,onChange:O,errorText:m&&x.VIEW_NAME_ERROR("Slug"),ref:M,inputProps:{readOnly:h},endAdornment:a?f.jsx(ir,{position:"end",children:f.jsx(oe,{onClick:()=>window.open(window.location.origin+Ve.queriesSlug(r,a),"_blank"),children:f.jsx(bt,{})})}):null})}),h&&f.jsx(ze,{message:x.PUBLISHED_TEXT("query")}),D===Y.public&&!h&&f.jsx(ze,{message:x.PUBLISH_CONFIRM_MESSAGE("Query")})]}),f.jsxs("div",{className:"btnRow",children:[f.jsx(ee,{disabled:k,variant:"contained",color:"secondary",onClick:i,className:"formBtn cancel",children:x.CANCEL}),!h&&f.jsx(ee,{disabled:m||(c==null?void 0:c.length)>=50||k||D===Y.public&&!(c!=null&&c.trim()),variant:"contained",color:"primary",onClick:_,className:"formBtn submit",children:k?f.jsx("img",{src:Ko,alt:"loading",height:36}):x.SUBMIT}),h&&f.jsx(ee,{type:"button",variant:"contained",color:"primary",onClick:R,children:S?x.COPIED:x.COPY_LINK})]})]})})};function ha({queryParams:o,setPageNumber:s,setSortBy:i,onPageChange:t,onPageSizeChange:e,deleteQuery:r,defaultSize:p,handlePublishCallback:n}){const a=St(),{height:c,headerHeight:d}=_t(),m=Uo(),v=Vo(),{totalPages:k=0,totalElements:w=0}=(v==null?void 0:v.pageable)||{},S=fr(),b=pn(),D=ln(),M=b||D,[h,O]=E.useState(!1),[_,Q]=E.useState({}),[R,j]=E.useState(!1),[z,q]=E.useState({}),ae=(C,ne)=>{i(C,ne==="ASC"?"DESC":"ASC")},te=C=>s(C),_e=C=>f.jsx(mr,{className:"queryName",onClick:()=>{a.push(`/queries/${C.id}`)},children:(C==null?void 0:C.name)||"Untitled Query"}),fe=C=>C&&rn(C==null?void 0:C.modified),Ee=C=>C&&f.jsx(gr,{tags:C==null?void 0:C.tags}),le=C=>{Q(C),O(!0)},me=C=>f.jsxs(fn,{onClick:()=>le(C),className:"queryText",children:[f.jsx("span",{className:"text",children:C.queryText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),xe=()=>c-d-170||300,Me=()=>{j(!1),q({}),We("")},Ne=C=>f.jsxs(f.Fragment,{children:[f.jsx(Jr,{label:(C==null?void 0:C.visibility)===Y.public?x.PUBLISHED:x.PUBLISH("Query"),children:f.jsx("span",{className:"publishBtn",children:f.jsx(oe,{onClick:()=>{j(!0),q(C)},children:f.jsx(Zr,{})})})}),f.jsx(oe,{onClick:()=>{a.push(`/queries/${C.id}`)},tooltip:"View",children:f.jsx(bt,{})}),f.jsx(zo,{icon:!0,confirmButtonMessage:x.YES,cancelButtonMessage:x.NO,disabled:C.visibility===Y.public,tooltip:x.DELETE(""),title:x.DELETE("Query"),confirmMessage:x.DELETE_CONFIRM_MESSAGE(`'${C.name||""}' query`),description:x.DELETE_QUERY_DESCRIPTION,onConfirm:ne=>{ne.stopPropagation(),r(C.id,C.name)}},"expire")]}),ge=()=>f.jsx(on,{imgPath:yr,imgPathWebp:vr,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&!(o!=null&&o.status)?x.NO_QUERY_FOUND:x.NO_RESULT_FOUND_ON_FILTER,className:"emptyBlock",children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),ue=()=>f.jsx(an,{title:m,children:m});if(k===0&&!M&&!m)return ge();if(m)return ue();const de=()=>{Q({}),O(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:h,id:_==null?void 0:_.id,text:_==null?void 0:_.queryText,queryPreview:_,onClose:de}),f.jsx(dn,{data:S,columns:Xr,isAction:!0,actionComponent:Ne,actionColumnName:"Actions",rowRender:[{dataKey:"name",func:_e},{dataKey:"modified",func:fe},{dataKey:"tags",func:Ee},{dataKey:"queryText",func:me}],loading:M,rowSize:75,bodyHeight:xe(),onItemsSort:ae,sortBy:(o==null?void 0:o.sortBy)||"",sortOrder:(o==null?void 0:o.sortOrder)||"",nonSortableColumns:{tags:!0}}),(M?!0:(S==null?void 0:S.length)!==0)&&f.jsx("div",{className:"queryPagePagination",children:f.jsx(hn,{onChange:te,count:k,page:(o==null?void 0:o.pageNo)||0,onPageChange:t,totalElements:w,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:(o==null?void 0:o.pageSize)||0,defaultSize:p})}),f.jsx(da,{open:R,handleClose:Me,row:z,handlePublishCallback:n})]})}var Dr={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r,r as t}from"./vendor-charts-0df127d0.js";import{O as o,Q as a}from"./index-
|
|
1
|
+
import{j as r,r as t}from"./vendor-charts-0df127d0.js";import{O as o,Q as a}from"./index-adcf33e3.js";import"./vendor-editor-ed23b824.js";import"./vendor-three-f79fdf23.js";function m(){return r.jsx(t.Suspense,{fallback:o,children:r.jsx(a,{})})}export{m as default};
|
|
@@ -16001,7 +16001,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
16001
16001
|
`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",backgroundClip:"padding-box",width:"1300px",maxWidth:"90vw",height:"920px",maxHeight:"90vh",padding:"40px",overflow:"hidden",transition:`
|
|
16002
16002
|
opacity ${oRt}ms ease-in-out,
|
|
16003
16003
|
transform ${oRt}ms ease-in-out
|
|
16004
|
-
`,opacity:0,transform:"scale(0.95)",".modal-enter-active &, .modal-enter-done &":{opacity:1,transform:"scale(1)"},".modal-exit &":{opacity:1,transform:"scale(1)"},".modal-exit-active &":{opacity:0,transform:"scale(0.95)"},"@media (max-width: 768px)":{padding:"16px",width:"100%",maxWidth:"98vw",maxHeight:"90vh",overflowY:"auto"}})),HCs=Wa(lt)(()=>({display:"flex",flexDirection:"column",width:"100%",alignItems:"center",textAlign:"center",gap:"20px"})),GCs=Wa(lt)(()=>({display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",marginBottom:"20px"})),VCs=Wa(Da)(()=>({color:"rgba(255, 255, 255, 0.75)",fontSize:"16px",fontWeight:400})),UCs=Wa(Da)(()=>({color:"#ffffff",fontSize:"32px",fontWeight:600,background:"linear-gradient(90deg, #667eea, #c40aac)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"})),WCs=Wa(Da)(()=>({color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",fontWeight:400,display:"flex",alignItems:"center",gap:"8px"})),KCs=Wa(Da)(()=>({color:"rgba(255, 255, 255, 0.5)",fontSize:"12px",fontWeight:400,maxWidth:"600px",lineHeight:1.5,"& a":{color:"#667eea",textDecoration:"none","&:hover":{textDecoration:"underline"}}})),QCs=Wa(Fl)(()=>({padding:"4px 10px",backgroundColor:"rgba(255, 255, 255, 0.11)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"12px",borderRadius:"6px",transition:"all 0.3s ease-in-out",display:"inline-flex",alignItems:"center","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.1)"}})),qCs=Wa(lt)(()=>({width:"100%",maxWidth:"1400px",margin:"14px auto 0",display:"flex",gap:"20px",justifyContent:"center",flexWrap:"nowrap","@media (max-width: 1100px)":{flexDirection:"column",alignItems:"center"}})),R9r=Wa(lt)(()=>({flex:1,maxWidth:"680px",width:"100%",margin:"0 auto","@media (max-width: 1250px)":{maxWidth:"560px"},"@media (max-width: 1100px)":{maxWidth:"680px",width:"96%"}})),T9r=Wa(Da)(()=>({color:"#ffffff",fontSize:"20px",fontWeight:500,marginBottom:"16px"})),j9r=Wa(lt)(()=>({width:"100%",backgroundColor:"rgba(255, 255, 255, 0.03)",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(255, 255, 255, 0.06)",display:"flex",flexDirection:"column"})),I9r=Wa(lt)(()=>({flexGrow:1,overflowY:"auto",maxHeight:"38vh",scrollbarGutter:"stable",borderRadius:"0 0 8px 8px","@media (max-width: 1100px)":{maxHeight:"45vh"},"@media (max-width: 768px)":{maxHeight:"none",overflow:"visible"}})),P9r=Wa(lt)(()=>({display:"flex",padding:"12px 20px",backgroundColor:"rgba(255, 255, 255, 0.03)",borderBottom:"1px solid rgba(255, 255, 255, 0.06)",position:"relative",zIndex:1,borderRadius:"8px 8px 0 0",overflow:"hidden"})),_R=Wa(Da)(()=>({color:"rgba(255, 255, 255, 0.75)",fontSize:"14px",fontWeight:500})),N$=Wa(lt)(({$isPodium:e,$isCurrentUser:t})=>({display:"flex",alignItems:"center",padding:"12px 20px",borderBottom:"1px solid rgba(255, 255, 255, 0.03)",transition:"background-color 0.2s ease",position:"relative",backgroundColor:e===1?"rgba(255, 215, 0, 0.08)":e===2?"rgba(192, 192, 192, 0.06)":e===3?"rgba(205, 127, 50, 0.06)":t&&!e?"rgba(102, 126, 234, 0.1)":"transparent","&:hover":{backgroundColor:e===1?"rgba(255, 215, 0, 0.12)":e===2?"rgba(192, 192, 192, 0.1)":e===3?"rgba(205, 127, 50, 0.1)":t?"rgba(102, 126, 234, 0.15)":"rgba(255, 255, 255, 0.02)"},"&:last-child":{borderBottom:"none"}})),bbt=Wa(lt)(()=>({display:"flex",alignItems:"center",justifyContent:"center",minWidth:"40px",maxWidth:"40px",color:"rgba(255, 255, 255, 0.4)",fontSize:"13px",fontWeight:400}));Wa("span")(()=>({fontSize:"18px",lineHeight:1,display:"inline-flex"}));const Mxe=Wa(lt)(()=>({color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",flex:1,display:"flex",alignItems:"center",textAlign:"left",gap:"8px"})),N9r=Wa(lt)(()=>({color:"#ffffff",fontSize:"14px",fontWeight:500,minWidth:"100px",flex:"0 0 100px",textAlign:"right",display:"flex",justifyContent:"flex-end",alignItems:"center"})),L9r=Wa(Da)(()=>({color:"#667eea",fontSize:"12px",fontWeight:500,marginLeft:"8px",padding:"2px 8px",backgroundColor:"rgba(102, 126, 234, 0.15)",borderRadius:"4px",display:"inline-block"})),YCs=Wa(lt)(()=>({color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",flex:"2 1 0",minWidth:0,display:"flex",alignItems:"center",textAlign:"left",gap:"8px",overflow:"hidden","& a":{color:"#667eea",textDecoration:"none"},"& a.app-name, & span.app-name":{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& a:hover":{textDecoration:"underline"}})),JCs=Wa(lt)(()=>({color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",flex:"1 1 0",minWidth:0,textAlign:"left",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"})),ZCs=Wa(lt)(()=>({color:"#ffffff",fontSize:"14px",fontWeight:500,minWidth:"100px",flex:"0 0 100px",textAlign:"right",display:"flex",justifyContent:"flex-end",alignItems:"center"})),XCs=300,fRa=({open:e,onClose:t,isLoggedIn:r})=>{const{APIHandler:a}=vs(),n=j.useRef(null),o=j.useRef(null),[s,l]=j.useState(null),[u,c]=j.useState(null),[d,p]=j.useState([]),[h,f]=j.useState([]),[m,x]=j.useState(!1),[y,v]=j.useState(!1),[b,k]=j.useState(!1),[S,F]=j.useState(!1),[B,T]=j.useState(!1),[I,L]=j.useState(!1),[P,z]=j.useState(!1);j.useEffect(()=>{const _=Y=>{Y.key==="Escape"&&t()};return e&&document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[e,t]),j.useEffect(()=>{if(!e)return;const _=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=_}},[e]),j.useEffect(()=>{var _;if(!e)return;(_=o.current)==null||_.focus();const Y=n.current;if(!Y)return;const re=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),oe=Z=>{if(Z.key!=="Tab")return;const ie=Array.from(Y.querySelectorAll(re)).filter(ge=>ge.offsetParent!==null||ge===document.activeElement);if(ie.length===0)return;const pe=ie[0],se=ie[ie.length-1];Z.shiftKey?document.activeElement===pe&&(Z.preventDefault(),se.focus()):document.activeElement===se&&(Z.preventDefault(),pe.focus())};return Y.addEventListener("keydown",oe),()=>{Y.removeEventListener("keydown",oe)}},[e]),j.useEffect(()=>{e||(T(!1),L(!1),z(!1),c(null))},[e]),j.useEffect(()=>{r||c(null)},[r]),j.useEffect(()=>{e&&r&&!B&&(x(!0),F(!1),T(!0),a.getCreatorPointsSum().then(_=>{if(!_.ok)throw new Error(`Failed to fetch user points: ${_.status}`);return _.json()}).then(_=>{_&&(l(_.total_points),c(_.creator_user_id))}).catch(_=>{console.error("Error fetching user points:",_),F(!0)}).finally(()=>{x(!1)}))},[e,r,B,a]),j.useEffect(()=>{e&&!I&&(v(!0),L(!0),a.getCreatorPointsTop(20).then(_=>{if(!_.ok)throw new Error(`Failed to fetch top creators: ${_.status}`);return _.json()}).then(_=>{_&&_.creators&&p(_.creators)}).catch(_=>{console.error("Error fetching top creators:",_),p([])}).finally(()=>{v(!1)}))},[e,I,a]),j.useEffect(()=>{e&&!P&&(k(!0),z(!0),a.getProjectViewsTop(20).then(_=>{if(!_.ok)throw new Error(`Failed to fetch top projects: ${_.status}`);return _.json()}).then(_=>{_&&_.data&&f(_.data)}).catch(_=>{console.error("Error fetching top projects:",_),f([])}).finally(()=>{k(!1)}))},[e,P,a]);const V=()=>{window.open("https://docs.makeinfinite.com/docs/getting-started","_blank","noopener,noreferrer")},O=_=>_.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:3}),H=_=>{switch(_){case 1:return"🥇";case 2:return"🥈";case 3:return"🥉";default:return null}},U=_=>_.length>20?`${_.substring(0,8)}...${_.substring(_.length-8)}`:_,K=_=>_.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),J=_=>{if(!_)return"";try{return(_.startsWith("http")?new URL(_):new URL(`https://${_}`)).hostname.replace(/^www\./,"")}catch{return _.replace(/^https?:\/\//,"").replace(/^www\./,"")}},q=u?d.some(_=>_.creator_user_id===u):!1;return cs.createPortal(X.jsx(pRa,{in:e,timeout:XCs,classNames:"modal",unmountOnExit:!0,children:X.jsx(OCs,{onClick:t,children:X.jsxs(zCs,{onClick:_=>_.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Earn points and leaderboards",ref:n,children:[X.jsx(Ml,{"aria-label":"close",onClick:t,sx:{position:"absolute",right:12,top:12,color:_=>_.palette.grey[500],zIndex:1},ref:o,children:X.jsx(bb,{})}),X.jsxs(HCs,{children:[X.jsxs(GCs,{children:[r&&!S&&X.jsxs(X.Fragment,{children:[X.jsx(VCs,{children:"You have earned"}),m?X.jsx(wh,{size:24,sx:{color:"#667eea"}}):X.jsxs(UCs,{children:[s!==null?O(s):"0"," Dreamspace points 🎉"]})]}),X.jsxs(WCs,{children:["Earn points for generating and editing your app.",X.jsxs(QCs,{onClick:V,children:["Learn More",X.jsx(LCs,{sx:{fontSize:14,marginLeft:"4px"}})]})]}),X.jsxs(KCs,{children:["Creators will soon be able to redeem points for Dreamspace merch and other rewards in the future. Follow"," ",X.jsx("a",{href:"https://x.com/dreamspaceHQ",target:"_blank",rel:"noopener noreferrer",children:"@dreamspaceHQ"})," ","for more updates on our rewards program."]})]}),X.jsxs(qCs,{children:[X.jsxs(R9r,{children:[X.jsx(T9r,{children:"Top Creators Leaderboard"}),X.jsxs(j9r,{children:[X.jsxs(P9r,{children:[X.jsx(_R,{style:{minWidth:"40px",maxWidth:"40px"}}),X.jsx(_R,{style:{flex:"2 1 0",textAlign:"left",minWidth:0},children:"Creator"}),X.jsx(_R,{style:{minWidth:"100px",textAlign:"right",flex:"0 0 100px"},children:"Points earned"})]}),X.jsx(I9r,{children:y?X.jsx(lt,{sx:{display:"flex",justifyContent:"center",padding:"20px"},children:X.jsx(wh,{size:24,sx:{color:"#667eea"}})}):X.jsx(X.Fragment,{children:d.length>0?X.jsxs(X.Fragment,{children:[d.map((_,Y)=>{const re=Y+1,oe=H(re),Z=r&&_.creator_user_id===u,ie=re<=3?re:void 0;return X.jsxs(N$,{$isPodium:ie,$isCurrentUser:Z,children:[X.jsx(bbt,{children:oe||re}),X.jsxs(Mxe,{children:[U(_.creator_user_id),Z&&X.jsx(L9r,{children:"(You)"})]}),X.jsx(N9r,{children:O(_.total_points)})]},`${_.creator_user_id}-${Y}`)}),r&&u&&!q&&s!==null&&X.jsxs(N$,{$isCurrentUser:!0,children:[X.jsx(bbt,{children:"—"}),X.jsxs(Mxe,{children:[U(u),X.jsx(L9r,{children:"(You)"})]}),X.jsx(N9r,{children:O(s)})]})]}):X.jsx(N$,{children:X.jsx(Mxe,{sx:{textAlign:"center",width:"100%",gridColumn:"span 3"},children:"No data available"})})})})]})]}),X.jsxs(R9r,{children:[X.jsx(T9r,{children:"Top Apps Leaderboard"}),X.jsxs(j9r,{children:[X.jsxs(P9r,{children:[X.jsx(_R,{style:{minWidth:"40px",maxWidth:"40px"}}),X.jsx(_R,{style:{flex:"2 1 0",textAlign:"left",minWidth:0},children:"App"}),X.jsx(_R,{style:{flex:"1 1 0",textAlign:"left",minWidth:0},children:"Creator"}),X.jsx(_R,{style:{minWidth:"100px",textAlign:"right",flex:"0 0 100px"},children:"Views"})]}),X.jsx(I9r,{children:b?X.jsx(lt,{sx:{display:"flex",justifyContent:"center",padding:"20px"},children:X.jsx(wh,{size:24,sx:{color:"#667eea"}})}):X.jsx(X.Fragment,{children:h.length>0?X.jsx(X.Fragment,{children:h.map((_,Y)=>{const re=Y+1,oe=H(re),Z=r&&_.creator_user_id===u,ie=re<=3?re:void 0;return X.jsxs(N$,{$isPodium:ie,$isCurrentUser:Z,children:[X.jsx(bbt,{children:oe||re}),X.jsx(YCs,{children:_.published_url?X.jsx("a",{className:"app-name",href:_.published_url,target:"_blank",rel:"noopener noreferrer",children:J(_.published_url)}):X.jsx("span",{className:"app-name",children:_.published_url})}),X.jsx(JCs,{children:_.creator_user_id?U(_.creator_user_id):"—"}),X.jsx(ZCs,{children:K(_.total_views)})]},`${_.project_name}-${Y}`)})}):X.jsx(N$,{children:X.jsx(Mxe,{sx:{textAlign:"center",width:"100%",gridColumn:"span 4"},children:"No data available"})})})})]})]})]})]})]})})}),document.body)},_Cs=({editingText:e,estimationTime:t,completionText:r,processTime:a,detailRef:n,pointsAwarded:o})=>{const s=ha(f=>f.setCurrentFilePath),l=ha(f=>f.setCurrentWorkspaceView),[u,c]=j.useState(!1),d=()=>{if(n){const f=n.startsWith("/")?n.substring(1):n;s(f)}l(Xs.CodeEditor)},p=()=>{c(!0)},h=f=>f.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:3});return X.jsxs(X.Fragment,{children:[X.jsxs(g2s,{className:"metadataInfo",children:[X.jsx("div",{className:"headerStyle",children:X.jsx("span",{className:"heading",children:a?r:e})}),X.jsx($7,{}),X.jsx("div",{className:"bottomStyle",children:X.jsxs("div",{children:[X.jsx("div",{className:"timeInfo",children:a?X.jsxs("span",{children:["Time Taken ",X.jsx("b",{children:`${a} s`||"Unknown"})]}):X.jsxs("span",{children:["Estimated Time ",X.jsx("b",{children:`${t} s`||"Unknown"})]})}),X.jsx($7,{orientation:"vertical",flexItem:!0}),X.jsx("div",{className:"seeDetail",children:a?X.jsx(X.Fragment,{children:X.jsxs("button",{type:"button",onClick:d,children:["See Code",X.jsx(qUt,{fontSize:"small"})]})}):X.jsxs("div",{className:"typing",children:[X.jsx("span",{children:" "}),X.jsx("span",{children:" "}),X.jsx("span",{children:" "})]})}),a&&o&&o>0&&X.jsxs(X.Fragment,{children:[X.jsx($7,{orientation:"vertical",flexItem:!0}),X.jsx("div",{className:"seeDetail pointsDetail",children:X.jsxs("button",{type:"button",onClick:p,children:["+",h(o)," points",X.jsx(y5a,{style:{marginLeft:4}})]})})]})]})})]}),X.jsx(fRa,{open:u,onClose:()=>c(!1),isLoggedIn:!0})]})},gRa=[{key:"setting_up_project",message:"Setting up project"},{key:"creating_project_spec",message:"Creating project spec"},{key:"generating_content",message:"Generating content"},{key:"generating_component_code",message:"Generating code for components"},{key:"finalizing_project_setup",message:"Finalizing project setup"}];function O9r(e,t,r){return gRa.map(({key:a,message:n})=>({key:a,message:a===t&&r?r:n,completed:!!e[a]}))}const $Cs=gt("div")`
|
|
16004
|
+
`,opacity:0,transform:"scale(0.95)",".modal-enter-active &, .modal-enter-done &":{opacity:1,transform:"scale(1)"},".modal-exit &":{opacity:1,transform:"scale(1)"},".modal-exit-active &":{opacity:0,transform:"scale(0.95)"},"@media (max-width: 768px)":{padding:"16px",width:"100%",maxWidth:"98vw",maxHeight:"90vh",overflowY:"auto"}})),HCs=Wa(lt)(()=>({display:"flex",flexDirection:"column",width:"100%",alignItems:"center",textAlign:"center",gap:"20px"})),GCs=Wa(lt)(()=>({display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",marginBottom:"20px"})),VCs=Wa(Da)(()=>({color:"rgba(255, 255, 255, 0.75)",fontSize:"16px",fontWeight:400})),UCs=Wa(Da)(()=>({color:"#ffffff",fontSize:"32px",fontWeight:600,background:"linear-gradient(90deg, #667eea, #c40aac)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"})),WCs=Wa(Da)(()=>({color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",fontWeight:400,display:"flex",alignItems:"center",gap:"8px"})),KCs=Wa(Da)(()=>({color:"rgba(255, 255, 255, 0.5)",fontSize:"12px",fontWeight:400,maxWidth:"600px",lineHeight:1.5,"& a":{color:"#667eea",textDecoration:"none","&:hover":{textDecoration:"underline"}}})),QCs=Wa(Fl)(()=>({padding:"4px 10px",backgroundColor:"rgba(255, 255, 255, 0.11)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"12px",borderRadius:"6px",transition:"all 0.3s ease-in-out",display:"inline-flex",alignItems:"center","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.1)"}})),qCs=Wa(lt)(()=>({width:"100%",maxWidth:"1400px",margin:"14px auto 0",display:"flex",gap:"20px",justifyContent:"center",flexWrap:"nowrap","@media (max-width: 1100px)":{flexDirection:"column",alignItems:"center"}})),R9r=Wa(lt)(()=>({flex:1,maxWidth:"680px",width:"100%",margin:"0 auto","@media (max-width: 1250px)":{maxWidth:"560px"},"@media (max-width: 1100px)":{maxWidth:"680px",width:"96%"}})),T9r=Wa(Da)(()=>({color:"#ffffff",fontSize:"20px",fontWeight:500,marginBottom:"16px"})),j9r=Wa(lt)(()=>({width:"100%",backgroundColor:"rgba(255, 255, 255, 0.03)",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(255, 255, 255, 0.06)",display:"flex",flexDirection:"column"})),I9r=Wa(lt)(()=>({flexGrow:1,overflowY:"auto",maxHeight:"38vh",scrollbarGutter:"stable",borderRadius:"0 0 8px 8px","@media (max-width: 1100px)":{maxHeight:"45vh"},"@media (max-width: 768px)":{maxHeight:"none",overflow:"visible"}})),P9r=Wa(lt)(()=>({display:"flex",padding:"12px 20px",backgroundColor:"rgba(255, 255, 255, 0.03)",borderBottom:"1px solid rgba(255, 255, 255, 0.06)",position:"relative",zIndex:1,borderRadius:"8px 8px 0 0",overflow:"hidden"})),_R=Wa(Da)(()=>({color:"rgba(255, 255, 255, 0.75)",fontSize:"14px",fontWeight:500})),N$=Wa(lt)(({$isPodium:e,$isCurrentUser:t})=>({display:"flex",alignItems:"center",padding:"12px 20px",borderBottom:"1px solid rgba(255, 255, 255, 0.03)",transition:"background-color 0.2s ease",position:"relative",backgroundColor:e===1?"rgba(255, 215, 0, 0.08)":e===2?"rgba(192, 192, 192, 0.06)":e===3?"rgba(205, 127, 50, 0.06)":t&&!e?"rgba(102, 126, 234, 0.1)":"transparent","&:hover":{backgroundColor:e===1?"rgba(255, 215, 0, 0.12)":e===2?"rgba(192, 192, 192, 0.1)":e===3?"rgba(205, 127, 50, 0.1)":t?"rgba(102, 126, 234, 0.15)":"rgba(255, 255, 255, 0.02)"},"&:last-child":{borderBottom:"none"}})),bbt=Wa(lt)(()=>({display:"flex",alignItems:"center",justifyContent:"center",minWidth:"40px",maxWidth:"40px",color:"rgba(255, 255, 255, 0.4)",fontSize:"13px",fontWeight:400}));Wa("span")(()=>({fontSize:"18px",lineHeight:1,display:"inline-flex"}));const Mxe=Wa(lt)(()=>({color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",flex:1,display:"flex",alignItems:"center",textAlign:"left",gap:"8px"})),N9r=Wa(lt)(()=>({color:"#ffffff",fontSize:"14px",fontWeight:500,minWidth:"100px",flex:"0 0 100px",textAlign:"right",display:"flex",justifyContent:"flex-end",alignItems:"center"})),L9r=Wa(Da)(()=>({color:"#667eea",fontSize:"12px",fontWeight:500,marginLeft:"8px",padding:"2px 8px",backgroundColor:"rgba(102, 126, 234, 0.15)",borderRadius:"4px",display:"inline-block"})),YCs=Wa(lt)(()=>({color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",flex:"2 1 0",minWidth:0,display:"flex",alignItems:"center",textAlign:"left",gap:"8px",overflow:"hidden","& a":{color:"#667eea",textDecoration:"none"},"& a.app-name, & span.app-name":{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& a:hover":{textDecoration:"underline"}})),JCs=Wa(lt)(()=>({color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",flex:"1 1 0",minWidth:0,textAlign:"left",display:"flex",alignItems:"center",overflow:"hidden",textOverflow:"ellipsis"})),ZCs=Wa(lt)(()=>({color:"#ffffff",fontSize:"14px",fontWeight:500,minWidth:"100px",flex:"0 0 100px",textAlign:"right",display:"flex",justifyContent:"flex-end",alignItems:"center"})),XCs=300,fRa=({open:e,onClose:t,isLoggedIn:r})=>{const{APIHandler:a}=vs(),n=j.useRef(null),o=j.useRef(null),[s,l]=j.useState(null),[u,c]=j.useState(null),[d,p]=j.useState([]),[h,f]=j.useState([]),[m,x]=j.useState(!1),[y,v]=j.useState(!1),[b,k]=j.useState(!1),[S,F]=j.useState(!1),[B,T]=j.useState(!1),[I,L]=j.useState(!1),[P,z]=j.useState(!1);j.useEffect(()=>{const _=Y=>{Y.key==="Escape"&&t()};return e&&document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[e,t]),j.useEffect(()=>{if(!e)return;const _=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=_}},[e]),j.useEffect(()=>{var _;if(!e)return;(_=o.current)==null||_.focus();const Y=n.current;if(!Y)return;const re=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),oe=Z=>{if(Z.key!=="Tab")return;const ie=Array.from(Y.querySelectorAll(re)).filter(ge=>ge.offsetParent!==null||ge===document.activeElement);if(ie.length===0)return;const pe=ie[0],se=ie[ie.length-1];Z.shiftKey?document.activeElement===pe&&(Z.preventDefault(),se.focus()):document.activeElement===se&&(Z.preventDefault(),pe.focus())};return Y.addEventListener("keydown",oe),()=>{Y.removeEventListener("keydown",oe)}},[e]),j.useEffect(()=>{e||(T(!1),L(!1),z(!1),c(null))},[e]),j.useEffect(()=>{r||c(null)},[r]),j.useEffect(()=>{e&&r&&!B&&(x(!0),F(!1),T(!0),a.getCreatorPointsSum().then(_=>{if(!_.ok)throw new Error(`Failed to fetch user points: ${_.status}`);return _.json()}).then(_=>{_&&(l(_.total_points),c(_.creator_user_id))}).catch(_=>{console.error("Error fetching user points:",_),F(!0)}).finally(()=>{x(!1)}))},[e,r,B,a]),j.useEffect(()=>{e&&!I&&(v(!0),L(!0),a.getCreatorPointsTop(20).then(_=>{if(!_.ok)throw new Error(`Failed to fetch top creators: ${_.status}`);return _.json()}).then(_=>{_&&_.creators&&p(_.creators)}).catch(_=>{console.error("Error fetching top creators:",_),p([])}).finally(()=>{v(!1)}))},[e,I,a]),j.useEffect(()=>{e&&!P&&(k(!0),z(!0),a.getProjectViewsTop(20).then(_=>{if(!_.ok)throw new Error(`Failed to fetch top projects: ${_.status}`);return _.json()}).then(_=>{_&&_.data&&f(_.data)}).catch(_=>{console.error("Error fetching top projects:",_),f([])}).finally(()=>{k(!1)}))},[e,P,a]);const V=()=>{window.open("https://docs.makeinfinite.com/docs/getting-started","_blank","noopener,noreferrer")},O=_=>_.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:3}),H=_=>{switch(_){case 1:return"🥇";case 2:return"🥈";case 3:return"🥉";default:return null}},U=_=>_.length>20?`${_.substring(0,8)}...${_.substring(_.length-8)}`:_,K=_=>_.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),J=_=>{if(!_)return"";try{return(_.startsWith("http")?new URL(_):new URL(`https://${_}`)).hostname.replace(/^www\./,"")}catch{return _.replace(/^https?:\/\//,"").replace(/^www\./,"")}},q=u?d.some(_=>_.creator_user_id===u):!1;return cs.createPortal(X.jsx(pRa,{in:e,timeout:XCs,classNames:"modal",unmountOnExit:!0,children:X.jsx(OCs,{onClick:t,children:X.jsxs(zCs,{onClick:_=>_.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Earn points and leaderboards",ref:n,children:[X.jsx(Ml,{"aria-label":"close",onClick:t,sx:{position:"absolute",right:12,top:12,color:_=>_.palette.grey[500],zIndex:1},ref:o,children:X.jsx(bb,{})}),X.jsxs(HCs,{children:[X.jsxs(GCs,{children:[r&&!S&&X.jsxs(X.Fragment,{children:[X.jsx(VCs,{children:"You have earned"}),m?X.jsx(wh,{size:24,sx:{color:"#667eea"}}):X.jsxs(UCs,{children:[s!==null?O(s):"0"," Dreamspace points 🎉"]})]}),X.jsxs(WCs,{children:["Earn points for generating and editing your app.",X.jsxs(QCs,{onClick:V,children:["Learn More",X.jsx(LCs,{sx:{fontSize:14,marginLeft:"4px"}})]})]}),X.jsxs(KCs,{children:["Creators will soon be able to redeem points for Dreamspace merch and other rewards in the future. Follow"," ",X.jsx("a",{href:"https://x.com/dreamspaceHQ",target:"_blank",rel:"noopener noreferrer",children:"@dreamspaceHQ"})," ","for more updates on our rewards program."]})]}),X.jsxs(qCs,{children:[X.jsxs(R9r,{children:[X.jsx(T9r,{children:"Top Creators Leaderboard"}),X.jsxs(j9r,{children:[X.jsxs(P9r,{children:[X.jsx(_R,{style:{minWidth:"40px",maxWidth:"40px"}}),X.jsx(_R,{style:{flex:"2 1 0",textAlign:"left",minWidth:0},children:"Creator"}),X.jsx(_R,{style:{minWidth:"100px",textAlign:"right",flex:"0 0 100px"},children:"Points earned"})]}),X.jsx(I9r,{children:y?X.jsx(lt,{sx:{display:"flex",justifyContent:"center",padding:"20px"},children:X.jsx(wh,{size:24,sx:{color:"#667eea"}})}):X.jsx(X.Fragment,{children:d.length>0?X.jsxs(X.Fragment,{children:[d.map((_,Y)=>{const re=Y+1,oe=H(re),Z=r&&_.creator_user_id===u,ie=re<=3?re:void 0;return X.jsxs(N$,{$isPodium:ie,$isCurrentUser:Z,children:[X.jsx(bbt,{children:oe||re}),X.jsxs(Mxe,{children:[U(_.creator_user_id),Z&&X.jsx(L9r,{children:"(You)"})]}),X.jsx(N9r,{children:O(_.total_points)})]},`${_.creator_user_id}-${Y}`)}),r&&u&&!q&&s!==null&&X.jsxs(N$,{$isCurrentUser:!0,children:[X.jsx(bbt,{children:"—"}),X.jsxs(Mxe,{children:[U(u),X.jsx(L9r,{children:"(You)"})]}),X.jsx(N9r,{children:O(s)})]})]}):X.jsx(N$,{children:X.jsx(Mxe,{sx:{textAlign:"center",width:"100%",gridColumn:"span 3"},children:"No data available"})})})})]})]}),X.jsxs(R9r,{children:[X.jsx(T9r,{children:"Top Apps Leaderboard"}),X.jsxs(j9r,{children:[X.jsxs(P9r,{children:[X.jsx(_R,{style:{minWidth:"40px",maxWidth:"40px"}}),X.jsx(_R,{style:{flex:"2 1 0",textAlign:"left",minWidth:0},children:"App"}),X.jsx(_R,{style:{flex:"1 1 0",textAlign:"left",minWidth:0},children:"Creator"}),X.jsx(_R,{style:{minWidth:"100px",textAlign:"right",flex:"0 0 100px"},children:"Views"})]}),X.jsx(I9r,{children:b?X.jsx(lt,{sx:{display:"flex",justifyContent:"center",padding:"20px"},children:X.jsx(wh,{size:24,sx:{color:"#667eea"}})}):X.jsx(X.Fragment,{children:h.length>0?X.jsx(X.Fragment,{children:h.map((_,Y)=>{const re=Y+1,oe=H(re),Z=r&&_.creator_user_id===u,ie=re<=3?re:void 0;return X.jsxs(N$,{$isPodium:ie,$isCurrentUser:Z,children:[X.jsx(bbt,{children:oe||re}),X.jsx(YCs,{children:_.published_url?X.jsx("a",{className:"app-name",href:_.published_url,target:"_blank",rel:"noopener noreferrer",children:J(_.published_url)}):X.jsx("span",{className:"app-name",children:_.published_url})}),X.jsx(JCs,{children:_.creator_user_id?U(_.creator_user_id):"—"}),X.jsx(ZCs,{children:K(_.total_views)})]},`${_.project_name}-${Y}`)})}):X.jsx(N$,{children:X.jsx(Mxe,{sx:{textAlign:"center",width:"100%",gridColumn:"span 4"},children:"No data available"})})})})]})]})]})]})]})})}),document.body)},_Cs=({editingText:e,estimationTime:t,completionText:r,processTime:a,detailRef:n,pointsAwarded:o})=>{const s=ha(f=>f.setCurrentFilePath),l=ha(f=>f.setCurrentWorkspaceView),[u,c]=j.useState(!1),d=()=>{if(n){const f=n.startsWith("/")?n.substring(1):n;s(f)}l(Xs.CodeEditor)},p=()=>{c(!0)},h=f=>f.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:3});return X.jsxs(X.Fragment,{children:[X.jsxs(g2s,{className:"metadataInfo",children:[X.jsx("div",{className:"headerStyle",children:X.jsx("span",{className:"heading",children:a?r:e})}),X.jsx($7,{}),X.jsx("div",{className:"bottomStyle",children:X.jsxs("div",{children:[X.jsx("div",{className:"timeInfo",children:a?X.jsxs("span",{children:["Time Taken ",X.jsx("b",{children:`${a} s`||"Unknown"})]}):X.jsxs("span",{children:["Estimated Time ",X.jsx("b",{children:`${t} s`||"Unknown"})]})}),X.jsx($7,{orientation:"vertical",flexItem:!0}),X.jsx("div",{className:"seeDetail",children:a?X.jsx(X.Fragment,{children:X.jsxs("button",{type:"button",onClick:d,children:["See Code",X.jsx(qUt,{fontSize:"small"})]})}):X.jsxs("div",{className:"typing",children:[X.jsx("span",{children:" "}),X.jsx("span",{children:" "}),X.jsx("span",{children:" "})]})}),a&&o!=null&&o>0&&X.jsxs(X.Fragment,{children:[X.jsx($7,{orientation:"vertical",flexItem:!0}),X.jsx("div",{className:"seeDetail pointsDetail",children:X.jsxs("button",{type:"button",onClick:p,children:["+",h(o)," points",X.jsx(y5a,{style:{marginLeft:4}})]})})]})]})})]}),X.jsx(fRa,{open:u,onClose:()=>c(!1),isLoggedIn:!0})]})},gRa=[{key:"setting_up_project",message:"Setting up project"},{key:"creating_project_spec",message:"Creating project spec"},{key:"generating_content",message:"Generating content"},{key:"generating_component_code",message:"Generating code for components"},{key:"finalizing_project_setup",message:"Finalizing project setup"}];function O9r(e,t,r){return gRa.map(({key:a,message:n})=>({key:a,message:a===t&&r?r:n,completed:!!e[a]}))}const $Cs=gt("div")`
|
|
16005
16005
|
/* No background/border styling - inherits from chat message container */
|
|
16006
16006
|
padding: 0 12px 12px 0;
|
|
16007
16007
|
margin: 0;
|
|
@@ -16075,7 +16075,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
16075
16075
|
}
|
|
16076
16076
|
}
|
|
16077
16077
|
`,oEs=({steps:e})=>{const t=e.findIndex(a=>!a.completed),r=t===-1;return X.jsxs($Cs,{children:[X.jsx(eEs,{children:"Your project is being generated"}),X.jsx(tEs,{children:gRa.map((a,n)=>{const o=e.find(u=>u.key===a.key),s=(o==null?void 0:o.completed)||!1,l=n===t;return X.jsxs(rEs,{completed:s,children:[l&&!s?X.jsx(iEs,{}):X.jsx(aEs,{completed:s}),X.jsx(nEs,{completed:s,children:(o==null?void 0:o.message)||a.message})]},a.key)})}),r&&X.jsx("div",{style:{marginTop:"10px",marginBottom:"10px",padding:"8px 0",textAlign:"center",color:"rgba(255, 255, 255, 0.75)",fontWeight:"500",fontSize:"12px",lineHeight:"1.5"},children:"Project generation completed"})]})},kG=e=>`/src/ProjectComponents/${e}/component.tsx`,L$=e=>`/src/contracts/${e}/contract.sol`,sEs=e=>`/src/contracts/${e}/audit.md`,lEs=e=>{var t,r,a,n;const o=(r=(t=e==null?void 0:e.metadata)==null?void 0:t.function)==null?void 0:r.name,s=(n=(a=e==null?void 0:e.metadata)==null?void 0:a.function)==null?void 0:n.arguments,l=JSON.parse(s||"{}");let u="Processing request...",c="Request completed",d=null;const p=l.component_id,h=l.chart_id,f=l.contract_id;if(!o)return{editingText:u,completionText:c,detailRef:d};switch(o){case"EditFrontendComponent":case"EditSmartContractFrontendComponent":case"EditSmartContractBackendComponent":case"EditSQLViewFrontendComponent":case"EditAuthenticatedApiFrontendComponent":case"QuickEditFrontendComponent":case"EditComponentFromImage":u=`Editing component ${p}`,c=`Edited component ${p}`,d=p?kG(p):null;break;case"EditChart":u=`Editing chart ${h}`,c=`Edited chart ${h}`,d=h?kG(h):null;break;case"GenerateImageAndPlaceInComponent":{const m=l.image_input,x=typeof m=="string"?m.trim():void 0;x&&/\.\w{3,4}$/.test(x)&&!x.includes(`
|
|
16078
|
-
`)?(u=`Placing image in ${p}`,c=`Image placed in ${p}`):(u=`Generating image for ${p}`,c=`Image generated for ${p}`),d=p?kG(p):null;break}case"ReadComponentCode":u=`Reading component ${p}`,c=`Read component ${p}`,d=p?kG(p):null;break;case"UndoComponentChanges":u=`Undoing changes to component ${p}`,c=`Changes undone to component ${p}`,d=p?kG(p):null;break;case"RedoComponentChanges":u=`Redoing changes to component ${p}`,c=`Changes redone to component ${p}`,d=p?kG(p):null;break;case"SetApplicationLoginOn":u="Setting application login to on",c="Application login set to on";break;case"SetApplicationLoginOff":u="Setting application login to off",c="Application login set to off";break;case"WriteOrEditSmartContract":u=`Editing contract ${f}`,c=`Edited contract ${f}`,d=f?L$(f):null;break;case"DeploySmartContract":u=`Deploying contract ${f}`,c=`Deployed contract ${f}`,d=f?L$(f):null;break;case"ReadSmartContractCode":u=`Reading contract ${f}`,c=`Read contract ${f}`,d=f?L$(f):null;break;case"UndoSmartContractChanges":u=`Undoing changes to contract ${f}`,c=`Changes undone to contract ${f}`,d=f?L$(f):null;break;case"RedoSmartContractChanges":u=`Redoing changes to contract ${f}`,c=`Changes redone to contract ${f}`,d=f?L$(f):null;break;case"AuditSmartContract":u=`Auditing contract ${f}`,c=`Audited contract ${f}`,d=f?sEs(f):null;break;default:u=`Processing ${o}...`,c=`${o} completed`;break}return{editingText:u,completionText:c,detailRef:d}},uEs=({pageId:e,messageCollection:t=[],onNewUserMessage:r,userInput:a,onInputValueChange:n,messageLoading:o,onImageUploadClick:s,imageUploadDisabled:l,isSendDisabled:u,onStop:c,chatErrorMessage:d,onDismissErrorMessage:p,selectedModel:h,selectedModelLabel:f,onModelChange:m,modelOptions:x})=>{const{isChatBotOpen:y}=Gf(),[v,b]=j.useState(t);j.useEffect(()=>{const F=t.filter(B=>{var T,I;const L=(I=(T=B.metadata)==null?void 0:T.function)==null?void 0:I.name;return!(B.type===Bp.tool_call&&L&&L.startsWith("Transfer"))});b(F)},[y,t]);const k=()=>{r()},S=j.useCallback((F,B)=>{var T;return B.type===Bp.INTERIM_MESSAGE?X.jsxs("div",{style:{padding:"16px",background:"linear-gradient(135deg, #c153c3, #5000bf)",boxShadow:"-10px 20px 140px 0px #7E7BA033",backdropFilter:"blur(25px)",WebkitBackdropFilter:"blur(25px)",borderRadius:"16px 16px 16px 16px",maxWidth:"85%",margin:"10px auto",border:"2px linear-gradient(135deg, #c153c3, #5000bf)"},children:[X.jsx("div",{dangerouslySetInnerHTML:{__html:F}}),X.jsx("div",{style:{marginTop:"10px",textAlign:"center"},children:X.jsx("a",{href:"https://docs.makeinfinite.com/docs/getting-started",target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:"#5000bf",color:"#ffffff",border:"1px solid #5000bf",borderRadius:"9px",fontWeight:400,padding:"11px 22px",textDecoration:"none",display:"inline-block",textTransform:"none",fontSize:"0.813rem",cursor:"pointer"},children:"Learn more"})})]}):B.type===Bp.PROJECT_GENERATION_PROGRESS?X.jsx(X.Fragment,{children:X.jsx("div",{className:"recieverTextMsg",children:X.jsx("div",{className:"msgText",children:X.jsx(oEs,{steps:((T=B.metadata)==null?void 0:T.steps)||[]})})})}):X.jsx(X.Fragment,{children:X.jsx("div",{className:"recieverTextMsg",children:X.jsxs("div",{className:`msgText ${B!=null&&B.class?B==null?void 0:B.class:""}`,children:[B.type===Bp.default&&X.jsx(OBa,{remarkPlugins:[s2s],children:F}),B.type===Bp.INTERNAL_ASSISTANT_MESSAGE&&X.jsx("div",{children:F}),B.type===Bp.tool_call&&(()=>{var I,L;const P=(I=B.derived)==null?void 0:I.pointsAwarded;return X.jsx(_Cs,{...lEs(B),estimationTime:((L=B.metadata)==null?void 0:L.estimated_time)||0,processTime:F?parseInt(F,10)||0:void 0,pointsAwarded:P})})(),B.type===Bp.error&&X.jsx("div",{children:ho.CHAT_ERROR})]})})})},[]);return X.jsx(xCs,{pageId:e,userInput:a,handleInputchange:n,handleSubmitMessage:k,renderMessage:S,messages:v,msgLoading:o,onImageUploadClick:s,imageUploadDisabled:l,isSendDisabled:u,onStop:c,chatErrorMessage:d,onDismissErrorMessage:p,selectedModel:h,selectedModelLabel:f,onModelChange:m,modelOptions:x})};async function cEs(){if(!window.ethereum)throw new Error("No Ethereum provider found. Please install MetaMask or another wallet extension.");const e=new tK(window.ethereum);await window.ethereum.request({method:"eth_requestAccounts"});const t=e.getSigner(0),r=await t.getAddress();return console.log(`Connected with address: ${r}`),{provider:e,signer:t}}function dEs(e,t){let r=e;if(!e)throw new Error("Missing bytecode: bytecode is required for contract deployment");if(e.startsWith("0x")||(console.log("Bytecode missing 0x prefix - adding prefix automatically"),r=`0x${e}`),!Array.isArray(t)||t.length===0)throw new Error("Invalid ABI format. Must be a non-empty array");return r}async function pEs(e,t,r){const a=await window.ethereum.request({method:"eth_chainId"});if(console.log(`Chain ID: Current=0x${parseInt(a,16).toString(16)}, Target=0x${r.toString(16)}`),parseInt(a,16)!==r)try{console.log(`Switching to chain ID: 0x${r.toString(16)}`);try{await window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:`0x${r.toString(16)}`}]})}catch(o){throw o.code===4902?new Error(`Network with chainId ${r} is not configured in your wallet. Please add the network manually.`):o}if(!await(async(o=5,s=1e3)=>{for(let l=0;l<o;l++){l>0&&await new Promise(c=>setTimeout(c,s));const u=await window.ethereum.request({method:"eth_chainId"});if(parseInt(u,16)===r)return!0}return!1})())throw new Error(`Chain switch to 0x${r.toString(16)} failed after multiple attempts. Please switch networks manually in your wallet.`);e=new tK(window.ethereum),t=e.getSigner(0);const n=await e.getNetwork();if(console.log(`Network after switch: ${n.name} (Chain ID: ${n.chainId})`),n.chainId!==r)throw new Error(`Provider is still on the wrong network after switch. Expected: ${r}, Got: ${n.chainId}`)}catch(n){throw console.error("Chain switch error:",n),n}return(()=>{window.ethereum.removeListener("chainChanged",n),window.ethereum.on("chainChanged",n);function n(o){console.log(`Chain changed to: 0x${parseInt(o,16).toString(16)}`),e=new tK(window.ethereum),t=e.getSigner(0)}})(),{provider:e,signer:t}}async function hEs(e){const{formattedBytecode:t,abi:r,constructorArgs:a,chainId:n}=e,o={};e.txOptions&&Object.assign(o,e.txOptions),console.log("Estimating gas for contract deployment...");const s=await window.ethereum.request({method:"eth_chainId"});if(parseInt(s,16)!==n){console.warn(`Chain mismatch before gas estimation: Current=0x${parseInt(s,16).toString(16)}, Expected=0x${n.toString(16)}`),e.provider=new tK(window.ethereum),e.signer=e.provider.getSigner(0);const u=await e.provider.getNetwork();if(u.chainId!==n)throw new Error(`Unable to continue with deployment: You are on chain ID ${u.chainId} but deployment target is chain ID ${n}. Please switch networks manually.`)}const l=new Xta(r,t,e.signer).getDeployTransaction(...a);try{const u=await e.provider.getGasPrice(),c=await e.provider.estimateGas({...l,from:await e.signer.getAddress()});o.gasLimit=c.mul(120).div(100),o.gasPrice=u,console.log(`Gas: estimate=${c.toString()}, limit=${o.gasLimit.toString()}, price=${_ta(u,"gwei")} gwei`)}catch(u){if(console.warn("Gas estimation failed"),u.code==="NETWORK_ERROR"||u.message&&u.message.includes("network")){e.provider=new tK(window.ethereum);const c=await e.provider.getNetwork();if(c.chainId!==n)throw new Error(`Network mismatch: Expected chain ID ${n}, but connected to ${c.chainId}`);console.warn("Setting conservative gas limit"),o.gasLimit=USt.from("8000000")}else console.warn("Setting default gas limit"),o.gasLimit=USt.from("6000000")}return o}async function fEs(e,t){const{formattedBytecode:r,abi:a,constructorArgs:n,chainId:o,txOptions:s}=e,l=e.provider,u=e.signer;if(!s.gasPrice){const m=(await l.getGasPrice()).mul(110).div(100);s.gasPrice=m,console.log(`Using gas price: ${_ta(m,"gwei")} gwei`)}s.chainId=o;const c=await window.ethereum.request({method:"eth_chainId"});if(parseInt(c,16)!==o)throw console.error(`Chain mismatch before deployment: Current=0x${parseInt(c,16).toString(16)}, Expected=0x${o.toString(16)}`),new Error(`Cannot deploy contract: You are on the wrong network. Please switch to chain ID 0x${o.toString(16)}`);const d=new Xta(a,r,u);console.log("Starting contract deployment...");const p=await d.deploy(...n,s);console.log(`Transaction hash: ${p.deployTransaction.hash}`),console.log(`Waiting for ${t} confirmation(s)...`);const h=await p.deployed(),f=await p.deployTransaction.wait(t);return console.log("Contract deployment successful!"),{success:!0,contractAddress:h.address,transactionHash:f.transactionHash,blockNumber:f.blockNumber,gasUsed:f.gasUsed.toString(),gasEstimate:s.gasLimit?s.gasLimit.toString():void 0,effectiveGasPrice:f.effectiveGasPrice.toString()}}function gEs(e){let t=e.message||"Unknown deployment error";return e.code===4001||t.toLowerCase().includes("user rejected")||t.toLowerCase().includes("user denied")?(t="Transaction was rejected by the user",console.log(t)):e.code===-32e3||t.toLowerCase().includes("insufficient funds")?t="Insufficient funds for gas * price + value":t.toLowerCase().includes("nonce")&&(t="Invalid nonce value. Try resetting your MetaMask account"),console.error("Contract deployment failed:",t),t}async function mEs(e){const{bytecode:t,abi:r,constructorArgs:a=[],chainId:n,confirmations:o=1,useGasEstimation:s=!0}=e;try{const{provider:l,signer:u}=await cEs(),c=dEs(t,r),{provider:d,signer:p}=await pEs(l,u,n),h={provider:d,signer:p,bytecode:t,formattedBytecode:c,abi:r,constructorArgs:a,chainId:n,txOptions:{}};return s?h.txOptions=await hEs(h):h.txOptions.gasLimit=USt.from("6000000"),await fEs(h,o)}catch(l){return{success:!1,error:gEs(l)}}}async function AEs(e){var t;if(console.log("Contract deployment task received:",{bytecodeLength:e.bytecode?e.bytecode.length:0,bytecodeStartsWith0x:e.bytecode?e.bytecode.startsWith("0x"):!1,abiLength:e.abi?e.abi.length:0,chainId:e.chain_id,hasConstructorArgs:!!(e.constructor_args&&e.constructor_args.length>0)}),!e.bytecode||!e.abi||!e.chain_id)throw new Error(`Missing required parameters: ${e.bytecode?"":"bytecode, "}${e.abi?"":"abi, "}${e.chain_id?"":"chain_id"}`);const r={bytecode:e.bytecode,abi:e.abi,chainId:e.chain_id,constructorArgs:e.constructor_args||[],confirmations:e.confirmations||1,useGasEstimation:e.use_gas_estimation!==!1};console.log("Deploying contract with data:",{chainId:r.chainId,confirmations:r.confirmations,useGasEstimation:r.useGasEstimation,constructorArgsLength:((t=r.constructorArgs)==null?void 0:t.length)||0});const a=await mEs(r);if(a.success){const o={contractAddress:a.contractAddress,transactionHash:a.transactionHash,blockNumber:a.blockNumber,gasUsed:a.gasUsed,gasEstimate:a.gasEstimate,effectiveGasPrice:a.effectiveGasPrice};return console.log("Contract deployment successful:",o),o}const n=a.error||"Contract deployment failed";throw new Error(n)}DW.oneOfType([DW.func,DW.object]);function _Ut(e,t){return()=>null}_Ut(DW.elementType);function CWe(e){try{return e.matches(":focus-visible")}catch{}return!1}const z9r={};function mRa(e,t){const r=j.useRef(z9r);return r.current===z9r&&(r.current=e(t)),r}let xEs=class sRt{constructor(){zi(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())}),this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new sRt}static use(){const t=mRa(sRt.create).current,[r,a]=j.useState(!1);return t.shouldMount=r,t.setShouldMount=a,j.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=vEs(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}};function yEs(){return xEs.use()}function vEs(){let e,t;const r=new Promise((a,n)=>{e=a,t=n});return r.resolve=e,r.reject=t,r}const bEs=[];function DEs(e){j.useEffect(e,bEs)}let ARa=class xRa{constructor(){zi(this,"currentId",null),zi(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)}),zi(this,"disposeEffect",()=>this.clear)}static create(){return new xRa}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}};function BU(){const e=mRa(ARa.create).current;return DEs(e.disposeEffect),e}function wEs(e){const{className:t,classes:r,pulsate:a=!1,rippleX:n,rippleY:o,rippleSize:s,in:l,onExited:u,timeout:c}=e,[d,p]=j.useState(!1),h=Di(t,r.ripple,r.rippleVisible,a&&r.ripplePulsate),f={width:s,height:s,top:-(s/2)+o,left:-(s/2)+n},m=Di(r.child,d&&r.childLeaving,a&&r.childPulsate);return!l&&!d&&p(!0),j.useEffect(()=>{if(!l&&u!=null){const x=setTimeout(u,c);return()=>{clearTimeout(x)}}},[u,l,c]),X.jsx("span",{className:h,style:f,children:X.jsx("span",{className:m})})}const CEs=Ys("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),sy=CEs,lRt=550,EEs=80,kEs=xse`
|
|
16078
|
+
`)?(u=`Placing image in ${p}`,c=`Image placed in ${p}`):(u=`Generating image for ${p}`,c=`Image generated for ${p}`),d=p?kG(p):null;break}case"ReadComponentCode":u=`Reading component ${p}`,c=`Read component ${p}`,d=p?kG(p):null;break;case"UndoComponentChanges":u=`Undoing changes to component ${p}`,c=`Changes undone to component ${p}`,d=p?kG(p):null;break;case"RedoComponentChanges":u=`Redoing changes to component ${p}`,c=`Changes redone to component ${p}`,d=p?kG(p):null;break;case"SetApplicationLoginOn":u="Setting application login to on",c="Application login set to on";break;case"SetApplicationLoginOff":u="Setting application login to off",c="Application login set to off";break;case"WriteOrEditSmartContract":u=`Editing contract ${f}`,c=`Edited contract ${f}`,d=f?L$(f):null;break;case"DeploySmartContract":u=`Deploying contract ${f}`,c=`Deployed contract ${f}`,d=f?L$(f):null;break;case"ReadSmartContractCode":u=`Reading contract ${f}`,c=`Read contract ${f}`,d=f?L$(f):null;break;case"UndoSmartContractChanges":u=`Undoing changes to contract ${f}`,c=`Changes undone to contract ${f}`,d=f?L$(f):null;break;case"RedoSmartContractChanges":u=`Redoing changes to contract ${f}`,c=`Changes redone to contract ${f}`,d=f?L$(f):null;break;case"AuditSmartContract":u=`Auditing contract ${f}`,c=`Audited contract ${f}`,d=f?sEs(f):null;break;case"AddPage":{const m=l.page_path;u=`Adding page at ${m}`,c=`Added page at ${m}`;break}case"EditPage":{const m=l.page_path,x=l.new_components;Array.isArray(x)&&x.length===0?(u=`Deleting page at ${m}`,c=`Deleted page at /${m}`):(u=`Editing page at /${m}`,c=`Edited page at /${m}`);break}default:u=`Processing ${o}...`,c=`${o} completed`;break}return{editingText:u,completionText:c,detailRef:d}},uEs=({pageId:e,messageCollection:t=[],onNewUserMessage:r,userInput:a,onInputValueChange:n,messageLoading:o,onImageUploadClick:s,imageUploadDisabled:l,isSendDisabled:u,onStop:c,chatErrorMessage:d,onDismissErrorMessage:p,selectedModel:h,selectedModelLabel:f,onModelChange:m,modelOptions:x})=>{const{isChatBotOpen:y}=Gf(),[v,b]=j.useState(t);j.useEffect(()=>{const F=t.filter(B=>{var T,I;const L=(I=(T=B.metadata)==null?void 0:T.function)==null?void 0:I.name;return!(B.type===Bp.tool_call&&L&&L.startsWith("Transfer"))});b(F)},[y,t]);const k=()=>{r()},S=j.useCallback((F,B)=>{var T;return B.type===Bp.INTERIM_MESSAGE?X.jsxs("div",{style:{padding:"16px",background:"linear-gradient(135deg, #c153c3, #5000bf)",boxShadow:"-10px 20px 140px 0px #7E7BA033",backdropFilter:"blur(25px)",WebkitBackdropFilter:"blur(25px)",borderRadius:"16px 16px 16px 16px",maxWidth:"85%",margin:"10px auto",border:"2px linear-gradient(135deg, #c153c3, #5000bf)"},children:[X.jsx("div",{dangerouslySetInnerHTML:{__html:F}}),X.jsx("div",{style:{marginTop:"10px",textAlign:"center"},children:X.jsx("a",{href:"https://docs.makeinfinite.com/docs/getting-started",target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:"#5000bf",color:"#ffffff",border:"1px solid #5000bf",borderRadius:"9px",fontWeight:400,padding:"11px 22px",textDecoration:"none",display:"inline-block",textTransform:"none",fontSize:"0.813rem",cursor:"pointer"},children:"Learn more"})})]}):B.type===Bp.PROJECT_GENERATION_PROGRESS?X.jsx(X.Fragment,{children:X.jsx("div",{className:"recieverTextMsg",children:X.jsx("div",{className:"msgText",children:X.jsx(oEs,{steps:((T=B.metadata)==null?void 0:T.steps)||[]})})})}):X.jsx(X.Fragment,{children:X.jsx("div",{className:"recieverTextMsg",children:X.jsxs("div",{className:`msgText ${B!=null&&B.class?B==null?void 0:B.class:""}`,children:[B.type===Bp.default&&X.jsx(OBa,{remarkPlugins:[s2s],children:F}),B.type===Bp.INTERNAL_ASSISTANT_MESSAGE&&X.jsx("div",{children:F}),B.type===Bp.tool_call&&(()=>{var I,L;const P=(I=B.derived)==null?void 0:I.pointsAwarded;return X.jsx(_Cs,{...lEs(B),estimationTime:((L=B.metadata)==null?void 0:L.estimated_time)||0,processTime:F?parseInt(F,10)||0:void 0,pointsAwarded:P})})(),B.type===Bp.error&&X.jsx("div",{children:ho.CHAT_ERROR})]})})})},[]);return X.jsx(xCs,{pageId:e,userInput:a,handleInputchange:n,handleSubmitMessage:k,renderMessage:S,messages:v,msgLoading:o,onImageUploadClick:s,imageUploadDisabled:l,isSendDisabled:u,onStop:c,chatErrorMessage:d,onDismissErrorMessage:p,selectedModel:h,selectedModelLabel:f,onModelChange:m,modelOptions:x})};async function cEs(){if(!window.ethereum)throw new Error("No Ethereum provider found. Please install MetaMask or another wallet extension.");const e=new tK(window.ethereum);await window.ethereum.request({method:"eth_requestAccounts"});const t=e.getSigner(0),r=await t.getAddress();return console.log(`Connected with address: ${r}`),{provider:e,signer:t}}function dEs(e,t){let r=e;if(!e)throw new Error("Missing bytecode: bytecode is required for contract deployment");if(e.startsWith("0x")||(console.log("Bytecode missing 0x prefix - adding prefix automatically"),r=`0x${e}`),!Array.isArray(t)||t.length===0)throw new Error("Invalid ABI format. Must be a non-empty array");return r}async function pEs(e,t,r){const a=await window.ethereum.request({method:"eth_chainId"});if(console.log(`Chain ID: Current=0x${parseInt(a,16).toString(16)}, Target=0x${r.toString(16)}`),parseInt(a,16)!==r)try{console.log(`Switching to chain ID: 0x${r.toString(16)}`);try{await window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:`0x${r.toString(16)}`}]})}catch(o){throw o.code===4902?new Error(`Network with chainId ${r} is not configured in your wallet. Please add the network manually.`):o}if(!await(async(o=5,s=1e3)=>{for(let l=0;l<o;l++){l>0&&await new Promise(c=>setTimeout(c,s));const u=await window.ethereum.request({method:"eth_chainId"});if(parseInt(u,16)===r)return!0}return!1})())throw new Error(`Chain switch to 0x${r.toString(16)} failed after multiple attempts. Please switch networks manually in your wallet.`);e=new tK(window.ethereum),t=e.getSigner(0);const n=await e.getNetwork();if(console.log(`Network after switch: ${n.name} (Chain ID: ${n.chainId})`),n.chainId!==r)throw new Error(`Provider is still on the wrong network after switch. Expected: ${r}, Got: ${n.chainId}`)}catch(n){throw console.error("Chain switch error:",n),n}return(()=>{window.ethereum.removeListener("chainChanged",n),window.ethereum.on("chainChanged",n);function n(o){console.log(`Chain changed to: 0x${parseInt(o,16).toString(16)}`),e=new tK(window.ethereum),t=e.getSigner(0)}})(),{provider:e,signer:t}}async function hEs(e){const{formattedBytecode:t,abi:r,constructorArgs:a,chainId:n}=e,o={};e.txOptions&&Object.assign(o,e.txOptions),console.log("Estimating gas for contract deployment...");const s=await window.ethereum.request({method:"eth_chainId"});if(parseInt(s,16)!==n){console.warn(`Chain mismatch before gas estimation: Current=0x${parseInt(s,16).toString(16)}, Expected=0x${n.toString(16)}`),e.provider=new tK(window.ethereum),e.signer=e.provider.getSigner(0);const u=await e.provider.getNetwork();if(u.chainId!==n)throw new Error(`Unable to continue with deployment: You are on chain ID ${u.chainId} but deployment target is chain ID ${n}. Please switch networks manually.`)}const l=new Xta(r,t,e.signer).getDeployTransaction(...a);try{const u=await e.provider.getGasPrice(),c=await e.provider.estimateGas({...l,from:await e.signer.getAddress()});o.gasLimit=c.mul(120).div(100),o.gasPrice=u,console.log(`Gas: estimate=${c.toString()}, limit=${o.gasLimit.toString()}, price=${_ta(u,"gwei")} gwei`)}catch(u){if(console.warn("Gas estimation failed"),u.code==="NETWORK_ERROR"||u.message&&u.message.includes("network")){e.provider=new tK(window.ethereum);const c=await e.provider.getNetwork();if(c.chainId!==n)throw new Error(`Network mismatch: Expected chain ID ${n}, but connected to ${c.chainId}`);console.warn("Setting conservative gas limit"),o.gasLimit=USt.from("8000000")}else console.warn("Setting default gas limit"),o.gasLimit=USt.from("6000000")}return o}async function fEs(e,t){const{formattedBytecode:r,abi:a,constructorArgs:n,chainId:o,txOptions:s}=e,l=e.provider,u=e.signer;if(!s.gasPrice){const m=(await l.getGasPrice()).mul(110).div(100);s.gasPrice=m,console.log(`Using gas price: ${_ta(m,"gwei")} gwei`)}s.chainId=o;const c=await window.ethereum.request({method:"eth_chainId"});if(parseInt(c,16)!==o)throw console.error(`Chain mismatch before deployment: Current=0x${parseInt(c,16).toString(16)}, Expected=0x${o.toString(16)}`),new Error(`Cannot deploy contract: You are on the wrong network. Please switch to chain ID 0x${o.toString(16)}`);const d=new Xta(a,r,u);console.log("Starting contract deployment...");const p=await d.deploy(...n,s);console.log(`Transaction hash: ${p.deployTransaction.hash}`),console.log(`Waiting for ${t} confirmation(s)...`);const h=await p.deployed(),f=await p.deployTransaction.wait(t);return console.log("Contract deployment successful!"),{success:!0,contractAddress:h.address,transactionHash:f.transactionHash,blockNumber:f.blockNumber,gasUsed:f.gasUsed.toString(),gasEstimate:s.gasLimit?s.gasLimit.toString():void 0,effectiveGasPrice:f.effectiveGasPrice.toString()}}function gEs(e){let t=e.message||"Unknown deployment error";return e.code===4001||t.toLowerCase().includes("user rejected")||t.toLowerCase().includes("user denied")?(t="Transaction was rejected by the user",console.log(t)):e.code===-32e3||t.toLowerCase().includes("insufficient funds")?t="Insufficient funds for gas * price + value":t.toLowerCase().includes("nonce")&&(t="Invalid nonce value. Try resetting your MetaMask account"),console.error("Contract deployment failed:",t),t}async function mEs(e){const{bytecode:t,abi:r,constructorArgs:a=[],chainId:n,confirmations:o=1,useGasEstimation:s=!0}=e;try{const{provider:l,signer:u}=await cEs(),c=dEs(t,r),{provider:d,signer:p}=await pEs(l,u,n),h={provider:d,signer:p,bytecode:t,formattedBytecode:c,abi:r,constructorArgs:a,chainId:n,txOptions:{}};return s?h.txOptions=await hEs(h):h.txOptions.gasLimit=USt.from("6000000"),await fEs(h,o)}catch(l){return{success:!1,error:gEs(l)}}}async function AEs(e){var t;if(console.log("Contract deployment task received:",{bytecodeLength:e.bytecode?e.bytecode.length:0,bytecodeStartsWith0x:e.bytecode?e.bytecode.startsWith("0x"):!1,abiLength:e.abi?e.abi.length:0,chainId:e.chain_id,hasConstructorArgs:!!(e.constructor_args&&e.constructor_args.length>0)}),!e.bytecode||!e.abi||!e.chain_id)throw new Error(`Missing required parameters: ${e.bytecode?"":"bytecode, "}${e.abi?"":"abi, "}${e.chain_id?"":"chain_id"}`);const r={bytecode:e.bytecode,abi:e.abi,chainId:e.chain_id,constructorArgs:e.constructor_args||[],confirmations:e.confirmations||1,useGasEstimation:e.use_gas_estimation!==!1};console.log("Deploying contract with data:",{chainId:r.chainId,confirmations:r.confirmations,useGasEstimation:r.useGasEstimation,constructorArgsLength:((t=r.constructorArgs)==null?void 0:t.length)||0});const a=await mEs(r);if(a.success){const o={contractAddress:a.contractAddress,transactionHash:a.transactionHash,blockNumber:a.blockNumber,gasUsed:a.gasUsed,gasEstimate:a.gasEstimate,effectiveGasPrice:a.effectiveGasPrice};return console.log("Contract deployment successful:",o),o}const n=a.error||"Contract deployment failed";throw new Error(n)}DW.oneOfType([DW.func,DW.object]);function _Ut(e,t){return()=>null}_Ut(DW.elementType);function CWe(e){try{return e.matches(":focus-visible")}catch{}return!1}const z9r={};function mRa(e,t){const r=j.useRef(z9r);return r.current===z9r&&(r.current=e(t)),r}let xEs=class sRt{constructor(){zi(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())}),this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new sRt}static use(){const t=mRa(sRt.create).current,[r,a]=j.useState(!1);return t.shouldMount=r,t.setShouldMount=a,j.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=vEs(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}};function yEs(){return xEs.use()}function vEs(){let e,t;const r=new Promise((a,n)=>{e=a,t=n});return r.resolve=e,r.reject=t,r}const bEs=[];function DEs(e){j.useEffect(e,bEs)}let ARa=class xRa{constructor(){zi(this,"currentId",null),zi(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)}),zi(this,"disposeEffect",()=>this.clear)}static create(){return new xRa}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}};function BU(){const e=mRa(ARa.create).current;return DEs(e.disposeEffect),e}function wEs(e){const{className:t,classes:r,pulsate:a=!1,rippleX:n,rippleY:o,rippleSize:s,in:l,onExited:u,timeout:c}=e,[d,p]=j.useState(!1),h=Di(t,r.ripple,r.rippleVisible,a&&r.ripplePulsate),f={width:s,height:s,top:-(s/2)+o,left:-(s/2)+n},m=Di(r.child,d&&r.childLeaving,a&&r.childPulsate);return!l&&!d&&p(!0),j.useEffect(()=>{if(!l&&u!=null){const x=setTimeout(u,c);return()=>{clearTimeout(x)}}},[u,l,c]),X.jsx("span",{className:h,style:f,children:X.jsx("span",{className:m})})}const CEs=Ys("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),sy=CEs,lRt=550,EEs=80,kEs=xse`
|
|
16079
16079
|
0% {
|
|
16080
16080
|
transform: scale(0);
|
|
16081
16081
|
opacity: 0.1;
|
|
@@ -47562,4 +47562,4 @@ ${I.replace(/\n$/,"")}`)},[I]),R.jsxs(slc,{children:[R.jsxs("div",{className:"qu
|
|
|
47562
47562
|
`,Kuc=()=>{const{height:e,headerHeight:t}=Bl(),r=e-t||500;return R.jsx(Wuc,{height:r,children:R.jsx("main",{className:"mainContent",children:R.jsxs("div",{className:"container",children:[R.jsx("h1",{children:"Dreamspace Terms of Service"}),R.jsx("p",{className:"last-updated",children:R.jsx("strong",{children:"Last Updated: July 7, 2025"})}),R.jsxs("section",{children:[R.jsx("p",{children:'Welcome to Dreamspace, developed and operated by MakeInfinite Labs ("Dreamspace," "we," "us," or "our"). By accessing or using our website, development tools, smart contract services, or any related content, software, or APIs (collectively, the "Platform"), you agree to comply with and be bound by these Terms of Service (the "Terms") and our Privacy Policy.'}),R.jsxs("p",{children:["Please read these Terms carefully before using the Platform."," ",R.jsx("strong",{children:"If you do not agree to these Terms, you may not access or use the Platform."})]})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"Acceptance of Terms"}),R.jsx("p",{children:"By using Dreamspace, you confirm that you:"}),R.jsxs("ul",{children:[R.jsx("li",{children:"Have read, understood, and agreed to these Terms."}),R.jsx("li",{children:"Agree to our Privacy Policy."}),R.jsx("li",{children:"Will comply with all applicable laws and regulations."}),R.jsx("li",{children:"Are at least 18 years old and legally able to enter into a binding contract."})]}),R.jsx("p",{children:'If you are using the Platform on behalf of an organization, you represent that you have authority to bind that organization, and all references to "you" or "your" apply to both you as an individual and the organization you represent.'}),R.jsx("p",{children:"SECTION 15 CONTAINS A WAIVER OF ANY RIGHT TO PARTICIPATE IN A CLASS ACTION AS WELL AS A MANDATORY ARBITRATION CLAUSE THAT GOVERNS RESOLUTION OF CERTAIN DISPUTES AND WAIVES YOUR RIGHT TO SUE IN COURT OR HAVE A TRIAL BY JURY."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"1. License to Use the Platform"}),R.jsx("p",{children:"Subject to these Terms, Dreamspace grants you a limited, personal, non-exclusive, non-transferable, revocable license to access and use our Platform for lawful purposes, including smart contract development and deployment, as permitted by your subscription plan. This license is revocable at our discretion."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"2. Eligibility and Compliance"}),R.jsx("h3",{children:"2.1 General Requirements"}),R.jsx("p",{children:"You represent and warrant that:"}),R.jsxs("ul",{children:[R.jsx("li",{children:"You are at least 18 years old;"}),R.jsx("li",{children:"You are not located in, or a citizen or resident of, any jurisdiction subject to comprehensive U.S. or international sanctions;"}),R.jsx("li",{children:"You are not listed on any U.S. or foreign government sanctions list (e.g., OFAC SDN List, EU Consolidated List);"}),R.jsx("li",{children:"You are not owned or controlled by any sanctioned individual or entity;"}),R.jsx("li",{children:"You have not previously been suspended or banned from using the Platform."})]}),R.jsx("h3",{children:"2.2 Restricted Territories"}),R.jsx("p",{children:"You may not use the Platform if you are in a jurisdiction where such use is prohibited by law or sanctions. We may implement technical restrictions (e.g., geoblocking, IP filtering) to enforce this. You agree not to bypass or attempt to bypass such restrictions."}),R.jsx("h3",{children:"2.3 Use on Behalf of Organizations"}),R.jsx("p",{children:"If you use the Platform on behalf of a legal entity, you confirm that you have authority to bind that entity to these Terms and that both you and the entity are jointly responsible for compliance."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"3. Account Registration and Wallet Integration"}),R.jsx("p",{children:"You may be required to connect a third-party wallet (e.g., MetaMask) to authenticate and access certain Platform features. Wallets are used for both identity and transaction signing. You are solely responsible for managing your wallet credentials and maintaining security. You understand that Dreamspace does not control or store your private keys and cannot recover lost wallet access."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"4. Intellectual Property Rights and Licensing"}),R.jsx("h3",{children:"4.1 Dreamspace IP"}),R.jsx("p",{children:"All rights, title, and interest in and to the Platform - including its architecture, design, codebase, algorithms, user interface, branding (including the Dreamspace name, logos, and domain names), documentation, and other original materials - are and will remain the exclusive property of MakeInfinite Labs and its licensors. These Terms do not grant you any rights or licenses in Dreamspace's intellectual property, except for the limited rights necessary to use the Platform in accordance with these Terms."}),R.jsx("h3",{children:"4.2 User Output and Licensing"}),R.jsx("p",{children:"Dreamspace does not claim ownership of the code, smart contracts, applications, or other outputs that you generate using the Platform. However, by using Dreamspace, you acknowledge and agree that:"}),R.jsxs("ul",{children:[R.jsxs("li",{children:["Any content created or generated within a miniapp project, including uploaded files, generated code, and chat messages that contribute to output, is automatically made public and is licensed under the",R.jsxs("a",{href:"https://www.apache.org/licenses/LICENSE-2.0",target:"_blank",rel:"noopener noreferrer",children:[" ","Apache 2.0 License"]}),"."]}),R.jsx("li",{children:"A LICENSE file applying the Apache 2.0 terms is programmatically included in every miniapp project."}),R.jsx("li",{children:"You are free to use, modify, distribute, and commercialize your output - subject to the terms of that license."})]}),R.jsx("p",{children:"You remain responsible for ensuring your output complies with applicable laws and does not infringe third-party rights."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"5. User Content and Responsibility"}),R.jsx("p",{children:'You may upload or submit content to the Platform, including source code, images, fonts, video, text prompts, metadata, or other digital assets ("User Content"). You represent and warrant that:'}),R.jsxs("ul",{children:[R.jsx("li",{children:"You have all rights, licenses, and permissions necessary to upload and use such content;"}),R.jsx("li",{children:"Your content does not violate any law, infringe any third-party rights, or contain unlawful, abusive, defamatory, obscene, or otherwise objectionable material."})]}),R.jsx("p",{children:"You retain ownership of your uploaded content, but acknowledge that any content included in a miniapp project will be made publicly accessible and licensed under Apache 2.0 by default."}),R.jsx("p",{children:"Dreamspace does not monitor content but reserves the right to remove or restrict access to any content that violates these Terms or applicable law."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"6. Public Content Visibility"}),R.jsxs("p",{children:["All miniapp projects, including uploaded assets (e.g., code, images) and chat interactions, are",R.jsx("strong",{children:" publicly accessible by design"}),". While Dreamspace does not actively publish this content, users with access to a project repository may view its full history. Do not upload confidential or sensitive information."]})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"7. Smart Contracts and User-Deployed Code"}),R.jsx("p",{children:'You are solely responsible for the development, deployment, and legality of any smart contract or decentralized application ("dApp") you build using Dreamspace. Dreamspace provides tools to assist with smart contract generation and deployment but does not deploy contracts, take custody of assets, or participate in any resulting transactions.'}),R.jsx("p",{children:"You acknowledge that:"}),R.jsxs("ul",{children:[R.jsx("li",{children:"Smart contracts and dApps created via Dreamspace are solely your property;"}),R.jsx("li",{children:"You bear full responsibility for ensuring that smart contracts and dApps comply with all applicable laws and regulations across jurisdictions;"}),R.jsx("li",{children:"You are solely responsible for auditing and testing any code you generate or import;"}),R.jsx("li",{children:"Dreamspace is not responsible for your use or misuse of blockchain applications, smart contracts, or associated content;"}),R.jsx("li",{children:"You are responsible for any blockchain fees, gas costs, or related charges incurred;"})]}),R.jsx("p",{children:"Dreamspace does not offer legal, financial, or regulatory advice."}),R.jsx("p",{children:"Dreamspace does not act as a 'publisher' or 'issuer' of any smart contracts or tokens created using the Platform."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"8. Prohibited Uses"}),R.jsx("p",{children:"You agree not to misuse the Platform or use it in any manner that violates these Terms, applicable law, or the rights of others. Without limitation, you agree not to:"}),R.jsx("h3",{children:"Use the Platform in violation of any applicable laws or regulations, including but not limited to:"}),R.jsxs("ul",{children:[R.jsx("li",{children:"Economic sanctions, export control laws, or anti-money laundering (AML) obligations;"}),R.jsx("li",{children:"Securities, financial services, or consumer protection laws;"})]}),R.jsxs("ul",{className:"prohibited-list",children:[R.jsxs("li",{children:["Use the Platform to develop or deploy smart contracts that facilitate:",R.jsxs("ul",{children:[R.jsx("li",{children:"Fraud, financial scams, market manipulation, or unlawful token issuance;"}),R.jsx("li",{children:"Unregistered securities offerings or unlicensed financial services;"}),R.jsx("li",{children:"Money laundering, terrorist financing, or other illicit financial activity"})]})]}),R.jsx("li",{children:"Upload or deploy code that includes viruses, worms, Trojan horses, corrupted files, or other malicious software;"}),R.jsx("li",{children:"Attempt to probe, scan, penetrate, or test the vulnerability of the Platform, or circumvent any security or authentication measures;"}),R.jsx("li",{children:"Use the Platform to interfere with or disrupt networks, systems, or other users;"}),R.jsx("li",{children:"Access or attempt to access accounts, wallets, systems, or data without proper authorization;"}),R.jsx("li",{children:"Bypass, circumvent, or attempt to disable any technical restrictions, rate limits, or access controls."}),R.jsx("li",{children:"Upload, store, or transmit content that infringes or misappropriates any intellectual property or proprietary rights;"}),R.jsx("li",{children:"Submit or deploy content that is unlawful, abusive, harassing, defamatory, hateful, violent, obscene, or otherwise offensive;"}),R.jsx("li",{children:"Upload or deploy content that promotes discrimination, hate speech, or incites violence;"}),R.jsx("li",{children:"Misrepresent your identity, affiliation, or authorization to use the Platform;"}),R.jsx("li",{children:"Create or use multiple accounts to evade limitations, blocks, or suspensions;"}),R.jsx("li",{children:"Access or use the Platform if you are located in, or a citizen or resident of, a country or territory subject to comprehensive U.S. or international sanctions;"}),R.jsx("li",{children:"Use the Platform on behalf of a sanctioned individual or entity."})]}),R.jsx("p",{children:R.jsx("strong",{children:"Dreamspace reserves the right to investigate and take appropriate action — including immediate suspension, termination, or legal action — in response to any suspected violation of this section."})})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"9. Services and Pricing"}),R.jsx("p",{children:"Access to certain features of the Platform may require a paid subscription. Details regarding available plans, features, pricing, and billing cycles are published on our website and may be updated from time to time."}),R.jsxs("ul",{children:[R.jsxs("li",{children:[R.jsx("strong",{children:"Recurring Billing"}),": All paid subscriptions are billed on a recurring monthly basis unless explicitly canceled by the user prior to renewal."]}),R.jsxs("li",{children:[R.jsx("strong",{children:"Pricing Changes"}),": Dreamspace reserves the right to modify subscription tiers, features, or pricing at any time. Changes will be effective upon notice, which may be provided through the Platform, by email, or by other reasonable means."]}),R.jsxs("li",{children:[R.jsx("strong",{children:"No Proration"}),": Adjustments to plan tiers (upgrades or downgrades) will take effect in the following billing cycle unless otherwise stated. No partial refunds or credits will be issued for unused time within a billing cycle."]})]})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"10. Payment and Refund Policy"}),R.jsxs("ul",{children:[R.jsxs("li",{children:[R.jsx("strong",{children:"Final Sale"}),": All subscription fees and associated charges are final and non-refundable, except in cases of verified billing errors (e.g., duplicate charges or unauthorized transactions)."]}),R.jsxs("li",{children:[R.jsx("strong",{children:"Digital Nature"}),": Because access to Dreamspace services and tools begins immediately upon purchase, we do not offer refunds for any reason other than billing errors."]}),R.jsxs("li",{children:[R.jsx("strong",{children:"Payment Authorization"}),": By subscribing, you authorize Dreamspace (or its third-party payment processor) to charge your designated payment method on a recurring basis."]})]}),R.jsx("h3",{children:"Cancellation Policy"}),R.jsxs("ul",{children:[R.jsxs("li",{children:[R.jsx("strong",{children:"User-Initiated Cancellation"}),": You may cancel your subscription at any time via your account settings. Cancellation will take effect at the end of your current billing period."]}),R.jsxs("li",{children:[R.jsx("strong",{children:"No Refund for Cancellation"}),": Canceling your subscription does not entitle you to a refund or credit for any portion of the billing period already elapsed."]}),R.jsxs("li",{children:[R.jsx("strong",{children:"Expiration of Credits"}),": Any unused credits or allocations associated with a subscription plan will expire at the conclusion of the billing period and will not carry over."]})]})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"11. Disclaimer of Warranties"}),R.jsx("p",{className:"uppercase",children:'THE PLATFORM, INCLUDING BUT NOT LIMITED TO ALL CONTENT, FEATURES, TOOLS, TEMPLATES, SMART CONTRACT GENERATORS, AI-GENERATED OUTPUT, AND DEPLOYMENT FUNCTIONALITY, IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS, WITHOUT WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY.'}),R.jsx("p",{className:"uppercase",children:"TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, DREAMSPACE AND ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES, INCLUDING, BUT NOT LIMITED TO:"}),R.jsxs("ul",{children:[R.jsx("li",{children:"WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT;"}),R.jsx("li",{children:"WARRANTIES REGARDING THE ACCURACY, SECURITY, OR RELIABILITY OF CODE, SMART CONTRACTS, OR DEPLOYED OUTPUT;"}),R.jsx("li",{children:"WARRANTIES THAT THE PLATFORM OR GENERATED OUTPUT IS ERROR-FREE, SECURE, FREE OF MALWARE OR VULNERABILITIES, OR THAT DEPLOYMENTS WILL FUNCTION AS INTENDED;"}),R.jsx("li",{children:"WARRANTIES THAT ANY SMART CONTRACT, APPLICATION, OR DEPLOYED MATERIALS WILL BE COMPLIANT WITH ANY LAWS, REGULATIONS, OR INDUSTRY STANDARDS IN ANY JURISDICTION."})]}),R.jsx("p",{className:"uppercase",children:"YOU ACKNOWLEDGE THAT YOU ARE SOLELY RESPONSIBLE FOR REVIEWING, AUDITING, TESTING, AND VALIDATING ANY CODE OR SMART CONTRACTS GENERATED - INCLUDING THOSE GENERATED BY AI - DEPLOYED THROUGH THE PLATFORM. DREAMSPACE DOES NOT PROVIDE LEGAL, FINANCIAL, TAX, OR SECURITY AUDIT SERVICES. USE OF ANY GENERATED CODE IS AT YOUR OWN RISK"})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"12. Limitation of Liability"}),R.jsx("p",{className:"uppercase",children:"TO THE FULLEST EXTENT PERMITTED UNDER APPLICABLE LAW, IN NO EVENT SHALL DREAMSPACE, MAKEINFINITE LABS, OR THEIR RESPECTIVE OFFICERS, DIRECTORS, EMPLOYEES, AGENTS, AFFILIATES, SERVICE PROVIDERS, OR LICENSORS BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, EXEMPLARY, OR PUNITIVE DAMAGES, INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS, LOSS OF DATA, SECURITY BREACHES, SMART CONTRACT FAILURES, BLOCKCHAIN FEES OR GAS COSTS, DEPLOYMENT ERRORS, OR BUSINESS INTERRUPTION, ARISING OUT OF OR RELATED TO YOUR USE OF OR INABILITY TO USE THE PLATFORM - EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES."}),R.jsx("p",{className:"uppercase",children:"WITHOUT LIMITING THE FOREGOING, IN NO EVENT SHALL DREAMSPACE'S TOTAL CUMULATIVE LIABILITY TO YOU FOR ALL CLAIMS ARISING OUT OF OR RELATED TO THESE TERMS OR THE PLATFORM EXCEED THE GREATER OF (I) THE FEES PAID BY YOU TO DREAMSPACE IN THE TWELVE (12) MONTHS IMMEDIATELY PRECEDING THE EVENT GIVING RISE TO THE CLAIM."}),R.jsx("p",{className:"uppercase",children:"THE LIMITATIONS OF THIS SECTION SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"13. Blockchain-Specific Risks"}),R.jsx("p",{className:"uppercase",children:"YOU UNDERSTAND AND ACKNOWLEDGE THAT DEPLOYMENTS TO PUBLIC BLOCKCHAINS ARE INHERENTLY RISKY AND IRREVERSIBLE. SMART CONTRACTS, ONCE DEPLOYED, MAY CONTAIN SECURITY FLAWS, VULNERABILITIES, OR ECONOMIC EXPLOITS THAT CANNOT BE UNDONE OR PATCHED."}),R.jsx("p",{className:"uppercase",children:"DREAMSPACE DOES NOT CONTROL THE OPERATION OF ANY BLOCKCHAIN NETWORK, NOR DOES IT GUARANTEE THE FUNCTIONALITY OR SUCCESS OF ANY SMART CONTRACT, TOKEN, OR APPLICATION DEPLOYED THROUGH THE PLATFORM. YOU BEAR FULL RESPONSIBILITY FOR ANY LOSSES INCURRED DUE TO CODE ERRORS, GAS FEES, TRANSACTION DELAYS, FORKS, NETWORK FAILURES, OR THIRD-PARTY ATTACKS."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"14. Indemnification"}),R.jsx("p",{children:`To the maximum extent permitted by applicable law, you agree to fully indemnify, defend, and hold harmless Dreamspace, MakeInfinite Labs, and their respective affiliates, officers, directors, employees, contractors, agents, licensors, service providers, successors, and assigns (collectively, the "Indemnified Parties") from and against any and all actual or alleged claims, demands, actions, proceedings, investigations, damages, losses, liabilities, judgments, settlements, costs, and expenses (including reasonable attorneys' fees and court costs) arising out of or related to:`}),R.jsxs("ul",{children:[R.jsx("li",{children:"Your use of or access to the Platform, including any applications, smart contracts, or other code created, generated, imported, uploaded, or deployed through it;"}),R.jsx("li",{children:"Any actual or alleged violation by you of these Terms or any applicable law, regulation, or third-party rights (including intellectual property, data protection, financial, or blockchain-related laws);"}),R.jsx("li",{children:"Any content, data, code, or smart contract you provide, deploy, or distribute using the Platform;"}),R.jsx("li",{children:"Any economic loss, legal exposure, or reputational damage caused by your deployed contracts, applications, tokens, or interactions with blockchain protocols or third parties;"}),R.jsx("li",{children:"Any unauthorized or malicious use of the Platform or related services via your account or credentials, whether or not authorized by you."})]}),R.jsx("p",{children:"Dreamspace reserves the right, at its sole discretion and expense, to assume the exclusive defense and control of any matter otherwise subject to indemnification by you. You agree to cooperate fully in the defense of any such claim and not to settle any claim without Dreamspace's prior written consent. Your indemnification obligations will survive termination or expiration of these Terms and your use of the Platform"})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"15. Dispute Resolution and Arbitration"}),R.jsx("p",{children:"Please read this section carefully. It requires binding arbitration of most disputes and limits the ways in which relief may be sought. You may opt out of arbitration as explained below. This section prohibits class or representative actions or arbitrations."}),R.jsx("h3",{children:"15.1 No Representative Actions"}),R.jsx("p",{children:"You and Dreamspace agree that any dispute, claim, or controversy arising out of or relating to these Terms or the Platform will be resolved solely on an individual basis. Neither party shall bring or participate in any class, collective, consolidated, or representative proceeding or arbitration."}),R.jsx("h3",{children:"15.2 Arbitration of Disputes"}),R.jsx("p",{children:"Except for (a) small claims disputes, or (b) claims in which Dreamspace seeks injunctive or other equitable relief for the alleged unlawful use of intellectual property, unauthorized access to or misuse of the Platform, unauthorized deployment of smart contracts, violation of security protocols, or any other conduct that threatens the integrity, availability, or lawful operation of the Platform, you and Dreamspace waive the right to a jury trial and to resolve disputes in court. All other claims are subject to binding arbitration as described below."}),R.jsxs("p",{children:["Before initiating arbitration, both parties agree to attempt informal resolution. You must send a written notice of your claim to"," ",R.jsx("a",{href:"mailto:support@makeinfinite.com",children:"support@makeinfinite.com"})," that includes:"]}),R.jsxs("ul",{children:[R.jsx("li",{children:"Your name and contact information,"}),R.jsx("li",{children:"A clear description of your claim, and"}),R.jsx("li",{children:"The relief you are seeking."})]}),R.jsx("p",{children:"If the dispute is not resolved within thirty (30) days of receiving the notice, either party may initiate binding arbitration administered by JAMS or, under the limited circumstances set forth above, in court:"}),R.jsxs("ul",{children:[R.jsxs("li",{children:["For U.S. residents: under JAMS Consumer Arbitration Rules (See JAMS Consumer Rules,",R.jsxs("a",{href:"https://www.jamsadr.com/consumer-minimum-standards/",target:"_blank",rel:"noopener noreferrer",children:[" ","https://www.jamsadr.com/consumer-minimum-standards/"]}),")"]}),R.jsx("li",{children:"For non-U.S. residents: under JAMS International Arbitration Rules (or equivalent rules as applicable)."})]}),R.jsx("p",{children:"Location of arbitration:"}),R.jsxs("ul",{children:[R.jsx("li",{children:"U.S. residents: In your county of residence or remotely, by mutual agreement."}),R.jsx("li",{children:"Non-U.S. residents: Remotely via videoconference or in a mutually agreed jurisdiction."})]}),R.jsxs("p",{children:["The arbitration will be conducted in English before a single arbitrator. The JAMS rules are incorporated by reference and available at:",R.jsxs("a",{href:"https://www.jamsadr.com/rules-download",target:"_blank",rel:"noopener noreferrer",children:[" ","https://www.jamsadr.com/rules-download"]}),". You either acknowledge and agree that you have read and understood the JAMS Rules or waive your opportunity to read the JAMS Rules and waive any claim that the JAMS Rules are unfair or should not apply for any reason."]}),R.jsx("h3",{children:"15.3 Arbitration Fees"}),R.jsxs("ul",{children:[R.jsx("li",{children:"For claims initiated by you, you agree to pay the first $250 of the filing fee; Dreamspace will cover the remainder."}),R.jsx("li",{children:"For claims initiated by Dreamspace, we will pay all arbitration fees."}),R.jsx("li",{children:"Each party is responsible for its own attorneys' fees and costs unless the arbitrator determines otherwise."})]}),R.jsx("h3",{children:"15.4 Batch Arbitration"}),R.jsx("p",{children:"If 100 or more similar arbitration claims are filed against Dreamspace within a 30-day period by or with the assistance of the same firm(s) or organization(s), claims will be grouped into batches of up to 100 claims and processed together. Each batch will:"}),R.jsxs("ul",{children:[R.jsx("li",{children:"Be assigned one arbitrator,"}),R.jsx("li",{children:"Follow a consolidated procedural calendar, and"}),R.jsx("li",{children:"Result in a single decision and award."})]}),R.jsx("p",{children:"This is not a class arbitration. Disputes about batching will be resolved by a neutral administrative arbitrator appointed by JAMS, whose fees will be paid by Dreamspace."}),R.jsx("h3",{children:"15.5 FAA and Governing Law"}),R.jsx("p",{children:`You and Dreamspace agree that these Terms affect interstate commerce and that the enforceability of this Section 15 will be substantively and procedurally governed by the Federal Arbitration Act, 9 U.S.C. § 1, et seq. (the "FAA"), to the maximum extent permitted by applicable law. As specified by the FAA, these Terms and the JAMS Rules, the arbitrator will have exclusive authority to make all procedural and substantive decisions regarding any dispute and to grant any remedy that would otherwise be available in court, including the power to determine the question of arbitrability. The arbitrator may conduct only an individual arbitration and may not consolidate more than one individual's claims, preside over any type of class or representative proceeding or preside over any proceeding involving more than one individual.`}),R.jsx("h3",{children:"15.6 Confidentiality"}),R.jsx("p",{children:"All arbitration proceedings, documents, and awards shall remain confidential unless required by law or necessary to enforce an arbitration award. The arbitrator may impose further confidentiality measures as needed."}),R.jsx("h3",{children:"15.7 Time Limitation"}),R.jsx("p",{children:"Any claim under these Terms must be filed within one (1) year of when the claim arose, or it will be permanently barred."}),R.jsx("h3",{children:"15.8 Opt-Out of Arbitration"}),R.jsxs("p",{children:["You may opt out of arbitration within thirty (30) days of first accepting these Terms by emailing",R.jsx("a",{href:"mailto:support@makeinfinite.com",children:" support@makeinfinite.com"})," with your full name, physical address, and a clear statement that you are opting out. If you opt out, Section 16 (Governing Law and Jurisdiction) will apply to dispute resolution."]}),R.jsx("h3",{children:"15.9 Severability"}),R.jsx("p",{children:"If any portion of this Section 15 is found to be unenforceable or unlawful for any reason:"}),R.jsxs("ul",{children:[R.jsx("li",{children:"(a) the unenforceable provision shall be severed from these Terms;"}),R.jsx("li",{children:"(b) such severance shall not affect the remainder of Section 15 or the enforceability of individual arbitration for any remaining claims; and"}),R.jsx("li",{children:"(c) to the extent any claims must proceed on a class, collective, or representative basis, those claims shall be litigated in a court of competent jurisdiction and not in arbitration. The parties agree that litigation of such claims shall be stayed pending the outcome of any related individual arbitration."})]}),R.jsx("p",{children:"Furthermore, if any part of this Section 15 is found to prohibit an individual claim for public injunctive relief, that provision shall have no effect to the extent such relief is legally required to be available outside of arbitration. The remainder of this Section shall remain in full force and effect."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"16. Governing Law and Jurisdiction"}),R.jsx("p",{children:"These Terms and any dispute arising out of or related to them will be governed by and construed in accordance with the laws of the State of Delaware, without regard to its conflict of law principles."}),R.jsx("p",{children:"Subject to Section 15 (Arbitration), you agree that any legal proceeding not resolved through arbitration must be brought exclusively in the state or federal courts located in Orange County, California, or New Castle County, Delaware, and you consent to the personal jurisdiction of those courts."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"17. Changes to Terms"}),R.jsx("p",{children:"We reserve the right, at our sole discretion, to modify, amend, or replace these Terms at any time. Unless otherwise stated, updated Terms become effective upon posting."}),R.jsx("p",{children:"Your continued use of the Platform after the effective date of any changes constitutes your acceptance of the revised Terms. If you do not agree to the updated Terms, you must stop using the Platform immediately. It is your responsibility to review these Terms periodically for changes."})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"18. Contact"}),R.jsx("p",{children:"For inquiries related to these Terms, contact:"}),R.jsxs("p",{children:[R.jsx("strong",{children:"Email:"})," ",R.jsx("a",{href:"mailto:support@makeinfinite.com",children:"support@makeinfinite.com"})]})]}),R.jsxs("section",{children:[R.jsx("h2",{children:"19. DMCA Notice and Copyright Policy"}),R.jsxs("p",{children:["Dreamspace respects intellectual property rights and complies with the Digital Millennium Copyright Act (DMCA). To report any copyright infringement, contact",R.jsx("a",{href:"mailto:support@makeinfinite.com",children:" support@makeinfinite.com"})," with:"]}),R.jsxs("ul",{children:[R.jsx("li",{children:"Your contact information."}),R.jsx("li",{children:"Identification of the copyrighted work."}),R.jsx("li",{children:"Identification of allegedly infringing material."}),R.jsx("li",{children:"A good-faith statement of infringement."}),R.jsx("li",{children:"A statement of accuracy under penalty of perjury."})]}),R.jsxs("p",{className:"copyright",children:["© ",new Date().getFullYear()," MakeInfinite Labs"]})]})]})})})},{MI_API_BASE_URL:Quc,MI_BASE_WS_URL:quc,API_URL:Yuc,MI_API_PROXY_BASE_URL:Juc,GW_PROXY_API_URL_FOR_MI:Zuc}=al(),Xuc=e=>{const{onAuthButtonClick:t,isLoggedIn:r,loggedInUserId:a,onLogout:n,userDetail:o,subscriptionData:s,children:l,navigate:u}=e,c=$n(),d=Eh(),p=BCi(jja),h={API_BASE_URL:Quc,WS_BASE_URL:quc,GW_BASE_URL:Yuc,GW_PROXY_URL:Zuc,PROXY_API_BASE_URL:Juc},f=_r.merge({},Or,p);return R.jsx(RCi,{theme:f,children:R.jsxs(TCi,{theme:f,children:[R.jsx(j7i,{}),R.jsx(OQ,{children:R.jsxs(jva,{config:h,children:[R.jsxs(lt,{sx:{display:"flex",flexDirection:"row",width:"100%",height:"100vh"},children:[R.jsx(lt,{sx:{width:"calc(100% - 54px)",overflowX:"auto"},children:l}),R.jsx(lt,{sx:{position:"fixed",top:0,bottom:0,right:0,overflow:"hidden",zIndex:1200},children:R.jsx(ZWs,{onAuthButtonClick:t,navigate:u,onNavClick:m=>{m===fr.dataStudio?c.push(ma.newQuery()):c.push(m)},isLoggedIn:r,onLogout:m=>{n(m,()=>{d.pathname===fr.landingPage?window.location.reload():c.push(fr.landingPage)})},loggedInUserId:a,subscriptionData:s,userDetail:o})})]}),R.jsx(XWs,{})]})})]})})},_uc=({onClose:e})=>R.jsx(Hc,{visible:!0,isHeader:!1,maxWidth:"xs",className:"missingEmailDialogue",children:R.jsxs(d$e,{children:[R.jsx("h4",{className:"title",children:ye.VERIFY_EMAIL_PROMPT}),R.jsxs("ul",{children:[R.jsx("li",{children:R.jsx("span",{children:ye.VERIFY_EMAIL_INFO_01})}),R.jsx("li",{children:R.jsx("span",{children:ye.VERIFY_EMAIL_INFO_02})})]}),R.jsx("div",{className:"btnGroup",children:R.jsx(yr,{variant:"contained",onClick:e,style:{backgroundColor:"rgba(94, 53, 177, 0.8)",color:"#ffffff"},children:ye.VERIFY_EMAIL_CONFIRMATION})})]})}),$uc=()=>{const e=j.useRef(null),t=fn(n=>n.isLoggedIn),r=fn(n=>n.userId),{syncStore:a}=Ld();j.useEffect(()=>{var o;if(console.log("loading initial application data",{isLoggedIn:t}),(o=e.current)==null||o.abort(),e.current=null,!t){Promise.allSettled([nFt({})]);return}const n=new AbortController;return e.current=n,Promise.allSettled([jCi(),D7t(),ICi(r??""),PCi(),nFt({}),NCi({}),a()]),()=>n.abort()},[t])},ecc=["0XDESIGNER","AVAIL","AVAILTEAM","AVAX","BASE","BASETEAM","BONDEX","BUILD","CALDERA","CHAINLINK","EARLY","EMILY","NESA","POOL","PORT3","SOPHIA","SUI","SXTCOMMUNITY","VIBECODER","ZKSYNC"],MSn=j.createContext(void 0),{ENABLE_JOIN_CODES:Vta}=al(),tcc=localStorage.getItem("alphaJoinCode"),rcc=({children:e})=>{const[t,r]=j.useState(!!tcc||!Vta),a=n=>!Vta||ecc.includes(n.toUpperCase())?(r(!0),localStorage.setItem("alphaJoinCode",n),!0):!1;return R.jsx(MSn.Provider,{value:{isValid:t,validate:a},children:e})},acc=()=>{const e=j.useContext(MSn);if(!e)throw new Error("useAlphaCode must be used within an AlphaCodeProvider");return e},ncc="/assets/panel-bg-c4c3f71d.svg",icc=DS("div")(()=>({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.8)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:2e3,pointerEvents:"auto"})),occ=DS(jh)(()=>({display:"flex",flexDirection:"column",backgroundColor:"rgba(255, 255, 255, 0.11)",backdropFilter:"blur(20px)",borderRadius:"12px",border:"1px solid rgba(99, 53, 112)",backgroundImage:`
|
|
47563
47563
|
linear-gradient(rgba(0, 0, 0.4, 0.5),
|
|
47564
47564
|
rgba(0, 0, 0.4, 0.5)), url(${ncc})
|
|
47565
|
-
`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",maxWidth:"1100px",width:"50%",padding:"15px",zIndex:2001,pointerEvents:"auto",position:"relative"})),scc=DS(lt)(()=>({padding:"5px 5px",margin:"5px",borderBottom:"1px solid rgba(255, 255, 255, 0.37)"}));DS(lt)(()=>({padding:"10px 15px",backgroundColor:"rgba(217, 217, 217, 0.04)"}));const lcc=DS("div")(()=>({color:"rgba(255, 255, 255, 1)",fontSize:"18px",fontWeight:500})),ucc=DS(lt)(()=>({padding:"5px 5px",display:"flex",flexDirection:"column",width:"100%",flex:1,backgroundColor:"transparent",minHeight:0})),ccc=DS("div")(()=>({color:"rgba(255, 255, 255, 0.75)",marginBottom:"2px",fontSize:"12px",fontWeight:500})),dcc=DS("input")(()=>({padding:"2px 8px",marginBottom:"8px",minHeight:"40px",color:"rgba(255, 255, 255, 0.75)",fontSize:"16px",backgroundColor:"rgba(217, 217, 217, 0.04)",backdropFilter:"blur(20px)",borderRadius:"6px"})),pcc=DS(Fl)(()=>({minWidth:"144px",minHeight:"30px",padding:"11px 22px",lineHeight:"normal",fontWeight:"400",borderRadius:"9px","&.primary":{backgroundColor:"#421ea1",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"#52437c",color:"#737373",border:"1px solid #52437c"},"&:disabled":{backgroundColor:"#2d1570",color:"#595959",border:"1px solid #2d1570"}},"&.secondary":{backgroundColor:"rgba(255, 255, 255, 0.11)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)"},"&:disabled":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:"#595959",border:"1px solid rgba(255, 255, 255, 0.06)"}}})),hcc=()=>{const{isValid:e,validate:t}=acc(),[r,a]=j.useState(""),[n,o]=j.useState(!1),s=l=>{l.preventDefault(),t(r)||o(!0)};return e?R.jsx(R.Fragment,{}):cs.createPortal(R.jsx(R.Fragment,{children:R.jsx(icc,{sx:{zIndex:2e3},children:R.jsxs(occ,{sx:{zIndex:2e3},children:[R.jsx(scc,{children:R.jsx(lcc,{children:"Welcome to Dreamspace"})}),R.jsxs(ucc,{sx:{position:"relative",color:"white"},children:[R.jsx(Da,{sx:{margin:"5px 10px"},children:"Not everyone was meant to find this page. But you did. Welcome to the exclusive alpha version of Dreamspace. The first vibe coding canvas for crypto's creatives."}),R.jsx(Da,{sx:{margin:"5px 10px"},children:"You know what to do."}),R.jsx(ccc,{sx:{mt:"30px",ml:"5px"},children:"Prove you belong:"}),R.jsx(dcc,{type:"text",name:"alpha code input",value:r,onChange:l=>a(l.target.value),placeholder:"enter code",sx:{zIndex:2e3}}),n&&R.jsx("div",{style:{color:"#ff4d4f",fontSize:"12px",marginBottom:"2px",marginLeft:"5px"},children:"Invalid alpha code"}),R.jsx(pcc,{className:"secondary",onClick:s,disabled:!1,sx:{mt:"20px"},children:"Join Alpha"})]})]})})}),document.body)},fcc=()=>{const e=y7t(),t=daa(),[r,a]=j.useState((e==null?void 0:e.length)>0||t),[n,o]=j.useState(!1);return R.jsxs(JB,{className:"biscuitsBlock",children:[R.jsxs("div",{className:"cardHead",children:[r||n?R.jsx("div",{}):ye.SAVE_BISCUIT,R.jsxs("div",{className:"headRight",children:[!n&&R.jsx(yr,{variant:"contained",color:"secondary",onClick:()=>a(!r),disabled:!(e!=null&&e.length)&&!t,children:r?ye.CREATE_BISCUIT:ye.SHOW_BISCUIT}),R.jsx(wa,{label:"Additional Information",children:R.jsx(ra,{onClick:()=>o(s=>!s),children:n?R.jsx(Ks,{}):R.jsx(ex,{})})})]})]}),R.jsx(el,{in:n,timeout:"auto",unmountOnExit:!0,children:R.jsx("div",{className:"infoText",children:R.jsx("p",{style:{fontSize:"14px",color:"#999"},children:paa.shortText})})}),R.jsx(el,{in:!n&&!r,timeout:"auto",unmountOnExit:!0,children:R.jsx(ykn,{})}),R.jsx(el,{in:!n&&r,timeout:"auto",unmountOnExit:!0,children:R.jsx(vkn,{setShowBiscuit:a,loading:t,biscuitContent:e})})]})},gcc=({visible:e,onClose:t})=>fn(a=>a.isLoggedIn)?R.jsx(Hc,{title:ye.BISCUITS,visible:e,onClose:t,maxWidth:"md",children:R.jsxs(rs,{container:!0,spacing:2,children:[R.jsx(rs,{item:!0,xs:12,children:R.jsx(Da,{variant:"body1",sx:{fontSize:"14px",color:"#999"},children:ye.PERMISSIONS_BISCUITS_DESC})}),R.jsx(rs,{item:!0,xs:12,children:R.jsx(fcc,{})})]})}):(Js(!0),null),{GA_MEASUREMENT_ID:mcc,ENABLE_JOIN_CODES:Acc}=al();LCi.initialize(mcc);const OSt=Re.lazy(()=>yse(()=>import("./QueryEditorWrapper-3ad446b9.js"),["assets/QueryEditorWrapper-3ad446b9.js","assets/vendor-charts-0df127d0.js","assets/vendor-editor-ed23b824.js","assets/vendor-three-f79fdf23.js"])),xcc=Re.lazy(()=>yse(()=>import("./ErdWrapper-c7be9ca2.js"),["assets/ErdWrapper-c7be9ca2.js","assets/vendor-charts-0df127d0.js","assets/vendor-editor-ed23b824.js","assets/vendor-three-f79fdf23.js"])),zSt=Re.lazy(()=>yse(()=>import("./Queries-dff9cd99.js"),["assets/Queries-dff9cd99.js","assets/vendor-charts-0df127d0.js","assets/vendor-editor-ed23b824.js","assets/vendor-three-f79fdf23.js","assets/Queries-9ad18f9b.css"])),ycc=["sxt-mi-git-prod.space-and-time.workers.dev","sxt-mi-git-staging.space-and-time.workers.dev","git-infinite-staging.space-and-time.workers.dev","git-infinite-production.space-and-time.workers.dev"];S5i.register({request:(e,t)=>{const r=e.toString();if(ycc.some(n=>r.includes(n)))return[e,t];const a={...t};return e&&typeof e=="string"&&e.includes("coinbase")?(a.headers={"Content-Type":"application/json"},[e,a]):[e,a]},requestError:e=>e,response:e=>e,responseError:e=>(console.log(e),Promise.reject(e))});function vcc(){$uc();const e=$n(),{config:t}=a$e(),r=WC(),{subscriptionDetails:a}=Ld(),n=OCi(),o=fn(F=>F.isLoggedIn),s=fn(F=>F.userId),l=zCi();if(!t)return null;const u=HCi(),c=v7t(),d=()=>Acc?!localStorage.getItem("alphaJoinCode"):!1,p=b7t(),[h,f]=j.useState(!1),[m]=j.useState(null),x=j.useCallback((F,B=!1)=>{switch(F){case"INDEX_CONTRACT":e.push(ma.getDataFromChain(""));break;case"DATA_STUDIO":default:B?window.open(ma.newQuery(),"_blank"):e.push(ma.newQuery());break}},[e]);j.useEffect(()=>{window.ethereum&&(window.ethereum.removeListener("accountsChanged",()=>{}),window.ethereum.removeListener("chainChanged",()=>{}))},[]);const y=Pw(F=>F.setUserEmail),v=Pw(F=>F.setIsEmailVerified),b=Pw(F=>F.showVerifyEmailDialog),k=Pw(F=>F.setShowVerifyEmailDialog);j.useEffect(()=>{(async()=>{var T,I;const B=await cu.getEmail();B.status===200&&(y(((T=B==null?void 0:B.data)==null?void 0:T.emailAddress)??null),v(((I=B==null?void 0:B.data)==null?void 0:I.emailVerified)??!1))})()},[o]);const S=[{path:"/start",exact:!0,private:!1,header:!1,render:()=>R.jsx(vzr,{navigate:x,isLoggedIn:o,onAuthButtonClick:()=>Js(!0),onStartCreatingClick:()=>vw.startCreatingClick(),onBlankProjectClick:()=>vw.blankProjectClick(),customHeading:"Build Your Dream App with AI",customSubHeading:"Create stunning websites, apps, and smart contracts in minutes. No coding required."})},{path:fr.landingPage,exact:!0,private:!1,header:!1,render:()=>R.jsx(vzr,{navigate:x,isLoggedIn:o,onAuthButtonClick:()=>Js(!0),onStartCreatingClick:()=>vw.startCreatingClick(),onBlankProjectClick:()=>vw.blankProjectClick()})},{path:`${fr.myApps}/:projectId/:pagePath`,exact:!0,private:!0,header:!1,render:()=>R.jsx(lUs,{navigate:x,subscriptionData:a??{plan:{chargeType:null,planType:null},subscriptionId:null},onChatBotPinnedClicked:()=>{}})},{path:`${fr.myApps}/:projectId`,exact:!0,private:!0,header:!1,render:({match:F})=>R.jsx(AGe,{to:`${fr.myApps}/${F.params.projectId}/home`})},{path:fr.myApps,exact:!0,private:!0,header:!1,render:()=>R.jsx(OWs,{navigate:x,isLoggedIn:o,onAuthButtonClick:()=>Js(!0)})},{path:fr.dataStudio,exact:!0,private:!1,header:!0,component:()=>R.jsx(AGe,{to:ma.newQuery()})},{path:fr.newQuery,exact:!0,private:!1,header:!0,component:OSt},{path:fr.erd,exact:!0,private:!1,header:!0,component:xcc},{path:fr.savedQuery,exact:!0,private:!1,header:!0,component:OSt},{path:fr.publicQuerySlug,exact:!0,private:!1,header:!0,component:OSt},{path:fr.newChart,exact:!0,private:!0,header:!0,component:aUr},{path:fr.updateChart,exact:!0,private:!0,header:!1,component:aUr},{path:fr.charts,exact:!0,private:!0,header:!0,component:cBl},{path:fr.dashboards,exact:!0,private:!1,header:!0,component:tIl},{path:fr.myQueries,exact:!0,private:!0,header:!0,component:()=>R.jsx(zSt,{tab:xre.myQueries})},{path:fr.queryHistory,exact:!0,private:!0,header:!0,component:()=>R.jsx(zSt,{tab:xre.queryHistory})},{path:fr.myOrgQuery,exact:!0,private:!1,header:!0,component:()=>R.jsx(zSt,{tab:xre.myOrgQuery})},{path:fr.newDashboard,exact:!0,private:!0,header:!0,component:sWr},{path:fr.viewDashboard,exact:!0,private:!1,header:!0,component:lWr},{path:fr.publicDashboard,exact:!0,private:!1,header:!0,component:F=>R.jsx(lWr,{...F,isPublic:!0})},{path:fr.updateDashboard,exact:!0,private:!0,header:!0,component:sWr},{path:fr.sendData,exact:!0,private:!0,header:!0,component:Glc},{path:fr.getDataFromChain,exact:!0,private:!0,header:!0,component:toc},{path:fr.views,exact:!0,private:!0,header:!0,component:Buc},{path:`${fr.settings}/:subPath*`,exact:!0,private:!0,header:!0,component:ktc},{path:fr.twitterCallback,exact:!0,private:!1,header:!1,component:Yjl},{path:fr.emailVerification,exact:!0,private:!1,header:!0,component:Nuc},{path:fr.resetPassword,exact:!0,private:!1,header:!0,component:Vuc},{path:fr.terms,exact:!0,private:!1,header:!0,component:Kuc}];return R.jsx(OQ,{children:R.jsxs(rcc,{children:[R.jsxs(Xuc,{onAuthButtonClick:()=>Js(!0),navigate:x,isLoggedIn:o,loggedInUserId:s??"",onLogout:(F=!0,B)=>{try{w7t(),GCi(),Js(!1),Y2e(),sessionStorage.removeItem("sessionId")}finally{dc.logout()}F&&B()},subscriptionData:a??{plan:{chargeType:null,planType:null},subscriptionId:null},userDetail:r,children:[u&&R.jsx("div",{className:"fixedLoader",children:R.jsx(Mm,{})}),R.jsx(j.Suspense,{fallback:R.jsx(Mm,{}),children:R.jsxs(gqe,{children:[S.map(F=>{const B=F.private?TIl:g4;return R.jsx(B,{exact:F.exact,path:F.path,render:T=>{const I=F.render?F.render(T):F.component?Re.createElement(F.component,T):null;return F.header?R.jsxs(R.Fragment,{children:[R.jsx(RIl,{}),I]}):I}},F.path)}),R.jsx(g4,{render:F=>R.jsx(OQ,{...F,children:R.jsx(cce,{errorPageType:"404"})})})]})}),l&&R.jsx(gcc,{visible:l,onClose:()=>HPt(!1)}),!d()&&p&&R.jsx(KKs,{open:p,setShowLoginDrawer:Js,isSubmit:h,setIsSubmit:f,redirectOnSuccess:m}),n&&R.jsx(Uuc,{onClose:()=>VCi(!1)}),o&&b&&R.jsx(_uc,{onClose:()=>k(!1)})]}),R.jsx(hcc,{}),R.jsx(UCi,{}),(c==null?void 0:c.type)==="error"&&(c!=null&&c.title)?R.jsx(oIl,{}):R.jsx(lIl,{})]})})}async function bcc(e){const t=!!e.match("ignite"),{data:r,error:a}=await cu.get(e,void 0,t);if(a)throw a;return r}const{GOOGLE_CLIENT_ID:Dcc,STRIPE_CLIENT_ID:wcc,SENTRY_DSN:Ccc,CLARITY_PROJECT_ID:Ecc}=al();WCi.init(Ecc);A5i({dsn:Ccc,integrations:[new _qe,new x5i],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,tracesSampleRate:1});const kcc=wEi(`${wcc}`);window.localforage=KCi;QCi();Ld.getState().syncStore();cs.render(R.jsx(rna,{stripe:kcc,children:R.jsx(qCi,{value:{fetcher:bcc},children:R.jsx(v5i,{clientId:Dcc,children:R.jsx(OPt,{children:R.jsx(vcc,{})})})})}),document.getElementById("root"));export{Msc as $,Hfc as A,yr as B,Zfc as C,Nfc as D,Pfc as E,Lfc as F,aQt as G,Xfc as H,ra as I,Yfc as J,uBl as K,Tu as L,Wun as M,un as N,Mm as O,ZB as P,Rlc as Q,Jy as R,tKt as S,Xf as T,X4 as U,fg as V,Sae as W,Ks as X,LQ as Y,wb as Z,Oun as _,Lsc as a,Tta as a0,Wfc as a1,Qfc as a2,Gfc as b,Ofc as c,zfc as d,sSn as e,Vfc as f,Lln as g,G_e as h,_fc as i,xSn as j,Ufc as k,Hc as l,Eln as m,qa as n,Zy as o,qfc as p,Ssc as q,Kfc as r,Jfc as s,Esc as t,Bl as u,ksc as v,cfc as w,hg as x,K_t as y,Q_t as z};
|
|
47565
|
+
`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",maxWidth:"1100px",width:"50%",padding:"15px",zIndex:2001,pointerEvents:"auto",position:"relative"})),scc=DS(lt)(()=>({padding:"5px 5px",margin:"5px",borderBottom:"1px solid rgba(255, 255, 255, 0.37)"}));DS(lt)(()=>({padding:"10px 15px",backgroundColor:"rgba(217, 217, 217, 0.04)"}));const lcc=DS("div")(()=>({color:"rgba(255, 255, 255, 1)",fontSize:"18px",fontWeight:500})),ucc=DS(lt)(()=>({padding:"5px 5px",display:"flex",flexDirection:"column",width:"100%",flex:1,backgroundColor:"transparent",minHeight:0})),ccc=DS("div")(()=>({color:"rgba(255, 255, 255, 0.75)",marginBottom:"2px",fontSize:"12px",fontWeight:500})),dcc=DS("input")(()=>({padding:"2px 8px",marginBottom:"8px",minHeight:"40px",color:"rgba(255, 255, 255, 0.75)",fontSize:"16px",backgroundColor:"rgba(217, 217, 217, 0.04)",backdropFilter:"blur(20px)",borderRadius:"6px"})),pcc=DS(Fl)(()=>({minWidth:"144px",minHeight:"30px",padding:"11px 22px",lineHeight:"normal",fontWeight:"400",borderRadius:"9px","&.primary":{backgroundColor:"#421ea1",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"#52437c",color:"#737373",border:"1px solid #52437c"},"&:disabled":{backgroundColor:"#2d1570",color:"#595959",border:"1px solid #2d1570"}},"&.secondary":{backgroundColor:"rgba(255, 255, 255, 0.11)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)"},"&:disabled":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:"#595959",border:"1px solid rgba(255, 255, 255, 0.06)"}}})),hcc=()=>{const{isValid:e,validate:t}=acc(),[r,a]=j.useState(""),[n,o]=j.useState(!1),s=l=>{l.preventDefault(),t(r)||o(!0)};return e?R.jsx(R.Fragment,{}):cs.createPortal(R.jsx(R.Fragment,{children:R.jsx(icc,{sx:{zIndex:2e3},children:R.jsxs(occ,{sx:{zIndex:2e3},children:[R.jsx(scc,{children:R.jsx(lcc,{children:"Welcome to Dreamspace"})}),R.jsxs(ucc,{sx:{position:"relative",color:"white"},children:[R.jsx(Da,{sx:{margin:"5px 10px"},children:"Not everyone was meant to find this page. But you did. Welcome to the exclusive alpha version of Dreamspace. The first vibe coding canvas for crypto's creatives."}),R.jsx(Da,{sx:{margin:"5px 10px"},children:"You know what to do."}),R.jsx(ccc,{sx:{mt:"30px",ml:"5px"},children:"Prove you belong:"}),R.jsx(dcc,{type:"text",name:"alpha code input",value:r,onChange:l=>a(l.target.value),placeholder:"enter code",sx:{zIndex:2e3}}),n&&R.jsx("div",{style:{color:"#ff4d4f",fontSize:"12px",marginBottom:"2px",marginLeft:"5px"},children:"Invalid alpha code"}),R.jsx(pcc,{className:"secondary",onClick:s,disabled:!1,sx:{mt:"20px"},children:"Join Alpha"})]})]})})}),document.body)},fcc=()=>{const e=y7t(),t=daa(),[r,a]=j.useState((e==null?void 0:e.length)>0||t),[n,o]=j.useState(!1);return R.jsxs(JB,{className:"biscuitsBlock",children:[R.jsxs("div",{className:"cardHead",children:[r||n?R.jsx("div",{}):ye.SAVE_BISCUIT,R.jsxs("div",{className:"headRight",children:[!n&&R.jsx(yr,{variant:"contained",color:"secondary",onClick:()=>a(!r),disabled:!(e!=null&&e.length)&&!t,children:r?ye.CREATE_BISCUIT:ye.SHOW_BISCUIT}),R.jsx(wa,{label:"Additional Information",children:R.jsx(ra,{onClick:()=>o(s=>!s),children:n?R.jsx(Ks,{}):R.jsx(ex,{})})})]})]}),R.jsx(el,{in:n,timeout:"auto",unmountOnExit:!0,children:R.jsx("div",{className:"infoText",children:R.jsx("p",{style:{fontSize:"14px",color:"#999"},children:paa.shortText})})}),R.jsx(el,{in:!n&&!r,timeout:"auto",unmountOnExit:!0,children:R.jsx(ykn,{})}),R.jsx(el,{in:!n&&r,timeout:"auto",unmountOnExit:!0,children:R.jsx(vkn,{setShowBiscuit:a,loading:t,biscuitContent:e})})]})},gcc=({visible:e,onClose:t})=>fn(a=>a.isLoggedIn)?R.jsx(Hc,{title:ye.BISCUITS,visible:e,onClose:t,maxWidth:"md",children:R.jsxs(rs,{container:!0,spacing:2,children:[R.jsx(rs,{item:!0,xs:12,children:R.jsx(Da,{variant:"body1",sx:{fontSize:"14px",color:"#999"},children:ye.PERMISSIONS_BISCUITS_DESC})}),R.jsx(rs,{item:!0,xs:12,children:R.jsx(fcc,{})})]})}):(Js(!0),null),{GA_MEASUREMENT_ID:mcc,ENABLE_JOIN_CODES:Acc}=al();LCi.initialize(mcc);const OSt=Re.lazy(()=>yse(()=>import("./QueryEditorWrapper-7bc9f71a.js"),["assets/QueryEditorWrapper-7bc9f71a.js","assets/vendor-charts-0df127d0.js","assets/vendor-editor-ed23b824.js","assets/vendor-three-f79fdf23.js"])),xcc=Re.lazy(()=>yse(()=>import("./ErdWrapper-0f1bc286.js"),["assets/ErdWrapper-0f1bc286.js","assets/vendor-charts-0df127d0.js","assets/vendor-editor-ed23b824.js","assets/vendor-three-f79fdf23.js"])),zSt=Re.lazy(()=>yse(()=>import("./Queries-57c1def5.js"),["assets/Queries-57c1def5.js","assets/vendor-charts-0df127d0.js","assets/vendor-editor-ed23b824.js","assets/vendor-three-f79fdf23.js","assets/Queries-9ad18f9b.css"])),ycc=["sxt-mi-git-prod.space-and-time.workers.dev","sxt-mi-git-staging.space-and-time.workers.dev","git-infinite-staging.space-and-time.workers.dev","git-infinite-production.space-and-time.workers.dev"];S5i.register({request:(e,t)=>{const r=e.toString();if(ycc.some(n=>r.includes(n)))return[e,t];const a={...t};return e&&typeof e=="string"&&e.includes("coinbase")?(a.headers={"Content-Type":"application/json"},[e,a]):[e,a]},requestError:e=>e,response:e=>e,responseError:e=>(console.log(e),Promise.reject(e))});function vcc(){$uc();const e=$n(),{config:t}=a$e(),r=WC(),{subscriptionDetails:a}=Ld(),n=OCi(),o=fn(F=>F.isLoggedIn),s=fn(F=>F.userId),l=zCi();if(!t)return null;const u=HCi(),c=v7t(),d=()=>Acc?!localStorage.getItem("alphaJoinCode"):!1,p=b7t(),[h,f]=j.useState(!1),[m]=j.useState(null),x=j.useCallback((F,B=!1)=>{switch(F){case"INDEX_CONTRACT":e.push(ma.getDataFromChain(""));break;case"DATA_STUDIO":default:B?window.open(ma.newQuery(),"_blank"):e.push(ma.newQuery());break}},[e]);j.useEffect(()=>{window.ethereum&&(window.ethereum.removeListener("accountsChanged",()=>{}),window.ethereum.removeListener("chainChanged",()=>{}))},[]);const y=Pw(F=>F.setUserEmail),v=Pw(F=>F.setIsEmailVerified),b=Pw(F=>F.showVerifyEmailDialog),k=Pw(F=>F.setShowVerifyEmailDialog);j.useEffect(()=>{(async()=>{var T,I;const B=await cu.getEmail();B.status===200&&(y(((T=B==null?void 0:B.data)==null?void 0:T.emailAddress)??null),v(((I=B==null?void 0:B.data)==null?void 0:I.emailVerified)??!1))})()},[o]);const S=[{path:"/start",exact:!0,private:!1,header:!1,render:()=>R.jsx(vzr,{navigate:x,isLoggedIn:o,onAuthButtonClick:()=>Js(!0),onStartCreatingClick:()=>vw.startCreatingClick(),onBlankProjectClick:()=>vw.blankProjectClick(),customHeading:"Build Your Dream App with AI",customSubHeading:"Create stunning websites, apps, and smart contracts in minutes. No coding required."})},{path:fr.landingPage,exact:!0,private:!1,header:!1,render:()=>R.jsx(vzr,{navigate:x,isLoggedIn:o,onAuthButtonClick:()=>Js(!0),onStartCreatingClick:()=>vw.startCreatingClick(),onBlankProjectClick:()=>vw.blankProjectClick()})},{path:`${fr.myApps}/:projectId/:pagePath`,exact:!0,private:!0,header:!1,render:()=>R.jsx(lUs,{navigate:x,subscriptionData:a??{plan:{chargeType:null,planType:null},subscriptionId:null},onChatBotPinnedClicked:()=>{}})},{path:`${fr.myApps}/:projectId`,exact:!0,private:!0,header:!1,render:({match:F})=>R.jsx(AGe,{to:`${fr.myApps}/${F.params.projectId}/home`})},{path:fr.myApps,exact:!0,private:!0,header:!1,render:()=>R.jsx(OWs,{navigate:x,isLoggedIn:o,onAuthButtonClick:()=>Js(!0)})},{path:fr.dataStudio,exact:!0,private:!1,header:!0,component:()=>R.jsx(AGe,{to:ma.newQuery()})},{path:fr.newQuery,exact:!0,private:!1,header:!0,component:OSt},{path:fr.erd,exact:!0,private:!1,header:!0,component:xcc},{path:fr.savedQuery,exact:!0,private:!1,header:!0,component:OSt},{path:fr.publicQuerySlug,exact:!0,private:!1,header:!0,component:OSt},{path:fr.newChart,exact:!0,private:!0,header:!0,component:aUr},{path:fr.updateChart,exact:!0,private:!0,header:!1,component:aUr},{path:fr.charts,exact:!0,private:!0,header:!0,component:cBl},{path:fr.dashboards,exact:!0,private:!1,header:!0,component:tIl},{path:fr.myQueries,exact:!0,private:!0,header:!0,component:()=>R.jsx(zSt,{tab:xre.myQueries})},{path:fr.queryHistory,exact:!0,private:!0,header:!0,component:()=>R.jsx(zSt,{tab:xre.queryHistory})},{path:fr.myOrgQuery,exact:!0,private:!1,header:!0,component:()=>R.jsx(zSt,{tab:xre.myOrgQuery})},{path:fr.newDashboard,exact:!0,private:!0,header:!0,component:sWr},{path:fr.viewDashboard,exact:!0,private:!1,header:!0,component:lWr},{path:fr.publicDashboard,exact:!0,private:!1,header:!0,component:F=>R.jsx(lWr,{...F,isPublic:!0})},{path:fr.updateDashboard,exact:!0,private:!0,header:!0,component:sWr},{path:fr.sendData,exact:!0,private:!0,header:!0,component:Glc},{path:fr.getDataFromChain,exact:!0,private:!0,header:!0,component:toc},{path:fr.views,exact:!0,private:!0,header:!0,component:Buc},{path:`${fr.settings}/:subPath*`,exact:!0,private:!0,header:!0,component:ktc},{path:fr.twitterCallback,exact:!0,private:!1,header:!1,component:Yjl},{path:fr.emailVerification,exact:!0,private:!1,header:!0,component:Nuc},{path:fr.resetPassword,exact:!0,private:!1,header:!0,component:Vuc},{path:fr.terms,exact:!0,private:!1,header:!0,component:Kuc}];return R.jsx(OQ,{children:R.jsxs(rcc,{children:[R.jsxs(Xuc,{onAuthButtonClick:()=>Js(!0),navigate:x,isLoggedIn:o,loggedInUserId:s??"",onLogout:(F=!0,B)=>{try{w7t(),GCi(),Js(!1),Y2e(),sessionStorage.removeItem("sessionId")}finally{dc.logout()}F&&B()},subscriptionData:a??{plan:{chargeType:null,planType:null},subscriptionId:null},userDetail:r,children:[u&&R.jsx("div",{className:"fixedLoader",children:R.jsx(Mm,{})}),R.jsx(j.Suspense,{fallback:R.jsx(Mm,{}),children:R.jsxs(gqe,{children:[S.map(F=>{const B=F.private?TIl:g4;return R.jsx(B,{exact:F.exact,path:F.path,render:T=>{const I=F.render?F.render(T):F.component?Re.createElement(F.component,T):null;return F.header?R.jsxs(R.Fragment,{children:[R.jsx(RIl,{}),I]}):I}},F.path)}),R.jsx(g4,{render:F=>R.jsx(OQ,{...F,children:R.jsx(cce,{errorPageType:"404"})})})]})}),l&&R.jsx(gcc,{visible:l,onClose:()=>HPt(!1)}),!d()&&p&&R.jsx(KKs,{open:p,setShowLoginDrawer:Js,isSubmit:h,setIsSubmit:f,redirectOnSuccess:m}),n&&R.jsx(Uuc,{onClose:()=>VCi(!1)}),o&&b&&R.jsx(_uc,{onClose:()=>k(!1)})]}),R.jsx(hcc,{}),R.jsx(UCi,{}),(c==null?void 0:c.type)==="error"&&(c!=null&&c.title)?R.jsx(oIl,{}):R.jsx(lIl,{})]})})}async function bcc(e){const t=!!e.match("ignite"),{data:r,error:a}=await cu.get(e,void 0,t);if(a)throw a;return r}const{GOOGLE_CLIENT_ID:Dcc,STRIPE_CLIENT_ID:wcc,SENTRY_DSN:Ccc,CLARITY_PROJECT_ID:Ecc}=al();WCi.init(Ecc);A5i({dsn:Ccc,integrations:[new _qe,new x5i],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,tracesSampleRate:1});const kcc=wEi(`${wcc}`);window.localforage=KCi;QCi();Ld.getState().syncStore();cs.render(R.jsx(rna,{stripe:kcc,children:R.jsx(qCi,{value:{fetcher:bcc},children:R.jsx(v5i,{clientId:Dcc,children:R.jsx(OPt,{children:R.jsx(vcc,{})})})})}),document.getElementById("root"));export{Msc as $,Hfc as A,yr as B,Zfc as C,Nfc as D,Pfc as E,Lfc as F,aQt as G,Xfc as H,ra as I,Yfc as J,uBl as K,Tu as L,Wun as M,un as N,Mm as O,ZB as P,Rlc as Q,Jy as R,tKt as S,Xf as T,X4 as U,fg as V,Sae as W,Ks as X,LQ as Y,wb as Z,Oun as _,Lsc as a,Tta as a0,Wfc as a1,Qfc as a2,Gfc as b,Ofc as c,zfc as d,sSn as e,Vfc as f,Lln as g,G_e as h,_fc as i,xSn as j,Ufc as k,Hc as l,Eln as m,qa as n,Zy as o,qfc as p,Ssc as q,Kfc as r,Jfc as s,Esc as t,Bl as u,ksc as v,cfc as w,hg as x,K_t as y,Q_t as z};
|
package/build/index.html
CHANGED
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</script>
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
<script type="module" crossorigin src="/assets/index-
|
|
73
|
+
<script type="module" crossorigin src="/assets/index-adcf33e3.js"></script>
|
|
74
74
|
<link rel="modulepreload" crossorigin href="/assets/vendor-charts-0df127d0.js">
|
|
75
75
|
<link rel="modulepreload" crossorigin href="/assets/vendor-editor-ed23b824.js">
|
|
76
76
|
<link rel="modulepreload" crossorigin href="/assets/vendor-three-f79fdf23.js">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spaceandtimelabs/dapp-mi-space-time",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.45",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"build/**/*"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@react-three/fiber": "7.0.28",
|
|
32
32
|
"@sentry/react": "^7.15.0",
|
|
33
33
|
"@sentry/tracing": "^7.15.0",
|
|
34
|
-
"@spaceandtimelabs/dapp-mi-components": "^0.82.0-beta.
|
|
34
|
+
"@spaceandtimelabs/dapp-mi-components": "^0.82.0-beta.35",
|
|
35
35
|
"@stripe/react-stripe-js": "^2.1.0",
|
|
36
36
|
"@stripe/stripe-js": "^1.52.1",
|
|
37
37
|
"@types/file-saver": "^2.0.5",
|
|
@@ -162,5 +162,5 @@
|
|
|
162
162
|
"yarn": "^1.22.21",
|
|
163
163
|
"npm": "^10.2.3"
|
|
164
164
|
},
|
|
165
|
-
"gitHead": "
|
|
165
|
+
"gitHead": "f5b3e8dc3a12abb7f9bc20f5a9fcb59207d89139"
|
|
166
166
|
}
|