{"version":3,"sources":["webpack:///./src/components/text-carousel/index.vue","webpack:///./src/components/text-carousel/scripts.js","webpack:///./src/components/text-carousel/scripts.js?cfaa","webpack:///./src/components/text-carousel/index.vue?bd20","webpack:///./src/components/text-carousel/index.vue?0c43","webpack:///./src/components/svg-loader/index.vue?614a","webpack:///./src/components/svg-loader/index.vue","webpack:///./src/components/svg-loader/scripts.js","webpack:///./src/components/svg-loader/scripts.js?9159","webpack:///./src/components/svg-loader/index.vue?16c2"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","ref","_l","items","item","index","key","class","current","style","transform","position","title","includes","domProps","_s","_v","description","length","attrs","on","$event","decreaseCurrent","setCurrent","increaseCurrent","_e","staticRenderFns","props","data","methods","component","seletorChange","checkIfIe","loadedSvg","src","mounted","loadSvg","watch","ua","window","navigator","userAgent","msie","indexOf","trident","parseInt","substring","rv","changeSeletor","newColor","color","client","XMLHttpRequest","open","onreadystatechange","fileContent","responseText","finalHaskColor","finalColorFill","fill","colorFill","substr","charAt","replace","RegExp","send"],"mappings":"wIAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,UAAU,CAACG,YAAY,2BAA2B,CAACH,EAAG,KAAK,CAACI,IAAI,oBAAoBD,YAAY,sBAAsBL,EAAIO,GAAIP,EAAIQ,OAAO,SAASC,EAAKC,GAAO,OAAOR,EAAG,KAAK,CAACS,IAAID,EAAML,YAAY,gBAAgBO,MAAM,CAAE,OAAUZ,EAAIa,UAAYH,GAAQI,MAAO,CAAEC,UAAW,eAAF,OAAuC,IAAtBf,EAAIgB,SAASN,GAA9B,cAAyD,CAAED,EAAKQ,MAAMC,SAAS,KAAMhB,EAAG,KAAK,CAACiB,SAAS,CAAC,UAAYnB,EAAIoB,GAAGX,EAAKQ,UAAUf,EAAG,KAAK,CAACF,EAAIqB,GAAG,aAAarB,EAAIoB,GAAGX,EAAKQ,OAAO,cAAcf,E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,wBCQhSnC,EAAY,eACd,EACApC,EACAgC,GACA,EACA,KACA,KACA,MAIa,OAAAI,E","file":"js/app~a0cae88c.89602c84.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"container-text-carousel\"},[_c('ul',{ref:\"carouselComponent\",staticClass:\"carousel-component\"},_vm._l((_vm.items),function(item,index){return _c('li',{key:index,staticClass:\"carousel-page\",class:{ 'active': _vm.current === index },style:({ transform: `translate3d(${_vm.position(index) * 100}%, 0, 0)` })},[(item.title.includes('<'))?_c('h2',{domProps:{\"innerHTML\":_vm._s(item.title)}}):_c('h2',[_vm._v(\"\\n \"+_vm._s(item.title)+\"\\n \")]),_c('p',[_vm._v(\"\\n \"+_vm._s(item.description)+\"\\n \")])])}),0),(_vm.items && _vm.items.length > 1)?_c('div',{staticClass:\"carousel-nav-buttons\"},[_c('button',{staticClass:\"carousel-nav-prev\",attrs:{\"title\":\"Anterior\"},on:{\"click\":function($event){return _vm.decreaseCurrent()}}},[_c('img',{attrs:{\"src\":\"img/carousel-arrow-left.svg\",\"alt\":\"carousel-arrow-left\"}})]),_c('ul',{staticClass:\"list-dots\"},_vm._l((_vm.items),function(item,index){return _c('li',{key:index,class:{ 'active': _vm.current === index }},[_c('button',{attrs:{\"title\":\"Selecionar\"},on:{\"click\":function($event){return _vm.setCurrent(index)}}})])}),0),_c('button',{staticClass:\"carousel-nav-next\",attrs:{\"title\":\"Próximo\"},on:{\"click\":function($event){return _vm.increaseCurrent()}}},[_c('img',{attrs:{\"src\":\"img/carousel-arrow-right.svg\",\"alt\":\"carousel-arrow-right\"}})])]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n props: [\n 'items'\n ],\n data () {\n return {\n current: 0\n }\n },\n methods: {\n decreaseCurrent () {\n this.current += this.items.length - 1\n\n this.current %= this.items.length\n },\n increaseCurrent () {\n this.current += 1\n\n this.current %= this.items.length\n },\n setCurrent (index) {\n this.current = index\n },\n position (index) {\n if (index === this.current) {\n return 0\n }\n\n if (index === (this.current + 1) % this.items.length) {\n return 1\n }\n\n return -1\n }\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=6d38f4f0&lang=html\"\nimport script from \"./scripts.js?vue&type=script&lang=js&external\"\nexport * from \"./scripts.js?vue&type=script&lang=js&external\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=6d38f4f0&prod&lang=scss\"\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","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=6d38f4f0&prod&lang=scss\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=ab1a0b86&prod&lang=scss\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"svg-loader\"},[(_vm.seletorChange === 0 && _vm.checkIfIe() === false)?_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.loadedSvg)}}):(_vm.seletorChange === 1 && _vm.checkIfIe() === false)?_c('strong',{domProps:{\"innerHTML\":_vm._s(_vm.loadedSvg)}}):(_vm.seletorChange === 2 && _vm.checkIfIe() === false)?_c('section',{domProps:{\"innerHTML\":_vm._s(_vm.loadedSvg)}}):_vm._e(),(_vm.checkIfIe() !== false)?_c('img',{attrs:{\"src\":_vm.src,\"alt\":\"\"}}):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n data () {\n return {\n loadedSvg: null,\n seletorChange: 0\n }\n },\n props: ['src', 'color'],\n mounted () {\n this.loadSvg()\n },\n watch: {\n src () {\n this.loadSvg()\n }\n },\n methods: {\n checkIfIe () {\n const ua = window.navigator.userAgent\n\n const msie = ua.indexOf('MSIE ')\n const trident = ua.indexOf('Trident/')\n\n if (msie > 0) {\n return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10)\n }\n\n if (trident > 0) {\n const rv = ua.indexOf('rv:')\n\n return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10)\n }\n\n return false\n },\n changeSeletor () {\n if (this.seletorChange < 3) {\n this.seletorChange = this.seletorChange + 1\n } else {\n this.seletorChange = 0\n }\n },\n loadSvg () {\n const newColor = this.color\n\n const client = new XMLHttpRequest()\n\n client.open('GET', this.src)\n\n client.onreadystatechange = () => {\n const fileContent = client.responseText\n let finalHaskColor\n let finalColorFill\n\n if (newColor) {\n if (fileContent.indexOf('\"#') !== -1) {\n const fill = fileContent.indexOf('\"#') + 1\n let colorFill = fileContent.substr(fill, 7)\n\n if (colorFill.charAt(5) === ' ') {\n colorFill = colorFill.replace(colorFill.charAt(5), '').replace(colorFill.charAt(6), '')\n }\n\n finalHaskColor = colorFill.replace(/\"/g, '').replace(/>/g, '').replace(/\\//g, '')\n\n if (finalHaskColor && finalHaskColor !== 'none' && finalHaskColor.length >= 4) {\n this.loadedSvg = fileContent.replace(new RegExp(finalHaskColor, 'g'), newColor)\n }\n }\n\n if (fileContent.indexOf('fill=\"') !== -1) {\n const fill = fileContent.indexOf('fill=\"') + 6\n\n let colorFill = fileContent.substr(fill, 7)\n\n if (colorFill.charAt(5) === ' ') {\n colorFill = colorFill.replace(colorFill.charAt(5), '').replace(colorFill.charAt(6), '')\n }\n\n finalColorFill = colorFill.replace(/\"/g, '').replace(/>/g, '').replace(/\\//g, '')\n\n if (finalColorFill && finalColorFill !== 'none' && finalColorFill.length >= 4) {\n this.loadedSvg = fileContent.replace(new RegExp(finalColorFill, 'g'), newColor)\n }\n }\n } else {\n this.loadedSvg = fileContent\n }\n }\n client.send()\n }\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./scripts.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=ab1a0b86&lang=html\"\nimport script from \"./scripts.js?vue&type=script&lang=js&external\"\nexport * from \"./scripts.js?vue&type=script&lang=js&external\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=ab1a0b86&prod&lang=scss\"\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"],"sourceRoot":""}