forked from Romeo-Rosete/EXCHANGE-SECURITY
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path43560-79c238f6a50d9f1.js.download
1 lines (1 loc) · 15.6 KB
/
43560-79c238f6a50d9f1.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43560],{43560:function(n,t,e){e.d(t,{ZP:function(){return A},JC:function(){return I},dd:function(){return O}});var o=e(62230),i=e(85244),r=e(52322),a=e(2784),d=e(28316),c=e(82740),u=e(72779),l=e.n(u),s=e(81730),p=e(50285),f=e(43784),h=e(16090),x=e(68050),v=e(75190),m=e(87681);function g(){var n=(0,v.Z)(["\n position: fixed;\n z-index: 9999;\n width: 100%;\n height: 100%;\n background: rgba(10, 30, 66, 0.4);\n display: flex;\n justify-content: center;\n align-items: center;\n\n transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out,\n box-shadow 0.3s ease-in-out;\n top: 0;\n left: 0;\n .close-button {\n color: #a6b0c3;\n font-size: 12px;\n z-index: 1;\n cursor: pointer;\n // float: right;\n position: absolute;\n ",": 18px;\n top: 18px;\n z-index: 1;\n @media (max-width: ","px) {\n right: 0px;\n top: 16px;\n }\n @media (max-width: ","px) {\n right: 16px;\n }\n }\n > div {\n max-height: 90vh;\n display: flex;\n flex-direction: column;\n transition: height 0.3s ease-in-out;\n &::-webkit-scrollbar {\n display: none;\n }\n > button {\n margin-top: 24px;\n }\n max-width: 100vw;\n position: relative;\n\n @media (max-width: ","px) {\n width: 100vw;\n height: 100%;\n max-height: 100%;\n &:not(.has-style) {\n width: 100vw !important;\n height: 100% !important;\n max-height: 100% !important;\n }\n border-radius: 0;\n }\n\n background: var(--control-background-color);\n border-radius: 16px;\n overflow: hidden;\n }\n ","\n &.modalOpened {\n ","\n }\n &.minimizeOnMobile > div {\n @media (max-width: ","px) {\n height: unset !important;\n width: 86vw !important;\n border-radius: 16px;\n /* background: var(--bg-color); */\n }\n > div.has-title {\n box-shadow: none;\n font-size: 24px;\n }\n }\n"]);return g=function(){return n},n}function b(){var n=(0,v.Z)(["\n text-align: start;\n font-weight: 600;\n font-size: 24px;\n color: var(--color-primary-black);\n line-height: inherit;\n position: relative;\n flex-shrink: 0;\n\n padding: 24px;\n /* position: sticky; */\n z-index: 1010;\n &.has-title {\n background: var(--control-background-color);\n }\n /* padding-top: 0px; */\n\n > span {\n width: 100%;\n }\n\n @media (max-width: ","px) {\n padding: 16px;\n font-size: 16px;\n /* top: -10px; */\n &.has-title {\n /* top: -16px; */\n line-height: 1.5;\n box-shadow: var(--box-shadow);\n }\n /* margin-top: -16px;\n margin-left: -16px;\n margin-right: -16px; */\n /* padding-top: 16px; */\n }\n"]);return b=function(){return n},n}function w(){var n=(0,v.Z)(["\n padding: 16px 24px;\n overflow-y: scroll;\n scrollbar-width: none; /* Firefox */\n ","\n overscroll-behavior-y: contain;\n\n &.has-title {\n padding-top: 0px;\n }\n &.has-footer {\n padding-bottom: 0px;\n }\n @media (max-width: ","px) {\n padding: 16px;\n flex-grow: 1;\n\n &.has-title {\n padding-top: 16px;\n }\n &.has-footer {\n padding-bottom: 16px;\n }\n }\n"]);return w=function(){return n},n}function y(){var n=(0,v.Z)(["\n /* position: sticky; */\n /* bottom: 0; */\n // background-color: ;\n flex-shrink: 0;\n background-color: var(--control-background-color);\n /* width: 100%; */\n /* padding: 8px 0px 0px; */\n padding: 16px 24px;\n\n @media (max-width: ","px) {\n padding: 16px;\n box-shadow: var(--box-shadow);\n /* position: fixed; */\n /* bottom: 0; */\n /* left: 0; */\n }\n button {\n width: 100%;\n }\n"]);return y=function(){return n},n}var Z=c.ZP.div.withConfig({componentId:"sc-acb6320-0"})(g(),(function(n){return n.theme.rtl?"left":"right"}),m.AV.XSMALL_MIN,m.AV.XSMALL_MIN,m.AV.XSMALL_MIN,(function(n){return"slide"===n.animation?"\n transform: translateX(-100%);\n ":"visibility: hidden;\n opacity: 0;"}),(function(n){return"slide"===n.animation?"\n transform: none;\n box-shadow: 0px 0px 300px rgb(0 0 0 / 60%);\n ":"\n visibility: visible;\n opacity: 1;\n "}),m.AV.XSMALL_MIN),k=c.ZP.div.withConfig({componentId:"sc-acb6320-1"})(b(),m.AV.XSMALL_MIN),C=c.ZP.div.withConfig({componentId:"sc-acb6320-2"})(w(),(0,m.xt)(0),m.AV.XSMALL_MIN),S=c.ZP.div.withConfig({componentId:"sc-acb6320-3"})(y(),m.AV.XSMALL_MIN),z=e(33402),L=function(n,t){(0,a.useLayoutEffect)((function(){n&&function(){if(t.current){var n=t.current.querySelector("input[type=email],input[type=password], input[type=text],input[type=tel],input[type=number],input[type=search],textarea,[contenteditable=true]");(0,z.Z)(n,HTMLElement)&&setTimeout((function(){n.focus()}),500)}}()}),[n])},j=function(n){var t=n.open,e=n.okText,o=n.onClose,i=void 0===o?x.Z:o,r=n.destroyOnClose,d=n.onOK,c=n.style,u=n.hideFooter,l=n.children,s=n.title,p=n.bodyStyle,f=n.titleStyle,h=n.closable,v=void 0===h||h,m=n.wrapperClassName,g=n.closeOnShadeClick,b=void 0===g||g,w=n.bodyWrapperRef,y=n.footer,Z=n.useAnimation,k=n.contentStyle,C=n.minimizeOnMobile,S=n.noAutoFocus,z=n.lockBodyOnShow,j=void 0===z||z,I=n.animation,O=void 0===I?"fade":I,A=n.wrapperStyle,N=void 0===A?void 0:A,R=n.closeButtonStyle,P=n.okBtnDisableStatus;var E=(0,a.useState)(t),B=E[0],H=E[1],_=(0,a.useState)(t),W=_[0],F=_[1],V=(0,a.useState)(void 0),X=V[0],K=V[1],T=(0,a.useRef)(),D=(0,a.useRef)("");return L(B&&!S,T),(0,a.useEffect)((function(){if(j)return B?(D.current=window.document.body.style.overflow,window.document.body.style.overflow="hidden"):window.document.body.style.overflow=D.current,function(){window.document.body.style.overflow=D.current}}),[B]),(0,a.useEffect)((function(){t?(F(!0),"fade"!==O?(window.requestIdleCallback||window.requestAnimationFrame)((function(){H(!0)})):H(!0)):B&&(H(!1),r&&setTimeout((function(){F(!1)}),500))}),[t]),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.Z,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Escape";(0,a.useEffect)((function(){var e=function(e){e.key===t&&n()};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}))}((function(){t&&i()})),(0,a.useEffect)((function(){window.isModelOpen=W&&B}),[W,B]),(0,a.useLayoutEffect)((function(){if(W&&T.current&&Z){var n=new MutationObserver((function(n,t){if(T.current){var e=T.current.children[1]||T.current.children[0];K(null===e||void 0===e?void 0:e.scrollHeight)}}));return n.observe(T.current,{childList:!0,subtree:!0}),function(){return n.disconnect()}}}),[W]),W?M({showed:B,okText:e,onClose:i,onOK:d,style:c,hideFooter:u,children:l,wrapperClassName:m,bodyStyle:p,titleStyle:f,title:s,closable:v,closeOnShadeClick:b,footer:y,bodyWrapperRef:w,bodyRef:T,bodyHeight:X,contentStyle:k,minimizeOnMobile:C,animation:O,wrapperStyle:N,closeButtonStyle:R,okBtnDisableStatus:P}):null},M=function(n){var t=n.showed,e=n.onClose,i=n.style,a=void 0===i?{}:i,c=n.children,u=n.hideFooter,f=n.onOK,h=n.okText,x=n.wrapperClassName,v=void 0===x?"":x,m=n.titleStyle,g=n.bodyStyle,b=n.title,w=n.closable,y=n.closeOnShadeClick,z=n.footer,L=n.bodyWrapperRef,j=n.bodyRef,M=n.bodyHeight,I=n.contentStyle,O=n.minimizeOnMobile,A=n.animation,N=n.wrapperStyle,R=n.closeButtonStyle,P=n.okBtnDisableStatus,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return d.createPortal((0,r.jsx)(Z,{animation:A,className:"".concat(t?"modalOpened":""," ").concat(v||""," ").concat(O?"minimizeOnMobile":""),onClick:function(n){n.stopPropagation(),y&&e&&e()},style:N,children:(0,r.jsxs)("div",{onClick:function(n){return n.stopPropagation()},style:(0,o.Z)({height:M},g,a),ref:j,className:l()("cmc-modal",{"has-style":(null===g||void 0===g?void 0:g.height)||(null===g||void 0===g?void 0:g.width)}),children:[b?(0,r.jsxs)(k,{style:m,className:l()("cmc-modal-title",{"has-title":b}),children:[(0,r.jsx)("span",{children:b}),w&&(0,r.jsx)(p.Z,{onClick:function(){e&&e()},className:"close-button",style:R})]}):w&&(0,r.jsx)(p.Z,{onClick:e,className:"close-button",style:R}),(0,r.jsx)(C,{ref:L,className:l()("cmc-modal-body",{"has-title":b,"has-footer":!u}),style:I,children:c}),!u&&(0,r.jsx)(S,{children:z||(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.ZP,{disabled:P,variant:"primary",onClick:f,children:h||"OK"})})})]})}),E)},I=function(n,t){var e=document.createElement("div");document.body.appendChild(e);var i=function(){return document.body.removeChild(e)},a=M((0,o.Z)({showed:!0,onClose:i,style:{zIndex:1},onOK:i,closeOnShadeClick:!0},n(i),t||{}),e),u="night"===h.pR.get("cmc-theme")?f.B:f.v;d.render((0,r.jsx)(c.f6,{theme:u,children:a}),e)},O=function(n){var t=(0,a.useState)(!1),e=t[0],d=t[1],c=n((function(){return d(!1)}));return{Component:e?(0,r.jsx)(j,(0,i.Z)((0,o.Z)({},c),{showed:!0,onClose:function(){return d(!1)},open:!0})):null,close:function(){return d(!1)},open:function(){return d(!0)}}},A=j},78320:function(n,t,e){var o=e(75190),i=e(82740),r=e(58358),a=(e(2784),e(53563));function d(){var n=(0,o.Z)(["\n box-sizing: border-box;\n margin: 0;\n\n a:-webkit-any-link {\n text-decoration: none;\n }\n\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n"]);return d=function(){return n},n}var c=i.ZP.div.withConfig({componentId:"sc-aef7b723-0"})(d(),a.Z,r.layout,r.grid,r.flexbox,r.color,r.shadow,r.border,(function(n){return n.css||""}));t.Z=c},81730:function(n,t,e){e.d(t,{KM:function(){return b}});var o=e(62230),i=e(85244),r=e(98240),a=e(75190),d=e(52322),c=e(2784),u=e(82740),l=e(58358),s=e(53563),p=e(89169);function f(){var n=(0,a.Z)(["\n align-items: center;\n\n background: ",";\n border: ",";\n border-radius: ",";\n display: inline-flex;\n color: ",";\n cursor: pointer;\n justify-content: center;\n outline: 0;\n font-weight: 600;\n width: ",";\n\n &:hover:not(:disabled) {\n background: ",";\n color: ",";\n text-decoration: none;\n }\n\n &:active {\n background: ",";\n color: ",";\n }\n\n &:focus {\n background: ",";\n box-shadow: ",";\n color: ",";\n }\n\n &:disabled {\n background: ",";\n color: ",";\n opacity: ",";\n cursor: not-allowed;\n }\n\n ","\n\n ","\n > a, >a:hover {\n color: unset;\n }\n"]);return f=function(){return n},n}function h(){var n=(0,a.Z)(["\n align-items: center;\n display: flex;\n justify-content: center;\n margin-inline-start: ",";\n margin-inline-end: ",";\n"]);return h=function(){return n},n}var x=u.ZP.button.withConfig({componentId:"sc-2861d03b-0"})(f(),(function(n){var t=n.theme,e=n.variant;return t.buttons[e].background}),(function(n){var t=n.theme,e=n.variant,o=n.disabled;return"outline"!==e||o?0:"1px solid ".concat(t.buttons[e].borderColor)}),(function(n){return n.rounded?"50vh":"8px"}),(function(n){var t=n.theme,e=n.variant;return t.buttons[e].color}),(function(n){return n.fullWidth?"100%":"auto"}),(function(n){var t=n.theme,e=n.variant;return t.buttons[e].backgroundHover}),(function(n){var t=n.theme,e=n.variant;return t.buttons[e].color}),(function(n){var t=n.theme,e=n.variant;return t.buttons[e].backgroundActive}),(function(n){var t=n.theme,e=n.variant;return t.buttons[e].colorActive||""}),(function(n){var t=n.theme,e=n.variant;return t.buttons[e].backgroundFocus}),(function(n){var t=n.theme,e=n.variant;return"0 0 0 3px ".concat(t.buttons[e].focusShadowColor)}),(function(n){var t=n.theme,e=n.variant;return t.buttons[e].color}),(function(n){var t=n.theme,e=n.variant;return t.buttons[e].backgroundDisabled}),(function(n){var t=n.theme,e=n.variant;return t.buttons[e].colorDisabled}),(function(n){return n.theme.buttons.disabledOpacity}),(0,l.variant)({prop:"size",variants:{xs:{height:"22px",fontSize:"11px",padding:"2px 8px",lineHeight:"11px"},sm:{height:"32px",fontSize:"12px",padding:"0 16px",lineHeight:"18px"},md:{height:"40px",fontSize:"14px",padding:"0 24px",lineHeight:"24px"},lg:{height:"48px",fontSize:"14px",padding:"0 24px",lineHeight:"24px"},xl:{height:"48px",fontSize:"16px",padding:"0 24px",lineHeight:"26px"},xxl:{height:"56px",fontSize:"16px",padding:"0 24px",lineHeight:"26px"}}}),s.Z),v={sm:"16px",md:"18px",lg:"20px",xl:"24px",xxl:"32px"},m=u.ZP.span.withConfig({componentId:"sc-2861d03b-1"})(h(),(function(n){return n.appendIcon?"4px":"0"}),(function(n){return n.appendIcon?"0":"4px"})),g=c.forwardRef((function(n,t){var e=n.children,a=n.variant,c=void 0===a?"default":a,u=n.icon,l=n.appendIcon,s=void 0!==l&&l,f=n.size,h=void 0===f?"md":f,g=n.iconSize,b=void 0===g?h:g,w=n.fullWidth,y=void 0!==w&&w,Z=n.rounded,k=void 0!==Z&&Z,C=n.iconColor,S=void 0===C?"currentColor":C,z=n.loading,L=void 0!==z&&z,j=(0,r.Z)(n,["children","variant","icon","appendIcon","size","iconSize","fullWidth","rounded","iconColor","loading"]),M=(0,o.Z)({variant:c,icon:u,appendIcon:s,size:h,iconSize:b,fullWidth:y,rounded:k,iconColor:S},j),I=L?(0,d.jsx)(p.Z,{style:{height:"1em"}}):u?(0,d.jsx)(m,{appendIcon:s,children:(0,d.jsx)(u,{size:v[b],color:S})}):null;return(0,d.jsxs)(x,(0,i.Z)((0,o.Z)({},M),{ref:t,"data-sensors-click":!0,children:[!s&&I,e,s&&I]}))})),b=function(n){return(0,d.jsx)(g,(0,i.Z)((0,o.Z)({},n),{variant:"primary"}))};g.defaultProps={variant:"default",size:"md",fullWidth:!1,rounded:!1,iconColor:"currentColor"},t.ZP=g},69591:function(n,t,e){var o=e(62230),i=e(85244),r=e(98240),a=e(52322),d=(e(2784),e(78320));t.Z=function(n){var t=n.size,e=void 0===t?"24px":t,c=n.fill,u=void 0===c?"currentColor":c,l=n.viewBox,s=void 0===l?"0 0 24 24":l,p=n.children,f=(0,r.Z)(n,["size","fill","viewBox","children"]);return(0,a.jsx)(d.Z,(0,i.Z)((0,o.Z)({as:"svg",xmlns:"http://www.w3.org/2000/svg",fill:u,height:e,width:e,viewBox:s},f),{children:p}))}},89169:function(n,t,e){e.d(t,{Z:function(){return h}});var o=e(62230),i=e(75190),r=e(52322),a=(e(2784),e(82740)),d=e(85244),c=e(69591),u=function(n){return(0,r.jsx)(c.Z,(0,d.Z)((0,o.Z)({viewBox:"0 0 512 512"},n),{children:(0,r.jsx)("path",{d:"M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"})}))};function l(){var n=(0,i.Z)(["\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.Z)(["\n animation: "," 1.2s linear infinite;\n display: inline-flex;\n\n svg {\n vertical-align: top;\n }\n"]);return s=function(){return n},n}var p=(0,a.F4)(l()),f=a.ZP.div.withConfig({componentId:"sc-68e24449-0"})(s(),p),h=function(n){return(0,r.jsx)(f,{children:(0,r.jsx)(u,(0,o.Z)({},n))})}},50285:function(n,t,e){var o=e(62230),i=e(85244),r=e(52322),a=(e(2784),e(69591));t.Z=function(n){return(0,r.jsx)(a.Z,(0,i.Z)((0,o.Z)({},n),{children:(0,r.jsx)("path",{d:"M18 6L6 18M18 18L6 6",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}))}},53563:function(n,t,e){e.d(t,{Z:function(){return c}});var o=e(67557),i=e(62230),r=e(85244),a=e(22386),d=e(54604);function c(n){var t=(0,d.ZP)(n);return n.theme.rtl&&"ltr"!==n.dir?Object.entries(t).reduce((function(n,t){var e=(0,a.Z)(t,2),d=e[0],c=e[1],u=d;"marginLeft"===d&&(u="marginRight"),"paddingLeft"===d&&(u="paddingRight"),"marginRight"===d&&(u="marginLeft"),"paddingRight"===d&&(u="paddingLeft");var l=c;return d.startsWith("@media")&&(l=Object.entries(c).reduce((function(n,t){var e=(0,a.Z)(t,2),d=e[0],c=e[1],u=d;return"marginLeft"===d&&(u="marginRight"),"paddingLeft"===d&&(u="paddingRight"),"marginRight"===d&&(u="marginLeft"),"paddingRight"===d&&(u="paddingLeft"),(0,r.Z)((0,i.Z)({},n),(0,o.Z)({},u,c))}),{})),(0,r.Z)((0,i.Z)({},n),(0,o.Z)({},u,l))}),{}):t}}}]);