sass-template-common 0.0.77 → 0.0.79

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.
@@ -9472,7 +9472,7 @@ const X2 = (e) => /* @__PURE__ */ a(
9472
9472
  const h = [...l.matchAll(/data-src="([^"]+)"/g)].map(
9473
9473
  (g) => g[1]
9474
9474
  ).map(
9475
- (g) => `<img src="${g}" class="carrusel-note-item"/>`
9475
+ (g) => `<img src="${g}" class="carrusel-note-item" width="800" height="469"/>`
9476
9476
  ), f = "gallery_embeded" + d.toString(), y = Z2({
9477
9477
  slot_id: f,
9478
9478
  children: h,
@@ -9526,7 +9526,9 @@ async function a0(e, t) {
9526
9526
  frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen
9527
9527
  style="position: relative!important;" src="https://www.youtube.com/embed/${h.data.data[0].main.code}"></iframe>` : g = h.data.data[0].main.code, y = `
9528
9528
  <figure class="videoFigure" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen>
9529
- <script type="application/ld+json">${Os(JSON.stringify(f.data.data) || "")}<\/script>
9529
+ <script type="application/ld+json">${Os(
9530
+ JSON.stringify(f.data.data) || ""
9531
+ )}<\/script>
9530
9532
  ${g}
9531
9533
  <figcaption>${h.data.data[0].main.description || ""}</figcaption>
9532
9534
  </figure>
@@ -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 dc=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"})}),wo=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 ne(i.url)||"";s[r]=l}}return e.replace(n,(o,r)=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${s[r]||r}"`)},hc=(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 d=l.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&");if(!new RegExp(`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${d}[\\s\\S]*?<\\/blockquote>`,"gi").test(o)){s++;const h=n.find(u=>u.key===`block_2_${a[s]}`);return h?`${l}<div class="banner-context">${h.value}</div>`:l}return l}),o},uc=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,d=r.index,c=d+i.length;s+=e.slice(o,d);const u=[...l.matchAll(/data-src="([^"]+)"/g)].map(f=>f[1]).map(f=>`<img src="${f}" class="carrusel-note-item"/>`),m="gallery_embeded"+d.toString(),y=cc({slot_id:m,children:u,visibleItems:1,cardGap:0});s+=y,o=c}return s+=e.slice(o),s},mc=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],d=i[1]??"",c=a.find(I=>d.includes(I?.[0]?.info.link.internal||""));if(!c||!c[0])continue;const h=c[0].preview?.sizes?.[0],u=h?await ne(h.url):"",m=c[0].info.section?.url??"#",y=c[0].info.section?.name??"Sección",f=c[0].info.link?.url??"#",g=c[0].main?.title.article??"Título",A=(await Promise.all(c[0].preview?.sizes?.map(async I=>{const S=await ne(I.url);return I.width<200?`<source srcset="${S}" media="(width < 750px)"/>`:`<source srcset="${S}" media="(width >= 750px)"/>`}))).reduce((I,S)=>I+=S,""),v=`
98
+ `}const dc=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"})}),wo=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 ne(i.url)||"";s[r]=l}}return e.replace(n,(o,r)=>`<img fetchPriority='low' loading='lazy' alt='imagen' src="${s[r]||r}"`)},hc=(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 d=l.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&");if(!new RegExp(`<blockquote[^>]*?>(?:(?!<\\/blockquote>)[\\s\\S])*?${d}[\\s\\S]*?<\\/blockquote>`,"gi").test(o)){s++;const h=n.find(u=>u.key===`block_2_${a[s]}`);return h?`${l}<div class="banner-context">${h.value}</div>`:l}return l}),o},uc=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,d=r.index,c=d+i.length;s+=e.slice(o,d);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"+d.toString(),y=cc({slot_id:m,children:u,visibleItems:1,cardGap:0});s+=y,o=c}return s+=e.slice(o),s},mc=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],d=i[1]??"",c=a.find(I=>d.includes(I?.[0]?.info.link.internal||""));if(!c||!c[0])continue;const h=c[0].preview?.sizes?.[0],u=h?await ne(h.url):"",m=c[0].info.section?.url??"#",y=c[0].info.section?.name??"Sección",f=c[0].info.link?.url??"#",g=c[0].main?.title.article??"Título",A=(await Promise.all(c[0].preview?.sizes?.map(async I=>{const S=await ne(I.url);return I.width<200?`<source srcset="${S}" media="(width < 750px)"/>`:`<source srcset="${S}" media="(width >= 750px)"/>`}))).reduce((I,S)=>I+=S,""),v=`
99
99
  <span data-src="${d}">
100
100
  <picture style='display: flex'>
101
101
  ${A}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-template-common",
3
- "version": "0.0.77",
3
+ "version": "0.0.79",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"