@livepeer-frameworks/player-wc 0.1.8 → 0.2.1
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/dist/esm/components/controls/fw-fullscreen-button.js +76 -0
- package/dist/esm/components/controls/fw-fullscreen-button.js.map +1 -0
- package/dist/esm/components/controls/fw-live-badge.js +109 -0
- package/dist/esm/components/controls/fw-live-badge.js.map +1 -0
- package/dist/esm/components/controls/fw-play-button.js +76 -0
- package/dist/esm/components/controls/fw-play-button.js.map +1 -0
- package/dist/esm/components/controls/fw-skip-button.js +62 -0
- package/dist/esm/components/controls/fw-skip-button.js.map +1 -0
- package/dist/esm/components/controls/fw-time-display.js +77 -0
- package/dist/esm/components/controls/fw-time-display.js.map +1 -0
- package/dist/esm/components/controls/fw-volume-control.js +76 -0
- package/dist/esm/components/controls/fw-volume-control.js.map +1 -0
- package/dist/esm/components/fw-dev-mode-panel.js +11 -15
- package/dist/esm/components/fw-dev-mode-panel.js.map +1 -1
- package/dist/esm/components/fw-error-overlay.js +13 -5
- package/dist/esm/components/fw-error-overlay.js.map +1 -1
- package/dist/esm/components/fw-idle-screen.js +10 -2
- package/dist/esm/components/fw-idle-screen.js.map +1 -1
- package/dist/esm/components/fw-loading-screen.js +89 -42
- package/dist/esm/components/fw-loading-screen.js.map +1 -1
- package/dist/esm/components/fw-loading-spinner.js +20 -9
- package/dist/esm/components/fw-loading-spinner.js.map +1 -1
- package/dist/esm/components/fw-player-controls.js +41 -26
- package/dist/esm/components/fw-player-controls.js.map +1 -1
- package/dist/esm/components/fw-player.js +165 -59
- package/dist/esm/components/fw-player.js.map +1 -1
- package/dist/esm/components/fw-settings-menu.js +44 -9
- package/dist/esm/components/fw-settings-menu.js.map +1 -1
- package/dist/esm/components/fw-stream-state-overlay.js +13 -5
- package/dist/esm/components/fw-stream-state-overlay.js.map +1 -1
- package/dist/esm/components/fw-toast.js +11 -1
- package/dist/esm/components/fw-toast.js.map +1 -1
- package/dist/esm/components/fw-volume-control.js +104 -39
- package/dist/esm/components/fw-volume-control.js.map +1 -1
- package/dist/esm/controllers/player-controller-host.js +14 -1
- package/dist/esm/controllers/player-controller-host.js.map +1 -1
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/shared-styles.js +401 -304
- package/dist/esm/styles/shared-styles.js.map +1 -1
- package/dist/fw-player.iife.js +722 -499
- package/dist/types/components/controls/fw-fullscreen-button.d.ts +18 -0
- package/dist/types/components/controls/fw-live-badge.d.ts +19 -0
- package/dist/types/components/controls/fw-play-button.d.ts +18 -0
- package/dist/types/components/controls/fw-skip-button.d.ts +17 -0
- package/dist/types/components/controls/fw-time-display.d.ts +17 -0
- package/dist/types/components/controls/fw-volume-control.d.ts +18 -0
- package/dist/types/components/controls/index.d.ts +6 -0
- package/dist/types/components/fw-dev-mode-panel.d.ts +1 -1
- package/dist/types/components/fw-error-overlay.d.ts +4 -0
- package/dist/types/components/fw-idle-screen.d.ts +4 -0
- package/dist/types/components/fw-loading-screen.d.ts +5 -1
- package/dist/types/components/fw-loading-spinner.d.ts +4 -0
- package/dist/types/components/fw-player-controls.d.ts +3 -1
- package/dist/types/components/fw-player.d.ts +10 -1
- package/dist/types/components/fw-settings-menu.d.ts +3 -1
- package/dist/types/components/fw-stream-state-overlay.d.ts +4 -0
- package/dist/types/components/fw-toast.d.ts +4 -0
- package/dist/types/components/fw-volume-control.d.ts +11 -0
- package/dist/types/controllers/player-controller-host.d.ts +7 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +10 -13
- package/src/components/controls/fw-fullscreen-button.ts +75 -0
- package/src/components/controls/fw-live-badge.ts +109 -0
- package/src/components/controls/fw-play-button.ts +75 -0
- package/src/components/controls/fw-skip-button.ts +59 -0
- package/src/components/controls/fw-time-display.ts +74 -0
- package/src/components/controls/fw-volume-control.ts +75 -0
- package/src/components/controls/index.ts +6 -0
- package/src/components/fw-dev-mode-panel.ts +10 -17
- package/src/components/fw-error-overlay.ts +13 -5
- package/src/components/fw-idle-screen.ts +10 -2
- package/src/components/fw-loading-screen.ts +90 -46
- package/src/components/fw-loading-spinner.ts +18 -9
- package/src/components/fw-player-controls.ts +39 -28
- package/src/components/fw-player.ts +166 -64
- package/src/components/fw-settings-menu.ts +49 -9
- package/src/components/fw-stream-state-overlay.ts +13 -5
- package/src/components/fw-toast.ts +11 -1
- package/src/components/fw-volume-control.ts +112 -43
- package/src/controllers/player-controller-host.ts +18 -0
- package/src/index.ts +10 -0
- package/src/styles/shared-styles.ts +401 -304
- package/dist/cjs/components/fw-context-menu.js +0 -17
- package/dist/cjs/components/fw-context-menu.js.map +0 -1
- package/dist/cjs/components/fw-dev-mode-panel.js +0 -907
- package/dist/cjs/components/fw-dev-mode-panel.js.map +0 -1
- package/dist/cjs/components/fw-dvd-logo.js +0 -211
- package/dist/cjs/components/fw-dvd-logo.js.map +0 -1
- package/dist/cjs/components/fw-error-overlay.js +0 -101
- package/dist/cjs/components/fw-error-overlay.js.map +0 -1
- package/dist/cjs/components/fw-idle-screen.js +0 -726
- package/dist/cjs/components/fw-idle-screen.js.map +0 -1
- package/dist/cjs/components/fw-loading-screen.js +0 -513
- package/dist/cjs/components/fw-loading-screen.js.map +0 -1
- package/dist/cjs/components/fw-loading-spinner.js +0 -62
- package/dist/cjs/components/fw-loading-spinner.js.map +0 -1
- package/dist/cjs/components/fw-player-controls.js +0 -441
- package/dist/cjs/components/fw-player-controls.js.map +0 -1
- package/dist/cjs/components/fw-player.js +0 -832
- package/dist/cjs/components/fw-player.js.map +0 -1
- package/dist/cjs/components/fw-seek-bar.js +0 -383
- package/dist/cjs/components/fw-seek-bar.js.map +0 -1
- package/dist/cjs/components/fw-settings-menu.js +0 -253
- package/dist/cjs/components/fw-settings-menu.js.map +0 -1
- package/dist/cjs/components/fw-skip-indicator.js +0 -143
- package/dist/cjs/components/fw-skip-indicator.js.map +0 -1
- package/dist/cjs/components/fw-speed-indicator.js +0 -61
- package/dist/cjs/components/fw-speed-indicator.js.map +0 -1
- package/dist/cjs/components/fw-stats-panel.js +0 -205
- package/dist/cjs/components/fw-stats-panel.js.map +0 -1
- package/dist/cjs/components/fw-stream-state-overlay.js +0 -338
- package/dist/cjs/components/fw-stream-state-overlay.js.map +0 -1
- package/dist/cjs/components/fw-subtitle-renderer.js +0 -217
- package/dist/cjs/components/fw-subtitle-renderer.js.map +0 -1
- package/dist/cjs/components/fw-thumbnail-overlay.js +0 -161
- package/dist/cjs/components/fw-thumbnail-overlay.js.map +0 -1
- package/dist/cjs/components/fw-title-overlay.js +0 -72
- package/dist/cjs/components/fw-title-overlay.js.map +0 -1
- package/dist/cjs/components/fw-toast.js +0 -74
- package/dist/cjs/components/fw-toast.js.map +0 -1
- package/dist/cjs/components/fw-volume-control.js +0 -221
- package/dist/cjs/components/fw-volume-control.js.map +0 -1
- package/dist/cjs/components/shared/hitmarker-audio.js +0 -76
- package/dist/cjs/components/shared/hitmarker-audio.js.map +0 -1
- package/dist/cjs/constants/media-assets.js +0 -11
- package/dist/cjs/constants/media-assets.js.map +0 -1
- package/dist/cjs/controllers/player-controller-host.js +0 -364
- package/dist/cjs/controllers/player-controller-host.js.map +0 -1
- package/dist/cjs/define.js +0 -53
- package/dist/cjs/define.js.map +0 -1
- package/dist/cjs/icons/index.js +0 -180
- package/dist/cjs/icons/index.js.map +0 -1
- package/dist/cjs/index.js +0 -108
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/node_modules/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js +0 -33
- package/dist/cjs/node_modules/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/cjs/styles/shared-styles.js +0 -1985
- package/dist/cjs/styles/shared-styles.js.map +0 -1
- package/dist/cjs/styles/utility-styles.js +0 -725
- package/dist/cjs/styles/utility-styles.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fw-idle-screen.js","sources":["../../../../src/components/fw-idle-screen.ts"],"sourcesContent":["import { LitElement, html, css, nothing } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { sharedStyles } from \"../styles/shared-styles.js\";\nimport { utilityStyles } from \"../styles/utility-styles.js\";\nimport { LOGOMARK_DATA_URL } from \"../constants/media-assets.js\";\nimport { playHitmarkerSound } from \"./shared/hitmarker-audio.js\";\nimport \"./fw-dvd-logo.js\";\n\ninterface ParticleState {\n left: number;\n size: number;\n color: string;\n duration: number;\n delay: number;\n}\n\ninterface BubbleState {\n top: number;\n left: number;\n size: number;\n opacity: number;\n color: string;\n}\n\ninterface Hitmarker {\n id: number;\n x: number;\n y: number;\n}\n\nconst BUBBLE_COLORS = [\n \"rgba(122, 162, 247, 0.2)\",\n \"rgba(187, 154, 247, 0.2)\",\n \"rgba(158, 206, 106, 0.2)\",\n \"rgba(115, 218, 202, 0.2)\",\n \"rgba(125, 207, 255, 0.2)\",\n \"rgba(247, 118, 142, 0.2)\",\n \"rgba(224, 175, 104, 0.2)\",\n \"rgba(42, 195, 222, 0.2)\",\n];\n\nconst PARTICLE_COLORS = [\n \"#7aa2f7\",\n \"#bb9af7\",\n \"#9ece6a\",\n \"#73daca\",\n \"#7dcfff\",\n \"#f7768e\",\n \"#e0af68\",\n \"#2ac3de\",\n];\n\n@customElement(\"fw-idle-screen\")\nexport class FwIdleScreen extends LitElement {\n @property({ type: String }) status?: string;\n @property({ type: String }) message?: string;\n @property({ type: Number }) percentage?: number;\n @property({ type: String }) error?: string;\n @property({ type: String, attribute: \"logo-src\" }) logoSrc?: string;\n @property({ type: Boolean, attribute: \"retry-enabled\" }) retryEnabled = false;\n @property({ attribute: false }) onRetry?: () => void;\n @query(\".idle-container\") private _containerEl?: HTMLDivElement;\n\n @state() private _logoSize = 100;\n @state() private _logoOffset = { x: 0, y: 0 };\n @state() private _isLogoHovered = false;\n @state() private _bubbles: BubbleState[] = this._createBubbles();\n @state() private _hitmarkers: Hitmarker[] = [];\n\n private readonly _particles: ParticleState[] = this._createParticles();\n private _bubbleTimers = new Set<ReturnType<typeof setTimeout>>();\n private _resizeObserver?: ResizeObserver;\n\n static styles = [\n sharedStyles,\n utilityStyles,\n css`\n :host {\n display: contents;\n }\n .idle-container {\n position: absolute;\n inset: 0;\n z-index: 5;\n background: linear-gradient(\n 135deg,\n hsl(var(--tn-bg-dark, 235 21% 11%)) 0%,\n hsl(var(--tn-bg, 233 23% 17%)) 25%,\n hsl(var(--tn-bg-dark, 235 21% 11%)) 50%,\n hsl(var(--tn-bg, 233 23% 17%)) 75%,\n hsl(var(--tn-bg-dark, 235 21% 11%)) 100%\n );\n background-size: 400% 400%;\n animation: _fw-gradient-shift 16s ease-in-out infinite;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n user-select: none;\n -webkit-user-select: none;\n }\n\n .particles,\n .bubbles {\n position: absolute;\n inset: 0;\n pointer-events: none;\n }\n\n .particle {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n animation: _fw-float-up linear infinite;\n }\n\n .bubble {\n position: absolute;\n border-radius: 50%;\n transition: opacity 1s ease-in-out;\n }\n\n .center-logo {\n position: absolute;\n top: 50%;\n left: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: transform 0.3s ease-out;\n }\n\n .logo-pulse {\n position: absolute;\n border-radius: 50%;\n background: rgba(122, 162, 247, 0.15);\n animation: _fw-logo-pulse 3s ease-in-out infinite;\n pointer-events: none;\n transition: transform 0.3s ease-out;\n }\n\n .logo-pulse.hovered {\n animation: _fw-logo-pulse 1s ease-in-out infinite;\n transform: scale(1.2);\n }\n\n .logo-button {\n all: unset;\n cursor: pointer;\n display: block;\n }\n\n .logo-image {\n position: relative;\n z-index: 1;\n display: block;\n filter: drop-shadow(0 4px 8px rgb(36 40 59 / 0.3));\n transition: all 0.3s ease-out;\n cursor: default;\n user-select: none;\n -webkit-user-drag: none;\n }\n\n .logo-image.hovered {\n transform: scale(1.1);\n filter: drop-shadow(0 6px 12px rgb(36 40 59 / 0.4)) brightness(1.1);\n }\n\n .status-overlay {\n position: absolute;\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 20;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n max-width: 280px;\n text-align: center;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n }\n\n .status-indicator {\n display: flex;\n align-items: center;\n gap: 8px;\n color: #787c99;\n font-size: 13px;\n }\n\n .status-icon {\n width: 20px;\n height: 20px;\n flex: 0 0 auto;\n }\n\n .status-icon.spinning {\n animation: _fw-spin 1s linear infinite;\n }\n\n .progress-bar {\n width: 160px;\n height: 4px;\n background: rgb(65 72 104 / 0.4);\n border-radius: 2px;\n overflow: hidden;\n }\n\n .progress-fill {\n height: 100%;\n background: hsl(var(--tn-cyan, 193 100% 75%));\n transition: width 0.3s ease-out;\n }\n\n .retry-btn {\n padding: 6px 16px;\n background: transparent;\n border: 1px solid rgb(122 162 247 / 0.4);\n border-radius: 4px;\n color: #7aa2f7;\n font-size: 11px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.2s ease;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n }\n\n .retry-btn:hover {\n background: rgb(122 162 247 / 0.1);\n }\n\n .overlay-texture {\n position: absolute;\n inset: 0;\n background:\n radial-gradient(circle at 20% 80%, rgb(122 162 247 / 0.03) 0%, transparent 50%),\n radial-gradient(circle at 80% 20%, rgb(187 154 247 / 0.03) 0%, transparent 50%),\n radial-gradient(circle at 40% 40%, rgb(158 206 106 / 0.02) 0%, transparent 50%);\n pointer-events: none;\n }\n\n .hitmarker {\n position: absolute;\n transform: translate(-50%, -50%);\n pointer-events: none;\n z-index: 100;\n width: 40px;\n height: 40px;\n }\n\n .hitmarker-line {\n position: absolute;\n width: 12px;\n height: 3px;\n background-color: #fff;\n box-shadow: 0 0 8px rgb(255 255 255 / 0.8);\n border-radius: 1px;\n }\n\n .hitmarker-line.tl {\n top: 25%;\n left: 25%;\n animation: _fw-hitmarker-fade-45 0.6s ease-out forwards;\n }\n\n .hitmarker-line.tr {\n top: 25%;\n left: 75%;\n animation: _fw-hitmarker-fade-neg-45 0.6s ease-out forwards;\n }\n\n .hitmarker-line.bl {\n top: 75%;\n left: 25%;\n animation: _fw-hitmarker-fade-neg-45 0.6s ease-out forwards;\n }\n\n .hitmarker-line.br {\n top: 75%;\n left: 75%;\n animation: _fw-hitmarker-fade-45 0.6s ease-out forwards;\n }\n\n @keyframes _fw-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n\n @keyframes _fw-logo-pulse {\n 0%,\n 100% {\n opacity: 0.15;\n transform: scale(1);\n }\n 50% {\n opacity: 0.25;\n transform: scale(1.05);\n }\n }\n\n @keyframes _fw-float-up {\n 0% {\n transform: translateY(100vh) rotate(0deg);\n opacity: 0;\n }\n 10% {\n opacity: 0.6;\n }\n 90% {\n opacity: 0.6;\n }\n 100% {\n transform: translateY(-100px) rotate(360deg);\n opacity: 0;\n }\n }\n\n @keyframes _fw-gradient-shift {\n 0%,\n 100% {\n background-position: 0% 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n }\n\n @keyframes _fw-hitmarker-fade-45 {\n 0% {\n opacity: 1;\n transform: translate(-50%, -50%) rotate(45deg) scale(0.5);\n }\n 20% {\n opacity: 1;\n transform: translate(-50%, -50%) rotate(45deg) scale(1.2);\n }\n 100% {\n opacity: 0;\n transform: translate(-50%, -50%) rotate(45deg) scale(1);\n }\n }\n\n @keyframes _fw-hitmarker-fade-neg-45 {\n 0% {\n opacity: 1;\n transform: translate(-50%, -50%) rotate(-45deg) scale(0.5);\n }\n 20% {\n opacity: 1;\n transform: translate(-50%, -50%) rotate(-45deg) scale(1.2);\n }\n 100% {\n opacity: 0;\n transform: translate(-50%, -50%) rotate(-45deg) scale(1);\n }\n }\n `,\n ];\n\n connectedCallback() {\n super.connectedCallback();\n this._clearBubbleTimers();\n this._startBubbleAnimations();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._clearBubbleTimers();\n this._resizeObserver?.disconnect();\n this._resizeObserver = undefined;\n }\n\n protected firstUpdated() {\n this._updateLogoSize();\n if (typeof ResizeObserver !== \"undefined\") {\n this._resizeObserver = new ResizeObserver(() => {\n this._updateLogoSize();\n });\n if (this._containerEl) {\n this._resizeObserver.observe(this._containerEl);\n }\n }\n }\n\n private _createParticles(): ParticleState[] {\n return Array.from({ length: 12 }, (_, i) => ({\n left: Math.random() * 100,\n size: Math.random() * 4 + 2,\n color: PARTICLE_COLORS[i % PARTICLE_COLORS.length],\n duration: 8 + Math.random() * 4,\n delay: Math.random() * 8,\n }));\n }\n\n private _createBubbles(): BubbleState[] {\n return Array.from({ length: 8 }, (_, i) => ({\n top: Math.random() * 80 + 10,\n left: Math.random() * 80 + 10,\n size: Math.random() * 60 + 30,\n opacity: 0,\n color: BUBBLE_COLORS[i % BUBBLE_COLORS.length],\n }));\n }\n\n private _setManagedTimer(callback: () => void, delayMs: number) {\n const timer = setTimeout(() => {\n this._bubbleTimers.delete(timer);\n callback();\n }, delayMs);\n this._bubbleTimers.add(timer);\n }\n\n private _clearBubbleTimers() {\n this._bubbleTimers.forEach((timer) => clearTimeout(timer));\n this._bubbleTimers.clear();\n }\n\n private _updateBubble(index: number, nextState: Partial<BubbleState>) {\n if (index < 0 || index >= this._bubbles.length) {\n return;\n }\n const next = [...this._bubbles];\n next[index] = { ...next[index], ...nextState };\n this._bubbles = next;\n }\n\n private _animateBubble(index: number) {\n this._updateBubble(index, { opacity: 0.15 });\n\n const visibleDuration = 4000 + Math.random() * 3000;\n this._setManagedTimer(() => {\n this._updateBubble(index, { opacity: 0 });\n this._setManagedTimer(() => {\n this._updateBubble(index, {\n top: Math.random() * 80 + 10,\n left: Math.random() * 80 + 10,\n size: Math.random() * 60 + 30,\n });\n this._setManagedTimer(() => this._animateBubble(index), 200);\n }, 1500);\n }, visibleDuration);\n }\n\n private _startBubbleAnimations() {\n this._bubbles.forEach((_, index) => {\n this._setManagedTimer(() => this._animateBubble(index), index * 500);\n });\n }\n\n private _updateLogoSize() {\n const rect = this._containerEl?.getBoundingClientRect() ?? this.getBoundingClientRect();\n const minDimension = Math.min(rect.width, rect.height);\n if (!Number.isFinite(minDimension) || minDimension <= 0) {\n return;\n }\n this._logoSize = minDimension * 0.2;\n }\n\n private _handleMouseMove = (event: MouseEvent) => {\n const rect = this._containerEl?.getBoundingClientRect() ?? this.getBoundingClientRect();\n if (rect.width === 0 || rect.height === 0) {\n return;\n }\n\n const centerX = rect.left + rect.width / 2;\n const centerY = rect.top + rect.height / 2;\n const deltaX = event.clientX - centerX;\n const deltaY = event.clientY - centerY;\n const distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n const maxDistance = this._logoSize * 1.5;\n\n if (distance < maxDistance && distance > 0) {\n const pushStrength = (maxDistance - distance) / maxDistance;\n const pushDistance = 50 * pushStrength;\n this._logoOffset = {\n x: -(deltaX / distance) * pushDistance,\n y: -(deltaY / distance) * pushDistance,\n };\n this._isLogoHovered = true;\n return;\n }\n\n this._logoOffset = { x: 0, y: 0 };\n this._isLogoHovered = false;\n };\n\n private _handleMouseLeave = () => {\n this._logoOffset = { x: 0, y: 0 };\n this._isLogoHovered = false;\n };\n\n private _handleLogoClick = (event: MouseEvent) => {\n event.stopPropagation();\n\n const rect = this._containerEl?.getBoundingClientRect() ?? this.getBoundingClientRect();\n const hitmarker = {\n id: Date.now() + Math.random(),\n x: event.clientX - rect.left,\n y: event.clientY - rect.top,\n };\n this._hitmarkers = [...this._hitmarkers, hitmarker];\n playHitmarkerSound();\n\n this._setManagedTimer(() => {\n this._hitmarkers = this._hitmarkers.filter((h) => h.id !== hitmarker.id);\n }, 600);\n };\n\n private _handleRetry = () => {\n if (this.onRetry) {\n this.onRetry();\n return;\n }\n this.dispatchEvent(\n new CustomEvent(\"fw-retry\", {\n bubbles: true,\n composed: true,\n })\n );\n };\n\n private get _isLoading() {\n return (\n this.status === \"INITIALIZING\" ||\n this.status === \"BOOTING\" ||\n this.status === \"WAITING_FOR_DATA\" ||\n !this.status\n );\n }\n\n private get _isOffline() {\n return this.status === \"OFFLINE\";\n }\n\n private get _isError() {\n return this.status === \"ERROR\" || this.status === \"INVALID\";\n }\n\n private get _showProgress() {\n return this.status === \"INITIALIZING\" && this.percentage != null;\n }\n\n private get _showRetry() {\n return this._isError && (this.retryEnabled || typeof this.onRetry === \"function\");\n }\n\n private get _displayMessage() {\n return this.error || this.message || \"Waiting for stream...\";\n }\n\n private _renderStatusIcon() {\n if (this._isLoading) {\n return html`\n <svg\n class=\"status-icon spinning\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n style=\"color: hsl(var(--tn-yellow, 40 95% 64%));\"\n >\n <circle\n style=\"opacity: 0.25;\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n stroke-width=\"4\"\n />\n <path\n style=\"opacity: 0.75;\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n `;\n }\n\n if (this._isOffline) {\n return html`\n <svg\n class=\"status-icon\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n style=\"color: hsl(var(--tn-red, 348 100% 72%));\"\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M18.364 5.636a9 9 0 010 12.728m0 0l-2.829-2.829m2.829 2.829L21 21M15.536 8.464a5 5 0 010 7.072m0 0l-2.829-2.829m-4.243 2.829a4.978 4.978 0 01-1.414-2.83m-1.414 5.658a9 9 0 01-2.167-9.238m7.824 2.167a1 1 0 111.414 1.414m-1.414-1.414L3 3m8.293 8.293l1.414 1.414\"\n ></path>\n </svg>\n `;\n }\n\n if (this._isError) {\n return html`\n <svg\n class=\"status-icon\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n style=\"color: hsl(var(--tn-red, 348 100% 72%));\"\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z\"\n ></path>\n </svg>\n `;\n }\n\n return html`\n <svg\n class=\"status-icon spinning\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n style=\"color: hsl(var(--tn-cyan, 193 100% 75%));\"\n >\n <circle\n style=\"opacity: 0.25;\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n stroke-width=\"4\"\n />\n <path\n style=\"opacity: 0.75;\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n ></path>\n </svg>\n `;\n }\n\n protected render() {\n const progress = Math.min(100, Math.max(0, this.percentage ?? 0));\n const logoSrc = this.logoSrc || LOGOMARK_DATA_URL;\n\n return html`\n <div\n class=\"idle-container fw-player-root\"\n role=\"status\"\n aria-label=\"Stream status\"\n @mousemove=${this._handleMouseMove}\n @mouseleave=${this._handleMouseLeave}\n >\n ${this._hitmarkers.map(\n (hitmarker) => html`\n <div class=\"hitmarker\" style=\"left: ${hitmarker.x}px; top: ${hitmarker.y}px;\">\n <div class=\"hitmarker-line tl\"></div>\n <div class=\"hitmarker-line tr\"></div>\n <div class=\"hitmarker-line bl\"></div>\n <div class=\"hitmarker-line br\"></div>\n </div>\n `\n )}\n\n <div class=\"particles\">\n ${this._particles.map(\n (particle) => html`\n <div\n class=\"particle\"\n style=\"\n left: ${particle.left}%;\n width: ${particle.size}px;\n height: ${particle.size}px;\n background: ${particle.color};\n animation-duration: ${particle.duration}s;\n animation-delay: ${particle.delay}s;\n \"\n ></div>\n `\n )}\n </div>\n\n <div class=\"bubbles\">\n ${this._bubbles.map(\n (bubble) => html`\n <div\n class=\"bubble\"\n style=\"\n top: ${bubble.top}%;\n left: ${bubble.left}%;\n width: ${bubble.size}px;\n height: ${bubble.size}px;\n background: ${bubble.color};\n opacity: ${bubble.opacity};\n \"\n ></div>\n `\n )}\n </div>\n\n <div\n class=\"center-logo\"\n style=\"transform: translate(-50%, -50%) translate(${this._logoOffset.x}px, ${this\n ._logoOffset.y}px);\"\n >\n <div\n class=\"logo-pulse ${this._isLogoHovered ? \"hovered\" : \"\"}\"\n style=\"width: ${this._logoSize * 1.4}px; height: ${this._logoSize * 1.4}px;\"\n ></div>\n <button\n type=\"button\"\n class=\"logo-button\"\n @click=${this._handleLogoClick}\n aria-label=\"FrameWorks logo\"\n >\n <img\n src=${logoSrc}\n alt=\"\"\n class=\"logo-image ${this._isLogoHovered ? \"hovered\" : \"\"}\"\n style=\"width: ${this._logoSize}px; height: ${this._logoSize}px;\"\n draggable=\"false\"\n />\n </button>\n </div>\n\n <fw-dvd-logo .parentRef=${this._containerEl ?? null} .scale=${0.08}></fw-dvd-logo>\n\n <div class=\"status-overlay\">\n <div class=\"status-indicator\">\n ${this._renderStatusIcon()}\n <span>${this._displayMessage}</span>\n </div>\n\n ${this._showProgress\n ? html`\n <div class=\"progress-bar\">\n <div class=\"progress-fill\" style=\"width: ${progress}%;\"></div>\n </div>\n `\n : nothing}\n ${this._showRetry\n ? html`<button type=\"button\" class=\"retry-btn\" @click=${this._handleRetry}>\n Retry\n </button>`\n : nothing}\n </div>\n\n <div class=\"overlay-texture\"></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"fw-idle-screen\": FwIdleScreen;\n }\n}\n"],"names":["FwIdleScreen","LitElement","playHitmarkerSound","html","LOGOMARK_DATA_URL","nothing","sharedStyles","utilityStyles","css","__decorate","property","query","state","customElement"],"mappings":";;;;;;;;;;;AA8BA,MAAM,aAAa,GAAG;IACpB,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,yBAAyB;CAC1B;AAED,MAAM,eAAe,GAAG;IACtB,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;CACV;AAGYA,oBAAY,GAAlB,MAAM,YAAa,SAAQC,cAAU,CAAA;AAArC,IAAA,WAAA,GAAA;;QAMoD,IAAA,CAAA,YAAY,GAAG,KAAK;QAI5D,IAAA,CAAA,SAAS,GAAG,GAAG;QACf,IAAA,CAAA,WAAW,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;QAC5B,IAAA,CAAA,cAAc,GAAG,KAAK;AACtB,QAAA,IAAA,CAAA,QAAQ,GAAkB,IAAI,CAAC,cAAc,EAAE;QAC/C,IAAA,CAAA,WAAW,GAAgB,EAAE;AAE7B,QAAA,IAAA,CAAA,UAAU,GAAoB,IAAI,CAAC,gBAAgB,EAAE;AAC9D,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,GAAG,EAAiC;AA2YxD,QAAA,IAAA,CAAA,gBAAgB,GAAG,CAAC,KAAiB,KAAI;AAC/C,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,qBAAqB,EAAE,IAAI,IAAI,CAAC,qBAAqB,EAAE;AACvF,YAAA,IAAI,IAAI,CAAC,KAAK,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;gBACzC;YACF;YAEA,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC;YAC1C,MAAM,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,CAAA;AAC7BS,oBAAA,CAAA;AAAhB,IAAAG,mBAAK;AAAkC,CAAA,EAAAZ,oBAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,MAAA,CAAA;AACvBS,oBAAA,CAAA;AAAhB,IAAAG,mBAAK;AAA2D,CAAA,EAAAZ,oBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAChDS,oBAAA,CAAA;AAAhB,IAAAG,mBAAK;AAAyC,CAAA,EAAAZ,oBAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;AAdpCA,oBAAY,GAAAS,oBAAA,CAAA;IADxBI,2BAAa,CAAC,gBAAgB;AAClB,CAAA,EAAAb,oBAAY,CA8rBxB;;"}
|
|
@@ -1,513 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var tslib_es6 = require('../node_modules/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js');
|
|
4
|
-
var lit = require('lit');
|
|
5
|
-
var decorators_js = require('lit/decorators.js');
|
|
6
|
-
var sharedStyles = require('../styles/shared-styles.js');
|
|
7
|
-
var utilityStyles = require('../styles/utility-styles.js');
|
|
8
|
-
var mediaAssets = require('../constants/media-assets.js');
|
|
9
|
-
var hitmarkerAudio = require('./shared/hitmarker-audio.js');
|
|
10
|
-
require('./fw-dvd-logo.js');
|
|
11
|
-
|
|
12
|
-
const BUBBLE_COLORS = [
|
|
13
|
-
"rgba(122, 162, 247, 0.2)",
|
|
14
|
-
"rgba(187, 154, 247, 0.2)",
|
|
15
|
-
"rgba(158, 206, 106, 0.2)",
|
|
16
|
-
"rgba(115, 218, 202, 0.2)",
|
|
17
|
-
"rgba(125, 207, 255, 0.2)",
|
|
18
|
-
"rgba(247, 118, 142, 0.2)",
|
|
19
|
-
"rgba(224, 175, 104, 0.2)",
|
|
20
|
-
"rgba(42, 195, 222, 0.2)",
|
|
21
|
-
];
|
|
22
|
-
const PARTICLE_COLORS = [
|
|
23
|
-
"#7aa2f7",
|
|
24
|
-
"#bb9af7",
|
|
25
|
-
"#9ece6a",
|
|
26
|
-
"#73daca",
|
|
27
|
-
"#7dcfff",
|
|
28
|
-
"#f7768e",
|
|
29
|
-
"#e0af68",
|
|
30
|
-
"#2ac3de",
|
|
31
|
-
];
|
|
32
|
-
exports.FwLoadingScreen = class FwLoadingScreen extends lit.LitElement {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(...arguments);
|
|
35
|
-
this.message = "Waiting for source...";
|
|
36
|
-
this._logoSize = 100;
|
|
37
|
-
this._logoOffset = { x: 0, y: 0 };
|
|
38
|
-
this._isLogoHovered = false;
|
|
39
|
-
this._bubbles = this._createBubbles();
|
|
40
|
-
this._hitmarkers = [];
|
|
41
|
-
this._bubbleTimers = new Set();
|
|
42
|
-
this._resizeObserver = null;
|
|
43
|
-
this._particles = this._createParticles();
|
|
44
|
-
this._handleMouseMove = (event) => {
|
|
45
|
-
const rect = this._containerEl?.getBoundingClientRect() ?? this.getBoundingClientRect();
|
|
46
|
-
if (rect.width <= 0 || rect.height <= 0) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
const centerX = rect.left + rect.width / 2;
|
|
50
|
-
const centerY = rect.top + rect.height / 2;
|
|
51
|
-
const deltaX = event.clientX - centerX;
|
|
52
|
-
const deltaY = event.clientY - centerY;
|
|
53
|
-
const distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);
|
|
54
|
-
const maxDistance = this._logoSize * 1.5;
|
|
55
|
-
if (distance < maxDistance && distance > 0) {
|
|
56
|
-
const pushStrength = (maxDistance - distance) / maxDistance;
|
|
57
|
-
const pushDistance = 50 * pushStrength;
|
|
58
|
-
this._logoOffset = {
|
|
59
|
-
x: -(deltaX / distance) * pushDistance,
|
|
60
|
-
y: -(deltaY / distance) * pushDistance,
|
|
61
|
-
};
|
|
62
|
-
this._isLogoHovered = true;
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
this._logoOffset = { x: 0, y: 0 };
|
|
66
|
-
this._isLogoHovered = false;
|
|
67
|
-
};
|
|
68
|
-
this._handleMouseLeave = () => {
|
|
69
|
-
this._logoOffset = { x: 0, y: 0 };
|
|
70
|
-
this._isLogoHovered = false;
|
|
71
|
-
};
|
|
72
|
-
this._handleLogoClick = (event) => {
|
|
73
|
-
event.stopPropagation();
|
|
74
|
-
const rect = this._containerEl?.getBoundingClientRect() ?? this.getBoundingClientRect();
|
|
75
|
-
const hitmarker = {
|
|
76
|
-
id: Date.now() + Math.random(),
|
|
77
|
-
x: event.clientX - rect.left,
|
|
78
|
-
y: event.clientY - rect.top,
|
|
79
|
-
};
|
|
80
|
-
this._hitmarkers = [...this._hitmarkers, hitmarker];
|
|
81
|
-
hitmarkerAudio.playHitmarkerSound();
|
|
82
|
-
this._setManagedTimer(() => {
|
|
83
|
-
this._hitmarkers = this._hitmarkers.filter((value) => value.id !== hitmarker.id);
|
|
84
|
-
}, 600);
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
connectedCallback() {
|
|
88
|
-
super.connectedCallback();
|
|
89
|
-
this._clearBubbleTimers();
|
|
90
|
-
this._startBubbleAnimations();
|
|
91
|
-
}
|
|
92
|
-
disconnectedCallback() {
|
|
93
|
-
super.disconnectedCallback();
|
|
94
|
-
this._clearBubbleTimers();
|
|
95
|
-
this._resizeObserver?.disconnect();
|
|
96
|
-
this._resizeObserver = null;
|
|
97
|
-
}
|
|
98
|
-
firstUpdated() {
|
|
99
|
-
this._updateLogoSize();
|
|
100
|
-
if (typeof ResizeObserver !== "undefined") {
|
|
101
|
-
this._resizeObserver = new ResizeObserver(() => this._updateLogoSize());
|
|
102
|
-
if (this._containerEl) {
|
|
103
|
-
this._resizeObserver.observe(this._containerEl);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
_createParticles() {
|
|
108
|
-
return Array.from({ length: 12 }, (_, index) => ({
|
|
109
|
-
left: Math.random() * 100,
|
|
110
|
-
size: Math.random() * 4 + 2,
|
|
111
|
-
color: PARTICLE_COLORS[index % PARTICLE_COLORS.length],
|
|
112
|
-
duration: 8 + Math.random() * 4,
|
|
113
|
-
delay: Math.random() * 8,
|
|
114
|
-
}));
|
|
115
|
-
}
|
|
116
|
-
_createBubbles() {
|
|
117
|
-
return Array.from({ length: 8 }, (_, index) => ({
|
|
118
|
-
top: Math.random() * 80 + 10,
|
|
119
|
-
left: Math.random() * 80 + 10,
|
|
120
|
-
size: Math.random() * 60 + 30,
|
|
121
|
-
opacity: 0,
|
|
122
|
-
color: BUBBLE_COLORS[index % BUBBLE_COLORS.length],
|
|
123
|
-
}));
|
|
124
|
-
}
|
|
125
|
-
_setManagedTimer(callback, delayMs) {
|
|
126
|
-
const timer = setTimeout(() => {
|
|
127
|
-
this._bubbleTimers.delete(timer);
|
|
128
|
-
callback();
|
|
129
|
-
}, delayMs);
|
|
130
|
-
this._bubbleTimers.add(timer);
|
|
131
|
-
}
|
|
132
|
-
_clearBubbleTimers() {
|
|
133
|
-
this._bubbleTimers.forEach((timer) => clearTimeout(timer));
|
|
134
|
-
this._bubbleTimers.clear();
|
|
135
|
-
}
|
|
136
|
-
_updateBubble(index, nextState) {
|
|
137
|
-
const next = [...this._bubbles];
|
|
138
|
-
next[index] = { ...next[index], ...nextState };
|
|
139
|
-
this._bubbles = next;
|
|
140
|
-
}
|
|
141
|
-
_animateBubble(index) {
|
|
142
|
-
this._updateBubble(index, { opacity: 0.15 });
|
|
143
|
-
const visibleDuration = 4000 + Math.random() * 3000;
|
|
144
|
-
this._setManagedTimer(() => {
|
|
145
|
-
this._updateBubble(index, { opacity: 0 });
|
|
146
|
-
this._setManagedTimer(() => {
|
|
147
|
-
this._updateBubble(index, {
|
|
148
|
-
top: Math.random() * 80 + 10,
|
|
149
|
-
left: Math.random() * 80 + 10,
|
|
150
|
-
size: Math.random() * 60 + 30,
|
|
151
|
-
});
|
|
152
|
-
this._setManagedTimer(() => this._animateBubble(index), 200);
|
|
153
|
-
}, 1500);
|
|
154
|
-
}, visibleDuration);
|
|
155
|
-
}
|
|
156
|
-
_startBubbleAnimations() {
|
|
157
|
-
this._bubbles.forEach((_, index) => {
|
|
158
|
-
this._setManagedTimer(() => this._animateBubble(index), index * 500);
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
_updateLogoSize() {
|
|
162
|
-
const rect = this._containerEl?.getBoundingClientRect() ?? this.getBoundingClientRect();
|
|
163
|
-
const minDimension = Math.min(rect.width, rect.height);
|
|
164
|
-
if (!Number.isFinite(minDimension) || minDimension <= 0) {
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
this._logoSize = minDimension * 0.2;
|
|
168
|
-
}
|
|
169
|
-
render() {
|
|
170
|
-
const logoSrc = this.logoSrc || mediaAssets.LOGOMARK_DATA_URL;
|
|
171
|
-
return lit.html `
|
|
172
|
-
<div
|
|
173
|
-
class="loading-container fw-player-root"
|
|
174
|
-
@mousemove=${this._handleMouseMove}
|
|
175
|
-
@mouseleave=${this._handleMouseLeave}
|
|
176
|
-
>
|
|
177
|
-
${this._hitmarkers.map((hitmarker) => lit.html `
|
|
178
|
-
<div class="hitmarker" style="left:${hitmarker.x}px;top:${hitmarker.y}px;">
|
|
179
|
-
<div class="hitmarker-line tl"></div>
|
|
180
|
-
<div class="hitmarker-line tr"></div>
|
|
181
|
-
<div class="hitmarker-line bl"></div>
|
|
182
|
-
<div class="hitmarker-line br"></div>
|
|
183
|
-
</div>
|
|
184
|
-
`)}
|
|
185
|
-
|
|
186
|
-
<div class="particles">
|
|
187
|
-
${this._particles.map((particle) => lit.html `
|
|
188
|
-
<div
|
|
189
|
-
class="particle"
|
|
190
|
-
style="
|
|
191
|
-
left:${particle.left}%;
|
|
192
|
-
width:${particle.size}px;
|
|
193
|
-
height:${particle.size}px;
|
|
194
|
-
background:${particle.color};
|
|
195
|
-
animation-duration:${particle.duration}s;
|
|
196
|
-
animation-delay:${particle.delay}s;
|
|
197
|
-
"
|
|
198
|
-
></div>
|
|
199
|
-
`)}
|
|
200
|
-
</div>
|
|
201
|
-
|
|
202
|
-
<div class="bubbles">
|
|
203
|
-
${this._bubbles.map((bubble) => lit.html `
|
|
204
|
-
<div
|
|
205
|
-
class="bubble"
|
|
206
|
-
style="
|
|
207
|
-
top:${bubble.top}%;
|
|
208
|
-
left:${bubble.left}%;
|
|
209
|
-
width:${bubble.size}px;
|
|
210
|
-
height:${bubble.size}px;
|
|
211
|
-
background:${bubble.color};
|
|
212
|
-
opacity:${bubble.opacity};
|
|
213
|
-
"
|
|
214
|
-
></div>
|
|
215
|
-
`)}
|
|
216
|
-
</div>
|
|
217
|
-
|
|
218
|
-
<div
|
|
219
|
-
class="center-logo"
|
|
220
|
-
style="transform:translate(-50%, -50%) translate(${this._logoOffset.x}px, ${this
|
|
221
|
-
._logoOffset.y}px);"
|
|
222
|
-
>
|
|
223
|
-
<div
|
|
224
|
-
class="logo-pulse ${this._isLogoHovered ? "hovered" : ""}"
|
|
225
|
-
style="width:${this._logoSize * 1.4}px;height:${this._logoSize * 1.4}px;"
|
|
226
|
-
></div>
|
|
227
|
-
<button
|
|
228
|
-
type="button"
|
|
229
|
-
class="logo-mark ${this._isLogoHovered ? "hovered" : ""}"
|
|
230
|
-
style="width:${this._logoSize}px;height:${this._logoSize}px;"
|
|
231
|
-
@click=${this._handleLogoClick}
|
|
232
|
-
aria-label="FrameWorks logo"
|
|
233
|
-
>
|
|
234
|
-
<img src=${logoSrc} alt="FrameWorks Logo" draggable="false" />
|
|
235
|
-
</button>
|
|
236
|
-
</div>
|
|
237
|
-
|
|
238
|
-
<fw-dvd-logo .parentRef=${this._containerEl ?? null} .scale=${0.08}></fw-dvd-logo>
|
|
239
|
-
|
|
240
|
-
<div class="message">${this.message}</div>
|
|
241
|
-
<div class="overlay-texture"></div>
|
|
242
|
-
</div>
|
|
243
|
-
`;
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
exports.FwLoadingScreen.styles = [
|
|
247
|
-
sharedStyles.sharedStyles,
|
|
248
|
-
utilityStyles.utilityStyles,
|
|
249
|
-
lit.css `
|
|
250
|
-
:host {
|
|
251
|
-
display: block;
|
|
252
|
-
width: 100%;
|
|
253
|
-
height: 100%;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.loading-container {
|
|
257
|
-
position: relative;
|
|
258
|
-
width: 100%;
|
|
259
|
-
height: 100%;
|
|
260
|
-
min-height: 300px;
|
|
261
|
-
overflow: hidden;
|
|
262
|
-
user-select: none;
|
|
263
|
-
background: linear-gradient(
|
|
264
|
-
135deg,
|
|
265
|
-
hsl(var(--tn-bg-dark, 235 21% 11%)) 0%,
|
|
266
|
-
hsl(var(--tn-bg, 233 23% 17%)) 25%,
|
|
267
|
-
hsl(var(--tn-bg-dark, 235 21% 11%)) 50%,
|
|
268
|
-
hsl(var(--tn-bg, 233 23% 17%)) 75%,
|
|
269
|
-
hsl(var(--tn-bg-dark, 235 21% 11%)) 100%
|
|
270
|
-
);
|
|
271
|
-
background-size: 400% 400%;
|
|
272
|
-
animation: _fw-gradient-shift 16s ease-in-out infinite;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.particles,
|
|
276
|
-
.bubbles {
|
|
277
|
-
position: absolute;
|
|
278
|
-
inset: 0;
|
|
279
|
-
pointer-events: none;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.particle {
|
|
283
|
-
position: absolute;
|
|
284
|
-
border-radius: 50%;
|
|
285
|
-
opacity: 0;
|
|
286
|
-
animation: _fw-float-up linear infinite;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.bubble {
|
|
290
|
-
position: absolute;
|
|
291
|
-
border-radius: 50%;
|
|
292
|
-
transition: opacity 1s ease-in-out;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.center-logo {
|
|
296
|
-
position: absolute;
|
|
297
|
-
top: 50%;
|
|
298
|
-
left: 50%;
|
|
299
|
-
transform: translate(-50%, -50%);
|
|
300
|
-
z-index: 10;
|
|
301
|
-
transition: transform 0.3s ease-out;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.logo-pulse {
|
|
305
|
-
position: absolute;
|
|
306
|
-
border-radius: 50%;
|
|
307
|
-
background: rgba(122, 162, 247, 0.15);
|
|
308
|
-
animation: _fw-logo-pulse 3s ease-in-out infinite;
|
|
309
|
-
pointer-events: none;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.logo-pulse.hovered {
|
|
313
|
-
animation: _fw-logo-pulse 1s ease-in-out infinite;
|
|
314
|
-
transform: scale(1.2);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.logo-mark {
|
|
318
|
-
position: relative;
|
|
319
|
-
z-index: 1;
|
|
320
|
-
transition: all 0.3s ease-out;
|
|
321
|
-
border: none;
|
|
322
|
-
background: transparent;
|
|
323
|
-
padding: 0;
|
|
324
|
-
margin: 0;
|
|
325
|
-
cursor: pointer;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.logo-mark img {
|
|
329
|
-
width: 100%;
|
|
330
|
-
height: 100%;
|
|
331
|
-
display: block;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.logo-mark.hovered {
|
|
335
|
-
transform: scale(1.1);
|
|
336
|
-
filter: drop-shadow(0 6px 12px rgba(36, 40, 59, 0.4)) brightness(1.1);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.message {
|
|
340
|
-
position: absolute;
|
|
341
|
-
bottom: 20%;
|
|
342
|
-
left: 50%;
|
|
343
|
-
transform: translateX(-50%);
|
|
344
|
-
z-index: 8;
|
|
345
|
-
color: #a9b1d6;
|
|
346
|
-
font-size: 16px;
|
|
347
|
-
font-weight: 500;
|
|
348
|
-
text-align: center;
|
|
349
|
-
text-shadow: 0 2px 4px rgba(36, 40, 59, 0.5);
|
|
350
|
-
animation: _fw-fade-in-out 2s ease-in-out infinite;
|
|
351
|
-
pointer-events: none;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.overlay-texture {
|
|
355
|
-
position: absolute;
|
|
356
|
-
inset: 0;
|
|
357
|
-
pointer-events: none;
|
|
358
|
-
background:
|
|
359
|
-
radial-gradient(circle at 20% 80%, rgba(122, 162, 247, 0.03) 0%, transparent 50%),
|
|
360
|
-
radial-gradient(circle at 80% 20%, rgba(187, 154, 247, 0.03) 0%, transparent 50%),
|
|
361
|
-
radial-gradient(circle at 40% 40%, rgba(158, 206, 106, 0.02) 0%, transparent 50%);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
.hitmarker {
|
|
365
|
-
position: absolute;
|
|
366
|
-
transform: translate(-50%, -50%);
|
|
367
|
-
pointer-events: none;
|
|
368
|
-
z-index: 100;
|
|
369
|
-
width: 40px;
|
|
370
|
-
height: 40px;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.hitmarker-line {
|
|
374
|
-
position: absolute;
|
|
375
|
-
width: 12px;
|
|
376
|
-
height: 3px;
|
|
377
|
-
background-color: #fff;
|
|
378
|
-
box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
|
|
379
|
-
border-radius: 1px;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.hitmarker-line.tl {
|
|
383
|
-
top: 25%;
|
|
384
|
-
left: 25%;
|
|
385
|
-
animation: _fw-hitmarker-fade-45 0.6s ease-out forwards;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
.hitmarker-line.tr {
|
|
389
|
-
top: 25%;
|
|
390
|
-
left: 75%;
|
|
391
|
-
animation: _fw-hitmarker-fade-neg-45 0.6s ease-out forwards;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.hitmarker-line.bl {
|
|
395
|
-
top: 75%;
|
|
396
|
-
left: 25%;
|
|
397
|
-
animation: _fw-hitmarker-fade-neg-45 0.6s ease-out forwards;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.hitmarker-line.br {
|
|
401
|
-
top: 75%;
|
|
402
|
-
left: 75%;
|
|
403
|
-
animation: _fw-hitmarker-fade-45 0.6s ease-out forwards;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
@keyframes _fw-fade-in-out {
|
|
407
|
-
0%,
|
|
408
|
-
100% {
|
|
409
|
-
opacity: 0.6;
|
|
410
|
-
}
|
|
411
|
-
50% {
|
|
412
|
-
opacity: 0.9;
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
@keyframes _fw-logo-pulse {
|
|
417
|
-
0%,
|
|
418
|
-
100% {
|
|
419
|
-
opacity: 0.15;
|
|
420
|
-
transform: scale(1);
|
|
421
|
-
}
|
|
422
|
-
50% {
|
|
423
|
-
opacity: 0.25;
|
|
424
|
-
transform: scale(1.05);
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
@keyframes _fw-float-up {
|
|
429
|
-
0% {
|
|
430
|
-
transform: translateY(100vh) rotate(0deg);
|
|
431
|
-
opacity: 0;
|
|
432
|
-
}
|
|
433
|
-
10% {
|
|
434
|
-
opacity: 0.6;
|
|
435
|
-
}
|
|
436
|
-
90% {
|
|
437
|
-
opacity: 0.6;
|
|
438
|
-
}
|
|
439
|
-
100% {
|
|
440
|
-
transform: translateY(-100px) rotate(360deg);
|
|
441
|
-
opacity: 0;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
@keyframes _fw-gradient-shift {
|
|
446
|
-
0%,
|
|
447
|
-
100% {
|
|
448
|
-
background-position: 0% 50%;
|
|
449
|
-
}
|
|
450
|
-
50% {
|
|
451
|
-
background-position: 100% 50%;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
@keyframes _fw-hitmarker-fade-45 {
|
|
456
|
-
0% {
|
|
457
|
-
opacity: 1;
|
|
458
|
-
transform: translate(-50%, -50%) rotate(45deg) scale(0.5);
|
|
459
|
-
}
|
|
460
|
-
20% {
|
|
461
|
-
opacity: 1;
|
|
462
|
-
transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
|
|
463
|
-
}
|
|
464
|
-
100% {
|
|
465
|
-
opacity: 0;
|
|
466
|
-
transform: translate(-50%, -50%) rotate(45deg) scale(1);
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
@keyframes _fw-hitmarker-fade-neg-45 {
|
|
471
|
-
0% {
|
|
472
|
-
opacity: 1;
|
|
473
|
-
transform: translate(-50%, -50%) rotate(-45deg) scale(0.5);
|
|
474
|
-
}
|
|
475
|
-
20% {
|
|
476
|
-
opacity: 1;
|
|
477
|
-
transform: translate(-50%, -50%) rotate(-45deg) scale(1.2);
|
|
478
|
-
}
|
|
479
|
-
100% {
|
|
480
|
-
opacity: 0;
|
|
481
|
-
transform: translate(-50%, -50%) rotate(-45deg) scale(1);
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
`,
|
|
485
|
-
];
|
|
486
|
-
tslib_es6.__decorate([
|
|
487
|
-
decorators_js.property({ type: String })
|
|
488
|
-
], exports.FwLoadingScreen.prototype, "message", void 0);
|
|
489
|
-
tslib_es6.__decorate([
|
|
490
|
-
decorators_js.property({ type: String, attribute: "logo-src" })
|
|
491
|
-
], exports.FwLoadingScreen.prototype, "logoSrc", void 0);
|
|
492
|
-
tslib_es6.__decorate([
|
|
493
|
-
decorators_js.query(".loading-container")
|
|
494
|
-
], exports.FwLoadingScreen.prototype, "_containerEl", void 0);
|
|
495
|
-
tslib_es6.__decorate([
|
|
496
|
-
decorators_js.state()
|
|
497
|
-
], exports.FwLoadingScreen.prototype, "_logoSize", void 0);
|
|
498
|
-
tslib_es6.__decorate([
|
|
499
|
-
decorators_js.state()
|
|
500
|
-
], exports.FwLoadingScreen.prototype, "_logoOffset", void 0);
|
|
501
|
-
tslib_es6.__decorate([
|
|
502
|
-
decorators_js.state()
|
|
503
|
-
], exports.FwLoadingScreen.prototype, "_isLogoHovered", void 0);
|
|
504
|
-
tslib_es6.__decorate([
|
|
505
|
-
decorators_js.state()
|
|
506
|
-
], exports.FwLoadingScreen.prototype, "_bubbles", void 0);
|
|
507
|
-
tslib_es6.__decorate([
|
|
508
|
-
decorators_js.state()
|
|
509
|
-
], exports.FwLoadingScreen.prototype, "_hitmarkers", void 0);
|
|
510
|
-
exports.FwLoadingScreen = tslib_es6.__decorate([
|
|
511
|
-
decorators_js.customElement("fw-loading-screen")
|
|
512
|
-
], exports.FwLoadingScreen);
|
|
513
|
-
//# sourceMappingURL=fw-loading-screen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fw-loading-screen.js","sources":["../../../../src/components/fw-loading-screen.ts"],"sourcesContent":["import { LitElement, css, html } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { sharedStyles } from \"../styles/shared-styles.js\";\nimport { utilityStyles } from \"../styles/utility-styles.js\";\nimport { LOGOMARK_DATA_URL } from \"../constants/media-assets.js\";\nimport { playHitmarkerSound } from \"./shared/hitmarker-audio.js\";\nimport \"./fw-dvd-logo.js\";\n\ninterface ParticleState {\n left: number;\n size: number;\n color: string;\n duration: number;\n delay: number;\n}\n\ninterface BubbleState {\n top: number;\n left: number;\n size: number;\n opacity: number;\n color: string;\n}\n\ninterface Hitmarker {\n id: number;\n x: number;\n y: number;\n}\n\nconst BUBBLE_COLORS = [\n \"rgba(122, 162, 247, 0.2)\",\n \"rgba(187, 154, 247, 0.2)\",\n \"rgba(158, 206, 106, 0.2)\",\n \"rgba(115, 218, 202, 0.2)\",\n \"rgba(125, 207, 255, 0.2)\",\n \"rgba(247, 118, 142, 0.2)\",\n \"rgba(224, 175, 104, 0.2)\",\n \"rgba(42, 195, 222, 0.2)\",\n];\n\nconst PARTICLE_COLORS = [\n \"#7aa2f7\",\n \"#bb9af7\",\n \"#9ece6a\",\n \"#73daca\",\n \"#7dcfff\",\n \"#f7768e\",\n \"#e0af68\",\n \"#2ac3de\",\n];\n\n@customElement(\"fw-loading-screen\")\nexport class FwLoadingScreen extends LitElement {\n @property({ type: String }) message = \"Waiting for source...\";\n @property({ type: String, attribute: \"logo-src\" }) logoSrc?: string;\n @query(\".loading-container\") private _containerEl?: HTMLDivElement;\n\n @state() private _logoSize = 100;\n @state() private _logoOffset = { x: 0, y: 0 };\n @state() private _isLogoHovered = false;\n @state() private _bubbles: BubbleState[] = this._createBubbles();\n @state() private _hitmarkers: Hitmarker[] = [];\n\n private _bubbleTimers = new Set<ReturnType<typeof setTimeout>>();\n private _resizeObserver: ResizeObserver | null = null;\n private readonly _particles: ParticleState[] = this._createParticles();\n\n static styles = [\n sharedStyles,\n utilityStyles,\n css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .loading-container {\n position: relative;\n width: 100%;\n height: 100%;\n min-height: 300px;\n overflow: hidden;\n user-select: none;\n background: linear-gradient(\n 135deg,\n hsl(var(--tn-bg-dark, 235 21% 11%)) 0%,\n hsl(var(--tn-bg, 233 23% 17%)) 25%,\n hsl(var(--tn-bg-dark, 235 21% 11%)) 50%,\n hsl(var(--tn-bg, 233 23% 17%)) 75%,\n hsl(var(--tn-bg-dark, 235 21% 11%)) 100%\n );\n background-size: 400% 400%;\n animation: _fw-gradient-shift 16s ease-in-out infinite;\n }\n\n .particles,\n .bubbles {\n position: absolute;\n inset: 0;\n pointer-events: none;\n }\n\n .particle {\n position: absolute;\n border-radius: 50%;\n opacity: 0;\n animation: _fw-float-up linear infinite;\n }\n\n .bubble {\n position: absolute;\n border-radius: 50%;\n transition: opacity 1s ease-in-out;\n }\n\n .center-logo {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 10;\n transition: transform 0.3s ease-out;\n }\n\n .logo-pulse {\n position: absolute;\n border-radius: 50%;\n background: rgba(122, 162, 247, 0.15);\n animation: _fw-logo-pulse 3s ease-in-out infinite;\n pointer-events: none;\n }\n\n .logo-pulse.hovered {\n animation: _fw-logo-pulse 1s ease-in-out infinite;\n transform: scale(1.2);\n }\n\n .logo-mark {\n position: relative;\n z-index: 1;\n transition: all 0.3s ease-out;\n border: none;\n background: transparent;\n padding: 0;\n margin: 0;\n cursor: pointer;\n }\n\n .logo-mark img {\n width: 100%;\n height: 100%;\n display: block;\n }\n\n .logo-mark.hovered {\n transform: scale(1.1);\n filter: drop-shadow(0 6px 12px rgba(36, 40, 59, 0.4)) brightness(1.1);\n }\n\n .message {\n position: absolute;\n bottom: 20%;\n left: 50%;\n transform: translateX(-50%);\n z-index: 8;\n color: #a9b1d6;\n font-size: 16px;\n font-weight: 500;\n text-align: center;\n text-shadow: 0 2px 4px rgba(36, 40, 59, 0.5);\n animation: _fw-fade-in-out 2s ease-in-out infinite;\n pointer-events: none;\n }\n\n .overlay-texture {\n position: absolute;\n inset: 0;\n pointer-events: none;\n background:\n radial-gradient(circle at 20% 80%, rgba(122, 162, 247, 0.03) 0%, transparent 50%),\n radial-gradient(circle at 80% 20%, rgba(187, 154, 247, 0.03) 0%, transparent 50%),\n radial-gradient(circle at 40% 40%, rgba(158, 206, 106, 0.02) 0%, transparent 50%);\n }\n\n .hitmarker {\n position: absolute;\n transform: translate(-50%, -50%);\n pointer-events: none;\n z-index: 100;\n width: 40px;\n height: 40px;\n }\n\n .hitmarker-line {\n position: absolute;\n width: 12px;\n height: 3px;\n background-color: #fff;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);\n border-radius: 1px;\n }\n\n .hitmarker-line.tl {\n top: 25%;\n left: 25%;\n animation: _fw-hitmarker-fade-45 0.6s ease-out forwards;\n }\n\n .hitmarker-line.tr {\n top: 25%;\n left: 75%;\n animation: _fw-hitmarker-fade-neg-45 0.6s ease-out forwards;\n }\n\n .hitmarker-line.bl {\n top: 75%;\n left: 25%;\n animation: _fw-hitmarker-fade-neg-45 0.6s ease-out forwards;\n }\n\n .hitmarker-line.br {\n top: 75%;\n left: 75%;\n animation: _fw-hitmarker-fade-45 0.6s ease-out forwards;\n }\n\n @keyframes _fw-fade-in-out {\n 0%,\n 100% {\n opacity: 0.6;\n }\n 50% {\n opacity: 0.9;\n }\n }\n\n @keyframes _fw-logo-pulse {\n 0%,\n 100% {\n opacity: 0.15;\n transform: scale(1);\n }\n 50% {\n opacity: 0.25;\n transform: scale(1.05);\n }\n }\n\n @keyframes _fw-float-up {\n 0% {\n transform: translateY(100vh) rotate(0deg);\n opacity: 0;\n }\n 10% {\n opacity: 0.6;\n }\n 90% {\n opacity: 0.6;\n }\n 100% {\n transform: translateY(-100px) rotate(360deg);\n opacity: 0;\n }\n }\n\n @keyframes _fw-gradient-shift {\n 0%,\n 100% {\n background-position: 0% 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n }\n\n @keyframes _fw-hitmarker-fade-45 {\n 0% {\n opacity: 1;\n transform: translate(-50%, -50%) rotate(45deg) scale(0.5);\n }\n 20% {\n opacity: 1;\n transform: translate(-50%, -50%) rotate(45deg) scale(1.2);\n }\n 100% {\n opacity: 0;\n transform: translate(-50%, -50%) rotate(45deg) scale(1);\n }\n }\n\n @keyframes _fw-hitmarker-fade-neg-45 {\n 0% {\n opacity: 1;\n transform: translate(-50%, -50%) rotate(-45deg) scale(0.5);\n }\n 20% {\n opacity: 1;\n transform: translate(-50%, -50%) rotate(-45deg) scale(1.2);\n }\n 100% {\n opacity: 0;\n transform: translate(-50%, -50%) rotate(-45deg) scale(1);\n }\n }\n `,\n ];\n\n connectedCallback(): void {\n super.connectedCallback();\n this._clearBubbleTimers();\n this._startBubbleAnimations();\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this._clearBubbleTimers();\n this._resizeObserver?.disconnect();\n this._resizeObserver = null;\n }\n\n protected firstUpdated(): void {\n this._updateLogoSize();\n if (typeof ResizeObserver !== \"undefined\") {\n this._resizeObserver = new ResizeObserver(() => this._updateLogoSize());\n if (this._containerEl) {\n this._resizeObserver.observe(this._containerEl);\n }\n }\n }\n\n private _createParticles(): ParticleState[] {\n return Array.from({ length: 12 }, (_, index) => ({\n left: Math.random() * 100,\n size: Math.random() * 4 + 2,\n color: PARTICLE_COLORS[index % PARTICLE_COLORS.length],\n duration: 8 + Math.random() * 4,\n delay: Math.random() * 8,\n }));\n }\n\n private _createBubbles(): BubbleState[] {\n return Array.from({ length: 8 }, (_, index) => ({\n top: Math.random() * 80 + 10,\n left: Math.random() * 80 + 10,\n size: Math.random() * 60 + 30,\n opacity: 0,\n color: BUBBLE_COLORS[index % BUBBLE_COLORS.length],\n }));\n }\n\n private _setManagedTimer(callback: () => void, delayMs: number): void {\n const timer = setTimeout(() => {\n this._bubbleTimers.delete(timer);\n callback();\n }, delayMs);\n this._bubbleTimers.add(timer);\n }\n\n private _clearBubbleTimers(): void {\n this._bubbleTimers.forEach((timer) => clearTimeout(timer));\n this._bubbleTimers.clear();\n }\n\n private _updateBubble(index: number, nextState: Partial<BubbleState>): void {\n const next = [...this._bubbles];\n next[index] = { ...next[index], ...nextState };\n this._bubbles = next;\n }\n\n private _animateBubble(index: number): void {\n this._updateBubble(index, { opacity: 0.15 });\n const visibleDuration = 4000 + Math.random() * 3000;\n this._setManagedTimer(() => {\n this._updateBubble(index, { opacity: 0 });\n this._setManagedTimer(() => {\n this._updateBubble(index, {\n top: Math.random() * 80 + 10,\n left: Math.random() * 80 + 10,\n size: Math.random() * 60 + 30,\n });\n this._setManagedTimer(() => this._animateBubble(index), 200);\n }, 1500);\n }, visibleDuration);\n }\n\n private _startBubbleAnimations(): void {\n this._bubbles.forEach((_, index) => {\n this._setManagedTimer(() => this._animateBubble(index), index * 500);\n });\n }\n\n private _updateLogoSize(): void {\n const rect = this._containerEl?.getBoundingClientRect() ?? this.getBoundingClientRect();\n const minDimension = Math.min(rect.width, rect.height);\n if (!Number.isFinite(minDimension) || minDimension <= 0) {\n return;\n }\n this._logoSize = minDimension * 0.2;\n }\n\n private _handleMouseMove = (event: MouseEvent): void => {\n const rect = this._containerEl?.getBoundingClientRect() ?? this.getBoundingClientRect();\n if (rect.width <= 0 || rect.height <= 0) {\n return;\n }\n\n const centerX = rect.left + rect.width / 2;\n const centerY = rect.top + rect.height / 2;\n const deltaX = event.clientX - centerX;\n const deltaY = event.clientY - centerY;\n const distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n const maxDistance = this._logoSize * 1.5;\n\n if (distance < maxDistance && distance > 0) {\n const pushStrength = (maxDistance - distance) / maxDistance;\n const pushDistance = 50 * pushStrength;\n this._logoOffset = {\n x: -(deltaX / distance) * pushDistance,\n y: -(deltaY / distance) * pushDistance,\n };\n this._isLogoHovered = true;\n return;\n }\n\n this._logoOffset = { x: 0, y: 0 };\n this._isLogoHovered = false;\n };\n\n private _handleMouseLeave = (): void => {\n this._logoOffset = { x: 0, y: 0 };\n this._isLogoHovered = false;\n };\n\n private _handleLogoClick = (event: MouseEvent): void => {\n event.stopPropagation();\n const rect = this._containerEl?.getBoundingClientRect() ?? this.getBoundingClientRect();\n const hitmarker: Hitmarker = {\n id: Date.now() + Math.random(),\n x: event.clientX - rect.left,\n y: event.clientY - rect.top,\n };\n this._hitmarkers = [...this._hitmarkers, hitmarker];\n playHitmarkerSound();\n\n this._setManagedTimer(() => {\n this._hitmarkers = this._hitmarkers.filter((value) => value.id !== hitmarker.id);\n }, 600);\n };\n\n protected render() {\n const logoSrc = this.logoSrc || LOGOMARK_DATA_URL;\n return html`\n <div\n class=\"loading-container fw-player-root\"\n @mousemove=${this._handleMouseMove}\n @mouseleave=${this._handleMouseLeave}\n >\n ${this._hitmarkers.map(\n (hitmarker) => html`\n <div class=\"hitmarker\" style=\"left:${hitmarker.x}px;top:${hitmarker.y}px;\">\n <div class=\"hitmarker-line tl\"></div>\n <div class=\"hitmarker-line tr\"></div>\n <div class=\"hitmarker-line bl\"></div>\n <div class=\"hitmarker-line br\"></div>\n </div>\n `\n )}\n\n <div class=\"particles\">\n ${this._particles.map(\n (particle) => html`\n <div\n class=\"particle\"\n style=\"\n left:${particle.left}%;\n width:${particle.size}px;\n height:${particle.size}px;\n background:${particle.color};\n animation-duration:${particle.duration}s;\n animation-delay:${particle.delay}s;\n \"\n ></div>\n `\n )}\n </div>\n\n <div class=\"bubbles\">\n ${this._bubbles.map(\n (bubble) => html`\n <div\n class=\"bubble\"\n style=\"\n top:${bubble.top}%;\n left:${bubble.left}%;\n width:${bubble.size}px;\n height:${bubble.size}px;\n background:${bubble.color};\n opacity:${bubble.opacity};\n \"\n ></div>\n `\n )}\n </div>\n\n <div\n class=\"center-logo\"\n style=\"transform:translate(-50%, -50%) translate(${this._logoOffset.x}px, ${this\n ._logoOffset.y}px);\"\n >\n <div\n class=\"logo-pulse ${this._isLogoHovered ? \"hovered\" : \"\"}\"\n style=\"width:${this._logoSize * 1.4}px;height:${this._logoSize * 1.4}px;\"\n ></div>\n <button\n type=\"button\"\n class=\"logo-mark ${this._isLogoHovered ? \"hovered\" : \"\"}\"\n style=\"width:${this._logoSize}px;height:${this._logoSize}px;\"\n @click=${this._handleLogoClick}\n aria-label=\"FrameWorks logo\"\n >\n <img src=${logoSrc} alt=\"FrameWorks Logo\" draggable=\"false\" />\n </button>\n </div>\n\n <fw-dvd-logo .parentRef=${this._containerEl ?? null} .scale=${0.08}></fw-dvd-logo>\n\n <div class=\"message\">${this.message}</div>\n <div class=\"overlay-texture\"></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"fw-loading-screen\": FwLoadingScreen;\n }\n}\n"],"names":["FwLoadingScreen","LitElement","playHitmarkerSound","LOGOMARK_DATA_URL","html","sharedStyles","utilityStyles","css","__decorate","property","query","state","customElement"],"mappings":";;;;;;;;;;;AA8BA,MAAM,aAAa,GAAG;IACpB,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,yBAAyB;CAC1B;AAED,MAAM,eAAe,GAAG;IACtB,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;CACV;AAGYA,uBAAe,GAArB,MAAM,eAAgB,SAA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