PageSourceSearch

https://alinhafood.com.br/_next/static/chunks/8829-0dd4c98cb5364f85.js

js alinhafood.com.br collected 2026-09-24 14:34:45 UTC 7,767 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8829],{30130:(t,e,n)=>{function o(t){let e=(null!=t?t:"").trim().toLowerCase();return e?/(^|\s)(lata|latinha|lat[ãa]o)(\s|$)/.test(e)?"can":/(^|\s)(garrafa|garrafinha|long\s*neck|pet)(\s|$)/.test(e)?"bottle":/(^|\s)(copo|copinho|c[oó]po|taça|taca|caneca)(\s|$)/.test(e)?"cup":/(^|\s)(pizza|broto|fatia)(\s|$)/.test(e)?"disc":/(^|\s)\d+(?:[.,]\d+)?\s*(l|litros?)(\s|$)/.test(e)?"bottle":/\d+\s*ml(\s|$)/.test(e)?"cup":/\d+\s*cm(\s|$)/.test(e)?"disc":null:null}function c(t){var e;let n=(null!=(e=t.display_name)?e:"").trim();return n&&o(n)?n:t.name}function a(t){let e=new Map;if(!t||0===t.length)return e;let n=t.map(t=>o(c(t))).filter(t=>null!==t),a="disc";if(n.length>0){var i,r,l;let t=new Map;for(let e of n)t.set(e,(null!=(i=t.get(e))?i:0)+1);let e=n[0];for(let o of n)(null!=(r=t.get(o))?r:0)>(null!=(l=t.get(e))?l:0)&&(e=o);a="can"===e?"bottle":e}for(let n of t)e.set(n.id,function(t,e){var n,a;let i=(null!=(n=t.shape)?n:"").trim();return"can"===i||"bottle"===i||"cup"===i||"disc"===i?i:null!=(a=o(c(t)))?a:e}(n,a));return e}n.d(e,{Ic:()=>a,MF:()=>i,Vs:()=>o});let i={cup:"Copo",can:"Lata",bottle:"Garrafa",disc:"Pizza"}},78272:(t,e,n)=>{n.d(e,{gN:()=>
1r,RZ:()=>a});let o={mode:"always"},c=["sun","mon","tue","wed","thu","fri","sat"];function a(t){if(!t||"object"!=typeof t)return o;if("always"===t.mode||"paused"===t.mode)return{mode:t.mode};if("scheduled"===t.mode&&t.schedule&&"object"==typeof t.schedule){let e={};for(let n of c){let o=t.schedule[n];if(!Array.isArray(o))continue;let c=[];for(let t of o)t&&"object"==typeof t&&"string"==typeof t.start&&"string"==typeof t.end&&c.push({start:t.start,end:t.end});c.length>0&&(e[n]=c)}return{mode:"scheduled",schedule:e}}return o}function i(t){let e=/^(\d{1,2}):(\d{2})$/.exec(t);if(!e)return null;let n=parseInt(e[1],10),o=parseInt(e[2],10);return n<0||n>23||o<0||o>59?null:60*n+o}function r(t){var e,n,o;let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a(t);if("always"===r.mode)return!0;if("paused"===r.mode)return!1;let{day:l,minutes:s}=function(t,e){let n=new Intl.DateTimeFormat("en-US",{timeZone:t,weekday:"short",hour12:!1,hour:"2-digit",minute:"2-digit"}).formatToParts(e),o={Sun:"sun",Mon:"mon",Tue:"tue",Wed:"wed",Thu:"thu",Fri:"fri",Sat:"sat"},c="sun",a=0,i=0;for(let t of n){var r;"weekday"===t.type?c=null!=(r=o[t.value])?r:"sun":"hour"===t.type?a=parseInt(t.value,10):"minute"===t.type&&(i=parseInt(t.value,10))}return 24===a&&(a=0),{day:c,minutes:60*a+i}}(null!=(e=c.tz)?e:"America/Sao_Paulo",null!=(n=c.now)?n:new Date);for(let t of null!=(o=r.schedule[l])?o:[]){let e=i(t.start),n=i(t.end);if(null!=e&&null!=n&&e!==n){if(e<n){if(s>=e&&s<n)return!0}else if(s>=e||s<n)return!0}}return!1}},90270:(t,e,n)=>{n.d(e,{A:()=>u});var o=n(95155),c=n(80633),a=n(30130);function i(t){var e;let n=/(\d+(?:[.,]\d+)?)\s*(cm|ml|l|litros?|")?/i.exec(null!=t?t:"");if(!n)return null;let o=Number(n[1].replace(",","."));return Number.isFinite(o)?"ml"===(null!=(e=n[2])?e:"").toLowerCase()?o/1e3:o:null}function r(t){let e=(null!=t?t:"").trim().toLowerCase();return e?/(^|\s)(broto|mini|individual)/.test(e)?1:/(^|\s)(pequena|pequeno)(\s|$)/.test(e)||/^p$/.test(e)?2:/(^|\s)(m[eé]dia|m[eé]dio)(\s|$)/.test(e)||/^m$/.test(e)?3:/(^|\s)grande(\s|$)/.test(e)||/^g$/.test(e)?4:/(^|\s)(fam[ií]lia|gigante)(\s|$)/.test(e)||/^(gg|xg)$/.test(e)?5:null:null}function l(t,e){let n=t.map(t=>i(t.name));if(n.every(t=>null!=t)&&new Set(n).size>1)return[...t].sort((t,e)=>i(t.name)-i(e.name));let o=t.map(t=>r(t.name));if(o.every(t=>null!=t)&&new Set(o).size>1)return[...t].sort((t,e)=>r(t.name)-r(e.name));if(e){let n=t.map(t=>e.get(t.id));if(n.every(t=>"number"==typeof t&&Number.isFinite(t))&&Math.max(...n)>Math.min(...n))return[...t].sort((t,n)=>{var o,c;return(null!=(o=e.get(t.id))?o:0)-(null!=(c=e.get(n.id))?c:0)})}return t}function s(t){let e=58-48*t,n=34*t/2,o=24*t/2;return"M ".concat((34-n).toFixed(1)," ").concat(e.toFixed(1)," L ").concat((34+n).toFixed(1)," ").concat(e.toFixed(1)," L ").concat((34+o).toFixed(1)," ").concat(58," L ").concat((34-o).toFixed(1)," ").concat(58," Z")}function d(t){let e=48*t,n=58-e,o=22*t,c=9*t,a=n+.3*e,i=Math.min(4,o/4),r=34-c/2,l=34+c/2,s=34-o/2,d=34+o/2;return"M ".concat(r.toFixed(1)," ").concat(n.toFixed(1)," L ").concat(l.toFixed(1)," ").concat(n.toFixed(1)," L ").concat(l.toFixed(1)," ").concat(a.toFixed(1)," C ").concat(l.toFixed(1)," ").concat((a+5*t).toFixed(1)," ").concat(d.toFixed(1)," ").concat((a+3*t).toFixed(1)," ").concat(d.toFixed(1)," ").concat((a+9*t).toFixed(1)," L ").concat(d.toFixed(1)," ").concat((58-i).toFixed(1)," Q ").concat(d.toFixed(1)," ").concat(58," ").concat((d-i).toFixed(1)," ").concat(58," L ").concat((s+i).toFixed(1)," ").concat(58," Q ").concat(s.toFixed(1)," ").concat(58," ").concat(s.toFixed(1)," ").concat((58-i).toFixed(1)," L ").concat(s.toFixed(1)," ").concat((a+9*t).toFixed(1)," C ").concat(s.toFixed(1)," ").concat((a+3*t).toFixed(1)," ").concat(r.toFixed(1)," ").concat((a+5*t).toFixed(1)," ").concat(r.toFixed(1)," ").concat(a.toFixed(1)," Z")}function u(t){var e;let{size:n,todos:i,precos:r,className:u}=t,x=function(t,e,n){if(e.length<=1)return 1;let o=l(e,n),c=o.map(t=>Number(t.stock_factor)||1),a=Math.max(...c),i=Math.min(...c),r=c.every((t,e)=>0===e||t>=c[e-1]);return a>i&&r?Math.max(.42,Math.sqrt((Number(t.stock_factor)||1)/a)):.42+Math.max(0,o.findIndex(e=>e.id===t.id))/Math.max(1,o.length-1)*.5800000000000001}(n,i,r),f=null!=(e=(0,a.Ic)(i).get(n.id))?e:"disc",m="can"===f?.8+.19999999999999996*x:x,F=i.some(t=>(0,c.q0)(t)>1),h="disc"===f&&F?function(t,e,n){let o=Number(t.slices);if(Number.isFinite(o)&&o>=4)return Math.min(16,Math.trunc(o));let c=[4,6,8,12,16];return c[Math.min(Math.max(0,l(e,n).findIndex(e=>e.id===t.id)),c.length-1)]}(n,i,r):0,p=31*m,y="can"===f?null:"disc"===f?"disc":"bottle"===f?d(1):s(1),g="can"===f?function(t){let e=21*t,n=58-34*t,o=Math.min(4.5,e/4),c=34-e/2;return"M ".concat((c+o).toFixed(1)," ").concat(n.toFixed(1)," L ").concat((c+e-o).toFixed(1)," ").concat(n.toFixed(1)," Q ").concat((c+e).toFixed(1)," ").concat(n.toFixed(1)," ").concat((c+e).toFixed(1)," ").concat((n+o).toFixed(1)," L ").concat((c+e).toFixed(1)," ").concat((58-o).toFixed(1)," Q ").concat((c+e).toFixed(1)," ").concat(58," ").concat((c+e-o).toFixed(1)," ").concat(58," L ").concat((c+o).toFixed(1)," ").concat(58," Q ").concat(c.toFixed(1)," ").concat(58," ").concat(c.toFixed(1)," ").concat((58-o).toFixed(1)," L ").concat(c.toFixed(1)," ").concat((n+o).toFixed(1)," Q ").concat(c.toFixed(1)," ").concat(n.toFixed(1)," ").concat((c+o).toFixed(1)," ").concat(n.toFixed(1)," Z")}(m):"bottle"===f?d(m):s(m);return(0,o.jsxs)("svg",{viewBox:"0 0 68 68",className:u,role:"img","aria-label":"Tamanho ".concat(n.name),children:["disc"===y?(0,o.jsx)("circle",{cx:"34",cy:"34",r:31,fill:"none",stroke:"#94A3B8",strokeWidth:"1.4",strokeDasharray:"3 3"}):y?(0,o.jsx)("path",{d:y,fill:"none",stroke:"#94A3B8",strokeWidth:"1.3",strokeDasharray:"3 3",strokeLinejoin:"round"}):null,"disc"===f?(0,o.jsx)("circle",{cx:"34",cy:"34",r:p,fill:"currentColor",fillOpacity:"0.16",stroke:"currentColor",strokeWidth:"2"}):(0,o.jsx)("path",{d:g,fill:"currentColor",fillOpacity:"0.16",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),"can"===f&&(0,o.jsx)("line",{x1:(34-21*m/2+2.5).toFixed(1),y1:(58-34*m+5).toFixed(1),x2:(34+21*m/2-2.5).toFixed(1),y2:(58-34*m+5).toFixed(1),stroke:"currentColor",strokeOpacity:"0.45",strokeWidth:"1.5",strokeLinecap:"round"}),Array.from({length:h},(t,e)=>{let n=2*e*Math.PI/h-Math.PI/2;return(0,o.jsx)("line",{x1:"34",y1:"34",x2:(34+p*Math.cos(n)).toFixed(2),y2:(34+p*Math.sin(n)).toFixed(2),stroke:"currentColor",strokeOpacity:"0.28",strokeWidth:"1.4",strokeLinecap:"round"},e)})]})}}}]);

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.