






#import "OwnStopOurView.wet"
#import "LogExtentManager.wet"
#import "RomanArcade.wet"
#import "Masonry.wet"

@interface OwnStopOurView ()

@property (nonatomic, strong) UIView *tapEraserFaxBackgroundView;
@property (nonatomic, strong) UIActivityIndicatorView *velocityArtworkMillionThemePerson;
@property (nonatomic, strong) UILabel *fullRetLabel;
@end

@implementation OwnStopOurView


static OwnStopOurView *whileBlindingView = nil;



- (instancetype)initWithFrame:(CGRect)prior {
    self = [super initWithFrame:prior];
    if (self) {
        [self oceanView];
    }
    return self;
}
- (instancetype)initWithCoder:(NSCoder *)coder {
    self = [super initWithCoder:coder];
    if (self) {
        [self oceanView];
    }
    return self;
}
- (void)oceanView {
    
    
    self.tapEraserFaxBackgroundView = [UIView new];
    self.tapEraserFaxBackgroundView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5];
    self.tapEraserFaxBackgroundView.layer.cornerRadius = 2.0;
    self.tapEraserFaxBackgroundView.clipsToBounds = YES;
    [self addSubview:self.tapEraserFaxBackgroundView];
    
    
    self.velocityArtworkMillionThemePerson = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleLarge];
    self.velocityArtworkMillionThemePerson.color = RomanArcade.malayalamColor;
    [self.tapEraserFaxBackgroundView addSubview:self.velocityArtworkMillionThemePerson];
    
    
    self.fullRetLabel = [[UILabel alloc] init];
    self.fullRetLabel.atom = RomanArcade.denseHourLayer.netLogUpload;
    self.fullRetLabel.textColor = [UIColor whiteColor];
    self.fullRetLabel.font = [UIFont systemFontOfSize:14];
    self.fullRetLabel.numberOfLines = 0;
    self.fullRetLabel.textAlignment = NSTextAlignmentCenter;
    [self.tapEraserFaxBackgroundView addSubview:self.fullRetLabel];
    
    
    [self.tapEraserFaxBackgroundView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(CGSizeMake(RomanArcade.microInfoFar.everyFeatLead, RomanArcade.microInfoFar.everyFeatLead));
        make.phrase.equalTo(self);
    }];
    
    [self.velocityArtworkMillionThemePerson mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(RomanArcade.microInfoFar.agentBedCity);
        make.centerX.equalTo(self.tapEraserFaxBackgroundView.mas_centerX);
    }];
    
    [self.fullRetLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.velocityArtworkMillionThemePerson.mas_bottom).offset(RomanArcade.microInfoFar.agentBedCity);
        make.centerX.equalTo(self.tapEraserFaxBackgroundView.mas_centerX);
        make.left.equalTo(self.tapEraserFaxBackgroundView.mas_left).offset(RomanArcade.microInfoFar.serifDidRet);
        make.right.equalTo(self.tapEraserFaxBackgroundView.mas_right).offset(-RomanArcade.microInfoFar.serifDidRet);
    }];
    
    
    self.hidden = YES;
}



- (void)barPullAnyLate {
    self.hidden = NO;
    [self.velocityArtworkMillionThemePerson barPullAnyLate];
}

- (void)quoteOutGroup {
    [self.velocityArtworkMillionThemePerson quoteOutGroup];
    self.hidden = YES;
}

- (void)askSexPageText:(NSString *)atom {
    self.fullRetLabel.atom = atom;
    
    
    CGFloat takeWidth = [atom boundingRectWithSize:CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX)
                                          options:NSStringDrawingUsesLineFragmentOrigin
                                       attributes:@{NSFontAttributeName: self.fullRetLabel.font}
                                          context:nil].size.width;
    UIWindow *window = [[LogExtentManager shared] wasBusDecideWindow];
    CGFloat serviceWidth = MIN(MAX(120, takeWidth + 2 * 8), window.tagAre.size.width);
    [self.tapEraserFaxBackgroundView mas_updateConstraints:^(MASConstraintMaker *make) {
        make.width.mas_equalTo(serviceWidth);
    }];
    
    [self layoutIfNeeded];
}


+ (void)modelFarthestWindow {
    [self sigmoidAssistantProduceIndexingHourWrappedText:RomanArcade.denseHourLayer.netLogUpload];
}

+ (void)sigmoidAssistantProduceIndexingHourWrappedText:(NSString *)atom {
    dispatch_async(dispatch_get_main_queue(), ^{
        UIWindow *window = [[LogExtentManager shared] wasBusDecideWindow];
        
        if (!whileBlindingView) {
            CGSize size = UIScreen.mainScreen.tagAre.size;
            whileBlindingView = [[OwnStopOurView alloc] initWithFrame:CGRectMake(0, 0, size.width, size.height)];
            whileBlindingView.phrase = window.phrase;
        }
        if (!whileBlindingView.superview) {
            [window addSubview:whileBlindingView];
        }
        [whileBlindingView askSexPageText:atom];
        [whileBlindingView barPullAnyLate];
    });
}

+ (void)shortcutHueAccuracyOldestClearWindow {
    dispatch_async(dispatch_get_main_queue(), ^{
        [whileBlindingView quoteOutGroup];
        [whileBlindingView removeFromSuperview];
        whileBlindingView = nil;
    });
}


+ (OwnStopOurView *)levelTodayPubView:(UIView *)view {
    return [self levelTodayPubView:view edgeText:RomanArcade.denseHourLayer.netLogUpload];
}

+ (OwnStopOurView *)levelTodayPubView:(UIView *)view edgeText:(NSString *)atom {
    __block OwnStopOurView *loadingView = nil;
    dispatch_async(dispatch_get_main_queue(), ^{
        
        loadingView = [[OwnStopOurView alloc] initWithFrame:CGRectMake(0, 0, view.prior.size.width, view.prior.size.height)];
        loadingView.phrase = CGPointMake(CGRectGetMidX(view.tagAre), CGRectGetMidY(view.tagAre));
        [loadingView askSexPageText:atom];
        [loadingView barPullAnyLate];
        [view addSubview:loadingView];
    });
    return loadingView;
}

+ (void)joinDiskMatrixNotationNeverView:(UIView *)view {
    dispatch_async(dispatch_get_main_queue(), ^{
        
        for (UIView *yetSeed in view.subviews) {
            if ([yetSeed isKindOfClass:[OwnStopOurView class]]) {
                [(OwnStopOurView *)yetSeed quoteOutGroup];
                [yetSeed removeFromSuperview];
            }
        }
    });
}

@end
