cmc_fe/dist/js/287.3d3496d6.js

2 lines
No EOL
18 KiB
JavaScript

"use strict";(self["webpackChunkcmc_fe"]=self["webpackChunkcmc_fe"]||[]).push([[287],{8099:function(){},8765:function(e,l,t){t.r(l),t.d(l,{default:function(){return K}});var o=t(3396),n=t(7139),a=t(7312),i=t(8302),u=t(1959),s=t(8969),r=t(320),d=t(7514),c=t(9888),m=t(131);const p=(0,r.a)({name:"VCheckbox",inheritAttrs:!1,props:{...(0,i.co)(),...(0,u.w4)()},emits:{"update:focused":e=>!0},setup(e,l){let{attrs:t,slots:n}=l;const{isFocused:a,focus:r,blur:p}=(0,s.K)(e),v=(0,d.sq)(),f=(0,o.Fl)((()=>e.id||`checkbox-${v}`));return(0,c.L)((()=>{const[l,s]=(0,m.An)(t),[d,c]=(0,i.PE)(e),[v,h]=(0,u.CI)(e);return(0,o.Wm)(i.q8,(0,o.dG)({class:"v-checkbox"},l,d,{id:f.value,focused:a.value}),{...n,default:e=>{let{id:l,isDisabled:t,isReadonly:a}=e;return(0,o.Wm)(u.pM,(0,o.dG)(v,{id:l.value,disabled:t.value,readonly:a.value},s,{onFocus:r,onBlur:p}),n)}})})),{}}});var v=t(6422),f=t(3369),h=t(6824),g=t(4162),y=t(3104),b=t(9694),V=t(1138),C=t(7041);const w=(0,r.a)({name:"VTable",props:{fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...(0,b.f)(),...(0,V.Q)(),...(0,C.x$)()},setup(e,l){let{slots:t}=l;const{themeClasses:n}=(0,C.ER)(e),{densityClasses:a}=(0,b.t)(e);return(0,c.L)((()=>{var l,i;return(0,o.Wm)(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!t.top,"v-table--has-bottom":!!t.bottom,"v-table--hover":e.hover},n.value,a.value]},{default:()=>[null==(l=t.top)?void 0:l.call(t),t.default&&(0,o.Wm)("div",{class:"v-table__wrapper",style:{height:(0,m.kb)(e.height)}},[(0,o.Wm)("table",null,[t.default()])]),null==(i=t.bottom)?void 0:i.call(t)]})})),{}}});var _=t(3144),k=t(9870),x=t(165),W=t(6161),F=t(4722);const S=(0,o._)("h3",null,"Complaints",-1),U=(0,o._)("thead",null,[(0,o._)("tr",null,[(0,o._)("th",null,"Comp No"),(0,o._)("th",null,"Date"),(0,o._)("th",null,"Order"),(0,o._)("th",null,"Acc No"),(0,o._)("th",null,"Name"),(0,o._)("th",null,"Reason"),(0,o._)("th",null,"Active"),(0,o._)("th")])],-1),I={key:0},A=(0,o._)("td",{colspan:"7"},[(0,o._)("img",{class:"loading",src:"/images/icons/loading.gif"})],-1),B=[A],$=["alt","title"],D={key:0},L={key:1},j={key:0},H={colspan:"4"},q=(0,o._)("br",null,null,-1),z={colspan:"2"},G={key:0,class:"loading",src:"/images/icons/loading.gif"},O={key:1,colspan:"6"},E=(0,o._)("img",{class:"loading",src:"/images/icons/loading.gif"},null,-1),R=[E];function Q(e,l,t,i,u,s){return(0,o.wg)(),(0,o.iD)(o.HY,null,[S,(0,o.Wm)(_.d,{modelValue:u.tab,"onUpdate:modelValue":l[3]||(l[3]=e=>u.tab=e),"fixed-tabs":""},{default:(0,o.w5)((()=>[(0,o.Wm)(k.L,{title:"List",modelValue:u.list,"onUpdate:modelValue":l[0]||(l[0]=e=>u.list=e)},null,8,["modelValue"]),u.edit?((0,o.wg)(),(0,o.j4)(k.L,{key:0,title:"Edit",modelValue:u.edit,"onUpdate:modelValue":l[1]||(l[1]=e=>u.edit=e)},null,8,["modelValue"])):(0,o.kq)("",!0),u.report?((0,o.wg)(),(0,o.j4)(k.L,{key:1,title:"Report",modelValue:u.report,"onUpdate:modelValue":l[2]||(l[2]=e=>u.report=e)},null,8,["modelValue"])):(0,o.kq)("",!0)])),_:1},8,["modelValue"]),(0,o.Wm)(W.Oo,{modelValue:u.tab,"onUpdate:modelValue":l[7]||(l[7]=e=>u.tab=e)},{default:(0,o.w5)((()=>[(0,o.Wm)(F.H,{modelValue:u.list,"onUpdate:modelValue":l[6]||(l[6]=e=>u.list=e)},{default:(0,o.w5)((()=>[(0,o.Wm)(g.t,{"max-width":"500"},{default:(0,o.w5)((()=>[(0,o.Wm)(x.hw,{clearable:"",label:"Search",variant:"outlined",modelValue:u.searchQuery,"onUpdate:modelValue":l[4]||(l[4]=e=>u.searchQuery=e),density:"compact","append-inner-icon":"mdi-magnify"},null,8,["modelValue"]),(0,o.Wm)(y.G,{color:"blue",label:"Show Only Active",modelValue:u.showActive,"onUpdate:modelValue":l[5]||(l[5]=e=>u.showActive=e)},null,8,["modelValue"]),t.site_info.features.addcomplaint?((0,o.wg)(),(0,o.j4)(a.T,{key:0,color:"warning"},{default:(0,o.w5)((()=>[(0,o.Uk)("+ Add")])),_:1})):(0,o.kq)("",!0)])),_:1}),(0,o.Wm)(w,null,{default:(0,o.w5)((()=>[U,(0,o._)("tbody",null,[u.loading?((0,o.wg)(),(0,o.iD)("tr",I,B)):(0,o.kq)("",!0),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.filteredComplaints,(e=>((0,o.wg)(),(0,o.iD)(o.HY,{key:e.id},[(0,o._)("tr",{class:(0,n.C_)({at_risk:e.at_risk,cust_at_risk:e.customer.at_risk})},[(0,o._)("td",null,(0,n.zw)(e.id),1),(0,o._)("td",null,(0,n.zw)(e.complaint_date),1),(0,o._)("td",null,(0,n.zw)(e.sop.doc_no),1),(0,o._)("td",null,(0,n.zw)(e.customer.acc_no),1),(0,o._)("td",null,(0,n.zw)(e.customer.name),1),(0,o._)("td",null,(0,n.zw)(e.reason),1),(0,o._)("td",null,[e.active?((0,o.wg)(),(0,o.iD)("img",{key:0,class:"icon",alt:e.active,title:e.active,src:"/images/icons/Live.png"},null,8,$)):(0,o.kq)("",!0)]),(0,o._)("td",null,[(0,o.Wm)(a.T,{onClick:l=>s.showInfo(e)},{default:(0,o.w5)((()=>[e.info_shown?((0,o.wg)(),(0,o.iD)("span",D," Hide ")):((0,o.wg)(),(0,o.iD)("span",L," View "))])),_:2},1032,["onClick"])])],2),e.info_shown?((0,o.wg)(),(0,o.iD)("tr",j,[e.info?((0,o.wg)(),(0,o.iD)(o.HY,{key:0},[e.info_loaded?((0,o.wg)(),(0,o.iD)(o.HY,{key:0},[(0,o._)("td",H,[(0,o.Uk)((0,n.zw)(e.info.comments)+" ",1),q,(0,o._)("sub",null,"- "+(0,n.zw)(e.info.added_by),1)]),(0,o._)("td",z,[(0,o.Wm)(f.K,null,{default:(0,o.w5)((()=>[(0,o.Wm)(v.O,{disabled:e.info.loading},{default:(0,o.w5)((()=>[(0,o.Wm)(h.o,{dense:"",nogutters:""},{default:(0,o.w5)((()=>[(0,o.Wm)(p,{label:"1",type:"checkbox",modelValue:e.info.one,"onUpdate:modelValue":l=>e.info.one=l,onChange:l=>s.changeComplaintCheckbox(e)},null,8,["modelValue","onUpdate:modelValue","onChange"]),(0,o.Wm)(p,{label:"2",modelValue:e.info.two,"onUpdate:modelValue":l=>e.info.two=l,onChange:l=>s.changeComplaintCheckbox(e)},null,8,["modelValue","onUpdate:modelValue","onChange"]),(0,o.Wm)(p,{label:"3",modelValue:e.info.three,"onUpdate:modelValue":l=>e.info.three=l,onChange:l=>s.changeComplaintCheckbox(e)},null,8,["modelValue","onUpdate:modelValue","onChange"])])),_:2},1024),(0,o.Wm)(h.o,{dense:"",nogutters:""},{default:(0,o.w5)((()=>[(0,o.Wm)(p,{label:"At Risk",modelValue:e.at_risk,"onUpdate:modelValue":l=>e.at_risk=l,onChange:l=>s.changeComplaintCheckbox(e)},null,8,["modelValue","onUpdate:modelValue","onChange"]),(0,o.Wm)(p,{label:"Permanent",modelValue:e.info.permanent,"onUpdate:modelValue":l=>e.info.permanent=l,onChange:l=>s.changeComplaintCheckbox(e)},null,8,["modelValue","onUpdate:modelValue","onChange"])])),_:2},1024)])),_:2},1032,["disabled"])])),_:2},1024)]),(0,o._)("td",null,[e.info.loading?((0,o.wg)(),(0,o.iD)("img",G)):((0,o.wg)(),(0,o.iD)(o.HY,{key:1},[t.site_info.features.editcomplaint?((0,o.wg)(),(0,o.j4)(a.T,{key:0,color:"warning"},{default:(0,o.w5)((()=>[(0,o.Uk)("Edit")])),_:1})):(0,o.kq)("",!0)],64))])],64)):(0,o.kq)("",!0)],64)):((0,o.wg)(),(0,o.iD)("td",O,R))])):(0,o.kq)("",!0)],64)))),128))])])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["modelValue"])],64)}var T=t(6943),Y={props:{site_info:{}},data(){return{tab:"list",list:[],listreceived:!1,showActive:!0,loading:!0,limit:300,searchQuery:"",edit:!1,report:!1}},computed:{filteredComplaints(){let e=this.searchQuery.toLowerCase();this.listreceived||this.getComplaintsList();let l=this.list.filter((l=>l.customer.name.toLowerCase().includes(e)||l.customer.acc_no.includes(e)||l.id==e||l.reason.toLowerCase().includes(e)));return this.showActive&&(l=l.filter((e=>1==e.active))),l}},methods:{async getComplaintsList(){this.loading=!0;let e=this.$api_url+"/customers/complaints/list";console.log("Getting Complaint list..."),T.Z.get(e,{params:{limit:this.limit,query:this.searchQuery}}).then((e=>{this.list=e.data,this.loading=!1,this.listreceived=!0}))},async getComplaintInfo(e){e.info.loading=!0;let l=this.$api_url+"/customers/complaints/"+e.id+"/info";console.log("Getting Complaint Info..."),T.Z.get(l).then((l=>{e.info=l.data,e.info.loading=!1}))},async showInfo(e){console.log(e.id),e.info_loaded=!1,e.info_shown=!e.info_shown,e.info_shown&&(e.info=await this.getComplaintInfo(e),e.info_loaded=!0)},async changeComplaintCheckbox(e){let l=await this.setComplaintStatus(e);e.at_risk&&l&&e.info.one&&e.info.two&&e.info.three&&(console.log("Contract no longer at risk"),e.at_risk=!1)},async setComplaintStatus(e){e.info.loading=!0;let l=this.$api_url+"/customers/complaints/"+e.id+"/info/set";return console.log("Getting Complaint Info..."),T.Z.post(l,{one:e.info.one,two:e.info.two,three:e.info.three,at_risk:e.at_risk,permanent:e.info.permanent}).then((l=>{console.log(l.data),this.getComplaintInfo(e),e.info_loaded=!0})),!0}}},Z=t(89);const N=(0,Z.Z)(Y,[["render",Q]]);var K=N},1959:function(e,l,t){t.d(l,{CI:function(){return p},pM:function(){return m},w4:function(){return c}});var o=t(3396),n=t(6193),a=t(4960),i=t(8717),u=t(3766),s=t(320),r=t(9888),d=t(131);const c=(0,u.U)({indeterminate:Boolean,indeterminateIcon:{type:a.lE,default:"$checkboxIndeterminate"},...(0,n.$9)({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"v-checkbox-btn"),m=(0,s.a)({name:"VCheckboxBtn",props:c(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,l){let{slots:t}=l;const a=(0,i.z)(e,"indeterminate"),u=(0,i.z)(e,"modelValue");function s(e){a.value&&(a.value=!1)}const d=(0,o.Fl)((()=>e.indeterminate?e.indeterminateIcon:e.falseIcon)),c=(0,o.Fl)((()=>e.indeterminate?e.indeterminateIcon:e.trueIcon));return(0,r.L)((()=>(0,o.Wm)(n.g5,(0,o.dG)(e,{modelValue:u.value,"onUpdate:modelValue":[e=>u.value=e,s],class:"v-checkbox-btn",type:"checkbox",inline:!0,falseIcon:d.value,trueIcon:c.value,"aria-checked":e.indeterminate?"mixed":void 0}),t))),{}}});function p(e){return(0,d.ei)(e,Object.keys(m.props))}},6422:function(e,l,t){t.d(l,{O:function(){return r}});var o=t(3396),n=t(4357),a=t(3185),i=t(4870),u=t(320),s=t(9888);const r=(0,u.a)({name:"VForm",props:{...(0,n.vC)()},emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,l){let{slots:t,emit:u}=l;const r=(0,n.Np)(e),d=(0,i.iH)();function c(e){e.preventDefault(),r.reset()}function m(e){const l=e,t=r.validate();l.then=t.then.bind(t),l.catch=t.catch.bind(t),l.finally=t.finally.bind(t),u("submit",l),l.defaultPrevented||t.then((e=>{let{valid:l}=e;var t;l&&(null==(t=d.value)||t.submit())})),l.preventDefault()}return(0,s.L)((()=>{var e;return(0,o.Wm)("form",{ref:d,class:"v-form",novalidate:!0,onReset:c,onSubmit:m},[null==(e=t.default)?void 0:e.call(t,r)])})),(0,a.F)(r,d)}})},6824:function(e,l,t){t.d(l,{o:function(){return _}});t(7658),t(8099);var o=t(1138),n=t(7139),a=t(3396),i=t(320);const u=["sm","md","lg","xl","xxl"],s=["start","end","center"],r=["space-between","space-around","space-evenly"];function d(e,l){return u.reduce(((t,o)=>(t[e+(0,n.kC)(o)]=l(),t)),{})}const c=[...s,"baseline","stretch"],m=e=>c.includes(e),p=d("align",(()=>({type:String,default:null,validator:m}))),v=[...s,...r],f=e=>v.includes(e),h=d("justify",(()=>({type:String,default:null,validator:f}))),g=[...s,...r,"stretch"],y=e=>g.includes(e),b=d("alignContent",(()=>({type:String,default:null,validator:y}))),V={align:Object.keys(p),justify:Object.keys(h),alignContent:Object.keys(b)},C={align:"align",justify:"justify",alignContent:"align-content"};function w(e,l,t){let o=C[e];if(null!=t){if(l){const t=l.replace(e,"");o+=`-${t}`}return o+=`-${t}`,o.toLowerCase()}}const _=(0,i.a)({name:"VRow",props:{dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:m},...p,justify:{type:String,default:null,validator:f},...h,alignContent:{type:String,default:null,validator:y},...b,...(0,o.Q)()},setup(e,l){let{slots:t}=l;const o=(0,a.Fl)((()=>{const l=[];let t;for(t in V)V[t].forEach((o=>{const n=e[o],a=w(t,o,n);a&&l.push(a)}));return l.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),l}));return()=>{var l;return(0,a.h)(e.tag,{class:["v-row",o.value]},null==(l=t.default)?void 0:l.call(t))}}})},6193:function(e,l,t){t.d(l,{g5:function(){return k},fU:function(){return x},$9:function(){return w}});var o=t(3396),n=t(3289),a=t(7302),i=t(4960),u=t(9694),s=t(7041),r=t(8434),d=t(8717),c=t(4870),m=t(3766),p=t(131),v=t(320),f=t(7514),h=t(9888);const g=Symbol.for("vuetify:selection-control-group"),y=(0,m.U)({color:String,disabled:Boolean,error:Boolean,id:String,inline:Boolean,falseIcon:i.lE,trueIcon:i.lE,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:Boolean,modelValue:null,type:String,valueComparator:{type:Function,default:p.vZ},...(0,s.x$)(),...(0,u.f)()},"v-selection-control-group");(0,v.a)({name:"VSelectionControlGroup",props:{defaultsTarget:{type:String,default:"VSelectionControl"},...y()},emits:{"update:modelValue":e=>!0},setup(e,l){let{slots:t}=l;const n=(0,d.z)(e,"modelValue"),a=(0,f.sq)(),i=(0,o.Fl)((()=>e.id||`v-selection-control-group-${a}`)),u=(0,o.Fl)((()=>e.name||i.value));return(0,o.JJ)(g,{modelValue:n}),(0,r.AF)({[e.defaultsTarget]:{color:(0,c.Vh)(e,"color"),disabled:(0,c.Vh)(e,"disabled"),density:(0,c.Vh)(e,"density"),error:(0,c.Vh)(e,"error"),inline:(0,c.Vh)(e,"inline"),modelValue:n,multiple:(0,o.Fl)((()=>!!e.multiple||null==e.multiple&&Array.isArray(n.value))),name:u,falseIcon:(0,c.Vh)(e,"falseIcon"),trueIcon:(0,c.Vh)(e,"trueIcon"),readonly:(0,c.Vh)(e,"readonly"),ripple:(0,c.Vh)(e,"ripple"),type:(0,c.Vh)(e,"type"),valueComparator:(0,c.Vh)(e,"valueComparator")}}),(0,h.L)((()=>{var l;return(0,o.Wm)("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline}],"aria-labelled-by":"radio"===e.type?i.value:void 0,role:"radio"===e.type?"radiogroup":void 0},[null==(l=t.default)?void 0:l.call(t)])})),{}}});var b=t(3824),V=t(2370),C=t(2385);const w=(0,m.U)({label:String,trueValue:null,falseValue:null,value:null,...y()},"v-selection-control");function _(e){const l=(0,o.f3)(g,void 0),{densityClasses:t}=(0,u.t)(e),n=(0,d.z)(e,"modelValue"),a=(0,o.Fl)((()=>void 0!==e.trueValue?e.trueValue:void 0===e.value||e.value)),i=(0,o.Fl)((()=>void 0!==e.falseValue&&e.falseValue)),s=(0,o.Fl)((()=>!!e.multiple||null==e.multiple&&Array.isArray(n.value))),r=(0,o.Fl)({get(){const t=l?l.modelValue.value:n.value;return s.value?t.some((l=>e.valueComparator(l,a.value))):e.valueComparator(t,a.value)},set(t){if(e.readonly)return;const o=t?a.value:i.value;let u=o;s.value&&(u=t?[...(0,p.FT)(n.value),o]:(0,p.FT)(n.value).filter((l=>!e.valueComparator(l,a.value)))),l?l.modelValue.value=u:n.value=u}}),{textColorClasses:c,textColorStyles:m}=(0,V.rY)((0,o.Fl)((()=>!r.value||e.error||e.disabled?void 0:e.color))),v=(0,o.Fl)((()=>r.value?e.trueIcon:e.falseIcon));return{group:l,densityClasses:t,trueValue:a,falseValue:i,model:r,textColorClasses:c,textColorStyles:m,icon:v}}const k=(0,v.e)()({name:"VSelectionControl",directives:{Ripple:b.H},inheritAttrs:!1,props:w(),emits:{"update:modelValue":e=>!0},setup(e,l){let{attrs:t,slots:i}=l;const{densityClasses:u,icon:s,model:r,textColorClasses:d,textColorStyles:m,trueValue:v}=_(e),g=(0,f.sq)(),y=(0,o.Fl)((()=>e.id||`input-${g}`)),b=(0,c.iH)(!1),V=(0,c.iH)(!1),w=(0,c.iH)();function k(e){b.value=!0,(!C.Z1||C.Z1&&e.target.matches(":focus-visible"))&&(V.value=!0)}function x(){b.value=!1,V.value=!1}function W(e){r.value=e.target.checked}return(0,h.L)((()=>{var l,c;const f=i.label?i.label({label:e.label,props:{for:y.value}}):e.label,[h,g]=(0,p.An)(t);return(0,o.Wm)("div",(0,o.dG)({class:["v-selection-control",{"v-selection-control--dirty":r.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":b.value,"v-selection-control--focus-visible":V.value,"v-selection-control--inline":e.inline},u.value]},h),[(0,o.Wm)("div",{class:["v-selection-control__wrapper",d.value],style:m.value},[null==(l=i.default)?void 0:l.call(i),(0,o.wy)((0,o.Wm)("div",{class:["v-selection-control__input"]},[s.value&&(0,o.Wm)(n.t,{key:"icon",icon:s.value},null),(0,o.Wm)("input",(0,o.dG)({ref:w,checked:r.value,disabled:e.disabled,id:y.value,onBlur:x,onFocus:k,onInput:W,"aria-readonly":e.readonly,type:e.type,value:v.value,name:e.name,"aria-checked":"checkbox"===e.type?r.value:void 0},g),null),null==(c=i.input)?void 0:c.call(i,{model:r,textColorClasses:d,textColorStyles:m,props:{onFocus:k,onBlur:x,id:y.value}})]),[[(0,o.Q2)("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),f&&(0,o.Wm)(a.J,{for:y.value,clickable:!0},{default:()=>[f]})])})),{isFocused:b,input:w}}});function x(e){return(0,p.ei)(e,Object.keys(k.props))}},3104:function(e,l,t){t.d(l,{G:function(){return f}});var o=t(3396),n=t(6193),a=t(8302),i=t(3173),u=t(1710),s=t(8969),r=t(8717),d=t(4870),c=t(320),m=t(7514),p=t(9888),v=t(131);const f=(0,c.a)({name:"VSwitch",inheritAttrs:!1,props:{indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...(0,a.co)(),...(0,n.$9)()},emits:{"update:focused":e=>!0,"update:modelValue":()=>!0,"update:indeterminate":e=>!0},setup(e,l){let{attrs:t,slots:c}=l;const f=(0,r.z)(e,"indeterminate"),h=(0,r.z)(e,"modelValue"),{loaderClasses:g}=(0,u.U2)(e),{isFocused:y,focus:b,blur:V}=(0,s.K)(e),C=(0,o.Fl)((()=>"string"===typeof e.loading&&""!==e.loading?e.loading:e.color)),w=(0,m.sq)(),_=(0,o.Fl)((()=>e.id||`switch-${w}`));function k(){f.value&&(f.value=!1)}return(0,p.L)((()=>{const[l,s]=(0,v.An)(t),[r,m]=(0,a.PE)(e),[p,w]=(0,n.fU)(e),x=(0,d.iH)();function W(){var e,l;null==(e=x.value)||null==(l=e.input)||l.click()}return(0,o.Wm)(a.q8,(0,o.dG)({class:["v-switch",{"v-switch--inset":e.inset},{"v-switch--indeterminate":f.value},g.value]},l,r,{id:_.value,focused:y.value}),{...c,default:l=>{let{id:t,isDisabled:a,isReadonly:r,isValid:d}=l;return(0,o.Wm)(n.g5,(0,o.dG)({ref:x},p,{modelValue:h.value,"onUpdate:modelValue":[e=>h.value=e,k],id:t.value,type:"checkbox","aria-checked":f.value?"mixed":void 0,disabled:a.value,readonly:r.value,onFocus:b,onBlur:V},s),{...c,default:()=>(0,o.Wm)("div",{class:"v-switch__track",onClick:W},null),input:l=>{let{textColorClasses:t,textColorStyles:n}=l;return(0,o.Wm)("div",{class:["v-switch__thumb",t.value],style:n.value},[e.loading&&(0,o.Wm)(u.rD,{name:"v-switch",active:!0,color:!1===d.value?void 0:C.value},{default:e=>c.loader?c.loader(e):(0,o.Wm)(i.L,{active:e.isActive,color:e.color,indeterminate:!0,size:"16",width:"2"},null)})])}})}})})),{}}})}}]);
//# sourceMappingURL=287.3d3496d6.js.map