PageSourceSearch

https://www.hellomagazine.com/_next/static/chunks/8821.9cadf9025a44a5c5.js

js hellomagazine.com collected 2026-10-01 08:48:42 UTC 12,028 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8821],{28821:(e,t,n)=>{n.r(t),n.d(t,{Component:()=>h,Permutive:()=>_});var r=n(80263),i=n(4635),o=n(91022),a=n(5979),s=n.n(a),u=n(53239),c=n(98837),g=n.n(c),l=n(70844);let d={story:"article",gallery:"article","video-story":"article",recipe:"article",tags:"tags",homepage:"homepage",cover:"cover",other:"other"};var p=n(56505),m=n(15234),f=n(27639),w=n(8084),v=n(23727);let h=e=>{let{pageProps:t,enableForGeo:n=null}=e,{isDataReady:a,userManageData:c}=(0,p.A)(),{geoBucket:h}=(0,u.useContext)(f.F),_=(0,u.useMemo)(()=>(e=>{let t=(0,l.U)(e),n=d[t.page.documentType]||"other",r={classifications_watson:{concepts:"$alchemy_concepts",emotion:"$alchemy_document_emotion",entities:"$alchemy_entities",keywords:"$alchemy_keywords",sentiment:"$alchemy_document_sentiment",taxonomy_labels:"$alchemy_taxonomy_labels",taxonomy:"$alchemy_taxonomy"},documentType:t.page.documentType||"",publication:t.page.publication||"",user:{age:t.user.ageUser||0,gender:t.user.genderUser||"",type:t.user.userType||""},content:{categories:t.page.section?[t.page.section]:[],subsection:t.page.subsection?[t.page.subsection]:[]}};if("article"===n){var i,o;let{article:n}=t;if(!n)return r;(null==e||null==(o=e.articleStats)||null==(i=o.aiContentEnrichment)?void 0:i.permutive)&&(r.ai_content_enrichments=e.articleStats.aiContentEnrichment.permutive),r.article={authors:n.author||[],classification:n.contentClassification?[n.contentClassification]:[],description:n.descriptionURL||"",extension:n.articleLength||0,id:String(n.articleID||""),keywords:n.keywords||[],modifiedAt:new Date(e.articleStats.originalDateModified).toISOString()||"",premium:n.isPremium||!1,publishedAt:new Date(e.articleStats.originalDatePublication).toISOString()||"",tags:"string"==typeof n.tags?[n.tags]:n.tags||[],title:n.articleTitle||"",headline:n.articleHeadline||"",subtitle:n.articleSubtitle||"",numberParagraphs:n.numberParagraphs||1,clientName:n.clientName||"",articleType:n.articleType||"article",contentPurpose:n.contentPurpose||"",commercialPurpose:n.commercialPurpose||[],video:{valid:n.hasVideo||!1,title:n.videoTitle||""},numberAds:n.numberAds||0,contentAccess:n.contentAccess||"",numberImages:n.numberImages||0,numberLinks:n.internalLinks+n.externalLinks||0,isOneColumn:n.isOneColumn||!1,density:parseFloat((n.articleLength/n.numberParagraphs||0).toFixed(2))}}return r})(t),[t]),y=(0,u.useMemo)(()=>((e,t)=>{var n,r;let i=(0,l.U)(e),o=d[i.page.documentType]||"other",a="string"==typeof(null==(n=i.article)?void 0:n.tags)?[i.article.tags]:(null==(r=i.article)?void 0:r.tags)||[],s={type:o,content:{categories:i.page.section?[i.page.section]:[]},user:{age:(null==t?void 0:t.ageUser)||0,gender:(null==t?void 0:t.genderUser)||"",type:(null==t?void 0:t.userType)||""}};if("article"===o){let{article:t}=i;if(!t)return s;s.article={authors:t.author||[],description:t.descriptionURL||"",id:String(t.articleID||""),modifiedAt:new Date(e.articleStats.originalDateModified).toISOString()||"",paragraphCount:t.numberParagraphs||1,premium:t.isPremium||!1,publishedAt:new Date(e.articleStats.originalDatePublication).toISOString()||"",section:i.page.section||"",subsection:i.page.subsection||"",title:t.articleTitle||"",topics:a,wordCount:t.articleLength||0}}return s})(t,{ageUser:c.ageUser?Number(c.ageUser):0,genderUser:c.genderUser||"",userType:c.userType||""}),[t,c.ageUser,c.genderUser,c.userType]),{consent:b,token:S}=(0,i.A)({vendorId:m.EX}),[I,A]=(0,u.useState)(!1);if(w.R.hidden("permutive","data","Permutive - geoBucket: ".concat(h,", enableForGeo: ").concat(n)),n&&!n.split(",").includes(h))return w.R.hidden("permutive","Removed","Permutive is only loaded for ES, MX and US geo buckets"),null;if((0,u.useEffect)(()=>{b&&a&&A(!0)},[b,a]),(0,u.useEffect)(()=>(I&&o.P.on("survey",e=>{window.permutive.track("SurveyResponse",e)}),()=>{o.P.off("survey",()=>{})}),[I]),(0,u.useEffect)(()=>{if(I&&a&&1){let e={type:c.userType};c.genderUser&&(e.gender=c.genderUser),c.ageUser&&(e.age=Number(c.ageUser)),window.permutive.track("User",e)}},[a,I]),!b||!a)return null;let U=[];if((null==c?void 0:c.cid)&&U.push({id:c.cid,tag:"ev_sessionId"}),(null==c?void 0:c.guid)&&U.push({id:c.guid,tag:"ev_guid"}),(null==c?void 0:c.email_sha256)&&U.push({id:c.email_sha256,tag:"email_sha256",priority:2}),!I&&Array.isArray(window.dataLayer)){let e="5252a985-8243-4bca-8fe2-13b5d3906efd",n="1c46eda6-f29a-461b-b7fc-52d6e3dad45c";(t.serverContext.urlPath.startsWith("/mexico")||t.serverContext.urlPath.startsWith("/us-es"))&&(e=v.env.NEXT_PUBLIC_PERMUTIVE_API_KEY_ES,n=v.env.NEXT_PUBLIC_PERMUTIVE_PROJECT_ID_ES);let i="https://6da7b56a-3097-4a8c-baaa-4a543536193b.edge.permutive.app/".concat(n,"-web.js"),o=!(t.serverContext.urlPath.startsWith("/mexico")||t.serverContext.urlPath.startsWith("/us-es")||t.serverContext.urlPath.startsWith("/us"));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s(),{id:"permutive-script",dangerouslySetInnerHTML:{__html:'!function(e,o,n,i){if(!e){e=e||{},window.permutive=e,e.q=[];var t=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){return(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})};e.config=i||{},e.config.apiKey=o,e.config.workspaceId=n,e.config.environment=e.config.environment||"production",(window.crypto||window.msCrypto)&&(e.config.viewId=t());for(var g=["addon","identify","track","trigger","query","segment","segments","ready","on","once","user","consent"],r=0;r<g.length;r++){var w=g[r];e[w]=function(o){return function(){var n=Array.prototype.slice.call(arguments,0);e.q.push({functionName:o,arguments:n})}}(w)}}}(window.permutive,"'.concat(e,'","').concat(n,'",{"consentRequired": true}); window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(function(){var c=window.googletag.getConfig&&window.googletag.getConfig("targeting")||{},t=c.targeting||{};if(0===(t.permutive||[]).length){var e=window.localStorage.getItem("_pdfps");window.googletag.setConfig({targeting:{permutive:e?JSON.parse(e):[]}});var o=window.localStorage.getItem("permutive-id");o&&window.googletag.setConfig({targeting:{puid:o,ptime:Date.now().toString()}}),window.permutive.config.viewId&&window.googletag.setConfig({targeting:{prmtvvid:window.permutive.config.viewId}}),window.permutive.config.workspaceId&&window.googletag.setConfig({targeting:{prmtvwid:window.permutive.config.workspaceId}})}});\n                        permutive.addon(\'web\', {\n				            page: ').concat(g()({..._,user:void 0},{isJSON:!0}),'\n                        });\n						permutive.consent({ "opt_in": true, "token": "').concat(S,'" });\n						permutive.identify(').concat(g()(U,{isJSON:!0}),');\n						performance.mark("Permutive consent opt_in true");\n\n						if (').concat(o&&!1,") {\n							__wmass.bff.push(function () {\n								__wmass.dmp.addon('web', {\n									page: ").concat(g()(y,{isJSON:!0}),"\n								});\n							});\n						}\n						")}}),(0,r.jsx)(s(),{src:i}),(0,r.jsx)(s(),{id:"permutive-brand-metrics-script",dangerouslySetInnerHTML:{__html:"window._brandmetrics = window._brandmetrics || [];\n							window._brandmetrics.push({\n							  cmd: '_addeventlistener',\n							  val: {\n								event: 'surveyanswered',\n								handler: function (ev) {\n								  tr
1y {\n									if (window.permutive && window.permutive.track) {\n									  ev.answers.split(';').forEach(function (questionAnswers) {\n										questionAnswers = questionAnswers.split('-');\n										var question = questionAnswers[0] ? questionAnswers[0] : null;\n										var answer = null;\n\n										if (questionAnswers[1]) {\n										  const parsedAnswers = questionAnswers[1].split(',').map(answer => {\n											const trimmed = answer.trim();\n											return isNaN(trimmed) ? null : Number(trimmed);\n										  }).filter(value => value !== null && Number.isInteger(value));\n\n										  answer = parsedAnswers.length > 0 ? parsedAnswers[0] : null;\n										}\n\n										window.permutive.track('BrandMetricsSurveyResponse', {\n										  mid: ev.mid,\n										  question: question,\n										  answer: answer, // single integer or null\n										});\n									  });\n									}\n								  } catch (e) {\n									console.error('Error sending Brand Metrics data to Permutive', e);\n								  }\n								},\n							  },\n							});\n						"}})]})}return null},_=h},98837:e=>{var t=function(){for(var e=crypto.getRandomValues(new Uint8Array(16)),t="",n=0;n<16;++n)t+=e[n].toString(16);return t}(),n=RegExp('(\\\\)?"@__(F|R|D|M|S|A|U|I|B|L)-'+t+'-(\\d+)__@"',"g"),r=/\{\s*\[native code\]\s*\}/g,i=/function.*?\(/,o=/.*?=>.*?/,a=/[<>\/\u2028\u2029]/g,s=/<\/script[^>]*>|<\/script(?=[\t\n\f\r \/>])/gi,u=["*","async"],c={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function g(e){return c[e]}var l=/\/\*[\s\S]*?\*\/|\/\/[^\n]*|'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|`(?:\\.|[^`\\])*`|\/(?:\\.|\[(?:\\.|[^\]\\\n])*\]|[^\/\\\n])+\//g;e.exports=function e(c,d){d||(d={}),("number"==typeof d||"string"==typeof d)&&(d={space:d});var p,m=[],f=[],w=[],v=[],h=[],_=[],y=[],b=[],S=[],I=[];return(d.ignoreFunction&&"function"==typeof c&&(c=void 0),void 0===c)?String(c):"string"!=typeof(p=d.isJSON&&!d.space?JSON.stringify(c):JSON.stringify(c,d.isJSON?null:function(e,n){if(d.ignoreFunction&&function(e){var t=[];for(var n in e)"function"==typeof e[n]&&t.push(n);for(var r=0;r<t.length;r++)delete e[t[r]]}(n),!n&&void 0!==n&&n!==BigInt(0))return n;var r=this[e],i=typeof r;if("object"===i){if(r instanceof RegExp)return"@__R-"+t+"-"+(f.push(r)-1)+"__@";if(r instanceof Date)return"@__D-"+t+"-"+(w.push(r)-1)+"__@";if(r instanceof Map)return"@__M-"+t+"-"+(v.push(r)-1)+"__@";if(r instanceof Set)return"@__S-"+t+"-"+(h.push(r)-1)+"__@";if(Array.isArray(r)&&Object.keys(r).length!==r.length)return"@__A-"+t+"-"+(_.push(r)-1)+"__@";if(r instanceof URL)return"@__L-"+t+"-"+(I.push(r)-1)+"__@"}return"function"===i?"@__F-"+t+"-"+(m.push(r)-1)+"__@":"undefined"===i?"@__U-"+t+"-"+(y.push(r)-1)+"__@":"number"!==i||isNaN(r)||isFinite(r)?"bigint"===i?"@__B-"+t+"-"+(S.push(r)-1)+"__@":n:"@__I-"+t+"-"+(b.push(r)-1)+"__@"},d.space))?String(p):(!0!==d.unsafe&&(p=p.replace(a,g)),0===m.length&&0===f.length&&0===w.length&&0===v.length&&0===h.length&&0===_.length&&0===y.length&&0===b.length&&0===S.length&&0===I.length)?p:p.replace(n,function(t,n,a,c){if(n)return t;if("D"===a){var g=String(w[c].toISOString());if(!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/.test(g))throw TypeError("Invalid Date ISO string");return'new Date("'+g+'")'}if("R"===a){var p=String(f[c].flags).replace(/[^gimsuydv]/g,""),y=f[c].source;if("string"!=typeof y)throw TypeError("RegExp.source must be a string");return"new RegExp("+e(y)+', "'+p+'")'}if("M"===a)return"new Map("+e(Array.from(v[c].entries()),d)+")";if("S"===a)return"new Set("+e(Array.from(h[c].values()),d)+")";if("A"===a)return"Array.prototype.slice.call("+e(Object.assign({length:_[c].length},_[c]),d)+")";if("U"===a)return"undefined";if("I"===a)return b[c];if("B"===a)return'BigInt("'+S[c]+'")';if("L"===a){var A=I[c].toString();if("string"!=typeof A)throw TypeError("URL.toString() must return a string");return"new URL("+e(A,d)+")"}var U=m[c],x=d,E=U.toString();if(r.test(E))throw TypeError("Serializing native function: "+U.name);if(x&&!0!==x.unsafe&&(E=function(e){var t,n=[];for(l.lastIndex=0;t=l.exec(e);)n.push([t.index,t.index+t[0].length]);var r=0;
1return(e=(e=e.replace(s,function(e,t){for(;r<n.length&&n[r][1]<=t;)r++;var i=n[r];return i&&t>=i[0]&&t<i[1]?e.replace(/</g,"\\u003C").replace(/\//g,"\\u002F").replace(/>/g,"\\u003E"):"< "+e.slice(1)})).replace(/\u2028/g,"\\u2028")).replace(/\u2029/g,"\\u2029")}(E)),i.test(E)||o.test(E))return E;var C=E.indexOf("("),P=E.substr(0,C).trim().split(" ").filter(function(e){return e.length>0});return P.filter(function(e){return -1===u.indexOf(e)}).length>0?(P.indexOf("async")>-1?"async ":"")+"function"+(P.join("").indexOf("*")>-1?"*":"")+E.substr(C):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.