yc-ui2 0.1.0-beta3 → 0.1.0-beta5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/yc-ui2.common.js +522 -362
- package/dist/yc-ui2.common.js.map +1 -1
- package/dist/yc-ui2.umd.js +522 -362
- package/dist/yc-ui2.umd.js.map +1 -1
- package/dist/yc-ui2.umd.min.js +1 -1
- package/dist/yc-ui2.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/components/YcSlideVerify/index.vue +60 -0
- package/dist/css/774.de9a931f.css +0 -139
- package/dist/css/94.de9a931f.css +0 -139
- package/dist/yc-ui2.common.94.js +0 -442
- package/dist/yc-ui2.common.94.js.map +0 -1
- package/dist/yc-ui2.umd.774.js +0 -442
- package/dist/yc-ui2.umd.774.js.map +0 -1
- package/dist/yc-ui2.umd.min.286.js +0 -2
- package/dist/yc-ui2.umd.min.286.js.map +0 -1
- /package/dist/{css/286.00e562fe.css → yc-ui2.css} +0 -0
package/dist/yc-ui2.umd.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["yc-ui2"]=e():t["yc-ui2"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){var t={1001:function(t,e,n){"use strict";function r(t,e,n,r,o,i,u,c){var s,f="function"===typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),u?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},f._ssrRegister=s):o&&(s=c?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(f.functional){f._injectStyles=s;var a=f.render;f.render=function(t,e){return s.call(e),a(t,e)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,s):[s]}return{exports:t,options:f}}n.d(e,{Z:function(){return r}})},9662:function(t,e,n){"use strict";var r=n(614),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},9670:function(t,e,n){"use strict";var r=n(111),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},1318:function(t,e,n){"use strict";var r=n(5656),o=n(1400),i=n(6244),u=function(t){return function(e,n,u){var c,s=r(e),f=i(s),a=o(u,f);if(t&&n!==n){while(f>a)if(c=s[a++],c!==c)return!0}else for(;f>a;a++)if((t||a in s)&&s[a]===n)return t||a||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},3658:function(t,e,n){"use strict";var r=n(9781),o=n(3157),i=TypeError,u=Object.getOwnPropertyDescriptor,c=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=c?function(t,e){if(o(t)&&!u(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4326:function(t,e,n){"use strict";var r=n(1702),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},9920:function(t,e,n){"use strict";var r=n(2597),o=n(3887),i=n(1236),u=n(3070);t.exports=function(t,e,n){for(var c=o(e),s=u.f,f=i.f,a=0;a<c.length;a++){var p=c[a];r(t,p)||n&&r(n,p)||s(t,p,f(e,p))}}},8880:function(t,e,n){"use strict";var r=n(9781),o=n(3070),i=n(9114);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8052:function(t,e,n){"use strict";var r=n(614),o=n(3070),i=n(6339),u=n(3072);t.exports=function(t,e,n,c){c||(c={});var s=c.enumerable,f=void 0!==c.name?c.name:e;if(r(n)&&i(n,f,c),c.global)s?t[e]=n:u(e,n);else{try{c.unsafe?t[e]&&(s=!0):delete t[e]}catch(a){}s?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},3072:function(t,e,n){"use strict";var r=n(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9781:function(t,e,n){"use strict";var r=n(7293);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){"use strict";var e="object"==typeof document&&document.all,n="undefined"==typeof e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},317:function(t,e,n){"use strict";var r=n(7854),o=n(111),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},7207:function(t){"use strict";var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},8113:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,n){"use strict";var r,o,i=n(7854),u=n(8113),c=i.process,s=i.Deno,f=c&&c.versions||s&&s.version,a=f&&f.v8;a&&(r=a.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(r=u.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},748:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){"use strict";var r=n(7854),o=n(1236).f,i=n(8880),u=n(8052),c=n(3072),s=n(9920),f=n(4705);t.exports=function(t,e){var n,a,p,l,d,v,h=t.target,y=t.global,g=t.stat;if(a=y?r:g?r[h]||c(h,{}):(r[h]||{}).prototype,a)for(p in e){if(d=e[p],t.dontCallGetSet?(v=o(a,p),l=v&&v.value):l=a[p],n=f(y?p:h+(g?".":"#")+p,t.forced),!n&&void 0!==l){if(typeof d==typeof l)continue;s(d,l)}(t.sham||l&&l.sham)&&i(d,"sham",!0),u(a,p,d,t)}}},7293:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},4374:function(t,e,n){"use strict";var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){"use strict";var r=n(4374),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,n){"use strict";var r=n(9781),o=n(2597),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),s=c&&"something"===function(){}.name,f=c&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:s,CONFIGURABLE:f}},1702:function(t,e,n){"use strict";var r=n(4374),o=Function.prototype,i=o.call,u=r&&o.bind.bind(i,i);t.exports=r?u:function(t){return function(){return i.apply(t,arguments)}}},5005:function(t,e,n){"use strict";var r=n(7854),o=n(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},8173:function(t,e,n){"use strict";var r=n(9662),o=n(8554);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},7854:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(t,e,n){"use strict";var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){"use strict";t.exports={}},4664:function(t,e,n){"use strict";var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){"use strict";var r=n(1702),o=n(7293),i=n(4326),u=Object,c=r("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):u(t)}:u},2788:function(t,e,n){"use strict";var r=n(1702),o=n(614),i=n(5465),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},9909:function(t,e,n){"use strict";var r,o,i,u=n(4811),c=n(7854),s=n(111),f=n(8880),a=n(2597),p=n(5465),l=n(6200),d=n(3501),v="Object already initialized",h=c.TypeError,y=c.WeakMap,g=function(t){return i(t)?o(t):r(t,{})},b=function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw new h("Incompatible receiver, "+t+" required");return n}};if(u||p.state){var m=p.state||(p.state=new y);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw new h(v);return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var x=l("state");d[x]=!0,r=function(t,e){if(a(t,x))throw new h(v);return e.facade=t,f(t,x,e),e},o=function(t){return a(t,x)?t[x]:{}},i=function(t){return a(t,x)}}t.exports={set:r,get:o,has:i,enforce:g,getterFor:b}},3157:function(t,e,n){"use strict";var r=n(4326);t.exports=Array.isArray||function(t){return"Array"===r(t)}},614:function(t,e,n){"use strict";var r=n(4154),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4705:function(t,e,n){"use strict";var r=n(7293),o=n(614),i=/#|\.prototype\./,u=function(t,e){var n=s[c(t)];return n===a||n!==f&&(o(e)?r(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=u.data={},f=u.NATIVE="N",a=u.POLYFILL="P";t.exports=u},8554:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},111:function(t,e,n){"use strict";var r=n(614),o=n(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){"use strict";t.exports=!1},2190:function(t,e,n){"use strict";var r=n(5005),o=n(614),i=n(7976),u=n(3307),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,c(t))}},6244:function(t,e,n){"use strict";var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){"use strict";var r=n(1702),o=n(7293),i=n(614),u=n(2597),c=n(9781),s=n(6530).CONFIGURABLE,f=n(2788),a=n(9909),p=a.enforce,l=a.get,d=String,v=Object.defineProperty,h=r("".slice),y=r("".replace),g=r([].join),b=c&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),m=String(String).split("String"),x=t.exports=function(t,e,n){"Symbol("===h(d(e),0,7)&&(e="["+y(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!u(t,"name")||s&&t.name!==e)&&(c?v(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&u(n,"arity")&&t.length!==n.arity&&v(t,"length",{value:n.arity});try{n&&u(n,"constructor")&&n.constructor?c&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=p(t);return u(r,"source")||(r.source=g(m,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return i(this)&&l(this).source||f(this)}),"toString")},4758:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},3070:function(t,e,n){"use strict";var r=n(9781),o=n(4664),i=n(3353),u=n(9670),c=n(4948),s=TypeError,f=Object.defineProperty,a=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",d="writable";e.f=r?i?function(t,e,n){if(u(t),e=c(e),u(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=a(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:l in n?n[l]:r[l],enumerable:p in n?n[p]:r[p],writable:!1})}return f(t,e,n)}:f:function(t,e,n){if(u(t),e=c(e),u(n),o)try{return f(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new s("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){"use strict";var r=n(9781),o=n(6916),i=n(5296),u=n(9114),c=n(5656),s=n(4948),f=n(2597),a=n(4664),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=c(t),e=s(e),a)try{return p(t,e)}catch(n){}if(f(t,e))return u(!o(i.f,t,e),t[e])}},8006:function(t,e,n){"use strict";var r=n(6324),o=n(748),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){"use strict";var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){"use strict";var r=n(1702),o=n(2597),i=n(5656),u=n(1318).indexOf,c=n(3501),s=r([].push);t.exports=function(t,e){var n,r=i(t),f=0,a=[];for(n in r)!o(c,n)&&o(r,n)&&s(a,n);while(e.length>f)o(r,n=e[f++])&&(~u(a,n)||s(a,n));return a}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2140:function(t,e,n){"use strict";var r=n(6916),o=n(614),i=n(111),u=TypeError;t.exports=function(t,e){var n,c;if("string"===e&&o(n=t.toString)&&!i(c=r(n,t)))return c;if(o(n=t.valueOf)&&!i(c=r(n,t)))return c;if("string"!==e&&o(n=t.toString)&&!i(c=r(n,t)))return c;throw new u("Can't convert object to primitive value")}},3887:function(t,e,n){"use strict";var r=n(5005),o=n(1702),i=n(8006),u=n(5181),c=n(9670),s=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?s(e,n(t)):e}},4488:function(t,e,n){"use strict";var r=n(8554),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6200:function(t,e,n){"use strict";var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){"use strict";var r=n(7854),o=n(3072),i="__core-js_shared__",u=r[i]||o(i,{});t.exports=u},2309:function(t,e,n){"use strict";var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,n){"use strict";var r=n(7392),o=n(7293),i=n(7854),u=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!u(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(t,e,n){"use strict";var r=n(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5656:function(t,e,n){"use strict";var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t,e,n){"use strict";var r=n(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},7466:function(t,e,n){"use strict";var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){"use strict";var r=n(4488),o=Object;t.exports=function(t){return o(r(t))}},7593:function(t,e,n){"use strict";var r=n(6916),o=n(111),i=n(2190),u=n(8173),c=n(2140),s=n(5112),f=TypeError,a=s("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,s=u(t,a);if(s){if(void 0===e&&(e="default"),n=r(s,t,e),!o(n)||i(n))return n;throw new f("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},4948:function(t,e,n){"use strict";var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},6330:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},9711:function(t,e,n){"use strict";var r=n(1702),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},3307:function(t,e,n){"use strict";var r=n(6293);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){"use strict";var r=n(9781),o=n(7293);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,n){"use strict";var r=n(7854),o=n(614),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5112:function(t,e,n){"use strict";var r=n(7854),o=n(2309),i=n(2597),u=n(9711),c=n(6293),s=n(3307),f=r.Symbol,a=o("wks"),p=s?f["for"]||f:f&&f.withoutSetter||u;t.exports=function(t){return i(a,t)||(a[t]=c&&i(f,t)?f[t]:p("Symbol."+t)),a[t]}},7658:function(t,e,n){"use strict";var r=n(2109),o=n(7908),i=n(6244),u=n(3658),c=n(7207),s=n(7293),f=s((function(){return 4294967297!==[].push.call({length:4294967296},1)})),a=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},p=f||!a();r({target:"Array",proto:!0,arity:1,forced:p},{push:function(t){var e=o(this),n=i(e),r=arguments.length;c(n+r);for(var s=0;s<r;s++)e[n]=arguments[s],n++;return u(e,n),n}})},4359:function(t,e,n){var r={"./1.jpg":1091,"./2.jpg":4828,"./3.jpg":4501,"./4.jpg":8858,"./5.jpg":1799,"./6.jpg":9416,"./7.jpg":5867,"./8.jpg":8478};function o(t){var e=i(t);return n(e)}function i(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id=4359},1091:function(t,e,n){"use strict";t.exports=n.p+"img/1.8e585a4b.jpg"},4828:function(t,e,n){"use strict";t.exports=n.p+"img/2.52192bf1.jpg"},4501:function(t,e,n){"use strict";t.exports=n.p+"img/3.4627edc5.jpg"},8858:function(t,e,n){"use strict";t.exports=n.p+"img/4.00b9b96d.jpg"},1799:function(t,e,n){"use strict";t.exports=n.p+"img/5.00adbac5.jpg"},9416:function(t,e,n){"use strict";t.exports=n.p+"img/6.fec4cf56.jpg"},5867:function(t,e,n){"use strict";t.exports=n.p+"img/7.2d4c9f56.jpg"},8478:function(t,e,n){"use strict";t.exports=n.p+"img/8.63e261ca.jpg"}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.m=t,function(){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]})}}(),function(){n.f={},n.e=function(t){return Promise.all(Object.keys(n.f).reduce((function(e,r){return n.f[r](t,e),e}),[]))}}(),function(){n.u=function(t){return"yc-ui2.umd.min."+t+".js"}}(),function(){n.miniCssF=function(t){return"css/"+t+".00e562fe.css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="yc-ui2:";n.l=function(r,o,i,u){if(t[r])t[r].push(o);else{var c,s;if(void 0!==i)for(var f=document.getElementsByTagName("script"),a=0;a<f.length;a++){var p=f[a];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==e+i){c=p;break}}c||(s=!0,c=document.createElement("script"),c.charset="utf-8",c.timeout=120,n.nc&&c.setAttribute("nonce",n.nc),c.setAttribute("data-webpack",e+i),c.src=r),t[r]=[o];var l=function(e,n){c.onerror=c.onload=null,clearTimeout(d);var o=t[r];if(delete t[r],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((function(t){return t(n)})),e)return e(n)},d=setTimeout(l.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=l.bind(null,c.onerror),c.onload=l.bind(null,c.onload),s&&document.head.appendChild(c)}}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p=""}(),function(){if("undefined"!==typeof document){var t=function(t,e,n,r,o){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css";var u=function(n){if(i.onerror=i.onload=null,"load"===n.type)r();else{var u=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.href||e,s=new Error("Loading CSS chunk "+t+" failed.\n("+c+")");s.code="CSS_CHUNK_LOAD_FAILED",s.type=u,s.request=c,i.parentNode&&i.parentNode.removeChild(i),o(s)}};return i.onerror=i.onload=u,i.href=e,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i),i},e=function(t,e){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=n[r],i=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(i===t||i===e))return o}var u=document.getElementsByTagName("style");for(r=0;r<u.length;r++){o=u[r],i=o.getAttribute("data-href");if(i===t||i===e)return o}},r=function(r){return new Promise((function(o,i){var u=n.miniCssF(r),c=n.p+u;if(e(u,c))return o();t(r,c,null,o,i)}))},o={859:0};n.f.miniCss=function(t,e){var n={286:1};o[t]?e.push(o[t]):0!==o[t]&&n[t]&&e.push(o[t]=r(t).then((function(){o[t]=0}),(function(e){throw delete o[t],e})))}}}(),function(){var t={859:0};n.f.j=function(e,r){var o=n.o(t,e)?t[e]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise((function(n,r){o=t[e]=[n,r]}));r.push(o[2]=i);var u=n.p+n.u(e),c=new Error,s=function(r){if(n.o(t,e)&&(o=t[e],0!==o&&(t[e]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+u+")",c.name="ChunkLoadError",c.type=i,c.request=u,o[1](c)}};n.l(u,s,"chunk-"+e,e)}};var e=function(e,r){var o,i,u=r[0],c=r[1],s=r[2],f=0;if(u.some((function(e){return 0!==t[e]}))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(s)s(n)}for(e&&e(r);f<u.length;f++)i=u[f],n.o(t,i)&&t[i]&&t[i][0](),t[i]=0},r=("undefined"!==typeof self?self:this)["webpackChunkyc_ui2"]=("undefined"!==typeof self?self:this)["webpackChunkyc_ui2"]||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}();var r={};return function(){"use strict";if(n.r(r),n.d(r,{default:function(){return v}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(n.p=e[1])}var o=function(){var t=this,e=t._self._c;return t.show?e("slide-verify",{ref:"slideblock",attrs:{l:42,r:10,w:310,h:155,imgs:t.imgs,accuracy:t.accuracy,show:t.show,"slider-text":t.sliderText},on:{success:t.onSuccess,fail:t.onFail,again:t.onAgain,refresh:t.onRefresh,fulfilled:t.onFulfilled}}):t._e()},i=[],u=(n(7658),{name:"YcSlideVerify",components:{SlideVerify:()=>n.e(286).then(n.bind(n,9286))},data(){return{show:!0,isShow:!1,accuracy:5,sliderText:"拖动完成上方拼图",countDownNum:120}},computed:{imgs(){const t=[];for(let e=1;e<9;e++)t.push(n(4359)(`./${e}.jpg`));return t}},methods:{onSuccess(){this.isShow=!1,console.log(344444)},onFail(){},onAgain(){},onRefresh(){},onFulfilled(){},handleClose(){this.isShow=!1}}}),c=u,s=n(1001),f=(0,s.Z)(c,o,i,!1,null,null,null),a=f.exports;const p=[a],l=function(t){p.forEach((e=>{t.component(e.name,e)})),"undefined"!==typeof window&&window.Vue&&l(window.Vue)};var d={install:l},v=d}(),r}()}));
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["yc-ui2"]=e():t["yc-ui2"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){var t={9662:function(t,e,n){"use strict";var r=n(614),i=n(6330),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},9670:function(t,e,n){"use strict";var r=n(111),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},1318:function(t,e,n){"use strict";var r=n(5656),i=n(1400),o=n(6244),s=function(t){return function(e,n,s){var c,u=r(e),a=o(u),f=i(s,a);if(t&&n!==n){while(a>f)if(c=u[f++],c!==c)return!0}else for(;a>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},3658:function(t,e,n){"use strict";var r=n(9781),i=n(3157),o=TypeError,s=Object.getOwnPropertyDescriptor,c=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=c?function(t,e){if(i(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4326:function(t,e,n){"use strict";var r=n(1702),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},9920:function(t,e,n){"use strict";var r=n(2597),i=n(3887),o=n(1236),s=n(3070);t.exports=function(t,e,n){for(var c=i(e),u=s.f,a=o.f,f=0;f<c.length;f++){var l=c[f];r(t,l)||n&&r(n,l)||u(t,l,a(e,l))}}},8880:function(t,e,n){"use strict";var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8052:function(t,e,n){"use strict";var r=n(614),i=n(3070),o=n(6339),s=n(3072);t.exports=function(t,e,n,c){c||(c={});var u=c.enumerable,a=void 0!==c.name?c.name:e;if(r(n)&&o(n,a,c),c.global)u?t[e]=n:s(e,n);else{try{c.unsafe?t[e]&&(u=!0):delete t[e]}catch(f){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},3072:function(t,e,n){"use strict";var r=n(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9781:function(t,e,n){"use strict";var r=n(7293);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){"use strict";var e="object"==typeof document&&document.all,n="undefined"==typeof e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},317:function(t,e,n){"use strict";var r=n(7854),i=n(111),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},7207:function(t){"use strict";var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},8113:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,n){"use strict";var r,i,o=n(7854),s=n(8113),c=o.process,u=o.Deno,a=c&&c.versions||u&&u.version,f=a&&a.v8;f&&(r=f.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},748:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){"use strict";var r=n(7854),i=n(1236).f,o=n(8880),s=n(8052),c=n(3072),u=n(9920),a=n(4705);t.exports=function(t,e){var n,f,l,h,p,d,v=t.target,g=t.global,m=t.stat;if(f=g?r:m?r[v]||c(v,{}):(r[v]||{}).prototype,f)for(l in e){if(p=e[l],t.dontCallGetSet?(d=i(f,l),h=d&&d.value):h=f[l],n=a(g?l:v+(m?".":"#")+l,t.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;u(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),s(f,l,p,t)}}},7293:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},4374:function(t,e,n){"use strict";var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){"use strict";var r=n(4374),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,n){"use strict";var r=n(9781),i=n(2597),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,c=i(o,"name"),u=c&&"something"===function(){}.name,a=c&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:a}},1702:function(t,e,n){"use strict";var r=n(4374),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},5005:function(t,e,n){"use strict";var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},8173:function(t,e,n){"use strict";var r=n(9662),i=n(8554);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},7854:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(t,e,n){"use strict";var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:function(t){"use strict";t.exports={}},4664:function(t,e,n){"use strict";var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){"use strict";var r=n(1702),i=n(7293),o=n(4326),s=Object,c=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?c(t,""):s(t)}:s},2788:function(t,e,n){"use strict";var r=n(1702),i=n(614),o=n(5465),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},9909:function(t,e,n){"use strict";var r,i,o,s=n(4811),c=n(7854),u=n(111),a=n(8880),f=n(2597),l=n(5465),h=n(6200),p=n(3501),d="Object already initialized",v=c.TypeError,g=c.WeakMap,m=function(t){return o(t)?i(t):r(t,{})},y=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}};if(s||l.state){var b=l.state||(l.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw new v(d);return e.facade=t,b.set(t,e),e},i=function(t){return b.get(t)||{}},o=function(t){return b.has(t)}}else{var w=h("state");p[w]=!0,r=function(t,e){if(f(t,w))throw new v(d);return e.facade=t,a(t,w,e),e},i=function(t){return f(t,w)?t[w]:{}},o=function(t){return f(t,w)}}t.exports={set:r,get:i,has:o,enforce:m,getterFor:y}},3157:function(t,e,n){"use strict";var r=n(4326);t.exports=Array.isArray||function(t){return"Array"===r(t)}},614:function(t,e,n){"use strict";var r=n(4154),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},4705:function(t,e,n){"use strict";var r=n(7293),i=n(614),o=/#|\.prototype\./,s=function(t,e){var n=u[c(t)];return n===f||n!==a&&(i(e)?r(e):!!e)},c=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=s.data={},a=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},8554:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},111:function(t,e,n){"use strict";var r=n(614),i=n(4154),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){"use strict";t.exports=!1},2190:function(t,e,n){"use strict";var r=n(5005),i=n(614),o=n(7976),s=n(3307),c=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,c(t))}},6244:function(t,e,n){"use strict";var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){"use strict";var r=n(1702),i=n(7293),o=n(614),s=n(2597),c=n(9781),u=n(6530).CONFIGURABLE,a=n(2788),f=n(9909),l=f.enforce,h=f.get,p=String,d=Object.defineProperty,v=r("".slice),g=r("".replace),m=r([].join),y=c&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===v(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||u&&t.name!==e)&&(c?d(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&s(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?c&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=l(t);return s(r,"source")||(r.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&h(this).source||a(this)}),"toString")},4758:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},3070:function(t,e,n){"use strict";var r=n(9781),i=n(4664),o=n(3353),s=n(9670),c=n(4948),u=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",h="configurable",p="writable";e.f=r?o?function(t,e,n){if(s(t),e=c(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=f(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:l in n?n[l]:r[l],writable:!1})}return a(t,e,n)}:a:function(t,e,n){if(s(t),e=c(e),s(n),i)try{return a(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){"use strict";var r=n(9781),i=n(6916),o=n(5296),s=n(9114),c=n(5656),u=n(4948),a=n(2597),f=n(4664),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=c(t),e=u(e),f)try{return l(t,e)}catch(n){}if(a(t,e))return s(!i(o.f,t,e),t[e])}},8006:function(t,e,n){"use strict";var r=n(6324),i=n(748),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},5181:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){"use strict";var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){"use strict";var r=n(1702),i=n(2597),o=n(5656),s=n(1318).indexOf,c=n(3501),u=r([].push);t.exports=function(t,e){var n,r=o(t),a=0,f=[];for(n in r)!i(c,n)&&i(r,n)&&u(f,n);while(e.length>a)i(r,n=e[a++])&&(~s(f,n)||u(f,n));return f}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2140:function(t,e,n){"use strict";var r=n(6916),i=n(614),o=n(111),s=TypeError;t.exports=function(t,e){var n,c;if("string"===e&&i(n=t.toString)&&!o(c=r(n,t)))return c;if(i(n=t.valueOf)&&!o(c=r(n,t)))return c;if("string"!==e&&i(n=t.toString)&&!o(c=r(n,t)))return c;throw new s("Can't convert object to primitive value")}},3887:function(t,e,n){"use strict";var r=n(5005),i=n(1702),o=n(8006),s=n(5181),c=n(9670),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(c(t)),n=s.f;return n?u(e,n(t)):e}},4488:function(t,e,n){"use strict";var r=n(8554),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},6200:function(t,e,n){"use strict";var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:function(t,e,n){"use strict";var r=n(7854),i=n(3072),o="__core-js_shared__",s=r[o]||i(o,{});t.exports=s},2309:function(t,e,n){"use strict";var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,n){"use strict";var r=n(7392),i=n(7293),o=n(7854),s=o.String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(t,e,n){"use strict";var r=n(9303),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:function(t,e,n){"use strict";var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9303:function(t,e,n){"use strict";var r=n(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},7466:function(t,e,n){"use strict";var r=n(9303),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:function(t,e,n){"use strict";var r=n(4488),i=Object;t.exports=function(t){return i(r(t))}},7593:function(t,e,n){"use strict";var r=n(6916),i=n(111),o=n(2190),s=n(8173),c=n(2140),u=n(5112),a=TypeError,f=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=s(t,f);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(n))return n;throw new a("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},4948:function(t,e,n){"use strict";var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},6330:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},9711:function(t,e,n){"use strict";var r=n(1702),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},3307:function(t,e,n){"use strict";var r=n(6293);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){"use strict";var r=n(9781),i=n(7293);t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,n){"use strict";var r=n(7854),i=n(614),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},5112:function(t,e,n){"use strict";var r=n(7854),i=n(2309),o=n(2597),s=n(9711),c=n(6293),u=n(3307),a=r.Symbol,f=i("wks"),l=u?a["for"]||a:a&&a.withoutSetter||s;t.exports=function(t){return o(f,t)||(f[t]=c&&o(a,t)?a[t]:l("Symbol."+t)),f[t]}},7658:function(t,e,n){"use strict";var r=n(2109),i=n(7908),o=n(6244),s=n(3658),c=n(7207),u=n(7293),a=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),f=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},l=a||!f();r({target:"Array",proto:!0,arity:1,forced:l},{push:function(t){var e=i(this),n=o(e),r=arguments.length;c(n+r);for(var u=0;u<r;u++)e[n]=arguments[u],n++;return s(e,n),n}})},4359:function(t,e,n){var r={"./1.jpg":1091,"./2.jpg":4828,"./3.jpg":4501,"./4.jpg":8858,"./5.jpg":1799,"./6.jpg":9416,"./7.jpg":5867,"./8.jpg":8478};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=4359},1091:function(t,e,n){"use strict";t.exports=n.p+"img/1.8e585a4b.jpg"},4828:function(t,e,n){"use strict";t.exports=n.p+"img/2.52192bf1.jpg"},4501:function(t,e,n){"use strict";t.exports=n.p+"img/3.4627edc5.jpg"},8858:function(t,e,n){"use strict";t.exports=n.p+"img/4.00b9b96d.jpg"},1799:function(t,e,n){"use strict";t.exports=n.p+"img/5.00adbac5.jpg"},9416:function(t,e,n){"use strict";t.exports=n.p+"img/6.fec4cf56.jpg"},5867:function(t,e,n){"use strict";t.exports=n.p+"img/7.2d4c9f56.jpg"},8478:function(t,e,n){"use strict";t.exports=n.p+"img/8.63e261ca.jpg"}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}!function(){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]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p=""}();var r={};return function(){"use strict";if(n.r(r),n.d(r,{default:function(){return O}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(n.p=e[1])}var i=function(){var t=this,e=t._self._c;return t.show?e("slide-verify",{ref:"slideblock",attrs:{l:42,r:10,w:310,h:155,imgs:t.imgs,accuracy:t.accuracy,show:t.show,"slider-text":t.sliderText},on:{success:t.onSuccess,fail:t.onFail,again:t.onAgain,refresh:t.onRefresh,fulfilled:t.onFulfilled}}):t._e()},o=[],s=(n(7658),function(){var t=this,e=t._self._c;return e("div",{staticClass:"slide-verify",style:{width:t.w+"px"},attrs:{id:"slideVerify",onselectstart:"return false;"}},[e("div",{class:{"slider-verify-loading":t.loadBlock}}),e("canvas",{ref:"canvas",attrs:{width:t.w,height:t.h}}),t.show?e("div",{staticClass:"slide-verify-refresh-icon",on:{click:t.refresh}}):t._e(),e("canvas",{ref:"block",staticClass:"slide-verify-block",attrs:{width:t.w,height:t.h}}),e("div",{staticClass:"slide-verify-slider",class:{"container-active":t.containerActive,"container-success":t.containerSuccess,"container-fail":t.containerFail}},[e("div",{staticClass:"slide-verify-slider-mask",style:{width:t.sliderMaskWidth}},[e("div",{staticClass:"slide-verify-slider-mask-item",style:{left:t.sliderLeft},on:{mousedown:t.sliderDown,touchstart:t.touchStartEvent,touchmove:function(e){return t.handleMoveEvent(e,"touch")},touchend:function(e){return t.handleMoveEndEvent(e,"touch")}}},[e("div",{staticClass:"slide-verify-slider-mask-item-icon"})])]),e("span",{staticClass:"slide-verify-slider-text"},[t._v(t._s(t.sliderText))])])])}),c=[];const u=Math.PI;function a(t,e){return t+e}function f(t){return t*t}var l={name:"SlideVerify",props:{l:{type:Number,default:42},r:{type:Number,default:10},w:{type:Number,default:310},h:{type:Number,default:155},sliderText:{type:String,default:"Slide filled right"},accuracy:{type:Number,default:5},show:{type:Boolean,default:!0},imgs:{type:Array,default:()=>[]}},data(){return{containerActive:!1,containerSuccess:!1,containerFail:!1,canvasCtx:null,blockCtx:null,block:null,block_x:void 0,block_y:void 0,L:this.l+2*this.r+3,img:void 0,originX:void 0,originY:void 0,isMouseDown:!1,trail:[],sliderLeft:0,sliderMaskWidth:0,success:!1,loadBlock:!0,timestamp:null}},mounted(){this.init()},methods:{init(){this.initDom(),this.initImg(),this.bindEvents()},initDom(){this.block=this.$refs.block,this.canvasCtx=this.$refs.canvas.getContext("2d"),this.blockCtx=this.block.getContext("2d")},initImg(){const t=this.createImg((()=>{this.loadBlock=!1,this.drawBlock(),this.canvasCtx.drawImage(t,0,0,this.w,this.h),this.blockCtx.drawImage(t,0,0,this.w,this.h);let{block_x:e,block_y:n,r:r,L:i}=this,o=n-2*r-1,s=this.blockCtx.getImageData(e,o,i,i);this.block.width=i,this.blockCtx.putImageData(s,0,o)}));this.img=t},drawBlock(){this.block_x=this.getRandomNumberByRange(this.L+10,this.w-(this.L+10)),this.block_y=this.getRandomNumberByRange(10+2*this.r,this.h-(this.L+10)),this.draw(this.canvasCtx,this.block_x,this.block_y,"fill"),this.draw(this.blockCtx,this.block_x,this.block_y,"clip")},draw(t,e,n,r){let{l:i,r:o}=this;t.beginPath(),t.moveTo(e,n),t.arc(e+i/2,n-o+2,o,.72*u,2.26*u),t.lineTo(e+i,n),t.arc(e+i+o-2,n+i/2,o,1.21*u,2.78*u),t.lineTo(e+i,n+i),t.lineTo(e,n+i),t.arc(e+o-2,n+i/2,o+.4,2.76*u,1.24*u,!0),t.lineTo(e,n),t.lineWidth=2,t.fillStyle="rgba(255, 255, 255, 0.7)",t.strokeStyle="rgba(255, 255, 255, 0.7)",t.stroke(),t[r](),t.globalCompositeOperation="destination-over"},createImg(t){const e=document.createElement("img");return e.crossOrigin="Anonymous",e.onload=t,e.onerror=()=>{e.src=this.getRandomImg()},e.src=this.getRandomImg(),e},getRandomImg(){const t=this.imgs.length;return t>0?this.imgs[this.getRandomNumberByRange(0,t-1)]:"https://source.unsplash.com/300x150/?book,library"},getRandomNumberByRange(t,e){return Math.round(Math.random()*(e-t)+t)},refresh(){this.reset(),this.$emit("refresh")},sliderDown(t){this.success||(this.originX=t.clientX,this.originY=t.clientY,this.isMouseDown=!0,this.timestamp=+new Date)},touchStartEvent(t){this.success||(this.originX=t.changedTouches[0].pageX,this.originY=t.changedTouches[0].pageY,this.isMouseDown=!0,this.timestamp=+new Date)},bindEvents(){document.addEventListener("mousemove",this.handleMoveEvent),document.addEventListener("mouseup",this.handleMoveEndEvent)},handleMoveEvent:h((function(t,e="mouse"){if(!this.isMouseDown)return!1;const n="mouse"===e?t.clientX-this.originX:t.changedTouches[0].pageX-this.originX,r="mouse"===e?t.clientY-this.originY:t.changedTouches[0].pageY-this.originY;if(n<0||n+38>=this.w)return!1;this.sliderLeft=n+"px";let i=(this.w-40-20)/(this.w-40)*n;this.block.style.left=i+"px",this.containerActive=!0,this.sliderMaskWidth=n+"px",this.trail.push(r)})),handleMoveEndEvent(t,e="mouse"){if(!this.isMouseDown)return!1;if(this.isMouseDown=!1,"mouse"===e&&t.clientX===this.originX||"touch"===e&&t.changedTouches[0].pageX===this.originX)return!1;this.containerActive=!1,this.timestamp=+new Date-this.timestamp;const{spliced:n,TuringTest:r}=this.verify();if(n){if(-1===this.accuracy)return this.containerSuccess=!0,this.success=!0,void this.$emit("success",this.timestamp);r?(this.containerSuccess=!0,this.success=!0,this.$emit("success",this.timestamp)):(this.containerFail=!0,this.$emit("again"))}else this.containerFail=!0,this.$emit("fail"),setTimeout((()=>{this.reset()}),1e3)},verify(){const t=this.trail,e=t.reduce(a)/t.length,n=t.map((t=>t-e)),r=Math.sqrt(n.map(f).reduce(a)/t.length),i=parseInt(this.block.style.left),o=this.accuracy<=1?1:this.accuracy>10?10:this.accuracy;return{spliced:Math.abs(i-this.block_x)<=o,TuringTest:e!==r}},reset(){this.success=!1,this.containerActive=!1,this.containerSuccess=!1,this.containerFail=!1,this.sliderLeft=0,this.block.style.left=0,this.sliderMaskWidth=0;let{w:t,h:e}=this;this.canvasCtx.clearRect(0,0,t,e),this.blockCtx.clearRect(0,0,t,e),this.block.width=t,this.img.src=this.getRandomImg(),this.$emit("fulfilled")}},destroyed(){document.removeEventListener("mousemove",this.handleMoveEvent),document.removeEventListener("mouseup",this.handleMoveEndEvent)}};function h(t,e=50,n={leading:!0,trailing:!0}){const{leading:r,trailing:i,resultCallback:o}=n;let s=0,c=null;const u=function(...n){return new Promise(((u,a)=>{const f=(new Date).getTime();s||r||(s=f);const l=e-(f-s);if(l<=0){c&&(clearTimeout(c),c=null);const e=t.apply(this,n);return o&&o(e),u(e),void(s=f)}i&&!c&&(c=setTimeout((()=>{c=null,s=r?(new Date).getTime():0;const e=t.apply(this,n);o&&o(e),u(e)}),l))}))};return u.cancel=function(){c&&clearTimeout(c),c=null,s=0},u}var p=l;function d(t,e,n,r,i,o,s,c){var u,a="function"===typeof t?t.options:t;if(e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),o&&(a._scopeId="data-v-"+o),s?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},a._ssrRegister=u):i&&(u=c?function(){i.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(a.functional){a._injectStyles=u;var f=a.render;a.render=function(t,e){return u.call(e),f(t,e)}}else{var l=a.beforeCreate;a.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:a}}var v=d(p,s,c,!1,null,"b67196d8",null),g=v.exports,m={name:"YcSlideVerify",components:{SlideVerify:g},data(){return{show:!0,isShow:!1,accuracy:5,sliderText:"拖动完成上方拼图",countDownNum:120}},computed:{imgs(){const t=[];for(let e=1;e<9;e++)t.push(n(4359)(`./${e}.jpg`));return t}},methods:{onSuccess(){this.isShow=!1,console.log(344444)},onFail(){},onAgain(){},onRefresh(){},onFulfilled(){},handleClose(){this.isShow=!1}}},y=m,b=d(y,i,o,!1,null,null,null),w=b.exports;const x=[w],S=function(t){x.forEach((e=>{t.component(e.name,e)})),"undefined"!==typeof window&&window.Vue&&S(window.Vue)};var j={install:S},O=j}(),r}()}));
|
2
2
|
//# sourceMappingURL=yc-ui2.umd.min.js.map
|