Files
wyczarujprezent.pl/modules/inpostizi/views/js/admin/support.js
Jacek Pyziak 4066f6fa31 Add InPost Pay integration to admin templates
- Created a new template for the cart rule form with custom label, switch, and choice widgets.
- Implemented the InPost Pay block in the order details template for displaying delivery method, APM, and VAT invoice request.
- Added legacy support for the order details template to maintain compatibility with older PrestaShop versions.
2025-09-14 14:38:09 +02:00

3 lines
895 B
JavaScript

(()=>{(()=>{"use strict";var h={};(()=>{const o=e=>{document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()},n={debugSwitch:'[name="advanced_configuration[debugEnabled]"]',form:'[name="advanced_configuration"]'},s=e=>{typeof window.showSuccessMessage=="function"?window.showSuccessMessage(e.message):alert(e.message)},a=e=>{typeof window.showErrorMessage=="function"?window.showErrorMessage(e.message):alert(e.message)},c=e=>{const t=document.querySelector(n.form),d=t.getAttribute("action"),r=new FormData(t);fetch(d,{headers:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8","x-requested-with":"XMLHttpRequest"},body:new URLSearchParams(r).toString(),method:"POST"}).then(i=>i.json()).then(s).catch(a)};o(()=>{document.querySelectorAll(n.debugSwitch).forEach(t=>{t.addEventListener("change",c)})})})()})();})();
//# sourceMappingURL=support.js.map