PageSourceSearch

https://rsdmrkt.com/assets/useSlotProps-Br-fPZ-p.js

js rsdmrkt.com collected 2026-10-02 16:47:33 UTC 17,672 bytes, 74 lines download raw bytes

1var Pt=Object.defineProperty;var Ot=(t,n,e)=>n in t?Pt(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var W=(t,n,e)=>Ot(t,typeof n!="symbol"?n+"":n,e);import{r as u,R as Y}from"./chunk-KS7C4IRE-D5dXzlLW.js";import{j as I}from"./emotion-element-f0de968e.browser.esm-CkAcib9J.js";import{c as E,b as Z,_ as $t,k as st}from"./identifier-DCmdaooV.js";import{g as mt,a as rt,u as it,c as gt,s as Q,m as Ut}from"./Box-Bu2Z2trI.js";import{u as At,_ as Ft}from"./imageUtils-BWiJvnWv.js";function Ht(t){return mt("MuiSvgIcon",t)}rt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _t=t=>{const{color:n,fontSize:e,classes:s}=t,o={root:["root",n!=="inherit"&&`color${Z(n)}`,`fontSize${Z(e)}`]};return gt(o,Ht,s)},Wt=Q("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.color!=="inherit"&&n[`color${Z(e.color)}`],n[`fontSize${Z(e.fontSize)}`]]}})(Ut(({theme:t})=>{var n,e,s,o,r,i,a,c,l,d,p,y,b,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(n=t.transitions)==null?void 0:n.create)==null?void 0:o.call(n,"fill",{duration:(s=(e=(t.vars??t).transitions)==null?void 0:e.duration)==null?void 0:s.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(r=t.typography)==null?void 0:r.pxToRem)==null?void 0:i.call(r,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:c.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(l=t.typography)==null?void 0:l.pxToRem)==null?void 0:d.call(l,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,g])=>g&&g.main).map(([g])=>{var R,S;return{props:{color:g},style:{color:(S=(R=(t.vars??t).palette)==null?void 0:R[g])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(y=(p=(t.vars??t).palette)==null?void 0:p.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(m=(b=(t.vars??t).palette)==null?void 0:b.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),et=u.forwardRef(function(n,e){const s=it({props:n,name:"MuiSvgIcon"}),{children:o,className:r,color:i="inherit",component:a="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:d=!1,titleAccess:p,viewBox:y="0 0 24 24",...b}=s,m=u.isValidElement(o)&&o.type==="svg",g={...s,color:i,component:a,fontSize:c,instanceFontSize:n.fontSize,inheritViewBox:d,viewBox:y,hasSvgAsChild:m},R={};d||(R.viewBox=y);const S=_t(g);return I.jsxs(Wt,{as:a,className:E(S.root,r),focusable:"false",color:l,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:e,...R,...b,...m&&o.props,ownerState:g,children:[m?o.props.children:o,p?I.jsx("title",{children:p}):null]})});et.muiName="SvgIcon";function ve(t,n){function e(s,o){return I.jsx(et,{"data-testid":void 0,ref:o,...s,children:t})}return e.muiName=et.muiName,u.memo(u.forwardRef(e))}function G(t){const n=u.useRef(t);return At(()=>{n.current=t}),u.useRef((...e)=>(0,n.current)(...e)).current}function q(...t){const n=u.useRef(void 0),e=u.useCallback(s=>{const o=t.map(r=>{if(r==null)return null;if(typeof r=="function"){const i=r,a=i(s);return typeof a=="function"?a:()=>{i(null)}}return r.current=s,()=>{r.current=null}});return()=>{o.forEach(r=>r==null?void 0:r())}},t);return u.useMemo(()=>t.every(s=>s==null)?null:s=>{n.current&&(n.current(),n.current=void 0),s!=null&&(n.current=e(s))},t)}function nt(t,n){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,s){return e.__proto__=s,e},nt(t,n)}function Yt(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,nt(t,n)}const ft=Y.createContext(null);function Xt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lt(t,n){var e=function(r){return n&&u.isValidElement(r)?n(r):r},s=Object.create(null);return t&&u.Children.map(t,function(o){return o}
1).forEach(function(o){s[o.key]=e(o)}),s}function Kt(t,n){t=t||{},n=n||{};function e(d){return d in n?n[d]:t[d]}var s=Object.create(null),o=[];for(var r in t)r in n?o.length&&(s[r]=o,o=[]):o.push(r);var i,a={};for(var c in n){if(s[c])for(i=0;i<s[c].length;i++){var l=s[c][i];a[s[c][i]]=e(l)}a[c]=e(c)}for(i=0;i<o.length;i++)a[o[i]]=e(o[i]);return a}function P(t,n,e){return e[n]!=null?e[n]:t.props[n]}function Gt(t,n){return lt(t.children,function(e){return u.cloneElement(e,{onExited:n.bind(null,e),in:!0,appear:P(e,"appear",t),enter:P(e,"enter",t),exit:P(e,"exit",t)})})}function Zt(t,n,e){var s=lt(t.children),o=Kt(n,s);return Object.keys(o).forEach(function(r){var i=o[r];if(u.isValidElement(i)){var a=r in n,c=r in s,l=n[r],d=u.isValidElement(l)&&!l.props.in;c&&(!a||d)?o[r]=u.cloneElement(i,{onExited:e.bind(null,i),in:!0,exit:P(i,"exit",t),enter:P(i,"enter",t)}):!c&&a&&!d?o[r]=u.cloneElement(i,{in:!1}):c&&a&&u.isValidElement(l)&&(o[r]=u.cloneElement(i,{onExited:e.bind(null,i),in:l.props.in,exit:P(i,"exit",t),enter:P(i,"enter",t)}))}}),o}var qt=Object.values||function(t){return Object.keys(t).map(function(n){return t[n]})},Jt={component:"div",childFactory:function(n){return n}},at=(function(t){Yt(n,t);function n(s,o){var r;r=t.call(this,s,o)||this;var i=r.handleExited.bind(Xt(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}var e=n.prototype;return e.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},e.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(o,r){var i=r.children,a=r.handleExited,c=r.firstRender;return{children:c?Gt(o,a):Zt(o,i,a),firstRender:!1}},e.handleExited=function(o,r){var i=lt(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(r),this.mounted&&this.setState(function(a){var c=$t({},a.children);return delete c[o.key],{children:c}}))},e.render=function(){var o=this.props,r=o.component,i=o.childFactory,a=Ft(o,["component","childFactory"]),c=this.state.contextValue,l=qt(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,r===null?Y.createElement(ft.Provider,{value:c},l):Y.createElement(ft.Provider,{value:c},Y.createElement(r,a,l))},n})(Y.Component);at.propTypes={};at.defaultProps=Jt;const pt={};function yt(t,n){const e=u.useRef(pt);return e.current===pt&&(e.current=t(n)),e}const Qt=[];function te(t){u.useEffect(t,Qt)}class ut{constructor(){W(this,"currentId",null);W(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});W(this,"disposeEffect",()=>this.clear)}
1static create(){return new ut}start(n,e){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,e()},n)}}function ee(){const t=yt(ut.create).current;return te(t.disposeEffect),t}function ne(t){return typeof t=="string"}function bt(t,n,e){return t===void 0||ne(t)?n:{...n,ownerState:{...n.ownerState,...e}}}function Rt(t,n,e){return typeof t=="function"?t(n,e):t}function oe(t,n=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(s=>s.match(/^on[A-Z]/)&&typeof t[s]=="function"&&!n.includes(s)).forEach(s=>{e[s]=t[s]}),e}function dt(t){if(t===void 0)return{};const n={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{n[e]=t[e]}),n}function Mt(t){const{getSlotProps:n,additionalProps:e,externalSlotProps:s,externalForwardedProps:o,className:r}=t;if(!n){const b=E(e==null?void 0:e.className,r,o==null?void 0:o.className,s==null?void 0:s.className),m={...e==null?void 0:e.style,...o==null?void 0:o.style,...s==null?void 0:s.style},g={...e,...o,...s};return b.length>0&&(g.className=b),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const i=oe({...o,...s}),a=dt(s),c=dt(o),l=n(i),d=E(l==null?void 0:l.className,e==null?void 0:e.className,r,o==null?void 0:o.className,s==null?void 0:s.className),p={...l==null?void 0:l.style,...e==null?void 0:e.style,...o==null?void 0:o.style,...s==null?void 0:s.style},y={...l,...e,...c,...a};return d.length>0&&(y.className=d),Object.keys(p).length>0&&(y.style=p),{props:y,internalRef:l.ref}}function Te(t,n){const{className:e,elementType:s,ownerState:o,externalForwardedProps:r,internalForwardedProps:i,shouldForwardComponentProp:a=!1,...c}=n,{component:l,slots:d={[t]:void 0},slotProps:p={[t]:void 0},...y}=r,b=d[t]||s,m=Rt(p[t],o),{props:{component:g,...R},internalRef:S}=Mt({className:e,...c,externalForwardedProps:t==="root"?y:void 0,externalSlotProps:m}),O=q(S,m==null?void 0:m.ref,n.ref),v=t==="root"?g||l:g,h=bt(b,{...t==="root"&&!l&&!d[t]&&i,...t!=="root"&&!d[t]&&i,...R,...v&&!a&&{as:v},...v&&a&&{component:v},ref:O},o);return[b,h]}function ht(t){try{return t.matches(":focus-visible")}catch{}return!1}class J{constructor(){W(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new J}static use(){const n=yt(J.create).current,[e,s]=u.useState(!1);return n.shouldMount=e,n.setShouldMount=s,u.useEffect(n.mountEffect,[e]),n}mount(){return this.mounted||(this.mounted=re(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...n){this.mount().then(()=>{var e;return(e=this.ref.current)==null?void 0:e.start(...n)})}stop(...n){this.mount().then(()=>{var e;return(e=this.ref.current)==null?void 0:e.stop(...n)})}pulsate(...n){this.mount().then(()=>{var e;return(e=this.ref.current)==null?void 0:e.pulsate(...n)})}}function se(){return J.use()}function re(){let t,n;const e=new Promise((s,o)=>{t=s,n=o});return e.resolve=t,e.reject=n,e}function ie(t){const{className:n,classes:e,pulsate:s=!1,rippleX:o,rippleY:r,rippleSize:i,in:a,onExited:c,timeout:l}=t,[d,p]=u.useState(!1),y=E(n,e.ripple,e.rippleVisible,s&&e.ripplePulsate),b={width:i,height:i,top:-(i/2)+r,left:-(i/2)+o},m=E(e.child,d&&e.childLeaving,s&&e.childPulsate);return!a&&!d&&p(!0),u.useEffect(()=>{if(!a&&c!=null){const g=setTimeout(c,l);return()=>{clearTimeout(g)}}},[c,a,l]),I.jsx("span",{className:y,style:b,children:I.jsx("span",{className:m})})}const C=rt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ot=550,le=80,ae=st`
2  0% {
3    transform: scale(0);
4    opacity: 0.1;
5  }
6
7  100% {
8    transform: scale(1);
9    opacity: 0.3;
10  }
11`,ue=st`
12  0% {
13    opacity: 1;
14  }
15
16  100% {
17    opacity: 0;
18  }
19`,ce=st`
20  0% {
21    transform: scale(1);
22  }
23
24  50% {
25    transform: scale(0.92);
26  }
27
28  100% {
29    transform: scale(1);
30  }
31`,fe=Q("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),pe=Q(ie,{name:"MuiTouchRipple",slot:"Ripple"})`
32  opacity: 0;
33  position: absolute;
34
35  &.${C.rippleVisible} {
36    opacity: 0.3;
37    transform: scale(1);
38    animation-name: ${ae};
39    animation-duration: ${ot}ms;
40    animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
41  }
42
43  &.${C.ripplePulsate} {
44    animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
45  }
46
47  & .${C.child} {
48    opacity: 1;
49    display: block;
50    width: 100%;
51    height: 100%;
52    border-radius: 50%;
53    background-color: currentColor;
54  }
55
56  & .${C.childLeaving} {
57    opacity: 0;
58    animation-name: ${ue};
59    animation-duration: ${ot}ms;
60    animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
61  }
62
63  & .${C.childPulsate} {
64    position: absolute;
65    /* @noflip */
66    left: 0px;
67    top: 0;
68    animation-name: ${ce};
69    animation-duration: 2500ms;
70    animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
71    animation-iteration-count: infinite;
72    animation-delay: 200ms;
73  }
74`,de=u.forwardRef(function(n,e){const s=it({props:n,name:"MuiTouchRipple"}),{center:o=!1,classes:r={},className:i,...a}=s,[c,l]=u.useState([]),d=u.useRef(0),p=u.useRef(null);u.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const y=u.useRef(!1),b=ee(),m=u.useRef(null),g=u.useRef(null),R=u.useCallback(h=>{const{pulsate:x,rippleX:T,rippleY:$,rippleSize:B,cb:U}=h;l(N=>[...N,I.jsx(pe,{classes:{ripple:E(r.ripple,C.ripple),rippleVisible:E(r.rippleVisible,C.rippleVisible),ripplePulsate:E(r.ripplePulsate,C.ripplePulsate),
74child:E(r.child,C.child),childLeaving:E(r.childLeaving,C.childLeaving),childPulsate:E(r.childPulsate,C.childPulsate)},timeout:ot,pulsate:x,rippleX:T,rippleY:$,rippleSize:B},d.current)]),d.current+=1,p.current=U},[r]),S=u.useCallback((h={},x={},T=()=>{})=>{const{pulsate:$=!1,center:B=o||x.pulsate,fakeElement:U=!1}=x;if((h==null?void 0:h.type)==="mousedown"&&y.current){y.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(y.current=!0);const N=U?null:g.current,k=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,w,j;if(B||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)V=Math.round(k.width/2),w=Math.round(k.height/2);else{const{clientX:A,clientY:D}=h.touches&&h.touches.length>0?h.touches[0]:h;V=Math.round(A-k.left),w=Math.round(D-k.top)}if(B)j=Math.sqrt((2*k.width**2+k.height**2)/3),j%2===0&&(j+=1);else{const A=Math.max(Math.abs((N?N.clientWidth:0)-V),V)*2+2,D=Math.max(Math.abs((N?N.clientHeight:0)-w),w)*2+2;j=Math.sqrt(A**2+D**2)}h!=null&&h.touches?m.current===null&&(m.current=()=>{R({pulsate:$,rippleX:V,rippleY:w,rippleSize:j,cb:T})},b.start(le,()=>{m.current&&(m.current(),m.current=null)})):R({pulsate:$,rippleX:V,rippleY:w,rippleSize:j,cb:T})},[o,R,b]),O=u.useCallback(()=>{S({},{pulsate:!0})},[S]),v=u.useCallback((h,x)=>{if(b.clear(),(h==null?void 0:h.type)==="touchend"&&m.current){m.current(),m.current=null,b.start(0,()=>{v(h,x)});return}m.current=null,l(T=>T.length>0?T.slice(1):T),p.current=x},[b]);return u.useImperativeHandle(e,()=>({pulsate:O,start:S,stop:v}),[O,S,v]),I.jsx(fe,{className:E(C.root,r.root,i),ref:g,...a,children:I.jsx(at,{component:null,exit:!0,children:c})})});function he(t){return mt("MuiButtonBase",t)}const me=rt("MuiButtonBase",["root","disabled","focusVisible"]),ge=t=>{const{disabled:n,focusVisible:e,focusVisibleClassName:s,classes:o}=t,i=gt({root:["root",n&&"disabled",e&&"focusVisible"]},he,o);return e&&s&&(i.root+=` ${s}`),i},ye=Q("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${me.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xe=u.forwardRef(function(n,e){const s=it({props:n,name:"MuiButtonBase"}),{action:o,centerRipple:r=!1,children:i,className:a,component:c="button",disabled:l=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:y=!1,focusVisibleClassName:b,LinkComponent:m="a",onBlur:g,onClick:R,onContextMenu:S,onDragLeave:O,onFocus:v,onFocusVisible:h,onKeyDown:x,onKeyUp:T,onMouseDown:$,onMouseLeave:B,onMouseUp:U,onTouchEnd:N,onTouchMove:k,onTouchStart:V,tabIndex:w=0,TouchRippleProps:j,touchRippleRef:A,type:D,...F}=s,H=u.useRef(null),M=se(),St=q(M.ref,A),[L,X]=u.useState(!1);l&&L&&X(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),H.current.focus()}}),[]);const Et=M.shouldMount&&!d&&!l;u.useEffect(()=>{L&&y&&!d&&M.pulsate()},[d,y,L,M]);const Ct=z(M,"start",$,p),vt=z(M,"stop",S,p),Tt=z(M,"stop",O,p),xt=z(M,"stop",U,p),Nt=z(M,"stop",f=>{L&&f.preventDefault(),B&&B(f)},p),It=z(M,"start",V,p),wt=z(M,"stop",N,p),zt=z(M,"stop",k,p),kt=z(M,"stop",f=>{ht(f.target)||X(!1),g&&g(f)},!1),Vt=G(f=>{H.current||(H.current=f.currentTarget),ht(f.target)&&(X(!0),h&&h(f)),v&&v(f)}),tt=()=>{const f=H.current;return c&&c!=="button"&&!(f.tagName==="A"&&f.href)},jt=G(f=>{y&&!f.repeat&&L&&f.key===" "&&M.stop(f,()=>{M.start(f)}),f.target===f.currentTarget&&tt()&&f.key===" "&&f.preventDefault(),x&&x(f),f.target===f.currentTarget&&tt()&&f.key==="Enter"&&!l&&(f.preventDefault(),R&&R(f))}),Bt=G(f=>{y&&f.key===" "&&L&&!f.defaultPrevented&&M.stop(f,()=>{M.pulsate(f)}),T&&T(f),R&&f.target===f.currentTarget&&tt()&&f.key===" "&&!f.defaultPrevented&&R(f)});let K=c;K==="button"&&(F.href||F.to)&&(K=m);const _={};K==="button"?(_.type=D===void 0?"button":D,_.disabled=l):(!F.href&&!F.to&&(_.role="button"),l&&(_["aria-disabled"]=l));const Dt=q(e,H),ct={...s,centerRipple:r,component:c,disabled:l,disableRipple:d,disableTouchRipple:p,focusRipple:y,tabIndex:w,focusVisible:L},Lt=ge(ct);return I.jsxs(ye,{as:K,className:E(Lt.root,a),ownerState:ct,onBlur:kt,onClick:R,onContextMenu:vt,onFocus:Vt,onKeyDown:jt,onKeyUp:Bt,onMouseDown:Ct,onMouseLeave:Nt,onMouseUp:xt,onDragLeave:Tt,onTouchEnd:wt,onTouchMove:zt,onTouchStart:It,ref:Dt,tabIndex:l?-1:w,type:D,..._,...F,children:[i,Et?I.jsx(de,{ref:St,center:r,...j}):null]})});function z(t,n,e,s=!1){return G(o=>(e&&e(o),s||t[n](o),!0))}function Ne(t){var p;const{elementType:n,externalSlotProps:e,ownerState:s,skipResolvingSlotProps:o=!1,...r}=t,i=o?{}:Rt(e,s),{props:a,internalRef:c}=Mt({...r,externalSlotProps:i}),l=q(c,i==null?void 0:i.ref,(p=t.additionalProps)==null?void 0:p.ref);return bt(n,{...a,ref:l},s)}
74export{xe as B,et as S,ft as T,Yt as _,q as a,G as b,ve as c,ee as d,oe as e,Ne as f,ne as g,ut as h,ht as i,at as j,yt as k,te as l,Rt as r,Te as u};

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.