






#import "FoggyKashmiriViewController.h"
#import "AnyToast.h"
#import "RenameInfo.h"

@interface FoggyKashmiriViewController ()

@property (nonatomic, strong) UIImageView *assertOffView;
@property (nonatomic, strong) UIButton *frameEffortButton;
@property (nonatomic, strong) UIView *badLooperView;
@property (nonatomic, strong) UILabel *offInterLabel;
@property (nonatomic, strong) UITextField *effectiveWaxTextField;
@property (nonatomic, strong) UITextField *saveModeDraftTextField;
@end

@implementation FoggyKashmiriViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.topMaleOurButton.hidden = YES;
    
    if ([RenameInfo rollOverlapAnimateOffResponsesImage]) {
        self.assertOffView = [[UIImageView alloc] initWithImage:[RenameInfo rollOverlapAnimateOffResponsesImage]];
        [self.view addSubview:self.assertOffView];
        self.assertOffView.hidden = YES;
        [self.assertOffView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(SafeWaxSort.sinLaunchCut.installsArea);
            make.left.equalTo(self.superiorsButton.mas_right);
            make.top.equalTo(self.view).offset(SafeWaxSort.sinLaunchCut.alienMoodJob);
        }];
    }
    
    self.badLooperView = [SafeWaxSort badLooperView];
    self.badLooperView.hidden = YES;
    [self.view addSubview:self.badLooperView];
    [self.badLooperView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([RenameInfo rollOverlapAnimateOffResponsesImage]) {
            make.centerY.equalTo(self.assertOffView);
            make.left.equalTo(self.assertOffView.mas_right).offset(SafeWaxSort.sinLaunchCut.boxRoomFeed);
        }else {
            make.top.equalTo(self.view).offset(SafeWaxSort.sinLaunchCut.alienMoodJob);
            make.left.equalTo(self.superiorsButton.mas_right).offset(SafeWaxSort.sinLaunchCut.boxRoomFeed);
        }
        make.right.equalTo(self.topMaleOurButton.mas_left);
        make.height.mas_equalTo(SafeWaxSort.sinLaunchCut.installsArea);
    }];
    
    self.offInterLabel = [SafeWaxSort allowAllOverwriteZeroWide:SafeWaxSort.oldBothLogStop.restartShowersBookCosmicBeacons];
    self.offInterLabel.numberOfLines = 0;
    [self.view addSubview:self.offInterLabel];
    [self.offInterLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SafeWaxSort.sinLaunchCut.fingerOldLog);
        make.left.mas_equalTo(SafeWaxSort.sinLaunchCut.directHasEar);
        make.right.mas_equalTo(-SafeWaxSort.sinLaunchCut.directHasEar);
    }];
    
    
    self.effectiveWaxTextField = [SafeWaxSort justSubsetGaspCommittedImpactAccount];
    self.effectiveWaxTextField.enabled = NO;
    self.effectiveWaxTextField.text = self.tooStairTap[SafeWaxSort.sinLaunchCut.angleOldOutName];
    [self directoryHandlesWaterySingleDeprecateAskView:self.effectiveWaxTextField text:SafeWaxSort.oldBothLogStop.lifetimeAsleepShoulderBeenPink];
    [self.view addSubview:self.effectiveWaxTextField];
    [self.effectiveWaxTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.offInterLabel.mas_bottom).offset(SafeWaxSort.sinLaunchCut.allSkinClamp);
        make.left.mas_equalTo(SafeWaxSort.sinLaunchCut.radioWonWarn);
        make.right.mas_equalTo(-SafeWaxSort.sinLaunchCut.radioWonWarn);
        make.height.mas_equalTo(SafeWaxSort.sinLaunchCut.policyStrict);
    }];
    
    
    self.saveModeDraftTextField = [SafeWaxSort justSubsetGaspCommittedImpactAccount];
    self.saveModeDraftTextField.enabled = NO;
    self.saveModeDraftTextField.text = self.tooStairTap[SafeWaxSort.sinLaunchCut.dayCheckLogKey];
    [self directoryHandlesWaterySingleDeprecateAskView:self.saveModeDraftTextField text:SafeWaxSort.oldBothLogStop.arrangerHerSmartOrderingHighest];
    [self.view addSubview:self.saveModeDraftTextField];
    [self.saveModeDraftTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.effectiveWaxTextField.mas_bottom).offset(SafeWaxSort.sinLaunchCut.allSkinClamp);
        make.left.right.equalTo(self.effectiveWaxTextField);
        make.height.mas_equalTo(SafeWaxSort.sinLaunchCut.policyStrict);
    }];
    
    
    UIButton *dashPitchButton = [SafeWaxSort uniformBarrierWillGainSignalColor:SafeWaxSort.oldBothLogStop.hellmanYouYardSplitMultiply];
    [dashPitchButton addTarget:self action:@selector(stepperGivenUnboundDidWalkingAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:dashPitchButton];
    [dashPitchButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.saveModeDraftTextField.mas_bottom).offset(SafeWaxSort.sinLaunchCut.allSkinClamp);
        make.left.right.equalTo(self.saveModeDraftTextField);
        make.height.mas_equalTo(SafeWaxSort.sinLaunchCut.installsArea);
    }];
    
    
    self.frameEffortButton = [SafeWaxSort affinityThreeResponderGaelicFooters:SafeWaxSort.oldBothLogStop.pinMusicianFontDivideCorruptTerahertz];
    [self.frameEffortButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.frameEffortButton addTarget:self action:@selector(farMorePercentRevealDateAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.frameEffortButton];
    [self.frameEffortButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(dashPitchButton.mas_bottom).offset(SafeWaxSort.sinLaunchCut.lateMenuRun);
        make.centerX.equalTo(self.view);
    }];
}

- (void)directoryHandlesWaterySingleDeprecateAskView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(SafeWaxSort.sinLaunchCut.installsArea, SafeWaxSort.sinLaunchCut.policyStrict)};
    UILabel *pivotOff = [[UILabel alloc] initWithFrame:frame];
    pivotOff.text = text;
    pivotOff.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = pivotOff;
}

- (void)farMorePercentRevealDateAction:(UIButton *)sender {
    [[UseKazakhManager shared] yetPreventsBitsOverdueLambdaHumidityViewController:self.navigationController];
}

- (void)stepperGivenUnboundDidWalkingAction:(UIButton *)sender {
    sender.hidden = YES;
    self.offInterLabel.hidden = YES;
    self.badLooperView.hidden = NO;
    self.assertOffView.hidden = NO;
    self.frameEffortButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(SafeWaxSort.sinLaunchCut.arteryAndWalkItalicInterlaceWidth, SafeWaxSort.sinLaunchCut.youOutAlphabetExtractBirthLimited-SafeWaxSort.sinLaunchCut.mergeBarrier));
    }];
    [self.effectiveWaxTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.badLooperView.mas_bottom).offset(SafeWaxSort.sinLaunchCut.allSkinClamp);
    }];
    [self.view layoutIfNeeded];
    
    BOOL slash = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:SafeWaxSort.sinLaunchCut.forMirroringPackageFaeroeseWrappingInfinityToo];
    if (!slash) {
        self.topMaleOurButton.hidden = NO;
        [AirAlertView baseManualDecodeIndicesModifiersShowers:nil message:SafeWaxSort.oldBothLogStop.ampereIndexKilogramsWorkflowStructure completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= SafeWaxSort.sinLaunchCut.busOcclusion;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:speakerMovieFontDegradedListDescender:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image speakerMovieFontDegradedListDescender:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[UseKazakhManager shared] yetPreventsBitsOverdueLambdaHumidityViewController:self.navigationController];
        [AnyToast bagSkin:SafeWaxSort.oldBothLogStop.abortedLiftNotifyHelpOperating];
    }else {
        self.topMaleOurButton.hidden = NO;
        [AirAlertView baseManualDecodeIndicesModifiersShowers:nil message:SafeWaxSort.oldBothLogStop.ampereIndexKilogramsWorkflowStructure completion:nil];
    }
}

@end
