(t=>{"use strict";t.ModuleAcfRepeater=class extends t.Module{constructor(t){super(t)}static getOptions(){return[{id:"builder_content",type:"tbp_advanched_layout",control:!1},{type:"message",comment:"tbp_acfh"},{id:"key",type:"select",label:"tbp_fname",wrap_class:"tb_disable_dc",dataset:"tbp_acf_key"},{type:"group",options:[{label:"tbp_cntxt",id:"acf_ctx",type:"select",options:{"":"tbp_cpst",term:"tbp_trm",user:"tbp_cuser",author:"tbp_athorcpst",option:"tbp_opt",custom:"cus"},binding:{empty:{hide:"acf_ctx_c"},not_empty:{hide:"acf_ctx_c"},custom:{show:"acf_ctx_c"}}},{label:"tbp_cuscntxt",id:"acf_ctx_c",type:"text",help:"tbp_cuscntxth"}]},{id:"display",type:"radio",label:"dispas",options:[{value:"grid",name:"grid"},{value:"slider",name:"slider"}],option_js:!0},{type:"group",options:[{id:"slider",type:"slider"}],wrap_class:"tb_group_element_slider"},{id:"grid_layout",type:"layout",label:"lay",mode:"sprite",control:{classSelector:".builder-posts-wrap"},post_grid:!0,wrap_class:"tb_group_element_grid"},{type:"custom_css_id",custom_css:"css"}]}static default(){return{builder_content:[{cols:[{grid_class:"col-full",modules:[{mod_name:"text",mod_settings:{content_text:themifyBuilder.i18n.label.tbp_dblclckedit}}]}]}]}}static getAnimation(){return!1}static builderSave(t){let e={display:"grid",grid_layout:"list-post"},s=t.builder_content,l=t.display||"grid";for(let s in e)t[s]===e[s]&&delete t[s];delete t.items_per_slide,t.key&&"slider"!==l||(delete t.grid_layout,t.key||(delete t.display,delete t.acf_ctx,delete t.builder_content,l=s=null)),this.clearSliderOptions(t,"slider"!==l),s&&("string"==typeof s&&(s=JSON.parse(s)),this.cleanBuilderType(s,"row")),super.builderSave(t)}}})(tb_app);