1(window.webpackJsonp=window.webpackJsonp||[]).push([[215],{1134:function(e,t,n){},1135:function(e,t,n){},1136:function(e,t,n){},1145:function(e,t,n){},1146:function(e,t,n){},1148:function(e,t,n){},1149:function(e,t,n){},5186:function(e,t,n){"use strict";var r=n(1134);n.n(r).a},5187:function(e,t,n){"use strict";var r=n(1135);n.n(r).a},5188:function(e,t,n){"use strict";var r=n(1136);n.n(r).a},5197:function(e,t,n){"use strict";var r=n(1145);n.n(r).a},5198:function(e,t,n){"use strict";var r=n(1146);n.n(r).a},5200:function(e,t,n){"use strict";var r=n(1148);n.n(r).a},5201:function(e,t,n){"use strict";var r=n(1149);n.n(r).a},531:function(e,t,n){"use strict";n.r(t);n(12),n(11),n(45),n(15);var r=n(1),o=n(7),l=(n(16),n(21),n(106),n(31),n(50),n(9),n(8),n(10),n(17),n(18),n(3)),c=(n(14),n(5)),d=n(0),h=n(26),f=n(6),m=n(2197),_=n.n(m),v=n(2198),y=n.n(v),C=n(2199),S=n.n(C),x=n(2200),G=n.n(x),k=n(2201),A=n.n(k),L=n(2202),w=n.n(L);function D(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function I(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?D(Object(source),!0).forEach((function(t){Object(l.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):D(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var R=[75,24,125,141,37],$=[5,1,4,6,3,2],O={1:_.a,2:y.a,3:S.a,4:G.a,5:A.a,6:w.a},M={1:{zh:"äºæ´²",en:"Asia"},2:{zh:"åç¾æ´²",en:"North America"},3:{zh:"åç¾æ´²",en:"South America"},4:{zh:"欧洲",en:"Europe"},5:{zh:"å¤§æ´æ´²",en:"Oceania"},6:{zh:"éæ´²",en:"Africa"}},N={name:"DdMuiltCountrySelectDialog",components:{},props:{isNeedRegion:{type:Boolean,default:!0},dropdownDisabled:{type:Boolean,default:!1},countryList:{type:Array,default:function(){return[]}},hotCountryList:{type:Array,default:function(){return[]}},historyCountryList:{type:Array,default:function(){return[]}},withoutOnlineCountryList:{type:Array,default:function(){return[]}},onlineAndInactiveList:{type:Array,default:function(){return[]}},downList:{type:Array,default:function(){return[]}},margin:{type:String,default:"0"},upCountryIds:{type:[Boolean,Array],default:!1},onlineCountryAllStatus:{type:Array,default:function(){return[]}},countryStatus:{type:Array,default:function(){return[]}},countryGroupSort:{type:Array,default:function(){return[]}},isDetailHead:{type:Boolean,default:!1},localstorageName:{type:String,default:""},placeholder:{type:String,default:d.b.t("components_business_dropmenu_ddcountrydropdown_2577")},singleLogo:{type:Boolean,default:!1},iconColor:{type:String,default:"#B8BBCC"},nameColor:{type:String,default:"#111111"},defaultCountry:{type:Object,default:function(){}},defaultCountryId:{type:[Number,String],default:75},defaultSelectedIds:{type:Array,default:function(){return[]}},defaultSelectedRegions:{type:Array,default:function(){return[]}},regionSelectDialog:{type:Boolean,default:!1},getCountry:{type:Function,default:function(){}},reduceCountry:{type:Array,default:function(){return[]}},reduceHistoryCountry:{type:Array,default:function(){return[]}},placeHolder:{type:String,default:d.b.t("components_business_dropmenu_ddcountrydropdown_2577")},hotCountry:{type:Array,default:function(){return[75,125,141,24,26,37]}},placement:{type:String,default:"bottom"},isNeedAll:{type:Boolean,default:!0},isBidding:{type:Boolean,default:!1},isGoogle:{type:Boolean,default:!1},hasBg:{type:Boolean,default:!1},componentCountry:{type:[Array,Boolean],default:!1},countryDisabled:{type:Boolean,default:!1},triggerType:{type:String,default:"click"},countryOnlyShow:{type:Boolean,default:!1},customCountry:{type:Array,default:function(){return[]}},isNeedAppAll:{type:Boolean,default:!1},countryDropClass:{type:String,default:""},addCountrySelect:{type:Object,default:function(){return{}}},needHistory:{type:Boolean,default:!0},upIcon:{type:String,default:"Dianxiala-1"},downIcon:{type:String,default:"Dianxiala1"},isControlList:{type:Boolean,default:!1},historyHasGlobal:{type:Boolean,default:!1},mustLogin:{type:Boolean,default:!1},needHot:{type:Boolean,default:!0},monitoredCountry:{type:Array,default:function(){return[]}},defaultSelectTab:{type:Number,default:1},allowCountryIds:{type:Array,default:function(){return[]}},lockHint:{type:Object,default:function(){}},lockTips:{type:Object,default:function(){}},countryAllByMarket:{type:Number,default:0},labelName:{type:String,default:d.b.t("assets_const_chartmoduletype_32")},isAll:{type:Boolean,default:!1},filterData:{type:Object,default:function(){return{}}},fullName:{type:String,default:d.b.t("assets_const_comission_78")},defaultAlias:{type:Boolean,default:!1},isHideLabel:{type:Boolean,default:!1},labelTip:{type:String,default:""},isChangeBg:{type:Boolean,default:!1},title:{type:String,default:""},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},disabledCountryIds:{type:Array,default:function(){return[]}},historyKeyCountry:{type:String,default:"historyMuiltCountrySelect"},historyKeyRegion:{type:String,default:"historyRegionSelect"},types:{type:Number,default:3},maxSelectedCount:{type:Number,default:0}},data:function(){return{areaTypeSelect:1,singleName:!1,dialogVisible:!1,search:"",selectTab:1,selectMode:1,defaultValue:[],selectedCountries:[],selectedRegions:[],groupSelectedCountries:[],activeSubRegions:{},rightTab:"select",groupEditMode:"list",groupList:[],editingGroup:{id:"",name:"",countries:[]},mainSelectionBackup:[],deletePopoverVisible:!1,editingIndex:0,lastClickedGroup:null,createGroupDialogVisible:!1,newGroupName:"",internalHistoryCountryList:[],internalHistoryRegionList:[]}},computed:I(I({countryListLengthShow:function(){var e=this;return this.countryListComputed.filter((function(t){return!([-1,999,99999].includes(t.id)||e.lockTips&&e.lockTips[t.id])})).length},isGroupEditMode:function(){return"group"===this.rightTab&&"list"!==this.groupEditMode},isConfirmAndCreateDisabled:function(){return 0===this.selectedCountries.length||!!this.lastClickedGroup&&this.selectedCountries.map((function(e){return e.id})).sort((function(a,b){return a-b})).join(",")===this.lastClickedGroup.countries.map((function(e){return e.id})).sort((function(a,b){return a-b})).join(",")}}
1,Object(c.c)("base",["countryAllList","countryMap","countryGroup"])),{},{continentSubRegionsMap:function(){var map={};return h.a.forEach((function(area){map[area.continent_id]||(map[area.continent_id]=[]),map[area.continent_id].push(area)})),Object.keys(map).forEach((function(e){map[e].sort((function(a,b){return 0===a.region_id?-1:0===b.region_id?1:a.region_id-b.region_id}))})),map},processedHotCountryList:function(){var e=this,t=[];t=this.hotCountryList&&this.hotCountryList.length?this.hotCountryList:R.map((function(t){return e.countryMap[t]})).filter((function(e){return!!e}));var n=new Set(this.countryListComputed.map((function(e){return e.id})));return t.filter((function(t){return!e.isDisabledCountry(t.id)&&n.has(t.id)&&!e.reduceCountry.includes(t.id)}))},currentHistoryList:function(){return 1===this.selectMode?this.internalHistoryCountryList:this.internalHistoryRegionList},showHistoryCountryList:function(){var e=this,t=this.currentHistoryList;this.historyCountryList&&this.historyCountryList.length&&(t=this.historyCountryList);var n=new Set(this.countryListComputed.map((function(e){return e.id})));return t=(t=t.filter((function(t){return!!t.group_name||!e.isDisabledCountry(t.id)&&n.has(t.id)&&!e.reduceCountry.includes(t.id)}))).map((function(t){return t.group_name?t:e.countryMap[t.id]}))},edition:function(){return this.$store.state.vip.edition},tagList:function(){return[{name:"".concat(this.$t("pages_lang_app_appdetail_header_country_20251105_02")," (").concat(this.withoutOnlineCountryList&&this.withoutOnlineCountryList.length||0,")"),value:1},{name:"".concat(this.$t("pages_lang_app_new_country_20260209_18")," (").concat(this.onlineAndInactiveList&&this.onlineAndInactiveList.length||0,")"),value:2},{name:"".concat(this.$t("pages_lang_app_new_country_20260209_19")," (").concat(this.downList&&this.downList.length||0,")"),value:3}]},isEn:function(){return"en"===this.$i18n.locale},hotFilterCountryList:function(){var e=this,t=this,n=this.search,r=this.countryListComputed,o=this.reduceCountry,l=[];return r.forEach((function(n,r){var o={},c=e.onlineCountryAllStatus.find((function(e){return e.country_id===n.id}))&&3===e.onlineCountryAllStatus.find((function(e){return e.country_id===n.id})).status_id?1:0;o.name=n.name,o.id=n.id,o.logo=n.logo,o.area=t.filterArea(n.continent_id),o.areaSort=t.filterArea(n.continent_id,!0),o.isDown=c,o.hotNum=t.countryGroupSort.find((function(e){return e[0]===n.id}))&&t.countryGroupSort.find((function(e){return e[0]===n.id}))[1]||0,l.push(I(I({},n),o))})),l.filter((function(e,t){var r=n.toLowerCase().trim();return o.length?!o.includes(e.id)&&(e.search&&e.search.toLowerCase()||"").includes(r):e.name.toLowerCase().includes(r)||(e.search&&e.search.toLowerCase()||"").includes(r)})).sort((function(a,b){return b.hotNum-a.hotNum}))},groupedCountries:function(){var e=this,t=this,n=this.search,r=this.countryListComputed,o=this.reduceCountry,l=[];r.forEach((function(n,r){var o={},c=e.onlineCountryAllStatus.find((function(e){return e.country_id===n.id}))&&3===e.onlineCountryAllStatus.find((function(e){return e.country_id===n.id})).status_id?1:0;o.name=n.name,o.id=n.id,o.logo=n.logo,o.continent_id=n.continent_id,o.area=t.filterArea(n.continent_id),o.areaSort=t.filterArea(n.continent_id,!0),o.isDown="list"===e.groupEditMode&&c,l.push(I(I({},n),o))}));var c=l.filter((function(e,t){var r=n.toLowerCase().trim();return o.length?!o.includes(e.id)&&(e.search&&e.search.toLowerCase()||"").includes(r):e.name.toLowerCase().includes(r)||(e.search&&e.search.toLowerCase()||"").includes(r)})),d=[],h={};return c.forEach((function(e){var t=e.continent_id;h[t]||(h[t]=[]),h[t].push(e)})),Object.keys(h).forEach((function(e){var n=h[e],label=t.filterArea(Number(e)),r=t.filterArea(Number(e),!0);d.push({label:label,options:n,sort:r,continent_id:Number(e)})})),d.sort((function(a,b){return b.sort-a.sort})),d},countryListComputed:function(){if(this.isGroupEditMode)return this.countryAllList;if(this.isDetailHead){var e=this[{1:"withoutOnlineCountryList",2:"onlineAndInactiveList",3:"downList"}[this.areaTypeSelect]]||[];return 1===this.areaTypeSelect?e:this.countryAllList.filter((function(t){return e.some((function(e){return e.country_id===t.id}))}))}return this.countryList},login:function(){return this.$store.state.login},customizedBgCount:function(){return this.$store.state.vip.vipInfo.customized_bg_count},isAllHotSelected:function(){var e=this;return!!this.processedHotCountryList.length&&this.processedHotCountryList.every((function(t){return e.isSelected(t.id)}))},showRegionSelect:function(){return this.isNeedRegion&&this.regionSelectDialog&&!this.isGroupEditMode},currentSelectedCount:function(){return 2===this.selectMode?this.selectedRegions.length:this.selectedCountries.length},isOverMaxSelectedCount:function(){return 1===this.selectMode&&this.maxSelectedCount>0&&this.currentSelectedCount>this.maxSelectedCount},isMaxSelectedCountReached:function(){return 1===this.selectMode&&!this.isGroupEditMode&&this.maxSelectedCount>0&&this.currentSelectedCount>=this.maxSelectedCount},remainingCountrySelectCount:function(){return 1!==this.selectMode||this.isGroupEditMode||this.maxSelectedCount<=0?1/0:Math.max(this.maxSelectedCount-this.currentSelectedCount,0)},searchPlaceholder:function(){return 2===this.selectMode?this.$t("components_business_dropmenu_ddcountrydropdown_20260428_01"):this.$t("components_business_dropmenu_ddcountrydropdown_2575")}
1,regionGroups:function(){var e=this,t=f.Bb.regionList,n=f.Bb.areaMap;return t.slice(1).map((function(t){var r=(n[t.value]&&n[t.value].list&&n[t.value].list.length?n[t.value].list:[{id:0,value:0,name:"".concat(e.$t("pages_lang_upup_aso_0403_11")).concat(["en"].includes(e.$i18n.locale)?" ":"").concat(t.name),label:t.name,logo:t.logo}]).map((function(n){return I(I({},n),{},{id:Number(n.id),value:Number(n.value),name:0===Number(n.id)?e.getRegionAllName(t.value,n.name):n.name,label:0===Number(n.id)?e.getRegionAllName(t.value,n.label||n.name):n.label})}));return I(I({},t),{},{id:Number(t.value),logo:O[Number(t.value)],children:r})})).sort((function(a,b){return $.indexOf(a.id)-$.indexOf(b.id)}))},filteredRegionGroups:function(){var e=this.search.toLowerCase().trim();return e?this.regionGroups.map((function(t){var n=(t.name||"").toLowerCase(),r=t.children.filter((function(t){var r=(t.name||"").toLowerCase(),o=(t.search||"").toLowerCase();return n.includes(e)||r.includes(e)||o.includes(e)}));return I(I({},t),{},{children:r})})).filter((function(e){return e.children.length})):this.regionGroups}}),watch:{visible:function(e){this.dialogVisible=e},dialogVisible:function(e){var t=this;this.$emit("update:visible",e),e&&(this.search="",this.defaultSelectedIds&&this.defaultSelectedIds.length?this.selectedCountries=this.defaultSelectedIds.map((function(e){return t.countryMap[e]})).filter(Boolean):this.selectedCountries=[],this.defaultSelectedRegions&&this.defaultSelectedRegions.length?this.selectedRegions=this.defaultSelectedRegions.map((function(e){return t.createRegionItem(e[0],e[1])})).filter(Boolean):this.selectedRegions=[],this.groupSelectedCountries=[],this.rightTab="select",this.groupEditMode="list",this.selectMode=this.showRegionSelect&&2===this.defaultSelectTab?2:1,this.loadGroupsFromStorage(),this.loadHistory())}},methods:{changeSelectMode:function(e){this.selectMode!==e&&(this.selectMode=e,2===e&&(this.rightTab="select",this.groupEditMode="list"),this.search="")},toggleRightTab:function(e){2===this.selectMode&&"group"===e||this.rightTab!==e&&(this.groupEditMode="list",this.rightTab=e)},enterCreateGroup:function(){this.groupList.length>=10||(this.groupEditMode="create",this.editingGroup={id:"",name:"",countries:[]},this.groupSelectedCountries=[])},enterEditGroup:function(e,t){this.groupEditMode="edit",this.editingIndex=t,this.editingGroup=JSON.parse(JSON.stringify(e)),this.groupSelectedCountries=Object(o.a)(this.editingGroup.countries)},backToGroupList:function(){this.groupEditMode="list",this.groupSelectedCountries=[]},saveGroup:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.editingGroup.group_name.trim()){t.next=2;break}return t.abrupt("return");case 2:if(e.groupSelectedCountries.length){t.next=4;break}return t.abrupt("return");case 4:if(n=I(I({},e.editingGroup),{},{countries:Object(o.a)(e.groupSelectedCountries)}),"create"!==e.groupEditMode){t.next=10;break}return t.next=8,e.$store.dispatch("base/setCountryGroup",{type:0,group_name:n.group_name,country_list:n.countries.map((function(e){return e.id}))});case 8:t.next=15;break;case 10:return r=e.groupList[e.editingIndex],l={type:1,group_name:r.gourp_id,country_list:n.countries.map((function(e){return e.id}))},r.group_name!==n.group_name&&(l.new_group_name=n.group_name),t.next=15,e.$store.dispatch("base/setCountryGroup",l);case 15:e.loadGroupsFromStorage(),e.backToGroupList();case 17:case"end":return t.stop()}}),t)})))()},confirmDeleteGroup:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.deletePopoverVisible=!1,!e.editingGroup||!e.editingGroup.group_name){t.next=6;break}return t.next=4,e.$store.dispatch("base/setCountryGroup",{type:3,group_name:e.editingGroup.gourp_id});case 4:e.loadGroupsFromStorage(),e.backToGroupList();case 6:case"end":return t.stop()}}),t)})))()},loadGroupsFromStorage:function(){var e=this;this.$store.dispatch("base/getCountryGroup").then((function(t){(t=t||[]).forEac
1h((function(t){t.countries=t.list.map((function(t){return e.countryAllList.find((function(e){return e.id===t}))})).filter(Boolean)})),e.groupList=t,e.cleanHistoryGroups(e.groupList)}))},cleanHistoryGroups:function(e){if(this.internalHistoryCountryList.length){var t=!1,n=e.map((function(g){return g.time})),r=this.internalHistoryCountryList.length;this.internalHistoryCountryList=this.internalHistoryCountryList.filter((function(e){return!e.group_name||n.includes(e.time)})),this.internalHistoryCountryList.length!==r&&(t=!0),this.internalHistoryCountryList.forEach((function(n){if(n.group_name){var r=e.find((function(g){return g.time===n.time}));r&&r.group_name!==n.group_name&&(n.group_name=r.group_name,t=!0)}})),t&&localStorage.setItem(this.historyKeyCountry,JSON.stringify(this.internalHistoryCountryList))}},loadHistory:function(){try{this.internalHistoryCountryList=JSON.parse(localStorage.getItem(this.historyKeyCountry)||"[]"),this.internalHistoryRegionList=JSON.parse(localStorage.getItem(this.historyKeyRegion)||"[]")}catch(e){this.internalHistoryCountryList=[],this.internalHistoryRegionList=[]}},saveHistory:function(e,t){var n=1===this.selectMode,r=n?this.internalHistoryCountryList:this.internalHistoryRegionList,o=n?this.historyKeyCountry:this.historyKeyRegion;if(n){if(t){r.unshift(t);var l=new Set;r=r.filter((function(e){var t=e.time||e.id;return!l.has(t)&&(l.add(t),!0)}))}else if(1===e.length){var c=e[0];r.unshift(c);var d=new Set;r=r.filter((function(e){if(e.group_name)return!0;var t=e.id;return!d.has(t)&&(d.add(t),!0)}))}}else if(1===e.length){var h=e[0];r.unshift(h);var f=new Set;r=r.filter((function(e){var t=e.id;return!f.has(t)&&(f.add(t),!0)}))}r.length>20&&(r=r.slice(0,20)),n?this.internalHistoryCountryList=r:this.internalHistoryRegionList=r,localStorage.setItem(o,JSON.stringify(r))},isAllGroupSelected:function(e){var t=this,n=this.getFilteredCountries(e.options||[],e.continent_id).filter((function(e){return!t.isDisabledCountry(e.id)}));return!!n.length&&n.every((function(e){return t.isSelected(e.id)}))},handleHistoryClick:function(e){e.group_name?this.applyGroupSelection(e):this.toggleCountry(e)},toggleSelectAllHot:function(){var e=this;if(this.isAllHotSelected){var t=this.processedHotCountryList.map((function(e){return e.id}));this.setActiveSelectedCountries(this.getActiveSelectedCountries().filter((function(e){return!t.includes(e.id)}
1)))}else{var n=this.processedHotCountryList.filter((function(t){return!e.isSelected(t.id)&&!e.isDisabledCountry(t.id)}));this.setActiveSelectedCountries([].concat(Object(o.a)(this.getActiveSelectedCountries()),Object(o.a)(this.limitNewSelectedCountries(n))))}},toggleSelectAllGroup:function(e){var t=this,n=this.getFilteredCountries(e.options||[],e.continent_id);if(this.isAllGroupSelected(e)){var r=n.map((function(e){return e.id}));this.setActiveSelectedCountries(this.getActiveSelectedCountries().filter((function(e){return!r.includes(e.id)})))}else{var l=n.filter((function(e){return!t.isSelected(e.id)&&!t.isDisabledCountry(e.id)}));this.setActiveSelectedCountries([].concat(Object(o.a)(this.getActiveSelectedCountries()),Object(o.a)(this.limitNewSelectedCountries(l))))}},isSelected:function(e){return this.getActiveSelectedCountries().some((function(t){return t.id===e}))},isSelectedHistory:function(e){var t=this.getActiveSelectedCountries();return e.group_name?t.length===e.countries.length&&t.map((function(e){return e.id})).sort((function(a,b){return a-b})).join(",")===e.countries.map((function(e){return e.id})).sort((function(a,b){return a-b})).join(","):this.isSelected(e.id)},toggleCountry:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.$emit("country-click",e),!t.isDisabledCountry(e.id)){n.next=3;break}return n.abrupt("return");case 3:if(r=t.getActiveSelectedCountries(),!((o=r.findIndex((function(t){return t.id===e.id})))>-1)){n.next=9;break}r.splice(o,1),n.next=12;break;case 9:if(!t.isMaxSelectedCountReached){n.next=11;break}return n.abrupt("return");case 11:r.push(e);case 12:t.setActiveSelectedCountries(r);case 13:case"end":return n.stop()}}),n)})))()},removeCountry:function(e){var t=this.getActiveSelectedCountries(),n=t.findIndex((function(t){return t.id===e.id}));n>-1&&t.splice(n,1),this.setActiveSelectedCountries(t)},clearSelected:function(){2!==this.selectMode?this.setActiveSelectedCountries([]):this.selectedRegions=[]},handleConfirm:function(){if(!this.isOverMaxSelectedCount){if(2===this.selectMode){var e=this.selectedRegions.map((function(e){return[e.continentId,e.regionId]}));return this.$emit("confirm",e,null,2),void(this.dialogVisible=!1)}var t=null;if(this.lastClickedGroup&&this.selectedCountries.length>1)this.selectedCountries.map((function(e){return e.id})).sort((function(a,b){return a-b})).join(",")===this.lastClickedGroup.countries.map((function(e){return e.id})).sort((function(a,b){return a-b})).join(",")&&(t=this.lastClickedGroup);this.saveHistory(this.selectedCountries,t),this.$emit("confirm",this.selectedCountries,t),this.dialogVisible=!1}},handleConfirmAndCreate:function(){var e=this;this.isConfirmAndCreateDisabled||this.isOverMaxSelectedCount||(this.dialogVisible=!1,setTimeout((function(){e.createGroupDialogVisible=!0,e.newGroupName=""}),200))},handleCreateGroupCancel:function(){this.createGroupDialogVisible=!1,this.saveHistory(this.selectedCountries,null),this.$emit("confirm",this.selectedCountries,null)},handleCreateGroupConfirm:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.newGroupName.trim()){t.next=2;break}return t.abrupt("return");case 2:return{group_name:e.newGroupName,list:e.selectedCountries.map((function(e){return e.id}))},n={type:0,group_name:e.newGroupName,country_list:e.selectedCountries.map((function(e){return e.id}))},t.next=6,e.$store.dispatch("base/setCountryGroup",n);case 6:return e.$message.success(e.$t("pages_lang_app_new_country_20260209_14")),t.next=9,e.loadGroupsFromStorage();case 9:e.createGroupDialogVisible=!1,e.saveHistory(e.selectedCountries),e.$emit("confirm",e.selectedCountries);case 12:case"end":return t.stop()}}),t)})))()},updateVip:function(e){var t=this;this.$store.state.login?(this.closeDialog(),setTimeout((function(){t.$store.commit("vip/SET_VIP_TIP",e),t.$store.commit("vip/SET_IS_FORBIDDEN",!0),t.$store.commit("vip/SHOW_VIP",!0)}),500)):this.$store.commit("SHOW_LOGIN",!0)},handleChange:function(e){this.selectTab=e.value},changeTabs:function(e){var t=e.value;this.areaTypeSelect=t},handleClick:function(){this.dropdownDisabled||(this.dialogVisible=!this.dialogVisible)},getRegionAllName:function(e,t){return{5:this.$t("pages_lang_upup_1201_5"),1:this.$t("pages_lang_upup_1201_6"),4:this.$t("pages_lang_upup_1201_7")}[Number(e)]||t},clearHistory:function(){var e=1===this.selectMode,t=e?this.historyKeyCountry:this.historyKeyRegion;localStorage.removeItem(t),e?this.internalHistoryCountryList=[]:this.internalHistoryRegionList=[],this.$emit("clear-history")},filterArea:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e){case-1:return t?9:this.$t("assets_const_comission_78");case 1:return t?5:this.$t("assets_const_filterpanel_1379");case 2:return t?6:this.$t("assets_const_filterpanel_1318");case 3:return t?7:this.$t("assets_const_filterpanel_1317");case 4:return t?3:this.$t("assets_const_filterpanel_1380");case 5:return t?8:this.$t("assets_const_filterpanel_1376");case 6:return t?4:this.$t("assets_const_filterpanel_1319");default:return t?999:""}},closeDialog:function(){this.dialogVisible=!1,this.$emit("close")},selectCountryFn:function(e){this.toggleCountry(e)},selectGlobal:function(){var e=this;if(2!==this.selectMode){var t=this.countryListComputed.filter((function(t){return!e.isDisabledCountry(t.id)&&!e.reduceCountry.includes(t.id)})),n=new Set(this.getActiveSelectedCountries().map((function(e){return e.id})));if(t.length>0&&t.every((function(e){return n.has(e.id)}
1)))this.setActiveSelectedCountries([]);else{var r=t.filter((function(e){return!n.has(e.id)}));this.setActiveSelectedCountries([].concat(Object(o.a)(this.getActiveSelectedCountries()),Object(o.a)(this.limitNewSelectedCountries(r))))}}else this.selectAllRegions()},getActiveSelectedCountries:function(){return this.isGroupEditMode?this.groupSelectedCountries:this.selectedCountries},setActiveSelectedCountries:function(e){this.isGroupEditMode?this.groupSelectedCountries=e:this.selectedCountries=e},limitNewSelectedCountries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.slice(0,this.remainingCountrySelectCount)},getContinentName:function(e){var t=M[e];return t?this.isEn?t.en:t.zh:""},isDisabledCountry:function(e){return"list"===this.groupEditMode&&(!!this.disabledCountryIds.includes(e)||!!this.allowCountryIds.length&&!this.allowCountryIds.includes(e))},isMaxSelectedCountryDisabled:function(e){return this.isMaxSelectedCountReached&&!this.isSelected(e)},getSubRegions:function(e){return this.continentSubRegionsMap[e]||[]},hasMultiSubRegions:function(e){return this.getSubRegions(e).length>1},getActiveSubRegionName:function(e){var t=e.continent_id,n=void 0!==this.activeSubRegions[t]?this.activeSubRegions[t]:0,r=this.getSubRegions(t).find((function(e){return e.region_id===n}));return r?r.name:e.label},isSubRegionActive:function(e,t){return(void 0!==this.activeSubRegions[e]?this.activeSubRegions[e]:0)===t},setActiveSubRegion:function(e,t){this.$set(this.activeSubRegions,e,t)},getFilteredCountries:function(e,t){var n=void 0!==this.activeSubRegions[t]?this.activeSubRegions[t]:0;if(0===n)return e;var r=this.getSubRegions(t).find((function(e){return e.region_id===n})),o=r&&r.regionListChild||[];return e.filter((function(e){return e.region_id===n||o.includes(e.id)}
1))},getGroupAvailableCount:function(e){var t=this;return this.getFilteredCountries(e.options||[],e.continent_id).filter((function(e){return!t.isDisabledCountry(e.id)})).length},disabledClick:function(){1===this.allowCountryIds.length&&(this.lockHint?this.$store.dispatch("vip/getVipForbidden",this.lockHint):this.$emit("clickSelect"))},applyGroupSelection:function(e){var t=this,n=new Set(this.countryListComputed.map((function(e){return e.id}))),r=(e.countries||[]).filter((function(e){return e&&!t.isDisabledCountry(e.id)&&n.has(e.id)&&!t.reduceCountry.includes(e.id)}));this.selectedCountries=r.slice(0,this.maxSelectedCount||r.length),this.rightTab="select",this.lastClickedGroup=e},createRegionItem:function(e,t){var n=this.regionGroups.find((function(t){return t.id===Number(e)}));if(!n)return null;var r=n.children.find((function(e){return e.id===Number(t)}));return r?{key:"".concat(n.id,"-").concat(r.id),continentId:n.id,regionId:r.id,name:r.name,logo:r.logo||n.logo}:null},getSelectableRegions:function(e){var t=e.children||[];return t.length>1?t.filter((function(e){return 0!==e.id})):t},isRegionSelected:function(e,t){var n=this,r=this.regionGroups.find((function(t){return t.id===Number(e)}));if(r&&0===Number(t)&&r.children.length>1){var o=this.getSelectableRegions(r);return o.length>0&&o.every((function(e){return n.isRegionSelected(r.id,e.id)}))}return this.selectedRegions.some((function(n){return n.continentId===Number(e)&&n.regionId===Number(t)}))},toggleRegion:function(e,t){var n=this;if(0===t.id&&e.children.length>1){var r=this.getSelectableRegions(e);if(r.length>0&&r.every((function(t){return n.isRegionSelected(e.id,t.id)}))){var o=r.map((function(e){return e.id}));return void(this.selectedRegions=this.selectedRegions.filter((function(t){return t.continentId!==e.id||!o.includes(t.regionId)})))}var l=new Set(this.selectedRegions.map((function(e){return e.key})));r.forEach((function(t){var r=n.createRegionItem(e.id,t.id);r&&!l.has(r.key)&&n.selectedRegions.push(r)}))}else{var c=this.selectedRegions.findIndex((function(n){return n.continentId===e.id&&n.regionId===t.id}));if(c>-1)this.selectedRegions.splice(c,1);else{var d=this.createRegionItem(e.id,t.id);d&&this.selectedRegions.push(d)}}},removeRegion:function(e){this.selectedRegions=this.selectedRegions.filter((function(t){return t.key!==e.key}))},selectAllRegions:function(){var e=this,t=[];this.regionGroups.forEach((function(n){e.getSelectableRegions(n).forEac
1h((function(r){var o=e.createRegionItem(n.id,r.id);o&&t.push(o)}))})),t.length&&t.length===this.selectedRegions.length?this.selectedRegions=[]:this.selectedRegions=t}}},j=(n(5186),n(5187),n(5188),n(2)),component=Object(j.a)(N,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"dd-flex filter-item-wrap dd-align-center",class:e.isHideLabel?"dd-filter-col":"",style:{margin:e.margin}},[r("el-dialog",{attrs:{"custom-class":"country-select-dialog multi-select","append-to-body":!0,center:"",visible:e.dialogVisible,width:"954px","before-close":e.closeDialog,"z-index":"1000"},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",{staticClass:"country-dialog dd-flex",class:{"is-region-mode":2===e.selectMode}},[r("div",{staticClass:"dialog-left-content"},[r("div",{staticClass:"search-bar dd-flex dd-align-center"},[r("el-input",{staticClass:"search-input flex-1",attrs:{"suffix-icon":e.search?"":"el-icon-search",placeholder:e.searchPlaceholder,clearable:""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),e._v(" "),e.isNeedAll?r("div",{staticClass:"global-btn dd-flex dd-align-center dd-pointer",on:{click:e.selectGlobal}},[r("dd-icon",{attrs:{pointer:!0,name:"Dianquanqiu",color:"#2259E5",size:"16px","margin-info":"0 3px 0 0"}}),e._v(" "),r("span",[e._v(e._s(2===e.selectMode?e.$t("assets_const_comission_78"):e.$t("assets_const_comission_78")+"("+e.countryListLengthShow+")"))])],1):e._e()],1),e._v(" "),e.showRegionSelect?r("div",{staticClass:"mode-tabs dd-flex dd-align-center"},[r("div",{staticClass:"mode-tab dd-pointer",class:{active:1===e.selectMode},on:{click:function(t){return e.changeSelectMode(1)}}},[e._v(e._s(e.$t("pages_lang_upup_1201_1")))]),e._v(" "),r("div",{staticClass:"mode-tab dd-pointer",class:{active:2===e.selectMode},on:{click:function(t){return e.changeSelectMode(2)}}},[e._v(e._s(e.$t("pages_lang_app_follow_developer_20260421_15")))])]):e._e(),e._v(" "),r("div",{staticClass:"country-list-container",class:1!==e.selectMode||e.groupedCountries.length||e.isDetailHead?"":"empty"},[1===e.selectMode?[e.showHistoryCountryList.length>0&&!e.search?r("div",{staticClass:"section-group"},[r("div",{staticClass:"section-header dd-flex dd-flex-space dd-align-center"},[r("span",{staticClass:"section-title"},[e._v(e._s(e.$t("components_business_dropmenu_ddcountrydropdown_2578")))]),e._v(" "),r("div",{staticClass:"clear-btn dd-pointer dd-desc-color",on:{click:e.clearHistory}},[r("dd-icon",{attrs:{pointer:"",name:"Dianshanchu",size:"16px","margin-info":"2px 2px 0 0"}}),e._v("\n "+e._s(e.$t("assets_const_word_11291"))+"\n ")],1)]),e._v(" "),r("div",{staticClass:"country-grid"},e._l(e.showHistoryCountryList,(function(t){return r("div",{key:t.id||t.time,staticClass:"country-item dd-flex dd-align-center dd-pointer",class:{selected:e.isSelectedHistory(t)},on:{click:function(n){return e.handleHistoryClick(t)}}},[t.group_name?[r("div",{staticClass:"dd-flex dd-align-center"},[r("dd-icon",{attrs:{name:"Dianheji1",size:"16px",color:"#303133","margin-info":"0 4px 0 0"}}),e._v(" "),r("dd-ellipsis-tooltip",{attrs:{"need-span":!0,offset:-12,outHref:!0,"hover-color":!1,placement:"bottom",width:e.isDisabledCountry(t.id)?"70px":"85px",margin:"8px 0",text:t.group_name}})],1)]:[r("img",{staticClass:"country-flag",attrs:{src:t.logo,alt:""}}),e._v(" "),r("dd-ellipsis-tooltip",{attrs:{"need-span":!0,"hover-color":!1,offset:-12,outHref:!0,placement:"bottom",width:e.isDisabledCountry(t.id)?"70px":"85px",margin:"8px 0",text:t.name}})]],2)})),0)]):e._e(),e._v(" "),e.search||e.isDetailHead||!e.processedHotCountryList.length?e._e():r("div",{staticClass:"section-group"},[r("div",{staticClass:"section-header dd-flex dd-flex-space dd-align-center"},[r("span",{staticClass:"section-title"},[e._v(e._s(e.$t("components_business_dropmenu_ddcountrydropdown_2580")))]),e._v(" "),e.processedHotCountryList.length?r("span",{staticClass:"select-all-btn dd-pointer",on:{click:e.toggleSelectAllHot}},[e._v(e._s(e.isAllHotSelected?e.$t("components_business_common_downloadreportdialog_2551"):e.$t("components_business_common_downloadreportdialog_2550")))]):e._e(
1)]),e._v(" "),r("div",{staticClass:"country-grid"},e._l(e.processedHotCountryList,(function(t){return r("el-tooltip",{key:t.id,attrs:{"popper-class":"dd-tooltips-theme",content:e.lockTips&&e.lockTips[t.id]?e.lockTips[t.id]:"",disabled:!e.lockTips||!e.lockTips[t.id],placement:"bottom"}},[r("div",{staticClass:"country-item dd-flex dd-flex-space dd-flex-middle dd-pointer",class:{disabled:e.isMaxSelectedCountryDisabled(t.id),selected:e.isSelected(t.id)},on:{click:function(n){return e.toggleCountry(t)}}},[r("div",{staticClass:"country-info dd-flex dd-align-center dd-pointer"},[r("img",{staticClass:"country-flag",attrs:{src:t.logo,alt:""}}),e._v(" "),r("dd-ellipsis-tooltip",{attrs:{"need-span":!0,offset:-12,outHref:!0,"hover-color":!1,placement:"bottom",width:e.isDisabledCountry(t.id)?"70px":"85px",margin:"8px 0",text:t.name}})],1),e._v(" "),e.isDisabledCountry(t.id)?r("dd-icon",{attrs:{"props-class":"delete",name:"Diansuoding","margin-info":"0",color:"#74757A",size:"14px",pointer:""}}):e._e()],1)])})),1)]),e._v(" "),r("div",{staticClass:"select-list-wrap",class:e.groupedCountries.length?"":"empty"},e._l(e.groupedCountries,(function(t,n){return r("div",{key:n,staticClass:"section-group group-country-warp"},[r("div",{staticClass:"section-header dd-flex dd-flex-space dd-align-center"},[r("div",{staticClass:"sub-region-tabs dd-flex"},[e.getSubRegions(t.continent_id)&&e.getSubRegions(t.continent_id).length<2?r("div",{staticClass:"sub-region-tab"},[e._v("\n "+e._s(e.getSubRegions(t.continent_id)[0]&&e.getSubRegions(t.continent_id)[0].name)+"\n ")]):e._l(e.getSubRegions(t.continent_id),(function(n){return r("div",{key:n.id,staticClass:"sub-region-tab",class:{active:e.isSubRegionActive(t.continent_id,n.region_id),clickable:e.hasMultiSubRegions(t.continent_id)},on:{click:function(r){return e.setActiveSubRegion(t.continent_id,n.region_id)}}},[r("dd-ellipsis-tooltip",{attrs:{"need-span":!0,width:["en"].includes(e.$i18n.locale)?"65px":"75px",outHref:!0,placement:"bottom",text:n.name}})],1)}))],2),e._v(" "),e.search?e._e():r("span",{staticClass:"select-all-btn dd-pointer",on:{click:function(n){return e.toggleSelectAllGroup(t)}}},[e._v(e._s(e.isAllGroupSelected(t)?e.$t("components_business_common_downloadreportdialog_2551"):e.$t("components_business_filter_ddcountryselect_2615")+(["en"].includes(e.$i18n.locale)?" ":"")+e.getActiveSubRegionName(t)))])]),e._v(" "),e.getFilteredCountries(t.options||[],t.continent_id)&&e.getFilteredCountries(t.options||[],t.continent_id).length?r("div",{staticClass:"country-grid"},[e._l(e.getFilteredCountries(t.options||[],t.continent_id),(function(t){return r("el-tooltip",{key:t.id,attrs:{"popper-class":"dd-tooltips-theme",content:e.lockTips&&e.lockTips[t.id]?e.lockTips[t.id]:"",disabled:!e.lockTips||!e.lockTips[t.id],placement:"bottom"}},[r("div",{staticClass:"country-item dd-flex dd-flex-space dd-flex-middle dd-pointer",class:{disabled:e.isDisabledCountry(t.id)||e.isMaxSelectedCountryDisabled(t.id),selected:e.isSelected(t.id)},on:{click:function(n){return e.toggleCountry(t)}}},[r("div",{staticClass:"country-info dd-flex dd-align-center dd-pointer"},[r("img",{staticClass:"country-flag",attrs:{src:t.logo,alt:""}}),e._v(" "),r("dd-ellipsis-tooltip",{attrs:{"need-span":!0,offset:-12,"hover-color":!1,outHref:!0,placement:"bottom",width:e.isDisabledCountry(t.id)?"70px":"85px",margin:"8px 0",text:t.name}})],1),e._v(" "),!e.isDisabledCountry(t.id)||e.lockTips&&e.lockTips[t.id]?e._e():r("dd-icon",{attrs:{"props-class":"delete",name:"Diansuoding","margin-info":"0",color:"#74757A",size:"14px",pointer:""}})],1)])}))],2):r("div",{staticClass:"grid-item"},[e._v(e._s(e.$t("components_base_chart_ddmanchart_2365")))])])})),0),e._v(" "),e.groupedCountries.length||e.isDetailHead?e._e():r("dd-empty",{attrs:{"empty-text":e.$t("components_base_chart_ddmanchart_2365")}})]:[r("div",{staticClass:"region-select-wrap"},[e._l(e.filteredRegionGroups,(function(t){return r("div",{key:t.id,staticClass:"section-group region-group"},[r("div",{staticClass:"section-header region-header dd-flex dd-align-center"},[t.logo?r("img",{staticClass:"region-logo",attrs:{src:t.logo,alt:""}}
1):e._e(),e._v(" "),r("span",{staticClass:"section-title"},[e._v(e._s(t.name))])]),e._v(" "),r("div",{staticClass:"region-grid"},e._l(t.children,(function(n){return r("div",{key:t.id+"-"+n.id,staticClass:"region-item dd-pointer",class:{selected:e.isRegionSelected(t.id,n.id)},on:{click:function(r){return e.toggleRegion(t,n)}}},[r("dd-ellipsis-tooltip",{attrs:{"need-span":!0,"hover-color":!1,placement:"bottom",width:"100px",margin:"0",height:32,"out-line-height":32,text:n.name}})],1)})),0)])})),e._v(" "),e.filteredRegionGroups.length?e._e():r("dd-empty",{attrs:{"empty-text":e.$t("components_base_chart_ddmanchart_2365")}})],2)]],2),e._v(" "),1===e.selectMode?r("div",{staticClass:"dialog-footer"},[r("div",{directives:[{name:"show",rawName:"v-show",value:"group"!==e.rightTab||"list"===e.groupEditMode,expression:"rightTab !== 'group' || groupEditMode === 'list'"}],staticClass:"cancel-btn country-dialog-cancel-btn dd-pointer",on:{click:e.closeDialog}},[e._v(e._s(e.$t("components_business_app_ddaddcompetitorapp_2460")))])]):e._e()]),e._v(" "),r("div",{staticClass:"dialog-right-content"},[r("div",{staticClass:"dialog-right-tab-content"},[1!==e.selectMode||"group"===e.rightTab&&"list"!==e.groupEditMode?1===e.selectMode&&"group"===e.rightTab&&"list"!==e.groupEditMode?r("div",{staticClass:"group-edit-header dd-flex dd-flex-space dd-align-center"},[r("div",{staticClass:"back-btn dd-flex dd-align-center"},[r("dd-icon",{attrs:{name:"Dianzuo1",pointer:"",size:"14px",color:"#606266","margin-info":"0 4px 0 0"},on:{click:e.backToGroupList}}),e._v(" "),r("span",{staticClass:"title"},[e._v(e._s("create"===e.groupEditMode?e.$t("pages_lang_app_new_country_20260209_04"):e.$t("pages_lang_app_new_country_20260209_05")))])],1),e._v(" "),"edit"===e.groupEditMode?r("el-popover",{attrs:{"popper-class":"edit-group-popover",placement:"top",width:"174",trigger:"click"},model:{value:e.deletePopoverVisible,callback:function(t){e.deletePopoverVisible=t},expression:"deletePopoverVisible"}},[r("p",{staticStyle:{margin:"0",padding:"12px 0 12px",color:"#000000","font-size":"14px","word-break":"break-word","text-align":"left"}},[e._v(e._s(e.$t("pages_lang_app_new_country_20260209_03")))]),e._v(" "),r("div",{staticStyle:{"text-align":"right",margin:"0"}},[r("el-button",{staticClass:"cancel-btn country-dialog-cancel-btn",attrs:{size:"mini"},on:{click:function(t){e.deletePopoverVisible=!1}}}
1,[e._v(e._s(e.$t("components_business_app_ddaddcompetitorapp_2460")))]),e._v(" "),r("el-button",{staticStyle:{"margin-left":"2px"},attrs:{type:"primary",size:"mini"},on:{click:e.confirmDeleteGroup}},[e._v(e._s(e.$t("components_business_app_ddaddseaapp_2464")))])],1),e._v(" "),r("span",{staticClass:"delete-btn dd-pointer",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.$t("pages_lang_app_new_country_20260209_06")))])]):e._e()],1):e._e():r("div",{staticClass:"right-header dd-flex dd-flex-space dd-align-center",class:{"class-en":["en"].includes(e.$i18n.locale)}},[r("div",{staticClass:"title-group dd-flex"},[r("span",{staticClass:"title dd-pointer",class:{active:"select"===e.rightTab},on:{click:function(t){return e.toggleRightTab("select")}}},[e._v(e._s(e.$t("pages_lang_app_new_country_20260209_01")))]),e._v(" "),r("span",{staticClass:"title dd-pointer",class:{active:"group"===e.rightTab},on:{click:function(t){return e.toggleRightTab("group")}}},[e._v(e._s(e.$t("pages_lang_app_new_country_20260209_02")))])])]),e._v(" "),"select"===e.rightTab?[r("div",{staticClass:"selected-info dd-flex dd-flex-space dd-align-center"},[r("span",{staticClass:"count"},[e._v(e._s(e.$t("pages_lang_upup_240909_2"))+" "),r("span",{staticClass:"num",class:{"num-zheng":e.maxSelectedCount>0&&e.currentSelectedCount===e.maxSelectedCount}},[e._v(e._s(e.currentSelectedCount))]),e.maxSelectedCount>0?r("span",{staticClass:"dd-base-color font-600"},[e._v("/"+e._s(e.maxSelectedCount))]):e._e()]),e._v(" "),e.currentSelectedCount?r("span",{staticClass:"clear-btn dd-pointer",on:{click:e.clearSelected}},[e._v(e._s(e.$t("assets_const_word_11291")))]):e._e()]),e._v(" "),r("div",{staticClass:"selected-list"},[0===e.currentSelectedCount?r("div",{staticClass:"empty-guide dd-flex dd-flex-center dd-align-center"},[r("span",{staticClass:"dd-flex dd-align-center dd-flex-center"},[r("img",{staticStyle:{width:"25px","margin-right":"5px"},attrs:{src:n(361),alt:""}}),e._v(" "),r("span",[e._v(e._s(2===e.selectMode?e.$t("components_business_dropmenu_ddmuiltcountryselectdialog_20260429_01"):e.$t("pages_lang_app_new_country_20260209_09")))])])]):e._e(),e._v(" "),1===e.selectMode?e._l(e.selectedCountries,(function(t){return r("div",{key:t.id,staticClass:"selected-item dd-flex dd-flex-space dd-align-center"},[r("div",{staticClass:"country-info dd-flex dd-align-center"},[r("img",{staticClass:"country-flag",attrs:{src:t.logo,alt:""}}),e._v(" "),r("dd-ellipsis-tooltip",{attrs:{"need-span":!0,"hover-color":!1,placement:"bottom-start",width:"140px",margin:"8px 0",text:t.name}})],1),e._v(" "),r("dd-icon",{attrs:{name:"Dianshanchu",size:"16px",color:"#909399","props-class":"active-hover",pointer:""},on:{click:function(n){return e.removeCountry(t)}}})],1)})):e._l(e.selectedRegions,(function(t){return r("div",{key:t.key,staticClass:"selected-item selected-region-item dd-flex dd-flex-space dd-align-center"},[r("dd-ellipsis-tooltip",{attrs:{"need-span":!0,"hover-color":!1,placement:"bottom-start",width:"160px",margin:"0",height:32,"out-line-height":32,text:t.name}}),e._v(" "),r("dd-icon",{attrs:{name:"Dianshanchu",size:"16px",color:"#909399","props-class":"active-hover",pointer:""},on:{click:function(n){return e.removeRegion(t)}}})],1)}))],2)]:e._e(),e._v(" "),1===e.selectMode&&"group"===e.rightTab?["list"===e.groupEditMode?[r("div",{staticClass:"selected-info dd-flex dd-flex-space dd-align-center"},[r("span",{staticClass:"count"},[e._v(e._s(e.$t("pages_lang_app_new_country_20260209_07"))+" "),r("span",{staticStyle:{color:"#2259E5"}},[e._v(e._s(e.groupList.length))]),r("span",{staticStyle:{color:"#111111"}},[e._v("/10")])])]),e._v(" "),r("div",{staticClass:"selected-list group-list"},[r("div",{staticClass:"list-scroll-container"},e._l(e.groupList,(function(t,n){return r("el-popover",{key:t.id,attrs:{offset:40,placement:"left-start",trigger:"hover","popper-class":"group-country-preview-popover","open-delay":200,width:"200"}},[r("div",{staticClass:"preview-scroll-container"},e._l(t.countries,(function(t){return r("div",{key:t.id,staticClass:"preview-item dd-flex dd-align-center"},[r("img",{staticClass:"preview-flag",attrs:{src:t.logo}}),e._v(" "),r("span",{staticClass:"preview-name dd-overflow-ellipsis"},[e._v(e._s(t.name))])])})),0),e._v(" "),r("div",{staticClass:"group-item dd-flex dd-flex-s
1pace dd-align-center dd-pointer",attrs:{slot:"reference"},on:{click:function(n){return e.applyGroupSelection(t)}},slot:"reference"},[r("div",{staticClass:"group-info dd-flex dd-align-center"},[r("dd-icon",{attrs:{name:"Dianheji1",size:"16px",color:"#303133","margin-info":"0 4px 0 0"}}),e._v(" "),r("dd-ellipsis-tooltip",{attrs:{"need-span":!0,offset:-12,outHref:!0,placement:"bottom-start",width:"130px",margin:"8px 0",text:t.group_name+" ("+t.countries.length+")"}})],1),e._v(" "),r("div",{staticClass:"group-edit"},[r("dd-icon",{attrs:{name:"Dianbianji",size:"16px",color:"#909399","props-class":"active-hover",pointer:""},on:{click:function(r){return r.stopPropagation(),e.enterEditGroup(t,n)}}})],1)])])})),1),e._v(" "),r("div",{staticClass:"create-group-btn dd-flex dd-flex-center dd-align-center dd-pointer",class:e.groupList&&e.groupList.length>=10?"disabled":"",on:{click:e.enterCreateGroup}},[r("dd-icon",{attrs:{name:"Diantianjia1",size:"14px",color:e.groupList.length>=10?"#abaeba":"#2259E5","margin-info":"0 4px 0 0"}}),e._v(" "),r("span",[e._v(e._s(e.$t("pages_lang_app_new_country_20260209_04")))])],1)])]:[r("div",{staticClass:"group-form"},[r("el-input",{staticClass:"group-name-input",attrs:{placeholder:e.$t("pages_lang_app_new_country_20260209_08"),maxlength:"10",size:"small"},model:{value:e.editingGroup.group_name,callback:function(t){e.$set(e.editingGroup,"group_name",t)},expression:"editingGroup.group_name"}})],1),e._v(" "),r("div",{staticClass:"selected-info dd-flex dd-flex-space dd-align-center"},["edit"===e.groupEditMode||e.groupSelectedCountries.length?r("span",{staticClass:"count"},[e._v(e._s(e.$t("pages_lang_upup_240909_2"))+" "),r("span",{staticClass:"num"},[e._v(e._s(e.groupSelectedCountries.length))])]):e._e(),e._v(" "),e.groupSelectedCountries.length?r("span",{staticClass:"clear-btn dd-pointer",on:{click:e.clearSelected}},[e._v(e._s(e.$t("assets_const_word_11291")))]):e._e()]),e._v(" "),r("div",{staticClass:"selected-list"},[0===e.groupSelectedCountries.length?r("div",{staticClass:"empty-guide dd-flex dd-flex-center dd-align-center"},[r("span",{staticClass:"dd-flex dd-align-center dd-flex-center"},[r("img",{staticStyle:{width:"25px","margin-right":"5px"},attrs:{src:n(361),alt:""}}),e._v(" "),r("span",[e._v(e._s(e.$t("pages_lang_app_new_country_20260209_09")))])])]):e._l(e.groupSelectedCountries,(function(t){return r("div",{key:t.id,staticClass:"selected-item dd-flex dd-flex-space dd-align-center"},[r("div",{staticClass:"country-info dd-flex dd-align-center"},[r("img",{staticClass:"country-flag",attrs:{src:t.logo,alt:""}}),e._v(" "),r("dd-ellipsis-tooltip",{attrs:{"need-span":!0,"hover-color":!1,placement:"bottom-start",width:"130px",margin:"8px 0",text:t.name}})],1),e._v(" "),r("dd-icon",{attrs:{name:"Dianshanchu",size:"16px",color:"#909399","props-class":"active-hover",pointer:""},on:{click:function(n){return e.removeCountry(t)}}})],1)}))],2)]]:e._e()],2),e._v(" "),"select"===e.rightTab?r("div",{staticClass:"right-footer list dd-flex dd-flex-end",class:{"class-en":["en"].includes(e.$i18n.locale),"region-list":2===e.selectMode}},[2===e.selectMode?r("el-button",{staticClass:"cancel-btn country-dialog-cancel-btn",attrs:{size:"small"},on:{click:e.closeDialog}}
1,[e._v(e._s(e.$t("components_business_app_ddaddcompetitorapp_2460")))]):e._e(),e._v(" "),1===e.selectMode?r("el-tooltip",{attrs:{"popper-class":"dd-tooltips-theme",content:e.$t("pages_lang_app_new_country_20260228_01"),disabled:!(e.selectedCountries.length<2),placement:"top"}},[r("el-button",{staticClass:"confirm-create-btn",attrs:{size:"small",disabled:e.selectedCountries.length<2||e.isConfirmAndCreateDisabled||e.isOverMaxSelectedCount},on:{click:e.handleConfirmAndCreate}},[e._v(e._s(e.$t("pages_lang_app_new_country_20260209_10")))])],1):e._e(),e._v(" "),r("el-button",{attrs:{type:"primary",size:"small",disabled:0===e.currentSelectedCount||e.isOverMaxSelectedCount},on:{click:e.handleConfirm}},[e._v(e._s(e.$t("components_business_app_ddaddseaapp_2464")))])],1):e._e(),e._v(" "),"group"===e.rightTab&&"list"!==e.groupEditMode?r("div",{staticClass:"right-footer dd-flex dd-flex-end",class:{"class-en":["en"].includes(e.$i18n.locale)}},[r("el-button",{staticClass:"cancel-btn",attrs:{size:"small"},on:{click:e.backToGroupList}},[e._v(e._s(e.$t("components_page_account_controllist_addappmonitor_3224")))]),e._v(" "),r("el-button",{attrs:{type:"primary",size:"small",disabled:e.groupSelectedCountries.length<2||!(e.editingGroup.group_name||"").replace(/\s/g,"").length},on:{click:e.saveGroup}},[e._v(e._s("create"===e.groupEditMode?e.$t("pages_lang_upup_0925_1"):e.$t("components_business_app_ddeditversiondialog_2478")))])],1):e._e()])])]),e._v(" "),r("el-dialog",{attrs:{visible:e.createGroupDialogVisible,width:"400px","show-close":!1,"close-on-click-modal":!1,"custom-class":"create-group-dialog","append-to-body":""},on:{"update:visible":function(t){e.createGroupDialogVisible=t}}},[r("div",{staticClass:"custom-header"},[r("span",{staticClass:"title"},[e._v(e._s(e.$t("pages_lang_app_new_country_20260209_04")))]),e._v(" "),r("dd-icon",{staticClass:"close-btn dd-pointer",attrs:{name:"Dianguanbi",size:"16px","props-class":"active-hover",color:"#909399"},on:{click:e.handleCreateGroupCancel}})],1),e._v(" "),r("div",{staticClass:"create-group-body"},[r("div",{staticClass:"tip-text"},[e._v(e._s(e.$t("pages_lang_app_new_country_20260209_11")))]),e._v(" "),r("div",{staticClass:"sub-tip-text",domProps:{innerHTML:e._s(e.$t("pages_lang_app_new_country_20260209_15").replace("{10}","<span>10</span>").replace("{1}","<span>1</span>"))}}),e._v(" "),r("div",{staticClass:"input-area dd-flex dd-align-center"},[r("span",{staticClass:"label"},[e._v(e._s(e.$t("pages_lang_app_new_country_20260209_12")))]),e._v(" "),r("el-input",{staticClass:"group-name-input",attrs:{placeholder:e.$t("pages_lang_app_new_country_20260209_13"),maxlength:"10","show-word-limit":"",size:"small"},model:{value:e.newGroupName,callback:function(t){e.newGroupName=t},expression:"newGroupName"}})],1)]),e._v(" "),r("div",{staticClass:"custom-footer"},[r("el-button",{staticClass:"country-dialog-cancel-btn",attrs:{size:"small"},on:{click:e.handleCreateGroupCancel}}
1,[e._v(e._s(e.$t("components_business_app_ddaddcompetitorapp_2460")))]),e._v(" "),r("el-button",{attrs:{type:"primary",disabled:!(e.newGroupName||"").replace(/\s/g,"").length,size:"small"},on:{click:e.handleCreateGroupConfirm}},[e._v(e._s(e.$t("pages_lang_upup_0925_1")))])],1)])],1)}),[],!1,null,"8778502e",null);t.default=component.exports},6595:function(e,t,n){"use strict";n.r(t);n(17),n(18);var r=n(7),o=(n(14),n(6)),l={name:"DdMarketDropDown",props:{filterMarket:{type:Array,default:function(){return[]}},width:{type:String,default:""},defaultVal:{type:[Number,String,Boolean],default:""},margin:{type:String,default:""},hasAll:{type:Boolean,default:!1},isWechatMonitor:{type:Boolean,default:!1}},data:function(){return{options:[{name:"App Store",iconName:"Dianpingguo-color",iconSize:"30px",alias:"1",value:1,logo:n(58)},{name:"Google Play",iconName:"Dianguge-color",iconSize:"30px",alias:"11",value:11,logo:n(60)},{name:"TapTap",iconName:"Dianguge-color",iconSize:"30px",alias:o.Ib.market+"",value:o.Ib.market,logo:n(235)},{name:this.$t("assets_const_filterpanel_1350"),value:2,alias:"2",logo:n(217),backgroundImg:n(217)},{name:this.$t("pages_lang_app_add_honor_20251104_01"),value:17,alias:"17",logo:n(256),backgroundImg:n(256)},{name:this.$t("assets_const_filterpanel_1351"),value:3,alias:"3",logo:n(248),backgroundImg:n(248)},{name:"vivo",value:4,alias:"4",logo:n(249),backgroundImg:n(249)},{name:"oppo",value:5,alias:"5",logo:n(250),backgroundImg:n(250)},{name:this.$t("assets_const_filterpanel_1352"),value:6,alias:"6",logo:n(251),backgroundImg:n(251)},{name:this.$t("assets_const_filterpanel_1353"),value:7,alias:"7",logo:n(252),backgroundImg:n(252)},{name:this.$t("assets_const_filterpanel_1354"),value:8,alias:"8",logo:n(253),backgroundImg:n(253)},{name:"360",value:9,alias:"9",logo:n(254),backgroundImg:n(254)},{name:this.$t("assets_const_filterpanel_1355"),value:10,alias:"10",logo:n(255),backgroundImg:n(255)}]}},computed:{tagList:function(){return[{type:"select",hasIcon:!0,options:this.filterOptions}]},filterOptions:function(){var e=this;return this.isWechatMonitor?this.$filterHiddenFrontMarketList([{alias:"0",iconName:"Dianguge-color",iconSize:"30px",logo:n(179),name:this.$t("assets_const_filterpanel_1322"),value:0}].concat(Object(r.a)(this.options.filter((function(e){return[1,11].includes(e.value)}))))):this.filterMarket.length>0?this.$filterHiddenFrontMarketList(this.options.filter((function(t){return e.filterMarket.includes(t.value)}))):this.hasAll?this.$filterHiddenFrontMarketList([{alias:"0",iconName:"Dianguge-color",iconSize:"30px",logo:n(179),name:this.$t("assets_const_filterpanel_1322"),value:0}].concat(Object(r.a)(this.options))):this.$filterHiddenFrontMarketList(this.options)}},methods:{change:function(e){var t=e.value;this.$emit("change",t)}}},c=(n(5197),n(2)),component=Object(c.a)(l,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"dd-device-drop"},[t("dd-filter-col",{attrs:{width:this.width,"filter-type":"market","filter-size":"small","group-filter":"","default-val":this.defaultVal,"default-alias":"=","tag-list":this.tagList},on:{toggle:this.change}})],1)}),[],!1,null,"1da24846",null);t.default=component.exports},6596:function(e,t,n){"use strict";n.r(t);n(14);var r=n(20),o={name:"DdPkAndroidDropDown",props:{iconColor:{type:String,default:"#ABAEBA"},defaultMarket:{type:Number,default:1},height:{type:String,default:"56px"},tagList:{type:Array,default:function(){return[]}},logoSize:{type:String,default:"40px"},logoRadio:{type:String,default:"8px"},dataIndex:{type:Number,default:1},dataInfo:{type:Object,default:function(){return{}}}},data:function(){return{marketLogoMap:r.j,story:{name:"iOS",class:"dd-apple-logo-16",value:1},drop:!1}},computed:{logoStyle:function(){return{width:this.logoSize,height:this.logoSize,borderRadius:this.logoRadio}},storeList:function(){return this.tagList[0].options}},watch:{defaultMarket:{immediate:!0,handler:function(e){this.story=this.storeList.filter((function(t){return t.value===e}))[0]}}},methods:{openDropDown:function(){this.$refs.dropdown.show(),this.showDrop(!0)},handleChoose:function(e){this.story=e,this.$emit("command",e,this.dataIndex,this.dataInfo)},showDrop:function(e){this.drop=e}}},l=(n(5198),n(2)),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dropdown",{ref:"dropdown",staticClass:"dd-drop-menu",attrs:{slot:"prefix",placement:"bottom",trigger:"click"},on:{command:e.handleChoose,"visible-change":e.showDrop},slot:"prefix"}
1,[n("p",{staticClass:"dd-flex-space dd-align-center dd-flex"},[n("dd-icon",{attrs:{pointer:"",color:e.iconColor,name:e.drop?"Dianshangsheng":"Dianxiajiang"}})],1),e._v(" "),n("el-dropdown-menu",{staticClass:"find-app-list",attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.storeList,(function(t,r){return n("el-dropdown-item",{key:"store-"+r,staticClass:"select-market-item",attrs:{command:t}},[n("p",{staticClass:"dd-flex-start dd-align-center dd-flex select-item-css",style:{height:e.height}},[n("img",{staticClass:"market-icon",attrs:{src:t.logo,alt:""}}),e._v(" "),n("span",{staticClass:"app-name-css"},[e._v(e._s(t.name))])])])})),1)],1)}),[],!1,null,"2d0aad23",null);t.default=component.exports},744:function(e,t,n){"use strict";n.r(t);n(74),n(31),n(51),n(41),n(42),n(12),n(11),n(9),n(8),n(10),n(45),n(15);var r=n(1),o=(n(29),n(28)),l=(n(21),n(3)),c=(n(14),n(16),n(5)),d=n(6),h=n(222),f=n(2603),m=n(2292);function _(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw o}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function y(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function C(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?y(Object(source),!0).forEach((function(t){Object(l.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):y(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var S=[1,11,4],x=d.C.map((function(e,t){return{key:S[t],name:e.name,icon:e.logo||e.backgroundImg,count:0}})),G={name:"DdPkDataDropDown",components:{DdAppBatchActionDialog:h.default,DdPkCollectionGroupDialog:f.default,DdFollowAddCollectionDialog:m.a},props:{iconColor:{type:String,default:"#ABAEBA"},defaultMarket:{type:Number,default:1},height:{type:String,default:"56px"},tagList:{type:Array,default:function(){return[]}},logoSize:{type:String,default:"40px"},logoRadio:{type:String,default:"8px"},deafultId:{type:[Number,String],default:0},useCollectionGroupCompareDialog:{type:Boolean,default:!1},lazyDialogData:{type:Boolean,default:!1},defaultIsApp:{type:Boolean,default:!1}},data:function(){return{activeId:"",addGroupDialogVisible:!1,createGroupSubmitLoading:!1,collectionGroupCompareVisible:!1,pageGroupDeleted:!1,dialogPageGroupId:"",dialogPageIsApp:!1,emptyPageGroupsChanged:!1,relationGroupsDirty:!1,contrastList:[],checkAppList:[],favoriteAppList:[],favoriteAppGroupList:[],favoriteAppDataLoading:!1,favoriteAppDataLoaded:!1,favoriteAppGroupInitialized:!1,collectionGroupDataLoading:!1,compareCollectionAppMap:{},compareCollectionAppLoadingMap:{},compareAppsSubmitLoading:!1,groupListInitialized:!1,cachedGroupName:"",groupLimitDialogVisible:!1,dialogPersistedChange:!1,dialogPersistedChangeGroupId:"",dialogPersistedChangeType:"",marketTags:x.map((function(e){return C({},e)}))}},computed:C(C({},Object(c.e)("pk/base",{pkGroupList:function(e){return e.groupList||[]},pkGroupAppList:function(e){return e.groupAppList||[]}})),{},{routeGroupId:function(){var e=this.$route&&this.$route.query||{};
1return e.select||e.id||""},selectedGroupId:function(){return this.activeId||this.deafultId||this.routeGroupId||this.getLocalGroupId()},activeGroup:function(){var e=this,t=this.selectedGroupId;if(this.defaultIsApp)return this.favoriteAppGroupList.find((function(n){return String(e.getGroupId(n))===String(t)}))||null;var n=this.contrastList.find((function(n){return String(e.getGroupId(n))===String(t)}));return n||(this.pkGroupList.find((function(n){return String(e.getGroupId(n))===String(t)}))||null)},checkGroupName:function(){if(!this.selectedGroupId)return this.$t("pages_lang_app_list_selector_20260707_08");var e=this.activeGroup;if(e)return this.getGroupDisplayName(e);var t=this.cachedGroupName||this.$cookies.get("groupInitName");return this.deafultId?this.defaultIsApp?this.favoriteAppGroupInitialized?this.$t("pages_lang_app_list_selector_20260707_08"):"":this.groupListInitialized?t||this.$t("pages_lang_app_list_selector_20260707_08"):"":t||""},checkGroupCount:function(){return this.activeGroup?this.getGroupCount(this.activeGroup):0},compareDialogGroups:function(){var e=this;return this.contrastList.map((function(t,n){return e.normalizeGroup(t,n)}))},compareDialogApplications:function(){var e=this;return this.checkAppList.map((function(t,n){return e.normalizeCollection(t,n)}))},compareDialogCollections:function(){return this.compareDialogApplications}}),watch:{pkGroupList:{immediate:!0,handler:function(e){if(this.lazyDialogData&&!this.defaultIsApp){var t=Array.isArray(e)?e.slice():[];this.contrastList=t,this.groupListInitialized=!0}}},pkGroupAppList:{immediate:!0,handler:function(e){this.lazyDialogData&&(this.checkAppList=Array.isArray(e)?e.slice():[])}},deafultId:{immediate:!0,handler:function(e){e&&(this.activeId=e,this.contrastList.length&&!this.lazyDialogData&&this.getGroupAppList(e,!0))}},defaultIsApp:{immediate:!0,handler:function(e){e&&(this.favoriteAppGroupInitialized||this.getFavoriteAppDialogData())}},checkGroupCount:{immediate:!0,handler:function(e){this.$emit("addedChange",e)}}},mounted:function(){this.lazyDialogData||this.defaultIsApp||this.getGroupList(this.selectedGroupId)},methods:{getFirstValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=t.find((function(t){return void 0!==e[t]&&null!==e[t]&&""!==e[t]}));return r?e[r]:n},getResponseData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.data||{}},getResponseList:function(){var data=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(Array.isArray(data))return data;var t,n=[data,data.data].filter((function(e){return e&&"object"===Object(o.a)(e)})),r=_(n);try{for(r.s();!(t=r.n()).done;){var l,source=t.value,c=_(e);try{for(c.s();!(l=c.n()).done;){var d=l.value;if(Array.isArray(source[d]))return source[d]}}catch(e){c.e(e)}finally{c.f()}}}catch(e){r.e(e)}finally{r.f()}return[]},getLocalGroupId:function(){if("undefined"==typeof window)return"";try{return(JSON.parse(window.localStorage.getItem("APP_PK_LIST"))||{}).id||""}catch(e){return""}},toCountNumber:function(e){return null==e||""===e?0:Number(String(e).replace(/,/g,""))||0},getGroupId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getFirstValue(e,["id","group_id","groupId","value"],"")},getCompareCollectionAppId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return String(this.getFirstValue(e,["id","encoded_app_id","encodedAppId","app_id","appId","init_id","initId","relation_id","relationId"],""))},getCompareCollectionCacheKey:function(e,t){return"".concat(e||"","__").concat(t||"")},getGroupName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getFirstValue(e,["name","group_name","groupName"],"");return t||this.$t("pages_lang_app_list_selector_20260707_08")},getGroupCount:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getGroupApps(e),n=this.getFirstValue(e,["count","relation_count","app_count","app_num","num"],"");return""===n?t.length:this.toCountNumber(n)},getGroupDisplayName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(this.getGroupName(e)," (").concat(this.getGroupCount(e),")")},cacheGroupDisplayName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e&&this.getGroupId(e)&&(this.cachedGroupName=this.getGroupDisplayName(e),this.$cookies.set("groupInitName",this.cachedGroupName))},clearGroupDisplayNameCache:function(){this.cachedGroupName="",this.$cookies&&this.$cookies.remove?this.$cookies.remove("groupInitName"):this.$cookies&&this.$cookies.set&&this.$cookies.set("groupInitName","")},getGroupApps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getResponseList(e,["apps","app_list","appList","children","list"])},getDeveloperName:function(e){if(!e)return"-";if("string"==typeof e){var text=e.trim();if(0===text.indexOf("{"))try{return this.getDeveloperName(JSON.parse(text))}catch(e){return text||"-"}return text||"-"}return this.getFirstValue(e,["name"],"-")},normalizeGroup:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getGroupId(e)||"group-".concat(t+1),r=this.getGroupApps(e);return C(C({},e),{},{id:n,name:this.getGroupName(e),count:this.getGroupCount(e),pinned:1===Number(this.getFirstValue(e,["top","is_top","pinned"],0)),apps:r})},normalizeCollection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getFirstValue(e,["name","title","app_name","track_name"],"-");return C(C({},e),{},{id:String(this.getFirstValue(e,["id","encoded_app_id","encodedAppId","app_id","appId","init_id","initId","relation_id","relationId"],"collection-".concat(t))),name:n,developer:this.getDeveloperName(e.developer),logo:this.getFirstValue(e,["logo","icon","artworkUrl100"],""),logoText:e.logoText||n.slice(0,1),logoColor:e.logoColor||"#f1f3f8",tagCounts:this.getCollectionTagCounts(e),children:this.getGroupApps(e)})},getCollectionTagCounts:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.market_count||t.marketCount||t.count||t.tagCounts||{};return Array.isArray(n)?this.marketTags.map((function(t,r){return e.toCountNumber(n[r])})):n&&"object"===Object(o.a)(n)?this.marketTags.map((function(t){return e.toCountNumber(n[t.key]||n[String(t.key)]||0)}
1)):[0,0,0]},getPostAppId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return String(this.getFirstValue(e,["postAppId","encodedAppId","encoded_app_id","id","app_id","appId","init_id","initId"],""))},getPostApps:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(t||[]).map((function(t){var n=e.getPostAppId(t);return n?{app_id:n}:null})).filter(Boolean)},isRelationGroupAppLimitResult:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},data=this.getResponseData(e);return!(!e||!e.limit&&2!==Number(data.status))},getGroupList:function(){var e=arguments,t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,data,l,c,d,h,f;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>0&&void 0!==e[0]?e[0]:t.activeId||t.deafultId,o=!(e.length>1&&void 0!==e[1])||e[1],n.prev=2,n.next=5,t.$store.dispatch("user/getFollowRelationGroupList",{page:1,pagesize:200});case 5:if(data=n.sent,l=t.getResponseList(data,["list","group_list","groupList","groups"]),t.contrastList=l.slice(),c=r||t.activeId||t.deafultId||t.getLocalGroupId(),d=c?t.contrastList.find((function(e){return String(t.getGroupId(e))===String(c)})):null,h=d||null,f=t.getGroupId(h||{})){n.next=17;break}return t.activeId=c||"",t.clearGroupDisplayNameCache(),t.checkAppList=[],n.abrupt("return",t.activeId);case 17:if(t.activeId=f,t.cacheGroupDisplayName(h),!o){n.next=22;break}return n.next=22,t.getGroupAppList(f,!0);case 22:return n.abrupt("return",f);case 25:return n.prev=25,n.t0=n.catch(2),t.contrastList=[],t.checkAppList=[],n.abrupt("return","");case 30:return n.prev=30,t.groupListInitialized=!0,n.finish(30);case 33:case"end":return n.stop()}}),n,null,[[2,25,30,33]])})))()},getGroupAppList:function(){var e=arguments,t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,l,data,c,d,h;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.length>0&&void 0!==e[0]?e[0]:t.activeId,o=!(e.length>1&&void 0!==e[1])||e[1],l=e.length>2&&void 0!==e[2]&&e[2],r){n.next=5;break}return n.abrupt("return",[]);case 5:return n.prev=5,n.next=8,t.$store.dispatch("user/getFollowRelationGroupApp",{type:2,group_id:r,skipDuplicateCancel:l});case 8:return data=n.sent,c=Array.isArray(data)?data[0]:data,d=t.getResponseList(c,["apps","app_list","appList","children","list"]),-1!==(h=t.contrastList.findIndex((function(e){return String(t.getGroupId(e))===String(r)})))&&(t.$set(t.contrastList,h,C(C(C({},t.contrastList[h]),c),{},{apps:d})),String(r)===String(t.selectedGroupId)&&t.cacheGroupDisplayName(t.contrastList[h])),o&&(t.checkAppList=d.slice()),n.abrupt("return",d);case 17:return n.prev=17,n.t0=n.catch(5),o&&(t.checkAppList=[]),n.abrupt("return",[]);case 21:case"end":return n.stop()}}),n,null,[[5,17]])})))()},getFavoriteAppDialogData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.favoriteAppDataLoading&&!e.favoriteAppDataLoaded){t.next=2;break}return t.abrupt("return");case 2:return e.favoriteAppDataLoading=!0,t.prev=3,t.next=6,e.$store.dispatch("user/getPkFavoriteAppList",{isSea:0,isDetail:0,pageSize:-1});case 6:n=t.sent,r=n&&(n.groups||n.data&&n.data.groups),e.favoriteAppGroupList=e.getResponseList(r,["list","group_list","groupList","groups"]),e.favoriteAppGroupInitialized=!0,e.favoriteAppList=e.getResponseList(n,["list","apps","app_list","appList"]),e.favoriteAppDataLoaded=!0,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(3),e.favoriteAppList=[];case 17:return t.prev=17,e.favoriteAppDataLoading=!1,t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[3,14,17,20]])})))()},openCollectionGroupCompareDialog:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.collectionGroupCompareVisible){t.next=2;break}return t.abrupt("return");case 2:if(e.pageGroupDeleted=!1,e.dialogPageGroupId=e.deafultId||"",e.dialogPageIsApp=e.defaultIsApp,e.emptyPageGroupsChanged=!1,e.dialogPersistedChange=!1,e.dialogPersistedChangeGroupId="",e.dialogPersistedChangeType="",!e.relationGroupsDirty||e.defaultIsApp){t.next=19;break}return t.next=12,e.fetchLatestRelationGroups();case 12:if(n=t.sent){t.next=15;break}return t.abrupt("return");case 15:e.contrastList=n,e.groupListInitialized=!0,e.checkAppList=[],e.relationGroupsDirty=!1;case 19:if(!e.defaultIsApp){t.next=22;break}return t.next=22,e.getFavoriteAppDialogData();case 22:if(!e.lazyDialogData){t.next=25;break}return e.collectionGroupCompareVisible=!0,t.abrupt("return");case 25:if(e.contrastList.length){t.next=30;break}return t.next=28,e.getGroupList(e.activeId||e.deafultId);case 28:t.next=33;break;case 30:if(!e.activeId){t.next=33;break}return t.next=33,e.getGroupAppList(e.activeId,!0);case 33:e.collectionGroupCompareVisible=!0;case 34:case"end":return t.stop()}}),t)})))()},closeCollectionGroupCompareDialog:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.compareAppsSubmitLoading){t.next=2;break}return t.abrupt("return");case 2:if(!e.pageGroupDeleted&&!e.emptyPageGroupsChanged){t.next=6;break}return t.next=5,e.fallbackDeletedPageGroup();case 5:return t.abrupt("return");case 6:if(!e.dialogPersistedChange){t.next=14;break}return e.compareAppsSubmitLoading=!0,t.prev=8,t.next=11,e.refreshPageGroupAfterDialogChange();case 11:return t.prev=11,e.compareAppsSubmitLoading=!1,t.finish(11);case 14:e.collectionGroupCompareVisible=!1;case 15:case"end":return t.stop()}}),t,null,[[8,,11,14]])}
1)))()},refreshPageGroupAfterDialogChange:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.dialogPersistedChangeGroupId,r="app-group"===e.dialogPersistedChangeType,n){t.next=4;break}return t.abrupt("return");case 4:if(t.prev=4,!r){t.next=11;break}return e.favoriteAppDataLoaded=!1,t.next=9,e.getFavoriteAppDialogData();case 9:t.next=20;break;case 11:return t.next=13,e.fetchLatestRelationGroups();case 13:if(!(o=t.sent)){t.next=20;break}return e.contrastList=o,e.groupListInitialized=!0,t.next=19,e.getGroupAppList(n,!0);case 19:e.relationGroupsDirty=!1;case 20:return t.prev=20,e.$emit("change",{groupId:n,source:"dialog-close-persisted-change",isApp:r}),e.dialogPersistedChange=!1,e.dialogPersistedChangeGroupId="",e.dialogPersistedChangeType="",t.finish(20);case 26:case"end":return t.stop()}}),t,null,[[4,,20,26]])})))()},fetchLatestRelationGroups:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var data,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.$store.dispatch("user/getFollowRelationGroupList",{page:1,pagesize:200});case 3:if(data=t.sent,n=["list","group_list","groupList","groups"],![data,data&&data.data].some((function(source){return Array.isArray(source)||source&&n.some((function(e){return Array.isArray(source[e])}))}))){t.next=8;break}return t.abrupt("return",Array.isArray(data.data)?data.data:e.getResponseList(data,n));case 8:t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:return e.$message.error(e.$t("pages_lang_base_0906_error")),t.abrupt("return",null);case 14:case"end":return t.stop()}}),t,null,[[0,10]])})))()},fallbackDeletedPageGroup:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.compareAppsSubmitLoading){t.next=2;break}return t.abrupt("return");case 2:return e.compareAppsSubmitLoading=!0,t.prev=3,t.next=6,e.fetchLatestRelationGroups();case 6:if(n=t.sent){t.next=9;break}return t.abrupt("return");case 9:r=n[0]||null,o=r?e.getGroupId(r):"",e.contrastList=n,e.groupListInitialized=!0,e.activeId=o,e.checkAppList=[],r?e.cacheGroupDisplayName(r):e.clearGroupDisplayNameCache(),e.$store.commit("pk/base/SET_GROUP_LIST",n),e.$emit("checkGroup",o,0,{deletedFallback:!0}),e.pageGroupDeleted=!1,e.emptyPageGroupsChanged=!1,e.relationGroupsDirty=!1,e.collectionGroupCompareVisible=!1,t.next=26;break;case 24:t.prev=24,t.t0=t.catch(3);case 26:return t.prev=26,e.compareAppsSubmitLoading=!1,t.finish(26);case 29:case"end":return t.stop()}}),t,null,[[3,24,26,29]])})))()},handleCollectionGroupEmptyAction:function(){this.closeCollectionGroupCompareDialog(),this.$goPath("/account/follow/",{tab:"group"},!0)},handleCompareDialogSelectGroup:function(){var e=arguments,t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.length>0&&void 0!==e[0]?e[0]:{},o=t.getGroupId(r)){n.next=4;break}return n.abrupt("return");case 4:if(!t.lazyDialogData){n.next=14;break}return t.collectionGroupDataLoading=!0,n.prev=6,n.next=9,t.getGroupAppList(o,!1,!0);case 9:return n.prev=9,t.collectionGroupDataLoading=!1,n.finish(9);case 12:n.next=16;break;case 14:return n.next=16,t.getGroupAppList(o,!1);case 16:case"end":return n.stop()}}),n,null,[[6,,9,12]])})))()},handleCompareDialogSelectCollection:function(){var e=arguments,t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,l,c,d,data,h;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.length>0&&void 0!==e[0]?e[0]:{},o=r.collection||r,l=t.getCompareCollectionAppId(o),c=t.getFirstValue(r,["group_id","groupId"],"")||t.getGroupId(r.group||{})||t.selectedGroupId,d=t.getCompareCollectionCacheKey(c,l),l&&c&&!Object.prototype.hasOwnProperty.call(t.compareCollectionAppMap,d)&&!t.compareCollectionAppLoadingMap[d]){n.next=7;break}return n.abrupt("return");
1case 7:return t.$set(t.compareCollectionAppLoadingMap,d,!0),n.prev=8,n.next=11,t.$store.dispatch("user/getFollowRelationGroupApp",{type:1,app_id:l,group_id:c,skipDuplicateCancel:!0});case 11:data=n.sent,h=t.getResponseList(data,["list","apps","app_list","appList","children"]),t.$set(t.compareCollectionAppMap,d,h.slice()),n.next=19;break;case 16:n.prev=16,n.t0=n.catch(8),t.$delete(t.compareCollectionAppMap,d);case 19:t.$set(t.compareCollectionAppLoadingMap,d,!1);case 20:case"end":return n.stop()}}),n,null,[[8,16]])})))()},syncCompareCollectionApps:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.cacheKey,r=Array.isArray(t.apps)?t.apps:[];if(n&&Object.prototype.hasOwnProperty.call(this.compareCollectionAppMap,n)){var o=r.reduce((function(map,t){var n=e.getCompareCollectionAppId(t);return n&&(map[n]=1===Number(t.enable_competitor)?1:0),map}),{});this.$set(this.compareCollectionAppMap,n,this.compareCollectionAppMap[n].map((function(t){var n=e.getCompareCollectionAppId(t);return n&&Object.prototype.hasOwnProperty.call(o,n)?C(C({},t),{},{enable_competitor:o[n]}):t})))}},handleCompareDialogConfirmApps:function(){var e=arguments,t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,l,dialog;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.length>0&&void 0!==e[0]?e[0]:{},!t.compareAppsSubmitLoading){n.next=3;break}return n.abrupt("return");case 3:if(o=r.group_id||t.selectedGroupId,l=Array.isArray(r.apps)?r.apps:[],o&&l.length){n.next=7;break}return n.abrupt("return");case 7:return t.compareAppsSubmitLoading=!0,n.prev=8,n.next=11,t.$store.dispatch("user/updateFollowRelationGroupAppCompetitor",{group_id:o,apps:l});case 11:if(n.sent){n.next=14;break}return n.abrupt("return");case 14:t.syncCompareCollectionApps(r),t.$emit("change",{groupId:o,source:"compare-apps"}),(dialog=t.$refs.collectionGroupCompareDialog)&&dialog.backToGroupTab&&dialog.backToGroupTab(),n.next=22;break;case 20:n.prev=20,n.t0=n.catch(8);case 22:return n.prev=22,t.compareAppsSubmitLoading=!1,n.finish(22);case 25:case"end":return n.stop()}}),n,null,[[8,20,22,25]])})))()},handleCollectionGroupCompareConfirm:function(){var e=arguments,t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,l,c,d,h,f,m,_;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.length>0&&void 0!==e[0]?e[0]:{},!t.compareAppsSubmitLoading){n.next=3;break}return n.abrupt("return");case 3:if("fallback"!==r.action){n.next=7;break}return n.next=6,t.fallbackDeletedPageGroup();case 6:return n.abrupt("return");case 7:if(o=t.deafultId,l="app"===r.tab,c=r.group_id||t.getGroupId(r.group||{})||t.selectedGroupId,d=Array.isArray(r.apps)?r.apps:[],c&&d.length){n.next=13;break}return n.abrupt("return");case 13:if(h=String(c)===String(o)&&l===t.defaultIsApp,!1!==r.appsChanged||!h){n.next=19;break}return t.collectionGroupCompareVisible=!1,t.pageGroupDeleted=!1,t.emptyPageGroupsChanged=!1,n.abrupt("return");case 19:if(t.compareAppsSubmitLoading=!0,n.prev=20,(f=String(c)!==String(o)||l!==t.defaultIsApp)&&(t.activeId=c,t.$emit("checkGroup",c,l?1:0)),!1===r.appsChanged){n.next=29;break}return n.next=26,t.$store.dispatch("user/updateFollowRelationGroupAppCompetitor",C({group_id:c,apps:d},"app"===r.tab?{is_favorite:1}:{}));case 26:if(n.sent){n.next=29;break}return n.abrupt("return");case 29:if(t.activeId=c,!l){n.next=36;break}return t.favoriteAppDataLoaded=!1,n.next=34,t.getFavoriteAppDialogData();case 34:n.next=38;break;case 36:return n.next=38,t.getGroupList(c,!0);case 38:m=l?t.favoriteAppGroupList:t.contrastList,(_=m.find((function(e){return String(t.getGroupId(e))===String(c)}))||r.group||null)&&t.cacheGroupDisplayName(_),f||t.$emit("change",{groupId:c,source:"compare-collections"}),t.collectionGroupCompareVisible=!1,t.pageGroupDeleted=!1,t.emptyPageGroupsChanged=!1,n.next=49;break;case 47:n.prev=47,n.t0=n.catch(20);case 49:return n.prev=49,t.compareAppsSubmitLoading=!1,n.finish(49);case 52:case"end":return n.stop()}}),n,null,[[20,47,49,52]])})))()},handleCompareDialogDataChange:function(){var e=arguments,t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,l,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.length>0&&void 0!==e[0]?e[0]:{},(o="app-group"===r.type)?t.favoriteAppDataLoaded=!1:t.relationGroupsDirty=!0,"persisted-change"===r.action&&t.dialogPageGroupId&&String(r.groupId)===String(t.dialogPageGroupId)&&o===t.dialogPageIsApp&&(t.dialogPersistedChange=!0,t.dialogPersistedChangeGroupId=r.groupId,t.dialogPersistedChangeType=r.type),"create"!==r.action||t.dialogPageGroupId||(t.emptyPageGroupsChanged=!0),"delete"===r.action&&(t.dialogPageGroupId&&o===t.dialogPageIsApp&&String(r.groupId)===String(t.dialogPageGroupId)&&(t.pageGroupDeleted=!0),l=function(e){return String(t.getGroupId(e))!==String(r.groupId)},o?t.favoriteAppGroupList=t.favoriteAppGroupList.filter(l):t.contrastList=t.contrastList.filter(l),o===t.defaultIsApp&&t.$store.commit("pk/base/SET_GROUP_LIST",t.pkGroupList.filter(l)),String(r.groupId)===String(t.activeId)&&(t.checkAppList=[]),c="".concat(r.groupId,"__"),Object.keys(t.compareCollectionAppMap).filter((function(e){return 0===e.indexOf(c)}
1)).forEach((function(e){t.$delete(t.compareCollectionAppMap,e),t.$delete(t.compareCollectionAppLoadingMap,e)})));case 6:case"end":return n.stop()}}),n)})))()},handleCompareDialogGroupLimit:function(){this.groupLimitDialogVisible=!0},createGroupFromCollections:function(){var e=arguments,t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,l,c,data,d;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.length>0&&void 0!==e[0]?e[0]:[],o=e.length>1&&void 0!==e[1]?e[1]:"",!t.createGroupSubmitLoading){n.next=4;break}return n.abrupt("return",!1);case 4:if((l=t.getPostApps(r)).length){n.next=7;break}return n.abrupt("return",!1);case 7:return t.createGroupSubmitLoading=!0,n.prev=8,n.next=11,t.$store.dispatch("user/addFollowRelationGroupApps",{group_id:"",group_name:(o||"").trim(),top:0,apps:l});case 11:if(c=n.sent,!t.isRelationGroupAppLimitResult(c)){n.next=16;break}return t.addGroupDialogVisible=!1,t.groupLimitDialogVisible=!0,n.abrupt("return",!1);case 16:if(c){n.next=18;break}return n.abrupt("return",!1);case 18:return data=t.getResponseData(c),d=t.getFirstValue(data,["id","group_id","groupId"],""),n.next=22,t.getGroupList(d);case 22:return d&&t.$emit("checkGroup",d),t.addGroupDialogVisible=!1,n.abrupt("return",!0);case 27:return n.prev=27,n.t0=n.catch(8),n.abrupt("return",!1);case 30:return n.prev=30,t.createGroupSubmitLoading=!1,n.finish(30);case 33:case"end":return n.stop()}}),n,null,[[8,27,30,33]])})))()},openAddGroupDialog:function(){this.openCollectionGroupCompareDialog()},handleAddGroupCollections:function(){var e=arguments,t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>0&&void 0!==e[0]?e[0]:{},o=r.collections||[],l=(r.groupName||"").trim(),n.next=5,t.createGroupFromCollections(o,l);case 5:case"end":return n.stop()}}),n)})))()},closeGroupLimitDialog:function(){this.groupLimitDialogVisible=!1},handleGroupLimitGoDetail:function(){this.closeGroupLimitDialog()},openDropDown:function(){this.openCollectionGroupCompareDialog()},handleChoose:function(e){this.$emit("command",e)},showDrop:function(){}}},k=(n(5200),n(2)),component=Object(k.a)(G,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dd-pk-group-selector dd-flex dd-align-center"},[n("div",{staticClass:"pk-group-trigger dd-flex dd-align-center dd-pointer",on:{click:e.openCollectionGroupCompareDialog}},[n("span",{staticClass:"pk-group-name dd-ellipsis dd-base-color"},[e._v(e._s(e.checkGroupName))]),e._v(" "),n("dd-icon",{attrs:{name:"Dianxiala1",size:"16px",color:"#111111","margin-info":"0 0 0 8px",pointer:""}})],1),e._v(" "),n("dd-pk-collection-group-dialog",{ref:"collectionGroupCompareDialog",attrs:{visible:e.collectionGroupCompareVisible,"default-active-group-id":e.activeId||e.deafultId,"default-active-tab":e.defaultIsApp?"app":"collection","confirm-loading":e.compareAppsSubmitLoading,"page-group-deleted":e.pageGroupDeleted,"empty-page-groups-changed":e.emptyPageGroupsChanged,"market-tags":e.marketTags,"lazy-dialog-data":e.lazyDialogData,"initial-groups":e.contrastList,"initial-collections":e.checkAppList},on:{close:e.closeCollectionGroupCompareDialog,confirm:e.handleCollectionGroupCompareConfirm,"data-change":e.handleCompareDialogDataChange,"group-limit":e.handleCompareDialogGroupLimit}}),e._v(" "),n("dd-follow-add-collection-dialog",{attrs:{visible:e.addGroupDialogVisible,title:e.$t("pages_lang_account_follow_group_compare_20260901_01"),"group-name-placeholder":e.$t("pages_lang_account_follow_group_compare_20260901_02"),"show-group-name-input":"","search-default-market":0,"search-default-country":0,"selected-collections":[],"market-tags":e.marketTags,"submit-loading":e.createGroupSubmitLoading},on:{"update:visible":function(t){e.addGroupDialogVisible=t},confirm:e.handleAddGroupCollections}}),e._v(" "),n("dd-app-batch-action-dialog",{attrs:{visible:e.groupLimitDialogVisible,"selected-apps":[],"show-limit":!0,"limit-back-text":e.$t("components_page_account_controllist_addappmonitor_3224"),"z-index":1100,"append-to-body":""},on:{close:e.closeGroupLimitDialog,goDetail:e.handleGroupLimitGoDetail}})],1)}),[],!1,null,"7c490914",null);t.default=component.exports},745:function(e,t,n){"use strict";n.r(t);n(14);var r=n(20),o={name:"DdPkDropDown",props:{iconColor:{type:String,default:"#ABAEBA"},defaultMarket:{type:Number,default:1},height:{type:String,default:"56px"},tagList:{type:Array,default:function(){return[]}},logoSize:{type:String,default:"40px"},logoRadio:{type:String,default:"8px"},dataIndex:{type:Number,default:1}},data:function(){return{marketLogoMap:r.j,story:{name:"iOS",class:"dd-apple-logo-16",value:1},drop:!1}},computed:{logoStyle:function(){return{width:this.logoSize,height:this.logoSize,borderRadius:this.logoRadio}},storeList:function(){return this.tagList[0].options}},watch:{defaultMarket:{immediate:!0,handler:function(e){this.story=this.storeList.filter((function(t){return t.value===e}))[0]}}},methods:{openDropDown:function(){this.$refs.dropdown.show(),this.showDrop(!0)},handleChoose:function(e){this.story=e,this.$emit("command",e,this.dataIndex)},showDrop:function(e){this.drop=e}}},l=(n(5201),n(2)),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dropdown",{ref:"dropdown",staticClass:"dd-drop-menu",attrs:{slot:"prefix",placement:"bottom",trigger:"click"},on:{command:e.handleChoose,"visible-change":e.showDrop},slot:"prefix"}
1,[r("p",{staticClass:"dd-flex-space dd-align-center dd-flex"},[r("dd-icon",{attrs:{pointer:"",color:e.iconColor,size:"12px",name:e.drop?"Dianshangsheng":"Dianxiajiang"}})],1),e._v(" "),r("el-dropdown-menu",{staticClass:"find-app-list",attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.storeList,(function(t,o){return r("el-dropdown-item",{key:"store-"+o,staticClass:"select-market-item",attrs:{command:t}},[r("p",{staticClass:"dd-flex-start dd-align-center dd-flex select-item-css",style:{height:e.height}},[t.market_id?r("img",{staticClass:"market-icon",attrs:{src:e.marketLogoMap[e.$getMarketDefault(t.market_id)].logo,alt:""}}):e._e(),e._v(" "),r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:{src:t.logo,error:n(43),loading:n(43)},expression:"{ src: item.logo, error: require('@/assets/img/empty/app-empty.png'), loading: require('@/assets/img/empty/app-empty.png') }"}],staticClass:"dd-app-logo",style:e.logoStyle,attrs:{src:n(43),alt:t.name||""}}),e._v(" "),r("span",{staticClass:"app-name-css"},[e._v(e._s(t.name))])])])})),1)],1)}),[],!1,null,"ae6e0702",null);t.default=component.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.