@abtnode/blocklet-services 1.16.18-beta-7aa6be5a → 1.16.18-beta-aa01bd8e
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/api/index.js +1 -0
- package/api/libs/connect/session.js +45 -33
- package/api/middlewares/check-running.js +1 -1
- package/api/routes/blocklet.js +18 -0
- package/api/routes/federated.js +10 -9
- package/api/routes/oauth.js +79 -60
- package/api/routes/user-session.js +23 -16
- package/api/routes/user.js +160 -22
- package/api/services/auth/connect/invite.js +21 -12
- package/api/util/federated.js +13 -12
- package/api/validators/login.js +12 -0
- package/build/asset-manifest.json +100 -80
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/service-worker.js.map +1 -1
- package/build/static/css/{807.65f26433.chunk.css → 4448.de9040c4.chunk.css} +1 -1
- package/build/static/js/1.138935fc.chunk.js +2 -0
- package/build/static/js/{1148.4b2a7347.chunk.js → 1148.e614f706.chunk.js} +2 -2
- package/build/static/js/1343.69031e0b.chunk.js +2 -0
- package/build/static/js/1581.ed4544c6.chunk.js +2 -0
- package/build/static/js/2026.514f995a.chunk.js +2 -0
- package/build/static/js/{2291.7ffdc7df.chunk.js → 2291.37b0ad3a.chunk.js} +2 -2
- package/build/static/js/{3490.4d3a51ea.chunk.js → 2362.ab5308a8.chunk.js} +2 -2
- package/build/static/js/2506.dd9284b6.chunk.js +2 -0
- package/build/static/js/{2838.fcdea2fa.chunk.js → 2838.ec459fda.chunk.js} +3 -3
- package/build/static/js/{3025.a48c96f5.chunk.js → 3025.aa129833.chunk.js} +2 -2
- package/build/static/js/3076.28658ffc.chunk.js +2 -0
- package/build/static/js/3683.6f169a32.chunk.js +2 -0
- package/build/static/js/3920.5c63a2b9.chunk.js +3 -0
- package/build/static/js/3979.f9a5aa48.chunk.js +3 -0
- package/build/static/js/{807.249d2d01.chunk.js.LICENSE.txt → 3979.f9a5aa48.chunk.js.LICENSE.txt} +0 -18
- package/build/static/js/3994.e53e7ce2.chunk.js +2 -0
- package/build/static/js/4009.65d1c083.chunk.js +2 -0
- package/build/static/js/{4023.1658794f.chunk.js → 4023.a2e9db00.chunk.js} +2 -2
- package/build/static/js/4247.c25f1945.chunk.js +2 -0
- package/build/static/js/{4319.8d9e189e.chunk.js → 4319.9f120992.chunk.js} +2 -2
- package/build/static/js/4448.f0c62086.chunk.js +3 -0
- package/build/static/js/4448.f0c62086.chunk.js.LICENSE.txt +17 -0
- package/build/static/js/4461.26253c6a.chunk.js +2 -0
- package/build/static/js/4802.cd83ecef.chunk.js +2 -0
- package/build/static/js/4882.0435e418.chunk.js +2 -0
- package/build/static/js/5547.8447edf9.chunk.js +3 -0
- package/build/static/js/556.4d5cc702.chunk.js +3 -0
- package/build/static/js/{5683.47011724.chunk.js → 5683.051a03c1.chunk.js} +2 -2
- package/build/static/js/6032.48c0a152.chunk.js +2 -0
- package/build/static/js/6139.5867193a.chunk.js +2 -0
- package/build/static/js/655.cdee65b4.chunk.js +2 -0
- package/build/static/js/{6771.a1510398.chunk.js → 6771.920fa5b6.chunk.js} +3 -3
- package/build/static/js/7006.bb90b167.chunk.js +2 -0
- package/build/static/js/779.383b4b4a.chunk.js +2 -0
- package/build/static/js/{7832.741ac84f.chunk.js → 7832.81aaf011.chunk.js} +2 -2
- package/build/static/js/{7858.e4167dfd.chunk.js → 7858.4e5b7c88.chunk.js} +2 -2
- package/build/static/js/8181.86477cc5.chunk.js +2 -0
- package/build/static/js/8604.ece06cf7.chunk.js +3 -0
- package/build/static/js/{8622.f9639db9.chunk.js → 8622.66a81bc0.chunk.js} +2 -2
- package/build/static/js/8944.07bcf75f.chunk.js +2 -0
- package/build/static/js/8983.19b79a23.chunk.js +2 -0
- package/build/static/js/9017.56c20b17.chunk.js +2 -0
- package/build/static/js/9582.2c539fcf.chunk.js +2 -0
- package/build/static/js/9880.13ac9520.chunk.js +2 -0
- package/build/static/js/9996.5545ea26.chunk.js +2 -0
- package/build/static/js/main.63103d24.js +3 -0
- package/build/static/js/{main.50d5cec4.js.LICENSE.txt → main.63103d24.js.LICENSE.txt} +1 -1
- package/package.json +34 -34
- package/build/static/js/1431.29b0bc0a.chunk.js +0 -3
- package/build/static/js/2093.3ce9b59d.chunk.js +0 -3
- package/build/static/js/2686.890b32ed.chunk.js +0 -2
- package/build/static/js/4022.5ec79b56.chunk.js +0 -2
- package/build/static/js/4461.f412553b.chunk.js +0 -2
- package/build/static/js/4802.fe56c787.chunk.js +0 -2
- package/build/static/js/5465.dd0f7a20.chunk.js +0 -2
- package/build/static/js/5547.5a341867.chunk.js +0 -3
- package/build/static/js/5662.03f06ae0.chunk.js +0 -2
- package/build/static/js/5673.0dd67df6.chunk.js +0 -2
- package/build/static/js/5960.35db200d.chunk.js +0 -2
- package/build/static/js/6139.cabc22a2.chunk.js +0 -2
- package/build/static/js/6498.698608f8.chunk.js +0 -2
- package/build/static/js/6868.881bd141.chunk.js +0 -2
- package/build/static/js/7006.8f0645e5.chunk.js +0 -2
- package/build/static/js/7367.15383006.chunk.js +0 -2
- package/build/static/js/779.b64e7db1.chunk.js +0 -2
- package/build/static/js/807.249d2d01.chunk.js +0 -3
- package/build/static/js/8604.a8ef404e.chunk.js +0 -3
- package/build/static/js/8641.506d61d5.chunk.js +0 -2
- package/build/static/js/8944.2d60df14.chunk.js +0 -2
- package/build/static/js/main.50d5cec4.js +0 -3
- /package/build/static/js/{2838.fcdea2fa.chunk.js.LICENSE.txt → 2838.ec459fda.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2093.3ce9b59d.chunk.js.LICENSE.txt → 3920.5c63a2b9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5547.5a341867.chunk.js.LICENSE.txt → 5547.8447edf9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1431.29b0bc0a.chunk.js.LICENSE.txt → 556.4d5cc702.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6771.a1510398.chunk.js.LICENSE.txt → 6771.920fa5b6.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{8604.a8ef404e.chunk.js.LICENSE.txt → 8604.ece06cf7.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[779],{41981:function(e,n,t){t.d(n,{NU:function(){return x},mc:function(){return v}});var r=t(32723),a=t(34795),o=t(96234),c=t(30969),s=t(17708),i=t(50576),u=t(30134),l=t(41395),p=t(59505),d=t(23938),f=t(37574),h=(0,c.createContext)({}),m=h.Provider;h.Consumer;function v(e){var n=e.children,t=(0,s.Z)("spaceGatewayForInstall",null),h=(0,o.Z)(t,2),v=h[0],x=h[1],y=(0,d.y0)(),k=y.blocklet,w=y.actions.refreshBlocklet,b=(0,c.useMemo)((function(){return(0,u.EJ)(k)}),[k]),g=(0,l.h6)().api,Z=function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x(n),e.next=3,E(n.endpoint);case 3:w();case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),E=function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.configBlocklet({input:{did:[k.meta.did],configs:[{key:p.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:n}]}});case 2:w();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){function e(){return(e=(0,a.Z)((0,r.Z)().mark((function e(){var n,t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,u.nU)(v.endpoint,v.name);case 4:n=e.sent,t=(0,i.merge)(v,{name:n}),x(t);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),(0,f.jsx)(m,{value:{spaceGateway:v,deleteSpaceGateway:function(){x(null),w()},updateSpaceGateway:Z,storageEndpoint:b,settingStorageEndpoint:E},children:n})}function x(){return(0,c.useContext)(h)}v.defaultProps={}},74197:function(e,n,t){t.d(n,{cK:function(){return d},h6:function(){return f}});var r=t(30969),a=t(41395),o=t(20244),c=t(48952),s=t(90781),i=t(99042),u=t(37574),l=a.sy.Provider,p=(a.sy.Consumer,"".concat(o.WELLKNOWN_SERVICE_PATH_PREFIX,"/static/images"));function d(e){var n=e.children,t=window.env,r=t.serverDid,a=t.serverVersion,d=t.mode,f=t.nftDomainUrl,h={api:c.Z,restApi:i.Z,prefix:o.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:p,getSessionInHeader:function(){return{}},ws:{getWsClient:s.ZP,create:s.Ue,useSubscription:s.mU},type:"service",info:{did:r,version:a,mode:d,nftDomainUrl:f}};return(0,u.jsx)(l,{value:{node:h},children:n})}function f(){return(0,r.useContext)(a.sy).node}},30779:function(e,n,t){t.r(n),t.d(n,{default:function(){return W}});var r,a,o,c=t(71171),s=t(33028),i=t(32723),u=t(34795),l=t(30969),p=t(30734),d=t(16380),f=t(19611),h=t.n(f),m=t(54470),v=t(38361),x=t(66629),y=t(43001),k=t(75255),w=t(26022),b=t(94308),g=t(99574),Z=t(19006),E=t(47650),P=t(20244),j=t(7017),C=t(59505),_=t(38507),L=t(23938),N=t(4485),S=d.Z.span(r||(r=(0,c.Z)(["\n color: ",";\n &::before {\n content: '*';\n }\n"])),(function(e){return e.theme.palette.error.main})),I=t(74197),R=t(41981),B=t(37574),O=(0,l.lazy)((function(){return t.e(3033).then(t.bind(t,73033))})),A=(0,l.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(4319),t.e(2972)]).then(t.bind(t,55537))})),T=(0,l.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(3490),t.e(5673),t.e(9657),t.e(3131)]).then(t.bind(t,33131))})),U=(0,l.lazy)((function(){return Promise.all([t.e(5683),t.e(7006),t.e(468),t.e(9596)]).then(t.bind(t,42123))})),K=(0,l.lazy)((function(){return Promise.all([t.e(2686),t.e(8641)]).then(t.bind(t,38641))})),D=(0,l.lazy)((function(){return t.e(9900).then(t.bind(t,89900))})),F=(0,l.lazy)((function(){return t.e(5982).then(t.bind(t,35982))}));function W(){var e,n,t,r=(0,k.Z)((function(e){return e.breakpoints.down("md")})),a=(0,w.PE)(),o=a.t,c=a.locale,d=(0,p.useNavigate)(),f=(0,L.y0)(),y=f.meta,W=f.blocklet,G=f.actions,H=f.loading,X=localStorage.getItem("blocklet-server-url"),V=(0,_.tX)("fromLauncher");(0,l.useEffect)((function(){G.refreshMeta(),G.refreshBlocklet({showError:!1}),(0,_.NU)()}),[]),(0,l.useEffect)((function(){G.refreshFuel({showError:!1})}),[null===W||void 0===W||null===(e=W.meta)||void 0===e?void 0:e.did]);var $="".concat(P.WELLKNOWN_SERVICE_PATH_PREFIX,"/setup"),q=[{key:"connect",name:o("setup.steps.connect"),path:h()($,"connect")},{key:"access",name:o("setup.steps.access"),path:h()($,"access")},{key:"domain",name:o("setup.steps.domain"),path:h()($,"domain")},function(e){var n,t=null===e||void 0===e||null===(n=e.capabilities)||void 0===n?void 0:n.didSpace;if(!t)return null;if(t===C.BLOCKLET_APP_SPACE_ENDPOINTS.REQUIRED)return{key:"did-space",name:(0,B.jsxs)(B.Fragment,{children:[o("setup.steps.didSpace")," ",(0,B.jsx)(S,{})]}),path:h()($,"did-space")};if(t===C.BLOCKLET_APP_SPACE_ENDPOINTS.OPTIONAL)return{key:"did-space",name:(0,B.jsx)(B.Fragment,{children:o("setup.steps.didSpace")}),path:h()($,"did-space")};throw new Error("capabilities.didSpace cannot take the value ".concat(t))}(W),{key:"config",name:(0,B.jsxs)(B.Fragment,{children:[o("setup.steps.config")," ",(0,_.o2)(y)&&(0,B.jsx)(S,{})]}),path:h()($,"config")},null!==y&&void 0!==y&&null!==(n=y.requirements)&&void 0!==n&&null!==(t=n.fuels)&&void 0!==t&&t.length?{key:"fuel",name:(0,B.jsxs)(B.Fragment,{children:[o("setup.steps.fuel")," ",(0,B.jsx)(S,{})]}),path:h()($,"fuel")}:null].filter(Boolean),J=q.findIndex((function(e){return"".concat(_.Bq.replace(/\/$/,"")).concat($,"/").concat(e.key)===window.location.pathname})),Y=h()(_.Bq,P.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),Q=function(){var e=(0,u.Z)((0,i.Z)().mark((function e(n){var t,r,a;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new URL(window.location.href),r=t.search,n?(a=q.findIndex((function(e){return e.key===n})),d(a>-1?"".concat(h()($,q[a].key)).concat(r):"".concat(h()($,"complete")).concat(r))):q[J+1]?d("".concat(h()($,q[J+1].key)).concat(r)):d("".concat(h()($,"complete")).concat(r)),e.next=4,G.refreshBlocklet();case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ee=function(){d(-1)};function ne(e,n){return W?(0,B.jsx)(e,(0,s.Z)((0,s.Z)({blocklet:W},n),{},{onNext:Q,onPrevious:ee})):(0,B.jsx)(v.Z,{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",children:(0,B.jsx)(b.Z,{})})}var te=function(){window.open(X)},re=r?(0,B.jsx)(Z.Z,{onClick:te,width:"32",height:"32",style:{cursor:"pointer"}}):(0,B.jsx)(E.Z,{onClick:te,width:"128",height:"48",style:{marginTop:-1,cursor:"pointer"}}),ae=[{key:"install",name:o("launchBlocklet.steps.installApp"),path:h()($,"install")},{key:"setup",name:o("setup.steps.launchApp"),children:q}],oe=[{key:"agreement",name:o("launchBlocklet.introduction"),path:h()($,"agreement")}].concat(ae);return V&&(oe=[{key:"purchase-space",name:o("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:o("launchBlocklet.steps.prepareSpace")}].concat(ae)),(0,B.jsx)(z,{steps:oe,children:(0,B.jsx)(I.cK,{children:(0,B.jsxs)(R.mc,{children:[(0,B.jsx)(m.Global,{styles:M}),(0,B.jsx)(x.Z,{locale:c,loading:H,blockletMeta:(0,s.Z)((0,s.Z)({},y),{},{title:(0,j.getDisplayName)((0,s.Z)((0,s.Z)({},W),{},{meta:y}))}),navLogo:re,pcWidth:"80%",style:{height:"100%"},logoUrl:Y,useOfSkeleton:!1,headerEndAddons:(0,B.jsx)(g.Z,{SessionContext:N.B3,sessionManagerProps:{disableLogout:!0}}),launchingText:o("setup.title"),children:(0,B.jsxs)(p.Routes,{children:[(0,B.jsx)(p.Route,{path:"connect",element:(0,B.jsx)(O,{onNext:Q})}),(0,B.jsx)(p.Route,{path:"domain",element:ne(U)}),(0,B.jsx)(p.Route,{path:"did-space",element:ne(T)}),(0,B.jsx)(p.Route,{path:"config",element:ne(A)}),(0,B.jsx)(p.Route,{path:"access",element:ne(K)}),(0,B.jsx)(p.Route,{path:"fuel",element:ne(D)}),(0,B.jsx)(p.Route,{path:"complete",element:ne(F)}),(0,B.jsx)(p.Route,{path:"*",element:(0,B.jsx)(p.Navigate,{to:"connect".concat(window.location.search),replace:!0})})]})})]})})})}var M=(0,m.css)(a||(a=(0,c.Z)(["\n html,\n body,\n #root,\n #root > .wrapper {\n height: 100%;\n }\n"]))),z=(0,d.Z)(y.W)(o||(o=(0,c.Z)([""])))},41395:function(e,n,t){t.d(n,{h6:function(){return c},sy:function(){return o}});var r=t(33028),a=t(30969),o=(0,a.createContext)({});o.Provider,o.Consumer;function c(){var e=(0,a.useContext)(o).node;return(0,r.Z)((0,r.Z)({},e),{},{inService:"service"===e.type,inDaemon:"daemon"===e.type})}},99574:function(e,n,t){t.d(n,{Z:function(){return y}});var r,a=t(71171),o=t(33028),c=t(30969),s=t(16380),i=t(24974),u=t.n(i),l=t(94551),p=t(30734),d=t(87843),f=t(26681),h=t(26022),m=t(46513),v=t(91077),x=t(37574);function y(e){var n=e.SessionContext,t=e.extraItems,r=e.showLocale,a=e.showHelper,s=e.showSessionManager,i=e.sessionManagerProps,u=(0,c.useContext)(n).session,y=(0,c.useContext)(h.RD).locale,w=(0,p.useLocation)(),b={"/store":{endpoint:"https://store.blocklet.io"},"/dashboard":{path:"/conceptual/overview"},"/settings/router":{path:"/conceptual/server-architecture"}};return(0,x.jsxs)(k,{children:[t.map((function(e,n){return(0,c.cloneElement)(e,{key:n})})),r&&(0,x.jsx)(f.Z,{"data-cy":"locale-addon",icon:m.Z,size:23,showText:!1,className:"locale-addon"}),a&&(0,x.jsx)(l.Z,{onClick:function(){var e=w.pathname,n={};e.indexOf("/store")>-1?n=b["/store"]:b[e]&&(n=b[e]),window.open("".concat(n.endpoint||"https://developer.blocklet.io/docs","/").concat(y).concat(n.path||""),"_blank")},children:(0,x.jsx)(v.Z,{})}),s&&(0,x.jsx)(d.Z,(0,o.Z)((0,o.Z)({locale:y,session:u,size:24,showRole:!0},i),{},{showManageBlocklet:!1}))]})}y.propTypes={SessionContext:u().object.isRequired,webWalletUrl:u().string,extraItems:u().array,showLocale:u().bool,showSessionManager:u().bool,showHelper:u().bool,sessionManagerProps:u().object},y.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};var k=s.Z.div(r||(r=(0,a.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n .MuiIconButton-root svg {\n width: 26px;\n height: 26px;\n }\n\n .user-addon {\n .user-avatar {\n width: 28px;\n border-radius: 14px;\n height: auto;\n }\n }\n\n "," {\n > button,\n > a {\n padding-left: 8px;\n padding-right: 8px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")}))},54559:function(e,n,t){t.d(n,{hi:function(){return o},od:function(){return a.a}});var r=t(95803),a=t.n(r);a().defaults.timeout=1e4;var o=a().create()},30134:function(e,n,t){t.d(n,{EJ:function(){return Z},Jf:function(){return g},LQ:function(){return f},Nb:function(){return h},Xv:function(){return p},ag:function(){return x},mo:function(){return v},nD:function(){return d},nU:function(){return w},w2:function(){return y}});var r=t(32723),a=t(34795),o=t(92522),c=t.n(o),s=t(59505),i=t(50576),u=t(43430),l=t(54559);function p(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/"),r=t.at(-4),a=t.at(-2);return(0,u.xn)(n,"space",r,"apps",a,"explorer?key=/apps/".concat(a,"/.did-objects/").concat(a,"/"))}function d(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return(0,u.xn)(n,"space",t)}function f(e){return e.replace(/\/$/,"").split("/").at(-4)}function h(e){return m.apply(this,arguments)}function m(){return(m=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,l.hi.head(n,{timeout:5e3});case 5:return t=e.sent,a=t.headers,e.abrupt("return","true"===a["x-listable"]&&"true"===a["x-readable"]&&"true"===a["x-writeable"]);case 10:return e.prev=10,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function v(e){var n;return(null===e||void 0===e||null===(n=e.find((function(e){return e.key===s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT})))||void 0===n?void 0:n.value)||""}function x(e){var n=new URL(e);return(0,u.xn)(n.origin,n.pathname)}function y(e){return k.apply(this,arguments)}function k(){return(k=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a,o,s,p;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return t=x(n),a=(0,u.xn)(t,"space/api/did/one-click-authorization/token"),e.next=7,l.hi.get(a,{timeout:5e3});case 7:return o=e.sent,s=o.status,p=o.data,e.abrupt("return",200===s&&(0,i.isObject)(p));case 13:return e.prev=13,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 17:case"end":return e.stop()}}),e,null,[[0,13]])})))).apply(this,arguments)}function w(e){return b.apply(this,arguments)}function b(){return(b=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c()(n)){e.next=3;break}return e.abrupt("return","");case 3:return e.next=5,l.hi.head(n,{timeout:3e3});case 5:return t=e.sent,a=t.headers,o=a["x-space-name"],e.abrupt("return",o?decodeURIComponent(o):"");case 11:return e.prev=11,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return","");case 15:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}function g(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return(0,u.xn)(n,"/api/space/nft/display?spaceDid=".concat(t))}var Z=function(e){var n,t;return(null===e||void 0===e||null===(n=e.configs)||void 0===n||null===(t=n.find((function(e){return e.key===s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT})))||void 0===t?void 0:t.value)||null}}}]);
|
|
2
|
-
//# sourceMappingURL=779.b64e7db1.chunk.js.map
|