@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
1 lines • 15.7 kB
JavaScript
;(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8569],{24126:function(t,e,n){n.d(e,{Z:function(){return l}});var i=n(1413),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"}}]},name:"google",theme:"outlined"},a=n(91146),l=o.forwardRef(function(t,e){return o.createElement(a.Z,(0,i.Z)((0,i.Z)({},t),{},{ref:e,icon:r}))})},96074:function(t,e,n){n.d(e,{Z:function(){return divider}});var i=n(67294),o=n(93967),r=n.n(o),a=n(53124),l=n(861),d=n(14747),c=n(83559),s=n(83262);let genSharedDividerStyle=t=>{let{componentCls:e,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:o,textPaddingInline:r,orientationMargin:a,verticalMarginInline:c}=t;return{[e]:Object.assign(Object.assign({},(0,d.Wf)(t)),{borderBlockStart:`${(0,l.unit)(o)} solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,l.unit)(o)} solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,l.unit)(t.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,l.unit)(t.dividerHorizontalWithTextGutterMargin)} 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,l.unit)(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${e}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${(0,l.unit)(o)} 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:i,borderStyle:"dotted",borderWidth:`${(0,l.unit)(o)} 0 0`},[`&-horizontal${e}-with-text${e}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${e}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,c.I$)("Divider",t=>{let e=(0,s.mergeToken)(t,{dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG,sizePaddingEdgeHorizontal:0});return[genSharedDividerStyle(e)]},t=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:t.marginXS}),{unitless:{orientationMargin:!0}}),__rest=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)0>e.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]]);return n},divider=t=>{let{getPrefixCls:e,direction:n,divider:o}=i.useContext(a.E_),{prefixCls:l,type:d="horizontal",orientation:c="center",orientationMargin:s,className:m,rootClassName:g,children:h,dashed:b,variant:f="solid",plain:v,style:p}=t,$=__rest(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),S=e("divider",l),[w,y,x]=u(S),O=!!h,k="left"===c&&null!=s,E="right"===c&&null!=s,C=r()(S,null==o?void 0:o.className,y,x,`${S}-${d}`,{[`${S}-with-text`]:O,[`${S}-with-text-${c}`]:O,[`${S}-dashed`]:!!b,[`${S}-${f}`]:"solid"!==f,[`${S}-plain`]:!!v,[`${S}-rtl`]:"rtl"===n,[`${S}-no-default-orientation-margin-left`]:k,[`${S}-no-default-orientation-margin-right`]:E},m,g),I=i.useMemo(()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s,[s]),j=Object.assign(Object.assign({},k&&{marginLeft:I}),E&&{marginRight:I});return w(i.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},null==o?void 0:o.style),p)},$,{role:"separator"}),h&&"vertical"!==d&&i.createElement("span",{className:`${S}-inner-text`,style:j},h)))}},92783:function(t,e,n){n.d(e,{Z:function(){return I}});var i=n(67294),o=n(93967),r=n.n(o),a=n(87462),l=n(97685),d=n(91),c=n(4942),s=n(1413),u=n(71002),m=n(21770),g=n(98423),h=n(42550),b=n(29372),f=n(8410),calcThumbStyle=function(t,e){if(!t)return null;var n={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return e?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},toPX=function(t){return void 0!==t?"".concat(t,"px"):void 0};function MotionThumb(t){var e=t.prefixCls,n=t.containerRef,o=t.value,a=t.getValueIndex,d=t.motionName,c=t.onMotionStart,u=t.onMotionEnd,m=t.direction,g=t.vertical,v=void 0!==g&&g,p=i.useRef(null),$=i.useState(o),S=(0,l.Z)($,2),w=S[0],y=S[1],findValueElement=function(t){var i,o=a(t),r=null===(i=n.current)||void 0===i?void 0:i.querySelectorAll(".".concat(e,"-item"))[o];return(null==r?void 0:r.offsetParent)&&r},x=i.useState(null),O=(0,l.Z)(x,2),k=O[0],E=O[1],C=i.useState(null),I=(0,l.Z)(C,2),j=I[0],z=I[1];(0,f.Z)(function(){if(w!==o){var t=findValueElement(w),e=findValueElement(o),n=calcThumbStyle(t,v),i=calcThumbStyle(e,v);y(o),E(n),z(i),t&&e?c():u()}},[o]);var M=i.useMemo(function(){if(v){var t;return toPX(null!==(t=null==k?void 0:k.top)&&void 0!==t?t:0)}return"rtl"===m?toPX(-(null==k?void 0:k.right)):toPX(null==k?void 0:k.left)},[v,m,k]),P=i.useMemo(function(){if(v){var t;return toPX(null!==(t=null==j?void 0:j.top)&&void 0!==t?t:0)}return"rtl"===m?toPX(-(null==j?void 0:j.right)):toPX(null==j?void 0:j.left)},[v,m,j]);return k&&j?i.createElement(b.default,{visible:!0,motionName:d,motionAppear:!0,onAppearStart:function(){return v?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return v?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){E(null),z(null),u()}},function(t,n){var o=t.className,a=t.style,l=(0,s.Z)((0,s.Z)({},a),{},{"--thumb-start-left":M,"--thumb-start-width":toPX(null==k?void 0:k.width),"--thumb-active-left":P,"--thumb-active-width":toPX(null==j?void 0:j.width),"--thumb-start-top":M,"--thumb-start-height":toPX(null==k?void 0:k.height),"--thumb-active-top":P,"--thumb-active-height":toPX(null==j?void 0:j.height)}),d={ref:(0,h.sQ)(p,n),style:l,className:r()("".concat(e,"-thumb"),o)};return i.createElement("div",d)}):null}var v=["prefixCls","direction","vertical","options","disabled","defaultValue","value","onChange","className","motionName"],InternalSegmentedOption=function(t){var e=t.prefixCls,n=t.className,o=t.disabled,a=t.checked,l=t.label,d=t.title,s=t.value,u=t.onChange;return i.createElement("label",{className:r()(n,(0,c.Z)({},"".concat(e,"-item-disabled"),o))},i.createElement("input",{className:"".concat(e,"-item-input"),type:"radio",disabled:o,checked:a,onChange:function(t){o||u(t,s)}}),i.createElement("div",{className:"".concat(e,"-item-label"),title:d,role:"option","aria-selected":a},l))},p=i.forwardRef(function(t,e){var n,o,b=t.prefixCls,f=void 0===b?"rc-segmented":b,p=t.direction,$=t.vertical,S=t.options,w=void 0===S?[]:S,y=t.disabled,x=t.defaultValue,O=t.value,k=t.onChange,E=t.className,C=void 0===E?"":E,I=t.motionName,j=void 0===I?"thumb-motion":I,z=(0,d.Z)(t,v),M=i.useRef(null),P=i.useMemo(function(){return(0,h.sQ)(M,e)},[M,e]),H=i.useMemo(function(){return w.map(function(t){if("object"===(0,u.Z)(t)&&null!==t){var e=function(t){if(void 0!==t.title)return t.title;if("object"!==(0,u.Z)(t.label)){var e;return null===(e=t.label)||void 0===e?void 0:e.toString()}}(t);return(0,s.Z)((0,s.Z)({},t),{},{title:e})}return{label:null==t?void 0:t.toString(),title:null==t?void 0:t.toString(),value:t}})},[w]),N=(0,m.Z)(null===(n=H[0])||void 0===n?void 0:n.value,{value:O,defaultValue:x}),Z=(0,l.Z)(N,2),R=Z[0],B=Z[1],X=i.useState(!1),D=(0,l.Z)(X,2),T=D[0],_=D[1],handleChange=function(t,e){y||(B(e),null==k||k(e))},W=(0,g.Z)(z,["children"]);return i.createElement("div",(0,a.Z)({role:"listbox","aria-label":"segmented control"},W,{className:r()(f,(o={},(0,c.Z)(o,"".concat(f,"-rtl"),"rtl"===p),(0,c.Z)(o,"".concat(f,"-disabled"),y),(0,c.Z)(o,"".concat(f,"-vertical"),$),o),C),ref:P}),i.createElement("div",{className:"".concat(f,"-group")},i.createElement(MotionThumb,{vertical:$,prefixCls:f,value:R,containerRef:M,motionName:"".concat(f,"-").concat(j),direction:p,getValueIndex:function(t){return H.findIndex(function(e){return e.value===t})},onMotionStart:function(){_(!0)},onMotionEnd:function(){_(!1)}}),H.map(function(t){return i.createElement(InternalSegmentedOption,(0,a.Z)({},t,{key:t.value,prefixCls:f,className:r()(t.className,"".concat(f,"-item"),(0,c.Z)({},"".concat(f,"-item-selected"),t.value===R&&!T)),checked:t.value===R,onChange:handleChange,disabled:!!y||!!t.disabled}))})))}),$=n(53124),S=n(98675),w=n(861),y=n(14747),x=n(83559),O=n(83262);function getItemDisabledStyle(t,e){return{[`${t}, ${t}:hover, ${t}:focus`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}}function getItemSelectedStyle(t){return{backgroundColor:t.itemSelectedBg,boxShadow:t.boxShadowTertiary}}let k=Object.assign({overflow:"hidden"},y.vS),genSegmentedStyle=t=>{let{componentCls:e}=t,n=t.calc(t.controlHeight).sub(t.calc(t.trackPadding).mul(2)).equal(),i=t.calc(t.controlHeightLG).sub(t.calc(t.trackPadding).mul(2)).equal(),o=t.calc(t.controlHeightSM).sub(t.calc(t.trackPadding).mul(2)).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,y.Wf)(t)),{display:"inline-block",padding:t.trackPadding,color:t.itemColor,background:t.trackBg,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,[`${e}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${e}-rtl`]:{direction:"rtl"},[`&${e}-vertical`]:{[`${e}-group`]:{flexDirection:"column"},[`${e}-thumb`]:{width:"100%",height:0,padding:`0 ${(0,w.unit)(t.paddingXXS)}`}},[`&${e}-block`]:{display:"flex"},[`&${e}-block ${e}-item`]:{flex:1,minWidth:0},[`${e}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${t.motionDurationMid} ${t.motionEaseInOut}`,borderRadius:t.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},getItemSelectedStyle(t)),{color:t.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${t.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${e}-item-selected):not(${e}-item-disabled)`]:{color:t.itemHoverColor,"&::after":{backgroundColor:t.itemHoverBg}},[`&:active:not(${e}-item-selected):not(${e}-item-disabled)`]:{color:t.itemHoverColor,"&::after":{backgroundColor:t.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:(0,w.unit)(n),padding:`0 ${(0,w.unit)(t.segmentedPaddingHorizontal)}`},k),"&-icon + *":{marginInlineStart:t.calc(t.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${e}-thumb`]:Object.assign(Object.assign({},getItemSelectedStyle(t)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,w.unit)(t.paddingXXS)} 0`,borderRadius:t.borderRadiusSM,transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOut}, height ${t.motionDurationSlow} ${t.motionEaseInOut}`,[`& ~ ${e}-item:not(${e}-item-selected):not(${e}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${e}-lg`]:{borderRadius:t.borderRadiusLG,[`${e}-item-label`]:{minHeight:i,lineHeight:(0,w.unit)(i),padding:`0 ${(0,w.unit)(t.segmentedPaddingHorizontal)}`,fontSize:t.fontSizeLG},[`${e}-item, ${e}-thumb`]:{borderRadius:t.borderRadius}},[`&${e}-sm`]:{borderRadius:t.borderRadiusSM,[`${e}-item-label`]:{minHeight:o,lineHeight:(0,w.unit)(o),padding:`0 ${(0,w.unit)(t.segmentedPaddingHorizontalSM)}`},[`${e}-item, ${e}-thumb`]:{borderRadius:t.borderRadiusXS}}}),getItemDisabledStyle(`&-disabled ${e}-item`,t)),getItemDisabledStyle(`${e}-item-disabled`,t)),{[`${e}-thumb-motion-appear-active`]:{transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOut}, width ${t.motionDurationSlow} ${t.motionEaseInOut}`,willChange:"transform, width"}})}};var E=(0,x.I$)("Segmented",t=>{let{lineWidth:e,calc:n}=t,i=(0,O.mergeToken)(t,{segmentedPaddingHorizontal:n(t.controlPaddingHorizontal).sub(e).equal(),segmentedPaddingHorizontalSM:n(t.controlPaddingHorizontalSM).sub(e).equal()});return[genSegmentedStyle(i)]},t=>{let{colorTextLabel:e,colorText:n,colorFillSecondary:i,colorBgElevated:o,colorFill:r,lineWidthBold:a,colorBgLayout:l}=t;return{trackPadding:a,trackBg:l,itemColor:e,itemHoverColor:n,itemHoverBg:i,itemSelectedBg:o,itemActiveBg:r,itemSelectedColor:n}}),__rest=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)0>e.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]]);return n};let C=i.forwardRef((t,e)=>{let{prefixCls:n,className:o,rootClassName:a,block:l,options:d=[],size:c="middle",style:s,vertical:u}=t,m=__rest(t,["prefixCls","className","rootClassName","block","options","size","style","vertical"]),{getPrefixCls:g,direction:h,segmented:b}=i.useContext($.E_),f=g("segmented",n),[v,w,y]=E(f),x=(0,S.Z)(c),O=i.useMemo(()=>d.map(t=>{if("object"==typeof t&&(null==t?void 0:t.icon)){let{icon:e,label:n}=t,o=__rest(t,["icon","label"]);return Object.assign(Object.assign({},o),{label:i.createElement(i.Fragment,null,i.createElement("span",{className:`${f}-item-icon`},e),n&&i.createElement("span",null,n))})}return t}),[d,f]),k=r()(o,a,null==b?void 0:b.className,{[`${f}-block`]:l,[`${f}-sm`]:"small"===x,[`${f}-lg`]:"large"===x,[`${f}-vertical`]:u},w,y),C=Object.assign(Object.assign({},null==b?void 0:b.style),s);return v(i.createElement(p,Object.assign({},m,{className:k,style:C,options:O,ref:e,prefixCls:f,direction:h,vertical:u})))});var I=C}}]);