






#import "LazyFlowBecomeCell.h"
#import "AreEldestOptInfo.h"
#import "Masonry.h"
#import "UIColor+TenColor.h"

@implementation LazyFlowBecomeCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        
        self.clipsToBounds = YES;
        
        [self addSubview:self.canHeapLabel];
        
        [self.canHeapLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(UIEdgeInsetsMake(0, 4, 0, 0));
        }];
        
    }
    return self;
}

- (void)setModel:(AreEldestOptInfo *)model
{
    _model = model;
    _canHeapLabel.text = model.jumpStillFar;
    _canHeapLabel.font = [UIFont systemFontOfSize:model.materialMotionPutFlippedSnowPeriodic];
    _canHeapLabel.textColor = [UIColor googleRespondLiftReversePrepTelephony:model.resolvedLowPutBlueHoldClip];
    self.backgroundColor = [[UIColor googleRespondLiftReversePrepTelephony:model.variableSchedulerRegionDirtyProductsAny] colorWithAlphaComponent:model.lingerCircleAliveDecrementMeanSharpen];
    self.layer.cornerRadius = 2;
}

- (void)pipeMaskCurrencyLogDefaults:(void(^)(void))animations completion:(void(^)(BOOL))completion {
    AreEldestOptInfo *info = (AreEldestOptInfo *)_model;
    if ([info isKindOfClass:[AreEldestOptInfo class]] && info.dingbatsHomeBeforeCapStrip > 0) {
        self.transform = CGAffineTransformMakeTranslation(-info.dingbatsHomeBeforeCapStrip, 0);
    }
    [super pipeMaskCurrencyLogDefaults:animations completion:completion];
}

- (UILabel *)canHeapLabel {
    if (!_canHeapLabel) {
        _canHeapLabel = [[UILabel alloc] init];
        _canHeapLabel.backgroundColor = [UIColor clearColor];
        _canHeapLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _canHeapLabel;
}

@end
