(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5815],{55815:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return N}});var n=a(85893),i=a(89652),l=a.n(i),c=a(19357),s=a(67294),o=a(45332);let r=()=>{let[e,t]=(0,s.useState)(!1),a=()=>{let e=window.location.origin;t(!1),(0,o.L$)({url:e+"/upgrade",target:"_blank"})};return(0,n.jsx)(c.Z,{visible:e,children:(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:l().title,children:"美图秀秀VIP会员升级通知"}),(0,n.jsx)("div",{className:l().desc,children:"尊敬的VIP会员，感谢你一直以来的支持。为了提供更优质的服务，2022年3月31日0点起，美图秀秀将对电脑版VIP会员订阅价格进行更新，已购买连续订阅套餐的会员可享有1年保价福利。"}),(0,n.jsx)("div",{className:l().btn,onClick:()=>a(),children:"查看详情"})]})})};var d=a(58636),u=a(94406),w=a(94149),v=a(8291),m=a(9698),f=a(1051),_=a(12944);async function h(){{let e=await (0,u.PS)(),t=await (0,u.wk)();w.ZP.initGid({webGid:e,pcGid:t});let n=await (await Promise.resolve().then(a.bind(a,32711))).default;await (0,u.ls)(),await n(),await (0,_.iA)()}}async function p(e){w.ZP.isPcPlatform&&await new Promise(e=>{let t=window.setInterval(async()=>{let a="";if(f&&f.getLocalStorage){let n=await f.getLocalStorage("token");n&&(a=JSON.parse(n).big_account_access_token)}window.localStorage.setItem("access_token",a),e(),clearInterval(t)},100)}),await (0,m.bG)(e),"CUTOUT"===w.ZP.appHost&&v.ZP.getState().isUserLoggedIn&&(0,m.jS)(e)}async function g(e){v.ZP.getActions().initClientStore(),await p(e),await h(),v.ZP.getActions().finishInitialization()}var P=a(5152),x=a.n(P);let b=x()(()=>Promise.all([a.e(4885),a.e(7810),a.e(7066),a.e(60),a.e(6823),a.e(1033),a.e(9591),a.e(2238),a.e(477),a.e(3383),a.e(7688)]).then(a.bind(a,39599)),{loadableGenerated:{webpack:()=>[39599]}}),j=x()(()=>Promise.all([a.e(1033),a.e(9591),a.e(7089),a.e(401),a.e(208),a.e(1806)]).then(a.bind(a,66599)),{loadableGenerated:{webpack:()=>[66599]}}),y={DesignRoomLayout:e=>(0,n.jsx)(b,{children:e}),GalleryLayout:e=>(0,n.jsx)(j,{children:e})};var k=a(97303),I=a(1880);function N(e){var t;let{Component:a,pageProps:i}=e;v.ZP.getActions().link.setIsHomePage("/"===i.curPathName),v.ZP.getActions().link.setIsPcPage(!!i.curPathName.includes("/pc"));let l=(0,v.Kw)(e=>e.isStoreInitialized);return(0,s.useEffect)(()=>{g(i.locale),l&&((0,k.v6)("env","release"),(0,k.v6)("client_id",I.Cx),(0,k.v6)("gid",w.ZP.webGid),(0,k.v6)("device_id",w.ZP.webGid),(0,k.v6)("channel",w.ZP.channel),(0,k.v6)("app_key",w.ZP.appKey))},[l]),(0,n.jsxs)(d.I,{locale:i.locale,children:[(null===(t=a.pageConfig)||void 0===t?void 0:t.layoutId)?y[a.pageConfig.layoutId]((0,n.jsx)(a,{...i})):(0,n.jsx)(a,{...i}),(0,n.jsx)(r,{})]})}},73920:function(e,t,a){"use strict";var n=a(85893),i=a(93967),l=a.n(i);a(67294);let c=function(e){let{name:t,color:a,onClick:i,fontSize:c,className:s=""}=e;return(0,n.jsx)("div",{className:"icon-lagecy",children:(0,n.jsx)("span",{style:{color:a,width:"".concat(c,"px"),height:"".concat(c,"px"),display:"block",fontSize:"".concat(c,"px")},onClick(e){i&&i(e)},className:l()("iconfont","icon-".concat(t),s)})})};t.Z=c},19357:function(e,t,a){"use strict";var n=a(85893),i=a(67294),l=a(73920),c=a(3610),s=a.n(c);let o=e=>{let{children:t,visible:a=!1,onClose:c,width:o,style:r,closable:d}=e,[u,w]=(0,i.useState)(a),v=()=>{c&&c(),w(!1)};(0,i.useEffect)(()=>{document.documentElement.style.overflow=a?"hidden":"initial",w(a)},[a]);let m=r||{};return o&&(m.width=o),u?(0,n.jsx)("div",{className:s().wrap,children:(0,n.jsx)("div",{className:s().modal,style:{...m},children:(0,n.jsxs)("div",{className:s().content,children:[d?(0,n.jsx)("div",{className:s().close,onClick:()=>v(),children:(0,n.jsx)(l.Z,{name:"crossBold",fontSize:24})}):null,t]})})}):null};t.Z=o},12944:function(e,t,a){"use strict";a.d(t,{iA:function(){return c},lq:function(){return s}});var n=a(56178);let i={},l=null,c=async()=>{var e;await (l=new n.hh({appKey:"11CB34B59399E101",env:"release"})).init(),i=l.getABInfo(),null===(e=window.mtstat)||void 0===e||e.setABInfo(i)},s=()=>i},3610:function(e){e.exports={wrap:"modal_wrap__wMLLa",modal:"modal_modal__32FcL",content:"modal_content__zKYAi",close:"modal_close__OVX4v"}},89652:function(e){e.exports={title:"upgrade-modal_title__uHNaB",desc:"upgrade-modal_desc__SNxLy",btn:"upgrade-modal_btn__3Wa1B"}}}]);