You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
10 KiB
1 line
10 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[88511],{85673:function(e,t,r){r.d(t,{Z:function(){return N}});var n=r(94184),o=r.n(n),i=r(37419),a=r(1337),l=r(67294),s=r(96159),c=r(53124),d=r(15558),p=r(56153);const m=e=>{let{children:t}=e;const{getPrefixCls:r}=l.useContext(c.E_),n=r("breadcrumb");return l.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};m.__ANT_BREADCRUMB_SEPARATOR=!0;var u=m,g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};function f(e,t,r,n){if(null==r)return null;const{className:i,onClick:s}=t,c=g(t,["className","onClick"]),d=Object.assign(Object.assign({},(0,a.Z)(c,{data:!0,aria:!0})),{onClick:s});return void 0!==n?l.createElement("a",Object.assign({},d,{className:o()(`${e}-link`,i),href:n}),r):l.createElement("span",Object.assign({},d,{className:o()(`${e}-link`,i)}),r)}function b(e,t){return(r,n,o,i,a)=>{if(t)return t(r,n,o,i);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const r=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${r})`,"g"),((e,r)=>t[r]||e))}(r,n);return f(e,r,l,a)}}var h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const y=e=>{const{prefixCls:t,separator:r="/",children:n,menu:o,overlay:i,dropdownProps:a,href:s}=e;const c=(e=>{if(o||i){const r=Object.assign({},a);if(o){const e=o||{},{items:t}=e,n=h(e,["items"]);r.menu=Object.assign(Object.assign({},n),{items:null==t?void 0:t.map(((e,t)=>{var{key:r,title:n,label:o,path:i}=e,a=h(e,["key","title","label","path"]);let c=null!=o?o:n;return i&&(c=l.createElement("a",{href:`${s}${i}`},c)),Object.assign(Object.assign({},a),{key:null!=r?r:t,label:c})}))})}else i&&(r.overlay=i);return l.createElement(p.Z,Object.assign({placement:"bottom"},r),l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(d.Z,null)))}return e})(n);return null!=c?l.createElement(l.Fragment,null,l.createElement("li",null,c),r&&l.createElement(u,null,r)):null},O=e=>{const{prefixCls:t,children:r,href:n}=e,o=h(e,["prefixCls","children","href"]),{getPrefixCls:i}=l.useContext(c.E_),a=i("breadcrumb",t);return l.createElement(y,Object.assign({},o,{prefixCls:a}),f(a,o,r,n))};O.__ANT_BREADCRUMB_ITEM=!0;var v=O,x=r(14747),$=r(67968),S=r(45503);const j=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,x.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[r]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,x.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${r} + span,\n > ${r} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${r}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var C=(0,$.Z)("Breadcrumb",(e=>{const t=(0,S.TS)(e,{});return[j(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),k=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};function w(e){const{breadcrumbName:t,children:r}=e,n=k(e,["breadcrumbName","children"]),o=Object.assign({title:t},n);return r&&(o.menu={items:r.map((e=>{var{breadcrumbName:t}=e,r=k(e,["breadcrumbName"]);return Object.assign(Object.assign({},r),{title:t})}))}),o}var E=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const z=e=>{const{prefixCls:t,separator:r="/",style:n,className:d,rootClassName:p,routes:m,items:g,children:f,itemRender:h,params:O={}}=e,v=E(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:x,direction:$,breadcrumb:S}=l.useContext(c.E_);let j;const k=x("breadcrumb",t),[z,N]=C(k),I=function(e,t){return(0,l.useMemo)((()=>e||(t?t.map(w):null)),[e,t])}(g,m);const P=b(k,h);if(I&&I.length>0){const e=[],t=g||m;j=I.map(((n,o)=>{const{path:i,key:s,type:c,menu:d,overlay:p,onClick:m,className:g,separator:f,dropdownProps:b}=n,h=((e,t)=>{if(void 0===t)return t;let r=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{r=r.replace(`:${t}`,e[t])})),r})(O,i);void 0!==h&&e.push(h);const v=null!=s?s:o;if("separator"===c)return l.createElement(u,{key:v},f);const x={},$=o===I.length-1;d?x.menu=d:p&&(x.overlay=p);let{href:S}=n;return e.length&&void 0!==h&&(S=`#/${e.join("/")}`),l.createElement(y,Object.assign({key:v},x,(0,a.Z)(n,{data:!0,aria:!0}),{className:g,dropdownProps:b,href:S,separator:$?"":r,onClick:m,prefixCls:k}),P(n,O,t,e,S))}))}else if(f){const e=(0,i.Z)(f).length;j=(0,i.Z)(f).map(((t,n)=>{if(!t)return t;const o=n===e-1;return(0,s.Tm)(t,{separator:o?"":r,key:n})}))}const M=o()(k,null==S?void 0:S.className,{[`${k}-rtl`]:"rtl"===$},d,p,N),T=Object.assign(Object.assign({},null==S?void 0:S.style),n);return z(l.createElement("nav",Object.assign({className:M,style:T},v),l.createElement("ol",null,j)))};z.Item=v,z.Separator=u;var N=z},96074:function(e,t,r){r.d(t,{Z:function(){return u}});var n=r(94184),o=r.n(n),i=r(67294),a=r(53124),l=r(14747),s=r(67968),c=r(45503);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${o}px solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}})}};var p=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),m=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};var u=e=>{const{getPrefixCls:t,direction:r,divider:n}=i.useContext(a.E_),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:d,className:u,rootClassName:g,children:f,dashed:b,plain:h,style:y}=e,O=m(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",l),[x,$]=p(v),S=c.length>0?`-${c}`:c,j=!!f,C="left"===c&&null!=d,k="right"===c&&null!=d,w=o()(v,null==n?void 0:n.className,$,`${v}-${s}`,{[`${v}-with-text`]:j,[`${v}-with-text${S}`]:j,[`${v}-dashed`]:!!b,[`${v}-plain`]:!!h,[`${v}-rtl`]:"rtl"===r,[`${v}-no-default-orientation-margin-left`]:C,[`${v}-no-default-orientation-margin-right`]:k},u,g),E=i.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),z=Object.assign(Object.assign({},C&&{marginLeft:E}),k&&{marginRight:E});return x(i.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},null==n?void 0:n.style),y)},O,{role:"separator"}),f&&"vertical"!==s&&i.createElement("span",{className:`${v}-inner-text`,style:z},f)))}}}]); |