1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[859],{10859:(e,s,t)=>{t.r(s),t.d(s,{default:()=>o});var l=t(37876),a=t(96851),i=t(7572),r=t(82298),n=t(21613),c=t(26642),d=t(36083);function o(e){let{puzzles:s=[],featured:t=[]}=e,o=(0,a.c)("home.pixelLogic");return(0,l.jsx)(i.Bc,{id:"home-pixel-logic",tone:"page",spacing:"md",children:(0,l.jsxs)(i.Zq,{size:"xl",children:[(0,l.jsx)(r.A,{title:o("title"),subtitle:o("subtitle")}),s.length?(0,l.jsx)(n.A,{items:s.slice(0,4)}):(0,l.jsx)(c.A,{designs:t,playLabel:o("play")}),(0,l.jsxs)("div",{className:"mt-8 flex flex-wrap justify-center gap-3",children:[(0,l.jsx)(i.oy,{href:d.GA,locale:"en",variant:"soft",children:o("create")}),(0,l.jsx)(i.oy,{href:d.CW,locale:"en",variant:"white",children:o("browse")})]})]})})}},18155:(e,s,t)=>{t.d(s,{B:()=>a,Zf:()=>l,i0:()=>r,oD:()=>i});let l=Object.freeze([{id:"1:1",label:"Square",hint:"Mandalas & close-ups",ratio:1},{id:"2:3",label:"Vertical",hint:"Most coloring pages",ratio:2/3},{id:"3:2",label:"Horizontal",hint:"Wide scenes",ratio:1.5}]);function a(e){var s,t;return null!=(t=null==(s=l.find(s=>s.id===e))?void 0:s.ratio)?t:1}function i(e,s){if(!Number.isFinite(e)||!Number.isFinite(s)||e<=0||s<=0)return"1:1";let t=e/s;return t>=.9&&t<=1.1?"1:1":t<.9?"2:3":"3:2"}function r(e){return"1:1"===e?"aspect-square":"3:2"===e?"aspect-[3/2]":"aspect-[2/3]"}},21613:(e,s,t)=>{t.d(s,{A:()=>n});var l=t(37876),a=t(46696),i=t(24355);function r(e){let{item:s}=e;return(0,l.jsx)(a.A,{href:s.href,imageUrl:s.imageUrl,title:s.title,alt:s.alt,aspectRatio:"2:3",imageFit:"contain",statusBadge:(0,l.jsx)(i.A,{}),footer:s.description&&(0,l.jsx)("p",{className:"line-clamp-3 text-sm leading-relaxed text-is-text-muted",children:s.description})})}function n(e){let{items:s}=e;return(0,l.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-3 md:grid-cols-2 gap-5 sm:gap-3",children:s.map(e=>(0,l.jsx)(r,{item:e},e.id))})}},24355:(e,s,t)=>{t.d(s,{A:()=>c});
1var l=t(37876),a=t(96851),i=t(22008),r=t(79704),n=t(4733);let c=e=>{let{size:s="sm",absolute:t=!1,className:c}=e,d=(0,a.c)("plusUi");return(0,r.lo)()?(0,l.jsx)("span",{role:"img","aria-label":d("badgeAria"),className:(0,i.cn)("inline-flex rounded-is-pill",t&&"absolute left-2.5 top-2.5 z-10",c),children:(0,l.jsx)(n.A,{size:s,label:d("badge")})}):null}},26642:(e,s,t)=>{t.d(s,{A:()=>o});var l=t(37876),a=t(48230),i=t.n(a),r=t(28419),n=t(73151),c=t(36083),d=t(24355);function o(e){let{designs:s=[],playLabel:t}=e;return(0,l.jsx)("div",{className:"grid grid-cols-4 gap-4 md:grid-cols-2 sm:gap-3",children:s.map(e=>(0,l.jsxs)(i(),{href:"".concat(c.GA,"?design=").concat(encodeURIComponent(e.id)),locale:"en",className:"flex flex-col rounded-2xl border border-is-border bg-is-surface p-5 transition-colors hover:border-is-primary sm:p-3 ".concat(n.OQ),children:[(0,l.jsx)(d.A,{className:"mb-3 self-start"}),(0,l.jsx)("svg",{"aria-hidden":"true",viewBox:"-1 -1 ".concat(e.width+2," ").concat(e.height+2),shapeRendering:"crispEdges",className:"mx-auto h-28 w-full rounded-xl bg-white",children:e.cells.map((s,t)=>s>0&&(0,l.jsx)("rect",{x:t%e.width,y:Math.floor(t/e.width),width:"1",height:"1",className:"fill-slate-800"},t))}),(0,l.jsx)("span",{className:"mt-4 font-bold text-is-text",children:e.title}),(0,l.jsxs)("span",{className:"mb-4 mt-1 text-xs text-is-text-muted",children:[e.width," \xd7 ",e.height]}),(0,l.jsxs)("span",{className:"mt-auto inline-flex items-center gap-1 text-xs font-bold text-is-primary-ink",children:[t,(0,l.jsx)(r.A,{"aria-hidden":"true",className:"h-3.5 w-3.5"})]})]},e.id))})}},36083:(e,s,t)=>{t.d(s,{CW:()=>r,GA:()=>i,R1:()=>o,WQ:()=>l.hH,cm:()=>d,gY:()=>a,mN:()=>c,yI:()=>n});var l=t(41852);let a="pixel_logic",i="/projects/pixel-logic-generator",r="/plus/pixel-logic",n=24,c=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return e<=1?r:"".concat(r,"/page/").concat(e)},o=e=>{var s;return!!((null==e?void 0:e.active)&&(null==(s=e.features)?void 0:s.plusPages))}},46696:(e,s,t)=>{t.d(s,{A:()=>d});var l=t(37876),a=t(70797);let i=(0,t(17963).A)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);var r=t(22008),n=t(73151),c=t(18155);let d=e=>{let{href:s,imageUrl:t,title:d,alt:o,palette:x=[],aspectRatio:h,imageFit:m="cover",username:u,statusBadge:f=null,footer:p=null,className:g}=e,j=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:(0,r.cn)("relative overflow-hidden bg-white dark:bg-is-surface-soft",(0,c.i0)(h)),children:[f&&(0,l.jsx)("span",{className:"absolute left-2.5 top-2.5 z-10",children:f}),t?(0,l.jsx)("img",{src:t,alt:o||d||"Community colored page",loading:"lazy",className:(0,r.cn)("h-full w-full","contain"===m?"object-contain":"object-cover transition-transform duration-300 group-hover:scale-[1.04]")}):(0,l.jsx)("div",{className:"h-full w-full","aria-hidden":"true"})]}),(0,l.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,l.jsx)("p",{className:"truncate font-rounded text-sm font-bold text-is-text",children:d}),void 0!==u&&(0,l.jsxs)("p",{className:"mt-0.5 inline-flex items-center gap-1 truncate font-rounded text-xs text-is-text-soft",children:[(0,l.jsx)(i,{className:"h-3 w-3 shrink-0","aria-hidden":"true"}),u||""]}),x.length>0&&(0,l.jsx)("div",{className:"mt-2 flex items-center gap-1","aria-hidden":"true",children:x.map(e=>(0,l.jsx)("span",{className:"h-3.5 w-3.5 rounded-full border border-is-warm-soft",style:{backgroundColor:e.hex}},e.hex))}),p&&(0,l.jsx)("div",{className:"mt-auto pt-3",children:p})]})]}),b=(0,r.cn)("group flex h-full flex-col overflow-hidden rounded-is-xl border border-is-warm-soft bg-is-surface shadow-is-sm transition-all hover:-translate-y-0.5 hover:border-is-primary-soft hover:shadow-is-md",g);return s?(0,l.jsx)(a.A,{href:s,className:(0,r.cn)(b,"no-underline",n.OQ),children:j}):(0,l.jsx)("div",{className:b,children:j})}},68180:(e,s,t)=>{t.d(s,{A:()=>r});var l=t(37876),a=t(22008),i=t(7586);let r=function(e){let{icon:s,children:t,className:r}=e,n=(0,i.GX)(s);return(0,l.jsxs)("span",{className:(0,a.cn)("inline-flex items-center gap-2",r),children:[(0,l.jsx)(n,{className:"h-[1em] w-[1em] shrink-0","aria-hidden":"true"}),t]})}},82298:(e,s,t)=>{t.d(s,{A:()=>n});
1var l=t(37876),a=t(7572),i=t(22008),r=t(68180);let n=e=>{let{title:s,subtitle:t,className:n,align:c="center",icon:d,divider:o=!1,as:x="h2"}=e;return(0,l.jsxs)("div",{className:(0,i.cn)("mb-9",!o&&"max-w-[60ch]","center"===c?"mx-auto text-center":"text-left",n),children:[(0,l.jsx)(a.ag,{as:x,size:"section",className:(0,i.cn)("mb-2",o&&"border-b border-is-border pb-3"),children:d?(0,l.jsx)(r.A,{icon:d,className:(0,i.cn)("gap-2.5","center"===c&&"justify-center"),children:s}):s}),t&&(0,l.jsx)(a.Pt,{variant:"soft",size:o?"md":"lg",children:t})]})}}}]);
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.