1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7411],{1541:(t,e,r)=>{r.d(e,{s:()=>o});var n=r(98840);let o=()=>{try{let t=localStorage.getItem("auth");if(!t)return null;let e=JSON.parse(t),r=e?.token;if(!r||"string"!=typeof r)return null;if((0,n.DW)(r))return localStorage.removeItem("auth"),null;return r}catch(t){return console.error("Error parsing auth data from localStorage:",t),null}}},7050:(t,e,r)=>{r.d(e,{A:()=>l,cn:()=>a});var n=r(52596),o=r(39688);let a=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return(0,o.QP)((0,n.$)(e))},l=a},19828:(t,e,r)=>{r.d(e,{Px:()=>f,Yq:()=>c,_S:()=>l,ji:()=>i,n4:()=>s,r5:()=>h,v7:()=>m,vv:()=>u,zm:()=>o});let n=/(?:(\d+(?:\.\d+)?)\s*[xX*]\s*)?(\d+(?:\.\d+)?)\s*(kgs?|gms?|gs?)\b/i,o=(t,e)=>{for(let r of[t,e]){let t=r?.trim()??"";if(!t)continue;let e=t.search(/pack\s+of\s+/i),o=(-1===e?t:t.slice(e)).match(n);if(!o)continue;let a=o[1]?parseFloat(o[1]):1,l=a*parseFloat(o[2])*(/^kg/i.test(o[3])?1:.001);if(Number.isFinite(l)&&l>0)return l}return null},a=/^pack\s+of\s+/i,l=t=>{let e=t?.trim()??"";return e&&e.replace(a,"").trim()||e},i=t=>{try{if(t%1==0)return t.toString();return t.toFixed(1)}catch(e){return console.error("Error formatting review rating:",e),t.toString()}},u=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-IN",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"INR";try{if(null==t||isNaN(t)||!isFinite(t))return console.warn("Invalid amount provided to formatCurrency:",t),new Intl.NumberFormat(e,{style:"currency",currency:r,minimumFractionDigits:0,maximumFractionDigits:0}).format(0);let n=Math.round(t);return new Intl.NumberFormat(e,{style:"currency",currency:r,minimumFractionDigits:0,maximumFractionDigits:0}).format(n)}catch(r){console.warn("Currency formatting failed:",r);let e=Math.round(t??0);return`â¹${e}`}},c=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{year:"numeric",month:"long",day:"numeric"};if(!t)return"-";try{let r="string"==typeof t?new Date(t):t;if(isNaN(r.getTime()))return"-";return new Intl.DateTimeFormat("en-IN",e).format(r)}catch(t){return console.error("Error formatting date:",t),"-"}},s=t=>t?t.replace(/-/g,"").replace(/\+/g,"%2B"):t,m=t=>{try{if(0===t)return"0 Bytes";let e=Math.floor(Math.log(t)/Math.log(1024));return`${parseFloat((t/Math.pow(1024,e)).toFixed(2))} ${["Bytes","KB","MB","GB","TB"][e]}`}catch(e){return console.error("Error formatting file size:",e),`${t} Bytes`}},g=t=>{let e=new Date;return e.setDate(e.getDate()+t),e},f=t=>{try{let e=g(t),r=e.toLocaleDateString("en-IN",{weekday:"long"}),n=e.getDate(),o=e.toLocaleDateString("en-IN",{month:"long"});return`${r}, ${n} ${o}`}catch(e){return console.error("Error formatting delivery days:",e),`${t} days`}},h=t=>{try{let e=new Date(t);if(isNaN(e.getTime()))throw Error("Invalid date");let r=e.getDate(),n=e.toLocaleString("en-US",{month:"long"}),o=e.getFullYear(),a=e.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${r}${1===r||21===r||31===r?"st":2===r||22===r?"nd":3===r||23===r?"rd":"th"} ${n} ${o}, ${a}`}catch(e){return console.error("Error formatting order timeline date:",e),t}}},84559:(t,e,r)=>{r.d(e,{Eo:()=>m,Ex:()=>d,Gd:()=>o,ID:()=>l,M0:()=>h,NF:()=>i,NP:()=>g,WD:()=>a,bx:()=>u,ne:()=>c,qd:()=>y,r8:()=>f,sB:()=>p,sM:()=>I,up:()=>s});var n=r(49509);let o=n.env.STRAPI_URL,a="https://api.thewholetruthfoods.com",l="pk_8cd245a7362ae42363879dd525e69c4fde2cfcc72bb6eb1439e52624890e4421",i="reg_01K1807YATMW28HC32JE1PTGE6",u="sc_01K17WW5GTPPXSNRMM1MB83076",c="rzp_live_TO2eKDZuCAWftQ",s="https://media.thewholetruthfoods.com",m="10242";n.env.FACEBOOK_PIXEL_TOKEN;let g=!1;n.env.NEXT_PUBLIC_INSIDER_URL,parseInt("21600",10),parseInt("21600",10),parseInt("600",10);let f="https://thewholetruthfoods.com",h="production";n.env.REVALIDATE_SECRET;let d="https://thewholetruthfoods.clickpost.ai",p=parseInt("2592000000",10),y="337470931668",I="KJSaeW2fsiVTYysW5UKDMDF4K8u1"},98840:(t,e,r)=>{r.d(e,{DW:()=>l,jM:()=>a});let n=t=>{let e=t.replace(/-/g,"+").replace(/_/g,"/");return atob(e+"=".repeat((4-e.length%4)%4))},o=t=>{if(!t||"string"!=typeof t)return console.error("Invalid JWT format: token must be a non-empty string"),null;try{let e=t.split(".");if(3!==e.length)return console.error("Invalid JWT format: token must have 3 parts"),null;let r=e[1],o=n(r);return JSON.parse(o)}catch(t){return console.error("Failed to decode JWT:",t),null}},a=t=>{let e=o(t);return e?.exp??null},l=t=>{try{let e=a(t);if(!e)return console.warn("Cannot determine JWT expiry, treating as expired for safety"),!0;return Math.floor(Date.now()/1e3)>=e-15}catch(t){return console.error("Error checking JWT expiry:",t),!1}}}}]);
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.