"use strict";(self.webpackChunk_client_app_store=self.webpackChunk_client_app_store||[]).push([[5780],{16722:function(t,e,r){r.d(e,{Z:function(){return o}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"tabs_stage"},t._l(t.items,function(r){return e("a",{key:r.value,staticClass:"tabs_item",class:{tabs_item_Active:r.value===t.value},attrs:{href:"javascript:"},on:{click:function(e){return t.$emit("input",r.value)}}},[t._v("\n    "+t._s(r.name)+"\n  ")])}),0)};n._withStripped=!0;var o=(0,r(6080).Z)({props:{items:{type:Array,required:!0},value:{type:null,required:!0}}},n,[],!1,null,"00d029ec",null).exports},29397:function(t,e,r){r.d(e,{Z:function(){return a}});var n=function(){var t=this;return(0,t._self._c)("ListItemImpl",{attrs:{logo:t.item.img_url,name:t.item.head,desc:t.item.subhead,button:t.btn},on:{click:t.onClick,"btn-click":function(e){return t.$emit("btn-click",e)}}})};n._withStripped=!0;var o=r(11379),i={components:{ListItemImpl:r(48365).Z},mixins:[o.Z]},a=(0,r(6080).Z)(i,n,[],!1,null,null,null).exports},42068:function(t,e,r){r.d(e,{Z:function(){return u}});var n=function(){var t=this,e=t._self._c;return t.data?e(t.data.component,{tag:"component",attrs:{item:t.data.data,"auth-report-task":t.authReportTask},on:{click:function(e){return t.$emit("click",e)},"btn-click":function(e){return t.$emit("btn-click",e)}}}):t._e()};n._withStripped=!0;var o=r(46009),i=r(29397),a=r(35837),u=(0,r(6080).Z)({props:{item:{type:Object,required:!0},authReportTask:{type:Object,default:null}},computed:{data:function(){return this.item.app_data?{component:o.Z,data:this.item.app_data}:this.item.promotioncase_data?{component:a.Z,data:this.item.promotioncase_data}:this.item.hardware_data?{component:i.Z,data:this.item.hardware_data}:void 0}}},n,[],!1,null,null,null).exports},35837:function(t,e,r){r.d(e,{Z:function(){return a}});var n=function(){var t=this;return(0,t._self._c)("ListItemImpl",{attrs:{logo:t.item.logo,name:t.item.title,desc:t.desc,button:t.btn},on:{click:t.onClick,"btn-click":function(e){return t.$emit("btn-click",e)}}})};n._withStripped=!0;var o=r(96464),i={components:{ListItemImpl:r(48365).Z},mixins:[o.Z],props:{authReportTask:{type:Object,default:null}},methods:{getAuthReportTasks:function(){if(this.authReportTask)return[this.authReportTask]}}},a=(0,r(6080).Z)(i,n,[],!1,null,null,null).exports},43574:function(t,e,r){r.r(e),r.d(e,{default:function(){return v}});var n=function(){var t=this,e=t._self._c;return t.category?e("div",{staticClass:"app_stage",class:{app_Web:t.isWeb}},[e("header",{staticClass:"head"},[e("h3",{staticClass:"title"},[t._v(t._s(t.category.category_name))]),t._v(" "),t.subCategoryList.length>1?e("Tabs",{staticClass:"tabs",attrs:{items:t.subCategoryList,value:t.subCategoryId},on:{input:function(e){return t.onClickSubCategoryTab(e)}}}):t._e()],1),t._v(" "),e("div",{staticClass:"cnt"},[t.isNew?t._l(t.category.item,function(r,n){return e("ExposureObserverForOnce",{key:t.getItemKey(r),on:{exposure:function(e){return t.onExposureItem(r,n)}}},[e("ListItem",{staticClass:"item",attrs:{item:r},on:{click:function(e){return t.onClickItem(r,n)},"btn-click":function(e){return t.onClickItemBtn(r,e,n)}}})],1)}):t._l(t.appItemList,function(r,n){return e("ExposureObserverForOnce",{key:t.getItemKey(r,n),on:{exposure:function(e){return t.onExposureItem(r,n)}}},[e("AppListItem",{staticClass:"item",attrs:{item:r,"auth-report-task":t.getAuthReportTask(r,n)},on:{click:function(e){return t.onClickItem(r,n)},"btn-click":function(e){return t.onClickItemBtn(r,e,n)}}})],1)}),t._v(" "),t._l(10,function(t){return e("div",{key:"placeholder-".concat(t),staticClass:"placeholder"})})],2)]):t._e()};n._withStripped=!0;var o=r(63097),i=r(9084),a=r(16722),u=r(46009),c=r(42068),s=r(29585);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(s){r(s);return}u.done?e(c):Promise.resolve(c).then(n,o)}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){d(t,e,r[e])})}return t}function m(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r.push.apply(r,n)}return r})(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function y(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var b=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(u){i=[6,u],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},h={components:{Tabs:a.Z,AppListItem:u.Z,ListItem:c.Z,ExposureObserverForOnce:o.Z},asyncData:function(t){var e,r=t.$ctrl,n=t.query,o=t.redirect;return(e=function(){var t;return b(this,function(e){switch(e.label){case 0:return[4,r.home.fetchData()];case 1:return[(t=e.sent()).data.app_special_servicecorp_data,t.data.on_market_new_data].concat(y(t.data.app_list)).find(function(t){return Number(t.category_id)===Number(n.id)})||o({name:"/"}),[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){p(i,n,o,a,u,"next",t)}function u(t){p(i,n,o,a,u,"throw",t)}a(void 0)})})()},computed:{pageIndex:function(){switch(this.$route.name){case"/store/apps":return this.isDefaultTab?s.DH.SPECIFIC_TAB:s.DH.SPECIFIC_TAB_SUB;case"/store/home/category":return s.DH.TAB_MORE}return null},categoryName:function(){var t=this;return this.subCategoryId?this.subCategoryList.find(function(e){return e.value===t.subCategoryId}).name:this.category.category_name},isWeb:function(){return this.$clientEnv.web},isMng:function(){return this.$clientEnv.mng},isNew:function(){var t,e;return this.categoryId===Number(null===(t=this.data)||void 0===t?void 0:null===(e=t.on_market_new_data)||void 0===e?void 0:e.category_id)},state:function(){return this.$ctrl.home.state},data:function(){return this.state.data},categoryId:function(){return Number(this.$route.query.id)},category:function(){var t=this;return[this.data.app_special_servicecorp_data,this.data.on_market_new_data].concat(y(this.data.app_list)).find(function(e){return Number(e.category_id)===t.categoryId})},defaultCategoryTabConfig:function(){var t,e;return{name:null!==(e=null===(t=this.category)||void 0===t?void 0:t.default_sub_category_name)&&void 0!==e?e:r(11974).nI().t("全部"),value:0}},subCategoryList:function(){var t,e;return[this.defaultCategoryTabConfig].concat(y((null===(t=this.category)||void 0===t?void 0:null===(e=t.sub_category)||void 0===e?void 0:e.map(function(t){return{name:t.category_name,value:t.category_id}}))||[]))},subCategoryId:function(){return Number(this.$route.query.subId)||this.defaultCategoryTabConfig.value},appItemList:function(){var t=this,e=this.category.app_item;return this.subCategoryId&&!this.isDefaultTab?e.filter(function(e){return e.sub_category_id===t.subCategoryId}).sort(function(t,e){return t.sub_category_order-e.sub_category_order}):e},isDefaultTab:function(){return this.subCategoryId===this.defaultCategoryTabConfig.value}},methods:{onClickSubCategoryTab:function(t){t===this.defaultCategoryTabConfig.value?this.$router.replace({query:m(f({},this.$route.query),{subId:void 0})}):this.$router.replace({query:m(f({},this.$route.query),{subId:t})})},onClickItem:function(t,e){this.reportClick(s.R.detail,t,e)},onClickItemBtn:function(t,e,r){var n,o=(d(n={},i.Us.add,s.R.add),d(n,i.Us.recommend,s.R.recommend),n);o[e.type]&&this.reportClick(o[e.type],t,r)},reportClick:function(t,e,r){(0,s.FE)(this,{scene:t,pageindex:this.pageIndex,categoryname:this.categoryName,hasAddAppPrivilege:this.state.hasAddAppPrivilege,item:e,appnumber:r})},onExposureItem:function(t,e){(0,s.vM)(this,{scene:s.R.NONE,pageindex:this.pageIndex,categoryname:this.categoryName,hasAddAppPrivilege:this.state.hasAddAppPrivilege,item:t,appnumber:e},{maxReportTimes:1,tokenPrefix:"".concat(this.categoryId,"_").concat(this.subCategoryId)})},getAuthReportTask:function(t,e){return(0,s.nF)(this,{scene:s.R.NONE,pageindex:this.pageIndex,categoryname:this.categoryName,hasAddAppPrivilege:this.state.hasAddAppPrivilege,item:t,appnumber:e})},getItemKey:function(t){var e,r;return"apps_item_".concat(this.categoryId,"_").concat(this.subCategoryId,"_").concat((null==t?void 0:t.thirdapp_id)||(null==t?void 0:null===(e=t.app_data)||void 0===e?void 0:e.thirdapp_id)||(null==t?void 0:t.open_case_id)||(null==t?void 0:null===(r=t.promotion_case_data)||void 0===r?void 0:r.open_case_id))}}},v=(0,r(6080).Z)(h,n,[],!1,null,"51229e54",null).exports},29585:function(t,e,r){r.d(e,{DH:function(){return a},FE:function(){return f},R:function(){return i},nF:function(){return y},vM:function(){return m}});var n,o,i,a,u=r(86055),c=r(34176),s=r(23034);function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,o;n=t,o=r[e],e in n?Object.defineProperty(n,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[e]=o})}return t}function p(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r.push.apply(r,n)}return r})(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function d(t,e){var r,n=e.scene,o=e.pageindex,i=e.categoryname,a=e.categorynumber,s=e.appnumber,l=e.item,p=e.hasAddAppPrivilege,d=e.clickType,f={thirdappid:(null==(r=(null==l?void 0:l.app_data)||(null==l?void 0:l.thirdapp_id)&&l)?void 0:r.thirdapp_id)||0,adsType:(null==r?void 0:r.ad_flag)==="".concat(u.NJ.RECOMMEND_AD_FLAG_CATEGORY)?1:2};return{key:80001507,value:["%Vid","%Platform","%OS","%Version","%ClientIP","%ClientTime","%corpid","%gid",p?1:0,n,o,f.thirdappid,i,s,f.adsType,d,(0,c.pL)(t),a||0]}}function f(t,e){t.$reportOsslog(d(t,p(l({},e),{clickType:2})))}function m(t,e,r){(0,s.kn)(t,r,d(t,p(l({},e),{clickType:1})))}function y(t,e){return{type:"osslog",data:d(t,p(l({},e),{clickType:3}))}}(n=i||(i={}))[n.NONE=0]="NONE",n[n.detail=1]="detail",n[n.add=2]="add",n[n.recommend=3]="recommend",n[n.more=4]="more",(o=a||(a={}))[o.TAB_HOME=1]="TAB_HOME",o[o.TAB_MORE=2]="TAB_MORE",o[o.SPECIFIC_TAB=3]="SPECIFIC_TAB",o[o.SPECIFIC_TAB_SUB=4]="SPECIFIC_TAB_SUB"},92021:function(t){t.exports=function(t,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof t||0===t.length)return i;var a=/\+/g;t=t.split(r);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var s=0;s<c;++s){var l,p,d,f,m=t[s].replace(a,"%20"),y=m.indexOf(n);(y>=0?(l=m.substr(0,y),p=m.substr(y+1)):(l=m,p=""),d=decodeURIComponent(l),f=decodeURIComponent(p),Object.prototype.hasOwnProperty.call(i,d))?e(i[d])?i[d].push(f):i[d]=[i[d],f]:i[d]=f}return i};var e=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},95268:function(t){var e=function(t){switch(void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,a,u){return(i=i||"&",a=a||"=",null===t&&(t=void 0),"object"==typeof t)?n(o(t),function(o){var u=encodeURIComponent(e(o))+a;return r(t[o])?n(t[o],function(t){return u+encodeURIComponent(e(t))}).join(i):u+encodeURIComponent(e(t[o]))}).join(i):u?encodeURIComponent(e(u))+a+encodeURIComponent(e(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function n(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var o=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},55517:function(t,e,r){e.decode=e.parse=r(92021),e.encode=e.stringify=r(95268)}}]);