






#import "TouchAudioBlurCell.h"
#import "ButFunnelTopInfo.h"
#import "Masonry.h"
#import "UIColor+ZipColor.h"

@implementation TouchAudioBlurCell

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

- (void)setModel:(ButFunnelTopInfo *)model
{
    _model = model;
    _faxPassLabel.text = model.oceanYetSlow;
    _faxPassLabel.font = [UIFont systemFontOfSize:model.agentMoveMixerLossUtilityDegraded];
    _faxPassLabel.textColor = [UIColor legibleScrollCancelledBusSquareClose:model.curveCanonicalEditorialLostSlightDemand];
    self.backgroundColor = [[UIColor legibleScrollCancelledBusSquareClose:model.scatteredDescendedBreakingMindfulIterationMid] colorWithAlphaComponent:model.mercuryReachableInstallTamilLaunchingDelivered];
    self.layer.cornerRadius = 2;
}

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

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

@end
