PageSourceSearch

https://ebetam.gr/wp-content/plugins/wp-table-builder/dist/assets/corruption-CDnCbT17.js

js ebetam.gr collected 2026-10-02 06:07:37 UTC 8,189 bytes, 1 lines download raw bytes

1import{p as H,b as A,c as v,g as E,d as D}from"./parser-B_2Tw2G1.js";const k={rowCount:4,colCount:4,alignment:"center",cellMinWidth:"120px",enableMaxWidth:!1,cellPadding:"10px",tableBorder:{width:"1px",style:"solid",color:"#000000"},enableInnerBorder:!0,headerInnerBorder:!0,innerBorder:{width:"1px",style:"solid",color:"#000000"},separateRowCol:!1,oddRowBg:"#f0f0f0",evenRowBg:"#ffffff",responsive:{widthTarget:"window",enable:!1,mobile:{disable:!1,maxWidth:"375px",enableHead:!0,staticHead:!1,stackDirection:"row",itemsPerHead:1},tablet:{disable:!1,maxWidth:"700px",enableHead:!0,staticHead:!1,stackDirection:"row",itemsPerHead:2}},columnsProps:{},rowsProps:{},useThForFirstRow:!1,showPoweredByBadge:!1},N={rowspan:1,colspan:1},T=o=>o?!o.top:!1,V=(o,e)=>{const t=o.dataset,a=H(o);let s;return(!T(a)||!T(e)||a.color!==e.color||a.width!==e.width)&&(s=a),{background:o.style.backgroundColor,border:s,vAlign:t.wptbCellVerticalAlignment,isEmpty:o.classList.contains("wptb-empty"),sortedVertical:t.sortedVertical=="true",sortedHorizontal:t.sortedHorizontal==="true",colspan:o.colSpan||1,rowspan:o.rowSpan||1,contentDistribution:t.wptbCellDistribution}},_=(o,e,t)=>{var d;const a=(d=o.className.match(/wptb-row-highlighted-([0-9]+)/))==null?void 0:d[1];let s=v(o.style.backgroundColor||o.style.background);return s&&(e===0&&t.headerBg===s||e%2===0&&t.oddRowBg===s||e%2===1&&t.evenRowBg===s)&&(s=void 0),{highlight:!!a,highlightScale:parseInt(a||"100"),background:s}},F=o=>{var y,w,h,p,l,r,n,i,u,g,c,f,m,C,R;let e=null;try{e=JSON.parse(atob(o.dataset.wptbResponsiveDirectives||"null"))}catch{}const t=(y=e==null?void 0:e.modeOptions)==null?void 0:y.auto,a=parseInt(k.responsive.mobile.maxWidth),s=parseInt(k.responsive.tablet.maxWidth);return{widthTarget:(e==null?void 0:e.relativeWidth)||"window",enable:(e==null?void 0:e.responsiveEnabled)??!1,mobile:{disable:!!((w=t==null?void 0:t.disabled)!=null&&w.mobile),maxWidth:`${Math.max(((p=(h=e==null?void 0:e.breakpoints)==null?void 0:h.mobile)==null?void 0:p.width)||0,a)}px`,enableHead:((l=t==null?void 0:t.topRowAsHeader)==null?void 0:l.mobile)??!0,staticHead:((r=t==null?void 0:t.staticTopRow)==null?void 0:r.mobile)??!1,stackDirection:((n=t==null?void 0:t.cellStackDirection)==null?void 0:n.mobile)||"row",itemsPerHead:((i=t==null?void 0:t.cellsPerRow)==null?void 0:i.mobile)??2},tablet:{disable:!!((u=t==null?void 0:t.disabled)!=null&&u.tablet),maxWidth:`${((c=(g=e==null?void 0:e.breakpoints)==null?void 0:g.tablet)==null?void 0:c.width)||s}px`,enableHead:((f=t==null?void 0:t.topRowAsHeader)==null?void 0:f.tablet)??!0,staticHead:((m=t==null?void 0:t.staticTopRow)==null?void 0:m.tablet)??!1,stackDirection:((C=t==null?void 0:t.cellStackDirection)==null?void 0:C.tablet)||"row",itemsPerHead:((R=t==null?void 0:t.cellsPerRow)==null?void 0:R.tablet)??2}}},x=o=>{if(!o)return{};const e={};for(const t of Object.keys(o)){const a=parseInt(t,10);Number.isNaN(a)||(e[a]=o[t])}return e},L=o=>{var m,C,R,B,P;const e=o.dataset,t=((m=o.querySelector("tbody"))==null?void 0:m.dataset)||{},a=o.style,s=o.rows[0].cells[0],d=o.rows.length>1?o.rows[1].cells.length>1?o.rows[1].cells[1]:o.rows[1].cells[0]||s:s,y=H(o);let w={};try{w=JSON.parse(atob(e.wptbTableDirectives||"{}"))}catch{}const h=o.rows.length;let p=0;for(let S=0;S<h;S++)p=Math.max(p,o.rows[S].cells.length);const l=A(o,y,w),r=H(s);let n=!1,i=!1,u,g,c;try{const S=o.getAttribute("data-v2-props");if(S){const b=JSON.parse(atob(S));n=!!(b!=null&&b.useThForFirstRow),"showPoweredByBadge"in b&&(i=!!b.showPoweredByBadge),"columnsProps"in b&&(u=x(b.columnsProps)),"rowsProps"in b&&(g=x(b.rowsProps)),"contentDistribution"in b&&(c=b.contentDistribution)}}catch{}return{colCount:p,rowCount:h,alignment:e.wptbTableAlignment||k.alignment,enableMaxWidth:!!e.wptbApplyTableContainerMaxWidth,maxWidth:e.wptbTableContainerMaxWidth?e.wptbTableContainerMaxWidth+"px":"700px",sortHorizontal:{enable:e.wptbSortableTableHorizontal=="1"},sortVertical:{enable:e.wptbSortableTableVertical=="1"},colSpacing:(e.borderSpacingColumns||"3")+"px",rowSpacing:(e.borderSpacingRows||"3")+"px",cellMinWidth:(e.wptbTdWidthAuto||"120")+"px",cellPadding:(d==null?void 0:d.style.padding)||k.cellPadding,padding:D("padding",o.style),fontColor:v(t.globalFontColor),linkColor:v(t.globalLinkColor),fontSize:parseInt(t.globalFontSize||"15")+"px",tableBorder:y,enableInnerBorder:!!l,innerBorder:l,headerInnerBorder:r?r.style!="none":!1,innerBorderRadius:E(w),separateRowCol:a.borderCollapse=="separate",rowBorderOnly:((C=w.innerBorders)==null?void 0:C.active)=="row",columnBorderOnly:((R=w.innerBorders)==null?void 0:R.active)=="column",scrollX:!!e.wptbHorizontalScrollStatus,disableThemeStyles:e.disableThemeStyles==="1",extraStyles:atob(e.wptbExtraStyles||""),stickyFirstColumn:["true","1"].includes(e.wptbFirstColumnSticky),stickyTopRow:["true","1"].includes((P=(B=o.querySelector("tr"))==null?void 0:B.dataset)==null?void 0:P.wptbStickyRow),paginationEnable:e.wptbPaginationEnable==="true",paginationTopRowAsHeader:e.wptbProPaginationTopRowHeader==="true",rowsPerPage:parseInt(e.wptbRowsPerPage||"10"),dyanamicPageSize:e.wptbRowsChangeable==="true",searchEnable:e.wptbSearchEnable==="true",searchKeepHeader:e.wptbProSearchTopRowHeader==="true",searchPosition:e.wptbSearchbarPosition||"left",showPoweredByBadge:i,role:o.getAttribute("role")||"table",useThForFirstRow:n,headerBg:v(e.wptbHeaderBackgroun
1dColor),evenRowBg:v(e.wptbEvenRowBackgroundColor),oddRowBg:v(e.wptbOddRowBackgroundColor),hoverHeaderBg:e.wptbHeaderHoverBackgroundColor,hoverEvenRowBg:e.wptbEvenRowHoverBackgroundColor,hoverOddRowBg:e.wptbOddRowHoverBackgroundColor,responsive:F(o),columnsProps:u||{},rowsProps:g||{},contentDistribution:c}};function W(o){const e=Array.from(o.rows),t=e.length;if(t===0)return{isCorrupted:!1,expectedCols:0,expectedRows:0,rowIssues:[],missingCells:[],overflowingSpans:[]};const a=[];e.forEach(l=>{let r=0;Array.from(l.cells).forEach(n=>{r+=n.colSpan||1}),a.push(r)});const s=Math.max(...a),d=Array.from({length:t},()=>Array.from({length:s},()=>null)),y=[],w=[];e.forEach((l,r)=>{let n=0;const i=Array.from(l.cells);for(const c of i){for(;n<s&&d[r][n]!==null;)n++;if(n>=s)break;const f=c.colSpan||1,m=c.rowSpan||1;n+f>s&&w.push({row:r,col:n,type:"colspan",excess:n+f-s}),r+m>t&&w.push({row:r,col:n,type:"rowspan",excess:r+m-t});const C=Math.min(f,s-n),R=Math.min(m,t-r);for(let B=0;B<R;B++)for(let P=0;P<C;P++){const S=r+B,b=n+P;S<t&&b<s&&(d[S][b]={row:S,col:b,sourceRow:r,sourceCol:n,element:c})}n+=f}let u=0;for(let c=0;c<s;c++)if(d[r][c]!==null&&d[r][c].sourceRow===r){const f=d[r][c].element;f&&(u+=f.colSpan||1)}const g=d[r].filter(c=>c!==null).length;g<s&&y.push({row:r,actualWidth:g,expectedWidth:s})});const h=[];for(let l=0;l<t;l++)for(let r=0;r<s;r++)d[l][r]===null&&h.push({row:l,col:r});return{isCorrupted:y.length>0||h.length>0||w.length>0,expectedCols:s,expectedRows:t,rowIssues:y,missingCells:h,overflowingSpans:w}}function z(o,e){if(!e.isCorrupted)return;const{expectedCols:t,expectedRows:a,overflowingSpans:s}=e,d=Array.from(o.rows);for(const p of s){const l=d[p.row];if(!l)continue;const r=Array.from(l.cells);let n=0;for(const i of r){if(n===p.col){p.type==="colspan"?i.colSpan=Math.max(1,i.colSpan-p.excess):i.rowSpan=Math.max(1,i.rowSpan-p.excess);break}n+=i.colSpan||1}}const y=W(o),w=Array.from({length:a},()=>Array.from({length:t},()=>null));d.forEach((p,l)=>{let r=0;const n=Array.from(p.cells);for(const i of n){for(;r<t&&w[l][r]!==null;)r++;if(r>=t)break;const u=Math.min(i.colSpan||1,t-r),g=Math.min(i.rowSpan||1,a-l);for(let c=0;c<g;c++)for(let f=0;f<u;f++){const m=l+c,C=r+f;m<a&&C<t&&(w[m][C]=i)}r+=u}});const h=new Map;for(const{row:p,col:l}of y.missingCells)h.has(p)||h.set(p,[]),h.get(p).push(l);h.forEach((p,l)=>{const r=d[l];if(r){p.sort((n,i)=>i-n);for(const n of p){const i=document.createElement("td");i.colSpan=1,i.rowSpan=1;let u=null,g=0;for(const c of Array.from(r.cells)){if(g>=n){u=c;break}g+=c.colSpan||1}u?r.insertBefore(i,u):r.appendChild(i)}}})}function q(o){const e=document.createElement("div");e.innerHTML=o;const t=e.querySelector("table");if(!t)return o;const a=W(t);return a.isCorrupted?(z(t,a),e.innerHTML):o}export{W as a,_ as b,V as c,N as d,k as e,q as g,L as p,z as r};

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.