-
Notifications
You must be signed in to change notification settings - Fork 0
/
39838.7158323a.async.js
1 lines (1 loc) · 8.09 KB
/
39838.7158323a.async.js
1
"use strict";(self.webpackChunkantd=self.webpackChunkantd||[]).push([[39838],{739838:function(Eo,_,t){t.d(_,{Z:function(){return Zo}});var oo=t(238416),e=t.n(oo),to=t(242122),u=t.n(to),no=t(627424),W=t.n(no),ro=t(670215),Y=t.n(ro),O=t(667294),eo=t(664747),ao=t(294184),A=t.n(ao),lo=t(114132),io=t(566440),co=t(909624),J=t(73287),so=t(301192),uo=t(600861),vo=t.n(uo),po=t(740753),mo=t.n(po),K=t(988872),xo=t(824504),go=t(667128),fo=t(46287),l=t(785893);function V(C){return C!=null}var ho=function(o){var p,i,a=o.stepProps,c=o.current,m=o.type,n=o.indicatorsRender,y=o.closeIcon,r=a.prefixCls,P=a.total,x=P===void 0?1:P,B=a.title,s=a.onClose,N=a.onPrev,b=a.onNext,S=a.onFinish,z=a.cover,R=a.description,v=a.nextButtonProps,d=a.prevButtonProps,Z=a.type,H=a.closeIcon,$=Z!=null?Z:m,f=H!=null?H:y,L=f!==!1&&f!==null,D=(0,fo.Z)(L,f,function(E){return(0,l.jsx)("span",{onClick:s,"aria-label":"Close",className:"".concat(r,"-close"),children:E})},(0,l.jsx)(mo(),{className:"".concat(r,"-close-icon")}),!0),I=W()(D,2),h=I[0],X=I[1],M=c===x-1,F=function(){var j;N==null||N(),d==null||(j=d.onClick)===null||j===void 0||j.call(d)},Ho=function(){var j;M?S==null||S():b==null||b(),v==null||(j=v.onClick)===null||j===void 0||j.call(v)},Wo=V(B)?(0,l.jsx)("div",{className:"".concat(r,"-header"),children:(0,l.jsx)("div",{className:"".concat(r,"-title"),children:B})}):null,Ao=V(R)?(0,l.jsx)("div",{className:"".concat(r,"-description"),children:R}):null,$o=V(z)?(0,l.jsx)("div",{className:"".concat(r,"-cover"),children:z}):null,U;n?U=n(c,x):U=vo()(Array.from({length:x}).keys()).map(function(E,j){return(0,l.jsx)("span",{className:A()(j===c&&"".concat(r,"-indicator-active"),"".concat(r,"-indicator"))},E)});var Lo=$==="primary"?"default":"primary",Do={type:"default",ghost:$==="primary"},Xo=(0,xo.Z)("Tour",go.Z.Tour),Fo=W()(Xo,1),T=Fo[0];return(0,l.jsx)("div",{className:"".concat(r,"-content"),children:(0,l.jsxs)("div",{className:"".concat(r,"-inner"),children:[h&&X,$o,Wo,Ao,(0,l.jsxs)("div",{className:"".concat(r,"-footer"),children:[x>1&&(0,l.jsx)("div",{className:"".concat(r,"-indicators"),children:U}),(0,l.jsxs)("div",{className:"".concat(r,"-buttons"),children:[c!==0?(0,l.jsx)(K.ZP,u()(u()(u()({},Do),d),{},{onClick:F,size:"small",className:A()("".concat(r,"-prev-btn"),d==null?void 0:d.className),children:(p=d==null?void 0:d.children)!==null&&p!==void 0?p:T==null?void 0:T.Previous})):null,(0,l.jsx)(K.ZP,u()(u()({type:Lo},v),{},{onClick:Ho,size:"small",className:A()("".concat(r,"-next-btn"),v==null?void 0:v.className),children:(i=v==null?void 0:v.children)!==null&&i!==void 0?i:M?T==null?void 0:T.Finish:T==null?void 0:T.Next}))]})]})]})})},Q=ho,Co=t(974638),w=t(510274),yo=t(548073),G=t(39269),Po=t(286665),bo=t(986943),So=t(807137),g=t(615624),Bo=function(o){var p,i,a,c,m,n=o.componentCls,y=o.lineHeight,r=o.padding,P=o.paddingXS,x=o.borderRadius,B=o.borderRadiusXS,s=o.colorPrimary,N=o.colorText,b=o.colorFill,S=o.indicatorHeight,z=o.indicatorWidth,R=o.boxShadowTertiary,v=o.tourZIndexPopup,d=o.fontSize,Z=o.colorBgElevated,H=o.fontWeightStrong,$=o.marginXS,f=o.colorTextLightSolid,L=o.tourBorderRadius,D=o.colorWhite,I=o.primaryNextBtnHoverBg,h=o.closeBtnSize,X=o.motionDurationSlow,M=o.antCls,F=o.primaryPrevBtnBg;return[(m={},e()(m,n,u()(u()({},(0,yo.Wf)(o)),{},(c={color:N,position:"absolute",zIndex:v,display:"block",visibility:"visible",fontSize:d,lineHeight:y,width:520,"--antd-arrow-background-color":Z,"&-pure":{maxWidth:"100%",position:"relative"}},e()(c,"&".concat(n,"-hidden"),{display:"none"}),e()(c,"".concat(n,"-content"),{position:"relative"}),e()(c,"".concat(n,"-inner"),(i={textAlign:"start",textDecoration:"none",borderRadius:L,boxShadow:R,position:"relative",backgroundColor:Z,border:"none",backgroundClip:"padding-box"},e()(i,"".concat(n,"-close"),{position:"absolute",top:r,insetInlineEnd:r,color:o.colorIcon,outline:"none",width:h,height:h,borderRadius:o.borderRadiusSM,transition:"background-color ".concat(o.motionDurationMid,", color ").concat(o.motionDurationMid),display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:o.colorIconHover,backgroundColor:o.closeBtnHoverBg}}),e()(i,"".concat(n,"-cover"),{textAlign:"center",padding:"".concat((0,g.bf)(o.calc(r).add(h).add(P).equal())," ").concat((0,g.bf)(r)," 0"),img:{width:"100%"}}),e()(i,"".concat(n,"-header"),e()({padding:"".concat((0,g.bf)(r)," ").concat((0,g.bf)(r)," ").concat((0,g.bf)(P))},"".concat(n,"-title"),{lineHeight:y,fontSize:d,fontWeight:H})),e()(i,"".concat(n,"-description"),{padding:"0 ".concat((0,g.bf)(r)),lineHeight:y,wordWrap:"break-word"}),e()(i,"".concat(n,"-footer"),(p={padding:"".concat((0,g.bf)(P)," ").concat((0,g.bf)(r)," ").concat((0,g.bf)(r)),textAlign:"end",borderRadius:"0 0 ".concat((0,g.bf)(B)," ").concat((0,g.bf)(B)),display:"flex"},e()(p,"".concat(n,"-indicators"),e()({display:"inline-block"},"".concat(n,"-indicator"),{width:z,height:S,display:"inline-block",borderRadius:"50%",background:b,"&:not(:last-child)":{marginInlineEnd:S},"&-active":{background:s}})),e()(p,"".concat(n,"-buttons"),e()({marginInlineStart:"auto"},"".concat(M,"-btn"),{marginInlineStart:$})),p)),i)),e()(c,"".concat(n,"-primary, &").concat(n,"-primary"),e()({"--antd-arrow-background-color":s},"".concat(n,"-inner"),(a={color:f,textAlign:"start",textDecoration:"none",backgroundColor:s,borderRadius:x,boxShadow:R},e()(a,"".concat(n,"-close"),{color:f}),e()(a,"".concat(n,"-indicators"),e()({},"".concat(n,"-indicator"),{background:F,"&-active":{background:f}})),e()(a,"".concat(n,"-prev-btn"),{color:f,borderColor:F,backgroundColor:s,"&:hover":{backgroundColor:F,borderColor:"transparent"}}),e()(a,"".concat(n,"-next-btn"),{color:s,borderColor:"transparent",background:D,"&:hover":{background:I}}),a))),c))),e()(m,"".concat(n,"-mask"),e()({},"".concat(n,"-placeholder-animated"),{transition:"all ".concat(X)})),e()(m,["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(","),e()({},"".concat(n,"-inner"),{borderRadius:o.min(L,G.qN)})),m),(0,G.ZP)(o,"var(--antd-arrow-background-color)")]},No=function(o){return u()(u()({zIndexPopup:o.zIndexPopupBase+70,closeBtnSize:o.fontSize*o.lineHeight,primaryPrevBtnBg:new w.C(o.colorTextLightSolid).setAlpha(.15).toRgbString(),closeBtnHoverBg:o.wireframe?"transparent":o.colorFillContent,primaryNextBtnHoverBg:new w.C(o.colorBgTextHover).onBackground(o.colorWhite).toRgbString()},(0,G.wZ)({contentRadius:o.borderRadiusLG,limitVerticalRadius:!0})),(0,So.w)(o))},q=(0,Po.I$)("Tour",function(C){var o=C.borderRadiusLG,p=(0,bo.TS)(C,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:o});return[Bo(p)]},No),Ro=t(835981),Io=["prefixCls","current","total","className","style","type"],To=function(o){var p=o.prefixCls,i=o.current,a=i===void 0?0:i,c=o.total,m=c===void 0?6:c,n=o.className,y=o.style,r=o.type,P=Y()(o,Io),x=O.useContext(J.E_),B=x.getPrefixCls,s=B("tour",p),N=q(s),b=W()(N,2),S=b[0],z=b[1];return S((0,l.jsx)(Co.t5,{prefixCls:s,hashId:z,className:A()(n,"".concat(s,"-pure"),r&&"".concat(s,"-").concat(r)),style:y,children:(0,l.jsx)(Q,{stepProps:u()(u()({},P),{},{prefixCls:s,total:m}),current:a,type:r})}))},jo=(0,Ro.i)(To),zo=["prefixCls","type","rootClassName","indicatorsRender","steps"],k=function(o){var p=o.prefixCls,i=o.type,a=o.rootClassName,c=o.indicatorsRender,m=o.steps,n=Y()(o,zo),y=(0,O.useContext)(J.E_),r=y.getPrefixCls,P=y.direction,x=r("tour",p),B=q(x),s=W()(B,2),N=s[0],b=s[1],S=(0,so.ZP)(),z=W()(S,2),R=z[1],v=(0,O.useMemo)(function(){return m==null?void 0:m.map(function(I){var h;return u()(u()({},I),{},{className:A()(I.className,e()({},"".concat(x,"-primary"),((h=I.type)!==null&&h!==void 0?h:i)==="primary"))})})},[m,i]),d=(0,io.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:R.marginXXS,arrowWidth:R.sizePopupArrow,borderRadius:R.borderRadius}),Z=A()(e()({},"".concat(x,"-rtl"),P==="rtl"),b,a),H=function(h,X){return(0,l.jsx)(Q,{type:i,stepProps:h,current:X,indicatorsRender:c})},$=(0,lo.Cn)("Tour",n.zIndex),f=W()($,2),L=f[0],D=f[1];return N((0,l.jsx)(co.Z.Provider,{value:D,children:(0,l.jsx)(eo.Z,u()(u()({},n),{},{zIndex:L,rootClassName:Z,prefixCls:x,animated:!0,renderPanel:H,builtinPlacements:d,steps:v}))}))};k._InternalPanelDoNotUseOrYouWillBeFired=jo;var Zo=k}}]);