import{r as C}from"./BO9AmBA3.js";const s=C({customerCare:"",paymentShipping:"",faq:"",privacyStatement:"",generalTermsConditions:""});function v(i){const e=[];function f(n){var l;e.push(n),n!=null&&n.children&&((l=n==null?void 0:n.children)==null?void 0:l.length)>0&&n.children.forEach(f)}return i==null||i.forEach(f),e}function _(){function i(e){v(e.value).map(n=>{var l,h,m,u,p,d,t,a,k;if((h=(l=n==null?void 0:n.translated)==null?void 0:l.customFields)!=null&&h.technical_name_category_url&&(n!=null&&n.seoUrls))switch((u=(m=n==null?void 0:n.translated)==null?void 0:m.customFields)==null?void 0:u.technical_name_category_url){case"customer-care":s.customerCare=(p=n==null?void 0:n.seoUrls[0])==null?void 0:p.seoPathInfo;break;case"payment-shipping":s.paymentShipping=(d=n==null?void 0:n.seoUrls[0])==null?void 0:d.seoPathInfo;break;case"faq":s.faq=(t=n==null?void 0:n.seoUrls[0])==null?void 0:t.seoPathInfo;break;case"privacy-statement":s.privacyStatement=(a=n==null?void 0:n.seoUrls[0])==null?void 0:a.seoPathInfo;break;case"general-terms-conditions":s.generalTermsConditions=(k=n==null?void 0:n.seoUrls[0])==null?void 0:k.seoPathInfo;break}})}return{gatherLinksByTechnicalName:i,translatedLinks:s}}export{_ as u};