webs-sdk 0.18.75 → 0.18.77
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.
- package/README.md +451 -451
- package/dist/components/ARFilters/ARFilters.js +54 -54
- package/dist/components/AvatarAI.js +6 -6
- package/dist/components/CookieConsent/constants.js +31 -31
- package/dist/components/CreativeFaceSwap.js +12 -12
- package/dist/components/MemeGenerator.js +12 -12
- package/dist/components/PasswordReset/constants.js +33 -33
- package/dist/components/SpinningWheel/SpinningWheel.js +7 -7
- package/dist/components/esports/news/EsportsNewsDetail.d.ts.map +1 -1
- package/dist/components/esports/news/EsportsNewsDetail.js +1 -4
- package/dist/components/esports/news/EsportsNewsDetail.js.map +1 -1
- package/dist/components/esports/news/api.d.ts.map +1 -1
- package/dist/components/esports/news/api.js +1 -0
- package/dist/components/esports/news/api.js.map +1 -1
- package/dist/components/esports/videos/api.d.ts.map +1 -1
- package/dist/components/esports/videos/api.js +1 -0
- package/dist/components/esports/videos/api.js.map +1 -1
- package/dist/components/ui/VideoPlayer.d.ts +2 -1
- package/dist/components/ui/VideoPlayer.d.ts.map +1 -1
- package/dist/components/ui/VideoPlayer.js +2 -5
- package/dist/components/ui/VideoPlayer.js.map +1 -1
- package/dist/libraries/globals.d.ts +17 -0
- package/dist/libraries/globals.d.ts.map +1 -0
- package/dist/libraries/globals.js +38 -0
- package/dist/libraries/globals.js.map +1 -0
- package/package.json +79 -79
- package/public/spin2win/assets/border-afristream.svg +26 -26
- package/public/spin2win/assets/border-efc.svg +23 -23
- package/public/spin2win/assets/border-totalgym.svg +27 -27
- package/public/spin2win/assets/border-womantoday.svg +26 -26
- package/public/spin2win/assets/indicator-afristream.svg +28 -28
- package/public/spin2win/assets/indicator-efc.svg +29 -29
- package/public/spin2win/assets/indicator-totalgym.svg +29 -29
- package/public/spin2win/fonts/switzer/README.md +22 -22
|
@@ -7,60 +7,60 @@ const useDeepAR_1 = require("./useDeepAR");
|
|
|
7
7
|
const FilterCarousel_1 = require("./FilterCarousel");
|
|
8
8
|
const Popups_1 = require("./Popups");
|
|
9
9
|
const constants_1 = require("./constants");
|
|
10
|
-
const DEEPAR_CSS = `
|
|
11
|
-
.deepar-container{position:relative;width:100%;max-width:800px;margin:0 auto;aspect-ratio:4/3;background-color:#000;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.5),0 8px 16px rgba(0,0,0,.3)}
|
|
12
|
-
@media(max-width:768px){.deepar-container{max-width:100%;aspect-ratio:auto;height:70vh;max-height:600px;border-radius:8px}}
|
|
13
|
-
.deepar-canvas{width:100%;height:100%;object-fit:contain}
|
|
14
|
-
.deepar-loading-veil{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:10}
|
|
15
|
-
.deepar-loading-items{display:flex;flex-direction:column;align-items:center;gap:16px}
|
|
16
|
-
.deepar-loading-spinner{width:48px;height:48px;border:4px solid rgba(255,255,255,.1);border-top-color:#fff;border-radius:50%;animation:deepar-spin 1s linear infinite}
|
|
17
|
-
@keyframes deepar-spin{to{transform:rotate(360deg)}}
|
|
18
|
-
.deepar-loading-text{color:#fff;font-size:16px;font-weight:500}
|
|
19
|
-
.deepar-top-buttons{position:absolute;top:0;right:0;display:flex;gap:12px;padding:16px;z-index:20}
|
|
20
|
-
.deepar-fullscreen-button{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:rgba(0,0,0,.6);border:2px solid rgba(255,255,255,.3);border-radius:8px;cursor:pointer;transition:all .2s;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
|
|
21
|
-
.deepar-fullscreen-button:hover{background:rgba(0,0,0,.8);border-color:rgba(255,255,255,.5)}
|
|
22
|
-
.deepar-fullscreen-button:active{transform:scale(.95);background:rgba(0,0,0,.9)}
|
|
23
|
-
@media(max-width:768px){.deepar-fullscreen-button{width:56px;height:56px;background:rgba(0,0,0,.7)}}
|
|
24
|
-
.deepar-recording-progress-bar{position:absolute;top:24px;left:50%;transform:translateX(-50%);width:calc(100% - 48px);max-width:400px;height:8px;background:rgba(255,255,255,.2);border-radius:17px;overflow:hidden;z-index:5}
|
|
25
|
-
.deepar-time-progress{height:100%;background:#dc2626;border-radius:17px;transition:width 100ms linear}
|
|
26
|
-
.deepar-pause-recording-container{position:absolute;bottom:48px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;z-index:5}
|
|
27
|
-
.deepar-pause-recording-button{display:flex;align-items:center;justify-content:center;width:80px;height:80px;background:rgba(0,0,0,.5);border:3px solid #fff;border-radius:50%;cursor:pointer;transition:all .2s}
|
|
28
|
-
.deepar-pause-recording-inner{width:24px;height:24px;background:#dc2626;border-radius:4px}
|
|
29
|
-
.deepar-carousel-container{position:absolute;bottom:0;left:0;width:100%;visibility:hidden;opacity:0;transition:opacity .3s;z-index:4}
|
|
30
|
-
.deepar-carousel-container.visible{visibility:visible;opacity:1}
|
|
31
|
-
.deepar-carousel-wrapper{position:relative;display:flex;align-items:center;justify-content:center;padding:24px 0;background:linear-gradient(to top,rgba(0,0,0,1) 0%,rgba(0,0,0,.95) 50%,rgba(0,0,0,0) 100%)}
|
|
32
|
-
.deepar-carousel-content{position:relative;display:flex;align-items:center;justify-content:center;flex:1}
|
|
33
|
-
.deepar-carousel{max-width:368px;overflow:hidden;padding:0 20px}
|
|
34
|
-
@media(max-width:768px){.deepar-carousel{max-width:280px;padding:0 10px}}
|
|
35
|
-
.deepar-carousel-slides{display:flex;gap:16px}
|
|
36
|
-
.deepar-carousel-slide{flex:0 0 auto;cursor:pointer;transition:all .3s ease;opacity:.6}
|
|
37
|
-
.deepar-carousel-slide:hover{opacity:.8}
|
|
38
|
-
.deepar-carousel-slide.active{opacity:1}
|
|
39
|
-
.deepar-filter-thumb{width:64px;height:64px;border-radius:50%;overflow:hidden;transition:all .3s ease;border:3px solid rgba(255,255,255,.2)}
|
|
40
|
-
.deepar-carousel-slide.active .deepar-filter-thumb{width:76px;height:76px;border:3px solid rgba(255,255,255,1);box-shadow:0 0 0 8px rgba(0,0,0,.4)}
|
|
41
|
-
.deepar-carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.3);border-radius:50%;cursor:pointer;transition:all .3s;z-index:5;color:#fff}
|
|
42
|
-
.deepar-carousel-arrow.prev{left:16px}
|
|
43
|
-
.deepar-carousel-arrow.next{right:16px}
|
|
44
|
-
.deepar-carousel-arrow:hover:not(:disabled){transform:translateY(-50%) scale(1.1);background:rgba(0,0,0,.6)}
|
|
45
|
-
.deepar-carousel-arrow:disabled{opacity:.3;cursor:not-allowed}
|
|
46
|
-
.deepar-selection-ring{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:110px;height:110px;background:rgba(0,0,0,.4);border:4px solid rgba(255,255,255,.9);border-radius:50%;cursor:pointer;z-index:6;transition:all .3s;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 8px rgba(0,0,0,.3)}
|
|
47
|
-
.deepar-selection-ring:hover{transform:translate(-50%,-50%) scale(1.05);border-color:#fff}
|
|
48
|
-
.deepar-selection-ring-camera{color:#fff}
|
|
49
|
-
.deepar-creation-container{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;z-index:8}
|
|
50
|
-
.deepar-created-video,.deepar-created-image{width:100%;height:100%;object-fit:cover}
|
|
51
|
-
.deepar-creation-buttons{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}
|
|
52
|
-
.deepar-creation-buttons>*{pointer-events:all}
|
|
53
|
-
.deepar-discard-button{position:absolute;top:24px;left:24px;display:flex;align-items:center;gap:8px;padding:12px 20px;background:rgba(0,0,0,.5);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}
|
|
54
|
-
.deepar-bottom-buttons-creation{position:absolute;bottom:42px;left:50%;transform:translateX(-50%);display:flex;gap:16px}
|
|
55
|
-
.deepar-creation-button{display:flex;align-items:center;justify-content:center;width:80px;height:80px;background:rgba(0,0,0,.5);border:3px solid #fff;border-radius:50%;cursor:pointer;transition:all .2s}
|
|
56
|
-
.deepar-creation-button:hover{background:rgba(0,0,0,.7);transform:scale(1.1)}
|
|
57
|
-
.deepar-popup{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:50}
|
|
58
|
-
.deepar-popup-box{background:#fff;border-radius:12px;padding:48px 32px;max-width:400px;width:90%;text-align:center}
|
|
59
|
-
.deepar-popup-image{margin:0 auto 20px;display:flex;align-items:center;justify-content:center}
|
|
60
|
-
.deepar-popup-title{font-size:18px;font-weight:600;color:#111;margin-bottom:24px}
|
|
61
|
-
.deepar-popup-button{display:inline-block;padding:14px 32px;border-radius:8px;font-size:16px;font-weight:600;border:none;cursor:pointer;transition:all .2s}
|
|
62
|
-
.deepar-popup-button:hover{transform:scale(1.05)}
|
|
63
|
-
.deepar-download-success{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:16px 32px;background:rgba(34,197,94,.95);color:#fff;border-radius:8px;font-size:16px;font-weight:600;z-index:100}
|
|
10
|
+
const DEEPAR_CSS = `
|
|
11
|
+
.deepar-container{position:relative;width:100%;max-width:800px;margin:0 auto;aspect-ratio:4/3;background-color:#000;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.5),0 8px 16px rgba(0,0,0,.3)}
|
|
12
|
+
@media(max-width:768px){.deepar-container{max-width:100%;aspect-ratio:auto;height:70vh;max-height:600px;border-radius:8px}}
|
|
13
|
+
.deepar-canvas{width:100%;height:100%;object-fit:contain}
|
|
14
|
+
.deepar-loading-veil{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:10}
|
|
15
|
+
.deepar-loading-items{display:flex;flex-direction:column;align-items:center;gap:16px}
|
|
16
|
+
.deepar-loading-spinner{width:48px;height:48px;border:4px solid rgba(255,255,255,.1);border-top-color:#fff;border-radius:50%;animation:deepar-spin 1s linear infinite}
|
|
17
|
+
@keyframes deepar-spin{to{transform:rotate(360deg)}}
|
|
18
|
+
.deepar-loading-text{color:#fff;font-size:16px;font-weight:500}
|
|
19
|
+
.deepar-top-buttons{position:absolute;top:0;right:0;display:flex;gap:12px;padding:16px;z-index:20}
|
|
20
|
+
.deepar-fullscreen-button{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:rgba(0,0,0,.6);border:2px solid rgba(255,255,255,.3);border-radius:8px;cursor:pointer;transition:all .2s;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
|
|
21
|
+
.deepar-fullscreen-button:hover{background:rgba(0,0,0,.8);border-color:rgba(255,255,255,.5)}
|
|
22
|
+
.deepar-fullscreen-button:active{transform:scale(.95);background:rgba(0,0,0,.9)}
|
|
23
|
+
@media(max-width:768px){.deepar-fullscreen-button{width:56px;height:56px;background:rgba(0,0,0,.7)}}
|
|
24
|
+
.deepar-recording-progress-bar{position:absolute;top:24px;left:50%;transform:translateX(-50%);width:calc(100% - 48px);max-width:400px;height:8px;background:rgba(255,255,255,.2);border-radius:17px;overflow:hidden;z-index:5}
|
|
25
|
+
.deepar-time-progress{height:100%;background:#dc2626;border-radius:17px;transition:width 100ms linear}
|
|
26
|
+
.deepar-pause-recording-container{position:absolute;bottom:48px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;z-index:5}
|
|
27
|
+
.deepar-pause-recording-button{display:flex;align-items:center;justify-content:center;width:80px;height:80px;background:rgba(0,0,0,.5);border:3px solid #fff;border-radius:50%;cursor:pointer;transition:all .2s}
|
|
28
|
+
.deepar-pause-recording-inner{width:24px;height:24px;background:#dc2626;border-radius:4px}
|
|
29
|
+
.deepar-carousel-container{position:absolute;bottom:0;left:0;width:100%;visibility:hidden;opacity:0;transition:opacity .3s;z-index:4}
|
|
30
|
+
.deepar-carousel-container.visible{visibility:visible;opacity:1}
|
|
31
|
+
.deepar-carousel-wrapper{position:relative;display:flex;align-items:center;justify-content:center;padding:24px 0;background:linear-gradient(to top,rgba(0,0,0,1) 0%,rgba(0,0,0,.95) 50%,rgba(0,0,0,0) 100%)}
|
|
32
|
+
.deepar-carousel-content{position:relative;display:flex;align-items:center;justify-content:center;flex:1}
|
|
33
|
+
.deepar-carousel{max-width:368px;overflow:hidden;padding:0 20px}
|
|
34
|
+
@media(max-width:768px){.deepar-carousel{max-width:280px;padding:0 10px}}
|
|
35
|
+
.deepar-carousel-slides{display:flex;gap:16px}
|
|
36
|
+
.deepar-carousel-slide{flex:0 0 auto;cursor:pointer;transition:all .3s ease;opacity:.6}
|
|
37
|
+
.deepar-carousel-slide:hover{opacity:.8}
|
|
38
|
+
.deepar-carousel-slide.active{opacity:1}
|
|
39
|
+
.deepar-filter-thumb{width:64px;height:64px;border-radius:50%;overflow:hidden;transition:all .3s ease;border:3px solid rgba(255,255,255,.2)}
|
|
40
|
+
.deepar-carousel-slide.active .deepar-filter-thumb{width:76px;height:76px;border:3px solid rgba(255,255,255,1);box-shadow:0 0 0 8px rgba(0,0,0,.4)}
|
|
41
|
+
.deepar-carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.3);border-radius:50%;cursor:pointer;transition:all .3s;z-index:5;color:#fff}
|
|
42
|
+
.deepar-carousel-arrow.prev{left:16px}
|
|
43
|
+
.deepar-carousel-arrow.next{right:16px}
|
|
44
|
+
.deepar-carousel-arrow:hover:not(:disabled){transform:translateY(-50%) scale(1.1);background:rgba(0,0,0,.6)}
|
|
45
|
+
.deepar-carousel-arrow:disabled{opacity:.3;cursor:not-allowed}
|
|
46
|
+
.deepar-selection-ring{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:110px;height:110px;background:rgba(0,0,0,.4);border:4px solid rgba(255,255,255,.9);border-radius:50%;cursor:pointer;z-index:6;transition:all .3s;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 8px rgba(0,0,0,.3)}
|
|
47
|
+
.deepar-selection-ring:hover{transform:translate(-50%,-50%) scale(1.05);border-color:#fff}
|
|
48
|
+
.deepar-selection-ring-camera{color:#fff}
|
|
49
|
+
.deepar-creation-container{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;z-index:8}
|
|
50
|
+
.deepar-created-video,.deepar-created-image{width:100%;height:100%;object-fit:cover}
|
|
51
|
+
.deepar-creation-buttons{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}
|
|
52
|
+
.deepar-creation-buttons>*{pointer-events:all}
|
|
53
|
+
.deepar-discard-button{position:absolute;top:24px;left:24px;display:flex;align-items:center;gap:8px;padding:12px 20px;background:rgba(0,0,0,.5);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}
|
|
54
|
+
.deepar-bottom-buttons-creation{position:absolute;bottom:42px;left:50%;transform:translateX(-50%);display:flex;gap:16px}
|
|
55
|
+
.deepar-creation-button{display:flex;align-items:center;justify-content:center;width:80px;height:80px;background:rgba(0,0,0,.5);border:3px solid #fff;border-radius:50%;cursor:pointer;transition:all .2s}
|
|
56
|
+
.deepar-creation-button:hover{background:rgba(0,0,0,.7);transform:scale(1.1)}
|
|
57
|
+
.deepar-popup{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:50}
|
|
58
|
+
.deepar-popup-box{background:#fff;border-radius:12px;padding:48px 32px;max-width:400px;width:90%;text-align:center}
|
|
59
|
+
.deepar-popup-image{margin:0 auto 20px;display:flex;align-items:center;justify-content:center}
|
|
60
|
+
.deepar-popup-title{font-size:18px;font-weight:600;color:#111;margin-bottom:24px}
|
|
61
|
+
.deepar-popup-button{display:inline-block;padding:14px 32px;border-radius:8px;font-size:16px;font-weight:600;border:none;cursor:pointer;transition:all .2s}
|
|
62
|
+
.deepar-popup-button:hover{transform:scale(1.05)}
|
|
63
|
+
.deepar-download-success{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:16px 32px;background:rgba(34,197,94,.95);color:#fff;border-radius:8px;font-size:16px;font-weight:600;z-index:100}
|
|
64
64
|
`;
|
|
65
65
|
function ARFilters(props) {
|
|
66
66
|
(0, react_1.useEffect)(() => {
|
|
@@ -5,12 +5,12 @@ exports.AvatarAIForYouCard = AvatarAIForYouCard;
|
|
|
5
5
|
exports.AvatarAIPage = AvatarAIPage;
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const react_1 = require("react");
|
|
8
|
-
const AVATAR_AI_CSS = `
|
|
9
|
-
.avatarai-styles-grid::-webkit-scrollbar { width: 6px; }
|
|
10
|
-
.avatarai-styles-grid::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
|
|
11
|
-
.avatarai-styles-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
|
|
12
|
-
@keyframes avatarai-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
|
13
|
-
@keyframes avatarai-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
|
|
8
|
+
const AVATAR_AI_CSS = `
|
|
9
|
+
.avatarai-styles-grid::-webkit-scrollbar { width: 6px; }
|
|
10
|
+
.avatarai-styles-grid::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
|
|
11
|
+
.avatarai-styles-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
|
|
12
|
+
@keyframes avatarai-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
|
13
|
+
@keyframes avatarai-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
|
|
14
14
|
`;
|
|
15
15
|
const defaultStyles = [
|
|
16
16
|
{ id: 1, name: 'Pirate', image: 'https://cdn.smarthubtech.net/upload/20240426_135427_99796_1_cuadrada.png' },
|
|
@@ -5,36 +5,36 @@ exports.COOKIE_CONSENT_COOKIE_NAME = 'cookieConsent';
|
|
|
5
5
|
exports.COOKIE_CONSENT_COOKIE_MAX_AGE = 60 * 60 * 24 * 365;
|
|
6
6
|
exports.TRACKING_PERMISSION_KEY = 'TRACKING_PERMISSION';
|
|
7
7
|
exports.FUNCTIONAL_PERMISSION_KEY = 'FUNCTIONAL_PERMISSION';
|
|
8
|
-
exports.COOKIE_CONSENT_CSS = `
|
|
9
|
-
.cc-overlay{position:fixed;bottom:0;left:0;right:0;z-index:9999;padding:16px;box-sizing:border-box}
|
|
10
|
-
.cc-banner{max-width:960px;margin:0 auto;padding:24px 28px;border-radius:12px;box-shadow:0 -4px 32px rgba(0,0,0,.18),0 2px 8px rgba(0,0,0,.12);display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
|
|
11
|
-
@media(min-width:640px){.cc-banner{flex-wrap:nowrap;align-items:center}}
|
|
12
|
-
.cc-content{flex:1;min-width:0}
|
|
13
|
-
.cc-title{font-size:16px;font-weight:700;margin:0 0 6px 0;line-height:1.3}
|
|
14
|
-
.cc-description{font-size:13px;line-height:1.55;margin:0;opacity:.85}
|
|
15
|
-
.cc-link{text-decoration:underline;cursor:pointer;margin-left:4px}
|
|
16
|
-
.cc-actions{display:flex;gap:8px;flex-shrink:0;flex-direction:column;align-items:stretch}
|
|
17
|
-
@media(min-width:480px){.cc-actions{flex-direction:row;align-items:center}}
|
|
18
|
-
.cc-btn{padding:10px 20px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;border:none;transition:opacity .2s;white-space:nowrap;line-height:1}
|
|
19
|
-
.cc-btn:hover{opacity:.88}
|
|
20
|
-
.cc-btn-essential{background:transparent}
|
|
21
|
-
.cc-config-link{background:none;border:none;cursor:pointer;font-size:12px;text-decoration:underline;padding:4px 0;font-family:inherit;line-height:1;opacity:.7;white-space:nowrap;display:block;text-align:center}
|
|
22
|
-
.cc-config-link:hover{opacity:1}
|
|
23
|
-
.cc-banner.cc-settings-mode{display:block}
|
|
24
|
-
.cc-settings-title{font-size:15px;font-weight:700;margin:0 0 14px 0}
|
|
25
|
-
.cc-settings-sep{border:none;border-top:1px solid rgba(255,255,255,.12);margin:0 0 16px}
|
|
26
|
-
.cc-category{display:flex;flex-direction:column;gap:5px;margin-bottom:14px}
|
|
27
|
-
.cc-category:last-of-type{margin-bottom:0}
|
|
28
|
-
.cc-category-row{display:flex;align-items:center;gap:10px}
|
|
29
|
-
.cc-category-label{font-size:13px;font-weight:600;cursor:pointer;user-select:none;line-height:1.3}
|
|
30
|
-
.cc-category-label.cc-mandatory{cursor:default;opacity:.55}
|
|
31
|
-
.cc-category-desc{font-size:12px;line-height:1.55;opacity:.7;padding-left:26px;margin:0}
|
|
32
|
-
.cc-checkbox{width:15px;height:15px;flex-shrink:0;cursor:pointer;margin:0}
|
|
33
|
-
.cc-checkbox:disabled{cursor:default}
|
|
34
|
-
.cc-settings-footer{display:flex;justify-content:flex-end;margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.12)}
|
|
35
|
-
.cc-enter{animation:cc-slideup .28s ease-out}
|
|
36
|
-
.cc-exit{animation:cc-slidedown .22s ease-in forwards}
|
|
37
|
-
@keyframes cc-slideup{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}
|
|
38
|
-
@keyframes cc-slidedown{from{transform:translateY(0);opacity:1}to{transform:translateY(100%);opacity:0}}
|
|
8
|
+
exports.COOKIE_CONSENT_CSS = `
|
|
9
|
+
.cc-overlay{position:fixed;bottom:0;left:0;right:0;z-index:9999;padding:16px;box-sizing:border-box}
|
|
10
|
+
.cc-banner{max-width:960px;margin:0 auto;padding:24px 28px;border-radius:12px;box-shadow:0 -4px 32px rgba(0,0,0,.18),0 2px 8px rgba(0,0,0,.12);display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
|
|
11
|
+
@media(min-width:640px){.cc-banner{flex-wrap:nowrap;align-items:center}}
|
|
12
|
+
.cc-content{flex:1;min-width:0}
|
|
13
|
+
.cc-title{font-size:16px;font-weight:700;margin:0 0 6px 0;line-height:1.3}
|
|
14
|
+
.cc-description{font-size:13px;line-height:1.55;margin:0;opacity:.85}
|
|
15
|
+
.cc-link{text-decoration:underline;cursor:pointer;margin-left:4px}
|
|
16
|
+
.cc-actions{display:flex;gap:8px;flex-shrink:0;flex-direction:column;align-items:stretch}
|
|
17
|
+
@media(min-width:480px){.cc-actions{flex-direction:row;align-items:center}}
|
|
18
|
+
.cc-btn{padding:10px 20px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;border:none;transition:opacity .2s;white-space:nowrap;line-height:1}
|
|
19
|
+
.cc-btn:hover{opacity:.88}
|
|
20
|
+
.cc-btn-essential{background:transparent}
|
|
21
|
+
.cc-config-link{background:none;border:none;cursor:pointer;font-size:12px;text-decoration:underline;padding:4px 0;font-family:inherit;line-height:1;opacity:.7;white-space:nowrap;display:block;text-align:center}
|
|
22
|
+
.cc-config-link:hover{opacity:1}
|
|
23
|
+
.cc-banner.cc-settings-mode{display:block}
|
|
24
|
+
.cc-settings-title{font-size:15px;font-weight:700;margin:0 0 14px 0}
|
|
25
|
+
.cc-settings-sep{border:none;border-top:1px solid rgba(255,255,255,.12);margin:0 0 16px}
|
|
26
|
+
.cc-category{display:flex;flex-direction:column;gap:5px;margin-bottom:14px}
|
|
27
|
+
.cc-category:last-of-type{margin-bottom:0}
|
|
28
|
+
.cc-category-row{display:flex;align-items:center;gap:10px}
|
|
29
|
+
.cc-category-label{font-size:13px;font-weight:600;cursor:pointer;user-select:none;line-height:1.3}
|
|
30
|
+
.cc-category-label.cc-mandatory{cursor:default;opacity:.55}
|
|
31
|
+
.cc-category-desc{font-size:12px;line-height:1.55;opacity:.7;padding-left:26px;margin:0}
|
|
32
|
+
.cc-checkbox{width:15px;height:15px;flex-shrink:0;cursor:pointer;margin:0}
|
|
33
|
+
.cc-checkbox:disabled{cursor:default}
|
|
34
|
+
.cc-settings-footer{display:flex;justify-content:flex-end;margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.12)}
|
|
35
|
+
.cc-enter{animation:cc-slideup .28s ease-out}
|
|
36
|
+
.cc-exit{animation:cc-slidedown .22s ease-in forwards}
|
|
37
|
+
@keyframes cc-slideup{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}
|
|
38
|
+
@keyframes cc-slidedown{from{transform:translateY(0);opacity:1}to{transform:translateY(100%);opacity:0}}
|
|
39
39
|
`;
|
|
40
40
|
//# sourceMappingURL=constants.js.map
|
|
@@ -11,18 +11,18 @@ const react_1 = require("react");
|
|
|
11
11
|
const link_1 = __importDefault(require("next/link"));
|
|
12
12
|
const ui_1 = require("./ui");
|
|
13
13
|
const utils_1 = require("../libraries/utils");
|
|
14
|
-
const FACESWAP_CSS = `
|
|
15
|
-
.faceswap-layout { display: flex; flex-direction: row; align-items: stretch; }
|
|
16
|
-
.faceswap-col-left { width: 30%; min-width: 280px; background: white; border: 1px solid #e5e7eb; display: flex; flex-direction: column; }
|
|
17
|
-
.faceswap-col-right { flex: 1; background: white; border: 1px solid #e5e7eb; border-left: none; display: flex; flex-direction: column; }
|
|
18
|
-
.faceswap-col-right > div:first-child { flex: 0 0 auto; }
|
|
19
|
-
.faceswap-col-right > div:last-child { flex: 1; display: flex; flex-direction: column; }
|
|
20
|
-
.faceswap-col-right > div:last-child > .faceswap-result-area { flex: 1; min-height: 0; }
|
|
21
|
-
@media (max-width: 768px) {
|
|
22
|
-
.faceswap-layout { flex-direction: column; }
|
|
23
|
-
.faceswap-col-left { width: 100%; min-width: unset; }
|
|
24
|
-
.faceswap-col-right { border-left: 1px solid #e5e7eb; border-top: none; width: 100%; }
|
|
25
|
-
}
|
|
14
|
+
const FACESWAP_CSS = `
|
|
15
|
+
.faceswap-layout { display: flex; flex-direction: row; align-items: stretch; }
|
|
16
|
+
.faceswap-col-left { width: 30%; min-width: 280px; background: white; border: 1px solid #e5e7eb; display: flex; flex-direction: column; }
|
|
17
|
+
.faceswap-col-right { flex: 1; background: white; border: 1px solid #e5e7eb; border-left: none; display: flex; flex-direction: column; }
|
|
18
|
+
.faceswap-col-right > div:first-child { flex: 0 0 auto; }
|
|
19
|
+
.faceswap-col-right > div:last-child { flex: 1; display: flex; flex-direction: column; }
|
|
20
|
+
.faceswap-col-right > div:last-child > .faceswap-result-area { flex: 1; min-height: 0; }
|
|
21
|
+
@media (max-width: 768px) {
|
|
22
|
+
.faceswap-layout { flex-direction: column; }
|
|
23
|
+
.faceswap-col-left { width: 100%; min-width: unset; }
|
|
24
|
+
.faceswap-col-right { border-left: 1px solid #e5e7eb; border-top: none; width: 100%; }
|
|
25
|
+
}
|
|
26
26
|
`;
|
|
27
27
|
function CreativeFaceSwapForYouCard({ title, description, ctaText, ctaHref, desktopImage, mobileImage, imageAlt = "", imageOnRight = true, titleColor = "#001B5E", descriptionColor = "#001B5E", ctaColor = "#FF5500", ctaHoverColor = "#ff1600", backgroundColor = "#F9F9F9", paddingClass = "py-12 md:py-16 lg:py-20", }) {
|
|
28
28
|
const effectiveMobileImage = mobileImage || desktopImage;
|
|
@@ -31,18 +31,18 @@ const defaultTexts = {
|
|
|
31
31
|
noMemes: 'No memes available',
|
|
32
32
|
};
|
|
33
33
|
const TEXT_SHADOW = '2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000';
|
|
34
|
-
const MEME_CSS = `
|
|
35
|
-
.memegen-grid {
|
|
36
|
-
display: grid;
|
|
37
|
-
grid-template-columns: 1fr;
|
|
38
|
-
gap: 24px;
|
|
39
|
-
align-items: stretch;
|
|
40
|
-
}
|
|
41
|
-
@media (min-width: 1024px) {
|
|
42
|
-
.memegen-grid {
|
|
43
|
-
grid-template-columns: 1fr 1fr;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
34
|
+
const MEME_CSS = `
|
|
35
|
+
.memegen-grid {
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-columns: 1fr;
|
|
38
|
+
gap: 24px;
|
|
39
|
+
align-items: stretch;
|
|
40
|
+
}
|
|
41
|
+
@media (min-width: 1024px) {
|
|
42
|
+
.memegen-grid {
|
|
43
|
+
grid-template-columns: 1fr 1fr;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
46
|
`;
|
|
47
47
|
function MemeGenerator({ memes: memesProp, config, fonts = defaultFonts, defaultMemeIndex = 0, theme = {}, texts = {}, imageProxyUrl, onDownload, }) {
|
|
48
48
|
const mergedTheme = Object.assign(Object.assign({}, defaultTheme), theme);
|
|
@@ -23,38 +23,38 @@ exports.DEFAULT_PASSWORD_RULES = {
|
|
|
23
23
|
requireNumber: true,
|
|
24
24
|
requireSpecialChar: false,
|
|
25
25
|
};
|
|
26
|
-
exports.PASSWORD_RESET_CSS = `
|
|
27
|
-
.pr-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:24px 16px;box-sizing:border-box}
|
|
28
|
-
.pr-logo-wrap{margin-bottom:24px;text-align:center}
|
|
29
|
-
.pr-logo{display:block;max-width:200px;max-height:60px;width:auto;height:auto;object-fit:contain;margin:0 auto}
|
|
30
|
-
.pr-card{width:100%;max-width:var(--pr-card-max-width,400px);padding:32px 24px;border-radius:16px;box-sizing:border-box}
|
|
31
|
-
.pr-title{font-size:32px;font-weight:600;text-align:center;margin:0;line-height:1.2}
|
|
32
|
-
.pr-subtitle{font-size:20px;text-align:center;margin:24px 0 0 0;line-height:1.4;font-weight:400;opacity:0.8}
|
|
33
|
-
.pr-field{margin-bottom:16px}
|
|
34
|
-
.pr-label{display:block;font-size:20px;font-weight:500;margin-bottom:12px}
|
|
35
|
-
.pr-input-wrap{position:relative;display:flex;align-items:center}
|
|
36
|
-
.pr-input-icon{position:absolute;left:14px;width:20px;height:20px;flex-shrink:0;pointer-events:none;display:flex;align-items:center;justify-content:center}
|
|
37
|
-
.pr-input-icon svg{width:20px;height:20px;display:block}
|
|
38
|
-
.pr-input{width:100%;padding:14px 44px;border-radius:999px;border:1.5px solid;font-size:16px;outline:none;transition:border-color .18s,opacity .18s;box-sizing:border-box;font-family:inherit;line-height:1.4}
|
|
39
|
-
.pr-input::placeholder{color:var(--pr-ph,rgba(255,255,255,0.35))}
|
|
40
|
-
.pr-input:disabled{opacity:.6;cursor:not-allowed}
|
|
41
|
-
.pr-input-eye{position:absolute;right:14px;background:none;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:opacity .18s;line-height:0}
|
|
42
|
-
.pr-input-eye:hover{opacity:.7}
|
|
43
|
-
.pr-input-eye svg{width:20px;height:20px;display:block}
|
|
44
|
-
.pr-btn{width:100%;padding:16px 24px;border-radius:999px;border:none;font-size:18px;font-weight:700;cursor:pointer;transition:opacity .18s,transform .1s;margin-top:12px;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;line-height:1}
|
|
45
|
-
.pr-btn:hover:not(:disabled){opacity:.85}
|
|
46
|
-
.pr-btn:active:not(:disabled){transform:scale(.98)}
|
|
47
|
-
.pr-btn:disabled{cursor:not-allowed;opacity:.5}
|
|
48
|
-
.pr-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:pr-spin .65s linear infinite;flex-shrink:0}
|
|
49
|
-
@keyframes pr-spin{to{transform:rotate(360deg)}}
|
|
50
|
-
.pr-error-msg{font-size:15px;text-align:center;margin:16px 0 0 0;line-height:1.5}
|
|
51
|
-
.pr-success{text-align:center;padding:8px 0}
|
|
52
|
-
.pr-success-icon{font-size:52px;margin-bottom:24px;line-height:1}
|
|
53
|
-
.pr-success-text{font-size:18px;line-height:1.65;margin:0}
|
|
54
|
-
.pr-rules{margin:14px 0 4px 6px;display:flex;flex-direction:column;gap:10px}
|
|
55
|
-
.pr-rule{display:flex;align-items:center;gap:10px;font-size:15px;line-height:1.3;transition:color .2s}
|
|
56
|
-
.pr-rule-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;transition:background-color .2s}
|
|
57
|
-
@media(min-width:768px){.pr-card{max-width:var(--pr-card-max-width,448px);padding:32px}.pr-subtitle{margin:32px 0 0 0}.pr-field{margin-bottom:20px}}
|
|
58
|
-
@media(min-width:1024px){.pr-card{max-width:var(--pr-card-max-width,512px);padding:40px}.pr-subtitle{margin:40px 0 0 0}.pr-field{margin-bottom:24px}}
|
|
26
|
+
exports.PASSWORD_RESET_CSS = `
|
|
27
|
+
.pr-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:24px 16px;box-sizing:border-box}
|
|
28
|
+
.pr-logo-wrap{margin-bottom:24px;text-align:center}
|
|
29
|
+
.pr-logo{display:block;max-width:200px;max-height:60px;width:auto;height:auto;object-fit:contain;margin:0 auto}
|
|
30
|
+
.pr-card{width:100%;max-width:var(--pr-card-max-width,400px);padding:32px 24px;border-radius:16px;box-sizing:border-box}
|
|
31
|
+
.pr-title{font-size:32px;font-weight:600;text-align:center;margin:0;line-height:1.2}
|
|
32
|
+
.pr-subtitle{font-size:20px;text-align:center;margin:24px 0 0 0;line-height:1.4;font-weight:400;opacity:0.8}
|
|
33
|
+
.pr-field{margin-bottom:16px}
|
|
34
|
+
.pr-label{display:block;font-size:20px;font-weight:500;margin-bottom:12px}
|
|
35
|
+
.pr-input-wrap{position:relative;display:flex;align-items:center}
|
|
36
|
+
.pr-input-icon{position:absolute;left:14px;width:20px;height:20px;flex-shrink:0;pointer-events:none;display:flex;align-items:center;justify-content:center}
|
|
37
|
+
.pr-input-icon svg{width:20px;height:20px;display:block}
|
|
38
|
+
.pr-input{width:100%;padding:14px 44px;border-radius:999px;border:1.5px solid;font-size:16px;outline:none;transition:border-color .18s,opacity .18s;box-sizing:border-box;font-family:inherit;line-height:1.4}
|
|
39
|
+
.pr-input::placeholder{color:var(--pr-ph,rgba(255,255,255,0.35))}
|
|
40
|
+
.pr-input:disabled{opacity:.6;cursor:not-allowed}
|
|
41
|
+
.pr-input-eye{position:absolute;right:14px;background:none;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:opacity .18s;line-height:0}
|
|
42
|
+
.pr-input-eye:hover{opacity:.7}
|
|
43
|
+
.pr-input-eye svg{width:20px;height:20px;display:block}
|
|
44
|
+
.pr-btn{width:100%;padding:16px 24px;border-radius:999px;border:none;font-size:18px;font-weight:700;cursor:pointer;transition:opacity .18s,transform .1s;margin-top:12px;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;line-height:1}
|
|
45
|
+
.pr-btn:hover:not(:disabled){opacity:.85}
|
|
46
|
+
.pr-btn:active:not(:disabled){transform:scale(.98)}
|
|
47
|
+
.pr-btn:disabled{cursor:not-allowed;opacity:.5}
|
|
48
|
+
.pr-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:pr-spin .65s linear infinite;flex-shrink:0}
|
|
49
|
+
@keyframes pr-spin{to{transform:rotate(360deg)}}
|
|
50
|
+
.pr-error-msg{font-size:15px;text-align:center;margin:16px 0 0 0;line-height:1.5}
|
|
51
|
+
.pr-success{text-align:center;padding:8px 0}
|
|
52
|
+
.pr-success-icon{font-size:52px;margin-bottom:24px;line-height:1}
|
|
53
|
+
.pr-success-text{font-size:18px;line-height:1.65;margin:0}
|
|
54
|
+
.pr-rules{margin:14px 0 4px 6px;display:flex;flex-direction:column;gap:10px}
|
|
55
|
+
.pr-rule{display:flex;align-items:center;gap:10px;font-size:15px;line-height:1.3;transition:color .2s}
|
|
56
|
+
.pr-rule-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;transition:background-color .2s}
|
|
57
|
+
@media(min-width:768px){.pr-card{max-width:var(--pr-card-max-width,448px);padding:32px}.pr-subtitle{margin:32px 0 0 0}.pr-field{margin-bottom:20px}}
|
|
58
|
+
@media(min-width:1024px){.pr-card{max-width:var(--pr-card-max-width,512px);padding:40px}.pr-subtitle{margin:40px 0 0 0}.pr-field{margin-bottom:24px}}
|
|
59
59
|
`;
|
|
60
60
|
//# sourceMappingURL=constants.js.map
|
|
@@ -231,13 +231,13 @@ function SpinningWheel({ config: configProp, onResult, onError, canSpin = true,
|
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
const backgroundAsset = currentTheme.backgroundAsset;
|
|
234
|
-
return ((0, jsx_runtime_1.jsxs)("div", { style: { position: 'relative', display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '32px', padding: '32px', minHeight: '100vh', overflow: 'hidden' }, children: [backgroundAsset && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("style", { children: `
|
|
235
|
-
.sw-bg-desktop { display: block; }
|
|
236
|
-
.sw-bg-mobile { display: none; }
|
|
237
|
-
@media (max-width: 767px) {
|
|
238
|
-
.sw-bg-desktop { display: none; }
|
|
239
|
-
.sw-bg-mobile { display: block; }
|
|
240
|
-
}
|
|
234
|
+
return ((0, jsx_runtime_1.jsxs)("div", { style: { position: 'relative', display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '32px', padding: '32px', minHeight: '100vh', overflow: 'hidden' }, children: [backgroundAsset && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("style", { children: `
|
|
235
|
+
.sw-bg-desktop { display: block; }
|
|
236
|
+
.sw-bg-mobile { display: none; }
|
|
237
|
+
@media (max-width: 767px) {
|
|
238
|
+
.sw-bg-desktop { display: none; }
|
|
239
|
+
.sw-bg-mobile { display: block; }
|
|
240
|
+
}
|
|
241
241
|
` }), (0, jsx_runtime_1.jsx)("img", { src: backgroundAsset.desktop, alt: "", className: "sw-bg-desktop", style: {
|
|
242
242
|
position: 'absolute',
|
|
243
243
|
top: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EsportsNewsDetail.d.ts","sourceRoot":"","sources":["../../../../src/components/esports/news/EsportsNewsDetail.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE7D,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC;IAC1B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAYD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"EsportsNewsDetail.d.ts","sourceRoot":"","sources":["../../../../src/components/esports/news/EsportsNewsDetail.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE7D,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC;IAC1B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAYD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CA0I9D;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -33,10 +33,7 @@ function EsportsNewsDetail(props) {
|
|
|
33
33
|
return dateString;
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "min-h-screen bg-white" }, (!isVideo && {
|
|
37
|
-
'data-track-consume': 'view',
|
|
38
|
-
'data-content-id': String(newsData.id),
|
|
39
|
-
}), { children: (0, jsx_runtime_1.jsxs)("div", { className: "mx-auto max-w-4xl px-4 py-6", children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-6", children: (0, jsx_runtime_1.jsxs)("button", { onClick: onBack, className: "flex items-center gap-2 text-gray-700 hover:text-gray-900 transition-colors", children: [(0, jsx_runtime_1.jsx)("svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 19l-7-7m0 0l7-7m-7 7h18" }) }), t('esports.back')] }) }), (0, jsx_runtime_1.jsxs)("article", { children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-4", children: (0, jsx_runtime_1.jsx)("span", { className: "inline-block px-3 py-1 bg-gradient-to-r from-purple-600 to-pink-600 text-white text-sm font-semibold rounded-full uppercase", children: t('esports.title').toUpperCase() }) }), (0, jsx_runtime_1.jsx)("h1", { className: "text-3xl md:text-4xl font-bold text-gray-900 mb-4 leading-tight", dangerouslySetInnerHTML: { __html: newsData.title } }), newsData.date && ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-gray-500 text-sm mb-6", children: [(0, jsx_runtime_1.jsx)("svg", { className: "w-4 h-4 mr-2", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" }) }), formatDate(newsData.date)] })), videoUrl ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-6", children: (0, jsx_runtime_1.jsx)(VideoPlayer_1.VideoPlayer, { videoUrl: videoUrl, posterImage: image, title: newsData.title, contentId: newsData.id }) })) : image ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-6", children: (0, jsx_runtime_1.jsx)("img", { src: image, alt: newsData.title, className: "w-full h-auto rounded-lg shadow-lg object-cover max-h-[500px]", onError: (e) => {
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "min-h-screen bg-white" }, (!isVideo && Object.assign({ 'data-track-consume': 'view', 'data-content-id': String(newsData.id) }, (newsData.source !== undefined && { 'data-content-source': String(newsData.source) }))), { children: (0, jsx_runtime_1.jsxs)("div", { className: "mx-auto max-w-4xl px-4 py-6", children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-6", children: (0, jsx_runtime_1.jsxs)("button", { onClick: onBack, className: "flex items-center gap-2 text-gray-700 hover:text-gray-900 transition-colors", children: [(0, jsx_runtime_1.jsx)("svg", { className: "w-5 h-5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 19l-7-7m0 0l7-7m-7 7h18" }) }), t('esports.back')] }) }), (0, jsx_runtime_1.jsxs)("article", { children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-4", children: (0, jsx_runtime_1.jsx)("span", { className: "inline-block px-3 py-1 bg-gradient-to-r from-purple-600 to-pink-600 text-white text-sm font-semibold rounded-full uppercase", children: t('esports.title').toUpperCase() }) }), (0, jsx_runtime_1.jsx)("h1", { className: "text-3xl md:text-4xl font-bold text-gray-900 mb-4 leading-tight", dangerouslySetInnerHTML: { __html: newsData.title } }), newsData.date && ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-gray-500 text-sm mb-6", children: [(0, jsx_runtime_1.jsx)("svg", { className: "w-4 h-4 mr-2", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: (0, jsx_runtime_1.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" }) }), formatDate(newsData.date)] })), videoUrl ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-6", children: (0, jsx_runtime_1.jsx)(VideoPlayer_1.VideoPlayer, { videoUrl: videoUrl, posterImage: image, title: newsData.title, contentId: newsData.id, contentSource: newsData.source }) })) : image ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-6", children: (0, jsx_runtime_1.jsx)("img", { src: image, alt: newsData.title, className: "w-full h-auto rounded-lg shadow-lg object-cover max-h-[500px]", onError: (e) => {
|
|
40
37
|
e.currentTarget.style.display = 'none';
|
|
41
38
|
} }) })) : null, (0, jsx_runtime_1.jsx)("div", { className: "prose prose-lg max-w-none mt-6", children: newsData.content ? ((0, jsx_runtime_1.jsx)("div", { className: "text-gray-800 leading-relaxed", dangerouslySetInnerHTML: { __html: newsData.content } })) : ((0, jsx_runtime_1.jsx)("p", { className: "text-gray-800 leading-relaxed text-lg", dangerouslySetInnerHTML: { __html: newsData.excerpt } })) }), newsData.source_domain && ((0, jsx_runtime_1.jsx)("div", { className: "mt-8 pt-6 border-t border-gray-200", children: (0, jsx_runtime_1.jsxs)("p", { className: "text-sm text-gray-500", children: [t('esports.news.source'), ": ", newsData.source_domain] }) }))] })] }) })));
|
|
42
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EsportsNewsDetail.js","sourceRoot":"","sources":["../../../../src/components/esports/news/EsportsNewsDetail.tsx"],"names":[],"mappings":";;AAwBA,
|
|
1
|
+
{"version":3,"file":"EsportsNewsDetail.js","sourceRoot":"","sources":["../../../../src/components/esports/news/EsportsNewsDetail.tsx"],"names":[],"mappings":";;AAwBA,8CA0IC;;AAjKD,sDAAmD;AACnD,oCAAwC;AAaxC,MAAM,WAAW,GAAG,CAAC,IAAS,EAAU,EAAE;IAExC,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,SAAgB,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAEjE,MAAM,CAAC,GAAG,CAAC,GAAW,EAAU,EAAE;QAChC,IAAI,WAAW,EAAE,CAAC;YAChB,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;QACD,OAAO,GAAG,CAAC;IACb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,CAAC,kBAAkB;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/components/esports/news/api.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlD,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAuB;gBAEzB,MAAM,GAAE,oBAAyB;IAUvC,OAAO,CAAC,aAAa,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;YA8BtE,qBAAqB;IAoEnC,OAAO,CAAC,kBAAkB;IA4CpB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,YAA2B,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;CAyC9H;AAKD,wBAAgB,oBAAoB,CAAC,MAAM,GAAE,oBAAyB,GAAG,cAAc,CAEtF"}
|
|
@@ -92,6 +92,7 @@ class EsportsNewsAPI {
|
|
|
92
92
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
93
93
|
const baseItem = {
|
|
94
94
|
preset: preset,
|
|
95
|
+
source: item.source || '',
|
|
95
96
|
id: item.id || item.content_id || '',
|
|
96
97
|
title: item.title || '',
|
|
97
98
|
description: item.description || item.excerpt || '',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/components/esports/news/api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/components/esports/news/api.ts"],"names":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EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;YA8BzE,qBAAqB;IAoEnC,OAAO,CAAC,mBAAmB;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/components/esports/videos/api.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGnD,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAyB;gBAE3B,MAAM,GAAE,sBAA2B;IAUzC,SAAS,CAAC,aAAa,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;YA8BzE,qBAAqB;IAoEnC,OAAO,CAAC,mBAAmB;IAmErB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,YAA2B,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;CAyChI;AAKD,wBAAgB,sBAAsB,CAAC,MAAM,GAAE,sBAA2B,GAAG,gBAAgB,CAE5F"}
|
|
@@ -109,6 +109,7 @@ class EsportsVideosAPI {
|
|
|
109
109
|
const baseItem = {
|
|
110
110
|
preset: preset,
|
|
111
111
|
id: item.id || item.content_id || '',
|
|
112
|
+
source: item.source || '',
|
|
112
113
|
title: item.title || '',
|
|
113
114
|
description: item.description || item.excerpt || '',
|
|
114
115
|
excerpt: item.excerpt || item.description || '',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/components/esports/videos/api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/components/esports/videos/api.ts"],"names":[],"mapp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AAQ,CAAC,IAAI,EAAE,CAAC;YAEnC,IAAI,IAAI,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBAC/E,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBACtC,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrD,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBACpE,OAAO,WAAW,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;gBAChC,CAAC;YACH,CAAC;YAED,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,mDAAmD,EAAE,KAAK,CAAC,CAAC;YAC1E,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;CACF;AA3ND,4CA2NC;AAKD,SAAgB,sBAAsB,CAAC,SAAiC,EAAE;IACxE,OAAO,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -6,11 +6,12 @@ interface VideoPlayerProps extends React.HTMLAttributes<HTMLVideoElement> {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
autoPlay?: boolean;
|
|
8
8
|
contentId?: string | number;
|
|
9
|
+
contentSource?: string;
|
|
9
10
|
onNext?: () => void;
|
|
10
11
|
onPrev?: () => void;
|
|
11
12
|
hasNext?: boolean;
|
|
12
13
|
hasPrev?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare function VideoPlayer({ videoUrl, posterImage, title, className, autoPlay, contentId, onNext, onPrev, hasNext, hasPrev, ...props }: VideoPlayerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function VideoPlayer({ videoUrl, posterImage, title, className, autoPlay, contentId, contentSource, onNext, onPrev, hasNext, hasPrev, ...props }: VideoPlayerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export {};
|
|
16
17
|
//# sourceMappingURL=VideoPlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoPlayer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/VideoPlayer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,UAAU,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACvE,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,KAAK,EACL,SAAc,EACd,QAAgB,EAChB,SAAS,EACT,MAAM,EACN,MAAM,EACN,OAAc,EACd,OAAc,EACd,GAAG,KAAK,EACT,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"VideoPlayer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/VideoPlayer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,UAAU,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACvE,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,KAAK,EACL,SAAc,EACd,QAAgB,EAChB,SAAS,EACT,aAAa,EACb,MAAM,EACN,MAAM,EACN,OAAc,EACd,OAAc,EACd,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAwWlB"}
|
|
@@ -49,7 +49,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
49
49
|
const utils_1 = require("../../libraries/utils");
|
|
50
50
|
const react_1 = require("react");
|
|
51
51
|
function VideoPlayer(_a) {
|
|
52
|
-
var { videoUrl, posterImage, title, className = "", autoPlay = false, contentId, onNext, onPrev, hasNext = true, hasPrev = true } = _a, props = __rest(_a, ["videoUrl", "posterImage", "title", "className", "autoPlay", "contentId", "onNext", "onPrev", "hasNext", "hasPrev"]);
|
|
52
|
+
var { videoUrl, posterImage, title, className = "", autoPlay = false, contentId, contentSource, onNext, onPrev, hasNext = true, hasPrev = true } = _a, props = __rest(_a, ["videoUrl", "posterImage", "title", "className", "autoPlay", "contentId", "contentSource", "onNext", "onPrev", "hasNext", "hasPrev"]);
|
|
53
53
|
const [isPlaying, setIsPlaying] = (0, react_1.useState)(autoPlay);
|
|
54
54
|
const [isMuted, setIsMuted] = (0, react_1.useState)(false);
|
|
55
55
|
const [currentTime, setCurrentTime] = (0, react_1.useState)(0);
|
|
@@ -214,10 +214,7 @@ function VideoPlayer(_a) {
|
|
|
214
214
|
setShowControls(false);
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("relative w-full bg-black rounded-lg overflow-hidden shadow-lg group", className), onMouseMove: handleMouseMove, onMouseLeave: handleMouseLeave, style: { aspectRatio: "16/9" }, children: [(0, jsx_runtime_1.jsx)("video", Object.assign({ ref: videoRef, poster: posterImage, className: "w-full h-full object-contain", onClick: togglePlay }, props)), !isPlaying && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "absolute inset-0 flex items-center justify-center bg-black/30 cursor-pointer", onClick: togglePlay }, (contentId !== undefined && {
|
|
218
|
-
"data-track-consume": "play",
|
|
219
|
-
"data-content-id": String(contentId),
|
|
220
|
-
}), { children: (0, jsx_runtime_1.jsx)("div", { className: "bg-red-600 rounded-full p-6 hover:bg-red-700 transition-colors", children: (0, jsx_runtime_1.jsx)("svg", { className: "w-12 h-12 text-white fill-current", viewBox: "0 0 24 24", children: (0, jsx_runtime_1.jsx)("path", { d: "M8 5v14l11-7z" }) }) }) }))), isLoading && ((0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/20", children: (0, jsx_runtime_1.jsx)("div", { className: "w-12 h-12 border-4 border-white border-t-transparent rounded-full animate-spin" }) })), (0, jsx_runtime_1.jsxs)("div", { className: `absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent p-4 transition-opacity duration-300 ${showControls ? "opacity-100" : "opacity-0"}`, children: [(0, jsx_runtime_1.jsx)("input", { type: "range", min: "0", max: duration || 0, value: currentTime, onChange: handleSeek, className: "w-full h-1 mb-3 bg-gray-600 rounded-lg appearance-none cursor-pointer accent-red-600", style: {
|
|
217
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, utils_1.cn)("relative w-full bg-black rounded-lg overflow-hidden shadow-lg group", className), onMouseMove: handleMouseMove, onMouseLeave: handleMouseLeave, style: { aspectRatio: "16/9" }, children: [(0, jsx_runtime_1.jsx)("video", Object.assign({ ref: videoRef, poster: posterImage, className: "w-full h-full object-contain", onClick: togglePlay }, props)), !isPlaying && ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "absolute inset-0 flex items-center justify-center bg-black/30 cursor-pointer", onClick: togglePlay }, (contentId !== undefined && Object.assign({ "data-track-consume": "play", "data-content-id": String(contentId) }, (contentSource !== undefined && { "data-content-source": contentSource }))), { children: (0, jsx_runtime_1.jsx)("div", { className: "bg-red-600 rounded-full p-6 hover:bg-red-700 transition-colors", children: (0, jsx_runtime_1.jsx)("svg", { className: "w-12 h-12 text-white fill-current", viewBox: "0 0 24 24", children: (0, jsx_runtime_1.jsx)("path", { d: "M8 5v14l11-7z" }) }) }) }))), isLoading && ((0, jsx_runtime_1.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/20", children: (0, jsx_runtime_1.jsx)("div", { className: "w-12 h-12 border-4 border-white border-t-transparent rounded-full animate-spin" }) })), (0, jsx_runtime_1.jsxs)("div", { className: `absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent p-4 transition-opacity duration-300 ${showControls ? "opacity-100" : "opacity-0"}`, children: [(0, jsx_runtime_1.jsx)("input", { type: "range", min: "0", max: duration || 0, value: currentTime, onChange: handleSeek, className: "w-full h-1 mb-3 bg-gray-600 rounded-lg appearance-none cursor-pointer accent-red-600", style: {
|
|
221
218
|
background: `linear-gradient(to right, #dc2626 0%, #dc2626 ${(currentTime / duration) * 100}%, #4b5563 ${(currentTime / duration) * 100}%, #4b5563 100%)`,
|
|
222
219
|
} }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between text-white", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-3", children: [onPrev && ((0, jsx_runtime_1.jsx)("button", { onClick: onPrev, disabled: !hasPrev, className: `hover:text-red-600 transition-colors ${!hasPrev ? "opacity-40 cursor-not-allowed" : ""}`, children: (0, jsx_runtime_1.jsx)("svg", { className: "w-6 h-6", viewBox: "0 0 24 24", fill: "currentColor", children: (0, jsx_runtime_1.jsx)("path", { d: "M6 6h2v12H6zm3.5 6l8.5 6V6z" }) }) })), (0, jsx_runtime_1.jsx)("button", { onClick: togglePlay, className: "hover:text-red-600 transition-colors", children: isPlaying ? ((0, jsx_runtime_1.jsx)("svg", { className: "w-6 h-6", viewBox: "0 0 24 24", fill: "currentColor", children: (0, jsx_runtime_1.jsx)("path", { d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z" }) })) : ((0, jsx_runtime_1.jsx)("svg", { className: "w-6 h-6", viewBox: "0 0 24 24", fill: "currentColor", children: (0, jsx_runtime_1.jsx)("path", { d: "M8 5v14l11-7z" }) })) }), onNext && ((0, jsx_runtime_1.jsx)("button", { onClick: onNext, disabled: !hasNext, className: `hover:text-red-600 transition-colors ${!hasNext ? "opacity-40 cursor-not-allowed" : ""}`, children: (0, jsx_runtime_1.jsx)("svg", { className: "w-6 h-6", viewBox: "0 0 24 24", fill: "currentColor", children: (0, jsx_runtime_1.jsx)("path", { d: "M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z" }) }) })), (0, jsx_runtime_1.jsx)("button", { onClick: toggleMute, className: "hover:text-red-600 transition-colors", children: isMuted ? ((0, jsx_runtime_1.jsx)("svg", { className: "w-6 h-6", viewBox: "0 0 24 24", fill: "currentColor", children: (0, jsx_runtime_1.jsx)("path", { d: "M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z" }) })) : ((0, jsx_runtime_1.jsx)("svg", { className: "w-6 h-6", viewBox: "0 0 24 24", fill: "currentColor", children: (0, jsx_runtime_1.jsx)("path", { d: "M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z" }) })) }), (0, jsx_runtime_1.jsxs)("div", { className: "text-sm", children: [formatTime(currentTime), " / ", formatTime(duration)] })] }), (0, jsx_runtime_1.jsx)("button", { onClick: handleFullscreen, className: "hover:text-red-600 transition-colors", children: (0, jsx_runtime_1.jsx)("svg", { className: "w-5 h-5", viewBox: "0 0 24 24", fill: "currentColor", children: (0, jsx_runtime_1.jsx)("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" }) }) })] })] })] }));
|
|
223
220
|
}
|