(()=>{var e={942(e,t){var r;!function(){"use strict";var l={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=n(e,a(r)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)l.call(e,r)&&e[r]&&(t=n(t,r));return t}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()}},t={};function r(l){var o=t[l];if(void 0!==o)return o.exports;var a=t[l]={exports:{}};return e[l](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,t=window.wp.blocks,l=window.wp.i18n,o=window.wp.blockEditor;var a=r(942),n=r.n(a);const i=(0,window.wp.element.memo)(({attributes:t,setAttributes:r,device:a,advancedControl:n})=>{const{GkitPanelBody:i,GkitTabs:c,GkitBackgrounGroup:u,GkitBorderControl:d}=window.GkitComponents,{colorsGroup:s}=window.GkitHelpers;return(0,e.createElement)(o.InspectorControls,{key:"setting"},(0,e.createElement)(c,{type:"top-level",tabs:[{name:"style",title:(0,l.__)("Style","table-builder-block")}]},o=>"style"===o.name?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(i,{title:(0,l.__)("Background","table-builder-block"),initialOpen:!1},(0,e.createElement)(c,{type:"normal",tabs:[{name:"normal",title:(0,l.__)("Normal","table-builder-block")},{name:"hover",title:(0,l.__)("Hover","table-builder-block")}]},o=>"normal"===o.name?(0,e.createElement)(u,{label:(0,l.__)("Background","table-builder-block"),value:t?.tableBuilderRowBackground,onChange:e=>r({tableBuilderRowBackground:e}),exclude:{video:!0}}):"hover"===o.name?(0,e.createElement)(u,{label:(0,l.__)("Background","table-builder-block"),value:t?.tableBuilderRowHoverBackground,onChange:e=>r({tableBuilderRowHoverBackground:e}),exclude:{video:!0}}):void 0)),(0,e.createElement)(i,{title:(0,l.__)("Border","table-builder-block"),initialOpen:!1},(0,e.createElement)(c,{type:"normal",tabs:[{name:"normal",title:(0,l.__)("Normal","table-builder-block")},{name:"hover",title:(0,l.__)("Hover","table-builder-block")}]},o=>"normal"===o.name?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(d,{label:(0,l.__)("Border"),colors:s,onChange:e=>r({tableBuilderRowBorder:e}),value:t?.tableBuilderRowBorder})):"hover"===o.name?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(d,{label:(0,l.__)("Border"),onChange:e=>r({tableBuilderRowHoverBorder:e}),value:t?.tableBuilderRowHoverBorder})):void 0))):o.name))}),c=JSON.parse('{"UU":"tablebuilder/table-builder-row"}');(0,t.registerBlockType)(c.UU,{edit:function({attributes:t,setAttributes:r,clientId:l,context:a,advancedControl:c}){const{GkitStyle:u}=window.GkitComponents,{useDeviceType:d,useBlockStyles:s,useDeviceList:b}=window.GkitHelpers,m=Array.from({length:a["tablebuilder/table-columnCount"]},()=>["tablebuilder/table-builder-item"]),k=(0,o.useBlockProps)(),p=d(),w=b(),v=(0,o.useInnerBlocksProps)({className:"gkit-table__body-row"},{allowedBlocks:["tablebuilder/table-builder-item"],renderAppender:!1,templateLock:"insert",template:m}),g={...k,className:n()(k.className,v.className)};return s(t,r,"blocksCSS",((e,t)=>{const{parseCSS:r,backgroundGenerator:l,getBorderValue:o}=window.GkitHelpers,a=e.blockClass;return r([[{selector:`.${a}.wp-block-tablebuilder-table-builder-row`,background:l(e?.tableBuilderRowBackground).background,...o(e?.tableBuilderRowBorder)},{selector:`.${a}.wp-block-tablebuilder-table-builder-row:hover`,background:l(e?.tableBuilderRowHoverBackground).background,...o(e?.tableBuilderRowHoverBorder)}],e=>[]],t)})(t,w)),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(u,{blocksCSS:t?.blocksCSS}),(0,e.createElement)(i,{attributes:t,device:p,setAttributes:r,advancedControl:c}),(0,e.createElement)("tr",{...g},v.children))},icon:{src:(0,e.createElement)("svg",{fill:"none",height:"24",className:"gkit-editor-icon",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M3 12H7.5H12H16.5H21M3 12V16.5M3 12V7.5M21 12V16.5M21 12V7.5M3 16.5V20.4C3 20.7314 3.26863 21 3.6 21H7.5H12H16.5H20.4C20.7314 21 21 20.7314 21 20.4V16.5M3 16.5H7.5H12H16.5H21M21 7.5V3.6C21 3.26863 20.7314 3 20.4 3H16.5H12H7.5H3.6C3.26863 3 3 3.26863 3 3.6V7.5M21 7.5H16.5H12H7.5H3",stroke:"currentColor"}))},save:function({attributes:t}){const r=o.useBlockProps.save(),l=o.useInnerBlocksProps.save({className:"gkit-table__body-row"}),a={...r,className:n()(r.className,l.className)};return(0,e.createElement)("tr",{...a},l.children)}})})()})();