{"version":3,"sources":["webpack:///./src/components/LOSCategoryTemplateForm.vue?99a9","webpack:///./src/views/Settings/LOSCategoryTemplates.vue?b4b4","webpack:///./src/views/Settings/LOSCategoryTemplates.vue?1c3f","webpack:///./src/components/LOSCategoryTemplatesTable.vue?cf40","webpack:///./src/components/LOSCategoryTemplateForm.vue?c77f","webpack:///./src/shared/models/losCategoryTemplate.ts","webpack:///./src/components/LOSCategoryTemplateForm.vue","webpack:///./src/components/LOSCategoryTemplateForm.vue?3011","webpack:///./src/components/LOSCategoryTemplateForm.vue?4c8e","webpack:///./src/components/LOSCategoryTemplatesTable.vue","webpack:///./src/components/LOSCategoryTemplatesTable.vue?0301","webpack:///./src/components/LOSCategoryTemplatesTable.vue?1ddc","webpack:///./src/views/Settings/LOSCategoryTemplates.vue","webpack:///./src/views/Settings/LOSCategoryTemplates.vue?7a4e","webpack:///./src/views/Settings/LOSCategoryTemplates.vue?3fcd","webpack:///./src/components/LOSCategoryTemplatesTable.vue?ce15"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","key","sensitiveKey","class","$vuetify","breakpoint","xsOnly","staticRenderFns","attrs","loading","headers","list","result","count","options","settingsOpen","on","$event","rowDoubleClick","scopedSlots","_u","fn","ref","header","text","stopPropagation","model","value","filters","callback","$$v","$set","expression","item","_g","_b","_v","openItemDetails","_s","$t","deleteItem","length","_e","proxy","addItem","losCategoriesFormOpen","losCategoriesFormCategoryId","load","open","initialForm","templateForm","isFormValid","$emit","theme","dark","saving","isSaveDisabled","save","close","id","templateName","fkey","rules","required","maxLength","_l","$index","minStay","oneOrPositive","minLowerThanMax","maxStay","_n","zeroOrPositive","removeItem","requiredIfDifferenceTypeEntered","inputPriceDifference","inputPriceDifferenceIsAbsolute","greaterThanMinus100","requiredIfPriceEntered","priceDifferenceItems","outputPriceDifference","outputPriceDifferenceIsAbsolute","addLosCategoryItem","templateId","language","fresh","old","loadTemplate","templateItems","min","max","priceDifferenceIsAbsolute","undefined","v","num","val","$refs","form","rightDrawer","clickOverlay","losCategoryTemplateItems","update","axios","post","then","$store","dispatch","color","message","timeout","localize","finally","refresh","Function","put","get","res","data","push","isDefault","index","findIndex","x","splice","default","components","NumericInputImproved","RightDrawer","NoData","component","VAlert","VBtn","VCol","VDivider","VForm","VIcon","VProgressLinear","VRow","VSelect","VTextField","VToolbar","active","exportHeaders","sortable","page","itemsPerPage","sortBy","sortDesc","groupBy","groupDesc","multiSort","mustSort","debouncedLoad","initLoaded","params","queryParams","$skip","$top","$orderby","map","$count","e","actions","fun","deleteItemConfirm","delete","deep","GenericPMSTableMenu","SortableHeadersTable","LOSCategoryTemplateForm","directives","SortableTable","VList","VListItem","VListItemContent","VListItemIcon","VListItemTitle","VMenu","LOSCategoryTemplatesTable","mixins","GlobalFilterSensitiveMixin"],"mappings":"kKAAA,W,kCCAA,W,gECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,4BAA4B,CAACG,IAAIP,EAAIQ,aAAaF,YAAY,6BAA6BG,MAAOT,EAAIU,SAASC,WAAWC,OAAS,UAAW,MAAQ,IACpSC,EAAkB,G,4DCDlB,EAAS,WAAa,IAAIb,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,uBAAuB,CAACE,YAAY,4BAA4BQ,MAAM,CAAC,eAAe,GAAG,OAAS,OAAO,WAAW,KAAK,QAAUd,EAAIe,QAAQ,QAAUf,EAAIgB,QAAQ,MAAQhB,EAAIiB,KAAKC,OAAO,sBAAsBlB,EAAIiB,KAAKE,MAAM,QAAUnB,EAAIoB,QAAQ,eAAe,CAAE,yBAA0B,CAAC,GAAI,GAAI,GAAI,MAAO,aAAepB,EAAIqB,aAAa,UAAY,wBAAw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ules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LOSCategoryTemplateForm.vue?vue&type=style&index=0&id=5efa47b2&scoped=true&lang=scss&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LOSCategoryTemplates.vue?vue&type=style&index=0&id=46f7a355&scoped=true&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"losCategoryTemplates\"},[_c('LOSCategoryTemplatesTable',{key:_vm.sensitiveKey,staticClass:\"losCategoryTemplates-table\",class:(_vm.$vuetify.breakpoint.xsOnly ? 'xs mt-4' :'' )})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"losCategoryTemplates\"},[_c('SortableHeadersTable',{staticClass:\"losCategoryTemplatesTable\",attrs:{\"fixed-header\":\"\",\"height\":\"100%\",\"item-key\":\"id\",\"loading\":_vm.loading,\"headers\":_vm.headers,\"items\":_vm.list.result,\"server-items-length\":_vm.list.count,\"options\":_vm.options,\"footer-props\":{ 'items-per-page-options': [15, 25, 50, 100] },\"settingsOpen\":_vm.settingsOpen,\"tableName\":\"losCategoryTemplates\"},on:{\"update:headers\":function($event){_vm.headers=$event},\"update:options\":function($event){_vm.options=$event},\"update:settingsOpen\":function($event){_vm.settingsOpen=$event},\"update:settings-open\":function($event){_vm.settingsOpen=$event},\"dblclick:row\":_vm.rowDoubleClick},scopedSlots:_vm._u([{key:\"header.templateName\",fn:function(ref){\nvar header = ref.header;\nreturn [_c('v-text-field',{staticClass:\"header-filter\",attrs:{\"label\":header.text},on:{\"click\":function($event){$event.stopPropagation();}},model:{value:(_vm.filters.templateName),callback:function ($$v) {_vm.$set(_vm.filters, \"templateName\", $$v)},expression:\"filters.templateName\"}})]}},{key:\"item.actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-menu',{attrs:{\"bottom\":\"\",\"left\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({attrs:{\"small\":\"\",\"icon\":\"\"}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\"fal fa-fw fa-ellipsis-v\")])],1)]}}],null,true)},[_c('v-list',[_c('v-list-item',{on:{\"click\":function($event){return _vm.openItemDetails(item)}}},[_c('v-list-item-icon',[_c('v-icon',{staticClass:\"mr-2\",attrs:{\"small\":\"\",\"color\":\"primary\"}},[_vm._v(\"fal fa-pen\")])],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t(\"Edit\")))])],1)],1),_c('v-list-item',{attrs:{\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.deleteItem(item)}}},[_c('v-list-item-icon',[_c('v-icon',{staticClass:\"mr-2\",attrs:{\"small\":\"\",\"color\":\"red\"}},[_vm._v(\"fal fa-trash\")])],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t(\"Delete\")))])],1)],1)],1)],1)]}},{key:\"body.append\",fn:function(){return [((!_vm.list.result || _vm.list.result.length == 0) && !_vm.loading)?_c('td',{attrs:{\"colspan\":_vm.headers.length}},[_c('NoData',{attrs:{\"icon\":\"fas fa-briefcase\"}})],1):_vm._e()]},proxy:true}])}),_c('v-btn',{staticClass:\"add-button\",attrs:{\"fab\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.addItem()}}},[_c('v-icon',[_vm._v(\"fal fa-plus\")])],1),_c('LOSCategoryTemplateForm',{attrs:{\"open\":_vm.losCategoriesFormOpen,\"id\":_vm.losCategoriesFormCategoryId},on:{\"update:open\":function($event){_vm.losCategoriesFormOpen=$event},\"callback\":_vm.load}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('RightDrawer',{ref:\"drawer\",staticClass:\"drawer\",attrs:{\"open\":_vm.open,\"initial\":_vm.initialForm,\"watched\":_vm.templateForm,\"is-watched-valid\":_vm.isFormValid},on:{\"update:open\":function($event){return _vm.$emit('update:open', $event)}},scopedSlots:_vm._u([{key:\"append\",fn:function(){return [_c('div',{staticClass:\"los-category-form-actions\",class:{ 'theme--dark': _vm.$vuetify.theme.dark }},[_c('v-btn',{attrs:{\"color\":\"primary\",\"loading\":_vm.saving,\"disabled\":_vm.isSaveDisabled},on:{\"click\":_vm.save}},[_vm._v(_vm._s(_vm.$t(\"Save\")))]),_c('v-btn',{on:{\"click\":_vm.close}},[_vm._v(_vm._s(_vm.$t(\"Close\")))])],1)]},proxy:true}])},[_c('v-toolbar',[_c('div',{staticClass:\"los-category-template-form-title\"},[(!!_vm.templateForm.id)?_c('span',[_vm._v(_vm._s(_vm.$t(\"LOSCategoryTemplate.Editing\") + \" - \")+\" \"+_vm._s(_vm.initialForm.templateName))]):_vm._e(),(!_vm.templateForm.id)?_c('span',[_vm._v(_vm._s(_vm.$t(\"LOSCategoryTemplate.New\")))]):_vm._e()])]),_c('v-progress-linear',{attrs:{\"indeterminate\":\"\",\"active\":_vm.loading,\"bottom\":\"\"}}),_c('v-form',{key:_vm.fkey,ref:\"form\",staticClass:\"form\",attrs:{\"disabled\":_vm.loading},model:{value:(_vm.isFormValid),callback:function ($$v) {_vm.isFormValid=$$v},expression:\"isFormValid\"}},[_c('div',{staticClass:\"form-items\"},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-alert',{attrs:{\"outlined\":\"\",\"type\":\"info\",\"border\":\"left\"}},[_vm._v(_vm._s(_vm.$t(\"CategoryTemplatePriceDifference.Info\")))])],1),_c('v-col',{attrs:{\"lg\":\"6\",\"md\":\"6\",\"sm\":\"12\"}},[_c('v-text-field',{attrs:{\"label\":_vm.$t('LOSCategoryTemplate.Name') + '*',\"rules\":[_vm.rules.required, _vm.maxLength(128)]},model:{value:(_vm.templateForm.templateName),callback:function ($$v) {_vm.$set(_vm.templateForm, \"templateName\", $$v)},expression:\"templateForm.templateName\"}})],1)],1),_vm._l((_vm.templateItems),function(item,$index){return [_c('div',{key:$index},[_c('v-row',[_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"6\"}},[_c('NumericInputImproved',{attrs:{\"label\":_vm.$t('AccomodationUnitType.LOSCategories.MinStay') + '*',\"decimalPlaces\":0,\"outlined\":false,\"validateInput\":true,\"rules\":[\n _vm.rules.required(item.minStay),\n _vm.rules.oneOrPositive(item.minStay),\n _vm.rules.minLowerThanMax(item.minStay, item.maxStay) ]},model:{value:(item.minStay),callback:function ($$v) {_vm.$set(item, \"minStay\", _vm._n($$v))},expression:\"item.minStay\"}})],1),_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"6\"}},[_c('NumericInputImproved',{attrs:{\"label\":_vm.$t('AccomodationUnitType.LOSCategories.MaxStay') + '*',\"decimalPlaces\":0,\"outlined\":false,\"validateInput\":true,\"rules\":[\n _vm.rules.required(item.maxStay),\n _vm.rules.minLowerThanMax(item.minStay, item.maxStay),\n _vm.rules.zeroOrPositive(item.maxStay)\n ]},scopedSlots:_vm._u([{key:\"append-outer\",fn:function(){return [_c('v-icon',{attrs:{\"small\":\"\",\"color\":\"red\"},on:{\"click\":function($event){return _vm.removeItem(item)}}},[_vm._v(\"fal fa-trash\")])]},proxy:true}],null,true),model:{value:(item.maxStay),callback:function ($$v) {_vm.$set(item, \"maxStay\", _vm._n($$v))},expression:\"item.maxStay\"}})],1)],1),_c('v-row',[(_vm.tenantUsesInputPrice)?_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"6\"}},[_c('NumericInputImproved',{attrs:{\"outlined\":false,\"label\":_vm.$t('OB.LOS.Category.InputPriceDifference'),\"validateInput\":true,\"rules\":[\n _vm.requiredIfDifferenceTypeEntered(item.inputPriceDifference, item.inputPriceDifferenceIsAbsolute),\n _vm.rules.greaterThanMinus100(item.inputPriceDifference, item.inputPriceDifferenceIsAbsolute)\n ]},scopedSlots:_vm._u([{key:\"append\",fn:function(){return [(item.inputPriceDifferenceIsAbsolute === false)?_c('span',[_vm._v(\"%\")]):_vm._e()]},proxy:true}],null,true),model:{value:(item.inputPriceDifference),callback:function ($$v) {_vm.$set(item, \"inputPriceDifference\", $$v)},expression:\"item.inputPriceDifference\"}})],1):_vm._e(),(_vm.tenantUsesInputPrice)?_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"6\"}},[_c('v-select',{attrs:{\"label\":_vm.$t('OB.LOS.Category.InputPriceDifferenceType'),\"rules\":[_vm.requiredIfPriceEntered(item.inputPriceDifference, item.inputPriceDifferenceIsAbsolute)],\"clearable\":\"\",\"items\":_vm.priceDifferenceItems,\"item-value\":\"value\"},model:{value:(item.inputPriceDifferenceIsAbsolute),callback:function ($$v) {_vm.$set(item, \"inputPriceDifferenceIsAbsolute\", $$v)},expression:\"item.inputPriceDifferenceIsAbsolute\"}})],1):_vm._e(),_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"6\"}},[_c('NumericInputImproved',{attrs:{\"outlined\":false,\"label\":_vm.$t('OB.LOS.Category.OutputPriceDifference'),\"validateInput\":true,\"rules\":[\n _vm.requiredIfDifferenceTypeEntered(item.outputPriceDifference, item.outputPriceDifferenceIsAbsolute),\n _vm.rules.greaterThanMinus100(item.outputPriceDifference, item.outputPriceDifferenceIsAbsolute) \n ]},scopedSlots:_vm._u([{key:\"append\",fn:function(){return [(item.outputPriceDifferenceIsAbsolute === false)?_c('span',[_vm._v(\"%\")]):_vm._e()]},proxy:true}],null,true),model:{value:(item.outputPriceDifference),callback:function ($$v) {_vm.$set(item, \"outputPriceDifference\", $$v)},expression:\"item.outputPriceDifference\"}})],1),_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"6\"}},[_c('v-select',{attrs:{\"label\":_vm.$t('OB.LOS.Category.OutputPriceDifferenceType'),\"rules\":[_vm.requiredIfPriceEntered(item.outputPriceDifference, item.outputPriceDifferenceIsAbsolute)],\"clearable\":\"\",\"items\":_vm.priceDifferenceItems,\"item-value\":\"value\"},model:{value:(item.outputPriceDifferenceIsAbsolute),callback:function ($$v) {_vm.$set(item, \"outputPriceDifferenceIsAbsolute\", $$v)},expression:\"item.outputPriceDifferenceIsAbsolute\"}})],1)],1),_c('v-divider',{staticClass:\"my-3\"})],1)]}),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-btn',{attrs:{\"text\":\"\",\"small\":\"\"},on:{\"click\":function($event){return _vm.addLosCategoryItem()}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"LOSCategoryTemplate.AddItem\"))+\" \")])],1)],1)],2),_c('v-btn',{staticClass:\"d-none\",attrs:{\"type\":\"submit\"}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export type LOSCategoryTemplateView = {\n id: number;\n templateName: string;\n status: boolean;\n}\n\nexport class LOSCategoryTemplateModel {\n id = 0;\n templateName = \"\";\n\n losCategoryTemplateItems = [] as LOSCategoryTemplateItem[];\n}\n\nexport class LOSCategoryTemplateItem{\n id = 0;\n templateId = 0;\n minStay = null as number | null;\n maxStay= null as number | null;\n inputPriceDifference = null as number | null;\n inputPriceDifferenceIsAbsolute = null as boolean | null;\n outputPriceDifference = null as number | null;\n outputPriceDifferenceIsAbsolute = null as boolean | null;\n isDefault = false;\n\n constructor(templateId = 0){\n this.templateId = templateId;\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\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\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\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\nimport { Component, Vue, Watch, Prop, Ref } from \"vue-property-decorator\";\nimport RightDrawer from \"@/components/misc/RightDrawer.vue\";\nimport * as _ from \"lodash\";\nimport NoData from \"@/components/misc/NoData.vue\";\nimport {\n LOSCategoryTemplateItem,\n LOSCategoryTemplateModel,\n} from \"@/shared/models/losCategoryTemplate\";\nimport NumericInputImproved from \"@/components/numbers/NumericInputImproved.vue\";\nimport { Getter } from \"vuex-class\";\n\n@Component({\n components: {\n NumericInputImproved,\n RightDrawer,\n NoData,\n },\n})\nexport default class LOSCategoryTemplateForm extends Vue {\n @Prop({ default: false }) open!: boolean;\n @Prop() id?: number | null;\n @Prop() callback!: () => any;\n @Getter(\"language/language\") language?: string;\n get internalLanguage() {\n return this.language ?? \"hr-HR\";\n }\n\n @Getter(\"appParams/tenantUsesInputPrice\") tenantUsesInputPrice?: boolean;\n\n fkey = 0;\n\n loading = false;\n saving = false;\n initialForm = new LOSCategoryTemplateModel();\n templateForm = new LOSCategoryTemplateModel();\n templateItems: LOSCategoryTemplateItem[] = [new LOSCategoryTemplateItem()];\n\n @Watch(\"open\")\n async openWatch(fresh: boolean, old: boolean) {\n if (fresh && !old) {\n this.fkey++;\n }\n if (fresh && this.id) {\n await this.loadTemplate();\n this.initialForm = _.cloneDeep(this.templateForm);\n } else {\n this.templateForm = new LOSCategoryTemplateModel();\n this.initialForm = _.cloneDeep(this.templateForm);\n this.templateItems = [new LOSCategoryTemplateItem()];\n }\n }\n\n get priceDifferenceItems() {\n return [\n {\n text: this.$t(\"OB.LOS.Category.IsPriceDifferenceAbsolute\"),\n value: true,\n },\n {\n text: this.$t(\"OB.LOS.Category.IsPriceDifferencePercentage\"),\n value: false,\n },\n ];\n }\n\n get isSaveDisabled(){\n return !this.isFormValid || this.saving;\n }\n\n get rules() {\n return {\n required: (value: any) =>\n !!value || value === 0 || this.$t(\"Validation.Required\"),\n oneOrPositive: (value: any) =>\n +value >= 1 || this.$t(\"Validation.MustBeOneOrPositive\"),\n zeroOrPositive: (value: any) =>\n +value >= 0 || this.$t(\"Validation.MustBeZeroOrPositive\"),\n minLowerThanMax: (min: number | null, max: number | null) =>\n min === null ||\n max === null ||\n min <= max ||\n max === 0 || // 0 == infinite\n this.$t(\n \"AccomodationUnitType.LOSCategories.MinStaysGreaterThanMaxStays\"\n ),\n greaterThanMinus100: (value: number | null, priceDifferenceIsAbsolute: boolean) =>\n value === null ||\n value === undefined ||\n value > -100 || \n priceDifferenceIsAbsolute ||\n this.$t(\"Validation.MinValue\"),\n };\n }\n\n maxLength(max: number) {\n return (v: string) =>\n v.length <= max ? true : this.$t(\"Validation.MaxLength\", { count: max });\n }\n\n requiredIfPriceEntered(num: number, val: boolean){\n if (num && (val === undefined || val === null)){\n return this.$t(\"Validation.RequiredIfPriceEntered\")\n } else {\n return true;\n }\n }\n\n requiredIfDifferenceTypeEntered(num: number, val: boolean) {\n if (val !== undefined && val !== null && (num === null || num === undefined)){\n return this.$t(\"Validation.RequiredIfPriceEntered\")\n } else {\n return true;\n }\n }\n\n isFormValid = false;\n get submitDisabled(): boolean {\n return this.isFormValid && !this.loading;\n }\n\n get form(): Vue & { validate: () => boolean } {\n return this.$refs.form as Vue & { validate: () => boolean };\n }\n\n @Ref(\"drawer\") rightDrawer?: RightDrawer;\n\n close() {\n this.rightDrawer?.clickOverlay();\n }\n\n async save() {\n if (this.isFormValid){\n this.templateForm.losCategoryTemplateItems = this.templateItems;\n if (this.templateForm.id) {\n await this.update();\n return;\n }\n if (this.templateItems.length > 0) {\n await this.axios\n .post(\"/LOSCategoryTemplates\", { ...this.templateForm })\n .then(() => {\n this.initialForm = _.cloneDeep(this.templateForm);\n this.$store.dispatch(\"showNotification\", {\n color: \"success\",\n message: this.$t(\"LOSCategoryTemplate.SaveSuccess\"),\n timeout: 5000,\n localize: true,\n });\n this.$emit(\"update:open\", false);\n this.$emit(\"callback\");\n })\n .finally(() => {\n this.refresh();\n });\n } else {\n this.$store.dispatch(\"showNotification\", {\n color: \"error\",\n message: this.$t(\"Validation.AtLeastOneItem\"),\n timeout: 5000,\n localize: true,\n });\n }\n }\n }\n\n refresh() {\n if (this.callback instanceof Function) {\n this.callback();\n }\n }\n\n async update() {\n await this.axios\n .put(`/LOSCategoryTemplates/${this.id}`, this.templateForm)\n .then(() => {\n this.$store.dispatch(\"showNotification\", {\n color: \"success\",\n message: this.$t(\"LOSCategoryTemplate.SaveSuccess\"),\n timeout: 5000,\n localize: true,\n });\n this.$emit(\"update:open\", false);\n this.$emit(\"callback\");\n })\n .finally(() => {\n this.refresh();\n });\n }\n\n async loadTemplate() {\n this.loading = true;\n await Vue.axios\n .get(\"/LOSCategoryTemplates/\" + this.id)\n .then((res) => {\n this.templateForm = res.data;\n this.initialForm = _.cloneDeep(this.templateForm);\n this.templateItems = res.data[\"losCategoryTemplateItems\"];\n })\n .finally(() => {\n this.loading = false;\n });\n }\n\n addLosCategoryItem() {\n this.templateItems.push({\n id: 0,\n templateId: this.templateForm.id,\n minStay: null,\n maxStay: null,\n isDefault: false,\n inputPriceDifference: null,\n inputPriceDifferenceIsAbsolute: null,\n outputPriceDifference: null,\n outputPriceDifferenceIsAbsolute: null\n });\n }\n\n removeItem(item: LOSCategoryTemplateItem) {\n const index = this.templateItems.findIndex((x) => x == item);\n if (index != -1) {\n this.templateItems.splice(index, 1);\n }\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LOSCategoryTemplateForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LOSCategoryTemplateForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LOSCategoryTemplateForm.vue?vue&type=template&id=5efa47b2&scoped=true&\"\nimport script from \"./LOSCategoryTemplateForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./LOSCategoryTemplateForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./LOSCategoryTemplateForm.vue?vue&type=style&index=0&id=5efa47b2&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5efa47b2\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VAlert,VBtn,VCol,VDivider,VForm,VIcon,VProgressLinear,VRow,VSelect,VTextField,VToolbar})\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\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\nimport { Component, Vue, Watch } from \"vue-property-decorator\";\nimport GenericPMSTableMenu from \"@/components/generic-pms-table/GenericPMSTableMenu.vue\";\nimport { SortableTableHeader } from \"@/components/generic-pms-table/SortableTableDirective\";\nimport SortableTable from \"@/components/generic-pms-table/SortableTableDirective\";\nimport SortableHeadersTable from \"@/components/generic-pms-table/SortableHeadersTable.vue\";\nimport LOSCategoryTemplateForm from \"@/components/LOSCategoryTemplateForm.vue\";\nimport { ListModel } from \"@/shared/models/listModel\";\nimport { DataOptions } from \"vuetify\";\nimport { formatOrderbyArray } from \"@/shared/sortHelperFunctions\";\nimport { Notification } from \"../store/modules/notifications\";\nimport * as _ from \"lodash\";\nimport NoData from \"@/components/misc/NoData.vue\";\nimport { LOSCategoryTemplateView } from \"@/shared/models/losCategoryTemplate\";\n\n@Component({\n components: {\n GenericPMSTableMenu,\n SortableHeadersTable,\n LOSCategoryTemplateForm,\n NoData\n },\n directives: {\n SortableTable,\n },\n})\nexport default class LOSCategoryTemplatesTable extends Vue {\n settingsOpen = false;\n\nheaders: SortableTableHeader[] = [\n {\n text: \"LOSCategoryTemplate.Name\",\n value: \"templateName\",\n active: true,\n default: false,\n class: \"resize-header\",\n exportHeaders: [],\n },\n {\n text: \"Actions\",\n value: \"actions\",\n sortable: false,\n active: true,\n default: true,\n class: \"resize-header\",\n exportHeaders: [],\n }\n];\n\nfilters = {\n templateName: \"\",\n};\n@Watch(\"filters\", { deep: true })\n watchFilters(val: any, old: any) {\n if (_.isEqual(val, old)) {\n this.options.page = 1;\n this.debouncedLoad();\n }\n }\n debouncedLoad = _.debounce(this.load, 500);\n\n options: DataOptions = {\n page: 1,\n itemsPerPage: 15,\n sortBy: [\"templateName\"],\n sortDesc: [],\n groupBy: [],\n groupDesc: [],\n multiSort: false,\n mustSort: true,\n };\n\n initLoaded = false;\n @Watch(\"options\", { deep: true })\n watchOptions(fresh: DataOptions, old: DataOptions) {\n if (!this.initLoaded || !_.isEqual(fresh, old)) {\n this.initLoaded = true;\n this.load();\n }\n }\n\n loading = true;\n list: ListModel = {\n count: 0,\n result: [],\n };\n\n async load(): Promise> {\n this.loading = true;\n\n return (\n this.axios\n .get>(\"/LOSCategoryTemplates\", {\n params: this.queryParams,\n })\n .then((res) => {\n this.list = res.data;\n return this.list;\n })\n .finally(() => (this.loading = false))\n );\n }\n\n get queryParams() {\n return {\n $skip: this.options.itemsPerPage * (this.options.page - 1),\n $top: this.options.itemsPerPage,\n $orderby: formatOrderbyArray(\n this.options.sortBy,\n this.options.sortDesc.map((x) => !x)\n ),\n $count: true,\n ...this.filters\n };\n }\n\n losCategoriesFormCategoryId: number | null = null;\n losCategoriesFormOpen = false;\n rowDoubleClick(e: MouseEvent, { item }: { item: LOSCategoryTemplateView }) {\n this.openItemDetails(item);\n }\n\n openItemDetails(item: LOSCategoryTemplateView) {\n this.losCategoriesFormCategoryId = item.id;\n this.losCategoriesFormOpen = true;\n }\n addItem() {\n this.losCategoriesFormCategoryId = null;\n this.losCategoriesFormOpen = true;\n }\n\n deleteItem(item: LOSCategoryTemplateView) {\n this.$store.dispatch(\"showNotification\", {\n color: \"warning\",\n message: this.$t(\"DeleteConfirmation\") + ` '${item?.templateName}'`,\n actions: [\n {\n text: this.$t(\"Delete\"),\n fun: () => {\n this.deleteItemConfirm(item);\n return true;\n },\n },\n {\n text: this.$t(\"Cancel\"),\n fun: () => {\n return true;\n },\n },\n ],\n timeout: 30000,\n } as Notification);\n }\n deleteItemConfirm({ id }: { id: number }) {\n Vue.axios\n .delete(`/LOSCategoryTemplates/${id}`)\n .then(() => {\n this.$store.dispatch(\"showNotification\", {\n color: \"success\",\n message: this.$t(\"LOSCategoryTemplate.DeleteSuccess\"),\n timeout: 5000,\n } as Notification);\n })\n .finally(() => {\n this.load();\n });\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LOSCategoryTemplatesTable.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LOSCategoryTemplatesTable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LOSCategoryTemplatesTable.vue?vue&type=template&id=3452d7ce&scoped=true&\"\nimport script from \"./LOSCategoryTemplatesTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./LOSCategoryTemplatesTable.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./LOSCategoryTemplatesTable.vue?vue&type=style&index=0&id=3452d7ce&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3452d7ce\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemIcon } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VIcon,VList,VListItem,VListItemContent,VListItemIcon,VListItemTitle,VMenu,VTextField})\n","\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport LOSCategoryTemplatesTable from \"@/components/LOSCategoryTemplatesTable.vue\";\nimport GlobalFilterSensitiveMixin from '@/mixins/GlobalFilterSensitiveMixin';\n\n@Component({\n components: {\n LOSCategoryTemplatesTable\n },\n mixins: [\n GlobalFilterSensitiveMixin\n ]\n})\nexport default class LOSCategoryTemplates extends Vue {}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LOSCategoryTemplates.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LOSCategoryTemplates.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LOSCategoryTemplates.vue?vue&type=template&id=46f7a355&scoped=true&\"\nimport script from \"./LOSCategoryTemplates.vue?vue&type=script&lang=ts&\"\nexport * from \"./LOSCategoryTemplates.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./LOSCategoryTemplates.vue?vue&type=style&index=0&id=46f7a355&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"46f7a355\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LOSCategoryTemplatesTable.vue?vue&type=style&index=0&id=3452d7ce&scoped=true&lang=css&\""],"sourceRoot":""}