import{i as a,j as l,c,o as d,f as t,e as p,t as u,u as i,d as m,a2 as _}from"./vue.esm-bundler-DZdE0M9V.js";import{u as h}from"./useElementPlusComponents-B_fOPHjO.js";import f from"./Search-8SXMDSEU.js";import{t as r}from"./Translator-Bios5QX5.js";import"./index-D0R5Hqh1.js";import"./index-I6zcAgit.js";import"./index-Db9JpFxU.js";import"./dayjs.min-2rai63wT.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Arr-MwYQQ3qa.js";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"},v={selected:"",disabled:""},x={class:"fct-searchbar-block-search-wrap w-full"},k={class:"fct-input-group"},A={class:"input-icon"},S=["placeholder"],j={__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}),(N,B)=>(d(),c("div",g,[t("div",y,[n.value?(d(),c("div",b,[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)])])])]))}},C=e=>{const o=e.dataset.settings,s=_(j,{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];C(o)})});
