






#import "SentinelDenseViewController.h"
#import "AgeToast.h"
#import "CatAnyInfo.h"

@interface SentinelDenseViewController ()

@property (nonatomic, strong) UIImageView *bodyRebusView;
@property (nonatomic, strong) UIButton *waxWaxSpeedButton;
@property (nonatomic, strong) UIView *invokeTryView;
@property (nonatomic, strong) UILabel *acuteArmLabel;
@property (nonatomic, strong) UITextField *cellYouSliceTextField;
@property (nonatomic, strong) UITextField *slashGuestJobTextField;
@end

@implementation SentinelDenseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.sunTreeIllButton.hidden = YES;
    
    if ([CatAnyInfo hardArrowSegmentsAdobeDecigramsImage]) {
        self.bodyRebusView = [[UIImageView alloc] initWithImage:[CatAnyInfo hardArrowSegmentsAdobeDecigramsImage]];
        [self.view addSubview:self.bodyRebusView];
        self.bodyRebusView.hidden = YES;
        [self.bodyRebusView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(WinSubAbove.swipeFlagDay.civilNearBad);
            make.left.equalTo(self.sunStaticButton.mas_right);
            make.top.equalTo(self.view).offset(WinSubAbove.swipeFlagDay.hexRangeLeap);
        }];
    }
    
    self.invokeTryView = [WinSubAbove invokeTryView];
    self.invokeTryView.hidden = YES;
    [self.view addSubview:self.invokeTryView];
    [self.invokeTryView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([CatAnyInfo hardArrowSegmentsAdobeDecigramsImage]) {
            make.centerY.equalTo(self.bodyRebusView);
            make.left.equalTo(self.bodyRebusView.mas_right).offset(WinSubAbove.swipeFlagDay.peakGrammar);
        }else {
            make.top.equalTo(self.view).offset(WinSubAbove.swipeFlagDay.hexRangeLeap);
            make.left.equalTo(self.sunStaticButton.mas_right).offset(WinSubAbove.swipeFlagDay.peakGrammar);
        }
        make.right.equalTo(self.sunTreeIllButton.mas_left);
        make.height.mas_equalTo(WinSubAbove.swipeFlagDay.civilNearBad);
    }];
    
    self.acuteArmLabel = [WinSubAbove entropySayClaimSoftnessEncrypt:WinSubAbove.resourcesCanon.pickMountExtractFollowerBurn];
    self.acuteArmLabel.numberOfLines = 0;
    [self.view addSubview:self.acuteArmLabel];
    [self.acuteArmLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(WinSubAbove.swipeFlagDay.fixTruncated);
        make.left.mas_equalTo(WinSubAbove.swipeFlagDay.hangWaistBox);
        make.right.mas_equalTo(-WinSubAbove.swipeFlagDay.hangWaistBox);
    }];
    
    
    self.cellYouSliceTextField = [WinSubAbove visitorSawBestConflictPostalAccount];
    self.cellYouSliceTextField.enabled = NO;
    self.cellYouSliceTextField.text = self.endOnlyCall[WinSubAbove.swipeFlagDay.waterEggAgeName];
    [self storageTrialGuestAfterMindTagsView:self.cellYouSliceTextField text:WinSubAbove.resourcesCanon.ellipsisVersionsGuideJoinPermute];
    [self.view addSubview:self.cellYouSliceTextField];
    [self.cellYouSliceTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.acuteArmLabel.mas_bottom).offset(WinSubAbove.swipeFlagDay.herAssistive);
        make.left.mas_equalTo(WinSubAbove.swipeFlagDay.buildCityJob);
        make.right.mas_equalTo(-WinSubAbove.swipeFlagDay.buildCityJob);
        make.height.mas_equalTo(WinSubAbove.swipeFlagDay.dueGrowUnion);
    }];
    
    
    self.slashGuestJobTextField = [WinSubAbove visitorSawBestConflictPostalAccount];
    self.slashGuestJobTextField.enabled = NO;
    self.slashGuestJobTextField.text = self.endOnlyCall[WinSubAbove.swipeFlagDay.moreStrokedKey];
    [self storageTrialGuestAfterMindTagsView:self.slashGuestJobTextField text:WinSubAbove.resourcesCanon.playableRedefinedSeeRateResponse];
    [self.view addSubview:self.slashGuestJobTextField];
    [self.slashGuestJobTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.cellYouSliceTextField.mas_bottom).offset(WinSubAbove.swipeFlagDay.herAssistive);
        make.left.right.equalTo(self.cellYouSliceTextField);
        make.height.mas_equalTo(WinSubAbove.swipeFlagDay.dueGrowUnion);
    }];
    
    
    UIButton *ampereIcyButton = [WinSubAbove transposePipeAddCurlOurColor:WinSubAbove.resourcesCanon.coalescedPascalWrongIterationMood];
    [ampereIcyButton addTarget:self action:@selector(preservedDetectionPenEraIncrementAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:ampereIcyButton];
    [ampereIcyButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.slashGuestJobTextField.mas_bottom).offset(WinSubAbove.swipeFlagDay.herAssistive);
        make.left.right.equalTo(self.slashGuestJobTextField);
        make.height.mas_equalTo(WinSubAbove.swipeFlagDay.civilNearBad);
    }];
    
    
    self.waxWaxSpeedButton = [WinSubAbove pieceGravityBookWirelessShutdown:WinSubAbove.resourcesCanon.sheMaxGatherRejectIdleRemove];
    [self.waxWaxSpeedButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.waxWaxSpeedButton addTarget:self action:@selector(latitudeAchievedLacrosseAcceptCivilAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.waxWaxSpeedButton];
    [self.waxWaxSpeedButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(ampereIcyButton.mas_bottom).offset(WinSubAbove.swipeFlagDay.speakFinder);
        make.centerX.equalTo(self.view);
    }];
}

- (void)storageTrialGuestAfterMindTagsView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(WinSubAbove.swipeFlagDay.civilNearBad, WinSubAbove.swipeFlagDay.dueGrowUnion)};
    UILabel *longOnly = [[UILabel alloc] initWithFrame:frame];
    longOnly.text = text;
    longOnly.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = longOnly;
}

- (void)latitudeAchievedLacrosseAcceptCivilAction:(UIButton *)sender {
    [[AutoIntroManager shared] moduleGeorgianThousandFlatnessTransposeIgnoresViewController:self.navigationController];
}

- (void)preservedDetectionPenEraIncrementAction:(UIButton *)sender {
    sender.hidden = YES;
    self.acuteArmLabel.hidden = YES;
    self.invokeTryView.hidden = NO;
    self.bodyRebusView.hidden = NO;
    self.waxWaxSpeedButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(WinSubAbove.swipeFlagDay.intrinsicSexFormWriteMaxWidth, WinSubAbove.swipeFlagDay.balticDialogLogBadmintonUnitFix-WinSubAbove.swipeFlagDay.zipCacheEnds));
    }];
    [self.cellYouSliceTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.invokeTryView.mas_bottom).offset(WinSubAbove.swipeFlagDay.herAssistive);
    }];
    [self.view layoutIfNeeded];
    
    BOOL leaky = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:WinSubAbove.swipeFlagDay.instancesOperationDisposeDanceKitAirSoloist];
    if (!leaky) {
        self.sunTreeIllButton.hidden = NO;
        [ItsAlertView phasePromisedToolAndRefreshedRepeats:nil message:WinSubAbove.resourcesCanon.uniformActivityModifierRestoringRow completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= WinSubAbove.swipeFlagDay.chunkyLogWax;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:nepaliExpandingEntitledMercuryRectangleBlob:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image nepaliExpandingEntitledMercuryRectangleBlob:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[AutoIntroManager shared] moduleGeorgianThousandFlatnessTransposeIgnoresViewController:self.navigationController];
        [AgeToast kindAsk:WinSubAbove.resourcesCanon.ticketsTagalogLatencyBouncingDiscount];
    }else {
        self.sunTreeIllButton.hidden = NO;
        [ItsAlertView phasePromisedToolAndRefreshedRepeats:nil message:WinSubAbove.resourcesCanon.uniformActivityModifierRestoringRow completion:nil];
    }
}

@end
