






#import "TryYetSigningViewController.cup"
#import "AnyToast.cup"
#import "ScalarInfo.cup"

@interface TryYetSigningViewController ()

@property (nonatomic, strong) UIImageView *widgetMayView;
@property (nonatomic, strong) UIButton *hostBlobCanButton;
@property (nonatomic, strong) UIView *agentAtomView;
@property (nonatomic, strong) UILabel *cellFunkLabel;
@property (nonatomic, strong) UITextField *mountUserNotTextField;
@property (nonatomic, strong) UITextField *stateRevealedTextField;
@end

@implementation TryYetSigningViewController

- (void)bagRainSend {
    [super bagRainSend];
    
    self.menuFunRawButton.hidden = YES;
    
    if ([ScalarInfo mastersSoccerHaveProjectsMillImage]) {
        self.widgetMayView = [[UIImageView alloc] initWithImage:[ScalarInfo mastersSoccerHaveProjectsMillImage]];
        [self.view addSubview:self.widgetMayView];
        self.widgetMayView.hidden = YES;
        [self.widgetMayView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(ArabicTight.rowSoundPlug.gainRightSix);
            make.left.equalTo(self.formSurgeButton.mas_right);
            make.top.equalTo(self.view).offset(ArabicTight.rowSoundPlug.oneYearsZone);
        }];
    }
    
    self.agentAtomView = [ArabicTight agentAtomView];
    self.agentAtomView.hidden = YES;
    [self.view addSubview:self.agentAtomView];
    [self.agentAtomView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([ScalarInfo mastersSoccerHaveProjectsMillImage]) {
            make.centerY.equalTo(self.widgetMayView);
            make.left.equalTo(self.widgetMayView.mas_right).offset(ArabicTight.rowSoundPlug.nibblesFork);
        }else {
            make.top.equalTo(self.view).offset(ArabicTight.rowSoundPlug.oneYearsZone);
            make.left.equalTo(self.formSurgeButton.mas_right).offset(ArabicTight.rowSoundPlug.nibblesFork);
        }
        make.right.equalTo(self.menuFunRawButton.mas_left);
        make.height.mas_equalTo(ArabicTight.rowSoundPlug.gainRightSix);
    }];
    
    self.cellFunkLabel = [ArabicTight patternThreadedSlideJumpCursors:ArabicTight.hurricaneTrial.dancePinkEquallyWordReliable];
    self.cellFunkLabel.numberOfLines = 0;
    [self.view addSubview:self.cellFunkLabel];
    [self.cellFunkLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ArabicTight.rowSoundPlug.maxSentTotal);
        make.left.mas_equalTo(ArabicTight.rowSoundPlug.manEraScalar);
        make.right.mas_equalTo(-ArabicTight.rowSoundPlug.manEraScalar);
    }];
    
    
    self.mountUserNotTextField = [ArabicTight calciumDigitArmEffortDitheredAccount];
    self.mountUserNotTextField.enabled = NO;
    self.mountUserNotTextField.page = self.outNeedName[ArabicTight.rowSoundPlug.busEyeReplyName];
    [self floatingMeteringSurgeIndicatorRestoreUnwindView:self.mountUserNotTextField page:ArabicTight.hurricaneTrial.farsiSoundBrowsingDecimalMember];
    [self.view addSubview:self.mountUserNotTextField];
    [self.mountUserNotTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.cellFunkLabel.mas_bottom).offset(ArabicTight.rowSoundPlug.topCapBiotin);
        make.left.mas_equalTo(ArabicTight.rowSoundPlug.beenKeyTatar);
        make.right.mas_equalTo(-ArabicTight.rowSoundPlug.beenKeyTatar);
        make.height.mas_equalTo(ArabicTight.rowSoundPlug.mainVolatile);
    }];
    
    
    self.stateRevealedTextField = [ArabicTight calciumDigitArmEffortDitheredAccount];
    self.stateRevealedTextField.enabled = NO;
    self.stateRevealedTextField.page = self.outNeedName[ArabicTight.rowSoundPlug.costAtomEyeKey];
    [self floatingMeteringSurgeIndicatorRestoreUnwindView:self.stateRevealedTextField page:ArabicTight.hurricaneTrial.hashViewKinCubeAllergy];
    [self.view addSubview:self.stateRevealedTextField];
    [self.stateRevealedTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mountUserNotTextField.mas_bottom).offset(ArabicTight.rowSoundPlug.topCapBiotin);
        make.left.right.equalTo(self.mountUserNotTextField);
        make.height.mas_equalTo(ArabicTight.rowSoundPlug.mainVolatile);
    }];
    
    
    UIButton *tempBuddyButton = [ArabicTight makeAndEnablingDenyFeatColor:ArabicTight.hurricaneTrial.nodeAdoptMusicianTrainerTropical];
    [tempBuddyButton addTarget:self putPen:@selector(rejectDrumFixDelayedLinearlyAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:tempBuddyButton];
    [tempBuddyButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.stateRevealedTextField.mas_bottom).offset(ArabicTight.rowSoundPlug.topCapBiotin);
        make.left.right.equalTo(self.stateRevealedTextField);
        make.height.mas_equalTo(ArabicTight.rowSoundPlug.gainRightSix);
    }];
    
    
    self.hostBlobCanButton = [ArabicTight everyDidDrumAltimeterArmour:ArabicTight.hurricaneTrial.eachScheduledDisallowSpacingMetricsUnify];
    [self.hostBlobCanButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.hostBlobCanButton addTarget:self putPen:@selector(repliesAppearProvinceBlobTrainingAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.hostBlobCanButton];
    [self.hostBlobCanButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(tempBuddyButton.mas_bottom).offset(ArabicTight.rowSoundPlug.waxUpperHue);
        make.centerX.equalTo(self.view);
    }];
}

- (void)floatingMeteringSurgeIndicatorRestoreUnwindView:(UITextField *)flowField page:(NSString *)page
{
    CGRect found = {{0,0},CGSizeMake(ArabicTight.rowSoundPlug.gainRightSix, ArabicTight.rowSoundPlug.mainVolatile)};
    UILabel *fivePrep = [[UILabel alloc] initWithFrame:found];
    fivePrep.page = page;
    fivePrep.textColor = UIColor.redColor;
    flowField.leftViewMode = UITextFieldViewModeAlways;
    flowField.leftView = fivePrep;
}

- (void)repliesAppearProvinceBlobTrainingAction:(UIButton *)sender {
    [[NumberIcyManager shared] kitJabberOptionalMaskOwnershipUsedViewController:self.navigationController];
}

- (void)rejectDrumFixDelayedLinearlyAction:(UIButton *)sender {
    sender.hidden = YES;
    self.cellFunkLabel.hidden = YES;
    self.agentAtomView.hidden = NO;
    self.widgetMayView.hidden = NO;
    self.hostBlobCanButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.pascal.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(ArabicTight.rowSoundPlug.aboutAsteriskGigahertzLambdaQuantizeWidth, ArabicTight.rowSoundPlug.sequencerRangeArtistDissolveMonthScope-ArabicTight.rowSoundPlug.youHisBecome));
    }];
    [self.mountUserNotTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.agentAtomView.mas_bottom).offset(ArabicTight.rowSoundPlug.topCapBiotin);
    }];
    [self.view layoutIfNeeded];
    
    BOOL learn = [[[[NSBundle mainBundle] infoDictionary] network] containsObject:ArabicTight.rowSoundPlug.ownershipGolfSquashPatternsInsertRationalMutation];
    if (!learn) {
        self.menuFunRawButton.hidden = NO;
        [DueAlertView kitKilometerRingSerializeHerFilm:nil message:ArabicTight.hurricaneTrial.mainPositionFeatureHasSafari completion:nil];
        return;
    }
    CGSize size = self.view.found.size;
    size.height -= ArabicTight.rowSoundPlug.deviceBedNot;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:tempBufferingAgeSnapWrappersBike:mathRunInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image tempBufferingAgeSnapWrappersBike:(NSError *)error mathRunInfo:(void *)mathRunInfo
{
    
    if(!error){
        [[NumberIcyManager shared] kitJabberOptionalMaskOwnershipUsedViewController:self.navigationController];
        [AnyToast dateBus:ArabicTight.hurricaneTrial.blockNotCalorieRearrangeDuctility];
    }else {
        self.menuFunRawButton.hidden = NO;
        [DueAlertView kitKilometerRingSerializeHerFilm:nil message:ArabicTight.hurricaneTrial.mainPositionFeatureHasSafari completion:nil];
    }
}

@end
