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,KAAKqB,SAE/D,QAEI,0BACErB,KAAKO,KACL,yBACAP,KAAKqB,UAERsB,MAAMC,IACL5C,KAAKW,IAAMiC,EAAShB,IAAI,IAIzBiB,OAAOC,IACNV,QAAQC,IAAIS,GACZ9C,KAAK+C,SAAU,CAAI,IAEpBC,SAAQ,KACPhD,KAAKiD,SAAU,CAAK,IAGxB,QACOjD,KAAK8B,cACTa,MAAMC,IACL5C,KAAKc,KAAO8B,EAAShB,KAAKsB,UAAU,IAErCL,OAAOC,IACNV,QAAQC,IAAIS,EAAM,IAEnBE,SAAQ,QACb,ICxJiI,I,UCQjIG,GAAY,OACd,EACArD,EACA0B,GACA,EACA,KACA,WACA,MAIF,EAAe2B,EAAiB,O","sources":["webpack://Viva-Aguascalientes/./src/views/Plantilla.vue?fb21","webpack://Viva-Aguascalientes/src/views/Plantilla.vue","webpack://Viva-Aguascalientes/./src/views/Plantilla.vue?5674","webpack://Viva-Aguascalientes/./src/views/Plantilla.vue"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('header',{staticClass:\"seccionBg mb-5\",style:({\n      backgroundImage:\n        'url(' + _vm.imgCategorias + _vm.idsc + '/1366?api-version=1.1' + ')',\n    }),attrs:{\"id\":\"test\"}},[_c('div',{staticClass:\"gradient\"}),_c('p',{staticClass:\"titulo\"},[_vm._v(_vm._s(_vm.tsc.nombre))])]),_c('main',{staticClass:\"container mb-5\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-12 the-description\"},[_vm._v(\" \"+_vm._s(_vm.tsc.descripcion)+\" \")])]),(_vm.resp.length > 0)?_c('div',_vm._l((_vm.resp),function(rs,idrs){return _c('div',{key:idrs},[(idrs % 2 === 0)?_c('div',[_c('div',{staticClass:\"row mb-5\"},[_c('div',{staticClass:\"col-md-7 text align-self-center\"},[_c('p',{staticClass:\"subtitulo\"},[_vm._v(_vm._s(rs.nombre))]),_c('simplebar',{staticClass:\"test\",attrs:{\"data-simplebar-auto-hide\":\"false\"}},[_c('p',{staticClass:\"parrafo\"},[_vm._v(_vm._s(rs.descripcion))])]),_c('a',{attrs:{\"href\":'/Atractivo/' + rs.id}},[_vm._v(_vm._s(_vm.language == \"es\" ? \"Ver Más ...\" : \"See More ...\"))])],1),_c('div',{staticClass:\"col-md-5\"},[_c('div',{staticClass:\"img-contenedor-atractivo\",style:({\n                  backgroundImage:\n                    'url(' + _vm.imgAtractivos + rs.id + '?api-version=1.1)',\n                })})])])]):_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-5\"},[_c('div',{staticClass:\"img-contenedor-atractivo\",style:({\n                  backgroundImage:\n                    'url(' + _vm.imgAtractivos + rs.id + '?api-version=1.1)',\n                })})]),_c('div',{staticClass:\"col-md-7 text align-self-center\"},[_c('p',{staticClass:\"subtitulo\"},[_vm._v(_vm._s(rs.nombre))]),_c('simplebar',{staticClass:\"test\",attrs:{\"data-simplebar-auto-hide\":\"false\"}},[_c('p',{staticClass:\"parrafo\"},[_vm._v(_vm._s(rs.descripcion))])]),_c('a',{attrs:{\"href\":'/Atractivo/' + rs.id}},[_vm._v(_vm._s(_vm.language == \"es\" ? \"Ver Más ...\" : \"See More ...\"))])],1)])])])}),0):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <div>\r\n    <header\r\n      id=\"test\"\r\n      class=\"seccionBg mb-5\"\r\n      :style=\"{\r\n        backgroundImage:\r\n          'url(' + imgCategorias + idsc + '/1366?api-version=1.1' + ')',\r\n      }\"\r\n    >\r\n      <div class=\"gradient\"></div>\r\n      <p class=\"titulo\">{{ tsc.nombre }}</p>\r\n    </header>\r\n    \r\n    <main class=\"container mb-5\">\r\n      <div class=\"row\">\r\n              <div class=\"col-md-12 the-description\">\r\n                {{ tsc.descripcion }}\r\n              </div>\r\n      </div>\r\n      <div v-if=\"resp.length > 0\">\r\n        <div v-for=\"(rs, idrs) in resp\" :key=\"idrs\">\r\n          <div v-if=\"idrs % 2 === 0\">\r\n\r\n            \r\n\r\n            <div class=\"row mb-5\">\r\n              \r\n              <div class=\"col-md-7 text align-self-center\">\r\n                <p class=\"subtitulo\">{{ rs.nombre }}</p>\r\n                <simplebar class=\"test\" data-simplebar-auto-hide=\"false\">\r\n                  <p class=\"parrafo\">{{ rs.descripcion }}</p>\r\n                </simplebar>\r\n                <a :href=\"'/Atractivo/' + rs.id\">{{\r\n                  language == \"es\" ? \"Ver Más ...\" : \"See More ...\"\r\n                }}</a>\r\n              </div>\r\n              <div class=\"col-md-5\">\r\n                <div\r\n                  class=\"img-contenedor-atractivo\"\r\n                  :style=\"{\r\n                    backgroundImage:\r\n                      'url(' + imgAtractivos + rs.id + '?api-version=1.1)',\r\n                  }\"\r\n                ></div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n\r\n          <div v-else>\r\n            <div class=\"row\">\r\n              <div class=\"col-md-5\">\r\n                <div\r\n                  class=\"img-contenedor-atractivo\"\r\n                  :style=\"{\r\n                    backgroundImage:\r\n                      'url(' + imgAtractivos + rs.id + '?api-version=1.1)',\r\n                  }\"\r\n                ></div>\r\n              </div>\r\n              <div class=\"col-md-7 text align-self-center\">\r\n                <p class=\"subtitulo\">{{ rs.nombre }}</p>\r\n                <simplebar class=\"test\" data-simplebar-auto-hide=\"false\">\r\n                  <p class=\"parrafo\">{{ rs.descripcion }}</p>\r\n                </simplebar>\r\n                <a :href=\"'/Atractivo/' + rs.id\">{{\r\n                  language == \"es\" ? \"Ver Más ...\" : \"See More ...\"\r\n                }}</a>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </main>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport simplebar from \"simplebar-vue\";\r\nimport \"simplebar/dist/simplebar.min.css\";\r\nimport axios from \"axios\";\r\n\r\nexport default {\r\n  name: \"Info\",\r\n  components: {\r\n    simplebar,\r\n  },\r\n  data: () => ({\r\n    resp: [],\r\n    idc: null,\r\n    idsc: null,\r\n    tsc: null,\r\n    //imgCategorias: \"http://desarrolloweb.aguascalientes.gob.mx/moviles/fnsm/api/Categorias/image/\",\r\n    //imgAtractivos: \"http://desarrolloweb.aguascalientes.gob.mx/moviles/fnsm/api/Atractivos/image/\"\r\n    imgCategorias:\r\n      \"https://egobierno2.aguascalientes.gob.mx/moviles/vivaags/api/Categorias/image/\",\r\n    imgAtractivos:\r\n      \"https://egobierno2.aguascalientes.gob.mx/moviles/vivaags/api/Atractivos/image/\",\r\n    plantillaUrl: \"\",\r\n  }),\r\n  computed: {\r\n    language: function() {\r\n      return this.$store.getters.language;\r\n    },\r\n  },\r\n  watch: {\r\n    language: function(nw) {\r\n      console.log(\"Entro Watch\");\r\n      this.loadPlantilla();\r\n    },\r\n  },\r\n  created() {\r\n    this.loadPlantilla();\r\n  },\r\n  methods: {\r\n    loadPlantilla() {\r\n      this.idc = this.$route.params.idc;\r\n      this.idsc = this.$route.params.idsc;\r\n      //this.tsc = this.$route.params.tsc;\r\n\r\n      this.plantillaUrl =\r\n        \"/Categorias/\" + this.idsc + \"?api-version=1.1&lang=\" + this.language;\r\n\r\n      axios\r\n        .get(\r\n          \"/CategoriasWeb/detalle/\" +\r\n            this.idsc +\r\n            \"?api-version=1.1&lang=\" +\r\n            this.language\r\n        )\r\n        .then((response) => {\r\n          this.tsc = response.data;\r\n          \r\n\r\n        })\r\n        .catch((error) => {\r\n          console.log(error);\r\n          this.errored = true;\r\n        })\r\n        .finally(() => {\r\n          this.loading = false;\r\n        });\r\n\r\n      axios\r\n        .get(this.plantillaUrl)\r\n        .then((response) => {\r\n          this.resp = response.data.atractivos;\r\n        })\r\n        .catch((error) => {\r\n          console.log(error);\r\n        })\r\n        .finally(() => {});\r\n    },\r\n  },\r\n};\r\n</script>\r\n<style scoped lang=\"scss\">\r\n.seccionBg {\r\n  height: 425px;\r\n  width: 100%;\r\n  position: relative;\r\n  background: rgb(0, 0, 0);\r\n  background-size: cover;\r\n  background-position: center;\r\n  overflow: hidden;\r\n  margin-top: 50px;\r\n  @media (max-width: 640px) {\r\n    height: 280px;\r\n  }\r\n\r\n  img {\r\n    width: auto;\r\n    height: 100%;\r\n    position: absolute;\r\n    z-index: -1;\r\n  }\r\n\r\n  .titulo {\r\n    position: absolute;\r\n    bottom: 60px;\r\n    color: white;\r\n    left: 100px;\r\n    font-size: 4.5rem;\r\n    line-height: 1;\r\n\r\n    @media only screen and (max-width: 640px) {\r\n      font-size: 2.5rem;\r\n      left: 20px;\r\n      bottom: 20px;\r\n    }\r\n  }\r\n}\r\nheader::before {\r\n  content: \" \";\r\n  width: 100%;\r\n  height: 100%;\r\n  position: absolute;\r\n  top: 0;\r\n  left: 0;\r\n  background: linear-gradient(\r\n    0deg,\r\n    rgba(0, 0, 0, 0.8) 0%,\r\n    rgba(0, 0, 0, 0) 70%\r\n  );\r\n}\r\nmain {\r\n  .subtitulo {\r\n    font-size: 2.375rem;\r\n\r\n    @media only screen and (max-width: 640px) {\r\n      font-size: 2rem;\r\n    }\r\n    \r\n  }\r\n  .img-contenedor-atractivo {\r\n    display: block;\r\n    height: 435px;\r\n    background: lightblue;\r\n    background-size: cover;\r\n    background-attachment: abs($number: 0);\r\n    position: relative;\r\n  }\r\n}\r\n.test {\r\n  height: 220px;\r\n}\r\n\r\n.testModal {\r\n  height: 600px;\r\n  padding: 20px;\r\n}\r\n\r\n.parrafo {\r\n  padding-right: 15px;\r\n  white-space: pre-wrap;\r\n}\r\n\r\n.btn-primary {\r\n  color: #fff;\r\n  background-color: #007bff;\r\n  border-color: #007bff;\r\n}\r\n.the-description{\r\n  line-height: 2;\r\n  text-align: justify;\r\n  &::first-letter{\r\n\tfont-size:3em;\r\n\tfont-family:serif;\r\n  line-height: initial;\r\n}\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Plantilla.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Plantilla.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Plantilla.vue?vue&type=template&id=4c2a61ae&scoped=true\"\nimport script from \"./Plantilla.vue?vue&type=script&lang=js\"\nexport * from \"./Plantilla.vue?vue&type=script&lang=js\"\nimport style0 from \"./Plantilla.vue?vue&type=style&index=0&id=4c2a61ae&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"4c2a61ae\",\n  null\n  \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","style","backgroundImage","imgCategorias","idsc","attrs","_v","_s","tsc","nombre","descripcion","resp","length","_l","rs","idrs","key","id","language","imgAtractivos","_e","staticRenderFns","name","components","simplebar","data","idc","plantillaUrl","computed","$store","getters","watch","nw","console","log","loadPlantilla","created","methods","$route","params","then","response","catch","error","errored","finally","loading","atractivos","component"],"sourceRoot":""}