1"use strict";(self.webpackChunkprompt_art=self.webpackChunkprompt_art||[]).push([[404],{82:(e,t,s)=>{s.d(t,{Z:()=>a});s(2791);var n=s(1087),r=s(184);const a=e=>{let{items:t,root:s={label:"Collections",path:"/collections"}}=e;return(0,r.jsx)("nav",{className:"flex mb-8","aria-label":"Breadcrumb",children:(0,r.jsxs)("ol",{className:"inline-flex items-center space-x-1 md:space-x-3",children:[(0,r.jsx)("li",{className:"inline-flex items-center",children:(0,r.jsx)(n.rU,{to:s.path,className:"inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600",children:s.label})}),t.map(((e,s)=>(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("svg",{className:"w-3 h-3 text-gray-400 mx-1","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10",children:(0,r.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 9 4-4-4-4"})}),s===t.length-1?(0,r.jsx)("span",{className:"ml-1 text-sm font-medium text-gray-500 md:ml-2",children:e.label}):(0,r.jsx)(n.rU,{to:e.path,className:"ml-1 text-sm font-medium text-gray-700 hover:text-blue-600 md:ml-2",children:e.label})]})},s)))]})})}},5404:(e,t,s)=>{s.r(t),s.d(t,{default:()=>g});var n=s(2791),r=s(7689),a=s(1087),l=s(1159),i=s(2081),c=s(2909),o=s(429),m=s(82),d=s(4453),x=s(5185),h=s(184);const u={label:"Articles",path:"/articles"};const p=()=>(0,h.jsxs)("div",{className:"mx-auto max-w-3xl animate-pulse px-6 py-16",children:[(0,h.jsx)("div",{className:"h-3 w-32 rounded bg-slate-200"}),(0,h.jsx)("div",{className:"mt-6 h-10 w-3/4 rounded bg-slate-200"}),(0,h.jsx)("div",{className:"mt-4 h-4 w-40 rounded bg-slate-100"}),(0,h.jsx)("div",{className:"mt-10 aspect-[16/9] w-full rounded-3xl bg-slate-200"}),(0,h.jsx)("div",{className:"mt-10 space-y-3",children:[0,1,2,3,4].map((e=>(0,h.jsx)("div",{className:"h-4 w-full rounded bg-slate-100"},e)))})]}),g=()=>{const{slug:e}=(0,r.UO)(),[t,s]=(0,n.useState)(null),[g,f]=(0,n.useState)([]),[j,y]=(0,n.useState)("loading");if((0,n.useEffect)((()=>{let t=!1;return y("loading"),(0,i.vX)(e).then((n=>{t||(s(n),y(n?"ready":"missing"),n&&(0,i.hD)(e,3).then((e=>!t&&f(e))).catch((()=>{})))})).catch((e=>{t||(console.error("Error loading article",e),y("error"))})),()=>{t=!0}}),[e]),"loading"===j)return(0,h.jsx)(p,{});if("missing"===j||"error"===j){const e="error"===j;return(0,h.jsxs)("div",{className:"mx-auto max-w-2xl px-6 py-24 text-center",children:[(0,h.jsxs)(l.ql,{children:[(0,h.jsx)("meta",{name:"robots",content:"noindex"}),(0,h.jsx)("title",{children:"Article not available | Create Prints"})]}),(0,h.jsx)("h1",{className:"font-serif text-3xl font-bold text-slate-950",children:e?"Something went wrong":"We can't find that article"}),(0,h.jsx)("p",{className:"mt-4 text-slate-600",children:e?"The article didn't load. Refreshing usually sorts it.":"It may have been renamed or is not published yet."}),(0,h.jsx)(d.Z,{className:"mt-8",url:"/articles",children:"All articles"})]})}const b="".concat(o.y,"/articles/").concat(t.slug),w=t.meta_title||"".concat(t.title," | Create Prints"),N=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:155;const s=String(e||"").trim();return s.length<=t?s:"".concat(s.slice(0,s.lastIndexOf(" ",t)).trim(),"\u2026")}(t.meta_description||t.excerpt||(0,c.YH)(t.body)),v=(0,i.PT)(t.published_at),_=(0,c.Hf)(t.body),k=(0,i.rH)(t)?(0,i.PT)(t.updated_at):null,S=(0,c.es)(t.body);return(0,h.jsxs)("div",{className:"pb-16",children:[(0,h.jsxs)(l.ql,{children:[(0,h.jsx)("title",{children:w}),(0,h.jsx)("meta",{name:"description",content:N}),(0,h.jsx)("link",{rel:"canonical",href:b}),(0,h.jsx)("meta",{property:"og:title",content:w}),(0,h.jsx)("meta",{property:"og:description",content:N}),(0,h.jsx)("meta",{property:"og:type",content:"article"}),(0,h.jsx)("meta",{property:"og:url",content:b}),t.hero_image_url&&(0,h.jsx)("meta",{property:"og:image",content:t.hero_image_url}),(0,h.jsx)("meta",{name:"twitter:card",content:t.hero_image_url?"summary_large_image":"summary"}),(0,h.jsx)("meta",{name:"twitter:title",content:w}),(0,h.jsx)("meta",{name:"twitter:description",content:N}),t.hero_image_url&&(0,h.jsx)("meta",{name:"twitter:image",content:t.hero_image_url}),(0,h.jsx)("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:t.title,de
1scription:N,mainEntityOfPage:{"@type":"WebPage","@id":b},url:b,datePublished:t.published_at,dateModified:t.updated_at||t.published_at,...t.hero_image_url?{image:t.hero_image_url}:{},author:{"@type":t.author?"Person":"Organization",name:t.author||"Create Prints"},publisher:{"@type":"Organization",name:"Create Prints",url:o.y}})}),S.length>0&&(0,h.jsx)("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:S.map((e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}})))})}),(0,h.jsx)("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Articles",item:"".concat(o.y,"/articles")},{"@type":"ListItem",position:2,name:t.title,item:b}]})})]}),(0,h.jsxs)("div",{className:"mx-auto max-w-3xl px-6 pt-10",children:[(0,h.jsx)(m.Z,{root:u,items:[{label:t.title,path:"/articles/".concat(t.slug)}]}),(0,h.jsxs)("header",{children:[(0,h.jsx)("h1",{className:"font-serif text-4xl font-bold leading-tight text-slate-950 sm:text-5xl",children:t.title}),(0,h.jsx)("p",{className:"mt-5 text-sm text-slate-500",children:[t.author&&"By ".concat(t.author),v,k&&"Updated ".concat(k),"".concat(_," min read")].filter(Boolean).join(" \xb7 ")}),t.excerpt&&(0,h.jsx)("p",{className:"mt-6 text-lg text-slate-600",children:t.excerpt})]})]}),t.hero_image_url&&(0,h.jsx)("div",{className:"mx-auto mt-10 max-w-5xl px-6",children:(0,h.jsx)("img",{src:t.hero_image_url,alt:t.hero_image_alt||"",className:"max-h-[32rem] w-full rounded-3xl object-cover"})}),(0,h.jsx)("div",{className:"mx-auto mt-12 max-w-3xl px-6",children:(0,h.jsx)("div",{className:"prose prose-slate max-w-none prose-headings:font-serif prose-headings:font-bold prose-a:text-slate-900 prose-img:rounded-2xl lg:prose-lg",children:(0,c.ap)(t.body)})}),(0,h.jsx)("div",{className:"mx-auto mt-16 max-w-5xl px-6",children:(0,h.jsxs)("div",{className:"rounded-3xl bg-slate-950 px-6 py-12 text-center sm:px-12",children:[(0,h.jsx)("h2",{className:"font-serif text-2xl font-bold text-white sm:text-3xl",children:"Find art that fits the room"}),(0,h.jsx)("p",{className:"mx-auto mt-3 max-w-xl text-slate-300",children:"Every print is analysed for colour and room fit \u2014 or describe your space and we'll make something for it."}),(0,h.jsxs)("div",{className:"mt-8 flex flex-wrap justify-center gap-3",children:[(0,h.jsx)(d.Z,{url:"/prints",variant:"inverse",children:"Browse prints"}),(0,h.jsx)(d.Z,{url:"/generate-print",variant:"inverseOutline",children:"Create your own"})]})]})}),g.length>0&&(0,h.jsxs)("div",{className:"mx-auto mt-16 max-w-7xl px-6",children:[(0,h.jsx)("h2",{className:"font-serif text-2xl font-bold text-slate-950",children:"Keep reading"}),(0,h.jsx)("div",{className:"mt-8 grid gap-10 sm:grid-cols-2 lg:grid-cols-3",children:g.map((e=>(0,h.jsx)(x.Z,{article:e},e.id)))}),(0,h.jsx)("p",{className:"mt-10",children:(0,h.jsx)(a.rU,{to:"/articles",className:"text-sm font-semibold underline",children:"All articles"})})]})]})}},5185:(e,t,s)=>{s.d(t,{Z:()=>l});var n=s(1087),r=s(2081),a=s(184);const l=e=>{let{article:t,featured:s=!1}=e;const l=(0,r.PT)(t.published_at),i=Boolean(t.hero_image_url);return(0,a.jsxs)("article",{className:s?"group overflow-hidden rounded-3xl bg-slate-50 ".concat(i?"grid gap-6 sm:grid-cols-2 sm:items-center":""):"group flex flex-col",children:[i&&(0,a.jsx)(n.rU,{to:"/articles/".concat(t.slug),className:s?"order-first block h-full sm:order-none":"block overflow-hidden rounded-2xl bg-slate-100","aria-hidden":"true",tabIndex:-1,children:(0,a.jsx)("img",{src:t.hero_image_url,alt:"",loading:s?"eager":"lazy",className:s?"h-full max-h-96 w-full object-cover":"aspect-[3/2] w-full object-cover transition duration-300 group-hover:scale-[1.02]"})}),(0,a.jsxs)("div",{className:s?"px-6 py-8 sm:px-8 ".concat(i?"":"sm:py-12"):i?"pt-4":"",children:[l&&(0,a.jsx)("p",{className:"text-xs uppercase tracking-wide text-slate-500",children:l}),(0,a.jsx)("h2",{className:s?"mt-2 font-serif text-2xl font-bold text-slate-950 sm:text-3xl":"mt-2 font-serif text-xl font-bold text-slate-950",children:(0,a.jsx)(n.rU,{to:"/articles/".concat(t.slug),className:"hover:underline focus-visible:underline",children:t.title})}),t.excerpt&&(0,a.jsx)("p",{className:"mt-3 text-slate-600 ".concat(s?"text-base sm:text-lg":"text-sm line-clamp-3"),children:t.excerpt}),t.author&&(0,a.jsxs)("p",{className:"mt-3 text-sm text-slate-500",children:["By ",t.author]})]})]})}},2081:(e,t,s)=>{s.d(t,{G$:()=>a,PT:()=>d,hD:()=>i,rH:()=>m,vX:()=>l,xP:()=>c});var n=s(276);const r="id,slug,title,excerpt,hero_image_url,hero_image_alt,author,published_at";async function a(){let{limit:e=24,offset:t=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{data:s,error:a}=await n.O.from("articles").select(r).order("published_at",{ascending:!1}).range(t,t+e-1);if(a)throw a;return s||[]}async function l(e){const{data:t,error:s}=await n.O.from("articles").select("*").eq("slug",e).maybeSingle();if(s)throw s;return t||null}async function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;const{data:s,error:a}=await n.O.from("articles").select(r).neq("slug",e).order("published_at",{ascending:!1}).limit(t);if(a)throw a;return s||[]}function c(e){return String(e||"").toLowerCase().replace(/&/g," and ").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}const o=864e5;function m(){let{published_at:e,updated_at:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e||!t)return!1;const s=new Date(e).getTime(),n=new Date(t).getTime();return!Number.isNaN(s)&&!Number.isNaN(n)&&n-s>o}function d(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"})}},2909:(e,t,s)=>{s.d(t,{Hf:()=>N,YH:()=>w,ap:()=>b,es:()=>k}
1);s(2791);var n=s(184);const r=/^(#{1,6})\s+(.*)$/,a=/^[-*]\s+(.*)$/,l=/^(\d+)[.)]\s+(.*)$/,i=/^>\s?(.*)$/,c=/^```\s*([\w-]*)\s*$/,o=/^(?:-{3,}|\*{3,}|_{3,})$/,m=/^:?-+:?$/,d=/^(?:https?:\/\/|mailto:|tel:|\/(?!\/)|#)/i;function x(e){const t=String(e||"").trim();return d.test(t)?t:null}const h=[{type:"image",regex:/!\[([^\]]*)\]\(([^)\s]+)\)/},{type:"link",regex:/\[([^\]]+)\]\(([^)\s]+)\)/},{type:"code",regex:/`([^`]+)`/},{type:"strong",regex:/\*\*([^*]+)\*\*/},{type:"em",regex:/(?:\*([^*]+)\*|_([^_]+)_)/}];function u(e){let t=null;for(const{type:s,regex:n}of h){const r=n.exec(e);r&&(null===t||r.index<t.match.index)&&(t={type:s,match:r})}return t}function p(e,t){const s=[];let r=String(null!==e&&void 0!==e?e:""),a=0;for(;r;){const e=u(r);if(!e){s.push(r);break}const{type:i,match:c}=e;c.index>0&&s.push(r.slice(0,c.index));const o="".concat(t,"-").concat(a);if(a+=1,"image"===i){const e=x(c[2]);s.push(e?(0,n.jsx)("img",{src:e,alt:c[1],loading:"lazy",className:"rounded-2xl"},o):c[1])}else if("link"===i){const e=x(c[2]),t=!!e&&/^https?:\/\//i.test(e);s.push(e?(0,n.jsx)("a",{href:e,...t?{target:"_blank",rel:"noopener noreferrer"}:{},children:p(c[1],o)},o):c[1])}else if("code"===i)s.push((0,n.jsx)("code",{children:c[1]},o));else if("strong"===i)s.push((0,n.jsx)("strong",{children:p(c[1],o)},o));else{var l;const e=null!==(l=c[1])&&void 0!==l?l:c[2];s.push((0,n.jsx)("em",{children:p(e,o)},o))}r=r.slice(c.index+c[0].length)}return s}function g(e){const t=[];let s="";const n=e.trim().replace(/^\|/,"").replace(/\|$/,"");for(let r=0;r<n.length;r+=1)"\\"===n[r]&&"|"===n[r+1]?(s+="|",r+=1):"|"===n[r]?(t.push(s.trim()),s=""):s+=n[r];return t.push(s.trim()),t}function f(e,t){if(!e||!t||!e.includes("|")||!t.includes("|"))return!1;const s=g(e),n=g(t);return s.length>=2&&n.length===s.length&&n.every((e=>m.test(e)))}function j(e){const t=e.startsWith(":"),s=e.endsWith(":");return t&&s?"center":s?"right":t?"left":null}function y(e,t){return r.test(e)||a.test(e)||l.test(e)||i.test(e)||c.test(e)||o.test(e)||f(e,t)}function b(e){const t=String(e||"").replace(/\r\n?/g,"\n").split("\n"),s=[];let m=0,d=0;const x=()=>"md-".concat(d+=1);for(;m<t.length;){const e=t[m];
1if(!e.trim()){m+=1;continue}if(c.exec(e)){const e=[];for(m+=1;m<t.length&&!c.test(t[m]);)e.push(t[m]),m+=1;m+=1,s.push((0,n.jsx)("pre",{children:(0,n.jsx)("code",{children:e.join("\n")})},x()));continue}if(o.test(e.trim())){s.push((0,n.jsx)("hr",{},x())),m+=1;continue}if(f(e,t[m+1])){const r=g(e),a=g(t[m+1]).map(j);m+=2;const l=[];for(;m<t.length&&t[m].trim()&&t[m].includes("|");)l.push(g(t[m])),m+=1;const i=x(),c=e=>a[e]?{textAlign:a[e]}:void 0;s.push((0,n.jsx)("div",{className:"overflow-x-auto",children:(0,n.jsxs)("table",{children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:r.map(((e,t)=>(0,n.jsx)("th",{style:c(t),children:p(e,"".concat(i,"-h-").concat(t))},"".concat(i,"-h-").concat(t))))})}),(0,n.jsx)("tbody",{children:l.map(((e,t)=>(0,n.jsx)("tr",{children:r.map(((s,r)=>(0,n.jsx)("td",{style:c(r),children:p(e[r]||"","".concat(i,"-r-").concat(t,"-").concat(r))},"".concat(i,"-r-").concat(t,"-").concat(r))))},"".concat(i,"-r-").concat(t))))})]})},i));continue}const d=r.exec(e);if(d){const e=Math.min(Math.max(d[1].length,2),6),t="h".concat(e),r=x();s.push((0,n.jsx)(t,{id:(h=d[2],String(h||"").toLowerCase().replace(/[^\w\s-]/g,"").trim().replace(/\s+/g,"-")),children:p(d[2],r)},r)),m+=1;continue}if(i.test(e)){const e=[];for(;m<t.length&&i.test(t[m]);)e.push(i.exec(t[m])[1]),m+=1;const r=x();s.push((0,n.jsx)("blockquote",{children:(0,n.jsx)("p",{children:p(e.join(" "),r)})},r));continue}if(a.test(e)||l.test(e)){const r=l.test(e),i=r?l:a,c=[];for(;m<t.length;){const e=t[m],s=i.exec(e);if(s)c.push(r?s[2]:s[1]),m+=1;else{if(!e.trim()||y(e,t[m+1])||!c.length)break;c[c.length-1]+=" ".concat(e.trim()),m+=1}}const o=x(),d=r?"ol":"ul";s.push((0,n.jsx)(d,{children:c.map(((e,t)=>(0,n.jsx)("li",{children:p(e,"".concat(o,"-").concat(t))},"".concat(o,"-").concat(t))))},o));continue}const u=[];for(;m<t.length&&t[m].trim()&&!y(t[m],t[m+1]);)u.push(t[m].trim()),m+=1;const b=x();s.push((0,n.jsx)("p",{children:p(u.join(" "),b)},b))}var h;return s}function w(e){return String(e||"").replace(/```[\s\S]*?```/g," ").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}#{1,6}\s+/gm,"").replace(/^\s{0,3}>\s?/gm,"").replace(/^\s{0,3}[-*]\s+/gm,"").replace(/^\s{0,3}\|?[\s:|-]*-[\s:|-]*\|?\s*$/gm," ").replace(/\|/g," ").replace(/[*_`]/g,"").replace(/\s+/g," ").trim()}function N(e){const t=w(e).split(/\s+/).filter(Boolean);return Math.max(1,Math.round(t.length/200))}const v=/^(#{1,2})\s+(?:faqs?|frequently asked questions)\s*$/i,_=/^#{3,4}\s+(.*)$/;function k(e){const t=String(e||"").replace(/\r\n?/g,"\n").split("\n"),s=t.findIndex((e=>v.test(e.trim())));if(-1===s)return[];const n=v.exec(t[s].trim())[1].length,a=[];let l=null;for(let i=s+1;i<t.length;i+=1){const e=t[i],s=r.exec(e.trim());if(s&&s[1].length<=n)break;const c=_.exec(e.trim());c?(l={question:w(c[1]),answer:[]},a.push(l)):l&&e.trim()&&l.answer.push(e)}return a.map((e=>{let{question:t,answer:s}=e;return{question:t,answer:w(s.join("\n"))}})).filter((e=>e.question&&e.answer))}}}]); 2//# sourceMappingURL=404.83e126be.chunk.js.map
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.