1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[608],{46702:function(e,t,r){"use strict";var n=r(64836),o=n(r(18698)),i=n(r(56690)),a=n(r(89728)),s=n(r(66115)),u=n(r(61655)),c=n(r(94993)),d=n(r(73808));function l(e){var t=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(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}var p=r(67294),f=r(35577).generateQuery,h=[],y=!1,m=function(e){(0,u.default)(r,e);var t=l(r);function r(e){var n;(0,i.default)(this,r),(n=t.call(this,e)).renderCaptcha=n.renderCaptcha.bind((0,s.default)(n)),n.resetCaptcha=n.resetCaptcha.bind((0,s.default)(n)),n.removeCaptcha=n.removeCaptcha.bind((0,s.default)(n)),n.handleOnLoad=n.handleOnLoad.bind((0,s.default)(n)),n.handleSubmit=n.handleSubmit.bind((0,s.default)(n)),n.handleExpire=n.handleExpire.bind((0,s.default)(n)),n.handleError=n.handleError.bind((0,s.default)(n));var o="undefined"!==typeof hcaptcha;return n.ref=p.createRef(),n.state={isApiReady:o,isRemoved:!1,elementId:e.id,captchaId:""},n}return(0,a.default)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.apihost,r=e.assethost,n=e.endpoint,o=e.host,i=e.imghost,a=e.languageOverride,s=e.reCaptchaCompat,u=e.reportapi,c=e.sentry,d=e.custom;this.state.isApiReady?this.renderCaptcha():(y||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};y=!0,window.hcaptchaOnLoad=function(){h=h.filter((function(e){return e(),!1}))};var t=e.apihost||"https://hcaptcha.com";delete e.apihost;var r=document.createElement("script");r.src="".concat(t,"/1/api.js?render=explicit&onload=hcaptchaOnLoad"),r.async=!0;var n=f(e);r.src+=""!==n?"&".concat(n):"",document.head.appendChild(r)}({apihost:t,assethost:r,endpoint:n,hl:a,host:o,imghost:i,recaptchacompat:!1===s?"off":null,reportapi:u,sentry:c,custom:d}),h.push(this.handleOnLoad))}},{key:"componentWillUnmount",value:function(){var e=this.state,t=e.isApiReady,r=e.isRemoved,n=e.captchaId;t&&!r&&(hcaptcha.reset(n),hcaptcha.remove(n))}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.isApiReady===t.isApiReady&&this.state.isRemoved===t.isRemoved}},{key:"componentDidUpdate",value:function(e){var t=this;["sitekey","size","theme","tabindex","languageOverride","endpoint"].every((function(r){return e[r]===t.props[r]}))||this.removeCaptcha((function(){t.renderCaptcha()}))}},{key:"renderCaptcha",value:function(e){if(this.state.isApiReady){var t=Object.assign({"error-callback":this.handleError,"expired-callback":this.handleExpire,callback:this.handleSubmit},this.props,{hl:this.props.hl||this.props.languageOverride,languageOverride:void 0}),r=hcaptcha.render(this.ref.current,t);this.setState({isRemoved:!1,captchaId:r},(function(){e&&e()}))}}},{key:"resetCaptcha",value:function(){var e=this.state,t=e.isApiReady,r=e.isRemoved,n=e.captchaId;t&&!r&&hcaptcha.reset(n)}},{key:"removeCaptcha",value:function(e){var t=this.state,r=t.isApiReady,n=t.isRemoved,o=t.captchaId;r&&!n&&this.setState({isRemoved:!0},(function(){hcaptcha.remove(o),e&&e()}))}},{key:"handleOnLoad",value:function(){var e=this;this.setState({isApiReady:!0},(function(){e.renderCaptcha((function(){var t=e.props.onLoad;t&&t()}))}))}},{key:"handleSubmit",value:function(e){var t=this.props.onVerify,r=this.state,n=r.isRemoved,o=r.captchaId;"undefined"===typeof hcaptcha||n||t(hcaptcha.getResponse(o),hcaptcha.getRespKey(o))}},{key:"handleExpire",value:function(){var e=this.props.onExpire,t=this.state,r=t.isApiReady,n=t.isRemoved,o=t.captchaId;r&&!n&&(hcaptcha.reset(o),e&&e())}},{key:"handleError",value:function(e){var t=this.props.onError,r=this.state,n=r.isApiReady,o=r.isRemoved,i=r.captchaId;n&&!o&&(hcaptcha.reset(i),t&&t(e))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.state,r=t.isApiReady,n=t.isRemoved,i=t.captchaId;if(r&&!n)return e&&"object"!==(0,o.default)(e)&&(e=null),hcaptcha.execute(i,e)}},{key:"render",value:function(){var e=this.state.elementId;return p.createElement("div",{ref:this.ref,id:e})}}]),r}(p.Component);e.exports=m},35577:function(e,t,r){"use strict";var n=r(64836)(r(27424));e.exports={generateQuery:function(e){return Object.entries(e).filter((function(e){var t=(0,n.default)(e,2),r=(t[0],t[1]);return r||!1===r})).map((function(e){var t=(0,n.default)(e,2),r=t[0],o=t[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(o))})).join("&")}}},71738:function(e,t,r){"use strict";
1var n=r(85893),o=r(9008),i=r.n(o),a=r(45697),s=r.n(a),u=function(e){var t=e.title,r=e.description,o=e.keywords;return(0,n.jsxs)(i(),{children:[(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,n.jsx)("meta",{name:"theme-color",content:"#121212"}),(0,n.jsx)("meta",{name:"description",content:r}),(0,n.jsx)("meta",{name:"keywords",content:o}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,n.jsx)("link",{rel:"apple-touch-icon",href:"/logo192.png"}),(0,n.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,n.jsx)("title",{children:t})]})};u.propTypes={title:s().string.isRequired,description:s().string.isRequired,keywords:s().string},u.defaultProps={title:"AmPmCx",description:"AmPmCx is an online digital asset exchange that trades BTC, ETH, XRP, BCH, LTC and more.",keywords:"AmPmCx, cryptocurrency, digital asset, exchange, BTC, bitcoin, ETH, ethereum, XRP, USDT, tether, ERC-20, BCH, bitcoin cash, LTC, litecoin, markets, trade, limit order, market order, trading platform, wallet, deposit, withdraw"},t.Z=u},80184:function(e,t,r){"use strict";var n=r(85893),o=r(45697),i=r.n(o),a=r(82508),s=r(92950),u=r.n(s),c=function(e){var t=e.id,r=e.title,o=e.Body,i=e.customStyles,s=null!==i&&void 0!==i?i:u();return(0,n.jsx)("div",{className:s["modal-bg"],id:t,onClick:function(e){e.target.id===t&&(0,a.Mr)(t)},children:(0,n.jsxs)("div",{className:s.modal,children:[(0,n.jsxs)("div",{className:s.header,children:[(0,n.jsx)("h3",{children:r}),(0,n.jsx)("button",{onClick:function(){return(0,a.Mr)(t)},children:(0,n.jsx)("img",{src:"/icons/close.svg",alt:"",className:s["close-icon"],title:"Close"})})]}),(0,n.jsx)("div",{className:s.body,children:o})]})})};c.propTypes={id:i().string.isRequired,title:i().string.isRequired,Body:i().object.isRequired,customStyles:i().object},t.Z=c},53405:function(e,t,r){"use strict";var n=r(85893),o=r(67294),i=r(81043),a=r(43238),s=r(45697),u=r.n(s),c=r(11163),d=r(47512),l=function(e){var t=e.loginRequired,r=e.children,s=(0,i.v9)(a.KN),u=(0,o.useState)(!1),l=u[0],p=u[1],f=(0,c.useRouter)();return(0,o.useEffect)((function(){void 0!==s&&(s===t?p(!0):f.push("/"))}),[s,t,f]),l?(0,n.jsx)(n.Fragment,{children:r}):(0,n.jsx)(d.Z,{})};l.propTypes={loginRequired:u().bool.isRequired,children:u().node.isRequired},t.Z=l},44504:function(e,t,r){"use strict";var n=r(67294),o=r(82508);t.Z=function(){(0,n.useEffect)((function(){return(0,o.XY)(),o.K9}),[])}},82508:function(e,t,r){"use strict";r.d(t,{K4:function(){return n},K9:function(){return a},Mr:function(){return o},XY:function(){return i}});var n=function(e){document.getElementById(e).style.display="grid",i()},o=function(e){document.getElementById(e).style.display="none",a()},i=function(){document.body.style.position="fixed",document.body.style.width="100%",document.body.style.top="-".concat(window.scrollY,"px")},a=function(){var e=document.body.style.top;document.body.style.position="",document.body.style.width="",document.body.style.top="",window.scrollTo(0,-1*parseInt(e||"0"))}},4050:function(e,t,r){"use strict";r.d(t,{As:function(){return a},Jo:function(){return i},rd:function(){return n},tx:function(){return u},uo:function(){return o},v0:function(){return s}});var n=function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},o=function(e){return/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~`!@#$%^&*()_\-+={}[\]\\|:;"'<,>.?/]).{8,20}$/.test(e)},i=function(e){return/^[a-fA-F0-9]{40}\.[a-fA-F0-9]{200}$/.test(e)},a=function(e){return/^[a-fA-F0-9]{40}$/.test(e)},s=function(e){return/^\d{6}$/.test(e)},u=function(e){return/^[a-fA-F0-9]{10}$/.test(e)}},92950:function(e){e.exports={"modal-bg":"Modal_modal-bg__yM_ws",modal:"Modal_modal__qmj7u",header:"Modal_header__p2ob_","close-icon":"Modal_close-icon__D_PSc",body:"Modal_body__FV6y5"}},73897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},85372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},66115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},56690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},89728:function(e,t,r){var n=r(64062);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}e.exports=function(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},73808:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},61655:function(e,t,r){var n=r(6015);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports}
1,64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},68872:function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(d){c=!0,o=d}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},12218:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},94993:function(e,t,r){var n=r(18698).default,o=r(66115);e.exports=function(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},27424:function(e,t,r){var n=r(85372),o=r(68872),i=r(86116),a=r(12218);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},95036:function(e,t,r){var n=r(18698).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:function(e,t,r){var n=r(18698).default,o=r(95036);e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86116:function(e,t,r){var n=r(73897);e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.