{"version":3,"sources":["webpack:///./resources/js/src/app/components/pageDesign/Carousel.vue?e56a","webpack:///./resources/js/src/app/components/pageDesign/Carousel.vue?0d05","webpack:///resources/js/src/app/components/pageDesign/Carousel.vue","webpack:///./resources/js/src/app/components/pageDesign/Carousel.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","$slots","items","length","itemsPerPage","ref","_l","item","index","key","attrs","vnode","class","columnWidths","_withStripped","component","options","__file"],"mappings":"kGAAA,IAAIA,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACTC,EAAKJ,EAAIK,MAAMD,IAAMF,EACzB,OAAOE,EACL,MACA,CAAEE,YAAa,OACf,CACEN,EAAIO,OAAOC,OAASR,EAAIO,OAAOC,MAAMC,OAAST,EAAIU,aAC9CN,EAAG,MAAO,CAAEE,YAAa,oBAAsB,CAC7CF,EACE,MACA,CACEO,IAAK,oBACLL,YACE,6DAEJN,EAAIY,GAAGZ,EAAIO,OAAOC,OAAO,SAASK,EAAMC,GACtC,OAAOV,EAAG,iBAAkB,CAC1BW,IAAKD,EACLE,MAAO,CAAEC,MAAOJ,QAGpB,KAGJb,EAAIY,GAAGZ,EAAIO,OAAOC,OAAO,SAASK,GAChC,OAAOT,EACL,MACA,CAAEc,MAAOlB,EAAImB,cACb,CAACf,EAAG,iBAAkB,CAAEY,MAAO,CAAEC,MAAOJ,MACxC,OAIV,IAIJd,EAAOqB,eAAgB,E,gBCvCyL,ECehN,CACE,WAAF,CACI,cAAJ,CACM,YAAN,EACM,OAAN,cAAQ,OAAR,sBAIE,MAAF,CACI,aAAJ,CACM,KAAN,OACM,QAAN,IAIE,SACF,CACI,aADJ,WAGM,IAAN,4CAEM,MAAN,CACA,SACA,6BACA,kBAKE,QA7BF,WA8BI,IAAJ,OACI,KAAJ,sBAEM,EAAN,yBAIE,QArCF,WAuCI,KAAJ,sBAGE,QACF,CACI,mBADJ,WAGM,GAAN,wFACA,CACQ,IAAR,kCAGQ,IAAR,oBAEU,OAGF,EAAR,aACU,cADV,WAEY,EAAZ,kDACc,EAAd,0CAGU,YAAV,EACU,MAAV,EACU,MAAV,kBACU,WAAV,CACY,EAAZ,CACc,MAAd,GAEY,IAAZ,CACc,MAAd,yBAEY,IAAZ,CACc,MAAd,yCAEY,IAAZ,CACc,MAAd,oBAGU,UAAV,EACU,MAAV,EACU,OAAV,GACU,WAAV,EACU,KAAV,EACU,SAAV,CACA,iEACA,mEAEU,kBAAV,GACU,QAAV,CACA,gFACA,kFAEU,WAAV,U,OCrGIC,EAAY,YACd,EACAtB,EH6BoB,IG3BpB,EACA,KACA,KACA,MAuBFsB,EAAUC,QAAQC,OAAS,0DACZ,UAAAF,E","file":"chunks/ceres-49.min.js","sourcesContent":["var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"row\" },\n [\n _vm.$slots.items && _vm.$slots.items.length > _vm.itemsPerPage\n ? _c(\"div\", { staticClass: \"col-12 col-lg-12\" }, [\n _c(\n \"div\",\n {\n ref: \"carouselContainer\",\n staticClass:\n \"list-item-carousel owl-carousel owl-theme owl-single-item\"\n },\n _vm._l(_vm.$slots.items, function(item, index) {\n return _c(\"slot-component\", {\n key: index,\n attrs: { vnode: item }\n })\n }),\n 1\n )\n ])\n : _vm._l(_vm.$slots.items, function(item) {\n return _c(\n \"div\",\n { class: _vm.columnWidths },\n [_c(\"slot-component\", { attrs: { vnode: item } })],\n 1\n )\n })\n ],\n 2\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Carousel.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!./Carousel.vue?vue&type=script&lang=js&\"","<template>\n <div class=\"row\">\n <div class=\"col-12 col-lg-12\" v-if=\"$slots.items && $slots.items.length > itemsPerPage\">\n <div class=\"list-item-carousel owl-carousel owl-theme owl-single-item\" ref=\"carouselContainer\">\n <slot-component v-for=\"(item, index) in $slots.items\" :key=\"index\" :vnode=\"item\" />\n </div>\n </div>\n\n <div :class=\"columnWidths\" v-else v-for=\"item in $slots.items\">\n <slot-component :vnode=\"item\"/>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n components: {\n SlotComponent: {\n functional: true,\n render: (createElement, context) => context.data.attrs.vnode\n }\n },\n\n props: {\n itemsPerPage: {\n type: Number,\n default: 4\n }\n },\n\n computed:\n {\n columnWidths()\n {\n const itemsPerPage = Math.min(Math.max(this.itemsPerPage, 1), 4);\n\n return [\n \"col-12\",\n itemsPerPage === 1 ? \"col-sm-12\" : \"col-sm-6\",\n \"col-md-\" + (12 / itemsPerPage)\n ];\n }\n },\n\n mounted()\n {\n this.$nextTick(() =>\n {\n this.initializeCarousel();\n });\n },\n\n updated()\n {\n this.initializeCarousel();\n },\n\n methods:\n {\n initializeCarousel()\n {\n if (this.$slots.items && this.$slots.items[0].tag && this.$slots.items.length > this.itemsPerPage)\n {\n const $owl = $(this.$refs.carouselContainer);\n\n // do not render, if no html element is inside of the carousels container\n if (!$owl.children().length)\n {\n return;\n }\n\n $owl.owlCarousel({\n onInitialized(){\n $owl.find(\".owl-carousel.owl-loaded\").each(function() {\n $(this).trigger(\"refresh.owl.carousel\");\n });\n },\n autoHeight: true,\n dots: true,\n items: this.itemsPerPage,\n responsive: {\n 0: {\n items: 1\n },\n 576: {\n items: this.itemsPerPage > 1 ? 2 : 1\n },\n 768: {\n items: this.itemsPerPage > 3 ? 3 : this.itemsPerPage\n },\n 992: {\n items: this.itemsPerPage\n }\n },\n lazyLoad: false,\n loop: false,\n margin: 30,\n mouseDrag: true,\n nav: true,\n navClass: [\n \"owl-single-item-nav left carousel-control list-control-special\",\n \"owl-single-item-nav right carousel-control list-control-special\"\n ],\n navContainerClass: \"\",\n navText: [\n \"<i class=\\\"owl-single-item-control fa fa-chevron-left\\\" aria-hidden=\\\"true\\\"></i>\",\n \"<i class=\\\"owl-single-item-control fa fa-chevron-right\\\" aria-hidden=\\\"true\\\"></i>\"\n ],\n smartSpeed: 350\n });\n }\n }\n }\n}\n</script>\n","import { render, staticRenderFns } from \"./Carousel.vue?vue&type=template&id=70daac60&\"\nimport script from \"./Carousel.vue?vue&type=script&lang=js&\"\nexport * from \"./Carousel.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\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/runner/work/plugin-ceres/plugin-ceres/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('70daac60')) {\n api.createRecord('70daac60', component.options)\n } else {\n api.reload('70daac60', component.options)\n }\n module.hot.accept(\"./Carousel.vue?vue&type=template&id=70daac60&\", function () {\n api.rerender('70daac60', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"resources/js/src/app/components/pageDesign/Carousel.vue\"\nexport default component.exports"],"sourceRoot":""}