1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9592],{9592:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var r=a(95155),s=a(12115),l=a(26497),i=a(72917),c=a(39557),n=a(90368),o=a(87454),d=a(5917),x=a(7125),p=a(6191),m=a(23327),h=a(65229),u=a(840),f=a(5594),g=a(41467),b=a(80633),y=a(15239),j=a(89733),v=a(62324);function N(e){return(0,u.aU)(e)}function k(e){return"R$ ".concat(e.toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2}))}function w(e){var t;let{anchorProduct:a,availableFlavors:w,group:M,size:z,sizeIndex:_,allSizes:C,initialQuantity:P,initialNotes:A,onClose:I,onConfirm:W}=e,F=!!z&&!!_,S=b._f,B=M.price_strategy,E=M.split_fee,[T,L]=(0,s.useState)("flavors"),[O,R]=(0,s.useState)([a.id]),[V,q]=(0,s.useState)(Math.max(1,Math.floor(null!=P?P:1)||1)),[J,Z]=(0,s.useState)(null!=A?A:""),[D,G]=(0,s.useState)({}),[Q,H]=(0,s.useState)(null),U=(0,s.useRef)(null),[Y,$]=(0,s.useState)(null),K=(0,s.useMemo)(()=>(0,f.fw)(a),[a]),X=(0,s.useMemo)(()=>F?w.filter(e=>null!==(0,b.JA)(_,z,{product_id:e.id,promo_percent:e.promo_percent,category_id:e.category_id},C)):w,[w,F,_,z,C]),ee=(0,s.useMemo)(()=>{let e=new Map;for(let t of X)e.set(t.id,t);return e.set(a.id,a),e},[X,a]),et=O.map(e=>ee.get(e)).filter(Boolean),ea=O.length,er=ea>=2,es=(0,g.z0)(D),el=es.reduce((e,t)=>e+(Number(t.price)||0),0),{total:ei,fractionPrices:ec}=F?(0,b.lx)({flavors:et.map(e=>({product_id:e.id,promo_percent:e.promo_percent,category_id:e.category_id})),size:z,index:_,strategy:B,splitFee:E,sizes:C}):(t=M.overrides,0===et.length?{total:0,fractionPrices:[]}:(0,u.of)(et.map(N),B,E,et.map(e=>t.get(e.id)))),en=Number((ei+el).toFixed(2))*V,eo=(0,g.jC)(K,D),ed=e=>{var t;L(e),null==(t=U.current)||t.scrollTo({top:0,behavior:"instant"})},ex=et.map(e=>e.name).join(" + ");return(0,r.jsx)(l.N,{children:(0,r.jsxs)(i.P.div,{initial:{opacity:0,y:32},animate:{opacity:1,y:0},exit:{opacity:0,y:24},transition:{duration:c.eh.modal,ease:c.Fc},className:"fixed inset-0 z-50 bg-white overflow-hidden",children:[(0,r.jsx)("div",{ref:U,className:"h-full w-full overflow-y-auto overscroll-contain",style:{WebkitOverflowScrolling:"touch"},children:(0,r.jsxs)("div",{className:"mx-auto flex min-h-full w-full max-w-[560px] flex-col pb-36",children:[(0,r.jsxs)("div",{className:"sticky top-0 z-40 flex items-center gap-2.5 border-b border-black/[0.06] bg-white/95 px-5 py-2.5 backdrop-blur-sm",style:{paddingTop:"max(10px, env(safe-area-inset-top))"},children:[(0,r.jsx)("button",{onClick:()=>"customize"===T?ed("flavors"):I(),"aria-label":"Voltar",className:"-ml-1 flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-gray-700 transition-colors hover:bg-gray-100 active:scale-90",children:(0,r.jsx)(n.A,{size:21})}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[12px] font-bold tracking-tight text-[var(--brand)]",children:[(0,r.jsx)(o.A,{size:13,strokeWidth:2.4}),"Meio a meio"]}),(0,r.jsx)("span",{className:"ml-auto shrink-0 text-[11px] font-black uppercase tracking-wider text-gray-400 tabular-nums",children:"flavors"===T?"1 de 2":"2 de 2"})]}),"flavors"===T?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative z-30 bg-white px-5 pt-5",style:{marginTop:"-2px"},children:[(0,r.jsx)("h1",{className:"text-2xl font-black text-gray-900 tracking-tight leading-tight",children:"Monte seu Meio a Meio"}),F&&(0,r.jsx)("span",{className:"mt-2 inline-flex items-center gap-1.5 rounded-lg bg-[var(--brand)]/8 border border-[var(--brand)]/15 px-2.5 py-1 text-[11px] font-black uppercase tracking-wider text-[var(--brand)]",children:z.name}),(0,r.jsx)("p",{className:"mt-1 text-sm text-gray-500 font-medium",children:"Escolha 2 sabores. Cada um fica com metade da pizza."}),(0,r.jsx)("div",{className:"mt-5 space-y-2",children:Array.from({length:Math.max(ea,2)}).map((e,t)=>{var a;let s=et[t];return(0,r.jsxs)("div",{className:"flex items-center justify-between rounded-xl px-4 py-3 ".concat(s?"bg-[var(--brand)]/8 border border-[var(--brand)]/20":"bg-gray-50 border border-dashed border-gray-200"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,r.jsxs)("span",{className:"text-[11px] font-black uppercase tracking-widest text-gray-400",children:["1/",Math.max(ea,2)]}),(0,r.jsx)("span",{className:"text-sm truncate ".concat(s?"font-black text-gray-900":"text-gray-400 italic"),children:s?s.name:"Escolha um sabor abaixo"})]}),s&&(0,r.jsxs)("div",{className:"flex items-center gap-2",children:["proportional"===B&&(0,r.jsx)("span",{className:"text-xs font-bold text-[var(--brand)] tabular-nums",children:k(null!=(a=ec[t])?a:N(s)/Math.max(2,ea))}),t>0&&(0,r.jsx)("button",{onClick:()=>{R(e=>e.filter((e,a)=>a!==t))},className:"text-xs sm:text-[10px] font-black uppercase tracking-wider text-red-500 px-2.5 py-1.5
1sm:px-2 sm:py-1 rounded-md hover:bg-red-50",children:"Remover"})]})]},t)})})]}),(0,r.jsxs)("div",{className:"px-5 pt-7",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsx)("h3",{className:"text-base font-black text-gray-900 tracking-tight",children:"Escolha os sabores"}),(0,r.jsxs)("span",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-widest bg-gray-100/80 px-2.5 py-1 rounded-full",children:[ea," de ",S]})]}),(0,r.jsx)("div",{className:"grid gap-2.5",children:X.map(e=>{var t,a;let s=O.includes(e.id),l=F?(0,b.JA)(_,z,{product_id:e.id,promo_percent:e.promo_percent,category_id:e.category_id},C):null,i=F?null!=(t=null==l?void 0:l.halfOverride)?t:null:M.overrides.get(e.id),c=null!=i&&i>0,n=Math.max(2,ea||2),o=F?null!=(a=null==l?void 0:l.price)?a:0:N(e),x=c?2*i/n:o/n;return(0,r.jsxs)("button",{onClick:()=>s?null:$({product:e,slicePrice:x,cheio:o,hasOverride:c}),disabled:s,className:"relative flex min-h-[130px] w-full items-center gap-[11px] rounded-[14px] border p-[9px] text-left shadow-[0_1px_2px_rgba(15,23,42,0.06)] transition-all ".concat(s?"border-[var(--brand)] bg-[var(--brand)]/5 cursor-default":"border-black/[0.08] hover:border-gray-300 active:scale-[0.99] cursor-pointer"),style:{WebkitTapHighlightColor:"transparent",backgroundColor:s?void 0:"#fcfcfd"},children:[(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col pl-[3px]",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[(0,r.jsx)("p",{className:"min-w-0 flex-1 break-words text-[14px] font-bold leading-snug ".concat(s?"text-[var(--brand)]":"text-gray-900"),children:e.name}),s&&(0,r.jsx)("span",{className:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-md bg-[var(--brand)]",children:(0,r.jsx)(d.A,{size:13,className:"text-white",strokeWidth:4})})]}),e.description&&(0,r.jsx)("p",{className:"mt-1 line-clamp-2 text-[12.5px] leading-snug text-gray-500",children:e.description}),(0,r.jsxs)("div",{className:"mt-3 flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:["proportional"===B&&(0,r.jsxs)("span",{className:"text-[14px] font-bold tabular-nums ".concat(s?"text-[var(--brand)]":"text-gray-900"),children:[2===ea?"Metade":"1/".concat(n),": ",k(x)]}),(0,r.jsxs)("span",{className:"tabular-nums ".concat("proportional"===B?"text-[11.5px] text-gray-400":"text-[14px] font-bold text-gray-900"),children:["inteira ",k(o)]}),c&&"proportional"===B&&(0,r.jsx)("span",{className:"text-[9px] font-black uppercase tracking-wider text-emerald-600",children:"Pre\xe7o especial"})]})]}),e.image?(0,r.jsx)("div",{className:"relative h-[112px] w-[112px] shrink-0 overflow-hidden rounded-[11px] bg-gray-100",children:(0,r.jsx)(y.default,{src:e.image,alt:e.name,fill:!0,sizes:"112px",unoptimized:(0,v.M0)(e.image),className:"object-cover",referrerPolicy:"no-referrer"})}):(0,r.jsx)("div",{className:"flex h-[112px] w-[112px] shrink-0 items-center justify-center rounded-[11px] bg-gray-100",children:(0,r.jsx)(j.s,{size:92,slices:[{id:e.id,name:e.name,image:null}]})})]},e.id)})})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative z-30 bg-white px-5 pt-5",style:{marginTop:"-2px"},children:[(0,r.jsx)("h1",{className:"text-2xl font-black text-gray-900 tracking-tight leading-tight",children:"Personalize sua pizza"}),(0,r.jsxs)("div",{className:"mt-4 flex items-center gap-3 rounded-2xl border border-[var(--brand)]/20 bg-[var(--brand)]/[0.06] px-4 py-3",children:[(0,r.jsx)(j.s,{size:46,slices:et.map(e=>{var t;return{id:e.id,name:e.name,image:null!=(t=e.image)?t:null}})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"truncate text-[14px] font-black leading-tight text-gray-900",children:ex}),(0,r.jsx)("p",{className:"mt-0.5 text-[12px] font-medium text-gray-500",children:F?"".concat(z.name," \xb7 meio a meio"):"Meio a meio"})]}),(0,r.jsx)("button",{onClick:()=>ed("flavors"),className:"shrink-0 text-[11px] font-bold uppercase tracking-wider text-[var(--brand)] underline",children:"Trocar"})]})]}),(0,r.jsx)("div",{className:"px-5",children:(0,r.jsx)(g.o0,{groups:K,selections:D,onChange:G,shakeGroupId:Q,className:"mt-7 space-y-6 block"})}),(0,r.jsx)("div",{className:"px-5 mt-8",children:(0,r.jsxs)("div",{className:"flex items-center justify-between rounded-2xl bg-white p-4 shadow-sm ring-1 ring-black/5",children:[(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("span",{className:"text-sm font-black text-gray-900 tracking-tight",children:"Quantidade"}),(0,r.jsx)("span",{className:"text-xs font-medium text-gray-500 mt-0.5",children:"Quantas pizzas?"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-4 bg-gray-50 p-1.5 rounded-xl border border-gray-100",children:[(0,r.jsx)("button",{onClick:()=>q(Math.max(1,V-1)),className:"flex h-10 w-10 items-center justify-center rounded-lg transition-colors active:scale-95 ".concat(V>1?"bg-white text-gray-700 shadow-sm border border-gray-200":"bg-transparent text-gray-300 pointer-events-none"),children:(0,r.jsx)(x.A,{size:18,strokeWidth:2.5})}),(0,r.jsx)("span",{className:"text-lg font-black text-gray-900 w-6 text-center tabular-nums",children:V}),(0,r.jsx)("button",{onClick:()=>q(V+1),className:"flex h-10 w-10 items-center justify-center rounded-lg bg-[var(--brand)] text-white shadow-sm active:scale-95 transition-all hover:bg-[var(--brand)]/90",children:(0,r.jsx)(p.A,{size:18,strokeWidth:2.5})})]})]})}),(0,r.jsxs)("div",{className:"px-5 mt-6 mb-6",children:[(0,r.jsx)("label",{className:"text-[11px] font-black uppercase tracking-widest text-gray-400 mb-2 block",children:"Alguma observa\xe7\xe3o?"}),(0,r.jsx)("textarea",{value:J,onChange:e=>Z(e.target.value),placeholder:"Ex: Borda recheada, sem cebola...",className:"w-full rounded-xl bg-gray-50 border border-black/5 px-4 py-3 text-base sm:text-sm text-gray-700 placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-[var(--brand)]/20 focus:border-[var(--brand)]/30 resize-none",rows:3})]})]})]})}),(0,r.jsx)("div",{className:"absolute bottom-0 left-0 right-0 z-20 bg-white border-t border-gray-100 pt-4 pb-5 shadow-[0_-4px_24px_rgba(0,0,0,0.06)]",style:{paddingBottom:"max(20px, env(safe-area-inset-bottom))"},children:(0,r.jsxs)("div",{className:"mx-auto w-full max-w-[560px] px-5",children:["proportional"!==B&&ea>1&&(0,r.jsx)("p",{className:"text-[11px] text-gray-500 font-medium mb-1 text-center",children:"highest"===B?"Cobrado o valor do sabor mais caro":"Cobrada a m\xe9dia dos sabores"}),E>0&&ea>1&&(0,r.jsxs)("p",{className:"text-[11px] text-gray-500 font-medium mb-2 text-center",children:["+ taxa de ",k(E)," por dividir sabores"]}),"flavors"===T?(0,r.jsxs)("button",{onClick:()=>er&&ed("customize"),disabled:!er,className:"flex w-full items-center justify-between gap-3 rounded-2xl bg-[var(--brand)] px-5 py-3.5 text-white shadow-lg shadow-[var(--brand)]/25 transition-all active:scale-[0.98] hover:bg-[var(--brand)]/90 disabled:bg-gray-300 disabled:shadow-none disabled:active:scale-100",children:[(0,r.jsx)("span",{className:"truncate text-[15px] font-bold tracking-tight",children:er?"Continuar":"Falta ".concat(2-ea," sabor")}
1),(0,r.jsx)("span",{className:"shrink-0 text-[15px] font-black tabular-nums",children:k(en)})]}):(0,r.jsxs)("button",{onClick:()=>{if(!er)return;if(eo){H(eo.id);let e=document.querySelector('[data-group-id="'.concat(eo.id,'"]'));e&&"scrollIntoView"in e&&e.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>H(null),700);return}let e=et.length;W({flavors:et.map((t,a)=>{var r,s,l,i;return{product_id:t.id,name:t.name,share:1/e,base_price:F?null!=(l=null==(r=(0,b.JA)(_,z,{product_id:t.id,promo_percent:t.promo_percent,category_id:t.category_id},C))?void 0:r.price)?l:0:N(t),fraction_price:Number(null!=(i=null==(s=ec[a])?void 0:s.toFixed(2))?i:0)}}),...F?{size:(0,b.gR)(z,ei)}:{},strategy:B,split_fee:e>1?E:0,group_id:F?null:M.id,item_label_prefix:M.item_label_prefix},es,V,J.trim()||void 0)},className:"flex w-full items-center justify-between gap-3 rounded-2xl px-5 py-3.5 text-white shadow-lg transition-all active:scale-[0.98] ".concat(eo?"bg-rose-500 shadow-rose-500/20 hover:bg-rose-600":"bg-[var(--brand)] shadow-[var(--brand)]/25 hover:bg-[var(--brand)]/90"),children:[(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[eo&&(0,r.jsx)(m.A,{size:17,strokeWidth:2.4,className:"shrink-0 text-white/90"}),(0,r.jsx)("span",{className:"truncate text-[15px] font-bold tracking-tight",children:eo?"Escolha ".concat(eo.name.toLowerCase()):"Adicionar"})]}),(0,r.jsx)("span",{className:"shrink-0 text-[15px] font-black tabular-nums",children:k(en)})]})]})}),(0,r.jsx)(l.N,{children:Y&&(0,r.jsx)(i.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:c.eh.short},className:"absolute inset-0 z-50 flex items-end justify-center bg-slate-950/60",onClick:()=>$(null),children:(0,r.jsxs)(i.P.div,{initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{ease:c.Fc,duration:c.eh.modal},onClick:e=>e.stopPropagation(),className:"max-h-[88%] w-full max-w-[560px] overflow-y-auto rounded-t-3xl bg-white",style:{paddingBottom:"max(16px, env(safe-area-inset-bottom))"},children:[Y.product.image?(0,r.jsxs)("div",{className:"relative h-52 w-full overflow-hidden",children:[(0,r.jsx)(y.default,{src:Y.product.image,alt:Y.product.name,fill:!0,sizes:"(max-width: 560px) 100vw, 560px",unoptimized:(0,v.M0)(Y.product.image),className:"object-cover",referrerPolicy:"no-referrer"}),(0,r.jsx)("button",{onClick:()=>$(null),"aria-label":"Fechar",className:"absolute right-3 top-3 flex h-9 w-9 items-center justify-center rounded-full bg-white/90 text-gray-800 active:scale-90",children:(0,r.jsx)(h.A,{size:18})})]}):(0,r.jsx)("div",{className:"flex items-center justify-center bg-gray-50 py-6",children:(0,r.jsx)(j.s,{size:150,slices:[{id:Y.product.id,name:Y.product.name,image:null}]})}),(0,r.jsxs)("div",{className:"px-5 pt-4",children:[(0,r.jsx)("div",{className:"mx-auto mb-3 h-1.5 w-10 rounded-full bg-gray-200"}),(0,r.jsx)("h3",{className:"text-[19px] font-black leading-tight tracking-tight text-gray-900",children:Y.product.name}),Y.product.description&&(0,r.jsx)("p",{className:"mt-2 text-sm font-medium leading-relaxed text-gray-500",children:Y.product.description}),(0,r.jsxs)("div",{className:"mt-4 rounded-2xl border border-black/5 bg-gray-50 p-4",children:["proportional"===B?(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsxs)("span",{className:"text-[13px] font-medium text-gray-500",children:[2===ea?"Metade desta pizza":"1/".concat(Math.max(2,ea||2)," desta pizza"),F&&z?" \xb7 ".concat(z.name):""]}),(0,r.jsx)("span",{className:"text-[17px] font-black tabular-nums text-[var(--brand)]",children:k(Y.slicePrice)})]}):(0,r.jsx)("p",{className:"text-[13px] font-medium text-gray-500",children:"highest"===B?"A pizza \xe9 cobrada pelo valor do sabor mais caro.":"A pizza \xe9 cobrada pela m\xe9dia dos sabores."}),(0,r.jsxs)("div",{className:"mt-1.5 flex items-center justify-between gap-3",children:[(0,r.jsx)("span",{className:"text-[12px] text-gray-400",children:"Inteira deste sabor"}),(0,r.jsx)("span",{className:"text-[13px] font-bold tabular-nums text-gray-500",children:k(Y.cheio)})]}),Y.hasOverride&&"proportional"===B&&(0,r.jsx)("p",{className:"mt-2 text-[10px] font-black uppercase tracking-wider text-emerald-600",children:"Pre\xe7o especial para meia"})]}),(0,r.jsx)("button",{onClick:()=>{(e=>{if(O.length>=S)return R(t=>[...t.slice(0,-1),e]);O.includes(e)||R(t=>[...t,e])})(Y.product.id),$(null)},className:"mt-4 w-full rounded-2xl bg-[var(--brand)] px-6 py-4 text-sm font-black uppercase tracking-widest text-white shadow-lg shadow-[var(--brand)]/25 transition-all active:scale-[0.98] hover:bg-[var(--brand)]/90",children:"Escolher este sabor"}),(0,r.jsx)("button",{onClick:()=>$(null),className:"mt-2 w-full py-2 text-[13px] font-bold text-gray-400 transition-colors hover:text-gray-600",children:"Voltar"})]})]})},"detalhe-sabor")})]})})}},89733:(e,t,a)=>{a.d(t,{s:()=>n});var r=a(95155),s=a(12115);function l(e){let t=e>>>0||1;return()=>(t=1664525*t+0x3c6ef35f>>>0)/0x100000000}function i(e,t,a){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5.5,c=l(e),n=[];for(let e=0;e<s;e++){let l=e/s*Math.PI*2+.1*c(),o=t-.75*i;n.push((0,r.jsx)("circle",{cx:150+Math.cos(l)*o,cy:150+Math.sin(l)*o,r:i*(.7+.6*c()),fill:a},e))}return n}function c(e){let{seed:t}=e,a=l(t),s=t%3,c=[];for(let e=0;e<26;e++){let t=a()*Math.PI*2,s=113+16*a(),l=150+Math.cos(t)*s,i=150+Math.sin(t)*s,n=3+6*a();c.push((0,r.jsx)("ellipse",{cx:l,cy:i,rx:n,ry:.7*n,fill:"#8a5116",opacity:.12+.36*a()},e))}let n=[];for(let e=0;e<22;e++){let t=a()*Math.PI*2,s=91*Math.sqrt(a());n.push((0,r.jsx)("ellipse",{cx:150+Math.cos(t)*s,cy:150+Math.sin(t)*s,rx:5+10*a(),ry:4+7*a(),fill:"#fff2cc",opacity:.26+.32*a()},e))}let o=[],d=0===s?9:1===s?7:8;for(let e=0;e<d;e++){let t=a()*Math.PI*2,l=18+76*Math.sqrt(a()),i=150+Math.cos(t)*l,c=150+Math.sin(t)*l;0===s?o.push((0,r.jsxs)("g",{children:[(0,r.jsx)("ellipse",{cx:i,cy:c+2.4,rx:14,ry:13,fill:"#000",opacity:.2}),(0,r.jsx)("circle",{cx:i,cy:c,r:14,fill:"#9c2317"}),(0,r.jsx)("circle",{cx:i,cy:c,r:12.6,fill:"#c3392a"}),(0,r.jsx)("ellipse",{cx:i-4,cy:c-5,rx:4.6,ry:2.8,fill:"#e0705d",opacity:.4})]},e)):1===s?o.push((0,r.jsxs)("g",{transform:"rotate(".concat(90*a()-45," ").concat(i," ").concat(c,")"),children:[(0,r.jsx)("ellipse",{cx:i,cy:c+2,rx:15,ry:11,fill:"#000",opacity:.14}),(0,r.jsx)("ellipse",{cx:i,cy:c,rx:15,ry:11,fill:"#f6f1de"}),(0,r.jsx)("circle",{cx:i-4,cy:c-2,r:2.3,fill:"#6b8f6f"}),(0,r.jsx)("circle",{cx:i+5,cy:c+3,r:1.8,fill:"#6b8f6f"})]},e)):o.push((0,r.jsxs)("g",{transform:"translate(".concat(i," ").concat(c,") rotate(").concat(360*a(),")"),children:[(0,r.jsx)("path",{d:"M0,-13 C10,-8 10,8 0,13 C-10,8 -10,-8 0,-13 Z",fill:"#2f7d32"}),(0,r.jsx)("path",{d:"M0,-11 L0,11",stroke:"#1b5e20",strokeWidth:1.1,opacity:.7})]},e))}return(0,r.jsxs)("g",{children:[(0,r.jsx)("circle",{cx:150,cy:150,r:128,fill:"#dda451"}),i(t+3,128,"#dda451"),(0,r.jsx)("circle",{cx:150,cy:150,r:124,fill:"#e8b662"}),c,(0,r.jsx)("circle",{cx:150,cy:150,r:108,fill:"#a8291a"}),(0,r.jsx)("circle",{cx:150,cy:150,r:103,fill:"#f2c25c"}),i(t+7,105,"#eeb949",44,4.5),n,o]})}function n(e){var t,a;let{slices:l,size:i=176,className:n}=e,o=(0,s.useId)().replace(/:/g,""),d=Math.max(1,l.length);return(0,r.jsxs)("svg",{width:i,height:i,viewBox:"0 0 ".concat(300," ").concat(300),className:n,role:"img","aria-label":l.filter(Boolean).length>1?"Pizza dividida: ".concat(l.map(e=>{var t;return null!=(t=null==e?void 0:e.name)?t:"sabor n\xe3o escolhido"}).join(", ")):null!=(a=null==(t=l[0])?void 0:t.name)?a:"Pizza",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("radialGradient",{id:"luz".concat(o),cx:"34%",cy:"26%",r:"76%",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:"#fff",stopOpacity:"0.42"}),(0,r.jsx)("stop",{offset:"62%",stopColor:"#fff",stopOpacity:"0.04"}),(0,r.jsx)("stop",{offset:"100%",stopColor:"#3a1e05",stopOpacity:"0.26"})]}),l.map((e,t)=>(0,r.jsx)("clipPath",{id:"fatia".concat(o,"-").concat(t),children:(0,r.jsx)("path",{d:function(e,t,a){if(t<=1)return"M ".concat(20," ").concat(150," A ").concat(a," ").concat(a," 0 1 1 ").concat(150+a," ").concat(150," A ").concat(a," ").concat(a," 0 1 1 ").concat(150-a," ").concat(150," Z");let r=e/t*2*Math.PI-Math.PI/2,s=(e+1)/t*2*Math.PI-Math.PI/2,l=150+a*Math.cos(r),i=150+a
1*Math.sin(r),c=150+a*Math.cos(s),n=150+a*Math.sin(s),o=+(s-r>Math.PI);return"M ".concat(150," ").concat(150," L ").concat(l," ").concat(i," A ").concat(a," ").concat(a," 0 ").concat(o," 1 ").concat(c," ").concat(n," Z")}(t,d,130)})},t))]}),(0,r.jsx)("ellipse",{cx:150,cy:157,rx:132,ry:128,fill:"#0f172a",opacity:.16}),l.map((e,t)=>{var a,s,l;if(!e)return(0,r.jsxs)("g",{clipPath:"url(#fatia".concat(o,"-").concat(t,")"),children:[(0,r.jsx)("circle",{cx:150,cy:150,r:128,fill:"#f1f5f9"}),(0,r.jsx)("circle",{cx:150,cy:150,r:103,fill:"#e2e8f0"})]},t);let i=function(e){let t=0x811c9dc5;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,0x1000193);return t>>>0}(e.id||e.name);if(!e.image)return(0,r.jsx)("g",{clipPath:"url(#fatia".concat(o,"-").concat(t,")"),children:(0,r.jsx)(c,{seed:i})},t);let n=Math.max(1,Math.min(3,Number(null==(a=e.adjust)?void 0:a.zoom)||1)),d=128*Math.max(-1,Math.min(1,Number(null==(s=e.adjust)?void 0:s.x)||0)),x=128*Math.max(-1,Math.min(1,Number(null==(l=e.adjust)?void 0:l.y)||0)),p=256*n;return(0,r.jsxs)("g",{clipPath:"url(#fatia".concat(o,"-").concat(t,")"),children:[(0,r.jsx)("circle",{cx:150,cy:150,r:128,fill:"#1c1410"}),(0,r.jsx)("image",{href:e.image,x:150-128*n+d,y:150-128*n+x,width:p,height:p,preserveAspectRatio:"xMidYMid slice"})]},t)}),d>1&&Array.from({length:d}).map((e,t)=>{let a=t/d*2*Math.PI-Math.PI/2,s=150+129*Math.cos(a),l=150+129*Math.sin(a);return(0,r.jsxs)("g",{children:[(0,r.jsx)("line",{x1:150,y1:150,x2:s,y2:l,stroke:"#0f172a",strokeWidth:6,opacity:.28,strokeLinecap:"round"}),(0,r.jsx)("line",{x1:150,y1:150,x2:s,y2:l,stroke:"#fffaf0",strokeWidth:3,opacity:.95,strokeLinecap:"round"})]},t)}),(0,r.jsx)("circle",{cx:150,cy:150,r:128,fill:"url(#luz".concat(o,")"),style:{mixBlendMode:"soft-light"}}),(0,r.jsx)("circle",{cx:150,cy:150,r:128,fill:"none",stroke:"#7a4a12",strokeWidth:2.5,opacity:.42}),(0,r.jsx)("circle",{cx:150,cy:150,r:126.5,fill:"none",stroke:"#fff",strokeWidth:1,opacity:.18})]})}}}]);
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.