(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[70753,58022,47259,83292,54064,29938],{958022:function(e,t,a){"use strict";a.r(t),a.d(t,{CampusLeader:function(){return r}});var l=a(552322);let r=(0,a(164448).defineIcon)({className:"campusLeader",viewBox:"0 0 44 50",svg:(0,l.jsx)("path",{d:"M44 26C44 38 35.91 50 30 50C26.37 50 25.6 48 22 48C18.4 48 17.63 50 14 50C8.09 50 0 38 0 26C0 14 6.09 10 12 10C15.24 10 17.71 11.89 19.65 13.08C20.42 5.23 24 0 24 0L30 3C30 3 26.49 6.71 24.71 12.85C26.6 11.67 28.96 10 32 10C37.91 10 44 14 44 26Z"})})},747259:function(e,t,a){"use strict";a.r(t),a.d(t,{Template:function(){return r}});var l=a(552322);let r=(0,a(164448).defineIcon)({className:"template",viewBox:"0 0 18 16",svg:(0,l.jsx)("path",{d:"M2.777 15.067H15.31c1.59 0 2.417-.82 2.417-2.387V3.766c0-1.567-.828-2.388-2.417-2.388H2.777c-1.582 0-2.41.813-2.41 2.388v8.914c0 1.567.828 2.387 2.41 2.387zm-.952-11.17c0-.71.374-1.061 1.048-1.061h12.34c.675 0 1.048.352 1.048 1.062v.19H1.825v-.19zm1.048 9.713c-.674 0-1.048-.352-1.048-1.062V5.253h14.436v7.295c0 .71-.373 1.062-1.047 1.062H2.873z"})})},483292:function(e,t,a){"use strict";a.r(t),a.d(t,{ThinCheck:function(){return r}});var l=a(552322);let r=(0,a(164448).defineIcon)({className:"thinCheck",viewBox:"0 0 16 16",svg:(0,l.jsx)("path",{fill:"currentColor",d:"M6.385 14.162c.362 0 .642-.15.84-.444L13.652 3.71c.144-.226.205-.417.205-.602 0-.485-.341-.82-.833-.82-.335 0-.54.123-.746.444l-5.926 9.4-3.042-3.903c-.205-.267-.417-.376-.718-.376-.492 0-.848.348-.848.827 0 .212.075.417.253.629l3.541 4.416c.24.3.492.437.848.437z"})})},154064:function(e,t,a){"use strict";a.r(t),a.d(t,{Thumbsup:function(){return r}});var l=a(552322);let r=(0,a(164448).defineIcon)({className:"thumbsup",viewBox:"0 0 23 24",svg:(0,l.jsx)("path",{d:"M0.23877 16.5914C0.23877 17.7086 0.450033 18.7291 0.872559 19.653C1.29508 20.5696 1.87158 21.3037 2.60205 21.8551C3.33252 22.4065 4.15967 22.6823 5.0835 22.6823H6.95264C5.97868 21.9303 5.26611 21.0244 4.81494 19.9645C4.37093 18.8974 4.15251 17.7373 4.15967 16.484C4.15967 15.5817 4.25277 14.7617 4.43896 14.024C4.63232 13.2793 4.87939 12.6132 5.18018 12.026C5.48812 11.4388 5.81396 10.9231 6.15771 10.4791H4.67529C3.8374 10.4791 3.08187 10.7477 2.40869 11.2848C1.74268 11.8219 1.21273 12.5559 0.818848 13.4869C0.432129 14.4108 0.23877 15.4456 0.23877 16.5914ZM5.72803 16.5055C5.72087 17.5296 5.91064 18.4821 6.29736 19.3629C6.68408 20.2366 7.24268 20.9993 7.97314 21.651C8.70361 22.3027 9.58447 22.8112 10.6157 23.1764C11.647 23.5416 12.8035 23.7242 14.0854 23.7242H15.5894C16.2912 23.7242 16.9071 23.6992 17.437 23.649C17.967 23.6061 18.3823 23.5452 18.6831 23.4664C19.1486 23.3518 19.5568 23.1442 19.9077 22.8434C20.2658 22.5426 20.4448 22.1272 20.4448 21.5973C20.4448 21.3896 20.4198 21.207 20.3696 21.0494C20.3267 20.8919 20.2729 20.7558 20.2085 20.6412C20.1297 20.5052 20.1512 20.4121 20.2729 20.3619C20.6167 20.2044 20.9067 19.9681 21.1431 19.653C21.3866 19.3307 21.5083 18.9547 21.5083 18.525C21.5083 18.0309 21.383 17.6155 21.1323 17.2789C21.0249 17.1285 21.0535 17.0068 21.2183 16.9137C21.4689 16.749 21.673 16.5198 21.8306 16.2262C21.9881 15.9326 22.0669 15.6031 22.0669 15.2379C22.0669 14.9729 22.0239 14.7187 21.938 14.4752C21.8592 14.2246 21.7518 14.0276 21.6157 13.8844C21.494 13.7698 21.5047 13.6481 21.6479 13.5192C21.8198 13.3616 21.9559 13.1611 22.0562 12.9176C22.1564 12.667 22.2065 12.3877 22.2065 12.0797C22.2065 11.7073 22.117 11.3671 21.938 11.0592C21.759 10.7513 21.519 10.5078 21.2183 10.3287C20.9175 10.1497 20.5773 10.0602 20.1978 10.0602H16.3198C15.8543 10.0602 15.4784 9.94918 15.1919 9.72717C14.9126 9.50517 14.7729 9.20439 14.7729 8.82483C14.7729 8.45959 14.8625 8.02991 15.0415 7.53577C15.2277 7.04163 15.4425 6.51526 15.686 5.95667C15.9295 5.39807 16.1444 4.83948 16.3306 4.28088C16.5239 3.71513 16.6206 3.18876 16.6206 2.70178C16.6206 2.16467 16.4666 1.74573 16.1587 1.44495C15.8507 1.14417 15.4676 0.993774 15.0093 0.993774C14.6011 0.993774 14.2752 1.1191 14.0317 1.36975C13.7882 1.6204 13.5519 1.96773 13.3228 2.41174C12.5063 3.99443 11.5968 5.44104 10.5942 6.75159C9.59163 8.06213 8.67497 9.26884 7.84424 10.3717C7.36442 11.0091 6.96696 11.6357 6.65186 12.2516C6.33675 12.8603 6.104 13.5084 5.95361 14.1959C5.80322 14.8763 5.72803 15.6461 5.72803 16.5055Z"})})},629938:function(e,t,a){"use strict";a.r(t),a.d(t,{TypesVerification:function(){return r}});var l=a(552322);let r=(0,a(164448).defineIcon)({className:"typesVerification",viewBox:"0 0 16 16",svg:(0,l.jsx)("path",{d:"M3.86426 14.0459H5.32715C5.45475 14.0459 5.56185 14.0892 5.64844 14.1758L6.6875 15.2148C7.13411 15.6615 7.56934 15.8825 7.99316 15.8779C8.42155 15.8779 8.85677 15.6569 9.29883 15.2148L10.3379 14.1758C10.429 14.0892 10.5384 14.0459 10.666 14.0459H12.1221C12.751 14.0459 13.2158 13.8955 13.5166 13.5947C13.8219 13.2939 13.9746 12.8268 13.9746 12.1934V10.7305C13.9746 10.6029 14.0202 10.4958 14.1113 10.4092L15.1436 9.37012C15.5902 8.92806 15.8112 8.49284 15.8066 8.06445C15.8066 7.63607 15.5856 7.19857 15.1436 6.75195L14.1113 5.71289C14.0202 5.6263 13.9746 5.52148 13.9746 5.39844V3.92871C13.9746 3.30436 13.8242 2.83952 13.5234 2.53418C13.2227 2.22884 12.7555 2.07617 12.1221 2.07617H10.666C10.5384 2.07617 10.429 2.03288 10.3379 1.94629L9.29883 0.914062C8.85677 0.462891 8.42155 0.239583 7.99316 0.244141C7.56934 0.244141 7.13411 0.467448 6.6875 0.914062L5.64844 1.94629C5.56185 2.03288 5.45475 2.07617 5.32715 2.07617H3.86426C3.23535 2.07617 2.76823 2.22656 2.46289 2.52734C2.16211 2.82812 2.01172 3.29525 2.01172 3.92871V5.39844C2.01172 5.52148 1.96842 5.6263 1.88184 5.71289L0.849609 6.75195C0.402995 7.19857 0.179688 7.63607 0.179688 8.06445C0.179688 8.49284 0.402995 8.92806 0.849609 9.37012L1.88184 10.4092C1.96842 10.4958 2.01172 10.6029 2.01172 10.7305V12.1934C2.01172 12.8223 2.16211 13.2871 2.46289 13.5879C2.76823 13.8932 3.23535 14.0459 3.86426 14.0459ZM7.23438 11.4277C7.10221 11.4277 6.98372 11.4004 6.87891 11.3457C6.77409 11.291 6.67155 11.2021 6.57129 11.0791L4.89648 9.04199C4.83724 8.96452 4.79167 8.88477 4.75977 8.80273C4.72786 8.7207 4.71191 8.63639 4.71191 8.5498C4.71191 8.37663 4.77116 8.22852 4.88965 8.10547C5.0127 7.97786 5.16081 7.91406 5.33398 7.91406C5.44336 7.91406 5.54134 7.93685 5.62793 7.98242C5.71452 8.02799 5.80339 8.10775 5.89453 8.22168L7.20703 9.88965L10.0371 5.36426C10.1829 5.12728 10.3675 5.00879 10.5908 5.00879C10.7594 5.00879 10.9098 5.06348 11.042 5.17285C11.1787 5.28223 11.2471 5.42578 11.2471 5.60352C11.2471 5.68099 11.2288 5.76302 11.1924 5.84961C11.1559 5.93164 11.1149 6.00911 11.0693 6.08203L7.87012 11.0723C7.78809 11.1908 7.69238 11.2796 7.58301 11.3389C7.47819 11.3981 7.36198 11.4277 7.23438 11.4277Z"})})},916772:function(e,t,a){"use strict";a.d(t,{W:function(){return g}});var l=a(552322),r=a(202784),i=a(881153),o=a(483292),n=a(738949),s=a(385033),c=a(469301),d=a(476549),m=a(152706),u=a(26801);let p=(0,r.forwardRef)((e,t)=>{let{variant:a="tertiary",children:r,leftIcon:i,rightIcon:o,...n}=e;return(0,l.jsx)(m.z,{...n,variant:a,ref:t,children:(0,l.jsxs)("span",{className:u.button,children:[i&&(0,l.jsx)("span",{children:i}),(0,l.jsx)("span",{children:r}),o&&(0,l.jsx)("span",{children:o})]})})});p.displayName="DropdownMenuButton";var f=a(235179);function g(e){let{options:t,selected:a,onChange:m,disabled:u,onOpen:g,size:_="l",variant:h="tertiary",children:C}=e,y=(0,r.useMemo)(()=>t.find(e=>e.key===a),[t,a]),x=(0,c.Z)(),v=(0,c.Z)(),[b,j]=(0,r.useState)(null),[k,T]=(0,r.useState)(null),[G,M]=(0,d.z)(b,k);return(0,l.jsxs)("div",{className:f.picker,children:[(0,l.jsx)(p,{id:x,buttonSize:_,"aria-haspopup":"menu","aria-controls":v,variant:h,ref:j,rightIcon:(0,l.jsx)(i.NavCaret,{style:{width:8,fill:"var(--color-icon)"}}),disabled:u,onClick:()=>{null==g||g()},children:(0,l.jsx)("span",{children:y?y.label:"Select"})}),(0,l.jsxs)(n.v,{id:v,"aria-labelledby":x,isOpen:G,placement:"bottom-start",className:f.pickerMenu,ref:T,children:[t.map(e=>(0,l.jsx)("button",{onClick:()=>{e.key!==(null==y?void 0:y.key)&&m(e.key),M(!1)},className:f.menuItemButton,children:(0,l.jsxs)("div",{className:f.menuItemLink,children:[(0,l.jsx)("span",{className:f.selectedCheck,children:a===e.key&&(0,l.jsx)(o.ThinCheck,{style:{width:18,fill:"var(--color-icon)"}})}),(0,l.jsx)(s.W,{label:e.label,description:e.caption})]})},e.key)),!!C&&(0,l.jsx)("footer",{className:f.footer,children:C})]})]})}},5538:function(e,t,a){"use strict";a.d(t,{W:function(){return l.W}});var l=a(916772)},446922:function(e,t,a){"use strict";a.d(t,{n:function(){return m},X:function(){return f}});var l=a(552322),r=a(72779),i=a.n(r),o=a(202784),n=a(240926),s=a(572811),c=a(400055);let d=(0,o.createContext)(void 0);d.displayName="ImagePileContext";let m=(0,o.forwardRef)(function(e,t){let{className:a,style:r={},children:m,...u}=e,[p,f]=(0,o.useState)({}),g=(0,o.useCallback)((e,t,a)=>{f(l=>({...l,[e]:{width:t,height:a}}))},[]),_=(0,o.useCallback)(e=>{f(t=>{let{[e]:a,...l}=t;return l})},[]),h=(0,s.r)({registerImage:g,unregisterImage:_}),C=(0,o.useMemo)(()=>{if(Object.keys(p).length<1)return null;let e=Object.values(p);return{width:Math.max(...e.map(e=>e.width)),height:Math.max(...e.map(e=>e.height))}},[p]);return(0,l.jsx)("div",{...u,className:i()(c.root,a),style:{...r,...C?{[(0,n.Ay)("--image-pile-max-image-width")]:`${C.width}px`,[(0,n.Ay)("--image-pile-max-image-height")]:`${C.height}px`}:{}},ref:t,children:(0,l.jsx)(d.Provider,{value:h,children:m})})});var u=a(509020),p=a(469301);function f(e){let{id:t,width:a,height:r,className:n,...s}=e,{registerImage:m,unregisterImage:f}=function(){let e=(0,o.useContext)(d);if(void 0===e)throw Error("useImagePileContext must be used within a ImagePileProvider");return e}(),g=(0,p.Z)(t);return(0,o.useEffect)(()=>(m(g,Number(a),Number(r)),()=>{f(g)}),[g,a,r,m,f]),(0,l.jsx)("div",{className:i()(c.item,n),children:(0,l.jsx)(u.E,{...s,id:g,width:a,height:r})})}},903745:function(e,t,a){"use strict";a.d(t,{v:function(){return o}});var l=a(552322),r=a(323157),i=a(119991);function o(e){let{router:t,totalItemsCount:a,itemsPerPage:o,activePage:n,getPageUrl:s}=e;return(0,l.jsx)("nav",{className:i.numberedPaginationWrap,children:(0,l.jsx)(r.Z,{totalItemsCount:a,activePage:n,itemsCountPerPage:o,pageRangeDisplayed:5,onChange:e=>{t.push(s(e))},getPageUrl:s,innerClass:i.numberedPagination,itemClass:i.numberedPaginationItem,prevPageText:"←",nextPageText:"→",hideFirstLastPages:!0,hideDisabled:!0})})}},706581:function(e,t,a){"use strict";a.d(t,{D:function(){return s}});var l=a(552322),r=a(72779),i=a.n(r),o=a(202784),n=a(168439);let s=(0,o.forwardRef)(function(e,t){let{children:a,active:r=!1,size:o="medium",type:s="button",color:c,noBorder:d=!1,className:m,matchingBorder:u=!1}=e,p=i()(n.pillButton,{[n.pillButtonActive]:r,[n.pillButtonSmall]:"small"===o,[n.colorBlue]:"blue"===c,[n.colorOrange]:"orange"===c,[n.colorTeal]:"teal"===c,[n.colorPurple]:"purple"===c,[n.colorRed]:"red"===c,[n.colorYellow]:"yellow"===c,[n.colorLightgray]:"lightgray"===c,[n.matchingBorder]:u&&c,[n.noBorder]:d},m),{noBorder:f,active:g,matchingBorder:_,...h}=e;return(0,l.jsx)("button",{...h,type:s,className:p,ref:t,"aria-pressed":r,children:(0,l.jsx)("div",{className:n.pillInner,children:a})})})},663893:function(e,t,a){"use strict";a.d(t,{o:function(){return d}});var l=a(552322),r=a(282445),i=a(183428),o=a(38702),n=a(816033),s=a(596465),c=a(45586);function d(e){let t=(0,i.YB)(),{collection:a}=e,{slug:d,author:m,images:u}=a,p=u[0],f=p?{src:p,width:r.Sv.image.width/3,height:r.Sv.image.height/3,alt:t.formatMessage({id:"templates.collectionFeed.collection.imageAlt",defaultMessage:"Screenshot of {collectionName} collection by {author}",description:"Alt text for collection images"},{collectionName:a.heading,author:m})}:void 0;return(0,l.jsx)(o.g,{...a,link:{href:(0,s.$I)(d),analyticsMeta:{eventName:"template_gallery_block_click",eventData:{blockType:"collection",blockTitle:a.heading}}},className:c.collectionFeedBlock,children:(0,l.jsx)(n.s,{...a,avatar:void 0,layout:"large",title:a.heading,description:a.templatesCount&&a.templatesCount>0?t.formatMessage({id:"TemplateCollectionFeed.templates",description:"Number of templates in a section",defaultMessage:(0,i.Ho)("templatesCount",{one:"{templatesCount} template",other:"{templatesCount} templates"})},{templatesCount:a.templatesCount}):"",asset:f,assetPosition:"bottomCenter",hasShadow:!0,titleLink:(0,s.$I)(d)})})}},80906:function(e,t,a){"use strict";a.d(t,{o:function(){return n}});var l=a(552322),r=a(183428),i=a(38702),o=a(816033);function n(e){var t,a,n;let s=(0,r.YB)(),{category:c,overrideColor:d,large:m}=e;return(0,l.jsx)(i.g,{...c,link:{...c.link,analyticsMeta:{eventName:"template_gallery_block_click",eventData:{blockType:"category",blockTitle:c.title}}},children:(0,l.jsx)(o.s,{...c,notionIconColor:d||c.notionIconColor,subtitle:(null===(n=c.link)||void 0===n?void 0:null===(a=n.href)||void 0===a?void 0:a.includes("/templates/category/free-"))?c.numberOfFreeTemplates&&c.numberOfFreeTemplatesFormatted&&c.numberOfFreeTemplates>0?s.formatMessage({id:"TemplateSearchResults.templates",description:"Number of templates in a section",defaultMessage:(0,r.Ho)("templatesCount",{one:"{templatesCount} template",other:"{templatesCount} templates"})},{templatesCount:c.numberOfFreeTemplatesFormatted}):void 0:c.numberOfTemplates&&c.numberOfTemplates>0&&c.numberOfTemplatesFormatted?s.formatMessage({id:"TemplateSearchResults.templates",description:"Number of templates in a section",defaultMessage:(0,r.Ho)("templatesCount",{one:"{templatesCount} template",other:"{templatesCount} templates"})},{templatesCount:c.numberOfTemplatesFormatted}):void 0,asset:m?c.asset:void 0,assetPosition:m?c.assetPosition:void 0,hasShadow:!!m,showStacks:!!m,titleLink:null===(t=c.link)||void 0===t?void 0:t.href})})}},146044:function(e,t,a){"use strict";a.d(t,{o:function(){return l.o}});var l=a(80906)},194910:function(e,t,a){"use strict";a.d(t,{S:function(){return g}});var l=a(552322),r=a(202784),i=a(72779),o=a.n(i),n=a(239097),s=a.n(n),c=a(491414),d=a(440150),m=a(446922),u=a(875362),p=a(596465),f=a(202970);function g(e){let{className:t,slug:a,heading:i,headingLevel:n=2,description:g,author:_,avatar:h,color:C,images:y,mobileImages:x}=e;return(0,l.jsxs)("article",{style:{backgroundColor:C},className:o()(f.root,f.large,t),children:[(0,l.jsx)(s(),{prefetch:!1,href:(0,p.$I)(a),onClick:e=>{(0,c.bp)({blockType:"collections",blockTitle:i})},className:f.blockLink}),(0,l.jsxs)("div",{className:f.textContent,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(d.X,{level:n,variant:"sans-400-bold",className:f.heading,style:{color:C,filter:"brightness(30%) saturate(600%)"},children:i}),(0,l.jsx)(u.Z,{variant:"sans-200-medium",children:g})]}),h?(0,l.jsxs)("div",{className:f.attribution,children:[h,(0,l.jsx)("span",{children:_})]}):null]}),(0,l.jsxs)("div",{className:f.screenshots,children:[(0,l.jsx)("div",{className:f.mobileScreenshots,children:(0,l.jsx)(m.n,{children:x.map(e=>(0,r.createElement)(m.X,{...e,key:e.src,className:f.screenshot}))})}),(0,l.jsx)("div",{className:f.desktopScreenshots,children:(0,l.jsx)(m.n,{children:y.map(e=>(0,r.createElement)(m.X,{...e,key:e.src,className:f.screenshot}))})})]})]})}},760568:function(e,t,a){"use strict";a.d(t,{M:function(){return u}});var l=a(552322),r=a(239097),i=a.n(r),o=a(183428),n=a(128443),s=a(38702),c=a(440150),d=a(875362),m=a(944658);function u(e){var t;let a=(0,o.YB)(),{avatar:r,title:u,description:p,numberOfTemplatesFormatted:f}=e;return(0,l.jsx)(s.g,{variant:e.variant||"normal",link:{...e.link,analyticsMeta:{eventName:"template_gallery_block_click",eventData:{blockType:"creator",blockTitle:u}}},children:(0,l.jsxs)("div",{className:m.wrapper,children:[r&&(0,l.jsx)(n.q,{size:"lg",src:r.src,className:m.avatar,alt:a.formatMessage({id:"TemplateGalleryCreatorBlock.avatarAlt",defaultMessage:"A profile image of {title}",description:"Description of a person's image"},{title:u}),children:u}),(0,l.jsx)(c.X,{level:5,style:{marginTop:"auto"},children:(0,l.jsx)(i(),{prefetch:!1,href:(null===(t=e.link)||void 0===t?void 0:t.href)||"",className:m.link,children:u})}),(0,l.jsx)(d.Z,{className:m.biography,as:"p",children:p}),(0,l.jsx)(d.Z,{className:m.numberOfTemplates,as:"p",children:a.formatMessage({id:"TemplateSearchResults.templates",defaultMessage:(0,o.Ho)("templatesCount",{one:"{templatesCount} template",other:"{templatesCount} templates"}),description:"Number of templates in a section"},{templatesCount:f})})]})})}},733348:function(e,t,a){"use strict";a.d(t,{U:function(){return C}});var l=a(552322),r=a(72779),i=a.n(r),o=a(239097),n=a.n(o),s=a(462286),c=a(183428),d=a(262600),m=a(747259),u=a(440150),p=a(491216),f=a(592220),g=a(875362),_=a(596465),h=a(526626);function C(e){let{creator:t,topCategories:a}=e,r=(0,c.YB)(),{attributes:o,number_of_templates:C,number_of_duplicates:y}=t,{links:x,image:v}=o||{};return(0,l.jsxs)("section",{className:i()(h.metadata,{[h.metadataWithAvatar]:!!(null==v?void 0:v.url)}),children:[0!==a.length&&(0,l.jsxs)("div",{className:h.topCategoriesContainer,children:[(0,l.jsx)(u.X,{level:6,variant:"sans-50-medium",color:"gray-400",children:(0,l.jsx)(c._H,{id:"templateGallery.templateCreatorProfile.topCategories",defaultMessage:"Top categories",description:"Top categories heading text"})}),(0,l.jsx)("div",{className:h.topCategories,children:a.map(e=>(0,l.jsxs)(n(),{prefetch:!1,href:(0,_.d)(e.slug),className:h.category,children:[(0,l.jsx)(p.ae,{icon:e.icon}),(0,l.jsx)("span",{children:e.name})]},`creatorProfileTopCategory-${e.id}`))})]}),void 0!==x&&(0,l.jsxs)("div",{children:[(0,l.jsx)(u.X,{level:6,variant:"sans-50-medium",color:"gray-400",children:(0,l.jsx)(c._H,{id:"templateGallery.templateCreatorProfile.Links",defaultMessage:"Links",description:"Links heading text"})}),(0,l.jsx)("ul",{className:h.links,children:(0,f.nV)(x)})]}),(0,l.jsx)("div",{className:h.metadataMetrics,children:(0,l.jsxs)("ul",{className:h.links,children:[void 0!==C&&C>-1&&(0,l.jsxs)(g.Z,{variant:"sans-50-medium",as:"li",color:"gray-500",children:[(0,l.jsx)(m.Template,{style:{width:"16px",fill:"var(--color-alpha-black-600)",height:"16px"}}),(0,l.jsx)(c._H,{id:"templateGallery.creatorProfile.templates",description:"Number of templates created by the user",values:{number_of_templates:C},defaultMessage:(0,c.Ho)("number_of_templates",{one:"{number_of_templates} template",other:"{number_of_templates} templates"})})]}),void 0!==y&&y>-1&&(0,l.jsxs)(g.Z,{variant:"sans-50-medium",as:"li",color:"gray-500",children:[(0,l.jsx)(d.Branch,{style:{width:"16px",height:"16px"}}),(0,l.jsx)(c._H,{id:"templateGallery.creatorProfileMetadata.templateDuplications",defaultMessage:"{numberOfDuplicates, plural, one {{numberOfDuplicates} total duplication} other {{numberOfDuplicates} total duplications}}",description:"Number of times the templates has been duplicated",values:{numberOfDuplicates:s.uf(y,"compact",r)}})]})]})})]})}},256972:function(e,t,a){"use strict";a.d(t,{y:function(){return g}});var l=a(552322),r=a(72779),i=a.n(r),o=a(183428),n=a(958022),s=a(154064),c=a(629938),d=a(128443),m=a(152706),u=a(440150),p=a(875362),f=a(466584);function g(e){let{creator:t}=e,{attributes:a,name:r,is_featured_creator:g,is_certified_consultant:_}=t,{description:h,is_campus_leader:C,image:y,cover_image:x,contactEmail:v,certified_consultant_link:b}=a||{},j=!!(null==x?void 0:x.url),k=v&&v.length>0,T=!!(null==y?void 0:y.url);return(0,l.jsxs)("aside",{className:i()(f.profile,{[f.profileCoverImageAndAvatar]:j&&T}),children:[(0,l.jsxs)("figure",{className:f.bio,children:[!j&&T&&(0,l.jsx)(d.q,{src:null==y?void 0:y.url,size:"xl",alt:r||""}),(0,l.jsxs)("figcaption",{children:[(0,l.jsx)(u.X,{level:T||j?3:2,children:t.name}),(0,l.jsx)(u.X,{level:4,variant:"sans-150-regular",color:"gray-600",children:`@${t.username}`})]}),(_||g||C)&&(0,l.jsxs)("section",{className:f.certified,children:[_&&(0,l.jsx)(m.z,{buttonSize:"s",variant:"tertiary",href:b,style:{background:"rgb(246 245 244 / 100%)",border:"none"},children:(0,l.jsxs)("div",{className:f.badge,children:[(0,l.jsx)(c.TypesVerification,{style:{width:"16px",height:"16px",fill:"var(--color-red-500)",paddingRight:4}}),(0,l.jsx)(p.Z,{variant:"sans-100-medium",color:"red-600",children:(0,l.jsx)(o._H,{id:"templateGallery.templateCreatorProfile.certifiedConsultant",defaultMessage:"Notion Certified Consultant",description:"Notion Certified Consultant button text"})})]})}),g&&(0,l.jsx)(m.z,{buttonSize:"s",variant:"tertiary",disabled:!0,style:{background:"rgb(246 245 244 / 100%)",border:"none"},children:(0,l.jsxs)("div",{className:f.badge,children:[(0,l.jsx)(s.Thumbsup,{style:{width:"16px",height:"16px",fill:"var(--color-blue-500)",paddingRight:4}}),(0,l.jsx)(p.Z,{variant:"sans-100-medium",color:"blue-600",children:(0,l.jsx)(o._H,{id:"templateGallery.templateCreatorProfile.featuredCreator",defaultMessage:"Recommended creator",description:"Recommended creator button text"})})]})}),C&&(0,l.jsx)(m.z,{buttonSize:"s",variant:"tertiary",disabled:!0,style:{background:"rgb(246 245 244 / 100%)",border:"none"},children:(0,l.jsxs)("div",{className:f.badge,children:[(0,l.jsx)(n.CampusLeader,{style:{width:"16px",height:"16px",fill:"var(--color-yellow-500)",paddingRight:4}}),(0,l.jsx)(p.Z,{variant:"sans-100-medium",color:"yellow-600",children:(0,l.jsx)(o._H,{id:"templateGallery.templateCreatorProfile.campusLeader",defaultMessage:"Official Campus Leader",description:"Official Campus Leader button text"})})]})})]}),void 0!==h&&(null==h?void 0:h.length)>0&&(0,l.jsx)(p.Z,{variant:"sans-150-regular",as:"p",children:h})]}),k&&(0,l.jsx)("section",{className:f.creatorButtons,children:k&&(0,l.jsx)(m.z,{buttonSize:"s",variant:"primary",href:`mailto:${v}`,children:(0,l.jsx)(o._H,{id:"templateGallery.templateCreatorProfile.contactCreatorButton",defaultMessage:"Contact creator",description:"Contact creator button text"})})})]})}},22043:function(e,t,a){"use strict";a.d(t,{t:function(){return g}});var l=a(552322),r=a(239097),i=a.n(r),o=a(355293),n=a(772769),s=a(183428),c=a(491414),d=a(28630),m=a(875362),u=a(596465),p=a(83860),f=a(72315);function g(){let e=(0,s.YB)(),t=(0,p.F)(),a={text:e.formatMessage({id:"templateGallery.subNavigation.ctaSignup",defaultMessage:"Get Notion free",description:"A CTA for a user"}),href:n._j.signup,onClick:e=>{(0,c.t)(t,{name:"template_gallery_subnav_sign_up",href:n._j.signup})}};return(0,l.jsx)(d.T,{ariaLabel:"Sub Navigation",cta:a,container:"fluid",children:(0,l.jsxs)(i(),{prefetch:!1,className:f.wordmark,href:(0,u.Yp)(),children:[(0,o.s)({width:20,height:20}),(0,l.jsx)(m.Z,{variant:"sans-150-semibold",as:"span",className:f.brandName,children:(0,l.jsx)(s._H,{id:"templateGallery.subNavigation.wordmark",defaultMessage:"Templates",description:"Name of the Template Gallery"})})]})})}},153310:function(e,t,a){"use strict";a.d(t,{dW:function(){return e_},o_:function(){return Z.o},sR:function(){return ed},gZ:function(){return m},nA:function(){return y},DL:function(){return G},ZN:function(){return w},S2:function(){return P.S},NY:function(){return L},Rh:function(){return R},lx:function(){return A.l},Mr:function(){return z.M},ur:function(){return E},AK:function(){return J},Uz:function(){return K.U},y9:function(){return Q.y},BH:function(){return ee.B},d9:function(){return et.d},qE:function(){return eo},AN:function(){return en.A},FK:function(){return el.F}}),a(967022);var l=a(552322),r=a(789903),i=a(183428),o=a(433327),n=a(491414),s=a(5538),c=a(961268),d=a(227226);function m(e){let{value:t,disabled:a,onChange:m}=e,u=(0,i.YB)(),p=(0,c.b)(),f=e=>{m({...t,...e})},g=(0,r.t)(u)[p].caption,_=[{key:"notion_and_community",label:u.formatMessage({id:"templateGallery.categoryFilters.author.notion_and_community",defaultMessage:"Notion + creators",description:"Templates are created by Notion and third-party creators"})},{key:"notion",label:"Notion"},{key:"community",label:u.formatMessage({id:"templateGallery.categoryFilters.author.community",defaultMessage:"Creators",description:"Templates are created by third-party creators only"})}],h=[{key:"free_and_paid",label:u.formatMessage({id:"templateGallery.categoryFilters.price.free_and_paid",defaultMessage:"Free + paid",description:"The price of the template is free or paid"})},{key:"paid",label:u.formatMessage({id:"templateGallery.categoryFilters.price.paid",defaultMessage:"Paid",description:"The price of the template is paid only"})},{key:"free",label:u.formatMessage({id:"templateGallery.categoryFilters.price.free",defaultMessage:"Free",description:"The price of the template is free only"})}],C=[{key:"popular",label:u.formatMessage({id:"templateGallery.categoryFilters.order.popular",defaultMessage:"Popular",description:"Templates are ordered by popularity"})},{key:"duplications",label:u.formatMessage({id:"templateGallery.categoryFilters.order.duplications",defaultMessage:"Most duplicated",description:"Templates are ordered by the number of duplications"})},{key:"recent",label:u.formatMessage({id:"templateGallery.categoryFilters.order.recent",defaultMessage:"Recently added",description:"Templates are ordered by the date they were added"})}],y=p!==o.al?[{key:"english_and_user_locale",label:u.formatMessage({id:"templateGallery.categoryFilters.locale.english_and_user_locale",defaultMessage:"English + {userLocale}",description:"Label for option to show templates in English and the user's locale. Will only be shown for non-English locales."},{userLocale:g})},{key:"user_locale",label:u.formatMessage({id:"templateGallery.categoryFilters.locale.user_locale",defaultMessage:"{userLocale}",description:"Label for option to show templates in the user's locale only"},{userLocale:g})}]:[];return(0,l.jsxs)("div",{className:d.container,children:[(0,l.jsx)(s.W,{options:_,selected:t.madeBy,onChange:e=>{f({madeBy:e}),(0,n.v)({filter_category:"made_by",filter_option_clicked:e,filter_source:"category"})},disabled:a,onOpen:()=>{(0,n.tO)({filter_category:"made_by",filter_source:"category"})}}),(0,l.jsx)(s.W,{options:h,selected:t.paid,onChange:e=>{f({paid:e}),(0,n.v)({filter_category:"free_or_paid",filter_option_clicked:e,filter_source:"category"})},disabled:a,onOpen:()=>{(0,n.tO)({filter_category:"free_or_paid",filter_source:"category"})}}),y.length>0&&(0,l.jsx)(s.W,{options:y,selected:t.locales,onChange:e=>{f({locales:e}),(0,n.v)({filter_category:"locales",filter_option_clicked:e,filter_source:"category"})},disabled:a,onOpen:()=>{(0,n.tO)({filter_category:"locales",filter_source:"category"})}}),(0,l.jsx)(s.W,{options:C,selected:t.orderBy,onChange:e=>{f({orderBy:e}),(0,n.v)({filter_category:"order_by",filter_option_clicked:e,filter_source:"category"})},disabled:a,onOpen:()=>{(0,n.tO)({filter_category:"order_by",filter_source:"category"})}})]})}var u=a(202784);let p=(0,a(293956).IU)("plusRounded",{viewBox:"0 0 24 24",svg:(0,l.jsx)("path",{d:"M5.46094 11.8594C5.46094 12.1042 5.54688 12.3125 5.71875 12.4844C5.89062 12.651 6.09635 12.7344 6.33594 12.7344H11.125V17.5312C11.125 17.7656 11.2109 17.9688 11.3828 18.1406C11.5547 18.3125 11.7604 18.3984 12 18.3984C12.2448 18.3984 12.4531 18.3125 12.625 18.1406C12.7969 17.9688 12.8828 17.7656 12.8828 17.5312V12.7344H17.6641C17.9036 12.7344 18.1094 12.651 18.2812 12.4844C18.4531 12.3125 18.5391 12.1042 18.5391 11.8594C18.5391 11.6198 18.4531 11.4141 18.2812 11.2422C18.1094 11.0651 17.9036 10.9766 17.6641 10.9766H12.8828V6.19531C12.8828 5.95573 12.7969 5.75 12.625 5.57812C12.4531 5.40625 12.2448 5.32031 12 5.32031C11.7604 5.32031 11.5547 5.40625 11.3828 5.57812C11.2109 5.75 11.125 5.95573 11.125 6.19531V10.9766H6.33594C6.09635 10.9766 5.89062 11.0651 5.71875 11.2422C5.54688 11.4141 5.46094 11.6198 5.46094 11.8594Z"})});var f=a(152706),g=a(409230),_=a(24832),h=a(875362),C=a(292586);function y(e){let{templateCategories:t,allowExpand:a,overrideColor:r}=e,[o,s]=(0,u.useState)(!1),c=(0,C.k)(),d=c.m||c.l||c.xl,m=o?t.length:6,y=o?0:t.length-6,x=(0,u.useMemo)(()=>{if(!r||"lightgray"===r)return"black";switch(r){case"red":return"red-900";case"yellow":return"yellow-900";case"orange":return"orange-900";case"teal":return"teal-800";case"blue":return"blue-900";case"purple":return"purple-900"}},[r]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.r,{children:t.slice(0,m).map(e=>(0,l.jsx)(_.P,{span:d?2:4,children:(0,l.jsx)(Z.o,{category:e,overrideColor:r})},`category-${e.title}`))}),a&&!o&&y>0&&(0,l.jsxs)(f.z,{variant:"simple",onClick:()=>{s(e=>!e),(0,n.Dg)({label:"categories"})},children:[(0,l.jsx)(h.Z,{variant:"sans-200-bold",color:x,children:p({width:24,height:22,fill:"currentColor"})}),(0,l.jsx)(h.Z,{variant:"sans-200-bold",color:x,children:(0,l.jsx)(i._H,{id:"templateGallery.categoryGrid.",defaultMessage:"{numMoreCategories, plural, one {{numMoreCategories} more category} other {{numMoreCategories} more categories}}",description:"Template gallery category grid expand to see more categories",values:{numMoreCategories:y}})})]})]})}var x=a(72779),v=a.n(x),b=a(440150),j=a(491216),k=a(767760),T=a(53581);function G(e){let{category:t,className:a,categoryType:r}=e,o=(0,i.YB)();return(0,l.jsxs)("header",{className:v()(T.categoryHeader,a),children:[(0,l.jsx)(j.ae,{icon:t.icon,className:T.categoryIcon}),(0,l.jsx)(b.X,{level:1,variant:"sans-900-bold",children:o.formatMessage(k.l6[r],{categoryName:t.name})}),(0,l.jsx)(b.X,{level:2,variant:"sans-200-regular",children:t.description})]})}var M=a(875026),N=a(378012);function w(e){let{arrowType:t="left",children:a,variant:r="simple",...i}=e;return(0,l.jsx)(f.z,{...i,variant:r,className:N.root,children:(0,l.jsxs)("div",{className:N.contents,children:[(0,l.jsx)(M.ArrowLeftIcon,{width:"1.2em"}),(0,l.jsx)("span",{children:a})]})})}var P=a(194910),B=a(459471),F=a(307335),H=a(349592);function L(e){let{descriptions:t,className:a}=e;return t.length>0?(0,l.jsx)(H.$,{limit:"1080",marginSize:"m",className:a,children:(0,l.jsx)(g.r,{children:null==t?void 0:t.map((e,t)=>(0,l.jsx)(_.P,{span:12,noRowGap:!0,children:(0,l.jsx)(F.m,{document:e,fontSize:"m"})},`descriptions-${t}`))})}):null}var S=a(282445),I=a(128443),O=a(210960);function R(e){let{collectionName:t,blockVariant:a,templateCollections:r}=e,o=(0,i.YB)();return(0,l.jsxs)(H.$,{limit:"l",marginSize:"l",children:[(0,l.jsx)(b.X,{level:2,variant:"sans-500-bold",className:O.heading,children:(0,l.jsx)(i._H,{id:"templateCollection.keepReadingTemplateCollections",defaultMessage:"Keep reading",description:"Heading for a section presenting more template collections"})}),(0,l.jsx)(g.r,{children:r.map(e=>{let{slug:r,author:i,avatar:n,images:s,templatesCount:c}=e,d=s.map(e=>({src:e,width:S.Sv.image.width/3,height:S.Sv.image.height/3,alt:o.formatMessage({id:"templateGalleryCollectionDetailPage.templateImageAlt",defaultMessage:"Template image for collection {collectionName}",description:"Alt text for a template image"},{collectionName:t})}));return"small"===a?(0,l.jsx)(_.P,{span:4,children:(0,l.jsx)(B.W,{...e,templatesCount:c,image:d[0]})},r):(0,l.jsx)(_.P,{span:6,children:(0,l.jsx)(P.S,{...e,images:d,mobileImages:d,avatar:(0,l.jsx)(I.q,{src:n,children:i})})},r)})})]})}var A=a(493386),z=a(760568),Z=a(146044),V=a(557921);function E(e){let{value:t,onChange:a,featuredCategories:r}=e,o=(0,i.YB)(),c=e=>{a({...t,...e})},d=[{key:"all",label:o.formatMessage({id:"templateGallery.creatorFilters.isCertified.all",defaultMessage:"All creators",description:"All the creators of templates"})},{key:"certified",label:o.formatMessage({id:"templateGallery.creatorFilters.isCertified.certified",defaultMessage:"Certified consultants",description:"Template creators the are notion certified"})},{key:"notion_recommended",label:o.formatMessage({id:"templateGallery.creatorFilters.isCertified.notion_recommended",defaultMessage:"Notion recommended",description:"Template creators that are notion recommended"})}],m=[{key:"all",label:o.formatMessage({id:"templateGallery.creatorFilters.category.all",defaultMessage:"All categories",description:"Option in dropdown menu for selecting all categories"})},...r],u=[{key:"number_of_duplicates",label:o.formatMessage({id:"templateGallery.creatorFilters.order.number_of_duplicates",defaultMessage:"Most duplicated",description:"Templates creators are ordered by the number of duplications of all their templates"})},{key:"number_of_templates",label:o.formatMessage({id:"templateGallery.creatorFilters.order.number_of_templates",defaultMessage:"Most templates",description:"Template creators are ordered by the number of templates they have"})},{key:"alphabetical",label:o.formatMessage({id:"templateGallery.creatorFilters.order.alphabetical",defaultMessage:"Alphabetical",description:"Template creators are ordered alphabetically"})}];return(0,l.jsxs)("div",{className:V.container,children:[(0,l.jsx)(s.W,{options:d,selected:t.qualification,onChange:e=>{c({qualification:e}),(0,n.v)({filter_category:"qualification",filter_option_clicked:e,filter_source:"creator"})},onOpen:()=>{(0,n.tO)({filter_category:"qualification",filter_source:"creator"})}}),(0,l.jsx)(s.W,{options:m,selected:t.category,onChange:e=>{c({category:e}),(0,n.v)({filter_category:"category",filter_option_clicked:e,filter_source:"creator"})},onOpen:()=>{(0,n.tO)({filter_category:"category",filter_source:"creator"})}}),(0,l.jsx)(s.W,{options:u,selected:t.orderBy,onChange:e=>{c({orderBy:e}),(0,n.v)({filter_category:"order_by",filter_option_clicked:e,filter_source:"creator"})},onOpen:()=>{(0,n.tO)({filter_category:"order_by",filter_source:"creator"})}})]})}var D=a(262600),W=a(958022),Y=a(747259),X=a(154064),q=a(629938),$=a(592220),U=a(204940);function J(e){let{creator:t}=e,{attributes:a,number_of_duplicates:r,number_of_templates:o,name:n,is_featured_creator:s,is_certified_consultant:c}=t,{image:d,description:m,links:u,certified_consultant_link:p,is_campus_leader:g,contactEmail:_}=a||{};return(0,l.jsxs)("aside",{className:U.profile,children:[(0,l.jsxs)("figure",{className:U.bio,children:[(0,l.jsx)(I.q,{src:null==d?void 0:d.url,size:"xl",alt:n||"",children:(null==d?void 0:d.url)?void 0:null==n?void 0:n.charAt(0)}),(0,l.jsxs)("figcaption",{children:[(0,l.jsx)(b.X,{level:3,children:t.name}),(0,l.jsx)(b.X,{level:4,variant:"sans-150-regular",color:"gray-600",children:`@${t.username}`}),void 0!==m&&(null==m?void 0:m.length)>0&&(0,l.jsx)(h.Z,{variant:"sans-150-regular",as:"p",children:m})]})]}),(0,l.jsxs)("section",{children:[_&&_.length>0&&(0,l.jsx)(f.z,{buttonSize:"s",variant:"primary",href:`mailto:${_}`,children:(0,l.jsx)(i._H,{id:"templateGallery.templateCreatorProfile.contactCreatorButton",defaultMessage:"Contact creator",description:"Contact creator button text"})}),(c||s||g)&&(0,l.jsxs)("section",{className:U.certified,children:[c&&(0,l.jsx)(f.z,{buttonSize:"s",variant:"tertiary",style:{borderColor:"var(--color-red-100)"},href:p,children:(0,l.jsxs)("div",{className:U.badge,children:[(0,l.jsx)(q.TypesVerification,{style:{width:"16px",height:"16px",fill:"var(--color-red-500)",paddingRight:4}}),(0,l.jsx)(h.Z,{variant:"sans-100-medium",color:"red-600",children:(0,l.jsx)(i._H,{id:"templateGallery.templateCreatorProfile.certifiedConsultant",defaultMessage:"Notion Certified Consultant",description:"Notion Certified Consultant button text"})})]})}),s&&(0,l.jsx)(f.z,{buttonSize:"s",variant:"tertiary",style:{borderColor:"var(--color-blue-100)"},disabled:!0,children:(0,l.jsxs)("div",{className:U.badge,children:[(0,l.jsx)(X.Thumbsup,{style:{width:"16px",height:"16px",fill:"var(--color-blue-500)",paddingRight:4}}),(0,l.jsx)(h.Z,{variant:"sans-100-medium",color:"blue-600",children:(0,l.jsx)(i._H,{id:"templateGallery.templateCreatorProfile.featuredCreator",defaultMessage:"Recommended creator",description:"Recommended creator button text"})})]})}),g&&(0,l.jsx)(f.z,{buttonSize:"s",variant:"tertiary",style:{borderColor:"var(--color-yellow-100)"},disabled:!0,children:(0,l.jsxs)("div",{className:U.badge,children:[(0,l.jsx)(W.CampusLeader,{style:{width:"16px",height:"16px",fill:"var(--color-yellow-500)",paddingRight:4}}),(0,l.jsx)(h.Z,{variant:"sans-100-medium",color:"yellow-600",children:(0,l.jsx)(i._H,{id:"templateGallery.templateCreatorProfile.campusLeader",defaultMessage:"Official Campus Leader",description:"Official Campus Leader button text"})})]})})]})]}),(0,l.jsxs)("section",{className:U.meta,children:[void 0!==u&&(0,l.jsxs)("section",{children:[(0,l.jsx)(b.X,{level:6,variant:"sans-50-medium",color:"gray-400",children:(0,l.jsx)(i._H,{id:"templateGallery.templateCreatorProfile.Links",defaultMessage:"Links",description:"Links heading text"})}),(0,l.jsx)("ul",{className:U.links,children:(0,$.nV)(u)})]}),(0,l.jsxs)("ul",{className:U.links,children:[void 0!==o&&o>-1&&(0,l.jsxs)(h.Z,{variant:"sans-50-medium",as:"li",color:"gray-500",children:[(0,l.jsx)(Y.Template,{style:{width:"16px",fill:"var(--color-alpha-black-600)",height:"16px"}}),(0,l.jsx)(i._H,{id:"templateGallery.creatorProfile.templates",description:"Number of templates created by the user",values:{number_of_templates:o},defaultMessage:(0,i.Ho)("number_of_templates",{one:"{number_of_templates} template",other:"{number_of_templates} templates"})})]}),void 0!==r&&r>-1&&(0,l.jsxs)(h.Z,{variant:"sans-50-medium",as:"li",color:"gray-500",children:[(0,l.jsx)(D.Branch,{style:{width:"16px",height:"16px"}}),(0,l.jsx)(i._H,{id:"templateGallery.creatorProfile.templateDuplications",defaultMessage:"{number_of_duplicates} duplications",description:"Number of times the templates has been duplicated",values:{number_of_duplicates:r}})]})]})]})]})}var K=a(733348),Q=a(256972),ee=a(711284),et=a(169790);a(290565);var ea=a(706581),el=a(498559),er=a(628665),ei=a(866634);function eo(e){let{templates:t,limit:a,showCreator:r=!0,showDescription:o=!0,showDuplicationCount:n=!1,featuredTemplateContentfulIds:s=[],featuredPillColor:c}=e,d=a&&a>0?t.slice(0,a):t,m=new Set(s);return(0,l.jsx)(er.h,{limit:d.length,children:(0,l.jsx)("section",{className:ei.templateGrid,children:d.map((e,t)=>(0,l.jsx)(el.F,{template:e,showCreator:r,showDescription:o,showDuplicationCount:n,featuredPill:m.has(e.contentful_id)&&(0,l.jsx)(ea.D,{size:"small",color:c,active:!1,noBorder:!0,className:ei.featuredPill,children:(0,l.jsx)(i._H,{id:"templateGallery.templateThumbnail.featuredPill",defaultMessage:"Featured",description:"A pill that indicates that a template is featured"})}),section:"templateGalleryGrid",index:t},e.id))})})}a(22043);var en=a(546478);a(641747),a(219772);var es=a(508544),ec=a(879750);function ed(e){let t=(0,C.k)(),{editorialTitle:a,editorialTemplates:r}=e,o=(0,i.YB)(),[n,s]=(0,u.useState)(0),c=n+3(0,l.jsx)(el.F,{template:e,showCreator:!0,showDuplicationCount:!0,section:"categoryEditorial"},e.id))}),n>0&&(0,l.jsx)("button",{className:v()(ec.arrow,ec.arrowLeft,{[ec.small]:t.xs,[ec.medium]:t.xm,[ec.large]:t.m}),onClick:()=>{s(e=>e-1)},"aria-label":o.formatMessage({id:"templateGalleryEditorialTemplates.leftScrollButton",defaultMessage:"View previous {editorialTitle} templates",description:"Button to scroll left and view previous categories"},{editorialTitle:a}),type:"button",children:(0,l.jsx)(es.w,{iconName:"ChevronLeft",color:"white"})}),c&&(0,l.jsx)("button",{className:v()(ec.arrow,ec.arrowRight,{[ec.small]:t.xs,[ec.medium]:t.xm,[ec.large]:t.m}),onClick:()=>{s(e=>e+1)},"aria-label":o.formatMessage({id:"templateGalleryEditorialTemplates.rightScrollButton",defaultMessage:"View next {editorialTitle} templates",description:"Button to scroll right and view next category"},{editorialTitle:a}),type:"button",children:(0,l.jsx)(es.w,{iconName:"ChevronRight",color:"white"})})]})]})}var em=a(205632),eu=a(903745),ep=a(663893);a(862878),a(92814),a(815382),a(154406);var ef=a(596465);a(701320),a(753147);var eg=a(448546);function e_(e){let t=(0,em.useRouter)(),{templateCollections:a,totalCollections:r,filters:{page:i,orderBy:o}}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.r,{children:a.map(e=>(0,l.jsx)(_.P,{children:(0,l.jsx)(ep.o,{collection:e})},e.slug))}),(0,l.jsx)("div",{className:eg.paginationWrap,children:(0,l.jsx)(eu.v,{router:t,totalItemsCount:r,itemsPerPage:15,activePage:i||1,getPageUrl:e=>(0,ef.I7)({orderBy:o,page:e})})})]})}},753147:function(e,t,a){"use strict";a.d(t,{k4:function(){return o}});var l=a(240926),r=a(388988),i=a(92814);function o(e){let{sMaxage:t=(0,i.ZI)("VERY_HIGH"),...a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.preview||e.res.setHeader("Cache-Control",Object.entries({public:!0,maxAge:0,sMaxage:t,staleWhileRevalidate:!0,...a}).filter(e=>{let[,t]=e;return(0,l.lm)(t)&&!1!==t}).map(e=>{let[t,a]=e,l=(0,r.qI)(t);return!0!==a?`${l}=${a}`:l}).join(", "))}},862878:function(e,t,a){"use strict";a.d(t,{W:function(){return y}});var l=a(552322),r=a(205632),i=a(202784),o=a(183428),n=a(491414),s=a(5538),c=a(440150),d=a(323271),m=a(153310),u=a(875362),p=a(149370),f=a(762375),g=a(596465),_=a(961268),h=a(719154),C=a(431661);function y(e){let t=(0,_.b)(),a=(0,o.YB)(),y=(0,r.useRouter)(),{featuredTemplateCategories:x,templateCollections:v,preview:b,totalCollectionsFormatted:j,totalCollections:k,filters:{page:T,orderBy:G}}=e;(0,h.b)("template-collection-feed");let[M,N]=(0,i.useState)(G);(0,i.useEffect)(()=>{var e,t;let a={page:y.query.page?parseInt(null===(e=y.query.page)||void 0===e?void 0:e.toString()):1,orderBy:(null===(t=y.query.orderBy)||void 0===t?void 0:t.toString())||"newest"};if(T!==a.page||M!==a.orderBy){let e=(0,g.I7)({page:T,orderBy:M});y.push(e)}},[M,T,y]);let w={title:a.formatMessage({id:"templateCollectionFeedPage.metaTitle",defaultMessage:"Latest Notion Template Collections | {localizedNotion}",description:"Page Title"},{localizedNotion:(0,f.w)(t)}),description:a.formatMessage({id:"templateCollectionFeedPage.metaDescription",defaultMessage:"Discover the latest Notion template collections, organized chronologically and by topic. Stay updated with the newest templates for productivity, personal planning, project management, and more.",description:"Page description"},{localizedNotion:(0,f.w)(t)})},P=[{key:"newest",label:a.formatMessage({id:"templateGallery.collectionsFeedFilters.order.newest",defaultMessage:"Recently Created",description:"Collections are ordered by newest creation time"})},{key:"oldest",label:a.formatMessage({id:"templateGallery.collectionsFeedFilters.order.oldest",defaultMessage:"Oldest",description:"Collections are ordered by oldest creation time"})}];return(0,l.jsxs)(d.A,{preview:!!b,title:w.title,metadata:w,theme:"base",pageNav:(0,l.jsx)(m.AN,{categories:x}),favicon:(0,p.a)(),hideNotificationBanner:!0,children:[(0,l.jsxs)("div",{className:C.heading,children:[(0,l.jsx)("div",{className:C.link,children:(0,l.jsx)(m.ZN,{href:(0,g.uX)(),children:a.formatMessage({id:"templateCollectionFeed.backToCollections",defaultMessage:"Collections",description:"Label of a button which goes back to the template gallery collections index page"})})}),(0,l.jsxs)("div",{className:C.heroText,children:[(0,l.jsx)(c.X,{level:1,variant:"sans-800-bold",children:(0,l.jsx)(o._H,{id:"templateCollectionFeedPage.title",description:"Heading of a page that shows template collections feed",defaultMessage:"All Collections"})}),(0,l.jsx)(u.Z,{variant:"sans-200-medium",children:(0,l.jsx)(o._H,{id:"templateCollectionFeedPage.description",defaultMessage:"Explore all {collectionCount} template collections, covering virtually every aspect of your life.",description:"Description for the templatecollections feed page",values:{collectionCount:j}})})]})]}),(0,l.jsx)("div",{className:C.filters,children:(0,l.jsx)(s.W,{options:P,selected:M,onChange:e=>{N(e),(0,n.v)({filter_category:"order_by",filter_option_clicked:e,filter_source:"collection_feed"})},onOpen:()=>{(0,n.tO)({filter_category:"order_by",filter_source:"collection_feed"})}})}),(0,l.jsx)(m.dW,{filters:{page:T,orderBy:M},totalCollections:k,templateCollections:v})]})}},26801:function(e){e.exports={button:"DropdownMenuButton_button__uZwFJ"}},235179:function(e){e.exports={picker:"DropdownMenuFilter_picker__BuZ5z",pickerMenu:"DropdownMenuFilter_pickerMenu__hFk_l",footer:"DropdownMenuFilter_footer__L37nI",menuItemLink:"DropdownMenuFilter_menuItemLink__f8anf",selectedCheck:"DropdownMenuFilter_selectedCheck___XjpS",menuOption:"DropdownMenuFilter_menuOption__PVHnG",menuItemButton:"DropdownMenuFilter_menuItemButton__UFHY2"}},400055:function(e){e.exports={root:"imagePile_root__JVYBH",item:"imagePile_item__70wru"}},119991:function(e){e.exports={numberedPaginationWrap:"numberedPagination_numberedPaginationWrap__gzUlJ",numberedPagination:"numberedPagination_numberedPagination__otFt6",numberedPaginationItem:"numberedPagination_numberedPaginationItem__5fYLg",active:"numberedPagination_active__Qc_Dj",disabled:"numberedPagination_disabled__314se"}},168439:function(e){e.exports={pillButton:"pill_pillButton__aymNO",pillButtonActive:"pill_pillButtonActive__KuFNj",pillInner:"pill_pillInner__J1pbw",pillButtonSmall:"pill_pillButtonSmall___uSgE",colorBlue:"pill_colorBlue__1kEC8",colorLightgray:"pill_colorLightgray__JpGIt",colorOrange:"pill_colorOrange__K43uQ",colorPurple:"pill_colorPurple__g77RX",colorTeal:"pill_colorTeal___D41v",colorYellow:"pill_colorYellow__5Mhg2",colorRed:"pill_colorRed__7FaCQ",matchingBorder:"pill_matchingBorder__H1ATL",noBorder:"pill_noBorder__2TCWx"}},45586:function(e){e.exports={collectionFeedBlock:"TemplateCollectionFeedBlock_collectionFeedBlock__ETl_v"}},448546:function(e){e.exports={paginationWrap:"TemplateCollectionFeedGrid_paginationWrap__vAm1d"}},879750:function(e){e.exports={editorialHeader:"TemplateGalleryCategoryEditorial_editorialHeader__56nMw",arrow:"TemplateGalleryCategoryEditorial_arrow__I1xOV",arrowLeft:"TemplateGalleryCategoryEditorial_arrowLeft__EXRwQ",arrowRight:"TemplateGalleryCategoryEditorial_arrowRight__YwEHU",small:"TemplateGalleryCategoryEditorial_small__fRy5v",medium:"TemplateGalleryCategoryEditorial_medium__V7AO6",large:"TemplateGalleryCategoryEditorial_large__JigFd",editorialContainer:"TemplateGalleryCategoryEditorial_editorialContainer__kPGQP",editorialGrid:"TemplateGalleryCategoryEditorial_editorialGrid__XCpHQ",smallGrid:"TemplateGalleryCategoryEditorial_smallGrid__xommo",mediumGrid:"TemplateGalleryCategoryEditorial_mediumGrid__hLvpi",largeGrid:"TemplateGalleryCategoryEditorial_largeGrid__sYt0I",templatesCount:"TemplateGalleryCategoryEditorial_templatesCount__8vvWX"}},227226:function(e){e.exports={container:"TemplateGalleryCategoryFilters_container__MjYD5"}},53581:function(e){e.exports={categoryHeader:"TemplateGalleryCategoryHeader_categoryHeader__5_cy3",categoryIcon:"TemplateGalleryCategoryHeader_categoryIcon__Pj4uW"}},378012:function(e){e.exports={root:"templateGalleryCollectionBackLink_root__e_R1K",contents:"templateGalleryCollectionBackLink_contents__gjuMe"}},202970:function(e){e.exports={root:"templateGalleryCollectionBlock_root__wpZWA",large:"templateGalleryCollectionBlock_large__Bh6Sk",small:"templateGalleryCollectionBlock_small__G1eO6",blockLink:"templateGalleryCollectionBlock_blockLink__nVhQF",textContent:"templateGalleryCollectionBlock_textContent__JohA6",heading:"templateGalleryCollectionBlock_heading__n18zZ",attribution:"templateGalleryCollectionBlock_attribution__mke0w",screenshots:"templateGalleryCollectionBlock_screenshots__c61te",mobileScreenshots:"templateGalleryCollectionBlock_mobileScreenshots__a8Psp",desktopScreenshots:"templateGalleryCollectionBlock_desktopScreenshots___lMKE",screenshot:"templateGalleryCollectionBlock_screenshot__BuVAP"}},210960:function(e){e.exports={heading:"templateGalleryCollectionRelatedContent_heading__4F32Y"}},944658:function(e){e.exports={wrapper:"TemplateGalleryCreatorBlock_wrapper__d7iZ2",large:"TemplateGalleryCreatorBlock_large__rqxNI",vertical:"TemplateGalleryCreatorBlock_vertical__gmV0J",assetCroppedBottom:"TemplateGalleryCreatorBlock_assetCroppedBottom__q_0TU",header:"TemplateGalleryCreatorBlock_header__lrrOB",bottomCenter:"TemplateGalleryCreatorBlock_bottomCenter__XMBRB",leftCorner:"TemplateGalleryCreatorBlock_leftCorner__vIuJH",rightCorner:"TemplateGalleryCreatorBlock_rightCorner__WZ0xl",avatar:"TemplateGalleryCreatorBlock_avatar__GRTqL",biography:"TemplateGalleryCreatorBlock_biography__OPSCL",numberOfTemplates:"TemplateGalleryCreatorBlock_numberOfTemplates__ST9Iv",link:"TemplateGalleryCreatorBlock_link__o3Zii"}},557921:function(e){e.exports={container:"TemplateGalleryCreatorFilters_container__DRxp2"}},204940:function(e){e.exports={profile:"TemplateGalleryCreatorProfile_profile___Yr08",avatar:"TemplateGalleryCreatorProfile_avatar__yIBRB",bio:"TemplateGalleryCreatorProfile_bio__VybZj",meta:"TemplateGalleryCreatorProfile_meta__FCH65",links:"TemplateGalleryCreatorProfile_links__dcL8f",certified:"TemplateGalleryCreatorProfile_certified__6WMBg",badge:"TemplateGalleryCreatorProfile_badge__FgKkB"}},526626:function(e){e.exports={metadata:"TemplateGalleryCreatorProfileMetadataV2_metadata__UAPPB",metadataWithAvatar:"TemplateGalleryCreatorProfileMetadataV2_metadataWithAvatar__Gal67",links:"TemplateGalleryCreatorProfileMetadataV2_links__YwPKj",metadataMetrics:"TemplateGalleryCreatorProfileMetadataV2_metadataMetrics__xm6TE",topCategoriesContainer:"TemplateGalleryCreatorProfileMetadataV2_topCategoriesContainer__IM0tv",topCategories:"TemplateGalleryCreatorProfileMetadataV2_topCategories__pyUjY",category:"TemplateGalleryCreatorProfileMetadataV2_category__N1S5u"}},466584:function(e){e.exports={profile:"TemplateGalleryCreatorProfileV2_profile__dsOWj",profileCoverImageAndAvatar:"TemplateGalleryCreatorProfileV2_profileCoverImageAndAvatar__8XC_T",bio:"TemplateGalleryCreatorProfileV2_bio__EMnL4",certified:"TemplateGalleryCreatorProfileV2_certified__Qq9GI",badge:"TemplateGalleryCreatorProfileV2_badge__esdwH",creatorButtons:"TemplateGalleryCreatorProfileV2_creatorButtons__V7dmG"}},866634:function(e){e.exports={featuredPill:"TemplateGalleryPreviewGrid_featuredPill__RJDTF",templateGrid:"TemplateGalleryPreviewGrid_templateGrid__2Goyy"}},72315:function(e){e.exports={wordmark:"TemplateGallerySubNavigation_wordmark__0jcdq",brandName:"TemplateGallerySubNavigation_brandName__4cPI3"}},431661:function(e){e.exports={link:"TemplateCollectionFeedPage_link__vrd31",heading:"TemplateCollectionFeedPage_heading__zJll9",heroText:"TemplateCollectionFeedPage_heroText__YrIT4",filters:"TemplateCollectionFeedPage_filters__kzYGk"}}}]);