1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9195],{75891:function(e){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url_key"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"currentPage"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"AwBlogPostFilterInput"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"awBlogCategoryDetails"},arguments:[{kind:"Argument",name:{kind:"Name",value:"url_key"},value:{kind:"Variable",name:{kind:"Name",value:"url_key"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url_key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meta_title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meta_keywords"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meta_description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"awBlogPosts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}},{kind:"Argument",name:{kind:"Name",value:"currentPage"},value:{kind:"Variable",name:{kind:"Name",value:"currentPage"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"publish_date"},value:{kind:"EnumValue",value:"DESC"}}]}},{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url_key"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"reviewer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url_key"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"created_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"featured_image_file"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"featured_image_alt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"featured_image_title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url_key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tag_names"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meta_description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meta_prefix"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meta_suffix"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"short_content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"publish_date"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"page_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"current_page"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"page_size"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_pages"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"featuredPosts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url_key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"featured_image_file"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"featured_image_title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"publish_date"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pageview"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"blog_likes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"commentsCount"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1011}};a.loc.source={body:"query (\n $url_key: String\n $pageSize: Int\n $currentPage: Int\n $filter: AwBlogPostFilterInput\n) {\n awBlogCategoryDetails(url_key: $url_key) {\n id\n url_key\n status\n meta_title\n meta_keywords\n meta_description\n }\n awBlogPosts(\n pageSize: $pageSize\n currentPage: $currentPage\n sort: { publish_date: DESC }\n filter: $filter\n ) {\n items {\n author {\n firstname\n lastname\n url_key\n }\n reviewer {\n firstname\n lastname\n url_key\n }\n created_at\n featured_image_file\n featured_image_alt\n featured_image_title\n url_key\n title\n tag_names\n meta_description\n meta_prefix\n meta_suffix\n short_content\n publish_date\n id\n }\n page_info {\n current_page\n page_size\n total_pages\n }\n }\n featuredPosts {\n url_key\n title\n featured_image_file\n featured_image_title\n publish_date\n pageview\n blog_likes\n commentsCount\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};a.definitions.forEach(function(e){if(e.name){var a=new Set;(function collectFragmentReferences(e,a){if("FragmentSpread"===e.kind)a.add(e.name.value);
1else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&a.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){collectFragmentReferences(e,a)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){collectFragmentReferences(e,a)}),e.definitions&&e.definitions.forEach(function(e){collectFragmentReferences(e,a)})})(e,a),i[e.name.value]=a}}),e.exports=a},57286:function(e,a,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return i(55537)}])},51179:function(e,a,i){"use strict";var n=i(85893);i(67294);var t=i(41664),r=i.n(t),l=i(1713),s=i.n(l),d=i(11163);a.Z=e=>{let{cat:a,copywriting:i,awBlogPostDetails:t}=e,l="";return l=a&&void 0!==a?i?i.title:null:t?t.title:null,(0,n.jsx)("div",{className:s().root,children:(0,n.jsxs)("ul",{className:s().items,children:[(0,n.jsxs)("li",{className:s().item,children:[(0,n.jsx)(r(),{className:s().link,href:"/",children:"Home"}),(0,n.jsx)("span",{className:s().divider,children:"/"})]}),(0,n.jsx)("li",{className:s().item,children:"/blog/"==(0,d.useRouter)().asPath?e.title:(0,n.jsx)(r(),{className:s().link,href:"/blog",children:e.title?e.title:"Blogs about Hair Pieces, Non Surgical Hair Replacement, Human Hair Wigs - Lordhair.com"})}),l?(0,n.jsxs)("li",{className:s().item,children:[(0,n.jsx)("span",{className:s().divider,children:"/"}),l]}):null]})})}},30544:function(e,a,i){"use strict";i.d(a,{Z:function(){return notFound}});var n=i(85893),t=i(67294),r=i(44012),l=i(11163),s=i(14790),d=i(12454),o=i(68118),u=i.n(o);let m={TITLE:"Oops! Page Not Found",NOT_FOUND:"404",DESCRIBE:{DES1:"We looked everywhere for this page. ",DES2:"Are you sure the website URL is correct?",DES3:"Go to Blog home page."},BACK_HOME:"Back to Home",MORE_HELP:{HELP:"Need more help?",CHAT:"Chat online now"}};var errorMessage=e=>{let a=(0,s.Xj)(u(),e.classes),i=(0,l.useRouter)(),{handleChatOpen:o}=(0,d.b)(),c=(0,t.useCallback)(()=>{i.push("/blog")},[i]),g=(0,n.jsx)(r.Z,{id:"ErrorMessage.title",defaultMessage:m.TITLE}),_=(0,n.jsx)(r.Z,{id:"ErrorMessage.notFound",defaultMessage:m.NOT_FOUND}),k=(0,n.jsx)(r.Z,{id:"ErrorMessage.describe.des1",defaultMessage:m.DESCRIBE.DES1}),v=(0,n.jsx)(r.Z,{id:"ErrorMessage.describe.des2",defaultMessage:m.DESCRIBE.DES2}),h=(0,n.jsx)(r.Z,{id:"ErrorMessage.describe.des3",defaultMessage:m.DESCRIBE.DES3}),p=(0,n.jsx)(r.Z,{id:"ErrorMessage.help",defaultMessage:m.MORE_HELP.HELP}),f=(0,n.jsx)(r.Z,{id:"ErrorMessage.chat",defaultMessage:m.MORE_HELP.CHAT});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center ".concat(a.describe),children:[(0,n.jsx)("h3",{children:g}),(0,n.jsx)("h2",{children:_}),(0,n.jsxs)("div",{className:a.statement,children:[(0,n.jsx)("p",{children:k}),(0,n.jsx)("p",{children:v}),(0,n.jsx)("p",{children:h})]}),(0,n.jsx)("button",{className:a.backHome,type:"button",onClick:c,children:m.BACK_HOME})]}),(0,n.jsx)("div",{className:a.moreHelp,children:(0,n.jsxs)("div",{className:a.help_content,children:[(0,n.jsx)("span",{children:p}),(0,n.jsx)("button",{type:"button",onClick:o,className:"btn btn-link ".concat(a.chat),children:f})]})})]})},c=i(9008),g=i.n(c),notFound=()=>(0,n.jsxs)(t.Fragment,{children:[(0,n.jsx)(g(),{children:(0,n.jsx)("title",{children:"Oops! Page Not Found"})}),(0,n.jsx)(errorMessage,{})]})},55537:function(e,a,i){"use strict";i.r(a),i.d(a,{__N_SSP:function(){return j},default:function(){return pages_blog}});var n=i(85893),t=i(67294),r=i(43402),l=i.n(r),s=i(80523),d=i(7132),o=i(41664),u=i.n(o),m=i(68418),c=i(87599),g=i(54478),_=i(57988),k=i(14114),v=i.n(k),h=i(75891),p=i.n(h),f=i(6812);let useCategoryDetails=e=>{let{loading:a,error:i,data:n}=(0,f.aM)(p(),{variables:{url_key:e}});return{loading:a,error:i,data:n}};var b=i(30544),N=i(24697),w=i(11163),x=i(48733),blogCategoryDetails=e=>{let{loading:a,error:i,data:r}=useCategoryDetails(e.cat),{asPath:l}=(0,w.useRouter)(),s=(0,N.eT)(l);if(i)return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(b.Z,{})});if(a)return(0,n.jsx)(d.Z,{});let o=r.awBlogCategoryDetails;return o?(0,n.jsx)(t.Fragment,{children:(0,n.jsx)(x.Z,{title:o.meta_title||s.title,de
1scription:o.meta_description,keywords:o.meta_keywords,isFollow:!0})}):null};i(51179);var blogPosts=e=>{let{copywriting:a,blogClasses:i,ssrData:r,blogConfig:l}=e,s=l&&l.postsPerPage?l.postsPerPage:10,[o,k]=(0,t.useState)(1),[h,p]=(0,t.useState)(!1),f=e.cat,{loading:b,data:w}=(0,c.E)({pageSize:s,currentPage:o,cat:f,ssrData:r,isBlogPostQuey:h}),x=null,y=null,j=null,F=null,S=b&&!w?null:w;if(S&&(x=S.page_info,F=e=>{"..."!==e&&((0,g.SM)(),k(e),p(!0))},y=e=>{e<=1||((0,g.SM)(),k(e-1),p(!0))},j=e=>{e>=x.total_pages||((0,g.SM)(),k(e+1),p(!0))}),b)return(0,n.jsx)(d.Z,{});let E=S.items;if(!E)return(0,n.jsx)("div",{children:"Internal error"});if(0==E.length)return;let P=l.baseMediaUrl,D=(0,t.useMemo)(()=>{if(!E||0===E.length)return[[],[],[]];let e=Array.from({length:3},()=>[]);return E.forEach((a,i)=>{e[i%3].push(a)}),e},[E]),[C,M]=(0,t.useState)(D),[O,T]=(0,t.useState)(!0),B=(0,t.useCallback)(e=>{if(e&&e.length>0){let a=Array.from({length:3},()=>[]);e.forEach((e,i)=>{a[i%3].push(e)}),M(a)}},[]),H=(0,t.useCallback)(()=>{T(window.innerWidth>768)},[]);(0,t.useEffect)(()=>{H();let e=function(e){let a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,debounced=function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];let l=this;clearTimeout(a),a=setTimeout(()=>e.apply(l,t),i)};return debounced.cancel=function(){clearTimeout(a)},debounced}(()=>{B(E),H()},200);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),e.cancel()}},[E,B,H]),(0,t.useEffect)(()=>{B(E)},[E,B]);let L=(0,t.useCallback)(a=>a?a.map(a=>{let i=a.featured_image_file?a.featured_image_file.includes("media")?a.featured_image_file:"".concat(P).concat(a.featured_image_file):null,t=null;if(a.tags){var r,l;t=null===(l=a.tags)||void 0===l?void 0:null===(r=l.items)||void 0===r?void 0:r.map((e,a)=>(0,n.jsx)(u(),{href:"/blog/tag/".concat(e.url_key),children:(0,n.jsx)("span",{className:v().tag,children:e.name})},a))}let s=null;s=a.author.firstname&&a.author.lastname?"".concat(a.author.firstname," ").concat(a.author.lastname):"".concat(a.author.firstname);let d=a.mod_date&&"string"==typeof a.mod_date&&!a.mod_date.includes("0000-00-00"),o=(0,N._3)(a.publish_date),m=(0,N._3)(d?a.mod_date:a.publish_date,o),c=null,g=null,k=null;g=a.meta_prefix?"".concat(a.meta_prefix," | "):"",k=a.meta_suffix?" | ".concat(a.meta_suffix):"",c=a.meta_title?"".concat(g).concat(a.meta_title).concat(k):"".concat(g).concat(a.title).concat(k);let h={url_key:a.url_key,title:a.title,metaTitle:c,authorName:s,authorUrl:a.author.url_key,reviewer:a.reviewer,publishDate:o,lastUpdated:m,mod_date:a.mod_date,pageview:a.pageview,blog_likes:a.blog_likes,blogReadTime:a.blogReadTime,imageLink:i,shortContent:a.short_content,tags:t,id:a.id,metaDescription:a.meta_description};return(0,n.jsx)(_.Z,{itemPost:h,isOpen:e.isOpenPost},a.id)}):null,[P,e.isOpenPost]),R=L(E),A=L(C[0]),Z=L(C[1]),I=L(C[2]);return(0,n.jsxs)(t.Fragment,{children:[e.cat?(0,n.jsx)(blogCategoryDetails,{cat:e.cat}):null,(0,n.jsxs)("div",{className:v().content,children:[O?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:v().width_33,children:A}),(0,n.jsx)("div",{className:v().width_33,children:Z}),(0,n.jsx)("div",{className:v().width_33,children:I})]}):(0,n.jsx)("div",{className:v().width_50,children:R}),x?(0,n.jsx)("div",{className:v().pager,children:(0,n.jsx)(m.Z,{classes:v(),totalPages:x.total_pages,currentPage:o,handlePrev:y,handleNext:j,changeCurrentPage:F})}):null]})]})},y=i(93369),blog=e=>{let{ssrData:a}=e,{awBlogConfig:i,awBlogPosts:r,awBlogCategories:d,featuredPosts:o}=a,u=(0,N.EJ)({awBlogConfig:i}),[m,c]=(0,t.useState)(!0);return(0,t.useEffect)(()=>{window.innerWidth>768?c(!0):c(!1)},[]),(0,n.jsxs)(t.Fragment,{children:[(0,n.jsx)(x.Z,{title:(null==u?void 0:u.metaTitle)?null==u?void 0:u.metaTitle:"Loading",keywords:null==u?void 0:u.metaKeywords,description:null==u?void 0:u.metaDescription,isFollow:!0}),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Blog","@id":"https://www.lordhair.es/blog/#blog",name:(null==u?void 0:u.metaTitle)||"Lordhair Blog",description:(null==u?void 0:u.metaDescription)||"Hair systems, wigs, and hair loss
1solutions blog by Lordhair",url:"https://www.lordhair.es/blog/",publisher:{"@id":"https://www.lordhair.es/#organization"},mainEntityOfPage:{"@id":"https://www.lordhair.es/blog/#webpage"},blogPost:((null==r?void 0:r.items)||[]).slice(0,12).map(e=>({"@type":"BlogPosting",headline:e.title,url:"https://www.lordhair.es/blog/".concat(e.url_key,"/"),...e.featured_image_file&&{image:e.featured_image_file},datePublished:e.publish_date,author:e.author?{"@type":"Person",name:"".concat(e.author.firstname||""," ").concat(e.author.lastname||"").trim()||"Lordhair"}:{"@type":"Organization",name:"Lordhair"}}))},{"@type":"WebPage","@id":"https://www.lordhair.es/blog/#webpage",url:"https://www.lordhair.es/blog/",name:(null==u?void 0:u.metaTitle)||"Lordhair Blog",description:null==u?void 0:u.metaDescription,inLanguage:"es-ES",isPartOf:{"@id":"https://www.lordhair.es/#website"}},{"@type":"Organization","@id":"https://www.lordhair.es/#organization",name:"Lordhair",url:"https://www.lordhair.es/",logo:{"@type":"ImageObject",url:"https://www.lordhair.es/media/pwa/header/ld-logo.svg"},sameAs:["https://www.facebook.com/lordhairespana","https://www.youtube.com/@Lordhairenespanol","https://www.tiktok.com/@lordhairenespanol","https://www.instagram.com/lordhair_espana/"]}]})}}),(0,n.jsxs)("div",{className:l().mainContainer,children:[(0,n.jsx)(s.Z,{banner:!0,unShow:!0,awBlogCategories:d}),(0,n.jsxs)("section",{className:"".concat(l().container),children:[(0,n.jsx)("div",{className:l().display,children:(0,n.jsx)(y.Z,{ssrData:r,blogConfig:u,awBlogCategories:d,featuredPosts:o})}),(0,n.jsx)("div",{className:l().main_content,children:(0,n.jsx)(blogPosts,{ssrData:r,blogConfig:u})})]})]})]})},j=!0,pages_blog=e=>(0,n.jsx)(blog,{...e})},1713:function(e){e.exports={root:"breadcrumbs_root__Raq3U",text:"breadcrumbs_text__4o_Q_",divider:"breadcrumbs_divider__33_3_ breadcrumbs_text__4o_Q_",link:"breadcrumbs_link__hfCAD breadcrumbs_text__4o_Q_",currentCategory:"breadcrumbs_currentCategory__piPqr breadcrumbs_text__4o_Q_",clean:"breadcrumbs_clean__1fhlT"}},68118:function(e){e.exports={describe:"errorMessage_describe__TdWyu",statement:"errorMessage_statement__ODOnd",backHome:"errorMessage_backHome__mYjeO",moreHelp:"errorMessage_moreHelp___p3nA",chat:"errorMessage_chat__YNEv1",help_content:"errorMessage_help_content__zbSIK"}}},function(e){e.O(0,[2099,4034,5059,9563,9598,9774,2888,179],function(){return e(e.s=57286)}),_N_E=e.O()}]);
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.