[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.139.87.39: ~ $
(()=>{var e,t={7692:(e,t,o)=>{"use strict";const a=window.React,l=window.wp.blocks,n=window.wp.blockEditor,r=window.lodash,i=window.wp.i18n,c=window.wp.element,d=window.wp.data;var s=o(2485),b=o.n(s);const u=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"kadence/table","title":"Table (Adv)","category":"kadence-blocks","textdomain":"kadence-blocks","attributes":{"uniqueID":{"type":"string"},"columns":{"type":"number"},"dataTypography":{"type":"array","default":[{"size":["","",""],"sizeType":"px","lineHeight":["","",""],"lineType":"","letterSpacing":"","family":"","google":"","style":"","weight":"","variant":"","subset":"","loadGoogle":true,"padding":["xxs","xs","xxs","xs"],"marginTop":8,"color":"","background":"","border":["","","",""],"borderRadius":["","","",""],"borderWidth":["","","",""],"colorHover":"","backgroundHover":"","borderHover":["","","",""],"colorActive":"","backgroundActive":"","borderActive":["","","",""],"textTransform":"","paddingTablet":["","","",""],"paddingMobile":["","","",""],"paddingType":"px"}]},"headerTypography":{"type":"array","default":[{"size":["","",""],"sizeType":"px","lineHeight":["","",""],"lineType":"","letterSpacing":"","family":"","google":"","style":"","weight":"","variant":"","subset":"","loadGoogle":true,"padding":["xxs","xs","xxs","xs"],"marginTop":8,"color":"","background":"","border":["","","",""],"borderRadius":["","","",""],"borderWidth":["","","",""],"colorHover":"","backgroundHover":"","borderHover":["","","",""],"colorActive":"","backgroundActive":"","borderActive":["","","",""],"textTransform":"","paddingTablet":["","","",""],"paddingMobile":["","","",""],"paddingType":"px"}]},"evenOddBackground":{"type":"boolean","default":false},"backgroundColorEven":{"type":"string","default":""},"backgroundColorOdd":{"type":"string","default":""},"backgroundHoverColorEven":{"type":"string","default":""},"backgroundHoverColorOdd":{"type":"string","default":""},"columnBackgrounds":{"type":"array","default":[]},"columnBackgroundsHover":{"type":"array","default":[]},"borderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"tabletBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"mobileBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"borderOnRowOnly":{"type":"boolean","default":false},"maxHeight":{"type":"array","default":["","",""]},"maxHeightUnit":{"type":"string","default":"px"},"maxWidth":{"type":"array","default":["","",""]},"maxWidthUnit":{"type":"string","default":"%"},"cellPadding":{"type":"array","default":["xxs","xxs","xxs","xxs"]},"tabletCellPadding":{"type":"array","default":["","","",""]},"mobileCellPadding":{"type":"array","default":["","","",""]},"cellPaddingType":{"type":"string","default":"px"},"headerAlign":{"type":"string","default":"center"},"headerAlignTablet":{"type":"string","default":""},"headerAlignMobile":{"type":"string","default":""},"textAlign":{"type":"string","default":"left"},"textAlignTablet":{"type":"string","default":""},"textAlignMobile":{"type":"string","default":""},"isFirstRowHeader":{"type":"boolean","default":false},"isFirstColumnHeader":{"type":"boolean","default":false},"columnSettings":{"type":"array","default":[]},"overflowXScroll":{"type":"boolean","default":false},"rowMinHeight":{"type":"number","default":""},"tabletRowMinHeight":{"type":"number","default":""},"mobileRowMinHeight":{"type":"number","default":""},"rowMinHeightType":{"type":"string","default":"px"},"padding":{"type":"array","default":["","","",""]},"tabletPadding":{"type":"array","default":["","","",""]},"mobilePadding":{"type":"array","default":["","","",""]},"paddingType":{"type":"string","default":"px"},"margin":{"type":"array","default":["","","",""]},"tabletMargin":{"type":"array","default":["","","",""]},"mobileMargin":{"type":"array","default":["","","",""]},"marginType":{"type":"string","default":"px"}},"providesContext":{"kadence/table/columns":"columns","kadence/table/isFirstRowHeader":"isFirstRowHeader","kadence/table/isFirstColumnHeader":"isFirstColumnHeader"},"supports":{"kbMetadata":true}}'),p=window.wp.components,k=window.kadence.components,g=window.kadence.helpers;function m(e){const{attributes:t,previewDevice:o}=e,l=!(!kadence_blocks_params.pro||"true"!==kadence_blocks_params.pro),{uniqueID:n,rows:r,columns:i,dataTypography:c,headerTypography:d,evenOddBackground:s,backgroundColorEven:b,backgroundColorOdd:u,backgroundHoverColorEven:p,backgroundHoverColorOdd:k,columnBackgrounds:m,columnBackgroundsHover:h,borderStyle:y,tabletBorderStyle:f,mobileBorderStyle:v,borderOnRowOnly:w,stickyFirstRow:_,stickyFirstColumn:C,maxWidth:x,maxWidthUnit:B,maxHeight:T,maxHeightUnit:E,cellPadding:H,tabletCellPadding:P,mobileCellPadding:S,cellPaddingType:M,textAlign:A,textAlignTablet:I,textAlignMobile:R,headerAlign:O,headerAlignTablet:F,headerAlignMobile:D,columnSettings:$,overflowXScroll:U,rowMinHeight:z,tabletRowMinHeight:N,mobileRowMinHeight:K,rowMinHeightType:q,padding:V,tabletPadding:W,mobilePadding:G,paddingType:L,margin:j,tabletMargin:X,mobileMargin:J,marginType:Q,isFirstColumnHeader:Y}=t,Z=new g.KadenceBlocksCSS,ee=(0,g.getPreviewSize)(o,O,F,D),te=(0,g.getPreviewSize)(o,A,I,R),oe=(0,g.getPreviewSize)(o,T?.[0],T?.[1],T?.[2]),ae=(0,g.getPreviewSize)(o,x?.[0],x?.[1],x?.[2]),le=(0,g.getPreviewSize)(o,z,N,K),ne=(0,g.getPreviewSize)(o,$?.find((e=>e?.unit))?.unit,$?.find((e=>e?.unitTablet))?.unitTablet,$?.find((e=>e?.unitMobile))?.unitMobile);if(Z.set_selector(`.kb-table${n}`),Z.render_font(c||[],o),Z.set_selector(`.kb-table-container${n}`),Z.render_measure_output(V,W,G,o,"padding",L),Z.render_measure_output(j,X,J,o,"margin",Q),T&&(Z.add_property("max-height",(0,g.getSpacingOptionOutput)(oe,E)+" !important"),Z.add_property("overflow-y","auto")),x&&(Z.add_property("max-width",(0,g.getSpacingOptionOutput)(ae,B)+" !important"),Z.add_property("overflow-x","auto")),Array.isArray($)){let e=!1,t=0,a="";$.forEach((o=>{!o?.useAuto&&o?.width&&(e=!0,a||(a=ne),ne===a&&(t+=parseFloat(o.width)))})),$.forEach(((l,r)=>{if(l?.useAuto){if(l?.useAuto&&e){const e=$.filter((e=>e?.useAuto)).length;if("%"===a&&e>0){const o=(100-t)/e;Z.set_selector(`.kb-table${n} tr > *:nth-child(${r+1})`),Z.add_property("width",`${o}%`)}}}else{const e=(0,g.getPreviewSize)(o,l?.width,l?.widthTablet,l?.widthMobile,!0);Z.set_selector(`.kb-table${n} tr > *:nth-child(${r+1})`),Z.add_property("width",`${e}${ne}`)}})),e&&(Z.set_selector(`.kb-table${n}`),Z.add_property("table-layout","fixed"),Z.add_property("width","100%"))}U&&(Z.set_selector(`.kb-table${n}`),Z.add_property("overflow-x","auto")),d[0].color&&(Z.set_selector(`.kb-table${n} th`),Z.add_property("color",(0,g.KadenceColorOutput)(d[0].color))),Z.set_selector(`.kb-table${n} th`),Z.render_font(d||[],o),Z.add_property("text-align",ee),Z.set_selector(`.kb-table${n} tr th`),Z.render_measure_output(H,P,S,o,"padding",M),Z.set_selector(`.kb-table${n} td`),Z.add_property("text-align",te),Z.set_selector(`.kb-table${n} tr td`),Z.render_measure_output(H,P,S,o,"padding",M),s?(Z.set_selector(`.kb-table${n} tr:nth-of-type(even)`),Z.add_property("background-color",(0,g.KadenceColorOutput)(b)),Z.set_selector(`.kb-table${n} tr:nth-of-type(odd)`),Z.add_property("background-color",(0,g.KadenceColorOutput)(u)),Z.set_selector(`.kb-table${n} tr:nth-of-type(odd):hover`),Z.add_property("background-color",(0,g.KadenceColorOutput)(k)),Z.set_selector(`.kb-table${n} tr:nth-of-type(even):hover`),Z.add_property("background-color",(0,g.KadenceColorOutput)(p))):(Z.set_selector(`.kb-table${n} tr`),Z.add_property("background-color",(0,g.KadenceColorOutput)(b)),Z.set_selector(`.kb-table${n} tr:hover`),Z.add_property("background-color",(0,g.KadenceColorOutput)(p))),m&&m.forEach(((e,t)=>{e&&(Y?Z.set_selector(`.kb-table${n} td:nth-of-type(${t})`):Z.set_selector(`.kb-table${n} td:nth-of-type(${t+1})`),Z.add_property("background-color",(0,g.KadenceColorOutput)(e)),Z.set_selector(`.kb-table${n} th:nth-of-type(${t+1})`),Z.add_property("background-color",(0,g.KadenceColorOutput)(e)))})),h&&h.forEach(((e,t)=>{e&&(Z.set_selector(`.kb-table${n} td:nth-of-type(${t+1}):hover, .kb-table${n} th:nth-of-type(${t+1}):hover`),Z.add_property("background-color",(0,g.KadenceColorOutput)(e)))})),le&&(Z.set_selector(`.kb-table${n} tr`),Z.add_property("height",(0,g.getSpacingOptionOutput)(le,q))),w?Z.set_selector(`.kb-table${n} tr`):Z.set_selector(`.kb-table${n} th, .kb-table${n} td`),Z.add_property("border-top",(0,g.getBorderStyle)(o,"top",y,f,v)),Z.add_property("border-right",(0,g.getBorderStyle)(o,"right",y,f,v)),Z.add_property("border-bottom",(0,g.getBorderStyle)(o,"bottom",y,f,v)),Z.add_property("border-left",(0,g.getBorderStyle)(o,"left",y,f,v)),l&&_&&(Z.set_selector(`.kb-table${n} tr:first-child`),Z.add_property("position","sticky !important"),Z.add_property("top","0"),Z.add_property("z-index","1001")),l&&C&&(Z.set_selector(`.kb-table${n} td:first-child, .kb-table${n} th:first-child`),Z.add_property("position","sticky !important"),Z.add_property("left","0"),Z.add_property("z-index","1000"));const re=Z.css_output();return(0,a.createElement)("style",null,`${re}`)}const h=window.wp.hooks,y=window.wp.primitives,f=(0,c.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(y.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),v=30,w=150,_=(window.wp.blob,window.wp.notices,e=>{const t=e.cells.map((e=>(e=>(0,l.createBlock)("kadence/table-data",{},[(0,l.createBlock)("core/paragraph",{content:e.content})]))(e)));return(0,l.createBlock)("kadence/table-row",{},t)}),C=e=>e.head&&e.head[0]?e.head[0].cells.length:e.body&&e.body[0]?e.body[0].cells.length:e.foot&&e.foot[0]?e.foot[0].cells.length:0,x={from:[{type:"block",isMultiBlock:!0,blocks:["core/table"],transform:e=>{const{head:t,body:o,foot:a}=e[0],n=[];return t&&t.length>0&&t.forEach((e=>{n.push(_(e))})),o&&o.length>0&&o.forEach((e=>{n.push(_(e))})),a&&a.length>0&&a.forEach((e=>{n.push(_(e))})),(0,l.createBlock)("kadence/table",{isFirstRowHeader:t&&t.length>0,columns:C(e[0])},n)}}]},B=window.kadence.icons,T=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"kadence/table-row","title":"Table (Adv)","parent":["kadence/table"],"allowedBlocks":["kadence/table-data"],"category":"kadence-blocks","textdomain":"kadence-blocks","attributes":{"uniqueID":{"type":"string"},"row":{"type":"number"},"backgroundColor":{"type":"string","default":""},"backgroundHoverColor":{"type":"string","default":""},"minHeight":{"type":"number","default":""},"minHeightTablet":{"type":"number","default":""},"minHeightMobile":{"type":"number","default":""},"minHeightType":{"type":"string","default":"px"}},"usesContext":["kadence/table/columns","kadence/table/isFirstRowHeader"],"providesContext":{"kadence/table/parentRow":"row","kadence/table/isFirstRowHeader":"kadence/table/isFirstRowHeader"},"supports":{"kbMetadata":true}}');function E(e){const{attributes:t,previewDevice:o}=e,{uniqueID:l,backgroundColor:n,backgroundHoverColor:r,minHeight:i,tabletMinHeight:c,mobileMinHeight:d,minHeightType:s}=t,b=(0,g.getPreviewSize)(o,i,c,d),u=new g.KadenceBlocksCSS;u.set_selector(`.kb-table-container .kb-table tr.kb-table-row${l}`),b&&u.add_property("height",b+s),""!==n&&u.add_property("background-color",(0,g.KadenceColorOutput)(n)),u.set_selector(`.kb-table-container .kb-table tr.kb-table-row${l}:hover`),""!==r&&u.add_property("background-color",(0,g.KadenceColorOutput)(r));const p=u.css_output();return(0,a.createElement)("style",null,`${p}`)}(0,l.registerBlockType)("kadence/table-row",{...T,title:(0,i._x)("Table Row","block title","kadence-blocks"),description:(0,i._x)("Display tables on your site","block description","kadence-blocks"),keywords:[(0,i.__)("table","kadence-blocks"),(0,i.__)("structure","kadence-blocks"),"KB"],icon:{src:B.tableRowBlockIcon},edit:function(e){const{attributes:t,setAttributes:o,className:s,clientId:u,context:m}=e,{uniqueID:h,backgroundColor:y,backgroundHoverColor:v,minHeight:w,tabletMinHeight:_,mobileMinHeight:C,minHeightType:x,row:B}=t,H=m["kadence/table/columns"],P=m["kadence/table/isFirstRowHeader"],{addUniqueID:S}=(0,d.useDispatch)("kadenceblocks/data"),{insertBlock:M}=(0,d.useDispatch)("core/block-editor"),{isUniqueID:A,isUniqueBlock:I,previewDevice:R,parentData:O,index:F,parentClientId:D}=(0,d.useSelect)((e=>({isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,o)=>e("kadenceblocks/data").isUniqueBlock(t,o),parentClientId:e("core/block-editor").getBlockParents(u)[0],previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),index:e("core/block-editor").getBlockIndex(u),parentData:{rootBlock:e("core/block-editor").getBlock(e("core/block-editor").getBlockHierarchyRootClientId(u)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(u,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}})),[u]);(0,c.useEffect)((()=>{F!==B&&o({row:F})}),[F]);const $=e=>{let t;switch(e){case"before":t=F;break;case"after":t=F+1;break;case"top":t=0;break;case"bottom":t=void 0;break;default:return}const o=(0,l.createBlock)("kadence/table-row",{});M(o,t,D,!1)},U=[{title:(0,i.__)("Add Row Before","kadence-blocks"),onClick:()=>$("before")},{title:(0,i.__)("Add Row After","kadence-blocks"),onClick:()=>$("after")},{title:(0,i.__)("Add Row at Top","kadence-blocks"),onClick:()=>$("top")},{title:(0,i.__)("Add Row at Bottom","kadence-blocks"),onClick:()=>$("bottom")}],[z,N]=(0,c.useState)("style"),{getBlocks:K}=(0,d.useSelect)((e=>e("core/block-editor"))),{replaceInnerBlocks:q}=(0,d.useDispatch)("core/block-editor"),V=(0,c.useMemo)((()=>0===F&&P?{"kadence/table/thisRowIsHeader":!0}:{"kadence/table/thisRowIsHeader":!1}),[F,P]);(0,c.useEffect)((()=>{(0,g.setBlockDefaults)("kadence/table-row",t);const a=(0,g.getPostOrFseId)(e,O),l=(0,g.getUniqueId)(h,u,A,I,a);l!==h?(t.uniqueID=l,o({uniqueID:l}),S(l,u)):S(h,u)}),[]),(0,c.useEffect)((()=>{const e=K(u);if(e.length<H){const t=[...e,...Array(Math.max(1,H-e.length)).fill(null).map((()=>(0,l.createBlock)("kadence/table-data",{})))];q(u,t,!1)}else if(e.length>H){const t=e.slice(0,H);q(u,t,!1)}}),[H]);const W=(0,n.useBlockProps)({className:b()({"kb-table-row":!0,[`kb-table-row${h}`]:h},s)}),{children:G,innerBlocksProps:L}=(0,n.useInnerBlocksProps)({className:""},{allowedBlocks:["kadence/table-data"],renderAppender:!1,templateInsertUpdatesSelection:!0,templateLock:"insert",orientation:"horizontal"});return(0,a.createElement)("tr",{...W},(0,a.createElement)(n.BlockControls,null,(0,a.createElement)(p.ToolbarDropdownMenu,{icon:f,label:(0,i.__)("Add Row","kadence-blocks")},(({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(p.MenuGroup,null,U.map((t=>(0,a.createElement)(p.MenuItem,{key:t.title,onClick:(0,r.flow)(e,t.onClick)},t.title))))))),(0,a.createElement)(k.CopyPasteAttributes,{attributes:t,excludedAttrs:[],defaultAttributes:T.attributes,blockSlug:T.name,onPaste:e=>o(e)})),(0,a.createElement)(k.KadenceInspectorControls,{blockSlug:"kadence/table-row"},(0,a.createElement)(k.SelectParentBlock,{label:(0,i.__)("View Table Settings","kadence-blocks"),clientId:u,parentSlug:"kadence/table"}),(0,a.createElement)(k.InspectorControlTabs,{panelName:"table-row",allowedTabs:["general"],setActiveTab:N,activeTab:z}),"general"===z&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Row Style","kadence-blocks"),initialOpen:!0,panelName:"table-row-style"},(0,a.createElement)(k.PopColorControl,{label:(0,i.__)("Row Background","kadence-blocks"),value:y||"",default:"",onChange:e=>o({backgroundColor:e})}),(0,a.createElement)(k.PopColorControl,{label:(0,i.__)("Row Hover Background","kadence-blocks"),value:v||"",default:"",onChange:e=>o({backgroundHoverColor:e})})),(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Row Height","kadence-blocks"),initialOpen:!0,panelName:"table-row-height"},(0,a.createElement)(k.ResponsiveRangeControls,{label:(0,i.__)("Height","kadence-blocks"),value:w,onChange:e=>o({minHeight:e}),tabletValue:_,onChangeTablet:e=>o({tabletMinHeight:e}),mobileValue:C,onChangeMobile:e=>o({mobileMinHeight:e}),min:0,max:"px"===x?600:100,step:1,unit:x,onUnit:e=>{o({minHeightType:e})},units:["px","em","vh"],reset:()=>o({minHeight:null,tabletMinHeight:null,mobileMinHeight:null}),showUnit:!0})))),(0,a.createElement)(n.BlockContextProvider,{value:V},G),(0,a.createElement)(E,{attributes:t,previewDevice:R}))},save:()=>(0,a.createElement)(n.InnerBlocks.Content,null),example:{}});const H=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"kadence/table-data","title":"Table Data","category":"kadence-blocks","textdomain":"kadence-blocks","parent":["kadence/table-row"],"attributes":{"uniqueID":{"type":"string"},"column":{"type":"number"},"padding":{"type":"array","default":["","","",""]},"tabletPadding":{"type":"array","default":["","","",""]},"mobilePadding":{"type":"array","default":["","","",""]},"paddingType":{"type":"string","default":"px"}},"supports":{"kbMetadata":true},"usesContext":["kadence/table/thisRowIsHeader","kadence/table/isFirstColumnHeader","kadence/table/parentRow","kadence/table/isFirstRowHeader"]}');function P(e){const{attributes:t,previewDevice:o}=e,{uniqueID:l,padding:n,tabletPadding:r,mobilePadding:i,paddingType:c}=t,d=new g.KadenceBlocksCSS;d.set_selector(`tr th.kb-table-data${l}, tr td.kb-table-data${l}`),d.render_measure_output(n,r,i,o,"padding",c);const s=d.css_output();return(0,a.createElement)("style",null,`${s}`)}const S=[["core/paragraph",{}]];(0,l.registerBlockType)("kadence/table-data",{...H,title:(0,i._x)("Table Data","block title","kadence-blocks"),description:(0,i._x)("Display tables on your site","block description","kadence-blocks"),keywords:[(0,i.__)("table","kadence-blocks"),(0,i.__)("structure","kadence-blocks"),"KB"],icon:{src:B.tableDataBlockIcon},edit:function(e){const{attributes:t,setAttributes:o,className:s,clientId:u,context:m}=e,{uniqueID:h,column:y,padding:v,tabletPadding:w,mobilePadding:_,paddingType:C}=t,[x,B]=(0,c.useState)("general"),{addUniqueID:T}=(0,d.useDispatch)("kadenceblocks/data"),{replaceInnerBlocks:E}=(0,d.useDispatch)("core/block-editor"),{insertBlock:H,updateBlockAttributes:M}=(0,d.useDispatch)("core/block-editor"),{isUniqueID:A,isUniqueBlock:I,parentData:R,index:O,parentTableClientId:F,parentColumns:D,columnPosition:$,siblingRows:U,hasInnerBlocks:z,previewDevice:N}=(0,d.useSelect)((e=>{const t=e("core/block-editor").getBlockParents(u),o=t[0],a=t[1],l=e("core/block-editor").getBlockOrder(a);return{isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,o)=>e("kadenceblocks/data").isUniqueBlock(t,o),index:e("core/block-editor").getBlockIndex(u),parentTableClientId:o,parentColumns:e("core/block-editor").getBlockAttributes(o).columns,currentRowClientId:a,columnPosition:l.indexOf(u),siblingRows:e("core/block-editor").getBlocks(o),hasInnerBlocks:e("core/block-editor").getBlocks(u).length>0,previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),parentData:{rootBlock:e("core/block-editor").getBlock(e("core/block-editor").getBlockHierarchyRootClientId(u)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(u,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}}}),[u]);(0,c.useEffect)((()=>{$!==y&&o({column:$})}),[$]),(0,c.useEffect)((()=>{if(!z){const e=(0,l.createBlock)("core/paragraph");E(u,[e],!1)}}),[z]);const K=b()({className:!0,[`kb-table-data${h}`]:h,"kb-table-data":!0}),q=(0,n.useBlockProps)({className:K});(0,c.useEffect)((()=>{(0,g.setBlockDefaults)("kadence/table-data",t);const a=(0,g.getPostOrFseId)(e,R),l=(0,g.getUniqueId)(h,u,A,I,a);l!==h?(t.uniqueID=l,o({uniqueID:l}),T(l,u)):T(h,u)}),[]);const V=e=>{let t;switch(e){case"before":t=O;break;case"after":t=O+1;break;case"top":t=0;break;case"bottom":t=void 0;break;default:return}const o=(0,l.createBlock)("kadence/table-row",{});H(o,t,F,!1)},W=e=>{const t=D+1;let o;switch(e){case"before":o=$;break;case"after":o=$+1;break;case"start":o=0;break;case"end":o=D;break;default:return}U.forEach((e=>{const a=[...e.innerBlocks],n=(0,l.createBlock)("kadence/table-data",{});a.splice(o,0,n),E(e.clientId,a,!1),M(F,{columns:t})}))},G=[{title:(0,i.__)("Add Row Before","kadence-blocks"),onClick:()=>V("before")},{title:(0,i.__)("Add Row After","kadence-blocks"),onClick:()=>V("after")},{title:(0,i.__)("Add Row at Top","kadence-blocks"),onClick:()=>V("top")},{title:(0,i.__)("Add Row at Bottom","kadence-blocks"),onClick:()=>V("bottom")}],L=[{title:(0,i.__)("Add Column Before","kadence-blocks"),onClick:()=>W("before")},{title:(0,i.__)("Add Column After","kadence-blocks"),onClick:()=>W("after")},{title:(0,i.__)("Add Column at Start","kadence-blocks"),onClick:()=>W("start")},{title:(0,i.__)("Add Column at End","kadence-blocks"),onClick:()=>W("end")}],j=m["kadence/table/thisRowIsHeader"],X=m["kadence/table/isFirstColumnHeader"],J=0===O&&X||j?"th":"td";return(0,a.createElement)(J,{...q},(0,a.createElement)(P,{attributes:t,previewDevice:N}),(0,a.createElement)(n.BlockControls,null,(0,a.createElement)(p.ToolbarDropdownMenu,{icon:f,label:(0,i.__)("Add Row or Column","kadence-blocks")},(({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(p.MenuGroup,null,G.map((t=>(0,a.createElement)(p.MenuItem,{key:t.title,onClick:(0,r.flow)(e,t.onClick)},t.title)))),(0,a.createElement)(p.MenuGroup,null,L.map((t=>(0,a.createElement)(p.MenuItem,{key:t.title,onClick:(0,r.flow)(e,t.onClick)},t.title))))))),(0,a.createElement)(k.CopyPasteAttributes,{attributes:t,setAttributes:o,blockName:"kadence/table-data"})),(0,a.createElement)(k.KadenceInspectorControls,{blockSlug:"kadence/table-data"},(0,a.createElement)(k.SelectParentBlock,{label:(0,i.__)("View Row Settings","kadence-blocks"),clientId:u,parentSlug:"kadence/table-row"}),(0,a.createElement)(k.InspectorControlTabs,{panelName:"table-data",allowedTabs:["general"],setActiveTab:e=>B(e),activeTab:x}),"general"===x&&(0,a.createElement)(k.KadencePanelBody,{initialOpen:!0},(0,a.createElement)(k.ResponsiveMeasureRangeControl,{label:(0,i.__)("Padding","kadence-blocks"),value:v,tabletValue:w,mobileValue:_,onChange:e=>o({padding:e}),onChangeTablet:e=>o({tabletPadding:e}),onChangeMobile:e=>o({mobilePadding:e}),min:"em"===C||"rem"===C?-25:-999,max:"em"===C||"rem"===C?25:999,step:"em"===C||"rem"===C?.1:1,unit:C,units:["px","em","rem","%"],onUnit:e=>o({paddingType:e})}))),(0,a.createElement)(n.InnerBlocks,{template:S,renderAppender:!1,templateLock:!1}))},save:()=>(0,a.createElement)(n.InnerBlocks.Content,null),example:{}}),(0,l.registerBlockType)("kadence/table",{...u,title:(0,i._x)("Table (Adv)","block title","kadence-blocks"),description:(0,i._x)("Display tables on your site","block description","kadence-blocks"),keywords:[(0,i.__)("table","kadence-blocks"),(0,i.__)("structure","kadence-blocks"),"KB"],icon:{src:B.tableBlockIcon},edit:function(e){const{attributes:t,setAttributes:o,className:s,isSelected:y,clientId:_}=e,{uniqueID:C,rows:x,columns:B,dataTypography:T,headerTypography:E,evenOddBackground:H,backgroundColorEven:P,backgroundColorOdd:S,backgroundHoverColorEven:M,backgroundHoverColorOdd:A,columnBackgrounds:I,columnBackgroundsHover:R,borderStyle:O,tabletBorderStyle:F,mobileBorderStyle:D,borderOnRowOnly:$,stickyFirstRow:U,stickyFirstColumn:z,maxWidth:N,maxWidthUnit:K,maxHeight:q,maxHeightUnit:V,cellPadding:W,mobileCellPadding:G,tabletCellPadding:L,cellPaddingType:j,textAlign:X,textAlignTablet:J,textAlignMobile:Q,headerAlign:Y,headerAlignTablet:Z,headerAlignMobile:ee,isFirstRowHeader:te,isFirstColumnHeader:oe,columnSettings:ae,overflowXScroll:le,rowMinHeight:ne,tabletRowMinHeight:re,mobileRowMinHeight:ie,rowMinHeightType:ce,padding:de,tabletPadding:se,mobilePadding:be,paddingType:ue,margin:pe,tabletMargin:ke,mobileMargin:ge,marginType:me}=t,{addUniqueID:he}=(0,d.useDispatch)("kadenceblocks/data"),{insertBlock:ye}=(0,d.useDispatch)("core/block-editor"),{isUniqueID:fe,isUniqueBlock:ve,previewDevice:we,parentData:_e,childSelected:Ce}=(0,d.useSelect)((e=>({isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,o)=>e("kadenceblocks/data").isUniqueBlock(t,o),childSelected:e("core/block-editor").hasSelectedInnerBlock(_,!0),previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),parentData:{rootBlock:e("core/block-editor").getBlock(e("core/block-editor").getBlockHierarchyRootClientId(_)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(_,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}})),[_]),{replaceInnerBlocks:xe}=(0,d.useDispatch)("core/block-editor"),[Be,Te]=(0,c.useState)("general"),[Ee,He]=(0,c.useState)(4),[Pe,Se]=(0,c.useState)(2),[Me,Ae]=(0,c.useState)(!1),Ie=[],Re=b()({"kb-table-container":!0,[`kb-table-container${C}`]:C},s),Oe=(0,n.useBlockProps)({className:Re});(0,c.useEffect)((()=>{(0,g.setBlockDefaults)("kadence/table",t);const a=(0,g.getPostOrFseId)(e,_e),l=(0,g.getUniqueId)(C,_,fe,ve,a);l!==C?(t.uniqueID=l,o({uniqueID:l}),he(l,_)):he(C,_)}),[]);const Fe=e=>{let t;switch(e){case"top":t=0;break;case"bottom":t=void 0;break;default:return}const o=(0,l.createBlock)("kadence/table-row",{});ye(o,t,_,!1)},De=[{title:(0,i.__)("Add Row at Top","kadence-blocks"),onClick:()=>Fe("top")},{title:(0,i.__)("Add Row at Bottom","kadence-blocks"),onClick:()=>Fe("bottom")}],$e=(0,d.select)("core/block-editor").getBlocks(_),Ue=(e,t,a=!1)=>{const l=a?[...R]:[...I];""===t?(delete l[e],l.length=l.length||e+1):l[e]=t,o({[a?"columnBackgroundsHover":"columnBackgrounds"]:l})},ze=(e,t=!1)=>{const o=t?R:I;return o&&o[e]?o[e]:""},Ne=(0,n.useInnerBlocksProps)({className:b()({"kb-table":!0,[`kb-table${C}`]:C},s),style:{}},{allowedBlocks:["kadence/table-row"],renderAppender:!1,templateInsertUpdatesSelection:!1}),Ke=()=>(0,l.createBlock)("kadence/table-row",{}),qe=()=>({useAuto:!0,width:v,unit:"%"}),Ve=e=>(ae||[])[e]||qe(),We=(e,t)=>{const a=[...ae||[]],l=Ve(e);if(t.unit||t.unitTablet||t.unitMobile){a.forEach(((e,o)=>{e&&(a[o]={...e,...t.unit&&{unit:t.unit},...t.unitTablet&&{unitTablet:t.unitTablet},...t.unitMobile&&{unitMobile:t.unitMobile}})}));for(let e=0;e<B;e++)a[e]||(a[e]={...qe(),...t.unit&&{unit:t.unit},...t.unitTablet&&{unitTablet:t.unitTablet},...t.unitMobile&&{unitMobile:t.unitMobile}})}else a[e]={...l,...t};o({columnSettings:a})},Ge=e=>{o({dataTypography:[{...T[0],...e},...T.slice(1)]})},Le=e=>{o({headerTypography:[{...E[0],...e},...E.slice(1)]})},je=(0,g.getPreviewSize)(we,ae?.find((e=>e?.unit))?.unit,ae?.find((e=>e?.unitTablet))?.unitTablet,ae?.find((e=>e?.unitMobile))?.unitMobile),Xe=(0,a.createElement)(a.Fragment,null,(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Sticky Settings","kadence-blocks"),initialOpen:!1,panelName:"table-sticky-upsell",proTag:!0},(0,a.createElement)("div",{className:"kb-pro-notice"},(0,a.createElement)("h2",null,(0,i.__)("Sticky Rows & Columns Styles","kadence-blocks")," "),(0,a.createElement)("p",null,(0,i.__)("Custmize your table with sticky rows and columns. This feature is available in the Pro version of Kadence Blocks.","kadence-blocks")," "),(0,a.createElement)(p.ExternalLink,{href:"https://www.kadencewp.com/kadence-blocks/pro/?utm_source=in-app&utm_medium=kadence-blocks&utm_campaign=table"},(0,i.__)("Upgrade to Pro","kadence-blocks")))));return void 0===B?(0,a.createElement)("div",{...Oe,style:{backgroundColor:"#FFF",border:"0.5px solid #000",padding:"20px"}},(0,a.createElement)("h4",{style:{marginTop:"0",marginBottom:"15px"}},(0,i.__)("Table layout","kadence-blocks")),(0,a.createElement)("div",{style:{maxWidth:"350px"}},(0,a.createElement)(p.RangeControl,{label:(0,i.__)("Columns","kadence-blocks"),value:Pe,onChange:e=>Se(e),min:1,max:15}),(0,a.createElement)(p.RangeControl,{label:(0,i.__)("Rows","kadence-blocks"),value:Ee,onChange:e=>He(e),min:1,max:100}),(0,a.createElement)(p.Button,{isPrimary:!0,style:{marginTop:"10px"},onClick:()=>(o({columns:parseInt(Pe)}),void(e=>{let t=[...(0,d.select)("core/block-editor").getBlocks(_)];const o=Array(e).fill(null).map((()=>Ke()));t=[...t,...o],xe(_,t,!1)})(Ee))},(0,i.__)("Create Table","kadence-blocks")))):(0,a.createElement)("div",{...Oe},(0,a.createElement)(n.BlockControls,null,(0,a.createElement)(p.ToolbarDropdownMenu,{icon:f,label:(0,i.__)("Add Row","kadence-blocks")},(({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(p.MenuGroup,null,De.map((t=>(0,a.createElement)(p.MenuItem,{key:t.title,onClick:(0,r.flow)(e,t.onClick)},t.title))))))),(0,a.createElement)(k.CopyPasteAttributes,{attributes:t,excludedAttrs:Ie,defaultAttributes:u.attributes,blockSlug:u.name,onPaste:e=>o(e)})),(0,a.createElement)(k.KadenceInspectorControls,{blockSlug:"kadence/lottie"},(0,a.createElement)(k.InspectorControlTabs,{panelName:"lottie",setActiveTab:Te,activeTab:Be}),"general"===Be&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(k.KadencePanelBody,{initialOpen:!0,panelName:"tableStructure",blockSlug:"kadence/table"},(0,a.createElement)(p.__experimentalNumberControl,{label:(0,i.__)("Rows","kadence-blocks"),value:$e.length,onChange:e=>{parseInt(e)>$e.length?(e=>{const{insertBlock:t}=(0,d.dispatch)("core/block-editor");t(Ke(),e+1,_,!1)})(9999):(()=>{const{removeBlock:e}=(0,d.dispatch)("core/block-editor"),t=(0,d.select)("core/block-editor").getBlocks(_);t.length>1&&e(t[t.length-1].clientId,!1)})()},min:1,max:200,style:{marginTop:"15px"}}),(0,a.createElement)(p.__experimentalNumberControl,{label:(0,i.__)("Columns","kadence-blocks"),value:B,onChange:e=>o({columns:parseInt(e)}),min:1,max:20,style:{marginTop:"15px"}})),(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Headers","kadence-blocks"),initialOpen:!1,panelName:"table-headers"},(0,a.createElement)(p.ToggleControl,{label:(0,i.__)("First row is header","kadence-blocks"),checked:te,onChange:e=>o({isFirstRowHeader:e}),help:(0,i.__)("Switches to th tag and applies header typography styles.","kadence-blocks")}),(0,a.createElement)(p.ToggleControl,{label:(0,i.__)("First column is header","kadence-blocks"),checked:oe,onChange:e=>o({isFirstColumnHeader:e}),help:(0,i.__)("Switches to th tag and applies header typography styles.","kadence-blocks")})),(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Column Widths","kadence-blocks"),initialOpen:!1,panelName:"kb-table-column-widths"},(0,a.createElement)("div",{className:"kb-table-column-controls"},Array.from({length:B}).map(((e,t)=>{const o=Ve(t);return(0,a.createElement)("div",{key:t,className:"kb-table-column-control",style:{marginBottom:"24px",borderBottom:"1px solid #e0e0e0",paddingBottom:"16px"}},(0,a.createElement)("h3",{style:{margin:"0 0 8px"}},(0,i.sprintf)(
// Translators: %d is the column number.
// Translators: %d is the column number.
(0,i.__)("Column %d","kadence-blocks"),t+1)),(0,a.createElement)(p.ToggleControl,{label:(0,i.__)("Use auto width","kadence-blocks"),checked:o.useAuto,onChange:e=>We(t,{useAuto:e})}),!o.useAuto&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{style:{display:"flex",gap:"8px",alignItems:"flex-start",marginTop:"8px"}},(0,a.createElement)("div",{style:{flex:1}},(0,a.createElement)(k.ResponsiveRangeControls,{label:(0,i.__)("Max Width","kadence-blocks"),value:parseFloat(o.width)||("%"===je?v:w),onChange:e=>{We(t,{width:e=e||""})},tabletValue:parseFloat(o.widthTablet)||("%"===je?v:w),onChangeTablet:e=>{We(t,{widthTablet:e=e||""})},mobileValue:parseFloat(o.widthMobile)||("%"===je?v:w),onChangeMobile:e=>{We(t,{widthMobile:e=e||""})},min:0,max:"px"===je?2e3:100,step:1,reset:()=>We(t,{width:"",widthTablet:"",widthMobile:""}),unit:je||"%",allowResponsiveUnitChange:!0,onUnit:e=>{const o="Desktop"===we?"":we;console.log("Setting unit to: ",{["unit"+o]:e}),We(t,{["unit"+o]:e})},units:["px","%"]})))))})))),(0,h.applyFilters)("kadence.tableBlockStickySettings",Xe,e),(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Table Sizing","kadence-blocks"),panelName:"table-sizing",initialOpen:!1},(0,a.createElement)(k.ResponsiveRangeControls,{label:(0,i.__)("Max Height","kadence-blocks"),reset:!0,value:void 0!==q&&void 0!==q[0]?q[0]:"",onChange:e=>{o({maxHeight:[e,void 0!==q&&void 0!==q[1]?q[1]:"",void 0!==q&&void 0!==q[2]?q[2]:""]})},tabletValue:void 0!==q&&void 0!==q[1]?q[1]:"",onChangeTablet:e=>{o({maxHeight:[void 0!==q&&void 0!==q[0]?q[0]:"",e,void 0!==q&&void 0!==q[2]?q[2]:""]})},mobileValue:void 0!==q&&void 0!==q[2]?q[2]:"",onChangeMobile:e=>{o({maxHeight:[void 0!==q&&void 0!==q[0]?q[0]:"",void 0!==q&&void 0!==q[1]?q[1]:"",e]})},min:0,max:"px"===V?2e3:100,step:1,unit:V||"px",onUnit:e=>{o({maxHeightUnit:e})},units:["px","%","vw"]}),(0,a.createElement)(k.ResponsiveRangeControls,{label:(0,i.__)("Max Width","kadence-blocks"),reset:!0,value:void 0!==N&&void 0!==N[0]?N[0]:"",onChange:e=>{o({maxWidth:[e,void 0!==N&&void 0!==N[1]?N[1]:"",void 0!==N&&void 0!==N[2]?N[2]:""]})},tabletValue:void 0!==N&&void 0!==N[1]?N[1]:"",onChangeTablet:e=>{o({maxWidth:[void 0!==N&&void 0!==N[0]?N[0]:"",e,void 0!==N&&void 0!==N[2]?N[2]:""]})},mobileValue:void 0!==N&&void 0!==N[2]?N[2]:"",onChangeMobile:e=>{o({maxWidth:[void 0!==N&&void 0!==N[0]?N[0]:"",void 0!==N&&void 0!==N[1]?N[1]:"",e]})},min:0,max:"px"===K?2e3:100,step:1,unit:K||"%",onUnit:e=>{o({maxWidthUnit:e})},units:["px","%","vw"]}),(0,a.createElement)(p.ToggleControl,{label:(0,i.__)("Overflow-x scroll","kadence-blocks"),checked:le,onChange:e=>o({overflowXScroll:e})}))),"style"===Be&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Borders","kadence-blocks"),panelName:"table-borders",initialOpen:!0},(0,a.createElement)(k.ResponsiveBorderControl,{label:(0,i.__)("Border","kadence-blocks"),value:O,tabletValue:F,mobileValue:D,onChange:e=>o({borderStyle:e}),onChangeTablet:e=>o({tabletBorderStyle:e}),onChangeMobile:e=>o({mobileBorderStyle:e})}),(0,a.createElement)(p.ToggleControl,{label:(0,i.__)("Only apply to rows","kadence-blocks"),checked:$,onChange:e=>o({borderOnRowOnly:e})})),(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Cell Padding","kadence-blocks"),panelName:"table-cell-padding",initialOpen:!1},(0,a.createElement)(k.ResponsiveMeasureRangeControl,{label:(0,i.__)("Padding","kadence-blocks"),value:W,tabletValue:L,mobileValue:G,onChange:e=>o({cellPadding:e}),onChangeTablet:e=>o({tabletCellPadding:e}),onChangeMobile:e=>o({mobileCellPadding:e}),min:"em"===j||"rem"===j?-25:-999,max:"em"===j||"rem"===j?25:999,step:"em"===j||"rem"===j?.1:1,unit:j,units:["px","em","rem","%"],onUnit:e=>o({cellPaddingType:e})})),(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Cell Typography","kadence-blocks"),panelName:"table-cell-typography",initialOpen:!1},(0,a.createElement)(k.ResponsiveAlignControls,{label:(0,i.__)("Text Alignment","kadence-blocks"),value:X,mobileValue:Q,tabletValue:J,onChange:e=>o({textAlign:e}),onChangeTablet:e=>o({textAlignMobile:e}),onChangeMobile:e=>o({textAlignTablet:e})}),(0,a.createElement)(k.PopColorControl,{label:(0,i.__)("Text Color","kadence-blocks"),value:T[0].color,default:"",onChange:e=>Ge({color:e})}),(0,a.createElement)(k.TypographyControls,{fontGroup:"heading",fontSize:T[0].size,onFontSize:e=>Ge({size:e}),fontSizeType:T[0].sizeType,onFontSizeType:e=>Ge({sizeType:e}),lineHeight:T[0].lineHeight,onLineHeight:e=>Ge({lineHeight:e}),lineHeightType:T[0].lineType,onLineHeightType:e=>Ge({lineType:e}),letterSpacing:T[0].letterSpacing,onLetterSpacing:e=>Ge({letterSpacing:e}),textTransform:T[0].textTransform,onTextTransform:e=>Ge({textTransform:e}),fontFamily:T[0].family,onFontFamily:e=>Ge({family:e}),onFontChange:e=>{Ge({family:e.value,google:e.google})},onFontArrayChange:e=>Ge(e),googleFont:T[0].google,onGoogleFont:e=>Ge({google:e}),loadGoogleFont:T[0].loadGoogle,onLoadGoogleFont:e=>Ge({loadGoogle:e}),fontVariant:T[0].variant,onFontVariant:e=>Ge({variant:e}),fontWeight:T[0].weight,onFontWeight:e=>Ge({weight:e}),fontStyle:T[0].style,onFontStyle:e=>Ge({style:e}),fontSubset:T[0].subset,onFontSubset:e=>Ge({subset:e})})),(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Header Typography","kadence-blocks"),panelName:"table-header-typography",initialOpen:!1},(0,a.createElement)(k.ResponsiveAlignControls,{label:(0,i.__)("Text Alignment","kadence-blocks"),value:Y,mobileValue:ee,tabletValue:Z,onChange:e=>o({headerAlign:e}),onChangeTablet:e=>o({headerAlignMobile:e}),onChangeMobile:e=>o({headerAlignTablet:e})}),(0,a.createElement)(k.PopColorControl,{label:(0,i.__)("Header Color","kadence-blocks"),value:E[0].color,default:"",onChange:e=>Le({color:e})}),(0,a.createElement)(k.TypographyControls,{fontGroup:"heading",fontSize:E[0].size,onFontSize:e=>Le({size:e}),fontSizeType:E[0].sizeType,onFontSizeType:e=>Le({sizeType:e}),lineHeight:E[0].lineHeight,onLineHeight:e=>Le({lineHeight:e}),lineHeightType:E[0].lineType,onLineHeightType:e=>Le({lineType:e}),letterSpacing:E[0].letterSpacing,onLetterSpacing:e=>Le({letterSpacing:e}),textTransform:E[0].textTransform,onTextTransform:e=>Le({textTransform:e}),fontFamily:E[0].family,onFontFamily:e=>Le({family:e}),onFontChange:e=>{Le({family:e.value,google:e.google})},onFontArrayChange:e=>Le(e),googleFont:E[0].google,onGoogleFont:e=>Le({google:e}),loadGoogleFont:E[0].loadGoogle,onLoadGoogleFont:e=>Le({loadGoogle:e}),fontVariant:E[0].variant,onFontVariant:e=>Le({variant:e}),fontWeight:E[0].weight,onFontWeight:e=>Le({weight:e}),fontStyle:E[0].style,onFontStyle:e=>Le({style:e}),fontSubset:E[0].subset,onFontSubset:e=>Le({subset:e})})),(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Row Backgrounds","kadence-blocks"),panelName:"table-row-background",initialOpen:!1},(0,a.createElement)(p.ToggleControl,{label:(0,i.__)("Even/Odd Backgrounds","kadence-blocks"),checked:H,onChange:e=>o({evenOddBackground:e})}),(0,a.createElement)(k.HoverToggleControl,{hover:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(k.PopColorControl,{label:(0,i.__)("Hover Background Color","kadence-blocks"),value:M||"",default:"",onChange:e=>o({backgroundHoverColorEven:e})}),H&&(0,a.createElement)(k.PopColorControl,{label:(0,i.__)("Hover Odd Background Color","kadence-blocks"),value:A||"",default:"",onChange:e=>o({backgroundHoverColorOdd:e})})),normal:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(k.PopColorControl,{label:(0,i.__)("Background Color","kadence-blocks"),value:P||"",default:"",onChange:e=>o({backgroundColorEven:e})}),H&&(0,a.createElement)(k.PopColorControl,{label:(0,i.__)("Odd Background Color","kadence-blocks"),value:S||"",default:"",onChange:e=>o({backgroundColorOdd:e})}))})),(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Column Backgrounds","kadence-blocks"),panelName:"column-bgs",initialOpen:!1},Array.from({length:B}).map(((e,t)=>(0,a.createElement)(k.KadencePanelBody,{key:t,title:(0,i.sprintf)((0,i.__)("Column %d Background","kadence-blocks"),t+1),panelName:"column-bg-"+t,initialOpen:!1},(0,a.createElement)(k.HoverToggleControl,{hover:(0,a.createElement)(k.PopColorControl,{key:t+"hover",label:(0,i.__)("Hover Background Color","kadence-blocks"),value:ze(t,!0),default:"",onChange:e=>Ue(t,e,!0)}),normal:(0,a.createElement)(k.PopColorControl,{key:t+"normal",label:(0,i.__)("Background Color","kadence-blocks"),value:ze(t),default:"",onChange:e=>Ue(t,e)})}))))),(0,a.createElement)(k.KadencePanelBody,{title:(0,i.__)("Row Height","kadence-blocks"),initialOpen:!1,panelName:"table-row-height"},(0,a.createElement)(k.ResponsiveRangeControls,{label:(0,i.__)("Height","kadence-blocks"),value:ne,onChange:e=>o({rowMinHeight:e}),tabletValue:re,onChangeTablet:e=>o({tabletRowMinHeight:e}),mobileValue:ie,onChangeMobile:e=>o({mobileRowMinHeight:e}),min:0,max:"px"===ce?600:100,step:1,unit:ce,onUnit:e=>{o({rowMinHeightType:e})},units:["px","em","vh"],reset:()=>o({rowMinHeight:null,tabletRowMinHeight:null,mobileRowMinHeight:null}),showUnit:!0}))),"advanced"===Be&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(k.KadencePanelBody,{initialOpen:!0},(0,a.createElement)(k.ResponsiveMeasureRangeControl,{label:(0,i.__)("Padding","kadence-blocks"),value:de,tabletValue:se,mobileValue:be,onChange:e=>o({padding:e}),onChangeTablet:e=>o({tabletPadding:e}),onChangeMobile:e=>o({mobilePadding:e}),min:0,max:"em"===ue||"rem"===ue?25:"px"===ue?400:100,step:"em"===ue||"rem"===ue?.1:1,unit:ue,units:["px","em","rem","%"],onUnit:e=>o({paddingType:e})}),(0,a.createElement)(k.ResponsiveMeasureRangeControl,{label:(0,i.__)("Margin","kadence-blocks"),value:pe,tabletValue:ke,mobileValue:ge,onChange:e=>o({margin:e}),onChangeTablet:e=>o({tabletMargin:e}),onChangeMobile:e=>o({mobileMargin:e}),min:0,max:"em"===me||"rem"===me?25:"px"===me?400:100,step:"em"===me||"rem"===me?.1:1,unit:me,units:["px","em","rem","%"],onUnit:e=>o({marginType:e})}),(0,a.createElement)(k.KadenceBlockDefaults,{attributes:t,defaultAttributes:u.attributes,blockSlug:u.name,excludedAttrs:Ie})))),(0,a.createElement)(m,{attributes:t,previewDevice:we}),(y||Ce)&&(0,a.createElement)("div",{className:"kb-table-width-controls"},(0,a.createElement)("div",{className:"kb-table-width-resizers",style:{display:"flex"}},Array.from({length:B}).map(((e,t)=>{const o=Ve(t);if(o.useAuto)return(0,a.createElement)("div",{key:t,style:{flex:1,height:"30px",backgroundColor:"#f0f0f0",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",margin:"0 1px"}},(0,i.__)("Auto","kadence-blocks"));const l=(0,g.getPreviewSize)(we,o.width,o.widthTablet,o.widthMobile,!0);return(0,a.createElement)(p.ResizableBox,{key:t,size:{width:`${l||v}${je}`,height:30},minWidth:"%"===je?"1%":"20",maxWidth:"%"===je?"100%":"1000",enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>{Ae(!0),l||We(t,{width:"%"===je?v:w})},onResizeStop:(e,o,a,n)=>{Ae(!1);const r=parseFloat(l)||("%"===je?v:w),i="%"===je?r+n.width/a.parentElement.offsetWidth*100:r+n.width;We(t,{width:Math.round(Math.max("%"===je?1:20,Math.min("%"===je?100:1e3,i)))})},showHandle:!Me},(0,a.createElement)("div",{style:{height:"100%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px"}},`${Math.round(l||("%"===je?v:w))}${je}`))})))),(0,a.createElement)("table",{...Ne}))},transforms:x,save:()=>(0,a.createElement)(n.InnerBlocks.Content,null),example:{}})},2485:(e,t)=>{var o;!function(){"use strict";var a={}.hasOwnProperty;function l(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)){if(o.length){var r=l.apply(null,o);r&&e.push(r)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var i in o)a.call(o,i)&&o[i]&&e.push(i);else e.push(o.toString())}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(o=function(){return l}.apply(t,[]))||(e.exports=o)}()}},o={};function a(e){var l=o[e];if(void 0!==l)return l.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,a),n.exports}a.m=t,e=[],a.O=(t,o,l,n)=>{if(!o){var r=1/0;for(s=0;s<e.length;s++){o=e[s][0],l=e[s][1],n=e[s][2];for(var i=!0,c=0;c<o.length;c++)(!1&n||r>=n)&&Object.keys(a.O).every((e=>a.O[e](o[c])))?o.splice(c--,1):(i=!1,n<r&&(r=n));if(i){e.splice(s--,1);var d=l();void 0!==d&&(t=d)}}return t}n=n||0;for(var s=e.length;s>0&&e[s-1][2]>n;s--)e[s]=e[s-1];e[s]=[o,l,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={7322:0,683:0};a.O.j=t=>0===e[t];var t=(t,o)=>{var l,n,r=o[0],i=o[1],c=o[2],d=0;if(r.some((t=>0!==e[t]))){for(l in i)a.o(i,l)&&(a.m[l]=i[l]);if(c)var s=c(a)}for(t&&t(o);d<r.length;d++)n=r[d],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(s)},o=self.webpackChunkkadence=self.webpackChunkkadence||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var l=a.O(void 0,[683],(()=>a(7692)));l=a.O(l),(this.kadence=this.kadence||{})["blocks-table"]=l})();

Filemanager

Name Type Size Permission Actions
blocks Folder 0755
images Folder 0755
admin-kadence-home.asset.php File 260 B 0644
admin-kadence-home.css File 42.54 KB 0644
admin-kadence-home.js File 331.56 KB 0644
blocks-accordion.asset.php File 275 B 0644
blocks-accordion.css File 12.26 KB 0644
blocks-accordion.js File 65.94 KB 0644
blocks-advanced-form.asset.php File 404 B 0644
blocks-advanced-form.css File 30.99 KB 0644
blocks-advanced-form.js File 420.08 KB 0644
blocks-advancedbtn.asset.php File 288 B 0644
blocks-advancedbtn.css File 8.82 KB 0644
blocks-advancedbtn.js File 124.14 KB 0644
blocks-advancedgallery.asset.php File 315 B 0644
blocks-advancedgallery.css File 29.13 KB 0644
blocks-advancedgallery.js File 153.72 KB 0644
blocks-advancedheading.asset.php File 330 B 0644
blocks-advancedheading.css File 18.39 KB 0644
blocks-advancedheading.js File 126.14 KB 0644
blocks-column.asset.php File 256 B 0644
blocks-column.css File 9.03 KB 0644
blocks-column.js File 95.59 KB 0644
blocks-countdown.asset.php File 281 B 0644
blocks-countdown.css File 4.39 KB 0644
blocks-countdown.js File 65.05 KB 0644
blocks-countup.asset.php File 234 B 0644
blocks-countup.css File 91 B 0644
blocks-countup.js File 39.05 KB 0644
blocks-form.asset.php File 324 B 0644
blocks-form.css File 8.01 KB 0644
blocks-form.js File 295.96 KB 0644
blocks-googlemaps.asset.php File 287 B 0644
blocks-googlemaps.css File 515 B 0644
blocks-googlemaps.js File 152.02 KB 0644
blocks-header.asset.php File 328 B 0644
blocks-header.css File 17.33 KB 0644
blocks-header.js File 295.24 KB 0644
blocks-icon.asset.php File 261 B 0644
blocks-icon.css File 1.2 KB 0644
blocks-icon.js File 42.66 KB 0644
blocks-iconlist.asset.php File 289 B 0644
blocks-iconlist.css File 2.65 KB 0644
blocks-iconlist.js File 55.04 KB 0644
blocks-identity.asset.php File 250 B 0644
blocks-identity.css File 2.88 KB 0644
blocks-identity.js File 78.88 KB 0644
blocks-image.asset.php File 328 B 0644
blocks-image.css File 6.39 KB 0644
blocks-image.js File 64.23 KB 0644
blocks-infobox.asset.php File 303 B 0644
blocks-infobox.css File 8.58 KB 0644
blocks-infobox.js File 208.7 KB 0644
blocks-lottie.asset.php File 244 B 0644
blocks-lottie.css File 276 B 0644
blocks-lottie.js File 399.32 KB 0644
blocks-navigation-link.asset.php File 392 B 0644
blocks-navigation-link.css File 1 B 0644
blocks-navigation-link.js File 111.29 KB 0644
blocks-navigation.asset.php File 316 B 0644
blocks-navigation.css File 154.75 KB 0644
blocks-navigation.js File 185.56 KB 0644
blocks-posts.asset.php File 301 B 0644
blocks-posts.css File 5.83 KB 0644
blocks-posts.js File 27.17 KB 0644
blocks-progress-bar.asset.php File 244 B 0644
blocks-progress-bar.css File 888 B 0644
blocks-progress-bar.js File 68.32 KB 0644
blocks-rowlayout.asset.php File 361 B 0644
blocks-rowlayout.css File 114.04 KB 0644
blocks-rowlayout.js File 819.02 KB 0644
blocks-search.asset.php File 234 B 0644
blocks-search.css File 1.28 KB 0644
blocks-search.js File 28.92 KB 0644
blocks-show-more.asset.php File 244 B 0644
blocks-show-more.css File 189 B 0644
blocks-show-more.js File 11.87 KB 0644
blocks-single-icon.asset.php File 234 B 0644
blocks-single-icon.js File 16.82 KB 0644
blocks-singlebtn.asset.php File 288 B 0644
blocks-singlebtn.js File 67.43 KB 0644
blocks-spacer.asset.php File 234 B 0644
blocks-spacer.css File 1.88 KB 0644
blocks-spacer.js File 22.91 KB 0644
blocks-table.asset.php File 298 B 0644
blocks-table.css File 269 B 0644
blocks-table.js File 43.46 KB 0644
blocks-tableofcontents.asset.php File 285 B 0644
blocks-tableofcontents.css File 7.64 KB 0644
blocks-tableofcontents.js File 40.17 KB 0644
blocks-tabs.asset.php File 300 B 0644
blocks-tabs.css File 14.48 KB 0644
blocks-tabs.js File 180.84 KB 0644
blocks-testimonial.asset.php File 261 B 0644
blocks-testimonial.js File 45.21 KB 0644
blocks-testimonials.asset.php File 261 B 0644
blocks-testimonials.css File 19.51 KB 0644
blocks-testimonials.js File 246.17 KB 0644
blocks-videopopup.asset.php File 273 B 0644
blocks-videopopup.css File 1.72 KB 0644
blocks-videopopup.js File 51.68 KB 0644
components.asset.php File 363 B 0644
components.css File 93.12 KB 0644
components.js File 647.82 KB 0644
early-filters.asset.php File 212 B 0644
early-filters.js File 3.32 KB 0644
extension-block-css.asset.php File 231 B 0644
extension-block-css.js File 503.13 KB 0644
extension-image-picker.asset.php File 219 B 0644
extension-image-picker.css File 6.1 KB 0644
extension-image-picker.js File 88.64 KB 0644
extension-kadence-base.asset.php File 99 B 0644
extension-kadence-base.js File 198 B 0644
extension-stores.asset.php File 103 B 0644
extension-stores.js File 5.86 KB 0644
header-visual-builder.asset.php File 239 B 0644
header-visual-builder.css File 8.93 KB 0644
header-visual-builder.js File 63.86 KB 0644
helpers.asset.php File 187 B 0644
helpers.js File 27.17 KB 0644
icons.asset.php File 91 B 0644
icons.js File 457.37 KB 0644
plugin-kadence-control.asset.php File 374 B 0644
plugin-kadence-control.css File 4.18 KB 0644
plugin-kadence-control.js File 155.14 KB 0644
style-blocks-accordion.css File 10.96 KB 0644
style-blocks-advanced-form.css File 16.23 KB 0644
style-blocks-advancedbtn.css File 2.62 KB 0644
style-blocks-advancedgallery.css File 29.79 KB 0644
style-blocks-advancedheading.css File 196 B 0644
style-blocks-column.css File 1.44 KB 0644
style-blocks-countdown.css File 3.7 KB 0644
style-blocks-form.css File 9.49 KB 0644
style-blocks-header.css File 10.18 KB 0644
style-blocks-icon.css File 1.02 KB 0644
style-blocks-iconlist.css File 3.51 KB 0644
style-blocks-identity.css File 2.41 KB 0644
style-blocks-image.css File 4.5 KB 0644
style-blocks-infobox.css File 7.54 KB 0644
style-blocks-lottie.css File 239 B 0644
style-blocks-navigation.css File 96.07 KB 0644
style-blocks-posts.css File 8.37 KB 0644
style-blocks-progress-bar.css File 813 B 0644
style-blocks-rowlayout.css File 7.83 KB 0644
style-blocks-search.css File 1.28 KB 0644
style-blocks-spacer.css File 2.25 KB 0644
style-blocks-table.css File 112 B 0644
style-blocks-tableofcontents.css File 8.29 KB 0644
style-blocks-tabs.css File 10.23 KB 0644
style-blocks-testimonials.css File 10.54 KB 0644
style-blocks-videopopup.css File 4.59 KB 0644