






#import "MarkUnionMillViewController.h"
#import "CatToast.h"
#import "ManWonInfo.h"

@interface MarkUnionMillViewController ()

@property (nonatomic, strong) UIImageView *partTwistView;
@property (nonatomic, strong) UIButton *socketChinaButton;
@property (nonatomic, strong) UIView *directionView;
@property (nonatomic, strong) UILabel *seeEqualLabel;
@property (nonatomic, strong) UITextField *resultTremorTextField;
@property (nonatomic, strong) UITextField *blinkLookLinkTextField;
@end

@implementation MarkUnionMillViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.clampedDryButton.hidden = YES;
    
    if ([ManWonInfo sceneOperatingArchivedCheckerReliableImage]) {
        self.partTwistView = [[UIImageView alloc] initWithImage:[ManWonInfo sceneOperatingArchivedCheckerReliableImage]];
        [self.view addSubview:self.partTwistView];
        self.partTwistView.hidden = YES;
        [self.partTwistView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(SkinEchoMen.pauseKirghiz.selfBlendCap);
            make.left.equalTo(self.pivotFoodButton.mas_right);
            make.top.equalTo(self.view).offset(SkinEchoMen.pauseKirghiz.slovakFunDog);
        }];
    }
    
    self.directionView = [SkinEchoMen directionView];
    self.directionView.hidden = YES;
    [self.view addSubview:self.directionView];
    [self.directionView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([ManWonInfo sceneOperatingArchivedCheckerReliableImage]) {
            make.centerY.equalTo(self.partTwistView);
            make.left.equalTo(self.partTwistView.mas_right).offset(SkinEchoMen.pauseKirghiz.thickArtery);
        }else {
            make.top.equalTo(self.view).offset(SkinEchoMen.pauseKirghiz.slovakFunDog);
            make.left.equalTo(self.pivotFoodButton.mas_right).offset(SkinEchoMen.pauseKirghiz.thickArtery);
        }
        make.right.equalTo(self.clampedDryButton.mas_left);
        make.height.mas_equalTo(SkinEchoMen.pauseKirghiz.selfBlendCap);
    }];
    
    self.seeEqualLabel = [SkinEchoMen farsiSeeAssignQuechuaLengths:SkinEchoMen.cubePrimeToken.bestShutterExchangesCategoryEditorial];
    self.seeEqualLabel.numberOfLines = 0;
    [self.view addSubview:self.seeEqualLabel];
    [self.seeEqualLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SkinEchoMen.pauseKirghiz.bedBasicArts);
        make.left.mas_equalTo(SkinEchoMen.pauseKirghiz.songReplySpa);
        make.right.mas_equalTo(-SkinEchoMen.pauseKirghiz.songReplySpa);
    }];
    
    
    self.resultTremorTextField = [SkinEchoMen auditedReleaseDetectsUnwrapCardioidAccount];
    self.resultTremorTextField.enabled = NO;
    self.resultTremorTextField.text = self.downhillHer[SkinEchoMen.pauseKirghiz.humanSampleName];
    [self collectedAnalysisBayerOperateAdverbCircularView:self.resultTremorTextField text:SkinEchoMen.cubePrimeToken.opaqueLostMapSwappedRank];
    [self.view addSubview:self.resultTremorTextField];
    [self.resultTremorTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.seeEqualLabel.mas_bottom).offset(SkinEchoMen.pauseKirghiz.mainEarLater);
        make.left.mas_equalTo(SkinEchoMen.pauseKirghiz.mightSeeLook);
        make.right.mas_equalTo(-SkinEchoMen.pauseKirghiz.mightSeeLook);
        make.height.mas_equalTo(SkinEchoMen.pauseKirghiz.zipPageQuiet);
    }];
    
    
    self.blinkLookLinkTextField = [SkinEchoMen auditedReleaseDetectsUnwrapCardioidAccount];
    self.blinkLookLinkTextField.enabled = NO;
    self.blinkLookLinkTextField.text = self.downhillHer[SkinEchoMen.pauseKirghiz.lightArtEraKey];
    [self collectedAnalysisBayerOperateAdverbCircularView:self.blinkLookLinkTextField text:SkinEchoMen.cubePrimeToken.numericAcrossRouterTeamFarsi];
    [self.view addSubview:self.blinkLookLinkTextField];
    [self.blinkLookLinkTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.resultTremorTextField.mas_bottom).offset(SkinEchoMen.pauseKirghiz.mainEarLater);
        make.left.right.equalTo(self.resultTremorTextField);
        make.height.mas_equalTo(SkinEchoMen.pauseKirghiz.zipPageQuiet);
    }];
    
    
    UIButton *rateBrownButton = [SkinEchoMen anchorsBaselineManNextMediumColor:SkinEchoMen.cubePrimeToken.passRelativeRecursiveDuplicateDisabled];
    [rateBrownButton addTarget:self action:@selector(kashmiriReservedMastersSafeSubAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:rateBrownButton];
    [rateBrownButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.blinkLookLinkTextField.mas_bottom).offset(SkinEchoMen.pauseKirghiz.mainEarLater);
        make.left.right.equalTo(self.blinkLookLinkTextField);
        make.height.mas_equalTo(SkinEchoMen.pauseKirghiz.selfBlendCap);
    }];
    
    
    self.socketChinaButton = [SkinEchoMen ordinalsGeorgianMegawattsDetectsTeam:SkinEchoMen.cubePrimeToken.airRefreshedPatternsForSleepLookup];
    [self.socketChinaButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.socketChinaButton addTarget:self action:@selector(grayThresholdOpenTextArrangedAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.socketChinaButton];
    [self.socketChinaButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(rateBrownButton.mas_bottom).offset(SkinEchoMen.pauseKirghiz.reorderStop);
        make.centerX.equalTo(self.view);
    }];
}

- (void)collectedAnalysisBayerOperateAdverbCircularView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(SkinEchoMen.pauseKirghiz.selfBlendCap, SkinEchoMen.pauseKirghiz.zipPageQuiet)};
    UILabel *bookmark = [[UILabel alloc] initWithFrame:frame];
    bookmark.text = text;
    bookmark.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = bookmark;
}

- (void)grayThresholdOpenTextArrangedAction:(UIButton *)sender {
    [[OutDemandManager shared] canceledAsleepPauseSheStalledCreationViewController:self.navigationController];
}

- (void)kashmiriReservedMastersSafeSubAction:(UIButton *)sender {
    sender.hidden = YES;
    self.seeEqualLabel.hidden = YES;
    self.directionView.hidden = NO;
    self.partTwistView.hidden = NO;
    self.socketChinaButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(SkinEchoMen.pauseKirghiz.layoutCheckoutYouFilterAngleWidth, SkinEchoMen.pauseKirghiz.friendNowLayoutFunnelDividerFax-SkinEchoMen.pauseKirghiz.downBinVital));
    }];
    [self.resultTremorTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.directionView.mas_bottom).offset(SkinEchoMen.pauseKirghiz.mainEarLater);
    }];
    [self.view layoutIfNeeded];
    
    BOOL spine = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:SkinEchoMen.pauseKirghiz.prominentDisablesLazyYellowNineAreProximity];
    if (!spine) {
        self.clampedDryButton.hidden = NO;
        [FunAlertView thirdExecFunnelNapFrenchPeriodic:nil message:SkinEchoMen.cubePrimeToken.costSegmentsWideShowersAlign completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= SkinEchoMen.pauseKirghiz.tooDayCorner;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:walkAnimationShowingUniqueWireGet:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image walkAnimationShowingUniqueWireGet:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[OutDemandManager shared] canceledAsleepPauseSheStalledCreationViewController:self.navigationController];
        [CatToast theSoft:SkinEchoMen.cubePrimeToken.emptyFocusesFiveRequestedSupported];
    }else {
        self.clampedDryButton.hidden = NO;
        [FunAlertView thirdExecFunnelNapFrenchPeriodic:nil message:SkinEchoMen.cubePrimeToken.costSegmentsWideShowersAlign completion:nil];
    }
}

@end
