PageSourceSearch

https://www.shipxplorer.com/js/chunks/notifications-Notifications.js?id=bf1e72f79192dbc0

js shipxplorer.com collected 2026-09-26 11:39:27 UTC 5,873 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3038],{39298:(t,n,e)=>{e.r(n),e.d(n,{default:()=>_});var r=e(14041),o=e(39716),i=e(99870),a=e.n(i),u=e(3375),c=e(11778),s=e(55359),f=e(58959),l=e(42922),d=e(8561),p=e(40822),y=e(75236),m=e(83807),b=e(51638),h=e(31085);function v(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function g(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?v(Object(e),!0).forEach((function(n){A(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function A(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function j(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}(t,n)||w(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,n){if(t){if("string"==typeof t)return S(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?S(t,n):void 0}}function S(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var x=o.Ay.div.withConfig({displayName:"Notifications__NotificationsStyle",componentId:"sc-72gj4n-0"})(["position:relative;> ","{position:relative;> #badge{position:absolute;left:50%;bottom:50%;width:15px;height:15px;border-radius:100%;background-color:",";display:flex;align-items:center;justify-content:center;font-size:.7em;color:",";}}> #notification-toasts{position:absolute;top:100%;height:calc(100vh - ",");color:",";font-size:15px;width:400px;right:-90px;pointer-events:none;overflow:hidden;filter:",";> ","{pointer-events:all;transition:all ",";transform:translateX(50%);opacity:0;max-height:0;&.adjusted{max-height:100vh;}&.visible{transform:translateX(0);opacity:1;}}}",""],l.A,s.eq,s.Ql,c.FS,s.Ql,s._8,y.m,c.fC,(0,c.Qq)("\n\t\t> #notification-toasts {\n\t\t\theight: calc(100vh - ".concat(c.bm,");\n\t\t\tleft: 50%;\n\t\t\tright: auto;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\t")));const _=function(){var t=(0,d.A1)("notifications.unread"),n=O(t,1),e=n[0],o=(0,d.A1)("notifications.open"),i=O(o,2),s=i[0],v=i[1],w=(0,r.useState)((0,p.getNotificationsEnabled)()),S=O(w,2),_=S[0],E=S[1],C=(0,r.useState)([]),D=O(C,2),N=D[0],P=D[1],I=(0,r.useState)({}),L=O(I,2),T=L[0],R=L[1],U=(0,r.useState)({}),V=O(U,2),H=V[0],k=V[1];(0,r.useEffect)((function(){(0,p.onNotificationsToggle)(E),(0,p.onNotificationReceived)((function(t){if(!d.yA["notifications.open"]){var n=(0,u.A)();P((function(e){return[g({id:n},t)].concat(j(e))})),requestAnimationFrame((function(){return R((function(t){return g(g({},t),{},A({},n,!0))}))})),setTimeout((function(){return k((function(t){return g(g({},t),{},A({},n,!0))}))}),c.hH),setTimeout((function(){k((function(t){return(0,f.yE)(t,n)})),setTimeout((function(){P((function(t){var e=t.findIndex((function(t){return t.id===n}));return e>=0?[].concat(j(t.slice(0,e)),j(t.slice(e+1))):t})),R((function(t){return(0,f.yE)(t,n)}))}),c.hH)}),5e3)}}))}),[]);for(var q=arguments.length,Q=new Array(q),X=0;X<q;X++)Q[X]=arguments[X];return(0,h.jsxs)(x,g(g({},Q),{},{children:[(0,h.jsxs)(l.A,{className:a()({active:s}),onClick:function(){return v(!s)},children:[_?(0,h.jsx)(m.A,{}):(0,h.jsx)(b.A,{}),!!e&&(0,h.jsx)("div",{id:"badge",children:e})]}),(0,h.jsx)("div",{id:"notification-toasts",children:N.map((function(t){return(0,h.jsx)(y.A,{className:a()({adjusted:T[t.id],visible:H[t.id]}),notification:t},t.id)}))})]}))}},3375:(t,n,e)=>{var r;e.d(n,{A:()=>l});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const u=function(t){return"string"==typeof t&&a.test(t)};for(var c=[],s=0;s<256;++s)c.push((s+256).toString(16).substr(1));const f=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(c[t[n+0]]+c[t[n+1]]+c[t[n+2]]+c[t[n+3]]+"-"+c[t[n+4]]+c[t[n+5]]+"-"+c[t[n+6]]+c[t[n+7]]+"-"+c[t[n+8]]+c[t[n+9]]+"-"+c[t[n+10]]+c[t[n+11]]+c[t[n+12]]+c[t[n+13]]+c[t[n+14]]+c[t[n+15]]).toLowerCase();
vendor: 232 bytes, line 1
1if(!u(e))throw TypeError("Stringified UUID is invalid");return e};const l=function(t,n,e){var r=(t=t||{}).random||(t.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){e=e||0;for(var o=0;o<16;++o)n[e+o]=r[o];return n}return f(r)}}}]);

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.