PageSourceSearch

https://www.synergyconsult.de/wp-content/plugins/wp-table-builder/dist/assets/renderer-OUrS6wV-.js

js synergyconsult.de collected 2026-09-25 11:12:28 UTC 20,711 bytes, 76 lines download raw bytes

1var Lt=Object.defineProperty;var Et=(t,e,s)=>e in t?Lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var T=(t,e,s)=>Et(t,typeof e!="symbol"?e+"":e,s);import{e as ut,f as it,h as rt,s as J,i as Ht,j as Q,k as Tt,l as At}from"./parser-DjQZlMd1.js";const ft=t=>({enable:t.searchEnable||!1,keepHeader:t.searchKeepHeader!==!1,position:t.searchPosition||"left",placeholder:"Search..."}),qt=(t,e)=>t.enable?`
2    <div class="wptb-search-container ${`wptb-search-${t.position}`}">
3      <input 
4        type="text" 
5        class="wptb-search-input" 
6        placeholder="${t.placeholder}"
7        data-table-id="${e}"
8        aria-label="Search table"
9      />
10      <span class="wptb-search-icon">🔍</span>
11    </div>
12  `:"",zt=(t,e,s)=>{const n=t.querySelector(".wptb-search-input");if(!n)return;const i=t.querySelector("table");if(!i)return;const o=i.querySelector("tbody");if(!o)return;const r=Array.from(o.querySelectorAll("tr")),u=(e&&r.length>0?r[0]:null)?r.slice(1):r;n.addEventListener("input",d=>{const f=d.target.value.toLowerCase().trim();if(!f){u.forEach(w=>{w.style.display="",w.classList.remove("wptb-search-hidden")}),at(t,!1),s==null||s();return}let b=0;u.forEach(w=>{var P;(((P=w.textContent)==null?void 0:P.toLowerCase())||"").includes(f)?(w.style.display="",w.classList.remove("wptb-search-hidden"),b++):(w.style.display="none",w.classList.add("wptb-search-hidden"))}),at(t,b===0),s==null||s()})},at=(t,e)=>{var n;let s=t.querySelector(".wptb-search-no-results");if(e){if(!s){s=document.createElement("div"),s.className="wptb-search-no-results",s.textContent="No results found";const i=t.querySelector("table");i&&((n=i.parentElement)==null||n.appendChild(s))}s.style.display="block"}else s&&(s.style.display="none")},Mt=t=>!t.classList.contains("wptb-search-hidden"),ht=t=>{var e,s,n,i;return{enableVertical:((e=t.sortVertical)==null?void 0:e.enable)||!1,enableHorizontal:((s=t.sortHorizontal)==null?void 0:s.enable)||!1,verticalOrder:(n=t.sortVertical)==null?void 0:n.order,horizontalOrder:(i=t.sortHorizontal)==null?void 0:i.order}},_="th, td",lt=t=>/^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(t),bt=(t,e,s)=>{const n=lt(t),i=lt(e);if(n&&i){const o=Number(t),r=Number(e);return s==="asc"?o-r:r-o}return s==="asc"?t.localeCompare(e):e.localeCompare(t)},Ot=(t,e,s)=>{const n=t.querySelector("table");if(!n)return;const i=n.querySelector("tbody");if(!i)return;const o=Array.from(i.querySelectorAll("tr"));o.length!==0&&(e.enableVertical&&Wt(i,o,s),e.enableHorizontal&&Dt(i,o,s))},Wt=(t,e,s)=>{const n=e[0],i=Array.from(n.querySelectorAll(_));i.forEach((o,r)=>{const a=o.querySelector(".wptb-sort-button");a&&a.addEventListener("click",()=>{const d=(o.getAttribute("data-sorted-vertical")||"none")==="asc"?"desc":"asc";i.forEach(f=>{f.removeAttribute("data-sorted-vertical");const b=f.querySelector(".wptb-sort-button");b&&b.classList.remove("wptb-sort-button-asc","wptb-sort-button-desc")}),o.setAttribute("data-sorted-vertical",d),a.classList.add(`wptb-sort-button-${d}`),It(t,e,r,d),s==null||s("row")})})},It=(t,e,s,n)=>{const i=e[0],r=e.slice(1).sort((a,u)=>{var g,C;const d=a.querySelectorAll(_)[s],f=u.querySelectorAll(_)[s];if(!d||!f)return 0;const b=((g=d.textContent)==null?void 0:g.trim())||"",w=((C=f.textContent)==null?void 0:C.trim())||"";return bt(b,w,n)});t.innerHTML="",t.appendChild(i),r.forEach(a=>t.appendChild(a))},Dt=(t,e,s)=>{e.forEach(n=>{const i=n.querySelector(_);if(!i)return;const o=i.querySelector(".wptb-sort-button");o&&o.addEventListener("click",()=>{const a=(i.getAttribute("data-sorted-horizontal")||"none")==="asc"?"desc":"asc";i.setAttribute("data-sorted-horizontal",a),o.classList.remove("wptb-sort-button-asc","wptb-sort-button-desc"),o.classList.add(`wptb-sort-button-${a}`),Nt(n,a),s==null||s("column")})})},Nt=(t,e)=>{const s=Array.from(t.querySelectorAll(_));if(s.length<2)return;const n=s[0],o=s.slice(1).sort((r,a)=>{var f,b;const u=((f=r.textContent)==null?void 0:f.trim())||"",d=((b=a.textContent)==null?void 0:b.trim())||"";return bt(u,d,e)});t.innerHTML="",t.appendChild(n),o.forEach(r=>t.appendChild(r))},gt=t=>({enable:t.paginationEnable||!1,rowsPerPage:t.rowsPerPage||10,topRowAsHeader:t.paginationTopRowAsHeader!==!1,dynamicPageSize:t.dyanamicPageSize||!1}),Vt=(t,e,s)=>{if(!t.enable)return"";const n=Math.ceil(s/t.rowsPerPage);return`
13    <div class="wptb-pagination-container">
14      ${t.dynamicPageSize?`
15      <div class="wptb-pagination-size">
16        <label>
17          Show
18          <input 
19            type="number" 
20            class="wptb-pagination-size-input" 
21            data-table-id="${e}"
22            value="${t.rowsPerPage}"
23            min="1"
24            step="1"
25            style="width: 60px; margin: 0 4px;"
26          />
27          rows
28        </label>
29      </div>
30    `:""}
31      <div class="wptb-pagination-controls">
32        <button class="wptb-pagination-btn wptb-pagination-first" data-table-id="${e}" aria-label="First page">
33          &laquo;
34        </button>
35        <button class="wptb-pagination-btn wptb-pagination-prev" data-table-id="${e}" aria-label="Previous page">
36          &lsaquo;
37        </button>
38        <span class="wptb-pagination-info">
39          Page <span class="wptb-pagination-current">1</span> of <span class="wptb-pagination-total">${n}</span>
40        </span>
41        <button class="wptb-pagination-btn wptb-pagination-next" data-table-id="${e}" aria-label="Next page">
42          &rsaquo;
43        </button>
44        <button class="wptb-pagination-btn wptb-pagination-last" data-table-id="${e}" aria-label="Last page">
45          &raquo;
46        </button>
47      </div>
48    </div>
49  `};class _t{constructor(e,s,n){T(this,"container");T(this,"config");T(this,"rows",[]);T(this,"dataRows",[]);T(this,"currentPage",1);T(this,"isRowVisible",()=>!0);T(this,"visibleRows",[]);this.container=e,this.config=s,this.isRowVisible=n,this.reOrder(),this.initialize()}reOrder(e){const s=this.container.querySelector("tbody");if(!s)throw new Error("Table body not found");this.rows=Array.from(s.querySelectorAll("tr")),this.config.topRowAsHeader&&this.rows.length>0?this.dataRows=this.rows.slice(1):this.dataRows=this.rows,this.visibleRows=this.dataRows.filter(this.isRowVisible),e&&this.refresh(e)}initialize(){this.renderPage(),this.bindEvents()}bindEvents(){const e=this.container.querySelector(".wptb-pagination-first"),s=this.container.querySelector(".wptb-pagination-prev"),n=this.container.querySelector(".wptb-pagination-next"),i=this.container.querySelector(".wptb-pagination-last");e&&e.addEventListener("click",()=>this.goToPage(1)),s&&s.addEventListener("click",()=>this.goToPage(this.currentPage-1)),n&&n.addEventListener("click",()=>this.goToPage(this.currentPage+1)),i&&i.addEventListener("click",()=>this.goToPage(this.getTotalPages()));const o=this.container.querySelector(".wptb-pagination-size-input");if(o){const r=a=>{const u=a.target,d=parseInt(u.value);d>0&&!isNaN(d)?(this.config.rowsPerPage=d,this.currentPage=1,this.renderPage(),this.updateControls()):u.value=this.config.rowsPerPage.toString()};o.addEventListener("change",r),o.addEventListener("blur",r)}}getTotalPages(){const e=this.visibleRows;return Math.ceil(e.length/this.config.rowsPerPage)||1}goToPage(e){const s=this.getTotalPages();e<1||e>s||(this.currentPage=e,this.renderPage(),this.updateControls())}renderPage(){const e=this.config.rowsPerPage,s=this.visibleRows,n=(this.currentPage-1)*e,i=n+e;this.dataRows.forEach(o=>{o.classList.contains("wptb-search-hidden")||(o.style.display="none",o.classList.add("wptb-pagination-hidden"))}),s.slice(n,i).forEach(o=>{o.style.display="",o.classList.remove("wptb-pagination-hidden")}),this.updateControls()}updateControls(){const e=this.getTotalPages(),s=this.container.querySelector(".wptb-pagination-current"),n=this.container.querySelector(".wptb-pagination-total"),i=this.container.querySelector(".wptb-pagination-first"),o=this.container.querySelector(".wptb-pagination-prev"),r=this.container.querySelector(".wptb-pagination-next"),a=this.container.querySelector(".wptb-pagination-last");s&&(s.textContent=this.currentPage.toString()),n&&(n.textContent=e.toString());const u=this.currentPage===1,d=this.currentPage===e;i&&(i.disabled=u),o&&(o.disabled=u),r&&(r.disabled=d),a&&(a.disabled=d)}refresh(e){this.currentPage=e||this.currentPage,this.visibleRows=this.dataRows.filter(this.isRowVisible);const s=this.getTotalPages();this.currentPage>s&&(this.currentPage=s||1),this.renderPage()}}const Ft=(t,e,s)=>{if(!e.enable)return null;try{return new _t(t,e,s)}catch(n){return console.error("Failed to initialize pagination:",n),null}},Xt=t=>({transpose:t.stackDirection==="row",repeatFirst:t.enableHead,columnCount:t.itemsPerHead+(t.enableHead?1:0)}),jt=(t,e)=>{const s=t.responsive;let n="desktop";if(!(s!=null&&s.enable))return[null,n];const{mobile:i,tablet:o,widthTarget:r}=s;let a=window.innerWidth;if(r==="container"){const d=e.style.maxWidth;e.style.maxWidth="100%",a=e.clientWidth,e.style.maxWidth=d}let u;if(a<=parseInt(i.maxWidth)){if(i.disable)return[null,n];u=i,n="mobile"}else if(a<=parseInt(o.maxWidth)){if(o.disable)return[null,n];u=o,n="tablet"}else return[null,n];return u.disable?[null,n]:[Xt(u),n]},Yt=(t,e)=>{var C,P;const{transpose:s,repeatFirst:n,columnCount:i}=e;let o=t.cells;if(s){const l=Array.from({length:o[0].length},()=>[]);for(let p=0;p<o[0].length;p++)for(let h=0;h<o.length;h++){l[p][h]=o[h][p];const v=l[p][h].rowspan,k=l[p][h].colspan;
49l[p][h].responsive={colspan:v,rowspan:k}}o=l}const r=o;o=[];for(let l=0;l<r.length;l++){const p=[];for(let h=0;h<r[l].length;h++)p.push({...r[l][h]});o.push(p)}if(i>=o[0].length)return{props:t.props,cells:r};const a={};let u=0;const d=n&&o.length>1;if(d){let l=0;if(u=1,o.forEach((p,h)=>{const v=p[0];a[h]={cell:v,colspan:v.colspan},l=Math.max(l,v.colspan)}),l>=i)return t}const f={};for(let l=0;l<o.length;l++)d?f[l]={filled:a[l].colspan,rows:[[a[l].cell]]}:f[l]={filled:0,rows:[[]]};for(let l=0;l<o.length;l++){const p=o[l],h=f[l];let v=h.rows[0];for(let k=u;k<p.length;k++){const S=p[k];v.push(S);const A=((C=S.responsive)==null?void 0:C.colspan)||S.colspan,D=((P=S.responsive)==null?void 0:P.rowspan)||S.rowspan,z=i-f[l].filled,x=Math.min(A,z);if(x===0&&console.log("Space used is 0"),h.filled+=1,x<A){S.responsive={...S.responsive,colspan:x};const M={...S,responsive:{...S.responsive,colspan:A-x,rowspan:D}};o[l][k+x]={...M,el:""}}v.length===i&&(v=[],h.filled=0,h.rows.push(v),d&&(h.filled=a[l].colspan,v.push(a[l].cell)))}}const b={},w=[],g=f[0].rows.length;for(let l=0;l<g;l++)for(let p=0;p<o.length;p++){const h=f[p].rows[l];(h.length>1||!d)&&w.push(h),w.length%o.length===0&&w.length>0&&(b[w.length-1]=!0)}return{props:t.props,cells:w}},ct=(t,e)=>{const s=e.trim();if(t===0)return s;const n=`translate3d(0, ${t}px, 0)`;return s?`${n} ${s}`:n},Ut=(t,e)=>{const s=e.trim();if(t===0)return s;const n=`translate3d(${t}px, 0, 0)`;return s?`${n} ${s}`:n},wt=t=>{const e=parseInt(t.dataset.col??"",10);return Number.isNaN(e)?-1:e},Kt=(t,e)=>{for(let s=0;s<t.cells.length;s++){const n=t.cells[s];if(wt(n)===e)return n}return null},Gt=(t,e)=>{var R,B;const s=((R=e.sticky)==null?void 0:R.row)!=null,n=((B=e.sticky)==null?void 0:B.column)!=null;if(!e.scrollX||!s&&!n)return()=>{};const i=t.querySelector(".wptb-table-container"),o=t.querySelector("table"),r=(o==null?void 0:o.tBodies[0])??null;if(!i||!o||!r||r.rows.length===0)return()=>{};const a=s?e.sticky.row-1:-1,u=n?e.sticky.column-1:-1,d=s&&parseInt(e.sticky.rowOffset||"0",10)||0,f=n&&parseInt(e.sticky.columnOffset||"0",10)||0,b=s&&a<r.rows.length?r.rows[a]:null,w=b?Array.from(b.cells):[],g=[];if(n)for(let c=0;c<r.rows.length;c++){const y=Kt(r.rows[c],u);y&&g.push(y)}const C=new WeakMap,P=new WeakMap;for(const c of w)C.set(c,c.style.transform||"");for(const c of g)P.set(c,c.style.transform||"");let l={stickStart:0,stickEnd:0},p=[],h=0,v=0;const k=()=>{for(const c of w)c.style.transform=C.get(c)??""},S=()=>{for(const c of g)c.style.transform=P.get(c)??""},A=()=>{if(!b||w.length===0){l={stickStart:0,stickEnd:0};return}k(),n&&S(),o.offsetHeight;const c=b.getBoundingClientRect().top+window.scrollY,y=o.getBoundingClientRect().top+window.scrollY,m=b.offsetHeight,H=o.offsetHeight,L=c-d,V=Math.max(L,y+H-m-d);l={stickStart:L,stickEnd:V}},D=()=>{if(!n||g.length===0){p=[];return}S(),b&&k(),o.offsetHeight;const c=o.getBoundingClientRect().left;p=g.map(y=>({naturalLeft:y.getBoundingClientRect().left-c}))},z=()=>{if(!b)return 0;const c=window.scrollY,{stickStart:y,stickEnd:m}=l;return c<=y?0:c>=m?Math.max(0,m-y):c-y},x=(c,y)=>y<=0?0:Math.max(0,y-c+f),M=()=>{const c=Math.round(z()),y=Math.round(i.scrollLeft);for(const m of w){if(n&&wt(m)===u)continue;const H=C.get(m)??"";m.style.transform=ct(c,H)}g.forEach((m,H)=>{var I;const L=((I=p[H])==null?void 0:I.naturalLeft)??0,V=Math.round(x(L,y)),U=C.get(m)??"",j=P.get(m)??"",K=C.has(m)?ct(c,U):j;m.style.transform=Ut(V,K)})},F=()=>{h||(h=requestAnimationFrame(()=>{h=0,M()}))},O=()=>{v||(v=requestAnimationFrame(()=>{v=0,A(),D(),M()}))},Y=()=>{b&&F()},Z=()=>{n&&F()},X=()=>{O()},N=new AbortController,{signal:W}=N;window.addEventListener("scroll",Y,{passive:!0,signal:W}),window.addEventListener("resize",X,{passive:!0,signal:W}),i.addEventListener("scroll",Z,{passive:!0,signal:W});const $=typeof ResizeObserver<"u"?new ResizeObserver(()=>{O()}):null;$==null||$.observe(i),$==null||$.observe(o);let E=null;return typeof IntersectionObserver<"u"&&(E=new IntersectionObserver(()=>{O()},{root:null,rootMargin:"200px 0px",threshold:0}),E.observe(o)),O(),()=>{N.abort(),$==null||$.disconnect(),E==null||E.disconnect(),h&&cancelAnimationFrame(h),v&&cancelAnimationFrame(v),k(),S()}},pt=t=>{var s;const e=t;(s=e.__wptbDisposeManualSticky)==null||s.call(e),delete e.__wptbDisposeManualSticky},Jt=120,dt=t=>t&&t.left&&t.right,Qt=t=>{const e=parseInt(t.cellMinWidth||`${Jt}px`);let s=t.colCount*e;if(t.columnsProps)for(const i in t.columnsProps){const o=t.columnsProps[i].width;o&&(s+=parseInt(o)-e)}if(t.cellPadding&&typeof t.cellPadding=="string"){const i=parseInt(t.cellPadding);s+=i*2*t.colCount}if(t.innerBorder){const i=t.innerBorder;i.width?s+=parseInt(i.width)*(t.colCount+1):dt(i)&&(s+=parseInt(i.left.width)*t.colCount,s+=parseInt(i.right.width)*t.colCount)}if(t.tableBorder){const i=t.tableBorder;i.width?s+=parseInt(i.width)*2:dt(i)&&(s+=parseInt(i.left.width),s+=parseInt(i.right.width))}return{minWidth:`${s}px`,total:s}},Zt=(t,e)=>{if(t.borderRadius)return{...Q(t.tableBorder),...Ht(t.borderRadius),...e?{}:{overflow:"hidden"}}},te=(t,e)=>({minWidth:e,...t.borderRadius?{}:Q(t.tableBorder),borderCollapse:t.separateRowCol?"separate":"collapse",borderSpacing:`${t.colSpacing||0} ${t.rowSpacing||0}`,"--wptb-link-color":t.linkColor,"--wptb-inner-border":t.enableInnerBorder?Tt(t.innerBorder):void 0,"--wptb-inner-radius":t.innerBorderRadius,"--wptb-content-distribution-y-display":t.contentDistribution?"flex":void 0,"--wptb-content-distribution-y":t.contentDistribution}),ee=(t,e,s,n)=>{var r;let i="wptb-row",o;return n?(i+=" wptb-row-responsive",(r=s.isEdgeRow)!=null&&r[e]&&(i+=" wptb-row-edge")):(e===0&&(o=s.hoverHeaderBg||o),e%2===0?o||(o=s.hoverOddRowBg):o=s.hoverEvenRowBg,o&&(i+=" wptb-row-has-hover")),{className:i,style:{"--hover-bg-color":o,height:t==null?void 0:t.height,transform:t!=null&&t.highlight?`scale(${(t.highlightScale||100)/100})`:void 0}}},ne=(t,e,s,n)=>{var d,f,b,w;const i=(d=e.columnsProps)==null?void 0:d[t.col],o=i!=null&&i.highlight?(i.highlightScale||100)/100:null;let r=t.background;if(!r){const g=(f=e.rowsProps)==null?void 0:f[t.row];r=g==null?void 0:g.background,t.row===0&&(r||(r=e.headerBg)),t.row%2===0?r||(r=e.oddRowBg||"#eeeeee"):r||(r=e.evenRowBg||"#ffffff")}const a=At(t,e),u=t.contentDistribution||(i==null?void 0:i.contentDistribution);return{colspan:s&&((b=t.responsive)==null?void 0:b.colspan)||t.colspan,rowspan:s&&((w=t.responsive)==null?void 0:w.rowspan)||t.rows
49pan,"data-row":t.row,"data-col":t.col,highlightScale:n?o:null,style:{...ut(e.cellPadding,"padding"),...Q(t.border),background:r,verticalAlign:a,color:e.fontColor,fontSize:e.fontSize,transform:o&&!n?`scale(${o})`:void 0,"--wptb-content-distribution-y-display":u?"flex":void 0,"--wptb-content-distribution-y":u}}},se=t=>t?`
50    <div class="wptb-powered-by-badge">
51      <span class="wptb-powered-by-badge-prefix">Powered by </span>
52      <a href="https://wptablebuilder.com/?utm_source=plugin_badge" target="_blank" rel="nofollow">
53        WP Table Builder
54      </a>
55    </div>
56  `:"",oe=(t,e=!1,s)=>{var X,N,W,$,E;const{props:n,cells:i}=t,o=ft(n),r=ht(n),a=gt(n),u=Qt(n),d={},f={...ut(n.padding,"padding")};!(n!=null&&n.alignment)||n.alignment==="center"?(f.marginLeft="auto !important",f.marginRight="auto !important"):n.alignment==="right"?(f.marginLeft="auto !important",f.marginRight="0 !important"):(f.marginLeft="0 !important",f.marginRight="auto !important"),n.scrollX&&(d.overflowX="auto",d.overflowY="hidden");const b=Zt(n,!!n.scrollX);b&&Object.assign(d,b);const w=te(n,e?void 0:u.minWidth);if(n!=null&&n.enableMaxWidth){let R=`${Math.max(700,u.total+50)}px`;R=(n==null?void 0:n.maxWidth)||R,f.maxWidth=R}else f.maxWidth="100%";let g="wptb-table";n.rowBorderOnly&&(g+=" wptb-row-borders-only"),n.columnBorderOnly&&(g+=" wptb-column-borders-only"),n.headerInnerBorder||(g+=" wptb-no-header-border"),n.linkColor&&(g+=" wptb-has-link-color"),o.enable&&(g+=" wptb-has-search"),a.enable&&(g+=" wptb-has-pagination"),(r.enableVertical||r.enableHorizontal)&&(g+=" wptb-has-sort"),n.contentDistribution&&(g+=" wptb-has-content-distribution-y"),n.borderRadius&&(g+=" wptb-has-table-radius");let C="";if(!e){const R=[];for(let B=0;B<n.colCount;B++){const c=(X=n.columnsProps)==null?void 0:X[B];let y="";if(c!=null&&c.hideOnMobile&&(y+=" wptb-hide-on-mobile"),c){let m=c.width;m&&parseInt(m)<=0&&(m="5px"),R.push(`<col class="${y}" style="width: ${it(m)}; min-width: ${it(m)}" />`)}else R.push(`<col class="${y}" />`)}C=`<colgroup>${R.join("")}</colgroup>`}const P=((N=n.sticky)==null?void 0:N.row)!=null?n.sticky.row-1:-1,l=((W=n.sticky)==null?void 0:W.column)!=null?n.sticky.column-1:-1,p=i.map((R,B)=>{var H;const c=(H=n.rowsProps)==null?void 0:H[B],y=ee(c,B,n,e);B===P&&(y.className+=" wptb-sticky-row",y.style&&(y.style.transform=void 0));const m=R.map((L,V)=>{var nt,st,ot;const{isEmpty:U,isNotACell:j,el:K,responsive:I,col:yt}=L,{hideOnMobile:mt,contentDistribution:vt}=((nt=n.columnsProps)==null?void 0:nt[yt])||{};if(j&&(!e||!(I!=null&&I.isVisible)))return"";const tt=L.col===l,Ct=ne(L,n,e,tt),{highlightScale:et,...St}=Ct,Rt=et!=null?` style="transform: scale(${et})"`:"",Pt=vt||n.contentDistribution;let q="wptb-cell";U&&(q+=" wptb-empty"),mt&&(q+=" wptb-hide-on-mobile"),j&&(q+=" wptb-tmp-cell"),Pt&&(q+=" wptb-has-content-distribution-y"),V+1===R.length&&(q+=" wptb-row-ending-cell"),tt&&(q+=" wptb-sticky-col-cell");const kt=(st=n.sortVertical)!=null&&st.enable&&L.row===0?'<button class="wptb-sort-button wptb-sort-button-vertical"></button>':"",$t=(ot=n.sortHorizontal)!=null&&ot.enable&&L.col===0?'<button class="wptb-sort-button wptb-sort-button-horizontal"></button>':"",Bt=rt(St),G=n.useThForFirstRow&&B===0?"th":"td",xt=G==="th"?' scope="col"':"";return`
57            <${G} class="${q.trim()}"${xt} ${Bt}>
58              ${$t}
59              <div class="wptb-cell-content"${Rt}>${K}</div>
60              ${kt}
61            </${G}>
62          `}).filter(Boolean).join("");return`<tr ${rt(y)}>${m}</tr>`}).join(""),h=J(d),v=J(w),k=qt(o,s),S=a.topRowAsHeader&&i.length>0?i.length-1:i.length,A=Vt(a,s,S),D=se(n.showPoweredByBadge),z=P>=0||l>=0;let x="wptb-table-wrapper";n.scrollX&&z&&(x+=" wptb-scroll-x-manual-sticky");const M=(($=n.sticky)==null?void 0:$.rowOffset)||"0px",F=((E=n.sticky)==null?void 0:E.columnOffset)||"0px",O=z?` style="--wptb-sticky-row-top: ${M}; --wptb-sticky-col-left: ${F};"`:"",Y=`
63    <div class="wptb-table-container" style="${h}">
64      <table class="${g}" style="${v}">
65        ${C}
66        <tbody>${p}</tbody>
67      </table>
68    </div>
69  `;return{wrapperHtml:`
70    <div class="${x}"${O} data-table-id="${s}">
71      ${k}
72      ${Y}
73      ${A}
74      ${D}
75    </div>
76  `,rootStyle:J(f)}},le=(t,e)=>{const s=e.dataset.tableId,n=e.dataset.lastDevice,[i,o]=jt(t.props,e);if(n===o)return;pt(e),e.dataset.lastDevice=o,e.innerHTML="";const r=oe(i?Yt(t,i):t,!!i,s);e.innerHTML=r.wrapperHtml,e.style.cssText=r.rootStyle,e.classList.add("wptb-style-isolation"),ie(t.props,e)},ie=(t,e)=>{pt(e);const s=Gt(e,{scrollX:t.scrollX,sticky:t.sticky});e.__wptbDisposeManualSticky=s;let n=null;const i=()=>{n&&n.refresh(1)},o=()=>{n&&(n.reOrder(),n.refresh())},r=ft(t);r.enable&&zt(e,r.keepHeader,i);const a=ht(t);(a.enableVertical||a.enableHorizontal)&&Ot(e,a,o);const u=gt(t);u.enable&&(n=Ft(e,u,Mt))};export{le as d,ie as i,oe as r,Yt as t};

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.