






#import "PenHeartSobViewController.cap"
#import "SDWebImageManager.cap"
#import "TopToast.cap"
#import "NSString+PosterEra.cap"

@interface PenHeartSobViewController ()

@property (nonatomic, strong) UIImageView *replyMidHisImageView;
@property (nonatomic, strong) UITextField *receivingTextField;
@property (nonatomic, strong) UITextField *colorLogPanTextField;

@end

@implementation PenHeartSobViewController

- (void)wordSobWarn {
    [super wordSobWarn];
    
    
    self.dayAndChatButton.hidden = [self.decayBoxHas[0] boolValue];
    
    CGFloat zipUnsignedRunLeaveGranted = EightSpoken.tatarOddGrow.charShutdown;
    
    UILabel *bagLabel = [EightSpoken sinLineStreetContinuedTags:EightSpoken.ringPushCanArm.addressSpectralBaseDownloadsLogo];
    bagLabel.numberOfLines = 0;
    [self.view addSubview:bagLabel];
    [bagLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(EightSpoken.tatarOddGrow.policyBypass);
        make.left.mas_equalTo(EightSpoken.tatarOddGrow.conjugateRun);
        make.right.mas_equalTo(-EightSpoken.tatarOddGrow.conjugateRun);
    }];
    
    
    self.receivingTextField = [EightSpoken workFontYetField:EightSpoken.ringPushCanArm.bagBackTransmitSoloJobSee isSecure:NO];
    [self.view addSubview:self.receivingTextField];
    [self.receivingTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(bagLabel.mas_bottom).offset(zipUnsignedRunLeaveGranted);
        make.left.mas_equalTo(EightSpoken.tatarOddGrow.manKilograms);
        make.right.mas_equalTo(-EightSpoken.tatarOddGrow.manKilograms);
        make.height.mas_equalTo(EightSpoken.tatarOddGrow.divideAreDry);
    }];
    
    
    self.colorLogPanTextField = [EightSpoken workFontYetField:EightSpoken.ringPushCanArm.realCatalanGatheringGolfOneFrequency isSecure:NO];;
    [self.view addSubview:self.colorLogPanTextField];
    [self.colorLogPanTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.receivingTextField.mas_bottom).offset(zipUnsignedRunLeaveGranted);
        make.left.right.equalTo(self.receivingTextField);
        make.height.mas_equalTo(EightSpoken.tatarOddGrow.divideAreDry);
    }];
    
    
    UIImageView *repairImageView = nil;
    if ([self.decayBoxHas[1] length] > 0) {
        
        repairImageView = [[UIImageView alloc] init];
        repairImageView.backgroundColor = UIColor.lightGrayColor;
        repairImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:repairImageView];
        [repairImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.colorLogPanTextField.mas_bottom).offset(zipUnsignedRunLeaveGranted);
            make.width.mas_equalTo(self.colorLogPanTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.replyMidHisImageView = repairImageView;
        
        [[SDWebImageManager pickerManager] loadImageWithURL:[Alpha URLWithString:self.decayBoxHas[1]] options:0 progress:nil completed:^(UIImage * decideCut image2, NSData * decideCut data, NSError * decideCut error, SDImageCacheType cacheType, BOOL solidNet, Alpha * decideCut imageURL) {
            dispatch_async(dispatch_get_main_queue(), ^{
                repairImageView.image = image2;
                CGFloat stand = image2.size.height / image2.size.width;
                [repairImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((EightSpoken.tatarOddGrow.terabytesEnumerateOfferSwapLayerWidth -EightSpoken.tatarOddGrow.manKilograms*2)*stand);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.indigo.mas_equalTo(0);
                    CGFloat height = self.replyMidHisImageView ? self.replyMidHisImageView.equal.size.height + EightSpoken.tatarOddGrow.charShutdown +EightSpoken.tatarOddGrow.expectsScriptsYiddishExtendsAdditionChar : EightSpoken.tatarOddGrow.expectsScriptsYiddishExtendsAdditionChar;
                    
                    make.size.mas_equalTo(CGSizeMake(EightSpoken.tatarOddGrow.terabytesEnumerateOfferSwapLayerWidth, MIN(height, UIScreen.mainScreen.wasTip.size.height)));
                    if (height > UIScreen.mainScreen.wasTip.size.height) {
                        [self.replyMidHisImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.replyMidHisImageView.equal.size.height-(height-UIScreen.mainScreen.wasTip.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *deviceOwnButton = [EightSpoken downOcclusionUplinkNormalCursorColor:EightSpoken.ringPushCanArm.numeratorMoodPlateAreConstant];
    [deviceOwnButton addTarget:self napOwn:@selector(finalLigatureShutdownMessagingScrollingFootnote:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:deviceOwnButton];
    [deviceOwnButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-EightSpoken.tatarOddGrow.memoryLinear);
        make.left.right.equalTo(self.receivingTextField);
        make.height.mas_equalTo(EightSpoken.tatarOddGrow.swapGetTamil);
    }];
    
}

- (void)finalLigatureShutdownMessagingScrollingFootnote:(id)sender {
if (self.receivingTextField.bank.andPaceStore || self.colorLogPanTextField.bank.andPaceStore) {
        [OutAlertView popoverPencilNeedBleedDrizzleTagalog:EightSpoken.ringPushCanArm.visitUndo message:EightSpoken.ringPushCanArm.unorderedOperationGaussianMarkEmptyFollower completion:nil];
        return;
    }
    if ([self.oldCutTagalog respondsToSelector:@selector(ascendingCupSalientFilteredSidebarSpanWithName:tapPan:completion:)]) {
        [BarBatteryView areClockCleanWindow];
        [self.oldCutTagalog ascendingCupSalientFilteredSidebarSpanWithName:self.receivingTextField.bank tapPan:self.colorLogPanTextField.bank completion:^(id object) {
            [BarBatteryView memoryBinStrongInsetDownloadsWindow];
            if ([object boolValue]) {
                [[RuleBadgeManager shared] acceptingArmWindow];
                [TopToast tenForSolo:EightSpoken.ringPushCanArm.overageTorqueDrivenReleaseNeverSelf];
            }
        }];
    }
}

@end
