var ACF_FAQ_Editor=function(){function e(){window.ACFFAQPresetsData&&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-faq-template-selector");if(t){var n=t.querySelector('input[name="jform[fieldparams][template]"]:checked');n&&(this.reset(),this.apply(n.value))}},t.reset=function(){new TF_Fields_Values_Applier({separator:{type:"nrtoggle",value:!0},keep_one_question_open:{type:"nrtoggle",value:!0},columns:{type:"number",value:""},item_gap:{responsive:!0,type:"number",value:{desktop:20,tablet:"",mobile:""}},column_gap:{responsive:!0,type:"number",value:{desktop:20,tablet:"",mobile:""}},background_color:{type:"text",value:""},item_padding:{responsive:!0,dimensions:!0,type:"number",value:""},item_border_radius:{responsive:!0,dimensions:!0,border_radius:!0,type:"number",value:""},question_text_color:{type:"text",value:""},question_font_size:{responsive:!0,type:"number",value:{desktop:16,tablet:"",mobile:""}},answer_text_color:{type:"text",value:""},answer_font_size:{responsive:!0,type:"number",value:{desktop:16,tablet:"",mobile:""}},icon_position:{type:"radio",value:"right"},icon:{type:"radio",value:"arrow"},initial_state:{type:"list",value:"first-open"}}).applyData()},t.apply=function(e){new TF_Fields_Values_Applier(window.ACFFAQPresetsData,e).applyItemData()},e}();document.addEventListener("DOMContentLoaded",function(e){new ACF_FAQ_Editor});

