(()=>{/*!
 * Copyright 2024-2026 Simply.IN Sp. z o.o.
 *
 * NOTICE OF LICENSE
 * Licensed under the EUPL-1.2 or later.
 * You may not use this work except in compliance with the Licence.
 * Copy of the Licence is available at: https://joinup.ec.europa.eu/software/page/eupl
 * It is bundled with this package in the file LICENSE.txt
 *
 * @author    Simply.IN Sp. z o.o.
 * @copyright 2024-2026 Simply.IN Sp. z o.o.
 * @license   https://joinup.ec.europa.eu/software/page/eupl
 */var t=window.jQuery;t(document).ready(function(){t("#SIMPLYIN_DPD_CARRIER_ID, #SIMPLYIN_DHL_CARRIER_ID, #SIMPLYIN_FEDEX_CARRIER_ID, #SIMPLYIN_INPOST_CARRIER_ID, #SIMPLYIN_ORLEN_CARRIER_ID, #SIMPLYIN_UPS_CARRIER_ID, #SIMPLYIN_DEFAULT_CARRIER_ID").select2({width:"300px"});let e=t("#SIMPLYIN_SECRET_KEY");t(".simplyin-toggle").on("click",function(){let i=e.attr("type")==="password";e.attr("type",i?"text":"password"),t(this).find(".material-icons").text(i?"visibility_off":"visibility")}),t(".simplyin-color").each(function(){let i=t(this).find(".simplyin-color-swatch"),I=t(this).find(".simplyin-color-hex");!i.length||!I.length||(i.on("input change",function(){I.val(i.val().toUpperCase())}),I.on("input change",function(){let n=I.val().trim();/^#?[0-9a-fA-F]{6}$/.test(n)&&(n.charAt(0)!=="#"&&(n="#"+n),i.val(n))}))})});})();
