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AS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://website-js/./src/components/semen-ordering/SemenOrdering.vue?134c","webpack://website-js/./src/components/semen-ordering/SemenOrderingInput.vue?ebe5","webpack://website-js/./src/components/semen-ordering/SemenOrderingList.vue?64af","webpack://website-js/./src/services/SemenOrderingService.ts","webpack://website-js/./src/utils/SemenUtils.ts","webpack://website-js/./src/store/modules/SemenOrderingModule.ts","webpack://website-js/./src/utils/objectUtils.ts","webpack://website-js/./src/components/semen-ordering/SemenOrdering.vue","webpack://website-js/./src/components/semen-ordering/SemenOrderingDatePicker.vue","webpack://website-js/./src/components/semen-ordering/SemenOrderingDatePicker.vue?bff1","webpack://website-js/./src/components/semen-ordering/SemenOrderingDatePicker.vue?79b6","webpack://website-js/./src/components/semen-ordering/SemenOrderingDatePicker.vue?9483","webpack://website-js/./src/components/semen-ordering/SemenOrderingInput.vue","webpack://website-js/./src/components/semen-ordering/SemenOrderingInput.vue?6a0f","webpack://website-js/./src/components/semen-ordering/SemenOrderingInput.vue?2c8a","webpack://website-js/./src/components/semen-ordering/SemenOrderingInput.vue?92bb","webpack://website-js/./src/components/semen-ordering/SemenOrdering.vue?0534","webpack://website-js/./src/components/semen-ordering/SemenOrdering.vue?ff7d","webpack://website-js/./src/components/semen-ordering/SemenOrdering.vue?1f5d","webpack://website-js/./src/components/semen-ordering/SemenOrderingList.vue","webpack://website-js/./src/components/semen-ordering/SemenOrderingList.vue?fc56","webpack://website-js/./src/components/semen-ordering/SemenOrderingList.vue?3463","webpack://website-js/./src/components/semen-ordering/SemenOrderingList.vue?089d","webpack://website-js/./src/components/semen-ordering/SemenOrdering.vue?6c85","webpack://website-js/./src/components/semen-ordering/SemenOrderingInput.vue?b91a","webpack://website-js/./src/components/semen-ordering/SemenOrderingList.vue?f585"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.semen-ordering{border:1px solid #0000001a;box-shadow:2px 2px 0 #0000000f}.semen-ordering-row-product{display:flex;align-items:center;border-bottom:1px solid #ddd}.semen-ordering-row-product-name{flex:1;max-width:350px;padding:0 10px;font-display:500}.semen-ordering-row-product-inputs{flex:1;display:flex;padding:5px 5px 10px 0;gap:10px}.semen-ordering-row-product-inputs-input{flex:1}.semen-ordering-row-product-inputs-input input{text-align:center}.semen-ordering-row-header{background-color:#fafafa;border-bottom:1px solid #ddd;display:flex;align-items:center}.semen-ordering-row-header-name{flex:1;max-width:350px;padding:0 10px;font-weight:600;font-size:1.25rem}.semen-ordering-row-header-deliveries{flex:1;padding:10px 0}.semen-ordering-row-header-deliveries-free-delivery-text{text-align:center;font-weight:600;margin-bottom:10px}.semen-ordering-row-header-deliveries-delivery{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;font-size:14px;font-weight:500}.semen-ordering-row-header-deliveries-delivery button{background:#fafafa;padding-right:10px;display:flex;align-items:center;font-weight:500;gap:10px;padding:5px 10px;cursor:pointer;border:none;font-size:12px;background:#222;color:#fff;border:1px solid #0000001a;box-shadow:2px 2px 0 #0000000f}.semen-ordering-row-header-deliveries-delivery button.selected{background:var(--primary-color)}.semen-ordering-row-header-deliveries-delivery button:disabled{background:var(--warning-color);cursor:not-allowed}.semen-ordering-row-header-deliveries-items{flex:1;display:flex;align-items:center;justify-content:center;gap:10px}.semen-ordering-cut-off-text{text-align:center;font-weight:500;padding:10px}.semen-ordering-modal .vdp-datepicker{height:268px}.semen-ordering-modal-actions{padding:1rem;display:flex;justify-content:flex-end;gap:.5rem}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.semen-ordering-input input.blocked{border-color:var(--danger-color)!important;border-width:2px;border-style:dashed}.semen-ordering-input input.blocked::placeholder{color:var(--danger-color);opacity:1}.semen-ordering-input input.blocked::-ms-input-placeholder{color:var(--danger-color)}.semen-ordering-input input.not-blocked{border-color:var(--primary-color)!important}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.semen-ordering-list-form-delivery-info{display:flex;align-items:center;justify-content:center;gap:.5rem}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","import axios, { AxiosResponse } from 'axios';\r\nimport {\r\n    SemenOrderingCategoryResult,\r\n    SemenOrderingCartItem,\r\n    SemenOrderingUpdateDeliveryDatesRequest,\r\n    SemenOrderingCartItemRequest,\r\n    InvalidOrderedSemenProduct,\r\n} from '@/models/SemenOrdering';\r\nimport { WebCart } from '@/models/Cart';\r\n\r\nexport default class SemenOrderingService {\r\n    private profileId: string = (window as any).CbxApiContextKey;\r\n    private endpoint: string;\r\n\r\n    constructor(args: any = {}) {\r\n        if (args.profileId) this.profileId = args.profileId;\r\n        this.endpoint = `/contextapi/${this.profileId}/v1/semenordering`;\r\n    }\r\n\r\n    public async getSemenOrdering(id: string): Promise<SemenOrderingCategoryResult> {\r\n        try {\r\n            const res: AxiosResponse<SemenOrderingCategoryResult> = await axios.get(\r\n                `${this.endpoint}/getcategory/${id}`\r\n            );\r\n            return res.data;\r\n        } catch (e) {\r\n            console.log(e);\r\n        }\r\n    }\r\n\r\n    public async getSemenCartItems(): Promise<SemenOrderingCartItem[]> {\r\n        try {\r\n            const res: AxiosResponse<SemenOrderingCartItem[]> = await axios.get(`${this.endpoint}/getsemencartitems`);\r\n            return res.data;\r\n        } catch (e) {\r\n            console.log(e);\r\n        }\r\n    }\r\n\r\n    public async getDeliveryDates(): Promise<Date[]> {\r\n        try {\r\n            const res: AxiosResponse<Date[]> = await axios.get(`${this.endpoint}/getdeliverydates`);\r\n            return res.data;\r\n        } catch (e) {\r\n            console.log(e);\r\n        }\r\n    }\r\n\r\n    public async setDeliveryDates(dates: Date[]): Promise<Date[]> {\r\n        try {\r\n            dates = dates.filter((x) => x !== null);\r\n            const payload: SemenOrderingUpdateDeliveryDatesRequest = {\r\n                deliverydates: dates,\r\n            };\r\n            const res: AxiosResponse<Date[]> = await axios.post(`${this.endpoint}/setdeliverydates`, payload);\r\n            return res.data;\r\n        } catch (e) {\r\n            console.log(e);\r\n        }\r\n    }\r\n\r\n    public async addToCart(items: SemenOrderingCartItem[]): Promise<WebCart> {\r\n        try {\r\n            const payload: SemenOrderingCartItemRequest = {\r\n                items,\r\n            };\r\n            const res: AxiosResponse<WebCart> = await axios.post(`${this.endpoint}/addtocart`, payload);\r\n            return res.data;\r\n        } catch (e) {\r\n            console.log(e);\r\n        }\r\n    }\r\n\r\n    public async getPossibleDeliveryDates(category: string): Promise<Date[]> {\r\n        try {\r\n            const res: AxiosResponse<Date[]> = await axios.post(`${this.endpoint}/possibledeliverydates?category=${category}`);\r\n            return res.data;\r\n        } catch (error) {\r\n            console.log(error);\r\n        }\r\n    }\r\n\r\n    public async getPossibleDeliveryDatesByDelivery(delivery: number): Promise<Date[]> {\r\n        try {\r\n            const res: AxiosResponse<Date[]> = await axios.post(`${this.endpoint}/possibledeliverydates?delivery=${delivery}`);\r\n            return res.data;\r\n        } catch (error) {\r\n            console.log(error);\r\n        }\r\n    }\r\n\r\n    public async clearSemenOrder(): Promise<string[]> {\r\n        try {\r\n            const res: AxiosResponse<string[]> = await axios.get(`${this.endpoint}/clearsemenorder`);\r\n            return res.data;\r\n        } catch (error) {\r\n            return [];\r\n        }\r\n    }\r\n\r\n    public async oneFreeDelivery(): Promise<string[]> {\r\n        try {\r\n            const res: AxiosResponse<string[]> = await axios.get(`${this.endpoint}/free-delivery-obtained`);\r\n            return res.data;\r\n        } catch (error) {\r\n            return [];\r\n        }\r\n    }\r\n\r\n    public async getInvalidCartItems(): Promise<{[key: number]: InvalidOrderedSemenProduct[]}> {\r\n        try {\r\n            const res: AxiosResponse<{[key: number]: InvalidOrderedSemenProduct[]}> = await axios.post(`${this.endpoint}/invaliditemsincart`);\r\n            return res.data;\r\n        } catch (error) {\r\n            return {};\r\n        }\r\n    }\r\n}\r\n","import { WebCartItem } from \"@/models/Cart\";\r\n\r\nexport const getDateString = (input: string | Date) => {\r\n    return typeof input === 'object' ? input.toISOString().split('T')[0] : new Date(input).toISOString().split('T')[0];\r\n};\r\n\r\nexport const areDatesInSameWeek = (dates: Date[]): boolean => {\r\n    if (dates.length < 2) {\r\n        return false;\r\n    }\r\n\r\n    const weekStart = (date: Date) => {\r\n        const currentDate = new Date(date);\r\n        const currentDay = currentDate.getDay();\r\n        const difference = currentDate.getDate() - currentDay + (currentDay === 0 ? -6 : 1);\r\n        return new Date(currentDate.setDate(difference));\r\n    };\r\n\r\n    const weeks: { startDate: Date, endDate: Date }[] = [];\r\n\r\n    for (let date of dates) {\r\n        date = new Date(date);\r\n        let weekMatched = false;\r\n\r\n        for (const week of weeks) {\r\n            if (date >= week.startDate && date <= week.endDate) {\r\n                weekMatched = true;\r\n                break;\r\n            }\r\n        }\r\n\r\n        if (!weekMatched) {\r\n            const weekStartDate = weekStart(date);\r\n            const weekEndDate = new Date(weekStartDate);\r\n            weekEndDate.setDate(weekEndDate.getDate() + 4);\r\n            weeks.push({ startDate: weekStartDate, endDate: weekEndDate });\r\n        }\r\n    }\r\n    return weeks.length !== dates.length;\r\n}\r\n\r\nexport const getCategoryFromWebCartItem = (item: WebCartItem) => {\r\n    return item.variantid.split(';')[2];\r\n}\r\n","import { Module, VuexModule, Mutation, Action, getModule } from 'vuex-module-decorators';\r\nimport store from '@/store';\r\nimport { InvalidOrderedSemenProduct, SemenOrderingCartItem, SemenOrderingCategoryResult } from '@/models/SemenOrdering';\r\nimport { WebCart } from '@/models/Cart';\r\nimport SemenOrderingService from '@/services/SemenOrderingService';\r\nimport { getDateString } from '@/utils/SemenUtils';\r\nimport { copy } from '@/utils/objectUtils';\r\n\r\n@Module({\r\n    store,\r\n    dynamic: true,\r\n    name: 'semenOrdering',\r\n    namespaced: true,\r\n})\r\nclass SemenOrderingModule extends VuexModule {\r\n    private ss: SemenOrderingService = new SemenOrderingService();\r\n\r\n    private activeSemenOrdering: SemenOrderingCategoryResult = null;\r\n    private deliveryDates: Date[] = [];\r\n    private semenCartItems: SemenOrderingCartItem[] = [];\r\n    private selectedDeliveryDateIndex: number = 0;\r\n    private possibleDeliveryDates: Date[] = [];\r\n    private semenOrderingUpdates: SemenOrderingCartItem[] = [];\r\n    private oneFreeDelivery: boolean = false;\r\n    private invalidCartItems: {[key: string]: InvalidOrderedSemenProduct[]} = {};\r\n\r\n    get ACTIVE_SEMEN_ORDERING(): SemenOrderingCategoryResult {\r\n        return this.activeSemenOrdering;\r\n    }\r\n\r\n    get SEMEN_CART_ITEMS(): SemenOrderingCartItem[] {\r\n        return this.semenCartItems;\r\n    }\r\n\r\n    get DELIVERY_DATES(): Date[] {\r\n        return this.deliveryDates;\r\n    }\r\n\r\n    get SELECTED_DELIVERY_DATE_INDEX(): number {\r\n        return this.selectedDeliveryDateIndex;\r\n    }\r\n\r\n    get POSSIBLE_DELIVERY_DATES(): Date[] {\r\n        return this.possibleDeliveryDates;\r\n    }\r\n\r\n    get DISABLED_DATES(): any {\r\n        if (!this.possibleDeliveryDates || this.possibleDeliveryDates.length == 0) {\r\n            \r\n            return {\r\n                mindate: new Date(),\r\n                maxdate: new Date()\r\n            };\r\n        }\r\n\r\n        let mindate = new Date(this.possibleDeliveryDates[0]);\r\n        let maxdate = new Date(this.possibleDeliveryDates[this.possibleDeliveryDates.length - 1]);\r\n        \r\n        const disabledDatesObj: any = {};\r\n        for (let date = new Date(); date <= new Date(maxdate); date.setDate(date.getDate() + 1)) {\r\n            const dateAsISOString = getDateString(date.toString());\r\n            if (!this.possibleDeliveryDates.map((x) => getDateString(x.toString())).includes(dateAsISOString)) {\r\n                disabledDatesObj[dateAsISOString] = true;\r\n            }\r\n        }\r\n        if (this.deliveryDates.length > this.selectedDeliveryDateIndex) {\r\n            const date = new Date(this.deliveryDates[this.selectedDeliveryDateIndex]);\r\n            maxdate = new Date(date.setDate(date.getDate() - 1));\r\n        }\r\n        if (this.selectedDeliveryDateIndex > 1) {\r\n            const date = new Date(this.deliveryDates[this.selectedDeliveryDateIndex - 2]);\r\n            mindate = new Date(date.setDate(date.getDate() + 1));\r\n        }\r\n\r\n        return {\r\n            mindate,\r\n            maxdate,\r\n            disableddates: [\r\n                ...Object.keys(disabledDatesObj).map((x) => new Date(x))\r\n            ],\r\n        };\r\n    }\r\n\r\n    get ONE_FREE_DELIVERY(): boolean {\r\n        return this.oneFreeDelivery;\r\n    }\r\n\r\n    get SEMEN_ORDERING_UPDATES(): SemenOrderingCartItem[] {\r\n        return this.semenOrderingUpdates;\r\n    }\r\n\r\n    get INVALID_CART_ITEMS(): {[key: number]: InvalidOrderedSemenProduct[]} {\r\n        return this.invalidCartItems;\r\n    }\r\n\r\n    @Action({ commit: 'SET_ACTIVE_SEMEN_ORDERING' })\r\n    public async GET_SEMEN_ORDERING(id: string): Promise<SemenOrderingCategoryResult> {\r\n        return this.ss.getSemenOrdering(id);\r\n    }\r\n\r\n    @Action({ commit: 'SET_DELIVERY_DATES' })\r\n    public async GET_DELIVERY_DATES(): Promise<Date[]> {\r\n        return this.ss.getDeliveryDates();\r\n    }\r\n\r\n    @Action({ commit: 'SET_DELIVERY_DATES' })\r\n    public async UPDATE_DELIVERY_DATES(dates: Date[]): Promise<Date[]> {\r\n        return this.ss.setDeliveryDates(dates);\r\n    }\r\n\r\n    @Action({ commit: 'SET_SEMEN_CART_ITEMS' })\r\n    public async GET_SEMEN_CART_ITEMS(): Promise<SemenOrderingCartItem[]> {\r\n        return this.ss.getSemenCartItems();\r\n    }\r\n\r\n    @Action({ commit: 'RESET_UPDATES' })\r\n    public async UPDATE_SEMEN_CART_ITEMS(payload: SemenOrderingCartItem[]): Promise<WebCart> {\r\n        return this.ss.addToCart(payload);\r\n    }\r\n\r\n    @Mutation\r\n    private RESET_UPDATES() {\r\n        this.semenOrderingUpdates = [];\r\n    }\r\n\r\n    @Mutation\r\n    private SET_ACTIVE_SEMEN_ORDERING(payload: SemenOrderingCategoryResult) {\r\n        this.activeSemenOrdering = payload;\r\n    }\r\n\r\n    @Mutation\r\n    private SET_DELIVERY_DATES(payload: Date[]) {\r\n        this.deliveryDates = payload;\r\n    }\r\n\r\n    @Mutation\r\n    private SET_SEMEN_CART_ITEMS(payload: SemenOrderingCartItem[]) {\r\n        this.semenOrderingUpdates = payload ?? [];\r\n        this.semenCartItems = payload;\r\n    }\r\n\r\n    @Mutation\r\n    private VOID() {\r\n        return;\r\n    }\r\n\r\n    @Action({ commit: 'SET_SELECT_DELIVERY_DATE_INDEX' })\r\n    public async UPDATE_SELECTED_DELIVERY_DATE_INDEX(payload: number) {\r\n        return payload;\r\n    }\r\n\r\n    @Mutation\r\n    private SET_SELECT_DELIVERY_DATE_INDEX(payload: number) {\r\n        this.selectedDeliveryDateIndex = payload;\r\n    }\r\n\r\n    @Action({ commit: 'SET_POSSIBLE_DELIVERY_DATES' })\r\n    public async GET_POSSIBLE_DELiVERY_DATES_BY_DELIVERY_DATE(delivery: number) {\r\n        return await this.ss.getPossibleDeliveryDatesByDelivery(delivery);\r\n    }\r\n\r\n    @Mutation\r\n    public SET_POSSIBLE_DELIVERY_DATES(payload: Date[]) {\r\n        this.possibleDeliveryDates = payload;\r\n    }\r\n\r\n    @Action({ commit: 'SET_FREE_DELIVERY_DISCOUNT'})\r\n    public async UPDATE_FREE_DELIVERY_DISCOUNT(payload: number) {\r\n        return payload;\r\n    }\r\n\r\n    @Action({ commit: 'SET_SEMEN_ORDERING_UPDATES'})\r\n    public async UPDATE_SEMEN_ORDERING_UPDATES(payload: SemenOrderingCartItem) {\r\n        return payload;\r\n    }\r\n    \r\n    @Mutation\r\n    private SET_SEMEN_ORDERING_UPDATES(payload: any) {\r\n        const {productid, categoryid, delivery, quantity} = payload;\r\n        const index = this.semenOrderingUpdates.findIndex(x => x.delivery === delivery && x.productid === productid && x.categoryid === categoryid);\r\n        if (index === -1) {\r\n            this.semenOrderingUpdates.push(payload);\r\n        } else {\r\n            this.semenOrderingUpdates[index].quantity = quantity;\r\n        }\r\n    }\r\n\r\n    @Action({ commit: 'SET_ONE_FREE_DELIVERY'})\r\n    public async GET_ONE_FREE_DELIVERY() {\r\n        return await this.ss.oneFreeDelivery();\r\n    }\r\n    \r\n    @Mutation\r\n    private SET_ONE_FREE_DELIVERY(payload: boolean) {\r\n        this.oneFreeDelivery = payload;\r\n    }\r\n\r\n    @Action({ commit: 'SET_INVALID_CART_ITEMS'})\r\n    public async GET_INVALID_CART_ITEMS() {\r\n        return await this.ss.getInvalidCartItems();\r\n    }\r\n    \r\n    @Mutation\r\n    private SET_INVALID_CART_ITEMS(payload: {[key: number]: InvalidOrderedSemenProduct[]}) {\r\n        this.invalidCartItems = payload;\r\n    }\r\n}\r\n\r\nexport default getModule(SemenOrderingModule);\r\n","export function copy(object: unknown) {\r\n    return JSON.parse(JSON.stringify(object));\r\n}\r\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.vm)?_c('div',{staticClass:\"semen-ordering\"},[_c('div',{staticClass:\"semen-ordering-row semen-ordering-row-header\"},[_c('div',{staticClass:\"semen-ordering-row-header-name\"},[_vm._v(\" \"+_vm._s(_vm.vm.description)+\" \")]),_c('div',{staticClass:\"semen-ordering-row-header-deliveries\",class:{ 'uk-text-primary': _vm.oneFreeDelivery }},[(_vm.vm.isavailableforfreedelivery)?_c('div',{staticClass:\"semen-ordering-row-header-deliveries-free-delivery-text\"},[_c('span',{attrs:{\"uk-icon\":`icon: ${_vm.oneFreeDelivery ? 'check' : 'info'}`}}),_vm._v(\" \"+_vm._s(_vm.vm.freedeliverytext)+\" \")]):_vm._e(),_c('div',{staticClass:\"semen-ordering-row-header-deliveries-items\"},_vm._l((3),function(index){return _c('div',{key:index,staticClass:\"semen-ordering-row-header-deliveries-delivery\",class:{'uk-text-primary': _vm.deliveryDates[index - 1]}},[_c('button',{class:{\n                            'selected': _vm.deliveryDates[index - 1]\n                        },attrs:{\"disabled\":_vm.isDatepickerDisabled(index - 1) || !_vm.isLoggedIn},on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.openDeliveryDateModal(index)}}},[(!_vm.isLoggedIn)?[_vm._v(\" \"+_vm._s(_vm.$t('semen-ordering.please-login', ['Please login']))+\" \")]:[_c('span',{attrs:{\"uk-icon\":\"icon: calendar; ratio: 1.1\"}}),(_vm.deliveryDates[index - 1])?[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(_vm.deliveryDates[index - 1],'medium'))+\" \")]:[_vm._v(\" \"+_vm._s(_vm.$t('semen-ordering.no-date-selected', ['No date selected']))+\" \")]]],2)])}),0)])]),_vm._l((_vm.vm.products),function(product){return _c('div',{key:product.id,staticClass:\"semen-ordering-row semen-ordering-row-product\"},[_c('div',{staticClass:\"semen-ordering-row-product-name\"},[_vm._v(\" \"+_vm._s(product.description)+\" \")]),_c('div',{staticClass:\"semen-ordering-row-product-inputs\"},_vm._l((3),function(index){return _c('div',{key:index,staticClass:\"semen-ordering-row-product-inputs-input\"},[_c('SemenOrderingInput',{attrs:{\"categoryid\":_vm.vm.id,\"delivery\":index,\"deliverydate\":_vm.deliveryDates[index],\"disabled\":_vm.isDatepickerDisabled(index),\"date-not-available\":_vm.isDateNotAvailable(index),\"productId\":product.id},on:{\"update\":_vm.updateQuantity}})],1)}),0)])}),(_vm.vm.cutofftext)?_c('div',{staticClass:\"semen-ordering-cut-off-text\",class:{'uk-text-primary': _vm.vm.candelivertomorrow }},[_c('span',{attrs:{\"uk-icon\":`icon: ${_vm.vm.candelivertomorrow ? 'check': 'info'}`}}),_vm._v(\" \"+_vm._s(_vm.vm.cutofftext)+\" \")]):_vm._e(),_c('Modal',{staticClass:\"semen-ordering-modal\",attrs:{\"width\":\"360px\",\"height\":\"380px\"},on:{\"close-modal\":function($event){return _vm.closeDeliveryDateModal()}},model:{value:(_vm.modalOpen),callback:function ($$v) {_vm.modalOpen=$$v},expression:\"modalOpen\"}},[_c('ModalHeader',{attrs:{\"title\":`${_vm.$t('cart.semen-delivery-title', ['Delivery'])}: ${_vm.selectedDeliverDateIndex}`,\"icon\":\"calendar\"},on:{\"close-modal\":_vm.closeDeliveryDateModal}}),_c('SemenOrderingDatePicker',{attrs:{\"next-day-delivery-possible\":_vm.category.candelivertomorrow},model:{value:(_vm.selectedDeliveryDate),callback:function ($$v) {_vm.selectedDeliveryDate=$$v},expression:\"selectedDeliveryDate\"}}),_c('div',{staticClass:\"semen-ordering-modal-actions\"},[_c('button',{staticClass:\"uk-button\",on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.closeDeliveryDateModal()}}},[_vm._v(\" \"+_vm._s(_vm.$t('cart.semen-action-cancel', ['Cancel']))+\" \")]),_c('button',{staticClass:\"uk-button uk-button-primary\",on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.updateDeliveryDate()}}},[_vm._v(\" \"+_vm._s(_vm.$t('cart.semen-action-save', ['Save']))+\" \")])])],1)],2):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"cbx-date-picker inline\"},[_c('Datepicker',{attrs:{\"inline\":true,\"language\":_vm.datepickerLanguage,\"monday-first\":_vm.mondayFirst,\"full-month-name\":true,\"use-utc\":true,\"disabled-dates\":_vm.disabledDatesValues,\"placeholder\":_vm.placeholder},model:{value:(_vm.model),callback:function ($$v) {_vm.model=$$v},expression:\"model\"}},[_vm._t(\"beforeCalendarHeader\",null,{\"slot\":\"beforeCalendarHeader\"})],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Component, Vue, Prop } from 'vue-property-decorator';\r\n// @ts-ignore\r\nimport Datepicker from 'vuejs-datepicker';\r\n// @ts-ignore\r\nimport { en, da, sv, nbNO, fi, de, fr, es, it } from 'vuejs-datepicker/dist/locale';\r\nimport { DisabledDatesModel } from '../../models/Checkout';\r\nimport SemenOrderingModule from '@/store/modules/SemenOrderingModule';\r\n\r\n@Component({\r\n    name: 'SemenOrderingDatePicker',\r\n    components: {\r\n        Datepicker,\r\n    },\r\n})\r\nexport default class SemenOrderingDatePicker extends Vue {\r\n    @Prop({ required: true, default: new Date() }) private value: Date | null;\r\n    @Prop({ type: Boolean, required: false }) nextDayDeliveryPossible: boolean;\r\n    @Prop({ type: String, required: false }) private placeholder: string;\r\n\r\n    get model() {\r\n        return this.value;\r\n    }\r\n    set model(input: Date) {\r\n        this.$emit('input', input);\r\n    }\r\n\r\n    get disabledDates(): DisabledDatesModel {\r\n        return SemenOrderingModule.DISABLED_DATES;\r\n    }\r\n    get disabledDatesValues() {\r\n        if (this.disabledDates) {\r\n            let disableddates = this.disabledDates.disableddates;\r\n            if (!this.nextDayDeliveryPossible) {\r\n                const date = new Date();\r\n                date.setUTCHours(0,0,0,0);\r\n                date.setUTCDate(date.getDate() + 1);\r\n                disableddates.push(date);\r\n            } \r\n            \r\n            return {\r\n                to: this.disabledDates.mindate,\r\n                from: this.disabledDates.maxdate,\r\n                days: this.disabledDates.disabledweekdays,\r\n                dates: disableddates,\r\n            };\r\n        }\r\n        return {};\r\n    }\r\n\r\n    get datepickerLanguage() {\r\n        switch (this.$i18n.locale) {\r\n            case 'da-DK':\r\n                return da;\r\n            case 'sv-SE':\r\n                return sv;\r\n            case 'nb-NO':\r\n            case 'nn-NO':\r\n                return nbNO;\r\n            case 'fi-FI':\r\n                return fi;\r\n            case 'de-DE':\r\n                return de;\r\n            case 'fr-FR':\r\n                return fr;\r\n            case 'es-ES':\r\n                return es;\r\n            case 'it-IT':\r\n                return it;\r\n            default:\r\n                return en;\r\n        }\r\n    }\r\n\r\n    get mondayFirst(): boolean {\r\n        return this.datepickerLanguage !== en;\r\n    }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SemenOrderingDatePicker.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SemenOrderingDatePicker.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SemenOrderingDatePicker.vue?vue&type=template&id=48d02d14&\"\nimport script from \"./SemenOrderingDatePicker.vue?vue&type=script&lang=ts&\"\nexport * from \"./SemenOrderingDatePicker.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"semen-ordering-input\"},[(_vm.isDisabled)?[_c('input',{staticClass:\"uk-input\",class:{'blocked' : _vm.product.blocked || _vm.dateNotAvailable },attrs:{\"placeholder\":_vm.input,\"type\":\"number\",\"disabled\":true,\"uk-tooltip\":_vm.toolTip}})]:[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.input),expression:\"input\"}],staticClass:\"uk-input not-blocked\",attrs:{\"min\":\"0\",\"placeholder\":\"0\",\"type\":\"number\"},domProps:{\"value\":(_vm.input)},on:{\"input\":function($event){if($event.target.composing)return;_vm.input=$event.target.value}}})]],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { SemenOrderingCartItem } from '@/models/SemenOrdering';\r\nimport SemenOrderingModule from '@/store/modules/SemenOrderingModule';\r\nimport { Debounce } from 'vue-debounce-decorator';\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\n\r\n@Component({\r\n    name: 'SemenOrderingInput',\r\n})\r\nexport default class SemenOrderingInput extends Vue {\r\n    @Prop({ type: Boolean, default: true }) disabled: boolean;\r\n    @Prop({ type: Boolean, default: false }) dateNotAvailable: boolean;\r\n    @Prop({ type: Number, required: true }) delivery: number;\r\n    @Prop({ type: String, required: true }) categoryid: string;\r\n    @Prop({ type: String, required: true }) productId: string;\r\n    @Prop({ type: String }) deliverydate: string;\r\n\r\n    get semenCartItems() {\r\n        return SemenOrderingModule.SEMEN_CART_ITEMS;\r\n    }\r\n\r\n    get semenProductVariantId() {\r\n        return `SO;delivery_${this.delivery};${this.categoryid}`;\r\n    }\r\n\r\n    get cartItem() {\r\n        return (\r\n            this.semenCartItems?.find(\r\n                (x) =>\r\n                    x.delivery === `delivery${this.delivery}` &&\r\n                    x.categoryid === this.categoryid &&\r\n                    x.productid === this.productId\r\n            ) ?? null\r\n        );\r\n    }\r\n\r\n    get category() {\r\n        return SemenOrderingModule.ACTIVE_SEMEN_ORDERING.categories.find(category => category.id === this.categoryid);\r\n    }\r\n\r\n    get product() {\r\n        if (!this.category) return null;\r\n        return this.category.products?.find((product) => product.id === this.productId) ?? null;\r\n    }\r\n\r\n    get isDisabled() {\r\n        if (this.disabled) return true;\r\n        if (this.dateNotAvailable) return true;\r\n        if (!this.product) return true;\r\n        if (this.product.blocked) return true;\r\n        return false;\r\n    }\r\n\r\n\r\n    get input(): number {\r\n        if (this.cartItem) {\r\n            return this.cartItem.quantity;\r\n        }\r\n        return null;\r\n    }\r\n\r\n    set input(value: number) {\r\n        this.updateInput(value);\r\n    }\r\n\r\n    get toolTip() {\r\n        if (this.product?.blocked) {\r\n            return this.$t('cart.semen-not-allowed-to-buy', ['You do not have access to order this item, please contact customer service']);\r\n        } else if (this.disabled) {\r\n            return this.$t('cart.semen-select-date-before-buy', ['You must select a date before you can select the number of doses']);\r\n        } else if (this.dateNotAvailable) {\r\n            return this.$t('cart.semen-date-not-available', ['The selected delivery date is not available for ordering']);\r\n        }\r\n        return '';\r\n    }\r\n\r\n    @Debounce(500)\r\n    private updateInput(value: number) {\r\n        const payload: SemenOrderingCartItem = {\r\n            categoryid: this.categoryid,\r\n            delivery: `delivery${this.delivery}`,\r\n            productid: this.productId,\r\n            quantity: value,\r\n            isavailableforfreedelivery: false\r\n        };\r\n        this.$emit('update', payload);\r\n    }\r\n\r\n    private getSemenProductVariantId(delivery: string, categoryid: string) {\r\n        return `SO;${delivery};${categoryid}`;\r\n    }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SemenOrderingInput.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SemenOrderingInput.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SemenOrderingInput.vue?vue&type=template&id=1e259b0e&\"\nimport script from \"./SemenOrderingInput.vue?vue&type=script&lang=ts&\"\nexport * from \"./SemenOrderingInput.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SemenOrderingInput.vue?vue&type=style&index=0&id=1e259b0e&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","\r\nimport { copy } from '@/utils/objectUtils';\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport SemenOrderingDatePicker from './SemenOrderingDatePicker.vue';\r\nimport { SemenOrderingCartItem, SemenOrderingCategory } from '../../models/SemenOrdering';\r\nimport SemenOrderingInput from './SemenOrderingInput.vue';\r\nimport SemenOrderingModule from '@/store/modules/SemenOrderingModule';\r\nimport { CbxVariablesModule } from '@/store/modules/CbxVariablesModule';\r\n\r\n@Component({\r\n    name: 'SemenOrdering',\r\n    components: {\r\n        SemenOrderingDatePicker,\r\n        SemenOrderingInput,\r\n    },\r\n})\r\nexport default class SemenOrdering extends Vue {\r\n    @Prop({ type: Object, required: false, default: null }) category: SemenOrderingCategory;\r\n\r\n    vm: SemenOrderingCategory = null;\r\n    modalOpen = false;\r\n    selectedDeliveryDate: Date | null = null;\r\n    updates: SemenOrderingCartItem[] = [];\r\n\r\n    get isLoggedIn(): boolean {\r\n        return CbxVariablesModule.VARIABLES.signinstatus;\r\n    }\r\n\r\n    get possibleDeliveryDates() {\r\n        return this.category.possibledeliverydates;\r\n    }\r\n\r\n    get selectedDeliverDateIndex() {\r\n        return SemenOrderingModule.SELECTED_DELIVERY_DATE_INDEX;\r\n    }\r\n\r\n    get deliveryDates() {\r\n        return SemenOrderingModule.DELIVERY_DATES;\r\n    }\r\n\r\n    get oneFreeDelivery() {\r\n        if (!this.category?.isavailableforfreedelivery) return false;\r\n        return SemenOrderingModule?.ONE_FREE_DELIVERY ?? false;\r\n    }\r\n\r\n    async openDeliveryDateModal(delivery: number) {\r\n        SemenOrderingModule.SET_POSSIBLE_DELIVERY_DATES(this.possibleDeliveryDates.map(d => new Date(d)));\r\n        if (this.deliveryDates[delivery - 1]) {\r\n            this.selectedDeliveryDate = new Date(this.deliveryDates[delivery - 1]);\r\n        } else {\r\n            this.selectedDeliveryDate = null;\r\n        }\r\n        this.modalOpen = true;\r\n        SemenOrderingModule.UPDATE_SELECTED_DELIVERY_DATE_INDEX(delivery);\r\n    }\r\n\r\n    async updateDeliveryDate() {\r\n        const payload = copy(this.deliveryDates);\r\n        payload[this.selectedDeliverDateIndex - 1] = this.selectedDeliveryDate;\r\n        await SemenOrderingModule.UPDATE_DELIVERY_DATES(payload);\r\n        this.closeDeliveryDateModal();\r\n        return;\r\n    }\r\n\r\n    closeDeliveryDateModal() {\r\n        SemenOrderingModule.UPDATE_SELECTED_DELIVERY_DATE_INDEX(0);\r\n        this.selectedDeliveryDate = null;\r\n        this.modalOpen = false;\r\n    }\r\n\r\n    isDatepickerDisabled(deliveryIndex: number): boolean {\r\n        let retval = false;\r\n        try {\r\n            const deliveryDate = this.deliveryDates[deliveryIndex];         \r\n            if (deliveryDate !== undefined)\r\n                retval = this.possibleDeliveryDates.find(pd => new Date(pd).toISOString() == new Date(deliveryDate).toISOString()) === undefined;\r\n            else if (this.deliveryDates.length !== deliveryIndex)\r\n                retval = true;\r\n        } catch (error) {\r\n            console.log(error);\r\n        }\r\n        return retval;\r\n    }\r\n\r\n    isDateNotAvailable(deliveryIndex: number): boolean {\r\n        try {\r\n            const deliveryDate = this.deliveryDates[deliveryIndex - 1];\r\n            if (deliveryDate !== undefined)\r\n                return this.possibleDeliveryDates.find(pd => new Date(pd).toISOString() == new Date(deliveryDate).toISOString()) === undefined;\r\n        } catch (error) {\r\n            console.log(error);\r\n        }\r\n        return false;\r\n    }\r\n\r\n    async updateQuantity(payload: SemenOrderingCartItem) {\r\n        SemenOrderingModule.UPDATE_SEMEN_ORDERING_UPDATES(payload);\r\n \r\n    }\r\n    private created() {\r\n        this.vm = copy(this.category);\r\n    }\r\n\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SemenOrdering.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SemenOrdering.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SemenOrdering.vue?vue&type=template&id=40ba59a4&\"\nimport script from \"./SemenOrdering.vue?vue&type=script&lang=ts&\"\nexport * from \"./SemenOrdering.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SemenOrdering.vue?vue&type=style&index=0&id=40ba59a4&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.semenOrdering)?_c('div',{attrs:{\"id\":\"semen-ordering-list-form\"}},[_c('h2',{staticClass:\"uk-text-center\"},[_vm._v(\" \"+_vm._s(_vm.semenOrdering.title)+\" \")]),(_vm.semenOrdering.deliveryinfo)?_c('div',{staticClass:\"semen-ordering-list-form-delivery-info uk-alert uk-alert-warning\"},[_c('span',{attrs:{\"uk-icon\":\"icon: info\"}}),_c('strong',[_vm._v(\" \"+_vm._s(_vm.semenOrdering.deliveryinfo)+\" \")])]):_vm._e(),_vm._l((_vm.semenOrdering.categories),function(category,categoryIdx){return _c('SemenOrdering',{key:categoryIdx,staticClass:\"uk-margin-large-bottom\",attrs:{\"category\":category}})}),_c('div',{staticClass:\"uk-margin-bottom\"},[_c('button',{staticClass:\"uk-button uk-button-large uk-button-primary uk-width-1-1\",attrs:{\"disabled\":!_vm.updates.length},on:{\"click\":function($event){$event.preventDefault();return _vm.performUpdate.apply(null, arguments)}}},[_vm._v(\" \"+_vm._s(_vm.$t('cart.update-cart', ['Update cart']))+\" \")])])],2):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport CartModule from '@/store/modules/CartModule';\r\nimport { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport { SemenOrderingCategoryResult } from '../../models/SemenOrdering';\r\nimport SemenOrderingModule from '../../store/modules/SemenOrderingModule';\r\nimport SemenOrdering from './SemenOrdering.vue';\r\n\r\n@Component({\r\n    name: 'SemenOrderingList',\r\n    components: {\r\n        SemenOrdering,\r\n    },\r\n})\r\nexport default class SemenOrderingList extends Vue {\r\n    @Prop({ type: String, required: true }) private categoryid: null;\r\n\r\n    update: boolean = false;\r\n\r\n    get semenOrdering(): SemenOrderingCategoryResult {\r\n        return SemenOrderingModule.ACTIVE_SEMEN_ORDERING;\r\n    }\r\n\r\n    get updates() {\r\n        return SemenOrderingModule.SEMEN_ORDERING_UPDATES ?? [];\r\n    }\r\n\r\n    async performUpdate() {\r\n        await SemenOrderingModule.UPDATE_SEMEN_CART_ITEMS(this.updates);\r\n        await SemenOrderingModule.GET_SEMEN_CART_ITEMS();\r\n        await CartModule.GET_CART();\r\n        await SemenOrderingModule.GET_ONE_FREE_DELIVERY();\r\n    }\r\n\r\n    private async created() {\r\n        await SemenOrderingModule.GET_DELIVERY_DATES();\r\n        await SemenOrderingModule.GET_SEMEN_ORDERING(this.categoryid);\r\n        await SemenOrderingModule.GET_SEMEN_CART_ITEMS();\r\n        await SemenOrderingModule.GET_ONE_FREE_DELIVERY();\r\n    }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SemenOrderingList.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??clonedRuleSet-41.use[0]!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??clonedRuleSet-41.use[3]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SemenOrderingList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SemenOrderingList.vue?vue&type=template&id=4ace77f5&\"\nimport script from \"./SemenOrderingList.vue?vue&type=script&lang=ts&\"\nexport * from \"./SemenOrderingList.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SemenOrderingList.vue?vue&type=style&index=0&id=4ace77f5&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SemenOrdering.vue?vue&type=style&index=0&id=40ba59a4&prod&lang=scss&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"03cfd64f\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SemenOrderingInput.vue?vue&type=style&index=0&id=1e259b0e&prod&lang=scss&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"99547610\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!../../../node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!../../../node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SemenOrderingList.vue?vue&type=style&index=0&id=4ace77f5&prod&lang=scss&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"2ced920a\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["___CSS_LOADER_EXPORT___","push","module","id","SemenOrderingService","constructor","args","_defineProperty","window","CbxApiContextKey","profileId","this","endpoint","async","res","axios","data","e","console","log","dates","filter","x","payload","deliverydates","items","category","error","delivery","getDateString","input","toISOString","split","Date","SemenOrderingModule","VuexModule","ACTIVE_SEMEN_ORDERING","activeSemenOrdering","SEMEN_CART_ITEMS","semenCartItems","DELIVERY_DATES","deliveryDates","SELECTED_DELIVERY_DATE_INDEX","selectedDeliveryDateIndex","POSSIBLE_DELIVERY_DATES","possibleDeliveryDates","DISABLED_DATES","length","mindate","maxdate","disabledDatesObj","date","setDate","getDate","dateAsISOString","toString","map","includes","disableddates","Object","keys","ONE_FREE_DELIVERY","oneFreeDelivery","SEMEN_ORDERING_UPDATES","semenOrderingUpdates","INVALID_CART_ITEMS","invalidCartItems","ss","getSemenOrdering","getDeliveryDates","setDeliveryDates","getSemenCartItems","addToCart","RESET_UPDATES","SET_ACTIVE_SEMEN_ORDERING","SET_DELIVERY_DATES","SET_SEMEN_CART_ITEMS","VOID","SET_SELECT_DELIVERY_DATE_INDEX","getPossibleDeliveryDatesByDelivery","SET_POSSIBLE_DELIVERY_DATES","SET_SEMEN_ORDERING_UPDATES","productid","categoryid","quantity","index","findIndex","SET_ONE_FREE_DELIVERY","getInvalidCartItems","SET_INVALID_CART_ITEMS","__decorate","Action","commit","Mutation","Module","store","dynamic","name","namespaced","getModule","copy","object","JSON","parse","stringify","render","_vm","_c","_self","_setupProxy","vm","staticClass","_v","_s","description","class","isavailableforfreedelivery","attrs","freedeliverytext","_e","_l","key","isDatepickerDisabled","isLoggedIn","on","$event","stopPropagation","preventDefault","openDeliveryDateModal","_f","$t","products","product","isDateNotAvailable","updateQuantity","cutofftext","candelivertomorrow","closeDeliveryDateModal","model","value","modalOpen","callback","$$v","expression","selectedDeliverDateIndex","selectedDeliveryDate","updateDeliveryDate","staticRenderFns","datepickerLanguage","mondayFirst","disabledDatesValues","placeholder","_t","SemenOrderingDatePicker","Vue","$emit","disabledDates","nextDayDeliveryPossible","setUTCHours","setUTCDate","to","from","days","disabledweekdays","$i18n","locale","da","sv","nbNO","fi","de","fr","es","it","en","Prop","required","default","type","Boolean","String","Component","components","Datepicker","component","isDisabled","blocked","dateNotAvailable","toolTip","directives","rawName","domProps","target","composing","SemenOrderingInput","semenProductVariantId","cartItem","find","productId","categories","disabled","updateInput","getSemenProductVariantId","Number","Debounce","SemenOrdering","CbxVariablesModule","VARIABLES","signinstatus","possibledeliverydates","d","UPDATE_SELECTED_DELIVERY_DATE_INDEX","UPDATE_DELIVERY_DATES","deliveryIndex","retval","deliveryDate","undefined","pd","UPDATE_SEMEN_ORDERING_UPDATES","created","semenOrdering","title","deliveryinfo","categoryIdx","updates","performUpdate","apply","arguments","SemenOrderingList","UPDATE_SEMEN_CART_ITEMS","GET_SEMEN_CART_ITEMS","CartModule","GET_CART","GET_ONE_FREE_DELIVERY","GET_DELIVERY_DATES","GET_SEMEN_ORDERING","content","__esModule","locals","exports","add"],"sourceRoot":""}