






#import "SocialIllegalViewController.h"
#import "WinToast.h"
#import "HueYetInfo.h"

@interface SocialIllegalViewController ()

@property (nonatomic, strong) UIImageView *factorPenView;
@property (nonatomic, strong) UIButton *hueDigitSawButton;
@property (nonatomic, strong) UIView *logFillerView;
@property (nonatomic, strong) UILabel *consumerLabel;
@property (nonatomic, strong) UITextField *tatarBendSayTextField;
@property (nonatomic, strong) UITextField *boxDesiredNapTextField;
@end

@implementation SocialIllegalViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.hostingDayButton.hidden = YES;
    
    if ([HueYetInfo tempMenDecreaseSheetHyphenImage]) {
        self.factorPenView = [[UIImageView alloc] initWithImage:[HueYetInfo tempMenDecreaseSheetHyphenImage]];
        [self.view addSubview:self.factorPenView];
        self.factorPenView.hidden = YES;
        [self.factorPenView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(SheTintAuto.linerIndexed.revisionGolf);
            make.left.equalTo(self.curveMailButton.mas_right);
            make.top.equalTo(self.view).offset(SheTintAuto.linerIndexed.drawBehavior);
        }];
    }
    
    self.logFillerView = [SheTintAuto logFillerView];
    self.logFillerView.hidden = YES;
    [self.view addSubview:self.logFillerView];
    [self.logFillerView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([HueYetInfo tempMenDecreaseSheetHyphenImage]) {
            make.centerY.equalTo(self.factorPenView);
            make.left.equalTo(self.factorPenView.mas_right).offset(SheTintAuto.linerIndexed.subUpperFix);
        }else {
            make.top.equalTo(self.view).offset(SheTintAuto.linerIndexed.drawBehavior);
            make.left.equalTo(self.curveMailButton.mas_right).offset(SheTintAuto.linerIndexed.subUpperFix);
        }
        make.right.equalTo(self.hostingDayButton.mas_left);
        make.height.mas_equalTo(SheTintAuto.linerIndexed.revisionGolf);
    }];
    
    self.consumerLabel = [SheTintAuto exportCompileGroupingIdiomChecked:SheTintAuto.floatFootThird.exposureItsLogicalAlphabetSpeak];
    self.consumerLabel.numberOfLines = 0;
    [self.view addSubview:self.consumerLabel];
    [self.consumerLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SheTintAuto.linerIndexed.sandboxUnify);
        make.left.mas_equalTo(SheTintAuto.linerIndexed.rearSawShift);
        make.right.mas_equalTo(-SheTintAuto.linerIndexed.rearSawShift);
    }];
    
    
    self.tatarBendSayTextField = [SheTintAuto capBloodArrangedIntervalsIcyAccount];
    self.tatarBendSayTextField.enabled = NO;
    self.tatarBendSayTextField.text = self.membersPool[SheTintAuto.linerIndexed.stampSixAnyName];
    [self crossTouchesExponentsAutomaticDialogAmountView:self.tatarBendSayTextField text:SheTintAuto.floatFootThird.canadianShrinkActionMixSelectors];
    [self.view addSubview:self.tatarBendSayTextField];
    [self.tatarBendSayTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.consumerLabel.mas_bottom).offset(SheTintAuto.linerIndexed.tapHelperAre);
        make.left.mas_equalTo(SheTintAuto.linerIndexed.waxAnimation);
        make.right.mas_equalTo(-SheTintAuto.linerIndexed.waxAnimation);
        make.height.mas_equalTo(SheTintAuto.linerIndexed.canPolarSpan);
    }];
    
    
    self.boxDesiredNapTextField = [SheTintAuto capBloodArrangedIntervalsIcyAccount];
    self.boxDesiredNapTextField.enabled = NO;
    self.boxDesiredNapTextField.text = self.membersPool[SheTintAuto.linerIndexed.panelAnySunKey];
    [self crossTouchesExponentsAutomaticDialogAmountView:self.boxDesiredNapTextField text:SheTintAuto.floatFootThird.hallCommandRightCubicInsulin];
    [self.view addSubview:self.boxDesiredNapTextField];
    [self.boxDesiredNapTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.tatarBendSayTextField.mas_bottom).offset(SheTintAuto.linerIndexed.tapHelperAre);
        make.left.right.equalTo(self.tatarBendSayTextField);
        make.height.mas_equalTo(SheTintAuto.linerIndexed.canPolarSpan);
    }];
    
    
    UIButton *addressesButton = [SheTintAuto numericWetDirectionLoveRedoColor:SheTintAuto.floatFootThird.lexiconAnyPaletteRedoMath];
    [addressesButton addTarget:self action:@selector(degreeLettishDecryptedReduceCompileAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:addressesButton];
    [addressesButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.boxDesiredNapTextField.mas_bottom).offset(SheTintAuto.linerIndexed.tapHelperAre);
        make.left.right.equalTo(self.boxDesiredNapTextField);
        make.height.mas_equalTo(SheTintAuto.linerIndexed.revisionGolf);
    }];
    
    
    self.hueDigitSawButton = [SheTintAuto jumpFastestLoadingExpensiveAdd:SheTintAuto.floatFootThird.hueImmutableCauseDerivedPressedPresented];
    [self.hueDigitSawButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.hueDigitSawButton addTarget:self action:@selector(threadedHeadlineDutchAvailableCarbonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.hueDigitSawButton];
    [self.hueDigitSawButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(addressesButton.mas_bottom).offset(SheTintAuto.linerIndexed.quickAssert);
        make.centerX.equalTo(self.view);
    }];
}

- (void)crossTouchesExponentsAutomaticDialogAmountView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(SheTintAuto.linerIndexed.revisionGolf, SheTintAuto.linerIndexed.canPolarSpan)};
    UILabel *lacrosse = [[UILabel alloc] initWithFrame:frame];
    lacrosse.text = text;
    lacrosse.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = lacrosse;
}

- (void)threadedHeadlineDutchAvailableCarbonAction:(UIButton *)sender {
    [[RotorWaitManager shared] receiverInvisibleSoloEjectRatingsModerateViewController:self.navigationController];
}

- (void)degreeLettishDecryptedReduceCompileAction:(UIButton *)sender {
    sender.hidden = YES;
    self.consumerLabel.hidden = YES;
    self.logFillerView.hidden = NO;
    self.factorPenView.hidden = NO;
    self.hueDigitSawButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(SheTintAuto.linerIndexed.lateSpotlightInsetNativeUseWidth, SheTintAuto.linerIndexed.feedCalendarRefinedDesignerRevertTry-SheTintAuto.linerIndexed.stepPlateJob));
    }];
    [self.tatarBendSayTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.logFillerView.mas_bottom).offset(SheTintAuto.linerIndexed.tapHelperAre);
    }];
    [self.view layoutIfNeeded];
    
    BOOL arrow = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:SheTintAuto.linerIndexed.hostContainerGradeFitAnimatorWristFood];
    if (!arrow) {
        self.hostingDayButton.hidden = NO;
        [DryAlertView layoutRotationKitBottomStepsonSharing:nil message:SheTintAuto.floatFootThird.capsThresholdHindiTradSun completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= SheTintAuto.linerIndexed.closeRedGram;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:repliesEyeSerializeScoreCommandsKashmiri:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image repliesEyeSerializeScoreCommandsKashmiri:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[RotorWaitManager shared] receiverInvisibleSoloEjectRatingsModerateViewController:self.navigationController];
        [WinToast songMap:SheTintAuto.floatFootThird.increaseRollAssistiveSupplyGasp];
    }else {
        self.hostingDayButton.hidden = NO;
        [DryAlertView layoutRotationKitBottomStepsonSharing:nil message:SheTintAuto.floatFootThird.capsThresholdHindiTradSun completion:nil];
    }
}

@end
