1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,701219,e=>{e.v({contentWrapper:"HomeHelpDeskBanner-module-scss-module__-7_yba__contentWrapper",description:"HomeHelpDeskBanner-module-scss-module__-7_yba__description",helpDeskWrapper:"HomeHelpDeskBanner-module-scss-module__-7_yba__helpDeskWrapper",imageWrapper:"HomeHelpDeskBanner-module-scss-module__-7_yba__imageWrapper",linksWrapper:"HomeHelpDeskBanner-module-scss-module__-7_yba__linksWrapper",title:"HomeHelpDeskBanner-module-scss-module__-7_yba__title"})},514190,e=>{e.v({clampedText:"HomePromos-module-scss-module__OAeRxq__clampedText",contentWrapper:"HomePromos-module-scss-module__OAeRxq__contentWrapper",headingText:"HomePromos-module-scss-module__OAeRxq__headingText",headingWrapper:"HomePromos-module-scss-module__OAeRxq__headingWrapper",listWrapper:"HomePromos-module-scss-module__OAeRxq__listWrapper",promoLink:"HomePromos-module-scss-module__OAeRxq__promoLink",promoWrapper:"HomePromos-module-scss-module__OAeRxq__promoWrapper",promosWrapper:"HomePromos-module-scss-module__OAeRxq__promosWrapper"})},623590,e=>{e.v({articleTileWrapper:"HomeLatestArticles-module-scss-module__BVbbVq__articleTileWrapper",articlesHeading:"HomeLatestArticles-module-scss-module__BVbbVq__articlesHeading",articlesHeadingWrapper:"HomeLatestArticles-module-scss-module__BVbbVq__articlesHeadingWrapper",articlesTileInnerWrapper:"HomeLatestArticles-module-scss-module__BVbbVq__articlesTileInnerWrapper",articlesTileWrapper:"HomeLatestArticles-module-scss-module__BVbbVq__articlesTileWrapper",articlesWrapper:"HomeLatestArticles-module-scss-module__BVbbVq__articlesWrapper",viewAllWrapper:"HomeLatestArticles-module-scss-module__BVbbVq__viewAllWrapper"})},735785,e=>{e.v({itemsTitle:"HomeMostPopularLinks-module-scss-module__EhryDq__itemsTitle",itemsWrapper:"HomeMostPopularLinks-module-scss-module__EhryDq__itemsWrapper",itemsWrapperVisible:"HomeMostPopularLinks-module-scss-module__EhryDq__itemsWrapperVisible",linksWrapper:"HomeMostPopularLinks-module-scss-module__EhryDq__linksWrapper",listWrapper:"HomeMostPopularLinks-module-scss-module__EhryDq__listWrapper",pillsInnerWrapper:"HomeMostPopularLinks-module-scss-module__EhryDq__pillsInnerWrapper",pillsWrapper:"HomeMostPopularLinks-module-scss-module__EhryDq__pillsWrapper",popularWrapper:"HomeMostPopularLinks-module-scss-module__EhryDq__popularWrapper"})},738028,e=>{e.v({categoryLink:"HomeMainCategoriesLinks-module-scss-module__m78q0q__categoryLink",imageWrapper:"HomeMainCategoriesLinks-module-scss-module__m78q0q__imageWrapper",listWrapper:"HomeMainCategoriesLinks-module-scss-module__m78q0q__listWrapper",mainCategoriesInnerWrapper:"HomeMainCategoriesLinks-module-scss-module__m78q0q__mainCategoriesInnerWrapper",mainCategoriesWrapper:"HomeMainCategoriesLinks-module-scss-module__m78q0q__mainCategoriesWrapper"})},731502,e=>{e.v({contentWrapper:"HomeTrustSafetyInfoItem-module-scss-module__nFxXVG__contentWrapper",description:"HomeTrustSafetyInfoItem-module-scss-module__nFxXVG__description",imageWrapper:"HomeTrustSafetyInfoItem-module-scss-module__nFxXVG__imageWrapper",linksWrapper:"HomeTrustSafetyInfoItem-module-scss-module__nFxXVG__linksWrapper",textWrapper:"HomeTrustSafetyInfoItem-module-scss-module__nFxXVG__textWrapper",title:"HomeTrustSafetyInfoItem-module-scss-module__nFxXVG__title",wrapper:"HomeTrustSafetyInfoItem-module-scss-module__nFxXVG__wrapper"})},595681,e=>{e.v({caption:"HomeTrustSafetyInfo-module-scss-module__fdbZ3q__caption",description:"HomeTrustSafetyInfo-module-scss-module__fdbZ3q__description",items:"HomeTrustSafetyInfo-module-scss-module__fdbZ3q__items",title:"HomeTrustSafetyInfo-module-scss-module__fdbZ3q__title",wrapper:"HomeTrustSafetyInfo-module-scss-module__fdbZ3q__wrapper"})},141911,e=>{e.v({adSlotMain:"Home-module-scss-module__pLWuIW__adSlotMain",adSlotSecondary:"Home-module-scss-module__pLWuIW__adSlotSecondary",atfTop:"Home-module-scss-module__pLWuIW__atfTop"})},105102,e=>{"use strict";var a,t=e.i(391398),s=e.i(56206),r=e.i(117121),l=e.i(203828),i=e.i(191788),o=e.i(958678);e.i(47620);var n=e.i(271179),d=e.i(73810),c=e.i(423479),p=e.i(665149),m=e.i(352954),u=e.i(128841),h=e.i(191732),g=e.i(538914),_=e.i(316841),f=e.i(613584),y=e.i(971999),v=e.i(354818),x=e.i(848533),b=e.i(701457),W=e.i(515468),j=e.i(927712),L=e.i(995161),k=e.i(134641),S=e.i(680509),C=e.i(979021),I=e.i(225917),N=e.i(961572),T=e.i(949125),A=e.i(838477),w=e.i(591214),H=((a={}).CategoryLevel1="CategoryLevel1",a.CategoryLevel2="CategoryLevel2",a.MainAttribute="MainAttribute",a);let z="goForward",P="goBack",B="reset",O="searchOption",M="setIsOpen",q=e=>({type:M,isOpen:e}),F=e=>
1({type:z,option:e}),V=(e,a,t)=>a?e.getOptions(t).filter(e=>e.value===a)[0]:void 0,D=(e,a)=>{let t=((e,a)=>{let[t,s,r]=e,l=V(t,a?.categoryLevel1),i=V(s,a?.categoryLevel2,{categoryLevel1:l}),o=V(r,a?.mainAttribute,{categoryLevel1:l,categoryLevel2:i});return{categoryLevel1:l,categoryLevel2:i,mainAttribute:o}})(e,a);return{isOpen:!1,steps:e.map(e=>({...e,title:e.getTitle(t),options:e.getOptions(t),filteredOptions:e.getOptions(t)})),stepsHistory:[{id:H.CategoryLevel1,value:t.categoryLevel1},t.categoryLevel1?{id:H.CategoryLevel2,value:t.categoryLevel2}:void 0,t.categoryLevel2?{id:H.MainAttribute,value:t.mainAttribute}:void 0].filter(w.ExcludeFalsy)}},X=e=>{let a=(0,A.default)(e.stepsHistory.reduce((e,a)=>({...e,[(0,I.default)(a.id)]:a.value}),{}),e=>void 0!==e);return(0,N.default)(a)?void 0:a},$=e=>e.steps[e.stepsHistory.length-1],E=(e,a,t)=>{let s={...t.steps[e]},r=s.getOptions(a,{shouldAddAllOption:e=>e>1});return s.title=s.getTitle(a),s.options=r,s.filteredOptions=r,s},R=(e,a)=>{switch(a.type){case z:{let t=[...e.stepsHistory];t[e.stepsHistory.length-1].value=a.option;let s=X({...e,stepsHistory:t}),r=$(e),l=e.steps;if(!a.option.isLast){let a=e.steps.findIndex(e=>e.id===r.id)+1;if(!e.steps[a])return e;let i=E(a,s,e);if(l=e.steps.map(e=>i.id===e.id?i:e),1===i.options.length){t.push({id:i.id,value:i.options[0],skipped:!0}),s=X({...e,stepsHistory:t});let a=e.steps.findIndex(e=>e.id===r.id)+2;if(!e.steps[a])return e;let o=E(a,s,e);l=e.steps.map(e=>o.id===e.id?o:e),t.push({id:o.id})}else t.push({id:i.id})}return{...e,steps:l,stepsHistory:t}}case P:if(e.stepsHistory.length){let a=e.stepsHistory.slice(0,e.stepsHistory.length-1);if((0,T.default)(e.stepsHistory,a))return e;return a[a.length-1].skipped&&(a=a.slice(0,a.length-1)),{...e,stepsHistory:a}}return e;case O:{let t={...$(e)};t.filteredOptions=a.value?t.options.filter(e=>e.label.toLowerCase().includes(a.value.trim().toLowerCase())):t.options;let s=e.steps.map(e=>t.id===e.id?t:e);
1if((0,T.default)(e.steps,s))return e;return{...e,steps:s}}case M:if(e.isOpen===a.isOpen)return e;return{...e,isOpen:a.isOpen};case B:return D(a.stepsConfiguration,a.defaultValue);default:return e}};var Z=e.i(670915),G=e.i(818343),Y=e.i(103229),U=e.i(388453);let K=({options:e,hasAllOption:a,allOptionLabel:t,shouldSort:s,locale:r,t:l})=>{let i=e.map(e=>({label:l(e.key),value:e.value,isLast:e.isLast}));return s&&(i=J({options:i,locale:r})),[a?{label:t,value:"all",hasIcon:!1,isEmpty:!0,isLast:!0}:null,...i].filter(w.ExcludeFalsy)},J=({options:e,locale:a})=>e.sort((e,t)=>e.label.localeCompare(t.label,a)),Q=({t:e,locale:a,categoriesInfo:t,marketplace:s})=>{let r=(0,u.findPreselectedActiveCategories)({marketplace:s}),l=(0,i.useMemo)(()=>({id:H.CategoryLevel1,isFirst:!0,searchable:!1,getTitle:()=>e("common:chooseCategory"),getOptions:()=>(0,U.makeActiveCategoriesLevel1)({marketplace:s}).map(({key:a,value:t})=>({hasIcon:!0,label:e(a),value:t}))}),[]),o=(0,i.useMemo)(()=>({id:H.CategoryLevel2,isFirst:!!r.categoryLevel1,searchable:!1,getTitle:()=>e("common:chooseCategory"),getOptions:({categoryLevel1:r}={},{shouldAddAllOption:i}={})=>{if(!r)return[];let o=(0,U.makeCategoriesLevel2)({categoryLevel1:r.value,subcategories:s.subcategories}),n=i?.(o.length)??!1,d=l.getOptions().length>1;return K({options:o.map(e=>{let a=(0,G.findCategoryMainAttribute)(t,e.value);return{...e,isLast:!a}}),hasAllOption:n,allOptionLabel:`${e("common:all")} ${r.label}`,shouldSort:s.shouldSortSearchBoxOptions&&d,locale:a,t:e})},getPlaceholder:e=>e?`home:searchSelectCategory${(0,Z.default)(e)}Placeholder`:"home:searchSelectCategoryLevel2Placeholder"}),[]);return{categoriesLevel1:l,categoriesLevel2:o,mainAttributeOptions:(0,i.useMemo)(()=>({id:H.MainAttribute,isFirst:!!r.categoryLevel2,searchable:!0,getTitle:({categoryLevel1:a,categoryLevel2:s}={})=>{if(!a||!s)return"";let r=(0,G.findCategoryMainAttribute)(t,s.value);return r?e(`home:searchTitle.${r.name}`):""},getOptions:({categoryLevel1:r,categoryLevel2:l}={})=>{if(!r||!l)return[];let i=(0,G.findCategoryMainAttribute)(t,l.value);if(!i)return[];let o=(0,Y.makeAttributeOptions)({attributeName:i.name,category:l.value,categoriesInfo:t});return K({options:o.map(e=>({...e,isLast:!0})),hasAllOption:o.length>1,allOptionLabel:e(`home:searchAllOption.${i.name}`),shouldSort:s.shouldSortSearchBoxOptions,locale:a,t:e})},getPlaceholder:e=>{let a=(0,G.findCategoryMainAttribute)(t,e);return e&&a?`home:searchSelectMainAttribute${(0,Z.default)((0,I.default)(a.name))}Placeholder`:"home:searchSelectMainAttributePlaceholder"}}),[])}};var ee=e.i(140028),ea=e.i(584729);let et=(0,t.jsx)(L.Icon,{name:"interface-search",size:"md",className:"text-brand"}),es=({onSearchOption:e})=>{let{t:a}=(0,k.useTranslation)(),[s,r]=(0,i.useState)(""),l=(0,i.useCallback)(()=>{r(""),e("")},[e]);return(0,t.jsx)("div",{className:ea.default.searchWrapper,children:(0,t.jsx)(j.Input,{maxLength:100,name:"search",value:s,onChange:a=>{let t=a.target.value??"";r(t),e(t)},placeholder:a("common:search"),leftIcon:et,autoFocus:!0,rightIcon:s?(0,t.jsx)(L.Icon,{name:"interface-close",size:"sm",onClick:l,className:"text-content-secondary"}):void 0,focusPlaceholder:a("common:startTyping")})})};var er=e.i(304468);let el=({children:e,defaultValue:a,onChange:r})=>{let{t:l,i18n:o}=(0,k.useTranslation)(),{onOpen:n,onBack:d,onClick:c,onReset:p,onSearchOption:m,currentStep:h,isOpen:g,prevSteps:f,steps:y,value:v}=(({defaultValue:e,onChange:a,onFinish:t,t:s,locale:r,categoriesInfo:l,marketplace:o})=>{let{categoriesLevel1:n,categoriesLevel2:d,mainAttributeOptions:c}=Q({t:s,locale:r,categoriesInfo:l,marketplace:o}),p=[n,d,c],[m,u]=(0,i.useReducer)(R,D(p,e)),h=(0,i.useMemo)(()=>X(m),[m]),g=(0,i.useCallback)(()=>{u(q(!0))},[u]),_=(0,i.useCallback)(e=>{e.isLast?(u(F(e)),u(q(!1))):u(F(e))},[u,m]),f=(0,i.useCallback)(()=>{m.stepsHistory.length>1&&u({type:P})},[u,m.stepsHistory]),y=(0,i.useCallback)(()=>{u({type:B,defaultValue:e,stepsConfiguration:p})},[u]),v=(0,i.useCallback)((0,C.default)(e=>{u({type:O,value:e})},250),[u]);return(0,i.useEffect)(()=>{a(h),t&&(h?.mainAttribute?.isLast||h?.categoryLevel2?.isLast)&&t()},[h]),{onOpen:g,onBack:f,onClick:_,onReset:y,onSearchOption:v,currentStep:$(m),prevSteps:m.stepsHistory.slice(0,m.stepsHistory.length-1).map(({id:e})=>e),isOpen:m.isOpen,steps:m.steps,value:h}})({defaultValue:a,onChange:r,t:l,locale:o.language,categoriesInfo:x.categoriesInfo,marketplace:x.marketplace}),b=(0,u.findPreselectedActiveCategories)({marketplace:x.marketplace}),W=v?.mainAttribute||b.categoryLevel2!==v?.categoryLevel2?.value||b.categoryLevel1!==v?.categoryLevel1?.value;return(0,t.jsxs)(S.Drawer,{open:g,onOpenChange:()=>{g?p():n()},direction:"right",children:[(0,t.jsx)(S.DrawerTrigger,{className:"w-full","data-testid":"search-wizard-trigger",children:e({value:W?v:void 0,onReset:p})}),(0,t.jsxs)(S.DrawerContent,{className:"w-full","data-testid":"search-wizard-drawer",children:[(0,t.jsxs)("div",{className:er.default.headerContainer,children:[(0,t.jsxs)("div",{className:er.default.header,children:[!h.isFirst&&(0,t.jsx)(_.Button,{variant:"ghost",onlyIcon:!0,className:"absolute left-400",type:"button",onClick:d,"aria-label":l("common:back"),children:(0,t.jsx)(L.Icon,{name:"arrow-arrow-left",size:"sm"})}),(0,t.jsx)("span",{className:er.default.headerText,children:h.title}),(0,t.jsx)(S.DrawerClose,{render:(0,t.jsx)(_.Button,{variant:"ghost",onlyIcon:!0,className:"absolute right-400",type:"button","aria-label":l("common:close")}),children:(0,t.jsx)(L.Icon,{name:"interface-close",size:"sm"})})]}),h.searchable&&(0,t.jsx)(es,{onSearchOption:m})]}),(0,t.jsx)("div",{className:er.default.body,children:(0,t.jsx)("div",{className:er.default.contentWrapper,children:y.map(e=>{var a,r;return(0,t.jsx)("div",{"data-active":h.id===e.id?"true":void 0,className:er.default.stepWrapper,style:{"--transform":(a=h.id,r=e.id,a===r?"translateX(0)":f.includes(r)?"translateX(-100%)":"translateX(100%)")},children:(0,t.jsx)("div",{className:er.default.listWrapper,children:e.filteredOptions.map(e=>(0,t.jsxs)("div",{"aria-label":e.label,className:(0,s.default)(er.default.listItem,{[er.default.listItemEmpty]:e.isEmpty}),onClick:()=>c(e),children:[(0,t.jsxs)("div",{className:er.default.listItemLabelWrapper,children:[e.hasIcon&&(0,t.jsx)(ee.CategoryIcon,{category:e.value}),(0,t.jsx)("span",{className:(0,s.default)(er.default.listItemLabel,{[er.default.listItemLabelWithIcon]:e.hasIcon}),"data-testid":"selection-option-label",children:e.label})]}),!e.isLast&&(0,t.jsx)(L.Icon,{name:"arrow-arrow-right",size:"sm",className:"text-brand"})]},e.value))})},e.id)})})})]})]})};var ei=e.i(813686);let eo=(0,t.jsx)(L.Icon,{name:"arrow-arrow-right",size:"md",className:"text-brand"}),en=({defaultValues:e,onCategoryLevel1Change:a,onCategoryLevel2Change:r,onMainAttributeChange:l})=>{let{t:o}=(0,k.useTranslation)(),n=(0,i.useCallback)(e=>{a(e?.categoryLevel1?.value),r(e?.categoryLevel2?.value),l(e?.mainAttribute?.value)},[a,r,l]);return(0,t.jsx)(el,{defaultValue:(e=>{if(e.categoryLevel1)return{categoryLevel1:e.categoryLevel1,categoryLevel2:e.categoryLevel2,mainAttribute:e.mainAttribute}})(e),onChange:n,children:({value:e,onReset:a})=>(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(j.Input,{className:"pointer-events-none",placeholder:void 0===e?o("home:searchInputPlaceholder"):"",value:"",readOnly:!0,tabIndex:-1,rightIcon:void 0===e?eo:(0,t.jsx)(L.Icon,{name:"interface-close",size:"md",className:(0,s.default)("pointer-events-auto","text-content-secondary"),onClick:e=>{e.stopPropagation(),a()}})}),e&&(0,t.jsxs)("div",{className:ei.default.selectionWrapper,children:[e.mainAttribute||e.categoryLevel2?(0,t.jsx)("span",{className:(0,s.default)(ei.default.selectionParentText,"truncate"),children:`${e.categoryLevel1?.label} ${e.mainAttribute?`> ${e.categoryLevel2?.label}`:""}`}):null,(0,t.jsx)("span",{className:(0,s.default)(ei.default.selectionText,"truncate"),children:e.mainAttribute?.label||e.categoryLevel2?.label||e.categoryLevel1?.label})]})]})})};var ed=e.i(947141),ec=e.i(914383);let ep=({category:e,isSelected:a,onSelect:r})=>(0,t.jsxs)("div",{className:(0,s.default)(ec.default.categoryWrapper,{[ec.default.categorySelected]:a}),onClick:()=>r(e.value),"data-testid":"home-search-box-wizard-category-card",children:[(0,t.jsx)(ee.CategoryIcon,{category:e.value}),(0,t.jsx)("span",{className:ec.default.categoryLabel,children:e.label})]});var em=e.i(39376);let eu=({categories:e,selected:a,onSelect:r})=>{let{t:l}=(0,n.useTranslation)(),i={label:l("common:other"),value:"AllCategories"},o=e.find(e=>e.value===a)??i,d=o.value===a;return(0,t.jsxs)(em.DropdownMenu,{children:[(0,t.jsxs)(em.DropdownMenuTrigger,{"data-testid":"home-search-box-wizard-category-dropdown",className:(0,s.default)("group flex min-w-full cursor-pointer flex-col items-center rounded-md border border-border-primary px-100 py-200 hover:border-border-primary-hover",{"border-brand text-brand inset-ring-1 inset-ring-brand":d}),children:[(0,t.jsx)(ee.CategoryIcon,{category:o.value}),(0,t.jsxs)("span",{className:(0,s.default)("flex items-center text-content-secondary font-content-p-caption transition-colors",{"text-brand":d}),children:[o.label,(0,t.jsx)(L.Icon,{name:"arrow-chevron-down",size:"sm",className:"transition-transform group-data-[popup-open]:rotate-180"})]})]}),(0,t.jsx)(em.DropdownMenuContent,{"data-testid":"home-search-box-wizard-category-dropdown-list",className:"min-w-[140px] w-max py-0",children:e.map(e=>(0,t.jsx)(em.DropdownMenuItem,{onClick:()=>r(e.value),"data-testid":"home-search-box-wizard-category-dropdown-item",className:"h-[36px] whitespace-nowrap border-b border-border-secondary px-300 py-200 font-content-p-standard text-content-primary last:border-b-0",children:e.label},e.value))})]})};var eh=e.i(813689);let eg=({categories:e,value:a,onSelect:s})=>{let r=e.length>4;return e.length?(0,t.jsxs)("div",{className:eh.default.wrapper,"data-testid":"home-search-box-wizard-category-cards",children:[!r&&e.map(e=>(0,t.jsx)(ep,{category:e,isSelected:e.value===a,onSelect:s},e.value)),r&&(0,t.jsxs)(t.Fragment,{children:[e.slice(0,2).map(e=>(0,t.jsx)(ep,{category:e,isSelected:e.value===a,onSelect:s},e.value)),(0,t.jsx)(eu,{categories:e.slice(2),onSelect:s,selected:a})]})]}):null};var e_=e.i(449605);let ef=({onCategoryLevel1Change:e,onCategoryLevel2Change:a,onMainAttributeChange:s,defaultValues:r})=>{let{t:l,i18n:o}=(0,k.useTranslation)(),{categoriesLevel1:n,categoriesLevel2:d,mainAttributeOptions:c}=Q({t:l,locale:o.language,categoriesInfo:x.categoriesInfo,marketplace:x.marketplace}),[p,m]=(0,i.useState)(r.categoryLevel1),[u,h]=(0,i.useState)(r.categoryLevel2),[g,_]=(0,i.useState)(),f=(0,i.useCallback)(e=>{h(e?.value),a(e?.value)},[a]),y=(0,i.useCallback)(e=>{_(e?.value),s(e?.value)},[s]),v=(0,i.useMemo)(()=>n.getOptions(),[p]),b=(0,i.useMemo)(()=>v.find(e=>e.value===p),[p]),W=(0,i.useMemo)(()=>p?d.getOptions({categoryLevel1:{value:p,label:b?.label??""}},{shouldAddAllOption:e=>e>1&&v.length>1}):[],[p,v.length]),j=(0,i.useMemo)(()=>p&&u?c.getOptions({categoryLevel1:{value:p,label:b?.label??""},categoryLevel2:{value:u,label:u}}):[],[p,u]),L=v.length>1,S=!L&&W.length>1,C=!S&&W.length>1||!p,I=d.getPlaceholder(p),N=c.getPlaceholder(u),T=L?{categories:v,onChange:a=>{a!==p&&(m(a),h(void 0),e(a))},value:p}:S?{categories:W,onChange:e=>{h(e),a(e)},value:u}:void 0;return(0,i.useEffect)(()=>{u||1!==W.length||f(W[0])},[p,v.length,T]),(0,t.jsxs)(t.Fragment,{children:[T&&(0,t.jsx)(eg,{categories:T.categories??[],value:T.value,onSelect:T.onChange}),(0,t.jsxs)("div",{className:e_.default.selectsWrapper,children:[C&&
1(0,t.jsx)(ed.CategoriesAutocomplete,{disabled:!p,name:"categoryLevel2",onSelect:f,options:W,placeholder:l(I),focusPlaceholder:l("common:startTyping"),header:l(I),currentValue:u,"data-testid":"home-search-categoryLevel2-dropdown",containedSuggestions:!0}),(0,t.jsx)(ed.CategoriesAutocomplete,{disabled:!u||j?.length<=1,name:"mainAttribute",onSelect:y,options:j,placeholder:l(N),focusPlaceholder:l("common:startTyping"),header:l(N),currentValue:g,"data-testid":"home-search-mainAttribute-dropdown",containedSuggestions:!0})]})]})};var ey=e.i(667594),ev=e.i(532703);let ex=({error:e,setValue:a,watch:s})=>{let{t:r}=(0,k.useTranslation)(),l=(0,i.useCallback)(e=>{"object"==typeof e&&(0,ey.saveUserLastSearchLocationToCookie)(e),a("location",e,{shouldValidate:!0})},[a]);return(0,t.jsx)(ev.SearchLocationAutocomplete,{error:e,placeholder:r("home:locationInputPlaceholder"),header:r("home:locationInputHeader"),onChange:l,name:"location",currentValue:s("location")})};var eb=e.i(773227);let eW=({error:e,setValue:a})=>{let{t:s}=(0,k.useTranslation)(),r=(0,i.useCallback)(e=>{a("keyword",e?.currentTarget.value,{shouldValidate:!0})},[a]);return(0,t.jsx)(eb.Field,{error:e,children:(0,t.jsx)(j.Input,{name:"keyword",placeholder:s("home:searchKeywordPlaceholder"),onChange:r,"data-testid":"home-search-keyword-input",leftIcon:(0,t.jsx)(L.Icon,{name:"interface-search",size:"md",className:"text-brand"}),"aria-invalid":!!e})})};var ej=e.i(713984),eL=e.i(942231);let ek=({children:e,category:a,listingType:r})=>{let{t:j}=(0,n.useTranslation)(),{createSearchUrl:L}=(()=>{let{t:e}=(0,k.useTranslation)();return{createSearchUrl:(0,i.useCallback)(a=>{let t,s,r,l;if(a.listingType&&(r=a.listingType),a.categoryLevel1&&(s=a.categoryLevel1),a.categoryLevel2&&(s=a.categoryLevel2),a.mainAttribute){let e=(0,G.findCategoryMainAttribute)(x.categoriesInfo,a.categoryLevel2);t=e?{[e.name]:a.mainAttribute}:void 0}return a.location&&"object"==typeof a.location&&(l=(0,ej.addRadiusToLocation)(a.location,x.marketplace)),x.routing.listingsSearch(e,{...t,category:s,listingType:r,location:l,...a.keyword?{keyword:a.keyword}:{}})},[])}})(),S=(0,l.useRouter)(),C=(0,i.useCallback)(e=>{let a=L({...e,categoryLevel2:"all"===e.categoryLevel2?"":e.categoryLevel2,mainAttribute:"all"===e.mainAttribute?"":e.mainAttribute});S.push({...a,query:{...a.query,pmg_source:f.SearchPmgSource.HomepageSearchBox}},a)},[L]),{defaultValues:I,onCategoryLevel1Change:N,onCategoryLevel2Change:T,onMainAttributeChange:A,onSearch:w,form:H}=(({context:e,categoriesInfo:a,marketplace:t,onSubmit:s})=>{let r=(0,u.findPreselectedActiveCategories)({marketplace:t}),l={...(0,m.findCategoryLevels)(e?.category),listingType:e?.listingType||(0,p.findDefaultListingTypeByCategory)({category:e?.category,categoriesInfo:a})};!l.categoryLevel1&&r.categoryLevel1&&(l.categoryLevel1=r.categoryLevel1),!l.categoryLevel2&&r.categoryLevel2&&(l.categoryLevel2=r.categoryLevel2),!l.listingType&&l.categoryLevel1&&(l.listingType=(0,p.findDefaultListingTypeByCategory)({category:l.categoryLevel1,categoriesInfo:a}));let o=(0,i.useCallback)((0,h.validationResolverFactory)(c.default.object({location:g.SearchLocationV3AutocompleteSchema,keyword:c.default.string().notRequired().min(3).nullable().transform(e=>e||null).max(100)})),[]),n=(0,d.useForm)({mode:"onChange",resolver:o,defaultValues:l}),{setValue:_,getValues:f,handleSubmit:y}=n,v=(0,i.useCallback)(e=>{e!==f().mainAttribute&&_("mainAttribute",e)},[_]),x=(0,i.useCallback)(e=>{let a=f(),s=t.listingTypesByCategory,r=s[e]?.[0];e!==a.categoryLevel2&&(_("categoryLevel2",e),_("listingType",r),a.mainAttribute&&v())},[_,v]),b=(0,i.useCallback)(e=>{let t=f();if(e!==t.categoryLevel1){let s=(0,p.findDefaultListingTypeByCategory)({category:e,categoriesInfo:a});e===l?.categoryLevel1&&(s=l?.listingType),_("categoryLevel1",e),_("listingType",s),t.categoryLevel2&&x(),t.mainAttribute&&v()}},[l,_,x,v]);return(0,i.useEffect)(()=>{_("categoryLevel1",l.categoryLevel1),_("categoryLevel2",l.categoryLevel2),_("listingType",l.listingType)},[l.categoryLevel1,l.categoryLevel2,l.listingType]),{defaultValues:l,onCategoryLevel1Change:b,onCategoryLevel2Change:x,onMainAttributeChange:v,onSearch:y(s),form:n}})({context:{category:a,listingType:r},categoriesInfo:x.categoriesInfo,marketplace:x.marketplace,onSubmit:C});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{children:(0,t.jsx)("link",{rel:"preload",as:"image",href:(0,b.getStaticHash)(W.assets.homepageBanner),fetchPriority:"high"})}),(0,t.jsxs)("div",{className:eL.default.searchBoxWrapper,children:[(0,t.jsx)(v.AdSlot,{unit:y.AdSlotUnit.HomeWallpaper}),(0,t.jsx)("div",{className:eL.default.bannerWrapper,children:(0,t.jsxs)("picture",{className:eL.default.pictureWrapper,children:[(0,t.jsx)("source",{media:"(min-width: 768px)",srcSet:(0,b.getStaticHash)(W.assets.homepageBanner),type:"image/webp"}),(0,t.jsx)("source",{media:"(min-width: 768px)",srcSet:(0,b.getStaticHash)(W.assets.homepageBannerFallback),type:"image/jpeg"}),(0,t.jsx)("source",{media:"(max-width: 767px)",sizes:"1px",srcSet:`${(0,b.getStaticHash)(W.assets.blank)} 1w`,type:"image/jpeg"}),(0,t.jsx)("img",{src:(0,b.getStaticHash)(W.assets.homepageBanner),alt:j("home:bannerAlt"),className:eL.default.bannerImage,fetchPriority:"high",loading:"eager"})]})}),(0,t.jsxs)("div",{className:eL.default.contentWrapper,children:[e&&(0,t.jsx)("div",{className:eL.default.childrenWrapper,children:e}),(0,t.jsxs)("form",{className:(0,s.default)(eL.default.childrenWrapper,eL.default.form),onSubmit:w,children:[(0,t.jsx)("div",{className:eL.default.wizardInputWrapper,children:(0,t.jsx)(en,{defaultValues:I,onCategoryLevel1Change:N,onCategoryLevel2Change:T,onMainAttributeChange:A})}),(0,t.jsx)("div",{className:eL.default.wizardSelectWrapper,children:(0,t.jsx)(ef,{defaultValues:I,onCategoryLevel1Change:N,onCategoryLevel2Change:T,onMainAttributeChange:A})}),x.marketplace.homepageKeywordSearch&&(0,t.jsx)("div",{className:eL.default.keywordWrapper,children:(0,t.jsx)(eW,{error:H.formState.errors.keyword,setValue:H.setValue})}),(0,t.jsxs)("div",{className:eL.default.locationWrapper,children:[(0,t.jsx)("div",{className:"flex-1 min-w-0","data-testid":"home-search-location-input",children:(0,t.jsx)(ex,{error:H.formState.errors.location,setValue:H.setValue,wat
1ch:H.watch})}),(0,t.jsx)(_.Button,{type:"submit","data-testid":"home-search-box-button",children:j("common:search")})]})]})]})]})]})};var eS=e.i(309007),eC=e.i(925905),eI=e.i(947177),eN=e.i(714729),eT=e.i(738028);let eA=(e,a)=>e.category?.key?`homepage-category-${e.category.key.replace(".","-")}-${a}`:`homepage-category-all-${a}`,ew=({homepageCategories:e})=>e.length?(0,t.jsx)("div",{className:eT.default.mainCategoriesWrapper,children:(0,t.jsx)("div",{className:eT.default.mainCategoriesInnerWrapper,children:(0,t.jsx)("div",{className:eT.default.listWrapper,children:e.map(e=>(0,t.jsxs)(eI.Link,{href:{pathname:e.url,query:{pmg_source:f.SearchPmgSource.HomepageCategoryLink}},as:e.url,className:eT.default.categoryLink,"data-testid":eA(e,"link"),children:[(0,t.jsx)("div",{className:eT.default.imageWrapper,children:e.category?.key?(0,t.jsx)(ee.CategoryIcon,{category:e.category.key,testId:eA(e,"icon")}):e.icon?.url?(0,t.jsx)(eN.Image,{src:e.icon.url,alt:e.name,width:48,height:48,"data-testid":eA(e,"icon")}):(0,t.jsx)(ee.CategoryIcon,{category:"AllCategories",testId:eA(e,"icon")})}),(0,t.jsx)("span",{"data-testid":eA(e,"text"),children:e.name})]},e.url))})})}):null;var eH=e.i(731502);let ez=({icon:e,title:a,description:s,background:r,url:l,"data-testid":i})=>r?.url&&l?(0,t.jsxs)("div",{className:eH.default.contentWrapper,"data-testid":i,children:[(0,t.jsx)("div",{className:eH.default.imageWrapper,children:(0,t.jsx)(eN.Image,{src:r.url,fill:!0,alt:a,objectFit:"contain"})}),(0,t.jsx)("div",{className:eH.default.textWrapper,children:(0,t.jsx)("span",{className:eH.default.title,"data-testid":i?`${i}-title`:void 0,children:a})}),(0,t.jsx)("div",{className:eH.default.linksWrapper,children:(0,t.jsx)(eI.Link,{href:l,variant:"primary",size:"medium",target:"_blank",rel:"noopener noreferrer","data-testid":i?`${i}-link`:void 0,children:s})})]}):(0,t.jsxs)("div",{className:eH.default.wrapper,"data-testid":i,children:[(0,t.jsx)(eN.Image,{src:e.url,width:60,height:60,unoptimized:!0,alt:a}),(0,t.jsx)("h3",{className:eH.default.title,"data-testid":i?`${i}-title`:void 0,children:a}),(0,t.jsx)("p",{className:eH.default.description,"data-testid":i?`${i}-description`:void 0,children:s})]});var eP=e.i(595681);let eB=({trustSafetyInfo:e})=>e&&e.trustSafetyInfoItems.length?(0,t.jsxs)("div",{className:eP.default.wrapper,"data-testid":"home-trust-safety-info",children:[e.title&&e.title.trim()&&(0,t.jsx)("h2",{className:eP.default.title,"data-testid":"trust-safety-title",dangerouslySetInnerHTML:{__html:e.title}}),e.description&&(0,t.jsx)("p",{className:eP.default.description,"data-testid":"trust-safety-description",children:e.description}),e.caption&&(0,t.jsx)("p",{className:eP.default.caption,"data-testid":"trust-safety-caption",children:e.caption}),(0,t.jsx)("div",{className:eP.default.items,"data-testid":"trust-safety-items",children:e.trustSafetyInfoItems.map((e,a)=>(0,t.jsx)(ez,{icon:e.icon,title:e.title,description:e.description,background:e.background,url:e.url,"data-testid":`trust-safety-item-${a}`},e.title))})]}):null,eO=()=>{let{t:e}=(0,k.useTranslation)();return(0,t.jsxs)("div",{className:"flex flex-col rounded-t-2xl bg-surface-invert px-200 pb-300 md:-mb-300 md:px-300 md:pb-500 md:pt-300","data-testid":"home-intro",children:[(0,t.jsx)("h1",{className:"mb-200 font-display-h2-palm text-content-invert md:font-display-h2-desk","data-testid":"home-intro-title",children:e("home:introTitle")}),(0,t.jsx)("p",{className:"font-display-h4 text-border-success md:font-display-h3-desk","data-testid":"home-intro-subtitle",children:e("home:introSubtitle")})]})};var eM=e.i(526742),eq=e.i(808728),eF=e.i(514190);let eV=({homepagePromos:e})=>{let{t:a}=(0,k.useTranslation)();return 0===e.length?null:(0,t.jsx)("div",{className:eF.default.promosWrapper,"data-testid":"home-promos",children:e.map((e,r)=>(0,t.jsxs)("div",{className:eF.default.promoWrapper,"data-testid":`promo-block-${r}`,children:[(0,t.jsxs)("div",{className:eF.default.headingWrapper,children:[(0,t.jsx)("h2",{className:eF.default.headingText,"data-testid":`promo-title-${r}`,children:e.title}),(0,t.jsx)(eI.Link,{variant:"link",href:{pathname:e.href,query:{pmg_source:f.SearchPmgSource.HomepageRecommendationWidget}},as:e.href,className:"no-underline","data-testid":`promo-see-all-${r}`,children:a("home:seeAll")})]}),(0,t.jsx)("div",{className:eF.default.contentWrapper,children:(0,t.jsx)("div",{className:eF.default.listWrapper,children:e.items.map((e,a)=>(0,t.jsx)(eI.Link,{href:{pathname:e.href,query:{pmg_source:f.SearchPmgSource.HomepageRecommendationWidget}},as:e.href,title:e.label,className:eF.default.promoLink,"data-testid":`promo-item-${r}-${a}`,children:(0,t.jsxs)(eq.Card,{children:[(0,t.jsx)(eM.AspectRatio,{ratio:1.5,children:(0,t.jsx)(eN.Image,{src:e.image||"",alt:e.label,title:e.label,objectFit:"cover",fill:!0,unoptimized:!0})}),(0,t.jsx)(eq.CardHeader,{className:"min-h-900",children:(0,t.jsx)("span",{className:(0,s.default)(eF.default.clampedText,"line-clamp-2"),children:e.label})})]})},e.href))})})]},e.href))})};var eD=e.i(326737),eX=e.i(623590);let e$=({articles:e})=>{let{t:a}=(0,k.useTranslation)();return 0===e.length?null:(0,t.jsxs)("div",{className:eX.default.articlesWrapper,"data-testid":"home-latest-articles",children:[(0,t.jsxs)("div",{className:eX.default.articlesHeadingWrapper,children:[(0,t.jsx)("h2",{className:eX.default.articlesHeading,"data-testid":"latest-articles-heading",children:a("home:latestArticles")}),(0,t.jsx)(eI.Link,{variant:"link",href:x.routing.articles,className:"no-underline","data-testid":"latest-articles-see-all",children:a("home:seeAll")})]}),(0,t.jsx)("div",{className:eX.default.articlesTileWrapper,children:(0,t.jsx)("div",{className:eX.default.articlesTileInnerWrapper,children:e.map(e=>(0,t.jsx)(eD.ArticleTile,{article:e,className:eX.default.articleTileWrapper},e.title))})}),(0,t.jsx)("div",{className:eX.default.viewAllWrapper,children:(0,t.jsx)(eI.Link,{href:x.routing.articles,variant:"primary",size:"medium","data-testid":"latest-articles-view-all",children:a("home:viewAllArticles")})})]})};var eE=e.i(735785);let eR=({mostPopularLinks:e})=>{let[a,r]=(0,i.useState)(0);return 0===e.length?null:(0,t.jsxs)("div",{className:eE.default.popularWrapper,"data-testid":"most-popular-wrapper",children:[(0,t.jsx)("div",{className:eE.default.pillsWrapper,children:(0,t.jsx)("div",{className:eE.default.pillsInnerWrapper,children:e.map((e,s)=>(0,t.jsx)(_.Button,{variant:s===a?"primary":"outline",onClick:()=>r(s),"data-testid":`most-popular-tab-${e.title.toLowerCase()}`,children:e.title},e.title))})}),(0,t.jsx)("div",{className:eE.default.listWrapper,children:e.map(({subtitle:e,links:r},l)=>(0,t.jsxs)("div",{className:(0,s.default)(eE.default.itemsWrapper,{[eE.default.itemsWrapperVisible]:l===a}),children:[(0,t.jsx)("h2",{className:eE.default.itemsTitle,"data-testid":`most-popular-title-${e.toLowerCase().replace(/\s+/g,"-")}`,children:e}),(0,t.jsx)("div",{className:eE.default.linksWrapper,children:r.map(({label:e,href:a})=>(0,t.jsx)(eI.Link,{href:a,className:"link-invisible block whitespace-normal py-200","data-testid":"most-popular-link",children:e},a))})]},l))})]})};var eZ=e.i(264566),eG=e.i(701219);let eY=()=>{let{t:e}=(0,k.useTranslation)();return(0,t.jsxs)("div",{className:eG.default.helpDeskWrapper,"data-testid":"home-help-desk-banner",children:[(0,t.jsx)("div",{className:eG.default.imageWrapper,children:(0,t.jsx)(eN.Image,{src:W.assets.helpDesk,alt:e("common:image"),objectFit:"contain",fill:!0})}),(0,t.jsxs)("div",{className:eG.default.contentWrapper,children:[(0,t.jsx)("span",{className:eG.default.title,"data-testid":"help-desk-title",children:e("helpDesk:title")}),(0,t.jsx)("span",{className:eG.default.description,"data-testid":"help-desk-description",children:e("helpDesk:description")}),(0,t.jsxs)("div",{className:eG.default.linksWrapper,children:[(0,t.jsx)(eI.Link,{href:eZ.externalLinks.support,variant:"primary",size:"large",target:"_blank",rel:"noopener noreferrer","data-testid":"help-desk-support-link",children:e("helpDesk:learnMoreLink")}),(0,t.jsx)(eI.Link,{href:eZ.externalLinks.newSupportTicket,variant:"secondary",size:"large",target:"_blank",rel:"noopener noreferrer","data-testid":"help-desk-ticket-link",children:e("helpDesk:needHelpLink")})]})]})]})};var eU=e.i(139926),eK=e.i(440979);let eJ=()=>{let{t:e}=(0,k.useTranslation)(),{makeCanonical:a}=(0,eU.useMetaBuilder)(),s={title:e("home:pageTitle"),description:e("home:pageDescription"),url:a(x.routing.homepage)};
1return(0,t.jsx)(eK.SeoHead,{title:s.title,description:s.description,canonicalUrl:s.url,robots:{noindex:!1,nofollow:!1}})};var eQ=e.i(919009),e0=e.i(141911);e.s(["__N_SSG",0,!0,"default",0,({homepageCategories:e,homepagePromos:a,latestArticles:l,mostPopularLinks:i,seoLinks:o,targeting:n,trustSafetyInfo:d})=>(0,t.jsx)(eS.AdManagerWrapper,{targeting:n,children:(0,t.jsxs)(eQ.ModalController,{children:[(0,t.jsx)(eJ,{}),(0,t.jsx)(ek,{children:(0,t.jsx)(eO,{})}),(0,t.jsxs)(r.SingleColumnLayout,{children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col pb-300",children:[(0,t.jsx)(ew,{homepageCategories:e}),x.marketplace.ads.atfTop&&(0,t.jsx)(v.AdSlot,{unit:y.AdSlotUnit.Atf,className:(0,s.default)(e0.default.adSlotMain,e0.default.atfTop)}),(0,t.jsxs)("div",{className:"flex flex-col",children:[!x.marketplace.ads.atfTop&&(0,t.jsx)(v.AdSlot,{unit:y.AdSlotUnit.Atf,className:e0.default.adSlotMain}),(0,t.jsx)(eB,{trustSafetyInfo:d})]}),(0,t.jsx)("div",{className:"mt-500 pt-300",children:(0,t.jsx)(eY,{})}),(0,t.jsx)(v.AdSlot,{unit:y.AdSlotUnit.Btf1,className:e0.default.adSlotSecondary}),(0,t.jsx)(e$,{articles:l}),(0,t.jsx)(eV,{homepagePromos:a}),(0,t.jsx)(v.AdSlot,{unit:y.AdSlotUnit.Btf2,className:e0.default.adSlotSecondary})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col pt-300",children:[(0,t.jsx)(eC.SeoLinks,{seoLinks:o}),(0,t.jsx)(eR,{mostPopularLinks:i})]})]})]})})],105102)},644040,(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",()=>e.r(105102)]),a.hot&&a.hot.dispose(function(){window.__NEXT_P.push(["/"])})},914383,e=>{e.v({categoryLabel:"SearchWizardCategoryCard-module-scss-module__E-ajfa__categoryLabel",categorySelected:"SearchWizardCategoryCard-module-scss-module__E-ajfa__categorySelected",categoryWrapper:"SearchWizardCategoryCard-module-scss-module__E-ajfa__categoryWrapper"})},813689,e=>{e.v({wrapper:"SearchWizardCategoryCards-module-scss-module__1xKdLq__wrapper"})},449605,e=>{e.v({selectsWrapper:"SearchWizardSelect-module-scss-module__7YF05q__selectsWrapper"})},584729,e=>{e.v({searchWrapper:"FiltersWizardSearch-module-scss-module__GFHx9G__searchWrapper"})},304468,e=>{e.v({body:"FiltersWizard-module-scss-module__hY-ZXW__body",contentWrapper:"FiltersWizard-module-scss-module__hY-ZXW__contentWrapper",header:"FiltersWizard-module-scss-module__hY-ZXW__header",headerContainer:"FiltersWizard-module-scss-module__hY-ZXW__headerContainer",headerText:"FiltersWizard-module-scss-module__hY-ZXW__headerText",listItem:"FiltersWizard-module-scss-module__hY-ZXW__listItem",listItemEmpty:"FiltersWizard-module-scss-module__hY-ZXW__listItemEmpty",listItemLabel:"FiltersWizard-module-scss-module__hY-ZXW__listItemLabel",listItemLabelWithIcon:"FiltersWizard-module-scss-module__hY-ZXW__listItemLabelWithIcon",listItemLabelWrapper:"FiltersWizard-module-scss-module__hY-ZXW__listItemLabelWrapper",listWrapper:"FiltersWizard-module-scss-module__hY-ZXW__listWrapper",stepWrapper:"FiltersWizard-module-scss-module__hY-ZXW__stepWrapper"})},813686,e=>{e.v({selectionParentText:"SearchWizardInput-module-scss-module__sA5W0G__selectionParentText",selectionText:"SearchWizardInput-module-scss-module__sA5W0G__selectionText",selectionWrapper:"SearchWizardInput-module-scss-module__sA5W0G__selectionWrapper"})},942231,e=>{e.v({autocompleteWrapper:"SearchBox-module-scss-module__e3mchW__autocompleteWrapper",bannerImage:"SearchBox-module-scss-module__e3mchW__bannerImage",bannerWrapper:"SearchBox-module-scss-module__e3mchW__bannerWrapper",childrenWrapper:"SearchBox-module-scss-module__e3mchW__childrenWrapper",contentWrapper:"SearchBox-module-scss-module__e3mchW__contentWrapper",form:"SearchBox-module-scss-module__e3mchW__form",keywordWrapper:"SearchBox-module-scss-module__e3mchW__keywordWrapper",locationWrapper:"SearchBox-module-scss-module__e3mchW__locationWrapper",pictureWrapper:"SearchBox-module-scss-module__e3mchW__pictureWrapper",searchBoxWrapper:"SearchBox-module-scss-module__e3mchW__searchBoxWrapper",wizardInputWrapper:"SearchBox-module-scss-module__e3mchW__wizardInputWrapper",wizardSelectWrapper:"SearchBox-module-scss-module__e3mchW__wizardSelectWrapper"})}]);
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.