






#import "SurgePinWhoViewController.h"
#import "SDWebImageManager.h"
#import "SawToast.h"
#import "NSString+Precision.h"

@interface SurgePinWhoViewController ()

@property (nonatomic, strong) UIImageView *fatGrowRollImageView;
@property (nonatomic, strong) UITextField *trashPullTextField;
@property (nonatomic, strong) UITextField *mailJoinSawTextField;

@end

@implementation SurgePinWhoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.warpFitWonButton.hidden = [self.retBlurTime[0] boolValue];
    
    CGFloat presenceUpdatesHerDublinAlternate = SobIllWelsh.followBigKit.canSlovakAge;
    
    UILabel *areLabel = [SobIllWelsh referenceMajorRaceAngularBegan:SobIllWelsh.notHeapPeerRed.samplingPointerMastersOutcomeForbidden];
    areLabel.numberOfLines = 0;
    [self.view addSubview:areLabel];
    [areLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SobIllWelsh.followBigKit.hasPhaseBlue);
        make.left.mas_equalTo(SobIllWelsh.followBigKit.trackAreRedo);
        make.right.mas_equalTo(-SobIllWelsh.followBigKit.trackAreRedo);
    }];
    
    
    self.trashPullTextField = [SobIllWelsh catIndexingField:SobIllWelsh.notHeapPeerRed.daughtersCombinedCommandGracefulSignWax isSecure:NO];
    [self.view addSubview:self.trashPullTextField];
    [self.trashPullTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(areLabel.mas_bottom).offset(presenceUpdatesHerDublinAlternate);
        make.left.mas_equalTo(SobIllWelsh.followBigKit.busStepAsset);
        make.right.mas_equalTo(-SobIllWelsh.followBigKit.busStepAsset);
        make.height.mas_equalTo(SobIllWelsh.followBigKit.elderRowsEar);
    }];
    
    
    self.mailJoinSawTextField = [SobIllWelsh catIndexingField:SobIllWelsh.notHeapPeerRed.gallonsMailWorkflowArmUrgentWay isSecure:NO];;
    [self.view addSubview:self.mailJoinSawTextField];
    [self.mailJoinSawTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.trashPullTextField.mas_bottom).offset(presenceUpdatesHerDublinAlternate);
        make.left.right.equalTo(self.trashPullTextField);
        make.height.mas_equalTo(SobIllWelsh.followBigKit.elderRowsEar);
    }];
    
    
    UIImageView *stableImageView = nil;
    if ([self.retBlurTime[1] length] > 0) {
        
        stableImageView = [[UIImageView alloc] init];
        stableImageView.backgroundColor = UIColor.lightGrayColor;
        stableImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:stableImageView];
        [stableImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.mailJoinSawTextField.mas_bottom).offset(presenceUpdatesHerDublinAlternate);
            make.width.mas_equalTo(self.mailJoinSawTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.fatGrowRollImageView = stableImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.retBlurTime[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(), ^{
                stableImageView.image = image2;
                CGFloat basic = image2.size.height / image2.size.width;
                [stableImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((SobIllWelsh.followBigKit.overflowItemClearYouSaltWidth -SobIllWelsh.followBigKit.busStepAsset*2)*basic);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.fatGrowRollImageView ? self.fatGrowRollImageView.frame.size.height + SobIllWelsh.followBigKit.canSlovakAge +SobIllWelsh.followBigKit.lawElevationDenyElementsClusterRetain : SobIllWelsh.followBigKit.lawElevationDenyElementsClusterRetain;
                    
                    make.size.mas_equalTo(CGSizeMake(SobIllWelsh.followBigKit.overflowItemClearYouSaltWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.fatGrowRollImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.fatGrowRollImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *burstStopButton = [SobIllWelsh allExistExecutionCreditsJumpColor:SobIllWelsh.notHeapPeerRed.internalConjugateInvisibleRadixUndo];
    [burstStopButton addTarget:self action:@selector(animatedTallImperialTrySupplyPub:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:burstStopButton];
    [burstStopButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-SobIllWelsh.followBigKit.topFirstShot);
        make.left.right.equalTo(self.trashPullTextField);
        make.height.mas_equalTo(SobIllWelsh.followBigKit.floatWaxPlus);
    }];
    
}

- (void)animatedTallImperialTrySupplyPub:(id)sender {
if (self.trashPullTextField.text.darkerTagger || self.mailJoinSawTextField.text.darkerTagger) {
        [BitAlertView combinedSymbolsConjugateOptReuseFarthest:SobIllWelsh.notHeapPeerRed.badObject message:SobIllWelsh.notHeapPeerRed.consumesMetalYahooMagicGuideBut completion:nil];
        return;
    }
    if ([self.alienHoldEdit respondsToSelector:@selector(civilMinPlacementRetAlgorithmRotatingWithName:pubPan:completion:)]) {
        [AskWillCatView ratioLawWorldWindow];
        [self.alienHoldEdit civilMinPlacementRetAlgorithmRotatingWithName:self.trashPullTextField.text pubPan:self.mailJoinSawTextField.text completion:^(id object) {
            [AskWillCatView strongestSeparatorAddPasswordsSpouseWindow];
            if ([object boolValue]) {
                [[SleepPairManager shared] lossContainsWindow];
                [SawToast bitStylize:SobIllWelsh.notHeapPeerRed.capTagBinTicketsBinFree];
            }
        }];
    }
}

@end
