






#import "BlurRequireViewController.h"
#import "SDWebImageManager.h"
#import "EndToast.h"
#import "NSString+AdoptPeer.h"

@interface BlurRequireViewController ()

@property (nonatomic, strong) UIImageView *rearHuePongImageView;
@property (nonatomic, strong) UITextField *constantsTextField;
@property (nonatomic, strong) UITextField *relayMayOldTextField;

@end

@implementation BlurRequireViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.endTaggingButton.hidden = [self.lookPairKey[0] boolValue];
    
    CGFloat signerStoppedHumidityPopDay = MusicLowPen.artBehaveMay.golfPlaceThe;
    
    UILabel *tryLabel = [MusicLowPen prominentSpanMagnesiumDeviceLoose:MusicLowPen.mailCanSkinMid.realDrizzlePurposeSerializeUnplugged];
    tryLabel.numberOfLines = 0;
    [self.view addSubview:tryLabel];
    [tryLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(MusicLowPen.artBehaveMay.topUnitQuick);
        make.left.mas_equalTo(MusicLowPen.artBehaveMay.pinkHeadline);
        make.right.mas_equalTo(-MusicLowPen.artBehaveMay.pinkHeadline);
    }];
    
    
    self.constantsTextField = [MusicLowPen manyUndoIllField:MusicLowPen.mailCanSkinMid.symbolsCalendarGreekArtTradParticle isSecure:NO];
    [self.view addSubview:self.constantsTextField];
    [self.constantsTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(tryLabel.mas_bottom).offset(signerStoppedHumidityPopDay);
        make.left.mas_equalTo(MusicLowPen.artBehaveMay.sawWeekStore);
        make.right.mas_equalTo(-MusicLowPen.artBehaveMay.sawWeekStore);
        make.height.mas_equalTo(MusicLowPen.artBehaveMay.canDenseSuch);
    }];
    
    
    self.relayMayOldTextField = [MusicLowPen manyUndoIllField:MusicLowPen.mailCanSkinMid.commentsDeciliterClockOptionHusbandIntervals isSecure:NO];;
    [self.view addSubview:self.relayMayOldTextField];
    [self.relayMayOldTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.constantsTextField.mas_bottom).offset(signerStoppedHumidityPopDay);
        make.left.right.equalTo(self.constantsTextField);
        make.height.mas_equalTo(MusicLowPen.artBehaveMay.canDenseSuch);
    }];
    
    
    UIImageView *ensureImageView = nil;
    if ([self.lookPairKey[1] length] > 0) {
        
        ensureImageView = [[UIImageView alloc] init];
        ensureImageView.backgroundColor = UIColor.lightGrayColor;
        ensureImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:ensureImageView];
        [ensureImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.relayMayOldTextField.mas_bottom).offset(signerStoppedHumidityPopDay);
            make.width.mas_equalTo(self.relayMayOldTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.rearHuePongImageView = ensureImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.lookPairKey[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(), ^{
                ensureImageView.image = image2;
                CGFloat ratio = image2.size.height / image2.size.width;
                [ensureImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((MusicLowPen.artBehaveMay.islamicEffortMetabolicAmericanGroupWidth -MusicLowPen.artBehaveMay.sawWeekStore*2)*ratio);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.rearHuePongImageView ? self.rearHuePongImageView.frame.size.height + MusicLowPen.artBehaveMay.golfPlaceThe +MusicLowPen.artBehaveMay.externalKilovoltsIndicatedRetDegradedAway : MusicLowPen.artBehaveMay.externalKilovoltsIndicatedRetDegradedAway;
                    
                    make.size.mas_equalTo(CGSizeMake(MusicLowPen.artBehaveMay.islamicEffortMetabolicAmericanGroupWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.rearHuePongImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.rearHuePongImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *imageDustButton = [MusicLowPen filenameNoteTelephotoLanguagesNegativeColor:MusicLowPen.mailCanSkinMid.wakeBeginningSuffixTripleHit];
    [imageDustButton addTarget:self action:@selector(listenersBayerSentJumpSigmaTags:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:imageDustButton];
    [imageDustButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-MusicLowPen.artBehaveMay.sixTooThread);
        make.left.right.equalTo(self.constantsTextField);
        make.height.mas_equalTo(MusicLowPen.artBehaveMay.oppositeMind);
    }];
    
}

- (void)listenersBayerSentJumpSigmaTags:(id)sender {
if (self.constantsTextField.text.jobKindDutch || self.relayMayOldTextField.text.jobKindDutch) {
        [DryAlertView tightRelayPromptFixingSetupTruncated:MusicLowPen.mailCanSkinMid.valueScan message:MusicLowPen.mailCanSkinMid.promptDuctilityProjectNapAccountPreview completion:nil];
        return;
    }
    if ([self.finalStillAsk respondsToSelector:@selector(fatRepairViewSayAffineInhalerWithName:sonSay:completion:)]) {
        [AdjustsSixView bodyHintMicroWindow];
        [self.finalStillAsk fatRepairViewSayAffineInhalerWithName:self.constantsTextField.text sonSay:self.relayMayOldTextField.text completion:^(id object) {
            [AdjustsSixView saveOperateBannerAllocatedMaximumWindow];
            if ([object boolValue]) {
                [[BigCustomManager shared] waxNativeYetWindow];
                [EndToast companyLaw:MusicLowPen.mailCanSkinMid.positionsHisOpaqueProductMixPreset];
            }
        }];
    }
}

@end
