@telepath-computer/television 0.1.128 → 0.1.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ (function(){const h=document.createElement("link").relList;if(h&&h.supports&&h.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))y(c);new MutationObserver(c=>{for(const l of c)if(l.type==="childList")for(const g of l.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&y(g)}).observe(document,{childList:!0,subtree:!0});function E(c){const l={};return c.integrity&&(l.integrity=c.integrity),c.referrerPolicy&&(l.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?l.credentials="include":c.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function y(c){if(c.ep)return;c.ep=!0;const l=E(c);fetch(c.href,l)}})();const R="url-target-request",I="url-target";function p(e){return typeof e=="object"&&e!==null}function _(e){return!p(e)||e.type!==R?!1:!("id"in e)}function T(e){return!p(e)||e.type!==I||typeof e.url!="string"&&e.url!==null?!1:!("id"in e)}function A(e){return!p(e)||e.type!=="wheel"||typeof e.deltaX!="number"||typeof e.shiftKey!="boolean"?!1:!("id"in e)}function N(e){return!p(e)||e.type!=="navigation-request"||typeof e.url!="string"||"replace"in e&&typeof e.replace!="boolean"||"sameDocument"in e&&typeof e.sameDocument!="boolean"||"native"in e&&typeof e.native!="boolean"?!1:!("id"in e)}function K(e){return!p(e)||e.type!=="filmstrip-key"||e.direction!==-1&&e.direction!==1?!1:!("id"in e)}function C(e){return!p(e)||e.type!=="swipe-move"||typeof e.deltaX!="number"?!1:!("id"in e)}function P(e){return!p(e)||e.type!=="swipe-end"||typeof e.velocityX!="number"?!1:!("id"in e)}function Y(e=window,h={}){if(e.parent===e)return;const E=e;if(E.__televisionArtifactBridgeInstalled===!0)return;E.__televisionArtifactBridgeInstalled=!0;const y=()=>{e.document.documentElement&&(e.document.documentElement.style.touchAction="pan-y",e.document.documentElement.style.overscrollBehaviorX="contain",e.document.documentElement.style.overscrollBehaviorY="contain"),e.document.body&&(e.document.body.style.overscrollBehaviorX="contain",e.document.body.style.overscrollBehaviorY="contain")};if(y(),e.document.body||e.document.addEventListener("DOMContentLoaded",y,{once:!0}),h.reportNavigation!==!1){const o=r=>{e.parent.postMessage({type:"navigation-request",...r},"*")};o({url:e.location.href});const t=e.navigation;if(t)t.addEventListener("navigate",r=>{var d,f;const i=r,a=(d=i.destination)==null?void 0:d.url;if(typeof a!="string")return;const n=((f=i.destination)==null?void 0:f.sameDocument)===!0,s={url:a,...i.navigationType==="replace"?{replace:!0}:{},...n?{sameDocument:!0}:{}};if(n){o(s);return}try{if(new URL(a,e.location.href).origin===e.location.origin){o({...s,native:!0});return}}catch{}i.canIntercept!==!1&&i.preventDefault(),o(s)});else{e.document.addEventListener("click",a=>{var b;const n=a;if(n.metaKey||n.ctrlKey||n.shiftKey||n.altKey)return;const s=(b=e.document.defaultView)==null?void 0:b.Element;if(!s||!(n.target instanceof s))return;const u=n.target.closest("a[href]");if(!u||u.target&&u.target.toLowerCase()!=="_self"||u.hasAttribute("download"))return;const d=u.getAttribute("href");if(!d||d.startsWith("javascript:"))return;let f;try{f=new URL(u.href,e.document.baseURI)}catch{return}if(f.origin===e.location.origin&&f.pathname===e.location.pathname&&f.search===e.location.search&&f.hash!==""){o({url:f.href,sameDocument:!0});return}n.preventDefault(),o({url:f.href})},!0);const r=e.history.pushState.bind(e.history),i=e.history.replaceState.bind(e.history);e.history.pushState=function(...n){r(...n),o({url:e.location.href,sameDocument:!0})},e.history.replaceState=function(...n){i(...n),o({url:e.location.href,replace:!0,sameDocument:!0})},e.addEventListener("popstate",()=>{o({url:e.location.href,sameDocument:!0})}),e.addEventListener("hashchange",()=>{o({url:e.location.href,sameDocument:!0})}),e.document.addEventListener("submit",a=>{var b,v;const n=a,s=n.target,u=(b=e.document.defaultView)==null?void 0:b.HTMLFormElement;if(!u||!(s instanceof u)||s.target&&s.target.toLowerCase()!=="_self")return;n.preventDefault();const d=s.method.toLowerCase(),f=new URL(s.action||e.location.href,e.document.baseURI);if(d==="get"){const L=(v=e.document.defaultView)==null?void 0:v.FormData;if(!L)return;const S=new URLSearchParams;for(const[M,X]of new L(s))typeof X=="string"&&S.append(M,X);f.search=S.toString()}o({url:f.href})},!0)}}const c=o=>{var a,n;const t=(a=e.document.defaultView)==null?void 0:a.Element;if(!t||!(o instanceof t))return!1;const i=o.closest("input, textarea, select, [contenteditable], [role='textbox'], [role='searchbox'], [role='combobox'], [role='spinbutton'], [role='slider']");return i?i.hasAttribute("contenteditable")?((n=i.getAttribute("contenteditable"))==null?void 0:n.toLowerCase())!=="false":!0:!1};e.addEventListener("keydown",o=>{const t=o;t.key!=="ArrowLeft"&&t.key!=="ArrowRight"||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||c(t.target)||(t.preventDefault(),e.parent.postMessage({type:"filmstrip-key",direction:t.key==="ArrowRight"?1:-1},"*"))},{capture:!0}),e.addEventListener("wheel",o=>{const t=o,r=t.shiftKey&&t.deltaX===0&&t.deltaY!==0,i=r?t.deltaY:t.deltaX,a=Math.abs(i),n=r?0:Math.abs(t.deltaY);a<=n||(t.preventDefault(),e.parent.postMessage({type:"wheel",deltaX:i,shiftKey:t.shiftKey},"*"))},{passive:!1});const l=8,g=100,D=1e3,m=new Map;e.addEventListener("pointerdown",o=>{const t=o;t.pointerType==="touch"&&m.set(t.pointerId,{startX:t.clientX,startY:t.clientY,lastX:t.clientX,offset:0,active:!1,discarded:!1,samples:[{time:t.timeStamp,offset:0}]})},{passive:!0}),e.addEventListener("pointermove",o=>{const t=o,r=m.get(t.pointerId);if(!r||r.discarded)return;if(!r.active){const s=t.clientX-r.startX,u=t.clientY-r.startY,d=Math.abs(s),f=Math.abs(u);if(d<l&&f<l)return;if(f>=d){r.discarded=!0;return}r.active=!0}const i=t.clientX-r.lastX;r.lastX=t.clientX,r.offset+=i,r.samples.push({time:t.timeStamp,offset:r.offset});const a=t.timeStamp-g;let n=0;for(let s=0;s<r.samples.length;s+=1){if(r.samples[s].time>=a){n=s;break}n=s+1}if(n>0){const s=Math.max(0,n-1);r.samples.splice(0,s)}e.parent.postMessage({type:"swipe-move",deltaX:i},"*"),t.preventDefault()},{passive:!1}),e.addEventListener("pointerup",o=>{const t=o,r=m.get(t.pointerId);if(!r||(m.delete(t.pointerId),!r.active))return;let i=0;if(r.samples.length>=2){const a=r.samples[0],n=r.samples[r.samples.length-1],s=n.time-a.time;s>0&&(i=(n.offset-a.offset)/s*D)}e.parent.postMessage({type:"swipe-end",velocityX:i},"*")}),e.addEventListener("pointercancel",o=>{const t=o,r=m.get(t.pointerId);r&&(m.delete(t.pointerId),r.active&&e.parent.postMessage({type:"swipe-end",velocityX:0},"*"))})}export{I as U,K as a,_ as b,N as c,C as d,P as e,Y as f,T as g,R as h,A as i};
@@ -0,0 +1,71 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg id="TV_-_Black" data-name="TV - Black" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 55 55">
3
+ <defs>
4
+ <style>
5
+ .cls-1, .cls-2 {
6
+ fill: none;
7
+ }
8
+
9
+ .cls-3 {
10
+ fill: #0015ff;
11
+ }
12
+
13
+ .cls-4 {
14
+ fill: #ff01d0;
15
+ }
16
+
17
+ .cls-5 {
18
+ fill: #40d2b3;
19
+ }
20
+
21
+ .cls-6 {
22
+ fill: url(#linear-gradient);
23
+ }
24
+
25
+ .cls-7 {
26
+ fill: #38c428;
27
+ }
28
+
29
+ .cls-2 {
30
+ stroke: #fff;
31
+ stroke-width: 3px;
32
+ }
33
+
34
+ .cls-8 {
35
+ fill: #fff;
36
+ }
37
+
38
+ .cls-9 {
39
+ fill: #ffcd27;
40
+ }
41
+
42
+ .cls-10 {
43
+ fill: #d24043;
44
+ }
45
+
46
+ .cls-11 {
47
+ clip-path: url(#clippath);
48
+ }
49
+ </style>
50
+ <linearGradient id="linear-gradient" x1="27.5" y1="1.45" x2="27.5" y2="53.55" gradientUnits="userSpaceOnUse">
51
+ <stop offset="0" stop-color="#000"/>
52
+ <stop offset="1" stop-color="#262626"/>
53
+ </linearGradient>
54
+ <clipPath id="clippath">
55
+ <path class="cls-1" d="M14.2,7.7h26.6c3.15,0,5.7,2.66,5.7,5.94v27.72c0,3.28-2.55,5.94-5.7,5.94H14.2c-3.15,0-5.7-2.66-5.7-5.94V13.64c0-3.28,2.55-5.94,5.7-5.94Z"/>
56
+ </clipPath>
57
+ </defs>
58
+ <path class="cls-6" d="M12.5,1.45h30c5.47,0,10.48,4.46,10.89,9.98.73,10.7.73,21.44,0,32.13-.41,5.52-5.42,9.98-10.89,9.98H12.5c-5.47,0-10.48-4.46-10.89-9.98-.73-10.7-.73-21.44,0-32.13C2.02,5.91,7.03,1.45,12.5,1.45Z"/>
59
+ <g class="cls-11">
60
+ <g>
61
+ <rect class="cls-8" x="8.5" y="7.7" width="38" height="39.6" rx="5.7" ry="5.7"/>
62
+ <path class="cls-7" d="M27.5,48.78V6.71h-9.98v42.07h9.98Z"/>
63
+ <path class="cls-4" d="M27.5,6.71v42.07h9.97V6.71h-9.97Z"/>
64
+ <path class="cls-5" d="M22.75,48.29c-3.8-18.22-1.58-34.98,0-41.08h-11.88v41.08c3.96.33,11.88.79,11.88,0Z"/>
65
+ <path class="cls-10" d="M32.25,7.21c3.8,18.22,1.58,34.98,0,41.08h11.88V7.21c-3.96-.33-11.88-.79-11.88,0Z"/>
66
+ <path class="cls-9" d="M15.62,47.3c-5.7-17.42-2.38-33.66,0-39.6H7.07v39.6s9.03.49,8.55,0Z"/>
67
+ <path class="cls-3" d="M38.92,6.93c5.69,17.76,2.37,34.31,0,40.36h8.53V6.93s-9.01-.5-8.53,0Z"/>
68
+ </g>
69
+ </g>
70
+ <path class="cls-2" d="M14.2,8.74h26.6c2.56,0,5.25,2.06,5.8,4.64,1.89,9.31,1.89,18.91,0,28.23-.55,2.58-3.25,4.64-5.8,4.64H14.2c-2.56,0-5.25-2.06-5.8-4.64-1.89-9.31-1.89-18.91,0-28.23.55-2.58,3.25-4.64,5.8-4.64Z"/>
71
+ </svg>