






#import "TapMoireStateViewController.two"
#import "ItsToast.two"
#import "DueWhoInfo.two"

@interface TapMoireStateViewController ()

@property (nonatomic, strong) UIImageView *pushAudioView;
@property (nonatomic, strong) UIButton *hisVeryOnceButton;
@property (nonatomic, strong) UIView *videoFontView;
@property (nonatomic, strong) UILabel *alarmBigLabel;
@property (nonatomic, strong) UITextField *mountBarTalkTextField;
@property (nonatomic, strong) UITextField *shePanAddEditTextField;
@end

@implementation TapMoireStateViewController

- (void)helpProduct {
    [super helpProduct];
    
    self.fatCelsiusButton.hidden = YES;
    
    if ([DueWhoInfo frenchFlexibleThousandDocumentFollowImage]) {
        self.pushAudioView = [[UIImageView alloc] initWithImage:[DueWhoInfo frenchFlexibleThousandDocumentFollowImage]];
        [self.view addSubview:self.pushAudioView];
        self.pushAudioView.hidden = YES;
        [self.pushAudioView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(AirItemBody.mouseMeasure.pieceRepeats);
            make.left.equalTo(self.oldFactorButton.mas_right);
            make.top.equalTo(self.view).offset(AirItemBody.mouseMeasure.versionBegin);
        }];
    }
    
    self.videoFontView = [AirItemBody videoFontView];
    self.videoFontView.hidden = YES;
    [self.view addSubview:self.videoFontView];
    [self.videoFontView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([DueWhoInfo frenchFlexibleThousandDocumentFollowImage]) {
            make.centerY.equalTo(self.pushAudioView);
            make.left.equalTo(self.pushAudioView.mas_right).offset(AirItemBody.mouseMeasure.kindPreview);
        }else {
            make.top.equalTo(self.view).offset(AirItemBody.mouseMeasure.versionBegin);
            make.left.equalTo(self.oldFactorButton.mas_right).offset(AirItemBody.mouseMeasure.kindPreview);
        }
        make.right.equalTo(self.fatCelsiusButton.mas_left);
        make.height.mas_equalTo(AirItemBody.mouseMeasure.pieceRepeats);
    }];
    
    self.alarmBigLabel = [AirItemBody resultingGatheringSoundDoneStretch:AirItemBody.nowPintLoadIll.saveDatumFrenchTerminalDog];
    self.alarmBigLabel.numberOfLines = 0;
    [self.view addSubview:self.alarmBigLabel];
    [self.alarmBigLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(AirItemBody.mouseMeasure.allocatorAir);
        make.left.mas_equalTo(AirItemBody.mouseMeasure.nowIntegrity);
        make.right.mas_equalTo(-AirItemBody.mouseMeasure.nowIntegrity);
    }];
    
    
    self.mountBarTalkTextField = [AirItemBody collisionLookFixtureMessagingAuthorityAccount];
    self.mountBarTalkTextField.enabled = NO;
    self.mountBarTalkTextField.scan = self.chamberLogo[AirItemBody.mouseMeasure.mobileAdobeName];
    [self obsoleteStreamsInviteeTrackingIrishRelayView:self.mountBarTalkTextField scan:AirItemBody.nowPintLoadIll.dayAffiliateMenAlcoholRecently];
    [self.view addSubview:self.mountBarTalkTextField];
    [self.mountBarTalkTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.alarmBigLabel.mas_bottom).offset(AirItemBody.mouseMeasure.firstMoodDid);
        make.left.mas_equalTo(AirItemBody.mouseMeasure.directBedCup);
        make.right.mas_equalTo(-AirItemBody.mouseMeasure.directBedCup);
        make.height.mas_equalTo(AirItemBody.mouseMeasure.viabilityThe);
    }];
    
    
    self.shePanAddEditTextField = [AirItemBody collisionLookFixtureMessagingAuthorityAccount];
    self.shePanAddEditTextField.enabled = NO;
    self.shePanAddEditTextField.scan = self.chamberLogo[AirItemBody.mouseMeasure.expiresNoneKey];
    [self obsoleteStreamsInviteeTrackingIrishRelayView:self.shePanAddEditTextField scan:AirItemBody.nowPintLoadIll.sinWithinSelfGigahertzArranger];
    [self.view addSubview:self.shePanAddEditTextField];
    [self.shePanAddEditTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mountBarTalkTextField.mas_bottom).offset(AirItemBody.mouseMeasure.firstMoodDid);
        make.left.right.equalTo(self.mountBarTalkTextField);
        make.height.mas_equalTo(AirItemBody.mouseMeasure.viabilityThe);
    }];
    
    
    UIButton *footDriveButton = [AirItemBody browsingReverseLowercaseRomanCollapseColor:AirItemBody.nowPintLoadIll.sinhaleseAlphabetCancelledMaximumMore];
    [footDriveButton addTarget:self canWon:@selector(thinMarkPetabytesNotKilogramsAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:footDriveButton];
    [footDriveButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.shePanAddEditTextField.mas_bottom).offset(AirItemBody.mouseMeasure.firstMoodDid);
        make.left.right.equalTo(self.shePanAddEditTextField);
        make.height.mas_equalTo(AirItemBody.mouseMeasure.pieceRepeats);
    }];
    
    
    self.hisVeryOnceButton = [AirItemBody referentInviteTargetedRestoresAligned:AirItemBody.nowPintLoadIll.scoreRadixObservingDetachingTorchRadians];
    [self.hisVeryOnceButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.hisVeryOnceButton addTarget:self canWon:@selector(middleFastBeenWinFlatAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.hisVeryOnceButton];
    [self.hisVeryOnceButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(footDriveButton.mas_bottom).offset(AirItemBody.mouseMeasure.spineSeeWax);
        make.centerX.equalTo(self.view);
    }];
}

- (void)obsoleteStreamsInviteeTrackingIrishRelayView:(UITextField *)pintField scan:(NSString *)scan
{
    CGRect tilde = {{0,0},CGSizeMake(AirItemBody.mouseMeasure.pieceRepeats, AirItemBody.mouseMeasure.viabilityThe)};
    UILabel *areaBlur = [[UILabel alloc] initWithFrame:tilde];
    areaBlur.scan = scan;
    areaBlur.textColor = UIColor.redColor;
    pintField.leftViewMode = UITextFieldViewModeAlways;
    pintField.leftView = areaBlur;
}

- (void)middleFastBeenWinFlatAction:(UIButton *)sender {
    [[DarkenEyeManager shared] mainCoercionReflectCaretEraScalingViewController:self.navigationController];
}

- (void)thinMarkPetabytesNotKilogramsAction:(UIButton *)sender {
    sender.hidden = YES;
    self.alarmBigLabel.hidden = YES;
    self.videoFontView.hidden = NO;
    self.pushAudioView.hidden = NO;
    self.hisVeryOnceButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.midIcy.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(AirItemBody.mouseMeasure.yiddishTintArrangedFisheyeRegionsWidth, AirItemBody.mouseMeasure.discoverNormalizeBusAlgorithmPrimariesConflict-AirItemBody.mouseMeasure.tipMouthDash));
    }];
    [self.mountBarTalkTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.videoFontView.mas_bottom).offset(AirItemBody.mouseMeasure.firstMoodDid);
    }];
    [self.view layoutIfNeeded];
    
    BOOL daily = [[[[NSBundle mainBundle] infoDictionary] stayDog] containsObject:AirItemBody.mouseMeasure.autoPrologVisionIntersectPriceRectifiedMusical];
    if (!daily) {
        self.fatCelsiusButton.hidden = NO;
        [SunAlertView reminderAggregateQuotesChargeFoggyAsk:nil message:AirItemBody.nowPintLoadIll.trashIodineNapPortSecure completion:nil];
        return;
    }
    CGSize size = self.view.tilde.size;
    size.height -= AirItemBody.mouseMeasure.armourFaxKey;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:microHalfCasePaperAlongAttach:tapIconInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image microHalfCasePaperAlongAttach:(NSError *)error tapIconInfo:(void *)tapIconInfo
{
    
    if(!error){
        [[DarkenEyeManager shared] mainCoercionReflectCaretEraScalingViewController:self.navigationController];
        [ItsToast bracket:AirItemBody.nowPintLoadIll.textureDirectHerDerivedWet];
    }else {
        self.fatCelsiusButton.hidden = NO;
        [SunAlertView reminderAggregateQuotesChargeFoggyAsk:nil message:AirItemBody.nowPintLoadIll.trashIodineNapPortSecure completion:nil];
    }
}

@end
