go-captcha-vue 1.0.5 → 1.0.6-beta

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.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <div align="center">
2
2
  <img width="120" style="padding-top: 50px; margin: 0;" src="http://47.104.180.148/go-captcha/gocaptcha_logo.svg?v=1"/>
3
3
  <h1 style="margin: 0; padding: 0">Go Captcha</h1>
4
- <p>Behavior Captcha For Vue</p>
4
+ <p>The Behavior Captcha For The Vue</p>
5
5
 
6
6
  </div>
7
7
 
@@ -174,7 +174,7 @@ interface ExportMethods {
174
174
  }
175
175
  ```
176
176
 
177
- ## Drag-And-Drop Mode
177
+ ## Drag-Drop Mode
178
178
  ```vue
179
179
  <gocaptcha-slide-region
180
180
  :config="{}"
@@ -272,6 +272,7 @@ interface Data {
272
272
  angle: number;
273
273
  image: string;
274
274
  thumb: string;
275
+ thumbSize: number;
275
276
  }
276
277
 
277
278
  // events = {}
@@ -1,35 +1,34 @@
1
1
  import { ButtonConfig } from "./meta/config";
2
2
  import { ButtonType } from "@/components/button/meta/types";
3
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ type __VLS_Props = {
4
+ config?: ButtonConfig;
5
+ clickEvent?: () => void;
6
+ disabled?: boolean;
7
+ type?: ButtonType;
8
+ title?: string;
4
9
  [x: string]: any;
5
- config?: ButtonConfig | undefined;
6
- clickEvent?: (() => void) | undefined;
7
- disabled?: boolean | undefined;
8
- type?: ButtonType | undefined;
9
- title?: string | undefined;
10
- }>, {
10
+ };
11
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
11
12
  config: () => ButtonConfig;
12
13
  disabled: boolean;
13
14
  type: string;
14
15
  title: string;
15
16
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
17
  "click-event": (...args: any[]) => void;
17
- }, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
- [x: string]: any;
19
- config?: ButtonConfig | undefined;
20
- clickEvent?: (() => void) | undefined;
21
- disabled?: boolean | undefined;
22
- type?: ButtonType | undefined;
23
- title?: string | undefined;
24
- }>, {
18
+ }, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
25
19
  config: () => ButtonConfig;
26
20
  disabled: boolean;
27
21
  type: string;
28
22
  title: string;
29
23
  }>>>, {}>;
30
24
  export default _default;
31
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
- declare type __VLS_TypePropsToRuntimeProps<T> = {
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToOption<T> = {
33
32
  [K in keyof T]-?: {} extends Pick<T, K> ? {
34
33
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
34
  } : {
@@ -37,11 +36,6 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
37
36
  required: true;
38
37
  };
39
38
  };
40
- declare type __VLS_WithDefaults<P, D> = {
41
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
42
- default: D[K];
43
- }> : P[K];
44
- };
45
- declare type __VLS_Prettify<T> = {
39
+ type __VLS_PrettifyLocal<T> = {
46
40
  [K in keyof T]: T[K];
47
41
  } & {};
@@ -1,12 +1,13 @@
1
1
  import { ClickConfig } from "./meta/config";
2
2
  import { ClickData } from "./meta/data";
3
3
  import { ClickEvent } from "./meta/event";
4
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- [x: string]: any;
6
- config?: ClickConfig | undefined;
7
- events?: ClickEvent | undefined;
4
+ type __VLS_Props = {
5
+ config?: ClickConfig;
6
+ events?: ClickEvent;
8
7
  data: ClickData;
9
- }>, {
8
+ [x: string]: any;
9
+ };
10
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
10
11
  config: () => ClickConfig;
11
12
  events: () => ClickEvent;
12
13
  data: () => ClickData;
@@ -15,19 +16,19 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
16
  clear: () => void;
16
17
  refresh: () => void;
17
18
  close: () => void;
18
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
- [x: string]: any;
20
- config?: ClickConfig | undefined;
21
- events?: ClickEvent | undefined;
22
- data: ClickData;
23
- }>, {
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
24
20
  config: () => ClickConfig;
25
21
  events: () => ClickEvent;
26
22
  data: () => ClickData;
27
23
  }>>>, {}>;
28
24
  export default _default;
29
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
- declare type __VLS_TypePropsToRuntimeProps<T> = {
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToOption<T> = {
31
32
  [K in keyof T]-?: {} extends Pick<T, K> ? {
32
33
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
34
  } : {
@@ -35,11 +36,6 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
35
36
  required: true;
36
37
  };
37
38
  };
38
- declare type __VLS_WithDefaults<P, D> = {
39
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
- default: D[K];
41
- }> : P[K];
42
- };
43
- declare type __VLS_Prettify<T> = {
39
+ type __VLS_PrettifyLocal<T> = {
44
40
  [K in keyof T]: T[K];
45
41
  } & {};
@@ -1,12 +1,13 @@
1
1
  import { RotateConfig } from "./meta/config";
2
2
  import { RotateData } from "./meta/data";
3
3
  import { RotateEvent } from "./meta/event";
4
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- [x: string]: any;
6
- config?: RotateConfig | undefined;
7
- events?: RotateEvent | undefined;
4
+ type __VLS_Props = {
5
+ config?: RotateConfig;
6
+ events?: RotateEvent;
8
7
  data: RotateData;
9
- }>, {
8
+ [x: string]: any;
9
+ };
10
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
10
11
  config: () => RotateConfig;
11
12
  events: () => RotateEvent;
12
13
  data: () => RotateData;
@@ -15,19 +16,19 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
16
  clear: () => void;
16
17
  refresh: () => void;
17
18
  close: () => void;
18
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
- [x: string]: any;
20
- config?: RotateConfig | undefined;
21
- events?: RotateEvent | undefined;
22
- data: RotateData;
23
- }>, {
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
24
20
  config: () => RotateConfig;
25
21
  events: () => RotateEvent;
26
22
  data: () => RotateData;
27
23
  }>>>, {}>;
28
24
  export default _default;
29
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
- declare type __VLS_TypePropsToRuntimeProps<T> = {
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToOption<T> = {
31
32
  [K in keyof T]-?: {} extends Pick<T, K> ? {
32
33
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
34
  } : {
@@ -35,11 +36,6 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
35
36
  required: true;
36
37
  };
37
38
  };
38
- declare type __VLS_WithDefaults<P, D> = {
39
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
- default: D[K];
41
- }> : P[K];
42
- };
43
- declare type __VLS_Prettify<T> = {
39
+ type __VLS_PrettifyLocal<T> = {
44
40
  [K in keyof T]: T[K];
45
41
  } & {};
@@ -7,5 +7,6 @@ export interface RotateData {
7
7
  angle: number;
8
8
  image: string;
9
9
  thumb: string;
10
+ thumbSize: number;
10
11
  }
11
12
  export declare const defaultRotateData: () => RotateData;
@@ -1,12 +1,13 @@
1
1
  import { SlideConfig } from "./meta/config";
2
2
  import { SlideData } from "./meta/data";
3
3
  import { SlideEvent } from "./meta/event";
4
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- [x: string]: any;
6
- config?: SlideConfig | undefined;
7
- events?: SlideEvent | undefined;
4
+ type __VLS_Props = {
5
+ config?: SlideConfig;
6
+ events?: SlideEvent;
8
7
  data: SlideData;
9
- }>, {
8
+ [x: string]: any;
9
+ };
10
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
10
11
  config: () => SlideConfig;
11
12
  events: () => SlideEvent;
12
13
  data: () => SlideData;
@@ -15,19 +16,19 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
16
  clear: () => void;
16
17
  refresh: () => void;
17
18
  close: () => void;
18
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
- [x: string]: any;
20
- config?: SlideConfig | undefined;
21
- events?: SlideEvent | undefined;
22
- data: SlideData;
23
- }>, {
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
24
20
  config: () => SlideConfig;
25
21
  events: () => SlideEvent;
26
22
  data: () => SlideData;
27
23
  }>>>, {}>;
28
24
  export default _default;
29
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
- declare type __VLS_TypePropsToRuntimeProps<T> = {
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToOption<T> = {
31
32
  [K in keyof T]-?: {} extends Pick<T, K> ? {
32
33
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
34
  } : {
@@ -35,11 +36,6 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
35
36
  required: true;
36
37
  };
37
38
  };
38
- declare type __VLS_WithDefaults<P, D> = {
39
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
- default: D[K];
41
- }> : P[K];
42
- };
43
- declare type __VLS_Prettify<T> = {
39
+ type __VLS_PrettifyLocal<T> = {
44
40
  [K in keyof T]: T[K];
45
41
  } & {};
@@ -1,12 +1,13 @@
1
1
  import { SlideRegionConfig } from "./meta/config";
2
2
  import { SlideRegionData } from "./meta/data";
3
3
  import { SlideRegionEvent } from "./meta/event";
4
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- [x: string]: any;
6
- config?: SlideRegionConfig | undefined;
7
- events?: SlideRegionEvent | undefined;
4
+ type __VLS_Props = {
5
+ config?: SlideRegionConfig;
6
+ events?: SlideRegionEvent;
8
7
  data: SlideRegionData;
9
- }>, {
8
+ [x: string]: any;
9
+ };
10
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
10
11
  config: () => SlideRegionConfig;
11
12
  events: () => SlideRegionEvent;
12
13
  data: () => SlideRegionData;
@@ -15,19 +16,19 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
16
  clear: () => void;
16
17
  refresh: () => void;
17
18
  close: () => void;
18
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
- [x: string]: any;
20
- config?: SlideRegionConfig | undefined;
21
- events?: SlideRegionEvent | undefined;
22
- data: SlideRegionData;
23
- }>, {
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
24
20
  config: () => SlideRegionConfig;
25
21
  events: () => SlideRegionEvent;
26
22
  data: () => SlideRegionData;
27
23
  }>>>, {}>;
28
24
  export default _default;
29
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
- declare type __VLS_TypePropsToRuntimeProps<T> = {
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToOption<T> = {
31
32
  [K in keyof T]-?: {} extends Pick<T, K> ? {
32
33
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
34
  } : {
@@ -35,11 +36,6 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
35
36
  required: true;
36
37
  };
37
38
  };
38
- declare type __VLS_WithDefaults<P, D> = {
39
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
- default: D[K];
41
- }> : P[K];
42
- };
43
- declare type __VLS_Prettify<T> = {
39
+ type __VLS_PrettifyLocal<T> = {
44
40
  [K in keyof T]: T[K];
45
41
  } & {};
@@ -359,7 +359,7 @@ __sfc_main$9.setup = (__props, __ctx) => {
359
359
  };
360
360
  });
361
361
  const hasDisplayImageState = computed(() => {
362
- return localData.image != "" || localData.thumb != "";
362
+ return localData.image && localData.image.length > 0 || localData.thumb && localData.thumb.length > 0;
363
363
  });
364
364
  const hasDisplayWrapperState = computed(() => {
365
365
  return (localConfig.width || 0) > 0 || (localConfig.height || 0) > 0;
@@ -649,7 +649,7 @@ __sfc_main$7.props = {
649
649
  key: "data",
650
650
  required: false,
651
651
  type: null,
652
- default: () => ({})
652
+ default: defaultSlideData
653
653
  }
654
654
  };
655
655
  __sfc_main$7.setup = (__props, __ctx) => {
@@ -725,10 +725,10 @@ __sfc_main$7.setup = (__props, __ctx) => {
725
725
  };
726
726
  });
727
727
  const hasDisplayImageState = computed(() => {
728
- return localData.image != "";
728
+ return localData.image && localData.image.length > 0;
729
729
  });
730
730
  const hasDisplayThumbImageState = computed(() => {
731
- return localData.thumb != "";
731
+ return localData.thumb && localData.thumb.length > 0;
732
732
  });
733
733
  const hasDisplayWrapperState = computed(() => {
734
734
  return (localConfig.width || 0) > 0 || (localConfig.height || 0) > 0;
@@ -996,7 +996,7 @@ __sfc_main$6.props = {
996
996
  key: "data",
997
997
  required: false,
998
998
  type: null,
999
- default: () => ({})
999
+ default: defaultSlideRegionData
1000
1000
  }
1001
1001
  };
1002
1002
  __sfc_main$6.setup = (__props, __ctx) => {
@@ -1070,10 +1070,10 @@ __sfc_main$6.setup = (__props, __ctx) => {
1070
1070
  };
1071
1071
  });
1072
1072
  const hasDisplayImageState = computed(() => {
1073
- return localData.image != "";
1073
+ return localData.image && localData.image.length > 0;
1074
1074
  });
1075
1075
  const hasDisplayThumbImageState = computed(() => {
1076
- return localData.thumb != "";
1076
+ return localData.thumb && localData.thumb.length > 0;
1077
1077
  });
1078
1078
  const hasDisplayWrapperState = computed(() => {
1079
1079
  return (localConfig.width || 0) > 0 || (localConfig.height || 0) > 0;
@@ -1156,7 +1156,8 @@ const defaultConfig$1 = () => ({
1156
1156
  const defaultRotateData = () => ({
1157
1157
  angle: 0,
1158
1158
  image: "",
1159
- thumb: ""
1159
+ thumb: "",
1160
+ thumbSize: 0
1160
1161
  });
1161
1162
  function useHandler(data, event, config, rootRef, dragBlockRef, dragBarRef, clearCbs) {
1162
1163
  const state = reactive({ dragLeft: 0, thumbAngle: data.angle || 0, isFreeze: false });
@@ -1324,7 +1325,7 @@ __sfc_main$5.props = {
1324
1325
  key: "data",
1325
1326
  required: false,
1326
1327
  type: null,
1327
- default: () => ({})
1328
+ default: defaultRotateData
1328
1329
  }
1329
1330
  };
1330
1331
  __sfc_main$5.setup = (__props, __ctx) => {
@@ -1382,7 +1383,11 @@ __sfc_main$5.setup = (__props, __ctx) => {
1382
1383
  });
1383
1384
  const thumbStyles = computed(() => {
1384
1385
  return {
1385
- transform: `rotate(${handler.state.thumbAngle}deg)`
1386
+ transform: `rotate(${handler.state.thumbAngle}deg)`,
1387
+ ...localData.thumbSize > 0 ? {
1388
+ width: localData.thumbSize + "px",
1389
+ height: localData.thumbSize + "px"
1390
+ } : {}
1386
1391
  };
1387
1392
  });
1388
1393
  const imageBlockStyles = computed(() => {
@@ -1399,10 +1404,10 @@ __sfc_main$5.setup = (__props, __ctx) => {
1399
1404
  };
1400
1405
  });
1401
1406
  const hasDisplayImageState = computed(() => {
1402
- return localData.image != "";
1407
+ return localData.image && localData.image.length > 0;
1403
1408
  });
1404
1409
  const hasDisplayThumbImageState = computed(() => {
1405
- return localData.thumb != "";
1410
+ return localData.thumb && localData.thumb.length > 0;
1406
1411
  });
1407
1412
  const hasDisplayWrapperState = computed(() => {
1408
1413
  return (localConfig.width || 0) > 0 || (localConfig.height || 0) > 0;
@@ -1,11 +1,11 @@
1
- (function(P,s){typeof exports=="object"&&typeof module!="undefined"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(P=typeof globalThis!="undefined"?globalThis:P||self,s(P["go-captcha-vue"]={},P.Vue))})(this,function(P,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 Re=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(P,s){typeof exports=="object"&&typeof module!="undefined"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(P=typeof globalThis!="undefined"?globalThis:P||self,s(P["go-captcha-vue"]={},P.Vue))})(this,function(P,s){"use strict";var Nt="";const le=()=>({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}),re={};re.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var We=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=[],Ut="";function M(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 b=a.render;a.render=function(g,w){return d.call(w),b(g,w)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,d):[d]}return{exports:e,options:a}}const ue={};var Me=M(le,Re,Ie,!1,We,"3972774c",null,null);function We(e){for(let n in ue)this[n]=ue[n]}var ae=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`}})])},Xe=[],Ut="";function M(e,n,t,i,u,v,c,l){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(c?(d=function(o){o=o||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!o&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(o=__VUE_SSR_CONTEXT__),u&&u.call(this,o),o&&o._registeredComponents&&o._registeredComponents.add(c)},a._ssrRegister=d):u&&(d=l?function(){u.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:u),d)if(a.functional){a._injectStyles=d;var b=a.render;a.render=function(g,w){return d.call(w),b(g,w)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,d):[d]}return{exports:e,options:a}}const ue={};var je=M(re,We,Xe,!1,Pe,"3972774c",null,null);function Pe(e){for(let n in ue)this[n]=ue[n]}var ae=function(){return je.exports}();const de={};de.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var Oe=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=M(de,Xe,je,!1,Oe,"1120f0d2",null,null);function Oe(e){for(let n in he)this[n]=he[n]}var ce=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=M(fe,Ye,qe,!1,He,"c6fd8106",null,null);function He(e){for(let n in pe)this[n]=pe[n]}var oe=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 U(e,n){let t=n.relatedTarget;try{for(;t&&t!==e;)t=t.parentNode}catch(i){console.warn(i)}return t!==e}function Ue(e,n,t){const i=s.reactive({list:[]}),u=c=>{const g=c.currentTarget,w=Ne(g),l=c.pageX||c.clientX,E=c.pageY||c.clientY,_=w.domX,D=w.domY,B=l-_,m=E-D,h=parseInt(B.toString()),p=parseInt(m.toString()),C=new Date,W=i.list.length;return i.list.push({key:C.getTime(),index:W+1,x:h,y:p}),n.click&&n.click(h,p),c.cancelBubble=!0,c.preventDefault(),!1},v=c=>(n.confirm&&n.confirm(s.toRaw(i.list),()=>{b()}),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(),b()},d=()=>{n.refresh&&n.refresh(),b()},b=()=>{i.list=[]};return{dots:i,clickEvent:u,confirmEvent:v,closeEvent:o,refreshEvent:r,resetData:b,clearData:()=>{b(),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,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=Ue(o,r,()=>{o.thumb="",o.image=""}),b=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"})),g=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:b,thumbStyles:f,imageStyles:c,hasDisplayImageState:g,hasDisplayWrapperState:w},{reset:d.resetData,clear:d.clearData,refresh:d.refresh,close:d.close})},V.components=Object.assign({LoadingIcon:oe,CloseIcon:ae,RefreshIcon:ce},V.components);var Ve=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=M(V,Ve,Ge,!1,Ke,null,null,null);function Ke(e){for(let n in ge)this[n]=ge[n]}var G=function(){return Je.exports}();G.name="gocaptcha-click",G.install=function(e){e.component("gocaptcha-click",G)};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`}})])},Ye=[],Vt="";const he={};var qe=M(de,Oe,Ye,!1,Ae,"1120f0d2",null,null);function Ae(e){for(let n in he)this[n]=he[n]}var ce=function(){return qe.exports}();const fe={};fe.setup=(e,n)=>{const t=n.emit;function i(u){t("click",u)}return{emitClickEvent:i}};var He=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"}})])])},Ne=[],Gt="";const pe={};var Ue=M(fe,He,Ne,!1,Ve,"c6fd8106",null,null);function Ve(e){for(let n in pe)this[n]=pe[n]}var oe=function(){return Ue.exports}();function Ge(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 U(e,n){let t=n.relatedTarget;try{for(;t&&t!==e;)t=t.parentNode}catch(i){console.warn(i)}return t!==e}function Je(e,n,t){const i=s.reactive({list:[]}),u=o=>{const g=o.currentTarget,w=Ge(g),r=o.pageX||o.clientX,E=o.pageY||o.clientY,_=w.domX,D=w.domY,B=r-_,m=E-D,h=parseInt(B.toString()),p=parseInt(m.toString()),C=new Date,W=i.list.length;return i.list.push({key:C.getTime(),index:W+1,x:h,y:p}),n.click&&n.click(h,p),o.cancelBubble=!0,o.preventDefault(),!1},v=o=>(n.confirm&&n.confirm(s.toRaw(i.list),()=>{b()}),o.cancelBubble=!0,o.preventDefault(),!1),c=o=>(a(),o.cancelBubble=!0,o.preventDefault(),!1),l=o=>(d(),o.cancelBubble=!0,o.preventDefault(),!1),a=()=>{n.close&&n.close(),b()},d=()=>{n.refresh&&n.refresh(),b()},b=()=>{i.list=[]};return{dots:i,clickEvent:u,confirmEvent:v,closeEvent:c,refreshEvent:l,resetData:b,clearData:()=>{b(),t&&t()},refresh:d,close:a}}const V={};V.props={config:{key:"config",required:!1,type:null,default:le},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,c=s.reactive({...s.toRaw(i)}),l=s.reactive({...s.toRaw(u)}),a=s.reactive({...le(),...s.toRaw(v)});s.watch(()=>t.data,(r,E)=>{Object.assign(c,r)},{deep:!0}),s.watch(()=>t.events,(r,E)=>{Object.assign(l,r)},{deep:!0}),s.watch(()=>t.config,(r,E)=>{Object.assign(a,r)},{deep:!0});const d=Je(c,l,()=>{c.thumb="",c.image=""}),b=s.computed(()=>{const r=a.horizontalPadding||0,E=a.verticalPadding||0;return{width:(a.width||0)+r*2+(a.showTheme?2:0)+"px",paddingLeft:r+"px",paddingRight:r+"px",paddingTop:E+"px",paddingBottom:E+"px"}}),f=s.computed(()=>({width:a.thumbWidth+"px",height:a.thumbHeight+"px"})),o=s.computed(()=>({width:a.width+"px",height:a.height+"px"})),g=s.computed(()=>c.image&&c.image.length>0||c.thumb&&c.thumb.length>0),w=s.computed(()=>(a.width||0)>0||(a.height||0)>0);return Object.assign({localData:c,localConfig:a,handler:d,wrapperStyles:b,thumbStyles:f,imageStyles:o,hasDisplayImageState:g,hasDisplayWrapperState:w},{reset:d.resetData,clear:d.clearData,refresh:d.refresh,close:d.close})},V.components=Object.assign({LoadingIcon:oe,CloseIcon:ae,RefreshIcon:ce},V.components);var Ke=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))])])])])},Qe=[],Jt="";const ge={};var Ze=M(V,Ke,Qe,!1,et,null,null,null);function et(e){for(let n in ge)this[n]=ge[n]}var G=function(){return Ze.exports}();G.name="gocaptcha-click",G.install=function(e){e.component("gocaptcha-click",G)};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 tt=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=[],Kt="";const _e={};var et=M(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,(_,D)=>{d.isFreeze||(d.thumbLeft=_.thumbX||0)},{deep:!0});const b=_=>{if(!U(r.value,_))return;const D=_.touches&&_.touches[0],B=o.value.offsetLeft,m=u.value.offsetWidth,h=o.value.offsetWidth,p=m-h,C=v.value.offsetWidth,W=v.value.offsetLeft,A=m-C,O=(m-(C+W))/p;let X=!1,L=null,q=0,T=0;D?q=D.pageX-B:q=_.clientX-B;const F=k=>{X=!0;const Y=k.touches&&k.touches[0];let z=0;Y?z=Y.pageX-q:z=k.clientX-q;let Ht=W+z*O;if(z>=p){d.dragLeft=p,d.thumbLeft=T=A;return}if(z<=0){d.dragLeft=0,d.thumbLeft=T=W;return}d.dragLeft=z,d.thumbLeft=T=Ht,n.move&&n.move(T,e.thumbY||0),k.cancelBubble=!0,k.preventDefault()},j=k=>{!U(r.value,k)||($(),X&&(X=!1,!(T<0)&&(n.confirm&&n.confirm({x:parseInt(T.toString()),y:e.thumbY||0},()=>{l()}),k.cancelBubble=!0,k.preventDefault())))},R=k=>{L=k},I=()=>{L=null},N=k=>{!L||(j(L),$())},y=t.scope,x=y?i.value:r.value,S=y?i.value:document.body,$=()=>{S.removeEventListener("mousemove",F,!1),S.removeEventListener("touchmove",F,{passive:!1}),x.removeEventListener("mouseup",j,!1),x.removeEventListener("mouseenter",I,!1),x.removeEventListener("mouseleave",R,!1),x.removeEventListener("touchend",j,!1),S.removeEventListener("mouseleave",j,!1),S.removeEventListener("mouseup",N,!1),d.isFreeze=!1};d.isFreeze=!0,S.addEventListener("mousemove",F,!1),S.addEventListener("touchmove",F,{passive:!1}),x.addEventListener("mouseup",j,!1),x.addEventListener("mouseenter",I,!1),x.addEventListener("mouseleave",R,!1),x.addEventListener("touchend",j,!1),S.addEventListener("mouseleave",j,!1),S.addEventListener("mouseup",N,!1)},f=_=>(g(),_.cancelBubble=!0,_.preventDefault(),!1),c=_=>(w(),_.cancelBubble=!0,_.preventDefault(),!1),g=()=>{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:b,closeEvent:f,refreshEvent:c,resetData:l,clearData:()=>{a&&a(),l()},refresh:w,close:g}}const J={};J.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:()=>({})}},J.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,(p,C)=>{Object.assign(o,p)},{deep:!0}),s.watch(()=>t.events,(p,C)=>{Object.assign(r,p)},{deep:!0}),s.watch(()=>t.config,(p,C)=>{Object.assign(a,p)},{deep:!0});const d=s.ref(null),b=s.ref(null),f=s.ref(null),c=s.ref(null),g=s.ref(null),w=st(o,r,a,d,f,g,c,b,()=>{o.thumb="",o.image="",o.thumbX=0,o.thumbY=0,o.thumbWidth=0,o.thumbHeight=0}),l=s.computed(()=>{const p=a.horizontalPadding||0,C=a.verticalPadding||0;return{width:(a.width||0)+p*2+(a.showTheme?2:0)+"px",paddingLeft:p+"px",paddingRight:p+"px",paddingTop:C+"px",paddingBottom:C+"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!=""),m=s.computed(()=>(a.width||0)>0||(a.height||0)>0),h=p=>p.preventDefault();return s.onMounted(async()=>{await s.nextTick(),c.value&&c.value.addEventListener("dragstart",h)}),s.onUnmounted(()=>{c.value&&c.value.removeEventListener("dragstart",h)}),Object.assign({localData:o,localConfig:a,rootRef:d,dragBarRef:b,containerRef:f,dragBlockRef:c,tileRef:g,handler:w,wrapperStyles:l,thumbStyles:E,imageStyles:_,hasDisplayImageState:D,hasDisplayThumbImageState:B,hasDisplayWrapperState:m},{reset:w.resetData,clear:w.clearData,refresh:w.refresh,close:w.close})},J.components=Object.assign({CloseIcon:ae,RefreshIcon:ce,LoadingIcon:oe,ArrowsIcon:be},J.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=M(J,at,ct,!1,it,null,null,null);function it(e){for(let n in ye)this[n]=ye[n]}var K=function(){return ot.exports}();K.name="gocaptcha-slide",K.install=function(e){e.component("gocaptcha-slide",K)};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,E)=>{r.isFreeze||(r.x=l.thumbX||0,r.y=l.thumbY||0)},{deep:!0});const a=l=>{if(!U(u.value,l))return;const E=l.touches&&l.touches[0],_=v.value.offsetLeft,D=v.value.offsetTop,B=u.value.offsetWidth,m=u.value.offsetHeight,h=v.value.offsetWidth,p=v.value.offsetHeight,C=B-h,W=m-p;let A=!1,H=null,O=0,X=0,L=0,q=0;E?(O=E.pageX-_,X=E.pageY-D):(O=l.clientX-_,X=l.clientY-D);const T=$=>{A=!0;const k=$.touches&&$.touches[0];let Y=0,z=0;k?(Y=k.pageX-O,z=k.pageY-X):(Y=$.clientX-O,z=$.clientY-X),Y<=0&&(Y=0),z<=0&&(z=0),Y>=C&&(Y=C),z>=W&&(z=W),r.x=Y,r.y=z,L=Y,q=z,n.move&&n.move(Y,z),$.cancelBubble=!0,$.preventDefault()},F=$=>{!U(u.value,$)||(S(),A&&(A=!1,!(L<0||q<0)&&(n.confirm&&n.confirm({x:L,y:q},()=>{g()}),$.cancelBubble=!0,$.preventDefault())))},j=$=>{H=$},R=()=>{H=null},I=$=>{!H||(F(H),S())},N=t.scope,y=N?i.value:u.value,x=N?i.value:document.body,S=()=>{x.removeEventListener("mousemove",T,!1),x.removeEventListener("touchmove",T,{passive:!1}),y.removeEventListener("mouseup",F,!1),y.removeEventListener("mouseenter",R,!1),y.removeEventListener("mouseleave",j,!1),y.removeEventListener("touchend",F,!1),x.removeEventListener("mouseleave",F,!1),x.removeEventListener("mouseup",I,!1),r.isFreeze=!1};r.isFreeze=!0,x.addEventListener("mousemove",T,!1),x.addEventListener("touchmove",T,{passive:!1}),y.addEventListener("mouseup",F,!1),y.addEventListener("mouseenter",R,!1),y.addEventListener("mouseleave",j,!1),y.addEventListener("touchend",F,!1),x.addEventListener("mouseleave",F,!1),x.addEventListener("mouseup",I,!1)},d=l=>(f(),l.cancelBubble=!0,l.preventDefault(),!1),b=l=>(c(),l.cancelBubble=!0,l.preventDefault(),!1),f=()=>{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:b,resetData:g,clearData:()=>{o&&o(),g()},refresh:c,close:f}}const Q={};Q.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:()=>({})}},Q.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,(m,h)=>{Object.assign(o,m)},{deep:!0}),s.watch(()=>t.events,(m,h)=>{Object.assign(r,m)},{deep:!0}),s.watch(()=>t.config,(m,h)=>{Object.assign(a,m)},{deep:!0});const d=s.ref(null),b=s.ref(null),f=s.ref(null),c=lt(o,r,a,d,b,f,()=>{o.thumb="",o.image="",o.thumbX=0,o.thumbY=0,o.thumbWidth=0,o.thumbHeight=0}),g=s.computed(()=>{const m=a.horizontalPadding||0,h=a.verticalPadding||0;return{width:(a.width||0)+m*2+(a.showTheme?2:0)+"px",paddingLeft:m+"px",paddingRight:m+"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),B=m=>m.preventDefault();return s.onMounted(async()=>{await s.nextTick(),f.value&&f.value.addEventListener("dragstart",B)}),s.onUnmounted(()=>{f.value&&f.value.removeEventListener("dragstart",B)}),Object.assign({localData:o,localConfig:a,rootRef:d,containerRef:b,tileRef:f,handler:c,wrapperStyles:g,thumbStyles:w,imageStyles:l,hasDisplayImageState:E,hasDisplayThumbImageState:_,hasDisplayWrapperState:D},{reset:c.resetData,clear:c.clearData,refresh:c.refresh,close:c.close})},Q.components=Object.assign({LoadingIcon:oe,CloseIcon:ae,RefreshIcon:ce},Q.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=M(Q,ut,dt,!1,ft,null,null,null);function ft(e){for(let n in Ee)this[n]=Ee[n]}var Z=function(){return ht.exports}();Z.name="gocaptcha-slide-region",Z.install=function(e){e.component("gocaptcha-slide-region",Z)};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,E)=>{r.isFreeze||(r.thumbAngle=l.angle||0)},{deep:!0});const a=l=>{if(!U(v.value,l))return;const E=l.touches&&l.touches[0],_=u.value.offsetLeft,D=v.value.offsetWidth,B=u.value.offsetWidth,m=D-B,h=360,p=(h-e.angle)/m;let C=0,W=!1,A=null,H=0,O=0;E?H=E.pageX-_:H=l.clientX-_;const X=y=>{W=!0;const x=y.touches&&y.touches[0];let S=0;if(x?S=x.pageX-H:S=y.clientX-H,C=e.angle+S*p,S>=m){r.dragLeft=m,r.thumbAngle=O=h;return}if(S<=0){r.dragLeft=0,r.thumbAngle=O=e.angle;return}r.dragLeft=S,r.thumbAngle=O=C,n.rotate&&n.rotate(C),y.cancelBubble=!0,y.preventDefault()},L=y=>{!U(v.value,y)||(N(),W&&(W=!1,!(O<0)&&(n.confirm&&n.confirm(parseInt(O.toString()),()=>{g()}),y.cancelBubble=!0,y.preventDefault())))},q=y=>{A=y},T=()=>{A=null},F=y=>{!A||(L(A),N())},j=t.scope,R=j?i.value:v.value,I=j?i.value:document.body,N=()=>{I.removeEventListener("mousemove",X,!1),I.removeEventListener("touchmove",X,{passive:!1}),R.removeEventListener("mouseup",L,!1),R.removeEventListener("mouseenter",T,!1),R.removeEventListener("mouseleave",q,!1),R.removeEventListener("touchend",L,!1),I.removeEventListener("mouseleave",L,!1),I.removeEventListener("mouseup",F,!1),r.isFreeze=!1};r.isFreeze=!0,I.addEventListener("mousemove",X,!1),I.addEventListener("touchmove",X,{passive:!1}),R.addEventListener("mouseup",L,!1),R.addEventListener("mouseenter",T,!1),R.addEventListener("mouseleave",q,!1),R.addEventListener("touchend",L,!1),I.addEventListener("mouseleave",L,!1),I.addEventListener("mouseup",F,!1)},d=l=>(f(),l.cancelBubble=!0,l.preventDefault(),!1),b=l=>(c(),l.cancelBubble=!0,l.preventDefault(),!1),f=()=>{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:b,resetData:g,clearData:()=>{o&&o(),g()},refresh:c,close:f}}const ee={};ee.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:()=>({})}},ee.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,p)=>{Object.assign(o,h)},{deep:!0}),s.watch(()=>t.events,(h,p)=>{Object.assign(r,h)},{deep:!0}),s.watch(()=>t.config,(h,p)=>{Object.assign(a,h)},{deep:!0});const d=s.ref(null),b=s.ref(null),f=s.ref(null),c=gt(o,r,a,d,f,b,()=>{o.thumb="",o.image="",o.angle=0}),g=s.computed(()=>{const h=a.horizontalPadding||0,p=a.verticalPadding||0;return{width:(a.width||0)+h*2+(a.showTheme?2:0)+"px",paddingLeft:h+"px",paddingRight:h+"px",paddingTop:p+"px",paddingBottom:p+"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),m=h=>h.preventDefault();return s.onMounted(async()=>{await s.nextTick(),f.value&&f.value.addEventListener("dragstart",m)}),s.onUnmounted(()=>{f.value&&f.value.removeEventListener("dragstart",m)}),Object.assign({localData:o,localConfig:a,rootRef:d,dragBarRef:b,dragBlockRef:f,handler:c,wrapperStyles:g,thumbStyles:w,imageBlockStyles:l,imageStyles:E,hasDisplayImageState:_,hasDisplayThumbImageState:D,hasDisplayWrapperState:B},{reset:c.resetData,clear:c.clearData,refresh:c.refresh,close:c.close})},ee.components=Object.assign({CloseIcon:ae,RefreshIcon:ce,LoadingIcon:oe,ArrowsIcon:be},ee.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=M(ee,mt,vt,!1,bt,null,null,null);function bt(e){for(let n in xe)this[n]=xe[n]}var te=function(){return _t.exports}();te.name="gocaptcha-rotate",te.install=function(e){e.component("gocaptcha-rotate",te)};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=M(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`}})])},nt=[],Kt="";const _e={};var st=M(ve,tt,nt,!1,at,"30853052",null,null);function at(e){for(let n in _e)this[n]=_e[n]}var be=function(){return st.exports}();const ye=()=>({thumbX:0,thumbY:0,thumbWidth:0,thumbHeight:0,image:"",thumb:""});function ct(e,n,t,i,u,v,c,l,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 b=_=>{if(!U(l.value,_))return;const D=_.touches&&_.touches[0],B=c.value.offsetLeft,m=u.value.offsetWidth,h=c.value.offsetWidth,p=m-h,C=v.value.offsetWidth,W=v.value.offsetLeft,A=m-C,O=(m-(C+W))/p;let X=!1,L=null,q=0,T=0;D?q=D.pageX-B:q=_.clientX-B;const F=k=>{X=!0;const Y=k.touches&&k.touches[0];let z=0;Y?z=Y.pageX-q:z=k.clientX-q;let Ht=W+z*O;if(z>=p){d.dragLeft=p,d.thumbLeft=T=A;return}if(z<=0){d.dragLeft=0,d.thumbLeft=T=W;return}d.dragLeft=z,d.thumbLeft=T=Ht,n.move&&n.move(T,e.thumbY||0),k.cancelBubble=!0,k.preventDefault()},j=k=>{!U(l.value,k)||($(),X&&(X=!1,!(T<0)&&(n.confirm&&n.confirm({x:parseInt(T.toString()),y:e.thumbY||0},()=>{r()}),k.cancelBubble=!0,k.preventDefault())))},R=k=>{L=k},I=()=>{L=null},N=k=>{!L||(j(L),$())},y=t.scope,x=y?i.value:l.value,S=y?i.value:document.body,$=()=>{S.removeEventListener("mousemove",F,!1),S.removeEventListener("touchmove",F,{passive:!1}),x.removeEventListener("mouseup",j,!1),x.removeEventListener("mouseenter",I,!1),x.removeEventListener("mouseleave",R,!1),x.removeEventListener("touchend",j,!1),S.removeEventListener("mouseleave",j,!1),S.removeEventListener("mouseup",N,!1),d.isFreeze=!1};d.isFreeze=!0,S.addEventListener("mousemove",F,!1),S.addEventListener("touchmove",F,{passive:!1}),x.addEventListener("mouseup",j,!1),x.addEventListener("mouseenter",I,!1),x.addEventListener("mouseleave",R,!1),x.addEventListener("touchend",j,!1),S.addEventListener("mouseleave",j,!1),S.addEventListener("mouseup",N,!1)},f=_=>(g(),_.cancelBubble=!0,_.preventDefault(),!1),o=_=>(w(),_.cancelBubble=!0,_.preventDefault(),!1),g=()=>{n&&n.close&&n.close(),r()},w=()=>{n&&n.refresh&&n.refresh(),r()},r=()=>{d.dragLeft=0,d.thumbLeft=e.thumbX||0};return{state:d,dragEvent:b,closeEvent:f,refreshEvent:o,resetData:r,clearData:()=>{a&&a(),r()},refresh:w,close:g}}const J={};J.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:ye}},J.setup=(e,n)=>{const t=e,{data:i,events:u,config:v}=t,c=s.reactive({...ye(),...s.toRaw(i)}),l=s.reactive({...s.toRaw(u)}),a=s.reactive({...me(),...s.toRaw(v)});s.watch(()=>t.data,(p,C)=>{Object.assign(c,p)},{deep:!0}),s.watch(()=>t.events,(p,C)=>{Object.assign(l,p)},{deep:!0}),s.watch(()=>t.config,(p,C)=>{Object.assign(a,p)},{deep:!0});const d=s.ref(null),b=s.ref(null),f=s.ref(null),o=s.ref(null),g=s.ref(null),w=ct(c,l,a,d,f,g,o,b,()=>{c.thumb="",c.image="",c.thumbX=0,c.thumbY=0,c.thumbWidth=0,c.thumbHeight=0}),r=s.computed(()=>{const p=a.horizontalPadding||0,C=a.verticalPadding||0;return{width:(a.width||0)+p*2+(a.showTheme?2:0)+"px",paddingLeft:p+"px",paddingRight:p+"px",paddingTop:C+"px",paddingBottom:C+"px"}}),E=s.computed(()=>({width:c.thumbWidth+"px",height:c.thumbHeight+"px",top:c.thumbY+"px",left:w.state.thumbLeft+"px"})),_=s.computed(()=>({width:a.width+"px",height:a.height+"px"})),D=s.computed(()=>c.image&&c.image.length>0),B=s.computed(()=>c.thumb&&c.thumb.length>0),m=s.computed(()=>(a.width||0)>0||(a.height||0)>0),h=p=>p.preventDefault();return s.onMounted(async()=>{await s.nextTick(),o.value&&o.value.addEventListener("dragstart",h)}),s.onUnmounted(()=>{o.value&&o.value.removeEventListener("dragstart",h)}),Object.assign({localData:c,localConfig:a,rootRef:d,dragBarRef:b,containerRef:f,dragBlockRef:o,tileRef:g,handler:w,wrapperStyles:r,thumbStyles:E,imageStyles:_,hasDisplayImageState:D,hasDisplayThumbImageState:B,hasDisplayWrapperState:m},{reset:w.resetData,clear:w.clearData,refresh:w.refresh,close:w.close})},J.components=Object.assign({CloseIcon:ae,RefreshIcon:ce,LoadingIcon:oe,ArrowsIcon:be},J.components);var ot=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)])])])])},it=[],Qt="";const we={};var lt=M(J,ot,it,!1,rt,null,null,null);function rt(e){for(let n in we)this[n]=we[n]}var K=function(){return lt.exports}();K.name="gocaptcha-slide",K.install=function(e){e.component("gocaptcha-slide",K)};const Ee=()=>({width:300,height:220,verticalPadding:16,horizontalPadding:12,showTheme:!0,title:"\u8BF7\u62D6\u62FD\u8D34\u56FE\u5B8C\u6210\u62FC\u56FE",iconSize:22,scope:!0}),xe=()=>({thumbX:0,thumbY:0,thumbWidth:0,thumbHeight:0,image:"",thumb:""});function ut(e,n,t,i,u,v,c){const l=s.reactive({x:e.thumbX||0,y:e.thumbY||0,isFreeze:!1});s.watch(()=>e,(r,E)=>{l.isFreeze||(l.x=r.thumbX||0,l.y=r.thumbY||0)},{deep:!0});const a=r=>{if(!U(u.value,r))return;const E=r.touches&&r.touches[0],_=v.value.offsetLeft,D=v.value.offsetTop,B=u.value.offsetWidth,m=u.value.offsetHeight,h=v.value.offsetWidth,p=v.value.offsetHeight,C=B-h,W=m-p;let A=!1,H=null,O=0,X=0,L=0,q=0;E?(O=E.pageX-_,X=E.pageY-D):(O=r.clientX-_,X=r.clientY-D);const T=$=>{A=!0;const k=$.touches&&$.touches[0];let Y=0,z=0;k?(Y=k.pageX-O,z=k.pageY-X):(Y=$.clientX-O,z=$.clientY-X),Y<=0&&(Y=0),z<=0&&(z=0),Y>=C&&(Y=C),z>=W&&(z=W),l.x=Y,l.y=z,L=Y,q=z,n.move&&n.move(Y,z),$.cancelBubble=!0,$.preventDefault()},F=$=>{!U(u.value,$)||(S(),A&&(A=!1,!(L<0||q<0)&&(n.confirm&&n.confirm({x:L,y:q},()=>{g()}),$.cancelBubble=!0,$.preventDefault())))},j=$=>{H=$},R=()=>{H=null},I=$=>{!H||(F(H),S())},N=t.scope,y=N?i.value:u.value,x=N?i.value:document.body,S=()=>{x.removeEventListener("mousemove",T,!1),x.removeEventListener("touchmove",T,{passive:!1}),y.removeEventListener("mouseup",F,!1),y.removeEventListener("mouseenter",R,!1),y.removeEventListener("mouseleave",j,!1),y.removeEventListener("touchend",F,!1),x.removeEventListener("mouseleave",F,!1),x.removeEventListener("mouseup",I,!1),l.isFreeze=!1};l.isFreeze=!0,x.addEventListener("mousemove",T,!1),x.addEventListener("touchmove",T,{passive:!1}),y.addEventListener("mouseup",F,!1),y.addEventListener("mouseenter",R,!1),y.addEventListener("mouseleave",j,!1),y.addEventListener("touchend",F,!1),x.addEventListener("mouseleave",F,!1),x.addEventListener("mouseup",I,!1)},d=r=>(f(),r.cancelBubble=!0,r.preventDefault(),!1),b=r=>(o(),r.cancelBubble=!0,r.preventDefault(),!1),f=()=>{n&&n.close&&n.close(),g()},o=()=>{n&&n.refresh&&n.refresh(),g()},g=()=>{l.x=e.thumbX||0,l.y=e.thumbY||0};return{state:l,dragEvent:a,closeEvent:d,refreshEvent:b,resetData:g,clearData:()=>{c&&c(),g()},refresh:o,close:f}}const Q={};Q.props={config:{key:"config",required:!1,type:null,default:Ee},events:{key:"events",required:!1,type:null,default:()=>({})},data:{key:"data",required:!1,type:null,default:xe}},Q.setup=(e,n)=>{const t=e,{data:i,events:u,config:v}=t,c=s.reactive({...xe(),...s.toRaw(i)}),l=s.reactive({...s.toRaw(u)}),a=s.reactive({...Ee(),...s.toRaw(v)});s.watch(()=>t.data,(m,h)=>{Object.assign(c,m)},{deep:!0}),s.watch(()=>t.events,(m,h)=>{Object.assign(l,m)},{deep:!0}),s.watch(()=>t.config,(m,h)=>{Object.assign(a,m)},{deep:!0});const d=s.ref(null),b=s.ref(null),f=s.ref(null),o=ut(c,l,a,d,b,f,()=>{c.thumb="",c.image="",c.thumbX=0,c.thumbY=0,c.thumbWidth=0,c.thumbHeight=0}),g=s.computed(()=>{const m=a.horizontalPadding||0,h=a.verticalPadding||0;return{width:(a.width||0)+m*2+(a.showTheme?2:0)+"px",paddingLeft:m+"px",paddingRight:m+"px",paddingTop:h+"px",paddingBottom:h+"px"}}),w=s.computed(()=>({width:c.thumbWidth+"px",height:c.thumbHeight+"px",top:o.state.y+"px",left:o.state.x+"px"})),r=s.computed(()=>({width:a.width+"px",height:a.height+"px"})),E=s.computed(()=>c.image&&c.image.length>0),_=s.computed(()=>c.thumb&&c.thumb.length>0),D=s.computed(()=>(a.width||0)>0||(a.height||0)>0),B=m=>m.preventDefault();return s.onMounted(async()=>{await s.nextTick(),f.value&&f.value.addEventListener("dragstart",B)}),s.onUnmounted(()=>{f.value&&f.value.removeEventListener("dragstart",B)}),Object.assign({localData:c,localConfig:a,rootRef:d,containerRef:b,tileRef:f,handler:o,wrapperStyles:g,thumbStyles:w,imageStyles:r,hasDisplayImageState:E,hasDisplayThumbImageState:_,hasDisplayWrapperState:D},{reset:o.resetData,clear:o.clearData,refresh:o.refresh,close:o.close})},Q.components=Object.assign({LoadingIcon:oe,CloseIcon:ae,RefreshIcon:ce},Q.components);var dt=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)])])},ht=[],Zt="";const Ce={};var ft=M(Q,dt,ht,!1,pt,null,null,null);function pt(e){for(let n in Ce)this[n]=Ce[n]}var Z=function(){return ft.exports}();Z.name="gocaptcha-slide-region",Z.install=function(e){e.component("gocaptcha-slide-region",Z)};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}),Se=()=>({angle:0,image:"",thumb:"",thumbSize:0});function gt(e,n,t,i,u,v,c){const l=s.reactive({dragLeft:0,thumbAngle:e.angle||0,isFreeze:!1});s.watch(()=>e,(r,E)=>{l.isFreeze||(l.thumbAngle=r.angle||0)},{deep:!0});const a=r=>{if(!U(v.value,r))return;const E=r.touches&&r.touches[0],_=u.value.offsetLeft,D=v.value.offsetWidth,B=u.value.offsetWidth,m=D-B,h=360,p=(h-e.angle)/m;let C=0,W=!1,A=null,H=0,O=0;E?H=E.pageX-_:H=r.clientX-_;const X=y=>{W=!0;const x=y.touches&&y.touches[0];let S=0;if(x?S=x.pageX-H:S=y.clientX-H,C=e.angle+S*p,S>=m){l.dragLeft=m,l.thumbAngle=O=h;return}if(S<=0){l.dragLeft=0,l.thumbAngle=O=e.angle;return}l.dragLeft=S,l.thumbAngle=O=C,n.rotate&&n.rotate(C),y.cancelBubble=!0,y.preventDefault()},L=y=>{!U(v.value,y)||(N(),W&&(W=!1,!(O<0)&&(n.confirm&&n.confirm(parseInt(O.toString()),()=>{g()}),y.cancelBubble=!0,y.preventDefault())))},q=y=>{A=y},T=()=>{A=null},F=y=>{!A||(L(A),N())},j=t.scope,R=j?i.value:v.value,I=j?i.value:document.body,N=()=>{I.removeEventListener("mousemove",X,!1),I.removeEventListener("touchmove",X,{passive:!1}),R.removeEventListener("mouseup",L,!1),R.removeEventListener("mouseenter",T,!1),R.removeEventListener("mouseleave",q,!1),R.removeEventListener("touchend",L,!1),I.removeEventListener("mouseleave",L,!1),I.removeEventListener("mouseup",F,!1),l.isFreeze=!1};l.isFreeze=!0,I.addEventListener("mousemove",X,!1),I.addEventListener("touchmove",X,{passive:!1}),R.addEventListener("mouseup",L,!1),R.addEventListener("mouseenter",T,!1),R.addEventListener("mouseleave",q,!1),R.addEventListener("touchend",L,!1),I.addEventListener("mouseleave",L,!1),I.addEventListener("mouseup",F,!1)},d=r=>(f(),r.cancelBubble=!0,r.preventDefault(),!1),b=r=>(o(),r.cancelBubble=!0,r.preventDefault(),!1),f=()=>{n&&n.close&&n.close(),g()},o=()=>{n&&n.refresh&&n.refresh(),g()},g=()=>{l.dragLeft=0,l.thumbAngle=e.angle};return{state:l,dragEvent:a,closeEvent:d,refreshEvent:b,resetData:g,clearData:()=>{c&&c(),g()},refresh:o,close:f}}const ee={};ee.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:Se}},ee.setup=(e,n)=>{const t=e,{data:i,events:u,config:v}=t,c=s.reactive({...Se(),...s.toRaw(i)}),l=s.reactive({...s.toRaw(u)}),a=s.reactive({...ie(),...s.toRaw(v)});s.watch(()=>t.data,(h,p)=>{Object.assign(c,h)},{deep:!0}),s.watch(()=>t.events,(h,p)=>{Object.assign(l,h)},{deep:!0}),s.watch(()=>t.config,(h,p)=>{Object.assign(a,h)},{deep:!0});const d=s.ref(null),b=s.ref(null),f=s.ref(null),o=gt(c,l,a,d,f,b,()=>{c.thumb="",c.image="",c.angle=0}),g=s.computed(()=>{const h=a.horizontalPadding||0,p=a.verticalPadding||0;return{width:(a.width||0)+h*2+(a.showTheme?2:0)+"px",paddingLeft:h+"px",paddingRight:h+"px",paddingTop:p+"px",paddingBottom:p+"px"}}),w=s.computed(()=>({transform:`rotate(${o.state.thumbAngle}deg)`,...c.thumbSize>0?{width:c.thumbSize+"px",height:c.thumbSize+"px"}:{}})),r=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(()=>c.image&&c.image.length>0),D=s.computed(()=>c.thumb&&c.thumb.length>0),B=s.computed(()=>(a.width||0)>0||(a.height||0)>0),m=h=>h.preventDefault();return s.onMounted(async()=>{await s.nextTick(),f.value&&f.value.addEventListener("dragstart",m)}),s.onUnmounted(()=>{f.value&&f.value.removeEventListener("dragstart",m)}),Object.assign({localData:c,localConfig:a,rootRef:d,dragBarRef:b,dragBlockRef:f,handler:o,wrapperStyles:g,thumbStyles:w,imageBlockStyles:r,imageStyles:E,hasDisplayImageState:_,hasDisplayThumbImageState:D,hasDisplayWrapperState:B},{reset:o.resetData,clear:o.clearData,refresh:o.refresh,close:o.close})},ee.components=Object.assign({CloseIcon:ae,RefreshIcon:ce,LoadingIcon:oe,ArrowsIcon:be},ee.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 De={};var _t=M(ee,mt,vt,!1,bt,null,null,null);function bt(e){for(let n in De)this[n]=De[n]}var te=function(){return _t.exports}();te.name="gocaptcha-rotate",te.install=function(e){e.component("gocaptcha-rotate",te)};const Le={};Le.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 $e={};var Et=M(Le,yt,wt,!1,xt,"5511614f",null,null);function xt(e){for(let n in $e)this[n]=$e[n]}var Ct=function(){return Et.exports}();const ke={};ke.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=[],nn="";const Le={};var Lt=M(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 ze={};var Lt=M(ke,St,Dt,!1,$t,"3fd7b394",null,null);function $t(e){for(let n in ze)this[n]=ze[n]}var kt=function(){return Lt.exports}();const Be={};Be.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=[],sn="";const ke={};var Ft=M($e,zt,Bt,!1,Tt,"6c20e1c2",null,null);function Tt(e){for(let n in ke)this[n]=ke[n]}var Rt=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 Fe={};var Ft=M(Be,zt,Bt,!1,Tt,"6c20e1c2",null,null);function Tt(e){for(let n in Fe)this[n]=Fe[n]}var Rt=function(){return Ft.exports}();const Te={};Te.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=[],an="";const Be={};var Wt=M(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}),ne={};ne.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"}},ne.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"})),b=n.emit;function f(c){b("click-event",c)}return{type:i,title:u,btnClass:a,btnStyle:d,emitClickEvent:f}},ne.components=Object.assign({BtnDefaultIcon:Ct,BtnWarnIcon:kt,BtnErrorIcon:Rt,BtnSuccessIcon:jt},ne.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 Te={};var Yt=M(ne,Pt,Ot,!1,qt,null,null,null);function qt(e){for(let n in Te)this[n]=Te[n]}var se=function(){return Yt.exports}();se.name="gocaptcha-button",se.install=function(e){e.component("gocaptcha-button",se)};const At={install(e){G.install(e),K.install(e),Z.install(e),te.install(e),se.install(e)}};P.Button=se,P.Click=G,P.Rotate=te,P.Slide=K,P.SlideRegion=Z,P.default=At,Object.defineProperties(P,{__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 Re={};var Wt=M(Te,It,Mt,!1,Xt,"5a795cd4",null,null);function Xt(e){for(let n in Re)this[n]=Re[n]}var jt=function(){return Wt.exports}();const Ie=()=>({width:330,height:44,verticalPadding:12,horizontalPadding:16}),ne={};ne.props={config:{key:"config",required:!1,type:null,default:Ie},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"}},ne.setup=(e,n)=>{const t=e,{type:i,title:u,disabled:v,config:c}=s.toRefs(t),l=s.reactive({...Ie(),...s.toRaw(c)});s.watch(()=>t.config,(o,g)=>{Object.assign(l,o)},{deep:!0});const a=s.computed(()=>{const o=`gc-${i.value}`;return["go-captcha","gc-btn-block",o,v.value?"gc-disabled":""]}),d=s.computed(()=>({width:l.width+"px",height:l.height+"px",paddingLeft:l.horizontalPadding+"px",paddingRight:l.horizontalPadding+"px",paddingTop:l.verticalPadding+"px",paddingBottom:l.verticalPadding+"px"})),b=n.emit;function f(o){b("click-event",o)}return{type:i,title:u,btnClass:a,btnStyle:d,emitClickEvent:f}},ne.components=Object.assign({BtnDefaultIcon:Ct,BtnWarnIcon:kt,BtnErrorIcon:Rt,BtnSuccessIcon:jt},ne.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 Me={};var Yt=M(ne,Pt,Ot,!1,qt,null,null,null);function qt(e){for(let n in Me)this[n]=Me[n]}var se=function(){return Yt.exports}();se.name="gocaptcha-button",se.install=function(e){e.component("gocaptcha-button",se)};const At={install(e){G.install(e),K.install(e),Z.install(e),te.install(e),se.install(e)}};P.Button=se,P.Click=G,P.Rotate=te,P.Slide=K,P.SlideRegion=Z,P.default=At,Object.defineProperties(P,{__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-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}}
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-dot-color-color: #cedffe;--go-captcha-theme-dot-bg-color: #4e87ff;--go-captcha-theme-dot-border-color: #ffffff;--go-captcha-theme-default-color: #3e7cff;--go-captcha-theme-default-bg-color: #ecf5ff;--go-captcha-theme-default-border-color: #50a1ff;--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;-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-theme.gc-wrapper{background-color:var(--go-captcha-theme-bg-color)}.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{position:relative;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-border-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:var(--go-captcha-theme-dot-color-color);background:var(--go-captcha-theme-dot-bg-color);border:3px solid #f7f9fb;border-color:var(--go-captcha-theme-dot-border-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;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;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;justify-content:center;align-items:center}.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,9 +1,11 @@
1
1
  {
2
2
  "name": "go-captcha-vue",
3
- "version": "1.0.5",
3
+ "version": "1.0.6-beta",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
7
+ "email": "wengaolng@gmail.com",
8
+ "author": "Awen <wengaolng@gmail.com>",
7
9
  "description": "GoCaptcha for Vue, which implements click mode, slider mode, drag-drop mode and rotation mode.",
8
10
  "keywords": [
9
11
  "go-captcha-vue",
@@ -44,11 +46,11 @@
44
46
  ],
45
47
  "scripts": {
46
48
  "dev": "vite",
47
- "build": "run-p type-check \"build-only {@}\" --",
49
+ "build": "run-p type:check \"build:only {@}\" --",
48
50
  "build:only": "vite build && run-p tsd",
49
- "tsd": "vue-tsc --rootDir ./packages --declaration --emitDeclarationOnly --noEmit false --outDir ./dist",
51
+ "tsd": "vue-tsc --rootDir ./packages --declaration --emitDeclarationOnly --noEmit false --outDir ./dist -p tsconfig.json",
50
52
  "preview": "vite preview --port 5050",
51
- "type-check": "vue-tsc --noEmit -p tsconfig.json"
53
+ "type:check": "vue-tsc --skipLibCheck --noEmit -p tsconfig.json"
52
54
  },
53
55
  "peerDependencies": {
54
56
  "vue": "<3"
@@ -63,13 +65,13 @@
63
65
  "less-loader": "^12.2.0",
64
66
  "npm-run-all2": "^6.2.0",
65
67
  "ts-morph": "^22.0.0",
66
- "typescript": "~4.4.4",
68
+ "typescript": "^5",
67
69
  "unplugin-vue2-script-setup": "^0.7.1",
68
70
  "vite": "^2.6.14",
69
71
  "vite-plugin-vue2": "^1.9.0",
70
72
  "vue": "^2.7.14",
71
73
  "vue-demi": "^0.13.11",
72
74
  "vue-template-compiler": "^2.7.14",
73
- "vue-tsc": "^1"
75
+ "vue-tsc": "^2.2.2"
74
76
  }
75
77
  }