






#import "WaxStoodHasTabCell.h"
#import "TooSoftSmartInfo.h"
#import "Masonry.h"
#import "UIColor+WaxColor.h"

@implementation WaxStoodHasTabCell

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

- (void)setModel:(TooSoftSmartInfo *)model
{
    _model = model;
    _areBlueLabel.text = model.pinFullyMail;
    _areBlueLabel.font = [UIFont systemFontOfSize:model.updateStoreTwoEighteenBondCoalesce];
    _areBlueLabel.textColor = [UIColor restartExposuresWaxHintCopyrightGigabits:model.quarterSeasonQualifierLongestBeginException];
    self.backgroundColor = [[UIColor restartExposuresWaxHintCopyrightGigabits:model.elementsAudibleIllEvaluateBestFixture] colorWithAlphaComponent:model.rawBaselinesDayAssumeCompoundComposer];
    self.layer.cornerRadius = 2;
}

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

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

@end
