bringid-sdk 0.0.19-rc.1 → 0.0.19-rc.10
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/dist/api/get-score/index.d.ts +7 -0
- package/dist/api/get-score/index.d.ts.map +1 -0
- package/dist/api/index.d.ts +6 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/components/dialog/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/spinner/index.d.ts +5 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/styled-components.d.ts +5 -0
- package/dist/components/spinner/styled-components.d.ts.map +1 -0
- package/dist/components/spinner/types.d.ts +7 -0
- package/dist/components/spinner/types.d.ts.map +1 -0
- package/dist/hooks/use-message-proxy.d.ts.map +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/{verifications-dialog → bring-id-modal}/component-types.d.ts +2 -2
- package/dist/modules/bring-id-modal/component-types.d.ts.map +1 -0
- package/dist/modules/{verifications-dialog → bring-id-modal}/events/event-bus.d.ts +1 -0
- package/dist/modules/bring-id-modal/events/event-bus.d.ts.map +1 -0
- package/dist/modules/bring-id-modal/index.d.ts +5 -0
- package/dist/modules/bring-id-modal/index.d.ts.map +1 -0
- package/dist/modules/{verifications-dialog → bring-id-modal}/styled-components.d.ts +1 -0
- package/dist/modules/bring-id-modal/styled-components.d.ts.map +1 -0
- package/dist/modules/{bring-id-requests-sdk → bring-id-sdk}/index.d.ts +4 -4
- package/dist/modules/bring-id-sdk/index.d.ts.map +1 -0
- package/dist/modules/bring-id-sdk/types/check-extension-status/index.d.ts.map +1 -0
- package/dist/modules/bring-id-sdk/types/index.d.ts +5 -0
- package/dist/modules/bring-id-sdk/types/index.d.ts.map +1 -0
- package/dist/modules/{bring-id-requests-sdk → bring-id-sdk}/types/request-proofs/index.d.ts +1 -2
- package/dist/modules/bring-id-sdk/types/request-proofs/index.d.ts.map +1 -0
- package/dist/modules/bring-id-sdk/types/request-score/index.d.ts +5 -0
- package/dist/modules/bring-id-sdk/types/request-score/index.d.ts.map +1 -0
- package/dist/themes/light.d.ts +1 -0
- package/dist/themes/light.d.ts.map +1 -1
- package/dist/types/request-type.d.ts +1 -1
- package/dist/types/request-type.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/modules/bring-id-extension-sdk/index.d.ts +0 -7
- package/dist/modules/bring-id-extension-sdk/index.d.ts.map +0 -1
- package/dist/modules/bring-id-extension-sdk/types/index.d.ts +0 -9
- package/dist/modules/bring-id-extension-sdk/types/index.d.ts.map +0 -1
- package/dist/modules/bring-id-extension-sdk/types/is-extension-installed/index.d.ts +0 -3
- package/dist/modules/bring-id-extension-sdk/types/is-extension-installed/index.d.ts.map +0 -1
- package/dist/modules/bring-id-extension-sdk/types/request-proofs/index.d.ts +0 -12
- package/dist/modules/bring-id-extension-sdk/types/request-proofs/index.d.ts.map +0 -1
- package/dist/modules/bring-id-requests-sdk/index.d.ts.map +0 -1
- package/dist/modules/bring-id-requests-sdk/types/check-extension-status/index.d.ts.map +0 -1
- package/dist/modules/bring-id-requests-sdk/types/index.d.ts +0 -4
- package/dist/modules/bring-id-requests-sdk/types/index.d.ts.map +0 -1
- package/dist/modules/bring-id-requests-sdk/types/request-proofs/index.d.ts.map +0 -1
- package/dist/modules/verifications-dialog/component-types.d.ts.map +0 -1
- package/dist/modules/verifications-dialog/events/event-bus.d.ts.map +0 -1
- package/dist/modules/verifications-dialog/index.d.ts +0 -5
- package/dist/modules/verifications-dialog/index.d.ts.map +0 -1
- package/dist/modules/verifications-dialog/styled-components.d.ts.map +0 -1
- /package/dist/modules/{bring-id-requests-sdk → bring-id-sdk}/types/check-extension-status/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/get-score/index.tsx"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAAG,OAAO,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC,CAAA;AAEF,KAAK,SAAS,GAAG,CACf,OAAO,EAAE,MAAM,KACZ,OAAO,CAAC,iBAAiB,CAAC,CAAA;AAE/B,YAAY,EACV,iBAAiB,EACjB,SAAS,EACV,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAEV,MAAM,aAAa,CAAA;AAcpB,QAAA,MAAM,GAAG;;CAER,CAAA;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/index.tsx"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACH,MAAM,OAAO,CAAA;AAKd,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,MAAM,CAc/B,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,WAAW,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,OAAO,EACL,MAAM,EACN,WAAW,EACX,OAAO,EACR,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,MAAM,MAAM,SAAS,CAAC;AAE7B,QAAA,MAAM,OAAO,EAAE,EAAE,CAAC,MAAM,CAEvB,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TSpinnerSize } from './types';
|
|
2
|
+
export declare const SpinnerContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
3
|
+
size?: TSpinnerSize;
|
|
4
|
+
}>> & string;
|
|
5
|
+
//# sourceMappingURL=styled-components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled-components.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/styled-components.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAWtC,eAAO,MAAM,gBAAgB;WACpB,YAAY;YAiBpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/types.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;AAE/C,KAAK,MAAM,GAAG;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-message-proxy.d.ts","sourceRoot":"","sources":["../../src/hooks/use-message-proxy.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE7D,iBAAS,eAAe,CACtB,SAAS,KAAA,EACT,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EACtC,uBAAuB,EAAE,CAAC,CACxB,MAAM,EAAE,eAAe,EAAE,EACzB,MAAM,EAAE,MAAM,KACX,IAAI,CAAC,GAAG,IAAI,EACjB,iBAAiB,CAAC,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"use-message-proxy.d.ts","sourceRoot":"","sources":["../../src/hooks/use-message-proxy.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE7D,iBAAS,eAAe,CACtB,SAAS,KAAA,EACT,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EACtC,uBAAuB,EAAE,CAAC,CACxB,MAAM,EAAE,eAAe,EAAE,EACzB,MAAM,EAAE,MAAM,KACX,IAAI,CAAC,GAAG,IAAI,EACjB,iBAAiB,CAAC,EAAE,kBAAkB,QA8DvC;AAED,eAAe,eAAe,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import BringIDRequestsSDK from './modules/bring-id-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { openModal } from './modules/verifications-dialog/events/event-bus';
|
|
5
|
-
export { BringIDRequestsSDK, BringIDExtensionSDK, VerificationsDialog, openModal };
|
|
1
|
+
import BringIDRequestsSDK from './modules/bring-id-sdk';
|
|
2
|
+
import BringIDModal from './modules/bring-id-modal';
|
|
3
|
+
export { BringIDRequestsSDK, BringIDModal };
|
|
6
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,wBAAwB,CAAA;AACvD,OAAO,YAAY,MAAM,0BAA0B,CAAA;AAEnD,OAAO,EACL,kBAAkB,EAClB,YAAY,EACb,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.BringSDK=t(require("react")):e.BringSDK=t(e.react)}(this,(function(e){return function(){var t={568:function(e,t){"use strict";var r=Symbol.for("react.transitional.element");function n(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var s in n={},t)"key"!==s&&(n[s]=t[s]);else n=t;return t=n.ref,{$$typeof:r,type:e,key:o,ref:void 0!==t?t:null,props:n}}Symbol.for("react.fragment"),t.jsx=n,t.jsxs=n},74:function(e,t,r){"use strict";e.exports=r(568)},863:function(e){e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),i=Object.keys(t);if(s.length!==i.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),c=0;c<s.length;c++){var u=s[c];if(!a(u))return!1;var l=e[u],d=t[u];if(!1===(o=r?r.call(n,l,d,u):void 0)||void 0===o&&l!==d)return!1}return!0}},155:function(t){"use strict";t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var s=r[e]={exports:{}};return t[e](s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};return function(){"use strict";n.r(o),n.d(o,{BringIDExtensionSDK:function(){return u},BringIDRequestsSDK:function(){return c},VerificationsDialog:function(){return xr},openModal:function(){return Sr}});var e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let t;const r=new Uint8Array(16),s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function i(e,n,o){var i,a,c,u;const l=null!==(i=null!==(a=(e=e||{}).random)&&void 0!==a?a:null===(c=(u=e).rng)||void 0===c?void 0:c.call(u))&&void 0!==i?i:function(){if(!t){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");t=crypto.getRandomValues.bind(crypto)}return t(r)}();if(l.length<16)throw new Error("Random bytes length must be >= 16");if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,n){if((o=o||0)<0||o+16>n.length)throw new RangeError("UUID byte range ".concat(o,":").concat(o+15," is out of buffer bounds"));for(let e=0;e<16;++e)n[o+e]=l[e];return n}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(l)}var a=()=>{return!e.randomUUID||r||t?i(t,r,n):e.randomUUID();var t,r,n},c=class{constructor(){this.dialogWindowOrigin=window.location.origin,this.connectDialogReady=!1,this.pendingRequests=new Map,this.handleMessage=e=>{if(console.log("handleMessage: ",{event:e,dialogWindowOrigin:this.dialogWindowOrigin}),e.origin!==this.dialogWindowOrigin)return;const t=e.data;if(!t.requestId)return;const r=this.pendingRequests.get(t.requestId);console.log("handleMessage: ",{pending:r}),r&&(console.log({data:t,pending:r}),r.requestType!==t.type&&(this.pendingRequests.delete(t.requestId),t.error?r.reject(t.error):r.resolve(t.payload)))},this.checkExtensionStatus=async()=>this.request("CHECK_EXTENSION_STATUS_REQUEST"),this.requestProofs=async e=>this.request("PROOFS_REQUEST",e),window.addEventListener("message",this.handleMessage)}markDialogReady(){this.connectDialogReady=!0}sendMessageToDialog(e){if(!this.connectDialogReady)throw new Error("ConnectDialog is not mounted.");console.log("sendMessageToDialog: ",{msg:e,dialogWindowOrigin:this.dialogWindowOrigin}),window.postMessage(e,this.dialogWindowOrigin)}request(e,t){return new Promise(((r,n)=>{const o=a();this.pendingRequests.set(o,{resolve:r,reject:n,requestType:e}),this.sendMessageToDialog({type:e,requestId:o,payload:t})}))}},u=class{constructor(){this.isExtensionInstalled=()=>new Promise(((e,t)=>{setTimeout((()=>{console.log("SDK::",{window:window});const t=window.bringID;e(Boolean(t))}),1500)})),this.requestProofs=async e=>{let{drop:t,address:r,pointsRequired:n}=e;try{return window.postMessage({type:"PING"}),window.postMessage({type:"REQUEST_PROOFS",host:window.location.host,dropAddress:t,pointsRequired:n,address:r},"*"),new Promise(((e,t)=>{const r=t=>{switch(t.data.type){case"RECEIVE_PROOFS":e({proofs:t.data.data.proofs,points:t.data.data.points}),window.removeEventListener("message",r);break;case"PROOFS_REJECTED":e({proofs:null,points:0})}};window.addEventListener("message",r)}))}catch(e){return console.log({error:e}),{proofs:null,points:0}}}}},l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function d(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var p=n(155),f=n.n(p),h=n(863),g=n.n(h),m="-ms-",v="-moz-",y="-webkit-",b="comm",w="rule",S="decl",C="@keyframes",x=Math.abs,E=String.fromCharCode,I=Object.assign;function k(e){return e.trim()}function O(e,t){return(e=t.exec(e))?e[0]:e}function R(e,t,r){return e.replace(t,r)}function P(e,t,r){return e.indexOf(t,r)}function A(e,t){return 0|e.charCodeAt(t)}function j(e,t,r){return e.slice(t,r)}function _(e){return e.length}function D(e){return e.length}function N(e,t){return t.push(e),e}function B(e,t){return e.filter((function(e){return!O(e,t)}))}var T=1,$=1,M=0,F=0,L=0,z="";function q(e,t,r,n,o,s,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:T,column:$,length:i,return:"",siblings:a}}function U(e,t){return I(q("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function G(e){for(;e.root;)e=U(e.root,{children:[e]});N(e,e.siblings)}function W(){return L=F>0?A(z,--F):0,$--,10===L&&($=1,T--),L}function Y(){return L=F<M?A(z,F++):0,$++,10===L&&($=1,T++),L}function K(){return A(z,F)}function V(){return F}function H(e,t){return j(z,e,t)}function Q(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Z(e){return k(H(F-1,ee(91===e?e+2:40===e?e+1:e)))}function J(e){for(;(L=K())&&L<33;)Y();return Q(e)>2||Q(L)>3?"":" "}function X(e,t){for(;--t&&Y()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return H(e,V()+(t<6&&32==K()&&32==Y()))}function ee(e){for(;Y();)switch(L){case e:return F;case 34:case 39:34!==e&&39!==e&&ee(L);break;case 40:41===e&&ee(e);break;case 92:Y()}return F}function te(e,t){for(;Y()&&e+L!==57&&(e+L!==84||47!==K()););return"/*"+H(t,F-1)+"*"+E(47===e?e:Y())}function re(e){for(;!Q(K());)Y();return H(e,F)}function ne(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function oe(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case S:return e.return=e.return||e.value;case b:return"";case C:return e.return=e.value+"{"+ne(e.children,n)+"}";case w:if(!_(e.value=e.props.join(",")))return""}return _(r=ne(e.children,n))?e.return=e.value+"{"+r+"}":""}function se(e,t,r){switch(function(e,t){return 45^A(e,0)?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}(e,t)){case 5103:return y+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return y+e+e;case 4789:return v+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return y+e+v+e+m+e+e;case 5936:switch(A(e,t+11)){case 114:return y+e+m+R(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return y+e+m+R(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return y+e+m+R(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return y+e+m+e+e;case 6165:return y+e+m+"flex-"+e+e;case 5187:return y+e+R(e,/(\w+).+(:[^]+)/,y+"box-$1$2"+m+"flex-$1$2")+e;case 5443:return y+e+m+"flex-item-"+R(e,/flex-|-self/g,"")+(O(e,/flex-|baseline/)?"":m+"grid-row-"+R(e,/flex-|-self/g,""))+e;case 4675:return y+e+m+"flex-line-pack"+R(e,/align-content|flex-|-self/g,"")+e;case 5548:return y+e+m+R(e,"shrink","negative")+e;case 5292:return y+e+m+R(e,"basis","preferred-size")+e;case 6060:return y+"box-"+R(e,"-grow","")+y+e+m+R(e,"grow","positive")+e;case 4554:return y+R(e,/([^-])(transform)/g,"$1"+y+"$2")+e;case 6187:return R(R(R(e,/(zoom-|grab)/,y+"$1"),/(image-set)/,y+"$1"),e,"")+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,y+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,y+"box-pack:$3"+m+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+y+e+e;case 4200:if(!O(e,/flex-|baseline/))return m+"grid-column-align"+j(e,t)+e;break;case 2592:case 3360:return m+R(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,O(e.props,/grid-\w+-end/)}))?~P(e+(r=r[t].value),"span",0)?e:m+R(e,"-start","")+e+m+"grid-row-span:"+(~P(r,"span",0)?O(r,/\d+/):+O(r,/\d+/)-+O(e,/\d+/))+";":m+R(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return O(e.props,/grid-\w+-start/)}))?e:m+R(R(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,y+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_(e)-1-t>6)switch(A(e,t+1)){case 109:if(45!==A(e,t+4))break;case 102:return R(e,/(.+:)(.+)-([^]+)/,"$1"+y+"$2-$3$1"+v+(108==A(e,t+3)?"$3":"$2-$3"))+e;case 115:return~P(e,"stretch",0)?se(R(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return R(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,s,i,a){return m+r+":"+n+a+(o?m+r+"-span:"+(s?i:+i-+n)+a:"")+e}));case 4949:if(121===A(e,t+6))return R(e,":",":"+y)+e;break;case 6444:switch(A(e,45===A(e,14)?18:11)){case 120:return R(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+y+(45===A(e,14)?"inline-":"")+"box$3$1"+y+"$2$3$1"+m+"$2box$3")+e;case 100:return R(e,":",":"+m)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return R(e,"scroll-","scroll-snap-")+e}return e}function ie(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case S:return void(e.return=se(e.value,e.length,r));case C:return ne([U(e,{value:R(e.value,"@","@"+y)})],n);case w:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(O(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":G(U(e,{props:[R(t,/:(read-\w+)/,":-moz-$1")]})),G(U(e,{props:[t]})),I(e,{props:B(r,n)});break;case"::placeholder":G(U(e,{props:[R(t,/:(plac\w+)/,":"+y+"input-$1")]})),G(U(e,{props:[R(t,/:(plac\w+)/,":-moz-$1")]})),G(U(e,{props:[R(t,/:(plac\w+)/,m+"input-$1")]})),G(U(e,{props:[t]})),I(e,{props:B(r,n)})}return""}))}}function ae(e){return function(e){return z="",e}(ce("",null,null,null,[""],e=function(e){return T=$=1,M=_(z=e),F=0,[]}(e),0,[0],e))}function ce(e,t,r,n,o,s,i,a,c){for(var u=0,l=0,d=i,p=0,f=0,h=0,g=1,m=1,v=1,y=0,b="",w=o,S=s,C=n,I=b;m;)switch(h=y,y=Y()){case 40:if(108!=h&&58==A(I,d-1)){-1!=P(I+=R(Z(y),"&","&\f"),"&\f",x(u?a[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:I+=Z(y);break;case 9:case 10:case 13:case 32:I+=J(h);break;case 92:I+=X(V()-1,7);continue;case 47:switch(K()){case 42:case 47:N(le(te(Y(),V()),t,r,c),c);break;default:I+="/"}break;case 123*g:a[u++]=_(I)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+l:-1==v&&(I=R(I,/\f/g,"")),f>0&&_(I)-d&&N(f>32?de(I+";",n,r,d-1,c):de(R(I," ","")+";",n,r,d-2,c),c);break;case 59:I+=";";default:if(N(C=ue(I,t,r,u,l,o,a,b,w=[],S=[],d,s),s),123===y)if(0===l)ce(I,t,C,C,w,s,d,a,S);else switch(99===p&&110===A(I,3)?100:p){case 100:case 108:case 109:case 115:ce(e,C,C,n&&N(ue(e,C,C,0,0,o,a,b,o,w=[],d,S),S),o,S,d,a,n?w:S);break;default:ce(I,C,C,C,[""],S,0,a,S)}}u=l=f=0,g=v=1,b=I="",d=i;break;case 58:d=1+_(I),f=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==W())continue;switch(I+=E(y),y*g){case 38:v=l>0?1:(I+="\f",-1);break;case 44:a[u++]=(_(I)-1)*v,v=1;break;case 64:45===K()&&(I+=Z(Y())),p=K(),l=d=_(b=I+=re(V())),y++;break;case 45:45===h&&2==_(I)&&(g=0)}}return s}function ue(e,t,r,n,o,s,i,a,c,u,l,d){for(var p=o-1,f=0===o?s:[""],h=D(f),g=0,m=0,v=0;g<n;++g)for(var y=0,b=j(e,p+1,p=x(m=i[g])),S=e;y<h;++y)(S=k(m>0?f[y]+" "+b:R(b,/&\f/g,f[y])))&&(c[v++]=S);return q(e,t,r,0===o?w:a,c,u,l,d)}function le(e,t,r,n){return q(e,t,r,b,E(L),j(e,2,-2),0,n)}function de(e,t,r,n,o){return q(e,t,r,S,j(e,0,n),j(e,n+1,-1),n,o)}var pe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fe="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",he="active",ge="data-styled-version",me="6.1.19",ve="/*!sc*/\n",ye="undefined"!=typeof window&&"undefined"!=typeof document,be=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),we=(new Set,Object.freeze([])),Se=Object.freeze({});var Ce=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ee=/(^-|-$)/g;function Ie(e){return e.replace(xe,"-").replace(Ee,"")}var ke=/(a)(d)/gi,Oe=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Oe(t%52)+r;return(Oe(t%52)+r).replace(ke,"$1-$2")}var Pe,Ae=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},je=function(e){return Ae(5381,e)};function _e(e){return"string"==typeof e&&!0}var De="function"==typeof Symbol&&Symbol.for,Ne=De?Symbol.for("react.memo"):60115,Be=De?Symbol.for("react.forward_ref"):60112,Te={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Me={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fe=((Pe={})[Be]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pe[Ne]=Me,Pe);function Le(e){return("type"in(t=e)&&t.type.$$typeof)===Ne?Me:"$$typeof"in e?Fe[e.$$typeof]:Te;var t}var ze=Object.defineProperty,qe=Object.getOwnPropertyNames,Ue=Object.getOwnPropertySymbols,Ge=Object.getOwnPropertyDescriptor,We=Object.getPrototypeOf,Ye=Object.prototype;function Ke(e,t,r){if("string"!=typeof t){if(Ye){var n=We(t);n&&n!==Ye&&Ke(e,n,r)}var o=qe(t);Ue&&(o=o.concat(Ue(t)));for(var s=Le(e),i=Le(t),a=0;a<o.length;++a){var c=o[a];if(!(c in $e||r&&r[c]||i&&c in i||s&&c in s)){var u=Ge(t,c);try{ze(e,c,u)}catch(e){}}}}return e}function Ve(e){return"function"==typeof e}function He(e){return"object"==typeof e&&"styledComponentId"in e}function Qe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ze(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function Je(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Xe(e,t,r){if(void 0===r&&(r=!1),!r&&!Je(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Xe(e[n],t[n]);else if(Je(t))for(var n in t)e[n]=Xe(e[n],t[n]);return e}function et(e,t){Object.defineProperty(e,"toString",{value:t})}function tt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var rt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw tt(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=n;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,s=n;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(ve);return t},e}(),nt=new Map,ot=new Map,st=1,it=function(e){if(nt.has(e))return nt.get(e);for(;ot.has(st);)st++;var t=st++;return nt.set(e,t),ot.set(t,e),t},at=function(e,t){st=t+1,nt.set(e,t),ot.set(t,e)},ct="style[".concat(fe,"][").concat(ge,'="').concat(me,'"]'),ut=new RegExp("^".concat(fe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),lt=function(e,t,r){for(var n,o=r.split(","),s=0,i=o.length;s<i;s++)(n=o[s])&&e.registerName(t,n)},dt=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(ve),o=[],s=0,i=n.length;s<i;s++){var a=n[s].trim();if(a){var c=a.match(ut);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(at(l,u),lt(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},pt=function(e){for(var t=document.querySelectorAll(ct),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(fe)!==he&&(dt(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function ft(){return n.nc}var ht=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(fe,"]")));return t[t.length-1]}(r),s=void 0!==o?o.nextSibling:null;n.setAttribute(fe,he),n.setAttribute(ge,me);var i=ft();return i&&n.setAttribute("nonce",i),r.insertBefore(n,s),n},gt=function(){function e(e){this.element=ht(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw tt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),mt=function(){function e(e){this.element=ht(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),vt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),yt=ye,bt={isServer:!ye,useCSSOMInjection:!be},wt=function(){function e(e,t,r){void 0===e&&(e=Se),void 0===t&&(t={});var n=this;this.options=l(l({},bt),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ye&&yt&&(yt=!1,pt(this)),et(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return ot.get(e)}(r);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(r);if(void 0===s||!s.size||0===i.length)return"continue";var a="".concat(fe,".g").concat(r,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach((function(e){e.length>0&&(c+="".concat(e,","))})),n+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(ve)},s=0;s<r;s++)o(s);return n}(n)}))}return e.registerId=function(e){return it(e)},e.prototype.rehydrate=function(){!this.server&&ye&&pt(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(l(l({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new vt(r):t?new gt(r):new mt(r)}(this.options),new rt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(it(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(it(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(it(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),St=/&/g,Ct=/^\s*\/\/.*$/gm;function xt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=xt(e.children,t)),e}))}function Et(e){var t,r,n,o=void 0===e?Se:e,s=o.options,i=void 0===s?Se:s,a=o.plugins,c=void 0===a?we:a,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},l=c.slice();l.push((function(e){e.type===w&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(St,r).replace(n,u))})),i.prefix&&l.push(ie),l.push(oe);var d=function(e,o,s,a){void 0===o&&(o=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var c=e.replace(Ct,""),u=ae(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);i.namespace&&(u=xt(u,i.namespace));var d,p,f,h=[];return ne(u,(d=l.concat((f=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&f(e)})),p=D(d),function(e,t,r,n){for(var o="",s=0;s<p;s++)o+=d[s](e,t,r,n)||"";return o})),h};return d.hash=c.length?c.reduce((function(e,t){return t.name||tt(15),Ae(e,t.name)}),5381).toString():"",d}var It=new wt,kt=Et(),Ot=f().createContext({shouldForwardProp:void 0,styleSheet:It,stylis:kt}),Rt=(Ot.Consumer,f().createContext(void 0));function Pt(){return(0,p.useContext)(Ot)}function At(e){var t=(0,p.useState)(e.stylisPlugins),r=t[0],n=t[1],o=Pt().styleSheet,s=(0,p.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),i=(0,p.useMemo)((function(){return Et({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);(0,p.useEffect)((function(){g()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var a=(0,p.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:i}}),[e.shouldForwardProp,s,i]);return f().createElement(Ot.Provider,{value:a},f().createElement(Rt.Provider,{value:i},e.children))}var jt=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=kt);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,et(this,(function(){throw tt(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=kt),this.name+e.hash},e}(),_t=function(e){return e>="A"&&e<="Z"};function Dt(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;_t(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Nt=function(e){return null==e||!1===e||""===e},Bt=function(e){var t,r,n=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!Nt(s)&&(Array.isArray(s)&&s.isCss||Ve(s)?n.push("".concat(Dt(o),":"),s,";"):Je(s)?n.push.apply(n,d(d(["".concat(o," {")],Bt(s),!1),["}"],!1)):n.push("".concat(Dt(o),": ").concat((t=o,null==(r=s)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in pe||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Tt(e,t,r,n){return Nt(e)?[]:He(e)?[".".concat(e.styledComponentId)]:Ve(e)?!Ve(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Tt(e(t),t,r,n):e instanceof jt?r?(e.inject(r,n),[e.getName(n)]):[e]:Je(e)?Bt(e):Array.isArray(e)?Array.prototype.concat.apply(we,e.map((function(e){return Tt(e,t,r,n)}))):[e.toString()];var o}function $t(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ve(r)&&!He(r))return!1}return!0}var Mt=je(me),Ft=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&$t(e),this.componentId=t,this.baseHash=Ae(Mt,t),this.baseStyle=r,wt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Qe(n,this.staticRulesId);else{var o=Ze(Tt(this.rules,e,t,r)),s=Re(Ae(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=r(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}n=Qe(n,s),this.staticRulesId=s}else{for(var a=Ae(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l;else if(l){var d=Ze(Tt(l,e,t,r));a=Ae(a,d+u),c+=d}}if(c){var p=Re(a>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),n=Qe(n,p)}}return n},e}(),Lt=f().createContext(void 0);function zt(e){var t=f().useContext(Lt),r=(0,p.useMemo)((function(){return function(e,t){if(!e)throw tt(14);if(Ve(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw tt(8);return t?l(l({},t),e):e}(e.theme,t)}),[e.theme,t]);return e.children?f().createElement(Lt.Provider,{value:r},e.children):null}Lt.Consumer;var qt={};function Ut(e,t,r){var n=He(e),o=e,s=!_e(e),i=t.attrs,a=void 0===i?we:i,c=t.componentId,u=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Ie(e);qt[r]=(qt[r]||0)+1;var n="".concat(r,"-").concat(function(e){return Re(je(e)>>>0)}(me+r+qt[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,d=t.displayName,h=void 0===d?function(e){return _e(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):d,g=t.displayName&&t.componentId?"".concat(Ie(t.displayName),"-").concat(t.componentId):t.componentId||u,m=n&&o.attrs?o.attrs.concat(a).filter(Boolean):a,v=t.shouldForwardProp;if(n&&o.shouldForwardProp){var y=o.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;v=function(e,t){return y(e,t)&&b(e,t)}}else v=y}var w=new Ft(r,g,n?o.componentStyle:void 0);function S(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,s=e.defaultProps,i=e.foldedComponentIds,a=e.styledComponentId,c=e.target,u=f().useContext(Lt),d=Pt(),h=e.shouldForwardProp||d.shouldForwardProp,g=function(e,t,r){return void 0===r&&(r=Se),e.theme!==r.theme&&e.theme||t||r.theme}(t,u,s)||Se,m=function(e,t,r){for(var n,o=l(l({},t),{className:void 0,theme:r}),s=0;s<e.length;s+=1){var i=Ve(n=e[s])?n(o):n;for(var a in i)o[a]="className"===a?Qe(o[a],i[a]):"style"===a?l(l({},o[a]),i[a]):i[a]}return t.className&&(o.className=Qe(o.className,t.className)),o}(n,t,g),v=m.as||c,y={};for(var b in m)void 0===m[b]||"$"===b[0]||"as"===b||"theme"===b&&m.theme===g||("forwardedAs"===b?y.as=m.forwardedAs:h&&!h(b,v)||(y[b]=m[b]));var w=function(e,t){var r=Pt();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,m),S=Qe(i,a);return w&&(S+=" "+w),m.className&&(S+=" "+m.className),y[_e(v)&&!Ce.has(v)?"class":"className"]=S,r&&(y.ref=r),(0,p.createElement)(v,y)}(C,e,t)}S.displayName=h;var C=f().forwardRef(S);return C.attrs=m,C.componentStyle=w,C.displayName=h,C.shouldForwardProp=v,C.foldedComponentIds=n?Qe(o.foldedComponentIds,o.styledComponentId):"",C.styledComponentId=g,C.target=n?o.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Xe(e,o[n],!0);return e}({},o.defaultProps,e):e}}),et(C,(function(){return".".concat(C.styledComponentId)})),s&&Ke(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function Gt(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}new Set;var Wt=function(e){return Object.assign(e,{isCss:!0})};function Yt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ve(e)||Je(e))return Wt(Tt(Gt(we,d([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Tt(n):Wt(Tt(Gt(n,t)))}function Kt(e,t,r){if(void 0===r&&(r=Se),!t)throw tt(1,t);var n=function(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,r,Yt.apply(void 0,d([n],o,!1)))};return n.attrs=function(n){return Kt(e,t,l(l({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Kt(e,t,l(l({},r),n))},n}var Vt=function(e){return Kt(Ut,e)},Ht=Vt;Ce.forEach((function(e){Ht[e]=Vt(e)})),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=$t(e),wt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,r,n){var o=n(Ze(Tt(this.rules,t,r,n)),""),s=this.componentId+e;r.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&wt.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=ft(),n=Ze([r&&'nonce="'.concat(r,'"'),"".concat(fe,'="true"'),"".concat(ge,'="').concat(me,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw tt(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw tt(2);var r=e.instance.toString();if(!r)return[];var n=((t={})[fe]="",t[ge]=me,t.dangerouslySetInnerHTML={__html:r},t),o=ft();return o&&(n.nonce=o),[f().createElement("style",l({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new wt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw tt(2);return f().createElement(At,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw tt(3)}}(),"__sc-".concat(fe,"__");var Qt,Zt={primaryTextColor:"rgb(3, 7, 18)",primaryBackgroundColor:"rgb(253, 254, 255)",secondaryBackgroundColor:"rgb(250, 250, 250)",mobileBreakpoint:"600px",primaryBorderColor:"rgb(229, 231, 235)",secondaryBorderColor:"rgb(229, 231, 235)",widgetBackgroundColor:"#FFF",backgroundColor:"rgb(255, 255, 255)",secondaryTextColor:"rgb(115, 115, 115)",blankColor:"rgb(245, 245, 245)",overlayBackgroundColor:"rgba(255, 255, 255, .9)",messageBackgroundColor:"rgba(244, 244, 245, 0.3)",additionalTextColor:"rgb(156, 163, 175)",buttonActionTextColor:"#FFF",successStatusBorderColor:"rgb(187, 247, 208)",successStatusBackgroundColor:"rgb(240, 253, 244)",successStatusTextColor:"rgb(22, 163, 74)",errorStatusBackgroundColor:"rgb(254, 242, 242)",errorStatusBorderColor:"rgb(254, 202, 202)",errorStatusTextColor:"rgb(153, 27, 27)",buttonDisabledBackgroundColor:"rgb(229, 231, 235)",warningStatusBackgroundColor:"rgb(254, 252, 232)",warningStatusBorderColor:"rgb(254, 240, 138)",warningStatusTextColor:"rgb(180, 83, 9)",infoStatusBorderColor:"rgb(191, 219, 254)",infoStatusBackgroundColor:"rgb(239, 246, 255)",infoStatusTextColor:"rgb(29, 78, 216)",defaultStatusBackgroundColor:"rgb(255, 255, 255)",defaultStatusBorderColor:"rgb(229, 231, 235)",pendingStatusBackgroundColor:"rgb(254, 252, 232)",pendingStatusBorderColor:"rgb(254, 240, 138)",buttonActionBackgroundColor:"#000",buttonActionBackgroundHoverColor:"#000",buttonActionBackgroundActiveColor:"#000",buttonActionBorderHoverColor:"transparent",buttonActionBorderActiveColor:"transparent",buttonActionBorderColor:"transparent"};const Jt=Ht.div(Qt||(Xt=["\n border-radius: 8px;\n width: 32px;\n height: 32px;\n background-color: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"],er||(er=Xt.slice(0)),Qt=Object.freeze(Object.defineProperties(Xt,{raw:{value:Object.freeze(er)}}))),(e=>e.theme.secondaryBackgroundColor));var Xt,er,tr,rr,nr,or,sr,ir=n(74),ar=e=>{let{className:t}=e;return(0,ir.jsx)("svg",{className:t,width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ir.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.144225 0.144225C0.336519 -0.048075 0.648289 -0.048075 0.840589 0.144225L5.00002 4.30363L9.15945 0.144225C9.35175 -0.048075 9.66348 -0.048075 9.85577 0.144225C10.0481 0.336519 10.0481 0.648289 9.85577 0.840589L5.69641 5.00002L9.85577 9.15945C10.0481 9.35175 10.0481 9.66348 9.85577 9.85577C9.66348 10.0481 9.35175 10.0481 9.15945 9.85577L5.00002 5.69641L0.840589 9.85577C0.648289 10.0481 0.336519 10.0481 0.144225 9.85577C-0.048075 9.66348 -0.048075 9.35175 0.144225 9.15945L4.30363 5.00002L0.144225 0.840589C-0.048075 0.648289 -0.048075 0.336519 0.144225 0.144225Z",fill:"#686869"})})};function cr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const ur=Ht.div(tr||(tr=cr(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.3);\n width: 100%;\n height: 100%;\n z-index: 100;\n display: flex;\n align-items: center;\n justify-content: center;\n backdrop-filter: blur(2px);\n box-sizing: border-box;\n"]))),lr=Ht.div(rr||(rr=cr(["\n max-width: 680px;\n position: relative;\n width: 100%;\n background: ",";\n border-radius: 20px;\n border: 1px solid ",";\n padding: 16px;\n\n @media (max-width: ",") {\n padding: 40px 25px;\n }\n"])),(e=>e.theme&&e.theme.widgetBackgroundColor),(e=>e.theme&&e.theme.primaryBorderColor),(e=>e.theme.mobileBreakpoint)),dr=Ht.h3(nr||(nr=cr(["\n margin: 0 0 20px;\n font-size: 32px;\n font-weight: 700;\n text-align: center;\n color: ",";\n"])),(e=>e.theme.primaryTextColor)),pr=Ht.div(or||(or=cr(["\n margin: 0 auto 20px;\n display: flex;\n justify-content: center;\n"]))),fr=Ht((e=>{let{className:t,onClick:r}=e;return(0,ir.jsx)(Jt,{className:t,onClick:r,children:(0,ir.jsx)(ar,{})})}))(sr||(sr=cr(["\n position: absolute;\n right: 20px;\n top: 20px;\n"])));var hr,gr,mr;function vr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const yr=Ht((e=>{let{title:t,onClose:r,children:n,className:o,dialogClassName:s,icon:i}=e;return(0,ir.jsx)(ur,{onClick:e=>{e.target===e.currentTarget&&r&&r()},className:o,children:(0,ir.jsxs)(lr,{className:s,children:[(0,ir.jsx)(fr,{onClick:r}),i&&(0,ir.jsx)(pr,{children:i}),t&&(0,ir.jsx)(dr,{children:t}),n]})})}))(hr||(hr=vr(["\n ","\n\n &."," {\n max-width: 400px;\n padding: 0px;\n overflow: hidden;\n }\n"])),(e=>!e.visible&&Yt(gr||(gr=vr(["\n opacity: 0;\n pointer-events: none;\n "])))),"DialogClassName"),br=Ht.iframe(mr||(mr=vr(["\n width: 100%;\n height: 500px;\n border: none;\n overflow: auto;\n"])));let wr=null;const Sr=e=>{wr&&wr(e)};let Cr=null;var xr=e=>{let{apiKey:t,address:r,generateSignature:n,iframeOnLoad:o,scope:s,connectUrl:i="https://widget.bringid.org"}=e;const a=(0,p.useRef)(null),[c,u]=(0,p.useState)(!1);(0,p.useEffect)((()=>{wr=e=>{u(!0),console.log("registerOpenModal: ",{args:e}),Cr=e.proofsGeneratedCallback}}),[]),function(e,t,r,n,o){(0,p.useEffect)((()=>{async function s(s){const i=s.origin,a=s.data;if(i!==window.location.origin)if(i!==t);else{if("GENERATE_USER_KEY"===a.type){if(o){var c;const r=await o(a.payload.message);return void(null===(c=e.current.contentWindow)||void 0===c||c.postMessage({type:"USER_KEY_READY",payload:{signature:r}},t))}return alert("generateSignature IS NOT AVAILABLE")}if("PROOFS_READY"===a.type){console.log("PROOFS_READY IN SDK",{data:a});const{payload:{proofs:e,points:t}}=a;return n?(n(e,t),void r(!1)):alert("proofsGeneratedCallback IS NOT AVAILABLE")}window.postMessage(a,window.location.origin)}else{var u;if(!e.current)return;null===(u=e.current.contentWindow)||void 0===u||u.postMessage(a,t)}}return window.addEventListener("message",s),()=>window.removeEventListener("message",s)}),[o,n])}(a,i,u,Cr,n);const l=(f={url:encodeURIComponent(window.location.href),apiKey:t,address:r,scope:s},Object.entries(f).reduce(((e,t)=>{let[r,n]=t;return n?""===e?"".concat(r,"=").concat(n):"".concat(e,"&").concat(r,"=").concat(n):e}),"")),d="undefined"==typeof window?"":"".concat(i,"?").concat(l);var f;return(0,ir.jsx)(zt,{theme:Zt,children:(0,ir.jsx)(yr,{visible:c,onClose:()=>u(!1),children:(0,ir.jsx)(br,{ref:a,src:d,onLoad:o})})})}}(),o}()}));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.BringSDK=t(require("react")):e.BringSDK=t(e.react)}(this,(function(e){return function(){var t={568:function(e,t){"use strict";var r=Symbol.for("react.transitional.element");function n(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in n={},t)"key"!==i&&(n[i]=t[i]);else n=t;return t=n.ref,{$$typeof:r,type:e,key:o,ref:void 0!==t?t:null,props:n}}Symbol.for("react.fragment"),t.jsx=n,t.jsxs=n},74:function(e,t,r){"use strict";e.exports=r(568)},863:function(e){e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!a(u))return!1;var l=e[u],d=t[u];if(!1===(o=r?r.call(n,l,d,u):void 0)||void 0===o&&l!==d)return!1}return!0}},155:function(t){"use strict";t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};return function(){"use strict";n.r(o),n.d(o,{BringIDModal:function(){return Rr},BringIDRequestsSDK:function(){return p}});var e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let t;const r=new Uint8Array(16),i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function s(e,n,o){var s,a,c,u;const l=null!==(s=null!==(a=(e=e||{}).random)&&void 0!==a?a:null===(c=(u=e).rng)||void 0===c?void 0:c.call(u))&&void 0!==s?s:function(){if(!t){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");t=crypto.getRandomValues.bind(crypto)}return t(r)}();if(l.length<16)throw new Error("Random bytes length must be >= 16");if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,n){if((o=o||0)<0||o+16>n.length)throw new RangeError("UUID byte range ".concat(o,":").concat(o+15," is out of buffer bounds"));for(let e=0;e<16;++e)n[o+e]=l[e];return n}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}(l)}var a=()=>{return!e.randomUUID||r||t?s(t,r,n):e.randomUUID();var t,r,n};function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return fetch(e,{method:t,body:"GET"===t||"OPTIONS"===t?void 0:JSON.stringify(n),headers:u(u({},r),{},{"content-type":"application/json"})}).then((async e=>{if(!e.ok){const t=await e.json();throw new Error(t.error)}return e.json()}))}("".concat("https://api.bringid.org","/v1/score/calculate?address=").concat(e),"POST",{Authorization:"Bearer ".concat("zpka_52e44068bb9745f2be776b343e96cdab_1a60a93b")}),p=class{constructor(){this.dialogWindowOrigin=window.location.origin,this.connectDialogReady=!1,this.pendingRequests=new Map,this.handleMessage=e=>{if(console.log("handleMessage: ",{event:e,dialogWindowOrigin:this.dialogWindowOrigin}),e.origin!==this.dialogWindowOrigin)return;const t=e.data;if(!t.requestId)return;const r=this.pendingRequests.get(t.requestId);console.log("handleMessage: ",{pending:r}),r&&(console.log({data:t,pending:r}),r.requestType!==t.type&&(this.pendingRequests.delete(t.requestId),t.error?r.reject(t.error):r.resolve(t.payload)))},this.requestProofs=async e=>this.request("PROOFS_REQUEST",e),this.requestScore=async e=>{const{score:t}=await d(e);return{score:t}},window.addEventListener("message",this.handleMessage)}markDialogReady(){this.connectDialogReady=!0}sendMessageToDialog(e){if(!this.connectDialogReady)throw new Error("ConnectDialog is not mounted.");console.log("sendMessageToDialog: ",{msg:e,dialogWindowOrigin:this.dialogWindowOrigin}),window.postMessage(e,this.dialogWindowOrigin)}request(e,t){return new Promise(((r,n)=>{const o=a();this.pendingRequests.set(o,{resolve:r,reject:n,requestType:e}),this.sendMessageToDialog({type:e,requestId:o,payload:t})}))}},f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function h(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var g=n(155),v=n.n(g),m=n(863),y=n.n(m),b="-ms-",w="-moz-",S="-webkit-",x="comm",C="rule",O="decl",j="@keyframes",P=Math.abs,k=String.fromCharCode,I=Object.assign;function E(e){return e.trim()}function A(e,t){return(e=t.exec(e))?e[0]:e}function R(e,t,r){return e.replace(t,r)}function N(e,t,r){return e.indexOf(t,r)}function _(e,t){return 0|e.charCodeAt(t)}function B(e,t,r){return e.slice(t,r)}function D(e){return e.length}function $(e){return e.length}function T(e,t){return t.push(e),e}function z(e,t){return e.filter((function(e){return!A(e,t)}))}var M=1,F=1,L=0,q=0,G=0,U="";function W(e,t,r,n,o,i,s,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:M,column:F,length:s,return:"",siblings:a}}function Y(e,t){return I(W("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function H(e){for(;e.root;)e=Y(e.root,{children:[e]});T(e,e.siblings)}function K(){return G=q>0?_(U,--q):0,F--,10===G&&(F=1,M--),G}function V(){return G=q<L?_(U,q++):0,F++,10===G&&(F=1,M++),G}function Q(){return _(U,q)}function Z(){return q}function J(e,t){return B(U,e,t)}function X(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ee(e){return E(J(q-1,ne(91===e?e+2:40===e?e+1:e)))}function te(e){for(;(G=Q())&&G<33;)V();return X(e)>2||X(G)>3?"":" "}function re(e,t){for(;--t&&V()&&!(G<48||G>102||G>57&&G<65||G>70&&G<97););return J(e,Z()+(t<6&&32==Q()&&32==V()))}function ne(e){for(;V();)switch(G){case e:return q;case 34:case 39:34!==e&&39!==e&&ne(G);break;case 40:41===e&&ne(e);break;case 92:V()}return q}function oe(e,t){for(;V()&&e+G!==57&&(e+G!==84||47!==Q()););return"/*"+J(t,q-1)+"*"+k(47===e?e:V())}function ie(e){for(;!X(Q());)V();return J(e,q)}function se(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function ae(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case O:return e.return=e.return||e.value;case x:return"";case j:return e.return=e.value+"{"+se(e.children,n)+"}";case C:if(!D(e.value=e.props.join(",")))return""}return D(r=se(e.children,n))?e.return=e.value+"{"+r+"}":""}function ce(e,t,r){switch(function(e,t){return 45^_(e,0)?(((t<<2^_(e,0))<<2^_(e,1))<<2^_(e,2))<<2^_(e,3):0}(e,t)){case 5103:return S+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return S+e+e;case 4789:return w+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+w+e+b+e+e;case 5936:switch(_(e,t+11)){case 114:return S+e+b+R(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+b+R(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+b+R(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return S+e+b+e+e;case 6165:return S+e+b+"flex-"+e+e;case 5187:return S+e+R(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+b+"flex-$1$2")+e;case 5443:return S+e+b+"flex-item-"+R(e,/flex-|-self/g,"")+(A(e,/flex-|baseline/)?"":b+"grid-row-"+R(e,/flex-|-self/g,""))+e;case 4675:return S+e+b+"flex-line-pack"+R(e,/align-content|flex-|-self/g,"")+e;case 5548:return S+e+b+R(e,"shrink","negative")+e;case 5292:return S+e+b+R(e,"basis","preferred-size")+e;case 6060:return S+"box-"+R(e,"-grow","")+S+e+b+R(e,"grow","positive")+e;case 4554:return S+R(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return R(R(R(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+b+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4200:if(!A(e,/flex-|baseline/))return b+"grid-column-align"+B(e,t)+e;break;case 2592:case 3360:return b+R(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,A(e.props,/grid-\w+-end/)}))?~N(e+(r=r[t].value),"span",0)?e:b+R(e,"-start","")+e+b+"grid-row-span:"+(~N(r,"span",0)?A(r,/\d+/):+A(r,/\d+/)-+A(e,/\d+/))+";":b+R(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return A(e.props,/grid-\w+-start/)}))?e:b+R(R(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,S+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(D(e)-1-t>6)switch(_(e,t+1)){case 109:if(45!==_(e,t+4))break;case 102:return R(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+w+(108==_(e,t+3)?"$3":"$2-$3"))+e;case 115:return~N(e,"stretch",0)?ce(R(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return R(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,s,a){return b+r+":"+n+a+(o?b+r+"-span:"+(i?s:+s-+n)+a:"")+e}));case 4949:if(121===_(e,t+6))return R(e,":",":"+S)+e;break;case 6444:switch(_(e,45===_(e,14)?18:11)){case 120:return R(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+S+(45===_(e,14)?"inline-":"")+"box$3$1"+S+"$2$3$1"+b+"$2box$3")+e;case 100:return R(e,":",":"+b)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return R(e,"scroll-","scroll-snap-")+e}return e}function ue(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case O:return void(e.return=ce(e.value,e.length,r));case j:return se([Y(e,{value:R(e.value,"@","@"+S)})],n);case C:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(A(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":H(Y(e,{props:[R(t,/:(read-\w+)/,":-moz-$1")]})),H(Y(e,{props:[t]})),I(e,{props:z(r,n)});break;case"::placeholder":H(Y(e,{props:[R(t,/:(plac\w+)/,":"+S+"input-$1")]})),H(Y(e,{props:[R(t,/:(plac\w+)/,":-moz-$1")]})),H(Y(e,{props:[R(t,/:(plac\w+)/,b+"input-$1")]})),H(Y(e,{props:[t]})),I(e,{props:z(r,n)})}return""}))}}function le(e){return function(e){return U="",e}(de("",null,null,null,[""],e=function(e){return M=F=1,L=D(U=e),q=0,[]}(e),0,[0],e))}function de(e,t,r,n,o,i,s,a,c){for(var u=0,l=0,d=s,p=0,f=0,h=0,g=1,v=1,m=1,y=0,b="",w=o,S=i,x=n,C=b;v;)switch(h=y,y=V()){case 40:if(108!=h&&58==_(C,d-1)){-1!=N(C+=R(ee(y),"&","&\f"),"&\f",P(u?a[u-1]:0))&&(m=-1);break}case 34:case 39:case 91:C+=ee(y);break;case 9:case 10:case 13:case 32:C+=te(h);break;case 92:C+=re(Z()-1,7);continue;case 47:switch(Q()){case 42:case 47:T(fe(oe(V(),Z()),t,r,c),c);break;default:C+="/"}break;case 123*g:a[u++]=D(C)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+l:-1==m&&(C=R(C,/\f/g,"")),f>0&&D(C)-d&&T(f>32?he(C+";",n,r,d-1,c):he(R(C," ","")+";",n,r,d-2,c),c);break;case 59:C+=";";default:if(T(x=pe(C,t,r,u,l,o,a,b,w=[],S=[],d,i),i),123===y)if(0===l)de(C,t,x,x,w,i,d,a,S);else switch(99===p&&110===_(C,3)?100:p){case 100:case 108:case 109:case 115:de(e,x,x,n&&T(pe(e,x,x,0,0,o,a,b,o,w=[],d,S),S),o,S,d,a,n?w:S);break;default:de(C,x,x,x,[""],S,0,a,S)}}u=l=f=0,g=m=1,b=C="",d=s;break;case 58:d=1+D(C),f=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==K())continue;switch(C+=k(y),y*g){case 38:m=l>0?1:(C+="\f",-1);break;case 44:a[u++]=(D(C)-1)*m,m=1;break;case 64:45===Q()&&(C+=ee(V())),p=Q(),l=d=D(b=C+=ie(Z())),y++;break;case 45:45===h&&2==D(C)&&(g=0)}}return i}function pe(e,t,r,n,o,i,s,a,c,u,l,d){for(var p=o-1,f=0===o?i:[""],h=$(f),g=0,v=0,m=0;g<n;++g)for(var y=0,b=B(e,p+1,p=P(v=s[g])),w=e;y<h;++y)(w=E(v>0?f[y]+" "+b:R(b,/&\f/g,f[y])))&&(c[m++]=w);return W(e,t,r,0===o?C:a,c,u,l,d)}function fe(e,t,r,n){return W(e,t,r,x,k(G),B(e,2,-2),0,n)}function he(e,t,r,n,o){return W(e,t,r,O,B(e,0,n),B(e,n+1,-1),n,o)}var ge={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ve="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",me="active",ye="data-styled-version",be="6.1.19",we="/*!sc*/\n",Se="undefined"!=typeof window&&"undefined"!=typeof document,xe=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),Ce=(new Set,Object.freeze([])),Oe=Object.freeze({});var je=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Pe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Ie(e){return e.replace(Pe,"-").replace(ke,"")}var Ee=/(a)(d)/gi,Ae=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ae(t%52)+r;return(Ae(t%52)+r).replace(Ee,"$1-$2")}var Ne,_e=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Be=function(e){return _e(5381,e)};function De(e){return Re(Be(e)>>>0)}function $e(e){return"string"==typeof e&&!0}var Te="function"==typeof Symbol&&Symbol.for,ze=Te?Symbol.for("react.memo"):60115,Me=Te?Symbol.for("react.forward_ref"):60112,Fe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Le={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},qe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ge=((Ne={})[Me]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ne[ze]=qe,Ne);function Ue(e){return("type"in(t=e)&&t.type.$$typeof)===ze?qe:"$$typeof"in e?Ge[e.$$typeof]:Fe;var t}var We=Object.defineProperty,Ye=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,Ke=Object.getOwnPropertyDescriptor,Ve=Object.getPrototypeOf,Qe=Object.prototype;function Ze(e,t,r){if("string"!=typeof t){if(Qe){var n=Ve(t);n&&n!==Qe&&Ze(e,n,r)}var o=Ye(t);He&&(o=o.concat(He(t)));for(var i=Ue(e),s=Ue(t),a=0;a<o.length;++a){var c=o[a];if(!(c in Le||r&&r[c]||s&&c in s||i&&c in i)){var u=Ke(t,c);try{We(e,c,u)}catch(e){}}}}return e}function Je(e){return"function"==typeof e}function Xe(e){return"object"==typeof e&&"styledComponentId"in e}function et(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function tt(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function rt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function nt(e,t,r){if(void 0===r&&(r=!1),!r&&!rt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=nt(e[n],t[n]);else if(rt(t))for(var n in t)e[n]=nt(e[n],t[n]);return e}function ot(e,t){Object.defineProperty(e,"toString",{value:t})}function it(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var st=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw it(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(we);return t},e}(),at=new Map,ct=new Map,ut=1,lt=function(e){if(at.has(e))return at.get(e);for(;ct.has(ut);)ut++;var t=ut++;return at.set(e,t),ct.set(t,e),t},dt=function(e,t){ut=t+1,at.set(e,t),ct.set(t,e)},pt="style[".concat(ve,"][").concat(ye,'="').concat(be,'"]'),ft=new RegExp("^".concat(ve,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ht=function(e,t,r){for(var n,o=r.split(","),i=0,s=o.length;i<s;i++)(n=o[i])&&e.registerName(t,n)},gt=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(we),o=[],i=0,s=n.length;i<s;i++){var a=n[i].trim();if(a){var c=a.match(ft);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(dt(l,u),ht(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},vt=function(e){for(var t=document.querySelectorAll(pt),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(ve)!==me&&(gt(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function mt(){return n.nc}var yt=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ve,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(ve,me),n.setAttribute(ye,be);var s=mt();return s&&n.setAttribute("nonce",s),r.insertBefore(n,i),n},bt=function(){function e(e){this.element=yt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw it(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),wt=function(){function e(e){this.element=yt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),St=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),xt=Se,Ct={isServer:!Se,useCSSOMInjection:!xe},Ot=function(){function e(e,t,r){void 0===e&&(e=Oe),void 0===t&&(t={});var n=this;this.options=f(f({},Ct),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Se&&xt&&(xt=!1,vt(this)),ot(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return ct.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(r);if(void 0===i||!i.size||0===s.length)return"continue";var a="".concat(ve,".g").concat(r,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach((function(e){e.length>0&&(c+="".concat(e,","))})),n+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat(we)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return lt(e)},e.prototype.rehydrate=function(){!this.server&&Se&&vt(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(f(f({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new St(r):t?new bt(r):new wt(r)}(this.options),new st(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(lt(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(lt(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(lt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),jt=/&/g,Pt=/^\s*\/\/.*$/gm;function kt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=kt(e.children,t)),e}))}function It(e){var t,r,n,o=void 0===e?Oe:e,i=o.options,s=void 0===i?Oe:i,a=o.plugins,c=void 0===a?Ce:a,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},l=c.slice();l.push((function(e){e.type===C&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(jt,r).replace(n,u))})),s.prefix&&l.push(ue),l.push(ae);var d=function(e,o,i,a){void 0===o&&(o=""),void 0===i&&(i=""),void 0===a&&(a="&"),t=a,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var c=e.replace(Pt,""),u=le(i||o?"".concat(i," ").concat(o," { ").concat(c," }"):c);s.namespace&&(u=kt(u,s.namespace));var d,p,f,h=[];return se(u,(d=l.concat((f=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&f(e)})),p=$(d),function(e,t,r,n){for(var o="",i=0;i<p;i++)o+=d[i](e,t,r,n)||"";return o})),h};return d.hash=c.length?c.reduce((function(e,t){return t.name||it(15),_e(e,t.name)}),5381).toString():"",d}var Et=new Ot,At=It(),Rt=v().createContext({shouldForwardProp:void 0,styleSheet:Et,stylis:At}),Nt=(Rt.Consumer,v().createContext(void 0));function _t(){return(0,g.useContext)(Rt)}function Bt(e){var t=(0,g.useState)(e.stylisPlugins),r=t[0],n=t[1],o=_t().styleSheet,i=(0,g.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),s=(0,g.useMemo)((function(){return It({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);(0,g.useEffect)((function(){y()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var a=(0,g.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:s}}),[e.shouldForwardProp,i,s]);return v().createElement(Rt.Provider,{value:a},v().createElement(Nt.Provider,{value:s},e.children))}var Dt=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=At);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ot(this,(function(){throw it(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=At),this.name+e.hash},e}(),$t=function(e){return e>="A"&&e<="Z"};function Tt(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;$t(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var zt=function(e){return null==e||!1===e||""===e},Mt=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!zt(i)&&(Array.isArray(i)&&i.isCss||Je(i)?n.push("".concat(Tt(o),":"),i,";"):rt(i)?n.push.apply(n,h(h(["".concat(o," {")],Mt(i),!1),["}"],!1)):n.push("".concat(Tt(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ge||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ft(e,t,r,n){return zt(e)?[]:Xe(e)?[".".concat(e.styledComponentId)]:Je(e)?!Je(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ft(e(t),t,r,n):e instanceof Dt?r?(e.inject(r,n),[e.getName(n)]):[e]:rt(e)?Mt(e):Array.isArray(e)?Array.prototype.concat.apply(Ce,e.map((function(e){return Ft(e,t,r,n)}))):[e.toString()];var o}function Lt(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Je(r)&&!Xe(r))return!1}return!0}var qt=Be(be),Gt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Lt(e),this.componentId=t,this.baseHash=_e(qt,t),this.baseStyle=r,Ot.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=et(n,this.staticRulesId);else{var o=tt(Ft(this.rules,e,t,r)),i=Re(_e(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var s=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,s)}n=et(n,i),this.staticRulesId=i}else{for(var a=_e(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l;else if(l){var d=tt(Ft(l,e,t,r));a=_e(a,d+u),c+=d}}if(c){var p=Re(a>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),n=et(n,p)}}return n},e}(),Ut=v().createContext(void 0);function Wt(e){var t=v().useContext(Ut),r=(0,g.useMemo)((function(){return function(e,t){if(!e)throw it(14);if(Je(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw it(8);return t?f(f({},t),e):e}(e.theme,t)}),[e.theme,t]);return e.children?v().createElement(Ut.Provider,{value:r},e.children):null}Ut.Consumer;var Yt={};function Ht(e,t,r){var n=Xe(e),o=e,i=!$e(e),s=t.attrs,a=void 0===s?Ce:s,c=t.componentId,u=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Ie(e);Yt[r]=(Yt[r]||0)+1;var n="".concat(r,"-").concat(De(be+r+Yt[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,l=t.displayName,d=void 0===l?function(e){return $e(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):l,p=t.displayName&&t.componentId?"".concat(Ie(t.displayName),"-").concat(t.componentId):t.componentId||u,h=n&&o.attrs?o.attrs.concat(a).filter(Boolean):a,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var y=o.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;m=function(e,t){return y(e,t)&&b(e,t)}}else m=y}var w=new Gt(r,p,n?o.componentStyle:void 0);function S(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,s=e.foldedComponentIds,a=e.styledComponentId,c=e.target,u=v().useContext(Ut),l=_t(),d=e.shouldForwardProp||l.shouldForwardProp,p=function(e,t,r){return void 0===r&&(r=Oe),e.theme!==r.theme&&e.theme||t||r.theme}(t,u,i)||Oe,h=function(e,t,r){for(var n,o=f(f({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var s=Je(n=e[i])?n(o):n;for(var a in s)o[a]="className"===a?et(o[a],s[a]):"style"===a?f(f({},o[a]),s[a]):s[a]}return t.className&&(o.className=et(o.className,t.className)),o}(n,t,p),m=h.as||c,y={};for(var b in h)void 0===h[b]||"$"===b[0]||"as"===b||"theme"===b&&h.theme===p||("forwardedAs"===b?y.as=h.forwardedAs:d&&!d(b,m)||(y[b]=h[b]));var w=function(e,t){var r=_t();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,h),S=et(s,a);return w&&(S+=" "+w),h.className&&(S+=" "+h.className),y[$e(m)&&!je.has(m)?"class":"className"]=S,r&&(y.ref=r),(0,g.createElement)(m,y)}(x,e,t)}S.displayName=d;var x=v().forwardRef(S);return x.attrs=h,x.componentStyle=w,x.displayName=d,x.shouldForwardProp=m,x.foldedComponentIds=n?et(o.foldedComponentIds,o.styledComponentId):"",x.styledComponentId=p,x.target=n?o.target:e,Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)nt(e,o[n],!0);return e}({},o.defaultProps,e):e}}),ot(x,(function(){return".".concat(x.styledComponentId)})),i&&Ze(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),x}function Kt(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}new Set;var Vt=function(e){return Object.assign(e,{isCss:!0})};function Qt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Je(e)||rt(e))return Vt(Ft(Kt(Ce,h([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ft(n):Vt(Ft(Kt(n,t)))}function Zt(e,t,r){if(void 0===r&&(r=Oe),!t)throw it(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Qt.apply(void 0,h([n],o,!1)))};return n.attrs=function(n){return Zt(e,t,f(f({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Zt(e,t,f(f({},r),n))},n}var Jt=function(e){return Zt(Ht,e)},Xt=Jt;je.forEach((function(e){Xt[e]=Jt(e)})),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Lt(e),Ot.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,r,n){var o=n(tt(Ft(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Ot.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=mt(),n=tt([r&&'nonce="'.concat(r,'"'),"".concat(ve,'="true"'),"".concat(ye,'="').concat(be,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw it(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw it(2);var r=e.instance.toString();if(!r)return[];var n=((t={})[ve]="",t[ye]=be,t.dangerouslySetInnerHTML={__html:r},t),o=mt();return o&&(n.nonce=o),[v().createElement("style",f({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Ot({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw it(2);return v().createElement(Bt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw it(3)}}(),"__sc-".concat(ve,"__");var er,tr={primaryTextColor:"rgb(3, 7, 18)",primaryBackgroundColor:"rgb(253, 254, 255)",secondaryBackgroundColor:"rgb(250, 250, 250)",mobileBreakpoint:"600px",primaryBorderColor:"rgb(229, 231, 235)",secondaryBorderColor:"rgb(229, 231, 235)",widgetBackgroundColor:"#FFF",backgroundColor:"rgb(255, 255, 255)",secondaryTextColor:"rgb(115, 115, 115)",blankColor:"rgb(245, 245, 245)",overlayBackgroundColor:"rgba(255, 255, 255, .9)",messageBackgroundColor:"rgba(244, 244, 245, 0.3)",highlightColor:"#6B43F4",additionalTextColor:"rgb(156, 163, 175)",buttonActionTextColor:"#FFF",successStatusBorderColor:"rgb(187, 247, 208)",successStatusBackgroundColor:"rgb(240, 253, 244)",successStatusTextColor:"rgb(22, 163, 74)",errorStatusBackgroundColor:"rgb(254, 242, 242)",errorStatusBorderColor:"rgb(254, 202, 202)",errorStatusTextColor:"rgb(153, 27, 27)",buttonDisabledBackgroundColor:"rgb(229, 231, 235)",warningStatusBackgroundColor:"rgb(254, 252, 232)",warningStatusBorderColor:"rgb(254, 240, 138)",warningStatusTextColor:"rgb(180, 83, 9)",infoStatusBorderColor:"rgb(191, 219, 254)",infoStatusBackgroundColor:"rgb(239, 246, 255)",infoStatusTextColor:"rgb(29, 78, 216)",defaultStatusBackgroundColor:"rgb(255, 255, 255)",defaultStatusBorderColor:"rgb(229, 231, 235)",pendingStatusBackgroundColor:"rgb(254, 252, 232)",pendingStatusBorderColor:"rgb(254, 240, 138)",buttonActionBackgroundColor:"#000",buttonActionBackgroundHoverColor:"#000",buttonActionBackgroundActiveColor:"#000",buttonActionBorderHoverColor:"transparent",buttonActionBorderActiveColor:"transparent",buttonActionBorderColor:"transparent"};const rr=Xt.div(er||(nr=["\n border-radius: 8px;\n width: 32px;\n height: 32px;\n background-color: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"],or||(or=nr.slice(0)),er=Object.freeze(Object.defineProperties(nr,{raw:{value:Object.freeze(or)}}))),(e=>e.theme.secondaryBackgroundColor));var nr,or,ir,sr,ar,cr,ur,lr=n(74),dr=e=>{let{className:t}=e;return(0,lr.jsx)("svg",{className:t,width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,lr.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.144225 0.144225C0.336519 -0.048075 0.648289 -0.048075 0.840589 0.144225L5.00002 4.30363L9.15945 0.144225C9.35175 -0.048075 9.66348 -0.048075 9.85577 0.144225C10.0481 0.336519 10.0481 0.648289 9.85577 0.840589L5.69641 5.00002L9.85577 9.15945C10.0481 9.35175 10.0481 9.66348 9.85577 9.85577C9.66348 10.0481 9.35175 10.0481 9.15945 9.85577L5.00002 5.69641L0.840589 9.85577C0.648289 10.0481 0.336519 10.0481 0.144225 9.85577C-0.048075 9.66348 -0.048075 9.35175 0.144225 9.15945L4.30363 5.00002L0.144225 0.840589C-0.048075 0.648289 -0.048075 0.336519 0.144225 0.144225Z",fill:"#686869"})})};function pr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const fr=Xt.div(ir||(ir=pr(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.3);\n width: 100%;\n height: 100%;\n z-index: 100;\n display: flex;\n align-items: center;\n justify-content: center;\n backdrop-filter: blur(2px);\n box-sizing: border-box;\n"]))),hr=Xt.div(sr||(sr=pr(["\n max-width: 680px;\n position: relative;\n width: 100%;\n background: ",";\n border-radius: 20px;\n border: 1px solid ",";\n padding: 16px;\n\n @media (max-width: ",") {\n padding: 40px 25px;\n }\n"])),(e=>e.theme&&e.theme.widgetBackgroundColor),(e=>e.theme&&e.theme.primaryBorderColor),(e=>e.theme.mobileBreakpoint));Xt.h3(ar||(ar=pr(["\n margin: 0 0 20px;\n font-size: 32px;\n font-weight: 700;\n text-align: center;\n color: ",";\n"])),(e=>e.theme.primaryTextColor)),Xt.div(cr||(cr=pr(["\n margin: 0 auto 20px;\n display: flex;\n justify-content: center;\n"]))),Xt((e=>{let{className:t,onClick:r}=e;return(0,lr.jsx)(rr,{className:t,onClick:r,children:(0,lr.jsx)(dr,{})})}))(ur||(ur=pr(["\n position: absolute;\n right: 20px;\n top: 20px;\n"])));var gr,vr,mr;function yr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const br=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=tt(Qt.apply(void 0,h([e],t,!1))),o=De(n);return new Dt(o,n)}(gr||(gr=yr(["\n 0% {\n transform: rotate(0deg)\n }\n 100% {\n transform: rotate(360deg)\n }\n"]))),wr=Xt.span(vr||(vr=yr(["\n width: 16px;\n height: 16px;\n\n ","\n border-radius: 50%;\n display: inline-block;\n border-top: 2px solid ",";\n border-right: 2px solid transparent;\n box-sizing: border-box;\n animation: "," 1s linear infinite;\n"])),(e=>"large"===e.size&&Qt(mr||(mr=yr(["\n width: 32px;\n height: 32px;\n "])))),(e=>e.theme.highlightColor),br);var Sr,xr,Cr,Or,jr=e=>{let{className:t,size:r}=e;return(0,lr.jsx)(wr,{className:t,size:r})};function Pr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const kr="DialogClassName",Ir=Xt((e=>{let{children:t,className:r,dialogClassName:n}=e;return(0,lr.jsx)(fr,{className:r,children:(0,lr.jsx)(hr,{className:n,children:t})})}))(Sr||(Sr=Pr(["\n ","\n\n ."," {\n max-width: 400px;\n padding: 0px;\n position: relative;\n overflow: hidden;\n }\n"])),(e=>!e.visible&&Qt(xr||(xr=Pr(["\n opacity: 0;\n pointer-events: none;\n "])))),kr),Er=Xt.iframe(Cr||(Cr=Pr(["\n width: 100%;\n height: 600px;\n border: none;\n overflow: auto;\n"]))),Ar=Xt.div(Or||(Or=Pr(["\n width: 100%;\n height: 100%;\n display: flex;\n position: absolute;\n top: 0;\n left: 0;\n align-items: center;\n justify-content: center;\n"])));var Rr=e=>{let{apiKey:t,address:r,generateSignature:n,iframeOnLoad:o,mode:i="production",connectUrl:s="https://widget.bringid.org"}=e;const a=(0,g.useRef)(null),[c,u]=(0,g.useState)(!1);!function(e,t,r,n,o){(0,g.useEffect)((()=>{async function n(n){const i=n.origin,s=n.data;if(i===window.location.origin){var a;if(!e.current)return;return" PROOFS_REQUEST"===s.type&&r(!0),void(null===(a=e.current.contentWindow)||void 0===a||a.postMessage(s,t))}if(i===t){if("GENERATE_USER_KEY"===s.type){if(o){var c;const r=await o(s.payload.message);return void(null===(c=e.current.contentWindow)||void 0===c||c.postMessage({type:"USER_KEY_READY",payload:{signature:r}},t))}return alert("generateSignature IS NOT AVAILABLE")}return"CLOSE_MODAL"===s.type?void r(!1):void window.postMessage(s,window.location.origin)}}return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}),[o,n])}(a,s,u,null,n);const[l,d]=(0,g.useState)(!0),p=(h={url:encodeURIComponent(window.location.href),apiKey:t,address:r,mode:i},Object.entries(h).reduce(((e,t)=>{let[r,n]=t;return n?""===e?"".concat(r,"=").concat(n):"".concat(e,"&").concat(r,"=").concat(n):e}),"")),f="undefined"==typeof window?"":"".concat(s,"?").concat(p);var h;return(0,lr.jsx)(Wt,{theme:tr,children:(0,lr.jsxs)(Ir,{visible:c,onClose:()=>u(!1),dialogClassName:kr,children:[l&&(0,lr.jsx)(Ar,{children:(0,lr.jsx)(jr,{size:"large"})}),(0,lr.jsx)(Er,{ref:a,src:f,onLoad:()=>{o&&o(),d(!1)}})]})})}}(),o}()}));
|
|
@@ -4,7 +4,7 @@ export type TProps = {
|
|
|
4
4
|
address?: string;
|
|
5
5
|
generateSignature?: TGenerateSignature;
|
|
6
6
|
connectUrl?: string;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
iframeOnLoad?: () => void;
|
|
8
|
+
mode?: 'dev' | 'production';
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=component-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-types.d.ts","sourceRoot":"","sources":["../../../src/modules/bring-id-modal/component-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,MAAM,MAAM,MAAM,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iBAAiB,CAAC,EAAE,kBAAkB,CAAA;IACtC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,IAAI,CAAC,EAAE,KAAK,GAAG,YAAY,CAAA;CAC5B,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TSemaphoreProof } from "@/types";
|
|
2
2
|
type TOpenModalArgs = {
|
|
3
3
|
proofsGeneratedCallback: (proofs: TSemaphoreProof[], points: number) => void;
|
|
4
|
+
scope?: string;
|
|
4
5
|
};
|
|
5
6
|
type TOpenModalCallback = (args: TOpenModalArgs) => void;
|
|
6
7
|
export declare const registerOpenModal: (cb: TOpenModalCallback) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-bus.d.ts","sourceRoot":"","sources":["../../../../src/modules/bring-id-modal/events/event-bus.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,KAAK,cAAc,GAAG;IACpB,uBAAuB,EAAE,CACvB,MAAM,EAAE,eAAe,EAAE,EACzB,MAAM,EAAE,MAAM,KACX,IAAI,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,kBAAkB,GAAG,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;AAGzD,eAAO,MAAM,iBAAiB,GAAI,IAAI,kBAAkB,SAEvD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,cAAc,SAIpD,CAAC;AAGF,OAAO,EAAE,gBAAgB,IAAI,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/bring-id-modal/index.tsx"],"names":[],"mappings":"AAGA,OAAO,uBAAuB,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAmB1C,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAqDzC,CAAA;AAID,eAAe,YAAY,CAAA"}
|
|
@@ -3,4 +3,5 @@ export declare const DialogStyled: import("styled-components/dist/types").IStyle
|
|
|
3
3
|
visible?: boolean;
|
|
4
4
|
}>> & string & Omit<import("react").FC<import("../../components/dialog/types").TProps>, keyof import("react").Component<any, {}, any>>;
|
|
5
5
|
export declare const IFrame: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, never>> & string;
|
|
6
|
+
export declare const LoadingScreen: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
7
|
//# sourceMappingURL=styled-components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled-components.d.ts","sourceRoot":"","sources":["../../../src/modules/bring-id-modal/styled-components.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,oBAAoB,CAAA;AAEhD,eAAO,MAAM,YAAY;cACb,OAAO;sIAalB,CAAA;AAED,eAAO,MAAM,MAAM,yOAKlB,CAAA;AAED,eAAO,MAAM,aAAa,6NASzB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
1
|
+
import { TRequestProofs, TRequestScore } from "./types";
|
|
2
|
+
export declare class BringIDSDK {
|
|
3
3
|
private dialogWindowOrigin;
|
|
4
4
|
private connectDialogReady;
|
|
5
5
|
private pendingRequests;
|
|
@@ -12,8 +12,8 @@ export declare class BringIDRequestsSDK {
|
|
|
12
12
|
/** Helper to wrap messages as promises */
|
|
13
13
|
private request;
|
|
14
14
|
/** PUBLIC METHODS */
|
|
15
|
-
checkExtensionStatus: TCheckExtensionStatus;
|
|
16
15
|
requestProofs: TRequestProofs;
|
|
16
|
+
requestScore: TRequestScore;
|
|
17
17
|
}
|
|
18
|
-
export default
|
|
18
|
+
export default BringIDSDK;
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/bring-id-sdk/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,aAAa,EACd,MAAM,SAAS,CAAA;AAGhB,qBAAa,UAAU;IACrB,OAAO,CAAC,kBAAkB,CAA0B;IACpD,OAAO,CAAC,kBAAkB,CAAS;IAEnC,OAAO,CAAC,eAAe,CAOnB;;IAMJ,mDAAmD;IAC5C,eAAe;IAItB,sBAAsB;IACtB,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,aAAa,CAwBnB;IAEF,0CAA0C;IAC1C,OAAO,CAAC,OAAO;IAUf,qBAAqB;IACrB,aAAa,EAAE,cAAc,CAE5B;IAED,YAAY,EAAE,aAAa,CAQ1B;CAEF;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/bring-id-sdk/types/check-extension-status/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE1C,KAAK,qBAAqB,GAAG,MAAM,OAAO,CAAC;IACzC,MAAM,EAAE,gBAAgB,CAAA;CACzB,CAAC,CAAA;AAEF,eAAe,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/bring-id-sdk/types/index.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,0BAA0B,CAAA;AAC5D,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,aAAa,EACd,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/bring-id-sdk/types/request-proofs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,KAAK,cAAc,GAAG,CAAC,OAAO,EAAE,KAAK,KAAK,OAAO,CAAC;IAChD,MAAM,EAAE,eAAe,EAAE,CAAA;IACzB,MAAM,EAAE,MAAM,CAAA;CACf,CAAC,CAAA;AAEF,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/bring-id-sdk/types/request-score/index.tsx"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,CACnB,OAAO,EAAE,MAAM,KACZ,OAAO,CAAC;IACX,KAAK,EAAE,MAAM,CAAA;CACd,CAAC,CAAA;AAEF,eAAe,aAAa,CAAA"}
|
package/dist/themes/light.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../src/themes/light.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../src/themes/light.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDV,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-type.d.ts","sourceRoot":"","sources":["../../src/types/request-type.tsx"],"names":[],"mappings":"AAAA,KAAK,YAAY,GAAG,
|
|
1
|
+
{"version":3,"file":"request-type.d.ts","sourceRoot":"","sources":["../../src/types/request-type.tsx"],"names":[],"mappings":"AAAA,KAAK,YAAY,GAAG,gBAAgB,GAChB,iBAAiB,CAAA;AAErC,eAAe,YAAY,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import IBringIDExtensionSDK, { TIsExtensionInstalled, TRequestProofs } from './types';
|
|
2
|
-
declare class BringIDExtensionSDK implements IBringIDExtensionSDK {
|
|
3
|
-
isExtensionInstalled: TIsExtensionInstalled;
|
|
4
|
-
requestProofs: TRequestProofs;
|
|
5
|
-
}
|
|
6
|
-
export default BringIDExtensionSDK;
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/bring-id-extension-sdk/index.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,EAAE,EAC3B,qBAAqB,EACrB,cAAc,EACf,MAAM,SAAS,CAAA;AAEhB,cAAM,mBAAoB,YAAW,oBAAoB;IACvD,oBAAoB,EAAE,qBAAqB,CAQ1C;IAED,aAAa,EAAE,cAAc,CAqD5B;CACF;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import TIsExtensionInstalled from './is-extension-installed';
|
|
2
|
-
import TRequestProofs from './request-proofs';
|
|
3
|
-
interface IBringIDExtensionSDK {
|
|
4
|
-
isExtensionInstalled: TIsExtensionInstalled;
|
|
5
|
-
requestProofs: TRequestProofs;
|
|
6
|
-
}
|
|
7
|
-
export { TIsExtensionInstalled, TRequestProofs };
|
|
8
|
-
export default IBringIDExtensionSDK;
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/bring-id-extension-sdk/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,0BAA0B,CAAA;AAC5D,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAE7C,UAAU,oBAAoB;IAC5B,oBAAoB,EAAE,qBAAqB,CAAA;IAC3C,aAAa,EAAE,cAAc,CAAA;CAC9B;AAED,OAAO,EACL,qBAAqB,EACrB,cAAc,EACf,CAAA;AAED,eAAe,oBAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/bring-id-extension-sdk/types/is-extension-installed/index.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;AAEnD,eAAe,qBAAqB,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TSemaphoreProof } from "../../../../types";
|
|
2
|
-
type TRequestProofsArgs = {
|
|
3
|
-
drop: string;
|
|
4
|
-
pointsRequired: number;
|
|
5
|
-
address: string;
|
|
6
|
-
};
|
|
7
|
-
type TRequestProofs = (args: TRequestProofsArgs) => Promise<{
|
|
8
|
-
proofs: TSemaphoreProof[] | null;
|
|
9
|
-
points: number;
|
|
10
|
-
}>;
|
|
11
|
-
export default TRequestProofs;
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/bring-id-extension-sdk/types/request-proofs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,KAAK,cAAc,GAAG,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC;IAC1D,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,CAAA;IAChC,MAAM,EAAE,MAAM,CAAA;CACf,CAAC,CAAA;AAEF,eAAe,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/bring-id-requests-sdk/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE/D,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,kBAAkB,CAA0B;IACpD,OAAO,CAAC,kBAAkB,CAAS;IAEnC,OAAO,CAAC,eAAe,CAOnB;;IAMJ,mDAAmD;IAC5C,eAAe;IAItB,sBAAsB;IACtB,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,aAAa,CAwBnB;IAEF,0CAA0C;IAC1C,OAAO,CAAC,OAAO;IAaf,qBAAqB;IACrB,oBAAoB,EAAE,qBAAqB,CAE1C;IAED,aAAa,EAAE,cAAc,CAM5B;CAEF;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/bring-id-requests-sdk/types/check-extension-status/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE1C,KAAK,qBAAqB,GAAG,MAAM,OAAO,CAAC;IACzC,MAAM,EAAE,gBAAgB,CAAA;CACzB,CAAC,CAAA;AAEF,eAAe,qBAAqB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/bring-id-requests-sdk/types/index.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,0BAA0B,CAAA;AAC5D,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAE7C,OAAO,EACL,qBAAqB,EACrB,cAAc,EACf,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/bring-id-requests-sdk/types/request-proofs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAA;AAED,KAAK,cAAc,GAAG,CAAC,OAAO,EAAE,KAAK,KAAK,OAAO,CAAC;IAChD,MAAM,EAAE,eAAe,EAAE,CAAA;IACzB,MAAM,EAAE,MAAM,CAAA;CACf,CAAC,CAAA;AAEF,eAAe,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-types.d.ts","sourceRoot":"","sources":["../../../src/modules/verifications-dialog/component-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,MAAM,MAAM,MAAM,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iBAAiB,CAAC,EAAE,kBAAkB,CAAA;IACtC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-bus.d.ts","sourceRoot":"","sources":["../../../../src/modules/verifications-dialog/events/event-bus.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,KAAK,cAAc,GAAG;IACpB,uBAAuB,EAAE,CACvB,MAAM,EAAE,eAAe,EAAE,EACzB,MAAM,EAAE,MAAM,KACX,IAAI,CAAC;CAEX,CAAA;AAED,KAAK,kBAAkB,GAAG,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;AAGzD,eAAO,MAAM,iBAAiB,GAAI,IAAI,kBAAkB,SAEvD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,cAAc,SAIpD,CAAC;AAGF,OAAO,EAAE,gBAAgB,IAAI,SAAS,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/verifications-dialog/index.tsx"],"names":[],"mappings":"AAGA,OAAO,uBAAuB,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAgB1C,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CA0DhD,CAAA;AAID,eAAe,mBAAmB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled-components.d.ts","sourceRoot":"","sources":["../../../src/modules/verifications-dialog/styled-components.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,oBAAoB,CAAA;AAEhD,eAAO,MAAM,YAAY;cACb,OAAO;sIAYlB,CAAA;AAED,eAAO,MAAM,MAAM,yOAKlB,CAAA"}
|
/package/dist/modules/{bring-id-requests-sdk → bring-id-sdk}/types/check-extension-status/index.d.ts
RENAMED
|
File without changes
|