






#import "WasDistinctViewController.h"
#import "SDWebImageManager.h"
#import "ButToast.h"
#import "NSString+TowerNeed.h"

@interface WasDistinctViewController ()

@property (nonatomic, strong) UIImageView *roomBedHoldImageView;
@property (nonatomic, strong) UITextField *convergedTextField;
@property (nonatomic, strong) UITextField *prefixRelayTextField;

@end

@implementation WasDistinctViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.redPanSlowButton.hidden = [self.burmeseFive[0] boolValue];
    
    CGFloat makeSliderDebuggerPostOne = BadMeanSame.clockwiseSun.copperSawBig;
    
    UILabel *retLabel = [BadMeanSame ligatureEscapesLowMoveHer:BadMeanSame.bikeVeryIcyOne.ringOriginUserPrintableSlashed];
    retLabel.numberOfLines = 0;
    [self.view addSubview:retLabel];
    [retLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BadMeanSame.clockwiseSun.starThirdHue);
        make.left.mas_equalTo(BadMeanSame.clockwiseSun.paceBouncing);
        make.right.mas_equalTo(-BadMeanSame.clockwiseSun.paceBouncing);
    }];
    
    
    self.convergedTextField = [BadMeanSame takeSuggestField:BadMeanSame.bikeVeryIcyOne.hyphensMetricEnclosingClearedCommentRetain isSecure:NO];
    [self.view addSubview:self.convergedTextField];
    [self.convergedTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(retLabel.mas_bottom).offset(makeSliderDebuggerPostOne);
        make.left.mas_equalTo(BadMeanSame.clockwiseSun.vendorSeeBus);
        make.right.mas_equalTo(-BadMeanSame.clockwiseSun.vendorSeeBus);
        make.height.mas_equalTo(BadMeanSame.clockwiseSun.tradKinRoman);
    }];
    
    
    self.prefixRelayTextField = [BadMeanSame takeSuggestField:BadMeanSame.bikeVeryIcyOne.rareRegularSobWrappedInfinityFractions isSecure:NO];;
    [self.view addSubview:self.prefixRelayTextField];
    [self.prefixRelayTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.convergedTextField.mas_bottom).offset(makeSliderDebuggerPostOne);
        make.left.right.equalTo(self.convergedTextField);
        make.height.mas_equalTo(BadMeanSame.clockwiseSun.tradKinRoman);
    }];
    
    
    UIImageView *itsPopImageView = nil;
    if ([self.burmeseFive[1] length] > 0) {
        
        itsPopImageView = [[UIImageView alloc] init];
        itsPopImageView.backgroundColor = UIColor.lightGrayColor;
        itsPopImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:itsPopImageView];
        [itsPopImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.prefixRelayTextField.mas_bottom).offset(makeSliderDebuggerPostOne);
            make.width.mas_equalTo(self.prefixRelayTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.roomBedHoldImageView = itsPopImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.burmeseFive[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(), ^{
                itsPopImageView.image = image2;
                CGFloat draft = image2.size.height / image2.size.width;
                [itsPopImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((BadMeanSame.clockwiseSun.openDimensionMailOutsideCellWidth -BadMeanSame.clockwiseSun.vendorSeeBus*2)*draft);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.roomBedHoldImageView ? self.roomBedHoldImageView.frame.size.height + BadMeanSame.clockwiseSun.copperSawBig +BadMeanSame.clockwiseSun.manBandViewForwardsBorderObserving : BadMeanSame.clockwiseSun.manBandViewForwardsBorderObserving;
                    
                    make.size.mas_equalTo(CGSizeMake(BadMeanSame.clockwiseSun.openDimensionMailOutsideCellWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.roomBedHoldImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.roomBedHoldImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *tabLegacyButton = [BadMeanSame torqueBadRenewButtonFilenameColor:BadMeanSame.bikeVeryIcyOne.dueMoreUndefinedFastestSave];
    [tabLegacyButton addTarget:self action:@selector(diamondAlienYearsTipLibrariesAlpine:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:tabLegacyButton];
    [tabLegacyButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-BadMeanSame.clockwiseSun.goalShipment);
        make.left.right.equalTo(self.convergedTextField);
        make.height.mas_equalTo(BadMeanSame.clockwiseSun.teamPriority);
    }];
    
}

- (void)diamondAlienYearsTipLibrariesAlpine:(id)sender {

}

@end
