//
//  TSTextGeneralPictureVM.swift
//  AIEmoji
//
//  Created by 100Years on 2025/2/20.
//

import ObjectMapper

let kRandomTextArray:[String] = [
    "Ultra-detailed northern lights over a glacial lake, mirrored reflections with vibrant turquoise and magenta hues, surreal celestial atmosphere, digital painting style with soft glow effects.",
    "Neon-lit cyberpunk night market in a rainy Asian metropolis, holographic food stalls and floating drones, teal-orange color grading, retro-futuristic architecture with glowing Kanji signs",
    "Macro photography of rainbow candy landscape with gummy bear mountains, chocolate river and lollipop trees, hyper-realistic textures under golden hour lighting",
    "Traditional Chinese ink painting style phoenix soaring through misty mountain peaks, dynamic black brushstrokes with crimson accents on rice paper texture",
    "Bioluminescent underwater metropolis with glass dome structures, schools of glowing fish weaving through coral skyscrapers, deep-sea blue palette with neon coral highlights",
    "1950s retro sci-fi movie poster style wallpaper featuring a rocket orbiting Saturn, vintage orange-teal color scheme with halftone textures and hand-drawn typography",
    "Minimalist wallpaper with overlapping translucent 3D geometric shapes in gradient pastel colors, clean negative space, soft shadows and metallic accents, 4K abstract design.",
    "Steampunk floating library with brass gears and clockwork mechanisms, leather-bound books flying through amber-lit fog, Victorian-era architecture blended with retro-futurism",
    "Zen rock garden transformed into cosmic landscape, black sand waves surrounding cratered moon-like stones, starry galaxy reflected in miniature, monochromatic with silver foil accents",
    "Futuristic AI core visualization with flowing golden data streams through transparent quantum circuits, dark background with floating holographic equations, cybernetic glow effect"
]


class TSTextGeneralPictureVM {
    var colDataArray:[TSComponent] = [TSComponent]()

    lazy var enmojiHistorySeciton: TSGenmojiCoLSectionModel = {
        let sectionModel = TSGenmojiCoLSectionModel()
        sectionModel.style = .textPicHistory
        sectionModel.name = "History".localized
        return sectionModel
    }()
    
    init() {
        updateRecentData()
    }
    
    
    func updateRecentData() {
        let listModelArray = TSTextToPicHistory.listModelArray
        if listModelArray.count == 0 {
            colDataArray = []
        }else{
            var array = [TSGenmojiCoLItemModel]()
            listModelArray.forEach { model in
                let itemModel = TSGenmojiCoLItemModel()
                itemModel.dataModel = model
                itemModel.style = .textPicHistory
                array.append(itemModel)
            }
            enmojiHistorySeciton.items = array
            
            colDataArray = [enmojiHistorySeciton]
        }
    }

}
 
extension TSTextGeneralPictureVM {
    func removeAllHistoryList(){
        TSTextToPicHistory.removeAll()
    }
}





