{"version":3,"sources":["components/modal/Modal.vue.js"],"names":["define","Vue","Object","prototype","hasOwnProperty","call","ExtensionObject","name","props","theme","type","String","default","size","title","titleLang","defaultButton","backdrop","data","originalDefaultBtn","computed","sizeClass","this","bgClass","userLang","lang","$","attr","undefined","titleId","$attrs","id","mounted","_this","$nextTick","orgDefaultBtn","length","val","$el","on","__vue_render__","_vm","_h","$createElement","_c","_self","staticClass","attrs","tabindex","role","aria-labelledby","data-backdrop","class","data-dismiss","aria-label","aria-hidden","_v","domProps","innerHTML","_s","_t","__vue_script__","extend","_withStripped","template","style","script","scopeId","isFunctionalTemplate","moduleIdentifier","shadowMode","createInjector","createInjectorSSR","createInjectorShadow","hook","options","render","staticRenderFns","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","originalRender_1","h","existing","beforeCreate","concat","normalizeComponent"],"mappings":"AAAAA,OAAO,iDAAkD,CAAC,OAAQ,SAAUC,GACxE,aACAA,EAAMA,GAAOC,OAAOC,UAAUC,eAAeC,KAAKJ,EAAK,WAAaA,EAAa,QAAIA,EACrF,IAAIK,EAAkB,CAClBC,KAAM,QACNC,MAAO,CACHC,MAAO,CACHC,KAAMC,OACNC,QAAS,WAEbC,KAAM,CACFH,KAAMC,OACNC,QAAS,MAEbE,MAAO,CACHJ,KAAMC,OACNC,QAAS,IAEbG,UAAW,CACPL,KAAMC,OACNC,QAAS,MAEbI,cAAe,CACXN,KAAMC,OACNC,QAAS,MAEbK,SAAU,CACNP,KAAMC,OACNC,QAAS,OAGjBM,KAAM,WACF,MAAO,CACHC,mBAAoB,KAG5BC,SAAU,CACNC,UAAW,WACP,MAAO,SAAWC,KAAKT,MAE3BU,QAAS,WACL,MAAO,MAAQD,KAAKb,OAExBe,SAAU,WACN,IAAIC,EAAOC,EAAE,cAAcC,KAAK,QAChC,YAAgBC,IAATH,GAA+B,OAATA,EAAgB,KAAOA,GAExDI,QAAS,WACL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KAAK4E,GACHW,EAAiBC,EAAGZ,QAG9B,CACD,IAAIa,EAAWnB,EAAQoB,aACvBpB,EAAQoB,aAAeD,EAAW,GAAGE,OAAOF,EAAUpB,GAAQ,CAACA,GAGvE,OAAOR,EAkEa+B,CAAmB,CAAErB,OAAQpC,EAAgBqC,gBANvC,SAEFjD,EAI4GiC,OAHjHjC,GAEc,OADLA,GAEqM,OAAOA,OAAWA,OAAWA","file":"Modal.vue.min.js","sourcesContent":["define('selerix_common/vues/components/modal/Modal.vue', ['vue'], function (Vue) {\n 'use strict';\n Vue = Vue && Object.prototype.hasOwnProperty.call(Vue, 'default') ? Vue['default'] : Vue;\n var ExtensionObject = {\n name: 'Modal',\n props: {\n theme: {\n type: String,\n default: 'default'\n },\n size: {\n type: String,\n default: 'md'\n },\n title: {\n type: String,\n default: ''\n },\n titleLang: {\n type: String,\n default: null\n },\n defaultButton: {\n type: String,\n default: null\n },\n backdrop: {\n type: String,\n default: null\n }\n },\n data: function () {\n return {\n originalDefaultBtn: ''\n };\n },\n computed: {\n sizeClass: function () {\n return \"modal-\" + this.size;\n },\n bgClass: function () {\n return \"bg-\" + this.theme;\n },\n userLang: function () {\n var lang = $('html[lang]').attr('lang');\n return lang === undefined || lang === 'en' ? null : lang;\n },\n titleId: function () {\n return this.$attrs.id + \"_title\";\n }\n },\n mounted: function () {\n var _this = this;\n this.$nextTick(function () {\n if (!_this.defaultButton)\n return;\n var orgDefaultBtn = $('#gDefaultButtonID');\n if (!orgDefaultBtn.length)\n return;\n _this.originalDefaultBtn = orgDefaultBtn.val();\n $(_this.$el).on('shown.bs.modal', function () {\n orgDefaultBtn.val(_this.defaultButton);\n }).on('hidden.bs.modal', function () {\n orgDefaultBtn.val(_this.originalDefaultBtn);\n });\n });\n }\n };\n var script = Vue.extend(ExtensionObject);\n function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\n if (typeof shadowMode !== 'boolean') {\n createInjectorSSR = createInjector;\n createInjector = shadowMode;\n shadowMode = false;\n }\n var options = typeof script === 'function' ? script.options : script;\n if (template && template.render) {\n options.render = template.render;\n options.staticRenderFns = template.staticRenderFns;\n options._compiled = true;\n if (isFunctionalTemplate) {\n options.functional = true;\n }\n }\n if (scopeId) {\n options._scopeId = scopeId;\n }\n var hook;\n if (moduleIdentifier) {\n hook = function (context) {\n context =\n context ||\n (this.$vnode && this.$vnode.ssrContext) ||\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext);\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__;\n }\n if (style) {\n style.call(this, createInjectorSSR(context));\n }\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n };\n options._ssrRegister = hook;\n }\n else if (style) {\n hook = shadowMode\n ? function (context) {\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\n }\n : function (context) {\n style.call(this, createInjector(context));\n };\n }\n if (hook) {\n if (options.functional) {\n var originalRender_1 = options.render;\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender_1(h, context);\n };\n }\n else {\n var existing = options.beforeCreate;\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n return script;\n }\n var __vue_script__ = script;\n var __vue_render__ = function () {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"div\", {\n staticClass: \"modal fade\",\n attrs: {\n tabindex: \"-1\",\n role: \"dialog\",\n \"aria-labelledby\": _vm.titleId,\n \"data-backdrop\": _vm.backdrop\n }\n }, [\n _c(\"div\", {\n staticClass: \"modal-dialog\",\n class: _vm.sizeClass,\n attrs: { role: \"document\" }\n }, [\n _c(\"div\", { staticClass: \"modal-content\" }, [\n _c(\"div\", { staticClass: \"modal-header\", class: _vm.bgClass }, [\n _c(\"button\", {\n staticClass: \"close\",\n attrs: {\n type: \"button\",\n \"data-dismiss\": \"modal\",\n \"aria-label\": \"Close\",\n lang: _vm.userLang\n }\n }, [\n _c(\"span\", { class: _vm.bgClass, attrs: { \"aria-hidden\": \"true\" } }, [_vm._v(\"×\")])\n ]),\n _vm._v(\" \"),\n _c(\"h4\", {\n staticClass: \"modal-title\",\n attrs: { id: _vm.titleId, lang: _vm.titleLang },\n domProps: { innerHTML: _vm._s(_vm.title) }\n })\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"modal-body\" }, [_vm._t(\"body\")], 2),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"modal-footer\" }, [\n _vm._t(\"buttons\", [\n _c(\"button\", {\n staticClass: \"btn btn-default\",\n attrs: {\n type: \"button\",\n \"data-dismiss\": \"modal\",\n lang: _vm.userLang\n }\n }, [_vm._v(\"Close\")])\n ])\n ], 2)\n ])\n ])\n ]);\n };\n var __vue_staticRenderFns__ = [];\n __vue_render__._withStripped = true;\n var __vue_inject_styles__ = undefined;\n var __vue_scope_id__ = undefined;\n var __vue_module_identifier__ = undefined;\n var __vue_is_functional_template__ = false;\n var __vue_component__ = normalizeComponent({ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);\n return __vue_component__;\n});\n"]}