1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8578],{668:(e,t,l)=>{"use strict";l.d(t,{c:()=>c});var r=l(42546),a=l(49),n=l(54568);l(7620);var i=l(8068),s=l(63955),o=l(56383);let c=e=>{let{className:t,selectedTab:l="image",video:c,videoProps:u={},image:d,imageProps:m={},desktopSize:h,mobileSize:f,priority:p,fill:g}=e;return"video"===l&&(null==c?void 0:c.srcs)?(0,n.jsx)(i.VideoLoop,(0,a._)((0,r._)({desktopSize:h,mobileSize:f,fill:g},c,u),{priority:p,className:(0,o.cx)(t,u.className)})):"image"===l&&d?(0,n.jsx)(s.b,(0,a._)((0,r._)({image:d,desktopSize:h,mobileSize:f,fill:g},m),{priority:p,imageClassName:m.className,className:(0,o.cx)(t)})):null}},2430:(e,t,l)=>{Promise.resolve().then(l.bind(l,63738))},8892:(e,t,l)=>{"use strict";l.d(t,{Hg:()=>i});var r=l(27822),a=l(7620);null===a.cache||void 0===a.cache||(0,a.cache)(()=>({locale:void 0}));let n,i={get current(){return n||r.rz}}},9826:(e,t,l)=>{"use strict";l.d(t,{$g:()=>a,YL:()=>n,up:()=>i});var r=l(42546);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EUR",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Intl.NumberFormat(t,(0,r._)({currency:l,style:"currency",unitDisplay:"narrow"},a)).format(Number(e)||0)},n=e=>e>=1e4?"â¬".concat((Math.floor(e/100)/10).toString().replace(".",","),"K"):a(e),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"EUR";return a((null==e?void 0:e.amount)||0,t,(null==e?void 0:e.currencyCode)||l)}},30349:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var r,a=l(20860);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)({}).hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(null,arguments)}let i=e=>a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:22,height:22,fill:"none",viewBox:"0 0 22 22"},e),r||(r=a.createElement("path",{stroke:"currentColor",d:"M17 5 5 17m12 0L5 5"})))},63738:(e,t,l)=>{"use strict";l.d(t,{SearchFormClient:()=>w});var r=l(42546),a=l(49),n=l(54568),i=l(86889),s=l(26377),o=l(56383),c=l(7620),u=l(30349),d=l(79748);let m=e=>{let{search:t,inputRef:l}=e,r=(0,d.useSearchParams)();return(0,c.useEffect)(()=>{let e=r.get("s");e&&(null==l?void 0:l.current)&&(l.current.value=e),e&&e.length>=2&&t(e)},[r]),(0,n.jsx)(n.Fragment,{})};var h=l(56101),f=l(93662),p=l(63955),g=l(668);let v=e=>{let t,{item:l,className:i}=e,c=(0,s.A)();switch(l.type){case"fontFamily":t=c("Family");break;case"fontSubfamily":t=c("Subfamily");break;case"article":t=c("Magazine");break;case"portfolio":t=c("Portfolio");break;case"product":t=c("Merch");break;case"extraSearchResult":t=l.category;break;case"designer":t=l.description||c("Profile")}let u="extraSearchResult"===l.type?(0,a._)((0,r._)({},l.link),{query:l.linkSearchQuery,anchor:l.linkAnchor}):{_type:l.type,slug:l.slug};return(0,n.jsx)("article",{className:(0,o.cx)("text-14 span-w-3",i),children:(0,n.jsxs)(h.Button,{linkInput:u,cta:!1,className:"flex flex-col gap-8",children:[(0,n.jsxs)("div",{className:"aspect-square overflow-clip bg-gray/20 rounded-sm",children:[l.thumbnail&&["fontFamily","fontSubfamily","article","product","extraSearchResult","designer"].includes(l.type)&&(0,n.jsx)(p.b,{image:l.thumbnail,desktopSize:{width:375,height:375},mobileSize:{width:375,height:375}}),l.thumbnail&&"portfolio"===l.type&&(0,n.jsx)(g.c,(0,a._)((0,r._)({},l.thumbnail),{desktopSize:{width:375,height:375},mobileSize:{width:375,height:375},className:"block w-full h-full",imageProps:{className:"h-full object-cover"}}))]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[t&&(0,n.jsx)("span",{className:"text-red",children:t}),(0,n.jsx)("h2",{className:"block truncate",children:l.title}),("fontFamily"===l.type||"fontSubfamily"===l.type)&&(0,n.jsx)("span",{className:"block text-neutral-50",children:l.minPrice?(0,n.jsxs)(n.Fragment,{children:["From ",(0,n.jsx)(f.g,{children:{amount:"".concat(l.minPrice)}})]}):"Free"}),"product"===l.type&&(0,n.jsx)("span",{className:"block text-neutral-50",children:l.minPrice?(0,n.jsxs)(n.Fragment,{children:[l.minPrice===l.maxPrice?"":"From ",(0,n.jsx)(f.g,{children:{amount:"".concat(l.minPrice)}})]}):"Free"})]})]})})};var y=l(8892),b=l(52527),x=l(96230);let w=e=>{var t,l,d;let{noResultTitle:f,placeholder:p}=e,g=(0,s.A)(),w=(0,c.useRef)(null),[j,S]=(0,c.useState)({pagination:{offset:0,limit:64,total:0},nbHits:0,term:void 0,documents:void 0}),N=async(e,t)=>{{let l=(0,x.w)("H6WRPB7T37","64ff1e183d726551db87b619aac6af22",{requester:(0,b.Z)()}),n=await l.searchSingleIndex({indexName:"prod_".concat(y.Hg.current),searchParams:{query:e,page:t,hitsPerPage:64}});if(null==n?void 0:n.hits){let{hits:t,nbHits:l}=n;return{term:e,nbHits:null!=l?l:0,documents:t.map(e=>(0,a._)((0,r._)({},e),{_id:e.objectID}))}}return{term:e,nbHits:0}}},_=async(e,t)=>{if(e){let l=t||{offset:0,limit:j.pagination.limit,total:0},n=await N(e,l.offset/l.limit);(null==n?void 0:n.documents)&&S((0,a._)((0,r._)({},j),{nbHits:n.nbHits,documents:n.documents.sort((t,l)=>{var r,a,n,i,s,o,c,u;return(null==(a=t.title)||null==(r=a.toLowerCase())?void 0:r.startsWith(e.toLowerCase()))&&!(null==(i=l.title)||null==(n=i.toLowerCase())?void 0:n.startsWith(e.toLowerCase()))?-1:!(null==(o=t.title)||null==(s=o.toLowerCase())?void 0:s.startsWith(e.toLowerCase()))&&
1(null==(u=l.title)||null==(c=u.toLowerCase())?void 0:c.startsWith(e.toLowerCase()))?1:"fontFamily"===t.type&&"fontFamily"!==l.type?-2:"fontSubfamily"===t.type&&"fontFamily"===l.type?2:"fontSubfamily"===t.type&&"fontSubfamily"!==l.type?-1:0}),term:e}))}else S({pagination:{offset:0,limit:64,total:0},documents:void 0,term:void 0,nbHits:0}),window.history.replaceState(null,"","")},k=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];S({pagination:{offset:0,limit:48,total:0},documents:void 0,term:void 0,nbHits:0}),e&&w.current&&(w.current.value="")},C=(0,i.A)(async()=>{var e;let t=(null==(e=w.current)?void 0:e.value)||"";if(t.length>=2){let e;(e=new URLSearchParams).set("s",t),window.history.replaceState(null,"","?"+e.toString())}else k(!1)},120,[]);return(0,c.useEffect)(()=>{w.current&&w.current.focus()},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("form",{className:"relative",onSubmit:e=>{e.preventDefault()},children:[(0,n.jsx)(h.Button,{onClick:()=>{k(!0)},type:"button",className:"absolute top-1/2 -translate-y-1/2 right-0",label:g("close"),children:(0,n.jsx)(u.A,{className:"w-20","aria-hidden":!0})}),(0,n.jsx)("input",{ref:w,type:"search",name:"search",id:"search",placeholder:p,"aria-label":g("search"),autoComplete:"off",className:(0,o.cx)("appearance-none bg-neutral-5 outline-neutral-20","text-14","block w-full rounded-full","py-6 px-12"),onChange:C,autoFocus:!0})]}),j.term&&!(null==(t=j.documents)?void 0:t.length)&&(0,n.jsx)("p",{className:"text-14 text-gray mt-30",children:f}),!!(null==(l=j.documents)?void 0:l.length)&&(0,n.jsx)("ul",{className:"flex flex-wrap justify-start gutter-gap-x-1 gap-y-20 pt-48",children:null==(d=j.documents)?void 0:d.map(e=>(0,n.jsx)(v,{item:e},e.objectID))}),(0,n.jsx)(c.Suspense,{children:(0,n.jsx)(m,{state:j,search:_,inputRef:w})})]})}},93662:(e,t,l)=>{"use strict";l.d(t,{g:()=>u});var r=l(54568),a=l(42546),n=l(49),i=l(27822),s=l(20889),o=l(9826),c=l(95123);let u=e=>{let{children:t,freeIfZero:l}=e,u=(()=>{let{locale:e}=s._.current,t=(0,c.XN)(e||i.rz).language;return function(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return l&&(null==e?void 0:e.amount)==="0.0"?"Free":(0,o.up)((0,n._)((0,a._)({},e),{currencyCode:e.currencyCode||i.G_.currency.isoCode}),t)}})()(t,l);return(0,r.jsx)(r.Fragment,{children:u})}},95123:(e,t,l)=>{"use strict";l.d(t,{XN:()=>a}),l(27822);let r=function(e){let{uppercase:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e[t?"toUpperCase":"toLowerCase"]().split("-")},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{uppercase:!1},[l,a]=r(e,t);return{language:l,countryCode:a}}}},e=>{e.O(0,[8737,7822,1331,9579,5604,8644,3360,6101,5687,587,1968,7358],()=>e(e.s=2430)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.