/**
 * Made by mkcomponent.sh
 * * Change to Fileheader info *
*/

import { Component, OnInit, OnChanges, Inject, Injectable, ApplicationRef, PLATFORM_ID } from '@angular/core'
import { Location, isPlatformBrowser } from '@angular/common'

import { SearchOrderService } from '../services/svc.search-orders'



@Component({
    moduleId: module.id+ '',
    selector: 'partial-search-order',
    templateUrl: './template/t--partial.search-order.pug',
    styleUrls: ['sty.partial.search-order.scss']
})

export class SearchView {

    // ---- Variables ---- \\
    loggedState: any
    canLoad: string = 'hidden'
    user: any

    constructor(
        @Inject(PLATFORM_ID) private platformId: Object,
        private _searchOrders: SearchOrderService
    ) {
        this._searchOrders.user.then((response) => {
            this.user = response
        })
    }


    // ---- Lifecycle hooks ---- \\
    ngOnInit() {
        if(isPlatformBrowser(this.platformId)) {


            this.canLoad = 'visible'
        }

    }

    // ---- Functions ---- \\
}