PageSourceSearch

https://www.greenchef.com/_next/static/chunks/lp-benefits-ssticker-section.637d8f5f444e53b6.js

js greenchef.com collected 2026-09-24 08:37:39 UTC 9,319 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92565],{448767:function(e,t,n){n.d(t,{X:function(){return i}});var r=n(687800);n(827378);var o=n(768587),l=n(396887),i=function(e){var t=e.error,n=e.contentType,i=e.id,a=(0,l.ew)();return(null==a?void 0:a.NEXT_PUBLIC_SERVER_ENV)!=="live"&&(null==a?void 0:a.NEXT_PUBLIC_SERVER_ENV)?(0,r.tZ)(o.xu,{p:"global.xs",backgroundColor:"shared-alias.warning.background.light",children:(0,r.BX)(o.xu,{p:"global.md-1",borderColor:"shared-alias.warning.border.default",borderWidth:"0.25rem",borderStyle:"solid",children:[(0,r.tZ)(o.xv,{as:"p",styleAs:"h2",children:t.message}),(0,r.BX)(o.xv,{as:"p",styleAs:"h3",children:[(0,r.tZ)("small",{children:"Content Type:"}),"\xa0",n]}),(0,r.BX)(o.xv,{as:"p",styleAs:"h3",children:[(0,r.tZ)("small",{children:"Content ID:"}),"\xa0",i]}),(0,r.tZ)(o.xv,{as:"p",styleAs:"h3",children:(0,r.tZ)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://app.contentful.com/spaces/l52yi8w5hh4a/views/entries?searchText=".concat(i,"&contentTypeIds=").concat(n,"&displayedFieldIds=contentType"),children:"Find it on Contenful"})})]})}):null}},632117:function(e,t,n){n.d(t,{S:function(){return s}});var r=n(687800),o=n(827378),l=n(448767),i=n(497249),a=n(396887);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=function(e){var t,n=e.error,r=e.contentType,l=e.id,u=e.isSoftValidation,s=(0,a.ew)(),f=(0,i.T)(),d=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(!1))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var l=[],i=!0,a=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(l.push(n.value),2!==l.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(a)throw r}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=d[0],y=d[1];return((0,o.useEffect)(function(){if(!p&&n){var e=f.startSpan("landing-page.section-error-display"),t={"error.message":n.message,"contentful.contentType":r,"contentful.id":l,isSoftValidation:u};e.setAttributes(t),e.end(),y(!0)}},[n,r,l,f,p,u]),(null==s?void 0:s.NEXT_PUBLIC_SERVER_ENV)!=="live"&&(null==s?void 0:s.NEXT_PUBLIC_SERVER_ENV))?{serverEnv:s,tracer:f,isSent:p,setIsSent:y}:null};function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.displayName||e.name||"Component",i=function(i){var a=i.sectionId,c=i.contentType||o,s=t.safeParse(i);if(u({error:s.error,contentType:c,id:a||"",isSoftValidation:n}),!s.success&&!n){var f=s.error;return(0,r.tZ)(l.X,{error:f,contentType:c,id:a||""})}return(0,r.tZ)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},n?i:s.data))};return i.displayName="ValidatedComponent:".concat(o),i}},780475:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var r=n(687800),o=n(827378),l=n(768587),i=n(428637),a=n(699016),c=n(632117),u=n(112696),s=u.z.object({sectionId:u.z.string().optional(),benefits:u.z.array(u.z.object({label:u.z.string().min(1,{message:"Label is required"})})).min(1,{message:"At least one benefit is required"})}),f=n(767400),d={"Everyplate_PDS_LP_template-BenefitSticker":4e3};function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y=(0,l.q)(l.xu),b=function(e){var t,n=e.sectionId,c=e.benefits,u=(0,o.useMemo)(function(){return c.slice(0,6)},[c]),s=n&&d[n]||2e3,b=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(0))||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var l=[],i=!0,a=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(l.push(n.value),2!==l.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(a)throw r}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return p(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,2)}}
1(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=b[0],g=b[1],m=(0,f.T)(),v=(0,a.ZI)(),x=(0,l.Yz)(h,{ref:v,keys:null,from:{opacity:0,transform:"translateX(100%)"},enter:{opacity:1,transform:"translateX(0%)"},leave:{opacity:0,transform:"translateX(-100%)"},config:{tension:170,friction:26}});(0,o.useEffect)(function(){if(!m){var e=setInterval(function(){g(function(e){return(e+1)%u.length})},s);return function(){clearInterval(e)}}},[u.length,m,s]),(0,o.useEffect)(function(){v.start()},[h,v]);var w=u.map(function(e,t){return function(n){return(0,r.tZ)(y,{style:n.style,children:(0,r.BX)(l.xu,{display:"flex",justifyContent:"center",alignItems:"center",gap:"global.xxs",children:[(0,r.tZ)(l.JO,{icon:(0,r.tZ)(i.Z,{}),color:"global.mint.400"}),(0,r.tZ)(l.xv,{type:"body-md-regular",strong:!0,whiteSpace:"nowrap",children:e.label})]})},"".concat(e.label).concat(t))}});return(0,r.tZ)(l.xu,{width:"100%",backgroundColor:"alias.page-background.default",children:(0,r.tZ)(l.xu,{display:"flex",width:"100%",position:"relative",justifyContent:"center",py:"global.sm-2",px:["global.none","global.none","global.md-1"],minHeight:"62px",marginX:"auto",maxWidth:["100%","960px","1140px"],children:m?(0,r.tZ)(l.xu,{display:"flex",width:"100%",gap:"global.md-1",py:"global.xxs",justifyContent:"center",flexWrap:"wrap",children:u.map(function(e,t){return(0,r.BX)(l.xu,{display:"flex",justifyContent:"center",alignItems:"center",gap:"global.xxs",children:[(0,r.tZ)(l.JO,{icon:(0,r.tZ)(i.Z,{}),color:"global.mint.400"}),(0,r.tZ)(l.xv,{type:"body-md-regular",strong:!0,whiteSpace:"nowrap",children:e.label})]},"".concat(e.label).concat(t))})}):(0,r.tZ)(l.xu,{display:"block",width:"100%",overflow:"hidden",position:"relative",children:x(function(e,t){var n=u.length,o=t>0?w[t-1]:w[n-1],i=w[t],a=t<n-1?w[t+1]:w[0];return(0,r.BX)(l.xu,{position:"absolute",width:"100%",display:"flex",gap:"global.md-1",py:"global.xxs",justifyContent:"center",children:[(0,r.BX)(l.xu,{flexShrink:1,children:[(0,r.tZ)(o,{style:e})," "]}),(0,r.tZ)(l.xu,{flexShrink:0,children:(0,r.tZ)(i,{style:e})}),(0,r.tZ)(l.xu,{flexShrink:1,children:(0,r.tZ)(a,{style:e})})]},"animated-text-".concat(t))})})})})};b.displayName="BenefitsStickerSection";var h=(0,c.S)(b,s)},767400:function(e,t,n){n.d(t,{T:function(){return c}});var r=n(827378),o="(prefers-reduced-motion: reduce)",l=function(e){var t=window.matchMedia(o);return t.addEventListener("change",e),function(){return t.removeEventListener("change",e)}},i=function(){return window.matchMedia(o).matches},a=function(){return!1},c=function(){return(0,r.useSyncExternalStore)(l,i,a)}},428637:function(e,t,n){var r=n(687800);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}n(827378),t.Z=function(e){var t=e.title,n=e.titleId,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["title","titleId"]);
1return(0,r.BX)("svg",l(o(l(o({width:"1rem",height:"1rem",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":n}),i),{children:[t?(0,r.tZ)("title",{id:n,children:t}):null,(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.667 4.06 5.36 12.37 2 9.01l1.06-1.06 2.299 2.298L12.607 3l1.06 1.06Z",fill:"currentColor"})]}))}}}]);

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.