PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.7.0
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.7.0
1.7.0 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 All 50 releases
← All changes | assets/Start5.js +1 -1 1.3.22 → 1.7.0 View file →
@@ -1 +1 @@
1 -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.22";import{u as h}from"./chunks/useElementPlusComponents.js?ver=1.3.22";import f from"./chunks/Search.js?ver=1.3.22";import{t as r}from"./chunks/Translator.js?ver=1.3.22";import"./chunks/index.js?ver=1.3.22";import"./chunks/index2.js?ver=1.3.22";import"./chunks/index4.js?ver=1.3.22";import"./chunks/dayjs.min.js?ver=1.3.22";import"./chunks/index3.js?ver=1.3.22";import"./chunks/_plugin-vue_export-helper.js?ver=1.3.22";import"./chunks/Arr.js?ver=1.3.22";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)})});
1 +import{f as m,y as V,j as g,v as _,A as u,k,B as f,u as y,G as C,E as h,x as A,U as S}from"./chunks/vue.esm-bundler.js?ver=1.7.0";import{u as w}from"./chunks/useElementPlusComponents.js?ver=1.7.0";import{t as v}from"./chunks/Translator.js?ver=1.7.0";import{_ as x}from"./chunks/AddProductItemModal.js?ver=1.7.0";import{_ as B}from"./chunks/_plugin-vue_export-helper.js?ver=1.7.0";import"./chunks/index.js?ver=1.7.0";import"./chunks/index2.js?ver=1.7.0";import"./chunks/index4.js?ver=1.7.0";import"./chunks/dayjs.min.js?ver=1.7.0";import"./chunks/weekOfYear.js?ver=1.7.0";import"./chunks/index3.js?ver=1.7.0";import"./chunks/Arr.js?ver=1.7.0";import"./chunks/DynamicIcon.js?ver=1.7.0";import"./chunks/preload-helper.js?ver=1.7.0";import"./chunks/CaretRight.js?ver=1.7.0";import"./chunks/Str.js?ver=1.7.0";import"./chunks/productService.js?ver=1.7.0";import"./chunks/CurrencyFormatter.js?ver=1.7.0";import"./chunks/timezone.js?ver=1.7.0";import"./chunks/Model.js?ver=1.7.0";import"./chunks/Rest.js?ver=1.7.0";import"./chunks/Asset.js?ver=1.7.0";import"./chunks/Url.js?ver=1.7.0";import"./chunks/vue-router.js?ver=1.7.0";const E={class:"fluent-cart-add-to-cart-app"},b={class:"fluent-cart-add-to-cart-app-title"},I={key:0,class:"fluent-cart-add-to-cart-app-content"},j=["title"],F={class:"fluent-cart-add-to-cart-app-product-id"},N=["innerHTML"],Q={__name:"App",props:{variantId:{type:String,default:""},variantTitle:{type:String,default:""},variantPrice:{type:String,default:""}},setup(e){const a=e;m(0);const s=m(a.variantId),d=m(a.variantTitle),l=m(a.variantPrice),T=()=>{s.value="",d.value="",l.value="",setTimeout(()=>{var o,i,r,n;const c=(o=elementor.getPanelView())==null?void 0:o.getCurrentPageView(),t=c==null?void 0:c.model;t&&((i=t.setSetting)==null||i.call(t,"variant_id",""),(n=(r=elementor==null?void 0:elementor.saver)==null?void 0:r.setFlagEditorChange)==null||n.call(r,!0))},100)},P=c=>{s.value=c,setTimeout(()=>{var i,r,n,p;const t=(i=elementor.getPanelView())==null?void 0:i.getCurrentPageView(),o=t==null?void 0:t.model;o&&((r=o.setSetting)==null||r.call(o,"variant_id",c.toString()),(p=(n=elementor==null?void 0:elementor.saver)==null?void 0:n.setFlagEditorChange)==null||p.call(n,!0))},100)};return(c,t)=>{const o=V("el-button");return _(),g("div",null,[u("div",E,[u("h3",b,f(y(v)("Add To Cart Button")),1),s.value?(_(),g("div",I,[u("div",{class:"fluent-cart-add-to-cart-app-product-title",title:d.value},[u("span",F,"#"+f(s.value),1),h(f(d.value),1)],8,j),u("div",{class:"fluent-cart-add-to-cart-app-product-price",innerHTML:l.value},null,8,N),C(o,{class:"fluent-cart-add-to-cart-app-reset-button",type:"primary",onClick:T},{default:A(()=>[h(f(y(v)("Reset")),1)]),_:1})])):(_(),k(x,{key:1,scopes:["cartable"],onOnVariationSelectionUpdated:t[0]||(t[0]=(i,r)=>{P(i[0]),r.forEach(n=>{for(const p of n.variants)if(p.id===i[0])return d.value=p.variation_title,l.value=p.formatted_total,!1})})}))])])}}},D=B(Q,[["__scopeId","data-v-197abdf2"]]),H=e=>{const a=e.dataset.variantId,s=e.dataset.variantTitle,d=e.dataset.variantPrice,l=S(D,{variantId:a,variantTitle:s,variantPrice:d});w(l),l.mixin({methods:{$t:v}}).mount(e)};jQuery(document).ready(function(){elementor.hooks.addAction("panel/open_editor/widget/fluent_cart_add_to_cart",function(e,a,s){a.get("settings")})});jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/fluent_cart_add_to_cart.default",function(e){const a=jQuery(e[0]).find("[data-fluent-cart-add-to-cart-app]")[0];H(a)})});