PageSourceSearch

https://www.adorebeauty.com.au/_next/static/chunks/17ufexxrnat7a.js

js adorebeauty.com.au collected 2026-09-24 10:11:09 UTC 37,811 bytes, 321 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="ee00cfec-01b3-075a-50a1-b4519ff2e135")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,307968,e=>{"use strict";var t=e.i(968946);e.i(706365);var a=e.i(958139),r=e.i(573281),s=e.i(123191),i=e.i(313399),l=e.i(485699),n=e.i(715487);let c=e=>{let{data:a}=e,r=a?.brandName||a?.adoreBeautyBrand?.name;if(!r)return null;let s=a?.adoreBeautyBrand,i=a?.slug||s?.slug,c=!s?.url||s.url.startsWith("http")||s.url.startsWith("//")?void 0:s.url.startsWith("/")?s.url:`/b/${s.url}`,o=i?`/b/${i}.html`:c,d=(0,t.jsxs)("span",{className:"inline-flex flex-col items-center",children:[a?.logo?.url&&(0,t.jsx)(n.default,{src:a.logo.url,width:a.logo.width||128,height:a.logo.height||128,customClass:"mx-auto h-auto w-32 object-contain",alt:a.logo.title||r,loading:"lazy"}),(0,t.jsx)("span",{className:`mt-2 text-14 font-semibold ${o?"underline":""}`,children:r})]});return o?(0,t.jsx)(l.default,{prefetch:!1,href:o,children:d}):d},o=e=>{let{data:a}=e;if(!a?.name)return null;let r="inline-block rounded-full border border-black px-5 py-2 text-14 font-semibold",s=a.url?a.url.startsWith("http")||a.url.startsWith("//")?void 0:a.url.startsWith("/")?a.url:`/c/${a.url}`:void 0;return(0,t.jsx)("span",{className:"inline-flex flex-col items-center",children:s?(0,t.jsx)(l.default,{prefetch:!1,href:s,className:`${r} hover:bg-black hover:text-white`,children:a.name}):(0,t.jsx)("span",{className:r,children:a.name})})};var d=e.i(530494),m=e.i(996359),u=e.i(417938),p=e.i(400056),x=e.i(59623);let h=(e,t)=>{if(!t)return;let a=null!=t.big_commerce_product_id?e?.find(e=>e?.big_commerce_product_id===t.big_commerce_product_id):void 0;return a||(t.sku?.[0]!=null?e?.find(e=>e?.sku===t.sku?.[0]):void 0)},_=e=>{let a,{data:r,productManagedCopyProductDetailsData:s}=e,{locale:i}=(0,m.default)(),{priceCurrencyPrefix:c}=(0,u.usePriceCurrencyPrefix)(),o=i===m.Locale.EN_AU,_=r?.adoreBeautyProduct;if(!_)return null;let g=h(s,_),f=(0,p.formatImagesArray)(g?.images)?.[0]?.image?.url_relative,b=g?f:_?.product_image?(a=_.product_image).includes("https://s3-ap-southeast-2.amazonaws.com")?a.replace(/^https?:\/\/[^/]+\/[^/]+\/(.*)$/,"/$1"):a:void 0,y=!g||(o?g?.is_available_au:g?.is_available_nz),j=r?.title||_?.name,v=g?.metadata?.url_path||_?.url||"/",N=g?.reviews_aggregate?.aggregate?.avg?.rating_value?.toFixed(1),w=o?g?.product_final_price_au:g?.product_final_price_nz,C=(0,x.default)(i,g?.product_prices,!0),k=C&&Number(C)-Number(w)>0||!1;return(0,t.jsxs)("div",{className:"mx-auto mb-5 flex max-w-[375px] flex-col items-center text-center",children:[b&&(0,t.jsx)(n.default,{src:b,width:375,height:375,customClass:"max-w-full",alt:j||"adore beauty product image",loading:"lazy"}),(0,t.jsx)("div",{className:"mt-[10px] text-14 font-semibold",children:y?(0,t.jsx)(l.default,{prefetch:!1,className:"cursor-pointer underline",href:v,children:j}):(0,t.jsx)("span",{children:j})}),g&&y&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mt-[6px]",children:[(0,t.jsxs)("span",{className:"text-24 font-semibold",children:[c,(0,p.formatPrice)(w)]}
2),k&&(0,t.jsxs)("span",{className:"ml-2 text-24 line-through",children:[c,(0,p.formatPrice)(C)]})]}),N&&(0,t.jsxs)("div",{className:"mt-[10px] flex items-center justify-center",children:[(0,t.jsx)("div",{className:"w-[80px]",children:(0,t.jsx)(d.Rating,{iconsCount:5,size:16,readonly:!0,allowFraction:!0,fillColor:"#ffd700",initialValue:Number((2*N).toFixed())/2})}),(0,t.jsxs)("p",{className:"ml-3",children:[(0,t.jsx)("span",{className:"font-medium",children:N}),(0,t.jsx)("span",{className:"mx-1",children:"of"}),(0,t.jsx)(l.default,{prefetch:!1,className:"cursor-pointer underline",href:`${v}#reviews`,children:(0,t.jsxs)("span",{className:"underline",children:[g?.reviews_aggregate?.aggregate?.count," reviews"]})})]})]})]})]})};var g=e.i(520111);e.i(832822);var f=e.i(155479),b=e.i(107009);let y=e=>{let{button:a,className:r}=e,{setModalType:s,showModal:i}=(0,f.useModal)(),{setOptionSelected:n}=(0,g.useAuth)(),c=(a?.categoryBrandProductLink?.adoreBeautyProduct?.url||a?.url||"/").match(/(www|staging|preprod)\.adorebeauty\.com\.(au|nz)(.*)/),o=()=>c&&c.length>3&&"/customer/account/myrewards"===c[3];return(0,t.jsx)("div",{className:`${r} pt-3 sm:pt-6`,children:o()?(0,t.jsx)("button",{onClick:e=>{o()&&(e.preventDefault(),n("signIn"),s(b.ModalType.SIDE_BAG),i(!0))},children:(0,t.jsx)("div",{className:"border border-black px-5 py-[14.5px] leading-4 hover:bg-black hover:text-white",style:{backgroundColor:a?.buttonColour},children:(0,t.jsx)("span",{className:"text-center text-14 font-medium uppercase tracking-[1px]",style:{color:a?.textColour},children:a?.buttonCopy})})}):(0,t.jsx)(l.default,{prefetch:!1,href:(e=>{let t=e.match(/(www|staging|preprod)\.adorebeauty\.com\.(au|nz)(.*)/);if(t){let e=t[1],a=t[2],r=t[3];return r.includes("/p/")?`https://${e}.adorebeauty.com.${a}/p/${r.split("/p/")[1]}`:r.includes("/c/")?`https://${e}.adorebeauty.com.${a}/c/${r.split("/c/")[1]}`:`https://${e}.adorebeauty.com.${a}${r}`}return e})(a?.categoryBrandProductLink?.adoreBeautyProduct?.url||a?.url||"/"),children:(0,t.jsx)("div",{className:"border border-black px-5 py-[14.5px] leading-4 hover:bg-black hover:text-white",style:{backgroundColor:a?.buttonColour},children:(0,t.jsx)("span",{className:"text-center text-14 font-medium uppercase tracking-[1px]",style:{color:a?.textColour},children:a?.buttonCopy})})})})},j=e=>{let{data:a}=e,r=!a?.hideTitle&&!!a?.title;return r||a?.content?(0,t.jsxs)("div",{className:"mx-auto mb-5 max-w-[640px] rounded border border-[#ebebeb] p-5 text-left",children:[r&&(0,t.jsx)("h3",{className:"mb-3 text-[19px] font-medium leading-8",children:a.title}),a.content&&(0,t.jsx)("div",{className:"text-14",children:(0,i.default)(a.content)})]}):null};var v=e.i(973653),N=e.i(567167),w=e.i(533337);let C=e=>{let{cardData:a}=e,{backgroundColour:r,image:s,title:i,ctaButton:c,content:o}=a;return(0,t.jsxs)("div",{className:"relative mb-4 min-h-full w-full max-w-[236px] pb-28",style:{backgroundColor:r},children:[s?.url&&(0,t.jsx)(n.default,{src:s?.url,width:236,height:346,alt:i||"adore beauty author image"}),i&&(0,t.jsx)("div",{className:"px-5 pb-5 pt-7",children:(0,t.jsx)("h4",{className:"flex items-center justify-center text-[19px] font-semibold leading-6",children:i})}),o&&(0,t.jsx)("div",{className:"px-4 text-center",children:(0,t.jsx)("p",{className:"text-16 leading-6",dangerouslySetInnerHTML:{__html:o}})}),c&&(0,t.jsx)("div",{className:"absolute bottom-7 left-1/2 w-full max-w-[80%] -translate-x-1/2",children:(0,t.jsx)(l.default,{href:c?.url||"/",prefetch:!1,children:(0,t.jsx)("button",{className:"border border-black px-5 py-3 uppercase leading-5 tracking-[1px] hover:!bg-black hover:text-white",style:{backgroundColor:`${c?.buttonColour||"transparent"}`},"aria-label":`${c?.buttonCopy||"button"}`,children:c?.buttonCopy||"button"})})})]})};var k=e.i(187844);let P=e=>{let{cardData:s}=e,{image:c,title:o,imageCopy:d}=s,m=d?.json,u={renderNode:{[r.INLINES.HYPERLINK]:(e,a)=>(0,t.jsx)(l.default,{prefetch:!1,className:"underline",href:e?.data?.uri||"/",children:a}),[a.BLOCKS.PARAGRAPH]:(e,a)=>{let r=Array.isArray(a)?a:[a];return(0,t.jsx)("p",{className:"mb-[10px] text-left",children:r.map(e=>"string"==typeof e?(0,i.default)(e):e)})},[a.BLOCKS.HEADING_1]:(e,a)=>{let r=Array.isArray(a)?a:[a];return(0,t.jsx)("h1",{className:"mx-auto mb-[10px] text-[28px] font-medium leading-8 sm:text-[30px]",children:r.map(e=>"string"==typeof e?(0,i.default)(e):e)})},[a.BLOCKS.HEADING_2]:(e,a)=>{let r=Array.isArray(a)?a:[a];return(0,t.jsx)("h2",{className:"mx-auto mb-[10px] text-26 font-medium leading-8 sm:text-[28px]",children:r.map(e=>"string"==typeof e?(0,i.default)(e):e)})},[a.BLOCKS.HEADING_3]:(e,a)=>{let r=Array.isArray(a)?a:[a];return(0,t.jsx)("h3",{className:"mx-auto mb-[10px] text-[19px] font-medium leading-8",children:r.map(e=>"string"==typeof e?(0,i.default)(e):e)})},[a.BLOCKS.HEADING_4]:(e,a)=>{let r=Array.isArray(a)?a:[a];return(0,t.jsx)("h4",{className:"mx-auto mb-[10px] text-[19px] font-medium leading-8",children:r.map(e=>"string"==typeof e?(0,i.default)(e):e)})}}};
2return(0,t.jsxs)("div",{className:"mt-4 w-full max-w-[365px]",children:[(0,t.jsx)("h3",{className:"mb-4 text-left text-23 font-medium leading-[24px]",children:o}),(0,t.jsx)(n.default,{src:c?.url??"",width:365,height:365,alt:o||"adore beauty author image"}),(0,t.jsx)("div",{className:"mt-5",children:m&&(0,k.documentToReactComponents)(m,u)})]})},I=(0,N.default)(()=>e.A(929382),{loadableGenerated:{modules:[257525]},loading:({error:e})=>((0,w.useEffect)(()=>{e&&v.captureException(e)},[e]),null)}),B=e=>{let{data:a}=e,r=a?.cardsCollection?.items;return(0,t.jsx)("section",{children:(0,t.jsxs)("div",{className:"flex flex-wrap items-stretch justify-center sm:justify-between",children:[a?.cardStyle==="imageCardVertical"&&r?.map((e,a)=>(0,t.jsx)(C,{cardData:e},a)),a?.cardStyle==="imageCopy"&&r?.map((e,a)=>(0,t.jsx)(P,{cardData:e},a)),a?.cardStyle==="benefitComparison"&&(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"flex flex-col sm:flex-row",children:r?.map((e,a)=>(0,t.jsx)(I,{location:a+1,data:e,length:r?.length},a))}),(0,t.jsx)(y,{button:a?.ctaButton,className:"w-52"})]})]})})},A=e=>{let{review:a}=e,r=a?.reviewText??"",[s,i]=(0,w.useState)(r.length>350),[l,n]=(0,w.useState)(s?r.slice(0,350):r);return(0,t.jsx)("div",{children:(0,t.jsxs)("article",{className:"pb-14 pt-10 sm:pl-8",children:[(0,t.jsx)("h4",{className:"mb-3 text-start text-16",children:a?.reviewTitle}),(0,t.jsxs)("div",{className:"mb-3 flex items-center justify-start",children:[(0,t.jsx)(d.Rating,{iconsCount:a?.starRating??0,size:16,readonly:!0,allowFraction:!0,fillColor:"#ffd700",initialValue:Number(((a?.starRating??0)*2).toFixed())/2}),(0,t.jsx)("div",{className:"mx-2",children:a?.reviewPerson?.name})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"border-l pl-5 text-start",children:[l,s&&"..."]}),(0,t.jsx)("div",{className:"mt-1 flex cursor-pointer justify-start py-2 font-medium underline",onClick:()=>{s?n(r):n(r.slice(0,350)),i(!s)},children:s?"Read More":"Read Less"})]})]})})};var S=e.i(565405),E=e.i(726333),L=e.i(781292),D=e.i(386279),$=e.i(506491);let R=e=>{let{data:s}=e,{locale:i}=(0,m.default)(),c=i===m.Locale.EN_AU,[o,d]=(0,w.useState)(""),[u,p]=(0,w.useState)(!1),[x,h]=(0,w.useState)(!1),_=s?.offerDescription?.json,g=s?.ctaPopup?.underCtaContent?.json,f={renderNode:{[a.BLOCKS.HEADING_1]:(e,a)=>(0,t.jsx)("h1",{style:{backgroundColor:s?.descriptionTextBackground},className:"mb-[5px] break-words px-2 text-26 uppercase leading-9 tracking-[3px] sm:text-[32px]",children:a})}},b={renderNode:{[r.INLINES.HYPERLINK]:(e,a)=>(0,t.jsx)(l.default,{prefetch:!1,className:"underline",href:e?.data?.url||"/",children:a}),[a.BLOCKS.HEADING_1]:(e,a)=>(0,t.jsx)("h1",{style:{backgroundColor:s?.descriptionTextBackground},className:"mb-[5px] break-words px-2 text-26 uppercase leading-9 tracking-[3px] sm:text-[32px]",children:a}),[a.BLOCKS.PARAGRAPH]:(e,a)=>(0,t.jsx)("p",{className:"text-center",children:a})}},y=(0,w.useCallback)(e=>{d(e.target.value),(0,D.default)(e.target.value)&&p(!1)},[]);return(0,t.jsxs)("div",{className:"relative min-h-[520px]",children:[(0,t.jsx)(E.default,{children:(0,t.jsx)("div",{className:"absolute inset-0",children:(0,t.jsx)(n.default,{src:s?.desktopImage?.url??"",width:750,height:625,customClass:"max-w-full",alt:"adore beauty article image",priority:!0})})}),(0,t.jsxs)("div",{className:"relative z-10 max-w-[380px] pl-5 pt-5",children:[(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)(n.default,{src:s?.logoImage?.url??"",width:333,height:90,customClass:"max-w-full",alt:"adore beauty article image",priority:!0})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)("div",{className:"relative flex w-full flex-col items-center justify-center",children:[_&&(0,k.documentToReactComponents)(_,f),(0,t.jsx)("input",{type:"email",placeholder:"Your email",onChange:y,onBlur:()=>(0,D.default)(o)?p(!1):p(!0),className:"mt-3 h-[50px] w-[300px] border border-black bg-white/80 px-4 text-14 leading-[14px]"}),u&&(0,t.jsx)(S.default,{className:"mt-1 w-4/5 whitespace-nowrap",errorMessage:"Please enter vaild email"}),(0,t.jsx)("button",{className:"mt-3 border border-black px-5 py-2 text-14 uppercase hover:bg-black hover:text-white",onClick:()=>
2{if(!(0,D.default)(o))return p(!0);try{let e=`${c?"https://www.adorebeauty.com.au/":"https://www.adorebeauty.co.nz/"}api/emarsysContact?email=${encodeURIComponent(o)}&listName=${s?.sourceId}&locale=${c?"en-AU":"en-NZ"}`;$.vapourApi.requestGet(e).then(()=>{})}catch(e){console.warn(`error--handleEmailSubmit--${e}`)}return h(!0)},children:"Email Me My Code"}),(0,t.jsx)("p",{className:"mt-5 max-w-[314px] pb-5 text-12 leading-4",children:s?.termsAndConditions})]})})]}),(0,t.jsx)(L.default,{customClass:"absolute w-full h-full top-0 left-0 z-[1000000]",isOpen:x,handleClose:()=>h(!1),children:(0,t.jsx)("div",{className:"bg-white",children:(0,t.jsxs)("div",{style:{backgroundColor:s?.descriptionTextBackground},className:"mx-2 flex min-h-[380px] max-w-[600px] flex-col items-center justify-center px-5",children:[(0,t.jsx)("div",{style:{color:s?.ctaPopup?.textColour},className:"mb-14 text-center text-[28px] uppercase leading-8",children:s?.ctaPopup?.title}),(0,t.jsx)("div",{children:s?.ctaPopup?.ctaButtonsCollection?.items?.map((e,a)=>(0,t.jsx)("button",{className:"border border-black bg-white px-5 py-3 text-14 uppercase leading-4 tracking-[1px] hover:bg-black hover:text-white",children:(0,t.jsx)(l.default,{prefetch:!1,className:"",href:e?.url||"/",children:e?.buttonCopy})},a))}),(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"mt-3 break-words px-5 text-center text-12 leading-[22px]",children:g&&(0,k.documentToReactComponents)(g,b)})})]})})})]})};var T=e.i(532430);let K=e=>{let{content:a}=e,r=(0,T.useRouter)(),s=()=>{window.instgrm&&window.instgrm.Embeds.process()};return(0,w.useEffect)(()=>{if(window.instgrm)s();else{let e=document.createElement("script");e.async=!0,e.src="//www.instagram.com/embed.js",e.onload=s,document.body.appendChild(e)}},[a]),(0,w.useEffect)(()=>{let e=()=>{s()};return r.events.on("routeChangeComplete",e),()=>{r.events.off("routeChangeComplete",e)}},[r]),(0,t.jsx)("div",{className:"flex w-[90%] items-center justify-center",children:a&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:a.externalEmbed??""}})})};var M=e.i(453912);let O=e=>{let{data:s,productManagedCopyProductDetailsData:i}=e,c=s?.imageCopy?.json,o={renderNode:{[a.BLOCKS.PARAGRAPH]:(e,a)=>(0,t.jsx)("div",{children:a}),[r.INLINES.EMBEDDED_ENTRY]:e=>{let a,r=(a=e?.data?.target?.sys?.id,s?.imageCopy?.links?.entries?.inline?.find(e=>e?.sys?.id===a)),c=h(i,r?.adoreBeautyProduct),o=(0,p.formatImagesArray)(c?.images)?.[0]?.image?.url_relative;return(0,t.jsxs)("div",{className:"relative inline",onMouseEnter:e=>{let t=e?.currentTarget.querySelector("div");t&&t.classList.remove("hidden")},onMouseLeave:e=>{let t=e?.currentTarget.querySelector("div");t&&t.classList.add("hidden")},children:[(0,t.jsx)("span",{className:"",children:(0,t.jsx)(l.default,{prefetch:!1,className:"underline",href:r?.adoreBeautyProduct?.url||"/",children:r?.title})}),o&&(0,t.jsx)("div",{className:"absolute inset-x-0 top-0 hidden -translate-y-full translate-x-1/3",children:(0,t.jsxs)("div",{className:"relative flex size-[100px] items-center justify-center border-2 bg-white shadow-sm",children:[(0,t.jsx)(n.default,{src:o,width:80,height:80,alt:r?.title||"adore beauty product image"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-1/2 size-3 -translate-x-1/2 translate-y-1/2 rotate-45 border-b-2 border-r-2 bg-white"})]})})]})}}};return(0,t.jsxs)("div",{className:`flex w-full ${s?.imagePosition==="ImageLeft"?"flex-col sm:flex-row":"flex-col sm:flex-row-reverse"}`,children:[(0,t.jsx)(M.default,{children:(0,t.jsx)("div",{className:"mb-4 text-start text-18 font-medium leading-6",children:s?.title})}),(0,t.jsx)("div",{className:"mb-4 min-w-[365px] flex-1 pr-5",children:(0,t.jsx)(n.default,{src:s?.image?.url??"",width:365,height:365,customClass:"max-w-full",alt:"adore beauty article image",priority:!0})}),(0,t.jsxs)("div",{className:"flex-1 text-start",children:[(0,t.jsx)(E.default,{children:(0,t.jsx)("div",{className:"mb-4 text-23 font-medium leading-6",children:s?.title})}),(0,t.jsx)("div",{children:c&&(0,k.documentToReactComponents)(c,o)})]})]})};var z=e.i(941039),q=e.i(691434),H=e.i(146528);let G=`
3fragment CartProductDataFragment on products {
4  id
5  big_commerce_product_id
6  magento_product_id
7  name
8  description
9  short_description
10  metadata {
11    url_path
12    __typename
13  }
14  shipping_group
15  top_level_category: categories(
16    where: {category: {path_tree: {_matches: "au.default.*{1}"}}}
17    order_by: {category: {comestri_parent_id: asc, sort_order: asc}}
18    limit: 1
19  ) {
20    category {
21      id
22      name
23      magento_category_id
24      comestri_category_id
25      __typename
26    }
27    __typename
28  }
29  brand_category: categories(
30    where: {category: {is_brand_category: {_eq: true}}}
31    limit: 1
32  ) {
33    category {
34      comestri_category_id
35      magento_category_id
36      name_raw
37      name
38      metadata {
39        url_path
40        __typename
41      }
42      __typename
43    }
44    __typename
45  }
46  has_variation_inventory_available_au
47  has_variation_inventory_available_nz
48  is_subscription_eligible
49  product_subscription {
50    subscription_default
51    subscription_types
52    __typename
53  }
54  __typename
55}
56
57fragment productFields on products {
58  id
59  big_commerce_product_id
60  magento_product_id
61  comestri_product_id
62  display_type
63  sku
64  is_luxury
65  name_raw
66  qdos_stock_status
67  barcode
68  brands {
69    brand {
70      name
71      __typename
72    }
73    __typename
74  }
75  valued_at_aud
76  valued_at_nzd
77  product_final_price_au
78  product_final_price_nz
79  __typename
80}
81
82fragment productMetadata on products {
83  metadata {
84    url_path
85    comestri_url_key
86    __typename
87  }
88  __typename
89}
90
91fragment productVariations on products {
92  variations {
93    magento_product_id
94    comestri_product_id
95    comestri_parent_id
96    big_commerce_product_id
97    qdos_stock_status
98    sku
99    name
100    visibility
101    images {
102      image {
103        url_relative
104        __typename
105      }
106      __typename
107    }
108    product_prices {
109      amount
110      price_book
111      __typename
112    }
113    qdos_stock_status
114    inventories {
115      stock_availability
116      inventory_source
117      quantity
118      is_available
119      __typename
120    }
121    __typename
122  }
123  __typename
124}
125
126fragment productVariantPrices on products {
127  variation_prices_min_au {
128    amount
129    price_book
130    __typename
131  }
132  variation_prices_max_au {
133    amount
134    price_book
135    __typename
136  }
137  variation_prices_min_nz {
138    amount
139    price_book
140    __typename
141  }
142  variation_prices_max_nz {
143    amount
144    price_book
145    __typename
146  }
147  __typename
148}
149
150fragment productPrices on products {
151  product_prices {
152    amount
153    price_book
154    __typename
155  }
156  __typename
157}
158
159fragment productImage on products {
160  images(where: {image: {is_primary: {_eq: true}}}) {
161    image {
162      url_relative
163      __typename
164    }
165    __typename
166  }
167  __typename
168}
169
170fragment productGalleryImages on products {
171  images(where: {image: {url_relative: {_nregex: "embed"}}}, limit: 20) {
172    image {
173      tags
174      __typename
175    }
176    __typename
177  }
178  __typename
179}
180
181fragment productInventories on products {
182  has_variation_inventory_available_au
183  has_variation_inventory_available_nz
184  inventories {
185    is_available
186    quantity
187    stock_availability
188    inventory_source
189    __typename
190  }
191  __typename
192}
193
194fragment productTopLevelCategory on products {
195  categories(
196    where: {category: {path_tree: {_matches: "au.default.*{1}"}}}
197    order_by: {category: {comestri_parent_id: asc, sort_order: asc}}
198    limit: 1
199  ) {
200    category {
201      id
202      name
203      magento_category_id
204      comestri_category_id
205      __typename
206    }
207    __typename
208  }
209  __typename
210}
211
212fragment productBrandCategory on products {
213  brandCategory: categories(
214    where: {category: {is_brand_category: {_eq: true}}}
215    limit: 1
216  ) {
217    category {
218      name_raw
219      identifier
220      images(where: {image: {tags: {_has_keys_any: ["brand_logo"]}}}) {
221        image {
222          url_relative
223          __typename
224        }
225        __typename
226      }
227      __typename
228    }
229    __typename
230  }
231  __typename
232}
233
234fragment productFacets on products {
235  product_facets(
236    where: {facet_group_option: {facet_group: {name: {_eq: "Choices"}}}}
237  ) {
238    facet_group_option {
239      name
240      __typename
241    }
242    __typename
243  }
244  __typename
245}
246
247fragment productReviewTotals on products {
248  recommendation_total: reviews_aggregate(
249    where: {recommend: {_in: ["definitely_yes", "likely"]}}
250  ) {
251    aggregate {
252      count
253      __typename
254    }
255    __typename
256  }
257  reviews_aggregate {
258    aggregate {
259      count
260      avg {
261        rating_value
262        __typename
263      }
264      __typename
265    }
266    __typename
267  }
268  __typename
269}
270
271fragment productSubscriptionFields on products {
272  is_subscription_eligible
273  product_subscription {
274    subscription_default
275    subscription_types
276    __typename
277  }
278  __typename
279}
280
281query web_CategoryProductsDefaultQuery($conditions: product_facet_search_mview_bool_exp!, $order_by: [product_facet_search_mview_order_by!], $limit: Int, $offset: Int, $distinct_on: [product_facet_search_mview_select_column!]) {
282  product_facet_search_mview(
283    where: $conditions
284    limit: $limit
285    order_by: $order_by
286    distinct_on: $distinct_on
287    offset: $offset
288  ) {
289    product {
290      ...productFields
291      ...productMetadata
292      ...productInventories
293      ...productVariations
294      ...productImage
295      ...productBrandCategory
296      ...productReviewTotals
297      ...productVariantPrices
298      ...productPrices
299      ...productSubscriptionFields
300      ...CartProductDataFragment
301      __typename
302    }
303    __typename
304  }
305  product_facet_search_mview_aggregate(
306    where: $conditions
307    order_by: $order_by
308    distinct_on: $distinct_on
309  ) {
310    aggregate {
311      count
312      __typename
313    }
314    __typename
315  }
316}
317`,F=e=>{let{data:a}=e,r=(e=>{let t=(0,H.default)(),[a,r]=(0,w.useState)([]);return(0,w.useEffect)(()=>{t.query({query:q.gql`
318          ${G}
319        `,variables:{conditions:{product:{is_searchable:{_eq:!0},catalogues:{catalogue:{locale:{_eq:"en-AU"}}},product_prices:{price_book:{_contains:{name:"AUD List Price"}}}},category_name:{_eq:e}},order_by:[{product_by_best_sellers_year:"desc_nulls_last"}
319,{product_id:"desc_nulls_last"}],distinct_on:["product_id","product_by_best_sellers_year"],limit:8}}).then(e=>{r(e?.data.product_facet_search_mview.map(e=>e.product))}).catch(e=>{console.log("error fetching",e)})},[]),a})(a?.selectedCategoriesBrandsCollection?.items?.[0]?.name||"");return(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-5 text-center text-24",children:a?.title}),(0,t.jsx)("div",{className:"-mx-6 grid grid-cols-2 gap-0 sm:mx-auto sm:grid-cols-3 sm:gap-3 md:grid-cols-4",children:r?.map((e,a)=>(0,t.jsx)(z.default,{product:e,position:a+1,id:`category-product-card-${a}`},`category-product-card-${a}`))})]})};var U=e.i(334551);let V=e=>{let{data:a}=e,[r,s]=(0,w.useState)("");return(0,t.jsx)("div",{className:"pt-10",children:a&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"pb-12 text-26",children:a?.title}),(0,t.jsxs)("div",{className:"text-14",children:[(0,t.jsx)("header",{className:"flex border-b-2",children:a?.tabsCollection?.items?.map((e,a)=>(0,t.jsxs)("h3",{className:"relative pb-3 text-start text-14 font-semibold",onClick:()=>{var t;(t=e?.title)&&s(t)},children:[(0,t.jsx)("span",{className:"mx-10 cursor-pointer",children:e?.title}),""===r&&0===a&&(0,t.jsx)("div",{className:"absolute bottom-0 left-0 w-full translate-y-full border-b-[3px] border-black"}),r===e?.title&&(0,t.jsx)("div",{className:"absolute bottom-0 left-0 w-full translate-y-full border-b-[3px] border-black"})]},a))}),a?.tabsCollection?.items?.map((e,a)=>(0,t.jsxs)("div",{className:"mt-4",children:[""===r&&0===a&&(0,t.jsx)("div",{children:e?.cardsCollection?.items?.map((e,a)=>(0,t.jsx)("div",{className:"",children:(0,t.jsx)(U.default,{buttonClassName:"py-4 shadow-sm border-b text-16 flex items-center justify-between w-full",buttonTitle:e?.title||"",contentClassName:"my-7",content:e?.content||"",crossColor:"dark"})},a))}),r===e.title&&(0,t.jsx)("div",{children:e?.cardsCollection?.items?.map((e,a)=>(0,t.jsx)("div",{className:"",children:(0,t.jsx)(U.default,{buttonClassName:"py-4 shadow-sm border-b text-16 flex items-center justify-between w-full",buttonTitle:e?.title||"",contentClassName:"my-7",content:e?.content||"",crossColor:"dark"})},a))})]},a))]})]})})},W=e=>{let{data:a,productManagedCopyProductDetailsData:r}=e,{locale:s}=(0,m.default)(),{priceCurrencyPrefix:i}=(0,u.usePriceCurrencyPrefix)(),c=s===m.Locale.EN_AU,o=h(r,a?.product?.adoreBeautyProduct),_=(0,p.formatImagesArray)(o?.images)?.[0]?.image?.url_relative;if(!o||!_)return null;let g=c?o?.is_available_au:o?.is_available_nz,f=o?.reviews_aggregate?.aggregate?.avg?.rating_value?.toFixed(1),b=c?o?.product_final_price_au:o?.product_final_price_nz,y=(0,x.default)(s,o?.product_prices,!0),j=y&&Number(y)-Number(b)>0||!1;return(0,t.jsxs)("div",{className:`flex flex-col-reverse items-center justify-center sm:flex-row ${a?.productPosition==="ProductRight"?"":"sm:flex-row-reverse"}`,children:[(0,t.jsxs)("div",{className:"text-start sm:max-w-[50%] sm:pl-[35px]",children:[(0,t.jsxs)("div",{className:"mb-[10px] pb-[10px] text-26 leading-8",children:[g?(0,t.jsx)(l.default,{prefetch:!1,className:"",href:a?.product?.adoreBeautyProduct?.url||"/beautyiq",children:a?.title}):(0,t.jsx)("span",{children:a?.title}),(0,t.jsx)("div",{className:"mt-[10px] w-1/5 border-b-2 border-black sm:w-[10%]"})]}),g&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-[10px] text-14 font-semibold",children:(0,t.jsx)(l.default,{prefetch:!1,className:"cursor-pointer underline",href:o?.metadata?.url_path||"/beautyiq",children:o?.name})}),(0,t.jsxs)("div",{className:"",children:[(0,t.jsxs)("span",{className:"text-24 font-semibold",children:[i,(0,p.formatPrice)(b)]}),j&&(0,t.jsxs)("span",{className:"ml-2 text-24 line-through",children:[i,(0,p.formatPrice)(y)]})]}),f&&(0,t.jsxs)("div",{className:"mt-[10px] flex items-center",children:[(0,t.jsx)("div",{className:"w-[80px]",children:(0,t.jsx)(d.Rating,{iconsCount:5,size:16,readonly:!0,allowFraction:!0,fillColor:"#ffd700",initialValue:Number((2*f).toFixed())/2})}),(0,t.jsxs)("p",{className:"ml-3",children:[(0,t.jsx)("span",{className:"font-medium",children:f}),(0,t.jsx)("span",{className:"mx-1",children:"of"}),(0,t.jsx)(l.default,{prefetch:!1,className:"cursor-pointer underline",href:o?.metadata?.url_path?`${o.metadata.url_path}#reviews`:"/beautyiq",children:(0,t.jsxs)("span",{className:"underline",children:[o?.reviews_aggregate?.aggregate?.count," reviews"]})})]})]})]}
319),(0,t.jsx)("div",{className:"pt-[10px]",children:a?.productCopy})]}),(0,t.jsx)("div",{children:(0,t.jsx)(n.default,{src:_,width:375,height:375,customClass:"max-w-full",alt:"adore beauty article image",priority:!0})})]})};var Y=e.i(54265),Q=e.i(127712),X=e.i(830260),Z=e.i(367916),J=e.i(159809),ee=e.i(311823),et=e.i(428262),ea=e.i(823623),er=e.i(766370),es=e.i(174359),ei=e.i(355413),el=e.i(302533);let en=({locale:e,product:a,handleClick:r,isAvailable:s,isChecked:i})=>{let{setModalType:c,setComestriProductId:o,showModal:d}=(0,f.useModal)(),{minPrice:m=0,maxPrice:u,isMinPriceOnSale:p,isMaxPriceOnSale:x,roundup:h,oldPrice:_}=(0,ee.default)(a,e);return(0,t.jsxs)("div",{className:"mb-4 flex cursor-pointer items-center justify-start",children:[s&&!a.has_variation_inventory&&(0,t.jsx)("div",{"data-testid":"ROUTINE_CHECKBOX",className:"mr-4 block size-4 max-h-[16px] min-h-[16px] min-w-[16px] max-w-[16px]",onClick:e=>{e.stopPropagation(),e.preventDefault(),s&&r(a)},children:(0,t.jsx)(Q.default,{isChecked:i})}),s&&a.has_variation_inventory&&a?.metadata?.url_path&&(0,t.jsx)(l.default,{href:(0,ea.default)(a.metadata.url_path,"RichContentRoutine"),onClick:e=>e.stopPropagation(),className:"mr-4 shrink-0 whitespace-nowrap text-12 font-bold uppercase tracking-[0.5px] underline",children:"View Product"}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-start",children:[(0,t.jsxs)("span",{className:"relative mr-2 text-14 leading-6 tracking-[0.1px] underline",onMouseEnter:e=>{let t=e?.currentTarget.querySelector("div");t&&t.classList.remove("hidden")},onMouseLeave:e=>{let t=e?.currentTarget.querySelector("div");t&&t.classList.add("hidden")},children:[(0,t.jsx)("span",{onClick:()=>{o(a.comestri_product_id),c(b.ModalType.PRODUCT_QUICK_VIEW),d(!0)},children:a?.name}),(0,t.jsx)("div",{className:"absolute inset-x-0 top-0 hidden -translate-y-full translate-x-1/3",children:(0,t.jsxs)("div",{className:"relative flex size-[100px] items-center justify-center border-2 bg-white shadow-sm",children:[(0,t.jsx)(n.default,{src:a?.images?.[0]?.image?.url_relative||"",width:80,height:80,alt:a?.name||"adore beauty product image"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-1/2 size-3 -translate-x-1/2 translate-y-1/2 rotate-45 border-b-2 border-r-2 bg-white"})]})})]}),(0,t.jsx)("div",{onClick:e=>{e.stopPropagation(),e.preventDefault(),s&&r(a)},children:(0,t.jsxs)("div",{className:"flex w-full flex-row items-center gap-x-2",children:[(0,t.jsxs)("h2",{className:"flex flex-row gap-x-1 self-start text-base font-bold",children:[(0,t.jsx)(Y.default,{price:m,onSale:p,roundup:h}),!!u&&(0,t.jsx)(Y.default,{price:u,roundup:h,onSale:x,prefix:"- "})]}),!!_&&(0,t.jsx)("span",{className:"pt-px font-jost text-sm leading-[15px] text-[#404040] line-through",children:(0,t.jsx)(Y.default,{price:_})})]})})]})]})},ec=e=>{let{data:a,articleRoutineData:r}=e,[s,i]=(0,w.useState)([]),[l,n]=(0,w.useState)([]),{isPending:c,addToCart:o}=(0,J.useAddToCartButton)(),{locale:d}=(0,m.default)(),{secureSearchClient:u}=(0,et.useSecuredAlgolia)(),h=(0,w.useCallback)(e=>r.find(t=>t.sysId===e),[r]),_=e=>{let t=e?.big_commerce_product_id;s?.find(e=>e.productBigcommerceId===t)?i(s?.filter(e=>e?.productBigcommerceId!==t)):i([...s,{productBigcommerceId:t,product:e}])},g=(0,w.useCallback)(async()=>{if(u)try{let e=h(a?.sys?.id||"")?.productData;if(!e||0===e.length)return;let t=await (0,es.searchSingleIndex)(u,es.categoryIndex,"",{facets:["*"],filters:e?.map(e=>`sku:${e.sku}`).join(" OR "),attributesToRetrieve:Z.algoliaProductFieldsToExtract,maxValuesPerFacet:1e5}),r=(0,er.transformItems)(t.hits);n(r)}catch(e){console.error(e)}},[u,a?.sys?.id,h]);return(0,w.useEffect)(()=>{g()},[g]),(0,t.jsx)("div",{children:l.length>0&&(0,t.jsxs)("div",{className:"flex flex-col flex-wrap items-start justify-center",children:[(0,t.jsx)("h3",{className:"mb-3 text-start text-24 leading-8",children:h(a?.sys?.id||"")?.title}),l?.map((e,a)=>{let r;return(0,t.jsx)(en,{product:e,locale:d,handleClick:_,isAvailable:e.is_active,isChecked:(r=e.big_commerce_product_id,!!s?.find(e=>e.productBigcommerceId===r))},a)}),(0,t.jsxs)("div",{className:`mt-4 flex items-center border border-black px-5 py-[14.5px] text-14 uppercase leading-4 tracking-[1px] ${(s?.length||0)>0?"cursor-pointer hover:bg-black hover:text-white":"cursor-not-allowed opacity-20 hover:bg-white hover:text-black"} ${c&&"cursor-not-allowed opacity-20 hover:bg-white hover:text-black"}`,onClick:e=>{if(e.stopPropagation(),e.preventDefault(),s.length>0){let e=s[s.length-1];o({source:"article",products:s,lastAddedProductData:{product:{name:(0,el.getInPath)(e,"product.name"),imageUrl:(0,p.getPrimaryImg)((0,el.getInPath)(e,"product.images"))?.url_relative,price:(0,x.default)(d,(0,el.getInPath)(e,"product.product_prices")),productUrl:(0,el.getInPath)(e,"product.metadata.url_path")},quantity:1}}
319),s.forEach(e=>(0,ei.writeCartItemDataToStorage)(e.product))}},children:[(0,t.jsx)(X.default,{iconName:"expand",width:14,height:14,customClass:"mr-[12px]"}),(0,t.jsx)("span",{children:c?"adding":"add to bag"})]})]})})},eo=e=>{let{data:a}=e;return(0,t.jsx)("div",{className:"flex w-full items-center justify-center",children:a&&(a.url?(0,t.jsx)(l.default,{prefetch:!1,href:a.url,children:(0,t.jsx)(n.default,{src:a?.media?.url??"",width:750,height:300,alt:a?.title||"adore beauty shoppable image"})}):(0,t.jsx)(n.default,{src:a?.media?.url??"",width:750,height:300,alt:a?.title||"adore beauty shoppable image"}))})};function ed(e,t){return t?.find(t=>t?.sys?.id===e)}let em=e=>"string"==typeof e?(0,i.default)(e.replace("</br>","").replace(/(\r\n|\n|\r)/gm,"").replace(/>\s+</g,"><")):Array.isArray(e)?e.map(e=>em(e)):e;e.s(["default",0,({articlePost:e,articleRoutineData:i,productManagedCopyProductDetailsData:d})=>{let m=e?.links?.assets?.block,u=e?.links?.entries?.inline,p=e?.links?.entries?.block;return{preserveWhitespace:!0,renderNode:{[r.INLINES.HYPERLINK]:(e,a)=>(0,t.jsx)(l.default,{prefetch:!1,className:"mx-auto underline",href:e?.data?.uri||"/",children:a}),[r.INLINES.EMBEDDED_ENTRY]:e=>{let a=ed(e?.data?.target?.sys?.id||"",u);return(0,t.jsx)("span",{className:"mx-auto",children:a?.adoreBeautyProduct?.url?(0,t.jsx)(l.default,{prefetch:!1,className:"underline",href:a.adoreBeautyProduct.url,children:a.adoreBeautyProduct.name}):a?.adoreBeautyProduct?.name})},[a.BLOCKS.PARAGRAPH]:(e,a)=>"string"==typeof a?(0,t.jsx)("p",{className:"mb-[10px] text-14",children:a}):Array.isArray(a)&&"object"==typeof a[0]&&"center"===a[0].type?(0,t.jsx)("div",{className:"mb-[10px] text-14",children:(0,t.jsxs)("div",{className:"text-center",children:[a[0].props.children,a.slice(1)]})}):(0,t.jsx)("div",{className:"mb-[10px] text-14",children:a}),[a.BLOCKS.EMBEDDED_ASSET]:e=>{var a;let r=e?.data?.target?.sys;return a=ed(r?.id||"",m),a?.contentType==="video/quicktime"?(0,t.jsxs)("video",{className:"mx-auto w-auto",width:"700",height:"540",controls:!0,children:[(0,t.jsx)("source",{src:a?.url,type:"video/mp4"}),"Your browser does not support the video tag."]}):(0,t.jsx)(n.default,{src:a?.url??"",width:750,height:625,customClass:"max-w-full mb-[10px]",alt:"adore beauty article image",loading:"lazy"})},[a.BLOCKS.HEADING_1]:(e,a)=>(0,t.jsx)("h1",{className:"mb-3 text-[30px] font-medium leading-[1.3]",children:a}),[a.BLOCKS.HEADING_2]:(e,a)=>(0,t.jsx)("h2",{className:"mb-3 text-[25px] font-medium leading-[1.3]",children:a}),[a.BLOCKS.HEADING_3]:(e,a)=>(0,t.jsx)("h3",{className:"mb-3 text-[22px] font-medium leading-[1.3]",children:a}),[a.BLOCKS.HEADING_4]:(e,a)=>(0,t.jsx)("h4",{className:"mb-3 text-[20px] font-medium leading-[1.3]",children:a}),[a.BLOCKS.HEADING_5]:(e,a)=>(0,t.jsx)("h5",{className:"mb-3 text-18 font-medium leading-[1.3]",children:a}),[a.BLOCKS.HEADING_6]:(e,a)=>(0,t.jsx)("h5",{className:"mb-3 text-16 font-medium leading-[1.3]",children:a}),[a.BLOCKS.UL_LIST]:(e,a)=>(0,t.jsx)("ul",{children:a}),[a.BLOCKS.OL_LIST]:(e,a)=>(0,t.jsx)("ol",{children:a}),[a.BLOCKS.LIST_ITEM]:(e,a)=>(0,t.jsxs)("li",{className:"relative mx-auto flex items-center justify-start",children:[(0,t.jsx)("div",{className:"absolute top-[10px] size-[6px] rounded-full bg-black"}),(0,t.jsx)("span",{className:"pl-5",children:a})]}),[a.BLOCKS.EMBEDDED_ENTRY]:e=>{let a=ed(e?.data?.target?.sys?.id||"",p);return(0,t.jsxs)(t.Fragment,{children:[a?.type==="Button"&&(0,t.jsx)("div",{className:"mx-auto mb-5 text-center",children:(0,t.jsx)(y,{button:a})}),a?.type==="Routine"&&i&&(0,t.jsx)("div",{className:"mx-auto mb-5 text-center",children:(0,t.jsx)(ec,{articleRoutineData:i,data:a})}),a?.type==="ExternalContent"&&(0,t.jsx)("div",{className:"mb-5 mt-6 flex items-center justify-center text-center",children:(0,t.jsx)(K,{content:a})}),a?.type==="ProductManagedCopy"&&d&&(0,t.jsx)("div",{className:"mx-auto mb-5 text-center",children:(0,t.jsx)(W,{data:a,productManagedCopyProductDetailsData:d})}),a?.type==="MultipleCategoriesBrands"&&(0,t.jsx)("div",{className:"mb-5 text-center",children:(0,t.jsx)(F,{data:a})}),a?.type==="MultiTabs"&&(0,t.jsx)("div",{className:"mx-auto mb-5 w-full text-center",children:(0,t.jsx)(V,{data:a})}),a?.type==="EmailSignup"&&(0,t.jsx)("div",{className:"mx-auto mb-5 text-center",children:(0,t.jsx)(R,{data:a})}),a?.type==="ContentInlineReview"&&(0,t.jsx)("div",{className:"mx-auto mb-5 text-center",children:(0,t.jsx)(A,{review:a})}),a?.type==="ImageManagedCopy"&&(0,t.jsx)("div",{className:"mx-auto mb-5 w-full text-center",children:(0,t.jsx)(O,{data:a,productManagedCopyProductDetailsData:d})}),a?.type==="CardsMultiple"&&(0,t.jsx)("div",{className:"mb-5 text-center",children:(0,t.jsx)(B,{data:a})}),a?.type==="ShoppableImage"&&(0,t.jsx)("div",{className:"mb-5 text-center",children:(0,t.jsx)(eo,{data:a})}),a?.type==="AdoreBeautyProducts"&&(0,t.jsx)("div",{className:"mx-auto mb-5 text-center",children:(0,t.jsx)(_,{data:a,productManagedCopyProductDetailsData:d})}),a?.type==="AdoreBeautyBrands"&&(0,t.jsx)("div",{className:"mx-auto mb-5 text-center",children:(0,t.jsx)(c,{data:a})}),a?.type==="AdoreBeautyCategories"&&(0,t.jsx)("div",{className:"mx-auto mb-5 text-center",children:(0,t.jsx)(o,{data:a})}),a?.type==="Card"&&(0,t.jsx)("div",{className:"mx-auto mb-5",children:(0,t.jsx)(j,{data:a})})]})},[a.BLOCKS.HR]:()=>(0,t.jsx)("hr",{className:"my-4 border-t border-[#ebebeb]"}),[a.BLOCKS.QUOTE]:(e,a)=>(0,t.jsx)("blockquote",{className:"my-5",children:a})},renderMark:{[s.MARKS.BOLD]:e=>(0,t.jsx)("b",{children:em(e)}),[s.MARKS.ITALIC]:e=>(0,t.jsx)("i",{children:em(e)}),[s.MARKS.UNDERLINE]:e=>(0,t.jsx)("u",{children:em(e)})},renderText:e=>em(e)}}],307968)}]);
320
321//# debugId=ee00cfec-01b3-075a-50a1-b4519ff2e135

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.