"use strict";(self.webpackChunk_client_app_store=self.webpackChunk_client_app_store||[]).push([[3686],{70602:function(t,n,e){e.r(n),e.d(n,{default:function(){return $}});var i,o,r=function(){var t=this._self._c,n=this._self._setupProxy;return t(n.SWRPage,{attrs:{states:[n.userProfileState]}},[t("div",{staticClass:"page u-pt-8"},[t(n.Cell,{staticClass:"u-flex u-justify-between u-h-56",attrs:{center:"",title:e(11974).nI().t("个性化推荐")},scopedSlots:this._u([{key:"right-icon",fn:function(){return[t(n.VanSwitch,{attrs:{size:"24"},model:{value:n.isSwitch,callback:function(t){n.isSwitch=t},expression:"isSwitch"}})]},proxy:!0}])}),this._v(" "),t("p",{staticClass:"u-mt-7 u-c-base_gray_060 u-text-13 u-weight-400 u-pl-16"},[this._v("\n      "+e(11974).nI().t("将收到更符合个人偏好的功能")+"\n      "),t("a",{staticClass:"u-c-accent_blue u-ml-3",attrs:{href:"javascript:;"},on:{click:n.openDoc}},[this._v(e(11974).nI().t("了解更多"))])])],1)])};r._withStripped=!0;var s=e(90015);e(46562),e(59651),e(63648),e(7176);var a=e(40048),l=e(25405),c=e(30231),u=e(87879),h=e(36565),d=e(65148),f=e(59050),p=e(89557),v=e(5272),g=e(22142),m=(0,f.d)("switch"),y=m[0],b=m[1],C=y({mixins:[v.f],props:{size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:(0,p.N)(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n)}},genLoading:function(){var t=this.$createElement;if(this.loading){var n=this.checked?this.activeColor:this.inactiveColor;return t(g.Z,{class:b("loading"),attrs:{color:n}})}}},render:function(){var t=arguments[0],n=this.checked;return t("div",{class:b({on:n,loading:this.loading,disabled:this.disabled}),attrs:{role:"switch","aria-checked":String(n)},style:this.style,on:{click:this.onClick}},[t("div",{class:b("node")},[this.genLoading()])])}}),w=e(97161),B=e(1774),O=e(96445);function k(t,n,e,i,o,r,s){try{var a=t[r](s),l=a.value}catch(c){e(c);return}a.done?n(l):Promise.resolve(l).then(i,o)}function x(t){return function(){var n=this,e=arguments;return new Promise(function(i,o){var r=t.apply(n,e);function s(t){k(r,i,o,s,a,"next",t)}function a(t){k(r,i,o,s,a,"throw",t)}s(void 0)})}}var S=function(t,n){var e,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(e)throw TypeError("Generator is already executing.");for(;s;)try{if(e=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=n.call(t,s)}catch(a){r=[6,a],i=0}finally{e=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},_={head:{title:e(11974).nI().t("个人设置"),bodyAttrs:{class:["appStore_body_GrayMobile"]},meta:[{name:"viewport",content:"width=device-width, initial-scale=1.0, user-scalable=0, viewport-fit=cover"}]}},P=(0,s.aZ)((i=function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},i=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.forEach(function(n){var i,o;i=t,o=e[n],n in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o})}return t}({},_),o=o={__name:"settings.mobile",setup:function(t){var n,i,o,r,f=(0,l.Yf)().$request,p=(0,O.h)(),v=p.data,g=function(t,n){if(null==t)return{};var e,i,o=function(t,n){if(null==t)return{};var e,i,o={},r=Object.keys(t);for(i=0;i<r.length;i++)e=r[i],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)e=r[i],!(n.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(p,["data"]),m=(0,s.iH)(!(null==v?void 0:null===(o=v.value)||void 0===o?void 0:null===(r=o.myProfileConfig)||void 0===r?void 0:r.close_personalized_recommendation));function y(){return b.apply(this,arguments)}function b(){return(b=x(function(){var t,n;return S(this,function(i){switch(i.label){case 0:console.log("update"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,f(B.Os,{close_personalized_recommendation:!m.value})];case 2:return i.sent(),(t=new BroadcastChannel("app-store:settings-update")).postMessage({recommendSetting:m.value}),t.close(),console.log("BroadcastChannel"),g.mutate(),[3,4];case 3:throw n=i.sent(),console.log("update error"),console.log(n),(0,u.Z)(e(11974).nI().t("设置失败，请稍后再试")),m.value=!m.value,n;case 4:return[2]}})})).apply(this,arguments)}return(0,s.YP)(m,(0,w.debounce)((n=x(function(t){var n,i;return S(this,function(o){return!(null==v?void 0:null===(n=v.value)||void 0===n?void 0:null===(i=n.myProfileConfig)||void 0===i?void 0:i.close_personalized_recommendation)===t?[2]:m.value?(y(),[2]):(h.Z.confirm({message:e(11974).nI().t("关闭后，推荐内将不再显示更符合个人偏好（如职业）的应用功能，可能会影响你查找应用的体验。"),confirmButtonText:e(11974).nI().t("继续关闭"),cancelButtonText:e(11974).nI().t("取消"),overlay:!0}).then(function(){y()}).catch(function(){m.value=!m.value}),[2])})}),function(t){return n.apply(this,arguments)}),200)),{__sfc:!0,$request:f,userInfoData:v,userProfileState:g,isSwitch:m,update:y,openDoc:(i=x(function(){return S(this,function(t){return[2,(0,a.YoN)({url:"https://open.work.weixin.qq.com/spnews?uuid=e8Y6FaXF6gYDxUFA4Fth2D&bar_style_type=3"})]})}),function(){return i.apply(this,arguments)}),SWRPage:c.PL,Cell:d.Z,VanSwitch:C}}},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):(function(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e.push.apply(e,i)}return e})(Object(o)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(o,t))}),i)),$=(0,e(6080).Z)(P,r,[],!1,null,null,null).exports},1774:function(t,n,e){e.d(n,{C$:function(){return a},Gq:function(){return l},Os:function(){return f},Yr:function(){return u},b8:function(){return h},ur:function(){return c},wu:function(){return p},y5:function(){return d},yt:function(){return s}});var i=e(66519),o="appStore/storyTag",r={name:"wwopen",host:"open.work.weixin.qq.com",prefix:"/wwopen/monoApi"},s=(0,i.LC)(o,r,"getFunctionCardDetail"),a=(0,i.LC)(o,r,"getAllCategoryStoryTagList"),l=(0,i.LC)(o,r,"getStoryTagList"),c=(0,i.LC)(o,r,"getFunctionCardList"),u=(0,i.LC)(o,r,"getFunctionCardListByCursor"),h=(0,i.LC)(o,r,"getFunctionCardListByCursorV2"),d=(0,i.LC)(o,r,"getFunctionCardListByCursorV3"),f=(0,i.LC)(o,r,"setMarketPrivacyConfig"),p=(0,i.LC)(o,r,"getMarketConfig")},96445:function(t,n,e){e.d(n,{h:function(){return r}});var i=e(60795),o=e(29260);function r(){return(0,i.h_)(o._f,{},{dedupingInterval:6e4})}},36565:function(t,n,e){e.d(n,{Z:function(){return j}});var i,o=e(7552),r=e(90015),s=e(89622),a=e.n(s),l=e(59050),c=e(89557),u=e(43740),h=e(12891),d=e(26014),f=e(74462),p=(0,l.d)("goods-action"),v=p[0],g=p[1],m=v({mixins:[(0,f.G)("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){var t=arguments[0];return t("div",{class:g({unfit:!this.safeAreaInsetBottom})},[this.slots()])}}),y=e(63498),b=(0,l.d)("goods-action-button"),C=b[0],w=b[1],B=C({mixins:[(0,f.j)("vanGoodsAction")],props:(0,o.Z)({},y.g2,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var t=this.parent&&this.parent.children[this.index-1];return!t||t.$options.name!==this.$options.name},isLast:function(){var t=this.parent&&this.parent.children[this.index+1];return!t||t.$options.name!==this.$options.name}},methods:{onClick:function(t){this.$emit("click",t),(0,y.BC)(this.$router,this)}},render:function(){var t=arguments[0];return t(d.Z,{class:w([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}}),O=(0,l.d)("dialog"),k=O[0],x=O[1],S=O[2],_=k({mixins:[(0,h.e)()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var n=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,function(e){!1!==e&&n.loading[t]&&n.onClose(t),n.loading.confirm=!1,n.loading.cancel=!1})):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genRoundButtons:function(){var t=this,n=this.$createElement;return n(m,{class:x("footer")},[this.showCancelButton&&n(B,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||S("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:x("cancel"),on:{click:function(){t.handleAction("cancel")}}}),this.showConfirmButton&&n(B,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||S("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:x("confirm"),on:{click:function(){t.handleAction("confirm")}}})])},genButtons:function(){var t,n=this,e=this.$createElement,i=this.showCancelButton&&this.showConfirmButton;return e("div",{class:[u.k7,x("footer")]},[this.showCancelButton&&e(d.Z,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||S("cancel")},class:x("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){n.handleAction("cancel")}}}),this.showConfirmButton&&e(d.Z,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||S("confirm")},class:[x("confirm"),((t={})[u.a8]=i,t)],style:{color:this.confirmButtonColor},on:{click:function(){n.handleAction("confirm")}}})])},genContent:function(t,n){var e=this.$createElement;if(n)return e("div",{class:x("content")},[n]);var i=this.message,o=this.messageAlign;if(i){var r,s,l={class:x("message",((r={"has-title":t})[o]=o,r)),domProps:((s={})[this.allowHtml?"innerHTML":"textContent"]=i,s)};return e("div",{class:x("content",{isolated:!t})},[e("div",a()([{},l]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var n=this.message,e=this.slots(),i=this.slots("title")||this.title,o=i&&t("div",{class:x("header",{isolated:!n&&!e})},[i]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||n},class:[x([this.theme]),this.className],style:{width:(0,c.N)(this.width)}},[o,this.genContent(i,e),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}}}),P=e(34046);function $(t){return P.sk?Promise.resolve():new Promise(function(n,e){var s;i&&(s=i.$el,document.body.contains(s))||(i&&i.$destroy(),(i=new(r.ZP.extend(_))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",function(t){i.value=t})),(0,o.Z)(i,$.currentOptions,t,{resolve:n,reject:e})})}$.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){i["confirm"===t?"resolve":"reject"](t)}},$.alert=$,$.confirm=function(t){return $((0,o.Z)({showCancelButton:!0},t))},$.close=function(){i&&(i.value=!1)},$.setDefaultOptions=function(t){(0,o.Z)($.currentOptions,t)},$.resetDefaultOptions=function(){$.currentOptions=(0,o.Z)({},$.defaultOptions)},$.resetDefaultOptions(),$.install=function(){r.ZP.use(_)},$.Component=_,r.ZP.prototype.$dialog=$;var j=$},7176:function(t,n,e){e(59651),e(3458),e(9605),e(53319),e(43134),e(63648),e(777)},5272:function(t,n,e){e.d(n,{f:function(){return i}});var i={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}}},74462:function(t,n,e){function i(t,n){void 0===n&&(n={});var e,i,o=n.indexKey||"index";return{inject:((e={})[t]={default:null},e),computed:((i={parent:function(){return this.disableBindRelation?null:this[t]}})[o]=function(){return(this.bindRelation(),this.parent)?this.parent.children.indexOf(this):null},i),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter(function(n){return n!==t}))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);!function(t,n){var e,i,o=n.$vnode.componentOptions;if(o&&o.children){var r=(e=o.children,i=[],function t(n){n.forEach(function(n){i.push(n),n.componentInstance&&t(n.componentInstance.$children.map(function(t){return t.$vnode})),n.children&&t(n.children)})}(e),i);t.sort(function(t,n){return r.indexOf(t.$vnode)-r.indexOf(n.$vnode)})}}(t,this.parent),this.parent.children=t}}}}}function o(t){return{provide:function(){var n;return(n={})[t]=this,n},data:function(){return{children:[]}}}}e.d(n,{j:function(){return i},G:function(){return o}})}}]);