@abtnode/webapp 1.16.30-beta-e7a90fb2 → 1.16.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-nimIss-R.js → Add-B6ZIiZST.js} +1 -1
- package/dist/assets/{ArrowDropDown-SDLo8AU6.js → ArrowDropDown-CTOfLnwc.js} +1 -1
- package/dist/assets/{Autocomplete-mLMpcAAZ.js → Autocomplete-BRgMnZ52.js} +1 -1
- package/dist/assets/{Breadcrumbs-Bt0YLDiP.js → Breadcrumbs-s9U9zLgF.js} +1 -1
- package/dist/assets/{ButtonGroup-BIMC9S6K.js → ButtonGroup-3w5LvaA0.js} +1 -1
- package/dist/assets/{CheckCircle-__Xpcyhc.js → CheckCircle-DE_y9vib.js} +1 -1
- package/dist/assets/{ChevronLeft-DFREsjdS.js → ChevronLeft-CvWKad8W.js} +1 -1
- package/dist/assets/{ChevronRight-SbPIKwoC.js → ChevronRight-93HrdGCM.js} +1 -1
- package/dist/assets/{Close-BpEmkp97.js → Close-DzKkufzk.js} +1 -1
- package/dist/assets/{Delete-B-wviuP1.js → Delete-DFFe3xyW.js} +1 -1
- package/dist/assets/DeleteOutline-yYcRq6ni.js +1 -0
- package/dist/assets/{Done-DEwehpwv.js → Done-3-QQ_TOf.js} +1 -1
- package/dist/assets/{Edit-DK6KZi0P.js → Edit-wLc7o2cw.js} +1 -1
- package/dist/assets/{EditIcon-FDN14b0G.js → EditIcon-BCVTD6hP.js} +1 -1
- package/dist/assets/{ExpandMore-CoMbEsJD.js → ExpandMore-CFYbzpsT.js} +1 -1
- package/dist/assets/{FilterList-BSbt4VER.js → FilterList-FEjK2Fox.js} +1 -1
- package/dist/assets/{Google-DvvB9-RU.js → Google-C9I0SVEJ.js} +1 -1
- package/dist/assets/{Https-CHMUgx6-.js → Https-BPSFFlg6.js} +1 -1
- package/dist/assets/{InputAdornment-C_X3KhDA.js → InputAdornment-DT4h3g9o.js} +1 -1
- package/dist/assets/{InputLabel-qD-ek4kX.js → InputLabel-BOR0LpK5.js} +1 -1
- package/dist/assets/{LastPage-DRexSCl8.js → LastPage-BmNCoOR7.js} +1 -1
- package/dist/assets/{Launch-CXTnJ_ZP.js → Launch-BN3gZaS3.js} +1 -1
- package/dist/assets/{Link-BVKoqsek.js → Link-Dxx2K6Ua.js} +1 -1
- package/dist/assets/{LoadingButton-DHGZB25W.js → LoadingButton-DdNqcAhj.js} +1 -1
- package/dist/assets/{LockIcon-DGE39kAx.js → LockIcon-BB4v3xDA.js} +1 -1
- package/dist/assets/{Loop-DQi2cfGf.js → Loop-COqhNCYW.js} +1 -1
- package/dist/assets/{MoreHoriz-BXgBR7_l.js → MoreHoriz-IPlU_Vvy.js} +1 -1
- package/dist/assets/{MoreVert-xXktVXrB.js → MoreVert-C_-FQbwq.js} +1 -1
- package/dist/assets/{Pagination-DnPfWmf4.js → Pagination-BfGbGnHW.js} +1 -1
- package/dist/assets/{Public-DZG9u5nc.js → Public-CcSZDx4-.js} +1 -1
- package/dist/assets/{SchemaReference.es-DknvTEzi.js → SchemaReference.es-DmaLWYOX.js} +1 -1
- package/dist/assets/{Search-D2g_vALD.js → Search-CjX0JQkS.js} +1 -1
- package/dist/assets/{Select-DEE1eR0K.js → Select-C44-YCyD.js} +1 -1
- package/dist/assets/{Skeleton-m_lkZ6lH.js → Skeleton-4s7n7VqF.js} +1 -1
- package/dist/assets/{Slider-CBmIjsNj.js → Slider-C0JALcDq.js} +1 -1
- package/dist/assets/{Stepper-D4h3SXw3.js → Stepper-BRwbb4LL.js} +1 -1
- package/dist/assets/{TextField-Cml5LlcX.js → TextField-BjNW7Bjw.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DdMGIkJV.js → ToggleButtonGroup-DtqIWzr-.js} +1 -1
- package/dist/assets/{ViewList-Lg33z4FS.js → ViewList-CHj6lFwi.js} +1 -1
- package/dist/assets/{actions-Rsfuoore.js → actions-DGcLEhc9.js} +1 -1
- package/dist/assets/{actions-CCw2fiQZ.js → actions-TtrKwsqz.js} +1 -1
- package/dist/assets/{agreement-C2LFpgfH.js → agreement-DXIl-xR_.js} +1 -1
- package/dist/assets/api-Rcl-3MyM.js +1 -0
- package/dist/assets/{app-avatar-Z0pI74yn.js → app-avatar-BvOjNwzf.js} +1 -1
- package/dist/assets/{audit-logs-CGjF68d3.js → audit-logs-D4-Bez8p.js} +1 -1
- package/dist/assets/blocklet-d8bc_SQ4.js +1 -0
- package/dist/assets/{brace-fold.es-D-xxO9tk.js → brace-fold.es-B1LEOxqn.js} +1 -1
- package/dist/assets/{bundle-avatar-k-apmNe0.js → bundle-avatar-CW4zHZR5.js} +1 -1
- package/dist/assets/{chart-BHydpm-Q.js → chart-TIGkq42g.js} +1 -1
- package/dist/assets/{click-to-copy--CxmqZHP.js → click-to-copy-ZbSHXJko.js} +1 -1
- package/dist/assets/{closebrackets.es-CV5tiUGf.js → closebrackets.es-hz2Jou3O.js} +1 -1
- package/dist/assets/{codemirror.es-BSwJ_jke.js → codemirror.es-DRCfXk0r.js} +1 -1
- package/dist/assets/{comment.es-CN939E1H.js → comment.es-BmnkGJwk.js} +1 -1
- package/dist/assets/{config-navigation-BKucf5SM.js → config-navigation-DS08ePOc.js} +1 -1
- package/dist/assets/{delete-confirm-DOwYzFRf.js → delete-confirm-CGv3y6py.js} +1 -1
- package/dist/assets/{detail-BBO1G3ZP.js → detail-DmU03eC7.js} +3 -3
- package/dist/assets/{dialog.es-K7-bZIzF.js → dialog.es-CSYXNrcw.js} +1 -1
- package/dist/assets/{download-D88K6-GQ.js → download-CAroNPKK.js} +1 -1
- package/dist/assets/{foldgutter.es-DPSTEVXv.js → foldgutter.es-BSRJoBoZ.js} +1 -1
- package/dist/assets/getValidReactChildren-Y-QNoefA.js +1 -0
- package/dist/assets/{hint.es-DHTbet23.js → hint.es-DuHUgHT3.js} +1 -1
- package/dist/assets/{hint.es2-DaSN5I8T.js → hint.es2-CLzxOo96.js} +1 -1
- package/dist/assets/{iframe-DjGjc5CU.js → iframe-C3LtsJmK.js} +1 -1
- package/dist/assets/index-3tln4L6C.js +21 -0
- package/dist/assets/{index-D3GDvQdK.js → index-8azRnZez.js} +1 -1
- package/dist/assets/{index-TQDBcpeB.js → index-BApbAOLy.js} +1 -1
- package/dist/assets/{index-CF-WslF6.js → index-BN-HHDJJ.js} +1 -1
- package/dist/assets/{index-Daw6hKm4.js → index-BQmNmoac.js} +1 -1
- package/dist/assets/{index-DxgXNSd2.js → index-BZCt88Kn.js} +14 -14
- package/dist/assets/{index-C1KbWOak.js → index-BatYQHX2.js} +3 -3
- package/dist/assets/{index-wB3ekx1K.js → index-BdL0EBBo.js} +1 -1
- package/dist/assets/{index-Blc0lQcO.js → index-BfvNFce6.js} +1 -1
- package/dist/assets/{index-Co3JrBLr.js → index-BrDzj3_R.js} +1 -1
- package/dist/assets/{index-D3_NSRjd.js → index-C3UQMAkF.js} +1 -1
- package/dist/assets/{index-Dx95ER6O.js → index-C3q33eZl.js} +1 -1
- package/dist/assets/{index-CBTLvRHC.js → index-C4LMPu9u.js} +1 -1
- package/dist/assets/{index-BGI6bUJP.js → index-CJBZPdm6.js} +1 -1
- package/dist/assets/{index-DKrhe0Pd.js → index-CR_2MaC1.js} +1 -1
- package/dist/assets/{index-CE0mBRzM.js → index-CUztA_gz.js} +1 -1
- package/dist/assets/{index-ZTQq6T3W.js → index-CkbP6S_A.js} +1 -1
- package/dist/assets/{index-CAo0UcQ2.js → index-Cmy0GHU-.js} +1 -1
- package/dist/assets/{index-D_qCD-1x.js → index-Ctog4pYE.js} +1 -1
- package/dist/assets/{index-6hnZjYIo.js → index-CveYHk3t.js} +1 -1
- package/dist/assets/{index-BGXvULAc.js → index-D0RT0rzU.js} +1 -1
- package/dist/assets/{index-De9X8iTH.js → index-D53ihNsv.js} +1 -1
- package/dist/assets/{index-f7aL1bUo.js → index-D6q9zEjn.js} +5 -5
- package/dist/assets/{index-Cpw6Ga8g.js → index-DQo_Dew3.js} +1 -1
- package/dist/assets/{index-cqDbkK4O.js → index-DTSardYw.js} +1 -1
- package/dist/assets/{index-AO3oCF1x.js → index-DfTYGL67.js} +3 -3
- package/dist/assets/index-DnLx-UdH.js +68 -0
- package/dist/assets/{index-CeV4jn0N.js → index-DpVeIVbC.js} +1 -1
- package/dist/assets/{index-guvEPGrM.js → index-DrdqOXJL.js} +3 -3
- package/dist/assets/{index-DBP_eUf8.js → index-DtsnjFBd.js} +1 -1
- package/dist/assets/{index-C4Q4NeqR.js → index-Dy-ye0PE.js} +1 -1
- package/dist/assets/{index-BHdqgom8.js → index-DzlR4ROA.js} +2 -2
- package/dist/assets/{index-BKhW6tEi.js → index-EKqCJff8.js} +1 -1
- package/dist/assets/{index-o8JHOBc-.js → index-RRgjvIfT.js} +1 -1
- package/dist/assets/{index-mgj182ld.js → index-RrRN76hq.js} +1 -1
- package/dist/assets/{index-Mn9Cn8cU.js → index-UbiaSDM9.js} +1 -1
- package/dist/assets/{index-BsbdXNYr.js → index-aiikLstk.js} +1 -1
- package/dist/assets/{index-CgsfYcwc.js → index-ffNDefbl.js} +1 -1
- package/dist/assets/{index-DGNm6YxS.js → index-fiBRRSS-.js} +1 -1
- package/dist/assets/{index-BPHA36fg.js → index-po1Du4Ca.js} +1 -1
- package/dist/assets/{index-Dj8gJMNb.js → index-qSHb4AGp.js} +1 -1
- package/dist/assets/{index-ChCCjycd.js → index-sw48VBzs.js} +1 -1
- package/dist/assets/{index-DBjm0dlo.js → index-vCyUMIWI.js} +1 -1
- package/dist/assets/{index-D-FCWV-1.js → index-x2vTLzR6.js} +1 -1
- package/dist/assets/{index.es-39a3Nx9Z.js → index.es-C2y5LgUg.js} +1 -1
- package/dist/assets/{index.esm-VCHOqK12.js → index.esm-DNLYWMPY.js} +1 -1
- package/dist/assets/{info-addon.es-BC4uTAVC.js → info-addon.es-OU9D4WD4.js} +1 -1
- package/dist/assets/{info.es-BOB5BDAa.js → info.es-BYpWwfiq.js} +1 -1
- package/dist/assets/{install-from-url-BlpJ_JCL.js → install-from-url-BHRJMyoo.js} +1 -1
- package/dist/assets/{invitation-B9vV54jI.js → invitation-4BcBcG3g.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-5RuRfdDZ.js → is-path-prefix-equal-QODAXh-c.js} +1 -1
- package/dist/assets/{isEqual-BMA5WXPh.js → isEqual-CFOAIOWs.js} +1 -1
- package/dist/assets/{item-BCjdddLT.js → item-DinHwjuB.js} +1 -1
- package/dist/assets/{javascript.es-CKHSRONz.js → javascript.es-BZ4hu16-.js} +1 -1
- package/dist/assets/{jump-to-line.es-BGiUhkkZ.js → jump-to-line.es-ds6uZCNW.js} +1 -1
- package/dist/assets/{jump.es-jlQKmx9y.js → jump.es-Dow2EsmT.js} +1 -1
- package/dist/assets/{line-BQ1AqKfx.js → line-Cpeu8572.js} +3 -3
- package/dist/assets/{lint.es-Ccw618G7.js → lint.es-BumMccTK.js} +1 -1
- package/dist/assets/{lint.es2-EOTuUPIZ.js → lint.es2-BzVHBAgd.js} +1 -1
- package/dist/assets/{lint.es3-DvHlvUn_.js → lint.es3-ziEStM1n.js} +1 -1
- package/dist/assets/{list-header-RtdpLA8N.js → list-header-5GKfEIKg.js} +1 -1
- package/dist/assets/{log-C240GbUG.js → log-BzeVufdm.js} +1 -1
- package/dist/assets/{lottie-DlriAay1.js → lottie-Dittdj4N.js} +1 -1
- package/dist/assets/{matchbrackets.es-C5JsbqKa.js → matchbrackets.es-DqPFoH1c.js} +1 -1
- package/dist/assets/{memory-DmcKHXq0.js → memory-CVFS6lDi.js} +1 -1
- package/dist/assets/{mode.es-mDILARJO.js → mode.es-tUbE6Sz4.js} +1 -1
- package/dist/assets/{mode.es2-BBLB98Wl.js → mode.es2-DOWb3-oK.js} +1 -1
- package/dist/assets/{mode.es3-Bp7C6PMW.js → mode.es3-BcjY2hx8.js} +1 -1
- package/dist/assets/{onlineParser.es-BoSRyIcT.js → onlineParser.es-BdeAPFTn.js} +1 -1
- package/dist/assets/{overview-_Rxbv1NB.js → overview-D7vbgmTw.js} +1 -1
- package/dist/assets/{react-DuJ5ZkKy.js → react-Dervdh0W.js} +3 -3
- package/dist/assets/{redux-B1Qumh5U.js → redux-C4Q_CSvp.js} +1 -1
- package/dist/assets/{resource-dialog-WWRI08PV.js → resource-dialog-Byph1CoJ.js} +1 -1
- package/dist/assets/{runtime-5oxnTidw.js → runtime-7TSih23R.js} +1 -1
- package/dist/assets/{schema-5ne-6Bp4.js → schema-Bq2ly-4o.js} +1 -1
- package/dist/assets/sdk-aTAcQDv-.js +1 -0
- package/dist/assets/{search.es-R2FORdVe.js → search.es-CMLj29wb.js} +1 -1
- package/dist/assets/{searchcursor.es-DO5Jf4gN.js → searchcursor.es-eHb4SABv.js} +1 -1
- package/dist/assets/service-FolPIcUS.js +1 -0
- package/dist/assets/{shorten-label-CZlXdSOl.js → shorten-label-BSQEIROA.js} +1 -1
- package/dist/assets/{show-hint.es-Bx2uNweg.js → show-hint.es-Bn3zEE4X.js} +1 -1
- package/dist/assets/{slicedToArray-Bg3ityWL.js → slicedToArray-ROu8OO6l.js} +1 -1
- package/dist/assets/{spaces-fC9EAj53.js → spaces-CKLphlMZ.js} +1 -1
- package/dist/assets/{status-BXJ91n7W.js → status-6F7XJ5dp.js} +1 -1
- package/dist/assets/{sublime.es-DHZMehLW.js → sublime.es-CYqGOBLs.js} +1 -1
- package/dist/assets/{switch-control-BuiDLx3e.js → switch-control-BxRwCbFm.js} +1 -1
- package/dist/assets/{table-icons-bAAAjGK1.js → table-icons-BXeoVsYd.js} +2 -2
- package/dist/assets/{team-QnBuJ2rq.js → team-nBwKhOsv.js} +1 -1
- package/dist/assets/{toUpper-CFRRtQH6.js → toUpper-BBB_TInl.js} +1 -1
- package/dist/assets/{traffic-CNgUOmfv.js → traffic-BgMFjNc5.js} +1 -1
- package/dist/assets/{url-evaluation-BTdmiGRO.js → url-evaluation-C7b_jErN.js} +1 -1
- package/dist/assets/{url-join-CiWL3EAW.js → url-join-LN7aIhdX.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-CMsH-TzL.js → use-blocklet-info-for-connect-did-spaces-Dw7UZ6Jz.js} +1 -1
- package/dist/assets/{useLocalStorage-D6Ii7-Uk.js → useLocalStorage-F8gidp1W.js} +1 -1
- package/dist/assets/{useThemeProps-BlrL4N8K.js → useThemeProps-CRpVKi5P.js} +1 -1
- package/dist/assets/{util-DSMcrouF.js → util-DjDIVQpP.js} +1 -1
- package/dist/assets/{wait-container-BRhHYdS-.js → wait-container-fwTsXfbb.js} +1 -1
- package/dist/assets/{withStyles-CHrv3QJu.js → withStyles-unQnV9F2.js} +1 -1
- package/dist/assets/{wrap-locale-D-OFTljj.js → wrap-locale-CCm3KObK.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/DeleteOutline-DU3a7Mie.js +0 -1
- package/dist/assets/DeleteOutline-Dy_sSwNK.js +0 -1
- package/dist/assets/api-_ETsEoGC.js +0 -1
- package/dist/assets/blocklet-D8qZlMLE.js +0 -1
- package/dist/assets/getValidReactChildren-86LVJ_ka.js +0 -1
- package/dist/assets/index-CqrpWUFf.js +0 -21
- package/dist/assets/index-DUXbXc9f.js +0 -68
- package/dist/assets/sdk-Go6IWQIY.js +0 -1
- package/dist/assets/service-VyIQYaE6.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C}from"./codemirror.es-
|
|
1
|
+
import{C}from"./codemirror.es-DRCfXk0r.js";import"./show-hint.es-Bn3zEE4X.js";import{R as a,C as m,g as A,i as F,T as fe,S as Te,a as ge,I as Ee,G as H,b as O,d as me,e as ve,f as Se,h as ye,j as Ie,D as E,v as De,p as Fe,k as w,l as Ne,m as P,n as z,K as Y,o as be,q as _e,r as Ae}from"./index-D6q9zEjn.js";import{P as ke,C as Q}from"./Range.es-DaV7MD2W.js";import{o as Oe}from"./onlineParser.es-BdeAPFTn.js";import{S as J,T as K,a as $}from"./introspection.es-CPJcz6nz.js";import"./index-DzlR4ROA.js";var Me=Object.defineProperty,T=(t,r)=>Me(t,"name",{value:r,configurable:!0});function W(t){let r;return j(t,i=>{switch(i.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":r=i;break}}),r}T(W,"getDefinitionState");function V(t,r,i){return i===J.name&&t.getQueryType()===r?J:i===K.name&&t.getQueryType()===r?K:i===$.name&&F(r)?$:"getFields"in r?r.getFields()[i]:null}T(V,"getFieldDef");function j(t,r){const i=[];let n=t;for(;n!=null&&n.kind;)i.push(n),n=n.prevState;for(let e=i.length-1;e>=0;e--)r(i[e])}T(j,"forEachState");function N(t){const r=Object.keys(t),i=r.length,n=new Array(i);for(let e=0;e<i;++e)n[e]=t[r[e]];return n}T(N,"objectValues");function I(t,r){return X(r,G(t.string))}T(I,"hintList");function X(t,r){if(!r)return h(t,n=>!n.isDeprecated);const i=t.map(n=>({proximity:Z(G(n.label),r),entry:n}));return h(h(i,n=>n.proximity<=2),n=>!n.entry.isDeprecated).sort((n,e)=>(n.entry.isDeprecated?1:0)-(e.entry.isDeprecated?1:0)||n.proximity-e.proximity||n.entry.label.length-e.entry.label.length).map(n=>n.entry)}T(X,"filterAndSortList");function h(t,r){const i=t.filter(r);return i.length===0?t:i}T(h,"filterNonEmpty");function G(t){return t.toLowerCase().replace(/\W/g,"")}T(G,"normalizeText");function Z(t,r){let i=q(r,t);return t.length>r.length&&(i-=t.length-r.length-1,i+=t.indexOf(r)===0?0:.5),i}T(Z,"getProximity");function q(t,r){let i,n;const e=[],l=t.length,o=r.length;for(i=0;i<=l;i++)e[i]=[i];for(n=1;n<=o;n++)e[0][n]=n;for(i=1;i<=l;i++)for(n=1;n<=o;n++){const u=t[i-1]===r[n-1]?0:1;e[i][n]=Math.min(e[i-1][n]+1,e[i][n-1]+1,e[i-1][n-1]+u),i>1&&n>1&&t[i-1]===r[n-2]&&t[i-2]===r[n-1]&&(e[i][n]=Math.min(e[i][n],e[i-2][n-2]+u))}return e[l][o]}T(q,"lexicalDistance");const ee={command:"editor.action.triggerSuggest",title:"Suggestions"},Le=T(t=>{const r=[];if(t)try{De(Fe(t),{FragmentDefinition(i){r.push(i)}})}catch{return[]}return r},"collectFragmentDefs");function ne(t,r,i,n,e,l){var o;const u=Object.assign(Object.assign({},l),{schema:t}),s=n||ue(r,i),c=s.state.kind==="Invalid"?s.state.prevState:s.state;if(!c)return[];const p=c.kind,g=c.step,S=pe(t,s.state);if(p===a.DOCUMENT)return I(s,[{label:"query",kind:m.Function},{label:"mutation",kind:m.Function},{label:"subscription",kind:m.Function},{label:"fragment",kind:m.Function},{label:"{",kind:m.Constructor}]);if(p===a.IMPLEMENTS||p===a.NAMED_TYPE&&((o=c.prevState)===null||o===void 0?void 0:o.kind)===a.IMPLEMENTS)return re(s,c,t,r,S);if(p===a.SELECTION_SET||p===a.FIELD||p===a.ALIASED_FIELD)return te(s,S,u);if(p===a.ARGUMENTS||p===a.ARGUMENT&&g===0){const d=S.argDefs;if(d)return I(s,d.map(f=>{var v;return{label:f.name,insertText:f.name+": ",command:ee,detail:String(f.type),documentation:(v=f.description)!==null&&v!==void 0?v:void 0,kind:m.Variable,type:f.type}}))}if((p===a.OBJECT_VALUE||p===a.OBJECT_FIELD&&g===0)&&S.objectFieldDefs){const d=N(S.objectFieldDefs),f=p===a.OBJECT_VALUE?m.Value:m.Field;return I(s,d.map(v=>{var D;return{label:v.name,detail:String(v.type),documentation:(D=v.description)!==null&&D!==void 0?D:void 0,kind:f,type:v.type}}))}if(p===a.ENUM_VALUE||p===a.LIST_VALUE&&g===1||p===a.OBJECT_FIELD&&g===2||p===a.ARGUMENT&&g===2)return ie(s,S,r,t);if(p===a.VARIABLE&&g===1){const d=A(S.inputType),f=B(r,t,s);return I(s,f.filter(v=>v.detail===(d==null?void 0:d.name)))}return p===a.TYPE_CONDITION&&g===1||p===a.NAMED_TYPE&&c.prevState!=null&&c.prevState.kind===a.TYPE_CONDITION?ae(s,S,t):p===a.FRAGMENT_SPREAD&&g===1?oe(s,S,t,r,Array.isArray(e)?e:Le(e)):p===a.VARIABLE_DEFINITION&&g===2||p===a.LIST_TYPE&&g===1||p===a.NAMED_TYPE&&c.prevState&&(c.prevState.kind===a.VARIABLE_DEFINITION||c.prevState.kind===a.LIST_TYPE||c.prevState.kind===a.NON_NULL_TYPE)?le(s,t):p===a.DIRECTIVE?ce(s,c,t):[]}T(ne,"getAutocompleteSuggestions");const R=` {
|
|
2
2
|
$1
|
|
3
3
|
}`,Ce=T(t=>{const r=t.type;return F(r)||w(r)&&F(r.ofType)||Ne(r)&&(F(r.ofType)||w(r.ofType)&&F(r.ofType.ofType))?R:null},"getInsertText");function te(t,r,i){var n;if(r.parentType){const e=r.parentType;let l=[];return"getFields"in e&&(l=N(e.getFields())),F(e)&&l.push(fe),e===((n=i==null?void 0:i.schema)===null||n===void 0?void 0:n.getQueryType())&&l.push(Te,ge),I(t,l.map((o,u)=>{var s;const c={sortText:String(u)+o.name,label:o.name,detail:String(o.type),documentation:(s=o.description)!==null&&s!==void 0?s:void 0,deprecated:!!o.deprecationReason,isDeprecated:!!o.deprecationReason,deprecationReason:o.deprecationReason,kind:m.Field,type:o.type},p=Ce(o);return p&&(c.insertText=o.name+p,c.insertTextFormat=Ee.Snippet,c.command=ee),c}))}return[]}T(te,"getSuggestionsForFieldNames");function ie(t,r,i,n){const e=A(r.inputType),l=B(i,n,t).filter(o=>o.detail===e.name);if(e instanceof H){const o=e.getValues();return I(t,o.map(u=>{var s;return{label:u.name,detail:String(e),documentation:(s=u.description)!==null&&s!==void 0?s:void 0,deprecated:!!u.deprecationReason,isDeprecated:!!u.deprecationReason,deprecationReason:u.deprecationReason,kind:m.EnumMember,type:e}}).concat(l))}else if(e===O)return I(t,l.concat([{label:"true",detail:String(O),documentation:"Not false.",kind:m.Variable,type:O},{label:"false",detail:String(O),documentation:"Not true.",kind:m.Variable,type:O}]));return l}T(ie,"getSuggestionsForInputValues");function re(t,r,i,n,e){if(r.needsSeparator)return[];const l=i.getTypeMap(),o=N(l).filter(me),u=o.map(({name:d})=>d),s=new Set;M(n,(d,f)=>{var v,D,_,b,y;if(f.name&&(f.kind===a.INTERFACE_DEF&&!u.includes(f.name)&&s.add(f.name),f.kind===a.NAMED_TYPE&&((v=f.prevState)===null||v===void 0?void 0:v.kind)===a.IMPLEMENTS)){if(e.interfaceDef){if((D=e.interfaceDef)===null||D===void 0?void 0:D.getInterfaces().find(({name:x})=>x===f.name))return;const U=i.getType(f.name),k=(_=e.interfaceDef)===null||_===void 0?void 0:_.toConfig();e.interfaceDef=new P(Object.assign(Object.assign({},k),{interfaces:[...k.interfaces,U||new P({name:f.name,fields:{}})]}))}else if(e.objectTypeDef){if((b=e.objectTypeDef)===null||b===void 0?void 0:b.getInterfaces().find(({name:x})=>x===f.name))return;const U=i.getType(f.name),k=(y=e.objectTypeDef)===null||y===void 0?void 0:y.toConfig();e.objectTypeDef=new z(Object.assign(Object.assign({},k),{interfaces:[...k.interfaces,U||new P({name:f.name,fields:{}})]}))}}});const c=e.interfaceDef||e.objectTypeDef,g=((c==null?void 0:c.getInterfaces())||[]).map(({name:d})=>d),S=o.concat([...s].map(d=>({name:d}))).filter(({name:d})=>d!==(c==null?void 0:c.name)&&!g.includes(d));return I(t,S.map(d=>{const f={label:d.name,kind:m.Interface,type:d};return d!=null&&d.description&&(f.documentation=d.description),f}))}T(re,"getSuggestionsForImplements");function ae(t,r,i,n){let e;if(r.parentType)if(ve(r.parentType)){const l=Se(r.parentType),o=i.getPossibleTypes(l),u=Object.create(null);o.forEach(s=>{s.getInterfaces().forEach(c=>{u[c.name]=c})}),e=o.concat(N(u))}else e=[r.parentType];else{const l=i.getTypeMap();e=N(l).filter(F)}return I(t,e.map(l=>{const o=A(l);return{label:String(l),documentation:(o==null?void 0:o.description)||"",kind:m.Field}}))}T(ae,"getSuggestionsForFragmentTypeConditions");function oe(t,r,i,n,e){if(!n)return[];const l=i.getTypeMap(),o=W(t.state),u=se(n);e&&e.length>0&&u.push(...e);const s=u.filter(c=>l[c.typeCondition.name.value]&&!(o&&o.kind===a.FRAGMENT_DEFINITION&&o.name===c.name.value)&&F(r.parentType)&&F(l[c.typeCondition.name.value])&&ye(i,r.parentType,l[c.typeCondition.name.value]));return I(t,s.map(c=>({label:c.name.value,detail:String(l[c.typeCondition.name.value]),documentation:`fragment ${c.name.value} on ${c.typeCondition.name.value}`,kind:m.Field,type:l[c.typeCondition.name.value]})))}T(oe,"getSuggestionsForFragmentSpread");const Re=T((t,r)=>{var i,n,e,l,o,u,s,c,p,g;if(((i=t.prevState)===null||i===void 0?void 0:i.kind)===r)return t.prevState;if(((e=(n=t.prevState)===null||n===void 0?void 0:n.prevState)===null||e===void 0?void 0:e.kind)===r)return t.prevState.prevState;if(((u=(o=(l=t.prevState)===null||l===void 0?void 0:l.prevState)===null||o===void 0?void 0:o.prevState)===null||u===void 0?void 0:u.kind)===r)return t.prevState.prevState.prevState;if(((g=(p=(c=(s=t.prevState)===null||s===void 0?void 0:s.prevState)===null||c===void 0?void 0:c.prevState)===null||p===void 0?void 0:p.prevState)===null||g===void 0?void 0:g.kind)===r)return t.prevState.prevState.prevState.prevState},"getParentDefinition");function B(t,r,i){let n=null,e;const l=Object.create({});return M(t,(o,u)=>{if((u==null?void 0:u.kind)===a.VARIABLE&&u.name&&(n=u.name),(u==null?void 0:u.kind)===a.NAMED_TYPE&&n){const s=Re(u,a.TYPE);s!=null&&s.type&&(e=r.getType(s==null?void 0:s.type))}n&&e&&(l[n]||(l[n]={detail:e.toString(),insertText:i.string==="$"?n:"$"+n,label:n,type:e,kind:m.Variable},n=null,e=null))}),N(l)}T(B,"getVariableCompletions");function se(t){const r=[];return M(t,(i,n)=>{n.kind===a.FRAGMENT_DEFINITION&&n.name&&n.type&&r.push({kind:a.FRAGMENT_DEFINITION,name:{kind:Y.NAME,value:n.name},selectionSet:{kind:a.SELECTION_SET,selections:[]},typeCondition:{kind:a.NAMED_TYPE,name:{kind:Y.NAME,value:n.type}}})}),r}T(se,"getFragmentDefinitions");function le(t,r,i){const n=r.getTypeMap(),e=N(n).filter(Ie);return I(t,e.map(l=>({label:l.name,documentation:l.description,kind:m.Variable})))}T(le,"getSuggestionsForVariableDefinition");function ce(t,r,i,n){var e;if(!((e=r.prevState)===null||e===void 0)&&e.kind){const l=i.getDirectives().filter(o=>de(r.prevState,o));return I(t,l.map(o=>({label:o.name,documentation:o.description||"",kind:m.Function})))}return[]}T(ce,"getSuggestionsForDirective");function ue(t,r){let i=null,n=null,e=null;const l=M(t,(o,u,s,c)=>{if(c===r.line&&o.getCurrentPosition()>=r.character)return i=s,n=Object.assign({},u),e=o.current(),"BREAK"});return{start:l.start,end:l.end,string:e||l.string,state:n||l.state,style:i||l.style}}T(ue,"getTokenAtPosition");function M(t,r){const i=t.split(`
|
|
4
4
|
`),n=Oe();let e=n.startState(),l="",o=new Q("");for(let u=0;u<i.length;u++){for(o=new Q(i[u]);!o.eol()&&(l=n.token(o,e),r(o,e,l,u)!=="BREAK"););r(o,e,l,u),e.kind||(e=n.startState())}return{start:o.getStartOfToken(),end:o.getCurrentPosition(),string:o.current(),state:e,style:l}}T(M,"runOnlineParser");function de(t,r){var i;if(!t||!t.kind)return!1;const n=t.kind,e=r.locations;switch(n){case a.QUERY:return e.indexOf(E.QUERY)!==-1;case a.MUTATION:return e.indexOf(E.MUTATION)!==-1;case a.SUBSCRIPTION:return e.indexOf(E.SUBSCRIPTION)!==-1;case a.FIELD:case a.ALIASED_FIELD:return e.indexOf(E.FIELD)!==-1;case a.FRAGMENT_DEFINITION:return e.indexOf(E.FRAGMENT_DEFINITION)!==-1;case a.FRAGMENT_SPREAD:return e.indexOf(E.FRAGMENT_SPREAD)!==-1;case a.INLINE_FRAGMENT:return e.indexOf(E.INLINE_FRAGMENT)!==-1;case a.SCHEMA_DEF:return e.indexOf(E.SCHEMA)!==-1;case a.SCALAR_DEF:return e.indexOf(E.SCALAR)!==-1;case a.OBJECT_TYPE_DEF:return e.indexOf(E.OBJECT)!==-1;case a.FIELD_DEF:return e.indexOf(E.FIELD_DEFINITION)!==-1;case a.INTERFACE_DEF:return e.indexOf(E.INTERFACE)!==-1;case a.UNION_DEF:return e.indexOf(E.UNION)!==-1;case a.ENUM_DEF:return e.indexOf(E.ENUM)!==-1;case a.ENUM_VALUE:return e.indexOf(E.ENUM_VALUE)!==-1;case a.INPUT_DEF:return e.indexOf(E.INPUT_OBJECT)!==-1;case a.INPUT_VALUE_DEF:switch((i=t.prevState)===null||i===void 0?void 0:i.kind){case a.ARGUMENTS_DEF:return e.indexOf(E.ARGUMENT_DEFINITION)!==-1;case a.INPUT_DEF:return e.indexOf(E.INPUT_FIELD_DEFINITION)!==-1}}return!1}T(de,"canUseDirective");function pe(t,r){let i,n,e,l,o,u,s,c,p,g,S;return j(r,d=>{var f;switch(d.kind){case a.QUERY:case"ShortQuery":g=t.getQueryType();break;case a.MUTATION:g=t.getMutationType();break;case a.SUBSCRIPTION:g=t.getSubscriptionType();break;case a.INLINE_FRAGMENT:case a.FRAGMENT_DEFINITION:d.type&&(g=t.getType(d.type));break;case a.FIELD:case a.ALIASED_FIELD:{!g||!d.name?o=null:(o=p?V(t,p,d.name):null,g=o?o.type:null);break}case a.SELECTION_SET:p=A(g);break;case a.DIRECTIVE:e=d.name?t.getDirective(d.name):null;break;case a.INTERFACE_DEF:d.name&&(s=null,S=new P({name:d.name,interfaces:[],fields:{}}));break;case a.OBJECT_TYPE_DEF:d.name&&(S=null,s=new z({name:d.name,interfaces:[],fields:{}}));break;case a.ARGUMENTS:{if(!d.prevState)n=null;else switch(d.prevState.kind){case a.FIELD:n=o&&o.args;break;case a.DIRECTIVE:n=e&&e.args;break;case a.ALIASED_FIELD:{const y=(f=d.prevState)===null||f===void 0?void 0:f.name;if(!y){n=null;break}const L=p?V(t,p,y):null;if(!L){n=null;break}n=L.args;break}default:n=null;break}break}case a.ARGUMENT:if(n){for(let y=0;y<n.length;y++)if(n[y].name===d.name){i=n[y];break}}u=i==null?void 0:i.type;break;case a.ENUM_VALUE:const v=A(u);l=v instanceof H?v.getValues().find(y=>y.value===d.name):null;break;case a.LIST_VALUE:const D=_e(u);u=D instanceof Ae?D.ofType:null;break;case a.OBJECT_VALUE:const _=A(u);c=_ instanceof be?_.getFields():null;break;case a.OBJECT_FIELD:const b=d.name&&c?c[d.name]:null;u=b==null?void 0:b.type;break;case a.NAMED_TYPE:d.name&&(g=t.getType(d.name));break}}),{argDef:i,argDefs:n,directiveDef:e,enumValue:l,fieldDef:o,inputType:u,objectFieldDefs:c,parentType:p,type:g,interfaceDef:S,objectTypeDef:s}}T(pe,"getTypeInfo");C.registerHelper("hint","graphql",(t,r)=>{const i=r.schema;if(!i)return;const n=t.getCursor(),e=t.getTokenAt(n),l=e.type!==null&&/"|\w/.test(e.string[0])?e.start:e.end,o=new ke(n.line,l),s={list:ne(i,t.getValue(),o,e,r.externalFragments).map(c=>({text:c.label,type:c.type,description:c.documentation,isDeprecated:c.isDeprecated,deprecationReason:c.deprecationReason})),from:{line:n.line,ch:l},to:{line:n.line,ch:e.end}};return s!=null&&s.list&&s.list.length>0&&(s.from=C.Pos(s.from.line,s.from.ch),s.to=C.Pos(s.to.line,s.to.ch),C.signal(t,"hasCompletion",t,s,e)),s});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as u}from"./codemirror.es-
|
|
1
|
+
import{C as u}from"./codemirror.es-DRCfXk0r.js";import{f as j}from"./forEachState.es-D8bf0zSr.js";import{g,o as b,G as O,b as d,q as N,r as D}from"./index-D6q9zEjn.js";import"./index-DzlR4ROA.js";var M=Object.defineProperty,p=(r,n)=>M(r,"name",{value:n,configurable:!0});function f(r,n,t){const i=x(t,m(n.string));if(!i)return;const e=n.type!==null&&/"|\w/.test(n.string[0])?n.start:n.end;return{list:i,from:{line:r.line,ch:e},to:{line:r.line,ch:n.end}}}p(f,"hintList");function x(r,n){if(!n)return y(r,l=>!l.isDeprecated);const t=r.map(l=>({proximity:T(m(l.text),n),entry:l}));return y(y(t,l=>l.proximity<=2),l=>!l.entry.isDeprecated).sort((l,o)=>(l.entry.isDeprecated?1:0)-(o.entry.isDeprecated?1:0)||l.proximity-o.proximity||l.entry.text.length-o.entry.text.length).map(l=>l.entry)}p(x,"filterAndSortList");function y(r,n){const t=r.filter(n);return t.length===0?r:t}p(y,"filterNonEmpty");function m(r){return r.toLowerCase().replace(/\W/g,"")}p(m,"normalizeText");function T(r,n){let t=v(n,r);return r.length>n.length&&(t-=r.length-n.length-1,t+=r.indexOf(n)===0?0:.5),t}p(T,"getProximity");function v(r,n){let t,i;const e=[],l=r.length,o=n.length;for(t=0;t<=l;t++)e[t]=[t];for(i=1;i<=o;i++)e[0][i]=i;for(t=1;t<=l;t++)for(i=1;i<=o;i++){const c=r[t-1]===n[i-1]?0:1;e[t][i]=Math.min(e[t-1][i]+1,e[t][i-1]+1,e[t-1][i-1]+c),t>1&&i>1&&r[t-1]===n[i-2]&&r[t-2]===n[i-1]&&(e[t][i]=Math.min(e[t][i],e[t-2][i-2]+c))}return e[l][o]}p(v,"lexicalDistance");u.registerHelper("hint","graphql-variables",(r,n)=>{const t=r.getCursor(),i=r.getTokenAt(t),e=L(t,i,n);return e!=null&&e.list&&e.list.length>0&&(e.from=u.Pos(e.from.line,e.from.ch),e.to=u.Pos(e.to.line,e.to.ch),u.signal(r,"hasCompletion",r,e,i)),e});function L(r,n,t){const i=n.state.kind==="Invalid"?n.state.prevState:n.state,e=i.kind,l=i.step;if(e==="Document"&&l===0)return f(r,n,[{text:"{"}]);const o=t.variableToType;if(!o)return;const c=V(o,n.state);if(e==="Document"||e==="Variable"&&l===0){const a=Object.keys(o);return f(r,n,a.map(s=>({text:`"${s}": `,type:o[s]})))}if((e==="ObjectValue"||e==="ObjectField"&&l===0)&&c.fields){const a=Object.keys(c.fields).map(s=>c.fields[s]);return f(r,n,a.map(s=>({text:`"${s.name}": `,type:s.type,description:s.description})))}if(e==="StringValue"||e==="NumberValue"||e==="BooleanValue"||e==="NullValue"||e==="ListValue"&&l===1||e==="ObjectField"&&l===2||e==="Variable"&&l===2){const a=c.type?g(c.type):void 0;if(a instanceof b)return f(r,n,[{text:"{"}]);if(a instanceof O){const s=a.getValues();return f(r,n,s.map(h=>({text:`"${h.name}"`,type:a,description:h.description})))}else if(a===d)return f(r,n,[{text:"true",type:d,description:"Not false."},{text:"false",type:d,description:"Not true."}])}}p(L,"getVariablesHint");function V(r,n){const t={type:null,fields:null};return j(n,i=>{if(i.kind==="Variable")t.type=r[i.name];else if(i.kind==="ListValue"){const e=t.type?N(t.type):void 0;t.type=e instanceof D?e.ofType:null}else if(i.kind==="ObjectValue"){const e=t.type?g(t.type):void 0;t.fields=e instanceof b?e.getFields():null}else if(i.kind==="ObjectField"){const e=i.name&&t.fields?t.fields[i.name]:null;t.type=e==null?void 0:e.type}}),t}p(V,"getTypeInfo");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gv as x,bb as E}from"./index-
|
|
1
|
+
import{gv as x,bb as E}from"./index-DzlR4ROA.js";const L=({url:r,allowFullScreen:o,position:a,display:u,height:i,width:c,overflow:y,styles:f,onLoad:p,onMouseOver:b,onMouseOut:w,scrolling:d,id:m,frameBorder:n,ariaHidden:O,sandbox:s,allow:j,className:g,title:h,ariaLabel:k,ariaLabelledby:v,name:I,target:P,loading:A,importance:F,referrerpolicy:M,allowpaymentrequest:S,src:$,key:q})=>{const t=x({src:$||r,target:P||null,style:{position:a||null,display:u||"initial",overflow:y||null},scrolling:d||null,allowpaymentrequest:S||null,importance:F||null,sandbox:s&&[...s].join(" ")||null,loading:A||null,styles:f||null,name:I||null,className:g||null,allowFullScreen:"allowFullScreen",referrerpolicy:M||null,title:h||null,allow:j||null,id:m||null,"aria-labelledby":v||null,"aria-hidden":O||null,"aria-label":k||null,width:c||null,height:i||null,onLoad:p||null,onMouseOver:b||null,onMouseOut:w||null,key:q||"iframe"});let l=Object.create(null);for(let e of Object.keys(t))t[e]!=null&&(l[e]=t[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(o)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return n>=0&&(l.style.hasOwnProperty("border")||(l.style.border=n)),E.createElement("iframe",Object.assign({},l))},R=L;export{R as I};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{aj as X,A as N,r as p,a as Z,b as ee,P as x,t as j,u as P,z as te,au as $,N as _,j as t,y as q,av as se,q as S,m as v,D as M,aw as oe,V as O,ax as re,B as W,C as z,ay as ne,E as K,M as V,az as ae,aA as ie,aB as le,H as ce,aC as B,i as ue,n as H,a9 as de,a4 as pe,a6 as he,a7 as fe,aD as me,a8 as ge,Q as xe}from"./index-DzlR4ROA.js";import{_ as D}from"./useLocalStorage-F8gidp1W.js";import{c as be,C as ke,A as ye,D as Se,B as je,S as G,a as Pe,b as we}from"./item-DinHwjuB.js";import{d as Re}from"./ArrowDropDown-CTOfLnwc.js";import{B as ve}from"./Breadcrumbs-s9U9zLgF.js";import"./index-DQo_Dew3.js";import"./index-ZG7jWpak.js";import"./index-po1Du4Ca.js";import"./Search-CjX0JQkS.js";import"./index-CR_2MaC1.js";import"./Select-C44-YCyD.js";import"./InputAdornment-DT4h3g9o.js";import"./preact.module-DJUF--8d.js";import"./Add-B6ZIiZST.js";import"./TextField-BjNW7Bjw.js";import"./InputLabel-BOR0LpK5.js";import"./Launch-BN3gZaS3.js";import"./Done-3-QQ_TOf.js";import"./DeleteOutline-yYcRq6ni.js";import"./delete-confirm-CGv3y6py.js";import"./click-to-copy-ZbSHXJko.js";import"./shorten-label-BSQEIROA.js";import"./blocklet-d8bc_SQ4.js";import"./MoreVert-C_-FQbwq.js";import"./ButtonGroup-3w5LvaA0.js";import"./getValidReactChildren-Y-QNoefA.js";function Ce(e){const n=X(),c=N(),[s,o]=D(`sid:blocklet:purchase:${e}`),[l,u]=p.useState(!1),[h,a]=p.useState(null),d=()=>{const{pathname:r,searchParams:m}=new URL(window.location.href),b=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";m.get("sid")&&(o(""),c(r.replace(b,"/"),{replace:!0}))},i=!!(n.get("assetDid")&&s&&n.get("sid")===s);return Z(ee.BlockletEvents.purchaseChange,r=>{r.did===e&&(a(r.session),["declined","confirmed","error"].includes(r.session.status)&&(u(!0),setTimeout(d,2e3)))}),p.useEffect(()=>{h&&h.id!==s&&o(h.id)},[h]),{hasCompleted:l,hasPurchased:i,session:h,setSession:a,doRedirect:d}}function E({meta:e,onCancel:n,handlePaySuccess:c,storeUrl:s}){const{t:o}=j(),{info:l}=P(),[u,h]=p.useState("both"),[a,d]=p.useState(1),i=te(l),r=$(e,l,s),m=R=>{R!==u&&h(R)},b=()=>{u&&(d(2),u==="verify"&&(window.location.href=r))},k=(R,L)=>{L!=="backdropClick"&&n()},w=()=>{c(r)},f=_.getDisplayName({meta:e});if(u==="purchase"&&a===2)return t.jsx(q,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:se.create({baseURL:S(s,"/store")}).get,onSuccess:w,onClose:n,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:i,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:f}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(v,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(v,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:f})]})]})}});const g=M;return t.jsx(g,{title:o("store.purchase.title",{name:f}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:k,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(ke,{action:u,onNext:b,onSelect:m})})})}E.propTypes={...be,storeUrl:x.string.isRequired,handlePaySuccess:x.func};E.defaultProps={handlePaySuccess:e=>{setTimeout(()=>{window.location.href=e},1e3)}};function U({meta:e,buttonText:n,storeUrl:c,isResource:s}){const{t:o}=j(),l=N(),{info:u}=P(),{api:h}=oe(),a=_.isFreeBlocklet(e)===!1,[d,i]=p.useState(!1),{hasPurchased:r}=Ce(e.did),[m,b]=p.useState(!1),[k]=D("instant-blocklet-install",!1),[w,f]=p.useState(!1),g=p.useMemo(()=>d?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[d,o,a]),R=p.useMemo(()=>s?o("blocklet.status.resource"):a?n.purchase:n.launch,[a,n,s]),L=y=>{y.preventDefault(),y.stopPropagation();try{if(i(!0),a){b(!0);return}if(k){f(!0);return}if(!a){const C=$(e,u,c);window.location.href=C}}catch(C){K.error(V(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{i(!1)}},Q=()=>{i(!1),b(!1)},Y=y=>{i(!1),f(!1),l(`/blocklets/${y.appDid}/components`)},J=()=>{i(!1),f(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(O,{permission:"mutate_blocklets",children:y=>t.jsx(re,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(W,{onClick:L,size:"small",sx:{cursor:s?"not-allowed":"pointer"},disabled:!!(g||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:g?t.jsxs(t.Fragment,{children:[t.jsx(z,{size:16,style:{marginRight:3}}),g]}):R},e.did)})})}),(r||m)&&t.jsx(E,{method:"launch",meta:e,mode:"both",onCancel:Q,storeUrl:c}),w&&t.jsx(q,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:h.get,checkTimeout:5*60*1e3,onSuccess:Y,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ne(c,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:J})]})}U.propTypes={isResource:x.bool,meta:x.object.isRequired,buttonText:x.shape({purchase:x.string.isRequired,launch:x.string.isRequired}).isRequired,storeUrl:x.string.isRequired};U.defaultProps={isResource:!1};const De=(e,n,c)=>{const s=de(n);return S(c,`/blocklets/${e.did}/?server-url=${s}`)},F=({meta:e,attribute:n,value:c})=>e._formatted?e._formatted[n]:c;function T({blocklet:e,endpoint:n}){const{t:c}=j(),s=P();let o=S(s.imgPrefix,"blocklet.png");const l=n;if(l.startsWith("http")&&e.logo)o=S(l,le(e.did,e.logo,e.version));else{let r=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");r&&(r=`/${r}`),o=S(r,`/blocklet/logo/${e.did}`)}try{const i=new URL(o);i.searchParams.set("v",e.version||+new Date),o=i.href}catch{}const u=(s==null?void 0:s.info.mode)!==ce.NODE_MODES.SERVERLESS,h=i=>i.currentTarget.contains(i.target)?!0:(i.preventDefault(),!1),a={meta:e,buttonText:{purchase:c("common.purchase"),launch:c("common.launch")},storeUrl:l};let d=null;return u&&(d=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(U,{isResource:!(B.hasStartEngine(e)||B.isGatewayBlocklet(e)||B.isPackBlocklet(e)),...a})})),t.jsx(ue,{href:De(e,s.info,n),style:{color:"initial",textDecoration:"none"},onClick:h,target:"_blank",children:t.jsx(Le,{title:F({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:F({meta:e,attribute:"description",value:e.description}),cover:e.logo?o:"",version:e.version,button:d})})}T.propTypes={blocklet:x.object.isRequired,endpoint:x.string};T.defaultProps={endpoint:""};function I({storeUrl:e,handleSearchSelect:n,extraFilter:c,...s}){var r;const{locale:o}=j(),l=P(),[u,h]=p.useState({}),a=m=>{h(m)},d=e,i=(r=l==null?void 0:l.info)==null?void 0:r.version;return p.useEffect(()=>{h({})},[d]),t.jsx(ae,{FallbackComponent:ie,resetKeys:[d],children:t.jsx("div",{...s,children:t.jsx(Se,{blockletRender:m=>{const b={...m,endpoint:d};return t.jsx(T,{...b})},baseSearch:!0,endpoint:d,locale:o,onFilterChange:a,onSearchSelect:n,filters:u,extraFilter:c,serverVersion:i})})})}I.propTypes={storeUrl:x.string.isRequired,handleSearchSelect:x.func,extraFilter:x.func};I.defaultProps={handleSearchSelect:null,extraFilter:void 0};const Le=H(je)`
|
|
2
|
+
.ms-highlight {
|
|
3
|
+
color: ${e=>e.theme.palette.primary.main};
|
|
4
|
+
}
|
|
5
|
+
`,Be=pe(()=>({buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},menuName:{display:"flex",flexDirection:"column",marginRight:"100px","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}})),A=p.forwardRef(({onChange:e,onDelete:n},c)=>{const{info:s}=P(),{t:o}=j(),[l,u]=p.useState(!1),[h,a]=p.useState(!1),[d,i]=p.useState(-1),r=Be(),[m,b]=D(G),k=Math.max(s.blockletRegistryList.findIndex(f=>f.url===m),0),w=f=>{try{u(!0),i(f);const g=s.blockletRegistryList[f];b(g.url),e(g.url),a(!1)}catch(g){console.error(g),K.error(`${o("store.blockletRegistry.changeFailed")} ${V(g)}`)}finally{u(!1)}};return p.useImperativeHandle(c,()=>({setOpen:a})),t.jsxs(t.Fragment,{children:[t.jsx(W,{classes:{text:r.buttonText},color:"secondary","data-cy":"store-toggle",onClick:()=>{a(!0)},endIcon:t.jsx(Re,{}),children:t.jsx(v,{color:"secondary",children:s.blockletRegistryList[k].name})}),t.jsx(M,{title:o("store.blockletRegistry.switchRegistry"),disableEscapeKeyDown:!0,disablePortal:!1,fullWidth:!0,open:h,onClose:()=>a(!1),children:t.jsxs(he,{className:r.tabPanel,children:[s.blockletRegistryList.map((f,g)=>t.jsxs(fe,{button:!0,disabled:l,selected:k===g,"data-cy":"store-switch",onClick:()=>{if(!l){if(g===k){a(!1);return}w(g)}},children:[d===g&&l&&t.jsx(me,{className:r.iconRoot,children:t.jsx(z,{size:16})}),t.jsx(ge,{children:t.jsx(Pe,{teamDid:s.did,store:f,onDelete:()=>n(f.url)})})]},f.url)),t.jsx(O,{permission:"mutate_node",children:f=>t.jsx(we,{disabled:l||!f,onAdd:e,teamDid:s.did,blockletRegistryList:s.blockletRegistryList})})]})})]})});A.propTypes={onChange:x.func,onDelete:x.func};A.defaultProps={onChange:()=>{},onDelete:()=>{}};const Ee=A;function nt(){const{t:e}=j(),{info:n}=P(),[c]=D(G),{blockletRegistryList:s}=n,o=s.find(r=>c===r.url)||s[0],[l,u]=p.useState(o.url),h=n.routing.adminPath,a=S(window.location.origin,h),d=({detailUrl:r})=>{const m=new URL(r);m.searchParams.set("server-url",a);const b=document.createElement("a");b.setAttribute("target","_blank"),b.setAttribute("href",m.href),b.click()},i=p.useRef(null);return t.jsxs(Ue,{children:[t.jsxs(ve,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[t.jsx(v,{color:"textPrimary",children:e("common.store")}),t.jsx(Ee,{ref:i,onChange:r=>u(r),onDelete:r=>{var m;l===r&&u((m=n.blockletRegistryList[0])==null?void 0:m.url)}})]}),t.jsx(xe,{className:"store-header",display:"flex",justifyContent:"space-between",p:0,m:0,children:t.jsx(v,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:e("store.headerDescription")})}),t.jsx(I,{className:"blocklet-list",handleSearchSelect:d,storeUrl:l})]})}const Ue=H.main`
|
|
6
|
+
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
7
|
+
.store-header {
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
margin-bottom: 32px !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.page-header {
|
|
13
|
+
margin-bottom: 16px !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.blocklet-list {
|
|
17
|
+
aside:hover {
|
|
18
|
+
height: calc(100vh - 235px);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;export{nt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,m as i,P as e,d4 as c,d5 as f,s as u}from"./index-
|
|
1
|
+
import{j as r,m as i,P as e,d4 as c,d5 as f,s as u}from"./index-DzlR4ROA.js";function l({name:t,nameFormatter:o,layout:a,children:n,valueComponent:s,nameWidth:m,...p}){return r.jsxs(d,{layout:a,width:m,...p,children:[r.jsx(i,{color:"textSecondary",className:"info-row__name",children:o(t)}),n&&r.jsx(i,{color:"textPrimary",component:s,className:"info-row__value",children:n})]})}l.propTypes={name:e.any.isRequired,layout:e.oneOf(["horizontal","vertical"]),children:e.any,nameFormatter:e.func,valueComponent:e.string,nameWidth:e.number};l.defaultProps={children:null,nameWidth:90,nameFormatter:t=>{const o=t.split(" ").map(a=>c(f(a))).join(" ");return typeof t=="string"?o:t},valueComponent:"div",layout:"horizontal"};const d=u("div")`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${t=>t.layout==="vertical"?"column":"row"};
|
|
4
4
|
justify-content: flex-start;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as E,t as j,A as I,j as e,X as W,C as k,cq as T,Q as v,y as L,E as h,H as N,u as R,z as S,am as U,ad as b}from"./index-
|
|
1
|
+
import{r as E,t as j,A as I,j as e,X as W,C as k,cq as T,Q as v,y as L,E as h,H as N,u as R,z as S,am as U,ad as b}from"./index-DzlR4ROA.js";import{w as F}from"./wrap-locale-CCm3KObK.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 H(){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{H as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as O,_ as F,P as o,s as Q,j as e,I as Y,r as p,u as q,c as X,a as P,b as R,L as J,d as K,e as Z,f as ee,h as ne,W as T,i as te,T as j,k as ae,l as b,m as g,G as v,n as V,p as se,C as re,o as L}from"./index-
|
|
1
|
+
import{g as O,_ as F,P as o,s as Q,j as e,I as Y,r as p,u as q,c as X,a as P,b as R,L as J,d as K,e as Z,f as ee,h as ne,W as T,i as te,T as j,k as ae,l as b,m as g,G as v,n as V,p as se,C as re,o as L}from"./index-DzlR4ROA.js";import{f as oe}from"./index-BojVbZw0.js";import{I as E}from"./index-8azRnZez.js";import{C as I}from"./click-to-copy-ZbSHXJko.js";import{w as ie}from"./withStyles-unQnV9F2.js";var le=F,ce=le(function(n,i,r){return n+(r?" ":"")+i.toLowerCase()}),me=ce;const de=O(me);function w({icon:n,value:i,name:r,url:x,animated:c,LinkComponent:l,prefix:d}){const s=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"metric__image",children:e.jsx(Y,{name:n,alt:typeof r=="string"?r:"",size:30,prefix:d,color:"#222222"})}),e.jsxs("div",{children:[e.jsx("div",{className:`metric__number ${c?"metric__number--animated":""}`,dangerouslySetInnerHTML:{__html:i}}),e.jsx("div",{className:"metric__name",children:r})]})]});return e.jsx(ue,{children:x?e.jsx(l,{to:x,children:s}):s})}w.propTypes={icon:o.string.isRequired,value:o.oneOfType([o.string,o.number]).isRequired,name:o.node.isRequired,animated:o.bool,url:o.string,LinkComponent:o.any,prefix:o.string};w.defaultProps={animated:!1,url:"",LinkComponent:null,prefix:"/images"};const ue=Q("div")`
|
|
2
2
|
border-left: 1px solid ${n=>n.theme.typography.color.main};
|
|
3
3
|
padding: 10px 0 10px 16px;
|
|
4
4
|
@media (max-width: ${n=>n.theme.breakpoints.values.sm}px) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as l,bg as m,u as p,j as s,U as u}from"./index-
|
|
1
|
+
import{A as l,bg as m,u as p,j as s,U as u}from"./index-DzlR4ROA.js";import{L as g,D as v}from"./download-CAroNPKK.js";import{F as f,S as x}from"./Select-C44-YCyD.js";import"./ButtonGroup-3w5LvaA0.js";import"./getValidReactChildren-Y-QNoefA.js";function k(){const i=l(),{name:a="abtnode"}=m(),{info:n}=p(),r=n.routing.provider,o=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(r){const e=`Service Gateway(${r})`;o.push({id:`service-gateway-${r}`,name:e,types:["error","access"]})}const c=e=>{i(`/logs/${e.target.value}`)},d=s.jsx(f,{sx:{minWidth:240},children:s.jsx(x,{value:a,onChange:c,size:"small",children:o.map(e=>s.jsx(u,{value:e.id,children:e.name},e.id))})}),t=o.find(e=>e.id===a)||o[0];return s.jsx(g,{name:t.name,logId:t.id,types:t.types,prepend:d,postpend:s.jsx(v,{id:n.did,name:"blocklet-server"})},t.id)}export{k as default};
|