






#import "FarAndRefusedViewController.h"
#import "LawToast.h"
#import "SexualInfo.h"

@interface FarAndRefusedViewController ()

@property (nonatomic, strong) UIImageView *lingerBusView;
@property (nonatomic, strong) UIButton *execBusySayButton;
@property (nonatomic, strong) UIView *penTwentyView;
@property (nonatomic, strong) UILabel *mayQuoteLabel;
@property (nonatomic, strong) UITextField *cellularHighTextField;
@property (nonatomic, strong) UITextField *manAdaptorTapTextField;
@end

@implementation FarAndRefusedViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.fourMinderButton.hidden = YES;
    
    if ([SexualInfo rollbackSeekingEpsilonSliceResultingImage]) {
        self.lingerBusView = [[UIImageView alloc] initWithImage:[SexualInfo rollbackSeekingEpsilonSliceResultingImage]];
        [self.view addSubview:self.lingerBusView];
        self.lingerBusView.hidden = YES;
        [self.lingerBusView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(ForHueAfter.grayGradient.notStructure);
            make.left.equalTo(self.protocolsButton.mas_right);
            make.top.equalTo(self.view).offset(ForHueAfter.grayGradient.submitTopAnd);
        }];
    }
    
    self.penTwentyView = [ForHueAfter penTwentyView];
    self.penTwentyView.hidden = YES;
    [self.view addSubview:self.penTwentyView];
    [self.penTwentyView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([SexualInfo rollbackSeekingEpsilonSliceResultingImage]) {
            make.centerY.equalTo(self.lingerBusView);
            make.left.equalTo(self.lingerBusView.mas_right).offset(ForHueAfter.grayGradient.nowNineteen);
        }else {
            make.top.equalTo(self.view).offset(ForHueAfter.grayGradient.submitTopAnd);
            make.left.equalTo(self.protocolsButton.mas_right).offset(ForHueAfter.grayGradient.nowNineteen);
        }
        make.right.equalTo(self.fourMinderButton.mas_left);
        make.height.mas_equalTo(ForHueAfter.grayGradient.notStructure);
    }];
    
    self.mayQuoteLabel = [ForHueAfter mostMeanSeeOneMedia:ForHueAfter.stayFourthHint.reportsStartupSubgroupGetFocuses];
    self.mayQuoteLabel.numberOfLines = 0;
    [self.view addSubview:self.mayQuoteLabel];
    [self.mayQuoteLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ForHueAfter.grayGradient.forAreExpose);
        make.left.mas_equalTo(ForHueAfter.grayGradient.napEndpoints);
        make.right.mas_equalTo(-ForHueAfter.grayGradient.napEndpoints);
    }];
    
    
    self.cellularHighTextField = [ForHueAfter linearLimitedLogExclusiveMixerAccount];
    self.cellularHighTextField.enabled = NO;
    self.cellularHighTextField.text = self.retCellStay[ForHueAfter.grayGradient.anyInfinityName];
    [self alwaysIncludesDividePhraseSupportHaveView:self.cellularHighTextField text:ForHueAfter.stayFourthHint.brokenStairWorkoutStylisticConnect];
    [self.view addSubview:self.cellularHighTextField];
    [self.cellularHighTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.mayQuoteLabel.mas_bottom).offset(ForHueAfter.grayGradient.dogFoldBatch);
        make.left.mas_equalTo(ForHueAfter.grayGradient.detachJobEra);
        make.right.mas_equalTo(-ForHueAfter.grayGradient.detachJobEra);
        make.height.mas_equalTo(ForHueAfter.grayGradient.faxAudioSuch);
    }];
    
    
    self.manAdaptorTapTextField = [ForHueAfter linearLimitedLogExclusiveMixerAccount];
    self.manAdaptorTapTextField.enabled = NO;
    self.manAdaptorTapTextField.text = self.retCellStay[ForHueAfter.grayGradient.evaluatePanKey];
    [self alwaysIncludesDividePhraseSupportHaveView:self.manAdaptorTapTextField text:ForHueAfter.stayFourthHint.russianFlatRearrangeUnsafeWon];
    [self.view addSubview:self.manAdaptorTapTextField];
    [self.manAdaptorTapTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.cellularHighTextField.mas_bottom).offset(ForHueAfter.grayGradient.dogFoldBatch);
        make.left.right.equalTo(self.cellularHighTextField);
        make.height.mas_equalTo(ForHueAfter.grayGradient.faxAudioSuch);
    }];
    
    
    UIButton *enterNoneButton = [ForHueAfter scoreYearArbitraryMapDecigramsColor:ForHueAfter.stayFourthHint.detectorVarianceCallingFlexibleMiter];
    [enterNoneButton addTarget:self action:@selector(swapSelfOutletRoleIntentsAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:enterNoneButton];
    [enterNoneButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.manAdaptorTapTextField.mas_bottom).offset(ForHueAfter.grayGradient.dogFoldBatch);
        make.left.right.equalTo(self.manAdaptorTapTextField);
        make.height.mas_equalTo(ForHueAfter.grayGradient.notStructure);
    }];
    
    
    self.execBusySayButton = [ForHueAfter threadsRetrieveExtrinsicCostNewtons:ForHueAfter.stayFourthHint.familyTriggerDiscountVerboseBoyfriendPotential];
    [self.execBusySayButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.execBusySayButton addTarget:self action:@selector(winAttributeContentBedMemoryAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.execBusySayButton];
    [self.execBusySayButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(enterNoneButton.mas_bottom).offset(ForHueAfter.grayGradient.mayLinearly);
        make.centerX.equalTo(self.view);
    }];
}

- (void)alwaysIncludesDividePhraseSupportHaveView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(ForHueAfter.grayGradient.notStructure, ForHueAfter.grayGradient.faxAudioSuch)};
    UILabel *loadPeer = [[UILabel alloc] initWithFrame:frame];
    loadPeer.text = text;
    loadPeer.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = loadPeer;
}

- (void)winAttributeContentBedMemoryAction:(UIButton *)sender {
    [[EarColumnManager shared] wasBirthdaySequencesSumAgreementMatrixViewController:self.navigationController];
}

- (void)swapSelfOutletRoleIntentsAction:(UIButton *)sender {
    sender.hidden = YES;
    self.mayQuoteLabel.hidden = YES;
    self.penTwentyView.hidden = NO;
    self.lingerBusView.hidden = NO;
    self.execBusySayButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(ForHueAfter.grayGradient.patternsFloatingLiftCutReportsWidth, ForHueAfter.grayGradient.compoundSubLeastBiotinEllipsisParser-ForHueAfter.grayGradient.indigoNative));
    }];
    [self.cellularHighTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.penTwentyView.mas_bottom).offset(ForHueAfter.grayGradient.dogFoldBatch);
    }];
    [self.view layoutIfNeeded];
    
    BOOL early = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:ForHueAfter.grayGradient.scatteredSerialNetscapeFastEncryptedRemovalVerify];
    if (!early) {
        self.fourMinderButton.hidden = NO;
        [PenAlertView meterInitialLookupPermuteIconExpect:nil message:ForHueAfter.stayFourthHint.headlineEditVisualToneRotate completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= ForHueAfter.grayGradient.labelIcyLoud;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:dirtyStrictKannadaReturnBarFalloff:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image dirtyStrictKannadaReturnBarFalloff:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[EarColumnManager shared] wasBirthdaySequencesSumAgreementMatrixViewController:self.navigationController];
        [LawToast fullIcy:ForHueAfter.stayFourthHint.blurRotationMarginChromiumIntegrate];
    }else {
        self.fourMinderButton.hidden = NO;
        [PenAlertView meterInitialLookupPermuteIconExpect:nil message:ForHueAfter.stayFourthHint.headlineEditVisualToneRotate completion:nil];
    }
}

@end
