(t=>{"use strict";t.on("tb_edit_component",(t=>{const e=t.slug;if(!["post","portfolio","products"].includes(e))return void("row"===e&&(t.data.setting.options=[...t.data.setting.options,{type:"group",label:"tf_ssrl",display:"accordion",options:[{id:"row_scroll_direction",type:"select",label:"tf_ssrld",options:{"":"",module_row_section:"vertical",module_row_slide:"hrztal"},control:!1},{id:"row_title",type:"text",label:"tf_ssrlt",control:!1,class:"large"}]}]));let o=0;t.data.setting.options.forEach(((t,l)=>{if(t.id==="layout_"+e){o=l+1;const _=themifyBuilder.theme_url+"/images/layout-icons/";t.options.push({value:"auto_tiles",label:"tf_tiles",img:_+"auto-tiles.png"},{value:"list-large-image",label:"tf_ll",img:_+"list-large-image.png"}),t.binding={not_empty:{show:[e+"_content_layout","disable_masonry","post_gutter","portfolio_gutter","post_filter"]},"list-post":{hide:["masonry","disable_masonry","post_gutter","portfolio_gutter"],show:[e+"_content_layout"]},auto_tiles:{hide:["disable_masonry","post_gutter","portfolio_gutter","ajax_filter"],show:[e+"_content_layout"]},"list-large-image":{hide:[e+"_content_layout","disable_masonry","post_gutter"],show:["post_filter"]},"list-thumb-image":{hide:[e+"_content_layout","disable_masonry","post_gutter"],show:"masonry"},"grid2-thumb":{hide:[e+"_content_layout"],show:["post_gutter","disable_masonry","post_filter"]},fullwidth:{hide:["disable_masonry","portfolio_gutter"],show:e+"_content_layout"}}}}));const l=[{id:e+"_content_layout",type:"select",label:"tf_conlay",options:{default:"def",no:"tf_stack",overlay:"overlay",polaroid:"tf_pl",boxed:"box",flip:"flip"}},{id:"disable_masonry",type:"select",label:"tf_mas",options:{default:"def",yes:"y",no:"no"},wrap_class:"tb_group_element_grid6 tb_group_element_grid5 tb_group_element_grid4 tb_group_element_grid3 tb_group_element_grid2 tb_group_element_list-large-image"}];"products"!==e&&l.push({id:e+"_gutter",type:"select",label:"tf_gut",options:{default:"def",gutter:"n","no-gutter":"tf_ngut"}}),t.data.setting.options=[...t.data.setting.options.slice(0,o),...l,...t.data.setting.options.slice(o)]}))})(Themify);