(window.undefinedWebpackJsonpCallback=window.undefinedWebpackJsonpCallback||[]).push([[2],{1:function(e,t,r){e.exports=r("Xpiy")},Xpiy:function(e,t,r){"use strict";r.r(t),r("55Il"),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),jQuery(function(e){jQuery(document).ready(function(e){var t,r;e("#sfcf-form-icon-btn").click(function(r){r.preventDefault(),t||(t=wp.media.frames.file_frame=wp.media({title:"Select media",button:{text:"Select media"},multiple:!1})).on("select",function(){var r=t.state().get("selection").first().toJSON();e("#sfcf-form-icon").val(r.url),e("#sfcf-form-icon-img").attr("src",r.url)}),t.open()}),e("#sfcf-form-icon-clear").click(function(t){t.preventDefault(),e("#sfcf-form-icon").val(""),e("#sfcf-form-icon-img").attr("src","")}),e("#sfcf-success-icon-btn").click(function(t){t.preventDefault(),r||(r=wp.media.frames.file_frame=wp.media({title:"Select media",button:{text:"Select media"},multiple:!1})).on("select",function(){var t=r.state().get("selection").first().toJSON();e("#sfcf-success-icon").val(t.url),e("#sfcf-success-icon-img").attr("src",t.url)}),r.open()}),e("#sfcf-success-icon-clear").click(function(t){t.preventDefault(),e("#sfcf-success-icon").val(""),e("#sfcf-success-icon-img").attr("src","")}),e(".sfcf-color").wpColorPicker()})}),setTimeout(function(){var e=document.querySelector("[data-color-inputs]");if(e){var t=e.querySelectorAll("[data-color-input]"),r=document.querySelector("[data-corners]"),c=document.documentElement;if(t&&(function(e,t){t.forEach(function(t){var r=t.querySelector(".wp-color-picker"),c=t.querySelector(".wp-color-result");r&&(e.style.setProperty("--".concat(r.name),r.value),new MutationObserver(function(t,c){t.forEach(function(t){var c=r.value;e.style.setProperty("--".concat(r.name),c)})}).observe(c,{attributes:!0}))})}(c,t),r)){var s,o=r.querySelectorAll("input"),f=document.querySelector("[data-sfcf]");s=f,o.forEach(function(e){"sfcf-corners-square-true"==e.id&&e.checked&&(s.style.setProperty("--sfcf-radius-huge","0px"),s.style.setProperty("--sfcf-radius-big","0px"),s.style.setProperty("--sfcf-radius-medium","0px"),s.style.setProperty("--sfcf-radius-small","0px"),console.log("zereeo")),e.addEventListener("change",function(){"sfcf-corners-square-true"==e.id&&"true"==e.value?(s.style.setProperty("--sfcf-radius-huge","0px"),s.style.setProperty("--sfcf-radius-big","0px"),s.style.setProperty("--sfcf-radius-medium","0px"),s.style.setProperty("--sfcf-radius-small","0px")):(s.style.setProperty("--sfcf-radius-huge","32px"),s.style.setProperty("--sfcf-radius-big","20px"),s.style.setProperty("--sfcf-radius-medium","16px"),s.style.setProperty("--sfcf-radius-small","6px"))})})}}},1e3)}},[[1,0,1]]]);
