{"id":11297,"date":"2017-11-27T21:01:20","date_gmt":"2017-11-28T02:01:20","guid":{"rendered":"https:\/\/mktplace.isresearch.one\/marketplace-search-results\/"},"modified":"2025-05-07T11:11:32","modified_gmt":"2025-05-07T16:11:32","slug":"marketplace-search-results","status":"publish","type":"page","link":"https:\/\/regency.com.pa\/en\/marketplace-search-results\/","title":{"rendered":"Marketplace &#8211; Search Results"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"11297\" class=\"elementor elementor-11297 elementor-7663\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-cb75223 e-flex e-con-boxed e-con e-parent\" data-id=\"cb75223\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-358698a elementor-widget elementor-widget-html\" data-id=\"358698a\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>jQuery(document).ready(function($) {\n    \/\/ Select the type dropdown\n    const typeSelect = $('select[name=\"type[]\"]');\n    \/\/ Select the flex container of the bedrooms field\n    const roomsFieldContainer = $('select[name=\"bedrooms\"]').closest('.flex-search');\n\n    \/\/ Define the commercial property types\n    const commercialTypes = ['coworking', 'bodegas', 'locales', 'oficinas', 'oficinas-todo-incluido'];\n\n    \/\/ Function to show\/hide the rooms field container\n    function toggleRoomsField() {\n        \/\/ Get the selected value(s) from the type selectpicker\n        const selectedTypes = typeSelect.val();\n        \n        \/\/ Check if selection is empty or if all selected types are commercial\n        const noSelection = !selectedTypes || selectedTypes.length === 0;\n        const allCommercial = selectedTypes && selectedTypes.every(type => commercialTypes.includes(type));\n\n        \/\/ Show the container if at least one non-commercial type is selected\n        if (noSelection || !allCommercial) {\n            roomsFieldContainer.show();\n        } else {\n            \/\/ Hide the container\n            roomsFieldContainer.hide();\n        }\n    }\n\n    \/\/ Listen for changes in the type select\n    typeSelect.on('changed.bs.select', toggleRoomsField);\n\n    \/\/ Run on page load to set the correct initial state\n    toggleRoomsField();\n});\n<\/script><script>jQuery(function($){\n      \/\/ 1) hide the child-zones in the real <select>$('.houzez-search-form-js .houzezFourthList option:not([data-subtext])').hide();\n      \/\/ 2) force bootstrap-select to re-scan the <select> and rebuild its dropdown\n      $('.houzez-search-form-js .houzezFourthList select').selectpicker('refresh');\n    });\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template\/template-search.php","meta":{"content-type":"","footnotes":""},"class_list":["post-11297","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/regency.com.pa\/en\/wp-json\/wp\/v2\/pages\/11297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/regency.com.pa\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/regency.com.pa\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/regency.com.pa\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/regency.com.pa\/en\/wp-json\/wp\/v2\/comments?post=11297"}],"version-history":[{"count":1,"href":"https:\/\/regency.com.pa\/en\/wp-json\/wp\/v2\/pages\/11297\/revisions"}],"predecessor-version":[{"id":11300,"href":"https:\/\/regency.com.pa\/en\/wp-json\/wp\/v2\/pages\/11297\/revisions\/11300"}],"wp:attachment":[{"href":"https:\/\/regency.com.pa\/en\/wp-json\/wp\/v2\/media?parent=11297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}