/*! For license information please see components-blocks-StakingDetails-1729865573578.js.LICENSE.txt */
(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5787],{9408:function(t){var e;e=function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return w}});var r=n(279),o=n.n(r),i=n(370),c=n.n(i),a=n(817),u=n.n(a);function l(t){try{return document.execCommand(t)}catch(e){return!1}}var s=function(t){var e=u()(t);return l("cut"),e},f=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var r=u()(n);return l("copy"),n.remove(),r},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=f(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=f(t.value,e):(n=u()(t),l("copy")),n};function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}var m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,o=t.target,i=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==d(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?p(i,{container:r}):o?"cut"===n?s(o):p(o,{container:r}):void 0};function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=E(t);if(e){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function x(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(i,t);var e,n,r,o=b(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}return e=i,n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===y(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=c()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=m({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return x("action",t)}},{key:"defaultTarget",value:function(t){var e=x("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return x("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return p(t,e)}},{key:"cut",value:function(t){return s(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],n&&h(e.prototype,n),r&&h(e,r),i}(o()),w=S},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var r=n(828);function o(t,e,n,r,o){var c=i.apply(this,arguments);return t.addEventListener(n,c,o),{destroy:function(){t.removeEventListener(n,c,o)}}}function i(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}t.exports=function(t,e,n,r,i){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return o(t,e,n,r,i)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var r=n(879),o=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(r.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(r.string(t))return function(t,e,n){return o(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(t),r.removeAllRanges(),r.addRange(o),e=r.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function o(){r.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],o=[];if(r&&e)for(var i=0,c=r.length;i<c;i++)r[i].fn!==e&&r[i].fn._!==e&&o.push(r[i]);return o.length?n[t]=o:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(686)}().default},t.exports=e()},4327:function(t,e,n){var r;r=function(t,e,n,r){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./index.js")}({"./index.js":function(t,e,n){"use strict";n.r(e);var r=n("react"),o=n.n(r),i=n("react-dom"),c=n.n(i),a=n("prop-types"),u=n.n(a);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function m(t,e){return m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},m(t,e)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t){function e(){return s(this,e),p(this,d(e).apply(this,arguments))}var r,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(e,t),r=e,i=[{key:"propsWith",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return Object.keys(this.props).forEach((function(r){if(-1!==r.search(t)){var o=e?r.replace(t,""):r;n[o]=this.props[r]}}),this),n}},{key:"componentWillUnmount",value:function(){this.clipboard&&this.clipboard.destroy()}},{key:"componentDidMount",value:function(){var t=this.props.options||this.propsWith(/^option-/,!0),e=c.a.findDOMNode(this.element);if(e){var r=n("clipboard");this.clipboard=new r(e,t);var o=this.propsWith(/^on/,!0);Object.keys(o).forEach((function(t){this.clipboard.on(t.toLowerCase(),this.props["on"+t])}),this)}}},{key:"render",value:function(){var t=this,e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){y(t,e,n[e])}))}return t}({title:this.props.title||"",type:this.getType(),className:this.props.className||"",style:this.props.style||{},ref:function(e){return t.element=e},onClick:this.props.onClick},this.propsWith(/^data-/),this.propsWith(/^button-/,!0)),r=n("clipboard");return this.props.isVisibleWhenUnsupported||r.isSupported()?o.a.createElement(this.getComponent(),e,this.props.children):null}},{key:"getType",value:function(){return"button"===this.getComponent()||"input"===this.getComponent()?this.props.type||"button":void 0}},{key:"getComponent",value:function(){return this.props.component||"button"}}],i&&f(r.prototype,i),a&&f(r,a),e}(o.a.Component);y(h,"propTypes",{options:function(t,e,n){var r=t[e];return r&&"object"!==l(r)||Array.isArray(r)?new Error("Invalid props '".concat(e,"' supplied to '").concat(n,"'. ")+"'".concat(e,"' is not an object.")):void 0!==t["option-text"]&&"function"!=typeof t["option-text"]?new Error("Invalid props 'option-text' supplied to '".concat(n,"'. ")+"'option-text' is not a function."):void 0},title:u.a.string,type:u.a.string,className:u.a.string,style:u.a.object,component:u.a.any,children:u.a.any}),y(h,"defaultProps",{isVisibleWhenUnsupported:!0,onClick:function(){}}),e.default=h},clipboard:function(e,n){e.exports=t},"prop-types":function(t,n){t.exports=e},react:function(t,e){t.exports=n},"react-dom":function(t,e){t.exports=r}})},t.exports=r(n(9408),n(5697),n(7294),n(3935))},3312:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return y}});var r=n(7294),o=n(4983),i=n(5861),c=n(7757),a=n.n(c),u=function(){var t=(0,i.Z)(a().mark((function t(){var e;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("/asset-prices.json",{method:"GET"});case 2:return e=t.sent,t.t0=e.ok,t.next=6,e.json();case 6:return t.t1=t.sent,t.abrupt("return",{success:t.t0,data:t.t1});case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),l=n(8860),s=n(4327),f=n.n(s),p=n(2698),d=n(9782),m=n(6546),y=function(t){var e=t.StakingData,n=t.right_content,i=(0,r.useMemo)((function(){return"staking-details-checkbox-"+(0,p.EL)()}),[]),c=(0,r.useState)(!1),a=c[0],s=c[1],y=(0,r.useState)(e.price),h=y[0],v=y[1],b=(0,o.i)("StakingDetails.CopySuccess"),g=(0,o.i)("StakingDetails.RewardRate"),E=(0,o.i)("StakingDetails.Commission"),x=(0,o.i)("StakingDetails.UnbondingPeriod"),S=(0,o.i)("StakingDetails.Compounding"),w=(0,o.i)("StakingDetails.AssetPrice"),k=(0,o.i)("StakingDetails.Address"),_=(0,o.i)("Copy"),O=function(t,e){return r.createElement("div",{className:"row border-bottom gx-0 py-3"},r.createElement("div",{className:"col-6 col-md-4 col-lg-6 col-xl-3 pe-075"},r.createElement("span",{className:"fsize-0875 fw-bold"},t)),r.createElement("div",{className:"col-6 col-md-8 col-lg-6 col-xl-9 ps-075"},r.createElement("span",{className:"fsize-0875"},e)))};(0,r.useEffect)((function(){e.asset_key&&!h&&u().then((function(t){var n=t.success,r=t.data;if(n){var o=r[e.asset_key];null!=o&&v(o)}}))}),[]);var j=(0,o.i)("StakingDetails.AssetPriceSource");return r.createElement("div",{className:"staking-details__component pb-7 pb-md-10 pb-lg-19 pt-15 pt-md-19 pt-lg-20 position-relative bg-light"},r.createElement(l.LazyImage,{className:"illustration position-absolute top-0 start-0",imgClassName:"w-100 h-100",src:"/assets/staking-details/illustration.svg",imgWidth:584}),r.createElement("div",{className:"container-lg gx-4 gx-md-5 gx-lg-075 position-relative"},r.createElement("div",{className:"row align-items-center"},r.createElement("div",{className:"col-lg-6 col-xl-7"},r.createElement("div",{className:"bg-white rounded-4 p-4 p-md-7 p-lg-5 p-xl-7"},r.createElement("div",{className:"row align-items-center mb-7"},r.createElement("div",{className:"col-md-4 col-xl-3 text-center text-md-start"},r.createElement(l.LazyImage,{className:"card-logo",image:e.image})),r.createElement("div",{className:"col-md-8 col-xl-9 text-center text-md-start mt-5 mt-md-0"},r.createElement("h2",null,e.title))),O(g,e.reward_rate),O(E,e.comission),O(x,e.unbonding_period),O(S,e.compounding),h?O(w,"$"+h):null,r.createElement("div",{className:"row align-items-end mt-7"},r.createElement("div",{className:"col-md-9 col-lg-8 col-xl-9"},r.createElement(m.Input,{label:k,value:a?e.validator_address:"",required:!0,disabled:!0})),r.createElement("div",{className:"col-md-3 col-lg-4 col-xl-3"},r.createElement(f(),{title:_,className:"btn btn-primary w-100 mt-3 mt-md-0",component:"button","data-clipboard-text":e.validator_address,"button-disabled":!a,onSuccess:function(){d.Am.success(b,{autoClose:3e3,theme:"colored",position:"top-center"})}},_)),r.createElement("div",{className:"col-md-9 col-lg-12 col-xl-9"},r.createElement("div",{className:"form-check mt-4"},r.createElement("input",{id:i,className:"form-check-input",type:"checkbox",checked:a,onChange:function(){return!a&&s(!a)}}),r.createElement("label",{className:"form-check-label fsize-0875",htmlFor:i,dangerouslySetInnerHTML:{__html:e.checkbox_content}})))),r.createElement("span",{className:"d-block mt-5"},j))),r.createElement("div",{"dynamic-content":"",className:"col-lg-6 col-xl-4 offset-xl-1 mt-7 mt-lg-0",dangerouslySetInnerHTML:{__html:n}}))))}}}]);