import{f as a,y as l,g as c,j as i,C as e,l as p,x as u,u as d,G as m,U as _}from"./chunks/vue.esm-bundler.js?ver=1.7.1";import{u as h}from"./chunks/useElementPlusComponents.js?ver=1.7.1";import f from"./chunks/Search.js?ver=1.7.1";import{t as r}from"./chunks/Translator.js?ver=1.7.1";import"./chunks/index.js?ver=1.7.1";import"./chunks/index2.js?ver=1.7.1";import"./chunks/index4.js?ver=1.7.1";import"./chunks/dayjs.min.js?ver=1.7.1";import"./chunks/weekOfYear.js?ver=1.7.1";import"./chunks/index3.js?ver=1.7.1";import"./chunks/_plugin-vue_export-helper.js?ver=1.7.1";import"./chunks/Arr.js?ver=1.7.1";const g={class:"fluent-cart-searchbar-block-editor"},y={class:"flex"},b={key:0,class:"mr-4"},w={name:"termId",class:"border border-gray-300 rounded-md text-lg bg-white h-full"},x={selected:"",disabled:""},v={class:"fct-searchbar-block-search-wrap w-full"},k={class:"fct-input-group"},A={class:"input-icon"},C=["placeholder"],S={__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}),(N,B)=>(i(),c("div",g,[e("div",y,[n.value?(i(),c("div",b,[e("select",w,[e("option",x,u(d(r)("Category")),1)])])):p("",!0),e("div",v,[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:d(r)("Search Products...")},null,8,C)])])])]))}},j=t=>{const o=t.dataset.settings,s=_(S,{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];j(o)})});