






#import "WasCapBlueAnyViewController.h"
#import "BusToast.h"
#import "OpaqueInfo.h"

@interface WasCapBlueAnyViewController ()

@property (nonatomic, strong) UIImageView *sumChunkyView;
@property (nonatomic, strong) UIButton *arePopDirtyButton;
@property (nonatomic, strong) UIView *sunEraserView;
@property (nonatomic, strong) UILabel *kitExactLabel;
@property (nonatomic, strong) UITextField *eightTurnMayTextField;
@property (nonatomic, strong) UITextField *pubPlanBoxHasTextField;
@end

@implementation WasCapBlueAnyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.bagDesktopButton.hidden = YES;
    
    if ([OpaqueInfo hexSuspendedFreeSuspendedPolicyImage]) {
        self.sumChunkyView = [[UIImageView alloc] initWithImage:[OpaqueInfo hexSuspendedFreeSuspendedPolicyImage]];
        [self.view addSubview:self.sumChunkyView];
        self.sumChunkyView.hidden = YES;
        [self.sumChunkyView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.height.mas_equalTo(PinMovement.cupFormatSun.bigSongPhoto);
            make.left.equalTo(self.greatRainButton.mas_right);
            make.top.equalTo(self.view).offset(PinMovement.cupFormatSun.leaseZoneOld);
        }];
    }
    
    self.sunEraserView = [PinMovement sunEraserView];
    self.sunEraserView.hidden = YES;
    [self.view addSubview:self.sunEraserView];
    [self.sunEraserView mas_makeConstraints:^(MASConstraintMaker *make) {
        if ([OpaqueInfo hexSuspendedFreeSuspendedPolicyImage]) {
            make.centerY.equalTo(self.sumChunkyView);
            make.left.equalTo(self.sumChunkyView.mas_right).offset(PinMovement.cupFormatSun.foundTipCar);
        }else {
            make.top.equalTo(self.view).offset(PinMovement.cupFormatSun.leaseZoneOld);
            make.left.equalTo(self.greatRainButton.mas_right).offset(PinMovement.cupFormatSun.foundTipCar);
        }
        make.right.equalTo(self.bagDesktopButton.mas_left);
        make.height.mas_equalTo(PinMovement.cupFormatSun.bigSongPhoto);
    }];
    
    self.kitExactLabel = [PinMovement searchBadPinMagnesiumClamped:PinMovement.otherPhasePlug.spacingPostEstimatedBayerBar];
    self.kitExactLabel.numberOfLines = 0;
    [self.view addSubview:self.kitExactLabel];
    [self.kitExactLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(PinMovement.cupFormatSun.hasSpaceRope);
        make.left.mas_equalTo(PinMovement.cupFormatSun.squashCanIts);
        make.right.mas_equalTo(-PinMovement.cupFormatSun.squashCanIts);
    }];
    
    
    self.eightTurnMayTextField = [PinMovement vitalOneFourteenRenewSnowAccount];
    self.eightTurnMayTextField.enabled = NO;
    self.eightTurnMayTextField.text = self.modalKeyDid[PinMovement.cupFormatSun.hueResponseName];
    [self showLoudIterateInsulinWaterArtistView:self.eightTurnMayTextField text:PinMovement.otherPhasePlug.hasSampleSignerNowUser];
    [self.view addSubview:self.eightTurnMayTextField];
    [self.eightTurnMayTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.kitExactLabel.mas_bottom).offset(PinMovement.cupFormatSun.bigDefineAre);
        make.left.mas_equalTo(PinMovement.cupFormatSun.mandatoryTen);
        make.right.mas_equalTo(-PinMovement.cupFormatSun.mandatoryTen);
        make.height.mas_equalTo(PinMovement.cupFormatSun.ratioBengali);
    }];
    
    
    self.pubPlanBoxHasTextField = [PinMovement vitalOneFourteenRenewSnowAccount];
    self.pubPlanBoxHasTextField.enabled = NO;
    self.pubPlanBoxHasTextField.text = self.modalKeyDid[PinMovement.cupFormatSun.timeLinkDogKey];
    [self showLoudIterateInsulinWaterArtistView:self.pubPlanBoxHasTextField text:PinMovement.otherPhasePlug.originalCellRunUnderlineRight];
    [self.view addSubview:self.pubPlanBoxHasTextField];
    [self.pubPlanBoxHasTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.eightTurnMayTextField.mas_bottom).offset(PinMovement.cupFormatSun.bigDefineAre);
        make.left.right.equalTo(self.eightTurnMayTextField);
        make.height.mas_equalTo(PinMovement.cupFormatSun.ratioBengali);
    }];
    
    
    UIButton *componentButton = [PinMovement narrativeForbidAlignedAcuteGrayColor:PinMovement.otherPhasePlug.sobMailBufferedSpaFifteen];
    [componentButton addTarget:self action:@selector(legalBloodNordicFarthestMirroredAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:componentButton];
    [componentButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.pubPlanBoxHasTextField.mas_bottom).offset(PinMovement.cupFormatSun.bigDefineAre);
        make.left.right.equalTo(self.pubPlanBoxHasTextField);
        make.height.mas_equalTo(PinMovement.cupFormatSun.bigSongPhoto);
    }];
    
    
    self.arePopDirtyButton = [PinMovement seekDiskDiastolicHoursStereo:PinMovement.otherPhasePlug.passwordsUnwrapPrintableIntersectUnorderedUnlocked];
    [self.arePopDirtyButton setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
    [self.arePopDirtyButton addTarget:self action:@selector(pingDefineLappishShipmentOutAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:self.arePopDirtyButton];
    [self.arePopDirtyButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(componentButton.mas_bottom).offset(PinMovement.cupFormatSun.bundleIrish);
        make.centerX.equalTo(self.view);
    }];
}

- (void)showLoudIterateInsulinWaterArtistView:(UITextField *)textField text:(NSString *)text
{
    CGRect frame = {{0,0},CGSizeMake(PinMovement.cupFormatSun.bigSongPhoto, PinMovement.cupFormatSun.ratioBengali)};
    UILabel *logLoops = [[UILabel alloc] initWithFrame:frame];
    logLoops.text = text;
    logLoops.textColor = UIColor.redColor;
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = logLoops;
}

- (void)pingDefineLappishShipmentOutAction:(UIButton *)sender {
    [[UnpluggedManager shared] sizeMapErrorMusicOldDecipherViewController:self.navigationController];
}

- (void)legalBloodNordicFarthestMirroredAction:(UIButton *)sender {
    sender.hidden = YES;
    self.kitExactLabel.hidden = YES;
    self.sunEraserView.hidden = NO;
    self.sumChunkyView.hidden = NO;
    self.arePopDirtyButton.hidden = YES;
    
    [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view.superview);
        make.size.mas_equalTo(CGSizeMake(PinMovement.cupFormatSun.penPreviewLessQuitArgumentsWidth, PinMovement.cupFormatSun.swashesIterateSignalDietaryDogDownload-PinMovement.cupFormatSun.menUniversal));
    }];
    [self.eightTurnMayTextField mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.sunEraserView.mas_bottom).offset(PinMovement.cupFormatSun.bigDefineAre);
    }];
    [self.view layoutIfNeeded];
    
    BOOL awake = [[[[NSBundle mainBundle] infoDictionary] allKeys] containsObject:PinMovement.cupFormatSun.resultingPositionAssumeDeliveredHaveExporterStrongest];
    if (!awake) {
        self.bagDesktopButton.hidden = NO;
        [CarAlertView referencePopPassivelyScannerOfferComposite:nil message:PinMovement.otherPhasePlug.compressHexExposeSyntheticAcross completion:nil];
        return;
    }
    CGSize size = self.view.frame.size;
    size.height -= PinMovement.cupFormatSun.sawScanShare;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:promptGigahertzNineProminentOpacityDisallow:contextInfo:), (__bridge void *)self);
}

- (void)image:(UIImage *)image promptGigahertzNineProminentOpacityDisallow:(NSError *)error contextInfo:(void *)contextInfo
{
    
    if(!error){
        [[UnpluggedManager shared] sizeMapErrorMusicOldDecipherViewController:self.navigationController];
        [BusToast bestRed:PinMovement.otherPhasePlug.handleDateHandlerKernelElectric];
    }else {
        self.bagDesktopButton.hidden = NO;
        [CarAlertView referencePopPassivelyScannerOfferComposite:nil message:PinMovement.otherPhasePlug.compressHexExposeSyntheticAcross completion:nil];
    }
}

@end
