@abtnode/webapp 1.16.28-beta-641c9f13 → 1.16.28-beta-10ca1aad

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 (166) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-CazR0vZK.js → Add-NewVG93V.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-BUrSvBpJ.js → ArrowDropDown-Bd9sR9Kj.js} +1 -1
  5. package/dist/assets/{Autocomplete-DtvRC-0f.js → Autocomplete-BvkSiNum.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-D_LYBn3C.js → Breadcrumbs-AZ_8G3rf.js} +1 -1
  7. package/dist/assets/{ButtonGroup-DxRrpbFw.js → ButtonGroup-pLJbtCLI.js} +1 -1
  8. package/dist/assets/{CheckCircle-DbpNufE5.js → CheckCircle-DkW4b6y7.js} +1 -1
  9. package/dist/assets/{ChevronLeft-Bqynugte.js → ChevronLeft-C0YN2KhY.js} +1 -1
  10. package/dist/assets/{ChevronRight-C8sGT-T0.js → ChevronRight-hQNW7SHU.js} +1 -1
  11. package/dist/assets/{Close-uiQeu7_r.js → Close-S913aeni.js} +1 -1
  12. package/dist/assets/{Delete-DHiwhVmP.js → Delete-LMbP8m3y.js} +1 -1
  13. package/dist/assets/DeleteOutline-BlZHBiGU.js +1 -0
  14. package/dist/assets/DeleteOutline-D7kF8YLA.js +1 -0
  15. package/dist/assets/{Done-LyiBXZqg.js → Done-BJ9nFL7V.js} +1 -1
  16. package/dist/assets/{Edit-BgU3t9-z.js → Edit-BgzVDDnU.js} +1 -1
  17. package/dist/assets/{EditIcon-CeWwrlQZ.js → EditIcon-D0wQcFnY.js} +1 -1
  18. package/dist/assets/{FilterList-usqmRCGh.js → FilterList-YahW7b2T.js} +1 -1
  19. package/dist/assets/{Google-BzTTYoLn.js → Google-DU7ZCGKH.js} +1 -1
  20. package/dist/assets/{Https-B3r3YjjJ.js → Https-CsrqmSk1.js} +1 -1
  21. package/dist/assets/{InputAdornment-0DnARlEj.js → InputAdornment-CP3BhuEs.js} +1 -1
  22. package/dist/assets/{InputLabel-Csh1ynXt.js → InputLabel-DOxBtPfl.js} +1 -1
  23. package/dist/assets/{LastPage-DnsJsUIR.js → LastPage-DmVgRYiw.js} +1 -1
  24. package/dist/assets/{Launch-BOea_wCy.js → Launch-D-68sLeU.js} +1 -1
  25. package/dist/assets/{Link-ByQdtjfh.js → Link-CSeasEZI.js} +1 -1
  26. package/dist/assets/{LoadingButton-Cj_wXKeI.js → LoadingButton-CuJ6PUWH.js} +1 -1
  27. package/dist/assets/{LockIcon-C082WeKw.js → LockIcon-BlIFddg8.js} +1 -1
  28. package/dist/assets/{Loop-m_399M1H.js → Loop-DIds44Mh.js} +1 -1
  29. package/dist/assets/{MoreVert-BzXa-i1R.js → MoreVert-Cei2Rx5H.js} +1 -1
  30. package/dist/assets/{Pagination-DSEqJST1.js → Pagination-C2m02Dsu.js} +1 -1
  31. package/dist/assets/{Public-0DIMrFya.js → Public-B9WCVLI7.js} +1 -1
  32. package/dist/assets/{SchemaReference.es-ISuYhpDf.js → SchemaReference.es--cFrK-mF.js} +1 -1
  33. package/dist/assets/{Search-CQMDHt0w.js → Search-xUbipjHz.js} +1 -1
  34. package/dist/assets/{Select-DXPyl9dO.js → Select-DdUtkwyq.js} +1 -1
  35. package/dist/assets/{Skeleton-URH_1vdL.js → Skeleton-DVrY1Qbr.js} +1 -1
  36. package/dist/assets/{Slider-Bs8PTrpt.js → Slider-110G8tdG.js} +1 -1
  37. package/dist/assets/{Stepper-F9lgPB4i.js → Stepper-D1V6NqBX.js} +1 -1
  38. package/dist/assets/{TextField-B9TZBqQf.js → TextField-3uVNonhd.js} +1 -1
  39. package/dist/assets/{ToggleButtonGroup-B4DF013K.js → ToggleButtonGroup-JLgFfvsV.js} +1 -1
  40. package/dist/assets/{ViewList-BsKNUMlP.js → ViewList-jxsh9SMq.js} +1 -1
  41. package/dist/assets/{actions-B9P9hAjw.js → actions-C2sJQ8Fo.js} +1 -1
  42. package/dist/assets/{actions-Dunvsfuf.js → actions-DbKUVgjV.js} +1 -1
  43. package/dist/assets/{agreement-C1qfhTtQ.js → agreement-DDEIcdN2.js} +1 -1
  44. package/dist/assets/api-3nNr_UzI.js +1 -0
  45. package/dist/assets/{app-avatar-DQiSEUVG.js → app-avatar-DxfZHNQ7.js} +1 -1
  46. package/dist/assets/{audit-logs-C18DG_HF.js → audit-logs-CteQbS8_.js} +1 -1
  47. package/dist/assets/{brace-fold.es-5N33ToDI.js → brace-fold.es-CGA9Przx.js} +1 -1
  48. package/dist/assets/{bundle-avatar-6edO3WvW.js → bundle-avatar-DrhjE4I8.js} +1 -1
  49. package/dist/assets/{chart-DxusdyLS.js → chart-D4E9CCIm.js} +1 -1
  50. package/dist/assets/{click-to-copy-DdhnSrH5.js → click-to-copy-Cd2slBnK.js} +1 -1
  51. package/dist/assets/{closebrackets.es-iyZsaRgi.js → closebrackets.es-n2RjIdxq.js} +1 -1
  52. package/dist/assets/{codemirror.es-DeO7gDXr.js → codemirror.es-DPri5EWV.js} +1 -1
  53. package/dist/assets/{comment.es-CfO1lV_o.js → comment.es-C5rcyFQ8.js} +1 -1
  54. package/dist/assets/{config-navigation-CcJGg9PY.js → config-navigation-Dhvd0Io1.js} +1 -1
  55. package/dist/assets/{delete-confirm-C4Bk8D3q.js → delete-confirm-ri-NT9BE.js} +1 -1
  56. package/dist/assets/{detail-ByJGw6CQ.js → detail-DjuS1eoq.js} +3 -3
  57. package/dist/assets/{dialog.es-CQHFFbgC.js → dialog.es-BwhOJ4Cq.js} +1 -1
  58. package/dist/assets/{download-DjWKDAKk.js → download-DChiY5q1.js} +1 -1
  59. package/dist/assets/{foldgutter.es-D2ybLApJ.js → foldgutter.es-BBpI4A5D.js} +1 -1
  60. package/dist/assets/getValidReactChildren-2v0cL06g.js +1 -0
  61. package/dist/assets/{hint.es-U_5yDQ-L.js → hint.es-BAS5bESO.js} +1 -1
  62. package/dist/assets/{hint.es2-B5AxTcUD.js → hint.es2-BHkOTzjY.js} +1 -1
  63. package/dist/assets/{iframe-CN6X1zkC.js → iframe-9Q6zcs_o.js} +1 -1
  64. package/dist/assets/{index-UfVz51n9.js → index-8O7BlyHt.js} +1 -1
  65. package/dist/assets/{index-CDk9gqwO.js → index-B6ebv4kj.js} +1 -1
  66. package/dist/assets/{index-oWv9ehU5.js → index-B7nYrN4m.js} +1 -1
  67. package/dist/assets/{index-oxLMT1TZ.js → index-BFpB8kh-.js} +1 -1
  68. package/dist/assets/{index-BiYiUZU0.js → index-BJEYtaIe.js} +1 -1
  69. package/dist/assets/{index-DHvVD3rl.js → index-BJy0Aykg.js} +2 -2
  70. package/dist/assets/{index-BysoAAKf.js → index-BQK6o51a.js} +10 -10
  71. package/dist/assets/{index-BUQuICIV.js → index-BQUIGxYm.js} +1 -1
  72. package/dist/assets/{index-DRwkxXBX.js → index-BhFjM9au.js} +1 -1
  73. package/dist/assets/{index-DrZqlcHr.js → index-BhpRo-lZ.js} +1 -1
  74. package/dist/assets/{index-CsJW-E3u.js → index-BnOCj4ky.js} +1 -1
  75. package/dist/assets/{index-C5VGS0or.js → index-C3dyY7Jn.js} +1 -1
  76. package/dist/assets/{index-ClMriVhA.js → index-C9Gucb3e.js} +1 -1
  77. package/dist/assets/{index-jYLpiIQq.js → index-CB6bYAXd.js} +2 -2
  78. package/dist/assets/{index-CBFgpWWt.js → index-CFcksbYG.js} +1 -1
  79. package/dist/assets/{index-CiB-ceGd.js → index-CLeW9jNa.js} +1 -1
  80. package/dist/assets/{index-DINuwc4O.js → index-CTxq4D6b.js} +3 -3
  81. package/dist/assets/index-CV9H0Z8Q.js +54 -0
  82. package/dist/assets/{index-Bj3d2EwJ.js → index-CWU-40xT.js} +3 -3
  83. package/dist/assets/{index-D3isMJCC.js → index-CXQ7qGR9.js} +1 -1
  84. package/dist/assets/{index-CaM460rw.js → index-CXkSaJRT.js} +1 -1
  85. package/dist/assets/{index-Cqf3kTsw.js → index-CcuoQAH9.js} +1 -1
  86. package/dist/assets/{index-DqHjW7tc.js → index-CoYxdjrw.js} +1 -1
  87. package/dist/assets/{index-CBQDge9H.js → index-CxfL2iNj.js} +1 -1
  88. package/dist/assets/{index-Ur9l5Pkv.js → index-CzzL15YH.js} +1 -1
  89. package/dist/assets/{index-CYqmm0Sa.js → index-D74eXDyn.js} +1 -1
  90. package/dist/assets/{index-BO1T0fz0.js → index-D8yUR2aq.js} +1 -1
  91. package/dist/assets/{index-CzxambID.js → index-DHhEgUS1.js} +5 -5
  92. package/dist/assets/{index-JuXoqefL.js → index-DXRZFI-i.js} +1 -1
  93. package/dist/assets/{index-CmUhV6b0.js → index-Dc91z-EC.js} +1 -1
  94. package/dist/assets/{index-CtlJtm28.js → index-DeBMBarq.js} +1 -1
  95. package/dist/assets/{index-CBcjH65j.js → index-DtqP33jl.js} +1 -1
  96. package/dist/assets/{index-9FRtImOR.js → index-Dw3AMY5z.js} +1 -1
  97. package/dist/assets/{index-DB54SdYK.js → index-DwmHAX9V.js} +1 -1
  98. package/dist/assets/{index-LuGhm-KA.js → index-Dyefferl.js} +1 -1
  99. package/dist/assets/{index-BXxemGex.js → index-DysPnzV7.js} +1 -1
  100. package/dist/assets/{index-BsRcoDUD.js → index-F32lbxl3.js} +1 -1
  101. package/dist/assets/index-HsX6FBQ6.js +21 -0
  102. package/dist/assets/{index-edI690Jp.js → index-Hv2GfUwQ.js} +1 -1
  103. package/dist/assets/{index-D6XxoBY_.js → index-VH-ysxX_.js} +1 -1
  104. package/dist/assets/{index-KnfQ44ac.js → index-_GlgH8Bo.js} +1 -1
  105. package/dist/assets/{index-CNEFxICJ.js → index-f9oKLglL.js} +1 -1
  106. package/dist/assets/{index-Bpjx7556.js → index-wR2FBwGe.js} +1 -1
  107. package/dist/assets/{index.es-BaoJVcS0.js → index.es-BYEd319I.js} +1 -1
  108. package/dist/assets/{index.esm-D5EJdopB.js → index.esm-CcmphPDr.js} +1 -1
  109. package/dist/assets/{info-addon.es-BF8YxAo6.js → info-addon.es-Cj5Am4W8.js} +1 -1
  110. package/dist/assets/{info.es-BG-sFq93.js → info.es-CO85iRU8.js} +1 -1
  111. package/dist/assets/{install-from-url-D_JUSXN1.js → install-from-url-DuMsEyFI.js} +1 -1
  112. package/dist/assets/{invitation-B9fShyCE.js → invitation-B_cHWnei.js} +1 -1
  113. package/dist/assets/{is-path-prefix-equal-DTqcyXik.js → is-path-prefix-equal-CYIvKmVL.js} +1 -1
  114. package/dist/assets/{isEqual-BT0_AVZN.js → isEqual-GyLZxSRY.js} +1 -1
  115. package/dist/assets/{item-k8JU-j43.js → item-DE1w-7fx.js} +1 -1
  116. package/dist/assets/{javascript.es-BxU6I3W8.js → javascript.es-BW5_tRcP.js} +1 -1
  117. package/dist/assets/{jump-to-line.es-BJmdmPwT.js → jump-to-line.es-CHXn1yBu.js} +1 -1
  118. package/dist/assets/{jump.es-DdndOalg.js → jump.es-XIPua2Fi.js} +1 -1
  119. package/dist/assets/{line-h_bDsdkk.js → line-aqaJQGOE.js} +3 -3
  120. package/dist/assets/{lint.es-S1IqD8Ty.js → lint.es-DDqYT3Z3.js} +1 -1
  121. package/dist/assets/{lint.es2-Pg9vOGzA.js → lint.es2-UzvCZWiN.js} +1 -1
  122. package/dist/assets/{lint.es3-S5rsbMt9.js → lint.es3-w94C1fvi.js} +1 -1
  123. package/dist/assets/{list-header-sMQeptfh.js → list-header-BeAWG4F0.js} +1 -1
  124. package/dist/assets/{log-cMe-yCc9.js → log-C18GoSnt.js} +1 -1
  125. package/dist/assets/{lottie-oKugLW27.js → lottie-BbyPiNfn.js} +1 -1
  126. package/dist/assets/{matchbrackets.es-CedBfYiO.js → matchbrackets.es-DZ1mhuIO.js} +1 -1
  127. package/dist/assets/{memory-DtZsgQku.js → memory-htbPwmSg.js} +1 -1
  128. package/dist/assets/{mode.es-BCvVo63y.js → mode.es-7keuh6oH.js} +1 -1
  129. package/dist/assets/{mode.es2-ahvvTvAM.js → mode.es2-vFQEp92Z.js} +1 -1
  130. package/dist/assets/{mode.es3-Bhh5S718.js → mode.es3-Dn5SA7Oh.js} +1 -1
  131. package/dist/assets/{onlineParser.es-D5Qe3rjM.js → onlineParser.es--cELFe5v.js} +1 -1
  132. package/dist/assets/{overview-C8aXpNrX.js → overview-D6KKjePJ.js} +1 -1
  133. package/dist/assets/{react-UY6g3dsd.js → react-BhYF7sD_.js} +3 -3
  134. package/dist/assets/{redux-DYjmRPcE.js → redux-CIzpcDy1.js} +1 -1
  135. package/dist/assets/{resource-dialog-C82ZhW4T.js → resource-dialog-AGPGjRF5.js} +1 -1
  136. package/dist/assets/{runtime-D1eyE8B1.js → runtime-CLIPNHPm.js} +1 -1
  137. package/dist/assets/{search.es-0GT84-M2.js → search.es-CfOeePsS.js} +1 -1
  138. package/dist/assets/{searchcursor.es-CX66aj_i.js → searchcursor.es-RLZnp-2M.js} +1 -1
  139. package/dist/assets/service-BE130afq.js +1 -0
  140. package/dist/assets/{show-hint.es-vCcUyQMQ.js → show-hint.es-D6R1Oh0E.js} +1 -1
  141. package/dist/assets/{slicedToArray-I-ObepI-.js → slicedToArray-CkMd8cEG.js} +1 -1
  142. package/dist/assets/{spaces-m3k1wtEz.js → spaces-Ndl2Z_l-.js} +1 -1
  143. package/dist/assets/{sublime.es-wltndpKH.js → sublime.es-BWpn5oL5.js} +1 -1
  144. package/dist/assets/{switch-control-DSzxDtfl.js → switch-control-BL5Q92y_.js} +1 -1
  145. package/dist/assets/{table-icons-D70UZfU7.js → table-icons-Bjq5TgED.js} +2 -2
  146. package/dist/assets/{tag-BDr72C87.js → tag-Cksz2rJp.js} +1 -1
  147. package/dist/assets/{team-Ch-Gj2hO.js → team-iad1pbmQ.js} +1 -1
  148. package/dist/assets/{toUpper-Bqm-4sXI.js → toUpper-DnPhzApo.js} +1 -1
  149. package/dist/assets/{traffic-BS6Lfitp.js → traffic-CWlSTLTp.js} +1 -1
  150. package/dist/assets/{url-evaluation-ceiaoY0M.js → url-evaluation-CTHUhxLd.js} +1 -1
  151. package/dist/assets/{url-join-Bsj5KCM1.js → url-join-Dfl-k5vL.js} +1 -1
  152. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BQtm5420.js → use-blocklet-info-for-connect-did-spaces-BqhgZgq5.js} +1 -1
  153. package/dist/assets/{useLocalStorage-BOaGasKr.js → useLocalStorage-B9e_6vUG.js} +1 -1
  154. package/dist/assets/{util-CMnoIJSr.js → util-Brqqzx0p.js} +1 -1
  155. package/dist/assets/{wait-container-CtbhxRrL.js → wait-container-CgxLnrOt.js} +1 -1
  156. package/dist/assets/{withStyles-CjmLVNUl.js → withStyles-CkukjHle.js} +1 -1
  157. package/dist/assets/{wrap-locale-K8WYS2HB.js → wrap-locale-Bh4fVNfi.js} +1 -1
  158. package/dist/index.html +1 -1
  159. package/dist/service-worker.js +1 -1
  160. package/package.json +1 -1
  161. package/dist/assets/DeleteOutline-CnmOxEUl.js +0 -1
  162. package/dist/assets/api-BM9dJimB.js +0 -1
  163. package/dist/assets/getValidReactChildren-BhT8Dia7.js +0 -1
  164. package/dist/assets/index-7hmZo5yz.js +0 -54
  165. package/dist/assets/index-Dw6syXvl.js +0 -21
  166. package/dist/assets/service-DOjp5s19.js +0 -1
@@ -1 +1 @@
1
- import{g as y}from"./index-DHvVD3rl.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{g as y}from"./index-BJy0Aykg.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
@@ -1 +1 @@
1
- import{r as E,q as j,z as I,j as e,V as W,C as k,ct as T,O as v,x as L,A as h,F as N,u as R,y as S,am as U,ae as b}from"./index-DHvVD3rl.js";import{w as F}from"./wrap-locale-K8WYS2HB.js";function _({SessionContext:t,webWalletUrl:a,onSuccess:c}){var g,u;const{api:o,session:n}=E.useContext(t),{t:s,locale:m}=j(),w=I(),{searchParams:l}=new URL(window.location.href),d=l.get("redirect"),P=async(r,C)=>{c(r,C),await n.refresh(),h.success(s("exchangePassport.success")),setTimeout(()=>{if(d){const i=decodeURIComponent(d);i.startsWith(N.WELLKNOWN_SERVICE_PATH_PREFIX)?w(i,{replace:!0}):window.location=i}else window.location=window.env.pathPrefix||window.env.apiPrefix||"/"},3e3)},f=r=>{h.error(r.message)},x={},p=l.get("componentId");return p&&(x.componentId=p),n.loading?e.jsx(W,{children:e.jsx(k,{})}):e.jsx(T,{did:((g=window==null?void 0:window.blocklet)==null?void 0:g.appPid)||((u=window==null?void 0:window.env)==null?void 0:u.appPid),children:e.jsx(v,{sx:{width:"560px",maxWidth:"100%",height:"100%"},children:e.jsx(L,{className:"connect",action:"exchange-passport",checkFn:o.get,checkTimeout:10*60*1e3,webWalletUrl:a,onSuccess:P,onError:f,locale:m,messages:{title:s("exchangePassport.dialog.title"),scan:s("exchangePassport.dialog.scan"),confirm:s("exchangePassport.dialog.confirm"),success:s("exchangePassport.dialog.success")},extraParams:x,extraContent:null})})})}const y=F(_);function O(){const{info:t}=R(),a=S(t),c=(o,n)=>{o.sessionToken&&b(n(o.sessionToken))};return e.jsx(y,{SessionContext:U,webWalletUrl:a,onSuccess:c})}export{O as default};
1
+ import{r as E,q as j,z as I,j as e,V as W,C as k,ct as T,O as v,x as L,A as h,F as N,u as R,y as S,am as U,ae as b}from"./index-BJy0Aykg.js";import{w as F}from"./wrap-locale-Bh4fVNfi.js";function _({SessionContext:t,webWalletUrl:a,onSuccess:c}){var g,u;const{api:o,session:n}=E.useContext(t),{t:s,locale:m}=j(),w=I(),{searchParams:l}=new URL(window.location.href),d=l.get("redirect"),P=async(r,C)=>{c(r,C),await n.refresh(),h.success(s("exchangePassport.success")),setTimeout(()=>{if(d){const i=decodeURIComponent(d);i.startsWith(N.WELLKNOWN_SERVICE_PATH_PREFIX)?w(i,{replace:!0}):window.location=i}else window.location=window.env.pathPrefix||window.env.apiPrefix||"/"},3e3)},f=r=>{h.error(r.message)},x={},p=l.get("componentId");return p&&(x.componentId=p),n.loading?e.jsx(W,{children:e.jsx(k,{})}):e.jsx(T,{did:((g=window==null?void 0:window.blocklet)==null?void 0:g.appPid)||((u=window==null?void 0:window.env)==null?void 0:u.appPid),children:e.jsx(v,{sx:{width:"560px",maxWidth:"100%",height:"100%"},children:e.jsx(L,{className:"connect",action:"exchange-passport",checkFn:o.get,checkTimeout:10*60*1e3,webWalletUrl:a,onSuccess:P,onError:f,locale:m,messages:{title:s("exchangePassport.dialog.title"),scan:s("exchangePassport.dialog.scan"),confirm:s("exchangePassport.dialog.confirm"),success:s("exchangePassport.dialog.success")},extraParams:x,extraContent:null})})})}const y=F(_);function O(){const{info:t}=R(),a=S(t),c=(o,n)=>{o.sessionToken&&b(n(o.sessionToken))};return e.jsx(y,{SessionContext:U,webWalletUrl:a,onSuccess:c})}export{O as default};
@@ -1,4 +1,4 @@
1
- import{bL as vc,j as m,C as Z2,P as S,n as _0,r as _,eU as ib,cK as Vc,cP as tb,k as Ez,g as qb,H as Kz,cA as Cc,Z as Pc,eV as Fc,dw as jc,e7 as Yc,e8 as Ic,eW as Uc,eX as Hc,m as Kc,V as Qc,aK as Jc,aL as $c,eY as Zc,dz as gz,ba as MA,dv as bA,s as zA}from"./index-DHvVD3rl.js";import{j as pA}from"./url-join-Bsj5KCM1.js";import{S as l2}from"./Skeleton-URH_1vdL.js";import{C as OA}from"./Close-uiQeu7_r.js";import{l as oA}from"./lottie-oKugLW27.js";const cA=vc([m.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),m.jsx("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function rb({value:M,size:z,style:O,...o}){return m.jsxs(AA,{style:{width:z,height:z,...O},...o,children:[m.jsx(Z2,{variant:"determinate",role:"progressbar",value:100,size:z,"aria-label":"decorative progress bar",thickness:10,style:{color:"#dddddd"}}),m.jsx(Z2,{variant:"determinate",value:M,role:"progressbar",size:z,thickness:10,"aria-label":"main progress bar"})]})}rb.propTypes={value:S.number.isRequired,size:S.number,style:S.object};rb.defaultProps={size:10,style:{}};const AA=_0.span`
1
+ import{bL as vc,j as m,C as Z2,P as S,n as _0,r as _,eU as ib,cK as Vc,cP as tb,k as Ez,g as qb,H as Kz,cA as Cc,Z as Pc,eV as Fc,dw as jc,e7 as Yc,e8 as Ic,eW as Uc,eX as Hc,m as Kc,V as Qc,aK as Jc,aL as $c,eY as Zc,dz as gz,ba as MA,dv as bA,s as zA}from"./index-BJy0Aykg.js";import{j as pA}from"./url-join-Dfl-k5vL.js";import{S as l2}from"./Skeleton-DVrY1Qbr.js";import{C as OA}from"./Close-S913aeni.js";import{l as oA}from"./lottie-BbyPiNfn.js";const cA=vc([m.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),m.jsx("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function rb({value:M,size:z,style:O,...o}){return m.jsxs(AA,{style:{width:z,height:z,...O},...o,children:[m.jsx(Z2,{variant:"determinate",role:"progressbar",value:100,size:z,"aria-label":"decorative progress bar",thickness:10,style:{color:"#dddddd"}}),m.jsx(Z2,{variant:"determinate",value:M,role:"progressbar",size:z,thickness:10,"aria-label":"main progress bar"})]})}rb.propTypes={value:S.number.isRequired,size:S.number,style:S.object};rb.defaultProps={size:10,style:{}};const AA=_0.span`
2
2
  display: inline-block;
3
3
  position: relative;
4
4
  > * {
@@ -1 +1 @@
1
- import{r as o,f as n,j as t,n as e}from"./index-DHvVD3rl.js";import{R as r}from"./index-LuGhm-KA.js";function i(){const{t:s}=o.useContext(n);return t.jsx(a,{style:{paddingTop:"25vh"},children:t.jsx(r,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const a=e.main``;export{i as default};
1
+ import{r as o,f as n,j as t,n as e}from"./index-BJy0Aykg.js";import{R as r}from"./index-Dyefferl.js";function i(){const{t:s}=o.useContext(n);return t.jsx(a,{style:{paddingTop:"25vh"},children:t.jsx(r,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const a=e.main``;export{i as default};
@@ -1 +1 @@
1
- import{cP as m,r as p,g as J}from"./index-DHvVD3rl.js";var M={},B={},u={},x={},g={};g.__esModule=!0;g.joinClassNames=void 0;g.joinClassNames=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];return s.filter(function(d){return d}).join(" ")};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=g,v=function(n){var o=n.className,t=n.maxHeight,a=n.color,e=n.lineSpacing,l=e===void 0?"0.7em":e,c=n.style,f={maxHeight:t,width:"100%",height:"1em",backgroundColor:a,marginTop:l};return d.createElement("div",{className:i.joinClassNames("text-row",o),style:r(r({},f),c)})};s.default=v})(x);var P={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=g,v=function(n){var o=n.className,t=n.style,a=n.color,e={backgroundColor:a,borderRadius:"500rem",width:"100%",height:"100%"};return d.createElement("div",{className:i.joinClassNames("round-shape",o),style:r(r({},e),t)})};s.default=v})(P);var L={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=g,v=function(n){var o=n.className,t=n.style,a=n.color,e={backgroundColor:a,width:"100%",height:"100%",marginRight:10};return d.createElement("div",{className:i.joinClassNames("rect-shape",o),style:r(r({},e),t)})};s.default=v})(L);var k={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(a){for(var e,l=1,c=arguments.length;l<c;l++){e=arguments[l];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=x,v=g,n={width:"100%"},o=[97,100,94,90,98,95,98,40],t=function(a){var e=a.rows,l=a.lineSpacing,c=a.color,f=a.style,j=a.className,w=a.widths,_=w===void 0?o:w,h=function(R){return{maxHeight:100/(e*2-1)+"%",width:_[(R+_.length)%_.length]+"%"}};return d.createElement("div",{className:v.joinClassNames("text-block",j),style:r(r({},n),f)},Array.apply(null,Array(e)).map(function(R,N){return d.createElement(i.default,{color:c,style:h(N),lineSpacing:N!==0?l:0,key:N})}))};s.default=t})(k);var A={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(a){for(var e,l=1,c=arguments.length;l<c;l++){e=arguments[l];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=k,v=P,n=g,o={display:"flex"},t=function(a){var e=a.className,l=a.style,c=a.color,f=a.rows;return d.createElement("div",{className:n.joinClassNames("media-block",e),style:r(r({},o),l)},d.createElement(v.default,{color:c,style:{minHeight:55,width:55,minWidth:55,marginRight:10}}),d.createElement(i.default,{color:c,rows:f}))};s.default=t})(A);u.__esModule=!0;u.media=u.text=u.rect=u.round=u.textRow=u.MediaBlock=u.TextBlock=u.RectShape=u.RoundShape=u.TextRow=void 0;var H=x;u.TextRow=H.default;var D=P;u.RoundShape=D.default;var F=L;u.RectShape=F.default;var W=k;u.TextBlock=W.default;var $=A;u.MediaBlock=$.default;u.textRow=H.default;u.round=D.default;u.rect=F.default;u.text=W.default;u.media=$.default;(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(t){for(var a,e=1,l=arguments.length;e<l;e++){a=arguments[e];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(t[c]=a[c])}return t},r.apply(this,arguments)},d=m&&m.__rest||function(t,a){var e={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.indexOf(l)<0&&(e[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(t);c<l.length;c++)a.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(t,l[c])&&(e[l[c]]=t[l[c]]);return e};s.__esModule=!0;var i=p,v=u,n=g,o=function(t){var a=t.delay,e=a===void 0?0:a,l=t.type,c=l===void 0?"text":l,f=t.color,j=f===void 0?"#CDCDCD":f,w=t.rows,_=w===void 0?3:w,h=t.ready,R=t.firstLaunchOnly,N=t.children,C=t.className,G=t.showLoadingAnimation,y=t.customPlaceholder,I=d(t,["delay","type","color","rows","ready","firstLaunchOnly","children","className","showLoadingAnimation","customPlaceholder"]),E=i.useState(h),O=E[0],S=E[1],b=i.useRef(null),V=function(){var T=G?n.joinClassNames("show-loading-animation",C):C;if(y&&i.isValidElement(y)){var q=n.joinClassNames(y.props.className,T);return i.cloneElement(y,{className:q})}else if(y)return y;var z=v[c];return i.createElement(z,r({},I,{color:j,rows:_,className:T}))};return i.useEffect(function(){!R&&O&&!h?e&&e>0?b.current=window.setTimeout(function(){S(!1)},e):S(!1):h&&(b.current&&window.clearTimeout(b.current),O||S(!0))},[R,O,h,e]),i.useEffect(function(){return function(){b.current&&window.clearTimeout(b.current)}},[]),O?N:V()};s.default=o})(B);(function(s){s.__esModule=!0;var r=B;s.default=r.default})(M);const Q=J(M);export{Q as R};
1
+ import{cP as m,r as p,g as J}from"./index-BJy0Aykg.js";var M={},B={},u={},x={},g={};g.__esModule=!0;g.joinClassNames=void 0;g.joinClassNames=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];return s.filter(function(d){return d}).join(" ")};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=g,v=function(n){var o=n.className,t=n.maxHeight,a=n.color,e=n.lineSpacing,l=e===void 0?"0.7em":e,c=n.style,f={maxHeight:t,width:"100%",height:"1em",backgroundColor:a,marginTop:l};return d.createElement("div",{className:i.joinClassNames("text-row",o),style:r(r({},f),c)})};s.default=v})(x);var P={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=g,v=function(n){var o=n.className,t=n.style,a=n.color,e={backgroundColor:a,borderRadius:"500rem",width:"100%",height:"100%"};return d.createElement("div",{className:i.joinClassNames("round-shape",o),style:r(r({},e),t)})};s.default=v})(P);var L={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(n){for(var o,t=1,a=arguments.length;t<a;t++){o=arguments[t];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e])}return n},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=g,v=function(n){var o=n.className,t=n.style,a=n.color,e={backgroundColor:a,width:"100%",height:"100%",marginRight:10};return d.createElement("div",{className:i.joinClassNames("rect-shape",o),style:r(r({},e),t)})};s.default=v})(L);var k={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(a){for(var e,l=1,c=arguments.length;l<c;l++){e=arguments[l];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=x,v=g,n={width:"100%"},o=[97,100,94,90,98,95,98,40],t=function(a){var e=a.rows,l=a.lineSpacing,c=a.color,f=a.style,j=a.className,w=a.widths,_=w===void 0?o:w,h=function(R){return{maxHeight:100/(e*2-1)+"%",width:_[(R+_.length)%_.length]+"%"}};return d.createElement("div",{className:v.joinClassNames("text-block",j),style:r(r({},n),f)},Array.apply(null,Array(e)).map(function(R,N){return d.createElement(i.default,{color:c,style:h(N),lineSpacing:N!==0?l:0,key:N})}))};s.default=t})(k);var A={};(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(a){for(var e,l=1,c=arguments.length;l<c;l++){e=arguments[l];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(a[f]=e[f])}return a},r.apply(this,arguments)};s.__esModule=!0;var d=p,i=k,v=P,n=g,o={display:"flex"},t=function(a){var e=a.className,l=a.style,c=a.color,f=a.rows;return d.createElement("div",{className:n.joinClassNames("media-block",e),style:r(r({},o),l)},d.createElement(v.default,{color:c,style:{minHeight:55,width:55,minWidth:55,marginRight:10}}),d.createElement(i.default,{color:c,rows:f}))};s.default=t})(A);u.__esModule=!0;u.media=u.text=u.rect=u.round=u.textRow=u.MediaBlock=u.TextBlock=u.RectShape=u.RoundShape=u.TextRow=void 0;var H=x;u.TextRow=H.default;var D=P;u.RoundShape=D.default;var F=L;u.RectShape=F.default;var W=k;u.TextBlock=W.default;var $=A;u.MediaBlock=$.default;u.textRow=H.default;u.round=D.default;u.rect=F.default;u.text=W.default;u.media=$.default;(function(s){var r=m&&m.__assign||function(){return r=Object.assign||function(t){for(var a,e=1,l=arguments.length;e<l;e++){a=arguments[e];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(t[c]=a[c])}return t},r.apply(this,arguments)},d=m&&m.__rest||function(t,a){var e={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.indexOf(l)<0&&(e[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(t);c<l.length;c++)a.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(t,l[c])&&(e[l[c]]=t[l[c]]);return e};s.__esModule=!0;var i=p,v=u,n=g,o=function(t){var a=t.delay,e=a===void 0?0:a,l=t.type,c=l===void 0?"text":l,f=t.color,j=f===void 0?"#CDCDCD":f,w=t.rows,_=w===void 0?3:w,h=t.ready,R=t.firstLaunchOnly,N=t.children,C=t.className,G=t.showLoadingAnimation,y=t.customPlaceholder,I=d(t,["delay","type","color","rows","ready","firstLaunchOnly","children","className","showLoadingAnimation","customPlaceholder"]),E=i.useState(h),O=E[0],S=E[1],b=i.useRef(null),V=function(){var T=G?n.joinClassNames("show-loading-animation",C):C;if(y&&i.isValidElement(y)){var q=n.joinClassNames(y.props.className,T);return i.cloneElement(y,{className:q})}else if(y)return y;var z=v[c];return i.createElement(z,r({},I,{color:j,rows:_,className:T}))};return i.useEffect(function(){!R&&O&&!h?e&&e>0?b.current=window.setTimeout(function(){S(!1)},e):S(!1):h&&(b.current&&window.clearTimeout(b.current),O||S(!0))},[R,O,h,e]),i.useEffect(function(){return function(){b.current&&window.clearTimeout(b.current)}},[]),O?N:V()};s.default=o})(B);(function(s){s.__esModule=!0;var r=B;s.default=r.default})(M);const Q=J(M);export{Q as R};
@@ -1,4 +1,4 @@
1
- import{bL as zo,j as e,aK as Mt,aL as Gt,q as V,O as j,ax as fe,P as r,A as N,bl as H,r as g,f as ye,bp as Ve,b as K,M as O,aO as Vn,U as Nt,cd as Be,n as F,K as Z,gG as Vo,bH as Ne,aW as xe,aV as dt,aC as At,a2 as ee,D as pt,F as k,bn as qo,Y as qe,$ as qn,a$ as _o,fD as Wo,fE as Ho,C as ae,f8 as Yo,y as co,av as rt,a1 as Ee,x as Lt,hv as Jo,hw as Ko,B as X,bb as po,H as zt,hx as Qo,m as $,a3 as Zo,ez as Xo,W as uo,Z as mo,ak as $o,w as es,J as fo,Q as Ge,V as ts,hy as ho,S as me,az as ns,aA as os,aB as ss,i as ut,hz as rs,cz as is,bg as as,h6 as ls,hA as cs,ay as _n,cx as ds,ad as Ae,aJ as go,bJ as Vt,cf as ps,hB as us,b6 as ms,z as fs,aX as Ot,T as hs,aN as ze,at as kt,dE as gs,bq as xo,fP as Ft,aF as xs,dM as ys,hC as Cs,ge as Wn,hD as Hn,gg as Yn,aY as js,G as nt,gi as vs,bI as Ss}from"./index-DHvVD3rl.js";import{d as Jn}from"./Add-CazR0vZK.js";import{a as Rs,R as st,F as bs,L as Es,d as qt,b as _t}from"./line-h_bDsdkk.js";import{C as Ts,A as ws,d as Ps}from"./agreement-C1qfhTtQ.js";import{E as Is}from"./index-CmUhV6b0.js";import{b as ks,a as Us,c as Ds,u as Wt,e as Bs}from"./actions-Dunvsfuf.js";import{S as Ns}from"./switch-control-DSzxDtfl.js";import{u as As}from"./detail-ByJGw6CQ.js";import{d as yo}from"./Edit-BgU3t9-z.js";import{T as Ls}from"./index-BXxemGex.js";import{T as Os,M as Fs,t as Ms}from"./table-icons-D70UZfU7.js";import{C as Kn}from"./click-to-copy-DdhnSrH5.js";import{T as J}from"./TextField-B9TZBqQf.js";import{d as Ht}from"./Link-ByQdtjfh.js";import{c as Gs,C as zs,a as Vs,b as qs,D as _s,A as Ws,B as Hs,d as Ys,S as Js}from"./item-k8JU-j43.js";import{u as Ks,a as Qs,P as Co,L as Qn,A as Zs,S as Xs}from"./index-CsJW-E3u.js";import{u as jo,t as $s}from"./toUpper-Bqm-4sXI.js";import{u as se,a as er}from"./team-Ch-Gj2hO.js";import{c as tr,d as nr,a as or,e as sr,f as rr,g as Zn,h as ir,i as Xn}from"./spaces-m3k1wtEz.js";import{d as ar}from"./EditIcon-CeWwrlQZ.js";import{d as lr}from"./Done-LyiBXZqg.js";import{C as cr}from"./Google-BzTTYoLn.js";import{I as dr,B as pr}from"./install-from-url-D_JUSXN1.js";import{a as $n}from"./api-BM9dJimB.js";import{v as vo,a as it}from"./util-CMnoIJSr.js";import{P as ur,u as mr}from"./use-blocklet-info-for-connect-did-spaces-BQtm5420.js";import{d as fr}from"./DeleteOutline-CnmOxEUl.js";import{S as eo}from"./index-CtlJtm28.js";import{d as hr}from"./ArrowDropDown-BUrSvBpJ.js";import{_ as gr}from"./useLocalStorage-BOaGasKr.js";import{d as xr}from"./LockIcon-C082WeKw.js";import{d as mt}from"./Delete-DHiwhVmP.js";import{d as So}from"./Launch-BOea_wCy.js";import{C as yr}from"./delete-confirm-C4Bk8D3q.js";import{W as _e}from"./tag-BDr72C87.js";import{d as Cr}from"./is-path-prefix-equal-DTqcyXik.js";import{R as jr,b as to,B as Ro}from"./url-evaluation-ceiaoY0M.js";import{B as vr}from"./bundle-avatar-6edO3WvW.js";import{A as Sr}from"./actions-B9P9hAjw.js";import{I as Ut}from"./index-D6XxoBY_.js";import{a as Rr}from"./index-BsRcoDUD.js";import"./ButtonGroup-DxRrpbFw.js";import"./getValidReactChildren-BhT8Dia7.js";import"./index-KnfQ44ac.js";import"./index-BUQuICIV.js";import"./url-join-Bsj5KCM1.js";import"./MoreVert-BzXa-i1R.js";import"./app-avatar-DQiSEUVG.js";import"./Breadcrumbs-D_LYBn3C.js";import"./FilterList-usqmRCGh.js";import"./Select-DXPyl9dO.js";import"./InputLabel-Csh1ynXt.js";import"./LastPage-DnsJsUIR.js";import"./slicedToArray-I-ObepI-.js";import"./Search-CQMDHt0w.js";import"./ChevronLeft-Bqynugte.js";import"./ChevronRight-C8sGT-T0.js";import"./redux-DYjmRPcE.js";import"./Skeleton-URH_1vdL.js";import"./InputAdornment-0DnARlEj.js";import"./memoize-one.esm-BdPwpGay.js";import"./index-Bpjx7556.js";import"./preact.module-B1z5cdvs.js";import"./Close-uiQeu7_r.js";import"./lottie-oKugLW27.js";import"./Stepper-F9lgPB4i.js";import"./index-ClMriVhA.js";const br=zo(e.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"}),"TextSnippetOutlined");var Yt={},Er=Gt;Object.defineProperty(Yt,"__esModule",{value:!0});var bo=Yt.default=void 0,Tr=Er(Mt()),wr=e;bo=Yt.default=(0,Tr.default)((0,wr.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");function Jt({children:t,...o}){const{t:s}=V(),{updateAutoCheckUpdate:l,autoCheckUpdate:n}=As(),i=async()=>{try{const a=!(n!=null&&n.enabled);await l({enabled:a}),N.success(s(a?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(a){N.error(a.message)}},p=!!(n!=null&&n.enabled);return e.jsxs(j,{display:"flex",flexDirection:"row",alignItems:"center",children:[t,e.jsx(fe,{title:s("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:e.jsx("div",{children:e.jsx(Ns,{checked:p,onChange:i,name:"enableWelcomePage",style:{...o.style,zoom:.8}})})})]})}Jt.propTypes={children:r.any};Jt.defaultProps={children:null};const Pr=(t,o)=>{let{description:s}=t;return(Object.values(K.CHAIN_PROP_MAP).includes(t.key)||O.isEnvShareable(t))&&(s?s=`${s} (${o("blocklet.config.sharedToAllComponents")})`:s=o("blocklet.config.sharedToAllComponents")),s&&e.jsx("div",{style:{marginLeft:12},children:s})},Dt=(t,o,s=[])=>!(s!=null&&s.length)&&!t.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(t.key)&&!o.meta.environments.find(l=>l.name===t.key)&&o.children.every(l=>!l.meta.environments.find(n=>n.name===t.key))?!0:t.custom;function at({blocklet:t,ancestors:o}){const s=H(),{inService:l}=s,{t:n}=g.useContext(ye),i=[...o.map(f=>f.meta.did),t.meta.did],p=()=>N.success(n("blocklet.config.changedTip")),a=f=>Dt(f,t,o);if(Ve(t.status)||t.status==="unknown"&&Ve(t.status))return null;const u=async f=>{if(!f.key.trim()||!f.value.trim()){N.error(n("blocklet.config.environment.keyValueRequired"));return}if(f.key.startsWith("BLOCKLET_")||f.key.startsWith("COMPONENT_")){N.error(n("blocklet.config.environment.invalidKey"));return}f.custom=!0;try{const S=await s.api.configBlocklet({input:{did:i,configs:[f]}});p(S.blocklet)}catch(S){N.error(Z(S))}},x=async(f,S)=>{if(f.required&&(!f.key.trim()||!f.value.trim())){N.error(n("blocklet.config.environment.keyValueRequired"));return}if(f.key.startsWith("BLOCKLET_")&&!K.BLOCKLET_CONFIGURABLE_KEY[f.key]){N.error(n("blocklet.config.environment.invalidKey"));return}if(f.key===K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const P=Vo(f);if(P){N.error(P);return}}const R=[{...f,value:f.secure&&f.value==="__encrypted__"?"":f.value}];if(f.key!==S.key){if(!Dt(f,t,o)){N.error("Only key of custom env can be changed");return}R.push({key:S.key,custom:!0})}try{const P=await s.api.configBlocklet({input:{did:i,configs:R}});p(P.blocklet)}catch(P){N.error(Z(P))}},y=async f=>{if(f.required){N.error(n("blocklet.config.environment.deleteForbidden"));return}if(!Dt(f,t,o)){N.error("Only key of custom env can be changed");return}try{const S=await s.api.configBlocklet({input:{did:i,configs:[{key:f.key,custom:!0}]}});p(S.blocklet)}catch(S){N.error(Z(S))}},d=(t.configs||[]).filter(f=>!K.BLOCKLET_CONFIGURABLE_KEY[f.key]),v=O.getSharedConfigObj(o[0],t),c=O.getComponentMissingConfigs(t,o[0]),h=d.map(f=>({...f,value:Object.values(K.CHAIN_PROP_MAP).includes(f.key)&&Object.keys(v).includes(f.key)?v[f.key]:v[f.key]||f.value})),C=h.some(f=>f.key&&f.key.startsWith("BWA_")),m={onRowAdd:u,onRowUpdate:x,onRowDelete:y,isDeletable:a},b=()=>[{title:n("common.key"),field:"key",initialEditValue:"Key",width:"30%",render:f=>e.jsx(Kn,{value:f.value,style:{color:f.required&&!f.value?"#ff4436":"#222222",fontWeight:f.required?"bold":"normal"},children:f.key}),editComponent:f=>{const{value:S,rowData:R,onChange:P}=f;return e.jsx(no,{children:e.jsx(J,{fullWidth:!0,size:"small",disabled:a(R)===!1,value:S,onChange:L=>P(L.target.value),variant:"outlined",label:"Key",placeholder:n("blocklet.config.environment.key"),margin:"dense",autoFocus:!0})})}},{title:n("common.value"),field:"value",initialEditValue:"Value",width:"calc((100% - (96px + 30%)) / 1)",render:f=>f.value?f.secure?"******":e.jsx(Kn,{unstyled:!0,value:f.value,style:{wordBreak:"break-all"},children:f.value}):null,editComponent:f=>{const{value:S,rowData:R,onChange:P}=f;return e.jsxs(no,{children:[e.jsx(J,{fullWidth:!0,size:"small",value:S==="__encrypted__"?"":S,onChange:L=>P(L.target.value),variant:"outlined",label:n("common.value"),placeholder:n("blocklet.config.environment.value"),margin:"dense",autoFocus:!0}),Pr(R,n)]})}}];return e.jsxs(Ir,{children:[!!c.length&&e.jsx(Vn,{severity:"error",style:{marginTop:24},children:n("blocklet.config.missingRequired")}),C&&e.jsx(Vn,{severity:"info",children:n("blocklet.config.environment.tip")}),e.jsx(Nt,{permission:l?"":"mutate_blocklets",role:l?Be:[],children:f=>e.jsx(Os,{className:"config-table",children:e.jsx(Fs,{title:e.jsx("h4",{children:n("common.environment")}),columns:b(),icons:{...ks,...Ms},options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1},localization:{header:{actions:n("common.actions")},body:{emptyDataSourceMessage:n("common.noData")}},data:h,editable:f?m:{}})})})]})}at.propTypes={blocklet:r.object.isRequired,ancestors:r.array};at.defaultProps={ancestors:[]};const Ir=F.div`
1
+ import{bL as zo,j as e,aK as Mt,aL as Gt,q as V,O as j,ax as fe,P as r,A as N,bl as H,r as g,f as ye,bp as Ve,b as K,M as O,aO as Vn,U as Nt,cd as Be,n as F,K as Z,gG as Vo,bH as Ne,aW as xe,aV as dt,aC as At,a2 as ee,D as pt,F as k,bn as qo,Y as qe,$ as qn,a$ as _o,fD as Wo,fE as Ho,C as ae,f8 as Yo,y as co,av as rt,a1 as Ee,x as Lt,hv as Jo,hw as Ko,B as X,bb as po,H as zt,hx as Qo,m as $,a3 as Zo,ez as Xo,W as uo,Z as mo,ak as $o,w as es,J as fo,Q as Ge,V as ts,hy as ho,S as me,az as ns,aA as os,aB as ss,i as ut,hz as rs,cz as is,bg as as,h6 as ls,hA as cs,ay as _n,cx as ds,ad as Ae,aJ as go,bJ as Vt,cf as ps,hB as us,b6 as ms,z as fs,aX as Ot,T as hs,aN as ze,at as kt,dE as gs,bq as xo,fP as Ft,aF as xs,dM as ys,hC as Cs,ge as Wn,hD as Hn,gg as Yn,aY as js,G as nt,gi as vs,bI as Ss}from"./index-BJy0Aykg.js";import{d as Jn}from"./Add-NewVG93V.js";import{a as Rs,R as st,F as bs,L as Es,d as qt,b as _t}from"./line-aqaJQGOE.js";import{C as Ts,A as ws,d as Ps}from"./agreement-DDEIcdN2.js";import{E as Is}from"./index-Dc91z-EC.js";import{b as ks,a as Us,c as Ds,u as Wt,e as Bs}from"./actions-DbKUVgjV.js";import{S as Ns}from"./switch-control-BL5Q92y_.js";import{u as As}from"./detail-DjuS1eoq.js";import{d as yo}from"./Edit-BgzVDDnU.js";import{T as Ls}from"./index-DysPnzV7.js";import{T as Os,M as Fs,t as Ms}from"./table-icons-Bjq5TgED.js";import{C as Kn}from"./click-to-copy-Cd2slBnK.js";import{T as J}from"./TextField-3uVNonhd.js";import{d as Ht}from"./Link-CSeasEZI.js";import{c as Gs,C as zs,a as Vs,b as qs,D as _s,A as Ws,B as Hs,d as Ys,S as Js}from"./item-DE1w-7fx.js";import{u as Ks,a as Qs,P as Co,L as Qn,A as Zs,S as Xs}from"./index-BnOCj4ky.js";import{u as jo,t as $s}from"./toUpper-DnPhzApo.js";import{u as se,a as er}from"./team-iad1pbmQ.js";import{c as tr,d as nr,a as or,e as sr,f as rr,g as Zn,h as ir,i as Xn}from"./spaces-Ndl2Z_l-.js";import{d as ar}from"./EditIcon-D0wQcFnY.js";import{d as lr}from"./Done-BJ9nFL7V.js";import{C as cr}from"./Google-DU7ZCGKH.js";import{I as dr,B as pr}from"./install-from-url-DuMsEyFI.js";import{a as $n}from"./api-3nNr_UzI.js";import{v as vo,a as it}from"./util-Brqqzx0p.js";import{P as ur,u as mr}from"./use-blocklet-info-for-connect-did-spaces-BqhgZgq5.js";import{D as fr}from"./DeleteOutline-BlZHBiGU.js";import{S as eo}from"./index-DeBMBarq.js";import{d as hr}from"./ArrowDropDown-Bd9sR9Kj.js";import{_ as gr}from"./useLocalStorage-B9e_6vUG.js";import{d as xr}from"./LockIcon-BlIFddg8.js";import{d as mt}from"./Delete-LMbP8m3y.js";import{d as So}from"./Launch-D-68sLeU.js";import{C as yr}from"./delete-confirm-ri-NT9BE.js";import{W as _e}from"./tag-Cksz2rJp.js";import{d as Cr}from"./is-path-prefix-equal-CYIvKmVL.js";import{R as jr,b as to,B as Ro}from"./url-evaluation-CTHUhxLd.js";import{B as vr}from"./bundle-avatar-DrhjE4I8.js";import{A as Sr}from"./actions-C2sJQ8Fo.js";import{I as Ut}from"./index-VH-ysxX_.js";import{a as Rr}from"./index-F32lbxl3.js";import"./ButtonGroup-pLJbtCLI.js";import"./getValidReactChildren-2v0cL06g.js";import"./index-_GlgH8Bo.js";import"./index-BQUIGxYm.js";import"./url-join-Dfl-k5vL.js";import"./MoreVert-Cei2Rx5H.js";import"./app-avatar-DxfZHNQ7.js";import"./Breadcrumbs-AZ_8G3rf.js";import"./FilterList-YahW7b2T.js";import"./Select-DdUtkwyq.js";import"./InputLabel-DOxBtPfl.js";import"./LastPage-DmVgRYiw.js";import"./slicedToArray-CkMd8cEG.js";import"./Search-xUbipjHz.js";import"./ChevronLeft-C0YN2KhY.js";import"./ChevronRight-hQNW7SHU.js";import"./DeleteOutline-D7kF8YLA.js";import"./redux-CIzpcDy1.js";import"./Skeleton-DVrY1Qbr.js";import"./InputAdornment-CP3BhuEs.js";import"./memoize-one.esm-BdPwpGay.js";import"./index-wR2FBwGe.js";import"./preact.module-B1z5cdvs.js";import"./Close-S913aeni.js";import"./lottie-BbyPiNfn.js";import"./Stepper-D1V6NqBX.js";import"./index-C9Gucb3e.js";const br=zo(e.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"}),"TextSnippetOutlined");var Yt={},Er=Gt;Object.defineProperty(Yt,"__esModule",{value:!0});var bo=Yt.default=void 0,Tr=Er(Mt()),wr=e;bo=Yt.default=(0,Tr.default)((0,wr.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");function Jt({children:t,...o}){const{t:s}=V(),{updateAutoCheckUpdate:l,autoCheckUpdate:n}=As(),i=async()=>{try{const a=!(n!=null&&n.enabled);await l({enabled:a}),N.success(s(a?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(a){N.error(a.message)}},p=!!(n!=null&&n.enabled);return e.jsxs(j,{display:"flex",flexDirection:"row",alignItems:"center",children:[t,e.jsx(fe,{title:s("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:e.jsx("div",{children:e.jsx(Ns,{checked:p,onChange:i,name:"enableWelcomePage",style:{...o.style,zoom:.8}})})})]})}Jt.propTypes={children:r.any};Jt.defaultProps={children:null};const Pr=(t,o)=>{let{description:s}=t;return(Object.values(K.CHAIN_PROP_MAP).includes(t.key)||O.isEnvShareable(t))&&(s?s=`${s} (${o("blocklet.config.sharedToAllComponents")})`:s=o("blocklet.config.sharedToAllComponents")),s&&e.jsx("div",{style:{marginLeft:12},children:s})},Dt=(t,o,s=[])=>!(s!=null&&s.length)&&!t.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(t.key)&&!o.meta.environments.find(l=>l.name===t.key)&&o.children.every(l=>!l.meta.environments.find(n=>n.name===t.key))?!0:t.custom;function at({blocklet:t,ancestors:o}){const s=H(),{inService:l}=s,{t:n}=g.useContext(ye),i=[...o.map(f=>f.meta.did),t.meta.did],p=()=>N.success(n("blocklet.config.changedTip")),a=f=>Dt(f,t,o);if(Ve(t.status)||t.status==="unknown"&&Ve(t.status))return null;const u=async f=>{if(!f.key.trim()||!f.value.trim()){N.error(n("blocklet.config.environment.keyValueRequired"));return}if(f.key.startsWith("BLOCKLET_")||f.key.startsWith("COMPONENT_")){N.error(n("blocklet.config.environment.invalidKey"));return}f.custom=!0;try{const S=await s.api.configBlocklet({input:{did:i,configs:[f]}});p(S.blocklet)}catch(S){N.error(Z(S))}},x=async(f,S)=>{if(f.required&&(!f.key.trim()||!f.value.trim())){N.error(n("blocklet.config.environment.keyValueRequired"));return}if(f.key.startsWith("BLOCKLET_")&&!K.BLOCKLET_CONFIGURABLE_KEY[f.key]){N.error(n("blocklet.config.environment.invalidKey"));return}if(f.key===K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const P=Vo(f);if(P){N.error(P);return}}const R=[{...f,value:f.secure&&f.value==="__encrypted__"?"":f.value}];if(f.key!==S.key){if(!Dt(f,t,o)){N.error("Only key of custom env can be changed");return}R.push({key:S.key,custom:!0})}try{const P=await s.api.configBlocklet({input:{did:i,configs:R}});p(P.blocklet)}catch(P){N.error(Z(P))}},y=async f=>{if(f.required){N.error(n("blocklet.config.environment.deleteForbidden"));return}if(!Dt(f,t,o)){N.error("Only key of custom env can be changed");return}try{const S=await s.api.configBlocklet({input:{did:i,configs:[{key:f.key,custom:!0}]}});p(S.blocklet)}catch(S){N.error(Z(S))}},d=(t.configs||[]).filter(f=>!K.BLOCKLET_CONFIGURABLE_KEY[f.key]),v=O.getSharedConfigObj(o[0],t),c=O.getComponentMissingConfigs(t,o[0]),h=d.map(f=>({...f,value:Object.values(K.CHAIN_PROP_MAP).includes(f.key)&&Object.keys(v).includes(f.key)?v[f.key]:v[f.key]||f.value})),C=h.some(f=>f.key&&f.key.startsWith("BWA_")),m={onRowAdd:u,onRowUpdate:x,onRowDelete:y,isDeletable:a},b=()=>[{title:n("common.key"),field:"key",initialEditValue:"Key",width:"30%",render:f=>e.jsx(Kn,{value:f.value,style:{color:f.required&&!f.value?"#ff4436":"#222222",fontWeight:f.required?"bold":"normal"},children:f.key}),editComponent:f=>{const{value:S,rowData:R,onChange:P}=f;return e.jsx(no,{children:e.jsx(J,{fullWidth:!0,size:"small",disabled:a(R)===!1,value:S,onChange:L=>P(L.target.value),variant:"outlined",label:"Key",placeholder:n("blocklet.config.environment.key"),margin:"dense",autoFocus:!0})})}},{title:n("common.value"),field:"value",initialEditValue:"Value",width:"calc((100% - (96px + 30%)) / 1)",render:f=>f.value?f.secure?"******":e.jsx(Kn,{unstyled:!0,value:f.value,style:{wordBreak:"break-all"},children:f.value}):null,editComponent:f=>{const{value:S,rowData:R,onChange:P}=f;return e.jsxs(no,{children:[e.jsx(J,{fullWidth:!0,size:"small",value:S==="__encrypted__"?"":S,onChange:L=>P(L.target.value),variant:"outlined",label:n("common.value"),placeholder:n("blocklet.config.environment.value"),margin:"dense",autoFocus:!0}),Pr(R,n)]})}}];return e.jsxs(Ir,{children:[!!c.length&&e.jsx(Vn,{severity:"error",style:{marginTop:24},children:n("blocklet.config.missingRequired")}),C&&e.jsx(Vn,{severity:"info",children:n("blocklet.config.environment.tip")}),e.jsx(Nt,{permission:l?"":"mutate_blocklets",role:l?Be:[],children:f=>e.jsx(Os,{className:"config-table",children:e.jsx(Fs,{title:e.jsx("h4",{children:n("common.environment")}),columns:b(),icons:{...ks,...Ms},options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1},localization:{header:{actions:n("common.actions")},body:{emptyDataSourceMessage:n("common.noData")}},data:h,editable:f?m:{}})})})]})}at.propTypes={blocklet:r.object.isRequired,ancestors:r.array};at.defaultProps={ancestors:[]};const Ir=F.div`
2
2
  .config-table {
3
3
  margin-bottom: 24px;
4
4
  position: relative;
@@ -63,7 +63,7 @@ import{bL as zo,j as e,aK as Mt,aL as Gt,q as V,O as j,ax as fe,P as r,A as N,bl
63
63
  .ux-dialog_right {
64
64
  padding-right: 20px;
65
65
  }
66
- `,{NODE_MODES:oo}=k,Ar=({mode:t,previousMode:o}={})=>t===oo.SERVERLESS||o===oo.SERVERLESS;var Eo={isInServerlessMode:Ar};function Lr(){const[t,o]=g.useState(null),{blocklet:s}=se();return g.useEffect(()=>{o(tr(s))},[s]),{storageEndpoint:t}}const To=g.createContext({}),{Provider:Or,Consumer:Ya}=To;function Kt({children:t}){const[o,s]=g.useState(!1),[l,n]=g.useState(null),{blocklet:i,actions:{refreshBlocklet:p}}=se(),{storageEndpoint:a}=Lr(),{api:u}=H();qo(async()=>{try{if(s(!0),qn.isEmpty(a)){n(null);return}const c=await nr(a);n(c)}catch(c){console.error(c),N.error(c.message)}finally{s(!1)}},[a]);const x=()=>{n(null),p()},y=async c=>{n(c),await d(c.endpoint),p()},d=async c=>{await u.configBlocklet({input:{did:[i.meta.did],configs:[{key:K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:c}]}}),p()};g.useEffect(()=>{async function c(){if(!l)return;const h=await or(l.endpoint,l.name),C=qn.merge(l,{name:h});n(C)}c()},[]);const v=!!(a&&l);return e.jsx(Or,{value:{loading:o,spaceGateway:l,deleteSpaceGateway:x,updateSpaceGateway:y,storageEndpoint:a,settingStorageEndpoint:d,hasStorageEndpoint:v},children:t})}Kt.propTypes={children:qe.node.isRequired};Kt.defaultProps={};function Qt(){return g.useContext(To)}const Zt={description:r.string,editing:r.bool,onChange:r.func,required:r.bool,value:r.any,componentProps:r.object,render:r.func,renderFormItem:r.func};function Xt({editing:t,value:o,onChange:s}){const[l,n]=g.useState(!1),i=g.useRef(),p=g.useRef(o);g.useEffect(()=>{let d=null;return t&&(d=setTimeout(()=>{n(!0)},50)),()=>{clearTimeout(d)}},[t]);const a=d=>{p.current=d,s(d)},u=()=>{n(!1),s(p.current)},x=e.jsx(j,{className:"form-item-input slot",px:1,children:e.jsxs(j,{display:"flex",alignItems:"center",children:[o,o!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:o,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),y=e.jsxs(j,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:u,children:[e.jsx(j,{display:"flex",alignItems:"center",onClick:()=>n(!0),children:e.jsx("div",{ref:i,style:{flexShrink:0,marginLeft:"8px",backgroundColor:o,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:o==="auto"?"default":"pointer"}})}),e.jsx(_o,{open:l,anchorEl:i.current,onClose:()=>n(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(cr,{color:o,onChange:d=>a(d.hex)})})]});return t?y:x}Xt.propTypes=Zt;function $t({editing:t,description:o,value:s,onChange:l,componentProps:n,...i}){const{placeholder:p}=n,a=g.useRef(s),u=y=>{y.key==="Enter"&&l(a.current,"confirm")},x=y=>{a.current=y,l(y)};return t?e.jsx(J,{style:{flex:1},fullWidth:!0,value:s,onChange:y=>{y.persist(),x(y.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:o||p,onKeyDown:u,...i}):e.jsx(j,{px:1,className:"form-item-input slot",children:s})}$t.propTypes=Zt;$t.defaultProps={componentProps:{}};function en({editing:t,value:o,onChange:s,componentProps:l,...n}){const{blocklet:i}=l,p=o==="auto"?Wo.getPassportColorFromDid(i.appDid):o;return e.jsxs(j,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:Ho({title:"Owner",issuer:O.getDisplayName(i),issuerDid:i.appDid,ownerName:"Your Name",ownerDid:i.appDid,preferredColor:o||"auto"})}}),e.jsx(Xt,{...n,editing:t,value:t?p:o,onChange:s,componentProps:l})]})}en.propTypes={...Zt,componentProps:r.shape({blocklet:r.object.isRequired}).isRequired};en.defaultProps={};const Fr={input:$t,color:Xt,passport:en,uploader:t=>e.jsx(Es,{...t.componentProps})};function Mr(t,{editing:o=!1}){const{componentType:s="input",render:l,renderFormItem:n}=t;return o&&n?n:!o&&l?l:Fr[s==null?void 0:s.toLowerCase()]}function tn({schema:t,loading:o,value:s,defaultValue:l,onChange:n,style:i,disabled:p}){const a=Object.prototype.toString.call(s)==="[object Object]",[u,x]=g.useState(null),[y,d]=g.useState(a?s:l),v=g.useRef();function c(m,b,f){const{key:S,secure:R}=m,L=y[S]!==b,A={...y,[S]:b};L&&d(A),n({[S]:b},{allValues:A,action:f,currentItem:m}),f==="confirm"&&R&&d({...y,[S]:"__encrypted__"}),["confirm","cancel"].includes(f)?h(null):h(m)}function h(m){if(m){v.current=y[m.key],x(m);return}v.current=null,x(null)}function C(m,{editing:b=!1}){const{key:f}=m,S=a?s[f]:y[f];return S==="__encrypted__"?b?"":"******":S}return e.jsx(Gr,{className:"form",style:i,children:t==null?void 0:t.map(m=>{const{key:b,description:f,required:S,solo:R=!1,hidden:P=!1,componentProps:L={}}=m;if(P)return null;const A=!!(u&&b===u.key),B=C(m,{editing:A}),D=Mr(m,{editing:A}),M={inputProps:{"data-cy":"schema-form-item-component"},key:b,description:f,editing:A,value:B,onChange:(I,Y="change")=>c(m,I,Y),componentProps:L};return e.jsxs(j,{className:"form-item",children:[!R&&e.jsxs(j,{className:"form-item-label",style:{color:S&&!B?"#ff0000":"#333"},children:[f,S&&e.jsx(st,{})]}),e.jsxs(j,{className:"form-item-body",children:[e.jsx(j,{className:"form-item-input",sx:{textAlign:R?"center":"left"},children:e.jsx(D,{...M})}),!R&&e.jsx(j,{className:"form-item-action",children:A?e.jsxs(e.Fragment,{children:[e.jsx(ee,{"data-cy":"schema-form-item-confirm",onClick:()=>{c(m,B,"confirm")},disabled:p||o,size:"large",children:o?e.jsx(ae,{size:24}):e.jsx(lr,{})}),e.jsx(ee,{"data-cy":"schema-form-item-cancel",onClick:()=>{c(m,v.current,"cancel")},disabled:p||o,size:"large",children:e.jsx(Yo,{})})]}):e.jsx(ee,{"data-cy":"schema-form-item-edit",onClick:()=>{c(m,y[b],"edit")},disabled:p||u,size:"large",children:e.jsx(ar,{})})})]})]},b)})})}tn.propTypes={schema:r.array.isRequired,loading:r.bool,onChange:r.func.isRequired,value:r.object,defaultValue:r.object,style:r.object,disabled:r.bool};tn.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const Gr=F(bs)``;function nn({meta:t,onCancel:o,mode:s,handlePaySuccess:l}){const{t:n,locale:i}=V(),{info:p}=H(),a=co(p),[u,x]=g.useState(null),y=new URL(t==null?void 0:t.registryUrl).origin,d=O.getDisplayName({meta:t}),v=async(h,C)=>{const m=({downloadTokenList:S})=>{l({downloadTokenList:S})},b=S=>{N.error(S),o(S)};function f(S){return Ko(()=>$n.get(S).then(async({data:R})=>{const P=R==null?void 0:R.downloadTokenList;if(R.status==="succeed"){if(P&&P.length)await m({downloadTokenList:P});else return await b(n("blocklet.component.missDownloadTokenTip")),!0;return!0}return R.status==="error"?(console.error("vc error: ",R),await b(R==null?void 0:R.error),!0):!1}),{interval:1e3})}if(s==="purchase"&&u){const{statusUrl:S}=Jo(u);await f(S)}else await m({downloadTokenList:h.downloadTokenList&&C(h.downloadTokenList)})};if(g.useEffect(()=>{if(s==="purchase"){const h=new URL(y);h.pathname="/api/did/verify-purchase-blocklet/token",h.searchParams.set("serverDid",p.did),h.searchParams.set("blockletDid",t==null?void 0:t.did);try{$n.get(h.href).then(({data:C})=>{const m=`${C.url}`;x(m)})}catch(C){console.error("get next workflow url error: ",C)}}return()=>{x(null)}},[s]),s==="purchase"&&!u)return"";const c={verify:{action:"verify-purchase-blocklet",checkFn:rt.create({baseURL:y}).get,extraParams:{serverDid:p.did,blockletDid:t==null?void 0:t.did},messages:{title:n("store.purchase.verify.auth.title",{name:d}),scan:n("store.purchase.verify.auth.scan"),confirm:n("store.purchase.verify.auth.confirm"),success:n("store.purchase.verify.auth.success")}},purchase:{action:"acquire-asset",checkFn:rt.create({baseURL:Ee(y,"/store")}).get,extraParams:{factory:t.nftFactory,nw:u},messages:{title:n("store.purchase.auth.title",{name:d}),scan:n("store.purchase.auth.scan"),confirm:n("store.purchase.auth.confirm"),success:e.jsxs(e.Fragment,{children:[e.jsx("p",{children:n("store.purchase.auth.success")}),e.jsx("p",{children:n("blocklet.component.purchaseComponentSecondCheckTip")})]})}}};return e.jsx(Lt,{open:!0,locale:i,popup:!1,saveConnect:!1,className:"connect",baseUrl:y,onSuccess:v,cancelWhenScanned:o,onClose:o,checkTimeout:60*5e3,webWalletUrl:a,disableClose:!0,showDownload:!1,...c[s]})}nn.propTypes={...Gs,handlePaySuccess:r.func,mode:r.oneOf(["verify","purchase"]).isRequired};nn.defaultProps={handlePaySuccess:()=>{}};const on=g.forwardRef(({mode:t,...o},s)=>{const[l,n]=g.useState(t!=="both"?t:"verify"),[i,p]=g.useState(t!=="both"?2:1),a=x=>{x!==l&&n(x)},u=()=>{l&&i!==2&&p(2)};return g.useImperativeHandle(s,()=>({onNext:u,getCurrentStep:()=>i})),i===1?e.jsx("div",{style:{maxWidth:520},children:e.jsx(zs,{action:l,onNext:null,onSelect:a})}):e.jsx(nn,{...o,mode:l})});on.propTypes={mode:r.oneOf(["both","verify","purchase"]).isRequired,ref:r.any};on.defaultProps={ref:{}};const zr=on;function Vr({...t}){return e.jsx(X,{className:"bottom-button",variant:"contained",color:"primary",...t})}function sn({key:t}={key:"sm"}){const o=po();return zt(o.breakpoints.down(t))}function rn({blocklet:t,onStartNow:o,children:s,disabled:l}){const{t:n}=V(),i=sn();return!t||Qo(t.meta)?e.jsx(qr,{children:s}):e.jsxs(_r,{isMobile:i,children:[e.jsx(Vr,{className:"start-now",variant:"contained",color:"primary",disabled:l,onClick:()=>o(),children:n("setup.startNow")}),e.jsx(j,{display:"flex",alignItems:"center",children:s})]})}rn.propTypes={blocklet:r.object,onStartNow:r.func,children:r.any,disabled:r.bool};rn.defaultProps={blocklet:null,onStartNow:()=>{},children:null,disabled:!1};const qr=F(j)`
66
+ `,{NODE_MODES:oo}=k,Ar=({mode:t,previousMode:o}={})=>t===oo.SERVERLESS||o===oo.SERVERLESS;var Eo={isInServerlessMode:Ar};function Lr(){const[t,o]=g.useState(null),{blocklet:s}=se();return g.useEffect(()=>{o(tr(s))},[s]),{storageEndpoint:t}}const To=g.createContext({}),{Provider:Or,Consumer:Ja}=To;function Kt({children:t}){const[o,s]=g.useState(!1),[l,n]=g.useState(null),{blocklet:i,actions:{refreshBlocklet:p}}=se(),{storageEndpoint:a}=Lr(),{api:u}=H();qo(async()=>{try{if(s(!0),qn.isEmpty(a)){n(null);return}const c=await nr(a);n(c)}catch(c){console.error(c),N.error(c.message)}finally{s(!1)}},[a]);const x=()=>{n(null),p()},y=async c=>{n(c),await d(c.endpoint),p()},d=async c=>{await u.configBlocklet({input:{did:[i.meta.did],configs:[{key:K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:c}]}}),p()};g.useEffect(()=>{async function c(){if(!l)return;const h=await or(l.endpoint,l.name),C=qn.merge(l,{name:h});n(C)}c()},[]);const v=!!(a&&l);return e.jsx(Or,{value:{loading:o,spaceGateway:l,deleteSpaceGateway:x,updateSpaceGateway:y,storageEndpoint:a,settingStorageEndpoint:d,hasStorageEndpoint:v},children:t})}Kt.propTypes={children:qe.node.isRequired};Kt.defaultProps={};function Qt(){return g.useContext(To)}const Zt={description:r.string,editing:r.bool,onChange:r.func,required:r.bool,value:r.any,componentProps:r.object,render:r.func,renderFormItem:r.func};function Xt({editing:t,value:o,onChange:s}){const[l,n]=g.useState(!1),i=g.useRef(),p=g.useRef(o);g.useEffect(()=>{let d=null;return t&&(d=setTimeout(()=>{n(!0)},50)),()=>{clearTimeout(d)}},[t]);const a=d=>{p.current=d,s(d)},u=()=>{n(!1),s(p.current)},x=e.jsx(j,{className:"form-item-input slot",px:1,children:e.jsxs(j,{display:"flex",alignItems:"center",children:[o,o!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:o,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),y=e.jsxs(j,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:u,children:[e.jsx(j,{display:"flex",alignItems:"center",onClick:()=>n(!0),children:e.jsx("div",{ref:i,style:{flexShrink:0,marginLeft:"8px",backgroundColor:o,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:o==="auto"?"default":"pointer"}})}),e.jsx(_o,{open:l,anchorEl:i.current,onClose:()=>n(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(cr,{color:o,onChange:d=>a(d.hex)})})]});return t?y:x}Xt.propTypes=Zt;function $t({editing:t,description:o,value:s,onChange:l,componentProps:n,...i}){const{placeholder:p}=n,a=g.useRef(s),u=y=>{y.key==="Enter"&&l(a.current,"confirm")},x=y=>{a.current=y,l(y)};return t?e.jsx(J,{style:{flex:1},fullWidth:!0,value:s,onChange:y=>{y.persist(),x(y.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:o||p,onKeyDown:u,...i}):e.jsx(j,{px:1,className:"form-item-input slot",children:s})}$t.propTypes=Zt;$t.defaultProps={componentProps:{}};function en({editing:t,value:o,onChange:s,componentProps:l,...n}){const{blocklet:i}=l,p=o==="auto"?Wo.getPassportColorFromDid(i.appDid):o;return e.jsxs(j,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:Ho({title:"Owner",issuer:O.getDisplayName(i),issuerDid:i.appDid,ownerName:"Your Name",ownerDid:i.appDid,preferredColor:o||"auto"})}}),e.jsx(Xt,{...n,editing:t,value:t?p:o,onChange:s,componentProps:l})]})}en.propTypes={...Zt,componentProps:r.shape({blocklet:r.object.isRequired}).isRequired};en.defaultProps={};const Fr={input:$t,color:Xt,passport:en,uploader:t=>e.jsx(Es,{...t.componentProps})};function Mr(t,{editing:o=!1}){const{componentType:s="input",render:l,renderFormItem:n}=t;return o&&n?n:!o&&l?l:Fr[s==null?void 0:s.toLowerCase()]}function tn({schema:t,loading:o,value:s,defaultValue:l,onChange:n,style:i,disabled:p}){const a=Object.prototype.toString.call(s)==="[object Object]",[u,x]=g.useState(null),[y,d]=g.useState(a?s:l),v=g.useRef();function c(m,b,f){const{key:S,secure:R}=m,L=y[S]!==b,A={...y,[S]:b};L&&d(A),n({[S]:b},{allValues:A,action:f,currentItem:m}),f==="confirm"&&R&&d({...y,[S]:"__encrypted__"}),["confirm","cancel"].includes(f)?h(null):h(m)}function h(m){if(m){v.current=y[m.key],x(m);return}v.current=null,x(null)}function C(m,{editing:b=!1}){const{key:f}=m,S=a?s[f]:y[f];return S==="__encrypted__"?b?"":"******":S}return e.jsx(Gr,{className:"form",style:i,children:t==null?void 0:t.map(m=>{const{key:b,description:f,required:S,solo:R=!1,hidden:P=!1,componentProps:L={}}=m;if(P)return null;const A=!!(u&&b===u.key),B=C(m,{editing:A}),D=Mr(m,{editing:A}),M={inputProps:{"data-cy":"schema-form-item-component"},key:b,description:f,editing:A,value:B,onChange:(I,Y="change")=>c(m,I,Y),componentProps:L};return e.jsxs(j,{className:"form-item",children:[!R&&e.jsxs(j,{className:"form-item-label",style:{color:S&&!B?"#ff0000":"#333"},children:[f,S&&e.jsx(st,{})]}),e.jsxs(j,{className:"form-item-body",children:[e.jsx(j,{className:"form-item-input",sx:{textAlign:R?"center":"left"},children:e.jsx(D,{...M})}),!R&&e.jsx(j,{className:"form-item-action",children:A?e.jsxs(e.Fragment,{children:[e.jsx(ee,{"data-cy":"schema-form-item-confirm",onClick:()=>{c(m,B,"confirm")},disabled:p||o,size:"large",children:o?e.jsx(ae,{size:24}):e.jsx(lr,{})}),e.jsx(ee,{"data-cy":"schema-form-item-cancel",onClick:()=>{c(m,v.current,"cancel")},disabled:p||o,size:"large",children:e.jsx(Yo,{})})]}):e.jsx(ee,{"data-cy":"schema-form-item-edit",onClick:()=>{c(m,y[b],"edit")},disabled:p||u,size:"large",children:e.jsx(ar,{})})})]})]},b)})})}tn.propTypes={schema:r.array.isRequired,loading:r.bool,onChange:r.func.isRequired,value:r.object,defaultValue:r.object,style:r.object,disabled:r.bool};tn.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const Gr=F(bs)``;function nn({meta:t,onCancel:o,mode:s,handlePaySuccess:l}){const{t:n,locale:i}=V(),{info:p}=H(),a=co(p),[u,x]=g.useState(null),y=new URL(t==null?void 0:t.registryUrl).origin,d=O.getDisplayName({meta:t}),v=async(h,C)=>{const m=({downloadTokenList:S})=>{l({downloadTokenList:S})},b=S=>{N.error(S),o(S)};function f(S){return Ko(()=>$n.get(S).then(async({data:R})=>{const P=R==null?void 0:R.downloadTokenList;if(R.status==="succeed"){if(P&&P.length)await m({downloadTokenList:P});else return await b(n("blocklet.component.missDownloadTokenTip")),!0;return!0}return R.status==="error"?(console.error("vc error: ",R),await b(R==null?void 0:R.error),!0):!1}),{interval:1e3})}if(s==="purchase"&&u){const{statusUrl:S}=Jo(u);await f(S)}else await m({downloadTokenList:h.downloadTokenList&&C(h.downloadTokenList)})};if(g.useEffect(()=>{if(s==="purchase"){const h=new URL(y);h.pathname="/api/did/verify-purchase-blocklet/token",h.searchParams.set("serverDid",p.did),h.searchParams.set("blockletDid",t==null?void 0:t.did);try{$n.get(h.href).then(({data:C})=>{const m=`${C.url}`;x(m)})}catch(C){console.error("get next workflow url error: ",C)}}return()=>{x(null)}},[s]),s==="purchase"&&!u)return"";const c={verify:{action:"verify-purchase-blocklet",checkFn:rt.create({baseURL:y}).get,extraParams:{serverDid:p.did,blockletDid:t==null?void 0:t.did},messages:{title:n("store.purchase.verify.auth.title",{name:d}),scan:n("store.purchase.verify.auth.scan"),confirm:n("store.purchase.verify.auth.confirm"),success:n("store.purchase.verify.auth.success")}},purchase:{action:"acquire-asset",checkFn:rt.create({baseURL:Ee(y,"/store")}).get,extraParams:{factory:t.nftFactory,nw:u},messages:{title:n("store.purchase.auth.title",{name:d}),scan:n("store.purchase.auth.scan"),confirm:n("store.purchase.auth.confirm"),success:e.jsxs(e.Fragment,{children:[e.jsx("p",{children:n("store.purchase.auth.success")}),e.jsx("p",{children:n("blocklet.component.purchaseComponentSecondCheckTip")})]})}}};return e.jsx(Lt,{open:!0,locale:i,popup:!1,saveConnect:!1,className:"connect",baseUrl:y,onSuccess:v,cancelWhenScanned:o,onClose:o,checkTimeout:60*5e3,webWalletUrl:a,disableClose:!0,showDownload:!1,...c[s]})}nn.propTypes={...Gs,handlePaySuccess:r.func,mode:r.oneOf(["verify","purchase"]).isRequired};nn.defaultProps={handlePaySuccess:()=>{}};const on=g.forwardRef(({mode:t,...o},s)=>{const[l,n]=g.useState(t!=="both"?t:"verify"),[i,p]=g.useState(t!=="both"?2:1),a=x=>{x!==l&&n(x)},u=()=>{l&&i!==2&&p(2)};return g.useImperativeHandle(s,()=>({onNext:u,getCurrentStep:()=>i})),i===1?e.jsx("div",{style:{maxWidth:520},children:e.jsx(zs,{action:l,onNext:null,onSelect:a})}):e.jsx(nn,{...o,mode:l})});on.propTypes={mode:r.oneOf(["both","verify","purchase"]).isRequired,ref:r.any};on.defaultProps={ref:{}};const zr=on;function Vr({...t}){return e.jsx(X,{className:"bottom-button",variant:"contained",color:"primary",...t})}function sn({key:t}={key:"sm"}){const o=po();return zt(o.breakpoints.down(t))}function rn({blocklet:t,onStartNow:o,children:s,disabled:l}){const{t:n}=V(),i=sn();return!t||Qo(t.meta)?e.jsx(qr,{children:s}):e.jsxs(_r,{isMobile:i,children:[e.jsx(Vr,{className:"start-now",variant:"contained",color:"primary",disabled:l,onClick:()=>o(),children:n("setup.startNow")}),e.jsx(j,{display:"flex",alignItems:"center",children:s})]})}rn.propTypes={blocklet:r.object,onStartNow:r.func,children:r.any,disabled:r.bool};rn.defaultProps={blocklet:null,onStartNow:()=>{},children:null,disabled:!1};const qr=F(j)`
67
67
  width: 100%;
68
68
  margin-top: auto;
69
69
  padding-top: 24px;
@@ -1,4 +1,4 @@
1
- import{n as $,P,r as w,f as ge,j as e,C as V,i as ke,u as me,q,t as je,v as ye,D as Ce,B as W,w as ve,m as L,x as Se,y as Be,z as de,A as z,E as we,d as Ae,F as De,H as Te,J as ee,K as Ee,M as T,N as te,O as y,Q as Ie,R as F,S as Le,U as Pe,V as Re}from"./index-DHvVD3rl.js";import{_ as se}from"./useLocalStorage-BOaGasKr.js";import{g as _e,D as Fe}from"./index-CiB-ceGd.js";import{E as Ne}from"./index-CmUhV6b0.js";import{u as $e,B as oe}from"./url-evaluation-ceiaoY0M.js";import{D as Ue,u as Me,B as ne}from"./actions-Dunvsfuf.js";import{l as le}from"./index-CYqmm0Sa.js";import{W as Oe}from"./tag-BDr72C87.js";import{I as We,B as ze}from"./install-from-url-D_JUSXN1.js";import{B as ae}from"./app-avatar-DQiSEUVG.js";import{d as Ve}from"./Add-CazR0vZK.js";import{S as E}from"./index-CtlJtm28.js";import{T as re}from"./TextField-B9TZBqQf.js";import{F as qe,S as Ke}from"./Select-DXPyl9dO.js";import"./FilterList-usqmRCGh.js";import"./Delete-DHiwhVmP.js";import"./InputLabel-Csh1ynXt.js";import"./LastPage-DnsJsUIR.js";import"./index-CNEFxICJ.js";import"./redux-DYjmRPcE.js";import"./Search-CQMDHt0w.js";import"./MoreVert-BzXa-i1R.js";import"./ButtonGroup-DxRrpbFw.js";import"./getValidReactChildren-BhT8Dia7.js";import"./isEqual-BT0_AVZN.js";import"./index-D6XxoBY_.js";import"./Stepper-F9lgPB4i.js";function N({blocklet:g,skipAccessibilityCheck:c=!1,...p}){const{t:a}=w.useContext(ge),{urls:C,loading:o,recommendedUrl:m}=$e(g);if(o&&!c)return e.jsx(V,{size:12,...p});const x=c?C[0]:m;return x?e.jsx(He,{...p,children:e.jsx(Qe,{children:e.jsx(ke,{href:x,target:"_blank",className:"blocklet-interface",underline:"hover",children:a("common.open")})})}):a("blocklet.router.noAccessibleUrl")}const Qe=$.div`
1
+ import{n as $,P,r as w,f as ge,j as e,C as V,i as ke,u as me,q,t as je,v as ye,D as Ce,B as W,w as ve,m as L,x as Se,y as Be,z as de,A as z,E as we,d as Ae,F as De,H as Te,J as ee,K as Ee,M as T,N as te,O as y,Q as Ie,R as F,S as Le,U as Pe,V as Re}from"./index-BJy0Aykg.js";import{_ as se}from"./useLocalStorage-B9e_6vUG.js";import{g as _e,D as Fe}from"./index-CLeW9jNa.js";import{E as Ne}from"./index-Dc91z-EC.js";import{u as $e,B as oe}from"./url-evaluation-CTHUhxLd.js";import{D as Ue,u as Me,B as ne}from"./actions-DbKUVgjV.js";import{l as le}from"./index-D74eXDyn.js";import{W as Oe}from"./tag-Cksz2rJp.js";import{I as We,B as ze}from"./install-from-url-DuMsEyFI.js";import{B as ae}from"./app-avatar-DxfZHNQ7.js";import{d as Ve}from"./Add-NewVG93V.js";import{S as E}from"./index-DeBMBarq.js";import{T as re}from"./TextField-3uVNonhd.js";import{F as qe,S as Ke}from"./Select-DdUtkwyq.js";import"./FilterList-YahW7b2T.js";import"./Delete-LMbP8m3y.js";import"./InputLabel-DOxBtPfl.js";import"./LastPage-DmVgRYiw.js";import"./index-f9oKLglL.js";import"./redux-CIzpcDy1.js";import"./Search-xUbipjHz.js";import"./MoreVert-Cei2Rx5H.js";import"./ButtonGroup-pLJbtCLI.js";import"./getValidReactChildren-2v0cL06g.js";import"./isEqual-GyLZxSRY.js";import"./index-VH-ysxX_.js";import"./Stepper-D1V6NqBX.js";function N({blocklet:g,skipAccessibilityCheck:c=!1,...p}){const{t:a}=w.useContext(ge),{urls:C,loading:o,recommendedUrl:m}=$e(g);if(o&&!c)return e.jsx(V,{size:12,...p});const x=c?C[0]:m;return x?e.jsx(He,{...p,children:e.jsx(Qe,{children:e.jsx(ke,{href:x,target:"_blank",className:"blocklet-interface",underline:"hover",children:a("common.open")})})}):a("blocklet.router.noAccessibleUrl")}const Qe=$.div`
2
2
  display: flex;
3
3
  margin: 4px 0;
4
4
  `,He=$.div`