






#import "EightNearGrowViewController.h"
#import "EraToast.h"
#import "ParentInfo.h"

@interface EightNearGrowViewController ()

@property (nonatomic, strong) UIImageView *cycleUndoView;
@property (nonatomic, strong) UIButton *sleetMaxMapButton;
@property (nonatomic, strong) UIView *looseLinkView;
@property (nonatomic, strong) UILabel *quietRedLabel;
@property (nonatomic, strong) UITextField *albumEnteredTextField;
@property (nonatomic, strong) UITextField *armBarBusyAddTextField;
@end

@implementation EightNearGrowViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.leadHowHasButton.hidden = YES;
    
    if ([ParentInfo audioUnwrapDimensionSinStaticImage]) {
        self.cycleUndoView = [[UIImageView alloc] initWithImage:[ParentInfo audioUnwrapDimensionSinStaticImage]];
        [self.view addSubview:self.cycleUndoView];
        self.cycleUndoView.hidden = YES;
        [self.cycleUndoView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(PutBelowEye.yetRevealHow.eyeSpotlight);
            make.left.equalTo(self.redefinedButton.mas_right);
            make.top.equalTo(self.view).offset(PutBelowEye.yetRevealHow.shiftFillShe);
        }];
    }
    
    self.looseLinkView = [PutBelowEye looseLinkView];
    self.looseLinkView.hidden = YES;
    [self.view addSubview:self.looseLinkView];
    [self.looseLinkView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([ParentInfo audioUnwrapDimensionSinStaticImage]) {
            make.centerY.equalTo(self.cycleUndoView);
            make.left.equalTo(self.cycleUndoView.mas_right).offset(PutBelowEye.yetRevealHow.modelOwnBus);
        }else {
            make.top.equalTo(self.view).offset(PutBelowEye.yetRevealHow.shiftFillShe);
            make.left.equalTo(self.redefinedButton.mas_right).offset(PutBelowEye.yetRevealHow.modelOwnBus);
        }
        make.right.equalTo(self.leadHowHasButton.mas_left);
        make.height.mas_equalTo(PutBelowEye.yetRevealHow.eyeSpotlight);
    }];
    
    self.quietRedLabel = [PutBelowEye tensionAssertRaceResumedPrevent:PutBelowEye.listColumnRoot.cricketVarianceDividingArtworkStay];
    self.quietRedLabel.numberOfLines = 0;
    [self.view addSubview:self.quietRedLabel];
    [self.quietRedLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(PutBelowEye.yetRevealHow.ageCoastSent);
        make.left.mas_equalTo(PutBelowEye.yetRevealHow.bigTagsBasal);
        make.right.mas_equalTo(-PutBelowEye.yetRevealHow.bigTagsBasal);
    }];
    
    
    self.albumEnteredTextField = [PutBelowEye shakeIterationAssemblyLambdaPreparedAccount];
    self.albumEnteredTextField.enabled = NO;
    self.albumEnteredTextField.text = self.glyphMenCat[PutBelowEye.yetRevealHow.hoverRecordName];
    [self malayalamMinderAdjustingVideoGatheringHeadView:self.albumEnteredTextField text:PutBelowEye.listColumnRoot.quechuaPassiveOptPubCellular];
    [self.view addSubview:self.albumEnteredTextField];
    [self.albumEnteredTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.quietRedLabel.mas_bottom).offset(PutBelowEye.yetRevealHow.paymentsPeak);
        make.left.mas_equalTo(PutBelowEye.yetRevealHow.prologPostal);
        make.right.mas_equalTo(-PutBelowEye.yetRevealHow.prologPostal);
        make.height.mas_equalTo(PutBelowEye.yetRevealHow.eyeGramChunk);
    }];
    
    
    self.armBarBusyAddTextField = [PutBelowEye shakeIterationAssemblyLambdaPreparedAccount];
    self.armBarBusyAddTextField.enabled = NO;
    self.armBarBusyAddTextField.text = self.glyphMenCat[PutBelowEye.yetRevealHow.asleepBrushKey];
    [self malayalamMinderAdjustingVideoGatheringHeadView:self.armBarBusyAddTextField text:PutBelowEye.listColumnRoot.varianceRedYetSunSettling];
    [self.view addSubview:self.armBarBusyAddTextField];
    [self.armBarBusyAddTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.albumEnteredTextField.mas_bottom).offset(PutBelowEye.yetRevealHow.paymentsPeak);
        make.left.right.equalTo(self.albumEnteredTextField);
        make.height.mas_equalTo(PutBelowEye.yetRevealHow.eyeGramChunk);
    }];
    
    
    UIButton *basalWillButton = [PutBelowEye escapingRectifiedAcceptingStopEarlierColor:PutBelowEye.listColumnRoot.encodeRedefinedWinSafetyCaret];
    [basalWillButton addTarget:self action:@selector(queueHexOddRingOverlayAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:basalWillButton];
    [basalWillButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.armBarBusyAddTextField.mas_bottom).offset(PutBelowEye.yetRevealHow.paymentsPeak);
        make.left.right.equalTo(self.armBarBusyAddTextField);
        make.height.mas_equalTo(PutBelowEye.yetRevealHow.eyeSpotlight);
    }];
    
    
    self.sleetMaxMapButton = [PutBelowEye uighurHostingCheckedFairArbiter:PutBelowEye.listColumnRoot.adobeMouthResizeAspectSurrogateLossy];
    [self.sleetMaxMapButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.sleetMaxMapButton addTarget:self action:@selector(queryBouncingFootnoteCarbonSeasonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.sleetMaxMapButton];
    [self.sleetMaxMapButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(basalWillButton.mas_bottom).offset(PutBelowEye.yetRevealHow.nodeFootMix);
        make.centerX.equalTo(self.view);
    }];
}

- (void)malayalamMinderAdjustingVideoGatheringHeadView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(PutBelowEye.yetRevealHow.eyeSpotlight, PutBelowEye.yetRevealHow.eyeGramChunk)};
    UILabel *nonceDay = [[UILabel alloc] initWithFrame:frame];
    nonceDay.text = text;
    nonceDay.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = nonceDay;
}

- (void)queryBouncingFootnoteCarbonSeasonAction:(UIButton *)sender {
    [[StillSockManager shared] justifiedWetPlayStartupMailIcelandicViewController:self.navigationController];
}

- (void)queueHexOddRingOverlayAction:(UIButton *)sender {
    sender.hidden = YES;
    self.quietRedLabel.hidden = YES;
    self.looseLinkView.hidden = NO;
    self.cycleUndoView.hidden = NO;
    self.sleetMaxMapButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(PutBelowEye.yetRevealHow.aboutStandardTeethSpaceLikeWidth, PutBelowEye.yetRevealHow.cursorsFinishedSecondPaceRunHint-PutBelowEye.yetRevealHow.retryRowView));
    }];
    [self.albumEnteredTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.looseLinkView.mas_bottom).offset(PutBelowEye.yetRevealHow.paymentsPeak);
    }];
    [self.view layoutIfNeeded];
    
    BOOL click = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:PutBelowEye.yetRevealHow.textVeryRemovableKazakhManModeTower];
    if (!click) {
        self.leadHowHasButton.hidden = NO;
        [CutAlertView execMeterSymbolLoadLoadingSide:nil message:PutBelowEye.listColumnRoot.serifChildExposuresRegionNominal completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= PutBelowEye.yetRevealHow.parallelLine;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:partWalkSemanticsMissingSonPublic:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image partWalkSemanticsMissingSonPublic:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[StillSockManager shared] justifiedWetPlayStartupMailIcelandicViewController:self.navigationController];
        [EraToast sawDone:PutBelowEye.listColumnRoot.patternsArtEncryptedPortraitsGrouped];
    }else {
        self.leadHowHasButton.hidden = NO;
        [CutAlertView execMeterSymbolLoadLoadingSide:nil message:PutBelowEye.listColumnRoot.serifChildExposuresRegionNominal completion:nil];
    }
}

@end
