<style>
.candee_locations_block {
	position: relative;
    margin: 15px 0 25px 0;
    padding: 28px 5% 0px;
    padding-bottom: 0px;
    padding-bottom: 24px;
	border: 2px solid transparent;
	visibility: visible; 
    opacity: 1;
}

.property_icons a.icon {
    color: #555;
    font-size: 1.2rem;
    margin: 0 5px 5px 0;
    display: inline-block;
    padding: 10px 12px;
    background: #ddd;
    transition: all 0.3s ease-out;
    text-decoration: none;
    border: 2px solid #ddd;
    line-height: 1.5rem;
    width: 48px;
    text-align: center;
    vertical-align: top;
}

.property_icons a.icon .featureIconImage {
    margin: 1px 0;
}

#resultCount {
    display:none;
}

.resultCount-0 {
    display:block !important;
}

.property_icons .selected {
	color: #fff;
    background: #666;
    border: 2px solid #fff !important;
}
.property_icons > .icon:hover {
    border: 2px solid #ddd;
    border-bottom: 2px solid #555;
}

.candee_locations_block_address {
    font-size: .8rem;
    line-height: 1.4rem;
}

.candee_location_buttons{
    padding: 10px 0px;
}

.round_button_1 {
    height:auto;
    width: auto;
    margin: 0px 5px;
}

.masterIcon .icon {
    font-size: 1.2rem;
    margin-right: 5px;
    color: #555;
}

.masterIcon .text {
    position: relative;
    top: -5px;
}

.master_icon_filters_header {
    color: white;
    background-color:#0f497d;
    text-align:center;
    text-transform: uppercase;
    margin-bottom:20px;
}

.master_icon_filters li {
    margin-bottom: 0px !important;
}

li:before{
    content: none !important;
}

.page-template-templates .pageContent {
    padding-top: 0px;
}

.candee .goToMapmarker {
    /* load after map click button */
    display:none;
}
.yellowBTN {	
    display: block !important;
    float: left;
    margin-right: 20px;
    text-decoration: none !important;
    min-width: 115px;
    text-align: center;
}

.filterSettingsButton {
    margin: 0 !important;
}

.candee_locations_block_title a {
    color: inherit;
}

@media (max-width: 600px){
    .candee_locations_block .ten,
    .candee_locations_block .nine {
        margin-left: 0;
    }
}

@media (max-width: 550px) {	
	#radiusUnitsButton{
        margin: 10px 0px;
    }
}</style>{"id":7,"date":"2022-05-04T15:54:14","date_gmt":"2022-05-04T15:54:14","guid":{"rendered":"https:\/\/www.summitself-storage.com\/candee-locations\/"},"modified":"2022-05-04T20:10:55","modified_gmt":"2022-05-04T20:10:55","slug":"locations","status":"publish","type":"page","link":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/","title":{"rendered":"Locations"},"content":{"rendered":"<div class=\"candee \">\n    <style>\n.candeeFacilityMap{\n    width:100%;\n    text-align:center;\n    overflow:hidden;\n    position:relative;\n    height: 400px;\n}\n\n.facilityMap{\n    position: absolute;\n    top: 0px;\n    width: 100%;\n    display:none;\n}\n\n@media (max-width: 550px) {\t\n    .candeeFacilityMap{\n    height: 300px;\n    }\n}\n<\/style>\n\n<div id=\"facilityMap\" class=\"candeeFacilityMap\"><\/div>\n\n<script>\n    docReady(function() {\n                    MAP.element_id = 'facilityMap';\n            MAP.loadallGlobal = 'false';\n                \n        MAP.preselect = 'false';\n        MAP.loadMap(false, false);\n    });\n<\/script>\n\n            <style>\n            .locations_theme_2 #pinnacleMainContent{\n                padding-top: 0px;\n            }\n\n            .locations_theme_2 .mainSearchbarWrapper{\n                position: relative !important;\n            }\n        <\/style>\n\n        \n<script>\n    window.addEventListener('DOMContentLoaded', function(event) {\n        \/\/ console.log('DOM fully loaded and parsed');\n        SHARED.setSearchbarButton(window.location.href);\n    });\n    docReady(function() {\n        cQuery('#mainSearchbarWrapper, .innerSearchWrap').submit(function() {\n            console.log(cQuery('#mainSearchbarWrapper input'));\n            alert(\"sadsd\")\n            return false;\n            cQuery('#mainSearchbarWrapper input').addClass('candee_text_loading')\n            return true;\n        });\n    })\n\n<\/script>    <\/div>\n\n<div class=\"candee candee-row candee_locations candee-container locations_theme_2\">\n<style>\n\t\n\ta.btn-b.candee.yellowBTN, span.btn-b.disabled.current.candee.yellowBTN {\n\t\tbackground: unset;\n    \tcolor: grey!important;\n\t\tpadding: unset;\n\t\tfont-weight: bold;\n\t\ttext-transform: uppercase;\n\t}\n\tspan.btn-b.disabled.current.candee.yellowBTN{\n\t\tcolor: black!important;\n\t}\n\n\ta.btn-b.candee.yellowBTN::after {\n\t\tcontent: '\/';\n\t\tpadding-left: .5rem;\n\t\tpadding-right: .5rem;\n\t}\n\n\t\/* .candee-container-breadcrumb{\n\t\tmargin-bottom: 1rem;;\n\t} *\/\n<\/style>\n\n    <aside class=\"three candee-columns filtersWrapper filterWrapInner\" role=\"group\" aria-label=\"Filters: Selecting a filter checkbox will update the results.\">\n        <div class=\"filterHeader\">Narrow your results:<\/div>\n                    <ul class=\"checkboxes featuresFilter master_icon_filters\" style=\"padding: 0px;\">\n                <li  id=\"select_all\" tabindex=\"0\" class= \"ripple\">\n                    <label class=\"label-checkbox capitalize\">\n                        <input id=\"select_all_checkbox\" onclick=\"LOCATIONS.toggleCheck()\" class=\"masterFeatureFilterCheckbox googleTagManager\" \n                            type=\"checkbox\" value=\"select all\">\n                            <i aria-hidden=\"true\" class=\"icon icon-form-checkbox\">\n\n                            <\/i>\n                        <div class=\"item-title masterIcon\">\n                            <span class=\"text\">Select All<\/span>\n                        <\/div>\n                    <\/label>\n                <\/li>   \n                <li>\n                    <input id=\"search_feature\" onkeyup=\"LOCATIONS.search()\" class=\"masterFeatureFilterCheckbox searchFeature googleTagManager\" \n                            type=\"text\" placeholder=\"Search location, type and press enter\">\n                <\/li>\n            <\/ul>\n        \t\t<div class=\"sliderFilter filterCard\">\n\t\t<div class=\"smallInfo darkText\"><strong>Include Features:<\/strong><\/div>\n\n\t\t\t<ul class=\"checkboxes featuresFilter master_icon_filters\">\n                                        <li  id=\"liCheckbox_0\" tabindex=\"0\" class= \"ripple liCheckbox_ripple\">\n                            <label class=\"label-checkbox capitalize\">\n                                                            <input id=\"checkbox_0\" data-index=\"0\" class=\"masterFeatureFilterCheckbox input googleTagManager\" data-google='{\"facname\":\"Drive Up\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Drive Up\",\"label\":\"feature-locations\"}' type=\"checkbox\" value=\"drive up\"><i aria-hidden=\"true\" class=\"icon icon-form-checkbox\"><\/i>\n                               \n                                <div class=\"item-title masterIcon\">\n                                    <span class=\"text\">Drive Up<\/span>\n                                <\/div>\n                            <\/label>\n                        <\/li>    \n                                                <li  id=\"liCheckbox_1\" tabindex=\"0\" class= \"ripple liCheckbox_ripple\">\n                            <label class=\"label-checkbox capitalize\">\n                                                            <input id=\"checkbox_1\" data-index=\"1\" class=\"masterFeatureFilterCheckbox input googleTagManager\" data-google='{\"facname\":\"Exterior Door\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Exterior Door\",\"label\":\"feature-locations\"}' type=\"checkbox\" value=\"exterior door\"><i aria-hidden=\"true\" class=\"icon icon-form-checkbox\"><\/i>\n                               \n                                <div class=\"item-title masterIcon\">\n                                    <span class=\"text\">Exterior Door<\/span>\n                                <\/div>\n                            <\/label>\n                        <\/li>    \n                                                <li  id=\"liCheckbox_2\" tabindex=\"0\" class= \"ripple liCheckbox_ripple\">\n                            <label class=\"label-checkbox capitalize\">\n                                                            <input id=\"checkbox_2\" data-index=\"2\" class=\"masterFeatureFilterCheckbox input googleTagManager\" data-google='{\"facname\":\"Ground Level\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Ground Level\",\"label\":\"feature-locations\"}' type=\"checkbox\" value=\"ground level\"><i aria-hidden=\"true\" class=\"icon icon-form-checkbox\"><\/i>\n                               \n                                <div class=\"item-title masterIcon\">\n                                    <span class=\"text\">Ground Level<\/span>\n                                <\/div>\n                            <\/label>\n                        <\/li>    \n                                                <li  id=\"liCheckbox_3\" tabindex=\"0\" class= \"ripple liCheckbox_ripple\">\n                            <label class=\"label-checkbox capitalize\">\n                                                            <input id=\"checkbox_3\" data-index=\"3\" class=\"masterFeatureFilterCheckbox input googleTagManager\" data-google='{\"facname\":\"Inside\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Inside\",\"label\":\"feature-locations\"}' type=\"checkbox\" value=\"inside\"><i aria-hidden=\"true\" class=\"icon icon-form-checkbox\"><\/i>\n                               \n                                <div class=\"item-title masterIcon\">\n                                    <span class=\"text\">Inside<\/span>\n                                <\/div>\n                            <\/label>\n                        <\/li>    \n                                                <li  id=\"liCheckbox_4\" tabindex=\"0\" class= \"ripple liCheckbox_ripple\">\n                            <label class=\"label-checkbox capitalize\">\n                                                            <input id=\"checkbox_4\" data-index=\"4\" class=\"masterFeatureFilterCheckbox input googleTagManager\" data-google='{\"facname\":\"Interior Door\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Interior Door\",\"label\":\"feature-locations\"}' type=\"checkbox\" value=\"interior door\"><i aria-hidden=\"true\" class=\"icon icon-form-checkbox\"><\/i>\n                               \n                                <div class=\"item-title masterIcon\">\n                                    <span class=\"text\">Interior Door<\/span>\n                                <\/div>\n                            <\/label>\n                        <\/li>    \n                        \t\t\t<\/ul>\n\t\t<\/div>\n    <\/aside>\n\n   \n    <div class=\"ff_menuScrim scrim\"><\/div>\n    <div id=\"unitsSection\" class=\"nine candee-columns candeeResultsContainer\" role=\"group\" aria-label=\"Search results list\">\n                \n\n\n\t\t<div class=\"candee-row filter options\">\n\t\t\t<div class=\"border_1 shadow ripple filterSettingsButton ffIsClosed\" tab-index=\"0\" aria-expanded=\"false\" role=\"button\" aria-label=\"Toggle Filters Menu\"> \n\t\t\t\t<span class=\"flitersText\">Filters <\/span><span class=\"filtersApplied\"><\/span><span  class=\"mmFilters\"><i id=\"filtersButtonIcon\" aria-hidden class=\"mmFilters fa fa-sliders\"><\/i><\/span>\n\t\t\t<\/div>\n\n            <div class=\"select sortOrderOptions\">\n                <select id=\"sortingOptions\" class=\"hidden\" aria-label=\"Sort by\">\n                    <option value=\"0\" selected>Sort by Distance<\/option>\n                    <option value=\"1\">Sort by Rating<\/option>\n                <\/select> \n                <div id=\"search_text\">\n                    <input id=\"search_name\" class=\"hidden\"  \n                        class=\"masterFeatureFilterInput googleTagManager\" \n                        type=\"text\" placeholder=\"Search by Name\">\n                        <button id=\"button-search\" onclick=\"LOCATIONS.searchName()\" class=\"hidden yellowBTN textAlignCenter candeeButtonAni1\" \n                        ><i class=\"fa fa-search\"><\/i><\/button>\n                    \n                <\/div>\n            <\/div>\n\t\t<\/div>\n\n\t\t<div>\n            <div id=\"facilities\"  class=\"candee_locations_main_wrapper\"><\/div>\n            <div class=\"noResults candee_translate\">Sorry Search Combination<\/div>\n            <div id=\"showing_result\" style=\"display:none\">\n                <h6 >\n                    Showing Results                    <span id=\"count_showing_result\">0<\/span>\n                    of                    <span class=\"totalRentals\">0<\/span>\n                <\/h6>\n                <progress id=\"progressbar\" max=\"0\" value=\"0\"><\/progress>\n                <button id=\"show-more-facility\" class=\"yellowBTN textAlignCenter candeeButtonAni1 hidden\" onclick=\"LOCATIONS.showMoreFacility()\">Show More<\/button>\n            <\/div>\n            <div class=\"candeeLocationLoadingWrapper candeeLoadingWrapper\">\n                \n                    <div class=\"candee_locations_block-skeleton main-facility-block candee_locations_block notWithinRadius main-facility-block highlightAdd facilityMasterData lineItem clickandstor\" >\n                        <div class=\"candee-row\">\n                            <div class=\"three candee-columns property_image_wrap_2\">\n                                <div class=\"skeleton-logo skeleton\"><\/div>\n                            <\/div>\n                            <div class=\"nine candee-columns property_info_filter_wrap candee-columns-skeleton\">\n                                <div class=\"candee-columns-text-skeleton\">\n                                    <div class=\"skeleton-title skeleton\"><\/div>\n                                    <div class=\"skeleton-text skeleton\"><\/div>\n                                    <div class=\"skeleton-text skeleton\"><\/div>\n                                    <div class=\"skeleton-text skeleton\"><\/div>\n                                <\/div>\n                                <div class=\"candee_location_buttons\">\n                                    <div class=\"goToMapmarker yellowBTN background_1 action rippleFlashL2R googleTagManager \n                                                skeleton-button skeleton\"><\/div>\n                                    <div class=\"goToMapmarker yellowBTN background_1 action rippleFlashL2R googleTagManager \n                                                skeleton-button skeleton\"><\/div>\n                                    <\/div>\n                                    <div class=\"div-skeleton-icon\">\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                \n                                    <\/div>\n                                <\/div>\n                        <\/div>\n                    <\/div>\n                \n                    <div class=\"candee_locations_block-skeleton main-facility-block candee_locations_block notWithinRadius main-facility-block highlightAdd facilityMasterData lineItem clickandstor\" >\n                        <div class=\"candee-row\">\n                            <div class=\"three candee-columns property_image_wrap_2\">\n                                <div class=\"skeleton-logo skeleton\"><\/div>\n                            <\/div>\n                            <div class=\"nine candee-columns property_info_filter_wrap candee-columns-skeleton\">\n                                <div class=\"candee-columns-text-skeleton\">\n                                    <div class=\"skeleton-title skeleton\"><\/div>\n                                    <div class=\"skeleton-text skeleton\"><\/div>\n                                    <div class=\"skeleton-text skeleton\"><\/div>\n                                    <div class=\"skeleton-text skeleton\"><\/div>\n                                <\/div>\n                                <div class=\"candee_location_buttons\">\n                                    <div class=\"goToMapmarker yellowBTN background_1 action rippleFlashL2R googleTagManager \n                                                skeleton-button skeleton\"><\/div>\n                                    <div class=\"goToMapmarker yellowBTN background_1 action rippleFlashL2R googleTagManager \n                                                skeleton-button skeleton\"><\/div>\n                                    <\/div>\n                                    <div class=\"div-skeleton-icon\">\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                    <div class=\"skeleton-icon skeleton\"><\/div>\n                                                                                \n                                    <\/div>\n                                <\/div>\n                        <\/div>\n                    <\/div>\n                                \n                \n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n<script class=\"candeeStyling__locationsTheme2_setup\">\n    var themeCSS = \"    .candee_locations_block {        border-radius: 5px;        border: 2px solid rgba(0,0,0,.05) !important;        box-shadow: 0 14px 12px -8px rgb(0, 0, 0, .04);        padding: 20px;    }    .candee_locations_block .property_image_wrap_2 img, .candee_locations_block .property_image_wrap_2 .skeleton {        margin-bottom: .2rem;        max-height: 110px;    }    .candee_locations_rating .smallInfo {        margin-left: .3rem;        opacity: .7;    }    .candee_locations_block_title {        margin-bottom: 0;    }    .candee_locations_block_address {        padding-top: 0;    }    .locationPhoneBold {        line-height: 2rem;    }    .candee_locations_rating .star-ratings-css {        left: 0;        top: 0;        font-size: 1.4rem;    }    .candee_locations_rating .star-ratings-css-top {        color: #febf12;    }    .candee_location_buttons a {        float: none;        display: inline-block !important;        width: auto !important;    }    .candee_locations_block .pitch_mini_grid {        margin-bottom: 0 !important;        margin-top: .5rem !important;        padding: 0 .5rem .5rem;    }    .candee_locations_block .property_icons_wrap {        margin-top: .2rem;    }    .candee_locations_block .property_icons {        flex-wrap: wrap;    }    .candee_locations_block .property_icons a {        background: #fff;        border: 2px solid rgba(0,0,0,0);        padding: 0;        width: calc(10% - 5px);        opacity: .6;        font-size: 1rem;    }    .candee_locations_block .property_icons a:hover,    .candee_locations_block .property_icons a.selected {        opacity: 1;        background: rgba(0,0,0,.1) !important;        color: black;    }    .locations_theme_2 .candee_locations_main_wrapper .showSpinner {        display: none !important;    }    @media (min-width: 601px) and (max-width: 800px){        .candee_locations_block .property_icons a {            width: calc(20% - 5px);        }    }    @media (max-width: 600px){        .candee_locations_block .property_image_wrap_2 img, .candee_locations_block .property_image_wrap_2 .skeleton {            display: none;        }        .candee_locations_block .pitch_mini_grid {            padding: .5rem 0;        }        .candee_locations_block .candee-columns:not(.pitchBlock) {            width: 100%;            margin-left: 0;        }        .candee_locations_block .candee-columns.pitchBlock {            margin-bottom: .8rem;        }        .candee_locations_block .property_icons a {            width: calc(20% - 5px);        }    }    @media (max-width: 550px){        .property_icons_wrap {            margin : .5rem 0;        }        .property_icons.candee-flex {            flex-direction: row;        }    }    .liCheckboxInhability {        opacity: .5    }    .nine.candee-columns.property_info_filter_wrap.candee-columns-skeleton {        display: flex;        flex-direction: column;    }            .candee-columns-text-skeleton  {        display: flex;        flex-direction: column;        justify-content: center;    }            .candee_location_buttons {        display: flex;        flex-direction: row;        justify-content: center;    }    .skeleton{        animation: skeleton 1s linear infinite alternate    }    @keyframes skeleton{        0% {            background-color: #e0e0e0;        }        100% {            background-color: #f0f0f0;        }    }    .skeleton-logo {        min-height: 6rem;    }    .skeleton-title, .skeleton-text {        min-height: 1rem;        margin-bottom: .5rem;    }    .skeleton-title {        min-height: 2rem;    }    .skeleton-button {        min-height: 2.8rem;    }    .div-skeleton-icon{        display: grid;        grid-template-columns: 2.8rem repeat(auto-fill, 2.8rem) 2.8rem ;        grid-gap: .4rem    }    .skeleton-icon{        width: 3rem;        min-height: 2.5rem;        \/\/ margin-bottom: .5rem    }    .candee_locations_block-skeleton {        width: 100%    }        .skeleton-text.skeleton {        max-width: 80%;    }    #showing_result{        display: flex;        flex-direction: column;        align-items: center;    }    #showing_result h6 {        margin-bottom: 0px;    }    #showing_result progress {        margin-bottom: 1rem;        width: 50%;    }    #search_feature {        margin: 0;         margin-top: 1rem;    }    #search_text{        display: flex;         flex-direction: row;        margin-top: 1rem;    }     #button-search{        min-width: 1rem;    }    @media (max-width: 1024px){        #sortingOptions {           margin-bottom: 0rem;        }    }\";\n    candeeStylingAppendHead('candeeStyling__locationsTheme2', themeCSS, 'candeeStyling__locationsTheme2_setup');\n<\/script>\n<script>\n    let lastUnit = '';\n    let countUnits = 3;\n    let dataFacillity = {};     \n    let filterFeature = JSON.parse('[{\"text\":\"Drive Up\",\"icon\":\"icon-elevator\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Exterior Door\",\"icon\":\"icon-home\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Ground Level\",\"icon\":\"icon-down-arrow\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Inside\",\"icon\":\"icon-loading-unloading-area\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Interior Door\",\"icon\":\"icon-double-door-opened\",\"is_check\":0,\"is_clickeable\":true}]');     \n    let dataFacilityFilter  = [];\n    let dataLocationMapa  = [];\n    let showedFacilities = 0;\n    let countFacilityShowPerSecction = 5;\n    let countDataFacillity = 0;\n    let isSingle = 0;\n    let sortingFacilities = 0;\n    let processingInformationn = false;\n    let sortingName = '';\n    let updateResult = true;\n    let registerSponser = true;                                        \n    let addressGeoLat='';\n    let addressGeoLng='';\n    let searchAddress='';\n    let observer = new IntersectionObserver((entries, observer) => {\n\t\tentries.forEach(unit => {\n\t\t\tif(unit.isIntersecting){\n                updateResult = false;\n\t\t\t\tLOCATIONS.showMoreFacility();\n\t\t\t}\n\t\t});\n\t}, {\n\t\trootMargin: '0px 0px 200px 0px',\n\t\tthreshold: 1.0\n\t});\n\n    MAP.locations = {};\n\n    var LOCATIONS = {\n        initialize: function(laty = '', longy = ''){\n            if(laty != '' && longy != ''){\n                cQuery('.noGeoData').hide();\n\n                addressGeoLat=laty;\n                addressGeoLng=longy;\n\n                let loadAddress = true;\n                const urlParams = new URLSearchParams(window.location.search);\n                const updatedLocInput =(!SHARED.isset(urlParams.get('address')) ||(SHARED.isset(urlParams.get('address')) && urlParams.get('address').length == 0));\n\n                if(SHARED.isset(LOCALSTORAGE.getItem('candee_storage_address')) ){\n                    let candee_storage_address = JSON.parse(LOCALSTORAGE.getItem('candee_storage_address'))\n                    if((candee_storage_address.lat == laty && candee_storage_address.long == longy)){\n                        loadAddress = false\n                        if(updatedLocInput){\n                            cQuery(\".searchFormattedAddress\").html( candee_storage_address.formatted_address)\n                            cQuery(\".locInput\").val( candee_storage_address.formatted_address)\n                        }\n                    }\n\n                    searchAddress = candee_storage_address.formatted_address;\n                }\n                if(loadAddress){\n                    cQuery.ajax({\n                        type: 'POST',\n                        url: ajaxurl,\n                        data: {\n                            action: 'candee_get_addredd_by_coordinates', \/\/ PHP function from candee.php\n                            ajax_data: { lat: laty, long: longy },\n                        },\n                        success: function(response){\n                            if(response){\n                                let data  = JSON.parse(response);\n                                if(updatedLocInput){\n                                    cQuery(\".searchFormattedAddress\").html( data.results.formatted_address)\n                                    cQuery(\".locInput\").val( data.results.formatted_address)\n                                }\n                                candee_storage_address = JSON.stringify({ lat: laty, long: longy, formatted_address:data.results.formatted_address})\n                                searchAddress = data.results.formatted_address;\n                                LOCALSTORAGE.setItem('candee_storage_address', candee_storage_address);\n                            }\n                        },\n                    });\n                }\n            }\n\n\n            MAP.clearMarkers();\n            cQuery(\"#search_name\").on('keyup', function (e) {\n            var keycode = e.keyCode || e.which;\n                if (keycode == 13) {\n                    LOCATIONS.searchName();\n                }\n            });\n\n\n            LOCATIONS.repinMap();\n            \/\/listen for google_maps_loaded\n            cQuery( 'body' ).on( 'google_maps_loaded', function( event, param1, param2 ) {\n                \/\/sort by distance\n                LOCATIONS.sortByDistance(\"data-distance\", \".candee_locations_main_wrapper\", \".candee_locations_block\", \"asc\");\n                \/\/set map click handler\n                cQuery(document).off('click', '.goToMapmarker').on('click', '.goToMapmarker', function(){\n                    LOCATIONS.scrollToMap(cQuery(this));\n                });\n\n                                    if (cQuery('.candee .candee_locations_block:not(.notWithinRadius)').length > 0){\n                        cQuery('#showHeaderMap').click();\n                    }\n                \n                cQuery(document).trigger('candee_locations_distance_organized');\n                \n                LOCATIONS.loadMiniPitches();\n            }); \/\/ End google map on load\n            \n        }, \/\/ End initialize\n\n        scrollToMap: function(el){\n            if (cQuery('#showHeaderMap').attr('aria-checked') != 'true'){\n                cQuery('#showHeaderMap').click();\n            }\n\n            \/\/scroll to top of page\n            cQuery('html, body').animate({ scrollTop: 0 }, \"slow\");\n\n            var thisMarker  = cQuery(el).attr('data-marker');\n            var thisLat     = cQuery(el).attr('data-lat');\n            var thisLng     = cQuery(el).attr('data-lng');\n\n            \/\/reset all icons\n            MAP.allMarkers.forEach(function(element) {\n                element.setIcon(MAP.defaultMarker); \n            });\n\n            google.maps.event.trigger(MAP.allMarkers[thisMarker], 'click');\n            MAP.gmap.setCenter({lat: +thisLat, lng: +thisLng});\n        },\n\n\t\tactivateObserver : ()=>{\n\t\t\tconst unitOnScreem = document.querySelectorAll('#facilities .candee_locations_block.clickandstor:not(.notWithinRadius)');\n\t\t\tlet numberUnitsListed = unitOnScreem.length;\n\n\t\t\tif(lastUnit){\n\t\t\t\tobserver.unobserve(lastUnit);\n\t\t\t}\n\t\t\tif(numberUnitsListed > 0 && numberUnitsListed < countUnits ) {\n\t\t\t\tlastUnit = unitOnScreem[numberUnitsListed - 1];\n\t\t\t\tobserver.observe(lastUnit);\n\t\t\t}\n\t\t},\n        \n        getFacilities: async( data = [])=> {\n            data.searchAddress= searchAddress;\n            \/\/ data.keySession='';\n            data.addressGeoLat = addressGeoLat;\n            data.addressGeoLng= addressGeoLng;\n            data.searchRadius='20000';\n            data.showFilterForFacility='0';\n            data.lang='en';\n            data.registerSponser = registerSponser;\n            data.sortingFacilities = sortingFacilities;\n            data.keywords_filter='false';\n            data.keywords='';\n            data.current_url = SHARED.getCurrentUrl(); \/\/ Current page url\n\n            let result;\n            try {\n                result = await cQuery.ajax({\n                    url: ajaxurl,\n                    type: 'POST',\n                    data: {\n                        action: 'candee_load_locations_facilities', \/\/ PHP function from candee.php\n                        ajax_data: data,\n                    },\n                    dataType:'JSON'\n                });\n                processingInformationn = false;\n                if(result.state) {\n                    registerSponser = false;\n                    return result;\n                }\n\n                return [];\n\n            } catch (error) {\n                processingInformationn = false;\n                console.error(error);\n            }\n\n            LOCATIONS.loadMiniPitches();\n        },\n        repinMap: function(data=dataFacillity){\n            LOCATIONS.removeAllFacilities();\n            LOCATIONS.showMoreFacility()\n        },\n\n        drawFacility: async (data)=>{\n            \/\/ let locations            = [];\n            let locationReviewsCount = data.length;\n            \/\/ cQuery(\"#facilities\").html('');\n\n            await data.map(value => {\n                let classSponsoredFacility = '';\n                let sponsored = SHARED.isset(value.sponsored_location) ? value.sponsored_location : 0;\n                if (sponsored === 1){\n                    classSponsoredFacility = 'sponsored_facility';\n                }\n                let facility =`\n                    <div id=\"div-facility_${value.prop_id}\" class=\"candee_locations_block main-facility-block candee_locations_block main-facility-block highlightAdd facilityMasterData lineItem clickandstor\n                    ${classSponsoredFacility}\" \n                        data-propid=\"${value.prop_id}\"\n                        data-lat=\"${value.lat}\" \n                        data-lng=\"${value.lng}\" \n                        data-distance=\"${value.distanceSort}\"\n                >\n                    <div class=\"candee-row\">`;\n                    if(value.data_show_fac_image!== 'hide'){\n\n                        facility+=`\n                            <div class=\"three candee-columns property_image_wrap_2\">\n                                <img decoding=\"async\" itemprop=\"image\" onerror=\"SHARED.imgError(this);\" src=\"${value.url_fac_image}\" alt=\"${SHARED.candee_translate('Image of')} ${value.facility_name}\" loading=\"lazy\" \/>`;\n\n                        if(value.reviews_total && value.reviews_average ) {\n\n                            facility+=`<div class=\"candee_locations_rating\" \n                                aria-label=\"${value.reviews_average} ${SHARED.candee_translate('star rating', candee_js_variables.lang)}\">\n                                    ${value.reviews_star_rating}\n                                <span class=\"smallInfo\" aria-label=\"${value.reviews_total} ${SHARED.candee_translate('reviews', candee_js_variables.lang)}\">(${value.reviews_total})<\/span>\n                                <\/div>`;\n                        }\n                        facility+=`<\/div>`;\n                    }\n                   \n                    facility+=`\n                        <div class=\"${value.data_fac_data_col} candee-columns property_info_filter_wrap\">\n                            <div class=\"candee_locations_block_title bold\" ${((value.reviews_total != null && value.reviews_average != null) ? 'style=\"margin-bottom: 0;\"' : '')} itemprop=\"name\">\n                                <a href=${value.permalink} title=\"${value.facility_name}\" >${value.facility_name}<\/a>\n                            <\/div>`\n                            \n                            if(!value.facility_phone){ \n                                facility+=`<div class=\"locationPhoneBold\">\n                                    ${SHARED.candee_translate('Call', candee_js_variables.lang)}\n                                    : <a itemprop=\"telephone\" aria-label=\"Call us ${value.facility_phone}\" href=\"tel:  ${value.facility_phone}\"> ${value.facility_phone}<\/a>\n                                <\/div>\n                                    `\n                             } \n                            \n                             if(isSingle == 0){ \n\n                                \/\/ \/blockDis =  SHARED.getDistance(addressGeoLat, addressGeoLng, +value.lat, +value.lng);\n                                distanceText = (SHARED.candee_translate('Distance', candee_js_variables.lang)+': ');\n                                value.distanceSort =parseFloat(value.distanceSort);\n                                if(candee_js_variables.measurement == 'metric'){\n                                    distanceText += SHARED.candee_convert_to_metric(Number.parseFloat(value.distanceSort).toFixed(1), 'miles', candee_js_variables.lang, false);\n                                } else {\n                                    distanceText += Number.parseFloat(value.distanceSort).toFixed(1)+' '+SHARED.candee_translate('Miles', candee_js_variables.lang);\n                                }\n                    \n                                facility+=`<div class=\"candeeDistance\">${distanceText}<\/div>`;\n                            }\n                            facility+=`\n                            <div class=\"candee_locations_block_address\" itemprop=\"name\">\n                                <div itemprop=\"address\" itemscope=\"\" itemtype=\"http:\/\/schema.org\/PostalAddress\">\n                                    <div class=\"candee_street_address\">\n                                        ${value.facility_address}\n                                    <\/div>\n                                    <div class=\"candee_city_state_zip\">\n                                        ${value.facility_city} \n                                        ${value.facility_region} \n                                        ${value.facility_zipcode}\n                                    <\/div>\n                                <\/div>\n                            <\/div>`;\n                            \n                            facility+=`<div class=\"candee_location_buttons\">`;\n                            \n                                if (value.data_show_map_buttons !== 'hide'){ \n                                    facility+=`<a tabindex=\"0\" \n                                        class=\"goToMapmarker yellowBTN background_1 action rippleFlashL2R googleTagManager\" \n                                        data-google='${JSON.stringify(value.data_google_map)}' \n                                        aria-label=\"Show ${value.facility_name} on map\" \n                                        title=\"Show ${value.facility_name} on map\" \n                                        href=\"#!\" \n                                        data-marker=\"${value.prop_id}\" \n                                        data-lat=\"${value.lat}\" \n                                        data-lng=\"${value.lng}\">\n                                            ${value.data_google_map_location_button_text}\n                                        <\/a>`;\n                                } \n                                    \n                                facility+=`<a \n                                        tabindex=\"0\" \n                                        class=\"yellowBTN background_1 action rippleFlashL2R goToLocation googleTagManager\" \n                                        data-google='${JSON.stringify(value.data_google_rent)}' \n                                        aria-label=\"${SHARED.candee_translate('More information about', candee_js_variables.lang)} ${value.facility_name}\" \n                                        title=\"More information about ${value.facility_name3}\" \n                                        href=\"${value.data_google_rent_link}\">\n                                            ${value.data_google_location_rent_button_text}\n                                        <\/a>`\n                                \n                                if (value.supplies_link.includes('http')){\n                                    facility+=`<a \n                                            tabindex=\"0\" \n                                            class=\"yellowBTN background_1 action rippleFlashL2R googleTagManager\" \n                                            data-google='${JSON.stringify(value.data_google_supplies)}' \n                                            aria-label=\"${SHARED.candee_translate('View supplies')}\" \n                                            title=\"${SHARED.candee_translate('View supplies')}\" \n                                            href=\"${value.supplies_link}\">\n                                                ${SHARED.candee_translate('Supplies')}\n                                            <\/a>`\n                                }\n                                \n                                                            \n                            facility+=`<\/div>`;\n                            \n                            if (value.facility_features && value.facility_features_hiden_icons != 'true'){\n                                icons = value.facility_features;\n                                icons = icons.filter(item => item.text !='');\n                                if(icons.length > 0){\n                                    facility+=`<div class=\"property_icons_wrap\">\n                                                <div class=\"property_icons candee-flex\">`;\n                                                icons.map(item =>{\n                                                    if(!(SHARED.isset(item.label) && item.label != '' )) {\n                                                        item.label = item.text;\n                                                        item.feature = item.text;\n                                                        item.icon = SHARED.createFeatureIcon(item.text);\n                                                    }\n                                                    let checked = dataFacilityFilter.find(itemFilter => itemFilter.toLowerCase() == item.feature.toLowerCase());\n                                                    facility+=`<a tabindex=\"-1\" \n                                                        aria-label=\"${item.label}\"\n                                                        data-feature=\"${item.feature}\" \n                                                        title=\"${item.label}\" \n                                                        class=\"candee_translate featIconToggle candee-icon icon ${SHARED.isset(checked) ? 'selected' : ''}\" \n                                                        href=\"#!\" >${item.icon}\n                                                        <\/a>`;\n                                                });\n                                    facility+=`<\/div>\n                                            <\/div>`;\n                                }\n                            }\n                    facility+=`<\/div>\n                    <\/div>\n                <\/div>\n                `;\n\n                cQuery(\"#facilities\").append(facility);\n\n                \/\/ var citystatezip    =  value.facility_city +'<br> '+\n                \/\/                         value.facility_region +'<br> '+\n                \/\/                         value.facility_zipcode\n                \n                \/\/ var dataMarkerTemplate = {\n                \/\/     name: value.facility_name,\n                \/\/     address: value.facility_address,\n                \/\/     longitude: value.lng,\n                \/\/     latitude: value.lat,\n                \/\/     city: citystatezip,\n                \/\/     state: '',\n                \/\/     zip: '',\n                \/\/     link: value.data_google_rent_link,\n                \/\/ }\n                \/\/ var info = MAP.markerTemplate(dataMarkerTemplate);\n\n                \/\/ dataLocationMapa.push( {\n                \/\/     info,\n                \/\/     lat: value.lat,\n                \/\/     lng: value.lng,\n                \/\/     prop_id: value.prop_id\n                \/\/ });\n                \n                LOCATIONS.loadMiniPitches();\n            })\n            cQuery('.candeeLocationLoadingWrapper').hide();\n\n            LOCATIONS.activateObserver();\n            showedFacilities+= data.length;\n\n            if (locationReviewsCount == 0){\n                cQuery('#sortingOptions').hide();\n                cQuery('#search_name').hide();\n            } else {\n                cQuery('#sortingOptions').removeClass('hidden').show();\n                cQuery('#search_name').removeClass('hidden').show();\n                cQuery('#button-search').removeClass('hidden').show();\n            }\n\n            \/\/*** this is only set when candee_locaitons loadall=\"false\" or you will get an ERROR***\n            \/\/ MAP.setMapLocations(dataLocationMapa);\n\n            if ('' == ''){ \/\/ Only update cards with user location if search was not made\n                LOCATIONS.updateLongLat();\n            }\n            if(updateResult) {\n                LOCATIONS.setTotalLocations();\n                \n            } else {\n                updateResult = true;\n            }\n        },\n        drawFacilityPin: async (data)=>{\n            \n            if(data.length != dataLocationMapa.length){\n                \n                if(updateResult) {\n                    dataLocationMapa = [];\n                    MAP.clearMarkers();\n                }\n                await data.map(value => {\n                    var city    =  value.facility_city +'<br> '+\n                                        value.facility_region +'<br> '+\n                                        value.facility_zipcode\n                    var dataMarkerTemplate = {\n                        name: value.name,\n                        address: value.address,\n                        longitude: value.longitude,\n                        latitude: value.latitude,\n                        city,\n                        state: '',\n                        zip: '',\n                        link: value.link,\n                    }\n                    var info = MAP.markerTemplate(dataMarkerTemplate);\n                    \n                    dataLocationMapa.push( {\n                        info,\n                        lat: value.latitude,\n                        lng: value.longitude,\n                        prop_id: value.prop_id\n                    });\n\n                })\n                MAP.setMapLocations(dataLocationMapa);\n            }\n        },\n\n        removeAllFacilities: () =>{\n            dataLocationMapa  = [];\n            showedFacilities = 0;\n            const list = document.getElementById(\"facilities\");\n\n            if (list.hasChildNodes()) {\n                while (list.hasChildNodes()) {\n                    list.removeChild(list.firstChild);\n                }\n            }\n        },\n\n        showMoreFacility: async ()=> {\n                facilityShowed = [];\n                \n                cQuery.each(cQuery('.candee .candee_locations_block:not(.notWithinRadius)'), function( index, value ) {\n                    if(cQuery(this).attr('data-propid')) {\n                        facilityShowed.push(cQuery(this).attr('data-propid'));\n                    }\n                });\n                cQuery('.liCheckbox_ripple ').addClass('liCheckboxInhability')\n                cQuery('.liCheckbox_ripple input[type=checkbox]').attr('disabled', true);\n\n                if(!processingInformationn){\n                    processingInformationn = true;\n                } else {\n                    return false;\n                }\n                cQuery('.candeeLocationLoadingWrapper').show();\n                cQuery('#showing_result').hide();\n                cQuery('#show-more-facility').addClass(\"hidden\");\n                \n                data = await LOCATIONS.getFacilities({\n                    notInclude: facilityShowed,\n                    sortingName,\n                    filterFeature: dataFacilityFilter,\n                    countShowPerSecction: countFacilityShowPerSecction \n                })\n                cQuery('.candeeLocationLoadingWrapper').hide();\n                if(!SHARED.isset(data.data) || data.data.length == 0){\n                    cQuery('.noResults.candee_translate').show();\n                    cQuery('.candeeLocationLoadingWrapper').hide();\n                \n                    return false\n                }\n\n                countDataFacillity = data.count\n                countUnits = data.count\n                LOCATIONS.habilityFilterFeature(data.filterHability);\n                LOCATIONS.drawFacility(data.data);\n                LOCATIONS.drawFacilityPin(data.data_ping);\n                if((facilityShowed.length + countFacilityShowPerSecction) < countDataFacillity ){\n                    cQuery('#show-more-facility').removeClass(\"hidden\");\n                }\n                cQuery('#showing_result').show();\n            \n        },\n\n        checkFilter : async(id) =>{\n            if(!SHARED.isset(filterFeature[id])){\n                return false;\n            }\n            let checked = cQuery('#checkbox_'+id).is(':checked');\n\n            filterFeature[id].is_clickeable = !checked;\n            filterFeature[id].is_check = checked;\n            text = filterFeature[id].text;\n            if(checked){\n                dataFacilityFilter.push(text)\n            }\n            else {\n                dataFacilityFilter = dataFacilityFilter.filter(item=> item !== text)\n            }\n\n            const list = document.getElementById(\"facilities\");\n\n            if (list.hasChildNodes()) {\n                while (list.hasChildNodes()) {\n                    list.removeChild(list.firstChild);\n                }\n            }\n            cQuery('#show-more-facility').addClass(\"hidden\");\n            await LOCATIONS.removeAllFacilities();\n            cQuery(\"#facilities\").html('');\n            LOCATIONS.showMoreFacility();\n        },\n        toggleCheck : async() =>{\n            let checked = cQuery('#select_all_checkbox').is(':checked');\n\n            dataFacilityFilter = [];\n\n            filterFeature = filterFeature.map((feature, index) => {\n                    feature.is_clickeable = checked;\n                    feature.is_check = checked;\n                    cQuery('#checkbox_'+index).prop('checked', checked);\n                    cQuery('#checkbox_'+index).prop('disabled', false);\n                    cQuery('#liCheckbox_'+index).removeClass('liCheckboxInhability');\n                    if(checked && feature.text != ''){\n                        dataFacilityFilter.push(feature.text);\n                    }\n\n                    return feature\n            });\n\n            cQuery('#show-more-facility').addClass(\"hidden\");\n            LOCATIONS.removeAllFacilities();\n            LOCATIONS.showMoreFacility();\n        },\n        search : () =>{\n            let search = cQuery('#search_feature').val();\n\n            filterFeature.map((feature, index) => {\n                search= search.toLowerCase();\n                text= feature.text.toLowerCase();\n                cQuery('#liCheckbox_'+index).hide();\n                if(feature.text.toLowerCase().includes(search)) {\n                    cQuery('#liCheckbox_'+index).show();\n                }                   \n            });\n        },\n        searchName : () =>{\n            \/\/ oldSortingName = sortingName;\n            sortingName = cQuery('#search_name').val();\n            \/\/ if((sortingName.length == 0 || sortingName.length >= 3) && sortingName != oldSortingName) {\n                cQuery('#show-more-facility').addClass(\"hidden\");\n                LOCATIONS.removeAllFacilities();\n                LOCATIONS.showMoreFacility();\n            \/\/ } \n\n        },\n        habilityFilterFeature: (data) => {\n            cQuery('.liCheckbox_ripple').removeClass('liCheckboxInhability')\n            cQuery('.liCheckbox_ripple').attr(\"disabled\", false);\n            let countItemFilter = dataFacilityFilter.length;\n            filterFeature = filterFeature.map((item, index) =>{\n                cQuery('#checkbox_'+index).prop('disabled', false);\n                cQuery('#liCheckbox_'+index).removeClass('liCheckboxInhability');\n                if(countItemFilter > 0) {\n                    item.is_clickeable = data.includes(item.text.toLowerCase());\n                    cQuery('#checkbox_'+index).prop('disabled', !item.is_clickeable);\n\n                    if(!item.is_clickeable){\n                        cQuery('#liCheckbox_'+index).addClass('liCheckboxInhability');\n                    } else{\n                        cQuery('#liCheckbox_'+index).removeClass('liCheckboxInhability');\n\n                    }\n                }\n                return item;\n            })\n\n        },\n        \n        setTotalLocations: function(){\n            \/\/set total facilities\n            countUnits +=cQuery('#facilities .lineItem:not(.clickandstor)').length\n            let count_showing_result= cQuery('#facilities .lineItem').length;\n            \n            count_showing_result = +countUnits >  +count_showing_result ? countUnits : count_showing_result\n            cQuery(\"#progressbar\").attr('max', countUnits).attr('value', count_showing_result);\n            cQuery('.totalRentals').text(countUnits); \n            cQuery('#count_showing_result').text(count_showing_result); \n\n            if(parseInt(countDataFacillity) > 0){\n                cQuery('.noResults').hide();\n                                    cQuery('#showHeaderMap').click();\n                            }else{\n                cQuery('.noResults').show();\n                if (cQuery('#facilityMap').css('display') == 'block'){\n                    cQuery('#showHeaderMap').click();\n                }\n            }\n        },\n        \n        sortByDistance: function(arg, sel, elem, order){\n            try{\n                var sortSelector = cQuery(sel),\n                sortElement = sortSelector.children(elem);\n                sortElement.sort(function(a, b) {\n                    var an = parseFloat(a.getAttribute(arg)),\n                    bn = parseFloat(b.getAttribute(arg));\n\n                    if (order == \"asc\") {\n                        if (an > bn)\n                        return 1;\n                        if (an < bn)\n                        return -1;\n                    } else if (order == \"desc\") {\n                        if (an < bn)\n                        return 1;\n                        if (an > bn)\n                        return -1;\n                    }\n                    return 0;\n                });\n                sortElement.detach().appendTo(sortSelector);\n            }catch(er){\n                console.warn('Cant sort by location', er);\n            }\n        },\n\n        updateLongLat: function(){\n            LOCATIONS.runUpdateLongLat(0);\n        },\n        \n        runUpdateLongLat: function(latUpdateGeo){\n            if (MAP.mapLoaded == true && SHARED.bowserLat && SHARED.bowserLng){\n                var bowserLat = SHARED.bowserLat;\n                var bowserLng = SHARED.bowserLng;\n                \n                cQuery('.candee_locations_block').each(function(index, link){\n                    var blockLat = cQuery(this).attr('data-lat');\n                    var blockLng = cQuery(this).attr('data-lng');\n                    var blockDis =  SHARED.getDistance(bowserLat, bowserLng, +blockLat, +blockLng);\n                    cQuery(this).attr('data-distance', blockDis);\n                    if(candee_js_variables.measurement == 'metric'){\n                        cQuery(this).find('.candeeDistance').text(SHARED.candee_translate('Distance', candee_js_variables.lang)+': '+SHARED.candee_convert_to_metric(blockDis, 'miles', candee_js_variables.lang, false));\n                    } else {\n                        cQuery(this).find('.candeeDistance').text(SHARED.candee_translate('Distance', candee_js_variables.lang)+': '+blockDis+' '+SHARED.candee_translate('Miles', candee_js_variables.lang));\n                    }\n                });\n\n                \/\/ Update location cards after\n                LOCATIONS.sortByDistance(\"data-distance\", \".candee_locations_main_wrapper\", \".candee_locations_block\", \"asc\");\n                \n            } else if (latUpdateGeo == 60) { \/\/ After 60 seconds, stop checking\n               console.warn(\"Map not initiated for Geocoder\");\n            } else {\n                latUpdateGeo++; \/\/ increment attempts\n                setTimeout(function(){ LOCATIONS.runUpdateLongLat(); }, 1000); \/\/ check if map is loaded every second.\n            } \/\/ End if map.mapLoaded conditional\n        },\n\n        loadMiniPitches: function(){\n            \/\/ Mini pitch settings\n            var pitchLimitSetting = 'disable';\n\n            if (pitchLimitSetting != 'disable' && SHARED.isset(cQuery('.candee .candee_locations_block:not(.notWithinRadius)'))){\n                var visibleCardsCount = cQuery('.candee .candee_locations_block:not(.notWithinRadius)').length;\n                var pitchLimit = pitchLimitSetting == 'default' ? 5 : 9999999999; \/\/ Default is 5 locations. Otherwise it's all locations\n                var currentPitchCount = cQuery('.candee .candee_locations_block .pitch_mini_grid').length;\n                \n                if (currentPitchCount < pitchLimit){\n                    cQuery('.candee .candee_locations_block:not(.notWithinRadius)').each(function(index){\n                        var el = cQuery(this);\n                        var propid = el.attr('data-propid');\n                        \n                        if ((!SHARED.isset(propid) && propid == '') || currentPitchCount >= pitchLimit){ \/\/ If no prop id exists or we have reached the pitch limit, don't load a pitch block\n                            return;\n                        }\n\n                        if (el.find('.pitch_mini_grid').length == 0 && el.attr('loading_pitch') != 'true'){ \/\/ Prevent loading multiple pitch blocks\n                            el.attr('loading_pitch', true);\n                            \n                            var variables = {\n                                'shortcode': '[candee_pitch ajax=\"false\" theme=\"pitch_theme_mini\" card_limit=\"3\" prop_id=\"'+propid+'\"  price_label=\"default\"  layout=\"grid\" ]'\n                            };\n                            \n                            cQuery.ajax({\n                                type: 'POST',\n                                url: ajaxurl,\n                                data: {\n                                    action: 'candee_ajax_load_template',\n                                    query_vars: variables,\n                                    current_url: '',\n                                    ajax_data: { 'theme' : 'templates\/ajax_load\/ajax_load_theme_2.php' },\n                                },\n                                success: function(response){\n                                    if (el.find('.pitch_mini_grid').length == 0){\n                                        el.append(response);\n                                    }\n                                },\n                                fail: function(response){\n                                    console.warn('ERROR: '+response);\n                                }\n                            });\n                        }\n\n\n                        currentPitchCount++;\n                    });\n                }\n            }\n            \n            \n        }\n    }\n\n    docReady(function() {\n        cQuery('.hasSearchAddress').val(\"\");\n        cQuery('body').addClass('locations_theme_2');\n\n        if (''.replaceAll(' ', '') !== ''){ \/\/ If a location is being searched, use that. Otherwise use the user's location if possible\n            LOCATIONS.initialize();\n            cQuery('#buttonNearMe').removeClass('disabled')\n        } else if (navigator && navigator.permissions) { \/\/ Otherwise, try to get the users location and initialize\n            navigator.permissions.query({ name: 'geolocation' })\n            .then(response => {\n                if(response.state === 'granted'){\n                    SHARED.getLatLong(LOCATIONS.initialize, null, true);\n                    return false;\n                }\n                cQuery('#buttonNearMe').removeClass('disabled')\n                LOCATIONS.initialize();\n            });\n        } else {\n            cQuery('#buttonNearMe').removeClass('disabled')\n            LOCATIONS.initialize();\n        }\n\n        cQuery('#buttonNearMe').mouseup(async function(){\n            let refresh = true;\n            let response = await navigator.permissions.query({ name: 'geolocation' });\n            hasPermissionsSearchNear = response.state;\n            if(hasPermissionsSearchNear === 'granted'){\n                SHARED.getLatLong(LOCATIONS.initialize, null, true);\n            } else if(hasPermissionsSearchNear === 'prompt') {\n                navigator.geolocation.watchPosition(function(position) {\n                    if(refresh) {\n                        LOCATIONS.removeAllFacilities();\n                        cQuery('.noResults.candee_translate, #showing_result').hide();\n                        cQuery('.candeeLocationLoadingWrapper').show();\n                        cQuery('#show-more-facility').addClass(\"hidden\");\n                        SHARED.getLatLong(LOCATIONS.initialize, null, true);\n                        if(cQuery('.candee-row.filter.options').length > 0){\n                            cQuery('html, body').animate( { scrollTop: cQuery('.candee-row.filter.options').offset().top - 150 }, 1000, function(){} );\n                        }\n                    }\n                    refresh = false;\n                    return false;\n                });\n            } else {\n\n                var blurb = `<div class=\"candee white-popup userBarPop  locationConfirmationPopup\" style=\"width: 40%;padding: 2rem;left: 28%;\">`+\n                                '<div class =\"userPopBlurb\">'+\n                                    '<div class=\"userPopIcon background_1 animated fadeInLeft\" style=\"width: 40%\">'+\n                                        '<i class=\"fa fa-map-marker\" aria-hidden=\"true\"><\/i>'+\n                                        '<span class=\"userPopTitle candee_translate\">Location<\/span>'+\n                                    '<\/div>'+\n                                    '<div class=\"userPopDesc\" style=\"width: 50%; border-right: unset;\">'+\n                                        `<p style=\"display: block;\" class=\"candee_translate confirmationMessage hasGeo error\">${SHARED.candee_translate(\"You have blocked geolocation and need to manually reactivate.\",candee_js_variables.lang)}<\/p>`\n                                    '<\/div>'+\n                                '<\/div>'+\n                            '<\/div>';\n\n                cQuery.magnificPopup.open({\n                    items: {\n                        src: blurb,\n                        type: 'inline'\n                    },\n                    mainClass: \"userBarMag\",\n                    callbacks: {\n                        \/\/ close: function() { addUserIndicator(); }\n                    }\n                });\n            }\n        });\n        \/\/filter button\n        cQuery('.masterFeatureFilterCheckbox').on('click', function(){\n            \/\/fire event\n            cQuery('body').trigger('masterFeatureFilterCheckboxClicked');\n\n            \/\/clear pins\n            MAP.clearMarkers();\n        });\n\n\t    \/\/ Card icons click to select master checkbox toggle\n\t\tcQuery(document).on('click', '.masterFeatureFilterCheckbox ', function(){\n            let index =   cQuery(this).attr('data-index');\n            LOCATIONS.checkFilter(index)\n        })\n\n\t\tcQuery(document).on('click', '.featIconToggle', function(){\n            var selectedFeature = cQuery(this).attr('data-feature').toLowerCase();\n            let id = filterFeature.findIndex(item => item.text.toLowerCase() === selectedFeature)\n            let checked = cQuery('#checkbox_'+id).is(':checked');\n            cQuery('#checkbox_'+id).prop('checked', !checked); \n            LOCATIONS.checkFilter(id)\n        });\n\t\n\t\tcQuery('.master_icon_filters li').keypress(function(e){\n\t\t\tif(e.which === 13) {\n\t\t\t\tcQuery(this).find('.masterFeatureFilterCheckbox').click();\n\t\t\t}\n        });\n\n        cQuery('body').on('change', '#sortingOptions', function (e) {\n            var valueSelected  = this.value;\n            sortingFacilities = valueSelected;\n            LOCATIONS.removeAllFacilities();\n            LOCATIONS.showMoreFacility()\n            cQuery(document).trigger('candee_locations_sorted');\n        });\n    });\n\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/full-width.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-7","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Locations - Summit Self Storage<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Locations - Summit Self Storage\" \/>\n<meta property=\"og:url\" content=\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/\" \/>\n<meta property=\"og:site_name\" content=\"Summit Self Storage\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-04T20:10:55+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/\",\"url\":\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/\",\"name\":\"Locations - Summit Self Storage\",\"isPartOf\":{\"@id\":\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/#website\"},\"datePublished\":\"2022-05-04T15:54:14+00:00\",\"dateModified\":\"2022-05-04T20:10:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Locations\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/#website\",\"url\":\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/\",\"name\":\"Summit Self Storage\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Locations - Summit Self Storage","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/","og_locale":"en_US","og_type":"article","og_title":"Locations - Summit Self Storage","og_url":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/","og_site_name":"Summit Self Storage","article_modified_time":"2022-05-04T20:10:55+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/","url":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/","name":"Locations - Summit Self Storage","isPartOf":{"@id":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/#website"},"datePublished":"2022-05-04T15:54:14+00:00","dateModified":"2022-05-04T20:10:55+00:00","breadcrumb":{"@id":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/locations\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/"},{"@type":"ListItem","position":2,"name":"Locations"}]},{"@type":"WebSite","@id":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/#website","url":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/","name":"Summit Self Storage","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/wp-json\/wp\/v2\/pages\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":2,"href":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/wp-json\/wp\/v2\/pages\/7\/revisions"}],"predecessor-version":[{"id":591,"href":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/wp-json\/wp\/v2\/pages\/7\/revisions\/591"}],"wp:attachment":[{"href":"https:\/\/network8.us23.cdn-alpha.com\/summit-storage\/wp-json\/wp\/v2\/media?parent=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}