{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./public/js/rank/component/follow.js","webpack:///./public/js/rank/index.entry.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","apiPrefix","window","location","protocol","gameCodeArr","gameFollowStatusArr","loginTargetBtn","Follow","el","getGameCode","Passport","isLoggedIn","checkFollowStatus","renderFollowStatus","length","$","trigger","splice","find","each","push","this","data","Promise","resolve","reject","ajax","type","url","dataType","passport_id","game_codes","join","success","result","error","res","$this","gameCode","text","keys","toString","parents","addClass","hasClass","removeClass","submitFollow","game_code","channel","console","log","msg","click","async","attr","parent","Dialog","show","numObj","parseInt","visitedIndex","current","decodeURIComponent","hash","split","index","tabNav","children","tabPn","btnNext","btnPrev","galleryThumbs","Swiper","spaceBetween","centeredSlides","slidesPerView","touchRatio","slideToClickedSlide","loop","loopedSlides","initialSlide","on","slideChange","setTimeout","rankName","pandora","use","Comment","element","sid","_jc_ping","gameName","replace","trim","remove","css","off","button","e","galleryTop","navigation","nextEl","prevEl","activeSlideHash","realIndex","indexOf","init","controller","control","eq","scrollTo","observer","observeParents","direction","navText","animate","scrollTop","offset","top","siblings","not","EVENTS","loginSuccess","logoutSuccess","resetFollowStatus"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ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G5ClG,EAAeW,OAAO,EAAGX,EAAeQ,QACxCP,EAAOmG,KAAK3F,EAAE,4BAA4BM,KAAKmF,eAC/C5C,EAAaxC,KAAKC,KAAKmF,gBAI7BL,EAAWQ,WAAWC,QAAUrC,EAChCA,EAAcoC,WAAWC,QAAUT,KAKnCpF,EAAE,cAAcD,OAAS,GAC3BqE,YAAW,WACTpE,EAAE,cAAc8F,GAAG,GAAGlE,SAAS,UAC/B1C,OAAO6G,SAAS,EAAG,KAClB,KAGL,IAAItC,OAAO,YAAa,CACtBuC,UAAU,EACVC,gBAAgB,EAChBrC,cAAe,OACfG,MAAM,EACNmC,UAAW,WACXpC,qBAAqB,EACrBH,gBAAgB,IAElB3D,EAAE,sBAAsBqC,OAAM,WAC5B,IAAI8D,EAAUnG,EAAEM,MAAMkB,OAEtBxB,EAAE,qBAAqBI,MAAK,WACtBJ,EAAEM,MAAMkB,QAAU2E,GACpBnG,EAAEM,MAAMqB,UAAUC,SAAS,UAC3B5B,EAAE,cAAcoG,QACd,CACEC,UAAWrG,EAAEM,MAAMqB,UAAU2E,SAASC,IAAM,KAE9C,KAGFvG,EAAEM,MAAMqB,UAAUG,YAAY,aAIlC9B,EAAEM,MAAMsB,SAAS,UAAU4E,WAAW1E,YAAY,UAClD9B,EAAE,aAAayG,IAAI,WAAW3E,YAAY,aAO5CnC,SAASuE,GAAGvE,SAAS+G,OAAOC,aAAc,KAExC9D,EAAa3C,OAAO,EAAG2C,EAAa9C,QACpCmC,QAAQC,IAAIe,GACZ1D,EAAOmG,KAAK3F,EAAE,4BAA4BkD,OAC1CL,EAAaxC,KAAK6C,KAGpBvD,SAASuE,GAAGvE,SAAS+G,OAAOE,cAAe,KAEzCpH,EAAOqH","file":"js/rank/index.entry.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"//ue.17173cdn.com/a/newgame/index/v6.3.0/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 251);\n","const apiPrefix =\n  'https:' == window.location.protocol\n    ? '//api.17173.com/hao/v1/'\n    : '//hao.17173.com/api/'\nlet gameCodeArr = []\nlet gameFollowStatusArr = null\n\nexport const loginTargetBtn = []\n\nexport const Follow = {\n  async init(el) {\n    Follow.getGameCode(el)\n\n    if (Passport.isLoggedIn()) {\n      await Follow.checkFollowStatus()\n      if (gameFollowStatusArr) {\n        Follow.renderFollowStatus()\n      }\n    }\n\n    if (loginTargetBtn.length > 0) {\n      $(\n        `[data-swiper-slide-index=${loginTargetBtn[0]}] .${loginTargetBtn[1]}  [data-game-code=${loginTargetBtn[2]}]`\n      ).trigger('click')\n    }\n  },\n  getGameCode(el) {\n    gameCodeArr.splice(0, gameCodeArr.length)\n    el.find('[data-game-code]').each(function () {\n      gameCodeArr.push($(this).data('game-code'))\n    })\n    // 数组去重\n    // gameCodeArr = [...new Set(gameCodeArr)]\n  },\n  checkFollowStatus() {\n    return new Promise((resolve, reject) => {\n      $.ajax({\n        type: 'get',\n        url: apiPrefix + 'IsUserScheGame',\n        dataType: 'jsonp',\n        data: {\n          passport_id: Passport.data('uid'),\n          game_codes: gameCodeArr.join(),\n        },\n        success: function (d) {\n          if (d.result == 'success') {\n            gameFollowStatusArr = d.data\n            resolve()\n          }\n        },\n        error: function (res) {\n          reject(res)\n        },\n      })\n    })\n  },\n  renderFollowStatus() {\n    $('.swiper-container [data-follow-btn]').each(function () {\n      const $this = $(this)\n      const gameCode = $this.data('game-code')\n      const text = $this.data('follow-txt')\n      const key = Object.keys(gameFollowStatusArr).find(\n        (key) => gameCode == key.toString()\n      )\n      const status = gameFollowStatusArr[key]\n\n      if (status) {\n        $this\n          .parents('.c4')\n          .find('[data-follow-btn]')\n          .addClass('followed')\n          .text(`已${text}`)\n      }\n    })\n  },\n  resetFollowStatus() {\n    $('.swiper-container [data-follow-btn]').each(function () {\n      const $this = $(this)\n      $this.text($this.data('follow-txt'))\n      if ($this.hasClass('followed')) {\n        $this.removeClass('followed')\n      }\n    })\n  },\n  submitFollow(game_code) {\n    return new Promise((resolve, reject) => {\n      $.ajax({\n        type: 'get',\n        url: apiPrefix + 'scheGame',\n        dataType: 'jsonp',\n        data: {\n          passport_id: Passport.data('uid'),\n          game_code,\n          channel: '90117',\n        },\n        success: function (d) {\n          if (d.result == 'success') {\n            resolve(true)\n          } else {\n            resolve(false)\n            console.log(d.msg)\n          }\n        },\n        error: function (res) {\n          reject(res)\n        },\n      })\n    })\n  },\n}\n\n$('.swiper-container [data-follow-btn]').click(async function () {\n  const $this = $(this)\n  const gameCode = $this.data('game-code')\n\n  if (!Passport.isLoggedIn()) {\n    loginTargetBtn.splice(0, loginTargetBtn.length)\n    loginTargetBtn.push(\n      $this\n        .parents('[data-swiper-slide-index]')\n        .attr('data-swiper-slide-index'),\n      $this.parent().attr('class'),\n      $this.data('game-code')\n    )\n    Passport.Dialog.show()\n    return\n  }\n\n  if ($this.hasClass('followed')) return\n\n  const res = await Follow.submitFollow(gameCode)\n  if (res) {\n    $this\n      .parents('.c4')\n      .find('[data-follow-btn]')\n      .addClass('followed')\n      .text(`已${$this.data('follow-txt')}`)\n    const numObj = $this.parents('.c4').find('[data-follow-num]')\n    numObj.text(parseInt(numObj.text()) + 1)\n  }\n  loginTargetBtn.splice(0, loginTargetBtn.length)\n})\n","import { Follow, loginTargetBtn } from './component/follow'\n\nconst visitedIndex = []\n// var init = false\nvar current = decodeURIComponent(location.hash.split('#')[1])\nvar index = 0\n\nfunction renderPage() {\n  $('.tab-nav a').each(function (i) {\n    var name = $(this).attr('data-name')\n    if (name === current) {\n      index = i\n    }\n  })\n  var syncingSwiper = function (el) {\n    $(el).each(function () {\n      var tabNav = $(this).children('.tab-nav')\n      var tabPn = $(this).children('.tab-pn')\n      var btnNext = $(this).children('.swiper-button-next')\n      var btnPrev = $(this).children('.swiper-button-prev')\n      var galleryThumbs = new Swiper(tabNav, {\n        spaceBetween: 10,\n        centeredSlides: true,\n        slidesPerView: 4,\n        touchRatio: 0.2,\n        slideToClickedSlide: true,\n        loop: true,\n        loopedSlides: 4,\n        initialSlide: index,\n\n        on: {\n          slideChange: function () {\n            setTimeout(function () {\n              const rankName = $('.tab-nav .swiper-slide-active').attr(\n                'data-name'\n              )\n\n              // render comment\n              if (window.pandora) {\n                pandora.use('comment', function (Comment) {\n                  new Comment({\n                    element: '#rank_comment',\n                    sid: $('.tab-nav .swiper-slide-active').data('sid'),\n                  })\n                })\n              }\n\n              window._jc_ping = window._jc_ping || []\n\n              $('.tab-pn .swiper-slide-active .item').each(function () {\n                const gameName = $(this).find('.tit').text().replace(/ /g, '')\n                const btns = $(this).find('.c4').text().trim()\n                if (btns === '') {\n                  $(this).find('.c4').remove()\n                  $(this).find('.c3').css('width', '720px')\n                }\n\n                const NumPieces = $(this).find('.tese-list li')\n\n                if (NumPieces.length < 3) {\n                  $(this).find('.c3').addClass('pieces2')\n                }\n\n                $(this)\n                  .find('.btn')\n                  .off('click.swiper')\n                  .on('click.swiper', function () {\n                    var button = $(this).text()\n                    _jc_ping.push([\n                      '_trackBlockClick',\n                      'vqMjYr',\n                      rankName + '-' + gameName + '-' + button,\n                    ])\n                  })\n\n                $(this)\n                  .find('a')\n                  .off('click.swiper2')\n                  .on('click.swiper2', function (e) {\n                    const $this = $(this)\n\n                    _jc_ping.push([\n                      '_trackBlockClick',\n                      'vqMjYr',\n                      rankName +\n                        '-' +\n                        gameName +\n                        ($this.parents('.tese-list').length > 0\n                          ? `-${$(this).text()}`\n                          : ``),\n                    ])\n                  })\n              })\n            }, 100)\n          },\n        },\n      })\n      var galleryTop = new Swiper(tabPn, {\n        spaceBetween: 10,\n        loop: true,\n        loopedSlides: 4,\n        navigation: {\n          nextEl: btnNext,\n          prevEl: btnPrev,\n        },\n        initialSlide: index,\n        on: {\n          // init: function () {\n          // console.log('init')\n          // if (index == 0) {\n          //   Follow.init($(`[data-swiper-slide-index=0]`))\n          // }\n          // },\n          slideChange: function () {\n            const activeSlideHash = tabNav\n              .find(`[data-swiper-slide-index=${this.realIndex}]`)\n              .attr('data-name')\n\n            if (\n              decodeURIComponent(location.hash).indexOf(activeSlideHash) == -1\n            ) {\n              location.hash = activeSlideHash\n            }\n\n            if (visitedIndex.indexOf(this.realIndex) > -1) {\n              return\n            }\n            loginTargetBtn.splice(0, loginTargetBtn.length)\n            Follow.init($(`[data-swiper-slide-index=${this.realIndex}]`))\n            visitedIndex.push(this.realIndex)\n          },\n        },\n      })\n      galleryTop.controller.control = galleryThumbs\n      galleryThumbs.controller.control = galleryTop\n    })\n  }\n  syncingSwiper('.js-details-tab')\n\n  if ($('.mod-list1').length > 0) {\n    setTimeout(function () {\n      $('.mod-list1').eq(0).addClass('active')\n      window.scrollTo(0, 0)\n    }, 200)\n  }\n\n  new Swiper('.nav-list', {\n    observer: true,\n    observeParents: true,\n    slidesPerView: 'auto',\n    loop: true,\n    direction: 'vertical',\n    slideToClickedSlide: true,\n    centeredSlides: true,\n  })\n  $('.nav-list .btn-nav').click(function () {\n    var navText = $(this).text()\n    var i = 1\n    $('.mod-list-hd .tit').each(function () {\n      if ($(this).text() == navText) {\n        $(this).parents().addClass('active')\n        $('html, body').animate(\n          {\n            scrollTop: $(this).parents().offset().top - 100,\n          },\n          50\n        )\n      } else {\n        $(this).parents().removeClass('active')\n      }\n      i++\n    })\n    $(this).addClass('active').siblings().removeClass('active')\n    $('.mod-list').not('.active').removeClass('active')\n  })\n}\n\n$(function () {\n  renderPage()\n\n  Passport.on(Passport.EVENTS.loginSuccess, () => {\n    //   渲染列表\n    visitedIndex.splice(0, visitedIndex.length)\n    console.log(index)\n    Follow.init($(`[data-swiper-slide-index=${index}]`))\n    visitedIndex.push(index)\n  })\n\n  Passport.on(Passport.EVENTS.logoutSuccess, () => {\n    //   还原状态\n    Follow.resetFollowStatus()\n  })\n})\n"],"sourceRoot":""}