{"version":3,"sources":["webpack:///./src/plugins/plugin-casino.js","webpack:///./src/views/home/casino/game.vue?37cd","webpack:///src/views/home/casino/game.vue","webpack:///./src/views/home/casino/game.vue?c9a7","webpack:///./src/views/home/casino/game.vue"],"names":["DOMAIN","Vue","prototype","$domain","GEN_ENVRELEASE","API","casino","getActiveSlotGames","endpoint","body","$formdata","domain","headers","axios","method","url","data","games","dados","map","game","imageLoaded","startGame","gameId","currency","country","language","store","state","symbol","token","logged","operators","response","fetchDgaId","cachedDgaId","JSON","parse","sessionStorage","getItem","setItem","stringify","render","_vm","this","_h","$createElement","_c","_self","staticClass","staticStyle","style","isMobile","attrs","on","$event","closeGame","_v","gameURL","length","staticRenderFns","name","props","computed","$vuetify","breakpoint","mdAndDown","methods","$router","go","component","VBtn","VContainer","VIcon","VProgressLinear"],"mappings":"izBAIA,IAAMA,EAASC,OAAIC,UAAUC,UAEvBC,EAAiB,6BACnBC,EAAM,GAGRA,EADa,QAAXL,EACI,yBACc,YAAXA,EACH,2BAEA,4BAGR,IAAMM,EAAS,CACPC,mBADO,0KAELC,EAAWH,EAAM,+BAEjBI,EAAOR,OAAIC,UAAUQ,UAAU,CACnCC,OAAQX,IAGJY,EAAU,CACd,eAAgB,sBAChB,YAAa,wDAVJ,SAaSC,IAAM,CACxBC,OAAQ,OACRC,IAAKP,EACLQ,KAAMP,EACNG,YAjBS,cAaLK,EAbK,yBAoBJA,EAAMD,KAAKE,MAAMC,KAAI,SAACC,GAAD,cAAgBA,GAAhB,IAAsBC,aAAa,QApBpD,mGAuBPC,UAvBO,oEAuBGC,GAvBH,oGAwBPf,EAAWJ,EAAiB,4BAEjB,QAAXJ,IACFQ,EAAWH,EAAM,6BAGbI,EAAOR,OAAIC,UAAUQ,UAAU,CACnCc,SAAU,MACVC,QAAS,MACTC,SAAUC,OAAMC,MAAMF,SACtBG,OAAQN,EACRO,MAAOH,OAAMC,MAAMG,OAAOD,MAC1Bf,IAAKY,OAAMC,MAAMI,UAAUjB,MAGvB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EAAG,MAAM,CAACE,YAAY,0CAA0CC,YAAY,CAAC,SAAW,OAAO,MAAQ,OAAO,OAAS,SAAS,CAAEP,EAAIe,QAAQC,OAAS,EAAGZ,EAAG,SAAS,CAACI,MAAQ,iEAAmER,EAAIS,SACj2B,wHACA,kBAAoBC,MAAM,CAAC,gBAAkB,GAAG,sBAAwB,GAAG,mBAAqB,GAAG,MAAQV,EAAIS,SAAW,MAAQ,OAAO,OAAST,EAAIS,SAAW,MAAQ,MAAM,IAAMT,EAAIe,WAAWX,EAAG,oBAAoB,CAACE,YAAY,UAAUC,YAAY,CAAC,IAAM,QAAQG,MAAM,CAAC,cAAgB,GAAG,MAAQ,OAAO,MAAQ,YAAY,MACpVO,EAAkB,G,wDCwDtB,GACEC,KAAM,cACNC,MAAO,CAAC,SAAU,cAClB9C,KAAM,WAAR,OACA,aAEE,QANF,wLAOA,4BAPA,UAOA,EAPA,OASA,+CACA,eACA,oCAGA,EAdA,oBAeA,YAEA,yBAjBA,iBAkBA,EAlBA,eAkBA,2BAlBA,+BAkBA,YAlBA,sBAmBA,mFAnBA,yCAqBA,8BArBA,QAqBA,aArBA,uCAwBA,yCAxBA,yGA2BE+C,SAAU,CACRX,SADJ,WAEM,OAAOR,KAAKoB,SAASC,WAAWC,YAGpCC,QAAS,CACPX,UADJ,WAEMZ,KAAKwB,QAAQC,IAAI,MC7FqV,I,iFCOxWC,EAAY,eACd,EACA5B,EACAkB,GACA,EACA,KACA,KACA,MAIa,aAAAU,EAAiB,QAQhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,aAAA,KAAWC,QAAA,KAAMC,kBAAA","file":"js/chunk-c75f4cb6.0d1b1383.js","sourcesContent":["import store from \"@/store\";\nimport Vue from \"vue\";\nimport axios from \"axios\";\n\nconst DOMAIN = Vue.prototype.$domain();\n\nconst GEN_ENVRELEASE = \"https://gen.envrelease.com\";\nlet API = \"\";\n\nif (DOMAIN === \"sys\") {\n API = \"https://apidev.sga.bet\";\n} else if (DOMAIN === \"homolog\") {\n API = \"https://apiv2dev.sga.bet\";\n} else {\n API = \"https://v2.envrelease.com\";\n}\n\nconst casino = {\n async getActiveSlotGames() {\n const endpoint = API + \"/casino/games/listByOperator\";\n\n const body = Vue.prototype.$formdata({\n domain: DOMAIN,\n });\n\n const headers = {\n \"Content-Type\": \"multipart/form-data\",\n \"x-api-key\": \"02ff96c8f50ce6a488812146d448a04b2e2358dd45d0dbb59824\",\n };\n\n const games = await axios({\n method: \"post\",\n url: endpoint,\n data: body,\n headers,\n });\n\n return games.data.dados.map((game) => ({ ...game, imageLoaded: false }));\n },\n\n async startGame(gameId) {\n let endpoint = GEN_ENVRELEASE + \"/player/games/generateURL\";\n\n if (DOMAIN === \"sys\") {\n endpoint = API + \"/casino/games/generateURL\";\n }\n\n const body = Vue.prototype.$formdata({\n currency: \"BRL\",\n country: \"BRA\",\n language: store.state.language,\n symbol: gameId,\n token: store.state.logged.token,\n url: store.state.operators.url,\n });\n\n const headers = {\n \"Content-Type\": \"multipart/form-data\",\n \"Application-Authorization\": store.state.logged.token,\n \"x-api-key\": \"02ff96c8f50ce6a488812146d448a04b2e2358dd45d0dbb59824\",\n };\n\n const response = await axios({\n method: \"post\",\n url: endpoint,\n data: body,\n headers,\n });\n\n return response.data.dados;\n },\n\n async fetchDgaId() {\n const cachedDgaId = JSON.parse(sessionStorage.getItem(\"dgaId\"));\n\n if (cachedDgaId) {\n return cachedDgaId;\n }\n\n let endpoint = GEN_ENVRELEASE + \"/player/games/getDgaId\";\n\n if (DOMAIN === \"sys\") {\n endpoint = API + \"/player/games/generateURL\";\n }\n\n const headers = {\n \"Content-Type\": \"multipart/form-data\",\n \"Application-Authorization\": store.state.logged.token,\n \"x-api-key\": \"02ff96c8f50ce6a488812146d448a04b2e2358dd45d0dbb59824\",\n };\n\n const body = Vue.prototype.$formdata({ domain: DOMAIN });\n\n const response = await axios({\n method: \"post\",\n url: endpoint,\n data: body,\n headers,\n });\n\n sessionStorage.setItem(\"dgaId\", JSON.stringify(response.data.dados));\n return response.data.dados;\n },\n};\n\nexport default casino;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"d-flex flex-column\",staticStyle:{\"max-width\":\"1200px\",\"overflow\":\"none\"}},[_c('div',{staticClass:\"d-flex mx-auto\",staticStyle:{\"overflow\":\"none\",\"width\":\"100%\",\"height\":\"100%\"}},[_c('v-btn',{style:((\"left: 15px; top: -\" + (_vm.isMobile ? '90' : '45') + \"px; background-color: rgba(66, 66, 66, 0.7); z-index:999999; position:sticky;\")),attrs:{\"x-small\":_vm.isMobile,\"sticky\":\"\",\"dark\":\"\",\"outlined\":\"\"},on:{\"click\":function($event){return _vm.closeGame()}}},[_c('v-icon',[_vm._v(\"mdi-arrow-left\")])],1)],1),_c('div',{staticClass:\"mx-auto d-flex flex-column align-center\",staticStyle:{\"overflow\":\"none\",\"width\":\"100%\",\"height\":\"100%\"}},[(_vm.gameURL.length > 0)?_c('iframe',{style:((\"overflow: none; border: none; background-color: transparent; \" + (_vm.isMobile\n ? 'position:fixed; top:0px; bottom:0px; width:100%; height:100%; margin:0; padding:0; overflow:hidden; z-index:99999999;'\n : 'z-index: 1000;'))),attrs:{\"allowfullscreen\":\"\",\"webkitallowfullscreen\":\"\",\"mozallowfullscreen\":\"\",\"width\":_vm.isMobile ? '480' : '1277',\"height\":_vm.isMobile ? '360' : '718',\"src\":_vm.gameURL}}):_c('v-progress-linear',{staticClass:\"mx-auto\",staticStyle:{\"top\":\"20px\"},attrs:{\"indeterminate\":\"\",\"width\":\"100%\",\"color\":\"white\"}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n mdi-arrow-left\n \n \n \n \n 0\"\n allowfullscreen\n webkitallowfullscreen\n mozallowfullscreen\n :width=\"isMobile ? '480' : '1277'\"\n :height=\"isMobile ? '360' : '718'\"\n :style=\"\n `overflow: none; border: none; background-color: transparent; ${\n isMobile\n ? 'position:fixed; top:0px; bottom:0px; width:100%; height:100%; margin:0; padding:0; overflow:hidden; z-index:99999999;'\n : 'z-index: 1000;'\n }`\n \"\n :src=\"gameURL\"\n >\n \n \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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./game.vue?vue&type=script&lang=js&\"; 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/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./game.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./game.vue?vue&type=template&id=565c3e99&\"\nimport script from \"./game.vue?vue&type=script&lang=js&\"\nexport * from \"./game.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\ninstallComponents(component, {VBtn,VContainer,VIcon,VProgressLinear})\n"],"sourceRoot":""}