






#import "MoveRopeWayViewController.h"
#import "SDWebImageManager.h"
#import "LawToast.h"
#import "NSString+RankRetry.h"

@interface MoveRopeWayViewController ()

@property (nonatomic, strong) UIImageView *prefixedAirImageView;
@property (nonatomic, strong) UITextField *expansionTextField;
@property (nonatomic, strong) UITextField *leftoverSexTextField;

@end

@implementation MoveRopeWayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.fourMinderButton.hidden = [self.retCellStay[0] boolValue];
    
    CGFloat signatureMercuryCardioidPageYear = ForHueAfter.grayGradient.dogFoldBatch;
    
    UILabel *maxLabel = [ForHueAfter mostMeanSeeOneMedia:ForHueAfter.stayFourthHint.fingerElderNowSexualResponses];
    maxLabel.numberOfLines = 0;
    [self.view addSubview:maxLabel];
    [maxLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ForHueAfter.grayGradient.panKelvinCap);
        make.left.mas_equalTo(ForHueAfter.grayGradient.napEndpoints);
        make.right.mas_equalTo(-ForHueAfter.grayGradient.napEndpoints);
    }];
    
    
    self.expansionTextField = [ForHueAfter parseFemaleField:ForHueAfter.stayFourthHint.forPivotGivenEmbeddingPutRule isSecure:NO];
    [self.view addSubview:self.expansionTextField];
    [self.expansionTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(maxLabel.mas_bottom).offset(signatureMercuryCardioidPageYear);
        make.left.mas_equalTo(ForHueAfter.grayGradient.detachJobEra);
        make.right.mas_equalTo(-ForHueAfter.grayGradient.detachJobEra);
        make.height.mas_equalTo(ForHueAfter.grayGradient.faxAudioSuch);
    }];
    
    
    self.leftoverSexTextField = [ForHueAfter parseFemaleField:ForHueAfter.stayFourthHint.iconFeaturedFitNanogramsWebpageOwn isSecure:NO];;
    [self.view addSubview:self.leftoverSexTextField];
    [self.leftoverSexTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.expansionTextField.mas_bottom).offset(signatureMercuryCardioidPageYear);
        make.left.right.equalTo(self.expansionTextField);
        make.height.mas_equalTo(ForHueAfter.grayGradient.faxAudioSuch);
    }];
    
    
    UIImageView *widgetImageView = nil;
    if ([self.retCellStay[1] length] > 0) {
        
        widgetImageView = [[UIImageView alloc] init];
        widgetImageView.backgroundColor = UIColor.lightGrayColor;
        widgetImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:widgetImageView];
        [widgetImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.leftoverSexTextField.mas_bottom).offset(signatureMercuryCardioidPageYear);
            make.width.mas_equalTo(self.leftoverSexTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.prefixedAirImageView = widgetImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.retCellStay[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(), ^{
                widgetImageView.image = image2;
                CGFloat ratio = image2.size.height / image2.size.width;
                [widgetImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((ForHueAfter.grayGradient.patternsFloatingLiftCutReportsWidth -ForHueAfter.grayGradient.detachJobEra*2)*ratio);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.prefixedAirImageView ? self.prefixedAirImageView.frame.size.height + ForHueAfter.grayGradient.dogFoldBatch +ForHueAfter.grayGradient.compoundSubLeastBiotinEllipsisParser : ForHueAfter.grayGradient.compoundSubLeastBiotinEllipsisParser;
                    
                    make.size.mas_equalTo(CGSizeMake(ForHueAfter.grayGradient.patternsFloatingLiftCutReportsWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.prefixedAirImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.prefixedAirImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *ratioRareButton = [ForHueAfter scoreYearArbitraryMapDecigramsColor:ForHueAfter.stayFourthHint.applePetiteSecretExpireAir];
    [ratioRareButton addTarget:self action:@selector(underlineVariationStairSelfBurstMagnetic:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:ratioRareButton];
    [ratioRareButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-ForHueAfter.grayGradient.makeSubFocal);
        make.left.right.equalTo(self.expansionTextField);
        make.height.mas_equalTo(ForHueAfter.grayGradient.notStructure);
    }];
    
}

- (void)underlineVariationStairSelfBurstMagnetic:(id)sender {
if (self.expansionTextField.text.handReplyMix || self.leftoverSexTextField.text.handReplyMix) {
        [PenAlertView meterInitialLookupPermuteIconExpect:ForHueAfter.stayFourthHint.readyGoal message:ForHueAfter.stayFourthHint.forwardAssertChunkDesignInlandCelsius completion:nil];
        return;
    }
    if ([self.molarSunAlbum respondsToSelector:@selector(albanianPagerLightenSelfTraveledAgentWithName:cutOne:completion:)]) {
        [ObjectTintView rainPubBitAirWindow];
        [self.molarSunAlbum albanianPagerLightenSelfTraveledAgentWithName:self.expansionTextField.text cutOne:self.leftoverSexTextField.text completion:^(id object) {
            [ObjectTintView displayMergeApplyingAutoDemandWindow];
            if ([object boolValue]) {
                [[EarColumnManager shared] decodeDigestWindow];
                [LawToast stringLoss:ForHueAfter.stayFourthHint.execCenterButtonsNotifyingListenStroke];
            }
        }];
    }
}

@end
