var ACF_Countdown_Editor=function(){function e(){window.ACFCountdownPresetsData&&this.initEvents()}var t=e.prototype;return t.initEvents=function(){document.addEventListener("change",function(e){this.onClick(e)}.bind(this))},t.onClick=function(e){var t=e.target.closest(".acf-countdown-preset-selector");if(t){var i=t.querySelector('input[name="jform[fieldparams][preset]"]:checked');i&&(this.reset(),this.apply(i.value))}},t.reset=function(){var e={"[border][style]":{type:"list",value:"none"},"[border][width]":{type:"number",value:""},"[border][color]":{type:"text",value:""},separator:{type:"nrtoggle",value:!1},double_zeroes_format:{type:"nrtoggle",value:!0},days:{type:"nrtoggle",value:!0},days_label:{type:"text",value:Joomla.Text._("NR_DAYS")},hours:{type:"nrtoggle",value:!0},hours_label:{type:"text",value:Joomla.Text._("NR_HOURS")},minutes:{type:"nrtoggle",value:!0},minutes_label:{type:"text",value:Joomla.Text._("NR_MINUTES")},seconds:{type:"nrtoggle",value:!0},seconds_label:{type:"text",value:Joomla.Text._("NR_SECONDS")},item_size:{responsive:!0,type:"number",value:""},gap:{responsive:!0,type:"number",value:{desktop:10,tablet:"",mobile:""}},digits_gap:{responsive:!0,type:"number",value:{desktop:0,tablet:"",mobile:""}},digits_wrapper_custom_width:{type:"nrtoggle",value:!1},digits_wrapper_min_width:{type:"number",value:""},digits_custom_width:{type:"nrtoggle",value:!1},digits_min_width:{type:"number",value:""},unit_label_margin_top:{type:"number",value:5},style:{type:"list",value:"none"},item_background_color:{type:"text",value:""},digits_wrapper_background_color:{type:"text",value:""},digit_background_color:{type:"text",value:""},digits_wrapper_padding:{responsive:!0,dimensions:!0,type:"number",value:""},digits_padding:{responsive:!0,dimensions:!0,type:"number",value:""},digits_wrapper_border_radius:{responsive:!0,dimensions:!0,border_radius:!0,type:"number",value:""},digits_border_radius:{responsive:!0,dimensions:!0,border_radius:!0,type:"number",value:""},item_padding:{responsive:!0,dimensions:!0,type:"number",value:""},item_border_radius:{responsive:!0,dimensions:!0,border_radius:!0,type:"number",value:""},digit_text_color:{type:"text",value:""},digits_font_weight:{type:"list",value:400},unit_label_text_color:{type:"text",value:""},label_font_weight:{type:"list",value:400}};new TF_Fields_Values_Applier(e).applyData()},t.apply=function(e){new TF_Fields_Values_Applier(window.ACFCountdownPresetsData,e).applyItemData()},e}();document.addEventListener("DOMContentLoaded",function(e){new ACF_Countdown_Editor});

