zhamao-framework/assets/js/2.4c04991c.js
2024-09-19 08:29:13 +00:00

1 line
11 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[2,19],{670:function(t,e,a){},671:function(t,e,a){},672:function(t,e,a){},678:function(t,e,a){},684:function(t,e,a){"use strict";a(670)},685:function(t,e,a){var s=a(53),r=a(35),n=a(42);t.exports=function(t){return"string"==typeof t||!r(t)&&n(t)&&"[object String]"==s(t)}},686:function(t,e,a){"use strict";a(671)},687:function(t,e,a){"use strict";a(672)},688:function(t,e,a){},692:function(t,e,a){"use strict";a.r(e);var s=a(47),r=a.n(s),n=a(664),i={name:"PageEdit",computed:{lastUpdated(){return this.$page.lastUpdated},lastUpdatedText(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},editLink(){const t=r()(this.$page.frontmatter.editLink)?this.$site.themeConfig.editLinks:this.$page.frontmatter.editLink,{repo:e,docsDir:a="",docsBranch:s="master",docsRepo:n=e}=this.$site.themeConfig;return t&&n&&this.$page.relativePath?this.createEditLink(e,n,a,s,this.$page.relativePath):null},editLinkText(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink(t,e,a,s,r){if(/bitbucket.org/.test(t)){return(n.f.test(e)?e:t).replace(n.a,"")+"/src"+`/${s}/`+(a?a.replace(n.a,"")+"/":"")+r+`?mode=edit&spa=0&at=${s}&fileviewer=file-view-default`}return(n.f.test(e)?e:"https://github.com/"+e).replace(n.a,"")+"/edit"+`/${s}/`+(a?a.replace(n.a,"")+"/":"")+r}}},o=(a(684),a(84)),l=Object(o.a)(i,(function(){var t=this,e=t._self._c;return e("footer",{staticClass:"page-edit"},[t.editLink?e("div",{staticClass:"edit-link"},[e("a",{attrs:{href:t.editLink,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.editLinkText))]),t._v(" "),e("OutboundLink")],1):t._e(),t._v(" "),t.lastUpdated?e("div",{staticClass:"last-updated"},[e("span",{staticClass:"prefix"},[t._v(t._s(t.lastUpdatedText)+":")]),t._v(" "),e("span",{staticClass:"time"},[t._v(t._s(t.lastUpdated))])]):t._e()])}),[],!1,null,null,null);e.default=l.exports},693:function(t,e,a){"use strict";a.r(e);a(391);var s=a(664),r=a(685),n=a.n(r),i=a(47),o=a.n(i),l={name:"PageNav",props:["sidebarItems"],computed:{prev(){return c(h.PREV,this)},next(){return c(h.NEXT,this)}}};const h={NEXT:{resolveLink:function(t,e){return d(t,e,1)},getThemeLinkConfig:({nextLinks:t})=>t,getPageLinkConfig:({frontmatter:t})=>t.next},PREV:{resolveLink:function(t,e){return d(t,e,-1)},getThemeLinkConfig:({prevLinks:t})=>t,getPageLinkConfig:({frontmatter:t})=>t.prev}};function c(t,{$themeConfig:e,$page:a,$route:r,$site:i,sidebarItems:l}){const{resolveLink:h,getThemeLinkConfig:c,getPageLinkConfig:d}=t,p=c(e),u=d(a),f=o()(u)?p:u;return!1===f?void 0:n()(f)?Object(s.h)(i.pages,f,r.path):h(a,l)}function d(t,e,a){const s=[];!function t(e,a){for(let s=0,r=e.length;s<r;s++)"group"===e[s].type?t(e[s].children||[],a):a.push(e[s])}(e,s);for(let e=0;e<s.length;e++){const r=s[e];if("page"===r.type&&r.path===decodeURIComponent(t.path))return s[e+a]}}var p=l,u=(a(686),a(84)),f=Object(u.a)(p,(function(){var t=this,e=t._self._c;return t.prev||t.next?e("div",{staticClass:"page-nav"},[e("p",{staticClass:"inner"},[t.prev?e("span",{staticClass:"prev"},["external"===t.prev.type?e("a",{staticClass:"prev",attrs:{href:t.prev.path,target:"_blank",rel:"noopener noreferrer"}},[t._v("\n "+t._s(t.prev.title||t.prev.path)+"\n\n "),e("OutboundLink")],1):e("RouterLink",{staticClass:"prev",attrs:{to:t.prev.path}},[e("a-icon",{attrs:{type:"left"}}),t._v("\n "+t._s(t.prev.title||t.prev.path)+"\n ")],1)],1):t._e(),t._v(" "),t.next?e("span",{staticClass:"next"},["external"===t.next.type?e("a",{attrs:{href:t.next.path,target:"_blank",rel:"noopener noreferrer"}},[t._v("\n "+t._s(t.next.title||t.next.path)+"\n\n "),e("OutboundLink")],1):e("RouterLink",{attrs:{to:t.next.path}},[t._v("\n "+t._s(t.next.title||t.next.path)+"\n "),e("a-icon",{attrs:{type:"right"}})],1)],1):t._e()])]):t._e()}),[],!1,null,null,null);e.default=f.exports},694:function(t,e,a){"use strict";a.r(e);a(392);var s={data:()=>({headersList:[]}),methods:{arrayToTree(t,e){return t.reduce((a,s)=>s.parent===e?(s.items=this.arrayToTree(t,s.id),a.concat(s)):a,[])}},computed:{hasHeaders(){return!!this.headersData},headersData(){return this.$page.headers},pageAnchorConfig(){return this.$page.frontmatter.pageAnchor||this.$themeConfig.pageAnchor||{anchorDepth:2,isDisabled:!1}},isCollapsePageAnchor(){return this.$store.state.global.isCollapsePageAnchor},filterHeadersByLevel2(){const{headers:t}=this.$page;let e;return e=t.filter(t=>2===t.level),e.forEach(t=>{t.items=[]}),e},filterHeadersByLevel(){if(1===this.pageAnchorConfig.anchorDepth)return this.filterHeadersByLevel2;const{headers:t}=this.$page;let e=t;return e.forEach((t,a)=>{t.id=a+1,2===t.level?t.parent=0:0!==a&&(2===e[a-1].level?t.parent=e[a-1].id:3===e[a-1].level&&(t.parent=e[a-1].parent))}),this.arrayToTree(e,0)}}},r=(a(687),a(84)),n=Object(r.a)(s,(function(){var t=this,e=t._self._c;return t.hasHeaders?e("div",{class:["page-anchor",{"collapse-page-anchor":t.isCollapsePageAnchor}]},[e("a-space",{staticStyle:{width:"100%"},attrs:{direction:"vertical",size:"large"}},[e("a-anchor",{staticClass:"page-anchor-offset"},[t._l(t.filterHeadersByLevel,(function(a,s){return[0!==a.items.length?e("a-anchor-link",{key:s,attrs:{href:"#"+a.slug,title:a.title}},[t._l(a.items,(function(a,s){return[3===a.level?e("a-anchor-link",{key:s,attrs:{href:"#"+a.slug,title:a.title}}):t._e()]}))],2):e("a-anchor-link",{key:s,attrs:{href:"#"+a.slug,title:a.title}})]}))],2)],1)],1):t._e()}),[],!1,null,null,null);e.default=n.exports},695:function(t,e,a){"use strict";a(678)},698:function(t,e,a){"use strict";a(688)},709:function(t,e,a){"use strict";a.r(e);var s=a(664),r={name:"Home",data:()=>({isDivider:!1}),methods:{isExtlink:t=>/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/.test(t),link(t){t=void 0===t?"":t;let e=Object(s.b)(t);return e=5===e.length&&".html"===e?"":e,e}},mounted(){this.data.footerWrap&&this.data.footerWrap.length&&(this.isDivider=!0)},computed:{data(){return this.$page.frontmatter}}},n=(a(695),a(84)),i=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("main",{staticClass:"home",attrs:{"aria-labelledby":"main-title"}},[e("header",{staticClass:"hero"},[t.data.heroImage?e("img",{staticClass:"hero-logo",attrs:{src:t.$withBase(t.data.heroImage),alt:t.data.heroAlt||"hero"}}):t._e(),t._v(" "),null!==t.data.heroText?e("h1",{attrs:{id:"main-title"}},[t._v("\n "+t._s(t.data.heroText||t.$title||"Hello")+"\n ")]):t._e(),t._v(" "),null!==t.data.tagline?e("p",{staticClass:"description"},[t._v("\n "+t._s(t.data.tagline||t.$description||"Welcome to your VuePress site")+"\n ")]):t._e(),t._v(" "),t.data.actions&&t.data.actions.length?e("div",{staticClass:"actions"},[e("a-space",{attrs:{size:"middle"}},t._l(t.data.actions,(function(a,s){return e("a-button",{key:s,attrs:{type:a.type?a.type:"primary",shape:a.shape?a.shape:null,size:a.size?a.size:"large",ghost:!!a.ghost&&a.ghost}},[t.isExtlink(a.link?a.link:"/")?e("a",{attrs:{href:t.link(a.link?a.link:"/"),target:"_blank"}},[t._v("\n "+t._s(a.text)+"\n ")]):e("RouterLink",{attrs:{to:t.link(a.link?a.link:"/")}},[t._v("\n "+t._s(a.text)+"\n ")])],1)})),1)],1):t._e()]),t._v(" "),t.data.features&&t.data.features.length?e("div",{staticClass:"features"},t._l(t.data.features,(function(a,s){return e("div",{key:s,staticClass:"feature"},[e("h2",[t._v(t._s(a.title))]),t._v(" "),e("p",[t._v(t._s(a.details))])])})),0):t._e(),t._v(" "),e("Content",{staticClass:"theme-antdocs-content custom"})],1),t._v(" "),t.data.footer?e("div",{staticClass:"footer"},[t.data.footerWrap&&t.data.footerWrap.length?e("div",{staticClass:"footer-container"},[e("a-row",{staticClass:"add-bottom",attrs:{gutter:{md:0,lg:32},type:"flex",justify:"space-around"}},t._l(t.data.footerWrap,(function(a,s){return e("a-col",{key:s,attrs:{xs:24,sm:24,md:6,lg:6,xl:6}},[e("div",[e("h2",[t._v(t._s(a.headline))]),t._v(" "),t._l(a.items,(function(a,s){return e("div",{key:s,staticClass:"footer-item"},[a.title&&null!==a.title?e("a",{attrs:{href:a.link,target:"_blank"}},[t._v("\n "+t._s(a.title)+"\n ")]):t._e(),t._v(" "),a.details&&null!==a.details?e("span",{staticClass:"footer-item-separator"},[t._v("-")]):t._e(),t._v(" "),a.details&&null!==a.details?e("span",{staticClass:"footer-item-description"},[t._v(t._s(a.details))]):t._e()])}))],2)])})),1)],1):t._e(),t._v(" "),e("div",{class:{"footer-divider":t.isDivider,"footer-bottom":!0},domProps:{innerHTML:t._s(t.data.footer)}})]):t._e()])}),[],!1,null,null,null);e.default=i.exports},711:function(t,e,a){"use strict";a.r(e);var s=a(692),r=a(693),n=a(694),i={components:{PageEdit:s.default,PageNav:r.default,PageAnchor:n.default},props:["sidebarItems"],computed:{hasPageAnchor(){return this.pageAnchorConfig.isDisabled?(this.$store.state.global.isCollapsePageAnchor=!0,!1):this.$page.headers?(this.$store.state.global.isCollapsePageAnchor=!1,!0):(this.$store.state.global.isCollapsePageAnchor=!0,!1)},pageAnchorConfig(){return this.$page.frontmatter.pageAnchor||this.$themeConfig.pageAnchor||{anchorDepth:2,isDisabled:!1}}}},o=(a(698),a(84)),l=Object(o.a)(i,(function(){var t=this,e=t._self._c;return e("main",{class:["page",{"has-page-anchor":t.hasPageAnchor}]},[t._t("top"),t._v(" "),e("Content",{staticClass:"theme-antdocs-content"}),t._v(" "),e("PageEdit"),t._v(" "),e("PageNav",t._b({},"PageNav",{sidebarItems:t.sidebarItems},!1)),t._v(" "),t.pageAnchorConfig.isDisabled?t._e():e("PageAnchor"),t._v(" "),t._t("bottom")],2)}),[],!1,null,null,null);e.default=l.exports},730:function(t,e,a){"use strict";a.r(e);var s=a(709),r=a(724),n=a(711),i=a(699),o=a(664),l={name:"Layout",components:{Home:s.default,Page:n.default,Sidebar:i.default,Navbar:r.default},computed:{shouldShowNavbar(){const{themeConfig:t}=this.$site,{frontmatter:e}=this.$page;return!1!==e.navbar&&!1!==t.navbar&&(this.$title||t.logo||t.repo||t.nav||this.$themeLocaleConfig.nav)},shouldShowSidebar(){const{frontmatter:t}=this.$page;return!t.home&&!1!==t.sidebar&&this.sidebarItems.length},sidebarItems(){return Object(o.i)(this.$page,this.$page.regularPath,this.$site,this.$localePath)},pageClasses(){const t=this.$page.frontmatter.pageClass;return[{"no-navbar":!this.shouldShowNavbar,"no-sidebar":!this.shouldShowSidebar},t]}}},h=a(84),c=Object(h.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"theme-container",class:t.pageClasses},[t.shouldShowNavbar?e("Navbar"):t._e(),t._v(" "),t.shouldShowSidebar?e("Sidebar",{attrs:{items:t.sidebarItems},scopedSlots:t._u([{key:"top",fn:function(){return[t._t("sidebar-top")]},proxy:!0},{key:"bottom",fn:function(){return[t._t("sidebar-bottom")]},proxy:!0}],null,!0)}):t._e(),t._v(" "),t.$page.frontmatter.home?e("Home"):e("Page",{attrs:{"sidebar-items":t.sidebarItems},scopedSlots:t._u([{key:"top",fn:function(){return[t._t("page-top")]},proxy:!0},{key:"bottom",fn:function(){return[t._t("page-bottom")]},proxy:!0}],null,!0)}),t._v(" "),t.$themeConfig.backToTop?e("a-back-top"):t._e()],1)}),[],!1,null,null,null);e.default=c.exports}}]);