@rft-rc/recycle-ui 0.0.2-rc.4 → 0.0.2-rc.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/index.vue"],"names":[],"mappings":"AA8dA,KAAK,aAAa,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;AAEtD,UAAU,OAAO;IACf,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,KAAK,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;AAExC,UAAU,KAAK;IACb,6BAA6B;IAC7B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,2CAA2C;IAC3C,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,aAAa;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa;IACb,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IACvC,cAAc;IACd,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;;;;;;;;;;WAXS,MAAM;UANP,YAAY;iBAEL,MAAM;gBANP,aAAa;eAQd,OAAO;WANX,OAAO,GAAG,MAAM;aAUd,MAAM;aAEN,MAAM;kBAED,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO;eAE1B,CAAC,GAAG,EAAE,OAAO,KAAK;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;gBAEvD,OAAO;;AAkhBtB,wBAQG"}
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/index.vue"],"names":[],"mappings":"AAyfA,KAAK,aAAa,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;AAEtD,UAAU,OAAO;IACf,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,KAAK,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;AAExC,UAAU,KAAK;IACb,6BAA6B;IAC7B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,2CAA2C;IAC3C,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,aAAa;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa;IACb,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IACvC,cAAc;IACd,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;;;;;;;;;;WAXS,MAAM;UANP,YAAY;iBAEL,MAAM;gBANP,aAAa;eAQd,OAAO;WANX,OAAO,GAAG,MAAM;aAUd,MAAM;aAEN,MAAM;kBAED,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO;eAE1B,CAAC,GAAG,EAAE,OAAO,KAAK;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;gBAEvD,OAAO;;AAqjBtB,wBAQG"}
@@ -19,6 +19,7 @@ interface Props {
19
19
  bottomInfo?: string;
20
20
  };
21
21
  showFooter?: boolean;
22
+ maxRangeDays?: number;
22
23
  }
23
24
  declare const _default: import("vue").DefineComponent<Props, {
24
25
  yearScrollRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
@@ -26,10 +27,12 @@ declare const _default: import("vue").DefineComponent<Props, {
26
27
  clear: () => any;
27
28
  "select-day": (day: DayItem) => any;
28
29
  confirm: () => any;
30
+ "shortcut-select": (range: [string, string]) => any;
29
31
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
30
32
  onClear?: (() => any) | undefined;
31
33
  "onSelect-day"?: ((day: DayItem) => any) | undefined;
32
34
  onConfirm?: (() => any) | undefined;
35
+ "onShortcut-select"?: ((range: [string, string]) => any) | undefined;
33
36
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
37
  export default _default;
35
38
  //# sourceMappingURL=panel-content.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"panel-content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/panel-content.vue"],"names":[],"mappings":"AA04BA,UAAU,OAAO;IACf,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,KAAK;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IACvC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;;;;;;;;;;;;AAozBD,wBAQG"}
1
+ {"version":3,"file":"panel-content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/panel-content.vue"],"names":[],"mappings":"AAisCA,UAAU,OAAO;IACf,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,KAAK;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IACvC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;;;;;;;;;;;;;;AAmmCD,wBAQG"}
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"),He={key:0,class:"rc-icon__unicode"},qe=e.defineComponent({name:"rc-icon",__name:"index",props:{name:{},size:{default:16},color:{default:""},spin:{type:Boolean,default:!1},code:{default:""}},setup(t){const r=t,d=e.inject(he,{}),o=e.computed(()=>(d==null?void 0:d.iconClass)||"iconfont"),p=e.computed(()=>r.name||""),g=e.computed(()=>typeof r.size=="number"?`${r.size}px`:r.size||"16px"),m=e.computed(()=>({fontSize:g.value,color:r.color||void 0,lineHeight:1,fontFamily:(d==null?void 0:d.iconClass)||"iconfont"})),v=e.computed(()=>{const i=r.code;if(i==null||i===""||i===0)return"";if(typeof i=="number")return String.fromCharCode(i);const y=String(i).replace(/^0x/i,""),$=parseInt(y,16);return Number.isNaN($)?"":String.fromCharCode($)});return e.onMounted(()=>{if(typeof window>"u")return;const i=d&&d.iconCssUrl||Re.iconCssUrl;if(!i)return;const y=`link[rel="stylesheet"][data-rcui-icon="true"][href="${i}"]`;if(!document.head.querySelector(y)){const _=document.createElement("link");_.rel="stylesheet",_.href=i,_.setAttribute("data-rcui-icon","true"),document.head.appendChild(_)}}),(i,y)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["rc-icon",[o.value,p.value,{"rc-icon--spin":t.spin}]]),style:e.normalizeStyle(m.value),"aria-hidden":"true"},[v.value?(e.openBlock(),e.createElementBlock("span",He,e.toDisplayString(v.value),1)):e.createCommentVNode("",!0)],6))}}),H=(t,r)=>{const d=t.__vccOpts||t;for(const[o,p]of r)d[o]=p;return d},L=H(qe,[["__scopeId","data-v-3857a892"]]),Je=["disabled"],Qe={key:0,class:"rc-button__spinner"},Xe={key:0,class:"rc-button__icon rc-button__icon--prefix"},Ze={key:2,class:"rc-button__icon rc-button__icon--suffix"},et=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:r}){const d=t,o=r,p=m=>{!d.disabled&&!d.loading&&o("click",m)},g=e.computed(()=>{const m=d.round;return typeof m=="boolean"?m?"999px":"6px":typeof m=="number"?`${m}px`:String(m)});return(m,v)=>(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:p},[t.loading?(e.openBlock(),e.createElementBlock("span",Qe)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.preIcon||m.$slots.preIcon?(e.openBlock(),e.createElementBlock("span",Xe,[e.renderSlot(m.$slots,"preIcon",{},()=>[t.preIcon?(e.openBlock(),e.createBlock(L,{key:0,name:t.preIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],64)),e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0),!t.loading&&(t.suffixIcon||m.$slots.suffixIcon)?(e.openBlock(),e.createElementBlock("span",Ze,[e.renderSlot(m.$slots,"suffixIcon",{},()=>[t.suffixIcon?(e.openBlock(),e.createBlock(L,{key:0,name:t.suffixIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],14,Je))}}),q=H(et,[["__scopeId","data-v-3ed3109f"]]);q.name="rc-button";function Se(t){return t.component(q.name,q),t}const tt={class:"rc-desc-item__value"},nt=e.defineComponent({name:"rc-descriptions-item",__name:"item",props:{label:{default:""},value:{default:""},labelWidth:{default:""},span:{default:1}},setup(t){const r=t;e.inject("rcDescItemWidth",void 0),e.inject("rcDescSingleWidth",""),e.inject("rcDescGap","0px");const d=e.inject("rcDescGapPx",0),o=e.inject("rcDescColCount",1),p=e.inject("rcDescLabelWidth",""),g=e.computed(()=>{const i=typeof r.span=="string"?parseInt(r.span,10):r.span,y=typeof(o==null?void 0:o.value)=="number"?o.value:o,$=!Number.isNaN(i)&&i>0?i:1;return Math.min($,y||1)}),m=e.computed(()=>{const i=typeof(o==null?void 0:o.value)=="number"?o.value:o,y=typeof(d==null?void 0:d.value)=="number"?d.value:d,$=g.value;if(!i||i<=1||$>=i)return"100%";const _=(i-1)*y,h=($-1)*y;return`calc((100% - ${_}px) * ${$} / ${i} + ${h}px)`}),v=e.computed(()=>{const i=typeof(p==null?void 0:p.value)=="string"?p.value:p,y=r.labelWidth!==""?r.labelWidth:i||"";return y?{width:typeof y=="number"?`${y}px`:String(y),flex:"0 0 auto"}:{}});return(i,y)=>(e.openBlock(),e.createElementBlock("div",{class:"rc-desc-item",style:e.normalizeStyle({width:m.value,flex:`0 0 ${m.value}`})},[e.createElementVNode("div",{class:"rc-desc-item__label",style:e.normalizeStyle(v.value)},[e.renderSlot(i.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)],4),e.createElementVNode("div",tt,[e.renderSlot(i.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)],!0)])],4))}}),le=H(nt,[["__scopeId","data-v-970d0b99"]]),at={class:"rc-descriptions"},lt={key:0,class:"rc-descriptions__title"},ot=e.defineComponent({name:"rc-descriptions",__name:"index",props:{title:{},column:{default:2},gap:{default:4},labelWidth:{default:""},data:{default:()=>[]},keyMap:{}},setup(t){const r=t,d=e.ref(null),o=e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap)),p=e.computed(()=>{const y=typeof r.column=="string"?Number.parseInt(r.column,10):r.column??1;return!Number.isNaN(y)&&y>0?y:1}),g=e.ref("100%"),m=e.ref("100%");e.watchEffect(()=>{const y=p.value;if(y<=1)g.value="100%",m.value="100%";else{const $=typeof r.gap=="number"?r.gap:parseFloat(String(r.gap))||0,h=`calc((100% - ${(y-1)*$}px) / ${y})`;m.value=h,g.value=h}}),e.provide("rcDescItemWidth",g),e.provide("rcDescSingleWidth",m),e.provide("rcDescColCount",p),e.provide("rcDescGapPx",e.computed(()=>typeof r.gap=="number"?r.gap:parseFloat(String(r.gap))||0));const v=e.computed(()=>r.labelWidth===""||r.labelWidth===void 0?"":typeof r.labelWidth=="number"?`${r.labelWidth}px`:String(r.labelWidth));e.provide("rcDescLabelWidth",v),e.provide("rcDescGap",e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap)));const i=e.computed(()=>{var _,h,b;const y=((_=r.keyMap)==null?void 0:_.key)??"label",$=((h=r.keyMap)==null?void 0:h.value)??"value";return(b=r.data)!=null&&b.length?r.data.map(S=>({label:S==null?void 0:S[y],value:S==null?void 0:S[$]})):[]});return(y,$)=>(e.openBlock(),e.createElementBlock("div",at,[y.$slots.title||t.title?(e.openBlock(),e.createElementBlock("div",lt,[e.renderSlot(y.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-descriptions__body",style:e.normalizeStyle({gap:o.value}),ref_key:"wrapEl",ref:d},[i.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.value,(_,h)=>(e.openBlock(),e.createBlock(le,{key:h,label:_.label,value:_.value,"label-width":t.labelWidth},null,8,["label","value","label-width"]))),128)):e.renderSlot(y.$slots,"default",{key:1},void 0,!0)],4)]))}}),ie=H(ot,[["__scopeId","data-v-5fcaa235"]]);ie.name="rc-descriptions";le.name="rc-descriptions-item";function $e(t){return t.component(ie.name,ie),t.component("RcDescriptions",ie),t.component(le.name,le),t.component("RcDescriptionsItem",le),t}const We=ie,Oe=le,rt={class:"rc-card__title"},ct={class:"rc-card__title-text"},st={key:0,class:"rc-card__status"},ut={key:1,class:"rc-card__divider"},it={key:2,class:"rc-card__action"},dt=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 r=t,d=e.computed(()=>{const v=typeof r.round=="boolean"?r.round?"12px":"0":typeof r.round=="number"?`${r.round}px`:String(r.round);return{backgroundColor:r.color||"var(--rc-white)",borderRadius:v,boxShadow:m(r.elevation),width:g(r.width),height:g(r.height)}}),o=e.computed(()=>r.padding||"16px"),p=e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap));function g(v){return v==null||v===""?"":typeof v=="number"?`${v}px`:String(v)}function m(v){if(!v||v<=0)return"none";const i=4*v;return`0 ${Math.round(i/2)}px ${i}px rgba(0,0,0,0.06), 0 ${Math.round(i/4)}px ${Math.round(i/2)}px rgba(0,0,0,0.04)`}return(v,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-card",[{"rc-card--bordered":t.bordered}]]),style:e.normalizeStyle(d.value)},[v.$slots.title||t.title||v.$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",rt,[e.renderSlot(v.$slots,"title",{},()=>[e.createElementVNode("span",ct,e.toDisplayString(t.title),1)],!0)]),v.$slots.status||t.status?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(v.$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:o.value,gap:p.value})},[e.renderSlot(v.$slots,"content",{},()=>[e.renderSlot(v.$slots,"default",{},void 0,!0)],!0)],4),v.$slots.action?(e.openBlock(),e.createElementBlock("div",ut)):e.createCommentVNode("",!0),v.$slots.action?(e.openBlock(),e.createElementBlock("div",it,[e.renderSlot(v.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),de=H(dt,[["__scopeId","data-v-a7b95214"]]);de.name="rc-card";const ft="RcCard";function Ee(t){return t.component(de.name,de),t.component(ft,de),t}const mt={key:0,class:"rc-toast__mask"},vt={class:"rc-toast__content"},pt={key:0,class:"rc-toast__spinner"},yt={key:1,class:"rc-toast__icon rc-toast__icon--success"},ht={key:2,class:"rc-toast__icon rc-toast__icon--fail"},kt={class:"rc-toast__text"},gt=e.defineComponent({__name:"index",props:{message:{default:""},type:{default:"text"},duration:{default:2e3},mask:{type:Boolean,default:!1},onAfterLeave:{}},setup(t,{expose:r}){const d=t,o=e.ref(!0);let p;function g(){p&&(clearTimeout(p),p=null)}function m(){g(),o.value=!1}return r({close:m}),e.onMounted(()=>{d.duration&&d.duration>0&&(p=setTimeout(()=>{m()},d.duration))}),e.onUnmounted(()=>{g()}),(v,i)=>(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(()=>[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-toast",[`rc-toast--${t.type}`]])},[t.mask?(e.openBlock(),e.createElementBlock("div",mt)):e.createCommentVNode("",!0),e.createElementVNode("div",vt,[t.type==="loading"?(e.openBlock(),e.createElementBlock("div",pt)):t.type==="success"?(e.openBlock(),e.createElementBlock("div",yt)):t.type==="fail"?(e.openBlock(),e.createElementBlock("div",ht)):e.createCommentVNode("",!0),e.createElementVNode("div",kt,e.toDisplayString(t.message),1)])],2)):e.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])])),e.renderSlot(v.$slots,"default",{},void 0,!0)],64))}}),fe=H(gt,[["__scopeId","data-v-d234c9c5"]]);let ne=null,oe=null;function Ye(){ne&&(ne.unmount(),ne=null),oe&&(document.body.removeChild(oe),oe=null)}function _t(t){const r=typeof t=="string"?{message:t}:t||{};Ye(),oe=document.createElement("div"),document.body.appendChild(oe);const d={message:r.message,type:r.type??"text",duration:r.duration??2e3,mask:r.mask??!1,onAfterLeave:()=>{var o;Ye(),(o=r.onClose)==null||o.call(r)}};return ne=e.createApp(fe,d),ne.mount(oe),{close:je}}function je(){var t,r,d;ne&&((d=(r=(t=ne._instance)==null?void 0:t.exposed)==null?void 0:r.close)==null||d.call(r))}fe.name="rc-toast";function Pe(t){return t.component(fe.name,fe),t}const Bt={class:"rc-message",role:"alert","aria-live":"polite"},Ct={class:"rc-message__content"},bt=e.defineComponent({__name:"index",setup(t,{expose:r}){const d=e.reactive([]);let o=1;function p(m){const v=d.findIndex(i=>i.id===m);v>=0&&d.splice(v,1)}function g(m,v,i){const y=o++;return d.push({id:y,type:m,content:v,duration:i}),i>0&&window.setTimeout(()=>p(y),i),y}return r({add:g,remove:p}),(m,v)=>(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(e.TransitionGroup,{name:"rc-message-fade",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:e.normalizeClass(["rc-message__item",`rc-message--${i.type}`])},[e.createElementVNode("span",Ct,e.toDisplayString(i.content),1)],2))),128))]),_:1})]))}}),Vt=H(bt,[["__scopeId","data-v-87811df0"]]);let Z=null,X=null;function St(){var r;if(Z&&X)return;Z=document.createElement("div"),document.body.appendChild(Z);const t=e.createVNode(Vt,{});e.render(t,Z),X=(r=t.component)==null?void 0:r.exposed}function ae(t,r,d){var p;St();const o=typeof d=="number"?d:t==="loading"?0:2e3;return(p=X==null?void 0:X.add)==null?void 0:p.call(X,t,r,o)}const Ge={open(t){return ae(t.type||"info",t.content,t.duration)},info(t,r){return ae("info",t,r)},success(t,r){return ae("success",t,r)},warning(t,r){return ae("warning",t,r)},error(t,r){return ae("error",t,r)},loading(t,r){return ae("loading",t,r)},destroy(){Z&&(e.render(null,Z),Z.remove(),Z=null,X=null)}};function De(t){return t.config.globalProperties.$message=Ge,t}L.name="rc-icon";function xe(t){return t.component(L.name,L),t.component("RcIcon",L),t}const $t={class:"rc-popup__content"},Et=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:r,emit:d}){const o=t,p=d,g=e.ref(),m=e.ref(o.modelValue);e.watch(()=>o.modelValue,s=>{m.value=s,s?(p("open"),o.lockScroll&&$()):(p("close"),o.lockScroll&&_())},{immediate:!0}),e.watch(m,s=>{s!==o.modelValue&&p("update:modelValue",s)});const v=e.computed(()=>`rc-popup-slide-${o.position}`),i=e.computed(()=>({...o.popupStyle||{}}));let y=!1;function $(){y||(y=!0,document.body.style.overflow="hidden")}function _(){y&&(y=!1,document.body.style.overflow="")}function h(){p("click-overlay"),o.closeOnClickOverlay&&S()}function b(){S()}function S(){m.value=!1}function B(){m.value=!0}return e.onUnmounted(()=>{_()}),r({open:B,close:S,visible:m}),(s,J)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"rc-popup-fade"},{default:e.withCtx(()=>[m.value&&o.overlay?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-popup__overlay",{"rc-popup__overlay--transparent":o.overlayClass==="transparent"}]),style:e.normalizeStyle(o.overlayStyle),onClick:h},null,6)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:v.value},{default:e.withCtx(()=>[m.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(i.value),onClick:J[0]||(J[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:b},[e.createVNode(L,{name:t.closeIcon,class:"rc-popup__close-icon"},null,8,["name"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",$t,[e.renderSlot(s.$slots,"default",{},void 0,!0)])],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),re=H(Et,[["__scopeId","data-v-f1696784"]]);re.name="rc-popup";const Dt="RcPopup";function Ne(t){return t.component(re.name,re),t.component(Dt,re),t}const xt={key:0,class:"rc-calendar__header"},Nt={class:"rc-calendar__header-title"},wt={class:"rc-calendar__month-title"},It={class:"rc-calendar__weekdays"},Mt={class:"rc-calendar__days"},Rt=["onClick"],Tt={class:"rc-calendar__day-content"},Ft={class:"rc-calendar__day-text"},zt={key:0,class:"rc-calendar__day-bottom"},At={key:1,class:"rc-calendar__footer"},Lt={key:0,class:"rc-calendar__month-picker-overlay"},Yt={class:"rc-calendar__month-picker"},Pt={class:"rc-calendar__month-picker-header"},Ut={class:"rc-calendar__month-picker-title"},Wt={key:0},Ot={key:0,class:"rc-calendar__year-picker-content"},jt={class:"rc-calendar__year-picker-grid"},Gt=["onClick"],Kt={key:1,class:"rc-calendar__month-picker-content"},Ht=["onClick"],ye=48,Y=3,Ve=7,qt=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}},emits:["select-day","clear","confirm"],setup(t,{expose:r,emit:d}){const o=t,p=d,g=["日","一","二","三","四","五","六"];function m(a){if(!a)return null;const u=new Date(a);return isNaN(u.getTime())?null:u}function v(a){const u=a.getFullYear(),f=String(a.getMonth()+1).padStart(2,"0"),V=String(a.getDate()).padStart(2,"0");return`${u}-${f}-${V}`}const i=e.ref(new Date);e.watch(()=>[o.selectedDate,o.rangeStart],()=>{if(o.range&&o.rangeStart){const a=m(o.rangeStart);a&&(i.value=a)}else if(!o.range&&o.selectedDate){const a=m(o.selectedDate);a&&(i.value=a)}},{immediate:!0});function y(a){const u=new Date;return a.getFullYear()===u.getFullYear()&&a.getMonth()===u.getMonth()&&a.getDate()===u.getDate()}function $(a){if(!o.rangeStart||!o.rangeEnd)return!1;const u=v(a),f=o.rangeStart,V=o.rangeEnd;return u>f&&u<V}function _(a){if(o.disabledDate&&o.disabledDate(a))return!0;const u=v(a);return!!(o.minDate&&u<o.minDate||o.maxDate&&u>o.maxDate)}function h(a,u){const f=new Date(a,u,1),V=new Date(a,u+1,0),D=f.getDay(),W=V.getDate(),j=[],se=new Date(a,u,0).getDate();for(let R=D-1;R>=0;R--){const T={date:new Date(a,u-1,se-R),type:"prev-month",text:String(se-R)};if(o.formatter){const F=o.formatter(T);F.text&&(T.text=F.text),F.bottomInfo&&(T.bottomInfo=F.bottomInfo)}j.push(T)}for(let R=1;R<=W;R++){const T={date:new Date(a,u,R),type:"current-month",text:String(R)};if(o.formatter){const F=o.formatter(T);F.text&&(T.text=F.text),F.bottomInfo&&(T.bottomInfo=F.bottomInfo)}j.push(T)}const pe=42-j.length;for(let R=1;R<=pe;R++){const T={date:new Date(a,u+1,R),type:"next-month",text:String(R)};if(o.formatter){const F=o.formatter(T);F.text&&(T.text=F.text),F.bottomInfo&&(T.bottomInfo=F.bottomInfo)}j.push(T)}return j}const b=e.computed(()=>{const a=i.value.getFullYear(),u=i.value.getMonth();return h(a,u)}),S=e.computed(()=>{const a=i.value.getFullYear(),u=i.value.getMonth()+1;return`${a}年${u}月`});function B(a){const u=[];if(a.type!=="current-month"&&u.push("is-other-month"),y(a.date)&&u.push("is-today"),_(a.date))return u.push("is-disabled"),u;const f=v(a.date);return o.range?(o.rangeStart===f&&u.push("is-start"),o.rangeEnd===f&&u.push("is-end"),$(a.date)&&u.push("is-in-range")):o.selectedDate===f&&u.push("is-selected"),u}const s=e.computed(()=>!!(o.rangeStart&&o.rangeEnd)),J=e.computed(()=>o.rangeStart&&o.rangeEnd?2:o.rangeStart||o.rangeEnd?1:0);function ee(a){if(!o.minDate&&!o.maxDate)return!1;const u=o.minDate?m(o.minDate):null,f=o.maxDate?m(o.maxDate):null;return!!(u&&a<u.getFullYear()||f&&a>f.getFullYear())}function Q(a,u){const f=o.minDate?m(o.minDate):null,V=o.maxDate?m(o.maxDate):null;if(f){const D=f.getFullYear(),W=f.getMonth()+1;if(a<D||a===D&&u<W)return!0}if(V){const D=V.getFullYear(),W=V.getMonth()+1;if(a>D||a===D&&u>W)return!0}return!1}const z=e.ref(!1),w=e.ref("year"),I=e.ref(i.value.getFullYear()),G=e.ref(i.value.getMonth()+1),P=e.ref(),U=e.ref(1900),M=e.ref(1920),x=e.ref(1900),k=e.ref(2100),C=e.computed(()=>{const a=[],f=Math.floor((U.value-x.value)/Y)-3,V=Math.ceil((M.value-x.value)/Y)+3,D=x.value+Math.max(0,f)*Y,W=x.value+V*Y-1;for(let j=D;j<=W;j++)a.push(j);return a});e.watch(()=>i.value,a=>{I.value=a.getFullYear(),G.value=a.getMonth()+1},{immediate:!0});function E(){if(!P.value)return;const a=P.value.scrollTop,f=Math.max(0,Math.floor(a/ye)),V=x.value+f*Y,D=V+Ve*Y-1;V<x.value?x.value=V-100:D>k.value&&(k.value=D+100),(V!==U.value||D!==M.value)&&(U.value=V,M.value=D)}function A(){I.value=i.value.getFullYear(),G.value=i.value.getMonth()+1,w.value="year",z.value=!0;const a=I.value;a<x.value?x.value=Math.floor(a/100)*100:a>k.value&&(k.value=Math.ceil(a/100)*100+99),e.nextTick(()=>{if(P.value){const u=Math.floor((a-x.value)/Y),f=Math.max(0,u-2);U.value=x.value+f*Y,M.value=U.value+Ve*Y-1,O(a)}})}function O(a){if(!P.value)return;a<x.value?x.value=Math.floor(a/100)*100:a>k.value&&(k.value=Math.ceil(a/100)*100+99);const u=Math.floor((a-x.value)/Y),f=u*ye;P.value.scrollTop=f;const V=Math.max(0,u-2);U.value=x.value+V*Y,M.value=U.value+Ve*Y-1}function me(){const a=new Date(i.value);a.setMonth(a.getMonth()-1),i.value=a}function ke(){const a=new Date(i.value);a.setMonth(a.getMonth()+1),i.value=a}function ge(a){ee(a)||(I.value=a,w.value="month")}function _e(a){Q(I.value,a)||(G.value=a,Be())}function Be(){const a=new Date(i.value);a.setFullYear(I.value),a.setMonth(G.value-1),i.value=a,z.value=!1,w.value="year"}function ve(a){p("select-day",a)}function Ce(){p("clear")}function n(){p("confirm")}function l(){z.value=!1}function c(a){w.value=a}return r({yearScrollRef:P}),(a,u)=>(e.openBlock(),e.createElementBlock("div",null,[t.showTitle?(e.openBlock(),e.createElementBlock("div",xt,[e.createElementVNode("div",Nt,e.toDisplayString(t.title),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",wt,[e.createElementVNode("div",{class:"rc-calendar__nav-button",onClick:me},[e.createVNode(e.unref(L),{name:"icon_caret-left",class:"rc-calendar__nav-icon"})]),e.createElementVNode("div",{class:"rc-calendar__month-text",onClick:A},e.toDisplayString(S.value),1),e.createElementVNode("div",{class:"rc-calendar__nav-button",onClick:ke},[e.createVNode(e.unref(L),{name:"icon_caret-right",class:"rc-calendar__nav-icon"})])]),e.createElementVNode("div",It,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(g,f=>e.createElementVNode("div",{key:f,class:"rc-calendar__weekday"},e.toDisplayString(f),1)),64))]),e.createElementVNode("div",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(f,V)=>(e.openBlock(),e.createElementBlock("div",{key:V,class:e.normalizeClass(["rc-calendar__day",B(f)]),onClick:D=>ve(f)},[e.createElementVNode("div",Tt,[e.createElementVNode("span",Ft,e.toDisplayString(f.text),1),f.bottomInfo?(e.openBlock(),e.createElementBlock("span",zt,e.toDisplayString(f.bottomInfo),1)):e.createCommentVNode("",!0)])],10,Rt))),128))]),t.range&&t.showFooter?(e.openBlock(),e.createElementBlock("div",At,[e.createVNode(e.unref(q),{type:"default",class:"rc-calendar__footer-reset",onClick:Ce},{default:e.withCtx(()=>[...u[2]||(u[2]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(q),{type:"primary",class:"rc-calendar__footer-confirm",disabled:!s.value,onClick:n},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value?`确定(${J.value}项)`:"确定"),1)]),_:1},8,["disabled"])])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"rc-calendar-fade"},{default:e.withCtx(()=>[z.value?(e.openBlock(),e.createElementBlock("div",Lt,[e.createElementVNode("div",Yt,[e.createElementVNode("div",Pt,[e.createVNode(e.unref(q),{type:"default",mode:"text",size:"small",onClick:l},{default:e.withCtx(()=>[...u[3]||(u[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createElementVNode("div",Ut,[e.createElementVNode("span",{onClick:u[0]||(u[0]=f=>c("year"))},e.toDisplayString(I.value)+"年",1),w.value==="month"?(e.openBlock(),e.createElementBlock("span",Wt," - ")):e.createCommentVNode("",!0),w.value==="month"?(e.openBlock(),e.createElementBlock("span",{key:1,onClick:u[1]||(u[1]=f=>c("month"))},e.toDisplayString(G.value)+"月",1)):e.createCommentVNode("",!0)])]),w.value==="year"?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("div",{class:"rc-calendar__year-picker-scroll",ref_key:"yearScrollRef",ref:P,onScroll:E},[e.createElementVNode("div",{class:"rc-calendar__year-picker-spacer",style:e.normalizeStyle({height:`${Math.floor((U.value-x.value)/Y)*ye}px`})},null,4),e.createElementVNode("div",jt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,f=>(e.openBlock(),e.createElementBlock("div",{key:f,class:e.normalizeClass(["rc-calendar__year-picker-item",{"is-selected":I.value===f,"is-disabled":ee(f)}]),onClick:V=>ge(f)},e.toDisplayString(f),11,Gt))),128))]),e.createElementVNode("div",{class:"rc-calendar__year-picker-spacer",style:e.normalizeStyle({height:`${Math.ceil((k.value-M.value)/Y)*ye}px`})},null,4)],544)])):e.createCommentVNode("",!0),w.value==="month"?(e.openBlock(),e.createElementBlock("div",Kt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,f=>e.createElementVNode("div",{key:f,class:e.normalizeClass(["rc-calendar__month-picker-item",{"is-selected":G.value===f,"is-disabled":Q(I.value,f)}]),onClick:V=>_e(f)},e.toDisplayString(f)+"月 ",11,Ht)),64))])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1})]))}}),Ue=H(qt,[["__scopeId","data-v-30d4815e"]]),Jt={class:"rc-calendar"},Qt=["placeholder"],Xt={key:1,class:"rc-calendar__panel"},Zt=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}},emits:["update:modelValue","change","confirm"],setup(t,{emit:r}){const d=t,o=r,p=e.ref(),g=e.ref(),m=e.ref(!1),v=e.ref(""),i=e.computed(()=>d.range===!0||typeof d.range=="number"),y=e.computed(()=>typeof d.range=="number"?d.range:void 0),$=e.computed(()=>k=>{if(d.disabledDate&&d.disabledDate(k))return!0;if(y.value!==void 0&&h.value&&!b.value){const C=s(k);if(B(h.value)&&J(h.value,C)>y.value)return!0}return!1}),_=e.ref(null),h=e.ref(null),b=e.ref(null);e.watch(()=>d.modelValue,k=>{i.value?Array.isArray(k)&&k.length===2?(h.value=k[0],b.value=k[1]):(h.value=null,b.value=null):_.value=typeof k=="string"?k:null,S()},{immediate:!0});function S(){d.mode==="popup"&&(i.value?h.value&&b.value?v.value=`${h.value} ~ ${b.value}`:h.value?v.value=`${h.value} ~ `:v.value="":v.value=_.value||"")}function B(k){if(!k)return null;const C=new Date(k);return isNaN(C.getTime())?null:C}function s(k){const C=k.getFullYear(),E=String(k.getMonth()+1).padStart(2,"0"),A=String(k.getDate()).padStart(2,"0");return`${C}-${E}-${A}`}function J(k,C){const E=B(k),A=B(C);if(!E||!A)return 0;const O=Math.abs(A.getTime()-E.getTime());return Math.ceil(O/(1e3*60*60*24))}function ee(k){if(k.type!=="current-month"||d.disabledDate&&d.disabledDate(k.date))return;const C=s(k.date);if(!(d.minDate&&C<d.minDate)&&!(d.maxDate&&C>d.maxDate)){if(i.value)if(!h.value||h.value&&b.value)h.value=C,b.value=null;else{let E=h.value,A=C;if(C<h.value&&(A=h.value,E=C),h.value=E,b.value=A,h.value&&b.value){const O=[h.value,b.value];o("update:modelValue",O),o("change",O),d.showFooter||Q()}}else{_.value=C;const E=C;o("update:modelValue",E),o("change",E),d.mode&&I()}S()}}function Q(){if(h.value&&b.value){const k=[h.value,b.value];o("update:modelValue",k),o("change",k),o("confirm",k),I()}}function z(){i.value?(h.value=null,b.value=null):_.value=null;const k=null;o("update:modelValue",k),o("change",k),S()}function w(){m.value=!0}function I(){m.value=!1}function G(k){m.value=k}function P(){w()}function U(){d.mode==="popup"&&x()}function M(){m.value||w()}function x(){const k=v.value.trim();if(i.value){const C=k.split("~").map(E=>E.trim());if(C.length===2&&C[0]&&C[1]){const E=B(C[0]),A=B(C[1]);if(E&&A&&!isNaN(E.getTime())&&!isNaN(A.getTime())){h.value=s(E),b.value=s(A);const O=[h.value,b.value];o("update:modelValue",O),o("change",O);return}}}else{const C=B(k);if(C&&!isNaN(C.getTime())){_.value=s(C),o("update:modelValue",_.value),o("change",_.value);return}}S()}return(k,C)=>(e.openBlock(),e.createElementBlock("div",Jt,[t.mode==="popup"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"rc-calendar__input",onClick:w},[e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:p,"onUpdate:modelValue":C[0]||(C[0]=E=>v.value=E),type:"text",class:"rc-calendar__input-field",placeholder:t.placeholder,readonly:"",onFocus:P,onBlur:U,onInput:M},null,40,Qt),[[e.vModelText,v.value]]),e.createVNode(e.unref(L),{name:"icon_a-rili",class:"rc-calendar__input-icon"})])):e.createCommentVNode("",!0),t.mode==="default"?(e.openBlock(),e.createElementBlock("div",Xt,[e.createVNode(Ue,{"show-title":t.showTitle,title:t.title,range:i.value,"selected-date":_.value,"range-start":h.value,"range-end":b.value,"min-date":t.minDate,"max-date":t.maxDate,"disabled-date":$.value,formatter:t.formatter,"show-footer":!1,onSelectDay:ee,onClear:z,onConfirm:Q},null,8,["show-title","title","range","selected-date","range-start","range-end","min-date","max-date","disabled-date","formatter"])])):e.createCommentVNode("",!0),t.mode==="popup"?(e.openBlock(),e.createBlock(e.unref(re),{key:2,modelValue:m.value,"onUpdate:modelValue":[C[1]||(C[1]=E=>m.value=E),G],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(Ue,{"show-title":t.showTitle,title:t.title,range:i.value,"selected-date":_.value,"range-start":h.value,"range-end":b.value,"min-date":t.minDate,"max-date":t.maxDate,"disabled-date":$.value,formatter:t.formatter,"show-footer":t.showFooter,onSelectDay:ee,onClear:z,onConfirm:Q},null,8,["show-title","title","range","selected-date","range-start","range-end","min-date","max-date","disabled-date","formatter","show-footer"])],512)]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)]))}}),ce=H(Zt,[["__scopeId","data-v-2836ea57"]]);ce.name="rc-calendar";const en="RcCalendar";function we(t){return t.component(ce.name,ce),t.component(en,ce),t}const tn={class:"rc-search-area"},nn={class:"rc-search-area__bar"},an=["onClick"],ln={class:"rc-search-area__item-label"},on={class:"rc-search-area__panel-content"},rn={key:1,class:"rc-search-area__input-wrapper"},cn=["placeholder"],sn={key:2,class:"rc-search-area__calendar-wrapper"},un={key:3,class:"rc-search-area__tree-container"},dn={class:"rc-search-area__tree-group-title"},fn={class:"rc-search-area__tree-group-options"},mn=["onClick"],vn={class:"rc-search-area__option-label"},pn={key:4,class:"rc-search-area__tree-container"},yn={class:"rc-search-area__tree-group-title"},hn={class:"rc-search-area__tree-group-options"},kn=["onClick"],gn={class:"rc-search-area__option-label"},_n={key:5,class:"rc-search-area__options-grid"},Bn=["onClick"],Cn={class:"rc-search-area__option-label"},bn={key:6,class:"rc-search-area__options-grid"},Vn=["onClick"],Sn={class:"rc-search-area__option-label"},$n={key:7,class:"rc-search-area__empty"},En={key:0,class:"rc-search-area__panel-footer"},Dn=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:r,emit:d}){const o=t,p=d,g=e.ref(null),m=e.ref(null),v=e.ref(null),i=e.ref({top:"0px"}),y=async()=>{if(g.value===null||!m.value)return;await e.nextTick();const l=m.value.getBoundingClientRect().top;i.value={top:`${l}px`}},$=n=>{if(g.value===null||!m.value)return;const l=n.target;if(m.value.contains(l))return;const c=m.value.closest(".rc-search-area");if(c){const a=c.querySelector(".rc-search-area__bar");if(a&&a.contains(l))return}z()};e.watch(g,async n=>{n!==null?(await e.nextTick(),y(),window.addEventListener("resize",y),window.addEventListener("scroll",y,!0),document.addEventListener("click",$,!0)):(window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0),document.removeEventListener("click",$,!0))}),e.onUnmounted(()=>{window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0),document.removeEventListener("click",$,!0)});const _=e.ref({}),h=e.ref(""),b=e.ref(null),S=e.ref({}),B=e.ref({...o.modelValue});e.watch(()=>o.modelValue,n=>{B.value={...n||{}}},{deep:!0,immediate:!0});const s=e.computed(()=>g.value===null?null:o.items[g.value]),J=e.computed(()=>{if(!s.value)return"";const n=Ce(s.value);return n>0?`(${n}项)`:""}),ee=n=>{const l=B.value[n.key];if(l==null||l===""||n.slot)return n.label;if(n.type==="input"){if(l&&String(l).trim())return`${n.label}: ${l}`}else if(n.type==="calendar"){if(l){if(Array.isArray(l)&&l.length===2)return`${n.label}: ${l[0]} ~ ${l[1]}`;if(typeof l=="string")return`${n.label}: ${l}`}}else if(n.type==="single"||n.type==="tree-single"){const c=P(n,l);if(c)return`${n.label}: ${G(c,n)}`}else{const c=Array.isArray(l)?l:[l];if(c.length>0){const a=c.map(u=>{const f=P(n,u);return f?G(f,n):null}).filter(u=>u!==null);if(a.length>0)return`${n.label}: ${a.join("、")}`}}return n.label},Q=n=>{const l=o.items[n];if(!l)return;if(g.value===n){g.value=null;return}const c=B.value[l.key];l.slot?c!=null?Array.isArray(c)?S.value[l.key]=[...c]:typeof c=="object"?S.value[l.key]={...c}:S.value[l.key]=c:S.value[l.key]=void 0:l.type==="input"?h.value=c!=null?String(c):"":l.type==="calendar"?b.value=c??null:l.type==="single"||l.type==="tree-single"?_.value[l.key]=c!==void 0?c:null:_.value[l.key]=c!==void 0?Array.isArray(c)?[...c]:[c]:[],g.value=n},z=()=>{g.value=null},w=(n,l)=>{if(!l)return typeof n=="string"?n:n.label||String(n.value);const c=n;if(l.renderItem){if(typeof l.renderItem=="string")return String(typeof c=="object"&&c!==null?c[l.renderItem]??"":c);{const a=l.renderItem(c);return a!=null?String(a):""}}return typeof n=="string"?n:n.label||String(n.value)},I=(n,l)=>{if(!l)return typeof n=="string"?n:n.value!==void 0?n.value:n;const c=n;return l.format?typeof l.format=="string"?typeof c=="object"&&c!==null?c[l.format]:c:l.format(c):typeof n=="string"?n:n.value!==void 0?n.value:n},G=(n,l)=>{const c=n,a=l.renderResult||l.renderItem;if(a){if(typeof a=="string")return String(typeof c=="object"&&c!==null?c[a]??"":c);{const u=a(c);return u!=null?String(u):""}}return w(n,l)},P=(n,l,c)=>{const a=c||n.options,u=n.childrenKey||"children";for(const f of a){const V=I(f,n);if(V===l||String(V)===String(l))return f;if(typeof f=="object"&&f!==null){const D=f[u];if(Array.isArray(D)&&D.length>0){const W=P(n,l,D);if(W)return W}}}return null},U=(n,l)=>{const c=l||n.options,a=n.childrenKey||"children",u=[];for(const f of c)if(u.push(f),typeof f=="object"&&f!==null){const V=f[a];Array.isArray(V)&&V.length>0&&u.push(...U(n,V))}return u},M=n=>{if(!s.value)return!1;const l=s.value.key,c=_.value[l],a=I(n,s.value);return s.value.type==="single"||s.value.type==="tree-single"?c!=null&&c===a:(Array.isArray(c)?c:[]).some(f=>f===a||String(f)===String(a))},x=n=>n?n.childrenKey?U(n):n.options:[],k=n=>{if(!n)return[];const l=n.childrenKey||"children";return(n.options||[]).filter(c=>{if(typeof c=="string")return!1;const a=c[l];return Array.isArray(a)&&a.length>0})},C=(n,l)=>{if(!l||typeof n=="string")return[];const c=l.childrenKey||"children",a=n[c];return Array.isArray(a)?a:[]},E=n=>{if(n)return S.value[n.key]!==void 0?S.value[n.key]:B.value[n.key]},A=(n,l)=>{if(n&&(S.value[n.key]=l,o.autoConfirm)){const c=n.key;B.value[c]=l,p("update:modelValue",{...B.value}),p("change",{...B.value},n),z()}},O=n=>{if(!s.value)return;const l=s.value.key,c=I(n,s.value);B.value[l];let a;_.value[l]===c?a=void 0:a=c,B.value[l]=a,p("update:modelValue",{...B.value}),p("change",{...B.value},s.value),z()},me=n=>{if(!s.value)return;const l=s.value.key,c=I(n,s.value),a=Array.isArray(_.value[l])?[..._.value[l]]:[],u=a.findIndex(f=>f===c||String(f)===String(c));if(u>=0?a.splice(u,1):a.push(c),_.value[l]=a,o.autoConfirm){const f=a.length>0?a:void 0;B.value[l]=f,p("update:modelValue",{...B.value}),p("change",{...B.value},s.value),z()}},ke=()=>{if(!s.value)return;const n=s.value.key;s.value.slot?S.value[n]=void 0:s.value.type==="input"?h.value="":s.value.type==="calendar"?b.value=null:s.value.type==="single"||s.value.type==="tree-single"?_.value[n]=null:_.value[n]=[]},ge=()=>{if(o.autoConfirm&&s.value){const n=s.value.key,l=h.value.trim()||void 0;B.value[n]=l,p("update:modelValue",{...B.value}),p("change",{...B.value},s.value),z()}},_e=n=>{if(b.value=n,o.autoConfirm&&s.value){const l=s.value.key,c=n??void 0;B.value[l]=c,p("update:modelValue",{...B.value}),p("change",{...B.value},s.value),z()}},Be=()=>{if(!s.value)return;const n=s.value.key;B.value[n];let l;if(s.value.slot)l=S.value[n],B.value[n]=l;else if(s.value.type==="input")l=h.value.trim()||void 0,B.value[n]=l;else if(s.value.type==="calendar")l=b.value!==null&&b.value!==void 0?b.value:void 0,B.value[n]=l;else if(s.value.type==="single"||s.value.type==="tree-single"){const c=_.value[n];l=c??void 0,B.value[n]=l}else{const c=_.value[n];l=Array.isArray(c)&&c.length>0?c:void 0,B.value[n]=l}p("update:modelValue",{...B.value}),p("change",{...B.value},s.value),z()},ve=n=>{const l=B.value[n.key];return l==null||l===""?0:n.slot?1:n.type==="input"?String(l).trim()?1:0:n.type==="single"||n.type==="tree-single"?1:Array.isArray(l)?l.length:l?1:0},Ce=n=>{if(n.slot){const c=S.value[n.key];return c!=null&&c!==""?1:0}else{if(n.type==="input")return h.value.trim()?1:0;if(n.type==="calendar")return b.value!==null&&b.value!==void 0?1:0}const l=_.value[n.key];return l==null||l===""?0:n.type==="single"||n.type==="tree-single"?1:Array.isArray(l)?l.length:0};return r({getValues:()=>({...B.value}),reset:()=>{B.value={},_.value={},S.value={},p("update:modelValue",{})}}),(n,l)=>(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("div",nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(c,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:e.normalizeClass(["rc-search-area__item",{"is-active":g.value===a,"has-value":ve(c)>0}]),onClick:u=>Q(a)},[e.createElementVNode("span",ln,e.toDisplayString(ee(c)),1),e.createVNode(e.unref(L),{name:"icon_a-xiala2",color:g.value!==a&&ve(c)>0?"#1677ff":"#969799",class:e.normalizeClass(["rc-search-area__item-arrow",{"is-up":g.value===a}])},null,8,["color","class"])],10,an))),128))]),e.createVNode(e.Transition,{name:"rc-search-area-fade"},{default:e.withCtx(()=>[g.value!==null&&o.showMask?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"maskRef",ref:v,class:"rc-search-area__mask",style:e.normalizeStyle(i.value),onClick:z},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"rc-search-area-slide"},{default:e.withCtx(()=>{var c,a,u,f,V,D,W,j,se,pe,R,ue,T,F,Fe,ze,Ae,Le;return[g.value!==null?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"panelRef",ref:m,class:"rc-search-area__panel"},[e.createElementVNode("div",on,[(c=s.value)!=null&&c.slot&&n.$slots[s.value.key]?e.renderSlot(n.$slots,s.value.key,{key:0,value:E(s.value),"update:value":N=>A(s.value,N)},void 0,!0):((a=s.value)==null?void 0:a.type)==="input"?(e.openBlock(),e.createElementBlock("div",rn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=N=>h.value=N),type:"text",class:"rc-search-area__input",placeholder:s.value.placeholder||"请输入",onInput:ge},null,40,cn),[[e.vModelText,h.value]])])):((u=s.value)==null?void 0:u.type)==="calendar"?(e.openBlock(),e.createElementBlock("div",sn,[e.createVNode(e.unref(ce),{modelValue:b.value,"onUpdate:modelValue":l[1]||(l[1]=N=>b.value=N),range:((f=s.value.calendarConfig)==null?void 0:f.range)||!1,mode:"default","min-date":(V=s.value.calendarConfig)==null?void 0:V.minDate,"max-date":(D=s.value.calendarConfig)==null?void 0:D.maxDate,"disabled-date":(W=s.value.calendarConfig)==null?void 0:W.disabledDate,formatter:(j=s.value.calendarConfig)==null?void 0:j.formatter,onChange:_e},null,8,["modelValue","range","min-date","max-date","disabled-date","formatter"])])):((se=s.value)==null?void 0:se.type)==="tree-single"?(e.openBlock(),e.createElementBlock("div",un,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k(s.value),(N,te)=>(e.openBlock(),e.createElementBlock("div",{key:te,class:"rc-search-area__tree-group"},[e.createElementVNode("div",dn,e.toDisplayString(w(N,s.value||void 0)),1),e.createElementVNode("div",fn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C(N,s.value),(K,be)=>(e.openBlock(),e.createElementBlock("div",{key:be,class:e.normalizeClass(["rc-search-area__option",{"is-selected":M(K)}]),onClick:Ke=>O(K)},[e.createElementVNode("span",vn,e.toDisplayString(w(K,s.value||void 0)),1),M(K)?(e.openBlock(),e.createBlock(e.unref(L),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,mn))),128))])]))),128))])):((pe=s.value)==null?void 0:pe.type)==="tree-multiple"?(e.openBlock(),e.createElementBlock("div",pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k(s.value),(N,te)=>(e.openBlock(),e.createElementBlock("div",{key:te,class:"rc-search-area__tree-group"},[e.createElementVNode("div",yn,e.toDisplayString(w(N,s.value||void 0)),1),e.createElementVNode("div",hn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C(N,s.value),(K,be)=>(e.openBlock(),e.createElementBlock("div",{key:be,class:e.normalizeClass(["rc-search-area__option",{"is-selected":M(K)}]),onClick:Ke=>me(K)},[e.createElementVNode("span",gn,e.toDisplayString(w(K,s.value||void 0)),1),M(K)?(e.openBlock(),e.createBlock(e.unref(L),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,kn))),128))])]))),128))])):((R=s.value)==null?void 0:R.type)==="single"?(e.openBlock(),e.createElementBlock("div",_n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x(s.value),(N,te)=>(e.openBlock(),e.createElementBlock("div",{key:te,class:e.normalizeClass(["rc-search-area__option",{"is-selected":M(N)}]),onClick:K=>O(N)},[e.createElementVNode("span",Cn,e.toDisplayString(w(N,s.value||void 0)),1),M(N)?(e.openBlock(),e.createBlock(e.unref(L),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Bn))),128))])):(e.openBlock(),e.createElementBlock("div",bn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x(s.value),(N,te)=>(e.openBlock(),e.createElementBlock("div",{key:te,class:e.normalizeClass(["rc-search-area__option",{"is-selected":M(N)}]),onClick:K=>me(N)},[e.createElementVNode("span",Sn,e.toDisplayString(w(N,s.value||void 0)),1),M(N)?(e.openBlock(),e.createBlock(e.unref(L),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Vn))),128))])),((ue=s.value)==null?void 0:ue.type)!=="input"&&((T=s.value)==null?void 0:T.type)!=="calendar"&&!((F=s.value)!=null&&F.slot)&&((ze=(Fe=s.value)==null?void 0:Fe.options)==null?void 0:ze.length)===0?(e.openBlock(),e.createElementBlock("div",$n,[...l[2]||(l[2]=[e.createElementVNode("p",null,"暂无选项",-1)])])):e.createCommentVNode("",!0)]),!o.autoConfirm&&((Ae=s.value)==null?void 0:Ae.type)!=="single"&&((Le=s.value)==null?void 0:Le.type)!=="tree-single"?(e.openBlock(),e.createElementBlock("div",En,[e.createVNode(e.unref(q),{block:"",onClick:ke},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode(" 重置 ",-1)])]),_:1}),e.createVNode(e.unref(q),{type:"primary",block:"",onClick:Be},{default:e.withCtx(()=>[e.createTextVNode(" 确定"+e.toDisplayString(J.value),1)]),_:1})])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)]}),_:3})]))}}),Ie=H(Dn,[["__scopeId","data-v-d6546197"]]),Me=t=>{t.component("RcSearchArea",Ie),t.component("rc-search-area",Ie)},he=Symbol("RECYCLE_UI_CONFIG"),Re={prefix:"rc",autoRegister:!0,provideKey:he,theme:{},iconCssUrl:"//at.alicdn.com/t/c/font_4252799_o59odx6bqil.css",iconClass:"iconfont"};function xn(t,r){r.autoRegister!==!1&&(typeof Se=="function"&&Se(t),typeof $e=="function"&&$e(t),typeof Ee=="function"&&Ee(t),typeof Pe=="function"&&Pe(t),typeof xe=="function"&&xe(t),typeof De=="function"&&De(t),typeof Me=="function"&&Me(t),typeof we=="function"&&we(t),typeof Ne=="function"&&Ne(t))}const Te=(t,r)=>{const d={...Re,...r||{}};if(t.provide(d.provideKey??he,d),t.config.globalProperties.$recycleUI=d,typeof window<"u"&&d.iconCssUrl){const o=`link[rel="stylesheet"][data-rcui-icon="true"][href="${d.iconCssUrl}"]`;if(!document.head.querySelector(o)){const g=document.createElement("link");g.rel="stylesheet",g.href=d.iconCssUrl,g.setAttribute("data-rcui-icon","true"),document.head.appendChild(g)}}return xn(t,d),t},Nn={install:Te};function wn(t){return{install(r){Te(r,t)}}}exports.RECYCLE_UI_SYMBOL=he;exports.RcButton=q;exports.RcCalendar=ce;exports.RcCard=de;exports.RcDescriptions=We;exports.RcDescriptionsItem=Oe;exports.RcIcon=L;exports.RcPopup=re;exports.RcSearchArea=Ie;exports.RcToast=fe;exports.createRecycleUI=wn;exports.default=Nn;exports.defaultRecycleUIConfig=Re;exports.hideToast=je;exports.install=Te;exports.installButton=Se;exports.installCalendar=we;exports.installCard=Ee;exports.installDescriptions=$e;exports.installIcon=xe;exports.installMessage=De;exports.installPopup=Ne;exports.installSearchArea=Me;exports.message=Ge;exports.rcDescriptions=We;exports.rcDescriptionsItem=Oe;exports.showToast=_t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),tt={key:0,class:"rc-icon__unicode"},nt=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,d=e.inject(Ee,{}),l=e.computed(()=>(d==null?void 0:d.iconClass)||"iconfont"),p=e.computed(()=>c.name||""),_=e.computed(()=>typeof c.size=="number"?`${c.size}px`:c.size||"16px"),v=e.computed(()=>({fontSize:_.value,color:c.color||void 0,lineHeight:1,fontFamily:(d==null?void 0:d.iconClass)||"iconfont"})),f=e.computed(()=>{const i=c.code;if(i==null||i===""||i===0)return"";if(typeof i=="number")return String.fromCharCode(i);const y=String(i).replace(/^0x/i,""),x=parseInt(y,16);return Number.isNaN(x)?"":String.fromCharCode(x)});return e.onMounted(()=>{if(typeof window>"u")return;const i=d&&d.iconCssUrl||Ue.iconCssUrl;if(!i)return;const y=`link[rel="stylesheet"][data-rcui-icon="true"][href="${i}"]`;if(!document.head.querySelector(y)){const C=document.createElement("link");C.rel="stylesheet",C.href=i,C.setAttribute("data-rcui-icon","true"),document.head.appendChild(C)}}),(i,y)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["rc-icon",[l.value,p.value,{"rc-icon--spin":t.spin}]]),style:e.normalizeStyle(v.value),"aria-hidden":"true"},[f.value?(e.openBlock(),e.createElementBlock("span",tt,e.toDisplayString(f.value),1)):e.createCommentVNode("",!0)],6))}}),J=(t,c)=>{const d=t.__vccOpts||t;for(const[l,p]of c)d[l]=p;return d},A=J(nt,[["__scopeId","data-v-3857a892"]]),at=["disabled"],lt={key:0,class:"rc-button__spinner"},ot={key:0,class:"rc-button__icon rc-button__icon--prefix"},rt={key:2,class:"rc-button__icon rc-button__icon--suffix"},ct=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 d=t,l=c,p=v=>{!d.disabled&&!d.loading&&l("click",v)},_=e.computed(()=>{const v=d.round;return typeof v=="boolean"?v?"999px":"6px":typeof v=="number"?`${v}px`:String(v)});return(v,f)=>(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:_.value}),disabled:t.disabled||t.loading,onClick:p},[t.loading?(e.openBlock(),e.createElementBlock("span",lt)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.preIcon||v.$slots.preIcon?(e.openBlock(),e.createElementBlock("span",ot,[e.renderSlot(v.$slots,"preIcon",{},()=>[t.preIcon?(e.openBlock(),e.createBlock(A,{key:0,name:t.preIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],64)),e.renderSlot(v.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0),!t.loading&&(t.suffixIcon||v.$slots.suffixIcon)?(e.openBlock(),e.createElementBlock("span",rt,[e.renderSlot(v.$slots,"suffixIcon",{},()=>[t.suffixIcon?(e.openBlock(),e.createBlock(A,{key:0,name:t.suffixIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],14,at))}}),q=J(ct,[["__scopeId","data-v-3ed3109f"]]);q.name="rc-button";function Re(t){return t.component(q.name,q),t}const st={class:"rc-desc-item__value"},ut=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 d=e.inject("rcDescGapPx",0),l=e.inject("rcDescColCount",1),p=e.inject("rcDescLabelWidth",""),_=e.computed(()=>{const i=typeof c.span=="string"?parseInt(c.span,10):c.span,y=typeof(l==null?void 0:l.value)=="number"?l.value:l,x=!Number.isNaN(i)&&i>0?i:1;return Math.min(x,y||1)}),v=e.computed(()=>{const i=typeof(l==null?void 0:l.value)=="number"?l.value:l,y=typeof(d==null?void 0:d.value)=="number"?d.value:d,x=_.value;if(!i||i<=1||x>=i)return"100%";const C=(i-1)*y,h=(x-1)*y;return`calc((100% - ${C}px) * ${x} / ${i} + ${h}px)`}),f=e.computed(()=>{const i=typeof(p==null?void 0:p.value)=="string"?p.value:p,y=c.labelWidth!==""?c.labelWidth:i||"";return y?{width:typeof y=="number"?`${y}px`:String(y),flex:"0 0 auto"}:{}});return(i,y)=>(e.openBlock(),e.createElementBlock("div",{class:"rc-desc-item",style:e.normalizeStyle({width:v.value,flex:`0 0 ${v.value}`})},[e.createElementVNode("div",{class:"rc-desc-item__label",style:e.normalizeStyle(f.value)},[e.renderSlot(i.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)],4),e.createElementVNode("div",st,[e.renderSlot(i.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)],!0)])],4))}}),se=J(ut,[["__scopeId","data-v-970d0b99"]]),it={class:"rc-descriptions"},dt={key:0,class:"rc-descriptions__title"},ft=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,d=e.ref(null),l=e.computed(()=>typeof c.gap=="number"?`${c.gap}px`:String(c.gap)),p=e.computed(()=>{const y=typeof c.column=="string"?Number.parseInt(c.column,10):c.column??1;return!Number.isNaN(y)&&y>0?y:1}),_=e.ref("100%"),v=e.ref("100%");e.watchEffect(()=>{const y=p.value;if(y<=1)_.value="100%",v.value="100%";else{const x=typeof c.gap=="number"?c.gap:parseFloat(String(c.gap))||0,h=`calc((100% - ${(y-1)*x}px) / ${y})`;v.value=h,_.value=h}}),e.provide("rcDescItemWidth",_),e.provide("rcDescSingleWidth",v),e.provide("rcDescColCount",p),e.provide("rcDescGapPx",e.computed(()=>typeof c.gap=="number"?c.gap:parseFloat(String(c.gap))||0));const f=e.computed(()=>c.labelWidth===""||c.labelWidth===void 0?"":typeof c.labelWidth=="number"?`${c.labelWidth}px`:String(c.labelWidth));e.provide("rcDescLabelWidth",f),e.provide("rcDescGap",e.computed(()=>typeof c.gap=="number"?`${c.gap}px`:String(c.gap)));const i=e.computed(()=>{var C,h,V;const y=((C=c.keyMap)==null?void 0:C.key)??"label",x=((h=c.keyMap)==null?void 0:h.value)??"value";return(V=c.data)!=null&&V.length?c.data.map(S=>({label:S==null?void 0:S[y],value:S==null?void 0:S[x]})):[]});return(y,x)=>(e.openBlock(),e.createElementBlock("div",it,[y.$slots.title||t.title?(e.openBlock(),e.createElementBlock("div",dt,[e.renderSlot(y.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-descriptions__body",style:e.normalizeStyle({gap:l.value}),ref_key:"wrapEl",ref:d},[i.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.value,(C,h)=>(e.openBlock(),e.createBlock(se,{key:h,label:C.label,value:C.value,"label-width":t.labelWidth},null,8,["label","value","label-width"]))),128)):e.renderSlot(y.$slots,"default",{key:1},void 0,!0)],4)]))}}),ve=J(ft,[["__scopeId","data-v-5fcaa235"]]);ve.name="rc-descriptions";se.name="rc-descriptions-item";function Te(t){return t.component(ve.name,ve),t.component("RcDescriptions",ve),t.component(se.name,se),t.component("RcDescriptionsItem",se),t}const Je=ve,Qe=se,mt={class:"rc-card__title"},vt={class:"rc-card__title-text"},pt={key:0,class:"rc-card__status"},yt={key:1,class:"rc-card__divider"},gt={key:2,class:"rc-card__action"},ht=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,d=e.computed(()=>{const f=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:f,boxShadow:v(c.elevation),width:_(c.width),height:_(c.height)}}),l=e.computed(()=>c.padding||"16px"),p=e.computed(()=>typeof c.gap=="number"?`${c.gap}px`:String(c.gap));function _(f){return f==null||f===""?"":typeof f=="number"?`${f}px`:String(f)}function v(f){if(!f||f<=0)return"none";const i=4*f;return`0 ${Math.round(i/2)}px ${i}px rgba(0,0,0,0.06), 0 ${Math.round(i/4)}px ${Math.round(i/2)}px rgba(0,0,0,0.04)`}return(f,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-card",[{"rc-card--bordered":t.bordered}]]),style:e.normalizeStyle(d.value)},[f.$slots.title||t.title||f.$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",mt,[e.renderSlot(f.$slots,"title",{},()=>[e.createElementVNode("span",vt,e.toDisplayString(t.title),1)],!0)]),f.$slots.status||t.status?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(f.$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:l.value,gap:p.value})},[e.renderSlot(f.$slots,"content",{},()=>[e.renderSlot(f.$slots,"default",{},void 0,!0)],!0)],4),f.$slots.action?(e.openBlock(),e.createElementBlock("div",yt)):e.createCommentVNode("",!0),f.$slots.action?(e.openBlock(),e.createElementBlock("div",gt,[e.renderSlot(f.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),pe=J(ht,[["__scopeId","data-v-a7b95214"]]);pe.name="rc-card";const kt="RcCard";function Fe(t){return t.component(pe.name,pe),t.component(kt,pe),t}const _t={key:0,class:"rc-toast__mask"},Ct={class:"rc-toast__content"},Bt={key:0,class:"rc-toast__spinner"},bt={key:1,class:"rc-toast__icon rc-toast__icon--success"},Dt={key:2,class:"rc-toast__icon rc-toast__icon--fail"},Vt={class:"rc-toast__text"},St=e.defineComponent({__name:"index",props:{message:{default:""},type:{default:"text"},duration:{default:2e3},mask:{type:Boolean,default:!1},onAfterLeave:{}},setup(t,{expose:c}){const d=t,l=e.ref(!0);let p;function _(){p&&(clearTimeout(p),p=null)}function v(){_(),l.value=!1}return c({close:v}),e.onMounted(()=>{d.duration&&d.duration>0&&(p=setTimeout(()=>{v()},d.duration))}),e.onUnmounted(()=>{_()}),(f,i)=>(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(()=>[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-toast",[`rc-toast--${t.type}`]])},[t.mask?(e.openBlock(),e.createElementBlock("div",_t)):e.createCommentVNode("",!0),e.createElementVNode("div",Ct,[t.type==="loading"?(e.openBlock(),e.createElementBlock("div",Bt)):t.type==="success"?(e.openBlock(),e.createElementBlock("div",bt)):t.type==="fail"?(e.openBlock(),e.createElementBlock("div",Dt)):e.createCommentVNode("",!0),e.createElementVNode("div",Vt,e.toDisplayString(t.message),1)])],2)):e.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])])),e.renderSlot(f.$slots,"default",{},void 0,!0)],64))}}),ye=J(St,[["__scopeId","data-v-d234c9c5"]]);let re=null,ue=null;function Ke(){re&&(re.unmount(),re=null),ue&&(document.body.removeChild(ue),ue=null)}function $t(t){const c=typeof t=="string"?{message:t}:t||{};Ke(),ue=document.createElement("div"),document.body.appendChild(ue);const d={message:c.message,type:c.type??"text",duration:c.duration??2e3,mask:c.mask??!1,onAfterLeave:()=>{var l;Ke(),(l=c.onClose)==null||l.call(c)}};return re=e.createApp(ye,d),re.mount(ue),{close:Xe}}function Xe(){var t,c,d;re&&((d=(c=(t=re._instance)==null?void 0:t.exposed)==null?void 0:c.close)==null||d.call(c))}ye.name="rc-toast";function He(t){return t.component(ye.name,ye),t}const xt={class:"rc-message",role:"alert","aria-live":"polite"},Et={class:"rc-message__content"},wt=e.defineComponent({__name:"index",setup(t,{expose:c}){const d=e.reactive([]);let l=1;function p(v){const f=d.findIndex(i=>i.id===v);f>=0&&d.splice(f,1)}function _(v,f,i){const y=l++;return d.push({id:y,type:v,content:f,duration:i}),i>0&&window.setTimeout(()=>p(y),i),y}return c({add:_,remove:p}),(v,f)=>(e.openBlock(),e.createElementBlock("div",xt,[e.createVNode(e.TransitionGroup,{name:"rc-message-fade",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:e.normalizeClass(["rc-message__item",`rc-message--${i.type}`])},[e.createElementVNode("span",Et,e.toDisplayString(i.content),1)],2))),128))]),_:1})]))}}),Nt=J(wt,[["__scopeId","data-v-87811df0"]]);let oe=null,le=null;function It(){var c;if(oe&&le)return;oe=document.createElement("div"),document.body.appendChild(oe);const t=e.createVNode(Nt,{});e.render(t,oe),le=(c=t.component)==null?void 0:c.exposed}function ce(t,c,d){var p;It();const l=typeof d=="number"?d:t==="loading"?0:2e3;return(p=le==null?void 0:le.add)==null?void 0:p.call(le,t,c,l)}const Ze={open(t){return ce(t.type||"info",t.content,t.duration)},info(t,c){return ce("info",t,c)},success(t,c){return ce("success",t,c)},warning(t,c){return ce("warning",t,c)},error(t,c){return ce("error",t,c)},loading(t,c){return ce("loading",t,c)},destroy(){oe&&(e.render(null,oe),oe.remove(),oe=null,le=null)}};function ze(t){return t.config.globalProperties.$message=Ze,t}A.name="rc-icon";function Ae(t){return t.component(A.name,A),t.component("RcIcon",A),t}const Mt={class:"rc-popup__content"},Rt=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:d}){const l=t,p=d,_=e.ref(),v=e.ref(l.modelValue);e.watch(()=>l.modelValue,u=>{v.value=u,u?(p("open"),l.lockScroll&&x()):(p("close"),l.lockScroll&&C())},{immediate:!0}),e.watch(v,u=>{u!==l.modelValue&&p("update:modelValue",u)});const f=e.computed(()=>`rc-popup-slide-${l.position}`),i=e.computed(()=>({...l.popupStyle||{}}));let y=!1;function x(){y||(y=!0,document.body.style.overflow="hidden")}function C(){y&&(y=!1,document.body.style.overflow="")}function h(){p("click-overlay"),l.closeOnClickOverlay&&S()}function V(){S()}function S(){v.value=!1}function B(){v.value=!0}return e.onUnmounted(()=>{C()}),c({open:B,close:S,visible:v}),(u,te)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"rc-popup-fade"},{default:e.withCtx(()=>[v.value&&l.overlay?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-popup__overlay",{"rc-popup__overlay--transparent":l.overlayClass==="transparent"}]),style:e.normalizeStyle(l.overlayStyle),onClick:h},null,6)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:f.value},{default:e.withCtx(()=>[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"popupRef",ref:_,class:e.normalizeClass(["rc-popup",[`rc-popup--${t.position}`,{"rc-popup--round":t.round}]]),style:e.normalizeStyle(i.value),onClick:te[0]||(te[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(A,{name:t.closeIcon,class:"rc-popup__close-icon"},null,8,["name"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Mt,[e.renderSlot(u.$slots,"default",{},void 0,!0)])],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),ie=J(Rt,[["__scopeId","data-v-f1696784"]]);ie.name="rc-popup";const Tt="RcPopup";function Ye(t){return t.component(ie.name,ie),t.component(Tt,ie),t}const Ft={key:0,class:"rc-calendar__header"},zt={class:"rc-calendar__header-title"},At={key:1,class:"rc-calendar__shortcuts"},Yt={class:"rc-calendar__shortcuts-scroll"},Lt=["onClick"],Pt={class:"rc-calendar__month-title"},Wt={class:"rc-calendar__weekdays"},Ut={class:"rc-calendar__days"},Ot=["onClick"],jt={class:"rc-calendar__day-content"},Gt={class:"rc-calendar__day-text"},Kt={key:0,class:"rc-calendar__day-bottom"},Ht={key:2,class:"rc-calendar__footer"},qt={key:0,class:"rc-calendar__month-picker-overlay"},Jt={class:"rc-calendar__month-picker"},Qt={class:"rc-calendar__month-picker-header"},Xt={class:"rc-calendar__month-picker-title"},Zt={key:0},en={key:0,class:"rc-calendar__year-picker-content"},tn={class:"rc-calendar__year-picker-grid"},nn=["onClick"],an={key:1,class:"rc-calendar__month-picker-content"},ln=["onClick"],xe=48,W=3,Me=7,on=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:d}){const l=t,p=d,_=["日","一","二","三","四","五","六"];function v(n){if(!n)return null;const o=new Date(n);return isNaN(o.getTime())?null:o}function f(n){const o=n.getFullYear(),m=String(n.getMonth()+1).padStart(2,"0"),D=String(n.getDate()).padStart(2,"0");return`${o}-${m}-${D}`}const i=e.ref(new Date);e.watch(()=>[l.selectedDate,l.rangeStart],()=>{if(l.range&&l.rangeStart){const n=v(l.rangeStart);n&&(i.value=n)}else if(!l.range&&l.selectedDate){const n=v(l.selectedDate);n&&(i.value=n)}},{immediate:!0});function y(n){const o=new Date;return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()&&n.getDate()===o.getDate()}function x(n){if(!l.rangeStart||!l.rangeEnd)return!1;const o=f(n),m=l.rangeStart,D=l.rangeEnd;return o>m&&o<D}function C(n){if(l.disabledDate&&l.disabledDate(n))return!0;const o=f(n);return!!(l.minDate&&o<l.minDate||l.maxDate&&o>l.maxDate)}function h(n,o){const m=new Date(n,o,1),D=new Date(n,o+1,0),M=m.getDay(),Z=D.getDate(),ee=[],je=new Date(n,o,0).getDate();for(let Y=M-1;Y>=0;Y--){const L={date:new Date(n,o-1,je-Y),type:"prev-month",text:String(je-Y)};if(l.formatter){const P=l.formatter(L);P.text&&(L.text=P.text),P.bottomInfo&&(L.bottomInfo=P.bottomInfo)}ee.push(L)}for(let Y=1;Y<=Z;Y++){const L={date:new Date(n,o,Y),type:"current-month",text:String(Y)};if(l.formatter){const P=l.formatter(L);P.text&&(L.text=P.text),P.bottomInfo&&(L.bottomInfo=P.bottomInfo)}ee.push(L)}const et=42-ee.length;for(let Y=1;Y<=et;Y++){const L={date:new Date(n,o+1,Y),type:"next-month",text:String(Y)};if(l.formatter){const P=l.formatter(L);P.text&&(L.text=P.text),P.bottomInfo&&(L.bottomInfo=P.bottomInfo)}ee.push(L)}return ee}const V=e.computed(()=>{const n=i.value.getFullYear(),o=i.value.getMonth();return h(n,o)}),S=e.computed(()=>{const n=i.value.getFullYear(),o=i.value.getMonth()+1;return`${n}年${o}月`});function B(n){const o=[];if(n.type!=="current-month"&&o.push("is-other-month"),y(n.date)&&o.push("is-today"),C(n.date))return o.push("is-disabled"),o;const m=f(n.date);return l.range?(l.rangeStart===m&&o.push("is-start"),l.rangeEnd===m&&o.push("is-end"),x(n.date)&&o.push("is-in-range")):l.selectedDate===m&&o.push("is-selected"),o}const u=e.computed(()=>!!(l.rangeStart&&l.rangeEnd)),te=e.computed(()=>l.rangeStart&&l.rangeEnd?2:l.rangeStart||l.rangeEnd?1:0);function ne(n){if(!l.minDate&&!l.maxDate)return!1;const o=l.minDate?v(l.minDate):null,m=l.maxDate?v(l.maxDate):null;return!!(o&&n<o.getFullYear()||m&&n>m.getFullYear())}function Q(n,o){const m=l.minDate?v(l.minDate):null,D=l.maxDate?v(l.maxDate):null;if(m){const M=m.getFullYear(),Z=m.getMonth()+1;if(n<M||n===M&&o<Z)return!0}if(D){const M=D.getFullYear(),Z=D.getMonth()+1;if(n>M||n===M&&o>Z)return!0}return!1}const z=e.ref(!1),N=e.ref("year"),R=e.ref(i.value.getFullYear()),U=e.ref(i.value.getMonth()+1),O=e.ref(),j=e.ref(1900),T=e.ref(1920),I=e.ref(1900),G=e.ref(2100),k=e.computed(()=>{const n=[],m=Math.floor((j.value-I.value)/W)-3,D=Math.ceil((T.value-I.value)/W)+3,M=I.value+Math.max(0,m)*W,Z=I.value+D*W-1;for(let ee=M;ee<=Z;ee++)n.push(ee);return n});e.watch(()=>i.value,n=>{R.value=n.getFullYear(),U.value=n.getMonth()+1},{immediate:!0});function b(){if(!O.value)return;const n=O.value.scrollTop,m=Math.max(0,Math.floor(n/xe)),D=I.value+m*W,M=D+Me*W-1;D<I.value?I.value=D-100:M>G.value&&(G.value=M+100),(D!==j.value||M!==T.value)&&(j.value=D,T.value=M)}function E(){R.value=i.value.getFullYear(),U.value=i.value.getMonth()+1,N.value="year",z.value=!0;const n=R.value;n<I.value?I.value=Math.floor(n/100)*100:n>G.value&&(G.value=Math.ceil(n/100)*100+99),e.nextTick(()=>{if(O.value){const o=Math.floor((n-I.value)/W),m=Math.max(0,o-2);j.value=I.value+m*W,T.value=j.value+Me*W-1,F(n)}})}function F(n){if(!O.value)return;n<I.value?I.value=Math.floor(n/100)*100:n>G.value&&(G.value=Math.ceil(n/100)*100+99);const o=Math.floor((n-I.value)/W),m=o*xe;O.value.scrollTop=m;const D=Math.max(0,o-2);j.value=I.value+D*W,T.value=j.value+Me*W-1}function K(){const n=new Date(i.value);n.setMonth(n.getMonth()-1),i.value=n}function we(){const n=new Date(i.value);n.setMonth(n.getMonth()+1),i.value=n}function Ne(n){ne(n)||(R.value=n,N.value="month")}function Ie(n){Q(R.value,n)||(U.value=n,ge())}function ge(){const n=new Date(i.value);n.setFullYear(R.value),n.setMonth(U.value-1),i.value=n,z.value=!1,N.value="year"}function he(n){p("select-day",n)}function ke(){p("clear")}function a(){H.value&&ke()}function r(){p("confirm")}function s(){z.value=!1}function g(n){N.value=n}function w(){const o=new Date().getFullYear();ne(o)||(R.value=o,N.value="month")}function $(){const o=new Date().getMonth()+1;Q(R.value,o)||(U.value=o,ge())}const H=e.computed(()=>l.range?!!(l.rangeStart||l.rangeEnd):!!l.selectedDate);function ae(n,o){const m=v(n),D=v(o);if(!m||!D)return 0;const M=Math.abs(D.getTime()-m.getTime());return Math.ceil(M/(1e3*60*60*24))+1}function X(){return f(new Date)}function fe(){const n=new Date,o=n.getDay(),m=n.getDate()-o+(o===0?-6:1);return new Date(n.getFullYear(),n.getMonth(),m)}function _e(){const n=fe(),o=new Date(n);return o.setDate(n.getDate()+6),o}function Ce(){const n=new Date;return new Date(n.getFullYear(),n.getMonth(),1)}function me(){const n=new Date;return new Date(n.getFullYear(),n.getMonth()+1,0)}function Be(){const n=new Date;return new Date(n.getFullYear(),n.getMonth()-2,1)}function be(){const n=new Date;return new Date(n.getFullYear(),0,1)}function De(){const n=new Date;return new Date(n.getFullYear(),11,31)}const Ve=[{key:"today",label:"本日",days:1,getRange:()=>{const n=X();return[n,n]}},{key:"week",label:"本周",days:7,getRange:()=>{const n=f(fe()),o=f(_e());return[n,o]}},{key:"month",label:"本月",getRange:()=>{const n=f(Ce()),o=f(me());return[n,o]}},{key:"threeMonths",label:"近三月",getRange:()=>{const n=f(Be()),o=f(me());return[n,o]}},{key:"year",label:"本年",getRange:()=>{const n=f(be()),o=f(De());return[n,o]}},{key:"last7Days",label:"近7天",days:7,getRange:()=>{const n=new Date,o=new Date(n);return o.setDate(n.getDate()-6),[f(o),X()]}},{key:"last30Days",label:"近30天",days:30,getRange:()=>{const n=new Date,o=new Date(n);return o.setDate(n.getDate()-29),[f(o),X()]}}],Se=e.computed(()=>Ve.filter(n=>{if(l.maxRangeDays!==void 0){if(n.days!==void 0)return n.days<=l.maxRangeDays;{const o=n.getRange();if(o)return ae(o[0],o[1])<=l.maxRangeDays}}return!0}));function $e(n){const o=n.getRange();if(o){if(l.minDate&&o[0]<l.minDate||l.maxDate&&o[1]>l.maxDate)return;p("shortcut-select",o)}}return c({yearScrollRef:O}),(n,o)=>(e.openBlock(),e.createElementBlock("div",null,[t.showTitle?(e.openBlock(),e.createElementBlock("div",Ft,[e.createElementVNode("div",zt,e.toDisplayString(t.title),1),e.createElementVNode("span",{class:e.normalizeClass(["rc-calendar__header-clear",{"is-disabled":!H.value}]),onClick:a}," 清空 ",2)])):e.createCommentVNode("",!0),t.range?(e.openBlock(),e.createElementBlock("div",At,[e.createElementVNode("div",Yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Se.value,m=>(e.openBlock(),e.createElementBlock("div",{key:m.key,class:"rc-calendar__shortcut-item",onClick:D=>$e(m)},e.toDisplayString(m.label),9,Lt))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Pt,[e.createElementVNode("div",{class:"rc-calendar__nav-button",onClick:K},[e.createVNode(e.unref(A),{name:"icon_caret-left",class:"rc-calendar__nav-icon"})]),e.createElementVNode("div",{class:"rc-calendar__month-text",onClick:E},e.toDisplayString(S.value),1),e.createElementVNode("div",{class:"rc-calendar__nav-button",onClick:we},[e.createVNode(e.unref(A),{name:"icon_caret-right",class:"rc-calendar__nav-icon"})])]),e.createElementVNode("div",Wt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_,m=>e.createElementVNode("div",{key:m,class:"rc-calendar__weekday"},e.toDisplayString(m),1)),64))]),e.createElementVNode("div",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(m,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,class:e.normalizeClass(["rc-calendar__day",B(m)]),onClick:M=>he(m)},[e.createElementVNode("div",jt,[e.createElementVNode("span",Gt,e.toDisplayString(m.text),1),m.bottomInfo?(e.openBlock(),e.createElementBlock("span",Kt,e.toDisplayString(m.bottomInfo),1)):e.createCommentVNode("",!0)])],10,Ot))),128))]),t.range&&t.showFooter?(e.openBlock(),e.createElementBlock("div",Ht,[e.createVNode(e.unref(q),{type:"default",class:"rc-calendar__footer-reset",onClick:ke},{default:e.withCtx(()=>[...o[2]||(o[2]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(q),{type:"primary",class:"rc-calendar__footer-confirm",disabled:!u.value,onClick:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value?`确定(${te.value}项)`:"确定"),1)]),_:1},8,["disabled"])])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"rc-calendar-fade"},{default:e.withCtx(()=>[z.value?(e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("div",Jt,[e.createElementVNode("div",Qt,[e.createVNode(e.unref(q),{type:"default",mode:"text",size:"small",onClick:s},{default:e.withCtx(()=>[...o[3]||(o[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createElementVNode("div",Xt,[e.createElementVNode("span",{onClick:o[0]||(o[0]=m=>g("year"))},e.toDisplayString(R.value)+"年",1),N.value==="month"?(e.openBlock(),e.createElementBlock("span",Zt," - ")):e.createCommentVNode("",!0),N.value==="month"?(e.openBlock(),e.createElementBlock("span",{key:1,onClick:o[1]||(o[1]=m=>g("month"))},e.toDisplayString(U.value)+"月",1)):e.createCommentVNode("",!0)]),N.value==="year"?(e.openBlock(),e.createBlock(e.unref(q),{key:0,type:"primary",mode:"text",size:"small",onClick:w},{default:e.withCtx(()=>[...o[4]||(o[4]=[e.createTextVNode(" 本年 ",-1)])]),_:1})):e.createCommentVNode("",!0),N.value==="month"?(e.openBlock(),e.createBlock(e.unref(q),{key:1,type:"primary",mode:"text",size:"small",onClick:$},{default:e.withCtx(()=>[...o[5]||(o[5]=[e.createTextVNode(" 本月 ",-1)])]),_:1})):e.createCommentVNode("",!0)]),N.value==="year"?(e.openBlock(),e.createElementBlock("div",en,[e.createElementVNode("div",{class:"rc-calendar__year-picker-scroll",ref_key:"yearScrollRef",ref:O,onScroll:b},[e.createElementVNode("div",{class:"rc-calendar__year-picker-spacer",style:e.normalizeStyle({height:`${Math.floor((j.value-I.value)/W)*xe}px`})},null,4),e.createElementVNode("div",tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,m=>(e.openBlock(),e.createElementBlock("div",{key:m,class:e.normalizeClass(["rc-calendar__year-picker-item",{"is-selected":R.value===m,"is-disabled":ne(m)}]),onClick:D=>Ne(m)},e.toDisplayString(m),11,nn))),128))]),e.createElementVNode("div",{class:"rc-calendar__year-picker-spacer",style:e.normalizeStyle({height:`${Math.ceil((G.value-T.value)/W)*xe}px`})},null,4)],544)])):e.createCommentVNode("",!0),N.value==="month"?(e.openBlock(),e.createElementBlock("div",an,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,m=>e.createElementVNode("div",{key:m,class:e.normalizeClass(["rc-calendar__month-picker-item",{"is-selected":U.value===m,"is-disabled":Q(R.value,m)}]),onClick:D=>Ie(m)},e.toDisplayString(m)+"月 ",11,ln)),64))])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1})]))}}),qe=J(on,[["__scopeId","data-v-0bf1834b"]]),rn={class:"rc-calendar"},cn=["placeholder"],sn={class:"rc-calendar__input-actions"},un={key:1,class:"rc-calendar__panel"},dn=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}},emits:["update:modelValue","change","confirm"],setup(t,{emit:c}){const d=t,l=c,p=e.ref(),_=e.ref(),v=e.ref(!1),f=e.ref(""),i=e.computed(()=>d.range===!0||typeof d.range=="number"),y=e.computed(()=>typeof d.range=="number"?d.range:void 0),x=e.computed(()=>k=>{if(d.disabledDate&&d.disabledDate(k))return!0;if(y.value!==void 0&&h.value&&!V.value){const b=u(k);if(B(h.value)&&te(h.value,b)>y.value)return!0}return!1}),C=e.ref(null),h=e.ref(null),V=e.ref(null);e.watch(()=>d.modelValue,k=>{i.value?Array.isArray(k)&&k.length===2?(h.value=k[0],V.value=k[1]):(h.value=null,V.value=null):C.value=typeof k=="string"?k:null,S()},{immediate:!0});function S(){d.mode==="popup"&&(i.value?h.value&&V.value?f.value=`${h.value} ~ ${V.value}`:h.value?f.value=`${h.value} ~ `:f.value="":f.value=C.value||"")}function B(k){if(!k)return null;const b=new Date(k);return isNaN(b.getTime())?null:b}function u(k){const b=k.getFullYear(),E=String(k.getMonth()+1).padStart(2,"0"),F=String(k.getDate()).padStart(2,"0");return`${b}-${E}-${F}`}function te(k,b){const E=B(k),F=B(b);if(!E||!F)return 0;const K=Math.abs(F.getTime()-E.getTime());return Math.ceil(K/(1e3*60*60*24))}function ne(k){if(k.type!=="current-month"||d.disabledDate&&d.disabledDate(k.date))return;const b=u(k.date);if(!(d.minDate&&b<d.minDate)&&!(d.maxDate&&b>d.maxDate)){if(i.value)if(!h.value||h.value&&V.value)h.value=b,V.value=null;else{let E=h.value,F=b;if(b<h.value&&(F=h.value,E=b),h.value=E,V.value=F,h.value&&V.value){const K=[h.value,V.value];l("update:modelValue",K),l("change",K),d.showFooter||Q()}}else{C.value=b;const E=b;l("update:modelValue",E),l("change",E),d.mode&&U()}S()}}function Q(){if(h.value&&V.value){const k=[h.value,V.value];l("update:modelValue",k),l("change",k),l("confirm",k),U()}}function z(){i.value?(h.value=null,V.value=null):C.value=null;const k=null;l("update:modelValue",k),l("change",k),S()}function N(k){h.value=k[0],V.value=k[1];const b=[k[0],k[1]];l("update:modelValue",b),l("change",b),d.showFooter?S():Q()}function R(){v.value=!0}function U(){v.value=!1}function O(k){v.value=k}function j(){R()}function T(){d.mode==="popup"&&G()}function I(){v.value||R()}function G(){const k=f.value.trim();if(i.value){const b=k.split("~").map(E=>E.trim());if(b.length===2&&b[0]&&b[1]){const E=B(b[0]),F=B(b[1]);if(E&&F&&!isNaN(E.getTime())&&!isNaN(F.getTime())){h.value=u(E),V.value=u(F);const K=[h.value,V.value];l("update:modelValue",K),l("change",K);return}}}else{const b=B(k);if(b&&!isNaN(b.getTime())){C.value=u(b),l("update:modelValue",C.value),l("change",C.value);return}}S()}return(k,b)=>(e.openBlock(),e.createElementBlock("div",rn,[t.mode==="popup"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"rc-calendar__input",onClick:R},[e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:p,"onUpdate:modelValue":b[0]||(b[0]=E=>f.value=E),type:"text",class:"rc-calendar__input-field",placeholder:t.placeholder,readonly:"",onFocus:j,onBlur:T,onInput:I},null,40,cn),[[e.vModelText,f.value]]),e.createElementVNode("div",sn,[e.createVNode(e.unref(A),{name:"icon_a-rili",class:"rc-calendar__input-icon"})])])):e.createCommentVNode("",!0),t.mode==="default"?(e.openBlock(),e.createElementBlock("div",un,[e.createVNode(qe,{"show-title":t.showTitle,title:t.title,range:i.value,"selected-date":C.value,"range-start":h.value,"range-end":V.value,"min-date":t.minDate,"max-date":t.maxDate,"disabled-date":x.value,formatter:t.formatter,"show-footer":!1,"max-range-days":y.value,onSelectDay:ne,onClear:z,onConfirm:Q,onShortcutSelect:N},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(ie),{key:2,modelValue:v.value,"onUpdate:modelValue":[b[1]||(b[1]=E=>v.value=E),O],position:"bottom",overlay:!0,round:!0,"close-on-click-overlay":!0,"lock-scroll":!0},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"popupPanelRef",ref:_,class:"rc-calendar__panel"},[e.createVNode(qe,{"show-title":t.showTitle,title:t.title,range:i.value,"selected-date":C.value,"range-start":h.value,"range-end":V.value,"min-date":t.minDate,"max-date":t.maxDate,"disabled-date":x.value,formatter:t.formatter,"show-footer":t.showFooter,"max-range-days":y.value,onSelectDay:ne,onClear:z,onConfirm:Q,onShortcutSelect:N},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)]))}}),de=J(dn,[["__scopeId","data-v-8c0e90b4"]]);de.name="rc-calendar";const fn="RcCalendar";function Le(t){return t.component(de.name,de),t.component(fn,de),t}const mn={class:"rc-search-area"},vn={class:"rc-search-area__bar"},pn=["onClick"],yn={class:"rc-search-area__item-label"},gn={class:"rc-search-area__panel-content"},hn={key:1,class:"rc-search-area__input-wrapper"},kn=["placeholder"],_n={key:2,class:"rc-search-area__calendar-wrapper"},Cn={key:3,class:"rc-search-area__tree-container"},Bn={class:"rc-search-area__tree-group-title"},bn={class:"rc-search-area__tree-group-options"},Dn=["onClick"],Vn={class:"rc-search-area__option-label"},Sn={key:4,class:"rc-search-area__tree-container"},$n={class:"rc-search-area__tree-group-title"},xn={class:"rc-search-area__tree-group-options"},En=["onClick"],wn={class:"rc-search-area__option-label"},Nn={key:5,class:"rc-search-area__options-grid"},In=["onClick"],Mn={class:"rc-search-area__option-label"},Rn={key:6,class:"rc-search-area__options-grid"},Tn=["onClick"],Fn={class:"rc-search-area__option-label"},zn={key:7,class:"rc-search-area__empty"},An={key:0,class:"rc-search-area__panel-footer"},Yn=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:d}){const l=t,p=d,_=e.ref(null),v=e.ref(null),f=e.ref(null),i=e.ref({top:"0px"}),y=async()=>{if(_.value===null||!v.value)return;await e.nextTick();const r=v.value.getBoundingClientRect().top;i.value={top:`${r}px`}},x=a=>{if(_.value===null||!v.value)return;const r=a.target;if(v.value.contains(r))return;const s=v.value.closest(".rc-search-area");if(s){const g=s.querySelector(".rc-search-area__bar");if(g&&g.contains(r))return}z()};e.watch(_,async a=>{a!==null?(await e.nextTick(),y(),window.addEventListener("resize",y),window.addEventListener("scroll",y,!0),document.addEventListener("click",x,!0)):(window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0),document.removeEventListener("click",x,!0))}),e.onUnmounted(()=>{window.removeEventListener("resize",y),window.removeEventListener("scroll",y,!0),document.removeEventListener("click",x,!0)});const C=e.ref({}),h=e.ref(""),V=e.ref(null),S=e.ref({}),B=e.ref({...l.modelValue});e.watch(()=>l.modelValue,a=>{B.value={...a||{}}},{deep:!0,immediate:!0});const u=e.computed(()=>_.value===null?null:l.items[_.value]),te=e.computed(()=>{if(!u.value)return"";const a=ke(u.value);return a>0?`(${a}项)`:""}),ne=a=>{const r=B.value[a.key];if(r==null||r===""||a.slot)return a.label;if(a.type==="input"){if(r&&String(r).trim())return`${a.label}: ${r}`}else if(a.type==="calendar"){if(r){if(Array.isArray(r)&&r.length===2)return`${a.label}: ${r[0]} ~ ${r[1]}`;if(typeof r=="string")return`${a.label}: ${r}`}}else if(a.type==="single"||a.type==="tree-single"){const s=O(a,r);if(s)return`${a.label}: ${U(s,a)}`}else{const s=Array.isArray(r)?r:[r];if(s.length>0){const g=s.map(w=>{const $=O(a,w);return $?U($,a):null}).filter(w=>w!==null);if(g.length>0)return`${a.label}: ${g.join("、")}`}}return a.label},Q=a=>{const r=l.items[a];if(!r)return;if(_.value===a){_.value=null;return}const s=B.value[r.key];r.slot?s!=null?Array.isArray(s)?S.value[r.key]=[...s]:typeof s=="object"?S.value[r.key]={...s}:S.value[r.key]=s:S.value[r.key]=void 0:r.type==="input"?h.value=s!=null?String(s):"":r.type==="calendar"?V.value=s??null:r.type==="single"||r.type==="tree-single"?C.value[r.key]=s!==void 0?s:null:C.value[r.key]=s!==void 0?Array.isArray(s)?[...s]:[s]:[],_.value=a},z=()=>{_.value=null},N=(a,r)=>{if(!r)return typeof a=="string"?a:a.label||String(a.value);const s=a;if(r.renderItem){if(typeof r.renderItem=="string")return String(typeof s=="object"&&s!==null?s[r.renderItem]??"":s);{const g=r.renderItem(s);return g!=null?String(g):""}}return typeof a=="string"?a:a.label||String(a.value)},R=(a,r)=>{if(!r)return typeof a=="string"?a:a.value!==void 0?a.value:a;const s=a;return r.format?typeof r.format=="string"?typeof s=="object"&&s!==null?s[r.format]:s:r.format(s):typeof a=="string"?a:a.value!==void 0?a.value:a},U=(a,r)=>{const s=a,g=r.renderResult||r.renderItem;if(g){if(typeof g=="string")return String(typeof s=="object"&&s!==null?s[g]??"":s);{const w=g(s);return w!=null?String(w):""}}return N(a,r)},O=(a,r,s)=>{const g=s||a.options,w=a.childrenKey||"children";for(const $ of g){const H=R($,a);if(H===r||String(H)===String(r))return $;if(typeof $=="object"&&$!==null){const ae=$[w];if(Array.isArray(ae)&&ae.length>0){const X=O(a,r,ae);if(X)return X}}}return null},j=(a,r)=>{const s=r||a.options,g=a.childrenKey||"children",w=[];for(const $ of s)if(w.push($),typeof $=="object"&&$!==null){const H=$[g];Array.isArray(H)&&H.length>0&&w.push(...j(a,H))}return w},T=a=>{if(!u.value)return!1;const r=u.value.key,s=C.value[r],g=R(a,u.value);return u.value.type==="single"||u.value.type==="tree-single"?s!=null&&s===g:(Array.isArray(s)?s:[]).some($=>$===g||String($)===String(g))},I=a=>a?a.childrenKey?j(a):a.options:[],G=a=>{if(!a)return[];const r=a.childrenKey||"children";return(a.options||[]).filter(s=>{if(typeof s=="string")return!1;const g=s[r];return Array.isArray(g)&&g.length>0})},k=(a,r)=>{if(!r||typeof a=="string")return[];const s=r.childrenKey||"children",g=a[s];return Array.isArray(g)?g:[]},b=a=>{if(a)return S.value[a.key]!==void 0?S.value[a.key]:B.value[a.key]},E=(a,r)=>{if(a&&(S.value[a.key]=r,l.autoConfirm)){const s=a.key;B.value[s]=r,p("update:modelValue",{...B.value}),p("change",{...B.value},a),z()}},F=a=>{if(!u.value)return;const r=u.value.key,s=R(a,u.value);B.value[r];let g;C.value[r]===s?g=void 0:g=s,B.value[r]=g,p("update:modelValue",{...B.value}),p("change",{...B.value},u.value),z()},K=a=>{if(!u.value)return;const r=u.value.key,s=R(a,u.value),g=Array.isArray(C.value[r])?[...C.value[r]]:[],w=g.findIndex($=>$===s||String($)===String(s));if(w>=0?g.splice(w,1):g.push(s),C.value[r]=g,l.autoConfirm){const $=g.length>0?g:void 0;B.value[r]=$,p("update:modelValue",{...B.value}),p("change",{...B.value},u.value),z()}},we=()=>{if(!u.value)return;const a=u.value.key;u.value.slot?S.value[a]=void 0:u.value.type==="input"?h.value="":u.value.type==="calendar"?V.value=null:u.value.type==="single"||u.value.type==="tree-single"?C.value[a]=null:C.value[a]=[]},Ne=()=>{if(l.autoConfirm&&u.value){const a=u.value.key,r=h.value.trim()||void 0;B.value[a]=r,p("update:modelValue",{...B.value}),p("change",{...B.value},u.value),z()}},Ie=a=>{if(V.value=a,l.autoConfirm&&u.value){const r=u.value.key,s=a??void 0;B.value[r]=s,p("update:modelValue",{...B.value}),p("change",{...B.value},u.value),z()}},ge=()=>{if(!u.value)return;const a=u.value.key;B.value[a];let r;if(u.value.slot)r=S.value[a],B.value[a]=r;else if(u.value.type==="input")r=h.value.trim()||void 0,B.value[a]=r;else if(u.value.type==="calendar")r=V.value!==null&&V.value!==void 0?V.value:void 0,B.value[a]=r;else if(u.value.type==="single"||u.value.type==="tree-single"){const s=C.value[a];r=s??void 0,B.value[a]=r}else{const s=C.value[a];r=Array.isArray(s)&&s.length>0?s:void 0,B.value[a]=r}p("update:modelValue",{...B.value}),p("change",{...B.value},u.value),z()},he=a=>{const r=B.value[a.key];return r==null||r===""?0:a.slot?1:a.type==="input"?String(r).trim()?1:0:a.type==="single"||a.type==="tree-single"?1:Array.isArray(r)?r.length:r?1:0},ke=a=>{if(a.slot){const s=S.value[a.key];return s!=null&&s!==""?1:0}else{if(a.type==="input")return h.value.trim()?1:0;if(a.type==="calendar")return V.value!==null&&V.value!==void 0?1:0}const r=C.value[a.key];return r==null||r===""?0:a.type==="single"||a.type==="tree-single"?1:Array.isArray(r)?r.length:0};return c({getValues:()=>({...B.value}),reset:()=>{B.value={},C.value={},S.value={},p("update:modelValue",{})}}),(a,r)=>(e.openBlock(),e.createElementBlock("div",mn,[e.createElementVNode("div",vn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(s,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:e.normalizeClass(["rc-search-area__item",{"is-active":_.value===g,"has-value":he(s)>0}]),onClick:w=>Q(g)},[e.createElementVNode("span",yn,e.toDisplayString(ne(s)),1),e.createVNode(e.unref(A),{name:"icon_a-xiala2",color:_.value!==g&&he(s)>0?"#1677ff":"#969799",class:e.normalizeClass(["rc-search-area__item-arrow",{"is-up":_.value===g}])},null,8,["color","class"])],10,pn))),128))]),e.createVNode(e.Transition,{name:"rc-search-area-fade"},{default:e.withCtx(()=>[_.value!==null&&l.showMask?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"maskRef",ref:f,class:"rc-search-area__mask",style:e.normalizeStyle(i.value),onClick:z},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"rc-search-area-slide"},{default:e.withCtx(()=>{var s,g,w,$,H,ae,X,fe,_e,Ce,me,Be,be,De,Ve,Se,$e,n;return[_.value!==null?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"panelRef",ref:v,class:"rc-search-area__panel"},[e.createElementVNode("div",gn,[(s=u.value)!=null&&s.slot&&a.$slots[u.value.key]?e.renderSlot(a.$slots,u.value.key,{key:0,value:b(u.value),"update:value":o=>E(u.value,o)},void 0,!0):((g=u.value)==null?void 0:g.type)==="input"?(e.openBlock(),e.createElementBlock("div",hn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":r[0]||(r[0]=o=>h.value=o),type:"text",class:"rc-search-area__input",placeholder:u.value.placeholder||"请输入",onInput:Ne},null,40,kn),[[e.vModelText,h.value]])])):((w=u.value)==null?void 0:w.type)==="calendar"?(e.openBlock(),e.createElementBlock("div",_n,[e.createVNode(e.unref(de),{modelValue:V.value,"onUpdate:modelValue":r[1]||(r[1]=o=>V.value=o),range:(($=u.value.calendarConfig)==null?void 0:$.range)||!1,mode:"default","min-date":(H=u.value.calendarConfig)==null?void 0:H.minDate,"max-date":(ae=u.value.calendarConfig)==null?void 0:ae.maxDate,"disabled-date":(X=u.value.calendarConfig)==null?void 0:X.disabledDate,formatter:(fe=u.value.calendarConfig)==null?void 0:fe.formatter,onChange:Ie},null,8,["modelValue","range","min-date","max-date","disabled-date","formatter"])])):((_e=u.value)==null?void 0:_e.type)==="tree-single"?(e.openBlock(),e.createElementBlock("div",Cn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G(u.value),(o,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"rc-search-area__tree-group"},[e.createElementVNode("div",Bn,e.toDisplayString(N(o,u.value||void 0)),1),e.createElementVNode("div",bn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k(o,u.value),(D,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:e.normalizeClass(["rc-search-area__option",{"is-selected":T(D)}]),onClick:Z=>F(D)},[e.createElementVNode("span",Vn,e.toDisplayString(N(D,u.value||void 0)),1),T(D)?(e.openBlock(),e.createBlock(e.unref(A),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Dn))),128))])]))),128))])):((Ce=u.value)==null?void 0:Ce.type)==="tree-multiple"?(e.openBlock(),e.createElementBlock("div",Sn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G(u.value),(o,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"rc-search-area__tree-group"},[e.createElementVNode("div",$n,e.toDisplayString(N(o,u.value||void 0)),1),e.createElementVNode("div",xn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k(o,u.value),(D,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:e.normalizeClass(["rc-search-area__option",{"is-selected":T(D)}]),onClick:Z=>K(D)},[e.createElementVNode("span",wn,e.toDisplayString(N(D,u.value||void 0)),1),T(D)?(e.openBlock(),e.createBlock(e.unref(A),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,En))),128))])]))),128))])):((me=u.value)==null?void 0:me.type)==="single"?(e.openBlock(),e.createElementBlock("div",Nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I(u.value),(o,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:e.normalizeClass(["rc-search-area__option",{"is-selected":T(o)}]),onClick:D=>F(o)},[e.createElementVNode("span",Mn,e.toDisplayString(N(o,u.value||void 0)),1),T(o)?(e.openBlock(),e.createBlock(e.unref(A),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,In))),128))])):(e.openBlock(),e.createElementBlock("div",Rn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I(u.value),(o,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:e.normalizeClass(["rc-search-area__option",{"is-selected":T(o)}]),onClick:D=>K(o)},[e.createElementVNode("span",Fn,e.toDisplayString(N(o,u.value||void 0)),1),T(o)?(e.openBlock(),e.createBlock(e.unref(A),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Tn))),128))])),((Be=u.value)==null?void 0:Be.type)!=="input"&&((be=u.value)==null?void 0:be.type)!=="calendar"&&!((De=u.value)!=null&&De.slot)&&((Se=(Ve=u.value)==null?void 0:Ve.options)==null?void 0:Se.length)===0?(e.openBlock(),e.createElementBlock("div",zn,[...r[2]||(r[2]=[e.createElementVNode("p",null,"暂无选项",-1)])])):e.createCommentVNode("",!0)]),!l.autoConfirm&&(($e=u.value)==null?void 0:$e.type)!=="single"&&((n=u.value)==null?void 0:n.type)!=="tree-single"?(e.openBlock(),e.createElementBlock("div",An,[e.createVNode(e.unref(q),{block:"",onClick:we},{default:e.withCtx(()=>[...r[3]||(r[3]=[e.createTextVNode(" 重置 ",-1)])]),_:1}),e.createVNode(e.unref(q),{type:"primary",block:"",onClick:ge},{default:e.withCtx(()=>[e.createTextVNode(" 确定"+e.toDisplayString(te.value),1)]),_:1})])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)]}),_:3})]))}}),Pe=J(Yn,[["__scopeId","data-v-d6546197"]]),We=t=>{t.component("RcSearchArea",Pe),t.component("rc-search-area",Pe)},Ee=Symbol("RECYCLE_UI_CONFIG"),Ue={prefix:"rc",autoRegister:!0,provideKey:Ee,theme:{},iconCssUrl:"//at.alicdn.com/t/c/font_4252799_o59odx6bqil.css",iconClass:"iconfont"};function Ln(t,c){c.autoRegister!==!1&&(typeof Re=="function"&&Re(t),typeof Te=="function"&&Te(t),typeof Fe=="function"&&Fe(t),typeof He=="function"&&He(t),typeof Ae=="function"&&Ae(t),typeof ze=="function"&&ze(t),typeof We=="function"&&We(t),typeof Le=="function"&&Le(t),typeof Ye=="function"&&Ye(t))}const Oe=(t,c)=>{const d={...Ue,...c||{}};if(t.provide(d.provideKey??Ee,d),t.config.globalProperties.$recycleUI=d,typeof window<"u"&&d.iconCssUrl){const l=`link[rel="stylesheet"][data-rcui-icon="true"][href="${d.iconCssUrl}"]`;if(!document.head.querySelector(l)){const _=document.createElement("link");_.rel="stylesheet",_.href=d.iconCssUrl,_.setAttribute("data-rcui-icon","true"),document.head.appendChild(_)}}return Ln(t,d),t},Pn={install:Oe};function Wn(t){return{install(c){Oe(c,t)}}}exports.RECYCLE_UI_SYMBOL=Ee;exports.RcButton=q;exports.RcCalendar=de;exports.RcCard=pe;exports.RcDescriptions=Je;exports.RcDescriptionsItem=Qe;exports.RcIcon=A;exports.RcPopup=ie;exports.RcSearchArea=Pe;exports.RcToast=ye;exports.createRecycleUI=Wn;exports.default=Pn;exports.defaultRecycleUIConfig=Ue;exports.hideToast=Xe;exports.install=Oe;exports.installButton=Re;exports.installCalendar=Le;exports.installCard=Fe;exports.installDescriptions=Te;exports.installIcon=Ae;exports.installMessage=ze;exports.installPopup=Ye;exports.installSearchArea=We;exports.message=Ze;exports.rcDescriptions=Je;exports.rcDescriptionsItem=Qe;exports.showToast=$t;
2
2
  //# sourceMappingURL=index.cjs.map