






#import "SpeedOutPauseViewController.h"
#import "RunToast.h"
#import "WaxGetInfo.h"

@interface SpeedOutPauseViewController ()

@property (nonatomic, strong) UIImageView *expandPenView;
@property (nonatomic, strong) UIButton *captureDeepButton;
@property (nonatomic, strong) UIView *takeThickView;
@property (nonatomic, strong) UILabel *loseSnapLabel;
@property (nonatomic, strong) UITextField *spaButScrollTextField;
@property (nonatomic, strong) UITextField *kinFitForHostTextField;
@end

@implementation SpeedOutPauseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.theGuaraniButton.hidden = YES;
    
    if ([WaxGetInfo flushSmallerSafariCompactAddImage]) {
        self.expandPenView = [[UIImageView alloc] initWithImage:[WaxGetInfo flushSmallerSafariCompactAddImage]];
        [self.view addSubview:self.expandPenView];
        self.expandPenView.hidden = YES;
        [self.expandPenView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(YahooKeyTip.tatarMaximum.askLeastSeek);
            make.left.equalTo(self.ironPaperButton.mas_right);
            make.top.equalTo(self.view).offset(YahooKeyTip.tatarMaximum.themeNapHard);
        }];
    }
    
    self.takeThickView = [YahooKeyTip takeThickView];
    self.takeThickView.hidden = YES;
    [self.view addSubview:self.takeThickView];
    [self.takeThickView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([WaxGetInfo flushSmallerSafariCompactAddImage]) {
            make.centerY.equalTo(self.expandPenView);
            make.left.equalTo(self.expandPenView.mas_right).offset(YahooKeyTip.tatarMaximum.looperGreat);
        }else {
            make.top.equalTo(self.view).offset(YahooKeyTip.tatarMaximum.themeNapHard);
            make.left.equalTo(self.ironPaperButton.mas_right).offset(YahooKeyTip.tatarMaximum.looperGreat);
        }
        make.right.equalTo(self.theGuaraniButton.mas_left);
        make.height.mas_equalTo(YahooKeyTip.tatarMaximum.askLeastSeek);
    }];
    
    self.loseSnapLabel = [YahooKeyTip humidityArrangedDarkCalciumNotice:YahooKeyTip.somaliLoopMove.episodeFinalResizeRunDecipher];
    self.loseSnapLabel.numberOfLines = 0;
    [self.view addSubview:self.loseSnapLabel];
    [self.loseSnapLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(YahooKeyTip.tatarMaximum.sectionsSink);
        make.left.mas_equalTo(YahooKeyTip.tatarMaximum.indoorAffine);
        make.right.mas_equalTo(-YahooKeyTip.tatarMaximum.indoorAffine);
    }];
    
    
    self.spaButScrollTextField = [YahooKeyTip halftoneAlignedFilenameCoercionOldestAccount];
    self.spaButScrollTextField.enabled = NO;
    self.spaButScrollTextField.text = self.civilAddFar[YahooKeyTip.tatarMaximum.phaseSubsetName];
    [self eraPatientIndianMarqueeSonSynthesisView:self.spaButScrollTextField text:YahooKeyTip.somaliLoopMove.furlongsQuantizeBookmarkPassivelyAny];
    [self.view addSubview:self.spaButScrollTextField];
    [self.spaButScrollTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.loseSnapLabel.mas_bottom).offset(YahooKeyTip.tatarMaximum.iterativeFit);
        make.left.mas_equalTo(YahooKeyTip.tatarMaximum.hexForcePick);
        make.right.mas_equalTo(-YahooKeyTip.tatarMaximum.hexForcePick);
        make.height.mas_equalTo(YahooKeyTip.tatarMaximum.minSkipLabel);
    }];
    
    
    self.kinFitForHostTextField = [YahooKeyTip halftoneAlignedFilenameCoercionOldestAccount];
    self.kinFitForHostTextField.enabled = NO;
    self.kinFitForHostTextField.text = self.civilAddFar[YahooKeyTip.tatarMaximum.thatQuitDidKey];
    [self eraPatientIndianMarqueeSonSynthesisView:self.kinFitForHostTextField text:YahooKeyTip.somaliLoopMove.fillerParentGramTwitterOpen];
    [self.view addSubview:self.kinFitForHostTextField];
    [self.kinFitForHostTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.spaButScrollTextField.mas_bottom).offset(YahooKeyTip.tatarMaximum.iterativeFit);
        make.left.right.equalTo(self.spaButScrollTextField);
        make.height.mas_equalTo(YahooKeyTip.tatarMaximum.minSkipLabel);
    }];
    
    
    UIButton *lookThirdButton = [YahooKeyTip cutGeneratorGenreShortPreventsColor:YahooKeyTip.somaliLoopMove.targetInuitSupportedHebrewPiece];
    [lookThirdButton addTarget:self action:@selector(femaleRetrySpaNotifiesNepaliAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:lookThirdButton];
    [lookThirdButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.kinFitForHostTextField.mas_bottom).offset(YahooKeyTip.tatarMaximum.iterativeFit);
        make.left.right.equalTo(self.kinFitForHostTextField);
        make.height.mas_equalTo(YahooKeyTip.tatarMaximum.askLeastSeek);
    }];
    
    
    self.captureDeepButton = [YahooKeyTip rowsYouBuiltBarDaily:YahooKeyTip.somaliLoopMove.gallonsFitDenseTargetBounceProviding];
    [self.captureDeepButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.captureDeepButton addTarget:self action:@selector(allowableExtraOlympusUnlimitedMinuteAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.captureDeepButton];
    [self.captureDeepButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(lookThirdButton.mas_bottom).offset(YahooKeyTip.tatarMaximum.orderingSee);
        make.centerX.equalTo(self.view);
    }];
}

- (void)eraPatientIndianMarqueeSonSynthesisView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(YahooKeyTip.tatarMaximum.askLeastSeek, YahooKeyTip.tatarMaximum.minSkipLabel)};
    UILabel *ratePage = [[UILabel alloc] initWithFrame:frame];
    ratePage.text = text;
    ratePage.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = ratePage;
}

- (void)allowableExtraOlympusUnlimitedMinuteAction:(UIButton *)sender {
    [[AggregateManager shared] creatingObscuredLexicalWarpResetHeartViewController:self.navigationController];
}

- (void)femaleRetrySpaNotifiesNepaliAction:(UIButton *)sender {
    sender.hidden = YES;
    self.loseSnapLabel.hidden = YES;
    self.takeThickView.hidden = NO;
    self.expandPenView.hidden = NO;
    self.captureDeepButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(YahooKeyTip.tatarMaximum.existingPersistEncodedThiaminAlternateWidth, YahooKeyTip.tatarMaximum.numbersHandoffCopperWaxLogConcert-YahooKeyTip.tatarMaximum.ironKinChain));
    }];
    [self.spaButScrollTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.takeThickView.mas_bottom).offset(YahooKeyTip.tatarMaximum.iterativeFit);
    }];
    [self.view layoutIfNeeded];
    
    BOOL relay = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:YahooKeyTip.tatarMaximum.cellPhotosVariableBarOnceClipDefined];
    if (!relay) {
        self.theGuaraniButton.hidden = NO;
        [HasAlertView ringMountRemainingMattingGopherPin:nil message:YahooKeyTip.somaliLoopMove.assertionEarCoverCallbackConverged completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= YahooKeyTip.tatarMaximum.extraYearDid;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:entropyPortraitHallOnlineUnlockedProvide:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image entropyPortraitHallOnlineUnlockedProvide:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[AggregateManager shared] creatingObscuredLexicalWarpResetHeartViewController:self.navigationController];
        [RunToast capBond:YahooKeyTip.somaliLoopMove.youNoteAffiliateCupJob];
    }else {
        self.theGuaraniButton.hidden = NO;
        [HasAlertView ringMountRemainingMattingGopherPin:nil message:YahooKeyTip.somaliLoopMove.assertionEarCoverCallbackConverged completion:nil];
    }
}

@end
