/**
* External dependencies
*/
import { __, _n, sprintf } from '@wordpress/i18n';
import { Fragment } from '@wordpress/element';
import { find } from 'lodash';
import PropTypes from 'prop-types';
import { SearchListControl, SearchListItem } from '@woocommerce/components';
import { SelectControl, Spinner } from '@wordpress/components';
import { withAttributes } from '@woocommerce/block-hocs';
import ErrorMessage from '@woocommerce/block-components/error-placeholder/error-message.js';
/**
* Internal dependencies
*/
import './style.scss';
const ProductAttributeTermControl = ( {
attributes,
error,
expandedAttribute,
onChange,
onExpandAttribute,
onOperatorChange,
isLoading,
operator,
selected,
termsAreLoading,
termsList,
} ) => {
const onSelectAttribute = ( item ) => {
return () => {
onChange( [] );
onExpandAttribute( item.id );
};
};
const renderItem = ( args ) => {
const { item, search, depth = 0 } = args;
const classes = [
'woocommerce-product-attributes__item',
'woocommerce-search-list__item',
];
if ( search.length ) {
classes.push( 'is-searching' );
}
if ( depth === 0 && item.parent ) {
classes.push( 'is-skip-level' );
}
if ( ! item.breadcrumbs.length ) {
return [
,
expandedAttribute === item.id && termsAreLoading && (
Reserve Your Machu Picchu Adventure Today
Welcome to Noa Adventures!
At Noa Adventures, we specialize in creating unforgettable journeys to the breathtaking Machu Picchu. Whether you’re seeking a cultural exploration, a scenic adventure, or a deep connection with Peru’s heritage, we tailor each trip to meet your needs and exceed your expectations. Our experienced guides and personalized service ensure that every aspect of your visit is seamlessly crafted, allowing you to fully immerse yourself in the wonders of the Inca citadel and the beautiful landscapes surrounding it.
Join us and discover the magic of Machu Picchu with Noa Adventures!