@abtnode/blocklet-services 1.16.38-beta-20250110-003414-d3c1bfbd → 1.16.38-beta-20250114-011103-277f0108

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.
Files changed (64) hide show
  1. package/api/libs/connect/session.js +47 -9
  2. package/api/libs/open-graph/template.js +15 -12
  3. package/api/routes/oauth.js +5 -7
  4. package/api/routes/user.js +6 -8
  5. package/dist/assets/{access-control-DcliPEX2.js → access-control-DYH-J6hX.js} +1 -1
  6. package/dist/assets/{add-component-core-DSlHbXth.js → add-component-core-BWkCzqAe.js} +1 -1
  7. package/dist/assets/{add-resource-B9SUcn9b.js → add-resource-gJH8Kf-h.js} +1 -1
  8. package/dist/assets/{analytics-BVmtToBr.js → analytics-Bv-kTIMo.js} +1 -1
  9. package/dist/assets/{audit-logs-DOpEhbRi.js → audit-logs-1KlkVb5T.js} +1 -1
  10. package/dist/assets/{branding-BIbnR-Yt.js → branding-CKhye1G1.js} +2 -2
  11. package/dist/assets/{bundle-avatar-DqROxHMq.js → bundle-avatar-B19h7IBb.js} +1 -1
  12. package/dist/assets/{complete-B_C_fwut.js → complete-XH7CJJ1E.js} +1 -1
  13. package/dist/assets/{component-eAmweIYL.js → component-B4nl0OGh.js} +1 -1
  14. package/dist/assets/{config-CWoxBu0J.js → config-B8mAOrZA.js} +1 -1
  15. package/dist/assets/{config-navigation-jKhcoDId.js → config-navigation-Y__TwRFz.js} +3 -3
  16. package/dist/assets/{config-space-Dofzrh5m.js → config-space-DJZf5rEq.js} +1 -1
  17. package/dist/assets/{confirm-C0rryr4e.js → confirm-CucPiuHr.js} +1 -1
  18. package/dist/assets/{connect-Wiz0Gw9I.js → connect-CPSe4Vws.js} +1 -1
  19. package/dist/assets/{connect-CfWNBUY4.js → connect-DH0hj2CX.js} +1 -1
  20. package/dist/assets/{connect-to-Dsq1ST9l.js → connect-to-DfzH7XJt.js} +1 -1
  21. package/dist/assets/{dashboard-Ca8O6iHB.js → dashboard-D7XqaqMa.js} +3 -3
  22. package/dist/assets/{domain-DJyjDPmO.js → domain-D80mBbZ5.js} +1 -1
  23. package/dist/assets/{domain-list-BEjAE8hh.js → domain-list-DGgkgu6r.js} +1 -1
  24. package/dist/assets/{email-C3ggDSGp.js → email-C1ha_p9W.js} +1 -1
  25. package/dist/assets/{exchange-passport-4QuzoW2F.js → exchange-passport-4uu5i0rP.js} +1 -1
  26. package/dist/assets/{form-text-input-CT57jMfW.js → form-text-input-DB90dWTR.js} +1 -1
  27. package/dist/assets/{fuel-CJ-CsgDu.js → fuel-PiarpzYg.js} +1 -1
  28. package/dist/assets/{index-CQT4qLcx.js → index-8ktBk2aq.js} +1 -1
  29. package/dist/assets/{index-CrvlY8Z5.js → index-B5PaGLoo.js} +1 -1
  30. package/dist/assets/{index-CqPx8QUY.js → index-BCUhK2IK.js} +1 -1
  31. package/dist/assets/{index-l4yaELph.js → index-BPFeU32W.js} +1 -1
  32. package/dist/assets/{index-BZnWmdZ0.js → index-BdipdMDv.js} +1 -1
  33. package/dist/assets/{index-BPF3oif7.js → index-CYcUSW9Y.js} +5 -5
  34. package/dist/assets/{index-IdPbsC-k.js → index-Cn9hlGXz.js} +1 -1
  35. package/dist/assets/{index-DMelUylN.js → index-D97FQw7_.js} +3 -3
  36. package/dist/assets/{index-BQxL3qXG.js → index-DDHKg1sP.js} +1 -1
  37. package/dist/assets/{index-wG4Kh8A_.js → index-DgZ1ypbb.js} +3 -3
  38. package/dist/assets/{index-Bxg1LKG8.js → index-N-iuMUsJ.js} +1 -1
  39. package/dist/assets/{index-ROkOEO9F.js → index-PIIZTXU1.js} +1 -1
  40. package/dist/assets/{invitation-Dn2JFqk3.js → invitation-D0h9V7Yr.js} +1 -1
  41. package/dist/assets/{invite-k-THgUaE.js → invite-CLadQHSg.js} +1 -1
  42. package/dist/assets/{issue-passport-Cp0z7zOC.js → issue-passport-DOvL3-GM.js} +1 -1
  43. package/dist/assets/{item-DqTNLhw3.js → item-BKMUYpdp.js} +1 -1
  44. package/dist/assets/{layout-BRN0uPvp.js → layout-Bb4get3W.js} +1 -1
  45. package/dist/assets/{log-D1ShKaDY.js → log-r4HRH3tf.js} +1 -1
  46. package/dist/assets/{login-D9awP98G.js → login-IiYHalJQ.js} +1 -1
  47. package/dist/assets/{logo-uploader-BA8U554_.js → logo-uploader-C1-XCCMv.js} +3 -3
  48. package/dist/assets/{lost-passport-kJqVsdV1.js → lost-passport-EcYlR7v6.js} +1 -1
  49. package/dist/assets/{overview-4bff7RWe.js → overview-Bc6RN_5G.js} +1 -1
  50. package/dist/assets/{publish-resource-BhQQlAPL.js → publish-resource-cSMHC1nt.js} +1 -1
  51. package/dist/assets/{relative-time-BXb5Mt72.js → relative-time-BzZIQh7e.js} +1 -1
  52. package/dist/assets/{setup-DTQXAoXZ.js → setup-CdCyHLLn.js} +3 -3
  53. package/dist/assets/{start-DNpygdxp.js → start-owo1aKq8.js} +1 -1
  54. package/dist/assets/{step-actions-ClTz1KhK.js → step-actions-DnckX9Zh.js} +1 -1
  55. package/dist/assets/{transfer-A_yTwCWw.js → transfer-De5_Rua8.js} +1 -1
  56. package/dist/assets/{unsubscribe-uaBnibKD.js → unsubscribe-B0kFTEaS.js} +1 -1
  57. package/dist/assets/{user-center-B3stHKHJ.js → user-center-B9_0ML8Q.js} +1 -1
  58. package/dist/assets/{util-ao8gSgii.js → util-Ci0WMGC4.js} +1 -1
  59. package/dist/assets/{wrap-locale-DNve09jN.js → wrap-locale-D_rplmnG.js} +1 -1
  60. package/dist/images/og-image.jpg +0 -0
  61. package/dist/index.html +1 -1
  62. package/dist/service-worker.js +1 -1
  63. package/dist/share/shared-service-worker.js +60 -2
  64. package/package.json +21 -21
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DMelUylN.js","assets/vendor-arcblock-CiLB_TiI.js","assets/vendor-react-D-afvo_7.js","assets/vendor-utils-DCpRgzMR.js","assets/vendor-hooks-CLzfFpO7.js","assets/vendor-mui-core-BlX2BJoA.js","assets/vendor-arcblock-DhgPdlEj.css","assets/index-BGO2DsWz.js","assets/index-wG4Kh8A_.js","assets/_createAggregator-B4i0o6gy.js","assets/index-DoZ2YM4T.js","assets/toUpper-BQrWudMF.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
- import{_ as Se}from"./index-wG4Kh8A_.js";import{a1 as Ie,j as e,ac as z,T as P,a3 as m,aM as Pe,a4 as re,I as F,D as ue,E as w,ab as Re,r as ke,bH as Ee,K as oe,y as _e,x as $,aa as Oe}from"./vendor-mui-core-BlX2BJoA.js";import{ad as De,g as Le,aO as Ve,d as L}from"./vendor-arcblock-CiLB_TiI.js";import{E as M,D as ie,C as se,P as ne}from"./react-beautiful-dnd.esm-C8vTtkBe.js";import{d as ae}from"./DeleteOutline-VzoIEqow.js";import{B as Te,q as $e}from"./vendor-hooks-CLzfFpO7.js";import{r as h}from"./vendor-react-D-afvo_7.js";import{S as K}from"./studio-DPoV-6q9.js";import"./vendor-utils-DCpRgzMR.js";import"./raf-schd.esm-Cxhj8umC.js";var C={};Object.defineProperty(C,"__esModule",{value:!0});C.getVideoId=V;var Ue=C.getEmbedUrl=ze,We=C.getVideoCoverUrl=Fe,Ae=C.getVideoCheckUrl=qe;C.getYoutubeId=pe;C.getVimeoId=he;C.isVideoUrl=He;function pe(r){var s,l,i;const t=r.trim();return t.includes("youtu.be/")?(s=t.split("youtu.be/")[1])==null?void 0:s.split("?")[0]:t.includes("/embed/")?(l=t.split("/embed/")[1])==null?void 0:l.split("?")[0]:t.includes("youtube.com/watch")?new URL(t).searchParams.get("v"):t.includes("youtube.com/shorts/")?(i=t.split("/shorts/")[1])==null?void 0:i.split("?")[0]:""}function he(r){var s,l,i,a,u,y,x;const t=r.trim();return t.includes("/embed/")?(s=t.split("/embed/")[1])==null?void 0:s.split("?")[0]:t.includes("vimeo.com/video/")?(l=t.split("/video/")[1])==null?void 0:l.split("?")[0]:t.includes("vimeo.com/channels/")?(a=(i=t.split("/channels/")[1])==null?void 0:i.split("/")[1])==null?void 0:a.split("?")[0]:t.includes("vimeo.com/groups/")?(y=(u=t.split("/groups/")[1])==null?void 0:u.split("/")[1])==null?void 0:y.split("?")[0]:t.includes("vimeo.com/")?(x=t.split("vimeo.com/")[1])==null?void 0:x.split("?")[0]:""}const U={};function V(r){const t=r.trim();return!t||!/^https?:\/\/.+\..+/.test(t)?[]:(U[t]||(U[t]=(()=>{const s=new URL(t);return s.host.includes("youtube.com")||s.host.includes("youtu.be")?[pe(t),"youtube"]:s.host.includes("vimeo.com")?[he(t),"vimeo"]:[]})()),U[t])}const k={};function ze(r,{modestbranding:t=1,controls:s=0,autoplay:l=0}={}){const i=r.trim();if(!i)return"";if(k[i]!==void 0)return k[i];const[a,u]=V(i);return u==="youtube"?k[i]=`https://www.youtube.com/embed/${a}?modestbranding=${t}&controls=${s}&autoplay=${l}`:u==="vimeo"?k[i]=`https://player.vimeo.com/video/${a}?autoplay=${l}`:k[i]="",k[i]}const E={};function Fe(r){const t=r.trim();if(!t)return"";if(E[t]!==void 0)return E[t];const[s,l]=V(t);return l==="youtube"?E[t]=`https://img.youtube.com/vi/${s}/mqdefault.jpg`:l==="vimeo"?E[t]=`https://i.vimeocdn.com/${s}/1000x563`:E[t]="",E[t]}function qe(r){const t=r.trim();if(!t)return"";const[s,l]=V(t);return l==="youtube"?`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${s}&format=json`:l==="vimeo"?`https://vimeo.com/api/oembed.json?url=https://vimeo.com/${s}`:""}function He(r){const t=r.trim();return V(t).length>0}var X={},Ne=Ie;Object.defineProperty(X,"__esModule",{value:!0});var me=X.default=void 0,Be=Ne(De()),Ke=e;me=X.default=(0,Be.default)((0,Ke.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste");const le=h.lazy(()=>Se(()=>import("./index-DMelUylN.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(r=>({default:r.Uploader}))),Me=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo/upload`,Xe=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots/upload`,Ye=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo`,W=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots`,Je=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/videos`,ce=5,de=3;function lt(){var ee;const{t:r,locale:t}=Le(),[s,l]=h.useState(!1),[i,a]=h.useState(!1),[u,y]=h.useState([]),[x,j]=h.useState([]),[f,S]=h.useState(""),[T,_]=h.useState(""),[q,H]=h.useState(Date.now()),p=Te(async()=>{var c;const n=await(await fetch(W)).json();return y(n.screenshots||[]),j(((c=n.videos)==null?void 0:c.filter(d=>!!d))||[]),n}),R=h.useRef(null),g=h.useRef(null);if(p.loading&&!p.data)return e.jsx(K,{children:e.jsx(M,{size:40})});if(p.error)return e.jsx(K,{children:e.jsx(z,{direction:"column",spacing:1,sx:{mb:3},children:e.jsx(P,{color:"error.main",sx:{fontWeight:"bold"},children:p.error.message})})});const v=async o=>{const n=o.filter(c=>!!c);j(n),await fetch(Je,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({videos:n})})},N=async o=>{const n=Array.from(x),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),await v(n)},xe=async o=>{const n=Array.from(u),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),y(n),await fetch(`${W}/reorder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({screenshots:n})})},J=async o=>{o.destination&&(o.source.droppableId==="screenshots"?await xe(o):o.source.droppableId==="videos"&&await N(o),p.runAsync())},Z=o=>{_(o.trim()),a(!0)},G=async(o,n="")=>{let c=[];n?c=o?x.map(d=>d===n?o.trim():d):x.filter(d=>d!==n):o&&(c=[...x,o.trim()]),_(""),a(!1),(o||n)&&await v(c),p.runAsync()},fe=o=>{l(!0),S(o)},Q=()=>{l(!1),S("")};function be(){const o=[{label:r("studio.type"),value:"png, jpg, webp, svg"},{label:r("studio.ratio"),value:"256x256"},{label:r("studio.size"),value:"<500KB"}],n=[{label:r("studio.tip"),value:r("studio.change")}];return e.jsx(A,{title:r("common.logo"),rules:o,tips:n,children:e.jsx(m,{sx:{flex:1,cursor:"pointer"},children:e.jsx(Pe,{variant:"square",sx:{width:128,height:128},alt:"Blocklet Logo",src:`${Ye}?t=${q}`,onClick:()=>{var c;return(c=R.current)==null?void 0:c.open()}})})})}function ve(){const o=[{label:r("studio.ratio"),value:"16 / 9"},{label:r("studio.count"),value:`1~${ce}`},{label:r("studio.size"),value:"<5MB"}],n=[{label:r("studio.tip"),value:r("studio.orderTipLong")}];return e.jsx(A,{title:r("common.screenshot"),tips:n,rules:o,children:e.jsx(ie,{onDragEnd:J,children:e.jsx(se,{droppableId:"screenshots",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[u.map((b,B)=>e.jsx(ne,{draggableId:b,index:B,children:(I,D)=>{const te=`${W}/${b}`;return e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"screenshot",src:te,onClick:()=>fe(b),style:{cursor:"pointer"}}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:async()=>{await fetch(te,{method:"DELETE"}),p.runAsync()},children:e.jsx(ae,{})})})]})}},b)),d.placeholder,u.length<ce&&c()]})})})});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>{var d;return(d=g.current)==null?void 0:d.open()},children:"+"})}}function je(){const o=[{label:r("studio.count"),value:`1~${de}`},{label:r("studio.videoType"),value:e.jsxs(e.Fragment,{children:[e.jsx("a",{href:"https://www.youtube.com/",target:"_blank",rel:"noreferrer",children:"Youtube"}),","," ",e.jsx("a",{href:"https://vimeo.com/",target:"_blank",rel:"noreferrer",children:"Vimeo"})]})}],n=[{label:`${r("studio.tip")}`,value:r("studio.videoTipLong")}];return e.jsxs(A,{title:r("studio.video"),tips:n,rules:o,children:[e.jsx(ie,{onDragEnd:J,children:e.jsx(se,{droppableId:"videos",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[x.map((b,B)=>e.jsx(ne,{draggableId:b,index:B,children:(I,D)=>e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"videos",src:We(b),onClick:()=>Z(b),style:{cursor:"pointer"}}),e.jsx(m,{sx:{position:"absolute",cursor:"pointer",fontSize:"3rem"},onClick:()=>Z(b),children:e.jsx(ge,{})}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:()=>G(null,b),children:e.jsx(ae,{})})})]})},b)),d.placeholder,x.length<de&&c()]})})}),i&&e.jsx(Y,{t:r,handleOperateVideo:G,defaultUrl:T,videos:x})]});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>a(!0),children:"+"})}}function ye(){return e.jsx(ue,{open:s,onClose:Q,maxWidth:"xl",PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none"}},children:e.jsx("img",{src:`${W}/${f}`,alt:"Screenshot Full",style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain"},onClick:Q})})}function we(){return e.jsxs(h.Suspense,{fallback:e.jsx(M,{size:40}),children:[e.jsx(le,{ref:R,popup:!0,onUploadFinish:()=>{var o;(o=R.current)==null||o.close(),H(Date.now()),p.runAsync()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:Me,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","application/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),e.jsx(le,{ref:g,popup:!0,onUploadFinish:()=>{var o;(o=g.current)==null||o.close(),p.runAsync()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:Xe,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","application/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-u.length}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})}const Ce=`https://www.arcblock.io/docs/blocklet-store/${t}/supplying-images`;return e.jsx(K,{children:e.jsxs(Ze,{children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:3},children:[e.jsx(P,{variant:"h5",sx:{fontWeight:"bold"},children:r("studio.title",{title:(ee=p.data)==null?void 0:ee.title})}),e.jsxs(P,{variant:"body2",color:"text.secondary",children:[r("studio.description")," ",e.jsx("a",{href:Ce,target:"_blank",rel:"noreferrer",children:r("studio.documentation")})]})]}),be(),ve(),je(),ye(),we()]})})}function A({title:r,rules:t,tips:s,children:l}){return e.jsxs(m,{display:"flex",flexDirection:"column",sx:{mb:4},children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:2},children:[e.jsx(P,{variant:"h6",sx:{fontWeight:"bold"},children:r}),e.jsx(z,{direction:"row",spacing:2,sx:{fontSize:"13px",opacity:.8},children:t.map(a=>i(a.label,a.value))}),s.map(a=>e.jsx(m,{sx:{fontSize:"13px",opacity:.8},children:i(a.label,a.value)}))]}),l]});function i(a,u){return e.jsxs(m,{component:"span",children:[e.jsxs(m,{component:"span",sx:{color:"#555",mr:.5},children:[a,":"]}),e.jsx(m,{component:"span",sx:{color:"#007ec6"},children:u})]})}}A.propTypes={title:w.string.isRequired,rules:w.array.isRequired,tips:w.array.isRequired,children:w.node.isRequired};function Y({handleOperateVideo:r,t,defaultUrl:s="",videos:l}){var R;const[i,a]=h.useState(s),[u,y]=h.useState(!1),[x,j]=h.useState(!1),f=h.useRef(i),S=i!==s&&l.includes(i),T=!i&&s,_=!S&&(i&&i!==f.current||u),q=!!((R=navigator.clipboard)!=null&&R.readText),{run:H}=$e(p,{wait:500,leading:!0});return e.jsxs(ue,{open:!0,fullWidth:!0,maxWidth:"sm",children:[e.jsx(Re,{children:t(s?"studio.videoDialogEditTitle":"studio.videoDialogTitle")}),e.jsxs(ke,{children:[e.jsx(Ee,{fullWidth:!0,value:i,onChange:g=>{const v=g.target.value.trim();a(v),v?H(v):j(!1)},placeholder:t("studio.videoInputLabel"),endAdornment:i?e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:()=>{a(""),p("")},children:e.jsx(Ve,{})})}):q&&e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:async()=>{try{const g=(await navigator.clipboard.readText()||"").trim();a(g),p(g)}catch(g){console.error(g)}},children:e.jsx(me,{})})})}),e.jsxs(m,{mb:2,mt:.5,children:[S&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.duplicateVideo")}),!S&&x&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.videoDialogNoSrc")})]}),f.current?e.jsx("iframe",{width:"100%",height:"315",title:`video-${f.current}`,src:Ue(f.current),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,border:"1px solid #eee"}):e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:315,width:"100%",border:"1px solid #eee"},children:u?e.jsx(M,{size:40}):e.jsx(P,{variant:"h5",color:"text.secondary",children:e.jsx(ge,{})})})]}),e.jsxs(_e,{children:[e.jsx($,{onClick:()=>r(),children:t("studio.cancel")}),T&&e.jsx($,{variant:"contained",color:"error",onClick:()=>r(null,s),children:t("studio.delete")}),_&&e.jsx($,{variant:"contained",onClick:()=>p(i),disabled:!i||u,children:t("studio.preview")}),!T&&!_&&e.jsx($,{variant:"contained",onClick:()=>r(f.current),disabled:!f.current||s===f.current||S,children:t("studio.confirm")})]})]});function p(g){f.current="";const v=Ae(g);j(g?!v:!1),v&&(y(!0),fetch(v).then(N=>{N.ok?(f.current=g,j(!1)):j(!0)}).catch(()=>{j(!0)}).finally(()=>y(!1)))}}Y.propTypes={handleOperateVideo:w.func.isRequired,t:w.func.isRequired,defaultUrl:w.string,videos:w.array.isRequired};Y.defaultProps={defaultUrl:""};function ge(){return e.jsxs("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:48,width:48,children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"black","fill-opacity":"0.54"}),e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6667 28L21 17.5V38.5L39.6667 28Z",fill:"white"})]})}const Ze=Oe.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-D97FQw7_.js","assets/vendor-arcblock-CiLB_TiI.js","assets/vendor-react-D-afvo_7.js","assets/vendor-utils-DCpRgzMR.js","assets/vendor-hooks-CLzfFpO7.js","assets/vendor-mui-core-BlX2BJoA.js","assets/vendor-arcblock-DhgPdlEj.css","assets/index-BGO2DsWz.js","assets/index-DgZ1ypbb.js","assets/_createAggregator-B4i0o6gy.js","assets/index-DoZ2YM4T.js","assets/toUpper-BQrWudMF.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Se}from"./index-DgZ1ypbb.js";import{a1 as Ie,j as e,ac as z,T as P,a3 as m,aM as Pe,a4 as re,I as F,D as ue,E as w,ab as Re,r as ke,bH as Ee,K as oe,y as _e,x as $,aa as Oe}from"./vendor-mui-core-BlX2BJoA.js";import{ad as De,g as Le,aO as Ve,d as L}from"./vendor-arcblock-CiLB_TiI.js";import{E as M,D as ie,C as se,P as ne}from"./react-beautiful-dnd.esm-C8vTtkBe.js";import{d as ae}from"./DeleteOutline-VzoIEqow.js";import{B as Te,q as $e}from"./vendor-hooks-CLzfFpO7.js";import{r as h}from"./vendor-react-D-afvo_7.js";import{S as K}from"./studio-DPoV-6q9.js";import"./vendor-utils-DCpRgzMR.js";import"./raf-schd.esm-Cxhj8umC.js";var C={};Object.defineProperty(C,"__esModule",{value:!0});C.getVideoId=V;var Ue=C.getEmbedUrl=ze,We=C.getVideoCoverUrl=Fe,Ae=C.getVideoCheckUrl=qe;C.getYoutubeId=pe;C.getVimeoId=he;C.isVideoUrl=He;function pe(r){var s,l,i;const t=r.trim();return t.includes("youtu.be/")?(s=t.split("youtu.be/")[1])==null?void 0:s.split("?")[0]:t.includes("/embed/")?(l=t.split("/embed/")[1])==null?void 0:l.split("?")[0]:t.includes("youtube.com/watch")?new URL(t).searchParams.get("v"):t.includes("youtube.com/shorts/")?(i=t.split("/shorts/")[1])==null?void 0:i.split("?")[0]:""}function he(r){var s,l,i,a,u,y,x;const t=r.trim();return t.includes("/embed/")?(s=t.split("/embed/")[1])==null?void 0:s.split("?")[0]:t.includes("vimeo.com/video/")?(l=t.split("/video/")[1])==null?void 0:l.split("?")[0]:t.includes("vimeo.com/channels/")?(a=(i=t.split("/channels/")[1])==null?void 0:i.split("/")[1])==null?void 0:a.split("?")[0]:t.includes("vimeo.com/groups/")?(y=(u=t.split("/groups/")[1])==null?void 0:u.split("/")[1])==null?void 0:y.split("?")[0]:t.includes("vimeo.com/")?(x=t.split("vimeo.com/")[1])==null?void 0:x.split("?")[0]:""}const U={};function V(r){const t=r.trim();return!t||!/^https?:\/\/.+\..+/.test(t)?[]:(U[t]||(U[t]=(()=>{const s=new URL(t);return s.host.includes("youtube.com")||s.host.includes("youtu.be")?[pe(t),"youtube"]:s.host.includes("vimeo.com")?[he(t),"vimeo"]:[]})()),U[t])}const k={};function ze(r,{modestbranding:t=1,controls:s=0,autoplay:l=0}={}){const i=r.trim();if(!i)return"";if(k[i]!==void 0)return k[i];const[a,u]=V(i);return u==="youtube"?k[i]=`https://www.youtube.com/embed/${a}?modestbranding=${t}&controls=${s}&autoplay=${l}`:u==="vimeo"?k[i]=`https://player.vimeo.com/video/${a}?autoplay=${l}`:k[i]="",k[i]}const E={};function Fe(r){const t=r.trim();if(!t)return"";if(E[t]!==void 0)return E[t];const[s,l]=V(t);return l==="youtube"?E[t]=`https://img.youtube.com/vi/${s}/mqdefault.jpg`:l==="vimeo"?E[t]=`https://i.vimeocdn.com/${s}/1000x563`:E[t]="",E[t]}function qe(r){const t=r.trim();if(!t)return"";const[s,l]=V(t);return l==="youtube"?`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${s}&format=json`:l==="vimeo"?`https://vimeo.com/api/oembed.json?url=https://vimeo.com/${s}`:""}function He(r){const t=r.trim();return V(t).length>0}var X={},Ne=Ie;Object.defineProperty(X,"__esModule",{value:!0});var me=X.default=void 0,Be=Ne(De()),Ke=e;me=X.default=(0,Be.default)((0,Ke.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste");const le=h.lazy(()=>Se(()=>import("./index-D97FQw7_.js").then(r=>r.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(r=>({default:r.Uploader}))),Me=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo/upload`,Xe=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots/upload`,Ye=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo`,W=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots`,Je=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/videos`,ce=5,de=3;function lt(){var ee;const{t:r,locale:t}=Le(),[s,l]=h.useState(!1),[i,a]=h.useState(!1),[u,y]=h.useState([]),[x,j]=h.useState([]),[f,S]=h.useState(""),[T,_]=h.useState(""),[q,H]=h.useState(Date.now()),p=Te(async()=>{var c;const n=await(await fetch(W)).json();return y(n.screenshots||[]),j(((c=n.videos)==null?void 0:c.filter(d=>!!d))||[]),n}),R=h.useRef(null),g=h.useRef(null);if(p.loading&&!p.data)return e.jsx(K,{children:e.jsx(M,{size:40})});if(p.error)return e.jsx(K,{children:e.jsx(z,{direction:"column",spacing:1,sx:{mb:3},children:e.jsx(P,{color:"error.main",sx:{fontWeight:"bold"},children:p.error.message})})});const v=async o=>{const n=o.filter(c=>!!c);j(n),await fetch(Je,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({videos:n})})},N=async o=>{const n=Array.from(x),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),await v(n)},xe=async o=>{const n=Array.from(u),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),y(n),await fetch(`${W}/reorder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({screenshots:n})})},J=async o=>{o.destination&&(o.source.droppableId==="screenshots"?await xe(o):o.source.droppableId==="videos"&&await N(o),p.runAsync())},Z=o=>{_(o.trim()),a(!0)},G=async(o,n="")=>{let c=[];n?c=o?x.map(d=>d===n?o.trim():d):x.filter(d=>d!==n):o&&(c=[...x,o.trim()]),_(""),a(!1),(o||n)&&await v(c),p.runAsync()},fe=o=>{l(!0),S(o)},Q=()=>{l(!1),S("")};function be(){const o=[{label:r("studio.type"),value:"png, jpg, webp, svg"},{label:r("studio.ratio"),value:"256x256"},{label:r("studio.size"),value:"<500KB"}],n=[{label:r("studio.tip"),value:r("studio.change")}];return e.jsx(A,{title:r("common.logo"),rules:o,tips:n,children:e.jsx(m,{sx:{flex:1,cursor:"pointer"},children:e.jsx(Pe,{variant:"square",sx:{width:128,height:128},alt:"Blocklet Logo",src:`${Ye}?t=${q}`,onClick:()=>{var c;return(c=R.current)==null?void 0:c.open()}})})})}function ve(){const o=[{label:r("studio.ratio"),value:"16 / 9"},{label:r("studio.count"),value:`1~${ce}`},{label:r("studio.size"),value:"<5MB"}],n=[{label:r("studio.tip"),value:r("studio.orderTipLong")}];return e.jsx(A,{title:r("common.screenshot"),tips:n,rules:o,children:e.jsx(ie,{onDragEnd:J,children:e.jsx(se,{droppableId:"screenshots",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[u.map((b,B)=>e.jsx(ne,{draggableId:b,index:B,children:(I,D)=>{const te=`${W}/${b}`;return e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"screenshot",src:te,onClick:()=>fe(b),style:{cursor:"pointer"}}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:async()=>{await fetch(te,{method:"DELETE"}),p.runAsync()},children:e.jsx(ae,{})})})]})}},b)),d.placeholder,u.length<ce&&c()]})})})});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>{var d;return(d=g.current)==null?void 0:d.open()},children:"+"})}}function je(){const o=[{label:r("studio.count"),value:`1~${de}`},{label:r("studio.videoType"),value:e.jsxs(e.Fragment,{children:[e.jsx("a",{href:"https://www.youtube.com/",target:"_blank",rel:"noreferrer",children:"Youtube"}),","," ",e.jsx("a",{href:"https://vimeo.com/",target:"_blank",rel:"noreferrer",children:"Vimeo"})]})}],n=[{label:`${r("studio.tip")}`,value:r("studio.videoTipLong")}];return e.jsxs(A,{title:r("studio.video"),tips:n,rules:o,children:[e.jsx(ie,{onDragEnd:J,children:e.jsx(se,{droppableId:"videos",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[x.map((b,B)=>e.jsx(ne,{draggableId:b,index:B,children:(I,D)=>e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"videos",src:We(b),onClick:()=>Z(b),style:{cursor:"pointer"}}),e.jsx(m,{sx:{position:"absolute",cursor:"pointer",fontSize:"3rem"},onClick:()=>Z(b),children:e.jsx(ge,{})}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:()=>G(null,b),children:e.jsx(ae,{})})})]})},b)),d.placeholder,x.length<de&&c()]})})}),i&&e.jsx(Y,{t:r,handleOperateVideo:G,defaultUrl:T,videos:x})]});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>a(!0),children:"+"})}}function ye(){return e.jsx(ue,{open:s,onClose:Q,maxWidth:"xl",PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none"}},children:e.jsx("img",{src:`${W}/${f}`,alt:"Screenshot Full",style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain"},onClick:Q})})}function we(){return e.jsxs(h.Suspense,{fallback:e.jsx(M,{size:40}),children:[e.jsx(le,{ref:R,popup:!0,onUploadFinish:()=>{var o;(o=R.current)==null||o.close(),H(Date.now()),p.runAsync()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:Me,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","application/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),e.jsx(le,{ref:g,popup:!0,onUploadFinish:()=>{var o;(o=g.current)==null||o.close(),p.runAsync()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:Xe,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","application/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-u.length}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})}const Ce=`https://www.arcblock.io/docs/blocklet-store/${t}/supplying-images`;return e.jsx(K,{children:e.jsxs(Ze,{children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:3},children:[e.jsx(P,{variant:"h5",sx:{fontWeight:"bold"},children:r("studio.title",{title:(ee=p.data)==null?void 0:ee.title})}),e.jsxs(P,{variant:"body2",color:"text.secondary",children:[r("studio.description")," ",e.jsx("a",{href:Ce,target:"_blank",rel:"noreferrer",children:r("studio.documentation")})]})]}),be(),ve(),je(),ye(),we()]})})}function A({title:r,rules:t,tips:s,children:l}){return e.jsxs(m,{display:"flex",flexDirection:"column",sx:{mb:4},children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:2},children:[e.jsx(P,{variant:"h6",sx:{fontWeight:"bold"},children:r}),e.jsx(z,{direction:"row",spacing:2,sx:{fontSize:"13px",opacity:.8},children:t.map(a=>i(a.label,a.value))}),s.map(a=>e.jsx(m,{sx:{fontSize:"13px",opacity:.8},children:i(a.label,a.value)}))]}),l]});function i(a,u){return e.jsxs(m,{component:"span",children:[e.jsxs(m,{component:"span",sx:{color:"#555",mr:.5},children:[a,":"]}),e.jsx(m,{component:"span",sx:{color:"#007ec6"},children:u})]})}}A.propTypes={title:w.string.isRequired,rules:w.array.isRequired,tips:w.array.isRequired,children:w.node.isRequired};function Y({handleOperateVideo:r,t,defaultUrl:s="",videos:l}){var R;const[i,a]=h.useState(s),[u,y]=h.useState(!1),[x,j]=h.useState(!1),f=h.useRef(i),S=i!==s&&l.includes(i),T=!i&&s,_=!S&&(i&&i!==f.current||u),q=!!((R=navigator.clipboard)!=null&&R.readText),{run:H}=$e(p,{wait:500,leading:!0});return e.jsxs(ue,{open:!0,fullWidth:!0,maxWidth:"sm",children:[e.jsx(Re,{children:t(s?"studio.videoDialogEditTitle":"studio.videoDialogTitle")}),e.jsxs(ke,{children:[e.jsx(Ee,{fullWidth:!0,value:i,onChange:g=>{const v=g.target.value.trim();a(v),v?H(v):j(!1)},placeholder:t("studio.videoInputLabel"),endAdornment:i?e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:()=>{a(""),p("")},children:e.jsx(Ve,{})})}):q&&e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:async()=>{try{const g=(await navigator.clipboard.readText()||"").trim();a(g),p(g)}catch(g){console.error(g)}},children:e.jsx(me,{})})})}),e.jsxs(m,{mb:2,mt:.5,children:[S&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.duplicateVideo")}),!S&&x&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.videoDialogNoSrc")})]}),f.current?e.jsx("iframe",{width:"100%",height:"315",title:`video-${f.current}`,src:Ue(f.current),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,border:"1px solid #eee"}):e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:315,width:"100%",border:"1px solid #eee"},children:u?e.jsx(M,{size:40}):e.jsx(P,{variant:"h5",color:"text.secondary",children:e.jsx(ge,{})})})]}),e.jsxs(_e,{children:[e.jsx($,{onClick:()=>r(),children:t("studio.cancel")}),T&&e.jsx($,{variant:"contained",color:"error",onClick:()=>r(null,s),children:t("studio.delete")}),_&&e.jsx($,{variant:"contained",onClick:()=>p(i),disabled:!i||u,children:t("studio.preview")}),!T&&!_&&e.jsx($,{variant:"contained",onClick:()=>r(f.current),disabled:!f.current||s===f.current||S,children:t("studio.confirm")})]})]});function p(g){f.current="";const v=Ae(g);j(g?!v:!1),v&&(y(!0),fetch(v).then(N=>{N.ok?(f.current=g,j(!1)):j(!0)}).catch(()=>{j(!0)}).finally(()=>y(!1)))}}Y.propTypes={handleOperateVideo:w.func.isRequired,t:w.func.isRequired,defaultUrl:w.string,videos:w.array.isRequired};Y.defaultProps={defaultUrl:""};function ge(){return e.jsxs("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:48,width:48,children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"black","fill-opacity":"0.54"}),e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6667 28L21 17.5V38.5L39.6667 28Z",fill:"white"})]})}const Ze=Oe.div`
3
3
  margin-top: 24px;
4
4
  .image-wrapper {
5
5
  margin-bottom: 16px;
@@ -1 +1 @@
1
- import{j as f,aM as x,E as a}from"./vendor-mui-core-BlX2BJoA.js";import{d as j,Q as E}from"./vendor-arcblock-CiLB_TiI.js";import{j as g}from"./vendor-utils-DCpRgzMR.js";import{y,z as P,V as $,W as h,X as R}from"./index-wG4Kh8A_.js";function A({blocklet:r,ancestors:p=[]}){var i;const s=y(),{inService:n}=s,e=P(r==null?void 0:r.status)||$(r==null?void 0:r.status),o=`?v=${(i=r==null?void 0:r.meta)==null?void 0:i.version}${e?"~":""}`;let t=n?`${g(R,j.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${o}`:g(s.imgPrefix,"blocklet.png");if(r.source==="registry"&&r.deployedFrom&&r.meta.logo)t=`${g(r.deployedFrom,h(r.meta.bundleDid,r.meta.logo))}${o}`;else{const u=window.env.apiPrefix||"/",d=p.concat(r),m=n?d.slice(1):d;t=`${g(u,`/blocklet/logo-bundle${m.map(c=>`/${c.meta.did}`).join("")}`)}${o}`}return{logoUrl:t,inService:n}}function v({blocklet:r,style:p,size:s,ancestors:n,...e}){const o=y(),{logoUrl:t,inService:i}=A({blocklet:r,ancestors:n}),{variant:u}=e,d=i?()=>{}:c=>{c.target.src=`${o.imgPrefix}/blocklet.png`};let m=f.jsx("img",{src:t,onError:d,alt:r.meta.name,style:{width:s}});return r.meta.logo||(m=f.jsx(E,{did:r.meta.did||"",responsive:!0})),f.jsx(x,{variant:u||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},p),...e,children:m})}v.propTypes={blocklet:a.object.isRequired,style:a.object,size:a.oneOfType([a.number,a.string]),ancestors:a.array};v.defaultProps={style:{},size:40,ancestors:[]};export{v as B};
1
+ import{j as f,aM as x,E as a}from"./vendor-mui-core-BlX2BJoA.js";import{d as j,Q as E}from"./vendor-arcblock-CiLB_TiI.js";import{j as g}from"./vendor-utils-DCpRgzMR.js";import{y,z as P,V as $,W as h,X as R}from"./index-DgZ1ypbb.js";function A({blocklet:r,ancestors:p=[]}){var i;const s=y(),{inService:n}=s,e=P(r==null?void 0:r.status)||$(r==null?void 0:r.status),o=`?v=${(i=r==null?void 0:r.meta)==null?void 0:i.version}${e?"~":""}`;let t=n?`${g(R,j.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${o}`:g(s.imgPrefix,"blocklet.png");if(r.source==="registry"&&r.deployedFrom&&r.meta.logo)t=`${g(r.deployedFrom,h(r.meta.bundleDid,r.meta.logo))}${o}`;else{const u=window.env.apiPrefix||"/",d=p.concat(r),m=n?d.slice(1):d;t=`${g(u,`/blocklet/logo-bundle${m.map(c=>`/${c.meta.did}`).join("")}`)}${o}`}return{logoUrl:t,inService:n}}function v({blocklet:r,style:p,size:s,ancestors:n,...e}){const o=y(),{logoUrl:t,inService:i}=A({blocklet:r,ancestors:n}),{variant:u}=e,d=i?()=>{}:c=>{c.target.src=`${o.imgPrefix}/blocklet.png`};let m=f.jsx("img",{src:t,onError:d,alt:r.meta.name,style:{width:s}});return r.meta.logo||(m=f.jsx(E,{did:r.meta.did||"",responsive:!0})),f.jsx(x,{variant:u||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},p),...e,children:m})}v.propTypes={blocklet:a.object.isRequired,style:a.object,size:a.oneOfType([a.number,a.string]),ancestors:a.array};v.defaultProps={style:{},size:40,ancestors:[]};export{v as B};
@@ -1,4 +1,4 @@
1
- import{aa as d,j as e,a2 as P,a3 as h,E as T}from"./vendor-mui-core-BlX2BJoA.js";import{g as B,aa as _,z as v,d as $}from"./vendor-arcblock-CiLB_TiI.js";import{C as A}from"./vendor-hooks-CLzfFpO7.js";import{r as a}from"./vendor-react-D-afvo_7.js";import{j as F}from"./vendor-utils-DCpRgzMR.js";import{o as I,p as M,d as N,e as z,af as W,ao as O,P as V}from"./index-wG4Kh8A_.js";import{L as X}from"./launch-result-message-zXOcVqEr.js";import{g as H}from"./get-safe-url-RTzyOi09.js";import{S as E}from"./button-Bo5ZAcJk.js";import{S as K}from"./layout-BRN0uPvp.js";import"./content-layout-CK_AzZZ-.js";const Q=d(X)`
1
+ import{aa as d,j as e,a2 as P,a3 as h,E as T}from"./vendor-mui-core-BlX2BJoA.js";import{g as B,aa as _,z as v,d as $}from"./vendor-arcblock-CiLB_TiI.js";import{C as A}from"./vendor-hooks-CLzfFpO7.js";import{r as a}from"./vendor-react-D-afvo_7.js";import{j as F}from"./vendor-utils-DCpRgzMR.js";import{o as I,p as M,d as N,e as z,af as W,ao as O,P as V}from"./index-DgZ1ypbb.js";import{L as X}from"./launch-result-message-zXOcVqEr.js";import{g as H}from"./get-safe-url-RTzyOi09.js";import{S as E}from"./button-Bo5ZAcJk.js";import{S as K}from"./layout-Bb4get3W.js";import"./content-layout-CK_AzZZ-.js";const Q=d(X)`
2
2
  && .result-footer {
3
3
  height: 120px;
4
4
  > div {
@@ -1,4 +1,4 @@
1
- var Sw=Object.defineProperty;var Pw=(e,t,n)=>t in e?Sw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Uo=(e,t,n)=>Pw(e,typeof t!="symbol"?t+"":t,n);import{a1 as Se,j as w,a3 as Re,a4 as Fn,E as ie,cC as Qb,cD as Zb,cE as Tw,bs as Jb,aa as Lt,cF as Js,bR as Gt,H as el,cG as di,br as Xn,c2 as ut,aw as Ot,cH as kw,cI as Dw,cJ as Rw,cp as Te,co as Ze,cr as Ew,c as Pe,_ as L,cK as gr,cL as Ke,cM as Mw,cN as bs,b as zn,cO as Ka,cP as $w,c3 as Ow,cQ as Iw,bS as _w,ck as Aw,cR as Bw,c4 as jw,g as ze,a as Le,k as Fe,cS as ev,u as Ht,cT as Lw,d as tn,cU as tl,cV as Mp,o as rn,cW as tv,i as jr,cX as Nw,cY as fi,cZ as Fw,c_ as $p,f as hd,c$ as nv,d0 as zw,d1 as Ww,p as nl,J as Vw,d2 as Uw,bm as Op,ad as Ip,M as Zt,I as bn,t as qw,al as Hn,T as vs,a2 as Lr,e as Hw,aM as Gw,aQ as rl,d3 as Kw,bx as Yw,aN as Su,by as _p,aK as rv,x as Xw,D as Ap,ab as Bp,r as jp,bJ as Lp,bN as Bi,y as Qw,aO as Zw}from"./vendor-mui-core-BlX2BJoA.js";import{j as ov}from"./vendor-utils-DCpRgzMR.js";import{r as S,R as Jw,d as pi,a as $e,g as gd,b as tt,e as av,c as eS,k as iv}from"./vendor-react-D-afvo_7.js";import{ad as wr,g as Xt,z as ot,cC as tS,cD as nS,cm as Ce,aY as Np,aZ as rS,a_ as oS,a$ as aS,bf as iS,ao as mi,aO as Fp,bb as sS,cE as lS,cF as cS,af as Sr,aG as uS,al as bd,d as je,aa as dS,aq as fS,b2 as Yn,ag as ji,aM as pS}from"./vendor-arcblock-CiLB_TiI.js";import{d as sv}from"./Add-2VCvBnGd.js";import{F as mS,d as vd}from"./form-text-input-CT57jMfW.js";import{y as Kt,B as Wr,L as Ya,h as Gn,f as mt,al as bo,aB as hS,a5 as Nr,a4 as yd,aa as Pu,ao as lv,aC as cv,aD as gS,b as $a,m as oc,aE as bS}from"./index-wG4Kh8A_.js";import{b as vS,W as vo,c as yS,e as Cd,B as uv,f as CS}from"./dashboard-Ca8O6iHB.js";import{S as xS}from"./switch-control-D-IROOaC.js";import{P as Tu,w as Do}from"./permission-SgzW7fBj.js";import{r as wS}from"./index-DcfIKM1A.js";import{o as SS,e as PS,i as TS,p as kS,g as DS,d as zp,c as RS,b as nt,_ as Je,r as Pr}from"./slicedToArray-DNAGECrJ.js";import{r as Ye,a as xd,t as Yt,b as qe,e as ku,d as ES,s as ys,g as Du,m as dv,c as fv,f as MS,h as $S,i as Ru,j as pv,k as OS,l as IS,n as mv,o as wd,p as Wp,q as _S,u as Vp,v as AS,w as BS,x as ar,y as jS,z as Up,A as LS,B as ac,C as qp,D as NS,E as Li,F as Yr,G as FS,H as zS,I as Ni,J as ic,K as Fi,L as sc,M as lc,N as WS,O as VS,P as US,Q as qS,R as HS,S as GS,T as KS,U as YS,V as XS,W as QS}from"./index-BP6sEHV5.js";import{a as Qe,u as Me,r as Xa,d as Vr,b as ZS,w as Cs,g as hv,e as gv,c as JS,o as Eu}from"./raf-schd.esm-Cxhj8umC.js";import{C as Hp}from"./click-to-copy-DNu8CktB.js";import{d as Gp}from"./ChevronRight-B8pf890W.js";import{d as e1}from"./ChevronLeft-BfF37o7u.js";import{d as t1}from"./ArrowDropDown-BdHlAt9a.js";import{f as fn}from"./format-error-C0Ke3VXF.js";import{A as n1,a as r1,b as o1,d as bv,B as a1,f as i1}from"./add-component-core-DSlHbXth.js";import{C as Ro}from"./confirm-C0rryr4e.js";import{v as s1,a as xs}from"./util-ao8gSgii.js";import{d as l1}from"./LockIcon-DQtUl5vk.js";import{d as vv}from"./Launch-BOCFiYoz.js";import{C as c1}from"./item-DqTNLhw3.js";import{d as u1}from"./InfoOutlined-BFP30UJa.js";import{B as d1}from"./bundle-avatar-DqROxHMq.js";import{d as f1}from"./PlayArrow-oA7gV2MA.js";import{A as yv}from"./actions-BEpPU26q.js";import{I as cc}from"./index-mnKcDZP2.js";import{W as p1}from"./did-address-49U3oRW2.js";import{t as m1}from"./toUpper-BQrWudMF.js";import"./vendor-hooks-CLzfFpO7.js";import"./Done-BCESxXX2.js";import"./logo-uploader-BA8U554_.js";import"./index-DoZ2YM4T.js";import"./EditIcon-BF2eKBD0.js";import"./useLocalStorage-CSyjxtUy.js";import"./get-safe-url-CVhAz4Qr.js";import"./index-CQT4qLcx.js";import"./session-ocxAyn6f.js";import"./useAsyncRetry-KXMle3o0.js";import"./useAsync-cdOzMWPw.js";import"./useSetState-Crt4S51m.js";import"./launch-result-message-zXOcVqEr.js";import"./page-header-6EUz18Qu.js";import"./config-space-Dofzrh5m.js";import"./api-C0C4sDJA.js";import"./index-IdPbsC-k.js";import"./Google-rxW6OGq8.js";import"./index-Bi1xb9O8.js";import"./index-BGO2DsWz.js";import"./use-mobile-DAR0hmJd.js";import"./content-layout-CK_AzZZ-.js";import"./connect-to-Dsq1ST9l.js";import"./DeleteOutline-VzoIEqow.js";import"./shorten-label-BnvWOC_s.js";import"./MoreHoriz-DnFq43xg.js";var Sd={},h1=Se;Object.defineProperty(Sd,"__esModule",{value:!0});var Cv=Sd.default=void 0,g1=h1(wr()),b1=w;Cv=Sd.default=(0,g1.default)((0,b1.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");var Pd={},v1=Se;Object.defineProperty(Pd,"__esModule",{value:!0});var xv=Pd.default=void 0,y1=v1(wr()),C1=w;xv=Pd.default=(0,y1.default)((0,C1.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function Td({children:e,...t}){var l;const{t:n}=Xt(),{api:r}=Kt(),{blocklet:o}=Wr(),a=(l=o==null?void 0:o.settings)==null?void 0:l.autoCheckUpdate,i=async d=>{await r.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:d}})},s=async()=>{try{const d=!(a!=null&&a.enabled);await i({enabled:d}),ot.success(n(d?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(d){ot.error(d.message)}},c=!!(a!=null&&a.enabled);return w.jsxs(Re,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,w.jsx(Fn,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:w.jsx("div",{children:w.jsx(xS,{checked:c,onChange:s,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Td.propTypes={children:ie.any};Td.defaultProps={children:null};var kd={},x1=Se;Object.defineProperty(kd,"__esModule",{value:!0});var ol=kd.default=void 0,w1=x1(wr()),S1=w;ol=kd.default=(0,w1.default)((0,S1.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var wv={},qo={},uc={};function Sv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Sv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Sv(e))&&(r&&(r+=" "),r+=t);return r}function Ne(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let c=0;c<a.length;c+=1){const l=a[c];l&&(i+=(s===!0?"":" ")+t(l),s=!1,n&&n[l]&&(i+=" "+n[l]))}r[o]=i}return r}function ws(e){return typeof e=="string"}function Mu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Pv(e){if(typeof e!="string")throw new Error(Mu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Tv(e){if(!fr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Tv(e[n])}),t}function Br(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return fr(e)&&fr(t)&&Object.keys(t).forEach(o=>{fr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&fr(e[o])?r[o]=Br(e[o],t[o],n):n.clone?r[o]=fr(t[o])?Tv(t[o]):t[o]:r[o]=t[o]}),r}function La(e,t){return t?Br(e,t,{clone:!1}):e}function P1(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,s;const a=/min-width:\s*([0-9.]+)/;return+(((i=r.match(a))==null?void 0:i[1])||0)-+(((s=o.match(a))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function T1(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function k1(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function D1(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const c=t(e.breakpoints.not(...s),i);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const al={xs:0,sm:600,md:900,lg:1200,xl:1536},Kp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${al[e]}px)`},R1={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:al[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||Kp;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const a=r.breakpoints||Kp;return Object.keys(t).reduce((i,s)=>{if(T1(a.keys,s)){const c=k1(r.containerQueries?r:R1,s);c&&(i[c]=n(t[s],s))}else if(Object.keys(a.values||al).includes(s)){const c=a.up(s);i[c]=n(t[s],s)}else{const c=s;i[c]=t[c]}return i},{})}return n(t)}function E1(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function M1(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function il(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Ss(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=il(e,n)||r,t&&(o=t(o,r,e)),o}function Et(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],c=i.theme,l=il(c,r)||{};return Qn(i,s,u=>{let f=Ss(l,o,u);return u===f&&typeof u=="string"&&(f=Ss(l,o,`${t}${u==="default"?"":Pv(u)}`,u)),n===!1?f:{[n]:f}})};return a.propTypes={},a.filterProps=[t],a}function $1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const O1={m:"margin",p:"padding"},I1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_1=$1(e=>{if(e.length>2)if(Yp[e])e=Yp[e];else return[e];const[t,n]=e.split(""),r=O1[t],o=I1[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),Dd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Dd,...Rd];function hi(e,t,n,r){const o=il(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function Ed(e){return hi(e,"spacing",8)}function gi(e,t){return typeof t=="string"||t==null?t:e(t)}function A1(e,t){return n=>e.reduce((r,o)=>(r[o]=gi(t,n),r),{})}function B1(e,t,n,r){if(!t.includes(n))return null;const o=_1(n),a=A1(o,r),i=e[n];return Qn(e,i,a)}function kv(e,t){const n=Ed(e.theme);return Object.keys(e).map(r=>B1(e,t,r,n)).reduce(La,{})}function Ct(e){return kv(e,Dd)}Ct.propTypes={};Ct.filterProps=Dd;function xt(e){return kv(e,Rd)}xt.propTypes={};xt.filterProps=Rd;function sl(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?La(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function pn(e){return typeof e!="number"?e:`${e}px solid`}function Pn(e,t){return Et({prop:e,themeKey:"borders",transform:t})}const j1=Pn("border",pn),L1=Pn("borderTop",pn),N1=Pn("borderRight",pn),F1=Pn("borderBottom",pn),z1=Pn("borderLeft",pn),W1=Pn("borderColor"),V1=Pn("borderTopColor"),U1=Pn("borderRightColor"),q1=Pn("borderBottomColor"),H1=Pn("borderLeftColor"),G1=Pn("outline",pn),K1=Pn("outlineColor"),ll=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=hi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:gi(t,r)});return Qn(e,e.borderRadius,n)}return null};ll.propTypes={};ll.filterProps=["borderRadius"];sl(j1,L1,N1,F1,z1,W1,V1,U1,q1,H1,ll,G1,K1);const cl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=hi(e.theme,"spacing",8),n=r=>({gap:gi(t,r)});return Qn(e,e.gap,n)}return null};cl.propTypes={};cl.filterProps=["gap"];const ul=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=hi(e.theme,"spacing",8),n=r=>({columnGap:gi(t,r)});return Qn(e,e.columnGap,n)}return null};ul.propTypes={};ul.filterProps=["columnGap"];const dl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=hi(e.theme,"spacing",8),n=r=>({rowGap:gi(t,r)});return Qn(e,e.rowGap,n)}return null};dl.propTypes={};dl.filterProps=["rowGap"];const Y1=Et({prop:"gridColumn"}),X1=Et({prop:"gridRow"}),Q1=Et({prop:"gridAutoFlow"}),Z1=Et({prop:"gridAutoColumns"}),J1=Et({prop:"gridAutoRows"}),eP=Et({prop:"gridTemplateColumns"}),tP=Et({prop:"gridTemplateRows"}),nP=Et({prop:"gridTemplateAreas"}),rP=Et({prop:"gridArea"});sl(cl,ul,dl,Y1,X1,Q1,Z1,J1,eP,tP,nP,rP);function fo(e,t){return t==="grey"?t:e}const oP=Et({prop:"color",themeKey:"palette",transform:fo}),aP=Et({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fo}),iP=Et({prop:"backgroundColor",themeKey:"palette",transform:fo});sl(oP,aP,iP);function Jt(e){return e<=1&&e!==0?`${e*100}%`:e}const sP=Et({prop:"width",transform:Jt}),Md=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,a,i,s,c;const r=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[n])||al[n];return r?((c=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Jt(n)}};return Qn(e,e.maxWidth,t)}return null};Md.filterProps=["maxWidth"];const lP=Et({prop:"minWidth",transform:Jt}),cP=Et({prop:"height",transform:Jt}),uP=Et({prop:"maxHeight",transform:Jt}),dP=Et({prop:"minHeight",transform:Jt});Et({prop:"size",cssProperty:"width",transform:Jt});Et({prop:"size",cssProperty:"height",transform:Jt});const fP=Et({prop:"boxSizing"});sl(sP,Md,lP,cP,uP,dP,fP);const bi={border:{themeKey:"borders",transform:pn},borderTop:{themeKey:"borders",transform:pn},borderRight:{themeKey:"borders",transform:pn},borderBottom:{themeKey:"borders",transform:pn},borderLeft:{themeKey:"borders",transform:pn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ll},color:{themeKey:"palette",transform:fo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fo},backgroundColor:{themeKey:"palette",transform:fo},p:{style:xt},pt:{style:xt},pr:{style:xt},pb:{style:xt},pl:{style:xt},px:{style:xt},py:{style:xt},padding:{style:xt},paddingTop:{style:xt},paddingRight:{style:xt},paddingBottom:{style:xt},paddingLeft:{style:xt},paddingX:{style:xt},paddingY:{style:xt},paddingInline:{style:xt},paddingInlineStart:{style:xt},paddingInlineEnd:{style:xt},paddingBlock:{style:xt},paddingBlockStart:{style:xt},paddingBlockEnd:{style:xt},m:{style:Ct},mt:{style:Ct},mr:{style:Ct},mb:{style:Ct},ml:{style:Ct},mx:{style:Ct},my:{style:Ct},margin:{style:Ct},marginTop:{style:Ct},marginRight:{style:Ct},marginBottom:{style:Ct},marginLeft:{style:Ct},marginX:{style:Ct},marginY:{style:Ct},marginInline:{style:Ct},marginInlineStart:{style:Ct},marginInlineEnd:{style:Ct},marginBlock:{style:Ct},marginBlockStart:{style:Ct},marginBlockEnd:{style:Ct},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:cl},rowGap:{style:dl},columnGap:{style:ul},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jt},maxWidth:{style:Md},minWidth:{transform:Jt},height:{transform:Jt},maxHeight:{transform:Jt},minHeight:{transform:Jt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pP(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function mP(e,t){return typeof e=="function"?e(t):e}function hP(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:d,style:u}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const f=il(o,l)||{};return u?u(i):Qn(i,r,b=>{let h=Ss(f,d,b);return b===h&&typeof b=="string"&&(h=Ss(f,d,`${n}${b==="default"?"":Pv(b)}`,b)),c===!1?h:{[c]:h}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??bi;function i(s){let c=s;if(typeof s=="function")c=s(o);else if(typeof s!="object")return s;if(!c)return null;const l=E1(o.breakpoints),d=Object.keys(l);let u=l;return Object.keys(c).forEach(f=>{const m=mP(c[f],o);if(m!=null)if(typeof m=="object")if(a[f])u=La(u,e(f,m,o,a));else{const b=Qn({theme:o},m,h=>({[f]:h}));pP(b,m)?u[f]=t({sx:m,theme:o}):u=La(u,b)}else u=La(u,e(f,m,o,a))}),P1(o,M1(d,u))}return Array.isArray(r)?r.map(i):i(r)}return t}const Ur=hP();Ur.filterProps=["sx"];const gP=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??bi;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Dv(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=gP(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return fr(s)?{...r,...s}:r}:a={...r,...t},{...o,sx:a}}const bP=e=>{const t=Zb(e);class n extends Tw{constructor(o){super(o),this.prepend=t.sheet.prepend}}return t.sheet=new n({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let $u;typeof document=="object"&&($u=bP({key:"css",prepend:!0}));function vP(e){const{injectFirst:t,children:n}=e;return t&&$u?w.jsx(Qb,{value:$u,children:n}):n}function yP(e){return e==null||Object.keys(e).length===0}function Rv(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(yP(o)?n:o):t;return w.jsx(Jb,{styles:r})}/**
1
+ var Sw=Object.defineProperty;var Pw=(e,t,n)=>t in e?Sw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Uo=(e,t,n)=>Pw(e,typeof t!="symbol"?t+"":t,n);import{a1 as Se,j as w,a3 as Re,a4 as Fn,E as ie,cC as Qb,cD as Zb,cE as Tw,bs as Jb,aa as Lt,cF as Js,bR as Gt,H as el,cG as di,br as Xn,c2 as ut,aw as Ot,cH as kw,cI as Dw,cJ as Rw,cp as Te,co as Ze,cr as Ew,c as Pe,_ as L,cK as gr,cL as Ke,cM as Mw,cN as bs,b as zn,cO as Ka,cP as $w,c3 as Ow,cQ as Iw,bS as _w,ck as Aw,cR as Bw,c4 as jw,g as ze,a as Le,k as Fe,cS as ev,u as Ht,cT as Lw,d as tn,cU as tl,cV as Mp,o as rn,cW as tv,i as jr,cX as Nw,cY as fi,cZ as Fw,c_ as $p,f as hd,c$ as nv,d0 as zw,d1 as Ww,p as nl,J as Vw,d2 as Uw,bm as Op,ad as Ip,M as Zt,I as bn,t as qw,al as Hn,T as vs,a2 as Lr,e as Hw,aM as Gw,aQ as rl,d3 as Kw,bx as Yw,aN as Su,by as _p,aK as rv,x as Xw,D as Ap,ab as Bp,r as jp,bJ as Lp,bN as Bi,y as Qw,aO as Zw}from"./vendor-mui-core-BlX2BJoA.js";import{j as ov}from"./vendor-utils-DCpRgzMR.js";import{r as S,R as Jw,d as pi,a as $e,g as gd,b as tt,e as av,c as eS,k as iv}from"./vendor-react-D-afvo_7.js";import{ad as wr,g as Xt,z as ot,cC as tS,cD as nS,cm as Ce,aY as Np,aZ as rS,a_ as oS,a$ as aS,bf as iS,ao as mi,aO as Fp,bb as sS,cE as lS,cF as cS,af as Sr,aG as uS,al as bd,d as je,aa as dS,aq as fS,b2 as Yn,ag as ji,aM as pS}from"./vendor-arcblock-CiLB_TiI.js";import{d as sv}from"./Add-2VCvBnGd.js";import{F as mS,d as vd}from"./form-text-input-DB90dWTR.js";import{y as Kt,B as Wr,L as Ya,h as Gn,f as mt,al as bo,aB as hS,a5 as Nr,a4 as yd,aa as Pu,ao as lv,aC as cv,aD as gS,b as $a,m as oc,aE as bS}from"./index-DgZ1ypbb.js";import{b as vS,W as vo,c as yS,e as Cd,B as uv,f as CS}from"./dashboard-D7XqaqMa.js";import{S as xS}from"./switch-control-D-IROOaC.js";import{P as Tu,w as Do}from"./permission-SgzW7fBj.js";import{r as wS}from"./index-DcfIKM1A.js";import{o as SS,e as PS,i as TS,p as kS,g as DS,d as zp,c as RS,b as nt,_ as Je,r as Pr}from"./slicedToArray-DNAGECrJ.js";import{r as Ye,a as xd,t as Yt,b as qe,e as ku,d as ES,s as ys,g as Du,m as dv,c as fv,f as MS,h as $S,i as Ru,j as pv,k as OS,l as IS,n as mv,o as wd,p as Wp,q as _S,u as Vp,v as AS,w as BS,x as ar,y as jS,z as Up,A as LS,B as ac,C as qp,D as NS,E as Li,F as Yr,G as FS,H as zS,I as Ni,J as ic,K as Fi,L as sc,M as lc,N as WS,O as VS,P as US,Q as qS,R as HS,S as GS,T as KS,U as YS,V as XS,W as QS}from"./index-BP6sEHV5.js";import{a as Qe,u as Me,r as Xa,d as Vr,b as ZS,w as Cs,g as hv,e as gv,c as JS,o as Eu}from"./raf-schd.esm-Cxhj8umC.js";import{C as Hp}from"./click-to-copy-DNu8CktB.js";import{d as Gp}from"./ChevronRight-B8pf890W.js";import{d as e1}from"./ChevronLeft-BfF37o7u.js";import{d as t1}from"./ArrowDropDown-BdHlAt9a.js";import{f as fn}from"./format-error-C0Ke3VXF.js";import{A as n1,a as r1,b as o1,d as bv,B as a1,f as i1}from"./add-component-core-BWkCzqAe.js";import{C as Ro}from"./confirm-CucPiuHr.js";import{v as s1,a as xs}from"./util-Ci0WMGC4.js";import{d as l1}from"./LockIcon-DQtUl5vk.js";import{d as vv}from"./Launch-BOCFiYoz.js";import{C as c1}from"./item-BKMUYpdp.js";import{d as u1}from"./InfoOutlined-BFP30UJa.js";import{B as d1}from"./bundle-avatar-B19h7IBb.js";import{d as f1}from"./PlayArrow-oA7gV2MA.js";import{A as yv}from"./actions-BEpPU26q.js";import{I as cc}from"./index-mnKcDZP2.js";import{W as p1}from"./did-address-49U3oRW2.js";import{t as m1}from"./toUpper-BQrWudMF.js";import"./vendor-hooks-CLzfFpO7.js";import"./Done-BCESxXX2.js";import"./logo-uploader-C1-XCCMv.js";import"./index-DoZ2YM4T.js";import"./EditIcon-BF2eKBD0.js";import"./useLocalStorage-CSyjxtUy.js";import"./get-safe-url-CVhAz4Qr.js";import"./index-8ktBk2aq.js";import"./session-ocxAyn6f.js";import"./useAsyncRetry-KXMle3o0.js";import"./useAsync-cdOzMWPw.js";import"./useSetState-Crt4S51m.js";import"./launch-result-message-zXOcVqEr.js";import"./page-header-6EUz18Qu.js";import"./config-space-DJZf5rEq.js";import"./api-C0C4sDJA.js";import"./index-Cn9hlGXz.js";import"./Google-rxW6OGq8.js";import"./index-Bi1xb9O8.js";import"./index-BGO2DsWz.js";import"./use-mobile-DAR0hmJd.js";import"./content-layout-CK_AzZZ-.js";import"./connect-to-DfzH7XJt.js";import"./DeleteOutline-VzoIEqow.js";import"./shorten-label-BnvWOC_s.js";import"./MoreHoriz-DnFq43xg.js";var Sd={},h1=Se;Object.defineProperty(Sd,"__esModule",{value:!0});var Cv=Sd.default=void 0,g1=h1(wr()),b1=w;Cv=Sd.default=(0,g1.default)((0,b1.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");var Pd={},v1=Se;Object.defineProperty(Pd,"__esModule",{value:!0});var xv=Pd.default=void 0,y1=v1(wr()),C1=w;xv=Pd.default=(0,y1.default)((0,C1.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function Td({children:e,...t}){var l;const{t:n}=Xt(),{api:r}=Kt(),{blocklet:o}=Wr(),a=(l=o==null?void 0:o.settings)==null?void 0:l.autoCheckUpdate,i=async d=>{await r.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:d}})},s=async()=>{try{const d=!(a!=null&&a.enabled);await i({enabled:d}),ot.success(n(d?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(d){ot.error(d.message)}},c=!!(a!=null&&a.enabled);return w.jsxs(Re,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,w.jsx(Fn,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:w.jsx("div",{children:w.jsx(xS,{checked:c,onChange:s,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Td.propTypes={children:ie.any};Td.defaultProps={children:null};var kd={},x1=Se;Object.defineProperty(kd,"__esModule",{value:!0});var ol=kd.default=void 0,w1=x1(wr()),S1=w;ol=kd.default=(0,w1.default)((0,S1.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var wv={},qo={},uc={};function Sv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Sv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Sv(e))&&(r&&(r+=" "),r+=t);return r}function Ne(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let c=0;c<a.length;c+=1){const l=a[c];l&&(i+=(s===!0?"":" ")+t(l),s=!1,n&&n[l]&&(i+=" "+n[l]))}r[o]=i}return r}function ws(e){return typeof e=="string"}function Mu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Pv(e){if(typeof e!="string")throw new Error(Mu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Tv(e){if(!fr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Tv(e[n])}),t}function Br(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return fr(e)&&fr(t)&&Object.keys(t).forEach(o=>{fr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&fr(e[o])?r[o]=Br(e[o],t[o],n):n.clone?r[o]=fr(t[o])?Tv(t[o]):t[o]:r[o]=t[o]}),r}function La(e,t){return t?Br(e,t,{clone:!1}):e}function P1(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,s;const a=/min-width:\s*([0-9.]+)/;return+(((i=r.match(a))==null?void 0:i[1])||0)-+(((s=o.match(a))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function T1(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function k1(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function D1(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const c=t(e.breakpoints.not(...s),i);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const al={xs:0,sm:600,md:900,lg:1200,xl:1536},Kp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${al[e]}px)`},R1={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:al[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||Kp;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const a=r.breakpoints||Kp;return Object.keys(t).reduce((i,s)=>{if(T1(a.keys,s)){const c=k1(r.containerQueries?r:R1,s);c&&(i[c]=n(t[s],s))}else if(Object.keys(a.values||al).includes(s)){const c=a.up(s);i[c]=n(t[s],s)}else{const c=s;i[c]=t[c]}return i},{})}return n(t)}function E1(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function M1(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function il(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Ss(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=il(e,n)||r,t&&(o=t(o,r,e)),o}function Et(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],c=i.theme,l=il(c,r)||{};return Qn(i,s,u=>{let f=Ss(l,o,u);return u===f&&typeof u=="string"&&(f=Ss(l,o,`${t}${u==="default"?"":Pv(u)}`,u)),n===!1?f:{[n]:f}})};return a.propTypes={},a.filterProps=[t],a}function $1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const O1={m:"margin",p:"padding"},I1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_1=$1(e=>{if(e.length>2)if(Yp[e])e=Yp[e];else return[e];const[t,n]=e.split(""),r=O1[t],o=I1[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),Dd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Dd,...Rd];function hi(e,t,n,r){const o=il(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function Ed(e){return hi(e,"spacing",8)}function gi(e,t){return typeof t=="string"||t==null?t:e(t)}function A1(e,t){return n=>e.reduce((r,o)=>(r[o]=gi(t,n),r),{})}function B1(e,t,n,r){if(!t.includes(n))return null;const o=_1(n),a=A1(o,r),i=e[n];return Qn(e,i,a)}function kv(e,t){const n=Ed(e.theme);return Object.keys(e).map(r=>B1(e,t,r,n)).reduce(La,{})}function Ct(e){return kv(e,Dd)}Ct.propTypes={};Ct.filterProps=Dd;function xt(e){return kv(e,Rd)}xt.propTypes={};xt.filterProps=Rd;function sl(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?La(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function pn(e){return typeof e!="number"?e:`${e}px solid`}function Pn(e,t){return Et({prop:e,themeKey:"borders",transform:t})}const j1=Pn("border",pn),L1=Pn("borderTop",pn),N1=Pn("borderRight",pn),F1=Pn("borderBottom",pn),z1=Pn("borderLeft",pn),W1=Pn("borderColor"),V1=Pn("borderTopColor"),U1=Pn("borderRightColor"),q1=Pn("borderBottomColor"),H1=Pn("borderLeftColor"),G1=Pn("outline",pn),K1=Pn("outlineColor"),ll=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=hi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:gi(t,r)});return Qn(e,e.borderRadius,n)}return null};ll.propTypes={};ll.filterProps=["borderRadius"];sl(j1,L1,N1,F1,z1,W1,V1,U1,q1,H1,ll,G1,K1);const cl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=hi(e.theme,"spacing",8),n=r=>({gap:gi(t,r)});return Qn(e,e.gap,n)}return null};cl.propTypes={};cl.filterProps=["gap"];const ul=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=hi(e.theme,"spacing",8),n=r=>({columnGap:gi(t,r)});return Qn(e,e.columnGap,n)}return null};ul.propTypes={};ul.filterProps=["columnGap"];const dl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=hi(e.theme,"spacing",8),n=r=>({rowGap:gi(t,r)});return Qn(e,e.rowGap,n)}return null};dl.propTypes={};dl.filterProps=["rowGap"];const Y1=Et({prop:"gridColumn"}),X1=Et({prop:"gridRow"}),Q1=Et({prop:"gridAutoFlow"}),Z1=Et({prop:"gridAutoColumns"}),J1=Et({prop:"gridAutoRows"}),eP=Et({prop:"gridTemplateColumns"}),tP=Et({prop:"gridTemplateRows"}),nP=Et({prop:"gridTemplateAreas"}),rP=Et({prop:"gridArea"});sl(cl,ul,dl,Y1,X1,Q1,Z1,J1,eP,tP,nP,rP);function fo(e,t){return t==="grey"?t:e}const oP=Et({prop:"color",themeKey:"palette",transform:fo}),aP=Et({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fo}),iP=Et({prop:"backgroundColor",themeKey:"palette",transform:fo});sl(oP,aP,iP);function Jt(e){return e<=1&&e!==0?`${e*100}%`:e}const sP=Et({prop:"width",transform:Jt}),Md=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,a,i,s,c;const r=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[n])||al[n];return r?((c=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Jt(n)}};return Qn(e,e.maxWidth,t)}return null};Md.filterProps=["maxWidth"];const lP=Et({prop:"minWidth",transform:Jt}),cP=Et({prop:"height",transform:Jt}),uP=Et({prop:"maxHeight",transform:Jt}),dP=Et({prop:"minHeight",transform:Jt});Et({prop:"size",cssProperty:"width",transform:Jt});Et({prop:"size",cssProperty:"height",transform:Jt});const fP=Et({prop:"boxSizing"});sl(sP,Md,lP,cP,uP,dP,fP);const bi={border:{themeKey:"borders",transform:pn},borderTop:{themeKey:"borders",transform:pn},borderRight:{themeKey:"borders",transform:pn},borderBottom:{themeKey:"borders",transform:pn},borderLeft:{themeKey:"borders",transform:pn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ll},color:{themeKey:"palette",transform:fo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fo},backgroundColor:{themeKey:"palette",transform:fo},p:{style:xt},pt:{style:xt},pr:{style:xt},pb:{style:xt},pl:{style:xt},px:{style:xt},py:{style:xt},padding:{style:xt},paddingTop:{style:xt},paddingRight:{style:xt},paddingBottom:{style:xt},paddingLeft:{style:xt},paddingX:{style:xt},paddingY:{style:xt},paddingInline:{style:xt},paddingInlineStart:{style:xt},paddingInlineEnd:{style:xt},paddingBlock:{style:xt},paddingBlockStart:{style:xt},paddingBlockEnd:{style:xt},m:{style:Ct},mt:{style:Ct},mr:{style:Ct},mb:{style:Ct},ml:{style:Ct},mx:{style:Ct},my:{style:Ct},margin:{style:Ct},marginTop:{style:Ct},marginRight:{style:Ct},marginBottom:{style:Ct},marginLeft:{style:Ct},marginX:{style:Ct},marginY:{style:Ct},marginInline:{style:Ct},marginInlineStart:{style:Ct},marginInlineEnd:{style:Ct},marginBlock:{style:Ct},marginBlockStart:{style:Ct},marginBlockEnd:{style:Ct},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:cl},rowGap:{style:dl},columnGap:{style:ul},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jt},maxWidth:{style:Md},minWidth:{transform:Jt},height:{transform:Jt},maxHeight:{transform:Jt},minHeight:{transform:Jt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pP(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function mP(e,t){return typeof e=="function"?e(t):e}function hP(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:d,style:u}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const f=il(o,l)||{};return u?u(i):Qn(i,r,b=>{let h=Ss(f,d,b);return b===h&&typeof b=="string"&&(h=Ss(f,d,`${n}${b==="default"?"":Pv(b)}`,b)),c===!1?h:{[c]:h}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??bi;function i(s){let c=s;if(typeof s=="function")c=s(o);else if(typeof s!="object")return s;if(!c)return null;const l=E1(o.breakpoints),d=Object.keys(l);let u=l;return Object.keys(c).forEach(f=>{const m=mP(c[f],o);if(m!=null)if(typeof m=="object")if(a[f])u=La(u,e(f,m,o,a));else{const b=Qn({theme:o},m,h=>({[f]:h}));pP(b,m)?u[f]=t({sx:m,theme:o}):u=La(u,b)}else u=La(u,e(f,m,o,a))}),P1(o,M1(d,u))}return Array.isArray(r)?r.map(i):i(r)}return t}const Ur=hP();Ur.filterProps=["sx"];const gP=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??bi;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Dv(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=gP(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return fr(s)?{...r,...s}:r}:a={...r,...t},{...o,sx:a}}const bP=e=>{const t=Zb(e);class n extends Tw{constructor(o){super(o),this.prepend=t.sheet.prepend}}return t.sheet=new n({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let $u;typeof document=="object"&&($u=bP({key:"css",prepend:!0}));function vP(e){const{injectFirst:t,children:n}=e;return t&&$u?w.jsx(Qb,{value:$u,children:n}):n}function yP(e){return e==null||Object.keys(e).length===0}function Rv(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(yP(o)?n:o):t;return w.jsx(Jb,{styles:r})}/**
2
2
  * @mui/styled-engine v6.1.0
3
3
  *
4
4
  * @license MIT
@@ -1,4 +1,4 @@
1
- import{j as n,aa as I,E as g,t as U}from"./vendor-mui-core-BlX2BJoA.js";import{r as l}from"./vendor-react-D-afvo_7.js";import{j as q}from"./vendor-utils-DCpRgzMR.js";import{g as F,d as G,b6 as z,bk as H,bA as M,z as D}from"./vendor-arcblock-CiLB_TiI.js";import{S as Y}from"./index-IdPbsC-k.js";import{P as Q}from"./page-header-6EUz18Qu.js";import{o as $,H as V,h as u,f as T}from"./index-wG4Kh8A_.js";import{S as W}from"./layout-BRN0uPvp.js";import{S as X}from"./step-actions-ClTz1KhK.js";import{S as J}from"./button-Bo5ZAcJk.js";import"./vendor-hooks-CLzfFpO7.js";import"./Done-BCESxXX2.js";import"./Google-rxW6OGq8.js";import"./logo-uploader-BA8U554_.js";import"./index-DoZ2YM4T.js";import"./content-layout-CK_AzZZ-.js";function x({children:C,bottom:E,onBottomFix:f}){const i=l.useRef(null),s=l.useRef(null),m=l.useRef(null),r=l.useRef(null),[L,h]=l.useState(!1);return l.useEffect(()=>{let t;const a=()=>{t||(t=setTimeout(()=>{s.current&&(s.current.scrollHeight>i.current.clientHeight-m.current.clientHeight?(r.current!=="fix"&&(f("fix"),r.current="fix"),h(!0)):(r.current!=="scroll"&&(f("scroll"),r.current="scroll"),h(!1))),t=null},50))};let d;return window.ResizeObserver?d=new ResizeObserver(a):window.addEventListener("resize",a),d.observe(i.current),d.observe(s.current),()=>{d?d.disconnect():window.removeEventListener("resize",a),t&&clearTimeout(t)}},[f]),n.jsxs(Z,{ref:i,className:`${L?"scroll-mode":""}`,children:[n.jsx("div",{className:"compact-context",ref:s,children:C}),n.jsx("div",{className:"fix-container",ref:m,children:E})]})}const Z=I.div`
1
+ import{j as n,aa as I,E as g,t as U}from"./vendor-mui-core-BlX2BJoA.js";import{r as l}from"./vendor-react-D-afvo_7.js";import{j as q}from"./vendor-utils-DCpRgzMR.js";import{g as F,d as G,b6 as z,bk as H,bA as M,z as D}from"./vendor-arcblock-CiLB_TiI.js";import{S as Y}from"./index-Cn9hlGXz.js";import{P as Q}from"./page-header-6EUz18Qu.js";import{o as $,H as V,h as u,f as T}from"./index-DgZ1ypbb.js";import{S as W}from"./layout-Bb4get3W.js";import{S as X}from"./step-actions-DnckX9Zh.js";import{S as J}from"./button-Bo5ZAcJk.js";import"./vendor-hooks-CLzfFpO7.js";import"./Done-BCESxXX2.js";import"./Google-rxW6OGq8.js";import"./logo-uploader-C1-XCCMv.js";import"./index-DoZ2YM4T.js";import"./content-layout-CK_AzZZ-.js";function x({children:C,bottom:E,onBottomFix:f}){const i=l.useRef(null),s=l.useRef(null),m=l.useRef(null),r=l.useRef(null),[L,h]=l.useState(!1);return l.useEffect(()=>{let t;const a=()=>{t||(t=setTimeout(()=>{s.current&&(s.current.scrollHeight>i.current.clientHeight-m.current.clientHeight?(r.current!=="fix"&&(f("fix"),r.current="fix"),h(!0)):(r.current!=="scroll"&&(f("scroll"),r.current="scroll"),h(!1))),t=null},50))};let d;return window.ResizeObserver?d=new ResizeObserver(a):window.addEventListener("resize",a),d.observe(i.current),d.observe(s.current),()=>{d?d.disconnect():window.removeEventListener("resize",a),t&&clearTimeout(t)}},[f]),n.jsxs(Z,{ref:i,className:`${L?"scroll-mode":""}`,children:[n.jsx("div",{className:"compact-context",ref:s,children:C}),n.jsx("div",{className:"fix-container",ref:m,children:E})]})}const Z=I.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;