cos-design 3.8.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -6
- package/README.md +51 -33
- package/dist/core-CszjZZo9.cjs +1 -0
- package/dist/core-On5bp2VI.js +178 -0
- package/dist/core.cjs +1 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.js +3 -0
- package/dist/elements.cjs +1 -0
- package/dist/elements.d.ts +1 -0
- package/dist/elements.js +3844 -0
- package/dist/engine-DAYJbw0W.cjs +246 -0
- package/dist/engine-jGjtPKCP.js +12740 -0
- package/dist/index.cjs +1 -249
- package/dist/index.js +2049 -13779
- package/dist/src/components/audioVisualizer/core/engine.d.ts +2 -0
- package/dist/src/components/audioVisualizer/core/index.d.ts +2 -0
- package/dist/src/components/audioVisualizer/core/types.d.ts +11 -0
- package/dist/src/components/audioVisualizer/element/index.d.ts +9 -0
- package/dist/src/components/audioVisualizer/index.d.ts +3 -9
- package/dist/src/components/audioVisualizer/react/index.d.ts +4 -0
- package/dist/src/components/aurora/core/engine.d.ts +2 -0
- package/dist/src/components/aurora/core/index.d.ts +2 -0
- package/dist/src/components/aurora/core/types.d.ts +11 -0
- package/dist/src/components/aurora/element/index.d.ts +13 -0
- package/dist/src/components/aurora/index.d.ts +3 -11
- package/dist/src/components/aurora/react/index.d.ts +4 -0
- package/dist/src/components/auroraVeil/core/engine.d.ts +2 -0
- package/dist/src/components/auroraVeil/core/index.d.ts +2 -0
- package/dist/src/components/auroraVeil/core/types.d.ts +15 -0
- package/dist/src/components/auroraVeil/element/index.d.ts +13 -0
- package/dist/src/components/auroraVeil/index.d.ts +3 -19
- package/dist/src/components/auroraVeil/react/index.d.ts +4 -0
- package/dist/src/components/barcodeScan/core/engine.d.ts +2 -0
- package/dist/src/components/barcodeScan/core/index.d.ts +2 -0
- package/dist/src/components/barcodeScan/core/types.d.ts +12 -0
- package/dist/src/components/barcodeScan/element/index.d.ts +14 -0
- package/dist/src/components/barcodeScan/index.d.ts +3 -11
- package/dist/src/components/barcodeScan/react/index.d.ts +6 -0
- package/dist/src/components/blurText/core/engine.d.ts +2 -0
- package/dist/src/components/blurText/core/index.d.ts +2 -0
- package/dist/src/components/blurText/core/types.d.ts +15 -0
- package/dist/src/components/blurText/element/index.d.ts +16 -0
- package/dist/src/components/blurText/index.d.ts +3 -21
- package/dist/src/components/blurText/react/index.d.ts +4 -0
- package/dist/src/components/bubbleField/core/engine.d.ts +2 -0
- package/dist/src/components/bubbleField/core/index.d.ts +2 -0
- package/dist/src/components/bubbleField/core/types.d.ts +14 -0
- package/dist/src/components/bubbleField/element/index.d.ts +9 -0
- package/dist/src/components/bubbleField/index.d.ts +3 -5
- package/dist/src/components/bubbleField/react/index.d.ts +4 -0
- package/dist/src/components/burnAway/core/engine.d.ts +2 -0
- package/dist/src/components/burnAway/core/index.d.ts +2 -0
- package/dist/src/components/burnAway/core/types.d.ts +13 -0
- package/dist/src/components/burnAway/element/index.d.ts +10 -0
- package/dist/src/components/burnAway/index.d.ts +3 -13
- package/dist/src/components/burnAway/react/index.d.ts +4 -0
- package/dist/src/components/canvasClock/core/engine.d.ts +2 -0
- package/dist/src/components/canvasClock/core/index.d.ts +2 -0
- package/dist/src/components/canvasClock/core/types.d.ts +9 -0
- package/dist/src/components/canvasClock/element/index.d.ts +9 -0
- package/dist/src/components/canvasClock/index.d.ts +3 -9
- package/dist/src/components/canvasClock/react/index.d.ts +4 -0
- package/dist/src/components/charge/core/engine.d.ts +2 -0
- package/dist/src/components/charge/core/index.d.ts +2 -0
- package/dist/src/components/charge/core/types.d.ts +14 -0
- package/dist/src/components/charge/element/index.d.ts +9 -0
- package/dist/src/components/charge/index.d.ts +3 -19
- package/dist/src/components/charge/react/index.d.ts +4 -0
- package/dist/src/components/circularText/core/engine.d.ts +2 -0
- package/dist/src/components/circularText/core/index.d.ts +2 -0
- package/dist/src/components/circularText/core/types.d.ts +13 -0
- package/dist/src/components/circularText/element/index.d.ts +13 -0
- package/dist/src/components/circularText/index.d.ts +3 -17
- package/dist/src/components/circularText/react/index.d.ts +4 -0
- package/dist/src/components/clickSpark/core/engine.d.ts +2 -0
- package/dist/src/components/clickSpark/core/index.d.ts +2 -0
- package/dist/src/components/clickSpark/core/types.d.ts +13 -0
- package/dist/src/components/clickSpark/element/index.d.ts +13 -0
- package/dist/src/components/clickSpark/index.d.ts +3 -10
- package/dist/src/components/clickSpark/react/index.d.ts +6 -0
- package/dist/src/components/confetti/core/engine.d.ts +2 -0
- package/dist/src/components/confetti/core/index.d.ts +2 -0
- package/dist/src/components/confetti/core/types.d.ts +19 -0
- package/dist/src/components/confetti/element/index.d.ts +10 -0
- package/dist/src/components/confetti/index.d.ts +3 -25
- package/dist/src/components/confetti/react/index.d.ts +5 -0
- package/dist/src/components/countUp/core/engine.d.ts +2 -0
- package/dist/src/components/countUp/core/index.d.ts +2 -0
- package/dist/src/components/countUp/core/types.d.ts +14 -0
- package/dist/src/components/countUp/element/index.d.ts +9 -0
- package/dist/src/components/countUp/index.d.ts +3 -19
- package/dist/src/components/countUp/react/index.d.ts +4 -0
- package/dist/src/components/countdown/core/engine.d.ts +2 -0
- package/dist/src/components/countdown/core/index.d.ts +2 -0
- package/dist/src/components/countdown/core/types.d.ts +14 -0
- package/dist/src/components/countdown/element/index.d.ts +13 -0
- package/dist/src/components/countdown/index.d.ts +3 -26
- package/dist/src/components/countdown/react/index.d.ts +4 -0
- package/dist/src/components/cursorTrail/core/engine.d.ts +2 -0
- package/dist/src/components/cursorTrail/core/index.d.ts +2 -0
- package/dist/src/components/cursorTrail/core/types.d.ts +12 -0
- package/dist/src/components/cursorTrail/element/index.d.ts +9 -0
- package/dist/src/components/cursorTrail/index.d.ts +3 -13
- package/dist/src/components/cursorTrail/react/index.d.ts +4 -0
- package/dist/src/components/curvedLoop/core/engine.d.ts +2 -0
- package/dist/src/components/curvedLoop/core/index.d.ts +2 -0
- package/dist/src/components/curvedLoop/core/types.d.ts +14 -0
- package/dist/src/components/curvedLoop/element/index.d.ts +13 -0
- package/dist/src/components/curvedLoop/index.d.ts +3 -19
- package/dist/src/components/curvedLoop/react/index.d.ts +4 -0
- package/dist/src/components/cyberGrid/core/engine.d.ts +2 -0
- package/dist/src/components/cyberGrid/core/index.d.ts +2 -0
- package/dist/src/components/cyberGrid/core/types.d.ts +12 -0
- package/dist/src/components/cyberGrid/element/index.d.ts +9 -0
- package/dist/src/components/cyberGrid/index.d.ts +3 -13
- package/dist/src/components/cyberGrid/react/index.d.ts +4 -0
- package/dist/src/components/dandelionField/core/engine.d.ts +2 -0
- package/dist/src/components/dandelionField/core/index.d.ts +2 -0
- package/dist/src/components/dandelionField/core/types.d.ts +15 -0
- package/dist/src/components/dandelionField/element/index.d.ts +9 -0
- package/dist/src/components/dandelionField/index.d.ts +3 -5
- package/dist/src/components/dandelionField/react/index.d.ts +4 -0
- package/dist/src/components/diceRoll/core/engine.d.ts +2 -0
- package/dist/src/components/diceRoll/core/index.d.ts +2 -0
- package/dist/src/components/diceRoll/core/types.d.ts +12 -0
- package/dist/src/components/diceRoll/element/index.d.ts +13 -0
- package/dist/src/components/diceRoll/index.d.ts +3 -15
- package/dist/src/components/diceRoll/react/index.d.ts +4 -0
- package/dist/src/components/dnaHelix/core/engine.d.ts +2 -0
- package/dist/src/components/dnaHelix/core/index.d.ts +2 -0
- package/dist/src/components/dnaHelix/core/types.d.ts +11 -0
- package/dist/src/components/dnaHelix/element/index.d.ts +9 -0
- package/dist/src/components/dnaHelix/index.d.ts +3 -9
- package/dist/src/components/dnaHelix/react/index.d.ts +4 -0
- package/dist/src/components/doublePendulum/core/engine.d.ts +2 -0
- package/dist/src/components/doublePendulum/core/index.d.ts +2 -0
- package/dist/src/components/doublePendulum/core/types.d.ts +12 -0
- package/dist/src/components/doublePendulum/element/index.d.ts +9 -0
- package/dist/src/components/doublePendulum/index.d.ts +3 -10
- package/dist/src/components/doublePendulum/react/index.d.ts +4 -0
- package/dist/src/components/electricArc/core/engine.d.ts +2 -0
- package/dist/src/components/electricArc/core/index.d.ts +2 -0
- package/dist/src/components/electricArc/core/types.d.ts +10 -0
- package/dist/src/components/electricArc/element/index.d.ts +9 -0
- package/dist/src/components/electricArc/index.d.ts +3 -8
- package/dist/src/components/electricArc/react/index.d.ts +4 -0
- package/dist/src/components/fireworks/core/engine.d.ts +2 -0
- package/dist/src/components/fireworks/core/index.d.ts +2 -0
- package/dist/src/components/fireworks/core/types.d.ts +23 -0
- package/dist/src/components/fireworks/element/index.d.ts +10 -0
- package/dist/src/components/fireworks/index.d.ts +3 -23
- package/dist/src/components/fireworks/react/index.d.ts +4 -0
- package/dist/src/components/flipCard/core/engine.d.ts +2 -0
- package/dist/src/components/flipCard/core/index.d.ts +2 -0
- package/dist/src/components/flipCard/core/types.d.ts +22 -0
- package/dist/src/components/flipCard/element/index.d.ts +11 -0
- package/dist/src/components/flipCard/index.d.ts +3 -29
- package/dist/src/components/flipCard/react/index.d.ts +5 -0
- package/dist/src/components/flipCounter/core/engine.d.ts +2 -0
- package/dist/src/components/flipCounter/core/index.d.ts +2 -0
- package/dist/src/components/flipCounter/core/types.d.ts +15 -0
- package/dist/src/components/flipCounter/element/index.d.ts +9 -0
- package/dist/src/components/flipCounter/index.d.ts +3 -13
- package/dist/src/components/flipCounter/react/index.d.ts +4 -0
- package/dist/src/components/fuzzyText/core/engine.d.ts +2 -0
- package/dist/src/components/fuzzyText/core/index.d.ts +2 -0
- package/dist/src/components/fuzzyText/core/types.d.ts +15 -0
- package/dist/src/components/fuzzyText/element/index.d.ts +9 -0
- package/dist/src/components/fuzzyText/index.d.ts +3 -21
- package/dist/src/components/fuzzyText/react/index.d.ts +4 -0
- package/dist/src/components/gameOfLife/core/engine.d.ts +2 -0
- package/dist/src/components/gameOfLife/core/index.d.ts +2 -0
- package/dist/src/components/gameOfLife/core/types.d.ts +21 -0
- package/dist/src/components/gameOfLife/element/index.d.ts +13 -0
- package/dist/src/components/gameOfLife/index.d.ts +3 -25
- package/dist/src/components/gameOfLife/react/index.d.ts +4 -0
- package/dist/src/components/glitchText/core/engine.d.ts +2 -0
- package/dist/src/components/glitchText/core/index.d.ts +2 -0
- package/dist/src/components/glitchText/core/types.d.ts +12 -0
- package/dist/src/components/glitchText/element/index.d.ts +9 -0
- package/dist/src/components/glitchText/index.d.ts +3 -15
- package/dist/src/components/glitchText/react/index.d.ts +4 -0
- package/dist/src/components/gradientFlow/core/engine.d.ts +2 -0
- package/dist/src/components/gradientFlow/core/index.d.ts +2 -0
- package/dist/src/components/gradientFlow/core/types.d.ts +10 -0
- package/dist/src/components/gradientFlow/element/index.d.ts +13 -0
- package/dist/src/components/gradientFlow/index.d.ts +3 -11
- package/dist/src/components/gradientFlow/react/index.d.ts +4 -0
- package/dist/src/components/gravityBalls/core/engine.d.ts +2 -0
- package/dist/src/components/gravityBalls/core/index.d.ts +2 -0
- package/dist/src/components/gravityBalls/core/types.d.ts +10 -0
- package/dist/src/components/gravityBalls/element/index.d.ts +9 -0
- package/dist/src/components/gravityBalls/index.d.ts +3 -8
- package/dist/src/components/gravityBalls/react/index.d.ts +4 -0
- package/dist/src/components/holographicCard/core/engine.d.ts +2 -0
- package/dist/src/components/holographicCard/core/index.d.ts +2 -0
- package/dist/src/components/holographicCard/core/types.d.ts +10 -0
- package/dist/src/components/holographicCard/element/index.d.ts +9 -0
- package/dist/src/components/holographicCard/index.d.ts +3 -8
- package/dist/src/components/holographicCard/react/index.d.ts +4 -0
- package/dist/src/components/index.d.ts +7 -7
- package/dist/src/components/inkBloom/core/engine.d.ts +6 -0
- package/dist/src/components/inkBloom/core/index.d.ts +2 -0
- package/dist/src/components/inkBloom/core/types.d.ts +14 -0
- package/dist/src/components/inkBloom/element/index.d.ts +9 -0
- package/dist/src/components/inkBloom/index.d.ts +3 -21
- package/dist/src/components/inkBloom/react/index.d.ts +4 -0
- package/dist/src/components/lavaBubble/core/engine.d.ts +2 -0
- package/dist/src/components/lavaBubble/core/index.d.ts +2 -0
- package/dist/src/components/lavaBubble/core/types.d.ts +16 -0
- package/dist/src/components/lavaBubble/element/index.d.ts +9 -0
- package/dist/src/components/lavaBubble/index.d.ts +3 -24
- package/dist/src/components/lavaBubble/react/index.d.ts +4 -0
- package/dist/src/components/liquidGlass/core/engine.d.ts +2 -0
- package/dist/src/components/liquidGlass/core/index.d.ts +2 -0
- package/dist/src/components/liquidGlass/core/types.d.ts +12 -0
- package/dist/src/components/liquidGlass/element/index.d.ts +14 -0
- package/dist/src/components/liquidGlass/index.d.ts +3 -10
- package/dist/src/components/liquidGlass/react/index.d.ts +6 -0
- package/dist/src/components/liquidProgress/core/engine.d.ts +2 -0
- package/dist/src/components/liquidProgress/core/index.d.ts +2 -0
- package/dist/src/components/liquidProgress/core/types.d.ts +11 -0
- package/dist/src/components/liquidProgress/element/index.d.ts +9 -0
- package/dist/src/components/liquidProgress/index.d.ts +3 -9
- package/dist/src/components/liquidProgress/react/index.d.ts +4 -0
- package/dist/src/components/lorenzAttractor/core/engine.d.ts +2 -0
- package/dist/src/components/lorenzAttractor/core/index.d.ts +2 -0
- package/dist/src/components/lorenzAttractor/core/types.d.ts +12 -0
- package/dist/src/components/lorenzAttractor/element/index.d.ts +9 -0
- package/dist/src/components/lorenzAttractor/index.d.ts +3 -10
- package/dist/src/components/lorenzAttractor/react/index.d.ts +4 -0
- package/dist/src/components/magneticButton/core/engine.d.ts +2 -0
- package/dist/src/components/magneticButton/core/index.d.ts +2 -0
- package/dist/src/components/magneticButton/core/types.d.ts +12 -0
- package/dist/src/components/magneticButton/element/index.d.ts +14 -0
- package/dist/src/components/magneticButton/index.d.ts +3 -10
- package/dist/src/components/magneticButton/react/index.d.ts +6 -0
- package/dist/src/components/matrixRain/core/engine.d.ts +2 -0
- package/dist/src/components/matrixRain/core/index.d.ts +2 -0
- package/dist/src/components/matrixRain/core/types.d.ts +15 -0
- package/dist/src/components/matrixRain/element/index.d.ts +9 -0
- package/dist/src/components/matrixRain/index.d.ts +3 -19
- package/dist/src/components/matrixRain/react/index.d.ts +4 -0
- package/dist/src/components/mazeGenerator/core/engine.d.ts +2 -0
- package/dist/src/components/mazeGenerator/core/index.d.ts +2 -0
- package/dist/src/components/mazeGenerator/core/types.d.ts +11 -0
- package/dist/src/components/mazeGenerator/element/index.d.ts +9 -0
- package/dist/src/components/mazeGenerator/index.d.ts +3 -9
- package/dist/src/components/mazeGenerator/react/index.d.ts +4 -0
- package/dist/src/components/metaballPool/core/engine.d.ts +2 -0
- package/dist/src/components/metaballPool/core/index.d.ts +2 -0
- package/dist/src/components/metaballPool/core/types.d.ts +11 -0
- package/dist/src/components/metaballPool/element/index.d.ts +9 -0
- package/dist/src/components/metaballPool/index.d.ts +3 -9
- package/dist/src/components/metaballPool/react/index.d.ts +4 -0
- package/dist/src/components/meteorRain/core/engine.d.ts +2 -0
- package/dist/src/components/meteorRain/core/index.d.ts +2 -0
- package/dist/src/components/meteorRain/core/types.d.ts +11 -0
- package/dist/src/components/meteorRain/element/index.d.ts +9 -0
- package/dist/src/components/meteorRain/index.d.ts +3 -11
- package/dist/src/components/meteorRain/react/index.d.ts +4 -0
- package/dist/src/components/neonText/core/engine.d.ts +2 -0
- package/dist/src/components/neonText/core/index.d.ts +2 -0
- package/dist/src/components/neonText/core/types.d.ts +11 -0
- package/dist/src/components/neonText/element/index.d.ts +9 -0
- package/dist/src/components/neonText/index.d.ts +3 -13
- package/dist/src/components/neonText/react/index.d.ts +4 -0
- package/dist/src/components/networkGraph/core/engine.d.ts +2 -0
- package/dist/src/components/networkGraph/core/index.d.ts +2 -0
- package/dist/src/components/networkGraph/core/types.d.ts +23 -0
- package/dist/src/components/networkGraph/element/index.d.ts +16 -0
- package/dist/src/components/networkGraph/index.d.ts +3 -26
- package/dist/src/components/networkGraph/react/index.d.ts +4 -0
- package/dist/src/components/newtonCradle/core/engine.d.ts +2 -0
- package/dist/src/components/newtonCradle/core/index.d.ts +2 -0
- package/dist/src/components/newtonCradle/core/types.d.ts +11 -0
- package/dist/src/components/newtonCradle/element/index.d.ts +9 -0
- package/dist/src/components/newtonCradle/index.d.ts +3 -9
- package/dist/src/components/newtonCradle/react/index.d.ts +4 -0
- package/dist/src/components/nineGrid/core/engine.d.ts +2 -0
- package/dist/src/components/nineGrid/core/index.d.ts +2 -0
- package/dist/src/components/nineGrid/core/types.d.ts +31 -0
- package/dist/src/components/nineGrid/element/index.d.ts +15 -0
- package/dist/src/components/nineGrid/index.d.ts +3 -29
- package/dist/src/components/nineGrid/react/index.d.ts +5 -0
- package/dist/src/components/orbitalChart/core/engine.d.ts +2 -0
- package/dist/src/components/orbitalChart/core/index.d.ts +2 -0
- package/dist/src/components/orbitalChart/core/types.d.ts +14 -0
- package/dist/src/components/orbitalChart/element/index.d.ts +13 -0
- package/dist/src/components/orbitalChart/index.d.ts +3 -12
- package/dist/src/components/orbitalChart/react/index.d.ts +4 -0
- package/dist/src/components/particleNetwork/core/engine.d.ts +2 -0
- package/dist/src/components/particleNetwork/core/index.d.ts +2 -0
- package/dist/src/components/particleNetwork/core/types.d.ts +15 -0
- package/dist/src/components/particleNetwork/element/index.d.ts +9 -0
- package/dist/src/components/particleNetwork/index.d.ts +3 -19
- package/dist/src/components/particleNetwork/react/index.d.ts +4 -0
- package/dist/src/components/photoAlbum/core/engine.d.ts +2 -0
- package/dist/src/components/photoAlbum/core/index.d.ts +2 -0
- package/dist/src/components/photoAlbum/core/types.d.ts +7 -0
- package/dist/src/components/photoAlbum/element/index.d.ts +16 -0
- package/dist/src/components/photoAlbum/index.d.ts +3 -5
- package/dist/src/components/photoAlbum/react/index.d.ts +3 -0
- package/dist/src/components/photoAlbum/types.d.ts +3 -3
- package/dist/src/components/photoCarousel/core/engine.d.ts +2 -0
- package/dist/src/components/photoCarousel/core/index.d.ts +2 -0
- package/dist/src/components/photoCarousel/core/types.d.ts +7 -0
- package/dist/src/components/photoCarousel/element/index.d.ts +13 -0
- package/dist/src/components/photoCarousel/index.d.ts +3 -9
- package/dist/src/components/photoCarousel/react/index.d.ts +3 -0
- package/dist/src/components/photoCarousel/types.d.ts +2 -2
- package/dist/src/components/photoClothesline/core/engine.d.ts +2 -0
- package/dist/src/components/photoClothesline/core/index.d.ts +2 -0
- package/dist/src/components/photoClothesline/core/types.d.ts +7 -0
- package/dist/src/components/photoClothesline/element/index.d.ts +13 -0
- package/dist/src/components/photoClothesline/index.d.ts +3 -5
- package/dist/src/components/photoClothesline/layout.d.ts +2 -2
- package/dist/src/components/photoClothesline/react/index.d.ts +3 -0
- package/dist/src/components/photoClothesline/types.d.ts +3 -3
- package/dist/src/components/photoFilmstrip/core/engine.d.ts +2 -0
- package/dist/src/components/photoFilmstrip/core/index.d.ts +2 -0
- package/dist/src/components/photoFilmstrip/core/types.d.ts +7 -0
- package/dist/src/components/photoFilmstrip/element/index.d.ts +13 -0
- package/dist/src/components/photoFilmstrip/index.d.ts +3 -5
- package/dist/src/components/photoFilmstrip/react/index.d.ts +3 -0
- package/dist/src/components/photoFilmstrip/types.d.ts +2 -2
- package/dist/src/components/photoFridge/core/engine.d.ts +2 -0
- package/dist/src/components/photoFridge/core/index.d.ts +2 -0
- package/dist/src/components/photoFridge/core/types.d.ts +7 -0
- package/dist/src/components/photoFridge/element/index.d.ts +13 -0
- package/dist/src/components/photoFridge/index.d.ts +3 -5
- package/dist/src/components/photoFridge/react/index.d.ts +3 -0
- package/dist/src/components/photoFridge/types.d.ts +2 -2
- package/dist/src/components/photoLantern/core/engine.d.ts +2 -0
- package/dist/src/components/photoLantern/core/index.d.ts +2 -0
- package/dist/src/components/photoLantern/core/types.d.ts +7 -0
- package/dist/src/components/photoLantern/element/index.d.ts +13 -0
- package/dist/src/components/photoLantern/index.d.ts +3 -5
- package/dist/src/components/photoLantern/react/index.d.ts +3 -0
- package/dist/src/components/photoLantern/types.d.ts +3 -3
- package/dist/src/components/photoLightbox/core/engine.d.ts +2 -0
- package/dist/src/components/photoLightbox/core/index.d.ts +2 -0
- package/dist/src/components/photoLightbox/core/types.d.ts +7 -0
- package/dist/src/components/photoLightbox/element/index.d.ts +13 -0
- package/dist/src/components/photoLightbox/index.d.ts +3 -5
- package/dist/src/components/photoLightbox/react/index.d.ts +3 -0
- package/dist/src/components/photoLightbox/types.d.ts +2 -2
- package/dist/src/components/photoPolaroid/core/engine.d.ts +2 -0
- package/dist/src/components/photoPolaroid/core/index.d.ts +2 -0
- package/dist/src/components/photoPolaroid/core/types.d.ts +7 -0
- package/dist/src/components/photoPolaroid/element/index.d.ts +13 -0
- package/dist/src/components/photoPolaroid/index.d.ts +3 -5
- package/dist/src/components/photoPolaroid/react/index.d.ts +3 -0
- package/dist/src/components/photoPolaroid/types.d.ts +2 -2
- package/dist/src/components/photoPostcard/core/engine.d.ts +6 -0
- package/dist/src/components/photoPostcard/core/index.d.ts +2 -0
- package/dist/src/components/photoPostcard/core/types.d.ts +7 -0
- package/dist/src/components/photoPostcard/element/index.d.ts +13 -0
- package/dist/src/components/photoPostcard/index.d.ts +3 -8
- package/dist/src/components/photoPostcard/react/index.d.ts +10 -0
- package/dist/src/components/photoPostcard/types.d.ts +2 -2
- package/dist/src/components/photoPrism/core/engine.d.ts +2 -0
- package/dist/src/components/photoPrism/core/index.d.ts +2 -0
- package/dist/src/components/photoPrism/core/types.d.ts +7 -0
- package/dist/src/components/photoPrism/element/index.d.ts +13 -0
- package/dist/src/components/photoPrism/index.d.ts +3 -9
- package/dist/src/components/photoPrism/react/index.d.ts +3 -0
- package/dist/src/components/photoPrism/types.d.ts +2 -2
- package/dist/src/components/photoScroll/core/engine.d.ts +2 -0
- package/dist/src/components/photoScroll/core/index.d.ts +2 -0
- package/dist/src/components/photoScroll/core/types.d.ts +7 -0
- package/dist/src/components/photoScroll/element/index.d.ts +13 -0
- package/dist/src/components/photoScroll/index.d.ts +3 -9
- package/dist/src/components/photoScroll/react/index.d.ts +3 -0
- package/dist/src/components/photoScroll/types.d.ts +2 -2
- package/dist/src/components/photoTunnel/core/engine.d.ts +2 -0
- package/dist/src/components/photoTunnel/core/index.d.ts +2 -0
- package/dist/src/components/photoTunnel/core/types.d.ts +7 -0
- package/dist/src/components/photoTunnel/element/index.d.ts +13 -0
- package/dist/src/components/photoTunnel/index.d.ts +3 -9
- package/dist/src/components/photoTunnel/react/index.d.ts +3 -0
- package/dist/src/components/photoTunnel/types.d.ts +2 -2
- package/dist/src/components/photoViewMaster/core/engine.d.ts +2 -0
- package/dist/src/components/photoViewMaster/core/index.d.ts +2 -0
- package/dist/src/components/photoViewMaster/core/types.d.ts +7 -0
- package/dist/src/components/photoViewMaster/element/index.d.ts +13 -0
- package/dist/src/components/photoViewMaster/index.d.ts +3 -9
- package/dist/src/components/photoViewMaster/react/index.d.ts +3 -0
- package/dist/src/components/photoViewMaster/types.d.ts +2 -2
- package/dist/src/components/plasmaBall/core/engine.d.ts +2 -0
- package/dist/src/components/plasmaBall/core/index.d.ts +2 -0
- package/dist/src/components/plasmaBall/core/types.d.ts +11 -0
- package/dist/src/components/plasmaBall/element/index.d.ts +9 -0
- package/dist/src/components/plasmaBall/index.d.ts +3 -9
- package/dist/src/components/plasmaBall/react/index.d.ts +4 -0
- package/dist/src/components/progressChest/core/engine.d.ts +2 -0
- package/dist/src/components/progressChest/core/index.d.ts +2 -0
- package/dist/src/components/progressChest/core/types.d.ts +14 -0
- package/dist/src/components/progressChest/element/index.d.ts +9 -0
- package/dist/src/components/progressChest/index.d.ts +3 -13
- package/dist/src/components/progressChest/react/index.d.ts +4 -0
- package/dist/src/components/radarScan/core/engine.d.ts +2 -0
- package/dist/src/components/radarScan/core/index.d.ts +2 -0
- package/dist/src/components/radarScan/core/types.d.ts +10 -0
- package/dist/src/components/radarScan/element/index.d.ts +9 -0
- package/dist/src/components/radarScan/index.d.ts +3 -9
- package/dist/src/components/radarScan/react/index.d.ts +4 -0
- package/dist/src/components/redPacketRain/core/engine.d.ts +2 -0
- package/dist/src/components/redPacketRain/core/index.d.ts +2 -0
- package/dist/src/components/redPacketRain/core/types.d.ts +25 -0
- package/dist/src/components/redPacketRain/element/index.d.ts +12 -0
- package/dist/src/components/redPacketRain/index.d.ts +3 -33
- package/dist/src/components/redPacketRain/react/index.d.ts +5 -0
- package/dist/src/components/returnCity/core/engine.d.ts +2 -0
- package/dist/src/components/returnCity/core/index.d.ts +2 -0
- package/dist/src/components/returnCity/core/types.d.ts +10 -0
- package/dist/src/components/returnCity/element/index.d.ts +9 -0
- package/dist/src/components/returnCity/index.d.ts +3 -11
- package/dist/src/components/returnCity/react/index.d.ts +4 -0
- package/dist/src/components/rippleWater/core/engine.d.ts +2 -0
- package/dist/src/components/rippleWater/core/index.d.ts +2 -0
- package/dist/src/components/rippleWater/core/types.d.ts +24 -0
- package/dist/src/components/rippleWater/element/index.d.ts +9 -0
- package/dist/src/components/rippleWater/index.d.ts +3 -37
- package/dist/src/components/rippleWater/react/index.d.ts +4 -0
- package/dist/src/components/ropeChain/core/engine.d.ts +2 -0
- package/dist/src/components/ropeChain/core/index.d.ts +2 -0
- package/dist/src/components/ropeChain/core/types.d.ts +12 -0
- package/dist/src/components/ropeChain/element/index.d.ts +9 -0
- package/dist/src/components/ropeChain/index.d.ts +3 -10
- package/dist/src/components/ropeChain/react/index.d.ts +4 -0
- package/dist/src/components/rotatingText/core/engine.d.ts +2 -0
- package/dist/src/components/rotatingText/core/index.d.ts +2 -0
- package/dist/src/components/rotatingText/core/types.d.ts +14 -0
- package/dist/src/components/rotatingText/element/index.d.ts +13 -0
- package/dist/src/components/rotatingText/index.d.ts +3 -19
- package/dist/src/components/rotatingText/react/index.d.ts +4 -0
- package/dist/src/components/sandFall/core/engine.d.ts +2 -0
- package/dist/src/components/sandFall/core/index.d.ts +2 -0
- package/dist/src/components/sandFall/core/types.d.ts +14 -0
- package/dist/src/components/sandFall/element/index.d.ts +13 -0
- package/dist/src/components/sandFall/index.d.ts +3 -17
- package/dist/src/components/sandFall/react/index.d.ts +4 -0
- package/dist/src/components/scrambleText/core/engine.d.ts +2 -0
- package/dist/src/components/scrambleText/core/index.d.ts +2 -0
- package/dist/src/components/scrambleText/core/types.d.ts +10 -0
- package/dist/src/components/scrambleText/element/index.d.ts +9 -0
- package/dist/src/components/scrambleText/index.d.ts +3 -11
- package/dist/src/components/scrambleText/react/index.d.ts +4 -0
- package/dist/src/components/scratchCard/core/engine.d.ts +2 -0
- package/dist/src/components/scratchCard/core/index.d.ts +2 -0
- package/dist/src/components/scratchCard/core/types.d.ts +25 -0
- package/dist/src/components/scratchCard/element/index.d.ts +11 -0
- package/dist/src/components/scratchCard/index.d.ts +3 -23
- package/dist/src/components/scratchCard/react/index.d.ts +5 -0
- package/dist/src/components/shinyText/core/engine.d.ts +2 -0
- package/dist/src/components/shinyText/core/index.d.ts +2 -0
- package/dist/src/components/shinyText/core/types.d.ts +13 -0
- package/dist/src/components/shinyText/element/index.d.ts +9 -0
- package/dist/src/components/shinyText/index.d.ts +3 -17
- package/dist/src/components/shinyText/react/index.d.ts +4 -0
- package/dist/src/components/slotMachine/core/engine.d.ts +2 -0
- package/dist/src/components/slotMachine/core/index.d.ts +2 -0
- package/dist/src/components/slotMachine/core/types.d.ts +31 -0
- package/dist/src/components/slotMachine/element/index.d.ts +18 -0
- package/dist/src/components/slotMachine/index.d.ts +3 -29
- package/dist/src/components/slotMachine/react/index.d.ts +5 -0
- package/dist/src/components/smokeFog/core/engine.d.ts +2 -0
- package/dist/src/components/smokeFog/core/index.d.ts +2 -0
- package/dist/src/components/smokeFog/core/types.d.ts +18 -0
- package/dist/src/components/smokeFog/element/index.d.ts +9 -0
- package/dist/src/components/smokeFog/index.d.ts +3 -25
- package/dist/src/components/smokeFog/react/index.d.ts +4 -0
- package/dist/src/components/snowfall/core/engine.d.ts +2 -0
- package/dist/src/components/snowfall/core/index.d.ts +2 -0
- package/dist/src/components/snowfall/core/types.d.ts +12 -0
- package/dist/src/components/snowfall/element/index.d.ts +13 -0
- package/dist/src/components/snowfall/index.d.ts +3 -13
- package/dist/src/components/snowfall/react/index.d.ts +4 -0
- package/dist/src/components/soapBubbles/core/engine.d.ts +2 -0
- package/dist/src/components/soapBubbles/core/index.d.ts +2 -0
- package/dist/src/components/soapBubbles/core/types.d.ts +14 -0
- package/dist/src/components/soapBubbles/element/index.d.ts +9 -0
- package/dist/src/components/soapBubbles/index.d.ts +3 -20
- package/dist/src/components/soapBubbles/react/index.d.ts +4 -0
- package/dist/src/components/solarSystem/core/engine.d.ts +2 -0
- package/dist/src/components/solarSystem/core/index.d.ts +2 -0
- package/dist/src/components/solarSystem/core/types.d.ts +11 -0
- package/dist/src/components/solarSystem/element/index.d.ts +9 -0
- package/dist/src/components/solarSystem/index.d.ts +3 -9
- package/dist/src/components/solarSystem/react/index.d.ts +4 -0
- package/dist/src/components/speedometer/core/engine.d.ts +2 -0
- package/dist/src/components/speedometer/core/index.d.ts +2 -0
- package/dist/src/components/speedometer/core/types.d.ts +11 -0
- package/dist/src/components/speedometer/element/index.d.ts +9 -0
- package/dist/src/components/speedometer/index.d.ts +3 -9
- package/dist/src/components/speedometer/react/index.d.ts +4 -0
- package/dist/src/components/splitReveal/core/engine.d.ts +2 -0
- package/dist/src/components/splitReveal/core/index.d.ts +2 -0
- package/dist/src/components/splitReveal/core/types.d.ts +10 -0
- package/dist/src/components/splitReveal/element/index.d.ts +9 -0
- package/dist/src/components/splitReveal/index.d.ts +3 -11
- package/dist/src/components/splitReveal/react/index.d.ts +4 -0
- package/dist/src/components/splitText/core/engine.d.ts +2 -0
- package/dist/src/components/splitText/core/index.d.ts +2 -0
- package/dist/src/components/splitText/core/types.d.ts +15 -0
- package/dist/src/components/splitText/element/index.d.ts +13 -0
- package/dist/src/components/splitText/index.d.ts +3 -21
- package/dist/src/components/splitText/react/index.d.ts +4 -0
- package/dist/src/components/spotlight/core/engine.d.ts +2 -0
- package/dist/src/components/spotlight/core/index.d.ts +2 -0
- package/dist/src/components/spotlight/core/types.d.ts +13 -0
- package/dist/src/components/spotlight/element/index.d.ts +14 -0
- package/dist/src/components/spotlight/index.d.ts +3 -10
- package/dist/src/components/spotlight/react/index.d.ts +6 -0
- package/dist/src/components/springMass/core/engine.d.ts +2 -0
- package/dist/src/components/springMass/core/index.d.ts +2 -0
- package/dist/src/components/springMass/core/types.d.ts +21 -0
- package/dist/src/components/springMass/element/index.d.ts +9 -0
- package/dist/src/components/springMass/index.d.ts +3 -19
- package/dist/src/components/springMass/react/index.d.ts +4 -0
- package/dist/src/components/starfield/core/engine.d.ts +2 -0
- package/dist/src/components/starfield/core/index.d.ts +2 -0
- package/dist/src/components/starfield/core/types.d.ts +12 -0
- package/dist/src/components/starfield/element/index.d.ts +9 -0
- package/dist/src/components/starfield/index.d.ts +3 -13
- package/dist/src/components/starfield/react/index.d.ts +4 -0
- package/dist/src/components/textMorph/core/engine.d.ts +2 -0
- package/dist/src/components/textMorph/core/index.d.ts +2 -0
- package/dist/src/components/textMorph/core/types.d.ts +12 -0
- package/dist/src/components/textMorph/element/index.d.ts +13 -0
- package/dist/src/components/textMorph/index.d.ts +3 -15
- package/dist/src/components/textMorph/react/index.d.ts +4 -0
- package/dist/src/components/timelinePulse/core/engine.d.ts +2 -0
- package/dist/src/components/timelinePulse/core/index.d.ts +2 -0
- package/dist/src/components/timelinePulse/core/types.d.ts +10 -0
- package/dist/src/components/timelinePulse/element/index.d.ts +13 -0
- package/dist/src/components/timelinePulse/index.d.ts +3 -8
- package/dist/src/components/timelinePulse/react/index.d.ts +4 -0
- package/dist/src/components/trueFocus/core/engine.d.ts +2 -0
- package/dist/src/components/trueFocus/core/index.d.ts +2 -0
- package/dist/src/components/trueFocus/core/types.d.ts +17 -0
- package/dist/src/components/trueFocus/element/index.d.ts +9 -0
- package/dist/src/components/trueFocus/index.d.ts +3 -25
- package/dist/src/components/trueFocus/react/index.d.ts +4 -0
- package/dist/src/components/turntable/core/engine.d.ts +2 -0
- package/dist/src/components/turntable/core/index.d.ts +2 -0
- package/dist/src/components/turntable/core/types.d.ts +35 -0
- package/dist/src/components/turntable/element/index.d.ts +15 -0
- package/dist/src/components/turntable/index.d.ts +3 -33
- package/dist/src/components/turntable/react/index.d.ts +5 -0
- package/dist/src/components/typewriter/core/engine.d.ts +2 -0
- package/dist/src/components/typewriter/core/index.d.ts +2 -0
- package/dist/src/components/typewriter/core/types.d.ts +11 -0
- package/dist/src/components/typewriter/element/index.d.ts +13 -0
- package/dist/src/components/typewriter/index.d.ts +3 -13
- package/dist/src/components/typewriter/react/index.d.ts +4 -0
- package/dist/src/components/waveButton/core/engine.d.ts +2 -0
- package/dist/src/components/waveButton/core/index.d.ts +2 -0
- package/dist/src/components/waveButton/core/types.d.ts +13 -0
- package/dist/src/components/waveButton/element/index.d.ts +14 -0
- package/dist/src/components/waveButton/index.d.ts +3 -9
- package/dist/src/components/waveButton/react/index.d.ts +4 -0
- package/dist/src/components/waveText/core/engine.d.ts +2 -0
- package/dist/src/components/waveText/core/index.d.ts +2 -0
- package/dist/src/components/waveText/core/types.d.ts +11 -0
- package/dist/src/components/waveText/element/index.d.ts +9 -0
- package/dist/src/components/waveText/index.d.ts +3 -13
- package/dist/src/components/waveText/react/index.d.ts +4 -0
- package/dist/src/components/weatherBackground/core/engine.d.ts +2 -0
- package/dist/src/components/weatherBackground/core/index.d.ts +14 -0
- package/dist/src/components/weatherBackground/core/types.d.ts +7 -0
- package/dist/src/components/weatherBackground/element/index.d.ts +13 -0
- package/dist/src/components/weatherBackground/index.d.ts +5 -5
- package/dist/src/components/weatherBackground/live-weather-core.d.ts +79 -0
- package/dist/src/components/weatherBackground/live-weather.d.ts +3 -69
- package/dist/src/components/weatherBackground/react/index.d.ts +3 -0
- package/dist/src/core.d.ts +91 -0
- package/dist/src/elements.d.ts +0 -0
- package/dist/src/vite-env.d.ts +6 -0
- package/dist/src/vue.d.ts +91 -0
- package/dist/style.css +1 -0
- package/dist/vue.cjs +1 -0
- package/dist/vue.d.ts +1 -0
- package/dist/vue.js +2444 -0
- package/package.json +39 -3
- package/dist/index.css +0 -1
package/dist/elements.js
ADDED
|
@@ -0,0 +1,3844 @@
|
|
|
1
|
+
import { $t as e, An as t, At as n, Bn as r, Bt as ee, Cn as te, Ct as ne, Dn as re, Dt as ie, En as ae, Et as oe, Fn as se, Ft as ce, Gt as le, Hn as ue, Ht as de, In as fe, It as pe, Jt as me, Kt as he, Ln as ge, Lt as _e, Mn as ve, Mt as ye, Nn as be, Nt as xe, On as Se, Ot as Ce, Pn as we, Pt as Te, Qt as Ee, Rn as De, Rt as Oe, Sn as ke, St as Ae, Tn as je, Tt as Me, Un as Ne, Ut as Pe, Vn as Fe, Vt as Ie, Wn as Le, Wt as Re, Xt as ze, Yt as Be, Zt as Ve, _n as He, _t as Ue, an as We, bn as Ge, bt as Ke, cn as qe, dn as Je, dt as Ye, en as Xe, fn as Ze, ft as Qe, gn as $e, gt as et, hn as tt, ht as nt, in as rt, jn as it, jt as at, kn as ot, kt as st, ln as ct, mn as lt, mt as ut, n as dt, nn as ft, on as pt, pn as mt, pt as ht, qt as gt, rn as _t, sn as vt, t as yt, tn as bt, un as xt, vn as St, vt as Ct, wn as wt, wt as Tt, xn as Et, xt as Dt, yn as Ot, yt as kt, zn as At, zt as jt } from "./engine-jGjtPKCP.js";
|
|
2
|
+
import './style.css';/* empty css */
|
|
3
|
+
import { t as Mt } from "./core-On5bp2VI.js";
|
|
4
|
+
//#region src/components/audioVisualizer/element/index.ts
|
|
5
|
+
var Nt = "cos-audio-visualizer";
|
|
6
|
+
function i(e) {
|
|
7
|
+
let t = {};
|
|
8
|
+
return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("bar-count") && (t.barCount = Number(e.getAttribute("bar-count"))), t.useMic = e.hasAttribute("use-mic"), t;
|
|
9
|
+
}
|
|
10
|
+
var Pt = class extends HTMLElement {
|
|
11
|
+
ctrl = null;
|
|
12
|
+
static get observedAttributes() {
|
|
13
|
+
return [
|
|
14
|
+
"width",
|
|
15
|
+
"height",
|
|
16
|
+
"bar-count",
|
|
17
|
+
"use-mic"
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
connectedCallback() {
|
|
21
|
+
this.ctrl = r(this, i(this));
|
|
22
|
+
}
|
|
23
|
+
disconnectedCallback() {
|
|
24
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
25
|
+
}
|
|
26
|
+
attributeChangedCallback() {
|
|
27
|
+
this.ctrl?.update(i(this));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
typeof customElements < "u" && !customElements.get("cos-audio-visualizer") && customElements.define(Nt, Pt);
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/aurora/element/index.ts
|
|
33
|
+
var Ft = "cos-aurora";
|
|
34
|
+
function a(e) {
|
|
35
|
+
let t = {};
|
|
36
|
+
if (e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("colors")) try {
|
|
37
|
+
t.colors = JSON.parse(e.getAttribute("colors") ?? "null");
|
|
38
|
+
} catch {}
|
|
39
|
+
let n = e._colors;
|
|
40
|
+
return n !== void 0 && (t.colors = n), t;
|
|
41
|
+
}
|
|
42
|
+
var It = class extends HTMLElement {
|
|
43
|
+
ctrl = null;
|
|
44
|
+
_colors;
|
|
45
|
+
get colors() {
|
|
46
|
+
return this._colors;
|
|
47
|
+
}
|
|
48
|
+
set colors(e) {
|
|
49
|
+
this._colors = e, this.ctrl?.update(a(this));
|
|
50
|
+
}
|
|
51
|
+
static get observedAttributes() {
|
|
52
|
+
return [
|
|
53
|
+
"width",
|
|
54
|
+
"height",
|
|
55
|
+
"fill",
|
|
56
|
+
"colors"
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
connectedCallback() {
|
|
60
|
+
this.ctrl = Fe(this, a(this));
|
|
61
|
+
}
|
|
62
|
+
disconnectedCallback() {
|
|
63
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
64
|
+
}
|
|
65
|
+
attributeChangedCallback() {
|
|
66
|
+
this.ctrl?.update(a(this));
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
typeof customElements < "u" && !customElements.get("cos-aurora") && customElements.define(Ft, It);
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/components/auroraVeil/element/index.ts
|
|
72
|
+
var Lt = "cos-aurora-veil";
|
|
73
|
+
function o(e) {
|
|
74
|
+
let t = {};
|
|
75
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("band-count") && (t.bandCount = Number(e.getAttribute("band-count"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
|
|
76
|
+
let n = e.getAttribute("interactive");
|
|
77
|
+
t.interactive = n !== "false" && n !== "0";
|
|
78
|
+
}
|
|
79
|
+
if (e.hasAttribute("colors")) try {
|
|
80
|
+
t.colors = JSON.parse(e.getAttribute("colors") ?? "null");
|
|
81
|
+
} catch {}
|
|
82
|
+
let n = e._colors;
|
|
83
|
+
return n !== void 0 && (t.colors = n), t;
|
|
84
|
+
}
|
|
85
|
+
var Rt = class extends HTMLElement {
|
|
86
|
+
ctrl = null;
|
|
87
|
+
_colors;
|
|
88
|
+
get colors() {
|
|
89
|
+
return this._colors;
|
|
90
|
+
}
|
|
91
|
+
set colors(e) {
|
|
92
|
+
this._colors = e, this.ctrl?.update(o(this));
|
|
93
|
+
}
|
|
94
|
+
static get observedAttributes() {
|
|
95
|
+
return [
|
|
96
|
+
"width",
|
|
97
|
+
"height",
|
|
98
|
+
"fill",
|
|
99
|
+
"colors",
|
|
100
|
+
"band-count",
|
|
101
|
+
"speed",
|
|
102
|
+
"interactive",
|
|
103
|
+
"aria-label"
|
|
104
|
+
];
|
|
105
|
+
}
|
|
106
|
+
connectedCallback() {
|
|
107
|
+
this.ctrl = _e(this, o(this));
|
|
108
|
+
}
|
|
109
|
+
disconnectedCallback() {
|
|
110
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
111
|
+
}
|
|
112
|
+
attributeChangedCallback() {
|
|
113
|
+
this.ctrl?.update(o(this));
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
typeof customElements < "u" && !customElements.get("cos-aurora-veil") && customElements.define(Lt, Rt);
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/barcodeScan/element/index.ts
|
|
119
|
+
var zt = "cos-barcode-scan";
|
|
120
|
+
function s(e) {
|
|
121
|
+
let t = {};
|
|
122
|
+
if (e.hasAttribute("scan-color") && (t.scanColor = e.getAttribute("scan-color") ?? void 0), e.hasAttribute("default-content") && (t.defaultContent = e.getAttribute("default-content") ?? void 0), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("slot-element")) try {
|
|
123
|
+
t.slotElement = JSON.parse(e.getAttribute("slot-element") ?? "null");
|
|
124
|
+
} catch {}
|
|
125
|
+
let n = e._slotElement;
|
|
126
|
+
return n !== void 0 && (t.slotElement = n), t;
|
|
127
|
+
}
|
|
128
|
+
var Bt = class extends HTMLElement {
|
|
129
|
+
ctrl = null;
|
|
130
|
+
_slotElement;
|
|
131
|
+
get slotElement() {
|
|
132
|
+
return this._slotElement;
|
|
133
|
+
}
|
|
134
|
+
set slotElement(e) {
|
|
135
|
+
this._slotElement = e, this.ctrl?.update(s(this));
|
|
136
|
+
}
|
|
137
|
+
static get observedAttributes() {
|
|
138
|
+
return [
|
|
139
|
+
"scan-color",
|
|
140
|
+
"speed",
|
|
141
|
+
"slot-element",
|
|
142
|
+
"default-content"
|
|
143
|
+
];
|
|
144
|
+
}
|
|
145
|
+
connectedCallback() {
|
|
146
|
+
this.ctrl = Le(this, s(this));
|
|
147
|
+
}
|
|
148
|
+
disconnectedCallback() {
|
|
149
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
150
|
+
}
|
|
151
|
+
attributeChangedCallback() {
|
|
152
|
+
this.ctrl?.update(s(this));
|
|
153
|
+
}
|
|
154
|
+
getSlot() {
|
|
155
|
+
return this.ctrl?.getSlot();
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
typeof customElements < "u" && !customElements.get("cos-barcode-scan") && customElements.define(zt, Bt);
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region src/components/blurText/element/index.ts
|
|
161
|
+
var Vt = "cos-blur-text";
|
|
162
|
+
function c(e) {
|
|
163
|
+
let t = {};
|
|
164
|
+
if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("stagger") && (t.stagger = Number(e.getAttribute("stagger"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("animate-by")) try {
|
|
165
|
+
t.animateBy = JSON.parse(e.getAttribute("animate-by") ?? "null");
|
|
166
|
+
} catch {}
|
|
167
|
+
let n = e._animateBy;
|
|
168
|
+
if (n !== void 0 && (t.animateBy = n), e.hasAttribute("direction")) try {
|
|
169
|
+
t.direction = JSON.parse(e.getAttribute("direction") ?? "null");
|
|
170
|
+
} catch {}
|
|
171
|
+
let r = e._direction;
|
|
172
|
+
return r !== void 0 && (t.direction = r), t.onAnimationComplete = (...t) => {
|
|
173
|
+
e.dispatchEvent(new CustomEvent("animation-complete", {
|
|
174
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
175
|
+
bubbles: !0
|
|
176
|
+
}));
|
|
177
|
+
}, t;
|
|
178
|
+
}
|
|
179
|
+
var Ht = class extends HTMLElement {
|
|
180
|
+
ctrl = null;
|
|
181
|
+
_animateBy;
|
|
182
|
+
get animateBy() {
|
|
183
|
+
return this._animateBy;
|
|
184
|
+
}
|
|
185
|
+
set animateBy(e) {
|
|
186
|
+
this._animateBy = e, this.ctrl?.update(c(this));
|
|
187
|
+
}
|
|
188
|
+
_direction;
|
|
189
|
+
get direction() {
|
|
190
|
+
return this._direction;
|
|
191
|
+
}
|
|
192
|
+
set direction(e) {
|
|
193
|
+
this._direction = e, this.ctrl?.update(c(this));
|
|
194
|
+
}
|
|
195
|
+
static get observedAttributes() {
|
|
196
|
+
return [
|
|
197
|
+
"text",
|
|
198
|
+
"animate-by",
|
|
199
|
+
"direction",
|
|
200
|
+
"stagger",
|
|
201
|
+
"duration",
|
|
202
|
+
"font-size",
|
|
203
|
+
"color"
|
|
204
|
+
];
|
|
205
|
+
}
|
|
206
|
+
connectedCallback() {
|
|
207
|
+
this.ctrl = Ne(this, c(this));
|
|
208
|
+
}
|
|
209
|
+
disconnectedCallback() {
|
|
210
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
211
|
+
}
|
|
212
|
+
attributeChangedCallback() {
|
|
213
|
+
this.ctrl?.update(c(this));
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
typeof customElements < "u" && !customElements.get("cos-blur-text") && customElements.define(Vt, Ht);
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/components/bubbleField/element/index.ts
|
|
219
|
+
var Ut = "cos-bubble-field";
|
|
220
|
+
function l(e) {
|
|
221
|
+
let t = {};
|
|
222
|
+
if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("bubble-count") && (t.bubbleCount = Number(e.getAttribute("bubble-count"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
|
|
223
|
+
let n = e.getAttribute("interactive");
|
|
224
|
+
t.interactive = n !== "false" && n !== "0";
|
|
225
|
+
}
|
|
226
|
+
return t;
|
|
227
|
+
}
|
|
228
|
+
var Wt = class extends HTMLElement {
|
|
229
|
+
ctrl = null;
|
|
230
|
+
static get observedAttributes() {
|
|
231
|
+
return [
|
|
232
|
+
"width",
|
|
233
|
+
"height",
|
|
234
|
+
"fill",
|
|
235
|
+
"bubble-count",
|
|
236
|
+
"speed",
|
|
237
|
+
"color",
|
|
238
|
+
"interactive"
|
|
239
|
+
];
|
|
240
|
+
}
|
|
241
|
+
connectedCallback() {
|
|
242
|
+
this.ctrl = de(this, l(this));
|
|
243
|
+
}
|
|
244
|
+
disconnectedCallback() {
|
|
245
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
246
|
+
}
|
|
247
|
+
attributeChangedCallback() {
|
|
248
|
+
this.ctrl?.update(l(this));
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
typeof customElements < "u" && !customElements.get("cos-bubble-field") && customElements.define(Ut, Wt);
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/components/burnAway/element/index.ts
|
|
254
|
+
var Gt = "cos-burn-away";
|
|
255
|
+
function u(e) {
|
|
256
|
+
let t = {};
|
|
257
|
+
return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("completed-text") && (t.completedText = e.getAttribute("completed-text") ?? void 0), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t.onComplete = (...t) => {
|
|
258
|
+
e.dispatchEvent(new CustomEvent("complete", {
|
|
259
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
260
|
+
bubbles: !0
|
|
261
|
+
}));
|
|
262
|
+
}, t;
|
|
263
|
+
}
|
|
264
|
+
var Kt = class extends HTMLElement {
|
|
265
|
+
ctrl = null;
|
|
266
|
+
static get observedAttributes() {
|
|
267
|
+
return [
|
|
268
|
+
"text",
|
|
269
|
+
"font-size",
|
|
270
|
+
"completed-text"
|
|
271
|
+
];
|
|
272
|
+
}
|
|
273
|
+
connectedCallback() {
|
|
274
|
+
this.ctrl = ue(this, u(this));
|
|
275
|
+
}
|
|
276
|
+
disconnectedCallback() {
|
|
277
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
278
|
+
}
|
|
279
|
+
attributeChangedCallback() {
|
|
280
|
+
this.ctrl?.update(u(this));
|
|
281
|
+
}
|
|
282
|
+
ignite() {
|
|
283
|
+
return this.ctrl?.ignite();
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
typeof customElements < "u" && !customElements.get("cos-burn-away") && customElements.define(Gt, Kt);
|
|
287
|
+
//#endregion
|
|
288
|
+
//#region src/components/canvasClock/element/index.ts
|
|
289
|
+
var qt = "cos-canvas-clock";
|
|
290
|
+
function d(e) {
|
|
291
|
+
let t = {};
|
|
292
|
+
return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t;
|
|
293
|
+
}
|
|
294
|
+
var Jt = class extends HTMLElement {
|
|
295
|
+
ctrl = null;
|
|
296
|
+
static get observedAttributes() {
|
|
297
|
+
return ["width", "height"];
|
|
298
|
+
}
|
|
299
|
+
connectedCallback() {
|
|
300
|
+
this.ctrl = At(this, d(this));
|
|
301
|
+
}
|
|
302
|
+
disconnectedCallback() {
|
|
303
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
304
|
+
}
|
|
305
|
+
attributeChangedCallback() {
|
|
306
|
+
this.ctrl?.update(d(this));
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
typeof customElements < "u" && !customElements.get("cos-canvas-clock") && customElements.define(qt, Jt);
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/components/charge/element/index.ts
|
|
312
|
+
var Yt = "cos-charge";
|
|
313
|
+
function f(e) {
|
|
314
|
+
let t = {};
|
|
315
|
+
if (e.hasAttribute("init-quantity") && (t.initQuantity = Number(e.getAttribute("init-quantity"))), e.hasAttribute("value") && (t.value = Number(e.getAttribute("value"))), e.hasAttribute("interval") && (t.interval = Number(e.getAttribute("interval"))), e.hasAttribute("step") && (t.step = Number(e.getAttribute("step"))), e.hasAttribute("auto-charge")) {
|
|
316
|
+
let n = e.getAttribute("auto-charge");
|
|
317
|
+
t.autoCharge = n !== "false" && n !== "0";
|
|
318
|
+
}
|
|
319
|
+
return t.onChange = (...t) => {
|
|
320
|
+
e.dispatchEvent(new CustomEvent("change", {
|
|
321
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
322
|
+
bubbles: !0
|
|
323
|
+
}));
|
|
324
|
+
}, t.onComplete = (...t) => {
|
|
325
|
+
e.dispatchEvent(new CustomEvent("complete", {
|
|
326
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
327
|
+
bubbles: !0
|
|
328
|
+
}));
|
|
329
|
+
}, t;
|
|
330
|
+
}
|
|
331
|
+
var Xt = class extends HTMLElement {
|
|
332
|
+
ctrl = null;
|
|
333
|
+
static get observedAttributes() {
|
|
334
|
+
return [
|
|
335
|
+
"init-quantity",
|
|
336
|
+
"value",
|
|
337
|
+
"auto-charge",
|
|
338
|
+
"interval",
|
|
339
|
+
"step"
|
|
340
|
+
];
|
|
341
|
+
}
|
|
342
|
+
connectedCallback() {
|
|
343
|
+
this.ctrl = De(this, f(this));
|
|
344
|
+
}
|
|
345
|
+
disconnectedCallback() {
|
|
346
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
347
|
+
}
|
|
348
|
+
attributeChangedCallback() {
|
|
349
|
+
this.ctrl?.update(f(this));
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
typeof customElements < "u" && !customElements.get("cos-charge") && customElements.define(Yt, Xt);
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region src/components/circularText/element/index.ts
|
|
355
|
+
var Zt = "cos-circular-text";
|
|
356
|
+
function p(e) {
|
|
357
|
+
let t = {};
|
|
358
|
+
if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("spin-duration") && (t.spinDuration = Number(e.getAttribute("spin-duration"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("radius") && (t.radius = Number(e.getAttribute("radius"))), e.hasAttribute("on-hover")) try {
|
|
359
|
+
t.onHover = JSON.parse(e.getAttribute("on-hover") ?? "null");
|
|
360
|
+
} catch {}
|
|
361
|
+
let n = e._onHover;
|
|
362
|
+
return n !== void 0 && (t.onHover = n), t;
|
|
363
|
+
}
|
|
364
|
+
var Qt = class extends HTMLElement {
|
|
365
|
+
ctrl = null;
|
|
366
|
+
_onHover;
|
|
367
|
+
get onHover() {
|
|
368
|
+
return this._onHover;
|
|
369
|
+
}
|
|
370
|
+
set onHover(e) {
|
|
371
|
+
this._onHover = e, this.ctrl?.update(p(this));
|
|
372
|
+
}
|
|
373
|
+
static get observedAttributes() {
|
|
374
|
+
return [
|
|
375
|
+
"text",
|
|
376
|
+
"spin-duration",
|
|
377
|
+
"on-hover",
|
|
378
|
+
"font-size",
|
|
379
|
+
"radius",
|
|
380
|
+
"color"
|
|
381
|
+
];
|
|
382
|
+
}
|
|
383
|
+
connectedCallback() {
|
|
384
|
+
this.ctrl = ge(this, p(this));
|
|
385
|
+
}
|
|
386
|
+
disconnectedCallback() {
|
|
387
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
388
|
+
}
|
|
389
|
+
attributeChangedCallback() {
|
|
390
|
+
this.ctrl?.update(p(this));
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
typeof customElements < "u" && !customElements.get("cos-circular-text") && customElements.define(Zt, Qt);
|
|
394
|
+
//#endregion
|
|
395
|
+
//#region src/components/clickSpark/element/index.ts
|
|
396
|
+
var $t = "cos-click-spark";
|
|
397
|
+
function m(e) {
|
|
398
|
+
let t = {};
|
|
399
|
+
if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("count") && (t.count = Number(e.getAttribute("count"))), e.hasAttribute("default-content") && (t.defaultContent = e.getAttribute("default-content") ?? void 0), e.hasAttribute("slot-element")) try {
|
|
400
|
+
t.slotElement = JSON.parse(e.getAttribute("slot-element") ?? "null");
|
|
401
|
+
} catch {}
|
|
402
|
+
let n = e._slotElement;
|
|
403
|
+
return n !== void 0 && (t.slotElement = n), t;
|
|
404
|
+
}
|
|
405
|
+
var en = class extends HTMLElement {
|
|
406
|
+
ctrl = null;
|
|
407
|
+
_slotElement;
|
|
408
|
+
get slotElement() {
|
|
409
|
+
return this._slotElement;
|
|
410
|
+
}
|
|
411
|
+
set slotElement(e) {
|
|
412
|
+
this._slotElement = e, this.ctrl?.update(m(this));
|
|
413
|
+
}
|
|
414
|
+
static get observedAttributes() {
|
|
415
|
+
return [
|
|
416
|
+
"color",
|
|
417
|
+
"count",
|
|
418
|
+
"default-content",
|
|
419
|
+
"slot-element"
|
|
420
|
+
];
|
|
421
|
+
}
|
|
422
|
+
connectedCallback() {
|
|
423
|
+
this.ctrl = fe(this, m(this));
|
|
424
|
+
}
|
|
425
|
+
disconnectedCallback() {
|
|
426
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
427
|
+
}
|
|
428
|
+
attributeChangedCallback() {
|
|
429
|
+
this.ctrl?.update(m(this));
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
typeof customElements < "u" && !customElements.get("cos-click-spark") && customElements.define($t, en);
|
|
433
|
+
//#endregion
|
|
434
|
+
//#region src/components/confetti/element/index.ts
|
|
435
|
+
var tn = "cos-confetti";
|
|
436
|
+
function h(e) {
|
|
437
|
+
let t = {};
|
|
438
|
+
if (e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("particle-count") && (t.particleCount = Number(e.getAttribute("particle-count"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("auto")) {
|
|
439
|
+
let n = e.getAttribute("auto");
|
|
440
|
+
t.auto = n !== "false" && n !== "0";
|
|
441
|
+
}
|
|
442
|
+
if (e.hasAttribute("interactive")) {
|
|
443
|
+
let n = e.getAttribute("interactive");
|
|
444
|
+
t.interactive = n !== "false" && n !== "0";
|
|
445
|
+
}
|
|
446
|
+
return t.onComplete = (...t) => {
|
|
447
|
+
e.dispatchEvent(new CustomEvent("complete", {
|
|
448
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
449
|
+
bubbles: !0
|
|
450
|
+
}));
|
|
451
|
+
}, t;
|
|
452
|
+
}
|
|
453
|
+
var nn = class extends HTMLElement {
|
|
454
|
+
ctrl = null;
|
|
455
|
+
static get observedAttributes() {
|
|
456
|
+
return [
|
|
457
|
+
"width",
|
|
458
|
+
"height",
|
|
459
|
+
"fill",
|
|
460
|
+
"auto",
|
|
461
|
+
"interactive",
|
|
462
|
+
"particle-count",
|
|
463
|
+
"hint"
|
|
464
|
+
];
|
|
465
|
+
}
|
|
466
|
+
connectedCallback() {
|
|
467
|
+
this.ctrl = se(this, h(this));
|
|
468
|
+
}
|
|
469
|
+
disconnectedCallback() {
|
|
470
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
471
|
+
}
|
|
472
|
+
attributeChangedCallback() {
|
|
473
|
+
this.ctrl?.update(h(this));
|
|
474
|
+
}
|
|
475
|
+
burst() {
|
|
476
|
+
return this.ctrl?.burst();
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
typeof customElements < "u" && !customElements.get("cos-confetti") && customElements.define(tn, nn);
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region src/components/countUp/element/index.ts
|
|
482
|
+
var rn = "cos-count-up";
|
|
483
|
+
function g(e) {
|
|
484
|
+
let t = {};
|
|
485
|
+
return e.hasAttribute("prefix") && (t.prefix = e.getAttribute("prefix") ?? void 0), e.hasAttribute("suffix") && (t.suffix = e.getAttribute("suffix") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("value") && (t.value = Number(e.getAttribute("value"))), e.hasAttribute("start") && (t.start = Number(e.getAttribute("start"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("decimals") && (t.decimals = Number(e.getAttribute("decimals"))), t;
|
|
486
|
+
}
|
|
487
|
+
var an = class extends HTMLElement {
|
|
488
|
+
ctrl = null;
|
|
489
|
+
static get observedAttributes() {
|
|
490
|
+
return [
|
|
491
|
+
"value",
|
|
492
|
+
"start",
|
|
493
|
+
"duration",
|
|
494
|
+
"decimals",
|
|
495
|
+
"prefix",
|
|
496
|
+
"suffix",
|
|
497
|
+
"color"
|
|
498
|
+
];
|
|
499
|
+
}
|
|
500
|
+
connectedCallback() {
|
|
501
|
+
this.ctrl = it(this, g(this));
|
|
502
|
+
}
|
|
503
|
+
disconnectedCallback() {
|
|
504
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
505
|
+
}
|
|
506
|
+
attributeChangedCallback() {
|
|
507
|
+
this.ctrl?.update(g(this));
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
typeof customElements < "u" && !customElements.get("cos-count-up") && customElements.define(rn, an);
|
|
511
|
+
//#endregion
|
|
512
|
+
//#region src/components/countdown/element/index.ts
|
|
513
|
+
var on = "cos-countdown";
|
|
514
|
+
function _(e) {
|
|
515
|
+
let t = {};
|
|
516
|
+
if (e.hasAttribute("target-date") && (t.targetDate = e.getAttribute("target-date") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("invalid-text") && (t.invalidText = e.getAttribute("invalid-text") ?? void 0), e.hasAttribute("ended-text") && (t.endedText = e.getAttribute("ended-text") ?? void 0), t.showLabels = e.hasAttribute("show-labels"), e.hasAttribute("labels")) try {
|
|
517
|
+
t.labels = JSON.parse(e.getAttribute("labels") ?? "null");
|
|
518
|
+
} catch {}
|
|
519
|
+
let n = e._labels;
|
|
520
|
+
return n !== void 0 && (t.labels = n), t.onEnd = (...t) => {
|
|
521
|
+
e.dispatchEvent(new CustomEvent("end", {
|
|
522
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
523
|
+
bubbles: !0
|
|
524
|
+
}));
|
|
525
|
+
}, t;
|
|
526
|
+
}
|
|
527
|
+
var sn = class extends HTMLElement {
|
|
528
|
+
ctrl = null;
|
|
529
|
+
_labels;
|
|
530
|
+
get labels() {
|
|
531
|
+
return this._labels;
|
|
532
|
+
}
|
|
533
|
+
set labels(e) {
|
|
534
|
+
this._labels = e, this.ctrl?.update(_(this));
|
|
535
|
+
}
|
|
536
|
+
static get observedAttributes() {
|
|
537
|
+
return [
|
|
538
|
+
"target-date",
|
|
539
|
+
"show-labels",
|
|
540
|
+
"color",
|
|
541
|
+
"labels",
|
|
542
|
+
"invalid-text",
|
|
543
|
+
"ended-text"
|
|
544
|
+
];
|
|
545
|
+
}
|
|
546
|
+
connectedCallback() {
|
|
547
|
+
this.ctrl = ve(this, _(this));
|
|
548
|
+
}
|
|
549
|
+
disconnectedCallback() {
|
|
550
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
551
|
+
}
|
|
552
|
+
attributeChangedCallback() {
|
|
553
|
+
this.ctrl?.update(_(this));
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
typeof customElements < "u" && !customElements.get("cos-countdown") && customElements.define(on, sn);
|
|
557
|
+
//#endregion
|
|
558
|
+
//#region src/components/cursorTrail/element/index.ts
|
|
559
|
+
var cn = "cos-cursor-trail";
|
|
560
|
+
function v(e) {
|
|
561
|
+
let t = {};
|
|
562
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("length") && (t.length = Number(e.getAttribute("length"))), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t;
|
|
563
|
+
}
|
|
564
|
+
var ln = class extends HTMLElement {
|
|
565
|
+
ctrl = null;
|
|
566
|
+
static get observedAttributes() {
|
|
567
|
+
return [
|
|
568
|
+
"color",
|
|
569
|
+
"length",
|
|
570
|
+
"width",
|
|
571
|
+
"height",
|
|
572
|
+
"hint"
|
|
573
|
+
];
|
|
574
|
+
}
|
|
575
|
+
connectedCallback() {
|
|
576
|
+
this.ctrl = Se(this, v(this));
|
|
577
|
+
}
|
|
578
|
+
disconnectedCallback() {
|
|
579
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
580
|
+
}
|
|
581
|
+
attributeChangedCallback() {
|
|
582
|
+
this.ctrl?.update(v(this));
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
typeof customElements < "u" && !customElements.get("cos-cursor-trail") && customElements.define(cn, ln);
|
|
586
|
+
//#endregion
|
|
587
|
+
//#region src/components/curvedLoop/element/index.ts
|
|
588
|
+
var un = "cos-curved-loop";
|
|
589
|
+
function y(e) {
|
|
590
|
+
let t = {};
|
|
591
|
+
if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("curve-amount") && (t.curveAmount = Number(e.getAttribute("curve-amount"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("interactive")) {
|
|
592
|
+
let n = e.getAttribute("interactive");
|
|
593
|
+
t.interactive = n !== "false" && n !== "0";
|
|
594
|
+
}
|
|
595
|
+
if (e.hasAttribute("direction")) try {
|
|
596
|
+
t.direction = JSON.parse(e.getAttribute("direction") ?? "null");
|
|
597
|
+
} catch {}
|
|
598
|
+
let n = e._direction;
|
|
599
|
+
return n !== void 0 && (t.direction = n), t;
|
|
600
|
+
}
|
|
601
|
+
var dn = class extends HTMLElement {
|
|
602
|
+
ctrl = null;
|
|
603
|
+
_direction;
|
|
604
|
+
get direction() {
|
|
605
|
+
return this._direction;
|
|
606
|
+
}
|
|
607
|
+
set direction(e) {
|
|
608
|
+
this._direction = e, this.ctrl?.update(y(this));
|
|
609
|
+
}
|
|
610
|
+
static get observedAttributes() {
|
|
611
|
+
return [
|
|
612
|
+
"text",
|
|
613
|
+
"speed",
|
|
614
|
+
"curve-amount",
|
|
615
|
+
"direction",
|
|
616
|
+
"interactive",
|
|
617
|
+
"color",
|
|
618
|
+
"font-size"
|
|
619
|
+
];
|
|
620
|
+
}
|
|
621
|
+
connectedCallback() {
|
|
622
|
+
this.ctrl = we(this, y(this));
|
|
623
|
+
}
|
|
624
|
+
disconnectedCallback() {
|
|
625
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
626
|
+
}
|
|
627
|
+
attributeChangedCallback() {
|
|
628
|
+
this.ctrl?.update(y(this));
|
|
629
|
+
}
|
|
630
|
+
};
|
|
631
|
+
typeof customElements < "u" && !customElements.get("cos-curved-loop") && customElements.define(un, dn);
|
|
632
|
+
//#endregion
|
|
633
|
+
//#region src/components/cyberGrid/element/index.ts
|
|
634
|
+
var fn = "cos-cyber-grid";
|
|
635
|
+
function pn(e) {
|
|
636
|
+
let t = {};
|
|
637
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), t;
|
|
638
|
+
}
|
|
639
|
+
var mn = class extends HTMLElement {
|
|
640
|
+
ctrl = null;
|
|
641
|
+
static get observedAttributes() {
|
|
642
|
+
return [
|
|
643
|
+
"width",
|
|
644
|
+
"height",
|
|
645
|
+
"fill",
|
|
646
|
+
"color",
|
|
647
|
+
"speed"
|
|
648
|
+
];
|
|
649
|
+
}
|
|
650
|
+
connectedCallback() {
|
|
651
|
+
this.ctrl = be(this, pn(this));
|
|
652
|
+
}
|
|
653
|
+
disconnectedCallback() {
|
|
654
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
655
|
+
}
|
|
656
|
+
attributeChangedCallback() {
|
|
657
|
+
this.ctrl?.update(pn(this));
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
typeof customElements < "u" && !customElements.get("cos-cyber-grid") && customElements.define(fn, mn);
|
|
661
|
+
//#endregion
|
|
662
|
+
//#region src/components/dandelionField/element/index.ts
|
|
663
|
+
var hn = "cos-dandelion-field";
|
|
664
|
+
function gn(e) {
|
|
665
|
+
let t = {};
|
|
666
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("plant-count") && (t.plantCount = Number(e.getAttribute("plant-count"))), e.hasAttribute("seed-count") && (t.seedCount = Number(e.getAttribute("seed-count"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
|
|
667
|
+
let n = e.getAttribute("interactive");
|
|
668
|
+
t.interactive = n !== "false" && n !== "0";
|
|
669
|
+
}
|
|
670
|
+
return t;
|
|
671
|
+
}
|
|
672
|
+
var _n = class extends HTMLElement {
|
|
673
|
+
ctrl = null;
|
|
674
|
+
static get observedAttributes() {
|
|
675
|
+
return [
|
|
676
|
+
"width",
|
|
677
|
+
"height",
|
|
678
|
+
"fill",
|
|
679
|
+
"plant-count",
|
|
680
|
+
"seed-count",
|
|
681
|
+
"speed",
|
|
682
|
+
"interactive",
|
|
683
|
+
"aria-label"
|
|
684
|
+
];
|
|
685
|
+
}
|
|
686
|
+
connectedCallback() {
|
|
687
|
+
this.ctrl = ee(this, gn(this));
|
|
688
|
+
}
|
|
689
|
+
disconnectedCallback() {
|
|
690
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
691
|
+
}
|
|
692
|
+
attributeChangedCallback() {
|
|
693
|
+
this.ctrl?.update(gn(this));
|
|
694
|
+
}
|
|
695
|
+
};
|
|
696
|
+
typeof customElements < "u" && !customElements.get("cos-dandelion-field") && customElements.define(hn, _n);
|
|
697
|
+
//#endregion
|
|
698
|
+
//#region src/components/diceRoll/element/index.ts
|
|
699
|
+
var vn = "cos-dice-roll";
|
|
700
|
+
function b(e) {
|
|
701
|
+
let t = {};
|
|
702
|
+
if (e.hasAttribute("roll-text") && (t.rollText = e.getAttribute("roll-text") ?? void 0), e.hasAttribute("rolling-text") && (t.rollingText = e.getAttribute("rolling-text") ?? void 0), e.hasAttribute("result-prefix") && (t.resultPrefix = e.getAttribute("result-prefix") ?? void 0), e.hasAttribute("sides")) try {
|
|
703
|
+
t.sides = JSON.parse(e.getAttribute("sides") ?? "null");
|
|
704
|
+
} catch {}
|
|
705
|
+
let n = e._sides;
|
|
706
|
+
return n !== void 0 && (t.sides = n), t.onRoll = (...t) => {
|
|
707
|
+
e.dispatchEvent(new CustomEvent("roll", {
|
|
708
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
709
|
+
bubbles: !0
|
|
710
|
+
}));
|
|
711
|
+
}, t;
|
|
712
|
+
}
|
|
713
|
+
var yn = class extends HTMLElement {
|
|
714
|
+
ctrl = null;
|
|
715
|
+
_sides;
|
|
716
|
+
get sides() {
|
|
717
|
+
return this._sides;
|
|
718
|
+
}
|
|
719
|
+
set sides(e) {
|
|
720
|
+
this._sides = e, this.ctrl?.update(b(this));
|
|
721
|
+
}
|
|
722
|
+
static get observedAttributes() {
|
|
723
|
+
return [
|
|
724
|
+
"sides",
|
|
725
|
+
"roll-text",
|
|
726
|
+
"rolling-text",
|
|
727
|
+
"result-prefix"
|
|
728
|
+
];
|
|
729
|
+
}
|
|
730
|
+
connectedCallback() {
|
|
731
|
+
this.ctrl = re(this, b(this));
|
|
732
|
+
}
|
|
733
|
+
disconnectedCallback() {
|
|
734
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
735
|
+
}
|
|
736
|
+
attributeChangedCallback() {
|
|
737
|
+
this.ctrl?.update(b(this));
|
|
738
|
+
}
|
|
739
|
+
};
|
|
740
|
+
typeof customElements < "u" && !customElements.get("cos-dice-roll") && customElements.define(vn, yn);
|
|
741
|
+
//#endregion
|
|
742
|
+
//#region src/components/dnaHelix/element/index.ts
|
|
743
|
+
var bn = "cos-dna-helix";
|
|
744
|
+
function xn(e) {
|
|
745
|
+
let t = {};
|
|
746
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t;
|
|
747
|
+
}
|
|
748
|
+
var Sn = class extends HTMLElement {
|
|
749
|
+
ctrl = null;
|
|
750
|
+
static get observedAttributes() {
|
|
751
|
+
return [
|
|
752
|
+
"width",
|
|
753
|
+
"height",
|
|
754
|
+
"speed",
|
|
755
|
+
"color"
|
|
756
|
+
];
|
|
757
|
+
}
|
|
758
|
+
connectedCallback() {
|
|
759
|
+
this.ctrl = t(this, xn(this));
|
|
760
|
+
}
|
|
761
|
+
disconnectedCallback() {
|
|
762
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
763
|
+
}
|
|
764
|
+
attributeChangedCallback() {
|
|
765
|
+
this.ctrl?.update(xn(this));
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
typeof customElements < "u" && !customElements.get("cos-dna-helix") && customElements.define(bn, Sn);
|
|
769
|
+
//#endregion
|
|
770
|
+
//#region src/components/doublePendulum/element/index.ts
|
|
771
|
+
var Cn = "cos-double-pendulum";
|
|
772
|
+
function wn(e) {
|
|
773
|
+
let t = {};
|
|
774
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("color2") && (t.color2 = e.getAttribute("color2") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("trail-length") && (t.trailLength = Number(e.getAttribute("trail-length"))), t;
|
|
775
|
+
}
|
|
776
|
+
var Tn = class extends HTMLElement {
|
|
777
|
+
ctrl = null;
|
|
778
|
+
static get observedAttributes() {
|
|
779
|
+
return [
|
|
780
|
+
"width",
|
|
781
|
+
"height",
|
|
782
|
+
"trail-length",
|
|
783
|
+
"color",
|
|
784
|
+
"color2"
|
|
785
|
+
];
|
|
786
|
+
}
|
|
787
|
+
connectedCallback() {
|
|
788
|
+
this.ctrl = ae(this, wn(this));
|
|
789
|
+
}
|
|
790
|
+
disconnectedCallback() {
|
|
791
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
792
|
+
}
|
|
793
|
+
attributeChangedCallback() {
|
|
794
|
+
this.ctrl?.update(wn(this));
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
typeof customElements < "u" && !customElements.get("cos-double-pendulum") && customElements.define(Cn, Tn);
|
|
798
|
+
//#endregion
|
|
799
|
+
//#region src/components/electricArc/element/index.ts
|
|
800
|
+
var En = "cos-electric-arc";
|
|
801
|
+
function Dn(e) {
|
|
802
|
+
let t = {};
|
|
803
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t;
|
|
804
|
+
}
|
|
805
|
+
var On = class extends HTMLElement {
|
|
806
|
+
ctrl = null;
|
|
807
|
+
static get observedAttributes() {
|
|
808
|
+
return [
|
|
809
|
+
"width",
|
|
810
|
+
"height",
|
|
811
|
+
"color"
|
|
812
|
+
];
|
|
813
|
+
}
|
|
814
|
+
connectedCallback() {
|
|
815
|
+
this.ctrl = ot(this, Dn(this));
|
|
816
|
+
}
|
|
817
|
+
disconnectedCallback() {
|
|
818
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
819
|
+
}
|
|
820
|
+
attributeChangedCallback() {
|
|
821
|
+
this.ctrl?.update(Dn(this));
|
|
822
|
+
}
|
|
823
|
+
};
|
|
824
|
+
typeof customElements < "u" && !customElements.get("cos-electric-arc") && customElements.define(En, On);
|
|
825
|
+
//#endregion
|
|
826
|
+
//#region src/components/fireworks/element/index.ts
|
|
827
|
+
var kn = "cos-fireworks";
|
|
828
|
+
function An(e) {
|
|
829
|
+
let t = {};
|
|
830
|
+
if (e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("auto")) {
|
|
831
|
+
let n = e.getAttribute("auto");
|
|
832
|
+
t.auto = n !== "false" && n !== "0";
|
|
833
|
+
}
|
|
834
|
+
if (e.hasAttribute("interactive")) {
|
|
835
|
+
let n = e.getAttribute("interactive");
|
|
836
|
+
t.interactive = n !== "false" && n !== "0";
|
|
837
|
+
}
|
|
838
|
+
return t.onComplete = (...t) => {
|
|
839
|
+
e.dispatchEvent(new CustomEvent("complete", {
|
|
840
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
841
|
+
bubbles: !0
|
|
842
|
+
}));
|
|
843
|
+
}, t;
|
|
844
|
+
}
|
|
845
|
+
var jn = class extends HTMLElement {
|
|
846
|
+
ctrl = null;
|
|
847
|
+
static get observedAttributes() {
|
|
848
|
+
return [
|
|
849
|
+
"width",
|
|
850
|
+
"height",
|
|
851
|
+
"fill",
|
|
852
|
+
"auto",
|
|
853
|
+
"interactive",
|
|
854
|
+
"hint"
|
|
855
|
+
];
|
|
856
|
+
}
|
|
857
|
+
connectedCallback() {
|
|
858
|
+
this.ctrl = je(this, An(this));
|
|
859
|
+
}
|
|
860
|
+
disconnectedCallback() {
|
|
861
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
862
|
+
}
|
|
863
|
+
attributeChangedCallback() {
|
|
864
|
+
this.ctrl?.update(An(this));
|
|
865
|
+
}
|
|
866
|
+
launch(e) {
|
|
867
|
+
return this.ctrl?.launch(e);
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
typeof customElements < "u" && !customElements.get("cos-fireworks") && customElements.define(kn, jn);
|
|
871
|
+
//#endregion
|
|
872
|
+
//#region src/components/flipCard/element/index.ts
|
|
873
|
+
var Mn = "cos-flip-card";
|
|
874
|
+
function Nn(e) {
|
|
875
|
+
let t = {};
|
|
876
|
+
if (e.hasAttribute("front-title") && (t.frontTitle = e.getAttribute("front-title") ?? void 0), e.hasAttribute("front-subtitle") && (t.frontSubtitle = e.getAttribute("front-subtitle") ?? void 0), e.hasAttribute("back-title") && (t.backTitle = e.getAttribute("back-title") ?? void 0), e.hasAttribute("back-subtitle") && (t.backSubtitle = e.getAttribute("back-subtitle") ?? void 0), e.hasAttribute("flipped")) {
|
|
877
|
+
let n = e.getAttribute("flipped");
|
|
878
|
+
t.flipped = n !== "false" && n !== "0";
|
|
879
|
+
} else t.flipped = void 0;
|
|
880
|
+
if (e.hasAttribute("default-flipped")) {
|
|
881
|
+
let n = e.getAttribute("default-flipped");
|
|
882
|
+
t.defaultFlipped = n !== "false" && n !== "0";
|
|
883
|
+
}
|
|
884
|
+
if (e.hasAttribute("disabled")) {
|
|
885
|
+
let n = e.getAttribute("disabled");
|
|
886
|
+
t.disabled = n !== "false" && n !== "0";
|
|
887
|
+
}
|
|
888
|
+
return t.onReveal = (...t) => {
|
|
889
|
+
e.dispatchEvent(new CustomEvent("reveal", {
|
|
890
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
891
|
+
bubbles: !0
|
|
892
|
+
}));
|
|
893
|
+
}, t.onFlipChange = (...t) => {
|
|
894
|
+
e.dispatchEvent(new CustomEvent("flip-change", {
|
|
895
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
896
|
+
bubbles: !0
|
|
897
|
+
}));
|
|
898
|
+
}, t;
|
|
899
|
+
}
|
|
900
|
+
var Pn = class extends HTMLElement {
|
|
901
|
+
ctrl = null;
|
|
902
|
+
static get observedAttributes() {
|
|
903
|
+
return [
|
|
904
|
+
"front-title",
|
|
905
|
+
"front-subtitle",
|
|
906
|
+
"back-title",
|
|
907
|
+
"back-subtitle",
|
|
908
|
+
"flipped",
|
|
909
|
+
"default-flipped",
|
|
910
|
+
"disabled"
|
|
911
|
+
];
|
|
912
|
+
}
|
|
913
|
+
connectedCallback() {
|
|
914
|
+
this.ctrl = wt(this, Nn(this));
|
|
915
|
+
}
|
|
916
|
+
disconnectedCallback() {
|
|
917
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
918
|
+
}
|
|
919
|
+
attributeChangedCallback() {
|
|
920
|
+
this.ctrl?.update(Nn(this));
|
|
921
|
+
}
|
|
922
|
+
flip() {
|
|
923
|
+
return this.ctrl?.flip();
|
|
924
|
+
}
|
|
925
|
+
reset() {
|
|
926
|
+
return this.ctrl?.reset();
|
|
927
|
+
}
|
|
928
|
+
};
|
|
929
|
+
typeof customElements < "u" && !customElements.get("cos-flip-card") && customElements.define(Mn, Pn);
|
|
930
|
+
//#endregion
|
|
931
|
+
//#region src/components/flipCounter/element/index.ts
|
|
932
|
+
var Fn = "cos-flip-counter";
|
|
933
|
+
function In(e) {
|
|
934
|
+
let t = {};
|
|
935
|
+
if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("value") && (t.value = Number(e.getAttribute("value"))), e.hasAttribute("digits") && (t.digits = Number(e.getAttribute("digits"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("auto-interval") && (t.autoInterval = Number(e.getAttribute("auto-interval"))), e.hasAttribute("auto")) {
|
|
936
|
+
let n = e.getAttribute("auto");
|
|
937
|
+
t.auto = n !== "false" && n !== "0";
|
|
938
|
+
}
|
|
939
|
+
return t;
|
|
940
|
+
}
|
|
941
|
+
var Ln = class extends HTMLElement {
|
|
942
|
+
ctrl = null;
|
|
943
|
+
static get observedAttributes() {
|
|
944
|
+
return [
|
|
945
|
+
"value",
|
|
946
|
+
"digits",
|
|
947
|
+
"color",
|
|
948
|
+
"duration",
|
|
949
|
+
"auto",
|
|
950
|
+
"auto-interval"
|
|
951
|
+
];
|
|
952
|
+
}
|
|
953
|
+
connectedCallback() {
|
|
954
|
+
this.ctrl = te(this, In(this));
|
|
955
|
+
}
|
|
956
|
+
disconnectedCallback() {
|
|
957
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
958
|
+
}
|
|
959
|
+
attributeChangedCallback() {
|
|
960
|
+
this.ctrl?.update(In(this));
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
typeof customElements < "u" && !customElements.get("cos-flip-counter") && customElements.define(Fn, Ln);
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region src/components/fuzzyText/element/index.ts
|
|
966
|
+
var Rn = "cos-fuzzy-text";
|
|
967
|
+
function zn(e) {
|
|
968
|
+
let t = {};
|
|
969
|
+
return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("font-weight") && (t.fontWeight = Number(e.getAttribute("font-weight"))), e.hasAttribute("base-intensity") && (t.baseIntensity = Number(e.getAttribute("base-intensity"))), e.hasAttribute("hover-intensity") && (t.hoverIntensity = Number(e.getAttribute("hover-intensity"))), e.hasAttribute("fuzz-range") && (t.fuzzRange = Number(e.getAttribute("fuzz-range"))), t.enableHover = e.hasAttribute("enable-hover"), t;
|
|
970
|
+
}
|
|
971
|
+
var Bn = class extends HTMLElement {
|
|
972
|
+
ctrl = null;
|
|
973
|
+
static get observedAttributes() {
|
|
974
|
+
return [
|
|
975
|
+
"text",
|
|
976
|
+
"font-size",
|
|
977
|
+
"font-weight",
|
|
978
|
+
"color",
|
|
979
|
+
"base-intensity",
|
|
980
|
+
"hover-intensity",
|
|
981
|
+
"enable-hover",
|
|
982
|
+
"fuzz-range"
|
|
983
|
+
];
|
|
984
|
+
}
|
|
985
|
+
connectedCallback() {
|
|
986
|
+
this.ctrl = ke(this, zn(this));
|
|
987
|
+
}
|
|
988
|
+
disconnectedCallback() {
|
|
989
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
990
|
+
}
|
|
991
|
+
attributeChangedCallback() {
|
|
992
|
+
this.ctrl?.update(zn(this));
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
typeof customElements < "u" && !customElements.get("cos-fuzzy-text") && customElements.define(Rn, Bn);
|
|
996
|
+
//#endregion
|
|
997
|
+
//#region src/components/gameOfLife/element/index.ts
|
|
998
|
+
var Vn = "cos-game-of-life";
|
|
999
|
+
function x(e) {
|
|
1000
|
+
let t = {};
|
|
1001
|
+
if (e.hasAttribute("alive-color") && (t.aliveColor = e.getAttribute("alive-color") ?? void 0), e.hasAttribute("grid-color") && (t.gridColor = e.getAttribute("grid-color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("cell-size") && (t.cellSize = Number(e.getAttribute("cell-size"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("density") && (t.density = Number(e.getAttribute("density"))), e.hasAttribute("labels")) try {
|
|
1002
|
+
t.labels = JSON.parse(e.getAttribute("labels") ?? "null");
|
|
1003
|
+
} catch {}
|
|
1004
|
+
let n = e._labels;
|
|
1005
|
+
return n !== void 0 && (t.labels = n), t;
|
|
1006
|
+
}
|
|
1007
|
+
var Hn = class extends HTMLElement {
|
|
1008
|
+
ctrl = null;
|
|
1009
|
+
_labels;
|
|
1010
|
+
get labels() {
|
|
1011
|
+
return this._labels;
|
|
1012
|
+
}
|
|
1013
|
+
set labels(e) {
|
|
1014
|
+
this._labels = e, this.ctrl?.update(x(this));
|
|
1015
|
+
}
|
|
1016
|
+
static get observedAttributes() {
|
|
1017
|
+
return [
|
|
1018
|
+
"width",
|
|
1019
|
+
"height",
|
|
1020
|
+
"cell-size",
|
|
1021
|
+
"speed",
|
|
1022
|
+
"density",
|
|
1023
|
+
"alive-color",
|
|
1024
|
+
"grid-color",
|
|
1025
|
+
"labels"
|
|
1026
|
+
];
|
|
1027
|
+
}
|
|
1028
|
+
connectedCallback() {
|
|
1029
|
+
this.ctrl = Ge(this, x(this));
|
|
1030
|
+
}
|
|
1031
|
+
disconnectedCallback() {
|
|
1032
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1033
|
+
}
|
|
1034
|
+
attributeChangedCallback() {
|
|
1035
|
+
this.ctrl?.update(x(this));
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
typeof customElements < "u" && !customElements.get("cos-game-of-life") && customElements.define(Vn, Hn);
|
|
1039
|
+
//#endregion
|
|
1040
|
+
//#region src/components/glitchText/element/index.ts
|
|
1041
|
+
var Un = "cos-glitch-text";
|
|
1042
|
+
function Wn(e) {
|
|
1043
|
+
let t = {};
|
|
1044
|
+
return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("glitch-color1") && (t.glitchColor1 = e.getAttribute("glitch-color1") ?? void 0), e.hasAttribute("glitch-color2") && (t.glitchColor2 = e.getAttribute("glitch-color2") ?? void 0), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t;
|
|
1045
|
+
}
|
|
1046
|
+
var Gn = class extends HTMLElement {
|
|
1047
|
+
ctrl = null;
|
|
1048
|
+
static get observedAttributes() {
|
|
1049
|
+
return [
|
|
1050
|
+
"text",
|
|
1051
|
+
"color",
|
|
1052
|
+
"glitch-color1",
|
|
1053
|
+
"glitch-color2",
|
|
1054
|
+
"font-size"
|
|
1055
|
+
];
|
|
1056
|
+
}
|
|
1057
|
+
connectedCallback() {
|
|
1058
|
+
this.ctrl = Ot(this, Wn(this));
|
|
1059
|
+
}
|
|
1060
|
+
disconnectedCallback() {
|
|
1061
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1062
|
+
}
|
|
1063
|
+
attributeChangedCallback() {
|
|
1064
|
+
this.ctrl?.update(Wn(this));
|
|
1065
|
+
}
|
|
1066
|
+
};
|
|
1067
|
+
typeof customElements < "u" && !customElements.get("cos-glitch-text") && customElements.define(Un, Gn);
|
|
1068
|
+
//#endregion
|
|
1069
|
+
//#region src/components/gradientFlow/element/index.ts
|
|
1070
|
+
var Kn = "cos-gradient-flow";
|
|
1071
|
+
function S(e) {
|
|
1072
|
+
let t = {};
|
|
1073
|
+
if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("colors")) try {
|
|
1074
|
+
t.colors = JSON.parse(e.getAttribute("colors") ?? "null");
|
|
1075
|
+
} catch {}
|
|
1076
|
+
let n = e._colors;
|
|
1077
|
+
return n !== void 0 && (t.colors = n), t;
|
|
1078
|
+
}
|
|
1079
|
+
var qn = class extends HTMLElement {
|
|
1080
|
+
ctrl = null;
|
|
1081
|
+
_colors;
|
|
1082
|
+
get colors() {
|
|
1083
|
+
return this._colors;
|
|
1084
|
+
}
|
|
1085
|
+
set colors(e) {
|
|
1086
|
+
this._colors = e, this.ctrl?.update(S(this));
|
|
1087
|
+
}
|
|
1088
|
+
static get observedAttributes() {
|
|
1089
|
+
return [
|
|
1090
|
+
"text",
|
|
1091
|
+
"colors",
|
|
1092
|
+
"font-size"
|
|
1093
|
+
];
|
|
1094
|
+
}
|
|
1095
|
+
connectedCallback() {
|
|
1096
|
+
this.ctrl = Et(this, S(this));
|
|
1097
|
+
}
|
|
1098
|
+
disconnectedCallback() {
|
|
1099
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1100
|
+
}
|
|
1101
|
+
attributeChangedCallback() {
|
|
1102
|
+
this.ctrl?.update(S(this));
|
|
1103
|
+
}
|
|
1104
|
+
};
|
|
1105
|
+
typeof customElements < "u" && !customElements.get("cos-gradient-flow") && customElements.define(Kn, qn);
|
|
1106
|
+
//#endregion
|
|
1107
|
+
//#region src/components/gravityBalls/element/index.ts
|
|
1108
|
+
var Jn = "cos-gravity-balls";
|
|
1109
|
+
function Yn(e) {
|
|
1110
|
+
let t = {};
|
|
1111
|
+
return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("ball-count") && (t.ballCount = Number(e.getAttribute("ball-count"))), t;
|
|
1112
|
+
}
|
|
1113
|
+
var Xn = class extends HTMLElement {
|
|
1114
|
+
ctrl = null;
|
|
1115
|
+
static get observedAttributes() {
|
|
1116
|
+
return [
|
|
1117
|
+
"width",
|
|
1118
|
+
"height",
|
|
1119
|
+
"ball-count"
|
|
1120
|
+
];
|
|
1121
|
+
}
|
|
1122
|
+
connectedCallback() {
|
|
1123
|
+
this.ctrl = St(this, Yn(this));
|
|
1124
|
+
}
|
|
1125
|
+
disconnectedCallback() {
|
|
1126
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1127
|
+
}
|
|
1128
|
+
attributeChangedCallback() {
|
|
1129
|
+
this.ctrl?.update(Yn(this));
|
|
1130
|
+
}
|
|
1131
|
+
};
|
|
1132
|
+
typeof customElements < "u" && !customElements.get("cos-gravity-balls") && customElements.define(Jn, Xn);
|
|
1133
|
+
//#endregion
|
|
1134
|
+
//#region src/components/holographicCard/element/index.ts
|
|
1135
|
+
var Zn = "cos-holographic-card";
|
|
1136
|
+
function Qn(e) {
|
|
1137
|
+
let t = {};
|
|
1138
|
+
return e.hasAttribute("title") && (t.title = e.getAttribute("title") ?? void 0), e.hasAttribute("subtitle") && (t.subtitle = e.getAttribute("subtitle") ?? void 0), e.hasAttribute("image") && (t.image = e.getAttribute("image") ?? void 0), t;
|
|
1139
|
+
}
|
|
1140
|
+
var $n = class extends HTMLElement {
|
|
1141
|
+
ctrl = null;
|
|
1142
|
+
static get observedAttributes() {
|
|
1143
|
+
return [
|
|
1144
|
+
"title",
|
|
1145
|
+
"subtitle",
|
|
1146
|
+
"image"
|
|
1147
|
+
];
|
|
1148
|
+
}
|
|
1149
|
+
connectedCallback() {
|
|
1150
|
+
this.ctrl = He(this, Qn(this));
|
|
1151
|
+
}
|
|
1152
|
+
disconnectedCallback() {
|
|
1153
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1154
|
+
}
|
|
1155
|
+
attributeChangedCallback() {
|
|
1156
|
+
this.ctrl?.update(Qn(this));
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
typeof customElements < "u" && !customElements.get("cos-holographic-card") && customElements.define(Zn, $n);
|
|
1160
|
+
//#endregion
|
|
1161
|
+
//#region src/components/inkBloom/element/index.ts
|
|
1162
|
+
var er = "cos-ink-bloom";
|
|
1163
|
+
function tr(e) {
|
|
1164
|
+
let t = {};
|
|
1165
|
+
if (e.hasAttribute("ink-color") && (t.inkColor = e.getAttribute("ink-color") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
|
|
1166
|
+
let n = e.getAttribute("interactive");
|
|
1167
|
+
t.interactive = n !== "false" && n !== "0";
|
|
1168
|
+
}
|
|
1169
|
+
return t;
|
|
1170
|
+
}
|
|
1171
|
+
var nr = class extends HTMLElement {
|
|
1172
|
+
ctrl = null;
|
|
1173
|
+
static get observedAttributes() {
|
|
1174
|
+
return [
|
|
1175
|
+
"width",
|
|
1176
|
+
"height",
|
|
1177
|
+
"fill",
|
|
1178
|
+
"ink-color",
|
|
1179
|
+
"speed",
|
|
1180
|
+
"interactive",
|
|
1181
|
+
"aria-label"
|
|
1182
|
+
];
|
|
1183
|
+
}
|
|
1184
|
+
connectedCallback() {
|
|
1185
|
+
this.ctrl = Oe(this, tr(this));
|
|
1186
|
+
}
|
|
1187
|
+
disconnectedCallback() {
|
|
1188
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1189
|
+
}
|
|
1190
|
+
attributeChangedCallback() {
|
|
1191
|
+
this.ctrl?.update(tr(this));
|
|
1192
|
+
}
|
|
1193
|
+
};
|
|
1194
|
+
typeof customElements < "u" && !customElements.get("cos-ink-bloom") && customElements.define(er, nr);
|
|
1195
|
+
//#endregion
|
|
1196
|
+
//#region src/components/lavaBubble/element/index.ts
|
|
1197
|
+
var rr = "cos-lava-bubble";
|
|
1198
|
+
function ir(e) {
|
|
1199
|
+
let t = {};
|
|
1200
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("heat") && (t.heat = Number(e.getAttribute("heat"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("activity") && (t.activity = Number(e.getAttribute("activity"))), t.fill = e.hasAttribute("fill"), t.autoSpawn = e.hasAttribute("auto-spawn"), e.hasAttribute("interactive")) {
|
|
1201
|
+
let n = e.getAttribute("interactive");
|
|
1202
|
+
t.interactive = n !== "false" && n !== "0";
|
|
1203
|
+
}
|
|
1204
|
+
return t;
|
|
1205
|
+
}
|
|
1206
|
+
var ar = class extends HTMLElement {
|
|
1207
|
+
ctrl = null;
|
|
1208
|
+
static get observedAttributes() {
|
|
1209
|
+
return [
|
|
1210
|
+
"width",
|
|
1211
|
+
"height",
|
|
1212
|
+
"fill",
|
|
1213
|
+
"heat",
|
|
1214
|
+
"speed",
|
|
1215
|
+
"auto-spawn",
|
|
1216
|
+
"activity",
|
|
1217
|
+
"interactive",
|
|
1218
|
+
"aria-label"
|
|
1219
|
+
];
|
|
1220
|
+
}
|
|
1221
|
+
connectedCallback() {
|
|
1222
|
+
this.ctrl = jt(this, ir(this));
|
|
1223
|
+
}
|
|
1224
|
+
disconnectedCallback() {
|
|
1225
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1226
|
+
}
|
|
1227
|
+
attributeChangedCallback() {
|
|
1228
|
+
this.ctrl?.update(ir(this));
|
|
1229
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
typeof customElements < "u" && !customElements.get("cos-lava-bubble") && customElements.define(rr, ar);
|
|
1232
|
+
//#endregion
|
|
1233
|
+
//#region src/components/liquidGlass/element/index.ts
|
|
1234
|
+
var or = "cos-liquid-glass";
|
|
1235
|
+
function C(e) {
|
|
1236
|
+
let t = {};
|
|
1237
|
+
if (e.hasAttribute("default-content") && (t.defaultContent = e.getAttribute("default-content") ?? void 0), e.hasAttribute("blur") && (t.blur = Number(e.getAttribute("blur"))), e.hasAttribute("border-radius") && (t.borderRadius = Number(e.getAttribute("border-radius"))), e.hasAttribute("slot-element")) try {
|
|
1238
|
+
t.slotElement = JSON.parse(e.getAttribute("slot-element") ?? "null");
|
|
1239
|
+
} catch {}
|
|
1240
|
+
let n = e._slotElement;
|
|
1241
|
+
return n !== void 0 && (t.slotElement = n), t;
|
|
1242
|
+
}
|
|
1243
|
+
var sr = class extends HTMLElement {
|
|
1244
|
+
ctrl = null;
|
|
1245
|
+
_slotElement;
|
|
1246
|
+
get slotElement() {
|
|
1247
|
+
return this._slotElement;
|
|
1248
|
+
}
|
|
1249
|
+
set slotElement(e) {
|
|
1250
|
+
this._slotElement = e, this.ctrl?.update(C(this));
|
|
1251
|
+
}
|
|
1252
|
+
static get observedAttributes() {
|
|
1253
|
+
return [
|
|
1254
|
+
"blur",
|
|
1255
|
+
"border-radius",
|
|
1256
|
+
"slot-element",
|
|
1257
|
+
"default-content"
|
|
1258
|
+
];
|
|
1259
|
+
}
|
|
1260
|
+
connectedCallback() {
|
|
1261
|
+
this.ctrl = lt(this, C(this));
|
|
1262
|
+
}
|
|
1263
|
+
disconnectedCallback() {
|
|
1264
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1265
|
+
}
|
|
1266
|
+
attributeChangedCallback() {
|
|
1267
|
+
this.ctrl?.update(C(this));
|
|
1268
|
+
}
|
|
1269
|
+
getSlot() {
|
|
1270
|
+
return this.ctrl?.getSlot();
|
|
1271
|
+
}
|
|
1272
|
+
};
|
|
1273
|
+
typeof customElements < "u" && !customElements.get("cos-liquid-glass") && customElements.define(or, sr);
|
|
1274
|
+
//#endregion
|
|
1275
|
+
//#region src/components/liquidProgress/element/index.ts
|
|
1276
|
+
var cr = "cos-liquid-progress";
|
|
1277
|
+
function lr(e) {
|
|
1278
|
+
let t = {};
|
|
1279
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("value") && (t.value = Number(e.getAttribute("value"))), e.hasAttribute("max") && (t.max = Number(e.getAttribute("max"))), e.hasAttribute("size") && (t.size = Number(e.getAttribute("size"))), t;
|
|
1280
|
+
}
|
|
1281
|
+
var ur = class extends HTMLElement {
|
|
1282
|
+
ctrl = null;
|
|
1283
|
+
static get observedAttributes() {
|
|
1284
|
+
return [
|
|
1285
|
+
"value",
|
|
1286
|
+
"max",
|
|
1287
|
+
"size",
|
|
1288
|
+
"color"
|
|
1289
|
+
];
|
|
1290
|
+
}
|
|
1291
|
+
connectedCallback() {
|
|
1292
|
+
this.ctrl = $e(this, lr(this));
|
|
1293
|
+
}
|
|
1294
|
+
disconnectedCallback() {
|
|
1295
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1296
|
+
}
|
|
1297
|
+
attributeChangedCallback() {
|
|
1298
|
+
this.ctrl?.update(lr(this));
|
|
1299
|
+
}
|
|
1300
|
+
};
|
|
1301
|
+
typeof customElements < "u" && !customElements.get("cos-liquid-progress") && customElements.define(cr, ur);
|
|
1302
|
+
//#endregion
|
|
1303
|
+
//#region src/components/lorenzAttractor/element/index.ts
|
|
1304
|
+
var dr = "cos-lorenz-attractor";
|
|
1305
|
+
function fr(e) {
|
|
1306
|
+
let t = {};
|
|
1307
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("point-count") && (t.pointCount = Number(e.getAttribute("point-count"))), t;
|
|
1308
|
+
}
|
|
1309
|
+
var pr = class extends HTMLElement {
|
|
1310
|
+
ctrl = null;
|
|
1311
|
+
static get observedAttributes() {
|
|
1312
|
+
return [
|
|
1313
|
+
"width",
|
|
1314
|
+
"height",
|
|
1315
|
+
"speed",
|
|
1316
|
+
"color",
|
|
1317
|
+
"point-count"
|
|
1318
|
+
];
|
|
1319
|
+
}
|
|
1320
|
+
connectedCallback() {
|
|
1321
|
+
this.ctrl = tt(this, fr(this));
|
|
1322
|
+
}
|
|
1323
|
+
disconnectedCallback() {
|
|
1324
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1325
|
+
}
|
|
1326
|
+
attributeChangedCallback() {
|
|
1327
|
+
this.ctrl?.update(fr(this));
|
|
1328
|
+
}
|
|
1329
|
+
};
|
|
1330
|
+
typeof customElements < "u" && !customElements.get("cos-lorenz-attractor") && customElements.define(dr, pr);
|
|
1331
|
+
//#endregion
|
|
1332
|
+
//#region src/components/magneticButton/element/index.ts
|
|
1333
|
+
var mr = "cos-magnetic-button";
|
|
1334
|
+
function w(e) {
|
|
1335
|
+
let t = {};
|
|
1336
|
+
if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("default-content") && (t.defaultContent = e.getAttribute("default-content") ?? void 0), e.hasAttribute("strength") && (t.strength = Number(e.getAttribute("strength"))), e.hasAttribute("slot-element")) try {
|
|
1337
|
+
t.slotElement = JSON.parse(e.getAttribute("slot-element") ?? "null");
|
|
1338
|
+
} catch {}
|
|
1339
|
+
let n = e._slotElement;
|
|
1340
|
+
return n !== void 0 && (t.slotElement = n), t;
|
|
1341
|
+
}
|
|
1342
|
+
var hr = class extends HTMLElement {
|
|
1343
|
+
ctrl = null;
|
|
1344
|
+
_slotElement;
|
|
1345
|
+
get slotElement() {
|
|
1346
|
+
return this._slotElement;
|
|
1347
|
+
}
|
|
1348
|
+
set slotElement(e) {
|
|
1349
|
+
this._slotElement = e, this.ctrl?.update(w(this));
|
|
1350
|
+
}
|
|
1351
|
+
static get observedAttributes() {
|
|
1352
|
+
return [
|
|
1353
|
+
"strength",
|
|
1354
|
+
"color",
|
|
1355
|
+
"slot-element",
|
|
1356
|
+
"default-content"
|
|
1357
|
+
];
|
|
1358
|
+
}
|
|
1359
|
+
connectedCallback() {
|
|
1360
|
+
this.ctrl = mt(this, w(this));
|
|
1361
|
+
}
|
|
1362
|
+
disconnectedCallback() {
|
|
1363
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1364
|
+
}
|
|
1365
|
+
attributeChangedCallback() {
|
|
1366
|
+
this.ctrl?.update(w(this));
|
|
1367
|
+
}
|
|
1368
|
+
getSlot() {
|
|
1369
|
+
return this.ctrl?.getSlot();
|
|
1370
|
+
}
|
|
1371
|
+
};
|
|
1372
|
+
typeof customElements < "u" && !customElements.get("cos-magnetic-button") && customElements.define(mr, hr);
|
|
1373
|
+
//#endregion
|
|
1374
|
+
//#region src/components/matrixRain/element/index.ts
|
|
1375
|
+
var gr = "cos-matrix-rain";
|
|
1376
|
+
function _r(e) {
|
|
1377
|
+
let t = {};
|
|
1378
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("title") && (t.title = e.getAttribute("title") ?? void 0), e.hasAttribute("subtitle") && (t.subtitle = e.getAttribute("subtitle") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("density") && (t.density = Number(e.getAttribute("density"))), t.fill = e.hasAttribute("fill"), t.showOverlay = e.hasAttribute("show-overlay"), t;
|
|
1379
|
+
}
|
|
1380
|
+
var vr = class extends HTMLElement {
|
|
1381
|
+
ctrl = null;
|
|
1382
|
+
static get observedAttributes() {
|
|
1383
|
+
return [
|
|
1384
|
+
"width",
|
|
1385
|
+
"height",
|
|
1386
|
+
"fill",
|
|
1387
|
+
"density",
|
|
1388
|
+
"color",
|
|
1389
|
+
"show-overlay",
|
|
1390
|
+
"title",
|
|
1391
|
+
"subtitle"
|
|
1392
|
+
];
|
|
1393
|
+
}
|
|
1394
|
+
connectedCallback() {
|
|
1395
|
+
this.ctrl = Ze(this, _r(this));
|
|
1396
|
+
}
|
|
1397
|
+
disconnectedCallback() {
|
|
1398
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1399
|
+
}
|
|
1400
|
+
attributeChangedCallback() {
|
|
1401
|
+
this.ctrl?.update(_r(this));
|
|
1402
|
+
}
|
|
1403
|
+
};
|
|
1404
|
+
typeof customElements < "u" && !customElements.get("cos-matrix-rain") && customElements.define(gr, vr);
|
|
1405
|
+
//#endregion
|
|
1406
|
+
//#region src/components/mazeGenerator/element/index.ts
|
|
1407
|
+
var yr = "cos-maze-generator";
|
|
1408
|
+
function br(e) {
|
|
1409
|
+
let t = {};
|
|
1410
|
+
return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("cell-size") && (t.cellSize = Number(e.getAttribute("cell-size"))), t.onGenerated = (...t) => {
|
|
1411
|
+
e.dispatchEvent(new CustomEvent("generated", {
|
|
1412
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
1413
|
+
bubbles: !0
|
|
1414
|
+
}));
|
|
1415
|
+
}, t;
|
|
1416
|
+
}
|
|
1417
|
+
var xr = class extends HTMLElement {
|
|
1418
|
+
ctrl = null;
|
|
1419
|
+
static get observedAttributes() {
|
|
1420
|
+
return [
|
|
1421
|
+
"width",
|
|
1422
|
+
"height",
|
|
1423
|
+
"cell-size"
|
|
1424
|
+
];
|
|
1425
|
+
}
|
|
1426
|
+
connectedCallback() {
|
|
1427
|
+
this.ctrl = xt(this, br(this));
|
|
1428
|
+
}
|
|
1429
|
+
disconnectedCallback() {
|
|
1430
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1431
|
+
}
|
|
1432
|
+
attributeChangedCallback() {
|
|
1433
|
+
this.ctrl?.update(br(this));
|
|
1434
|
+
}
|
|
1435
|
+
};
|
|
1436
|
+
typeof customElements < "u" && !customElements.get("cos-maze-generator") && customElements.define(yr, xr);
|
|
1437
|
+
//#endregion
|
|
1438
|
+
//#region src/components/metaballPool/element/index.ts
|
|
1439
|
+
var Sr = "cos-metaball-pool";
|
|
1440
|
+
function Cr(e) {
|
|
1441
|
+
let t = {};
|
|
1442
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("ball-count") && (t.ballCount = Number(e.getAttribute("ball-count"))), t;
|
|
1443
|
+
}
|
|
1444
|
+
var wr = class extends HTMLElement {
|
|
1445
|
+
ctrl = null;
|
|
1446
|
+
static get observedAttributes() {
|
|
1447
|
+
return [
|
|
1448
|
+
"width",
|
|
1449
|
+
"height",
|
|
1450
|
+
"ball-count",
|
|
1451
|
+
"color"
|
|
1452
|
+
];
|
|
1453
|
+
}
|
|
1454
|
+
connectedCallback() {
|
|
1455
|
+
this.ctrl = Je(this, Cr(this));
|
|
1456
|
+
}
|
|
1457
|
+
disconnectedCallback() {
|
|
1458
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1459
|
+
}
|
|
1460
|
+
attributeChangedCallback() {
|
|
1461
|
+
this.ctrl?.update(Cr(this));
|
|
1462
|
+
}
|
|
1463
|
+
};
|
|
1464
|
+
typeof customElements < "u" && !customElements.get("cos-metaball-pool") && customElements.define(Sr, wr);
|
|
1465
|
+
//#endregion
|
|
1466
|
+
//#region src/components/meteorRain/element/index.ts
|
|
1467
|
+
var Tr = "cos-meteor-rain";
|
|
1468
|
+
function Er(e) {
|
|
1469
|
+
let t = {};
|
|
1470
|
+
return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("meteor-count") && (t.meteorCount = Number(e.getAttribute("meteor-count"))), t.fill = e.hasAttribute("fill"), t;
|
|
1471
|
+
}
|
|
1472
|
+
var Dr = class extends HTMLElement {
|
|
1473
|
+
ctrl = null;
|
|
1474
|
+
static get observedAttributes() {
|
|
1475
|
+
return [
|
|
1476
|
+
"width",
|
|
1477
|
+
"height",
|
|
1478
|
+
"fill",
|
|
1479
|
+
"meteor-count"
|
|
1480
|
+
];
|
|
1481
|
+
}
|
|
1482
|
+
connectedCallback() {
|
|
1483
|
+
this.ctrl = ct(this, Er(this));
|
|
1484
|
+
}
|
|
1485
|
+
disconnectedCallback() {
|
|
1486
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1487
|
+
}
|
|
1488
|
+
attributeChangedCallback() {
|
|
1489
|
+
this.ctrl?.update(Er(this));
|
|
1490
|
+
}
|
|
1491
|
+
};
|
|
1492
|
+
typeof customElements < "u" && !customElements.get("cos-meteor-rain") && customElements.define(Tr, Dr);
|
|
1493
|
+
//#endregion
|
|
1494
|
+
//#region src/components/neonText/element/index.ts
|
|
1495
|
+
var Or = "cos-neon-text";
|
|
1496
|
+
function T(e) {
|
|
1497
|
+
let t = {};
|
|
1498
|
+
return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t.flicker = e.hasAttribute("flicker"), t;
|
|
1499
|
+
}
|
|
1500
|
+
var kr = class extends HTMLElement {
|
|
1501
|
+
ctrl = null;
|
|
1502
|
+
static get observedAttributes() {
|
|
1503
|
+
return [
|
|
1504
|
+
"text",
|
|
1505
|
+
"color",
|
|
1506
|
+
"font-size",
|
|
1507
|
+
"flicker"
|
|
1508
|
+
];
|
|
1509
|
+
}
|
|
1510
|
+
connectedCallback() {
|
|
1511
|
+
this.ctrl = vt(this, T(this));
|
|
1512
|
+
}
|
|
1513
|
+
disconnectedCallback() {
|
|
1514
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1515
|
+
}
|
|
1516
|
+
attributeChangedCallback() {
|
|
1517
|
+
this.ctrl?.update(T(this));
|
|
1518
|
+
}
|
|
1519
|
+
};
|
|
1520
|
+
typeof customElements < "u" && !customElements.get("cos-neon-text") && customElements.define(Or, kr);
|
|
1521
|
+
//#endregion
|
|
1522
|
+
//#region src/components/networkGraph/element/index.ts
|
|
1523
|
+
var Ar = "cos-network-graph";
|
|
1524
|
+
function E(e) {
|
|
1525
|
+
let t = {};
|
|
1526
|
+
if (e.hasAttribute("link-color") && (t.linkColor = e.getAttribute("link-color") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("node-radius") && (t.nodeRadius = Number(e.getAttribute("node-radius"))), e.hasAttribute("nodes")) try {
|
|
1527
|
+
t.nodes = JSON.parse(e.getAttribute("nodes") ?? "null");
|
|
1528
|
+
} catch {}
|
|
1529
|
+
let n = e._nodes;
|
|
1530
|
+
if (n !== void 0 && (t.nodes = n), e.hasAttribute("edges")) try {
|
|
1531
|
+
t.edges = JSON.parse(e.getAttribute("edges") ?? "null");
|
|
1532
|
+
} catch {}
|
|
1533
|
+
let r = e._edges;
|
|
1534
|
+
return r !== void 0 && (t.edges = r), t;
|
|
1535
|
+
}
|
|
1536
|
+
var jr = class extends HTMLElement {
|
|
1537
|
+
ctrl = null;
|
|
1538
|
+
_nodes;
|
|
1539
|
+
get nodes() {
|
|
1540
|
+
return this._nodes;
|
|
1541
|
+
}
|
|
1542
|
+
set nodes(e) {
|
|
1543
|
+
this._nodes = e, this.ctrl?.update(E(this));
|
|
1544
|
+
}
|
|
1545
|
+
_edges;
|
|
1546
|
+
get edges() {
|
|
1547
|
+
return this._edges;
|
|
1548
|
+
}
|
|
1549
|
+
set edges(e) {
|
|
1550
|
+
this._edges = e, this.ctrl?.update(E(this));
|
|
1551
|
+
}
|
|
1552
|
+
static get observedAttributes() {
|
|
1553
|
+
return [
|
|
1554
|
+
"width",
|
|
1555
|
+
"height",
|
|
1556
|
+
"nodes",
|
|
1557
|
+
"edges",
|
|
1558
|
+
"link-color",
|
|
1559
|
+
"node-radius",
|
|
1560
|
+
"hint"
|
|
1561
|
+
];
|
|
1562
|
+
}
|
|
1563
|
+
connectedCallback() {
|
|
1564
|
+
this.ctrl = qe(this, E(this));
|
|
1565
|
+
}
|
|
1566
|
+
disconnectedCallback() {
|
|
1567
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1568
|
+
}
|
|
1569
|
+
attributeChangedCallback() {
|
|
1570
|
+
this.ctrl?.update(E(this));
|
|
1571
|
+
}
|
|
1572
|
+
};
|
|
1573
|
+
typeof customElements < "u" && !customElements.get("cos-network-graph") && customElements.define(Ar, jr);
|
|
1574
|
+
//#endregion
|
|
1575
|
+
//#region src/components/newtonCradle/element/index.ts
|
|
1576
|
+
var Mr = "cos-newton-cradle";
|
|
1577
|
+
function Nr(e) {
|
|
1578
|
+
let t = {};
|
|
1579
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("ball-count") && (t.ballCount = Number(e.getAttribute("ball-count"))), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t;
|
|
1580
|
+
}
|
|
1581
|
+
var Pr = class extends HTMLElement {
|
|
1582
|
+
ctrl = null;
|
|
1583
|
+
static get observedAttributes() {
|
|
1584
|
+
return [
|
|
1585
|
+
"ball-count",
|
|
1586
|
+
"color",
|
|
1587
|
+
"width",
|
|
1588
|
+
"height"
|
|
1589
|
+
];
|
|
1590
|
+
}
|
|
1591
|
+
connectedCallback() {
|
|
1592
|
+
this.ctrl = pt(this, Nr(this));
|
|
1593
|
+
}
|
|
1594
|
+
disconnectedCallback() {
|
|
1595
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1596
|
+
}
|
|
1597
|
+
attributeChangedCallback() {
|
|
1598
|
+
this.ctrl?.update(Nr(this));
|
|
1599
|
+
}
|
|
1600
|
+
};
|
|
1601
|
+
typeof customElements < "u" && !customElements.get("cos-newton-cradle") && customElements.define(Mr, Pr);
|
|
1602
|
+
//#endregion
|
|
1603
|
+
//#region src/components/nineGrid/element/index.ts
|
|
1604
|
+
var Fr = "cos-nine-grid";
|
|
1605
|
+
function D(e) {
|
|
1606
|
+
let t = {};
|
|
1607
|
+
if (e.hasAttribute("button-text") && (t.buttonText = e.getAttribute("button-text") ?? void 0), e.hasAttribute("spinning-text") && (t.spinningText = e.getAttribute("spinning-text") ?? void 0), e.hasAttribute("target-index") && (t.targetIndex = Number(e.getAttribute("target-index"))), t.disabled = e.hasAttribute("disabled"), e.hasAttribute("items")) try {
|
|
1608
|
+
t.items = JSON.parse(e.getAttribute("items") ?? "null");
|
|
1609
|
+
} catch {}
|
|
1610
|
+
let n = e._items;
|
|
1611
|
+
return n !== void 0 && (t.items = n), t.onDrawEnd = (...t) => {
|
|
1612
|
+
e.dispatchEvent(new CustomEvent("draw-end", {
|
|
1613
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
1614
|
+
bubbles: !0
|
|
1615
|
+
}));
|
|
1616
|
+
}, t;
|
|
1617
|
+
}
|
|
1618
|
+
var Ir = class extends HTMLElement {
|
|
1619
|
+
ctrl = null;
|
|
1620
|
+
_items;
|
|
1621
|
+
get items() {
|
|
1622
|
+
return this._items;
|
|
1623
|
+
}
|
|
1624
|
+
set items(e) {
|
|
1625
|
+
this._items = e, this.ctrl?.update(D(this));
|
|
1626
|
+
}
|
|
1627
|
+
static get observedAttributes() {
|
|
1628
|
+
return [
|
|
1629
|
+
"items",
|
|
1630
|
+
"target-index",
|
|
1631
|
+
"button-text",
|
|
1632
|
+
"spinning-text",
|
|
1633
|
+
"disabled"
|
|
1634
|
+
];
|
|
1635
|
+
}
|
|
1636
|
+
connectedCallback() {
|
|
1637
|
+
this.ctrl = We(this, D(this));
|
|
1638
|
+
}
|
|
1639
|
+
disconnectedCallback() {
|
|
1640
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1641
|
+
}
|
|
1642
|
+
attributeChangedCallback() {
|
|
1643
|
+
this.ctrl?.update(D(this));
|
|
1644
|
+
}
|
|
1645
|
+
draw(e) {
|
|
1646
|
+
return this.ctrl?.draw(e);
|
|
1647
|
+
}
|
|
1648
|
+
reset() {
|
|
1649
|
+
return this.ctrl?.reset();
|
|
1650
|
+
}
|
|
1651
|
+
};
|
|
1652
|
+
typeof customElements < "u" && !customElements.get("cos-nine-grid") && customElements.define(Fr, Ir);
|
|
1653
|
+
//#endregion
|
|
1654
|
+
//#region src/components/orbitalChart/element/index.ts
|
|
1655
|
+
var Lr = "cos-orbital-chart";
|
|
1656
|
+
function O(e) {
|
|
1657
|
+
let t = {};
|
|
1658
|
+
if (e.hasAttribute("size") && (t.size = Number(e.getAttribute("size"))), e.hasAttribute("data")) try {
|
|
1659
|
+
t.data = JSON.parse(e.getAttribute("data") ?? "null");
|
|
1660
|
+
} catch {}
|
|
1661
|
+
let n = e._data;
|
|
1662
|
+
return n !== void 0 && (t.data = n), t;
|
|
1663
|
+
}
|
|
1664
|
+
var Rr = class extends HTMLElement {
|
|
1665
|
+
ctrl = null;
|
|
1666
|
+
_data;
|
|
1667
|
+
get data() {
|
|
1668
|
+
return this._data;
|
|
1669
|
+
}
|
|
1670
|
+
set data(e) {
|
|
1671
|
+
this._data = e, this.ctrl?.update(O(this));
|
|
1672
|
+
}
|
|
1673
|
+
static get observedAttributes() {
|
|
1674
|
+
return ["data", "size"];
|
|
1675
|
+
}
|
|
1676
|
+
connectedCallback() {
|
|
1677
|
+
this.ctrl = rt(this, O(this));
|
|
1678
|
+
}
|
|
1679
|
+
disconnectedCallback() {
|
|
1680
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1681
|
+
}
|
|
1682
|
+
attributeChangedCallback() {
|
|
1683
|
+
this.ctrl?.update(O(this));
|
|
1684
|
+
}
|
|
1685
|
+
};
|
|
1686
|
+
typeof customElements < "u" && !customElements.get("cos-orbital-chart") && customElements.define(Lr, Rr);
|
|
1687
|
+
//#endregion
|
|
1688
|
+
//#region src/components/particleNetwork/element/index.ts
|
|
1689
|
+
var zr = "cos-particle-network";
|
|
1690
|
+
function Br(e) {
|
|
1691
|
+
let t = {};
|
|
1692
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("particle-count") && (t.particleCount = Number(e.getAttribute("particle-count"))), e.hasAttribute("link-distance") && (t.linkDistance = Number(e.getAttribute("link-distance"))), e.hasAttribute("repel-radius") && (t.repelRadius = Number(e.getAttribute("repel-radius"))), t.fill = e.hasAttribute("fill"), t;
|
|
1693
|
+
}
|
|
1694
|
+
var Vr = class extends HTMLElement {
|
|
1695
|
+
ctrl = null;
|
|
1696
|
+
static get observedAttributes() {
|
|
1697
|
+
return [
|
|
1698
|
+
"width",
|
|
1699
|
+
"height",
|
|
1700
|
+
"fill",
|
|
1701
|
+
"particle-count",
|
|
1702
|
+
"link-distance",
|
|
1703
|
+
"repel-radius",
|
|
1704
|
+
"color",
|
|
1705
|
+
"hint"
|
|
1706
|
+
];
|
|
1707
|
+
}
|
|
1708
|
+
connectedCallback() {
|
|
1709
|
+
this.ctrl = _t(this, Br(this));
|
|
1710
|
+
}
|
|
1711
|
+
disconnectedCallback() {
|
|
1712
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1713
|
+
}
|
|
1714
|
+
attributeChangedCallback() {
|
|
1715
|
+
this.ctrl?.update(Br(this));
|
|
1716
|
+
}
|
|
1717
|
+
};
|
|
1718
|
+
typeof customElements < "u" && !customElements.get("cos-particle-network") && customElements.define(zr, Vr);
|
|
1719
|
+
//#endregion
|
|
1720
|
+
//#region src/components/photoAlbum/element/index.ts
|
|
1721
|
+
var Hr = "cos-photo-album";
|
|
1722
|
+
function k(e) {
|
|
1723
|
+
let t = {};
|
|
1724
|
+
if (e.hasAttribute("width")) {
|
|
1725
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
1726
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
1727
|
+
}
|
|
1728
|
+
if (e.hasAttribute("height")) {
|
|
1729
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
1730
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
1731
|
+
}
|
|
1732
|
+
if (e.hasAttribute("object-fit") && (t.objectFit = e.getAttribute("object-fit") ?? void 0), e.hasAttribute("page-color") && (t.pageColor = e.getAttribute("page-color") ?? void 0), e.hasAttribute("cover-color") && (t.coverColor = e.getAttribute("cover-color") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("page-turn-duration") && (t.pageTurnDuration = Number(e.getAttribute("page-turn-duration"))), e.hasAttribute("show-page-number")) {
|
|
1733
|
+
let n = e.getAttribute("show-page-number");
|
|
1734
|
+
t.showPageNumber = n !== "false" && n !== "0";
|
|
1735
|
+
}
|
|
1736
|
+
if (e.hasAttribute("photos")) try {
|
|
1737
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
1738
|
+
} catch {}
|
|
1739
|
+
let n = e._photos;
|
|
1740
|
+
if (n !== void 0 && (t.photos = n), e.hasAttribute("labels")) try {
|
|
1741
|
+
t.labels = JSON.parse(e.getAttribute("labels") ?? "null");
|
|
1742
|
+
} catch {}
|
|
1743
|
+
let r = e._labels;
|
|
1744
|
+
return r !== void 0 && (t.labels = r), t.onPageChange = (...t) => {
|
|
1745
|
+
e.dispatchEvent(new CustomEvent("page-change", {
|
|
1746
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
1747
|
+
bubbles: !0
|
|
1748
|
+
}));
|
|
1749
|
+
}, t.onIndexChange = (...t) => {
|
|
1750
|
+
e.dispatchEvent(new CustomEvent("index-change", {
|
|
1751
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
1752
|
+
bubbles: !0
|
|
1753
|
+
}));
|
|
1754
|
+
}, t;
|
|
1755
|
+
}
|
|
1756
|
+
var Ur = class extends HTMLElement {
|
|
1757
|
+
ctrl = null;
|
|
1758
|
+
_photos;
|
|
1759
|
+
get photos() {
|
|
1760
|
+
return this._photos;
|
|
1761
|
+
}
|
|
1762
|
+
set photos(e) {
|
|
1763
|
+
this._photos = e, this.ctrl?.update(k(this));
|
|
1764
|
+
}
|
|
1765
|
+
_labels;
|
|
1766
|
+
get labels() {
|
|
1767
|
+
return this._labels;
|
|
1768
|
+
}
|
|
1769
|
+
set labels(e) {
|
|
1770
|
+
this._labels = e, this.ctrl?.update(k(this));
|
|
1771
|
+
}
|
|
1772
|
+
static get observedAttributes() {
|
|
1773
|
+
return [
|
|
1774
|
+
"photos",
|
|
1775
|
+
"width",
|
|
1776
|
+
"height",
|
|
1777
|
+
"initial-index",
|
|
1778
|
+
"page-turn-duration",
|
|
1779
|
+
"object-fit",
|
|
1780
|
+
"show-page-number",
|
|
1781
|
+
"page-color",
|
|
1782
|
+
"cover-color",
|
|
1783
|
+
"aria-label",
|
|
1784
|
+
"labels"
|
|
1785
|
+
];
|
|
1786
|
+
}
|
|
1787
|
+
connectedCallback() {
|
|
1788
|
+
this.ctrl = ft(this, k(this));
|
|
1789
|
+
}
|
|
1790
|
+
disconnectedCallback() {
|
|
1791
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1792
|
+
}
|
|
1793
|
+
attributeChangedCallback() {
|
|
1794
|
+
this.ctrl?.update(k(this));
|
|
1795
|
+
}
|
|
1796
|
+
};
|
|
1797
|
+
typeof customElements < "u" && !customElements.get("cos-photo-album") && customElements.define(Hr, Ur);
|
|
1798
|
+
//#endregion
|
|
1799
|
+
//#region src/components/photoCarousel/element/index.ts
|
|
1800
|
+
var Wr = "cos-photo-carousel";
|
|
1801
|
+
function A(e) {
|
|
1802
|
+
let t = {};
|
|
1803
|
+
if (e.hasAttribute("width")) {
|
|
1804
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
1805
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
1806
|
+
}
|
|
1807
|
+
if (e.hasAttribute("height")) {
|
|
1808
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
1809
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
1810
|
+
}
|
|
1811
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("radius") && (t.radius = Number(e.getAttribute("radius"))), e.hasAttribute("card-width") && (t.cardWidth = Number(e.getAttribute("card-width"))), e.hasAttribute("card-height") && (t.cardHeight = Number(e.getAttribute("card-height"))), e.hasAttribute("auto-rotate-speed") && (t.autoRotateSpeed = Number(e.getAttribute("auto-rotate-speed"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("initial-angle") && (t.initialAngle = Number(e.getAttribute("initial-angle"))), e.hasAttribute("auto-rotate")) {
|
|
1812
|
+
let n = e.getAttribute("auto-rotate");
|
|
1813
|
+
t.autoRotate = n !== "false" && n !== "0";
|
|
1814
|
+
}
|
|
1815
|
+
if (e.hasAttribute("show-caption")) {
|
|
1816
|
+
let n = e.getAttribute("show-caption");
|
|
1817
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
1818
|
+
}
|
|
1819
|
+
if (e.hasAttribute("photos")) try {
|
|
1820
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
1821
|
+
} catch {}
|
|
1822
|
+
let n = e._photos;
|
|
1823
|
+
return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
|
|
1824
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
1825
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
1826
|
+
bubbles: !0
|
|
1827
|
+
}));
|
|
1828
|
+
}, t.onFaceChange = (...t) => {
|
|
1829
|
+
e.dispatchEvent(new CustomEvent("face-change", {
|
|
1830
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
1831
|
+
bubbles: !0
|
|
1832
|
+
}));
|
|
1833
|
+
}, t.onIndexChange = (...t) => {
|
|
1834
|
+
e.dispatchEvent(new CustomEvent("index-change", {
|
|
1835
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
1836
|
+
bubbles: !0
|
|
1837
|
+
}));
|
|
1838
|
+
}, t;
|
|
1839
|
+
}
|
|
1840
|
+
var Gr = class extends HTMLElement {
|
|
1841
|
+
ctrl = null;
|
|
1842
|
+
_photos;
|
|
1843
|
+
get photos() {
|
|
1844
|
+
return this._photos;
|
|
1845
|
+
}
|
|
1846
|
+
set photos(e) {
|
|
1847
|
+
this._photos = e, this.ctrl?.update(A(this));
|
|
1848
|
+
}
|
|
1849
|
+
static get observedAttributes() {
|
|
1850
|
+
return [
|
|
1851
|
+
"photos",
|
|
1852
|
+
"width",
|
|
1853
|
+
"height",
|
|
1854
|
+
"radius",
|
|
1855
|
+
"card-width",
|
|
1856
|
+
"card-height",
|
|
1857
|
+
"auto-rotate",
|
|
1858
|
+
"auto-rotate-speed",
|
|
1859
|
+
"drag-sensitivity",
|
|
1860
|
+
"friction",
|
|
1861
|
+
"show-caption",
|
|
1862
|
+
"initial-angle",
|
|
1863
|
+
"aria-label"
|
|
1864
|
+
];
|
|
1865
|
+
}
|
|
1866
|
+
connectedCallback() {
|
|
1867
|
+
this.ctrl = bt(this, A(this));
|
|
1868
|
+
}
|
|
1869
|
+
disconnectedCallback() {
|
|
1870
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1871
|
+
}
|
|
1872
|
+
attributeChangedCallback() {
|
|
1873
|
+
this.ctrl?.update(A(this));
|
|
1874
|
+
}
|
|
1875
|
+
};
|
|
1876
|
+
typeof customElements < "u" && !customElements.get("cos-photo-carousel") && customElements.define(Wr, Gr);
|
|
1877
|
+
//#endregion
|
|
1878
|
+
//#region src/components/photoClothesline/element/index.ts
|
|
1879
|
+
var Kr = "cos-photo-clothesline";
|
|
1880
|
+
function j(e) {
|
|
1881
|
+
let t = {};
|
|
1882
|
+
if (e.hasAttribute("width")) {
|
|
1883
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
1884
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
1885
|
+
}
|
|
1886
|
+
if (e.hasAttribute("height")) {
|
|
1887
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
1888
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
1889
|
+
}
|
|
1890
|
+
if (e.hasAttribute("rope-color") && (t.ropeColor = e.getAttribute("rope-color") ?? void 0), e.hasAttribute("band-color") && (t.bandColor = e.getAttribute("band-color") ?? void 0), e.hasAttribute("pin-color") && (t.pinColor = e.getAttribute("pin-color") ?? void 0), e.hasAttribute("frame-color") && (t.frameColor = e.getAttribute("frame-color") ?? void 0), e.hasAttribute("background") && (t.background = e.getAttribute("background") ?? void 0), e.hasAttribute("object-fit") && (t.objectFit = e.getAttribute("object-fit") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("photo-width") && (t.photoWidth = Number(e.getAttribute("photo-width"))), e.hasAttribute("photo-height") && (t.photoHeight = Number(e.getAttribute("photo-height"))), e.hasAttribute("photo-gap") && (t.photoGap = Number(e.getAttribute("photo-gap"))), e.hasAttribute("rope-top") && (t.ropeTop = Number(e.getAttribute("rope-top"))), e.hasAttribute("rope-sag") && (t.ropeSag = Number(e.getAttribute("rope-sag"))), e.hasAttribute("band-length") && (t.bandLength = Number(e.getAttribute("band-length"))), e.hasAttribute("band-width") && (t.bandWidth = Number(e.getAttribute("band-width"))), e.hasAttribute("max-pull") && (t.maxPull = Number(e.getAttribute("max-pull"))), e.hasAttribute("stiffness") && (t.stiffness = Number(e.getAttribute("stiffness"))), e.hasAttribute("damping") && (t.damping = Number(e.getAttribute("damping"))), e.hasAttribute("tension") && (t.tension = Number(e.getAttribute("tension"))), e.hasAttribute("tilt") && (t.tilt = Number(e.getAttribute("tilt"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
|
|
1891
|
+
let n = e.getAttribute("show-caption");
|
|
1892
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
1893
|
+
}
|
|
1894
|
+
if (e.hasAttribute("photos")) try {
|
|
1895
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
1896
|
+
} catch {}
|
|
1897
|
+
let n = e._photos;
|
|
1898
|
+
return n !== void 0 && (t.photos = n), t.onIndexChange = (...t) => {
|
|
1899
|
+
e.dispatchEvent(new CustomEvent("index-change", {
|
|
1900
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
1901
|
+
bubbles: !0
|
|
1902
|
+
}));
|
|
1903
|
+
}, t.onPhotoClick = (...t) => {
|
|
1904
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
1905
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
1906
|
+
bubbles: !0
|
|
1907
|
+
}));
|
|
1908
|
+
}, t;
|
|
1909
|
+
}
|
|
1910
|
+
var qr = class extends HTMLElement {
|
|
1911
|
+
ctrl = null;
|
|
1912
|
+
_photos;
|
|
1913
|
+
get photos() {
|
|
1914
|
+
return this._photos;
|
|
1915
|
+
}
|
|
1916
|
+
set photos(e) {
|
|
1917
|
+
this._photos = e, this.ctrl?.update(j(this));
|
|
1918
|
+
}
|
|
1919
|
+
static get observedAttributes() {
|
|
1920
|
+
return [
|
|
1921
|
+
"photos",
|
|
1922
|
+
"width",
|
|
1923
|
+
"height",
|
|
1924
|
+
"photo-width",
|
|
1925
|
+
"photo-height",
|
|
1926
|
+
"photo-gap",
|
|
1927
|
+
"rope-top",
|
|
1928
|
+
"rope-sag",
|
|
1929
|
+
"band-length",
|
|
1930
|
+
"band-width",
|
|
1931
|
+
"max-pull",
|
|
1932
|
+
"stiffness",
|
|
1933
|
+
"damping",
|
|
1934
|
+
"tension",
|
|
1935
|
+
"tilt",
|
|
1936
|
+
"rope-color",
|
|
1937
|
+
"band-color",
|
|
1938
|
+
"pin-color",
|
|
1939
|
+
"frame-color",
|
|
1940
|
+
"background",
|
|
1941
|
+
"object-fit",
|
|
1942
|
+
"show-caption",
|
|
1943
|
+
"initial-index",
|
|
1944
|
+
"aria-label"
|
|
1945
|
+
];
|
|
1946
|
+
}
|
|
1947
|
+
connectedCallback() {
|
|
1948
|
+
this.ctrl = Xe(this, j(this));
|
|
1949
|
+
}
|
|
1950
|
+
disconnectedCallback() {
|
|
1951
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
1952
|
+
}
|
|
1953
|
+
attributeChangedCallback() {
|
|
1954
|
+
this.ctrl?.update(j(this));
|
|
1955
|
+
}
|
|
1956
|
+
};
|
|
1957
|
+
typeof customElements < "u" && !customElements.get("cos-photo-clothesline") && customElements.define(Kr, qr);
|
|
1958
|
+
//#endregion
|
|
1959
|
+
//#region src/components/photoFilmstrip/element/index.ts
|
|
1960
|
+
var Jr = "cos-photo-filmstrip";
|
|
1961
|
+
function M(e) {
|
|
1962
|
+
let t = {};
|
|
1963
|
+
if (e.hasAttribute("width")) {
|
|
1964
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
1965
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
1966
|
+
}
|
|
1967
|
+
if (e.hasAttribute("height")) {
|
|
1968
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
1969
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
1970
|
+
}
|
|
1971
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("frame-width") && (t.frameWidth = Number(e.getAttribute("frame-width"))), e.hasAttribute("frame-height") && (t.frameHeight = Number(e.getAttribute("frame-height"))), e.hasAttribute("frame-gap") && (t.frameGap = Number(e.getAttribute("frame-gap"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
|
|
1972
|
+
let n = e.getAttribute("show-caption");
|
|
1973
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
1974
|
+
}
|
|
1975
|
+
if (e.hasAttribute("photos")) try {
|
|
1976
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
1977
|
+
} catch {}
|
|
1978
|
+
let n = e._photos;
|
|
1979
|
+
return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
|
|
1980
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
1981
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
1982
|
+
bubbles: !0
|
|
1983
|
+
}));
|
|
1984
|
+
}, t.onIndexChange = (...t) => {
|
|
1985
|
+
e.dispatchEvent(new CustomEvent("index-change", {
|
|
1986
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
1987
|
+
bubbles: !0
|
|
1988
|
+
}));
|
|
1989
|
+
}, t;
|
|
1990
|
+
}
|
|
1991
|
+
var Yr = class extends HTMLElement {
|
|
1992
|
+
ctrl = null;
|
|
1993
|
+
_photos;
|
|
1994
|
+
get photos() {
|
|
1995
|
+
return this._photos;
|
|
1996
|
+
}
|
|
1997
|
+
set photos(e) {
|
|
1998
|
+
this._photos = e, this.ctrl?.update(M(this));
|
|
1999
|
+
}
|
|
2000
|
+
static get observedAttributes() {
|
|
2001
|
+
return [
|
|
2002
|
+
"photos",
|
|
2003
|
+
"width",
|
|
2004
|
+
"height",
|
|
2005
|
+
"frame-width",
|
|
2006
|
+
"frame-height",
|
|
2007
|
+
"frame-gap",
|
|
2008
|
+
"show-caption",
|
|
2009
|
+
"friction",
|
|
2010
|
+
"drag-sensitivity",
|
|
2011
|
+
"initial-index",
|
|
2012
|
+
"aria-label"
|
|
2013
|
+
];
|
|
2014
|
+
}
|
|
2015
|
+
connectedCallback() {
|
|
2016
|
+
this.ctrl = e(this, M(this));
|
|
2017
|
+
}
|
|
2018
|
+
disconnectedCallback() {
|
|
2019
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2020
|
+
}
|
|
2021
|
+
attributeChangedCallback() {
|
|
2022
|
+
this.ctrl?.update(M(this));
|
|
2023
|
+
}
|
|
2024
|
+
};
|
|
2025
|
+
typeof customElements < "u" && !customElements.get("cos-photo-filmstrip") && customElements.define(Jr, Yr);
|
|
2026
|
+
//#endregion
|
|
2027
|
+
//#region src/components/photoFridge/element/index.ts
|
|
2028
|
+
var Xr = "cos-photo-fridge";
|
|
2029
|
+
function N(e) {
|
|
2030
|
+
let t = {};
|
|
2031
|
+
if (e.hasAttribute("width")) {
|
|
2032
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
2033
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2034
|
+
}
|
|
2035
|
+
if (e.hasAttribute("height")) {
|
|
2036
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
2037
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2038
|
+
}
|
|
2039
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("card-width") && (t.cardWidth = Number(e.getAttribute("card-width"))), e.hasAttribute("card-height") && (t.cardHeight = Number(e.getAttribute("card-height"))), e.hasAttribute("scatter") && (t.scatter = Number(e.getAttribute("scatter"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
|
|
2040
|
+
let n = e.getAttribute("show-caption");
|
|
2041
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
2042
|
+
}
|
|
2043
|
+
if (e.hasAttribute("photos")) try {
|
|
2044
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
2045
|
+
} catch {}
|
|
2046
|
+
let n = e._photos;
|
|
2047
|
+
return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
|
|
2048
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
2049
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2050
|
+
bubbles: !0
|
|
2051
|
+
}));
|
|
2052
|
+
}, t;
|
|
2053
|
+
}
|
|
2054
|
+
var Zr = class extends HTMLElement {
|
|
2055
|
+
ctrl = null;
|
|
2056
|
+
_photos;
|
|
2057
|
+
get photos() {
|
|
2058
|
+
return this._photos;
|
|
2059
|
+
}
|
|
2060
|
+
set photos(e) {
|
|
2061
|
+
this._photos = e, this.ctrl?.update(N(this));
|
|
2062
|
+
}
|
|
2063
|
+
static get observedAttributes() {
|
|
2064
|
+
return [
|
|
2065
|
+
"photos",
|
|
2066
|
+
"width",
|
|
2067
|
+
"height",
|
|
2068
|
+
"card-width",
|
|
2069
|
+
"card-height",
|
|
2070
|
+
"scatter",
|
|
2071
|
+
"friction",
|
|
2072
|
+
"show-caption",
|
|
2073
|
+
"initial-index",
|
|
2074
|
+
"aria-label"
|
|
2075
|
+
];
|
|
2076
|
+
}
|
|
2077
|
+
connectedCallback() {
|
|
2078
|
+
this.ctrl = Ee(this, N(this));
|
|
2079
|
+
}
|
|
2080
|
+
disconnectedCallback() {
|
|
2081
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2082
|
+
}
|
|
2083
|
+
attributeChangedCallback() {
|
|
2084
|
+
this.ctrl?.update(N(this));
|
|
2085
|
+
}
|
|
2086
|
+
};
|
|
2087
|
+
typeof customElements < "u" && !customElements.get("cos-photo-fridge") && customElements.define(Xr, Zr);
|
|
2088
|
+
//#endregion
|
|
2089
|
+
//#region src/components/photoLantern/element/index.ts
|
|
2090
|
+
var Qr = "cos-photo-lantern";
|
|
2091
|
+
function P(e) {
|
|
2092
|
+
let t = {};
|
|
2093
|
+
if (e.hasAttribute("width")) {
|
|
2094
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
2095
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2096
|
+
}
|
|
2097
|
+
if (e.hasAttribute("height")) {
|
|
2098
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
2099
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2100
|
+
}
|
|
2101
|
+
if (e.hasAttribute("frame-color") && (t.frameColor = e.getAttribute("frame-color") ?? void 0), e.hasAttribute("paper-color") && (t.paperColor = e.getAttribute("paper-color") ?? void 0), e.hasAttribute("light-color") && (t.lightColor = e.getAttribute("light-color") ?? void 0), e.hasAttribute("background") && (t.background = e.getAttribute("background") ?? void 0), e.hasAttribute("tassel-color") && (t.tasselColor = e.getAttribute("tassel-color") ?? void 0), e.hasAttribute("object-fit") && (t.objectFit = e.getAttribute("object-fit") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("auto-rotate-speed") && (t.autoRotateSpeed = Number(e.getAttribute("auto-rotate-speed"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("light-sway") && (t.lightSway = Number(e.getAttribute("light-sway"))), e.hasAttribute("initial-angle") && (t.initialAngle = Number(e.getAttribute("initial-angle"))), e.hasAttribute("auto-rotate")) {
|
|
2102
|
+
let n = e.getAttribute("auto-rotate");
|
|
2103
|
+
t.autoRotate = n !== "false" && n !== "0";
|
|
2104
|
+
}
|
|
2105
|
+
if (e.hasAttribute("show-accessories")) {
|
|
2106
|
+
let n = e.getAttribute("show-accessories");
|
|
2107
|
+
t.showAccessories = n !== "false" && n !== "0";
|
|
2108
|
+
}
|
|
2109
|
+
if (e.hasAttribute("silhouette")) {
|
|
2110
|
+
let n = e.getAttribute("silhouette");
|
|
2111
|
+
t.silhouette = n !== "false" && n !== "0";
|
|
2112
|
+
}
|
|
2113
|
+
if (e.hasAttribute("show-caption")) {
|
|
2114
|
+
let n = e.getAttribute("show-caption");
|
|
2115
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
2116
|
+
}
|
|
2117
|
+
if (e.hasAttribute("photos")) try {
|
|
2118
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
2119
|
+
} catch {}
|
|
2120
|
+
let n = e._photos;
|
|
2121
|
+
return n !== void 0 && (t.photos = n), t.onFaceChange = (...t) => {
|
|
2122
|
+
e.dispatchEvent(new CustomEvent("face-change", {
|
|
2123
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2124
|
+
bubbles: !0
|
|
2125
|
+
}));
|
|
2126
|
+
}, t.onIndexChange = (...t) => {
|
|
2127
|
+
e.dispatchEvent(new CustomEvent("index-change", {
|
|
2128
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2129
|
+
bubbles: !0
|
|
2130
|
+
}));
|
|
2131
|
+
}, t.onPhotoClick = (...t) => {
|
|
2132
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
2133
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2134
|
+
bubbles: !0
|
|
2135
|
+
}));
|
|
2136
|
+
}, t;
|
|
2137
|
+
}
|
|
2138
|
+
var $r = class extends HTMLElement {
|
|
2139
|
+
ctrl = null;
|
|
2140
|
+
_photos;
|
|
2141
|
+
get photos() {
|
|
2142
|
+
return this._photos;
|
|
2143
|
+
}
|
|
2144
|
+
set photos(e) {
|
|
2145
|
+
this._photos = e, this.ctrl?.update(P(this));
|
|
2146
|
+
}
|
|
2147
|
+
static get observedAttributes() {
|
|
2148
|
+
return [
|
|
2149
|
+
"photos",
|
|
2150
|
+
"width",
|
|
2151
|
+
"height",
|
|
2152
|
+
"auto-rotate",
|
|
2153
|
+
"auto-rotate-speed",
|
|
2154
|
+
"drag-sensitivity",
|
|
2155
|
+
"friction",
|
|
2156
|
+
"frame-color",
|
|
2157
|
+
"paper-color",
|
|
2158
|
+
"light-color",
|
|
2159
|
+
"background",
|
|
2160
|
+
"light-sway",
|
|
2161
|
+
"show-accessories",
|
|
2162
|
+
"tassel-color",
|
|
2163
|
+
"object-fit",
|
|
2164
|
+
"silhouette",
|
|
2165
|
+
"show-caption",
|
|
2166
|
+
"initial-angle",
|
|
2167
|
+
"aria-label"
|
|
2168
|
+
];
|
|
2169
|
+
}
|
|
2170
|
+
connectedCallback() {
|
|
2171
|
+
this.ctrl = Ve(this, P(this));
|
|
2172
|
+
}
|
|
2173
|
+
disconnectedCallback() {
|
|
2174
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2175
|
+
}
|
|
2176
|
+
attributeChangedCallback() {
|
|
2177
|
+
this.ctrl?.update(P(this));
|
|
2178
|
+
}
|
|
2179
|
+
};
|
|
2180
|
+
typeof customElements < "u" && !customElements.get("cos-photo-lantern") && customElements.define(Qr, $r);
|
|
2181
|
+
//#endregion
|
|
2182
|
+
//#region src/components/photoLightbox/element/index.ts
|
|
2183
|
+
var ei = "cos-photo-lightbox";
|
|
2184
|
+
function F(e) {
|
|
2185
|
+
let t = {};
|
|
2186
|
+
if (e.hasAttribute("width")) {
|
|
2187
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
2188
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2189
|
+
}
|
|
2190
|
+
if (e.hasAttribute("height")) {
|
|
2191
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
2192
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2193
|
+
}
|
|
2194
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("slide-width") && (t.slideWidth = Number(e.getAttribute("slide-width"))), e.hasAttribute("slide-height") && (t.slideHeight = Number(e.getAttribute("slide-height"))), e.hasAttribute("pull-threshold") && (t.pullThreshold = Number(e.getAttribute("pull-threshold"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
|
|
2195
|
+
let n = e.getAttribute("show-caption");
|
|
2196
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
2197
|
+
}
|
|
2198
|
+
if (e.hasAttribute("photos")) try {
|
|
2199
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
2200
|
+
} catch {}
|
|
2201
|
+
let n = e._photos;
|
|
2202
|
+
return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
|
|
2203
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
2204
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2205
|
+
bubbles: !0
|
|
2206
|
+
}));
|
|
2207
|
+
}, t.onIndexChange = (...t) => {
|
|
2208
|
+
e.dispatchEvent(new CustomEvent("index-change", {
|
|
2209
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2210
|
+
bubbles: !0
|
|
2211
|
+
}));
|
|
2212
|
+
}, t;
|
|
2213
|
+
}
|
|
2214
|
+
var ti = class extends HTMLElement {
|
|
2215
|
+
ctrl = null;
|
|
2216
|
+
_photos;
|
|
2217
|
+
get photos() {
|
|
2218
|
+
return this._photos;
|
|
2219
|
+
}
|
|
2220
|
+
set photos(e) {
|
|
2221
|
+
this._photos = e, this.ctrl?.update(F(this));
|
|
2222
|
+
}
|
|
2223
|
+
static get observedAttributes() {
|
|
2224
|
+
return [
|
|
2225
|
+
"photos",
|
|
2226
|
+
"width",
|
|
2227
|
+
"height",
|
|
2228
|
+
"slide-width",
|
|
2229
|
+
"slide-height",
|
|
2230
|
+
"pull-threshold",
|
|
2231
|
+
"show-caption",
|
|
2232
|
+
"initial-index",
|
|
2233
|
+
"aria-label"
|
|
2234
|
+
];
|
|
2235
|
+
}
|
|
2236
|
+
connectedCallback() {
|
|
2237
|
+
this.ctrl = ze(this, F(this));
|
|
2238
|
+
}
|
|
2239
|
+
disconnectedCallback() {
|
|
2240
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2241
|
+
}
|
|
2242
|
+
attributeChangedCallback() {
|
|
2243
|
+
this.ctrl?.update(F(this));
|
|
2244
|
+
}
|
|
2245
|
+
};
|
|
2246
|
+
typeof customElements < "u" && !customElements.get("cos-photo-lightbox") && customElements.define(ei, ti);
|
|
2247
|
+
//#endregion
|
|
2248
|
+
//#region src/components/photoPolaroid/element/index.ts
|
|
2249
|
+
var ni = "cos-photo-polaroid";
|
|
2250
|
+
function I(e) {
|
|
2251
|
+
let t = {};
|
|
2252
|
+
if (e.hasAttribute("width")) {
|
|
2253
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
2254
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2255
|
+
}
|
|
2256
|
+
if (e.hasAttribute("height")) {
|
|
2257
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
2258
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2259
|
+
}
|
|
2260
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("card-width") && (t.cardWidth = Number(e.getAttribute("card-width"))), e.hasAttribute("card-height") && (t.cardHeight = Number(e.getAttribute("card-height"))), e.hasAttribute("scatter") && (t.scatter = Number(e.getAttribute("scatter"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
|
|
2261
|
+
let n = e.getAttribute("show-caption");
|
|
2262
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
2263
|
+
}
|
|
2264
|
+
if (e.hasAttribute("photos")) try {
|
|
2265
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
2266
|
+
} catch {}
|
|
2267
|
+
let n = e._photos;
|
|
2268
|
+
return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
|
|
2269
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
2270
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2271
|
+
bubbles: !0
|
|
2272
|
+
}));
|
|
2273
|
+
}, t;
|
|
2274
|
+
}
|
|
2275
|
+
var ri = class extends HTMLElement {
|
|
2276
|
+
ctrl = null;
|
|
2277
|
+
_photos;
|
|
2278
|
+
get photos() {
|
|
2279
|
+
return this._photos;
|
|
2280
|
+
}
|
|
2281
|
+
set photos(e) {
|
|
2282
|
+
this._photos = e, this.ctrl?.update(I(this));
|
|
2283
|
+
}
|
|
2284
|
+
static get observedAttributes() {
|
|
2285
|
+
return [
|
|
2286
|
+
"photos",
|
|
2287
|
+
"width",
|
|
2288
|
+
"height",
|
|
2289
|
+
"card-width",
|
|
2290
|
+
"card-height",
|
|
2291
|
+
"scatter",
|
|
2292
|
+
"show-caption",
|
|
2293
|
+
"initial-index",
|
|
2294
|
+
"aria-label"
|
|
2295
|
+
];
|
|
2296
|
+
}
|
|
2297
|
+
connectedCallback() {
|
|
2298
|
+
this.ctrl = Be(this, I(this));
|
|
2299
|
+
}
|
|
2300
|
+
disconnectedCallback() {
|
|
2301
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2302
|
+
}
|
|
2303
|
+
attributeChangedCallback() {
|
|
2304
|
+
this.ctrl?.update(I(this));
|
|
2305
|
+
}
|
|
2306
|
+
};
|
|
2307
|
+
typeof customElements < "u" && !customElements.get("cos-photo-polaroid") && customElements.define(ni, ri);
|
|
2308
|
+
//#endregion
|
|
2309
|
+
//#region src/components/photoPostcard/element/index.ts
|
|
2310
|
+
var ii = "cos-photo-postcard";
|
|
2311
|
+
function L(e) {
|
|
2312
|
+
let t = {};
|
|
2313
|
+
if (e.hasAttribute("width")) {
|
|
2314
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
2315
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2316
|
+
}
|
|
2317
|
+
if (e.hasAttribute("height")) {
|
|
2318
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
2319
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2320
|
+
}
|
|
2321
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("card-width") && (t.cardWidth = Number(e.getAttribute("card-width"))), e.hasAttribute("card-height") && (t.cardHeight = Number(e.getAttribute("card-height"))), e.hasAttribute("pull-threshold") && (t.pullThreshold = Number(e.getAttribute("pull-threshold"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
|
|
2322
|
+
let n = e.getAttribute("show-caption");
|
|
2323
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
2324
|
+
}
|
|
2325
|
+
if (e.hasAttribute("initial-flipped")) {
|
|
2326
|
+
let n = e.getAttribute("initial-flipped");
|
|
2327
|
+
t.initialFlipped = n !== "false" && n !== "0";
|
|
2328
|
+
}
|
|
2329
|
+
if (e.hasAttribute("photos")) try {
|
|
2330
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
2331
|
+
} catch {}
|
|
2332
|
+
let n = e._photos;
|
|
2333
|
+
return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
|
|
2334
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
2335
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2336
|
+
bubbles: !0
|
|
2337
|
+
}));
|
|
2338
|
+
}, t.onIndexChange = (...t) => {
|
|
2339
|
+
e.dispatchEvent(new CustomEvent("index-change", {
|
|
2340
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2341
|
+
bubbles: !0
|
|
2342
|
+
}));
|
|
2343
|
+
}, t.onFlipChange = (...t) => {
|
|
2344
|
+
e.dispatchEvent(new CustomEvent("flip-change", {
|
|
2345
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2346
|
+
bubbles: !0
|
|
2347
|
+
}));
|
|
2348
|
+
}, t;
|
|
2349
|
+
}
|
|
2350
|
+
var ai = class extends HTMLElement {
|
|
2351
|
+
ctrl = null;
|
|
2352
|
+
_photos;
|
|
2353
|
+
get photos() {
|
|
2354
|
+
return this._photos;
|
|
2355
|
+
}
|
|
2356
|
+
set photos(e) {
|
|
2357
|
+
this._photos = e, this.ctrl?.update(L(this));
|
|
2358
|
+
}
|
|
2359
|
+
static get observedAttributes() {
|
|
2360
|
+
return [
|
|
2361
|
+
"photos",
|
|
2362
|
+
"width",
|
|
2363
|
+
"height",
|
|
2364
|
+
"card-width",
|
|
2365
|
+
"card-height",
|
|
2366
|
+
"pull-threshold",
|
|
2367
|
+
"show-caption",
|
|
2368
|
+
"initial-index",
|
|
2369
|
+
"initial-flipped",
|
|
2370
|
+
"aria-label"
|
|
2371
|
+
];
|
|
2372
|
+
}
|
|
2373
|
+
connectedCallback() {
|
|
2374
|
+
this.ctrl = Mt(this, L(this));
|
|
2375
|
+
}
|
|
2376
|
+
disconnectedCallback() {
|
|
2377
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2378
|
+
}
|
|
2379
|
+
attributeChangedCallback() {
|
|
2380
|
+
this.ctrl?.update(L(this));
|
|
2381
|
+
}
|
|
2382
|
+
};
|
|
2383
|
+
typeof customElements < "u" && !customElements.get("cos-photo-postcard") && customElements.define(ii, ai);
|
|
2384
|
+
//#endregion
|
|
2385
|
+
//#region src/components/photoPrism/element/index.ts
|
|
2386
|
+
var oi = "cos-photo-prism";
|
|
2387
|
+
function R(e) {
|
|
2388
|
+
let t = {};
|
|
2389
|
+
if (e.hasAttribute("width")) {
|
|
2390
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
2391
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2392
|
+
}
|
|
2393
|
+
if (e.hasAttribute("height")) {
|
|
2394
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
2395
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2396
|
+
}
|
|
2397
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("size") && (t.size = Number(e.getAttribute("size"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("auto-rotate")) {
|
|
2398
|
+
let n = e.getAttribute("auto-rotate");
|
|
2399
|
+
t.autoRotate = n !== "false" && n !== "0";
|
|
2400
|
+
}
|
|
2401
|
+
if (e.hasAttribute("show-caption")) {
|
|
2402
|
+
let n = e.getAttribute("show-caption");
|
|
2403
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
2404
|
+
}
|
|
2405
|
+
if (e.hasAttribute("photos")) try {
|
|
2406
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
2407
|
+
} catch {}
|
|
2408
|
+
let n = e._photos;
|
|
2409
|
+
return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
|
|
2410
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
2411
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2412
|
+
bubbles: !0
|
|
2413
|
+
}));
|
|
2414
|
+
}, t;
|
|
2415
|
+
}
|
|
2416
|
+
var si = class extends HTMLElement {
|
|
2417
|
+
ctrl = null;
|
|
2418
|
+
_photos;
|
|
2419
|
+
get photos() {
|
|
2420
|
+
return this._photos;
|
|
2421
|
+
}
|
|
2422
|
+
set photos(e) {
|
|
2423
|
+
this._photos = e, this.ctrl?.update(R(this));
|
|
2424
|
+
}
|
|
2425
|
+
static get observedAttributes() {
|
|
2426
|
+
return [
|
|
2427
|
+
"photos",
|
|
2428
|
+
"width",
|
|
2429
|
+
"height",
|
|
2430
|
+
"size",
|
|
2431
|
+
"auto-rotate",
|
|
2432
|
+
"drag-sensitivity",
|
|
2433
|
+
"friction",
|
|
2434
|
+
"show-caption",
|
|
2435
|
+
"aria-label"
|
|
2436
|
+
];
|
|
2437
|
+
}
|
|
2438
|
+
connectedCallback() {
|
|
2439
|
+
this.ctrl = me(this, R(this));
|
|
2440
|
+
}
|
|
2441
|
+
disconnectedCallback() {
|
|
2442
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2443
|
+
}
|
|
2444
|
+
attributeChangedCallback() {
|
|
2445
|
+
this.ctrl?.update(R(this));
|
|
2446
|
+
}
|
|
2447
|
+
};
|
|
2448
|
+
typeof customElements < "u" && !customElements.get("cos-photo-prism") && customElements.define(oi, si);
|
|
2449
|
+
//#endregion
|
|
2450
|
+
//#region src/components/photoScroll/element/index.ts
|
|
2451
|
+
var ci = "cos-photo-scroll";
|
|
2452
|
+
function z(e) {
|
|
2453
|
+
let t = {};
|
|
2454
|
+
if (e.hasAttribute("width")) {
|
|
2455
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
2456
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2457
|
+
}
|
|
2458
|
+
if (e.hasAttribute("height")) {
|
|
2459
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
2460
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2461
|
+
}
|
|
2462
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("frame-width") && (t.frameWidth = Number(e.getAttribute("frame-width"))), e.hasAttribute("frame-height") && (t.frameHeight = Number(e.getAttribute("frame-height"))), e.hasAttribute("frame-gap") && (t.frameGap = Number(e.getAttribute("frame-gap"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("show-caption")) {
|
|
2463
|
+
let n = e.getAttribute("show-caption");
|
|
2464
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
2465
|
+
}
|
|
2466
|
+
if (e.hasAttribute("photos")) try {
|
|
2467
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
2468
|
+
} catch {}
|
|
2469
|
+
let n = e._photos;
|
|
2470
|
+
return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
|
|
2471
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
2472
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2473
|
+
bubbles: !0
|
|
2474
|
+
}));
|
|
2475
|
+
}, t.onIndexChange = (...t) => {
|
|
2476
|
+
e.dispatchEvent(new CustomEvent("index-change", {
|
|
2477
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2478
|
+
bubbles: !0
|
|
2479
|
+
}));
|
|
2480
|
+
}, t;
|
|
2481
|
+
}
|
|
2482
|
+
var li = class extends HTMLElement {
|
|
2483
|
+
ctrl = null;
|
|
2484
|
+
_photos;
|
|
2485
|
+
get photos() {
|
|
2486
|
+
return this._photos;
|
|
2487
|
+
}
|
|
2488
|
+
set photos(e) {
|
|
2489
|
+
this._photos = e, this.ctrl?.update(z(this));
|
|
2490
|
+
}
|
|
2491
|
+
static get observedAttributes() {
|
|
2492
|
+
return [
|
|
2493
|
+
"photos",
|
|
2494
|
+
"width",
|
|
2495
|
+
"height",
|
|
2496
|
+
"frame-width",
|
|
2497
|
+
"frame-height",
|
|
2498
|
+
"frame-gap",
|
|
2499
|
+
"drag-sensitivity",
|
|
2500
|
+
"friction",
|
|
2501
|
+
"show-caption",
|
|
2502
|
+
"initial-index",
|
|
2503
|
+
"aria-label"
|
|
2504
|
+
];
|
|
2505
|
+
}
|
|
2506
|
+
connectedCallback() {
|
|
2507
|
+
this.ctrl = gt(this, z(this));
|
|
2508
|
+
}
|
|
2509
|
+
disconnectedCallback() {
|
|
2510
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2511
|
+
}
|
|
2512
|
+
attributeChangedCallback() {
|
|
2513
|
+
this.ctrl?.update(z(this));
|
|
2514
|
+
}
|
|
2515
|
+
};
|
|
2516
|
+
typeof customElements < "u" && !customElements.get("cos-photo-scroll") && customElements.define(ci, li);
|
|
2517
|
+
//#endregion
|
|
2518
|
+
//#region src/components/photoTunnel/element/index.ts
|
|
2519
|
+
var ui = "cos-photo-tunnel";
|
|
2520
|
+
function B(e) {
|
|
2521
|
+
let t = {};
|
|
2522
|
+
if (e.hasAttribute("width")) {
|
|
2523
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
2524
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2525
|
+
}
|
|
2526
|
+
if (e.hasAttribute("height")) {
|
|
2527
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
2528
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2529
|
+
}
|
|
2530
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("depth-step") && (t.depthStep = Number(e.getAttribute("depth-step"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("auto-advance-speed") && (t.autoAdvanceSpeed = Number(e.getAttribute("auto-advance-speed"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("auto-advance")) {
|
|
2531
|
+
let n = e.getAttribute("auto-advance");
|
|
2532
|
+
t.autoAdvance = n !== "false" && n !== "0";
|
|
2533
|
+
}
|
|
2534
|
+
if (e.hasAttribute("show-caption")) {
|
|
2535
|
+
let n = e.getAttribute("show-caption");
|
|
2536
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
2537
|
+
}
|
|
2538
|
+
if (e.hasAttribute("photos")) try {
|
|
2539
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
2540
|
+
} catch {}
|
|
2541
|
+
let n = e._photos;
|
|
2542
|
+
return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
|
|
2543
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
2544
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2545
|
+
bubbles: !0
|
|
2546
|
+
}));
|
|
2547
|
+
}, t.onIndexChange = (...t) => {
|
|
2548
|
+
e.dispatchEvent(new CustomEvent("index-change", {
|
|
2549
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2550
|
+
bubbles: !0
|
|
2551
|
+
}));
|
|
2552
|
+
}, t;
|
|
2553
|
+
}
|
|
2554
|
+
var di = class extends HTMLElement {
|
|
2555
|
+
ctrl = null;
|
|
2556
|
+
_photos;
|
|
2557
|
+
get photos() {
|
|
2558
|
+
return this._photos;
|
|
2559
|
+
}
|
|
2560
|
+
set photos(e) {
|
|
2561
|
+
this._photos = e, this.ctrl?.update(B(this));
|
|
2562
|
+
}
|
|
2563
|
+
static get observedAttributes() {
|
|
2564
|
+
return [
|
|
2565
|
+
"photos",
|
|
2566
|
+
"width",
|
|
2567
|
+
"height",
|
|
2568
|
+
"depth-step",
|
|
2569
|
+
"drag-sensitivity",
|
|
2570
|
+
"friction",
|
|
2571
|
+
"auto-advance",
|
|
2572
|
+
"auto-advance-speed",
|
|
2573
|
+
"show-caption",
|
|
2574
|
+
"initial-index",
|
|
2575
|
+
"aria-label"
|
|
2576
|
+
];
|
|
2577
|
+
}
|
|
2578
|
+
connectedCallback() {
|
|
2579
|
+
this.ctrl = he(this, B(this));
|
|
2580
|
+
}
|
|
2581
|
+
disconnectedCallback() {
|
|
2582
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2583
|
+
}
|
|
2584
|
+
attributeChangedCallback() {
|
|
2585
|
+
this.ctrl?.update(B(this));
|
|
2586
|
+
}
|
|
2587
|
+
};
|
|
2588
|
+
typeof customElements < "u" && !customElements.get("cos-photo-tunnel") && customElements.define(ui, di);
|
|
2589
|
+
//#endregion
|
|
2590
|
+
//#region src/components/photoViewMaster/element/index.ts
|
|
2591
|
+
var fi = "cos-photo-view-master";
|
|
2592
|
+
function V(e) {
|
|
2593
|
+
let t = {};
|
|
2594
|
+
if (e.hasAttribute("width")) {
|
|
2595
|
+
let n = e.getAttribute("width"), r = Number(n);
|
|
2596
|
+
t.width = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2597
|
+
}
|
|
2598
|
+
if (e.hasAttribute("height")) {
|
|
2599
|
+
let n = e.getAttribute("height"), r = Number(n);
|
|
2600
|
+
t.height = n != null && n !== "" && !Number.isNaN(r) ? r : n ?? void 0;
|
|
2601
|
+
}
|
|
2602
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("disc-size") && (t.discSize = Number(e.getAttribute("disc-size"))), e.hasAttribute("peep-size") && (t.peepSize = Number(e.getAttribute("peep-size"))), e.hasAttribute("drag-sensitivity") && (t.dragSensitivity = Number(e.getAttribute("drag-sensitivity"))), e.hasAttribute("friction") && (t.friction = Number(e.getAttribute("friction"))), e.hasAttribute("auto-rotate-speed") && (t.autoRotateSpeed = Number(e.getAttribute("auto-rotate-speed"))), e.hasAttribute("initial-index") && (t.initialIndex = Number(e.getAttribute("initial-index"))), e.hasAttribute("auto-rotate")) {
|
|
2603
|
+
let n = e.getAttribute("auto-rotate");
|
|
2604
|
+
t.autoRotate = n !== "false" && n !== "0";
|
|
2605
|
+
}
|
|
2606
|
+
if (e.hasAttribute("show-caption")) {
|
|
2607
|
+
let n = e.getAttribute("show-caption");
|
|
2608
|
+
t.showCaption = n !== "false" && n !== "0";
|
|
2609
|
+
}
|
|
2610
|
+
if (e.hasAttribute("photos")) try {
|
|
2611
|
+
t.photos = JSON.parse(e.getAttribute("photos") ?? "null");
|
|
2612
|
+
} catch {}
|
|
2613
|
+
let n = e._photos;
|
|
2614
|
+
return n !== void 0 && (t.photos = n), t.onPhotoClick = (...t) => {
|
|
2615
|
+
e.dispatchEvent(new CustomEvent("photo-click", {
|
|
2616
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2617
|
+
bubbles: !0
|
|
2618
|
+
}));
|
|
2619
|
+
}, t.onIndexChange = (...t) => {
|
|
2620
|
+
e.dispatchEvent(new CustomEvent("index-change", {
|
|
2621
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2622
|
+
bubbles: !0
|
|
2623
|
+
}));
|
|
2624
|
+
}, t;
|
|
2625
|
+
}
|
|
2626
|
+
var pi = class extends HTMLElement {
|
|
2627
|
+
ctrl = null;
|
|
2628
|
+
_photos;
|
|
2629
|
+
get photos() {
|
|
2630
|
+
return this._photos;
|
|
2631
|
+
}
|
|
2632
|
+
set photos(e) {
|
|
2633
|
+
this._photos = e, this.ctrl?.update(V(this));
|
|
2634
|
+
}
|
|
2635
|
+
static get observedAttributes() {
|
|
2636
|
+
return [
|
|
2637
|
+
"photos",
|
|
2638
|
+
"width",
|
|
2639
|
+
"height",
|
|
2640
|
+
"disc-size",
|
|
2641
|
+
"peep-size",
|
|
2642
|
+
"drag-sensitivity",
|
|
2643
|
+
"friction",
|
|
2644
|
+
"auto-rotate",
|
|
2645
|
+
"auto-rotate-speed",
|
|
2646
|
+
"show-caption",
|
|
2647
|
+
"initial-index",
|
|
2648
|
+
"aria-label"
|
|
2649
|
+
];
|
|
2650
|
+
}
|
|
2651
|
+
connectedCallback() {
|
|
2652
|
+
this.ctrl = le(this, V(this));
|
|
2653
|
+
}
|
|
2654
|
+
disconnectedCallback() {
|
|
2655
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2656
|
+
}
|
|
2657
|
+
attributeChangedCallback() {
|
|
2658
|
+
this.ctrl?.update(V(this));
|
|
2659
|
+
}
|
|
2660
|
+
};
|
|
2661
|
+
typeof customElements < "u" && !customElements.get("cos-photo-view-master") && customElements.define(fi, pi);
|
|
2662
|
+
//#endregion
|
|
2663
|
+
//#region src/components/plasmaBall/element/index.ts
|
|
2664
|
+
var mi = "cos-plasma-ball";
|
|
2665
|
+
function hi(e) {
|
|
2666
|
+
let t = {};
|
|
2667
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("arc-count") && (t.arcCount = Number(e.getAttribute("arc-count"))), t;
|
|
2668
|
+
}
|
|
2669
|
+
var gi = class extends HTMLElement {
|
|
2670
|
+
ctrl = null;
|
|
2671
|
+
static get observedAttributes() {
|
|
2672
|
+
return [
|
|
2673
|
+
"width",
|
|
2674
|
+
"height",
|
|
2675
|
+
"color",
|
|
2676
|
+
"arc-count"
|
|
2677
|
+
];
|
|
2678
|
+
}
|
|
2679
|
+
connectedCallback() {
|
|
2680
|
+
this.ctrl = Re(this, hi(this));
|
|
2681
|
+
}
|
|
2682
|
+
disconnectedCallback() {
|
|
2683
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2684
|
+
}
|
|
2685
|
+
attributeChangedCallback() {
|
|
2686
|
+
this.ctrl?.update(hi(this));
|
|
2687
|
+
}
|
|
2688
|
+
};
|
|
2689
|
+
typeof customElements < "u" && !customElements.get("cos-plasma-ball") && customElements.define(mi, gi);
|
|
2690
|
+
//#endregion
|
|
2691
|
+
//#region src/components/progressChest/element/index.ts
|
|
2692
|
+
var _i = "cos-progress-chest";
|
|
2693
|
+
function vi(e) {
|
|
2694
|
+
let t = {};
|
|
2695
|
+
if (e.hasAttribute("label") && (t.label = e.getAttribute("label") ?? void 0), e.hasAttribute("opened-label") && (t.openedLabel = e.getAttribute("opened-label") ?? void 0), e.hasAttribute("progress") && (t.progress = Number(e.getAttribute("progress"))), e.hasAttribute("auto")) {
|
|
2696
|
+
let n = e.getAttribute("auto");
|
|
2697
|
+
t.auto = n !== "false" && n !== "0";
|
|
2698
|
+
}
|
|
2699
|
+
return t.onOpen = (...t) => {
|
|
2700
|
+
e.dispatchEvent(new CustomEvent("open", {
|
|
2701
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2702
|
+
bubbles: !0
|
|
2703
|
+
}));
|
|
2704
|
+
}, t;
|
|
2705
|
+
}
|
|
2706
|
+
var yi = class extends HTMLElement {
|
|
2707
|
+
ctrl = null;
|
|
2708
|
+
static get observedAttributes() {
|
|
2709
|
+
return [
|
|
2710
|
+
"progress",
|
|
2711
|
+
"auto",
|
|
2712
|
+
"label",
|
|
2713
|
+
"opened-label"
|
|
2714
|
+
];
|
|
2715
|
+
}
|
|
2716
|
+
connectedCallback() {
|
|
2717
|
+
this.ctrl = xe(this, vi(this));
|
|
2718
|
+
}
|
|
2719
|
+
disconnectedCallback() {
|
|
2720
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2721
|
+
}
|
|
2722
|
+
attributeChangedCallback() {
|
|
2723
|
+
this.ctrl?.update(vi(this));
|
|
2724
|
+
}
|
|
2725
|
+
};
|
|
2726
|
+
typeof customElements < "u" && !customElements.get("cos-progress-chest") && customElements.define(_i, yi);
|
|
2727
|
+
//#endregion
|
|
2728
|
+
//#region src/components/radarScan/element/index.ts
|
|
2729
|
+
var bi = "cos-radar-scan";
|
|
2730
|
+
function xi(e) {
|
|
2731
|
+
let t = {};
|
|
2732
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("size") && (t.size = Number(e.getAttribute("size"))), e.hasAttribute("blip-count") && (t.blipCount = Number(e.getAttribute("blip-count"))), t;
|
|
2733
|
+
}
|
|
2734
|
+
var Si = class extends HTMLElement {
|
|
2735
|
+
ctrl = null;
|
|
2736
|
+
static get observedAttributes() {
|
|
2737
|
+
return [
|
|
2738
|
+
"size",
|
|
2739
|
+
"color",
|
|
2740
|
+
"blip-count"
|
|
2741
|
+
];
|
|
2742
|
+
}
|
|
2743
|
+
connectedCallback() {
|
|
2744
|
+
this.ctrl = ye(this, xi(this));
|
|
2745
|
+
}
|
|
2746
|
+
disconnectedCallback() {
|
|
2747
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2748
|
+
}
|
|
2749
|
+
attributeChangedCallback() {
|
|
2750
|
+
this.ctrl?.update(xi(this));
|
|
2751
|
+
}
|
|
2752
|
+
};
|
|
2753
|
+
typeof customElements < "u" && !customElements.get("cos-radar-scan") && customElements.define(bi, Si);
|
|
2754
|
+
//#endregion
|
|
2755
|
+
//#region src/components/redPacketRain/element/index.ts
|
|
2756
|
+
var Ci = "cos-red-packet-rain";
|
|
2757
|
+
function wi(e) {
|
|
2758
|
+
let t = {};
|
|
2759
|
+
if (e.hasAttribute("grabbed-label") && (t.grabbedLabel = e.getAttribute("grabbed-label") ?? void 0), e.hasAttribute("ended-text") && (t.endedText = e.getAttribute("ended-text") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("auto")) {
|
|
2760
|
+
let n = e.getAttribute("auto");
|
|
2761
|
+
t.auto = n !== "false" && n !== "0";
|
|
2762
|
+
}
|
|
2763
|
+
return t.onGrab = (...t) => {
|
|
2764
|
+
e.dispatchEvent(new CustomEvent("grab", {
|
|
2765
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2766
|
+
bubbles: !0
|
|
2767
|
+
}));
|
|
2768
|
+
}, t.onEnd = (...t) => {
|
|
2769
|
+
e.dispatchEvent(new CustomEvent("end", {
|
|
2770
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
2771
|
+
bubbles: !0
|
|
2772
|
+
}));
|
|
2773
|
+
}, t;
|
|
2774
|
+
}
|
|
2775
|
+
var Ti = class extends HTMLElement {
|
|
2776
|
+
ctrl = null;
|
|
2777
|
+
static get observedAttributes() {
|
|
2778
|
+
return [
|
|
2779
|
+
"width",
|
|
2780
|
+
"height",
|
|
2781
|
+
"fill",
|
|
2782
|
+
"duration",
|
|
2783
|
+
"auto",
|
|
2784
|
+
"grabbed-label",
|
|
2785
|
+
"ended-text",
|
|
2786
|
+
"hint"
|
|
2787
|
+
];
|
|
2788
|
+
}
|
|
2789
|
+
connectedCallback() {
|
|
2790
|
+
this.ctrl = at(this, wi(this));
|
|
2791
|
+
}
|
|
2792
|
+
disconnectedCallback() {
|
|
2793
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2794
|
+
}
|
|
2795
|
+
attributeChangedCallback() {
|
|
2796
|
+
this.ctrl?.update(wi(this));
|
|
2797
|
+
}
|
|
2798
|
+
start() {
|
|
2799
|
+
return this.ctrl?.start();
|
|
2800
|
+
}
|
|
2801
|
+
stop() {
|
|
2802
|
+
return this.ctrl?.stop();
|
|
2803
|
+
}
|
|
2804
|
+
reset() {
|
|
2805
|
+
return this.ctrl?.reset();
|
|
2806
|
+
}
|
|
2807
|
+
};
|
|
2808
|
+
typeof customElements < "u" && !customElements.get("cos-red-packet-rain") && customElements.define(Ci, Ti);
|
|
2809
|
+
//#endregion
|
|
2810
|
+
//#region src/components/returnCity/element/index.ts
|
|
2811
|
+
var Ei = "cos-return-city";
|
|
2812
|
+
function Di(e) {
|
|
2813
|
+
let t = {};
|
|
2814
|
+
return e.hasAttribute("star-count") && (t.starCount = Number(e.getAttribute("star-count"))), e.hasAttribute("glass-count") && (t.glassCount = Number(e.getAttribute("glass-count"))), e.hasAttribute("glass-radius") && (t.glassRadius = Number(e.getAttribute("glass-radius"))), t;
|
|
2815
|
+
}
|
|
2816
|
+
var Oi = class extends HTMLElement {
|
|
2817
|
+
ctrl = null;
|
|
2818
|
+
static get observedAttributes() {
|
|
2819
|
+
return [
|
|
2820
|
+
"star-count",
|
|
2821
|
+
"glass-count",
|
|
2822
|
+
"glass-radius"
|
|
2823
|
+
];
|
|
2824
|
+
}
|
|
2825
|
+
connectedCallback() {
|
|
2826
|
+
this.ctrl = n(this, Di(this));
|
|
2827
|
+
}
|
|
2828
|
+
disconnectedCallback() {
|
|
2829
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2830
|
+
}
|
|
2831
|
+
attributeChangedCallback() {
|
|
2832
|
+
this.ctrl?.update(Di(this));
|
|
2833
|
+
}
|
|
2834
|
+
};
|
|
2835
|
+
typeof customElements < "u" && !customElements.get("cos-return-city") && customElements.define(Ei, Oi);
|
|
2836
|
+
//#endregion
|
|
2837
|
+
//#region src/components/rippleWater/element/index.ts
|
|
2838
|
+
var ki = "cos-ripple-water";
|
|
2839
|
+
function Ai(e) {
|
|
2840
|
+
let t = {};
|
|
2841
|
+
if (e.hasAttribute("from-color") && (t.fromColor = e.getAttribute("from-color") ?? void 0), e.hasAttribute("to-color") && (t.toColor = e.getAttribute("to-color") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("wave-amplitude") && (t.waveAmplitude = Number(e.getAttribute("wave-amplitude"))), e.hasAttribute("wave-speed") && (t.waveSpeed = Number(e.getAttribute("wave-speed"))), e.hasAttribute("shimmer") && (t.shimmer = Number(e.getAttribute("shimmer"))), e.hasAttribute("reflection") && (t.reflection = Number(e.getAttribute("reflection"))), e.hasAttribute("ripple-strength") && (t.rippleStrength = Number(e.getAttribute("ripple-strength"))), e.hasAttribute("ripple-radius") && (t.rippleRadius = Number(e.getAttribute("ripple-radius"))), e.hasAttribute("damping") && (t.damping = Number(e.getAttribute("damping"))), e.hasAttribute("spread") && (t.spread = Number(e.getAttribute("spread"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
|
|
2842
|
+
let n = e.getAttribute("interactive");
|
|
2843
|
+
t.interactive = n !== "false" && n !== "0";
|
|
2844
|
+
}
|
|
2845
|
+
if (e.hasAttribute("show-hint")) {
|
|
2846
|
+
let n = e.getAttribute("show-hint");
|
|
2847
|
+
t.showHint = n !== "false" && n !== "0";
|
|
2848
|
+
}
|
|
2849
|
+
return t;
|
|
2850
|
+
}
|
|
2851
|
+
var ji = class extends HTMLElement {
|
|
2852
|
+
ctrl = null;
|
|
2853
|
+
static get observedAttributes() {
|
|
2854
|
+
return [
|
|
2855
|
+
"width",
|
|
2856
|
+
"height",
|
|
2857
|
+
"fill",
|
|
2858
|
+
"from-color",
|
|
2859
|
+
"to-color",
|
|
2860
|
+
"color",
|
|
2861
|
+
"wave-amplitude",
|
|
2862
|
+
"wave-speed",
|
|
2863
|
+
"shimmer",
|
|
2864
|
+
"reflection",
|
|
2865
|
+
"ripple-strength",
|
|
2866
|
+
"ripple-radius",
|
|
2867
|
+
"damping",
|
|
2868
|
+
"spread",
|
|
2869
|
+
"interactive",
|
|
2870
|
+
"show-hint",
|
|
2871
|
+
"hint"
|
|
2872
|
+
];
|
|
2873
|
+
}
|
|
2874
|
+
connectedCallback() {
|
|
2875
|
+
this.ctrl = Tt(this, Ai(this));
|
|
2876
|
+
}
|
|
2877
|
+
disconnectedCallback() {
|
|
2878
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2879
|
+
}
|
|
2880
|
+
attributeChangedCallback() {
|
|
2881
|
+
this.ctrl?.update(Ai(this));
|
|
2882
|
+
}
|
|
2883
|
+
};
|
|
2884
|
+
typeof customElements < "u" && !customElements.get("cos-ripple-water") && customElements.define(ki, ji);
|
|
2885
|
+
//#endregion
|
|
2886
|
+
//#region src/components/ropeChain/element/index.ts
|
|
2887
|
+
var Mi = "cos-rope-chain";
|
|
2888
|
+
function Ni(e) {
|
|
2889
|
+
let t = {};
|
|
2890
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("segments") && (t.segments = Number(e.getAttribute("segments"))), e.hasAttribute("gravity") && (t.gravity = Number(e.getAttribute("gravity"))), t;
|
|
2891
|
+
}
|
|
2892
|
+
var Pi = class extends HTMLElement {
|
|
2893
|
+
ctrl = null;
|
|
2894
|
+
static get observedAttributes() {
|
|
2895
|
+
return [
|
|
2896
|
+
"width",
|
|
2897
|
+
"height",
|
|
2898
|
+
"segments",
|
|
2899
|
+
"color",
|
|
2900
|
+
"gravity"
|
|
2901
|
+
];
|
|
2902
|
+
}
|
|
2903
|
+
connectedCallback() {
|
|
2904
|
+
this.ctrl = st(this, Ni(this));
|
|
2905
|
+
}
|
|
2906
|
+
disconnectedCallback() {
|
|
2907
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2908
|
+
}
|
|
2909
|
+
attributeChangedCallback() {
|
|
2910
|
+
this.ctrl?.update(Ni(this));
|
|
2911
|
+
}
|
|
2912
|
+
};
|
|
2913
|
+
typeof customElements < "u" && !customElements.get("cos-rope-chain") && customElements.define(Mi, Pi);
|
|
2914
|
+
//#endregion
|
|
2915
|
+
//#region src/components/rotatingText/element/index.ts
|
|
2916
|
+
var Fi = "cos-rotating-text";
|
|
2917
|
+
function H(e) {
|
|
2918
|
+
let t = {};
|
|
2919
|
+
if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("highlight-color") && (t.highlightColor = e.getAttribute("highlight-color") ?? void 0), e.hasAttribute("interval") && (t.interval = Number(e.getAttribute("interval"))), e.hasAttribute("stagger") && (t.stagger = Number(e.getAttribute("stagger"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("texts")) try {
|
|
2920
|
+
t.texts = JSON.parse(e.getAttribute("texts") ?? "null");
|
|
2921
|
+
} catch {}
|
|
2922
|
+
let n = e._texts;
|
|
2923
|
+
return n !== void 0 && (t.texts = n), t;
|
|
2924
|
+
}
|
|
2925
|
+
var Ii = class extends HTMLElement {
|
|
2926
|
+
ctrl = null;
|
|
2927
|
+
_texts;
|
|
2928
|
+
get texts() {
|
|
2929
|
+
return this._texts;
|
|
2930
|
+
}
|
|
2931
|
+
set texts(e) {
|
|
2932
|
+
this._texts = e, this.ctrl?.update(H(this));
|
|
2933
|
+
}
|
|
2934
|
+
static get observedAttributes() {
|
|
2935
|
+
return [
|
|
2936
|
+
"texts",
|
|
2937
|
+
"interval",
|
|
2938
|
+
"stagger",
|
|
2939
|
+
"duration",
|
|
2940
|
+
"font-size",
|
|
2941
|
+
"color",
|
|
2942
|
+
"highlight-color"
|
|
2943
|
+
];
|
|
2944
|
+
}
|
|
2945
|
+
connectedCallback() {
|
|
2946
|
+
this.ctrl = Ce(this, H(this));
|
|
2947
|
+
}
|
|
2948
|
+
disconnectedCallback() {
|
|
2949
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2950
|
+
}
|
|
2951
|
+
attributeChangedCallback() {
|
|
2952
|
+
this.ctrl?.update(H(this));
|
|
2953
|
+
}
|
|
2954
|
+
};
|
|
2955
|
+
typeof customElements < "u" && !customElements.get("cos-rotating-text") && customElements.define(Fi, Ii);
|
|
2956
|
+
//#endregion
|
|
2957
|
+
//#region src/components/sandFall/element/index.ts
|
|
2958
|
+
var Li = "cos-sand-fall";
|
|
2959
|
+
function U(e) {
|
|
2960
|
+
let t = {};
|
|
2961
|
+
if (e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("clear-text") && (t.clearText = e.getAttribute("clear-text") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("cell-size") && (t.cellSize = Number(e.getAttribute("cell-size"))), e.hasAttribute("spawn-rate") && (t.spawnRate = Number(e.getAttribute("spawn-rate"))), e.hasAttribute("colors")) try {
|
|
2962
|
+
t.colors = JSON.parse(e.getAttribute("colors") ?? "null");
|
|
2963
|
+
} catch {}
|
|
2964
|
+
let n = e._colors;
|
|
2965
|
+
return n !== void 0 && (t.colors = n), t;
|
|
2966
|
+
}
|
|
2967
|
+
var Ri = class extends HTMLElement {
|
|
2968
|
+
ctrl = null;
|
|
2969
|
+
_colors;
|
|
2970
|
+
get colors() {
|
|
2971
|
+
return this._colors;
|
|
2972
|
+
}
|
|
2973
|
+
set colors(e) {
|
|
2974
|
+
this._colors = e, this.ctrl?.update(U(this));
|
|
2975
|
+
}
|
|
2976
|
+
static get observedAttributes() {
|
|
2977
|
+
return [
|
|
2978
|
+
"width",
|
|
2979
|
+
"height",
|
|
2980
|
+
"cell-size",
|
|
2981
|
+
"colors",
|
|
2982
|
+
"spawn-rate",
|
|
2983
|
+
"hint",
|
|
2984
|
+
"clear-text"
|
|
2985
|
+
];
|
|
2986
|
+
}
|
|
2987
|
+
connectedCallback() {
|
|
2988
|
+
this.ctrl = Ke(this, U(this));
|
|
2989
|
+
}
|
|
2990
|
+
disconnectedCallback() {
|
|
2991
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
2992
|
+
}
|
|
2993
|
+
attributeChangedCallback() {
|
|
2994
|
+
this.ctrl?.update(U(this));
|
|
2995
|
+
}
|
|
2996
|
+
};
|
|
2997
|
+
typeof customElements < "u" && !customElements.get("cos-sand-fall") && customElements.define(Li, Ri);
|
|
2998
|
+
//#endregion
|
|
2999
|
+
//#region src/components/scrambleText/element/index.ts
|
|
3000
|
+
var zi = "cos-scramble-text";
|
|
3001
|
+
function Bi(e) {
|
|
3002
|
+
let t = {};
|
|
3003
|
+
return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("charset") && (t.charset = e.getAttribute("charset") ?? void 0), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), t;
|
|
3004
|
+
}
|
|
3005
|
+
var Vi = class extends HTMLElement {
|
|
3006
|
+
ctrl = null;
|
|
3007
|
+
static get observedAttributes() {
|
|
3008
|
+
return [
|
|
3009
|
+
"text",
|
|
3010
|
+
"duration",
|
|
3011
|
+
"charset"
|
|
3012
|
+
];
|
|
3013
|
+
}
|
|
3014
|
+
connectedCallback() {
|
|
3015
|
+
this.ctrl = ne(this, Bi(this));
|
|
3016
|
+
}
|
|
3017
|
+
disconnectedCallback() {
|
|
3018
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3019
|
+
}
|
|
3020
|
+
attributeChangedCallback() {
|
|
3021
|
+
this.ctrl?.update(Bi(this));
|
|
3022
|
+
}
|
|
3023
|
+
};
|
|
3024
|
+
typeof customElements < "u" && !customElements.get("cos-scramble-text") && customElements.define(zi, Vi);
|
|
3025
|
+
//#endregion
|
|
3026
|
+
//#region src/components/scratchCard/element/index.ts
|
|
3027
|
+
var Hi = "cos-scratch-card";
|
|
3028
|
+
function Ui(e) {
|
|
3029
|
+
let t = {};
|
|
3030
|
+
return e.hasAttribute("cover-color") && (t.coverColor = e.getAttribute("cover-color") ?? void 0), e.hasAttribute("prize") && (t.prize = e.getAttribute("prize") ?? void 0), e.hasAttribute("cover-text") && (t.coverText = e.getAttribute("cover-text") ?? void 0), e.hasAttribute("reveal-threshold") && (t.revealThreshold = Number(e.getAttribute("reveal-threshold"))), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), t.onReveal = (...t) => {
|
|
3031
|
+
e.dispatchEvent(new CustomEvent("reveal", {
|
|
3032
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
3033
|
+
bubbles: !0
|
|
3034
|
+
}));
|
|
3035
|
+
}, t;
|
|
3036
|
+
}
|
|
3037
|
+
var Wi = class extends HTMLElement {
|
|
3038
|
+
ctrl = null;
|
|
3039
|
+
static get observedAttributes() {
|
|
3040
|
+
return [
|
|
3041
|
+
"cover-color",
|
|
3042
|
+
"prize",
|
|
3043
|
+
"cover-text",
|
|
3044
|
+
"reveal-threshold",
|
|
3045
|
+
"width",
|
|
3046
|
+
"height"
|
|
3047
|
+
];
|
|
3048
|
+
}
|
|
3049
|
+
connectedCallback() {
|
|
3050
|
+
this.ctrl = Ae(this, Ui(this));
|
|
3051
|
+
}
|
|
3052
|
+
disconnectedCallback() {
|
|
3053
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3054
|
+
}
|
|
3055
|
+
attributeChangedCallback() {
|
|
3056
|
+
this.ctrl?.update(Ui(this));
|
|
3057
|
+
}
|
|
3058
|
+
reset() {
|
|
3059
|
+
return this.ctrl?.reset();
|
|
3060
|
+
}
|
|
3061
|
+
reveal() {
|
|
3062
|
+
return this.ctrl?.reveal();
|
|
3063
|
+
}
|
|
3064
|
+
};
|
|
3065
|
+
typeof customElements < "u" && !customElements.get("cos-scratch-card") && customElements.define(Hi, Wi);
|
|
3066
|
+
//#endregion
|
|
3067
|
+
//#region src/components/shinyText/element/index.ts
|
|
3068
|
+
var Gi = "cos-shiny-text";
|
|
3069
|
+
function Ki(e) {
|
|
3070
|
+
let t = {};
|
|
3071
|
+
return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("shine-color") && (t.shineColor = e.getAttribute("shine-color") ?? void 0), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t.disabled = e.hasAttribute("disabled"), t;
|
|
3072
|
+
}
|
|
3073
|
+
var qi = class extends HTMLElement {
|
|
3074
|
+
ctrl = null;
|
|
3075
|
+
static get observedAttributes() {
|
|
3076
|
+
return [
|
|
3077
|
+
"text",
|
|
3078
|
+
"speed",
|
|
3079
|
+
"color",
|
|
3080
|
+
"shine-color",
|
|
3081
|
+
"font-size",
|
|
3082
|
+
"disabled"
|
|
3083
|
+
];
|
|
3084
|
+
}
|
|
3085
|
+
connectedCallback() {
|
|
3086
|
+
this.ctrl = oe(this, Ki(this));
|
|
3087
|
+
}
|
|
3088
|
+
disconnectedCallback() {
|
|
3089
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3090
|
+
}
|
|
3091
|
+
attributeChangedCallback() {
|
|
3092
|
+
this.ctrl?.update(Ki(this));
|
|
3093
|
+
}
|
|
3094
|
+
};
|
|
3095
|
+
typeof customElements < "u" && !customElements.get("cos-shiny-text") && customElements.define(Gi, qi);
|
|
3096
|
+
//#endregion
|
|
3097
|
+
//#region src/components/slotMachine/element/index.ts
|
|
3098
|
+
var Ji = "cos-slot-machine";
|
|
3099
|
+
function W(e) {
|
|
3100
|
+
let t = {};
|
|
3101
|
+
if (e.hasAttribute("start-text") && (t.startText = e.getAttribute("start-text") ?? void 0), e.hasAttribute("button-text") && (t.buttonText = e.getAttribute("button-text") ?? void 0), e.hasAttribute("spinning-text") && (t.spinningText = e.getAttribute("spinning-text") ?? void 0), e.hasAttribute("jackpot-text") && (t.jackpotText = e.getAttribute("jackpot-text") ?? void 0), e.hasAttribute("result-prefix") && (t.resultPrefix = e.getAttribute("result-prefix") ?? void 0), e.hasAttribute("spin-duration") && (t.spinDuration = Number(e.getAttribute("spin-duration"))), e.hasAttribute("symbols")) try {
|
|
3102
|
+
t.symbols = JSON.parse(e.getAttribute("symbols") ?? "null");
|
|
3103
|
+
} catch {}
|
|
3104
|
+
let n = e._symbols;
|
|
3105
|
+
if (n !== void 0 && (t.symbols = n), e.hasAttribute("target-results")) try {
|
|
3106
|
+
t.targetResults = JSON.parse(e.getAttribute("target-results") ?? "null");
|
|
3107
|
+
} catch {}
|
|
3108
|
+
let r = e._targetResults;
|
|
3109
|
+
return r !== void 0 && (t.targetResults = r), t.onSpinEnd = (...t) => {
|
|
3110
|
+
e.dispatchEvent(new CustomEvent("spin-end", {
|
|
3111
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
3112
|
+
bubbles: !0
|
|
3113
|
+
}));
|
|
3114
|
+
}, t;
|
|
3115
|
+
}
|
|
3116
|
+
var Yi = class extends HTMLElement {
|
|
3117
|
+
ctrl = null;
|
|
3118
|
+
_symbols;
|
|
3119
|
+
get symbols() {
|
|
3120
|
+
return this._symbols;
|
|
3121
|
+
}
|
|
3122
|
+
set symbols(e) {
|
|
3123
|
+
this._symbols = e, this.ctrl?.update(W(this));
|
|
3124
|
+
}
|
|
3125
|
+
_targetResults;
|
|
3126
|
+
get targetResults() {
|
|
3127
|
+
return this._targetResults;
|
|
3128
|
+
}
|
|
3129
|
+
set targetResults(e) {
|
|
3130
|
+
this._targetResults = e, this.ctrl?.update(W(this));
|
|
3131
|
+
}
|
|
3132
|
+
static get observedAttributes() {
|
|
3133
|
+
return [
|
|
3134
|
+
"symbols",
|
|
3135
|
+
"spin-duration",
|
|
3136
|
+
"target-results",
|
|
3137
|
+
"start-text",
|
|
3138
|
+
"button-text",
|
|
3139
|
+
"spinning-text",
|
|
3140
|
+
"jackpot-text",
|
|
3141
|
+
"result-prefix"
|
|
3142
|
+
];
|
|
3143
|
+
}
|
|
3144
|
+
connectedCallback() {
|
|
3145
|
+
this.ctrl = Dt(this, W(this));
|
|
3146
|
+
}
|
|
3147
|
+
disconnectedCallback() {
|
|
3148
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3149
|
+
}
|
|
3150
|
+
attributeChangedCallback() {
|
|
3151
|
+
this.ctrl?.update(W(this));
|
|
3152
|
+
}
|
|
3153
|
+
spin(e) {
|
|
3154
|
+
return this.ctrl?.spin(e);
|
|
3155
|
+
}
|
|
3156
|
+
reset() {
|
|
3157
|
+
return this.ctrl?.reset();
|
|
3158
|
+
}
|
|
3159
|
+
};
|
|
3160
|
+
typeof customElements < "u" && !customElements.get("cos-slot-machine") && customElements.define(Ji, Yi);
|
|
3161
|
+
//#endregion
|
|
3162
|
+
//#region src/components/smokeFog/element/index.ts
|
|
3163
|
+
var Xi = "cos-smoke-fog";
|
|
3164
|
+
function Zi(e) {
|
|
3165
|
+
let t = {};
|
|
3166
|
+
if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("background-color") && (t.backgroundColor = e.getAttribute("background-color") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("density") && (t.density = Number(e.getAttribute("density"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("disperse-strength") && (t.disperseStrength = Number(e.getAttribute("disperse-strength"))), e.hasAttribute("disperse-radius") && (t.disperseRadius = Number(e.getAttribute("disperse-radius"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
|
|
3167
|
+
let n = e.getAttribute("interactive");
|
|
3168
|
+
t.interactive = n !== "false" && n !== "0";
|
|
3169
|
+
}
|
|
3170
|
+
return t;
|
|
3171
|
+
}
|
|
3172
|
+
var Qi = class extends HTMLElement {
|
|
3173
|
+
ctrl = null;
|
|
3174
|
+
static get observedAttributes() {
|
|
3175
|
+
return [
|
|
3176
|
+
"width",
|
|
3177
|
+
"height",
|
|
3178
|
+
"fill",
|
|
3179
|
+
"density",
|
|
3180
|
+
"color",
|
|
3181
|
+
"background-color",
|
|
3182
|
+
"speed",
|
|
3183
|
+
"disperse-strength",
|
|
3184
|
+
"disperse-radius",
|
|
3185
|
+
"interactive",
|
|
3186
|
+
"aria-label"
|
|
3187
|
+
];
|
|
3188
|
+
}
|
|
3189
|
+
connectedCallback() {
|
|
3190
|
+
this.ctrl = Pe(this, Zi(this));
|
|
3191
|
+
}
|
|
3192
|
+
disconnectedCallback() {
|
|
3193
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3194
|
+
}
|
|
3195
|
+
attributeChangedCallback() {
|
|
3196
|
+
this.ctrl?.update(Zi(this));
|
|
3197
|
+
}
|
|
3198
|
+
};
|
|
3199
|
+
typeof customElements < "u" && !customElements.get("cos-smoke-fog") && customElements.define(Xi, Qi);
|
|
3200
|
+
//#endregion
|
|
3201
|
+
//#region src/components/snowfall/element/index.ts
|
|
3202
|
+
var $i = "cos-snowfall";
|
|
3203
|
+
function G(e) {
|
|
3204
|
+
let t = {};
|
|
3205
|
+
if (e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("count") && (t.count = Number(e.getAttribute("count"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("mode")) try {
|
|
3206
|
+
t.mode = JSON.parse(e.getAttribute("mode") ?? "null");
|
|
3207
|
+
} catch {}
|
|
3208
|
+
let n = e._mode;
|
|
3209
|
+
return n !== void 0 && (t.mode = n), t;
|
|
3210
|
+
}
|
|
3211
|
+
var ea = class extends HTMLElement {
|
|
3212
|
+
ctrl = null;
|
|
3213
|
+
_mode;
|
|
3214
|
+
get mode() {
|
|
3215
|
+
return this._mode;
|
|
3216
|
+
}
|
|
3217
|
+
set mode(e) {
|
|
3218
|
+
this._mode = e, this.ctrl?.update(G(this));
|
|
3219
|
+
}
|
|
3220
|
+
static get observedAttributes() {
|
|
3221
|
+
return [
|
|
3222
|
+
"width",
|
|
3223
|
+
"height",
|
|
3224
|
+
"fill",
|
|
3225
|
+
"mode",
|
|
3226
|
+
"count"
|
|
3227
|
+
];
|
|
3228
|
+
}
|
|
3229
|
+
connectedCallback() {
|
|
3230
|
+
this.ctrl = ce(this, G(this));
|
|
3231
|
+
}
|
|
3232
|
+
disconnectedCallback() {
|
|
3233
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3234
|
+
}
|
|
3235
|
+
attributeChangedCallback() {
|
|
3236
|
+
this.ctrl?.update(G(this));
|
|
3237
|
+
}
|
|
3238
|
+
};
|
|
3239
|
+
typeof customElements < "u" && !customElements.get("cos-snowfall") && customElements.define($i, ea);
|
|
3240
|
+
//#endregion
|
|
3241
|
+
//#region src/components/soapBubbles/element/index.ts
|
|
3242
|
+
var ta = "cos-soap-bubbles";
|
|
3243
|
+
function na(e) {
|
|
3244
|
+
let t = {};
|
|
3245
|
+
if (e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("count") && (t.count = Number(e.getAttribute("count"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), e.hasAttribute("interactive")) {
|
|
3246
|
+
let n = e.getAttribute("interactive");
|
|
3247
|
+
t.interactive = n !== "false" && n !== "0";
|
|
3248
|
+
}
|
|
3249
|
+
return t;
|
|
3250
|
+
}
|
|
3251
|
+
var ra = class extends HTMLElement {
|
|
3252
|
+
ctrl = null;
|
|
3253
|
+
static get observedAttributes() {
|
|
3254
|
+
return [
|
|
3255
|
+
"width",
|
|
3256
|
+
"height",
|
|
3257
|
+
"fill",
|
|
3258
|
+
"count",
|
|
3259
|
+
"speed",
|
|
3260
|
+
"interactive",
|
|
3261
|
+
"aria-label"
|
|
3262
|
+
];
|
|
3263
|
+
}
|
|
3264
|
+
connectedCallback() {
|
|
3265
|
+
this.ctrl = Ie(this, na(this));
|
|
3266
|
+
}
|
|
3267
|
+
disconnectedCallback() {
|
|
3268
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3269
|
+
}
|
|
3270
|
+
attributeChangedCallback() {
|
|
3271
|
+
this.ctrl?.update(na(this));
|
|
3272
|
+
}
|
|
3273
|
+
};
|
|
3274
|
+
typeof customElements < "u" && !customElements.get("cos-soap-bubbles") && customElements.define(ta, ra);
|
|
3275
|
+
//#endregion
|
|
3276
|
+
//#region src/components/solarSystem/element/index.ts
|
|
3277
|
+
var ia = "cos-solar-system";
|
|
3278
|
+
function aa(e) {
|
|
3279
|
+
let t = {};
|
|
3280
|
+
return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.showOrbits = e.hasAttribute("show-orbits"), t;
|
|
3281
|
+
}
|
|
3282
|
+
var oa = class extends HTMLElement {
|
|
3283
|
+
ctrl = null;
|
|
3284
|
+
static get observedAttributes() {
|
|
3285
|
+
return [
|
|
3286
|
+
"width",
|
|
3287
|
+
"height",
|
|
3288
|
+
"speed",
|
|
3289
|
+
"show-orbits"
|
|
3290
|
+
];
|
|
3291
|
+
}
|
|
3292
|
+
connectedCallback() {
|
|
3293
|
+
this.ctrl = pe(this, aa(this));
|
|
3294
|
+
}
|
|
3295
|
+
disconnectedCallback() {
|
|
3296
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3297
|
+
}
|
|
3298
|
+
attributeChangedCallback() {
|
|
3299
|
+
this.ctrl?.update(aa(this));
|
|
3300
|
+
}
|
|
3301
|
+
};
|
|
3302
|
+
typeof customElements < "u" && !customElements.get("cos-solar-system") && customElements.define(ia, oa);
|
|
3303
|
+
//#endregion
|
|
3304
|
+
//#region src/components/speedometer/element/index.ts
|
|
3305
|
+
var sa = "cos-speedometer";
|
|
3306
|
+
function ca(e) {
|
|
3307
|
+
let t = {};
|
|
3308
|
+
return e.hasAttribute("label") && (t.label = e.getAttribute("label") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("value") && (t.value = Number(e.getAttribute("value"))), e.hasAttribute("max") && (t.max = Number(e.getAttribute("max"))), t;
|
|
3309
|
+
}
|
|
3310
|
+
var la = class extends HTMLElement {
|
|
3311
|
+
ctrl = null;
|
|
3312
|
+
static get observedAttributes() {
|
|
3313
|
+
return [
|
|
3314
|
+
"value",
|
|
3315
|
+
"max",
|
|
3316
|
+
"label",
|
|
3317
|
+
"color"
|
|
3318
|
+
];
|
|
3319
|
+
}
|
|
3320
|
+
connectedCallback() {
|
|
3321
|
+
this.ctrl = ie(this, ca(this));
|
|
3322
|
+
}
|
|
3323
|
+
disconnectedCallback() {
|
|
3324
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3325
|
+
}
|
|
3326
|
+
attributeChangedCallback() {
|
|
3327
|
+
this.ctrl?.update(ca(this));
|
|
3328
|
+
}
|
|
3329
|
+
};
|
|
3330
|
+
typeof customElements < "u" && !customElements.get("cos-speedometer") && customElements.define(sa, la);
|
|
3331
|
+
//#endregion
|
|
3332
|
+
//#region src/components/splitReveal/element/index.ts
|
|
3333
|
+
var ua = "cos-split-reveal";
|
|
3334
|
+
function da(e) {
|
|
3335
|
+
let t = {};
|
|
3336
|
+
return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("delay") && (t.delay = Number(e.getAttribute("delay"))), t;
|
|
3337
|
+
}
|
|
3338
|
+
var fa = class extends HTMLElement {
|
|
3339
|
+
ctrl = null;
|
|
3340
|
+
static get observedAttributes() {
|
|
3341
|
+
return [
|
|
3342
|
+
"text",
|
|
3343
|
+
"delay",
|
|
3344
|
+
"color"
|
|
3345
|
+
];
|
|
3346
|
+
}
|
|
3347
|
+
connectedCallback() {
|
|
3348
|
+
this.ctrl = kt(this, da(this));
|
|
3349
|
+
}
|
|
3350
|
+
disconnectedCallback() {
|
|
3351
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3352
|
+
}
|
|
3353
|
+
attributeChangedCallback() {
|
|
3354
|
+
this.ctrl?.update(da(this));
|
|
3355
|
+
}
|
|
3356
|
+
};
|
|
3357
|
+
typeof customElements < "u" && !customElements.get("cos-split-reveal") && customElements.define(ua, fa);
|
|
3358
|
+
//#endregion
|
|
3359
|
+
//#region src/components/splitText/element/index.ts
|
|
3360
|
+
var pa = "cos-split-text";
|
|
3361
|
+
function K(e) {
|
|
3362
|
+
let t = {};
|
|
3363
|
+
if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("stagger") && (t.stagger = Number(e.getAttribute("stagger"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("loop-pause") && (t.loopPause = Number(e.getAttribute("loop-pause"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t.loop = e.hasAttribute("loop"), e.hasAttribute("animation")) try {
|
|
3364
|
+
t.animation = JSON.parse(e.getAttribute("animation") ?? "null");
|
|
3365
|
+
} catch {}
|
|
3366
|
+
let n = e._animation;
|
|
3367
|
+
return n !== void 0 && (t.animation = n), t;
|
|
3368
|
+
}
|
|
3369
|
+
var ma = class extends HTMLElement {
|
|
3370
|
+
ctrl = null;
|
|
3371
|
+
_animation;
|
|
3372
|
+
get animation() {
|
|
3373
|
+
return this._animation;
|
|
3374
|
+
}
|
|
3375
|
+
set animation(e) {
|
|
3376
|
+
this._animation = e, this.ctrl?.update(K(this));
|
|
3377
|
+
}
|
|
3378
|
+
static get observedAttributes() {
|
|
3379
|
+
return [
|
|
3380
|
+
"text",
|
|
3381
|
+
"animation",
|
|
3382
|
+
"stagger",
|
|
3383
|
+
"duration",
|
|
3384
|
+
"loop",
|
|
3385
|
+
"loop-pause",
|
|
3386
|
+
"font-size",
|
|
3387
|
+
"color"
|
|
3388
|
+
];
|
|
3389
|
+
}
|
|
3390
|
+
connectedCallback() {
|
|
3391
|
+
this.ctrl = Ct(this, K(this));
|
|
3392
|
+
}
|
|
3393
|
+
disconnectedCallback() {
|
|
3394
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3395
|
+
}
|
|
3396
|
+
attributeChangedCallback() {
|
|
3397
|
+
this.ctrl?.update(K(this));
|
|
3398
|
+
}
|
|
3399
|
+
};
|
|
3400
|
+
typeof customElements < "u" && !customElements.get("cos-split-text") && customElements.define(pa, ma);
|
|
3401
|
+
//#endregion
|
|
3402
|
+
//#region src/components/spotlight/element/index.ts
|
|
3403
|
+
var ha = "cos-spotlight";
|
|
3404
|
+
function q(e) {
|
|
3405
|
+
let t = {};
|
|
3406
|
+
if (e.hasAttribute("dim-color") && (t.dimColor = e.getAttribute("dim-color") ?? void 0), e.hasAttribute("radius") && (t.radius = Number(e.getAttribute("radius"))), e.hasAttribute("default-content") && (t.defaultContent = e.getAttribute("default-content") ?? void 0), e.hasAttribute("slot-element")) try {
|
|
3407
|
+
t.slotElement = JSON.parse(e.getAttribute("slot-element") ?? "null");
|
|
3408
|
+
} catch {}
|
|
3409
|
+
let n = e._slotElement;
|
|
3410
|
+
return n !== void 0 && (t.slotElement = n), t;
|
|
3411
|
+
}
|
|
3412
|
+
var ga = class extends HTMLElement {
|
|
3413
|
+
ctrl = null;
|
|
3414
|
+
_slotElement;
|
|
3415
|
+
get slotElement() {
|
|
3416
|
+
return this._slotElement;
|
|
3417
|
+
}
|
|
3418
|
+
set slotElement(e) {
|
|
3419
|
+
this._slotElement = e, this.ctrl?.update(q(this));
|
|
3420
|
+
}
|
|
3421
|
+
static get observedAttributes() {
|
|
3422
|
+
return [
|
|
3423
|
+
"radius",
|
|
3424
|
+
"dim-color",
|
|
3425
|
+
"slot-element",
|
|
3426
|
+
"default-content"
|
|
3427
|
+
];
|
|
3428
|
+
}
|
|
3429
|
+
connectedCallback() {
|
|
3430
|
+
this.ctrl = et(this, q(this));
|
|
3431
|
+
}
|
|
3432
|
+
disconnectedCallback() {
|
|
3433
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3434
|
+
}
|
|
3435
|
+
attributeChangedCallback() {
|
|
3436
|
+
this.ctrl?.update(q(this));
|
|
3437
|
+
}
|
|
3438
|
+
getSlot() {
|
|
3439
|
+
return this.ctrl?.getSlot();
|
|
3440
|
+
}
|
|
3441
|
+
};
|
|
3442
|
+
typeof customElements < "u" && !customElements.get("cos-spotlight") && customElements.define(ha, ga);
|
|
3443
|
+
//#endregion
|
|
3444
|
+
//#region src/components/springMass/element/index.ts
|
|
3445
|
+
var _a = "cos-spring-mass";
|
|
3446
|
+
function va(e) {
|
|
3447
|
+
let t = {};
|
|
3448
|
+
return e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("hint") && (t.hint = e.getAttribute("hint") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("cols") && (t.cols = Number(e.getAttribute("cols"))), e.hasAttribute("rows") && (t.rows = Number(e.getAttribute("rows"))), e.hasAttribute("stiffness") && (t.stiffness = Number(e.getAttribute("stiffness"))), e.hasAttribute("damping") && (t.damping = Number(e.getAttribute("damping"))), t;
|
|
3449
|
+
}
|
|
3450
|
+
var ya = class extends HTMLElement {
|
|
3451
|
+
ctrl = null;
|
|
3452
|
+
static get observedAttributes() {
|
|
3453
|
+
return [
|
|
3454
|
+
"width",
|
|
3455
|
+
"height",
|
|
3456
|
+
"cols",
|
|
3457
|
+
"rows",
|
|
3458
|
+
"stiffness",
|
|
3459
|
+
"damping",
|
|
3460
|
+
"color",
|
|
3461
|
+
"hint"
|
|
3462
|
+
];
|
|
3463
|
+
}
|
|
3464
|
+
connectedCallback() {
|
|
3465
|
+
this.ctrl = Ue(this, va(this));
|
|
3466
|
+
}
|
|
3467
|
+
disconnectedCallback() {
|
|
3468
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3469
|
+
}
|
|
3470
|
+
attributeChangedCallback() {
|
|
3471
|
+
this.ctrl?.update(va(this));
|
|
3472
|
+
}
|
|
3473
|
+
};
|
|
3474
|
+
typeof customElements < "u" && !customElements.get("cos-spring-mass") && customElements.define(_a, ya);
|
|
3475
|
+
//#endregion
|
|
3476
|
+
//#region src/components/starfield/element/index.ts
|
|
3477
|
+
var ba = "cos-starfield";
|
|
3478
|
+
function xa(e) {
|
|
3479
|
+
let t = {};
|
|
3480
|
+
return e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("star-count") && (t.starCount = Number(e.getAttribute("star-count"))), e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), t.fill = e.hasAttribute("fill"), t;
|
|
3481
|
+
}
|
|
3482
|
+
var Sa = class extends HTMLElement {
|
|
3483
|
+
ctrl = null;
|
|
3484
|
+
static get observedAttributes() {
|
|
3485
|
+
return [
|
|
3486
|
+
"width",
|
|
3487
|
+
"height",
|
|
3488
|
+
"fill",
|
|
3489
|
+
"star-count",
|
|
3490
|
+
"speed"
|
|
3491
|
+
];
|
|
3492
|
+
}
|
|
3493
|
+
connectedCallback() {
|
|
3494
|
+
this.ctrl = Te(this, xa(this));
|
|
3495
|
+
}
|
|
3496
|
+
disconnectedCallback() {
|
|
3497
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3498
|
+
}
|
|
3499
|
+
attributeChangedCallback() {
|
|
3500
|
+
this.ctrl?.update(xa(this));
|
|
3501
|
+
}
|
|
3502
|
+
};
|
|
3503
|
+
typeof customElements < "u" && !customElements.get("cos-starfield") && customElements.define(ba, Sa);
|
|
3504
|
+
//#endregion
|
|
3505
|
+
//#region src/components/textMorph/element/index.ts
|
|
3506
|
+
var Ca = "cos-text-morph";
|
|
3507
|
+
function J(e) {
|
|
3508
|
+
let t = {};
|
|
3509
|
+
if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("interval") && (t.interval = Number(e.getAttribute("interval"))), e.hasAttribute("duration") && (t.duration = Number(e.getAttribute("duration"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), e.hasAttribute("texts")) try {
|
|
3510
|
+
t.texts = JSON.parse(e.getAttribute("texts") ?? "null");
|
|
3511
|
+
} catch {}
|
|
3512
|
+
let n = e._texts;
|
|
3513
|
+
return n !== void 0 && (t.texts = n), t;
|
|
3514
|
+
}
|
|
3515
|
+
var wa = class extends HTMLElement {
|
|
3516
|
+
ctrl = null;
|
|
3517
|
+
_texts;
|
|
3518
|
+
get texts() {
|
|
3519
|
+
return this._texts;
|
|
3520
|
+
}
|
|
3521
|
+
set texts(e) {
|
|
3522
|
+
this._texts = e, this.ctrl?.update(J(this));
|
|
3523
|
+
}
|
|
3524
|
+
static get observedAttributes() {
|
|
3525
|
+
return [
|
|
3526
|
+
"texts",
|
|
3527
|
+
"interval",
|
|
3528
|
+
"duration",
|
|
3529
|
+
"font-size",
|
|
3530
|
+
"color"
|
|
3531
|
+
];
|
|
3532
|
+
}
|
|
3533
|
+
connectedCallback() {
|
|
3534
|
+
this.ctrl = ut(this, J(this));
|
|
3535
|
+
}
|
|
3536
|
+
disconnectedCallback() {
|
|
3537
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3538
|
+
}
|
|
3539
|
+
attributeChangedCallback() {
|
|
3540
|
+
this.ctrl?.update(J(this));
|
|
3541
|
+
}
|
|
3542
|
+
};
|
|
3543
|
+
typeof customElements < "u" && !customElements.get("cos-text-morph") && customElements.define(Ca, wa);
|
|
3544
|
+
//#endregion
|
|
3545
|
+
//#region src/components/timelinePulse/element/index.ts
|
|
3546
|
+
var Ta = "cos-timeline-pulse";
|
|
3547
|
+
function Y(e) {
|
|
3548
|
+
let t = {};
|
|
3549
|
+
if (e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("current") && (t.current = Number(e.getAttribute("current"))), e.hasAttribute("steps")) try {
|
|
3550
|
+
t.steps = JSON.parse(e.getAttribute("steps") ?? "null");
|
|
3551
|
+
} catch {}
|
|
3552
|
+
let n = e._steps;
|
|
3553
|
+
return n !== void 0 && (t.steps = n), t;
|
|
3554
|
+
}
|
|
3555
|
+
var Ea = class extends HTMLElement {
|
|
3556
|
+
ctrl = null;
|
|
3557
|
+
_steps;
|
|
3558
|
+
get steps() {
|
|
3559
|
+
return this._steps;
|
|
3560
|
+
}
|
|
3561
|
+
set steps(e) {
|
|
3562
|
+
this._steps = e, this.ctrl?.update(Y(this));
|
|
3563
|
+
}
|
|
3564
|
+
static get observedAttributes() {
|
|
3565
|
+
return [
|
|
3566
|
+
"steps",
|
|
3567
|
+
"current",
|
|
3568
|
+
"color"
|
|
3569
|
+
];
|
|
3570
|
+
}
|
|
3571
|
+
connectedCallback() {
|
|
3572
|
+
this.ctrl = Me(this, Y(this));
|
|
3573
|
+
}
|
|
3574
|
+
disconnectedCallback() {
|
|
3575
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3576
|
+
}
|
|
3577
|
+
attributeChangedCallback() {
|
|
3578
|
+
this.ctrl?.update(Y(this));
|
|
3579
|
+
}
|
|
3580
|
+
};
|
|
3581
|
+
typeof customElements < "u" && !customElements.get("cos-timeline-pulse") && customElements.define(Ta, Ea);
|
|
3582
|
+
//#endregion
|
|
3583
|
+
//#region src/components/trueFocus/element/index.ts
|
|
3584
|
+
var Da = "cos-true-focus";
|
|
3585
|
+
function Oa(e) {
|
|
3586
|
+
let t = {};
|
|
3587
|
+
return e.hasAttribute("sentence") && (t.sentence = e.getAttribute("sentence") ?? void 0), e.hasAttribute("separator") && (t.separator = e.getAttribute("separator") ?? void 0), e.hasAttribute("border-color") && (t.borderColor = e.getAttribute("border-color") ?? void 0), e.hasAttribute("glow-color") && (t.glowColor = e.getAttribute("glow-color") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("blur-amount") && (t.blurAmount = Number(e.getAttribute("blur-amount"))), e.hasAttribute("animation-duration") && (t.animationDuration = Number(e.getAttribute("animation-duration"))), e.hasAttribute("pause-between-animations") && (t.pauseBetweenAnimations = Number(e.getAttribute("pause-between-animations"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t.manualMode = e.hasAttribute("manual-mode"), t;
|
|
3588
|
+
}
|
|
3589
|
+
var ka = class extends HTMLElement {
|
|
3590
|
+
ctrl = null;
|
|
3591
|
+
static get observedAttributes() {
|
|
3592
|
+
return [
|
|
3593
|
+
"sentence",
|
|
3594
|
+
"separator",
|
|
3595
|
+
"manual-mode",
|
|
3596
|
+
"blur-amount",
|
|
3597
|
+
"border-color",
|
|
3598
|
+
"glow-color",
|
|
3599
|
+
"animation-duration",
|
|
3600
|
+
"pause-between-animations",
|
|
3601
|
+
"font-size",
|
|
3602
|
+
"color"
|
|
3603
|
+
];
|
|
3604
|
+
}
|
|
3605
|
+
connectedCallback() {
|
|
3606
|
+
this.ctrl = ht(this, Oa(this));
|
|
3607
|
+
}
|
|
3608
|
+
disconnectedCallback() {
|
|
3609
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3610
|
+
}
|
|
3611
|
+
attributeChangedCallback() {
|
|
3612
|
+
this.ctrl?.update(Oa(this));
|
|
3613
|
+
}
|
|
3614
|
+
};
|
|
3615
|
+
typeof customElements < "u" && !customElements.get("cos-true-focus") && customElements.define(Da, ka);
|
|
3616
|
+
//#endregion
|
|
3617
|
+
//#region src/components/turntable/element/index.ts
|
|
3618
|
+
var Aa = "cos-turntable";
|
|
3619
|
+
function X(e) {
|
|
3620
|
+
let t = {};
|
|
3621
|
+
if (e.hasAttribute("button-text") && (t.buttonText = e.getAttribute("button-text") ?? void 0), e.hasAttribute("spinning-text") && (t.spinningText = e.getAttribute("spinning-text") ?? void 0), e.hasAttribute("result-prefix") && (t.resultPrefix = e.getAttribute("result-prefix") ?? void 0), e.hasAttribute("size") && (t.size = Number(e.getAttribute("size"))), e.hasAttribute("spin-duration") && (t.spinDuration = Number(e.getAttribute("spin-duration"))), e.hasAttribute("spin-rounds") && (t.spinRounds = Number(e.getAttribute("spin-rounds"))), e.hasAttribute("target-index") && (t.targetIndex = Number(e.getAttribute("target-index"))), e.hasAttribute("prizes")) try {
|
|
3622
|
+
t.prizes = JSON.parse(e.getAttribute("prizes") ?? "null");
|
|
3623
|
+
} catch {}
|
|
3624
|
+
let n = e._prizes;
|
|
3625
|
+
return n !== void 0 && (t.prizes = n), t.onSpinEnd = (...t) => {
|
|
3626
|
+
e.dispatchEvent(new CustomEvent("spin-end", {
|
|
3627
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
3628
|
+
bubbles: !0
|
|
3629
|
+
}));
|
|
3630
|
+
}, t;
|
|
3631
|
+
}
|
|
3632
|
+
var ja = class extends HTMLElement {
|
|
3633
|
+
ctrl = null;
|
|
3634
|
+
_prizes;
|
|
3635
|
+
get prizes() {
|
|
3636
|
+
return this._prizes;
|
|
3637
|
+
}
|
|
3638
|
+
set prizes(e) {
|
|
3639
|
+
this._prizes = e, this.ctrl?.update(X(this));
|
|
3640
|
+
}
|
|
3641
|
+
static get observedAttributes() {
|
|
3642
|
+
return [
|
|
3643
|
+
"prizes",
|
|
3644
|
+
"size",
|
|
3645
|
+
"spin-duration",
|
|
3646
|
+
"spin-rounds",
|
|
3647
|
+
"target-index",
|
|
3648
|
+
"button-text",
|
|
3649
|
+
"spinning-text",
|
|
3650
|
+
"result-prefix"
|
|
3651
|
+
];
|
|
3652
|
+
}
|
|
3653
|
+
connectedCallback() {
|
|
3654
|
+
this.ctrl = nt(this, X(this));
|
|
3655
|
+
}
|
|
3656
|
+
disconnectedCallback() {
|
|
3657
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3658
|
+
}
|
|
3659
|
+
attributeChangedCallback() {
|
|
3660
|
+
this.ctrl?.update(X(this));
|
|
3661
|
+
}
|
|
3662
|
+
spin(e) {
|
|
3663
|
+
return this.ctrl?.spin(e);
|
|
3664
|
+
}
|
|
3665
|
+
reset() {
|
|
3666
|
+
return this.ctrl?.reset();
|
|
3667
|
+
}
|
|
3668
|
+
};
|
|
3669
|
+
typeof customElements < "u" && !customElements.get("cos-turntable") && customElements.define(Aa, ja);
|
|
3670
|
+
//#endregion
|
|
3671
|
+
//#region src/components/typewriter/element/index.ts
|
|
3672
|
+
var Ma = "cos-typewriter";
|
|
3673
|
+
function Z(e) {
|
|
3674
|
+
let t = {};
|
|
3675
|
+
if (e.hasAttribute("speed") && (t.speed = Number(e.getAttribute("speed"))), e.hasAttribute("delete-speed") && (t.deleteSpeed = Number(e.getAttribute("delete-speed"))), e.hasAttribute("pause") && (t.pause = Number(e.getAttribute("pause"))), e.hasAttribute("texts")) try {
|
|
3676
|
+
t.texts = JSON.parse(e.getAttribute("texts") ?? "null");
|
|
3677
|
+
} catch {}
|
|
3678
|
+
let n = e._texts;
|
|
3679
|
+
return n !== void 0 && (t.texts = n), t;
|
|
3680
|
+
}
|
|
3681
|
+
var Na = class extends HTMLElement {
|
|
3682
|
+
ctrl = null;
|
|
3683
|
+
_texts;
|
|
3684
|
+
get texts() {
|
|
3685
|
+
return this._texts;
|
|
3686
|
+
}
|
|
3687
|
+
set texts(e) {
|
|
3688
|
+
this._texts = e, this.ctrl?.update(Z(this));
|
|
3689
|
+
}
|
|
3690
|
+
static get observedAttributes() {
|
|
3691
|
+
return [
|
|
3692
|
+
"texts",
|
|
3693
|
+
"speed",
|
|
3694
|
+
"delete-speed",
|
|
3695
|
+
"pause"
|
|
3696
|
+
];
|
|
3697
|
+
}
|
|
3698
|
+
connectedCallback() {
|
|
3699
|
+
this.ctrl = Qe(this, Z(this));
|
|
3700
|
+
}
|
|
3701
|
+
disconnectedCallback() {
|
|
3702
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3703
|
+
}
|
|
3704
|
+
attributeChangedCallback() {
|
|
3705
|
+
this.ctrl?.update(Z(this));
|
|
3706
|
+
}
|
|
3707
|
+
};
|
|
3708
|
+
typeof customElements < "u" && !customElements.get("cos-typewriter") && customElements.define(Ma, Na);
|
|
3709
|
+
//#endregion
|
|
3710
|
+
//#region src/components/waveButton/element/index.ts
|
|
3711
|
+
var Pa = "cos-wave-button";
|
|
3712
|
+
function Q(e) {
|
|
3713
|
+
let t = {};
|
|
3714
|
+
if (e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("button-props")) try {
|
|
3715
|
+
t.buttonProps = JSON.parse(e.getAttribute("button-props") ?? "null");
|
|
3716
|
+
} catch {}
|
|
3717
|
+
let n = e._buttonProps;
|
|
3718
|
+
return n !== void 0 && (t.buttonProps = n), t;
|
|
3719
|
+
}
|
|
3720
|
+
var Fa = class extends HTMLElement {
|
|
3721
|
+
ctrl = null;
|
|
3722
|
+
_buttonProps;
|
|
3723
|
+
get buttonProps() {
|
|
3724
|
+
return this._buttonProps;
|
|
3725
|
+
}
|
|
3726
|
+
set buttonProps(e) {
|
|
3727
|
+
this._buttonProps = e, this.ctrl?.update(Q(this));
|
|
3728
|
+
}
|
|
3729
|
+
static get observedAttributes() {
|
|
3730
|
+
return [
|
|
3731
|
+
"text",
|
|
3732
|
+
"color",
|
|
3733
|
+
"button-props"
|
|
3734
|
+
];
|
|
3735
|
+
}
|
|
3736
|
+
connectedCallback() {
|
|
3737
|
+
this.ctrl = Ye(this, Q(this));
|
|
3738
|
+
}
|
|
3739
|
+
disconnectedCallback() {
|
|
3740
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3741
|
+
}
|
|
3742
|
+
attributeChangedCallback() {
|
|
3743
|
+
this.ctrl?.update(Q(this));
|
|
3744
|
+
}
|
|
3745
|
+
getButton() {
|
|
3746
|
+
return this.ctrl?.getButton();
|
|
3747
|
+
}
|
|
3748
|
+
};
|
|
3749
|
+
typeof customElements < "u" && !customElements.get("cos-wave-button") && customElements.define(Pa, Fa);
|
|
3750
|
+
//#endregion
|
|
3751
|
+
//#region src/components/waveText/element/index.ts
|
|
3752
|
+
var Ia = "cos-wave-text";
|
|
3753
|
+
function La(e) {
|
|
3754
|
+
let t = {};
|
|
3755
|
+
return e.hasAttribute("text") && (t.text = e.getAttribute("text") ?? void 0), e.hasAttribute("color") && (t.color = e.getAttribute("color") ?? void 0), e.hasAttribute("amplitude") && (t.amplitude = Number(e.getAttribute("amplitude"))), e.hasAttribute("font-size") && (t.fontSize = Number(e.getAttribute("font-size"))), t;
|
|
3756
|
+
}
|
|
3757
|
+
var Ra = class extends HTMLElement {
|
|
3758
|
+
ctrl = null;
|
|
3759
|
+
static get observedAttributes() {
|
|
3760
|
+
return [
|
|
3761
|
+
"text",
|
|
3762
|
+
"amplitude",
|
|
3763
|
+
"color",
|
|
3764
|
+
"font-size"
|
|
3765
|
+
];
|
|
3766
|
+
}
|
|
3767
|
+
connectedCallback() {
|
|
3768
|
+
this.ctrl = yt(this, La(this));
|
|
3769
|
+
}
|
|
3770
|
+
disconnectedCallback() {
|
|
3771
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3772
|
+
}
|
|
3773
|
+
attributeChangedCallback() {
|
|
3774
|
+
this.ctrl?.update(La(this));
|
|
3775
|
+
}
|
|
3776
|
+
};
|
|
3777
|
+
typeof customElements < "u" && !customElements.get("cos-wave-text") && customElements.define(Ia, Ra);
|
|
3778
|
+
//#endregion
|
|
3779
|
+
//#region src/components/weatherBackground/element/index.ts
|
|
3780
|
+
var za = "cos-weather-background";
|
|
3781
|
+
function $(e) {
|
|
3782
|
+
let t = {};
|
|
3783
|
+
if (e.hasAttribute("time") && (t.time = e.getAttribute("time") ?? void 0), e.hasAttribute("aria-label") && (t.ariaLabel = e.getAttribute("aria-label") ?? void 0), e.hasAttribute("loading-text") && (t.loadingText = e.getAttribute("loading-text") ?? void 0), e.hasAttribute("width") && (t.width = Number(e.getAttribute("width"))), e.hasAttribute("height") && (t.height = Number(e.getAttribute("height"))), e.hasAttribute("latitude") && (t.latitude = Number(e.getAttribute("latitude"))), e.hasAttribute("longitude") && (t.longitude = Number(e.getAttribute("longitude"))), e.hasAttribute("wind-level") && (t.windLevel = Number(e.getAttribute("wind-level"))), e.hasAttribute("rain-level") && (t.rainLevel = Number(e.getAttribute("rain-level"))), e.hasAttribute("snow-level") && (t.snowLevel = Number(e.getAttribute("snow-level"))), e.hasAttribute("hail-level") && (t.hailLevel = Number(e.getAttribute("hail-level"))), e.hasAttribute("fog-level") && (t.fogLevel = Number(e.getAttribute("fog-level"))), e.hasAttribute("smog-level") && (t.smogLevel = Number(e.getAttribute("smog-level"))), t.fill = e.hasAttribute("fill"), t.live = e.hasAttribute("live"), e.hasAttribute("loading")) {
|
|
3784
|
+
let n = e.getAttribute("loading");
|
|
3785
|
+
t.loading = n !== "false" && n !== "0";
|
|
3786
|
+
}
|
|
3787
|
+
if (e.hasAttribute("weather")) {
|
|
3788
|
+
let n = e.getAttribute("weather") ?? "";
|
|
3789
|
+
try {
|
|
3790
|
+
t.weather = JSON.parse(n);
|
|
3791
|
+
} catch {
|
|
3792
|
+
t.weather = n;
|
|
3793
|
+
}
|
|
3794
|
+
}
|
|
3795
|
+
let n = e._weather;
|
|
3796
|
+
return n !== void 0 && (t.weather = n), t.onLiveWeather = (...t) => {
|
|
3797
|
+
e.dispatchEvent(new CustomEvent("live-weather", {
|
|
3798
|
+
detail: t.length <= 1 ? t[0] : t,
|
|
3799
|
+
bubbles: !0
|
|
3800
|
+
}));
|
|
3801
|
+
}, t;
|
|
3802
|
+
}
|
|
3803
|
+
var Ba = class extends HTMLElement {
|
|
3804
|
+
ctrl = null;
|
|
3805
|
+
_weather;
|
|
3806
|
+
get weather() {
|
|
3807
|
+
return this._weather;
|
|
3808
|
+
}
|
|
3809
|
+
set weather(e) {
|
|
3810
|
+
this._weather = e, this.ctrl?.update($(this));
|
|
3811
|
+
}
|
|
3812
|
+
static get observedAttributes() {
|
|
3813
|
+
return [
|
|
3814
|
+
"width",
|
|
3815
|
+
"height",
|
|
3816
|
+
"fill",
|
|
3817
|
+
"weather",
|
|
3818
|
+
"time",
|
|
3819
|
+
"live",
|
|
3820
|
+
"latitude",
|
|
3821
|
+
"longitude",
|
|
3822
|
+
"wind-level",
|
|
3823
|
+
"rain-level",
|
|
3824
|
+
"snow-level",
|
|
3825
|
+
"hail-level",
|
|
3826
|
+
"fog-level",
|
|
3827
|
+
"smog-level",
|
|
3828
|
+
"loading",
|
|
3829
|
+
"aria-label",
|
|
3830
|
+
"loading-text"
|
|
3831
|
+
];
|
|
3832
|
+
}
|
|
3833
|
+
connectedCallback() {
|
|
3834
|
+
this.ctrl = dt(this, $(this));
|
|
3835
|
+
}
|
|
3836
|
+
disconnectedCallback() {
|
|
3837
|
+
this.ctrl?.destroy(), this.ctrl = null;
|
|
3838
|
+
}
|
|
3839
|
+
attributeChangedCallback() {
|
|
3840
|
+
this.ctrl?.update($(this));
|
|
3841
|
+
}
|
|
3842
|
+
};
|
|
3843
|
+
typeof customElements < "u" && !customElements.get("cos-weather-background") && customElements.define(za, Ba);
|
|
3844
|
+
//#endregion
|