






#import "BlackAdobeCapViewController.h"
#import "AndToast.h"
#import "DublinInfo.h"

@interface BlackAdobeCapViewController ()

@property (nonatomic, strong) UIImageView *idiomSeedView;
@property (nonatomic, strong) UIButton *pulseWetWasButton;
@property (nonatomic, strong) UIView *poloBringView;
@property (nonatomic, strong) UILabel *metalDogLabel;
@property (nonatomic, strong) UITextField *leadOptRenewTextField;
@property (nonatomic, strong) UITextField *unitTooHexPinTextField;
@end

@implementation BlackAdobeCapViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.visualPintButton.hidden = YES;
    
    if ([DublinInfo dragPurpleStackedArmActivityImage]) {
        self.idiomSeedView = [[UIImageView alloc] initWithImage:[DublinInfo dragPurpleStackedArmActivityImage]];
        [self.view addSubview:self.idiomSeedView];
        self.idiomSeedView.hidden = YES;
        [self.idiomSeedView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(LambdaPatch.faxChildBend.extendsDelay);
            make.left.equalTo(self.negotiateButton.mas_right);
            make.top.equalTo(self.view).offset(LambdaPatch.faxChildBend.netDigestAre);
        }];
    }
    
    self.poloBringView = [LambdaPatch poloBringView];
    self.poloBringView.hidden = YES;
    [self.view addSubview:self.poloBringView];
    [self.poloBringView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([DublinInfo dragPurpleStackedArmActivityImage]) {
            make.centerY.equalTo(self.idiomSeedView);
            make.left.equalTo(self.idiomSeedView.mas_right).offset(LambdaPatch.faxChildBend.rowSawInfer);
        }else {
            make.top.equalTo(self.view).offset(LambdaPatch.faxChildBend.netDigestAre);
            make.left.equalTo(self.negotiateButton.mas_right).offset(LambdaPatch.faxChildBend.rowSawInfer);
        }
        make.right.equalTo(self.visualPintButton.mas_left);
        make.height.mas_equalTo(LambdaPatch.faxChildBend.extendsDelay);
    }];
    
    self.metalDogLabel = [LambdaPatch segmentsPubChannelsBusImage:LambdaPatch.returnThatMode.convertUsedReceivingDepartureHockey];
    self.metalDogLabel.numberOfLines = 0;
    [self.view addSubview:self.metalDogLabel];
    [self.metalDogLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(LambdaPatch.faxChildBend.dismissedAir);
        make.left.mas_equalTo(LambdaPatch.faxChildBend.formScoreKey);
        make.right.mas_equalTo(-LambdaPatch.faxChildBend.formScoreKey);
    }];
    
    
    self.leadOptRenewTextField = [LambdaPatch formEndBitOptMaskAccount];
    self.leadOptRenewTextField.enabled = NO;
    self.leadOptRenewTextField.text = self.mostTipRest[LambdaPatch.faxChildBend.textJoiningName];
    [self talkRetVeryDuplexPictureEarView:self.leadOptRenewTextField text:LambdaPatch.returnThatMode.chromeGrayDuplexKinLegal];
    [self.view addSubview:self.leadOptRenewTextField];
    [self.leadOptRenewTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.metalDogLabel.mas_bottom).offset(LambdaPatch.faxChildBend.maxCropRetry);
        make.left.mas_equalTo(LambdaPatch.faxChildBend.mixFatExtent);
        make.right.mas_equalTo(-LambdaPatch.faxChildBend.mixFatExtent);
        make.height.mas_equalTo(LambdaPatch.faxChildBend.armPrintable);
    }];
    
    
    self.unitTooHexPinTextField = [LambdaPatch formEndBitOptMaskAccount];
    self.unitTooHexPinTextField.enabled = NO;
    self.unitTooHexPinTextField.text = self.mostTipRest[LambdaPatch.faxChildBend.clipKeyIdleKey];
    [self talkRetVeryDuplexPictureEarView:self.unitTooHexPinTextField text:LambdaPatch.returnThatMode.protectedRateAnimatingAboveReachable];
    [self.view addSubview:self.unitTooHexPinTextField];
    [self.unitTooHexPinTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.leadOptRenewTextField.mas_bottom).offset(LambdaPatch.faxChildBend.maxCropRetry);
        make.left.right.equalTo(self.leadOptRenewTextField);
        make.height.mas_equalTo(LambdaPatch.faxChildBend.armPrintable);
    }];
    
    
    UIButton *constantsButton = [LambdaPatch keyOwnVowelFatFootColor:LambdaPatch.returnThatMode.originSmileContextsGoalFinish];
    [constantsButton addTarget:self action:@selector(estimateOldestIndentMethodExpandAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:constantsButton];
    [constantsButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.unitTooHexPinTextField.mas_bottom).offset(LambdaPatch.faxChildBend.maxCropRetry);
        make.left.right.equalTo(self.unitTooHexPinTextField);
        make.height.mas_equalTo(LambdaPatch.faxChildBend.extendsDelay);
    }];
    
    
    self.pulseWetWasButton = [LambdaPatch versionsBandOwnStreamsAnswer:LambdaPatch.returnThatMode.counterGetFeatureSiteCalculateOperand];
    [self.pulseWetWasButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.pulseWetWasButton addTarget:self action:@selector(reportFrontFreeModifyPanAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.pulseWetWasButton];
    [self.pulseWetWasButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(constantsButton.mas_bottom).offset(LambdaPatch.faxChildBend.rareCapLook);
        make.centerX.equalTo(self.view);
    }];
}

- (void)talkRetVeryDuplexPictureEarView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(LambdaPatch.faxChildBend.extendsDelay, LambdaPatch.faxChildBend.armPrintable)};
    UILabel *postcard = [[UILabel alloc] initWithFrame:frame];
    postcard.text = text;
    postcard.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = postcard;
}

- (void)reportFrontFreeModifyPanAction:(UIButton *)sender {
    [[FiberRaceManager shared] acquireRegularBarsRecordingNominallyAnimateViewController:self.navigationController];
}

- (void)estimateOldestIndentMethodExpandAction:(UIButton *)sender {
    sender.hidden = YES;
    self.metalDogLabel.hidden = YES;
    self.poloBringView.hidden = NO;
    self.idiomSeedView.hidden = NO;
    self.pulseWetWasButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(LambdaPatch.faxChildBend.linearDisplayExpectsDublinLinearWidth, LambdaPatch.faxChildBend.displayOnceStormDuePortalAudio-LambdaPatch.faxChildBend.likeBeganFit));
    }];
    [self.leadOptRenewTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.poloBringView.mas_bottom).offset(LambdaPatch.faxChildBend.maxCropRetry);
    }];
    [self.view layoutIfNeeded];
    
    BOOL joule = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:LambdaPatch.faxChildBend.trySemaphoreComplexLooperFitDingbatsAllow];
    if (!joule) {
        self.visualPintButton.hidden = NO;
        [GetAlertView collapsesButterflyCapturesKernelsPairInvite:nil message:LambdaPatch.returnThatMode.cellphoneSpecifierCervicalBaseArrival completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= LambdaPatch.faxChildBend.clickStopDry;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:suggestShearFollowMaleMediaAdvance:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image suggestShearFollowMaleMediaAdvance:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[FiberRaceManager shared] acquireRegularBarsRecordingNominallyAnimateViewController:self.navigationController];
        [AndToast samePan:LambdaPatch.returnThatMode.danceResultsAddressArcheryCall];
    }else {
        self.visualPintButton.hidden = NO;
        [GetAlertView collapsesButterflyCapturesKernelsPairInvite:nil message:LambdaPatch.returnThatMode.cellphoneSpecifierCervicalBaseArrival completion:nil];
    }
}

@end
