tg-controls_cli 0.0.93 → 0.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/myLib.common.js +14 -6
- package/dist/myLib.common.js.map +1 -1
- package/dist/myLib.umd.js +14 -6
- package/dist/myLib.umd.js.map +1 -1
- package/dist/myLib.umd.min.js +1 -1
- package/dist/myLib.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/myLib.umd.min.js
CHANGED
|
@@ -18,5 +18,5 @@ e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t
|
|
|
18
18
|
* vee-validate v3.4.15
|
|
19
19
|
* (c) 2023 Abdelrahman Awad
|
|
20
20
|
* @license MIT
|
|
21
|
-
*/function Ft(e){return null===e||void 0===e}function Rt(e){return Array.isArray(e)&&0===e.length}function Lt(e){return"function"===typeof e}function zt(e,t){return-1!==e.indexOf(t)}function Bt(e){return Lt(Array.from)?Array.from(e):Yt(e)}function Yt(e){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}var Vt=function(e,t){return Array.isArray(e)?e.every((function(e){return Vt(e,t)})):Bt(t).some((function(t){return t==e}))},Ut={validate:Vt},qt=function(e,t){return!Vt(e,t)},Ht={validate:qt},Wt=function(e,t){var n=new RegExp(".("+t.join("|")+")$","i");return Array.isArray(e)?e.every((function(e){return n.test(e.name)})):n.test(e.name)},Gt={validate:Wt},Kt=function(e){var t=/\.(jpg|svg|jpeg|png|bmp|gif|webp)$/i;return Array.isArray(e)?e.every((function(e){return t.test(e.name)})):t.test(e.name)},Zt={validate:Kt},Jt=function(e){return Array.isArray(e)?e.every((function(e){return/^-?[0-9]+$/.test(String(e))})):/^-?[0-9]+$/.test(String(e))},Xt={validate:Jt},Qt=function(e,t){var n=t.other;return e===n},en=[{name:"other"}],tn={validate:Qt,params:en},nn=function(e,t){var n=t.other;return e!==n},rn=[{name:"other"}],on={validate:nn,params:rn},an=function(e,t){var n=t.length;return!Ft(e)&&("string"===typeof e&&(e=Bt(e)),"number"===typeof e&&(e=String(e)),e.length||(e=Bt(e)),e.length===n)},sn=[{name:"length",cast:function(e){return Number(e)}}],ln={validate:an,params:sn},un=function(e,t){var n=t.length;return Ft(e)?n>=0:Array.isArray(e)?e.every((function(e){return un(e,{length:n})})):String(e).length<=n},dn=[{name:"length",cast:function(e){return Number(e)}}],cn={validate:un,params:dn},fn=function(e,t){var n=t.max;return!Ft(e)&&""!==e&&(Array.isArray(e)?e.length>0&&e.every((function(e){return fn(e,{max:n})})):Number(e)<=n)},hn=[{name:"max",cast:function(e){return Number(e)}}],pn={validate:fn,params:hn},vn=function(e,t){var n=new RegExp(t.join("|").replace("*",".+")+"$","i");return Array.isArray(e)?e.every((function(e){return n.test(e.type)})):n.test(e.type)},mn={validate:vn},gn=function(e,t){var n=t.length;return!Ft(e)&&(Array.isArray(e)?e.every((function(e){return gn(e,{length:n})})):String(e).length>=n)},bn=[{name:"length",cast:function(e){return Number(e)}}],yn={validate:gn,params:bn},_n=function(e,t){var n=t.min;return!Ft(e)&&""!==e&&(Array.isArray(e)?e.length>0&&e.every((function(e){return _n(e,{min:n})})):Number(e)>=n)},$n=[{name:"min",cast:function(e){return Number(e)}}],xn={validate:_n,params:$n},wn=/^[٠١٢٣٤٥٦٧٨٩]+$/,On=/^[0-9]+$/,kn=function(e){var t=function(e){var t=String(e);return On.test(t)||wn.test(t)};return Array.isArray(e)?e.every(t):t(e)},In={validate:kn},Sn=function(e,t){var n=t.regex;return Array.isArray(e)?e.every((function(e){return Sn(e,{regex:n})})):n.test(String(e))},Cn=[{name:"regex",cast:function(e){return"string"===typeof e?new RegExp(e):e}}],En={validate:Sn,params:Cn},Dn=function(e,t){var n=(void 0===t?{allowFalse:!0}:t).allowFalse,r={valid:!1,required:!0};return Ft(e)||Rt(e)?r:!1!==e||n?(r.valid=!!String(e).trim().length,r):r},jn=!0,Pn=[{name:"allowFalse",default:!0}],An={validate:Dn,params:Pn,computesRequired:jn},Tn=function(e){return Rt(e)||zt([!1,null,void 0],e)||!String(e).trim().length},Mn=function(e,t){var n,r=t.target,i=t.values;return i&&i.length?(Array.isArray(i)||"string"!==typeof i||(i=[i]),n=i.some((function(e){return e==String(r).trim()}))):n=!Tn(r),n?{valid:!Tn(e),required:n}:{valid:!0,required:n}},Nn=[{name:"target",isTarget:!0},{name:"values"}],Fn=!0,Rn={validate:Mn,params:Nn,computesRequired:Fn},Ln=function(e,t){var n=t.size;if(isNaN(n))return!1;var r=1024*n;if(!Array.isArray(e))return e.size<=r;for(var i=0;i<e.length;i++)if(e[i].size>r)return!1;return!0},zn=[{name:"size",cast:function(e){return Number(e)}}],Bn={validate:Ln,params:zn},Yn=function(e,t){var n=t||{},r=n.decimals,i=void 0===r?0:r,o=n.separator,a=void 0===o?"dot":o,s="comma"===a?",?":"\\.?",l=0===i?"\\d*":"(\\d{"+i+"})?",u=new RegExp("^-?\\d+"+s+l+"$");return Array.isArray(e)?e.every((function(e){return u.test(String(e))})):u.test(String(e))},Vn=[{name:"decimals",default:0},{name:"separator",default:"dot"}],Un={validate:Yn,params:Vn};function qn(e){return r("bb28")(`./${e}.json`).then(t=>{pe(e,t)})}function Hn(e,t){let n={},r=qn(null!==t&&void 0!==t?t:"en");return e&&("string"===typeof e||"undefined"===typeof e.length?n=e:"undefined"!==typeof e.length&&e.forEach((function(e){Object.keys(e).forEach(t=>{"errormessage"!=t.toLowerCase()&&(n[t]=e[t]),"errormessage"!=t.toLowerCase()&&"undefined"!=typeof e.errorMessage&&"function"!==typeof e[t]&&(r.messages[t]=e.errorMessage),"function"!==typeof e[t]&&"object"!==typeof e[t]||L(t,e[t])})}))),n}Object.keys(i).forEach(e=>{L(e,i[e])}),L("password",{params:["target"],validate(e,{target:t}){return e===t},message:"Password confirmation does not match"}),L("url",{validate(e){return!!e&&/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(e)},message:"The {_field_} field must be a valid URL"}),L("colorCode",{validate(e){return!!e&&/^#[0-9A-F]{6}$/.test(e)},message:"The {_field_} field must be a valid color"}),L("ZipCode",{validate(e){return!!e&&/(^\d{6}$)|(^\d{5}-\d{4}$)/.test(e)},message:"The {_field_} field is not valid"});var Wn=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{disabled:e.fieldInfo.disabled,type:"text",placeholder:e.fieldInfo.placeholder},domProps:{value:e.fieldInfo.value},on:{change:function(t){return e.onChange(t)},blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)},keypress:e.onlyForCurrency,input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}}),n[0]?t("span",{staticClass:"invalid-feedback",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},Gn=[],Kn={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data:function(){return{value:""}},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onlyForCurrency(e){let t=e.keyCode?e.keyCode:e.which;!(t<48||t>57)||46===t&&-1==this.fieldInfo.value.indexOf(".")||e.preventDefault(),null!=this.fieldInfo.value&&this.fieldInfo.value.indexOf(".")>-1&&this.fieldInfo.value.split(".")[1].length>1&&e.preventDefault()},onChange:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},onBlur:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onBlur&&this.fieldInfo.config.onBlur(e,this.fieldInfo)},onKeyUp:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onKeyUp&&this.fieldInfo.config.onKeyUp(e,this.fieldInfo)}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},Zn=Kn;function Jn(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var d=u.render;u.render=function(e,t){return l.call(t),d(e,t)}}else{var c=u.beforeCreate;u.beforeCreate=c?[].concat(c,l):[l]}return{exports:e,options:u}}var Xn=Jn(Zn,Wn,Gn,!1,null,null,null),Qn=Xn.exports,er=(r("ab43"),function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("div",{staticClass:"w-100 d-flex"},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{name:e.fieldInfo.name,disabled:e.fieldInfo.disabled},on:{change:[function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.fieldInfo,"value",t.target.multiple?n:n[0])},function(t){return e.onChange(t)}]}},[t("option",{attrs:{value:"",selected:""}},[e._v("Select "+e._s(e.fieldInfo.label))]),e._l(e.fieldInfo.config.OptionsForBind,(function(n,r){return e.fieldInfo.config.OptionsForBind.length>0?t("option",{key:r,domProps:{value:n.value,selected:e.fieldInfo.value==n.value}},[e._v(e._s(n.name)+" ")]):e._e()}))],2),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e()]),n[0]?t("span",{staticClass:"invalid-feedback d-block"},[e._v(e._s(n[0]))]):e._e()]}}])})}),tr=[],nr={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},watch:{fieldInfo:{handler:function(){this.GetSelectOptions()},deep:!0}},data(){return{optionList:[],dependentOptions:[]}},created:async function(){await this.GetSelectOptions()},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onChange(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo),this.$emit("UpdateKeyValue",1)},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"},GetSelectOptions:async function(){var e=this;e.fieldInfo.hasOwnProperty("config")&&0==e.fieldInfo.config.hasOwnProperty("OptionsForBind")&&(e.fieldInfo.config.OptionsForBind=[]),e.fieldInfo.hasOwnProperty("picklist_options")&&"Lookup"!=e.fieldInfo.picklist_options?e.fieldInfo.config.OptionsForBind=e.MakeArray(e.fieldInfo.picklist_options):e.fieldInfo.hasOwnProperty("select_options")&&e.fieldInfo.select_options.length>0?e.fieldInfo.config.OptionsForBind=e.MakeNormalArray(e.fieldInfo.select_options):e.fieldInfo.hasOwnProperty("config")&&e.fieldInfo.config.hasOwnProperty("OptionsForBind")&&e.fieldInfo.config.OptionsForBind.length>0?e.fieldInfo.config.OptionsForBind=e.fieldInfo.config.OptionsForBind:e.fieldInfo.hasOwnProperty("config")&&e.fieldInfo.config.hasOwnProperty("option_request_url")&&e.fieldInfo.config.option_request_url.length>0&&await d.a.get(e.fieldInfo.config.option_request_url,{headers:{Authorization:"Bearer "+e.fieldInfo.config.token}}).then(t=>{console.log(t.data),t.data&&t.data.hasOwnProperty("DATA")?e.fieldInfo.config.OptionsForBind=t.data.DATA:e.fieldInfo.config.OptionsForBind=t.data}).catch(e=>{console.log("Error on binding slect option in tg-control- "+e)}),this.$forceUpdate()},MakeNormalArray:function(e){if(e)try{return JSON.parse(e)}catch(t){return e}else e=[]},MakeArray:function(e,t){var n=[],r=String(e).split(",");if("radio"==t||"checkbox"==t){if(r.length>0)for(let o of r)if(o.split("|").length>1){var i={name:o.split("|")[0].trim(),value:o.split("|")[1].trim()};n.push(i)}else{i={name:o.trim(),value:o.trim()};n.push(i)}}else if(r.length>0)for(let o of r){i={name:o.trim(),value:o.trim()};n.push(i)}return n},RenderOptions(){var e=[],t=this;this.optionList.length>0?Array.isArray(this.optionList)?(this.optionList.forEach((t,n)=>{e.push({value:t.value,name:t.hasOwnProperty("text")?t.text:t.name})}),t.fieldInfo.hasOwnProperty("select_options")||(t.fieldInfo.select_options=[]),t.fieldInfo.select_options=e):console.log(" type of the optionList is not array - "+typeof this.optionList):console.log(" No select options found for the - "+t.fieldInfo.name)}}},rr=nr,ir=Jn(rr,er,tr,!1,null,null,null),or=ir.exports,ar=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{disabled:e.fieldInfo.disabled,name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("span",{class:{"d-flex ":!0,"is-invalid":n[0]}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{name:e.fieldInfo.name,id:e.fieldInfo.name,type:"text",placeholder:e.fieldInfo.placeholder,disabled:e.fieldInfo.disabled},domProps:{value:e.fieldInfo.value},on:{change:function(t){return e.onChange(t)},blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)},input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}}),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e()]),n[0]?t("span",{staticClass:"invalid-feedback",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},sr=[],lr={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data:function(){return{}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onChange:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},onBlur:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onBlur&&this.fieldInfo.config.onBlur(e,this.fieldInfo)},onKeyUp:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onKeyUp&&this.fieldInfo.config.onKeyUp(e,this.fieldInfo)},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"}}},ur=lr,dr=Jn(ur,ar,sr,!1,null,null,null),cr=dr.exports,fr=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{disabled:e.fieldInfo.disabled,name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("span",{class:{"d-flex ":!0,"is-invalid":n[0]}},["checkbox"===(e.showPassword?"text":"password")?t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{name:e.fieldInfo.name,id:e.fieldInfo.name,placeholder:e.fieldInfo.placeholder,disabled:e.fieldInfo.disabled,type:"checkbox"},domProps:{checked:Array.isArray(e.fieldInfo.value)?e._i(e.fieldInfo.value,null)>-1:e.fieldInfo.value},on:{change:[function(t){var n=e.fieldInfo.value,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&e.$set(e.fieldInfo,"value",n.concat([o])):a>-1&&e.$set(e.fieldInfo,"value",n.slice(0,a).concat(n.slice(a+1)))}else e.$set(e.fieldInfo,"value",i)},function(t){return e.onChange(t)}],blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)}}}):"radio"===(e.showPassword?"text":"password")?t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{name:e.fieldInfo.name,id:e.fieldInfo.name,placeholder:e.fieldInfo.placeholder,disabled:e.fieldInfo.disabled,type:"radio"},domProps:{checked:e._q(e.fieldInfo.value,null)},on:{change:[function(t){return e.$set(e.fieldInfo,"value",null)},function(t){return e.onChange(t)}],blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{name:e.fieldInfo.name,id:e.fieldInfo.name,placeholder:e.fieldInfo.placeholder,disabled:e.fieldInfo.disabled,type:e.showPassword?"text":"password"},domProps:{value:e.fieldInfo.value},on:{change:function(t){return e.onChange(t)},blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)},input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}}),t("i",{class:{fa:!0,"fa-eye":!e.showPassword,"fa-eye-slash":e.showPassword},staticStyle:{position:"absolute",right:"0",padding:"8px",color:"#b7b7b7"},on:{click:e.showPasswordFunc}}),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e()]),n[0]?t("span",{staticClass:"invalid-feedback",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},hr=[],pr={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data:function(){return{showPassword:!1}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onChange:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},onBlur:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onBlur&&this.fieldInfo.config.onBlur(e,this.fieldInfo)},onKeyUp:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onKeyUp&&this.fieldInfo.config.onKeyUp(e,this.fieldInfo)},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"},showPasswordFunc:function(){this.showPassword=!this.showPassword}}},vr=pr,mr=Jn(vr,fr,hr,!1,null,null,null),gr=mr.exports,br=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{disabled:e.fieldInfo.disabled,name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("DatePicker",{class:{"input-group w-100":!0,"is-invalid":n[0]},staticStyle:{"flex-wrap":"nowrap"},attrs:{locale:e.lang,is24hr:e.is24hr,mode:e.mode,disabled:e.fieldInfo.disabled,masks:e.masks,popover:e.popover,"min-date":e.getMinmumDate(e.fieldInfo),"max-date":e.getMaxDate(e.fieldInfo),"minute-increment":e.minuteIncrement},on:{input:function(t){return e.onChange(t,e.inputValue)}},scopedSlots:e._u([{key:"default",fn:function({inputValue:r,inputEvents:i,togglePopover:o,hidePopover:a}){return[t("input",e._g({ref:"inputDatePicker"+e.fieldInfo.name,class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{autocomplete:"off",disabled:e.fieldInfo.disabled,name:e.fieldInfo.name,placeholder:e.fieldInfo.label},domProps:{value:r},on:{blur:function(t){return e.onBlur(t,r,a)}}},i)),t("div",{staticClass:"input-group-append"},[t("span",{staticClass:"input-group-text",on:{click:function(t){e.fieldInfo.disabled||o()},blur:function(t){return e.onBlur(t,e.field,a)},change:function(t){return e.onChange(t)}}},[t("i",{class:{fa:!0,"fa-calendar":"dateTime"==e.mode||"date"==e.mode,"fa-clock-o":"time"==e.mode}})])])]}}],null,!0),model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:n[0],expression:"errors[0]"}],ref:"errrorMessage",staticClass:"invalid-feedback d-block"},[e._v(e._s(n[0]))])]}}])})},yr=[],_r=r("404b"),$r=r.n(_r),xr={components:{Field:Ye,DatePicker:$r.a},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},watch:{fieldInfo:{handler:function(){},deep:!0}},data:function(){return{popover:{visibility:"click"},masks:{},date:new Date,mode:"date",is24hr:!1,minuteIncrement:5}},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},getMinmumDate(e){if(e.config&&this.fieldInfo.config.minDate)return e.config.minDate},getMaxDate(e){if(e.config&&this.fieldInfo.config.maxDate)return e.config.maxDate},onBlur(t,n,r){try{r(),t.onBlur[0](),t.onBlur[1]()}catch(i){}this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onBlur&&this.fieldInfo.config.onBlur(e,this.fieldInfo,n)},onChange:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo,t)}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang),this.fieldInfo.config&&this.fieldInfo.config.is24hr&&(this.is24hr=this.fieldInfo.config.is24hr),this.fieldInfo.config&&this.fieldInfo.config.mode&&(this.mode=this.fieldInfo.config.mode),this.fieldInfo.config&&this.fieldInfo.config.minuteIncrement&&(this.minuteIncrement=parseInt(this.fieldInfo.config.minuteIncrement)),this.fieldInfo.config&&this.fieldInfo.config.format&&("date"==this.mode?this.masks.input=this.fieldInfo.config.format:"dateTime"==this.mode?this.masks.inputDateTime=this.fieldInfo.config.format:"time"==this.mode&&(this.masks.inputTime=this.fieldInfo.config.format))}},wr=xr,Or=(r("d6ff"),Jn(wr,br,yr,!1,null,null,null)),kr=Or.exports,Ir=function(){var e=this,t=e._self._c;return t("Field",{attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[e._l(e.renderOptions(e.fieldInfo),(function(r,i){return t("label",{key:i,class:{"form-check form-check-inline":!0,"is-invalid":n[0]},attrs:{disabled:e.fieldInfo.disabled}},[t("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[t("input",{staticClass:"custom-control-input",attrs:{disabled:e.fieldInfo.disabled,name:e.fieldInfo.name+"_"+i,id:e.fieldInfo.name+"_"+i,type:"checkbox","data-value":r.value},domProps:{checked:e.isChecked(r)},on:{change:function(t){return e.onChange(t,e.field)}}}),t("label",{staticClass:"custom-control-label",attrs:{for:e.fieldInfo.name+"_"+i}},[e._v(" "+e._s(r.name)+" ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],attrs:{type:"hidden"},domProps:{value:e.fieldInfo.value},on:{input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}})])])})),n[0]?t("span",{staticClass:"invalid-feedback"},[e._v(e._s(n[0]))]):e._e()]}}])})},Sr=[],Cr={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},renderOptions:function(e){if(e.config&&this.fieldInfo.config.OptionsForBind){var t=[].constructor;return this.fieldInfo.config.OptionsForBind.constructor===t?e.config.OptionsForBind:null}},onChange:function(e,t){"array"!=typeof this.fieldInfo.value&&"object"!=typeof this.fieldInfo.value&&""==this.fieldInfo.value?this.fieldInfo.value=[]:"array"!=typeof this.fieldInfo.value&&"object"!=typeof this.fieldInfo.value&&(this.fieldInfo.value=this.fieldInfo.value.toString().split()),e.target.checked?(this.fieldInfo.value="string"==typeof this.fieldInfo.value?[]:this.fieldInfo.value,this.fieldInfo.value.push(e.target.attributes["data-value"].value)):this.fieldInfo.value.splice(this.fieldInfo.value.indexOf(e.target.attributes["data-value"].value),1);try{t.onBlur[0](),t.onBlur[1]()}catch(n){}this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo),this.$emit("UpdateKeyValue",1)},isChecked:function(t){try{return"array"==typeof this.fieldInfo.value||"object"==typeof this.fieldInfo.value?this.fieldInfo.value.includes(t.value):this.fieldInfo.value==t.value}catch(e){console.log("Checkbox value should be in string or array")}}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang),this.fieldInfo&&this.fieldInfo.value&&"array"!=typeof this.fieldInfo.value&&"object"!=typeof this.fieldInfo.value&&(this.fieldInfo.value=this.fieldInfo.value.toString().split())}},Er=Cr,Dr=Jn(Er,Ir,Sr,!1,null,null,null),jr=Dr.exports,Pr=function(){var e=this,t=e._self._c;return t("Field",{attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules,slim:""},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return e._l(e.renderOptions(e.fieldInfo),(function(r,i){return t("label",{key:i,class:{"form-check form-check-inline":!0,"is-invalid":n[0]},attrs:{disabled:e.fieldInfo.disabled}},[t("div",{staticClass:"custom-control custom-radio custom-control-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],attrs:{type:"hidden"},domProps:{value:e.fieldInfo.value},on:{input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}}),t("input",{staticClass:"custom-control-input",attrs:{disabled:e.fieldInfo.disabled,name:e.fieldInfo.name,id:e.fieldInfo.name+"_"+i,type:"radio","data-value":r.value},domProps:{checked:r.value==e.fieldInfo.value},on:{change:function(t){return e.onChange(t,e.field)}}}),t("label",{staticClass:"custom-control-label",attrs:{for:e.fieldInfo.name+"_"+i}},[e._v(e._s(r.name))])])])}))}}])})},Ar=[],Tr={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},renderOptions:function(e){if(e.config&&this.fieldInfo.config.OptionsForBind){var t=[].constructor;return this.fieldInfo.config.OptionsForBind.constructor===t?e.config.OptionsForBind:null}},onChange(e,t){"array"!=typeof this.fieldInfo.value&&"object"!=typeof this.fieldInfo.value&&(this.fieldInfo.value=this.fieldInfo.value.toString().split()),e.target.checked&&(this.fieldInfo.value=e.target.attributes["data-value"].value);try{t.onBlur[0](),t.onBlur[1]()}catch(n){}this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo),this.$emit("UpdateKeyValue",1)}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},Mr=Tr,Nr=Jn(Mr,Pr,Ar,!1,null,null,null),Fr=Nr.exports,Rr=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("div",{class:{"w-100 d-flex dynamic-multiselect":!0,"is-invalid":n[0]}},[t("Multiselect",{ref:"multiselect",class:{"p-0 w-100":!0,"is-invalid":n[0]},attrs:{disabled:e.fieldInfo.disabled,options:e.options,label:"label","track-by":"label","close-on-select":"tag"!=e.fieldInfo.mode,searchable:!0,multiple:"tag"==e.fieldInfo.mode,taggable:!1,limit:2,placeholder:e.fieldInfo.placeholder},on:{remove:e.onRemove,"search-change":e.onSearch,select:e.onChange},model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}},[t("span",{attrs:{slot:"noOptions"},slot:"noOptions"},[e._v(" Type to search "+e._s(e.fieldInfo.display_name)+" ")]),t("template",{slot:"noResult"},[t("span",[e._v("No record found.")])])],2),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e()],1),n[0]?t("span",{staticClass:"invalid-feedback"},[e._v(e._s(n[0]))]):e._e()]}}])})},Lr=[],zr=r("8e5f"),Br=r.n(zr),Yr={components:{Multiselect:Br.a,Field:Ye},props:{lang:{type:String,default:"en"},mode:{type:String,default:"single"},fieldInfo:{type:Object,required:!0}},watch:{fieldInfo:{handler:function(e,t){let n=this;if(console.log("Multi drop down",e,t),e.config&&e.config.OptionsForBind){try{n.options=[],e.config.OptionsForBind.forEach((function(e){let t={value:e.value,label:e.name};n.options.push(t)}))}catch(r){}try{if("undefined"!=typeof e.value&&""!=e.value&&e.value.length>0&&("string"==typeof e.value||"number"==typeof e.value)){let t=e.value.toString().split(","),r=[];t.forEach((function(e){let t=n.options.filter(t=>t.value==e);r.push(t[0])})),r.length>1?e.value=r:e.value=r[0]}}catch(r){console.log("Error while assigning value of dropdown")}}},deep:!0}},created:function(){let e=this;if("undefined"!=typeof e.fieldInfo.value&&""!=e.fieldInfo.value||(e.fieldInfo.value=[]),"undefined"!=typeof e.fieldInfo.mode&&""!=e.fieldInfo.mode||(e.fieldInfo.mode="single"),e.fieldInfo.config&&e.fieldInfo.config.OptionsForBind){try{e.fieldInfo.config.OptionsForBind.forEach((function(t){let n={value:t.value,label:t.name};e.options.push(n)}))}catch(t){console.log(t)}try{if("undefined"!=typeof e.fieldInfo.value&&""!=e.fieldInfo.value&&e.fieldInfo.value.length>0&&("string"==typeof e.fieldInfo.value||"number"==typeof e.fieldInfo.value)){let t=e.fieldInfo.value.toString().split(","),n=[];t.forEach((function(t){let r=e.options.filter(e=>e.value==t);n.push(r[0])})),n.length>1?e.fieldInfo.value=n:e.fieldInfo.value=n[0]}}catch(t){console.log("Error while assigning value of dropdown")}}},data:function(){return{isTouched:!1,value:[],selectedHtml:"",options:[]}},computed:{isInvalid(){return this.isTouched&&0===this.value.length}},methods:{onRemove:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onRemove&&this.fieldInfo.config.onRemove(e,t,this.fieldInfo),this.$emit("UpdateKeyValue",1)},GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onSearch:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onSearchChange&&this.fieldInfo.config.onSearchChange(t,this.fieldInfo,e)},onChange:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(t,this.fieldInfo,e),this.$emit("UpdateKeyValue",1)},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},Vr=Yr,Ur=(r("f0ed"),r("9b7c"),Jn(Vr,Rr,Lr,!1,null,"ed2e7ac6",null)),qr=Ur.exports,Hr=function(){var e=this,t=e._self._c;return t("Field",{attrs:{disabled:e.fieldInfo.disabled,name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("div",{class:{"dynamic-form-toggle":!0,"is-invalid":n[0]}},[t("div",{class:{"switch dynamic-form":!0,disabled:1==e.fieldInfo.disabled},attrs:{tabindex:"0",role:"switch"},on:{click:function(t){return e.onChange(e.fieldInfo.value)}}},[t("input",{staticStyle:{display:"none"},attrs:{type:"checkbox",id:"toggle",name:"toggle",disabled:e.fieldInfo.disabled},domProps:{checked:1==e.fieldInfo.value}}),t("div",{class:{"slider round":!0,"toggle-no":0==e.fieldInfo.value||""==e.fieldInfo.value,"toggle-yes":1==e.fieldInfo.value}},[t("span",{class:"slider-"+(e.fieldInfo.value?"yes":"no")},[e._v(e._s(e.fieldInfo.value?"Yes":"No")+" ")])])])]),n[0]?t("span",{staticClass:"invalid-feedback",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},Wr=[],Gr={data:function(){return{classList:{container:"switch dynamic-form",toggle:"slider round",toggleOn:"toggle-yes",toggleOff:"toggle-no",toggleOnDisabled:"",toggleOffDisabled:"",handle:"",handleOn:"slider-yes",handleOff:"slider-no",handleOnDisabled:"",handleOffDisabled:"",label:"slider-no"}}},components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang),""==this.fieldInfo.value||"No"==this.fieldInfo.value||"no"==this.fieldInfo.value||"Off"==this.fieldInfo.value||"off"==this.fieldInfo.value?this.fieldInfo.value=!1:"Yes"!=this.fieldInfo.value&&"yes"!=this.fieldInfo.value&&"On"!=this.fieldInfo.value&&"on"!=this.fieldInfo.value||(this.fieldInfo.value=!0)},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onChange(){1!=this.fieldInfo.disabled&&(""==this.fieldInfo.value&&(this.fieldInfo.value=!1),this.fieldInfo.value=!this.fieldInfo.value,this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(this.fieldInfo.value,this.fieldInfo),this.$emit("UpdateKeyValue",1))}}},Kr=Gr,Zr=Jn(Kr,Hr,Wr,!1,null,null,null),Jr=Zr.exports,Xr=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),disabled:e.fieldInfo.disabled,rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("vue-tel-input",{staticClass:"w-100",attrs:{mode:"international",validCharactersOnly:!0},on:{open:function(t){return e.onDropdownOpen(!0)},close:function(t){return e.onDropdownOpen(!1)},input:e.onInput},scopedSlots:e._u([{key:"arrow-icon",fn:function(){return[t("span",{staticClass:"vti__dropdown-arrow"},[e._v(e._s(e.open?"▲":"▼"))])]},proxy:!0}],null,!0),model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}}),n[0]?t("span",{staticClass:"invalid-feedback d-block",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},Qr=[],ei=r("e75b"),ti=r.n(ei),ni=(r("bf68"),{install:(e,t)=>{e.use(ti.a,{})},components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data:function(){return{phoneError:!1,open:!1}},methods:{onDropdownOpen(e){this.open=e},GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onInput(e,t,n){t&&0==(null===t||void 0===t?void 0:t.valid)?this.phoneError=!0:null!==t&&void 0!==t&&t.formatted&&null!==t&&void 0!==t&&t.valid&&(this.fieldInfo.value=t.formatted,this.phoneError=!1)}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}}),ri=ni,ii=Jn(ri,Xr,Qr,!1,null,null,null),oi=ii.exports,ai=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("div",{class:{"w-100 d-flex":!0,"is-invalid":n[0]}},[t("Multiselect",{class:{"p-0 w-100":!0,"is-invalid":n[0]},attrs:{"filter-results":!1,object:!0,showNoOptions:!0,placeholder:e.fieldInfo.placeholder,searchable:!0,label:"label","track-by":"label","show-labels":!1,"show-no-results":!1,"internal-search":!0,limit:2,disabled:e.fieldInfo.disabled,options:e.options,multiple:"tag"==e.fieldInfo.mode,taggable:!1,"clear-on-select":!1,"close-on-select":"tag"!=e.fieldInfo.mode,"open-direction":"bottom"},on:{remove:e.onRemove,"search-change":e.onSearch,select:e.onChange},scopedSlots:e._u([{key:"noResult",fn:function(){return[t("span",[e._v("Oops! No elements found. Consider changing the search query.")])]},proxy:!0}],null,!0),model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}},[t("span",{attrs:{slot:"noOptions"},slot:"noOptions"},[e._v(" Type to search "+e._s(e.fieldInfo.display_name)+" ")])]),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e()],1),n[0]?t("span",{staticClass:"invalid-feedback"},[e._v(e._s(n[0]))]):e._e()]}}])})},si=[],li={components:{Multiselect:Br.a,Field:Ye},props:{lang:{type:String,default:"en"},mode:{type:String,default:"single"},fieldInfo:{type:Object,required:!0}},watch:{fieldInfo:{handler:function(e,t){let n=this;if(console.log("Multi drop down",e,t),e.config&&e.config.OptionsForBind){try{n.options=[],e.config.OptionsForBind.forEach((function(e){let t={value:e.value,label:e.name};n.options.push(t)}))}catch(r){}try{if("undefined"!=typeof e.value&&""!=e.value&&e.value.length>0&&("string"==typeof e.value||"number"==typeof e.value)){let t=e.value.toString().split(","),r=[];t.forEach((function(e){let t=n.options.filter(t=>t.value==e);r.push(t[0])})),r.length>1?e.value=r:e.value=r[0]}}catch(r){console.log("Error while assigning value of dropdown")}}},deep:!0}},created:function(){let e=this;if("undefined"!=typeof e.fieldInfo.value&&""!=e.fieldInfo.value||(e.fieldInfo.value=[]),"undefined"!=typeof e.fieldInfo.mode&&""!=e.fieldInfo.mode||(e.fieldInfo.mode="single"),e.fieldInfo.config&&e.fieldInfo.config.OptionsForBind){try{e.fieldInfo.config.OptionsForBind.forEach((function(t){let n={value:t.value,label:t.name};e.options.push(n)}))}catch(t){console.log(t)}try{if("undefined"!=typeof e.fieldInfo.value&&""!=e.fieldInfo.value&&e.fieldInfo.value.length>0&&("string"==typeof e.fieldInfo.value||"number"==typeof e.fieldInfo.value)){let t=e.fieldInfo.value.toString().split(","),n=[];t.forEach((function(t){let r=e.options.filter(e=>e.value==t);n.push(r[0])})),n.length>1?e.fieldInfo.value=n:e.fieldInfo.value=n[0]}}catch(t){console.log("Error while assigning value of dropdown")}}},data:function(){return{isTouched:!1,value:[],options:[]}},computed:{isInvalid(){return this.isTouched&&0===this.value.length}},methods:{onRemove:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onRemove&&this.fieldInfo.config.onRemove(e,t,this.fieldInfo),this.$emit("UpdateKeyValue",1)},GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onSearch:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onSearchChange&&this.fieldInfo.config.onSearchChange(t,this.fieldInfo,e)},onChange:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(t,this.fieldInfo,e),this.$emit("UpdateKeyValue",1)},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},ui=li,di=(r("5ee6"),Jn(ui,ai,si,!1,null,null,null)),ci=di.exports,fi=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control":!0,"is-invalid":n[0]},attrs:{disabled:e.fieldInfo.disabled,rows:e.getRows(e.fieldInfo),cols:e.getColumns(e.fieldInfo),placeholder:e.fieldInfo.placeholder},domProps:{value:e.fieldInfo.value},on:{change:function(t){return e.onChange(t)},blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)},input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}}),n[0]?t("span",{staticClass:"invalid-feedback",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},hi=[],pi={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},getColumns(e){if(e.config&&this.fieldInfo.config.cols)return e.config.cols},getRows(e){if(e.config&&this.fieldInfo.config.rows)return e.config.rows},onChange:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},onBlur:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onBlur&&this.fieldInfo.config.onBlur(e,this.fieldInfo)},onKeyUp:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onKeyUp&&this.fieldInfo.config.onKeyUp(e,this.fieldInfo)}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},vi=pi,mi=Jn(vi,fi,hi,!1,null,null,null),gi=mi.exports,bi=function(){var e=this,t=e._self._c;return t("div",{ref:"colorpicker",staticClass:"form-group mb-0"},[t("Field",{staticClass:"input-group color-picker",attrs:{name:e.GetDisplayLabel(e.fieldInfo)},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("input",{staticClass:"form-control",attrs:{disabled:"disabled",type:"text",name:e.fieldInfo.name,pattern:"^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$"},domProps:{value:e.fieldInfo.value},on:{input:e.updateFromInput,change:e.updateFromInput}}),t("div",{staticClass:"input-group-addon color-picker-container",on:{click:function(t){return e.showPicker()}}},[t("ColorPicker",{attrs:{theme:"light",disabled:e.fieldInfo.disabled},on:{changeColor:e.updateFromPicker},model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}})],1)]}}])})],1)},yi=[],_i=r("b9d7"),$i=r.n(_i),xi={props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},components:{Field:Ye,ColorPicker:$i.a},data:function(){return{color:"#000000",suckerCanvas:null,suckerArea:[],isSucking:!0,colorValue:"",displayPicker:!1}},created(){this.fieldInfo&&this.fieldInfo.value?this.color=this.fieldInfo.value:this.fieldInfo.value=this.color},mounted:function(){this.setColor(this.color||"#59c7f9"),this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},setColor:function(e){this.updateColors(e),this.colorValue=e},updateColors:function(e){if("#"==e.slice(0,1))this.colors={hex:e};else if("rgba"==e.slice(0,4)){var t=e.replace(/^rgba?\(|\s+|\)$/g,"").split(","),n="#"+((1<<24)+(parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).slice(1);this.colors={hex:n,a:t[3]}}this.isSucking=!0},showPicker:function(){document.addEventListener("click",this.documentClick),this.displayPicker=!0},hidePicker:function(){document.removeEventListener("click",this.documentClick),this.displayPicker=!1},togglePicker:function(){this.displayPicker?this.hidePicker():this.showPicker()},updateFromInput:function(e){var t=new RegExp("^#[0-9A-F]{6}$"),n=this.colorValue;if(!t.test(n))return!1;this.updateColors(this.colorValue),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},updateFromPicker(e){this.colors=e,1==e.rgba.a?(this.colorValue=e.hex,this.fieldInfo.value=this.colorValue):(this.colorValue="rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+e.rgba.a+")",this.fieldInfo.value=this.colorValue),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},documentClick:function(e){var t=this.$refs.colorpicker,n=e.target;t===n||"undefined"==typeof t||t.contains(n)||(this.hidePicker(),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo))}},watch:{colorValue:function(e){e&&(this.updateColors(e),this.updateFromInput(),this.$emit("input",e))}}},wi=xi,Oi=(r("fae6"),Jn(wi,bi,yi,!1,null,null,null)),ki=Oi.exports,Ii=function(){var e=this,t=e._self._c;return t("div",{staticClass:"col-12 p-0 fileFieldAttachment",attrs:{id:"File_"+e.fieldInfo.name}},["undefined"!=typeof e.fieldInfo.config.reject&&e.fieldInfo.config.reject.length>0?t("div",{staticClass:"col-12 mb-2 mt-2"},[t("label",[e._v("Disallowed File Type:")]),e._l(e.fieldInfo.config.reject,(function(n){return t("div",{staticClass:"mx-2 d-inline-block doc-ico-legend"},[t("em",{staticClass:"fa text-primary",class:n.iconClass,attrs:{id:"helpText"}}),e._v(" "+e._s(n.fileType)+" ")])}))],2):e._e(),"undefined"!=typeof e.fieldInfo.config.accept&&e.fieldInfo.config.accept.length>0?t("div",{staticClass:"col-12 mb-2 mt-2"},[t("label",[e._v("Allowed File Type:")]),e._l(e.fieldInfo.config.accept,(function(n){return t("div",{staticClass:"mx-2 d-inline-block doc-ico-legend"},[t("em",{staticClass:"fa text-primary",class:n.iconClass,attrs:{id:"helpText"}}),e._v(" "+e._s(n.fileType)+" ")])}))],2):e._e(),t("div",{staticClass:"already-uploaded-file"},e._l(e.getSelectedFile(),(function(n){return t("div",{attrs:{title:n.attachmentName}},[t("span",{staticStyle:{"font-size":"24px"}},[t("i",{class:"fa "+e.getFileIcon(n.attachmentName)}),e.isShowCrossOnSelectedFile()?t("i",{staticClass:"fa fa-times cross",on:{click:function(t){return e.onDelete(n)}}}):e._e()]),t("br"),t("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.onClickSelectedFile(n)}}},[e._v(e._s(e.getFileName(n.attachmentName)))])])})),0),t("div",{staticClass:"file-upload"},[t("div",{class:{"file-upload__area":!0,highlight:e.isDragging},on:{click:e.openFilePopup,dragover:function(t){return t.preventDefault(),e.dragOver.apply(null,arguments)},dragleave:e.dragLeave,drop:e.handleDrop}},[t("div",[0==e.previewFiles.length?t("span",[e._v("Drop or click here to upload files")]):e._e(),t("input",{staticClass:"d-none",attrs:{type:"file",id:"customFile_"+e.fieldInfo.name,disabled:e.fieldInfo.disabled,multiple:e.canUploadMultipleFile()},on:{change:function(t){return e.onChange(t)}}}),e.errors.length>0?t("div",e._l(e.errors,(function(n,r){return t("div",{key:r,staticClass:"file-upload__error"},[t("span",[e._v(e._s(n))])])})),0):e._e()]),e._l(e.previewFiles,(function(n,r){return t("div",{key:r,staticClass:"upload-preview"},[n.isImage?t("img",{staticClass:"file-image",attrs:{src:n.url,alt:""}}):e._e(),n.isImage?e._e():t("div",{staticClass:"file-extention"},[e._v(" "+e._s(n.fileExtention)+" ")]),t("span",{staticClass:"file-name"},[e._v(" "+e._s(n.name)+" "+e._s(n.isImage?"."+n.fileExtention:"")+" ")]),t("span",{staticClass:"crossimg"},[t("a",{staticClass:"fa fa-times text-danger",attrs:{href:"javascript:void(0)","data-index":r},on:{click:function(t){return e.RemoveFile(t,r)}}})])])}))],2)])])},Si=[],Ci={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data:function(){return{isDragging:!1,maxSize:0,accept:"",reject:"",errors:[],file:{name:"",size:0,type:"",fileExtention:"",url:"",isImage:!1,isUploaded:!1},previewFiles:[]}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang),this.fieldInfo.placeholder&&(this.fileName=this.fieldInfo.placeholder),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("maxSize")&&(this.maxSize=this.fieldInfo.config.maxSize),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("accept")&&(this.accept=Array.prototype.map.call(this.fieldInfo.config.accept,(function(e){return e.fileType})).join(",")),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("reject")&&(this.reject=Array.prototype.map.call(this.fieldInfo.config.reject,(function(e){return e.fileType})).join(","))},methods:{openFilePopup(){document.querySelectorAll("#File_"+this.fieldInfo.name+' [type="file"]')[0].click()},RemoveFile(e,t){e.stopPropagation();const n=new DataTransfer,r=document.querySelectorAll("#File_"+this.fieldInfo.name+' [type="file"]')[0],{files:i}=r;this.previewFiles=[];for(let s=0;s<i.length;s++){const e=i[s];if(t!==s){n.items.add(e);var o=e.name.split(".").pop(),a=["jpg","jpeg","png","gif"].includes(o);let t=new FileReader;t.addEventListener("load",()=>{this.file={name:e.name.split(".").shift(),size:Math.round(e.size/1024/1024*100)/100,type:e.type,fileExtention:o,isImage:a,url:t.result,isUploaded:!0},this.previewFiles.push(this.file)},!1),t.readAsDataURL(e)}}r.files=n.files,this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onRemoveFile&&this.fieldInfo.config.onRemoveFile(e,t,this.fieldInfo)},onChange(e){if(this.errors=[],e.target.files&&e.target.files[0]){for(let o=0;o<e.target.files.length;o++){const a=e.target.files[o];if(this.isFileValid(a)){var t=Math.round(a.size/1024/1024*100)/100,n=a.name.split(".").pop(),r=a.name.split(".").shift(),i=["jpg","jpeg","png","gif"].includes(n);console.log(t,n,r,i);let e=new FileReader;e.addEventListener("load",()=>{this.file={name:r,size:t,type:a.type,fileExtention:n,isImage:i,url:e.result,isUploaded:!0},0==this.canUploadMultipleFile()&&(this.previewFiles=[]),this.previewFiles.push(this.file)},!1),e.readAsDataURL(a)}else console.log("Invalid file")}0==this.errors.length&&(this.fieldInfo.value=e.target.files,this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo))}},isFileSizeValid(e){e<=this.maxSize?console.log("File size is valid"):this.errors.push(`File size should be less than ${this.maxSize} MB`)},isFileTypeValid(e){""!=this.reject&&this.reject.split(",").length>0&&this.reject.split(",").includes(e)&&this.errors.push("File type should not be "+this.reject),""!=this.accept&&this.accept.split(",").length>0&&(this.accept.split(",").includes(e)?console.log("File type is valid"):this.errors.push("File type should be "+this.accept))},isFileValid(e){return this.isFileSizeValid(Math.round(e.size/1024/1024*100)/100),this.isFileTypeValid(e.name.split(".").pop()),0===this.errors.length},canUploadMultipleFile(){return!(!this.fieldInfo.config||!this.fieldInfo.config.hasOwnProperty("multiple"))&&this.fieldInfo.config.multiple},getSelectedFile:function(){try{return this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("showSelectedFiles")?this.fieldInfo.config.showSelectedFiles:[]}catch(e){return console.log(e),[]}},isShowCrossOnSelectedFile:function(){try{return!this.fieldInfo.config||!this.fieldInfo.config.hasOwnProperty("showCrossOnSelectedFiles")||this.fieldInfo.config.showCrossOnSelectedFiles}catch(e){return console.log(e),!0}},getFileName:function(e){try{let t=e.split("."),n=t[0].length>4?t[0].substring(0,4)+"..."+t[1]:t[0]+"."+t[1];return n}catch(t){return e}},getFileIcon:function(e){let t=e.split("."),n="";switch(t[1]){case"jpg":case"png":case"jpeg":case"gif":n="fa-file-image-o";break;case"doc":case"docs":n="fa-file-word-o";break;case"pdf":n="fa-file-pdf-o";break;case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xls":case"xlt":n="fa-file-excel-o";break;case"mp4":case"mov":case"wmv":case"flv":case"avi":case"webm":case"mkv":case"avchd":n="fa-file-video-o";break;case"pptx":n="fa-file-powerpoint-o";break;case"mp3":case"aac":case"wav":case"aiff":case"dsd":case"pcm":n="fa-file-audio-o";break;default:n="fa-file-o"}return n},onDelete:function(e){try{this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("onDeleteSelectedFiles")&&this.fieldInfo.config.onDeleteSelectedFiles(e)}catch(t){console.log(t)}},onClickSelectedFile:function(e){try{this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("onClickSelectedFiles")&&this.fieldInfo.config.onClickSelectedFiles(e)}catch(t){console.log(t)}},dragOver:function(){this.isDragging=!0},dragLeave:function(){this.isDragging=!1},handleDrop:function(t){t.preventDefault(),this.isDragging=!1;const n=t.target.files||t.dataTransfer.files;if(n.length){for(let e=0;e<n.length;e++){const t=n[e];if(this.isFileValid(t)){var r=Math.round(t.size/1024/1024*100)/100,i=t.name.split(".").pop(),o=t.name.split(".").shift(),a=["jpg","jpeg","png","gif"].includes(i);console.log(r,i,o,a);let e=new FileReader;e.addEventListener("load",()=>{this.file={name:o,size:r,type:t.type,fileExtention:i,isImage:a,url:e.result,isUploaded:!0},0==this.canUploadMultipleFile()&&(this.previewFiles=[]),this.previewFiles.push(this.file)},!1),e.readAsDataURL(t)}else console.log("Invalid file")}0==this.errors.length&&(this.fieldInfo.value=n,this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo))}}}},Ei=Ci,Di=Jn(Ei,Ii,Si,!1,null,null,null),ji=Di.exports,Pi=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("div",{staticClass:"w-100 d-flex dynamic-multiselect"},[e.options&&e.options.length>0?t("tree-select",{staticClass:"w-100 form-control border-0 p-0",attrs:{multiple:!1,options:e.options,placeholder:e.fieldInfo.placeholder},model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}}):e._e(),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e(),n[0]?t("span",{staticClass:"invalid-feedback d-block"},[e._v(e._s(n[0]))]):e._e()],1)]}}])})},Ai=[],Ti=r("ca17"),Mi=r.n(Ti),Ni={components:{"tree-select":Mi.a,Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data(){return{options:[],scrollops:{maxHeight:200,vuescroll:{sizeStrategy:"number"}}}},mounted(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang),this.fieldInfo.hasOwnProperty("config")&&this.fieldInfo.config.hasOwnProperty("options")&&("undefined"!=typeof this.fieldInfo.config.OptionsForBind?this.options=this.fieldInfo.config.OptionsForBind:this.options=this.fieldInfo.config.options),this.fieldInfo.hasOwnProperty("placeholder")||(this.fieldInfo.placeholder="Select Location")},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"}}},Fi=Ni,Ri=Jn(Fi,Pi,Ai,!1,null,null,null),Li=Ri.exports,zi=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[e._t("tgslot",null,{data:{fieldInfo:e.fieldInfo,error:t.length>0?t[0]:""}})]}}],null,!0)})},Bi=[],Yi={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},methods:{GetDisplayLabel:function(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},Vi=Yi,Ui=Jn(Vi,zi,Bi,!1,null,null,null),qi=Ui.exports,Hi={name:"DynamicForm",components:{ValidationObserver:Qe,NumericField:Qn,SelectField:or,TextField:cr,DateField:kr,CheckBoxField:jr,RadioField:Fr,MultiSelectField:qr,ToggleField:Jr,PhoneField:oi,CustomSelectField:ci,TextAreaField:gi,ColorField:ki,FileField:ji,TreeSelectField:Li,SlotField:qi,PasswordField:gr},data:function(){return{clickedButton:null,keyForComponentUpdate:0}},props:{lang:{type:String,default:"en"},buttons:{type:[Array,Boolean],default:[]},schema:{type:Array,default:[],required:!0},mandatorytext:{type:[String,Boolean],default:!1}},watch:{schema:{handler:function(e){let t=this;e.forEach((function(e,n){e.Data.forEach((function(e,n){t.isShowBasedOnDependentField(e)}))}))},deep:!0}},date:function(){return{validateForm:null}},mounted:function(){let e=this;e.validateForm=e.$refs.ObserverForm,e.schema.forEach((function(t,n){t.Data.forEach((function(t,n){e.isShowBasedOnDependentField(t)}))}))},methods:{UpdateKeyValue:function(e){this.keyForComponentUpdate++},updateProperty:function(e,t,n){var r=[];t.includes(".")?r=t.split("."):r.push(t),this.schema.forEach((function(t,i){t.Data.forEach((function(t,i){if(t.name==e){for(var o=t,a=r,s=a.length,l=0;l<s-1;l++){var u=a[l];o[u]||(o[u]={}),o=o[u]}o[a[s-1]]=n}}))}))},getPropertyValue:function(e,t){var n=[];t.includes(".")?n=t.split("."):n.push(t);var r=null;return this.schema.forEach((function(t,i){t.Data.forEach((function(t,i){if(t.name==e){r=t;for(var o=0;o<n.length;o++)if(r=r[n[o]],r&&o==n.length-1){r=r;break}}}))})),r},CheckIfAnyFieldVisibleInGroup:function(e){let t=!0;if(e.length>0){let n=e.filter(e=>{var t;return 1==(null===(t=e.visibility)||void 0===t||t)});t=n.length>0}else t=!1;return t},isShowBasedOnDependentField:function(t){let n=this;if(t&&t.config&&t.config.options&&(t.config.OptionsForBind=t.config.options),t&&t.config&&t.config.dependentOn&&t.config.dependentOn>0){let i=this.getFieldbyCustomFieldId(t.config.dependentOn),o=t.config.showWhen,a=JSON.parse(t.config.valueMapping);if(i&&i.value&&null!=i.value&&""!=i.value){let s=JSON.parse(o),l=[],u=s.value,d=i.value;if(s.first_value){u=s.first_value;let e=i.config.options.filter(e=>e.value==i.value);d=e[0].first_value}if(u)if("number"==typeof d||"string"==typeof d)l.push(d),u.length>0?u.includes(d)?(n.updateFieldInfoOptions(a,l,t,s.isValueNotDepend),t.visibility=!0):(t.visibility=!1,t.value=""):(t.visibility=!0,"undefined"!=typeof t.DependentFieldValue&&t.DependentFieldValue[0]==l[0]||(t.DependentFieldValue=l,t&&t.config&&t.config.onChange&&1!=s.isValueNotDepend&&t.config.onChange("FILL_DEPENDENT",t,l)));else{var r=[];try{d.length&&d.length>0?d.forEach((function(e,t){l.push(e.value),0==r.length&&(r=u.filter(t=>t==e.value))})):(l.push(i.value.value),r=u.filter(e=>e==d.value)),n.updateFieldInfoOptions(a,l,t,s.isValueNotDepend)}catch(e){l.push(i.value.value),n.updateFieldInfoOptions(a,l,t,s.isValueNotDepend),r=u.filter(e=>e==d.value)}a.length>0&&(r.length>0?t.visibility=!0:(t.config.OptionsForBind=[],t.visibility=!1,t.value=""))}else t.visibility=!0}else{let e=JSON.parse(o);1!=e.isFillOnly&&(1!=e.isValueNotDepend&&(t.config.OptionsForBind=[]),t.visibility=!1,t.value="")}}},updateFieldInfoOptions:function(e,t,n,r){if(e.length>0){let r=[];if(t.forEach((function(t,n){e.forEach((function(e){e.value==t&&r.push(e)}))})),r.length>0){let e=[];this.$set(n.config,"OptionsForBind",[]),r.forEach((function(t){let r=t.dependent;n.config.options.forEach((t,n)=>{let i=e.filter(e=>e.value==t.value);!r.includes(t.value)&&0!=r.length||0!=i.length||e.push(t)})})),this.$set(n.config,"OptionsForBind",e)}}else"undefined"!=typeof n.DependentFieldValue&&n.DependentFieldValue[0]==t[0]||(n.DependentFieldValue=t,n&&n.config&&n.config.onChange&&1!=r&&n.config.onChange("FILL_DEPENDENT",n,t))},ConvertDynamicFormObjToCustomFieldObj:function(t,n){let r=[];return t.forEach((function(t,i){t.Data.forEach((function(t,i){let o={field_name:t.name,field_value:t.value,custom_field_id:t.customFieldId};if("select"==t.dtCode&&1==n){let n="";if("object"==typeof t.value)try{"undefined"!=typeof t.value.length&&t.value.length>0?t.value.forEach((function(e){n=""==n?e.value:n+","+e.value})):n=t.value.value}catch(e){n=t.value.value}else n=t.value;o.field_value=n}r.push(o)}))})),r},MakeArray:function(e,t){var n=[],r=String(e).split(",");if("radio"==t||"checkbox"==t){if(r.length>0)for(let o of r)if(o.split("|").length>1){var i={name:o.split("|")[0].trim(),value:o.split("|")[1].trim()};n.push(i)}else{i={name:o.trim(),value:o.trim()};n.push(i)}}else if(r.length>0)for(let o of r){i={name:o.trim(),value:o.trim()};n.push(i)}return n},MakeNormalArray:function(e){if(e)try{return JSON.parse(e)}catch(t){return e}else e=[]},ConvertCustomFieldIntoDynamicFormObj:function(e){let t=[];var n=this;return e.length>0&&e.forEach((function(r,i){var o=r.group_id;let a=t.filter(e=>e.groupId==o);if(0==a.length){let i=e.filter(e=>e.group_id==o&&("YES"==e.form_field_visibility||"NO"==e.form_field_visibility&&1==e.system_is_required));if(i.length>0){var s;let e={groupLayoutType:r.group_layout_type,layoutType:r.layout_type,groupId:o,visibility:!0,group_name:null!==(s=n.$t(r.group_display_name))&&void 0!==s?s:n.$t(r.group_name),Data:[]};if(i.forEach((function(t,r){let i=[];"checkbox"==t.dt_code||"radio"==t.dt_code?i=n.MakeArray(t.select_options,t.dt_code):"select"==t.dt_code&&"Lookup"==t.picklist_options?i=n.MakeNormalArray(t.select_options):"select"!=t.dt_code&&"radio"!=t.dt_code&&"checkbox"!=t.dt_code||"Lookup"==t.picklist_options||null==t.picklist_options||(i=n.MakeArray(t.picklist_options,t.dt_code));let o={};"YES"==t.form_field_visibility&&(o["required"]=1==t.is_required,"undefined"!=typeof t.length&&null!=t.length&&t.length>"0"&&(o["max"]=t.length));let a="",s="date";"multi"==t.dropdown_type?a="tag":"DateField"==t.astype&&("date"==t.dt_code?s="date":"datetime"==t.dt_code?s="dateTime":"time"==t.dt_code&&(s="time"));let l="Enter "+n.$t(t.display_name);"SelectField"!=t.astype&&"CustomSelectField"!=t.astype&&"MultiSelectField"!=t.astype&&"TreeSelectField"!=t.astype||(l="Select "+n.$t(t.display_name));let u={customFieldId:t.custom_field_id,astype:"CKEditorField"==t.astype?"SlotField":t.astype,label:n.$t(t.display_name),name:t.name,value:t.value,placeholder:l,config:{mode:s,options:i,dependentOn:t.dependent_on,showWhen:t.show_when,valueMapping:t.value_mapping,fieldCode:t.field_code},mode:a,visibility:"YES"==t.form_field_visibility,validationRules:o,dtCode:t.dt_code};e.Data.push(u)})),e.Data.length>0){let t=e.Data.filter(e=>1==e.visibility||null!=e.config.dependentOn&&0==e.visibility);0==t.length&&(e.visibility=!1)}else 0==e.Data.length&&(e.visibility=!1);t.push(e)}}})),t},getFieldbyCustomFieldId:function(e){let t=null,n=this;return n.schema.forEach((function(n,r){n.Data.forEach((function(n,r){n.customFieldId==e&&(t=n)}))})),t},renderButtons:function(e){if(e){var t=[].constructor;return e.constructor===t?e:[]}},GetGroupName:function(e,t){return e?this.$t(e):this.$t(t)},isRequired:function(e){let t=!1;if(e){if("string"===typeof e)return e.includes("required");"undefined"===typeof e.length?Object.keys(e).forEach(n=>{"required"==n.toLowerCase()&&1==e[n]&&0==t&&(t=!0)}):"undefined"!==typeof e.length&&e.forEach((function(e){Object.keys(e).forEach(n=>{"required"==n.toLowerCase()&&1==e[n]&&0==t&&(t=!0)})}))}return t},onSubmit:function(){var e={};this.schema.forEach(t=>{t.Data.forEach(t=>{e[t.name]=t.value})}),console.log(e),this.$emit("OnSubmit",e,this.clickedButton),console.log(1001)},onButtonClick:function(e){let t="";t=e.name?e.name:e.text,this.clickedButton=t,e.hasOwnProperty("onClick")&&e.onClick(e)},GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label+":":e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name+":"),t},SetFormValues(e){var t=this;e.forEach(e=>{for(var n in e)t.schema.forEach(t=>{t.Data.forEach(t=>{n==t.name&&(t.value=e[n])})})})},getGroupClasses:function(e){var t={"col-lg-4 col-md-6 col-sm-12":"triple"==e.groupLayoutType,"col-lg-6 col-md-6 col-sm-12":"double"==e.groupLayoutType,"col-lg-12 col-md-12 col-sm-12":"single"==e.groupLayoutType||"undefined"==typeof e.groupLayoutType};return e.hasOwnProperty("class")&&e.class&&(t[e.class]=!0),t}},created:function(){}},Wi=Hi,Gi=Jn(Wi,s,l,!1,null,null,null),Ki=Gi.exports,Zi={install(e,t={}){e.component("DynamicForm",Ki),e.component("NumericField",Qn),e.component("SelectField",or),e.component("TextField",cr),e.component("DateField",kr),e.component("CheckBoxField",jr),e.component("RadioField",Fr),e.component("PhoneField",oi),e.component("CustomSelectField",ci),e.component("MultiSelectField",qr),e.component("TextAreaField",gi),e.component("TreeSelectField",Li)}};n["default"]=Zi},fb60:function(e,t,n){"use strict";var r=n("7917"),i=n("c532");function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}i.inherits(o,r,{__CANCEL__:!0}),e.exports=o},fc6a:function(e,t,n){"use strict";var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fdbf:function(e,t,n){"use strict";var r=n("04f8");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fdcd:function(e){e.exports=JSON.parse('{"code":"ka","messages":{"alpha":"{_field_} უნდა შეიცავდეს მხოლოდ ასოებს","alpha_num":"{_field_} უნდა შეიცავდეს მხოლოდ ციფრებს","alpha_dash":"{_field_} უნდა შესაძლებელია შეიცავდეს ციფრებს, ასოებს და პუნქტუაციის ნიშნებს","alpha_spaces":"{_field_} უნდა შეიცავდეს მხოლოდ ასოებსა და ცარიელ სივრცეებს","between":"{_field_} უნდა იყოს {min} და {max}ს შორის","confirmed":"{_field_} არ ემთხვევა {target}(ი)ს","digits":"{_field_} უნდა შეიცავდეს ციფრებს და უნდა იყოს ზუსტად {length}-ნიშნა","dimensions":"{_field_} უნდა იყოს {width}x{height} ზომის (pixel)","email":"{_field_}-ს უნდა ჰქონდეს ელ-ფოსტის სწორი ფორმატი","excluded":"{_field_} უნდა იყოს სწორი მნიშვნელობა","ext":"{_field_} უნდა იყოს ფაილი","image":"{_field_} უნდა იყოს სურათი","max_value":"{_field_} უნდა შეიცავდეს {max} სიმბოლოს ან ნაკლებს","max":"{_field_} არ უნდა იყოს {length} სიმბოლოზე მეტი","mimes":"{_field_}ს უნდა ჰქონდეს სწორი ფაილის ფორმატი","min_value":"{_field_} უნდა შეიცავდეს {min} ან მეტ სიმბოლოს","min":"{_field_} უნდა შეიცავდეს მინიმუმ {length} სიმბოლოს","numeric":"{_field_} უნდა შეიცავდეს ციფრებს","oneOf":"{_field_} უნდა იყოს სწორი მნიშვნელობა","regex":"{_field_}-(ი)ს ფორმატი არასწორია","required":"{_field_} აუცილებელია","required_if":"{_field_} აუცილებელია","size":"{_field_} უნდა იყოს {size}KB-ზე ნაკლები","double":"{_field_} ველი უნდა იყოს სწორი ათობითი"}}')},ffd6:function(e,t,n){var r=n("3729"),i=n("1310"),o="[object Symbol]";function a(e){return"symbol"==typeof e||i(e)&&r(e)==o}e.exports=a}})}));
|
|
21
|
+
*/function Ft(e){return null===e||void 0===e}function Rt(e){return Array.isArray(e)&&0===e.length}function Lt(e){return"function"===typeof e}function zt(e,t){return-1!==e.indexOf(t)}function Bt(e){return Lt(Array.from)?Array.from(e):Yt(e)}function Yt(e){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}var Vt=function(e,t){return Array.isArray(e)?e.every((function(e){return Vt(e,t)})):Bt(t).some((function(t){return t==e}))},Ut={validate:Vt},qt=function(e,t){return!Vt(e,t)},Ht={validate:qt},Wt=function(e,t){var n=new RegExp(".("+t.join("|")+")$","i");return Array.isArray(e)?e.every((function(e){return n.test(e.name)})):n.test(e.name)},Gt={validate:Wt},Kt=function(e){var t=/\.(jpg|svg|jpeg|png|bmp|gif|webp)$/i;return Array.isArray(e)?e.every((function(e){return t.test(e.name)})):t.test(e.name)},Zt={validate:Kt},Jt=function(e){return Array.isArray(e)?e.every((function(e){return/^-?[0-9]+$/.test(String(e))})):/^-?[0-9]+$/.test(String(e))},Xt={validate:Jt},Qt=function(e,t){var n=t.other;return e===n},en=[{name:"other"}],tn={validate:Qt,params:en},nn=function(e,t){var n=t.other;return e!==n},rn=[{name:"other"}],on={validate:nn,params:rn},an=function(e,t){var n=t.length;return!Ft(e)&&("string"===typeof e&&(e=Bt(e)),"number"===typeof e&&(e=String(e)),e.length||(e=Bt(e)),e.length===n)},sn=[{name:"length",cast:function(e){return Number(e)}}],ln={validate:an,params:sn},un=function(e,t){var n=t.length;return Ft(e)?n>=0:Array.isArray(e)?e.every((function(e){return un(e,{length:n})})):String(e).length<=n},dn=[{name:"length",cast:function(e){return Number(e)}}],cn={validate:un,params:dn},fn=function(e,t){var n=t.max;return!Ft(e)&&""!==e&&(Array.isArray(e)?e.length>0&&e.every((function(e){return fn(e,{max:n})})):Number(e)<=n)},hn=[{name:"max",cast:function(e){return Number(e)}}],pn={validate:fn,params:hn},vn=function(e,t){var n=new RegExp(t.join("|").replace("*",".+")+"$","i");return Array.isArray(e)?e.every((function(e){return n.test(e.type)})):n.test(e.type)},mn={validate:vn},gn=function(e,t){var n=t.length;return!Ft(e)&&(Array.isArray(e)?e.every((function(e){return gn(e,{length:n})})):String(e).length>=n)},bn=[{name:"length",cast:function(e){return Number(e)}}],yn={validate:gn,params:bn},_n=function(e,t){var n=t.min;return!Ft(e)&&""!==e&&(Array.isArray(e)?e.length>0&&e.every((function(e){return _n(e,{min:n})})):Number(e)>=n)},$n=[{name:"min",cast:function(e){return Number(e)}}],xn={validate:_n,params:$n},wn=/^[٠١٢٣٤٥٦٧٨٩]+$/,On=/^[0-9]+$/,kn=function(e){var t=function(e){var t=String(e);return On.test(t)||wn.test(t)};return Array.isArray(e)?e.every(t):t(e)},In={validate:kn},Sn=function(e,t){var n=t.regex;return Array.isArray(e)?e.every((function(e){return Sn(e,{regex:n})})):n.test(String(e))},Cn=[{name:"regex",cast:function(e){return"string"===typeof e?new RegExp(e):e}}],En={validate:Sn,params:Cn},Dn=function(e,t){var n=(void 0===t?{allowFalse:!0}:t).allowFalse,r={valid:!1,required:!0};return Ft(e)||Rt(e)?r:!1!==e||n?(r.valid=!!String(e).trim().length,r):r},jn=!0,Pn=[{name:"allowFalse",default:!0}],An={validate:Dn,params:Pn,computesRequired:jn},Tn=function(e){return Rt(e)||zt([!1,null,void 0],e)||!String(e).trim().length},Mn=function(e,t){var n,r=t.target,i=t.values;return i&&i.length?(Array.isArray(i)||"string"!==typeof i||(i=[i]),n=i.some((function(e){return e==String(r).trim()}))):n=!Tn(r),n?{valid:!Tn(e),required:n}:{valid:!0,required:n}},Nn=[{name:"target",isTarget:!0},{name:"values"}],Fn=!0,Rn={validate:Mn,params:Nn,computesRequired:Fn},Ln=function(e,t){var n=t.size;if(isNaN(n))return!1;var r=1024*n;if(!Array.isArray(e))return e.size<=r;for(var i=0;i<e.length;i++)if(e[i].size>r)return!1;return!0},zn=[{name:"size",cast:function(e){return Number(e)}}],Bn={validate:Ln,params:zn},Yn=function(e,t){var n=t||{},r=n.decimals,i=void 0===r?0:r,o=n.separator,a=void 0===o?"dot":o,s="comma"===a?",?":"\\.?",l=0===i?"\\d*":"(\\d{"+i+"})?",u=new RegExp("^-?\\d+"+s+l+"$");return Array.isArray(e)?e.every((function(e){return u.test(String(e))})):u.test(String(e))},Vn=[{name:"decimals",default:0},{name:"separator",default:"dot"}],Un={validate:Yn,params:Vn};function qn(e){return r("bb28")(`./${e}.json`).then(t=>{pe(e,t)})}function Hn(e,t){let n={},r=qn(null!==t&&void 0!==t?t:"en");return e&&("string"===typeof e||"undefined"===typeof e.length?n=e:"undefined"!==typeof e.length&&e.forEach((function(e){Object.keys(e).forEach(t=>{"errormessage"!=t.toLowerCase()&&(n[t]=e[t]),"errormessage"!=t.toLowerCase()&&"undefined"!=typeof e.errorMessage&&"function"!==typeof e[t]&&(r.messages[t]=e.errorMessage),"function"!==typeof e[t]&&"object"!==typeof e[t]||L(t,e[t])})}))),n}Object.keys(i).forEach(e=>{L(e,i[e])}),L("password",{params:["target"],validate(e,{target:t}){return e===t},message:"Password confirmation does not match"}),L("url",{validate(e){return!!e&&/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(e)},message:"The {_field_} field must be a valid URL"}),L("colorCode",{validate(e){return!!e&&/^#[0-9A-F]{6}$/.test(e)},message:"The {_field_} field must be a valid color"}),L("ZipCode",{validate(e){return!!e&&/(^\d{6}$)|(^\d{5}-\d{4}$)/.test(e)},message:"The {_field_} field is not valid"});var Wn=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{disabled:e.fieldInfo.disabled,type:"text",placeholder:e.fieldInfo.placeholder},domProps:{value:e.fieldInfo.value},on:{change:function(t){return e.onChange(t)},blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)},keypress:e.onlyForCurrency,input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}}),n[0]?t("span",{staticClass:"invalid-feedback",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},Gn=[],Kn={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data:function(){return{value:""}},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onlyForCurrency(e){let t=e.keyCode?e.keyCode:e.which;!(t<48||t>57)||46===t&&-1==this.fieldInfo.value.indexOf(".")||e.preventDefault(),null!=this.fieldInfo.value&&this.fieldInfo.value.indexOf(".")>-1&&this.fieldInfo.value.split(".")[1].length>1&&e.preventDefault()},onChange:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},onBlur:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onBlur&&this.fieldInfo.config.onBlur(e,this.fieldInfo)},onKeyUp:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onKeyUp&&this.fieldInfo.config.onKeyUp(e,this.fieldInfo)}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},Zn=Kn;function Jn(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var d=u.render;u.render=function(e,t){return l.call(t),d(e,t)}}else{var c=u.beforeCreate;u.beforeCreate=c?[].concat(c,l):[l]}return{exports:e,options:u}}var Xn=Jn(Zn,Wn,Gn,!1,null,null,null),Qn=Xn.exports,er=(r("ab43"),function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("div",{staticClass:"w-100 d-flex"},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{name:e.fieldInfo.name,disabled:e.fieldInfo.disabled},on:{change:[function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.fieldInfo,"value",t.target.multiple?n:n[0])},function(t){return e.onChange(t)}]}},[t("option",{attrs:{value:"",selected:""}},[e._v("Select "+e._s(e.fieldInfo.label))]),e._l(e.fieldInfo.config.OptionsForBind,(function(n,r){return e.fieldInfo.config.OptionsForBind.length>0?t("option",{key:r,domProps:{value:n.value,selected:e.fieldInfo.value==n.value}},[e._v(e._s(n.name)+" ")]):e._e()}))],2),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e()]),n[0]?t("span",{staticClass:"invalid-feedback d-block"},[e._v(e._s(n[0]))]):e._e()]}}])})}),tr=[],nr={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},watch:{fieldInfo:{handler:function(){this.GetSelectOptions()},deep:!0}},data(){return{optionList:[],dependentOptions:[]}},created:async function(){await this.GetSelectOptions()},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onChange(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo),this.$emit("UpdateKeyValue",1)},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"},GetSelectOptions:async function(){var e=this;e.fieldInfo.hasOwnProperty("config")&&0==e.fieldInfo.config.hasOwnProperty("OptionsForBind")&&(e.fieldInfo.config.OptionsForBind=[]),e.fieldInfo.hasOwnProperty("picklist_options")&&"Lookup"!=e.fieldInfo.picklist_options?e.fieldInfo.config.OptionsForBind=e.MakeArray(e.fieldInfo.picklist_options):e.fieldInfo.hasOwnProperty("select_options")&&e.fieldInfo.select_options.length>0?e.fieldInfo.config.OptionsForBind=e.MakeNormalArray(e.fieldInfo.select_options):e.fieldInfo.hasOwnProperty("config")&&e.fieldInfo.config.hasOwnProperty("OptionsForBind")&&e.fieldInfo.config.OptionsForBind.length>0?e.fieldInfo.config.OptionsForBind=e.fieldInfo.config.OptionsForBind:e.fieldInfo.hasOwnProperty("config")&&e.fieldInfo.config.hasOwnProperty("option_request_url")&&e.fieldInfo.config.option_request_url.length>0&&await d.a.get(e.fieldInfo.config.option_request_url,{headers:{Authorization:"Bearer "+e.fieldInfo.config.token}}).then(t=>{console.log(t.data),t.data&&t.data.hasOwnProperty("DATA")?e.fieldInfo.config.OptionsForBind=t.data.DATA:e.fieldInfo.config.OptionsForBind=t.data}).catch(e=>{console.log("Error on binding slect option in tg-control- "+e)}),this.$forceUpdate()},MakeNormalArray:function(e){if(e)try{return JSON.parse(e)}catch(t){return e}else e=[]},MakeArray:function(e,t){var n=[],r=String(e).split(",");if("radio"==t||"checkbox"==t){if(r.length>0)for(let o of r)if(o.split("|").length>1){var i={name:o.split("|")[0].trim(),value:o.split("|")[1].trim()};n.push(i)}else{i={name:o.trim(),value:o.trim()};n.push(i)}}else if(r.length>0)for(let o of r){i={name:o.trim(),value:o.trim()};n.push(i)}return n},RenderOptions(){var e=[],t=this;this.optionList.length>0?Array.isArray(this.optionList)?(this.optionList.forEach((t,n)=>{e.push({value:t.value,name:t.hasOwnProperty("text")?t.text:t.name})}),t.fieldInfo.hasOwnProperty("select_options")||(t.fieldInfo.select_options=[]),t.fieldInfo.select_options=e):console.log(" type of the optionList is not array - "+typeof this.optionList):console.log(" No select options found for the - "+t.fieldInfo.name)}}},rr=nr,ir=Jn(rr,er,tr,!1,null,null,null),or=ir.exports,ar=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{disabled:e.fieldInfo.disabled,name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("span",{class:{"d-flex ":!0,"is-invalid":n[0]}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{name:e.fieldInfo.name,id:e.fieldInfo.name,type:"text",placeholder:e.fieldInfo.placeholder,disabled:e.fieldInfo.disabled},domProps:{value:e.fieldInfo.value},on:{change:function(t){return e.onChange(t)},blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)},input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}}),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e()]),n[0]?t("span",{staticClass:"invalid-feedback",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},sr=[],lr={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data:function(){return{}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onChange:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},onBlur:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onBlur&&this.fieldInfo.config.onBlur(e,this.fieldInfo)},onKeyUp:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onKeyUp&&this.fieldInfo.config.onKeyUp(e,this.fieldInfo)},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"}}},ur=lr,dr=Jn(ur,ar,sr,!1,null,null,null),cr=dr.exports,fr=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{disabled:e.fieldInfo.disabled,name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("span",{class:{"d-flex ":!0,"is-invalid":n[0]}},["checkbox"===(e.showPassword?"text":"password")?t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{name:e.fieldInfo.name,id:e.fieldInfo.name,placeholder:e.fieldInfo.placeholder,disabled:e.fieldInfo.disabled,type:"checkbox"},domProps:{checked:Array.isArray(e.fieldInfo.value)?e._i(e.fieldInfo.value,null)>-1:e.fieldInfo.value},on:{change:[function(t){var n=e.fieldInfo.value,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&e.$set(e.fieldInfo,"value",n.concat([o])):a>-1&&e.$set(e.fieldInfo,"value",n.slice(0,a).concat(n.slice(a+1)))}else e.$set(e.fieldInfo,"value",i)},function(t){return e.onChange(t)}],blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)}}}):"radio"===(e.showPassword?"text":"password")?t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{name:e.fieldInfo.name,id:e.fieldInfo.name,placeholder:e.fieldInfo.placeholder,disabled:e.fieldInfo.disabled,type:"radio"},domProps:{checked:e._q(e.fieldInfo.value,null)},on:{change:[function(t){return e.$set(e.fieldInfo,"value",null)},function(t){return e.onChange(t)}],blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{name:e.fieldInfo.name,id:e.fieldInfo.name,placeholder:e.fieldInfo.placeholder,disabled:e.fieldInfo.disabled,type:e.showPassword?"text":"password"},domProps:{value:e.fieldInfo.value},on:{change:function(t){return e.onChange(t)},blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)},input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}}),t("i",{class:{fa:!0,"fa-eye":!e.showPassword,"fa-eye-slash":e.showPassword},staticStyle:{position:"absolute",right:"0",padding:"8px",color:"#b7b7b7"},on:{click:e.showPasswordFunc}}),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e()]),n[0]?t("span",{staticClass:"invalid-feedback",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},hr=[],pr={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data:function(){return{showPassword:!1}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onChange:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},onBlur:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onBlur&&this.fieldInfo.config.onBlur(e,this.fieldInfo)},onKeyUp:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onKeyUp&&this.fieldInfo.config.onKeyUp(e,this.fieldInfo)},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"},showPasswordFunc:function(){this.showPassword=!this.showPassword}}},vr=pr,mr=Jn(vr,fr,hr,!1,null,null,null),gr=mr.exports,br=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{disabled:e.fieldInfo.disabled,name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("DatePicker",{class:{"input-group w-100":!0,"is-invalid":n[0]},staticStyle:{"flex-wrap":"nowrap"},attrs:{locale:e.lang,is24hr:e.is24hr,mode:e.mode,disabled:e.fieldInfo.disabled,masks:e.masks,popover:e.popover,"min-date":e.getMinmumDate(e.fieldInfo),"max-date":e.getMaxDate(e.fieldInfo),"minute-increment":e.minuteIncrement},on:{input:function(t){return e.onChange(t,e.inputValue)}},scopedSlots:e._u([{key:"default",fn:function({inputValue:r,inputEvents:i,togglePopover:o,hidePopover:a}){return[t("input",e._g({ref:"inputDatePicker"+e.fieldInfo.name,class:{"form-control w-100":!0,"is-invalid":n[0]},attrs:{autocomplete:"off",disabled:e.fieldInfo.disabled,name:e.fieldInfo.name,placeholder:e.fieldInfo.label},domProps:{value:r},on:{blur:function(t){return e.onBlur(t,r,a)}}},i)),t("div",{staticClass:"input-group-append"},[t("span",{staticClass:"input-group-text",on:{click:function(t){e.fieldInfo.disabled||o()},blur:function(t){return e.onBlur(t,e.field,a)},change:function(t){return e.onChange(t)}}},[t("i",{class:{fa:!0,"fa-calendar":"dateTime"==e.mode||"date"==e.mode,"fa-clock-o":"time"==e.mode}})])])]}}],null,!0),model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}}),t("span",{directives:[{name:"show",rawName:"v-show",value:n[0],expression:"errors[0]"}],ref:"errrorMessage",staticClass:"invalid-feedback d-block"},[e._v(e._s(n[0]))])]}}])})},yr=[],_r=r("404b"),$r=r.n(_r),xr={components:{Field:Ye,DatePicker:$r.a},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},watch:{fieldInfo:{handler:function(){},deep:!0}},data:function(){return{popover:{visibility:"click"},masks:{},date:new Date,mode:"date",is24hr:!1,minuteIncrement:5}},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},getMinmumDate(e){if(e.config&&this.fieldInfo.config.minDate)return e.config.minDate},getMaxDate(e){if(e.config&&this.fieldInfo.config.maxDate)return e.config.maxDate},onBlur(t,n,r){try{r(),t.onBlur[0](),t.onBlur[1]()}catch(i){}this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onBlur&&this.fieldInfo.config.onBlur(e,this.fieldInfo,n)},onChange:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo,t)}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang),this.fieldInfo.config&&this.fieldInfo.config.is24hr&&(this.is24hr=this.fieldInfo.config.is24hr),this.fieldInfo.config&&this.fieldInfo.config.mode&&(this.mode=this.fieldInfo.config.mode),this.fieldInfo.config&&this.fieldInfo.config.minuteIncrement&&(this.minuteIncrement=parseInt(this.fieldInfo.config.minuteIncrement)),this.fieldInfo.config&&this.fieldInfo.config.format&&("date"==this.mode?this.masks.input=this.fieldInfo.config.format:"dateTime"==this.mode?this.masks.inputDateTime=this.fieldInfo.config.format:"time"==this.mode&&(this.masks.inputTime=this.fieldInfo.config.format))}},wr=xr,Or=(r("d6ff"),Jn(wr,br,yr,!1,null,null,null)),kr=Or.exports,Ir=function(){var e=this,t=e._self._c;return t("Field",{attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[e._l(e.renderOptions(e.fieldInfo),(function(r,i){return t("label",{key:i,class:{"form-check form-check-inline":!0,"is-invalid":n[0]},attrs:{disabled:e.fieldInfo.disabled}},[t("div",{staticClass:"custom-control custom-checkbox custom-control-inline"},[t("input",{staticClass:"custom-control-input",attrs:{disabled:e.fieldInfo.disabled,name:e.fieldInfo.name+"_"+i,id:e.fieldInfo.name+"_"+i,type:"checkbox","data-value":r.value},domProps:{checked:e.isChecked(r)},on:{change:function(t){return e.onChange(t,e.field)}}}),t("label",{staticClass:"custom-control-label",attrs:{for:e.fieldInfo.name+"_"+i}},[e._v(" "+e._s(r.name)+" ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],attrs:{type:"hidden"},domProps:{value:e.fieldInfo.value},on:{input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}})])])})),n[0]?t("span",{staticClass:"invalid-feedback"},[e._v(e._s(n[0]))]):e._e()]}}])})},Sr=[],Cr={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},renderOptions:function(e){if(e.config&&this.fieldInfo.config.OptionsForBind){var t=[].constructor;return this.fieldInfo.config.OptionsForBind.constructor===t?e.config.OptionsForBind:null}},onChange:function(e,t){"array"!=typeof this.fieldInfo.value&&"object"!=typeof this.fieldInfo.value&&""==this.fieldInfo.value?this.fieldInfo.value=[]:"array"!=typeof this.fieldInfo.value&&"object"!=typeof this.fieldInfo.value&&(this.fieldInfo.value=this.fieldInfo.value.toString().split()),e.target.checked?(this.fieldInfo.value="string"==typeof this.fieldInfo.value?[]:this.fieldInfo.value,this.fieldInfo.value.push(e.target.attributes["data-value"].value)):this.fieldInfo.value.splice(this.fieldInfo.value.indexOf(e.target.attributes["data-value"].value),1);try{t.onBlur[0](),t.onBlur[1]()}catch(n){}this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo),this.$emit("UpdateKeyValue",1)},isChecked:function(t){try{return"array"==typeof this.fieldInfo.value||"object"==typeof this.fieldInfo.value?this.fieldInfo.value.includes(t.value):this.fieldInfo.value==t.value}catch(e){console.log("Checkbox value should be in string or array")}}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang),this.fieldInfo&&this.fieldInfo.value&&"array"!=typeof this.fieldInfo.value&&"object"!=typeof this.fieldInfo.value&&(this.fieldInfo.value=this.fieldInfo.value.toString().split())}},Er=Cr,Dr=Jn(Er,Ir,Sr,!1,null,null,null),jr=Dr.exports,Pr=function(){var e=this,t=e._self._c;return t("Field",{attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules,slim:""},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return e._l(e.renderOptions(e.fieldInfo),(function(r,i){return t("label",{key:i,class:{"form-check form-check-inline":!0,"is-invalid":n[0]},attrs:{disabled:e.fieldInfo.disabled}},[t("div",{staticClass:"custom-control custom-radio custom-control-inline"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],attrs:{type:"hidden"},domProps:{value:e.fieldInfo.value},on:{input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}}),t("input",{staticClass:"custom-control-input",attrs:{disabled:e.fieldInfo.disabled,name:e.fieldInfo.name,id:e.fieldInfo.name+"_"+i,type:"radio","data-value":r.value},domProps:{checked:r.value==e.fieldInfo.value},on:{change:function(t){return e.onChange(t,e.field)}}}),t("label",{staticClass:"custom-control-label",attrs:{for:e.fieldInfo.name+"_"+i}},[e._v(e._s(r.name))])])])}))}}])})},Ar=[],Tr={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},renderOptions:function(e){if(e.config&&this.fieldInfo.config.OptionsForBind){var t=[].constructor;return this.fieldInfo.config.OptionsForBind.constructor===t?e.config.OptionsForBind:null}},onChange(e,t){"array"!=typeof this.fieldInfo.value&&"object"!=typeof this.fieldInfo.value&&(this.fieldInfo.value=this.fieldInfo.value.toString().split()),e.target.checked&&(this.fieldInfo.value=e.target.attributes["data-value"].value);try{t.onBlur[0](),t.onBlur[1]()}catch(n){}this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo),this.$emit("UpdateKeyValue",1)}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},Mr=Tr,Nr=Jn(Mr,Pr,Ar,!1,null,null,null),Fr=Nr.exports,Rr=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("div",{class:{"w-100 d-flex dynamic-multiselect":!0,"is-invalid":n[0]}},[t("Multiselect",{ref:"multiselect",class:{"p-0 w-100":!0,"is-invalid":n[0]},attrs:{disabled:e.fieldInfo.disabled,options:e.options,label:"label","track-by":"label","close-on-select":"tag"!=e.fieldInfo.mode,searchable:!0,multiple:"tag"==e.fieldInfo.mode,taggable:!1,limit:2,placeholder:e.fieldInfo.placeholder},on:{remove:e.onRemove,"search-change":e.onSearch,select:e.onChange},model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}},[t("span",{attrs:{slot:"noOptions"},slot:"noOptions"},[e._v(" Type to search "+e._s(e.fieldInfo.display_name)+" ")]),t("template",{slot:"noResult"},[t("span",[e._v("No record found.")])])],2),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e()],1),n[0]?t("span",{staticClass:"invalid-feedback"},[e._v(e._s(n[0]))]):e._e()]}}])})},Lr=[],zr=r("8e5f"),Br=r.n(zr),Yr={components:{Multiselect:Br.a,Field:Ye},props:{lang:{type:String,default:"en"},mode:{type:String,default:"single"},fieldInfo:{type:Object,required:!0}},watch:{fieldInfo:{handler:function(e,t){let n=this;if(console.log("Multi drop down",e,t),e.config&&e.config.OptionsForBind){try{n.options=[],e.config.OptionsForBind.forEach((function(e){let t={value:e.value,label:e.name};n.options.push(t)}))}catch(r){}try{if("undefined"!=typeof e.value&&""!=e.value&&e.value.length>0&&("string"==typeof e.value||"number"==typeof e.value)){let t=e.value.toString().split(","),r=[];t.forEach((function(e){let t=n.options.filter(t=>t.value==e);r.push(t[0])})),r.length>1?e.value=r:e.value=r[0]}}catch(r){console.log("Error while assigning value of dropdown")}}},deep:!0}},created:function(){let e=this;if("undefined"!=typeof e.fieldInfo.value&&""!=e.fieldInfo.value||(e.fieldInfo.value=[]),"undefined"!=typeof e.fieldInfo.mode&&""!=e.fieldInfo.mode||(e.fieldInfo.mode="single"),e.fieldInfo.config&&e.fieldInfo.config.OptionsForBind){try{e.fieldInfo.config.OptionsForBind.forEach((function(t){let n={value:t.value,label:t.name};e.options.push(n)}))}catch(t){console.log(t)}try{if("undefined"!=typeof e.fieldInfo.value&&""!=e.fieldInfo.value&&e.fieldInfo.value.length>0&&("string"==typeof e.fieldInfo.value||"number"==typeof e.fieldInfo.value)){let t=e.fieldInfo.value.toString().split(","),n=[];t.forEach((function(t){let r=e.options.filter(e=>e.value==t);n.push(r[0])})),n.length>1?e.fieldInfo.value=n:e.fieldInfo.value=n[0]}}catch(t){console.log("Error while assigning value of dropdown")}}},data:function(){return{isTouched:!1,value:[],selectedHtml:"",options:[]}},computed:{isInvalid(){return this.isTouched&&0===this.value.length}},methods:{onRemove:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onRemove&&this.fieldInfo.config.onRemove(e,t,this.fieldInfo),this.$emit("UpdateKeyValue",1)},GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onSearch:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onSearchChange&&this.fieldInfo.config.onSearchChange(t,this.fieldInfo,e)},onChange:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(t,this.fieldInfo,e),this.$emit("UpdateKeyValue",1)},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},Vr=Yr,Ur=(r("f0ed"),r("9b7c"),Jn(Vr,Rr,Lr,!1,null,"ed2e7ac6",null)),qr=Ur.exports,Hr=function(){var e=this,t=e._self._c;return t("Field",{attrs:{disabled:e.fieldInfo.disabled,name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("div",{class:{"dynamic-form-toggle":!0,"is-invalid":n[0]}},[t("div",{class:{"switch dynamic-form":!0,disabled:1==e.fieldInfo.disabled},attrs:{tabindex:"0",role:"switch"},on:{click:function(t){return e.onChange(e.fieldInfo.value)}}},[t("input",{staticStyle:{display:"none"},attrs:{type:"checkbox",id:"toggle",name:"toggle",disabled:e.fieldInfo.disabled},domProps:{checked:1==e.fieldInfo.value}}),t("div",{class:{"slider round":!0,"toggle-no":0==e.fieldInfo.value||""==e.fieldInfo.value,"toggle-yes":1==e.fieldInfo.value}},[t("span",{class:"slider-"+(e.fieldInfo.value?"yes":"no")},[e._v(e._s(e.fieldInfo.value?"Yes":"No")+" ")])])])]),n[0]?t("span",{staticClass:"invalid-feedback",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},Wr=[],Gr={data:function(){return{classList:{container:"switch dynamic-form",toggle:"slider round",toggleOn:"toggle-yes",toggleOff:"toggle-no",toggleOnDisabled:"",toggleOffDisabled:"",handle:"",handleOn:"slider-yes",handleOff:"slider-no",handleOnDisabled:"",handleOffDisabled:"",label:"slider-no"}}},components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang),""==this.fieldInfo.value||"No"==this.fieldInfo.value||"no"==this.fieldInfo.value||"Off"==this.fieldInfo.value||"off"==this.fieldInfo.value?this.fieldInfo.value=!1:"Yes"!=this.fieldInfo.value&&"yes"!=this.fieldInfo.value&&"On"!=this.fieldInfo.value&&"on"!=this.fieldInfo.value||(this.fieldInfo.value=!0)},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onChange(){1!=this.fieldInfo.disabled&&(""==this.fieldInfo.value&&(this.fieldInfo.value=!1),this.fieldInfo.value=!this.fieldInfo.value,this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(this.fieldInfo.value,this.fieldInfo),this.$emit("UpdateKeyValue",1))}}},Kr=Gr,Zr=Jn(Kr,Hr,Wr,!1,null,null,null),Jr=Zr.exports,Xr=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),disabled:e.fieldInfo.disabled,rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("vue-tel-input",{staticClass:"w-100",attrs:{"default-country":e.getDefaultFlag(e.fieldInfo),mode:"international",validCharactersOnly:!0},on:{open:function(t){return e.onDropdownOpen(!0)},close:function(t){return e.onDropdownOpen(!1)},input:e.onInput},scopedSlots:e._u([{key:"arrow-icon",fn:function(){return[t("span",{staticClass:"vti__dropdown-arrow"},[e._v(e._s(e.open?"▲":"▼"))])]},proxy:!0}],null,!0),model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}}),n[0]?t("span",{staticClass:"invalid-feedback d-block",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},Qr=[],ei=r("e75b"),ti=r.n(ei),ni=(r("bf68"),{install:(e,t)=>{e.use(ti.a,{})},components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data:function(){return{phoneError:!1,open:!1}},methods:{onDropdownOpen(e){this.open=e},GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onInput(e,t,n){t&&0==(null===t||void 0===t?void 0:t.valid)?this.phoneError=!0:null!==t&&void 0!==t&&t.formatted&&null!==t&&void 0!==t&&t.valid&&(this.fieldInfo.value=t.formatted,this.phoneError=!1)},getDefaultFlag(e){return e.config&&this.fieldInfo.config.countryCode?e.config.countryCode:"us"}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}}),ri=ni,ii=Jn(ri,Xr,Qr,!1,null,null,null),oi=ii.exports,ai=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("div",{class:{"w-100 d-flex":!0,"is-invalid":n[0]}},[t("Multiselect",{class:{"p-0 w-100":!0,"is-invalid":n[0]},attrs:{"filter-results":!1,object:!0,showNoOptions:!0,placeholder:e.fieldInfo.placeholder,searchable:!0,label:"label","track-by":"label","show-labels":!1,"show-no-results":!1,"internal-search":!0,limit:2,disabled:e.fieldInfo.disabled,options:e.options,multiple:"tag"==e.fieldInfo.mode,taggable:!1,"clear-on-select":!1,"close-on-select":"tag"!=e.fieldInfo.mode,"open-direction":"bottom"},on:{remove:e.onRemove,"search-change":e.onSearch,select:e.onChange},scopedSlots:e._u([{key:"noResult",fn:function(){return[t("span",[e._v("Oops! No elements found. Consider changing the search query.")])]},proxy:!0}],null,!0),model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}},[t("span",{attrs:{slot:"noOptions"},slot:"noOptions"},[e._v(" Type to search "+e._s(e.fieldInfo.display_name)+" ")])]),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e()],1),n[0]?t("span",{staticClass:"invalid-feedback"},[e._v(e._s(n[0]))]):e._e()]}}])})},si=[],li={components:{Multiselect:Br.a,Field:Ye},props:{lang:{type:String,default:"en"},mode:{type:String,default:"single"},fieldInfo:{type:Object,required:!0}},watch:{fieldInfo:{handler:function(e,t){let n=this;if(console.log("Multi drop down",e,t),e.config&&e.config.OptionsForBind){try{n.options=[],e.config.OptionsForBind.forEach((function(e){let t={value:e.value,label:e.name};n.options.push(t)}))}catch(r){}try{if("undefined"!=typeof e.value&&""!=e.value&&e.value.length>0&&("string"==typeof e.value||"number"==typeof e.value)){let t=e.value.toString().split(","),r=[];t.forEach((function(e){let t=n.options.filter(t=>t.value==e);r.push(t[0])})),r.length>1?e.value=r:e.value=r[0]}}catch(r){console.log("Error while assigning value of dropdown")}}},deep:!0}},created:function(){let e=this;if("undefined"!=typeof e.fieldInfo.value&&""!=e.fieldInfo.value||(e.fieldInfo.value=[]),"undefined"!=typeof e.fieldInfo.mode&&""!=e.fieldInfo.mode||(e.fieldInfo.mode="single"),e.fieldInfo.config&&e.fieldInfo.config.OptionsForBind){try{e.fieldInfo.config.OptionsForBind.forEach((function(t){let n={value:t.value,label:t.name};e.options.push(n)}))}catch(t){console.log(t)}try{if("undefined"!=typeof e.fieldInfo.value&&""!=e.fieldInfo.value&&e.fieldInfo.value.length>0&&("string"==typeof e.fieldInfo.value||"number"==typeof e.fieldInfo.value)){let t=e.fieldInfo.value.toString().split(","),n=[];t.forEach((function(t){let r=e.options.filter(e=>e.value==t);n.push(r[0])})),n.length>1?e.fieldInfo.value=n:e.fieldInfo.value=n[0]}}catch(t){console.log("Error while assigning value of dropdown")}}},data:function(){return{isTouched:!1,value:[],options:[]}},computed:{isInvalid(){return this.isTouched&&0===this.value.length}},methods:{onRemove:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onRemove&&this.fieldInfo.config.onRemove(e,t,this.fieldInfo),this.$emit("UpdateKeyValue",1)},GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},onSearch:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onSearchChange&&this.fieldInfo.config.onSearchChange(t,this.fieldInfo,e)},onChange:function(e,t){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(t,this.fieldInfo,e),this.$emit("UpdateKeyValue",1)},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},ui=li,di=(r("5ee6"),Jn(ui,ai,si,!1,null,null,null)),ci=di.exports,fi=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.fieldInfo.value,expression:"fieldInfo.value"}],class:{"form-control":!0,"is-invalid":n[0]},attrs:{disabled:e.fieldInfo.disabled,rows:e.getRows(e.fieldInfo),cols:e.getColumns(e.fieldInfo),placeholder:e.fieldInfo.placeholder},domProps:{value:e.fieldInfo.value},on:{change:function(t){return e.onChange(t)},blur:function(t){return e.onBlur(t)},keyup:function(t){return e.onKeyUp(t)},input:function(t){t.target.composing||e.$set(e.fieldInfo,"value",t.target.value)}}}),n[0]?t("span",{staticClass:"invalid-feedback",attrs:{name:e.fieldInfo.name}},[e._v(e._s(n[0]))]):e._e()]}}])})},hi=[],pi={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},getColumns(e){if(e.config&&this.fieldInfo.config.cols)return e.config.cols},getRows(e){if(e.config&&this.fieldInfo.config.rows)return e.config.rows},onChange:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},onBlur:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onBlur&&this.fieldInfo.config.onBlur(e,this.fieldInfo)},onKeyUp:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onKeyUp&&this.fieldInfo.config.onKeyUp(e,this.fieldInfo)}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},vi=pi,mi=Jn(vi,fi,hi,!1,null,null,null),gi=mi.exports,bi=function(){var e=this,t=e._self._c;return t("div",{ref:"colorpicker",staticClass:"form-group mb-0"},[t("Field",{staticClass:"input-group color-picker",attrs:{name:e.GetDisplayLabel(e.fieldInfo)},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("input",{staticClass:"form-control",attrs:{disabled:"disabled",type:"text",name:e.fieldInfo.name,pattern:"^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$"},domProps:{value:e.fieldInfo.value},on:{input:e.updateFromInput,change:e.updateFromInput}}),t("div",{staticClass:"input-group-addon color-picker-container",on:{click:function(t){return e.showPicker()}}},[t("ColorPicker",{attrs:{theme:"light",disabled:e.fieldInfo.disabled},on:{changeColor:e.updateFromPicker},model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}})],1)]}}])})],1)},yi=[],_i=r("b9d7"),$i=r.n(_i),xi={props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},components:{Field:Ye,ColorPicker:$i.a},data:function(){return{color:"#000000",suckerCanvas:null,suckerArea:[],isSucking:!0,colorValue:"",displayPicker:!1}},created(){this.fieldInfo&&this.fieldInfo.value?this.color=this.fieldInfo.value:this.fieldInfo.value=this.color},mounted:function(){this.setColor(this.color||"#59c7f9"),this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},setColor:function(e){this.updateColors(e),this.colorValue=e},updateColors:function(e){if("#"==e.slice(0,1))this.colors={hex:e};else if("rgba"==e.slice(0,4)){var t=e.replace(/^rgba?\(|\s+|\)$/g,"").split(","),n="#"+((1<<24)+(parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).slice(1);this.colors={hex:n,a:t[3]}}this.isSucking=!0},showPicker:function(){document.addEventListener("click",this.documentClick),this.displayPicker=!0},hidePicker:function(){document.removeEventListener("click",this.documentClick),this.displayPicker=!1},togglePicker:function(){this.displayPicker?this.hidePicker():this.showPicker()},updateFromInput:function(e){var t=new RegExp("^#[0-9A-F]{6}$"),n=this.colorValue;if(!t.test(n))return!1;this.updateColors(this.colorValue),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},updateFromPicker(e){this.colors=e,1==e.rgba.a?(this.colorValue=e.hex,this.fieldInfo.value=this.colorValue):(this.colorValue="rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+e.rgba.a+")",this.fieldInfo.value=this.colorValue),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo)},documentClick:function(e){var t=this.$refs.colorpicker,n=e.target;t===n||"undefined"==typeof t||t.contains(n)||(this.hidePicker(),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo))}},watch:{colorValue:function(e){e&&(this.updateColors(e),this.updateFromInput(),this.$emit("input",e))}}},wi=xi,Oi=(r("fae6"),Jn(wi,bi,yi,!1,null,null,null)),ki=Oi.exports,Ii=function(){var e=this,t=e._self._c;return t("div",{staticClass:"col-12 p-0 fileFieldAttachment",attrs:{id:"File_"+e.fieldInfo.name}},["undefined"!=typeof e.fieldInfo.config.reject&&e.fieldInfo.config.reject.length>0?t("div",{staticClass:"col-12 mb-2 mt-2"},[t("label",[e._v("Disallowed File Type:")]),e._l(e.fieldInfo.config.reject,(function(n){return t("div",{staticClass:"mx-2 d-inline-block doc-ico-legend"},[t("em",{staticClass:"fa text-primary",class:n.iconClass,attrs:{id:"helpText"}}),e._v(" "+e._s(n.fileType)+" ")])}))],2):e._e(),"undefined"!=typeof e.fieldInfo.config.accept&&e.fieldInfo.config.accept.length>0?t("div",{staticClass:"col-12 mb-2 mt-2"},[t("label",[e._v("Allowed File Type:")]),e._l(e.fieldInfo.config.accept,(function(n){return t("div",{staticClass:"mx-2 d-inline-block doc-ico-legend"},[t("em",{staticClass:"fa text-primary",class:n.iconClass,attrs:{id:"helpText"}}),e._v(" "+e._s(n.fileType)+" ")])}))],2):e._e(),t("div",{staticClass:"already-uploaded-file"},e._l(e.getSelectedFile(),(function(n){return t("div",{attrs:{title:n.attachmentName}},[t("span",{staticStyle:{"font-size":"24px"}},[t("i",{class:"fa "+e.getFileIcon(n.attachmentName)}),e.isShowCrossOnSelectedFile()?t("i",{staticClass:"fa fa-times cross",on:{click:function(t){return e.onDelete(n)}}}):e._e()]),t("br"),t("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.onClickSelectedFile(n)}}},[e._v(e._s(e.getFileName(n.attachmentName)))])])})),0),t("div",{staticClass:"file-upload"},[t("div",{class:{"file-upload__area":!0,highlight:e.isDragging},on:{click:e.openFilePopup,dragover:function(t){return t.preventDefault(),e.dragOver.apply(null,arguments)},dragleave:e.dragLeave,drop:e.handleDrop}},[t("div",[0==e.previewFiles.length?t("span",[e._v("Drop or click here to upload files")]):e._e(),t("input",{staticClass:"d-none",attrs:{type:"file",id:"customFile_"+e.fieldInfo.name,disabled:e.fieldInfo.disabled,multiple:e.canUploadMultipleFile()},on:{change:function(t){return e.onChange(t)}}}),e.errors.length>0?t("div",e._l(e.errors,(function(n,r){return t("div",{key:r,staticClass:"file-upload__error"},[t("span",[e._v(e._s(n))])])})),0):e._e()]),e._l(e.previewFiles,(function(n,r){return t("div",{key:r,staticClass:"upload-preview"},[n.isImage?t("img",{staticClass:"file-image",attrs:{src:n.url,alt:""}}):e._e(),n.isImage?e._e():t("div",{staticClass:"file-extention"},[e._v(" "+e._s(n.fileExtention)+" ")]),t("span",{staticClass:"file-name"},[e._v(" "+e._s(n.name)+" "+e._s(n.isImage?"."+n.fileExtention:"")+" ")]),t("span",{staticClass:"crossimg"},[t("a",{staticClass:"fa fa-times text-danger",attrs:{href:"javascript:void(0)","data-index":r},on:{click:function(t){return e.RemoveFile(t,r)}}})])])}))],2)])])},Si=[],Ci={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data:function(){return{isDragging:!1,maxSize:0,accept:"",reject:"",errors:[],file:{name:"",size:0,type:"",fileExtention:"",url:"",isImage:!1,isUploaded:!1},previewFiles:[]}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang),this.fieldInfo.placeholder&&(this.fileName=this.fieldInfo.placeholder),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("maxSize")&&(this.maxSize=this.fieldInfo.config.maxSize),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("accept")&&(this.accept=Array.prototype.map.call(this.fieldInfo.config.accept,(function(e){return e.fileType})).join(",")),this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("reject")&&(this.reject=Array.prototype.map.call(this.fieldInfo.config.reject,(function(e){return e.fileType})).join(","))},methods:{openFilePopup(){document.querySelectorAll("#File_"+this.fieldInfo.name+' [type="file"]')[0].click()},RemoveFile(e,t){e.stopPropagation();const n=new DataTransfer,r=document.querySelectorAll("#File_"+this.fieldInfo.name+' [type="file"]')[0],{files:i}=r;this.previewFiles=[];for(let s=0;s<i.length;s++){const e=i[s];if(t!==s){n.items.add(e);var o=e.name.split(".").pop(),a=["jpg","jpeg","png","gif"].includes(o);let t=new FileReader;t.addEventListener("load",()=>{this.file={name:e.name.split(".").shift(),size:Math.round(e.size/1024/1024*100)/100,type:e.type,fileExtention:o,isImage:a,url:t.result,isUploaded:!0},this.previewFiles.push(this.file)},!1),t.readAsDataURL(e)}}r.files=n.files,this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onRemoveFile&&this.fieldInfo.config.onRemoveFile(e,t,this.fieldInfo)},onChange(e){if(this.errors=[],e.target.files&&e.target.files[0]){for(let o=0;o<e.target.files.length;o++){const a=e.target.files[o];if(this.isFileValid(a)){var t=Math.round(a.size/1024/1024*100)/100,n=a.name.split(".").pop(),r=a.name.split(".").shift(),i=["jpg","jpeg","png","gif"].includes(n);console.log(t,n,r,i);let e=new FileReader;e.addEventListener("load",()=>{this.file={name:r,size:t,type:a.type,fileExtention:n,isImage:i,url:e.result,isUploaded:!0},0==this.canUploadMultipleFile()&&(this.previewFiles=[]),this.previewFiles.push(this.file)},!1),e.readAsDataURL(a)}else console.log("Invalid file")}0==this.errors.length&&(this.fieldInfo.value=e.target.files,this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo))}},isFileSizeValid(e){e<=this.maxSize?console.log("File size is valid"):this.errors.push(`File size should be less than ${this.maxSize} MB`)},isFileTypeValid(e){""!=this.reject&&this.reject.split(",").length>0&&this.reject.split(",").includes(e)&&this.errors.push("File type should not be "+this.reject),""!=this.accept&&this.accept.split(",").length>0&&(this.accept.split(",").includes(e)?console.log("File type is valid"):this.errors.push("File type should be "+this.accept))},isFileValid(e){return this.isFileSizeValid(Math.round(e.size/1024/1024*100)/100),this.isFileTypeValid(e.name.split(".").pop()),0===this.errors.length},canUploadMultipleFile(){return!(!this.fieldInfo.config||!this.fieldInfo.config.hasOwnProperty("multiple"))&&this.fieldInfo.config.multiple},getSelectedFile:function(){try{return this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("showSelectedFiles")?this.fieldInfo.config.showSelectedFiles:[]}catch(e){return console.log(e),[]}},isShowCrossOnSelectedFile:function(){try{return!this.fieldInfo.config||!this.fieldInfo.config.hasOwnProperty("showCrossOnSelectedFiles")||this.fieldInfo.config.showCrossOnSelectedFiles}catch(e){return console.log(e),!0}},getFileName:function(e){try{let t=e.split("."),n=t[0].length>4?t[0].substring(0,4)+"..."+t[1]:t[0]+"."+t[1];return n}catch(t){return e}},getFileIcon:function(e){let t=e.split("."),n="";switch(t[1]){case"jpg":case"png":case"jpeg":case"gif":n="fa-file-image-o";break;case"doc":case"docs":n="fa-file-word-o";break;case"pdf":n="fa-file-pdf-o";break;case"xlsx":case"xlsm":case"xlsb":case"xltx":case"xls":case"xlt":n="fa-file-excel-o";break;case"mp4":case"mov":case"wmv":case"flv":case"avi":case"webm":case"mkv":case"avchd":n="fa-file-video-o";break;case"pptx":n="fa-file-powerpoint-o";break;case"mp3":case"aac":case"wav":case"aiff":case"dsd":case"pcm":n="fa-file-audio-o";break;default:n="fa-file-o"}return n},onDelete:function(e){try{this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("onDeleteSelectedFiles")&&this.fieldInfo.config.onDeleteSelectedFiles(e)}catch(t){console.log(t)}},onClickSelectedFile:function(e){try{this.fieldInfo.config&&this.fieldInfo.config.hasOwnProperty("onClickSelectedFiles")&&this.fieldInfo.config.onClickSelectedFiles(e)}catch(t){console.log(t)}},dragOver:function(){this.isDragging=!0},dragLeave:function(){this.isDragging=!1},handleDrop:function(t){t.preventDefault(),this.isDragging=!1;const n=t.target.files||t.dataTransfer.files;if(n.length){for(let e=0;e<n.length;e++){const t=n[e];if(this.isFileValid(t)){var r=Math.round(t.size/1024/1024*100)/100,i=t.name.split(".").pop(),o=t.name.split(".").shift(),a=["jpg","jpeg","png","gif"].includes(i);console.log(r,i,o,a);let e=new FileReader;e.addEventListener("load",()=>{this.file={name:o,size:r,type:t.type,fileExtention:i,isImage:a,url:e.result,isUploaded:!0},0==this.canUploadMultipleFile()&&(this.previewFiles=[]),this.previewFiles.push(this.file)},!1),e.readAsDataURL(t)}else console.log("Invalid file")}0==this.errors.length&&(this.fieldInfo.value=n,this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onChange&&this.fieldInfo.config.onChange(e,this.fieldInfo))}}}},Ei=Ci,Di=Jn(Ei,Ii,Si,!1,null,null,null),ji=Di.exports,Pi=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:n}){return[t("div",{staticClass:"w-100 d-flex dynamic-multiselect"},[e.options&&e.options.length>0?t("tree-select",{staticClass:"w-100 form-control border-0 p-0",attrs:{multiple:!1,options:e.options,placeholder:e.fieldInfo.placeholder},model:{value:e.fieldInfo.value,callback:function(t){e.$set(e.fieldInfo,"value",t)},expression:"fieldInfo.value"}}):e._e(),e.showAddIcon()?t("div",{staticClass:"ml-2 mt-1"},[t("a",{class:e.addButtonClass()},[t("i",{class:e.addIconClass(),attrs:{alt:"+"},on:{click:function(t){return e.onAddButtonClick(t)}}})])]):e._e(),n[0]?t("span",{staticClass:"invalid-feedback d-block"},[e._v(e._s(n[0]))]):e._e()],1)]}}])})},Ai=[],Ti=r("ca17"),Mi=r.n(Ti),Ni={components:{"tree-select":Mi.a,Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},data(){return{options:[],scrollops:{maxHeight:200,vuescroll:{sizeStrategy:"number"}}}},mounted(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang),this.fieldInfo.hasOwnProperty("config")&&this.fieldInfo.config.hasOwnProperty("options")&&("undefined"!=typeof this.fieldInfo.config.OptionsForBind?this.options=this.fieldInfo.config.OptionsForBind:this.options=this.fieldInfo.config.options),this.fieldInfo.hasOwnProperty("placeholder")||(this.fieldInfo.placeholder="Select Location")},methods:{GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t},showAddIcon:function(){if(this.fieldInfo.config&&this.fieldInfo.config.showAddIcon)return this.fieldInfo.config.showAddIcon},onAddButtonClick:function(e){this.fieldInfo&&this.fieldInfo.config&&this.fieldInfo.config.onAddButtonClick&&this.fieldInfo.config.onAddButtonClick(e,this.fieldInfo)},addButtonClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIconBackground?"round-icon-small theme-primary "+this.fieldInfo.config.addIconBackground:"round-icon-small btn-dark theme-primary"},addIconClass:function(){return this.fieldInfo.config&&this.fieldInfo.config.addIcon?"fa text-white pt-7 font-18 "+this.fieldInfo.config.addIcon:"fa fa-plus text-white pt-7 font-18"}}},Fi=Ni,Ri=Jn(Fi,Pi,Ai,!1,null,null,null),Li=Ri.exports,zi=function(){var e=this,t=e._self._c;return t("Field",{staticClass:"w-100",attrs:{name:e.GetDisplayLabel(e.fieldInfo),rules:e.fieldInfo.validationRules},scopedSlots:e._u([{key:"default",fn:function({errors:t}){return[e._t("tgslot",null,{data:{fieldInfo:e.fieldInfo,error:t.length>0?t[0]:""}})]}}],null,!0)})},Bi=[],Yi={components:{Field:Ye},props:{lang:{type:String,default:"en"},fieldInfo:{type:Object,required:!0}},methods:{GetDisplayLabel:function(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label:e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name),t}},mounted:function(){this.fieldInfo.validationRules=Hn(this.fieldInfo.validationRules,this.lang)}},Vi=Yi,Ui=Jn(Vi,zi,Bi,!1,null,null,null),qi=Ui.exports,Hi={name:"DynamicForm",components:{ValidationObserver:Qe,NumericField:Qn,SelectField:or,TextField:cr,DateField:kr,CheckBoxField:jr,RadioField:Fr,MultiSelectField:qr,ToggleField:Jr,PhoneField:oi,CustomSelectField:ci,TextAreaField:gi,ColorField:ki,FileField:ji,TreeSelectField:Li,SlotField:qi,PasswordField:gr},data:function(){return{clickedButton:null,keyForComponentUpdate:0}},props:{lang:{type:String,default:"en"},buttons:{type:[Array,Boolean],default:[]},schema:{type:Array,default:[],required:!0},mandatorytext:{type:[String,Boolean],default:!1}},watch:{schema:{handler:function(e){let t=this;e.forEach((function(e,n){e.Data.forEach((function(e,n){t.isShowBasedOnDependentField(e)}))}))},deep:!0}},date:function(){return{validateForm:null}},mounted:function(){let e=this;e.validateForm=e.$refs.ObserverForm,e.schema.forEach((function(t,n){t.Data.forEach((function(t,n){e.isShowBasedOnDependentField(t)}))}))},methods:{UpdateKeyValue:function(e){this.keyForComponentUpdate++},updateProperty:function(e,t,n){var r=[];t.includes(".")?r=t.split("."):r.push(t),this.schema.forEach((function(t,i){t.Data.forEach((function(t,i){if(t.name==e){for(var o=t,a=r,s=a.length,l=0;l<s-1;l++){var u=a[l];o[u]||(o[u]={}),o=o[u]}o[a[s-1]]=n}}))}))},getPropertyValue:function(e,t){var n=[];t.includes(".")?n=t.split("."):n.push(t);var r=null;return this.schema.forEach((function(t,i){t.Data.forEach((function(t,i){if(t.name==e){r=t;for(var o=0;o<n.length;o++)if(r=r[n[o]],r&&o==n.length-1){r=r;break}}}))})),r},CheckIfAnyFieldVisibleInGroup:function(e){let t=!0;if(e.length>0){let n=e.filter(e=>{var t;return 1==(null===(t=e.visibility)||void 0===t||t)});t=n.length>0}else t=!1;return t},isShowBasedOnDependentField:function(t){let n=this;if(t&&t.config&&t.config.options&&(t.config.OptionsForBind=t.config.options),t&&t.config&&t.config.dependentOn&&t.config.dependentOn>0){let i=this.getFieldbyCustomFieldId(t.config.dependentOn),o=t.config.showWhen,a=JSON.parse(t.config.valueMapping);if(i&&i.value&&null!=i.value&&""!=i.value){let s=JSON.parse(o),l=[],u=s.value,d=i.value;if(s.first_value){u=s.first_value;let e=i.config.options.filter(e=>e.value==i.value);d=e[0].first_value}if(u)if("number"==typeof d||"string"==typeof d)l.push(d),u.length>0?u.includes(d)?(n.updateFieldInfoOptions(a,l,t,s.isValueNotDepend),t.visibility=!0):(t.visibility=!1,t.value=""):(t.visibility=!0,"undefined"!=typeof t.DependentFieldValue&&t.DependentFieldValue[0]==l[0]||(t.DependentFieldValue=l,t&&t.config&&t.config.onChange&&1!=s.isValueNotDepend&&t.config.onChange("FILL_DEPENDENT",t,l)));else{var r=[];try{d.length&&d.length>0?d.forEach((function(e,t){l.push(e.value),0==r.length&&(r=u.filter(t=>t==e.value))})):(l.push(i.value.value),r=u.filter(e=>e==d.value)),n.updateFieldInfoOptions(a,l,t,s.isValueNotDepend)}catch(e){l.push(i.value.value),n.updateFieldInfoOptions(a,l,t,s.isValueNotDepend),r=u.filter(e=>e==d.value)}a.length>0&&(r.length>0?t.visibility=!0:(t.config.OptionsForBind=[],t.visibility=!1,t.value=""))}else t.visibility=!0}else{let e=JSON.parse(o);1!=e.isFillOnly&&(1!=e.isValueNotDepend&&(t.config.OptionsForBind=[]),t.visibility=!1,t.value="")}}},updateFieldInfoOptions:function(e,t,n,r){if(e.length>0){let r=[];if(t.forEach((function(t,n){e.forEach((function(e){e.value==t&&r.push(e)}))})),r.length>0){let e=[];this.$set(n.config,"OptionsForBind",[]),r.forEach((function(t){let r=t.dependent;n.config.options.forEach((t,n)=>{let i=e.filter(e=>e.value==t.value);!r.includes(t.value)&&0!=r.length||0!=i.length||e.push(t)})})),this.$set(n.config,"OptionsForBind",e)}}else"undefined"!=typeof n.DependentFieldValue&&n.DependentFieldValue[0]==t[0]||(n.DependentFieldValue=t,n&&n.config&&n.config.onChange&&1!=r&&n.config.onChange("FILL_DEPENDENT",n,t))},ConvertDynamicFormObjToCustomFieldObj:function(t,n){let r=[];return t.forEach((function(t,i){t.Data.forEach((function(t,i){let o={field_name:t.name,field_value:t.value,custom_field_id:t.customFieldId};if("select"==t.dtCode&&1==n){let n="";if("object"==typeof t.value)try{"undefined"!=typeof t.value.length&&t.value.length>0?t.value.forEach((function(e){n=""==n?e.value:n+","+e.value})):n=t.value.value}catch(e){n=t.value.value}else n=t.value;o.field_value=n}r.push(o)}))})),r},MakeArray:function(e,t){var n=[],r=String(e).split(",");if("radio"==t||"checkbox"==t){if(r.length>0)for(let o of r)if(o.split("|").length>1){var i={name:o.split("|")[0].trim(),value:o.split("|")[1].trim()};n.push(i)}else{i={name:o.trim(),value:o.trim()};n.push(i)}}else if(r.length>0)for(let o of r){i={name:o.trim(),value:o.trim()};n.push(i)}return n},MakeNormalArray:function(e){if(e)try{return JSON.parse(e)}catch(t){return e}else e=[]},ConvertCustomFieldIntoDynamicFormObj:function(e){let t=[];var n=this;return e.length>0&&e.forEach((function(r,i){var o=r.group_id;let a=t.filter(e=>e.groupId==o);if(0==a.length){let i=e.filter(e=>e.group_id==o&&("YES"==e.form_field_visibility||"NO"==e.form_field_visibility&&1==e.system_is_required));if(i.length>0){var s;let e={groupLayoutType:r.group_layout_type,layoutType:r.layout_type,groupId:o,visibility:!0,group_name:null!==(s=n.$t(r.group_display_name))&&void 0!==s?s:n.$t(r.group_name),Data:[]};if(i.forEach((function(t,r){let i=[];"checkbox"==t.dt_code||"radio"==t.dt_code?i=n.MakeArray(t.select_options,t.dt_code):"select"==t.dt_code&&"Lookup"==t.picklist_options?i=n.MakeNormalArray(t.select_options):"select"!=t.dt_code&&"radio"!=t.dt_code&&"checkbox"!=t.dt_code||"Lookup"==t.picklist_options||null==t.picklist_options||(i=n.MakeArray(t.picklist_options,t.dt_code));let o={};"YES"==t.form_field_visibility&&(o["required"]=1==t.is_required,"undefined"!=typeof t.length&&null!=t.length&&t.length>"0"&&(o["max"]=t.length));let a="",s="date";"multi"==t.dropdown_type?a="tag":"DateField"==t.astype&&("date"==t.dt_code?s="date":"datetime"==t.dt_code?s="dateTime":"time"==t.dt_code&&(s="time"));let l="Enter "+n.$t(t.display_name);"SelectField"!=t.astype&&"CustomSelectField"!=t.astype&&"MultiSelectField"!=t.astype&&"TreeSelectField"!=t.astype||(l="Select "+n.$t(t.display_name));let u={customFieldId:t.custom_field_id,astype:"CKEditorField"==t.astype?"SlotField":t.astype,label:n.$t(t.display_name),name:t.name,value:t.value,placeholder:l,config:{mode:s,options:i,dependentOn:t.dependent_on,showWhen:t.show_when,valueMapping:t.value_mapping,fieldCode:t.field_code},mode:a,visibility:"YES"==t.form_field_visibility,validationRules:o,dtCode:t.dt_code};e.Data.push(u)})),e.Data.length>0){let t=e.Data.filter(e=>1==e.visibility||null!=e.config.dependentOn&&0==e.visibility);0==t.length&&(e.visibility=!1)}else 0==e.Data.length&&(e.visibility=!1);t.push(e)}}})),t},getFieldbyCustomFieldId:function(e){let t=null,n=this;return n.schema.forEach((function(n,r){n.Data.forEach((function(n,r){n.customFieldId==e&&(t=n)}))})),t},renderButtons:function(e){if(e){var t=[].constructor;return e.constructor===t?e:[]}},GetGroupName:function(e,t){return e?this.$t(e):this.$t(t)},isRequired:function(e){let t=!1;if(e){if("string"===typeof e)return e.includes("required");"undefined"===typeof e.length?Object.keys(e).forEach(n=>{"required"==n.toLowerCase()&&1==e[n]&&0==t&&(t=!0)}):"undefined"!==typeof e.length&&e.forEach((function(e){Object.keys(e).forEach(n=>{"required"==n.toLowerCase()&&1==e[n]&&0==t&&(t=!0)})}))}return t},onSubmit:function(){var e={};this.schema.forEach(t=>{t.Data.forEach(t=>{e[t.name]=t.value})}),console.log(e),this.$emit("OnSubmit",e,this.clickedButton),console.log(1001)},onButtonClick:function(e){let t="";t=e.name?e.name:e.text,this.clickedButton=t,e.hasOwnProperty("onClick")&&e.onClick(e)},GetDisplayLabel(e){var t="";return e.hasOwnProperty("label")&&e.label?t=e.label+":":e.hasOwnProperty("display_name")&&e.display_name&&(t=e.display_name+":"),t},SetFormValues(e){var t=this;e.forEach(e=>{for(var n in e)t.schema.forEach(t=>{t.Data.forEach(t=>{n==t.name&&(t.value=e[n])})})})},getGroupClasses:function(e){var t={"col-lg-4 col-md-6 col-sm-12":"triple"==e.groupLayoutType,"col-lg-6 col-md-6 col-sm-12":"double"==e.groupLayoutType,"col-lg-12 col-md-12 col-sm-12":"single"==e.groupLayoutType||"undefined"==typeof e.groupLayoutType};return e.hasOwnProperty("class")&&e.class&&(t[e.class]=!0),t}},created:function(){}},Wi=Hi,Gi=Jn(Wi,s,l,!1,null,null,null),Ki=Gi.exports,Zi={install(e,t={}){e.component("DynamicForm",Ki),e.component("NumericField",Qn),e.component("SelectField",or),e.component("TextField",cr),e.component("DateField",kr),e.component("CheckBoxField",jr),e.component("RadioField",Fr),e.component("PhoneField",oi),e.component("CustomSelectField",ci),e.component("MultiSelectField",qr),e.component("TextAreaField",gi),e.component("TreeSelectField",Li)}};n["default"]=Zi},fb60:function(e,t,n){"use strict";var r=n("7917"),i=n("c532");function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}i.inherits(o,r,{__CANCEL__:!0}),e.exports=o},fc6a:function(e,t,n){"use strict";var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fdbf:function(e,t,n){"use strict";var r=n("04f8");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fdcd:function(e){e.exports=JSON.parse('{"code":"ka","messages":{"alpha":"{_field_} უნდა შეიცავდეს მხოლოდ ასოებს","alpha_num":"{_field_} უნდა შეიცავდეს მხოლოდ ციფრებს","alpha_dash":"{_field_} უნდა შესაძლებელია შეიცავდეს ციფრებს, ასოებს და პუნქტუაციის ნიშნებს","alpha_spaces":"{_field_} უნდა შეიცავდეს მხოლოდ ასოებსა და ცარიელ სივრცეებს","between":"{_field_} უნდა იყოს {min} და {max}ს შორის","confirmed":"{_field_} არ ემთხვევა {target}(ი)ს","digits":"{_field_} უნდა შეიცავდეს ციფრებს და უნდა იყოს ზუსტად {length}-ნიშნა","dimensions":"{_field_} უნდა იყოს {width}x{height} ზომის (pixel)","email":"{_field_}-ს უნდა ჰქონდეს ელ-ფოსტის სწორი ფორმატი","excluded":"{_field_} უნდა იყოს სწორი მნიშვნელობა","ext":"{_field_} უნდა იყოს ფაილი","image":"{_field_} უნდა იყოს სურათი","max_value":"{_field_} უნდა შეიცავდეს {max} სიმბოლოს ან ნაკლებს","max":"{_field_} არ უნდა იყოს {length} სიმბოლოზე მეტი","mimes":"{_field_}ს უნდა ჰქონდეს სწორი ფაილის ფორმატი","min_value":"{_field_} უნდა შეიცავდეს {min} ან მეტ სიმბოლოს","min":"{_field_} უნდა შეიცავდეს მინიმუმ {length} სიმბოლოს","numeric":"{_field_} უნდა შეიცავდეს ციფრებს","oneOf":"{_field_} უნდა იყოს სწორი მნიშვნელობა","regex":"{_field_}-(ი)ს ფორმატი არასწორია","required":"{_field_} აუცილებელია","required_if":"{_field_} აუცილებელია","size":"{_field_} უნდა იყოს {size}KB-ზე ნაკლები","double":"{_field_} ველი უნდა იყოს სწორი ათობითი"}}')},ffd6:function(e,t,n){var r=n("3729"),i=n("1310"),o="[object Symbol]";function a(e){return"symbol"==typeof e||i(e)&&r(e)==o}e.exports=a}})}));
|
|
22
22
|
//# sourceMappingURL=myLib.umd.min.js.map
|