(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d47f663c"],{"007b":function(e,t,i){"use strict";i("7959")},"079d":function(e,t,i){"use strict";i("9950")},1194:function(e,t,i){},"11d9":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var r=i("c1df"),s=i.n(r);const n=(e,t="DD/MM/YYYY")=>e&&e.toString().length>0?s()(e).format(t):e},"2a93":function(e,t,i){},"3c0a":function(e,t,i){"use strict";i.r(t);var r=i("f2bf");const s={key:0},n={class:"text-lg text-start mb-5 font-bold"},d={class:"flex flex-col lg:flex-row items-start lg:gap-2"},o={class:"flex flex-col lg:flex-row items-start lg:gap-2"},m=["placeholder","disabled"],a=["disabled"],l={class:"flex flex-col lg:flex-row items-start lg:gap-2"};function c(e,t,i,c,u,h){const v=Object(r["resolveComponent"])("PageTitle"),p=Object(r["resolveComponent"])("VueDatePicker"),$=Object(r["resolveComponent"])("FieldWrapper"),I=Object(r["resolveComponent"])("VueMultiselect"),b=Object(r["resolveComponent"])("TableWrapper");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",null,[Object(r["createVNode"])(v,{title:e.action+".title",subtitle:e.action+".subtitle"},null,8,["title","subtitle"]),"day-temperatures"===e.$route.params.action?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",s,[Object(r["createElementVNode"])("div",n,Object(r["toDisplayString"])(e.$t("day-temperatures.addSection")),1),Object(r["createElementVNode"])("div",d,[Object(r["createElementVNode"])("div",o,[Object(r["createVNode"])($,{label:"day-temperatures.date",name:"deviceDate",errors:e.v$.addition.deviceDate.$errors},{default:Object(r["withCtx"])(()=>[Object(r["createVNode"])(p,{"auto-apply":!0,clearable:!1,modelValue:e.addition.deviceDate,"onUpdate:modelValue":t[0]||(t[0]=t=>e.addition.deviceDate=t),"enable-time-picker":!1},null,8,["modelValue"])]),_:1},8,["errors"]),Object(r["createVNode"])($,{label:"day-temperatures.deviceId",name:"deviceId",errors:e.v$.addition.deviceId.$errors},{default:Object(r["withCtx"])(()=>[Object(r["withDirectives"])(Object(r["createElementVNode"])("input",{name:"deviceId",id:"deviceId",type:"text",class:Object(r["normalizeClass"])([{error:e.v$.addition.deviceId.$error},"focus:shadow"]),"onUpdate:modelValue":t[1]||(t[1]=t=>e.addition.deviceId=t),placeholder:e.$t("day-temperatures.deviceId_placeholder"),onBlur:t[2]||(t[2]=(...t)=>e.v$.addition.deviceId.$touch&&e.v$.addition.deviceId.$touch(...t)),disabled:e.isLoading},null,42,m),[[r["vModelText"],e.addition.deviceId]])]),_:1},8,["errors"])]),Object(r["createElementVNode"])("button",{class:"primary mb-2 lg:mt-8",onClick:t[3]||(t[3]=(...t)=>e.add&&e.add(...t)),disabled:e.v$.addition.$invalid},Object(r["toDisplayString"])(e.$t("add")),9,a)]),Object(r["createElementVNode"])("div",l,[Object(r["createVNode"])($,{label:"day-temperatures.selectADeviceToRemove",name:"removeDevice",errors:e.v$.removing.deviceToRemove.$errors},{default:Object(r["withCtx"])(()=>[Object(r["createVNode"])(I,{modelValue:e.removing.deviceToRemove,"onUpdate:modelValue":t[4]||(t[4]=t=>e.removing.deviceToRemove=t),options:e.$store.state.devices,label:"deviceId","track-by":"_id",placeholder:e.$t("select_one"),deselectLabel:e.$t("deselect"),selectedLabel:e.$t("selected"),selectLabel:e.$t("select"),NoResult:e.$t("select"),noOptionsText:e.$t("select"),noOptions:e.$t("select")},{noResult:Object(r["withCtx"])(()=>[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("NoOptionsMatching")),1)]),noOptions:Object(r["withCtx"])(()=>[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.$t("NoOptionsAvailable")),1)]),_:1},8,["modelValue","options","placeholder","deselectLabel","selectedLabel","selectLabel","NoResult","noOptionsText","noOptions"])]),_:1},8,["errors"]),Object(r["createVNode"])($,{label:"day-temperatures.date",name:"removeDate",errors:e.v$.removing.removeDate.$errors},{default:Object(r["withCtx"])(()=>[Object(r["createVNode"])(p,{"auto-apply":!0,clearable:!1,modelValue:e.removing.removeDate,"onUpdate:modelValue":t[5]||(t[5]=t=>e.removing.removeDate=t),"enable-time-picker":!1},null,8,["modelValue"])]),_:1},8,["errors"]),Object(r["createElementVNode"])("button",{class:"primary lg:mt-8",onClick:t[6]||(t[6]=(...t)=>e.remove&&e.remove(...t))},Object(r["toDisplayString"])(e.$t("remove")),1)])])):Object(r["createCommentVNode"])("",!0),e.$store.state.activeBranch&&e.$store.state.activeBranch._id?(Object(r["openBlock"])(),Object(r["createBlock"])(b,{"state-name":"data","state-to-set-name":"data",columns:e.columns,key:e.key},null,8,["columns"])):Object(r["createCommentVNode"])("",!0)])}var u=i("a3f9");const h={class:"tableWrapper"},v=["onClick"],p={key:0},$=["colspan"];function I(e,t,i,s,n,d){const o=Object(r["resolveComponent"])("TablePreheader"),m=Object(r["resolveComponent"])("TableCell"),a=Object(r["resolveComponent"])("EmptyState"),l=Object(r["resolveComponent"])("Pagination");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",h,[Object(r["renderSlot"])(e.$slots,"table-caption"),e.resizedData.length>0?(Object(r["openBlock"])(),Object(r["createBlock"])(o,{key:0,class:"mb-6",placeholder:e.placeholder,addButtonText:e.addButtonText,isFilter:e.isFilter,onSearch:t[0]||(t[0]=t=>e.getData(t)),onAddButtonClicked:t[1]||(t[1]=t=>e.$emit("addButtonClicked"))},null,8,["placeholder","addButtonText","isFilter"])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("table",null,[Object(r["createElementVNode"])("thead",null,[Object(r["createElementVNode"])("tr",null,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.columns,t=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("th",{key:t,class:Object(r["normalizeClass"])({dontSort:t.noSort}),onClick:i=>e.sortBy(t),nowrap:"true"},Object(r["toDisplayString"])(e.$t(t.name)),11,v))),128))])]),Object(r["createElementVNode"])("tbody",null,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.resizedData,t=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("tr",{key:t._id},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.columns,(i,s)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("td",{class:Object(r["normalizeClass"])(i.class),key:s},[Object(r["createVNode"])(m,{item:t,itemColumn:i,onToggled:r=>e.toggled(r,t._id,i)},null,8,["item","itemColumn","onToggled"])],2))),128))]))),128)),0===e.resizedData.length?(Object(r["openBlock"])(),Object(r["createElementBlock"])("tr",p,[Object(r["createElementVNode"])("td",{colspan:e.columns.length,class:"px-0"},[Object(r["createVNode"])(a,{title:e.emptyStateTitle,subtitle:e.emptyStateSubtitle},{default:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(e.$slots,"default")]),_:3},8,["title","subtitle"])],8,$)])):Object(r["createCommentVNode"])("",!0)])]),e.hidePagination?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(l,{key:1,rows:e.rows,current:e.current,all:e.allPages,onRowsChanged:e.resizeData,onPageChanged:e.changePage},null,8,["rows","current","all","onRowsChanged","onPageChanged"]))])}const b=e=>(Object(r["pushScopeId"])("data-v-da0323d2"),e=e(),Object(r["popScopeId"])(),e),w={class:"pagination h-8 flex mt-5"},C={class:"pagination-rows flex ms-auto me-4"},g={class:"pagination-rows-title flex border-b border-s border-t border-borderColor rounded-s items-center justify-center"},E=b(()=>Object(r["createElementVNode"])("option",{value:10},"10",-1)),k=b(()=>Object(r["createElementVNode"])("option",{value:20},"20",-1)),f=b(()=>Object(r["createElementVNode"])("option",{value:50},"50",-1)),F=[E,k,f],y={key:0,class:"pagination-current flex border rounded h-full"},_={class:"pagination-current-count flex items-center justify-center px-3.5"};function O(e,t,i,s,n,d){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",w,[Object(r["createElementVNode"])("div",C,[Object(r["createElementVNode"])("div",g,Object(r["toDisplayString"])(e.$t("pagination.show_rows")),1),Object(r["withDirectives"])(Object(r["createElementVNode"])("select",{class:"select-sm rounded-s-none h-full w-full","onUpdate:modelValue":t[0]||(t[0]=t=>e.selected=t),name:"rows"},F,512),[[r["vModelSelect"],e.selected]])]),Number(e.all)>0?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",y,[Number(e.current)>1?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:"pagination-current-left chevron border-e",onClick:t[1]||(t[1]=t=>e.changePage(-1))})):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",_,Object(r["toDisplayString"])(e.$t("pagination.page_of",{current:e.current,all:e.all})),1),Number(e.current)e.changePage(1))})):Object(r["createCommentVNode"])("",!0)])):Object(r["createCommentVNode"])("",!0)])}var x=Object(r["defineComponent"])({name:"Pagination",props:{rows:Number,current:Number,all:Number},emits:["rowsChanged","pageChanged"],computed:{selected:{get:function(){return this.rows},set:function(e){this.$emit("rowsChanged",e)}}},methods:{changePage:function(e){this.$emit("pageChanged",e)}}}),j=(i("007b"),i("d959")),W=i.n(j);const D=W()(x,[["render",O],["__scopeId","data-v-da0323d2"]]);var T=D;const V={class:"tablePreheader flex max-w-full"},N={key:0,class:"tablePreheader-search w-420 flex items-center max-w-full relative me-auto"},R=["placeholder"];function S(e,t,i,s,n,d){const o=Object(r["resolveComponent"])("SearchIcon"),m=Object(r["resolveComponent"])("PlusIcon"),a=Object(r["resolveComponent"])("Filter");return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",V,[e.placeholder?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",N,[Object(r["createVNode"])(o,{class:"text-gray absolute start-2.5"}),Object(r["withDirectives"])(Object(r["createElementVNode"])("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=t=>e.searchText=t),onChange:t[1]||(t[1]=(...t)=>e.search&&e.search(...t)),class:Object(r["normalizeClass"])(e.searchText&&e.searchText.length>0?"notEmpty":""),placeholder:e.$t(e.placeholder)},null,42,R),[[r["vModelText"],e.searchText]]),Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(["absolute end-2.5 cursor-pointer text-primary text-sm font-bold",e.searchText&&e.searchText.length>0?"block":"hidden"]),onClick:t[2]||(t[2]=t=>e.searchText="")},Object(r["toDisplayString"])(e.$t("clear")),3)])):Object(r["createCommentVNode"])("",!0),e.addButtonText?(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:1,onClick:t[3]||(t[3]=t=>e.$emit("addButtonClicked")),class:"primary large"},[Object(r["createVNode"])(m,{class:"me-3.5"}),Object(r["createTextVNode"])(" "+Object(r["toDisplayString"])(e.addButtonText),1)])):Object(r["createCommentVNode"])("",!0),e.isFilter?(Object(r["openBlock"])(),Object(r["createBlock"])(a,{key:2})):Object(r["createCommentVNode"])("",!0)])}const B=e=>(Object(r["pushScopeId"])("data-v-a07aa9a6"),e=e(),Object(r["popScopeId"])(),e),M={class:"filterElem h-11 flex items-center justify-center border border-borderColor rounded p-3 pe-8 chevron"},A=B(()=>Object(r["createElementVNode"])("div",{class:"w-5 h-5 m-2"},[Object(r["createElementVNode"])("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Object(r["createElementVNode"])("path",{d:"M18.3332 2.5H1.6665L8.33317 10.3833V15.8333L11.6665 17.5V10.3833L18.3332 2.5Z",stroke:"#48525F","stroke-width":"1.68","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),q={class:"text-textColor text-base m-2"};function P(e,t,i,s,n,d){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",M,[A,Object(r["createElementVNode"])("div",q,Object(r["toDisplayString"])(e.$t("filter.filter_by")),1)])}var L=Object(r["defineComponent"])({name:"Filter",props:{rows:Number,current:Number,all:Number},emits:["rowsChanged","pageChanged"],computed:{selected:{get:function(){return this.rows},set:function(e){this.$emit("rowsChanged",e)}}},methods:{changePage:function(e){this.$emit("pageChanged",e)}}});i("d98d");const H=W()(L,[["render",P],["__scopeId","data-v-a07aa9a6"]]);var J=H,G=i("57bc"),Y=i("fdd9"),z=Object(r["defineComponent"])({name:"TablePreheader",props:{placeholder:String,addButtonText:String,isFilter:Boolean},components:{Filter:J,PlusIcon:G["default"],SearchIcon:Y["default"]},data:function(){return{searchText:""}},emits:["search","addButtonClicked"],methods:{search:function(e){this.$emit("search",e)},clear:function(){this.searchText="",this.search("")}}});i("f45c");const U=W()(z,[["render",S],["__scopeId","data-v-5108543b"]]);var Z=U;const K={key:0,class:"tableCell"},Q=["href"],X={key:3};function ee(e,t,i,s,n,d){const o=Object(r["resolveComponent"])("Toggle");return e.item&&e.itemColumn?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",K,[e.itemColumn.trueValue?(Object(r["openBlock"])(),Object(r["createBlock"])(o,{key:0,modelValue:e.toggledInColumn,disabled:e.isDisabled,"onUpdate:modelValue":e.toggled},null,8,["modelValue","disabled","onUpdate:modelValue"])):e.itemColumn.isLink?(Object(r["openBlock"])(),Object(r["createElementBlock"])("a",{key:1,href:e.item[e.itemColumn.properties],target:"blank",class:"text-primary text-sm font-bold"},Object(r["toDisplayString"])(e.item[e.itemColumn.properties]),9,Q)):e.itemColumn.customComponent?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.componentInstance),{key:2,item:e.item},null,8,["item"])):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",X,Object(r["toDisplayString"])(e.item[e.itemColumn.properties]),1))])):Object(r["createCommentVNode"])("",!0)}function te(e,t,i,s,n,d){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(["toggle w-10 h-5 rounded-full bg-white relative flex items-center border-2 border-gray",{checked:e.modelValue,"opacity-50":e.disabled,"cursor-pointer":!e.disabled}]),onClick:t[0]||(t[0]=(...t)=>e.toggled&&e.toggled(...t))},null,2)}var ie=Object(r["defineComponent"])({name:"Toggle",props:{modelValue:Boolean,disabled:Boolean},emits:["update:modelValue"],methods:{toggled(){this.disabled||this.$emit("update:modelValue",!this.modelValue)}}});i("9ac8");const re=W()(ie,[["render",te],["__scopeId","data-v-5d8ea6e9"]]);var se=re,ne=Object(r["defineComponent"])({name:"TableCell",components:{Toggle:se},props:{item:Object,itemColumn:Object},emits:["toggled"],computed:{componentInstance:function(){if(this.itemColumn&&this.item&&this.itemColumn.customComponent){const e=this.item,t=this.itemColumn;if(null!==t.properties){const i=Object.assign({},t.customComponent,{data:function(){let i;return i=t.customComponent&&t.customComponent.data&&t.customComponent.data()?t.customComponent.data():{},Array.isArray(t.properties)?t.properties.forEach(t=>{i={...i,[t]:e[t]}}):i={...i,[t.properties]:e[t.properties]},i}});return Object(r["markRaw"])(i)}{const e=Object.assign({},t.customComponent);return Object(r["markRaw"])(e)}}return{template:""}},toggledInColumn:function(){return!(!this.itemColumn||Array.isArray(this.itemColumn.properties))&&(!!this.item&&!!this.itemColumn&&!!this.itemColumn.trueValue&&this.item[this.itemColumn.properties]===this.itemColumn.trueValue)},isDisabled:function(){var e,t;return!(null===(e=this.itemColumn)||void 0===e||!e.editionState)&&(Array.isArray(this.itemColumn.editionState)?!this.itemColumn.editionState.find(e=>{var t;return this.$store.state[e]&&this.$store.state[e]._id===(null===(t=this.item)||void 0===t?void 0:t._id)}):!this.$store.state[this.itemColumn.editionState]||this.$store.state[this.itemColumn.editionState]._id!==(null===(t=this.item)||void 0===t?void 0:t._id))}},methods:{toggled:function(e){this.$emit("toggled",e)}}});const de=W()(ne,[["render",ee]]);var oe=de;const me={class:"emptyState w-full pt-10 pb-8 px-5 bg-secondary rounded"},ae={key:0,class:"text-xl text-center text-textColor font-bold mb-2.5"},le={key:1,class:"emptyState-subtitle text-center mx-auto max-w-full text-sm text-textHeaderColor mb-6"},ce={class:"flex items-center justify-center"};function ue(e,t,i,s,n,d){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",me,[e.title?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ae,Object(r["toDisplayString"])(e.$t(e.title)),1)):Object(r["createCommentVNode"])("",!0),e.subtitle?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",le,Object(r["toDisplayString"])(e.$t(e.subtitle)),1)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",ce,[Object(r["renderSlot"])(e.$slots,"default",{},void 0,!0)])])}var he=Object(r["defineComponent"])({name:"EmptyState",props:{title:String,subtitle:String}});i("903a");const ve=W()(he,[["render",ue],["__scopeId","data-v-ea146432"]]);var pe=ve;const $e=(e,t)=>`${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`;var Ie=Object(r["defineComponent"])({name:"TableWrapper",props:{placeholder:String,addButtonText:String,isFilter:Boolean,hidePagination:Boolean,externalFilters:Object,stateName:String,stateToSetName:String,columns:Array,emptyStateTitle:String,emptyStateSubtitle:String,dataIncludeCount:Boolean},components:{Pagination:T,TablePreheader:Z,TableCell:oe,EmptyState:pe},data:function(){return{searchText:"",sortByColumn:{},sortDirection:"ASC",rows:10,current:1}},computed:{dataCount:function(){return this.dataIncludeCount?this.$store.state[this.stateName].count:this.$store.state[this.stateName+"Count"]?this.$store.state[this.stateName+"Count"]:this.data?this.data.length-1:0},data:function(){return this.dataIncludeCount?this.$store.state[this.stateName].data:this.$store.state[this.stateName]},allPages:function(){return Math.ceil(this.dataCount/this.rows)},resizedData:function(){return this.data&&this.data.length>0?this.$store.state[this.stateName+"Count"]?this.data:this.data.slice(0,this.rows):[]}},emits:["rowsChanged","pageChanged","addButtonClicked"],methods:{getData(){if(this.stateName){let e={query:this.searchText,current:this.current,sortBy:Array.isArray(this.sortByColumn.properties)?this.sortByColumn.properties.length>0?this.sortByColumn.properties[0]:"":this.sortByColumn.properties,order:this.sortByColumn?this.sortDirection:""};this.hidePagination||(e={...e,limit:this.rows});const t={...e,...this.externalFilters};localStorage.setItem("filters",JSON.stringify({...t,sortByColumn:this.sortByColumn})),delete t.sortByColumn,this.$store.dispatch($e("get",this.stateName),t)}},setData(e){this.stateToSetName&&this.$store.dispatch("set"+this.stateToSetName.charAt(0).toUpperCase()+this.stateToSetName.slice(1),e)},resizeData(e){this.rows=e,this.current=1,this.getData()},changePage(e){(this.current0||this.current>1&&e<0)&&(this.current+=e,this.getData())},searchResults(e){this.searchText=e,this.getData()},sortBy(e){e.noSort||(this.sortByColumn.name===e.name?this.sortDirection="ASC"===this.sortDirection?"DESC":"ASC":this.sortDirection="ASC",this.sortByColumn=e,this.getData())},toggled(e,t,i){const r=this.data.find(e=>e._id===t);r[i.properties]=e?i.trueValue:void 0!==i.falseValue&&i.falseValue,i.autoSave&&this.setData(r)}},watch:{stateName:function(){localStorage.removeItem("filters"),this.getData()},externalFilters:function(e,t){JSON.stringify(e)!==JSON.stringify(t)&&this.getData()}},beforeMount(){localStorage.removeItem("filters"),this.getData()}});const be=W()(Ie,[["render",I]]);var we=be,Ce=i("28dc"),ge=(i("14d9"),i("11d9"));const Ee=e=>{Object.keys(e.$store.state.editedItem).forEach(t=>{e[t]&&(e.item[t]=e[t])}),e.$store.commit("setEditedItem",{}),e.item&&e.item.checklist&&(e.item.checklist=JSON.parse(JSON.stringify(e.$store.state.originalChecklist)),e.$store.commit("setOriginalChecklist",[]))},ke=(e,t,i)=>{e.item&&t?(Object.keys(i).forEach(t=>{void 0===e.$store.state.newItem[t]&&(e.$store.state.newItem[t]=i[t])}),e.$store.dispatch("setData"),e.$store.commit("setNewItem",i)):(e.$store.dispatch("updateData"),Object.keys(e.$store.state.editedItem).forEach(t=>{e.$store.state.editedItem[t]&&(e[t]=e.$store.state.editedItem[t])}),e.$store.commit("setEditedItem",{}),e.$store.state.editedItem&&e.$store.state.editedItem.checklist&&e.$store.commit("setOriginalChecklist",[]))};var fe=i("7f4f"),Fe=i("5141"),ye=i("5502"),_e=i("25a0"),Oe=i("633c");const xe=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var je=[{name:"date",properties:"date",customComponent:{template:'\n
\n {{ dateFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&xe(this.$store.state.data,this.item._id)},dateFormatted:function(){return this.item?Object(ge["a"])(this.date):null},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.date=t.v$.editedItem.date.$invalid:t.isColumnsError.editedItem={date:t.v$.editedItem.date.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{date:t.v$.editedItem.date.$invalid}}),!0)},newItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.date=t.v$.newItem.date.$invalid:t.isColumnsError.newItem={date:t.v$.newItem.date.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{date:t.v$.newItem.date.$invalid}}),!0)}}}},{name:"cleaning.daily",properties:"checklist",customComponent:{template:'\n \n \n
    \n
  • \n \n \n
  • \n
\n \n
\n ',components:{Modal:fe["a"]},props:{item:{}},data:function(){return{showModal:!1,editMode:!1,originalChecklist:[]}},computed:{dailyItems(){const e=this.$store.state.checklist.filter(e=>"daily"===e.frequency),t=this.item.checklist.filter(t=>!e.find(e=>t._id===e._id)&&"daily"===t.frequency);let i=[];return this.editMode?i=this.originalChecklist.filter(i=>![...e,...t].find(e=>i._id===e._id)&&"daily"===i.frequency):this.editedItem&&this.editedItem._id&&(i=this.$store.state.originalChecklist.filter(i=>![...e,...t].find(e=>i._id===e._id)&&"daily"===i.frequency)),[...e,...t,...i]},isFirst(){return this.item&&xe(this.$store.state.data,this.item._id)},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{updateCheckbox(e,t){const i=this.item.checklist.find(e=>t&&e._id===t._id);i?this.item.checklist=this.item.checklist.filter(e=>e._id!==t._id):this.item.checklist.push(t)},close(){this.editMode=!1,this.showModal=!1},saveChecklist(){this.isFirst||this.$store.dispatch("saveChecklist",this.item),this.$store.commit("setOriginalChecklist",[]),this.close()},edit(){this.isFirst||(this.originalChecklist=JSON.parse(JSON.stringify(this.item.checklist))),this.editMode=!0},cancel(){this.editMode?this.item.checklist=JSON.parse(JSON.stringify(this.originalChecklist)):this.editedItem&&this.editedItem._id&&(this.item.checklist=JSON.parse(JSON.stringify(this.$store.state.originalChecklist))),this.showModal=!1,this.isFirst||(this.editMode=!1)}}}},{name:"cleaning.weekly",customComponent:{template:'\n \n \n
    \n
  • \n \n \n
    \n {{ $t(\'cleaning.beenCompletedWeek\') }}\n
    \n
    \n {{ $t(\'cleaning.notCompletedWeek\') }}\n
    \n
  • \n
\n \n
\n ',components:{Modal:fe["a"]},props:{item:{}},data:function(){return{showModal:!1,editMode:!1,originalChecklist:[],cleaningSchedulesDoneChecks:[]}},computed:{weeklyItems(){const e=this.$store.state.checklist.filter(e=>"weekly"===e.frequency),t=this.item.checklist.filter(t=>!e.find(e=>t._id===e._id)&&"weekly"===t.frequency);let i=[];return this.editMode?i=this.originalChecklist.filter(i=>![...e,...t].find(e=>i._id===e._id)&&"weekly"===i.frequency):this.editedItem&&this.editedItem._id&&(i=this.$store.state.originalChecklist.filter(i=>![...e,...t].find(e=>i._id===e._id)&&"weekly"===i.frequency)),[...e,...t,...i]},isFirst(){return this.item&&xe(this.$store.state.data,this.item._id)},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{async openModal(){this.showModal=!0,await this.$store.dispatch("checkCleaningSchedules",{date:this.item.date,cleaningSchedules:this.weeklyItems.map(e=>e._id)}).then(e=>{this.cleaningSchedulesDoneChecks=e})},isCompletedWeek(e){const t=this.cleaningSchedulesDoneChecks.find(t=>t._id===e._id);return t&&t.week},updateCheckbox(e,t){const i=this.item.checklist.find(e=>t&&e._id===t._id);i?this.item.checklist=this.item.checklist.filter(e=>e._id!==t._id):this.item.checklist.push(t)},close(){this.editMode=!1,this.showModal=!1},saveChecklist(){this.isFirst||this.$store.dispatch("saveChecklist",this.item),this.$store.commit("setOriginalChecklist",[]),this.close()},edit(){this.isFirst||(this.originalChecklist=JSON.parse(JSON.stringify(this.item.checklist))),this.editMode=!0},cancel(){this.editMode?this.item.checklist=JSON.parse(JSON.stringify(this.originalChecklist)):this.editedItem&&this.editedItem._id&&(this.item.checklist=JSON.parse(JSON.stringify(this.$store.state.originalChecklist))),this.showModal=!1,this.isFirst||(this.editMode=!1)}}}},{name:"cleaning.monthly",customComponent:{template:'\n \n \n
    \n
  • \n \n \n
    \n {{ $t(\'cleaning.beenCompletedMonth\') }}\n
    \n
    \n {{ $t(\'cleaning.notCompletedMonth\') }} \n
    \n
  • \n
\n \n
\n ',components:{Modal:fe["a"]},props:{item:{}},data:function(){return{showModal:!1,editMode:!1,originalChecklist:[],cleaningSchedulesDoneChecks:[]}},computed:{monthlyItems(){const e=this.$store.state.checklist.filter(e=>"monthly"===e.frequency),t=this.item.checklist.filter(t=>!e.find(e=>t._id===e._id)&&"monthly"===t.frequency);let i=[];return this.editMode?i=this.originalChecklist.filter(i=>![...e,...t].find(e=>i._id===e._id)&&"monthly"===i.frequency):this.editedItem&&this.editedItem._id&&(i=this.$store.state.originalChecklist.filter(i=>![...e,...t].find(e=>i._id===e._id)&&"monthly"===i.frequency)),[...e,...t,...i]},isFirst(){return this.item&&xe(this.$store.state.data,this.item._id)},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{async openModal(){this.showModal=!0,await this.$store.dispatch("checkCleaningSchedules",{date:this.item.date,cleaningSchedules:this.monthlyItems.map(e=>e._id)}).then(e=>{this.cleaningSchedulesDoneChecks=e})},isCompletedMonth(e){const t=this.cleaningSchedulesDoneChecks.find(t=>t._id===e._id);return t&&t.month},updateCheckbox(e,t){const i=this.item.checklist.find(e=>t&&e._id===t._id);i?this.item.checklist=this.item.checklist.filter(e=>e._id!==t._id):this.item.checklist.push(t)},close(){this.editMode=!1,this.showModal=!1},saveChecklist(){this.isFirst||this.$store.dispatch("saveChecklist",this.item),this.$store.commit("setOriginalChecklist",[]),this.close()},edit(){this.isFirst||(this.originalChecklist=JSON.parse(JSON.stringify(this.item.checklist))),this.editMode=!0},cancel(){this.editMode?this.item.checklist=JSON.parse(JSON.stringify(this.originalChecklist)):this.editedItem&&this.editedItem._id&&(this.item.checklist=JSON.parse(JSON.stringify(this.$store.state.originalChecklist))),this.showModal=!1,this.isFirst||(this.editMode=!1)},closeModal(){this.modalOpen=!1,this.editMode=!1}}}},{name:"additional",properties:"additional",customComponent:{template:'\n
\n {{ item.additional }}\n
\n
\n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&xe(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null}}}},{name:"name",properties:"name",customComponent:{template:'\n
\n {{ item.name }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&xe(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{name:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.name=t.v$.editedItem.name.$invalid:t.isColumnsError.editedItem={name:t.v$.editedItem.name.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{name:t.v$.editedItem.name.$invalid}}),!0)},newItem:{name:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.name=t.v$.newItem.name.$invalid:t.isColumnsError.newItem={name:t.v$.newItem.name.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{name:t.v$.newItem.name.$invalid}}),!0)}}}},{name:"actions",properties:["date","additional","name"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&xe(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item),this.$store.commit("setOriginalChecklist",JSON.parse(JSON.stringify(this.item.checklist)))},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,xe(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,date:new Date,checklist:[],name:""})},cancel(){Ee(this)}}}}],We=i("aa45");const De=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var Te=[{name:"item",properties:"thing",customComponent:{template:'\n
\n {{ item.thing }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&De(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{thing:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.thing=t.v$.editedItem.thing.$invalid:t.isColumnsError.editedItem={thing:t.v$.editedItem.thing.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{thing:t.v$.editedItem.thing.$invalid}}),!0)},newItem:{thing:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.thing=t.v$.newItem.thing.$invalid:t.isColumnsError.newItem={thing:t.v$.newItem.thing.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{thing:t.v$.newItem.thing.$invalid}}),!0)}}}},{name:"cleaning-schedule.frequency",properties:"frequency",customComponent:{template:'\n
\n {{ translateFrequency(item.frequency) }}\n
\n
\n \n \n \n \n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{Multiselect:We["a"],FieldWrapper:Ce["a"]},props:{item:{}},data:function(){return{options:[{value:"daily",label:"cleaning-schedule.daily"},{value:"weekly",label:"cleaning-schedule.weekly"},{value:"monthly",label:"cleaning-schedule.monthly"}]}},computed:{isFirst(){return this.item&&De(this.$store.state.data,this.item._id)},completeValue:{get(){const e=this.$store.state[this.isFirst?"newItem":"editedItem"];return e&&e.frequency?this.options.find(t=>t.value===e.frequency):void 0},set(e){const t=this.$store.state[this.isFirst?"newItem":"editedItem"];t.frequency=e?e.value:void 0}},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{completeValue:{required:Oe["f"]},changed:(e,t)=>{const i=t.isFirst?"newItem":"editedItem";return t.isColumnsError?t.isColumnsError[i]?t.isColumnsError[i].frequency=t.v$.completeValue.$invalid:t.isColumnsError[i]={frequency:t.v$.completeValue.$invalid}:t.$store.commit("setIsColumnsError",{[i]:{frequency:t.v$.completeValue.$invalid}}),!0}},methods:{getLabel({label:e}){return this.$t(e)},setValue(e){this.$store.state[this.isFirst?"newItem":"editedItem"].frequency=e.value},translateFrequency(e){const t="cleaning-schedule."+e;return this.$t(t)}}}},{name:"cleaning-schedule.precautions",properties:"precautions",customComponent:{template:'\n
\n {{ item.precautions }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&De(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{precautions:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.precautions=t.v$.editedItem.precautions.$invalid:t.isColumnsError.editedItem={precautions:t.v$.editedItem.precautions.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{precautions:t.v$.editedItem.precautions.$invalid}}),!0)},newItem:{precautions:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.precautions=t.v$.newItem.precautions.$invalid:t.isColumnsError.newItem={precautions:t.v$.newItem.precautions.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{precautions:t.v$.newItem.precautions.$invalid}}),!0)}}}},{name:"cleaning-schedule.method_cleaning",properties:"methodCleaning",customComponent:{template:'\n
\n {{ item.methodCleaning }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&De(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{methodCleaning:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.methodCleaning=t.v$.editedItem.methodCleaning.$invalid:t.isColumnsError.editedItem={methodCleaning:t.v$.editedItem.methodCleaning.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{methodCleaning:t.v$.editedItem.methodCleaning.$invalid}}),!0)},newItem:{methodCleaning:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.methodCleaning=t.v$.newItem.methodCleaning.$invalid:t.isColumnsError.newItem={methodCleaning:t.v$.newItem.methodCleaning.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{methodCleaning:t.v$.newItem.methodCleaning.$invalid}}),!0)}}}},{name:"actions",properties:["thing","frequency","precautions","methodCleaning"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&De(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,De(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,thing:"",frequency:"",precautions:"",methodCleaning:""})},cancel(){Ee(this)}}}}];const Ve=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var Ne=[{name:"date",properties:"date",customComponent:{template:'\n
\n {{ dateFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ve(this.$store.state.data,this.item._id)},dateFormatted:function(){return this.item?Object(ge["a"])(this.date):null},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.date=t.v$.editedItem.date.$invalid:t.isColumnsError.editedItem={date:t.v$.editedItem.date.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{date:t.v$.editedItem.date.$invalid}}),!0)},newItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.date=t.v$.newItem.date.$invalid:t.isColumnsError.newItem={date:t.v$.newItem.date.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{date:t.v$.newItem.date.$invalid}}),!0)}}}},{name:"prove-it.safe_method",properties:"safeMethod",customComponent:{template:'\n
\n {{ item.safeMethod }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ve(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{safeMethod:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.safeMethod=t.v$.editedItem.safeMethod.$invalid:t.isColumnsError.editedItem={safeMethod:t.v$.editedItem.safeMethod.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{safeMethod:t.v$.editedItem.safeMethod.$invalid}}),!0)},newItem:{safeMethod:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.safeMethod=t.v$.newItem.safeMethod.$invalid:t.isColumnsError.newItem={safeMethod:t.v$.newItem.safeMethod.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{safeMethod:t.v$.newItem.safeMethod.$invalid}}),!0)}}}},{name:"prove-it.how_prove",properties:"howToProve",customComponent:{template:'\n
\n {{ item.howToProve }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ve(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{howToProve:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.howToProve=t.v$.editedItem.howToProve.$invalid:t.isColumnsError.editedItem={howToProve:t.v$.editedItem.howToProve.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{howToProve:t.v$.editedItem.howToProve.$invalid}}),!0)},newItem:{howToProve:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.howToProve=t.v$.newItem.howToProve.$invalid:t.isColumnsError.newItem={howToProve:t.v$.newItem.howToProve.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{howToProve:t.v$.newItem.howToProve.$invalid}}),!0)}}}},{name:"actions",properties:["date","safeMethod","howToProve"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&Ve(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,Ve(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,date:new Date,safeMethod:"",howToProve:""})},cancel(){Ee(this)}}}}];const Re=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var Se=[{name:"contact.contact_name",properties:"contactName",customComponent:{template:'\n
\n {{ item.contactName }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Re(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{contactName:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.contactName=t.v$.editedItem.contactName.$invalid:t.isColumnsError.editedItem={contactName:t.v$.editedItem.contactName.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{contactName:t.v$.editedItem.contactName.$invalid}}),!0)},newItem:{contactName:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.contactName=t.v$.newItem.contactName.$invalid:t.isColumnsError.newItem={contactName:t.v$.newItem.contactName.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{contactName:t.v$.newItem.contactName.$invalid}}),!0)}}}},{name:"phone_number",properties:"phoneNumber",customComponent:{template:'\n
\n {{ item.phoneNumber }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Re(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{phoneNumber:{required:Oe["f"],phone:Oe["e"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.phoneNumber=t.v$.editedItem.phoneNumber.$invalid:t.isColumnsError.editedItem={phoneNumber:t.v$.editedItem.phoneNumber.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{phoneNumber:t.v$.editedItem.phoneNumber.$invalid}}),!0)},newItem:{phoneNumber:{required:Oe["f"],phone:Oe["e"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.phoneNumber=t.v$.newItem.phoneNumber.$invalid:t.isColumnsError.newItem={phoneNumber:t.v$.newItem.phoneNumber.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{phoneNumber:t.v$.newItem.phoneNumber.$invalid}}),!0)}}}},{name:"email",properties:"email",customComponent:{template:'\n
\n {{ item.email }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Re(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{email:{email:Oe["a"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.email=t.v$.editedItem.email.$invalid:t.isColumnsError.editedItem={email:t.v$.editedItem.email.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{email:t.v$.editedItem.email.$invalid}}),!0)},newItem:{email:{email:Oe["a"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.email=t.v$.newItem.email.$invalid:t.isColumnsError.newItem={email:t.v$.newItem.email.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{email:t.v$.newItem.email.$invalid}}),!0)}}}},{name:"address",properties:"address",customComponent:{template:'\n
\n {{ item.address }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Re(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{address:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.address=t.v$.editedItem.address.$invalid:t.isColumnsError.editedItem={address:t.v$.editedItem.address.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{address:t.v$.editedItem.address.$invalid}}),!0)},newItem:{address:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.address=t.v$.newItem.address.$invalid:t.isColumnsError.newItem={address:t.v$.newItem.address.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{address:t.v$.newItem.address.$invalid}}),!0)}}}},{name:"contact.for_which_advice",properties:"forWhichAdvice",customComponent:{template:'\n
\n {{ item.forWhichAdvice }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Re(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{forWhichAdvice:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.forWhichAdvice=t.v$.editedItem.forWhichAdvice.$invalid:t.isColumnsError.editedItem={forWhichAdvice:t.v$.editedItem.forWhichAdvice.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{forWhichAdvice:t.v$.editedItem.forWhichAdvice.$invalid}}),!0)},newItem:{forWhichAdvice:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.forWhichAdvice=t.v$.newItem.forWhichAdvice.$invalid:t.isColumnsError.newItem={forWhichAdvice:t.v$.newItem.forWhichAdvice.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{forWhichAdvice:t.v$.newItem.forWhichAdvice.$invalid}}),!0)}}}},{name:"actions",properties:["contactName","phoneNumber","email","address","forWhichAdvice"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&Re(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,Re(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,contactName:"",phoneNumber:"",email:"",address:"",forWhichAdvice:""})},cancel(){Ee(this)}}}}];const Be=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var Me=[{name:"date",properties:"date",customComponent:{template:'\n
\n {{ dateFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Be(this.$store.state.data,this.item._id)},dateFormatted:function(){return this.item?Object(ge["a"])(this.date):null},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.date=t.v$.editedItem.date.$invalid:t.isColumnsError.editedItem={date:t.v$.editedItem.date.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{date:t.v$.editedItem.date.$invalid}}),!0)},newItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.date=t.v$.newItem.date.$invalid:t.isColumnsError.newItem={date:t.v$.newItem.date.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{date:t.v$.newItem.date.$invalid}}),!0)}}}},{name:"delivery.supplier",properties:"supplier",customComponent:{template:'\n
\n {{ item.supplier }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Be(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{supplier:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.supplier=t.v$.editedItem.supplier.$invalid:t.isColumnsError.editedItem={supplier:t.v$.editedItem.supplier.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{supplier:t.v$.editedItem.supplier.$invalid}}),!0)},newItem:{supplier:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.supplier=t.v$.newItem.supplier.$invalid:t.isColumnsError.newItem={supplier:t.v$.newItem.supplier.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{supplier:t.v$.newItem.supplier.$invalid}}),!0)}}}},{name:"delivery.product",properties:"product",customComponent:{template:'\n
\n {{ item.product }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Be(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{product:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.product=t.v$.editedItem.product.$invalid:t.isColumnsError.editedItem={product:t.v$.editedItem.product.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{product:t.v$.editedItem.product.$invalid}}),!0)},newItem:{product:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.product=t.v$.newItem.product.$invalid:t.isColumnsError.newItem={product:t.v$.newItem.product.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{product:t.v$.newItem.product.$invalid}}),!0)}}}},{name:"temperature",properties:"temperature",customComponent:{template:'\n
\n {{ item.temperature }}°C\n
\n
\n \n
\n \n \n
\n
\n \n
\n \n \n
\n
\n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Be(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{temperature:{required:Oe["f"],numeric:Oe["d"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.temperature=t.v$.editedItem.temperature.$invalid:t.isColumnsError.editedItem={temperature:t.v$.editedItem.temperature.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{temperature:t.v$.editedItem.temperature.$invalid}}),!0)},newItem:{temperature:{required:Oe["f"],numeric:Oe["d"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.temperature=t.v$.newItem.temperature.$invalid:t.isColumnsError.newItem={temperature:t.v$.newItem.temperature.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{temperature:t.v$.newItem.temperature.$invalid}}),!0)}}}},{name:"delivery.is_accepted",properties:"isAccepted",trueValue:!0,noSort:!1,editionState:["editedItem","newItem"]},{name:"comment",properties:"comment",customComponent:{template:'\n
\n {{ item.comment }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Be(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{comment:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.comment=t.v$.editedItem.comment.$invalid:t.isColumnsError.editedItem={comment:t.v$.editedItem.comment.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{comment:t.v$.editedItem.comment.$invalid}}),!0)},newItem:{comment:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.comment=t.v$.newItem.comment.$invalid:t.isColumnsError.newItem={comment:t.v$.newItem.comment.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{comment:t.v$.newItem.comment.$invalid}}),!0)}}}},{name:"name",properties:"whoAdded",customComponent:{template:'\n
\n {{ item.whoAdded }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Be(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{whoAdded:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.whoAdded=t.v$.editedItem.whoAdded.$invalid:t.isColumnsError.editedItem={whoAdded:t.v$.editedItem.whoAdded.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{whoAdded:t.v$.editedItem.whoAdded.$invalid}}),!0)},newItem:{whoAdded:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.whoAdded=t.v$.newItem.whoAdded.$invalid:t.isColumnsError.newItem={whoAdded:t.v$.newItem.whoAdded.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{whoAdded:t.v$.newItem.whoAdded.$invalid}}),!0)}}}},{name:"actions",properties:["date","supplier","product","temperature","isAccepted","comment","temperature","whoAdded"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&Be(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,Be(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,date:new Date,supplier:"",product:"",temperature:"",isAccepted:!1,comment:"",whoAdded:""})},cancel(){Ee(this)}}}}];const Ae=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var qe=[{name:"date",properties:"date",customComponent:{template:'\n
\n {{ dateFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ae(this.$store.state.data,this.item._id)},dateFormatted:function(){return this.item?Object(ge["a"])(this.date):null},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.date=t.v$.editedItem.date.$invalid:t.isColumnsError.editedItem={date:t.v$.editedItem.date.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{date:t.v$.editedItem.date.$invalid}}),!0)},newItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.date=t.v$.newItem.date.$invalid:t.isColumnsError.newItem={date:t.v$.newItem.date.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{date:t.v$.newItem.date.$invalid}}),!0)}}}},{name:"training.training-name",properties:"trainingName",customComponent:{template:'\n
\n {{ item.trainingName }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ae(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{trainingName:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.trainingName=t.v$.editedItem.trainingName.$invalid:t.isColumnsError.editedItem={trainingName:t.v$.editedItem.trainingName.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{trainingName:t.v$.editedItem.trainingName.$invalid}}),!0)},newItem:{trainingName:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.trainingName=t.v$.newItem.trainingName.$invalid:t.isColumnsError.newItem={trainingName:t.v$.newItem.trainingName.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{trainingName:t.v$.newItem.trainingName.$invalid}}),!0)}}}},{name:"training.who_has_been_trained",properties:"whoHasBeenTrained",customComponent:{template:'\n
\n {{ item.whoHasBeenTrained }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ae(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{whoHasBeenTrained:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.whoHasBeenTrained=t.v$.editedItem.whoHasBeenTrained.$invalid:t.isColumnsError.editedItem={whoHasBeenTrained:t.v$.editedItem.whoHasBeenTrained.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{whoHasBeenTrained:t.v$.editedItem.whoHasBeenTrained.$invalid}}),!0)},newItem:{whoHasBeenTrained:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.whoHasBeenTrained=t.v$.newItem.whoHasBeenTrained.$invalid:t.isColumnsError.newItem={whoHasBeenTrained:t.v$.newItem.whoHasBeenTrained.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{whoHasBeenTrained:t.v$.newItem.whoHasBeenTrained.$invalid}}),!0)}}}},{name:"training.who_trained",properties:"whoTrained",customComponent:{template:'\n
\n {{ item.whoTrained }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ae(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{whoTrained:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.whoTrained=t.v$.editedItem.whoTrained.$invalid:t.isColumnsError.editedItem={whoTrained:t.v$.editedItem.whoTrained.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{whoTrained:t.v$.editedItem.whoTrained.$invalid}}),!0)},newItem:{whoTrained:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.whoTrained=t.v$.newItem.whoTrained.$invalid:t.isColumnsError.newItem={whoTrained:t.v$.newItem.whoTrained.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{whoTrained:t.v$.newItem.whoTrained.$invalid}}),!0)}}}},{name:"name",properties:"whoAddRecord",customComponent:{template:'\n
\n {{ item.whoAddRecord }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ae(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{whoAddRecord:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.whoAddRecord=t.v$.editedItem.whoAddRecord.$invalid:t.isColumnsError.editedItem={whoAddRecord:t.v$.editedItem.whoAddRecord.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{whoAddRecord:t.v$.editedItem.whoAddRecord.$invalid}}),!0)},newItem:{whoAddRecord:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.whoAddRecord=t.v$.newItem.whoAddRecord.$invalid:t.isColumnsError.newItem={whoAddRecord:t.v$.newItem.whoAddRecord.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{whoAddRecord:t.v$.newItem.whoAddRecord.$invalid}}),!0)}}}},{name:"actions",properties:["date","trainingName","whoHasBeenTrained","whoTrained","whoAddRecord"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&Ae(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,Ae(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,date:new Date,trainingName:"",whoHasBeenTrained:"",whoTrained:"",whoAddRecord:""})},cancel(){Ee(this)}}}}];const Pe=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var Le=[{name:"date",properties:"date",customComponent:{template:'\n
\n {{ dateFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Pe(this.$store.state.data,this.item._id)},dateFormatted:function(){return this.item?Object(ge["a"])(this.date):null},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.date=t.v$.editedItem.date.$invalid:t.isColumnsError.editedItem={date:t.v$.editedItem.date.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{date:t.v$.editedItem.date.$invalid}}),!0)},newItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.date=t.v$.newItem.date.$invalid:t.isColumnsError.newItem={date:t.v$.newItem.date.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{date:t.v$.newItem.date.$invalid}}),!0)}}}},{name:"probe.probe_iced_water",properties:"probeIcedWater",customComponent:{template:'\n
\n {{ item.probeIcedWater }}°C\n
\n
\n \n
\n \n \n
\n
\n \n
\n \n \n
\n
\n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Pe(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{probeIcedWater:{required:Oe["f"],numeric:Oe["d"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.probeIcedWater=t.v$.editedItem.probeIcedWater.$invalid:t.isColumnsError.editedItem={probeIcedWater:t.v$.editedItem.probeIcedWater.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{probeIcedWater:t.v$.editedItem.probeIcedWater.$invalid}}),!0)},newItem:{probeIcedWater:{required:Oe["f"],numeric:Oe["d"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.probeIcedWater=t.v$.newItem.probeIcedWater.$invalid:t.isColumnsError.newItem={probeIcedWater:t.v$.newItem.probeIcedWater.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{probeIcedWater:t.v$.newItem.probeIcedWater.$invalid}}),!0)}}}},{name:"probe.probe_boiling_water",properties:"probeBoilingWater",customComponent:{template:'\n
\n {{ item.probeBoilingWater }}°C\n
\n
\n \n
\n \n \n
\n
\n \n
\n \n \n
\n
\n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Pe(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{probeBoilingWater:{required:Oe["f"],numeric:Oe["d"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.probeBoilingWater=t.v$.editedItem.probeBoilingWater.$invalid:t.isColumnsError.editedItem={probeBoilingWater:t.v$.editedItem.probeBoilingWater.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{probeBoilingWater:t.v$.editedItem.probeBoilingWater.$invalid}}),!0)},newItem:{probeBoilingWater:{required:Oe["f"],numeric:Oe["d"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.probeBoilingWater=t.v$.newItem.probeBoilingWater.$invalid:t.isColumnsError.newItem={probeBoilingWater:t.v$.newItem.probeBoilingWater.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{probeBoilingWater:t.v$.newItem.probeBoilingWater.$invalid}}),!0)}}}},{name:"name",properties:"whoChecked",customComponent:{template:'\n
\n {{ item.whoChecked }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Pe(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{whoChecked:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.whoChecked=t.v$.editedItem.whoChecked.$invalid:t.isColumnsError.editedItem={whoChecked:t.v$.editedItem.whoChecked.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{whoChecked:t.v$.editedItem.whoChecked.$invalid}}),!0)},newItem:{whoChecked:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.whoChecked=t.v$.newItem.whoChecked.$invalid:t.isColumnsError.newItem={whoChecked:t.v$.newItem.whoChecked.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{whoChecked:t.v$.newItem.whoChecked.$invalid}}),!0)}}}},{name:"actions",properties:["date","probeIcedWater","probeBoilingWater","whoChecked"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&Pe(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,Pe(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,date:new Date,probeIcedWater:"",probeBoilingWater:"",whoChecked:""})},cancel(){Ee(this)}}}}];const He=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var Je=[{name:"date",properties:"date",customComponent:{template:'\n
\n {{ dateFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&He(this.$store.state.data,this.item._id)},dateFormatted:function(){return this.item?Object(ge["a"])(this.date):null},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.date=t.v$.editedItem.date.$invalid:t.isColumnsError.editedItem={date:t.v$.editedItem.date.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{date:t.v$.editedItem.date.$invalid}}),!0)},newItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.date=t.v$.newItem.date.$invalid:t.isColumnsError.newItem={date:t.v$.newItem.date.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{date:t.v$.newItem.date.$invalid}}),!0)}}}},{name:"problem.problem_solution",properties:"problemAndSolution",customComponent:{template:'\n
\n {{ item.problemAndSolution }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&He(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{problemAndSolution:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.problemAndSolution=t.v$.editedItem.problemAndSolution.$invalid:t.isColumnsError.editedItem={problemAndSolution:t.v$.editedItem.problemAndSolution.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{problemAndSolution:t.v$.editedItem.problemAndSolution.$invalid}}),!0)},newItem:{problemAndSolution:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.problemAndSolution=t.v$.newItem.problemAndSolution.$invalid:t.isColumnsError.newItem={problemAndSolution:t.v$.newItem.problemAndSolution.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{problemAndSolution:t.v$.newItem.problemAndSolution.$invalid}}),!0)}}}},{name:"name",properties:"whoChecked",customComponent:{template:'\n
\n {{ item.whoChecked }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&He(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{whoChecked:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.whoChecked=t.v$.editedItem.whoChecked.$invalid:t.isColumnsError.editedItem={whoChecked:t.v$.editedItem.whoChecked.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{whoChecked:t.v$.editedItem.whoChecked.$invalid}}),!0)},newItem:{whoChecked:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.whoChecked=t.v$.newItem.whoChecked.$invalid:t.isColumnsError.newItem={whoChecked:t.v$.newItem.whoChecked.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{whoChecked:t.v$.newItem.whoChecked.$invalid}}),!0)}}}},{name:"actions",properties:["date","problemAndSolution","whoChecked"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&He(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,He(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,date:new Date,problemAndSolution:"",whoChecked:""})},cancel(){Ee(this)}}}}];const Ge=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var Ye=[{name:"supplier.business_name",properties:"businessName",customComponent:{template:'\n
\n {{ item.businessName }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ge(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{businessName:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.businessName=t.v$.editedItem.businessName.$invalid:t.isColumnsError.editedItem={businessName:t.v$.editedItem.businessName.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{businessName:t.v$.editedItem.businessName.$invalid}}),!0)},newItem:{businessName:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.businessName=t.v$.newItem.businessName.$invalid:t.isColumnsError.newItem={businessName:t.v$.newItem.businessName.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{businessName:t.v$.newItem.businessName.$invalid}}),!0)}}}},{name:"supplier.contact_name",properties:"contactName",customComponent:{template:'\n
\n {{ item.contactName }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ge(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{contactName:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.contactName=t.v$.editedItem.contactName.$invalid:t.isColumnsError.editedItem={contactName:t.v$.editedItem.contactName.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{contactName:t.v$.editedItem.contactName.$invalid}}),!0)},newItem:{contactName:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.contactName=t.v$.newItem.contactName.$invalid:t.isColumnsError.newItem={contactName:t.v$.newItem.contactName.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{contactName:t.v$.newItem.contactName.$invalid}}),!0)}}}},{name:"phone_number",properties:"phone",customComponent:{template:'\n
\n {{ item.phone }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ge(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{phone:{required:Oe["f"],phone:Oe["e"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.phone=t.v$.editedItem.phone.$invalid:t.isColumnsError.editedItem={phone:t.v$.editedItem.phone.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{phone:t.v$.editedItem.phone.$invalid}}),!0)},newItem:{phone:{required:Oe["f"],phone:Oe["e"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.phone=t.v$.newItem.phone.$invalid:t.isColumnsError.newItem={phone:t.v$.newItem.phone.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{phone:t.v$.newItem.phone.$invalid}}),!0)}}}},{name:"email",properties:"email",customComponent:{template:'\n
\n {{ item.email }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ge(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{email:{email:Oe["a"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.email=t.v$.editedItem.email.$invalid:t.isColumnsError.editedItem={email:t.v$.editedItem.email.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{email:t.v$.editedItem.email.$invalid}}),!0)},newItem:{email:{email:Oe["a"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.email=t.v$.newItem.email.$invalid:t.isColumnsError.newItem={email:t.v$.newItem.email.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{email:t.v$.newItem.email.$invalid}}),!0)}}}},{name:"address",properties:"address",customComponent:{template:'\n
\n {{ item.address }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ge(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{address:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.address=t.v$.editedItem.address.$invalid:t.isColumnsError.editedItem={address:t.v$.editedItem.address.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{address:t.v$.editedItem.address.$invalid}}),!0)},newItem:{address:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.address=t.v$.newItem.address.$invalid:t.isColumnsError.newItem={address:t.v$.newItem.address.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{address:t.v$.newItem.address.$invalid}}),!0)}}}},{name:"supplier.delivery_days",properties:"deliveryDays",customComponent:{template:'\n
\n {{ item.deliveryDays }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ge(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{deliveryDays:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.deliveryDays=t.v$.editedItem.deliveryDays.$invalid:t.isColumnsError.editedItem={deliveryDays:t.v$.editedItem.deliveryDays.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{deliveryDays:t.v$.editedItem.deliveryDays.$invalid}}),!0)},newItem:{deliveryDays:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.deliveryDays=t.v$.newItem.deliveryDays.$invalid:t.isColumnsError.newItem={deliveryDays:t.v$.newItem.deliveryDays.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{deliveryDays:t.v$.newItem.deliveryDays.$invalid}}),!0)}}}},{name:"supplier.order_lead_time",properties:"leadTimePlacingOrder",customComponent:{template:'\n
\n {{ item.leadTimePlacingOrder }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ge(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{leadTimePlacingOrder:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.leadTimePlacingOrder=t.v$.editedItem.leadTimePlacingOrder.$invalid:t.isColumnsError.editedItem={leadTimePlacingOrder:t.v$.editedItem.leadTimePlacingOrder.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{leadTimePlacingOrder:t.v$.editedItem.leadTimePlacingOrder.$invalid}}),!0)},newItem:{leadTimePlacingOrder:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.leadTimePlacingOrder=t.v$.newItem.leadTimePlacingOrder.$invalid:t.isColumnsError.newItem={leadTimePlacingOrder:t.v$.newItem.leadTimePlacingOrder.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{leadTimePlacingOrder:t.v$.newItem.leadTimePlacingOrder.$invalid}}),!0)}}}},{name:"supplier.which_goods",properties:"whichGoods",customComponent:{template:'\n
\n {{ item.whichGoods }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ge(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{whichGoods:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.whichGoods=t.v$.editedItem.whichGoods.$invalid:t.isColumnsError.editedItem={whichGoods:t.v$.editedItem.whichGoods.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{whichGoods:t.v$.editedItem.whichGoods.$invalid}}),!0)},newItem:{whichGoods:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.whichGoods=t.v$.newItem.whichGoods.$invalid:t.isColumnsError.newItem={whichGoods:t.v$.newItem.whichGoods.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{whichGoods:t.v$.newItem.whichGoods.$invalid}}),!0)}}}},{name:"actions",properties:["businessName","contactName","phone","email","address","deliveryDays","leadTimePlacingOrder","whichGoods"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&Ge(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,Ge(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,businessName:"",contactName:"",phone:"",email:"",address:"",deliveryDays:"",leadTimePlacingOrder:"",whichGoods:""})},cancel(){Ee(this)}}}}];const ze=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var Ue=[{name:"date",properties:"date",customComponent:{template:'\n
\n {{ dateFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&ze(this.$store.state.data,this.item._id)},dateFormatted:function(){return this.item?Object(ge["a"])(this.date):null},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.date=t.v$.editedItem.date.$invalid:t.isColumnsError.editedItem={date:t.v$.editedItem.date.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{date:t.v$.editedItem.date.$invalid}}),!0)},newItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.date=t.v$.newItem.date.$invalid:t.isColumnsError.newItem={date:t.v$.newItem.date.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{date:t.v$.newItem.date.$invalid}}),!0)}}}},{name:"opening.checklist",properties:["check0","check1","check2","check3","check4","check5","check6","check7","check8","otherChecks"],customComponent:{template:'\n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n
\n
\n \n
\n ',components:{Modal:fe["a"],Toggle:se},props:{item:{}},data:function(){return{showModal:!1,otherChecksAll:[]}},computed:{isFirst(){return this.item&&ze(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null}},methods:{async open(){await this.$store.dispatch("getBookFieldsByName","06 MA Opening checks").then(e=>this.otherChecksAll=e),this.item.otherChecks=JSON.parse(JSON.stringify(this.otherChecks)),this.showModal=!0},close(){this.showModal=!1},updateOtherChecks(e){const t=this.item.otherChecks.indexOf(e);t>=0?this.item.otherChecks.splice(t,1):this.item.otherChecks.push(e)},confirm(){this.isFirst&&this.newItem&&(this.check0=this.item.check0,this.check1=this.item.check1,this.check2=this.item.check2,this.check3=this.item.check3,this.check4=this.item.check4,this.check5=this.item.check5,this.check6=this.item.check6,this.check7=this.item.check7,this.check8=this.item.check8,this.otherChecks=this.item.otherChecks),this.close()},cancel(){this.item.check0=this.check0,this.item.check1=this.check1,this.item.check2=this.check2,this.item.check3=this.check3,this.item.check4=this.check4,this.item.check5=this.check5,this.item.check6=this.check6,this.item.check7=this.check7,this.item.check8=this.check8,this.item.otherChecks=JSON.parse(JSON.stringify(this.otherChecks)),this.close()}}}},{name:"opening.additional_checks",properties:"additionalChecks",customComponent:{template:'\n
\n {{ item.additionalChecks }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&ze(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{additionalChecks:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.additionalChecks=t.v$.editedItem.additionalChecks.$invalid:t.isColumnsError.editedItem={additionalChecks:t.v$.editedItem.additionalChecks.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{additionalChecks:t.v$.editedItem.additionalChecks.$invalid}}),!0)},newItem:{additionalChecks:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.additionalChecks=t.v$.newItem.additionalChecks.$invalid:t.isColumnsError.newItem={additionalChecks:t.v$.newItem.additionalChecks.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{additionalChecks:t.v$.newItem.additionalChecks.$invalid}}),!0)}}}},{name:"name",properties:"name",customComponent:{template:'\n
\n {{ item.name }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&ze(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{name:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.name=t.v$.editedItem.name.$invalid:t.isColumnsError.editedItem={name:t.v$.editedItem.name.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{name:t.v$.editedItem.name.$invalid}}),!0)},newItem:{name:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.name=t.v$.newItem.name.$invalid:t.isColumnsError.newItem={name:t.v$.newItem.name.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{name:t.v$.newItem.name.$invalid}}),!0)}}}},{name:"actions",properties:["date","check0","check1","check2","check3","check4","check5","check6","check7","check8","otherChecks","name"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&ze(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,ze(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,date:new Date,check0:!1,check1:!1,check2:!1,check3:!1,check4:!1,check5:!1,check6:!1,check7:!1,check8:!1,otherChecks:[],additionalChecks:"",name:""})},cancel(){this.$store.dispatch("getData",{}),Ee(this)}}}}];const Ze=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var Ke=[{name:"date",properties:"date",customComponent:{template:'\n
\n {{ dateFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ze(this.$store.state.data,this.item._id)},dateFormatted:function(){return this.item?Object(ge["a"])(this.date):null},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.date=t.v$.editedItem.date.$invalid:t.isColumnsError.editedItem={date:t.v$.editedItem.date.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{date:t.v$.editedItem.date.$invalid}}),!0)},newItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.date=t.v$.newItem.date.$invalid:t.isColumnsError.newItem={date:t.v$.newItem.date.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{date:t.v$.newItem.date.$invalid}}),!0)}}}},{name:"closing.checklist",properties:["check0","check1","check2","check3","check4","check5","check6","check7","check8","otherChecks"],customComponent:{template:'\n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n
\n
\n \n
\n ',components:{Modal:fe["a"],Toggle:se},props:{item:{}},data:function(){return{showModal:!1,otherChecksAll:[]}},computed:{isFirst(){return this.item&&Ze(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null}},methods:{async open(){await this.$store.dispatch("getBookFieldsByName","06 MA CLosing checks").then(e=>this.otherChecksAll=e),this.item.otherChecks=JSON.parse(JSON.stringify(this.otherChecks)),this.showModal=!0},close(){this.showModal=!1},updateOtherChecks(e){const t=this.item.otherChecks.indexOf(e);t>=0?this.item.otherChecks.splice(t,1):this.item.otherChecks.push(e)},confirm(){this.isFirst&&this.newItem&&(this.check0=this.item.check0,this.check1=this.item.check1,this.check2=this.item.check2,this.check3=this.item.check3,this.check4=this.item.check4,this.check5=this.item.check5,this.check6=this.item.check6,this.check7=this.item.check7,this.check8=this.item.check8,this.otherChecks=this.item.otherChecks),this.close()},cancel(){this.item.check0=this.check0,this.item.check1=this.check1,this.item.check2=this.check2,this.item.check3=this.check3,this.item.check4=this.check4,this.item.check5=this.check5,this.item.check6=this.check6,this.item.check7=this.check7,this.item.check8=this.check8,this.item.otherChecks=JSON.parse(JSON.stringify(this.otherChecks)),this.close()}}}},{name:"closing.additional_checks",properties:"additionalChecks",customComponent:{template:'\n
\n {{ item.additionalChecks }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ze(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{additionalChecks:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.additionalChecks=t.v$.editedItem.additionalChecks.$invalid:t.isColumnsError.editedItem={additionalChecks:t.v$.editedItem.additionalChecks.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{additionalChecks:t.v$.editedItem.additionalChecks.$invalid}}),!0)},newItem:{additionalChecks:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.additionalChecks=t.v$.newItem.additionalChecks.$invalid:t.isColumnsError.newItem={additionalChecks:t.v$.newItem.additionalChecks.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{additionalChecks:t.v$.newItem.additionalChecks.$invalid}}),!0)}}}},{name:"name",properties:"name",customComponent:{template:'\n
\n {{ item.name }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Ze(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{name:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.name=t.v$.editedItem.name.$invalid:t.isColumnsError.editedItem={name:t.v$.editedItem.name.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{name:t.v$.editedItem.name.$invalid}}),!0)},newItem:{name:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.name=t.v$.newItem.name.$invalid:t.isColumnsError.newItem={name:t.v$.newItem.name.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{name:t.v$.newItem.name.$invalid}}),!0)}}}},{name:"actions",properties:["date","check0","check1","check2","check3","check4","check5","check6","check7","check8","otherChecks","name"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&Ze(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,Ze(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,date:new Date,check0:!1,check1:!1,check2:!1,check3:!1,check4:!1,check5:!1,check6:!1,check7:!1,check8:!1,otherChecks:[],additionalChecks:"",name:""})},cancel(){this.$store.dispatch("getData",{}),Ee(this)}}}}],Qe=i("e3e1");const Xe=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var et=[{name:"date",properties:"date",customComponent:{template:'\n
\n {{ dateFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Xe(this.$store.state.data,this.item._id)},dateFormatted:function(){return this.item?Object(ge["a"])(this.date):null},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.date=t.v$.editedItem.date.$invalid:t.isColumnsError.editedItem={date:t.v$.editedItem.date.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{date:t.v$.editedItem.date.$invalid}}),!0)},newItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.date=t.v$.newItem.date.$invalid:t.isColumnsError.newItem={date:t.v$.newItem.date.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{date:t.v$.newItem.date.$invalid}}),!0)}}}},{name:"monthly-review.any_problems",properties:"check0",trueValue:!0,noSort:!1,editionState:"editedItem"},{name:"details",properties:["check0","details"],customComponent:{template:'\n
\n {{ item.details }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Xe(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations(){return{editedItem:{details:{required:Qe["g"].withMessage(()=>this.$t("validation.required"),e=>e&&e.length>0||!this.editedItem.check0)},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.details=t.v$.editedItem.details.$invalid:t.isColumnsError.editedItem={details:t.v$.editedItem.details.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{details:t.v$.editedItem.details.$invalid}}),!0)},newItem:{details:{required:Qe["g"].withMessage(()=>this.$t("validation.required"),e=>e&&e.length>0||!this.newItem.check0)},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.details=t.v$.newItem.details.$invalid:t.isColumnsError.newItem={details:t.v$.newItem.details.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{details:t.v$.newItem.details.$invalid}}),!0)}}}}},{name:"monthly-review.action_taken",properties:["check0","whatDidDo"],customComponent:{template:'\n
\n {{ item.whatDidDo }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Xe(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations(){return{editedItem:{whatDidDo:{required:Qe["g"].withMessage(()=>this.$t("validation.required"),e=>e&&e.length>0||!this.editedItem.check0)},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.whatDidDo=t.v$.editedItem.whatDidDo.$invalid:t.isColumnsError.editedItem={whatDidDo:t.v$.editedItem.whatDidDo.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{whatDidDo:t.v$.editedItem.whatDidDo.$invalid}}),!0)},newItem:{whatDidDo:{required:Qe["g"].withMessage(()=>this.$t("validation.required"),e=>e&&e.length>0||!this.editedItem.check0)},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.whatDidDo=t.v$.newItem.whatDidDo.$invalid:t.isColumnsError.newItem={whatDidDo:t.v$.newItem.whatDidDo.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{whatDidDo:t.v$.newItem.whatDidDo.$invalid}}),!0)}}}}},{name:"monthly-review.checklist",properties:["check1","check2","check3","check4","check5","check6","check7","check8","check9","check10","check11","check12"],customComponent:{template:'\n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n
\n ',components:{Modal:fe["a"],Toggle:se},props:{item:{}},data:function(){return{showModal:!1}},computed:{isFirst(){return this.item&&Xe(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null}},methods:{close(){this.showModal=!1},confirm(){this.isFirst&&this.newItem&&(this.check0=this.item.check0,this.check1=this.item.check1,this.check2=this.item.check2,this.check3=this.item.check3,this.check4=this.item.check4,this.check5=this.item.check5,this.check6=this.item.check6,this.check7=this.item.check7,this.check8=this.item.check8,this.check9=this.item.check9,this.check10=this.item.check10,this.check11=this.item.check11,this.check12=this.item.check12),this.close()},cancel(){this.item.check1=this.check1,this.item.check2=this.check2,this.item.check3=this.check3,this.item.check4=this.check4,this.item.check5=this.check5,this.item.check6=this.check6,this.item.check7=this.check7,this.item.check8=this.check8,this.item.check9=this.check9,this.item.check10=this.check10,this.item.check11=this.check11,this.item.check12=this.check12,this.close()}}}},{name:"additional",properties:"additional",customComponent:{template:'\n
\n {{ item.additional }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Xe(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{additional:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.additional=t.v$.editedItem.additional.$invalid:t.isColumnsError.editedItem={additional:t.v$.editedItem.additional.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{additional:t.v$.editedItem.additional.$invalid}}),!0)},newItem:{additional:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.additional=t.v$.newItem.additional.$invalid:t.isColumnsError.newItem={additional:t.v$.newItem.additional.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{additional:t.v$.newItem.additional.$invalid}}),!0)}}}},{name:"name",properties:"name",customComponent:{template:'\n
\n {{ item.name }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&Xe(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{name:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.name=t.v$.editedItem.name.$invalid:t.isColumnsError.editedItem={name:t.v$.editedItem.name.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{name:t.v$.editedItem.name.$invalid}}),!0)},newItem:{name:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.name=t.v$.newItem.name.$invalid:t.isColumnsError.newItem={name:t.v$.newItem.name.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{name:t.v$.newItem.name.$invalid}}),!0)}}}},{name:"actions",properties:["date","check0","details","whatDidDo","check1","check2","check3","check4","check5","check6","check7","check8","check9","check10","check11","check12","additional","name"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&Xe(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,Xe(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,date:new Date,check0:!1,details:"",whatDidDo:"",check1:!1,check2:!1,check3:!1,check4:!1,check5:!1,check6:!1,check7:!1,check8:!1,check9:!1,check10:!1,check11:!1,check12:!1,additional:"",name:""})},cancel(){this.$store.dispatch("getData",{}),Ee(this)}}}}];const tt=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var it=[{name:"date",properties:["date","devicesTemperatures"],customComponent:{template:'\n
\n {{ dateFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&tt(this.$store.state.data,this.item._id)},dateFormatted:function(){return this.item?Object(ge["a"])(this.date):null},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations(){return{editedItem:{date:{required:Oe["f"],tooEarly:Qe["g"].withMessage(()=>this.$t("day-temperatures.date_too_early"),e=>{const t=new Date(e);t.setHours(0,0,0,0);const i=this.$store.state.editedItem.devicesTemperatures.find(e=>{const i=this.$store.state.devices.find(t=>t.deviceId===e.deviceId);if(!i)return i;const r=new Date(i.date);return r.setHours(0,0,0,0),t.getTime()(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.date=t.v$.editedItem.date.$invalid:t.isColumnsError.editedItem={date:t.v$.editedItem.date.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{date:t.v$.editedItem.date.$invalid}}),!0)},newItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.date=t.v$.newItem.date.$invalid:t.isColumnsError.newItem={date:t.v$.newItem.date.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{date:t.v$.newItem.date.$invalid}}),!0)}}},methods:{blur(e){this.v$[e].date.$touch,"newItem"===e&&this.$store.state.devices.forEach(e=>{const t=this.devicesTemperatures.find(t=>t.deviceId===e.deviceId);new Date(e.date).getTime()>new Date(this.newItem.date).getTime()&&t?this.devicesTemperatures.splice(this.devicesTemperatures.indexOf(t),1):new Date(e.date).getTime()<=new Date(this.newItem.date).getTime()&&!t&&this.devicesTemperatures.push({device_id:e._id,deviceId:e.deviceId,morning:null,evening:null})})}}}},{name:"day-temperatures.devices",properties:"devicesTemperatures",customComponent:{template:'\n
\n
\n
{{ $t(\'day-temperatures.deviceIdShort\') }}: {{ deviceTemperature.deviceId }}
\n
{{ $t(\'morning\') }}: {{ deviceTemperature.morning }}°C
\n
{{ $t(\'evening\') }}: {{ deviceTemperature.evening }}°C
\n
\n
\n
\n
\n \n \n \n \n \n \n \n
\n \n \n
\n
\n \n
\n \n \n
\n
\n \n
\n
\n \n \n \n \n \n \n \n
\n \n \n
\n
\n \n
\n \n \n
\n
\n \n
\n
\n
\n
\n
{{ $t(\'day-temperatures.deviceIdShort\') }} {{ devicesTemperatures[index].deviceId }}
\n \n
\n \n \n
\n
\n \n
\n \n \n
\n
\n \n
\n
\n \n \n \n \n \n \n \n
\n \n \n
\n
\n \n
\n \n \n
\n
\n \n
\n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"],VueMultiselect:We["a"]},props:{item:{}},data:function(){return{newLogDevice:{device_id:null,deviceId:null,morning:null,evening:null}}},computed:{options(){return this.$store.state.devices.map(e=>e.deviceId)},devicesForLog(){const e=this.isFirst&&this.newItem?this.newItem:this.editedItem,t=this.isFirst&&this.newItem?this.devicesTemperatures:this.editedItem.devicesTemperatures;return this.$store.state.devices.filter(i=>{const r=new Date(i.date);r.setHours(0,0,0,0);const s=new Date(e.date);s.setHours(0,0,0,0);const n=t.find(e=>e.deviceId===i.deviceId);return!n&&s.getTime()>=r.getTime()}).map(e=>e.deviceId)},editedDevicesTempValidations(){return this.editedItem.devicesTemperatures?this.editedItem.devicesTemperatures.map(()=>({deviceId:{required:Oe["f"]},morning:{required:Oe["f"],numeric:Oe["d"]},evening:{required:Oe["f"],numeric:Oe["d"]}})):[]},newDevicesTempValidations(){return this.devicesTemperatures?this.devicesTemperatures.map(()=>({morning:{required:Oe["f"],numeric:Oe["d"]},evening:{required:Oe["f"],numeric:Oe["d"]}})):[]},isFirst(){return this.item&&tt(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:function(){return{editedItem:{devicesTemperatures:this.editedDevicesTempValidations,changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.devicesTemperatures=t.v$.editedItem.devicesTemperatures.$invalid:t.isColumnsError.editedItem={devicesTemperatures:t.v$.editedItem.devicesTemperatures.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{devicesTemperatures:t.v$.editedItem.devicesTemperatures.$invalid}}),!0)},newLogDevice:{deviceId:{required:Oe["f"]},morning:{required:Oe["f"],numeric:Oe["d"]},evening:{required:Oe["f"],numeric:Oe["d"]}},devicesTemperatures:this.newDevicesTempValidations,changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.devicesTemperatures=t.v$.devicesTemperatures.$invalid:t.isColumnsError.newItem={devicesTemperatures:t.v$.devicesTemperatures.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{devicesTemperatures:t.v$.devicesTemperatures.$invalid}}),!0)}},methods:{selectDevice(e,t){const i=this.$store.state.devices.find(t=>e===t.deviceId);this.editedItem.devicesTemperatures[t].deviceId=i.deviceId,this.editedItem.devicesTemperatures[t].device_id=i._id},selectNewDeviceForLog(e){const t=this.$store.state.devices.find(t=>e===t.deviceId);this.newLogDevice.deviceId=t.deviceId,this.newLogDevice.device_id=t._id},addNewDeviceToLog(){const e=this.isFirst&&this.newItem?this.devicesTemperatures:this.editedItem.devicesTemperatures;e.push(JSON.parse(JSON.stringify(this.newLogDevice))),this.newLogDevice.deviceId=null,this.newLogDevice.device_id=null,this.newLogDevice.morning=null,this.newLogDevice.evening=null,this.v$.newLogDevice.$reset()}}}},{name:"actions",properties:["date","devicesTemperatures"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&tt(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",JSON.parse(JSON.stringify(this.item)))},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;if(this.isInvalid(e))return;const t=this.isFirst?this.newItem:this.editedItem;t.date=new Date(t.date),t.date.setHours(0,0,0,0),ke(this,tt(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,date:new Date,devicesTemperatures:this.$store.state.devices.map(e=>({device_id:e._id,deviceId:e.deviceId,morning:null,evening:null}))})},cancel(){Ee(this)}}}}];const rt=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var st=[{name:"dishes-allergen.dish",properties:"dish",customComponent:{template:'\n
\n {{ item.dish }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&rt(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{dish:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.dish=t.v$.editedItem.dish.$invalid:t.isColumnsError.editedItem={dish:t.v$.editedItem.dish.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{dish:t.v$.editedItem.dish.$invalid}}),!0)},newItem:{dish:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.dish=t.v$.newItem.dish.$invalid:t.isColumnsError.newItem={dish:t.v$.newItem.dish.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{dish:t.v$.newItem.dish.$invalid}}),!0)}}}},{name:"dishes-allergen.allergens",properties:"allergens",customComponent:{template:'\n
\n {{ item.allergens ? item.allergens.map(allergen => allergenLabel(allergen)).join(\', \') : \'\' }}\n
\n
\n \n \n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();e.commit("setVuelidateExternalResults",{})},components:{FieldWrapper:Ce["a"],Multiselect:We["a"]},props:{item:{}},data:function(){return{possibleAllergens:["containCelery","containCereals","containCrustaceans","containEggs","containFish","containLupin","containMilk","containMollusc","containMustard","containNuts","containPeanuts","containSesame","containSoya","containSulphurDioxide"]}},computed:{isFirst(){return this.item&&rt(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{allergenLabel(e){const t=e?"dishes-allergen."+e:"";return this.$t(t)}}}},{name:"actions",properties:["dish","allergens"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&rt(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{translateAllergens(e){return e.map(e=>this.$t("dishes-allergen."+e))},isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,rt(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,dish:"",allergens:[]})},cancel(){Ee(this)}}}}];const nt=(e,t)=>{let i=0;return e.find((e,r)=>{const s=e._id===t;return s&&(i=r),s}),0===i};var dt=[{name:"date",properties:"date",customComponent:{template:'\n
\n {{ dateFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&nt(this.$store.state.data,this.item._id)},dateFormatted:function(){return this.item?Object(ge["a"])(this.date):null},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.date=t.v$.editedItem.date.$invalid:t.isColumnsError.editedItem={date:t.v$.editedItem.date.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{date:t.v$.editedItem.date.$invalid}}),!0)},newItem:{date:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.date=t.v$.newItem.date.$invalid:t.isColumnsError.newItem={date:t.v$.newItem.date.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{date:t.v$.newItem.date.$invalid}}),!0)}}}},{name:"food-handling.food",properties:"food",customComponent:{template:'\n
\n {{ item.food }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&nt(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{food:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.food=t.v$.editedItem.food.$invalid:t.isColumnsError.editedItem={food:t.v$.editedItem.food.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{food:t.v$.editedItem.food.$invalid}}),!0)},newItem:{food:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.food=t.v$.newItem.food.$invalid:t.isColumnsError.newItem={food:t.v$.newItem.food.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{food:t.v$.newItem.food.$invalid}}),!0)}}}},{name:"food-handling.choiceCookingCoolingReheating",properties:"choiceCookingCoolingReheating",customComponent:{template:'\n
\n {{ $t(\'food-handling.\' + item.choiceCookingCoolingReheating) }}\n
\n
\n \n \n \n \n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{Multiselect:We["a"],FieldWrapper:Ce["a"]},props:{item:{}},data:function(){return{options:[{value:"cooking",label:"food-handling.cooking"},{value:"cooling",label:"food-handling.cooling"},{value:"reheating",label:"food-handling.reheating"}]}},computed:{isFirst(){return this.item&&nt(this.$store.state.data,this.item._id)},completeValue:{get(){const e=this.$store.state[this.isFirst?"newItem":"editedItem"];return e&&e.choiceCookingCoolingReheating?this.options.find(t=>t.value===e.choiceCookingCoolingReheating):void 0},set(e){const t=this.$store.state[this.isFirst?"newItem":"editedItem"];t.choiceCookingCoolingReheating=e?e.value:void 0}},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{completeValue:{required:Oe["f"]},changed:(e,t)=>{const i=t.isFirst?"newItem":"editedItem";return t.isColumnsError?t.isColumnsError[i]?t.isColumnsError[i].choiceCookingCoolingReheating=t.v$.completeValue.$invalid:t.isColumnsError[i]={choiceCookingCoolingReheating:t.v$.completeValue.$invalid}:t.$store.commit("setIsColumnsError",{[i]:{choiceCookingCoolingReheating:t.v$.completeValue.$invalid}}),!0}},methods:{getLabel({label:e}){return this.$t(e)},setValue(e){this.$store.state[this.isFirst?"newItem":"editedItem"].choiceCookingCoolingReheating=e.value}}}},{name:"food-handling.timeStart",properties:"timeStart",noSort:!0,customComponent:{template:'\n
\n {{ timeFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},data:function(){return{key:0}},computed:{timeFormatted:function(){const e=new Date;return e.setHours(this.item.timeStart.hours,this.item.timeStart.minutes,this.item.timeStart.seconds,0),this.item?Object(ge["a"])(e,"hh:mm A"):null},isFirst(){return this.item&&nt(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{timeStart:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.timeStart=t.v$.editedItem.timeStart.$invalid:t.isColumnsError.editedItem={timeStart:t.v$.editedItem.timeStart.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{timeStart:t.v$.editedItem.timeStart.$invalid}}),!0)},newItem:{timeStart:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.timeStart=t.v$.newItem.timeStart.$invalid:t.isColumnsError.newItem={timeStart:t.v$.newItem.timeStart.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{timeStart:t.v$.newItem.timeStart.$invalid}}),!0)}},methods:{formatTime(e){return Object(ge["a"])(e,"hh:mm A")}}}},{name:"food-handling.timeFinish",properties:"timeFinish",noSort:!0,customComponent:{template:'\n
\n {{ timeFormatted }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},data:function(){return{key:0}},computed:{timeFormatted:function(){const e=new Date;return e.setHours(this.item.timeFinish.hours,this.item.timeFinish.minutes,this.item.timeFinish.seconds,0),this.item?Object(ge["a"])(e,"hh:mm A"):null},isFirst(){return this.item&&nt(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{timeFinish:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.timeFinish=t.v$.editedItem.timeFinish.$invalid:t.isColumnsError.editedItem={timeFinish:t.v$.editedItem.timeFinish.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{timeFinish:t.v$.editedItem.timeFinish.$invalid}}),!0)},newItem:{timeFinish:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.timeFinish=t.v$.newItem.timeFinish.$invalid:t.isColumnsError.newItem={timeFinish:t.v$.newItem.timeFinish.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{timeFinish:t.v$.newItem.timeFinish.$invalid}}),!0)}},methods:{formatTime(e){return Object(ge["a"])(e,"hh:mm A")}}}},{name:"day-temperatures.translation",properties:"temperature",customComponent:{template:'\n
\n {{ item.temperature }}°C\n
\n
\n \n
\n \n \n
\n
\n \n
\n \n \n
\n
\n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&nt(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{temperature:{required:Oe["f"],numeric:Oe["d"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.temperature=t.v$.editedItem.temperature.$invalid:t.isColumnsError.editedItem={temperature:t.v$.editedItem.temperature.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{temperature:t.v$.editedItem.temperature.$invalid}}),!0)},newItem:{temperature:{required:Oe["f"],numeric:Oe["d"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.temperature=t.v$.newItem.temperature.$invalid:t.isColumnsError.newItem={temperature:t.v$.newItem.temperature.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{temperature:t.v$.newItem.temperature.$invalid}}),!0)}}}},{name:"name",properties:"name",customComponent:{template:'\n
\n {{ item.name }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&nt(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{name:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.name=t.v$.editedItem.name.$invalid:t.isColumnsError.editedItem={name:t.v$.editedItem.name.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{name:t.v$.editedItem.name.$invalid}}),!0)},newItem:{name:{required:Oe["f"]},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.name=t.v$.newItem.name.$invalid:t.isColumnsError.newItem={name:t.v$.newItem.name.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{name:t.v$.newItem.name.$invalid}}),!0)}}}},{name:"food-handling.comment",properties:"comment",customComponent:{template:'\n
\n {{ item.comment }}\n
\n
\n \n \n \n \n \n \n
\n ',setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},components:{FieldWrapper:Ce["a"]},props:{item:{}},computed:{isFirst(){return this.item&&nt(this.$store.state.data,this.item._id)},newItem(){return this.$store?this.$store.state.newItem:null},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},validations:{editedItem:{comment:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.editedItem?t.isColumnsError.editedItem.comment=t.v$.editedItem.comment.$invalid:t.isColumnsError.editedItem={comment:t.v$.editedItem.comment.$invalid}:t.$store.commit("setIsColumnsError",{editedItem:{comment:t.v$.editedItem.comment.$invalid}}),!0)},newItem:{comment:{},changed:(e,t)=>(t.isColumnsError?t.isColumnsError.newItem?t.isColumnsError.newItem.comment=t.v$.newItem.comment.$invalid:t.isColumnsError.newItem={comment:t.v$.newItem.comment.$invalid}:t.$store.commit("setIsColumnsError",{newItem:{comment:t.v$.newItem.comment.$invalid}}),!0)}}}},{name:"actions",properties:["date","food","choiceCookingCoolingReheating","timeStart","timeFinish","temperature","name","comment"],noSort:!0,customComponent:{template:'\n
\n \n \n \n \n
\n ',props:{item:{}},computed:{isFirst(){return this.item&&nt(this.$store.state.data,this.item._id)},isEdited(){return this.item&&this.editedItem&&this.editedItem._id&&this.editedItem._id===this.item._id},editedItem(){return this.$store?this.$store.state.editedItem:null},isColumnsError(){return this.$store.state.isColumnsError}},methods:{isInvalid(e){return e&&Object.keys(e).find(t=>e[t])},remove(){this.$store.dispatch("removeData",this.item._id)},editMode(){this.$store.commit("setEditedItem",this.item)},save(){const e=this.isFirst?this.isColumnsError.newItem:this.isColumnsError.editedItem;this.isInvalid(e)||ke(this,nt(this.$store.state.data,this.item._id),{id:void 0,branchId:this.$store.state.activeBranch._id,date:new Date,food:"",choiceCookingCoolingReheating:"",timeStart:{hours:(new Date).getHours(),minutes:(new Date).getMinutes(),seconds:0},timeFinish:{hours:(new Date).getHours(),minutes:(new Date).getMinutes(),seconds:0},temperature:"",name:"",comment:""})},cancel(){Ee(this)}}}}],ot=Object(r["defineComponent"])({components:{VueMultiselect:We["a"],PageTitle:u["a"],TableWrapper:we,VueDatePicker:Fe["a"],FieldWrapper:Ce["a"]},setup:()=>{const e=Object(ye["b"])();return e.commit("setVuelidateExternalResults",{}),{v$:Object(_e["a"])({$externalResults:Object(r["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},validations:function(){return{addition:{deviceDate:{required:Oe["f"]},deviceId:{required:Oe["f"],deviceIdExists:Qe["g"].withMessage(()=>this.$t("day-temperatures.id_not_found"),e=>{const t=this.$store.state.devices.some(t=>t.deviceId===e);return!t})}},removing:{deviceToRemove:{required:Oe["f"]},removeDate:{required:Oe["f"]}}}},data:function(){return{addition:{deviceDate:new Date,deviceId:""},isLoading:!1,showModal:!1,key:0,removing:{deviceToRemove:null,removeDate:new Date}}},computed:{action(){return"day-temperatures"===this.$route.params.action?this.$route.params.action+"."+this.$route.params.type:this.$route.params.action},columns(){let e=null;switch(this.$route.params.action){case"day-temperatures":e=it;break;case"cleaning":e=je;break;case"cleaning-schedule":e=Te;break;case"prove-it":e=Ne;break;case"contact":e=Se;break;case"training":e=qe;break;case"delivery":e=Me;break;case"probe":e=Le;break;case"problem":e=Je;break;case"supplier":e=Ye;break;case"opening":e=Ue;break;case"closing":e=Ke;break;case"monthly-review":e=et;break;case"dishes-allergen":e=st;break;case"food-handling":e=dt;break}return e||[]}},watch:{$route(e,t){this.$store.commit("setData",[]),t.path!==e.path&&this.key++}},methods:{async add(){const e=await this.v$.addition.$validate();if(!e)return;this.isLoading=!0;const t=new Date(this.addition.deviceDate);t.setHours(0,0,0,0),this.$store.dispatch("addDevice",{date:t,deviceId:this.addition.deviceId,branchId:this.$store.state.activeBranch._id}).then(()=>{this.isLoading=!1,this.addition.deviceDate=new Date,this.addition.deviceId="",this.key++,this.v$.addition.$reset()}).catch(()=>{this.isLoading=!1})},async remove(){const e=await this.v$.removing.$validate();if(!e)return;this.isLoading=!0;const t=new Date(this.removing.removeDate);t.setHours(0,0,0,0),this.$store.dispatch("deleteDevice",{date:t,_id:this.removing.deviceToRemove?this.removing.deviceToRemove._id:null}).then(()=>{this.isLoading=!1,this.removing.removeDate=new Date,this.removing.deviceToRemove=null,this.key++,this.v$.removing.$reset()}).catch(()=>{this.isLoading=!1})}}});const mt=W()(ot,[["render",c]]);t["default"]=mt},"57bc":function(e,t,i){"use strict";i.r(t);var r=i("f2bf");const s={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n=Object(r["createElementVNode"])("path",{d:"M10 4.16669V15.8334","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),d=Object(r["createElementVNode"])("path",{d:"M4.16663 10H15.8333","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),o=[n,d];function m(e,t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",s,o)}var a=i("d959"),l=i.n(a);const c={},u=l()(c,[["render",m]]);t["default"]=u},7959:function(e,t,i){},"7f4f":function(e,t,i){"use strict";var r=i("f2bf");const s={class:"p-5 text-2xl flex items-center gap-2"},n={key:0,class:"mt-2"},d={class:"p-5 max-w-screen"},o={class:"p-5 flex items-center gap-2"};function m(e,t,i,m,a,l){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"overflow-auto background fixed top-0 start-0 z-50 w-screen max-w-screen h-screen flex items-start justify-center",onClick:t[3]||(t[3]=t=>e.close(t))},[Object(r["createElementVNode"])("div",{class:"border rounded bg-white",onClick:t[2]||(t[2]=t=>e.windowClicked(t))},[Object(r["createElementVNode"])("div",s,[Object(r["createElementVNode"])("div",null,[Object(r["createElementVNode"])("div",null,[Object(r["createElementVNode"])("b",null,Object(r["toDisplayString"])(e.$t(e.title)),1)]),e.subtitle?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",n,Object(r["toDisplayString"])(e.$t(e.subtitle)),1)):Object(r["createCommentVNode"])("",!0)]),Object(r["createElementVNode"])("div",{class:"ms-auto cursor-pointer",onClick:t[0]||(t[0]=t=>e.$emit("closed"))},"✕")]),Object(r["createElementVNode"])("div",d,[Object(r["renderSlot"])(e.$slots,"default")]),Object(r["createElementVNode"])("div",o,[Object(r["renderSlot"])(e.$slots,"footer"),e.hideCancel?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:0,class:"secondary",onClick:t[1]||(t[1]=t=>e.$emit("closed"))},Object(r["toDisplayString"])(e.$t("cancel")),1))])])])}var a=Object(r["defineComponent"])({name:"PageTitle",props:{title:{type:String,default:""},subtitle:{type:String,default:null},hideCancel:{type:Boolean,default:!1}},emits:["closed"],methods:{windowClicked(e){e.windowClicked=!0},close(e){e.windowClicked||this.$emit("closed")}}}),l=(i("079d"),i("d959")),c=i.n(l);const u=c()(a,[["render",m]]);t["a"]=u},"903a":function(e,t,i){"use strict";i("b6ff")},9950:function(e,t,i){},"9ac8":function(e,t,i){"use strict";i("f448")},a3f9:function(e,t,i){"use strict";var r=i("f2bf");const s={class:"title text-start mb-10"},n={class:"text-black font-bold text-3xl"},d={key:0,class:"text-lg text-textHeaderColor mt-2"};function o(e,t,i,o,m,a){return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",s,[Object(r["createElementVNode"])("h1",n,Object(r["toDisplayString"])(e.$t(e.title)),1),e.subtitle?(Object(r["openBlock"])(),Object(r["createElementBlock"])("p",d,Object(r["toDisplayString"])(e.$t(e.subtitle)),1)):Object(r["createCommentVNode"])("",!0)])}var m=Object(r["defineComponent"])({name:"PageTitle",props:{title:{type:String,default:""},subtitle:String}}),a=i("d959"),l=i.n(a);const c=l()(m,[["render",o]]);t["a"]=c},b6ff:function(e,t,i){},d98d:function(e,t,i){"use strict";i("1194")},f448:function(e,t,i){},f45c:function(e,t,i){"use strict";i("2a93")},fdd9:function(e,t,i){"use strict";i.r(t);var r=i("f2bf");const s={class:"absolute start-2.5",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n=Object(r["createElementVNode"])("path",{d:"M9.16667 15.8333C12.8486 15.8333 15.8333 12.8486 15.8333 9.16667C15.8333 5.48477 12.8486 2.5 9.16667 2.5C5.48477 2.5 2.5 5.48477 2.5 9.16667C2.5 12.8486 5.48477 15.8333 9.16667 15.8333Z","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),d=Object(r["createElementVNode"])("path",{d:"M17.5 17.5L13.875 13.875","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),o=[n,d];function m(e,t){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",s,o)}var a=i("d959"),l=i.n(a);const c={},u=l()(c,[["render",m]]);t["default"]=u}}]); //# sourceMappingURL=chunk-d47f663c.3314cecc.js.map