SynthReel/SynthReel/Thirdparty/targeted/foundation/ringTmcd/KWQOllectionEsponseCell.swift
2025-12-08 13:48:40 +08:00

362 lines
13 KiB
Swift

import Foundation
import UIKit
class KWQOllectionEsponseCell: UICollectionViewCell {
private var playerCategory__Byte_6Str: String?
private var strMarginsAttributesString: String!
var model: MTypeAvgation? {
didSet{
coverImageView.sr_setImage(model?.image_url)
let text = String(format: "EP. %@ / EP. %d", model?.current_episode ?? "0", model?.episode_total ?? 0)
setEpisodeText(text)
}
}
lazy var bgImageView = UIImageView(image: UIImage(named: "reachableBottom"))
lazy var bottomImageView = UIImageView(image: UIImage(named: "istoryRightVion"))
lazy var coverImageView: TPRegisterView = {
let imageView = TPRegisterView()
imageView.layer.cornerRadius = 14
imageView.layer.masksToBounds = true
return imageView
}()
lazy var titleLable : UILabel = {
let label = UILabel()
label.textColor = .white
label.font = .systemFont(ofSize: 12)
label.textAlignment = .center
return label
}()
override init(frame: CGRect) {
super.init(frame: frame)
twoReachablePlainAll()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
@discardableResult
func traitResponseRect(controlParameters: Double, sampleDefault_s: Double, ratioRecommend: Double) -> Bool {
var stream2: Float = 3.0
_ = stream2
var progressB: Int = 1
var eviceq: Bool = false
eviceq = (Int(Int(stream2) + progressB)) <= 18
if (progressB & 3) >= 3 || !eviceq {
var family4: Int = 5
var ecommendP: String! = "blurred"
ecommendP.append("\(1)")
family4 ^= ecommendP.count * family4
ecommendP = "\(2)"
repeat {
family4 += 3 + ecommendP.count
if 3563308 == family4 {
break
}
} while (3563308 == family4) && (2 >= (ecommendP.count / (Swift.max(4, 8))))
var mireob: Float = 4.0
family4 &= (Int(mireob > 243021194.0 || mireob < -243021194.0 ? 43.0 : mireob) % (Swift.max(3, 10)))
if 5 == ecommendP.count {
family4 /= Swift.max(5, 1)
}
progressB -= (Int(stream2 > 240738483.0 || stream2 < -240738483.0 ? 92.0 : stream2) | 3)
}
progressB -= progressB - 1
if (Double(Int(stream2) / (Swift.max(3, progressB)))) >= 4.21 {
progressB |= 3 & progressB
}
var vibeoC: String! = "highligthed"
withUnsafeMutablePointer(to: &vibeoC) { pointer in
}
var scroll8: Bool = true
var moreA: [Any]! = [596, 264, 449]
scroll8 = ((moreA.count + (scroll8 ? 17 : moreA.count)) == 17)
moreA.append(moreA.count - 3)
moreA = [1]
var bottomj: Double = 0.0
_ = bottomj
while (scroll8) {
moreA = [1]
break
}
moreA = [(Int(bottomj > 247344902.0 || bottomj < -247344902.0 ? 8.0 : bottomj) - (scroll8 ? 1 : 1))]
bottomj += Double(vibeoC.count)
for _ in 0 ..< 3 {
scroll8 = 38.75 > bottomj
}
var saltq: Int = 2
var radientK: Int = 4
saltq &= (Int(bottomj > 225960200.0 || bottomj < -225960200.0 ? 67.0 : bottomj) ^ 2)
radientK -= ((scroll8 ? 1 : 2) & Int(bottomj > 209117749.0 || bottomj < -209117749.0 ? 48.0 : bottomj))
stream2 *= (Float(vibeoC == (String(cString:[72,0], encoding: .utf8)!) ? vibeoC.count : Int(stream2 > 256722306.0 || stream2 < -256722306.0 ? 86.0 : stream2)))
repeat {
stream2 /= Swift.max(1, Float(progressB))
if 3985696.0 == stream2 {
break
}
} while (3985696.0 == stream2) && (5.38 == (Float(progressB) - stream2) || (stream2 - 5.38) == 1.64)
return eviceq
}
func setEpisodeText(_ text: String) {
var extendLibphonenumber: Bool = traitResponseRect(controlParameters:7728.0, sampleDefault_s:5113.0, ratioRecommend:8817.0)
if extendLibphonenumber {
print("ok")
}
withUnsafeMutablePointer(to: &extendLibphonenumber) { pointer in
_ = pointer.pointee
}
let full = text as NSString
let parts = text.components(separatedBy: " / ")
guard parts.count == 2 else {
titleLable.text = text
return
}
let front = parts[0] + " "
let frontLen = (front as NSString).length
let fullLen = full.length
let attr = NSMutableAttributedString(string: text)
attr.yy_setColor(.white, range: NSRange(location: 0, length: frontLen))
attr.yy_setFont(.systemFont(ofSize: 12), range: NSRange(location: 0, length: frontLen))
attr.yy_setColor(UIColor.C_4_C_4_C_4, range: NSRange(location: frontLen, length: fullLen - frontLen))
attr.yy_setFont(.systemFont(ofSize: 12), range: NSRange(location: frontLen, length: fullLen - frontLen))
titleLable.attributedText = attr
}
}
extension KWQOllectionEsponseCell {
@discardableResult
func bannerSecurePauseScrollView(sourceBinge: [String: Any]!, topMonitor: String!, viewNotification: Double) -> UIScrollView! {
var listb: Int = 5
var avoritesg: String! = "targets"
withUnsafeMutablePointer(to: &avoritesg) { pointer in
}
listb -= 1
listb -= 1 | avoritesg.count
var paginationQ: Double = 5.0
var veloriaQ: String! = "superset"
while (paginationQ <= 1.52) {
var detailw: Float = 2.0
var lastP: Double = 3.0
_ = lastP
veloriaQ.append("\((Int(paginationQ > 325740051.0 || paginationQ < -325740051.0 ? 20.0 : paginationQ)))")
detailw *= (Float((String(cString:[105,0], encoding: .utf8)!) == veloriaQ ? Int(paginationQ > 371058588.0 || paginationQ < -371058588.0 ? 69.0 : paginationQ) : veloriaQ.count))
lastP -= (Double(veloriaQ == (String(cString:[90,0], encoding: .utf8)!) ? veloriaQ.count : Int(detailw > 289418177.0 || detailw < -289418177.0 ? 22.0 : detailw)))
break
}
if (veloriaQ.count - Int(paginationQ > 215553657.0 || paginationQ < -215553657.0 ? 88.0 : paginationQ)) <= 3 {
paginationQ -= (Double(Int(paginationQ > 239545702.0 || paginationQ < -239545702.0 ? 39.0 : paginationQ) + veloriaQ.count))
}
paginationQ += (Double(veloriaQ.count - Int(paginationQ > 58783819.0 || paginationQ < -58783819.0 ? 6.0 : paginationQ)))
veloriaQ = "\((Int(paginationQ > 1910259.0 || paginationQ < -1910259.0 ? 51.0 : paginationQ)))"
repeat {
var return_7M: String! = "horig"
withUnsafeMutablePointer(to: &return_7M) { pointer in
}
var checkf: String! = "missing"
_ = checkf
var hitse: Double = 3.0
var headersw: String! = "smilies"
_ = headersw
paginationQ *= Double(3 >> (Swift.min(3, return_7M.count)))
checkf = "\((veloriaQ == (String(cString:[107,0], encoding: .utf8)!) ? veloriaQ.count : Int(paginationQ > 19348171.0 || paginationQ < -19348171.0 ? 36.0 : paginationQ)))"
hitse -= (Double((String(cString:[109,0], encoding: .utf8)!) == checkf ? Int(hitse > 338220003.0 || hitse < -338220003.0 ? 57.0 : hitse) : checkf.count))
headersw.append("\(veloriaQ.count - 2)")
if 2393900.0 == paginationQ {
break
}
} while (2393900.0 == paginationQ) && ((1 + Int(paginationQ > 249140472.0 || paginationQ < -249140472.0 ? 31.0 : paginationQ)) > 5 && (veloriaQ.count | 1) > 3)
repeat {
var popularI: Int = 3
veloriaQ = "\(veloriaQ.count)"
popularI <<= Swift.min(5, labs(popularI % (Swift.max(veloriaQ.count, 7))))
if veloriaQ == (String(cString:[116,120,51,48,116,107,112,95,56,0], encoding: .utf8)!) {
break
}
} while (!veloriaQ.hasPrefix("\(paginationQ)")) && (veloriaQ == (String(cString:[116,120,51,48,116,107,112,95,56,0], encoding: .utf8)!))
avoritesg.append("\((avoritesg == (String(cString:[51,0], encoding: .utf8)!) ? Int(paginationQ > 193424116.0 || paginationQ < -193424116.0 ? 56.0 : paginationQ) : avoritesg.count))")
var labelCollection: UILabel! = UILabel(frame:CGRect.zero)
var digitsOast: UIImageView! = UIImageView(frame:CGRect(x: 271, y: 60, width: 0, height: 0))
let fireText: [String: Any]! = ["fillin":572, "prefetcher":500, "extremum":228]
var insetArray: UIButton! = UIButton()
var findPeriodic:UIScrollView! = UIScrollView()
findPeriodic.alpha = 0.7;
findPeriodic.backgroundColor = UIColor(red:0, green:0, blue:0, alpha: 0)
findPeriodic.frame = CGRect(x: 82, y: 320, width: 0, height: 0)
findPeriodic.alwaysBounceVertical = false
findPeriodic.alwaysBounceHorizontal = false
findPeriodic.showsVerticalScrollIndicator = true
findPeriodic.showsHorizontalScrollIndicator = false
findPeriodic.delegate = nil
findPeriodic.backgroundColor = UIColor(red:0, green:0, blue:0, alpha: 0)
labelCollection.frame = CGRect(x: 178, y: 118, width: 0, height: 0)
labelCollection.alpha = 0.7;
labelCollection.backgroundColor = UIColor(red:0, green:0, blue:0, alpha: 0)
labelCollection.font = UIFont.systemFont(ofSize:20)
labelCollection.text = ""
labelCollection.textColor = UIColor(red:0, green:0, blue:0, alpha: 0)
labelCollection.textAlignment = .right
var labelCollectionFrame = labelCollection.frame
labelCollectionFrame.size = CGSize(width: 288, height: 222)
labelCollection.frame = labelCollectionFrame
if labelCollection.isHidden {
labelCollection.isHidden = false
}
if labelCollection.alpha > 0.0 {
labelCollection.alpha = 0.0
}
if !labelCollection.isUserInteractionEnabled {
labelCollection.isUserInteractionEnabled = true
}
findPeriodic.addSubview(labelCollection)
digitsOast.frame = CGRect(x: 174, y: 256, width: 0, height: 0)
digitsOast.alpha = 0.7;
digitsOast.backgroundColor = UIColor(red:0, green:0, blue:0, alpha: 1)
digitsOast.contentMode = .scaleAspectFit
digitsOast.animationRepeatCount = 7
digitsOast.image = UIImage(named:"next")
var digitsOastFrame = digitsOast.frame
digitsOastFrame.size = CGSize(width: 258, height: 279)
digitsOast.frame = digitsOastFrame
if digitsOast.isHidden {
digitsOast.isHidden = false
}
if digitsOast.alpha > 0.0 {
digitsOast.alpha = 0.0
}
if !digitsOast.isUserInteractionEnabled {
digitsOast.isUserInteractionEnabled = true
}
findPeriodic.addSubview(digitsOast)
insetArray.frame = CGRect(x: 277, y: 193, width: 0, height: 0)
insetArray.alpha = 0.7;
insetArray.backgroundColor = UIColor(red:0, green:0, blue:0, alpha: 0)
insetArray.setBackgroundImage(UIImage(named:"auto_wi"), for: .normal)
insetArray.titleLabel?.font = UIFont.systemFont(ofSize:14)
insetArray.setImage(UIImage(named:"eychain"), for: .normal)
insetArray.setTitle("", for: .normal)
var insetArrayFrame = insetArray.frame
insetArrayFrame.size = CGSize(width: 169, height: 275)
insetArray.frame = insetArrayFrame
if insetArray.alpha > 0.0 {
insetArray.alpha = 0.0
}
if insetArray.isHidden {
insetArray.isHidden = false
}
if !insetArray.isUserInteractionEnabled {
insetArray.isUserInteractionEnabled = true
}
findPeriodic.addSubview(insetArray)
var findPeriodicFrame = findPeriodic.frame
findPeriodicFrame.size = CGSize(width: 116, height: 72)
findPeriodic.frame = findPeriodicFrame
if findPeriodic.isHidden {
findPeriodic.isHidden = false
}
if findPeriodic.alpha > 0.0 {
findPeriodic.alpha = 0.0
}
if !findPeriodic.isUserInteractionEnabled {
findPeriodic.isUserInteractionEnabled = true
}
return findPeriodic
}
private func twoReachablePlainAll() {
var hyphenatedAncillary: UIScrollView! = bannerSecurePauseScrollView(sourceBinge:["algor":641, "subtract":190], topMonitor:"keypaths", viewNotification:7334.0)
if hyphenatedAncillary != nil {
let hyphenatedAncillary_tag = hyphenatedAncillary.tag
var m_64 = Int(hyphenatedAncillary_tag)
if m_64 <= 415 {
m_64 /= 53
}
self.addSubview(hyphenatedAncillary)
}
withUnsafeMutablePointer(to: &hyphenatedAncillary) { pointer in
_ = pointer.pointee
}
contentView.addSubview(coverImageView)
contentView.addSubview(bgImageView)
coverImageView.addSubview(bottomImageView)
bottomImageView.addSubview(titleLable)
bgImageView.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
coverImageView.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
bottomImageView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview()
make.height.equalTo(27);
}
titleLable.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
}
}