1"use strict";(self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[3311],{4031(n,e,i){i.d(e,{A:()=>o});var a=i(82195),t=i(39471);const l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var c=i(72812),r=function(n,e){return t.createElement(c.A,(0,a.A)({},n,{ref:e,icon:l}))};const o=t.forwardRef(r)},62945(n,e,i){i.d(e,{A:()=>O});var a=i(39471),t=i(91492),l=i(87073),c=i.n(l),r=i(82195),o=i(53718),d=i(96046),s=i(30462),h=i(39474),u=i(83282),g=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],m=a.forwardRef(function(n,e){var i,t=n.prefixCls,l=void 0===t?"rc-switch":t,m=n.className,$=n.checked,k=n.defaultChecked,p=n.disabled,S=n.loadingIcon,b=n.checkedChildren,I=n.unCheckedChildren,w=n.onClick,v=n.onChange,f=n.onKeyDown,C=(0,s.A)(n,g),M=(0,h.A)(!1,{value:$,defaultValue:k}),y=(0,d.A)(M,2),A=y[0],E=y[1];function z(n,e){var i=A;return p||(E(i=n),null==v||v(i,e)),i}var x=c()(l,m,(i={},(0,o.A)(i,"".concat(l,"-checked"),A),(0,o.A)(i,"".concat(l,"-disabled"),p),i));return a.createElement("button",(0,r.A)({},C,{type:"button",role:"switch","aria-checked":A,disabled:p,className:x,ref:e,onKeyDown:function(n){n.which===u.A.LEFT?z(!1,n):n.which===u.A.RIGHT&&z(!0,n),null==f||f(n)},onClick:function(n){var e=z(!A,n);null==w||w(e,n)}}),S,a.createElement("span",{className:"".concat(l,"-inner")},a.createElement("span",{className:"".concat(l,"-inner-checked")},b),a.createElement("span",{className:"".concat(l,"-inner-unchecked")},I)))});m.displayName="Switch";const $=m;var k=i(74569),p=i(11092),S=i(25564),b=i(47374),I=i(30348),w=i(19379),v=i(93042),f=i(67403),C=i(85391);const M=n=>{const{componentCls:e,trackHeightSM:i,trackPadding:a,trackMinWidthSM:t,innerMinMarginSM:l,innerMaxMarginSM:c,handleSizeSM:r,calc:o}=n,d=`${e}-inner`,s=(0,I.zA)(o(r).add(o(a).mul(2)).equal()),h=(0,I.zA)(o(c).mul(2).equal());return{[e]:{[`&${e}-small`]:{minWidth:t,height:i,lineHeight:(0,I.zA)(i),[`${e}-inner`]:{paddingInlineStart:c,paddingInlineEnd:l,[`${d}-checked, ${d}-unchecked`]:{minHeight:i},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${h})`,marginInlineEnd:`calc(100% - ${s} + ${h})`},[`${d}-unchecked`]:{marginTop:o(i).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${e}-handle`]:{width:r,height:r},[`${e}-loading-icon`]:{top:o(o(r).sub(n.switchLoadingIconSize)).div(2).equal(),fontSize:n.switchLoadingIconSize},[`&${e}-checked`]:{[`${e}-inner`]:{paddingInlineStart:l,paddingInlineEnd:c,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${h})`,marginInlineEnd:`calc(-100% + ${s} - ${h})`}},[`${e}-handle`]:{insetInlineStart:`calc(100% - ${(0,I.zA)(o(r).add(a).equal())})`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:o(n.marginXXS).div(2).equal(),marginInlineEnd:o(n.marginXXS).mul(-1).div(2).equal()}},[`&${e}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:o(n.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:o(n.marginXXS).div(2).equal()}}}}}}},y=n=>{const{componentCls:e,handleSize:i,calc:a}=n;return{[e]:{[`${e}-loading-icon${n.iconCls}`]:{position:"relative",top:a(a(i).sub(n.fontSize)).div(2).equal(),color:n.switchLoadingIconColor,verticalAlign:"top"},[`&${e}-checked ${e}-loading-icon`]:{color:n.switchColor}}}},A=n=>{const{componentCls:e,trackPadding:i,handleBg:a,handleShadow:t,handleSize:l,calc:c}=n,r=`${e}-handle`;return{[e]:{[r]:{position:"absolute",top:i,insetInlineStart:i,width:l,height:l,transition:`all ${n.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:a,borderRadius:c(l).div(2).equal(),boxSh
1adow:t,transition:`all ${n.switchDuration} ease-in-out`,content:'""'}},[`&${e}-checked ${r}`]:{insetInlineStart:`calc(100% - ${(0,I.zA)(c(l).add(i).equal())})`},[`&:not(${e}-disabled):active`]:{[`${r}::before`]:{insetInlineEnd:n.switchHandleActiveInset,insetInlineStart:0},[`&${e}-checked ${r}::before`]:{insetInlineEnd:0,insetInlineStart:n.switchHandleActiveInset}}}}},E=n=>{const{componentCls:e,trackHeight:i,trackPadding:a,innerMinMargin:t,innerMaxMargin:l,handleSize:c,calc:r}=n,o=`${e}-inner`,d=(0,I.zA)(r(c).add(r(a).mul(2)).equal()),s=(0,I.zA)(r(l).mul(2).equal());return{[e]:{[o]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:l,paddingInlineEnd:t,transition:`padding-inline-start ${n.switchDuration} ease-in-out, padding-inline-end ${n.switchDuration} ease-in-out`,[`${o}-checked, ${o}-unchecked`]:{display:"block",color:n.colorTextLightSolid,fontSize:n.fontSizeSM,transition:`margin-inline-start ${n.switchDuration} ease-in-out, margin-inline-end ${n.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:i},[`${o}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${s})`,marginInlineEnd:`calc(100% - ${d} + ${s})`},[`${o}-unchecked`]:{marginTop:r(i).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${e}-checked ${o}`]:{paddingInlineStart:t,paddingInlineEnd:l,[`${o}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${o}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${s})`,marginInlineEnd:`calc(-100% + ${d} - ${s})`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${o}`]:{[`${o}-unchecked`]:{marginInlineStart:r(a).mul(2).equal(),marginInlineEnd:r(a).mul(-1).mul(2).equal()}},[`&${e}-checked ${o}`]:{[`${o}-checked`]:{marginInlineStart:r(a).mul(-1).mul(2).equal(),marginInlineEnd:r(a).mul(2).equal()}}}}}},z=n=>{const{componentCls:e,trackHeight:i,trackMinWidth:a}=n;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.dF)(n)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:a,height:i,lineHeight:(0,I.zA)(i),verticalAlign:"middle",background:n.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${n.motionDurationMid}`,userSelect:"none",[`&:hover:not(${e}-disabled)`]:{background:n.colorTextTertiary}}),(0,v.K8)(n)),{[`&${e}-checked`]:{background:n.switchColor,[`&:hover:not(${e}-disabled)`]:{background:n.colorPrimaryHover}},[`&${e}-loading, &${e}-disabled`]:{cursor:"not-allowed",opacity:n.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${e}-rtl`]:{direction:"rtl"}})}},x=(0,f.OF)("Switch",n=>{const e=(0,C.oX)(n,{switchDuration:n.motionDurationMid,switchColor:n.colorPrimary,switchDisabledOpacity:n.opacityLoading,switchLoadingIconSize:n.calc(n.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${n.opacityLoading})`,switchHandleActiveInset:"-30%"});return[z(e),E(e),A(e),y(e),M(e)]},n=>{const{fontSize:e,lineHeight:i,controlHeight:a,colorWhite:t}=n,l=e*i,c=a/2,r=l-4,o=c-4;return{trackHeight:l,trackHeightSM:c,trackMinWidth:2*r+8,trackMinWidthSM:2*o+4,trackPadding:2,handleBg:t,handleSize:r,handleSizeSM:o,handleShadow:`0 2px 4px 0 ${new w.Y("#00230b").setA(.2).toRgbString()}`,innerMinMargin:r/2,innerMaxMargin:r+2+4,innerMinMarginSM:o/2,innerMaxMarginSM:o+2+4}});const H=a.forwardRef((n,e)=>{const{prefixCls:i,size:l,disabled:r,loading:o,className:d,rootClassName:s,style:u,checked:g,value:m,defaultChecked:I,defaultValue:w,onChange:v}=n,f=function(n,e){var i={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&e.indexOf(a)<0&&(i[a]=n[a]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(a=Object.getOwnPropertySymbols(n);t<a.length;t++)e.indexOf(a[t])<0&&Object.prototype.propertyIsEnumerable.call(n,a[t])&&(i[a[t]]=n[a[t]])}return i}(n,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[C,M]=(0,h.A)(!1,{value:null!=g?g:m,defaultValue:null!=I?I:w}),{getPrefixCls:y,direction:A,switch:E}=a.useContext(p.QO),z=a.useContext(S.A),H=(null!=r?r:z)||o,q=y("switch",i),O=a.createElement("div",{className:`${q}-handle`},o&&a.createElement(t.A,{className:`${q}-loading-icon`}
1)),[N,D,j]=x(q),P=(0,b.A)(l),T=c()(null==E?void 0:E.className,{[`${q}-small`]:"small"===P,[`${q}-loading`]:o,[`${q}-rtl`]:"rtl"===A},d,s,D,j),L=Object.assign(Object.assign({},null==E?void 0:E.style),u);return N(a.createElement(k.A,{component:"Switch",disabled:H},a.createElement($,Object.assign({},f,{checked:C,onChange:(...n)=>{M(n[0]),null==v||v.apply(void 0,n)},prefixCls:q,className:T,style:L,disabled:H,ref:e,loadingIcon:O}))))}),q=H;q.__ANT_SWITCH=!0;const O=q}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.