{"version":3,"sources":["webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/toast/client/js/store/reducer.js","webpack:///./node_modules/@logitravel/alex-comp-cru/components/information-carousel/client/js/prototype.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/toast/client/js/store/actions.js","webpack:///./node_modules/@logitravel/alex-comp-cru/components/toast-async/client/js/index.js","webpack:///./node_modules/@logitravel/alex-comp-cru/components/toast-async/client/js/store/reducer.js","webpack:///./node_modules/@logitravel/alex-comp-cru/components/information-carousel/client/js/image/index.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/toast/client/js/config.js","webpack:///./node_modules/@logitravel/alex-comp-cru/components/toast-async/client/js/store/actions.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/toast/template.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/toast/client/js/index.js","webpack:///./node_modules/@logitravel/alex-comp-cru/components/toast-async/client/js/config.js","webpack:///./node_modules/@logitravel/alex-comp-cru/components/information-carousel/client/js/carousel/index.js","webpack:///./node_modules/@logitravel/alex-comp-cru/components/information-carousel/client/js/config.js","webpack:///./node_modules/@logitravel/alex-comp-cru/components/toast-async/client/js/toast/index.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/toast/client/js/toast/index.js","webpack:///./node_modules/@bluekiri/alexandria-contrib-components/components/toast/client/js/prototype.js","webpack:///./node_modules/@logitravel/alex-comp-cru/components/information-carousel/client/js/index.js","webpack:///./node_modules/@logitravel/alex-comp-cru/components/toast-async/client/js/prototype.js"],"names":["types","require","initialState","active","hidden","disabled","module","exports","reducer","state","arguments","length","undefined","action","type","DESTROY","DISPLAY","_objectSpread","ENABLE","enable","payload","DISABLE","disable","HIDE","CLOSE","initCarousel","initImage","prototype","init","this","config","actions","destroy","display","hide","close","elementExist","selector","configuration","instance","Object","create","element","document","querySelector","dataset","result","JSON","parse","Image","panel","concat","component","start","iconName","css","fadeIn","fadeOut","intervalsOpen","intervalsClose","delays","html","prepareDataConfig","data","_data$config","_data$items","items","_config$styles","styles","dataType","_toConsumableArray","join","trim","stringify","map","item","label","icon","hooks","header","toasts","Carousel","carousel","hasPagination","hasNavigation","hasAutoplay","hasBreakpoints","swiper","slidesPerView","slidesPerGroup","centeredSlides","watchSlidesVisibility","loop","spaceBetween","breakpoints","768","single","two","logoConfig","width","height","toNode","ToastTempalte","Toast","addToast","node","context","template","createToast","appendChild","toast","_require2","interval","fromEvent","take","randomId","ViewHelpers","index","_instance$config","markdown","push","classList","add","store","dispatch","subscriptions","subscribe","currentToast","setTimeout","parentNode","removeChild","destroyToast","_panel$config","pipe","next","x","remove","Store","_require4","_require6","setupStore","setupActions","_this","indexes","setupReactions","_this2","reactions","unsubscribe","keys","forEach","key","_this3","_this$config","timeOut$","complete","_this4","_require3","Services","getToasts","endpoints","getModel"],"mappings":";suBAKA,IAAQA,EAAUC,EAAQ,QAAlBD,MAGFE,EAAe,CACjBC,QAAQ,EACRC,QAAQ,EACRC,UAAU,GAwCdC,EAAOC,QAAU,CACbC,QArCJ,WAA+C,IAA9BC,EAAKC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGR,EAAcW,EAAMH,UAAAC,OAAA,EAAAD,UAAA,QAAAE,EACzC,OAAQC,EAAOC,MACX,KAAKd,EAAMe,QACP,OAAO,KACX,KAAKf,EAAMgB,QACP,OAAAC,IAAA,GACOR,GAAK,IACRL,QAAQ,IAEhB,KAAKJ,EAAMkB,OACP,OAAAD,IAAA,GACOR,GAAK,IACRJ,UAAU,EACVc,OAAQN,EAAOO,UAEvB,KAAKpB,EAAMqB,QACP,OAAAJ,IAAA,GACOR,GAAK,IACRJ,UAAU,EACViB,QAAST,EAAOO,UAExB,KAAKpB,EAAMuB,KACP,OAAAN,IAAA,GACOR,GAAK,IACRL,QAAQ,IAEhB,KAAKJ,EAAMwB,MACP,OAAAP,EAAA,GACOR,GAEX,QACI,OAAOA,M,uBCzCnB,IAAQgB,EAAiBxB,EAAQ,QAAzBw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AAQ,SAAAC,GAAG,OAAIL,EAAKC,UAAUI,GAAKH,iBAGpEF,EAAKvG,QAAQuF,WAAWC,YAAYe,EAAKvG,SAGzC4B,EAAI9B,OAAO4G,KAAKH,IAAOI,SAAQ,SAAAC,GAAG,cAAWL,EAAKK,YAd/BzH,MAqB/BiG,UAAS,WAKL,OAJIjG,KAAKgG,eAAehG,KAAKsH,cAE7BtH,KAAKgG,cAAgB,GAEdhG,MAGXsH,YAAW,WAAG,IAAAI,EAAA,KACV,OAAK1H,KAAKgG,eAEVvD,EAAI9B,OAAO4G,KAAKvH,KAAKgG,gBAAgBwB,SAAQ,SAAAC,GAAG,OAAIC,EAAK1B,cAAcyB,GAAKH,iBAErEtH,MAJyBA,MAOpCwB,MAAK,WAAG,IAAAsG,EAAA,KACJ,IAAK9H,KAAKC,OAAOuB,MAAO,OAAOxB,KAE/B,IAAQ6E,EAAY7E,KAAKC,OAAjB4E,QACAoD,EAAcjI,KAAKC,OAAOiI,UAA1BD,UAeR,OAZAD,EAASnD,GACJsD,SAASF,GACTzB,KAAKnB,EAAK,IACVY,WAAU,SAAA/D,GACFA,GAKLyC,EAASmD,EAAM5F,MAGhBlC,MAGXD,KAAI,WACA,OAAKC,KAAKC,OAAOF,MAGjBC,KAAK+G,aAGL/G,KAAKgH,eAGLhH,KAAKmH,iBAGLnH,KAAKiG,YAGLjG,KAAKwB,QAEExB,MAjBuBA,OAsBtCvB,EAAOC,QAAUoB","file":"vendors~toast.6eb35460392a6778d6e0.bundle.js","sourcesContent":["/* ==========================================================================\n Toast > Client > Store > reducer\n ========================================================================== */\n\n/* Modules */\nconst { types } = require('./actions');\n\n/* Initial state */\nconst initialState = {\n active: false,\n hidden: false,\n disabled: false\n};\n\n/* Reducer */\nfunction reducer(state = initialState, action) {\n switch (action.type) {\n case types.DESTROY:\n return null;\n case types.DISPLAY:\n return {\n ...state,\n hidden: false\n };\n case types.ENABLE:\n return {\n ...state,\n disabled: true,\n enable: action.payload\n };\n case types.DISABLE:\n return {\n ...state,\n disabled: false,\n disable: action.payload\n };\n case types.HIDE:\n return {\n ...state,\n hidden: true\n };\n case types.CLOSE:\n return {\n ...state\n };\n default:\n return state;\n }\n}\n\n/* Exports */\nmodule.exports = {\n reducer\n};\n","/* ==========================================================================\n InformationCarousel > Client > Prototype\n ========================================================================== */\n\n/* Import modules */\nconst { initCarousel } = require('./carousel');\nconst { initImage } = require('./image');\n\n/* Prototype */\nconst prototype = {\n /* Init */\n init() {\n if (!this.config.init) return this;\n\n /* Init carousel */\n initCarousel(this);\n\n /* Init image */\n initImage(this);\n\n return this;\n }\n};\n\n/* Exports */\nmodule.exports = prototype;\n","/* ==========================================================================\n Toast > Client > Store > actions\n ========================================================================== */\n\n/* Types */\nconst DESTROY = 'TOAST::DESTROY';\nconst DISPLAY = 'TOAST::DISPLAY';\nconst ENABLE = 'TOAST::ENABLE';\nconst DISABLE = 'TOAST::DISABLE';\nconst HIDE = 'TOAST::HIDE';\nconst CLOSE = 'TOAST::CLOSE';\n\n/* Actions */\nconst destroy = () => ({ type: DESTROY });\nconst display = payload => ({ type: DISPLAY, payload });\nconst hide = () => ({ type: HIDE });\n\nconst disable = () => ({ type: DISABLE });\nconst enable = payload => ({ type: ENABLE, payload });\n\nconst close = () => ({ type: CLOSE });\n\n/* Exports */\nmodule.exports = {\n types: {\n DESTROY,\n DISPLAY,\n ENABLE,\n DISABLE,\n HIDE,\n CLOSE\n },\n actions: {\n destroy,\n display,\n hide,\n enable,\n disable,\n close\n }\n};\n","/* ==========================================================================\n ToastAsync > Client\n ========================================================================== */\n\n/* Import modules */\nconst { elementExist } = require('@bluekiri/alexandria/helpers/domHelpers');\n\nconst prototype = require('./prototype');\nconst config = require('./config');\n\n/**\n * ToastAsync component\n * @param {selector} String selector for the component in the client side.\n */\nmodule.exports = function ToastAsync(selector = '[data-component=ToastAsync]', configuration = {}) {\n if (elementExist(selector)) {\n /* Instance */\n const instance = Object.create(prototype);\n\n /* Selector */\n instance.selector = selector;\n\n /* Element */\n instance.element = document.querySelector(selector);\n\n /* Config */\n instance.config = {\n ...config(),\n ...configuration,\n ...(function getConfig() {\n if (!instance.element.dataset.config) return '';\n\n const result = JSON.parse(instance.element.dataset.config);\n instance.element.dataset.config = '';\n return result;\n })()\n };\n\n /* Init */\n instance.init();\n\n /* Return */\n return instance;\n }\n};\n","/* ==========================================================================\n ToastAsync > Client > Store > Reducer\n ========================================================================== */\n\n/* Modules */\nconst { types } = require('./actions');\n\n/* Initial state */\nconst initialState = {};\n\n/* Reducer */\nfunction reducer(state = initialState, action) {\n switch (action.type) {\n case types.DESTROY:\n default:\n return state;\n }\n}\n\n/* Exports */\nmodule.exports = {\n reducer\n};\n","/* ==========================================================================\n InformationCarousel > Client > Image\n ========================================================================== */\n\n/* Modules */\nconst Image = require('@bluekiri/alexandria-contrib-components/components/image-rxjs/client/js');\n\n/* Init image */\nfunction initImage(instance) {\n const panel = instance;\n\n /* Data */\n const { selector } = instance;\n\n /* Image */\n panel.Image = Image(`${selector} [data-component=\"ImageRxjs\"]`);\n}\n\n/* Exports */\nmodule.exports = {\n initImage\n};\n","/* ==========================================================================\n Toast > Client > Config\n ========================================================================== */\n\n/* Config */\nconst config = {\n component: 'Toast',\n type: 'toast',\n init: true,\n start: true,\n iconName: 'cancel',\n css: {\n hidden: 'is-hidden',\n fadeIn: 'fadeIn',\n fadeOut: 'fadeOut'\n },\n intervalsOpen: 2000,\n intervalsClose: 5500,\n delays: 2000\n};\n\nmodule.exports = () => config;\n","/* ==========================================================================\n ToastAsync > Client > Store > Actions\n ========================================================================== */\n\n/* Types */\nconst DESTROY = 'TOASTASYNC::DESTROY';\n\n/* Actions */\nconst destroy = () => ({ type: DESTROY });\n\n/* Exports */\nmodule.exports = {\n types: {\n DESTROY\n },\n actions: {\n destroy\n }\n};\n","/* ==========================================================================\n Toast > Template\n ========================================================================== */\n\n/* Import modules */\nconst { html } = require('common-tags');\nconst { prepareDataConfig } = require('@bluekiri/alexandria/helpers/dataHelpers');\n\nconst configuration = require('./client/js/config');\n\n/**\n * MBanner component\n * @param {object} data Object containing the data model for this component.\n * @returns {object} Additional data to have available in the template\n */\nmodule.exports = function MBannerPakRxjs(data) {\n /* Data */\n const { config = {}, items = [] } = data;\n const { styles = [] } = config;\n const { dataType } = prepareDataConfig(config.data);\n\n return html(`\n
\n `);\n};\n","/* ==========================================================================\n Toast > Client\n ========================================================================== */\n\n/* Import modules */\nconst { elementExist } = require('@bluekiri/alexandria/helpers/domHelpers');\nconst prototype = require('./prototype');\nconst config = require('./config');\n\n/**\n * Toast component\n * @param {selector} String selector for the component in the client side.\n */\nmodule.exports = function Toast(selector = '[data-component=Toast]', configuration = {}) {\n if (elementExist(selector)) {\n /* Instance */\n const instance = Object.create(prototype);\n\n /* Element */\n instance.element = document.querySelector(selector);\n\n /* Hooks */\n instance.hooks = {\n header: instance.element\n };\n\n /* Config */\n instance.config = {\n ...config(),\n ...configuration,\n ...(function getConfig() {\n if (!instance.element.dataset.config) return '';\n\n const result = JSON.parse(instance.element.dataset.config);\n instance.element.dataset.config = '';\n return result;\n })()\n };\n\n /* Toast */\n instance.toasts = [];\n\n /* Init */\n if (instance.config.init) instance.init();\n\n /* Return */\n return instance;\n }\n};\n","/* ==========================================================================\n ToastAsync > Client > Config\n ========================================================================== */\n\n/* Import modules */\n\n/* Config */\nconst config = {\n component: 'ToastAsync',\n init: true,\n start: true,\n css: {},\n type: {}\n};\n\nmodule.exports = () => config;\n","/* ==========================================================================\n InformationCarousel > Client > Carousel\n ========================================================================== */\n\n/* Modules */\nconst Carousel = require('@bluekiri/alexandria-contrib-components/components/carousel-rxjs/client/js');\n\n/* Init carousel */\nfunction initCarousel(instance) {\n const panel = instance;\n\n /* Data */\n const { selector } = instance;\n\n /* Carousel */\n panel.carousel = Carousel(`${selector} [data-component=\"CarouselRxjs\"]`, {\n hasPagination: true,\n hasNavigation: true,\n hasAutoplay: false,\n hasBreakpoints: true,\n swiper: {\n slidesPerView: 3,\n slidesPerGroup: 3,\n centeredSlides: false,\n watchSlidesVisibility: true,\n loop: false,\n spaceBetween: 0,\n breakpoints: {\n 768: {\n slidesPerView: 2,\n slidesPerGroup: 2\n }\n }\n }\n });\n}\n\n/* Exports */\nmodule.exports = {\n initCarousel\n};\n","/* ==========================================================================\n InformationCarousel > Client > Config\n ========================================================================== */\n\n/* Import modules */\n\n/* Config */\nconst config = {\n component: 'InformationCarousel',\n init: true,\n css: {\n single: 'information-carousel__single',\n two: 'information-carousel__two'\n },\n type: {},\n logoConfig: {\n width: 64,\n height: 64\n }\n};\n\nmodule.exports = () => config;\n","/* ==========================================================================\n ToastAsync > Client > Toast\n ========================================================================== */\n\n/* Modules */\nconst { toNode } = require('@bluekiri/alexandria/helpers/domHelpers');\n\nconst ToastTempalte = require('@bluekiri/alexandria-contrib-components/components/toast/template');\nconst Toast = require('@bluekiri/alexandria-contrib-components/components/toast/client/js');\n\n/* Create */\nfunction createToast(instance, data) {\n /* Context */\n const { context } = instance.config;\n\n /* Template */\n const template = ToastTempalte(data, context);\n\n /* Node */\n const node = toNode(template)[0];\n\n /* Return */\n return node;\n}\n\n/* Add */\nfunction addToast(instance, data) {\n /* Panel */\n const panel = instance;\n\n /* Node */\n const node = createToast(instance, data);\n\n /* Add to DOM */\n instance.element.appendChild(node);\n\n /* Init */\n panel.toast = Toast(`${instance.selector} [data-component=Toast]`);\n}\n\nmodule.exports = {\n addToast\n};\n","/* ==========================================================================\n Toast > Client > Store > actions\n ========================================================================== */\n\n/* Types */\nconst { html } = require('common-tags');\nconst { interval, fromEvent } = require('rxjs');\n\nconst { take } = require('rxjs/operators');\n\nconst { randomId } = require('@bluekiri/alexandria/helpers/dataHelpers');\nconst ViewHelpers = require('@bluekiri/alexandria/core/ViewHelpers');\n\nconst { toNode } = require('@bluekiri/alexandria/helpers/domHelpers');\n\nconst { actions } = require('../store/actions');\n\nconst configuration = require('../config');\n\n/* Create Icon checkbox */\nfunction createToast(instance, index) {\n /* Data */\n const { type, context, items, iconName } = instance.config;\n const item = items[index];\n\n /* Template */\n const template = html(\n `
\n
${item.icon ? ViewHelpers(context).icon(item.icon) : ''}
\n
${ViewHelpers().markdown(item.label)}
\n
${ViewHelpers().icon(iconName)}
\n
`\n );\n\n /* Node */\n const node = toNode(template)[0];\n\n /* Return */\n return node;\n}\n\nfunction addToast(instance, index) {\n /* Instance */\n const panel = instance;\n\n /* Create nodes */\n const node = createToast(instance, index);\n\n /* Process Nodes */\n panel.hooks.header.appendChild(node);\n panel.toasts.push(node);\n\n /* Add class fadeIn */\n node.classList.add(configuration().css.fadeIn);\n\n /**\n * Update actions, reactions, subscriptions\n */\n panel.actions = {\n ...panel.actions,\n close: () => instance.store.dispatch(actions.close())\n };\n\n panel.subscriptions = {\n ...panel.subscriptions,\n close: fromEvent(panel.toasts[index].querySelector('[data-cancel]'), 'click').subscribe(() => {\n /* Dispatch action */\n const { css } = panel.config;\n\n const currentToast = panel.toasts[index];\n currentToast.classList.add(css.fadeOut);\n\n setTimeout(() => {\n currentToast.parentNode.removeChild(currentToast);\n }, 600);\n })\n };\n}\n\nfunction destroyToast(instance) {\n /* Reference */\n const panel = instance;\n\n const { items, intervalsClose } = panel.config;\n\n interval(intervalsClose)\n .pipe(take(items.length))\n .subscribe({\n next: x => {\n const currentToast = panel.toasts[x];\n\n currentToast.classList.remove(configuration().css.fadeIn);\n currentToast.classList.add(configuration().css.fadeOut);\n\n setTimeout(() => {\n currentToast.parentNode.removeChild(currentToast);\n }, 600);\n }\n });\n\n return panel;\n}\n\n/* Export */\nmodule.exports = {\n addToast,\n destroyToast\n};\n","/* ==========================================================================\n Toast > Client > Prototype\n ========================================================================== */\n\nconst { Store } = require('@bluekiri/alexandria/helpers/state');\n\nconst { interval } = require('rxjs');\nconst { take } = require('rxjs/operators');\n\nconst { actions, types } = require('./store/actions');\nconst { reducer } = require('./store/reducer');\n\nconst { addToast, destroyToast } = require('./toast');\n\n/* Prototype */\nconst prototype = {\n /* Setup Store */\n setupStore() {\n if (this.store) return this;\n\n this.store = new Store({\n toast: reducer\n });\n\n return this;\n },\n /* Setup Actions */\n setupActions() {\n if (this.actions) return this;\n\n this.actions = {\n destroy: () => this.store.dispatch(actions.destroy()),\n display: () => this.store.dispatch(actions.display()),\n hide: () => this.store.dispatch(actions.hide()),\n enable: index => this.store.dispatch(actions.enable(index)),\n disable: indexes => this.store.dispatch(actions.disable(indexes))\n };\n\n return this;\n },\n /* Setup Reactions */\n setupReactions() {\n if (this.reactions) return this;\n\n this.reactions = {\n destroy: this.store.subscribe((state, action) => {\n if (action.type !== types.DESTROY) return;\n\n /* Unsubscribe */\n this.unsubscribe();\n\n /* Remove from DOM */\n this.element.parentNode.removeChild(this.element);\n\n /* Clean instance */\n [...Object.keys(this)].forEach(key => delete this[key]);\n }),\n display: this.store.subscribe((state, action) => {\n if (action.type !== types.DISPLAY) return;\n\n const { css } = this.config;\n this.element.classList.remove(css.hidden);\n }),\n hide: this.store.subscribe((state, action) => {\n if (action.type !== types.HIDE) return;\n\n const { css } = this.config;\n\n this.element.classList.add(css.hidden);\n }),\n enable: this.store.subscribe((state, action) => {\n if (action.type !== types.ENABLE) return;\n\n addToast(this, action.payload);\n }),\n disable: this.store.subscribe((state, action) => {\n if (action.type !== types.DISABLE) return;\n\n /* Destroy toast */\n destroyToast(this);\n })\n };\n\n return this;\n },\n /* Subscribe */\n subscribe() {\n if (this.subscriptions) this.unsubscribe();\n const { items, intervalsOpen } = this.config;\n\n this.height = 0;\n this.subscriptions = {\n timeOut$: interval(intervalsOpen)\n .pipe(take(items.length))\n .subscribe({\n next: x => {\n this.actions.enable(x);\n },\n complete: () => {\n this.actions.disable();\n }\n })\n };\n\n return this;\n },\n /* Unsubscribe */\n unsubscribe() {\n if (!this.subscriptions) return this;\n\n [...Object.keys(this.subscriptions)].forEach(key => this.subscriptions[key].unsubscribe());\n\n return this;\n },\n /* Init */\n init() {\n /* Setup store */\n this.setupStore();\n\n /* Setup actions */\n this.setupActions();\n\n /* Setup reactions */\n this.setupReactions();\n\n /* Subscribe */\n this.subscribe();\n }\n};\n\n/* Exports */\nmodule.exports = prototype;\n","/* ==========================================================================\n InformationCarousel > Client\n ========================================================================== */\n\n/* Import modules */\nconst { elementExist } = require('@bluekiri/alexandria/helpers/domHelpers');\n\nconst prototype = require('./prototype');\nconst config = require('./config');\n\n/**\n * InformationCarousel component\n * @param {selector} String selector for the component in the client side.\n */\nmodule.exports = function InformationCarousel(selector = '[data-component=InformationCarousel]', configuration = {}) {\n if (elementExist(selector)) {\n /* Instance */\n const instance = Object.create(prototype);\n\n /* Selector */\n instance.selector = selector;\n\n /* Element */\n instance.element = document.querySelector(selector);\n\n /* Config */\n instance.config = {\n ...config(),\n ...configuration,\n ...(function getConfig() {\n if (!instance.element.dataset.config) return '';\n\n const result = JSON.parse(instance.element.dataset.config);\n instance.element.dataset.config = '';\n return result;\n })()\n };\n\n /* Init */\n instance.init();\n\n /* Return */\n return instance;\n }\n};\n","/* ==========================================================================\n ToastAsync > Client > Prototype\n ========================================================================== */\n\n/* Import modules */\nconst { take } = require('rxjs/operators');\n\nconst { Store } = require('@bluekiri/alexandria/helpers/state');\n\nconst { actions, types } = require('./store/actions');\nconst { reducer } = require('./store/reducer');\n\nconst Services = require('../../../../services/models');\n\nconst { addToast } = require('./toast');\n\n/* Prototype */\nconst prototype = {\n /* Setup store */\n setupStore() {\n if (this.store) return this;\n\n this.store = new Store({\n data: reducer\n });\n\n return this;\n },\n /* Setup actions */\n setupActions() {\n if (this.actions) return this;\n\n this.actions = {\n destroy: () => {\n return this.store.dispatch(actions.destroy());\n }\n };\n\n return this;\n },\n /* Setup reactions */\n setupReactions() {\n if (this.reactions) return this;\n\n this.reactions = {\n destroy: this.store.subscribe((state, action) => {\n if (action.type !== types.DESTROY) return;\n\n /* Unsubscribe */\n this.unsubscribe();\n [...Object.keys(this.reactions)].forEach(key => this.reactions[key].unsubscribe());\n\n /* Clean DOM */\n this.element.parentNode.removeChild(this.element);\n\n /* Clean reference */\n [...Object.keys(this)].forEach(key => delete this[key]);\n })\n };\n\n return this;\n },\n /* Subscribe */\n subscribe() {\n if (this.subscriptions) this.unsubscribe();\n\n this.subscriptions = {};\n\n return this;\n },\n /* Unsubscribe */\n unsubscribe() {\n if (!this.subscriptions) return this;\n\n [...Object.keys(this.subscriptions)].forEach(key => this.subscriptions[key].unsubscribe());\n\n return this;\n },\n /* Start */\n start() {\n if (!this.config.start) return this;\n\n const { context } = this.config;\n const { getToasts } = this.config.endpoints;\n\n /* Get new data */\n Services(context)\n .getModel(getToasts)\n .pipe(take(1))\n .subscribe(data => {\n if (!data) {\n return;\n }\n\n /* Prices Min */\n addToast(this, data);\n });\n\n return this;\n },\n /* Init */\n init() {\n if (!this.config.init) return this;\n\n /* Setup store */\n this.setupStore();\n\n /* Setup actions */\n this.setupActions();\n\n /* Setup reactions */\n this.setupReactions();\n\n /* Subscribe */\n this.subscribe();\n\n /* Start */\n this.start();\n\n return this;\n }\n};\n\n/* Exports */\nmodule.exports = prototype;\n"],"sourceRoot":""}