






#import "DayThiaminTapViewController.h"
#import "ZipToast.h"
#import "DemandInfo.h"

@interface DayThiaminTapViewController ()

@property (nonatomic, strong) UIImageView *mainLightView;
@property (nonatomic, strong) UIButton *tagsFacePinButton;
@property (nonatomic, strong) UIView *layoutPinView;
@property (nonatomic, strong) UILabel *wordTiedLabel;
@property (nonatomic, strong) UITextField *sexHumanSafeTextField;
@property (nonatomic, strong) UITextField *subtractOceanTextField;
@end

@implementation DayThiaminTapViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.dueLexiconButton.hidden = YES;
    
    if ([DemandInfo bothShadowNameOpacityHourImage]) {
        self.mainLightView = [[UIImageView alloc] initWithImage:[DemandInfo bothShadowNameOpacityHourImage]];
        [self.view addSubview:self.mainLightView];
        self.mainLightView.hidden = YES;
        [self.mainLightView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(DueIcyFetch.itsPosterIcy.pascalTipTab);
            make.left.equalTo(self.whileSkinButton.mas_right);
            make.top.equalTo(self.view).offset(DueIcyFetch.itsPosterIcy.netIndianFat);
        }];
    }
    
    self.layoutPinView = [DueIcyFetch layoutPinView];
    self.layoutPinView.hidden = YES;
    [self.view addSubview:self.layoutPinView];
    [self.layoutPinView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([DemandInfo bothShadowNameOpacityHourImage]) {
            make.centerY.equalTo(self.mainLightView);
            make.left.equalTo(self.mainLightView.mas_right).offset(DueIcyFetch.itsPosterIcy.nowWeekForm);
        }else {
            make.top.equalTo(self.view).offset(DueIcyFetch.itsPosterIcy.netIndianFat);
            make.left.equalTo(self.whileSkinButton.mas_right).offset(DueIcyFetch.itsPosterIcy.nowWeekForm);
        }
        make.right.equalTo(self.dueLexiconButton.mas_left);
        make.height.mas_equalTo(DueIcyFetch.itsPosterIcy.pascalTipTab);
    }];
    
    self.wordTiedLabel = [DueIcyFetch soloistRebusArabicManganeseGestures:DueIcyFetch.catBaseSinFill.megahertzImportantNeutralBagEgg];
    self.wordTiedLabel.numberOfLines = 0;
    [self.view addSubview:self.wordTiedLabel];
    [self.wordTiedLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(DueIcyFetch.itsPosterIcy.curveOwnQuit);
        make.left.mas_equalTo(DueIcyFetch.itsPosterIcy.managerMetal);
        make.right.mas_equalTo(-DueIcyFetch.itsPosterIcy.managerMetal);
    }];
    
    
    self.sexHumanSafeTextField = [DueIcyFetch lastBannerLostMightScalarAccount];
    self.sexHumanSafeTextField.enabled = NO;
    self.sexHumanSafeTextField.text = self.weeklySpeed[DueIcyFetch.itsPosterIcy.moreBetweenName];
    [self filenameEndFixAdvancesRotorStartView:self.sexHumanSafeTextField text:DueIcyFetch.catBaseSinFill.photoDegreesDenyAirHebrew];
    [self.view addSubview:self.sexHumanSafeTextField];
    [self.sexHumanSafeTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.wordTiedLabel.mas_bottom).offset(DueIcyFetch.itsPosterIcy.recoveredLow);
        make.left.mas_equalTo(DueIcyFetch.itsPosterIcy.flowStrategy);
        make.right.mas_equalTo(-DueIcyFetch.itsPosterIcy.flowStrategy);
        make.height.mas_equalTo(DueIcyFetch.itsPosterIcy.operandPiece);
    }];
    
    
    self.subtractOceanTextField = [DueIcyFetch lastBannerLostMightScalarAccount];
    self.subtractOceanTextField.enabled = NO;
    self.subtractOceanTextField.text = self.weeklySpeed[DueIcyFetch.itsPosterIcy.logoPanLongKey];
    [self filenameEndFixAdvancesRotorStartView:self.subtractOceanTextField text:DueIcyFetch.catBaseSinFill.tropicalEquallyGradeBevelLog];
    [self.view addSubview:self.subtractOceanTextField];
    [self.subtractOceanTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.sexHumanSafeTextField.mas_bottom).offset(DueIcyFetch.itsPosterIcy.recoveredLow);
        make.left.right.equalTo(self.sexHumanSafeTextField);
        make.height.mas_equalTo(DueIcyFetch.itsPosterIcy.operandPiece);
    }];
    
    
    UIButton *quickPageButton = [DueIcyFetch expertNetBitsSplatHeaderColor:DueIcyFetch.catBaseSinFill.appliesIssueScrollProtocolCheck];
    [quickPageButton addTarget:self action:@selector(diagnoseCovariantAdjectiveEndsAlarmAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:quickPageButton];
    [quickPageButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.subtractOceanTextField.mas_bottom).offset(DueIcyFetch.itsPosterIcy.recoveredLow);
        make.left.right.equalTo(self.subtractOceanTextField);
        make.height.mas_equalTo(DueIcyFetch.itsPosterIcy.pascalTipTab);
    }];
    
    
    self.tagsFacePinButton = [DueIcyFetch didReversesHumidityRemainingKnow:DueIcyFetch.catBaseSinFill.cutKeepCursorWrappedCookieEither];
    [self.tagsFacePinButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.tagsFacePinButton addTarget:self action:@selector(followSexLineRemotelyDecideAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.tagsFacePinButton];
    [self.tagsFacePinButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(quickPageButton.mas_bottom).offset(DueIcyFetch.itsPosterIcy.worldReload);
        make.centerX.equalTo(self.view);
    }];
}

- (void)filenameEndFixAdvancesRotorStartView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(DueIcyFetch.itsPosterIcy.pascalTipTab, DueIcyFetch.itsPosterIcy.operandPiece)};
    UILabel *runSound = [[UILabel alloc] initWithFrame:frame];
    runSound.text = text;
    runSound.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = runSound;
}

- (void)followSexLineRemotelyDecideAction:(UIButton *)sender {
    [[TalkArrayManager shared] stepchildTokenHeaderWhiteUnifiedNiacinViewController:self.navigationController];
}

- (void)diagnoseCovariantAdjectiveEndsAlarmAction:(UIButton *)sender {
    sender.hidden = YES;
    self.wordTiedLabel.hidden = YES;
    self.layoutPinView.hidden = NO;
    self.mainLightView.hidden = NO;
    self.tagsFacePinButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(DueIcyFetch.itsPosterIcy.microNumericUseUptimeCallWidth, DueIcyFetch.itsPosterIcy.viabilitySoccerIterationStrategyChlorideAudited-DueIcyFetch.itsPosterIcy.ascentListen));
    }];
    [self.sexHumanSafeTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.layoutPinView.mas_bottom).offset(DueIcyFetch.itsPosterIcy.recoveredLow);
    }];
    [self.view layoutIfNeeded];
    
    BOOL third = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:DueIcyFetch.itsPosterIcy.doneAudioWidgetUplinkFairConsumerFun];
    if (!third) {
        self.dueLexiconButton.hidden = NO;
        [SinAlertView pubPromisedSmartWaySettlingDecrypted:nil message:DueIcyFetch.catBaseSinFill.closeCharacterSedentaryInterlacePop completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= DueIcyFetch.itsPosterIcy.bedHowSupply;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:manganeseBitVisionOwnRecursivePub:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image manganeseBitVisionOwnRecursivePub:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[TalkArrayManager shared] stepchildTokenHeaderWhiteUnifiedNiacinViewController:self.navigationController];
        [ZipToast zipFlat:DueIcyFetch.catBaseSinFill.leapLibrarySpacingInsertionFloor];
    }else {
        self.dueLexiconButton.hidden = NO;
        [SinAlertView pubPromisedSmartWaySettlingDecrypted:nil message:DueIcyFetch.catBaseSinFill.closeCharacterSedentaryInterlacePop completion:nil];
    }
}

@end
