1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ac999b52-060b-4095-9225-b0df2d54b9e6",e._sentryDebugIdIdentifier="sentry-dbid-ac999b52-060b-4095-9225-b0df2d54b9e6")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"20260930061839"},(self.webpackChunkflomo=self.webpackChunkflomo||[]).push([[3428],{23428:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return _}}),a(92529);var i=a(19252),s=a(30112),r=a(67631),n=a(78821),o=a(73430),d=a(88322),p=a(63847),c=a(41817);const u=a(40232);var l=a(26983);u.extend(l);var h={components:{GlobalModal:p.A,Wrapper:c.mO,Header:c.Y9,Title:c.hE,Description:c.VY,MemberExclusiveFeatureImage:c.sS,ActionButton:c.rA,HintText:c.XY,HintTextLink:c.D6,DiscountRate:c.Ur,TimeBlock:c.Rs,AndText:c.Zc},mixins:[d.A],data(){return{show:!1,countDownInfo:{days:0,hours:0,minutes:0,seconds:0},timer:null,checkPaySuccessTimer:null,is_mobile:document.body.clientWidth<=640,autoRenewalOption:[],isMAS:!1,loading:!1}},setup(){const{track:e}=(0,o.Vu)();return{track:e}},computed:{currentLanguage(){return["zh","en"].includes(this.language)?this.language:"zh"},language(){return this.getLanguage()},in_wechat(){return/MicroMessenger/i.test(window.navigator.userAgent)},me(){return this.$store.getters.me},isDark(){return document.body.classList.contains("dark_mode")},pro_expired_date(){return this.$store.getters.pro_expired_date},pro_expired_date_7(){return this.$store.getters.pro_expired_date_7},pro_expired_date_7_after(){return u(this.me.pro_expired_at).add(7,"day").format("YYYY/MM/DD","zh-cn")},pro_expired_date_30_after(){return u(this.me.pro_expired_at).add(30,"day").format("YYYY/MM/DD","zh-cn")},user_created_at(){return this.me.created_at},isSameDate(){return u(this.user_created_at).isSame(u(this.pro_expired_date),"day")},expiredStatus(){const e=u(),t=u(this.pro_expired_date),a=u(this.pro_expired_date_7),i=u(this.pro_expired_date_7_after),s=u(this.pro_expired_date_30_after);return e.isSame(t,"day")&&!this.isSameDate?"expired_current_day":e.isAfter(a)&&e.isBefore(t)&&!this.isSameDate?"expired_7":e.isAfter(i)&&e.isBefore(s)&&!this.isSameDate?"expired_7_after":""},expiredStatusString(){const e=u(),t=u(this.pro_expired_date);return e.isSame(t,"day")?"on_expire":e.isBefore(t)?"before_expire":"after_expire"},eventName(){return{expired_current_day:"æ¯ä»å¼¹çª_ç»è´¹æé_å½å¤©",expired_7:"æ¯ä»å¼¹çª_ç»è´¹æé_7天å
",expired_7_after:"æ¯ä»å¼¹çª_ç»è´¹æé_7天å"}[this.expiredStatus]},showRenewalReminderPopupStatus(){return this.$store.getters["renewal/showRenewalReminderPopupStatus"]},showRenewalReminderPopupStatus_7(){return this.$store.getters["renewal/showRenewalReminderPopupStatus_7"]},expired_day(){const e=u(),t=u(this.pro_expired_date);return u.duration(e.diff(t)).days()},isPro(){return this.$store.getters.is_pro}},methods:{renewal(){return this.track("renew_pay_click",{plan:"pro_annual"}),this.in_wechat?(e=()=>{this.$message.success("æ¯ä»æå");const e=this.$route.query;(0,r.A)("è´ä¹°ä¼å-微信","è´ä¹°æå",e.from?e.from:""),this.$store.dispatch("getUser"),this.$store.dispatch("payFeedback/updatePaymentMethod","wxpay"),this.showPayConfirm(),that.trackPaySuccess("wechat")},void n.default.call("POST","/pro/wechat_pay",{},t=>{t.data&&0===t.data.code&&WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:t.data.data.appid,timeStamp:t.data.data.timeStamp,nonceStr:t.data.data.nonce_str,package:"prepay_id="+t.data.data.prepay_id,signType:"MD5",paySign:t.data.data.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg&&e()})})):this.yearPlanRenewal();var e},checkPaySuccess(){const e=this;let t=0;e.checkPaySuccessTimer=setInterval(()=>{n.default.call("GET","/user/me",{},async t=>{if(t.data&&0===t.data.code){const{pro_expired_at:a}=t.data.data;new Date(a).getTime()>
1new Date(e.me.pro_expired_at).getTime()?(e.$store.commit("setMe",t.data.data),e.$message.success(e.$t("pages.Membership.pay_success")),await e.$store.dispatch("loadNotificationUnreadPreview"),clearInterval(e.checkPaySuccessTimer)):console.log("æªæ¯ä»")}}),t++,t>40&&clearInterval(e.checkPaySuccessTimer)},3e3)},showPayConfirm(){const e=this;e.$confirm(e.$t("subscription.pay.text"),e.$t("subscription.pay.confirm"),{confirmButtonText:e.$t("subscription.pay.success"),cancelButtonText:e.$t("subscription.pay.fail"),customClass:"confirm",dangerouslyUseHTMLString:!0}).then(()=>{(0,r.A)("æ¯ä»ç¶æ","æ¯ä»æå"),e.getUser(),e.$store.dispatch("loadNotificationUnreadPreview"),e.$store.dispatch("renewal/showRenewalSuccessPopup",!0),e.trackPaySuccess("alipay")}).catch(()=>{(0,r.A)("æ¯ä»ç¶æ","æ¯ä»å¤±è´¥"),e.$store.dispatch("payFeedback/show",!0)})},getUser(){n.default.call("GET","/user/me",{},e=>{e.data&&0===e.data.code&&this.$store.commit("setMe",e.data.data)})},notifyServer(e,t){const a=this;n.default.call("POST","/pro/apple_mac",{transactionReceipt:e,user_id:a.me.id},e=>{a.loading=!1,e.data&&0===e.data.code&&(t?a.$message.success(a.$t("pages.Membership.restore_success")):a.$message.success(a.$t("pages.Membership.pay_success")),a.$store.commit("setMe",e.data.data))})},masAppPurchase(){const e=this;e.loading=!0,window.ipcRenderer.once("iap-purchase-success",(t,a)=>{e.trackPaySuccess("apple_pay"),e.notifyServer(a.data)}),window.ipcRenderer.once("iap-purchase-fail",()=>{e.loading=!1,e.$message.error(e.$t("pages.Membership.pay_fail")),e.$store.dispatch("payFeedback/updatePaymentMethod","mas"),e.$store.dispatch("payFeedback/show",!0)}),window.ipcRenderer.send("iap-purchase","membership_year_desktop")},yearPlanRenewal(){const e=this;let t=i.xH+"/yearly";if(this.is_mobile&&this.$route.query.hide_menu)this.$emit("membership-clicked","from=account");else{if(e.$isElectron)return e.isMAS?void e.masAppPurchase():(e.$store.dispatch("payFeedback/updatePaymentMethod","alipay"),s.default.emit("showAlipayModal","yearly"),void this.close());e.$store.dispatch("payFeedback/updatePaymentMethod","alipay"),window.open(t,"_blank"),this.close(),e.showPayConfirm()}},close(){this.show=!1,(0,r.A)(this.eventName,"å
³é"),this.track("renew_dismiss")},membershipExpirationCountdown(){const e=this;function t(){const t=u(),a=u(e.pro_expired_date),i=u.duration(a.diff(t));let s=i.days(),r=i.hours(),n=i.minutes(),o=i.seconds();if(s<0)return void clearInterval(e.timer);const d=e=>e<10?"0"+e:e;s=d(s),r=d(r),n=d(n),o=d(o),e.countDownInfo={days:s>0?s:0,hours:r,minutes:n,seconds:o}}t(),this.timer=setInterval(t.bind(this),1e3)},checkRenewalReminderPopup(){const{apple_mac_subscription:e,apple_subscription:t,google_play_subscription:a}=this.me,i=e||t||a;if(this.expiredStatus&&!this.showRenewalReminderPopupStatus[this.expiredStatus]&&this.me.id&&!this.$route.query.hide_menu&&!this.autoRenewalOption.length&&!i){if("expired_7"===this.expiredStatus&&this.showRenewalReminderPopupStatus_7&&"false"==this.showRenewalReminderPopupStatus_7)return;this.$store.dispatch("renewal/setShowRenewalReminderPopupStatus",this.expiredStatus),this.show=!0,this.membershipExpirationCountdown(),(0,r.A)(this.eventName,"å±ç¤º"),this.track("renew_view")}},getAutoRenewalOption(){this.isPro?n.default.call("GET","/subscription/",{},e=>{e.data&&0===e.data.code&&(this.autoRenewalOption=e.data.data,this.checkRenewalReminderPopup())}):setTimeout(()=>{this.checkRenewalReminderPopup()},5e3)},trackPaySuccess(e){this.track("renew_purchase",{plan:"pro_annual",payment_method:e})}},mounted(){this.getAutoRenewalOption(),this.isMAS=null!=window.isMAS&&window.isMAS,s.default.on("showRenewalDialog",()=>{this.show=!0,this.membershipExpirationCountdown(),(0,r.A)(this.eventName,"å±ç¤º"),this.isMAS=null!=window.isMAS&&window.isMAS,this.track("renew_view")})}},m=h,_=(0,a(53460).A)(m,function(){var e=this,t=e._self._c;return t("GlobalModal",{ref:"globalDialog",attrs:{dialogVisible:e.show,width:e.is_mobile?"320px":"540px",className:"renewalReminderPopup"},on:{"update:dialogVisible":function(t){e.show=t},"update:dialog-visible":function(t){e.show=t},onClose:e.close}},[t("Wrapper",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{padding:e.is_mobile?"10px 0":"15px",margin:e.is_mobile?"0":"0 10px"}},[t("Header",[t("Title",[e._v(" "+e._s(e.$t("membershipRenewal.renewalReminderPopup.title"))+" ")]),"expired_7"==e.expiredStatus?t("Description",[e.countDownInfo.days>
10?t("TimeBlock",[e._v(e._s(e.countDownInfo.days))]):e._e(),e.countDownInfo.days>0?t("span",{staticStyle:{margin:"0 5px"}},[e._v(e._s(e.$t("membershipRenewal.renewalReminderPopup.content")))]):e._e(),t("TimeBlock",[e._v(e._s(e.countDownInfo.hours))]),e._v(" : "),t("TimeBlock",[e._v(e._s(e.countDownInfo.minutes))]),e._v(" : "),t("TimeBlock",[e._v(e._s(e.countDownInfo.seconds))])],1):e._e(),"expired_7_after"==e.expiredStatus?t("Description",[e._v(" "+e._s(e.$t("membershipRenewal.renewalReminderPopup.pro_expired_date_7_after",{expired_day:e.expired_day}))+" ")]):e._e()],1),e.language?t("MemberExclusiveFeatureImage",{attrs:{src:a(3995)(`./memberExclusiveFeature-${e.currentLanguage}-${e.isDark?"dark":"light"}.png`),alt:"renewalReminderPopup",width:e.is_mobile?"280px":"400px",margin:"30px auto"}}):e._e(),t("ActionButton",{directives:[{name:"baidu-event-tracking",rawName:"v-baidu-event-tracking",value:{feature:e.eventName,action:"è´ä¹°_å¹´"},expression:"{ feature: eventName, action: 'è´ä¹°_å¹´' }"}],attrs:{width:e.is_mobile?"100%":"90%"},on:{click:e.renewal}},[e._v(" "+e._s(e.$t("membershipRenewal.renewalReminderPopup.confirm"))+" "),t("DiscountRate",[e._v(e._s(e.$t("membershipRenewal.renewalReminderPopup.discountRate"))+" ")])],1),t("HintText",[e._v(" "+e._s(e.$t("membershipRenewal.renewalReminderPopup.hintText.text"))+" "),"zh"==e.language?t("span",[e._v("ã")]):e._e(),t("HintTextLink",{attrs:{href:"https://help.flomoapp.com/legal/",target:"_blank"}},[e._v(e._s(e.$t("membershipRenewal.renewalReminderPopup.hintText.memberServiceAgreement"))+" ")]),"zh"==e.language?t("span",[e._v("ã")]):e._e(),"en"==e.language?t("AndText",[e._v(" and ")]):e._e(
1),"zh"==e.language?t("span",[e._v("ã")]):e._e(),t("HintTextLink",{attrs:{href:"https://help.flomoapp.com/legal/iap.html",target:"_blank"}},[e._v(e._s(e.$t("membershipRenewal.renewalReminderPopup.hintText.autoRenewalAgreement"))+" ")]),"zh"==e.language?t("span",[e._v("ã")]):e._e()],1)],1)],1)},[],!1,null,null,null).exports},3995:function(e,t,a){var i={"./memberExclusiveFeature-en-dark.png":57593,"./memberExclusiveFeature-en-light.png":3577,"./memberExclusiveFeature-zh-dark.png":56020,"./memberExclusiveFeature-zh-light.png":26686};function s(e){var t=r(e);return a(t)}function r(e){if(!a.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}s.keys=function(){return Object.keys(i)},s.resolve=r,e.exports=s,s.id=3995},57593:function(e,t,a){"use strict";e.exports=a.p+"img/memberExclusiveFeature-en-dark.0c36cb5f.png"},3577:function(e,t,a){"use strict";e.exports=a.p+"img/memberExclusiveFeature-en-light.1e8c7387.png"},56020:function(e,t,a){"use strict";e.exports=a.p+"img/memberExclusiveFeature-zh-dark.8376736f.png"},26686:function(e,t,a){"use strict";e.exports=a.p+"img/memberExclusiveFeature-zh-light.4dbb6967.png"}}]);
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.