






#import "StillDisablesViewController.h"
#import "MaxToast.h"
#import "FarIcyInfo.h"

@interface StillDisablesViewController ()

@property (nonatomic, strong) UIImageView *assertionView;
@property (nonatomic, strong) UIButton *commonThreeButton;
@property (nonatomic, strong) UIView *sugarPackView;
@property (nonatomic, strong) UILabel *controlsLabel;
@property (nonatomic, strong) UITextField *lostSpeakingTextField;
@property (nonatomic, strong) UITextField *realLowPanIcyTextField;
@end

@implementation StillDisablesViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.reportsHasButton.hidden = YES;
    
    if ([FarIcyInfo unlearnRedefinedSuspendedSegueWhiteImage]) {
        self.assertionView = [[UIImageView alloc] initWithImage:[FarIcyInfo unlearnRedefinedSuspendedSegueWhiteImage]];
        [self.view addSubview:self.assertionView];
        self.assertionView.hidden = YES;
        [self.assertionView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(CupDenyLeap.rarePutOther.canSideRaise);
            make.left.equalTo(self.peopleRedButton.mas_right);
            make.top.equalTo(self.view).offset(CupDenyLeap.rarePutOther.builderLiner);
        }];
    }
    
    self.sugarPackView = [CupDenyLeap sugarPackView];
    self.sugarPackView.hidden = YES;
    [self.view addSubview:self.sugarPackView];
    [self.sugarPackView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([FarIcyInfo unlearnRedefinedSuspendedSegueWhiteImage]) {
            make.centerY.equalTo(self.assertionView);
            make.left.equalTo(self.assertionView.mas_right).offset(CupDenyLeap.rarePutOther.eyeRestFill);
        }else {
            make.top.equalTo(self.view).offset(CupDenyLeap.rarePutOther.builderLiner);
            make.left.equalTo(self.peopleRedButton.mas_right).offset(CupDenyLeap.rarePutOther.eyeRestFill);
        }
        make.right.equalTo(self.reportsHasButton.mas_left);
        make.height.mas_equalTo(CupDenyLeap.rarePutOther.canSideRaise);
    }];
    
    self.controlsLabel = [CupDenyLeap temporalDownloadAdjustSiblingsStyle:CupDenyLeap.cutReuseIcyOur.masterSongModifierSearchKelvin];
    self.controlsLabel.numberOfLines = 0;
    [self.view addSubview:self.controlsLabel];
    [self.controlsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(CupDenyLeap.rarePutOther.otherFaxRope);
        make.left.mas_equalTo(CupDenyLeap.rarePutOther.producesGasp);
        make.right.mas_equalTo(-CupDenyLeap.rarePutOther.producesGasp);
    }];
    
    
    self.lostSpeakingTextField = [CupDenyLeap externalDeriveEnclosingOverhangLegibleAccount];
    self.lostSpeakingTextField.enabled = NO;
    self.lostSpeakingTextField.text = self.yetLearnTab[CupDenyLeap.rarePutOther.netWinFrontName];
    [self initiatedReadyChromaMembersGloballyUpdateView:self.lostSpeakingTextField text:CupDenyLeap.cutReuseIcyOur.zeroStyleInteractSnowHighest];
    [self.view addSubview:self.lostSpeakingTextField];
    [self.lostSpeakingTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.controlsLabel.mas_bottom).offset(CupDenyLeap.rarePutOther.senseDescent);
        make.left.mas_equalTo(CupDenyLeap.rarePutOther.preservedWas);
        make.right.mas_equalTo(-CupDenyLeap.rarePutOther.preservedWas);
        make.height.mas_equalTo(CupDenyLeap.rarePutOther.dragErrorBag);
    }];
    
    
    self.realLowPanIcyTextField = [CupDenyLeap externalDeriveEnclosingOverhangLegibleAccount];
    self.realLowPanIcyTextField.enabled = NO;
    self.realLowPanIcyTextField.text = self.yetLearnTab[CupDenyLeap.rarePutOther.majorTooEyeKey];
    [self initiatedReadyChromaMembersGloballyUpdateView:self.realLowPanIcyTextField text:CupDenyLeap.cutReuseIcyOur.schedulerClampBelowJoiningPrompt];
    [self.view addSubview:self.realLowPanIcyTextField];
    [self.realLowPanIcyTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.lostSpeakingTextField.mas_bottom).offset(CupDenyLeap.rarePutOther.senseDescent);
        make.left.right.equalTo(self.lostSpeakingTextField);
        make.height.mas_equalTo(CupDenyLeap.rarePutOther.dragErrorBag);
    }];
    
    
    UIButton *tenSimpleButton = [CupDenyLeap endSourceApplierAchievedLigatureColor:CupDenyLeap.cutReuseIcyOur.tabArgumentInsulinEqualityFraction];
    [tenSimpleButton addTarget:self action:@selector(appendedPanCaptureQualityRemovalAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:tenSimpleButton];
    [tenSimpleButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.realLowPanIcyTextField.mas_bottom).offset(CupDenyLeap.rarePutOther.senseDescent);
        make.left.right.equalTo(self.realLowPanIcyTextField);
        make.height.mas_equalTo(CupDenyLeap.rarePutOther.canSideRaise);
    }];
    
    
    self.commonThreeButton = [CupDenyLeap readCourseOpticalEstablishSubgroup:CupDenyLeap.cutReuseIcyOur.singleWirelessSummariesReleaseLegalOur];
    [self.commonThreeButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.commonThreeButton addTarget:self action:@selector(standardMathSolvePlaceGeneralAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.commonThreeButton];
    [self.commonThreeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(tenSimpleButton.mas_bottom).offset(CupDenyLeap.rarePutOther.bedPlaneWho);
        make.centerX.equalTo(self.view);
    }];
}

- (void)initiatedReadyChromaMembersGloballyUpdateView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(CupDenyLeap.rarePutOther.canSideRaise, CupDenyLeap.rarePutOther.dragErrorBag)};
    UILabel *fiveHost = [[UILabel alloc] initWithFrame:frame];
    fiveHost.text = text;
    fiveHost.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = fiveHost;
}

- (void)standardMathSolvePlaceGeneralAction:(UIButton *)sender {
    [[CutStringManager shared] initiatedOldTradBagSnapshotMostlyViewController:self.navigationController];
}

- (void)appendedPanCaptureQualityRemovalAction:(UIButton *)sender {
    sender.hidden = YES;
    self.controlsLabel.hidden = YES;
    self.sugarPackView.hidden = NO;
    self.assertionView.hidden = NO;
    self.commonThreeButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(CupDenyLeap.rarePutOther.magicIdenticalSyntheticSubjectThreeWidth, CupDenyLeap.rarePutOther.blueFreeMomentImmediateSuggestedSymmetric-CupDenyLeap.rarePutOther.runCondensed));
    }];
    [self.lostSpeakingTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.sugarPackView.mas_bottom).offset(CupDenyLeap.rarePutOther.senseDescent);
    }];
    [self.view layoutIfNeeded];
    
    BOOL daily = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:CupDenyLeap.rarePutOther.featureFoldMathWalkPrintAccountsGraphics];
    if (!daily) {
        self.reportsHasButton.hidden = NO;
        [DogAlertView issuerIdenticalClangPeriodicPartiallySegue:nil message:CupDenyLeap.cutReuseIcyOur.multiplyElderLateTokenNext completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= CupDenyLeap.rarePutOther.rotorTabRead;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:ampereChecksumJobFlipAllowMismatch:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image ampereChecksumJobFlipAllowMismatch:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[CutStringManager shared] initiatedOldTradBagSnapshotMostlyViewController:self.navigationController];
        [MaxToast usesDue:CupDenyLeap.cutReuseIcyOur.depthAudiogramTranslateEscapingDuplex];
    }else {
        self.reportsHasButton.hidden = NO;
        [DogAlertView issuerIdenticalClangPeriodicPartiallySegue:nil message:CupDenyLeap.cutReuseIcyOur.multiplyElderLateTokenNext completion:nil];
    }
}

@end
