{"version":3,"sources":["webpack:///./resources/js/src/app/components/pageDesign/CookieBar.vue","webpack:///resources/js/src/app/components/pageDesign/CookieBar.vue","webpack:///./resources/js/src/app/components/pageDesign/CookieBar.vue?044c","webpack:///./resources/js/src/app/components/pageDesign/CookieBar.vue?1962","webpack:///./node_modules/vue-loader/lib/runtime/componentNormalizer.js"],"names":["render","_vm","this","_c","_self","isMounted","staticClass","isVisible","showModal","_t","_v","on","click","acceptAllConsent","_s","multiLanguage","CookieBarAcceptAll","denyAllConsent","CookieBarDenyAll","openModal","CookieBarPreferences","_e","CookieBarTitle","closeModal","CookieBarDescription","attrs","target","href","privacyPolicyUrl","$translate","legalDisclosureUrl","consentGroups","acceptSelection","CookieBarAcceptSelection","_withStripped","name","props","Object","components","data","isCollapsed","computed","getCookie","$store","state","consents","hasResponse","App","urls","privacyPolicy","legalDisclosure","methods","_objectSpread","mapMutations","parts","concat","document","cookie","split","length","pop","shift","denyAll","acceptAll","storeConsents","mounted","$root","$on","beforeDestroy","$off","component","normalizeComponent","scriptExports","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","call","_registeredComponents","add","_ssrRegister","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","exports"],"mappings":"kGAAA,IAAIA,EAAS,WACX,IAAIC,EAAMC,KACRC,EAAKF,EAAIG,MAAMD,GACjB,OAAOF,EAAII,UACPF,EAAG,MAAO,CAAEG,YAAa,oCAAsC,CAC7DL,EAAIM,YAAcN,EAAIO,UAClBL,EACE,MACA,CAAEG,YAAa,wCACf,CACEL,EAAIQ,GAAG,WACPR,EAAIS,GAAG,KACPP,EACE,MACA,CACEG,YACE,qFAEJ,CACEL,EAAIQ,GAAG,SACPR,EAAIS,GAAG,KACPP,EACE,MACA,CACEG,YACE,sEAEJ,CACEH,EACE,SACA,CACEG,YACE,kDACFK,GAAI,CAAEC,MAAOX,EA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EAAQmB,aACvBnB,EAAQmB,aAAeD,EAAW,GAAG3C,OAAO2C,EAAUnB,GAAQ,CAACA,GAInE,MAAO,CACLqB,QAAS5B,EACTQ,QAASA,GA7Fb","file":"chunks/ceres-33.min.js","sourcesContent":["var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _vm.isMounted\n    ? _c(\"div\", { staticClass: \"cookie-bar bg-white w-100 mx-100\" }, [\n        _vm.isVisible && !_vm.showModal\n          ? _c(\n              \"div\",\n              { staticClass: \"cookie-bar-wrapper px-3 px-md-4 py-4\" },\n              [\n                _vm._t(\"content\"),\n                _vm._v(\" \"),\n                _c(\n                  \"div\",\n                  {\n                    staticClass:\n                      \"mt-lg-3 d-flex align-items-center justify-content-between flex-column flex-lg-row\",\n                  },\n                  [\n                    _vm._t(\"links\"),\n                    _vm._v(\" \"),\n                    _c(\n                      \"div\",\n                      {\n                        staticClass:\n                          \"d-flex cookie-buttons flex-column-reverse flex-sm-row mt-3 mt-lg-0\",\n                      },\n                      [\n                        _c(\n                          \"button\",\n                          {\n                            staticClass:\n                              \"btn cookie-bar-btn text-white text-center w-100\",\n                            on: { click: _vm.acceptAllConsent },\n                          },\n                          [\n                            _vm._v(\n                              \"\\n          \" +\n                                _vm._s(_vm.multiLanguage.CookieBarAcceptAll) +\n                                \"\\n        \"\n                            ),\n                          ]\n                        ),\n                        _vm._v(\" \"),\n                        _c(\n                          \"button\",\n                          {\n                            staticClass:\n                              \"btn bg-white text-dark cookie-bar-btn cookie-bar-reject-btn text-center w-100\",\n                            on: { click: _vm.denyAllConsent },\n                          },\n                          [\n                            _vm._v(\n                              \"\\n          \" +\n                                _vm._s(_vm.multiLanguage.CookieBarDenyAll) +\n                                \"\\n        \"\n                            ),\n                          ]\n                        ),\n                        _vm._v(\" \"),\n                        _c(\n                          \"button\",\n                          {\n                            staticClass:\n                              \"btn btn-primary bg-white cookie-bar-link\",\n                            on: { click: _vm.openModal },\n                          },\n                          [\n                            _vm._v(\n                              \"\\n          \" +\n                                _vm._s(_vm.multiLanguage.CookieBarPreferences) +\n                                \"\\n        \"\n                            ),\n                          ]\n                        ),\n                      ]\n                    ),\n                  ],\n                  2\n                ),\n              ],\n              2\n            )\n          : _vm._e(),\n        _vm._v(\" \"),\n        _vm.showModal\n          ? _c(\"div\", { staticClass: \"custom-modal-overlay\" }, [\n              _c(\"div\", { staticClass: \"custom-modal-content bg-white\" }, [\n                _c(\n                  \"div\",\n                  {\n                    staticClass:\n                      \"custom-modal-header d-flex align-items-center justify-content-between\",\n                  },\n                  [\n                    _c(\"h4\", [\n                      _vm._v(_vm._s(_vm.multiLanguage.CookieBarTitle)),\n                    ]),\n                    _vm._v(\" \"),\n                    _c(\"button\", { on: { click: _vm.closeModal } }, [\n                      _vm._v(\"×\"),\n                    ]),\n                  ]\n                ),\n                _vm._v(\" \"),\n                _c(\"div\", { staticClass: \"custom-modal-body my-3\" }, [\n                  _c(\"p\", { staticClass: \"small\" }, [\n                    _vm._v(_vm._s(_vm.multiLanguage.CookieBarDescription)),\n                  ]),\n                  _vm._v(\" \"),\n                  _c(\"div\", { staticClass: \"d-flex align-items-center mt-1\" }, [\n                    _c(\n                      \"a\",\n                      {\n                        staticClass: \"d-block text-underline small\",\n                        attrs: { target: \"_blank\", href: _vm.privacyPolicyUrl },\n                      },\n                      [\n                        _vm._v(\n                          \"\\n            \" +\n                            _vm._s(\n                              _vm.$translate(\n                                \"Ceres::Template.footerPrivacyPolicy\"\n                              )\n                            ) +\n                            \"\\n          \"\n                        ),\n                      ]\n                    ),\n                    _vm._v(\" \"),\n                    _c(\n                      \"a\",\n                      {\n                        staticClass: \"d-block ml-3 text-underline small\",\n                        attrs: {\n                          target: \"_blank\",\n                          href: _vm.legalDisclosureUrl,\n                        },\n                      },\n                      [\n                        _vm._v(\n                          \"\\n            \" +\n                            _vm._s(\n                              _vm.$translate(\n                                \"Ceres::Template.footerLegalDisclosure\"\n                              )\n                            ) +\n                            \"\\n          \"\n                        ),\n                      ]\n                    ),\n                  ]),\n                  _vm._v(\" \"),\n                  _c(\n                    \"div\",\n                    { staticClass: \"cookie-content-table my-2\" },\n                    [\n                      _c(\"consent-list\", {\n                        attrs: { consentGroups: _vm.consentGroups },\n                      }),\n                    ],\n                    1\n                  ),\n                ]),\n                _vm._v(\" \"),\n                _c(\n                  \"div\",\n                  {\n                    staticClass:\n                      \"d-flex justify-content-start cookie-buttons flex-column-reverse flex-sm-row\",\n                  },\n                  [\n                    _c(\n                      \"button\",\n                      {\n                        staticClass:\n                          \"btn btn-primary cookie-bar-link text-center w-100\",\n                        on: { click: _vm.acceptSelection },\n                      },\n                      [\n                        _vm._v(\n                          \"\\n          \" +\n                            _vm._s(_vm.multiLanguage.CookieBarAcceptSelection) +\n                            \"\\n        \"\n                        ),\n                      ]\n                    ),\n                    _vm._v(\" \"),\n                    _c(\n                      \"button\",\n                      {\n                        staticClass: \"btn btn-primary cookie-bar-btn w-100\",\n                        on: { click: _vm.acceptAllConsent },\n                      },\n                      [\n                        _vm._v(\n                          \"\\n          \" +\n                            _vm._s(_vm.multiLanguage.CookieBarAcceptAll) +\n                            \"\\n        \"\n                        ),\n                      ]\n                    ),\n                  ]\n                ),\n              ]),\n            ])\n          : _vm._e(),\n      ])\n    : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","<template>\n  <div v-if=\"isMounted\" class=\"cookie-bar bg-white w-100 mx-100\">\n    <div\n      v-if=\"isVisible && !showModal\"\n      class=\"cookie-bar-wrapper px-3 px-md-4 py-4\"\n    >\n      <slot name=\"content\"></slot>\n\n      <div\n        class=\"mt-lg-3 d-flex align-items-center justify-content-between flex-column flex-lg-row\"\n      >\n        <slot name=\"links\"></slot>\n        <div\n          class=\"d-flex cookie-buttons flex-column-reverse flex-sm-row mt-3 mt-lg-0\"\n        >\n          <button\n            class=\"btn cookie-bar-btn text-white text-center w-100\"\n            @click=\"acceptAllConsent\"\n          >\n            {{ multiLanguage.CookieBarAcceptAll }}\n          </button>\n          <button\n            class=\"btn bg-white text-dark cookie-bar-btn cookie-bar-reject-btn text-center w-100\"\n            @click=\"denyAllConsent\"\n          >\n            {{ multiLanguage.CookieBarDenyAll }}\n          </button>\n          <button\n            class=\"btn btn-primary bg-white cookie-bar-link\"\n            @click=\"openModal\"\n          >\n            {{ multiLanguage.CookieBarPreferences }}\n          </button>\n        </div>\n      </div>\n    </div>\n\n    <div v-if=\"showModal\" class=\"custom-modal-overlay\">\n      <div class=\"custom-modal-content bg-white\">\n        <div\n          class=\"custom-modal-header d-flex align-items-center justify-content-between\"\n        >\n          <h4>{{ multiLanguage.CookieBarTitle }}</h4>\n          <button @click=\"closeModal\">×</button>\n        </div>\n        <div class=\"custom-modal-body my-3\">\n          <p class=\"small\">{{ multiLanguage.CookieBarDescription }}</p>\n          <div class=\"d-flex align-items-center mt-1\">\n            <a\n              class=\"d-block text-underline small\"\n              target=\"_blank\"\n              :href=\"privacyPolicyUrl\"\n            >\n              {{ $translate(\"Ceres::Template.footerPrivacyPolicy\") }}\n            </a>\n            <a\n              class=\"d-block ml-3 text-underline small\"\n              target=\"_blank\"\n              :href=\"legalDisclosureUrl\"\n            >\n              {{ $translate(\"Ceres::Template.footerLegalDisclosure\") }}\n            </a>\n          </div>\n          <div class=\"cookie-content-table my-2\">\n            <consent-list :consentGroups=\"consentGroups\" />\n          </div>\n        </div>\n        <div\n          class=\"d-flex justify-content-start cookie-buttons flex-column-reverse flex-sm-row\"\n        >\n          <button\n            class=\"btn btn-primary cookie-bar-link text-center w-100\"\n            @click=\"acceptSelection\"\n          >\n            {{ multiLanguage.CookieBarAcceptSelection }}\n          </button>\n          <button\n            class=\"btn btn-primary cookie-bar-btn w-100\"\n            @click=\"acceptAllConsent\"\n          >\n            {{ multiLanguage.CookieBarAcceptAll }}\n          </button>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script>\nimport { mapMutations } from \"vuex\";\n\nexport default {\n  name: \"CookieBar\",\n  props: {\n    multiLanguage: Object,\n    consentGroups: Object,\n  },\n  components: {\n    \"consent-list\": () => import(\"./ConsentList.vue\"),\n  },\n  data() {\n    return {\n      isMounted: false,\n      showModal: false,\n      isCollapsed: false,\n    };\n  },\n  computed: {\n    isVisible() {\n      return (\n        !this.getCookie(\"consentGranted\") &&\n        (!this.$store.state.consents.hasResponse || !this.isCollapsed)\n      );\n    },\n    privacyPolicyUrl() {\n      return App.urls.privacyPolicy;\n    },\n    legalDisclosureUrl() {\n      return App.urls.legalDisclosure;\n    },\n  },\n  methods: {\n    ...mapMutations([\"acceptAll\", \"denyAll\", \"storeConsents\"]),\n\n    getCookie(name) {\n      const value = `; ${document.cookie}`;\n      const parts = value.split(`; ${name}=`);\n      return parts.length === 2 ? parts.pop().split(\";\").shift() : null;\n    },\n    denyAllConsent() {\n      this.denyAll();\n      this.showModal = false;\n      this.isCollapsed = true;\n    },\n    acceptAllConsent() {\n      this.acceptAll();\n      this.showModal = false;\n      this.isCollapsed = true;\n    },\n    openModal() {\n      this.showModal = true;\n      this.isCollapsed = true;\n    },\n    closeModal() {\n      this.showModal = false;\n      this.isCollapsed = false;\n    },\n    acceptSelection() {\n      this.storeConsents();\n      this.closeModal();\n    },\n  },\n  mounted() {\n    this.isMounted = true;\n    this.$root.$on(\"openCookiePreferences\", this.openModal);\n  },\n  beforeDestroy() {\n    this.$root.$off(\"openCookiePreferences\", this.openModal);\n  },\n};\n</script>\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CookieBar.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CookieBar.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CookieBar.vue?vue&type=template&id=e9fcae44\"\nimport script from \"./CookieBar.vue?vue&type=script&lang=js\"\nexport * from \"./CookieBar.vue?vue&type=script&lang=js\"\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  null,\n  null\n  \n)\n\nexport default component.exports","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n  scriptExports,\n  render,\n  staticRenderFns,\n  functionalTemplate,\n  injectStyles,\n  scopeId,\n  moduleIdentifier /* server only */,\n  shadowMode /* vue-cli only */\n) {\n  // Vue.extend constructor export interop\n  var options =\n    typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n  // render functions\n  if (render) {\n    options.render = render\n    options.staticRenderFns = staticRenderFns\n    options._compiled = true\n  }\n\n  // functional template\n  if (functionalTemplate) {\n    options.functional = true\n  }\n\n  // scopedId\n  if (scopeId) {\n    options._scopeId = 'data-v-' + scopeId\n  }\n\n  var hook\n  if (moduleIdentifier) {\n    // server build\n    hook = function (context) {\n      // 2.3 injection\n      context =\n        context || // cached call\n        (this.$vnode && this.$vnode.ssrContext) || // stateful\n        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n      // 2.2 with runInNewContext: true\n      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n        context = __VUE_SSR_CONTEXT__\n      }\n      // inject component styles\n      if (injectStyles) {\n        injectStyles.call(this, context)\n      }\n      // register component module identifier for async chunk inferrence\n      if (context && context._registeredComponents) {\n        context._registeredComponents.add(moduleIdentifier)\n      }\n    }\n    // used by ssr in case component is cached and beforeCreate\n    // never gets called\n    options._ssrRegister = hook\n  } else if (injectStyles) {\n    hook = shadowMode\n      ? function () {\n          injectStyles.call(\n            this,\n            (options.functional ? this.parent : this).$root.$options.shadowRoot\n          )\n        }\n      : injectStyles\n  }\n\n  if (hook) {\n    if (options.functional) {\n      // for template-only hot-reload because in that case the render fn doesn't\n      // go through the normalizer\n      options._injectStyles = hook\n      // register for functional component in vue file\n      var originalRender = options.render\n      options.render = function renderWithStyleInjection(h, context) {\n        hook.call(context)\n        return originalRender(h, context)\n      }\n    } else {\n      // inject component registration as beforeCreate hook\n      var existing = options.beforeCreate\n      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n    }\n  }\n\n  return {\n    exports: scriptExports,\n    options: options\n  }\n}\n"],"sourceRoot":""}