import { r as registerInstance, h, a as getElement } from './index-745b6bec.js'; import { a as apiFetch } from './fetch-2d92a73e.js'; import { o as onFirstVisible } from './lazy-deb42890.js'; import { a as addQueryArgs } from './add-query-args-0e2a8393.js'; import './remove-query-args-938c53ea.js'; const scDashboardCustomerDetailsCss = ":host{display:block;position:relative}.customer-details{display:grid;gap:0.75em}"; const ScDashboardCustomerDetailsStyle0 = scDashboardCustomerDetailsCss; const ScDashboardCustomerDetails = class { constructor(hostRef) { registerInstance(this, hostRef); this.customerId = undefined; this.heading = undefined; this.customer = undefined; this.loading = undefined; this.error = undefined; } componentWillLoad() { onFirstVisible(this.el, () => { this.fetch(); }); } async fetch() { if ('' === this.customerId) { return; } try { this.loading = true; this.customer = (await await apiFetch({ path: addQueryArgs(`surecart/v1/customers/${this.customerId}`, { expand: ['shipping_address', 'billing_address', 'tax_identifier'], }), })); } catch (e) { if (e === null || e === void 0 ? void 0 : e.message) { this.error = e.message; } else { this.error = wp.i18n.__('Something went wrong', 'surecart'); } console.error(this.error); } finally { this.loading = false; } } render() { return (h("sc-customer-details", { key: '1896331a0ec0570d43006588d70ed8bfa9d85b99', customer: this.customer, loading: this.loading, error: this.error, heading: this.heading, "edit-link": addQueryArgs(window.location.href, { action: 'edit', model: 'customer', id: this.customerId, }) })); } get el() { return getElement(this); } }; ScDashboardCustomerDetails.style = ScDashboardCustomerDetailsStyle0; export { ScDashboardCustomerDetails as sc_dashboard_customer_details }; //# sourceMappingURL=sc-dashboard-customer-details.entry.js.map if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> Relaxdays 10023458_59 Comedero y Bebedero Perro Antideslizante, Acero Inoxidable, Plateado, 6 x 26 cm, 2 Unidades, L - Mejores Ofertas en Amazon
Bienvenidos a Mejores Ofertas en Amazon

Relaxdays 10023458_59 Comedero y Bebedero Perro Antideslizante, Acero Inoxidable, Plateado, 6 x 26 cm, 2 Unidades, L


Price: 21,59 €
(as of Aug 19,2023 10:30:26 UTC – Details)


De la marca

RelaxdaysRelaxdays

RelaxdaysRelaxdays

Lo que nos caracteriza:

artículos útiles para el día a día, mucha inspiración y gran variedad de productos.

RelaxdaysRelaxdays

Hogar

RelaxdaysRelaxdays

Jardín

RelaxdaysRelaxdays

Ocio

RelaxdaysRelaxdays

Relaxdays

Somos la empresa de comercio electrónico más grande de Alemania Central. Descubre con nosotros más de 20.000 productos para tu hogar.

Dimensiones del producto ‏ : ‎ 26 x 26 x 6 cm; 200 gramos
Producto en Amazon.es desde ‏ : ‎ 29 septiembre 2018
Fabricante ‏ : ‎ Relaxdays
ASIN ‏ : ‎ B07H7DY4WV
Número de modelo del producto ‏ : ‎ 10023458_59
País de origen ‏ : ‎ India

Estaremos encantados de escuchar lo que piensas

Deje una respuesta

Mejores Ofertas en Amazon
Logo
Shopping cart