"use strict";(self.webpackChunk_client_app_store=self.webpackChunk_client_app_store||[]).push([[6975],{31585:function(t,e,n){n.d(e,{i:function(){return s},j:function(){return a}});var o=n(66519),i="report/reportKey",r={name:"wwopen",host:"open.work.weixin.qq.com",prefix:"/wwopen/monoApi"},a=(0,o.LC)(i,r,"getReportKey"),s=(0,o.LC)(i,r,"consumeReportKey")},40217:function(t,e,n){function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){var o,i;o=t,i=n[e],e in o?Object.defineProperty(o,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[e]=i})}return t}n.d(e,{Aj:function(){return m},CX:function(){return f},Cr:function(){return c},IS:function(){return _},Pl:function(){return l},VD:function(){return s},aS:function(){return h},fE:function(){return I},gm:function(){return p},j2:function(){return d}}),(a=s||(s={}))[a.OAUTH2_LOGIN_H5=0]="OAUTH2_LOGIN_H5",a[a.OAUTH2_LOGIN_XCX=1]="OAUTH2_LOGIN_XCX";var i,r,a,s,p,c,u={AppMarketCustomerCase:1e3,AppMarketFuncDescPic:1001,AppMarketFuncDescVideo:1002,AppMarketB2BReply:1003,AppMarketB2bForum:1003,AppMarketB2bForumFunc:1004,WebMarketCustomerCase:2e3,WebMarketFuncDescPic:2001,WebMarketFuncDescVideo:2002,PCMarketCustomerCase:3e3,PCMarketFuncDescPic:3001,PCMarketFuncDescVideo:3002,PCB2BReply:3003,PCMarketB2bForum:3003,PCMarketB2bForumFunc:3004,PCWorkBenchPlus:4e3,PCGroupToolBar:4001,ADOuterWeb:5e3,ADOuterWx:5001,ADOuterWxWork:5002,ADOuterPC:5003},l=o({Market:"Market",Order:"Order",CasePreAuthCode:"CasePreAuthCode",CaseThird:"CaseThird",IsvApi:"IsvApi",WxSCanAppQrCode:"WxSCanAppQrCode",OpenAppUrl:"OpenAppUrl",AppMarketPC:"AppMarketPC",MarketRecommendAd:"MarketRecommendAd",MarketPCRecommendAd:"MarketPCRecommendAd",HwDevice:"HwDevice",MarketSearchAd:"MarketSearchAd",MarketPCSearchAd:"MarketPCSearchAd",MarketCategoryAd:"MarketCategoryAd",MarketPCCategoryAd:"MarketPCCategoryAd",WorkBenchSearch:"WorkBenchSearch",WorkBenchSearchAd:"WorkBenchSearchAd",Message:"Message",Test:"Test",Invite:"Invite",WorkBench:"WorkBench",oauth2:"oauth",auth_test:"auth_test"},Object.keys(u).reduce(function(t,e){return t[e]=e,t},{})),_=o({Message:1,Test:2,Invite:3,IsvApi:4,WorkBench:5,AppMarketPC:6,WxSCanAppQrCode:7,OpenAppUrl:8,AuthLogin_PC:9,AuthLogin_QRCODE:10,WxSCanRegisterQrCode:11,MarketPCRecommendAd:12,MarketSearchAd:13,MarketPCCategoryAd:14,WorkBenchSearch:15,WorkBenchSearchAd:16,oauth2:1,auth_test:2},u),d=o({Market:1,Order:2,CasePreAuthCode:3,CaseThird:4,IsvApi:5,WxSCanAppQrCode:6,OpenAppUrl:7,AppMarketPC:8,WxSCanRegisterQrCode:9,MarketRecommendAd:10,MarketPCRecommendAd:11,HwDevice:13,MarketSearchAd:14,MarketPCSearchAd:15,MarketCategoryAd:16,MarketPCCategoryAd:17,WorkBenchSearch:18,WorkBenchSearchAd:19},u),h=o({Unknow:0,MarketRecommendAd:1,MarketSearchAd:2},u),f=o({Market:1},u),m=4294967295;(i=p||(p={}))[i.AuthMode_Manager=1]="AuthMode_Manager",i[i.AuthMode_User=2]="AuthMode_User",(r=c||(c={}))[r.PaidAppStatusDefault=0]="PaidAppStatusDefault",r[r.PaidAppStatusTryUnlimitedTime=5]="PaidAppStatusTryUnlimitedTime",r[r.PaidAppStatusTry=1]="PaidAppStatusTry",r[r.PaidAppStatusTryExpire=2]="PaidAppStatusTryExpire",r[r.PaidAppStatusPaid=3]="PaidAppStatusPaid",r[r.PaidAppStatusPaidExpire=4]="PaidAppStatusPaidExpire",r[r.PaidAppStatusPaidOverUserUsing=6]="PaidAppStatusPaidOverUserUsing",r[r.PaidAppStatusPaidOverUserClosed=7]="PaidAppStatusPaidOverUserClosed";var I="https://wwcdn.weixin.qq.com/node/wework/images/202310311925.c88cc37179.png"},75054:function(t,e,n){n.d(e,{Ch:function(){return w},GS:function(){return P},RO:function(){return S},S5:function(){return b},Us:function(){return a},Vd:function(){return function t(e){var n=!0,o=!1,i=void 0;try{for(var r,a=Object.keys(e)[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var s=r.value,p=e[s];if(null==p){delete e[s];continue}"object"==typeof p&&Object.keys(p).length&&t(p)}}catch(c){o=!0,i=c}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return e}},YK:function(){return k},Zv:function(){return g},gm:function(){return p},kK:function(){return C},l3:function(){return y},uy:function(){return I},vB:function(){return s},xq:function(){return A}});var o,i,r,a,s,p,c=n(40048),u=n(87879),l=n(79394),_=n(97161),d=n(31585);function h(t,e,n,o,i,r,a){try{var s=t[r](a),p=s.value}catch(c){n(c);return}s.done?e(p):Promise.resolve(p).then(o,i)}function f(t){return function(){var e=this,n=arguments;return new Promise(function(o,i){var r=t.apply(e,n);function a(t){h(r,o,i,a,s,"next",t)}function s(t){h(r,o,i,a,s,"throw",t)}a(void 0)})}}var m=function(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}};function I(t){var e;return Object.assign((e=f(function(){return m(this,function(e){switch(e.label){case 0:return[4,l.Vq.confirm({title:t.title,message:t.body,confirmText:t.button})];case 1:return e.sent()&&t.onClick(),[2]}})}),function(){return e.apply(this,arguments)}),{options:t})}function w(t){var e;return Object.assign((e=f(function(){return m(this,function(e){switch(e.label){case 0:return[4,l.Vq.alert(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){var o,i;o=t,i=n[e],e in o?Object.defineProperty(o,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[e]=i})}return t}({title:t.title,message:t.body},t.button?{confirmText:t.button}:{}))];case 1:return e.sent(),(null==t?void 0:t.onClick)&&t.onClick(),[2]}})}),function(){return e.apply(this,arguments)}),{options:t})}function y(t){return v.apply(this,arguments)}function v(){return(v=f(function(t){return m(this,function(e){switch(e.label){case 0:return[4,g(t,"third/app/settings")];case 1:return e.sent(),[2]}})})).apply(this,arguments)}function g(t,e){if(t.$clientEnv.mng){location.assign("#".concat(e));return}return(0,c.X8f)({url:"https://work.weixin.qq.com/wework_admin/frame#".concat(e),width:800,height:600})}function A(t){return!!t.$userAgent.wecomVersion.gte("3.1.23")||((0,u.Z)(n(11974).nI().t("版本过低，请升级企业微信")),!1)}function b(t){var e,n,o;return{crop_group_id:null!==(o=null===(e=t.$route.query)||void 0===e?void 0:e.from_group_id)&&void 0!==o?o:null===(n=t.$route.query)||void 0===n?void 0:n.crop_group_id}}function C(t){return(0,_.pick)(t.$route.query,["scene_val","install_scene"])}function k(t){var e,n,o,i,r,a,s,p,c=null!==(a=null===(e=t.$route.meta)||void 0===e?void 0:e.source)&&void 0!==a?a:null===(n=t.source)||void 0===n?void 0:n.call(t);if(null===(o=t.$route.query)||void 0===o?void 0:o.delivery_from)return{source:c,delivery_from:null===(s=t.$route.query)||void 0===s?void 0:s.delivery_from};var u=null!==(p=null===(i=t.$route.meta)||void 0===i?void 0:i.delivery_from)&&void 0!==p?p:null===(r=t.deliveryFrom)||void 0===r?void 0:r.call(t);return u?{source:c,delivery_from:u}:t.$route.query.from&&["webview","outside"].includes(t.$route.query.from)?{source:c,delivery_from:t.$route.query.from}:{source:c}}function P(t,e){return M.apply(this,arguments)}function M(){return(M=f(function(t,e){return m(this,function(n){return[2,t.$request(d.j,e)]})})).apply(this,arguments)}function S(t,e){console.log("[lib/btn]openSchemeUrl",e),t.$userAgent.isWechat&&t.$userAgent.wechatVersion.gte("6.5.6")?(0,c.OVP)("launchApplication",{schemeUrl:e}):location.href=e}(o=a||(a={}))[o.recommend=0]="recommend",o[o.add=1]="add",o[o.use=2]="use",o[o.open=3]="open",(i=s||(s={})).Manager="AuthMode_Manager",i.User="AuthMode_User",(r=p||(p={}))[r.uninstalled=0]="uninstalled",r[r.manager=1]="manager",r[r.member=2]="member"},38425:function(t,e,n){n.d(e,{X1:function(){return i},IH:function(){return T},tr:function(){return S},tt:function(){return N}});var o,i,r=n(55517),a=n(40048),s=n(67545);function p(t,e,n,o,i,r,a){try{var s=t[r](a),p=s.value}catch(c){n(c);return}s.done?e(p):Promise.resolve(p).then(o,i)}function c(t){return function(){var e=this,n=arguments;return new Promise(function(o,i){var r=t.apply(e,n);function a(t){p(r,o,i,a,s,"next",t)}function s(t){p(r,o,i,a,s,"throw",t)}a(void 0)})}}var u=function(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}};function l(t){return _.apply(this,arguments)}function _(){return(_=c(function(t){return u(this,function(e){return!s.tq&&s.O5?location.href="https://work.weixin.qq.com/s/app?redirect=".concat(encodeURIComponent(t)):location.href=t,[2]})})).apply(this,arguments)}var d={appForbidManage:function(t){var e=t.promotion_case_info,n=t.app_info;return c(function(){var t;return u(this,function(o){switch(o.label){case 0:if(t=!!e,!s.tq)return[2,l("https://work.weixin.qq.com/wework_admin/frame#third/app/settings")];if(!t)return[3,2];return[4,(0,a._XZ)()];case 1:return"wwapp.openAppSetting:ok"===o.sent().err_msg&&location.reload(),[3,4];case 2:return[4,(0,a.e9$)({appid:n.thirdapp_id})];case 3:"wwapp.openAppForbidManage:ok"===o.sent().err_msg&&location.reload(),o.label=4;case 4:return[2]}})})()},appSettingsForRange:function(t){var e=t.promotion_case_info,n=t.app_info,o=!!e;if(s.tq){if(null==n?void 0:n.isCustomApp)i=s.m$.gte("3.1.10")?"wxwork://appstore_manage?".concat(r.stringify({corpappid:n.corpapp_id,corpappidType:1,highlightCol:1})):"https://open.work.weixin.qq.com/wwopen/tips/update?preset=install3rdApp";else{var i,a,p=o?null===(a=null==e?void 0:e.app_item[0])||void 0===a?void 0:a.thirdapp_id:n.thirdapp_id;i="wxwork://appstore_manage?appid=".concat(p,"&highlightCol=1")}}else i=o?"https://work.weixin.qq.com/wework_admin/frame#apps/solutionCase/apps":"https://work.weixin.qq.com/wework_admin/frame#apps/third/".concat(n.corp_app_id);return l(i)},appSettingsForAuthMode:function(t){var e=t.promotion_case_info,n=t.app_info,o=!!e;if(s.tq){var i,r,a=o?null===(r=null==e?void 0:e.app_item[0])||void 0===r?void 0:r.thirdapp_id:n.thirdapp_id;i="wxwork://appstore_manage?appid=".concat(a,"&highlightCol=2")}else i=o?"https://work.weixin.qq.com/wework_admin/frame#apps/solutionCase/apps":"https://work.weixin.qq.com/wework_admin/frame#apps/third/".concat(n.corp_app_id);return l(i)},appSettings:function(t){var e=t.promotion_case_info,n=t.app_info,o=!!e;if(s.tq){if(null==n?void 0:n.isCustomApp)i=s.m$.gte("3.1.10")?"wxwork://appstore_manage?".concat(r.stringify({corpappid:n.corpapp_id,corpappidType:1,highlightCol:1})):"https://open.work.weixin.qq.com/wwopen/tips/update?preset=install3rdApp";else{var i,a,p=o?null===(a=null==e?void 0:e.app_item[0])||void 0===a?void 0:a.thirdapp_id:n.thirdapp_id;i="wxwork://appstore_manage?appid=".concat(p)}}else i=o?"https://work.weixin.qq.com/wework_admin/frame#apps/solutionCase/apps":"https://work.weixin.qq.com/wework_admin/frame#apps/third/".concat(n.corp_app_id);return l(i)},appExpand:function(t){var e=t.promotion_case_info,n=t.app_info,o=!!e;if(s.tq){if(s.m$.gte("3.1.8"))i=o?"wxwork://appstore_expand?open_case_id=".concat(e.open_case_id):"wxwork://appstore_expand?appid=".concat(n.thirdapp_id);else{var i,r,a=o?null===(r=null==e?void 0:e.app_item[0])||void 0===r?void 0:r.thirdapp_id:n.thirdapp_id;i="wxwork://appstore_manage?appid=".concat(a)}}else i=o?"https://work.weixin.qq.com/wework_admin/frame#apps/third/industry/expand?open_case_id=".concat(e.open_case_id):"https://work.weixin.qq.com/wework_admin/frame#apps/third/expand?appid=".concat(n.corp_app_id);return l(i)},appUpdate:function(t){var e=t.promotion_case_info,n=t.app_info,o=!!e;return l(s.tq?o?"wxwork://appstore_update?open_case_id=".concat(e.open_case_id):"wxwork://appstore_update?appid=".concat(n.thirdapp_id):o?"https://work.weixin.qq.com/wework_admin/frame#apps/third/industry/auth?open_case_id=".concat(e.open_case_id,"&authType=Charge"):"https://work.weixin.qq.com/wework_admin/frame#apps/third/".concat(n.corp_app_id,"?authType=Charge"))},appRenew:function(t){var e=t.promotion_case_info,n=t.app_info,o=!!e;return l(s.tq?o?"wxwork://appstore_renew?open_case_id=".concat(e.open_case_id):"wxwork://appstore_renew?appid=".concat(n.thirdapp_id):o?"https://work.weixin.qq.com/wework_admin/frame#apps/third/industry/renew?open_case_id=".concat(e.open_case_id):"https://work.weixin.qq.com/wework_admin/frame#apps/third/renew?appid=".concat(n.corp_app_id))},appRebuy:function(t){var e=t.promotion_case_info,n=t.app_info,o=!!e;return l(s.tq?o?"wxwork://appstore_rebuy?open_case_id=".concat(e.open_case_id):"wxwork://appstore_rebuy?appid=".concat(n.thirdapp_id):o?"https://work.weixin.qq.com/wework_admin/frame#apps/third/industry/rebuy?open_case_id=".concat(e.open_case_id):"https://work.weixin.qq.com/wework_admin/frame#apps/third/rebuy?appid=".concat(n.corp_app_id))},appStoreDetail:function(t){var e=t.promotion_case_info,n=t.app_info,o=!!e;return l(s.tq?o?"https://open.work.weixin.qq.com/wwopen/industryCase/share/".concat(encodeURIComponent(e.open_case_id)):"wxwork://weworkappstore?".concat(r.stringify({dontcheckpermission:1,dontclosewebview:1,appid:n.thirdapp_id})):o?"https://open.work.weixin.qq.com/wwopen/industryCase/share/".concat(encodeURIComponent(e.open_case_id)):"https://work.weixin.qq.com/wework_admin/frame#apps/appStore/detail/".concat(encodeURIComponent(n.thirdapp_id),"/show"))}};function h(t,e,n,o,i,r,a){try{var s=t[r](a),p=s.value}catch(c){n(c);return}s.done?e(p):Promise.resolve(p).then(o,i)}function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var I=function(t,e){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},w={THIRD_APP:"THIRD_APP",INDUSTRY_CASE:"INDUSTRY_CASE"},y={ADMIN:"ADMIN",MEMBER:"MEMBER"},v={MEMBER:0,CREATE_APP_ADMIN:1,APP_ADMIN:2,SUPER_ADMIN:3};function g(){var t;return t=function(t){return I(this,function(e){switch(e.label){case 0:return[4,(0,a.Hug)({jsApiList:["wwapp.shareAppMessageToAdmin"]})];case 1:if(!e.sent()["wwapp.shareAppMessageToAdmin"])return[3,3];return[4,(0,a.Ieg)(t)];case 2:return e.sent(),[3,4];case 3:location.href="https://open.work.weixin.qq.com/wwopen/tips/update?preset=install3rdApp",e.label=4;case 4:return[2]}})},(g=function(){var e=this,n=arguments;return new Promise(function(o,i){var r=t.apply(e,n);function a(t){h(r,o,i,a,s,"next",t)}function s(t){h(r,o,i,a,s,"throw",t)}a(void 0)})}).apply(this,arguments)}var A={40134:"APP_FORBIDDEN",40136:"TRIAL_EXPIRED",40137:"SERVICE_EXPIRED",40138:"AVAILABLE_USER_EXCEED_LIMIT",40139:"ADDED_USER_EXCEED_LIMIT",40600:"NOT_IN_RANGE",40603:"APP_IS_ADDED","-7000108":"ERROR_FROM_SERVICE_CORP","-7000447":"CANNOT_SET_APP_AUTH_MODE_MANAGER","-7000448":"CANNOT_SET_APP_AUTH_MODE_USER","-1000011":"NOT_IN_RANGE_FOR_868533369",60265:"PERSONAL_APP_INSTALL_EXCEED_LIMIT","-7001207":"ENCRYPT_APP_CONFLIT",40701:"CANNOT_INSTALL_IN_APP_USAGE_MODE_ADMIN_ONLY",CANNOT_INSTALL_WITH_AUTH_MODE_USER:"CANNOT_INSTALL_WITH_AUTH_MODE_USER",CANNOT_MANAGE_APP:"CANNOT_MANAGE_APP",APP_NOT_EXIST:"APP_NOT_EXIST",APP_ALREADY_IS_AUTH_MODE_MANAGER:"APP_ALREADY_IS_AUTH_MODE_MANAGER",CANNOT_INSTALL_IN_AUTH_MODE_MANAGER:"CANNOT_INSTALL_IN_AUTH_MODE_MANAGER"};function b(t){return"https://work.weixin.qq.com/s/app?redirect=".concat(encodeURIComponent(t))}var C=function(){function t(e){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this.options=e}var e,o,i=t.prototype;return i.NOT_IN_RANGE=function(){var t,e=this,o=this.appBaseInfo,i=o.typeName,r=o.appName,a=o.logo;return{hasManagePermission:this.operatorRole>=v.APP_ADMIN,title:n(11974).nI().t("无法使用"),descriptionConfig:(m(t={},y.MEMBER,n(11974).nI().t("{0}当前为管理员授权使用模式，你不在应用的使用范围内，请联系管理员",[i])),m(t,y.ADMIN,n(11974).nI().t("{0}当前为管理员授权使用模式，你不在应用的使用范围内，请修改使用范围",[i])),t),action:{buttonText:n(11974).nI().t("变更可见范围"),onClick:function(){return d.appSettingsForRange({promotion_case_info:e.promotion_case_info,app_info:e.app_info})}},shareConfig:{windowTitle:n(11974).nI().t("申请使用{0}：",[i]),shareTitle:n(11974).nI().t("申请使用{0}",[r]),buttonText:n(11974).nI().t("申请")},contactConfig:{documentTitle:n(11974).nI().t("申请使用{0}",[this.appBaseInfo.typeName]),title:n(11974).nI().t("企业成员申请使用{0}",[this.appBaseInfo.typeName])},funviewShareConfig:{desc:n(11974).nI().t("{0}申请使用{1}：{2}",[this.username,i,r]),inputPlaceholder:n(11974).nI().t("申请理由..."),buttonText:n(11974).nI().t("申请"),businessId:1,msgData:JSON.stringify({card_type:"button_interaction",source:{icon_url:a,desc:r},main_title:{title:n(11974).nI().t("申请使用{0}",[i]),desc:n(11974).nI().t("{0}申请使用{1}“{2}”",[this.username,i,r])},button_list:[{text:n(11974).nI().t("变更{0}可见范围",[i]),style:1,type:2,schema:{mobile_schema_url:this.isIndustryCase?this.urlList.appSettingsForRange[1]:this.urlList.appSettingsForRange[0],min_version_ios:"3.1.8"},url:this.isIndustryCase?this.urlList.appSettingsForRange[3]:this.urlList.appSettingsForRange[2]}],button_column_cnt:1,b_has_avatar:1})}}},i.NOT_IN_RANGE_FOR_868533369=function(){var t,e=this,o=this.appBaseInfo,i=o.typeName,r=o.appName,a=o.logo;return{hasManagePermission:this.operatorRole>=v.APP_ADMIN,title:n(11974).nI().t("无法打开{0}",[i]),descriptionConfig:(m(t={},y.MEMBER,n(11974).nI().t("不在{0}的可见范围内，请联系管理员申请使用。",[i])),m(t,y.ADMIN,n(11974).nI().t("不在{0}的使用范围内，请修改使用范围",[i])),t),action:{buttonText:n(11974).nI().t("变更可见范围"),onClick:function(){return d.appSettingsForRange({promotion_case_info:e.promotion_case_info,app_info:e.app_info})}},shareConfig:{windowTitle:n(11974).nI().t("申请使用{0}：",[i]),shareTitle:n(11974).nI().t("申请使用{0}",[r]),buttonText:n(11974).nI().t("申请")},contactConfig:{documentTitle:n(11974).nI().t("申请使用{0}",[this.appBaseInfo.typeName]),title:n(11974).nI().t("企业成员申请使用{0}",[this.appBaseInfo.typeName])},funviewShareConfig:{desc:n(11974).nI().t("{0}申请使用{1}：{2}",[this.username,i,r]),inputPlaceholder:n(11974).nI().t("申请理由..."),buttonText:n(11974).nI().t("申请"),businessId:1,msgData:JSON.stringify({card_type:"button_interaction",source:{icon_url:a,desc:r},main_title:{title:n(11974).nI().t("申请使用{0}",[i]),desc:n(11974).nI().t("{0}申请使用{1}“{2}”",[this.username,i,r])},button_list:[{text:n(11974).nI().t("变更{0}可见范围",[i]),style:1,type:2,schema:{mobile_schema_url:this.isIndustryCase?this.urlList.appSettingsForRange[1]:this.urlList.appSettingsForRange[0],min_version_ios:"3.1.8"},url:this.isIndustryCase?this.urlList.appSettingsForRange[3]:this.urlList.appSettingsForRange[2]}],button_column_cnt:1,b_has_avatar:1})}}},i.APP_IS_ADDED=function(){var t,e=this,o=this.appBaseInfo.typeName;return{hasManagePermission:this.operatorRole>=v.APP_ADMIN,title:n(11974).nI().t("无法授权"),type:"info",descriptionConfig:(m(t={},y.MEMBER,n(11974).nI().t("已有企业成员授权安装该{0}，可前往企业管理-应用管理查看和管理",[o])),m(t,y.ADMIN,n(11974).nI().t("已有企业成员授权安装该{0}，可前往企业管理-应用管理查看和管理",[o])),t),action:{buttonText:n(11974).nI().t("前往查看"),onClick:function(){return d.appSettings({promotion_case_info:e.promotion_case_info,app_info:e.app_info})}}}},i.APP_FORBIDDEN=function(){var t,e=this,o=this.appBaseInfo,i=o.typeName,r=o.appName,a=o.logo;return{hasManagePermission:this.operatorRole>=v.SUPER_ADMIN,title:n(11974).nI().t("已禁用该{0}",[i]),descriptionConfig:(m(t={},y.MEMBER,n(11974).nI().t("{0}已被企业管理员禁用，请联系管理员进行设置",[r])),m(t,y.ADMIN,n(11974).nI().t("{0}已被企业管理员禁用，你可前往应用详情页进行设置",[r])),t),action:{buttonText:n(11974).nI().t("前往设置"),onClick:function(){return d.appForbidManage({promotion_case_info:e.promotion_case_info,app_info:e.app_info})}},shareConfig:{windowTitle:n(11974).nI().t("申请取消{0}禁用：",[i]),shareTitle:n(11974).nI().t("申请取消应用禁用：{0}",[r]),buttonText:n(11974).nI().t("申请"),inputPlaceholder:n(11974).nI().t("申请理由...")},contactConfig:{documentTitle:n(11974).nI().t("取消{0}禁用",[i]),title:n(11974).nI().t("企业成员申请取消{0}禁用",[i]),desc:n(11974).nI().t("取消禁用后，企业成员可自主授权使用该{0}",[i])},funviewShareConfig:{desc:n(11974).nI().t("{0}申请取消{1}禁用：{2}",[this.username,i,r]),inputPlaceholder:n(11974).nI().t("申请理由..."),buttonText:n(11974).nI().t("申请"),businessId:1,msgData:JSON.stringify({card_type:"button_interaction",source:{icon_url:a,desc:r},main_title:{title:n(11974).nI().t("申请取消{0}禁用",[i]),desc:n(11974).nI().t("{0}申请取消{1}禁用：{2}。取消禁用后，企业成员可自主授权使用该{3}。",[this.username,i,r,i])},button_list:[{text:n(11974).nI().t("前往设置"),style:1,type:1,url:"".concat(this.shareUrl,"&autoRun=1")}],button_column_cnt:1,b_has_avatar:1})}}},i.TRIAL_EXPIRED=function(){var t,e=this,o=this.appBaseInfo,i=o.typeName,r=o.appName;return{hasManagePermission:this.operatorRole>=v.APP_ADMIN,title:n(11974).nI().t("试用已到期"),descriptionConfig:(m(t={},y.MEMBER,n(11974).nI().t("{0}已过试用期限，请联系管理员升级到付费版本",[i])),m(t,y.ADMIN,this.canPay?n(11974).nI().t("{0}已到试用期限，请升级为付费版本",[i]):n(11974).nI().t("{0}已到试用期限，请前往管理后台升级到付费版本",[i])),t),action:{buttonText:this.canPay?n(11974).nI().t("升级为付费版本"):n(11974).nI().t("查看付费版本"),onClick:function(){return d.appUpdate({promotion_case_info:e.promotion_case_info,app_info:e.app_info})}},shareConfig:{windowTitle:n(11974).nI().t("续期提醒："),shareTitle:n(11974).nI().t("续期提醒：{0}",[r])},contactConfig:{documentTitle:n(11974).nI().t("申请使用{0}",[i]),title:n(11974).nI().t("企业成员申请使用{0}",[i])},funviewShareConfig:{desc:n(11974).nI().t("{0}付费提醒：{1}",[i,r]),inputPlaceholder:n(11974).nI().t("留言..."),buttonText:n(11974).nI().t("发送"),businessId:1,msgData:JSON.stringify({card_type:"button_interaction",main_title:{title:n(11974).nI().t("{0}付费提醒",[i]),desc:n(11974).nI().t("“{0}”{1}已到使用期限，请升级到付费版本。",[r,i])},button_list:[{text:n(11974).nI().t("升级为付费版本"),style:1,type:2,schema:{mobile_schema_url:this.isIndustryCase?this.urlList.update[1]:this.urlList.update[0],min_version_ios:"3.1.8"},url:this.isIndustryCase?this.urlList.update[3]:this.urlList.update[2]}],button_column_cnt:1,b_has_avatar:1})}}},i.SERVICE_EXPIRED=function(){var t,e=this,o=this.appBaseInfo,i=o.typeName,r=o.appName;return{hasManagePermission:this.operatorRole>=v.APP_ADMIN,title:n(11974).nI().t("服务已到期"),descriptionConfig:(m(t={},y.MEMBER,n(11974).nI().t("{0}已过服务期限，请联系管理员续期或重新购买{1}服务",[i,i])),m(t,y.ADMIN,this.canPay?n(11974).nI().t("{0}已过服务期限，请续期或购买其他版本",[i]):n(11974).nI().t("{0}已过服务期限，请前往管理后台续期或购买其他版本",[i])),t),action:{buttonText:this.canPay?n(11974).nI().t("续期"):n(11974).nI().t("查看续期详情"),onClick:function(){return d.appRenew({promotion_case_info:e.promotion_case_info,app_info:e.app_info})}},subAction:{buttonText:this.canPay?n(11974).nI().t("购买其他版本"):n(11974).nI().t("查看其他版本"),onClick:function(){return d.appRebuy({promotion_case_info:e.promotion_case_info,app_info:e.app_info})}},shareConfig:{windowTitle:n(11974).nI().t("续期提醒："),shareTitle:n(11974).nI().t("续期提醒：{0}",[r])},contactConfig:{documentTitle:n(11974).nI().t("申请使用{0}",[i]),title:n(11974).nI().t("企业成员申请使用{0}",[i])},funviewShareConfig:{desc:n(11974).nI().t("{0}续费提醒：{1}",[i,r]),inputPlaceholder:n(11974).nI().t("留言..."),buttonText:n(11974).nI().t("发送"),businessId:1,msgData:JSON.stringify({card_type:"button_interaction",main_title:{title:n(11974).nI().t("{0}续费提醒",[i]),desc:n(11974).nI().t("“{0}”{1}已过服务期限，请续期服务或重新购买应用服务。",[r,i])},button_list:[{text:n(11974).nI().t("续期"),style:1,type:2,schema:{mobile_schema_url:this.isIndustryCase?this.urlList.renew[1]:this.urlList.renew[0],min_version_ios:"3.1.8"},url:this.isIndustryCase?this.urlList.renew[3]:this.urlList.renew[2]},{text:n(11974).nI().t("切换应用版本"),style:2,type:2,schema:{mobile_schema_url:this.isIndustryCase?this.urlList.rebuy[1]:this.urlList.rebuy[0],min_version_ios:"3.1.8"},url:this.isIndustryCase?this.urlList.rebuy[3]:this.urlList.rebuy[2]}],button_column_cnt:1,b_has_avatar:1})}}},i.AVAILABLE_USER_EXCEED_LIMIT=function(){var t,e=this,o=this.appBaseInfo,i=o.typeName,r=o.appName;return{hasManagePermission:this.operatorRole>=v.APP_ADMIN,title:n(11974).nI().t("使用人数超限"),descriptionConfig:(m(t={},y.MEMBER,n(11974).nI().t("{0}使用人数已超限，请联系管理员扩容可用人数。",[i])),m(t,y.ADMIN,n(11974).nI().t("{0}使用人数已超限，请扩容可用人数。",[i])),t),action:{buttonText:n(11974).nI().t("扩容可用人数"),onClick:function(){return d.appExpand({promotion_case_info:e.promotion_case_info,app_info:e.app_info})}},shareConfig:{windowTitle:n(11974).nI().t("人数超限提醒："),shareTitle:n(11974).nI().t("人数超限提醒：{0}",[r])},contactConfig:{documentTitle:n(11974).nI().t("申请使用{0}",[i]),title:n(11974).nI().t("企业成员申请使用{0}",[i])},funviewShareConfig:{desc:n(11974).nI().t("{0}扩容提醒：{1}",[i,r]),inputPlaceholder:n(11974).nI().t("留言..."),buttonText:n(11974).nI().t("发送"),businessId:1,msgData:JSON.stringify({card_type:"button_interaction",main_title:{title:n(11974).nI().t("{0}扩容提醒",[i]),desc:n(11974).nI().t("“{0}”{1}使用人数已超限，请扩容可用人数。",[r,i])},button_list:[{text:n(11974).nI().t("扩容可用人数"),style:1,type:2,schema:{mobile_schema_url:this.isIndustryCase?this.urlList.expand[1]:this.urlList.expand[0],min_version_ios:"3.1.8"},url:this.isIndustryCase?this.urlList.expand[3]:this.urlList.expand[2]}],button_column_cnt:1,b_has_avatar:1})}}},i.ADDED_USER_EXCEED_LIMIT=function(){var t,e=this.appBaseInfo.typeName;return{hasManagePermission:this.operatorRole>=v.APP_ADMIN,title:n(11974).nI().t("添加人数超过上限"),descriptionConfig:(m(t={},y.MEMBER,n(11974).nI().t("该{0}当前添加人数已超过上限，请联系管理员修改{1}设置",[e,e])),m(t,y.ADMIN,n(11974).nI().t("该{0}当前添加人数已超过成员授权方式下的人数上限，请前往 企业管理-应用管理 中修改{1}的授权方式。",[e,e])),t)}},i.ERROR_FROM_SERVICE_CORP=function(){return{title:n(11974).nI().t("应用安装失败")}},i.CANNOT_SET_APP_AUTH_MODE_MANAGER=function(){var t=this,e=this.appBaseInfo,o=e.typeName,i=e.appName,r=e.logo;return{hasManagePermission:this.operatorRole>=v.SUPER_ADMIN,title:n(11974).nI().t("无法授权"),descriptionConfig:m({},y.MEMBER,n(11974).nI().t("已自主授权的成员中，部分成员不在你的管理范围内，无权将应用授权方式设置为管理员授权，请联系企业超级管理员。")),action:{buttonText:n(11974).nI().t("前往设置"),onClick:function(){return d.appSettingsForAuthMode({promotion_case_info:t.promotion_case_info,app_info:t.app_info})}},shareConfig:{windowTitle:n(11974).nI().t("申请设置{0}授权方式：",[o]),shareTitle:n(11974).nI().t("申请设置{0}授权方式：{1}",[o,i]),inputPlaceholder:n(11974).nI().t("申请理由..."),buttonText:n(11974).nI().t("申请")},contactConfig:{documentTitle:n(11974).nI().t("申请设置{0}授权方式",[o]),title:n(11974).nI().t("申请将{0}授权方式设置为企业管理员授权使用",[o])},funviewShareConfig:{desc:n(11974).nI().t("申请设置{0}授权方式：{1}",[o,i]),inputPlaceholder:n(11974).nI().t("申请理由..."),buttonText:n(11974).nI().t("申请"),businessId:1,msgData:JSON.stringify({card_type:"button_interaction",source:{icon_url:r,desc:i},main_title:{title:n(11974).nI().t("申请设置应用授权方式"),desc:n(11974).nI().t("{0}申请将{1}“{2}”的授权方式设置为企业管理员授权使用",[this.username,o,i])},button_list:[{text:n(11974).nI().t("前往设置"),style:1,type:2,schema:{mobile_schema_url:this.isIndustryCase?this.urlList.appSettingsForAuthMode[1]:this.urlList.appSettingsForAuthMode[0],min_version_ios:"3.1.8"},url:this.isIndustryCase?this.urlList.appSettingsForAuthMode[3]:this.urlList.appSettingsForAuthMode[2]}],button_column_cnt:1,b_has_avatar:1})}}},i.CANNOT_SET_APP_AUTH_MODE_USER=function(){var t=this,e=this.appBaseInfo,o=e.typeName,i=e.appName,r=e.logo;return{hasManagePermission:this.operatorRole>=v.SUPER_ADMIN,title:n(11974).nI().t("无法授权"),descriptionConfig:m({},y.MEMBER,n(11974).nI().t("应用可见范围中的成员，部分成员不在你的管理范围内，无法将应用的授权方式设置为成员授权使用，请联系企业管理员。")),action:{buttonText:n(11974).nI().t("前往设置"),onClick:function(){return d.appSettingsForAuthMode({promotion_case_info:t.promotion_case_info,app_info:t.app_info})}},shareConfig:{windowTitle:n(11974).nI().t("申请设置{0}授权方式：",[o]),shareTitle:n(11974).nI().t("申请设置{0}授权方式：{1}",[o,i]),inputPlaceholder:n(11974).nI().t("申请理由..."),buttonText:n(11974).nI().t("申请")},contactConfig:{documentTitle:n(11974).nI().t("申请设置{0}授权方式",[o]),title:n(11974).nI().t("申请将{0}授权方式设置为企业成员授权使用",[o])},funviewShareConfig:{desc:n(11974).nI().t("申请设置{0}授权方式：{1}",[o,i]),inputPlaceholder:n(11974).nI().t("申请理由..."),buttonText:n(11974).nI().t("申请"),businessId:1,msgData:JSON.stringify({card_type:"button_interaction",source:{icon_url:r,desc:i},main_title:{title:n(11974).nI().t("申请设置应用授权方式"),desc:n(11974).nI().t("{0}申请将{1}“{2}”的授权方式设置为企业成员授权使用",[this.username,o,i])},button_list:[{text:n(11974).nI().t("前往设置"),style:1,type:2,schema:{mobile_schema_url:this.isIndustryCase?this.urlList.appSettingsForAuthMode[1]:this.urlList.appSettingsForAuthMode[0],min_version_ios:"3.1.8"},url:this.isIndustryCase?this.urlList.appSettingsForAuthMode[3]:this.urlList.appSettingsForAuthMode[2]}],button_column_cnt:1,b_has_avatar:1})}}},i.CANNOT_MANAGE_APP=function(){return{title:n(11974).nI().t("当前账号不是应用管理员"),description:n(11974).nI().t("请使用应用管理员账号进行操作")}},i.APP_NOT_EXIST=function(){var t=this.appBaseInfo.typeName;return{title:n(11974).nI().t("{0}不存在",[t]),description:n(11974).nI().t("该{0}已从企业删除",[t])}},i.APP_ALREADY_IS_AUTH_MODE_MANAGER=function(){var t=this,e=this.appBaseInfo.typeName;return{hasManagePermission:this.operatorRole>=v.APP_ADMIN,title:n(11974).nI().t("当前{0}已是管理员授权模式",[e]),description:n(11974).nI().t("{0}之前已被企业管理员切换为管理员授权模式，可前往应用设置页查看",[e]),action:{buttonText:n(11974).nI().t("前往应用设置"),onClick:function(){d.appSettingsForAuthMode({promotion_case_info:t.promotion_case_info,app_info:t.app_info})}}}},i.CANNOT_INSTALL_WITH_AUTH_MODE_USER=function(){var t,e=this,o=this.appBaseInfo,i=o.typeName,r=o.appName,a=o.desc,s=o.logo;return{hasManagePermission:this.operatorRole>=v.CREATE_APP_ADMIN,title:n(11974).nI().t("无法使用"),descriptionConfig:(m(t={},y.MEMBER,n(11974).nI().t("企业未添加该{0}，请联系管理员开通{1}",[i,i])),m(t,y.ADMIN,n(11974).nI().t("企业未添加该{0}，请先添加{1}",[i,i])),t),action:{buttonText:n(11974).nI().t("添加应用"),onClick:function(){d.appStoreDetail({promotion_case_info:e.promotion_case_info,app_info:e.app_info})}},shareConfig:{windowTitle:n(11974).nI().t("推荐开通{0}：",[i]),shareTitle:n(11974).nI().t("推荐开通{0}：{1}",[i,r])},contactConfig:{documentTitle:n(11974).nI().t("推荐开通{0}",[i]),title:n(11974).nI().t("企业成员推荐开通{0}",[i])},funviewShareConfig:{desc:n(11974).nI().t("{0}推荐开通{1}：{2}",[this.username,i,r]),inputPlaceholder:n(11974).nI().t("推荐理由..."),buttonText:n(11974).nI().t("推荐"),businessId:1,msgData:JSON.stringify({card_type:"button_interaction",source:{icon_url:s,desc:r},main_title:{title:n(11974).nI().t("{0}推荐开通{1}",[this.username,i])},horizontal_content_list:[{keyname:n(11974).nI().t("{0}名称",[i]),value:r},{keyname:n(11974).nI().t("{0}介绍",[i]),value:a},{keyname:n(11974).nI().t("推荐人"),value:this.username}],button_list:[{text:n(11974).nI().t("去开通"),style:1,type:2,schema:{mobile_schema_url:this.isIndustryCase?this.urlList.appStore[1]:this.urlList.appStore[0],min_version_ios:"3.1.8"},url:this.isIndustryCase?this.urlList.appStore[3]:this.urlList.appStore[2]}],button_column_cnt:1,b_has_avatar:1})}}},i.CANNOT_INSTALL_IN_AUTH_MODE_MANAGER=function(){var t,e=this,o=this.appBaseInfo,i=o.typeName,r=o.appName,a=o.desc,s=o.logo;return{hasManagePermission:this.operatorRole>=v.CREATE_APP_ADMIN,title:n(11974).nI().t("无授权添加{0}权限",[i]),descriptionConfig:(m(t={},y.MEMBER,n(11974).nI().t("请联系企业管理员授权添加{0}。",[i])),m(t,y.ADMIN,n(11974).nI().t("企业未添加该{0}，请先添加{1}",[i,i])),t),action:{buttonText:n(11974).nI().t("添加应用"),onClick:function(){d.appStoreDetail({promotion_case_info:e.promotion_case_info,app_info:e.app_info})}},shareConfig:{windowTitle:n(11974).nI().t("推荐开通{0}：",[i]),shareTitle:n(11974).nI().t("推荐开通{0}：{1}",[i,r])},contactConfig:{documentTitle:n(11974).nI().t("推荐开通{0}",[i]),title:n(11974).nI().t("企业成员推荐开通{0}",[i])},funviewShareConfig:{desc:n(11974).nI().t("{0}推荐开通{1}：{2}",[this.username,i,r]),inputPlaceholder:n(11974).nI().t("推荐理由..."),buttonText:n(11974).nI().t("推荐"),businessId:1,msgData:JSON.stringify({card_type:"button_interaction",source:{icon_url:s,desc:r},main_title:{title:n(11974).nI().t("{0}推荐开通{1}",[this.username,i])},horizontal_content_list:[{keyname:n(11974).nI().t("{0}名称",[i]),value:r},{keyname:n(11974).nI().t("{0}介绍",[i]),value:a},{keyname:n(11974).nI().t("推荐人"),value:this.username}],button_list:[{text:n(11974).nI().t("去开通"),style:1,type:2,schema:{mobile_schema_url:this.isIndustryCase?this.urlList.appStore[1]:this.urlList.appStore[0],min_version_ios:"3.1.8"},url:this.isIndustryCase?this.urlList.appStore[3]:this.urlList.appStore[2]}],button_column_cnt:1,b_has_avatar:1})}}},i.PERSONAL_APP_INSTALL_EXCEED_LIMIT=function(){return{title:n(11974).nI().t("添加失败"),description:n(11974).nI().t("该应用已超出安装量限制，暂时无法添加"),action:null}},i.ENCRYPT_APP_CONFLIT=function(){return{title:n(11974).nI().t("无法安装应用"),description:n(11974).nI().t("企业自主加密启用中，无法安装该应用。"),action:null}},i.CANNOT_INSTALL_IN_APP_USAGE_MODE_ADMIN_ONLY=function(){var t,e=this,o=this.appBaseInfo,i=o.typeName,r=o.appName,a=o.desc,s=o.logo;return{hasManagePermission:this.operatorRole>=v.CREATE_APP_ADMIN,title:n(11974).nI().t("无法授权"),descriptionConfig:(m(t={},y.MEMBER,n(11974).nI().t("该应用仅支持管理员授权和使用，可将应用推荐给管理员。")),m(t,y.ADMIN,n(11974).nI().t("企业未添加该{0}，请先添加{1}",[i,i])),t),action:{buttonText:n(11974).nI().t("添加应用"),onClick:function(){d.appStoreDetail({promotion_case_info:e.promotion_case_info,app_info:e.app_info})}},shareConfig:{windowTitle:n(11974).nI().t("推荐开通{0}：",[i]),shareTitle:n(11974).nI().t("推荐开通{0}：{1}",[i,r])},contactConfig:{documentTitle:n(11974).nI().t("推荐开通{0}",[i]),title:n(11974).nI().t("企业成员推荐开通{0}",[i])},funviewShareConfig:{desc:n(11974).nI().t("推荐{0}：{1}",[i,r]),inputPlaceholder:n(11974).nI().t("推荐理由..."),buttonText:n(11974).nI().t("确认"),businessId:1,msgData:JSON.stringify({card_type:"button_interaction",source:{icon_url:s,desc:r},main_title:{title:n(11974).nI().t("{0}向你推荐{1}：{2}",[this.username,i,r])},horizontal_content_list:[{keyname:n(11974).nI().t("{0}名称",[i]),value:r},{keyname:n(11974).nI().t("{0}介绍",[i]),value:a},{keyname:n(11974).nI().t("推荐人"),value:this.username}],button_list:[{text:n(11974).nI().t("去添加"),style:1,type:2,schema:{mobile_schema_url:this.isIndustryCase?this.urlList.appStore[1]:this.urlList.appStore[0],min_version_ios:"3.1.8"},url:this.isIndustryCase?this.urlList.appStore[3]:this.urlList.appStore[2]}],button_column_cnt:1,b_has_avatar:1})}}},e=[{key:"servicecorp_info",get:function(){return this.options.servicecorp_info}},{key:"promotion_case_info",get:function(){return this.options.promotion_case_info}},{key:"app_info",get:function(){return this.options.app_info}},{key:"is_superadmin",get:function(){return this.options.is_superadmin||!1}},{key:"can_manage",get:function(){return this.options.can_manage||!1}},{key:"can_create",get:function(){return this.options.can_create||!1}},{key:"canPay",get:function(){return!s.gn||this.options.is_pay_open||!1}},{key:"username",get:function(){var t,e;return(null===(t=this.options)||void 0===t?void 0:null===(e=t.userInfo)||void 0===e?void 0:e.username)||""}},{key:"baseShareConfig",get:function(){return{title:this.appBaseInfo.appName,desc:this.appBaseInfo.desc,imgUrl:this.appBaseInfo.logo}}},{key:"thirdapp_id",get:function(){var t,e;return this.isIndustryCase?null===(t=null===(e=this.promotion_case_info)||void 0===e?void 0:e.app_item[0])||void 0===t?void 0:t.thirdapp_id:this.app_info.thirdapp_id}},{key:"isIndustryCase",get:function(){var t;return!!(null===(t=this.promotion_case_info)||void 0===t?void 0:t.open_case_id)}},{key:"appBaseInfo",get:function(){var t,e,o,i,r,a;return this.isIndustryCase?{typeName:n(11974).nI().t("方案"),appType:w.INDUSTRY_CASE,appName:null===(i=this.promotion_case_info)||void 0===i?void 0:i.title,logo:null===(r=this.promotion_case_info)||void 0===r?void 0:r.logo,desc:null===(a=this.promotion_case_info)||void 0===a?void 0:a.desc}:{typeName:n(11974).nI().t("应用"),appType:w.THIRD_APP,appName:null===(t=this.app_info)||void 0===t?void 0:t.app_name,logo:null===(e=this.app_info)||void 0===e?void 0:e.logo,desc:null===(o=this.app_info)||void 0===o?void 0:o.slogan}}},{key:"operatorRole",get:function(){var t=v.MEMBER;return this.is_superadmin?t=v.SUPER_ADMIN:this.can_manage?t=v.APP_ADMIN:this.can_create&&(t=v.CREATE_APP_ADMIN),t}},{key:"shareUrl",get:function(){return this.options.shareUrl}},{key:"urlList",get:function(){var t,e,n,o,i,a,s,p,c,u,l,_,d,h,f,m,I,w,y,v;return{update:["wxwork://appstore_update?appid=".concat(encodeURIComponent(null===(t=this.app_info)||void 0===t?void 0:t.thirdapp_id)),"wxwork://appstore_update?open_case_id=".concat(encodeURIComponent(null===(e=this.promotion_case_info)||void 0===e?void 0:e.open_case_id)),b("https://work.weixin.qq.com/wework_admin/frame#apps/third/".concat(encodeURIComponent(null===(n=this.app_info)||void 0===n?void 0:n.corpapp_id),"?authType=Charge")),b("https://work.weixin.qq.com/wework_admin/frame#apps/third/industry/auth?open_case_id=".concat(encodeURIComponent(null===(o=this.promotion_case_info)||void 0===o?void 0:o.open_case_id),"&authType=Charge"))],renew:["wxwork://appstore_renew?appid=".concat(encodeURIComponent(null===(i=this.app_info)||void 0===i?void 0:i.thirdapp_id)),"wxwork://appstore_renew?open_case_id=".concat(encodeURIComponent(null===(a=this.promotion_case_info)||void 0===a?void 0:a.open_case_id)),b("https://work.weixin.qq.com/wework_admin/frame#apps/third/renew?appid=".concat(encodeURIComponent(null===(s=this.app_info)||void 0===s?void 0:s.corpapp_id))),b("https://work.weixin.qq.com/wework_admin/frame#apps/third/industry/renew?open_case_id=".concat(encodeURIComponent(null===(p=this.promotion_case_info)||void 0===p?void 0:p.open_case_id)))],rebuy:["wxwork://appstore_rebuy?appid=".concat(encodeURIComponent(null===(c=this.app_info)||void 0===c?void 0:c.thirdapp_id)),"wxwork://appstore_rebuy?open_case_id=".concat(encodeURIComponent(null===(u=this.promotion_case_info)||void 0===u?void 0:u.open_case_id)),b("https://work.weixin.qq.com/wework_admin/frame#apps/third/".concat(encodeURIComponent(null===(l=this.app_info)||void 0===l?void 0:l.corpapp_id),"?authType=Rebuy")),b("https://work.weixin.qq.com/wework_admin/frame#apps/third/industry/auth?open_case_id=".concat(encodeURIComponent(null===(_=this.promotion_case_info)||void 0===_?void 0:_.open_case_id),"&authType=Rebuy"))],expand:["wxwork://appstore_expand?appid=".concat(encodeURIComponent(null===(d=this.app_info)||void 0===d?void 0:d.thirdapp_id)),"wxwork://appstore_expand?open_case_id=".concat(encodeURIComponent(null===(h=this.promotion_case_info)||void 0===h?void 0:h.open_case_id)),b("https://work.weixin.qq.com/wework_admin/frame#apps/third/expand?appid=".concat(encodeURIComponent(null===(f=this.app_info)||void 0===f?void 0:f.corpapp_id))),b("https://work.weixin.qq.com/wework_admin/frame#apps/third/industry/expand?open_case_id=".concat(encodeURIComponent(null===(m=this.promotion_case_info)||void 0===m?void 0:m.open_case_id)))],appSettingsForRange:["wxwork://appstore_manage?appid=".concat(encodeURIComponent(this.thirdapp_id),"&highlightCol=1"),"wxwork://appstore_manage?appid=".concat(encodeURIComponent(this.thirdapp_id),"&highlightCol=1"),b("https://work.weixin.qq.com/wework_admin/frame#apps/third/".concat(encodeURIComponent(null===(I=this.app_info)||void 0===I?void 0:I.corp_app_id))),b("https://work.weixin.qq.com/wework_admin/frame#apps/solutionCase/apps")],appSettingsForAuthMode:["wxwork://appstore_manage?appid=".concat(encodeURIComponent(this.thirdapp_id),"&highlightCol=2"),"wxwork://appstore_manage?appid=".concat(encodeURIComponent(this.thirdapp_id),"&highlightCol=2"),b("https://work.weixin.qq.com/wework_admin/frame#apps/third/".concat(encodeURIComponent(null===(w=this.app_info)||void 0===w?void 0:w.corp_app_id))),b("https://work.weixin.qq.com/wework_admin/frame#apps/solutionCase/apps")],appStore:["wxwork://weworkappstore?".concat(r.stringify({dontcheckpermission:1,dontclosewebview:1,appid:this.thirdapp_id})),"https://open.work.weixin.qq.com/wwopen/industryCase/share/".concat(encodeURIComponent(null===(y=this.promotion_case_info)||void 0===y?void 0:y.open_case_id)),"https://open.work.weixin.qq.com/appStore/app?appId=".concat(encodeURIComponent(this.thirdapp_id),"&auth_source=pc_market_reco"),"https://open.work.weixin.qq.com/appStore/industryCase?case_id=".concat(encodeURIComponent(null===(v=this.promotion_case_info)||void 0===v?void 0:v.open_case_id),"&auth_source=pc_market_reco")]}}}],f(t.prototype,e),o&&f(t,o),t}(),k=n(97161),P=n(31585),M=n(75054);function S(t,e){var o,r,a=e.caseInfo,s=e.installRes;if(!s.errcode&&!(0,k.keys)(null==s?void 0:null===(p=s.err_info)||void 0===p?void 0:p.open_case).length&&!(null==s?void 0:null===(c=s.err_info)||void 0===c?void 0:null===(u=c.app_list)||void 0===u?void 0:u.length)){E(t,i.case,a.open_case_id),e.isMemberAuth&&t.$reportStat({key:t.$clientEnv.statKey,item:"app_add_colleague_sucess_from_addpage",value:null===(l=t.range)||void 0===l?void 0:l.reportCount,immediate:!0});return}if(1===a.case_type){var p,c,u,l,_,d=null==s?void 0:null===(_=s.err_info)||void 0===_?void 0:_.open_case,h=(null==d?void 0:d.errmsg)||s.humanMessageMap[null==d?void 0:d.errcode]||n(11974).nI().t("错误码：{0}",[null==s?void 0:s.errcode]);return{type:"modal",title:n(11974).nI().t("安装失败"),body:h}}if(0===a.case_type){t.$set(t,"batchErrInfo",s),t.$router.push({query:(o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){var o,i;o=t,i=n[e],e in o?Object.defineProperty(o,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[e]=i})}return t}({},t.$route.query),r=r={fail:"1"},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n.push.apply(n,o)}return n})(Object(r)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(r,t))}),o)});return}}function T(t,e){var o,r,p=e.appInfo,c=e.installRes;if(!c.errCode){E(t,i.app,null==p?void 0:p.thirdapp_id),e.isMemberAuth&&t.$reportStat({key:t.$clientEnv.statKey,item:"app_add_colleague_sucess_from_addpage",value:null===(r=t.range)||void 0===r?void 0:r.reportCount,immediate:!0}),(null===(o=t.$route.query)||void 0===o?void 0:o.open_report_key)&&function(t,e){t.$request(P.i,{reportKey:e})}(t,t.$route.query.open_report_key);return}var u=c.humanMessage||n(11974).nI().t("错误码：{0}",[c.errCode]);return{type:"modal",title:function(t){var e,o=t.errcode,i=t.errmsg,r=A[o];if(!r)return{title:i||n(11974).nI().t("安装失败，请重试")};var p=new C(t),c=p[r](),u=c.hasManagePermission?y.ADMIN:y.MEMBER;if((null===(e=c.descriptionConfig)||void 0===e?void 0:e[u])&&(c.description=c.descriptionConfig[u]),c.hasManagePermission)return c;delete c.action,delete c.subAction;var l=s.Dt||s.gn,_=s.m$.gte("3.1.23")&&(s.V5||s.pf);if(!c.shareConfig||!l&&!_)return c;var d=s.m$.gte("3.1.18")&&l;return c.action={buttonText:n(11974).nI().t("联系管理员"),onClick:function(){if((d||_)&&c.funviewShareConfig)(0,a.Lq5)(c.funviewShareConfig);else{var t,e;!function(t){g.apply(this,arguments)}((t=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){m(t,e,n[e])})}return t}({},p.baseShareConfig,c.shareConfig),e=e={link:p.shareUrl},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n.push.apply(n,o)}return n})(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t))}}},c}({errcode:c.errCode,app_info:p}).title||n(11974).nI().t("安装失败"),body:u}}function E(t,e,n){var o=N(t,e);o&&t.$reportStat({key:t.$clientEnv.statKey,item:o,strid:n,immediate:!0})}function N(t,e){var n;return("app"===e?{recotab:"pc_market_recotab",home:"pc_market_home",classification:"pc_market_classification",search:"pc_market_search",webview:"pc_market_reco"}:{recotab:"pc_market_recotab_solu",classification:"pc_market_classification_solu",search:"pc_market_search_solu",webview:"pc_market_reco_solu"})[(null===(n=t.$route.query)||void 0===n?void 0:n.delivery_from)||(0,M.YK)(t).delivery_from]}(o=i||(i={})).app="app",o.case="case"}}]);