diff --git a/.eslintrc.json b/.eslintrc.json index 9c80d4be7..b937ef315 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,7 +10,10 @@ "generateBlocksStyling": "readonly", "generateBlocksSettings": "readonly", "generateBlocksLegacyDefaults": "readonly", - "generateBlocksPatternLibrary": "readonly" + "generateBlocksPatternLibrary": "readonly", + "generateblocksBlockMedia": "readonly", + "generateBlocksEditor": "readonly", + "generateblocksDashboard": "readonly" }, "env": { "browser": true, @@ -33,6 +36,20 @@ "settings": { "react": { "pragma": "wp" + }, + "import/resolver": { + "node": { + "extensions": [".js", ".jsx"] + }, + "eslint-import-resolver-custom-alias": { + "extensions": [".js", ".jsx"], + "alias": { + "@utils": "./src/utils", + "@components": "./src/components", + "@hooks": "./src/hooks", + "@hoc": "./src/hoc" + } + } } }, "rules": { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d362f323..6cf34238f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,9 +45,13 @@ jobs: if: steps.js-files.outputs.any_changed == 'true' uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'npm' + - name: Configure npm for private registry + if: steps.js-files.outputs.any_changed == 'true' + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + - name: Download deps if: steps.js-files.outputs.any_changed == 'true' uses: bahmutov/npm-install@v1 @@ -77,9 +81,13 @@ jobs: if: steps.js-files.outputs.any_changed == 'true' uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'npm' + - name: Configure npm for private registry + if: steps.js-files.outputs.any_changed == 'true' + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + - name: Download deps if: steps.js-files.outputs.any_changed == 'true' uses: bahmutov/npm-install@v1 @@ -111,9 +119,13 @@ jobs: if: steps.js-files.outputs.any_changed == 'true' uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: 'npm' + - name: Configure npm for private registry + if: steps.js-files.outputs.any_changed == 'true' + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + - name: Download deps if: steps.js-files.outputs.any_changed == 'true' uses: bahmutov/npm-install@v1 @@ -209,7 +221,10 @@ jobs: - name: Setup node uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 18 + + - name: Configure npm for private registry + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - name: Download deps uses: bahmutov/npm-install@v1 diff --git a/.gitignore b/.gitignore index 22a52af96..5de3f7556 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ composer.lock ## keep compiled files out of version control # dist/ .phpunit.result.cache +.npmrc diff --git a/Gruntfile.js b/Gruntfile.js index 5a82ebb36..4959ab591 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -25,7 +25,6 @@ module.exports = function( grunt ) { '!*.sh', '!*.map', '!Gruntfile.js', - '!package.json', '!.gitignore', '!phpunit.xml', '!README.md', @@ -39,6 +38,7 @@ module.exports = function( grunt ) { '!.eslintrc.json', '!*.zip', '!.nvmrc', + '!config/**', ], dest: 'package/generateblocks/', }, diff --git a/assets/css/dashboard-global.css b/assets/css/dashboard-global.css index a1e3ddd27..3ee08914d 100644 --- a/assets/css/dashboard-global.css +++ b/assets/css/dashboard-global.css @@ -16,3 +16,15 @@ font-size: 18px; margin-top: 1px; } + +#adminmenu #toplevel_page_generateblocks a[href="admin.php?page=generateblocks-upgrade"] { + font-weight: 600; + background-color: #0171d5; + color: #fff; + margin: 3px 10px 0; + display: block; + text-align: center; + border-radius: 3px; + transition: all .3s; + box-shadow: 0 0 0; +} diff --git a/assets/css/dashboard.css b/assets/css/dashboard.css deleted file mode 100644 index 2257b82e0..000000000 --- a/assets/css/dashboard.css +++ /dev/null @@ -1,205 +0,0 @@ -.gblocks-sub-navigation { - display: flex; - justify-content: center; - margin-top: 10px; -} - -.gblocks-sub-navigation a.button { - margin: 4px; -} - -.gblocks-dashboard-intro-content { - padding: 60px; - font-size: 30px; - line-height: 1.3; - text-align: center; - margin: 0 auto; - max-width: 700px; -} - -.gblocks-dashboard-intro-image { - width: 50%; - text-align: center; -} - -.gblocks-dashboard-blocks { - display: flex; - flex-wrap: wrap; - justify-content: center; - max-width: 1300px; - margin-left: auto; - margin-right: auto; -} - -.gblocks-block { - padding: 40px; - background: #fff; - background-image: linear-gradient(180deg, #fff 50%, rgba(0,0,0,0.02)); - display: flex; - flex-direction: column; - width: 29%; - box-sizing: border-box; - margin: 0 2% 4%; - border-bottom: 2px solid #ddd; - border-right: 2px solid #ddd; -} - -.gblocks-block svg { - width: 75px; - height: 75px; - fill: #006eb7; -} - -.gblocks-block svg path:first-child { - fill: none; -} - -.gblocks-block > *:last-child { - margin-bottom: 0; -} - -.gblocks-block h3 { - margin-top: 30px; - font-size: 20px; -} - -.gblocks-block p { - font-size: 15px; - margin: 0 0 1em; -} - -.gblocks-button { - margin-top: auto; - background: #fff; - border: 1px solid; - flex-grow: 0; - padding: 15px 20px; - text-decoration: none; - color: #000; - font-size: 20px; - align-self: flex-start; - transition: color 500ms ease; -} - -.gblocks-generatepress { - background: #fff; - padding: 60px; -} - -.gblocks-inside-generatepress { - display: flex; - max-width: 1200px; - margin: 0 auto; - align-items: center; -} - -.gblocks-generatepress-content { - width: 50%; -} - -.gblocks-generatepress-content h2 { - font-size: 40px; - line-height: 1.5em; - font-weight: 300; - margin-top: 0; -} - -.gblocks-generatepress-content p { - font-size: 17px; - line-height: 1.8; -} - -.gblocks-generatepress-content .stats { - display: flex; - font-size: 15px; - line-height: 1.6; - margin-top: 20px; - margin-bottom: 20px; -} - -.gblocks-generatepress-content .stats > * { - padding-right: 30px; -} - -.gblocks-generatepress-content .stats strong { - font-size: 20px; -} - -.gblocks-generatepress-image { - width: 50%; - display: flex; - align-items: center; - justify-content: center; -} - -.gblocks-generatepress-content .gblocks-button { - color: #006eb7; - display: inline-block; - margin-top: 10px; -} - -.gblocks-generatepress-content .gblocks-button:hover { - color: #000; -} - -.gblocks-getting-started { - padding: 0 60px 60px; - text-align: center; -} - -.gblocks-getting-started img { - display: block; - margin: 0 auto; -} - -.gblocks-getting-started p { - font-size: 20px; - max-width: 450px; - margin: 0 auto; -} - -.gblocks-getting-started p:first-child:before { - content: ""; - display: block; - height: 1px; - width: 150px; - background: #d8e2e4; - margin: 0 auto 40px; -} - -@media (max-width: 1180px){ - .gblocks-inside-generatepress { - flex-wrap: wrap; - } - - .gblocks-generatepress-content { - width: 100%; - } - - .gblocks-generatepress-image { - width: 100%; - order: -1; - } -} - -@media (max-width: 1000px) { - .gblocks-block { - width: 46%; - margin: 0 2% 4%; - } -} - -@media (max-width: 520px) { - .gblocks-block { - width: 96%; - margin: 1% 2%; - } - - .gblocks-getting-started img { - max-width: 100%; - } - - .gblocks-generatepress-content .stats { - flex-wrap: wrap; - } -} diff --git a/assets/images/placeholder1280x720.png b/assets/images/placeholder1280x720.png new file mode 100644 index 000000000..550ef69d5 Binary files /dev/null and b/assets/images/placeholder1280x720.png differ diff --git a/assets/images/placeholder800x.png b/assets/images/placeholder800x.png new file mode 100644 index 000000000..3d9814bb3 Binary files /dev/null and b/assets/images/placeholder800x.png differ diff --git a/config/webpack-dependency-extraction.js b/config/webpack-dependency-extraction.js new file mode 100644 index 000000000..fe79e9388 --- /dev/null +++ b/config/webpack-dependency-extraction.js @@ -0,0 +1,33 @@ +const WPDependencyExtractionWebpackPlugin = require( '@wordpress/dependency-extraction-webpack-plugin' ); + +class DependencyExtractionWebpackPlugin extends WPDependencyExtractionWebpackPlugin { + /** + * Extend the default stringify behavior to sort dependencies by name before returning them. + * + * @param {any} asset Asset Data + * @return {string} Stringified asset data suitable for output + */ + stringify( asset ) { + const prefix = 'generateblocks-'; + const sortedDeps = asset.dependencies.sort( ( a, b ) => { + const aMatches = a.startsWith( prefix ); + const bMatches = b.startsWith( prefix ); + + if ( aMatches && ! bMatches ) { + return 1; + } + if ( bMatches && ! aMatches ) { + return -1; + } + + return a.localeCompare( b ); + } ); + + const updatedAsset = { ...asset, dependencies: sortedDeps }; + + // Fallback to the original method with the updated asset. + return super.stringify( updatedAsset ); + } +} + +module.exports = DependencyExtractionWebpackPlugin; diff --git a/dist/block-styles-imported.asset.php b/dist/block-styles-imported.asset.php new file mode 100644 index 000000000..e6498152c --- /dev/null +++ b/dist/block-styles-imported.asset.php @@ -0,0 +1 @@ + array('react', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'efa82fe89c6f1a14f7be'); diff --git a/dist/block-styles.asset.php b/dist/block-styles.asset.php new file mode 100644 index 000000000..34be0ef89 --- /dev/null +++ b/dist/block-styles.asset.php @@ -0,0 +1 @@ + array(), 'version' => 'a4522fa7e290a23cd862'); diff --git a/dist/block-styles.js b/dist/block-styles.js new file mode 100644 index 000000000..ab2256dcd --- /dev/null +++ b/dist/block-styles.js @@ -0,0 +1 @@ +(()=>{var e={758:e=>{var t;globalThis,t=()=>(()=>{"use strict";var e={d:(t,s)=>{for(var n in s)e.o(s,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:s[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{BlockStyles:()=>g,buildChangedStylesObject:()=>v,getPreviewDevice:()=>h,getSelector:()=>I,useAtRuleEffect:()=>B,useCurrentAtRule:()=>M,useDeviceType:()=>W,useGenerateCSSEffect:()=>T,useSetStyles:()=>j,useStyleSelectorEffect:()=>q,useUpdateEditorCSS:()=>E,useUpdateEditorCSSEffect:()=>D,withUniqueId:()=>S});const s=window.React,n=window.wp.components,o=window.wp.primitives,c=(0,s.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(o.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"})),r=(0,s.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(o.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),l=window.wp.element,i=window.wp.i18n;function a(e){var t,s,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;tnull,stylesTab:t=()=>null,onTabSelect:o=()=>null}){var a;const g=null!==(a=sessionStorage.getItem(b))&&void 0!==a?a:"settings",[f,p]=(0,l.useState)(g),m=[{name:"settings",icon:c,title:(0,i.__)("Settings","generateblocks")},{name:"styles",icon:r,title:(0,i.__)("Styles","generateblocks")}];return(0,l.useLayoutEffect)((()=>{const e=document.querySelector(".block-editor-block-inspector");return e&&(m.forEach((t=>{e.classList.remove("gb-block-styles-tab--"+t.name)})),e.classList.add("gb-block-styles-tab--"+f)),()=>{e.classList.remove("gb-block-styles-tab--"+f)}}),[f]),(0,s.createElement)(n.TabPanel,{className:u(d.panel,"gb-block-styles-tab-panel",d[f]),activeClass:"is-active",onSelect:e=>{!function(e){sessionStorage.setItem(b,e)}(e),p(e),o(e)},initialTabName:f,tabs:m},(()=>(0,s.createElement)(s.Fragment,null,"settings"===f&&(0,s.createElement)(s.Fragment,null,e),"styles"===f&&(0,s.createElement)(s.Fragment,null,t))))}const f=window.wp.data,p=window.wp.blockEditor,m=e=>e.reduce(((e,t)=>{if(t.name&&t.name.includes("generateblocks")&&t.attributes&&t.attributes.uniqueId&&(e.uniqueIds.push(t.attributes.uniqueId),e.clientIds.push(t.clientId)),t.innerBlocks){const{uniqueIds:s,clientIds:n}=m(t.innerBlocks);e.uniqueIds=e.uniqueIds.concat(s),e.clientIds=e.clientIds.concat(n)}return e}),{uniqueIds:[],clientIds:[]}),y=e=>e.substr(2,9).replace("-",""),k=(e,t,s)=>e.filter((e=>e===t)).length>1&&s===e.lastIndexOf(t);function S(e){return t=>{const{clientId:n,attributes:o,setAttributes:c}=t,{wasBlockJustInserted:r}=(0,f.useSelect)((e=>({wasBlockJustInserted:e(p.store).wasBlockJustInserted(n)})));return(0,l.useEffect)((()=>{const e=function(){const e=(0,f.select)("core/block-editor").getBlocks(),t=e=>e.map((e=>{if("core/widget-area"===e.name){const s=(0,f.select)("core/block-editor").getBlocks(e.clientId);return{...e,innerBlocks:t(s)}}return{...e,innerBlocks:t(e.innerBlocks||[])}}));return t(e)}(),{uniqueIds:t,clientIds:s}=m(e);if(!o.uniqueId||k(t,o.uniqueId,s.indexOf(n))||r){const e=y(n);c({uniqueId:e})}}),[n]),(0,s.createElement)(e,{...t})}}function w(e,t=[]){var s;return null!==(s=t?.find((t=>t.value===e))?.id)&&void 0!==s?s:"all"}function h(e,t,s){let n="";const o=w(e,s);return""!==e&&"largeWidth"!==o&&"mediumLargeWidth"!==o||"Desktop"===t?"mediumWidth"!==o&&"mediumSmallWidth"!==o||"Tablet"===t?"smallWidth"===o&&"Mobile"!==t&&(n="Mobile"):n="Tablet":n="Desktop",n}function v(e,t,s){return t&&s?{[s]:{[t]:e}}:t?{[t]:e}:s?{[s]:e}:e}function I(e,t){const s={"generateblocks/text":"text","generateblocks/element":"element","generateblocks/loop-item":"loop-item","generateblocks/looper":"looper","generateblocks/media":"media","generateblocks/query":"query","generateblocks/query-page-numbers":"query-page-numbers","generateblocks/shape":"shape","generateblocks-pro/accordion":"accordion","generateblocks-pro/accordion-item":"accordion__item","generateblocks-pro/accordion-toggle":"accordion__toggle","generateblocks-pro/accordion-toggle-icon":"accordion__toggle-icon","generateblocks-pro/accordion-content":"accordion__content","generateblocks-pro/tab-item":"tabs__item","generateblocks-pro/tab-items":"tabs__items","generateblocks-pro/tab-menu-item":"tabs__menu-item","generateblocks-pro/tabs":"tabs","generateblocks-pro/tabs-menu":"tabs__menu"};if(s[e])return`.gb-${s[e]}-${t}`}const _=window.wp.url;function E(){const{updateSettings:e}=function(){const e=(0,_.getPath)(window.location.href)?.includes("site-editor.php"),t=(0,f.useDispatch)(e?"core/edit-site":"core/editor");return{updateSettings:e?t.updateSettings:t.updateEditorSettings}}(),{getSettings:t}=(0,f.useSelect)((()=>{const e=(0,_.getPath)(window.location.href)?.includes("site-editor.php"),t=(0,f.select)(e?"core/edit-site":"core/editor");return{getSettings:e?t.getSettings:t.getEditorSettings}}),[]);return async(s,n="")=>{const o=t(),c=o?.styles?.find((e=>"gb_block:"+s===e.source));if(c){const t=o?.styles?.find((e=>"gb_block:"+s===e.source))?.css;if(t===n)return;e({...o,styles:o?.styles.map((e=>"gb_block:"+s!==e.source?e:{...e,css:n}))})}else e({...o,styles:[...o?.styles,{css:n,source:"gb_block:"+s}]})}}function A(e,t){var s;return null!==(s=t.find((t=>t.id===e))?.value)&&void 0!==s?s:""}function B({deviceType:e,atRule:t,setAtRule:s,defaultAtRules:n=[]}){(0,l.useEffect)((()=>{const o=w(t,n);switch(e){case"Desktop":""!==t&&"largeWidth"!==o&&"mediumLargeWidth"!==o&&s("");break;case"Tablet":"mediumWidth"!==o&&"mediumSmallWidth"!==o&&s(A("mediumSmallWidth",n));break;case"Mobile":"smallWidth"!==o&&s(A("smallWidth",n))}}),[e,t,s,w,A])}function T({selector:e,styles:t,setAttributes:s,getCss:n,getSelector:o}){const c=(0,f.useSelect)((e=>e("core/block-editor")?.getMultiSelectedBlocks()||[]),[]),{updateBlockAttributes:r}=(0,f.useDispatch)("core/block-editor");(0,l.useEffect)((()=>{null!==e&&""!==e&&async function(){if(Array.isArray(c)&&c.length>0){const e=c.map((async e=>{const t=o(e?.name,e?.attributes?.uniqueId);if(!t)return;const s=await n(t,e?.attributes?.styles);return{clientId:e.clientId,blockAttrs:{css:s}}})),t=(await Promise.all(e)).filter(Boolean),s=t.map((e=>e.clientId)),l=t.reduce(((e,t)=>(e[t.clientId]=t.blockAttrs,e)),{});return void r(s,l,!0)}const l=await n(e,t);s({css:l})}()}),[e,JSON.stringify(t),s,n])}function q({isSelected:e,currentStyle:t,selector:s,setCurrentStyle:n,setNestedRule:o,setAtRule:c,styles:r}){(0,l.useEffect)((()=>{e&&(t?.selector&&s===t?.selector||(n({selector:s}),o(""),c("")))}),[e,t?.selector,s,n,o,c,r])}function D({selector:e,styles:t,getCss:s,isPreviewingBlock:n=!1}){const o=E();(0,l.useEffect)((()=>{e&&(n||async function(){const n=await s(e,t,"editor");o(e,n)}())}),[t,e])}function W(){const{setDeviceType:e=()=>null}=(0,f.useDispatch)("core/editor");return{deviceType:(0,f.useSelect)((e=>{const{getDeviceType:t=()=>"Desktop"}=e("core/editor");return t()}),[]),setDeviceType:e}}const x={Desktop:"all",Tablet:"mediumSmallWidth",Mobile:"smallWidth"};function M(e=[]){const{deviceType:t}=W();return(0,l.useMemo)((()=>{var s;if(!t||"Desktop"===t)return"";const n=x[t];return null!==(s=e.find((e=>e.id===n))?.value)&&void 0!==s?s:""}),[t])}function O(e,...t){if(!t.length)return e;const s=t.shift();if(P(e)&&P(s))for(const t in s)P(s[t])?(e[t]||Object.assign(e,{[t]:{}}),O(e[t],s[t])):Object.assign(e,{[t]:s[t]});return O(e,...t)}function P(e){return e&&"object"==typeof e&&!Array.isArray(e)}function j(e,{cleanStylesObject:t}){const{setAttributes:s,clientId:n}=e,o=(0,f.useSelect)((e=>e("core/block-editor")?.getMultiSelectedBlocks()||[]),[]),c=(0,f.useSelect)((e=>e("core/block-editor")?.getBlock),[]),{updateBlockAttributes:r}=(0,f.useDispatch)("core/block-editor");return function(e){if(Array.isArray(o)&&o.length>0){const s=o.map((s=>{const n=c(s?.clientId)?.attributes?.styles,o=t(O({...n},e));return{clientId:s.clientId,blockAttrs:{styles:o}}})),n=s.map((e=>e.clientId)),l=s.reduce(((e,t)=>(e[t.clientId]=t.blockAttrs,e)),{});return void r(n,l,!0)}const l=c(n)?.attributes?.styles,i=t(O({...l},e));s({styles:i})}}return t})(),e.exports=t()}},t={},s=function s(n){var o=t[n];if(void 0!==o)return o.exports;var c=t[n]={exports:{}};return e[n](c,c.exports,s),c.exports}(758);(window.gb=window.gb||{}).blockStyles=s})(); \ No newline at end of file diff --git a/dist/blocks-rtl.css b/dist/blocks-rtl.css new file mode 100644 index 000000000..c65ac2274 --- /dev/null +++ b/dist/blocks-rtl.css @@ -0,0 +1,25 @@ +.gb-grid-wrapper{margin:0}.gb-grid-wrapper .gb-grid-column{box-sizing:border-box}.gb-grid-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;flex-wrap:wrap;justify-content:flex-start;position:relative}.wp-block.gb-col{margin-top:29px}.components-placeholder.components-placeholder.gb-select-layout{background:#fff;color:#000;padding:25px}.components-placeholder.components-placeholder.gb-select-layout .components-placeholder__label{margin:0 auto}.components-placeholder.components-placeholder.gb-select-layout .components-placeholder__instructions{margin:0 auto 25px}.components-placeholder.components-placeholder.gb-select-layout iframe{align-items:center;display:flex;justify-content:center}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview{max-width:500px}.components-placeholder.components-placeholder.gb-select-layout .components-placeholder__fieldset{display:flex;justify-content:center}.components-placeholder.components-placeholder.gb-select-layout .components-placeholder__fieldset>em{margin-bottom:25px}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview{display:flex;flex-wrap:wrap;justify-content:center;margin-right:-7px;margin-left:-7px}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn{background:none;border:0;border-radius:0;cursor:pointer;display:flex;flex-wrap:nowrap;margin-bottom:14px;margin-right:7px;margin-left:7px;overflow:hidden;padding:0;width:85px}.components-placeholder.components-placeholder.gb-select-layout .gb-grid-wrapper-layout-preview .gb-grid-wrapper-layout-preview-btn .gb-col{background:#fff;border:1px solid #000;height:40px;margin:1px}.gb-col.gb-col-100{width:100%}.gb-col.gb-col-25{flex-basis:25%}.gb-col.gb-col-75{flex-basis:75%}.gb-col.gb-col-66-66{flex-basis:66.66%}.gb-col.gb-col-50{flex-basis:50%}.gb-col.gb-col-60{flex-basis:60%}.gb-col.gb-col-33-33{flex-basis:33.33%}.gb-col.gb-col-20{flex-basis:20%}.gb-col.gb-col-16{flex-basis:16.6%} +.components-base-control.components-gblocks-units-control-header__units{display:block;margin-bottom:0}.components-base-control.components-gblocks-units-control-header__units .components-base-control__field{align-items:center;display:flex;gap:8px;justify-content:space-between}.components-base-control.components-gblocks-units-control-header__units .components-base-control__label{margin-bottom:0}.components-gblocks-control__units .components-gblocks-control-buttons__units button.components-button{background:#fff;border:0;border-radius:0!important;box-shadow:none!important;color:#929da7;font-size:10px;height:auto;line-height:20px;padding:0 5px;position:relative;text-align:center;text-shadow:none}.components-gblocks-control__units .components-gblocks-control-buttons__units button.components-button.is-primary{background:#fff!important;color:#000!important;cursor:default;font-weight:700;z-index:1} +.gblocks-component-number-presets{border:1px solid #8c8f94;border-radius:3px;display:flex;padding:2px}.gblocks-component-number-presets .components-button{border:0;box-shadow:0 0 0;height:30px}.gblocks-component-number-presets .components-button:not(.has-icon){flex:1;font-size:12px;justify-content:center}.gblocks-component-number-presets .components-button.has-icon svg{margin-left:0}.gblocks-component-number-presets .components-button.is-primary{background-color:#000;color:#fff}.gblocks-component-number-presets .components-button.is-primary:active,.gblocks-component-number-presets .components-button.is-primary:hover{background-color:#000!important;color:#fff!important}.gblocks-component-number-presets .components-button:active,.gblocks-component-number-presets .components-button:hover{background-color:transparent!important;color:currentColor!important}.gblocks-number-component__input{display:flex}.gblocks-number-component__input .components-base-control{flex:1;margin-bottom:0!important}.gblocks-number-component__input .components-base-control__field{height:100%;margin-bottom:0}.gblocks-number-component__input .components-base-control__field input{height:100%;min-height:30px}.gblocks-number-component__input>.components-button{height:30px}.gblocks-number-component__input>.components-button.has-icon svg{margin-left:0} +.gb-responsive-tabs{background:#fafafa;border-bottom:1px solid #ddd;display:flex;position:sticky;top:0;z-index:10}.gb-responsive-tabs+.block-editor-block-card .block-editor-block-card__description{display:none}.gb-responsive-tabs+.block-editor-block-card .block-editor-block-card__content,.gb-responsive-tabs+.block-editor-block-card .block-editor-block-card__title{margin-bottom:0}.gb-responsive-tabs button{background:none!important;border-radius:unset;flex-grow:1;height:unset;justify-content:center;outline:0!important;padding:7px}.gb-responsive-tabs button svg{height:20px;opacity:.3;width:20px}.gb-responsive-tabs button.is-pressed:not(:disabled),.gb-responsive-tabs button:active:not(:disabled),.gb-responsive-tabs button:focus:not(:disabled){background:#fff!important;box-shadow:unset!important;color:var(--wp-admin-theme-color)!important;opacity:1}.gb-responsive-tabs button.is-pressed:not(:disabled):hover,.gb-responsive-tabs button:active:not(:disabled):hover,.gb-responsive-tabs button:focus:not(:disabled):hover{background:#fff!important;color:var(--wp-admin-theme-color)!important}.gb-responsive-tabs button.is-pressed:not(:disabled) svg,.gb-responsive-tabs button:active:not(:disabled) svg,.gb-responsive-tabs button:focus:not(:disabled) svg{opacity:1}.gb-responsive-tabs button:hover:not(:disabled){background:#fafafa!important;box-shadow:unset!important;color:currentColor!important}.block-editor-block-inspector .gb-responsive-tabs+.components-panel__body{border-top:0} +.gblocks-unit-control__disabled .gblocks-unit-control__input>.components-base-control{opacity:.5}.gblocks-unit-control__override-action{align-items:center;display:flex}.gblocks-unit-control__override-action button.components-button{height:20px;justify-content:center!important;min-width:20px;padding:0;width:20px}.gblocks-unit-control__override-action button.components-button.is-primary:focus:not(.disabled){box-shadow:0 0 0}.gblocks-unit-control__override-action button.components-button svg{margin:0!important;width:15px}.gblocks-unit-control__input{align-items:flex-start;display:flex;position:relative}.gblocks-unit-control__input .components-base-control:first-child{flex-grow:1}.gblocks-unit-control__input .components-base-control,.gblocks-unit-control__input .components-base-control__field{margin-bottom:0}.gblocks-unit-control__input--action{bottom:0;display:flex;gap:3px;position:absolute;left:5px;top:0}.gblocks-unit-control__input .gblocks-unit-control-units{align-items:center;display:flex;justify-content:center}.gblocks-unit-control__input .gblocks-unit-control-units button{align-items:center;border:1px solid rgba(0,0,0,.1);display:flex;font-size:10px;height:20px;justify-content:center;min-width:20px;padding:0 3px;width:auto}.gblocks-unit-control__input .gblocks-unit-control-units button:disabled{pointer-events:none}.gblocks-unit-control__input .gblocks-unit-control-units button.is-opened,.gblocks-unit-control__input .gblocks-unit-control-units button:hover{border-color:currentColor}.gblocks-unit-control__input .gblocks-unit-control-units button.is-opened{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));color:var(--wp-components-color-accent-inverted,#fff)}.gblocks-unit-control-popover .components-menu-group>div[role=group]{display:grid;grid-template-columns:repeat(4,1fr)}.gblocks-unit-control-popover .components-menu-group>div[role=group] button{display:flex;justify-content:center;min-height:auto}.gblocks-unit-control-popover .components-menu-group>div[role=group] button .components-menu-item__item{font-size:11px;margin:0;min-width:auto}.rtl .gblocks-unit-control__input--action{right:5px;left:auto} +.generate-advanced-select__input-container .generate-advanced-select__input:focus{box-shadow:0 0 0} +.gblocks-flex-control{display:flex;gap:5px}.gblocks-flex-control>div{flex:1}.gblocks-flex-control>div .components-base-control__field{margin-bottom:0} +.gblocks-font-family,.gblocks-font-family .components-base-control,.gblocks-font-family .gblocks-advanced-select{margin-bottom:0!important}.gblocks-font-family .components-base-control__control,.gblocks-font-family .gblocks-advanced-select__control{margin-bottom:0}.gblocks-alignment-button-group{display:flex}.gblocks-alignment-button-group button.components-button.has-icon{flex:1;justify-content:center}.gblocks-alignment-button-group button.components-button.has-icon svg{margin:0} +.components-gblocks-dimensions-control>.components-base-control__field{display:flex;flex-wrap:wrap}.components-gblocks-dimensions-control__inputs{display:grid;flex-basis:100%;gap:10px;grid-template-areas:"top right " "left bottom"}.components-gblocks-dimensions-control__inputs>div .components-base-control,.components-gblocks-dimensions-control__inputs>div .components-base-control__field{margin-bottom:0}.components-gblocks-dimensions-control__inputs>div:nth-child(3){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs>div:nth-child(3){-ms-grid-column:1;-ms-grid-row:3;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs>div:nth-child(4){grid-area:bottom;-ms-grid-column:3;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs>div:nth-child(4){-ms-grid-column:3;-ms-grid-row:5;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs.style-circle{gap:5px;grid-template-areas:". top top ." "left left right right" ". bottom bottom ."}.components-gblocks-dimensions-control__inputs.style-circle>div{position:relative}.components-gblocks-dimensions-control__inputs.style-circle>div:first-child{display:flex;flex-direction:column-reverse;grid-area:top;-ms-grid-column:1;-ms-grid-row:1}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:first-child{-ms-grid-column:3;-ms-grid-row:1;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs.style-circle>div:first-child .gblocks-dimensions-control__label{padding-bottom:5px;text-align:center}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2){-ms-grid-column:1;-ms-grid-row:3;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2) .gblocks-dimensions-control__label{bottom:calc(100% + 5px);right:0;position:absolute}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3){grid-area:right;-ms-grid-column:3;-ms-grid-row:1}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3){-ms-grid-column:5;-ms-grid-row:3;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3) .gblocks-dimensions-control__label{bottom:calc(100% + 5px);position:absolute;left:0}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(4){display:flex;flex-direction:column;grid-area:bottom;-ms-grid-column:3;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(4){-ms-grid-column:3;-ms-grid-row:5;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(4) .gblocks-dimensions-control__label{padding-top:5px;text-align:center}.gblocks-dimensions-control__label{font-size:10px;line-height:1;opacity:.5}.components-gblocks-dimensions-control_sync.components-button{height:15px;margin-inline-start:5px;padding:0;text-align:center;width:15px}.components-gblocks-dimensions-control_sync.components-button svg{height:18px;width:18px;fill:currentColor}.rtl .components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2){-ms-grid-column:5;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:right}.rtl .components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3){-ms-grid-column:1;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:left} +.gblocks-border-row .gblocks-flex-control{align-items:center}.gblocks-border-row .gblocks-flex-control>div{flex-grow:0;margin-bottom:10px}.gblocks-border-row .gblocks-flex-control .gblocks-unit-control{flex-grow:1}.gblocks-border-row .gblocks-flex-control .gblocks-border-style button.components-button{border:1px solid #ccc;height:30px;min-width:30px;width:30px}.gblocks-border-row .gblocks-flex-control .gblocks-border-style button.components-button svg{width:15px}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon{border:2px solid #ddd;border-radius:2px;flex-basis:20px;height:20px;width:20px}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon.borderTop{border-top-color:#000}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon.borderRight{border-left-color:#000}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon.borderBottom{border-bottom-color:#000}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon.borderLeft{border-right-color:#000}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon.borderAll{border-color:#000}.gblocks-border-row .gblocks-flex-control .gblocks-border-colors{display:flex;flex-grow:0}.gblocks-border-row .gblocks-flex-control .gblocks-border-colors>div{margin:0}.gblocks-border-row .gblocks-flex-control .gblocks-border-colors>div .components-base-control__help{font-size:10px;line-height:1;margin-top:5px;opacity:.7} +.gblocks-color-group__row{align-items:center;display:flex;padding:7px 0}.gblocks-color-group__row>.components-base-control,.gblocks-color-group__row>.components-base-control>.components-base-control__field{margin:0!important}.gblocks-color-group__row-label{flex:1} +.gblocks-icon-chooser{display:flex;flex-wrap:wrap;list-style:none;margin-right:-3px;margin-top:0}.gblocks-icon-chooser li{display:block;margin:0 3px 3px 0;padding:0}.gblocks-icon-chooser li button.components-button{background:#fafafa;border:0;border-radius:0;box-shadow:none;color:#000;font-size:15px;height:30px;justify-content:center;line-height:normal;padding:8px;width:30px}.gblocks-icon-chooser li button.components-button span{line-height:0}.gblocks-icon-chooser li button.components-button:hover{background:#fff;box-shadow:none}.gblocks-icon-chooser li button.components-button svg{height:1em;width:1em}.gb-icon{line-height:0}.gb-icon svg{fill:currentColor}button.components-icon-picker-item{background:#efefef;border:1px solid #ddd;cursor:pointer;font-size:30px;height:50px;line-height:50px;margin-bottom:10px;width:50px}button.components-icon-picker-item svg{height:1em;width:1em}.components-icon-picker-item>span{align-items:center;display:flex;justify-content:center}.components-icon-picker-item:focus,.components-icon-picker-item:hover{background:#fafafa}.gb-svg-html .components-base-control{margin-bottom:0}.gb-icon-preview{align-items:center;display:flex;font-size:25px}.gb-icon-preview svg{height:1em;margin-left:10px;width:1em}.gblocks-icon-panel:not(:first-child){border-top:1px solid #eee!important} +.gblocks-component-gradient-control{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:8px}.gblocks-component-gradient-control .components-base-control{margin-bottom:0!important}.gblocks-component-gradient-control .components-base-control .components-base-control__field{margin-bottom:0}.gblocks-component-gradient-control .gblocks-component-color-picker-wrapper .components-base-control__field{margin-top:0}.gblocks-component-gradient-stop-value{flex-grow:1;padding-right:10px} +.gblocks-flex-direction-alignItems-column svg{transform:rotate(90deg) scaleX(-1)}.gblocks-flex-direction-justifyContent-column svg{transform:rotate(-90deg)}.gblocks-flex-direction-alignItems-column-reverse svg{transform:rotate(90deg)}.gblocks-flex-direction-justifyContent-column-reverse svg{transform:rotate(-90deg) scaleX(-1)}.gblocks-flex-direction-alignItems-row-reverse svg,.gblocks-flex-direction-justifyContent-row-reverse svg{transform:scaleX(-1)}.gblocks-flex-controls>.components-base-control__field{display:flex;flex-wrap:wrap;justify-content:space-between}.gblocks-flex-controls .gblocks-flex-controls-inner{display:flex;flex-basis:100%}.gblocks-flex-controls .gblocks-flex-controls-inner>.components-base-control{margin-bottom:0}.gblocks-flex-controls .gblocks-flex-controls-inner>.components-base-control:first-child,.gblocks-flex-controls .gblocks-flex-controls-inner>.components-base-control:nth-child(2){flex-basis:25%;margin-left:1px}.gblocks-flex-controls .gblocks-flex-controls-inner p{margin-bottom:0}.gblocks-flex-controls .gblocks-flex-controls-inner .gblocks-flex-basis-wrapper{flex-basis:50%;position:relative}.gblocks-flex-controls .gblocks-flex-controls-inner .gblocks-flex-basis-wrapper .components-gblocks-units-control-header__units{position:absolute;left:0;top:5px}.gblocks-layout-gap{display:flex;gap:5px} +.gblocks-sizing-fields{align-items:flex-start;display:flex;flex-wrap:wrap;gap:10px}.gblocks-sizing-fields>div{flex-grow:1;width:calc(50% - 10px)}.gblocks-sizing-fields .components-base-control,.gblocks-sizing-fields .components-base-control__field{margin:0} +.wp-block-generateblocks-query-loop{margin-bottom:0;margin-top:0}.gb-post-template .gb-post-template-wrapper{display:flex;flex-wrap:wrap;justify-content:flex-start;position:relative}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks{box-sizing:border-box;width:100%}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{height:100%}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.gb-grid-column{height:100%;margin-right:0;margin-left:0}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.gb-is-root-block,.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.gb-is-root-block>.gb-grid-column{height:100%}.gb-post-template .block-editor-default-block-appender,.gb-post-template .gb-container+.block-list-appender{display:none}.gb-post-template+.block-list-appender{position:relative}.gb-post-template+.block-list-appender .gblocks-query-block-appender{width:auto}.gblocks-parameter-component{margin-bottom:24px;position:relative}.gblocks-parameter-component .gblocks-remove-parameter{height:auto;justify-content:flex-end!important;min-width:auto;position:absolute;left:0;top:0}.gblocks-parameter-component .gblocks-remove-parameter.components-button.has-icon svg{height:15px;margin-left:0;width:15px}.gblocks-query-loop-layout-selector__content{align-items:flex-start;display:flex;margin-top:20px}.gblocks-query-loop-layout-selector__content .components-button{display:block;flex-basis:80px;height:auto;margin-left:30px;padding:0}.gblocks-query-loop-layout-selector__content .components-button svg{fill:var(--wp-admin-theme-color);border:1px solid var(--wp-admin-theme-color)}.gblocks-query-loop-layout-selector__content .components-button p{font-size:11px;margin-bottom:0;margin-top:5px}.gb-query-loop-block-preview a{pointer-events:none} +[data-type="generateblocks/container"] .wp-block-heading h1,[data-type="generateblocks/container"] .wp-block-heading h1.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h2,[data-type="generateblocks/container"] .wp-block-heading h2.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h3,[data-type="generateblocks/container"] .wp-block-heading h3.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h4,[data-type="generateblocks/container"] .wp-block-heading h4.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h5,[data-type="generateblocks/container"] .wp-block-heading h5.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h6,[data-type="generateblocks/container"] .wp-block-heading h6.editor-rich-text__tinymce,body.gutenberg-editor-page [data-type="generateblocks/container"] .editor-block-list__block{color:inherit}.additional-class-notice .components-notice{margin:0 0 10px}.widthButtons{display:flex;margin-bottom:10px}.widthButtons button{box-shadow:inset 0 0 0 1px #007cba;flex:1;font-size:12px;justify-content:center;padding:5px 0}.widthButtons button:first-child{padding:5px}.gblocks-column-width-control input[type=number]{width:65px}[data-type="generateblocks/container"]>.block-editor-block-list__block-edit>[data-block]{margin:0}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width{border-top:1px solid #ddd;padding-top:15px}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width .components-base-control__label{margin-bottom:15px}.gblocks-container-text-alignment .components-base-control__label{display:block}.edit-post-visual-editor .block-editor-block-list__block[data-type="generateblocks/container"]>.block-editor-block-list__block-edit{margin:0}.gb-container .gb-inside-container{box-sizing:inherit}.gblocks-bg-image-wrapper{display:flex}.gblocks-bg-image-wrapper .components-base-control,.gblocks-bg-image-wrapper .components-base-control__field{margin:0}.gblocks-bg-image-wrapper>.components-base-control{flex-grow:1}.gblocks-bg-image-wrapper .components-button{height:100%;line-height:inherit}.components-gblocks-control__image-sizes{margin-bottom:24px}.components-gblocks-control__image-sizes button{margin:0 0 5px 5px}.gb-container .wp-block-image{margin-bottom:0;margin-top:0}.gb-container .gb-shapes>.gb-shape{line-height:0;overflow:hidden;pointer-events:none;position:absolute}.gb-container .gb-shapes>.gb-shape svg{fill:currentColor}.gblocks-add-new-shape{margin-top:10px}.gblocks-shape-controls{width:100%}.gblocks-shape-controls>.components-base-control{margin-bottom:20px}.gblocks-shape-controls .gblocks-edit-shape{display:block;text-align:right;width:100%}.gblocks-shape-controls .gblocks-shape-chooser{display:block;margin:0}.gblocks-shape-controls .gblocks-shape-chooser li{margin:5px 0}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button{background:#efefef;height:auto;width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button svg{width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button:hover{background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button.gblocks-shape-is-active{box-shadow:0 0 0 3px #007cba}.gblocks-shape-controls .components-panel__row{display:block}.gblocks-shape-divider-preview{padding:10px}.gblocks-shape-divider-preview svg{fill:currentColor}.gblocks-shape-toggle-preview{margin-left:10px}.gblocks-shape-toggle-preview svg{width:30px}.gblocks-shape-container{align-items:center;border:1px solid #efefef;border-radius:3px;display:flex;margin-bottom:10px}.gblocks-shape-container .components-dropdown{margin-right:auto}.gblocks-shape-container .components-button.gblocks-remove-shape,.gblocks-shape-container .components-button.gblocks-shape-dropdown{justify-content:center}.gblocks-shape-container .components-button.gblocks-remove-shape>svg,.gblocks-shape-container .components-button.gblocks-shape-dropdown>svg{margin-left:0}.components-popover.gblocks-shapes-dropdown .components-popover__content{min-width:260px}.gblocks-gpress-full-width .components-base-control__label{display:block}.gb-container-empty{position:relative}.gb-container-empty.gb-container-visual-guides:before{border:1px dashed #000;bottom:.5px;box-shadow:inset 0 0 0 1px #fff;content:"";right:.5px;opacity:.2;position:absolute;left:.5px;top:.5px;transition:opacity .5s ease}.gb-container-empty.gb-container-visual-guides:hover:before{opacity:.3}.gb-container{box-sizing:border-box;margin-bottom:0;margin-top:0}.gb-container>.wp-block{margin-right:0;margin-left:0}.gb-container.block-editor-block-list__block.gb-container-empty>.block-list-appender,.gb-container.block-editor-block-list__block.gb-container-empty>.gb-inside-container>.block-list-appender{margin:0}.gb-container.block-editor-block-list__block>.block-list-appender,.gb-container.block-editor-block-list__block>.gb-inside-container>.block-list-appender{margin-top:10px;padding:0;position:relative;width:35px}.gb-container.block-editor-block-list__block>.block-list-appender:empty,.gb-container.block-editor-block-list__block>.gb-inside-container>.block-list-appender:empty{display:none}.gb-container.block-editor-block-list__block button.block-editor-button-block-appender,.gb-container.block-editor-block-list__block>.gb-inside-container button.block-editor-button-block-appender{background:#000;box-sizing:border-box;color:#fff;height:35px;min-height:35px;padding:5px;width:35px}.gb-container.block-editor-block-list__block button.block-editor-button-block-appender:hover,.gb-container.block-editor-block-list__block>.gb-inside-container button.block-editor-button-block-appender:hover{background-color:var(--wp-admin-theme-color)}.gb-container.block-editor-block-list__block button.block-editor-button-block-appender:not(:hover),.gb-container.block-editor-block-list__block>.gb-inside-container button.block-editor-button-block-appender:not(:hover){box-shadow:inset 0 0 0 1px #444}.components-button.gblocks-container-selector{border:0;color:inherit;display:block;height:35px;padding:0;text-align:right}.components-button.gblocks-container-selector .gblocks-container-selector__icon{align-items:center;background:#fff;border-radius:2px;display:inline-flex;height:35px;justify-content:center;opacity:.3;transition:opacity .5s ease;width:35px}.components-button.gblocks-container-selector .gblocks-container-selector__icon svg{height:35px;transform:scale(.7);width:35px}.components-button.gblocks-container-selector .gblocks-container-selector__icon svg path{fill:#000}.components-button.gblocks-container-selector:hover .gblocks-container-selector__icon{opacity:.4}.gblocks-inner-container-notice{background:rgba(0,0,0,.03);margin:0 0 1em;max-width:720px}.gblocks-layout-system-ul{list-style-type:disc;margin-right:1em} +.components-popover.gb-alignment-matrix-content .components-popover__content{padding:8px}.gb-alignment-matrix-content-buttons{border-bottom:1px solid;display:flex;gap:10px;justify-content:center;margin:0 -8px 8px;padding:0 8px 8px}.gb-alignment-matrix-content-buttons button{display:flex;height:30px;justify-content:center;padding:0;width:30px}.gb-matrix{color:#000;display:grid;grid-template-columns:repeat(3,1fr)}.gb-matrix.is-compact{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 aria-hidden=%27true%27%3E%3Cpath d=%27M23.25 24h-4.5v-1.5h3.75v-3.75H24v4.5a.75.75 0 0 1-.75.75M8.626 22.5h6.75V24h-6.75zM5.25 24H.75a.754.754 0 0 1-.75-.75v-4.5h1.5v3.75h3.75zM0 8.624h1.5v6.75H0zM1.5 5.25H0V.75A.75.75 0 0 1 .75 0h4.5v1.5H1.5zM8.626 0h6.75v1.5h-6.75zM24 5.25h-1.5V1.5h-3.75V0h4.5a.75.75 0 0 1 .75.75zm-1.5 3.374H24v6.75h-1.5z%27 style=%27fill-rule:nonzero%27/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;padding:3px}.gb-matrix.is-compact.is-column{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 aria-hidden=%27true%27%3E%3Cpath d=%27M0 23.25v-4.5h1.5v3.75h3.75V24H.75a.75.75 0 0 1-.75-.75M1.5 8.626v6.75H0v-6.75zM0 5.25V.75C0 .339.339 0 .75 0h4.5v1.5H1.5v3.75zM18.75 1.5V0h4.5a.75.75 0 0 1 .75.75v4.5h-1.5V1.5zM24 8.626v6.75h-1.5v-6.75zM18.75 24v-1.5h3.75v-3.75H24v4.5a.75.75 0 0 1-.75.75z%27 style=%27fill-rule:nonzero%27/%3E%3C/svg%3E")}.gb-matrix.is-compact.is-row{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 aria-hidden=%27true%27%3E%3Cpath d=%27M23.25 24h-4.5v-1.5h3.75v-3.75H24v4.5a.75.75 0 0 1-.75.75M8.626 22.5h6.75V24h-6.75zM5.25 24H.75a.754.754 0 0 1-.75-.75v-4.5h1.5v3.75h3.75zM1.5 5.25H0V.75A.75.75 0 0 1 .75 0h4.5v1.5H1.5zM8.626 0h6.75v1.5h-6.75zM24 5.25h-1.5V1.5h-3.75V0h4.5a.75.75 0 0 1 .75.75z%27 style=%27fill-rule:nonzero%27/%3E%3C/svg%3E")}.gb-matrix-cell{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:center;width:40px}.gb-matrix-cell-state{background:currentColor;height:12px;transition:all .12s linear 0s;width:12px}.gb-matrix-cell.active .gb-matrix-cell-state{background:currentColor;border:2px solid #fff;box-shadow:0 0 0 2px currentColor}.gb-matrix-cell:hover .gb-matrix-cell-state{background:#007cba}.gb-matrix-cell:hover.active .gb-matrix-cell-state{background:currentColor}.gb-matrix.is-compact .gb-matrix-cell{height:6px;width:6px}.gb-matrix.is-compact .gb-matrix-cell-state{height:2px;width:2px}.gb-matrix.is-compact .gb-matrix-cell.active .gb-matrix-cell-state{border:none;box-shadow:0 0 0 1px currentColor}.gb-matrix:not(.is-compact) .gb-matrix-cell:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid transparent}.gb-matrix:not(.is-compact) .gb-matrix-cell:focus:not(.active) .gb-matrix-cell-state{background:#007cba} +.editor-styles-wrapper .gb-templates-wrapper{display:flex;gap:16px}.editor-styles-wrapper .gb-templates-wrapper .gb-template-selector-button{display:inline-flex;flex-direction:column;font-size:13px;gap:8px;height:100%;padding:0}.editor-styles-wrapper .gb-templates-wrapper .gb-template-selector-button svg{height:50px}.editor-styles-wrapper .gb-select-layout .components-placeholder__fieldset{display:flex;justify-content:center;overflow:hidden;text-align:center}.editor-styles-wrapper .gb-select-layout__actions{display:flex;flex-basis:100%;justify-content:center;margin-top:30px} +.gb-button-wrapper{margin:0}.gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-left:0}.gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>div{width:auto}.gblocks-add-new-button svg{margin-right:0!important;margin-left:0!important} +.gb-button{border:none;box-sizing:border-box;line-height:unset;margin:0;text-decoration:none}.gb-button.button{border-radius:unset;font-size:inherit;min-height:auto}.components-popover .gblocks-button-link{margin-bottom:10px}.components-popover .gblocks-button-link input[type=text].block-editor-url-input__input{border:1px solid #ddd;border-radius:2px;max-width:100%}.gblocks-button-link-dropdown .components-base-control:last-child .components-base-control__field{margin-bottom:0} +.editor-styles-wrapper mark.gb-highlight{background:none;color:unset}.editor-styles-wrapper :where(div.gb-headline){margin-bottom:0;margin-top:0}.gb-image-replace-url{padding:6px 12px}.gb-image-replace-url .components-base-control__field{margin-bottom:0} +.gblocks-notice{margin-bottom:20px}.gblocks-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gblocks-panel-label .gblocks-panel-label{background-color:#fafafa;border:0}.gblocks-panel-label .gblocks-panel-label .components-panel__body-toggle{padding:10px}.gblocks-panel-label .components-panel__icon{color:currentColor}.gblocks-panel-label svg.components-panel__icon{margin:0;margin-inline-end:10px}.gblocks-control-tabs .components-tab-panel__tabs{border-bottom:1px solid #e8eaeb;display:flex;flex-wrap:wrap;margin-bottom:15px}.gblocks-control-tabs .components-tab-panel__tabs button{border:0;border-radius:0;cursor:pointer;flex:1;font-size:11px;font-weight:400;height:auto;justify-content:center;margin:0 0 -1px;outline-offset:-1px;padding:8px}.gblocks-control-tabs .components-tab-panel__tabs button.active-tab{background:#222!important;box-shadow:0 0 0!important;color:#fff!important;position:relative;z-index:1}.gblocks-block-control-icon svg{margin-right:0!important;margin-left:0!important;padding:2px}.gblocks-block-control-icon.gblocks-add-grid-item svg{padding:0}.gblocks-block-control-icon svg path{fill:inherit}.gblocks-option-notice.components-notice{margin:0 0 24px}.gblocks-option-notice.components-notice .components-notice__content{margin:5px}.gblocks-small-notice-description{color:#777;font-size:12px;margin-bottom:10px}.gblocks-utility-label{align-items:flex-end;display:flex;margin-bottom:5px}.gblocks-utility-label label{margin-left:auto}.gblocks-utility-label .components-button{height:auto;justify-content:center!important;margin-right:5px;min-width:auto;padding:0 6px}.gblocks-utility-label .components-button.gblocks-reset-button svg{height:20px;width:20px}.gblocks-utility-label .components-button:last-child{margin-left:-5px}.gblocks-utility-label .components-button svg{height:13px;margin-left:0!important;width:13px}.wp-block.gb-is-root-block{margin-bottom:0;margin-top:0;position:relative}.block-editor-list-view-leaf :is(.gb-block-icon,.gblocks-block-icon){color:#1e72bd}.block-editor-list-view-leaf.is-selected :is(.gb-block-icon,.gblocks-block-icon){color:currentColor}.gblocks-action-panel{padding:0!important}.gblocks-action-panel .components-panel__body-title{margin:0!important}.gblocks-action-panel .components-panel__arrow path{transform:rotate(-90deg);transform-origin:center}.post-type-gp_elements .wp-block{max-width:none}.gblocks-flex-button-group{display:flex}.gblocks-flex-button-group button{display:flex;flex-grow:1;font-size:12px;justify-content:center}.gblocks-flex-button-group button.is-inherited{background:rgba(0,0,0,.07)}.gblocks-flex-button-group button svg{width:15px} +.gblocks-image-dimensions__row{display:flex;justify-content:space-between}.gblocks-image-dimensions__row>div{width:calc(50% - 2px)}.gblocks-image-dimensions__row .components-base-control{margin:0!important}.gblocks-image-dimensions__row .components-base-control__field{margin:0}[data-align=full]>.gb-block-image,[data-align=wide]>.gb-block-image{max-width:none}[data-align=full]>.gb-block-image img,[data-align=wide]>.gb-block-image img{height:auto;width:100%}.wp-block-generateblocks-image{margin:0;position:relative}.wp-block-generateblocks-image.is-applying img{opacity:.3}.wp-block-generateblocks-image .components-spinner{right:50%;margin-right:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-generateblocks-image img{height:auto;max-width:100%;vertical-align:middle}.wp-block-generateblocks-image figcaption p{margin:0}.wp-block-generateblocks-image .components-placeholder,.wp-block-generateblocks-image .components-resizable-box__container{border-radius:inherit}.wp-block-generateblocks-image .gblocks-image__placeholder{max-width:100%;position:relative}.wp-block-generateblocks-image .gblocks-image__placeholder img{border:1px dashed;opacity:.4}.wp-block-generateblocks-image .gblocks-image__placeholder .components-placeholder__illustration{bottom:0;height:100%;right:0;position:absolute;left:0;top:0;width:100%;stroke:currentColor;stroke-dasharray:3;border:0;opacity:.4;transform:none} +.gb-onboard-popover .components-popover__content{padding:12px;width:330px} diff --git a/dist/blocks.asset.php b/dist/blocks.asset.php index 894739fc7..163760a34 100644 --- a/dist/blocks.asset.php +++ b/dist/blocks.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-rich-text'), 'version' => '8eefe8b6380072d833c4'); + array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-rich-text', 'generateblocks-components', 'generateblocks-styles-builder'), 'version' => '8a23d88e4e302669cdc2'); diff --git a/dist/blocks.css b/dist/blocks.css index bd308006e..e4dfacf8e 100644 --- a/dist/blocks.css +++ b/dist/blocks.css @@ -6,21 +6,20 @@ .generate-advanced-select__input-container .generate-advanced-select__input:focus{box-shadow:0 0 0} .gblocks-flex-control{display:flex;gap:5px}.gblocks-flex-control>div{flex:1}.gblocks-flex-control>div .components-base-control__field{margin-bottom:0} .gblocks-font-family,.gblocks-font-family .components-base-control,.gblocks-font-family .gblocks-advanced-select{margin-bottom:0!important}.gblocks-font-family .components-base-control__control,.gblocks-font-family .gblocks-advanced-select__control{margin-bottom:0}.gblocks-alignment-button-group{display:flex}.gblocks-alignment-button-group button.components-button.has-icon{flex:1;justify-content:center}.gblocks-alignment-button-group button.components-button.has-icon svg{margin:0} -.components-gblocks-dimensions-control>.components-base-control__field{display:flex;flex-wrap:wrap}.components-gblocks-dimensions-control__inputs{display:grid;flex-basis:100%;gap:10px;grid-template-areas:"top right " "left bottom"}.components-gblocks-dimensions-control__inputs>div .components-base-control,.components-gblocks-dimensions-control__inputs>div .components-base-control__field{margin-bottom:0}.components-gblocks-dimensions-control__inputs>div:nth-child(3){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs>div:nth-child(3){-ms-grid-column-span:3;-ms-grid-column:1;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs>div:nth-child(4){grid-area:bottom;-ms-grid-column:3;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs>div:nth-child(4){-ms-grid-column-span:3;-ms-grid-column:3;-ms-grid-row:5}.components-gblocks-dimensions-control__inputs.style-circle{gap:5px;grid-template-areas:". top top ." "left left right right" ". bottom bottom ."}.components-gblocks-dimensions-control__inputs.style-circle>div{position:relative}.components-gblocks-dimensions-control__inputs.style-circle>div:first-child{display:flex;flex-direction:column-reverse;grid-area:top;-ms-grid-column:1;-ms-grid-row:1}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:first-child{-ms-grid-column-span:3;-ms-grid-column:3;-ms-grid-row:1}.components-gblocks-dimensions-control__inputs.style-circle>div:first-child .gblocks-dimensions-control__label{padding-bottom:5px;text-align:center}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2){-ms-grid-column-span:3;-ms-grid-column:1;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2) .gblocks-dimensions-control__label{bottom:calc(100% + 5px);left:0;position:absolute}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3){grid-area:right;-ms-grid-column:3;-ms-grid-row:1}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3){-ms-grid-column-span:3;-ms-grid-column:5;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3) .gblocks-dimensions-control__label{bottom:calc(100% + 5px);position:absolute;right:0}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(4){display:flex;flex-direction:column;grid-area:bottom;-ms-grid-column:3;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(4){-ms-grid-column-span:3;-ms-grid-column:3;-ms-grid-row:5}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(4) .gblocks-dimensions-control__label{padding-top:5px;text-align:center}.gblocks-dimensions-control__label{font-size:10px;line-height:1;opacity:.5}.components-gblocks-dimensions-control_sync.components-button{height:15px;margin-inline-start:5px;padding:0;text-align:center;width:15px}.components-gblocks-dimensions-control_sync.components-button svg{fill:currentColor;height:18px;width:18px}.rtl .components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2){-ms-grid-column-span:3;grid-area:right;-ms-grid-column:5;-ms-grid-row:3}.rtl .components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3){-ms-grid-column-span:3;grid-area:left;-ms-grid-column:1;-ms-grid-row:3} -.gblocks-color-component{align-items:center;display:flex}.gblocks-color-component__label{flex:1}.gblocks-color-component__toggle-button{height:auto;min-height:auto;padding:4px}.gblocks-color-component__toggle-indicator{background:linear-gradient(-45deg,transparent 48%,rgba(0,0,0,.2) 0,rgba(0,0,0,.2) 52%,transparent 0);border:1px solid rgba(0,0,0,.2);border-radius:50%;height:25px;width:25px}.gblocks-color-component-content .components-popover__content{padding:15px;width:300px}.gblocks-color-component-content .components-popover__content>div{padding:0}.gblocks-color-component-content .components-base-control__field{margin-bottom:0}.gblocks-color-component-content .react-colorful{width:100%!important}.gblocks-color-component-content .react-colorful .react-colorful__pointer{height:20px;width:20px}.gblocks-color-component-content .react-colorful .react-colorful__saturation{height:150px}.gblocks-color-component-content__input-wrapper{display:flex;margin-top:15px}.gblocks-color-component-content__input-wrapper .gblocks-color-input{flex:1}.gblocks-color-component-content__input-wrapper .gblocks-color-input-clear{height:auto}.gblocks-color-component-content__input-wrapper .components-base-control__field{margin-bottom:0}.gblocks-color-component-content__palette{margin-top:15px}.gblocks-color-component-content__palette .components-circular-option-picker{display:flex;flex-wrap:wrap}.gblocks-color-component-content__palette .components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:6px}.gblocks-color-component-content__palette .components-circular-option-picker .components-circular-option-picker__swatches .components-circular-option-picker__option-wrapper{margin:0}.gblocks-color-component-content__opacity{display:flex;margin-top:15px}.gblocks-color-component-content__opacity .components-range-control{flex-grow:1;padding-left:5px} +.components-gblocks-dimensions-control>.components-base-control__field{display:flex;flex-wrap:wrap}.components-gblocks-dimensions-control__inputs{display:grid;flex-basis:100%;gap:10px;grid-template-areas:"top right " "left bottom"}.components-gblocks-dimensions-control__inputs>div .components-base-control,.components-gblocks-dimensions-control__inputs>div .components-base-control__field{margin-bottom:0}.components-gblocks-dimensions-control__inputs>div:nth-child(3){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs>div:nth-child(3){-ms-grid-column:1;-ms-grid-row:3;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs>div:nth-child(4){grid-area:bottom;-ms-grid-column:3;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs>div:nth-child(4){-ms-grid-column:3;-ms-grid-row:5;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs.style-circle{gap:5px;grid-template-areas:". top top ." "left left right right" ". bottom bottom ."}.components-gblocks-dimensions-control__inputs.style-circle>div{position:relative}.components-gblocks-dimensions-control__inputs.style-circle>div:first-child{display:flex;flex-direction:column-reverse;grid-area:top;-ms-grid-column:1;-ms-grid-row:1}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:first-child{-ms-grid-column:3;-ms-grid-row:1;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs.style-circle>div:first-child .gblocks-dimensions-control__label{padding-bottom:5px;text-align:center}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2){grid-area:left;-ms-grid-column:1;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2){-ms-grid-column:1;-ms-grid-row:3;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2) .gblocks-dimensions-control__label{bottom:calc(100% + 5px);left:0;position:absolute}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3){grid-area:right;-ms-grid-column:3;-ms-grid-row:1}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3){-ms-grid-column:5;-ms-grid-row:3;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3) .gblocks-dimensions-control__label{bottom:calc(100% + 5px);position:absolute;right:0}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(4){display:flex;flex-direction:column;grid-area:bottom;-ms-grid-column:3;-ms-grid-row:3}.components-gblocks-dimensions-control__inputs.style-circle>.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(4){-ms-grid-column:3;-ms-grid-row:5;-ms-grid-column-span:3}.components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(4) .gblocks-dimensions-control__label{padding-top:5px;text-align:center}.gblocks-dimensions-control__label{font-size:10px;line-height:1;opacity:.5}.components-gblocks-dimensions-control_sync.components-button{height:15px;margin-inline-start:5px;padding:0;text-align:center;width:15px}.components-gblocks-dimensions-control_sync.components-button svg{height:18px;width:18px;fill:currentColor}.rtl .components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(2){-ms-grid-column:5;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:right}.rtl .components-gblocks-dimensions-control__inputs.style-circle>div:nth-child(3){-ms-grid-column:1;-ms-grid-row:3;-ms-grid-column-span:3;grid-area:left} .gblocks-border-row .gblocks-flex-control{align-items:center}.gblocks-border-row .gblocks-flex-control>div{flex-grow:0;margin-bottom:10px}.gblocks-border-row .gblocks-flex-control .gblocks-unit-control{flex-grow:1}.gblocks-border-row .gblocks-flex-control .gblocks-border-style button.components-button{border:1px solid #ccc;height:30px;min-width:30px;width:30px}.gblocks-border-row .gblocks-flex-control .gblocks-border-style button.components-button svg{width:15px}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon{border:2px solid #ddd;border-radius:2px;flex-basis:20px;height:20px;width:20px}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon.borderTop{border-top-color:#000}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon.borderRight{border-right-color:#000}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon.borderBottom{border-bottom-color:#000}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon.borderLeft{border-left-color:#000}.gblocks-border-row .gblocks-flex-control .gblocks-border-icon.borderAll{border-color:#000}.gblocks-border-row .gblocks-flex-control .gblocks-border-colors{display:flex;flex-grow:0}.gblocks-border-row .gblocks-flex-control .gblocks-border-colors>div{margin:0}.gblocks-border-row .gblocks-flex-control .gblocks-border-colors>div .components-base-control__help{font-size:10px;line-height:1;margin-top:5px;opacity:.7} -.gblocks-color-group__row{align-items:center;display:flex;padding:7px 0}.gblocks-color-group__row-label{flex:1} +.gblocks-color-group__row{align-items:center;display:flex;padding:7px 0}.gblocks-color-group__row>.components-base-control,.gblocks-color-group__row>.components-base-control>.components-base-control__field{margin:0!important}.gblocks-color-group__row-label{flex:1} .gblocks-icon-chooser{display:flex;flex-wrap:wrap;list-style:none;margin-left:-3px;margin-top:0}.gblocks-icon-chooser li{display:block;margin:0 0 3px 3px;padding:0}.gblocks-icon-chooser li button.components-button{background:#fafafa;border:0;border-radius:0;box-shadow:none;color:#000;font-size:15px;height:30px;justify-content:center;line-height:normal;padding:8px;width:30px}.gblocks-icon-chooser li button.components-button span{line-height:0}.gblocks-icon-chooser li button.components-button:hover{background:#fff;box-shadow:none}.gblocks-icon-chooser li button.components-button svg{height:1em;width:1em}.gb-icon{line-height:0}.gb-icon svg{fill:currentColor}button.components-icon-picker-item{background:#efefef;border:1px solid #ddd;cursor:pointer;font-size:30px;height:50px;line-height:50px;margin-bottom:10px;width:50px}button.components-icon-picker-item svg{height:1em;width:1em}.components-icon-picker-item>span{align-items:center;display:flex;justify-content:center}.components-icon-picker-item:focus,.components-icon-picker-item:hover{background:#fafafa}.gb-svg-html .components-base-control{margin-bottom:0}.gb-icon-preview{align-items:center;display:flex;font-size:25px}.gb-icon-preview svg{height:1em;margin-right:10px;width:1em}.gblocks-icon-panel:not(:first-child){border-top:1px solid #eee!important} .gblocks-component-gradient-control{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:8px}.gblocks-component-gradient-control .components-base-control{margin-bottom:0!important}.gblocks-component-gradient-control .components-base-control .components-base-control__field{margin-bottom:0}.gblocks-component-gradient-control .gblocks-component-color-picker-wrapper .components-base-control__field{margin-top:0}.gblocks-component-gradient-stop-value{flex-grow:1;padding-left:10px} .gblocks-flex-direction-alignItems-column svg{transform:rotate(-90deg) scaleX(-1)}.gblocks-flex-direction-justifyContent-column svg{transform:rotate(90deg)}.gblocks-flex-direction-alignItems-column-reverse svg{transform:rotate(-90deg)}.gblocks-flex-direction-justifyContent-column-reverse svg{transform:rotate(90deg) scaleX(-1)}.gblocks-flex-direction-alignItems-row-reverse svg,.gblocks-flex-direction-justifyContent-row-reverse svg{transform:scaleX(-1)}.gblocks-flex-controls>.components-base-control__field{display:flex;flex-wrap:wrap;justify-content:space-between}.gblocks-flex-controls .gblocks-flex-controls-inner{display:flex;flex-basis:100%}.gblocks-flex-controls .gblocks-flex-controls-inner>.components-base-control{margin-bottom:0}.gblocks-flex-controls .gblocks-flex-controls-inner>.components-base-control:first-child,.gblocks-flex-controls .gblocks-flex-controls-inner>.components-base-control:nth-child(2){flex-basis:25%;margin-right:1px}.gblocks-flex-controls .gblocks-flex-controls-inner p{margin-bottom:0}.gblocks-flex-controls .gblocks-flex-controls-inner .gblocks-flex-basis-wrapper{flex-basis:50%;position:relative}.gblocks-flex-controls .gblocks-flex-controls-inner .gblocks-flex-basis-wrapper .components-gblocks-units-control-header__units{position:absolute;right:0;top:5px}.gblocks-layout-gap{display:flex;gap:5px} .gblocks-sizing-fields{align-items:flex-start;display:flex;flex-wrap:wrap;gap:10px}.gblocks-sizing-fields>div{flex-grow:1;width:calc(50% - 10px)}.gblocks-sizing-fields .components-base-control,.gblocks-sizing-fields .components-base-control__field{margin:0} .wp-block-generateblocks-query-loop{margin-bottom:0;margin-top:0}.gb-post-template .gb-post-template-wrapper{display:flex;flex-wrap:wrap;justify-content:flex-start;position:relative}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks{box-sizing:border-box;width:100%}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{height:100%}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.gb-grid-column{height:100%;margin-left:0;margin-right:0}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.gb-is-root-block,.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.gb-is-root-block>.gb-grid-column{height:100%}.gb-post-template .block-editor-default-block-appender,.gb-post-template .gb-container+.block-list-appender{display:none}.gb-post-template+.block-list-appender{position:relative}.gb-post-template+.block-list-appender .gblocks-query-block-appender{width:auto}.gblocks-parameter-component{margin-bottom:24px;position:relative}.gblocks-parameter-component .gblocks-remove-parameter{height:auto;justify-content:flex-end!important;min-width:auto;position:absolute;right:0;top:0}.gblocks-parameter-component .gblocks-remove-parameter.components-button.has-icon svg{height:15px;margin-right:0;width:15px}.gblocks-query-loop-layout-selector__content{align-items:flex-start;display:flex;margin-top:20px}.gblocks-query-loop-layout-selector__content .components-button{display:block;flex-basis:80px;height:auto;margin-right:30px;padding:0}.gblocks-query-loop-layout-selector__content .components-button svg{fill:var(--wp-admin-theme-color);border:1px solid var(--wp-admin-theme-color)}.gblocks-query-loop-layout-selector__content .components-button p{font-size:11px;margin-bottom:0;margin-top:5px}.gb-query-loop-block-preview a{pointer-events:none} -[data-type="generateblocks/container"] .wp-block-heading h1,[data-type="generateblocks/container"] .wp-block-heading h1.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h2,[data-type="generateblocks/container"] .wp-block-heading h2.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h3,[data-type="generateblocks/container"] .wp-block-heading h3.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h4,[data-type="generateblocks/container"] .wp-block-heading h4.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h5,[data-type="generateblocks/container"] .wp-block-heading h5.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h6,[data-type="generateblocks/container"] .wp-block-heading h6.editor-rich-text__tinymce,body.gutenberg-editor-page [data-type="generateblocks/container"] .editor-block-list__block{color:inherit}.additional-class-notice .components-notice{margin:0 0 10px}.widthButtons{display:flex;margin-bottom:10px}.widthButtons button{box-shadow:inset 0 0 0 1px #007cba;flex:1;font-size:12px;justify-content:center;padding:5px 0}.widthButtons button:first-child{padding:5px}.gblocks-column-width-control input[type=number]{width:65px}[data-type="generateblocks/container"]>.block-editor-block-list__block-edit>[data-block]{margin:0}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width{border-top:1px solid #ddd;padding-top:15px}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width .components-base-control__label{margin-bottom:15px}.gblocks-container-text-alignment .components-base-control__label{display:block}.edit-post-visual-editor .block-editor-block-list__block[data-type="generateblocks/container"]>.block-editor-block-list__block-edit{margin:0}.gb-container .gb-inside-container{box-sizing:inherit}.gblocks-bg-image-wrapper{display:flex}.gblocks-bg-image-wrapper .components-base-control,.gblocks-bg-image-wrapper .components-base-control__field{margin:0}.gblocks-bg-image-wrapper>.components-base-control{flex-grow:1}.gblocks-bg-image-wrapper .components-button{height:100%;line-height:inherit}.components-gblocks-control__image-sizes{margin-bottom:24px}.components-gblocks-control__image-sizes button{margin:0 5px 5px 0}.gb-container .wp-block-image{margin-bottom:0;margin-top:0}.gb-container .gb-shape{line-height:0;overflow:hidden;pointer-events:none;position:absolute}.gb-container .gb-shape svg{fill:currentColor}.gblocks-add-new-shape{margin-top:10px}.gblocks-shape-controls{width:100%}.gblocks-shape-controls>.components-base-control{margin-bottom:20px}.gblocks-shape-controls .gblocks-edit-shape{display:block;text-align:left;width:100%}.gblocks-shape-controls .gblocks-shape-chooser{display:block;margin:0}.gblocks-shape-controls .gblocks-shape-chooser li{margin:5px 0}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button{background:#efefef;height:auto;width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button svg{width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button:hover{background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button.gblocks-shape-is-active{box-shadow:0 0 0 3px #007cba}.gblocks-shape-controls .components-panel__row{display:block}.gblocks-shape-divider-preview{padding:10px}.gblocks-shape-divider-preview svg{fill:currentColor}.gblocks-shape-toggle-preview{margin-right:10px}.gblocks-shape-toggle-preview svg{width:30px}.gblocks-shape-container{align-items:center;border:1px solid #efefef;border-radius:3px;display:flex;margin-bottom:10px}.gblocks-shape-container .components-dropdown{margin-left:auto}.gblocks-shape-container .components-button.gblocks-remove-shape,.gblocks-shape-container .components-button.gblocks-shape-dropdown{justify-content:center}.gblocks-shape-container .components-button.gblocks-remove-shape>svg,.gblocks-shape-container .components-button.gblocks-shape-dropdown>svg{margin-right:0}.components-popover.gblocks-shapes-dropdown .components-popover__content{min-width:260px}.gblocks-gpress-full-width .components-base-control__label{display:block}.gb-container-empty{position:relative}.gb-container-empty.gb-container-visual-guides:before{border:1px dashed #000;bottom:.5px;box-shadow:inset 0 0 0 1px #fff;content:"";left:.5px;opacity:.2;position:absolute;right:.5px;top:.5px;transition:opacity .5s ease}.gb-container-empty.gb-container-visual-guides:hover:before{opacity:.3}.gb-container{box-sizing:border-box;margin-bottom:0;margin-top:0}.gb-container>.wp-block{margin-left:0;margin-right:0}.gb-container.block-editor-block-list__block.gb-container-empty>.block-list-appender,.gb-container.block-editor-block-list__block.gb-container-empty>.gb-inside-container>.block-list-appender{margin:0}.gb-container.block-editor-block-list__block>.block-list-appender,.gb-container.block-editor-block-list__block>.gb-inside-container>.block-list-appender{margin-top:10px;padding:0;position:relative;width:35px}.gb-container.block-editor-block-list__block>.block-list-appender:empty,.gb-container.block-editor-block-list__block>.gb-inside-container>.block-list-appender:empty{display:none}.gb-container.block-editor-block-list__block button.block-editor-button-block-appender,.gb-container.block-editor-block-list__block>.gb-inside-container button.block-editor-button-block-appender{background:#000;box-sizing:border-box;color:#fff;height:35px;min-height:35px;padding:5px;width:35px}.gb-container.block-editor-block-list__block button.block-editor-button-block-appender:hover,.gb-container.block-editor-block-list__block>.gb-inside-container button.block-editor-button-block-appender:hover{background-color:var(--wp-admin-theme-color)}.gb-container.block-editor-block-list__block button.block-editor-button-block-appender:not(:hover),.gb-container.block-editor-block-list__block>.gb-inside-container button.block-editor-button-block-appender:not(:hover){box-shadow:inset 0 0 0 1px #444}.components-button.gblocks-container-selector{border:0;color:inherit;display:block;height:35px;padding:0;text-align:left}.components-button.gblocks-container-selector .gblocks-container-selector__icon{align-items:center;background:#fff;border-radius:2px;display:inline-flex;height:35px;justify-content:center;opacity:.3;transition:opacity .5s ease;width:35px}.components-button.gblocks-container-selector .gblocks-container-selector__icon svg{height:35px;transform:scale(.7);width:35px}.components-button.gblocks-container-selector .gblocks-container-selector__icon svg path{fill:#000}.components-button.gblocks-container-selector:hover .gblocks-container-selector__icon{opacity:.4}.gblocks-inner-container-notice{background:rgba(0,0,0,.03);margin:0 0 1em;max-width:720px}.gblocks-layout-system-ul{list-style-type:disc;margin-left:1em} -.components-popover.gb-alignment-matrix-content .components-popover__content{padding:8px}.gb-alignment-matrix-content-buttons{border-bottom:1px solid;display:flex;gap:10px;justify-content:center;margin:0 -8px 8px;padding:0 8px 8px}.gb-alignment-matrix-content-buttons button{display:flex;height:30px;justify-content:center;padding:0;width:30px}.gb-matrix{color:#000;display:grid;grid-template-columns:repeat(3,1fr)}.gb-matrix.is-compact{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 aria-hidden=%27true%27%3E%3Cpath d=%27M23.25 24h-4.5v-1.5h3.75v-3.75H24v4.5a.75.75 0 0 1-.75.75ZM8.626 22.5h6.75V24h-6.75v-1.5ZM5.25 24H.75a.754.754 0 0 1-.75-.75v-4.5h1.5v3.75h3.75V24ZM0 8.624h1.5v6.75H0v-6.75ZM1.5 5.25H0V.75A.75.75 0 0 1 .75 0h4.5v1.5H1.5v3.75ZM8.626 0h6.75v1.5h-6.75V0ZM24 5.25h-1.5V1.5h-3.75V0h4.5a.75.75 0 0 1 .75.75v4.5Zm-1.5 3.374H24v6.75h-1.5v-6.75Z%27 style=%27fill-rule:nonzero%27/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;padding:3px}.gb-matrix.is-compact.is-column{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 aria-hidden=%27true%27%3E%3Cpath d=%27M0 23.25v-4.5h1.5v3.75h3.75V24H.75a.75.75 0 0 1-.75-.75ZM1.5 8.626v6.75H0v-6.75h1.5ZM0 5.25V.75C0 .339.339 0 .75 0h4.5v1.5H1.5v3.75H0ZM18.75 1.5V0h4.5a.75.75 0 0 1 .75.75v4.5h-1.5V1.5h-3.75ZM24 8.626v6.75h-1.5v-6.75H24ZM18.75 24v-1.5h3.75v-3.75H24v4.5a.75.75 0 0 1-.75.75h-4.5Z%27 style=%27fill-rule:nonzero%27/%3E%3C/svg%3E")}.gb-matrix.is-compact.is-row{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 aria-hidden=%27true%27%3E%3Cpath d=%27M23.25 24h-4.5v-1.5h3.75v-3.75H24v4.5a.75.75 0 0 1-.75.75ZM8.626 22.5h6.75V24h-6.75v-1.5ZM5.25 24H.75a.754.754 0 0 1-.75-.75v-4.5h1.5v3.75h3.75V24ZM1.5 5.25H0V.75A.75.75 0 0 1 .75 0h4.5v1.5H1.5v3.75ZM8.626 0h6.75v1.5h-6.75V0ZM24 5.25h-1.5V1.5h-3.75V0h4.5a.75.75 0 0 1 .75.75v4.5Z%27 style=%27fill-rule:nonzero%27/%3E%3C/svg%3E")}.gb-matrix-cell{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:center;width:40px}.gb-matrix-cell-state{background:currentColor;height:12px;transition:all .12s linear 0s;width:12px}.gb-matrix-cell.active .gb-matrix-cell-state{background:currentColor;border:2px solid #fff;box-shadow:0 0 0 2px currentColor}.gb-matrix-cell:hover .gb-matrix-cell-state{background:#007cba}.gb-matrix-cell:hover.active .gb-matrix-cell-state{background:currentColor}.gb-matrix.is-compact .gb-matrix-cell{height:6px;width:6px}.gb-matrix.is-compact .gb-matrix-cell-state{height:2px;width:2px}.gb-matrix.is-compact .gb-matrix-cell.active .gb-matrix-cell-state{border:none;box-shadow:0 0 0 1px currentColor}.gb-matrix:not(.is-compact) .gb-matrix-cell:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid transparent}.gb-matrix:not(.is-compact) .gb-matrix-cell:focus:not(.active) .gb-matrix-cell-state{background:#007cba} +[data-type="generateblocks/container"] .wp-block-heading h1,[data-type="generateblocks/container"] .wp-block-heading h1.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h2,[data-type="generateblocks/container"] .wp-block-heading h2.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h3,[data-type="generateblocks/container"] .wp-block-heading h3.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h4,[data-type="generateblocks/container"] .wp-block-heading h4.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h5,[data-type="generateblocks/container"] .wp-block-heading h5.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h6,[data-type="generateblocks/container"] .wp-block-heading h6.editor-rich-text__tinymce,body.gutenberg-editor-page [data-type="generateblocks/container"] .editor-block-list__block{color:inherit}.additional-class-notice .components-notice{margin:0 0 10px}.widthButtons{display:flex;margin-bottom:10px}.widthButtons button{box-shadow:inset 0 0 0 1px #007cba;flex:1;font-size:12px;justify-content:center;padding:5px 0}.widthButtons button:first-child{padding:5px}.gblocks-column-width-control input[type=number]{width:65px}[data-type="generateblocks/container"]>.block-editor-block-list__block-edit>[data-block]{margin:0}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width{border-top:1px solid #ddd;padding-top:15px}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width .components-base-control__label{margin-bottom:15px}.gblocks-container-text-alignment .components-base-control__label{display:block}.edit-post-visual-editor .block-editor-block-list__block[data-type="generateblocks/container"]>.block-editor-block-list__block-edit{margin:0}.gb-container .gb-inside-container{box-sizing:inherit}.gblocks-bg-image-wrapper{display:flex}.gblocks-bg-image-wrapper .components-base-control,.gblocks-bg-image-wrapper .components-base-control__field{margin:0}.gblocks-bg-image-wrapper>.components-base-control{flex-grow:1}.gblocks-bg-image-wrapper .components-button{height:100%;line-height:inherit}.components-gblocks-control__image-sizes{margin-bottom:24px}.components-gblocks-control__image-sizes button{margin:0 5px 5px 0}.gb-container .wp-block-image{margin-bottom:0;margin-top:0}.gb-container .gb-shapes>.gb-shape{line-height:0;overflow:hidden;pointer-events:none;position:absolute}.gb-container .gb-shapes>.gb-shape svg{fill:currentColor}.gblocks-add-new-shape{margin-top:10px}.gblocks-shape-controls{width:100%}.gblocks-shape-controls>.components-base-control{margin-bottom:20px}.gblocks-shape-controls .gblocks-edit-shape{display:block;text-align:left;width:100%}.gblocks-shape-controls .gblocks-shape-chooser{display:block;margin:0}.gblocks-shape-controls .gblocks-shape-chooser li{margin:5px 0}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button{background:#efefef;height:auto;width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button svg{width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button:hover{background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button.gblocks-shape-is-active{box-shadow:0 0 0 3px #007cba}.gblocks-shape-controls .components-panel__row{display:block}.gblocks-shape-divider-preview{padding:10px}.gblocks-shape-divider-preview svg{fill:currentColor}.gblocks-shape-toggle-preview{margin-right:10px}.gblocks-shape-toggle-preview svg{width:30px}.gblocks-shape-container{align-items:center;border:1px solid #efefef;border-radius:3px;display:flex;margin-bottom:10px}.gblocks-shape-container .components-dropdown{margin-left:auto}.gblocks-shape-container .components-button.gblocks-remove-shape,.gblocks-shape-container .components-button.gblocks-shape-dropdown{justify-content:center}.gblocks-shape-container .components-button.gblocks-remove-shape>svg,.gblocks-shape-container .components-button.gblocks-shape-dropdown>svg{margin-right:0}.components-popover.gblocks-shapes-dropdown .components-popover__content{min-width:260px}.gblocks-gpress-full-width .components-base-control__label{display:block}.gb-container-empty{position:relative}.gb-container-empty.gb-container-visual-guides:before{border:1px dashed #000;bottom:.5px;box-shadow:inset 0 0 0 1px #fff;content:"";left:.5px;opacity:.2;position:absolute;right:.5px;top:.5px;transition:opacity .5s ease}.gb-container-empty.gb-container-visual-guides:hover:before{opacity:.3}.gb-container{box-sizing:border-box;margin-bottom:0;margin-top:0}.gb-container>.wp-block{margin-left:0;margin-right:0}.gb-container.block-editor-block-list__block.gb-container-empty>.block-list-appender,.gb-container.block-editor-block-list__block.gb-container-empty>.gb-inside-container>.block-list-appender{margin:0}.gb-container.block-editor-block-list__block>.block-list-appender,.gb-container.block-editor-block-list__block>.gb-inside-container>.block-list-appender{margin-top:10px;padding:0;position:relative;width:35px}.gb-container.block-editor-block-list__block>.block-list-appender:empty,.gb-container.block-editor-block-list__block>.gb-inside-container>.block-list-appender:empty{display:none}.gb-container.block-editor-block-list__block button.block-editor-button-block-appender,.gb-container.block-editor-block-list__block>.gb-inside-container button.block-editor-button-block-appender{background:#000;box-sizing:border-box;color:#fff;height:35px;min-height:35px;padding:5px;width:35px}.gb-container.block-editor-block-list__block button.block-editor-button-block-appender:hover,.gb-container.block-editor-block-list__block>.gb-inside-container button.block-editor-button-block-appender:hover{background-color:var(--wp-admin-theme-color)}.gb-container.block-editor-block-list__block button.block-editor-button-block-appender:not(:hover),.gb-container.block-editor-block-list__block>.gb-inside-container button.block-editor-button-block-appender:not(:hover){box-shadow:inset 0 0 0 1px #444}.components-button.gblocks-container-selector{border:0;color:inherit;display:block;height:35px;padding:0;text-align:left}.components-button.gblocks-container-selector .gblocks-container-selector__icon{align-items:center;background:#fff;border-radius:2px;display:inline-flex;height:35px;justify-content:center;opacity:.3;transition:opacity .5s ease;width:35px}.components-button.gblocks-container-selector .gblocks-container-selector__icon svg{height:35px;transform:scale(.7);width:35px}.components-button.gblocks-container-selector .gblocks-container-selector__icon svg path{fill:#000}.components-button.gblocks-container-selector:hover .gblocks-container-selector__icon{opacity:.4}.gblocks-inner-container-notice{background:rgba(0,0,0,.03);margin:0 0 1em;max-width:720px}.gblocks-layout-system-ul{list-style-type:disc;margin-left:1em} +.components-popover.gb-alignment-matrix-content .components-popover__content{padding:8px}.gb-alignment-matrix-content-buttons{border-bottom:1px solid;display:flex;gap:10px;justify-content:center;margin:0 -8px 8px;padding:0 8px 8px}.gb-alignment-matrix-content-buttons button{display:flex;height:30px;justify-content:center;padding:0;width:30px}.gb-matrix{color:#000;display:grid;grid-template-columns:repeat(3,1fr)}.gb-matrix.is-compact{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 aria-hidden=%27true%27%3E%3Cpath d=%27M23.25 24h-4.5v-1.5h3.75v-3.75H24v4.5a.75.75 0 0 1-.75.75M8.626 22.5h6.75V24h-6.75zM5.25 24H.75a.754.754 0 0 1-.75-.75v-4.5h1.5v3.75h3.75zM0 8.624h1.5v6.75H0zM1.5 5.25H0V.75A.75.75 0 0 1 .75 0h4.5v1.5H1.5zM8.626 0h6.75v1.5h-6.75zM24 5.25h-1.5V1.5h-3.75V0h4.5a.75.75 0 0 1 .75.75zm-1.5 3.374H24v6.75h-1.5z%27 style=%27fill-rule:nonzero%27/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;padding:3px}.gb-matrix.is-compact.is-column{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 aria-hidden=%27true%27%3E%3Cpath d=%27M0 23.25v-4.5h1.5v3.75h3.75V24H.75a.75.75 0 0 1-.75-.75M1.5 8.626v6.75H0v-6.75zM0 5.25V.75C0 .339.339 0 .75 0h4.5v1.5H1.5v3.75zM18.75 1.5V0h4.5a.75.75 0 0 1 .75.75v4.5h-1.5V1.5zM24 8.626v6.75h-1.5v-6.75zM18.75 24v-1.5h3.75v-3.75H24v4.5a.75.75 0 0 1-.75.75z%27 style=%27fill-rule:nonzero%27/%3E%3C/svg%3E")}.gb-matrix.is-compact.is-row{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 aria-hidden=%27true%27%3E%3Cpath d=%27M23.25 24h-4.5v-1.5h3.75v-3.75H24v4.5a.75.75 0 0 1-.75.75M8.626 22.5h6.75V24h-6.75zM5.25 24H.75a.754.754 0 0 1-.75-.75v-4.5h1.5v3.75h3.75zM1.5 5.25H0V.75A.75.75 0 0 1 .75 0h4.5v1.5H1.5zM8.626 0h6.75v1.5h-6.75zM24 5.25h-1.5V1.5h-3.75V0h4.5a.75.75 0 0 1 .75.75z%27 style=%27fill-rule:nonzero%27/%3E%3C/svg%3E")}.gb-matrix-cell{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:center;width:40px}.gb-matrix-cell-state{background:currentColor;height:12px;transition:all .12s linear 0s;width:12px}.gb-matrix-cell.active .gb-matrix-cell-state{background:currentColor;border:2px solid #fff;box-shadow:0 0 0 2px currentColor}.gb-matrix-cell:hover .gb-matrix-cell-state{background:#007cba}.gb-matrix-cell:hover.active .gb-matrix-cell-state{background:currentColor}.gb-matrix.is-compact .gb-matrix-cell{height:6px;width:6px}.gb-matrix.is-compact .gb-matrix-cell-state{height:2px;width:2px}.gb-matrix.is-compact .gb-matrix-cell.active .gb-matrix-cell-state{border:none;box-shadow:0 0 0 1px currentColor}.gb-matrix:not(.is-compact) .gb-matrix-cell:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid transparent}.gb-matrix:not(.is-compact) .gb-matrix-cell:focus:not(.active) .gb-matrix-cell-state{background:#007cba} .editor-styles-wrapper .gb-templates-wrapper{display:flex;gap:16px}.editor-styles-wrapper .gb-templates-wrapper .gb-template-selector-button{display:inline-flex;flex-direction:column;font-size:13px;gap:8px;height:100%;padding:0}.editor-styles-wrapper .gb-templates-wrapper .gb-template-selector-button svg{height:50px}.editor-styles-wrapper .gb-select-layout .components-placeholder__fieldset{display:flex;justify-content:center;overflow:hidden;text-align:center}.editor-styles-wrapper .gb-select-layout__actions{display:flex;flex-basis:100%;justify-content:center;margin-top:30px} .gb-button-wrapper{margin:0}.gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-right:0}.gb-button-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>div{width:auto}.gblocks-add-new-button svg{margin-left:0!important;margin-right:0!important} .gb-button{border:none;box-sizing:border-box;line-height:unset;margin:0;text-decoration:none}.gb-button.button{border-radius:unset;font-size:inherit;min-height:auto}.components-popover .gblocks-button-link{margin-bottom:10px}.components-popover .gblocks-button-link input[type=text].block-editor-url-input__input{border:1px solid #ddd;border-radius:2px;max-width:100%}.gblocks-button-link-dropdown .components-base-control:last-child .components-base-control__field{margin-bottom:0} -.editor-styles-wrapper mark.gb-highlight{background:none;color:unset}.editor-styles-wrapper .gb-headline span.rich-text{display:inline-block}.editor-styles-wrapper :where(div.gb-headline){margin-bottom:0;margin-top:0}.gb-image-replace-url{padding:6px 12px}.gb-image-replace-url .components-base-control__field{margin-bottom:0} -.gblocks-notice{margin-bottom:20px}.gblocks-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gblocks-panel-label .gblocks-panel-label{background-color:#fafafa;border:0}.gblocks-panel-label .gblocks-panel-label .components-panel__body-toggle{padding:10px}.gblocks-panel-label .components-panel__icon{color:currentColor}.gblocks-panel-label svg.components-panel__icon{margin:0;margin-inline-end:10px}.gblocks-control-tabs .components-tab-panel__tabs{border-bottom:1px solid #e8eaeb;display:flex;flex-wrap:wrap;margin-bottom:15px}.gblocks-control-tabs .components-tab-panel__tabs button{border:0;border-radius:0;cursor:pointer;flex:1;font-size:11px;font-weight:400;height:auto;justify-content:center;margin:0 0 -1px;outline-offset:-1px;padding:8px}.gblocks-control-tabs .components-tab-panel__tabs button.active-tab{background:#222!important;box-shadow:0 0 0!important;color:#fff!important;position:relative;z-index:1}.gblocks-block-control-icon svg{margin-left:0!important;margin-right:0!important;padding:2px}.gblocks-block-control-icon.gblocks-add-grid-item svg{padding:0}.gblocks-block-control-icon svg path{fill:inherit}.gblocks-option-notice.components-notice{margin:0 0 24px}.gblocks-option-notice.components-notice .components-notice__content{margin:5px}.gblocks-small-notice-description{color:#777;font-size:12px;margin-bottom:10px}.gblocks-utility-label{align-items:flex-end;display:flex;margin-bottom:5px}.gblocks-utility-label label{margin-right:auto}.gblocks-utility-label .components-button{height:auto;justify-content:center!important;margin-left:5px;min-width:auto;padding:0 6px}.gblocks-utility-label .components-button.gblocks-reset-button svg{height:20px;width:20px}.gblocks-utility-label .components-button:last-child{margin-right:-5px}.gblocks-utility-label .components-button svg{height:13px;margin-right:0!important;width:13px}.wp-block.gb-is-root-block{margin-bottom:0;margin-top:0;position:relative}.gblocks-block-icon path{fill:#1e72bd}.block-editor-list-view-leaf.is-selected .gblocks-block-icon path{fill:currentColor}.gblocks-action-panel{padding:0!important}.gblocks-action-panel .components-panel__body-title{margin:0!important}.gblocks-action-panel .components-panel__arrow path{transform:rotate(90deg);transform-origin:center}.post-type-gp_elements .wp-block{max-width:none}.gblocks-flex-button-group{display:flex}.gblocks-flex-button-group button{display:flex;flex-grow:1;font-size:12px;justify-content:center}.gblocks-flex-button-group button.is-inherited{background:rgba(0,0,0,.07)}.gblocks-flex-button-group button svg{width:15px} -.gblocks-image-dimensions__row{display:flex;justify-content:space-between}.gblocks-image-dimensions__row>div{width:calc(50% - 2px)}.gblocks-image-dimensions__row .components-base-control{margin:0!important}.gblocks-image-dimensions__row .components-base-control__field{margin:0}[data-align=full]>.gb-block-image,[data-align=wide]>.gb-block-image{max-width:none}[data-align=full]>.gb-block-image img,[data-align=wide]>.gb-block-image img{height:auto;width:100%}.wp-block-generateblocks-image{margin:0;position:relative}.wp-block-generateblocks-image.is-applying img{opacity:.3}.wp-block-generateblocks-image .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-generateblocks-image img{height:auto;max-width:100%;vertical-align:middle}.wp-block-generateblocks-image figcaption p{margin:0}.wp-block-generateblocks-image .components-placeholder,.wp-block-generateblocks-image .components-resizable-box__container{border-radius:inherit}.wp-block-generateblocks-image .gblocks-image__placeholder{max-width:100%;position:relative}.wp-block-generateblocks-image .gblocks-image__placeholder img{border:1px dashed;opacity:.4}.wp-block-generateblocks-image .gblocks-image__placeholder .components-placeholder__illustration{stroke:currentColor;stroke-dasharray:3;border:0;bottom:0;height:100%;left:0;opacity:.4;position:absolute;right:0;top:0;transform:none;width:100%} +.editor-styles-wrapper mark.gb-highlight{background:none;color:unset}.editor-styles-wrapper :where(div.gb-headline){margin-bottom:0;margin-top:0}.gb-image-replace-url{padding:6px 12px}.gb-image-replace-url .components-base-control__field{margin-bottom:0} +.gblocks-notice{margin-bottom:20px}.gblocks-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gblocks-panel-label .gblocks-panel-label{background-color:#fafafa;border:0}.gblocks-panel-label .gblocks-panel-label .components-panel__body-toggle{padding:10px}.gblocks-panel-label .components-panel__icon{color:currentColor}.gblocks-panel-label svg.components-panel__icon{margin:0;margin-inline-end:10px}.gblocks-control-tabs .components-tab-panel__tabs{border-bottom:1px solid #e8eaeb;display:flex;flex-wrap:wrap;margin-bottom:15px}.gblocks-control-tabs .components-tab-panel__tabs button{border:0;border-radius:0;cursor:pointer;flex:1;font-size:11px;font-weight:400;height:auto;justify-content:center;margin:0 0 -1px;outline-offset:-1px;padding:8px}.gblocks-control-tabs .components-tab-panel__tabs button.active-tab{background:#222!important;box-shadow:0 0 0!important;color:#fff!important;position:relative;z-index:1}.gblocks-block-control-icon svg{margin-left:0!important;margin-right:0!important;padding:2px}.gblocks-block-control-icon.gblocks-add-grid-item svg{padding:0}.gblocks-block-control-icon svg path{fill:inherit}.gblocks-option-notice.components-notice{margin:0 0 24px}.gblocks-option-notice.components-notice .components-notice__content{margin:5px}.gblocks-small-notice-description{color:#777;font-size:12px;margin-bottom:10px}.gblocks-utility-label{align-items:flex-end;display:flex;margin-bottom:5px}.gblocks-utility-label label{margin-right:auto}.gblocks-utility-label .components-button{height:auto;justify-content:center!important;margin-left:5px;min-width:auto;padding:0 6px}.gblocks-utility-label .components-button.gblocks-reset-button svg{height:20px;width:20px}.gblocks-utility-label .components-button:last-child{margin-right:-5px}.gblocks-utility-label .components-button svg{height:13px;margin-right:0!important;width:13px}.wp-block.gb-is-root-block{margin-bottom:0;margin-top:0;position:relative}.block-editor-list-view-leaf :is(.gb-block-icon,.gblocks-block-icon){color:#1e72bd}.block-editor-list-view-leaf.is-selected :is(.gb-block-icon,.gblocks-block-icon){color:currentColor}.gblocks-action-panel{padding:0!important}.gblocks-action-panel .components-panel__body-title{margin:0!important}.gblocks-action-panel .components-panel__arrow path{transform:rotate(90deg);transform-origin:center}.post-type-gp_elements .wp-block{max-width:none}.gblocks-flex-button-group{display:flex}.gblocks-flex-button-group button{display:flex;flex-grow:1;font-size:12px;justify-content:center}.gblocks-flex-button-group button.is-inherited{background:rgba(0,0,0,.07)}.gblocks-flex-button-group button svg{width:15px} +.gblocks-image-dimensions__row{display:flex;justify-content:space-between}.gblocks-image-dimensions__row>div{width:calc(50% - 2px)}.gblocks-image-dimensions__row .components-base-control{margin:0!important}.gblocks-image-dimensions__row .components-base-control__field{margin:0}[data-align=full]>.gb-block-image,[data-align=wide]>.gb-block-image{max-width:none}[data-align=full]>.gb-block-image img,[data-align=wide]>.gb-block-image img{height:auto;width:100%}.wp-block-generateblocks-image{margin:0;position:relative}.wp-block-generateblocks-image.is-applying img{opacity:.3}.wp-block-generateblocks-image .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-generateblocks-image img{height:auto;max-width:100%;vertical-align:middle}.wp-block-generateblocks-image figcaption p{margin:0}.wp-block-generateblocks-image .components-placeholder,.wp-block-generateblocks-image .components-resizable-box__container{border-radius:inherit}.wp-block-generateblocks-image .gblocks-image__placeholder{max-width:100%;position:relative}.wp-block-generateblocks-image .gblocks-image__placeholder img{border:1px dashed;opacity:.4}.wp-block-generateblocks-image .gblocks-image__placeholder .components-placeholder__illustration{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;stroke:currentColor;stroke-dasharray:3;border:0;opacity:.4;transform:none} .gb-onboard-popover .components-popover__content{padding:12px;width:330px} diff --git a/dist/blocks.js b/dist/blocks.js index 1b77c12f5..a833fd782 100644 --- a/dist/blocks.js +++ b/dist/blocks.js @@ -1,24 +1,33 @@ -!function(){var e={184:function(e,t){var a;!function(){"use strict";var l={}.hasOwnProperty;function n(){for(var e=[],t=0;te.length)&&(t=e.length);for(var a=0,l=new Array(t);a1?a-1:0),n=1;n/gm),U=g(/\${[\w\W]*}/gm),Z=g(/^data-[\-\w.\u00B7-\uFFFF]/),q=g(/^aria-[\-\w]+$/),$=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=g(/^(?:\w+script|data):/i),J=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=g(/^html$/i),Q=function(){return"undefined"==typeof window?null:window};return function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),n=function(e){return t(e)};if(n.version="2.4.7",n.removed=[],!a||!a.document||9!==a.document.nodeType)return n.isSupported=!1,n;var r=a.document,i=a.document,o=a.DocumentFragment,s=a.HTMLTemplateElement,c=a.Node,g=a.Element,d=a.NodeFilter,p=a.NamedNodeMap,b=void 0===p?a.NamedNodeMap||a.MozNamedAttrMap:p,h=a.HTMLFormElement,m=a.DOMParser,L=a.trustedTypes,X=g.prototype,ee=I(X,"cloneNode"),te=I(X,"nextSibling"),ae=I(X,"childNodes"),le=I(X,"parentNode");if("function"==typeof s){var ne=i.createElement("template");ne.content&&ne.content.ownerDocument&&(i=ne.content.ownerDocument)}var re=function(t,a){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var l=null,n="data-tt-policy-suffix";a.currentScript&&a.currentScript.hasAttribute(n)&&(l=a.currentScript.getAttribute(n));var r="dompurify"+(l?"#"+l:"");try{return t.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(L,r),ie=re?re.createHTML(""):"",oe=i,se=oe.implementation,ce=oe.createNodeIterator,ue=oe.createDocumentFragment,ge=oe.getElementsByTagName,de=r.importNode,pe={};try{pe=B(i).documentMode?i.documentMode:{}}catch(e){}var be={};n.isSupported="function"==typeof le&&se&&void 0!==se.createHTMLDocument&&9!==pe;var he,me,fe=G,ke=W,ve=U,ye=Z,we=q,Ce=K,_e=J,Ee=$,xe=null,Se=M({},[].concat(l(O),l(A),l(R),l(D),l(F))),Te=null,Le=M({},[].concat(l(H),l(P),l(V),l(j))),Me=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Be=null,Ie=null,Oe=!0,Ae=!0,Re=!1,ze=!0,De=!1,Ne=!1,Fe=!1,He=!1,Pe=!1,Ve=!1,je=!1,Ge=!0,We=!1,Ue=!0,Ze=!1,qe={},$e=null,Ke=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Je=null,Ye=M({},["audio","video","img","source","image","track"]),Qe=null,Xe=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",lt=at,nt=!1,rt=null,it=M({},[et,tt,at],w),ot=["application/xhtml+xml","text/html"],st=null,ct=i.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},gt=function(t){st&&st===t||(t&&"object"===e(t)||(t={}),t=B(t),he=he=-1===ot.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?w:y,xe="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,me):Se,Te="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,me):Le,rt="ALLOWED_NAMESPACES"in t?M({},t.ALLOWED_NAMESPACES,w):it,Qe="ADD_URI_SAFE_ATTR"in t?M(B(Xe),t.ADD_URI_SAFE_ATTR,me):Xe,Je="ADD_DATA_URI_TAGS"in t?M(B(Ye),t.ADD_DATA_URI_TAGS,me):Ye,$e="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,me):Ke,Be="FORBID_TAGS"in t?M({},t.FORBID_TAGS,me):{},Ie="FORBID_ATTR"in t?M({},t.FORBID_ATTR,me):{},qe="USE_PROFILES"in t&&t.USE_PROFILES,Oe=!1!==t.ALLOW_ARIA_ATTR,Ae=!1!==t.ALLOW_DATA_ATTR,Re=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ze=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,De=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,Pe=t.RETURN_DOM||!1,Ve=t.RETURN_DOM_FRAGMENT||!1,je=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,Ze=t.IN_PLACE||!1,Ee=t.ALLOWED_URI_REGEXP||Ee,lt=t.NAMESPACE||at,Me=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Me.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Ae=!1),Ve&&(Pe=!0),qe&&(xe=M({},l(F)),Te=[],!0===qe.html&&(M(xe,O),M(Te,H)),!0===qe.svg&&(M(xe,A),M(Te,P),M(Te,j)),!0===qe.svgFilters&&(M(xe,R),M(Te,P),M(Te,j)),!0===qe.mathMl&&(M(xe,D),M(Te,V),M(Te,j))),t.ADD_TAGS&&(xe===Se&&(xe=B(xe)),M(xe,t.ADD_TAGS,me)),t.ADD_ATTR&&(Te===Le&&(Te=B(Te)),M(Te,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&M(Qe,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&($e===Ke&&($e=B($e)),M($e,t.FORBID_CONTENTS,me)),Ue&&(xe["#text"]=!0),Ne&&M(xe,["html","head","body"]),xe.table&&(M(xe,["tbody"]),delete Be.tbody),u&&u(t),st=t)},dt=M({},["mi","mo","mn","ms","mtext"]),pt=M({},["foreignobject","desc","title","annotation-xml"]),bt=M({},["title","style","font","a","script"]),ht=M({},A);M(ht,R),M(ht,z);var mt=M({},D);M(mt,N);var ft=function(e){v(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},kt=function(e,t){try{v(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(Pe||Ve)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,a;if(He)e=""+e;else{var l=C(e,/^[\r\n\t ]+/);a=l&&l[0]}"application/xhtml+xml"===he&<===at&&(e=''+e+"");var n=re?re.createHTML(e):e;if(lt===at)try{t=(new m).parseFromString(n,he)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(lt,"template",null);try{t.documentElement.innerHTML=nt?ie:n}catch(e){}}var r=t.body||t.documentElement;return e&&a&&r.insertBefore(i.createTextNode(a),r.childNodes[0]||null),lt===at?ge.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:r},yt=function(e){return ce.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},wt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Ct=function(e,t,a){be[e]&&f(be[e],(function(e){e.call(n,t,a,st)}))},_t=function(e){var t,a;if(Ct("beforeSanitizeElements",e,null),(a=e)instanceof h&&("string"!=typeof a.nodeName||"string"!=typeof a.textContent||"function"!=typeof a.removeChild||!(a.attributes instanceof b)||"function"!=typeof a.removeAttribute||"function"!=typeof a.setAttribute||"string"!=typeof a.namespaceURI||"function"!=typeof a.insertBefore||"function"!=typeof a.hasChildNodes))return ft(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return ft(e),!0;var l=me(e.nodeName);if(Ct("uponSanitizeElement",e,{tagName:l,allowedTags:xe}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===l&&S(/