/*! elementor - v3.18.0 - 20-12-2023 */ .elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}/** * Internal dependencies */ import { buildTermsTree } from '../utils'; const list = [ { id: 1, name: 'Apricots', parent: 0 }, { id: 2, name: 'Clementine', parent: 0 }, { id: 3, name: 'Elderberry', parent: 2 }, { id: 4, name: 'Guava', parent: 2 }, { id: 5, name: 'Lychee', parent: 3 }, { id: 6, name: 'Mulberry', parent: 0 }, { id: 7, name: 'Tamarind', parent: 5 }, ]; describe( 'buildTermsTree', () => { test( 'should return an empty array on empty input', () => { const tree = buildTermsTree( [] ); expect( tree ).toEqual( [] ); } ); test( 'should return a flat array when there are no parent relationships', () => { const tree = buildTermsTree( [ { id: 1, name: 'Apricots', parent: 0 }, { id: 2, name: 'Clementine', parent: 0 }, ] ); expect( tree ).toEqual( [ { id: 1, name: 'Apricots', parent: 0, breadcrumbs: [], children: [], }, { id: 2, name: 'Clementine', parent: 0, breadcrumbs: [], children: [], }, ] ); } ); test( 'should return a tree of items', () => { const tree = buildTermsTree( list ); expect( tree ).toEqual( [ { id: 1, name: 'Apricots', parent: 0, breadcrumbs: [], children: [], }, { id: 2, name: 'Clementine', parent: 0, breadcrumbs: [], children: [ { id: 3, name: 'Elderberry', parent: 2, breadcrumbs: [ 'Clementine' ], children: [ { id: 5, name: 'Lychee', parent: 3, breadcrumbs: [ 'Clementine', 'Elderberry' ], children: [ { id: 7, name: 'Tamarind', parent: 5, breadcrumbs: [ 'Clementine', 'Elderberry', 'Lychee', ], children: [], }, ], }, ], }, { id: 4, name: 'Guava', parent: 2, breadcrumbs: [ 'Clementine' ], children: [], }, ], }, { id: 6, name: 'Mulberry', parent: 0, breadcrumbs: [], children: [], }, ] ); } ); test( 'should return a tree of items, with orphan categories appended to the end', () => { const filteredList = [ { id: 1, name: 'Apricots', parent: 0 }, { id: 2, name: 'Clementine', parent: 0 }, { id: 4, name: 'Guava', parent: 2 }, { id: 5, name: 'Lychee', parent: 3 }, { id: 6, name: 'Mulberry', parent: 0 }, ]; const tree = buildTermsTree( filteredList, list ); expect( tree ).toEqual( [ { id: 1, name: 'Apricots', parent: 0, breadcrumbs: [], children: [], }, { id: 2, name: 'Clementine', parent: 0, breadcrumbs: [], children: [ { id: 4, name: 'Guava', parent: 2, breadcrumbs: [ 'Clementine' ], children: [], }, ], }, { id: 6, name: 'Mulberry', parent: 0, breadcrumbs: [], children: [], }, { id: 5, name: 'Lychee', parent: 3, breadcrumbs: [ 'Clementine', 'Elderberry' ], children: [], }, ] ); } ); test( 'should return a tree of items, with orphan categories appended to the end, with children of thier own', () => { const filteredList = [ { id: 1, name: 'Apricots', parent: 0 }, { id: 3, name: 'Elderberry', parent: 2 }, { id: 4, name: 'Guava', parent: 2 }, { id: 5, name: 'Lychee', parent: 3 }, { id: 6, name: 'Mulberry', parent: 0 }, ]; const tree = buildTermsTree( filteredList, list ); expect( tree ).toEqual( [ { id: 1, name: 'Apricots', parent: 0, breadcrumbs: [], children: [], }, { id: 6, name: 'Mulberry', parent: 0, breadcrumbs: [], children: [], }, { id: 3, name: 'Elderberry', parent: 2, breadcrumbs: [ 'Clementine' ], children: [ { id: 5, name: 'Lychee', parent: 3, breadcrumbs: [ 'Clementine', 'Elderberry' ], children: [], }, ], }, { id: 4, name: 'Guava', parent: 2, breadcrumbs: [ 'Clementine' ], children: [], }, ] ); } ); } ); jQuery( function( $ ) { 'use strict'; /** * Object to handle PayPal admin functions. */ var wc_paypal_admin = { isTestMode: function() { return $( '#woocommerce_paypal_testmode' ).is( ':checked' ); }, /** * Initialize. */ init: function() { $( document.body ).on( 'change', '#woocommerce_paypal_testmode', function() { var test_api_username = $( '#woocommerce_paypal_sandbox_api_username' ).parents( 'tr' ).eq( 0 ), test_api_password = $( '#woocommerce_paypal_sandbox_api_password' ).parents( 'tr' ).eq( 0 ), test_api_signature = $( '#woocommerce_paypal_sandbox_api_signature' ).parents( 'tr' ).eq( 0 ), live_api_username = $( '#woocommerce_paypal_api_username' ).parents( 'tr' ).eq( 0 ), live_api_password = $( '#woocommerce_paypal_api_password' ).parents( 'tr' ).eq( 0 ), live_api_signature = $( '#woocommerce_paypal_api_signature' ).parents( 'tr' ).eq( 0 ); if ( $( this ).is( ':checked' ) ) { test_api_username.show(); test_api_password.show(); test_api_signature.show(); live_api_username.hide(); live_api_password.hide(); live_api_signature.hide(); } else { test_api_username.hide(); test_api_password.hide(); test_api_signature.hide(); live_api_username.show(); live_api_password.show(); live_api_signature.show(); } } ); $( '#woocommerce_paypal_testmode' ).trigger( 'change' ); } }; wc_paypal_admin.init(); }); 1.0Zona U Restaurantehttps://zonau.coHARDIN SALGUEDOhttps://zonau.co/author/hardin/Punta de anca - Zona U Restauranterich600338<blockquote class="wp-embedded-content" data-secret="qGN3e3yBMk"><a href="https://zonau.co/producto/punta-de-anca/">Punta de anca</a></blockquote><iframe sandbox="allow-scripts" security="restricted" src="https://zonau.co/producto/punta-de-anca/embed/#?secret=qGN3e3yBMk" width="600" height="338" title="«Punta de anca» — Zona U Restaurante" data-secret="qGN3e3yBMk" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe><script type="text/javascript"> /* <![CDATA[ */ /*! This file is auto-generated */ !function(d,l){"use strict";l.querySelector&&d.addEventListener&&"undefined"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i<o.length;i++)o[i].style.display="none";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute("style"),"height"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):"link"===t.message&&(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document); /* ]]> */ </script> https://zonau.co/wp-content/uploads/2020/11/punta-de-anca-022.jpg895895Jugoso Corte de Cuadril o Picanha Asada al Carbón, bañada con salsa Chimichurry del Chef, Acompañado con Casquitos de Papas, Croquetas de Yuca o Papas a la Francesa y Ensalada de la Casa.