






#import "ListOurLockViewController.h"
#import "SDWebImageManager.h"
#import "WasToast.h"
#import "NSString+ReloadPan.h"

@interface ListOurLockViewController ()

@property (nonatomic, strong) UIImageView *oceanFatWonImageView;
@property (nonatomic, strong) UITextField *carAcceptTextField;
@property (nonatomic, strong) UITextField *badgeJobWetTextField;

@end

@implementation ListOurLockViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.sawPageWonButton.hidden = [self.forTiedRows[0] boolValue];
    
    CGFloat linerDebuggingWaxCatSaw = BurstPetite.virtualSheet.takeMovieBad;
    
    UILabel *pubLabel = [BurstPetite computerMetricStepsonHumidityBoldface:BurstPetite.setupScheduled.authorityPlayingHyphenShiftYou];
    pubLabel.numberOfLines = 0;
    [self.view addSubview:pubLabel];
    [pubLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BurstPetite.virtualSheet.airAuthority);
        make.left.mas_equalTo(BurstPetite.virtualSheet.croppingMute);
        make.right.mas_equalTo(-BurstPetite.virtualSheet.croppingMute);
    }];
    
    
    self.carAcceptTextField = [BurstPetite putSequenceField:BurstPetite.setupScheduled.filtersEntropyLeftKashmiriAggregateLog isSecure:NO];
    [self.view addSubview:self.carAcceptTextField];
    [self.carAcceptTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(pubLabel.mas_bottom).offset(linerDebuggingWaxCatSaw);
        make.left.mas_equalTo(BurstPetite.virtualSheet.onceStripMay);
        make.right.mas_equalTo(-BurstPetite.virtualSheet.onceStripMay);
        make.height.mas_equalTo(BurstPetite.virtualSheet.nineCreation);
    }];
    
    
    self.badgeJobWetTextField = [BurstPetite putSequenceField:BurstPetite.setupScheduled.hindiLinkPreventsProcessorExecuteTornado isSecure:NO];;
    [self.view addSubview:self.badgeJobWetTextField];
    [self.badgeJobWetTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.carAcceptTextField.mas_bottom).offset(linerDebuggingWaxCatSaw);
        make.left.right.equalTo(self.carAcceptTextField);
        make.height.mas_equalTo(BurstPetite.virtualSheet.nineCreation);
    }];
    
    
    UIImageView *penFarImageView = nil;
    if ([self.forTiedRows[1] length] > 0) {
        
        penFarImageView = [[UIImageView alloc] init];
        penFarImageView.backgroundColor = UIColor.lightGrayColor;
        penFarImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:penFarImageView];
        [penFarImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.badgeJobWetTextField.mas_bottom).offset(linerDebuggingWaxCatSaw);
            make.width.mas_equalTo(self.badgeJobWetTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.oceanFatWonImageView = penFarImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.forTiedRows[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(), ^{
                penFarImageView.image = image2;
                CGFloat ratio = image2.size.height / image2.size.width;
                [penFarImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((BurstPetite.virtualSheet.areEraScriptsRoomParserWidth -BurstPetite.virtualSheet.onceStripMay*2)*ratio);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.oceanFatWonImageView ? self.oceanFatWonImageView.frame.size.height + BurstPetite.virtualSheet.takeMovieBad +BurstPetite.virtualSheet.coalesceCutLacrosseLacrosseParagraphPortrait : BurstPetite.virtualSheet.coalesceCutLacrosseLacrosseParagraphPortrait;
                    
                    make.size.mas_equalTo(CGSizeMake(BurstPetite.virtualSheet.areEraScriptsRoomParserWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.oceanFatWonImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.oceanFatWonImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *oldAppendButton = [BurstPetite paragraphPicturePositionHisSumColor:BurstPetite.setupScheduled.linerActiveLetterRenamingEnhance];
    [oldAppendButton addTarget:self action:@selector(nominallyExistentExchangesRevertingTowerLemma:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:oldAppendButton];
    [oldAppendButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-BurstPetite.virtualSheet.menFunnelAir);
        make.left.right.equalTo(self.carAcceptTextField);
        make.height.mas_equalTo(BurstPetite.virtualSheet.enclosingToo);
    }];
    
}

- (void)nominallyExistentExchangesRevertingTowerLemma:(id)sender {
if (self.carAcceptTextField.text.napTapExpect || self.badgeJobWetTextField.text.napTapExpect) {
        [CarAlertView irregularCounterBarrierHoldHelperEgg:BurstPetite.setupScheduled.decompose message:BurstPetite.setupScheduled.valueCocoaBurnBigContentsPencil completion:nil];
        return;
    }
    if ([self.discountExact respondsToSelector:@selector(positionsReadyBackwardsPaceOutsideHexWithName:yellow:completion:)]) {
        [OnceMidSeeView cupWetYetFontWindow];
        [self.discountExact positionsReadyBackwardsPaceOutsideHexWithName:self.carAcceptTextField.text yellow:self.badgeJobWetTextField.text completion:^(id object) {
            [OnceMidSeeView destroyHigherSlopeRemainderTapWindow];
            if ([object boolValue]) {
                [[DeleteWhoManager shared] lightCommentWindow];
                [WasToast marginsTip:BurstPetite.setupScheduled.pathVeryOptPaymentsEndSetting];
            }
        }];
    }
}

@end
