






#import "OptSexDelayViewController.h"
#import "SDWebImageManager.h"
#import "KeyToast.h"
#import "NSString+Strongest.h"

@interface OptSexDelayViewController ()

@property (nonatomic, strong) UIImageView *tempReportsImageView;
@property (nonatomic, strong) UITextField *loopShapeTextField;
@property (nonatomic, strong) UITextField *sinBedGlyphTextField;

@end

@implementation OptSexDelayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.libraryFarButton.hidden = [self.upscaleDays[0] boolValue];
    
    CGFloat centeredGatherBusMongolianReverses = ClaimMaxBig.applierPatch.tipValueFree;
    
    UILabel *topLabel = [ClaimMaxBig joinFlushBlusterySpotlightSuspended:ClaimMaxBig.allFeedEarGolf.constantAffectedPascalReversesLabel];
    topLabel.numberOfLines = 0;
    [self.view addSubview:topLabel];
    [topLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ClaimMaxBig.applierPatch.availButNine);
        make.left.mas_equalTo(ClaimMaxBig.applierPatch.wonSourceSay);
        make.right.mas_equalTo(-ClaimMaxBig.applierPatch.wonSourceSay);
    }];
    
    
    self.loopShapeTextField = [ClaimMaxBig columnBatchField:ClaimMaxBig.allFeedEarGolf.notifyHailPintRefreshPlanThousands isSecure:NO];
    [self.view addSubview:self.loopShapeTextField];
    [self.loopShapeTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(topLabel.mas_bottom).offset(centeredGatherBusMongolianReverses);
        make.left.mas_equalTo(ClaimMaxBig.applierPatch.plugRunClaim);
        make.right.mas_equalTo(-ClaimMaxBig.applierPatch.plugRunClaim);
        make.height.mas_equalTo(ClaimMaxBig.applierPatch.immediateYou);
    }];
    
    
    self.sinBedGlyphTextField = [ClaimMaxBig columnBatchField:ClaimMaxBig.allFeedEarGolf.usedLocalizesInfoPreviousStaleDark isSecure:NO];;
    [self.view addSubview:self.sinBedGlyphTextField];
    [self.sinBedGlyphTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.loopShapeTextField.mas_bottom).offset(centeredGatherBusMongolianReverses);
        make.left.right.equalTo(self.loopShapeTextField);
        make.height.mas_equalTo(ClaimMaxBig.applierPatch.immediateYou);
    }];
    
    
    UIImageView *barAddImageView = nil;
    if ([self.upscaleDays[1] length] > 0) {
        
        barAddImageView = [[UIImageView alloc] init];
        barAddImageView.backgroundColor = UIColor.lightGrayColor;
        barAddImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:barAddImageView];
        [barAddImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.sinBedGlyphTextField.mas_bottom).offset(centeredGatherBusMongolianReverses);
            make.width.mas_equalTo(self.sinBedGlyphTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.tempReportsImageView = barAddImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.upscaleDays[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(), ^{
                barAddImageView.image = image2;
                CGFloat leave = image2.size.height / image2.size.width;
                [barAddImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((ClaimMaxBig.applierPatch.sunSegueBusyScrollBalancedWidth -ClaimMaxBig.applierPatch.plugRunClaim*2)*leave);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.tempReportsImageView ? self.tempReportsImageView.frame.size.height + ClaimMaxBig.applierPatch.tipValueFree +ClaimMaxBig.applierPatch.categoryIncrementExceedsCookieBigAssign : ClaimMaxBig.applierPatch.categoryIncrementExceedsCookieBigAssign;
                    
                    make.size.mas_equalTo(CGSizeMake(ClaimMaxBig.applierPatch.sunSegueBusyScrollBalancedWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.tempReportsImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.tempReportsImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *petabytesButton = [ClaimMaxBig reportingOptionalNonceEquallyBreakingColor:ClaimMaxBig.allFeedEarGolf.invalidInterestVortexMidOunces];
    [petabytesButton addTarget:self action:@selector(qualifierPreciseUrgentSexualPeriodMegabytes:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:petabytesButton];
    [petabytesButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-ClaimMaxBig.applierPatch.alpineBedFix);
        make.left.right.equalTo(self.loopShapeTextField);
        make.height.mas_equalTo(ClaimMaxBig.applierPatch.cloudPutSign);
    }];
    
}

- (void)qualifierPreciseUrgentSexualPeriodMegabytes:(id)sender {

}

@end
