"use strict";(self.webpackChunk_client_app_store=self.webpackChunk_client_app_store||[]).push([[7313],{777:function(){},6106:function(t,e,r){r.r(e),r.d(e,{default:function(){return O}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"home_stage",class:{home_Web:t.isWeb,home_Mng:t.isMng}},[t.showMemberAppBannerSwiper?e("MemberAppBannerSwiper",{attrs:{data:t.data.member_app_banner_category,from:"home"}}):t._e(),t._v(" "),t._l(t.categoryList,function(n){return e("section",{key:n.category_id,staticClass:"sect"},[e("header",{staticClass:"head"},[e("div",{staticClass:"head_cnt"},[e("div",{staticClass:"title"},[t._v("\n          "+t._s(n.category_name)+"\n        ")]),t._v(" "),n.category_slogan?e("div",{staticClass:"desc"},[t._v("\n          "+t._s(n.category_slogan)+"\n        ")]):t._e()]),t._v(" "),e("router-link",{staticClass:"more",attrs:{to:t.getCategoryMoreRoute(n)}},[e("p",{on:{click:function(e){return t.onClickCategory(n)}}},[t._v("\n          "+(n.isRecommend?r(11974).nI().t("查看更多"):r(11974).nI().t("查看全部"))+"\n          "),e("IconArrowRight",{staticClass:"sect_more_icon"})],1)])],1),t._v(" "),e("section",{staticClass:"cnt"},[n.isGeneric?t._l(n.item.slice(0,12),function(r){return e("ExposureObserverForOnce",{key:r.product_id,on:{exposure:function(e){return t.onExposureItem(r)}}},[e("ListItem",{staticClass:"item",attrs:{item:r},on:{click:function(e){return t.onClickGenericItem(n,r)},"btn-click":function(e){return t.onClickGenericItemBtn(n,r,e)}}})],1)}):n.isPromotionCase?t._l(n.case_item.slice(0,12),function(r){return e("ExposureObserverForOnce",{key:r.open_case_id,on:{exposure:function(e){return t.onExposureItem(r)}}},[e("PromotionCaseListItem",{staticClass:"item",attrs:{item:r},on:{click:function(e){return t.onClickCaseItem(r)}}})],1)}):t._l(n.app_item.slice(0,12),function(r,o){return e("ExposureObserverForOnce",{key:r.thirdapp_id,on:{exposure:function(e){return t.onExposureCategoryItem(n,r,o)}}},[e("AppListItem",{staticClass:"item",attrs:{item:r,"auth-report-task":t.getAuthReportTask(n,r,o)},on:{click:function(e){return t.onClickAppItem(n,r,o)},"btn-click":function(e){return t.onClickAppItemBtn(n,r,e,o)}}})],1)}),t._v(" "),t._l(10,function(t){return e("div",{key:"placeholder-".concat(t),staticClass:"placeholder"})})],2)])})],2)};n._withStripped=!0;var o=r(8275),i=r.n(o),a=r(63097),c=r(9084),s=r(65165),p=r(46009),u=r(42068),d=r(35837),l=r(34176),m=r(29585),f=r(23034);function y(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 _(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(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){_(t,e,r[e])})}return t}function g(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 b(t){return function(t){if(Array.isArray(t))return y(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 y(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 y(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 v={components:{IconArrowRight:i(),ListItem:u.Z,AppListItem:p.Z,PromotionCaseListItem:d.Z,ExposureObserverForOnce:a.Z,MemberAppBannerSwiper:s.Z},computed:{isWeb:function(){return this.$clientEnv.web},isMng:function(){return this.$clientEnv.mng},state:function(){return this.$ctrl.home.state},data:function(){return this.state.data},categoryIdOrder:function(){return this.data.category_id_order},categoryList:function(){var t,e,r=this,n=[g(h({},this.data.app_special_servicecorp_data),{isSpecial:!0}),g(h({},this.data.on_market_new_data),{isNew:!0,isGeneric:!0}),g(h({},this.data.promotioncase_data),{isPromotionCase:!0}),g(h({},this.data.industry_recommend),{isRecommend:!0})].concat(b(this.data.app_list)).map(function(t){return r.handleOnTopInfo(t)}).filter(function(t){var e,r,n;return!!t&&(t.isGeneric?null===(r=t.item)||void 0===r?void 0:r.length:t.isPromotionCase?null===(n=t.case_item)||void 0===n?void 0:n.length:null==t?void 0:null===(e=t.app_item)||void 0===e?void 0:e.length)});return[null===(t=this.data.on_market_new_data)||void 0===t?void 0:t.category_id,null===(e=this.data.industry_recommend)||void 0===e?void 0:e.category_id].concat(b(this.categoryIdOrder)).filter(Boolean).map(function(t){return n.find(function(e){return e.category_id===t})}).filter(Boolean)},showMemberAppBannerSwiper:function(){var t,e,r;return(null===(t=this.data)||void 0===t?void 0:null===(e=t.member_app_banner_category)||void 0===e?void 0:null===(r=e.banner)||void 0===r?void 0:r.length)>0}},mounted:function(){this.state.hasAddAppPrivilege?this.reportStat("ad_apptab_show"):this.reportStat("mem_apptab_show")},methods:{handleOnTopInfo:function(t){var e;if(null==t?void 0:null===(e=t.on_top_info)||void 0===e?void 0:e.on_top_thirdapp_id){var r=t.on_top_info.on_top_thirdapp_id;if(r.length>0){var n=t.app_item.reduce(function(t,e){return t[e.thirdapp_id]=e,t},{}),o=r.map(function(t){return n[t]});return g(h({},t),{app_item:o})}return null}return t},onClickGenericItem:function(t,e){if(e.app_data)return this.onClickAppItem(t,e)},onClickGenericItemBtn:function(t,e,r){if(e.app_data)return this.onClickAppItemBtn(t,e,r)},onClickAppItem:function(t,e,r){t.isNew&&this.reportStat("apptab_newapp_into",{strid:e.thirdapp_id}),t.isSpecial&&this.reportStat("apptab_thirdcorp_area_into",{strid:e.thirdapp_id}),"number"==typeof r?this.reportCategoryClick(t,m.R.detail,e,r):this.reportClick(t,1,e)},onClickCaseItem:function(t){this.reportStat("apptab_solu_into",{strid:t.open_case_id})},onClickAppItemBtn:function(t,e,r,n){r.type===c.Us.add&&(t.isNew&&this.reportStat("apptab_newapp_add",{strid:e.thirdapp_id}),t.isSpecial&&this.reportStat("apptab_thirdcorp_area_add",{strid:e.thirdapp_id}));var o=(_(i={},c.Us.add,2),_(i,c.Us.recommend,3),i);if(o[r.type]){if("number"==typeof n){var i,a,s=(_(a={},c.Us.add,m.R.add),_(a,c.Us.recommend,m.R.recommend),a);this.reportCategoryClick(t,s[r.type],e,n)}else this.reportClick(t,o[r.type],e)}},onClickCategory:function(t){this.reportCategoryClick(t,m.R.more,t,0)},reportClick:function(t,e,r){(0,l.rj)(this,this.state.hasAddAppPrivilege?1:0,1,t.category_name,e,null==r?void 0:r.thirdapp_id)},reportStat:function(t,e){this.$reportStat(h({key:this.$clientEnv.statKey,item:t},e))},onExposureItem:function(t){(0,f.qt)(this,{item:t,pageindex:f.XQ.CATEGORY_LIST_ITEM})},reportCategoryClick:function(t,e,r,n){(0,m.FE)(this,{scene:e,pageindex:m.DH.TAB_HOME,categoryname:t.category_name,categorynumber:this.getCategoryIndex(t),hasAddAppPrivilege:this.state.hasAddAppPrivilege,item:r,appnumber:n})},onExposureCategoryItem:function(t,e,r){(0,m.vM)(this,{scene:m.R.NONE,pageindex:m.DH.TAB_HOME,categoryname:t.category_name,categorynumber:this.getCategoryIndex(t),hasAddAppPrivilege:this.state.hasAddAppPrivilege,item:e,appnumber:r},{maxReportTimes:1,tokenPrefix:"".concat(t.category_id)})},getAuthReportTask:function(t,e,r){return(0,m.nF)(this,{scene:m.R.NONE,pageindex:m.DH.TAB_HOME,categoryname:t.category_name,categorynumber:this.getCategoryIndex(t),hasAddAppPrivilege:this.state.hasAddAppPrivilege,item:e,appnumber:r})},getCategoryIndex:function(t){return this.categoryIdOrder.findIndex(function(e){return e===t.category_id})+1},getCategoryMoreRoute:function(t){return t.isPromotionCase?{name:this.isMng?"/store/industryCase/list":"/store/home/industryCase"}:t.isRecommend?{name:"/store/home/recommend"}:{name:"/store/home/category",query:{id:t.category_id}}}}},O=(0,r(6080).Z)(v,n,[],!1,null,"9fbbdcbc",null).exports},29585:function(t,e,r){r.d(e,{DH:function(){return a},FE:function(){return m},R:function(){return i},nF:function(){return y},vM:function(){return f}});var n,o,i,a,c=r(86055),s=r(34176),p=r(23034);function u(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 d(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 l(t,e){var r,n=e.scene,o=e.pageindex,i=e.categoryname,a=e.categorynumber,p=e.appnumber,u=e.item,d=e.hasAddAppPrivilege,l=e.clickType,m={thirdappid:(null==(r=(null==u?void 0:u.app_data)||(null==u?void 0:u.thirdapp_id)&&u)?void 0:r.thirdapp_id)||0,adsType:(null==r?void 0:r.ad_flag)==="".concat(c.NJ.RECOMMEND_AD_FLAG_CATEGORY)?1:2};return{key:80001507,value:["%Vid","%Platform","%OS","%Version","%ClientIP","%ClientTime","%corpid","%gid",d?1:0,n,o,m.thirdappid,i,p,m.adsType,l,(0,s.pL)(t),a||0]}}function m(t,e){t.$reportOsslog(l(t,d(u({},e),{clickType:2})))}function f(t,e,r){(0,p.kn)(t,r,l(t,d(u({},e),{clickType:1})))}function y(t,e){return{type:"osslog",data:l(t,d(u({},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"},34846:function(t,e,r){r(59651),r(9605),r(53319),r(63648),r(777)},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 c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var s=t.length;c>0&&s>c&&(s=c);for(var p=0;p<s;++p){var u,d,l,m,f=t[p].replace(a,"%20"),y=f.indexOf(n);(y>=0?(u=f.substr(0,y),d=f.substr(y+1)):(u=f,d=""),l=decodeURIComponent(u),m=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(i,l))?e(i[l])?i[l].push(m):i[l]=[i[l],m]:i[l]=m}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,c){return(i=i||"&",a=a||"=",null===t&&(t=void 0),"object"==typeof t)?n(o(t),function(o){var c=encodeURIComponent(e(o))+a;return r(t[o])?n(t[o],function(t){return c+encodeURIComponent(e(t))}).join(i):c+encodeURIComponent(e(t[o]))}).join(i):c?encodeURIComponent(e(c))+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)}}]);