(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20856,75312,74738],{607985:function(e,t){"use strict";var i=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e||e.length>254||!i.test(e))return!1;var t=e.split("@");return!(t[0].length>64||t[1].split(".").some(function(e){return e.length>63}))}},614478:function(e){var t;t={},e.exports=t,t.simpleFilter=function(e,i){return i.filter(function(i){return t.test(e,i)})},t.test=function(e,i){return null!==t.match(e,i)},t.match=function(e,t,i){i=i||{};var n,r=0,a=[],s=t.length,o=0,l=0,c=i.pre||"",d=i.post||"",u=i.caseSensitive&&t||t.toLowerCase();e=i.caseSensitive&&e||e.toLowerCase();for(var g=0;g{let[n,a]=t;if("string"==typeof a){let t=e[n];i[n]=r()(t,a)}}),i}},199701:function(e,t,i){"use strict";i.d(t,{I:function(){return o}});var n=i(202784),r=i(278338),a=i(572811),s=i(905880);function o(e){var t;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"border-box",[o,l]=(0,n.useState)(void 0),[c,d]=(0,n.useState)(!1);t=(0,n.useCallback)(()=>d(!0),[]),(0,n.useEffect)(()=>{let e="undefined"!=typeof document?document:void 0;if(!e)return;let i=!1;return(async()=>{if(!i)try{let n=await e.fonts.ready;if(i)return;t(n)}catch{return}})(),()=>{i=!0}},[t]);let u=function(e){let t=(0,r.eV)(e);return`${t}Size`}(i),g=(0,n.useCallback)(t=>{let i=t.filter(t=>t.target===e);if(i.length<=0)return;let[n]=i[i.length-1][u];l(n)},[e,u]),h=(0,a.r)({box:i});return(0,s.y)(c?e:null,g,h),o}},651149:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return q},default:function(){return D}});var n=i(552322),r=i(205632),a=i(202784),s=i(791975),o=i(772769),l=i(183428),c=i(916346),d=i(278338),u=i(240926),g=i(387430),h=i(701264),f=i(665721),m=i(787923),x=i(824983),p=i(874278),_=i(72779),v=i.n(_),j=i(819126),y=i.n(j),S=i(953183),b=i(475312),w=i(246569),C=i(962093),z=i(817765),M=i(961268),N=i(453307);function A(e){let{search:t,onSearch:i,allCategories:s=[],selectedCategory:o,onCategorySelect:c,allCollections:d=[],selectedCollection:g,onCollectionSelect:h,integrationCount:f}=e;!function(){let e=(0,M.b)(),t=(0,r.useRouter)(),i=(0,a.useMemo)(()=>{let e=new URL(t.asPath,"https://notion.so");return y().parse(e.search.slice(1))},[t.asPath]);(0,a.useEffect)(()=>{let{typeform:n}=i;if(!n)return;let r=(0,u.Ay)(n),a=(0,z.o)({...r,locale:e,onClose:()=>{t.push(t.basePath,void 0,{shallow:!0})}});return()=>{null==a||a.close()}},[e,t,i])}();let x=y().stringify({typeform:{typeform:"requestIntegration",params:{source:"custom_cta"}}});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("section",{style:{paddingLeft:20},children:(0,n.jsx)(C.x,{size:"footnote",color:"medium",fontWeight:"medium",style:{paddingBottom:16},children:(0,n.jsx)(l._H,{id:"integrationGallery.sidebar.matchingConnections.new",defaultMessage:"{numberOfConnections} integrations",description:"Number of connections matching filters",values:{numberOfConnections:f}})})}),(0,n.jsx)("section",{className:N.sidebarSearch,style:{paddingLeft:20},children:(0,n.jsx)(w.I,{value:t,onChange:e=>i(e.target.value),before:(0,n.jsx)(b.SearchThick,{style:{width:14,height:14}}),placeholder:"Search...","aria-label":"Search"})}),(0,n.jsx)("nav",{style:{paddingLeft:20},children:(0,n.jsxs)("section",{className:N.sidebarSection,children:[(0,n.jsx)(C.x,{size:"footnote",color:"light",children:(0,n.jsx)(l._H,{id:"integrationGallery.sidebar.browseByCategory",defaultMessage:"Category",description:"Browse by category title"})}),(0,n.jsx)("ul",{className:N.categoryList,children:s.map((e,t)=>{let i=o===e,r=v()(N.categoryListItem,{[N.isActive]:i});return(0,n.jsxs)("li",{className:r,onClick:()=>c(e),children:[i&&(0,n.jsx)("span",{children:(0,n.jsx)(S.CheckNew,{style:{width:"0.875rem",height:"0.875rem",position:"absolute",left:"-1.125rem",top:"0.25rem"}})}),(0,n.jsx)(C.x,{size:"nav",fontWeight:i?"medium":"regular",color:i?"dark":"medium",children:e})]},`category-${t}`)})}),(0,n.jsx)(C.x,{size:"footnote",color:"light",children:(0,n.jsx)(l._H,{id:"integrationGallery.sidebar.browseByCollection",defaultMessage:"Collection",description:"Browse by collection title"})}),(0,n.jsx)("ul",{className:N.categoryList,children:d.map((e,t)=>{let i=g===e.name,r=v()(N.categoryListItem,{[N.isActive]:i});return(0,n.jsxs)("li",{className:r,onClick:()=>h(e),children:[i&&(0,n.jsx)("span",{children:(0,n.jsx)(S.CheckNew,{style:{width:"0.875rem",height:"0.875rem",position:"absolute",left:"-1.125rem",top:"0.25rem"}})}),(0,n.jsx)(C.x,{size:"nav",fontWeight:i?"medium":"regular",color:i?"dark":"medium",children:e.name})]},`collection-${t}`)})}),(0,n.jsx)(m.u,{href:`/integrations/all?${x}`,eventData:{name:"request_integration"},children:(0,n.jsx)("span",{className:N.requestIntegrationLink,children:(0,n.jsx)(l._H,{id:"integrationGallery.sidebar.requestAnIntegration",defaultMessage:"Request an integration",description:"Button to request an integration"})})})]})})]})}var I=i(323271),B=i(349592),P=i(938101),L=i(175585),k=i(390262),T=i(762375),H=i(300100),G=i(100678);function E(){return(0,n.jsx)(B.$,{children:(0,n.jsxs)("header",{className:"hero-header",children:[(0,n.jsx)(k.D,{level:"h1",size:"xl",children:(0,n.jsx)(l._H,{defaultMessage:"Integration gallery",id:"connectionsIndexPage.hero.v2.title",description:"Page title for integrations/connections gallery"})}),(0,n.jsx)(P.L,{height:8}),(0,n.jsxs)(C.x,{fontWeight:"medium",children:[(0,n.jsx)(l._H,{defaultMessage:"Connect Notion to other tools you use.",id:"connectionsIndexPage.hero.v2.description.line1",description:"Subheader that promotes connections in integrations/connections gallery"}),(0,n.jsx)("br",{}),(0,n.jsx)(l._H,{defaultMessage:"Not sure where to start? Read our integrations guide →",id:"connectionsIndexPage.hero.v2.description.line2",description:"Direct user to integrations/connections info in help center",values:{a:e=>(0,n.jsx)(m.u,{href:`${o.AR.help}/add-and-manage-connections-with-the-api`,eventData:{name:"connections_guide"},children:e})}})]})]})})}var q=!0,D=function(e){var t;let{preview:i,faqGroup:o,connectionList:m,tags:_,collections:v}=e,{replace:j,query:y,isReady:S}=(0,r.useRouter)(),b=(0,l.YB)(),w=(0,M.b)(),z=(0,H.u)(b.formatMessage({id:"IntegrationsIndexPage.pageTitle",defaultMessage:"Integrations",description:"Page title for /integrations/all"}),(0,T.w)(w)),N={title:z,description:b.formatMessage({id:"IntegrationsIndexPage.pageDescription",defaultMessage:"Connect your favorite tools to Notion to build the exact workflow you need."}),image:g.Z.meta.integrationsPng},B=m.filter(e=>e.isFeatured),[P,q]=(0,a.useState)("tag"),[D,R]=(0,a.useState)("All"),[$,F]=(0,a.useState)(void 0),[O,Z]=(0,a.useState)("");if((0,a.useEffect)(()=>{let e=v.find(e=>e.slug===y.collection);e?(F(e),q("collection")):F({name:"All",slug:"all",order:0})},[v,y]),!$||!S)return null;let W=(t=$.name,O?(0,n.jsx)(k.D,{id:"filtered-integrations",level:"h2",size:"xs",color:"light",children:(0,n.jsx)(l._H,{defaultMessage:"Searching for {search}",id:"connectionsIndexPage.title.whenSearching",description:"Title for connections page when searching showing the number of matched connections.",values:{search:(0,n.jsx)("span",{className:G.searchText,children:O})}})}):"All"!==D?(0,n.jsx)(k.D,{id:"filtered-integrations-category",level:"h2",size:"xs",children:D}):"All"!==t?(0,n.jsx)(k.D,{id:"filtered-integrations-collection",level:"h2",size:"xs",children:t}):(0,n.jsx)(k.D,{id:"filtered-integrations-all",level:"h2",size:"xs",children:(0,n.jsx)(l._H,{defaultMessage:"All integrations",id:"connectionsIndexPage.title.withEmptySearch",description:"Title for connections page when not searching."})})),V=[];"tag"===P?V=m.filter(e=>{var t;return"All"===D||(null==e?void 0:null===(t=e.categories)||void 0===t?void 0:t.includes(D))}):"collection"===P?V=m.filter(e=>{var t;return"All"===$.name||(null==e?void 0:null===(t=e.collections)||void 0===t?void 0:t.includes($.name))}):"search"===P?V=(0,c.ZP)(O,m,e=>e.name):(0,u.t1)(P),"All"!==D||"All"!==$.name||O||(V=(0,d.MR)(V,e=>e.name));let K=V.map(e=>{var t,i;return(0,n.jsx)(x.$,{name:null==e?void 0:e.name,author:null===(t=e.developer)||void 0===t?void 0:t.name,tagline:e.tagline,isVerified:(null===(i=e.developer)||void 0===i?void 0:i.name)==="Notion",icon:e.icon,url:(0,s.E)(e.id,e.name),showNewBadge:e.showNewBadge,showTechnologyPartnerBadge:e.showTechnologyPartnerBadge,tags:null==e?void 0:e.categories},e.id)});return(0,n.jsx)(I.A,{title:z,metadata:N,preview:i,children:(0,n.jsxs)(L.K,{marginSize:"l",children:[(0,n.jsxs)("section",{className:G.header,children:[(0,n.jsx)(E,{}),(0,n.jsx)("div",{style:{marginBottom:20,display:"flex",alignItems:"flex-end"}})]}),(0,n.jsxs)("section",{className:G.grid,children:[(0,n.jsxs)("section",{className:G.gridContent,children:["All"===D&&"All"===$.name&&!O&&B.length>0?(0,n.jsxs)("section",{"aria-labelledby":`integration-${D}`,style:{marginBottom:72},children:[(0,n.jsx)("div",{className:G.gridHeader,children:(0,n.jsx)(k.D,{id:"filtered-integrations",level:"h2",size:"xs",children:(0,n.jsx)(l._H,{id:"integrationsIndexPage.featuredSection.title",defaultMessage:"Featured",description:"Title for the featured section of the integration gallery"})})}),(0,n.jsx)("section",{className:G.integrationGrid,children:B.map(e=>{var t,i;return(0,n.jsx)(x.$,{name:null==e?void 0:e.name,author:null==e?void 0:null===(t=e.developer)||void 0===t?void 0:t.name,tagline:null==e?void 0:e.tagline,isVerified:(null==e?void 0:null===(i=e.developer)||void 0===i?void 0:i.name)==="Notion",icon:e.icon,url:(0,s.E)(e.id,null==e?void 0:e.name),showTechnologyPartnerBadge:e.showTechnologyPartnerBadge,showNewBadge:e.showNewBadge,tags:e.categories},e.id)})})]}):null,(0,n.jsxs)("section",{"aria-labelledby":`integration-${D}`,style:{marginBottom:72},children:[(0,n.jsx)("div",{className:G.gridHeader,children:W}),(0,n.jsx)("section",{className:G.integrationGrid,children:K})]}),(0,n.jsx)("div",{className:"caption",style:{marginBottom:50},children:(0,n.jsx)(C.x,{size:"caption",color:"medium",children:(0,n.jsx)(l._H,{id:"integrationsIndexPage.disclaimers.thirdPartyTrademarks",defaultMessage:"All third party trademarks (including logos and icons) are the property of their respective owners, which do not sponsor, authorize, or endorse this website.",description:"Legal disclaimer for the ownership of third-party trademarks"})})})]}),(0,n.jsx)("aside",{className:G.gridSidebar,style:{paddingTop:60},children:(0,n.jsx)(A,{onSearch:e=>{q("search"),Z(e),R("All"),F({name:"All",slug:"all",order:0})},search:O,onCategorySelect:e=>{q("tag"),R(e),F({name:"All",slug:"all",order:0}),Z("")},selectedCategory:D,allCategories:["All",..._],onCollectionSelect:e=>{q("collection"),F(e),R("All"),Z(""),j({query:{...y,collection:e.slug}},void 0,{shallow:!0})},allCollections:v,selectedCollection:$.name,integrationCount:V.length})})]}),(0,n.jsx)(f.i,{}),(0,n.jsx)(h.R,{}),(0,n.jsx)(f.i,{}),(0,n.jsx)(p.u,{faqGroup:o})]})})}},916346:function(e,t,i){"use strict";i.d(t,{ZP:function(){return d}});var n=i(607985),r=i(614478),a=i.n(r),s=i(278338),o=i(240926);function l(e){return e.normalize("NFKD")}function c(e){return-e.score}function d(e,t,i,r){let d=(null==r?void 0:r.minThreshold)||0,u=(null==r?void 0:r.getSortScore)||c,g=s.oA(t.map(t=>{let c=function(e,t,i){let r=l(e),c=l(t),d=a().match(r,c,i);if(!d)return;let u=r.toLowerCase(),g=c.toLowerCase(),h=function(e,t,i){let r=l(e).toLowerCase(),a=l(t).toLowerCase();if(a===r)return{isExactMatch:!0};let o=a.indexOf(r);if(0===o)return{isPrefixMatch:!0};if(" "===a[o-1])return n.validate(a.substring(o,o+e.length))?{isExactMatch:!0}:{isWordPrefixMatch:!0};if(o>-1)return{isSubstringMatch:!0};if(r.includes(" ")){let e=function(e,t){let i=new RegExp(s.hr(e.trim()).replace(/\s+/g,"(.*?) ")),n=t.match(i);return n?{result:!0,distance:n.slice(1).reduce((e,t)=>e+t.length,0)}:{result:!1}}(r,a);return e.result?{isInOrderTokenMatch:!0,inOrderMatchDistance:e.distance}:void 0}if(!(null==i?void 0:i.ignoreFuzzyFallback))return{isFuzzyMatch:!0}}(u,g,i);if(h){if("isExactMatch"in h)return{...d,score:1e6,matchMetadata:h};if("isPrefixMatch"in h)return{...d,score:1e5,matchMetadata:h};if("isWordPrefixMatch"in h)return{...d,score:1e4,matchMetadata:h};if("isSubstringMatch"in h)return{...d,score:1e3,matchMetadata:h};if("isInOrderTokenMatch"in h)return{...d,score:900-h.inOrderMatchDistance,matchMetadata:h};if("isFuzzyMatch"in h){var f;let e=function(e,t,i){let n=e.charAt(0),r=i;for(let i=1;ir&&(r=s.score)}return r}(u,g,d.score);return{...d,score:(null==i?void 0:i.normalizeFuzzyScore)?e?function(e){let{inputValue:t,inputMin:i,inputMax:n,targetMin:r,targetMax:a}=e,s=n-i;return 0===s?a:(t-i)/s*(a-r)+r}({inputValue:e,inputMin:0,inputMax:Math.pow(2,(f=u.length)+1)-f-2,targetMin:0,targetMax:899}):0:e,matchMetadata:h}}if("isExactIdMatch"in h)return{...d,score:2e6,matchMetadata:h};(0,o.t1)(h)}}(e,i(t),{normalizeFuzzyScore:null==r?void 0:r.normalizeFuzzyScore});if(c&&c.score>d)return{original:t,score:c.score}}));return s.MR(g,e=>u(e)).map(e=>e.original)}},893957:function(e){e.exports={apiSection:"apiBetaSection_apiSection__gr39_",apiSectionImage:"apiBetaSection_apiSectionImage___b4wb",apiSectionCaption:"apiBetaSection_apiSectionCaption__z45dC",apiSectionBadge:"apiBetaSection_apiSectionBadge__65j0_",image:"apiBetaSection_image__2pmq8"}},134704:function(e){e.exports={root:"input_root__sj8RO",sizeMedium:"input_sizeMedium__Y3knn",sizeLarge:"input_sizeLarge__ObHrl",hasBefore:"input_hasBefore__VWVp9",hasAfter:"input_hasAfter__zhGrc",input:"input_input__PoidJ",before:"input_before__3w5qd",after:"input_after__MsoSh"}},453307:function(e){e.exports={sidebarTitle:"integrationsGallerySidebarContent_sidebarTitle__o4MxT",sidebarSearch:"integrationsGallerySidebarContent_sidebarSearch__gi5Q1",sidebarSection:"integrationsGallerySidebarContent_sidebarSection__P25R6",categoryList:"integrationsGallerySidebarContent_categoryList__fxBvm",categoryListItem:"integrationsGallerySidebarContent_categoryListItem__kHxRE",icon:"integrationsGallerySidebarContent_icon__pGR4m",isActive:"integrationsGallerySidebarContent_isActive__lbHxt",requestIntegrationLink:"integrationsGallerySidebarContent_requestIntegrationLink__DU0Sf"}},100678:function(e){e.exports={header:"all_header__1yKip",grid:"all_grid___Lkn9",gridContent:"all_gridContent__gWt19",gridSidebar:"all_gridSidebar__DOvq8",gridHeader:"all_gridHeader__j6sds",integrationGrid:"all_integrationGrid__bLkLa",searchText:"all_searchText__aPYLm"}}},function(e){e.O(0,[68477,86802,96577,59680,88524,24883,63088,81712,22246,89450,2571,26154,45149,31188,40773,68812,67305,67014,68821,65905,92888,49774,40179],function(){return e(e.s=565381)}),_N_E=e.O()}]);