import{h as a,i as l,e as c,o as d,d as t,b as p,t as u,u as i,a as m,a2 as _}from"./chunks/vue.esm-bundler.js?ver=1.3.17";import{u as h}from"./chunks/useElementPlusComponents.js?ver=1.3.17";import f from"./chunks/Search.js?ver=1.3.17";import{t as r}from"./chunks/Translator.js?ver=1.3.17";import"./chunks/index.js?ver=1.3.17";import"./chunks/index2.js?ver=1.3.17";import"./chunks/index3.js?ver=1.3.17";import"./chunks/dayjs.min.js?ver=1.3.17";import"./chunks/_plugin-vue_export-helper.js?ver=1.3.17";import"./chunks/Arr.js?ver=1.3.17";const g={class:"fluent-cart-searchbar-block-editor"},b={class:"flex"},y={key:0,class:"mr-4"},w={name:"termId",class:"border border-gray-300 rounded-md text-lg bg-white h-full"},v={selected:"",disabled:""},x={class:"fct-searchbar-block-search-wrap w-full"},k={class:"fct-input-group"},A={class:"input-icon"},S=["placeholder"],C={__name:"App",props:{settings:{type:String,default:""}},setup(e){const s=a(JSON.parse(e.settings)),n=a(!1);return l(()=>{n.value=s.value.category_mode}),(j,B)=>(d(),c("div",g,[t("div",b,[n.value?(d(),c("div",y,[t("select",w,[t("option",v,u(i(r)("Category")),1)])])):p("",!0),t("div",x,[t("div",k,[t("div",A,[m(f,{class:"w-4 h-4"})]),t("input",{class:"fct-input text-sm w-full bg-white !shadow-none rounded border border-solid border-gray-outline py-2 px-3.5 m-0 leading-[1.43] placeholder:text-system-light placeholder:text-[13px] focus:border-primary-500",type:"text",placeholder:i(r)("Search Products...")},null,8,S)])])])]))}},N=e=>{const o=e.dataset.settings,s=_(C,{settings:o});h(s),s.mixin({methods:{$t:r}}).mount(e)};jQuery(document).ready(function(){elementor.hooks.addAction("panel/open_editor/widget/fluent_cart_product_search_bar",function(e,o,s){o.get("settings")})});jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/fluent_cart_product_search_bar.default",function(e){const o=jQuery(e[0]).find("[data-fluent-cart-product-search-bar-app]")[0];N(o)})});
