{"id":9359,"date":"2023-08-09T15:42:35","date_gmt":"2023-08-09T13:42:35","guid":{"rendered":"https:\/\/sailiz.fr\/il-mio-account\/"},"modified":"2026-03-10T06:26:12","modified_gmt":"2026-03-10T05:26:12","slug":"il-mio-account","status":"publish","type":"page","link":"https:\/\/sailiz.fr\/it\/il-mio-account\/","title":{"rendered":"Il mio account"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"9359\" class=\"elementor elementor-9359 elementor-17\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f49ca52 e-flex e-con-boxed e-con e-parent\" data-id=\"f49ca52\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-ad42cc8 e-con-full e-flex e-con e-child\" data-id=\"ad42cc8\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c2993c3 elementor-align-left elementor-widget elementor-widget-breadcrumbs\" data-id=\"c2993c3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"breadcrumbs.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<nav aria-label=\"breadcrumbs\" class=\"rank-math-breadcrumb\"><p><span class=\"last\">Home<\/span><\/p><\/nav>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9a2ff96 e-my-account-tabs-vertical elementor-widget elementor-widget-woocommerce-my-account\" data-id=\"9a2ff96\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;forms_buttons_hover_animation&quot;:&quot;grow&quot;}\" data-widget_type=\"woocommerce-my-account.default\">\n\t\t\t\t\t<div class=\"e-my-account-tab e-my-account-tab__ \">\t\t\t<div class=\"woocommerce\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-484f37f elementor-widget elementor-widget-html\" data-id=\"484f37f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t\n<script>document.addEventListener(\"DOMContentLoaded\", function () {\n\tconst toggles = document.querySelectorAll('.order_content_toggle');\n\n\ttoggles.forEach(toggle => {\n\t\ttoggle.addEventListener('click', function () {\n\t\t\tconst parentLi = toggle.closest('li');\n\t\t\tconst content = parentLi.querySelector('.afs_order_content');\n\t\t\tconst infoLeft = parentLi.querySelector('.order-info-left');\n\t\t\tconst infoRight = parentLi.querySelector('.order-info-right');\n\t\t\tconst thumbnails = parentLi.querySelector('.order-items-thumbnails');\n\t\t\tconst orderTotal = parentLi.querySelector('.woocommerce-Price-amount.amount');\n\t\t\tconst orderTotalMain = parentLi.querySelector('.order-total');\n\n\t\t\t\/\/ Close all others\n\t\t\tdocument.querySelectorAll('.afs_order_content').forEach(otherContent => {\n\t\t\t\tif (otherContent !== content) {\n\t\t\t\t\tconst otherLi = otherContent.closest('li');\n\t\t\t\t\tslideUp(otherContent);\n\n\t\t\t\t\t\/\/ Remove open classes from others\n\t\t\t\t\totherLi.querySelector('.order-info-left')?.classList.remove('open');\n\t\t\t\t\totherLi.querySelector('.order-info-right')?.classList.remove('open');\n\t\t\t\t\totherLi.querySelector('.order-items-thumbnails')?.classList.remove('hide');\n\t\t\t\t\totherLi.querySelector('.woocommerce-Price-amount.amount')?.classList.remove('hide');\n\t\t\t\t\totherLi.querySelector('.order-total')?.classList.remove('hide', 'open');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t\/\/ Toggle current\n\t\t\tif (content.classList.contains('open')) {\n\t\t\t\tslideUp(content);\n\t\t\t\tinfoLeft.classList.remove('open');\n\t\t\t\tinfoRight.classList.remove('open');\n\t\t\t\tthumbnails.classList.remove('hide');\n\t\t\t\torderTotal.classList.remove('hide');\n\t\t\t\torderTotalMain.classList.remove('hide', 'open');\n\t\t\t} else {\n\t\t\t\tslideDown(content);\n\t\t\t\tinfoLeft.classList.add('open');\n\t\t\t\tinfoRight.classList.add('open');\n\t\t\t\tthumbnails.classList.add('hide');\n\t\t\t\torderTotal.classList.add('hide');\n\t\t\t\torderTotalMain.classList.add('open'); \/\/ \u2705 add this class for your CSS to work\n\t\t\t}\n\t\t});\n\t});\n\n\tfunction slideUp(element) {\n\t\telement.style.height = element.scrollHeight + 'px';\n\t\trequestAnimationFrame(() => {\n\t\t\telement.style.transition = 'height 0.4s ease, opacity 0.4s ease';\n\t\t\telement.style.height = '0';\n\t\t\telement.style.opacity = '0';\n\t\t});\n\t\telement.classList.remove('open');\n\n\t\tsetTimeout(() => {\n\t\t\telement.style.display = 'none';\n\t\t\telement.style.removeProperty('height');\n\t\t\telement.style.removeProperty('opacity');\n\t\t\telement.style.removeProperty('transition');\n\t\t}, 400);\n\t}\n\n\tfunction slideDown(element) {\n\t\telement.style.display = 'flex';\n\t\telement.style.height = '0';\n\t\telement.style.opacity = '0';\n\n\t\trequestAnimationFrame(() => {\n\t\t\telement.style.transition = 'height 0.4s ease, opacity 0.4s ease';\n\t\t\telement.style.height = element.scrollHeight + 'px';\n\t\t\telement.style.opacity = '1';\n\t\t});\n\t\telement.classList.add('open');\n\n\t\tsetTimeout(() => {\n\t\t\telement.style.removeProperty('height');\n\t\t\telement.style.removeProperty('opacity');\n\t\t\telement.style.removeProperty('transition');\n\t\t}, 400);\n\t}\n});\n<\/script>\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":"<p>Home<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-9359","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/sailiz.fr\/it\/wp-json\/wp\/v2\/pages\/9359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sailiz.fr\/it\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sailiz.fr\/it\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sailiz.fr\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sailiz.fr\/it\/wp-json\/wp\/v2\/comments?post=9359"}],"version-history":[{"count":0,"href":"https:\/\/sailiz.fr\/it\/wp-json\/wp\/v2\/pages\/9359\/revisions"}],"wp:attachment":[{"href":"https:\/\/sailiz.fr\/it\/wp-json\/wp\/v2\/media?parent=9359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}