var monsterinsights_frontend = {"js_events_tracking":"true","download_extensions":"doc,pdf,ppt,zip,xls,docx,pptx,xlsx","inbound_paths":"[{\"path\":\"\\\/go\\\/\",\"label\":\"affiliate\"},{\"path\":\"\\\/recommend\\\/\",\"label\":\"affiliate\"}]","home_url":"https:\/\/accent-systems.com","hash_tracking":"false","v4_id":"G-069LN2YPE1"};
BLE PAwR ESL: Guía Completa para Desarrollar Etiquetas Electrónicas de Estantería con Bluetooth 5.4 (2026)
El sector retail está experimentyo una transformación digital. En el corazón de las Etiquetas Electrónicas de Estantería modernas se encuentra una poderosa combinación: Bluetooth Low Energy + PAwR + the official Bluetooth ESL Profile. Esto es lo que importa para tu próximo producto.
Si estás desarrollyo un producto de Etiquetas Electrónicas de Estantería (ESL) para mercados retail globales, la combinación de Bluetooth Low Energy (BLE) + PAwR (Periodic Advertising with Responses) + the official Bluetooth ESL Profile representa la vía de estándares abiertos más viable para lograr escala masiva, consumo ultra bajo y verdadera interoperabilidad.
La razón es clara: PAwR, incorporado en la Bluetooth Core Specification v5.4, permite comunicación bidireccional, sin conexión, de uno a muchos de manera eficiente energéticamente — diseñado explícitamente para escenarios como ESL.
32,640 Máximo teórico de dispositivos mapeados por PAwR «train» (128 subeventos × 255 slots de respuesta). La capacidad real depende del tiempo de aire, payload y diseño del sistema. (Fuente: Silicon Labs ESL Documentation)
Como empresa de desarrollo de dispositivos IoT con amplia experiencia en diseño de productos BLE, hemos visto de primera mano cómo PAwR está transformyo el panorama ESL. Esto es lo que todo product manager, ingeniero y líder empresarial debe saber.
¿Qué es BLE, PAwR y ESL?
Bluetooth Low Energy (BLE)
Bluetooth Low Energy (BLE) es el modo de bajo consumo de Bluetooth, introducido como alternativa a BR/EDR («Bluetooth Clásico»). BLE está diseñado específicamente para dispositivos IoT, sensores y periféricos donde la vida de batería es crítica.
El stack BLE incluye capas Host y Controller con interfaz HCI, plus GAP/GATT/ATT/L2CAP protocolos que forman la base para perfiles y servicios interoperables. (Fuente: Bluetooth LE Primer)
PAwR (Periodic Advertising with Responses)
PAwR es una característica introducida en Bluetooth Core Specification v5.4 que permite comunicación bidireccional, eficiente energéticamente, sin conexión en topologías de uno a muchos a escala masiva.
Técnicamente, PAwR organiza intervalos de advertising periódico en subeventos, y dentro de cada subevento, en slots de respuesta donde múltiples dispositivos pueden responder sin establecer conexiones dedicadas:
Cada intervalo puede tener 1–128 subeventos
Cada subevento puede tener 0–255 slots de respuesta
Capacidad teórica máxima: 32,640 mapeos de dispositivos por «tren»
Aclaración importante: En el contexto Bluetooth, el acrónimo correcto es PAwR (con minúscula «w») = Periodic Advertising with Responses. «PAWR» en mayúsculas a veces se refiere al Platforms for Advanced Wireless Research programa de la NSF — una iniciativa completamente diferente relacionada con investigación de infraestructura 5G.
ESL (Etiquetas Electrónicas de Estantería)
Etiquetas Electrónicas de Estantería son pantallas e-paper alimentadas por batería que reemplazan las etiquetas de precio tradicionales de papel en entornos retail. Permiten actualizaciones remotas en tiempo real de precios, promociones, códigos de barras e información del producto a través de infraestructura inalámbrica (gateways/puntos de acceso).
La ventaja clave de la tecnología e-paper es su biestabilidad: el consumo significativo de energía solo ocurre durante el refresco de pantalla — mantener la imagen mostrada no requiere prácticamente energía. Esto permite vidas de batería de 5+ years con frecuencias de actualización moderadas. (Fuente: Displaydata)
Por Qué PAwR Es Revolucionario para Sistemas ESL
Antes de Bluetooth 5.4, construir un sistema ESL escalable con BLE significaba:
Enfoque basado en conexión: Establecer conexiones GATT individuales a miles de tags — operacionalmente complejo y difícil de escalar
Advertising simple: Broadcast unidireccional sin confirmación — sin forma de confirmar actualizaciones de tags o leer su estado
Protocolos propietarios: Soluciones personalizadas que crean dependencia del proveedor
PAwR resuelve estos problemas proporcionyo:
Bidireccional Sin Conexiones
Los tags reciben comyos Y envían respuestas (ACK, estado, nivel de batería) sin conexiones dedicadas.
Slots de Respuesta Programados
Los tags despiertan solo en su slot de tiempo asignado, minimizyo el consumo de energía.
Escalabilidad Masiva
Soporte teórico para decenas de miles de dispositivos por gateway.
Verdadera Interoperabilidad
El enfoque basado en estándares reduce la dependencia del proveedor.
BLE vs. PAwR vs. ESL Profile: Comparación Completa
The three approaches to ESL over Bluetooth each have distinct characteristics. Here’s how they compare:
Feature
Classic BLE
BLE Advertising
PAwR (BLE 5.4)
ESL Profile
Topology
1:1 (central-peripheral)
1:many unidirectional
1:many bidirectional
Complete system
Scalability
Difficult
Good broadcast, limited replies
Designed for 1:m with replies
Interoperability styard
Security
Link-layer encryption
No styard encryption
EAD encryption
Includes OTS, EAD
Power Efficiency
Moderate
Good (TX only)
Excellent (scheduled)
Optimized for years
Ideal Use Case
Sensors, apps
Beacons
Large-scale control
Retail ESL
The foundation that makes «ESL over Bluetooth» a true open styard is the publication of the ESL Service y ESL Profile specifications by the Bluetooth SIG.
Arquitectura de Sistemas ESL para Retail
Una arquitectura práctica BLE+PAwR+ESL separa control de negocio (precios, promociones, planogramas) desde control de radio (gateway/AP a tags):
Componentes Clave
Backend/Gestor ESL: Se integra con ERP/POS, gestiona reglas de precios, plantillas y orquestación de despliegue
Puntos de Acceso/Gateways: BLE 5.4 devices that broadcast PAwR comyos y collect tag respuestas
Tags ESL: Pantallas e-paper alimentadas por batería con SoC BLE 5.4
Para transferencia de datos masiva (imágenes, plantillas), la arquitectura típicamente aprovecha Object Transfer Service (OTS) — diseñado para transferencias de objetos gryes vía canal L2CAP orientado a conexión.
Opciones de Despliegue de Gateways
Existen dos enfoques principales en el mercado:
Gateways ESL dedicados: Dispositivos BLE construidos específicamente (frecuentemente con Ethernet/Wi-Fi/PoE) diseñados específicamente para gestión PAwR
En Accent Systems, ayudamos a los clientes a evaluar ambos enfoques según sus requisitos específicos de despliegue. Contacta con nuestro equipo de desarrollo IoT para consultoría de arquitectura.
Requisitos de Hardware: Tags y Gateways
ESL Tag Hardware Components
A typical ESL tag incorporates:
BLE SoC with 5.4/PAwR support: nRF52/nRF53 series, Silicon Labs BG24, Infineon CYW20829, STM32WB0, etc.
Memory: Flash/RAM sufficient for image buffers y firmware
E-paper display + driver: 2.13″, 2.9″, or larger; B/W or tri-color
Power supply: Coin cell (CR2032/CR2450) or primary battery
RF: Antenna (PCB/ceramic/chip) + matching network
Component Cost Indicators
Component
Typical Options
Indicative Cost
BLE SoC (PAwR)
nRF52840, BG24, CYW20829
~€2–4 @ 1,000u
E-paper (2.13″)
Pervasive, Good Display
~$5–8 @ 1u
Battery
CR2450/CR2032
~$0.50–0.80 @ 1,000u
Note: The display y SoC typically dominate the tag BOM. Total cost-to-market includes certifications, production testing, tooling, y packaging.
98.51% connectivity When using multi-radio/multi-channel gateway diversity. Average latency ~590 ms y >5 years battery life for e-tags under designed conditions.
Seguridad: Encrypted Advertising Data (EAD)
Classic BLE security relies on pairing/bonding, link-layer encryption, y GATT attribute permissions. The key innovation for ESL is Encrypted Advertising Data (EAD), introduced in Bluetooth 5.4.
How EAD Works
EAD provides a styardized mechanism to encrypt y authenticate data in advertising packets:
Session key + IV sharing: Via GATT characteristic readable only over a secure link
Ryomizer + MIC: For confidentiality y integrity verification
Nuevos Requisitos de Ciberseguridad UE (Agosto 2025)
The Delegated Regulation (EU) 2022/30 activates essential requirements under RED Article 3(3)(d)(e)(f) for certain categories of radio equipment — including internet-connectable devices, devices processing personal data, or facilitating value transfers.
For ESL systems: An ESL tag may not be «internet-connected» itself, but the complete system (AP + backend) may fall under cybersecurity obligations depending on functionality (personal data, location, remote access). Estándars such as EN 18031 series are being harmonized to demonstrate conformity.
Estados Unidos: Certificación FCC
In the USA, RF devices must complete Equipment Authorization before commercialization. The Federal Communications Commission describes the pathways y requirements, including certification via TCB (Telecommunications Certificación Body) when applicable.
Requirement
Description
FCC Parte 15 Subparte C
Intentional radiators operating in 2.4 GHz ISM by
FCC ID
Required identifier on product label y documentation
TCB Certificación
Third-party certification body for faster approval
Other Key Markets
Canadá (ISED)
Innovation, Science y Economic Development Canadá. RSS-247 for 2.4 GHz devices. Often aligned with FCC requirements.
Japón (MIC/TELEC)
Ministry of Internal Affairs y Communications. Technical styards for 2.4 GHz require specific testing.
Australia/NZ (RCM)
Regulatory Compliance Mark. ACMA requirements for radiocommunications equipment.
Reino Unido (Reino UnidoCA)
Post-Brexit Reino Unido Conformity Assessed mark. Similar to CE but with Reino Unido Notified Bodies.
Cualificación Bluetooth SIG
Independent of regional regulatory approvals (CE, FCC, etc.), Bluetooth is a licensed technology. The Bluetooth SIG qualification process must be completed before bringing products to market — this ensures interoperability y validates license/trademark conditions.
Vías de cualificación:
Listado de Producto Final: If using a pre-qualified module with no Bluetooth stack changes
Component Qualification: For new Bluetooth implementations or modifications
Declaration ID (DID): Required identifier for all qualified products
Note: Using the Bluetooth® wordmark or logo without proper qualification is a trademark violation.
Plazos y Costes de Certificación
Certificación
Duración Típica
Notas
CE/RED (Europe)
2–4 semanas
Auto-declaración posible con estándares armonizados
FCC (USA)
3–6 semanas
Vía TCB para procesamiento más rápido
Bluetooth SIG
1–3 semanas
Listado de Producto Final if using qualified module
Pruebas de pre-cumplimiento
1–2 semanas
Recomendado para evitar re-pruebas
Pro tip: Budget for potential re-testing. RF issues discovered during certification can add 2–4 semanas y significant cost. Pruebas de pre-cumplimiento during DVT phase significantly reduces this risk.
Nuestro equipo de prototipado y certificación guía a los clientes a través del proceso completo de certificación — desde pre-compliance testing through final approval for European, US, y global markets.
Hoja de Ruta de Desarrollo: EVT a Producción en Masa
Hardware development typically progresses through EVT → DVT → PVT stages before mass production:
Fase
Duración
Actividades Clave
Requirements
1–2 semanas
Define use cases, system architecture
EVT
6–8 semanas
Hardware prototype, bring-up, initial firmware
DVT
2–3 semanas
RF testing, power profiling, pre-compliance
Certificación
4–6 semanas
ETSI/RED, Bluetooth SIG qualification
PVT
4–6 semanas
Pilot production, process validation
Total time desde concept to production typically ranges desde 4–12 meses.
At Accent Systems, we hyle the complete product development cycle for BLE ESL devices: electronic design, firmware development, mechanical engineering, regulatory certification, y mass production — all desde our facility in Barcelona.
While BLE PAwR is excellent for most ESL applications, consider alternatives when:
Existing proprietary infrastructure: If you have significant investment in a proprietary ESL system with acceptable performance
Extreme real-time requirements: If you need sub-100ms guaranteed update latency for all tags simultaneously
Very sparse deployments: For scenarios with only a hyful of labels
Mesh networking requirements: If your deployment benefits desde multi-hop routing (Zigbee/Thread)
Markets without BLE 5.4 support: Ensure your target silicon supports Bluetooth 5.4 with PAwR
Preguntas Frecuentes About BLE PAwR ESL
What's the difference between PAwR y regular BLE?
PAwR (Bluetooth 5.4) enables bidirectional, connectionless communication in 1-to-many topologies by organizing slots de respuesta within scheduled subeventos. Regular BLE typically uses 1:1 connections or unidirectional advertising broadcasts.
Does PAWR mean "Personal Area Wireless"?
No. In the Bluetooth context, the correct term is PAwR = Periodic Advertising with Responses. «PAWR» in capitals sometimes refers to the Platforms for Advanced Wireless Research programa de la NSF.
What does the Bluetooth ESL Profile/Service provide?
It defines an interoperable framework (roles, procedures, y data structures) for controlling y updating ESL over Bluetooth, reducing dependence on proprietary protocols y enabling multi-vendor systems.
How is data protected in PAwR if it's "advertising"?
Bluetooth 5.4 introduced Encrypted Advertising Data (EAD) to encrypt y authenticate advertising payload. Session keys are shared via GATT over a secure link.
¿Qué estándares ETSI aplican a productos BLE en Europa?
EN 300 328 (2.4 GHz spectrum) y EN 301 489-1/-17 (EMC) are the most common harmonized styards for 2.4 GHz radio products under the RED directive.
How long does battery last in an ESL tag?
With e-paper displays y PAwR’s efficient scheduling, battery life of 5+ years is achievable with typical retail update frequencies. Actual lifespan depends on display refresh rate, RF retries, y battery capacity.
¿Necesito certificación Bluetooth SIG además de CE/FCC?
Yes. Bluetooth is a licensed technology. CE/FCC address regulatory compliance (spectrum, EMC), while Bluetooth SIG qualification is required separately to use the Bluetooth trademark.
The Bottom Line
For companies developing Etiquetas Electrónicas de Estantería for global retail markets, BLE + PAwR + ESL Profile representa el camino más convincente a seguir — offering the best combination of open styards, massive scalability, ultra-low power, security, y a clear regulatory path.
For companies building connected products: BLE PAwR should be your default consideration for any new ESL product.
Accent Talks con Boehringer Ingelheim#AccentTalks es una serie de entrevistas donde nuestros clientes y socios hablan sobre su experiencia trabajando... read more
(function() {
var data = {"agents":[{"name":"Eli","phone":"+34653105809","time_start":"08:00","time_end":"17:00","days":[1,2,3,4,5]},{"name":"Albert","phone":"+34662925746","time_start":"08:00","time_end":"17:00","days":[1,2,3,4,5]}],"distribution":"random","message":"Hello! I would like to ask for more info."};
var button = document.getElementById('accent-whatsapp-button');
var agentsPanel = document.getElementById('accent-whatsapp-agents');
if (!button) return;
button.addEventListener('click', function(e) {
e.preventDefault();
if (data.distribution === 'all' && data.agents.length > 1 && agentsPanel) {
// Mostrar panel d'agents
agentsPanel.classList.toggle('active');
} else {
// Obrir WhatsApp directament amb un agent
var agent = data.distribution === 'random'
? data.agents[Math.floor(Math.random() * data.agents.length)]
: data.agents[0];
var phone = agent.phone.replace(/[^0-9]/g, '');
var message = encodeURIComponent(data.message);
var url = 'https://wa.me/' + phone + '?text=' + message;
window.open(url, '_blank');
}
});
// Tancar panel si es fa clic fora
document.addEventListener('click', function(e) {
if (agentsPanel && !e.target.closest('#accent-whatsapp')) {
agentsPanel.classList.remove('active');
}
});
})();
var yith_wcwl_l10n = {"ajax_url":"/wp-admin/admin-ajax.php","redirect_to_cart":"no","yith_wcwl_button_position":"after_add_to_cart","multi_wishlist":"","hide_add_button":"1","enable_ajax_loading":"","ajax_loader_url":"https://accent-systems.com/wp-content/plugins/yith-woocommerce-wishlist/assets/images/ajax-loader-alt.svg","remove_from_wishlist_after_add_to_cart":"1","is_wishlist_responsive":"1","time_to_close_prettyphoto":"3000","fragments_index_glue":".","reload_on_found_variation":"1","mobile_media_query":"768","labels":{"cookie_disabled":"Lo siento, pero esta caracter\u00edstica solo est\u00e1 disponible si las cookies de tu navegador est\u00e1n activadas.","added_to_cart_message":"\u003Cdiv class=\"woocommerce-notices-wrapper\"\u003E\u003Cdiv class=\"woocommerce-message\" role=\"alert\"\u003EProducto a\u00f1adido al carrito con \u00e9xito\u003C/div\u003E\u003C/div\u003E"},"actions":{"add_to_wishlist_action":"add_to_wishlist","remove_from_wishlist_action":"remove_from_wishlist","reload_wishlist_and_adding_elem_action":"reload_wishlist_and_adding_elem","load_mobile_action":"load_mobile","delete_item_action":"delete_item","save_title_action":"save_title","save_privacy_action":"save_privacy","load_fragments":"load_fragments"},"nonce":{"add_to_wishlist_nonce":"564d365bc6","remove_from_wishlist_nonce":"cbb64e5919","reload_wishlist_and_adding_elem_nonce":"c43ec3a988","load_mobile_nonce":"d06b4a385f","delete_item_nonce":"b48906e7f3","save_title_nonce":"1f00c1c9ef","save_privacy_nonce":"1fbeab8fe6","load_fragments_nonce":"9902b41819"},"redirect_after_ask_estimate":"","ask_estimate_redirect_url":"https://accent-systems.com","enable_notices":""};
//# sourceURL=jquery-yith-wcwl-js-extra
( function( domain, translations ) {
var localeData = translations.locale_data[ domain ] || translations.locale_data.messages;
localeData[""].domain = domain;
wp.i18n.setLocaleData( localeData, domain );
} )( "contact-form-7", {"translation-revision-date":"2025-12-01 15:45:40+0000","generator":"GlotPress\/4.0.3","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n != 1;","lang":"es"},"This contact form is placed in the wrong place.":["Este formulario de contacto est\u00e1 situado en el lugar incorrecto."],"Error:":["Error:"]}},"comment":{"reference":"includes\/js\/index.js"}} );
//# sourceURL=contact-form-7-js-translations
var elementorFrontendConfig = {"environmentMode":{"edit":false,"wpPreview":false,"isScriptDebug":false},"i18n":{"shareOnFacebook":"Compartir en Facebook","shareOnTwitter":"Compartir en Twitter","pinIt":"Pinear","download":"Descargar","downloadImage":"Descargar imagen","fullscreen":"Pantalla completa","zoom":"Zoom","share":"Compartir","playVideo":"Reproducir v\u00eddeo","previous":"Anterior","next":"Siguiente","close":"Cerrar","a11yCarouselPrevSlideMessage":"Diapositiva anterior","a11yCarouselNextSlideMessage":"Diapositiva siguiente","a11yCarouselFirstSlideMessage":"Esta es la primera diapositiva","a11yCarouselLastSlideMessage":"Esta es la \u00faltima diapositiva","a11yCarouselPaginationBulletMessage":"Ir a la diapositiva"},"is_rtl":false,"breakpoints":{"xs":0,"sm":480,"md":768,"lg":991,"xl":1440,"xxl":1600},"responsive":{"breakpoints":{"mobile":{"label":"M\u00f3vil vertical","value":767,"default_value":767,"direction":"max","is_enabled":true},"mobile_extra":{"label":"M\u00f3vil horizontal","value":880,"default_value":880,"direction":"max","is_enabled":false},"tablet":{"label":"Tableta vertical","value":991,"default_value":1024,"direction":"max","is_enabled":true},"tablet_extra":{"label":"Tableta horizontal","value":1200,"default_value":1200,"direction":"max","is_enabled":false},"laptop":{"label":"Port\u00e1til","value":1366,"default_value":1366,"direction":"max","is_enabled":false},"widescreen":{"label":"Pantalla grande","value":2400,"default_value":2400,"direction":"min","is_enabled":false}},"hasCustomBreakpoints":true},"version":"3.35.8","is_static":false,"experimentalFeatures":{"e_font_icon_svg":true,"additional_custom_breakpoints":true,"container":true,"e_optimized_markup":true,"e_pro_free_trial_popup":true,"nested-elements":true,"home_screen":true,"global_classes_should_enforce_capabilities":true,"e_variables":true,"cloud-library":true,"e_opt_in_v4_page":true,"e_components":true,"e_interactions":true,"e_editor_one":true,"import-export-customization":true},"urls":{"assets":"https:\/\/accent-systems.com\/wp-content\/plugins\/elementor\/assets\/","ajaxurl":"https:\/\/accent-systems.com\/wp-admin\/admin-ajax.php","uploadUrl":"https:\/\/accent-systems.com\/wp-content\/uploads"},"nonces":{"floatingButtonsClickTracking":"b95768ebc1"},"swiperClass":"swiper","settings":{"page":[],"editorPreferences":[]},"kit":{"viewport_tablet":"991","active_breakpoints":["viewport_mobile","viewport_tablet"],"global_image_lightbox":"yes","lightbox_enable_counter":"yes","lightbox_enable_fullscreen":"yes","lightbox_enable_zoom":"yes","lightbox_enable_share":"yes","lightbox_title_src":"title","lightbox_description_src":"description"},"post":{"id":222953,"title":"BLE%20PAwR%20ESL%3A%20Gu%C3%ADa%20de%20Desarrollo%20de%20Etiquetas%20Electr%C3%B3nicas%20%7C%20Accent%20Systems","excerpt":"","featuredImage":"https:\/\/accent-systems.com\/wp-content\/uploads\/2026\/03\/BLE_PAwR_ESL_TAG-1024x609.jpg"}};
//# sourceURL=elementor-frontend-js-before
var js_porto_vars = {"rtl":"","theme_url":"https://accent-systems.com/wp-content/themes/porto-child","ajax_url":"https://accent-systems.com/wp-admin/admin-ajax.php?lang=es","cart_url":"https://accent-systems.com/cart/","change_logo":"","container_width":"1140","grid_gutter_width":"30","show_sticky_header":"1","show_sticky_header_tablet":"1","show_sticky_header_mobile":"","ajax_loader_url":"//accent-systems.com/wp-content/themes/porto/images/ajax-loader@2x.gif","category_ajax":"","compare_popup":"1","compare_popup_title":"","prdctfltr_ajax":"","slider_loop":"1","slider_autoplay":"","slider_autoheight":"","slider_speed":"5000","slider_nav":"","slider_nav_hover":"1","slider_margin":"","slider_dots":"1","slider_animatein":"","slider_animateout":"","product_thumbs_count":"4","product_zoom":"1","product_zoom_mobile":"1","product_image_popup":"1","zoom_type":"inner","zoom_scroll":"1","zoom_lens_size":"200","zoom_lens_shape":"square","zoom_contain_lens":"1","zoom_lens_border":"1","zoom_border_color":"#888888","zoom_border":"0","screen_xl":"1170","screen_xxl":"1420","mfp_counter":"%curr% of %total%","mfp_img_error":"\u003Ca href=\"%url%\"\u003EThe image\u003C/a\u003E could not be loaded.","mfp_ajax_error":"\u003Ca href=\"%url%\"\u003EThe content\u003C/a\u003E could not be loaded.","popup_close":"Close","popup_prev":"Previous","popup_next":"Next","request_error":"The requested content cannot be loaded.\u003Cbr/\u003EPlease try again later.","loader_text":"Loading...","submenu_back":"Back","porto_nonce":"1fadc6f3f0","use_skeleton_screen":[],"user_edit_pages":"","quick_access":"Click to edit this element.","goto_type":"Go To the Type Builder.","legacy_mode":"","home_url":"https://accent-systems.com/es/inicio/","is_multisite":"","current_blog_id":"1","texts":{"search_history_title":"Search History","search_history_clear_all":"Clear"},"add_to_label":"A\u00f1adir al carrito","login_popup_waiting_msg":"Please wait...","wc_placeholder_img":"https://accent-systems.com/wp-content/uploads/woocommerce-placeholder-300x300.png","shop_filter_layout":null,"func_url":"https://accent-systems.com/wp-content/plugins/porto-functionality/","active_lang":"es"};
//# sourceURL=porto-theme-js-extra
(function() {
var data = {"lang":"es","siteUrl":"https:\/\/accent-systems.com","translations":{"Home":"Inicio","Devices":"Dispositivos","Shop":"Tienda","Products":"Productos","Categories":"Categor\u00edas"},"pageSlugMap":{"devices":"dispositivos","development-services":"servicios-desarrollo","about-us":"sobre-nosotros","contact-us":"contacto","projects":"proyectos","team":"equipo","blog":"blog-es"}};
function fixBreadcrumbs() {
// Buscar tots els breadcrumbs (NOMÉS breadcrumbs, no language switchers)
var breadcrumbs = document.querySelectorAll('.breadcrumbs-wrap, .breadcrumb, .woocommerce-breadcrumb, [class*="breadcrumb"]');
breadcrumbs.forEach(function(bc) {
// Saltar si és un language switcher
if (bc.closest('.asw-wrap') || bc.closest('.asw-lang') || bc.classList.contains('asw-wrap') || bc.classList.contains('asw-lang')) {
return;
}
var links = bc.querySelectorAll('a');
links.forEach(function(link) {
// Saltar links dins de language switchers
if (link.closest('.asw-wrap') || link.closest('.asw-lang')) {
return;
}
var text = link.textContent.trim();
var href = link.getAttribute('href');
// Traduir text
if (data.translations[text]) {
link.textContent = data.translations[text];
}
// Arreglar URLs
if (href) {
var newHref = href;
// Arreglar URL del home (va directament al site sense /es/)
if (href === data.siteUrl || href === data.siteUrl + '/') {
newHref = data.siteUrl + '/' + data.lang + '/';
}
// Arreglar pàgines amb slug EN
else {
for (var enSlug in data.pageSlugMap) {
var esSlug = data.pageSlugMap[enSlug];
var pattern = new RegExp('^' + data.siteUrl.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '/' + enSlug + '/?$');
if (pattern.test(href)) {
newHref = data.siteUrl + '/' + data.lang + '/' + esSlug + '/';
break;
}
}
}
// Arreglar categories sense prefix d'idioma
if (href.indexOf('/product-category/') !== -1 && href.indexOf('/' + data.lang + '/') === -1) {
newHref = href.replace('/product-category/', '/' + data.lang + '/product-category/');
}
if (newHref !== href) {
link.setAttribute('href', newHref);
}
}
});
});
}
// Executar quan el DOM estigui llest
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', fixBreadcrumbs);
} else {
fixBreadcrumbs();
}
// També executar després d'un petit delay per assegurar que tot s'ha carregat
setTimeout(fixBreadcrumbs, 100);
})();