






#import "VolatileHerViewController.h"
#import "SDWebImageManager.h"
#import "SawToast.h"
#import "NSString+OddOldest.h"

@interface VolatileHerViewController ()

@property (nonatomic, strong) UIImageView *tagTipSlantImageView;
@property (nonatomic, strong) UITextField *turnPhaseTextField;
@property (nonatomic, strong) UITextField *donePinSendTextField;

@end

@implementation VolatileHerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.boxDaysEyeButton.hidden = [self.favoriteUse[0] boolValue];
    
    CGFloat notRemembersResignCubeKerning = LawExported.playVersions.rawPhonogram;
    
    UILabel *wasLabel = [LawExported containGesturesFinishingYahooUrgency:LawExported.valueOutArtMen.backwardsExactDateConnectSolutions];
    wasLabel.numberOfLines = 0;
    [self.view addSubview:wasLabel];
    [wasLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(LawExported.playVersions.rowsDueSwipe);
        make.left.mas_equalTo(LawExported.playVersions.cursiveError);
        make.right.mas_equalTo(-LawExported.playVersions.cursiveError);
    }];
    
    
    self.turnPhaseTextField = [LawExported echoKeyTiedField:LawExported.valueOutArtMen.northKannadaClosureModuleArmenianTransmit isSecure:NO];
    [self.view addSubview:self.turnPhaseTextField];
    [self.turnPhaseTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(wasLabel.mas_bottom).offset(notRemembersResignCubeKerning);
        make.left.mas_equalTo(LawExported.playVersions.digitHalfFix);
        make.right.mas_equalTo(-LawExported.playVersions.digitHalfFix);
        make.height.mas_equalTo(LawExported.playVersions.barSaveBlock);
    }];
    
    
    self.donePinSendTextField = [LawExported echoKeyTiedField:LawExported.valueOutArtMen.lossWhoRejectionQuarterBuildCert isSecure:NO];;
    [self.view addSubview:self.donePinSendTextField];
    [self.donePinSendTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.turnPhaseTextField.mas_bottom).offset(notRemembersResignCubeKerning);
        make.left.right.equalTo(self.turnPhaseTextField);
        make.height.mas_equalTo(LawExported.playVersions.barSaveBlock);
    }];
    
    
    UIImageView *rectumImageView = nil;
    if ([self.favoriteUse[1] length] > 0) {
        
        rectumImageView = [[UIImageView alloc] init];
        rectumImageView.backgroundColor = UIColor.lightGrayColor;
        rectumImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:rectumImageView];
        [rectumImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.donePinSendTextField.mas_bottom).offset(notRemembersResignCubeKerning);
            make.width.mas_equalTo(self.donePinSendTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.tagTipSlantImageView = rectumImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.favoriteUse[1]] options:0 progress:nil completed:^(UIImage * _Nullable image2, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
            dispatch_async(dispatch_get_main_queue(), ^{
                rectumImageView.image = image2;
                CGFloat molar = image2.size.height / image2.size.width;
                [rectumImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((LawExported.playVersions.samplingDitheredSuggestedAttempterGrandauntWidth -LawExported.playVersions.digitHalfFix*2)*molar);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.tagTipSlantImageView ? self.tagTipSlantImageView.frame.size.height + LawExported.playVersions.rawPhonogram +LawExported.playVersions.somaliDeltaThreadedEraserMagicClimbed : LawExported.playVersions.somaliDeltaThreadedEraserMagicClimbed;
                    
                    make.size.mas_equalTo(CGSizeMake(LawExported.playVersions.samplingDitheredSuggestedAttempterGrandauntWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.tagTipSlantImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.tagTipSlantImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *submittedButton = [LawExported rotorStackIncreaseHigherEncodingColor:LawExported.valueOutArtMen.zeroWeekdayBeginNetLead];
    [submittedButton addTarget:self action:@selector(pinchPaymentsBringOccurredVibrancyPhonogram:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:submittedButton];
    [submittedButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-LawExported.playVersions.didManBrowse);
        make.left.right.equalTo(self.turnPhaseTextField);
        make.height.mas_equalTo(LawExported.playVersions.addMoodGrade);
    }];
    
}

- (void)pinchPaymentsBringOccurredVibrancyPhonogram:(id)sender {
if (self.turnPhaseTextField.text.bedMileAlbum || self.donePinSendTextField.text.bedMileAlbum) {
        [HexAlertView playThemeHindiHandledFormOptional:LawExported.valueOutArtMen.drumGreen message:LawExported.valueOutArtMen.agreementTenSuffixMagentaVortexCancel completion:nil];
        return;
    }
    if ([self.bigAwakePatch respondsToSelector:@selector(ourWrongMinRadiansSubfamilyBendWithName:repeat:completion:)]) {
        [BagRematchView grayWorldBendWindow];
        [self.bigAwakePatch ourWrongMinRadiansSubfamilyBendWithName:self.turnPhaseTextField.text repeat:self.donePinSendTextField.text completion:^(id object) {
            [BagRematchView disablingDiscardExcludedFlatnessDateWindow];
            if ([object boolValue]) {
                [[BeaconAskManager shared] manyYearsKeyWindow];
                [SawToast panelMicro:LawExported.valueOutArtMen.uniformSugarSinkProtectedClusterAudit];
            }
        }];
    }
}

@end
