(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9747,4964],{67028:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/community/collections/[slug]",function(){return t(37454)}])},90733:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var o=t(85893),l=t(45697),i=t.n(l),a=t(93708),r=t(79621);function d(e){var n=e.heading;return(0,o.jsx)("div",{className:"w-full",children:(0,o.jsx)(r.Z,{href:"/community",children:(0,o.jsx)(a.Z,{background:!0,className:"mb-fixed-xl",iconBg:"white",iconSize:"sm",item:{heading:n,icon:"arrow-left"},scaleIcons:"inline",themeColor:"grey-20"})})})}d.defaultProps={heading:"Learn to Loom"},d.propTypes={heading:i().string}},84046:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});var o=t(85893),l=t(93967),i=t.n(l),a=t(45697),r=t.n(a),d=t(74876);function s(e){var n=e.font,t=e.quotation,l=e.lineLength,a=e.transparent;return(0,o.jsx)("blockquote",{className:i()((0,d.h)(n).heading,a?"text-center":"md:text-center","thd-quote py-lg",l?"thd-max-".concat(l):"thd-max-2xl"),children:t})}var u=t(42666),c=t(67061),m=t(76466),v=t(53608),h=t(55118),g=t(40205);function f(e){var n,t,l,a,r,d,f,b,x,p=e.card,y=e.caseStudy,_=e.className,C=e.font,j=e.hideAvatar,w=e.hideLogos,N=e.themeColor,T=e.themeColorMode,Z="white"===N,L=null==p?void 0:null===(a=p.logo)||void 0===a?void 0:null===(l=a.image)||void 0===l?void 0:null===(t=l.asset)||void 0===t?void 0:null===(n=t.metadata)||void 0===n?void 0:n.dimensions,k=null==L?void 0:L.aspectRatio,S=(0,m.Z)(90,30,{aspectRatio:k,type:"horizontal-optimized"}),D=S.width,A=S.height,E="".concat(N,"-").concat({dark:"90",light:"10"}[T]),P="".concat(N,"-").concat({dark:"10",light:"90"}[T]);return(0,o.jsx)("figure",{className:i()(_,(0,v.b)(E).headerText,(0,v.b)(E).bg,"mx-auto thd-rounded-static",!Z&&"p-fluid-sm lg:p-fluid-lg"),children:(0,o.jsxs)("div",{className:i()(Z?"items-center":"md:items-center","flex flex-col justify-center md:h-full md:px-0"),style:{"--filter-color":null===(r=(0,v.b)(E))||void 0===r?void 0:r.logoFilter,"--logo-height":A?A+"px":null,"--logo-width":D?D+"px":null},children:[y&&(null==p?void 0:p.byline)&&(0,o.jsx)(c.Z,{byline:null==p?void 0:p.byline,themeColor:E}),(null==p?void 0:null===(d=p.logo)||void 0===d?void 0:d.image)&&!y&&!w&&(0,o.jsx)("img",{alt:null==p?void 0:null===(f=p.byline)||void 0===f?void 0:f.company,className:"thd-filter thd-logo w-full h-full",height:A,src:(0,h.ZP)(null==p?void 0:null===(b=p.logo)||void 0===b?void 0:b.image).url(),width:D,loading:"lazy"}),(null==p?void 0:p.quotation)&&(0,o.jsx)(s,{font:C,quotation:null==p?void 0:p.quotation,transparent:Z}),!y&&(null==p?void 0:p.byline)&&(0,o.jsx)(c.Z,{byline:null==p?void 0:p.byline,hideAvatar:j,themeColor:E,transparent:Z}),y&&(0,o.jsx)(u.Z,{buttonType:"secondary",color:P,cta:{link:"/customers/".concat((0,g.Z)(null==p?void 0:null===(x=p.byline)||void 0===x?void 0:x.company)),copy:"View Case Study"},size:"lg",type:"primary"})]})})}f.propTypes={card:r().object.isRequired,caseStudy:r().bool,className:r().string,font:r().string,hideAvatar:r().bool,hideLogos:r().bool,themeColor:r().string,themeColorMode:r().string},f.defaultProps={caseStudy:!1,themeColor:"violet",themeColorMode:"light",font:"xs"}},47805:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});var o=t(24043),l=t(85893),i=t(99988),a=t(45697),r=t.n(a),d=t(51369),s=t(93967),u=t.n(s),c=t(67294),m=t(84046),v=t(53608),h=t(69524),g=t.n(h);function f(e){var n,t=e.bgVar,a=e.cards,r=e.className,s=e.font,h=e.lineLength,f=e.themeColorMode,b=e.hideLogos,x=(0,o._)((0,c.useState)(1),2),p=x[0],y=x[1],_=(0,o._)((0,c.useState)(!0),2),C=_[0],j=_[1];(0,c.useEffect)(function(){(1===p||p===a.length)&&j(!0)},[p,1,a.length]);var w=function(){p>0&&y(function(e){return e-1})},N={0:"violet",1:"blue",2:"magenta",3:"green",4:"violet",5:"blue",6:"magenta",7:"green",8:"violet",9:"blue",10:"magenta",11:"green"},T=c.cloneElement((0,l.jsx)(m.Z,{card:a[0],font:s,index:-1===p,themeColor:N[0],themeColorMode:f},"cloneFirst")),Z=c.cloneElement((0,l.jsx)(m.Z,{card:a[a.length-1],font:s,index:p===a.length,prev:w,style:{transform:"translate3d(-100%, 0, 0)"},themeColor:N[(null==a?void 0:a.length)-1],themeColorMode:f},"cloneLast")),L=function(){0===p?(j(!1),y(a.length)):p===a.length+1&&(j(!1),y(1))};return(0,l.jsx)("section",{className:u()(g().container,r,"sm:gap-fluid-sm pb-fluid-lg lg:pb-0 lg:mb-fluid-lg overflow-x-hidden"),style:{"--gradientColor":t},children:(0,l.jsxs)("div",{className:"flex relative h-full w-full",children:[(0,l.jsx)("button",{"aria-label":"Previous testimonial",className:g().left,onClick:w,type:"button",children:(0,l.jsx)(d.Z,{icon:(0,l.jsx)(i.Z,{}),size:"1.5em"})}),(0,l.jsx)("div",{className:"flex h-full w-full overflow-hidden",children:(0,l.jsxs)("div",{className:u()(g().content),onTransitionEnd:function(){return L()},style:{"--cardCount":a.length+2,"--transformValue":p,transition:C?void 0:"none","--curtainGradient":null===(n=(0,v.b)(null!=t?t:"white"))||void 0===n?void 0:n.bgVar},children:[Z,null==a?void 0:a.map(function(e,n){return(0,l.jsx)(m.Z,{hideLogos:b,card:e,font:s,index:p===n+1,lineLength:h,themeColor:N[n],themeColorMode:f},n)}),T]})}),(0,l.jsx)("button",{"aria-label":"Next testimonial",className:g().right,onClick:function(){pslug.current)[@ in [$slug]]) > 0 && (\n _createdAt < $lastCreatedAt\n || (_createdAt == $lastCreatedAt && _id > $lastId)\n )] | order(_createdAt desc) [0...44] {\n "loomPage": *[_type=="learnLoomTemplate" && references(^._id)] {\n "slug": meta.slug.current,\n },\n _id,\n length,\n _createdAt,\n meta,\n categories[]->,\n loom {\n ...,\n thumbnail {\n altText,\n asset-> {\n url,\n metadata {\n dimensions {\n height,\n width\n }\n },\n }\n },\n },\n author-> {\n ...,\n avatar {\n altText,\n asset-> {\n url,\n metadata {\n dimensions {\n height,\n width\n }\n },\n }\n }\n },\n }\n}\n']);return D=function(){return e},e}var A=h()(function(){return Promise.all([t.e(2391),t.e(4967)]).then(t.bind(t,84967))},{loadableGenerated:{webpack:function(){return[84967]}}}),E=m()(D()),P=!0;function M(e){var n,t,i,s,c,m,v,h,D,P,M,q,z,I,V,$,B=e.accountNavData,F=e.eopData,O=e.footerNavData,R=e.initialData,G=e.logoData,U=e.navData,J=e.postData,X=e.testimonialData,H=null==R?void 0:R.$slug,K=(0,l._)((0,g.useState)(J?J.looms:[]),2),Q=K[0],W=K[1],Y=(0,l._)((0,g.useState)((null==J?void 0:null===(t=J.looms)||void 0===t?void 0:t.length)>0?J.looms[J.looms.length-1]._createdAt:""),2),ee=Y[0],en=Y[1],et=(0,l._)((0,g.useState)((null==J?void 0:null===(i=J.looms)||void 0===i?void 0:i.length)>0?J.looms[J.looms.length-1]._id:null),2),eo=et[0],el=et[1],ei=(0,l._)((0,g.useState)([]),2),ea=ei[0],er=ei[1],ed=(0,g.useRef)();(0,g.useMemo)(function(){var e=(null==R?void 0:R.pinnedLooms)||[];er(e.filter(function(e){return!!e}).map(function(e){return e.loom._id}));var n=(null==J?void 0:J.looms)||[];ea.length&&n.length&&(n=n.filter(function(e){var n=e._id;return!ea.includes(n)})),W((0,a._)(e).concat((0,a._)(n)))},[J,W,R,er]);var es=(n=(0,o._)(function(){var e;return(0,r.Jh)(this,function(n){switch(n.label){case 0:if(null===eo)return[2,[]];return[4,(0,k.gn)(E,{lastCreatedAt:ee,lastId:eo,slug:H})];case 1:return(null==(e=n.sent().looms)?void 0:e.length)>0?(en(e[e.length-1]._createdAt),el(e[e.length-1]._id),ea.length&&(e=e.filter(function(e){var n=e._id;return!ea.includes(n)})),W((0,a._)(Q).concat((0,a._)(e)))):el(null),[2]}})}),function(){return n.apply(this,arguments)});(0,g.useEffect)(function(){if(ed&&ed.current){var e=new IntersectionObserver(function(e){e.some(function(e){return e.isIntersecting})&&es()},{threshold:.1});return ed.current&&e.observe(ed.current),function(){return e.disconnect()}}},[ed,es]);var eu=(null==R?void 0:R.category)&&(null==R?void 0:null===(s=R.category)||void 0===s?void 0:s._id)==="bb7a0cbb-1c2f-42c4-b6f8-048507de3390";return((0,g.useEffect)(function(){var e,n,t=(0,S.Z)();(0,T.L9)(N.lJ,{source:"Learn to Loom Page ".concat(H),category:null==R?void 0:null===(e=R.category)||void 0===e?void 0:e.title,isCommunityCollection:eu,tempBulkTestUuid:t}),(0,Z._)("track",{action:"visit",actionSubject:N.c0,attributes:{eventSource:"Learn to Loom Page ".concat(H),category:null==R?void 0:null===(n=R.category)||void 0===n?void 0:n.title,isCommunityCollection:eu,tempBulkTestUuid:t}})},[H]),null==R?void 0:R.category)?(0,d.jsxs)(b.Z,{accountNavData:B,footerNavData:O,name:"Learn to Loom Category [".concat(null==R?void 0:null===(m=R.meta)||void 0===m?void 0:null===(c=m.slug)||void 0===c?void 0:c.current,"]"),navData:U,children:[(0,d.jsx)(p.Z,{data:null==R?void 0:R.meta,customDescription:null!==($=null==R?void 0:null===(v=R.meta)||void 0===v?void 0:v.description)&&void 0!==$?$:(0,f.blockContentToPlainText)(null==R?void 0:null===(h=R.category)||void 0===h?void 0:h.description),customOgImage:"https://cdn.sanity.io/images/pvn35iyy/production/74d348fb150b2f37076655b04c36ddf68eed23d5-1200x675.png",customTitle:"".concat(null==R?void 0:null===(D=R.category)||void 0===D?void 0:D.title," | From The Loom Community | Community"),url:"https://mulligan.indiedemos.com/community/collections/".concat(null==R?void 0:null===(M=R.meta)||void 0===M?void 0:null===(P=M.slug)||void 0===P?void 0:P.current)}),(0,d.jsxs)("section",{className:"mx-auto mb-fluid-lg relative pt-fluid-md overflow-hidden translate-x-0",children:[(0,d.jsx)("div",{className:"absolute h-full left-0 pointer-events-none overflow-hidden top-0 w-full",children:(0,d.jsx)("div",{className:u()("thd-gradient-bubble-t",null===(q=(0,L.b)("violet-20"))||void 0===q?void 0:q.bg)})}),(0,d.jsxs)("div",{className:"thd-container-max",children:[(0,d.jsx)(_.Z,{heading:"Community"}),(0,d.jsx)(j.Z,{bFont:"lg",gap:"mb-md",hFont:"xl",hLevel:"h1",header:{heading:null==R?void 0:null===(z=R.category)||void 0===z?void 0:z.title,subhead:null==R?void 0:null===(I=R.category)||void 0===I?void 0:I.description}})]}),(0,d.jsx)(x.Z,{allowInfiniteScroll:!0,cards:Q,heading:null==R?void 0:null===(V=R.recommendedBlock)||void 0===V?void 0:V.heading,section:"collection",showCommunity:!0,showVideoCount:"12"}),eo?(0,d.jsx)("div",{ref:ed}):null]}),G&&(0,d.jsx)(y.Z,{data:G,gradient:!0,lineLength:"xl",themeColor:"grey-10"}),X&&(0,d.jsx)(w.Z,{cards:null==X?void 0:X.list,className:"mb-fluid-lg",themeColorMode:"light"}),(null==F?void 0:F.cta)?(0,d.jsx)(C.Z,{cta:null==F?void 0:F.cta,heading:null==F?void 0:F.heading}):(0,d.jsx)("div",{className:"h-fluid-lg thd-prefooter",style:{"--footer-bg":"var(--thd-color-violet-10)"}})]}):(0,d.jsx)(A,{})}},69524:function(e){e.exports={container:"ThreadTestimonialCarousel_container__3hu57",left:"ThreadTestimonialCarousel_left__ioRt3",right:"ThreadTestimonialCarousel_right__9bhB0",content:"ThreadTestimonialCarousel_content__ODboU",avatar:"ThreadTestimonialCarousel_avatar__3d3SV"}}},function(e){e.O(0,[7200,9756,7436,6189,5675,4366,7979,8037,1100,8913,5223,3212,2888,9774,179],function(){return e(e.s=67028)}),_N_E=e.O()}]);