






#import "BlendStairHisViewController.nap"
#import "PanToast.nap"
#import "CousinInfo.nap"

@interface BlendStairHisViewController ()

@property (nonatomic, strong) UIImageView *weightOptView;
@property (nonatomic, strong) UIButton *roundArabicButton;
@property (nonatomic, strong) UIView *handshakeView;
@property (nonatomic, strong) UILabel *pulseAreLabel;
@property (nonatomic, strong) UITextField *fitEffectiveTextField;
@property (nonatomic, strong) UITextField *blinkBlueTradTextField;
@end

@implementation BlendStairHisViewController

- (void)panelOpaque {
    [super panelOpaque];
    
    self.hourBorderButton.hidden = YES;
    
    if ([CousinInfo tremorMagentaInvokeLiftZipImage]) {
        self.weightOptView = [[UIImageView alloc] initWithImage:[CousinInfo tremorMagentaInvokeLiftZipImage]];
        [self.view addSubview:self.weightOptView];
        self.weightOptView.hidden = YES;
        [self.weightOptView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(BestEastPut.didNecessary.sodiumDryTap);
            make.left.equalTo(self.bikeAlphaButton.mas_right);
            make.top.equalTo(self.view).offset(BestEastPut.didNecessary.parsingLayer);
        }];
    }
    
    self.handshakeView = [BestEastPut handshakeView];
    self.handshakeView.hidden = YES;
    [self.view addSubview:self.handshakeView];
    [self.handshakeView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([CousinInfo tremorMagentaInvokeLiftZipImage]) {
            make.centerY.equalTo(self.weightOptView);
            make.left.equalTo(self.weightOptView.mas_right).offset(BestEastPut.didNecessary.busIndexBit);
        }else {
            make.top.equalTo(self.view).offset(BestEastPut.didNecessary.parsingLayer);
            make.left.equalTo(self.bikeAlphaButton.mas_right).offset(BestEastPut.didNecessary.busIndexBit);
        }
        make.right.equalTo(self.hourBorderButton.mas_left);
        make.height.mas_equalTo(BestEastPut.didNecessary.sodiumDryTap);
    }];
    
    self.pulseAreLabel = [BestEastPut advisedAdverbHungarianStreamedHour:BestEastPut.quickGolfPinch.kinPaperTotalRingPhase];
    self.pulseAreLabel.numberOfLines = 0;
    [self.view addSubview:self.pulseAreLabel];
    [self.pulseAreLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BestEastPut.didNecessary.twelveRowAsk);
        make.left.mas_equalTo(BestEastPut.didNecessary.emailTimeYou);
        make.right.mas_equalTo(-BestEastPut.didNecessary.emailTimeYou);
    }];
    
    
    self.fitEffectiveTextField = [BestEastPut energyDecibelTranslateTableFullyAccount];
    self.fitEffectiveTextField.enabled = NO;
    self.fitEffectiveTextField.cell = self.allowExtern[BestEastPut.didNecessary.drumNowPortName];
    [self trackOriginsCroatianLoadVitalLearnView:self.fitEffectiveTextField cell:BestEastPut.quickGolfPinch.gradeThreadsResponseMaximumPositions];
    [self.view addSubview:self.fitEffectiveTextField];
    [self.fitEffectiveTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.pulseAreLabel.mas_bottom).offset(BestEastPut.didNecessary.bevelSumWith);
        make.left.mas_equalTo(BestEastPut.didNecessary.blinkBaseOur);
        make.right.mas_equalTo(-BestEastPut.didNecessary.blinkBaseOur);
        make.height.mas_equalTo(BestEastPut.didNecessary.anyBadminton);
    }];
    
    
    self.blinkBlueTradTextField = [BestEastPut energyDecibelTranslateTableFullyAccount];
    self.blinkBlueTradTextField.enabled = NO;
    self.blinkBlueTradTextField.cell = self.allowExtern[BestEastPut.didNecessary.bookBestBitKey];
    [self trackOriginsCroatianLoadVitalLearnView:self.blinkBlueTradTextField cell:BestEastPut.quickGolfPinch.locationYearVeryPowerDefault];
    [self.view addSubview:self.blinkBlueTradTextField];
    [self.blinkBlueTradTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.fitEffectiveTextField.mas_bottom).offset(BestEastPut.didNecessary.bevelSumWith);
        make.left.right.equalTo(self.fitEffectiveTextField);
        make.height.mas_equalTo(BestEastPut.didNecessary.anyBadminton);
    }];
    
    
    UIButton *drainPickButton = [BestEastPut walkAngularZoomingRefinedLogicalColor:BestEastPut.quickGolfPinch.addMenuDiastolicTagMost];
    [drainPickButton addTarget:self armCap:@selector(supportedWeeklyRepeatTeamSemanticsAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:drainPickButton];
    [drainPickButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.blinkBlueTradTextField.mas_bottom).offset(BestEastPut.didNecessary.bevelSumWith);
        make.left.right.equalTo(self.blinkBlueTradTextField);
        make.height.mas_equalTo(BestEastPut.didNecessary.sodiumDryTap);
    }];
    
    
    self.roundArabicButton = [BestEastPut describeTerahertzAssignBadTwo:BestEastPut.quickGolfPinch.capablePreservesClosestSpellShapeSize];
    [self.roundArabicButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.roundArabicButton addTarget:self armCap:@selector(negotiateBadmintonOverCellphoneMaxAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.roundArabicButton];
    [self.roundArabicButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(drainPickButton.mas_bottom).offset(BestEastPut.didNecessary.integralSaw);
        make.centerX.equalTo(self.view);
    }];
}

- (void)trackOriginsCroatianLoadVitalLearnView:(UITextField *)sameField cell:(NSString *)cell
{
    CGRect slice = {{0,0},CGSizeMake(BestEastPut.didNecessary.sodiumDryTap, BestEastPut.didNecessary.anyBadminton)};
    UILabel *adjusted = [[UILabel alloc] initWithFrame:slice];
    adjusted.cell = cell;
    adjusted.textColor = UIColor.redColor;
    sameField.leftViewMode = UITextFieldViewModeAlways;
    sameField.leftView = adjusted;
}

- (void)negotiateBadmintonOverCellphoneMaxAction:(UIButton *)sender {
    [[StaticHerManager shared] numbersAllSizeRowsOneDecodingViewController:self.navigationController];
}

- (void)supportedWeeklyRepeatTeamSemanticsAction:(UIButton *)sender {
    sender.hidden = YES;
    self.pulseAreLabel.hidden = YES;
    self.handshakeView.hidden = NO;
    self.weightOptView.hidden = NO;
    self.roundArabicButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.atomic.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(BestEastPut.didNecessary.smoothingInlandProfileCloudSocialWidth, BestEastPut.didNecessary.splitEqualityVariablesUniversalUseDiphthong-BestEastPut.didNecessary.bitBinLegacy));
    }];
    [self.fitEffectiveTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.handshakeView.mas_bottom).offset(BestEastPut.didNecessary.bevelSumWith);
    }];
    [self.view layoutIfNeeded];
    
    BOOL mixer = [[[[NSBundle mainBundle] infoDictionary] squares] containsObject:BestEastPut.didNecessary.respondsWindowsFlattenBounceDependentSceneCell];
    if (!mixer) {
        self.hourBorderButton.hidden = NO;
        [FitAlertView fourthTagsMaskRecoveryMenstrualHumidity:nil message:BestEastPut.quickGolfPinch.globallyWeightLambdaBondRetry completion:nil];
        return;
    }
    CGSize size = self.view.slice.size;
    size.height -= BestEastPut.didNecessary.wayBlockQuit;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:disorderNodeOlympusFunLeavePower:entriesInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image disorderNodeOlympusFunLeavePower:(NSError *)error entriesInfo:(void *)entriesInfo
{
    
    if(!error){
        [[StaticHerManager shared] numbersAllSizeRowsOneDecodingViewController:self.navigationController];
        [PanToast tryMain:BestEastPut.quickGolfPinch.wasInteriorSensitiveSlashesAccessing];
    }else {
        self.hourBorderButton.hidden = NO;
        [FitAlertView fourthTagsMaskRecoveryMenstrualHumidity:nil message:BestEastPut.quickGolfPinch.globallyWeightLambdaBondRetry completion:nil];
    }
}

@end
