@para-ui/core 2.2.45 → 2.2.47

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.
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @author linhd
3
+ * @date 2023/2/14 10:24
4
+ * @description 滑块验证
5
+ */
6
+ import React, { FunctionComponent } from 'react';
7
+ import './index.scss';
8
+ export interface DragVerifyImgProps {
9
+ /** 背景图 */
10
+ sourceImage?: string;
11
+ /** 移动图 */
12
+ newImage?: string;
13
+ /** Y轴位置 */
14
+ y?: number;
15
+ [name: string]: any;
16
+ }
17
+ export interface DragVerifyProps {
18
+ /** 类名 */
19
+ className?: string;
20
+ /** 样式 */
21
+ style?: React.CSSProperties;
22
+ width?: number | string;
23
+ /** 图片高 */
24
+ height?: number | string;
25
+ /** 刷新 */
26
+ refresh?: any;
27
+ /** 获取图片接口 */
28
+ getImgInfo: () => (Promise<DragVerifyImgProps> | DragVerifyImgProps);
29
+ /** 提交校验接口 xPos: x轴坐标,imgInfo:图片信息
30
+ * true 通过
31
+ * false 不通过
32
+ * */
33
+ verify: (xPos: number, imgInfo: DragVerifyImgProps) => Promise<boolean> | boolean;
34
+ }
35
+ export declare const DragVerify: FunctionComponent<DragVerifyProps>;
36
+ export default DragVerify;
@@ -0,0 +1,15 @@
1
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("clsx"),require("@para-ui/icons/DoubleRight"),require("@para-ui/icons/Close"),require("@para-ui/icons/Check"),require("@para-ui/core/GlobalContext"),require("@para-ui/icons/LoadingF")):"function"==typeof define&&define.amd?define(["react","clsx","@para-ui/icons/DoubleRight","@para-ui/icons/Close","@para-ui/icons/Check","@para-ui/core/GlobalContext","@para-ui/icons/LoadingF"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("clsx"),require("@para-ui/icons/DoubleRight"),require("@para-ui/icons/Close"),require("@para-ui/icons/Check"),require("@para-ui/core/GlobalContext"),require("@para-ui/icons/LoadingF")):e.ParaUI=r(e.react,e.clsx,e["@para-ui/icons/DoubleRight"],e["@para-ui/icons/Close"],e["@para-ui/icons/Check"],e["@para-ui/core/GlobalContext"],e["@para-ui/icons/LoadingF"])}(self,(function(e,r,t,i,o,n,a){return function(){var s={8271:function(e,r,t){(r=t(3645)(!1)).push([e.id,".paraui-drag-verify{width:100%;position:relative}.paraui-drag-verify>svg{position:absolute;right:4px;top:4px;z-index:10;cursor:pointer;display:none}.paraui-drag-verify>.slider-img{position:relative;border-radius:4px;overflow:hidden;line-height:0;min-height:60px}.paraui-drag-verify>.slider-img .slider-img-bg{width:100%;height:auto;border-radius:4px}.paraui-drag-verify>.slider-img .slider-img-move{position:absolute;left:0;height:auto}.paraui-drag-verify>.slider-move{position:relative;text-align:center;line-height:32px;height:32px;margin-top:12px}.paraui-drag-verify>.slider-move>.slider-move-bg{position:absolute;left:0;right:0;top:0;background-color:rgba(171,176,185,.12);height:32px;border-radius:4px;border:1px solid rgba(171,176,185,.2)}.paraui-drag-verify>.slider-move>.slider-move-mask{position:absolute;left:0;top:0;height:32px;width:2px;border-bottom-left-radius:4px;border-top-left-radius:4px}.paraui-drag-verify>.slider-move>.slider-move-mask>.slider-move-box{position:absolute;top:0;left:-1px;width:32px;height:32px;background:#fff;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(171,176,185,.2)}.paraui-drag-verify>.slider-move>.slider-move-mask>.slider-move-box:hover .svg-right{color:#3666d6}.paraui-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-right{display:inline-block;color:rgba(46,55,67,.7)}.paraui-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-close{display:none}.paraui-drag-verify>.slider-move>.slider-move-mask>.slider-move-box .svg-check{display:none}.paraui-drag-verify>.slider-move>.slider-move-text{color:rgba(46,55,67,.4);font-size:14px}.paraui-drag-verify.paraui-drag-verify-move>.slider-move>.slider-move-mask{border:1px solid #3666d6;border-width:1px 0 1px 1px;background-color:rgba(54,102,214,.05)}.paraui-drag-verify.paraui-drag-verify-move>.slider-move>.slider-move-mask>.slider-move-box{background-color:#3666d6;border-top:1px solid #3666d6;border-bottom:1px solid #3666d6;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-drag-verify.paraui-drag-verify-move>.slider-move>.slider-move-mask>.slider-move-box>.svg-right{color:#fff}.paraui-drag-verify.paraui-drag-verify-error>.slider-move>.slider-move-mask{border:1px solid #eb6054;border-width:1px 0 1px 1px;background-color:rgba(54,102,214,.05)}.paraui-drag-verify.paraui-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box{background-color:#eb6054;border-top:1px solid #eb6054;border-bottom:1px solid #eb6054;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-drag-verify.paraui-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-close{display:inline-block;color:#fff}.paraui-drag-verify.paraui-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-right{display:none}.paraui-drag-verify.paraui-drag-verify-error>.slider-move>.slider-move-mask>.slider-move-box>.svg-check{display:none}.paraui-drag-verify.paraui-drag-verify-success>.slider-move>.slider-move-mask{border:1px solid #53c31b;border-width:1px 0 1px 1px;background-color:rgba(83,195,27,.05)}.paraui-drag-verify.paraui-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box{background-color:#53c31b;border-top:1px solid #53c31b;border-bottom:1px solid #53c31b;top:-1px;border-bottom-left-radius:0;border-top-left-radius:0}.paraui-drag-verify.paraui-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-close{display:none}.paraui-drag-verify.paraui-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-right{display:none}.paraui-drag-verify.paraui-drag-verify-success>.slider-move>.slider-move-mask>.slider-move-box .svg-check{display:inline-block;color:#fff}",""]),e.exports=r},5714:function(e,r,t){(r=t(3645)(!1)).push([e.id,"@keyframes rotateLoading{0%{transformOrigin:50% 50%}100%{transform:rotate(360deg)}}.paraui-loading{position:absolute;left:0;top:0;width:100%;height:100%}.paraui-loading .paraui-loading-mask{position:absolute;width:100%;height:100%;background-color:#fff;z-index:100}.paraui-loading .paraui-loading-box{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:101}.paraui-loading .paraui-loading-box>svg{transition:all .3s ease-in-out;animation:rotateLoading 1s infinite linear;font-size:20px}",""]),e.exports=r},3645:function(e){"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map((function(r){var t=function(e,r){var t=e[1]||"",i=e[3];if(!i)return t;if(r&&"function"==typeof btoa){var o=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),n=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[t].concat(n).concat([o]).join("\n")}var a,s,l;return[t].join("\n")}(r,e);return r[2]?"@media ".concat(r[2]," {").concat(t,"}"):t})).join("")},r.i=function(e,t,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var n=0;n<this.length;n++){var a=this[n][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);i&&o[l[0]]||(t&&(l[2]?l[2]="".concat(t," and ").concat(l[2]):l[2]=t),r.push(l))}},r}},7418:function(e){"use strict";
2
+ /*
3
+ object-assign
4
+ (c) Sindre Sorhus
5
+ @license MIT
6
+ */var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var a,s,l=o(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))t.call(a,u)&&(l[u]=a[u]);if(r){s=r(a);for(var d=0;d<s.length;d++)i.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},5251:function(e,r,t){"use strict";
7
+ /** @license React v17.0.2
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ t(7418);var i=t(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;o=n("react.element"),n("react.fragment")}var a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,r,t){var i,n={},c=null,u=null;for(i in void 0!==t&&(c=""+t),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(u=r.ref),r)s.call(r,i)&&!l.hasOwnProperty(i)&&(n[i]=r[i]);if(e&&e.defaultProps)for(i in r=e.defaultProps)void 0===n[i]&&(n[i]=r[i]);return{$$typeof:o,type:e,key:c,ref:u,props:n,_owner:a.current}}r.jsx=c,r.jsxs=c},5893:function(e,r,t){"use strict";e.exports=t(5251)},5902:function(e,r,t){var i=t(3379),o=t(8271);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var n={insert:("body","body"),singleton:!1};i(o,n);e.exports=o.locals||{}},3492:function(e,r,t){var i=t(3379),o=t(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var n={insert:("body","body"),singleton:!1};i(o,n);e.exports=o.locals||{}},3379:function(e,r,t){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},n=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function s(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function l(e,r){for(var t={},i=[],o=0;o<e.length;o++){var n=e[o],l=r.base?n[0]+r.base:n[0],c=t[l]||0,u="".concat(l," ").concat(c);t[l]=c+1;var d=s(u),f={css:n[1],media:n[2],sourceMap:n[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:g(f,r),references:1}),i.push(u)}return i}function c(e){var r=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=t.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){r.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(r);else{var a=n(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var u,d=(u=[],function(e,r){return u[e]=r,u.filter(Boolean).join("\n")});function f(e,r,t,i){var o=t?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(r,o);else{var n=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(n,a[r]):e.appendChild(n)}}function p(e,r,t){var i=t.css,o=t.media,n=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var v=null,m=0;function g(e,r){var t,i,o;if(r.singleton){var n=m++;t=v||(v=c(r)),i=f.bind(null,t,n,!1),o=f.bind(null,t,n,!0)}else t=c(r),i=p.bind(null,t,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return i(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;i(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=l(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<t.length;i++){var o=s(t[i]);a[o].references--}for(var n=l(e,r),c=0;c<t.length;c++){var u=s(t[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}t=n}}}},2735:function(e,r,t){"use strict";t.d(r,{W:function(){return i}});var i="paraui"},3054:function(e,r,t){"use strict";var i=t(8156),o=t.n(i),n=t(5395),a=t.n(n);r.Z=function(e,r){var t=o().useContext(a()).intlFormat;return r.zh_CN=r.zh,r["zh-CN"]=r.zh,r.en_US=r.en,r["en-US"]=r.en,t&&t(e,r)}},7502:function(e,r,t){"use strict";var i=t(5893),o=t(8156),n=t(2788),a=t.n(n),s=(t(3492),function(){return s=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},s.apply(this,arguments)});r.default=function(e){var r=e.className,t=e.style,n=e.opacity,l=void 0===n?.7:n,c=(0,o.useRef)(null);(0,o.useEffect)((function(){c&&c.current&&c.current.parentNode&&(c.current.parentNode.style.position||(c.current.parentNode.style.position="relative"))}),[]);var u;return(0,i.jsxs)("div",s({className:(u="paraui-loading",r&&(u+=" "+r),u),style:t,ref:c},{children:[(0,i.jsx)("div",s({className:"paraui-loading-box"},{children:(0,i.jsx)(a(),{})})),(0,i.jsx)("div",{className:"paraui-loading-mask",style:{opacity:l}})]}))}},5395:function(e){"use strict";e.exports=n},2004:function(e){"use strict";e.exports=o},5927:function(e){"use strict";e.exports=i},9438:function(e){"use strict";e.exports=t},2788:function(e){"use strict";e.exports=a},5744:function(e){"use strict";e.exports=r},8156:function(r){"use strict";r.exports=e}},l={};function c(e){var r=l[e];if(void 0!==r)return r.exports;var t=l[e]={id:e,exports:{}};return s[e](t,t.exports,c),t.exports}c.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(r,{a:r}),r},c.d=function(e,r){for(var t in r)c.o(r,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},c.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nc=void 0;var u={};return function(){"use strict";c.r(u),c.d(u,{DragVerify:function(){return b},default:function(){return x}});var e=c(5893),r=c(8156),t=c(5744),i=c.n(t),o=c(9438),n=c.n(o),a=c(5927),s=c.n(a),l=c(2004),d=c.n(l),f=c(2735),p=c(3054),v={zh:{tryAgain:"再试一次",swipe:"向右滑动填充拼图"},en:{tryAgain:"Try again",swipe:"Swipe right to fill puzzle"}},m=c(7502),g=(c(5902),function(){return g=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},g.apply(this,arguments)}),y=function(e,r,t,i){return new(t||(t=Promise))((function(o,n){function a(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var r;e.done?o(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(a,s)}l((i=i.apply(e,r||[])).next())}))},h=function(e,r){var t,i,o,n,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,s[0]&&(a=0)),a;)try{if(t=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=r.call(e,a)}catch(e){s=[6,e],i=0}finally{t=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},b=function(t){var o=t.className,a=t.style,l=t.refresh,c=t.getImgInfo,u=t.verify,b=t.width,x=t.height,j=(0,p.Z)("DragVerify",v),w=(0,r.useState)(),k=w[0],S=w[1],O=(0,r.useState)(!1),C=O[0],N=O[1],q=(0,r.useRef)(null),_=(0,r.useRef)({getImgInfo:c,verify:u}),I=f.W+"-drag-verify";_.current.getImgInfo=c,_.current.verify=u,(0,r.useEffect)((function(){return T(),L(),function(){clearTimeout(_.current.timerError),clearTimeout(_.current.timerSuccess)}}),[l,k]);var L=function(){return y(void 0,void 0,void 0,(function(){var e;return h(this,(function(r){switch(r.label){case 0:return _.current.padding=!0,N(!0),[4,_.current.getImgInfo()];case 1:return e=r.sent(),_.current.imgInfo=e,F(),[2]}}))}))},F=function(){var e;if(q.current){var r=document.createElement("img");r.setAttribute("src",null===(e=_.current.imgInfo)||void 0===e?void 0:e.sourceImage),r.style.display="none";var t=document.createElement("img");_.current.imgMove=t,t.className="slider-img-move",t.style.display="none";var i=q.current.querySelector(".slider-img"),o=q.current.querySelector(".refresh");i&&o&&(o.style.display="none",i.innerHTML="",i.append(r),r.onload=function(){var e;r.style.display="inline-block",t.setAttribute("src",null===(e=_.current.imgInfo)||void 0===e?void 0:e.newImage);var i=r.width;if(r.className="slider-img-bg",r.style.display="inline-block",q.current){var n=q.current.querySelector(".slider-img"),a=(null==n?void 0:n.getBoundingClientRect()).width;_.current.imgScale=i/a,null==n||n.append(t),t.onload=function(){var e;_.current.padding=!1,t.style.display="inline-block",o.style.display="inline-block",t.width=t.width/_.current.imgScale,t.style.top=(null===(e=_.current.imgInfo)||void 0===e?void 0:e.y)/_.current.imgScale+"px",N(!1)}}},M(r,t))}},M=function(e,r){var t=q.current;if(t){var i=t.querySelector(".slider-move-box"),o=t.querySelector(".slider-move-mask"),n=t.querySelector(".slider-move"),a=t.querySelector(".slider-move-text"),s=n.getBoundingClientRect(),l=i.getBoundingClientRect().width,c=s.width;i.onmousedown=function(n){_.current.padding||(t.classList.add(I+"-move"),document.onmousemove=function(t){var s=t.pageX-n.pageX;s<0&&(s=0),s+l>e.width&&(s=e.width-l),i.style.left=s-1+"px",o.style.width=(s<2?2:s)+"px";var u=s/(c-l),d=(e.width-r.width)*u;r.style.left=d+"px",a.innerHTML=""},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,t.classList.remove(I+"-move"),_.current.padding=!0;var e,i,o=parseFloat(r.style.left)*_.current.imgScale;e=o,i=function(e){if(!e)return t.classList.add(I+"-error"),void(_.current.timerError=setTimeout((function(){_.current.padding=!1,T(),a.innerHTML=j({id:"tryAgain"}),L()}),1e3));t.classList.add(I+"-success")},y(void 0,void 0,void 0,(function(){var r;return h(this,(function(t){switch(t.label){case 0:return[4,_.current.verify(e,_.current.verify)];case 1:return r=t.sent(),i(r),[2]}}))}))})}}},T=function(){var e=q.current;if(e){e.classList.remove(I+"-success"),e.classList.remove(I+"-error");var r=e.querySelector(".slider-move-box"),t=e.querySelector(".slider-move-mask");e.querySelector(".slider-move-text").innerHTML=j({id:"swipe"}),r.style.left="-1px",t.style.width="0px",_.current.imgMove&&(_.current.imgMove.style.left="0px")}};return(0,e.jsxs)("div",g({className:i()(I,o),style:a,ref:q},{children:[(0,e.jsxs)("svg",g({onClick:function(){S(Math.random())},className:"refresh",width:"26.529",height:"26.017",viewBox:"0 0 26.529 26.017"},{children:[(0,e.jsxs)("defs",{children:[(0,e.jsxs)("filter",g({id:"a",x:"0",y:"0",width:"26.529",height:"17",filterUnits:"userSpaceOnUse"},{children:[(0,e.jsx)("feOffset",{dy:"1"}),(0,e.jsx)("feGaussianBlur",{stdDeviation:"1",result:"b"}),(0,e.jsx)("feFlood",{}),(0,e.jsx)("feComposite",{operator:"in",in2:"b"}),(0,e.jsx)("feComposite",{in:"SourceGraphic"})]})),(0,e.jsxs)("filter",g({id:"c",x:"0",y:"9.017",width:"26.529",height:"17",filterUnits:"userSpaceOnUse"},{children:[(0,e.jsx)("feOffset",{dy:"1"}),(0,e.jsx)("feGaussianBlur",{stdDeviation:"1",result:"d"}),(0,e.jsx)("feFlood",{}),(0,e.jsx)("feComposite",{operator:"in",in2:"d"}),(0,e.jsx)("feComposite",{in:"SourceGraphic"})]}))]}),(0,e.jsxs)("g",g({style:{opacity:.7,isolation:"isolate"},transform:"translate(-286.735 -95.991)"},{children:[(0,e.jsx)("g",g({transform:"translate(288 96)"},{children:(0,e.jsx)("rect",{style:{fill:"none"},width:"24",height:"24"})})),(0,e.jsxs)("g",g({transform:"translate(289.735 97.991)"},{children:[(0,e.jsx)("g",g({style:{filter:"url(#a)"},transform:"matrix(1, 0, 0, 1, -3, -2)"},{children:(0,e.jsx)("path",{style:{fill:"#FFFFFF"},d:"M577.409,536.791a1,1,0,0,0,1-1A8,8,0,0,1,592.817,531h0c.077.1.149.207.22.312l-1.911-.765a1,1,0,1,0-.743,1.856l3.7,1.483a1,1,0,0,0,1.3-.557l1.482-3.7a1,1,0,1,0-1.857-.744l-.448,1.12c-.048-.067-.093-.137-.143-.2h0a10,10,0,0,0-18.009,5.989A1,1,0,0,0,577.409,536.791Z",transform:"translate(-573.41 -523.79)"})})),(0,e.jsx)("g",g({style:{filter:"url(#c)"},transform:"matrix(1, 0, 0, 1, -3, -2)"},{children:(0,e.jsx)("path",{style:{fill:"#FFFFFF"},d:"M595.938,534.808a1,1,0,0,0-1,1,8,8,0,0,1-14.409,4.79h0c-.076-.1-.148-.206-.219-.312l1.911.765a1,1,0,0,0,.743-1.857l-3.7-1.482a1,1,0,0,0-1.3.557l-1.482,3.7a1,1,0,0,0,1.856.743l.449-1.12c.047.067.093.136.142.2h0a10,10,0,0,0,18.009-5.989A1,1,0,0,0,595.938,534.808Z",transform:"translate(-573.41 -523.79)"})}))]}))]}))]})),(0,e.jsx)("div",{className:"slider-img",style:function(){var e={};if(b){var r=b;"number"==typeof b&&(r=b+"px"),e.width=r}if(x){var t=x;"number"==typeof x&&(t=x+"px"),e.height=t}return e}()}),(0,e.jsxs)("div",g({className:"slider-move"},{children:[(0,e.jsx)("div",{className:"slider-move-bg"}),(0,e.jsx)("div",g({className:"slider-move-mask"},{children:(0,e.jsxs)("div",g({className:"slider-move-box"},{children:[(0,e.jsx)(n(),{className:"svg-right"}),(0,e.jsx)(s(),{className:"svg-close"}),(0,e.jsx)(d(),{className:"svg-check"})]}))})),(0,e.jsx)("span",g({className:"slider-move-text"},{children:j({id:"swipe"})}))]})),C&&(0,e.jsx)(m.default,{})]}))},x=b}(),u}()}));
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ tryAgain: string;
3
+ swipe: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ zh: {
3
+ tryAgain: string;
4
+ swipe: string;
5
+ };
6
+ en: {
7
+ tryAgain: string;
8
+ swipe: string;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ tryAgain: string;
3
+ swipe: string;
4
+ };
5
+ export default _default;