{"error":false,"modal":"\n\n\n<div class=\"modal fade js-email-alert-modal\"  tabindex=\"-1\" aria-hidden=\"true\">\n\n  <div class=\"modal-dialog modal-dialog-centered modal-xl\">\n    \n        <div class=\"modal-content\">\n\n          \n            <div class=\"modal-header modal-header--center\">\n              \n                <h5 class=\"modal-title\">\n  Powiadom o dost\u0119pno\u015bci\n<\/h5>\n              \n              \n                <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n                  <span aria-hidden=\"true\" class=\"icon icon-close\"><\/span>\n                <\/button>\n              \n            <\/div>\n          \n\n          \n            <div class=\"modal-body pt-0\">\n              \n      \n      <form\n        class=\"js-mailalert-form mailalert-form \"\n        action=\"\/\/www.salonyhoff.pl\/module\/waynet_emailalerts\/actions\/?process=add\"\n      >\n        \n          \n            <p class=\"text-center font-size-xs mb-3\">\n              \n  Produkt jest tymczasowo niedost\u0119pny.\n  Podaj sw\u00f3j adres e-mail, a wy\u015blemy Ci powiadomienie, gdy ponownie pojawi si\u0119 w sklepie.\n\n            <\/p>\n          \n\n          \n            <div class=\"js-mailalert-alerts d-none\"><\/div>\n          \n\n          <input type=\"hidden\" name=\"id_product\" value=\"24810\">\n          <input type=\"hidden\" name=\"id_product_attribute\" value=\"0\">\n\n          <div class=\"form-group mailalert-form__form-group\">\n            \n  <label for=\"email-alert-email\" class=\"form-label\">\n    Adres e-mail*\n  <\/label>\n  <input\n    class=\"form-control mailalert-form__input\"\n    name=\"customer_email\"\n    id=\"email-alert-email\"\n        type=\"email\"\n    required\n  \/>\n\n  <label for=\"email-alert-phone\" class=\"form-label mt-3\">\n    Numer telefonu\n  <\/label>\n  <input\n    class=\"form-control mailalert-form__input\"\n    name=\"customer_phone\"\n    id=\"email-alert-phone\"\n    type=\"number\"\n  \/>\n\n          <\/div>\n\n          \n                <div class=\"gdpr_consent_wrapper mt-2\"><div id=\"gdpr_consent\" class=\"gdpr_module_79 form-group\">\n    <span class=\"custom-control custom-checkbox\">\n        <input id=\"psgdpr_consent_checkbox_79\" name=\"psgdpr_consent_checkbox\" type=\"checkbox\" value=\"1\" class=\"custom-control-input psgdpr_consent_checkboxes_79\">\n        <label class=\"custom-control-label\" for=\"psgdpr_consent_checkbox_79\">\n            Akceptuj\u0119 og\u00f3lne warunki u\u017cytkowania i polityk\u0119 prywatno\u015bci        <\/label>\n    <\/span>\n<\/div>\n\n<script type=\"text\/javascript\">\n    var psgdpr_front_controller = \"https:\/\/www.salonyhoff.pl\/module\/psgdpr\/FrontAjaxGdpr\/\";\n    psgdpr_front_controller = psgdpr_front_controller.replace(\/\\amp;\/g,'');\n    var psgdpr_id_customer = \"0\";\n    var psgdpr_customer_token = \"da39a3ee5e6b4b0d3255bfef95601890afd80709\";\n    var psgdpr_id_guest = \"3284674\";\n    var psgdpr_guest_token = \"e38048a603f0bcbbaf973e59a17e1d1d61ab13b7\";\n\n    document.addEventListener('DOMContentLoaded', function() {\n        let psgdpr_id_module = \"79\";\n        let parentForm = $('.gdpr_module_' + psgdpr_id_module).closest('form');\n\n        let toggleFormActive = function() {\n            let parentForm = $('.gdpr_module_' + psgdpr_id_module).closest('form');\n            let checkbox = $('#psgdpr_consent_checkbox_' + psgdpr_id_module);\n            let element = $('.gdpr_module_' + psgdpr_id_module);\n            let iLoopLimit = 0;\n\n            \/\/ by default forms submit will be disabled, only will enable if agreement checkbox is checked\n            if (element.prop('checked') != true) {\n                element.closest('form').find('[type=\"submit\"]').attr('disabled', 'disabled');\n            }\n            $(document).on(\"change\" ,'.psgdpr_consent_checkboxes_' + psgdpr_id_module, function() {\n                if ($(this).prop('checked') == true) {\n                    $(this).closest('form').find('[type=\"submit\"]').removeAttr('disabled');\n                } else {\n                    $(this).closest('form').find('[type=\"submit\"]').attr('disabled', 'disabled');\n                }\n\n            });\n        }\n\n        \/\/ Triggered on page loading\n        toggleFormActive();\n\n        $(document).on('submit', parentForm, function(event) {\n            $.ajax({\n                data: 'POST',\n                url: psgdpr_front_controller,\n                data: {\n                    ajax: true,\n                    action: 'AddLog',\n                    id_customer: psgdpr_id_customer,\n                    customer_token: psgdpr_customer_token,\n                    id_guest: psgdpr_id_guest,\n                    guest_token: psgdpr_guest_token,\n                    id_module: psgdpr_id_module,\n                },\n                error: function (err) {\n                    console.log(err);\n                }\n            });\n        });\n    });\n<\/script>\n\n<\/div>\n      \n  <div class=\"mt-2 text-center\">\n    <button type=\"submit\" class=\"js-mailalert-add mt-3 btn btn-primary\">\n      Powiadom o dost\u0119pno\u015bci\n      <span class=\"icon icon-arrow-right\"><\/span>\n    <\/button>\n  <\/div>\n\n        \n      <\/form>\n    \n  \n            <\/div>\n          \n\n          \n\n        <\/div>\n    \n  <\/div>\n\n<\/div>\n\n\n\n"}