






#import "EvictRectumViewController.h"
#import "SDWebImageManager.h"
#import "CanToast.h"
#import "NSString+MildQuery.h"

@interface EvictRectumViewController ()

@property (nonatomic, strong) UIImageView *fontManPeerImageView;
@property (nonatomic, strong) UITextField *earlySelfTextField;
@property (nonatomic, strong) UITextField *playBoxSafeTextField;

@end

@implementation EvictRectumViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.declineRawButton.hidden = [self.redoNineEgg[0] boolValue];
    
    CGFloat presentWorkoutsRearLocationFive = PartialBest.mouseEarlier.succeededRed;
    
    UILabel *lawLabel = [PartialBest repliesPointersUrgencyHungarianTabular:PartialBest.itsOneFlowEasy.consumerTempBeaconDitherOpacity];
    lawLabel.numberOfLines = 0;
    [self.view addSubview:lawLabel];
    [lawLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(PartialBest.mouseEarlier.binBusyClose);
        make.left.mas_equalTo(PartialBest.mouseEarlier.countTenSelf);
        make.right.mas_equalTo(-PartialBest.mouseEarlier.countTenSelf);
    }];
    
    
    self.earlySelfTextField = [PartialBest busTwoStartField:PartialBest.itsOneFlowEasy.hockeySoftServiceElapsedAmericanForwards isSecure:NO];
    [self.view addSubview:self.earlySelfTextField];
    [self.earlySelfTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(lawLabel.mas_bottom).offset(presentWorkoutsRearLocationFive);
        make.left.mas_equalTo(PartialBest.mouseEarlier.sameChinaHue);
        make.right.mas_equalTo(-PartialBest.mouseEarlier.sameChinaHue);
        make.height.mas_equalTo(PartialBest.mouseEarlier.meanEarYears);
    }];
    
    
    self.playBoxSafeTextField = [PartialBest busTwoStartField:PartialBest.itsOneFlowEasy.mayTintCurveFireSilencedCycling isSecure:NO];;
    [self.view addSubview:self.playBoxSafeTextField];
    [self.playBoxSafeTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.earlySelfTextField.mas_bottom).offset(presentWorkoutsRearLocationFive);
        make.left.right.equalTo(self.earlySelfTextField);
        make.height.mas_equalTo(PartialBest.mouseEarlier.meanEarYears);
    }];
    
    
    UIImageView *tooAllImageView = nil;
    if ([self.redoNineEgg[1] length] > 0) {
        
        tooAllImageView = [[UIImageView alloc] init];
        tooAllImageView.backgroundColor = UIColor.lightGrayColor;
        tooAllImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:tooAllImageView];
        [tooAllImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.playBoxSafeTextField.mas_bottom).offset(presentWorkoutsRearLocationFive);
            make.width.mas_equalTo(self.playBoxSafeTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.fontManPeerImageView = tooAllImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.redoNineEgg[1]] options:0 progress:nil completed:^(UIImage * _Nullable image2, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
            dispatch_async(dispatch_get_main_queue(), ^{
                tooAllImageView.image = image2;
                CGFloat space = image2.size.height / image2.size.width;
                [tooAllImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((PartialBest.mouseEarlier.noneGetLeadLiveEpsilonWidth -PartialBest.mouseEarlier.sameChinaHue*2)*space);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.fontManPeerImageView ? self.fontManPeerImageView.frame.size.height + PartialBest.mouseEarlier.succeededRed +PartialBest.mouseEarlier.getCapMinimumTatarFilmEviction : PartialBest.mouseEarlier.getCapMinimumTatarFilmEviction;
                    
                    make.size.mas_equalTo(CGSizeMake(PartialBest.mouseEarlier.noneGetLeadLiveEpsilonWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.fontManPeerImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.fontManPeerImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *additionsButton = [PartialBest textualEllipsisBankStopMonthColor:PartialBest.itsOneFlowEasy.encodingsChunkyReverseHueOdd];
    [additionsButton addTarget:self action:@selector(assameseBlockerExerciseBalanceEstablishSwitch:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:additionsButton];
    [additionsButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-PartialBest.mouseEarlier.notWayWindow);
        make.left.right.equalTo(self.earlySelfTextField);
        make.height.mas_equalTo(PartialBest.mouseEarlier.waxElderLess);
    }];
    
}

- (void)assameseBlockerExerciseBalanceEstablishSwitch:(id)sender {

}

@end
