go-captcha-vue 1.0.3 → 1.0.4

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.
@@ -496,6 +496,7 @@ function useHandler$2(data, event, config, rootRef, containerRef, tileRef, dragB
496
496
  const maxWidth = width - blockWidth;
497
497
  const tileWith = tileRef.value.offsetWidth;
498
498
  const tileOffsetLeft = tileRef.value.offsetLeft;
499
+ const containerMaxWidth = width - tileWith;
499
500
  const tileMaxWith = width - (tileWith + tileOffsetLeft);
500
501
  const ratio = tileMaxWith / maxWidth;
501
502
  let isMoving = false;
@@ -519,7 +520,7 @@ function useHandler$2(data, event, config, rootRef, containerRef, tileRef, dragB
519
520
  let ctX = tileOffsetLeft + left * ratio;
520
521
  if (left >= maxWidth) {
521
522
  state.dragLeft = maxWidth;
522
- state.thumbLeft = currentThumbX = maxWidth;
523
+ state.thumbLeft = currentThumbX = containerMaxWidth;
523
524
  return;
524
525
  }
525
526
  if (left <= 0) {
@@ -1430,7 +1431,7 @@ var render$5 = function() {
1430
1431
  var _vm = this;
1431
1432
  var _h = _vm.$createElement;
1432
1433
  var _c = _vm._self._c || _h;
1433
- return _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.hasDisplayWrapperState, expression: "hasDisplayWrapperState" }], ref: "rootRef", class: "go-captcha gc-wrapper " + (_vm.localConfig.showTheme && "gc-theme"), style: _vm.wrapperStyles }, [_c("div", { staticClass: "gc-header" }, [_c("span", [_vm._v(_vm._s(_vm.localConfig.title))]), _c("div", { staticClass: "gc-icon-block" }, [_c("close-icon", { attrs: { "width": _vm.localConfig.iconSize, "height": _vm.localConfig.iconSize }, on: { "click": _vm.handler.closeEvent } }), _c("refresh-icon", { attrs: { "width": _vm.localConfig.iconSize, "height": _vm.localConfig.iconSize }, on: { "click": _vm.handler.refreshEvent } })], 1)]), _c("div", { ref: "containerRef", staticClass: "gc-body gc-rotate-body", style: _vm.imageBlockStyles }, [_c("div", { style: _vm.imageStyles }, [_c("div", { staticClass: "gc-loading" }, [_c("loading-icon")], 1), _c("div", { staticClass: "gc-picture gc-rotate-picture", style: _vm.imageStyles }, [_c("img", { directives: [{ name: "show", rawName: "v-show", value: _vm.hasDisplayImageState, expression: "hasDisplayImageState" }], attrs: { "src": _vm.localData.image, "alt": "" } }), _c("div", { staticClass: "gc-round" })]), _c("div", { staticClass: "gc-thumb gc-rotate-thumb" }, [_c("div", { staticClass: "gc-rotate-thumb-block", style: _vm.thumbStyles }, [_c("img", { directives: [{ name: "show", rawName: "v-show", value: _vm.hasDisplayThumbImageState, expression: "hasDisplayThumbImageState" }], attrs: { "src": _vm.localData.thumb, "alt": "" } })])])])]), _c("div", { staticClass: "gc-footer" }, [_c("div", { ref: "dragBarRef", staticClass: "gc-drag-slide-bar" }, [_c("div", { staticClass: "gc-drag-line" }), _c("div", { ref: "dragBlockRef", staticClass: "gc-drag-block", class: !_vm.hasDisplayImageState && "disabled", style: { left: _vm.handler.state.dragLeft + "px" }, on: { "mousedown": _vm.handler.dragEvent } }, [_c("div", { staticClass: "gc-drag-block-inline", on: { "touchstart": _vm.handler.dragEvent } }, [_c("arrows-icon")], 1)])])])]);
1434
+ return _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.hasDisplayWrapperState, expression: "hasDisplayWrapperState" }], ref: "rootRef", class: "go-captcha gc-wrapper " + (_vm.localConfig.showTheme && "gc-theme"), style: _vm.wrapperStyles }, [_c("div", { staticClass: "gc-header" }, [_c("span", [_vm._v(_vm._s(_vm.localConfig.title))]), _c("div", { staticClass: "gc-icon-block" }, [_c("close-icon", { attrs: { "width": _vm.localConfig.iconSize, "height": _vm.localConfig.iconSize }, on: { "click": _vm.handler.closeEvent } }), _c("refresh-icon", { attrs: { "width": _vm.localConfig.iconSize, "height": _vm.localConfig.iconSize }, on: { "click": _vm.handler.refreshEvent } })], 1)]), _c("div", { ref: "containerRef", staticClass: "gc-body gc-rotate-body", style: _vm.imageBlockStyles }, [_c("div", { staticClass: "gc-body-inner", style: _vm.imageStyles }, [_c("div", { staticClass: "gc-loading" }, [_c("loading-icon")], 1), _c("div", { staticClass: "gc-picture gc-rotate-picture", style: _vm.imageStyles }, [_c("img", { directives: [{ name: "show", rawName: "v-show", value: _vm.hasDisplayImageState, expression: "hasDisplayImageState" }], attrs: { "src": _vm.localData.image, "alt": "" } }), _c("div", { staticClass: "gc-round" })]), _c("div", { staticClass: "gc-thumb gc-rotate-thumb" }, [_c("div", { staticClass: "gc-rotate-thumb-block", style: _vm.thumbStyles }, [_c("img", { directives: [{ name: "show", rawName: "v-show", value: _vm.hasDisplayThumbImageState, expression: "hasDisplayThumbImageState" }], attrs: { "src": _vm.localData.thumb, "alt": "" } })])])])]), _c("div", { staticClass: "gc-footer" }, [_c("div", { ref: "dragBarRef", staticClass: "gc-drag-slide-bar" }, [_c("div", { staticClass: "gc-drag-line" }), _c("div", { ref: "dragBlockRef", staticClass: "gc-drag-block", class: !_vm.hasDisplayImageState && "disabled", style: { left: _vm.handler.state.dragLeft + "px" }, on: { "mousedown": _vm.handler.dragEvent } }, [_c("div", { staticClass: "gc-drag-block-inline", on: { "touchstart": _vm.handler.dragEvent } }, [_c("arrows-icon")], 1)])])])]);
1434
1435
  };
1435
1436
  var staticRenderFns$5 = [];
1436
1437
  var index_vue_vue_type_style_index_0_lang$1 = "";
@@ -1,11 +1,11 @@
1
- (function(M,s){typeof exports=="object"&&typeof module!="undefined"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(M=typeof globalThis!="undefined"?globalThis:M||self,s(M["go-captcha-vue"]={},M.Vue))})(this,function(M,s){"use strict";var Ht="";const re=()=>({width:300,height:220,thumbWidth:150,thumbHeight:40,verticalPadding:16,horizontalPadding:12,showTheme:!0,title:"\u8BF7\u5728\u4E0B\u56FE\u4F9D\u6B21\u70B9\u51FB",buttonText:"\u786E\u8BA4",iconSize:22,dotSize:24}),le={};le.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var Te=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{d:`M100.1,189.9C100.1,189.9,100,189.9,100.1,189.9c-49.7,0-90-40.4-90-89.9c0-49.6,40.4-89.9,89.9-89.9
1
+ (function(X,s){typeof exports=="object"&&typeof module!="undefined"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(X=typeof globalThis!="undefined"?globalThis:X||self,s(X["go-captcha-vue"]={},X.Vue))})(this,function(X,s){"use strict";var Nt="";const re=()=>({width:300,height:220,thumbWidth:150,thumbHeight:40,verticalPadding:16,horizontalPadding:12,showTheme:!0,title:"\u8BF7\u5728\u4E0B\u56FE\u4F9D\u6B21\u70B9\u51FB",buttonText:"\u786E\u8BA4",iconSize:22,dotSize:24}),le={};le.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var Te=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{d:`M100.1,189.9C100.1,189.9,100,189.9,100.1,189.9c-49.7,0-90-40.4-90-89.9c0-49.6,40.4-89.9,89.9-89.9
2
2
  c49.6,0,89.9,40.4,89.9,89.9c0,18.2-5.4,35.7-15.6,50.7c-1.5,2.1-3.6,3.4-6.1,3.9c-2.5,0.4-5-0.1-7-1.6c-4.2-3-5.3-8.6-2.4-12.9
3
3
  c8.1-11.9,12.4-25.7,12.4-40.1c0-39.2-31.9-71.1-71.1-71.1c-39.2,0-71.1,31.9-71.1,71.1c0,39.2,31.9,71.1,71.1,71.1
4
4
  c7.7,0,15.3-1.2,22.6-3.6c2.4-0.8,4.9-0.6,7.2,0.5c2.2,1.1,3.9,3.1,4.7,5.5c1.6,4.9-1,10.2-5.9,11.9
5
5
  C119.3,188.4,109.8,189.9,100.1,189.9z M73,136.4C73,136.4,73,136.4,73,136.4c-2.5,0-4.9-1-6.7-2.8c-3.7-3.7-3.7-9.6,0-13.3
6
6
  L86.7,100L66.4,79.7c-3.7-3.7-3.7-9.6,0-13.3c3.7-3.7,9.6-3.7,13.3,0L100,86.7l20.3-20.3c1.8-1.8,4.1-2.8,6.7-2.8c0,0,0,0,0,0
7
7
  c2.5,0,4.9,1,6.7,2.8c1.8,1.8,2.8,4.1,2.8,6.7c0,2.5-1,4.9-2.8,6.7L113.3,100l20.3,20.3c3.7,3.7,3.7,9.6,0,13.3
8
- c-3.7,3.7-9.6,3.7-13.3,0L100,113.3l-20.3,20.3C77.9,135.4,75.5,136.4,73,136.4z`}})])},Ie=[],Nt="";function T(e,n,t,i,u,v,o,r){var a=typeof e=="function"?e.options:e;n&&(a.render=n,a.staticRenderFns=t,a._compiled=!0),i&&(a.functional=!0),v&&(a._scopeId="data-v-"+v);var d;if(o?(d=function(c){c=c||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!c&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(c=__VUE_SSR_CONTEXT__),u&&u.call(this,c),c&&c._registeredComponents&&c._registeredComponents.add(o)},a._ssrRegister=d):u&&(d=r?function(){u.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:u),d)if(a.functional){a._injectStyles=d;var _=a.render;a.render=function(g,E){return d.call(E),_(g,E)}}else{var p=a.beforeCreate;a.beforeCreate=p?[].concat(p,d):[d]}return{exports:e,options:a}}const ue={};var Me=T(le,Te,Ie,!1,We,"3972774c",null,null);function We(e){for(let n in ue)this[n]=ue[n]}var se=function(){return Me.exports}();const de={};de.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var Xe=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{d:`M135,149.9c-10.7,7.6-23.2,11.4-36,11.2c-1.7,0-3.4-0.1-5-0.3c-0.7-0.1-1.4-0.2-2-0.3c-1.3-0.2-2.6-0.4-3.9-0.6
8
+ c-3.7,3.7-9.6,3.7-13.3,0L100,113.3l-20.3,20.3C77.9,135.4,75.5,136.4,73,136.4z`}})])},Ie=[],Vt="";function I(e,n,t,i,u,m,o,r){var a=typeof e=="function"?e.options:e;n&&(a.render=n,a.staticRenderFns=t,a._compiled=!0),i&&(a.functional=!0),m&&(a._scopeId="data-v-"+m);var d;if(o?(d=function(c){c=c||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!c&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(c=__VUE_SSR_CONTEXT__),u&&u.call(this,c),c&&c._registeredComponents&&c._registeredComponents.add(o)},a._ssrRegister=d):u&&(d=r?function(){u.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:u),d)if(a.functional){a._injectStyles=d;var v=a.render;a.render=function(p,w){return d.call(w),v(p,w)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,d):[d]}return{exports:e,options:a}}const ue={};var Me=I(le,Te,Ie,!1,We,"3972774c",null,null);function We(e){for(let n in ue)this[n]=ue[n]}var se=function(){return Me.exports}();const de={};de.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var Xe=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{d:`M135,149.9c-10.7,7.6-23.2,11.4-36,11.2c-1.7,0-3.4-0.1-5-0.3c-0.7-0.1-1.4-0.2-2-0.3c-1.3-0.2-2.6-0.4-3.9-0.6
9
9
  c-0.8-0.2-1.6-0.4-2.3-0.5c-1.2-0.3-2.5-0.6-3.7-1c-0.6-0.2-1.2-0.4-1.7-0.6c-1.4-0.5-2.8-1-4.2-1.5c-0.3-0.1-0.6-0.3-0.9-0.4
10
10
  c-1.6-0.7-3.2-1.4-4.7-2.3c-0.1,0-0.1-0.1-0.2-0.1c-5.1-2.9-9.8-6.4-14-10.6c-0.1-0.1-0.1-0.1-0.2-0.2c-1.3-1.3-2.5-2.7-3.7-4.1
11
11
  c-0.2-0.3-0.5-0.6-0.7-0.9c-8.4-10.6-13.5-24.1-13.5-38.8h14.3c0.4,0,0.7-0.2,0.9-0.5c0.2-0.3,0.2-0.8,0-1.1L29.5,60.9
@@ -22,18 +22,18 @@
22
22
  c0.6,0.1,1.3,0.3,1.9,0.4c1.4,0.3,2.8,0.7,4.2,1.1c0.4,0.1,0.9,0.3,1.3,0.4c1.6,0.5,3.1,1.1,4.6,1.7c0.2,0.1,0.3,0.1,0.5,0.2
23
23
  c9,3.9,17,10,23.2,17.6c0,0,0.1,0.1,0.1,0.2c8.7,10.7,14,24.5,14,39.4H147c-0.4,0-0.7,0.2-0.9,0.5c-0.2,0.3-0.2,0.8,0,1.1l24,36.4
24
24
  c0.2,0.3,0.5,0.5,0.9,0.5c0.4,0,0.7-0.2,0.9-0.5l23.9-36.4c0.2-0.3,0.2-0.7,0-1.1c-0.2-0.3-0.5-0.5-0.9-0.5L180.6,98.9L180.6,98.9
25
- L180.6,98.9z`}})])},je=[],Vt="";const he={};var Pe=T(de,Xe,je,!1,Oe,"1120f0d2",null,null);function Oe(e){for(let n in he)this[n]=he[n]}var ae=function(){return Pe.exports}();const fe={};fe.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var Ye=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",width:"84",height:"84"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("circle",{attrs:{cx:"50",cy:"36.8101",r:"10"}},[t("animate",{attrs:{attributeName:"cy",dur:"1s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.45 0 0.9 0.55;0 0.45 0.55 0.9",keyTimes:"0;0.5;1",values:"23;77;23"}})])])},qe=[],Ut="";const pe={};var Ae=T(fe,Ye,qe,!1,He,"c6fd8106",null,null);function He(e){for(let n in pe)this[n]=pe[n]}var ce=function(){return Ae.exports}();function Ne(e){let n=0,t=0;if(e.getBoundingClientRect){const i=e.getBoundingClientRect(),u=document.documentElement;n=i.left+Math.max(u.scrollLeft,document.body.scrollLeft)-u.clientLeft,t=i.top+Math.max(u.scrollTop,document.body.scrollTop)-u.clientTop}else for(;e!==document.body;)n+=e.offsetLeft,t+=e.offsetTop,e=e.offsetParent;return{domX:n,domY:t}}function oe(e,n){let t=n.relatedTarget;try{for(;t&&t!==e;)t=t.parentNode}catch(i){console.warn(i)}return t!==e}function Ve(e,n,t){const i=s.reactive({list:[]}),u=c=>{const g=c.currentTarget,E=Ne(g),l=c.pageX||c.clientX,x=c.pageY||c.clientY,b=E.domX,L=E.domY,w=l-b,h=x-L,m=parseInt(w.toString()),S=parseInt(h.toString()),P=new Date,W=i.list.length;return i.list.push({key:P.getTime(),index:W+1,x:m,y:S}),n.click&&n.click(m,S),c.cancelBubble=!0,c.preventDefault(),!1},v=c=>(n.confirm&&n.confirm(s.toRaw(i.list),()=>{_()}),c.cancelBubble=!0,c.preventDefault(),!1),o=c=>(a(),c.cancelBubble=!0,c.preventDefault(),!1),r=c=>(d(),c.cancelBubble=!0,c.preventDefault(),!1),a=()=>{n.close&&n.close(),_()},d=()=>{n.refresh&&n.refresh(),_()},_=()=>{i.list=[]};return{dots:i,clickEvent:u,confirmEvent:v,closeEvent:o,refreshEvent:r,resetData:_,clearData:()=>{_(),t&&t()},refresh:d,close:a}}const V={};V.props={config:{key:"config",required:!1,type:null,default:re},events:{key:"events",required:!1,type:null,default:()=>({})},data:{key:"data",required:!1,type:null,default:()=>({})}},V.setup=(e,n)=>{const t=e,{data:i,events:u,config:v}=t,o=s.reactive({...s.toRaw(i)}),r=s.reactive({...s.toRaw(u)}),a=s.reactive({...re(),...s.toRaw(v)});s.watch(()=>t.data,(l,x)=>{Object.assign(o,l)},{deep:!0}),s.watch(()=>t.events,(l,x)=>{Object.assign(r,l)},{deep:!0}),s.watch(()=>t.config,(l,x)=>{Object.assign(a,l)},{deep:!0});const d=Ve(o,r,()=>{o.thumb="",o.image=""}),_=s.computed(()=>{const l=a.horizontalPadding||0,x=a.verticalPadding||0;return{width:(a.width||0)+l*2+(a.showTheme?2:0)+"px",paddingLeft:l+"px",paddingRight:l+"px",paddingTop:x+"px",paddingBottom:x+"px"}}),p=s.computed(()=>({width:a.thumbWidth+"px",height:a.thumbHeight+"px"})),c=s.computed(()=>({width:a.width+"px",height:a.height+"px"})),g=s.computed(()=>o.image!=""||o.thumb!=""),E=s.computed(()=>(a.width||0)>0||(a.height||0)>0);return Object.assign({localData:o,localConfig:a,handler:d,wrapperStyles:_,thumbStyles:p,imageStyles:c,hasDisplayImageState:g,hasDisplayWrapperState:E},{reset:d.resetData,clear:d.clearData,refresh:d.refresh,close:d.close})},V.components=Object.assign({LoadingIcon:ce,CloseIcon:se,RefreshIcon:ae},V.components);var Ue=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayWrapperState,expression:"hasDisplayWrapperState"}],class:"go-captcha gc-wrapper "+(e.localConfig.showTheme&&"gc-theme"),style:e.wrapperStyles},[t("div",{staticClass:"gc-header"},[t("span",[e._v(e._s(e.localConfig.title))]),t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayImageState,expression:"hasDisplayImageState"}],style:e.thumbStyles,attrs:{src:e.localData.thumb,alt:""}})]),t("div",{staticClass:"gc-body",style:e.imageStyles},[t("div",{staticClass:"gc-loading"},[t("loading-icon")],1),t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayImageState,expression:"hasDisplayImageState"}],staticClass:"gc-picture",style:e.imageStyles,attrs:{src:e.localData.image,alt:""},on:{click:e.handler.clickEvent}}),t("div",{staticClass:"gc-dots"},e._l(e.handler.dots.list,function(i){return t("div",{key:i.key+"-"+i.index,staticClass:"gc-dot",style:{width:e.localConfig.dotSize+"px",height:e.localConfig.dotSize+"px",borderRadius:e.localConfig.dotSize+"px",top:i.y-(e.localConfig.dotSize||1)/2-1+"px",left:i.x-(e.localConfig.dotSize||1)/2-1+"px"}},[e._v(e._s(i.index))])}),0)]),t("div",{staticClass:"gc-footer"},[t("div",{staticClass:"gc-icon-block gc-icon-block2"},[t("close-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.closeEvent}}),t("refresh-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.refreshEvent}})],1),t("div",{staticClass:"gc-button-block"},[t("button",{class:!e.hasDisplayImageState&&"disabled",on:{click:e.handler.confirmEvent}},[e._v(e._s(e.localConfig.buttonText))])])])])},Ge=[],Gt="";const ge={};var Je=T(V,Ue,Ge,!1,Ke,null,null,null);function Ke(e){for(let n in ge)this[n]=ge[n]}var U=function(){return Je.exports}();U.name="gocaptcha-click",U.install=function(e){e.component("gocaptcha-click",U)};const me=()=>({width:300,height:220,thumbWidth:150,thumbHeight:40,verticalPadding:16,horizontalPadding:12,showTheme:!0,title:"\u8BF7\u62D6\u52A8\u6ED1\u5757\u5B8C\u6210\u62FC\u56FE",iconSize:22,scope:!0}),ve={};ve.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var Qe=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{d:`M131.6,116.3c0,0-75.6,0-109.7,0c-9.1,0-16.2-7.4-16.2-16.2c0-9.1,7.4-16.2,16.2-16.2c28.7,0,109.7,0,109.7,0
25
+ L180.6,98.9z`}})])},je=[],Ut="";const he={};var Pe=I(de,Xe,je,!1,Oe,"1120f0d2",null,null);function Oe(e){for(let n in he)this[n]=he[n]}var ae=function(){return Pe.exports}();const fe={};fe.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var Ye=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",width:"84",height:"84"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("circle",{attrs:{cx:"50",cy:"36.8101",r:"10"}},[t("animate",{attrs:{attributeName:"cy",dur:"1s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.45 0 0.9 0.55;0 0.45 0.55 0.9",keyTimes:"0;0.5;1",values:"23;77;23"}})])])},qe=[],Gt="";const pe={};var Ae=I(fe,Ye,qe,!1,He,"c6fd8106",null,null);function He(e){for(let n in pe)this[n]=pe[n]}var ce=function(){return Ae.exports}();function Ne(e){let n=0,t=0;if(e.getBoundingClientRect){const i=e.getBoundingClientRect(),u=document.documentElement;n=i.left+Math.max(u.scrollLeft,document.body.scrollLeft)-u.clientLeft,t=i.top+Math.max(u.scrollTop,document.body.scrollTop)-u.clientTop}else for(;e!==document.body;)n+=e.offsetLeft,t+=e.offsetTop,e=e.offsetParent;return{domX:n,domY:t}}function oe(e,n){let t=n.relatedTarget;try{for(;t&&t!==e;)t=t.parentNode}catch(i){console.warn(i)}return t!==e}function Ve(e,n,t){const i=s.reactive({list:[]}),u=c=>{const p=c.currentTarget,w=Ne(p),l=c.pageX||c.clientX,E=c.pageY||c.clientY,_=w.domX,D=w.domY,b=l-_,h=E-D,g=parseInt(b.toString()),S=parseInt(h.toString()),j=new Date,P=i.list.length;return i.list.push({key:j.getTime(),index:P+1,x:g,y:S}),n.click&&n.click(g,S),c.cancelBubble=!0,c.preventDefault(),!1},m=c=>(n.confirm&&n.confirm(s.toRaw(i.list),()=>{v()}),c.cancelBubble=!0,c.preventDefault(),!1),o=c=>(a(),c.cancelBubble=!0,c.preventDefault(),!1),r=c=>(d(),c.cancelBubble=!0,c.preventDefault(),!1),a=()=>{n.close&&n.close(),v()},d=()=>{n.refresh&&n.refresh(),v()},v=()=>{i.list=[]};return{dots:i,clickEvent:u,confirmEvent:m,closeEvent:o,refreshEvent:r,resetData:v,clearData:()=>{v(),t&&t()},refresh:d,close:a}}const V={};V.props={config:{key:"config",required:!1,type:null,default:re},events:{key:"events",required:!1,type:null,default:()=>({})},data:{key:"data",required:!1,type:null,default:()=>({})}},V.setup=(e,n)=>{const t=e,{data:i,events:u,config:m}=t,o=s.reactive({...s.toRaw(i)}),r=s.reactive({...s.toRaw(u)}),a=s.reactive({...re(),...s.toRaw(m)});s.watch(()=>t.data,(l,E)=>{Object.assign(o,l)},{deep:!0}),s.watch(()=>t.events,(l,E)=>{Object.assign(r,l)},{deep:!0}),s.watch(()=>t.config,(l,E)=>{Object.assign(a,l)},{deep:!0});const d=Ve(o,r,()=>{o.thumb="",o.image=""}),v=s.computed(()=>{const l=a.horizontalPadding||0,E=a.verticalPadding||0;return{width:(a.width||0)+l*2+(a.showTheme?2:0)+"px",paddingLeft:l+"px",paddingRight:l+"px",paddingTop:E+"px",paddingBottom:E+"px"}}),f=s.computed(()=>({width:a.thumbWidth+"px",height:a.thumbHeight+"px"})),c=s.computed(()=>({width:a.width+"px",height:a.height+"px"})),p=s.computed(()=>o.image!=""||o.thumb!=""),w=s.computed(()=>(a.width||0)>0||(a.height||0)>0);return Object.assign({localData:o,localConfig:a,handler:d,wrapperStyles:v,thumbStyles:f,imageStyles:c,hasDisplayImageState:p,hasDisplayWrapperState:w},{reset:d.resetData,clear:d.clearData,refresh:d.refresh,close:d.close})},V.components=Object.assign({LoadingIcon:ce,CloseIcon:se,RefreshIcon:ae},V.components);var Ue=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayWrapperState,expression:"hasDisplayWrapperState"}],class:"go-captcha gc-wrapper "+(e.localConfig.showTheme&&"gc-theme"),style:e.wrapperStyles},[t("div",{staticClass:"gc-header"},[t("span",[e._v(e._s(e.localConfig.title))]),t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayImageState,expression:"hasDisplayImageState"}],style:e.thumbStyles,attrs:{src:e.localData.thumb,alt:""}})]),t("div",{staticClass:"gc-body",style:e.imageStyles},[t("div",{staticClass:"gc-loading"},[t("loading-icon")],1),t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayImageState,expression:"hasDisplayImageState"}],staticClass:"gc-picture",style:e.imageStyles,attrs:{src:e.localData.image,alt:""},on:{click:e.handler.clickEvent}}),t("div",{staticClass:"gc-dots"},e._l(e.handler.dots.list,function(i){return t("div",{key:i.key+"-"+i.index,staticClass:"gc-dot",style:{width:e.localConfig.dotSize+"px",height:e.localConfig.dotSize+"px",borderRadius:e.localConfig.dotSize+"px",top:i.y-(e.localConfig.dotSize||1)/2-1+"px",left:i.x-(e.localConfig.dotSize||1)/2-1+"px"}},[e._v(e._s(i.index))])}),0)]),t("div",{staticClass:"gc-footer"},[t("div",{staticClass:"gc-icon-block gc-icon-block2"},[t("close-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.closeEvent}}),t("refresh-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.refreshEvent}})],1),t("div",{staticClass:"gc-button-block"},[t("button",{class:!e.hasDisplayImageState&&"disabled",on:{click:e.handler.confirmEvent}},[e._v(e._s(e.localConfig.buttonText))])])])])},Ge=[],Jt="";const ge={};var Je=I(V,Ue,Ge,!1,Ke,null,null,null);function Ke(e){for(let n in ge)this[n]=ge[n]}var U=function(){return Je.exports}();U.name="gocaptcha-click",U.install=function(e){e.component("gocaptcha-click",U)};const me=()=>({width:300,height:220,thumbWidth:150,thumbHeight:40,verticalPadding:16,horizontalPadding:12,showTheme:!0,title:"\u8BF7\u62D6\u52A8\u6ED1\u5757\u5B8C\u6210\u62FC\u56FE",iconSize:22,scope:!0}),ve={};ve.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var Qe=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{d:`M131.6,116.3c0,0-75.6,0-109.7,0c-9.1,0-16.2-7.4-16.2-16.2c0-9.1,7.4-16.2,16.2-16.2c28.7,0,109.7,0,109.7,0
26
26
  s-5.4-5.4-30.4-30.7c-6.4-6.4-6.4-16.7,0-23.1s16.7-6.4,23.1,0l58.4,58.4c6.4,6.4,6.4,16.7,0,23.1c0,0-32.9,32.9-57.9,57.9
27
- c-6.4,6.4-16.7,6.4-23.1,0c-6.4-6.4-6.4-16.7,0-23.1C121.8,126.2,131.6,116.3,131.6,116.3z`}})])},Ze=[],Jt="";const _e={};var et=T(ve,Qe,Ze,!1,tt,"30853052",null,null);function tt(e){for(let n in _e)this[n]=_e[n]}var be=function(){return et.exports}();const nt=()=>({thumbX:0,thumbY:0,thumbWidth:0,thumbHeight:0,image:"",thumb:""});function st(e,n,t,i,u,v,o,r,a){const d=s.reactive({dragLeft:0,thumbLeft:e.thumbX||0,isFreeze:!1});s.watch(()=>e,(b,L)=>{d.isFreeze||(d.thumbLeft=b.thumbX||0)},{deep:!0});const _=b=>{const L=b.touches&&b.touches[0],w=o.value.offsetLeft,h=u.value.offsetWidth,m=o.value.offsetWidth,S=h-m,P=v.value.offsetWidth,W=v.value.offsetLeft,O=(h-(P+W))/S;let z=!1,B=null,$=0,I=0;L?$=L.pageX-w:$=b.clientX-w;const X=y=>{z=!0;const N=y.touches&&y.touches[0];let k=0;N?k=N.pageX-$:k=y.clientX-$;let Y=W+k*O;if(k>=S){d.dragLeft=S,d.thumbLeft=I=S;return}if(k<=0){d.dragLeft=0,d.thumbLeft=I=W;return}d.dragLeft=k,d.thumbLeft=I=Y,n.move&&n.move(I,e.thumbY||0),y.cancelBubble=!0,y.preventDefault()},D=y=>{!oe(r.value,y)||!z||(j(),!(I<0)&&(z=!1,n.confirm&&n.confirm({x:parseInt(I.toString()),y:e.thumbY||0},()=>{l()}),y.cancelBubble=!0,y.preventDefault()))},A=y=>{B=y},F=()=>{B=null},R=y=>{!B||(D(B),j())},H=t.scope,f=H?i.value:r.value,C=H?i.value:document.body,j=()=>{C.removeEventListener("mousemove",X,!1),C.removeEventListener("touchmove",X,{passive:!1}),f.removeEventListener("mouseup",D,!1),f.removeEventListener("mouseenter",F,!1),f.removeEventListener("mouseleave",A,!1),f.removeEventListener("touchend",D,!1),C.removeEventListener("mouseleave",D,!1),C.removeEventListener("mouseup",R,!1),d.isFreeze=!1};d.isFreeze=!0,C.addEventListener("mousemove",X,!1),C.addEventListener("touchmove",X,{passive:!1}),f.addEventListener("mouseup",D,!1),f.addEventListener("mouseenter",F,!1),f.addEventListener("mouseleave",A,!1),f.addEventListener("touchend",D,!1),C.addEventListener("mouseleave",D,!1),C.addEventListener("mouseup",R,!1)},p=b=>(g(),b.cancelBubble=!0,b.preventDefault(),!1),c=b=>(E(),b.cancelBubble=!0,b.preventDefault(),!1),g=()=>{n&&n.close&&n.close(),l()},E=()=>{n&&n.refresh&&n.refresh(),l()},l=()=>{d.dragLeft=0,d.thumbLeft=e.thumbX||0};return{state:d,dragEvent:_,closeEvent:p,refreshEvent:c,resetData:l,clearData:()=>{a&&a(),l()},refresh:E,close:g}}const G={};G.props={config:{key:"config",required:!1,type:null,default:me},events:{key:"events",required:!1,type:null,default:()=>({})},data:{key:"data",required:!1,type:null,default:()=>({})}},G.setup=(e,n)=>{const t=e,{data:i,events:u,config:v}=t,o=s.reactive({...nt(),...s.toRaw(i)}),r=s.reactive({...s.toRaw(u)}),a=s.reactive({...me(),...s.toRaw(v)});s.watch(()=>t.data,(m,S)=>{Object.assign(o,m)},{deep:!0}),s.watch(()=>t.events,(m,S)=>{Object.assign(r,m)},{deep:!0}),s.watch(()=>t.config,(m,S)=>{Object.assign(a,m)},{deep:!0});const d=s.ref(null),_=s.ref(null),p=s.ref(null),c=s.ref(null),g=s.ref(null),E=st(o,r,a,d,p,g,c,_,()=>{o.thumb="",o.image="",o.thumbX=0,o.thumbY=0,o.thumbWidth=0,o.thumbHeight=0}),l=s.computed(()=>{const m=a.horizontalPadding||0,S=a.verticalPadding||0;return{width:(a.width||0)+m*2+(a.showTheme?2:0)+"px",paddingLeft:m+"px",paddingRight:m+"px",paddingTop:S+"px",paddingBottom:S+"px"}}),x=s.computed(()=>({width:o.thumbWidth+"px",height:o.thumbHeight+"px",top:o.thumbY+"px",left:E.state.thumbLeft+"px"})),b=s.computed(()=>({width:a.width+"px",height:a.height+"px"})),L=s.computed(()=>o.image!=""),w=s.computed(()=>o.thumb!=""),h=s.computed(()=>(a.width||0)>0||(a.height||0)>0);return s.onMounted(async()=>{await s.nextTick(),c.value&&c.value.addEventListener("dragstart",m=>m.preventDefault())}),Object.assign({localData:o,localConfig:a,rootRef:d,dragBarRef:_,containerRef:p,dragBlockRef:c,tileRef:g,handler:E,wrapperStyles:l,thumbStyles:x,imageStyles:b,hasDisplayImageState:L,hasDisplayThumbImageState:w,hasDisplayWrapperState:h},{reset:E.resetData,clear:E.clearData,refresh:E.refresh,close:E.close})},G.components=Object.assign({CloseIcon:se,RefreshIcon:ae,LoadingIcon:ce,ArrowsIcon:be},G.components);var at=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayWrapperState,expression:"hasDisplayWrapperState"}],ref:"rootRef",class:"go-captcha gc-wrapper "+(e.localConfig.showTheme&&"gc-theme"),style:e.wrapperStyles},[t("div",{staticClass:"gc-header"},[t("span",[e._v(e._s(e.localConfig.title))]),t("div",{staticClass:"gc-icon-block"},[t("close-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.closeEvent}}),t("refresh-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.refreshEvent}})],1)]),t("div",{ref:"containerRef",staticClass:"gc-body",style:e.imageStyles},[t("div",{staticClass:"gc-loading"},[t("loading-icon")],1),t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayImageState,expression:"hasDisplayImageState"}],staticClass:"gc-picture",style:e.imageStyles,attrs:{src:e.localData.image,alt:""}}),t("div",{ref:"tileRef",staticClass:"gc-tile",style:e.thumbStyles},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayThumbImageState,expression:"hasDisplayThumbImageState"}],attrs:{src:e.localData.thumb,alt:""}})])]),t("div",{staticClass:"gc-footer"},[t("div",{ref:"dragBarRef",staticClass:"gc-drag-slide-bar"},[t("div",{staticClass:"gc-drag-line"}),t("div",{ref:"dragBlockRef",staticClass:"gc-drag-block",class:!e.hasDisplayImageState&&"disabled",style:{left:e.handler.state.dragLeft+"px"},on:{mousedown:e.handler.dragEvent}},[t("div",{staticClass:"gc-drag-block-inline",on:{touchstart:e.handler.dragEvent}},[t("arrows-icon")],1)])])])])},ct=[],Kt="";const ye={};var ot=T(G,at,ct,!1,it,null,null,null);function it(e){for(let n in ye)this[n]=ye[n]}var J=function(){return ot.exports}();J.name="gocaptcha-slide",J.install=function(e){e.component("gocaptcha-slide",J)};const we=()=>({width:300,height:220,verticalPadding:16,horizontalPadding:12,showTheme:!0,title:"\u8BF7\u62D6\u62FD\u8D34\u56FE\u5B8C\u6210\u62FC\u56FE",iconSize:22,scope:!0}),rt=()=>({thumbX:0,thumbY:0,thumbWidth:0,thumbHeight:0,image:"",thumb:""});function lt(e,n,t,i,u,v,o){const r=s.reactive({x:e.thumbX||0,y:e.thumbY||0,isFreeze:!1});s.watch(()=>e,(l,x)=>{r.isFreeze||(r.x=l.thumbX||0,r.y=l.thumbY||0)},{deep:!0});const a=l=>{const x=l.touches&&l.touches[0],b=v.value.offsetLeft,L=v.value.offsetTop,w=u.value.offsetWidth,h=u.value.offsetHeight,m=v.value.offsetWidth,S=v.value.offsetHeight,P=w-m,W=h-S;let q=!1,O=null,z=0,B=0,$=0,I=0;x?(z=x.pageX-b,B=x.pageY-L):(z=l.clientX-b,B=l.clientY-L);const X=y=>{q=!0;const N=y.touches&&y.touches[0];let k=0,Y=0;N?(k=N.pageX-z,Y=N.pageY-B):(k=y.clientX-z,Y=y.clientY-B),k<=0&&(k=0),Y<=0&&(Y=0),k>=P&&(k=P),Y>=W&&(Y=W),r.x=k,r.y=Y,$=k,I=Y,n.move&&n.move(k,Y),y.cancelBubble=!0,y.preventDefault()},D=y=>{!oe(u.value,y)||!q||(q=!1,j(),!($<0||I<0)&&(n.confirm&&n.confirm({x:$,y:I},()=>{g()}),y.cancelBubble=!0,y.preventDefault()))},A=y=>{O=y},F=()=>{O=null},R=y=>{!O||(D(O),j())},H=t.scope,f=H?i.value:u.value,C=H?i.value:document.body,j=()=>{C.removeEventListener("mousemove",X,!1),C.removeEventListener("touchmove",X,{passive:!1}),f.removeEventListener("mouseup",D,!1),f.removeEventListener("mouseenter",F,!1),f.removeEventListener("mouseleave",A,!1),f.removeEventListener("touchend",D,!1),C.removeEventListener("mouseleave",D,!1),C.removeEventListener("mouseup",R,!1),r.isFreeze=!1};r.isFreeze=!0,C.addEventListener("mousemove",X,!1),C.addEventListener("touchmove",X,{passive:!1}),f.addEventListener("mouseup",D,!1),f.addEventListener("mouseenter",F,!1),f.addEventListener("mouseleave",A,!1),f.addEventListener("touchend",D,!1),C.addEventListener("mouseleave",D,!1),C.addEventListener("mouseup",R,!1)},d=l=>(p(),l.cancelBubble=!0,l.preventDefault(),!1),_=l=>(c(),l.cancelBubble=!0,l.preventDefault(),!1),p=()=>{n&&n.close&&n.close(),g()},c=()=>{n&&n.refresh&&n.refresh(),g()},g=()=>{r.x=e.thumbX||0,r.y=e.thumbY||0};return{state:r,dragEvent:a,closeEvent:d,refreshEvent:_,resetData:g,clearData:()=>{o&&o(),g()},refresh:c,close:p}}const K={};K.props={config:{key:"config",required:!1,type:null,default:we},events:{key:"events",required:!1,type:null,default:()=>({})},data:{key:"data",required:!1,type:null,default:()=>({})}},K.setup=(e,n)=>{const t=e,{data:i,events:u,config:v}=t,o=s.reactive({...rt(),...s.toRaw(i)}),r=s.reactive({...s.toRaw(u)}),a=s.reactive({...we(),...s.toRaw(v)});s.watch(()=>t.data,(w,h)=>{Object.assign(o,w)},{deep:!0}),s.watch(()=>t.events,(w,h)=>{Object.assign(r,w)},{deep:!0}),s.watch(()=>t.config,(w,h)=>{Object.assign(a,w)},{deep:!0});const d=s.ref(null),_=s.ref(null),p=s.ref(null),c=lt(o,r,a,d,_,p,()=>{o.thumb="",o.image="",o.thumbX=0,o.thumbY=0,o.thumbWidth=0,o.thumbHeight=0}),g=s.computed(()=>{const w=a.horizontalPadding||0,h=a.verticalPadding||0;return{width:(a.width||0)+w*2+(a.showTheme?2:0)+"px",paddingLeft:w+"px",paddingRight:w+"px",paddingTop:h+"px",paddingBottom:h+"px"}}),E=s.computed(()=>({width:o.thumbWidth+"px",height:o.thumbHeight+"px",top:c.state.y+"px",left:c.state.x+"px"})),l=s.computed(()=>({width:a.width+"px",height:a.height+"px"})),x=s.computed(()=>o.image!=""),b=s.computed(()=>o.thumb!=""),L=s.computed(()=>(a.width||0)>0||(a.height||0)>0);return s.onMounted(async()=>{await s.nextTick(),p.value&&p.value.addEventListener("dragstart",w=>w.preventDefault())}),Object.assign({localData:o,localConfig:a,rootRef:d,containerRef:_,tileRef:p,handler:c,wrapperStyles:g,thumbStyles:E,imageStyles:l,hasDisplayImageState:x,hasDisplayThumbImageState:b,hasDisplayWrapperState:L},{reset:c.resetData,clear:c.clearData,refresh:c.refresh,close:c.close})},K.components=Object.assign({LoadingIcon:ce,CloseIcon:se,RefreshIcon:ae},K.components);var ut=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayWrapperState,expression:"hasDisplayWrapperState"}],ref:"rootRef",class:"go-captcha gc-wrapper "+(e.localConfig.showTheme&&"gc-theme"),style:e.wrapperStyles},[t("div",{staticClass:"gc-header gc-header2"},[t("span",[e._v(e._s(e.localConfig.title))])]),t("div",{ref:"containerRef",staticClass:"gc-body",style:e.imageStyles},[t("div",{staticClass:"gc-loading"},[t("loading-icon")],1),t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayImageState,expression:"hasDisplayImageState"}],staticClass:"gc-picture",style:e.imageStyles,attrs:{src:e.localData.image,alt:""}}),t("div",{ref:"tileRef",staticClass:"gc-tile",style:e.thumbStyles,on:{mousedown:e.handler.dragEvent,touchstart:e.handler.dragEvent}},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayThumbImageState,expression:"hasDisplayThumbImageState"}],attrs:{src:e.localData.thumb,alt:""}})])]),t("div",{staticClass:"gc-footer"},[t("div",{staticClass:"gc-icon-block"},[t("close-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.closeEvent}}),t("refresh-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.refreshEvent}})],1)])])},dt=[],Qt="";const Ee={};var ht=T(K,ut,dt,!1,ft,null,null,null);function ft(e){for(let n in Ee)this[n]=Ee[n]}var Q=function(){return ht.exports}();Q.name="gocaptcha-slide-region",Q.install=function(e){e.component("gocaptcha-slide-region",Q)};const ie=()=>({width:300,height:220,size:220,verticalPadding:16,horizontalPadding:12,showTheme:!0,title:"\u8BF7\u62D6\u52A8\u6ED1\u5757\u5B8C\u6210\u62FC\u56FE",iconSize:22,scope:!0}),pt=()=>({angle:0,image:"",thumb:""});function gt(e,n,t,i,u,v,o){const r=s.reactive({dragLeft:0,thumbAngle:e.angle||0,isFreeze:!1});s.watch(()=>e,(l,x)=>{r.isFreeze||(r.thumbAngle=l.angle||0)},{deep:!0});const a=l=>{const x=l.touches&&l.touches[0],b=u.value.offsetLeft,L=v.value.offsetWidth,w=u.value.offsetWidth,h=L-w,m=360,S=(m-e.angle)/h;let P=0,W=!1,q=null,O=0,z=0;x?O=x.pageX-b:O=l.clientX-b;const B=f=>{W=!0;const C=f.touches&&f.touches[0];let j=0;if(C?j=C.pageX-O:j=f.clientX-O,P=e.angle+j*S,j>=h){r.dragLeft=h,r.thumbAngle=z=m;return}if(j<=0){r.dragLeft=0,r.thumbAngle=z=e.angle;return}r.dragLeft=j,r.thumbAngle=z=P,n.rotate&&n.rotate(P),f.cancelBubble=!0,f.preventDefault()},$=f=>{!oe(v.value,f)||!W||(H(),!(z<0)&&(W=!1,n.confirm&&n.confirm(parseInt(z.toString()),()=>{g()}),f.cancelBubble=!0,f.preventDefault()))},I=f=>{q=f},X=()=>{q=null},D=f=>{!q||($(q),H())},A=t.scope,F=A?i.value:v.value,R=A?i.value:document.body,H=()=>{R.removeEventListener("mousemove",B,!1),R.removeEventListener("touchmove",B,{passive:!1}),F.removeEventListener("mouseup",$,!1),F.removeEventListener("mouseenter",X,!1),F.removeEventListener("mouseleave",I,!1),F.removeEventListener("touchend",$,!1),R.removeEventListener("mouseleave",$,!1),R.removeEventListener("mouseup",D,!1),r.isFreeze=!1};r.isFreeze=!0,R.addEventListener("mousemove",B,!1),R.addEventListener("touchmove",B,{passive:!1}),F.addEventListener("mouseup",$,!1),F.addEventListener("mouseenter",X,!1),F.addEventListener("mouseleave",I,!1),F.addEventListener("touchend",$,!1),R.addEventListener("mouseleave",$,!1),R.addEventListener("mouseup",D,!1)},d=l=>(p(),l.cancelBubble=!0,l.preventDefault(),!1),_=l=>(c(),l.cancelBubble=!0,l.preventDefault(),!1),p=()=>{n&&n.close&&n.close(),g()},c=()=>{n&&n.refresh&&n.refresh(),g()},g=()=>{r.dragLeft=0,r.thumbAngle=e.angle};return{state:r,dragEvent:a,closeEvent:d,refreshEvent:_,resetData:g,clearData:()=>{o&&o(),g()},refresh:c,close:p}}const Z={};Z.props={config:{key:"config",required:!1,type:null,default:ie},events:{key:"events",required:!1,type:null,default:()=>({})},data:{key:"data",required:!1,type:null,default:()=>({})}},Z.setup=(e,n)=>{const t=e,{data:i,events:u,config:v}=t,o=s.reactive({...pt(),...s.toRaw(i)}),r=s.reactive({...s.toRaw(u)}),a=s.reactive({...ie(),...s.toRaw(v)});s.watch(()=>t.data,(h,m)=>{Object.assign(o,h)},{deep:!0}),s.watch(()=>t.events,(h,m)=>{Object.assign(r,h)},{deep:!0}),s.watch(()=>t.config,(h,m)=>{Object.assign(a,h)},{deep:!0});const d=s.ref(null),_=s.ref(null),p=s.ref(null),c=gt(o,r,a,d,p,_,()=>{o.thumb="",o.image="",o.angle=0}),g=s.computed(()=>{const h=a.horizontalPadding||0,m=a.verticalPadding||0;return{width:(a.width||0)+h*2+(a.showTheme?2:0)+"px",paddingLeft:h+"px",paddingRight:h+"px",paddingTop:m+"px",paddingBottom:m+"px"}}),E=s.computed(()=>({transform:`rotate(${c.state.thumbAngle}deg)`})),l=s.computed(()=>({width:a.width+"px",height:a.height+"px"})),x=s.computed(()=>{const h=(a.size||0)>0?a.size:ie().size;return{width:h+"px",height:h+"px"}}),b=s.computed(()=>o.image!=""),L=s.computed(()=>o.thumb!=""),w=s.computed(()=>(a.width||0)>0||(a.height||0)>0);return s.onMounted(async()=>{await s.nextTick(),p.value&&p.value.addEventListener("dragstart",h=>h.preventDefault())}),Object.assign({localData:o,localConfig:a,rootRef:d,dragBarRef:_,dragBlockRef:p,handler:c,wrapperStyles:g,thumbStyles:E,imageBlockStyles:l,imageStyles:x,hasDisplayImageState:b,hasDisplayThumbImageState:L,hasDisplayWrapperState:w},{reset:c.resetData,clear:c.clearData,refresh:c.refresh,close:c.close})},Z.components=Object.assign({CloseIcon:se,RefreshIcon:ae,LoadingIcon:ce,ArrowsIcon:be},Z.components);var mt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayWrapperState,expression:"hasDisplayWrapperState"}],ref:"rootRef",class:"go-captcha gc-wrapper "+(e.localConfig.showTheme&&"gc-theme"),style:e.wrapperStyles},[t("div",{staticClass:"gc-header"},[t("span",[e._v(e._s(e.localConfig.title))]),t("div",{staticClass:"gc-icon-block"},[t("close-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.closeEvent}}),t("refresh-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.refreshEvent}})],1)]),t("div",{ref:"containerRef",staticClass:"gc-body gc-rotate-body",style:e.imageBlockStyles},[t("div",{style:e.imageStyles},[t("div",{staticClass:"gc-loading"},[t("loading-icon")],1),t("div",{staticClass:"gc-picture gc-rotate-picture",style:e.imageStyles},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayImageState,expression:"hasDisplayImageState"}],attrs:{src:e.localData.image,alt:""}}),t("div",{staticClass:"gc-round"})]),t("div",{staticClass:"gc-thumb gc-rotate-thumb"},[t("div",{staticClass:"gc-rotate-thumb-block",style:e.thumbStyles},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayThumbImageState,expression:"hasDisplayThumbImageState"}],attrs:{src:e.localData.thumb,alt:""}})])])])]),t("div",{staticClass:"gc-footer"},[t("div",{ref:"dragBarRef",staticClass:"gc-drag-slide-bar"},[t("div",{staticClass:"gc-drag-line"}),t("div",{ref:"dragBlockRef",staticClass:"gc-drag-block",class:!e.hasDisplayImageState&&"disabled",style:{left:e.handler.state.dragLeft+"px"},on:{mousedown:e.handler.dragEvent}},[t("div",{staticClass:"gc-drag-block-inline",on:{touchstart:e.handler.dragEvent}},[t("arrows-icon")],1)])])])])},vt=[],Zt="";const xe={};var _t=T(Z,mt,vt,!1,bt,null,null,null);function bt(e){for(let n in xe)this[n]=xe[n]}var ee=function(){return _t.exports}();ee.name="gocaptcha-rotate",ee.install=function(e){e.component("gocaptcha-rotate",ee)};const Ce={};Ce.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var yt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("circle",{attrs:{fill:"#3E7CFF",cx:"100",cy:"100",r:"96.3"}}),t("path",{attrs:{fill:"#FFFFFF",d:`M140.8,64.4l-39.6-11.9h-2.4L59.2,64.4c-1.6,0.8-2.8,2.4-2.8,4v24.1c0,25.3,15.8,45.9,42.3,54.6
28
- c0.4,0,0.8,0.4,1.2,0.4c0.4,0,0.8,0,1.2-0.4c26.5-8.7,42.3-28.9,42.3-54.6V68.3C143.5,66.8,142.3,65.2,140.8,64.4z`}})])},wt=[],en="";const Se={};var Et=T(Ce,yt,wt,!1,xt,"5511614f",null,null);function xt(e){for(let n in Se)this[n]=Se[n]}var Ct=function(){return Et.exports}();const De={};De.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var St=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{fill:"#FFA000",d:`M184,26.6L102.4,2.1h-4.9L16,26.6c-3.3,1.6-5.7,4.9-5.7,8.2v49.8c0,52.2,32.6,94.7,87.3,112.6
27
+ c-6.4,6.4-16.7,6.4-23.1,0c-6.4-6.4-6.4-16.7,0-23.1C121.8,126.2,131.6,116.3,131.6,116.3z`}})])},Ze=[],Kt="";const _e={};var et=I(ve,Qe,Ze,!1,tt,"30853052",null,null);function tt(e){for(let n in _e)this[n]=_e[n]}var be=function(){return et.exports}();const nt=()=>({thumbX:0,thumbY:0,thumbWidth:0,thumbHeight:0,image:"",thumb:""});function st(e,n,t,i,u,m,o,r,a){const d=s.reactive({dragLeft:0,thumbLeft:e.thumbX||0,isFreeze:!1});s.watch(()=>e,(_,D)=>{d.isFreeze||(d.thumbLeft=_.thumbX||0)},{deep:!0});const v=_=>{const D=_.touches&&_.touches[0],b=o.value.offsetLeft,h=u.value.offsetWidth,g=o.value.offsetWidth,S=h-g,j=m.value.offsetWidth,P=m.value.offsetLeft,A=h-j,O=(h-(j+P))/S;let M=!1,L=null,q=0,F=0;D?q=D.pageX-b:q=_.clientX-b;const B=k=>{M=!0;const Y=k.touches&&k.touches[0];let z=0;Y?z=Y.pageX-q:z=k.clientX-q;let Ht=P+z*O;if(z>=S){d.dragLeft=S,d.thumbLeft=F=A;return}if(z<=0){d.dragLeft=0,d.thumbLeft=F=P;return}d.dragLeft=z,d.thumbLeft=F=Ht,n.move&&n.move(F,e.thumbY||0),k.cancelBubble=!0,k.preventDefault()},W=k=>{!oe(r.value,k)||!M||($(),!(F<0)&&(M=!1,n.confirm&&n.confirm({x:parseInt(F.toString()),y:e.thumbY||0},()=>{l()}),k.cancelBubble=!0,k.preventDefault()))},R=k=>{L=k},T=()=>{L=null},N=k=>{!L||(W(L),$())},y=t.scope,x=y?i.value:r.value,C=y?i.value:document.body,$=()=>{C.removeEventListener("mousemove",B,!1),C.removeEventListener("touchmove",B,{passive:!1}),x.removeEventListener("mouseup",W,!1),x.removeEventListener("mouseenter",T,!1),x.removeEventListener("mouseleave",R,!1),x.removeEventListener("touchend",W,!1),C.removeEventListener("mouseleave",W,!1),C.removeEventListener("mouseup",N,!1),d.isFreeze=!1};d.isFreeze=!0,C.addEventListener("mousemove",B,!1),C.addEventListener("touchmove",B,{passive:!1}),x.addEventListener("mouseup",W,!1),x.addEventListener("mouseenter",T,!1),x.addEventListener("mouseleave",R,!1),x.addEventListener("touchend",W,!1),C.addEventListener("mouseleave",W,!1),C.addEventListener("mouseup",N,!1)},f=_=>(p(),_.cancelBubble=!0,_.preventDefault(),!1),c=_=>(w(),_.cancelBubble=!0,_.preventDefault(),!1),p=()=>{n&&n.close&&n.close(),l()},w=()=>{n&&n.refresh&&n.refresh(),l()},l=()=>{d.dragLeft=0,d.thumbLeft=e.thumbX||0};return{state:d,dragEvent:v,closeEvent:f,refreshEvent:c,resetData:l,clearData:()=>{a&&a(),l()},refresh:w,close:p}}const G={};G.props={config:{key:"config",required:!1,type:null,default:me},events:{key:"events",required:!1,type:null,default:()=>({})},data:{key:"data",required:!1,type:null,default:()=>({})}},G.setup=(e,n)=>{const t=e,{data:i,events:u,config:m}=t,o=s.reactive({...nt(),...s.toRaw(i)}),r=s.reactive({...s.toRaw(u)}),a=s.reactive({...me(),...s.toRaw(m)});s.watch(()=>t.data,(g,S)=>{Object.assign(o,g)},{deep:!0}),s.watch(()=>t.events,(g,S)=>{Object.assign(r,g)},{deep:!0}),s.watch(()=>t.config,(g,S)=>{Object.assign(a,g)},{deep:!0});const d=s.ref(null),v=s.ref(null),f=s.ref(null),c=s.ref(null),p=s.ref(null),w=st(o,r,a,d,f,p,c,v,()=>{o.thumb="",o.image="",o.thumbX=0,o.thumbY=0,o.thumbWidth=0,o.thumbHeight=0}),l=s.computed(()=>{const g=a.horizontalPadding||0,S=a.verticalPadding||0;return{width:(a.width||0)+g*2+(a.showTheme?2:0)+"px",paddingLeft:g+"px",paddingRight:g+"px",paddingTop:S+"px",paddingBottom:S+"px"}}),E=s.computed(()=>({width:o.thumbWidth+"px",height:o.thumbHeight+"px",top:o.thumbY+"px",left:w.state.thumbLeft+"px"})),_=s.computed(()=>({width:a.width+"px",height:a.height+"px"})),D=s.computed(()=>o.image!=""),b=s.computed(()=>o.thumb!=""),h=s.computed(()=>(a.width||0)>0||(a.height||0)>0);return s.onMounted(async()=>{await s.nextTick(),c.value&&c.value.addEventListener("dragstart",g=>g.preventDefault())}),Object.assign({localData:o,localConfig:a,rootRef:d,dragBarRef:v,containerRef:f,dragBlockRef:c,tileRef:p,handler:w,wrapperStyles:l,thumbStyles:E,imageStyles:_,hasDisplayImageState:D,hasDisplayThumbImageState:b,hasDisplayWrapperState:h},{reset:w.resetData,clear:w.clearData,refresh:w.refresh,close:w.close})},G.components=Object.assign({CloseIcon:se,RefreshIcon:ae,LoadingIcon:ce,ArrowsIcon:be},G.components);var at=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayWrapperState,expression:"hasDisplayWrapperState"}],ref:"rootRef",class:"go-captcha gc-wrapper "+(e.localConfig.showTheme&&"gc-theme"),style:e.wrapperStyles},[t("div",{staticClass:"gc-header"},[t("span",[e._v(e._s(e.localConfig.title))]),t("div",{staticClass:"gc-icon-block"},[t("close-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.closeEvent}}),t("refresh-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.refreshEvent}})],1)]),t("div",{ref:"containerRef",staticClass:"gc-body",style:e.imageStyles},[t("div",{staticClass:"gc-loading"},[t("loading-icon")],1),t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayImageState,expression:"hasDisplayImageState"}],staticClass:"gc-picture",style:e.imageStyles,attrs:{src:e.localData.image,alt:""}}),t("div",{ref:"tileRef",staticClass:"gc-tile",style:e.thumbStyles},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayThumbImageState,expression:"hasDisplayThumbImageState"}],attrs:{src:e.localData.thumb,alt:""}})])]),t("div",{staticClass:"gc-footer"},[t("div",{ref:"dragBarRef",staticClass:"gc-drag-slide-bar"},[t("div",{staticClass:"gc-drag-line"}),t("div",{ref:"dragBlockRef",staticClass:"gc-drag-block",class:!e.hasDisplayImageState&&"disabled",style:{left:e.handler.state.dragLeft+"px"},on:{mousedown:e.handler.dragEvent}},[t("div",{staticClass:"gc-drag-block-inline",on:{touchstart:e.handler.dragEvent}},[t("arrows-icon")],1)])])])])},ct=[],Qt="";const ye={};var ot=I(G,at,ct,!1,it,null,null,null);function it(e){for(let n in ye)this[n]=ye[n]}var J=function(){return ot.exports}();J.name="gocaptcha-slide",J.install=function(e){e.component("gocaptcha-slide",J)};const we=()=>({width:300,height:220,verticalPadding:16,horizontalPadding:12,showTheme:!0,title:"\u8BF7\u62D6\u62FD\u8D34\u56FE\u5B8C\u6210\u62FC\u56FE",iconSize:22,scope:!0}),rt=()=>({thumbX:0,thumbY:0,thumbWidth:0,thumbHeight:0,image:"",thumb:""});function lt(e,n,t,i,u,m,o){const r=s.reactive({x:e.thumbX||0,y:e.thumbY||0,isFreeze:!1});s.watch(()=>e,(l,E)=>{r.isFreeze||(r.x=l.thumbX||0,r.y=l.thumbY||0)},{deep:!0});const a=l=>{const E=l.touches&&l.touches[0],_=m.value.offsetLeft,D=m.value.offsetTop,b=u.value.offsetWidth,h=u.value.offsetHeight,g=m.value.offsetWidth,S=m.value.offsetHeight,j=b-g,P=h-S;let A=!1,H=null,O=0,M=0,L=0,q=0;E?(O=E.pageX-_,M=E.pageY-D):(O=l.clientX-_,M=l.clientY-D);const F=$=>{A=!0;const k=$.touches&&$.touches[0];let Y=0,z=0;k?(Y=k.pageX-O,z=k.pageY-M):(Y=$.clientX-O,z=$.clientY-M),Y<=0&&(Y=0),z<=0&&(z=0),Y>=j&&(Y=j),z>=P&&(z=P),r.x=Y,r.y=z,L=Y,q=z,n.move&&n.move(Y,z),$.cancelBubble=!0,$.preventDefault()},B=$=>{!oe(u.value,$)||!A||(A=!1,C(),!(L<0||q<0)&&(n.confirm&&n.confirm({x:L,y:q},()=>{p()}),$.cancelBubble=!0,$.preventDefault()))},W=$=>{H=$},R=()=>{H=null},T=$=>{!H||(B(H),C())},N=t.scope,y=N?i.value:u.value,x=N?i.value:document.body,C=()=>{x.removeEventListener("mousemove",F,!1),x.removeEventListener("touchmove",F,{passive:!1}),y.removeEventListener("mouseup",B,!1),y.removeEventListener("mouseenter",R,!1),y.removeEventListener("mouseleave",W,!1),y.removeEventListener("touchend",B,!1),x.removeEventListener("mouseleave",B,!1),x.removeEventListener("mouseup",T,!1),r.isFreeze=!1};r.isFreeze=!0,x.addEventListener("mousemove",F,!1),x.addEventListener("touchmove",F,{passive:!1}),y.addEventListener("mouseup",B,!1),y.addEventListener("mouseenter",R,!1),y.addEventListener("mouseleave",W,!1),y.addEventListener("touchend",B,!1),x.addEventListener("mouseleave",B,!1),x.addEventListener("mouseup",T,!1)},d=l=>(f(),l.cancelBubble=!0,l.preventDefault(),!1),v=l=>(c(),l.cancelBubble=!0,l.preventDefault(),!1),f=()=>{n&&n.close&&n.close(),p()},c=()=>{n&&n.refresh&&n.refresh(),p()},p=()=>{r.x=e.thumbX||0,r.y=e.thumbY||0};return{state:r,dragEvent:a,closeEvent:d,refreshEvent:v,resetData:p,clearData:()=>{o&&o(),p()},refresh:c,close:f}}const K={};K.props={config:{key:"config",required:!1,type:null,default:we},events:{key:"events",required:!1,type:null,default:()=>({})},data:{key:"data",required:!1,type:null,default:()=>({})}},K.setup=(e,n)=>{const t=e,{data:i,events:u,config:m}=t,o=s.reactive({...rt(),...s.toRaw(i)}),r=s.reactive({...s.toRaw(u)}),a=s.reactive({...we(),...s.toRaw(m)});s.watch(()=>t.data,(b,h)=>{Object.assign(o,b)},{deep:!0}),s.watch(()=>t.events,(b,h)=>{Object.assign(r,b)},{deep:!0}),s.watch(()=>t.config,(b,h)=>{Object.assign(a,b)},{deep:!0});const d=s.ref(null),v=s.ref(null),f=s.ref(null),c=lt(o,r,a,d,v,f,()=>{o.thumb="",o.image="",o.thumbX=0,o.thumbY=0,o.thumbWidth=0,o.thumbHeight=0}),p=s.computed(()=>{const b=a.horizontalPadding||0,h=a.verticalPadding||0;return{width:(a.width||0)+b*2+(a.showTheme?2:0)+"px",paddingLeft:b+"px",paddingRight:b+"px",paddingTop:h+"px",paddingBottom:h+"px"}}),w=s.computed(()=>({width:o.thumbWidth+"px",height:o.thumbHeight+"px",top:c.state.y+"px",left:c.state.x+"px"})),l=s.computed(()=>({width:a.width+"px",height:a.height+"px"})),E=s.computed(()=>o.image!=""),_=s.computed(()=>o.thumb!=""),D=s.computed(()=>(a.width||0)>0||(a.height||0)>0);return s.onMounted(async()=>{await s.nextTick(),f.value&&f.value.addEventListener("dragstart",b=>b.preventDefault())}),Object.assign({localData:o,localConfig:a,rootRef:d,containerRef:v,tileRef:f,handler:c,wrapperStyles:p,thumbStyles:w,imageStyles:l,hasDisplayImageState:E,hasDisplayThumbImageState:_,hasDisplayWrapperState:D},{reset:c.resetData,clear:c.clearData,refresh:c.refresh,close:c.close})},K.components=Object.assign({LoadingIcon:ce,CloseIcon:se,RefreshIcon:ae},K.components);var ut=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayWrapperState,expression:"hasDisplayWrapperState"}],ref:"rootRef",class:"go-captcha gc-wrapper "+(e.localConfig.showTheme&&"gc-theme"),style:e.wrapperStyles},[t("div",{staticClass:"gc-header gc-header2"},[t("span",[e._v(e._s(e.localConfig.title))])]),t("div",{ref:"containerRef",staticClass:"gc-body",style:e.imageStyles},[t("div",{staticClass:"gc-loading"},[t("loading-icon")],1),t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayImageState,expression:"hasDisplayImageState"}],staticClass:"gc-picture",style:e.imageStyles,attrs:{src:e.localData.image,alt:""}}),t("div",{ref:"tileRef",staticClass:"gc-tile",style:e.thumbStyles,on:{mousedown:e.handler.dragEvent,touchstart:e.handler.dragEvent}},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayThumbImageState,expression:"hasDisplayThumbImageState"}],attrs:{src:e.localData.thumb,alt:""}})])]),t("div",{staticClass:"gc-footer"},[t("div",{staticClass:"gc-icon-block"},[t("close-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.closeEvent}}),t("refresh-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.refreshEvent}})],1)])])},dt=[],Zt="";const Ee={};var ht=I(K,ut,dt,!1,ft,null,null,null);function ft(e){for(let n in Ee)this[n]=Ee[n]}var Q=function(){return ht.exports}();Q.name="gocaptcha-slide-region",Q.install=function(e){e.component("gocaptcha-slide-region",Q)};const ie=()=>({width:300,height:220,size:220,verticalPadding:16,horizontalPadding:12,showTheme:!0,title:"\u8BF7\u62D6\u52A8\u6ED1\u5757\u5B8C\u6210\u62FC\u56FE",iconSize:22,scope:!0}),pt=()=>({angle:0,image:"",thumb:""});function gt(e,n,t,i,u,m,o){const r=s.reactive({dragLeft:0,thumbAngle:e.angle||0,isFreeze:!1});s.watch(()=>e,(l,E)=>{r.isFreeze||(r.thumbAngle=l.angle||0)},{deep:!0});const a=l=>{const E=l.touches&&l.touches[0],_=u.value.offsetLeft,D=m.value.offsetWidth,b=u.value.offsetWidth,h=D-b,g=360,S=(g-e.angle)/h;let j=0,P=!1,A=null,H=0,O=0;E?H=E.pageX-_:H=l.clientX-_;const M=y=>{P=!0;const x=y.touches&&y.touches[0];let C=0;if(x?C=x.pageX-H:C=y.clientX-H,j=e.angle+C*S,C>=h){r.dragLeft=h,r.thumbAngle=O=g;return}if(C<=0){r.dragLeft=0,r.thumbAngle=O=e.angle;return}r.dragLeft=C,r.thumbAngle=O=j,n.rotate&&n.rotate(j),y.cancelBubble=!0,y.preventDefault()},L=y=>{!oe(m.value,y)||!P||(N(),!(O<0)&&(P=!1,n.confirm&&n.confirm(parseInt(O.toString()),()=>{p()}),y.cancelBubble=!0,y.preventDefault()))},q=y=>{A=y},F=()=>{A=null},B=y=>{!A||(L(A),N())},W=t.scope,R=W?i.value:m.value,T=W?i.value:document.body,N=()=>{T.removeEventListener("mousemove",M,!1),T.removeEventListener("touchmove",M,{passive:!1}),R.removeEventListener("mouseup",L,!1),R.removeEventListener("mouseenter",F,!1),R.removeEventListener("mouseleave",q,!1),R.removeEventListener("touchend",L,!1),T.removeEventListener("mouseleave",L,!1),T.removeEventListener("mouseup",B,!1),r.isFreeze=!1};r.isFreeze=!0,T.addEventListener("mousemove",M,!1),T.addEventListener("touchmove",M,{passive:!1}),R.addEventListener("mouseup",L,!1),R.addEventListener("mouseenter",F,!1),R.addEventListener("mouseleave",q,!1),R.addEventListener("touchend",L,!1),T.addEventListener("mouseleave",L,!1),T.addEventListener("mouseup",B,!1)},d=l=>(f(),l.cancelBubble=!0,l.preventDefault(),!1),v=l=>(c(),l.cancelBubble=!0,l.preventDefault(),!1),f=()=>{n&&n.close&&n.close(),p()},c=()=>{n&&n.refresh&&n.refresh(),p()},p=()=>{r.dragLeft=0,r.thumbAngle=e.angle};return{state:r,dragEvent:a,closeEvent:d,refreshEvent:v,resetData:p,clearData:()=>{o&&o(),p()},refresh:c,close:f}}const Z={};Z.props={config:{key:"config",required:!1,type:null,default:ie},events:{key:"events",required:!1,type:null,default:()=>({})},data:{key:"data",required:!1,type:null,default:()=>({})}},Z.setup=(e,n)=>{const t=e,{data:i,events:u,config:m}=t,o=s.reactive({...pt(),...s.toRaw(i)}),r=s.reactive({...s.toRaw(u)}),a=s.reactive({...ie(),...s.toRaw(m)});s.watch(()=>t.data,(h,g)=>{Object.assign(o,h)},{deep:!0}),s.watch(()=>t.events,(h,g)=>{Object.assign(r,h)},{deep:!0}),s.watch(()=>t.config,(h,g)=>{Object.assign(a,h)},{deep:!0});const d=s.ref(null),v=s.ref(null),f=s.ref(null),c=gt(o,r,a,d,f,v,()=>{o.thumb="",o.image="",o.angle=0}),p=s.computed(()=>{const h=a.horizontalPadding||0,g=a.verticalPadding||0;return{width:(a.width||0)+h*2+(a.showTheme?2:0)+"px",paddingLeft:h+"px",paddingRight:h+"px",paddingTop:g+"px",paddingBottom:g+"px"}}),w=s.computed(()=>({transform:`rotate(${c.state.thumbAngle}deg)`})),l=s.computed(()=>({width:a.width+"px",height:a.height+"px"})),E=s.computed(()=>{const h=(a.size||0)>0?a.size:ie().size;return{width:h+"px",height:h+"px"}}),_=s.computed(()=>o.image!=""),D=s.computed(()=>o.thumb!=""),b=s.computed(()=>(a.width||0)>0||(a.height||0)>0);return s.onMounted(async()=>{await s.nextTick(),f.value&&f.value.addEventListener("dragstart",h=>h.preventDefault())}),Object.assign({localData:o,localConfig:a,rootRef:d,dragBarRef:v,dragBlockRef:f,handler:c,wrapperStyles:p,thumbStyles:w,imageBlockStyles:l,imageStyles:E,hasDisplayImageState:_,hasDisplayThumbImageState:D,hasDisplayWrapperState:b},{reset:c.resetData,clear:c.clearData,refresh:c.refresh,close:c.close})},Z.components=Object.assign({CloseIcon:se,RefreshIcon:ae,LoadingIcon:ce,ArrowsIcon:be},Z.components);var mt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayWrapperState,expression:"hasDisplayWrapperState"}],ref:"rootRef",class:"go-captcha gc-wrapper "+(e.localConfig.showTheme&&"gc-theme"),style:e.wrapperStyles},[t("div",{staticClass:"gc-header"},[t("span",[e._v(e._s(e.localConfig.title))]),t("div",{staticClass:"gc-icon-block"},[t("close-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.closeEvent}}),t("refresh-icon",{attrs:{width:e.localConfig.iconSize,height:e.localConfig.iconSize},on:{click:e.handler.refreshEvent}})],1)]),t("div",{ref:"containerRef",staticClass:"gc-body gc-rotate-body",style:e.imageBlockStyles},[t("div",{staticClass:"gc-body-inner",style:e.imageStyles},[t("div",{staticClass:"gc-loading"},[t("loading-icon")],1),t("div",{staticClass:"gc-picture gc-rotate-picture",style:e.imageStyles},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayImageState,expression:"hasDisplayImageState"}],attrs:{src:e.localData.image,alt:""}}),t("div",{staticClass:"gc-round"})]),t("div",{staticClass:"gc-thumb gc-rotate-thumb"},[t("div",{staticClass:"gc-rotate-thumb-block",style:e.thumbStyles},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.hasDisplayThumbImageState,expression:"hasDisplayThumbImageState"}],attrs:{src:e.localData.thumb,alt:""}})])])])]),t("div",{staticClass:"gc-footer"},[t("div",{ref:"dragBarRef",staticClass:"gc-drag-slide-bar"},[t("div",{staticClass:"gc-drag-line"}),t("div",{ref:"dragBlockRef",staticClass:"gc-drag-block",class:!e.hasDisplayImageState&&"disabled",style:{left:e.handler.state.dragLeft+"px"},on:{mousedown:e.handler.dragEvent}},[t("div",{staticClass:"gc-drag-block-inline",on:{touchstart:e.handler.dragEvent}},[t("arrows-icon")],1)])])])])},vt=[],en="";const xe={};var _t=I(Z,mt,vt,!1,bt,null,null,null);function bt(e){for(let n in xe)this[n]=xe[n]}var ee=function(){return _t.exports}();ee.name="gocaptcha-rotate",ee.install=function(e){e.component("gocaptcha-rotate",ee)};const Ce={};Ce.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var yt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("circle",{attrs:{fill:"#3E7CFF",cx:"100",cy:"100",r:"96.3"}}),t("path",{attrs:{fill:"#FFFFFF",d:`M140.8,64.4l-39.6-11.9h-2.4L59.2,64.4c-1.6,0.8-2.8,2.4-2.8,4v24.1c0,25.3,15.8,45.9,42.3,54.6
28
+ c0.4,0,0.8,0.4,1.2,0.4c0.4,0,0.8,0,1.2-0.4c26.5-8.7,42.3-28.9,42.3-54.6V68.3C143.5,66.8,142.3,65.2,140.8,64.4z`}})])},wt=[],tn="";const Se={};var Et=I(Ce,yt,wt,!1,xt,"5511614f",null,null);function xt(e){for(let n in Se)this[n]=Se[n]}var Ct=function(){return Et.exports}();const De={};De.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var St=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{fill:"#FFA000",d:`M184,26.6L102.4,2.1h-4.9L16,26.6c-3.3,1.6-5.7,4.9-5.7,8.2v49.8c0,52.2,32.6,94.7,87.3,112.6
29
29
  c0.8,0,1.6,0.8,2.4,0.8s1.6,0,2.4-0.8c54.7-18,87.3-59.6,87.3-112.6V34.7C189.8,31.5,187.3,28.2,184,26.6z M107.3,109.1
30
30
  c-0.5,5.4-3.9,7.9-7.3,7.9c-2.5,0,0,0,0,0c-3.2-0.6-5.7-2-6.8-7.4l-4.4-50.9c0-5.1,6.2-9.7,11.5-9.7c5.3,0,11,4.7,11,9.9
31
31
  L107.3,109.1z M109.3,133.3c0,5.1-4.2,9.3-9.3,9.3c-5.1,0-9.3-4.2-9.3-9.3c0-5.1,4.2-9.3,9.3-9.3C105.1,124,109.3,128.1,109.3,133.3
32
- z`}})])},Dt=[],tn="";const Le={};var Lt=T(De,St,Dt,!1,$t,"3fd7b394",null,null);function $t(e){for(let n in Le)this[n]=Le[n]}var kt=function(){return Lt.exports}();const $e={};$e.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var zt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{fill:"#ED4630",d:`M184,26.6L102.4,2.1h-4.9L16,26.6c-3.3,1.6-5.7,4.9-5.7,8.2v49.8c0,52.2,32.6,94.7,87.3,112.6
32
+ z`}})])},Dt=[],nn="";const Le={};var Lt=I(De,St,Dt,!1,$t,"3fd7b394",null,null);function $t(e){for(let n in Le)this[n]=Le[n]}var kt=function(){return Lt.exports}();const $e={};$e.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var zt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{fill:"#ED4630",d:`M184,26.6L102.4,2.1h-4.9L16,26.6c-3.3,1.6-5.7,4.9-5.7,8.2v49.8c0,52.2,32.6,94.7,87.3,112.6
33
33
  c0.8,0,1.6,0.8,2.4,0.8s1.6,0,2.4-0.8c54.7-18,87.3-59.6,87.3-112.6V34.7C189.8,31.5,187.3,28.2,184,26.6z M134.5,123.1
34
34
  c3.1,3.1,3.1,8.2,0,11.3c-1.6,1.6-3.6,2.3-5.7,2.3s-4.1-0.8-5.7-2.3L100,111.3l-23.1,23.1c-1.6,1.6-3.6,2.3-5.7,2.3
35
35
  c-2,0-4.1-0.8-5.7-2.3c-3.1-3.1-3.1-8.2,0-11.3L88.7,100L65.5,76.9c-3.1-3.1-3.1-8.2,0-11.3c3.1-3.1,8.2-3.1,11.3,0L100,88.7
36
- l23.1-23.1c3.1-3.1,8.2-3.1,11.3,0c3.1,3.1,3.1,8.2,0,11.3L111.3,100L134.5,123.1z`}})])},Bt=[],nn="";const ke={};var Ft=T($e,zt,Bt,!1,Rt,"6c20e1c2",null,null);function Rt(e){for(let n in ke)this[n]=ke[n]}var Tt=function(){return Ft.exports}();const ze={};ze.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var It=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{fill:"#5EAA2F",d:`M183.3,27.2L102.4,2.9h-4.9L16.7,27.2C13.4,28.8,11,32,11,35.3v49.4c0,51.8,32.4,93.9,86.6,111.7
36
+ l23.1-23.1c3.1-3.1,8.2-3.1,11.3,0c3.1,3.1,3.1,8.2,0,11.3L111.3,100L134.5,123.1z`}})])},Bt=[],sn="";const ke={};var Ft=I($e,zt,Bt,!1,Rt,"6c20e1c2",null,null);function Rt(e){for(let n in ke)this[n]=ke[n]}var Tt=function(){return Ft.exports}();const ze={};ze.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var It=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("svg",e._b({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",width:"20",height:"20"},on:{click:e.emitClickEvent}},"svg",e.$attrs,!1),[t("path",{attrs:{fill:"#5EAA2F",d:`M183.3,27.2L102.4,2.9h-4.9L16.7,27.2C13.4,28.8,11,32,11,35.3v49.4c0,51.8,32.4,93.9,86.6,111.7
37
37
  c0.8,0,1.6,0.8,2.4,0.8c0.8,0,1.6,0,2.4-0.8c54.2-17.8,86.6-59.1,86.6-111.7V35.3C189,32,186.6,28.8,183.3,27.2z M146.1,81.4
38
38
  l-48.5,48.5c-1.6,1.6-3.2,2.4-5.7,2.4c-2.4,0-4-0.8-5.7-2.4L62,105.7c-3.2-3.2-3.2-8.1,0-11.3c3.2-3.2,8.1-3.2,11.3,0l18.6,18.6
39
- l42.9-42.9c3.2-3.2,8.1-3.2,11.3,0C149.4,73.3,149.4,78.2,146.1,81.4L146.1,81.4z`}})])},Mt=[],sn="";const Be={};var Wt=T(ze,It,Mt,!1,Xt,"5a795cd4",null,null);function Xt(e){for(let n in Be)this[n]=Be[n]}var jt=function(){return Wt.exports}();const Fe=()=>({width:330,height:44,verticalPadding:12,horizontalPadding:16}),te={};te.props={config:{key:"config",required:!1,type:null,default:Fe},clickEvent:{key:"clickEvent",required:!1,type:Function},disabled:{key:"disabled",required:!1,type:Boolean,default:!1},type:{key:"type",required:!1,type:null,default:"default"},title:{key:"title",required:!1,type:String,default:"\u70B9\u51FB\u6309\u952E\u8FDB\u884C\u9A8C\u8BC1"}},te.setup=(e,n)=>{const t=e,{type:i,title:u,disabled:v,config:o}=s.toRefs(t),r=s.reactive({...Fe(),...s.toRaw(o)});s.watch(()=>t.config,(c,g)=>{Object.assign(r,c)},{deep:!0});const a=s.computed(()=>{const c=`gc-${i.value}`;return["go-captcha","gc-btn-block",c,v.value?"gc-disabled":""]}),d=s.computed(()=>({width:r.width+"px",height:r.height+"px",paddingLeft:r.horizontalPadding+"px",paddingRight:r.horizontalPadding+"px",paddingTop:r.verticalPadding+"px",paddingBottom:r.verticalPadding+"px"})),_=n.emit;function p(c){_("click-event",c)}return{type:i,title:u,btnClass:a,btnStyle:d,emitClickEvent:p}},te.components=Object.assign({BtnDefaultIcon:Ct,BtnWarnIcon:kt,BtnErrorIcon:Tt,BtnSuccessIcon:jt},te.components);var Pt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:e.btnClass,style:e.btnStyle,on:{click:e.emitClickEvent}},[t("div",{class:e.type==="default"?"gc-ripple":""},[e.type==="default"?t("btn-default-icon"):e.type==="warn"?t("btn-warn-icon"):e.type==="error"?t("btn-error-icon"):e.type==="success"?t("btn-success-icon"):e._e()],1),t("span",[e._v(e._s(e.title))])])},Ot=[],an="";const Re={};var Yt=T(te,Pt,Ot,!1,qt,null,null,null);function qt(e){for(let n in Re)this[n]=Re[n]}var ne=function(){return Yt.exports}();ne.name="gocaptcha-button",ne.install=function(e){e.component("gocaptcha-button",ne)};const At={install(e){U.install(e),J.install(e),Q.install(e),ee.install(e),ne.install(e)}};M.Button=ne,M.Click=U,M.Rotate=ee,M.Slide=J,M.SlideRegion=Q,M.default=At,Object.defineProperties(M,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
39
+ l42.9-42.9c3.2-3.2,8.1-3.2,11.3,0C149.4,73.3,149.4,78.2,146.1,81.4L146.1,81.4z`}})])},Mt=[],an="";const Be={};var Wt=I(ze,It,Mt,!1,Xt,"5a795cd4",null,null);function Xt(e){for(let n in Be)this[n]=Be[n]}var jt=function(){return Wt.exports}();const Fe=()=>({width:330,height:44,verticalPadding:12,horizontalPadding:16}),te={};te.props={config:{key:"config",required:!1,type:null,default:Fe},clickEvent:{key:"clickEvent",required:!1,type:Function},disabled:{key:"disabled",required:!1,type:Boolean,default:!1},type:{key:"type",required:!1,type:null,default:"default"},title:{key:"title",required:!1,type:String,default:"\u70B9\u51FB\u6309\u952E\u8FDB\u884C\u9A8C\u8BC1"}},te.setup=(e,n)=>{const t=e,{type:i,title:u,disabled:m,config:o}=s.toRefs(t),r=s.reactive({...Fe(),...s.toRaw(o)});s.watch(()=>t.config,(c,p)=>{Object.assign(r,c)},{deep:!0});const a=s.computed(()=>{const c=`gc-${i.value}`;return["go-captcha","gc-btn-block",c,m.value?"gc-disabled":""]}),d=s.computed(()=>({width:r.width+"px",height:r.height+"px",paddingLeft:r.horizontalPadding+"px",paddingRight:r.horizontalPadding+"px",paddingTop:r.verticalPadding+"px",paddingBottom:r.verticalPadding+"px"})),v=n.emit;function f(c){v("click-event",c)}return{type:i,title:u,btnClass:a,btnStyle:d,emitClickEvent:f}},te.components=Object.assign({BtnDefaultIcon:Ct,BtnWarnIcon:kt,BtnErrorIcon:Tt,BtnSuccessIcon:jt},te.components);var Pt=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:e.btnClass,style:e.btnStyle,on:{click:e.emitClickEvent}},[t("div",{class:e.type==="default"?"gc-ripple":""},[e.type==="default"?t("btn-default-icon"):e.type==="warn"?t("btn-warn-icon"):e.type==="error"?t("btn-error-icon"):e.type==="success"?t("btn-success-icon"):e._e()],1),t("span",[e._v(e._s(e.title))])])},Ot=[],cn="";const Re={};var Yt=I(te,Pt,Ot,!1,qt,null,null,null);function qt(e){for(let n in Re)this[n]=Re[n]}var ne=function(){return Yt.exports}();ne.name="gocaptcha-button",ne.install=function(e){e.component("gocaptcha-button",ne)};const At={install(e){U.install(e),J.install(e),Q.install(e),ee.install(e),ne.install(e)}};X.Button=ne,X.Click=U,X.Rotate=ee,X.Slide=J,X.SlideRegion=Q,X.default=At,Object.defineProperties(X,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- :root{--go-captcha-theme-text-color: #333333;--go-captcha-theme-bg-color: #ffffff;--go-captcha-theme-btn-color: #ffffff;--go-captcha-theme-btn-disabled-color: #749ff9;--go-captcha-theme-btn-bg-color: #4e87ff;--go-captcha-theme-btn-border-color: #4e87ff;--go-captcha-theme-active-color: #3e7cff;--go-captcha-theme-border-color: rgba(206, 223, 254, .5);--go-captcha-theme-icon-color: #3C3C3C;--go-captcha-theme-drag-bar-color: #e0e0e0;--go-captcha-theme-drag-bg-color: #3e7cff;--go-captcha-theme-drag-icon-color: #ffffff;--go-captcha-theme-round-color: #e0e0e0;--go-captcha-theme-loading-icon-color: #3e7cff;--go-captcha-theme-default-color: #3e7cff;--go-captcha-theme-default-bg-color: #ecf5ff;--go-captcha-theme-default-border-color: #3e7cff;--go-captcha-theme-default-hover-color: #e0efff;--go-captcha-theme-error-color: #ed4630;--go-captcha-theme-error-bg-color: #fef0f0;--go-captcha-theme-error-border-color: #ff5a34;--go-captcha-theme-warn-color: #ffa000;--go-captcha-theme-warn-bg-color: #fdf6ec;--go-captcha-theme-warn-border-color: #ffbe09;--go-captcha-theme-success-color: #5eaa2f;--go-captcha-theme-success-bg-color: #f0f9eb;--go-captcha-theme-success-border-color: #8bc640}.go-captcha.gc-wrapper{padding:12px 16px;background-color:var(--go-captcha-theme-bg-color);-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.go-captcha.gc-theme{border:1px solid rgba(206,223,254,.5);border-color:var(--go-captcha-theme-border-color);-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;box-shadow:0 0 20px #6464641a;-webkit-box-shadow:0 0 20px rgba(100,100,100,.1);-moz-box-shadow:0 0 20px rgba(100,100,100,.1)}.go-captcha .gc-header{height:36px;width:100%;font-size:15px;color:var(--go-captcha-theme-text-color);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.go-captcha .gc-header span{flex:1;padding-right:5px}.go-captcha .gc-header em{padding:0 3px;font-weight:700;color:var(--go-captcha-theme-active-color);font-style:normal}.go-captcha .gc-body{position:relative;width:100%;margin-top:10px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;background:#34383e;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;overflow:hidden}.go-captcha .gc-picture{position:relative;z-index:2;width:100%}.go-captcha .gc-loading{position:absolute;z-index:1;top:50%;left:50%;width:68px;height:68px;margin-left:-34px;margin-top:-34px;line-height:68px;text-align:center;display:flex;align-content:center;justify-content:center}.go-captcha .gc-loading svg,.go-captcha .gc-loading circle{color:var(--go-captcha-theme-loading-icon-color);fill:var(--go-captcha-theme-loading-icon-color)}.go-captcha .gc-footer{width:100%;height:50px;color:#34383e;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;align-items:center;padding-top:10px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.go-captcha .gc-footer .icon-block{flex:1}.go-captcha .gc-icon-block{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;align-items:center}.go-captcha .gc-icon-block svg{color:var(--go-captcha-theme-icon-color);fill:var(--go-captcha-theme-icon-color);margin:0 5px;cursor:pointer}.go-captcha .gc-button-block{width:120px;height:40px}.go-captcha .gc-button-block button{width:100%;height:40px;text-align:center;padding:9px 15px;font-size:15px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;color:var(--go-captcha-theme-btn-color);background-color:var(--go-captcha-theme-btn-bg-color);border:1px solid transparent;border-color:var(--go-captcha-theme-btn-bg-color);-webkit-appearance:none;box-sizing:border-box;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none}.go-captcha .gc-button-block button.disabled{pointer-events:none;background-color:var(--go-captcha-theme-btn-disabled-color);border-color:var(--go-captcha-theme-btn-disabled-color)}.go-captcha .gc-drag-slide-bar{width:100%;height:100%;position:relative;touch-action:none}.go-captcha .gc-drag-line{position:absolute;height:14px;background-color:var(--go-captcha-theme-drag-bar-color);left:0;right:0;top:50%;margin-top:-7px;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.go-captcha .gc-drag-block{position:absolute;left:0;top:50%;margin-top:-20px;width:82px;height:40px;z-index:2;background-color:var(--go-captcha-theme-drag-bg-color);cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-border-radius:24px;-moz-border-radius:24px;border-radius:24px;box-shadow:0 0 20px #64646459;-webkit-box-shadow:0 0 20px rgba(100,100,100,.35);-moz-box-shadow:0 0 20px rgba(100,100,100,.35);color:var(--go-captcha-theme-drag-icon-color);fill:var(--go-captcha-theme-drag-icon-color)}.go-captcha .gc-drag-block.disabled{pointer-events:none;background-color:var(--go-captcha-theme-btn-disabled-color);border-color:var(--go-captcha-theme-btn-disabled-color)}.go-captcha .gc-drag-block-inline{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.go-captcha .gc-icon-block2{flex:1}.go-captcha .gc-dots{position:absolute;top:0;right:0;left:0;bottom:0}.go-captcha .gc-dots .gc-dot{position:absolute;z-index:2;width:22px;height:22px;color:#cedffe;background:#3e7cff;border:3px solid #f7f9fb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;justify-content:center;border-radius:22px;cursor:default}.go-captcha .gc-header2{text-align:center}.go-captcha .gc-tile{position:absolute;z-index:2;cursor:pointer}.go-captcha .gc-tile img{display:block;cursor:pointer;width:100%;height:100%}.go-captcha .gc-rotate-body{background:transparent!important;display:flex;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;justify-content:center;align-items:center;margin:10px auto 0}.go-captcha .gc-rotate-picture{position:relative;max-width:100%;max-height:100%;z-index:2;border-radius:100%;overflow:hidden;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;justify-content:center;align-items:center}.go-captcha .gc-rotate-picture img{max-width:100%;max-height:100%}.go-captcha .gc-rotate-picture .gc-round{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;z-index:2;border:6px solid #e0e0e0;border-color:var(--go-captcha-theme-round-color)}.go-captcha .gc-rotate-thumb{position:absolute;z-index:2;top:0;left:0;right:0;bottom:0}.go-captcha .gc-rotate-thumb img{max-width:100%;max-height:100%}.go-captcha .gc-rotate-thumb-block{width:100%;height:100%;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;justify-content:center;align-items:center}.go-captcha.gc-btn-block{position:relative;box-sizing:border-box;display:block;font-size:13px;-webkit-border-radius:5px;-moz-border-radius:5px;letter-spacing:1px;border-radius:5px;line-height:1;white-space:nowrap;-webkit-appearance:none;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;justify-content:center;justify-items:center;box-shadow:0 0 20px #3e7cff1a;-webkit-box-shadow:0 0 20px rgba(62,124,255,.1);-moz-box-shadow:0 0 20px rgba(62,124,255,.1)}.go-captcha.gc-btn-block span{padding-left:8px}.go-captcha.gc-disabled{pointer-events:none}.go-captcha.gc-default{color:var(--go-captcha-theme-default-color);border:1px solid #50a1ff;border-color:var(--go-captcha-theme-default-border-color);background-color:var(--go-captcha-theme-default-bg-color);cursor:pointer}.go-captcha.gc-default:hover{background-color:var(--go-captcha-theme-default-hover-color)!important}.go-captcha.gc-error{cursor:pointer;color:var(--go-captcha-theme-error-color);background-color:var(--go-captcha-theme-error-bg-color);border:1px solid #ff5a34;border-color:var(--go-captcha-theme-error-border-color)}.go-captcha.gc-warn{cursor:pointer;color:var(--go-captcha-theme-warn-color);background-color:var(--go-captcha-theme-warn-bg-color);border:1px solid #ffbe09;border-color:var(--go-captcha-theme-warn-border-color)}.go-captcha.gc-success{color:var(--go-captcha-theme-success-color);background-color:var(--go-captcha-theme-success-bg-color);border:1px solid #8bc640;border-color:var(--go-captcha-theme-success-border-color);pointer-events:none}.go-captcha .gc-ripple{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;justify-content:center;justify-items:center}.go-captcha .gc-ripple>*{z-index:2}.go-captcha .gc-ripple svg{position:relative;z-index:2}.go-captcha .gc-ripple:after{background-color:var(--go-captcha-theme-default-border-color);-webkit-border-radius:50px;-moz-border-radius:50px;border-radius:50px;content:"";display:block;width:21px;height:21px;opacity:0;position:absolute;top:50%;left:50%;margin-top:-11px;margin-left:-11px;z-index:1;animation:gc-ripple 1.3s infinite;-moz-animation:gc-ripple 1.3s infinite;-webkit-animation:gc-ripple 1.3s infinite;animation-delay:2s;-moz-animation-delay:2s;-webkit-animation-delay:2s}@keyframes gc-ripple{0%{opacity:0}5%{opacity:.05}20%{opacity:.35}65%{opacity:.01}to{transform:scaleX(2) scaleY(2);opacity:0}}@-webkit-keyframes gc-ripple{0%{opacity:0}5%{opacity:.05}20%{opacity:.35}65%{opacity:.01}to{transform:scaleX(2) scaleY(2);opacity:0}}
1
+ :root{--go-captcha-theme-text-color: #333333;--go-captcha-theme-bg-color: #ffffff;--go-captcha-theme-btn-color: #ffffff;--go-captcha-theme-btn-disabled-color: #749ff9;--go-captcha-theme-btn-bg-color: #4e87ff;--go-captcha-theme-btn-border-color: #4e87ff;--go-captcha-theme-active-color: #3e7cff;--go-captcha-theme-border-color: rgba(206, 223, 254, .5);--go-captcha-theme-icon-color: #3C3C3C;--go-captcha-theme-drag-bar-color: #e0e0e0;--go-captcha-theme-drag-bg-color: #3e7cff;--go-captcha-theme-drag-icon-color: #ffffff;--go-captcha-theme-round-color: #e0e0e0;--go-captcha-theme-loading-icon-color: #3e7cff;--go-captcha-theme-body-bg-color: #34383e;--go-captcha-theme-default-color: #3e7cff;--go-captcha-theme-default-bg-color: #ecf5ff;--go-captcha-theme-default-border-color: #3e7cff;--go-captcha-theme-default-hover-color: #e0efff;--go-captcha-theme-error-color: #ed4630;--go-captcha-theme-error-bg-color: #fef0f0;--go-captcha-theme-error-border-color: #ff5a34;--go-captcha-theme-warn-color: #ffa000;--go-captcha-theme-warn-bg-color: #fdf6ec;--go-captcha-theme-warn-border-color: #ffbe09;--go-captcha-theme-success-color: #5eaa2f;--go-captcha-theme-success-bg-color: #f0f9eb;--go-captcha-theme-success-border-color: #8bc640}.go-captcha.gc-wrapper{padding:12px 16px;background-color:var(--go-captcha-theme-bg-color);-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.go-captcha.gc-theme{border:1px solid rgba(206,223,254,.5);border-color:var(--go-captcha-theme-border-color);-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px;box-shadow:0 0 20px #6464641a;-webkit-box-shadow:0 0 20px rgba(100,100,100,.1);-moz-box-shadow:0 0 20px rgba(100,100,100,.1)}.go-captcha .gc-header{height:36px;width:100%;font-size:15px;color:var(--go-captcha-theme-text-color);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.go-captcha .gc-header span{flex:1;padding-right:5px}.go-captcha .gc-header em{padding:0 3px;font-weight:700;color:var(--go-captcha-theme-active-color);font-style:normal}.go-captcha .gc-body{position:relative;width:100%;margin-top:10px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;background:var(--go-captcha-theme-body-bg-color);border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;overflow:hidden}.go-captcha .gc-body .gc-body-inner{background:var(--go-captcha-theme-body-bg-color)}.go-captcha .gc-picture{position:relative;z-index:2;width:100%}.go-captcha .gc-loading{position:absolute;z-index:1;top:50%;left:50%;width:68px;height:68px;margin-left:-34px;margin-top:-34px;line-height:68px;text-align:center;display:flex;align-content:center;justify-content:center}.go-captcha .gc-loading svg,.go-captcha .gc-loading circle{color:var(--go-captcha-theme-loading-icon-color);fill:var(--go-captcha-theme-loading-icon-color)}.go-captcha .gc-footer{width:100%;height:50px;color:#34383e;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;align-items:center;padding-top:10px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.go-captcha .gc-footer .icon-block{flex:1}.go-captcha .gc-icon-block{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;align-items:center}.go-captcha .gc-icon-block svg{color:var(--go-captcha-theme-icon-color);fill:var(--go-captcha-theme-icon-color);margin:0 5px;cursor:pointer}.go-captcha .gc-button-block{width:120px;height:40px}.go-captcha .gc-button-block button{width:100%;height:40px;text-align:center;padding:9px 15px;font-size:15px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;color:var(--go-captcha-theme-btn-color);background-color:var(--go-captcha-theme-btn-bg-color);border:1px solid transparent;border-color:var(--go-captcha-theme-btn-bg-color);-webkit-appearance:none;box-sizing:border-box;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none}.go-captcha .gc-button-block button.disabled{pointer-events:none;background-color:var(--go-captcha-theme-btn-disabled-color);border-color:var(--go-captcha-theme-btn-disabled-color)}.go-captcha .gc-drag-slide-bar{width:100%;height:100%;position:relative;touch-action:none}.go-captcha .gc-drag-line{position:absolute;height:14px;background-color:var(--go-captcha-theme-drag-bar-color);left:0;right:0;top:50%;margin-top:-7px;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.go-captcha .gc-drag-block{position:absolute;left:0;top:50%;margin-top:-20px;width:82px;height:40px;z-index:2;background-color:var(--go-captcha-theme-drag-bg-color);cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-border-radius:24px;-moz-border-radius:24px;border-radius:24px;box-shadow:0 0 20px #64646459;-webkit-box-shadow:0 0 20px rgba(100,100,100,.35);-moz-box-shadow:0 0 20px rgba(100,100,100,.35);color:var(--go-captcha-theme-drag-icon-color);fill:var(--go-captcha-theme-drag-icon-color)}.go-captcha .gc-drag-block.disabled{pointer-events:none;background-color:var(--go-captcha-theme-btn-disabled-color);border-color:var(--go-captcha-theme-btn-disabled-color)}.go-captcha .gc-drag-block-inline{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.go-captcha .gc-icon-block2{flex:1}.go-captcha .gc-dots{position:absolute;top:0;right:0;left:0;bottom:0}.go-captcha .gc-dots .gc-dot{position:absolute;z-index:2;width:22px;height:22px;color:#cedffe;background:#3e7cff;border:3px solid #f7f9fb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;justify-content:center;border-radius:22px;cursor:default}.go-captcha .gc-header2{text-align:center}.go-captcha .gc-tile{position:absolute;z-index:2;cursor:pointer}.go-captcha .gc-tile img{display:block;cursor:pointer;width:100%;height:100%}.go-captcha .gc-rotate-body{background:transparent!important;display:flex;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;justify-content:center;align-items:center;margin:10px auto 0}.go-captcha .gc-rotate-body .gc-body-inner{border-radius:100%}.go-captcha .gc-rotate-picture{position:relative;max-width:100%;max-height:100%;z-index:2;border-radius:100%;overflow:hidden;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;justify-content:center;align-items:center}.go-captcha .gc-rotate-picture img{max-width:100%;max-height:100%}.go-captcha .gc-rotate-picture .gc-round{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;z-index:2;border:6px solid #e0e0e0;border-color:var(--go-captcha-theme-round-color)}.go-captcha .gc-rotate-thumb{position:absolute;z-index:2;top:0;left:0;right:0;bottom:0}.go-captcha .gc-rotate-thumb img{max-width:100%;max-height:100%}.go-captcha .gc-rotate-thumb-block{width:100%;height:100%;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;justify-content:center;align-items:center}.go-captcha.gc-btn-block{position:relative;box-sizing:border-box;display:block;font-size:13px;-webkit-border-radius:5px;-moz-border-radius:5px;letter-spacing:1px;border-radius:5px;line-height:1;white-space:nowrap;-webkit-appearance:none;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;justify-content:center;justify-items:center;box-shadow:0 0 20px #3e7cff1a;-webkit-box-shadow:0 0 20px rgba(62,124,255,.1);-moz-box-shadow:0 0 20px rgba(62,124,255,.1)}.go-captcha.gc-btn-block span{padding-left:8px}.go-captcha.gc-disabled{pointer-events:none}.go-captcha.gc-default{color:var(--go-captcha-theme-default-color);border:1px solid #50a1ff;border-color:var(--go-captcha-theme-default-border-color);background-color:var(--go-captcha-theme-default-bg-color);cursor:pointer}.go-captcha.gc-default:hover{background-color:var(--go-captcha-theme-default-hover-color)!important}.go-captcha.gc-error{cursor:pointer;color:var(--go-captcha-theme-error-color);background-color:var(--go-captcha-theme-error-bg-color);border:1px solid #ff5a34;border-color:var(--go-captcha-theme-error-border-color)}.go-captcha.gc-warn{cursor:pointer;color:var(--go-captcha-theme-warn-color);background-color:var(--go-captcha-theme-warn-bg-color);border:1px solid #ffbe09;border-color:var(--go-captcha-theme-warn-border-color)}.go-captcha.gc-success{color:var(--go-captcha-theme-success-color);background-color:var(--go-captcha-theme-success-bg-color);border:1px solid #8bc640;border-color:var(--go-captcha-theme-success-border-color);pointer-events:none}.go-captcha .gc-ripple{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;justify-content:center;justify-items:center}.go-captcha .gc-ripple>*{z-index:2}.go-captcha .gc-ripple svg{position:relative;z-index:2}.go-captcha .gc-ripple:after{background-color:var(--go-captcha-theme-default-border-color);-webkit-border-radius:50px;-moz-border-radius:50px;border-radius:50px;content:"";display:block;width:21px;height:21px;opacity:0;position:absolute;top:50%;left:50%;margin-top:-11px;margin-left:-11px;z-index:1;animation:gc-ripple 1.3s infinite;-moz-animation:gc-ripple 1.3s infinite;-webkit-animation:gc-ripple 1.3s infinite;animation-delay:2s;-moz-animation-delay:2s;-webkit-animation-delay:2s}@keyframes gc-ripple{0%{opacity:0}5%{opacity:.05}20%{opacity:.35}65%{opacity:.01}to{transform:scaleX(2) scaleY(2);opacity:0}}@-webkit-keyframes gc-ripple{0%{opacity:0}5%{opacity:.05}20%{opacity:.35}65%{opacity:.01}to{transform:scaleX(2) scaleY(2);opacity:0}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "go-captcha-vue",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -51,7 +51,7 @@
51
51
  "type-check": "vue-tsc --noEmit -p tsconfig.json"
52
52
  },
53
53
  "dependencies": {
54
- "vue": "^2.7.14"
54
+ "vue": "<3"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "vue": "<3"