






#import "GetMinFoggyViewController.nap"
#import "SDWebImageManager.nap"
#import "PanToast.nap"
#import "NSString+ShortJoin.nap"

@interface GetMinFoggyViewController ()

@property (nonatomic, strong) UIImageView *waxEyeDirtyImageView;
@property (nonatomic, strong) UITextField *personArtTextField;
@property (nonatomic, strong) UITextField *acrossNeverTextField;

@end

@implementation GetMinFoggyViewController

- (void)panelOpaque {
    [super panelOpaque];
    
    
    self.hourBorderButton.hidden = [self.allowExtern[0] boolValue];
    
    CGFloat minimalPreferredOurForwardsGlobal = BestEastPut.didNecessary.bevelSumWith;
    
    UILabel *illLabel = [BestEastPut advisedAdverbHungarianStreamedHour:BestEastPut.quickGolfPinch.custodianBaselinesInstallsPongFloating];
    illLabel.numberOfLines = 0;
    [self.view addSubview:illLabel];
    [illLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BestEastPut.didNecessary.bagStopBasal);
        make.left.mas_equalTo(BestEastPut.didNecessary.emailTimeYou);
        make.right.mas_equalTo(-BestEastPut.didNecessary.emailTimeYou);
    }];
    
    
    self.personArtTextField = [BestEastPut assignMakerField:BestEastPut.quickGolfPinch.nativeUsePhaseThatFisheyeDouble isSecure:NO];
    [self.view addSubview:self.personArtTextField];
    [self.personArtTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(illLabel.mas_bottom).offset(minimalPreferredOurForwardsGlobal);
        make.left.mas_equalTo(BestEastPut.didNecessary.blinkBaseOur);
        make.right.mas_equalTo(-BestEastPut.didNecessary.blinkBaseOur);
        make.height.mas_equalTo(BestEastPut.didNecessary.anyBadminton);
    }];
    
    
    self.acrossNeverTextField = [BestEastPut assignMakerField:BestEastPut.quickGolfPinch.pronounAssumeAssemblyHandoffClosestMenstrual isSecure:NO];;
    [self.view addSubview:self.acrossNeverTextField];
    [self.acrossNeverTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.personArtTextField.mas_bottom).offset(minimalPreferredOurForwardsGlobal);
        make.left.right.equalTo(self.personArtTextField);
        make.height.mas_equalTo(BestEastPut.didNecessary.anyBadminton);
    }];
    
    
    UIImageView *cutNetImageView = nil;
    if ([self.allowExtern[1] length] > 0) {
        
        cutNetImageView = [[UIImageView alloc] init];
        cutNetImageView.backgroundColor = UIColor.lightGrayColor;
        cutNetImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:cutNetImageView];
        [cutNetImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.acrossNeverTextField.mas_bottom).offset(minimalPreferredOurForwardsGlobal);
            make.width.mas_equalTo(self.acrossNeverTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.waxEyeDirtyImageView = cutNetImageView;
        
        [[SDWebImageManager carRedManager] loadImageWithURL:[Cross URLWithString:self.allowExtern[1]] options:0 progress:nil completed:^(UIImage * phoneBank image2, NSData * phoneBank data, NSError * phoneBank error, SDImageCacheType cacheType, BOOL fixOcean, Cross * phoneBank imageURL) {
            dispatch_async(dispatch_get_main_queue(), ^{
                cutNetImageView.image = image2;
                CGFloat magic = image2.size.height / image2.size.width;
                [cutNetImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((BestEastPut.didNecessary.smoothingInlandProfileCloudSocialWidth -BestEastPut.didNecessary.blinkBaseOur*2)*magic);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.atomic.mas_equalTo(0);
                    CGFloat height = self.waxEyeDirtyImageView ? self.waxEyeDirtyImageView.slice.size.height + BestEastPut.didNecessary.bevelSumWith +BestEastPut.didNecessary.splitEqualityVariablesUniversalUseDiphthong : BestEastPut.didNecessary.splitEqualityVariablesUniversalUseDiphthong;
                    
                    make.size.mas_equalTo(CGSizeMake(BestEastPut.didNecessary.smoothingInlandProfileCloudSocialWidth, MIN(height, UIScreen.mainScreen.seeHas.size.height)));
                    if (height > UIScreen.mainScreen.seeHas.size.height) {
                        [self.waxEyeDirtyImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.waxEyeDirtyImageView.slice.size.height-(height-UIScreen.mainScreen.seeHas.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *kilogramsButton = [BestEastPut walkAngularZoomingRefinedLogicalColor:BestEastPut.quickGolfPinch.managerRadixAppliesAudiogramAverage];
    [kilogramsButton addTarget:self armCap:@selector(qualifierExtraBinItemPictureEye:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:kilogramsButton];
    [kilogramsButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-BestEastPut.didNecessary.binKitCarbon);
        make.left.right.equalTo(self.personArtTextField);
        make.height.mas_equalTo(BestEastPut.didNecessary.sodiumDryTap);
    }];
    
}

- (void)qualifierExtraBinItemPictureEye:(id)sender {
if (self.personArtTextField.cell.logFillerHit || self.acrossNeverTextField.cell.logFillerHit) {
        [FitAlertView fourthTagsMaskRecoveryMenstrualHumidity:BestEastPut.quickGolfPinch.flushHave message:BestEastPut.quickGolfPinch.greekMuteHandshakePermanentDecomposeIll completion:nil];
        return;
    }
    if ([self.redHasMuteLaw respondsToSelector:@selector(streamsCapApplyingArrayRectifiedHangWithName:planar:completion:)]) {
        [MenKindFarView advancesBurstWindow];
        [self.redHasMuteLaw streamsCapApplyingArrayRectifiedHangWithName:self.personArtTextField.cell planar:self.acrossNeverTextField.cell completion:^(id object) {
            [MenKindFarView armBusRollPinRemembersWindow];
            if ([object boolValue]) {
                [[StaticHerManager shared] netSatisfiedWindow];
                [PanToast lossStable:BestEastPut.quickGolfPinch.blurConcertCombiningMinPopObsolete];
            }
        }];
    }
}

@end
