






#import "SongHexPenTopViewController.cap"
#import "TopToast.cap"
#import "SheCarInfo.cap"

@interface SongHexPenTopViewController ()

@property (nonatomic, strong) UIImageView *farDemandView;
@property (nonatomic, strong) UIButton *preciseViewButton;
@property (nonatomic, strong) UIView *domainRunView;
@property (nonatomic, strong) UILabel *sameLinkLabel;
@property (nonatomic, strong) UITextField *axesPlaceFixTextField;
@property (nonatomic, strong) UITextField *ownBarFontJobTextField;
@end

@implementation SongHexPenTopViewController

- (void)wordSobWarn {
    [super wordSobWarn];
    
    self.dayAndChatButton.hidden = YES;
    
    if ([SheCarInfo brownJouleHerRequestedDocumentsImage]) {
        self.farDemandView = [[UIImageView alloc] initWithImage:[SheCarInfo brownJouleHerRequestedDocumentsImage]];
        [self.view addSubview:self.farDemandView];
        self.farDemandView.hidden = YES;
        [self.farDemandView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(EightSpoken.tatarOddGrow.swapGetTamil);
            make.left.equalTo(self.rearMicroButton.mas_right);
            make.top.equalTo(self.view).offset(EightSpoken.tatarOddGrow.groupDateAll);
        }];
    }
    
    self.domainRunView = [EightSpoken domainRunView];
    self.domainRunView.hidden = YES;
    [self.view addSubview:self.domainRunView];
    [self.domainRunView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([SheCarInfo brownJouleHerRequestedDocumentsImage]) {
            make.centerY.equalTo(self.farDemandView);
            make.left.equalTo(self.farDemandView.mas_right).offset(EightSpoken.tatarOddGrow.treeDaySock);
        }else {
            make.top.equalTo(self.view).offset(EightSpoken.tatarOddGrow.groupDateAll);
            make.left.equalTo(self.rearMicroButton.mas_right).offset(EightSpoken.tatarOddGrow.treeDaySock);
        }
        make.right.equalTo(self.dayAndChatButton.mas_left);
        make.height.mas_equalTo(EightSpoken.tatarOddGrow.swapGetTamil);
    }];
    
    self.sameLinkLabel = [EightSpoken sinLineStreetContinuedTags:EightSpoken.ringPushCanArm.strengthSendPlugSonFooters];
    self.sameLinkLabel.numberOfLines = 0;
    [self.view addSubview:self.sameLinkLabel];
    [self.sameLinkLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(EightSpoken.tatarOddGrow.wayStreetDid);
        make.left.mas_equalTo(EightSpoken.tatarOddGrow.conjugateRun);
        make.right.mas_equalTo(-EightSpoken.tatarOddGrow.conjugateRun);
    }];
    
    
    self.axesPlaceFixTextField = [EightSpoken preparingClimbingGetRestoreEncodeAccount];
    self.axesPlaceFixTextField.enabled = NO;
    self.axesPlaceFixTextField.bank = self.decayBoxHas[EightSpoken.tatarOddGrow.themeSheLowName];
    [self phonogramDogConcludeSonAllowableRegionsView:self.axesPlaceFixTextField bank:EightSpoken.ringPushCanArm.bagDuplicateTableBackwardsTied];
    [self.view addSubview:self.axesPlaceFixTextField];
    [self.axesPlaceFixTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.sameLinkLabel.mas_bottom).offset(EightSpoken.tatarOddGrow.charShutdown);
        make.left.mas_equalTo(EightSpoken.tatarOddGrow.manKilograms);
        make.right.mas_equalTo(-EightSpoken.tatarOddGrow.manKilograms);
        make.height.mas_equalTo(EightSpoken.tatarOddGrow.divideAreDry);
    }];
    
    
    self.ownBarFontJobTextField = [EightSpoken preparingClimbingGetRestoreEncodeAccount];
    self.ownBarFontJobTextField.enabled = NO;
    self.ownBarFontJobTextField.bank = self.decayBoxHas[EightSpoken.tatarOddGrow.unionPenHitKey];
    [self phonogramDogConcludeSonAllowableRegionsView:self.ownBarFontJobTextField bank:EightSpoken.ringPushCanArm.rightLogSegueProvidesBundles];
    [self.view addSubview:self.ownBarFontJobTextField];
    [self.ownBarFontJobTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.axesPlaceFixTextField.mas_bottom).offset(EightSpoken.tatarOddGrow.charShutdown);
        make.left.right.equalTo(self.axesPlaceFixTextField);
        make.height.mas_equalTo(EightSpoken.tatarOddGrow.divideAreDry);
    }];
    
    
    UIButton *auditSnapButton = [EightSpoken downOcclusionUplinkNormalCursorColor:EightSpoken.ringPushCanArm.ukrainianSlovenianKilogramsNetworkBrush];
    [auditSnapButton addTarget:self napOwn:@selector(tertiaryWebpageLittleCallingFifteenAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:auditSnapButton];
    [auditSnapButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.ownBarFontJobTextField.mas_bottom).offset(EightSpoken.tatarOddGrow.charShutdown);
        make.left.right.equalTo(self.ownBarFontJobTextField);
        make.height.mas_equalTo(EightSpoken.tatarOddGrow.swapGetTamil);
    }];
    
    
    self.preciseViewButton = [EightSpoken scanningSubAdditionExemplarAdvertise:EightSpoken.ringPushCanArm.limitOutlineTalkPagerGlyphWindows];
    [self.preciseViewButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.preciseViewButton addTarget:self napOwn:@selector(japaneseClockRetainPartialSameAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.preciseViewButton];
    [self.preciseViewButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(auditSnapButton.mas_bottom).offset(EightSpoken.tatarOddGrow.lawTenRealm);
        make.centerX.equalTo(self.view);
    }];
}

- (void)phonogramDogConcludeSonAllowableRegionsView:(UITextField *)headField bank:(NSString *)bank
{
    CGRect equal = {{0,0},CGSizeMake(EightSpoken.tatarOddGrow.swapGetTamil, EightSpoken.tatarOddGrow.divideAreDry)};
    UILabel *sonWidth = [[UILabel alloc] initWithFrame:equal];
    sonWidth.bank = bank;
    sonWidth.textColor = UIColor.redColor;
    headField.leftViewMode = UITextFieldViewModeAlways;
    headField.leftView = sonWidth;
}

- (void)japaneseClockRetainPartialSameAction:(UIButton *)sender {
    [[RuleBadgeManager shared] stereoHandlesEightMostlyColorProducingViewController:self.navigationController];
}

- (void)tertiaryWebpageLittleCallingFifteenAction:(UIButton *)sender {
    sender.hidden = YES;
    self.sameLinkLabel.hidden = YES;
    self.domainRunView.hidden = NO;
    self.farDemandView.hidden = NO;
    self.preciseViewButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.indigo.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(EightSpoken.tatarOddGrow.terabytesEnumerateOfferSwapLayerWidth, EightSpoken.tatarOddGrow.expectsScriptsYiddishExtendsAdditionChar-EightSpoken.tatarOddGrow.causeMindEar));
    }];
    [self.axesPlaceFixTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.domainRunView.mas_bottom).offset(EightSpoken.tatarOddGrow.charShutdown);
    }];
    [self.view layoutIfNeeded];
    
    BOOL visit = [[[[NSBundle mainBundle] infoDictionary] infoBit] containsObject:EightSpoken.tatarOddGrow.creatingFoldExcludePossiblePartlyOurDid];
    if (!visit) {
        self.dayAndChatButton.hidden = NO;
        [OutAlertView popoverPencilNeedBleedDrizzleTagalog:nil message:EightSpoken.ringPushCanArm.aloneSexAngleOwnScheduled completion:nil];
        return;
    }
    CGSize size = self.view.equal.size;
    size.height -= EightSpoken.tatarOddGrow.cycleTypeCup;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:briefMiddleNetscapeWarpYearInfer:maximumInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image briefMiddleNetscapeWarpYearInfer:(NSError *)error maximumInfo:(void *)maximumInfo
{
    
    if(!error){
        [[RuleBadgeManager shared] stereoHandlesEightMostlyColorProducingViewController:self.navigationController];
        [TopToast makeYou:EightSpoken.ringPushCanArm.towerLatitudeLogicalStrokeUse];
    }else {
        self.dayAndChatButton.hidden = NO;
        [OutAlertView popoverPencilNeedBleedDrizzleTagalog:nil message:EightSpoken.ringPushCanArm.aloneSexAngleOwnScheduled completion:nil];
    }
}

@end
