(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[345],{3155:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/site",function(){return t(3397)}])},3397:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return pages_site}});var n=t(4246),o=t(7378),r=t(8038),a=t.n(r),i=t(9003),l=t(5980),c=t.n(l),siteFooterBg=e=>(0,n.jsx)("div",{className:c().container,children:e.children}),d=t(2903),m=t(6426),p=t(815),x=t(6637),u=t(1889),j=t(224),h=t.n(j),site=()=>{let e=(0,i.Z)(),s=(0,u.Z)();return(0,n.jsxs)("div",{className:h().container,children:[(0,n.jsx)(p.Z,{className:h().title,title:e.formatMessage({id:"portal.learning.resource.site.title"}),sub:e.formatMessage({id:"portal.learning.resource.site.sub"})}),(0,n.jsxs)("div",{className:h().content,children:[(0,n.jsxs)("a",{href:s.home,children:[(0,n.jsx)("img",{className:h().logo,src:"https://cdn.marmot-cloud.com/storage/2020/9/9/f65ecf81-22b9-488c-9edb-9b1668eb8e2c.svg",alt:""}),(0,n.jsxs)("p",{children:[(0,n.jsxs)("strong",{children:[(0,n.jsx)(m.Z,{id:"portal.learning.resource.site.home.title"})," ",(0,n.jsx)(x.ol,{className:h().arrow})]}),(0,n.jsx)(m.Z,{id:"portal.learning.resource.site.home.sub"})]})]}),(0,n.jsxs)("a",{href:s.tryDemo,children:[(0,n.jsx)("img",{className:h().logo,src:"https://cdn.marmot-cloud.com/storage/2020/9/9/3e354a1a-e869-49d9-8443-358103b483c0.svg",alt:""}),(0,n.jsxs)("p",{children:[(0,n.jsxs)("strong",{children:[(0,n.jsx)(m.Z,{id:"portal.learning.resource.site.demo.title"})," ",(0,n.jsx)(x.ol,{className:h().arrow})]}),(0,n.jsx)(m.Z,{id:"portal.learning.resource.site.demo.sub"})]})]}),(0,n.jsxs)("a",{href:s.studioOverview,children:[(0,n.jsx)("img",{className:h().logo,src:"https://cdn.marmot-cloud.com/storage/2020/9/9/73899d1c-3620-4f77-967f-4babaed803d9.svg",alt:""}),(0,n.jsxs)("p",{children:[(0,n.jsxs)("strong",{children:[(0,n.jsx)(m.Z,{id:"portal.learning.resource.site.studio.overview.title"})," ",(0,n.jsx)(x.ol,{className:h().arrow})]}),(0,n.jsx)(m.Z,{id:"portal.learning.resource.site.studio.overview.sub"})]})]}),(0,n.jsxs)("a",{href:s.design,children:[(0,n.jsx)("img",{className:h().logo,src:"https://cdn.marmot-cloud.com/storage/2020/9/9/7e601282-e64b-4349-9706-c62ba6d5969c.svg",alt:""}),(0,n.jsxs)("p",{children:[(0,n.jsxs)("strong",{children:[(0,n.jsx)(m.Z,{id:"portal.learning.resource.site.design.title"})," ",(0,n.jsx)(x.ol,{className:h().arrow})]}),(0,n.jsx)(m.Z,{id:"portal.learning.resource.site.design.sub"})]})]})]})]})},g=t(2630),_=t(4895),f=t(6148),b=t(4631),N=t(4036),v=t(3817),w=t.n(v),footer_site=e=>{let{logoUrl:s,agreementUrl:t,aboutUsUrl:r,copyright:a,cookiePolicyUrl:l}=e,c=(0,i.Z)(),d=(0,u.Z)(),p=(0,o.useRef)(null),{supportCookieNoticeFlag:x}=f.D.useContainer(),j={textInfo:{content:c.formatMessage({id:"portal.cookie.modal.content"},{url:l,manageUrl:(0,b.d3)(N.Jt)}),saveBtn:c.formatMessage({id:"portal.cookie.modal.save.btn"}),customizeBtn:c.formatMessage({id:"portal.cookie.modal.customize.btn"}),rejectBtn:c.formatMessage({id:"portal.cookie.modal.reject.all.btn"})},cookieUrl:l,cookieSwitch:x,cookieManageUrl:(0,b.d3)(N.Jt)};return(0,o.useEffect)(()=>{g.Z.mount({cookieInfo:j,onAccept:()=>{}},p.current)}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:w().container,children:(0,n.jsxs)("div",{className:w().content,children:[(0,n.jsx)("a",{href:"/",className:w().logo,children:(0,n.jsx)("img",{src:s,alt:""})}),(0,n.jsxs)("div",{className:w().link,children:[(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:d.home,children:(0,n.jsx)(m.Z,{id:"portal.footer.site.docs"})})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:t,children:(0,n.jsx)(m.Z,{id:"portal.footer.site.agreement.url"})})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:r,children:(0,n.jsx)(m.Z,{id:"portal.footer.site.about.us"})})})]}),(0,n.jsx)("p",{children:a||_.RF})]})]})}),(0,n.jsx)("div",{ref:p})]})},Z=t(1317),k=t(5632),y=t(5394),M=t(7758),A=t(712),B=t.n(A),oneApp=e=>{let{tenantName:s,operatorName:t}=e,r=(0,i.Z)(),[a,l]=(0,o.useState)([]),c=(0,o.useCallback)(async()=>{let e=await (0,M.BS)({startPos:0,count:1e3});e.success&&l(e.workspaceList)},[]);return(0,o.useEffect)(()=>{c()},[c]),(0,n.jsxs)("div",{className:B().container,children:[(0,n.jsx)("div",{className:B().content,children:(0,n.jsxs)("div",{className:B().textWrapper,children:[(0,n.jsx)("p",{className:B().title,children:(0,n.jsx)(m.Z,{id:"portal.one.app.title"})}),(0,n.jsx)(y.Z,{active:!!s,children:(0,n.jsx)("p",{className:B().sub,dangerouslySetInnerHTML:{__html:r.formatMessage({id:"portal.one.app.sub"},{name:s})}})}),(0,n.jsx)("p",{className:B().btn,children:(0,n.jsx)("span",{onClick:()=>{(0,b.uM)(t,a)},children:(0,n.jsx)(m.Z,{id:"portal.one.app.get.started"})})})]})}),(0,n.jsx)("div",{className:B().mask})]})},pages_site=()=>{let e=(0,i.Z)(),{ready:s,tenantWorkspaceId:t,tenantWorkspaceName:r,customizedTenantInfo:l}=f.D.useContainer(),{ready:c,operatorName:m,workspaceList:p}=f.n.useContainer(),[x,u]=(0,o.useState)({}),j=(0,o.useMemo)(()=>(0,_.sx)(t),[t]),h=j.name||r;return(0,o.useEffect)(()=>{let e=_.sq.find(e=>e.matchName===window.location.host)||{name:_.Xb.name,title:_.Xb.title};u({...e,ogUrl:window.location.origin});let s={"@context":"https://schema.org","@type":"WebSite",name:e.name,url:window.location.origin},t=document.createElement("script");t.type="application/ld+json",t.text=JSON.stringify(s),document.head.appendChild(t)},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a(),{children:[(0,n.jsx)("meta",{name:"description",content:"A new way to connect users and services that can be easily accessed and distributed"}),(0,n.jsx)("title",{children:e.formatMessage({id:"portal.header.title"},{tenantName:h})}),(0,n.jsx)("meta",{property:"og:description",content:"A new way to connect users and services that can be easily accessed and distributed"}),(0,n.jsx)("meta",{name:"og:site_name",content:x.title||"Mini Program Development Platform"}),(0,n.jsx)("meta",{property:"og:title",content:x.title||"Mini Program Development Platform"}),(0,n.jsx)("meta",{property:"og:url",content:x.ogUrl}),(0,n.jsx)("link",{rel:"icon",href:l.faviconUrl,type:"image/x-icon"})]}),(0,n.jsx)(d.Z,{highlight:!0,operatorName:m,logo:l.logoUrl||"",active:s&&c,workspaceList:p,isSite:!0}),(0,n.jsx)(oneApp,{tenantName:h,operatorName:m}),(0,n.jsx)(Z.Z,{}),(0,n.jsx)(k.Z,{}),(0,n.jsxs)(siteFooterBg,{children:[(0,n.jsx)(site,{}),(0,n.jsx)(footer_site,{...l})]})]})}},712:function(e){e.exports={container:"oneApp_container__TbXhJ",content:"oneApp_content__xrxKx",textWrapper:"oneApp_textWrapper__YtGSh",title:"oneApp_title__eGhCY",sub:"oneApp_sub__D1jVP",btn:"oneApp_btn__b2g5B",mask:"oneApp_mask__yogn3",mask2:"oneApp_mask2__w4we3"}},3817:function(e){e.exports={container:"site_container__IBgG_",content:"site_content__IfL_R",logo:"site_logo__LHI2g",link:"site_link__zPlbo"}},5980:function(e){e.exports={container:"siteFooterBg_container__hyTM9"}}},function(e){e.O(0,[469,6,774,888,179],function(){return e(e.s=3155)}),_N_E=e.O()}]);