PageSourceSearch

https://kliemax.com/_next/static/chunks/2747.e23339f745ca065c.js

js kliemax.com collected 2026-10-01 13:08:20 UTC 6,636 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2747],{3333:(e,t,s)=>{s.d(t,{A:()=>a});var l=s(33308),r=s(94402);function a(e,t,s,i={}){let c={...i};s?.refreshInterval&&(c.refreshInterval=s.refreshInterval);let d=(0,r.$C)(e,t,s);""===t&&(d=null);let{data:n,error:m,mutate:x}=(0,l.u)(d,c);return{data:n,error:n?.error??m,mutate:x}}},62747:(e,t,s)=>{s.r(t),s.d(t,{default:()=>h});var l=s(15383),r=s(31912),a=s(56377),i=s(18159),c=s(89651),d=s(3333);function n(e){let t,s,{hours:l,minutes:r,seconds:a}=(t=Math.floor(e/1e3%60),s=Math.floor(e/6e4%60),{hours:Math.floor(e/36e5%24),minutes:s,seconds:t}),i=[];return l>0&&i.push(l),i.push(r),i.push(a),i.map(e=>e.toString().padStart(2,"0")).join(":")}function m(e,t,s){let l="",{media_type:r,parent_media_index:a,media_index:i,title:c,grandparent_title:d,full_title:n,friendly_name:m}=e;if("episode"===r&&s){let e=`S${a.toString().padStart(2,"0")}`,t=`E${i.toString().padStart(2,"0")}`;l=`${d}: ${e} \xb7 ${t} - ${c}`}else l=n;return t?`${l} (${m})`:l}function x({session:e,enableUser:t,showEpisodeNumber:s}){let{duration:r,view_offset:c,progress_percent:d,state:o,video_decision:h,audio_decision:p}=e,u=m(e,t,s);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex",children:[(0,l.jsx)("div",{className:"text-xs z-10 self-center ml-2 relative w-full h-4 grow mr-2",children:(0,l.jsx)("div",{className:"absolute w-full whitespace-nowrap text-ellipsis overflow-hidden",title:u,children:u})}),(0,l.jsxs)("div",{className:"self-center text-xs flex justify-end mr-1.5 pl-1",children:["direct play"===h&&"direct play"===p&&(0,l.jsx)(i.flQ,{className:"opacity-50"}),"copy"===h&&"copy"===p&&(0,l.jsx)(i.VfG,{className:"opacity-50"}),"copy"!==h&&"direct play"!==h&&("copy"!==p||"direct play"!==p)&&(0,l.jsx)(a.KNc,{className:"opacity-50"}),("copy"===h||"direct play"===h)&&"copy"!==p&&"direct play"!==p&&(0,l.jsx)(a.ofZ,{className:"opacity-50"})]})]}),(0,l.jsxs)("div",{className:"text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex",children:[(0,l.jsx)("div",{className:"absolute h-5 rounded-md bg-theme-200 dark:bg-theme-900/40 z-0",style:{width:`${d}%`}}),(0,l.jsxs)("div",{className:"text-xs z-10 self-center ml-1",children:["paused"===o&&(0,l.jsx)(a.bb6,{className:"inline-block w-4 h-4 cursor-pointer -mt-[1px] mr-1 opacity-80"}),"paused"!==o&&(0,l.jsx)(a.i8P,{className:"inline-block w-4 h-4 cursor-pointer -mt-[1px] mr-1 opacity-80"})]}),(0,l.jsx)("div",{className:"grow "}),(0,l.jsxs)("div",{className:"self-center text-xs flex justify-end mr-2 z-10",children:[n(c),(0,l.jsx)("span",{className:"mx-0.5 text-[8px]",children:"/"}),n(r)]})]})]})}function o({session:e,enableUser:t,showEpisodeNumber:s}){let{view_offset:r,progress_percent:c,state:d,video_decision:x,audio_decision:h}=e,p=m(e,t,s);return(0,l.jsxs)("div",{className:"text-theme-700 dark:text-theme-200 relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1 flex",children:[(0,l.jsx)("div",{className:"absolute h-5 rounded-md bg-theme-200 dark:bg-theme-900/40 z-0",style:{width:`${c}%`}}),(0,l.jsxs)("div",{className:"text-xs z-10 self-center ml-1",children:["paused"===d&&(0,l.jsx)(a.bb6,{className:"inline-block w-4 h-4 cursor-pointer -mt-[1px] mr-1 opacity-80"}),"paused"!==d&&(0,l.jsx)(a.i8P,{className:"inline-block w-4 h-4 cursor-pointer -mt-[1px] mr-1 opacity-80"})]}),(0,l.jsx)("div",{className:"text-xs z-10 self-center ml-2 relative w-full h-4 grow mr-2",children:(0,l.jsx)("div",{className:"absolute w-full whitespace-nowrap text-ellipsis overflow-hidden",title:p,children:p})}),(0,l.jsxs)("div",{className:"self-center text-xs flex justify-end mr-1.5 pl-1 z-10",children:["direct play"===x&&"direct play"===h&&(0,l.jsx)(i.flQ,{className:"opacity-50"}),"copy"===x&&"copy"===h&&(0,l.jsx)(i.VfG,{className:"opacity-50"}),"copy"!==x&&"direct play"!==x&&("copy"!==h||"direct play"!==h)&&(0,l.jsx)(a.KNc,{className:"opacity-50"}),("copy"===x||"direct play"===x)&&"copy"!==h&&"direct play"!==h&&(0,l.jsx)(a.ofZ,{className:"opacity-50"})]}),(0,l.jsx)("div",{className:"self-center text-xs flex justify-end mr-2 z-10",children:n(r)})]})}function h({service:e}){let{t}=(0,r.Bd)(),{widget:s}=e,{data:a,error:i}=(0,d.A)(s,"get_activity",{refreshInterval:5e3}),n=!!e.widget?.enableUser,m=e.widget?.expandOneStreamToTwoRows!==!1,p=!!e.widget?.showEpisodeNumber;if(i||a&&0===Object.keys(a.response.data).length)return(0,l.jsx)(c.A,{service:e,error:i??{message:t("tautulli.plex_connection_error")}});if(!a)return(0,l.jsxs)("div",{className:"flex flex-col pb-1 mx-1",children:[(0,l.jsx)("div",{className:"text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1",children:(0,l.jsx)("span",{className:"absolute left-2 text-xs mt-[2px]",children:"-"})}),m&&(0,l.jsx)("div",{className:"text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1",children:(0,l.jsx)("span",{className:"absolute left-2 text-xs mt-[2px]",children:"-"})})]});let u=[...a.response.data.sessions].sort((e,t)=>
1e.view_offset>t.view_offset?1:e.view_offset<t.view_offset?-1:0);if(0===u.length)return(0,l.jsxs)("div",{className:"flex flex-col pb-1 mx-1",children:[(0,l.jsx)("div",{className:"text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1",children:(0,l.jsx)("span",{className:"absolute left-2 text-xs mt-[2px]",children:t("tautulli.no_active")})}),m&&(0,l.jsx)("div",{className:"text-theme-700 dark:text-theme-200 text-xs relative h-5 w-full rounded-md bg-theme-200/50 dark:bg-theme-900/20 mt-1",children:(0,l.jsx)("span",{className:"absolute left-2 text-xs mt-[2px]",children:"-"})})]});if(m&&1===u.length){let e=u[0];return(0,l.jsx)("div",{className:"flex flex-col pb-1 mx-1",children:(0,l.jsx)(x,{session:e,enableUser:n,showEpisodeNumber:p})})}return(0,l.jsx)("div",{className:"flex flex-col pb-1 mx-1",children:u.map(e=>(0,l.jsx)(o,{session:e,enableUser:n,showEpisodeNumber:p},e.session_key))})}},94402:(e,t,s)=>{function l(e,t=null){return null==e||""===e?t:"number"==typeof e?Number.isInteger(e)&&e>=0?e:t:"string"==typeof e&&/^\d+$/.test(e)?Number(e):t}function r(e,t){let s=new URLSearchParams({group:e.service_group,service:e.service_name,index:e.index});return t&&s.append("endpoint",t),s}function a(e,t,s){let l=r(e,t);return s&&l.append("query",JSON.stringify(s)),`/api/services/proxy?${l.toString()}`}s.d(t,{$C:()=>a,Sk:()=>l,_V:()=>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.