@rft-rc/recycle-ui 0.0.3-rc.1 → 0.0.3-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,7 @@ export declare const RcDescriptions: {
7
7
  column?: number | string;
8
8
  gap?: number | string;
9
9
  labelWidth?: number | string | "";
10
+ labelPosition?: "left" | "top";
10
11
  data?: Array<Record<string, any>>;
11
12
  keyMap?: {
12
13
  key: string;
@@ -15,6 +16,7 @@ export declare const RcDescriptions: {
15
16
  }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
16
17
  data: Array<Record<string, any>>;
17
18
  labelWidth: number | string | "";
19
+ labelPosition: "left" | "top";
18
20
  column: number | string;
19
21
  gap: number | string;
20
22
  }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
@@ -29,6 +31,7 @@ export declare const RcDescriptions: {
29
31
  column?: number | string;
30
32
  gap?: number | string;
31
33
  labelWidth?: number | string | "";
34
+ labelPosition?: "left" | "top";
32
35
  data?: Array<Record<string, any>>;
33
36
  keyMap?: {
34
37
  key: string;
@@ -37,6 +40,7 @@ export declare const RcDescriptions: {
37
40
  }> & Readonly<{}>, {}, {}, {}, {}, {
38
41
  data: Array<Record<string, any>>;
39
42
  labelWidth: number | string | "";
43
+ labelPosition: "left" | "top";
40
44
  column: number | string;
41
45
  gap: number | string;
42
46
  }>;
@@ -48,6 +52,7 @@ export declare const RcDescriptions: {
48
52
  column?: number | string;
49
53
  gap?: number | string;
50
54
  labelWidth?: number | string | "";
55
+ labelPosition?: "left" | "top";
51
56
  data?: Array<Record<string, any>>;
52
57
  keyMap?: {
53
58
  key: string;
@@ -56,6 +61,7 @@ export declare const RcDescriptions: {
56
61
  }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
57
62
  data: Array<Record<string, any>>;
58
63
  labelWidth: number | string | "";
64
+ labelPosition: "left" | "top";
59
65
  column: number | string;
60
66
  gap: number | string;
61
67
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
@@ -71,11 +77,13 @@ export declare const RcDescriptionsItem: {
71
77
  value?: any;
72
78
  labelWidth?: string | number;
73
79
  span?: number | string;
80
+ labelPosition?: "left" | "top";
74
81
  }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
75
82
  label: string | number;
76
83
  span: number | string;
77
84
  value: any;
78
85
  labelWidth: string | number;
86
+ labelPosition: "left" | "top";
79
87
  }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
80
88
  P: {};
81
89
  B: {};
@@ -88,11 +96,13 @@ export declare const RcDescriptionsItem: {
88
96
  value?: any;
89
97
  labelWidth?: string | number;
90
98
  span?: number | string;
99
+ labelPosition?: "left" | "top";
91
100
  }> & Readonly<{}>, {}, {}, {}, {}, {
92
101
  label: string | number;
93
102
  span: number | string;
94
103
  value: any;
95
104
  labelWidth: string | number;
105
+ labelPosition: "left" | "top";
96
106
  }>;
97
107
  __isFragment?: never;
98
108
  __isTeleport?: never;
@@ -102,11 +112,13 @@ export declare const RcDescriptionsItem: {
102
112
  value?: any;
103
113
  labelWidth?: string | number;
104
114
  span?: number | string;
115
+ labelPosition?: "left" | "top";
105
116
  }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
106
117
  label: string | number;
107
118
  span: number | string;
108
119
  value: any;
109
120
  labelWidth: string | number;
121
+ labelPosition: "left" | "top";
110
122
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
111
123
  $slots: {
112
124
  label?: (props: {}) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,YAAY,MAAM,aAAa,CAAC;AAMvC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAO/B;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAe,CAAC;AAC3C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmB,CAAC;AAEnD,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,YAAY,MAAM,aAAa,CAAC;AAMvC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAO/B;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAe,CAAC;AAC3C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmB,CAAC;AAEnD,eAAe,YAAY,CAAC"}
@@ -10,6 +10,8 @@ type __VLS_Props = {
10
10
  gap?: number | string;
11
11
  /** label 固定宽度,数字代表 px,也可直接传入 '120px' */
12
12
  labelWidth?: number | string | '';
13
+ /** label 位置,left 左侧,top 顶部 */
14
+ labelPosition?: 'left' | 'top';
13
15
  /** 直接通过数据渲染 */
14
16
  data?: Array<Record<string, any>>;
15
17
  /** data 的字段映射,如 { key: 'label', value: 'value' } */
@@ -24,6 +26,7 @@ type __VLS_Slots = {} & {
24
26
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
27
  data: Array<Record<string, any>>;
26
28
  labelWidth: number | string | "";
29
+ labelPosition: "left" | "top";
27
30
  column: number | string;
28
31
  gap: number | string;
29
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.vue"],"names":[],"mappings":"AA4HA,KAAK,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7C,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,kCAAkC;IAClC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC;IAClC,eAAe;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAClC,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAuHF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CA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AAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB/C,QAAA,MAAM,eAAe;UA1JZ,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBAJpB,MAAM,GAAG,MAAM,GAAG,EAAE;mBAEjB,MAAM,GAAG,KAAK;YANrB,MAAM,GAAG,MAAM;SAElB,MAAM,GAAG,MAAM;6EAuKrB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -4,6 +4,8 @@ type __VLS_Props = {
4
4
  labelWidth?: string | number;
5
5
  /** 跨越的列数,默认 1,可传字符串数字 */
6
6
  span?: number | string;
7
+ /** 标签位置,left 左侧,top 顶部。如果未设置,则继承父组件的 label-position */
8
+ labelPosition?: 'left' | 'top';
7
9
  };
8
10
  declare var __VLS_1: {}, __VLS_3: {};
9
11
  type __VLS_Slots = {} & {
@@ -16,6 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
16
18
  span: number | string;
17
19
  value: any;
18
20
  labelWidth: string | number;
21
+ labelPosition: "left" | "top";
19
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
23
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
21
24
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"item.vue.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/item.vue"],"names":[],"mappings":"AAkGA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,GAAG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AE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgCjD,QAAA,MAAM,eAAe;;;;;;;;;;;;cAlZR,OAAO;YACT,MAAM,GAAG,OAAO;eACb,MAAM,GAAG,MAAM;eAJf,iBAAiB;aACnB,OAAO,GAAG,OAAO;iBAIb,OAAO;iBACP,MAAM;iBACN,MAAM;6EAsZpB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -82,27 +82,27 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
82
82
  clear: () => any;
83
83
  "update:modelValue": (value: InputValue) => any;
84
84
  change: (value: InputValue) => any;
85
- blur: (event: FocusEvent) => any;
86
- compositionend: (event: CompositionEvent) => any;
87
- compositionstart: (event: CompositionEvent) => any;
88
- compositionupdate: (event: CompositionEvent) => any;
89
85
  focus: (event: FocusEvent) => any;
86
+ blur: (event: FocusEvent) => any;
90
87
  keydown: (event: KeyboardEvent) => any;
91
88
  mouseenter: (event: MouseEvent) => any;
92
89
  mouseleave: (event: MouseEvent) => any;
90
+ compositionstart: (event: CompositionEvent) => any;
91
+ compositionupdate: (event: CompositionEvent) => any;
92
+ compositionend: (event: CompositionEvent) => any;
93
93
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
94
94
  onInput?: ((value: InputValue) => any) | undefined;
95
95
  onClear?: (() => any) | undefined;
96
96
  "onUpdate:modelValue"?: ((value: InputValue) => any) | undefined;
97
97
  onChange?: ((value: InputValue) => any) | undefined;
98
- onBlur?: ((event: FocusEvent) => any) | undefined;
99
- onCompositionend?: ((event: CompositionEvent) => any) | undefined;
100
- onCompositionstart?: ((event: CompositionEvent) => any) | undefined;
101
- onCompositionupdate?: ((event: CompositionEvent) => any) | undefined;
102
98
  onFocus?: ((event: FocusEvent) => any) | undefined;
99
+ onBlur?: ((event: FocusEvent) => any) | undefined;
103
100
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
104
101
  onMouseenter?: ((event: MouseEvent) => any) | undefined;
105
102
  onMouseleave?: ((event: MouseEvent) => any) | undefined;
103
+ onCompositionstart?: ((event: CompositionEvent) => any) | undefined;
104
+ onCompositionupdate?: ((event: CompositionEvent) => any) | undefined;
105
+ onCompositionend?: ((event: CompositionEvent) => any) | undefined;
106
106
  }>, {
107
107
  name: string;
108
108
  size: InputSize;
@@ -114,7 +114,6 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
114
114
  modelValue: string | number | null;
115
115
  formatter: (value: string) => string;
116
116
  readonly: boolean;
117
- resize: "none" | "both" | "horizontal" | "vertical";
118
117
  clearable: boolean;
119
118
  showPassword: boolean;
120
119
  maxlength: number;
@@ -122,6 +121,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
122
121
  showWordLimit: boolean;
123
122
  rows: number;
124
123
  autosize: AutosizeConfig;
124
+ resize: "none" | "both" | "horizontal" | "vertical";
125
125
  prefixIcon: string;
126
126
  autocomplete: string;
127
127
  autofocus: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/input/index.vue"],"names":[],"mappings":"AA2tBA,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AACrD,KAAK,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAC/C,KAAK,cAAc,GAAG,OAAO,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACvE,KAAK,UAAU,GAAG,IAAI,GAAG,QAAQ,CAAC;AAElC,UAAU,KAAK;IACb,YAAY;IACZ,UAAU,CAAC,EAAE,UAAU,C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AAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,CAAC;AAmD5E,QAAA,MAAM,eAAe;IA9fnB,cAAc;;;;IAEd,aAAa;;;;;;;;;gBArxBA,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WAFzB,UAAU,EAAE;cAIR,OAAO;iBAEJ,OAAO;6EAsxCrB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ct={key:0,class:"rc-icon__unicode"},st=e.defineComponent({name:"rc-icon",__name:"index",props:{name:{},size:{default:16},color:{default:""},spin:{type:Boolean,default:!1},code:{default:""}},setup(t){const c=t,m=e.inject(we,{}),n=e.computed(()=>(m==null?void 0:m.iconClass)||"iconfont"),h=e.computed(()=>c.name||""),g=e.computed(()=>typeof c.size=="number"?`${c.size}px`:c.size||"16px"),f=e.computed(()=>({fontSize:g.value,color:c.color||void 0,lineHeight:1,fontFamily:(m==null?void 0:m.iconClass)||"iconfont"})),d=e.computed(()=>{const r=c.code;if(r==null||r===""||r===0)return"";if(typeof r=="number")return String.fromCharCode(r);const v=String(r).replace(/^0x/i,""),E=parseInt(v,16);return Number.isNaN(E)?"":String.fromCharCode(E)});return e.onMounted(()=>{if(typeof window>"u")return;const r=m&&m.iconCssUrl||Fe.iconCssUrl;if(!r)return;const v=`link[rel="stylesheet"][data-rcui-icon="true"][href="${r}"]`;if(!document.head.querySelector(v)){const B=document.createElement("link");B.rel="stylesheet",B.href=r,B.setAttribute("data-rcui-icon","true"),document.head.appendChild(B)}}),(r,v)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["rc-icon",[n.value,h.value,{"rc-icon--spin":t.spin}]]),style:e.normalizeStyle(f.value),"aria-hidden":"true"},[d.value?(e.openBlock(),e.createElementBlock("span",ct,e.toDisplayString(d.value),1)):e.createCommentVNode("",!0)],6))}}),j=(t,c)=>{const m=t.__vccOpts||t;for(const[n,h]of c)m[n]=h;return m},W=j(st,[["__scopeId","data-v-3857a892"]]),it=["disabled"],ut={key:0,class:"rc-button__spinner"},dt={key:0,class:"rc-button__icon rc-button__icon--prefix"},ft={key:2,class:"rc-button__icon rc-button__icon--suffix"},mt=e.defineComponent({__name:"index",props:{type:{default:"default"},size:{default:"medium"},mode:{default:void 0},block:{type:Boolean,default:!1},label:{default:""},round:{type:[Number,String,Boolean],default:6},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},preIcon:{default:""},suffixIcon:{default:""}},emits:["click"],setup(t,{emit:c}){const m=t,n=c,h=f=>{!m.disabled&&!m.loading&&n("click",f)},g=e.computed(()=>{const f=m.round;return typeof f=="boolean"?f?"999px":"6px":typeof f=="number"?`${f}px`:String(f)});return(f,d)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["rc-button",[`rc-button--${t.type}`,`rc-button--${t.size}`,t.mode?`rc-button--${t.mode}`:"",{"is-block":t.block,"is-disabled":t.disabled,"is-loading":t.loading}]]),style:e.normalizeStyle({borderRadius:g.value}),disabled:t.disabled||t.loading,onClick:h},[t.loading?(e.openBlock(),e.createElementBlock("span",ut)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.preIcon||f.$slots.preIcon?(e.openBlock(),e.createElementBlock("span",dt,[e.renderSlot(f.$slots,"preIcon",{},()=>[t.preIcon?(e.openBlock(),e.createBlock(W,{key:0,name:t.preIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],64)),e.renderSlot(f.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0),!t.loading&&(t.suffixIcon||f.$slots.suffixIcon)?(e.openBlock(),e.createElementBlock("span",ft,[e.renderSlot(f.$slots,"suffixIcon",{},()=>[t.suffixIcon?(e.openBlock(),e.createBlock(W,{key:0,name:t.suffixIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],14,it))}}),le=j(mt,[["__scopeId","data-v-4c6a5e4f"]]);le.name="rc-button";function Ae(t){return t.component(le.name,le),t}const vt={class:"rc-desc-item__value"},pt=e.defineComponent({name:"rc-descriptions-item",__name:"item",props:{label:{default:""},value:{default:""},labelWidth:{default:""},span:{default:1}},setup(t){const c=t;e.inject("rcDescItemWidth",void 0),e.inject("rcDescSingleWidth",""),e.inject("rcDescGap","0px");const m=e.inject("rcDescGapPx",0),n=e.inject("rcDescColCount",1),h=e.inject("rcDescLabelWidth",""),g=e.computed(()=>{const r=typeof c.span=="string"?parseInt(c.span,10):c.span,v=typeof(n==null?void 0:n.value)=="number"?n.value:n,E=!Number.isNaN(r)&&r>0?r:1;return Math.min(E,v||1)}),f=e.computed(()=>{const r=typeof(n==null?void 0:n.value)=="number"?n.value:n,v=typeof(m==null?void 0:m.value)=="number"?m.value:m,E=g.value;if(!r||r<=1||E>=r)return"100%";const B=(r-1)*v,_=(E-1)*v;return`calc((100% - ${B}px) * ${E} / ${r} + ${_}px)`}),d=e.computed(()=>{const r=typeof(h==null?void 0:h.value)=="string"?h.value:h,v=c.labelWidth!==""?c.labelWidth:r||"";return v?{width:typeof v=="number"?`${v}px`:String(v),flex:"0 0 auto"}:{}});return(r,v)=>(e.openBlock(),e.createElementBlock("div",{class:"rc-desc-item",style:e.normalizeStyle({width:f.value,flex:`0 0 ${f.value}`})},[e.createElementVNode("div",{class:"rc-desc-item__label",style:e.normalizeStyle(d.value)},[e.renderSlot(r.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)],4),e.createElementVNode("div",vt,[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)],!0)])],4))}}),ve=j(pt,[["__scopeId","data-v-970d0b99"]]),yt={class:"rc-descriptions"},ht={key:0,class:"rc-descriptions__title"},gt=e.defineComponent({name:"rc-descriptions",__name:"index",props:{title:{},column:{default:2},gap:{default:4},labelWidth:{default:""},data:{default:()=>[]},keyMap:{}},setup(t){const c=t,m=e.ref(null),n=e.computed(()=>typeof c.gap=="number"?`${c.gap}px`:String(c.gap)),h=e.computed(()=>{const v=typeof c.column=="string"?Number.parseInt(c.column,10):c.column??1;return!Number.isNaN(v)&&v>0?v:1}),g=e.ref("100%"),f=e.ref("100%");e.watchEffect(()=>{const v=h.value;if(v<=1)g.value="100%",f.value="100%";else{const E=typeof c.gap=="number"?c.gap:parseFloat(String(c.gap))||0,_=`calc((100% - ${(v-1)*E}px) / ${v})`;f.value=_,g.value=_}}),e.provide("rcDescItemWidth",g),e.provide("rcDescSingleWidth",f),e.provide("rcDescColCount",h),e.provide("rcDescGapPx",e.computed(()=>typeof c.gap=="number"?c.gap:parseFloat(String(c.gap))||0));const d=e.computed(()=>c.labelWidth===""||c.labelWidth===void 0?"":typeof c.labelWidth=="number"?`${c.labelWidth}px`:String(c.labelWidth));e.provide("rcDescLabelWidth",d),e.provide("rcDescGap",e.computed(()=>typeof c.gap=="number"?`${c.gap}px`:String(c.gap)));const r=e.computed(()=>{var B,_,V;const v=((B=c.keyMap)==null?void 0:B.key)??"label",E=((_=c.keyMap)==null?void 0:_.value)??"value";return(V=c.data)!=null&&V.length?c.data.map(S=>({label:S==null?void 0:S[v],value:S==null?void 0:S[E]})):[]});return(v,E)=>(e.openBlock(),e.createElementBlock("div",yt,[v.$slots.title||t.title?(e.openBlock(),e.createElementBlock("div",ht,[e.renderSlot(v.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-descriptions__body",style:e.normalizeStyle({gap:n.value}),ref_key:"wrapEl",ref:m},[r.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(B,_)=>(e.openBlock(),e.createBlock(ve,{key:_,label:B.label,value:B.value,"label-width":t.labelWidth},null,8,["label","value","label-width"]))),128)):e.renderSlot(v.$slots,"default",{key:1},void 0,!0)],4)]))}}),_e=j(gt,[["__scopeId","data-v-5fcaa235"]]);_e.name="rc-descriptions";ve.name="rc-descriptions-item";function Ye(t){return t.component(_e.name,_e),t.component("RcDescriptions",_e),t.component(ve.name,ve),t.component("RcDescriptionsItem",ve),t}const nt=_e,at=ve,kt={class:"rc-card__title"},_t={class:"rc-card__title-text"},bt={key:0,class:"rc-card__status"},Ct={key:1,class:"rc-card__divider"},Bt={key:2,class:"rc-card__action"},wt=e.defineComponent({name:"rc-card",__name:"index",props:{color:{default:"var(--rc-white)"},topBgColor:{default:"rgba(29, 133, 252, 0.05)"},title:{default:""},status:{default:""},statusColor:{default:"var(--rc-primary)"},round:{default:8},bordered:{type:Boolean,default:!1},elevation:{default:2},padding:{default:"16px"},gap:{default:12},width:{default:"100%"},height:{default:""}},setup(t){const c=t,m=e.computed(()=>{const d=typeof c.round=="boolean"?c.round?"12px":"0":typeof c.round=="number"?`${c.round}px`:String(c.round);return{backgroundColor:c.color||"var(--rc-white)",borderRadius:d,boxShadow:f(c.elevation),width:g(c.width),height:g(c.height)}}),n=e.computed(()=>c.padding||"16px"),h=e.computed(()=>typeof c.gap=="number"?`${c.gap}px`:String(c.gap));function g(d){return d==null||d===""?"":typeof d=="number"?`${d}px`:String(d)}function f(d){if(!d||d<=0)return"none";const r=4*d;return`0 ${Math.round(r/2)}px ${r}px rgba(0,0,0,0.06), 0 ${Math.round(r/4)}px ${Math.round(r/2)}px rgba(0,0,0,0.04)`}return(d,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-card",[{"rc-card--bordered":t.bordered}]]),style:e.normalizeStyle(m.value)},[d.$slots.title||t.title||d.$slots.status||t.status?(e.openBlock(),e.createElementBlock("div",{key:0,class:"rc-card__top",style:e.normalizeStyle({backgroundColor:t.topBgColor||"rgba(29, 133, 252, 0.05)"})},[e.createElementVNode("div",kt,[e.renderSlot(d.$slots,"title",{},()=>[e.createElementVNode("span",_t,e.toDisplayString(t.title),1)],!0)]),d.$slots.status||t.status?(e.openBlock(),e.createElementBlock("div",bt,[e.renderSlot(d.$slots,"status",{},()=>[e.createElementVNode("span",{class:"rc-card__status-text",style:e.normalizeStyle({color:t.statusColor||"var(--rc-primary)"})},e.toDisplayString(t.status),5)],!0)])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-card__body",style:e.normalizeStyle({padding:n.value,gap:h.value})},[e.renderSlot(d.$slots,"content",{},()=>[e.renderSlot(d.$slots,"default",{},void 0,!0)],!0)],4),d.$slots.action?(e.openBlock(),e.createElementBlock("div",Ct)):e.createCommentVNode("",!0),d.$slots.action?(e.openBlock(),e.createElementBlock("div",Bt,[e.renderSlot(d.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),be=j(wt,[["__scopeId","data-v-a7b95214"]]);be.name="rc-card";const xt="RcCard";function Pe(t){return t.component(be.name,be),t.component(xt,be),t}const Dt={key:0,class:"rc-toast__mask"},Vt={class:"rc-toast__content"},$t={key:0,class:"rc-toast__spinner"},Et={key:1,class:"rc-toast__icon rc-toast__icon--success"},St={key:2,class:"rc-toast__icon rc-toast__icon--fail"},Nt={class:"rc-toast__text"},Mt=e.defineComponent({__name:"index",props:{message:{default:""},type:{default:"text"},duration:{default:2e3},mask:{type:Boolean,default:!1},onAfterLeave:{}},setup(t,{expose:c}){const m=t,n=e.ref(!0);let h;function g(){h&&(clearTimeout(h),h=null)}function f(){g(),n.value=!1}return c({close:f}),e.onMounted(()=>{m.duration&&m.duration>0&&(h=setTimeout(()=>{f()},m.duration))}),e.onUnmounted(()=>{g()}),(d,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"rc-toast-fade",onAfterLeave:t.onAfterLeave},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-toast",[`rc-toast--${t.type}`]])},[t.mask?(e.openBlock(),e.createElementBlock("div",Dt)):e.createCommentVNode("",!0),e.createElementVNode("div",Vt,[t.type==="loading"?(e.openBlock(),e.createElementBlock("div",$t)):t.type==="success"?(e.openBlock(),e.createElementBlock("div",Et)):t.type==="fail"?(e.openBlock(),e.createElementBlock("div",St)):e.createCommentVNode("",!0),e.createElementVNode("div",Nt,e.toDisplayString(t.message),1)])],2)):e.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])])),e.renderSlot(d.$slots,"default",{},void 0,!0)],64))}}),Ce=j(Mt,[["__scopeId","data-v-d234c9c5"]]);let fe=null,pe=null;function Ze(){fe&&(fe.unmount(),fe=null),pe&&(document.body.removeChild(pe),pe=null)}function It(t){const c=typeof t=="string"?{message:t}:t||{};Ze(),pe=document.createElement("div"),document.body.appendChild(pe);const m={message:c.message,type:c.type??"text",duration:c.duration??2e3,mask:c.mask??!1,onAfterLeave:()=>{var n;Ze(),(n=c.onClose)==null||n.call(c)}};return fe=e.createApp(Ce,m),fe.mount(pe),{close:ot}}function ot(){var t,c,m;fe&&((m=(c=(t=fe._instance)==null?void 0:t.exposed)==null?void 0:c.close)==null||m.call(c))}Ce.name="rc-toast";function et(t){return t.component(Ce.name,Ce),t}const Tt={class:"rc-message",role:"alert","aria-live":"polite"},Rt={class:"rc-message__content"},zt=e.defineComponent({__name:"index",setup(t,{expose:c}){const m=e.reactive([]);let n=1;function h(f){const d=m.findIndex(r=>r.id===f);d>=0&&m.splice(d,1)}function g(f,d,r){const v=n++;return m.push({id:v,type:f,content:d,duration:r}),r>0&&window.setTimeout(()=>h(v),r),v}return c({add:g,remove:h}),(f,d)=>(e.openBlock(),e.createElementBlock("div",Tt,[e.createVNode(e.TransitionGroup,{name:"rc-message-fade",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,r=>(e.openBlock(),e.createElementBlock("div",{key:r.id,class:e.normalizeClass(["rc-message__item",`rc-message--${r.type}`])},[e.createElementVNode("span",Rt,e.toDisplayString(r.content),1)],2))),128))]),_:1})]))}}),Ft=j(zt,[["__scopeId","data-v-87811df0"]]);let de=null,ue=null;function Lt(){var c;if(de&&ue)return;de=document.createElement("div"),document.body.appendChild(de);const t=e.createVNode(Ft,{});e.render(t,de),ue=(c=t.component)==null?void 0:c.exposed}function me(t,c,m){var h;Lt();const n=typeof m=="number"?m:t==="loading"?0:2e3;return(h=ue==null?void 0:ue.add)==null?void 0:h.call(ue,t,c,n)}const lt={open(t){return me(t.type||"info",t.content,t.duration)},info(t,c){return me("info",t,c)},success(t,c){return me("success",t,c)},warning(t,c){return me("warning",t,c)},error(t,c){return me("error",t,c)},loading(t,c){return me("loading",t,c)},destroy(){de&&(e.render(null,de),de.remove(),de=null,ue=null)}};function We(t){return t.config.globalProperties.$message=lt,t}W.name="rc-icon";function Oe(t){return t.component(W.name,W),t.component("RcIcon",W),t}const At={class:"rc-popup__content"},Yt=e.defineComponent({name:"rc-popup",__name:"index",props:{modelValue:{type:Boolean,default:!1},position:{default:"center"},overlay:{type:Boolean,default:!0},overlayClass:{default:""},overlayStyle:{default:void 0},closeable:{type:Boolean,default:!1},closeIconPosition:{default:"top-right"},closeIcon:{default:"icon_close"},round:{type:Boolean,default:!1},popupStyle:{default:void 0},closeOnClickOverlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0}},emits:["update:modelValue","open","close","click-overlay"],setup(t,{expose:c,emit:m}){const n=t,h=m,g=e.ref(),f=e.ref(n.modelValue);e.watch(()=>n.modelValue,s=>{f.value=s,s?(h("open"),n.lockScroll&&E()):(h("close"),n.lockScroll&&B())},{immediate:!0}),e.watch(f,s=>{s!==n.modelValue&&h("update:modelValue",s)});const d=e.computed(()=>`rc-popup-slide-${n.position}`),r=e.computed(()=>({...n.popupStyle||{}}));let v=!1;function E(){v||(v=!0,document.body.style.overflow="hidden")}function B(){v&&(v=!1,document.body.style.overflow="")}function _(){h("click-overlay"),n.closeOnClickOverlay&&S()}function V(){S()}function S(){f.value=!1}function x(){f.value=!0}return e.onUnmounted(()=>{B()}),c({open:x,close:S,visible:f}),(s,Q)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"rc-popup-fade"},{default:e.withCtx(()=>[f.value&&n.overlay?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-popup__overlay",{"rc-popup__overlay--transparent":n.overlayClass==="transparent"}]),style:e.normalizeStyle(n.overlayStyle),onClick:_},null,6)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:d.value},{default:e.withCtx(()=>[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"popupRef",ref:g,class:e.normalizeClass(["rc-popup",[`rc-popup--${t.position}`,{"rc-popup--round":t.round}]]),style:e.normalizeStyle(r.value),onClick:Q[0]||(Q[0]=e.withModifiers(()=>{},["stop"]))},[t.closeable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-popup__close",`rc-popup__close--${t.closeIconPosition}`]),onClick:V},[e.createVNode(W,{name:t.closeIcon,class:"rc-popup__close-icon"},null,8,["name"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",At,[e.renderSlot(s.$slots,"default",{},void 0,!0)])],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),ye=j(Yt,[["__scopeId","data-v-f1696784"]]);ye.name="rc-popup";const Pt="RcPopup";function He(t){return t.component(ye.name,ye),t.component(Pt,ye),t}const Wt={key:0,class:"rc-calendar__header"},Ot={class:"rc-calendar__header-title"},Ht={key:1,class:"rc-calendar__shortcuts"},Ut={class:"rc-calendar__shortcuts-scroll"},jt=["onClick"],Kt={class:"rc-calendar__month-title"},Gt={class:"rc-calendar__weekdays"},qt={class:"rc-calendar__days"},Jt=["onClick"],Qt={class:"rc-calendar__day-content"},Xt={class:"rc-calendar__day-text"},Zt={key:0,class:"rc-calendar__day-bottom"},en={key:2,class:"rc-calendar__footer"},tn={key:0,class:"rc-calendar__month-picker-overlay"},nn={class:"rc-calendar__month-picker"},an={class:"rc-calendar__month-picker-header"},on={class:"rc-calendar__month-picker-title"},ln={key:0},rn={key:0,class:"rc-calendar__year-picker-content"},cn={class:"rc-calendar__year-picker-grid"},sn=["onClick"],un={key:1,class:"rc-calendar__month-picker-content"},dn=["onClick"],Ie=48,J=3,Le=7,fn=e.defineComponent({__name:"panel-content",props:{showTitle:{type:Boolean},title:{},range:{type:Boolean},selectedDate:{},rangeStart:{},rangeEnd:{},minDate:{},maxDate:{},disabledDate:{type:Function},formatter:{type:Function},showFooter:{type:Boolean},maxRangeDays:{}},emits:["select-day","clear","confirm","shortcut-select"],setup(t,{expose:c,emit:m}){const n=t,h=m,g=["日","一","二","三","四","五","六"];function f(o){if(!o)return null;const i=new Date(o);return isNaN(i.getTime())?null:i}function d(o){const i=o.getFullYear(),p=String(o.getMonth()+1).padStart(2,"0"),M=String(o.getDate()).padStart(2,"0");return`${i}-${p}-${M}`}const r=e.ref(new Date);e.watch(()=>[n.selectedDate,n.rangeStart],()=>{if(n.range&&n.rangeStart){const o=f(n.rangeStart);o&&(r.value=o)}else if(!n.range&&n.selectedDate){const o=f(n.selectedDate);o&&(r.value=o)}},{immediate:!0});function v(o){const i=new Date;return o.getFullYear()===i.getFullYear()&&o.getMonth()===i.getMonth()&&o.getDate()===i.getDate()}function E(o){if(!n.rangeStart||!n.rangeEnd)return!1;const i=d(o),p=n.rangeStart,M=n.rangeEnd;return i>p&&i<M}function B(o){if(n.disabledDate&&n.disabledDate(o))return!0;const i=d(o);return!!(n.minDate&&i<n.minDate||n.maxDate&&i>n.maxDate)}function _(o,i){const p=new Date(o,i,1),M=new Date(o,i+1,0),z=p.getDay(),ae=M.getDate(),oe=[],Qe=new Date(o,i,0).getDate();for(let K=z-1;K>=0;K--){const G={date:new Date(o,i-1,Qe-K),type:"prev-month",text:String(Qe-K)};if(n.formatter){const q=n.formatter(G);q.text&&(G.text=q.text),q.bottomInfo&&(G.bottomInfo=q.bottomInfo)}oe.push(G)}for(let K=1;K<=ae;K++){const G={date:new Date(o,i,K),type:"current-month",text:String(K)};if(n.formatter){const q=n.formatter(G);q.text&&(G.text=q.text),q.bottomInfo&&(G.bottomInfo=q.bottomInfo)}oe.push(G)}const rt=42-oe.length;for(let K=1;K<=rt;K++){const G={date:new Date(o,i+1,K),type:"next-month",text:String(K)};if(n.formatter){const q=n.formatter(G);q.text&&(G.text=q.text),q.bottomInfo&&(G.bottomInfo=q.bottomInfo)}oe.push(G)}return oe}const V=e.computed(()=>{const o=r.value.getFullYear(),i=r.value.getMonth();return _(o,i)}),S=e.computed(()=>{const o=r.value.getFullYear(),i=r.value.getMonth()+1;return`${o}年${i}月`});function x(o){const i=[];if(o.type!=="current-month"&&i.push("is-other-month"),v(o.date)&&i.push("is-today"),B(o.date))return i.push("is-disabled"),i;const p=d(o.date);return n.range?(n.rangeStart===p&&i.push("is-start"),n.rangeEnd===p&&i.push("is-end"),E(o.date)&&i.push("is-in-range")):n.selectedDate===p&&i.push("is-selected"),i}const s=e.computed(()=>!!(n.rangeStart&&n.rangeEnd)),Q=e.computed(()=>n.rangeStart&&n.rangeEnd?2:n.rangeStart||n.rangeEnd?1:0);function ee(o){if(!n.minDate&&!n.maxDate)return!1;const i=n.minDate?f(n.minDate):null,p=n.maxDate?f(n.maxDate):null;return!!(i&&o<i.getFullYear()||p&&o>p.getFullYear())}function te(o,i){const p=n.minDate?f(n.minDate):null,M=n.maxDate?f(n.maxDate):null;if(p){const z=p.getFullYear(),ae=p.getMonth()+1;if(o<z||o===z&&i<ae)return!0}if(M){const z=M.getFullYear(),ae=M.getMonth()+1;if(o>z||o===z&&i>ae)return!0}return!1}const F=e.ref(!1),R=e.ref("year"),L=e.ref(r.value.getFullYear()),N=e.ref(r.value.getMonth()+1),A=e.ref(),w=e.ref(1900),$=e.ref(1920),D=e.ref(1900),I=e.ref(2100),X=e.computed(()=>{const o=[],p=Math.floor((w.value-D.value)/J)-3,M=Math.ceil(($.value-D.value)/J)+3,z=D.value+Math.max(0,p)*J,ae=D.value+M*J-1;for(let oe=z;oe<=ae;oe++)o.push(oe);return o});e.watch(()=>r.value,o=>{L.value=o.getFullYear(),N.value=o.getMonth()+1},{immediate:!0});function ne(){if(!A.value)return;const o=A.value.scrollTop,p=Math.max(0,Math.floor(o/Ie)),M=D.value+p*J,z=M+Le*J-1;M<D.value?D.value=M-100:z>I.value&&(I.value=z+100),(M!==w.value||z!==$.value)&&(w.value=M,$.value=z)}function re(){L.value=r.value.getFullYear(),N.value=r.value.getMonth()+1,R.value="year",F.value=!0;const o=L.value;o<D.value?D.value=Math.floor(o/100)*100:o>I.value&&(I.value=Math.ceil(o/100)*100+99),e.nextTick(()=>{if(A.value){const i=Math.floor((o-D.value)/J),p=Math.max(0,i-2);w.value=D.value+p*J,$.value=w.value+Le*J-1,ce(o)}})}function ce(o){if(!A.value)return;o<D.value?D.value=Math.floor(o/100)*100:o>I.value&&(I.value=Math.ceil(o/100)*100+99);const i=Math.floor((o-D.value)/J),p=i*Ie;A.value.scrollTop=p;const M=Math.max(0,i-2);w.value=D.value+M*J,$.value=w.value+Le*J-1}function k(){const o=new Date(r.value);o.setMonth(o.getMonth()-1),r.value=o}function b(){const o=new Date(r.value);o.setMonth(o.getMonth()+1),r.value=o}function T(o){ee(o)||(L.value=o,R.value="month")}function H(o){te(L.value,o)||(N.value=o,y())}function y(){const o=new Date(r.value);o.setFullYear(L.value),o.setMonth(N.value-1),r.value=o,F.value=!1,R.value="year"}function O(o){h("select-day",o)}function U(){h("clear")}function a(){Z.value&&U()}function l(){h("confirm")}function u(){F.value=!1}function C(o){R.value=o}function P(){const i=new Date().getFullYear();ee(i)||(L.value=i,R.value="month")}function Y(){const i=new Date().getMonth()+1;te(L.value,i)||(N.value=i,y())}const Z=e.computed(()=>n.range?!!(n.rangeStart||n.rangeEnd):!!n.selectedDate);function ie(o,i){const p=f(o),M=f(i);if(!p||!M)return 0;const z=Math.abs(M.getTime()-p.getTime());return Math.ceil(z/(1e3*60*60*24))+1}function se(){return d(new Date)}function ge(){const o=new Date,i=o.getDay(),p=o.getDate()-i+(i===0?-6:1);return new Date(o.getFullYear(),o.getMonth(),p)}function xe(){const o=ge(),i=new Date(o);return i.setDate(o.getDate()+6),i}function De(){const o=new Date;return new Date(o.getFullYear(),o.getMonth(),1)}function ke(){const o=new Date;return new Date(o.getFullYear(),o.getMonth()+1,0)}function Ve(){const o=new Date;return new Date(o.getFullYear(),o.getMonth()-2,1)}function $e(){const o=new Date;return new Date(o.getFullYear(),0,1)}function Ee(){const o=new Date;return new Date(o.getFullYear(),11,31)}const Se=[{key:"today",label:"本日",days:1,getRange:()=>{const o=se();return[o,o]}},{key:"week",label:"本周",days:7,getRange:()=>{const o=d(ge()),i=d(xe());return[o,i]}},{key:"month",label:"本月",getRange:()=>{const o=d(De()),i=d(ke());return[o,i]}},{key:"threeMonths",label:"近三月",getRange:()=>{const o=d(Ve()),i=d(ke());return[o,i]}},{key:"year",label:"本年",getRange:()=>{const o=d($e()),i=d(Ee());return[o,i]}},{key:"last7Days",label:"近7天",days:7,getRange:()=>{const o=new Date,i=new Date(o);return i.setDate(o.getDate()-6),[d(i),se()]}},{key:"last30Days",label:"近30天",days:30,getRange:()=>{const o=new Date,i=new Date(o);return i.setDate(o.getDate()-29),[d(i),se()]}}],Ne=e.computed(()=>Se.filter(o=>{if(n.maxRangeDays!==void 0){if(o.days!==void 0)return o.days<=n.maxRangeDays;{const i=o.getRange();if(i)return ie(i[0],i[1])<=n.maxRangeDays}}return!0}));function Me(o){const i=o.getRange();if(i){if(n.minDate&&i[0]<n.minDate||n.maxDate&&i[1]>n.maxDate)return;h("shortcut-select",i)}}return c({yearScrollRef:A}),(o,i)=>(e.openBlock(),e.createElementBlock("div",null,[t.showTitle?(e.openBlock(),e.createElementBlock("div",Wt,[e.createElementVNode("div",Ot,e.toDisplayString(t.title),1),e.createElementVNode("span",{class:e.normalizeClass(["rc-calendar__header-clear",{"is-disabled":!Z.value}]),onClick:a}," 清空 ",2)])):e.createCommentVNode("",!0),t.range?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("div",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ne.value,p=>(e.openBlock(),e.createElementBlock("div",{key:p.key,class:"rc-calendar__shortcut-item",onClick:M=>Me(p)},e.toDisplayString(p.label),9,jt))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Kt,[e.createElementVNode("div",{class:"rc-calendar__nav-button",onClick:k},[e.createVNode(e.unref(W),{name:"icon_caret-left",class:"rc-calendar__nav-icon"})]),e.createElementVNode("div",{class:"rc-calendar__month-text",onClick:re},e.toDisplayString(S.value),1),e.createElementVNode("div",{class:"rc-calendar__nav-button",onClick:b},[e.createVNode(e.unref(W),{name:"icon_caret-right",class:"rc-calendar__nav-icon"})])]),e.createElementVNode("div",Gt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(g,p=>e.createElementVNode("div",{key:p,class:"rc-calendar__weekday"},e.toDisplayString(p),1)),64))]),e.createElementVNode("div",qt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(p,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:e.normalizeClass(["rc-calendar__day",x(p)]),onClick:z=>O(p)},[e.createElementVNode("div",Qt,[e.createElementVNode("span",Xt,e.toDisplayString(p.text),1),p.bottomInfo?(e.openBlock(),e.createElementBlock("span",Zt,e.toDisplayString(p.bottomInfo),1)):e.createCommentVNode("",!0)])],10,Jt))),128))]),t.range&&t.showFooter?(e.openBlock(),e.createElementBlock("div",en,[e.createVNode(e.unref(le),{type:"default",class:"rc-calendar__footer-reset",onClick:U},{default:e.withCtx(()=>[...i[2]||(i[2]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(le),{type:"primary",class:"rc-calendar__footer-confirm",disabled:!s.value,onClick:l},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value?`确定(${Q.value}项)`:"确定"),1)]),_:1},8,["disabled"])])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"rc-calendar-fade"},{default:e.withCtx(()=>[F.value?(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("div",nn,[e.createElementVNode("div",an,[e.createVNode(e.unref(le),{type:"default",mode:"text",size:"small",onClick:u},{default:e.withCtx(()=>[...i[3]||(i[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createElementVNode("div",on,[e.createElementVNode("span",{onClick:i[0]||(i[0]=p=>C("year"))},e.toDisplayString(L.value)+"年",1),R.value==="month"?(e.openBlock(),e.createElementBlock("span",ln," - ")):e.createCommentVNode("",!0),R.value==="month"?(e.openBlock(),e.createElementBlock("span",{key:1,onClick:i[1]||(i[1]=p=>C("month"))},e.toDisplayString(N.value)+"月",1)):e.createCommentVNode("",!0)]),R.value==="year"?(e.openBlock(),e.createBlock(e.unref(le),{key:0,type:"primary",mode:"text",size:"small",onClick:P},{default:e.withCtx(()=>[...i[4]||(i[4]=[e.createTextVNode(" 本年 ",-1)])]),_:1})):e.createCommentVNode("",!0),R.value==="month"?(e.openBlock(),e.createBlock(e.unref(le),{key:1,type:"primary",mode:"text",size:"small",onClick:Y},{default:e.withCtx(()=>[...i[5]||(i[5]=[e.createTextVNode(" 本月 ",-1)])]),_:1})):e.createCommentVNode("",!0)]),R.value==="year"?(e.openBlock(),e.createElementBlock("div",rn,[e.createElementVNode("div",{class:"rc-calendar__year-picker-scroll",ref_key:"yearScrollRef",ref:A,onScroll:ne},[e.createElementVNode("div",{class:"rc-calendar__year-picker-spacer",style:e.normalizeStyle({height:`${Math.floor((w.value-D.value)/J)*Ie}px`})},null,4),e.createElementVNode("div",cn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(X.value,p=>(e.openBlock(),e.createElementBlock("div",{key:p,class:e.normalizeClass(["rc-calendar__year-picker-item",{"is-selected":L.value===p,"is-disabled":ee(p)}]),onClick:M=>T(p)},e.toDisplayString(p),11,sn))),128))]),e.createElementVNode("div",{class:"rc-calendar__year-picker-spacer",style:e.normalizeStyle({height:`${Math.ceil((I.value-$.value)/J)*Ie}px`})},null,4)],544)])):e.createCommentVNode("",!0),R.value==="month"?(e.openBlock(),e.createElementBlock("div",un,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,p=>e.createElementVNode("div",{key:p,class:e.normalizeClass(["rc-calendar__month-picker-item",{"is-selected":N.value===p,"is-disabled":te(L.value,p)}]),onClick:M=>H(p)},e.toDisplayString(p)+"月 ",11,dn)),64))])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1})]))}}),tt=j(fn,[["__scopeId","data-v-0bf1834b"]]),mn={class:"rc-calendar"},vn=["placeholder"],pn={class:"rc-calendar__input-actions"},yn={key:1,class:"rc-calendar__panel"},hn=e.defineComponent({name:"rc-calendar",__name:"index",props:{modelValue:{default:null},range:{type:[Boolean,Number],default:!1},mode:{default:"default"},placeholder:{default:"请选择日期"},showTitle:{type:Boolean,default:!0},title:{default:"选择日期"},minDate:{default:void 0},maxDate:{default:void 0},disabledDate:{type:Function,default:void 0},formatter:{type:Function,default:void 0},showFooter:{type:Boolean,default:!0},endDateOffset:{type:Boolean,default:!1}},emits:["update:modelValue","change","confirm"],setup(t,{emit:c}){const m=t,n=c,h=e.ref(),g=e.ref(),f=e.ref(!1),d=e.ref(""),r=e.computed(()=>m.range===!0||typeof m.range=="number"),v=e.computed(()=>typeof m.range=="number"?m.range:void 0),E=e.computed(()=>k=>{if(m.disabledDate&&m.disabledDate(k))return!0;if(v.value!==void 0&&_.value&&!V.value){const b=s(k);if(x(_.value)&&Q(_.value,b)>v.value)return!0}return!1}),B=e.ref(null),_=e.ref(null),V=e.ref(null);e.watch(()=>m.modelValue,k=>{r.value?Array.isArray(k)&&k.length===2?(_.value=k[0],V.value=R(k[1])):(_.value=null,V.value=null):B.value=typeof k=="string"?k:null,S()},{immediate:!0});function S(){m.mode==="popup"&&(r.value?_.value&&V.value?d.value=`${_.value} ~ ${V.value}`:_.value?d.value=`${_.value} ~ `:d.value="":d.value=B.value||"")}function x(k){if(!k)return null;const b=new Date(k);return isNaN(b.getTime())?null:b}function s(k){const b=k.getFullYear(),T=String(k.getMonth()+1).padStart(2,"0"),H=String(k.getDate()).padStart(2,"0");return`${b}-${T}-${H}`}function Q(k,b){const T=x(k),H=x(b);if(!T||!H)return 0;const y=Math.abs(H.getTime()-T.getTime());return Math.ceil(y/(1e3*60*60*24))}function ee(k){const b=x(k);return b?(b.setDate(b.getDate()+1),s(b)):k}function te(k){const b=x(k);return b?(b.setDate(b.getDate()-1),s(b)):k}function F(k){return m.endDateOffset&&r.value?ee(k):k}function R(k){return m.endDateOffset&&r.value?te(k):k}function L(k){if(k.type!=="current-month"||m.disabledDate&&m.disabledDate(k.date))return;const b=s(k.date);if(!(m.minDate&&b<m.minDate)&&!(m.maxDate&&b>m.maxDate)){if(r.value)if(!_.value||_.value&&V.value)_.value=b,V.value=null;else{let T=_.value,H=b;if(b<_.value&&(H=_.value,T=b),_.value=T,V.value=H,_.value&&V.value){const y=F(V.value),O=[_.value,y];n("update:modelValue",O),n("change",O),m.showFooter||N()}}else{B.value=b;const T=b;n("update:modelValue",T),n("change",T),m.mode&&D()}S()}}function N(){if(_.value&&V.value){const k=F(V.value),b=[_.value,k];n("update:modelValue",b),n("change",b),n("confirm",b),D()}}function A(){r.value?(_.value=null,V.value=null):B.value=null;const k=null;n("update:modelValue",k),n("change",k),S()}function w(k){_.value=k[0],V.value=k[1];const b=F(k[1]),T=[k[0],b];n("update:modelValue",T),n("change",T),m.showFooter?S():N()}function $(){f.value=!0}function D(){f.value=!1}function I(k){f.value=k}function X(){$()}function ne(){m.mode==="popup"&&ce()}function re(){f.value||$()}function ce(){const k=d.value.trim();if(r.value){const b=k.split("~").map(T=>T.trim());if(b.length===2&&b[0]&&b[1]){const T=x(b[0]),H=x(b[1]);if(T&&H&&!isNaN(T.getTime())&&!isNaN(H.getTime())){_.value=s(T);const y=s(H);V.value=R(y);const O=F(V.value),U=[_.value,O];n("update:modelValue",U),n("change",U);return}}}else{const b=x(k);if(b&&!isNaN(b.getTime())){B.value=s(b),n("update:modelValue",B.value),n("change",B.value);return}}S()}return(k,b)=>(e.openBlock(),e.createElementBlock("div",mn,[t.mode==="popup"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"rc-calendar__input",onClick:$},[e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:h,"onUpdate:modelValue":b[0]||(b[0]=T=>d.value=T),type:"text",class:"rc-calendar__input-field",placeholder:t.placeholder,readonly:"",onFocus:X,onBlur:ne,onInput:re},null,40,vn),[[e.vModelText,d.value]]),e.createElementVNode("div",pn,[e.createVNode(e.unref(W),{name:"icon_a-rili",class:"rc-calendar__input-icon"})])])):e.createCommentVNode("",!0),t.mode==="default"?(e.openBlock(),e.createElementBlock("div",yn,[e.createVNode(tt,{"show-title":t.showTitle,title:t.title,range:r.value,"selected-date":B.value,"range-start":_.value,"range-end":V.value,"min-date":t.minDate,"max-date":t.maxDate,"disabled-date":E.value,formatter:t.formatter,"show-footer":!1,"max-range-days":v.value,onSelectDay:L,onClear:A,onConfirm:N,onShortcutSelect:w},null,8,["show-title","title","range","selected-date","range-start","range-end","min-date","max-date","disabled-date","formatter","max-range-days"])])):e.createCommentVNode("",!0),t.mode==="popup"?(e.openBlock(),e.createBlock(e.unref(ye),{key:2,modelValue:f.value,"onUpdate:modelValue":[b[1]||(b[1]=T=>f.value=T),I],position:"bottom",overlay:!0,round:!0,"close-on-click-overlay":!0,"lock-scroll":!0},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"popupPanelRef",ref:g,class:"rc-calendar__panel"},[e.createVNode(tt,{"show-title":t.showTitle,title:t.title,range:r.value,"selected-date":B.value,"range-start":_.value,"range-end":V.value,"min-date":t.minDate,"max-date":t.maxDate,"disabled-date":E.value,formatter:t.formatter,"show-footer":t.showFooter,"max-range-days":v.value,onSelectDay:L,onClear:A,onConfirm:N,onShortcutSelect:w},null,8,["show-title","title","range","selected-date","range-start","range-end","min-date","max-date","disabled-date","formatter","show-footer","max-range-days"])],512)]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)]))}}),he=j(hn,[["__scopeId","data-v-96b29c22"]]);he.name="rc-calendar";const gn="RcCalendar";function Ue(t){return t.component(he.name,he),t.component(gn,he),t}const kn={class:"rc-search-area"},_n={class:"rc-search-area__bar"},bn=["onClick"],Cn={class:"rc-search-area__item-label"},Bn={class:"rc-search-area__panel-content"},wn={key:1,class:"rc-search-area__input-wrapper"},xn=["placeholder"],Dn={key:2,class:"rc-search-area__calendar-wrapper"},Vn={key:3,class:"rc-search-area__tree-container"},$n={class:"rc-search-area__tree-group-title"},En={class:"rc-search-area__tree-group-options"},Sn=["onClick"],Nn={class:"rc-search-area__option-label"},Mn={key:4,class:"rc-search-area__tree-container"},In={class:"rc-search-area__tree-group-title"},Tn={class:"rc-search-area__tree-group-options"},Rn=["onClick"],zn={class:"rc-search-area__option-label"},Fn={key:5,class:"rc-search-area__options-grid"},Ln=["onClick"],An={class:"rc-search-area__option-label"},Yn={key:6,class:"rc-search-area__options-grid"},Pn=["onClick"],Wn={class:"rc-search-area__option-label"},On={key:7,class:"rc-search-area__empty"},Hn={key:0,class:"rc-search-area__panel-footer"},Un=e.defineComponent({name:"rc-search-area",__name:"index",props:{items:{default:()=>[]},modelValue:{default:()=>({})},showMask:{type:Boolean,default:!0},autoConfirm:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(t,{expose:c,emit:m}){const n=t,h=m,g=e.ref(null),f=e.ref(null),d=e.ref(null),r=e.ref({top:"0px"}),v=async()=>{if(g.value===null||!f.value)return;await e.nextTick();const l=f.value.getBoundingClientRect().top;r.value={top:`${l}px`}},E=a=>{if(g.value===null||!f.value)return;const l=a.target;if(f.value.contains(l))return;const u=f.value.closest(".rc-search-area");if(u){const C=u.querySelector(".rc-search-area__bar");if(C&&C.contains(l))return}F()};e.watch(g,async a=>{a!==null?(await e.nextTick(),v(),window.addEventListener("resize",v),window.addEventListener("scroll",v,!0),document.addEventListener("click",E,!0)):(window.removeEventListener("resize",v),window.removeEventListener("scroll",v,!0),document.removeEventListener("click",E,!0))}),e.onUnmounted(()=>{window.removeEventListener("resize",v),window.removeEventListener("scroll",v,!0),document.removeEventListener("click",E,!0)});const B=e.ref({}),_=e.ref(""),V=e.ref(null),S=e.ref({}),x=e.ref({...n.modelValue});e.watch(()=>n.modelValue,a=>{x.value={...a||{}}},{deep:!0,immediate:!0});const s=e.computed(()=>g.value===null?null:n.items[g.value]),Q=e.computed(()=>{if(!s.value)return"";const a=U(s.value);return a>0?`(${a}项)`:""}),ee=a=>{const l=x.value[a.key];if(l==null||l===""||a.slot)return a.label;if(a.type==="input"){if(l&&String(l).trim())return`${a.label}: ${l}`}else if(a.type==="calendar"){if(l){if(Array.isArray(l)&&l.length===2)return`${a.label}: ${l[0]} ~ ${l[1]}`;if(typeof l=="string")return`${a.label}: ${l}`}}else if(a.type==="single"||a.type==="tree-single"){const u=A(a,l);if(u)return`${a.label}: ${N(u,a)}`}else{const u=Array.isArray(l)?l:[l];if(u.length>0){const C=u.map(P=>{const Y=A(a,P);return Y?N(Y,a):null}).filter(P=>P!==null);if(C.length>0)return`${a.label}: ${C.join("、")}`}}return a.label},te=a=>{const l=n.items[a];if(!l)return;if(g.value===a){g.value=null;return}const u=x.value[l.key];l.slot?u!=null?Array.isArray(u)?S.value[l.key]=[...u]:typeof u=="object"?S.value[l.key]={...u}:S.value[l.key]=u:S.value[l.key]=void 0:l.type==="input"?_.value=u!=null?String(u):"":l.type==="calendar"?V.value=u??null:l.type==="single"||l.type==="tree-single"?B.value[l.key]=u!==void 0?u:null:B.value[l.key]=u!==void 0?Array.isArray(u)?[...u]:[u]:[],g.value=a},F=()=>{g.value=null},R=(a,l)=>{if(!l)return typeof a=="string"?a:a.label||String(a.value);const u=a;if(l.renderItem){if(typeof l.renderItem=="string")return String(typeof u=="object"&&u!==null?u[l.renderItem]??"":u);{const C=l.renderItem(u);return C!=null?String(C):""}}return typeof a=="string"?a:a.label||String(a.value)},L=(a,l)=>{if(!l)return typeof a=="string"?a:a.value!==void 0?a.value:a;const u=a;return l.format?typeof l.format=="string"?typeof u=="object"&&u!==null?u[l.format]:u:l.format(u):typeof a=="string"?a:a.value!==void 0?a.value:a},N=(a,l)=>{const u=a,C=l.renderResult||l.renderItem;if(C){if(typeof C=="string")return String(typeof u=="object"&&u!==null?u[C]??"":u);{const P=C(u);return P!=null?String(P):""}}return R(a,l)},A=(a,l,u)=>{const C=u||a.options;if(!C)return null;const P=a.childrenKey||"children";for(const Y of C){const Z=L(Y,a);if(Z===l||String(Z)===String(l))return Y;if(typeof Y=="object"&&Y!==null){const ie=Y[P];if(Array.isArray(ie)&&ie.length>0){const se=A(a,l,ie);if(se)return se}}}return null},w=(a,l)=>{const u=l||a.options;if(!u)return[];const C=a.childrenKey||"children",P=[];for(const Y of u)if(P.push(Y),typeof Y=="object"&&Y!==null){const Z=Y[C];Array.isArray(Z)&&Z.length>0&&P.push(...w(a,Z))}return P},$=a=>{if(!s.value)return!1;const l=s.value.key,u=B.value[l],C=L(a,s.value);return s.value.type==="single"||s.value.type==="tree-single"?u!=null&&u===C:(Array.isArray(u)?u:[]).some(Y=>Y===C||String(Y)===String(C))},D=a=>a?a.childrenKey?w(a):a.options||[]:[],I=a=>{if(!a)return[];const l=a.childrenKey||"children";return(a.options||[]).filter(u=>{if(typeof u=="string")return!1;const C=u[l];return Array.isArray(C)&&C.length>0})},X=(a,l)=>{if(!l||typeof a=="string")return[];const u=l.childrenKey||"children",C=a[u];return Array.isArray(C)?C:[]},ne=a=>{if(a)return S.value[a.key]!==void 0?S.value[a.key]:x.value[a.key]},re=(a,l)=>{if(a&&(S.value[a.key]=l,n.autoConfirm)){const u=a.key;x.value[u]=l,h("update:modelValue",{...x.value}),h("change",{...x.value},a),F()}},ce=a=>{if(!s.value)return;const l=s.value.key,u=L(a,s.value);x.value[l];let C;B.value[l]===u?C=void 0:C=u,x.value[l]=C,h("update:modelValue",{...x.value}),h("change",{...x.value},s.value),F()},k=a=>{if(!s.value)return;const l=s.value.key,u=L(a,s.value),C=Array.isArray(B.value[l])?[...B.value[l]]:[],P=C.findIndex(Y=>Y===u||String(Y)===String(u));if(P>=0?C.splice(P,1):C.push(u),B.value[l]=C,n.autoConfirm){const Y=C.length>0?C:void 0;x.value[l]=Y,h("update:modelValue",{...x.value}),h("change",{...x.value},s.value),F()}},b=()=>{if(!s.value)return;const a=s.value.key;s.value.slot?S.value[a]=void 0:s.value.type==="input"?_.value="":s.value.type==="calendar"?V.value=null:s.value.type==="single"||s.value.type==="tree-single"?B.value[a]=null:B.value[a]=[]},T=()=>{if(n.autoConfirm&&s.value){const a=s.value.key,l=_.value.trim()||void 0;x.value[a]=l,h("update:modelValue",{...x.value}),h("change",{...x.value},s.value),F()}},H=a=>{if(V.value=a,n.autoConfirm&&s.value){const l=s.value.key,u=a??void 0;x.value[l]=u,h("update:modelValue",{...x.value}),h("change",{...x.value},s.value),F()}},y=()=>{if(!s.value)return;const a=s.value.key;x.value[a];let l;if(s.value.slot)l=S.value[a],x.value[a]=l;else if(s.value.type==="input")l=_.value.trim()||void 0,x.value[a]=l;else if(s.value.type==="calendar")l=V.value!==null&&V.value!==void 0?V.value:void 0,x.value[a]=l;else if(s.value.type==="single"||s.value.type==="tree-single"){const u=B.value[a];l=u??void 0,x.value[a]=l}else{const u=B.value[a];l=Array.isArray(u)&&u.length>0?u:void 0,x.value[a]=l}h("update:modelValue",{...x.value}),h("change",{...x.value},s.value),F()},O=a=>{const l=x.value[a.key];return l==null||l===""?0:a.slot?1:a.type==="input"?String(l).trim()?1:0:a.type==="single"||a.type==="tree-single"?1:Array.isArray(l)?l.length:l?1:0},U=a=>{if(a.slot){const u=S.value[a.key];return u!=null&&u!==""?1:0}else{if(a.type==="input")return _.value.trim()?1:0;if(a.type==="calendar")return V.value!==null&&V.value!==void 0?1:0}const l=B.value[a.key];return l==null||l===""?0:a.type==="single"||a.type==="tree-single"?1:Array.isArray(l)?l.length:0};return c({getValues:()=>({...x.value}),reset:()=>{x.value={},B.value={},S.value={},h("update:modelValue",{})}}),(a,l)=>(e.openBlock(),e.createElementBlock("div",kn,[e.createElementVNode("div",_n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(u,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,class:e.normalizeClass(["rc-search-area__item",{"is-active":g.value===C,"has-value":O(u)>0}]),onClick:P=>te(C)},[e.createElementVNode("span",Cn,e.toDisplayString(ee(u)),1),e.createVNode(e.unref(W),{name:"icon_a-xiala2",color:g.value!==C&&O(u)>0?"#1677ff":"#969799",class:e.normalizeClass(["rc-search-area__item-arrow",{"is-up":g.value===C}])},null,8,["color","class"])],10,bn))),128))]),e.createVNode(e.Transition,{name:"rc-search-area-fade"},{default:e.withCtx(()=>[g.value!==null&&n.showMask?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"maskRef",ref:d,class:"rc-search-area__mask",style:e.normalizeStyle(r.value),onClick:F},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"rc-search-area-slide"},{default:e.withCtx(()=>{var u,C,P,Y,Z,ie,se,ge,xe,De,ke,Ve,$e,Ee,Se,Ne,Me,o,i;return[g.value!==null?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"panelRef",ref:f,class:"rc-search-area__panel"},[e.createElementVNode("div",Bn,[(u=s.value)!=null&&u.slot&&a.$slots[s.value.key]?e.renderSlot(a.$slots,s.value.key,{key:0,value:ne(s.value),"update:value":p=>re(s.value,p)},void 0,!0):((C=s.value)==null?void 0:C.type)==="input"?(e.openBlock(),e.createElementBlock("div",wn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=p=>_.value=p),type:"text",class:"rc-search-area__input",placeholder:s.value.placeholder||"请输入",onInput:T},null,40,xn),[[e.vModelText,_.value]])])):((P=s.value)==null?void 0:P.type)==="calendar"?(e.openBlock(),e.createElementBlock("div",Dn,[e.createVNode(e.unref(he),{modelValue:V.value,"onUpdate:modelValue":l[1]||(l[1]=p=>V.value=p),range:((Y=s.value.calendarConfig)==null?void 0:Y.range)||!1,mode:"default","min-date":(Z=s.value.calendarConfig)==null?void 0:Z.minDate,"max-date":(ie=s.value.calendarConfig)==null?void 0:ie.maxDate,"disabled-date":(se=s.value.calendarConfig)==null?void 0:se.disabledDate,formatter:(ge=s.value.calendarConfig)==null?void 0:ge.formatter,"end-date-offset":((xe=s.value.calendarConfig)==null?void 0:xe.endDateOffset)||!1,onChange:H},null,8,["modelValue","range","min-date","max-date","disabled-date","formatter","end-date-offset"])])):((De=s.value)==null?void 0:De.type)==="tree-single"?(e.openBlock(),e.createElementBlock("div",Vn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I(s.value),(p,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:"rc-search-area__tree-group"},[e.createElementVNode("div",$n,e.toDisplayString(R(p,s.value||void 0)),1),e.createElementVNode("div",En,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(X(p,s.value),(z,ae)=>(e.openBlock(),e.createElementBlock("div",{key:ae,class:e.normalizeClass(["rc-search-area__option",{"is-selected":$(z)}]),onClick:oe=>ce(z)},[e.createElementVNode("span",Nn,e.toDisplayString(R(z,s.value||void 0)),1),$(z)?(e.openBlock(),e.createBlock(e.unref(W),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Sn))),128))])]))),128))])):((ke=s.value)==null?void 0:ke.type)==="tree-multiple"?(e.openBlock(),e.createElementBlock("div",Mn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I(s.value),(p,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:"rc-search-area__tree-group"},[e.createElementVNode("div",In,e.toDisplayString(R(p,s.value||void 0)),1),e.createElementVNode("div",Tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(X(p,s.value),(z,ae)=>(e.openBlock(),e.createElementBlock("div",{key:ae,class:e.normalizeClass(["rc-search-area__option",{"is-selected":$(z)}]),onClick:oe=>k(z)},[e.createElementVNode("span",zn,e.toDisplayString(R(z,s.value||void 0)),1),$(z)?(e.openBlock(),e.createBlock(e.unref(W),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Rn))),128))])]))),128))])):((Ve=s.value)==null?void 0:Ve.type)==="single"?(e.openBlock(),e.createElementBlock("div",Fn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D(s.value),(p,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:e.normalizeClass(["rc-search-area__option",{"is-selected":$(p)}]),onClick:z=>ce(p)},[e.createElementVNode("span",An,e.toDisplayString(R(p,s.value||void 0)),1),$(p)?(e.openBlock(),e.createBlock(e.unref(W),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Ln))),128))])):(e.openBlock(),e.createElementBlock("div",Yn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D(s.value),(p,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:e.normalizeClass(["rc-search-area__option",{"is-selected":$(p)}]),onClick:z=>k(p)},[e.createElementVNode("span",Wn,e.toDisplayString(R(p,s.value||void 0)),1),$(p)?(e.openBlock(),e.createBlock(e.unref(W),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Pn))),128))])),(($e=s.value)==null?void 0:$e.type)!=="input"&&((Ee=s.value)==null?void 0:Ee.type)!=="calendar"&&!((Se=s.value)!=null&&Se.slot)&&((Me=(Ne=s.value)==null?void 0:Ne.options)==null?void 0:Me.length)===0?(e.openBlock(),e.createElementBlock("div",On,[...l[2]||(l[2]=[e.createElementVNode("p",null,"暂无选项",-1)])])):e.createCommentVNode("",!0)]),!n.autoConfirm&&((o=s.value)==null?void 0:o.type)!=="single"&&((i=s.value)==null?void 0:i.type)!=="tree-single"?(e.openBlock(),e.createElementBlock("div",Hn,[e.createVNode(e.unref(le),{block:"",onClick:b},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode(" 重置 ",-1)])]),_:1}),e.createVNode(e.unref(le),{type:"primary",block:"",onClick:y},{default:e.withCtx(()=>[e.createTextVNode(" 确定"+e.toDisplayString(Q.value),1)]),_:1})])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)]}),_:3})]))}}),je=j(Un,[["__scopeId","data-v-dd3a69e1"]]),Ke=t=>{t.component("RcSearchArea",je),t.component("rc-search-area",je)},jn={key:0,class:"rc-input__prepend"},Kn={key:0,class:"rc-input__prefix"},Gn={key:1,class:"rc-input__textarea-wrapper"},qn={key:3,class:"rc-input__suffix"},Jn={key:0,class:"rc-input__suffix-inner"},Qn={key:4,class:"rc-input__count"},Xn={key:1,class:"rc-input__append"},Zn=e.defineComponent({__name:"index",props:{modelValue:{default:""},type:{default:"text"},size:{default:"default"},placeholder:{default:"请输入"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},showPassword:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},maxlength:{default:void 0},minlength:{default:void 0},showWordLimit:{type:Boolean,default:!1},rows:{default:2},autosize:{type:[Boolean,Object],default:!1},resize:{default:void 0},prefixIcon:{default:""},suffixIcon:{default:""},autocomplete:{default:"off"},name:{default:void 0},autofocus:{type:Boolean,default:!1},form:{default:void 0},tabindex:{default:void 0},formatter:{type:Function,default:void 0},parser:{type:Function,default:void 0},deviceType:{default:void 0}},emits:["update:modelValue","input","change","focus","blur","clear","keydown","mouseenter","mouseleave","compositionstart","compositionupdate","compositionend"],setup(t,{expose:c,emit:m}){const n=t,h=e.inject(we,{}),g=e.computed(()=>n.deviceType||(h==null?void 0:h.inputDeviceType)||Fe.inputDeviceType||"pc"),f=m,d=e.ref(),r=e.ref(n.modelValue??""),v=e.ref(!1),E=e.ref(!1),B=e.ref(!1);e.watch(()=>n.modelValue,y=>{r.value=y??""});const _=e.computed(()=>n.type==="password"?E.value?"text":"password":n.type),V=e.computed(()=>{const y=String(r.value??"");return n.formatter&&!B.value?n.formatter(y):y}),S=e.computed(()=>{const y=r.value;return y!==""&&y!==null&&y!==void 0}),x=e.computed(()=>String(r.value??"").length),s=e.computed(()=>!n.clearable||!S.value||n.disabled||n.readonly?!1:(g.value==="mobile",!0)),Q=e.useSlots(),ee=e.computed(()=>!!(n.suffixIcon||n.showPassword&&n.type==="password"||s.value&&n.type!=="textarea"||Q.suffix)),te=e.computed(()=>{if(n.type!=="textarea")return{};const y={};return n.autosize?y.resize="none":n.resize!==void 0?y.resize=n.resize:y.resize="vertical",y});function F(y){let U=y.target.value;n.parser&&!B.value&&(U=n.parser(U));const a=U===""?void 0:U;r.value=a,f("update:modelValue",a),f("input",a),n.type==="textarea"&&n.autosize&&e.nextTick(()=>{ce()})}function R(y){v.value=!0,f("focus",y)}function L(y){v.value=!1;const O=r.value,U=O===""?void 0:O;f("blur",y),f("change",U)}function N(){r.value=void 0,f("update:modelValue",void 0),f("input",void 0),f("change",void 0),f("clear"),e.nextTick(()=>{var y;(y=d.value)==null||y.focus()})}function A(){E.value=!E.value}function w(y){if(f("keydown",y),y.key==="Enter"&&n.type!=="textarea"){const O=r.value;f("change",O===""?void 0:O)}}function $(y){f("mouseenter",y)}function D(y){f("mouseleave",y)}function I(y){B.value=!0,f("compositionstart",y)}function X(y){f("compositionupdate",y)}function ne(y){B.value=!1,f("compositionend",y),y.target&&F(y)}function re(){var y;n.disabled||n.readonly||(y=d.value)==null||y.focus()}function ce(){if(n.type!=="textarea"||!d.value)return;const y=d.value;if(n.autosize){y.style.height="auto";const O=y.scrollHeight;if(typeof n.autosize=="object"){const{minRows:U=2,maxRows:a}=n.autosize,l=parseInt(getComputedStyle(y).lineHeight)||20,u=U*l,C=a?a*l:1/0;y.style.height=`${Math.min(Math.max(O,u),C)}px`}else y.style.height=`${O}px`}}function k(){var y;(y=d.value)==null||y.focus()}function b(){var y;(y=d.value)==null||y.blur()}function T(){d.value&&"select"in d.value&&d.value.select()}function H(){N()}return e.onMounted(()=>{n.type==="textarea"&&n.autosize&&ce()}),c({focus:k,blur:b,select:T,clear:H,resizeTextarea:ce,inputRef:d}),(y,O)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-input",[`rc-input--${t.size}`,{"is-disabled":t.disabled,"is-focused":v.value,"is-readonly":t.readonly,"rc-input--textarea":t.type==="textarea","has-prepend":y.$slots.prepend,"has-append":y.$slots.append}]]),onClick:re},[y.$slots.prepend?(e.openBlock(),e.createElementBlock("div",jn,[e.renderSlot(y.$slots,"prepend",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["rc-input__wrapper",{"has-clear":s.value&&t.type!=="textarea","has-clear-textarea":s.value&&t.type==="textarea","has-clear-mobile":s.value&&g.value==="mobile"&&t.type!=="textarea","has-clear-textarea-mobile":s.value&&g.value==="mobile"&&t.type==="textarea"}])},[t.prefixIcon||y.$slots.prefix?(e.openBlock(),e.createElementBlock("div",Kn,[e.renderSlot(y.$slots,"prefix",{},()=>[t.prefixIcon?(e.openBlock(),e.createBlock(e.unref(W),{key:0,name:t.prefixIcon,class:"rc-input__prefix-icon"},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),t.type==="textarea"?(e.openBlock(),e.createElementBlock("div",Gn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent("textarea"),{ref_key:"inputRef",ref:d,value:V.value,class:"rc-input__field rc-input__field--textarea",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,maxlength:t.maxlength,minlength:t.minlength,rows:t.rows,autocomplete:t.autocomplete,name:t.name,autofocus:t.autofocus,form:t.form,tabindex:t.tabindex,style:e.normalizeStyle(te.value),onInput:F,onFocus:R,onBlur:L,onKeydown:w,onMouseenter:$,onMouseleave:D,onCompositionstart:I,onCompositionupdate:X,onCompositionend:ne},null,40,["value","placeholder","disabled","readonly","maxlength","minlength","rows","autocomplete","name","autofocus","form","tabindex","style"])),s.value&&t.type==="textarea"?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["rc-input__clear rc-input__clear--textarea",{"rc-input__clear--mobile":g.value==="mobile"}]),onClick:e.withModifiers(N,["stop"])},[e.createVNode(e.unref(W),{name:"icon_close_circle",class:"rc-input__clear-icon"})],2)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("input"),{key:2,ref_key:"inputRef",ref:d,value:V.value,type:_.value,class:"rc-input__field",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,maxlength:t.maxlength,minlength:t.minlength,autocomplete:t.autocomplete,name:t.name,autofocus:t.autofocus,form:t.form,tabindex:t.tabindex,onInput:F,onFocus:R,onBlur:L,onKeydown:w,onMouseenter:$,onMouseleave:D,onCompositionstart:I,onCompositionupdate:X,onCompositionend:ne},null,40,["value","type","placeholder","disabled","readonly","maxlength","minlength","autocomplete","name","autofocus","form","tabindex"])),ee.value?(e.openBlock(),e.createElementBlock("div",qn,[y.$slots.suffix?(e.openBlock(),e.createElementBlock("div",Jn,[e.renderSlot(y.$slots,"suffix",{},void 0,!0)])):e.createCommentVNode("",!0),t.showPassword&&t.type==="password"&&S.value?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"rc-input__password-toggle",onClick:e.withModifiers(A,["stop"])},[e.createVNode(e.unref(W),{color:E.value?"#1677ff":"#999",name:E.value?"icon_view":"icon_view-off"},null,8,["color","name"])])):e.createCommentVNode("",!0),s.value&&t.type!=="textarea"?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["rc-input__clear",{"rc-input__clear--mobile":g.value==="mobile"}]),onClick:e.withModifiers(N,["stop"])},[e.createVNode(e.unref(W),{name:"icon_close_circle",class:"rc-input__clear-icon"})],2)):e.createCommentVNode("",!0),t.suffixIcon&&!t.clearable&&!t.showPassword?(e.openBlock(),e.createBlock(e.unref(W),{key:3,name:t.suffixIcon,class:"rc-input__suffix-icon"},null,8,["name"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.showWordLimit&&t.maxlength?(e.openBlock(),e.createElementBlock("span",Qn,e.toDisplayString(x.value)+" / "+e.toDisplayString(t.maxlength),1)):e.createCommentVNode("",!0)],2),y.$slots.append?(e.openBlock(),e.createElementBlock("div",Xn,[e.renderSlot(y.$slots,"append",{},void 0,!0)])):e.createCommentVNode("",!0)],2))}}),Te=j(Zn,[["__scopeId","data-v-050956ab"]]);Te.name="rc-input";function Ge(t){return t.component(Te.name,Te),t}const ea=e.defineComponent({name:"rc-dropdown-menu",__name:"menu",props:{visible:{type:Boolean,default:void 0},effect:{default:"light"},maxHeight:{default:""}},emits:["mouseenter","mouseleave"],setup(t,{expose:c,emit:m}){const n=t,h=e.ref(),g=e.computed(()=>n.visible===void 0?!0:n.visible),f=e.computed(()=>n.visible!==void 0),d=e.computed(()=>{const r={};return n.maxHeight&&(r.maxHeight=typeof n.maxHeight=="number"?`${n.maxHeight}px`:n.maxHeight,r.overflowY="auto"),r});return c({menuRef:h}),(r,v)=>f.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"rc-dropdown-fade"},{default:e.withCtx(()=>[g.value?(e.openBlock(),e.createElementBlock("ul",{key:0,ref_key:"menuRef",ref:h,class:e.normalizeClass(["rc-dropdown-menu",[`rc-dropdown-menu--${t.effect}`]]),style:e.normalizeStyle(d.value),onClick:v[0]||(v[0]=e.withModifiers(()=>{},["stop"])),onMouseenter:v[1]||(v[1]=E=>r.$emit("mouseenter",E)),onMouseleave:v[2]||(v[2]=E=>r.$emit("mouseleave",E))},[e.renderSlot(r.$slots,"default",{},void 0,!0)],38)):e.createCommentVNode("",!0)]),_:3})])):(e.openBlock(),e.createElementBlock("ul",{key:1,ref_key:"menuRef",ref:h,class:e.normalizeClass(["rc-dropdown-menu rc-dropdown-menu--nested",[`rc-dropdown-menu--${t.effect}`]]),style:e.normalizeStyle(d.value),onClick:v[3]||(v[3]=e.withModifiers(()=>{},["stop"])),onMouseenter:v[4]||(v[4]=E=>r.$emit("mouseenter",E)),onMouseleave:v[5]||(v[5]=E=>r.$emit("mouseleave",E))},[e.renderSlot(r.$slots,"default",{},void 0,!0)],38))}}),Be=j(ea,[["__scopeId","data-v-288e2690"]]),ta=e.defineComponent({name:"rc-dropdown",__name:"index",props:{placement:{default:"bottom"},trigger:{default:"hover"},disabled:{type:Boolean,default:!1},effect:{default:"light"},maxHeight:{default:""},hideOnClick:{type:Boolean,default:!0},showTimeout:{default:150},hideTimeout:{default:150}},emits:["command","visible-change"],setup(t,{expose:c,emit:m}){const n=t,h=m,g=e.ref(),f=e.ref(),d=e.ref(!1);let r=null,v=null;function E(N){n.hideOnClick&&(d.value=!1),N!==void 0&&h("command",N)}e.provide("handleItemClick",E);function B(){n.disabled||(r&&(clearTimeout(r),r=null),v&&(clearTimeout(v),v=null),r=setTimeout(()=>{d.value=!0,requestAnimationFrame(()=>{e.nextTick(()=>{F()})})},n.showTimeout))}function _(){n.trigger==="hover"&&s.value||(v&&(clearTimeout(v),v=null),r&&(clearTimeout(r),r=null),v=setTimeout(()=>{d.value=!1,s.value=!1},n.hideTimeout))}function V(){n.disabled||(d.value?_():B())}function S(){n.trigger==="hover"&&!n.disabled&&B()}function x(){n.trigger==="hover"&&setTimeout(()=>{s.value||_()},50)}const s=e.ref(!1);function Q(){n.trigger==="hover"&&(s.value=!0,r&&(clearTimeout(r),r=null),v&&(clearTimeout(v),v=null))}function ee(){n.trigger==="hover"&&(s.value=!1,_())}function te(N){n.trigger==="click"&&!n.disabled&&(N.stopPropagation(),V())}function F(){var re;if(!g.value||!((re=f.value)!=null&&re.menuRef))return;const N=g.value,A=f.value.menuRef;if(!N||!A)return;const w=N.getBoundingClientRect(),$=A.getBoundingClientRect();if($.width===0||$.height===0){setTimeout(()=>{d.value&&F()},10);return}let D=0,I=0;switch(n.placement){case"top":D=w.top-$.height,I=w.left;break;case"top-start":D=w.top-$.height,I=w.left;break;case"top-end":D=w.top-$.height,I=w.left+w.width-$.width;break;case"bottom":D=w.bottom,I=w.left+(w.width-$.width)/2;break;case"bottom-start":D=w.bottom,I=w.left;break;case"bottom-end":D=w.bottom,I=w.left+w.width-$.width;break;case"left":D=w.top+(w.height-$.height)/2,I=w.left-$.width;break;case"left-start":D=w.top,I=w.left-$.width;break;case"left-end":D=w.top+w.height-$.height,I=w.left-$.width;break;case"right":D=w.top+(w.height-$.height)/2,I=w.right;break;case"right-start":D=w.top,I=w.right;break;case"right-end":D=w.top+w.height-$.height,I=w.right;break}const X=window.innerWidth,ne=window.innerHeight;I<0&&(I=8),I+$.width>X&&(I=X-$.width-8),D<0&&(D=8),D+$.height>ne&&(D=ne-$.height-8),A.style.top=`${D}px`,A.style.left=`${I}px`,A.style.position="fixed",A.style.visibility="visible",A.style.display="block"}e.watch(d,N=>{h("visible-change",N),N?(requestAnimationFrame(()=>{e.nextTick(()=>{F()})}),document.addEventListener("click",R)):document.removeEventListener("click",R)});function R(N){if(n.trigger==="click"&&!n.disabled){const A=N.target;g.value&&!g.value.contains(A)&&_()}}function L(){d.value&&F()}return e.onMounted(()=>{window.addEventListener("resize",L),window.addEventListener("scroll",L,!0)}),e.onUnmounted(()=>{r&&clearTimeout(r),v&&clearTimeout(v),document.removeEventListener("click",R),window.removeEventListener("resize",L),window.removeEventListener("scroll",L,!0)}),c({show:B,hide:_,toggle:V,visible:d}),(N,A)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:g,class:e.normalizeClass(["rc-dropdown",{"is-disabled":t.disabled}]),onMouseenter:S,onMouseleave:x,onClick:te},[e.renderSlot(N.$slots,"default",{},void 0,!0),e.createVNode(Be,{ref_key:"menuRef",ref:f,visible:d.value,effect:t.effect,"max-height":t.maxHeight,onMouseenter:Q,onMouseleave:ee},{default:e.withCtx(()=>[e.renderSlot(N.$slots,"dropdown",{},void 0,!0)]),_:3},8,["visible","effect","max-height"])],34))}}),Re=j(ta,[["__scopeId","data-v-30feb4c4"]]),na={class:"rc-dropdown-item__text"},aa=e.defineComponent({name:"rc-dropdown-item",__name:"item",props:{command:{default:void 0},disabled:{type:Boolean,default:!1},divided:{type:Boolean,default:!1},icon:{default:""}},setup(t){const c=t,m=e.inject("handleItemClick",()=>{});function n(h){if(c.disabled){h.stopPropagation();return}m(c.command)}return(h,g)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["rc-dropdown-item",{"is-disabled":t.disabled,"is-divided":t.divided}]),onClick:n},[t.icon?(e.openBlock(),e.createBlock(W,{key:0,name:t.icon,class:"rc-dropdown-item__icon"},null,8,["name"])):e.createCommentVNode("",!0),e.createElementVNode("span",na,[e.renderSlot(h.$slots,"default",{},void 0,!0)])],2))}}),ze=j(aa,[["__scopeId","data-v-7c739fdf"]]);Re.name="rc-dropdown";Be.name="rc-dropdown-menu";ze.name="rc-dropdown-item";function qe(t){return t.component(Re.name,Re),t.component(Be.name,Be),t.component(ze.name,ze),t}const we=Symbol("RECYCLE_UI_CONFIG"),Fe={prefix:"rc",autoRegister:!0,provideKey:we,theme:{},iconCssUrl:"//at.alicdn.com/t/c/font_4252799_2vm5jrrzfvq.css",iconClass:"iconfont",inputDeviceType:"pc"};function oa(t,c){c.autoRegister!==!1&&(typeof Ae=="function"&&Ae(t),typeof Ye=="function"&&Ye(t),typeof Pe=="function"&&Pe(t),typeof et=="function"&&et(t),typeof Oe=="function"&&Oe(t),typeof We=="function"&&We(t),typeof Ke=="function"&&Ke(t),typeof Ue=="function"&&Ue(t),typeof He=="function"&&He(t),typeof Ge=="function"&&Ge(t),typeof qe=="function"&&qe(t))}const Je=(t,c)=>{const m={...Fe,...c||{}};if(t.provide(m.provideKey??we,m),t.config.globalProperties.$recycleUI=m,typeof window<"u"&&m.iconCssUrl){const n=`link[rel="stylesheet"][data-rcui-icon="true"][href="${m.iconCssUrl}"]`;if(!document.head.querySelector(n)){const g=document.createElement("link");g.rel="stylesheet",g.href=m.iconCssUrl,g.setAttribute("data-rcui-icon","true"),document.head.appendChild(g)}}return oa(t,m),t},la={install:Je};function ra(t){return{install(c){Je(c,t)}}}exports.RECYCLE_UI_SYMBOL=we;exports.RcButton=le;exports.RcCalendar=he;exports.RcCard=be;exports.RcDescriptions=nt;exports.RcDescriptionsItem=at;exports.RcDropdown=Re;exports.RcDropdownItem=ze;exports.RcDropdownMenu=Be;exports.RcIcon=W;exports.RcInput=Te;exports.RcPopup=ye;exports.RcSearchArea=je;exports.RcToast=Ce;exports.createRecycleUI=ra;exports.default=la;exports.defaultRecycleUIConfig=Fe;exports.hideToast=ot;exports.install=Je;exports.installButton=Ae;exports.installCalendar=Ue;exports.installCard=Pe;exports.installDescriptions=Ye;exports.installDropdown=qe;exports.installIcon=Oe;exports.installInput=Ge;exports.installMessage=We;exports.installPopup=He;exports.installSearchArea=Ke;exports.message=lt;exports.rcDescriptions=nt;exports.rcDescriptionsItem=at;exports.showToast=It;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),ct={key:0,class:"rc-icon__unicode"},st=e.defineComponent({name:"rc-icon",__name:"index",props:{name:{},size:{default:16},color:{default:""},spin:{type:Boolean,default:!1},code:{default:""}},setup(t){const c=t,m=e.inject(De,{}),n=e.computed(()=>(m==null?void 0:m.iconClass)||"iconfont"),y=e.computed(()=>c.name||""),b=e.computed(()=>typeof c.size=="number"?`${c.size}px`:c.size||"16px"),f=e.computed(()=>({fontSize:b.value,color:c.color||void 0,lineHeight:1,fontFamily:(m==null?void 0:m.iconClass)||"iconfont"})),d=e.computed(()=>{const s=c.code;if(s==null||s===""||s===0)return"";if(typeof s=="number")return String.fromCharCode(s);const p=String(s).replace(/^0x/i,""),E=parseInt(p,16);return Number.isNaN(E)?"":String.fromCharCode(E)});return e.onMounted(()=>{if(typeof window>"u")return;const s=m&&m.iconCssUrl||Fe.iconCssUrl;if(!s)return;const p=`link[rel="stylesheet"][data-rcui-icon="true"][href="${s}"]`;if(!document.head.querySelector(p)){const g=document.createElement("link");g.rel="stylesheet",g.href=s,g.setAttribute("data-rcui-icon","true"),document.head.appendChild(g)}}),(s,p)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["rc-icon",[n.value,y.value,{"rc-icon--spin":t.spin}]]),style:e.normalizeStyle(f.value),"aria-hidden":"true"},[d.value?(e.openBlock(),e.createElementBlock("span",ct,e.toDisplayString(d.value),1)):e.createCommentVNode("",!0)],6))}}),K=(t,c)=>{const m=t.__vccOpts||t;for(const[n,y]of c)m[n]=y;return m},P=K(st,[["__scopeId","data-v-3857a892"]]),it=["disabled"],ut={key:0,class:"rc-button__spinner"},dt={key:0,class:"rc-button__icon rc-button__icon--prefix"},ft={key:2,class:"rc-button__icon rc-button__icon--suffix"},mt=e.defineComponent({__name:"index",props:{type:{default:"default"},size:{default:"medium"},mode:{default:void 0},block:{type:Boolean,default:!1},label:{default:""},round:{type:[Number,String,Boolean],default:6},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},preIcon:{default:""},suffixIcon:{default:""}},emits:["click"],setup(t,{emit:c}){const m=t,n=c,y=f=>{!m.disabled&&!m.loading&&n("click",f)},b=e.computed(()=>{const f=m.round;return typeof f=="boolean"?f?"999px":"6px":typeof f=="number"?`${f}px`:String(f)});return(f,d)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["rc-button",[`rc-button--${t.type}`,`rc-button--${t.size}`,t.mode?`rc-button--${t.mode}`:"",{"is-block":t.block,"is-disabled":t.disabled,"is-loading":t.loading}]]),style:e.normalizeStyle({borderRadius:b.value}),disabled:t.disabled||t.loading,onClick:y},[t.loading?(e.openBlock(),e.createElementBlock("span",ut)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.preIcon||f.$slots.preIcon?(e.openBlock(),e.createElementBlock("span",dt,[e.renderSlot(f.$slots,"preIcon",{},()=>[t.preIcon?(e.openBlock(),e.createBlock(P,{key:0,name:t.preIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],64)),e.renderSlot(f.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0),!t.loading&&(t.suffixIcon||f.$slots.suffixIcon)?(e.openBlock(),e.createElementBlock("span",ft,[e.renderSlot(f.$slots,"suffixIcon",{},()=>[t.suffixIcon?(e.openBlock(),e.createBlock(P,{key:0,name:t.suffixIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],14,it))}}),le=K(mt,[["__scopeId","data-v-4c6a5e4f"]]);le.name="rc-button";function Ae(t){return t.component(le.name,le),t}const vt={class:"rc-desc-item__value"},pt=e.defineComponent({name:"rc-descriptions-item",__name:"item",props:{label:{default:""},value:{default:""},labelWidth:{default:""},span:{default:1},labelPosition:{default:void 0}},setup(t){const c=t;e.inject("rcDescItemWidth",void 0),e.inject("rcDescSingleWidth",""),e.inject("rcDescGap","0px");const m=e.inject("rcDescGapPx",0),n=e.inject("rcDescColCount",1),y=e.inject("rcDescLabelWidth",""),b=e.inject("rcDescLabelPosition","left"),f=e.computed(()=>{const g=typeof c.span=="string"?parseInt(c.span,10):c.span,h=typeof(n==null?void 0:n.value)=="number"?n.value:n,D=!Number.isNaN(g)&&g>0?g:1;return Math.min(D,h||1)}),d=e.computed(()=>{const g=typeof(n==null?void 0:n.value)=="number"?n.value:n,h=typeof(m==null?void 0:m.value)=="number"?m.value:m,D=f.value;if(!g||g<=1||D>=g)return"100%";const N=(g-1)*h,w=(D-1)*h;return`calc((100% - ${N}px) * ${D} / ${g} + ${w}px)`}),s=e.computed(()=>c.labelPosition!==void 0?c.labelPosition:(typeof(b==null?void 0:b.value)=="string"?b.value:b)||"left"),p=e.computed(()=>({width:d.value,flex:`0 0 ${d.value}`})),E=e.computed(()=>{if(s.value==="top")return{};const g=typeof(y==null?void 0:y.value)=="string"?y.value:y,h=c.labelWidth!==""?c.labelWidth:g||"";return h?{width:typeof h=="number"?`${h}px`:String(h),flex:"0 0 auto"}:{}});return(g,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-desc-item",{"rc-desc-item--label-top":s.value==="top"}]),style:e.normalizeStyle(p.value)},[e.createElementVNode("div",{class:"rc-desc-item__label",style:e.normalizeStyle(E.value)},[e.renderSlot(g.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)],4),e.createElementVNode("div",vt,[e.renderSlot(g.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)],!0)])],6))}}),ye=K(pt,[["__scopeId","data-v-77b4359d"]]),yt={class:"rc-descriptions"},ht={key:0,class:"rc-descriptions__title"},gt=e.defineComponent({name:"rc-descriptions",__name:"index",props:{title:{},column:{default:2},gap:{default:4},labelWidth:{default:""},labelPosition:{default:"left"},data:{default:()=>[]},keyMap:{}},setup(t){const c=t,m=e.ref(null),n=e.computed(()=>typeof c.gap=="number"?`${c.gap}px`:String(c.gap));e.computed(()=>c.labelPosition);const y=e.computed(()=>{const p=typeof c.column=="string"?Number.parseInt(c.column,10):c.column??1;return!Number.isNaN(p)&&p>0?p:1}),b=e.ref("100%"),f=e.ref("100%");e.watchEffect(()=>{const p=y.value;if(p<=1)b.value="100%",f.value="100%";else{const E=typeof c.gap=="number"?c.gap:parseFloat(String(c.gap))||0,h=`calc((100% - ${(p-1)*E}px) / ${p})`;f.value=h,b.value=h}}),e.provide("rcDescItemWidth",b),e.provide("rcDescSingleWidth",f),e.provide("rcDescColCount",y),e.provide("rcDescGapPx",e.computed(()=>typeof c.gap=="number"?c.gap:parseFloat(String(c.gap))||0));const d=e.computed(()=>c.labelWidth===""||c.labelWidth===void 0?"":typeof c.labelWidth=="number"?`${c.labelWidth}px`:String(c.labelWidth));e.provide("rcDescLabelWidth",d),e.provide("rcDescGap",e.computed(()=>typeof c.gap=="number"?`${c.gap}px`:String(c.gap))),e.provide("rcDescLabelPosition",e.computed(()=>c.labelPosition));const s=e.computed(()=>{var g,h,D;const p=((g=c.keyMap)==null?void 0:g.key)??"label",E=((h=c.keyMap)==null?void 0:h.value)??"value";return(D=c.data)!=null&&D.length?c.data.map(N=>({label:N==null?void 0:N[p],value:N==null?void 0:N[E]})):[]});return(p,E)=>(e.openBlock(),e.createElementBlock("div",yt,[p.$slots.title||t.title?(e.openBlock(),e.createElementBlock("div",ht,[e.renderSlot(p.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-descriptions__body",style:e.normalizeStyle({gap:n.value}),ref_key:"wrapEl",ref:m},[s.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,(g,h)=>(e.openBlock(),e.createBlock(ye,{key:h,label:g.label,value:g.value,"label-width":t.labelWidth},null,8,["label","value","label-width"]))),128)):e.renderSlot(p.$slots,"default",{key:1},void 0,!0)],4)]))}}),_e=K(gt,[["__scopeId","data-v-8da66092"]]);_e.name="rc-descriptions";ye.name="rc-descriptions-item";function Ye(t){return t.component(_e.name,_e),t.component("RcDescriptions",_e),t.component(ye.name,ye),t.component("RcDescriptionsItem",ye),t}const nt=_e,at=ye,kt={class:"rc-card__title"},bt={class:"rc-card__title-text"},_t={key:0,class:"rc-card__status"},Ct={key:1,class:"rc-card__divider"},Bt={key:2,class:"rc-card__action"},wt=e.defineComponent({name:"rc-card",__name:"index",props:{color:{default:"var(--rc-white)"},topBgColor:{default:"rgba(29, 133, 252, 0.05)"},title:{default:""},status:{default:""},statusColor:{default:"var(--rc-primary)"},round:{default:8},bordered:{type:Boolean,default:!1},elevation:{default:2},padding:{default:"16px"},gap:{default:12},width:{default:"100%"},height:{default:""}},setup(t){const c=t,m=e.computed(()=>{const d=typeof c.round=="boolean"?c.round?"12px":"0":typeof c.round=="number"?`${c.round}px`:String(c.round);return{backgroundColor:c.color||"var(--rc-white)",borderRadius:d,boxShadow:f(c.elevation),width:b(c.width),height:b(c.height)}}),n=e.computed(()=>c.padding||"16px"),y=e.computed(()=>typeof c.gap=="number"?`${c.gap}px`:String(c.gap));function b(d){return d==null||d===""?"":typeof d=="number"?`${d}px`:String(d)}function f(d){if(!d||d<=0)return"none";const s=4*d;return`0 ${Math.round(s/2)}px ${s}px rgba(0,0,0,0.06), 0 ${Math.round(s/4)}px ${Math.round(s/2)}px rgba(0,0,0,0.04)`}return(d,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-card",[{"rc-card--bordered":t.bordered}]]),style:e.normalizeStyle(m.value)},[d.$slots.title||t.title||d.$slots.status||t.status?(e.openBlock(),e.createElementBlock("div",{key:0,class:"rc-card__top",style:e.normalizeStyle({backgroundColor:t.topBgColor||"rgba(29, 133, 252, 0.05)"})},[e.createElementVNode("div",kt,[e.renderSlot(d.$slots,"title",{},()=>[e.createElementVNode("span",bt,e.toDisplayString(t.title),1)],!0)]),d.$slots.status||t.status?(e.openBlock(),e.createElementBlock("div",_t,[e.renderSlot(d.$slots,"status",{},()=>[e.createElementVNode("span",{class:"rc-card__status-text",style:e.normalizeStyle({color:t.statusColor||"var(--rc-primary)"})},e.toDisplayString(t.status),5)],!0)])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-card__body",style:e.normalizeStyle({padding:n.value,gap:y.value})},[e.renderSlot(d.$slots,"content",{},()=>[e.renderSlot(d.$slots,"default",{},void 0,!0)],!0)],4),d.$slots.action?(e.openBlock(),e.createElementBlock("div",Ct)):e.createCommentVNode("",!0),d.$slots.action?(e.openBlock(),e.createElementBlock("div",Bt,[e.renderSlot(d.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),Ce=K(wt,[["__scopeId","data-v-a7b95214"]]);Ce.name="rc-card";const xt="RcCard";function Pe(t){return t.component(Ce.name,Ce),t.component(xt,Ce),t}const Dt={key:0,class:"rc-toast__mask"},Vt={class:"rc-toast__content"},$t={key:0,class:"rc-toast__spinner"},St={key:1,class:"rc-toast__icon rc-toast__icon--success"},Et={key:2,class:"rc-toast__icon rc-toast__icon--fail"},Nt={class:"rc-toast__text"},Mt=e.defineComponent({__name:"index",props:{message:{default:""},type:{default:"text"},duration:{default:2e3},mask:{type:Boolean,default:!1},onAfterLeave:{}},setup(t,{expose:c}){const m=t,n=e.ref(!0);let y;function b(){y&&(clearTimeout(y),y=null)}function f(){b(),n.value=!1}return c({close:f}),e.onMounted(()=>{m.duration&&m.duration>0&&(y=setTimeout(()=>{f()},m.duration))}),e.onUnmounted(()=>{b()}),(d,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"rc-toast-fade",onAfterLeave:t.onAfterLeave},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-toast",[`rc-toast--${t.type}`]])},[t.mask?(e.openBlock(),e.createElementBlock("div",Dt)):e.createCommentVNode("",!0),e.createElementVNode("div",Vt,[t.type==="loading"?(e.openBlock(),e.createElementBlock("div",$t)):t.type==="success"?(e.openBlock(),e.createElementBlock("div",St)):t.type==="fail"?(e.openBlock(),e.createElementBlock("div",Et)):e.createCommentVNode("",!0),e.createElementVNode("div",Nt,e.toDisplayString(t.message),1)])],2)):e.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])])),e.renderSlot(d.$slots,"default",{},void 0,!0)],64))}}),Be=K(Mt,[["__scopeId","data-v-d234c9c5"]]);let me=null,he=null;function Ze(){me&&(me.unmount(),me=null),he&&(document.body.removeChild(he),he=null)}function It(t){const c=typeof t=="string"?{message:t}:t||{};Ze(),he=document.createElement("div"),document.body.appendChild(he);const m={message:c.message,type:c.type??"text",duration:c.duration??2e3,mask:c.mask??!1,onAfterLeave:()=>{var n;Ze(),(n=c.onClose)==null||n.call(c)}};return me=e.createApp(Be,m),me.mount(he),{close:ot}}function ot(){var t,c,m;me&&((m=(c=(t=me._instance)==null?void 0:t.exposed)==null?void 0:c.close)==null||m.call(c))}Be.name="rc-toast";function et(t){return t.component(Be.name,Be),t}const Tt={class:"rc-message",role:"alert","aria-live":"polite"},Rt={class:"rc-message__content"},zt=e.defineComponent({__name:"index",setup(t,{expose:c}){const m=e.reactive([]);let n=1;function y(f){const d=m.findIndex(s=>s.id===f);d>=0&&m.splice(d,1)}function b(f,d,s){const p=n++;return m.push({id:p,type:f,content:d,duration:s}),s>0&&window.setTimeout(()=>y(p),s),p}return c({add:b,remove:y}),(f,d)=>(e.openBlock(),e.createElementBlock("div",Tt,[e.createVNode(e.TransitionGroup,{name:"rc-message-fade",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:e.normalizeClass(["rc-message__item",`rc-message--${s.type}`])},[e.createElementVNode("span",Rt,e.toDisplayString(s.content),1)],2))),128))]),_:1})]))}}),Ft=K(zt,[["__scopeId","data-v-87811df0"]]);let fe=null,de=null;function Lt(){var c;if(fe&&de)return;fe=document.createElement("div"),document.body.appendChild(fe);const t=e.createVNode(Ft,{});e.render(t,fe),de=(c=t.component)==null?void 0:c.exposed}function pe(t,c,m){var y;Lt();const n=typeof m=="number"?m:t==="loading"?0:2e3;return(y=de==null?void 0:de.add)==null?void 0:y.call(de,t,c,n)}const lt={open(t){return pe(t.type||"info",t.content,t.duration)},info(t,c){return pe("info",t,c)},success(t,c){return pe("success",t,c)},warning(t,c){return pe("warning",t,c)},error(t,c){return pe("error",t,c)},loading(t,c){return pe("loading",t,c)},destroy(){fe&&(e.render(null,fe),fe.remove(),fe=null,de=null)}};function We(t){return t.config.globalProperties.$message=lt,t}P.name="rc-icon";function je(t){return t.component(P.name,P),t.component("RcIcon",P),t}const At={class:"rc-popup__content"},Yt=e.defineComponent({name:"rc-popup",__name:"index",props:{modelValue:{type:Boolean,default:!1},position:{default:"center"},overlay:{type:Boolean,default:!0},overlayClass:{default:""},overlayStyle:{default:void 0},closeable:{type:Boolean,default:!1},closeIconPosition:{default:"top-right"},closeIcon:{default:"icon_close"},round:{type:Boolean,default:!1},popupStyle:{default:void 0},closeOnClickOverlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0}},emits:["update:modelValue","open","close","click-overlay"],setup(t,{expose:c,emit:m}){const n=t,y=m,b=e.ref(),f=e.ref(n.modelValue);e.watch(()=>n.modelValue,i=>{f.value=i,i?(y("open"),n.lockScroll&&E()):(y("close"),n.lockScroll&&g())},{immediate:!0}),e.watch(f,i=>{i!==n.modelValue&&y("update:modelValue",i)});const d=e.computed(()=>`rc-popup-slide-${n.position}`),s=e.computed(()=>({...n.popupStyle||{}}));let p=!1;function E(){p||(p=!0,document.body.style.overflow="hidden")}function g(){p&&(p=!1,document.body.style.overflow="")}function h(){y("click-overlay"),n.closeOnClickOverlay&&N()}function D(){N()}function N(){f.value=!1}function w(){f.value=!0}return e.onUnmounted(()=>{g()}),c({open:w,close:N,visible:f}),(i,Z)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"rc-popup-fade"},{default:e.withCtx(()=>[f.value&&n.overlay?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-popup__overlay",{"rc-popup__overlay--transparent":n.overlayClass==="transparent"}]),style:e.normalizeStyle(n.overlayStyle),onClick:h},null,6)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:d.value},{default:e.withCtx(()=>[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"popupRef",ref:b,class:e.normalizeClass(["rc-popup",[`rc-popup--${t.position}`,{"rc-popup--round":t.round}]]),style:e.normalizeStyle(s.value),onClick:Z[0]||(Z[0]=e.withModifiers(()=>{},["stop"]))},[t.closeable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-popup__close",`rc-popup__close--${t.closeIconPosition}`]),onClick:D},[e.createVNode(P,{name:t.closeIcon,class:"rc-popup__close-icon"},null,8,["name"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",At,[e.renderSlot(i.$slots,"default",{},void 0,!0)])],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),ge=K(Yt,[["__scopeId","data-v-f1696784"]]);ge.name="rc-popup";const Pt="RcPopup";function Oe(t){return t.component(ge.name,ge),t.component(Pt,ge),t}const Wt={key:0,class:"rc-calendar__header"},jt={class:"rc-calendar__header-title"},Ot={key:1,class:"rc-calendar__shortcuts"},Ht={class:"rc-calendar__shortcuts-scroll"},Ut=["onClick"],Kt={class:"rc-calendar__month-title"},Gt={class:"rc-calendar__weekdays"},qt={class:"rc-calendar__days"},Jt=["onClick"],Qt={class:"rc-calendar__day-content"},Xt={class:"rc-calendar__day-text"},Zt={key:0,class:"rc-calendar__day-bottom"},en={key:2,class:"rc-calendar__footer"},tn={key:0,class:"rc-calendar__month-picker-overlay"},nn={class:"rc-calendar__month-picker"},an={class:"rc-calendar__month-picker-header"},on={class:"rc-calendar__month-picker-title"},ln={key:0},rn={key:0,class:"rc-calendar__year-picker-content"},cn={class:"rc-calendar__year-picker-grid"},sn=["onClick"],un={key:1,class:"rc-calendar__month-picker-content"},dn=["onClick"],Te=48,Q=3,Le=7,fn=e.defineComponent({__name:"panel-content",props:{showTitle:{type:Boolean},title:{},range:{type:Boolean},selectedDate:{},rangeStart:{},rangeEnd:{},minDate:{},maxDate:{},disabledDate:{type:Function},formatter:{type:Function},showFooter:{type:Boolean},maxRangeDays:{}},emits:["select-day","clear","confirm","shortcut-select"],setup(t,{expose:c,emit:m}){const n=t,y=m,b=["日","一","二","三","四","五","六"];function f(o){if(!o)return null;const r=new Date(o);return isNaN(r.getTime())?null:r}function d(o){const r=o.getFullYear(),k=String(o.getMonth()+1).padStart(2,"0"),S=String(o.getDate()).padStart(2,"0");return`${r}-${k}-${S}`}const s=e.ref(new Date);e.watch(()=>[n.selectedDate,n.rangeStart],()=>{if(n.range&&n.rangeStart){const o=f(n.rangeStart);o&&(s.value=o)}else if(!n.range&&n.selectedDate){const o=f(n.selectedDate);o&&(s.value=o)}},{immediate:!0});function p(o){const r=new Date;return o.getFullYear()===r.getFullYear()&&o.getMonth()===r.getMonth()&&o.getDate()===r.getDate()}function E(o){if(!n.rangeStart||!n.rangeEnd)return!1;const r=d(o),k=n.rangeStart,S=n.rangeEnd;return r>k&&r<S}function g(o){if(n.disabledDate&&n.disabledDate(o))return!0;const r=d(o);return!!(n.minDate&&r<n.minDate||n.maxDate&&r>n.maxDate)}function h(o,r){const k=new Date(o,r,1),S=new Date(o,r+1,0),W=k.getDay(),ie=S.getDate(),ue=[],Qe=new Date(o,r,0).getDate();for(let G=W-1;G>=0;G--){const q={date:new Date(o,r-1,Qe-G),type:"prev-month",text:String(Qe-G)};if(n.formatter){const J=n.formatter(q);J.text&&(q.text=J.text),J.bottomInfo&&(q.bottomInfo=J.bottomInfo)}ue.push(q)}for(let G=1;G<=ie;G++){const q={date:new Date(o,r,G),type:"current-month",text:String(G)};if(n.formatter){const J=n.formatter(q);J.text&&(q.text=J.text),J.bottomInfo&&(q.bottomInfo=J.bottomInfo)}ue.push(q)}const rt=42-ue.length;for(let G=1;G<=rt;G++){const q={date:new Date(o,r+1,G),type:"next-month",text:String(G)};if(n.formatter){const J=n.formatter(q);J.text&&(q.text=J.text),J.bottomInfo&&(q.bottomInfo=J.bottomInfo)}ue.push(q)}return ue}const D=e.computed(()=>{const o=s.value.getFullYear(),r=s.value.getMonth();return h(o,r)}),N=e.computed(()=>{const o=s.value.getFullYear(),r=s.value.getMonth()+1;return`${o}年${r}月`});function w(o){const r=[];if(o.type!=="current-month"&&r.push("is-other-month"),p(o.date)&&r.push("is-today"),g(o.date))return r.push("is-disabled"),r;const k=d(o.date);return n.range?(n.rangeStart===k&&r.push("is-start"),n.rangeEnd===k&&r.push("is-end"),E(o.date)&&r.push("is-in-range")):n.selectedDate===k&&r.push("is-selected"),r}const i=e.computed(()=>!!(n.rangeStart&&n.rangeEnd)),Z=e.computed(()=>n.rangeStart&&n.rangeEnd?2:n.rangeStart||n.rangeEnd?1:0);function ee(o){if(!n.minDate&&!n.maxDate)return!1;const r=n.minDate?f(n.minDate):null,k=n.maxDate?f(n.maxDate):null;return!!(r&&o<r.getFullYear()||k&&o>k.getFullYear())}function te(o,r){const k=n.minDate?f(n.minDate):null,S=n.maxDate?f(n.maxDate):null;if(k){const W=k.getFullYear(),ie=k.getMonth()+1;if(o<W||o===W&&r<ie)return!0}if(S){const W=S.getFullYear(),ie=S.getMonth()+1;if(o>W||o===W&&r>ie)return!0}return!1}const L=e.ref(!1),F=e.ref("year"),A=e.ref(s.value.getFullYear()),M=e.ref(s.value.getMonth()+1),Y=e.ref(),x=e.ref(1900),$=e.ref(1920),V=e.ref(1900),I=e.ref(2100),ne=e.computed(()=>{const o=[],k=Math.floor((x.value-V.value)/Q)-3,S=Math.ceil(($.value-V.value)/Q)+3,W=V.value+Math.max(0,k)*Q,ie=V.value+S*Q-1;for(let ue=W;ue<=ie;ue++)o.push(ue);return o});e.watch(()=>s.value,o=>{A.value=o.getFullYear(),M.value=o.getMonth()+1},{immediate:!0});function ae(){if(!Y.value)return;const o=Y.value.scrollTop,k=Math.max(0,Math.floor(o/Te)),S=V.value+k*Q,W=S+Le*Q-1;S<V.value?V.value=S-100:W>I.value&&(I.value=W+100),(S!==x.value||W!==$.value)&&(x.value=S,$.value=W)}function oe(){A.value=s.value.getFullYear(),M.value=s.value.getMonth()+1,F.value="year",L.value=!0;const o=A.value;o<V.value?V.value=Math.floor(o/100)*100:o>I.value&&(I.value=Math.ceil(o/100)*100+99),e.nextTick(()=>{if(Y.value){const r=Math.floor((o-V.value)/Q),k=Math.max(0,r-2);x.value=V.value+k*Q,$.value=x.value+Le*Q-1,re(o)}})}function re(o){if(!Y.value)return;o<V.value?V.value=Math.floor(o/100)*100:o>I.value&&(I.value=Math.ceil(o/100)*100+99);const r=Math.floor((o-V.value)/Q),k=r*Te;Y.value.scrollTop=k;const S=Math.max(0,r-2);x.value=V.value+S*Q,$.value=x.value+Le*Q-1}function C(){const o=new Date(s.value);o.setMonth(o.getMonth()-1),s.value=o}function B(){const o=new Date(s.value);o.setMonth(o.getMonth()+1),s.value=o}function T(o){ee(o)||(A.value=o,F.value="month")}function H(o){te(A.value,o)||(M.value=o,v())}function v(){const o=new Date(s.value);o.setFullYear(A.value),o.setMonth(M.value-1),s.value=o,L.value=!1,F.value="year"}function j(o){y("select-day",o)}function a(){y("clear")}function l(){U.value&&a()}function u(){y("confirm")}function _(){L.value=!1}function z(o){F.value=o}function R(){const r=new Date().getFullYear();ee(r)||(A.value=r,F.value="month")}function O(){const r=new Date().getMonth()+1;te(A.value,r)||(M.value=r,v())}const U=e.computed(()=>n.range?!!(n.rangeStart||n.rangeEnd):!!n.selectedDate);function X(o,r){const k=f(o),S=f(r);if(!k||!S)return 0;const W=Math.abs(S.getTime()-k.getTime());return Math.ceil(W/(1e3*60*60*24))+1}function ce(){return d(new Date)}function ve(){const o=new Date,r=o.getDay(),k=o.getDate()-r+(r===0?-6:1);return new Date(o.getFullYear(),o.getMonth(),k)}function se(){const o=ve(),r=new Date(o);return r.setDate(o.getDate()+6),r}function Ve(){const o=new Date;return new Date(o.getFullYear(),o.getMonth(),1)}function be(){const o=new Date;return new Date(o.getFullYear(),o.getMonth()+1,0)}function $e(){const o=new Date;return new Date(o.getFullYear(),o.getMonth()-2,1)}function Se(){const o=new Date;return new Date(o.getFullYear(),0,1)}function Ee(){const o=new Date;return new Date(o.getFullYear(),11,31)}const Ne=[{key:"today",label:"本日",days:1,getRange:()=>{const o=ce();return[o,o]}},{key:"week",label:"本周",days:7,getRange:()=>{const o=d(ve()),r=d(se());return[o,r]}},{key:"month",label:"本月",getRange:()=>{const o=d(Ve()),r=d(be());return[o,r]}},{key:"threeMonths",label:"近三月",getRange:()=>{const o=d($e()),r=d(be());return[o,r]}},{key:"year",label:"本年",getRange:()=>{const o=d(Se()),r=d(Ee());return[o,r]}},{key:"last7Days",label:"近7天",days:7,getRange:()=>{const o=new Date,r=new Date(o);return r.setDate(o.getDate()-6),[d(r),ce()]}},{key:"last30Days",label:"近30天",days:30,getRange:()=>{const o=new Date,r=new Date(o);return r.setDate(o.getDate()-29),[d(r),ce()]}}],Me=e.computed(()=>Ne.filter(o=>{if(n.maxRangeDays!==void 0){if(o.days!==void 0)return o.days<=n.maxRangeDays;{const r=o.getRange();if(r)return X(r[0],r[1])<=n.maxRangeDays}}return!0}));function Ie(o){const r=o.getRange();if(r){if(n.minDate&&r[0]<n.minDate||n.maxDate&&r[1]>n.maxDate)return;y("shortcut-select",r)}}return c({yearScrollRef:Y}),(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[t.showTitle?(e.openBlock(),e.createElementBlock("div",Wt,[e.createElementVNode("div",jt,e.toDisplayString(t.title),1),e.createElementVNode("span",{class:e.normalizeClass(["rc-calendar__header-clear",{"is-disabled":!U.value}]),onClick:l}," 清空 ",2)])):e.createCommentVNode("",!0),t.range?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("div",Ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Me.value,k=>(e.openBlock(),e.createElementBlock("div",{key:k.key,class:"rc-calendar__shortcut-item",onClick:S=>Ie(k)},e.toDisplayString(k.label),9,Ut))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Kt,[e.createElementVNode("div",{class:"rc-calendar__nav-button",onClick:C},[e.createVNode(e.unref(P),{name:"icon_caret-left",class:"rc-calendar__nav-icon"})]),e.createElementVNode("div",{class:"rc-calendar__month-text",onClick:oe},e.toDisplayString(N.value),1),e.createElementVNode("div",{class:"rc-calendar__nav-button",onClick:B},[e.createVNode(e.unref(P),{name:"icon_caret-right",class:"rc-calendar__nav-icon"})])]),e.createElementVNode("div",Gt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(b,k=>e.createElementVNode("div",{key:k,class:"rc-calendar__weekday"},e.toDisplayString(k),1)),64))]),e.createElementVNode("div",qt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(k,S)=>(e.openBlock(),e.createElementBlock("div",{key:S,class:e.normalizeClass(["rc-calendar__day",w(k)]),onClick:W=>j(k)},[e.createElementVNode("div",Qt,[e.createElementVNode("span",Xt,e.toDisplayString(k.text),1),k.bottomInfo?(e.openBlock(),e.createElementBlock("span",Zt,e.toDisplayString(k.bottomInfo),1)):e.createCommentVNode("",!0)])],10,Jt))),128))]),t.range&&t.showFooter?(e.openBlock(),e.createElementBlock("div",en,[e.createVNode(e.unref(le),{type:"default",class:"rc-calendar__footer-reset",onClick:a},{default:e.withCtx(()=>[...r[2]||(r[2]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(le),{type:"primary",class:"rc-calendar__footer-confirm",disabled:!i.value,onClick:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value?`确定(${Z.value}项)`:"确定"),1)]),_:1},8,["disabled"])])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"rc-calendar-fade"},{default:e.withCtx(()=>[L.value?(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("div",nn,[e.createElementVNode("div",an,[e.createVNode(e.unref(le),{type:"default",mode:"text",size:"small",onClick:_},{default:e.withCtx(()=>[...r[3]||(r[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createElementVNode("div",on,[e.createElementVNode("span",{onClick:r[0]||(r[0]=k=>z("year"))},e.toDisplayString(A.value)+"年",1),F.value==="month"?(e.openBlock(),e.createElementBlock("span",ln," - ")):e.createCommentVNode("",!0),F.value==="month"?(e.openBlock(),e.createElementBlock("span",{key:1,onClick:r[1]||(r[1]=k=>z("month"))},e.toDisplayString(M.value)+"月",1)):e.createCommentVNode("",!0)]),F.value==="year"?(e.openBlock(),e.createBlock(e.unref(le),{key:0,type:"primary",mode:"text",size:"small",onClick:R},{default:e.withCtx(()=>[...r[4]||(r[4]=[e.createTextVNode(" 本年 ",-1)])]),_:1})):e.createCommentVNode("",!0),F.value==="month"?(e.openBlock(),e.createBlock(e.unref(le),{key:1,type:"primary",mode:"text",size:"small",onClick:O},{default:e.withCtx(()=>[...r[5]||(r[5]=[e.createTextVNode(" 本月 ",-1)])]),_:1})):e.createCommentVNode("",!0)]),F.value==="year"?(e.openBlock(),e.createElementBlock("div",rn,[e.createElementVNode("div",{class:"rc-calendar__year-picker-scroll",ref_key:"yearScrollRef",ref:Y,onScroll:ae},[e.createElementVNode("div",{class:"rc-calendar__year-picker-spacer",style:e.normalizeStyle({height:`${Math.floor((x.value-V.value)/Q)*Te}px`})},null,4),e.createElementVNode("div",cn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,k=>(e.openBlock(),e.createElementBlock("div",{key:k,class:e.normalizeClass(["rc-calendar__year-picker-item",{"is-selected":A.value===k,"is-disabled":ee(k)}]),onClick:S=>T(k)},e.toDisplayString(k),11,sn))),128))]),e.createElementVNode("div",{class:"rc-calendar__year-picker-spacer",style:e.normalizeStyle({height:`${Math.ceil((I.value-$.value)/Q)*Te}px`})},null,4)],544)])):e.createCommentVNode("",!0),F.value==="month"?(e.openBlock(),e.createElementBlock("div",un,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,k=>e.createElementVNode("div",{key:k,class:e.normalizeClass(["rc-calendar__month-picker-item",{"is-selected":M.value===k,"is-disabled":te(A.value,k)}]),onClick:S=>H(k)},e.toDisplayString(k)+"月 ",11,dn)),64))])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1})]))}}),tt=K(fn,[["__scopeId","data-v-0bf1834b"]]),mn={class:"rc-calendar"},vn=["placeholder"],pn={class:"rc-calendar__input-actions"},yn={key:1,class:"rc-calendar__panel"},hn=e.defineComponent({name:"rc-calendar",__name:"index",props:{modelValue:{default:null},range:{type:[Boolean,Number],default:!1},mode:{default:"default"},placeholder:{default:"请选择日期"},showTitle:{type:Boolean,default:!0},title:{default:"选择日期"},minDate:{default:void 0},maxDate:{default:void 0},disabledDate:{type:Function,default:void 0},formatter:{type:Function,default:void 0},showFooter:{type:Boolean,default:!0},endDateOffset:{type:Boolean,default:!1}},emits:["update:modelValue","change","confirm"],setup(t,{emit:c}){const m=t,n=c,y=e.ref(),b=e.ref(),f=e.ref(!1),d=e.ref(""),s=e.computed(()=>m.range===!0||typeof m.range=="number"),p=e.computed(()=>typeof m.range=="number"?m.range:void 0),E=e.computed(()=>C=>{if(m.disabledDate&&m.disabledDate(C))return!0;if(p.value!==void 0&&h.value&&!D.value){const B=i(C);if(w(h.value)&&Z(h.value,B)>p.value)return!0}return!1}),g=e.ref(null),h=e.ref(null),D=e.ref(null);e.watch(()=>m.modelValue,C=>{s.value?Array.isArray(C)&&C.length===2?(h.value=C[0],D.value=F(C[1])):(h.value=null,D.value=null):g.value=typeof C=="string"?C:null,N()},{immediate:!0});function N(){m.mode==="popup"&&(s.value?h.value&&D.value?d.value=`${h.value} ~ ${D.value}`:h.value?d.value=`${h.value} ~ `:d.value="":d.value=g.value||"")}function w(C){if(!C)return null;const B=new Date(C);return isNaN(B.getTime())?null:B}function i(C){const B=C.getFullYear(),T=String(C.getMonth()+1).padStart(2,"0"),H=String(C.getDate()).padStart(2,"0");return`${B}-${T}-${H}`}function Z(C,B){const T=w(C),H=w(B);if(!T||!H)return 0;const v=Math.abs(H.getTime()-T.getTime());return Math.ceil(v/(1e3*60*60*24))}function ee(C){const B=w(C);return B?(B.setDate(B.getDate()+1),i(B)):C}function te(C){const B=w(C);return B?(B.setDate(B.getDate()-1),i(B)):C}function L(C){return m.endDateOffset&&s.value?ee(C):C}function F(C){return m.endDateOffset&&s.value?te(C):C}function A(C){if(C.type!=="current-month"||m.disabledDate&&m.disabledDate(C.date))return;const B=i(C.date);if(!(m.minDate&&B<m.minDate)&&!(m.maxDate&&B>m.maxDate)){if(s.value)if(!h.value||h.value&&D.value)h.value=B,D.value=null;else{let T=h.value,H=B;if(B<h.value&&(H=h.value,T=B),h.value=T,D.value=H,h.value&&D.value){const v=L(D.value),j=[h.value,v];n("update:modelValue",j),n("change",j),m.showFooter||M()}}else{g.value=B;const T=B;n("update:modelValue",T),n("change",T),m.mode&&V()}N()}}function M(){if(h.value&&D.value){const C=L(D.value),B=[h.value,C];n("update:modelValue",B),n("change",B),n("confirm",B),V()}}function Y(){s.value?(h.value=null,D.value=null):g.value=null;const C=null;n("update:modelValue",C),n("change",C),N()}function x(C){h.value=C[0],D.value=C[1];const B=L(C[1]),T=[C[0],B];n("update:modelValue",T),n("change",T),m.showFooter?N():M()}function $(){f.value=!0}function V(){f.value=!1}function I(C){f.value=C}function ne(){$()}function ae(){m.mode==="popup"&&re()}function oe(){f.value||$()}function re(){const C=d.value.trim();if(s.value){const B=C.split("~").map(T=>T.trim());if(B.length===2&&B[0]&&B[1]){const T=w(B[0]),H=w(B[1]);if(T&&H&&!isNaN(T.getTime())&&!isNaN(H.getTime())){h.value=i(T);const v=i(H);D.value=F(v);const j=L(D.value),a=[h.value,j];n("update:modelValue",a),n("change",a);return}}}else{const B=w(C);if(B&&!isNaN(B.getTime())){g.value=i(B),n("update:modelValue",g.value),n("change",g.value);return}}N()}return(C,B)=>(e.openBlock(),e.createElementBlock("div",mn,[t.mode==="popup"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"rc-calendar__input",onClick:$},[e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:y,"onUpdate:modelValue":B[0]||(B[0]=T=>d.value=T),type:"text",class:"rc-calendar__input-field",placeholder:t.placeholder,readonly:"",onFocus:ne,onBlur:ae,onInput:oe},null,40,vn),[[e.vModelText,d.value]]),e.createElementVNode("div",pn,[e.createVNode(e.unref(P),{name:"icon_a-rili",class:"rc-calendar__input-icon"})])])):e.createCommentVNode("",!0),t.mode==="default"?(e.openBlock(),e.createElementBlock("div",yn,[e.createVNode(tt,{"show-title":t.showTitle,title:t.title,range:s.value,"selected-date":g.value,"range-start":h.value,"range-end":D.value,"min-date":t.minDate,"max-date":t.maxDate,"disabled-date":E.value,formatter:t.formatter,"show-footer":!1,"max-range-days":p.value,onSelectDay:A,onClear:Y,onConfirm:M,onShortcutSelect:x},null,8,["show-title","title","range","selected-date","range-start","range-end","min-date","max-date","disabled-date","formatter","max-range-days"])])):e.createCommentVNode("",!0),t.mode==="popup"?(e.openBlock(),e.createBlock(e.unref(ge),{key:2,modelValue:f.value,"onUpdate:modelValue":[B[1]||(B[1]=T=>f.value=T),I],position:"bottom",overlay:!0,round:!0,"close-on-click-overlay":!0,"lock-scroll":!0},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"popupPanelRef",ref:b,class:"rc-calendar__panel"},[e.createVNode(tt,{"show-title":t.showTitle,title:t.title,range:s.value,"selected-date":g.value,"range-start":h.value,"range-end":D.value,"min-date":t.minDate,"max-date":t.maxDate,"disabled-date":E.value,formatter:t.formatter,"show-footer":t.showFooter,"max-range-days":p.value,onSelectDay:A,onClear:Y,onConfirm:M,onShortcutSelect:x},null,8,["show-title","title","range","selected-date","range-start","range-end","min-date","max-date","disabled-date","formatter","show-footer","max-range-days"])],512)]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)]))}}),ke=K(hn,[["__scopeId","data-v-96b29c22"]]);ke.name="rc-calendar";const gn="RcCalendar";function He(t){return t.component(ke.name,ke),t.component(gn,ke),t}const kn={key:0,class:"rc-input__prepend"},bn={key:0,class:"rc-input__prefix"},_n={key:1,class:"rc-input__textarea-wrapper"},Cn={key:3,class:"rc-input__suffix"},Bn={key:0,class:"rc-input__suffix-inner"},wn={key:4,class:"rc-input__count"},xn={key:1,class:"rc-input__append"},Dn=e.defineComponent({__name:"index",props:{modelValue:{default:""},type:{default:"text"},size:{default:"default"},placeholder:{default:"请输入"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},showPassword:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},maxlength:{default:void 0},minlength:{default:void 0},showWordLimit:{type:Boolean,default:!1},rows:{default:2},autosize:{type:[Boolean,Object],default:!1},resize:{default:void 0},prefixIcon:{default:""},suffixIcon:{default:""},autocomplete:{default:"off"},name:{default:void 0},autofocus:{type:Boolean,default:!1},form:{default:void 0},tabindex:{default:void 0},formatter:{type:Function,default:void 0},parser:{type:Function,default:void 0},deviceType:{default:void 0}},emits:["update:modelValue","input","change","focus","blur","clear","keydown","mouseenter","mouseleave","compositionstart","compositionupdate","compositionend"],setup(t,{expose:c,emit:m}){const n=t,y=e.inject(De,{}),b=e.computed(()=>n.deviceType||(y==null?void 0:y.inputDeviceType)||Fe.inputDeviceType||"pc"),f=m,d=e.ref(),s=e.ref(n.modelValue??""),p=e.ref(!1),E=e.ref(!1),g=e.ref(!1);e.watch(()=>n.modelValue,v=>{s.value=v??""});const h=e.computed(()=>n.type==="password"?E.value?"text":"password":n.type),D=e.computed(()=>{const v=String(s.value??"");return n.formatter&&!g.value?n.formatter(v):v}),N=e.computed(()=>{const v=s.value;return v!==""&&v!==null&&v!==void 0}),w=e.computed(()=>String(s.value??"").length),i=e.computed(()=>!n.clearable||!N.value||n.disabled||n.readonly?!1:(b.value==="mobile",!0)),Z=e.useSlots(),ee=e.computed(()=>!!(n.suffixIcon||n.showPassword&&n.type==="password"||i.value&&n.type!=="textarea"||Z.suffix)),te=e.computed(()=>{if(n.type!=="textarea")return{};const v={};return n.autosize?v.resize="none":n.resize!==void 0?v.resize=n.resize:v.resize="vertical",v});function L(v){let a=v.target.value;n.parser&&!g.value&&(a=n.parser(a));const l=a===""?void 0:a;s.value=l,f("update:modelValue",l),f("input",l),n.type==="textarea"&&n.autosize&&e.nextTick(()=>{re()})}function F(v){p.value=!0,f("focus",v)}function A(v){p.value=!1;const j=s.value,a=j===""?void 0:j;f("blur",v),f("change",a)}function M(){s.value=void 0,f("update:modelValue",void 0),f("input",void 0),f("change",void 0),f("clear"),e.nextTick(()=>{var v;(v=d.value)==null||v.focus()})}function Y(){E.value=!E.value}function x(v){if(f("keydown",v),v.key==="Enter"&&n.type!=="textarea"){const j=s.value;f("change",j===""?void 0:j)}}function $(v){f("mouseenter",v)}function V(v){f("mouseleave",v)}function I(v){g.value=!0,f("compositionstart",v)}function ne(v){f("compositionupdate",v)}function ae(v){g.value=!1,f("compositionend",v),v.target&&L(v)}function oe(){var v;n.disabled||n.readonly||(v=d.value)==null||v.focus()}function re(){if(n.type!=="textarea"||!d.value)return;const v=d.value;if(n.autosize){v.style.height="auto";const j=v.scrollHeight;if(typeof n.autosize=="object"){const{minRows:a=2,maxRows:l}=n.autosize,u=parseInt(getComputedStyle(v).lineHeight)||20,_=a*u,z=l?l*u:1/0;v.style.height=`${Math.min(Math.max(j,_),z)}px`}else v.style.height=`${j}px`}}function C(){var v;(v=d.value)==null||v.focus()}function B(){var v;(v=d.value)==null||v.blur()}function T(){d.value&&"select"in d.value&&d.value.select()}function H(){M()}return e.onMounted(()=>{n.type==="textarea"&&n.autosize&&re()}),c({focus:C,blur:B,select:T,clear:H,resizeTextarea:re,inputRef:d}),(v,j)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-input",[`rc-input--${t.size}`,{"is-disabled":t.disabled,"is-focused":p.value,"is-readonly":t.readonly,"rc-input--textarea":t.type==="textarea","has-prepend":v.$slots.prepend,"has-append":v.$slots.append}]]),onClick:oe},[v.$slots.prepend?(e.openBlock(),e.createElementBlock("div",kn,[e.renderSlot(v.$slots,"prepend",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["rc-input__wrapper",{"has-clear":i.value&&t.type!=="textarea","has-clear-textarea":i.value&&t.type==="textarea","has-clear-mobile":i.value&&b.value==="mobile"&&t.type!=="textarea","has-clear-textarea-mobile":i.value&&b.value==="mobile"&&t.type==="textarea"}])},[t.prefixIcon||v.$slots.prefix?(e.openBlock(),e.createElementBlock("div",bn,[e.renderSlot(v.$slots,"prefix",{},()=>[t.prefixIcon?(e.openBlock(),e.createBlock(e.unref(P),{key:0,name:t.prefixIcon,class:"rc-input__prefix-icon"},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),t.type==="textarea"?(e.openBlock(),e.createElementBlock("div",_n,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent("textarea"),{ref_key:"inputRef",ref:d,value:D.value,class:"rc-input__field rc-input__field--textarea",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,maxlength:t.maxlength,minlength:t.minlength,rows:t.rows,autocomplete:t.autocomplete,name:t.name,autofocus:t.autofocus,form:t.form,tabindex:t.tabindex,style:e.normalizeStyle(te.value),onInput:L,onFocus:F,onBlur:A,onKeydown:x,onMouseenter:$,onMouseleave:V,onCompositionstart:I,onCompositionupdate:ne,onCompositionend:ae},null,40,["value","placeholder","disabled","readonly","maxlength","minlength","rows","autocomplete","name","autofocus","form","tabindex","style"])),i.value&&t.type==="textarea"?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["rc-input__clear rc-input__clear--textarea",{"rc-input__clear--mobile":b.value==="mobile"}]),onClick:e.withModifiers(M,["stop"])},[e.createVNode(e.unref(P),{name:"icon_close_circle",class:"rc-input__clear-icon"})],2)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("input"),{key:2,ref_key:"inputRef",ref:d,value:D.value,type:h.value,class:"rc-input__field",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,maxlength:t.maxlength,minlength:t.minlength,autocomplete:t.autocomplete,name:t.name,autofocus:t.autofocus,form:t.form,tabindex:t.tabindex,onInput:L,onFocus:F,onBlur:A,onKeydown:x,onMouseenter:$,onMouseleave:V,onCompositionstart:I,onCompositionupdate:ne,onCompositionend:ae},null,40,["value","type","placeholder","disabled","readonly","maxlength","minlength","autocomplete","name","autofocus","form","tabindex"])),ee.value?(e.openBlock(),e.createElementBlock("div",Cn,[v.$slots.suffix?(e.openBlock(),e.createElementBlock("div",Bn,[e.renderSlot(v.$slots,"suffix",{},void 0,!0)])):e.createCommentVNode("",!0),t.showPassword&&t.type==="password"&&N.value?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"rc-input__password-toggle",onClick:e.withModifiers(Y,["stop"])},[e.createVNode(e.unref(P),{color:E.value?"#1677ff":"#999",name:E.value?"icon_view":"icon_view-off"},null,8,["color","name"])])):e.createCommentVNode("",!0),i.value&&t.type!=="textarea"?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["rc-input__clear",{"rc-input__clear--mobile":b.value==="mobile"}]),onClick:e.withModifiers(M,["stop"])},[e.createVNode(e.unref(P),{name:"icon_close_circle",class:"rc-input__clear-icon"})],2)):e.createCommentVNode("",!0),t.suffixIcon&&!t.clearable&&!t.showPassword?(e.openBlock(),e.createBlock(e.unref(P),{key:3,name:t.suffixIcon,class:"rc-input__suffix-icon"},null,8,["name"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.showWordLimit&&t.maxlength?(e.openBlock(),e.createElementBlock("span",wn,e.toDisplayString(w.value)+" / "+e.toDisplayString(t.maxlength),1)):e.createCommentVNode("",!0)],2),v.$slots.append?(e.openBlock(),e.createElementBlock("div",xn,[e.renderSlot(v.$slots,"append",{},void 0,!0)])):e.createCommentVNode("",!0)],2))}}),we=K(Dn,[["__scopeId","data-v-5e757433"]]);we.name="rc-input";function Ue(t){return t.component(we.name,we),t}const Vn={class:"rc-search-area"},$n={class:"rc-search-area__bar"},Sn=["onClick"],En={class:"rc-search-area__item-label"},Nn={class:"rc-search-area__panel-content"},Mn={key:1,class:"rc-search-area__input-wrapper"},In={key:2,class:"rc-search-area__calendar-wrapper"},Tn={key:3,class:"rc-search-area__tree-container"},Rn={class:"rc-search-area__tree-group-title"},zn={class:"rc-search-area__tree-group-options"},Fn=["onClick"],Ln={class:"rc-search-area__option-label"},An={key:4,class:"rc-search-area__tree-container"},Yn={class:"rc-search-area__tree-group-title"},Pn={class:"rc-search-area__tree-group-options"},Wn=["onClick"],jn={class:"rc-search-area__option-label"},On={key:5,class:"rc-search-area__options-grid"},Hn=["onClick"],Un={class:"rc-search-area__option-label"},Kn={key:6,class:"rc-search-area__options-grid"},Gn=["onClick"],qn={class:"rc-search-area__option-label"},Jn={key:7,class:"rc-search-area__empty"},Qn={key:0,class:"rc-search-area__panel-footer"},Xn=e.defineComponent({name:"rc-search-area",__name:"index",props:{items:{default:()=>[]},modelValue:{default:()=>({})},showMask:{type:Boolean,default:!0},autoConfirm:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(t,{expose:c,emit:m}){const n=t,y=m,b=e.ref(null),f=e.ref(null),d=e.ref(null),s=e.ref({top:"0px"}),p=async()=>{if(b.value===null||!f.value)return;await e.nextTick();const l=f.value.getBoundingClientRect().top;s.value={top:`${l}px`}},E=a=>{if(b.value===null||!f.value)return;const l=a.target;if(f.value.contains(l))return;const u=f.value.closest(".rc-search-area");if(u){const _=u.querySelector(".rc-search-area__bar");if(_&&_.contains(l))return}L()};e.watch(b,async a=>{a!==null?(await e.nextTick(),p(),window.addEventListener("resize",p),window.addEventListener("scroll",p,!0),document.addEventListener("click",E,!0)):(window.removeEventListener("resize",p),window.removeEventListener("scroll",p,!0),document.removeEventListener("click",E,!0))}),e.onUnmounted(()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",p,!0),document.removeEventListener("click",E,!0)});const g=e.ref({}),h=e.ref(""),D=e.ref(null),N=e.ref({}),w=e.ref({...n.modelValue});e.watch(()=>n.modelValue,a=>{w.value={...a||{}}},{deep:!0,immediate:!0});const i=e.computed(()=>b.value===null?null:n.items[b.value]),Z=e.computed(()=>{if(!i.value)return"";const a=j(i.value);return a>0?`(${a}项)`:""}),ee=a=>{const l=w.value[a.key];if(l==null||l===""||a.slot)return a.label;if(a.type==="input"){if(l&&String(l).trim())return`${a.label}: ${l}`}else if(a.type==="calendar"){if(l){if(Array.isArray(l)&&l.length===2)return`${a.label}: ${l[0]} ~ ${l[1]}`;if(typeof l=="string")return`${a.label}: ${l}`}}else if(a.type==="single"||a.type==="tree-single"){const u=Y(a,l);if(u)return`${a.label}: ${M(u,a)}`}else{const u=Array.isArray(l)?l:[l];if(u.length>0){const _=u.map(z=>{const R=Y(a,z);return R?M(R,a):null}).filter(z=>z!==null);if(_.length>0)return`${a.label}: ${_.join("、")}`}}return a.label},te=a=>{const l=n.items[a];if(!l)return;if(b.value===a){b.value=null;return}const u=w.value[l.key];l.slot?u!=null?Array.isArray(u)?N.value[l.key]=[...u]:typeof u=="object"?N.value[l.key]={...u}:N.value[l.key]=u:N.value[l.key]=void 0:l.type==="input"?h.value=u!=null&&u!==""?String(u):void 0:l.type==="calendar"?D.value=u??null:l.type==="single"||l.type==="tree-single"?g.value[l.key]=u!==void 0?u:null:g.value[l.key]=u!==void 0?Array.isArray(u)?[...u]:[u]:[],b.value=a},L=()=>{b.value=null},F=(a,l)=>{if(!l)return typeof a=="string"?a:a.label||String(a.value);const u=a;if(l.renderItem){if(typeof l.renderItem=="string")return String(typeof u=="object"&&u!==null?u[l.renderItem]??"":u);{const _=l.renderItem(u);return _!=null?String(_):""}}return typeof a=="string"?a:a.label||String(a.value)},A=(a,l)=>{if(!l)return typeof a=="string"?a:a.value!==void 0?a.value:a;const u=a;return l.format?typeof l.format=="string"?typeof u=="object"&&u!==null?u[l.format]:u:l.format(u):typeof a=="string"?a:a.value!==void 0?a.value:a},M=(a,l)=>{const u=a,_=l.renderResult||l.renderItem;if(_){if(typeof _=="string")return String(typeof u=="object"&&u!==null?u[_]??"":u);{const z=_(u);return z!=null?String(z):""}}return F(a,l)},Y=(a,l,u)=>{const _=u||a.options;if(!_)return null;const z=a.childrenKey||"children";for(const R of _){const O=A(R,a);if(O===l||String(O)===String(l))return R;if(typeof R=="object"&&R!==null){const U=R[z];if(Array.isArray(U)&&U.length>0){const X=Y(a,l,U);if(X)return X}}}return null},x=(a,l)=>{const u=l||a.options;if(!u)return[];const _=a.childrenKey||"children",z=[];for(const R of u)if(z.push(R),typeof R=="object"&&R!==null){const O=R[_];Array.isArray(O)&&O.length>0&&z.push(...x(a,O))}return z},$=a=>{if(!i.value)return!1;const l=i.value.key,u=g.value[l],_=A(a,i.value);return i.value.type==="single"||i.value.type==="tree-single"?u!=null&&u===_:(Array.isArray(u)?u:[]).some(R=>R===_||String(R)===String(_))},V=a=>a?a.childrenKey?x(a):a.options||[]:[],I=a=>{if(!a||!a.options||a.options.length===0)return[];const l=a.childrenKey||"children",u=[],_=new Map,z=(R,O=[])=>{for(const U of R)if(typeof U=="string"){const X=O.length>0?O.join("-"):"";_.has(X)||_.set(X,[]),_.get(X).push(U)}else{const X=F(U,a),ce=U[l];if(Array.isArray(ce)&&ce.length>0){const se=[...O,X];z(ce,se)}else{const se=O.length>0?O.join("-"):"";_.has(se)||_.set(se,[]),_.get(se).push(U)}}};z(a.options);for(const[R,O]of _.entries())u.push({title:R||"全部",children:O});return u},ne=a=>{if(a)return N.value[a.key]!==void 0?N.value[a.key]:w.value[a.key]},ae=(a,l)=>{if(a&&(N.value[a.key]=l,n.autoConfirm)){const u=a.key;w.value[u]=l,y("update:modelValue",{...w.value}),y("change",{...w.value},a),L()}},oe=a=>{if(!i.value)return;const l=i.value.key,u=A(a,i.value);w.value[l];let _;g.value[l]===u?_=void 0:_=u,w.value[l]=_,y("update:modelValue",{...w.value}),y("change",{...w.value},i.value),L()},re=a=>{if(!i.value)return;const l=i.value.key,u=A(a,i.value),_=Array.isArray(g.value[l])?[...g.value[l]]:[],z=_.findIndex(R=>R===u||String(R)===String(u));if(z>=0?_.splice(z,1):_.push(u),g.value[l]=_,n.autoConfirm){const R=_.length>0?_:void 0;w.value[l]=R,y("update:modelValue",{...w.value}),y("change",{...w.value},i.value),L()}},C=()=>{if(!i.value)return;const a=i.value.key;i.value.slot?N.value[a]=void 0:i.value.type==="input"?h.value=void 0:i.value.type==="calendar"?D.value=null:i.value.type==="single"||i.value.type==="tree-single"?g.value[a]=null:g.value[a]=[]},B=a=>{if(n.autoConfirm&&i.value){const l=i.value.key,u=a!=null?String(a):"",_=u.trim()?u.trim():void 0;w.value[l]=_,y("update:modelValue",{...w.value}),y("change",{...w.value},i.value),L()}},T=a=>{if(D.value=a,n.autoConfirm&&i.value){const l=i.value.key,u=a??void 0;w.value[l]=u,y("update:modelValue",{...w.value}),y("change",{...w.value},i.value),L()}},H=()=>{if(!i.value)return;const a=i.value.key;w.value[a];let l;if(i.value.slot)l=N.value[a],w.value[a]=l;else if(i.value.type==="input")l=h.value&&h.value.trim()?h.value.trim():void 0,w.value[a]=l;else if(i.value.type==="calendar")l=D.value!==null&&D.value!==void 0?D.value:void 0,w.value[a]=l;else if(i.value.type==="single"||i.value.type==="tree-single"){const u=g.value[a];l=u??void 0,w.value[a]=l}else{const u=g.value[a];l=Array.isArray(u)&&u.length>0?u:void 0,w.value[a]=l}y("update:modelValue",{...w.value}),y("change",{...w.value},i.value),L()},v=a=>{const l=w.value[a.key];return l==null||l===""?0:a.slot?1:a.type==="input"?String(l).trim()?1:0:a.type==="single"||a.type==="tree-single"?1:Array.isArray(l)?l.length:l?1:0},j=a=>{if(a.slot){const u=N.value[a.key];return u!=null&&u!==""?1:0}else{if(a.type==="input")return h.value&&h.value.trim()?1:0;if(a.type==="calendar")return D.value!==null&&D.value!==void 0?1:0}const l=g.value[a.key];return l==null||l===""?0:a.type==="single"||a.type==="tree-single"?1:Array.isArray(l)?l.length:0};return c({getValues:()=>({...w.value}),reset:()=>{w.value={},g.value={},N.value={},y("update:modelValue",{})}}),(a,l)=>(e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("div",$n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(u,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:e.normalizeClass(["rc-search-area__item",{"is-active":b.value===_,"has-value":v(u)>0}]),onClick:z=>te(_)},[e.createElementVNode("span",En,e.toDisplayString(ee(u)),1),e.createVNode(e.unref(P),{name:"icon_a-xiala2",color:b.value!==_&&v(u)>0?"#1677ff":"#969799",class:e.normalizeClass(["rc-search-area__item-arrow",{"is-up":b.value===_}])},null,8,["color","class"])],10,Sn))),128))]),e.createVNode(e.Transition,{name:"rc-search-area-fade"},{default:e.withCtx(()=>[b.value!==null&&n.showMask?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"maskRef",ref:d,class:"rc-search-area__mask",style:e.normalizeStyle(s.value),onClick:L},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"rc-search-area-slide"},{default:e.withCtx(()=>{var u,_,z,R,O,U,X,ce,ve,se,Ve,be,$e,Se,Ee,Ne,Me,Ie,o;return[b.value!==null?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"panelRef",ref:f,class:"rc-search-area__panel"},[e.createElementVNode("div",Nn,[(u=i.value)!=null&&u.slot&&a.$slots[i.value.key]?e.renderSlot(a.$slots,i.value.key,{key:0,value:ne(i.value),"update:value":r=>ae(i.value,r)},void 0,!0):((_=i.value)==null?void 0:_.type)==="input"?(e.openBlock(),e.createElementBlock("div",Mn,[e.createVNode(e.unref(we),{modelValue:h.value,"onUpdate:modelValue":l[0]||(l[0]=r=>h.value=r),placeholder:i.value.placeholder||"请输入",onChange:B},null,8,["modelValue","placeholder"])])):((z=i.value)==null?void 0:z.type)==="calendar"?(e.openBlock(),e.createElementBlock("div",In,[e.createVNode(e.unref(ke),{modelValue:D.value,"onUpdate:modelValue":l[1]||(l[1]=r=>D.value=r),range:((R=i.value.calendarConfig)==null?void 0:R.range)||!1,mode:"default","min-date":(O=i.value.calendarConfig)==null?void 0:O.minDate,"max-date":(U=i.value.calendarConfig)==null?void 0:U.maxDate,"disabled-date":(X=i.value.calendarConfig)==null?void 0:X.disabledDate,formatter:(ce=i.value.calendarConfig)==null?void 0:ce.formatter,"end-date-offset":((ve=i.value.calendarConfig)==null?void 0:ve.endDateOffset)||!1,onChange:T},null,8,["modelValue","range","min-date","max-date","disabled-date","formatter","end-date-offset"])])):((se=i.value)==null?void 0:se.type)==="tree-single"?(e.openBlock(),e.createElementBlock("div",Tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I(i.value),(r,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:"rc-search-area__tree-group"},[e.createElementVNode("div",Rn,e.toDisplayString(r.title),1),e.createElementVNode("div",zn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.children,(S,W)=>(e.openBlock(),e.createElementBlock("div",{key:W,class:e.normalizeClass(["rc-search-area__option",{"is-selected":$(S)}]),onClick:ie=>oe(S)},[e.createElementVNode("span",Ln,e.toDisplayString(F(S,i.value||void 0)),1),$(S)?(e.openBlock(),e.createBlock(e.unref(P),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Fn))),128))])]))),128))])):((Ve=i.value)==null?void 0:Ve.type)==="tree-multiple"?(e.openBlock(),e.createElementBlock("div",An,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I(i.value),(r,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:"rc-search-area__tree-group"},[e.createElementVNode("div",Yn,e.toDisplayString(r.title),1),e.createElementVNode("div",Pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.children,(S,W)=>(e.openBlock(),e.createElementBlock("div",{key:W,class:e.normalizeClass(["rc-search-area__option",{"is-selected":$(S)}]),onClick:ie=>re(S)},[e.createElementVNode("span",jn,e.toDisplayString(F(S,i.value||void 0)),1),$(S)?(e.openBlock(),e.createBlock(e.unref(P),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Wn))),128))])]))),128))])):((be=i.value)==null?void 0:be.type)==="single"?(e.openBlock(),e.createElementBlock("div",On,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V(i.value),(r,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:e.normalizeClass(["rc-search-area__option",{"is-selected":$(r)}]),onClick:S=>oe(r)},[e.createElementVNode("span",Un,e.toDisplayString(F(r,i.value||void 0)),1),$(r)?(e.openBlock(),e.createBlock(e.unref(P),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Hn))),128))])):(e.openBlock(),e.createElementBlock("div",Kn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V(i.value),(r,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:e.normalizeClass(["rc-search-area__option",{"is-selected":$(r)}]),onClick:S=>re(r)},[e.createElementVNode("span",qn,e.toDisplayString(F(r,i.value||void 0)),1),$(r)?(e.openBlock(),e.createBlock(e.unref(P),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Gn))),128))])),(($e=i.value)==null?void 0:$e.type)!=="input"&&((Se=i.value)==null?void 0:Se.type)!=="calendar"&&!((Ee=i.value)!=null&&Ee.slot)&&((Me=(Ne=i.value)==null?void 0:Ne.options)==null?void 0:Me.length)===0?(e.openBlock(),e.createElementBlock("div",Jn,[...l[2]||(l[2]=[e.createElementVNode("p",null,"暂无选项",-1)])])):e.createCommentVNode("",!0)]),!n.autoConfirm&&((Ie=i.value)==null?void 0:Ie.type)!=="single"&&((o=i.value)==null?void 0:o.type)!=="tree-single"?(e.openBlock(),e.createElementBlock("div",Qn,[e.createVNode(e.unref(le),{block:"",onClick:C},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode(" 重置 ",-1)])]),_:1}),e.createVNode(e.unref(le),{type:"primary",block:"",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(" 确定"+e.toDisplayString(Z.value),1)]),_:1})])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)]}),_:3})]))}}),Ke=K(Xn,[["__scopeId","data-v-4977b35c"]]),Ge=t=>{t.component("RcSearchArea",Ke),t.component("rc-search-area",Ke)},Zn=e.defineComponent({name:"rc-dropdown-menu",__name:"menu",props:{visible:{type:Boolean,default:void 0},effect:{default:"light"},maxHeight:{default:""}},emits:["mouseenter","mouseleave"],setup(t,{expose:c,emit:m}){const n=t,y=e.ref(),b=e.computed(()=>n.visible===void 0?!0:n.visible),f=e.computed(()=>n.visible!==void 0),d=e.computed(()=>{const s={};return n.maxHeight&&(s.maxHeight=typeof n.maxHeight=="number"?`${n.maxHeight}px`:n.maxHeight,s.overflowY="auto"),s});return c({menuRef:y}),(s,p)=>f.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"rc-dropdown-fade"},{default:e.withCtx(()=>[b.value?(e.openBlock(),e.createElementBlock("ul",{key:0,ref_key:"menuRef",ref:y,class:e.normalizeClass(["rc-dropdown-menu",[`rc-dropdown-menu--${t.effect}`]]),style:e.normalizeStyle(d.value),onClick:p[0]||(p[0]=e.withModifiers(()=>{},["stop"])),onMouseenter:p[1]||(p[1]=E=>s.$emit("mouseenter",E)),onMouseleave:p[2]||(p[2]=E=>s.$emit("mouseleave",E))},[e.renderSlot(s.$slots,"default",{},void 0,!0)],38)):e.createCommentVNode("",!0)]),_:3})])):(e.openBlock(),e.createElementBlock("ul",{key:1,ref_key:"menuRef",ref:y,class:e.normalizeClass(["rc-dropdown-menu rc-dropdown-menu--nested",[`rc-dropdown-menu--${t.effect}`]]),style:e.normalizeStyle(d.value),onClick:p[3]||(p[3]=e.withModifiers(()=>{},["stop"])),onMouseenter:p[4]||(p[4]=E=>s.$emit("mouseenter",E)),onMouseleave:p[5]||(p[5]=E=>s.$emit("mouseleave",E))},[e.renderSlot(s.$slots,"default",{},void 0,!0)],38))}}),xe=K(Zn,[["__scopeId","data-v-288e2690"]]),ea=e.defineComponent({name:"rc-dropdown",__name:"index",props:{placement:{default:"bottom"},trigger:{default:"hover"},disabled:{type:Boolean,default:!1},effect:{default:"light"},maxHeight:{default:""},hideOnClick:{type:Boolean,default:!0},showTimeout:{default:150},hideTimeout:{default:150}},emits:["command","visible-change"],setup(t,{expose:c,emit:m}){const n=t,y=m,b=e.ref(),f=e.ref(),d=e.ref(!1);let s=null,p=null;function E(M){n.hideOnClick&&(d.value=!1),M!==void 0&&y("command",M)}e.provide("handleItemClick",E);function g(){n.disabled||(s&&(clearTimeout(s),s=null),p&&(clearTimeout(p),p=null),s=setTimeout(()=>{d.value=!0,requestAnimationFrame(()=>{e.nextTick(()=>{L()})})},n.showTimeout))}function h(){n.trigger==="hover"&&i.value||(p&&(clearTimeout(p),p=null),s&&(clearTimeout(s),s=null),p=setTimeout(()=>{d.value=!1,i.value=!1},n.hideTimeout))}function D(){n.disabled||(d.value?h():g())}function N(){n.trigger==="hover"&&!n.disabled&&g()}function w(){n.trigger==="hover"&&setTimeout(()=>{i.value||h()},50)}const i=e.ref(!1);function Z(){n.trigger==="hover"&&(i.value=!0,s&&(clearTimeout(s),s=null),p&&(clearTimeout(p),p=null))}function ee(){n.trigger==="hover"&&(i.value=!1,h())}function te(M){n.trigger==="click"&&!n.disabled&&(M.stopPropagation(),D())}function L(){var oe;if(!b.value||!((oe=f.value)!=null&&oe.menuRef))return;const M=b.value,Y=f.value.menuRef;if(!M||!Y)return;const x=M.getBoundingClientRect(),$=Y.getBoundingClientRect();if($.width===0||$.height===0){setTimeout(()=>{d.value&&L()},10);return}let V=0,I=0;switch(n.placement){case"top":V=x.top-$.height,I=x.left;break;case"top-start":V=x.top-$.height,I=x.left;break;case"top-end":V=x.top-$.height,I=x.left+x.width-$.width;break;case"bottom":V=x.bottom,I=x.left+(x.width-$.width)/2;break;case"bottom-start":V=x.bottom,I=x.left;break;case"bottom-end":V=x.bottom,I=x.left+x.width-$.width;break;case"left":V=x.top+(x.height-$.height)/2,I=x.left-$.width;break;case"left-start":V=x.top,I=x.left-$.width;break;case"left-end":V=x.top+x.height-$.height,I=x.left-$.width;break;case"right":V=x.top+(x.height-$.height)/2,I=x.right;break;case"right-start":V=x.top,I=x.right;break;case"right-end":V=x.top+x.height-$.height,I=x.right;break}const ne=window.innerWidth,ae=window.innerHeight;I<0&&(I=8),I+$.width>ne&&(I=ne-$.width-8),V<0&&(V=8),V+$.height>ae&&(V=ae-$.height-8),Y.style.top=`${V}px`,Y.style.left=`${I}px`,Y.style.position="fixed",Y.style.visibility="visible",Y.style.display="block"}e.watch(d,M=>{y("visible-change",M),M?(requestAnimationFrame(()=>{e.nextTick(()=>{L()})}),document.addEventListener("click",F)):document.removeEventListener("click",F)});function F(M){if(n.trigger==="click"&&!n.disabled){const Y=M.target;b.value&&!b.value.contains(Y)&&h()}}function A(){d.value&&L()}return e.onMounted(()=>{window.addEventListener("resize",A),window.addEventListener("scroll",A,!0)}),e.onUnmounted(()=>{s&&clearTimeout(s),p&&clearTimeout(p),document.removeEventListener("click",F),window.removeEventListener("resize",A),window.removeEventListener("scroll",A,!0)}),c({show:g,hide:h,toggle:D,visible:d}),(M,Y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:b,class:e.normalizeClass(["rc-dropdown",{"is-disabled":t.disabled}]),onMouseenter:N,onMouseleave:w,onClick:te},[e.renderSlot(M.$slots,"default",{},void 0,!0),e.createVNode(xe,{ref_key:"menuRef",ref:f,visible:d.value,effect:t.effect,"max-height":t.maxHeight,onMouseenter:Z,onMouseleave:ee},{default:e.withCtx(()=>[e.renderSlot(M.$slots,"dropdown",{},void 0,!0)]),_:3},8,["visible","effect","max-height"])],34))}}),Re=K(ea,[["__scopeId","data-v-39434407"]]),ta={class:"rc-dropdown-item__text"},na=e.defineComponent({name:"rc-dropdown-item",__name:"item",props:{command:{default:void 0},disabled:{type:Boolean,default:!1},divided:{type:Boolean,default:!1},icon:{default:""}},setup(t){const c=t,m=e.inject("handleItemClick",()=>{});function n(y){if(c.disabled){y.stopPropagation();return}m(c.command)}return(y,b)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["rc-dropdown-item",{"is-disabled":t.disabled,"is-divided":t.divided}]),onClick:n},[t.icon?(e.openBlock(),e.createBlock(P,{key:0,name:t.icon,class:"rc-dropdown-item__icon"},null,8,["name"])):e.createCommentVNode("",!0),e.createElementVNode("span",ta,[e.renderSlot(y.$slots,"default",{},void 0,!0)])],2))}}),ze=K(na,[["__scopeId","data-v-7c739fdf"]]);Re.name="rc-dropdown";xe.name="rc-dropdown-menu";ze.name="rc-dropdown-item";function qe(t){return t.component(Re.name,Re),t.component(xe.name,xe),t.component(ze.name,ze),t}const De=Symbol("RECYCLE_UI_CONFIG"),Fe={prefix:"rc",autoRegister:!0,provideKey:De,theme:{},iconCssUrl:"//at.alicdn.com/t/c/font_4252799_2vm5jrrzfvq.css",iconClass:"iconfont",inputDeviceType:"pc"};function aa(t,c){c.autoRegister!==!1&&(typeof Ae=="function"&&Ae(t),typeof Ye=="function"&&Ye(t),typeof Pe=="function"&&Pe(t),typeof et=="function"&&et(t),typeof je=="function"&&je(t),typeof We=="function"&&We(t),typeof Ge=="function"&&Ge(t),typeof He=="function"&&He(t),typeof Oe=="function"&&Oe(t),typeof Ue=="function"&&Ue(t),typeof qe=="function"&&qe(t))}const Je=(t,c)=>{const m={...Fe,...c||{}};if(t.provide(m.provideKey??De,m),t.config.globalProperties.$recycleUI=m,typeof window<"u"&&m.iconCssUrl){const n=`link[rel="stylesheet"][data-rcui-icon="true"][href="${m.iconCssUrl}"]`;if(!document.head.querySelector(n)){const b=document.createElement("link");b.rel="stylesheet",b.href=m.iconCssUrl,b.setAttribute("data-rcui-icon","true"),document.head.appendChild(b)}}return aa(t,m),t},oa={install:Je};function la(t){return{install(c){Je(c,t)}}}exports.RECYCLE_UI_SYMBOL=De;exports.RcButton=le;exports.RcCalendar=ke;exports.RcCard=Ce;exports.RcDescriptions=nt;exports.RcDescriptionsItem=at;exports.RcDropdown=Re;exports.RcDropdownItem=ze;exports.RcDropdownMenu=xe;exports.RcIcon=P;exports.RcInput=we;exports.RcPopup=ge;exports.RcSearchArea=Ke;exports.RcToast=Be;exports.createRecycleUI=la;exports.default=oa;exports.defaultRecycleUIConfig=Fe;exports.hideToast=ot;exports.install=Je;exports.installButton=Ae;exports.installCalendar=He;exports.installCard=Pe;exports.installDescriptions=Ye;exports.installDropdown=qe;exports.installIcon=je;exports.installInput=Ue;exports.installMessage=We;exports.installPopup=Oe;exports.installSearchArea=Ge;exports.message=lt;exports.rcDescriptions=nt;exports.rcDescriptionsItem=at;exports.showToast=It;
2
2
  //# sourceMappingURL=index.cjs.map