PageSourceSearch

https://www.molotov.tv/6797-533ac9a7e19b95baaba2.js

js molotov.tv collected 2026-09-24 09:00:42 UTC 7,227 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_molotovtv_js_front_landing=self.webpackChunk_molotovtv_js_front_landing||[]).push([[6797],{36797:(e,t,n)=>{n.r(t),n.d(t,{default:()=>G});var r=n(23029),s=n(92901),c=n(9417),i=n(85501),a=n(56822),o=n(53954),l=n(64467),d=n(96540),u=n(61225),v=n(10453),p=n(32485),f=n.n(p),A=n(63950),y=n.n(A),h=n(6021),m=n(34521),g=n(24668),j=n(15992),x=n(21695),b=n(86800),D=n(74848);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,o.A)(e);if(t){var s=(0,o.A)(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return(0,a.A)(this,n)}}var O=function(e){(0,i.A)(n,e);var t=k(n);function n(){var e;(0,r.A)(this,n);for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,l.A)((0,c.A)(e),"deleteDevice",(function(t){(0,e.props.deleteDevice)(t)})),e}return(0,s.A)(n,[{key:"render",value:function(){var e=this,t=this.props.devices;return(0,D.jsxs)("div",{children:[(0,D.jsxs)("div",{className:b.A.subtitle,children:[t.count," ",t.count>1?j.A.devices.remaining_devices:j.A.devices.remaining_device]}),(0,D.jsx)("div",{className:b.A.allowedDevicesMessage,children:g.A.advanced(j.A.devices.allowedDevicesMessage,{devicesCountMax:x.A.maxDevicesCount})}),(0,D.jsxs)("div",{className:b.A.currentDevicesRegistered,children:[t.devicesList.length>0&&j.A.devices.currentDevicesRegistered,0===t.devicesList.length&&j.A.devices.noDevicesRegistered]}),t.devicesList.length>0&&(0,D.jsx)("div",{className:b.A.content,children:t.devicesList.map((function(t,n){return(0,D.jsxs)(h.A,{customStyle:b.A.panel,children:[(0,D.jsxs)("div",{className:b.A.block,children:[""===t.type&&(0,D.jsx)(m.A,{type:m.B.tablet,rootStyle:b.A.icon}),t.type===x.A.devicesType.desktop&&(0,D.jsx)(m.A,{type:m.B.desktop,rootStyle:b.A.icon}),t.type===x.A.devicesType.tablet&&(0,D.jsx)(m.A,{type:m.B.tablet,rootStyle:b.A.icon}),t.type===x.A.devicesType.phone&&(0,D.jsx)(m.A,{type:m.B.tablet,rootStyle:b.A.icon}),t.type===x.A.devicesType.tv&&(0,D.jsx)(m.A,{type:m.B.tv,rootStyle:b.A.icon})]}),(0,D.jsx)("div",{className:f()(b.A.block,b.A.deviceType),children:t.type===x.A.devicesType.tv?(0,D.jsxs)("span",{children:["TV ",(0,D.jsx)("span",{className:b.A.brand,children:t.brand})," ",t.model]}):(0,D.jsx)("span",{children:t.model})}),(0,D.jsxs)("div",{className:f()(b.A.block,b.A.usageDates),children:[(0,D.jsxs)("div",{className:b.A.lastUsage,children:[j.A.devices.last_using," : ",t.lastConnectedAt]}),(0,D.jsxs)("div",{children:[j.A.devices.first_using," : ",t.firstConnectedAt]})]}),(0,D.jsx)("div",{className:b.A.blockRight,children:(0,D.jsxs)("a",{href:"#",onClick:function(n){n.preventDefault(),e.deleteDevice(t.hash)},className:b.A.linkDelete,"aria-label":"Delete link",children:[(0,D.jsx)("span",{className:b.A.labelDelete,children:j.A.delete}),(0,D.jsx)(m.A,{iconStyle:b.A.iconTrash,onClick:e.deleteDevice,type:m.B.trash})]})})]},n)}))})]})}}]),n}(d.Component);(0,l.A)(O,"defaultProps",{devices:{},deleteDevice:y()});var _=n(42917),N=n(73563),R=n(3418),P=n(84857),M=n(15871),S=n(47574);function C(e){return{accessTokenRequired:!0,request:{url:x.A.endpoints.devices,method:"DELETE",body:{type:"device",id:e}},onStart:function(){return{type:P.fZJ}},onSuccess:function(t,n,r,s){var c=s().devices,i=[];return c.data&&(c.data.map((function(t){t.hash!==e&&i.push(t)})),r(function(e){return{type:P.r_0,payload:e}}(i))),{type:P.UeI}},onError:function(e,t,n){return n((0,M.h)(e.error.user_message)),{type:P.UeI}}}}var T=n(86936),w=n(97132),B=n(43683),E=n(72454);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const V=(0,w.Mz)([function(e){return e.devices}],(function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?L(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({devicesList:[],count:0},e);return E.A.isArray(e.data)&&(t.count=e.data.length,e.data.map((function(e){var n=e.brand,r=e.hash,s=e.created_at,c=e.last_connected_at,i=e.manufacturer,a=e.model,o=e.type;t.devicesList.push({brand:n,hash:r,lastConnectedAt:B.A.formatDayHuman(1e3*c),firstConnectedAt:B.A.formatDayHuman(1e3*s),manufacturer:i,model:a,type:o})}))),t}));var q,I,H,U=n(27337),W=n(53622);function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,o.A)(e);if(t){var s=(0,o.A)(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return(0,a.A)(this,n)}}var G=(q=(0,u.Ng)((function(e){return{devices:V(e),navVisible:e.ui.navVisible}})),q((H=function(e){(0,i.A)(n,e);var t=z(n);function n(){var e;(0,r.A)(this,n);for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,l.A)((0,c.A)(e),"deleteDevice",(function(t){e.props.dispatch((0,T.h)(U.A.confirm,{title:j.A.devices.deleteTitle,messageComponent:e.getDeleteModalMessage()},(function(){e.props.dispatch(C(t))})))})),(0,l.A)((0,c.A)(e),"getDeleteModalMessage",(function(){return(0,D.jsxs)("div",{children:[(0,D.jsx)("div",{className:W.A.deleteMessage,children:j.A.devices.deleteMessage}),(0,D.jsxs)("div",{className:W.A.deleteMessageWarning,children:[(0,D.jsx)("span",{className:W.A.infoIcon,children:"!"}),j.A.devices.deleteMessageWarning]})]})})),e}return(0,s.A)(n,[{key:"componentDidMount",value:function(){this.props.dispatch({accessTokenRequired:!0,request:{url:x.A.endpoints.devices,method:"GET"},onStart:function(){return{type:P.RtH}},onSuccess:function(e){return{type:P.Pgx,payload:e}},onError:function(e){return{type:P.XxD,payload:S.A.errorPayload(e.error.user_message)}}}),R.A.trackPage("my_devices")}},{key:"render",value:function(){var e=this.props,t=e.devices,n=e.navVisible;return(0,D.jsx)(N.A,{navVisible:n,children:(0,D.jsxs)("div",{className:W.A.root,children:[(0,D.jsx)(_.A,{title:j.A.devices.my_devices}),t.pending&&0===t.devicesList.length&&(0,D.jsx)(v.A,{centerInParent:!0}),!t.pending&&(0,D.jsx)(O,{devices:t,deleteDevice:this.deleteDevice})]})})}}]),n}(d.Component),(0,l.A)(H,"defaultProps",{devices:{}}),I=H))||I)},72454:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(60436),s=/array/i;const c={isArray:function(e){return Array.isArray?Array.isArray(e):s.test(Object.prototype.toString.call(e))},shuffleArray:function(e){for(var t=(0,r.A)(e),n=t.length-1;n>0;n--){var s=Math.floor(Math.random()*(n+1)),c=[t[s],t[n]];t[n]=c[0],t[s]=c[1]}return t}}}}]);
2//# sourceMappingURL=6797-533ac9a7e19b95baaba2.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.