-
Notifications
You must be signed in to change notification settings - Fork 0
/
46176.f03e93ae.async.js
1 lines (1 loc) · 13.7 KB
/
46176.f03e93ae.async.js
1
"use strict";(self.webpackChunkantd=self.webpackChunkantd||[]).push([[46176],{352745:function(ae,p,e){e.d(p,{Z:function(){return s}});var m=e(487462),o=e(667294),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},i=S,E=e(713401),T=function(O,D){return o.createElement(E.Z,(0,m.Z)({},O,{ref:D,icon:i}))},s=o.forwardRef(T)},724969:function(ae,p,e){e.d(p,{Z:function(){return s}});var m=e(487462),o=e(667294),S={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"},i=S,E=e(713401),T=function(O,D){return o.createElement(E.Z,(0,m.Z)({},O,{ref:D,icon:i}))},s=o.forwardRef(T)},446176:function(ae,p,e){e.r(p),e.d(p,{scopes:function(){return F}});var m=e(667294),o=e(432210),S=e(212173),i=e(945016),E=e(988872),T=e(965516),s=e(811834),Q=e(344682),O=e(352745),D=e(724969),F={"qr-code-demo-base":{React:m,Input:o.Z,QRCode:S.Z,Space:i.Z},"qr-code-demo-icon":{React:m,QRCode:S.Z},"qr-code-demo-status":{React:m,QRCode:S.Z,Space:i.Z},"qr-code-demo-type":{React:m,QRCode:S.Z,Space:i.Z},"qr-code-demo-customsize":{React:m,useState:m.useState,MinusOutlined:O.Z,PlusOutlined:D.Z,QRCode:S.Z,Button:E.ZP},"qr-code-demo-customcolor":{React:m,QRCode:S.Z,Space:i.Z,theme:T.Z},"qr-code-demo-download":{React:m,Button:E.ZP,QRCode:S.Z},"qr-code-demo-errorlevel":{React:m,useState:m.useState,Segmented:s.Z,QRCode:S.Z},"qr-code-demo-popover":{React:m,QRCode:S.Z,Popover:Q.Z}}},212173:function(ae,p,e){e.d(p,{Z:function(){return h}});var m=e(242122),o=e.n(m),S=e(238416),i=e.n(S),E=e(627424),T=e.n(E),s=e(667294),Q=e(490137),O=e.n(Q),D=e(294184),F=e.n(D),q=e(484059),ne=e(988872),w=e(73287),k=e(824504),V=e(313579),_=e(301192),oe=e(615624),le=e(548073),W=e(286665),ee=e(986943),G=function(n){var y,b,C=n.componentCls,l=n.lineWidth,t=n.lineType,c=n.colorSplit;return b={},i()(b,C,o()(o()({},(0,le.Wf)(n)),{},(y={display:"flex",justifyContent:"center",alignItems:"center",padding:n.paddingSM,backgroundColor:n.colorWhite,borderRadius:n.borderRadiusLG,border:"".concat((0,oe.bf)(l)," ").concat(t," ").concat(c),position:"relative",overflow:"hidden"},i()(y,"& > ".concat(C,"-mask"),i()({position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:n.colorText,lineHeight:n.lineHeight,background:n.QRCodeMaskBackgroundColor,textAlign:"center"},"& > ".concat(C,"-expired"),{color:n.QRCodeExpiredTextColor})),i()(y,"> canvas",{alignSelf:"stretch",flex:"auto",minWidth:0}),i()(y,"&-icon",{marginBlockEnd:n.marginXS,fontSize:n.controlHeight}),y))),i()(b,"".concat(C,"-borderless"),{borderColor:"transparent"}),b},ie=function(){return{}},d=(0,W.I$)("QRCode",function(N){var n=(0,ee.TS)(N,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"});return G(n)},ie),a=e(785893),Z=function(n){var y=(0,_.ZP)(),b=T()(y,2),C=b[1],l=n.value,t=n.type,c=t===void 0?"canvas":t,f=n.icon,x=f===void 0?"":f,u=n.size,r=u===void 0?160:u,A=n.iconSize,v=A===void 0?40:A,j=n.color,K=j===void 0?C.colorText:j,U=n.errorLevel,R=U===void 0?"M":U,z=n.status,X=z===void 0?"active":z,J=n.bordered,H=J===void 0?!0:J,I=n.onRefresh,Y=n.style,P=n.className,L=n.rootClassName,g=n.prefixCls,B=n.bgColor,M=B===void 0?"transparent":B,re=(0,s.useContext)(w.E_),se=re.getPrefixCls,$=se("qrcode",g),ce=d($),de=T()(ce,2),ue=de[0],me=de[1],fe={src:x,x:void 0,y:void 0,height:v,width:v,excavate:!0},ve={value:l,size:r,level:R,bgColor:M,fgColor:K,style:{width:void 0,height:void 0},imageSettings:x?fe:void 0},ge=(0,k.Z)("QRCode"),he=T()(ge,1),te=he[0];if(!1)var Ce;if(!l)return null;var Se=F()($,P,L,me,i()({},"".concat($,"-borderless"),!H));return ue((0,a.jsxs)("div",{className:Se,style:o()(o()({},Y),{},{width:r,height:r,backgroundColor:M}),children:[X!=="active"&&(0,a.jsxs)("div",{className:"".concat($,"-mask"),children:[X==="loading"&&(0,a.jsx)(V.Z,{}),X==="expired"&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"".concat($,"-expired"),children:te==null?void 0:te.expired}),I&&(0,a.jsx)(ne.ZP,{type:"link",icon:(0,a.jsx)(O(),{}),onClick:I,children:te==null?void 0:te.refresh})]})]}),c==="canvas"?(0,a.jsx)(q.Qd,o()({},ve)):(0,a.jsx)(q.tv,o()({},ve))]}))},h=Z},811834:function(ae,p,e){e.d(p,{Z:function(){return C}});var m=e(238416),o=e.n(m),S=e(242122),i=e.n(S),E=e(627424),T=e.n(E),s=e(670215),Q=e.n(s),O=e(918698),D=e.n(O),F=e(294184),q=e.n(F),ne=e(466940),w=e(667294),k=e(73287),V=e(947170),_=e(548073),oe=e(286665),le=e(986943),W=e(615624);function ee(l,t){return o()({},"".concat(l,", ").concat(l,":hover, ").concat(l,":focus"),{color:t.colorTextDisabled,cursor:"not-allowed"})}function G(l){return{backgroundColor:l.itemSelectedBg,boxShadow:l.boxShadowTertiary}}var ie=i()({overflow:"hidden"},_.vS),d=function(t){var c,f,x,u,r=t.componentCls,A=t.calc(t.controlHeight).sub(t.calc(t.segmentedPadding).mul(2)).equal(),v=t.calc(t.controlHeightLG).sub(t.calc(t.segmentedPadding).mul(2)).equal(),j=t.calc(t.controlHeightSM).sub(t.calc(t.segmentedPadding).mul(2)).equal();return o()({},r,i()(i()(i()(i()({},(0,_.Wf)(t)),{},(u={display:"inline-block",padding:t.segmentedPadding,color:t.itemColor,backgroundColor:t.segmentedBgColor,borderRadius:t.borderRadius,transition:"all ".concat(t.motionDurationMid," ").concat(t.motionEaseInOut)},o()(u,"".concat(r,"-group"),{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"}),o()(u,"&".concat(r,"-rtl"),{direction:"rtl"}),o()(u,"&".concat(r,"-block"),{display:"flex"}),o()(u,"&".concat(r,"-block ").concat(r,"-item"),{flex:1,minWidth:0}),o()(u,"".concat(r,"-item"),(c={position:"relative",textAlign:"center",cursor:"pointer",transition:"color ".concat(t.motionDurationMid," ").concat(t.motionEaseInOut),borderRadius:t.borderRadiusSM,transform:"translateZ(0)","&-selected":i()(i()({},G(t)),{},{color:t.itemSelectedColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:"background-color ".concat(t.motionDurationMid),pointerEvents:"none"}},o()(c,"&:hover:not(".concat(r,"-item-selected):not(").concat(r,"-item-disabled)"),{color:t.itemHoverColor,"&::after":{backgroundColor:t.itemHoverBg}}),o()(c,"&:active:not(".concat(r,"-item-selected):not(").concat(r,"-item-disabled)"),{color:t.itemHoverColor,"&::after":{backgroundColor:t.itemActiveBg}}),o()(c,"&-label",i()({minHeight:A,lineHeight:(0,W.bf)(A),padding:"0 ".concat((0,W.bf)(t.segmentedPaddingHorizontal))},ie)),o()(c,"&-icon + *",{marginInlineStart:t.calc(t.marginSM).div(2).equal()}),o()(c,"&-input",{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}),c)),o()(u,"".concat(r,"-thumb"),i()(i()({},G(t)),{},o()({position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:"".concat((0,W.bf)(t.paddingXXS)," 0"),borderRadius:t.borderRadiusSM},"& ~ ".concat(r,"-item:not(").concat(r,"-item-selected):not(").concat(r,"-item-disabled)::after"),{backgroundColor:"transparent"}))),o()(u,"&".concat(r,"-lg"),(f={borderRadius:t.borderRadiusLG},o()(f,"".concat(r,"-item-label"),{minHeight:v,lineHeight:(0,W.bf)(v),padding:"0 ".concat((0,W.bf)(t.segmentedPaddingHorizontal)),fontSize:t.fontSizeLG}),o()(f,"".concat(r,"-item, ").concat(r,"-thumb"),{borderRadius:t.borderRadius}),f)),o()(u,"&".concat(r,"-sm"),(x={borderRadius:t.borderRadiusSM},o()(x,"".concat(r,"-item-label"),{minHeight:j,lineHeight:(0,W.bf)(j),padding:"0 ".concat((0,W.bf)(t.segmentedPaddingHorizontalSM))}),o()(x,"".concat(r,"-item, ").concat(r,"-thumb"),{borderRadius:t.borderRadiusXS}),x)),u),ee("&-disabled ".concat(r,"-item"),t)),ee("".concat(r,"-item-disabled"),t)),{},o()({},"".concat(r,"-thumb-motion-appear-active"),{transition:"transform ".concat(t.motionDurationSlow," ").concat(t.motionEaseInOut,", width ").concat(t.motionDurationSlow," ").concat(t.motionEaseInOut),willChange:"transform, width"})))},a=function(t){var c=t.colorTextLabel,f=t.colorText,x=t.colorFillSecondary,u=t.colorBgElevated,r=t.colorFill;return{itemColor:c,itemHoverColor:f,itemHoverBg:x,itemSelectedBg:u,itemActiveBg:r,itemSelectedColor:f}},Z=(0,oe.I$)("Segmented",function(l){var t=l.lineWidth,c=l.lineWidthBold,f=l.colorBgLayout,x=l.calc,u=(0,le.TS)(l,{segmentedPadding:c,segmentedBgColor:f,segmentedPaddingHorizontal:x(l.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:x(l.controlPaddingHorizontalSM).sub(t).equal()});return[d(u)]},a),h=e(785893),N=["prefixCls","className","rootClassName","block","options","size","style"],n=["icon","label"];function y(l){return D()(l)==="object"&&!!(l!=null&&l.icon)}var b=w.forwardRef(function(l,t){var c,f=l.prefixCls,x=l.className,u=l.rootClassName,r=l.block,A=l.options,v=A===void 0?[]:A,j=l.size,K=j===void 0?"middle":j,U=l.style,R=Q()(l,N),z=w.useContext(k.E_),X=z.getPrefixCls,J=z.direction,H=z.segmented,I=X("segmented",f),Y=Z(I),P=T()(Y,2),L=P[0],g=P[1],B=(0,V.Z)(K),M=w.useMemo(function(){return v.map(function($){if(y($)){var ce=$.icon,de=$.label,ue=Q()($,n);return i()(i()({},ue),{},{label:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("span",{className:"".concat(I,"-item-icon"),children:ce}),de&&(0,h.jsx)("span",{children:de})]})})}return $})},[v,I]),re=q()(x,u,H==null?void 0:H.className,(c={},o()(c,"".concat(I,"-block"),r),o()(c,"".concat(I,"-sm"),B==="small"),o()(c,"".concat(I,"-lg"),B==="large"),c),g),se=i()(i()({},H==null?void 0:H.style),U);return L((0,h.jsx)(ne.Z,i()(i()({},R),{},{className:re,style:se,options:M,ref:t,prefixCls:I,direction:J})))}),C=b},466940:function(ae,p,e){e.d(p,{Z:function(){return ie}});var m=e(487462),o=e(297685),S=e(700091),i=e(204942),E=e(601413),T=e(671002),s=e(667294),Q=e(294184),O=e.n(Q),D=e(821770),F=e(242550),q=e(898423),ne=e(82225),w=e(908410),k=function(a){return a?{left:a.offsetLeft,right:a.parentElement.clientWidth-a.clientWidth-a.offsetLeft,width:a.clientWidth}:null},V=function(a){return a!==void 0?"".concat(a,"px"):void 0};function _(d){var a=d.prefixCls,Z=d.containerRef,h=d.value,N=d.getValueIndex,n=d.motionName,y=d.onMotionStart,b=d.onMotionEnd,C=d.direction,l=s.useRef(null),t=s.useState(h),c=(0,o.Z)(t,2),f=c[0],x=c[1],u=function(L){var g,B=N(L),M=(g=Z.current)===null||g===void 0?void 0:g.querySelectorAll(".".concat(a,"-item"))[B];return(M==null?void 0:M.offsetParent)&&M},r=s.useState(null),A=(0,o.Z)(r,2),v=A[0],j=A[1],K=s.useState(null),U=(0,o.Z)(K,2),R=U[0],z=U[1];(0,w.Z)(function(){if(f!==h){var P=u(f),L=u(h),g=k(P),B=k(L);x(h),j(g),z(B),P&&L?y():b()}},[h]);var X=s.useMemo(function(){return V(C==="rtl"?-(v==null?void 0:v.right):v==null?void 0:v.left)},[C,v]),J=s.useMemo(function(){return V(C==="rtl"?-(R==null?void 0:R.right):R==null?void 0:R.left)},[C,R]),H=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},I=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},Y=function(){j(null),z(null),b()};return!v||!R?null:s.createElement(ne.ZP,{visible:!0,motionName:n,motionAppear:!0,onAppearStart:H,onAppearActive:I,onVisibleChanged:Y},function(P,L){var g=P.className,B=P.style,M=(0,E.Z)((0,E.Z)({},B),{},{"--thumb-start-left":X,"--thumb-start-width":V(v==null?void 0:v.width),"--thumb-active-left":J,"--thumb-active-width":V(R==null?void 0:R.width)}),re={ref:(0,F.sQ)(l,L),style:M,className:O()("".concat(a,"-thumb"),g)};return s.createElement("div",re)})}var oe=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function le(d){if(typeof d.title!="undefined")return d.title;if((0,T.Z)(d.label)!=="object"){var a;return(a=d.label)===null||a===void 0?void 0:a.toString()}}function W(d){return d.map(function(a){if((0,T.Z)(a)==="object"&&a!==null){var Z=le(a);return(0,E.Z)((0,E.Z)({},a),{},{title:Z})}return{label:a==null?void 0:a.toString(),title:a==null?void 0:a.toString(),value:a}})}var ee=function(a){var Z=a.prefixCls,h=a.className,N=a.disabled,n=a.checked,y=a.label,b=a.title,C=a.value,l=a.onChange,t=function(f){N||l(f,C)};return s.createElement("label",{className:O()(h,(0,i.Z)({},"".concat(Z,"-item-disabled"),N))},s.createElement("input",{className:"".concat(Z,"-item-input"),type:"radio",disabled:N,checked:n,onChange:t}),s.createElement("div",{className:"".concat(Z,"-item-label"),title:b},y))},G=s.forwardRef(function(d,a){var Z,h,N=d.prefixCls,n=N===void 0?"rc-segmented":N,y=d.direction,b=d.options,C=d.disabled,l=d.defaultValue,t=d.value,c=d.onChange,f=d.className,x=f===void 0?"":f,u=d.motionName,r=u===void 0?"thumb-motion":u,A=(0,S.Z)(d,oe),v=s.useRef(null),j=s.useMemo(function(){return(0,F.sQ)(v,a)},[v,a]),K=s.useMemo(function(){return W(b)},[b]),U=(0,D.default)((Z=K[0])===null||Z===void 0?void 0:Z.value,{value:t,defaultValue:l}),R=(0,o.Z)(U,2),z=R[0],X=R[1],J=s.useState(!1),H=(0,o.Z)(J,2),I=H[0],Y=H[1],P=function(B,M){C||(X(M),c==null||c(M))},L=(0,q.Z)(A,["children"]);return s.createElement("div",(0,m.Z)({},L,{className:O()(n,(h={},(0,i.Z)(h,"".concat(n,"-rtl"),y==="rtl"),(0,i.Z)(h,"".concat(n,"-disabled"),C),h),x),ref:j}),s.createElement("div",{className:"".concat(n,"-group")},s.createElement(_,{prefixCls:n,value:z,containerRef:v,motionName:"".concat(n,"-").concat(r),direction:y,getValueIndex:function(B){return K.findIndex(function(M){return M.value===B})},onMotionStart:function(){Y(!0)},onMotionEnd:function(){Y(!1)}}),K.map(function(g){return s.createElement(ee,(0,m.Z)({},g,{key:g.value,prefixCls:n,className:O()(g.className,"".concat(n,"-item"),(0,i.Z)({},"".concat(n,"-item-selected"),g.value===z&&!I)),checked:g.value===z,onChange:P,disabled:!!C||!!g.disabled}))})))});G.displayName="Segmented",G.defaultProps={options:[]};var ie=G}}]);