






#import "DueSeeCoastViewController.h"
#import "SDWebImageManager.h"
#import "LawToast.h"
#import "NSString+ClearLift.h"

@interface DueSeeCoastViewController ()

@property (nonatomic, strong) UIImageView *plainRejectImageView;
@property (nonatomic, strong) UITextField *edgaIntroTextField;
@property (nonatomic, strong) UITextField *tapMagicRunTextField;

@end

@implementation DueSeeCoastViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.sawLaotianButton.hidden = [self.jobBagStrip[0] boolValue];
    
    CGFloat maxLinkMomentaryIndentCar = ReloadThird.overlapQuote.flipWhoChina;
    
    UILabel *endLabel = [ReloadThird youUniqueDriveLatencySharing:ReloadThird.phoneKitTenTen.chapterMobileStateTrashPipe];
    endLabel.numberOfLines = 0;
    [self.view addSubview:endLabel];
    [endLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ReloadThird.overlapQuote.veryFixPlace);
        make.left.mas_equalTo(ReloadThird.overlapQuote.nowRemembers);
        make.right.mas_equalTo(-ReloadThird.overlapQuote.nowRemembers);
    }];
    
    
    self.edgaIntroTextField = [ReloadThird oceanHigherField:ReloadThird.phoneKitTenTen.disallowTenBoxMultiplySleepSetting isSecure:NO];
    [self.view addSubview:self.edgaIntroTextField];
    [self.edgaIntroTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(endLabel.mas_bottom).offset(maxLinkMomentaryIndentCar);
        make.left.mas_equalTo(ReloadThird.overlapQuote.linkageSetup);
        make.right.mas_equalTo(-ReloadThird.overlapQuote.linkageSetup);
        make.height.mas_equalTo(ReloadThird.overlapQuote.napPreparing);
    }];
    
    
    self.tapMagicRunTextField = [ReloadThird oceanHigherField:ReloadThird.phoneKitTenTen.climbedStairAcceptUnwindingDismissedWord isSecure:NO];;
    [self.view addSubview:self.tapMagicRunTextField];
    [self.tapMagicRunTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.edgaIntroTextField.mas_bottom).offset(maxLinkMomentaryIndentCar);
        make.left.right.equalTo(self.edgaIntroTextField);
        make.height.mas_equalTo(ReloadThird.overlapQuote.napPreparing);
    }];
    
    
    UIImageView *bedBedImageView = nil;
    if ([self.jobBagStrip[1] length] > 0) {
        
        bedBedImageView = [[UIImageView alloc] init];
        bedBedImageView.backgroundColor = UIColor.lightGrayColor;
        bedBedImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:bedBedImageView];
        [bedBedImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.tapMagicRunTextField.mas_bottom).offset(maxLinkMomentaryIndentCar);
            make.width.mas_equalTo(self.tapMagicRunTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.plainRejectImageView = bedBedImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.jobBagStrip[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(), ^{
                bedBedImageView.image = image2;
                CGFloat quote = image2.size.height / image2.size.width;
                [bedBedImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((ReloadThird.overlapQuote.focusPipeUndoGallonPlayableWidth -ReloadThird.overlapQuote.linkageSetup*2)*quote);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.plainRejectImageView ? self.plainRejectImageView.frame.size.height + ReloadThird.overlapQuote.flipWhoChina +ReloadThird.overlapQuote.ciphersFrictionExcludePetiteCanExtension : ReloadThird.overlapQuote.ciphersFrictionExcludePetiteCanExtension;
                    
                    make.size.mas_equalTo(CGSizeMake(ReloadThird.overlapQuote.focusPipeUndoGallonPlayableWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.plainRejectImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.plainRejectImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *symbolArtButton = [ReloadThird signerClampingSeventeenForbiddenAmharicColor:ReloadThird.phoneKitTenTen.occurPrivacyHasBordersSelenium];
    [symbolArtButton addTarget:self action:@selector(indigoShakeNibblesSinFatGeometric:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:symbolArtButton];
    [symbolArtButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-ReloadThird.overlapQuote.borderUrgent);
        make.left.right.equalTo(self.edgaIntroTextField);
        make.height.mas_equalTo(ReloadThird.overlapQuote.keyFlipVideo);
    }];
    
}

- (void)indigoShakeNibblesSinFatGeometric:(id)sender {

}

@end
