1(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new r.Error().stack;c&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[c]="de93268d-cd6b-45b2-b5e2-2898594b7d0a",r._sentryDebugIdIdentifier="sentry-dbid-de93268d-cd6b-45b2-b5e2-2898594b7d0a")}catch{}})();var _global=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};_global.SENTRY_RELEASE={id:"6b3b5bcd49ac3ca4e22832378da81add8169a867"},(self.webpackChunk_maestro_io_client=self.webpackChunk_maestro_io_client||[]).push([[7890],{14005:(r,c,n)=>{var E;E={value:!0};var T=n(395525),v=o(T),L=n(816211),P=o(L),R=n(955174),_=o(R),w=n(116864),I=o(w),O=n(129007),D=o(O),U=n(338190),W=o(U),A=n(63696),k=o(A),x=n(362688),t=o(x),z=n(241911),S=o(z);function o(d){return d&&d.__esModule?d:{default:d}}var m=function(d){(0,W.default)(u,d);function u(){var i,s,e,a;(0,_.default)(this,u);for(var p=arguments.length,f=Array(p),l=0;l<p;l++)f[l]=arguments[l];return a=(s=(e=(0,D.default)(this,(i=u.__proto__||(0,P.default)(u)).call.apply(i,[this].concat(f))),e),e.handleClickToPause=function(){e.anim.isPaused?e.anim.play():e.anim.pause()},s),(0,D.default)(e,a)}return(0,I.default)(u,[{key:"componentDidMount",value:function(){var s=this.props,e=s.options,a=s.eventListeners,p=e.loop,f=e.autoplay,l=e.animationData,y=e.rendererSettings,g=e.segments;this.options={container:this.el,renderer:"svg",loop:p!==!1,autoplay:f!==!1,segments:g!==!1,animationData:l,rendererSettings:y},this.options=(0,v.default)({},this.options,e),this.anim=S.default.loadAnimation(this.options),this.registerEvents(a),this.setSpeed()}},{key:"componentWillUpdate",value:function(s){this.options.animationData!==s.options.animationData&&(this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options=(0,v.default)({},this.options,s.options),this.anim=S.default.loadAnimation(this.options),this.registerEvents(s.eventListeners))}},{key:"componentDidUpdate",value:function(){this.props.isStopped?this.stop():this.props.segments?this.playSegments():this.play(),this.pause(),this.setSpeed(),this.setDirection()}},{key:"componentWillUnmount",value:function(){this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options.animationData=null,this.anim=null}},{key:"setSpeed",value:function(){this.anim.setSpeed(this.props.speed)}},{key:"setDirection",value:function(){this.anim.setDirection(this.props.direction)}},{key:"play",value:function(){this.anim.play()}},{key:"playSegments",value:function(){this.anim.playSegments(this.props.segments)}},{key:"stop",value:function(){this.anim.stop()}},{key:"pause",value:function(){this.props.isPaused&&!this.anim.isPaused?this.anim.pause():!this.props.isPaused&&this.anim.isPaused&&this.anim.pause()}},{key:"destroy",value:function(){this.anim.destroy()}},{key:"registerEvents",value:function(s){var e=this;s.forEach(function(a){e.anim.addEventListener(a.eventName,a.callback)})}},{key:"deRegisterEvents",value:function(s){var e=this;s.forEach(function(a){e.anim.removeEventListener(a.eventName,a.callback)})}},{key:"render",value:function(){var s=this,e=this.props,a=e.width,p=e.height,f=e.ariaRole,l=e.ariaLabel,y=e.isClickToPauseDisabled,g=e.title,C=function(h){var b=void 0;return typeof h=="number"?b=h+"px":b=h||"100%",b},M=(0,v.default)({width:C(a),height:C(p),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style),N=y?function(){return null}:this.handleClickToPause;return k.default.createElement("div",{ref:function(h){s.el=h},style:M,onClick:N,title:g,role:f,"aria-label":l,tabIndex:"0"})}}]),u}(k.default.Component);c.A=m,m.propTypes={eventListeners:t.default.arrayOf(t.default.object),options:t.default.object.isRequired,height:t.default.oneOfType([t.default.string,t.default.number]),width:t.default.oneOfType([t.default.string,t.default.number]),isStopped:t.default.bool,isPaused:t.default.bool,speed:t.default.number,segments:t.default.arrayOf(t.default.number),direction:t.default.number,ariaRole:t.default.string,ariaLabel:t.default.string,isClickToPauseDisabled:t.default.bool,title:t.default.string,style:t.default.object},m.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",isClickToPauseDisabled:!1,title:""}}}]);
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.