"use strict";(self.webpackChunk_client_app_store=self.webpackChunk_client_app_store||[]).push([[2011],{94944:function(e,t,n){n.d(t,{Z:function(){return i}});var r=function(){return(0,this._self._c)("img",{staticClass:"dev_logo",attrs:{src:this.src,alt:this.alt}})};r._withStripped=!0;var i=(0,n(6080).Z)({name:"Logo",props:{src:{type:String,required:!0},alt:{type:String,default:null}}},r,[],!1,null,"1010b802",null).exports},92378:function(e,t,n){n.d(t,{Z:function(){return f}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"auth_agreement"},[e.needConfirm?t("WWCheckbox",{on:{change:e.onChange},model:{value:e.isCheck,callback:function(t){e.isCheck=t},expression:"isCheck"}}):e._e(),e._v(" "),t("span",{staticClass:"u-c-base_gray_050"},[e._v(n(11974).nI().t("已阅读并同意"))]),e._v(" "),e._l(e.agreementList,function(n,r){return[n.link?t("a",{key:r,attrs:{href:"javascript:;"},on:{click:function(t){return t.stopPropagation(),e.openUrl(n.link)}}},[e._v(e._s(n.text))]):e._e()]})],2)};r._withStripped=!0;var i=n(40048),o=n(15679),u=n(16815),c=n(97161),a=n(19669);function l(e,t,n,r,i,o,u){try{var c=e[o](u),a=c.value}catch(l){n(l);return}c.done?t(a):Promise.resolve(a).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function u(e){l(o,r,i,u,c,"next",e)}function c(e){l(o,r,i,u,c,"throw",e)}u(void 0)})}}n(12443);var p=function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(n)throw TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(e,u)}catch(c){o=[6,c],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},_={name:"AuthAgreement",components:{WWCheckbox:o.w4},props:{agreements:{type:Array,default:function(){return[]}}},data:function(){return{needConfirm:!1,isCheck:!1}},computed:{agreementList:function(){var e=[];if((0,c.some)(this.agreements,{is_show_pay_agreement:!0})){var t=encodeURIComponent((0,c.chain)(this.agreements).filter(function(e){return e.is_show_pay_agreement}).map(function(e){return e.str_thirdappid}).value().join(","));e.push({text:n(11974).nI().t("《服务协议》"),link:"https://open.work.weixin.qq.com/wwopen/manual/appStore/service?str_thirdappid=".concat(t)})}if((0,c.some)(this.agreements,{is_show_private_agreement:!0})){var r=encodeURIComponent((0,c.chain)(this.agreements).filter(function(e){return e.is_show_private_agreement}).map(function(e){return e.str_thirdappid}).value().join(","));e.push({text:n(11974).nI().t("《隐私政策》"),link:"https://open.work.weixin.qq.com/wwopen/manual/appStore/privacy?str_thirdappid=".concat(r)})}return e.push({text:n(11974).nI().t("《平台用户协议》"),link:"https://open.work.weixin.qq.com/wwopen/agreement/appstore"}),e}},mounted:function(){this.fetchData()},methods:{onChange:function(e){e&&this.$reportStat({key:this.$clientEnv.statKey,item:"addapp_auth_contract_usercheck"})},fetchData:function(){return s(function(){var e,t;return p(this,function(n){switch(n.label){case 0:return[4,this.$request(a.w)];case 1:return t=null==(e=n.sent())?void 0:e.config_option.find(function(e){return"thirdapp_install_protocal_confirm"===e.key}),this.needConfirm=t&&"1"===t.value,[2]}})}).apply(this)},checkAgreement:function(){return s(function(){var e;return p(this,function(t){return(e=this,this.$reportStat({key:this.$clientEnv.statKey,item:"addapp_auth_bt_click"}),this.agreements.length&&this.needConfirm&&!this.isCheck)?[2,new Promise(function(t){var r=u.W.confirm({header:n(11974).nI().t("温馨提示"),body:function(t){return t("p",{},[n(11974).nI().t("我已阅读并同意"),e.agreementList.map(function(n){return t("a",{on:{click:function(){e.openUrl(n.link)}},attrs:{href:"javascript:;"},style:{textDecoration:"none",color:"var(--ww_accent_blue_darken_2,#1F68C5)"}},n.text)})])},width:"320px",confirmBtn:n(11974).nI().t("同意"),cancelBtn:n(11974).nI().t("取消"),closeBtn:!0,showHeader:!0,showOverlay:!0,onConfirm:function(){e.$reportStat({key:e.$clientEnv.statKey,item:"addapp_auth_contract_popup_agree"}),e.isCheck=!0,t(!0),r.destroy()},onClose:function(){e.$reportStat({key:e.$clientEnv.statKey,item:"addapp_auth_contract_popup_cancel"}),t(!1),r.destroy()}})})]:[2,!0]})}).apply(this)},openUrl:function(e){return console.log(e),(0,i.X8f)({url:e,width:800,height:600}),!1}}},f=(0,n(6080).Z)(_,r,[],!1,null,"6150b170",null).exports},2271:function(e,t,n){n.d(t,{HU:function(){return y},Ig:function(){return a},Iu:function(){return v},Md:function(){return m},T4:function(){return h},Ty:function(){return s},X$:function(){return i},Y1:function(){return _},bA:function(){return d},ij:function(){return f},ko:function(){return l},zi:function(){return p}});var r,i,o=n(97161);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r,i;r=e,i=n[t],t in r?Object.defineProperty(r,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[t]=i})}return e}function c(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function a(e){if(!(null==e?void 0:e.name))return e;var t={1:n(11974).nI().t("固定总价"),2:n(11974).nI().t("固定单价（按人）"),3:n(11974).nI().t("累进阶梯定价"),4:n(11974).nI().t("到达阶梯定价")},r={1:n(11974).nI().t("/年"),2:n(11974).nI().t("/人/年"),3:n(11974).nI().t("起/年"),4:n(11974).nI().t("起/年")},i="",u=0;if(e.price_rule=e.price_rule||{},1===e.priceinfo_type)i=n(11974).nI().t("免费试用"),e.price_rule={},(null==e?void 0:null===(a=e.try_rule_info)||void 0===a?void 0:a.try_rule_type)!==0&&(i+=n(11974).nI().t("{0}天",[null==e?void 0:null===(l=e.try_rule_info)||void 0===l?void 0:l.try_time]));else if(e.open_case_id)u=e.starting_price;else{var c=e.price_rule.rule_type;if(i=t[e.price_rule.rule_type],1===c)u=e.price_rule.fixed_price;else if(2===c)u=e.price_rule.fixed_unit_price;else if([3,4].includes(c)){var a,l,s,p,_,f=null==e?void 0:null===(s=e.price_rule)||void 0===s?void 0:null===(p=s.step_price_rule)||void 0===p?void 0:null===(_=p.item_list)||void 0===_?void 0:_[0];u=(null==f?void 0:f.step_price_rule_type)===1?f.fixed_price:(null==f?void 0:f.incremental_unit)*(null==f?void 0:f.incremental_price)}}return e.discountRule=[],e.discount_rule_list&&(e.discountRule=e.discount_rule_list.list),e.presentRule=[],e.present_rule_list&&(e.presentRule=e.present_rule_list.list),e.features=[],e.version_bright_spot&&(e.features=e.version_bright_spot.bright_spot_list),o.extend({},e,{priceText:{rule:i,price:(u/100||0).toFixed(2),unit:r[e.price_rule.rule_type||3]}})}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{canManage:!0,isPayOpen:!0};return e.map(function(r){var o=a(r),l=t.canManage&&t.source!==i.jsapi?n(11974).nI().t("前往企业管理后台购买"):n(11974).nI().t("购买");return t.isPayOpen||(l=t.canManage?n(11974).nI().t("前往企业管理后台购买"):n(11974).nI().t("联系管理员购买")),1===e.length?l=n(11974).nI().t("前往企业管理后台购买"):"Rebuy"===t.type?l=n(11974).nI().t("前往企业管理后台购买"):1===r.priceinfo_type&&(l=n(11974).nI().t("添加")),c(u({},o),{standardpriceinfoid:r.standardpriceinfoid||r.priceinfoid,priceText:c(u({},o.priceText),{btn:l})})})}(r=i||(i={})).memberAuth="memberAuth",r.jsapi="jsapi";var s={84081:[n(11974).nI().t("含待支付订单")],84082:[n(11974).nI().t("含退款中订单")],84095:[n(11974).nI().t("试用版")],84096:[n(11974).nI().t("试用版")],84097:[n(11974).nI().t("含待生效订单")],84098:[n(11974).nI().t("无人数限制版本")],84099:[n(11974).nI().t("免费应用")],84100:[n(11974).nI().t("免费应用")],84101:[n(11974).nI().t("已使用付费版")],84102:[n(11974).nI().t("版本已过期")],84110:[n(11974).nI().t("免费应用")],84117:[n(11974).nI().t('包含原"正式版"时长，需联系服务商代下单')],84118:[n(11974).nI().t('包含原"正式版"时长，需联系服务商处理')],84120:[n(11974).nI().t("服务商已删除当前版本")],84124:[n(11974).nI().t("行业方案应用")],84135:[n(11974).nI().t("已禁用")]},p={Buy:"is_can_add_default_order",Expand:"is_can_add_expand_order",Renew:"is_can_add_renewal_order",Charge:"is_can_update_to_paid_version",Virtual:"is_can_update_to_normal_version"};function _(e,t){return e&&t&&t.price_rule?(null==t?void 0:t.is_delete)?"DELETE":1===e.price_rule_type&&1!==t.price_rule.rule_type?"TOTAL":1!==e.price_rule_type&&1===t.price_rule.rule_type?"PERSON":void 0:void 0}function f(e,t,n,r){return"Expand"===e?"PERSON"!==t:"Renew"===e?"TOTAL"===t:!!r.price_rule&&1!==r.price_rule.rule_type}function d(e){var t;return(null==e?void 0:null===(t=e.price_rule)||void 0===t?void 0:t.price_period)===31}function h(e,t){if(t=o.extend({prefix:!0},t),0===e)e="0.00";else{if(!e)return"-";o.isNumber(e)&&(e=(e/100).toFixed(2))}return t.prefix&&(e="\xa5".concat(e)),e}function v(e){return e?e/365%1==0?n(11974).nI().t("{0}年",[e/365]):n(11974).nI().t("{0}天",[e]):e}function y(e){return e?(e.discount_factor/e.discount_dtr*10).toFixed(1):e}function m(e,t){return 4294967295===e?n(11974).nI().t("无限制"):(null==t?void 0:t.unit)?e+t.unit:e}}}]);