!function(e){"use strict";e(document).ready(function(){e(document.body).one("updated_checkout",function(){let e=JSON.parse(lpacDPSOrderTypeConfig).selectorType;"buttons"===e?function(){let e=sessionStorage.getItem("chwazi_preselected_fulfillment_type");if(!e)return;let t=document.querySelector(`.dps-order-type-btn-${e}`);if(!t)return console.error("Order type switching button not found in DOM.");JSON.parse(lpacDPSOrderTypeConfig).default!==e&&t.click()}():"switch"===e?function(){let e=sessionStorage.getItem("chwazi_preselected_fulfillment_type");if(!e)return;let t=document.getElementById("lpac-dps-order-type-switch");if(!t)return console.error("Order type switcher not found in DOM.");JSON.parse(lpacDPSOrderTypeConfig).default!==e&&t.click()}():console.error("Invalid selector type: "+e)})})}(jQuery);