@abtnode/webapp 1.16.21-beta-2e75c75c → 1.16.21-beta-da3f852a

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 (26) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/build/asset-manifest.json +11 -11
  4. package/build/index.html +1 -1
  5. package/build/service-worker.js +1 -1
  6. package/build/static/js/{1366.f2fe8ce7.chunk.js → 1366.8a167e7a.chunk.js} +2 -2
  7. package/build/static/js/1667.ae711e87.chunk.js +1 -0
  8. package/build/static/js/{2334.2b408137.chunk.js → 2334.7bcaaba9.chunk.js} +1 -1
  9. package/build/static/js/3389.d92ce0a7.chunk.js +1 -0
  10. package/build/static/js/5914.fbf45688.chunk.js +2 -0
  11. package/build/static/js/6780.dfa6fda3.chunk.js +1 -0
  12. package/build/static/js/{6950.29776777.chunk.js → 6950.fc163899.chunk.js} +1 -1
  13. package/build/static/js/7913.b1fac176.chunk.js +1 -0
  14. package/build/static/js/9249.f273bde9.chunk.js +1 -0
  15. package/build/static/js/main.8a9d4464.js +2 -0
  16. package/package.json +1 -1
  17. package/build/static/js/1667.4403e42c.chunk.js +0 -1
  18. package/build/static/js/3389.1c4a79ac.chunk.js +0 -1
  19. package/build/static/js/5914.593c14f7.chunk.js +0 -2
  20. package/build/static/js/6780.aa9fb3ec.chunk.js +0 -1
  21. package/build/static/js/7913.6ff42e1a.chunk.js +0 -1
  22. package/build/static/js/9249.e1b97ff3.chunk.js +0 -1
  23. package/build/static/js/main.b030daf3.js +0 -2
  24. /package/build/static/js/{1366.f2fe8ce7.chunk.js.LICENSE.txt → 1366.8a167e7a.chunk.js.LICENSE.txt} +0 -0
  25. /package/build/static/js/{5914.593c14f7.chunk.js.LICENSE.txt → 5914.fbf45688.chunk.js.LICENSE.txt} +0 -0
  26. /package/build/static/js/{main.b030daf3.js.LICENSE.txt → main.8a9d4464.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6780],{79777:(e,t,n)=>{n.d(t,{C:()=>i,P:()=>o,R:()=>a});var r=Object.defineProperty,s=(e,t)=>r(e,"name",{value:t,configurable:!0});class i{constructor(e){var t=this;this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null,s=null;if("string"===typeof e){s=new RegExp(e,arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"i":"g").test(t._sourceText.substr(t._pos,e.length)),r=e}else e instanceof RegExp&&(s=t._sourceText.slice(t._pos).match(e),r=null===s||void 0===s?void 0:s[0]);return!(null==s||!("string"===typeof e||s instanceof Array&&t._sourceText.startsWith(s[0],t._pos)))&&(n&&(t._start=t._pos,r&&r.length&&(t._pos+=r.length)),s)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"===typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}s(i,"CharacterStream");class a{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new o(e,t)}setEnd(e,t){this.end=new o(e,t)}}s(a,"Range");class o{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}s(o,"Position")},66780:(e,t,n)=>{n.r(t);var r=n(48262),s=n(1367),i=n(8590),a=n(63669),o=n(15617),l=n(77916),c=n(86066),u=n(52546),h=n(84646),p=n(23453),d=n(92793),f=n(65915),v=n(83703),g=n(14141),m=n(5826),_=n(77382),y=n(27499),S=n(72996),k=n(60844),x=n(56327),b=n(92460),C=n(72243),T=n(43113),w=(n(40125),n(79777)),R=n(13693),A=(n(5057),n(53627),Object.defineProperty),P=(e,t)=>A(e,"name",{value:t,configurable:!0});const L=[s.t,i.q,a.P,o.L,l.y,c.o,u.I,h.J,p.k,d.g,f.L,v.P];function E(e,t,n,r,s){const i=g.i.filter((e=>e!==m.J&&e!==_.i&&(!r||e!==y.a)));n&&Array.prototype.push.apply(i,n),s&&Array.prototype.push.apply(i,L);return(0,S.Gu)(e,t,i).filter((e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===k.h.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}P(E,"validateWithCustomRules");const O={["Error"]:1,["Warning"]:2,["Information"]:3,["Hint"]:4},Q=P(((e,t)=>{if(!e)throw new Error(t)}),"invariant");function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;var i,a;let o=null;s&&(e+="string"===typeof s?"\n\n"+s:"\n\n"+s.reduce(((e,t)=>e+=(0,x.S)(t)+"\n\n"),""));try{o=(0,b.Qc)(e)}catch(l){if(l instanceof C.__){const t=D(null!==(a=null===(i=l.locations)||void 0===i?void 0:i[0])&&void 0!==a?a:{line:0,column:0},e);return[{severity:O.Error,message:l.message,source:"GraphQL: Syntax",range:t}]}throw l}return G(o,t,n,r)}function G(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return[];const n=I(E(t,e,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0),(e=>j(e,O.Error,"Validation"))),r=I((0,S.Gu)(t,e,[T.r]),(e=>j(e,O.Warning,"Deprecation")));return n.concat(r)}function I(e,t){return Array.prototype.concat.apply([],e.map(t))}function j(e,t,n){if(!e.nodes)return[];const r=[];return e.nodes.forEach((s=>{const i="Variable"!==s.kind&&"name"in s&&void 0!==s.name?s.name:"variable"in s&&void 0!==s.variable?s.variable:s;if(i){Q(e.locations,"GraphQL validation error requires locations.");const s=e.locations[0],a=N(i),o=s.column+(a.end-a.start);r.push({source:"GraphQL: ".concat(n),message:e.message,severity:t,range:new w.R(new w.P(s.line-1,s.column-1),new w.P(s.line-1,o))})}})),r}function D(e,t){const n=(0,R.o)(),r=n.startState(),s=t.split("\n");Q(s.length>=e.line,"Query text must have more lines than where the error happened");let i=null;for(let c=0;c<e.line;c++)for(i=new w.C(s[c]);!i.eol();){if("invalidchar"===n.token(i,r))break}Q(i,"Expected Parser stream to be available.");const a=e.line-1,o=i.getStartOfToken(),l=i.getCurrentPosition();return new w.R(new w.P(a,o),new w.P(a,l))}function N(e){const t=e.loc;return Q(t,"Expected ASTNode to have a location."),t}P(W,"getDiagnostics"),P(G,"validateQuery"),P(I,"mapCat"),P(j,"annotations"),P(D,"getRange"),P(N,"getLocation");const q=["error","warning","information","hint"],U={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};r.C.registerHelper("lint","graphql",((e,t)=>W(e,t.schema,t.validationRules,void 0,t.externalFragments).map((e=>({message:e.message,severity:e.severity?q[e.severity-1]:q[0],type:e.source?U[e.source]:void 0,from:r.C.Pos(e.range.start.line,e.range.start.character),to:r.C.Pos(e.range.end.line,e.range.end.character)})))))},13693:(e,t,n)=>{n.d(t,{o:()=>o});var r=n(40125),s=n(60844),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0});function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:e=>e.eatWhile(r.i),lexRules:r.L,parseRules:r.P,editorConfig:{}};return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return h(e.parseRules,t,s.h.DOCUMENT),t},token:(t,n)=>l(t,n,e)}}function l(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:s,parseRules:i,eatWhitespace:a,editorConfig:o}=n;if(t.rule&&0===t.rule.length?p(t):t.needsAdvance&&(t.needsAdvance=!1,d(t,!0)),e.sol()){const n=(null===o||void 0===o?void 0:o.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const l=g(s,e);if(!l){return e.match(/\S+/)||e.match(/\s/),h(u,t,"Invalid"),"invalidchar"}if("Comment"===l.kind)return h(u,t,"Comment"),"comment";const f=c({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]<t.indentLevel&&(t.indentLevel=e[e.length-1])}for(;t.rule;){let n="function"===typeof t.rule?0===t.step?t.rule(l,e):null:t.rule[t.step];if(t.needsSeparator&&(n=null===n||void 0===n?void 0:n.separator),n){if(n.ofRule&&(n=n.ofRule),"string"===typeof n){h(i,t,n);continue}if(null===(r=n.match)||void 0===r?void 0:r.call(n,l))return n.update&&n.update(t,l),"Punctuation"===l.kind?d(t,!0):t.needsAdvance=!0,n.style}v(t)}return c(t,f),h(u,t,"Invalid"),"invalidchar"}function c(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}a(o,"onlineParser"),a(l,"getToken"),a(c,"assign");const u={Invalid:[],Comment:[]};function h(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function p(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function d(e,t){var n;if(f(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const t=n.separator;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&t.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)p(e),e.rule&&(f(e)?(null===(n=e.rule)||void 0===n?void 0:n[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function f(e){const t=Array.isArray(e.rule)&&"string"!==typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function v(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)p(e);e.rule&&d(e,!1)}function g(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=t.match(e[n[r]]);if(s&&s instanceof Array)return{kind:n[r],value:s[0]}}}a(h,"pushRule"),a(p,"popRule"),a(d,"advanceRule"),a(f,"isList"),a(v,"unsuccessful"),a(g,"lex")}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[7913],{77913:(e,n,s)=>{s.r(n),s.d(n,{default:()=>Z});var o,t=s(71171),a=s(5057),c=s(33518),r=s(85493),i=s(44846),l=s(35966),d=s(86229),p=s(43316),u=s(68420),h=s(35432),x=s(5766),w=s(96266);const f=(0,x.Z)((function(e){let{SessionContext:n,webWalletUrl:s,onSuccess:o}=e;const{api:t,session:c}=(0,a.useContext)(n),{t:x,locale:f}=(0,u.PE)(),m=(0,r.useNavigate)(),{searchParams:b}=new URL(window.location.href),P=b.get("redirect"),Z={},v=b.get("componentId");return v&&(Z.componentId=v),c.loading?(0,w.jsx)(l.Z,{children:(0,w.jsx)(i.Z,{})}):(0,w.jsx)(g,{children:(0,w.jsx)("div",{className:"connect-wrapper",children:(0,w.jsx)(p.Z,{className:"connect",action:"exchange-passport",checkFn:t.get,checkTimeout:6e5,webWalletUrl:s,onSuccess:async(e,n)=>{o(e,n),await c.refresh(),d.Z.success(x("exchangePassport.success")),setTimeout((()=>{if(P){const e=decodeURIComponent(P);e.startsWith(h.WELLKNOWN_SERVICE_PATH_PREFIX)?m(e,{replace:!0}):window.location=e}else window.location=window.env.pathPrefix||window.env.apiPrefix||"/"}),3e3)},onError:e=>{d.Z.error(e.message)},locale:f,messages:{title:x("exchangePassport.dialog.title"),scan:x("exchangePassport.dialog.scan"),confirm:x("exchangePassport.dialog.confirm"),success:x("exchangePassport.dialog.success")},extraParams:Z,extraContent:null})})})})),g=c.Z.div(o||(o=(0,t.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"])));var m=s(75793),b=s(25339),P=s(74094);function Z(){const{info:e}=(0,m.h6)(),n=(0,P.yP)(e);return(0,w.jsx)(f,{SessionContext:b.B3,webWalletUrl:n,onSuccess:(e,n)=>{e.sessionToken&&(0,P.ZB)(n(e.sessionToken))}})}},5766:(e,n,s)=>{s.d(n,{Z:()=>d});var o=s(68420),t=s(77668),a=s.n(t),c=s(2586),r=s(56944);const i={zh:a()(r.Z),en:a()(c.Z)};var l=s(96266);function d(e){return function(n){return(0,l.jsx)(o.Iw,{translations:i,children:(0,l.jsx)(e,{...n})})}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[9249],{49249:(e,n,s)=>{s.r(n),s.d(n,{default:()=>k});var t,i=s(71171),a=s(5057),o=s(33518),c=s(85493),l=s(11750),r=s(76005),d=s(39948),u=s(35966),p=s(28726),h=s(43316),x=s(42143),v=s(68420),m=s(35432),g=s(5766),f=s(70284),w=s(96266);const Z=(0,o.Z)(u.Z)(t||(t=(0,i.Z)(["\n .header {\n text-align: center;\n margin-bottom: 8px;\n }\n\n .subheader {\n text-align: center;\n margin-bottom: 24px;\n }\n\n .login {\n padding: 24px;\n height: auto;\n min-height: 480px;\n display: flex;\n flex-direction: column;\n }\n\n .connect {\n background: #fafafa;\n }\n"]))),P=(0,g.Z)((function(e){var n,s,t,i;let{SessionContext:o,webWalletUrl:u}=e;const{api:g,session:P}=(0,a.useContext)(o),{t:b,locale:j}=(0,a.useContext)(v.RD),[C,k]=(0,a.useState)(!1),N=(0,c.useNavigate)(),{setPassportId:W}=(0,f.Z)(),_={},{searchParams:E}=new URL(window.location.href),I=E.get("id");return I&&(_.id=I),(0,w.jsx)(Z,{children:C?(0,w.jsx)("div",{className:"login",children:(0,w.jsx)("div",{className:"connect",children:(0,w.jsxs)(d.Z,{textAlign:"center",children:[(0,w.jsx)(d.Z,{mb:3,color:"success.main",children:(0,w.jsx)(r.Z,{style:{fontSize:60}})}),(0,w.jsx)(l.Z,{component:"p",variant:"body1",className:"subheader",children:b("issuePassport.dialog.success")}),(0,w.jsx)(d.Z,{mt:3,children:(0,w.jsx)(p.Z,{variant:"contained",color:"primary",onClick:()=>{var e;try{P.logout()}catch(n){}((null===(e=window.env)||void 0===e?void 0:e.apiPrefix)||"").startsWith(m.WELLKNOWN_SERVICE_PATH_PREFIX)?N("".concat(m.WELLKNOWN_SERVICE_PATH_PREFIX,"/login"),{replace:!0}):N("/",{replace:!0})},children:b("issuePassport.dialog.loginWithPassport")})})]})})}):(0,w.jsx)(x.Z,{did:(null===(n=window)||void 0===n||null===(s=n.blocklet)||void 0===s?void 0:s.appPid)||(null===(t=window)||void 0===t||null===(i=t.env)||void 0===i?void 0:i.appPid),children:(0,w.jsx)(d.Z,{sx:{width:"560px",maxWidth:"100%",height:"100%"},children:(0,w.jsx)(h.Z,{className:"connect",action:"issue-passport",forceConnected:!1,autoConnect:!1,checkFn:g.get,checkTimeout:6e5,webWalletUrl:u,onSuccess:e=>{null!==e&&void 0!==e&&e.passportId&&W(e.passportId),k(!0)},locale:j,messages:{title:b("issuePassport.title"),scan:b("issuePassport.description",{name:window.env.appName}),confirm:b("issuePassport.dialog.confirm"),success:b("issuePassport.dialog.success")},extraParams:_})})})})}));var b=s(75793),j=s(25339),C=s(74094);function k(){const{info:e}=(0,b.h6)(),n=(0,C.yP)(e);return(0,w.jsx)(P,{SessionContext:j.B3,webWalletUrl:n})}},5766:(e,n,s)=>{s.d(n,{Z:()=>d});var t=s(68420),i=s(77668),a=s.n(i),o=s(2586),c=s(56944);const l={zh:a()(c.Z),en:a()(o.Z)};var r=s(96266);function d(e){return function(n){return(0,r.jsx)(t.Iw,{translations:l,children:(0,r.jsx)(e,{...n})})}}},76005:(e,n,s)=>{var t=s(71600);n.Z=void 0;var i=t(s(56930)),a=s(96266),o=(0,i.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");n.Z=o}}]);