PageSourceSearch

https://www.haircode.io/_next/static/chunks/8123-2a85d6ab0a5d6822.js

js haircode.io collected 2026-10-09 17:51:43 UTC 12,947 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8123],{13045:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(37876),a=n(67074),l=n(79406),i=n(88202),o=n(21158),s=n(66463),c=n(21626),d=function(e){return e.TOP="TOP",e.BOTTOM="BOTTOM",e.CENTER="CENTER",e}({}),p=function(e){return e.PRIMARY="PRIMARY",e.SECONDARY="SECONDARY",e}({}),u=function(e){return e.TRANSLUCENT="TRANSLUCENT",e.GRADIENT="GRADIENT",e.NONE="NONE",e}({});let h=c.Ay.div.withConfig({componentId:"sc-814ec64c-0"})(["position:relative;width:100%;min-width:320px;max-width:",";height:100dvh;scroll-snap-align:start;&:after{position:absolute;content:'';bottom:0;left:0;z-index:2;width:100%;height:",";",";}"],e=>{let{theme:t}=e;return t.maxWidth},e=>{let{status:t}=e;return t===u.GRADIENT?"80dvh":"100dvh"},e=>{let{status:t,colorVariant:n}=e;switch("".concat(t,"-").concat(n)){case"".concat(u.TRANSLUCENT,"-").concat(p.PRIMARY):return(0,c.AH)(["background:",";"],e=>{let{theme:t}=e;return t.palette.transparent.base.secondary});case"".concat(u.TRANSLUCENT,"-").concat(p.SECONDARY):return(0,c.AH)(["background:",";"],e=>{let{theme:t}=e;return t.palette.transparent.base.primary});case"".concat(u.GRADIENT,"-").concat(p.PRIMARY):return(0,c.AH)(["background:",";background:linear-gradient( 0deg,rgba(255,255,255,0.95) 0%,rgba(255,255,255,0) 100% );"],e=>{let{theme:t}=e;return t.palette.transparent.variants["100"]});case"".concat(u.GRADIENT,"-").concat(p.SECONDARY):return(0,c.AH)(["background:",";background:linear-gradient( 0deg,rgba(0,0,0,0.95) 0%,rgba(0,0,0,0) 100% );"],e=>{let{theme:t}=e;return t.palette.transparent.variants["800"]});default:return null}}),g=c.Ay.div.withConfig({componentId:"sc-814ec64c-1"})(["position:relative;z-index:3;padding:24px;width:100%;height:100svh;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;align-content:center;"," ",""],e=>{let{colorVariant:t}=e;switch(t){case p.PRIMARY:return(0,c.AH)(["color:",";"],e=>{let{theme:t}=e;return t.palette.primary});case p.SECONDARY:return(0,c.AH)(["color:",";"],e=>{let{theme:t}=e;return t.palette.secondary});default:return null}},e=>{let{position:t}=e;switch(t){case d.BOTTOM:return(0,c.AH)(["justify-content:flex-end;padding-bottom:124px;@media ","{padding-bottom:80px;}"],e=>{let{theme:t}=e;return t.media.tablet});case d.CENTER:return(0,c.AH)(["justify-content:center;"]);case d.TOP:return(0,c.AH)(["justify-content:flex-start;padding-top:68px;"]);default:return null}}),x=c.Ay.div.withConfig({componentId:"sc-814ec64c-2"})(["text-align:center;font-size:12px;text-transform:uppercase;letter-spacing:4px;border-radius:10px;padding:2px 10px;border:1px solid;margin-bottom:8px;",";",";"],e=>{let{colorVariant:t}=e;return t===p.PRIMARY&&(0,c.AH)(["border-color:",";"],e=>{let{theme:t}=e;return t.palette.primary})},e=>{let{colorVariant:t}=e;return t===p.SECONDARY&&(0,c.AH)(["border-color:",";"],e=>{let{theme:t}=e;return t.palette.secondary})}),f=c.Ay.h2.withConfig({componentId:"sc-814ec64c-3"})(["text-align:center;font-family:",";font-size:32px;margin-bottom:16px;"],e=>{let{theme:t}=e;return t.fonts.didotFont}),b=c.Ay.div.withConfig({componentId:"sc-814ec64c-4"})(["text-align:center;font-size:14px;p{margin:0 auto 24px;}"]),m=e=>{let{surtitle:t,title:n,description:c,linkButton:d,contentPosition:p,backgroundAsset:u,colorVariant:m,overlayType:w,isActive:y=!0,slideIndex:A,totalSlides:v}=e,{slider:{slideTranslation:j}}=i.translations,C=d?{...d,ariaLabel:void 0!==A&&v?"".concat(d.ariaLabel||d.label," (").concat(j," ").concat(A+1,"/").concat(v,")"):d.ariaLabel||d.label}:void 0;return(0,r.jsxs)(h,{status:w,colorVariant:m,position:p,"aria-hidden":!y,children:[(0,r.jsx)(a.A,{backgroundAsset:u}),(0,r.jsxs)(g,{position:p,colorVariant:m,children:[t&&(0,r.jsx)(x,{colorVariant:m,children:t}),(0,r.jsx)(f,{children:n}),c&&(0,r.jsx)(b,{children:(0,r.jsx)(s.default,{json:c,sys:(0,o.P)("RichText")})}),C&&(0,r.jsx)(l.default,{...C,tabIndex:y?void 0:-1})]})]})}},26652:(e,t,n)=>{n.d(t,{Z:()=>i,k:()=>l});let{general:{prev:r,next:a}}=n(88202).translations,l=(e,t)=>{switch(!0){case 0===e:return{className:"disabled","aria-disabled":!0,as:"span"};case 2===e:return{ariaLabel:r,label:r,url:"".concat(t)};default:return{ariaLabel:r,label:r,url:"".concat(t,"?page=").concat(e-1)}}},i=(e,t,n)=>{switch(!0){case e===Math.ceil(n):case 0===e&&e===Math.ceil(n-1):return{className:"disabled",as:"span"};case 0===e:return{ariaLabel:a,label:a,url:"".concat(t,"?page=").concat(e+2)};default:return{ariaLabel:a,label:a,url:"".concat(t,"?page=").concat(e+1)}}}},59359:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(37876),a=n(88202),l=n(3460),i=n(4493),o=n(21626);let s=o.Ay.div.withConfig({componentId:"sc-b6be5bf7-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;align-content:center;gap:30px;flex-wrap:nowrap;width:100%;"]),c=o.Ay.div.withConfig({componentId:"sc-b6be5bf7-1"})(["min-width:80px;height:15px;font-size:14px;text-align:center;"]),d=(0,o.Ay)(l.A).withConfig({componentId:"sc-b6be5bf7-2"})(["height:20px;font-size:14px;font-weight:400;display:flex;flex-direction:row;justify-content:center;align-items:center;align-content:center;gap:5px;&.disabled{color:",";}"],e=>{let{theme:t}=e;return t.palette.disabled}),p=(0,o.AH)(["width:20px;height:20px;svg{width:20px;height:20px;color:",";}"],e=>{let{theme:t}=e;return t.palette.secondary}),u=(0,o.Ay)(i.A).withConfig({componentId:"sc-b6be5bf7-3"})(["",";"],p),h=(0,o.Ay)(i.A).withConfig({componentId:"sc-b6be5bf7-4"})(["",";transform:rotate(180deg);"],p);var g=n(26652);let{general:{prev:x,next:f}}=a.translations,b=e=>{let{visibleCurrentPageNumber:t,pageCount:n,currentPage:a,className:l,baseUrl:i}=e;return(0,r.jsxs)(s,{className:l,children:[(0,r.jsxs)(d,{...(0,g.k)(a,i),children:[(0,r.jsx)(h,{}),x]}),t&&(0,r.jsxs)(c,{children:[a," / ",n]}),(0,r.jsxs)(d,{...(0,g.Z)(a,i,n),children:[f,(0,r.jsx)(u,{})]})]})}},73130:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(37876),a=n(88202),l=n(70619),i=n(92564),o=n(14232);let{staticPaths:{forYou:s},categoryLabels:c}=a.translations;var d=n(96464),p=n(77360),u=n(48230),h=n.n(u),g=n(21626);let x=g.Ay.div.withConfig({componentId:"sc-b43b8a98-0"})(["position:fixed;z-index:",";background:",";backdrop-filter:blur(4px);display:flex;justify-content:center;width:100%;max-width:",";margin-top:40px;"],e=>{let{theme:t}=e;
1return t.zIndexes.headerMobile},e=>{let{theme:t}=e;return t.palette.transparent.variants["800"]},e=>{let{theme:t}=e;return t.maxWidth}),f=g.Ay.ul.withConfig({componentId:"sc-b43b8a98-1"})(["column-gap:16px;white-space:nowrap;display:flex;overflow-y:auto;padding:4px 24px;-ms-overflow-style:none;scrollbar-width:none;scroll-snap-align:start;&::-webkit-scrollbar{display:none;}li{flex-shrink:0;scroll-margin:30px;}"]),b=(0,g.Ay)(h()).withConfig({componentId:"sc-b43b8a98-2"})(["display:block;color:",";transition:0.2s ease-in-out all;font-family:",";font-size:12px;padding:6px 9px;font-weight:800;border-radius:40px;flex-shrink:0;&.is-active{background-color:",";color:",";}@media ","{&:hover{background-color:",";color:",";}}svg{display:inline-block;position:relative;top:2px;left:3px;width:10px;height:10px;stroke-width:4px;}"],e=>{let{theme:t}=e;return t.palette.neutral["200"]},e=>{let{theme:t}=e;return t.fonts.nexaFont},e=>{let{theme:t}=e;return t.palette.secondary},e=>{let{theme:t}=e;return t.palette.primary},e=>{let{theme:t}=e;return t.media.desktop},e=>{let{theme:t}=e;return t.palette.secondary},e=>{let{theme:t}=e;return t.palette.primary}),m=g.Ay.button.withConfig({componentId:"sc-b43b8a98-3"})(["position:absolute;width:40px;height:38px;",";@media ","{display:none;}svg{color:#fff;width:20px;height:30px;}"],e=>{let{alignment:t}=e;return"left"===t?"left: 0; background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);":"right: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);"},e=>{let{theme:t}=e;return t.media.mobile}),{general:{goToLeft:w,goToRight:y}}=a.translations,A=e=>{let{categories:t,currentCategory:n}=e,{slider:a,scrollLeft:u,scrollRight:h}=(()=>{let e=(0,o.useRef)(null);return{slider:e,scrollLeft:()=>{var t;null==(t=e.current)||t.scrollBy({top:0,left:-200,behavior:"smooth"})},scrollRight:()=>{var t;null==(t=e.current)||t.scrollBy({top:0,left:200,behavior:"smooth"})}}})(),{currentCategories:g,visibleArrow:A,setVisibleArrow:v}=(e=>{let{categories:t,currentCategory:n}=e,{user:r}=(0,i.Jd)(),[a,l]=(0,o.useState)("right"),d=r?t:t.filter(e=>e.href!==s),p=new Map([c.forYou,c.all].map((e,t)=>[e,t]));return d.sort((e,t)=>{var n,r;return(null!=(n=p.get(e.label))?n:1/0)-(null!=(r=p.get(t.label))?r:1/0)}),(0,o.useEffect)(()=>{d[d.length-1].label===n&&l("left"),document.fonts.ready.then(()=>{let e=document.getElementById(n);e&&e.scrollIntoView({block:"end",behavior:"instant"})})},[]),{currentCategories:d,visibleArrow:a,setVisibleArrow:l}})({categories:t,currentCategory:n});return(0,r.jsxs)(x,{children:[(0,r.jsx)(f,{ref:a,children:g&&g.map((e,t)=>{let{label:a,href:i,isDropdown:o}=e;return(0,r.jsx)("li",{id:a,children:(0,r.jsxs)(b,{...n===a&&{className:"is-active"},href:i,"aria-label":a,children:[a,o&&(0,r.jsx)(l.A,{})]})},a+t)})}),"right"===A?(0,r.jsx)(m,{alignment:"right","aria-label":y,onClick:()=>{v("left"),h()},children:(0,r.jsx)(p.c,{})}):(0,r.jsx)(m,{alignment:"left","aria-label":w,onClick:()=>{v("right"),u()},children:(0,r.jsx)(d.J,{})})]})}},79650:(e,t,n)=>{n.d(t,{A:()=>I});var r=n(37876),a=n(26652),l=n(88202),i=n(4493),o=n(13045),s=n(95690),c=n(9810),d=n(14232),p=n(3460),u=n(59359),h=n(21626);let g=h.Ay.section.withConfig({componentId:"sc-71e23b6f-0"})(["display:flex;flex-direction:column;overflow-y:scroll;gap:0;margin:0 auto;width:100%;height:100dvh;scroll-snap-type:y mandatory;-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]),x=h.Ay.div.withConfig({componentId:"sc-71e23b6f-1"})(["position:absolute;top:calc(50% - 34px);right:0;width:24px;height:68px;z-index:",";display:flex;flex-direction:column;overflow:hidden;background-color:rgba(255,255,255,0.8);border-radius:5px 0 0 5px;"],e=>{let{theme:t}=e;return t.zIndexes.navigationElement}),f=h.Ay.button.withConfig({componentId:"sc-71e23b6f-2"})(["width:24px;height:34px;&:active{background:",";color:",";}&:disabled{svg{opacity:0.2;}}"],e=>{let{theme:t}=e;return t.palette.neutral[500]},e=>{let{theme:t}=e;return t.palette.secondary}),b=h.Ay.span.withConfig({componentId:"sc-71e23b6f-3"})(["width:100px;height:100px;border-radius:50%;background:",";margin-bottom:16px;display:flex;align-items:center;justify-content:center;svg{width:48px;height:48px;color:",";
1transition:transform 250ms ease;path{stroke-width:1px;}}"],e=>{let{theme:t}=e;return t.palette.primary},e=>{let{theme:t}=e;return t.palette.secondary}),m=(0,h.Ay)(u.A).withConfig({componentId:"sc-71e23b6f-4"})(["margin-bottom:80px;padding-inline:20px;"]),w=h.Ay.div.withConfig({componentId:"sc-71e23b6f-5"})(["display:flex;flex-direction:column;gap:0;margin:0 auto;scroll-snap-type:y mandatory;scroll-snap-align:start;scrollbar-width:thin;width:100%;"]),y=h.Ay.div.withConfig({componentId:"sc-71e23b6f-6"})(["display:flex;height:100dvh;flex-direction:column;padding-top:150px;"]),A=(0,h.Ay)(p.A).withConfig({componentId:"sc-71e23b6f-7"})(["display:flex;flex-direction:column;align-items:center;margin:auto;font-weight:800;&:focus-visible{outline:0;border:2px solid ",";}&:hover{svg{transform:translateX(10px);}}&.disabled{opacity:0.35;}"],e=>{let{theme:t}=e;return t.palette.primary}),{general:{nextPage:v,next:j,previous:C}}=l.translations,I=e=>{let{articles:t,url:n,pageCount:l,currentPage:p,children:u}=e,{isUpArrowActive:h,isDownArrowActive:I,handleScroll:k,scrollDown:R,scrollUp:N,sliderRef:E,isPaginationVisible:T}=(e=>{let{numberOfArticles:t,url:n,currentPage:r,pageCount:a,isHeaderPresent:l}=e,i=(0,d.useRef)(null),[o,s]=(0,d.useState)(!1),[c,p]=(0,d.useState)(!1),[u,h]=(0,d.useState)(1!==a);return(0,d.useEffect)(()=>{h(1!==a)},[a]),(0,d.useEffect)(()=>{var e;s(!1),null==(e=i.current)||e.scrollTo(-42,0)},[n,r]),{isUpArrowActive:o,isDownArrowActive:c,handleScroll:()=>{if(i.current){let e=i.current.scrollTop,n=(u?t:t-!l)*(window.innerHeight-42);s(e>0),p(e>n)}},scrollDown:()=>{var e;null==(e=i.current)||e.scrollBy({top:window.innerHeight,left:0,behavior:"smooth"})},scrollUp:()=>{var e;null==(e=i.current)||e.scrollBy({top:-window.innerHeight,left:0,behavior:"smooth"})},sliderRef:i,isPaginationVisible:u}})({numberOfArticles:t.length,url:n,currentPage:p,pageCount:l,isHeaderPresent:!!u});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(g,{ref:E,onScroll:k,children:[u&&u,t.map(e=>(0,r.jsx)(o.A,{...e},e.sys.id)),T&&(0,r.jsx)(w,{children:(0,r.jsxs)(y,{children:[(0,r.jsxs)(A,{...(0,a.Z)(p,n,l),children:[(0,r.jsx)(b,{children:(0,r.jsx)(i.A,{})}),v]}),(0,r.jsx)(m,{baseUrl:n,currentPage:p,pageCount:l})]})})]}),(0,r.jsxs)(x,{children:[(0,r.jsx)(f,{onClick:N,disabled:!h,"aria-label":C,children:(0,r.jsx)(s.b,{})}),(0,r.jsx)(f,{onClick:R,disabled:I,"aria-label":j,children:(0,r.jsx)(c.M,{})})]})]})}}}]);

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.