@_private(sourceFile: "ColorModel.swift") import OnCue
import func SwiftUI.__designTimeBoolean
import func SwiftUI.__designTimeInteger
import protocol SwiftUI.PreviewProvider
import func SwiftUI.__designTimeString
import func SwiftUI.__designTimeFloat
import struct SwiftUI.EmptyView
import protocol SwiftUI.View
import Foundation
import SwiftUI

extension Color {
    @_dynamicReplacement(for: toHex()) private func __preview__toHex() -> String? {
        #sourceLocation(file: "/Users/pradyun/Code/Apps/OnCue/Shared/ColorModel.swift", line: 46)
        let uic = UIColor(self)
        guard let components = uic.cgColor.components, components.count >= 3 else {
            return nil
        }
        let r = Float(components[__designTimeInteger("#30606.[2].[1].[2].value.arg[0].value.[0].value", fallback: 0)])
        let g = Float(components[__designTimeInteger("#30606.[2].[1].[3].value.arg[0].value.[0].value", fallback: 1)])
        let b = Float(components[__designTimeInteger("#30606.[2].[1].[4].value.arg[0].value.[0].value", fallback: 2)])
        var a = Float(__designTimeFloat("#30606.[2].[1].[5].value.arg[0].value", fallback: 1.0))
        
        if components.count >= 4 {
            a = Float(components[__designTimeInteger("#30606.[2].[1].[6].[0].[0].[0]", fallback: 3)])
        }
        
        if a != Float(1.0) {
            return String(format: __designTimeString("#30606.[2].[1].[7].[0].[0].arg[0].value", fallback: "%02lX%02lX%02lX%02lX"), lroundf(r * __designTimeInteger("#30606.[2].[1].[7].[0].[0].arg[1].value.arg[0].value.[0]", fallback: 255)), lroundf(g * __designTimeInteger("#30606.[2].[1].[7].[0].[0].arg[2].value.arg[0].value.[0]", fallback: 255)), lroundf(b * __designTimeInteger("#30606.[2].[1].[7].[0].[0].arg[3].value.arg[0].value.[0]", fallback: 255)), lroundf(a * __designTimeInteger("#30606.[2].[1].[7].[0].[0].arg[4].value.arg[0].value.[0]", fallback: 255)))
        } else {
            return String(format: __designTimeString("#30606.[2].[1].[7].[1].[0].arg[0].value", fallback: "%02lX%02lX%02lX"), lroundf(r * __designTimeInteger("#30606.[2].[1].[7].[1].[0].arg[1].value.arg[0].value.[0]", fallback: 255)), lroundf(g * __designTimeInteger("#30606.[2].[1].[7].[1].[0].arg[2].value.arg[0].value.[0]", fallback: 255)), lroundf(b * __designTimeInteger("#30606.[2].[1].[7].[1].[0].arg[3].value.arg[0].value.[0]", fallback: 255)))
        }
    
#sourceLocation()
    }
}


