






#import "SlowHundredViewController.h"
#import "SDWebImageManager.h"
#import "WinToast.h"
#import "NSString+RepairBar.h"

@interface SlowHundredViewController ()

@property (nonatomic, strong) UIImageView *brushTopButImageView;
@property (nonatomic, strong) UITextField *slavicOutTextField;
@property (nonatomic, strong) UITextField *flippedUndoTextField;

@end

@implementation SlowHundredViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.hostingDayButton.hidden = [self.membersPool[0] boolValue];
    
    CGFloat threeMarginsMarkHerCollect = SheTintAuto.linerIndexed.tapHelperAre;
    
    UILabel *binLabel = [SheTintAuto exportCompileGroupingIdiomChecked:SheTintAuto.floatFootThird.columnPathSpanTopIts];
    binLabel.numberOfLines = 0;
    [self.view addSubview:binLabel];
    [binLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SheTintAuto.linerIndexed.forkPivotDog);
        make.left.mas_equalTo(SheTintAuto.linerIndexed.rearSawShift);
        make.right.mas_equalTo(-SheTintAuto.linerIndexed.rearSawShift);
    }];
    
    
    self.slavicOutTextField = [SheTintAuto andCatCacheField:SheTintAuto.floatFootThird.dueTolerancePoolGramCityDatum isSecure:NO];
    [self.view addSubview:self.slavicOutTextField];
    [self.slavicOutTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(binLabel.mas_bottom).offset(threeMarginsMarkHerCollect);
        make.left.mas_equalTo(SheTintAuto.linerIndexed.waxAnimation);
        make.right.mas_equalTo(-SheTintAuto.linerIndexed.waxAnimation);
        make.height.mas_equalTo(SheTintAuto.linerIndexed.canPolarSpan);
    }];
    
    
    self.flippedUndoTextField = [SheTintAuto andCatCacheField:SheTintAuto.floatFootThird.databasesSkinTrustSixStripBest isSecure:NO];;
    [self.view addSubview:self.flippedUndoTextField];
    [self.flippedUndoTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.slavicOutTextField.mas_bottom).offset(threeMarginsMarkHerCollect);
        make.left.right.equalTo(self.slavicOutTextField);
        make.height.mas_equalTo(SheTintAuto.linerIndexed.canPolarSpan);
    }];
    
    
    UIImageView *bridgeImageView = nil;
    if ([self.membersPool[1] length] > 0) {
        
        bridgeImageView = [[UIImageView alloc] init];
        bridgeImageView.backgroundColor = UIColor.lightGrayColor;
        bridgeImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:bridgeImageView];
        [bridgeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.flippedUndoTextField.mas_bottom).offset(threeMarginsMarkHerCollect);
            make.width.mas_equalTo(self.flippedUndoTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.brushTopButImageView = bridgeImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.membersPool[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(), ^{
                bridgeImageView.image = image2;
                CGFloat visit = image2.size.height / image2.size.width;
                [bridgeImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((SheTintAuto.linerIndexed.lateSpotlightInsetNativeUseWidth -SheTintAuto.linerIndexed.waxAnimation*2)*visit);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.brushTopButImageView ? self.brushTopButImageView.frame.size.height + SheTintAuto.linerIndexed.tapHelperAre +SheTintAuto.linerIndexed.feedCalendarRefinedDesignerRevertTry : SheTintAuto.linerIndexed.feedCalendarRefinedDesignerRevertTry;
                    
                    make.size.mas_equalTo(CGSizeMake(SheTintAuto.linerIndexed.lateSpotlightInsetNativeUseWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.brushTopButImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.brushTopButImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *temporaryButton = [SheTintAuto numericWetDirectionLoveRedoColor:SheTintAuto.floatFootThird.tertiaryHeightIgnoreTapHave];
    [temporaryButton addTarget:self action:@selector(poolEarArtworkSoundChatterLigatures:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:temporaryButton];
    [temporaryButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-SheTintAuto.linerIndexed.viewFullyWet);
        make.left.right.equalTo(self.slavicOutTextField);
        make.height.mas_equalTo(SheTintAuto.linerIndexed.revisionGolf);
    }];
    
}

- (void)poolEarArtworkSoundChatterLigatures:(id)sender {
if (self.slavicOutTextField.text.twelveOptHis || self.flippedUndoTextField.text.twelveOptHis) {
        [DryAlertView layoutRotationKitBottomStepsonSharing:SheTintAuto.floatFootThird.shapeTurn message:SheTintAuto.floatFootThird.rateFrenchBrushLanguagesDesignerSoftware completion:nil];
        return;
    }
    if ([self.hertzSeeWrite respondsToSelector:@selector(footPassivelyMinderBackwardProvidingVisibleWithName:redTag:completion:)]) {
        [SampleFireView belowSoftnessWindow];
        [self.hertzSeeWrite footPassivelyMinderBackwardProvidingVisibleWithName:self.slavicOutTextField.text redTag:self.flippedUndoTextField.text completion:^(id object) {
            [SampleFireView carTamilExtentsPullStandardWindow];
            if ([object boolValue]) {
                [[RotorWaitManager shared] barOwnMobileWindow];
                [WinToast receivePan:SheTintAuto.floatFootThird.dryMapCovariantSymmetricImageConsumes];
            }
        }];
    }
}

@end
