PageSourceSearch

https://www.bhaskar.com/assets/js/material-ui-core-Snackbar-63b037d4.js

js bhaskar.com collected 2026-09-24 08:52:49 UTC 9,015 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5fa6c927-3c8f-423d-92aa-8b1392097c7d",e._sentryDebugIdIdentifier="sentry-dbid-5fa6c927-3c8f-423d-92aa-8b1392097c7d")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.60.80"},(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[483],{307:(e,n,t)=>{t.r(n),t.d(n,{default:()=>O});var o=t(45987),r=t(4942),i=t(87462),a=t(67294),u=(t(45697),t(86010)),c=t(5551),s=t(43366),l=t(73935);function d(e){return e&&e.ownerDocument||document}var f=t(88485),m=t(55192);function p(e){return e.substring(2).toLowerCase()}const E=function(e){var n=e.children,t=e.disableReactTree,o=void 0!==t&&t,r=e.mouseEvent,i=void 0===r?"onClick":r,u=e.onClickAway,c=e.touchEvent,s=void 0===c?"onTouchEnd":c,E=a.useRef(!1),v=a.useRef(null),g=a.useRef(!1),y=a.useRef(!1);a.useEffect((function(){return setTimeout((function(){g.current=!0}),0),function(){g.current=!1}}),[]);var h=a.useCallback((function(e){v.current=l.findDOMNode(e)}),[]),Z=(0,f.Z)(n.ref,h),b=(0,m.Z)((function(e){var n=y.current;if(y.current=!1,g.current&&v.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(E.current)E.current=!1;else{var t;if(e.composedPath)t=e.composedPath().indexOf(v.current)>-1;else t=!d(v.current).documentElement.contains(e.target)||v.current.contains(e.target);t||!o&&n||u(e)}})),x=function(e){return function(t){y.current=!0;var o=n.props[e];o&&o(t)}},w={ref:Z};return!1!==s&&(w[s]=x(s)),a.useEffect((function(){if(!1!==s){var e=p(s),n=d(v.current),t=function(){E.current=!0};return n.addEventListener(e,b),n.addEventListener("touchmove",t),function(){n.removeEventListener(e,b),n.removeEventListener("touchmove",t)}}}),[b,s]),!1!==i&&(w[i]=x(i)),a.useEffect((function(){if(!1!==i){var e=p(i),n=d(v.current);return n.addEventListener(e,b),function(){n.removeEventListener(e,b)}}}),[b,i]),a.createElement(a.Fragment,null,a.cloneElement(n,w))};var v=t(93871);function g(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.reduce((function(e,n){return null==n?e:function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];e.apply(this,o),n.apply(this,o)}}),(function(){}))}var y=t(70885),h=t(12666),Z=t(75959),b=t(99164);function x(e,n){var t=e.timeout,o=e.style,r=void 0===o?{}:o;return{duration:r.transitionDuration||"number"==typeof t?t:t[n.mode]||0,delay:r.transitionDelay}}function w(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var L={entering:{opacity:1,transform:w(1)},entered:{opacity:1,transform:"none"}},C=a.forwardRef((function(e,n){var t=e.children,r=e.disableStrictModeCompat,u=void 0!==r&&r,c=e.in,s=e.onEnter,l=e.onEntered,d=e.onEntering,m=e.onExit,p=e.onExited,E=e.onExiting,v=e.style,g=e.timeout,C=void 0===g?"auto":g,D=e.TransitionComponent,k=void 0===D?h.ZP:D,T=(0,o.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),_=a.useRef(),R=a.useRef(),A=(0,Z.Z)()||b.Z,O=A.unstable_strictMode&&!u,M=a.useRef(null),N=(0,f.Z)(t.ref,n),S=(0,f.Z)(O?M:void 0,N),H=function(e){return function(n,t){if(e){var o=O?[M.current,n]:[n,t],r=(0,y.Z)(o,2),i=r[0],a=r[1];void 0===a?e(i):e(i,a)}}},I=H(d),P=H((function(e,n){!function(e){e.scrollTop}(e);var t,o=x({style:v,timeout:C},{mode:"enter"}),r=o.duration,i=o.delay;"auto"===C?(t=A.transitions.getAutoHeightDuration(e.clientHeight),R.current=t):t=r,e.style.transition=[A.transitions.create("opacity",{duration:t,delay:i}),A.transitions.create("transform",{duration:.666*t,delay:i})].join(","),s&&s(e,n)})),B=H(l),j=H(E),W=H((function(e){var n,t=x({style:v,timeout:C},{mode:"exit"}),o=t.duration,r=t.delay;"auto"===C?(n=A.transitions.getAutoHeightDuration(e.clientHeight),R.current=n):n=o,e.style.transition=[A.transitions.create("opacity",{duration:n,delay:r}),A.transitions.create("transform",{duration:.666*n,delay:r||.333*n}
1)].join(","),e.style.opacity="0",e.style.transform=w(.75),m&&m(e)})),z=H(p);return a.useEffect((function(){return function(){clearTimeout(_.current)}}),[]),a.createElement(k,(0,i.Z)({appear:!0,in:c,nodeRef:O?M:void 0,onEnter:P,onEntered:B,onEntering:I,onExit:W,onExited:z,onExiting:j,addEndListener:function(e,n){var t=O?e:n;"auto"===C&&(_.current=setTimeout(t,R.current||0))},timeout:"auto"===C?null:C},T),(function(e,n){return a.cloneElement(t,(0,i.Z)({style:(0,i.Z)({opacity:0,transform:w(.75),visibility:"exited"!==e||c?void 0:"hidden"},L[e],v,t.props.style),ref:S},n))}))}));C.muiSupportAuto=!0;const D=C;var k=t(79895),T=t(59693),_=a.forwardRef((function(e,n){var t=e.action,r=e.classes,c=e.className,s=e.message,l=e.role,d=void 0===l?"alert":l,f=(0,o.Z)(e,["action","classes","className","message","role"]);return a.createElement(k.Z,(0,i.Z)({role:d,square:!0,elevation:6,className:(0,u.Z)(r.root,c),ref:n},f),a.createElement("div",{className:r.message},s),t?a.createElement("div",{className:r.action},t):null)}));const R=(0,c.Z)((function(e){var n="light"===e.palette.type?.8:.98,t=(0,T._4)(e.palette.background.default,n);return{root:(0,i.Z)({},e.typography.body2,(0,r.Z)({color:e.palette.getContrastText(t),backgroundColor:t,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(_);var A=a.forwardRef((function(e,n){var t=e.action,r=e.anchorOrigin,c=(r=void 0===r?{vertical:"bottom",horizontal:"center"}:r).vertical,l=r.horizontal,d=e.autoHideDuration,f=void 0===d?null:d,p=e.children,y=e.classes,h=e.className,Z=e.ClickAwayListenerProps,b=e.ContentProps,x=e.disableWindowBlurListener,w=void 0!==x&&x,L=e.message,C=e.onClose,k=e.onEnter,T=e.onEntered,_=e.onEntering,A=e.onExit,O=e.onExited,M=e.onExiting,N=e.onMouseEnter,S=e.onMouseLeave,H=e.open,I=e.resumeHideDuration,P=e.TransitionComponent,B=void 0===P?D:P,j=e.transitionDuration,W=void 0===j?{enter:s.x9.enteringScreen,exit:s.x9.leavingScreen}:j,z=e.TransitionProps,G=(0,o.Z)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),K=a.useRef(),U=a.useState(!0),X=U[0],Y=U[1],q=(0,m.Z)((function(){C&&C.apply(void 0,arguments)})),F=(0,m.Z)((function(e){C&&null!=e&&(clearTimeout(K.current),K.current=setTimeout((function(){q(null,"timeout")}),e))}));a.useEffect((function(){return H&&F(f),function(){clearTimeout(K.current)}}),[H,f,F]);var J=function(){clearTimeout(K.current)},Q=a.useCallback((function(){null!=f&&F(null!=I?I:.5*f)}),[f,I,F]);return a.useEffect((function(){if(!w&&H)return window.addEventListener("focus",Q),window.addEventListener("blur",J),function(){window.removeEventListener("focus",Q),window.removeEventListener("blur",J)}}),[w,Q,H]),!H&&X?null:a.createElement(E,(0,i.Z)({onClickAway:function(e){C&&C(e,"clickaway")}},Z),a.createElement("div",(0,i.Z)({className:(0,u.Z)(y.root,y["anchorOrigin".concat((0,v.Z)(c)).concat((0,v.Z)(l))],h),onMouseEnter:function(e){N&&N(e),J()},onMouseLeave:function(e){S&&S(e),Q()},ref:n},G),a.createElement(B,(0,i.Z)({appear:!0,in:H,onEnter:g((function(){Y(!1)}),k),onEntered:T,onEntering:_,onExit:A,onExited:g((function(){Y(!0)}),O),onExiting:M,timeout:W,direction:"top"===c?"down":"up"},z),p||a.createElement(R,(0,i.Z)({message:L,action:t},b)))))}));const O=(0,c.Z)((function(e){var n={top:8},t={bottom:8},o={justifyContent:"flex-end"},a={justifyContent:"flex-start"},u={top:24},c={bottom:24},s={right:24},l={left:24},d={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,i.Z)({},n,(0,r.Z)({},e.breakpoints.up("sm"),(0,i.Z)({},u,d))),anchorOriginBottomCenter:(0,i.Z)({},t,(0,r.Z)({},e.breakpoints.up("sm"),(0,i.Z)({},c,d))),anchorOriginTopRight:(0,i.Z)({},n,o,(0,r.Z)({},e.breakpoints.up("sm"),(0,i.Z)({left:"auto"},u,s))),anchorOriginBottomRight:(0,i.Z)({},t,o,(0,r.Z)({},e.breakpoints.up("sm"),(0,i.Z)({left:"auto"},c,s))),anchorOriginTopLeft:(0,i.Z)({},n,a,(0,r.Z)({},e.breakpoints.up("sm"),(0,i.Z)({right:"auto"},u,l))),anchorOriginBottomLeft:(0,i.Z)({},t,a,(0,r.Z)({},e.breakpoints.up("sm"),(0,i.Z)({right:"auto"},c,l)))}}),{flip:!1,name:"MuiSnackbar"})(A)}}]);
2//# sourceMappingURL=material-ui-core-Snackbar-63b037d4.js.map

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.