完善新版开单交互与移动布局,修复纸单号复制反馈
This commit is contained in:
1 parent
c594bf296f
commit
f1a4e69f0d
20 files changed
+567
-91
No files matched your search
+18
-18
@@ -197,8 +197,8 @@ html body {
|
||||
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:`100%`,height:`100%`,alignItems:`center`,padding:`0 ${Q(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:Q(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:`none`},[`${n}-selection-search`]:{position:`static`,width:`100%`},[`${n}-selection-placeholder`]:{position:`absolute`,insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Q(r)}`,"&:after":{display:`none`}}}}}}}function Nv(e){let{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Mv(e),Mv(La(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),`sm`),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Q(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
||||
&${t}-show-arrow ${t}-selection-item,
|
||||
&${t}-show-arrow ${t}-selection-placeholder
|
||||
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Mv(La(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),`lg`)]}var Pv=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},Fv=(e,t)=>{let{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Q(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Q(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Iv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Fv(e,t))}),Lv=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Fv(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Iv(e,{status:`error`,borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Iv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Rv=(e,t)=>{let{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},zv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Rv(e,t))}),Bv=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Rv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),zv(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),zv(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Vv=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:`transparent`,border:`${Q(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Hv=(e,t)=>{let{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${Q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.bLine truncated
|
||||
&:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:po(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:`visible`},[`${t}-inner`]:{"&::after":{boxSizing:`border-box`,position:`absolute`,insetBlockStart:`50%`,insetInlineStart:`50%`,display:`block`,width:x,height:x,marginBlockStart:v(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:`scale(0)`,opacity:0,transition:`all ${a} ${s}`,content:`""`},boxSizing:`border-box`,position:`relative`,insetBlockStart:0,insetInlineStart:0,display:`block`,width:x,height:x,backgroundColor:c,borderColor:l,borderStyle:`solid`,borderWidth:u,borderRadius:`50%`,transition:`all ${o}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:_,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:`not-allowed`,[y]:{backgroundColor:d,borderColor:l,cursor:`not-allowed`,"&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:`not-allowed`},[`${t}-disabled + span`]:{color:f,cursor:`not-allowed`},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${v(b).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},I4=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:Q(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${Q(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${Q(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:Q(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:Q(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":po(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxShadow:`none`},"&-block":{flex:1,textAlign:`center`}}}},L4=_o(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Q(n)} ${t}`,i=La(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[P4(i),F4(i),I4(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}}),R4=function(e,t){var n={};for(var r in e)Obje
Line truncated
|
||||
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Mv(La(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),`lg`)]}var Pv=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},Fv=(e,t)=>{let{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Q(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Q(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Iv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Fv(e,t))}),Lv=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Fv(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Iv(e,{status:`error`,borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Iv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Rv=(e,t)=>{let{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},zv=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Rv(e,t))}),Bv=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Rv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),zv(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),zv(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Vv=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:`transparent`,border:`${Q(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Hv=(e,t)=>{let{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${Q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.bLine truncated
|
||||
&:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:po(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:`visible`},[`${t}-inner`]:{"&::after":{boxSizing:`border-box`,position:`absolute`,insetBlockStart:`50%`,insetInlineStart:`50%`,display:`block`,width:x,height:x,marginBlockStart:v(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:`scale(0)`,opacity:0,transition:`all ${a} ${s}`,content:`""`},boxSizing:`border-box`,position:`relative`,insetBlockStart:0,insetInlineStart:0,display:`block`,width:x,height:x,backgroundColor:c,borderColor:l,borderStyle:`solid`,borderWidth:u,borderRadius:`50%`,transition:`all ${o}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:_,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:`not-allowed`,[y]:{backgroundColor:d,borderColor:l,cursor:`not-allowed`,"&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:`not-allowed`},[`${t}-disabled + span`]:{color:f,cursor:`not-allowed`},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${v(b).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},K4=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:Q(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${Q(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${Q(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:Q(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:Q(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":po(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxShadow:`none`},"&-block":{flex:1,textAlign:`center`}}}},q4=_o(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Q(n)} ${t}`,i=La(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[W4(i),G4(i),K4(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}}),J4=function(e,t){var n={};for(var r in e)Obje
Line truncated
|
||||
& > ${t}-affix-wrapper,
|
||||
& > ${t}-number-affix-wrapper,
|
||||
& > ${n}-picker-range
|
||||
@@ -211,33 +211,33 @@ html body {
|
||||
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
||||
& > ${n}-select:last-child > ${n}-select-selector,
|
||||
& > ${n}-cascader-picker:last-child ${t},
|
||||
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},C3=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},so(e)),x3(e)),o3(e)),f3(e)),l3(e)),_3(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}})}},w3=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${Q(e.inputAffixPadding)}`}}}},T3=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},x3(e)),{display:`inline-flex`,[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:`inherit`,border:`none`,borderRadius:0,outline:`none`,background:`transparent`,color:`inherit`,"&::-ms-reveal":{display:`none`},"&:focus":{boxShadow:`none !important`}},"&::before":{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`},[t]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,"> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:`ltr`},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),w3(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}}),[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},E3=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},so(e)),S3(e)),{"&-rtl":{direction:`rtl`},"&-wrapper":Object.assign(Object.assign(Object.assign({display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},c3(e)),m3(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},D3=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:`none`},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:`rtl`},[`&${t}Line truncated
|
||||
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},N3=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},so(e)),j3(e)),g3(e)),S3(e)),y3(e)),D3(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}})}},P3=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${Q(e.inputAffixPadding)}`}}}},F3=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},j3(e)),{display:`inline-flex`,[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:`inherit`,border:`none`,borderRadius:0,outline:`none`,background:`transparent`,color:`inherit`,"&::-ms-reveal":{display:`none`},"&:focus":{boxShadow:`none !important`}},"&::before":{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`},[t]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,"> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:`ltr`},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),P3(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}}),[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},I3=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},so(e)),M3(e)),{"&-rtl":{direction:`rtl`},"&-wrapper":Object.assign(Object.assign(Object.assign({display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},v3(e)),w3(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},L3=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:`none`},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:`rtl`},[`&${t}Line truncated
|
||||
> ${t},
|
||||
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},O3=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},k3=_o([`Input`,`Shared`],e=>{let t=La(e,e3(e));return[C3(t),T3(t)]},t3,{resetFont:!1}),A3=_o([`Input`,`Component`],e=>{let t=La(e,e3(e));return[E3(t),D3(t),O3(t),zf(t)]},t3,{resetFont:!1}),j3={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z`}},{tag:`path`,attrs:{d:`M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z`}}]},name:`plus`,theme:`outlined`},M3=s.forwardRef(function(e,t){return s.createElement($s,c({},e,{ref:t,icon:j3}))}),N3=(0,s.createContext)(null),P3=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,i=e.indicator,a=i===void 0?{}:i,o=a.size,c=a.align,l=c===void 0?`center`:c,u=Z((0,s.useState)(),2),d=u[0],f=u[1],p=(0,s.useRef)(),m=s.useCallback(function(e){return typeof o==`function`?o(e):typeof o==`number`?o:e},[o]);function h(){$e.cancel(p.current)}return(0,s.useEffect)(function(){var e={};if(t){if(n){e.width=m(t.width);var i=r?`right`:`left`;l===`start`&&(e[i]=t[i]),l===`center`&&(e[i]=t[i]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),l===`end`&&(e[i]=t[i]+t.width,e.transform=`translateX(-100%)`)}else e.height=m(t.height),l===`start`&&(e.top=t.top),l===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),l===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`)}return h(),p.current=$e(function(){d&&e&&Object.keys(e).every(function(t){var n=e[t],r=d[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||f(e)}),h},[JSON.stringify(t),n,r,l,m]),{style:d}},F3={width:0,height:0,left:0,top:0};function I3(e,t,n){return(0,s.useMemo)(function(){for(var n=new Map,r=t.get(e[0]?.key)||F3,i=r.left+r.width,a=0;a<e.length;a+=1){var o=e[a].key,s=t.get(o);s||=t.get(e[a-1]?.key)||F3;var c=n.get(o)||O({},s);c.right=i-c.left-c.width,n.set(o,c)}return n},[e.map(function(e){return e.key}).join(`_`),t,n])}function L3(e,t){var n=s.useRef(e),r=Z(s.useState({}),2)[1];function i(e){var i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var R3=.1,z3=.01,B3=20,V3=.995**B3;function H3(e,t){var n=Z((0,s.useState)(),2),r=n[0],i=n[1],a=Z((0,s.useState)(0),2),o=a[0],c=a[1],l=Z((0,s.useState)(0),2),u=l[0],d=l[1],f=Z((0,s.useState)(),2),p=f[0],m=f[1],h=(0,s.useRef)();function g(e){var t=e.touches[0];i({x:t.screenX,y:t.screenY}),window.clearInterval(h.current)}function _(e){if(r){var n=e.touches[0],a=n.screenX,s=n.screenY;i({x:a,y:s});var l=a-r.x,u=s-r.y;t(l,u);var f=Date.now();c(f),d(f-o),m({x:l,y:u})}}function v(){if(r&&(i(null),m(null),p)){var e=p.x/u,n=p.y/u;if(Math.max(Math.abs(e),Math.abs(n))<R3)return;var a=e,o=n;h.current=window.setInterval(function(){Math.abs(a)<z3&&Math.abs(o)<z3?window.clearInterval(h.current):(a*=V3,o*=V3,t(a*B3,o*B3))},B3)}}var y=(0,s.useRef)();function b(e){var n=e.deltaX,r=e.deltaY,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=y.current===`x`?n:r:a>o?(i=n,y.current=`x`):(i=r,y.current=`y`),t(-i,-i)&&e.preventDefault()}var x=(0,s.useRef)(null);x.current={onTouchStart:g,onTouchMove:_,onTouchEnd:v,onWheel:b},s.useEffect(function(){function t(e){x.current.onTouchStart(e)}function n(e){x.current.onTouchMove(e)}function r(e){x.current.onTouchEnd(e)}function i(e){x.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),function(){document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function U3(e){var t=Z((0,s.useState)(0),2),n=t[0],r=t[1],i=(0,s.useRef)(0),a=(0,s.useRef)();return a.current=e,Jt(function(){var e;(e=a.current)==null||e.call(a)},[n]),function(){i.current===n&&(i.current+=1,r(i.current))}}function W3(e){var t=(0,s.useRef)([]),n=Z((0,s.useState)({}),2)[1],r=(0,s.useRef)(typeof e==`function`?e():e),i=U3(function(){var e=r.current;t.current.forEach(function(t){e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var G3={width:0,height:0,left:0,top:0,right:0};function K3(e,t,n,r,i,a,o){var c=o.tabs,l=o.tabPosition,u=o.rtl,d,f,p;return[`top`,`bottom`].includes(l)?(d=`width`,f=u?`right`:`left`,p=Math.abs(n)):(d=`height`,f=`top`,p=-n),(0,s.useMemo)(function(){if(!c.length)return[0,0];for(var n=c.length,r=n,i=0;i<n;i+=1){var a=e.get(c[i].key)||G3;if(Math.floor(a[f]+a[d])>Math.floor(p+t)){r=i-1;break}}for(var o=0,s=n-1;s>=0;--s)if((e.get(c[s].key)||G3)[f]<p){o=s+1;break}return o>r?[0,-1]:[o,r]},[e,t,r,i,a,p,l,c.map(function(e){return e.key}).join(`_`),u])}function q3(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]
Line truncated
|
||||
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},R3=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},z3=_o([`Input`,`Shared`],e=>{let t=La(e,u3(e));return[N3(t),F3(t)]},d3,{resetFont:!1}),B3=_o([`Input`,`Component`],e=>{let t=La(e,u3(e));return[I3(t),L3(t),R3(t),zf(t)]},d3,{resetFont:!1}),V3={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z`}},{tag:`path`,attrs:{d:`M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z`}}]},name:`plus`,theme:`outlined`},H3=s.forwardRef(function(e,t){return s.createElement($s,c({},e,{ref:t,icon:V3}))}),U3=(0,s.createContext)(null),W3=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,i=e.indicator,a=i===void 0?{}:i,o=a.size,c=a.align,l=c===void 0?`center`:c,u=Z((0,s.useState)(),2),d=u[0],f=u[1],p=(0,s.useRef)(),m=s.useCallback(function(e){return typeof o==`function`?o(e):typeof o==`number`?o:e},[o]);function h(){$e.cancel(p.current)}return(0,s.useEffect)(function(){var e={};if(t){if(n){e.width=m(t.width);var i=r?`right`:`left`;l===`start`&&(e[i]=t[i]),l===`center`&&(e[i]=t[i]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),l===`end`&&(e[i]=t[i]+t.width,e.transform=`translateX(-100%)`)}else e.height=m(t.height),l===`start`&&(e.top=t.top),l===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),l===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`)}return h(),p.current=$e(function(){d&&e&&Object.keys(e).every(function(t){var n=e[t],r=d[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||f(e)}),h},[JSON.stringify(t),n,r,l,m]),{style:d}},G3={width:0,height:0,left:0,top:0};function K3(e,t,n){return(0,s.useMemo)(function(){for(var n=new Map,r=t.get(e[0]?.key)||G3,i=r.left+r.width,a=0;a<e.length;a+=1){var o=e[a].key,s=t.get(o);s||=t.get(e[a-1]?.key)||G3;var c=n.get(o)||O({},s);c.right=i-c.left-c.width,n.set(o,c)}return n},[e.map(function(e){return e.key}).join(`_`),t,n])}function q3(e,t){var n=s.useRef(e),r=Z(s.useState({}),2)[1];function i(e){var i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var J3=.1,Y3=.01,X3=20,Z3=.995**X3;function Q3(e,t){var n=Z((0,s.useState)(),2),r=n[0],i=n[1],a=Z((0,s.useState)(0),2),o=a[0],c=a[1],l=Z((0,s.useState)(0),2),u=l[0],d=l[1],f=Z((0,s.useState)(),2),p=f[0],m=f[1],h=(0,s.useRef)();function g(e){var t=e.touches[0];i({x:t.screenX,y:t.screenY}),window.clearInterval(h.current)}function _(e){if(r){var n=e.touches[0],a=n.screenX,s=n.screenY;i({x:a,y:s});var l=a-r.x,u=s-r.y;t(l,u);var f=Date.now();c(f),d(f-o),m({x:l,y:u})}}function v(){if(r&&(i(null),m(null),p)){var e=p.x/u,n=p.y/u;if(Math.max(Math.abs(e),Math.abs(n))<J3)return;var a=e,o=n;h.current=window.setInterval(function(){Math.abs(a)<Y3&&Math.abs(o)<Y3?window.clearInterval(h.current):(a*=Z3,o*=Z3,t(a*X3,o*X3))},X3)}}var y=(0,s.useRef)();function b(e){var n=e.deltaX,r=e.deltaY,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=y.current===`x`?n:r:a>o?(i=n,y.current=`x`):(i=r,y.current=`y`),t(-i,-i)&&e.preventDefault()}var x=(0,s.useRef)(null);x.current={onTouchStart:g,onTouchMove:_,onTouchEnd:v,onWheel:b},s.useEffect(function(){function t(e){x.current.onTouchStart(e)}function n(e){x.current.onTouchMove(e)}function r(e){x.current.onTouchEnd(e)}function i(e){x.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),function(){document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function $3(e){var t=Z((0,s.useState)(0),2),n=t[0],r=t[1],i=(0,s.useRef)(0),a=(0,s.useRef)();return a.current=e,Jt(function(){var e;(e=a.current)==null||e.call(a)},[n]),function(){i.current===n&&(i.current+=1,r(i.current))}}function e6(e){var t=(0,s.useRef)([]),n=Z((0,s.useState)({}),2)[1],r=(0,s.useRef)(typeof e==`function`?e():e),i=$3(function(){var e=r.current;t.current.forEach(function(t){e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var t6={width:0,height:0,left:0,top:0,right:0};function n6(e,t,n,r,i,a,o){var c=o.tabs,l=o.tabPosition,u=o.rtl,d,f,p;return[`top`,`bottom`].includes(l)?(d=`width`,f=u?`right`:`left`,p=Math.abs(n)):(d=`height`,f=`top`,p=-n),(0,s.useMemo)(function(){if(!c.length)return[0,0];for(var n=c.length,r=n,i=0;i<n;i+=1){var a=e.get(c[i].key)||t6;if(Math.floor(a[f]+a[d])>Math.floor(p+t)){r=i-1;break}}for(var o=0,s=n-1;s>=0;--s)if((e.get(c[s].key)||t6)[f]<p){o=s+1;break}return o>r?[0,-1]:[o,r]},[e,t,r,i,a,p,l,c.map(function(e){return e.key}).join(`_`),u])}function r6(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]
Line truncated
|
||||
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
||||
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Q(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},T6=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadius)} ${Q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Q(e.borderRadius)} ${Q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadius)} ${Q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadius)} 0 0 ${Q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},E6=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},mo(e)),"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-focus ${l}-btn:focus-visible`]:po(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},D6=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Q(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Q(e.marginXS)},marginLeft:{_skip_check_:!0,value:Q(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-navLine truncated
|
||||
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Q(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},F6=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Q(e.borderRadius)} ${Q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Q(e.borderRadius)} ${Q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Q(e.borderRadius)} ${Q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Q(e.borderRadius)} 0 0 ${Q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},I6=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},mo(e)),"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-focus ${l}-btn:focus-visible`]:po(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},L6=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Q(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Q(e.marginXS)},marginLeft:{_skip_check_:!0,value:Q(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-navLine truncated
|
||||
> ${n}-typography,
|
||||
> ${n}-typography-edit-content
|
||||
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},I6=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
|
||||
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},K6=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
|
||||
${Q(i)} 0 0 0 ${n},
|
||||
0 ${Q(i)} 0 0 ${n},
|
||||
${Q(i)} ${Q(i)} 0 0 ${n},
|
||||
${Q(i)} 0 0 0 ${n} inset,
|
||||
0 ${Q(i)} 0 0 ${n} inset;
|
||||
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},L6=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},lo()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:Q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Q(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${a}`}}})},R6=e=>Object.assign(Object.assign({margin:`${Q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`},lo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},oo),"&-description":{color:e.colorTextDescription}}),z6=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Q(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Q(e.padding)} ${Q(i)}`}}},B6=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},V6=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},so(e)),{position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:F6(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},[`${t}-grid`]:I6(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:L6(e),[`${t}-meta`]:R6(e)}),[`${t}-bordered`]:{border:`${Q(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:z6(e),[`${t}-loading`]:B6(e),[`${t}-rtl`]:{direction:`rtl`}}},H6=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Q(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},U6=_o(`Card`,e=>{let t=La(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[V6(t),H6(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),W6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},G6=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return s.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return s.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},s.createElement(`span`,null,e))}))},K6=s.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:c={},bodyStyle:l={},title:u,loading:d,bordered:
Line truncated
|
||||
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},q6=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${Q(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},lo()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:Q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Q(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Q(e.lineWidth)} ${e.lineType} ${a}`}}})},J6=e=>Object.assign(Object.assign({margin:`${Q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`},lo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},oo),"&-description":{color:e.colorTextDescription}}),Y6=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Q(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Q(e.padding)} ${Q(i)}`}}},X6=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},Z6=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},so(e)),{position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:G6(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)}`},[`${t}-grid`]:K6(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:q6(e),[`${t}-meta`]:J6(e)}),[`${t}-bordered`]:{border:`${Q(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Q(e.borderRadiusLG)} ${Q(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Y6(e),[`${t}-loading`]:X6(e),[`${t}-rtl`]:{direction:`rtl`}}},Q6=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Q(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},$6=_o(`Card`,e=>{let t=La(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Z6(t),Q6(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),eb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},tb=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return s.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return s.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},s.createElement(`span`,null,e))}))},nb=s.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:c={},bodyStyle:l={},title:u,loading:d,bordered:
Line truncated
|
||||
${n}:not(${n}-disabled),
|
||||
${t}:not(${t}-disabled)
|
||||
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
||||
${n}-checked:not(${n}-disabled),
|
||||
${t}-checked:not(${t}-disabled)
|
||||
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:`none`},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function $6(e,t){return Q6(La(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var eb=_o(`Checkbox`,(e,{prefixCls:t})=>[$6(t,e)]),tb=s.createContext(null),nb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},rb=s.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,children:a,indeterminate:o=!1,style:c,onMouseEnter:l,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,p=nb(e,[`prefixCls`,`className`,`rootClassName`,`children`,`indeterminate`,`style`,`onMouseEnter`,`onMouseLeave`,`skipGroup`,`disabled`]),{getPrefixCls:m,direction:g,checkbox:_}=s.useContext(da),v=s.useContext(tb),{isFormItemInput:y}=s.useContext(xh),b=s.useContext(va),x=(v?.disabled||f)??b,S=s.useRef(p.value),C=s.useRef(null),w=R(t,C);s.useEffect(()=>{v?.registerValue(p.value)},[]),s.useEffect(()=>{if(!d)return p.value!==S.current&&(v?.cancelValue(S.current),v?.registerValue(p.value),S.current=p.value),()=>v?.cancelValue(p.value)},[p.value]),s.useEffect(()=>{C.current?.input&&(C.current.input.indeterminate=o)},[o]);let T=m(`checkbox`,n),E=Rc(T),[D,O,k]=eb(T,E),A=Object.assign({},p);v&&!d&&(A.onChange=(...e)=>{p.onChange&&p.onChange.apply(p,e),v.toggleOption&&v.toggleOption({label:a,value:p.value})},A.name=v.name,A.checked=v.value.includes(p.value));let j=(0,h.default)(`${T}-wrapper`,{[`${T}-rtl`]:g===`rtl`,[`${T}-wrapper-checked`]:A.checked,[`${T}-wrapper-disabled`]:x,[`${T}-wrapper-in-form-item`]:y},_?.className,r,i,k,E,O),M=(0,h.default)({[`${T}-indeterminate`]:o},mu,O),[N,P]=N4(A.onClick);return D(s.createElement(xu,{component:`Checkbox`,disabled:x},s.createElement(`label`,{className:j,style:Object.assign(Object.assign({},_?.style),c),onMouseEnter:l,onMouseLeave:u,onClick:N},s.createElement(M4,Object.assign({},A,{onClick:P,prefixCls:T,className:M,disabled:x,ref:w})),a!=null&&s.createElement(`span`,{className:`${T}-label`},a))))}),ib=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},ab=s.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:c,style:l,onChange:u}=e,d=ib(e,[`defaultValue`,`children`,`options`,`prefixCls`,`className`,`rootClassName`,`style`,`onChange`]),{getPrefixCls:f,direction:p}=s.useContext(da),[m,g]=s.useState(d.value||n||[]),[_,v]=s.useState([]);s.useEffect(()=>{`value`in d&&g(d.value||[])},[d.value]);let y=s.useMemo(()=>i.map(e=>typeof e==`string`||typeof e==`number`?{label:e,value:e}:e),[i]),b=e=>{v(t=>t.filter(t=>t!==e))},x=e=>{v(t=>[].concat(X(t),[e]))},S=e=>{let t=m.indexOf(e.value),n=X(m);t===-1?n.push(e.value):n.splice(t,1),`value`in d||g(n),u?.(n.filter(e=>_.includes(e)).sort((e,t)=>y.findIndex(t=>t.value===e)-y.findIndex(e=>e.value===t)))},C=f(`checkbox`,a),w=`${C}-group`,T=Rc(C),[E,D,O]=eb(C,T),k=du(d,[`value`,`disabled`]),A=i.length?y.map(e=>s.createElement(rb,{prefixCls:C,key:e.value.toString(),disabled:`disabled`in e?e.disabled:d.disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:(0,h.default)(`${w}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,j=s.useMemo(()=>({toggleOption:S,value:m,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:b}),[S,m,d.disabled,d.name,x,b]),M=(0,h.default)(w,{[`${w}-rtl`]:p===`rtl`},o,c,O,T,D);return E(s.createElement(`div`,Object.assign({className:M,style:l},k,{ref:t}),s.createElement(tb.Provider,{value:j},A)))}),ob=rb;ob.Group=ab,ob.__ANT_CHECKBOX=!0;var sb=(0,s.createContext)({}),cb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)
Line truncated
|
||||
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:`none`},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function lb(e,t){return cb(La(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var ub=_o(`Checkbox`,(e,{prefixCls:t})=>[lb(t,e)]),db=s.createContext(null),fb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},pb=s.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,children:a,indeterminate:o=!1,style:c,onMouseEnter:l,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,p=fb(e,[`prefixCls`,`className`,`rootClassName`,`children`,`indeterminate`,`style`,`onMouseEnter`,`onMouseLeave`,`skipGroup`,`disabled`]),{getPrefixCls:m,direction:g,checkbox:_}=s.useContext(da),v=s.useContext(db),{isFormItemInput:y}=s.useContext(xh),b=s.useContext(va),x=(v?.disabled||f)??b,S=s.useRef(p.value),C=s.useRef(null),w=R(t,C);s.useEffect(()=>{v?.registerValue(p.value)},[]),s.useEffect(()=>{if(!d)return p.value!==S.current&&(v?.cancelValue(S.current),v?.registerValue(p.value),S.current=p.value),()=>v?.cancelValue(p.value)},[p.value]),s.useEffect(()=>{C.current?.input&&(C.current.input.indeterminate=o)},[o]);let T=m(`checkbox`,n),E=Rc(T),[D,O,k]=ub(T,E),A=Object.assign({},p);v&&!d&&(A.onChange=(...e)=>{p.onChange&&p.onChange.apply(p,e),v.toggleOption&&v.toggleOption({label:a,value:p.value})},A.name=v.name,A.checked=v.value.includes(p.value));let j=(0,h.default)(`${T}-wrapper`,{[`${T}-rtl`]:g===`rtl`,[`${T}-wrapper-checked`]:A.checked,[`${T}-wrapper-disabled`]:x,[`${T}-wrapper-in-form-item`]:y},_?.className,r,i,k,E,O),M=(0,h.default)({[`${T}-indeterminate`]:o},mu,O),[N,P]=U4(A.onClick);return D(s.createElement(xu,{component:`Checkbox`,disabled:x},s.createElement(`label`,{className:j,style:Object.assign(Object.assign({},_?.style),c),onMouseEnter:l,onMouseLeave:u,onClick:N},s.createElement(H4,Object.assign({},A,{onClick:P,prefixCls:T,className:M,disabled:x,ref:w})),a!=null&&s.createElement(`span`,{className:`${T}-label`},a))))}),mb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},hb=s.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:c,style:l,onChange:u}=e,d=mb(e,[`defaultValue`,`children`,`options`,`prefixCls`,`className`,`rootClassName`,`style`,`onChange`]),{getPrefixCls:f,direction:p}=s.useContext(da),[m,g]=s.useState(d.value||n||[]),[_,v]=s.useState([]);s.useEffect(()=>{`value`in d&&g(d.value||[])},[d.value]);let y=s.useMemo(()=>i.map(e=>typeof e==`string`||typeof e==`number`?{label:e,value:e}:e),[i]),b=e=>{v(t=>t.filter(t=>t!==e))},x=e=>{v(t=>[].concat(X(t),[e]))},S=e=>{let t=m.indexOf(e.value),n=X(m);t===-1?n.push(e.value):n.splice(t,1),`value`in d||g(n),u?.(n.filter(e=>_.includes(e)).sort((e,t)=>y.findIndex(t=>t.value===e)-y.findIndex(e=>e.value===t)))},C=f(`checkbox`,a),w=`${C}-group`,T=Rc(C),[E,D,O]=ub(C,T),k=du(d,[`value`,`disabled`]),A=i.length?y.map(e=>s.createElement(pb,{prefixCls:C,key:e.value.toString(),disabled:`disabled`in e?e.disabled:d.disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:(0,h.default)(`${w}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,j=s.useMemo(()=>({toggleOption:S,value:m,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:b}),[S,m,d.disabled,d.name,x,b]),M=(0,h.default)(w,{[`${w}-rtl`]:p===`rtl`},o,c,O,T,D);return E(s.createElement(`div`,Object.assign({className:M,style:l},k,{ref:t}),s.createElement(db.Provider,{value:j},A)))}),gb=pb;gb.Group=hb,gb.__ANT_CHECKBOX=!0;var _b=(0,s.createContext)({}),vb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)
Line truncated
|
||||
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
||||
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${r}-leave-active`]:{transform:`translateY(-5px)`}}}}},_8=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:`border-box`},'input[type="radio"], input[type="checkbox"]':{lineHeight:`normal`},'input[type="file"]':{display:`block`},'input[type="range"]':{display:`block`,width:`100%`},"select[multiple], select[size]":{height:`auto`},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Q(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),v8=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},y8=e=>{let{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},so(e)),_8(e)),{[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},v8(e,e.controlHeightSM)),"&-large":Object.assign({},v8(e,e.controlHeightLG))})}},b8=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},so(e)),{marginBottom:d,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden,
|
||||
&-hidden${i}-row`]:{display:`none`},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:`hidden`,whiteSpace:`nowrap`,textAlign:`end`,verticalAlign:`middle`,"&-left":{textAlign:`start`},"&-wrap":{overflow:`unset`,lineHeight:e.lineHeight,whiteSpace:`unset`,"> label":{verticalAlign:`middle`,textWrap:`balance`}},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:c,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required`]:{"&::before":{display:`inline-block`,marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:`SimSun, sans-serif`,lineHeight:1,content:`"*"`},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:`none`}}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:l,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:`"\\a0"`}}},[`${t}-control`]:{"--ant-display":`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:`100%`},"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`,[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:`flex`,alignItems:`center`}}}},[t]:{"&-additional":{display:`flex`,flexDirection:`column`},"&-explain, &-extra":{clear:`both`,color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:`100%`},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:`auto`,opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:`center`,visibility:`visible`,animationName:Bd,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},x8=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),S8=e=>{let{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:`1 1 0`,minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:`unset`}},[`${t}-col-24${n}-label,
|
||||
${t}-col-xl-24${n}-label`]:x8(e)}}},C8=e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[`${n}-inline`]:{flex:`none`,marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:`nowrap`},[`> ${n}-label,
|
||||
> ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},w8=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:x8(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},T8=e=>{let{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:`auto`},[`${n}-control`]:{width:`100%`},[`${n}-label,
|
||||
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${r}-leave-active`]:{transform:`translateY(-5px)`}}}}},D8=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:`border-box`},'input[type="radio"], input[type="checkbox"]':{lineHeight:`normal`},'input[type="file"]':{display:`block`},'input[type="range"]':{display:`block`,width:`100%`},"select[multiple], select[size]":{height:`auto`},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Q(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),O8=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},k8=e=>{let{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},so(e)),D8(e)),{[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},O8(e,e.controlHeightSM)),"&-large":Object.assign({},O8(e,e.controlHeightLG))})}},A8=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},so(e)),{marginBottom:d,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden,
|
||||
&-hidden${i}-row`]:{display:`none`},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:`hidden`,whiteSpace:`nowrap`,textAlign:`end`,verticalAlign:`middle`,"&-left":{textAlign:`start`},"&-wrap":{overflow:`unset`,lineHeight:e.lineHeight,whiteSpace:`unset`,"> label":{verticalAlign:`middle`,textWrap:`balance`}},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:c,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required`]:{"&::before":{display:`inline-block`,marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:`SimSun, sans-serif`,lineHeight:1,content:`"*"`},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:`none`}}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:l,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:`"\\a0"`}}},[`${t}-control`]:{"--ant-display":`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:`100%`},"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`,[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:`flex`,alignItems:`center`}}}},[t]:{"&-additional":{display:`flex`,flexDirection:`column`},"&-explain, &-extra":{clear:`both`,color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:`100%`},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:`auto`,opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:`center`,visibility:`visible`,animationName:Bd,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},j8=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),M8=e=>{let{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:`1 1 0`,minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:`unset`}},[`${t}-col-24${n}-label,
|
||||
${t}-col-xl-24${n}-label`]:j8(e)}}},N8=e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[`${n}-inline`]:{flex:`none`,marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:`nowrap`},[`> ${n}-label,
|
||||
> ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},P8=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:j8(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},F8=e=>{let{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:`auto`},[`${n}-control`]:{width:`100%`},[`${n}-label,
|
||||
${r}-col-24${n}-label,
|
||||
${r}-col-xl-24${n}-label`]:x8(e)},[`@media (max-width: ${Q(e.screenXSMax)})`]:[w8(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:x8(e)}}}],[`@media (max-width: ${Q(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:x8(e)}}},[`@media (max-width: ${Q(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:x8(e)}}},[`@media (max-width: ${Q(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:x8(e)}}}}},E8=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),D8=(e,t)=>La(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),O8=_o(`Form`,(e,{rootPrefixCls:t})=>{let n=D8(e,t);return[y8(n),b8(n),g8(n),S8(n),C8(n),T8(n),hd(n),Bd]},E8,{order:-1e3}),k8=[];function A8(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var j8=({help:e,helpStatus:t,errors:n=k8,warnings:r=k8,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:c}=s.useContext(bh),l=`${c}-item-explain`,u=Rc(c),[d,f,p]=O8(c,u),m=s.useMemo(()=>lu(c),[c]),g=h8(n),_=h8(r),v=s.useMemo(()=>e==null?[].concat(X(g.map((e,t)=>A8(e,`error`,`error`,t))),X(_.map((e,t)=>A8(e,`warning`,`warning`,t)))):[A8(e,`help`,t)],[e,t,g,_]),y=s.useMemo(()=>{let e={};return v.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),v.map((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[v]),b={};return a&&(b.id=`${a}_help`),d(s.createElement(vs,{motionDeadline:m.motionDeadline,motionName:`${c}-show-help`,visible:!!y.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return s.createElement(`div`,Object.assign({},b,{className:(0,h.default)(l,t,p,u,i,f),style:n}),s.createElement(_s,Object.assign({keys:y},lu(c),{motionName:`${c}-show-help-item`,component:!1}),e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return s.createElement(`div`,{key:t,className:(0,h.default)(i,{[`${l}-${r}`]:r}),style:a},n)}))}))},M8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},N8=s.forwardRef((e,t)=>{let n=s.useContext(va),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:c,className:l,style:u}=ma(`form`),{prefixCls:d,className:f,rootClassName:p,size:m,disabled:g=n,form:_,colon:v,labelAlign:y,labelWrap:b,labelCol:x,wrapperCol:S,hideRequiredMark:C,layout:w=`horizontal`,scrollToFirstError:T,requiredMark:E,onFinishFailed:D,name:O,style:k,feedbackIcons:A,variant:j}=e,M=M8(e,[`prefixCls`,`className`,`rootClassName`,`size`,`disabled`,`form`,`colon`,`labelAlign`,`labelWrap`,`labelCol`,`wrapperCol`,`hideRequiredMark`,`layout`,`scrollToFirstError`,`requiredMark`,`onFinishFailed`,`name`,`style`,`feedbackIcons`,`variant`]),N=Su(m),P=s.useContext(Lr),F=s.useMemo(()=>E===void 0?C?!1:a===void 0||a:E,[C,E,a]),I=v??o,L=r(`form`,d),R=Rc(L),[z,B,V]=O8(L,R),H=(0,h.default)(L,`${L}-${w}`,{[`${L}-hide-required-mark`]:F===!1,[`${L}-rtl`]:i===`rtl`,[`${L}-${N}`]:N},V,R,B,l,f,p),[U]=J4(_),{__INTERNAL__:W}=U;W.name=O;let G=s.useMemo(()=>({name:O,labelAlign:y,labelCol:x,labelWrap:b,wrapperCol:S,layout:w,colon:I,requiredMark:F,itemRef:W.itemRef,form:U,feedbackIcons:A}),[O,y,x,S,w,I,F,U,A]),K=s.useRef(null);s.useImperativeHandle(t,()=>Object.assign(Object.assign({},U),{nativeElement:K.current?.nativeElement}));let q=(e,t)=>{if(e){let n={block:`nearest`};typeof e==`object`&&(n=Object.assign(Object.assign({},n),e)),U.scrollToField(t,n)}};return z(s.createElement(Ch.Provider,{value:j},s.createElement(ya,{disabled:g},s.createElement(ba.Provider,{value:N},s.createElement(yh,{validateMessages:P},s.createElement(_h.Provider,{value:G},s.createElement(Sh,{status:!0},s.createElement(gh,Object.assign({id:O},M,{name:O,onFinishFailed:e=>{if(D?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(T!==void 0){q(T,t);return}c!==void 0&&q(c,t)}},form:U,ref:K,style:Object.assign(Object.assign({},u),k),className:H})))))))))});function P8(e){if(typeof e==`function`)return e;let t=g(e);return t.length<=1?t[0]:t}var F8=()=>{let{status:e,errors:t=[],warnings:n=[]}=s.useContext(xh);return{status:e,errors:t,warnings:n}};F8.Context=xh;function I8(e){let[t,n]=s.useState(e),r=s.useRef(null),i=s.useRef([]),a=s.useRef(!1);s.useEffect(()=>(a.current=!1,()=>{a.current=!0,$e.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=$e(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}function L8
Line truncated
|
||||
${r}-col-xl-24${n}-label`]:j8(e)},[`@media (max-width: ${Q(e.screenXSMax)})`]:[P8(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:j8(e)}}}],[`@media (max-width: ${Q(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:j8(e)}}},[`@media (max-width: ${Q(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:j8(e)}}},[`@media (max-width: ${Q(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:j8(e)}}}}},I8=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),L8=(e,t)=>La(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),R8=_o(`Form`,(e,{rootPrefixCls:t})=>{let n=L8(e,t);return[k8(n),A8(n),E8(n),M8(n),N8(n),F8(n),hd(n),Bd]},I8,{order:-1e3}),z8=[];function B8(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var V8=({help:e,helpStatus:t,errors:n=z8,warnings:r=z8,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:c}=s.useContext(bh),l=`${c}-item-explain`,u=Rc(c),[d,f,p]=R8(c,u),m=s.useMemo(()=>lu(c),[c]),g=T8(n),_=T8(r),v=s.useMemo(()=>e==null?[].concat(X(g.map((e,t)=>B8(e,`error`,`error`,t))),X(_.map((e,t)=>B8(e,`warning`,`warning`,t)))):[B8(e,`help`,t)],[e,t,g,_]),y=s.useMemo(()=>{let e={};return v.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),v.map((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[v]),b={};return a&&(b.id=`${a}_help`),d(s.createElement(vs,{motionDeadline:m.motionDeadline,motionName:`${c}-show-help`,visible:!!y.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return s.createElement(`div`,Object.assign({},b,{className:(0,h.default)(l,t,p,u,i,f),style:n}),s.createElement(_s,Object.assign({keys:y},lu(c),{motionName:`${c}-show-help-item`,component:!1}),e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return s.createElement(`div`,{key:t,className:(0,h.default)(i,{[`${l}-${r}`]:r}),style:a},n)}))}))},H8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},U8=s.forwardRef((e,t)=>{let n=s.useContext(va),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:c,className:l,style:u}=ma(`form`),{prefixCls:d,className:f,rootClassName:p,size:m,disabled:g=n,form:_,colon:v,labelAlign:y,labelWrap:b,labelCol:x,wrapperCol:S,hideRequiredMark:C,layout:w=`horizontal`,scrollToFirstError:T,requiredMark:E,onFinishFailed:D,name:O,style:k,feedbackIcons:A,variant:j}=e,M=H8(e,[`prefixCls`,`className`,`rootClassName`,`size`,`disabled`,`form`,`colon`,`labelAlign`,`labelWrap`,`labelCol`,`wrapperCol`,`hideRequiredMark`,`layout`,`scrollToFirstError`,`requiredMark`,`onFinishFailed`,`name`,`style`,`feedbackIcons`,`variant`]),N=Su(m),P=s.useContext(Lr),F=s.useMemo(()=>E===void 0?C?!1:a===void 0||a:E,[C,E,a]),I=v??o,L=r(`form`,d),R=Rc(L),[z,B,V]=R8(L,R),H=(0,h.default)(L,`${L}-${w}`,{[`${L}-hide-required-mark`]:F===!1,[`${L}-rtl`]:i===`rtl`,[`${L}-${N}`]:N},V,R,B,l,f,p),[U]=i3(_),{__INTERNAL__:W}=U;W.name=O;let G=s.useMemo(()=>({name:O,labelAlign:y,labelCol:x,labelWrap:b,wrapperCol:S,layout:w,colon:I,requiredMark:F,itemRef:W.itemRef,form:U,feedbackIcons:A}),[O,y,x,S,w,I,F,U,A]),K=s.useRef(null);s.useImperativeHandle(t,()=>Object.assign(Object.assign({},U),{nativeElement:K.current?.nativeElement}));let q=(e,t)=>{if(e){let n={block:`nearest`};typeof e==`object`&&(n=Object.assign(Object.assign({},n),e)),U.scrollToField(t,n)}};return z(s.createElement(Ch.Provider,{value:j},s.createElement(ya,{disabled:g},s.createElement(ba.Provider,{value:N},s.createElement(yh,{validateMessages:P},s.createElement(_h.Provider,{value:G},s.createElement(Sh,{status:!0},s.createElement(gh,Object.assign({id:O},M,{name:O,onFinishFailed:e=>{if(D?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(T!==void 0){q(T,t);return}c!==void 0&&q(c,t)}},form:U,ref:K,style:Object.assign(Object.assign({},u),k),className:H})))))))))});function W8(e){if(typeof e==`function`)return e;let t=g(e);return t.length<=1?t[0]:t}var G8=()=>{let{status:e,errors:t=[],warnings:n=[]}=s.useContext(xh);return{status:e,errors:t,warnings:n}};G8.Context=xh;function K8(e){let[t,n]=s.useState(e),r=s.useRef(null),i=s.useRef([]),a=s.useRef(!1);s.useEffect(()=>(a.current=!1,()=>{a.current=!0,$e.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=$e(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}function q8
Line truncated
|
||||
min-height:0 !important;
|
||||
max-height:none !important;
|
||||
height:0 !important;
|
||||
@@ -248,23 +248,23 @@ html body {
|
||||
top:0 !important;
|
||||
right:0 !important;
|
||||
pointer-events: none !important;
|
||||
`,Ex=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],Dx={},Ox;function kx(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&Dx[n])return Dx[n];var r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:Ex.map(function(e){return`${e}:${r.getPropertyValue(e)}`}).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(Dx[n]=s),s}function Ax(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ox||(Ox=document.createElement(`textarea`),Ox.setAttribute(`tab-index`,`-1`),Ox.setAttribute(`aria-hidden`,`true`),Ox.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(Ox)),e.getAttribute(`wrap`)?Ox.setAttribute(`wrap`,e.getAttribute(`wrap`)):Ox.removeAttribute(`wrap`);var i=kx(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,c=i.sizingStyle;Ox.setAttribute(`style`,`${c};${Tx}`),Ox.value=e.value||e.placeholder||``;var l=void 0,u=void 0,d,f=Ox.scrollHeight;if(s===`border-box`?f+=o:s===`content-box`&&(f-=a),n!==null||r!==null){Ox.value=` `;var p=Ox.scrollHeight-a;n!==null&&(l=p*n,s===`border-box`&&(l=l+a+o),f=Math.max(l,f)),r!==null&&(u=p*r,s===`border-box`&&(u=u+a+o),d=f>u?``:`hidden`,f=Math.min(u,f))}var m={height:f,overflowY:d,resize:`none`};return l&&(m.minHeight=l),u&&(m.maxHeight=u),m}var jx=[`prefixCls`,`defaultValue`,`value`,`autoSize`,`onResize`,`className`,`style`,`disabled`,`onChange`,`onInternalAutoSize`],Mx=0,Nx=1,Px=2,Fx=s.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,u=n.onResize,d=n.className,f=n.style,p=n.disabled,m=n.onChange;n.onInternalAutoSize;var g=yt(n,jx),_=Z(Na(i,{value:a,postState:function(e){return e??``}}),2),v=_[0],y=_[1],b=function(e){y(e.target.value),m?.(e)},x=s.useRef();s.useImperativeHandle(t,function(){return{textArea:x.current}});var S=Z(s.useMemo(function(){return o&&l(o)===`object`?[o.minRows,o.maxRows]:[]},[o]),2),C=S[0],w=S[1],T=!!o,D=Z(s.useState(Px),2),k=D[0],A=D[1],j=Z(s.useState(),2),M=j[0],N=j[1],P=function(){A(Mx)};qt(function(){T&&P()},[a,C,w,T]),qt(function(){if(k===Mx)A(Nx);else if(k===Nx){var e=Ax(x.current,!1,C,w);A(Px),N(e)}},[k]);var F=s.useRef(),I=function(){$e.cancel(F.current)},L=function(e){k===Px&&(u?.(e),o&&(I(),F.current=$e(function(){P()})))};s.useEffect(function(){return I},[]);var R=T?M:null,z=O(O({},f),R);return(k===Mx||k===Nx)&&(z.overflowY=`hidden`,z.overflowX=`hidden`),s.createElement(Ue,{onResize:L,disabled:!(o||u)},s.createElement(`textarea`,c({},g,{ref:x,style:z,className:(0,h.default)(r,d,E({},`${r}-disabled`,p)),disabled:p,value:v,onChange:b})))}),Ix=[`defaultValue`,`value`,`onFocus`,`onBlur`,`onChange`,`allowClear`,`maxLength`,`onCompositionStart`,`onCompositionEnd`,`suffix`,`prefixCls`,`showCount`,`count`,`className`,`style`,`disabled`,`hidden`,`classNames`,`styles`,`onResize`,`onClear`,`onPressEnter`,`readOnly`,`autoSize`,`onKeyDown`],Lx=s.forwardRef(function(e,t){var n=e.defaultValue,r=e.value,i=e.onFocus,a=e.onBlur,o=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,m=e.prefixCls,g=m===void 0?`rc-textarea`:m,_=e.showCount,v=e.count,y=e.className,b=e.style,x=e.disabled,S=e.hidden,C=e.classNames,w=e.styles,T=e.onResize,D=e.onClear,k=e.onPressEnter,A=e.readOnly,j=e.autoSize,M=e.onKeyDown,N=yt(e,Ix),P=Z(Na(n,{value:r,defaultValue:n}),2),F=P[0],I=P[1],L=F==null?``:String(F),R=Z(s.useState(!1),2),z=R[0],B=R[1],V=s.useRef(!1),H=Z(s.useState(null),2),U=H[0],W=H[1],G=(0,s.useRef)(null),K=(0,s.useRef)(null),q=function(){return K.current?.textArea},ee=function(){q().focus()};(0,s.useImperativeHandle)(t,function(){return{resizableTextArea:K.current,focus:ee,blur:function(){q().blur()},nativeElement:G.current?.nativeElement||q()}}),(0,s.useEffect)(function(){B(function(e){return!x&&e})},[x]);var J=Z(s.useState(null),2),Y=J[0],te=J[1];s.useEffect(function(){if(Y){var e;(e=q()).setSelectionRange.apply(e,X(Y))}},[Y]);var ne=wb(v,_),re=ne.max??u,ie=Number(re)>0,ae=ne.strategy(L),oe=!!re&&ae>re,se=function(e,t){var n=t;!V.current&&ne.exceedFormatter&&ne.max&&ne.strategy(t)>ne.max&&(n=ne.exceedFormatter(t,{max:ne.max}),t!==n&&te([q().selectionStart||0,q().selectionEnd||0])),I(n),bb(e.currentTarget,e,o,n)},ce=function(e){V.current=!0,d?.(e)},le=function(e){V.current=!1,se(e,e.currentTarget.value),f?.(e)},ue=function(
Line truncated
|
||||
`,Ix=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],Lx={},Rx;function zx(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&Lx[n])return Lx[n];var r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:Ix.map(function(e){return`${e}:${r.getPropertyValue(e)}`}).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(Lx[n]=s),s}function Bx(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Rx||(Rx=document.createElement(`textarea`),Rx.setAttribute(`tab-index`,`-1`),Rx.setAttribute(`aria-hidden`,`true`),Rx.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(Rx)),e.getAttribute(`wrap`)?Rx.setAttribute(`wrap`,e.getAttribute(`wrap`)):Rx.removeAttribute(`wrap`);var i=zx(e,t),a=i.paddingSize,o=i.borderSize,s=i.boxSizing,c=i.sizingStyle;Rx.setAttribute(`style`,`${c};${Fx}`),Rx.value=e.value||e.placeholder||``;var l=void 0,u=void 0,d,f=Rx.scrollHeight;if(s===`border-box`?f+=o:s===`content-box`&&(f-=a),n!==null||r!==null){Rx.value=` `;var p=Rx.scrollHeight-a;n!==null&&(l=p*n,s===`border-box`&&(l=l+a+o),f=Math.max(l,f)),r!==null&&(u=p*r,s===`border-box`&&(u=u+a+o),d=f>u?``:`hidden`,f=Math.min(u,f))}var m={height:f,overflowY:d,resize:`none`};return l&&(m.minHeight=l),u&&(m.maxHeight=u),m}var Vx=[`prefixCls`,`defaultValue`,`value`,`autoSize`,`onResize`,`className`,`style`,`disabled`,`onChange`,`onInternalAutoSize`],Hx=0,Ux=1,Wx=2,Gx=s.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,o=n.autoSize,u=n.onResize,d=n.className,f=n.style,p=n.disabled,m=n.onChange;n.onInternalAutoSize;var g=yt(n,Vx),_=Z(Na(i,{value:a,postState:function(e){return e??``}}),2),v=_[0],y=_[1],b=function(e){y(e.target.value),m?.(e)},x=s.useRef();s.useImperativeHandle(t,function(){return{textArea:x.current}});var S=Z(s.useMemo(function(){return o&&l(o)===`object`?[o.minRows,o.maxRows]:[]},[o]),2),C=S[0],w=S[1],T=!!o,D=Z(s.useState(Wx),2),k=D[0],A=D[1],j=Z(s.useState(),2),M=j[0],N=j[1],P=function(){A(Hx)};qt(function(){T&&P()},[a,C,w,T]),qt(function(){if(k===Hx)A(Ux);else if(k===Ux){var e=Bx(x.current,!1,C,w);A(Wx),N(e)}},[k]);var F=s.useRef(),I=function(){$e.cancel(F.current)},L=function(e){k===Wx&&(u?.(e),o&&(I(),F.current=$e(function(){P()})))};s.useEffect(function(){return I},[]);var R=T?M:null,z=O(O({},f),R);return(k===Hx||k===Ux)&&(z.overflowY=`hidden`,z.overflowX=`hidden`),s.createElement(Ue,{onResize:L,disabled:!(o||u)},s.createElement(`textarea`,c({},g,{ref:x,style:z,className:(0,h.default)(r,d,E({},`${r}-disabled`,p)),disabled:p,value:v,onChange:b})))}),Kx=[`defaultValue`,`value`,`onFocus`,`onBlur`,`onChange`,`allowClear`,`maxLength`,`onCompositionStart`,`onCompositionEnd`,`suffix`,`prefixCls`,`showCount`,`count`,`className`,`style`,`disabled`,`hidden`,`classNames`,`styles`,`onResize`,`onClear`,`onPressEnter`,`readOnly`,`autoSize`,`onKeyDown`],qx=s.forwardRef(function(e,t){var n=e.defaultValue,r=e.value,i=e.onFocus,a=e.onBlur,o=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,m=e.prefixCls,g=m===void 0?`rc-textarea`:m,_=e.showCount,v=e.count,y=e.className,b=e.style,x=e.disabled,S=e.hidden,C=e.classNames,w=e.styles,T=e.onResize,D=e.onClear,k=e.onPressEnter,A=e.readOnly,j=e.autoSize,M=e.onKeyDown,N=yt(e,Kx),P=Z(Na(n,{value:r,defaultValue:n}),2),F=P[0],I=P[1],L=F==null?``:String(F),R=Z(s.useState(!1),2),z=R[0],B=R[1],V=s.useRef(!1),H=Z(s.useState(null),2),U=H[0],W=H[1],G=(0,s.useRef)(null),K=(0,s.useRef)(null),q=function(){return K.current?.textArea},ee=function(){q().focus()};(0,s.useImperativeHandle)(t,function(){return{resizableTextArea:K.current,focus:ee,blur:function(){q().blur()},nativeElement:G.current?.nativeElement||q()}}),(0,s.useEffect)(function(){B(function(e){return!x&&e})},[x]);var J=Z(s.useState(null),2),Y=J[0],te=J[1];s.useEffect(function(){if(Y){var e;(e=q()).setSelectionRange.apply(e,X(Y))}},[Y]);var ne=Pb(v,_),re=ne.max??u,ie=Number(re)>0,ae=ne.strategy(L),oe=!!re&&ae>re,se=function(e,t){var n=t;!V.current&&ne.exceedFormatter&&ne.max&&ne.strategy(t)>ne.max&&(n=ne.exceedFormatter(t,{max:ne.max}),t!==n&&te([q().selectionStart||0,q().selectionEnd||0])),I(n),Ab(e.currentTarget,e,o,n)},ce=function(e){V.current=!0,d?.(e)},le=function(e){V.current=!1,se(e,e.currentTarget.value),f?.(e)},ue=function(
Line truncated
|
||||
&-allow-clear > ${t},
|
||||
&-affix-wrapper${r}-has-feedback ${t}
|
||||
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},zx=_o([`Input`,`TextArea`],e=>Rx(La(e,e3(e))),t3,{resetFont:!1}),Bx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Vx=(0,s.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:c,classNames:l,rootClassName:u,className:d,style:f,styles:p,variant:m,showCount:g,onMouseDown:_,onResize:v}=e,y=Bx(e,[`prefixCls`,`bordered`,`size`,`disabled`,`status`,`allowClear`,`classNames`,`rootClassName`,`className`,`style`,`styles`,`variant`,`showCount`,`onMouseDown`,`onResize`]),{getPrefixCls:b,direction:x,allowClear:S,autoComplete:C,className:w,style:T,classNames:E,styles:D}=ma(`textArea`),O=s.useContext(va),k=a??O,{status:A,hasFeedback:j,feedbackIcon:M}=s.useContext(xh),N=dv(A,o),P=s.useRef(null);s.useImperativeHandle(t,()=>({resizableTextArea:P.current?.resizableTextArea,focus:e=>{xb(P.current?.resizableTextArea?.textArea,e)},blur:()=>P.current?.blur()}));let F=b(`input`,n),I=Rc(F),[L,R,z]=k3(F,u),[B]=zx(F,I),{compactSize:V,compactItemClassnames:H}=Du(F,x),U=Su(e=>i??V??e),[W,G]=xv(`textArea`,m,r),K=Db(c??S),[q,ee]=s.useState(!1),[J,Y]=s.useState(!1),te=e=>{ee(!0),_?.(e);let t=()=>{ee(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},ne=e=>{if(v?.(e),q&&typeof getComputedStyle==`function`){let e=(P.current?.nativeElement)?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&Y(!0)}};return L(B(s.createElement(Lx,Object.assign({autoComplete:C},y,{style:Object.assign(Object.assign({},T),f),styles:Object.assign(Object.assign({},D),p),disabled:k,allowClear:K,className:(0,h.default)(z,I,d,u,H,w,J&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},l),E),{textarea:(0,h.default)({[`${F}-sm`]:U===`small`,[`${F}-lg`]:U===`large`},R,l?.textarea,E.textarea,q&&`${F}-mouse-active`),variant:(0,h.default)({[`${F}-${W}`]:G},uv(F,N)),affixWrapper:(0,h.default)(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:x===`rtl`,[`${F}-affix-wrapper-sm`]:U===`small`,[`${F}-affix-wrapper-lg`]:U===`large`,[`${F}-textarea-show-count`]:g||e.count?.show},R)}),prefixCls:F,suffix:j&&s.createElement(`span`,{className:`${F}-textarea-suffix`},M),showCount:g,ref:P,onResize:ne,onMouseDown:te}))))}),Hx=jb;Hx.Group=cx,Hx.Search=wx,Hx.TextArea=Vx,Hx.Password=Sx,Hx.OTP=gx;var Ux=100,Wx=Ux/5,Gx=Ux/2-Wx/2,Kx=80*Math.PI,qx=50,Jx=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return s.createElement(`circle`,{className:(0,h.default)(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Gx,cx:qx,cy:qx,strokeWidth:Wx,style:n})},Yx=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=s.useState(!1);qt(()=>{e!==0&&o(!0)},[e!==0]);let c=Math.max(Math.min(e,100),0);if(!a)return null;let l={strokeDashoffset:`${Kx/4}`,strokeDasharray:`${Kx*c/100} ${Kx*(100-c)/100}`};return s.createElement(`span`,{className:(0,h.default)(r,`${n}-progress`,c<=0&&i)},s.createElement(`svg`,{viewBox:`0 0 ${Ux} ${Ux}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},s.createElement(Jx,{dotClassName:n,hasCircleCls:!0}),s.createElement(Jx,{dotClassName:n,style:l})))};function Xx(e){let{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return s.createElement(s.Fragment,null,s.createElement(`span`,{className:(0,h.default)(i,n>0&&a)},s.createElement(`span`,{className:(0,h.default)(r,`${t}-dot-spin`)},[1,2,3,4].map(e=>s.createElement(`i`,{className:`${t}-dot-item`,key:e})))),s.createElement(Yx,{prefixCls:t,percent:n}))}function Zx(e){let{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&s.isValidElement(n)?gc(n,{className:(0,h.default)(n.props?.className,i),percent:r}):s.createElement(Xx,{prefixCls:t,percent:r})}var Qx=new Cr(`antSpinMove`,{to:{opacity:1}}),$x=new Cr(`antRotate`,{to:{transform:`rotate(405deg)`}}),e5=e=>{let{componentCls:t,calc:n}=e;return{[t]:Object.a
Line truncated
|
||||
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Yx=_o([`Input`,`TextArea`],e=>Jx(La(e,u3(e))),d3,{resetFont:!1}),Xx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Zx=(0,s.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:c,classNames:l,rootClassName:u,className:d,style:f,styles:p,variant:m,showCount:g,onMouseDown:_,onResize:v}=e,y=Xx(e,[`prefixCls`,`bordered`,`size`,`disabled`,`status`,`allowClear`,`classNames`,`rootClassName`,`className`,`style`,`styles`,`variant`,`showCount`,`onMouseDown`,`onResize`]),{getPrefixCls:b,direction:x,allowClear:S,autoComplete:C,className:w,style:T,classNames:E,styles:D}=ma(`textArea`),O=s.useContext(va),k=a??O,{status:A,hasFeedback:j,feedbackIcon:M}=s.useContext(xh),N=dv(A,o),P=s.useRef(null);s.useImperativeHandle(t,()=>({resizableTextArea:P.current?.resizableTextArea,focus:e=>{jb(P.current?.resizableTextArea?.textArea,e)},blur:()=>P.current?.blur()}));let F=b(`input`,n),I=Rc(F),[L,R,z]=z3(F,u),[B]=Yx(F,I),{compactSize:V,compactItemClassnames:H}=Du(F,x),U=Su(e=>i??V??e),[W,G]=xv(`textArea`,m,r),K=Lb(c??S),[q,ee]=s.useState(!1),[J,Y]=s.useState(!1),te=e=>{ee(!0),_?.(e);let t=()=>{ee(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},ne=e=>{if(v?.(e),q&&typeof getComputedStyle==`function`){let e=(P.current?.nativeElement)?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&Y(!0)}};return L(B(s.createElement(qx,Object.assign({autoComplete:C},y,{style:Object.assign(Object.assign({},T),f),styles:Object.assign(Object.assign({},D),p),disabled:k,allowClear:K,className:(0,h.default)(z,I,d,u,H,w,J&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},l),E),{textarea:(0,h.default)({[`${F}-sm`]:U===`small`,[`${F}-lg`]:U===`large`},R,l?.textarea,E.textarea,q&&`${F}-mouse-active`),variant:(0,h.default)({[`${F}-${W}`]:G},uv(F,N)),affixWrapper:(0,h.default)(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:x===`rtl`,[`${F}-affix-wrapper-sm`]:U===`small`,[`${F}-affix-wrapper-lg`]:U===`large`,[`${F}-textarea-show-count`]:g||e.count?.show},R)}),prefixCls:F,suffix:j&&s.createElement(`span`,{className:`${F}-textarea-suffix`},M),showCount:g,ref:P,onResize:ne,onMouseDown:te}))))}),Qx=Vb;Qx.Group=vx,Qx.Search=Px,Qx.TextArea=Zx,Qx.Password=Mx,Qx.OTP=Ex;var $x=100,e5=$x/5,t5=$x/2-e5/2,n5=80*Math.PI,r5=50,i5=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return s.createElement(`circle`,{className:(0,h.default)(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:t5,cx:r5,cy:r5,strokeWidth:e5,style:n})},a5=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=s.useState(!1);qt(()=>{e!==0&&o(!0)},[e!==0]);let c=Math.max(Math.min(e,100),0);if(!a)return null;let l={strokeDashoffset:`${n5/4}`,strokeDasharray:`${n5*c/100} ${n5*(100-c)/100}`};return s.createElement(`span`,{className:(0,h.default)(r,`${n}-progress`,c<=0&&i)},s.createElement(`svg`,{viewBox:`0 0 ${$x} ${$x}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},s.createElement(i5,{dotClassName:n,hasCircleCls:!0}),s.createElement(i5,{dotClassName:n,style:l})))};function o5(e){let{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return s.createElement(s.Fragment,null,s.createElement(`span`,{className:(0,h.default)(i,n>0&&a)},s.createElement(`span`,{className:(0,h.default)(r,`${t}-dot-spin`)},[1,2,3,4].map(e=>s.createElement(`i`,{className:`${t}-dot-item`,key:e})))),s.createElement(a5,{prefixCls:t,percent:n}))}function s5(e){let{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&s.isValidElement(n)?gc(n,{className:(0,h.default)(n.props?.className,i),percent:r}):s.createElement(o5,{prefixCls:t,percent:r})}var c5=new Cr(`antSpinMove`,{to:{opacity:1}}),l5=new Cr(`antRotate`,{to:{transform:`rotate(405deg)`}}),u5=e=>{let{componentCls:t,calc:n}=e;return{[t]:Object.a
Line truncated
|
||||
h${t}&,
|
||||
div&-h${t},
|
||||
div&-h${t} > textarea,
|
||||
h${t}
|
||||
`]=Q5(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},e7=e=>{let{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},go(e)),{userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`}}})}},t7=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Ci[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85}}),n7=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},r7=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),i7=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),a7=_o(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"\n div&,\n p\n ":{marginBottom:`1em`}},$5(e)),{[`
|
||||
`]=h7(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},_7=e=>{let{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},go(e)),{userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`}}})}},v7=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Ci[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85}}),y7=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},b7=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),x7=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),S7=_o(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"\n div&,\n p\n ":{marginBottom:`1em`}},g7(e)),{[`
|
||||
& + h1${t},
|
||||
& + h2${t},
|
||||
& + h3${t},
|
||||
& + h4${t},
|
||||
& + h5${t}
|
||||
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),t7(e)),e7(e)),{[`
|
||||
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),v7(e)),_7(e)),{[`
|
||||
${t}-expand,
|
||||
${t}-collapse,
|
||||
${t}-edit,
|
||||
${t}-copy
|
||||
`]:Object.assign(Object.assign({},go(e)),{marginInlineStart:e.marginXXS})}),n7(e)),r7(e)),i7()),{"&-rtl":{direction:`rtl`}})}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),o7=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:c=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:m=s.createElement(Z5,null)}=e,g=s.useRef(null),_=s.useRef(!1),v=s.useRef(null),[y,b]=s.useState(l);s.useEffect(()=>{b(l)},[l]),s.useEffect(()=>{if(g.current?.resizableTextArea){let{textArea:e}=g.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let x=({target:e})=>{b(e.value.replace(/[\n\r]/g,``))},S=()=>{_.current=!0},C=()=>{_.current=!1},w=({keyCode:e})=>{_.current||(v.current=e)},T=()=>{u(y.trim())},E=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{v.current!==e||_.current||t||n||r||i||(e===$.ENTER?(T(),f?.()):e===$.ESC&&d())},D=()=>{T()},[O,k,A]=a7(t),j=(0,h.default)(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${p}`]:!!p},r,k,A);return O(s.createElement(`div`,{className:j,style:i},s.createElement(Vx,{ref:g,maxLength:o,value:y,onChange:x,onKeyDown:w,onKeyUp:E,onCompositionStart:S,onCompositionEnd:C,onBlur:D,"aria-label":n,rows:1,autoSize:c}),m===null?null:gc(m,{className:`${t}-edit-content-confirm`})))},s7=t(((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}})),c7=e(t(((e,t)=>{var n=s7(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}t.exports=function(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),n.clipboardData===void 0){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}}))()),l7=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},u7=({copyConfig:e,children:t})=>{let[n,r]=s.useState(!1),[i,a]=s.useState(!1),o=s.useRef(null),c=()=>{o.current&&clearTimeout(o.current)},l={};return e.format&&(l.format=e.format),s.useEffect(()=>c,[]),{copied:n,copyLoading:i,onClick:Aa(n=>l7(void 0,void 0,void 0,function*(){var i;n?.preventDefault(),n?.stopPropagation(),a(!0);try{let s=typeof e.text==`function`?yield e.text():e.text;(0,c7.default)(s||l5(t,!0).join(``)||``,l),a(!1),r(!0),c(),o.current=setTimeout(()=>{r(!1)},3e3),(i=e.onCopy)==null||i.call(e,n)}catch(e){throw a(!1),e}}))}};function d7(e,t){return s.useMemo(()=>{let n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e==`object`?e:null)]},[e])}var f7=e=>{let t=(0,s.useRef)(void 0);return(0,s.useEffect)(()=>{t.current=e}),t.current},p7=(e,t,n)=>(0,s.useMemo)(()=>e===!0?{title:t??n}:(0,s.isValidElement)(e)?{title:e}:typeof e==`object`?Object.assign({title:t??n},e):{title:e},[e,t,n]),m7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnume
Line truncated
|
||||
`]:Object.assign(Object.assign({},go(e)),{marginInlineStart:e.marginXXS})}),y7(e)),b7(e)),x7()),{"&-rtl":{direction:`rtl`}})}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),C7=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:c=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:m=s.createElement(m7,null)}=e,g=s.useRef(null),_=s.useRef(!1),v=s.useRef(null),[y,b]=s.useState(l);s.useEffect(()=>{b(l)},[l]),s.useEffect(()=>{if(g.current?.resizableTextArea){let{textArea:e}=g.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let x=({target:e})=>{b(e.value.replace(/[\n\r]/g,``))},S=()=>{_.current=!0},C=()=>{_.current=!1},w=({keyCode:e})=>{_.current||(v.current=e)},T=()=>{u(y.trim())},E=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{v.current!==e||_.current||t||n||r||i||(e===$.ENTER?(T(),f?.()):e===$.ESC&&d())},D=()=>{T()},[O,k,A]=S7(t),j=(0,h.default)(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${p}`]:!!p},r,k,A);return O(s.createElement(`div`,{className:j,style:i},s.createElement(Zx,{ref:g,maxLength:o,value:y,onChange:x,onKeyDown:w,onKeyUp:E,onCompositionStart:S,onCompositionEnd:C,onBlur:D,"aria-label":n,rows:1,autoSize:c}),m===null?null:gc(m,{className:`${t}-edit-content-confirm`})))},w7=t(((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}})),T7=e(t(((e,t)=>{var n=w7(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}t.exports=function(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),n.clipboardData===void 0){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}}))()),E7=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},D7=({copyConfig:e,children:t})=>{let[n,r]=s.useState(!1),[i,a]=s.useState(!1),o=s.useRef(null),c=()=>{o.current&&clearTimeout(o.current)},l={};return e.format&&(l.format=e.format),s.useEffect(()=>c,[]),{copied:n,copyLoading:i,onClick:Aa(n=>E7(void 0,void 0,void 0,function*(){var i;n?.preventDefault(),n?.stopPropagation(),a(!0);try{let s=typeof e.text==`function`?yield e.text():e.text;(0,T7.default)(s||y5(t,!0).join(``)||``,l),a(!1),r(!0),c(),o.current=setTimeout(()=>{r(!1)},3e3),(i=e.onCopy)==null||i.call(e,n)}catch(e){throw a(!1),e}}))}};function O7(e,t){return s.useMemo(()=>{let n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e==`object`?e:null)]},[e])}var k7=e=>{let t=(0,s.useRef)(void 0);return(0,s.useEffect)(()=>{t.current=e}),t.current},A7=(e,t,n)=>(0,s.useMemo)(()=>e===!0?{title:t??n}:(0,s.isValidElement)(e)?{title:e}:typeof e==`object`?Object.assign({title:t??n},e):{title:e},[e,t,n]),j7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnume
Line truncated
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
import{n as e,t}from"./rolldown-runtime-Dl_DZoUm.js";import{A as n,B as r,C as i,D as a,E as o,F as s,I as c,L as l,M as u,N as d,O as f,P as p,R as m,S as h,T as g,_,a as v,b as y,c as b,d as x,f as S,g as C,h as w,i as T,j as E,k as D,l as O,m as k,n as A,o as j,p as M,r as ee,s as te,t as ne,u as re,v as N,w as ie,x as ae,y as P}from"./antd-CHeDoVQW.js";import{n as oe,t as se}from"./react-DKzIiI9e.js";var ce=t(((e,t,n)=>{var r;(function(n,i){typeof e==`object`&&t!==void 0?t.exports=i():typeof r==`function`&&r.amd?r(i):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=i()})(n,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return hLine truncated
|
||||
0.58×(822+45)+55=558
|
||||
769+558=1327`,value:r,onChange:e=>a(e.target.value)}),(0,L.jsxs)(i,{style:{marginTop:8},children:[(0,L.jsx)(p,{type:`primary`,onClick:()=>l(!1),children:`识别并预填`}),o?.kind===`warning`&&(0,L.jsx)(p,{onClick:()=>l(!0),children:`按计算金额预填`})]}),(0,L.jsx)(`p`,{className:`small muted`,children:`括号内是克工费;金价乘克重后加的是一件工费,再加的金额记为附加费。合计行只校验,不增加商品。客户、货盘及内部成本仍按实际填写。`}),o&&(0,L.jsx)(c,{role:`status`,type:o.kind===`note`?`success`:o.kind,message:o.title||(o.kind===`error`?o.lines[0]:``),description:o.kind===`error`?void 0:(0,L.jsx)(`div`,{children:o.lines.filter(Boolean).map((e,t)=>(0,L.jsx)(`p`,{children:e},t))})})]})}function Dt({order:e,error:t,onRetry:n,onNew:r}){let o=e.total!==void 0;return(0,L.jsx)(`div`,{className:`issued-page`,children:(0,L.jsx)(a,{className:`issued-card`,children:(0,L.jsx)(w,{status:`success`,title:`销售单据已生成`,subTitle:o?e.materialCostPending?`收款、费用和出库已记账;料费待补,补足购料后自动核算利润。`:`收款、费用、出库和利润已记账。`:t||`正在读取已生成的销售单…`,extra:(0,L.jsxs)(i,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[o&&(0,L.jsxs)(`dl`,{className:`issued-summary`,"data-testid":`issued-summary`,children:[(0,L.jsxs)(`div`,{className:`issued-item`,children:[(0,L.jsx)(`dt`,{children:(0,L.jsx)(x.Text,{type:`secondary`,children:`纸单号`})}),(0,L.jsx)(`dd`,{className:`issued-value num`,"data-testid":`issued-paper-number`,children:e.paper_number||`未分配`})]}),(0,L.jsxs)(`div`,{className:`issued-item`,children:[(0,L.jsx)(`dt`,{children:(0,L.jsx)(x.Text,{type:`secondary`,children:`成交合计`})}),(0,L.jsx)(`dd`,{className:`issued-value issued-total num`,"data-testid":`issued-total`,children:Je(e.total??null,e.rounding_mode||`cent`)})]}),e.customer&&(0,L.jsxs)(`div`,{className:`issued-item`,children:[(0,L.jsx)(`dt`,{children:(0,L.jsx)(x.Text,{type:`secondary`,children:`客户`})}),(0,L.jsx)(`dd`,{className:`issued-value small`,children:e.customer})]})]}),(0,L.jsxs)(`div`,{className:`issued-actions`,children:[(0,L.jsx)(p,{type:`primary`,size:`large`,icon:(0,L.jsx)(ee,{}),href:`/print/`+encodeURIComponent(e.id),target:`_blank`,rel:`noopener`,"data-action":`print-preview`,children:`打开打印预览`}),(0,L.jsx)(p,{size:`large`,icon:(0,L.jsx)(f,{}),onClick:r,"data-action":`new-order`,children:`开始新的一单`}),!o&&(0,L.jsx)(p,{size:`large`,onClick:n,children:`重新读取订单`})]}),(0,L.jsx)(p,{href:`/`,type:`link`,icon:(0,L.jsx)(h,{}),children:`到旧版界面查看订单`})]})})})})}function Ot(e){let{client:t,state:n}=e,r=Ce(`draft`),[i,a]=(0,I.useState)(r?null:{draft:et(window.localStorage,n.user.id),note:``});return(0,I.useEffect)(()=>{if(!r)return;let e=!0;return(async()=>{try{if(n.user.role!==`owner`)throw Error(`已有草稿由店主继续填写并开单;无单号的新开单流程照常使用。`);let i=await t.api(`/api/orders/`+encodeURIComponent(r));if(i.status!==`draft`)throw Error(`这张订单不是未开单的旧草稿,请在旧版界面查看。`);e&&a({draft:H.draftInputs(i),note:`正在继续填写旧草稿,生成销售单据后完成记账。`})}catch(t){e&&a({draft:et(window.localStorage,n.user.id),note:`旧草稿未能打开:`+t.message})}})(),()=>{e=!1}},[t,r,n.user.id,n.user.role]),i?(0,L.jsx)(kt,{...e,initialDraft:i.draft,initialNote:i.note}):(0,L.jsx)(`div`,{className:`page-loading`,children:(0,L.jsx)(N,{tip:`正在读取旧草稿…`,children:(0,L.jsx)(`div`,{style:{height:60}})})})}function kt({client:e,state:t,session:n,refreshState:r,onAccountChanged:i,initialDraft:a,initialNote:o}){let{message:s}=d.useApp();rt(e);let{store:l,update:u,reset:f,ctx:m,poolError:h,loadPools:g}=it({client:e,state:t,session:n,initialDraft:a}),{form:_,summary:v}=l,[y,S]=(0,I.useState)(``),[C,w]=(0,I.useState)(!1),[T,E]=(0,I.useState)(null),[D,O]=(0,I.useState)([]),[k,A]=(0,I.useState)(`正在读取快捷标签…`),j=e.busy,M=e.pending(),ee=(0,I.useRef)(null),[te,ne]=(0,I.useState)(null),re=(0,I.useMemo)(()=>{if(_.paper_number){let e=_.paper_date&&_.paper_number.match(/^\d{8}-?(\d+)$/);return e?_.date.replaceAll(`-`,``)+e[1]:_.paper_number}return te?.date===_.date?te.number+`(预计)`:`保存时分配`},[_.paper_number,_.paper_date,_.date,te]);(0,I.useEffect)(()=>{if(_.paper_number)return;let t=!0,n=_.date;return e.api(`/api/paper-number?date=`+encodeURIComponent(n)).then(e=>t&&ne({date:n,number:e.number})).catch(()=>{}),()=>{t=!1}},[e,_.date,_.paper_number]),(0,I.useEffect)(()=>{let t=!0;return e.api(`/api/order-note-tags`).then(e=>{t&&(O(Array.isArray(e.tags)?e.tags.filter(e=>typeof e==`string`):[]),A(``))}).catch(()=>t&&A(`快捷标签暂未读取成功,可直接填写备注。`)),()=>{t=!1}},[e]);let N=(0,I.useCallback)(e=>{let t=e;t.code===`ACCOUNT_CHANGED`&&w(!0),S(t.message),s.error(t.message),Ct(ee.current,t.message)},[s]),
Line truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
*{box-sizing:border-box}html{scroll-behavior:smooth}html,body{background:var(--paper);color:var(--ink);font-family:var(--font);-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;margin:0}.small{font-size:12.5px}.muted{color:var(--muted)}.danger-text{color:var(--danger)}.num,.num input,input.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}a:focus-visible,.help-icon:focus-visible,.nav-link:focus-visible,.section-pill:focus-visible,.order-cost-option:focus-within{outline:2px solid var(--gold);outline-offset:2px;border-radius:6px}.page-loading,.page-center{justify-content:center;padding:120px 16px;display:flex}.app-header{z-index:30;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);background:#fffefaf5;justify-content:space-between;align-items:center;gap:12px;height:68px;padding:0 28px;display:flex;position:sticky;top:0;box-shadow:0 1px 3px #233d3508}.app-header-brand{align-items:center;gap:12px;min-width:0;display:flex}.brand-mark{background:var(--green);color:#e7dcc2;border-radius:11px;flex:none;place-items:center;width:40px;height:40px;font-family:Songti SC,STSong,SimSun,serif;font-size:21px;display:inline-grid;box-shadow:inset 0 0 0 1px #e7dcc22e}.brand-mark-lg{border-radius:16px;width:60px;height:60px;font-size:31px}.brand-text{min-width:0}.brand-text strong{letter-spacing:2px;white-space:nowrap;text-overflow:ellipsis;font-size:17px;display:block;overflow:hidden}.brand-text small{letter-spacing:1px;color:var(--muted);font-size:11px;display:block}.app-header-right{flex:none;align-items:center;gap:14px;display:flex}.mode-tag.ant-tag{margin:0;font-size:12px}.old-ui-link{white-space:nowrap;color:var(--muted);border-radius:6px;align-items:center;gap:5px;padding:4px 8px;font-size:13px;transition:color .15s,background .15s;display:inline-flex}.old-ui-link:hover{color:var(--green);background:#254e400f}.identity{white-space:nowrap;align-items:center;gap:8px;font-weight:600;display:inline-flex}.identity-avatar{background:var(--soft);width:30px;height:30px;color:var(--green);border-radius:50%;place-items:center;font-size:13px;display:inline-grid}.menu-button.ant-btn{display:none}.app-body{grid-template-columns:236px minmax(0,1fr);min-height:calc(100vh - 68px);display:grid}.app-sider{border-right:1px solid var(--border);padding:26px 16px}.app-sider .side-nav{position:sticky;top:94px}.side-nav ul{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.nav-link{color:var(--ink);border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-weight:500;text-decoration:none;transition:background .15s;display:flex}.nav-link:hover{color:var(--ink);background:#254e400f}.nav-no{color:#7f877f;font-variant-numeric:tabular-nums;width:18px;font-size:11px}.nav-label{flex:1;min-width:0}.nav-old{color:var(--muted);border:1px solid var(--border);border-radius:4px;padding:0 5px;font-size:10.5px;line-height:17px}.nav-link.active{background:var(--green);color:#fff;box-shadow:0 2px 6px #254e4038}.nav-link.active .nav-no{color:#c9d6cd}.nav-foot{color:var(--muted);margin:28px 12px 0;font-size:11.5px;line-height:1.8}.drawer-title{align-items:center;gap:10px;display:flex}.drawer-title .brand-mark{border-radius:9px;width:32px;height:32px;font-size:17px}.nav-drawer .ant-drawer-body{padding:12px}.drawer-user{background:var(--paper);border:1px solid var(--border);border-radius:10px;justify-content:space-between;align-items:center;gap:10px;margin:0 4px 12px;padding:10px 12px;display:flex}.drawer-user-info{align-items:center;gap:10px;min-width:0;display:flex}.drawer-user-text{flex-direction:column;min-width:0;line-height:1.3;display:flex}.drawer-user-text strong{color:var(--ink);white-space:nowrap;text-overflow:ellipsis;font-size:14px;overflow:hidden}.drawer-user-text small{color:var(--muted);font-size:11.5px}.drawer-meta{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;margin:20px 12px 0;padding-top:16px;display:flex}.request-status{margin-bottom:12px}.main{width:100%;min-width:0;max-width:1520px;margin:0 auto;padding:28px 36px 0}.page-heading{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px;display:flex}.page-heading h1.ant-typography{letter-spacing:1px;margin:0 0 4px;font-size:28px}.page-heading .ant-typography-secondary,.page-heading div.ant-typography{margin:0}.eyebrow{letter-spacing:2px;text-transform:uppercase;color:var(--gold-text);margin-bottom:6px;font-size:11px;font-weight:700}.create-page>.ant-alert{margin-bottom:12px}.section-nav{scrollbar-width:none;-webkit-overflow-scrolling:touch;align-items:center;gap:8px;margin-bottom:14px;padding:2px 0;display:flex;overflow-x:auto}.section-nav::-webkit-scrollbar{display:none}.section-pill{border:1px solid var(--border);background:var(--white);color:var(--ink);cursor:pointer;border-radius:999px;flex:none;align-items:center;gap:6px;padding:6px 12px;font-size:12.5px;font-weight:500;transition:border-color .15s,backgrouLine truncated
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import{n as e,t}from"./rolldown-runtime-Dl_DZoUm.js";import{A as n,B as r,C as i,D as a,E as o,F as s,H as c,I as l,L as u,M as d,N as f,O as p,P as m,R as h,S as g,T as _,_ as v,a as y,b,c as x,d as S,f as C,g as w,h as T,i as E,j as D,k as O,l as k,m as A,n as j,o as M,p as N,r as ee,s as te,t as ne,u as re,v as ie,w as ae,x as P,y as oe,z as se}from"./antd-Bh8pVx-K.js";import{n as ce,t as F}from"./react-BvkltZ40.js";var I=t(((e,t,n)=>{var r;(function(n,i){typeof e==`object`&&t!==void 0?t.exports=i():typeof r==`function`&&r.amd?r(i):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=i()})(n,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(Line truncated
|
||||
0.58×(822+45)+55=558
|
||||
769+558=1327`,value:r,onChange:e=>i(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&r.trim()&&(e.preventDefault(),s(!1))}}),(0,R.jsxs)(_,{wrap:!0,style:{marginTop:8},children:[(0,R.jsx)(l,{type:`primary`,onClick:()=>s(!1),children:`识别并预填`}),a?.kind===`warning`&&(0,R.jsx)(l,{onClick:()=>s(!0),children:`按计算金额预填`}),r&&(0,R.jsx)(l,{onClick:()=>{i(``),o(null)},children:`清空公式`})]}),(0,R.jsx)(`p`,{className:`small muted`,children:`括号内是克工费;金价乘克重后加的是一件工费,再加的金额记为附加费。合计行只校验,不增加商品。客户、货盘及内部成本仍按实际填写。`}),a&&(0,R.jsx)(h,{role:`status`,type:a.kind===`note`?`success`:a.kind,message:a.title||(a.kind===`error`?a.lines[0]:``),description:a.kind===`error`?void 0:(0,R.jsx)(`div`,{children:a.lines.filter(Boolean).map((e,t)=>(0,R.jsx)(`p`,{children:e},t))})})]})}function kt({order:e,error:t,onRetry:r,onNew:i}){let{message:a}=s.useApp(),[o,c]=(0,L.useState)(!1),u=e.total!==void 0;async function f(){if(e.paper_number)try{await navigator.clipboard.writeText(e.paper_number),c(!0),a.success(`已复制纸单号 `+e.paper_number),window.setTimeout(()=>c(!1),1800)}catch{c(!1),a.info(`请手动选择纸单号复制`)}}return(0,R.jsx)(`div`,{className:`issued-page`,children:(0,R.jsx)(O,{className:`issued-card`,children:(0,R.jsx)(w,{status:`success`,title:`销售单据已生成`,subTitle:u?e.materialCostPending?`收款、费用和出库已记账;料费待补,补足购料后自动核算利润。`:`收款、费用、出库和利润已记账。`:t||`正在读取已生成的销售单…`,extra:(0,R.jsxs)(_,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[u&&(0,R.jsxs)(`dl`,{className:`issued-summary`,"data-testid":`issued-summary`,children:[(0,R.jsxs)(`div`,{className:`issued-item`,children:[(0,R.jsx)(`dt`,{children:(0,R.jsx)(S.Text,{type:`secondary`,children:`纸单号`})}),(0,R.jsxs)(`dd`,{className:`issued-value-row`,children:[(0,R.jsx)(`span`,{className:`issued-value num`,"data-testid":`issued-paper-number`,children:e.paper_number||`未分配`}),e.paper_number&&(0,R.jsx)(d,{title:o?`已复制`:`复制纸单号`,children:(0,R.jsx)(l,{type:`text`,size:`small`,className:`issued-copy-btn`,"aria-label":`复制纸单号`,icon:o?(0,R.jsx)(m,{}):(0,R.jsx)(C,{}),onClick:()=>void f()})})]})]}),(0,R.jsxs)(`div`,{className:`issued-item`,children:[(0,R.jsx)(`dt`,{children:(0,R.jsx)(S.Text,{type:`secondary`,children:`成交合计`})}),(0,R.jsx)(`dd`,{className:`issued-value issued-total num`,"data-testid":`issued-total`,children:Xe(e.total??null,e.rounding_mode||`cent`)})]}),e.customer&&(0,R.jsxs)(`div`,{className:`issued-item`,children:[(0,R.jsx)(`dt`,{children:(0,R.jsx)(S.Text,{type:`secondary`,children:`客户`})}),(0,R.jsx)(`dd`,{className:`issued-value small`,children:e.customer})]})]}),(0,R.jsxs)(`div`,{className:`issued-actions`,children:[(0,R.jsx)(l,{type:`primary`,size:`large`,icon:(0,R.jsx)(ee,{}),href:`/print/`+encodeURIComponent(e.id),target:`_blank`,rel:`noopener`,"data-action":`print-preview`,children:`打开打印预览`}),(0,R.jsx)(l,{size:`large`,icon:(0,R.jsx)(n,{}),onClick:i,"data-action":`new-order`,children:`开始新的一单`}),!u&&(0,R.jsx)(l,{size:`large`,onClick:r,children:`重新读取订单`})]}),(0,R.jsx)(l,{href:`/`,type:`link`,icon:(0,R.jsx)(ae,{}),children:`到旧版界面查看订单`})]})})})})}function At(e){let{client:t,state:n}=e,r=we(`draft`),[i,a]=(0,L.useState)(r?null:{draft:nt(window.localStorage,n.user.id),note:``});return(0,L.useEffect)(()=>{if(!r)return;let e=!0;return(async()=>{try{if(n.user.role!==`owner`)throw Error(`已有草稿由店主继续填写并开单;无单号的新开单流程照常使用。`);let i=await t.api(`/api/orders/`+encodeURIComponent(r));if(i.status!==`draft`)throw Error(`这张订单不是未开单的旧草稿,请在旧版界面查看。`);e&&a({draft:H.draftInputs(i),note:`正在继续填写旧草稿,生成销售单据后完成记账。`})}catch(t){e&&a({draft:nt(window.localStorage,n.user.id),note:`旧草稿未能打开:`+t.message})}})(),()=>{e=!1}},[t,r,n.user.id,n.user.role]),i?(0,R.jsx)(jt,{...e,initialDraft:i.draft,initialNote:i.note}):(0,R.jsx)(`div`,{className:`page-loading`,children:(0,R.jsx)(b,{tip:`正在读取旧草稿…`,children:(0,R.jsx)(`div`,{style:{height:60}})})})}function jt({client:e,state:t,session:n,refreshState:r,onAccountChanged:i,initialDraft:a,initialNote:o}){let{message:c}=s.useApp();at(e);let{store:u,update:d,reset:f,ctx:p,poolError:m,loadPools:g}=ot({client:e,state:t,session:n,initialDraft:a}),{form:_,summary:v}=u,[y,b]=(0,L.useState)(``),[C,w]=(0,L.useState)(!1),[T,E]=(0,L.useState)(null),[D,O]=(0,L.useState)([]),[k,A]=(0,L.useState)(`正在读取快捷标签…`),j=e.busy,M=e.pending(),N=(0,L.useRef)(null),[ee,te]=(0,L.useState)(null),ne=(0,L.useMemo)(()=>{if(_.paper_number){let e=_.paper_date&&_.paper_number.match(/^\d{8}-?(\d+)$/);return e?_.date
Line truncated
|
||||
-1
@@ -1 +0,0 @@
|
||||
*{box-sizing:border-box}html,body{background:var(--paper);color:var(--ink);font-family:var(--font);-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;margin:0}.small{font-size:12.5px}.muted{color:var(--muted)}.danger-text{color:var(--danger)}.num,.num input,input.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}a:focus-visible,.help-icon:focus-visible,.nav-link:focus-visible,.order-cost-option:focus-within{outline:2px solid var(--gold);outline-offset:2px;border-radius:6px}.page-loading,.page-center{justify-content:center;padding:120px 16px;display:flex}.app-header{z-index:30;background:var(--white);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;height:68px;padding:0 28px;display:flex;position:sticky;top:0}.app-header-brand{align-items:center;gap:12px;min-width:0;display:flex}.brand-mark{background:var(--green);color:#e7dcc2;border-radius:11px;flex:none;place-items:center;width:40px;height:40px;font-family:Songti SC,STSong,SimSun,serif;font-size:21px;display:inline-grid;box-shadow:inset 0 0 0 1px #e7dcc22e}.brand-mark-lg{border-radius:16px;width:60px;height:60px;font-size:31px}.brand-text{min-width:0}.brand-text strong{letter-spacing:2px;white-space:nowrap;text-overflow:ellipsis;font-size:17px;display:block;overflow:hidden}.brand-text small{letter-spacing:1px;color:var(--muted);font-size:11px;display:block}.app-header-right{flex:none;align-items:center;gap:14px;display:flex}.mode-tag.ant-tag{margin:0;font-size:12px}.old-ui-link{white-space:nowrap;font-size:13px}.identity{white-space:nowrap;align-items:center;gap:8px;font-weight:600;display:inline-flex}.identity-avatar{background:var(--soft);width:30px;height:30px;color:var(--green);border-radius:50%;place-items:center;font-size:13px;display:inline-grid}.menu-button.ant-btn{display:none}.app-body{grid-template-columns:236px minmax(0,1fr);min-height:calc(100vh - 68px);display:grid}.app-sider{border-right:1px solid var(--border);padding:26px 16px}.app-sider .side-nav{position:sticky;top:94px}.side-nav ul{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.nav-link{color:var(--ink);border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-weight:500;text-decoration:none;transition:background .15s;display:flex}.nav-link:hover{color:var(--ink);background:#254e400f}.nav-no{color:#7f877f;font-variant-numeric:tabular-nums;width:18px;font-size:11px}.nav-label{flex:1;min-width:0}.nav-old{color:var(--muted);border:1px solid var(--border);border-radius:4px;padding:0 5px;font-size:10.5px;line-height:17px}.nav-link.active{background:var(--green);color:#fff;box-shadow:0 2px 6px #254e4038}.nav-link.active .nav-no{color:#c9d6cd}.nav-foot{color:var(--muted);margin:28px 12px 0;font-size:11.5px;line-height:1.8}.drawer-title{align-items:center;gap:10px;display:flex}.drawer-title .brand-mark{border-radius:9px;width:32px;height:32px;font-size:17px}.nav-drawer .ant-drawer-body{padding:12px}.drawer-meta{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;margin:20px 12px 0;padding-top:16px;display:flex}.request-status{margin-bottom:12px}.main{width:100%;min-width:0;max-width:1180px;padding:28px 32px 0}.page-heading{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px;display:flex}.page-heading h1.ant-typography{letter-spacing:1px;margin:0 0 4px;font-size:28px}.page-heading .ant-typography-secondary,.page-heading div.ant-typography{margin:0}.eyebrow{letter-spacing:2px;text-transform:uppercase;color:var(--gold-text);margin-bottom:6px;font-size:11px;font-weight:700}.create-page>.ant-alert{margin-bottom:12px}.form-fieldset{border:0;min-width:0;margin:0;padding:0}.entry-tools.ant-collapse{background:0 0;border:0;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;margin-bottom:16px;display:grid}.entry-tools.ant-collapse>.ant-collapse-item{border:1px solid var(--border);background:var(--white);border-radius:12px;overflow:hidden}.entry-tools.ant-collapse>.ant-collapse-item:last-child,.entry-tools.ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header{border-radius:12px}.entry-tools .ant-collapse-header{font-weight:600}.entry-tools .ant-collapse-header .muted{margin-left:6px;font-weight:400}.entry-tools .ant-collapse-content{border-top:1px solid var(--border)}.panel.ant-card{border-color:var(--border);margin-bottom:16px;box-shadow:0 1px 2px #233d350a}.panel>.ant-card-head{border-bottom-color:var(--border)}.section-title{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;padding:2px 0;display:flex}.section-title h2{letter-spacing:.5px;margin:0;font-size:17px;font-weight:650}.step-no{background:var(--soft);min-width:30px;height:22px;color:var(--green);letter-spacing:1px;font-variant-numeric:tabular-nums;border-radius:6px;place-items:center;padding:0 6px;font-size:11.5px;font-weight:700;display:inline-grid}.section-extra{color:var(--muted);font-size:12.5px;font-weight:400}.sectiLine truncated
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{t as e}from"./rolldown-runtime-Dl_DZoUm.js";import{B as t,z as n}from"./antd-CHeDoVQW.js";var r=e((e=>{function t(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function ee(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,te||(te=!0,oe());else{var t=n(l);t!==null&&le(ee,t.startTime-e)}}}var te=!1,ne=-1,re=5,ie=-1;function ae(){return g?!0:!(e.unstable_now()-ie<re)}function x(){if(g=!1,te){var t=e.unstable_now();ie=t;var i=!0;try{e:{m=!1,h&&(h=!1,v(ne),ne=-1),p=!0;var a=f;try{t:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ae());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break t}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(ee,u.startTime-t),i=!1}}break e}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():te=!1}}}var oe;if(typeof y==`function`)oe=function(){y(x)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=x,oe=function(){ce.postMessage(null)}}else oe=function(){_(x,0)};function le(t,n){ne=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):re=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=0x3fffffff;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ne),ne=-1):h=!0,le(ee,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,te||(te=!0,oe()))),r},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var r=i(),a=t(),o=n();function s(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(s(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,c=i.child;c;){if(c===n){Line truncated
|
||||
import{t as e}from"./rolldown-runtime-Dl_DZoUm.js";import{H as t,V as n}from"./antd-Bh8pVx-K.js";var r=e((e=>{function t(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function ee(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,te||(te=!0,oe());else{var t=n(l);t!==null&&le(ee,t.startTime-e)}}}var te=!1,ne=-1,re=5,ie=-1;function ae(){return g?!0:!(e.unstable_now()-ie<re)}function x(){if(g=!1,te){var t=e.unstable_now();ie=t;var i=!0;try{e:{m=!1,h&&(h=!1,v(ne),ne=-1),p=!0;var a=f;try{t:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ae());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break t}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(ee,u.startTime-t),i=!1}}break e}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():te=!1}}}var oe;if(typeof y==`function`)oe=function(){y(x)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=x,oe=function(){ce.postMessage(null)}}else oe=function(){_(x,0)};function le(t,n){ne=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):re=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=0x3fffffff;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ne),ne=-1):h=!0,le(ee,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,te||(te=!0,oe()))),r},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var r=i(),a=t(),o=n();function s(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(s(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,c=i.child;c;){if(c===n){Line truncated
|
||||
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
||||
`+Ve+e+He}var We=!1;function Ge(e,t){if(!e||We)return``;We=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
||||
`),l=s.split(`
|
||||
Reference in new issue
Block a user