-
Notifications
You must be signed in to change notification settings - Fork 1
/
65.f0c48a3d4e8207b5fbca.js
1 lines (1 loc) · 3.05 KB
/
65.f0c48a3d4e8207b5fbca.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{IWdM:function(e,n,r){"use strict";r.r(n),r("ls82");var t=r("NcyZ");function o(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,t)}return r}function i(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?o(Object(r),!0).forEach(function(n){c(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n,r,t,o,i,c){try{var a=e[i](c),u=a.value}catch(s){return void r(s)}a.done?n(u):Promise.resolve(u).then(t,o)}function u(e){return function(){var n=this,r=arguments;return new Promise(function(t,o){var i=e.apply(n,r);function c(e){a(i,t,o,c,u,"next",e)}function u(e){a(i,t,o,c,u,"throw",e)}c(void 0)})}}r("kB5k"),r("/TMw"),r("M39V"),n.default=function(e){var n,o=e.networkId,c=e.preferred,a=e.buttonPosition,s=e.modalZIndex,l=e.apiKey,f=e.buildEnv,p=e.enableLogging,d=e.enabledVerifiers,w=e.loginConfig,b=e.showTorusButton,g=e.integrity,h=e.whiteLabel,v=e.loginMethod,m=e.rpcUrl;return{name:e.label||"Torus",svg:e.svg||'<svg width="257" height="277" viewBox="0 0 257 277" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect width="153.889" height="82.0741" fill="#0364FF" />\n<rect x="71.8135" width="82.0741" height="277" fill="#0364FF" />\n<path d="M215.443 82.0741C238.107 82.0741 256.48 63.7012 256.48 41.037C256.48 18.3729 238.107 0 215.443 \n0C192.779 0 174.406 18.3729 174.406 41.037C174.406 63.7012 192.779 82.0741 215.443 82.0741Z" fill="#0364FF" />\n</svg>',iconSrc:e.iconSrc,wallet:(n=u(regeneratorRuntime.mark(function e(n){var c,y,O;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=n.createModernProviderInterface,e.next=3,Promise.all([r.e(0),r.e(28)]).then(r.t.bind(null,"vGOQ",7));case 3:return y=new(0,e.sent.default)({buttonPosition:a,modalZIndex:s,apiKey:l}),e.next=8,y.init({buildEnv:f,enableLogging:p,network:{host:m||Object(t.m)(o),chainId:o,networkName:"".concat(Object(t.m)(o)," Network")},showTorusButton:b,enabledVerifiers:d,loginConfig:w,integrity:g,whiteLabel:h});case 8:return e.abrupt("return",{provider:O=y.provider,interface:i(i({},c(O)),{},{name:"Torus",dashboard:function(){return y.showWallet("home")},connect:function(){var e=u(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.login({verifier:v});case 2:return e.abrupt("return",{message:e.sent[0]});case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),disconnect:function(){return y.cleanUp()}}),instance:y});case 10:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),type:"sdk",desktop:!0,mobile:!0,preferred:c}}}}]);