2024-10-09 00:46:27 +00:00
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.2.778
package utils
//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
import "strconv"
func SkeletonTempl ( ) templ . Component {
return templruntime . GeneratedTemplate ( func ( templ_7745c5c3_Input templruntime . GeneratedComponentInput ) ( templ_7745c5c3_Err error ) {
templ_7745c5c3_W , ctx := templ_7745c5c3_Input . Writer , templ_7745c5c3_Input . Context
if templ_7745c5c3_CtxErr := ctx . Err ( ) ; templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer , templ_7745c5c3_IsBuffer := templruntime . GetBuffer ( templ_7745c5c3_W )
if ! templ_7745c5c3_IsBuffer {
defer func ( ) {
templ_7745c5c3_BufErr := templruntime . ReleaseBuffer ( templ_7745c5c3_Buffer )
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
} ( )
}
ctx = templ . InitializeContext ( ctx )
templ_7745c5c3_Var1 := templ . GetChildren ( ctx )
if templ_7745c5c3_Var1 == nil {
templ_7745c5c3_Var1 = templ . NopComponent
}
ctx = templ . ClearChildren ( ctx )
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "<!doctype html><html lang=\"es\"><head><meta charset=\"utf-8\"><title>Music-to-go</title><link href=\"/public/css/output.css\" rel=\"stylesheet\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><link rel=\"preconnect\" href=\"https://fonts.googleapis.com\"><link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin><link href=\"https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap\" rel=\"stylesheet\"><script src=\"/public/js/htmx.min.js\" defer></script><script src=\"/public/js/_hyperscript.min.js\" defer></script><script src=\"/public/js/howler.min.js\" defer></script><script defer src=\"https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js\"></script><script src=\"https://unpkg.com/htmx-ext-response-targets@2.0.0/response-targets.js\" defer></script></head><body><main class=\"pb-16\">" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ_7745c5c3_Var1 . Render ( ctx , templ_7745c5c3_Buffer )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "</main></body></html>" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return templ_7745c5c3_Err
} )
}
func MusicPlayer ( ) templ . Component {
return templruntime . GeneratedTemplate ( func ( templ_7745c5c3_Input templruntime . GeneratedComponentInput ) ( templ_7745c5c3_Err error ) {
templ_7745c5c3_W , ctx := templ_7745c5c3_Input . Writer , templ_7745c5c3_Input . Context
if templ_7745c5c3_CtxErr := ctx . Err ( ) ; templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer , templ_7745c5c3_IsBuffer := templruntime . GetBuffer ( templ_7745c5c3_W )
if ! templ_7745c5c3_IsBuffer {
defer func ( ) {
templ_7745c5c3_BufErr := templruntime . ReleaseBuffer ( templ_7745c5c3_Buffer )
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
} ( )
}
ctx = templ . InitializeContext ( ctx )
templ_7745c5c3_Var2 := templ . GetChildren ( ctx )
if templ_7745c5c3_Var2 == nil {
templ_7745c5c3_Var2 = templ . NopComponent
}
ctx = templ . ClearChildren ( ctx )
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "<div id=\"music-player\" class=\"fixed bottom-0 left-0 w-screen border-t bg-c-bg text-c-on-bg border-sky-500 grid grid-cols-[3rem_auto_3rem_3rem] gap-2 p-1 bg-white\" x-data=\"player\"><div class=\"h-12 bg-sky-200 dark:bg-sky-700 rounded\" _=\"on click toggle .hidden on #full-music-player\"><img class=\"rounded\" id=\"music-player-img\" :src=\"queue[idx]? `/covers/${queue[idx]?.albumId}` : ''\"></div><div class=\"w-full overflow-hidden\" _=\"on click toggle .hidden on #full-music-player\"><p id=\"music-player-title\" class=\"overflow-hidden overflow-ellipsis whitespace-nowrap w-full\" x-text=\"queue[idx]?.title ?? '-'\">-</p><p id=\"music-player-artist\" class=\"text-sm opacity-75 overflow-hidden overflow-ellipsis whitespace-nowrap w-full\" x-text=\"queue[idx]?.artist ?? '-'\">-</p></div><div class=\"flex items-center justify-center cursor-pointer relative\" @click=\"togglePlayPause\">" )
2024-10-09 01:53:49 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-10 11:23:49 +00:00
templ_7745c5c3_Err = circleNotchIcon ( 48 ) . Render ( ctx , templ_7745c5c3_Buffer )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = playIcon ( 26 ) . Render ( ctx , templ_7745c5c3_Buffer )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = pauseIcon ( 26 ) . Render ( ctx , templ_7745c5c3_Buffer )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "</div><button id=\"next-button\" class=\"flex items-center justify-center disabled:opacity-50 disabled:cursor-not-allowed\" @click=\"next\" :disabled=\"idx + 1 >= queue.length? true: false\">" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = skipForwardIcon ( 24 ) . Render ( ctx , templ_7745c5c3_Buffer )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "</button>" )
2024-10-19 03:54:31 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = fullMusicPlayer ( ) . Render ( ctx , templ_7745c5c3_Buffer )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "<script>\n\t\tdocument.addEventListener('alpine:init', () => {\n\t\t\tAlpine.data(\"player\", () => ({\n\t\t\t\tinit() {\n\t\t\t\t\twindow.replaceQueueAndPlayAt = (...params) => this.replaceQueueAndPlayAt(...params);\n\t\t\t\t},\n\t\t\t\tqueue: [],\n\t\t\t\tidx: 0,\n\t\t\t\tcurrentSound: null,\n\t\t\t\tnextSound: null,\n\t\t\t\tvolume: 0.1,\n\t\t\t\tplaying: false,\n\t\t\t\tloading: false,\n\t\t\t\tprogress: 0,\n\t\t\t\tlistenerInterval: 0,\n\n\t\t\t\t// sets the queue, and plays the song at idx\n\t\t\t\treplaceQueueAndPlayAt(queue, idx) {\n\t\t\t\t\tthis.queue = queue;\n\t\t\t\t\tthis.idx = idx;\n\t\t\t\t\tthis.play(idx);\n\n\t\t\t\t\t// setup the preload and progress listener\n\t\t\t\t\tconsole.log(\"setting up listener\");\n\t\t\t\t\tclearInterval(this.listenerInterval);\n\t\t\t\t\tthis.listenerInterval = setInterval(() => this.checkDuration(), 1000);\n\t\t\t\t},\n\n\t\t\t\t// Plays the song at the passed idx, sets this.idx to that,\n\t\t\t\t// and plays a preloaded song\n\t\t\t\t// \n\t\t\t\t// If preloaded=true, this function will assume that it is the\n\t\t\t\t// next song. It will trust that idx is correct.\n\t\t\t\tasync play(idx) {\n\t\t\t\t\tconst preloaded = this.nextSound !== null && idx === this.idx + 1;\n\n\t\t\t\t\t// if a song is currently playing\n\t\t\t\t\t// then fade it out before playing the next sound\n\t\t\t\t\tif (this.playing === true \n\t\t\t\t\t\t&& this.currentSound !== null \n\t\t\t\t\t) {\n\t\t\t\t\t\t// this will not trigger when next() is called,\n\t\t\t\t\t\t// because next() sets this.playing=false\n\n\t\t\t\t\t\tthis.currentSound.fade(this.volume, 0.0, 250);\n\t\t\t\t\t\tawait wait(250);\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.currentSound?.unload?.();\n\t\t\t\t\tthis.playing = false;\n\t\t\t\t\tthis.currentSound = null;\n\t\t\t\t\tthis.idx = idx;\n\n\t\t\t\t\t// if a song is preloaded, assume it's the next song and play it\n\t\t\t\t\tif (preloaded === true && this.nextSound !== null) {\n\t\t\t\t\t\tthis.currentSound = this.nextSound;\n\t\t\t\t\t\tthis.nextSound = null;\n\t\t\t\t\t\tthis.currentSound.play();\n\t\t\t\t\t\tthis.playing = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// otherwise, load the song at idx and play it\n\t\t\t\t\t\tconst songId = this.queue[idx].songId;\n\n\t\t\t\t\t\tconst sound = new Howl({\n\t\t\t\t\t\t\tsrc: `https://navidrome.araozu.dev/rest/stream.view?id=${songId}&v=1.13.0&c=music-to-go&u=fernando&s=49805d&t=4148cd1c83ae1bd01334facf4e70a947`,\n\t\t\t\t\t\t\thtml5: true,\n\t\t\t\t\t\t\tvolume: this.volume,\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.currentSound = sound;\n\t\t\t\t\t\tthis.loading = true;\n\t\t\t\t\t\tsound.play();\n\t\t\t\t\t\tsound.once(\"load\", () => {\n\t\t\t\t\t\t\tthis.loading = false;\n\t\t\t\t\t\t\tthis.playing = true;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t// set-up preloading for the next song\n\t\t\t\t\tconst sound = this.currentSound;\n\t\t\t\t\tsound.once(\"play\", () => {\n\t\t\t\t\t\tconst length = sound.duration();\n\t\t\t\t\t\tconst targetLength = length - 5;\n\t\t\t\t\t\tlet preloadInterval;\n\t\t\t\t\t\tpreloadInterval = setInterval(() => {\n\t\t\t\t\t\t\tconst pos = sound.seek();\n\t\t\t\t\t\t\tif (pos > targetLength) {\n\t\t\t\t\t\t\t\tthis.preload();\n\t\t\t\t\t\t\t\tclearInterval(preloadInterval);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t});\n\n\t\t\t\t\t// set-up playing the next song when the current finishes\n\t\t\t\t\tsound.once(\"end\" , ( ) = > { \ n \ t \ t \ t \ t \ t \ tthis . playing = false ; \ n \ t \ t \ t \ t \ t \ tthis . next ( ) ; \ n \ t \ t \ t \ t \ t } ) ; \ n \ t \ t \ t \ t \ tthis . currentSound = sound ; \ n \ t \ t \ t \ t } , \ n \ n \ t \ t \ t \ t // checks the duration of the playing song and:\n\t\t\t\t// - updates the song progress (0-100%)\n\t\t\t\t// - begins preloading\n\t\t\t\tcheckDuration() {\n\t\t\t\t\tconst sound = this.currentSound;\n\t\t\t\t\tif (this.playing) {\n\t\t\t\t\t\tconst length = sound.duration();\n\t\t\t\t\t\tif (length <= 0) return;\n\n\t\t\t\t\t\tconst position = sound.seek();\n\n\t\t\t\t\t\t// preload 5s before the song ends\n\t\t\t\t\t\tif (position >= length - 5 && this.nextSound === null) {\n\t\t\t\t\t
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return templ_7745c5c3_Err
} )
}
2024-10-19 03:54:31 +00:00
func fullMusicPlayer ( ) templ . Component {
2024-10-09 00:46:27 +00:00
return templruntime . GeneratedTemplate ( func ( templ_7745c5c3_Input templruntime . GeneratedComponentInput ) ( templ_7745c5c3_Err error ) {
templ_7745c5c3_W , ctx := templ_7745c5c3_Input . Writer , templ_7745c5c3_Input . Context
if templ_7745c5c3_CtxErr := ctx . Err ( ) ; templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer , templ_7745c5c3_IsBuffer := templruntime . GetBuffer ( templ_7745c5c3_W )
if ! templ_7745c5c3_IsBuffer {
defer func ( ) {
templ_7745c5c3_BufErr := templruntime . ReleaseBuffer ( templ_7745c5c3_Buffer )
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
} ( )
}
ctx = templ . InitializeContext ( ctx )
templ_7745c5c3_Var3 := templ . GetChildren ( ctx )
if templ_7745c5c3_Var3 == nil {
templ_7745c5c3_Var3 = templ . NopComponent
}
ctx = templ . ClearChildren ( ctx )
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "<div id=\"full-music-player\" class=\"fixed top-0 left-0 w-screen h-screen bg-c-bg text-c-on-bg hidden\"><div class=\"flex justify-center py-6\"><div class=\"bg-sky-200 dark:bg-sky-700 rounded w-[20rem] h-[20rem]\"><img class=\"rounded inline-block w-full\" id=\"full-music-player-img\" :src=\"queue[idx]? `/covers/${queue[idx]?.albumId}` : ''\"></div></div><div class=\"text-center\"><div class=\"px-6\"><progress class=\"inline-block w-full\" id=\"song-progress\" aria-label=\"Song progress\" min=\"0\" max=\"100\" :value=\"progress\"></progress></div><div class=\"font-bold text-2xl\" x-text=\"queue[idx]?.title ?? '-'\"></div><div class=\"text-lg\" x-text=\"queue[idx]?.album ?? '-'\"></div><div class=\"text-sm opacity-75\" x-text=\"queue[idx]?.artist ?? '-'\"></div></div><div class=\"flex justify-center gap-4 py-4\"><button id=\"next-button\" class=\"flex items-center justify-center disabled:opacity-50 disabled:cursor-not-allowed px-4\" @click=\"previous\" :disabled=\"idx <= 0? true: false\">" )
2024-10-19 19:24:00 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = skipBackwardIcon ( 24 ) . Render ( ctx , templ_7745c5c3_Buffer )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "</button><div class=\"flex items-center justify-center cursor-pointer relative px-4\" @click=\"togglePlayPause\">" )
2024-10-19 19:24:00 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:44:51 +00:00
templ_7745c5c3_Err = circleNotchIcon ( 56 ) . Render ( ctx , templ_7745c5c3_Buffer )
2024-10-19 19:24:00 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = playIcon ( 38 ) . Render ( ctx , templ_7745c5c3_Buffer )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = pauseIcon ( 38 ) . Render ( ctx , templ_7745c5c3_Buffer )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "</div><button id=\"next-button\" class=\"flex items-center justify-center disabled:opacity-50 disabled:cursor-not-allowed px-4\" @click=\"next\" :disabled=\"idx + 1 >= queue.length? true: false\">" )
2024-10-19 19:24:00 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = skipForwardIcon ( 24 ) . Render ( ctx , templ_7745c5c3_Buffer )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "</button></div><div class=\"absolute bottom-0 w-full grid grid-cols-2 bg-sky-50 dark:bg-sky-950\"><button type=\"button\" class=\"inline-block text-center py-4\">" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-19 03:54:31 +00:00
templ_7745c5c3_Err = playlistIcon ( 24 ) . Render ( ctx , templ_7745c5c3_Buffer )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
2024-10-19 03:54:31 +00:00
return templ_7745c5c3_Err
2024-10-09 00:46:27 +00:00
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "</button> <button type=\"button\" class=\"inline-block text-center py-4\" _=\"on click toggle .hidden on #full-music-player\">" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-19 03:54:31 +00:00
templ_7745c5c3_Err = caretDoubleDownIcon ( 24 ) . Render ( ctx , templ_7745c5c3_Buffer )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "</button></div></div>" )
2024-10-19 03:54:31 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return templ_7745c5c3_Err
} )
}
func playIcon ( size int ) templ . Component {
return templruntime . GeneratedTemplate ( func ( templ_7745c5c3_Input templruntime . GeneratedComponentInput ) ( templ_7745c5c3_Err error ) {
templ_7745c5c3_W , ctx := templ_7745c5c3_Input . Writer , templ_7745c5c3_Input . Context
if templ_7745c5c3_CtxErr := ctx . Err ( ) ; templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer , templ_7745c5c3_IsBuffer := templruntime . GetBuffer ( templ_7745c5c3_W )
if ! templ_7745c5c3_IsBuffer {
defer func ( ) {
templ_7745c5c3_BufErr := templruntime . ReleaseBuffer ( templ_7745c5c3_Buffer )
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
} ( )
}
ctx = templ . InitializeContext ( ctx )
templ_7745c5c3_Var4 := templ . GetChildren ( ctx )
if templ_7745c5c3_Var4 == nil {
templ_7745c5c3_Var4 = templ . NopComponent
}
ctx = templ . ClearChildren ( ctx )
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "<svg id=\"play-icon\" xmlns=\"http://www.w3.org/2000/svg\" width=\"" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var5 string
templ_7745c5c3_Var5 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 331 , Col : 28 }
2024-10-09 00:46:27 +00:00
}
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var5 ) )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" height=\"" )
2024-10-19 03:54:31 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var6 string
templ_7745c5c3_Var6 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 332 , Col : 29 }
2024-10-19 03:54:31 +00:00
}
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var6 ) )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" fill=\"var(--c-on-bg)\" viewBox=\"0 0 256 256\" style=\"--darkreader-inline-fill: #000000;\" data-darkreader-inline-fill=\"\" :style=\"{display: playing? 'none': 'inline-block'}\"><path d=\"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z\"></path></svg>" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return templ_7745c5c3_Err
} )
}
func pauseIcon ( size int ) templ . Component {
return templruntime . GeneratedTemplate ( func ( templ_7745c5c3_Input templruntime . GeneratedComponentInput ) ( templ_7745c5c3_Err error ) {
templ_7745c5c3_W , ctx := templ_7745c5c3_Input . Writer , templ_7745c5c3_Input . Context
if templ_7745c5c3_CtxErr := ctx . Err ( ) ; templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer , templ_7745c5c3_IsBuffer := templruntime . GetBuffer ( templ_7745c5c3_W )
if ! templ_7745c5c3_IsBuffer {
defer func ( ) {
templ_7745c5c3_BufErr := templruntime . ReleaseBuffer ( templ_7745c5c3_Buffer )
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
} ( )
}
ctx = templ . InitializeContext ( ctx )
2024-10-19 03:54:31 +00:00
templ_7745c5c3_Var7 := templ . GetChildren ( ctx )
if templ_7745c5c3_Var7 == nil {
templ_7745c5c3_Var7 = templ . NopComponent
2024-10-09 00:46:27 +00:00
}
ctx = templ . ClearChildren ( ctx )
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "<svg id=\"pause-icon\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"var(--c-on-bg)\" viewBox=\"0 0 256 256\" style=\"--darkreader-inline-fill: #000000;\" data-darkreader-inline-fill=\"\" class=\"hidden\" width=\"" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-19 03:54:31 +00:00
var templ_7745c5c3_Var8 string
templ_7745c5c3_Var8 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 352 , Col : 28 }
2024-10-09 00:46:27 +00:00
}
2024-10-19 03:54:31 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var8 ) )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" height=\"" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-19 03:54:31 +00:00
var templ_7745c5c3_Var9 string
templ_7745c5c3_Var9 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 353 , Col : 29 }
2024-10-09 00:46:27 +00:00
}
2024-10-19 03:54:31 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var9 ) )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" :style=\"{display: playing? 'inline-block': 'none'}\"><path d=\"M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z\"></path></svg>" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return templ_7745c5c3_Err
} )
}
2024-10-19 19:24:00 +00:00
func skipBackwardIcon ( size int ) templ . Component {
2024-10-09 00:46:27 +00:00
return templruntime . GeneratedTemplate ( func ( templ_7745c5c3_Input templruntime . GeneratedComponentInput ) ( templ_7745c5c3_Err error ) {
templ_7745c5c3_W , ctx := templ_7745c5c3_Input . Writer , templ_7745c5c3_Input . Context
if templ_7745c5c3_CtxErr := ctx . Err ( ) ; templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer , templ_7745c5c3_IsBuffer := templruntime . GetBuffer ( templ_7745c5c3_W )
if ! templ_7745c5c3_IsBuffer {
defer func ( ) {
templ_7745c5c3_BufErr := templruntime . ReleaseBuffer ( templ_7745c5c3_Buffer )
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
} ( )
}
ctx = templ . InitializeContext ( ctx )
2024-10-19 03:54:31 +00:00
templ_7745c5c3_Var10 := templ . GetChildren ( ctx )
if templ_7745c5c3_Var10 == nil {
templ_7745c5c3_Var10 = templ . NopComponent
2024-10-09 00:46:27 +00:00
}
ctx = templ . ClearChildren ( ctx )
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-19 03:54:31 +00:00
var templ_7745c5c3_Var11 string
templ_7745c5c3_Var11 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 363 , Col : 28 }
2024-10-09 00:46:27 +00:00
}
2024-10-19 03:54:31 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var11 ) )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" height=\"" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-19 03:54:31 +00:00
var templ_7745c5c3_Var12 string
templ_7745c5c3_Var12 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 364 , Col : 29 }
2024-10-09 00:46:27 +00:00
}
2024-10-19 03:54:31 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var12 ) )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" fill=\"var(--c-on-bg)\" viewBox=\"0 0 256 256\" style=\"--darkreader-inline-fill: #000000;\" data-darkreader-inline-fill=\"\"><path d=\"M208,47.88V208.12a16,16,0,0,1-24.43,13.43L64,146.77V216a8,8,0,0,1-16,0V40a8,8,0,0,1,16,0v69.23L183.57,34.45A15.95,15.95,0,0,1,208,47.88Z\"></path></svg>" )
2024-10-09 00:46:27 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return templ_7745c5c3_Err
} )
}
2024-10-19 19:24:00 +00:00
func skipForwardIcon ( size int ) templ . Component {
2024-10-09 01:53:49 +00:00
return templruntime . GeneratedTemplate ( func ( templ_7745c5c3_Input templruntime . GeneratedComponentInput ) ( templ_7745c5c3_Err error ) {
templ_7745c5c3_W , ctx := templ_7745c5c3_Input . Writer , templ_7745c5c3_Input . Context
if templ_7745c5c3_CtxErr := ctx . Err ( ) ; templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer , templ_7745c5c3_IsBuffer := templruntime . GetBuffer ( templ_7745c5c3_W )
if ! templ_7745c5c3_IsBuffer {
defer func ( ) {
templ_7745c5c3_BufErr := templruntime . ReleaseBuffer ( templ_7745c5c3_Buffer )
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
} ( )
}
ctx = templ . InitializeContext ( ctx )
2024-10-19 03:54:31 +00:00
templ_7745c5c3_Var13 := templ . GetChildren ( ctx )
if templ_7745c5c3_Var13 == nil {
templ_7745c5c3_Var13 = templ . NopComponent
2024-10-09 01:53:49 +00:00
}
ctx = templ . ClearChildren ( ctx )
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"" )
2024-10-09 01:53:49 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-19 03:54:31 +00:00
var templ_7745c5c3_Var14 string
templ_7745c5c3_Var14 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
2024-10-09 01:53:49 +00:00
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 377 , Col : 28 }
2024-10-09 01:53:49 +00:00
}
2024-10-19 03:54:31 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var14 ) )
2024-10-09 01:53:49 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" height=\"" )
2024-10-09 01:53:49 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-19 03:54:31 +00:00
var templ_7745c5c3_Var15 string
templ_7745c5c3_Var15 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
2024-10-09 01:53:49 +00:00
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 378 , Col : 29 }
2024-10-09 01:53:49 +00:00
}
2024-10-19 03:54:31 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var15 ) )
2024-10-09 01:53:49 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" fill=\"var(--c-on-bg)\" viewBox=\"0 0 256 256\" style=\"--darkreader-inline-fill: #000000;\" data-darkreader-inline-fill=\"\"><path d=\"M208,40V216a8,8,0,0,1-16,0V146.77L72.43,221.55A15.95,15.95,0,0,1,48,208.12V47.88A15.95,15.95,0,0,1,72.43,34.45L192,109.23V40a8,8,0,0,1,16,0Z\"></path></svg>" )
2024-10-09 01:53:49 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return templ_7745c5c3_Err
} )
}
2024-10-19 19:24:00 +00:00
func circleNotchIcon ( size int ) templ . Component {
2024-10-19 03:54:31 +00:00
return templruntime . GeneratedTemplate ( func ( templ_7745c5c3_Input templruntime . GeneratedComponentInput ) ( templ_7745c5c3_Err error ) {
templ_7745c5c3_W , ctx := templ_7745c5c3_Input . Writer , templ_7745c5c3_Input . Context
if templ_7745c5c3_CtxErr := ctx . Err ( ) ; templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer , templ_7745c5c3_IsBuffer := templruntime . GetBuffer ( templ_7745c5c3_W )
if ! templ_7745c5c3_IsBuffer {
defer func ( ) {
templ_7745c5c3_BufErr := templruntime . ReleaseBuffer ( templ_7745c5c3_Buffer )
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
} ( )
}
ctx = templ . InitializeContext ( ctx )
templ_7745c5c3_Var16 := templ . GetChildren ( ctx )
if templ_7745c5c3_Var16 == nil {
templ_7745c5c3_Var16 = templ . NopComponent
}
ctx = templ . ClearChildren ( ctx )
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "<svg id=\"spinner\" :style=\"{display: loading? 'inline-block': 'none'}\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"var(--c-on-bg)\" viewBox=\"0 0 256 256\" style=\"--darkreader-inline-fill: #000000;\" data-darkreader-inline-fill=\"\" width=\"" )
2024-10-19 03:54:31 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var17 string
templ_7745c5c3_Var17 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 397 , Col : 28 }
2024-10-19 03:54:31 +00:00
}
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var17 ) )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" height=\"" )
2024-10-19 03:54:31 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var18 string
templ_7745c5c3_Var18 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 398 , Col : 29 }
2024-10-19 03:54:31 +00:00
}
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var18 ) )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" class=\"absolute animate-spin\"><path d=\"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z\"></path></svg>" )
2024-10-19 03:54:31 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return templ_7745c5c3_Err
} )
}
2024-10-19 19:24:00 +00:00
func playlistIcon ( size int ) templ . Component {
2024-10-19 03:54:31 +00:00
return templruntime . GeneratedTemplate ( func ( templ_7745c5c3_Input templruntime . GeneratedComponentInput ) ( templ_7745c5c3_Err error ) {
templ_7745c5c3_W , ctx := templ_7745c5c3_Input . Writer , templ_7745c5c3_Input . Context
if templ_7745c5c3_CtxErr := ctx . Err ( ) ; templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer , templ_7745c5c3_IsBuffer := templruntime . GetBuffer ( templ_7745c5c3_W )
if ! templ_7745c5c3_IsBuffer {
defer func ( ) {
templ_7745c5c3_BufErr := templruntime . ReleaseBuffer ( templ_7745c5c3_Buffer )
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
} ( )
}
ctx = templ . InitializeContext ( ctx )
templ_7745c5c3_Var19 := templ . GetChildren ( ctx )
if templ_7745c5c3_Var19 == nil {
templ_7745c5c3_Var19 = templ . NopComponent
}
ctx = templ . ClearChildren ( ctx )
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "<svg class=\"inline-block\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"var(--c-on-bg)\" viewBox=\"0 0 256 256\" style=\"--darkreader-inline-fill: #000000;\" data-darkreader-inline-fill=\"\" width=\"" )
2024-10-19 03:54:31 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var20 string
templ_7745c5c3_Var20 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 413 , Col : 28 }
2024-10-19 03:54:31 +00:00
}
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var20 ) )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" height=\"" )
2024-10-19 03:54:31 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var21 string
templ_7745c5c3_Var21 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 414 , Col : 29 }
2024-10-19 03:54:31 +00:00
}
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var21 ) )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\"><path d=\"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72H160a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm72,48H40a8,8,0,0,0,0,16h72a8,8,0,0,0,0-16Zm135.66-57.7a8,8,0,0,1-10,5.36L208,122.75V192a32.05,32.05,0,1,1-16-27.69V112a8,8,0,0,1,10.3-7.66l40,12A8,8,0,0,1,247.66,126.3ZM192,192a16,16,0,1,0-16,16A16,16,0,0,0,192,192Z\"></path></svg>" )
2024-10-19 19:24:00 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return templ_7745c5c3_Err
} )
}
func caretDoubleDownIcon ( size int ) templ . Component {
return templruntime . GeneratedTemplate ( func ( templ_7745c5c3_Input templruntime . GeneratedComponentInput ) ( templ_7745c5c3_Err error ) {
templ_7745c5c3_W , ctx := templ_7745c5c3_Input . Writer , templ_7745c5c3_Input . Context
if templ_7745c5c3_CtxErr := ctx . Err ( ) ; templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer , templ_7745c5c3_IsBuffer := templruntime . GetBuffer ( templ_7745c5c3_W )
if ! templ_7745c5c3_IsBuffer {
defer func ( ) {
templ_7745c5c3_BufErr := templruntime . ReleaseBuffer ( templ_7745c5c3_Buffer )
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
} ( )
}
ctx = templ . InitializeContext ( ctx )
templ_7745c5c3_Var22 := templ . GetChildren ( ctx )
if templ_7745c5c3_Var22 == nil {
templ_7745c5c3_Var22 = templ . NopComponent
}
ctx = templ . ClearChildren ( ctx )
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "<svg class=\"inline-block\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"var(--c-on-bg)\" viewBox=\"0 0 256 256\" style=\"--darkreader-inline-fill: #000000;\" data-darkreader-inline-fill=\"\" width=\"" )
2024-10-19 19:24:00 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var23 string
templ_7745c5c3_Var23 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 428 , Col : 28 }
2024-10-19 19:24:00 +00:00
}
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var23 ) )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\" height=\"" )
2024-10-19 19:24:00 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var24 string
templ_7745c5c3_Var24 , templ_7745c5c3_Err = templ . JoinStringErrs ( strconv . Itoa ( size ) )
if templ_7745c5c3_Err != nil {
2024-10-27 22:44:51 +00:00
return templ . Error { Err : templ_7745c5c3_Err , FileName : ` src/utils/utils.templ ` , Line : 429 , Col : 29 }
2024-10-19 19:24:00 +00:00
}
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( templ . EscapeString ( templ_7745c5c3_Var24 ) )
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
2024-10-27 22:55:34 +00:00
_ , templ_7745c5c3_Err = templ_7745c5c3_Buffer . WriteString ( "\"><path d=\"M213.66,130.34a8,8,0,0,1,0,11.32l-80,80a8,8,0,0,1-11.32,0l-80-80a8,8,0,0,1,11.32-11.32L128,204.69l74.34-74.35A8,8,0,0,1,213.66,130.34Zm-91.32,11.32a8,8,0,0,0,11.32,0l80-80a8,8,0,0,0-11.32-11.32L128,124.69,53.66,50.34A8,8,0,0,0,42.34,61.66Z\"></path></svg>" )
2024-10-19 03:54:31 +00:00
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return templ_7745c5c3_Err
} )
}
2024-10-09 00:46:27 +00:00
var _ = templruntime . GeneratedTemplate