@abtnode/blocklet-services 1.16.13-beta-423a40b1 → 1.16.13-beta-d17a7de4
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/routes/blocklet.js +25 -0
- package/api/services/static.js +4 -0
- package/api/util/index.js +1 -1
- package/build/asset-manifest.json +70 -69
- package/build/index.html +1 -1
- package/build/service-worker.js +3 -0
- package/build/service-worker.js.LICENSE.txt +1 -0
- package/build/service-worker.js.map +1 -0
- package/build/static/css/main.7ea79dc8.css +2 -0
- package/build/static/js/343.2a12718c.chunk.js +2 -0
- package/build/static/js/716.1c25a58a.chunk.js +2 -0
- package/build/static/js/main.9c09d1dd.js +3 -0
- package/package.json +31 -24
- package/build/manifest.json +0 -15
- package/build/static/css/main.632501d5.css +0 -2
- package/build/static/js/343.eb7c9faf.chunk.js +0 -2
- package/build/static/js/716.69235521.chunk.js +0 -2
- package/build/static/js/main.af84eb83.js +0 -3
- /package/build/static/js/{main.af84eb83.js.LICENSE.txt → main.9c09d1dd.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[716],{44716:function(e,n,t){t.r(n);var o,c=t(71171),a=t(32723),r=t(34795),s=(t(30969),t(16380)),i=t(30734),l=t(86822),d=t(94308),u=t(38361),f=t(6779),p=t(81721),h=t(99811),g=t(7284),x=t(42167),w=t(41362),m=t(20244),_=t(4485),v=t(38507),I=t(37574);n.default=function(){var e=(0,_.Tt)(),n=e.api,t=e.session,o=(0,x.useLocaleContext)(),c=o.t,s=o.locale,k=(0,w.default)().getPassportId,b=(0,i.useNavigate)(),E=new URL(window.location.href).searchParams,R=E.get("redirect"),j=window.blocklet.trustedFactories||[],C=function(){var e=(0,r.Z)((0,a.Z)().mark((function e(n,o){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,v.ZB)(o(n.sessionToken)),(0,v.zI)(o(n.refreshToken)),e.next=4,t.refresh();case 4:setTimeout((function(){if(R){var e=decodeURIComponent(R);e.startsWith(m.WELLKNOWN_SERVICE_PATH_PREFIX)?b(e,{replace:!0}):window.location=e}else window.location=window.env.pathPrefix||"/"}),50);case 5:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),L={passportId:k()},T=E.get("componentId");return T&&(L.componentId=T),t.loading?(0,I.jsx)(p.default,{children:(0,I.jsx)(d.Z,{})}):(0,I.jsx)(P,{children:(0,I.jsx)("div",{className:"connect-wrapper",children:(0,I.jsx)(g.default,{className:"connect",action:"login",checkFn:n.get,checkTimeout:6e5,webWalletUrl:(0,v.yP)(),onSuccess:C,onError:function(e){h.default.error(e.message)},locale:s,messages:{title:c("login.dialog.title"),scan:c("login.dialog.scan"),confirm:c("login.dialog.confirm"),success:c("login.dialog.success")},extraParams:L,extraContent:(0,I.jsxs)(u.Z,{textAlign:"center",fontSize:14,children:[(0,I.jsx)(l.Link,{to:"".concat(m.WELLKNOWN_SERVICE_PATH_PREFIX,"/lost-passport?redirect=").concat(encodeURIComponent("".concat(window.location.pathname).concat(window.location.search))),style:{marginRight:24,color:"#4598FA"},children:c("lostPassport.title")}),j.length>0&&(0,I.jsx)(f.Z,{title:c("exchangePassport.tooltip",{collections:j.map((function(e){return e.factoryAddress}))}),placement:"top-end",enterTouchDelay:0,children:(0,I.jsx)(l.Link,{to:"".concat(m.WELLKNOWN_SERVICE_PATH_PREFIX,"/exchange-passport?redirect=").concat(encodeURIComponent(R||"/")),style:{color:"#4598FA"},children:c("exchangePassport.title")})})]})})})})};var P=s.default.div(o||(o=(0,c.Z)(["\n box-sizing: border-box;\n width: 100%;\n height: 100vh;\n position: relative;\n display: flex;\n flex-direction: column;\n .connect-wrapper {\n flex: 1;\n }\n .connect {\n background: #fafafa;\n }\n"])))},41362:function(e,n,t){var o=t(43681).default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){var e=(0,a.default)("passportId",""),n=o(e,3),t=n[0],c=n[1],r=n[2];return{getPassportId:function(){return setTimeout((function(){r()}),0),t||""},setPassportId:c}};var c,a=(c=t(17708))&&c.__esModule?c:{default:c}}}]);
|
|
2
|
-
//# sourceMappingURL=716.69235521.chunk.js.map
|