






#import "HeapIconNotViewController.h"
#import "SDWebImageManager.h"
#import "SexToast.h"
#import "NSString+GooglePut.h"

@interface HeapIconNotViewController ()

@property (nonatomic, strong) UIImageView *outBlockTagImageView;
@property (nonatomic, strong) UITextField *translateTextField;
@property (nonatomic, strong) UITextField *restoresUseTextField;

@end

@implementation HeapIconNotViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.genreFinalButton.hidden = [self.inferOddCut[0] boolValue];
    
    CGFloat helloBoldfaceProvidingEpisodeFragment = CutEightLow.licenseSmart.variablesZip;
    
    UILabel *addLabel = [CutEightLow bikeDenyPointersNiacinDaily:CutEightLow.mailRetDropSee.pencilPatchLatencyCurveWork];
    addLabel.numberOfLines = 0;
    [self.view addSubview:addLabel];
    [addLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(CutEightLow.licenseSmart.addressMiles);
        make.left.mas_equalTo(CutEightLow.licenseSmart.hexWristPath);
        make.right.mas_equalTo(-CutEightLow.licenseSmart.hexWristPath);
    }];
    
    
    self.translateTextField = [CutEightLow ourRunHertzField:CutEightLow.mailRetDropSee.alpineParameterCorrectedPoloEnergyCat isSecure:NO];
    [self.view addSubview:self.translateTextField];
    [self.translateTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(addLabel.mas_bottom).offset(helloBoldfaceProvidingEpisodeFragment);
        make.left.mas_equalTo(CutEightLow.licenseSmart.lappishSplit);
        make.right.mas_equalTo(-CutEightLow.licenseSmart.lappishSplit);
        make.height.mas_equalTo(CutEightLow.licenseSmart.forRetainMap);
    }];
    
    
    self.restoresUseTextField = [CutEightLow ourRunHertzField:CutEightLow.mailRetDropSee.hitUnitConnectKitReleaseMouth isSecure:NO];;
    [self.view addSubview:self.restoresUseTextField];
    [self.restoresUseTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.translateTextField.mas_bottom).offset(helloBoldfaceProvidingEpisodeFragment);
        make.left.right.equalTo(self.translateTextField);
        make.height.mas_equalTo(CutEightLow.licenseSmart.forRetainMap);
    }];
    
    
    UIImageView *fitFixImageView = nil;
    if ([self.inferOddCut[1] length] > 0) {
        
        fitFixImageView = [[UIImageView alloc] init];
        fitFixImageView.backgroundColor = UIColor.lightGrayColor;
        fitFixImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:fitFixImageView];
        [fitFixImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.restoresUseTextField.mas_bottom).offset(helloBoldfaceProvidingEpisodeFragment);
            make.width.mas_equalTo(self.restoresUseTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.outBlockTagImageView = fitFixImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.inferOddCut[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(), ^{
                fitFixImageView.image = image2;
                CGFloat shelf = image2.size.height / image2.size.width;
                [fitFixImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((CutEightLow.licenseSmart.peoplePluralInviteHomepageCupWidth -CutEightLow.licenseSmart.lappishSplit*2)*shelf);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.outBlockTagImageView ? self.outBlockTagImageView.frame.size.height + CutEightLow.licenseSmart.variablesZip +CutEightLow.licenseSmart.sessionCountRenewingBagSizeCat : CutEightLow.licenseSmart.sessionCountRenewingBagSizeCat;
                    
                    make.size.mas_equalTo(CGSizeMake(CutEightLow.licenseSmart.peoplePluralInviteHomepageCupWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.outBlockTagImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.outBlockTagImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *eraCommonButton = [CutEightLow deliveredSecurelyCanClampCenterColor:CutEightLow.mailRetDropSee.bloodVendorScrollsParsingFunctions];
    [eraCommonButton addTarget:self action:@selector(softOceanIllFairPeerEngine:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:eraCommonButton];
    [eraCommonButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-CutEightLow.licenseSmart.earNapRadial);
        make.left.right.equalTo(self.translateTextField);
        make.height.mas_equalTo(CutEightLow.licenseSmart.mouthRearThe);
    }];
    
}

- (void)softOceanIllFairPeerEngine:(id)sender {
if (self.translateTextField.text.carRingOther || self.restoresUseTextField.text.carRingOther) {
        [EggAlertView formThemeBoostChunkyShowersQueue:CutEightLow.mailRetDropSee.netFuture message:CutEightLow.mailRetDropSee.limitedMisplacedHeapRemotePublishResources completion:nil];
        return;
    }
    if ([self.cubeFoodLemma respondsToSelector:@selector(addSquareUnionReservedTopBandWithName:chrome:completion:)]) {
        [ComposeBigView globallyIssueWindow];
        [self.cubeFoodLemma addSquareUnionReservedTopBandWithName:self.translateTextField.text chrome:self.restoresUseTextField.text completion:^(id object) {
            [ComposeBigView oneLostEllipseElementSamplesWindow];
            if ([object boolValue]) {
                [[UplinkDryManager shared] forkVolatileWindow];
                [SexToast twoCapHall:CutEightLow.mailRetDropSee.wristSindhiLooperFormatsCardUpdating];
            }
        }];
    }
}

@end
