Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6753 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
6802 stevensc 1
"use strict";(self.webpackChunkleaderslinked=self.webpackChunkleaderslinked||[]).push([[52],{89052:(e,t,n)=>{n.d(t,{Z:()=>Y});var r=n(32793),o=n(1048),i=n(67294),l=n(93680),s=n(94780),a=n(29602),u=n(34368),c=n(51705),p=n(2068),d=n(13511);var h=n(91890),f=n(7419);function m(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function b(e,t,n){return null!=n[t]?n[t]:e.props[t]}function v(e,t,n){var r=m(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var l in e)l in t?i.length&&(o[l]=i,i=[]):i.push(l);var s={};for(var a in t){if(o[a])for(r=0;r<o[a].length;r++){var u=o[a][r];s[o[a][r]]=n(u)}s[a]=n(a)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(l){var s=o[l];if((0,i.isValidElement)(s)){var a=l in t,u=l in r,c=t[l],p=(0,i.isValidElement)(c)&&!c.props.in;!u||a&&!p?u||!a||p?u&&a&&(0,i.isValidElement)(c)&&(o[l]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:c.props.in,exit:b(s,"exit",e),enter:b(s,"enter",e)})):o[l]=(0,i.cloneElement)(s,{in:!1}):o[l]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:b(s,"exit",e),enter:b(s,"enter",e)})}})),o}var y=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},g=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,h.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,l=t.handleExited;return{children:t.firstRender?(n=e,r=l,m(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:b(e,"appear",n),enter:b(e,"enter",n),exit:b(e,"exit",n)})}))):v(e,o,l),firstRender:!1}},n.handleExited=function(e,t){var n=m(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,o.Z)(e,["component","childFactory"]),l=this.state.contextValue,s=y(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(f.Z.Provider,{value:l},s):i.createElement(f.Z.Provider,{value:l},i.createElement(t,r,s))},t}(i.Component);g.propTypes={},g.defaultProps={component:"div",childFactory:function(e){return e}};const x=g;n(66751),n(8679);var R=n(7784);n(27278);function Z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,R.O)(t)}var M=function(){var e=Z.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};var E=n(85893);const k=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:a,in:u,onExited:c,timeout:p}=e,[d,h]=i.useState(!1),f=(0,l.Z)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:a,height:a,top:-a/2+s,left:-a/2+o},b=(0,l.Z)(n.child,d&&n.childLeaving,r&&n.childPulsate);return u||d||h(!0),i.useEffect((()=>{if(!u&&null!=c){const e=setTimeout(c,p);return()=>{clearTimeout(e)}}}),[c,u,p]),(0,E.jsx)("span",{className:f,style:m,children:(0,E.jsx)("span",{className:b})})};var T=n(1588);const P=(0,T.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),C=["center","classes","className"];let V,w,S,j,O=e=>e;const $=M(V||(V=O`
6753 stevensc 2
  0% {
3
    transform: scale(0);
4
    opacity: 0.1;
5
  }
6
 
7
  100% {
8
    transform: scale(1);
9
    opacity: 0.3;
10
  }
11
`)),D=M(w||(w=O`
12
  0% {
13
    opacity: 1;
14
  }
15
 
16
  100% {
17
    opacity: 0;
18
  }
19
`)),L=M(S||(S=O`
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
`)),B=(0,a.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),N=(0,a.ZP)(k,{name:"MuiTouchRipple",slot:"Ripple"})(j||(j=O`
32
  opacity: 0;
33
  position: absolute;
34
 
35
  &.${0} {
36
    opacity: 0.3;
37
    transform: scale(1);
38
    animation-name: ${0};
39
    animation-duration: ${0}ms;
40
    animation-timing-function: ${0};
41
  }
42
 
43
  &.${0} {
44
    animation-duration: ${0}ms;
45
  }
46
 
47
  & .${0} {
48
    opacity: 1;
49
    display: block;
50
    width: 100%;
51
    height: 100%;
52
    border-radius: 50%;
53
    background-color: currentColor;
54
  }
55
 
56
  & .${0} {
57
    opacity: 0;
58
    animation-name: ${0};
59
    animation-duration: ${0}ms;
60
    animation-timing-function: ${0};
61
  }
62
 
63
  & .${0} {
64
    position: absolute;
65
    /* @noflip */
66
    left: 0px;
67
    top: 0;
68
    animation-name: ${0};
69
    animation-duration: 2500ms;
70
    animation-timing-function: ${0};
71
    animation-iteration-count: infinite;
72
    animation-delay: 200ms;
73
  }
74
`),P.rippleVisible,$,550,(({theme:e})=>e.transitions.easing.easeInOut),P.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),P.child,P.childLeaving,D,550,(({theme:e})=>e.transitions.easing.easeInOut),P.childPulsate,L,(({theme:e})=>e.transitions.easing.easeInOut)),F=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:a={},className:c}=n,p=(0,o.Z)(n,C),[d,h]=i.useState([]),f=i.useRef(0),m=i.useRef(null);i.useEffect((()=>{m.current&&(m.current(),m.current=null)}),[d]);const b=i.useRef(!1),v=i.useRef(null),y=i.useRef(null),g=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(v.current)}),[]);const R=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;h((e=>[...e,(0,E.jsx)(N,{classes:{ripple:(0,l.Z)(a.ripple,P.ripple),rippleVisible:(0,l.Z)(a.rippleVisible,P.rippleVisible),ripplePulsate:(0,l.Z)(a.ripplePulsate,P.ripplePulsate),child:(0,l.Z)(a.child,P.child),childLeaving:(0,l.Z)(a.childLeaving,P.childLeaving),childPulsate:(0,l.Z)(a.childPulsate,P.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},f.current)])),f.current+=1,m.current=i}),[a]),Z=i.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:o=s||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&b.current)return void(b.current=!1);"touchstart"===(null==e?void 0:e.type)&&(b.current=!0);const l=i?null:g.current,a=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,p;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(a.width/2),c=Math.round(a.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-a.left),c=Math.round(n-a.top)}if(o)p=Math.sqrt((2*a.width**2+a.height**2)/3),p%2==0&&(p+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;p=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===y.current&&(y.current=()=>{R({pulsate:r,rippleX:u,rippleY:c,rippleSize:p,cb:n})},v.current=setTimeout((()=>{y.current&&(y.current(),y.current=null)}),80)):R({pulsate:r,rippleX:u,rippleY:c,rippleSize:p,cb:n})}),[s,R]),M=i.useCallback((()=>{Z({},{pulsate:!0})}),[Z]),k=i.useCallback(((e,t)=>{if(clearTimeout(v.current),"touchend"===(null==e?void 0:e.type)&&y.current)return y.current(),y.current=null,void(v.current=setTimeout((()=>{k(e,t)})));y.current=null,h((e=>e.length>0?e.slice(1):e)),m.current=t}),[]);return i.useImperativeHandle(t,(()=>({pulsate:M,start:Z,stop:k})),[M,Z,k]),(0,E.jsx)(B,(0,r.Z)({className:(0,l.Z)(P.root,a.root,c),ref:g},p,{children:(0,E.jsx)(x,{component:null,exit:!0,children:d})}))}));var I=n(34867);function z(e){return(0,I.Z)("MuiButtonBase",e)}const _=(0,T.Z)("MuiButtonBase",["root","disabled","focusVisible"]),X=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],U=(0,a.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${_.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Y=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:h=!1,children:f,className:m,component:b="button",disabled:v=!1,disableRipple:y=!1,disableTouchRipple:g=!1,focusRipple:x=!1,LinkComponent:R="a",onBlur:Z,onClick:M,onContextMenu:k,onDragLeave:T,onFocus:P,onFocusVisible:C,onKeyDown:V,onKeyUp:w,onMouseDown:S,onMouseLeave:j,onMouseUp:O,onTouchEnd:$,onTouchMove:D,onTouchStart:L,tabIndex:B=0,TouchRippleProps:N,touchRippleRef:I,type:_}=n,Y=(0,o.Z)(n,X),A=i.useRef(null),K=i.useRef(null),H=(0,c.Z)(K,I),{isFocusVisibleRef:W,onFocus:q,onBlur:G,ref:J}=(0,d.Z)(),[Q,ee]=i.useState(!1);v&&Q&&ee(!1),i.useImperativeHandle(a,(()=>({focusVisible:()=>{ee(!0),A.current.focus()}})),[]);const[te,ne]=i.useState(!1);i.useEffect((()=>{ne(!0)}),[]);const re=te&&!y&&!v;function oe(e,t,n=g){return(0,p.Z)((r=>{t&&t(r);return!n&&K.current&&K.current[e](r),!0}))}i.useEffect((()=>{Q&&x&&!y&&te&&K.current.pulsate()}),[y,x,Q,te]);const ie=oe("start",S),le=oe("stop",k),se=oe("stop",T),ae=oe("stop",O),ue=oe("stop",(e=>{Q&&e.preventDefault(),j&&j(e)})),ce=oe("start",L),pe=oe("stop",$),de=oe("stop",D),he=oe("stop",(e=>{G(e),!1===W.current&&ee(!1),Z&&Z(e)}),!1),fe=(0,p.Z)((e=>{A.current||(A.current=e.currentTarget),q(e),!0===W.current&&(ee(!0),C&&C(e)),P&&P(e)})),me=()=>{const e=A.current;return b&&"button"!==b&&!("A"===e.tagName&&e.href)},be=i.useRef(!1),ve=(0,p.Z)((e=>{x&&!be.current&&Q&&K.current&&" "===e.key&&(be.current=!0,K.current.stop(e,(()=>{K.current.start(e)}))),e.target===e.currentTarget&&me()&&" "===e.key&&e.preventDefault(),V&&V(e),e.target===e.currentTarget&&me()&&"Enter"===e.key&&!v&&(e.preventDefault(),M&&M(e))})),ye=(0,p.Z)((e=>{x&&" "===e.key&&K.current&&Q&&!e.defaultPrevented&&(be.current=!1,K.current.stop(e,(()=>{K.current.pulsate(e)}))),w&&w(e),M&&e.target===e.currentTarget&&me()&&" "===e.key&&!e.defaultPrevented&&M(e)}));let ge=b;"button"===ge&&(Y.href||Y.to)&&(ge=R);const xe={};"button"===ge?(xe.type=void 0===_?"button":_,xe.disabled=v):(Y.href||Y.to||(xe.role="button"),v&&(xe["aria-disabled"]=v));const Re=(0,c.Z)(t,J,A);const Ze=(0,r.Z)({},n,{centerRipple:h,component:b,disabled:v,disableRipple:y,disableTouchRipple:g,focusRipple:x,tabIndex:B,focusVisible:Q}),Me=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},l=(0,s.Z)(i,z,o);return n&&r&&(l.root+=` ${r}`),l})(Ze);return(0,E.jsxs)(U,(0,r.Z)({as:ge,className:(0,l.Z)(Me.root,m),ownerState:Ze,onBlur:he,onClick:M,onContextMenu:le,onFocus:fe,onKeyDown:ve,onKeyUp:ye,onMouseDown:ie,onMouseLeave:ue,onMouseUp:ae,onDragLeave:se,onTouchEnd:pe,onTouchMove:de,onTouchStart:ce,ref:Re,tabIndex:v?-1:B,type:_},xe,Y,{children:[f,re?(0,E.jsx)(F,(0,r.Z)({ref:H,center:h},N)):null]}))}))},7419:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(67294).createContext(null)},91890:(e,t,n)=>{function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>o})}}]);