PageSourceSearch

https://www.modo.com.ar/_next/static/chunks/pages/ayuda/preguntas-frecuentes-1790799760557-f3de4321027d2cc5.js

js modo.com.ar collected 2026-10-02 05:49:17 UTC 14,565 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[855],{34686:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>b,default:()=>x});var a=r(59827),l=r(72223),i=r(4452),n=r(72639),s=r(60081),o=r(78161),c=r(99240),u=r(50839);function d(e){let t=e.toLowerCase().normalize("NFD").replaceAll(/[̀-ͯ]/g,"").replaceAll("+","mas").replaceAll(/[^a-z0-9]+/g,"-");return t.startsWith("-")&&(t=t.slice(1)),t.endsWith("-")&&(t=t.slice(0,-1)),t}function h({article:e,initialOpen:t=!1,linkToDetail:r=!1}){let[i,n]=(0,l.useState)(t),s=(0,l.useMemo)(()=>(0,c.pn)(e.content),[e.content]),o=`faq-${e.slug}`,u=`faq-btn-${e.slug}`,d=`faq-content-${e.slug}`;return(0,a.FD)("div",{id:o,className:"faq-item border-b border-tertiary-Gray20 last:border-b-0 scroll-mt-24",children:[(0,a.Y)("h3",{className:"m-0",children:(0,a.FD)("button",{id:u,onClick:function(){let e=!i;n(e),e?globalThis.history.replaceState(null,"",`#${o}`):globalThis.history.replaceState(null,"",globalThis.location.pathname)},className:"w-full flex items-center justify-between py-4 text-left gap-4 group cursor-pointer","aria-expanded":i,"aria-controls":d,children:[(0,a.Y)("span",{className:"text-body-medium text-tertiary-Gray80 group-hover:text-primary-PaymentDefault transition-colors",children:e.title}),(0,a.Y)("svg",{className:`w-5 h-5 flex-shrink-0 text-tertiary-Gray40 transition-transform duration-200 ${i?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,a.Y)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),(0,a.FD)("section",{id:d,"aria-labelledby":u,hidden:!i,className:`text-body-regular text-tertiary-Gray60 leading-relaxed faq-answer overflow-hidden ${i?"pb-4":""}`,children:[(0,a.Y)("div",{dangerouslySetInnerHTML:{__html:s}})," ",r&&(0,a.Y)("div",{className:"mt-3",children:(0,a.Y)("a",{href:`/ayuda/preguntas-frecuentes/${e.slug}`,className:"inline-flex items-center gap-1.5 text-overline-l-regular text-tertiary-Gray40 hover:text-primary-PaymentDefault transition-colors",children:"Ver respuesta completa"})})]})]})}function m({category:e,hideHeader:t=!1,linkToDetail:r=!1}){let[i,n]=(0,l.useState)("");(0,l.useEffect)(()=>{if(void 0===globalThis.window)return;let e=globalThis.location.hash.replace("#","");if(n(e),e){let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView({behavior:"smooth",block:"start"}),100)}},[]);let s=e.subcategories&&e.subcategories.length>1;return(0,a.FD)("div",{id:`category-${e.id}`,className:"scroll-mt-24",children:[!t&&(0,a.FD)("div",{className:"mb-3",children:[(0,a.Y)("h2",{className:"faq-cat-header text-h6-mobile font-bold text-tertiary-Gray80",children:e.title}),e.description&&(0,a.Y)("p",{className:"text-caption-regular text-tertiary-Gray60 mt-1",children:e.description})]}),s?(0,a.Y)("div",{className:"space-y-6",children:e.subcategories.map(e=>(0,a.FD)("div",{id:`subcategory-${e.id}`,className:"scroll-mt-24",children:[(0,a.FD)("h3",{className:"text-body-medium font-semibold text-tertiary-Gray60 mb-2 flex items-center gap-2",children:[e.title,(0,a.FD)("span",{className:"text-caption-regular text-tertiary-Gray40 font-normal",children:["(",e.articles.length,")"]})]}),(0,a.Y)("div",{className:"faq-card bg-white rounded-2xl border border-tertiary-Gray20 px-5",children:e.articles.map(e=>(0,a.Y)(h,{article:e,initialOpen:i===`faq-${e.slug}`,linkToDetail:r},e.slug))})]},e.id))}):(0,a.Y)("div",{className:"faq-card bg-white rounded-2xl border border-tertiary-Gray20 px-5",children:e.articles.map(e=>(0,a.Y)(h,{article:e,initialOpen:i===`faq-${e.slug}`,linkToDetail:r},e.slug))})]})}function p({value:e,onChange:t,totalResults:r=0,showResults:i=!1,onServerResults:n}){let s=(0,l.useRef)(null),o=(0,l.useRef)(void 0),[c,u]=(0,l.useState)(!1),d=(0,l.useCallback)(e=>{if(n){if(e.trim().length<2)return void n([]);u(!0),fetch(`/api/faqs/search?q=${encodeURIComponent(e.trim())}`).then(e=>e.json()).then(e=>n(e.results??[])).catch(()=>n([])).finally(()=>u(!1))}},[n]);(0,l.useEffect)(()=>(o.current&&clearTimeout(o.current),o.current=setTimeout(()=>d(e),1e3),()=>{o.current&&clearTimeout(o.current)}),[e,d]);let h=e.trim().length>0,m=1===r?"":"s",f=0===r?"No se encontraron resultados.":`${r} resultado${m} encontrado${m}.`;return(0,a.FD)("div",{className:"w-full",children:[(0,a.FD)("div",{className:"relative",children:[(0,a.Y)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-tertiary-Gray40 pointer-events-none",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,a.Y)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}
1),(0,a.Y)("input",{ref:s,type:"search",value:e,onChange:e=>t(e.target.value),placeholder:"Buscar en las preguntas frecuentes...",className:`w-full py-3 pl-10 ${h?"pr-10":"pr-4"} rounded-2xl border border-tertiary-Gray20 bg-white text-body-regular text-tertiary-Gray80 placeholder:text-tertiary-Gray40 focus:outline-none focus:border-primary-PaymentDefault focus:ring-1 focus:ring-primary-PaymentDefault transition-colors`,"aria-label":"Buscar preguntas frecuentes",role:"searchbox","aria-describedby":i&&h?"faq-search-status":void 0}),h&&(0,a.Y)("button",{onClick:()=>{t(""),s.current?.focus()},className:"absolute right-3 top-1/2 -translate-y-1/2 w-6 h-6 rounded-full bg-tertiary-Gray8 flex items-center justify-center hover:bg-tertiary-Gray20 transition-colors","aria-label":"Limpiar b\xfasqueda",children:(0,a.Y)("svg",{className:"w-3.5 h-3.5 text-tertiary-Gray60",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,a.Y)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),i&&(0,a.FD)("div",{id:"faq-search-status",role:"status","aria-live":"polite","aria-atomic":"true",className:`mt-2 text-caption-regular text-tertiary-Gray60 transition-opacity ${h?"opacity-100":"opacity-0"}`,children:[h&&c&&"Buscando...",h&&!c&&f]})]})}u.env.SALESFORCE_URL,u.env.SALESFORCE_CLIENT_ID,u.env.SALESFORCE_CLIENT_SECRET,u.env.SALESFORCE_FAQ_CACHE_TTL_SEC;var f=r(60589),y=r(90509);let g="categoria";var b=!0;function x({faqData:e,navFooterData:t}){let r=(0,i.useRouter)();(0,s.z)();let{categoryIdByUrlSlug:u,urlSlugByCategoryId:h}=(0,l.useMemo)(()=>{let t=new Map,r=new Map;for(let a of e.categories){let e=d(a.id)||a.id;t.set(e,a.id),t.set(a.id,a.id),r.set(a.id,e)}return{categoryIdByUrlSlug:t,urlSlugByCategoryId:r}},[e.categories]),b=(0,l.useCallback)(e=>{if("string"!=typeof e||0===e.length)return null;let t=u.get(e);return t||(u.get(d(e))??null)},[u]),[v,N]=(0,l.useState)(()=>"string"==typeof r.query.q?r.query.q:""),[w,Y]=(0,l.useState)(()=>b(r.query[g])),[A,D]=(0,l.useState)([]),C=r.query.q;(0,l.useEffect)(()=>{"string"==typeof C&&C!==v&&N(C)},[C]);let k=r.query[g];(0,l.useEffect)(()=>{if(!r.isReady)return;let e=b(k);Y(t=>t===e?t:e)},[k,r.isReady,b]);let G=(0,l.useCallback)(e=>{if(!r.isReady)return;let{[g]:t,...a}=r.query,l={...a};e&&(l[g]=h.get(e)??e),r.push({pathname:r.pathname,query:l},void 0,{shallow:!0,scroll:!1})},[r,h]),q=(0,l.useCallback)(e=>{let t=w===e?null:e;Y(t),G(t)},[w,G]),T=(0,l.useCallback)(e=>{N(e),e.trim().length>0&&null!==w&&(Y(null),G(null))},[w,G]),$=(0,l.useCallback)(e=>D(e),[]),E=v.trim().length>0,S=(0,l.useMemo)(()=>{if(!E)return e.categories;let t=v.toLowerCase().trim(),r=e=>e.title.toLowerCase().includes(t)||(0,c.$J)(e.content).toLowerCase().includes(t);return e.categories.map(e=>{let t=(e.subcategories??[]).map(e=>({...e,articles:e.articles.filter(r)})).filter(e=>e.articles.length>0),a=t.flatMap(e=>e.articles);return{...e,subcategories:t,articles:a}}).filter(e=>e.articles.length>0)},[e.categories,v,E]),L=(0,l.useMemo)(()=>{if(!E||0===A.length)return[];let t=new Set(e.categories.flatMap(e=>e.articles.map(e=>e.slug)));return A.filter(e=>!t.has(e.slug))},[A,e.categories,E]),F=S.reduce((e,t)=>e+t.articles.length,0)+L.length,_=w?S.filter(e=>e.id===w):S;return(0,a.Y)(n.A,{navFooterData:t,showNav:!0,showFooter:!0,noMarginBottom:!0,children:(0,a.FD)("main",{className:"faq-main--list max-w-[1260px] mx-auto px-4 py-12 font-red-hat",children:[(0,a.Y)("div",{className:"faq-hide-sdk",children:(0,a.Y)(o.A,{items:[{label:"Inicio",href:"/"},{label:"Ayuda",href:"/ayuda"},{label:"Preguntas Frecuentes"}]})}),(0,a.Y)("h1",{className:"faq-title text-h4-web font-bold text-tertiary-Gray80 mb-2",children:e.title}),(0,a.Y)("p",{className:"faq-description text-p1-mobile text-tertiary-Gray60 mb-8",children:e.description}),(0,a.Y)("div",{className:"faq-search mb-8",children:(0,a.Y)(p,{value:v,onChange:T,totalResults:F,showResults:E,onServerResults:$})}),!E&&e.categories.length>1&&(0,a.FD)("nav",{className:"faq-hide-sdk mb-8 flex flex-wrap gap-2","aria-label":"Filtrar por c
1ategor\xeda",children:[(0,a.Y)("button",{onClick:()=>q(null),className:`px-4 py-2 rounded-lg text-caption-medium transition-colors ${null===w?"bg-primary-PaymentDefault text-white":"bg-tertiary-Gray8 text-tertiary-Gray60 hover:bg-tertiary-Gray20"}`,"aria-pressed":null===w,children:"Todas"}),e.categories.map(e=>(0,a.Y)("button",{onClick:()=>q(e.id),className:`px-4 py-2 rounded-lg text-caption-medium transition-colors ${w===e.id?"bg-primary-PaymentDefault text-white":"bg-tertiary-Gray8 text-tertiary-Gray60 hover:bg-tertiary-Gray20"}`,"aria-pressed":w===e.id,children:e.title},e.id))]}),(0,a.Y)("section",{"aria-label":"Preguntas frecuentes",children:0===_.length&&0===L.length?(0,a.FD)("div",{className:"text-center py-16",children:[(0,a.FD)("p",{className:"text-body-medium text-tertiary-Gray80 mb-1",children:["No encontramos resultados para “",v,"”"]}),(0,a.Y)("p",{className:"text-caption-regular text-tertiary-Gray60 mb-4",children:"Prob\xe1 con otros t\xe9rminos o explor\xe1 las categor\xedas."}),(0,a.Y)("button",{onClick:()=>N(""),className:"text-caption-medium text-primary-PaymentDefault hover:underline",children:"Ver todas las preguntas"})]}):(0,a.FD)("div",{className:"space-y-6 faq-fade-in",children:[_.map(e=>(0,a.Y)(m,{category:e,linkToDetail:!0},e.id)),L.length>0&&(0,a.FD)("div",{children:[(0,a.Y)("h2",{className:"text-h6-mobile font-semibold text-tertiary-Gray80 mb-4",children:"M\xe1s resultados"}),(0,a.Y)(y.A,{articles:L,showCategoryPill:!0})]})]},w??"all")}),(0,a.Y)("div",{className:"faq-hide-sdk",children:(0,a.Y)(f.A,{})})]})})}},60081:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});var a=r(72223),l=r(81025);function i(){(0,a.useEffect)(()=>{let e=()=>{let e=(0,l.ZA)();return e>0&&(document.documentElement.style.setProperty("--sdk-status-bar",`${e}px`),!0)};if(e())return;let t=0,r=setInterval(()=>{t+=1,(e()||t>=20)&&clearInterval(r)},100);return()=>clearInterval(r)},[])}},60589:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(59827);function l(){return(0,a.FD)("div",{className:"text-center py-8 border-t border-tertiary-Gray8",children:[(0,a.Y)("p",{className:"text-caption-regular text-tertiary-Gray60 mb-2",children:"\xbfNo encontraste lo que buscabas?"}),(0,a.Y)("a",{href:"https://ayuda.modo.com.ar/support/home",target:"_blank",rel:"noopener noreferrer",className:"text-caption-medium text-primary-PaymentDefault hover:underline transition-colors",children:"Contactar soporte"})]})}r(72223)},90509:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(59827);function l({articles:e,showCategoryPill:t=!1}){return(0,a.Y)("ul",{className:"space-y-3",children:e.map(e=>{let r=t&&!!e.categoryTitle;return(0,a.Y)("li",{children:(0,a.FD)("a",{href:`/ayuda/preguntas-frecuentes/${e.slug}`,className:"block p-4 rounded-2xl border border-tertiary-Gray20 hover:border-primary-PaymentDefault hover:shadow-sm transition-all",children:[r&&(0,a.Y)("span",{className:"text-overline-l-medium text-primary-PaymentDefault bg-tramado-VerdeMODO10 px-2 py-0.5 rounded-md text-xs",children:e.categoryTitle}),(0,a.Y)("p",{className:`text-body-medium text-tertiary-Gray80 ${r?"mt-2":""}`,children:e.title}),e.summary&&(0,a.Y)("p",{className:"text-caption-regular text-tertiary-Gray60 mt-1 line-clamp-2",children:e.summary})]})},e.slug)})})}r(72223)},95946:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ayuda/preguntas-frecuentes",function(){return r(34686)}])},99240:(e,t,r)=>{"use strict";r.d(t,{$J:()=>s,pn:()=>o}),r(50839);let a=new Set(["P","BR","B","STRONG","I","EM","U","A","UL","OL","LI","SPAN","DIV","IMG","H1","H2","H3","H4","H5","H6","TABLE","THEAD","TBODY","TR","TH","TD"]),l={A:new Set(["href","target","rel"]),IMG:new Set(["src","alt","width","height"])},i=new Set(["https:","data:"]),n=new Set(["https:","http:","mailto:","tel:"]);function s(e){let t="",r=!1;for(let a of e)"<"===a?r=!0:">"===a?r=!1:r||(t+=a);return t.trim()}function o(e){if(void 0===globalThis.window)return e.replaceAll(/<(\/?)([a-zA-Z][a-zA-Z0-9]*)\b([^>]*?)(\/?)>/g,(e,t,r,s,o)=>a.has(r.toUpperCase())?t?`</${r}>`:function(e,t,r){let a=e.toUpperCase(),s=function(e,t){let r=l[e],a=[];for(let[l,s]of t)r?.has(l)&&("IMG"!==e||"src"!==l||function(e){try{return i.has(new URL(e,"https://placeholder.invalid").protocol)}catch{return!1}}(s))&&("A"!==e||"href"!==l||function(e){try{return n.has(new URL(e,"https://placeholder.invalid").protocol)}catch{return!1}}(s))&&a.push(`${l}="${s.replaceAll("&","&amp;").replaceAll('"',"&quot;")}"`);return a}(a,function(e){let t,r=[],a=/([a-zA-Z][a-zA-Z0-9-]*)\s*=\s*(?:"([^"]*)"|'([^']*)')/g;for(;null!==(t=a.exec(e));)r.push([t[1].toLowerCase(),t[2]??t[3]??""]);return r}(t));if("A"===a){let t=s.find(e=>e.startsWith("href=")),r=t?[t]:[];return r.push('target="_blank"','rel="noopener noreferrer"'),`<${e} ${r.join(" ")}>`}let o=s.length?` ${s.join(" ")}`:"";return r?`<${e}${o}
1 />`:`<${e}${o}>`}(r,s,"/"===o):"");let t=new DOMParser().parseFromString(e,"text/html");return!function e(t){for(let r of Array.from(t.childNodes))if(r.nodeType===Node.ELEMENT_NODE){if(!a.has(r.tagName)){for(;r.firstChild;)t.insertBefore(r.firstChild,r);r.remove();continue}!function(e){let t=l[e.tagName];for(let r of Array.from(e.attributes))t?.has(r.name)||e.removeAttribute(r.name);if("IMG"===e.tagName){let t=e.getAttribute("src")??"";try{let r=new URL(t,"https://placeholder.invalid");i.has(r.protocol)||e.removeAttribute("src")}catch{e.removeAttribute("src")}}if("A"===e.tagName){let t=e.getAttribute("href")??"";try{let r=new URL(t,"https://placeholder.invalid");n.has(r.protocol)||e.removeAttribute("href")}catch{e.removeAttribute("href")}}}(r),"A"===r.tagName&&(r.setAttribute("target","_blank"),r.setAttribute("rel","noopener noreferrer")),e(r)}}(t.body),t.body.innerHTML}}},e=>{e.O(0,[3299,3858,6347,8590,8731,80,6423,636,6593,8792],()=>e(e.s=95946)),_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.