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/chunks/ModuleSettings.js +1 -1 1.3.28 → 1.7.0 View file →
@@ -1 +1 @@
1 -import{A as S,B as A,h as V,i as w,r as h,e as d,b as u,o as n,d as t,a as v,t as i,w as m,f as p,u as r,c as q,F as M,g as P,x as F}from"./vue.esm-bundler.js?ver=1.3.28";import{A as N,t as f}from"./Translator.js?ver=1.3.28";import{B as U}from"./Badge.js?ver=1.3.28";import{_ as j}from"./Animation.js?ver=1.3.28";import"./Arr.js?ver=1.3.28";import"./DynamicIcon.js?ver=1.3.28";import"./Str.js?ver=1.3.28";import"./_plugin-vue_export-helper.js?ver=1.3.28";import"./TransitionAccordion.js?ver=1.3.28";const T={key:0,class:"fct-content-card-list-item py-4 px-6"},z={class:"fct-content-card-list-head"},O={class:"flex items-start gap-2 flex-row"},D={class:"mb-0"},E={key:0,class:"fct-content-card-list-content"},I={class:"mt-3 space-y-2 fct-module-settings-option-wrap"},K={key:0,class:"text-xs block"},L={class:"fct-content-card-list-action"},R={class:"pr-4"},ee={__name:"ModuleSettings",props:S({name:{type:String,required:!0},field:{type:Object},fieldKey:{type:String},value:{required:!0},variant:{type:String},nesting:{type:Boolean,default:!1},statePath:{type:String},form:{type:Object,required:!0},callback:{type:Function,required:!0},label:{type:String},attribute:{required:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const e=A(a,"modelValue"),_=N.get("app_config.isProActive"),l=V(!1),b=V(!1),x=(g,o)=>{g==="enable_advanced_inventory"&&!_&&o==="yes"&&(e[g]="no")};return w(()=>{l.value=e.value.active,b.value=!0}),(g,o)=>{const k=h("el-button"),C=h("el-checkbox"),B=h("el-switch");return b.value?(n(),d("div",T,[t("div",z,[t("div",O,[t("h4",D,i(a.field.title),1),v(U,{size:"small",type:l.value==="yes"?"active":"inactive","hide-icon":!0},{default:m(()=>[p(i(l.value==="yes"?r(f)("Active"):r(f)("Inactive")),1)]),_:1},8,["type"])])]),a.field.description?(n(),d("div",E,[t("p",null,i(a.field.description),1),a.field.settings?(n(),q(j,{key:0,visible:l.value==="yes",accordion:""},{default:m(()=>[t("div",I,[(n(!0),d(M,null,P(a.field.settings,(c,s)=>(n(),d("div",{key:s,class:"fct-module-settings-option"},[v(C,{modelValue:e.value[s],"onUpdate:modelValue":y=>e.value[s]=y,"true-value":"yes","false-value":"no",disabled:s==="enable_advanced_inventory"&&!r(_),onChange:y=>x(s,y)},{default:m(()=>[p(i(c.label)+" ",1),s==="enable_advanced_inventory"&&!r(_)?(n(),d("span",K,[p(i(r(f)("This feature is only available in FluentCart Pro."))+" ",1),v(k,{size:"small",tag:"a",link:"",href:"https://fluentcart.com/discount-deal",target:"_blank",rel:"noopener noreferrer"},{default:m(()=>[p(i(r(f)("Upgrade to Pro")),1)]),_:1})])):u("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]))),128))])]),_:1},8,["visible"])):u("",!0)])):u("",!0),t("div",L,[t("div",R,[v(B,{"active-value":"yes","inactive-value":"no",modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=c=>l.value=c),onChange:o[1]||(o[1]=c=>{(!e.value||typeof e.value!="object")&&(e.value={}),F(()=>{e.value.active=c})})},null,8,["modelValue"])]),u("",!0)])])):u("",!0)}}};export{ee as default};
1 +import{L as S,M as A,f as V,g as M,y as h,j as d,l as u,v as s,A as t,G as m,B as r,x as p,E as v,u as a,k as q,F as w,C as P,n as U}from"./vue.esm-bundler.js?ver=1.7.0";import{A as j,t as f}from"./Translator.js?ver=1.7.0";import{u as F}from"./common.js?ver=1.7.0";import{B as N}from"./Badge.js?ver=1.7.0";import{_ as T}from"./Animation.js?ver=1.7.0";import"./Arr.js?ver=1.7.0";import"./dayjs.min.js?ver=1.7.0";import"./Str.js?ver=1.7.0";import"./timezone.js?ver=1.7.0";import"./weekOfYear.js?ver=1.7.0";import"./Utils.js?ver=1.7.0";import"./CurrencyFormatter.js?ver=1.7.0";import"./index.js?ver=1.7.0";import"./Model.js?ver=1.7.0";import"./Rest.js?ver=1.7.0";import"./vue-router.js?ver=1.7.0";import"./Url.js?ver=1.7.0";import"./Notify.js?ver=1.7.0";import"./DynamicIcon.js?ver=1.7.0";import"./preload-helper.js?ver=1.7.0";import"./_plugin-vue_export-helper.js?ver=1.7.0";import"./index3.js?ver=1.7.0";import"./IconButton.js?ver=1.7.0";import"./TransitionAccordion.js?ver=1.7.0";const z={key:0,class:"fct-content-card-list-item py-4 px-6"},E={class:"fct-content-card-list-head"},L={class:"flex items-start gap-2 flex-row"},O={class:"mb-0"},D={key:0,class:"fct-content-card-list-content"},G={class:"mt-3 space-y-2 fct-module-settings-option-wrap"},I={key:0,class:"text-xs block"},K={class:"fct-content-card-list-action"},R={class:"pr-4"},_e={__name:"ModuleSettings",props:S({name:{type:String,required:!0},field:{type:Object},fieldKey:{type:String},value:{required:!0},variant:{type:String},nesting:{type:Boolean,default:!1},statePath:{type:String},form:{type:Object,required:!0},callback:{type:Function,required:!0},label:{type:String},attribute:{required:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const e=A(o,"modelValue"),_=j.get("app_config.isProActive"),i=V(!1),b=V(!1),x=(g,l)=>{g==="enable_advanced_inventory"&&!_&&l==="yes"&&(e[g]="no")};return M(()=>{i.value=e.value.active,b.value=!0}),(g,l)=>{const k=h("el-button"),C=h("el-checkbox"),B=h("el-switch");return b.value?(s(),d("div",z,[t("div",E,[t("div",L,[t("h4",O,r(o.field.title),1),m(N,{size:"small",type:i.value==="yes"?"active":"inactive","hide-icon":!0},{default:p(()=>[v(r(i.value==="yes"?a(f)("Active"):a(f)("Inactive")),1)]),_:1},8,["type"])])]),o.field.description?(s(),d("div",D,[t("p",null,r(o.field.description),1),o.field.settings?(s(),q(T,{key:0,visible:i.value==="yes",accordion:""},{default:p(()=>[t("div",G,[(s(!0),d(w,null,P(o.field.settings,(c,n)=>(s(),d("div",{key:n,class:"fct-module-settings-option"},[m(C,{modelValue:e.value[n],"onUpdate:modelValue":y=>e.value[n]=y,"true-value":"yes","false-value":"no",disabled:n==="enable_advanced_inventory"&&!a(_),onChange:y=>x(n,y)},{default:p(()=>[v(r(c.label)+" ",1),n==="enable_advanced_inventory"&&!a(_)?(s(),d("span",I,[v(r(a(f)("This feature is only available in FluentCart Pro."))+" ",1),m(k,{size:"small",tag:"a",link:"",href:a(F)("feature_lock_advanced_inventory"),target:"_blank",rel:"noopener noreferrer"},{default:p(()=>[v(r(a(f)("Upgrade to Pro")),1)]),_:1},8,["href"])])):u("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onChange"])]))),128))])]),_:1},8,["visible"])):u("",!0)])):u("",!0),t("div",K,[t("div",R,[m(B,{"active-value":"yes","inactive-value":"no",modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=c=>i.value=c),onChange:l[1]||(l[1]=c=>{(!e.value||typeof e.value!="object")&&(e.value={}),U(()=>{e.value.active=c})})},null,8,["modelValue"])]),u("",!0)])])):u("",!0)}}};export{_e as default};