unis_crm/frontend1/dist/assets/index-B5SHGLl5.js

21 lines
112 KiB
JavaScript
Raw Normal View History

2026-04-10 05:33:17 +00:00
import{ax as Be,r as o,ao as Ie,bI as kt,bJ as wt,bK as yr,bc as ge,aV as ae,aS as H,am as it,aU as At,bL as je,bv as at,bM as rt,b6 as kr,bN as wr,bO as ct,aX as be,bP as Pr,bQ as ma,bf as Wn,aW as yt,be as Mr,bb as Ir,a$ as va,bR as Dr,ar as Yn,bS as $r,bT as Er,as as he,a_ as an,bU as Rr,bV as Nr,bW as Or,bX as Tr,bY as _r,bZ as Fr,aq as Hr,b_ as Vr,b$ as Yr,at as Jn,c0 as jr,c1 as Ar,c2 as Lr,c3 as Br,bh as Wr,c4 as zr,c5 as Ur,c6 as ea,c7 as ta,b4 as zn,c8 as qr,au as Kr,c9 as Gr,ca as Xr,cb as Qr,B as Ht,an as ga,cc as ha,cd as pa,ce as Ca,av as ba,bu as Sa,cf as xa,bw as ya,cg as ka,ch as wa,ci as Pa,cj as Ma,ck as Ia,cl as Da,j as z,cm as Zr,u as Jr,cn as eo,T as to,co as no,z as ao,H as na,M as aa,c as ro,aD as ra,R as oa,cp as oo}from"./index-BGI3tmtB.js";import{u as la}from"./useDict-BeEL9edl.js";import{P as lo}from"./index-xsV5o4zp.js";import{F as io}from"./Table-BewG91sh.js";import{g as uo}from"./pagination-CLXPzAaG.js";import{T as Ot}from"./index-bzjak6Z4.js";import{C as ia,T as Xt}from"./index-DxgbQv5l.js";import{I as co}from"./index-FqFqpoYX.js";import{d as Ue}from"./dayjs.min-Cph7gTuQ.js";import{M as so}from"./index-wm5R4Axa.js";import{D as Ke}from"./index-DkdVsa1N.js";import"./iconUtil-IZQuqZwd.js";import"./index-DUXqiKOh.js";import"./useForm-BpWJqkw6.js";import"./index-DJxTfCUX.js";import"./Pagination-COOq01L8.js";function $a(e,...t){const n=e||{};return t.reduce((a,r)=>(Object.keys(r||{}).forEach(l=>{const u=n[l],i=r[l];if(u&&typeof u=="object")if(i&&typeof i=="object")a[l]=$a(u,a[l],i);else{const{_default:s}=u;s&&(a[l]=a[l]||{},a[l][s]=Ie(a[l][s],i))}else a[l]=Ie(a[l],i)}),a),{})}function fo(e,...t){return o.useMemo(()=>$a.apply(void 0,[e].concat(t)),[t,e])}function mo(...e){return o.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(a=>{t[a]=Object.assign(Object.assign({},t[a]),n[a])}),t),{}),[e])}function jn(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(a=>{if(a!=="_default"){const r=t[a],l=n[a]||{};n[a]=r?jn(l,r):l}}),n}const vo=(e,t,n)=>{const a=fo.apply(void 0,[n].concat(Be(e))),r=mo.apply(void 0,Be(t));return o.useMemo(()=>[jn(a,n),jn(r,n)],[a,r,n])};var Ea={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(kt,function(){return function(n,a){a.prototype.weekday=function(r){var l=this.$locale().weekStart||0,u=this.$W,i=(u<l?u+7:u)-l;return this.$utils().u(r)?i:this.subtract(i,"day").add(r,"day")}}})})(Ea);var go=Ea.exports;const ho=wt(go);var Ra={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(kt,function(){return function(n,a,r){var l=a.prototype,u=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,v,g,b,h){var f=d.name?d:d.$locale(),C=u(f[v]),y=u(f[g]),x=C||y.map(function(k){return k.slice(0,b)});if(!h)return x;var S=f.weekStart;return x.map(function(k,P){return x[(P+(S||0))%7]})},s=function(){return r.Ls[r.locale()]},m=function(d,v){return d.formats[v]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,h,f){return h||f.slice(1)})}(d.formats[v.toUpperCase()])},c=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):i(d,"months")},monthsShort:function(v){return v?v.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):i(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return m(d.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=s();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return m(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return i(s(),"months")},r.monthsShort=function()
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:u}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${he(i)} ${s} ${m}`,borderRadius:r,content:'""'}},[`&-in-view${t}-in-range,
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:c}},[`&-in-view${t}-selected,
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:m},[`&${t}-disabled ${n}`]:{background:b}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:r,borderEndStartRadius:r,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r},"&-disabled":{color:v,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:g}},[`&-disabled${t}-today ${n}::before`]:{borderColor:v}}},$l=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:a,pickerYearMonthCellWidth:r,pickerControlIconSize:l,cellWidth:u,paddingSM:i,paddingXS:s,paddingXXS:m,colorBgContainer:c,lineWidth:d,lineType:v,borderRadiusLG:g,colorPrimary:b,colorTextHeading:h,colorSplit:f,pickerControlIconBorderWidth:C,colorIcon:y,textHeight:x,motionDurationMid:S,colorIconHover:k,fontWeightStrong:P,cellHeight:w,pickerCellPaddingVertical:_,colorTextDisabled:R,colorText:$,fontSize:V,motionDurationSlow:N,withoutTimeCellHeight:p,pickerQuarterPanelContentHeight:M,borderRadiusSM:I,colorTextLightSolid:E,cellHoverBg:L,timeColumnHeight:W,timeColumnWidth:A,timeCellHeight:j,controlItemBgActive:O,marginXXS:D,pickerDatePanelPaddingHorizontal:F,pickerControlIconMargin:T}=e,J=e.calc(u).mul(7).add(e.calc(F).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,borderRadius:g,outline:"none","&-focused":{borderColor:b},"&-rtl":{[`${t}-prev-icon,
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:J},"&-header":{display:"flex",padding:`0 ${he(s)}`,color:h,borderBottom:`${he(d)} ${v} ${f}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:he(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:V,"&:hover":{color:k},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:P,lineHeight:he(x),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:b}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:l,height:l,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:l,height:l,border:"0 solid currentcolor",borderBlockStartWidth:C,borderInlineStartWidth:C,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:T,insetInlineStart:T,display:"inline-block",width:l,height:l,border:"0 solid currentcolor",borderBlockStartWidth:C,borderInlineStartWidth:C,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(_).mul(2)).equal(),color:$,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${he(_)} 0`,color:R,cursor:"pointer","&-in-view":{color:$}},Dl(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(p).mul(4).equal()},[a]:{padding:`0 ${he(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:M}},"&-decade-panel":{[a]:{padding:`0 ${he(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${he(s)}`},[a]:{width:r}},"&-date-panel":{[`${t}-body`]:{padding:`${he(s)} ${he(F)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:I,borderEndStartRadius:I},"&:last-child:before":{borderStartEndRadius:I,borderEndEndRadius:I}},"&:hover td:before":{background:L},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:b},[`&${t}-cell-week`]:{color:new an(E).setA(.5).toHexString()},[a]:{color:E}}},"&-range-hover td:before":{background:O}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${he(s)} ${he(i)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${he(d)} ${v} ${f}`},[`${t}-date-panel,
${t}-time-panel`]:{transition:`opacity ${N}`},"&-active":{[`${t}-date-panel,
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:W},"&-column":{flex:"1 0 auto",width:A,margin:`${he(m)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${he(j)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${he(d)} ${v} ${f}`},"&-active":{background:new an(O).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:D,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(A).sub(e.calc(D).mul(2)).equal(),height:j,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(A).sub(j).div(2).equal(),color:$,lineHeight:he(j),borderRadius:I,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:L}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:O}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:R,background:"transparent",cursor:"not-allowed"}}}}}}}}},El=e=>{const{componentCls:t,textHeight:n,lineWidth:a,paddingSM:r,antCls:l,colorPrimary:u,cellActiveWithRangeBg:i,colorPrimaryBorder:s,lineType:m,colorSplit:c}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${he(a)} ${m} ${c}`,"&-extra":{padding:`0 ${he(r)}`,lineHeight:he(e.calc(n).sub(e.calc(a).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${he(a)} ${m} ${c}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:he(r),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:he(e.calc(n).sub(e.calc(a).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${l}-tag-blue`]:{color:u,background:i,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(a).mul(2).equal(),marginInlineStart:"auto"}}}}},Rl=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:a,padding:r}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(a).add(e.calc(a).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(r).add(e.calc(a).div(2)).equal()}},Nl=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:a,controlHeightLG:r,paddingXXS:l,lineWidth:u}=e,i=l*2,s=u*2,m=Math.min(n-i,n-s),c=Math.min(a-i,a-s),d=Math.min(r-i,r-s);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new an(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new an(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:r*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:a*1.5,cellHeight:a,textHeight:r,withoutTimeCellHeight:r*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:m,multipleItemHeightSM:c,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Ol=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Rr(e)),Nl(e)),Nr(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Tl=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},Or(e)),Tr(e)),_r(e)),Fr(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${he(e.lineWidth)} ${e.lineType
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
&${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${a}-slide-up-appear, &${a}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${a}-slide-up-enter${a}-slide-up-enter-active${n}-dropdown-placement-topLeft,
&${a}-slide-up-enter${a}-slide-up-enter-active${n}-dropdown-placement-topRight,
&${a}-slide-up-appear${a}-slide-up-appear-active${n}-dropdown-placement-topLeft,
&${a}-slide-up-appear${a}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Br},[`&${a}-slide-up-enter${a}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
&${a}-slide-up-enter${a}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
&${a}-slide-up-appear${a}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
&${a}-slide-up-appear${a}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Lr},[`&${a}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${a}-slide-up-leave${a}-slide-up-leave-active${n}-dropdown-placement-topLeft,
&${a}-slide-up-leave${a}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Ar},[`&${a}-slide-up-leave${a}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
&${a}-slide-up-leave${a}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:jr},[`${n}-panel > ${n}-time-panel`]:{paddingTop:$},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${_} ease-out`},zr(e,N,j)),{"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:N,borderRadius:p,boxShadow:M,transition:`margin ${_}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:W,maxWidth:A,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${he(l)} ${u} ${E}`,li:Object.assign(Object.assign({},Wr),{borderRadius:I,paddingInline:x,paddingBlock:e.calc(C).sub(O).div(2).equal(),cursor:"pointer",transition:`all ${_}`,"+ li":{marginTop:S},"&:hover":{background:L}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:i}}}}),"&-dropdown-range":{padding:`${he(e.calc(V).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},ea(e,"slide-up"),ea(e,"slide-down"),ta(e,"move-up"),ta(e,"move-down")]},fr=Hr("DatePicker",e=>{const t=Yn(Vr(e),Rl(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[El(t),Fl(t),Tl(t),_l(t),Il(t),Yr(e,{focusElCls:`${e.componentCls}-focused`})]},Ol);var Hl=function(t,n){return o.createElement(zn,be({},t,{ref:n,icon:qr}))},Vl=o.forwardRef(Hl);const mr=(e,t,n,a,r)=>{const{classNames:l,styles:u}=Kr(e),[i,s]=vo([l,t],[u,n],{popup:{_default:"root"}});return o.useMemo(()=>{var m,c;const d=Object.assign(Object.assign({},i),{popup:Object.assign(Object.assign({},i.popup),{root:Ie((m=i.popup)===null||m===void 0?void 0:m.root,a)})}),v=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Object.assign(Object.assign({},(c=s.popup)===null||c===void 0?void 0:c.root),r)})});return[d,v]},[i,s,a,r])};function Yl(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function jl(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function vr(e,t){const{allowClear:n=!0}=e,{clearIcon:a,removeIcon:r}=Gr(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[o.useMemo(()=>n===!1?!1:Object.assign({clearIcon:a},n===!0?{}:n),[n,a]),r]}const[Al,Ll]=["week","WeekPicker"],[Bl,Wl]=["month","MonthPicker"],[zl,Ul]=["year","YearPicker"],[ql,Kl]=["quarter","QuarterPicker"],[Zn,fa]=["time","TimePicker"];var Gl=function(t,n){return o.createElement(zn,be({},t,{ref:n,icon:Xr}))},Xl=o.forwardRef(Gl),Ql=function(t,n){return o.createElement(zn,be({},t,{ref:n,icon:Qr}))},Zl=o.forwardRef(Ql);const gr=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:a})=>a===null||a===!1?null:a===!0||a===void 0?it.createElement(it.Fragment,null,e===Zn?it.createElement(Zl,null):it.createEle