@zkpassport/ui 0.14.2
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/LICENSE +201 -0
- package/README.md +123 -0
- package/dist/cjs/index.cjs +564 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +6 -0
- package/dist/cjs/react.cjs +565 -0
- package/dist/cjs/react.cjs.map +1 -0
- package/dist/cjs/react.d.cts +11 -0
- package/dist/cjs/types-ZVs5vysN.d.cts +25 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +564 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/react.d.ts +11 -0
- package/dist/esm/react.js +565 -0
- package/dist/esm/react.js.map +1 -0
- package/dist/esm/types-ZVs5vysN.d.ts +25 -0
- package/dist/styles.css +548 -0
- package/package.json +91 -0
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
'use strict';var Ce=require('qrcode'),sdk=require('@zkpassport/sdk');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Ce__default=/*#__PURE__*/_interopDefault(Ce);var W,v,M1,P,x1,Z1,L1,a1,j,T,S1,p1,s1,i1,$={},K=[],ue=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Y=Array.isArray;function Z(e,t){for(var r in t)e[r]=t[r];return e}function c1(e){e&&e.parentNode&&e.parentNode.removeChild(e);}function J(e,t,r){var a,s,n,l={};for(n in t)n=="key"?a=t[n]:n=="ref"?s=t[n]:l[n]=t[n];if(arguments.length>2&&(l.children=arguments.length>3?W.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(n in e.defaultProps)l[n]===void 0&&(l[n]=e.defaultProps[n]);return G(e,l,a,s,null)}function G(e,t,r,a,s){var n={type:e,props:t,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++M1,__i:-1,__u:0};return s==null&&v.vnode!=null&&v.vnode(n),n}function L(e){return e.children}function F(e,t){this.props=e,this.context=t;}function O(e,t){if(t==null)return e.__?O(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?O(e):null}function fe(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,a=[],s=[],n=Z({},t);n.__v=t.__v+1,v.vnode&&v.vnode(n),_1(e.__P,n,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,a,r??O(t),!!(32&t.__u),s),n.__v=t.__v,n.__.__k[n.__i]=n,H1(a,n,s),t.__e=t.__=null,n.__e!=r&&N1(n);}}function N1(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),N1(e)}function C1(e){(!e.__d&&(e.__d=true)&&P.push(e)&&!Q.__r++||x1!=v.debounceRendering)&&((x1=v.debounceRendering)||Z1)(Q);}function Q(){try{for(var e,t=1;P.length;)P.length>t&&P.sort(L1),e=P.shift(),t=P.length,fe(e);}finally{P.length=Q.__r=0;}}function R1(e,t,r,a,s,n,l,p,u,i,f){var o,_,d,g,C,z,m,h=a&&a.__k||K,M=t.length;for(u=he(r,t,h,u,M),o=0;o<M;o++)(d=r.__k[o])!=null&&(_=d.__i!=-1&&h[d.__i]||$,d.__i=o,z=_1(e,d,_,s,n,l,p,u,i,f),g=d.__e,d.ref&&_.ref!=d.ref&&(_.ref&&d1(_.ref,null,d),f.push(d.ref,d.__c||g,d)),C==null&&g!=null&&(C=g),(m=!!(4&d.__u))||_.__k===d.__k?(u=P1(d,u,e,m),m&&_.__e&&(_.__e=null)):typeof d.type=="function"&&z!==void 0?u=z:g&&(u=g.nextSibling),d.__u&=-7);return r.__e=C,u}function he(e,t,r,a,s){var n,l,p,u,i,f=r.length,o=f,_=0;for(e.__k=new Array(s),n=0;n<s;n++)(l=t[n])!=null&&typeof l!="boolean"&&typeof l!="function"?(typeof l=="string"||typeof l=="number"||typeof l=="bigint"||l.constructor==String?l=e.__k[n]=G(null,l,null,null,null):Y(l)?l=e.__k[n]=G(L,{children:l},null,null,null):l.constructor===void 0&&l.__b>0?l=e.__k[n]=G(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):e.__k[n]=l,u=n+_,l.__=e,l.__b=e.__b+1,p=null,(i=l.__i=ve(l,r,u,o))!=-1&&(o--,(p=r[i])&&(p.__u|=2)),p==null||p.__v==null?(i==-1&&(s>f?_--:s<f&&_++),typeof l.type!="function"&&(l.__u|=4)):i!=u&&(i==u-1?_--:i==u+1?_++:(i>u?_--:_++,l.__u|=4))):e.__k[n]=null;if(o)for(n=0;n<f;n++)(p=r[n])!=null&&(2&p.__u)==0&&(p.__e==a&&(a=O(p)),O1(p,p));return a}function P1(e,t,r,a){var s,n;if(typeof e.type=="function"){for(s=e.__k,n=0;s&&n<s.length;n++)s[n]&&(s[n].__=e,t=P1(s[n],t,r,a));return t}e.__e!=t&&(a&&(t&&e.type&&!t.parentNode&&(t=O(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ve(e,t,r,a){var s,n,l,p=e.key,u=e.type,i=t[r],f=i!=null&&(2&i.__u)==0;if(i===null&&p==null||f&&p==i.key&&u==i.type)return r;if(a>(f?1:0)){for(s=r-1,n=r+1;s>=0||n<t.length;)if((i=t[l=s>=0?s--:n++])!=null&&(2&i.__u)==0&&p==i.key&&u==i.type)return l}return -1}function b1(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||ue.test(t)?r:r+"px";}function B(e,t,r,a,s){var n,l;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else {if(typeof a=="string"&&(e.style.cssText=a=""),a)for(t in a)r&&t in r||b1(e.style,t,"");if(r)for(t in r)a&&r[t]==a[t]||b1(e.style,t,r[t]);}else if(t[0]=="o"&&t[1]=="n")n=t!=(t=t.replace(S1,"$1")),l=t.toLowerCase(),t=l in e||t=="onFocusOut"||t=="onFocusIn"?l.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+n]=r,r?a?r[T]=a[T]:(r[T]=p1,e.addEventListener(t,n?i1:s1,n)):e.removeEventListener(t,n?i1:s1,n);else {if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===false&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r));}}function w1(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[j]==null)t[j]=p1++;else if(t[j]<r[T])return;return r(v.event?v.event(t):t)}}}function _1(e,t,r,a,s,n,l,p,u,i){var f,o,_,d,g,C,z,m,h,M,N,A,n1,E,U,b=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(u=!!(32&r.__u),n=[p=t.__e=r.__e]),(f=v.__b)&&f(t);e:if(typeof b=="function")try{if(m=t.props,h=b.prototype&&b.prototype.render,M=(f=b.contextType)&&a[f.__c],N=f?M?M.props.value:f.__:a,r.__c?z=(o=t.__c=r.__c).__=o.__E:(h?t.__c=o=new b(m,N):(t.__c=o=new F(m,N),o.constructor=b,o.render=ge),M&&M.sub(o),o.state||(o.state={}),o.__n=a,_=o.__d=!0,o.__h=[],o._sb=[]),h&&o.__s==null&&(o.__s=o.state),h&&b.getDerivedStateFromProps!=null&&(o.__s==o.state&&(o.__s=Z({},o.__s)),Z(o.__s,b.getDerivedStateFromProps(m,o.__s))),d=o.props,g=o.state,o.__v=t,_)h&&b.getDerivedStateFromProps==null&&o.componentWillMount!=null&&o.componentWillMount(),h&&o.componentDidMount!=null&&o.__h.push(o.componentDidMount);else {if(h&&b.getDerivedStateFromProps==null&&m!==d&&o.componentWillReceiveProps!=null&&o.componentWillReceiveProps(m,N),t.__v==r.__v||!o.__e&&o.shouldComponentUpdate!=null&&o.shouldComponentUpdate(m,o.__s,N)===!1){t.__v!=r.__v&&(o.props=m,o.state=o.__s,o.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(R){R&&(R.__=t);}),K.push.apply(o.__h,o._sb),o._sb=[],o.__h.length&&l.push(o);break e}o.componentWillUpdate!=null&&o.componentWillUpdate(m,o.__s,N),h&&o.componentDidUpdate!=null&&o.__h.push(function(){o.componentDidUpdate(d,g,C);});}if(o.context=N,o.props=m,o.__P=e,o.__e=!1,A=v.__r,n1=0,h)o.state=o.__s,o.__d=!1,A&&A(t),f=o.render(o.props,o.state,o.context),K.push.apply(o.__h,o._sb),o._sb=[];else do o.__d=!1,A&&A(t),f=o.render(o.props,o.state,o.context),o.state=o.__s;while(o.__d&&++n1<25);o.state=o.__s,o.getChildContext!=null&&(a=Z(Z({},a),o.getChildContext())),h&&!_&&o.getSnapshotBeforeUpdate!=null&&(C=o.getSnapshotBeforeUpdate(d,g)),E=f!=null&&f.type===L&&f.key==null?A1(f.props.children):f,p=R1(e,Y(E)?E:[E],t,r,a,s,n,l,p,u,i),o.base=t.__e,t.__u&=-161,o.__h.length&&l.push(o),z&&(o.__E=o.__=null);}catch(R){if(t.__v=null,u||n!=null)if(R.then){for(t.__u|=u?160:128;p&&p.nodeType==8&&p.nextSibling;)p=p.nextSibling;n[n.indexOf(p)]=null,t.__e=p;}else {for(U=n.length;U--;)c1(n[U]);l1(t);}else t.__e=r.__e,t.__k=r.__k,R.then||l1(t);v.__e(R,t,r);}else n==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):p=t.__e=me(r.__e,t,r,a,s,n,l,u,i);return (f=v.diffed)&&f(t),128&t.__u?void 0:p}function l1(e){e&&(e.__c&&(e.__c.__e=true),e.__k&&e.__k.some(l1));}function H1(e,t,r){for(var a=0;a<r.length;a++)d1(r[a],r[++a],r[++a]);v.__c&&v.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(n){n.call(s);});}catch(n){v.__e(n,s.__v);}});}function A1(e){return typeof e!="object"||e==null||e.__b>0?e:Y(e)?e.map(A1):e.constructor!==void 0?null:Z({},e)}function me(e,t,r,a,s,n,l,p,u){var i,f,o,_,d,g,C,z=r.props||$,m=t.props,h=t.type;if(h=="svg"?s="http://www.w3.org/2000/svg":h=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),n!=null){for(i=0;i<n.length;i++)if((d=n[i])&&"setAttribute"in d==!!h&&(h?d.localName==h:d.nodeType==3)){e=d,n[i]=null;break}}if(e==null){if(h==null)return document.createTextNode(m);e=document.createElementNS(s,h,m.is&&m),p&&(v.__m&&v.__m(t,n),p=false),n=null;}if(h==null)z===m||p&&e.data==m||(e.data=m);else {if(n=h=="textarea"&&m.defaultValue!=null?null:n&&W.call(e.childNodes),!p&&n!=null)for(z={},i=0;i<e.attributes.length;i++)z[(d=e.attributes[i]).name]=d.value;for(i in z)d=z[i],i=="dangerouslySetInnerHTML"?o=d:i=="children"||i in m||i=="value"&&"defaultValue"in m||i=="checked"&&"defaultChecked"in m||B(e,i,null,d,s);for(i in m)d=m[i],i=="children"?_=d:i=="dangerouslySetInnerHTML"?f=d:i=="value"?g=d:i=="checked"?C=d:p&&typeof d!="function"||z[i]===d||B(e,i,d,z[i],s);if(f)p||o&&(f.__html==o.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(o&&(e.innerHTML=""),R1(t.type=="template"?e.content:e,Y(_)?_:[_],t,r,a,h=="foreignObject"?"http://www.w3.org/1999/xhtml":s,n,l,n?n[0]:r.__k&&O(r,0),p,u),n!=null)for(i=n.length;i--;)c1(n[i]);p&&h!="textarea"||(i="value",h=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[i]||h=="progress"&&!g||h=="option"&&g!=z[i])&&B(e,i,g,z[i],s),i="checked",C!=null&&C!=e[i]&&B(e,i,C,z[i],s));}return e}function d1(e,t,r){try{if(typeof e=="function"){var a=typeof e.__u=="function";a&&e.__u(),a&&t==null||(e.__u=e(t));}else e.current=t;}catch(s){v.__e(s,r);}}function O1(e,t,r){var a,s;if(v.unmount&&v.unmount(e),(a=e.ref)&&(a.current&&a.current!=e.__e||d1(a,null,t)),(a=e.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount();}catch(n){v.__e(n,t);}a.base=a.__P=null;}if(a=e.__k)for(s=0;s<a.length;s++)a[s]&&O1(a[s],t,r||typeof e.type!="function");r||c1(e.__e),e.__c=e.__=e.__e=void 0;}function ge(e,t,r){return this.constructor(e,r)}function X(e,t,r){var a,s,n,l;t==document&&(t=document.documentElement),v.__&&v.__(e,t),s=(a="undefined"=="function")?null:t.__k,n=[],l=[],_1(t,e=(t).__k=J(L,null,[e]),s||$,$,t.namespaceURI,s?null:t.firstChild?W.call(t.childNodes):null,n,s?s.__e:t.firstChild,a,l),H1(n,e,l);}W=K.slice,v={__e:function(e,t,r,a){for(var s,n,l;t=t.__;)if((s=t.__c)&&!s.__)try{if((n=s.constructor)&&n.getDerivedStateFromError!=null&&(s.setState(n.getDerivedStateFromError(e)),l=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,a||{}),l=s.__d),l)return s.__E=s}catch(p){e=p;}throw e}},M1=0,F.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Z({},this.state),typeof e=="function"&&(e=e(Z({},r),this.props)),e&&Z(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),C1(this));},F.prototype.forceUpdate=function(e){this.__v&&(this.__e=true,e&&this.__h.push(e),C1(this));},F.prototype.render=L,P=[],Z1=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,L1=function(e,t){return e.__v.__b-t.__v.__b},Q.__r=0,a1=Math.random().toString(8),j="__d"+a1,T="__a"+a1,S1=/(PointerCapture)$|Capture$/i,p1=0,s1=w1(false),i1=w1(true);var q,k,u1,q1,I=0,j1=[],y=v,E1=y.__b,T1=y.__r,I1=y.diffed,D1=y.__c,V1=y.unmount,U1=y.__;function t1(e,t){y.__h&&y.__h(k,e,I||t),I=0;var r=k.__H||(k.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function D(e){return I=1,ke(K1,e)}function ke(e,t,r){var a=t1(q++,2);if(a.t=e,!a.__c&&(a.__=[K1(void 0,t),function(p){var u=a.__N?a.__N[0]:a.__[0],i=a.t(u,p);u!==i&&(a.__N=[i,a.__[1]],a.__c.setState({}));}],a.__c=k,!k.__f)){var s=function(p,u,i){if(!a.__c.__H)return true;var f=a.__c.__H.__.filter(function(_){return _.__c});if(f.every(function(_){return !_.__N}))return !n||n.call(this,p,u,i);var o=a.__c.props!==p;return f.some(function(_){if(_.__N){var d=_.__[0];_.__=_.__N,_.__N=void 0,d!==_.__[0]&&(o=true);}}),n&&n.call(this,p,u,i)||o};k.__f=true;var n=k.shouldComponentUpdate,l=k.componentWillUpdate;k.componentWillUpdate=function(p,u,i){if(this.__e){var f=n;n=void 0,s(p,u,i),n=f;}l&&l.call(this,p,u,i);},k.shouldComponentUpdate=s;}return a.__N||a.__}function r1(e,t){var r=t1(q++,3);!y.__s&&v1(r.__H,t)&&(r.__=e,r.u=t,k.__H.__h.push(r));}function G1(e,t){var r=t1(q++,4);!y.__s&&v1(r.__H,t)&&(r.__=e,r.u=t,k.__h.push(r));}function h1(e){return I=5,F1(function(){return {current:e}},[])}function F1(e,t){var r=t1(q++,7);return v1(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function $1(e,t){return I=8,F1(function(){return e},t)}function ye(){for(var e;e=j1.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(e1),t.__h.some(f1),t.__h=[];}catch(r){t.__h=[],y.__e(r,e.__v);}}}y.__b=function(e){k=null,E1&&E1(e);},y.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),U1&&U1(e,t);},y.__r=function(e){T1&&T1(e),q=0;var t=(k=e.__c).__H;t&&(u1===k?(t.__h=[],k.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0;})):(t.__h.some(e1),t.__h.some(f1),t.__h=[],q=0)),u1=k;},y.diffed=function(e){I1&&I1(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(j1.push(t)!==1&&q1===y.requestAnimationFrame||((q1=y.requestAnimationFrame)||ze)(ye)),t.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0;})),u1=k=null;},y.__c=function(e,t){t.some(function(r){try{r.__h.some(e1),r.__h=r.__h.filter(function(a){return !a.__||f1(a)});}catch(a){t.some(function(s){s.__h&&(s.__h=[]);}),t=[],y.__e(a,r.__v);}}),D1&&D1(e,t);},y.unmount=function(e){V1&&V1(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(a){try{e1(a);}catch(s){t=s;}}),r.__H=void 0,t&&y.__e(t,r.__v));};var B1=typeof requestAnimationFrame=="function";function ze(e){var t,r=function(){clearTimeout(a),B1&&cancelAnimationFrame(t),setTimeout(e);},a=setTimeout(r,35);B1&&(t=requestAnimationFrame(r));}function e1(e){var t=k,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),k=t;}function f1(e){var t=k;e.__c=e.__(),k=t;}function v1(e,t){return !e||e.length!==t.length||t.some(function(r,a){return r!==e[a]})}function K1(e,t){return typeof t=="function"?t(e):t}var Q1="https://zkpassport.id/r",W1="https://apps.apple.com/us/app/zkpassport/id6477371975",Y1="https://play.google.com/store/apps/details?id=app.zkpassport.zkpassport",m1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" fill="none" aria-hidden="true"><path d="M15.0417 29.516C23.0399 29.516 29.5237 23.0338 29.5237 15.0378C29.5237 7.04166 23.0399 0.559547 15.0417 0.559547C7.04352 0.559547 0.559692 7.04166 0.559692 15.0378C0.559692 23.0338 7.04352 29.516 15.0417 29.516Z" fill="#2139A3"/><path d="M15.0417 0C23.349 0 30.0834 6.73263 30.0834 15.0377C30.0834 23.3429 23.349 30.0755 15.0417 30.0755C6.73441 30.0755 0 23.3429 0 15.0377C0 6.73263 6.73441 0 15.0417 0ZM15.0417 1.60869C7.62309 1.60869 1.60911 7.62108 1.60911 15.0377C1.60911 22.4544 7.62309 28.4668 15.0417 28.4668C22.4603 28.4668 28.4743 22.4544 28.4743 15.0377C28.4743 7.62108 22.4603 1.60869 15.0417 1.60869ZM15.0592 3.09498C21.6662 3.09498 27.0226 8.44173 27.0226 15.0377C27.0226 21.6338 21.6662 26.9805 15.0592 26.9805C8.45221 26.9805 3.09579 21.6338 3.09579 15.0377C3.09579 8.44173 8.45221 3.09498 15.0592 3.09498ZM9.96458 22.0322L6.92138 22.0322C8.39067 23.7337 10.3865 24.9694 12.6564 25.4872C11.5835 24.7598 10.6605 23.5567 9.96458 22.0322ZM23.197 22.0322L20.1538 22.0322C19.4579 23.5567 18.5349 24.7598 17.4621 25.4874C19.7319 24.9694 21.7277 23.7337 23.197 22.0322ZM14.3421 22.032L11.2161 22.0321C12.0187 23.8592 13.1229 25.1125 14.3421 25.4638L14.3421 22.032ZM18.8674 22.0321L15.7413 22.032L15.7414 25.4638C16.9606 25.1125 18.0648 23.8591 18.8674 22.0321ZM25.7572 15.9821L21.5259 15.982C21.4396 17.8044 21.1057 19.5076 20.5786 20.9831L23.9963 20.983C24.9699 19.5278 25.5963 17.8215 25.7572 15.9821ZM8.59253 15.982L4.36123 15.9821C4.5221 17.8215 5.14847 19.5278 6.1221 20.983L9.53983 20.9831C9.01269 19.5076 8.67877 17.8044 8.59253 15.982ZM20.1638 15.9821L15.7413 15.982V20.9829L19.2733 20.983C19.7636 19.5382 20.0831 17.8314 20.1638 15.9821ZM14.3421 15.982L9.91967 15.9821C10.0003 17.8314 10.3198 19.5382 10.8101 20.983L14.3421 20.9829V15.982ZM24.2843 9.54718L20.7326 9.54709C21.2388 11.1259 21.5307 12.9383 21.5474 14.8629L25.7969 14.8629L25.7969 14.8605C25.7653 12.9205 25.2174 11.1057 24.2843 9.54718ZM9.38584 9.54709L5.83411 9.54718C4.9006 11.1063 4.35262 12.922 4.32152 14.8629L8.57108 14.8629L8.57113 14.8531C8.58872 12.9322 8.88051 11.1232 9.38584 9.54709ZM19.4086 9.54708L15.7413 9.54722V14.8629L20.183 14.8629C20.1655 12.9105 19.8822 11.0944 19.4086 9.54708ZM14.3421 9.54722L10.6748 9.54708C10.2012 11.0944 9.91791 12.9105 9.90041 14.8629L14.3421 14.8629V9.54722ZM17.462 4.5883L17.5252 4.6316C18.6751 5.43583 19.6492 6.78889 20.3507 8.49789H23.5684C22.073 6.56232 19.9294 5.15119 17.462 4.5883ZM12.6563 4.58812L12.6442 4.59108C10.182 5.15582 8.04296 6.5655 6.54996 8.49789H9.76772C10.4821 6.75769 11.479 5.38655 12.6563 4.58812ZM15.7414 4.64663L15.7413 8.49807L19.0424 8.49792C18.2293 6.4439 17.0518 5.02425 15.7414 4.64663ZM11.0411 8.49792L14.3421 8.49807L14.3421 4.64662C13.0317 5.02423 11.8541 6.44388 11.0411 8.49792Z" fill="url(#zkp-mark-grad)"/><defs><linearGradient id="zkp-mark-grad" x1="15.0417" y1="0" x2="15.0417" y2="30.0755" gradientUnits="userSpaceOnUse"><stop stop-color="#F2DCB0"/><stop offset="1" stop-color="#F6D38F"/></linearGradient></defs></svg>',J1=`
|
|
2
|
+
<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
3
|
+
<defs>
|
|
4
|
+
<linearGradient id="zkp-spin-mark-grad" x1="15.0417" y1="0" x2="15.0417" y2="30.0755" gradientUnits="userSpaceOnUse">
|
|
5
|
+
<stop stop-color="#F2DCB0"/>
|
|
6
|
+
<stop offset="1" stop-color="#F6D38F"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
</defs>
|
|
9
|
+
<g transform="translate(27.5 27.5) scale(1.5)">
|
|
10
|
+
<path d="M15.0417 29.516C23.0399 29.516 29.5237 23.0338 29.5237 15.0378C29.5237 7.04166 23.0399 0.559547 15.0417 0.559547C7.04352 0.559547 0.559692 7.04166 0.559692 15.0378C0.559692 23.0338 7.04352 29.516 15.0417 29.516Z" fill="#2139A3"/>
|
|
11
|
+
<path d="M15.0417 0C23.349 0 30.0834 6.73263 30.0834 15.0377C30.0834 23.3429 23.349 30.0755 15.0417 30.0755C6.73441 30.0755 0 23.3429 0 15.0377C0 6.73263 6.73441 0 15.0417 0ZM15.0417 1.60869C7.62309 1.60869 1.60911 7.62108 1.60911 15.0377C1.60911 22.4544 7.62309 28.4668 15.0417 28.4668C22.4603 28.4668 28.4743 22.4544 28.4743 15.0377C28.4743 7.62108 22.4603 1.60869 15.0417 1.60869ZM15.0592 3.09498C21.6662 3.09498 27.0226 8.44173 27.0226 15.0377C27.0226 21.6338 21.6662 26.9805 15.0592 26.9805C8.45221 26.9805 3.09579 21.6338 3.09579 15.0377C3.09579 8.44173 8.45221 3.09498 15.0592 3.09498ZM9.96458 22.0322L6.92138 22.0322C8.39067 23.7337 10.3865 24.9694 12.6564 25.4872C11.5835 24.7598 10.6605 23.5567 9.96458 22.0322ZM23.197 22.0322L20.1538 22.0322C19.4579 23.5567 18.5349 24.7598 17.4621 25.4874C19.7319 24.9694 21.7277 23.7337 23.197 22.0322ZM14.3421 22.032L11.2161 22.0321C12.0187 23.8592 13.1229 25.1125 14.3421 25.4638L14.3421 22.032ZM18.8674 22.0321L15.7413 22.032L15.7414 25.4638C16.9606 25.1125 18.0648 23.8591 18.8674 22.0321ZM25.7572 15.9821L21.5259 15.982C21.4396 17.8044 21.1057 19.5076 20.5786 20.9831L23.9963 20.983C24.9699 19.5278 25.5963 17.8215 25.7572 15.9821ZM8.59253 15.982L4.36123 15.9821C4.5221 17.8215 5.14847 19.5278 6.1221 20.983L9.53983 20.9831C9.01269 19.5076 8.67877 17.8044 8.59253 15.982ZM20.1638 15.9821L15.7413 15.982V20.9829L19.2733 20.983C19.7636 19.5382 20.0831 17.8314 20.1638 15.9821ZM14.3421 15.982L9.91967 15.9821C10.0003 17.8314 10.3198 19.5382 10.8101 20.983L14.3421 20.9829V15.982ZM24.2843 9.54718L20.7326 9.54709C21.2388 11.1259 21.5307 12.9383 21.5474 14.8629L25.7969 14.8629L25.7969 14.8605C25.7653 12.9205 25.2174 11.1057 24.2843 9.54718ZM9.38584 9.54709L5.83411 9.54718C4.9006 11.1063 4.35262 12.922 4.32152 14.8629L8.57108 14.8629L8.57113 14.8531C8.58872 12.9322 8.88051 11.1232 9.38584 9.54709ZM19.4086 9.54708L15.7413 9.54722V14.8629L20.183 14.8629C20.1655 12.9105 19.8822 11.0944 19.4086 9.54708ZM14.3421 9.54722L10.6748 9.54708C10.2012 11.0944 9.91791 12.9105 9.90041 14.8629L14.3421 14.8629V9.54722ZM17.462 4.5883L17.5252 4.6316C18.6751 5.43583 19.6492 6.78889 20.3507 8.49789H23.5684C22.073 6.56232 19.9294 5.15119 17.462 4.5883ZM12.6563 4.58812L12.6442 4.59108C10.182 5.15582 8.04296 6.5655 6.54996 8.49789H9.76772C10.4821 6.75769 11.479 5.38655 12.6563 4.58812ZM15.7414 4.64663L15.7413 8.49807L19.0424 8.49792C18.2293 6.4439 17.0518 5.02425 15.7414 4.64663ZM11.0411 8.49792L14.3421 8.49807L14.3421 4.64662C13.0317 5.02423 11.8541 6.44388 11.0411 8.49792Z" fill="url(#zkp-spin-mark-grad)"/>
|
|
12
|
+
</g>
|
|
13
|
+
<circle class="zkp-spinner-arc" cx="50" cy="50" r="27" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-dasharray="42 128"/>
|
|
14
|
+
</svg>`,X1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2"/><path d="M17 3h2a2 2 0 0 1 2 2v2"/><path d="M21 17v2a2 2 0 0 1-2 2h-2"/><path d="M7 21H5a2 2 0 0 1-2-2v-2"/><line x1="7" y1="12" x2="17" y2="12"/></svg>',ee='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>',te='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>',g1='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>',re='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="6" y1="6" x2="18" y2="18"/><line x1="6" y1="18" x2="18" y2="6"/></svg>',ne='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="2" width="14" height="20" rx="2.5" ry="2.5"/><line x1="11" y1="18" x2="13" y2="18"/></svg>',oe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>',ae={ariaLabel:"Download on the App Store",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 119.66407 40" role="img" aria-hidden="true"><path d="M110.13477,0H9.53468c-.3667,0-.729,0-1.09473.002-.30615.002-.60986.00781-.91895.0127A13.21476,13.21476,0,0,0,5.5171.19141a6.66509,6.66509,0,0,0-1.90088.627A6.43779,6.43779,0,0,0,1.99757,1.99707,6.25844,6.25844,0,0,0,.81935,3.61816a6.60119,6.60119,0,0,0-.625,1.90332,12.993,12.993,0,0,0-.1792,2.002C.00587,7.83008.00489,8.1377,0,8.44434V31.5586c.00489.3105.00587.6113.01515.9219a12.99232,12.99232,0,0,0,.1792,2.0019,6.58756,6.58756,0,0,0,.625,1.9043A6.20778,6.20778,0,0,0,1.99757,38.001a6.27445,6.27445,0,0,0,1.61865,1.1787,6.70082,6.70082,0,0,0,1.90088.6308,13.45514,13.45514,0,0,0,2.0039.1768c.30909.0068.6128.0107.91895.0107C8.80567,40,9.168,40,9.53468,40H110.13477c.3594,0,.7246,0,1.084-.002.3047,0,.6172-.0039.9219-.0107a13.279,13.279,0,0,0,2-.1768,6.80432,6.80432,0,0,0,1.9082-.6308,6.27742,6.27742,0,0,0,1.6172-1.1787,6.39482,6.39482,0,0,0,1.1816-1.6143,6.60413,6.60413,0,0,0,.6191-1.9043,13.50643,13.50643,0,0,0,.1856-2.0019c.0039-.3106.0039-.6114.0039-.9219.0078-.3633.0078-.7246.0078-1.0938V9.53613c0-.36621,0-.72949-.0078-1.09179,0-.30664,0-.61426-.0039-.9209a13.5071,13.5071,0,0,0-.1856-2.002,6.6177,6.6177,0,0,0-.6191-1.90332,6.46619,6.46619,0,0,0-2.7988-2.7998,6.76754,6.76754,0,0,0-1.9082-.627,13.04394,13.04394,0,0,0-2-.17676c-.3047-.00488-.6172-.01074-.9219-.01269-.3594-.002-.7246-.002-1.084-.002Z" fill="#a6a6a6"/><path d="M8.44483,39.125c-.30468,0-.602-.0039-.90429-.0107a12.68714,12.68714,0,0,1-1.86914-.1631,5.88381,5.88381,0,0,1-1.65674-.5479,5.40573,5.40573,0,0,1-1.397-1.0166,5.32082,5.32082,0,0,1-1.02051-1.3965,5.72186,5.72186,0,0,1-.543-1.6572,12.41351,12.41351,0,0,1-.1665-1.875c-.00634-.2109-.01464-.9131-.01464-.9131V8.44434S.88185,7.75293.8877,7.5498a12.37039,12.37039,0,0,1,.16553-1.87207,5.7555,5.7555,0,0,1,.54346-1.6621A5.37349,5.37349,0,0,1,2.61183,2.61768,5.56543,5.56543,0,0,1,4.01417,1.59521a5.82309,5.82309,0,0,1,1.65332-.54394A12.58589,12.58589,0,0,1,7.543.88721L8.44532.875H111.21387l.9131.0127a12.38493,12.38493,0,0,1,1.8584.16259,5.93833,5.93833,0,0,1,1.6709.54785,5.59374,5.59374,0,0,1,2.415,2.41993,5.76267,5.76267,0,0,1,.5352,1.64892,12.995,12.995,0,0,1,.1738,1.88721c.0029.2832.0029.5874.0029.89014.0079.375.0079.73193.0079,1.09179V30.4648c0,.3633,0,.7178-.0079,1.0752,0,.3252,0,.6231-.0039.9297a12.73126,12.73126,0,0,1-.1709,1.8535,5.739,5.739,0,0,1-.54,1.67,5.48029,5.48029,0,0,1-1.0156,1.3857,5.4129,5.4129,0,0,1-1.3994,1.0225,5.86168,5.86168,0,0,1-1.668.5498,12.54218,12.54218,0,0,1-1.8692.1631c-.2929.0068-.5996.0107-.8974.0107l-1.084.002Z"/><path d="M24.76888,20.30068a4.94881,4.94881,0,0,1,2.35656-4.15206,5.06566,5.06566,0,0,0-3.99116-2.15768c-1.67924-.17626-3.30719,1.00483-4.1629,1.00483-.87227,0-2.18977-.98733-3.6085-.95814a5.31529,5.31529,0,0,0-4.47292,2.72787c-1.934,3.34842-.49141,8.26947,1.3612,10.97608.9269,1.32535,2.01018,2.8058,3.42763,2.7533,1.38706-.05753,1.9051-.88448,3.5794-.88448,1.65876,0,2.14479.88448,3.591.8511,1.48838-.02416,2.42613-1.33124,3.32051-2.66914a10.962,10.962,0,0,0,1.51842-3.09251A4.78205,4.78205,0,0,1,24.76888,20.30068Z" fill="#fff"/><path d="M22.03725,12.21089a4.87248,4.87248,0,0,0,1.11452-3.49062,4.95746,4.95746,0,0,0-3.20758,1.65961,4.63634,4.63634,0,0,0-1.14371,3.36139A4.09905,4.09905,0,0,0,22.03725,12.21089Z" fill="#fff"/><path d="M42.30227,27.13965h-4.7334l-1.13672,3.35645H34.42727l4.4834-12.418h2.083l4.4834,12.418H43.438ZM38.0591,25.59082h3.752l-1.84961-5.44727h-.05176Z" fill="#fff"/><path d="M55.15969,25.96973c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438h-1.8584V21.44238H48.4302v1.50586h.03418a3.21162,3.21162,0,0,1,2.88281-1.60059C53.645,21.34766,55.15969,23.16406,55.15969,25.96973Zm-1.91016,0c0-1.833-.94727-3.03809-2.39258-3.03809-1.41992,0-2.375,1.23047-2.375,3.03809,0,1.82422.95508,3.0459,2.375,3.0459C52.30227,29.01563,53.24953,27.81934,53.24953,25.96973Z" fill="#fff"/><path d="M65.12453,25.96973c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438h-1.8584V21.44238H58.395v1.50586h.03418A3.21162,3.21162,0,0,1,61.312,21.34766C63.60988,21.34766,65.12453,23.16406,65.12453,25.96973Zm-1.91016,0c0-1.833-.94727-3.03809-2.39258-3.03809-1.41992,0-2.375,1.23047-2.375,3.03809,0,1.82422.95508,3.0459,2.375,3.0459C62.26711,29.01563,63.21438,27.81934,63.21438,25.96973Z" fill="#fff"/><path d="M71.71047,27.03613c.1377,1.23145,1.334,2.04,2.96875,2.04,1.56641,0,2.69336-.80859,2.69336-1.91895,0-.96387-.67969-1.541-2.28906-1.93652l-1.60937-.3877c-2.28027-.55078-3.33887-1.61719-3.33887-3.34766,0-2.14258,1.86719-3.61426,4.51855-3.61426,2.624,0,4.42285,1.47168,4.4834,3.61426h-1.876c-.1123-1.23926-1.13672-1.9873-2.63379-1.9873s-2.52148.75684-2.52148,1.8584c0,.87793.6543,1.39453,2.25488,1.79l1.36816.33594c2.54785.60254,3.60645,1.626,3.60645,3.44238,0,2.32324-1.85059,3.77832-4.79395,3.77832-2.75391,0-4.61328-1.4209-4.7334-3.667Z" fill="#fff"/><path d="M83.34621,19.2998v2.14258h1.72168v1.47168H83.34621v4.99121c0,.77539.34473,1.13672,1.10156,1.13672a5.80752,5.80752,0,0,0,.61133-.043v1.46289a5.10351,5.10351,0,0,1-1.03223.08594c-1.833,0-2.54785-.68848-2.54785-2.44434V22.91406H80.16262V21.44238H81.479V19.2998Z" fill="#fff"/><path d="M86.065,25.96973c0-2.84863,1.67773-4.63867,4.29395-4.63867,2.625,0,4.29492,1.79,4.29492,4.63867,0,2.85645-1.66113,4.63867-4.29492,4.63867C87.72609,30.6084,86.065,28.82617,86.065,25.96973Zm6.69531,0c0-1.9541-.89551-3.10742-2.40137-3.10742s-2.40039,1.16211-2.40039,3.10742c0,1.96191.89453,3.10645,2.40039,3.10645S92.76027,27.93164,92.76027,25.96973Z" fill="#fff"/><path d="M96.18606,21.44238h1.77246v1.541h.043a2.1594,2.1594,0,0,1,2.17773-1.63574,2.86616,2.86616,0,0,1,.63672.06934v1.73828a2.59794,2.59794,0,0,0-.835-.1123,1.87264,1.87264,0,0,0-1.93652,2.083v5.37012h-1.8584Z" fill="#fff"/><path d="M109.3843,27.83691c-.25,1.64355-1.85059,2.77148-3.89844,2.77148-2.63379,0-4.26855-1.76465-4.26855-4.5957,0-2.83984,1.64355-4.68164,4.19043-4.68164,2.50488,0,4.08008,1.7207,4.08008,4.46582v.63672h-6.39453v.1123a2.358,2.358,0,0,0,2.43555,2.56445,2.04834,2.04834,0,0,0,2.09082-1.27344Zm-6.28223-2.70215h4.52637a2.1773,2.1773,0,0,0-2.2207-2.29785A2.292,2.292,0,0,0,103.10207,25.13477Z" fill="#fff"/><path d="M37.82619,8.731a2.63964,2.63964,0,0,1,2.80762,2.96484c0,1.90625-1.03027,3.002-2.80762,3.002H35.67092V8.731Zm-1.22852,5.123h1.125a1.87588,1.87588,0,0,0,1.96777-2.146,1.881,1.881,0,0,0-1.96777-2.13379h-1.125Z" fill="#fff"/><path d="M41.68068,12.44434a2.13323,2.13323,0,1,1,4.24707,0,2.13358,2.13358,0,1,1-4.24707,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C44.57522,13.99463,45.01369,13.42432,45.01369,12.44434Z" fill="#fff"/><path d="M51.57326,14.69775h-.92187l-.93066-3.31641h-.07031l-.92676,3.31641h-.91309l-1.24121-4.50293h.90137l.80664,3.436h.06641l.92578-3.436h.85254l.92578,3.436h.07031l.80273-3.436h.88867Z" fill="#fff"/><path d="M53.85354,10.19482H54.709v.71533h.06641a1.348,1.348,0,0,1,1.34375-.80225,1.46456,1.46456,0,0,1,1.55859,1.6748v2.915h-.88867V12.00586c0-.72363-.31445-1.0835-.97168-1.0835a1.03294,1.03294,0,0,0-1.0752,1.14111v2.63428h-.88867Z" fill="#fff"/><path d="M59.09377,8.437h.88867v6.26074h-.88867Z" fill="#fff"/><path d="M61.21779,12.44434a2.13346,2.13346,0,1,1,4.24756,0,2.1338,2.1338,0,1,1-4.24756,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C64.11232,13.99463,64.5508,13.42432,64.5508,12.44434Z" fill="#fff"/><path d="M66.4009,13.42432c0-.81055.60352-1.27783,1.6748-1.34424l1.21973-.07031v-.38867c0-.47559-.31445-.74414-.92187-.74414-.49609,0-.83984.18213-.93848.50049h-.86035c.09082-.77344.81836-1.26953,1.83984-1.26953,1.12891,0,1.76563.562,1.76563,1.51318v3.07666h-.85547v-.63281h-.07031a1.515,1.515,0,0,1-1.35254.707A1.36026,1.36026,0,0,1,66.4009,13.42432Zm2.89453-.38477v-.37646l-1.09961.07031c-.62012.0415-.90137.25244-.90137.64941,0,.40527.35156.64111.835.64111A1.0615,1.0615,0,0,0,69.29543,13.03955Z" fill="#fff"/><path d="M71.34816,12.44434c0-1.42285.73145-2.32422,1.86914-2.32422a1.484,1.484,0,0,1,1.38086.79h.06641V8.437h.88867v6.26074h-.85156v-.71143h-.07031a1.56284,1.56284,0,0,1-1.41406.78564C72.0718,14.772,71.34816,13.87061,71.34816,12.44434Zm.918,0c0,.95508.4502,1.52979,1.20313,1.52979.749,0,1.21191-.583,1.21191-1.52588,0-.93848-.46777-1.52979-1.21191-1.52979C72.72121,10.91846,72.26613,11.49707,72.26613,12.44434Z" fill="#fff"/><path d="M79.23,12.44434a2.13323,2.13323,0,1,1,4.24707,0,2.13358,2.13358,0,1,1-4.24707,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C82.12453,13.99463,82.563,13.42432,82.563,12.44434Z" fill="#fff"/><path d="M84.66945,10.19482h.85547v.71533h.06641a1.348,1.348,0,0,1,1.34375-.80225,1.46456,1.46456,0,0,1,1.55859,1.6748v2.915H87.605V12.00586c0-.72363-.31445-1.0835-.97168-1.0835a1.03294,1.03294,0,0,0-1.0752,1.14111v2.63428h-.88867Z" fill="#fff"/><path d="M93.51516,9.07373v1.1416h.97559v.74854h-.97559V13.2793c0,.47168.19434.67822.63672.67822a2.96657,2.96657,0,0,0,.33887-.02051v.74023a2.9155,2.9155,0,0,1-.4834.04541c-.98828,0-1.38184-.34766-1.38184-1.21582v-2.543h-.71484v-.74854h.71484V9.07373Z" fill="#fff"/><path d="M95.70461,8.437h.88086v2.48145h.07031a1.3856,1.3856,0,0,1,1.373-.80664,1.48339,1.48339,0,0,1,1.55078,1.67871v2.90723H98.69v-2.688c0-.71924-.335-1.0835-.96289-1.0835a1.05194,1.05194,0,0,0-1.13379,1.1416v2.62988h-.88867Z" fill="#fff"/><path d="M104.76125,13.48193a1.828,1.828,0,0,1-1.95117,1.30273A2.04531,2.04531,0,0,1,100.73,12.46045a2.07685,2.07685,0,0,1,2.07617-2.35254c1.25293,0,2.00879.856,2.00879,2.27V12.688h-3.17969v.0498a1.1902,1.1902,0,0,0,1.19922,1.29,1.07934,1.07934,0,0,0,1.07129-.5459Zm-3.126-1.45117h2.27441a1.08647,1.08647,0,0,0-1.1084-1.1665A1.15162,1.15162,0,0,0,101.63527,12.03076Z" fill="#fff"/></svg>'},se={ariaLabel:"Get it on Google Play",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 238.96 70.87" role="img" aria-hidden="true"><rect x="-.11" width="239.17" height="70.87" rx="8.86" ry="8.86"/><path fill="#a6a6a6" d="M230.21,1.42c4.1,0,7.44,3.34,7.44,7.44v53.15c0,4.1-3.34,7.44-7.44,7.44H8.75c-4.1,0-7.44-3.34-7.44-7.44V8.86C1.31,4.76,4.65,1.42,8.75,1.42h221.46M230.21,0H8.75C3.88,0-.11,3.99-.11,8.86v53.15c0,4.87,3.99,8.86,8.86,8.86h221.46c4.87,0,8.86-3.99,8.86-8.86V8.86c0-4.87-3.99-8.86-8.86-8.86h0Z"/><g fill="#fff" stroke="#fff" stroke-miterlimit="10" stroke-width="0.2"><path d="M83.9,18.15c0,1.48-.44,2.67-1.32,3.55-1,1.05-2.3,1.57-3.9,1.57s-2.84-.53-3.91-1.59c-1.07-1.06-1.61-2.38-1.61-3.96s.54-2.89,1.61-3.96c1.07-1.06,2.38-1.6,3.91-1.6.76,0,1.49.15,2.18.44.69.3,1.25.69,1.66,1.19l-.93.94c-.7-.84-1.67-1.26-2.91-1.26-1.12,0-2.09.39-2.9,1.18s-1.22,1.81-1.22,3.06.41,2.28,1.22,3.06c.82.79,1.78,1.18,2.9,1.18,1.19,0,2.18-.4,2.97-1.19.51-.52.81-1.23.89-2.15h-3.86v-1.28h5.15c.05.28.07.54.07.8Z"/><path d="M92.07,13.71h-4.84v3.37h4.37v1.28h-4.37v3.37h4.84v1.31h-6.21v-10.63h6.21v1.31h0Z"/><path d="M97.83,23.03h-1.37v-9.32h-2.97v-1.31h7.3v1.31h-2.97s0,9.32,0,9.32Z"/><path d="M106.08,23.03v-10.63h1.36v10.63h-1.36Z"/><path d="M113.51,23.03h-1.37v-9.32h-2.97v-1.31h7.3v1.31h-2.97s0,9.32,0,9.32Z"/><path d="M130.3,21.66c-1.05,1.08-2.34,1.61-3.9,1.61s-2.85-.54-3.9-1.61c-1.05-1.07-1.57-2.39-1.57-3.94s.52-2.87,1.57-3.94c1.04-1.08,2.34-1.61,3.9-1.61s2.84.54,3.89,1.62c1.05,1.08,1.57,2.39,1.57,3.93s-.52,2.87-1.57,3.94ZM123.52,20.77c.79.8,1.75,1.19,2.89,1.19s2.1-.4,2.89-1.19c.79-.8,1.18-1.81,1.18-3.05s-.4-2.26-1.18-3.05c-.78-.8-1.75-1.19-2.89-1.19s-2.1.4-2.89,1.19c-.78.8-1.18,1.81-1.18,3.05s.4,2.26,1.18,3.05Z"/><path d="M133.79,23.03v-10.63h1.66l5.17,8.27h.06l-.06-2.05v-6.22h1.37v10.63h-1.43l-5.41-8.67h-.06l.06,2.05v6.62h-1.37,0Z"/></g><path fill="#fff" d="M120.61,38.54c-4.17,0-7.56,3.17-7.56,7.53s3.4,7.53,7.56,7.53,7.56-3.2,7.56-7.53-3.4-7.53-7.56-7.53ZM120.61,50.64c-2.28,0-4.25-1.88-4.25-4.57s1.97-4.57,4.25-4.57,4.25,1.85,4.25,4.57-1.97,4.57-4.25,4.57ZM104.11,38.54c-4.17,0-7.56,3.17-7.56,7.53s3.4,7.53,7.56,7.53,7.56-3.2,7.56-7.53-3.4-7.53-7.56-7.53ZM104.11,50.64c-2.28,0-4.25-1.88-4.25-4.57s1.97-4.57,4.25-4.57,4.25,1.85,4.25,4.57-1.97,4.57-4.25,4.57ZM84.48,40.85v3.2h7.65c-.23,1.8-.83,3.11-1.74,4.03-1.11,1.11-2.85,2.34-5.91,2.34-4.71,0-8.39-3.8-8.39-8.51s3.68-8.51,8.39-8.51c2.54,0,4.4,1,5.76,2.28l2.26-2.26c-1.91-1.83-4.45-3.22-8.02-3.22-6.45,0-11.87,5.25-11.87,11.7s5.42,11.7,11.87,11.7c3.48,0,6.11-1.14,8.16-3.28,2.11-2.11,2.77-5.08,2.77-7.48,0-.74-.06-1.43-.17-2h-10.76,0ZM164.75,43.33c-.63-1.68-2.54-4.8-6.45-4.8s-7.11,3.05-7.11,7.53c0,4.22,3.2,7.53,7.48,7.53,3.45,0,5.45-2.11,6.28-3.34l-2.57-1.71c-.86,1.26-2.03,2.08-3.71,2.08s-2.88-.77-3.65-2.28l10.08-4.17-.34-.86h0ZM154.47,45.84c-.09-2.91,2.26-4.4,3.94-4.4,1.31,0,2.43.66,2.8,1.6l-6.74,2.8ZM146.28,53.15h3.31v-22.15h-3.31v22.15ZM140.86,40.22h-.11c-.74-.88-2.17-1.68-3.97-1.68-3.77,0-7.22,3.31-7.22,7.56s3.45,7.51,7.22,7.51c1.8,0,3.22-.8,3.97-1.71h.11v1.08c0,2.88-1.54,4.42-4.03,4.42-2.03,0-3.28-1.46-3.8-2.68l-2.88,1.2c.83,2,3.03,4.45,6.68,4.45,3.88,0,7.16-2.28,7.16-7.85v-13.53h-3.14v1.23ZM137.06,50.64c-2.28,0-4.2-1.91-4.2-4.54s1.91-4.6,4.2-4.6,4.03,1.94,4.03,4.6-1.77,4.54-4.03,4.54ZM180.26,31h-7.92v22.15h3.31v-8.39h4.62c3.66,0,7.27-2.65,7.27-6.88s-3.6-6.88-7.27-6.88ZM180.34,41.68h-4.7v-7.59h4.7c2.47,0,3.87,2.05,3.87,3.8s-1.4,3.8-3.87,3.8h0ZM200.77,38.5c-2.39,0-4.87,1.05-5.9,3.39l2.94,1.23c.63-1.23,1.79-1.62,3.02-1.62,1.71,0,3.45,1.03,3.48,2.85v.23c-.6-.34-1.88-.86-3.45-.86-3.16,0-6.38,1.74-6.38,4.99,0,2.96,2.59,4.87,5.5,4.87,2.22,0,3.45-1,4.22-2.16h.11v1.71h3.19v-8.49c0-3.93-2.94-6.13-6.73-6.13h0ZM200.38,50.63c-1.08,0-2.59-.54-2.59-1.88,0-1.71,1.88-2.37,3.5-2.37,1.45,0,2.14.31,3.02.74-.26,2.05-2.02,3.5-3.93,3.5ZM219.12,38.98l-3.79,9.6h-.11l-3.93-9.6h-3.56l5.9,13.42-3.36,7.47h3.45l9.09-20.89h-3.68ZM189.35,53.15h3.31v-22.15h-3.31v22.15Z"/><path fill="#ea4335" d="M36.6,34.41l-18.86,20.02s0,0,0,.01c.58,2.17,2.56,3.77,4.92,3.77.94,0,1.83-.26,2.58-.7l.06-.04,21.23-12.25-9.94-10.82Z"/><path fill="#fbbc04" d="M55.68,31h-.02s-9.17-5.33-9.17-5.33l-10.33,9.19,10.36,10.36,9.12-5.26c1.6-.86,2.68-2.55,2.68-4.49s-1.07-3.61-2.65-4.47h0Z"/><path fill="#4285f4" d="M17.73,16.44c-.11.42-.17.86-.17,1.31v35.38c0,.45.06.89.17,1.31l19.51-19.51-19.51-18.49Z"/><path fill="#34a853" d="M36.74,35.43l9.76-9.76-21.21-12.3c-.77-.46-1.67-.73-2.63-.73-2.36,0-4.34,1.6-4.92,3.78h0s19,19,19,19h0Z"/></svg>'};var ie=`@layer zkpassport {
|
|
15
|
+
.zkp-card {
|
|
16
|
+
--zkp-bg: #ffffff;
|
|
17
|
+
--zkp-fg: #111827;
|
|
18
|
+
--zkp-muted: #6b7280;
|
|
19
|
+
--zkp-border: #e5e7eb;
|
|
20
|
+
--zkp-surface: #f3f4f6;
|
|
21
|
+
--zkp-accent: #111827;
|
|
22
|
+
--zkp-brand: #2139a3;
|
|
23
|
+
--zkp-success: #16a34a;
|
|
24
|
+
--zkp-error: #dc2626;
|
|
25
|
+
|
|
26
|
+
all: revert;
|
|
27
|
+
position: relative;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
width: 100%;
|
|
32
|
+
min-width: 280px;
|
|
33
|
+
max-width: 380px;
|
|
34
|
+
padding: 26px 20px 18px;
|
|
35
|
+
border: 1px solid var(--zkp-border);
|
|
36
|
+
border-radius: 14px;
|
|
37
|
+
background: var(--zkp-bg);
|
|
38
|
+
color: var(--zkp-fg);
|
|
39
|
+
font-family: ui-sans-serif, system-ui, sans-serif;
|
|
40
|
+
font-size: 14px;
|
|
41
|
+
line-height: 1.4;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.zkp-card[data-theme="dark"] {
|
|
45
|
+
--zkp-bg: #0f172a;
|
|
46
|
+
--zkp-fg: #f1f5f9;
|
|
47
|
+
--zkp-muted: #94a3b8;
|
|
48
|
+
--zkp-border: #334155;
|
|
49
|
+
--zkp-surface: #1e293b;
|
|
50
|
+
--zkp-accent: #f1f5f9;
|
|
51
|
+
--zkp-brand: #6b86d8;
|
|
52
|
+
--zkp-success: #4ade80;
|
|
53
|
+
--zkp-error: #f87171;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (prefers-color-scheme: dark) {
|
|
57
|
+
.zkp-card[data-theme="auto"] {
|
|
58
|
+
--zkp-bg: #0f172a;
|
|
59
|
+
--zkp-fg: #f1f5f9;
|
|
60
|
+
--zkp-muted: #94a3b8;
|
|
61
|
+
--zkp-border: #334155;
|
|
62
|
+
--zkp-surface: #1e293b;
|
|
63
|
+
--zkp-accent: #f1f5f9;
|
|
64
|
+
--zkp-brand: #6b86d8;
|
|
65
|
+
--zkp-success: #4ade80;
|
|
66
|
+
--zkp-error: #f87171;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.zkp-card * {
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
}
|
|
73
|
+
.zkp-card button {
|
|
74
|
+
font: inherit;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Header */
|
|
79
|
+
.zkp-header {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: 16px;
|
|
84
|
+
}
|
|
85
|
+
.zkp-header-icons {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
gap: 10px;
|
|
90
|
+
}
|
|
91
|
+
.zkp-zkp-icon,
|
|
92
|
+
.zkp-app-icon-slot {
|
|
93
|
+
flex: 0 0 auto;
|
|
94
|
+
height: 32px;
|
|
95
|
+
display: grid;
|
|
96
|
+
place-items: center;
|
|
97
|
+
}
|
|
98
|
+
.zkp-zkp-icon {
|
|
99
|
+
width: 32px;
|
|
100
|
+
}
|
|
101
|
+
.zkp-zkp-icon svg {
|
|
102
|
+
width: 100%;
|
|
103
|
+
height: 100%;
|
|
104
|
+
display: block;
|
|
105
|
+
}
|
|
106
|
+
.zkp-app-icon-slot {
|
|
107
|
+
max-width: 96px;
|
|
108
|
+
min-width: 32px;
|
|
109
|
+
}
|
|
110
|
+
.zkp-app-icon {
|
|
111
|
+
max-height: 100%;
|
|
112
|
+
max-width: 100%;
|
|
113
|
+
width: auto;
|
|
114
|
+
height: auto;
|
|
115
|
+
object-fit: contain;
|
|
116
|
+
display: block;
|
|
117
|
+
}
|
|
118
|
+
.zkp-header-dots {
|
|
119
|
+
display: flex;
|
|
120
|
+
gap: 4px;
|
|
121
|
+
}
|
|
122
|
+
.zkp-header-dots span {
|
|
123
|
+
width: 4px;
|
|
124
|
+
height: 4px;
|
|
125
|
+
border-radius: 50%;
|
|
126
|
+
background: var(--zkp-muted);
|
|
127
|
+
opacity: 0.5;
|
|
128
|
+
}
|
|
129
|
+
.zkp-title {
|
|
130
|
+
margin: 0;
|
|
131
|
+
text-align: center;
|
|
132
|
+
color: var(--zkp-muted);
|
|
133
|
+
font-size: 13px;
|
|
134
|
+
line-height: 1.45;
|
|
135
|
+
}
|
|
136
|
+
.zkp-title strong {
|
|
137
|
+
color: var(--zkp-fg);
|
|
138
|
+
font-weight: 600;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Restart button */
|
|
142
|
+
.zkp-restart {
|
|
143
|
+
position: absolute;
|
|
144
|
+
top: 6px;
|
|
145
|
+
right: 8px;
|
|
146
|
+
width: 24px;
|
|
147
|
+
height: 24px;
|
|
148
|
+
padding: 0;
|
|
149
|
+
border: 1px solid var(--zkp-border);
|
|
150
|
+
border-radius: 999px;
|
|
151
|
+
background: var(--zkp-bg);
|
|
152
|
+
color: var(--zkp-muted);
|
|
153
|
+
display: grid;
|
|
154
|
+
place-items: center;
|
|
155
|
+
transition:
|
|
156
|
+
color 120ms ease,
|
|
157
|
+
border-color 120ms ease;
|
|
158
|
+
}
|
|
159
|
+
.zkp-restart:hover {
|
|
160
|
+
color: var(--zkp-accent);
|
|
161
|
+
border-color: var(--zkp-accent);
|
|
162
|
+
}
|
|
163
|
+
.zkp-restart svg {
|
|
164
|
+
width: 14px;
|
|
165
|
+
height: 14px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Dividers */
|
|
169
|
+
.zkp-divider {
|
|
170
|
+
height: 1px;
|
|
171
|
+
background: var(--zkp-border);
|
|
172
|
+
}
|
|
173
|
+
.zkp-divider-header {
|
|
174
|
+
margin: 16px 0 0;
|
|
175
|
+
}
|
|
176
|
+
.zkp-divider-top {
|
|
177
|
+
margin: 14px 0;
|
|
178
|
+
}
|
|
179
|
+
.zkp-divider-bottom {
|
|
180
|
+
margin: 10px 0 14px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* QR slot */
|
|
184
|
+
.zkp-qr-slot {
|
|
185
|
+
position: relative;
|
|
186
|
+
width: 100%;
|
|
187
|
+
aspect-ratio: 1;
|
|
188
|
+
margin: 16px 0 0;
|
|
189
|
+
background: var(--zkp-bg);
|
|
190
|
+
display: grid;
|
|
191
|
+
place-items: center;
|
|
192
|
+
overflow: hidden;
|
|
193
|
+
}
|
|
194
|
+
.zkp-qr {
|
|
195
|
+
width: 100%;
|
|
196
|
+
height: 100%;
|
|
197
|
+
color: black;
|
|
198
|
+
transition:
|
|
199
|
+
opacity 200ms ease,
|
|
200
|
+
transform 200ms ease;
|
|
201
|
+
}
|
|
202
|
+
.zkp-qr svg {
|
|
203
|
+
width: 100%;
|
|
204
|
+
height: 100%;
|
|
205
|
+
display: block;
|
|
206
|
+
}
|
|
207
|
+
.zkp-qr-logo {
|
|
208
|
+
position: absolute;
|
|
209
|
+
top: 50%;
|
|
210
|
+
left: 50%;
|
|
211
|
+
transform: translate(-50%, -50%);
|
|
212
|
+
width: 14%;
|
|
213
|
+
aspect-ratio: 1;
|
|
214
|
+
background: var(--zkp-bg);
|
|
215
|
+
padding: 3px;
|
|
216
|
+
border-radius: 50%;
|
|
217
|
+
display: grid;
|
|
218
|
+
place-items: center;
|
|
219
|
+
}
|
|
220
|
+
.zkp-qr-logo svg {
|
|
221
|
+
width: 100%;
|
|
222
|
+
height: 100%;
|
|
223
|
+
display: block;
|
|
224
|
+
}
|
|
225
|
+
.zkp-skeleton {
|
|
226
|
+
position: absolute;
|
|
227
|
+
inset: 0;
|
|
228
|
+
border-radius: 8px;
|
|
229
|
+
background: var(--zkp-surface);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* QR slot state visibility */
|
|
233
|
+
.zkp-qr-slot[data-state="preparing"] .zkp-qr,
|
|
234
|
+
.zkp-qr-slot[data-state="preparing"] .zkp-qr-logo {
|
|
235
|
+
visibility: hidden;
|
|
236
|
+
}
|
|
237
|
+
.zkp-qr-slot[data-state="preparing"] .zkp-skeleton {
|
|
238
|
+
display: block;
|
|
239
|
+
}
|
|
240
|
+
.zkp-qr-slot:not([data-state="preparing"]) .zkp-skeleton {
|
|
241
|
+
display: none;
|
|
242
|
+
}
|
|
243
|
+
.zkp-qr-slot[data-state="connecting"] .zkp-qr,
|
|
244
|
+
.zkp-qr-slot[data-state="scanned"] .zkp-qr {
|
|
245
|
+
opacity: 0.65;
|
|
246
|
+
}
|
|
247
|
+
.zkp-qr-slot[data-state="generating"] .zkp-qr,
|
|
248
|
+
.zkp-qr-slot[data-state="success"] .zkp-qr,
|
|
249
|
+
.zkp-qr-slot[data-state="error"] .zkp-qr {
|
|
250
|
+
opacity: 0.35;
|
|
251
|
+
}
|
|
252
|
+
.zkp-qr-slot[data-state="generating"] .zkp-qr-logo,
|
|
253
|
+
.zkp-qr-slot[data-state="success"] .zkp-qr-logo,
|
|
254
|
+
.zkp-qr-slot[data-state="error"] .zkp-qr-logo {
|
|
255
|
+
opacity: 0;
|
|
256
|
+
}
|
|
257
|
+
.zkp-qr-slot[data-state="connecting"] .zkp-overlay,
|
|
258
|
+
.zkp-qr-slot[data-state="scanned"] .zkp-overlay,
|
|
259
|
+
.zkp-qr-slot[data-state="generating"] .zkp-overlay,
|
|
260
|
+
.zkp-qr-slot[data-state="success"] .zkp-overlay,
|
|
261
|
+
.zkp-qr-slot[data-state="error"] .zkp-overlay {
|
|
262
|
+
display: block;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* Overlay */
|
|
266
|
+
.zkp-overlay {
|
|
267
|
+
position: absolute;
|
|
268
|
+
inset: 0;
|
|
269
|
+
display: none;
|
|
270
|
+
text-align: center;
|
|
271
|
+
background: color-mix(in srgb, var(--zkp-bg) 80%, transparent);
|
|
272
|
+
}
|
|
273
|
+
.zkp-overlay-body {
|
|
274
|
+
position: absolute;
|
|
275
|
+
top: 50%;
|
|
276
|
+
left: 50%;
|
|
277
|
+
transform: translate(-50%, -50%);
|
|
278
|
+
display: grid;
|
|
279
|
+
place-items: center;
|
|
280
|
+
}
|
|
281
|
+
.zkp-overlay-caption {
|
|
282
|
+
position: absolute;
|
|
283
|
+
top: calc(50% + 40px);
|
|
284
|
+
left: 8%;
|
|
285
|
+
right: 8%;
|
|
286
|
+
text-align: center;
|
|
287
|
+
color: var(--zkp-fg);
|
|
288
|
+
font-size: 14px;
|
|
289
|
+
font-weight: 500;
|
|
290
|
+
line-height: 1.4;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* State icons */
|
|
294
|
+
.zkp-spinner {
|
|
295
|
+
width: 96px;
|
|
296
|
+
height: 96px;
|
|
297
|
+
color: var(--zkp-brand);
|
|
298
|
+
}
|
|
299
|
+
.zkp-spinner svg {
|
|
300
|
+
width: 100%;
|
|
301
|
+
height: 100%;
|
|
302
|
+
display: block;
|
|
303
|
+
}
|
|
304
|
+
.zkp-spinner-arc {
|
|
305
|
+
transform-origin: 50% 50%;
|
|
306
|
+
animation: zkp-spinner-rotate 1.4s linear infinite;
|
|
307
|
+
}
|
|
308
|
+
.zkp-scanned-phone {
|
|
309
|
+
width: 56px;
|
|
310
|
+
height: 56px;
|
|
311
|
+
border-radius: 50%;
|
|
312
|
+
background: #efefef;
|
|
313
|
+
color: var(--zkp-accent);
|
|
314
|
+
display: grid;
|
|
315
|
+
place-items: center;
|
|
316
|
+
animation: zkp-scanned-pulse 1.6s ease-in-out infinite;
|
|
317
|
+
}
|
|
318
|
+
.zkp-scanned-phone svg {
|
|
319
|
+
width: 28px;
|
|
320
|
+
height: 28px;
|
|
321
|
+
}
|
|
322
|
+
.zkp-check,
|
|
323
|
+
.zkp-error-icon {
|
|
324
|
+
width: 44px;
|
|
325
|
+
height: 44px;
|
|
326
|
+
border-radius: 50%;
|
|
327
|
+
color: #fff;
|
|
328
|
+
display: grid;
|
|
329
|
+
place-items: center;
|
|
330
|
+
animation: zkp-pop 220ms ease both;
|
|
331
|
+
}
|
|
332
|
+
.zkp-check {
|
|
333
|
+
background: var(--zkp-success);
|
|
334
|
+
}
|
|
335
|
+
.zkp-error-icon {
|
|
336
|
+
background: var(--zkp-error);
|
|
337
|
+
}
|
|
338
|
+
.zkp-check svg,
|
|
339
|
+
.zkp-error-icon svg {
|
|
340
|
+
width: 60%;
|
|
341
|
+
height: 60%;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/* Steps */
|
|
345
|
+
.zkp-steps {
|
|
346
|
+
display: flex;
|
|
347
|
+
flex-direction: column;
|
|
348
|
+
gap: 6px;
|
|
349
|
+
}
|
|
350
|
+
.zkp-step {
|
|
351
|
+
display: grid;
|
|
352
|
+
grid-template-columns: 28px 1fr;
|
|
353
|
+
column-gap: 10px;
|
|
354
|
+
align-items: center;
|
|
355
|
+
min-height: 28px;
|
|
356
|
+
transition: opacity 200ms ease;
|
|
357
|
+
}
|
|
358
|
+
.zkp-step-marker {
|
|
359
|
+
width: 20px;
|
|
360
|
+
height: 20px;
|
|
361
|
+
border-radius: 50%;
|
|
362
|
+
border: 2px solid var(--zkp-muted);
|
|
363
|
+
background: var(--zkp-surface);
|
|
364
|
+
color: transparent;
|
|
365
|
+
display: grid;
|
|
366
|
+
place-items: center;
|
|
367
|
+
justify-self: center;
|
|
368
|
+
align-self: center;
|
|
369
|
+
transition:
|
|
370
|
+
width 200ms ease,
|
|
371
|
+
height 200ms ease,
|
|
372
|
+
background 200ms ease,
|
|
373
|
+
border-color 200ms ease,
|
|
374
|
+
color 200ms ease;
|
|
375
|
+
}
|
|
376
|
+
.zkp-step-marker svg {
|
|
377
|
+
width: 12px;
|
|
378
|
+
height: 12px;
|
|
379
|
+
}
|
|
380
|
+
.zkp-step[data-status="done"] .zkp-step-marker {
|
|
381
|
+
background: var(--zkp-success);
|
|
382
|
+
border-color: var(--zkp-success);
|
|
383
|
+
color: #fff;
|
|
384
|
+
}
|
|
385
|
+
.zkp-step[data-status="current"] .zkp-step-marker {
|
|
386
|
+
border-color: var(--zkp-brand);
|
|
387
|
+
animation: zkp-step-pulse 1.4s ease-in-out infinite;
|
|
388
|
+
}
|
|
389
|
+
.zkp-step[data-mode="icon"] .zkp-step-marker {
|
|
390
|
+
width: 28px;
|
|
391
|
+
height: 28px;
|
|
392
|
+
border-radius: 7px;
|
|
393
|
+
border: 1px solid var(--zkp-border);
|
|
394
|
+
color: var(--zkp-fg);
|
|
395
|
+
animation: none;
|
|
396
|
+
}
|
|
397
|
+
.zkp-step[data-mode="icon"] .zkp-step-marker svg {
|
|
398
|
+
width: 14px;
|
|
399
|
+
height: 14px;
|
|
400
|
+
}
|
|
401
|
+
.zkp-step-text {
|
|
402
|
+
font-size: 13px;
|
|
403
|
+
color: var(--zkp-muted);
|
|
404
|
+
line-height: 1.4;
|
|
405
|
+
transition: color 200ms ease;
|
|
406
|
+
}
|
|
407
|
+
.zkp-step[data-status="current"] .zkp-step-text,
|
|
408
|
+
.zkp-step[data-status="pending"] .zkp-step-text {
|
|
409
|
+
color: var(--zkp-fg);
|
|
410
|
+
}
|
|
411
|
+
.zkp-step[data-status="current"] .zkp-step-text {
|
|
412
|
+
font-weight: 500;
|
|
413
|
+
}
|
|
414
|
+
.zkp-step-text a {
|
|
415
|
+
color: inherit;
|
|
416
|
+
text-decoration: underline;
|
|
417
|
+
font-weight: 600;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* Collapse */
|
|
421
|
+
.zkp-collapse {
|
|
422
|
+
display: flex;
|
|
423
|
+
flex-direction: column;
|
|
424
|
+
gap: 6px;
|
|
425
|
+
height: auto;
|
|
426
|
+
transition: height 320ms ease;
|
|
427
|
+
}
|
|
428
|
+
.zkp-collapse-out {
|
|
429
|
+
height: 0;
|
|
430
|
+
overflow: hidden;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/* Open-in-app deep link (mobile only, waiting state) */
|
|
434
|
+
.zkp-open-app {
|
|
435
|
+
display: none;
|
|
436
|
+
margin: 16px 0 0;
|
|
437
|
+
padding: 12px 16px;
|
|
438
|
+
border-radius: 10px;
|
|
439
|
+
background: var(--zkp-accent);
|
|
440
|
+
color: var(--zkp-bg);
|
|
441
|
+
font-size: 15px;
|
|
442
|
+
font-weight: 600;
|
|
443
|
+
text-align: center;
|
|
444
|
+
text-decoration: none;
|
|
445
|
+
box-shadow: 0 4px 12px rgba(17, 24, 39, 0.18);
|
|
446
|
+
transition: transform 150ms ease;
|
|
447
|
+
}
|
|
448
|
+
.zkp-open-app:active {
|
|
449
|
+
transform: translateY(1px);
|
|
450
|
+
}
|
|
451
|
+
@media (hover: none) and (pointer: coarse) {
|
|
452
|
+
.zkp-card[data-state="waiting"] .zkp-open-app {
|
|
453
|
+
display: block;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* Retry */
|
|
458
|
+
.zkp-result-actions {
|
|
459
|
+
display: flex;
|
|
460
|
+
align-items: center;
|
|
461
|
+
justify-content: center;
|
|
462
|
+
}
|
|
463
|
+
.zkp-result-actions:empty {
|
|
464
|
+
display: none;
|
|
465
|
+
}
|
|
466
|
+
.zkp-retry {
|
|
467
|
+
margin-top: 4px !important;
|
|
468
|
+
padding: 10px 20px !important;
|
|
469
|
+
border: none !important;
|
|
470
|
+
border-radius: 999px !important;
|
|
471
|
+
background: var(--zkp-accent) !important;
|
|
472
|
+
color: var(--zkp-bg) !important;
|
|
473
|
+
font-size: 14px !important;
|
|
474
|
+
font-weight: 600 !important;
|
|
475
|
+
line-height: 1.2 !important;
|
|
476
|
+
transition: transform 150ms ease;
|
|
477
|
+
}
|
|
478
|
+
.zkp-retry:active {
|
|
479
|
+
transform: translateY(1px);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/* Footer */
|
|
483
|
+
.zkp-footer {
|
|
484
|
+
display: flex;
|
|
485
|
+
align-items: center;
|
|
486
|
+
justify-content: space-between;
|
|
487
|
+
gap: 8px;
|
|
488
|
+
}
|
|
489
|
+
.zkp-footer-label {
|
|
490
|
+
font-size: 13px;
|
|
491
|
+
color: var(--zkp-muted);
|
|
492
|
+
}
|
|
493
|
+
.zkp-store-buttons {
|
|
494
|
+
display: flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
gap: 6px;
|
|
497
|
+
}
|
|
498
|
+
.zkp-store-button {
|
|
499
|
+
display: inline-flex;
|
|
500
|
+
text-decoration: none;
|
|
501
|
+
transition: transform 150ms ease;
|
|
502
|
+
}
|
|
503
|
+
.zkp-store-button:hover {
|
|
504
|
+
transform: translateY(-1px);
|
|
505
|
+
}
|
|
506
|
+
.zkp-store-button svg {
|
|
507
|
+
display: block;
|
|
508
|
+
height: 28px;
|
|
509
|
+
width: auto;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/* Keyframes */
|
|
513
|
+
@keyframes zkp-spinner-rotate {
|
|
514
|
+
to {
|
|
515
|
+
transform: rotate(360deg);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
@keyframes zkp-pop {
|
|
519
|
+
from {
|
|
520
|
+
transform: scale(0.6);
|
|
521
|
+
opacity: 0;
|
|
522
|
+
}
|
|
523
|
+
to {
|
|
524
|
+
transform: scale(1);
|
|
525
|
+
opacity: 1;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
@keyframes zkp-scanned-pulse {
|
|
529
|
+
0%,
|
|
530
|
+
100% {
|
|
531
|
+
transform: scale(1);
|
|
532
|
+
}
|
|
533
|
+
50% {
|
|
534
|
+
transform: scale(1.08);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
@keyframes zkp-step-pulse {
|
|
538
|
+
0%,
|
|
539
|
+
100% {
|
|
540
|
+
transform: scale(1);
|
|
541
|
+
}
|
|
542
|
+
50% {
|
|
543
|
+
transform: scale(1.08);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/* Reduced motion */
|
|
548
|
+
@media (prefers-reduced-motion: reduce) {
|
|
549
|
+
.zkp-qr {
|
|
550
|
+
transition: none;
|
|
551
|
+
}
|
|
552
|
+
.zkp-spinner-arc {
|
|
553
|
+
animation-duration: 3.5s;
|
|
554
|
+
}
|
|
555
|
+
.zkp-scanned-phone,
|
|
556
|
+
.zkp-check,
|
|
557
|
+
.zkp-error-icon {
|
|
558
|
+
animation: none;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
`;function le(e){let[t,r]=D("preparing"),[a,s]=D(null),[n,l]=D(null),[p,u]=D(0),i=h1(e);i.current=e;let f=h1(null);f.current===null&&(f.current=new sdk.ZKPassport(e.domain)),r1(()=>{let _=false,d=false;r("preparing"),s(null),l(null);let{domain:g,theme:C,query:z,onReady:m,onRetryClicked:h,onBridgeConnect:M,onRequestReceived:N,onGeneratingProof:A,onProofGenerated:n1,onResult:E,onReject:U,onError:b,...R}=i.current,z1=()=>{d||(d=true,S(i.current.onReady));},H=o1=>(...x)=>{if(!_)try{o1(...x);}catch{r("error");}};return f.current.request(R).then(o1=>{if(_)return;let x;try{x=z(o1);}catch{r("error");return}x.onBridgeConnect(H(()=>{r(w=>w==="preparing"||w==="connecting"?"waiting":w),z1(),S(i.current.onBridgeConnect);})),x.onRequestReceived(H(()=>{r("scanned"),S(i.current.onRequestReceived);})),x.onGeneratingProof(H(()=>{r("generating"),S(i.current.onGeneratingProof);})),x.onProofGenerated(H(w=>{S(i.current.onProofGenerated,w);})),x.onResult(H(w=>{r(w.verified?"success":"error"),S(i.current.onResult,w);})),x.onReject(H(()=>{r("error"),S(i.current.onReject);})),x.onError(H(w=>{r("error"),S(i.current.onError,w);}));try{x.requestReceived()?r("scanned"):x.isBridgeConnected()?(r("waiting"),z1()):r("connecting");}catch{r("error");}s(x.url);try{l(we(x.url));}catch{r("error");}}).catch(()=>{_||r("error");}),()=>{_=true;}},[p]);let o=$1(()=>{S(i.current.onRetryClicked),u(_=>_+1);},[]);return {state:t,url:a,qrSvg:n,retry:o}}function we(e){let t=Ce__default.default.create(e,{errorCorrectionLevel:"H"}),r=t.modules.size,a=t.modules.data,s=100/r,n=o=>o.toFixed(3),l=[[0,0],[0,r-7],[r-7,0]],p=(o,_)=>l.some(([d,g])=>o>=d&&o<d+7&&_>=g&&_<g+7),u="",i=s*.42;for(let o=0;o<r;o++)for(let _=0;_<r;_++){if(!a[o*r+_]||p(o,_))continue;let d=(_+.5)*s,g=(o+.5)*s;u+=`<circle cx="${n(d)}" cy="${n(g)}" r="${n(i)}"/>`;}let f="";for(let[o,_]of l){let d=(_+3.5)*s,g=(o+3.5)*s;f+=`<circle cx="${n(d)}" cy="${n(g)}" r="${n(s*3)}" fill="none" stroke="currentColor" stroke-width="${n(s)}"/><circle cx="${n(d)}" cy="${n(g)}" r="${n(s*1.5)}"/>`;}return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" shape-rendering="geometricPrecision" fill="currentColor">${f}${u}</svg>`}function S(e,...t){if(e)try{e(...t);}catch{}}var Me=0;function c(e,t,r,a,s,n){t||(t={});var l,p,u=t;if("ref"in u)for(p in u={},t)p=="ref"?l=t[p]:u[p]=t[p];var i={type:e,props:u,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Me,__i:-1,__u:0,__source:s,__self:n};if(typeof e=="function"&&(l=e.defaultProps))for(p in l)u[p]===void 0&&(u[p]=l[p]);return v.vnode&&v.vnode(i),i}function y1({options:e,controlRef:t}){G1(Ne,[]);let{state:r,url:a,qrSvg:s,retry:n}=le(e);r1(()=>{if(t)return t.current={retry:n},()=>{t.current=null;}},[n,t]);let l=e.name??e.domain??"",p=e.logo??"",u=r==="scanned"||r==="generating"||r==="success"||r==="error",i=Le(r),f=Ze(r),o=r==="waiting"||r==="scanned";return c("div",{className:"zkp-card","data-state":r,"data-theme":e.theme??"auto",children:[o?c("button",{type:"button",className:"zkp-restart","aria-label":"Restart verification",title:"Restart verification",onClick:n,dangerouslySetInnerHTML:{__html:oe}}):null,c("div",{className:"zkp-header",children:[c("div",{className:"zkp-header-icons",children:[c("div",{className:"zkp-zkp-icon",dangerouslySetInnerHTML:{__html:m1}}),p?c(L,{children:[c("div",{className:"zkp-header-dots",children:[c("span",{}),c("span",{}),c("span",{})]}),c("div",{className:"zkp-app-icon-slot",children:c("img",{className:"zkp-app-icon",src:p,alt:l?`${l} icon`:""})})]}):null]}),c("p",{className:"zkp-title",children:[c("strong",{children:l||"This app"})," uses ",c("strong",{children:"ZKPassport"})," to verify identity without compromising your privacy."]})]}),c("div",{className:"zkp-divider zkp-divider-header"}),c(Se,{state:r,qrSvg:s,caption:f}),r==="waiting"&&a?c("a",{className:"zkp-open-app",href:a,children:"Open in ZKPassport App"}):null,c("div",{className:"zkp-divider zkp-divider-top"}),c("div",{className:"zkp-steps",children:[c(V,{status:i[0],icon:u?null:te,children:[c("a",{href:Q1,target:"_blank",rel:"noopener noreferrer",children:"Download"})," the ZKPassport mobile app."]}),c(V,{status:i[1],icon:u?null:X1,children:"Scan this QR code with the ZKPassport app."}),c(V,{status:i[2],icon:u?null:ee,children:"Approve the request on your phone."}),c("div",{className:`zkp-collapse${u?"":" zkp-collapse-out"}`,children:c(L,{children:[c(V,{status:i[3],icon:null,children:"Generate proof on your device."}),c(V,{status:i[4],icon:null,children:"Verify the proof."})]})})]}),c("div",{className:`zkp-collapse${u?" zkp-collapse-out":""}`,children:c("div",{className:"zkp-collapse-inner",children:[c("div",{className:"zkp-divider zkp-divider-bottom"}),c("div",{className:"zkp-footer",children:[c("span",{className:"zkp-footer-label",children:"ZKPassport App"}),c("div",{className:"zkp-store-buttons",children:[c(pe,{href:W1,badge:ae}),c(pe,{href:Y1,badge:se})]})]})]})}),r==="error"?c("div",{className:"zkp-result-actions",children:c("button",{type:"button",className:"zkp-retry",onClick:n,children:"Try again"})}):null]})}function Ze(e){switch(e){case "scanned":return "Approve the request on your phone";case "generating":return "Generating proof\u2026";case "success":return "Verification complete";case "error":return "Something went wrong";default:return ""}}function Le(e){switch(e){case "scanned":return ["done","done","current","pending","pending"];case "generating":return ["done","done","done","current","pending"];case "success":return ["done","done","done","done","done"];default:return ["pending","pending","pending","pending","pending"]}}function Se({state:e,qrSvg:t,caption:r}){return c("div",{className:"zkp-qr-slot","data-state":e,children:[c("div",{className:"zkp-skeleton"}),c("div",{className:"zkp-qr",dangerouslySetInnerHTML:t?{__html:t}:void 0}),t?c("div",{className:"zkp-qr-logo",dangerouslySetInnerHTML:{__html:m1}}):null,c("div",{className:"zkp-overlay",children:[c("div",{className:"zkp-overlay-body",children:[e==="connecting"||e==="generating"?c("div",{className:"zkp-spinner",dangerouslySetInnerHTML:{__html:J1}}):null,e==="scanned"?c("div",{className:"zkp-scanned-phone",dangerouslySetInnerHTML:{__html:ne}}):null,e==="success"?c("div",{className:"zkp-check",dangerouslySetInnerHTML:{__html:g1}}):null,e==="error"?c("div",{className:"zkp-error-icon",dangerouslySetInnerHTML:{__html:re}}):null]}),r?c("div",{className:"zkp-overlay-caption",children:r},e):null]})]})}function V({status:e,icon:t,children:r}){return c("div",{className:"zkp-step","data-status":e,"data-mode":t?"icon":"progress",children:[c("div",{className:"zkp-step-marker",dangerouslySetInnerHTML:{__html:t??g1}}),c("div",{className:"zkp-step-text",children:r})]})}function pe({href:e,badge:t}){return c("a",{className:"zkp-store-button",href:e,target:"_blank",rel:"noopener noreferrer","aria-label":t.ariaLabel,dangerouslySetInnerHTML:{__html:t.svg}})}var ce="data-zkpassport-ui",k1=false;function Ne(){if(k1||typeof document>"u")return;if(document.querySelector(`style[${ce}]`)){k1=true;return}let e=document.createElement("style");e.setAttribute(ce,""),e.textContent=ie,document.head.appendChild(e),k1=true;}function Ye(e,t){if(typeof document>"u"||typeof window>"u")throw new Error("@zkpassport/ui: mount() requires a browser environment.");if(!(e instanceof HTMLElement))throw new Error("@zkpassport/ui: mount() requires an HTMLElement as the first argument.");let r=document.createElement("div");e.appendChild(r);let a={current:null},s=t;return X(J(y1,{options:s,controlRef:a}),r),{update(n){s=n,X(J(y1,{options:s,controlRef:a}),r);},retry(){a.current?.retry();},unmount(){X(null,r),r.parentNode&&r.parentNode.removeChild(r);}}}
|
|
563
|
+
exports.mount=Ye;//# sourceMappingURL=index.cjs.map
|
|
564
|
+
//# sourceMappingURL=index.cjs.map
|