sass-template-common 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9485,7 +9485,7 @@ const n0 = (e) => /* @__PURE__ */ a(
|
|
|
9485
9485
|
/<iframe(?![^>]*\bloading=)[^>]*>/gi,
|
|
9486
9486
|
(n) => n.replace("<iframe", '<iframe loading="lazy"')
|
|
9487
9487
|
), s0 = (e) => e.replace(
|
|
9488
|
-
/<iframe(?![^>]*\
|
|
9488
|
+
/<iframe(?![^>]*\btitle=)[^>]*>/gi,
|
|
9489
9489
|
(n) => n.replace("<iframe", '<iframe title="frame custom content"')
|
|
9490
9490
|
), Os = async (e) => {
|
|
9491
9491
|
const t = /<img\b[^>]*\bsrc=["']([^"']+)["']/g, n = [...e.matchAll(t)], s = {};
|
|
@@ -95,7 +95,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
|
95
95
|
</div>
|
|
96
96
|
${i(n.length)}
|
|
97
97
|
</div>
|
|
98
|
-
`}const hc=e=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"currentColor",...e,children:t.jsx("path",{fill:"currentColor",d:"M9.99 0C4.47 0 0 4.48 0 10s4.47 10 9.99 10C15.52 20 20 15.52 20 10S15.52 0 9.99 0Zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 16.92 6ZM10 2.04c.83 1.2 1.48 2.53 1.91 3.96H8.09C8.52 4.57 9.17 3.24 10 2.04ZM2.26 12C2.1 11.36 2 10.69 2 10s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H2.26Zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 3.08 14Zm2.95-8H3.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 6.03 6ZM10 17.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96ZM12.34 12H7.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2Zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56ZM14.36 12c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38Z"})}),uc=e=>e.replace(/<iframe(?![^>]*\bloading=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe loading="lazy"')),mc=e=>e.replace(/<iframe(?![^>]*\
|
|
98
|
+
`}const hc=e=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"currentColor",...e,children:t.jsx("path",{fill:"currentColor",d:"M9.99 0C4.47 0 0 4.48 0 10s4.47 10 9.99 10C15.52 20 20 15.52 20 10S15.52 0 9.99 0Zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 16.92 6ZM10 2.04c.83 1.2 1.48 2.53 1.91 3.96H8.09C8.52 4.57 9.17 3.24 10 2.04ZM2.26 12C2.1 11.36 2 10.69 2 10s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H2.26Zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 3.08 14Zm2.95-8H3.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 6.03 6ZM10 17.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96ZM12.34 12H7.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2Zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56ZM14.36 12c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38Z"})}),uc=e=>e.replace(/<iframe(?![^>]*\bloading=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe loading="lazy"')),mc=e=>e.replace(/<iframe(?![^>]*\btitle=)[^>]*>/gi,a=>a.replace("<iframe",'<iframe title="frame custom content"')),Ao=async e=>{const n=/<img\b[^>]*\bsrc=["']([^"']+)["']/g,a=[...e.matchAll(n)],s={};for(const o of a){const r=o[1]??"",i=e.includes(r)?{url:r}:null;if(i){const l=await te(i.url)||"";s[r]=l}}return e.replace(n,(o,r)=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${s[r]||r}"`)},fc=(e,n)=>{const a={2:1,4:2,7:3,10:4,13:5};let s=0,o=e;const r=/<(p|li|ul|ol)>\s*<\/\1>/gi,i=/<(p|li|ul|ol)>(?:&(?:nbsp|#160|ensp|emsp|#8194|#8195);)*?<\/\1>/gi;do o=e.replace(r,"").replace(i,"");while(o.match(r)||o.match(i));return o=o.replace(/<p\b[^>]*?>[\s\S]*?<\/p>|<(ul|ol)[^>]*?>[\s\S]*?<\/\1>/g,l=>{const c=l.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&");if(!new RegExp(`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${c}[\\s\\S]*?<\\/blockquote>`,"gi").test(o)){s++;const d=n.find(u=>u.key===`block_2_${a[s]}`);return d?`${l}<div class="banner-context">${d.value}</div>`:l}return l}),o},gc=e=>{const n=/<div class="ck-image-gallery"[^>]*?>([\s\S]*?)<\/div>/g,a=[...e.matchAll(n)];let s="",o=0;for(const r of a){const[i,l=""]=r,c=r.index,h=c+i.length;s+=e.slice(o,c);const u=[...l.matchAll(/data-src="([^"]+)"/g)].map(f=>f[1]).map(f=>`<img src="${f}" class="carrusel-note-item" width="800" height="469"/>`),m="gallery_embeded"+c.toString(),y=dc({slot_id:m,children:u,visibleItems:1,cardGap:0});s+=y,o=h}return s+=e.slice(o),s},pc=async(e,n,a)=>{if(!a)return e;const s=/<span data-src="(.*?)"><\/span>/g,o=[...e.matchAll(s)];let r=e;for(const i of o){const l=i[0],c=i[1]??"",h=a.find(U=>c.includes(U?.[0]?.info.link.internal||""));if(!h||!h[0])continue;const d=h[0].preview?.sizes?.[0],u=d?await te(d.url):"",m=h[0].info.section?.url??"#",y=h[0].info.section?.name??"Sección",f=h[0].info.link?.url??"#",g=h[0].main?.title.article??"Título",w=(await Promise.all(h[0].preview?.sizes?.map(async U=>{const S=await te(U.url);return U.width<200?`<source srcset="${S}" media="(width < 750px)"/>`:`<source srcset="${S}" media="(width >= 750px)"/>`}))).reduce((U,S)=>U+=S,""),b=`
|
|
99
99
|
<span data-src="${c}">
|
|
100
100
|
<picture style='display: flex'>
|
|
101
101
|
${w}
|