PageSourceSearch

https://www.hellomagazine.com/_next/static/chunks/2519.c6ff5acc00becb54.js

js hellomagazine.com collected 2026-09-24 08:30:16 UTC 1,924 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2519],{2519:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var l=r(80263),n=r(87886),a=r(53239),i=r(23727);let o=e=>{let{data:t}=e,{image:r,title:o,resultTitle:u}=t,s=(e=>{let t=i.env.NEXT_PUBLIC_BASEPATH||"";return"".concat(t.replace(/\/$/,"")).concat(e)})("/api/idealWeightCalc/"),[c,h]=(0,a.useState)(""),[g,f]=(0,a.useState)(""),[p,d]=(0,a.useState)(""),[S,v]=(0,a.useState)(""),[I,w]=(0,a.useState)(!1),[E,b]=(0,a.useState)(null),[A,P]=(0,a.useState)(null),[y,_]=(0,a.useState)(!1),k=async()=>{try{let e="".concat(s,"?gender=").concat(c,"&height=").concat(S),t=await fetch(e);if(!t.ok)return console.error("Error calling API:",t.statusText),null;let r=await t.json();if(r&&r.result&&"number"==typeof r.result.initWeight&&"number"==typeof r.result.finalWeight)return r.result;return console.error("Invalid API response:",r),null}catch(e){return console.error("Error calling API:",e),null}},W=async e=>{e.preventDefault();try{if(""===c||""===g||""===p||""===S)return void _(!0);let e=await k();e?(b(e.initWeight),P(e.finalWeight),w(!0)):console.error("Error calling API or invalid response.")}catch(e){console.error("Error calling API:",e)}},C={image:r,title:o,resultTitle:u,genderOptionSelected:c,setGenderOptionSelected:h,ageOptionSelected:g,setAgeOptionSelected:f,weightOptionSelected:p,setWeightOptionSelected:d,heightOptionSelected:S,setHeightOptionSelected:v,showResults:I,initWeight:E,finalWeight:A,showAlert:y,handleSubmit:W,handleReset:()=>{w(!1),h(""),f(""),d(""),v("")},weightOptions:(()=>{let e=[];for(let t=50;t<=100;t++)e.push({value:t,label:t.toString()});return e})(),heightOptions:(()=>{let e=[];for(let t=150;t<=200;t++)e.push({value:t,label:t.toString()});return e})(),ageOptions:(()=>{let e=[];for(let t=18;t<=99;t++)e.push({value:t,label:t.toString()});return e})()};return(0,l.jsx)(n.xr,{...C,widgetIdentifier:t.widgetIdentifier})}}}]);

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.