import{h as a,i as l,e as c,o as d,d as e,b as p,t as u,u as i,a as m,a2 as _}from"./chunks/vue.esm-bundler.js?ver=1.3.23";import{u as h}from"./chunks/useElementPlusComponents.js?ver=1.3.23";import f from"./chunks/Search.js?ver=1.3.23";import{t as r}from"./chunks/Translator.js?ver=1.3.23";import"./chunks/index.js?ver=1.3.23";import"./chunks/index2.js?ver=1.3.23";import"./chunks/index4.js?ver=1.3.23";import"./chunks/dayjs.min.js?ver=1.3.23";import"./chunks/index3.js?ver=1.3.23";import"./chunks/_plugin-vue_export-helper.js?ver=1.3.23";import"./chunks/Arr.js?ver=1.3.23";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(t){const s=a(JSON.parse(t.settings)),n=a(!1);return l(()=>{n.value=s.value.category_mode}),(j,B)=>(d(),c("div",g,[e("div",b,[n.value?(d(),c("div",y,[e("select",w,[e("option",v,u(i(r)("Category")),1)])])):p("",!0),e("div",x,[e("div",k,[e("div",A,[m(f,{class:"w-4 h-4"})]),e("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=t=>{const o=t.dataset.settings,s=_(C,{settings:o});h(s),s.mixin({methods:{$t:r}}).mount(t)};jQuery(document).ready(function(){elementor.hooks.addAction("panel/open_editor/widget/fluent_cart_product_search_bar",function(t,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(t){const o=jQuery(t[0]).find("[data-fluent-cart-product-search-bar-app]")[0];N(o)})});
