@banou/ftube 0.0.0-stage → 0.0.0

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.
Files changed (91) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +44 -2
  3. package/__yt_engine__/engine.html +9 -0
  4. package/app.webmanifest +31 -0
  5. package/assets/account-BL8Hv7lS.js +157 -0
  6. package/assets/account-By94iboj.js +1 -0
  7. package/assets/account-DfiXzypA-YE6OyKjK.js +1 -0
  8. package/assets/account-generation-BP_-Qyck-BOth6YQ_.js +1 -0
  9. package/assets/agent-source-E4g0cDzU.js +1 -0
  10. package/assets/api-1NDCtwel-CAaxX8P1.js +3 -0
  11. package/assets/binary-encoding-By5K7InN.js +1 -0
  12. package/assets/build-CNn3bm6X.js +1 -0
  13. package/assets/busy-C1JPjoZ_-CJ0641jK.js +1 -0
  14. package/assets/cards-Csel8naI.js +2334 -0
  15. package/assets/channel-B5f9YTIf.js +1160 -0
  16. package/assets/client-version-D9kIz6Gz.js +1 -0
  17. package/assets/comments-CJp9O808.js +612 -0
  18. package/assets/dislikes-DH5jCVEY.js +1 -0
  19. package/assets/dist-7VpLCl1k.js +1 -0
  20. package/assets/dist-BOrL1gYg.js +2 -0
  21. package/assets/downloads-CMXDjA_E.js +191 -0
  22. package/assets/egress.worker-DopXr5uP.js +104 -0
  23. package/assets/engine-B_kFyW7L.js +2 -0
  24. package/assets/feed-channels-Dg2mvF5x.js +251 -0
  25. package/assets/feed-groups-CnyR4sOO.js +160 -0
  26. package/assets/feed-history-BDAGG9N5.js +368 -0
  27. package/assets/feed-playlists-DcGR2AL6.js +167 -0
  28. package/assets/feed-subscriptions-Sm3tKz4P.js +165 -0
  29. package/assets/feed-you-lxbqknXX.js +110 -0
  30. package/assets/formats-CDwXfKnr.js +1 -0
  31. package/assets/frame-BrGNSf3s.js +2 -0
  32. package/assets/fs-CjRTQ7Nu.js +1 -0
  33. package/assets/fs-CwRtKje1-CBsYhX2-.js +1 -0
  34. package/assets/fullscreen-view-BLgosU84.js +269 -0
  35. package/assets/group-C00s0aT7.js +183 -0
  36. package/assets/groups-button-CvVnqwlu.js +25 -0
  37. package/assets/hashtag-CCIhITaL.js +115 -0
  38. package/assets/icons-DKsqNLSs.js +1 -0
  39. package/assets/index-A5dHbptn.css +1 -0
  40. package/assets/index-DwsYJ-bu.js +1328 -0
  41. package/assets/lib-h0P14ZFl.js +70 -0
  42. package/assets/linkify-B6hdFhsL.js +1 -0
  43. package/assets/packages-C3w3tSjj-BCtDk0vj.js +1 -0
  44. package/assets/party-CUcxsJDF.js +180 -0
  45. package/assets/playlist-DF7wsidw.js +521 -0
  46. package/assets/playlist-card-Btoc7D8f.js +91 -0
  47. package/assets/playlist-panel-D97BwT1f.js +199 -0
  48. package/assets/post-CQ9mfVos.js +39 -0
  49. package/assets/post-card-ZUQixO1G.js +76 -0
  50. package/assets/privacy-hkbqXFeB.js +46 -0
  51. package/assets/protobuf-BXZ2dCCc.js +1 -0
  52. package/assets/read-more-BhddUSlS.js +20 -0
  53. package/assets/rich-text-07paR5O3.js +25 -0
  54. package/assets/roboto-cyrillic-ext-BCp_3N7R.woff2 +0 -0
  55. package/assets/roboto-cyrillic-fOt7epNf.woff2 +0 -0
  56. package/assets/roboto-greek-DlT9XTxE.woff2 +0 -0
  57. package/assets/roboto-greek-ext-Bgw4czJT.woff2 +0 -0
  58. package/assets/roboto-latin-ccAYIvAh.woff2 +0 -0
  59. package/assets/roboto-latin-ext-DYIxWhlt.woff2 +0 -0
  60. package/assets/roboto-math-4a3xuzGk.woff2 +0 -0
  61. package/assets/roboto-symbols-B7iHSfaG.woff2 +0 -0
  62. package/assets/roboto-vietnamese-_f1XEJpo.woff2 +0 -0
  63. package/assets/rooms-B-AvBY-c-FNDqRDHE.js +1 -0
  64. package/assets/rooms-B91zuirR.js +1 -0
  65. package/assets/save-menu-DF1WKqSE.js +462 -0
  66. package/assets/search-Cx5IpDtZ.js +1026 -0
  67. package/assets/settings-kESE_uBm.js +99 -0
  68. package/assets/shaka-BwT9pJcV.js +36 -0
  69. package/assets/share-dialog-Cp0BJ6bg.js +156 -0
  70. package/assets/shorts-BxDB7m0c.js +686 -0
  71. package/assets/shorts-grid-Bgbkl5dP.js +11 -0
  72. package/assets/sign-in-Bx3zmj-m.js +97 -0
  73. package/assets/signed-out-prompt-CEAx65kq.js +79 -0
  74. package/assets/signin-DkI8Ogzz.js +18 -0
  75. package/assets/social-bXt3vmd4.js +1 -0
  76. package/assets/video-card-compact-r-K4XyDb.js +190 -0
  77. package/assets/watch-CkxSP1IA.js +1802 -0
  78. package/assets/web-BNanCsH5.js +43 -0
  79. package/favicon.ico +0 -0
  80. package/favicon.svg +5 -0
  81. package/icons/icon-192.png +0 -0
  82. package/icons/icon-512.png +0 -0
  83. package/index-Bj-Q3X8Q.js +4120 -0
  84. package/index.html +32 -0
  85. package/package.json +45 -4
  86. package/store/background.webp +0 -0
  87. package/store/channel.webp +0 -0
  88. package/store/cover.webp +0 -0
  89. package/store/phone.webp +0 -0
  90. package/store/search.webp +0 -0
  91. package/store/watch.webp +0 -0
@@ -0,0 +1,156 @@
1
+ import{en as e,f as t,on as n,p as r,sn as i}from"./icons-DKsqNLSs.js";import{O as a,a as o,c as s,d as c,g as l,o as u,ot as d,s as f,t as p}from"./sign-in-Bx3zmj-m.js";import{Dt as m,G as h,Ot as g,Z as _,c as v,d as y,xn as b}from"./cards-Csel8naI.js";i();var x=l(`
2
+ mutation RateVideo($id: ID!, $status: LikeStatus!) {
3
+ rateVideo(id: $id, status: $status) {
4
+ id
5
+ likeStatus
6
+ }
7
+ }
8
+ `),S=(e,t)=>{let[r,i]=a(x),{ready:s,signedIn:l}=c(),[u,d]=n();return{rate:n=>{if(!t||s&&!l){p();return}let r=t===n?`INDIFFERENT`:n;d(e=>({status:n,count:(e?.count??0)+1,on:r===n})),i({id:e,status:r}).then(e=>{e.error&&o(_(e.error))})},rating:r.fetching,presses:e=>u?.status===e?u.count:0,burst:e=>u?.status===e&&u.on}},C=d`
9
+ position: relative;
10
+ display: inline-grid;
11
+ place-items: center;
12
+
13
+ &.pop svg {
14
+ animation: rate-bounce 0.5s ease-out;
15
+ }
16
+
17
+ .burst {
18
+ position: absolute;
19
+ inset: -40%;
20
+ background: repeating-conic-gradient(from -4deg, currentColor 0 8deg, transparent 0 45deg);
21
+ mask: radial-gradient(closest-side, transparent 56%, #000 58% 86%, transparent 88%);
22
+ opacity: 0;
23
+ pointer-events: none;
24
+ animation: rate-burst 0.45s ease-out;
25
+ }
26
+
27
+ @media (prefers-reduced-motion: reduce) {
28
+ &.pop svg,
29
+ .burst {
30
+ animation: none;
31
+ }
32
+ }
33
+
34
+ @keyframes rate-bounce {
35
+ 25% {
36
+ transform: scale(1.3) rotate(-12deg);
37
+ }
38
+
39
+ 55% {
40
+ transform: scale(0.9);
41
+ }
42
+
43
+ 80% {
44
+ transform: scale(1.05);
45
+ }
46
+ }
47
+
48
+ @keyframes rate-burst {
49
+ from {
50
+ opacity: 1;
51
+ transform: scale(0.6);
52
+ }
53
+
54
+ to {
55
+ opacity: 0;
56
+ transform: scale(1.15);
57
+ }
58
+ }
59
+ `,w=({status:e,size:i,on:a,presses:o,burst:c})=>{let l=e===`LIKE`?t:r,[u,d]=n(0),p=o>u;return s(`span`,{css:C,className:p?`pop`:void 0,onAnimationEnd:e=>{e.animationName===`rate-bounce`&&d(o)},children:[f(l,{size:i,strokeWidth:1.5,fill:a?`currentColor`:`none`}),p&&c?f(`span`,{className:`burst`}):void 0]},o)};i();var T=d`
60
+ display: flex;
61
+ flex-direction: column;
62
+ gap: 1.6rem;
63
+
64
+ /* contained, or the dialog's column grows to the whole row and runs off a phone's screen */
65
+ .targets {
66
+ contain: inline-size;
67
+ --rail-arrow-top: 1.6rem;
68
+ }
69
+
70
+ .targets .arrow.left {
71
+ left: -1.4rem;
72
+ }
73
+
74
+ .targets .arrow.right {
75
+ right: -1.4rem;
76
+ }
77
+
78
+ .target {
79
+ width: 7rem;
80
+ display: flex;
81
+ flex-direction: column;
82
+ align-items: center;
83
+ gap: 0.8rem;
84
+ padding: 0.6rem 0 0.5rem;
85
+ border: none;
86
+ background: none;
87
+ color: var(--text-primary);
88
+ font: inherit;
89
+ font-size: 1.2rem;
90
+ line-height: 1.8rem;
91
+ text-align: center;
92
+ text-decoration: none;
93
+ cursor: pointer;
94
+ }
95
+
96
+ .target svg {
97
+ flex: none;
98
+ width: 6rem;
99
+ height: 6rem;
100
+ }
101
+
102
+ .link-row {
103
+ display: flex;
104
+ gap: 0.8rem;
105
+ }
106
+
107
+ .link {
108
+ flex: 1;
109
+ min-width: 0;
110
+ height: 4rem;
111
+ padding: 0 1.2rem;
112
+ border: 1px solid var(--border);
113
+ border-radius: 0.8rem;
114
+ background: var(--bg-input);
115
+ color: var(--text-primary);
116
+ font-size: 1.4rem;
117
+ }
118
+
119
+ .copy {
120
+ flex: none;
121
+ height: 4rem;
122
+ padding: 0 1.6rem;
123
+ border: none;
124
+ border-radius: 0.8rem;
125
+ background: var(--bg-inverse);
126
+ color: var(--text-inverse);
127
+ font-size: 1.4rem;
128
+ font-weight: 500;
129
+ cursor: pointer;
130
+ }
131
+
132
+ .copy:hover {
133
+ background: var(--bg-inverse-hover);
134
+ }
135
+
136
+ .start-at {
137
+ display: flex;
138
+ align-items: center;
139
+ gap: 0.8rem;
140
+ font-size: 1.4rem;
141
+ color: var(--text-primary);
142
+ }
143
+
144
+ .embed {
145
+ width: 100%;
146
+ min-height: 8rem;
147
+ padding: 0.8rem 1.2rem;
148
+ border: 1px solid var(--border);
149
+ border-radius: 0.8rem;
150
+ background: var(--bg-input);
151
+ color: var(--text-secondary);
152
+ font-family: monospace;
153
+ font-size: 1.2rem;
154
+ resize: vertical;
155
+ }
156
+ `,E=e=>{let t=navigator.clipboard;if(!t){o(`Could not copy the link`);return}t.writeText(e).then(()=>o(`Link copied to clipboard`),()=>o(`Could not copy the link`))},D=e=>Object.entries(e).flatMap(([e,t])=>t===void 0?[]:[`${e}=${encodeURIComponent(t)}`]).join(`&`),O=({children:e})=>f(`svg`,{viewBox:`0 0 60 60`,"aria-hidden":`true`,children:e}),k=[{name:`Messages`,mark:s(u,{children:[f(`circle`,{cx:`30`,cy:`30`,r:`29.5`,fill:`#fff`,stroke:`#e5e5e5`}),f(`path`,{d:`M22 18h16a8 8 0 0 1 8 8v4a8 8 0 0 1-8 8h-9l-7 5v-5a8 8 0 0 1-8-8v-4a8 8 0 0 1 8-8z`,fill:`#578cff`})]}),address:e=>`https://messages.google.com/web/share?${D({text:e})}`},{name:`WhatsApp`,mark:s(u,{children:[f(`circle`,{cx:`30`,cy:`30`,r:`30`,fill:`#25d366`}),f(`path`,{d:`M30 17a13 13 0 0 0-11.2 19.6L17 43l6.6-1.7A13 13 0 1 0 30 17z`,fill:`none`,stroke:`#fff`,strokeWidth:`2.6`,strokeLinejoin:`round`}),f(`path`,{d:`M25 24.5c0 6 4.5 10.5 10.5 10.5`,fill:`none`,stroke:`#fff`,strokeWidth:`3.4`,strokeLinecap:`round`})]}),address:e=>`https://wa.me/?${D({text:e})}`},{name:`Facebook`,mark:s(u,{children:[f(`circle`,{cx:`30`,cy:`30`,r:`30`,fill:`#3b5998`}),f(`path`,{d:`M32.6 47V31.6h5l.8-5.6h-5.8v-3.4c0-1.6.5-2.7 2.8-2.7h3.1v-5a40 40 0 0 0-4.5-.2c-4.5 0-7.4 2.7-7.4 7.6V26h-5v5.6h5V47z`,fill:`#fff`})]}),address:e=>`https://www.facebook.com/sharer/sharer.php?${D({u:e})}`},{name:`X`,mark:s(u,{children:[f(`circle`,{cx:`30`,cy:`30`,r:`30`,fill:`#000`}),f(`path`,{d:`M20 18h6.5l14 24H34z`,fill:`#fff`}),f(`path`,{d:`M39.5 18 21 42M40 18 22 42`,stroke:`#fff`,strokeWidth:`1.6`})]}),address:(e,t)=>`https://twitter.com/intent/tweet?${D({url:e,text:t})}`},{name:`Email`,mark:s(u,{children:[f(`circle`,{cx:`30`,cy:`30`,r:`30`,fill:`#888`}),f(`rect`,{x:`17`,y:`20`,width:`26`,height:`19`,rx:`2`,fill:`#fff`}),f(`path`,{d:`m18 22 12 9 12-9`,fill:`none`,stroke:`#888`,strokeWidth:`2`,strokeLinejoin:`round`})]}),address:e=>`mailto:?${D({body:e})}`},{name:`Reddit`,mark:s(u,{children:[f(`circle`,{cx:`30`,cy:`30`,r:`30`,fill:`#ff4500`}),f(`circle`,{cx:`19.5`,cy:`29`,r:`3.5`,fill:`#fff`}),f(`circle`,{cx:`40.5`,cy:`29`,r:`3.5`,fill:`#fff`}),f(`ellipse`,{cx:`30`,cy:`34`,rx:`13`,ry:`9`,fill:`#fff`}),f(`path`,{d:`M30 25l2-7.5 5.5 1.5`,fill:`none`,stroke:`#fff`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`}),f(`circle`,{cx:`39`,cy:`19`,r:`2.5`,fill:`#fff`}),f(`circle`,{cx:`25.5`,cy:`32.5`,r:`2`,fill:`#ff4500`}),f(`circle`,{cx:`34.5`,cy:`32.5`,r:`2`,fill:`#ff4500`}),f(`path`,{d:`M25.5 37.5c2.8 2 6.2 2 9 0`,fill:`none`,stroke:`#ff4500`,strokeWidth:`1.6`,strokeLinecap:`round`})]}),address:(e,t)=>`https://reddit.com/submit?${D({url:e,title:t})}`},{name:`Pinterest`,mark:s(u,{children:[f(`circle`,{cx:`30`,cy:`30`,r:`30`,fill:`#bd081c`}),f(`path`,{d:`M26 46l4.6-19.5M28.8 35c1 1.4 2.6 2.1 4.4 2.1 4.6 0 7.8-3.7 7.8-8.8 0-4.8-3.9-8.3-9.8-8.3-6.6 0-10.7 4.5-10.7 9.4 0 2.3.9 4.1 2.4 4.9`,fill:`none`,stroke:`#fff`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),address:(e,t,n)=>`https://pinterest.com/pin/create/button/?${D({url:e,description:t,is_video:`true`,media:n})}`},{name:`LinkedIn`,mark:s(u,{children:[f(`circle`,{cx:`30`,cy:`30`,r:`30`,fill:`#0077b5`}),f(`rect`,{x:`19.5`,y:`26.5`,width:`5`,height:`15`,rx:`0.5`,fill:`#fff`}),f(`circle`,{cx:`22`,cy:`20.5`,r:`2.9`,fill:`#fff`}),f(`path`,{d:`M28.5 26.5h4.7v2.1c1-1.6 2.9-2.5 5.2-2.5 4 0 5.6 2.6 5.6 6.8v8.6h-5v-7.8c0-2-.6-3.2-2.4-3.2-2 0-3.1 1.4-3.1 3.6v7.4h-5z`,fill:`#fff`})]}),address:(e,t)=>`https://www.linkedin.com/shareArticle?${D({url:e,title:t})}`}],A=s(u,{children:[f(`circle`,{cx:`30`,cy:`30`,r:`30`,fill:`#f4f4f4`}),f(`path`,{d:`M25 22l-8 8 8 8M35 22l8 8-8 8`,fill:`none`,stroke:`#606060`,strokeWidth:`2.4`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),j=()=>typeof navigator.share==`function`&&matchMedia(`(pointer: coarse)`).matches,M=({videoId:t,title:r,list:i,short:a=!1,onClose:o})=>{let[c]=n(()=>a?void 0:y(t)),[l,u]=n(!1),[d,p]=n(()=>j()?`device`:`share`),_=a?m(location.origin,t):g(location.origin,t,{list:i,t:l?c:void 0}),x=a?void 0:`https://i.ytimg.com/vi/${encodeURIComponent(t)}/maxresdefault.jpg`;if(e(()=>{d===`device`&&navigator.share({url:_}).then(o,e=>{e instanceof DOMException&&e.name===`AbortError`?o():p(`share`)})},[]),d===`device`)return null;if(d===`embed`){let e=`<iframe width="560" height="315" src="${`https://www.youtube.com/embed/${encodeURIComponent(t)}${l&&c!==void 0?`?start=${c}`:``}`}" frameborder="0" allowfullscreen></iframe>`;return f(h,{title:`Embed Video`,onClose:o,children:f(`div`,{css:T,children:f(`textarea`,{className:`embed`,readOnly:!0,value:e,"aria-label":`Embed code`,onFocus:e=>e.currentTarget.select()})})},`embed`)}return f(h,{title:`Share`,onClose:o,children:s(`div`,{css:T,children:[f(`div`,{className:`targets`,children:s(v,{label:`share targets`,count:k.length+ +!a,children:[a?void 0:s(`button`,{type:`button`,className:`target`,onClick:()=>p(`embed`),children:[f(O,{children:A}),`Embed`]}),k.map(e=>s(`a`,{className:`target`,href:e.address(_,r,x),target:`_blank`,rel:`noopener noreferrer`,children:[f(O,{children:e.mark}),e.name]},e.name))]})}),s(`div`,{className:`link-row`,children:[f(`input`,{className:`link`,readOnly:!0,value:_,"aria-label":`Share link`,onFocus:e=>e.currentTarget.select()}),f(`button`,{type:`button`,className:`copy`,onClick:()=>E(_),children:`Copy`})]}),c!==void 0&&c>0?s(`label`,{className:`start-at`,children:[f(`input`,{type:`checkbox`,checked:l,onChange:()=>u(e=>!e)}),`Start at `,b(c)??`0:00`]}):void 0]})},`share`)};export{w as n,S as r,M as t};