PageSourceSearch

https://www.hellomagazine.com/_next/static/chunks/5441.f2da3a440e0ceb14.js

js hellomagazine.com collected 2026-09-24 08:31:25 UTC 4,456 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2876,5441],{2876:(e,t,l)=>{"use strict";l.r(t),l.d(t,{calculatePrice:()=>o,default:()=>r});var s=l(80263),u=l(98808),i=l(56505),n=l(55006),c=l(81889);let o=(e,t,l,s,u,i)=>{var n;let c=(null!=(n=null==e?void 0:e.price)?n:0)/100;if((null==l?void 0:l.discount_amount)&&(c-=l.discount_amount/100),!t)return c;if(null==t||t.forEach(e=>{e.itemPrices.forEach(e=>{let t=null==e?void 0:e.price;"number"==typeof t&&(c+=t/100)})}),i&&(null==s?void 0:s.length)){let e=i.toLowerCase();s.forEach(t=>{var l;let s=null==(l=t.attributes)?void 0:l.find(e=>"country"===e.name),i=null==s?void 0:s.value;if("string"==typeof i&&i&&i.split("_").map(e=>e.trim().toLowerCase()).filter(Boolean).includes(e)){let e=t.id;null==u||u.forEach(t=>{null==t||t.itemPrices.forEach(t=>{(null==t?void 0:t.price_variant_id)===e&&(c+=t.price/100)})})}})}return c},r=e=>{var t,l;let{data:{configuration:{planPriceId:r,discountText:a,couponId:d,registrationSource:B},itemPrice:v,attachedItemsPrices:I,attachedShippableItemsPrices:p,priceVariants:g,selectedCountry:m,coupon:P}}=e,{isDataReady:f,userManageData:C}=(0,i.A)(),y=async(e,t,l)=>await n.u.getCheckoutUrl(C,e,null!=t?t:"",null!=l?l:"",(0,c.SL)());return(0,s.jsx)(u.qU,{priceId:r,couponId:d,ctaText:a,regSource:null!=B?B:"",variation:"commercial",currency:null!=(t=null==v?void 0:v.currency_code)?t:"EUR",quantity:(null==v?void 0:v.quantity)||1,itemName:null!=(l=null==v?void 0:v.external_name)?l:"",value:o(v,null!=I?I:[],P,g,null!=p?p:[],m),isDataReady:f,getCheckoutUrl:y})}},16637:e=>{e.exports={theme:"theme",singleIssue:"siIs-116383a",singleIssueDate:"siIsDa-154571d",singleIssueContentBlock:"siIsCoBl-2385547",singleIssueCountrySelector:"siIsCoSe-275272f",singleIssueTextBlock:"siIsTeBl-2075cb5",singleIssueBlocktitle:"siIsBl-22003c5",singleIssuePurchaseBlock:"siIsPuBl-24816a0",singleIssuePrice:"siIsPr-1662c27",singleIssueCBProduct:"siIsCB-2033c37",cBProduct:"cBBP-902317",issue:"issue",cBProductTopContainer:"cBBPToCo-21403d6",cBProductTitleContainer:"cBBPTiCo-23470f1",cBProductContainerName:"cBBPCoNa-22184a7",cBProductPrice:"cBBPPr-14015ed",cBProductYouWillSave:"cBBPYoWiSa-2026fe1",priceActionButton:"prAcBu-1773cb1",paddDesk:"paDe-800cb9",singleIssueTitle:"siIsTi-167755e",singleIssueButton:"siIsBu-1799521",singleIssueImageBlock:"siIsImBl-21379eb",image:"image",countryDropdown:"coDr-1633881",singleIssueContainer:"siIsCo-2094d63",multiBlockTitle:"muBlTi-1560b7b",style2:"style2"}},35441:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>a});var s=l(80263),u=l(49070),i=l(53239),n=l(81889),c=l(55006),o=l(56505),r=l(2876);let a=e=>{var t,l,a,d,B,v,I,p,g,m;let{data:P}=e,{isDataReady:f,userManageData:C}=(0,o.A)(),[y,h]=(0,i.useState)(""),[k,S]=(0,i.useState)(!0),[b,T]=(0,i.useState)(!1),_=async(e,t,l)=>await c.u.getCheckoutUrl(C,e,null!=t?t:"",null!=l?l:"",(0,n.SL)());if((0,i.useEffect)(()=>{var e;let t=!0;return(0,n.rh)(null!=(e=P.countryCodes)?e:[]).then(e=>{let{country:l,showUnavailableMessage:s}=e;t&&(h(l),T(s))}).finally(()=>{t&&S(!1)}),()=>{t=!1}},[]),k)return(0,s.jsx)("div",{className:"text-gray-500",children:"Loading..."});let x={countries:(0,n.Ar)(null!=(m=P.countryCodes)?m:[]),onCountryChange:e=>{h(e),(0,n.u4)(e),T(!1)},value:y,showMessage:b},D=null==(l=P.cbProductsData)||null==(t=l[0])?void 0:t[0],N={price:P.issueButtonPrice?String((0,r.calculatePrice)(null==D?void 0:D.price,null==D?void 0:D.attachedItemsPrices,null==D?void 0:D.coupon,null==D?void 0:D.priceVariants,null==D?void 0:D.attachedShippableItemsPrices,y)):"0",currency:(null==D||null==(a=D.price)?void 0:a.currency_code)==="USD"?"$":"€"},E={ctaText:null==P||null==(d=P.issueButtonPrice)?void 0:d.ctaText,priceId:null==P||null==(B=P.issueButtonPrice)?void 0:B.priceId,isDataReady:f,getCheckoutUrl:_},w=(null==P||null==(g=P.cbProductsData)||null==(p=g[0])||null==(I=p[0])||null==(v=I.item)?void 0:v.cf_product_stock)<=0;return(0,s.jsx)(u.y,{countryOptions:x,issueDate:P.issueDate,issueName:P.issueName,issueImage:P.issueImage,issueText:P.issueText,issuePrice:N,issueButtonPrice:E,variation:P.variation,stock:w})}},49070:(e,t,l)=>{"use strict";l.d(t,{y:()=>v});var s=l(80263),u=l(1111);let i={};var n=l(66447),c=l(16637);let o={base:l.n(c)()},r=JSON.parse('{"outOfStock":"Out of stock"}');var a=l.t(r,2);let d=JSON.parse('{"outOfStock":"No hay stock"}'),B={"en-GB":a,"es-ES":l.t(d,2)},v=e=>{let{...t}=e;return(0,s.jsx)(u.A,{baseComponent:n.J,moduleStyles:o,i18n:B,config:i,...t})}}}]);

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.