/* Minification failed. Returning unminified contents.
(1,10): run-time error CSS1031: Expected selector, found 'getAddressPoint('
(1,10): run-time error CSS1025: Expected comma or open brace, found 'getAddressPoint('
(14,10): run-time error CSS1031: Expected selector, found 'getAddressPoint_Success('
(14,10): run-time error CSS1025: Expected comma or open brace, found 'getAddressPoint_Success('
(25,10): run-time error CSS1031: Expected selector, found 'getAddressPoint_Failure('
(25,10): run-time error CSS1025: Expected comma or open brace, found 'getAddressPoint_Failure('
(28,1): run-time error CSS1019: Unexpected token, found '/'
(28,2): run-time error CSS1019: Unexpected token, found '/'
(29,10): run-time error CSS1031: Expected selector, found 'getParcelDetailsByParcelID('
(29,10): run-time error CSS1025: Expected comma or open brace, found 'getParcelDetailsByParcelID('
(42,10): run-time error CSS1031: Expected selector, found 'getParcelDetailsPoint_Success('
(42,10): run-time error CSS1025: Expected comma or open brace, found 'getParcelDetailsPoint_Success('
(46,10): run-time error CSS1031: Expected selector, found 'getParcelDetailsPoint_Failure('
(46,10): run-time error CSS1025: Expected comma or open brace, found 'getParcelDetailsPoint_Failure('
(50,1): run-time error CSS1019: Unexpected token, found '/'
(50,2): run-time error CSS1019: Unexpected token, found '/'
(51,10): run-time error CSS1031: Expected selector, found 'getBuildingDetailsByBuildingID('
(51,10): run-time error CSS1025: Expected comma or open brace, found 'getBuildingDetailsByBuildingID('
(65,10): run-time error CSS1031: Expected selector, found 'getBuildingDetailsPoint_Success('
(65,10): run-time error CSS1025: Expected comma or open brace, found 'getBuildingDetailsPoint_Success('
(69,10): run-time error CSS1031: Expected selector, found 'getBuildingDetailsPoint_Failure('
(69,10): run-time error CSS1025: Expected comma or open brace, found 'getBuildingDetailsPoint_Failure('
(73,10): run-time error CSS1031: Expected selector, found 'getPictometryURL('
(73,10): run-time error CSS1025: Expected comma or open brace, found 'getPictometryURL('
(85,10): run-time error CSS1031: Expected selector, found 'getPictometryURL_Success('
(85,10): run-time error CSS1025: Expected comma or open brace, found 'getPictometryURL_Success('
(91,10): run-time error CSS1031: Expected selector, found 'getPictometryURL_Failure('
(91,10): run-time error CSS1025: Expected comma or open brace, found 'getPictometryURL_Failure('
(94,10): run-time error CSS1031: Expected selector, found 'getUiUrl('
(94,10): run-time error CSS1025: Expected comma or open brace, found 'getUiUrl('
(107,10): run-time error CSS1031: Expected selector, found 'getUiUrl_Success('
(107,10): run-time error CSS1025: Expected comma or open brace, found 'getUiUrl_Success('
(113,10): run-time error CSS1031: Expected selector, found 'getUiUrl_Failure('
(113,10): run-time error CSS1025: Expected comma or open brace, found 'getUiUrl_Failure('
(117,10): run-time error CSS1031: Expected selector, found 'getUrlByName('
(117,10): run-time error CSS1025: Expected comma or open brace, found 'getUrlByName('
 */
function getAddressPoint(address) {
    jQuery.support.cors = true;
    $.ajax({
        url: '/StructuralInventory/api/address',
        type: 'POST',
        data: { Environment: environment, StreetNumber: address.StreetNumber, Direction: address.Direction, StreetName: address.StreetName, Suffix: address.Suffix, City: address.City, State: address.State, Zip: address.Zip, PIN: address.PIN, HSE_NBR: address.HSE_NBR, HSE_FRAC_NBR: address.HSE_FRAC_NBR, HSE_DIR_CD: address.HSE_DIR_CD, STR_NM: address.STR_NM, STR_SFX_CD: address.STR_SFX_CD, UNIT_RANGE: address.UNIT_RANGE, PIND: address.PIND },
        dataType: 'json',
        success: getAddressPoint_Success,
        error: getAddressPoint_Failure
    });

}

function getAddressPoint_Success(data) {    
    if (MarkMapParameters.IsRunning) {
        MarkMapParameters.PINDFound = true;
        MarkMapParameters.GetAddressPointResult = data;
        if (MarkMapParameters.IdentifyCompleted && MarkMapParameters.PINDFound) {
            markMap();

        }
    }
}

function getAddressPoint_Failure(x, y, z) {
    
}
// API Call for getting the Parcel Details from BLDINV database
function getParcelDetailsByParcelID(PIN) {    
    jQuery.support.cors = true;
    $.ajax({
        url: '/StructuralInventory/api/parcel/' + PIN,
        type: 'GET',
        dataType: 'json',
        success: getParcelDetailsPoint_Success,
        error: getParcelDetailsPoint_Failure,
        async: false
    });

}

function getParcelDetailsPoint_Success(data) {
    parcelDetails = data;
}

function getParcelDetailsPoint_Failure(x, y, z) {

}

// API Call for getting the Building Details from BLDINV database
function getBuildingDetailsByBuildingID(BLDGID) {
    
    jQuery.support.cors = true;
    $.ajax({
        url: '/StructuralInventory/api/building/' + BLDGID,
        type: 'GET',
        dataType: 'json',
        success: getBuildingDetailsPoint_Success,
        error: getBuildingDetailsPoint_Failure,
        async: false
    });

}

function getBuildingDetailsPoint_Success(data) {
    buildingDetails = data;   
}

function getBuildingDetailsPoint_Failure(x, y, z) {

}

function getPictometryURL() {    
    jQuery.support.cors = true;
    $.ajax({
        url: '/StructuralInventory/api/pictometry',
        type: 'GET',
        dataType: 'json',
        success: getPictometryURL_Success,
        error: getPictometryURL_Failure
    });

}

function getPictometryURL_Success(data) {   
    PictometryURL = data;
    loadPictometryHost();

}

function getPictometryURL_Failure(x, y, z) {
    alert('Review Pictometry');
}
function getUiUrl() {    
    jQuery.support.cors = true;
    $.ajax({
        url: '/StructuralInventory/api/UiUrl',
        type: 'Get',
        data:{},
        dataType: 'json',
        success: getUiUrl_Success,
        error: getUiUrl_Failure
    });

}

function getUiUrl_Success(data) {    
    UiUrls = data;

    InitializeApplication();
}

function getUiUrl_Failure(x, y, z) {
     alert('Review UiUrl');
}

function getUrlByName(name) {    
    for (i = 0; UiUrls.length > i; i++) {
        if (name == UiUrls[i].Name) {
            return UiUrls[i].Url;
        }
    }
}

